@plaidev/karte-action-sdk 1.1.270-29331701.75b2b3a0a → 1.1.270-29365389.cc95ce9c2
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/actionEvent.d.ts +9 -0
- package/dist/components-flex/avatar/Avatar.css.d.ts +3 -0
- package/dist/components-flex/avatar/types.d.ts +4 -5
- package/dist/components-flex/button/Button.css.d.ts +4 -0
- package/dist/components-flex/button/types.d.ts +3 -3
- package/dist/components-flex/button-outlined/types.d.ts +3 -3
- package/dist/components-flex/button-text/types.d.ts +3 -3
- package/dist/components-flex/clip-copy/ClipCopy.css.d.ts +3 -0
- package/dist/components-flex/clip-copy/types.d.ts +3 -3
- package/dist/components-flex/close-button/types.d.ts +3 -3
- package/dist/components-flex/code/types.d.ts +3 -3
- package/dist/components-flex/count-down/types.d.ts +5 -5
- package/dist/components-flex/css.d.ts +5 -0
- package/dist/components-flex/embed/types.d.ts +3 -3
- package/dist/components-flex/form/types.d.ts +35 -35
- package/dist/components-flex/icon/Icon.css.d.ts +4 -0
- package/dist/components-flex/icon/types.d.ts +4 -4
- package/dist/components-flex/image/types.d.ts +3 -3
- package/dist/components-flex/layout/Layout.css.d.ts +4 -0
- package/dist/components-flex/layout/types.d.ts +3 -3
- package/dist/components-flex/list/types.d.ts +5 -5
- package/dist/components-flex/modal/types.d.ts +3 -3
- package/dist/components-flex/multi-column/types.d.ts +5 -5
- package/dist/components-flex/props.d.ts +8 -1
- package/dist/components-flex/responsive.d.ts +26 -0
- package/dist/components-flex/slider/types.d.ts +5 -4
- package/dist/components-flex/text/Text.css.d.ts +4 -0
- package/dist/components-flex/text/types.d.ts +4 -4
- package/dist/components-flex/text-link/TextLink.css.d.ts +4 -0
- package/dist/components-flex/text-link/types.d.ts +4 -4
- package/dist/components-flex/youtube/types.d.ts +3 -3
- package/dist/functions.d.ts +4 -2
- package/dist/hooks/useClickable.d.ts +3 -1
- package/dist/hydrate/actionEvent.d.ts +9 -0
- package/dist/hydrate/components-flex/avatar/Avatar.css.d.ts +3 -0
- package/dist/hydrate/components-flex/avatar/types.d.ts +4 -5
- package/dist/hydrate/components-flex/button/Button.css.d.ts +4 -0
- package/dist/hydrate/components-flex/button/types.d.ts +3 -3
- package/dist/hydrate/components-flex/button-outlined/types.d.ts +3 -3
- package/dist/hydrate/components-flex/button-text/types.d.ts +3 -3
- package/dist/hydrate/components-flex/clip-copy/ClipCopy.css.d.ts +3 -0
- package/dist/hydrate/components-flex/clip-copy/types.d.ts +3 -3
- package/dist/hydrate/components-flex/close-button/types.d.ts +3 -3
- package/dist/hydrate/components-flex/code/types.d.ts +3 -3
- package/dist/hydrate/components-flex/count-down/types.d.ts +5 -5
- package/dist/hydrate/components-flex/css.d.ts +5 -0
- package/dist/hydrate/components-flex/embed/types.d.ts +3 -3
- package/dist/hydrate/components-flex/form/types.d.ts +35 -35
- package/dist/hydrate/components-flex/icon/Icon.css.d.ts +4 -0
- package/dist/hydrate/components-flex/icon/types.d.ts +4 -4
- package/dist/hydrate/components-flex/image/types.d.ts +3 -3
- package/dist/hydrate/components-flex/layout/Layout.css.d.ts +4 -0
- package/dist/hydrate/components-flex/layout/types.d.ts +3 -3
- package/dist/hydrate/components-flex/list/types.d.ts +5 -5
- package/dist/hydrate/components-flex/modal/types.d.ts +3 -3
- package/dist/hydrate/components-flex/multi-column/types.d.ts +5 -5
- package/dist/hydrate/components-flex/props.d.ts +8 -1
- package/dist/hydrate/components-flex/responsive.d.ts +26 -0
- package/dist/hydrate/components-flex/slider/types.d.ts +5 -4
- package/dist/hydrate/components-flex/text/Text.css.d.ts +4 -0
- package/dist/hydrate/components-flex/text/types.d.ts +4 -4
- package/dist/hydrate/components-flex/text-link/TextLink.css.d.ts +4 -0
- package/dist/hydrate/components-flex/text-link/types.d.ts +4 -4
- package/dist/hydrate/components-flex/youtube/types.d.ts +3 -3
- package/dist/hydrate/functions.d.ts +4 -2
- package/dist/hydrate/hooks/useClickable.d.ts +3 -1
- package/dist/hydrate/index.es.js +2758 -1523
- package/dist/hydrate/index.svelte5.d.ts +1 -0
- package/dist/hydrate/modal.svelte5.d.ts +1 -1
- package/dist/hydrate/prop.d.ts +23 -0
- package/dist/hydrate/stores.d.ts +28 -1
- package/dist/hydrate/utils.d.ts +1 -0
- package/dist/index.es.js +2637 -1487
- package/dist/modal.svelte5.d.ts +1 -1
- package/dist/prop.d.ts +23 -0
- package/dist/stores.d.ts +28 -1
- package/dist/svelte5/actionEvent.d.ts +9 -0
- package/dist/svelte5/components-flex/avatar/Avatar.css.d.ts +3 -0
- package/dist/svelte5/components-flex/avatar/types.d.ts +4 -5
- package/dist/svelte5/components-flex/button/Button.css.d.ts +4 -0
- package/dist/svelte5/components-flex/button/types.d.ts +3 -3
- package/dist/svelte5/components-flex/button-outlined/types.d.ts +3 -3
- package/dist/svelte5/components-flex/button-text/types.d.ts +3 -3
- package/dist/svelte5/components-flex/clip-copy/ClipCopy.css.d.ts +3 -0
- package/dist/svelte5/components-flex/clip-copy/types.d.ts +3 -3
- package/dist/svelte5/components-flex/close-button/types.d.ts +3 -3
- package/dist/svelte5/components-flex/code/types.d.ts +3 -3
- package/dist/svelte5/components-flex/count-down/types.d.ts +5 -5
- package/dist/svelte5/components-flex/css.d.ts +5 -0
- package/dist/svelte5/components-flex/embed/types.d.ts +3 -3
- package/dist/svelte5/components-flex/form/types.d.ts +35 -35
- package/dist/svelte5/components-flex/icon/Icon.css.d.ts +4 -0
- package/dist/svelte5/components-flex/icon/types.d.ts +4 -4
- package/dist/svelte5/components-flex/image/types.d.ts +3 -3
- package/dist/svelte5/components-flex/layout/Layout.css.d.ts +4 -0
- package/dist/svelte5/components-flex/layout/types.d.ts +3 -3
- package/dist/svelte5/components-flex/list/types.d.ts +5 -5
- package/dist/svelte5/components-flex/modal/types.d.ts +3 -3
- package/dist/svelte5/components-flex/multi-column/types.d.ts +5 -5
- package/dist/svelte5/components-flex/props.d.ts +8 -1
- package/dist/svelte5/components-flex/responsive.d.ts +26 -0
- package/dist/svelte5/components-flex/slider/types.d.ts +5 -4
- package/dist/svelte5/components-flex/text/Text.css.d.ts +4 -0
- package/dist/svelte5/components-flex/text/types.d.ts +4 -4
- package/dist/svelte5/components-flex/text-link/TextLink.css.d.ts +4 -0
- package/dist/svelte5/components-flex/text-link/types.d.ts +4 -4
- package/dist/svelte5/components-flex/youtube/types.d.ts +3 -3
- package/dist/svelte5/functions.d.ts +4 -2
- package/dist/svelte5/hooks/useClickable.d.ts +3 -1
- package/dist/svelte5/hydrate/actionEvent.d.ts +9 -0
- package/dist/svelte5/hydrate/components-flex/avatar/Avatar.css.d.ts +3 -0
- package/dist/svelte5/hydrate/components-flex/avatar/types.d.ts +4 -5
- package/dist/svelte5/hydrate/components-flex/button/Button.css.d.ts +4 -0
- package/dist/svelte5/hydrate/components-flex/button/types.d.ts +3 -3
- package/dist/svelte5/hydrate/components-flex/button-outlined/types.d.ts +3 -3
- package/dist/svelte5/hydrate/components-flex/button-text/types.d.ts +3 -3
- package/dist/svelte5/hydrate/components-flex/clip-copy/ClipCopy.css.d.ts +3 -0
- package/dist/svelte5/hydrate/components-flex/clip-copy/types.d.ts +3 -3
- package/dist/svelte5/hydrate/components-flex/close-button/types.d.ts +3 -3
- package/dist/svelte5/hydrate/components-flex/code/types.d.ts +3 -3
- package/dist/svelte5/hydrate/components-flex/count-down/types.d.ts +5 -5
- package/dist/svelte5/hydrate/components-flex/css.d.ts +5 -0
- package/dist/svelte5/hydrate/components-flex/embed/types.d.ts +3 -3
- package/dist/svelte5/hydrate/components-flex/form/types.d.ts +35 -35
- package/dist/svelte5/hydrate/components-flex/icon/Icon.css.d.ts +4 -0
- package/dist/svelte5/hydrate/components-flex/icon/types.d.ts +4 -4
- package/dist/svelte5/hydrate/components-flex/image/types.d.ts +3 -3
- package/dist/svelte5/hydrate/components-flex/layout/Layout.css.d.ts +4 -0
- package/dist/svelte5/hydrate/components-flex/layout/types.d.ts +3 -3
- package/dist/svelte5/hydrate/components-flex/list/types.d.ts +5 -5
- package/dist/svelte5/hydrate/components-flex/modal/types.d.ts +3 -3
- package/dist/svelte5/hydrate/components-flex/multi-column/types.d.ts +5 -5
- package/dist/svelte5/hydrate/components-flex/props.d.ts +8 -1
- package/dist/svelte5/hydrate/components-flex/responsive.d.ts +26 -0
- package/dist/svelte5/hydrate/components-flex/slider/types.d.ts +5 -4
- package/dist/svelte5/hydrate/components-flex/text/Text.css.d.ts +4 -0
- package/dist/svelte5/hydrate/components-flex/text/types.d.ts +4 -4
- package/dist/svelte5/hydrate/components-flex/text-link/TextLink.css.d.ts +4 -0
- package/dist/svelte5/hydrate/components-flex/text-link/types.d.ts +4 -4
- package/dist/svelte5/hydrate/components-flex/youtube/types.d.ts +3 -3
- package/dist/svelte5/hydrate/functions.d.ts +4 -2
- package/dist/svelte5/hydrate/hooks/useClickable.d.ts +3 -1
- package/dist/svelte5/hydrate/index.es.d.ts +1 -0
- package/dist/svelte5/hydrate/index.es.js +1885 -1179
- package/dist/svelte5/hydrate/modal.svelte5.d.ts +1 -1
- package/dist/svelte5/hydrate/prop.d.ts +23 -0
- package/dist/svelte5/hydrate/stores.d.ts +28 -1
- package/dist/svelte5/hydrate/utils.d.ts +1 -0
- package/dist/svelte5/index.es.d.ts +1 -0
- package/dist/svelte5/index.es.js +1885 -1179
- package/dist/svelte5/index.front2.es.js +1884 -1178
- package/dist/svelte5/index.svelte5.d.ts +1 -0
- package/dist/svelte5/modal.svelte5.d.ts +1 -1
- package/dist/svelte5/prop.d.ts +23 -0
- package/dist/svelte5/stores.d.ts +28 -1
- package/dist/svelte5/utils.d.ts +1 -0
- package/dist/templates.cjs.js +4 -2
- package/dist/templates.d.ts +3 -0
- package/dist/templates.js +4 -2
- package/dist/utils.d.ts +1 -0
- package/package.json +3 -12
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { get, writable } from "svelte/store";
|
|
1
|
+
import { get, readable, writable } from "svelte/store";
|
|
2
2
|
import { afterUpdate as afterUpdate$1, beforeUpdate as beforeUpdate$1, createEventDispatcher, getContext, mount, onDestroy as onDestroy$1, onMount as onMount$1, setContext, tick as tick$1, unmount } from "svelte";
|
|
3
3
|
import "svelte/internal/disclose-version";
|
|
4
4
|
import "svelte/internal/flags/legacy";
|
|
@@ -7,11 +7,13 @@ import { cubicOut, elasticOut, linear } from "svelte/easing";
|
|
|
7
7
|
|
|
8
8
|
//#region rolldown:runtime
|
|
9
9
|
var __defProp = Object.defineProperty;
|
|
10
|
-
var __export = (
|
|
10
|
+
var __export = (all) => {
|
|
11
|
+
let target = {};
|
|
11
12
|
for (var name in all) __defProp(target, name, {
|
|
12
13
|
get: all[name],
|
|
13
14
|
enumerable: true
|
|
14
15
|
});
|
|
16
|
+
return target;
|
|
15
17
|
};
|
|
16
18
|
|
|
17
19
|
//#endregion
|
|
@@ -258,6 +260,29 @@ const h = (type, props, ...children) => {
|
|
|
258
260
|
for (const child of children) el.appendChild(child);
|
|
259
261
|
return el;
|
|
260
262
|
};
|
|
263
|
+
async function copyToClipboard(text) {
|
|
264
|
+
if (navigator.clipboard && window.isSecureContext) try {
|
|
265
|
+
await navigator.clipboard.writeText(text);
|
|
266
|
+
return true;
|
|
267
|
+
} catch (err) {
|
|
268
|
+
console.warn("navigator.clipboard failed:", err);
|
|
269
|
+
}
|
|
270
|
+
try {
|
|
271
|
+
const textarea = document.createElement("textarea");
|
|
272
|
+
textarea.value = text;
|
|
273
|
+
textarea.setAttribute("readonly", "");
|
|
274
|
+
textarea.style.position = "fixed";
|
|
275
|
+
textarea.style.top = "-9999px";
|
|
276
|
+
document.body.appendChild(textarea);
|
|
277
|
+
textarea.select();
|
|
278
|
+
const success = document.execCommand("copy");
|
|
279
|
+
document.body.removeChild(textarea);
|
|
280
|
+
if (success) return true;
|
|
281
|
+
} catch (err) {
|
|
282
|
+
console.warn("execCommand fallback failed:", err);
|
|
283
|
+
}
|
|
284
|
+
return false;
|
|
285
|
+
}
|
|
261
286
|
|
|
262
287
|
//#endregion
|
|
263
288
|
//#region src/prop.ts
|
|
@@ -387,6 +412,31 @@ const OnClickOperationOptions = [
|
|
|
387
412
|
default: "/"
|
|
388
413
|
}]
|
|
389
414
|
},
|
|
415
|
+
{
|
|
416
|
+
operation: "slideTo",
|
|
417
|
+
args: [
|
|
418
|
+
{
|
|
419
|
+
name: "name",
|
|
420
|
+
type: "SliderId",
|
|
421
|
+
default: ""
|
|
422
|
+
},
|
|
423
|
+
{
|
|
424
|
+
name: "target",
|
|
425
|
+
type: "SliderSlideTarget",
|
|
426
|
+
default: "next"
|
|
427
|
+
},
|
|
428
|
+
{
|
|
429
|
+
name: "slideNumber",
|
|
430
|
+
type: "NumberKeyword",
|
|
431
|
+
default: 1
|
|
432
|
+
},
|
|
433
|
+
{
|
|
434
|
+
name: "hiddenIsDisabled",
|
|
435
|
+
type: "BooleanKeyword",
|
|
436
|
+
default: false
|
|
437
|
+
}
|
|
438
|
+
]
|
|
439
|
+
},
|
|
390
440
|
{
|
|
391
441
|
operation: "callNativeFunction",
|
|
392
442
|
args: [{
|
|
@@ -732,14 +782,13 @@ function getSetting() {
|
|
|
732
782
|
* @public
|
|
733
783
|
*/
|
|
734
784
|
function setSetting(setting) {
|
|
735
|
-
actionSetting.update((current
|
|
785
|
+
actionSetting.update((current) => {
|
|
736
786
|
return {
|
|
737
|
-
...current
|
|
787
|
+
...current,
|
|
738
788
|
...setting
|
|
739
789
|
};
|
|
740
790
|
});
|
|
741
|
-
|
|
742
|
-
return current;
|
|
791
|
+
return getSetting();
|
|
743
792
|
}
|
|
744
793
|
/**
|
|
745
794
|
* {@link resetSetting} function to reset action setting
|
|
@@ -840,16 +889,39 @@ function getState() {
|
|
|
840
889
|
*/
|
|
841
890
|
const states = writable([]);
|
|
842
891
|
/**
|
|
892
|
+
* Store to handle all state names
|
|
893
|
+
*
|
|
894
|
+
* @internal
|
|
895
|
+
*/
|
|
896
|
+
const stateNames = writable([]);
|
|
897
|
+
/**
|
|
843
898
|
* {@link getStates} function to add new state ID to list of state IDs.
|
|
844
899
|
*
|
|
845
900
|
* @param stateId - New state ID
|
|
901
|
+
* @param stateName - New state Name
|
|
846
902
|
*
|
|
847
903
|
* @internal
|
|
848
904
|
*/
|
|
849
|
-
function addState(stateId) {
|
|
850
|
-
if (!
|
|
905
|
+
function addState(stateId, stateName) {
|
|
906
|
+
if (!stateId) return;
|
|
907
|
+
if (!get(states)) {
|
|
908
|
+
states.set([]);
|
|
909
|
+
if (stateName) stateNames.set([]);
|
|
910
|
+
}
|
|
851
911
|
states.update((current) => {
|
|
852
|
-
current.
|
|
912
|
+
if (!current.includes(stateId)) {
|
|
913
|
+
current.push(stateId);
|
|
914
|
+
if (stateName) stateNames.update((names) => {
|
|
915
|
+
names.push(stateName);
|
|
916
|
+
return names;
|
|
917
|
+
});
|
|
918
|
+
} else {
|
|
919
|
+
const index = current.indexOf(stateId);
|
|
920
|
+
if (stateName && stateNames[index] !== stateName) stateNames.update((names) => {
|
|
921
|
+
names.push(stateName);
|
|
922
|
+
return names;
|
|
923
|
+
});
|
|
924
|
+
}
|
|
853
925
|
return current;
|
|
854
926
|
});
|
|
855
927
|
}
|
|
@@ -867,6 +939,19 @@ function getStates() {
|
|
|
867
939
|
return get(states);
|
|
868
940
|
}
|
|
869
941
|
/**
|
|
942
|
+
* ステート名一覧を取得する
|
|
943
|
+
*
|
|
944
|
+
* @remarks
|
|
945
|
+
* アクションが表示されて設定されるため、{@link onShow} フック関数で利用できます。
|
|
946
|
+
*
|
|
947
|
+
* @returns すべてのステート名
|
|
948
|
+
*
|
|
949
|
+
* @public
|
|
950
|
+
*/
|
|
951
|
+
function getStateNames() {
|
|
952
|
+
return get(stateNames);
|
|
953
|
+
}
|
|
954
|
+
/**
|
|
870
955
|
* Store to handle visibility of action
|
|
871
956
|
*
|
|
872
957
|
* @internal
|
|
@@ -1112,6 +1197,7 @@ const identifyFormData = writable({});
|
|
|
1112
1197
|
* @internal
|
|
1113
1198
|
*/
|
|
1114
1199
|
const formFields = writable({});
|
|
1200
|
+
const sliderStates = writable({});
|
|
1115
1201
|
|
|
1116
1202
|
//#endregion
|
|
1117
1203
|
//#region src/logger.ts
|
|
@@ -1331,13 +1417,27 @@ const ACTION_CLOSE_EVENT = `KARTE-ACTION-CLOSE-${actionId}`;
|
|
|
1331
1417
|
const ACTION_CHANGE_STATE_EVENT = `KARTE-ACTION-CHANGE-STATE-${actionId}`;
|
|
1332
1418
|
/** @internal */
|
|
1333
1419
|
const send_event = (event_name, values) => {
|
|
1334
|
-
|
|
1335
|
-
|
|
1420
|
+
getSetting()?.send?.(event_name, values);
|
|
1421
|
+
};
|
|
1422
|
+
/** @internal */
|
|
1423
|
+
const toStateChangedData = (newState, oldState) => {
|
|
1424
|
+
const states$1 = getStates();
|
|
1425
|
+
const stateNames$1 = getStateNames();
|
|
1426
|
+
const getVal$1 = (state$1) => states$1.indexOf(state$1) + 1;
|
|
1427
|
+
const getName = (state$1) => {
|
|
1428
|
+
if (!state$1) return "非表示時";
|
|
1429
|
+
return stateNames$1[states$1.indexOf(state$1)] ?? state$1;
|
|
1430
|
+
};
|
|
1431
|
+
return {
|
|
1432
|
+
newState: getName(newState),
|
|
1433
|
+
oldState: getName(oldState),
|
|
1434
|
+
newVal: states$1.length === 0 ? 1 : getVal$1(newState),
|
|
1435
|
+
oldVal: states$1.length === 0 ? 0 : getVal$1(oldState)
|
|
1436
|
+
};
|
|
1336
1437
|
};
|
|
1337
1438
|
/** @internal */
|
|
1338
1439
|
const publish_edge = (topic, values) => {
|
|
1339
|
-
|
|
1340
|
-
setting?.publish?.(topic, values);
|
|
1440
|
+
getSetting()?.publish?.(topic, values);
|
|
1341
1441
|
};
|
|
1342
1442
|
/** @internal */
|
|
1343
1443
|
const initialize = (setting) => {
|
|
@@ -1351,6 +1451,19 @@ const initialize = (setting) => {
|
|
|
1351
1451
|
const finalize = () => {
|
|
1352
1452
|
resetSetting();
|
|
1353
1453
|
};
|
|
1454
|
+
/** @internal */
|
|
1455
|
+
function dispatchActionEvent(eventName, data) {
|
|
1456
|
+
try {
|
|
1457
|
+
window.dispatchEvent(new CustomEvent(eventName, data));
|
|
1458
|
+
if (window.parent) window.parent.postMessage({
|
|
1459
|
+
type: "action-sdk:event",
|
|
1460
|
+
eventName,
|
|
1461
|
+
data: data || {}
|
|
1462
|
+
}, "*");
|
|
1463
|
+
} catch (e) {
|
|
1464
|
+
console.error(e);
|
|
1465
|
+
}
|
|
1466
|
+
}
|
|
1354
1467
|
/**
|
|
1355
1468
|
* Dispatch the event to destroy KARTE action
|
|
1356
1469
|
*
|
|
@@ -1591,8 +1704,7 @@ const loadActionTableRows = async (config, data, api_key, collection_endpoint) =
|
|
|
1591
1704
|
const defaultValue = config.query.default_value ?? null;
|
|
1592
1705
|
const keys = [];
|
|
1593
1706
|
let hasError = false;
|
|
1594
|
-
|
|
1595
|
-
originalKeys.forEach((key) => {
|
|
1707
|
+
(Array.isArray(config.query.keys) ? config.query.keys : [config.query.keys]).forEach((key) => {
|
|
1596
1708
|
const d = data[key];
|
|
1597
1709
|
if (d == null || d === "") {
|
|
1598
1710
|
console.warn("key is not found. key: ", key);
|
|
@@ -1716,10 +1828,9 @@ function closeAction$1(trigger = "none") {
|
|
|
1716
1828
|
/** @internal */
|
|
1717
1829
|
const handleState = (event) => {
|
|
1718
1830
|
if (event.detail.actionId === actionId || event.detail.actionId === ALL_ACTION_ID) {
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
});
|
|
1831
|
+
const nextState = event.detail.to;
|
|
1832
|
+
const currentState = getState();
|
|
1833
|
+
send_event("_message_state_changed", toStateChangedData(nextState, currentState));
|
|
1723
1834
|
setState(event.detail.to, { disableInPreview: event.detail.disableInPreview });
|
|
1724
1835
|
}
|
|
1725
1836
|
};
|
|
@@ -1830,8 +1941,7 @@ async function loadStyle(href) {
|
|
|
1830
1941
|
if (!sr) return;
|
|
1831
1942
|
let cssRules = "";
|
|
1832
1943
|
try {
|
|
1833
|
-
|
|
1834
|
-
cssRules = await res.text();
|
|
1944
|
+
cssRules = await (await fetch(href)).text();
|
|
1835
1945
|
} catch (_) {}
|
|
1836
1946
|
if (!cssRules) return;
|
|
1837
1947
|
const [rules, fontFaceRules] = await fixFontFaceIssue(href, cssRules);
|
|
@@ -1863,9 +1973,10 @@ function getCssVariables(data) {
|
|
|
1863
1973
|
* @public
|
|
1864
1974
|
*/
|
|
1865
1975
|
function getActionRoot() {
|
|
1866
|
-
const root$
|
|
1867
|
-
if (!root$
|
|
1868
|
-
|
|
1976
|
+
const root$56 = document.querySelector(`.${KARTE_ACTION_ROOT}[data-${KARTE_ACTION_RID}='${actionId}']`);
|
|
1977
|
+
if (!root$56) return null;
|
|
1978
|
+
if (!root$56.shadowRoot) return root$56;
|
|
1979
|
+
return root$56.shadowRoot;
|
|
1869
1980
|
}
|
|
1870
1981
|
/** @internal */
|
|
1871
1982
|
function createModal(App, options = {
|
|
@@ -1907,8 +2018,7 @@ function createModal(App, options = {
|
|
|
1907
2018
|
sendErrorIfMessageOpenEventNotSent();
|
|
1908
2019
|
options.send("_message_state_changed", {
|
|
1909
2020
|
trigger,
|
|
1910
|
-
|
|
1911
|
-
newState: ""
|
|
2021
|
+
...toStateChangedData("", getState())
|
|
1912
2022
|
});
|
|
1913
2023
|
setOpened(false);
|
|
1914
2024
|
setClosed(true);
|
|
@@ -1940,8 +2050,7 @@ function createModal(App, options = {
|
|
|
1940
2050
|
if (!isOnSite() && trigger === "custom") return;
|
|
1941
2051
|
if (trigger === "custom" && (options.props.show_on_scroll || options.props.show_on_time)) return;
|
|
1942
2052
|
if (actionTablePromise) {
|
|
1943
|
-
|
|
1944
|
-
if (!result.success) return;
|
|
2053
|
+
if (!(await actionTablePromise).success) return;
|
|
1945
2054
|
}
|
|
1946
2055
|
if (!hasAlreadySentMessageOpenEvent) {
|
|
1947
2056
|
options.send("message_open", { state: getState() });
|
|
@@ -1950,15 +2059,13 @@ function createModal(App, options = {
|
|
|
1950
2059
|
sendErrorIfMessageOpenEventNotSent();
|
|
1951
2060
|
options.send("_message_state_changed", {
|
|
1952
2061
|
trigger,
|
|
1953
|
-
|
|
1954
|
-
newState: getState()
|
|
2062
|
+
...toStateChangedData(getState(), "")
|
|
1955
2063
|
});
|
|
1956
2064
|
setOpened(true);
|
|
1957
2065
|
setClosed(false);
|
|
1958
2066
|
if (app) return;
|
|
1959
|
-
const target = ensureActionRoot(isOnSite());
|
|
1960
2067
|
const props = {
|
|
1961
|
-
target,
|
|
2068
|
+
target: ensureActionRoot(isOnSite()),
|
|
1962
2069
|
props: {
|
|
1963
2070
|
send: options.send,
|
|
1964
2071
|
publish: options.publish,
|
|
@@ -1966,8 +2073,7 @@ function createModal(App, options = {
|
|
|
1966
2073
|
onShow: (props$1) => {
|
|
1967
2074
|
const { onShowHandlers } = getInternalHandlers();
|
|
1968
2075
|
if (onShowHandlers) onShowHandlers.forEach((h$1) => {
|
|
1969
|
-
|
|
1970
|
-
console.info(`${ACTION_HOOK_LABEL}:${JSON.stringify(actionHookLog)}`);
|
|
2076
|
+
console.info(`${ACTION_HOOK_LABEL}:${JSON.stringify({ name: "onShow" })}`);
|
|
1971
2077
|
h$1(props$1);
|
|
1972
2078
|
});
|
|
1973
2079
|
},
|
|
@@ -2065,8 +2171,7 @@ function ensureActionRoot(useShadow = true) {
|
|
|
2065
2171
|
el = h("div", rootAttrs);
|
|
2066
2172
|
document.body.appendChild(el);
|
|
2067
2173
|
}
|
|
2068
|
-
|
|
2069
|
-
if (isShadow) return el.shadowRoot ?? el.attachShadow({ mode: "open" });
|
|
2174
|
+
if (!!document.body.attachShadow && useShadow) return el.shadowRoot ?? el.attachShadow({ mode: "open" });
|
|
2070
2175
|
else return el;
|
|
2071
2176
|
}
|
|
2072
2177
|
/**
|
|
@@ -2127,8 +2232,7 @@ function createApp(App, options = {
|
|
|
2127
2232
|
}
|
|
2128
2233
|
}
|
|
2129
2234
|
};
|
|
2130
|
-
|
|
2131
|
-
appArgs.target = win;
|
|
2235
|
+
appArgs.target = ensureActionRoot(isOnSite());
|
|
2132
2236
|
return {
|
|
2133
2237
|
close: close$1,
|
|
2134
2238
|
show: () => {
|
|
@@ -2147,8 +2251,8 @@ function createApp(App, options = {
|
|
|
2147
2251
|
*/
|
|
2148
2252
|
function createFog({ color = "#000", opacity = "50%", zIndex = 999, onclick }) {
|
|
2149
2253
|
console.log("createFog");
|
|
2150
|
-
const root$
|
|
2151
|
-
if (root$
|
|
2254
|
+
const root$56 = ensureModalRoot();
|
|
2255
|
+
if (root$56.querySelector(".__krt-fog")) return {
|
|
2152
2256
|
fog: null,
|
|
2153
2257
|
close: () => {}
|
|
2154
2258
|
};
|
|
@@ -2169,7 +2273,7 @@ function createFog({ color = "#000", opacity = "50%", zIndex = 999, onclick }) {
|
|
|
2169
2273
|
fog.remove();
|
|
2170
2274
|
};
|
|
2171
2275
|
fog.onclick = close$1;
|
|
2172
|
-
root$
|
|
2276
|
+
root$56.appendChild(fog);
|
|
2173
2277
|
return {
|
|
2174
2278
|
fog,
|
|
2175
2279
|
close: close$1
|
|
@@ -2321,8 +2425,7 @@ function create(App, options) {
|
|
|
2321
2425
|
const handleDestroy = () => {
|
|
2322
2426
|
const { onDestroyHandlers } = getInternalHandlers();
|
|
2323
2427
|
onDestroyHandlers?.forEach((h$1) => {
|
|
2324
|
-
|
|
2325
|
-
console.info(`${ACTION_HOOK_LABEL}:${JSON.stringify(actionHookLog)}`);
|
|
2428
|
+
console.info(`${ACTION_HOOK_LABEL}:${JSON.stringify({ name: "onDestroy" })}`);
|
|
2326
2429
|
h$1(actionProps);
|
|
2327
2430
|
});
|
|
2328
2431
|
const { onDestroyHandlers: onDestroyWidgetHandlers } = getWidgetHandlers();
|
|
@@ -2473,8 +2576,7 @@ function formDataToEventValues$1(campaignId, formData$1) {
|
|
|
2473
2576
|
questions.push(name);
|
|
2474
2577
|
const value = dataItem.value;
|
|
2475
2578
|
const answerKey = `question_${name}`;
|
|
2476
|
-
|
|
2477
|
-
answersMap[answerKey] = answerValue;
|
|
2579
|
+
answersMap[answerKey] = createAnswerValue$1(value);
|
|
2478
2580
|
});
|
|
2479
2581
|
return { [campaignId]: {
|
|
2480
2582
|
questions,
|
|
@@ -2489,8 +2591,7 @@ function formDataToIdentifyEventValues$1(formData$1) {
|
|
|
2489
2591
|
}
|
|
2490
2592
|
/** @internal */
|
|
2491
2593
|
function submit() {
|
|
2492
|
-
const
|
|
2493
|
-
const campaignId = systemConfig.campaignId;
|
|
2594
|
+
const campaignId = getSystem().campaignId;
|
|
2494
2595
|
if (campaignId) {
|
|
2495
2596
|
const formData$1 = get(formData);
|
|
2496
2597
|
const identifyFormData$1 = get(identifyFormData);
|
|
@@ -2564,8 +2665,7 @@ function removeAnswer(questionId) {
|
|
|
2564
2665
|
* @public
|
|
2565
2666
|
*/
|
|
2566
2667
|
function getAnsweredQuestion(questionId) {
|
|
2567
|
-
const
|
|
2568
|
-
const valueState = formData$1[questionId];
|
|
2668
|
+
const valueState = get(formData)[questionId];
|
|
2569
2669
|
if (valueState) return createAnswerValue$1(valueState.value);
|
|
2570
2670
|
}
|
|
2571
2671
|
/**
|
|
@@ -2607,8 +2707,7 @@ function sendAnswers() {
|
|
|
2607
2707
|
|
|
2608
2708
|
//#endregion
|
|
2609
2709
|
//#region src/widget.ts
|
|
2610
|
-
var widget_exports = {
|
|
2611
|
-
__export(widget_exports, {
|
|
2710
|
+
var widget_exports = /* @__PURE__ */ __export({
|
|
2612
2711
|
collection: () => collection$1,
|
|
2613
2712
|
getState: () => getState$1,
|
|
2614
2713
|
getVal: () => getVal,
|
|
@@ -2668,8 +2767,7 @@ function setVal(name, value) {
|
|
|
2668
2767
|
* @public
|
|
2669
2768
|
*/
|
|
2670
2769
|
function getVal(name) {
|
|
2671
|
-
|
|
2672
|
-
return cv[name];
|
|
2770
|
+
return getVariables()[name];
|
|
2673
2771
|
}
|
|
2674
2772
|
/**
|
|
2675
2773
|
* 変数が変更されたときに実行されるコールバック関数を設定する
|
|
@@ -2734,8 +2832,7 @@ function on(name, callback$5) {
|
|
|
2734
2832
|
* @public
|
|
2735
2833
|
*/
|
|
2736
2834
|
function setState$1(stateId) {
|
|
2737
|
-
|
|
2738
|
-
if (stateIds.includes(stateId)) return;
|
|
2835
|
+
if (getStates().includes(stateId)) return;
|
|
2739
2836
|
setState(stateId);
|
|
2740
2837
|
}
|
|
2741
2838
|
/**
|
|
@@ -2807,8 +2904,7 @@ function getLocalStore(key) {
|
|
|
2807
2904
|
return;
|
|
2808
2905
|
}
|
|
2809
2906
|
if (item.val === void 0) return;
|
|
2810
|
-
|
|
2811
|
-
if (now - item.last > item.expire) {
|
|
2907
|
+
if ((/* @__PURE__ */ new Date()).getTime() - item.last > item.expire) {
|
|
2812
2908
|
localStorage.removeItem(lsKey);
|
|
2813
2909
|
return;
|
|
2814
2910
|
}
|
|
@@ -2925,15 +3021,13 @@ const formSubmittedIdentifyValues = writable({});
|
|
|
2925
3021
|
* @public
|
|
2926
3022
|
*/
|
|
2927
3023
|
const getFormFieldSchema = (name) => {
|
|
2928
|
-
|
|
2929
|
-
return store.schemas.find((v) => v.name === name) ?? void 0;
|
|
3024
|
+
return get(formStore).schemas.find((v) => v.name === name) ?? void 0;
|
|
2930
3025
|
};
|
|
2931
3026
|
/**
|
|
2932
3027
|
* @public
|
|
2933
3028
|
*/
|
|
2934
3029
|
const getFormFieldState = (name) => {
|
|
2935
|
-
|
|
2936
|
-
return store.states[name] ?? void 0;
|
|
3030
|
+
return get(formStore).states[name] ?? void 0;
|
|
2937
3031
|
};
|
|
2938
3032
|
/**
|
|
2939
3033
|
* @public
|
|
@@ -3177,8 +3271,7 @@ function formDataToIdentifyEventValues(values) {
|
|
|
3177
3271
|
* @public
|
|
3178
3272
|
*/
|
|
3179
3273
|
function onSubmitForm(fn) {
|
|
3180
|
-
const
|
|
3181
|
-
const campaignId = systemConfig.campaignId;
|
|
3274
|
+
const campaignId = getSystem().campaignId;
|
|
3182
3275
|
if (campaignId) {
|
|
3183
3276
|
let hasInvalid = false;
|
|
3184
3277
|
const formData$1 = get(formStore);
|
|
@@ -3231,7 +3324,7 @@ function onSubmitForm(fn) {
|
|
|
3231
3324
|
|
|
3232
3325
|
//#endregion
|
|
3233
3326
|
//#region src/components-flex/state/Header.svelte
|
|
3234
|
-
var root_2$
|
|
3327
|
+
var root_2$11 = $.template(`<link type="text/css" rel="stylesheet">`);
|
|
3235
3328
|
function Header($$anchor, $$props) {
|
|
3236
3329
|
$.push($$props, false);
|
|
3237
3330
|
const [$$stores, $$cleanup] = $.setup_stores();
|
|
@@ -3250,7 +3343,7 @@ function Header($$anchor, $$props) {
|
|
|
3250
3343
|
var fragment = $.comment();
|
|
3251
3344
|
var node = $.first_child(fragment);
|
|
3252
3345
|
var consequent = ($$anchor$2) => {
|
|
3253
|
-
var link = root_2$
|
|
3346
|
+
var link = root_2$11();
|
|
3254
3347
|
$.template_effect(() => $.set_attribute(link, "href", $.get(googleFontUrl)));
|
|
3255
3348
|
$.append($$anchor$2, link);
|
|
3256
3349
|
};
|
|
@@ -3307,19 +3400,94 @@ const useBrandKit = () => {
|
|
|
3307
3400
|
return { brandKit: getContext("brandKit") || getBrandKit() };
|
|
3308
3401
|
};
|
|
3309
3402
|
|
|
3403
|
+
//#endregion
|
|
3404
|
+
//#region src/components-flex/css.ts
|
|
3405
|
+
function createComponentRawCss(layerId, define) {
|
|
3406
|
+
const rootSelector = `[data-layer-id="${layerId}"]`;
|
|
3407
|
+
const gen = (selector, styles) => {
|
|
3408
|
+
const childSelector = selector.startsWith("&") ? selector.slice(1) : ` ${selector}`;
|
|
3409
|
+
const body = Object.entries(styles).map(([k, v]) => {
|
|
3410
|
+
if (!v) return "";
|
|
3411
|
+
return `${k.replace(/[A-Z]/g, (m) => "-" + m.toLowerCase())}: ${v};`;
|
|
3412
|
+
}).filter((v) => v !== "").join("\n");
|
|
3413
|
+
return `${rootSelector}${childSelector} {\n${body}\n}`;
|
|
3414
|
+
};
|
|
3415
|
+
return define(gen).join("\n");
|
|
3416
|
+
}
|
|
3417
|
+
function toResponsiveSelector(responsiveSetting, body) {
|
|
3418
|
+
const { mediaQueryCondition, userAgentCondition } = responsiveSetting;
|
|
3419
|
+
if (mediaQueryCondition) {
|
|
3420
|
+
const { raw, range, orientation } = mediaQueryCondition;
|
|
3421
|
+
const prefix = `@media screen and`;
|
|
3422
|
+
if (raw) return `${prefix} (${raw}) {\n${body}\n}`;
|
|
3423
|
+
const orientationStyle = orientation ? ` and (orientation: ${orientation})` : "";
|
|
3424
|
+
if (range) {
|
|
3425
|
+
if (range.min && range.max) return `${prefix} (min-width: ${range.min}px)${orientationStyle} and (max-width: ${range.max}) {\n${body}\n}`;
|
|
3426
|
+
else if (range.max) return `${prefix} (max-width: ${range.max}px)${orientationStyle} {\n${body}\n}`;
|
|
3427
|
+
else if (range.min) return `${prefix} (min-width: ${range.min}px)${orientationStyle} {\n${body}\n}`;
|
|
3428
|
+
}
|
|
3429
|
+
return "";
|
|
3430
|
+
} else if (userAgentCondition) return "";
|
|
3431
|
+
return "";
|
|
3432
|
+
}
|
|
3433
|
+
function toStyleTag(css) {
|
|
3434
|
+
return `<style>${css}</style>`;
|
|
3435
|
+
}
|
|
3436
|
+
|
|
3437
|
+
//#endregion
|
|
3438
|
+
//#region src/components-flex/shared/StylePortal.svelte
|
|
3439
|
+
function StylePortal($$anchor, $$props) {
|
|
3440
|
+
$.push($$props, false);
|
|
3441
|
+
let cssText = $.prop($$props, "cssText", 8, "");
|
|
3442
|
+
const actionRoot = getActionRoot();
|
|
3443
|
+
const isShadowRoot = !!actionRoot && actionRoot instanceof ShadowRoot;
|
|
3444
|
+
onMount$1(() => {
|
|
3445
|
+
if (isShadowRoot) {
|
|
3446
|
+
const style = document.createElement("style");
|
|
3447
|
+
style.textContent = cssText();
|
|
3448
|
+
actionRoot.appendChild(style);
|
|
3449
|
+
return () => style.remove();
|
|
3450
|
+
}
|
|
3451
|
+
});
|
|
3452
|
+
$.init();
|
|
3453
|
+
var fragment = $.comment();
|
|
3454
|
+
var node = $.first_child(fragment);
|
|
3455
|
+
var consequent = ($$anchor$1) => {
|
|
3456
|
+
var fragment_1 = $.comment();
|
|
3457
|
+
var node_1 = $.first_child(fragment_1);
|
|
3458
|
+
$.html(node_1, () => toStyleTag(cssText()), false, false);
|
|
3459
|
+
$.append($$anchor$1, fragment_1);
|
|
3460
|
+
};
|
|
3461
|
+
$.if(node, ($$render) => {
|
|
3462
|
+
if (!isShadowRoot) $$render(consequent);
|
|
3463
|
+
});
|
|
3464
|
+
$.append($$anchor, fragment);
|
|
3465
|
+
$.pop();
|
|
3466
|
+
}
|
|
3467
|
+
|
|
3310
3468
|
//#endregion
|
|
3311
3469
|
//#region src/components-flex/state/State.svelte
|
|
3312
|
-
var root$
|
|
3470
|
+
var root$55 = $.template(`<!> <!> <!>`, 1);
|
|
3313
3471
|
function State($$anchor, $$props) {
|
|
3314
3472
|
$.push($$props, false);
|
|
3315
3473
|
let customBrandKit = $.prop($$props, "customBrandKit", 8, void 0);
|
|
3474
|
+
let globalCssCode = $.prop($$props, "globalCssCode", 8, void 0);
|
|
3316
3475
|
setContext("brandKit", getBrandKit(customBrandKit()));
|
|
3317
3476
|
$.init();
|
|
3318
|
-
var fragment = root$
|
|
3477
|
+
var fragment = root$55();
|
|
3319
3478
|
var node = $.first_child(fragment);
|
|
3320
|
-
|
|
3479
|
+
var consequent = ($$anchor$1) => {
|
|
3480
|
+
StylePortal($$anchor$1, { get cssText() {
|
|
3481
|
+
return globalCssCode();
|
|
3482
|
+
} });
|
|
3483
|
+
};
|
|
3484
|
+
$.if(node, ($$render) => {
|
|
3485
|
+
if (globalCssCode()) $$render(consequent);
|
|
3486
|
+
});
|
|
3321
3487
|
var node_1 = $.sibling(node, 2);
|
|
3322
|
-
|
|
3488
|
+
Header(node_1, {});
|
|
3489
|
+
var node_2 = $.sibling(node_1, 2);
|
|
3490
|
+
$.slot(node_2, $$props, "default", {}, null);
|
|
3323
3491
|
$.append($$anchor, fragment);
|
|
3324
3492
|
$.pop();
|
|
3325
3493
|
}
|
|
@@ -3328,19 +3496,20 @@ function State($$anchor, $$props) {
|
|
|
3328
3496
|
//#region src/components-flex/state/StateItem.svelte
|
|
3329
3497
|
const STATE_ITEM_CONTEXT_KEY = Symbol();
|
|
3330
3498
|
var root_1$15 = $.template(`<div class="state-item svelte-2qb6dm"></div> <!>`, 1);
|
|
3331
|
-
const $$css$
|
|
3499
|
+
const $$css$26 = {
|
|
3332
3500
|
hash: "svelte-2qb6dm",
|
|
3333
3501
|
code: ".state-item.svelte-2qb6dm {position:absolute;display:none;}"
|
|
3334
3502
|
};
|
|
3335
3503
|
function StateItem($$anchor, $$props) {
|
|
3336
3504
|
$.push($$props, false);
|
|
3337
|
-
$.append_styles($$anchor, $$css$
|
|
3505
|
+
$.append_styles($$anchor, $$css$26);
|
|
3338
3506
|
const [$$stores, $$cleanup] = $.setup_stores();
|
|
3339
3507
|
const $state = () => $.store_get(state, "$state", $$stores);
|
|
3340
3508
|
let path = $.prop($$props, "path", 8);
|
|
3509
|
+
let name = $.prop($$props, "name", 8, "");
|
|
3341
3510
|
setContext(STATE_ITEM_CONTEXT_KEY, { path: path() });
|
|
3342
|
-
$.legacy_pre_effect(() => $.deep_read_state(path()), () => {
|
|
3343
|
-
addState(path());
|
|
3511
|
+
$.legacy_pre_effect(() => ($.deep_read_state(path()), $.deep_read_state(name())), () => {
|
|
3512
|
+
addState(path(), name());
|
|
3344
3513
|
});
|
|
3345
3514
|
$.legacy_pre_effect_reset();
|
|
3346
3515
|
$.init();
|
|
@@ -3374,353 +3543,144 @@ const ROUND_VARIANT = {
|
|
|
3374
3543
|
};
|
|
3375
3544
|
|
|
3376
3545
|
//#endregion
|
|
3377
|
-
//#region src/components-flex/
|
|
3378
|
-
const
|
|
3379
|
-
|
|
3380
|
-
|
|
3381
|
-
|
|
3382
|
-
|
|
3383
|
-
|
|
3384
|
-
}
|
|
3385
|
-
|
|
3386
|
-
|
|
3387
|
-
|
|
3388
|
-
|
|
3389
|
-
}
|
|
3390
|
-
|
|
3391
|
-
|
|
3392
|
-
|
|
3393
|
-
};
|
|
3546
|
+
//#region src/components-flex/responsive.ts
|
|
3547
|
+
const USER_AGENT_VARIANT = {
|
|
3548
|
+
smartphone: { regex: /iPhone|Android.*Mobile/i },
|
|
3549
|
+
tablet: { regex: /iPad|Android(?!.*Mobile)/i },
|
|
3550
|
+
pc: { regex: /Windows NT|Macintosh|Linux x86_64/i },
|
|
3551
|
+
windows: { regex: /Windows NT/i },
|
|
3552
|
+
mac: { regex: /Macintosh|Mac OS X/i },
|
|
3553
|
+
ios: { regex: /iPhone|iPad|iPod/i },
|
|
3554
|
+
android: { regex: /Android/i },
|
|
3555
|
+
safari: { regex: /Safari/i },
|
|
3556
|
+
chrome: { regex: /Chrome|CriOS/i },
|
|
3557
|
+
firefox: { regex: /Firefox/i },
|
|
3558
|
+
ios_webview: { regex: /iPhone|iPad|iPod/i },
|
|
3559
|
+
android_webview: { regex: /; wv\)/i }
|
|
3560
|
+
};
|
|
3561
|
+
const isMatchMediaQueryCondition = (condition) => {
|
|
3562
|
+
const { raw, range, orientation } = condition;
|
|
3563
|
+
if (orientation) return window.matchMedia(`(orientation: ${condition.orientation})`).matches;
|
|
3564
|
+
if (range) {
|
|
3565
|
+
const { min, max } = range;
|
|
3566
|
+
if (typeof min === "number" && typeof max === "number") return window.matchMedia(`(min-width: ${min}px) and (max-width: ${max}px)`).matches;
|
|
3567
|
+
else if (typeof min === "number") return window.matchMedia(`(min-width: ${min}px)`).matches;
|
|
3568
|
+
else if (typeof max === "number") return window.matchMedia(`(max-width: ${max}px)`).matches;
|
|
3569
|
+
}
|
|
3570
|
+
if (raw) return window.matchMedia(raw).matches;
|
|
3571
|
+
return false;
|
|
3572
|
+
};
|
|
3573
|
+
const isMatchUserAgentCondition = (condition) => {
|
|
3574
|
+
const { variants, regex } = condition;
|
|
3575
|
+
if (variants) return variants.some((variant) => {
|
|
3576
|
+
const regex$1 = USER_AGENT_VARIANT[variant]?.regex;
|
|
3577
|
+
if (!regex$1) return false;
|
|
3578
|
+
return new RegExp(regex$1).test(navigator.userAgent);
|
|
3579
|
+
});
|
|
3580
|
+
else if (regex) return new RegExp(regex).test(navigator.userAgent);
|
|
3581
|
+
return false;
|
|
3582
|
+
};
|
|
3583
|
+
const isMatchResponsiveSetting = (setting) => {
|
|
3584
|
+
const { mediaQueryCondition, userAgentCondition } = setting;
|
|
3585
|
+
if (mediaQueryCondition) return isMatchMediaQueryCondition(mediaQueryCondition);
|
|
3586
|
+
else if (userAgentCondition) return isMatchUserAgentCondition(userAgentCondition);
|
|
3587
|
+
else return false;
|
|
3588
|
+
};
|
|
3589
|
+
function useResponsiveProps(props) {
|
|
3590
|
+
return readable(props, (set) => {
|
|
3591
|
+
if (!props.responsiveSettings) {
|
|
3592
|
+
set(props);
|
|
3593
|
+
return () => {};
|
|
3594
|
+
}
|
|
3595
|
+
const update = () => {
|
|
3596
|
+
const matchedSetting = [...props.responsiveSettings ?? []].reverse().find(isMatchResponsiveSetting);
|
|
3597
|
+
if (matchedSetting) set(Object.assign({}, props, matchedSetting.props ?? {}));
|
|
3598
|
+
else set(props);
|
|
3599
|
+
};
|
|
3600
|
+
update();
|
|
3601
|
+
window.addEventListener("resize", update);
|
|
3602
|
+
window.addEventListener("orientationchange", update);
|
|
3603
|
+
return () => {
|
|
3604
|
+
window.removeEventListener("resize", update);
|
|
3605
|
+
window.removeEventListener("orientationchange", update);
|
|
3606
|
+
};
|
|
3607
|
+
});
|
|
3608
|
+
}
|
|
3394
3609
|
|
|
3395
3610
|
//#endregion
|
|
3396
|
-
//#region src/
|
|
3397
|
-
|
|
3398
|
-
|
|
3399
|
-
|
|
3400
|
-
|
|
3611
|
+
//#region src/functions.ts
|
|
3612
|
+
function _moveTo(to) {
|
|
3613
|
+
const currentState = getState();
|
|
3614
|
+
dispatchActionEvent(ACTION_CHANGE_STATE_EVENT, { detail: {
|
|
3615
|
+
from: currentState,
|
|
3616
|
+
to,
|
|
3617
|
+
actionId
|
|
3618
|
+
} });
|
|
3619
|
+
}
|
|
3620
|
+
/** @internal */
|
|
3621
|
+
const moveTo = (to) => () => {
|
|
3622
|
+
_moveTo(to);
|
|
3401
3623
|
};
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
|
|
3406
|
-
|
|
3407
|
-
|
|
3624
|
+
/** @internal */
|
|
3625
|
+
const linkTo = (to, targetBlank = true, decode = false, keepNativeActionViewed = false) => () => {
|
|
3626
|
+
const decodedTo = decode ? decodeURI(to) : to;
|
|
3627
|
+
const { target } = getActionRunnerContext() ?? {};
|
|
3628
|
+
async function sleep(ms) {
|
|
3629
|
+
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
3630
|
+
}
|
|
3631
|
+
async function _send() {
|
|
3632
|
+
send_event("message_click", {
|
|
3633
|
+
url: decodedTo,
|
|
3634
|
+
state: getState()
|
|
3635
|
+
});
|
|
3636
|
+
await sleep(450);
|
|
3637
|
+
}
|
|
3638
|
+
let doTransitionByLocation = true;
|
|
3639
|
+
const execAnchorClick = (href, blank) => {
|
|
3640
|
+
const anchor = document.createElement("a");
|
|
3641
|
+
anchor.style.position = "fixed";
|
|
3642
|
+
anchor.style.visibility = "hidden";
|
|
3643
|
+
anchor.href = href;
|
|
3644
|
+
if (blank) anchor.target = "_blank";
|
|
3645
|
+
document.body.appendChild(anchor);
|
|
3646
|
+
anchor.click();
|
|
3647
|
+
anchor.remove();
|
|
3648
|
+
};
|
|
3649
|
+
if (target === "native" && targetBlank && keepNativeActionViewed) {
|
|
3650
|
+
const win = window;
|
|
3651
|
+
const nativeMessageName = "open_url";
|
|
3652
|
+
const nativeMessageData = {
|
|
3653
|
+
url: decodedTo,
|
|
3654
|
+
target: "_blank"
|
|
3655
|
+
};
|
|
3656
|
+
win.NativeBridge?.onReceivedMessage(nativeMessageName, JSON.stringify(nativeMessageData));
|
|
3657
|
+
win.webkit?.messageHandlers[nativeMessageName]?.postMessage(nativeMessageData);
|
|
3658
|
+
doTransitionByLocation = false;
|
|
3659
|
+
}
|
|
3660
|
+
Promise.race([_send(), sleep(650)]).then(() => {
|
|
3661
|
+
if (doTransitionByLocation) execAnchorClick(decodedTo, targetBlank);
|
|
3662
|
+
});
|
|
3408
3663
|
};
|
|
3409
|
-
|
|
3410
|
-
|
|
3411
|
-
|
|
3412
|
-
const toVariantArray = (group) => {
|
|
3413
|
-
return Object.keys(group).map((key) => ({
|
|
3414
|
-
...group[key],
|
|
3415
|
-
code: key
|
|
3416
|
-
}));
|
|
3664
|
+
/** @internal */
|
|
3665
|
+
const closeApp = (trigger) => () => {
|
|
3666
|
+
dispatchActionEvent(ACTION_CLOSE_EVENT, { detail: { trigger } });
|
|
3417
3667
|
};
|
|
3418
|
-
|
|
3419
|
-
|
|
3420
|
-
|
|
3421
|
-
|
|
3422
|
-
|
|
3423
|
-
|
|
3424
|
-
|
|
3425
|
-
|
|
3426
|
-
description: "一眼レフ、フィルムカメラ",
|
|
3427
|
-
getProps: () => ({ aspect: "3 / 2" })
|
|
3428
|
-
},
|
|
3429
|
-
movie_old_hr: {
|
|
3430
|
-
name: "4:3",
|
|
3431
|
-
description: "iPhoneカメラ、デジカメ",
|
|
3432
|
-
getProps: () => ({ aspect: "4 / 3" })
|
|
3433
|
-
},
|
|
3434
|
-
og_image: {
|
|
3435
|
-
name: "1.91:1",
|
|
3436
|
-
description: "SNSのOG画像、横長バナー",
|
|
3437
|
-
getProps: () => ({ aspect: "1.91 / 1" })
|
|
3438
|
-
},
|
|
3439
|
-
movie_hr: {
|
|
3440
|
-
name: "16:9",
|
|
3441
|
-
getProps: () => ({ aspect: "16 / 9" }),
|
|
3442
|
-
description: "Youtube、TV、横長バナー"
|
|
3443
|
-
},
|
|
3444
|
-
movie_old_vt: {
|
|
3445
|
-
name: "3:4",
|
|
3446
|
-
description: "iPhoneカメラ、デジカメ (タテ)",
|
|
3447
|
-
getProps: () => ({ aspect: "3 / 4" })
|
|
3448
|
-
},
|
|
3449
|
-
movie_vt: {
|
|
3450
|
-
name: "9:16",
|
|
3451
|
-
description: "TikTok、Shortsなど縦型動画",
|
|
3452
|
-
getProps: () => ({ aspect: "9 / 16" })
|
|
3668
|
+
/** @internal */
|
|
3669
|
+
const runScript = (handlerName) => () => {
|
|
3670
|
+
const handler = getEventHandlers()[handlerName];
|
|
3671
|
+
if (!handler) return;
|
|
3672
|
+
try {
|
|
3673
|
+
handler();
|
|
3674
|
+
} catch (e) {
|
|
3675
|
+
console.warn("Failed to run custom handler", handlerName, e);
|
|
3453
3676
|
}
|
|
3454
3677
|
};
|
|
3455
|
-
|
|
3456
|
-
const
|
|
3457
|
-
|
|
3458
|
-
|
|
3459
|
-
|
|
3460
|
-
|
|
3461
|
-
type
|
|
3462
|
-
},
|
|
3463
|
-
getProps: () => ({ fontFamily: font })
|
|
3464
|
-
};
|
|
3465
|
-
};
|
|
3466
|
-
const FONT_FAMILY_VARIANT = {
|
|
3467
|
-
default: {
|
|
3468
|
-
name: `デフォルト`,
|
|
3469
|
-
meta: {
|
|
3470
|
-
type: "kaku",
|
|
3471
|
-
lang: "ja"
|
|
3472
|
-
},
|
|
3473
|
-
getProps: (brandKit) => ({ fontFamily: brandKit?.font_family ?? SYSTEM_FONT })
|
|
3474
|
-
},
|
|
3475
|
-
noto_sans_jp: createFontVariant("Noto Sans JP", "ja", "kaku"),
|
|
3476
|
-
sawarabi_gothic: createFontVariant("Sawarabi Gothic", "ja", "kaku"),
|
|
3477
|
-
zen_kaku_gothic: createFontVariant("Zen Kaku Gothic", "ja", "kaku"),
|
|
3478
|
-
biz_udp_gothic: createFontVariant("BIZ UDPGothic", "ja", "kaku"),
|
|
3479
|
-
open_sans: createFontVariant("Open Sans", "ja", "kaku"),
|
|
3480
|
-
sans_serif: createFontVariant("sans-serif", "ja", "kaku"),
|
|
3481
|
-
m_plus_1p: createFontVariant("M PLUS 1p", "ja", "maru"),
|
|
3482
|
-
m_plus_rounded_1c: createFontVariant("M PLUS Rounded 1c", "ja", "maru"),
|
|
3483
|
-
kiwi_maru: createFontVariant("Kiwi Maru", "ja", "maru"),
|
|
3484
|
-
zen_maru_gothic: createFontVariant("Zen Maru Gothic", "ja", "maru"),
|
|
3485
|
-
noto_serif_jp: createFontVariant("Noto Serif JP", "ja", "min"),
|
|
3486
|
-
shippori_micho: createFontVariant("Shippori Mincho", "ja", "min"),
|
|
3487
|
-
biz_udp_micho: createFontVariant("BIZ UDPMincho", "ja", "min"),
|
|
3488
|
-
serif: createFontVariant("serif", "ja", "min"),
|
|
3489
|
-
anton: createFontVariant("Anton", "en", "kaku"),
|
|
3490
|
-
barlow: createFontVariant("Barlow", "en", "kaku"),
|
|
3491
|
-
fraunces: createFontVariant("Fraunces", "en", "kaku"),
|
|
3492
|
-
inter: createFontVariant("Inter", "en", "kaku"),
|
|
3493
|
-
lato: createFontVariant("Lato", "en", "kaku"),
|
|
3494
|
-
lora: createFontVariant("Lora", "en", "kaku"),
|
|
3495
|
-
monospace: createFontVariant("monospace", "en", "kaku"),
|
|
3496
|
-
montserrat: createFontVariant("Montserrat", "en", "kaku"),
|
|
3497
|
-
outfit: createFontVariant("Outfit", "en", "kaku"),
|
|
3498
|
-
playfair_display: createFontVariant("Playfair Display", "en", "kaku"),
|
|
3499
|
-
poppins: createFontVariant("Poppins", "en", "kaku"),
|
|
3500
|
-
raleway: createFontVariant("Raleway", "en", "kaku"),
|
|
3501
|
-
roboto: createFontVariant("Roboto", "en", "kaku"),
|
|
3502
|
-
system_ui: createFontVariant("system-ui", "en", "kaku")
|
|
3503
|
-
};
|
|
3504
|
-
const FONT_FAMILY_VARIANTS = toVariantArray(FONT_FAMILY_VARIANT);
|
|
3505
|
-
const FONT_FAMILY_VARIANT_GROUPS = [
|
|
3506
|
-
{
|
|
3507
|
-
label: "日本語 / 角ゴシック",
|
|
3508
|
-
variants: FONT_FAMILY_VARIANTS.filter((v) => v.meta?.lang === "ja" && v.meta?.type === "kaku")
|
|
3509
|
-
},
|
|
3510
|
-
{
|
|
3511
|
-
label: "日本語 / 丸ゴシック",
|
|
3512
|
-
variants: FONT_FAMILY_VARIANTS.filter((v) => v.meta?.lang === "ja" && v.meta?.type === "maru")
|
|
3513
|
-
},
|
|
3514
|
-
{
|
|
3515
|
-
label: "日本語 / 明朝",
|
|
3516
|
-
variants: FONT_FAMILY_VARIANTS.filter((v) => v.meta?.lang === "ja" && v.meta?.type === "min")
|
|
3517
|
-
},
|
|
3518
|
-
{
|
|
3519
|
-
label: "英語",
|
|
3520
|
-
variants: FONT_FAMILY_VARIANTS.filter((v) => v.meta?.lang === "en")
|
|
3521
|
-
}
|
|
3522
|
-
];
|
|
3523
|
-
const SHADOW_VARIANT = {
|
|
3524
|
-
extra_small: {
|
|
3525
|
-
name: "エクストラスモール",
|
|
3526
|
-
getProps: () => ({ shadow: "0 1px 2px 0 rgba(0,0,0,0.1)" })
|
|
3527
|
-
},
|
|
3528
|
-
small: {
|
|
3529
|
-
name: "スモール",
|
|
3530
|
-
getProps: () => ({ shadow: "0 2px 4px 1px rgba(0,0,0,0.1)" })
|
|
3531
|
-
},
|
|
3532
|
-
medium: {
|
|
3533
|
-
name: "ミディアム",
|
|
3534
|
-
getProps: () => ({ shadow: "0px 4px 8px 2px rgba(0,0,0,0.1)" })
|
|
3535
|
-
},
|
|
3536
|
-
large: {
|
|
3537
|
-
name: "ラージ",
|
|
3538
|
-
getProps: () => ({ shadow: "0px 8px 16px 4px rgba(0,0,0,0.1)" })
|
|
3539
|
-
}
|
|
3540
|
-
};
|
|
3541
|
-
const SHADOW_VARIANTS = toVariantArray(SHADOW_VARIANT);
|
|
3542
|
-
const BACKGROUND_COLOR_VARIANT = {
|
|
3543
|
-
base: {
|
|
3544
|
-
name: "ホワイト",
|
|
3545
|
-
getProps: () => ({ backgroundColor: "#FFFFFF" })
|
|
3546
|
-
},
|
|
3547
|
-
dark: {
|
|
3548
|
-
name: "ブラック",
|
|
3549
|
-
getProps: () => ({ backgroundColor: "#000000" })
|
|
3550
|
-
},
|
|
3551
|
-
gray: {
|
|
3552
|
-
name: "グレー",
|
|
3553
|
-
getProps: () => ({ backgroundColor: "#ECECEC" })
|
|
3554
|
-
},
|
|
3555
|
-
brand: {
|
|
3556
|
-
name: "ブランド",
|
|
3557
|
-
getProps: (kit) => ({ backgroundColor: getBrandKit(kit).color_brand })
|
|
3558
|
-
},
|
|
3559
|
-
danger: {
|
|
3560
|
-
name: "デンジャー",
|
|
3561
|
-
getProps: (kit) => ({ backgroundColor: getBrandKit(kit).color_danger })
|
|
3562
|
-
}
|
|
3563
|
-
};
|
|
3564
|
-
const BACKGROUND_COLOR_VARIANTS = toVariantArray(BACKGROUND_COLOR_VARIANT);
|
|
3565
|
-
const BORDER_COLOR_VARIANT = {
|
|
3566
|
-
black: {
|
|
3567
|
-
name: "ブラック",
|
|
3568
|
-
getProps: () => ({ borderColor: "#000000" })
|
|
3569
|
-
},
|
|
3570
|
-
gray: {
|
|
3571
|
-
name: "グレー",
|
|
3572
|
-
getProps: () => ({ borderColor: "#DBDBDB" })
|
|
3573
|
-
},
|
|
3574
|
-
brand: {
|
|
3575
|
-
name: "ブランド",
|
|
3576
|
-
getProps: (kit) => ({ borderColor: getBrandKit(kit).color_brand })
|
|
3577
|
-
},
|
|
3578
|
-
danger: {
|
|
3579
|
-
name: "デンジャー",
|
|
3580
|
-
getProps: (kit) => ({ borderColor: getBrandKit(kit).color_danger })
|
|
3581
|
-
},
|
|
3582
|
-
base: {
|
|
3583
|
-
name: "ホワイト",
|
|
3584
|
-
getProps: () => ({ borderColor: "#FFFFFF" })
|
|
3585
|
-
}
|
|
3586
|
-
};
|
|
3587
|
-
const BORDER_COLOR_VARIANTS = toVariantArray(BORDER_COLOR_VARIANT);
|
|
3588
|
-
|
|
3589
|
-
//#endregion
|
|
3590
|
-
//#region src/components-flex/utils/prop-to-style.ts
|
|
3591
|
-
const toCssPosition = (p) => {
|
|
3592
|
-
return {
|
|
3593
|
-
position: p?.position ?? "static",
|
|
3594
|
-
top: p?.top,
|
|
3595
|
-
left: p?.left,
|
|
3596
|
-
bottom: p?.bottom,
|
|
3597
|
-
right: p?.right,
|
|
3598
|
-
transform: p?.transform
|
|
3599
|
-
};
|
|
3600
|
-
};
|
|
3601
|
-
const toCssCommon = (p) => {
|
|
3602
|
-
return { ...toCssPosition(p) };
|
|
3603
|
-
};
|
|
3604
|
-
const toCssBorder = (p, brandKit) => {
|
|
3605
|
-
const borderWidth = p?.borderTopWidth ?? p?.borderRightWidth ?? p?.borderLeftWidth ?? p?.borderBottomWidth ?? null;
|
|
3606
|
-
if (borderWidth === null) return {};
|
|
3607
|
-
const variant = BORDER_COLOR_VARIANT[p?.borderColorVariant];
|
|
3608
|
-
return {
|
|
3609
|
-
borderColor: p?.borderColor ?? variant?.getProps(brandKit)?.borderColor,
|
|
3610
|
-
borderStyle: "solid",
|
|
3611
|
-
borderTopWidth: p?.borderTopWidth,
|
|
3612
|
-
borderLeftWidth: p?.borderLeftWidth,
|
|
3613
|
-
borderRightWidth: p?.borderRightWidth,
|
|
3614
|
-
borderBottomWidth: p?.borderBottomWidth
|
|
3615
|
-
};
|
|
3616
|
-
};
|
|
3617
|
-
const toCssPadding = (p) => {
|
|
3618
|
-
return {
|
|
3619
|
-
paddingTop: p?.paddingTop,
|
|
3620
|
-
paddingLeft: p?.paddingLeft,
|
|
3621
|
-
paddingRight: p?.paddingRight,
|
|
3622
|
-
paddingBottom: p?.paddingBottom
|
|
3623
|
-
};
|
|
3624
|
-
};
|
|
3625
|
-
const toCssBackground = (p, brandKit) => {
|
|
3626
|
-
const url = p?.backgroundImageUrl;
|
|
3627
|
-
const variant = BACKGROUND_COLOR_VARIANT[p?.backgroundColorVariant];
|
|
3628
|
-
return {
|
|
3629
|
-
backgroundColor: p?.backgroundBlendColor ?? p?.backgroundColor ?? variant?.getProps(brandKit)?.backgroundColor,
|
|
3630
|
-
...url ? {
|
|
3631
|
-
backgroundSize: url ? p.backgroundSize ?? "cover" : void 0,
|
|
3632
|
-
backgroundImage: url ? `url(${url})` : void 0,
|
|
3633
|
-
backgroundPositionX: p?.backgroundPositionX ?? "center",
|
|
3634
|
-
backgroundPositionY: p?.backgroundPositionY ?? "center",
|
|
3635
|
-
backgroundBlendMode: p?.backgroundBlendMode,
|
|
3636
|
-
backgroundRepeat: "no-repeat"
|
|
3637
|
-
} : {}
|
|
3638
|
-
};
|
|
3639
|
-
};
|
|
3640
|
-
const toCssRadius = (p) => {
|
|
3641
|
-
return {
|
|
3642
|
-
borderTopLeftRadius: p?.borderTopLeftRadius,
|
|
3643
|
-
borderTopRightRadius: p?.borderTopRightRadius,
|
|
3644
|
-
borderBottomLeftRadius: p?.borderBottomLeftRadius,
|
|
3645
|
-
borderBottomRightRadius: p?.borderBottomRightRadius
|
|
3646
|
-
};
|
|
3647
|
-
};
|
|
3648
|
-
const toCssShadow = (p) => {
|
|
3649
|
-
const variant = SHADOW_VARIANT[p?.shadowVariant];
|
|
3650
|
-
return { boxShadow: p?.shadow ?? variant?.getProps()?.shadow };
|
|
3651
|
-
};
|
|
3652
|
-
const toCssOverflow = (p) => {
|
|
3653
|
-
return { overflow: p?.overflow };
|
|
3654
|
-
};
|
|
3655
|
-
|
|
3656
|
-
//#endregion
|
|
3657
|
-
//#region src/functions.ts
|
|
3658
|
-
function _moveTo(to) {
|
|
3659
|
-
const currentState = getState();
|
|
3660
|
-
window.dispatchEvent(new CustomEvent(ACTION_CHANGE_STATE_EVENT, { detail: {
|
|
3661
|
-
from: currentState,
|
|
3662
|
-
to,
|
|
3663
|
-
actionId
|
|
3664
|
-
} }));
|
|
3665
|
-
}
|
|
3666
|
-
/** @internal */
|
|
3667
|
-
const moveTo = (to) => () => {
|
|
3668
|
-
_moveTo(to);
|
|
3669
|
-
};
|
|
3670
|
-
/** @internal */
|
|
3671
|
-
const linkTo = (to, targetBlank = true, decode = false, keepNativeActionViewed = false) => () => {
|
|
3672
|
-
const decodedTo = decode ? decodeURI(to) : to;
|
|
3673
|
-
const { target } = getActionRunnerContext() ?? {};
|
|
3674
|
-
async function sleep(ms) {
|
|
3675
|
-
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
3676
|
-
}
|
|
3677
|
-
async function _send() {
|
|
3678
|
-
send_event("message_click", {
|
|
3679
|
-
url: decodedTo,
|
|
3680
|
-
state: getState()
|
|
3681
|
-
});
|
|
3682
|
-
await sleep(450);
|
|
3683
|
-
}
|
|
3684
|
-
let doTransitionByLocation = true;
|
|
3685
|
-
if (target === "native" && targetBlank && keepNativeActionViewed) {
|
|
3686
|
-
const win = window;
|
|
3687
|
-
const nativeMessageName = "open_url";
|
|
3688
|
-
const nativeMessageData = {
|
|
3689
|
-
url: decodedTo,
|
|
3690
|
-
target: "_blank"
|
|
3691
|
-
};
|
|
3692
|
-
win.NativeBridge?.onReceivedMessage(nativeMessageName, JSON.stringify(nativeMessageData));
|
|
3693
|
-
win.webkit?.messageHandlers[nativeMessageName]?.postMessage(nativeMessageData);
|
|
3694
|
-
doTransitionByLocation = false;
|
|
3695
|
-
} else if (target === "web" && targetBlank) {
|
|
3696
|
-
window.open(decodedTo, "_blank");
|
|
3697
|
-
doTransitionByLocation = false;
|
|
3698
|
-
}
|
|
3699
|
-
Promise.race([_send(), sleep(650)]).then(() => {
|
|
3700
|
-
if (doTransitionByLocation) location.href = decodedTo;
|
|
3701
|
-
});
|
|
3702
|
-
};
|
|
3703
|
-
/** @internal */
|
|
3704
|
-
const closeApp = (trigger) => () => {
|
|
3705
|
-
window.dispatchEvent(new CustomEvent(ACTION_CLOSE_EVENT, { detail: { trigger } }));
|
|
3706
|
-
};
|
|
3707
|
-
/** @internal */
|
|
3708
|
-
const runScript = (handlerName) => () => {
|
|
3709
|
-
const handlers = getEventHandlers();
|
|
3710
|
-
const handler = handlers[handlerName];
|
|
3711
|
-
if (!handler) return;
|
|
3712
|
-
try {
|
|
3713
|
-
handler();
|
|
3714
|
-
} catch (e) {
|
|
3715
|
-
console.warn("Failed to run custom handler", handlerName, e);
|
|
3716
|
-
}
|
|
3717
|
-
};
|
|
3718
|
-
/** @internal */
|
|
3719
|
-
const submitForm = (to) => () => {
|
|
3720
|
-
const { values, identifyValues } = submit();
|
|
3721
|
-
send_event("_answer_question", values);
|
|
3722
|
-
if (Object.keys(identifyValues ?? {}).length > 0) send_event("identify", identifyValues);
|
|
3723
|
-
_moveTo(to);
|
|
3678
|
+
/** @internal */
|
|
3679
|
+
const submitForm = (to) => () => {
|
|
3680
|
+
const { values, identifyValues } = submit();
|
|
3681
|
+
send_event("_answer_question", values);
|
|
3682
|
+
if (Object.keys(identifyValues ?? {}).length > 0) send_event("identify", identifyValues);
|
|
3683
|
+
_moveTo(to);
|
|
3724
3684
|
};
|
|
3725
3685
|
/** @internal */
|
|
3726
3686
|
const submitFormProgress = (to) => () => {
|
|
@@ -3746,6 +3706,42 @@ const submitFormFinal = (to) => () => {
|
|
|
3746
3706
|
});
|
|
3747
3707
|
};
|
|
3748
3708
|
/** @internal */
|
|
3709
|
+
const slideTo = (name, target, slideNumber, _hiddenIsDisabled) => () => {
|
|
3710
|
+
sliderStates.update((updater) => {
|
|
3711
|
+
if (!updater[name]) return;
|
|
3712
|
+
const state$1 = updater[name];
|
|
3713
|
+
const toIndex = (() => {
|
|
3714
|
+
if (target === "number") return typeof slideNumber === "number" ? slideNumber - 1 : 0;
|
|
3715
|
+
else if (target === "prev") return state$1.currentIndex - 1;
|
|
3716
|
+
else if (target === "next") return state$1.currentIndex + 1;
|
|
3717
|
+
else if (target === "first") return 0;
|
|
3718
|
+
else if (target === "end") return state$1.slides - 1;
|
|
3719
|
+
})();
|
|
3720
|
+
const is_next = (() => {
|
|
3721
|
+
if (state$1.loop && state$1.currentIndex === state$1.slides - 1 && toIndex === 0) return true;
|
|
3722
|
+
return toIndex > state$1.currentIndex;
|
|
3723
|
+
})();
|
|
3724
|
+
const is_prev = (() => {
|
|
3725
|
+
if (state$1.loop && state$1.currentIndex === 0 && toIndex === state$1.slides - 1) return true;
|
|
3726
|
+
return toIndex < state$1.currentIndex;
|
|
3727
|
+
})();
|
|
3728
|
+
const slide_no = toIndex + 1;
|
|
3729
|
+
const is_finished = toIndex === state$1.slides - 1;
|
|
3730
|
+
if (state$1.loop || toIndex <= state$1.slides - 1 && toIndex >= 0 && toIndex !== state$1.currentIndex) {
|
|
3731
|
+
updater[name].currentIndex = toIndex < 0 ? state$1.slides - 1 : toIndex > state$1.slides - 1 ? 0 : toIndex;
|
|
3732
|
+
send_event("_slide_to", {
|
|
3733
|
+
name,
|
|
3734
|
+
is_next,
|
|
3735
|
+
is_prev,
|
|
3736
|
+
slide_no,
|
|
3737
|
+
is_finished,
|
|
3738
|
+
slide_count: state$1.slides
|
|
3739
|
+
});
|
|
3740
|
+
}
|
|
3741
|
+
return updater;
|
|
3742
|
+
});
|
|
3743
|
+
};
|
|
3744
|
+
/** @internal */
|
|
3749
3745
|
const bootChat = (hide_launcher, placement_pc, placement_mobile, horizontal_spacing_pc, horizontal_spacing_mobile, vertical_spacing_pc, vertical_spacing_mobile, theme_color, header_title, header_description, launcher_image) => () => {
|
|
3750
3746
|
const options = {
|
|
3751
3747
|
hide_launcher,
|
|
@@ -3776,6 +3772,7 @@ const execOnClickOperation = (onClickOperation) => {
|
|
|
3776
3772
|
else if (onClickOperation.operation === "submitFormFinal") submitFormFinal(onClickOperation.args[0])();
|
|
3777
3773
|
else if (onClickOperation.operation === "submitFormProgress") submitFormProgress(onClickOperation.args[0])();
|
|
3778
3774
|
else if (onClickOperation.operation === "bootChat") bootChat(...onClickOperation.args)();
|
|
3775
|
+
else if (onClickOperation.operation === "slideTo") slideTo(...onClickOperation.args)();
|
|
3779
3776
|
};
|
|
3780
3777
|
function getAnimation(animation) {
|
|
3781
3778
|
switch (animation.type) {
|
|
@@ -3834,7 +3831,7 @@ const EASING = {
|
|
|
3834
3831
|
*
|
|
3835
3832
|
* @internal
|
|
3836
3833
|
*/
|
|
3837
|
-
function customAnimation(
|
|
3834
|
+
function customAnimation(_node, { transforms, animationStyle, delay = 0, duration = 1e3 }) {
|
|
3838
3835
|
if (!isOnSite()) return {};
|
|
3839
3836
|
let [x, y] = [0, 0];
|
|
3840
3837
|
for (const { query, x: tx, y: ty } of transforms) if (query == null || window.matchMedia(query).matches) {
|
|
@@ -3842,93 +3839,338 @@ function customAnimation(node, { transforms, animationStyle, delay = 0, duration
|
|
|
3842
3839
|
y = ty;
|
|
3843
3840
|
break;
|
|
3844
3841
|
}
|
|
3845
|
-
return {
|
|
3846
|
-
delay,
|
|
3847
|
-
duration,
|
|
3848
|
-
easing: EASING[animationStyle],
|
|
3849
|
-
css: (progress) => getAnimation({
|
|
3850
|
-
type: animationStyle,
|
|
3851
|
-
x,
|
|
3852
|
-
y,
|
|
3853
|
-
progress
|
|
3854
|
-
})
|
|
3855
|
-
};
|
|
3856
|
-
}
|
|
3842
|
+
return {
|
|
3843
|
+
delay,
|
|
3844
|
+
duration,
|
|
3845
|
+
easing: EASING[animationStyle],
|
|
3846
|
+
css: (progress) => getAnimation({
|
|
3847
|
+
type: animationStyle,
|
|
3848
|
+
x,
|
|
3849
|
+
y,
|
|
3850
|
+
progress
|
|
3851
|
+
})
|
|
3852
|
+
};
|
|
3853
|
+
}
|
|
3854
|
+
|
|
3855
|
+
//#endregion
|
|
3856
|
+
//#region src/hooks/useClickable.ts
|
|
3857
|
+
function useClickable(props = {}) {
|
|
3858
|
+
const getHref = (onClick) => {
|
|
3859
|
+
if (!onClick) return void 0;
|
|
3860
|
+
if (onClick.operation === "callNativeFunction") return String(onClick.args[0]);
|
|
3861
|
+
if (onClick.operation === "linkTo") {
|
|
3862
|
+
const href = String(onClick.args[0]) || "";
|
|
3863
|
+
return onClick.args[2] ?? false ? decodeURI(href) : href;
|
|
3864
|
+
}
|
|
3865
|
+
};
|
|
3866
|
+
const getTarget = (onClick) => {
|
|
3867
|
+
if (!onClick) return void 0;
|
|
3868
|
+
if (onClick.operation !== "linkTo") return void 0;
|
|
3869
|
+
return onClick.args[1] ? "_blank" : void 0;
|
|
3870
|
+
};
|
|
3871
|
+
function handleClick(e, { onClick, eventValue, eventName }, disabled) {
|
|
3872
|
+
if (!onClick || onClick.operation === "none") return;
|
|
3873
|
+
e.stopPropagation();
|
|
3874
|
+
e.preventDefault();
|
|
3875
|
+
if (disabled) return;
|
|
3876
|
+
if (eventName) send_event(eventName, eventValue);
|
|
3877
|
+
execOnClickOperation(onClick);
|
|
3878
|
+
}
|
|
3879
|
+
function getFixedElement({ onClick, element }) {
|
|
3880
|
+
if (!onClick) return element ?? "div";
|
|
3881
|
+
switch (onClick.operation) {
|
|
3882
|
+
case "linkTo":
|
|
3883
|
+
case "callNativeFunction": return "a";
|
|
3884
|
+
case "none": return element;
|
|
3885
|
+
default: return "button";
|
|
3886
|
+
}
|
|
3887
|
+
}
|
|
3888
|
+
const defaultValue = {
|
|
3889
|
+
element: getFixedElement(props),
|
|
3890
|
+
attributes: {
|
|
3891
|
+
href: getHref(props.onClick),
|
|
3892
|
+
target: getTarget(props.onClick),
|
|
3893
|
+
"data-clickable": props.onClick !== void 0 && props.onClick.operation !== "none",
|
|
3894
|
+
disabled: false,
|
|
3895
|
+
"aria-disabled": false,
|
|
3896
|
+
"aria-hidden": false
|
|
3897
|
+
},
|
|
3898
|
+
handleClick: (e) => handleClick(e, props)
|
|
3899
|
+
};
|
|
3900
|
+
return readable(defaultValue, (set) => {
|
|
3901
|
+
let unsubscribe = null;
|
|
3902
|
+
if (props.onClick?.operation === "slideTo") {
|
|
3903
|
+
const [sliderId, sliderTarget, slideNumber, hiddenIsDisabled] = props.onClick.args;
|
|
3904
|
+
unsubscribe = sliderStates.subscribe(($states) => {
|
|
3905
|
+
const state$1 = $states[sliderId];
|
|
3906
|
+
if (!state$1 || state$1.loop) return;
|
|
3907
|
+
let nextDisabled = false;
|
|
3908
|
+
if (sliderTarget === "next") nextDisabled = state$1.currentIndex >= state$1.slides - 1;
|
|
3909
|
+
else if (sliderTarget === "prev") nextDisabled = state$1.currentIndex <= 0;
|
|
3910
|
+
else if (sliderTarget === "first") nextDisabled = state$1.currentIndex === 0;
|
|
3911
|
+
else if (sliderTarget === "end") nextDisabled = state$1.currentIndex >= state$1.slides - 1;
|
|
3912
|
+
else if (sliderTarget === "number" && typeof slideNumber !== "undefined") nextDisabled = state$1.currentIndex === slideNumber - 1;
|
|
3913
|
+
set(Object.assign({}, defaultValue, {
|
|
3914
|
+
attributes: {
|
|
3915
|
+
...defaultValue.attributes,
|
|
3916
|
+
disabled: nextDisabled,
|
|
3917
|
+
"aria-disabled": nextDisabled,
|
|
3918
|
+
"aria-hidden": hiddenIsDisabled && nextDisabled
|
|
3919
|
+
},
|
|
3920
|
+
handleClick: (e) => handleClick(e, props, nextDisabled)
|
|
3921
|
+
}));
|
|
3922
|
+
});
|
|
3923
|
+
}
|
|
3924
|
+
return () => {
|
|
3925
|
+
if (unsubscribe) unsubscribe();
|
|
3926
|
+
};
|
|
3927
|
+
});
|
|
3928
|
+
}
|
|
3929
|
+
var useClickable_default = useClickable;
|
|
3930
|
+
|
|
3931
|
+
//#endregion
|
|
3932
|
+
//#region src/components-flex/variants.ts
|
|
3933
|
+
const toVariantArray = (group) => {
|
|
3934
|
+
return Object.keys(group).map((key) => ({
|
|
3935
|
+
...group[key],
|
|
3936
|
+
code: key
|
|
3937
|
+
}));
|
|
3938
|
+
};
|
|
3939
|
+
const ASPECT_VARIANT = {
|
|
3940
|
+
square: {
|
|
3941
|
+
name: "1:1",
|
|
3942
|
+
description: "正方形の画角",
|
|
3943
|
+
getProps: () => ({ aspect: "1 / 1" })
|
|
3944
|
+
},
|
|
3945
|
+
photo_hr: {
|
|
3946
|
+
name: "3:2",
|
|
3947
|
+
description: "一眼レフ、フィルムカメラ",
|
|
3948
|
+
getProps: () => ({ aspect: "3 / 2" })
|
|
3949
|
+
},
|
|
3950
|
+
movie_old_hr: {
|
|
3951
|
+
name: "4:3",
|
|
3952
|
+
description: "iPhoneカメラ、デジカメ",
|
|
3953
|
+
getProps: () => ({ aspect: "4 / 3" })
|
|
3954
|
+
},
|
|
3955
|
+
og_image: {
|
|
3956
|
+
name: "1.91:1",
|
|
3957
|
+
description: "SNSのOG画像、横長バナー",
|
|
3958
|
+
getProps: () => ({ aspect: "1.91 / 1" })
|
|
3959
|
+
},
|
|
3960
|
+
movie_hr: {
|
|
3961
|
+
name: "16:9",
|
|
3962
|
+
getProps: () => ({ aspect: "16 / 9" }),
|
|
3963
|
+
description: "Youtube、TV、横長バナー"
|
|
3964
|
+
},
|
|
3965
|
+
movie_old_vt: {
|
|
3966
|
+
name: "3:4",
|
|
3967
|
+
description: "iPhoneカメラ、デジカメ (タテ)",
|
|
3968
|
+
getProps: () => ({ aspect: "3 / 4" })
|
|
3969
|
+
},
|
|
3970
|
+
movie_vt: {
|
|
3971
|
+
name: "9:16",
|
|
3972
|
+
description: "TikTok、Shortsなど縦型動画",
|
|
3973
|
+
getProps: () => ({ aspect: "9 / 16" })
|
|
3974
|
+
}
|
|
3975
|
+
};
|
|
3976
|
+
const ASPECT_VARIANTS = toVariantArray(ASPECT_VARIANT);
|
|
3977
|
+
const createFontVariant = (font, lang, type) => {
|
|
3978
|
+
return {
|
|
3979
|
+
name: font,
|
|
3980
|
+
meta: {
|
|
3981
|
+
lang,
|
|
3982
|
+
type
|
|
3983
|
+
},
|
|
3984
|
+
getProps: () => ({ fontFamily: font })
|
|
3985
|
+
};
|
|
3986
|
+
};
|
|
3987
|
+
const FONT_FAMILY_VARIANT = {
|
|
3988
|
+
default: {
|
|
3989
|
+
name: `デフォルト`,
|
|
3990
|
+
meta: {
|
|
3991
|
+
type: "kaku",
|
|
3992
|
+
lang: "ja"
|
|
3993
|
+
},
|
|
3994
|
+
getProps: (brandKit) => ({ fontFamily: brandKit?.font_family ?? SYSTEM_FONT })
|
|
3995
|
+
},
|
|
3996
|
+
noto_sans_jp: createFontVariant("Noto Sans JP", "ja", "kaku"),
|
|
3997
|
+
sawarabi_gothic: createFontVariant("Sawarabi Gothic", "ja", "kaku"),
|
|
3998
|
+
zen_kaku_gothic: createFontVariant("Zen Kaku Gothic", "ja", "kaku"),
|
|
3999
|
+
biz_udp_gothic: createFontVariant("BIZ UDPGothic", "ja", "kaku"),
|
|
4000
|
+
open_sans: createFontVariant("Open Sans", "ja", "kaku"),
|
|
4001
|
+
sans_serif: createFontVariant("sans-serif", "ja", "kaku"),
|
|
4002
|
+
m_plus_1p: createFontVariant("M PLUS 1p", "ja", "maru"),
|
|
4003
|
+
m_plus_rounded_1c: createFontVariant("M PLUS Rounded 1c", "ja", "maru"),
|
|
4004
|
+
kiwi_maru: createFontVariant("Kiwi Maru", "ja", "maru"),
|
|
4005
|
+
zen_maru_gothic: createFontVariant("Zen Maru Gothic", "ja", "maru"),
|
|
4006
|
+
noto_serif_jp: createFontVariant("Noto Serif JP", "ja", "min"),
|
|
4007
|
+
shippori_micho: createFontVariant("Shippori Mincho", "ja", "min"),
|
|
4008
|
+
biz_udp_micho: createFontVariant("BIZ UDPMincho", "ja", "min"),
|
|
4009
|
+
serif: createFontVariant("serif", "ja", "min"),
|
|
4010
|
+
anton: createFontVariant("Anton", "en", "kaku"),
|
|
4011
|
+
barlow: createFontVariant("Barlow", "en", "kaku"),
|
|
4012
|
+
fraunces: createFontVariant("Fraunces", "en", "kaku"),
|
|
4013
|
+
inter: createFontVariant("Inter", "en", "kaku"),
|
|
4014
|
+
lato: createFontVariant("Lato", "en", "kaku"),
|
|
4015
|
+
lora: createFontVariant("Lora", "en", "kaku"),
|
|
4016
|
+
monospace: createFontVariant("monospace", "en", "kaku"),
|
|
4017
|
+
montserrat: createFontVariant("Montserrat", "en", "kaku"),
|
|
4018
|
+
outfit: createFontVariant("Outfit", "en", "kaku"),
|
|
4019
|
+
playfair_display: createFontVariant("Playfair Display", "en", "kaku"),
|
|
4020
|
+
poppins: createFontVariant("Poppins", "en", "kaku"),
|
|
4021
|
+
raleway: createFontVariant("Raleway", "en", "kaku"),
|
|
4022
|
+
roboto: createFontVariant("Roboto", "en", "kaku"),
|
|
4023
|
+
system_ui: createFontVariant("system-ui", "en", "kaku")
|
|
4024
|
+
};
|
|
4025
|
+
const FONT_FAMILY_VARIANTS = toVariantArray(FONT_FAMILY_VARIANT);
|
|
4026
|
+
const FONT_FAMILY_VARIANT_GROUPS = [
|
|
4027
|
+
{
|
|
4028
|
+
label: "日本語 / 角ゴシック",
|
|
4029
|
+
variants: FONT_FAMILY_VARIANTS.filter((v) => v.meta?.lang === "ja" && v.meta?.type === "kaku")
|
|
4030
|
+
},
|
|
4031
|
+
{
|
|
4032
|
+
label: "日本語 / 丸ゴシック",
|
|
4033
|
+
variants: FONT_FAMILY_VARIANTS.filter((v) => v.meta?.lang === "ja" && v.meta?.type === "maru")
|
|
4034
|
+
},
|
|
4035
|
+
{
|
|
4036
|
+
label: "日本語 / 明朝",
|
|
4037
|
+
variants: FONT_FAMILY_VARIANTS.filter((v) => v.meta?.lang === "ja" && v.meta?.type === "min")
|
|
4038
|
+
},
|
|
4039
|
+
{
|
|
4040
|
+
label: "英語",
|
|
4041
|
+
variants: FONT_FAMILY_VARIANTS.filter((v) => v.meta?.lang === "en")
|
|
4042
|
+
}
|
|
4043
|
+
];
|
|
4044
|
+
const SHADOW_VARIANT = {
|
|
4045
|
+
extra_small: {
|
|
4046
|
+
name: "エクストラスモール",
|
|
4047
|
+
getProps: () => ({ shadow: "0 1px 2px 0 rgba(0,0,0,0.1)" })
|
|
4048
|
+
},
|
|
4049
|
+
small: {
|
|
4050
|
+
name: "スモール",
|
|
4051
|
+
getProps: () => ({ shadow: "0 2px 4px 1px rgba(0,0,0,0.1)" })
|
|
4052
|
+
},
|
|
4053
|
+
medium: {
|
|
4054
|
+
name: "ミディアム",
|
|
4055
|
+
getProps: () => ({ shadow: "0px 4px 8px 2px rgba(0,0,0,0.1)" })
|
|
4056
|
+
},
|
|
4057
|
+
large: {
|
|
4058
|
+
name: "ラージ",
|
|
4059
|
+
getProps: () => ({ shadow: "0px 8px 16px 4px rgba(0,0,0,0.1)" })
|
|
4060
|
+
}
|
|
4061
|
+
};
|
|
4062
|
+
const SHADOW_VARIANTS = toVariantArray(SHADOW_VARIANT);
|
|
4063
|
+
const BACKGROUND_COLOR_VARIANT = {
|
|
4064
|
+
base: {
|
|
4065
|
+
name: "ホワイト",
|
|
4066
|
+
getProps: () => ({ backgroundColor: "#FFFFFF" })
|
|
4067
|
+
},
|
|
4068
|
+
dark: {
|
|
4069
|
+
name: "ブラック",
|
|
4070
|
+
getProps: () => ({ backgroundColor: "#000000" })
|
|
4071
|
+
},
|
|
4072
|
+
gray: {
|
|
4073
|
+
name: "グレー",
|
|
4074
|
+
getProps: () => ({ backgroundColor: "#ECECEC" })
|
|
4075
|
+
},
|
|
4076
|
+
brand: {
|
|
4077
|
+
name: "ブランド",
|
|
4078
|
+
getProps: (kit) => ({ backgroundColor: getBrandKit(kit).color_brand })
|
|
4079
|
+
},
|
|
4080
|
+
danger: {
|
|
4081
|
+
name: "デンジャー",
|
|
4082
|
+
getProps: (kit) => ({ backgroundColor: getBrandKit(kit).color_danger })
|
|
4083
|
+
}
|
|
4084
|
+
};
|
|
4085
|
+
const BACKGROUND_COLOR_VARIANTS = toVariantArray(BACKGROUND_COLOR_VARIANT);
|
|
4086
|
+
const BORDER_COLOR_VARIANT = {
|
|
4087
|
+
black: {
|
|
4088
|
+
name: "ブラック",
|
|
4089
|
+
getProps: () => ({ borderColor: "#000000" })
|
|
4090
|
+
},
|
|
4091
|
+
gray: {
|
|
4092
|
+
name: "グレー",
|
|
4093
|
+
getProps: () => ({ borderColor: "#DBDBDB" })
|
|
4094
|
+
},
|
|
4095
|
+
brand: {
|
|
4096
|
+
name: "ブランド",
|
|
4097
|
+
getProps: (kit) => ({ borderColor: getBrandKit(kit).color_brand })
|
|
4098
|
+
},
|
|
4099
|
+
danger: {
|
|
4100
|
+
name: "デンジャー",
|
|
4101
|
+
getProps: (kit) => ({ borderColor: getBrandKit(kit).color_danger })
|
|
4102
|
+
},
|
|
4103
|
+
base: {
|
|
4104
|
+
name: "ホワイト",
|
|
4105
|
+
getProps: () => ({ borderColor: "#FFFFFF" })
|
|
4106
|
+
}
|
|
4107
|
+
};
|
|
4108
|
+
const BORDER_COLOR_VARIANTS = toVariantArray(BORDER_COLOR_VARIANT);
|
|
3857
4109
|
|
|
3858
4110
|
//#endregion
|
|
3859
|
-
//#region src/
|
|
3860
|
-
const
|
|
3861
|
-
|
|
3862
|
-
|
|
3863
|
-
|
|
3864
|
-
|
|
3865
|
-
|
|
3866
|
-
|
|
3867
|
-
|
|
3868
|
-
|
|
4111
|
+
//#region src/components-flex/utils/prop-to-style.ts
|
|
4112
|
+
const toCssPosition = (p) => {
|
|
4113
|
+
return {
|
|
4114
|
+
position: p?.position,
|
|
4115
|
+
top: p?.top,
|
|
4116
|
+
left: p?.left,
|
|
4117
|
+
bottom: p?.bottom,
|
|
4118
|
+
right: p?.right,
|
|
4119
|
+
transform: p?.transform
|
|
4120
|
+
};
|
|
3869
4121
|
};
|
|
3870
|
-
const
|
|
3871
|
-
|
|
3872
|
-
if (onClick.operation !== "linkTo") return void 0;
|
|
3873
|
-
return onClick.args[1] ? "_blank" : void 0;
|
|
4122
|
+
const toCssCommon = (p) => {
|
|
4123
|
+
return { ...toCssPosition(p) };
|
|
3874
4124
|
};
|
|
3875
|
-
const
|
|
3876
|
-
|
|
3877
|
-
|
|
3878
|
-
|
|
3879
|
-
|
|
3880
|
-
|
|
3881
|
-
|
|
3882
|
-
|
|
3883
|
-
|
|
3884
|
-
|
|
3885
|
-
const attributes = {
|
|
3886
|
-
href: getHref(onClick),
|
|
3887
|
-
target: getTarget(onClick),
|
|
3888
|
-
"data-clickable": onClick !== void 0 && onClick.operation !== "none"
|
|
4125
|
+
const toCssBorder = (p, brandKit) => {
|
|
4126
|
+
if ((p?.borderTopWidth ?? p?.borderRightWidth ?? p?.borderLeftWidth ?? p?.borderBottomWidth ?? null) === null) return {};
|
|
4127
|
+
const variant = BORDER_COLOR_VARIANT[p?.borderColorVariant];
|
|
4128
|
+
return {
|
|
4129
|
+
borderColor: p?.borderColor ?? variant?.getProps(brandKit)?.borderColor,
|
|
4130
|
+
borderStyle: "solid",
|
|
4131
|
+
borderTopWidth: p?.borderTopWidth,
|
|
4132
|
+
borderLeftWidth: p?.borderLeftWidth,
|
|
4133
|
+
borderRightWidth: p?.borderRightWidth,
|
|
4134
|
+
borderBottomWidth: p?.borderBottomWidth
|
|
3889
4135
|
};
|
|
3890
|
-
|
|
3891
|
-
|
|
3892
|
-
e.stopPropagation();
|
|
3893
|
-
e.preventDefault();
|
|
3894
|
-
if (eventName) send_event(eventName, eventValue);
|
|
3895
|
-
execOnClickOperation(onClick);
|
|
3896
|
-
}
|
|
4136
|
+
};
|
|
4137
|
+
const toCssPadding = (p) => {
|
|
3897
4138
|
return {
|
|
3898
|
-
|
|
3899
|
-
|
|
3900
|
-
|
|
4139
|
+
paddingTop: p?.paddingTop,
|
|
4140
|
+
paddingLeft: p?.paddingLeft,
|
|
4141
|
+
paddingRight: p?.paddingRight,
|
|
4142
|
+
paddingBottom: p?.paddingBottom
|
|
3901
4143
|
};
|
|
3902
4144
|
};
|
|
3903
|
-
|
|
3904
|
-
|
|
3905
|
-
|
|
3906
|
-
|
|
3907
|
-
|
|
3908
|
-
|
|
3909
|
-
|
|
3910
|
-
|
|
3911
|
-
|
|
3912
|
-
|
|
3913
|
-
|
|
3914
|
-
|
|
3915
|
-
|
|
3916
|
-
|
|
3917
|
-
|
|
3918
|
-
|
|
3919
|
-
|
|
3920
|
-
|
|
3921
|
-
|
|
3922
|
-
|
|
3923
|
-
|
|
3924
|
-
|
|
3925
|
-
|
|
3926
|
-
|
|
3927
|
-
|
|
3928
|
-
|
|
3929
|
-
|
|
3930
|
-
|
|
3931
|
-
}
|
|
4145
|
+
const toCssBackground = (p, brandKit) => {
|
|
4146
|
+
const url = p?.backgroundImageUrl;
|
|
4147
|
+
const variant = BACKGROUND_COLOR_VARIANT[p?.backgroundColorVariant];
|
|
4148
|
+
return {
|
|
4149
|
+
backgroundColor: p?.backgroundBlendColor ?? p?.backgroundColor ?? variant?.getProps(brandKit)?.backgroundColor,
|
|
4150
|
+
...url ? {
|
|
4151
|
+
backgroundSize: url ? p.backgroundSize ?? "cover" : void 0,
|
|
4152
|
+
backgroundImage: url ? `url(${url})` : void 0,
|
|
4153
|
+
backgroundPositionX: p?.backgroundPositionX ?? "center",
|
|
4154
|
+
backgroundPositionY: p?.backgroundPositionY ?? "center",
|
|
4155
|
+
backgroundBlendMode: p?.backgroundBlendMode,
|
|
4156
|
+
backgroundRepeat: "no-repeat"
|
|
4157
|
+
} : {}
|
|
4158
|
+
};
|
|
4159
|
+
};
|
|
4160
|
+
const toCssRadius = (p) => {
|
|
4161
|
+
return {
|
|
4162
|
+
borderTopLeftRadius: p?.borderTopLeftRadius,
|
|
4163
|
+
borderTopRightRadius: p?.borderTopRightRadius,
|
|
4164
|
+
borderBottomLeftRadius: p?.borderBottomLeftRadius,
|
|
4165
|
+
borderBottomRightRadius: p?.borderBottomRightRadius
|
|
4166
|
+
};
|
|
4167
|
+
};
|
|
4168
|
+
const toCssShadow = (p) => {
|
|
4169
|
+
const variant = SHADOW_VARIANT[p?.shadowVariant];
|
|
4170
|
+
return { boxShadow: p?.shadow ?? variant?.getProps()?.shadow };
|
|
4171
|
+
};
|
|
4172
|
+
const toCssOverflow = (p) => {
|
|
4173
|
+
return { overflow: p?.overflow };
|
|
3932
4174
|
};
|
|
3933
4175
|
|
|
3934
4176
|
//#endregion
|
|
@@ -3957,89 +4199,131 @@ const AVATAR_SIZE_STYLES = {
|
|
|
3957
4199
|
};
|
|
3958
4200
|
|
|
3959
4201
|
//#endregion
|
|
3960
|
-
//#region src/components-flex/avatar/Avatar.
|
|
3961
|
-
var
|
|
3962
|
-
|
|
3963
|
-
|
|
3964
|
-
|
|
4202
|
+
//#region src/components-flex/avatar/Avatar.css.ts
|
|
4203
|
+
var Avatar_css_default = (layerId, props) => {
|
|
4204
|
+
return createComponentRawCss(layerId, (style) => [
|
|
4205
|
+
style("", {
|
|
4206
|
+
display: "flex",
|
|
4207
|
+
alignItems: "center",
|
|
4208
|
+
justifyContent: "center",
|
|
4209
|
+
overflow: "hidden",
|
|
4210
|
+
flexShrink: "0",
|
|
4211
|
+
border: "0",
|
|
4212
|
+
background: "none",
|
|
4213
|
+
padding: "0",
|
|
4214
|
+
margin: "0",
|
|
4215
|
+
textAlign: "center",
|
|
4216
|
+
appearance: "none"
|
|
4217
|
+
}),
|
|
4218
|
+
toDynamicStyle$3(layerId, props),
|
|
4219
|
+
...props.responsiveSettings?.map((v) => {
|
|
4220
|
+
if (v.mediaQueryCondition) return toResponsiveSelector(v, toDynamicStyle$3(layerId, v.props));
|
|
4221
|
+
else if (v.userAgentCondition) return "";
|
|
4222
|
+
return "";
|
|
4223
|
+
}) ?? [],
|
|
4224
|
+
props.customizeCss
|
|
4225
|
+
]);
|
|
4226
|
+
};
|
|
4227
|
+
const calcImgRadius = (parentRadius, borderWidth) => {
|
|
4228
|
+
const radiusSize = parentRadius ? parseInt(parentRadius) : 0;
|
|
4229
|
+
if (radiusSize === 0) return 0;
|
|
4230
|
+
if (parentRadius === "100%") return "100%";
|
|
4231
|
+
return radiusSize > 0 ? `calc(${parentRadius} - ${borderWidth})` : void 0;
|
|
4232
|
+
};
|
|
4233
|
+
const toDynamicStyle$3 = (layerId, props) => {
|
|
4234
|
+
const avatarSizeStyle = !isNaN(Number(props.size)) ? {
|
|
4235
|
+
width: `${props.size}px`,
|
|
4236
|
+
height: `${props.size}px`
|
|
4237
|
+
} : AVATAR_SIZE_STYLES[props.size] || AVATAR_SIZE_STYLES["medium"];
|
|
4238
|
+
const styleObj = {
|
|
4239
|
+
...{ shape: {
|
|
4240
|
+
circle: { borderRadius: "100%" },
|
|
4241
|
+
square: { borderRadius: "0.25em" },
|
|
4242
|
+
rounded: { borderRadius: "1em" }
|
|
4243
|
+
} }.shape[props.shape ?? "square"],
|
|
4244
|
+
width: props.width ?? avatarSizeStyle.width,
|
|
4245
|
+
height: props.height ?? avatarSizeStyle.height,
|
|
4246
|
+
...toCssCommon(props),
|
|
4247
|
+
...toCssBorder(props),
|
|
4248
|
+
...toCssPadding(props)
|
|
4249
|
+
};
|
|
4250
|
+
return createComponentRawCss(layerId, (style) => [style("", styleObj), style("img", {
|
|
4251
|
+
width: "100%",
|
|
4252
|
+
height: "100%",
|
|
4253
|
+
objectFit: "cover",
|
|
4254
|
+
...toCssRadius({
|
|
4255
|
+
borderTopLeftRadius: calcImgRadius(styleObj.borderRadius, styleObj.borderTopWidth),
|
|
4256
|
+
borderTopRightRadius: calcImgRadius(styleObj.borderRadius, styleObj.borderTopWidth),
|
|
4257
|
+
borderBottomLeftRadius: calcImgRadius(styleObj.borderRadius, styleObj.borderTopWidth),
|
|
4258
|
+
borderBottomRightRadius: calcImgRadius(styleObj.borderRadius, styleObj.borderTopWidth)
|
|
4259
|
+
})
|
|
4260
|
+
})]);
|
|
3965
4261
|
};
|
|
4262
|
+
|
|
4263
|
+
//#endregion
|
|
4264
|
+
//#region src/components-flex/avatar/Avatar.svelte
|
|
4265
|
+
var root_1$14 = $.template(`<img class="avatar-image">`);
|
|
4266
|
+
var root$54 = $.template(`<!> <!>`, 1);
|
|
3966
4267
|
function Avatar($$anchor, $$props) {
|
|
3967
4268
|
$.push($$props, false);
|
|
3968
|
-
|
|
3969
|
-
const
|
|
3970
|
-
const
|
|
3971
|
-
const
|
|
4269
|
+
const [$$stores, $$cleanup] = $.setup_stores();
|
|
4270
|
+
const $rProps = () => $.store_get($.get(rProps), "$rProps", $$stores);
|
|
4271
|
+
const $clickable = () => $.store_get($.get(clickable), "$clickable", $$stores);
|
|
4272
|
+
const rProps = $.mutable_state();
|
|
4273
|
+
const clickable = $.mutable_state();
|
|
3972
4274
|
let props = $.prop($$props, "props", 24, () => ({}));
|
|
3973
|
-
let layerId = $.prop($$props, "layerId",
|
|
3974
|
-
|
|
3975
|
-
|
|
3976
|
-
|
|
3977
|
-
width: `${props().size}px`,
|
|
3978
|
-
height: `${props().size}px`
|
|
3979
|
-
} : AVATAR_SIZE_STYLES[props().size] || AVATAR_SIZE_STYLES[avatarPropsDefault.size];
|
|
3980
|
-
const VARIANTS = { shape: {
|
|
3981
|
-
circle: { borderRadius: "100%" },
|
|
3982
|
-
square: { borderRadius: "0.25em" },
|
|
3983
|
-
rounded: { borderRadius: "1em" }
|
|
3984
|
-
} };
|
|
3985
|
-
const calcImgRadius = (parentRadius, borderWidth) => {
|
|
3986
|
-
const radiusSize = parentRadius ? parseInt(parentRadius) : 0;
|
|
3987
|
-
if (radiusSize === 0) return 0;
|
|
3988
|
-
if (parentRadius === "100%") return "100%";
|
|
3989
|
-
return radiusSize > 0 ? `calc(${parentRadius} - ${borderWidth})` : void 0;
|
|
3990
|
-
};
|
|
3991
|
-
$.legacy_pre_effect(() => ($.deep_read_state(props()), toCssPadding), () => {
|
|
3992
|
-
$.set(styleObj, {
|
|
3993
|
-
...VARIANTS.shape[props().shape ?? "square"],
|
|
3994
|
-
width: props().width ?? avatarSizeStyle.width,
|
|
3995
|
-
height: props().height ?? avatarSizeStyle.height,
|
|
3996
|
-
...toCssCommon(props()),
|
|
3997
|
-
...toCssBorder(props()),
|
|
3998
|
-
...toCssPadding(props())
|
|
3999
|
-
});
|
|
4000
|
-
});
|
|
4001
|
-
$.legacy_pre_effect(() => $.get(styleObj), () => {
|
|
4002
|
-
$.set(style, objToStyle($.get(styleObj)));
|
|
4275
|
+
let layerId = $.prop($$props, "layerId", 24, () => crypto.randomUUID());
|
|
4276
|
+
const cssText = Avatar_css_default(layerId(), props());
|
|
4277
|
+
$.legacy_pre_effect(() => $.deep_read_state(props()), () => {
|
|
4278
|
+
$.store_unsub($.set(rProps, useResponsiveProps(props())), "$rProps", $$stores);
|
|
4003
4279
|
});
|
|
4004
|
-
$.legacy_pre_effect(() =>
|
|
4005
|
-
$.set(
|
|
4006
|
-
width: "100%",
|
|
4007
|
-
height: "100%",
|
|
4008
|
-
objectFit: "cover",
|
|
4009
|
-
...toCssRadius({
|
|
4010
|
-
borderTopLeftRadius: calcImgRadius($.get(styleObj).borderRadius, $.get(styleObj).borderTopWidth),
|
|
4011
|
-
borderTopRightRadius: calcImgRadius($.get(styleObj).borderRadius, $.get(styleObj).borderTopWidth),
|
|
4012
|
-
borderBottomLeftRadius: calcImgRadius($.get(styleObj).borderRadius, $.get(styleObj).borderTopWidth),
|
|
4013
|
-
borderBottomRightRadius: calcImgRadius($.get(styleObj).borderRadius, $.get(styleObj).borderTopWidth)
|
|
4014
|
-
})
|
|
4015
|
-
}));
|
|
4280
|
+
$.legacy_pre_effect(() => $rProps(), () => {
|
|
4281
|
+
$.store_unsub($.set(clickable, useClickable_default($rProps())), "$clickable", $$stores);
|
|
4016
4282
|
});
|
|
4017
4283
|
$.legacy_pre_effect_reset();
|
|
4018
4284
|
$.init();
|
|
4019
|
-
var fragment =
|
|
4285
|
+
var fragment = root$54();
|
|
4020
4286
|
var node = $.first_child(fragment);
|
|
4021
|
-
|
|
4022
|
-
|
|
4023
|
-
|
|
4024
|
-
|
|
4025
|
-
|
|
4287
|
+
StylePortal(node, { cssText });
|
|
4288
|
+
var node_1 = $.sibling(node, 2);
|
|
4289
|
+
$.element(node_1, () => $clickable().element, false, ($$element, $$anchor$1) => {
|
|
4290
|
+
let attributes;
|
|
4291
|
+
$.template_effect(($0) => attributes = $.set_attributes($$element, attributes, {
|
|
4292
|
+
...$clickable().attributes,
|
|
4293
|
+
id: $rProps().id,
|
|
4026
4294
|
class: $0,
|
|
4027
|
-
style: $.get(style),
|
|
4028
4295
|
"data-layer-id": layerId()
|
|
4029
|
-
}
|
|
4030
|
-
$.event("click", $$element,
|
|
4296
|
+
}), [() => ["avatar", ...$rProps().classNames ?? []].join(" ")], $.derived_safe_equal);
|
|
4297
|
+
$.event("click", $$element, function(...$$args) {
|
|
4298
|
+
$clickable().handleClick?.apply(this, $$args);
|
|
4299
|
+
});
|
|
4031
4300
|
var img = root_1$14();
|
|
4032
4301
|
$.template_effect(() => {
|
|
4033
|
-
$.set_attribute(img, "src",
|
|
4034
|
-
$.set_attribute(img, "alt",
|
|
4035
|
-
$.set_style(img, $.get(imgStyle));
|
|
4302
|
+
$.set_attribute(img, "src", $rProps().image);
|
|
4303
|
+
$.set_attribute(img, "alt", $rProps().alt);
|
|
4036
4304
|
});
|
|
4037
4305
|
$.append($$anchor$1, img);
|
|
4038
4306
|
});
|
|
4039
4307
|
$.append($$anchor, fragment);
|
|
4040
4308
|
$.pop();
|
|
4309
|
+
$$cleanup();
|
|
4041
4310
|
}
|
|
4042
4311
|
|
|
4312
|
+
//#endregion
|
|
4313
|
+
//#region src/components-flex/avatar/types.ts
|
|
4314
|
+
const AVATAR_SIZE = {
|
|
4315
|
+
extra_small: "XS(48 x 48)",
|
|
4316
|
+
small: "S(64 x 64)",
|
|
4317
|
+
medium: "M(88 x 88)",
|
|
4318
|
+
large: "L(108 x 108)",
|
|
4319
|
+
extra_large: "XL(128 x 128)"
|
|
4320
|
+
};
|
|
4321
|
+
const AVATAR_SHAPE = {
|
|
4322
|
+
circle: "サークル",
|
|
4323
|
+
square: "スクエア",
|
|
4324
|
+
rounded: "ラウンド"
|
|
4325
|
+
};
|
|
4326
|
+
|
|
4043
4327
|
//#endregion
|
|
4044
4328
|
//#region src/components-flex/button/types.ts
|
|
4045
4329
|
const BUTTON_SIZE = {
|
|
@@ -4090,10 +4374,10 @@ const buttonPropsDefault = {
|
|
|
4090
4374
|
|
|
4091
4375
|
//#endregion
|
|
4092
4376
|
//#region src/components-flex/icon/variants/IconArrowDown.svelte
|
|
4093
|
-
var root$
|
|
4377
|
+
var root$53 = $.ns_template(`<svg xmlns="http://www.w3.org/2000/svg" style="width: 100%;height: 100%;" viewBox="0 0 384 512"><path d="M169.4 470.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 370.8 224 64c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 306.7L54.6 265.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z"></path></svg>`);
|
|
4094
4378
|
function IconArrowDown($$anchor, $$props) {
|
|
4095
4379
|
let color = $.prop($$props, "color", 8);
|
|
4096
|
-
var svg = root$
|
|
4380
|
+
var svg = root$53();
|
|
4097
4381
|
var path = $.child(svg);
|
|
4098
4382
|
$.reset(svg);
|
|
4099
4383
|
$.template_effect(() => $.set_attribute(path, "fill", color()));
|
|
@@ -4102,10 +4386,10 @@ function IconArrowDown($$anchor, $$props) {
|
|
|
4102
4386
|
|
|
4103
4387
|
//#endregion
|
|
4104
4388
|
//#region src/components-flex/icon/variants/IconArrowUp.svelte
|
|
4105
|
-
var root$
|
|
4389
|
+
var root$52 = $.ns_template(`<svg xmlns="http://www.w3.org/2000/svg" style="width: 100%;height: 100%;" viewBox="0 0 384 512"><path d="M214.6 41.4c-12.5-12.5-32.8-12.5-45.3 0l-160 160c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L160 141.2V448c0 17.7 14.3 32 32 32s32-14.3 32-32V141.2L329.4 246.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-160-160z"></path></svg>`);
|
|
4106
4390
|
function IconArrowUp($$anchor, $$props) {
|
|
4107
4391
|
let color = $.prop($$props, "color", 8);
|
|
4108
|
-
var svg = root$
|
|
4392
|
+
var svg = root$52();
|
|
4109
4393
|
var path = $.child(svg);
|
|
4110
4394
|
$.reset(svg);
|
|
4111
4395
|
$.template_effect(() => $.set_attribute(path, "fill", color()));
|
|
@@ -4114,10 +4398,10 @@ function IconArrowUp($$anchor, $$props) {
|
|
|
4114
4398
|
|
|
4115
4399
|
//#endregion
|
|
4116
4400
|
//#region src/components-flex/icon/variants/IconUsers.svelte
|
|
4117
|
-
var root$
|
|
4401
|
+
var root$51 = $.ns_template(`<svg xmlns="http://www.w3.org/2000/svg" style="width: 100%;height: 100%;" viewBox="0 0 640 512"><path d="M144 0a80 80 0 1 1 0 160A80 80 0 1 1 144 0zM512 0a80 80 0 1 1 0 160A80 80 0 1 1 512 0zM0 298.7C0 239.8 47.8 192 106.7 192h42.7c15.9 0 31 3.5 44.6 9.7c-1.3 7.2-1.9 14.7-1.9 22.3c0 38.2 16.8 72.5 43.3 96c-.2 0-.4 0-.7 0H21.3C9.6 320 0 310.4 0 298.7zM405.3 320c-.2 0-.4 0-.7 0c26.6-23.5 43.3-57.8 43.3-96c0-7.6-.7-15-1.9-22.3c13.6-6.3 28.7-9.7 44.6-9.7h42.7C592.2 192 640 239.8 640 298.7c0 11.8-9.6 21.3-21.3 21.3H405.3zM224 224a96 96 0 1 1 192 0 96 96 0 1 1 -192 0zM128 485.3C128 411.7 187.7 352 261.3 352H378.7C452.3 352 512 411.7 512 485.3c0 14.7-11.9 26.7-26.7 26.7H154.7c-14.7 0-26.7-11.9-26.7-26.7z"></path></svg>`);
|
|
4118
4402
|
function IconUsers($$anchor, $$props) {
|
|
4119
4403
|
let color = $.prop($$props, "color", 8);
|
|
4120
|
-
var svg = root$
|
|
4404
|
+
var svg = root$51();
|
|
4121
4405
|
var path = $.child(svg);
|
|
4122
4406
|
$.reset(svg);
|
|
4123
4407
|
$.template_effect(() => $.set_attribute(path, "fill", color()));
|
|
@@ -4126,10 +4410,10 @@ function IconUsers($$anchor, $$props) {
|
|
|
4126
4410
|
|
|
4127
4411
|
//#endregion
|
|
4128
4412
|
//#region src/components-flex/icon/variants/IconArrowLeft.svelte
|
|
4129
|
-
var root$
|
|
4413
|
+
var root$50 = $.ns_template(`<svg xmlns="http://www.w3.org/2000/svg" style="width: 100%;height: 100%;" viewBox="0 0 448 512"><path d="M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.2 288 416 288c17.7 0 32-14.3 32-32s-14.3-32-32-32l-306.7 0L214.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160z"></path></svg>`);
|
|
4130
4414
|
function IconArrowLeft($$anchor, $$props) {
|
|
4131
4415
|
let color = $.prop($$props, "color", 8);
|
|
4132
|
-
var svg = root$
|
|
4416
|
+
var svg = root$50();
|
|
4133
4417
|
var path = $.child(svg);
|
|
4134
4418
|
$.reset(svg);
|
|
4135
4419
|
$.template_effect(() => $.set_attribute(path, "fill", color()));
|
|
@@ -4138,10 +4422,10 @@ function IconArrowLeft($$anchor, $$props) {
|
|
|
4138
4422
|
|
|
4139
4423
|
//#endregion
|
|
4140
4424
|
//#region src/components-flex/icon/variants/IconArrowRight.svelte
|
|
4141
|
-
var root$
|
|
4425
|
+
var root$49 = $.ns_template(`<svg xmlns="http://www.w3.org/2000/svg" style="width: 100%;height: 100%;" viewBox="0 0 448 512"><path d="M438.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L338.8 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l306.7 0L233.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160z"></path></svg>`);
|
|
4142
4426
|
function IconArrowRight($$anchor, $$props) {
|
|
4143
4427
|
let color = $.prop($$props, "color", 8);
|
|
4144
|
-
var svg = root$
|
|
4428
|
+
var svg = root$49();
|
|
4145
4429
|
var path = $.child(svg);
|
|
4146
4430
|
$.reset(svg);
|
|
4147
4431
|
$.template_effect(() => $.set_attribute(path, "fill", color()));
|
|
@@ -4150,10 +4434,10 @@ function IconArrowRight($$anchor, $$props) {
|
|
|
4150
4434
|
|
|
4151
4435
|
//#endregion
|
|
4152
4436
|
//#region src/components-flex/icon/variants/IconBell.svelte
|
|
4153
|
-
var root$
|
|
4437
|
+
var root$48 = $.ns_template(`<svg xmlns="http://www.w3.org/2000/svg" style="width: 100%;height: 100%;" viewBox="0 0 448 512"><path d="M224 0c-17.7 0-32 14.3-32 32V51.2C119 66 64 130.6 64 208v18.8c0 47-17.3 92.4-48.5 127.6l-7.4 8.3c-8.4 9.4-10.4 22.9-5.3 34.4S19.4 416 32 416H416c12.6 0 24-7.4 29.2-18.9s3.1-25-5.3-34.4l-7.4-8.3C401.3 319.2 384 273.9 384 226.8V208c0-77.4-55-142-128-156.8V32c0-17.7-14.3-32-32-32zm45.3 493.3c12-12 18.7-28.3 18.7-45.3H224 160c0 17 6.7 33.3 18.7 45.3s28.3 18.7 45.3 18.7s33.3-6.7 45.3-18.7z"></path></svg>`);
|
|
4154
4438
|
function IconBell($$anchor, $$props) {
|
|
4155
4439
|
let color = $.prop($$props, "color", 8);
|
|
4156
|
-
var svg = root$
|
|
4440
|
+
var svg = root$48();
|
|
4157
4441
|
var path = $.child(svg);
|
|
4158
4442
|
$.reset(svg);
|
|
4159
4443
|
$.template_effect(() => $.set_attribute(path, "fill", color()));
|
|
@@ -4162,10 +4446,10 @@ function IconBell($$anchor, $$props) {
|
|
|
4162
4446
|
|
|
4163
4447
|
//#endregion
|
|
4164
4448
|
//#region src/components-flex/icon/variants/IconArrowUpFromSquare.svelte
|
|
4165
|
-
var root$
|
|
4449
|
+
var root$47 = $.ns_template(`<svg xmlns="http://www.w3.org/2000/svg" style="width: 100%;height: 100%;" viewBox="0 0 512 512"><path d="M320 0c-17.7 0-32 14.3-32 32s14.3 32 32 32h82.7L201.4 265.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L448 109.3V192c0 17.7 14.3 32 32 32s32-14.3 32-32V32c0-17.7-14.3-32-32-32H320zM80 32C35.8 32 0 67.8 0 112V432c0 44.2 35.8 80 80 80H400c44.2 0 80-35.8 80-80V320c0-17.7-14.3-32-32-32s-32 14.3-32 32V432c0 8.8-7.2 16-16 16H80c-8.8 0-16-7.2-16-16V112c0-8.8 7.2-16 16-16H192c17.7 0 32-14.3 32-32s-14.3-32-32-32H80z"></path></svg>`);
|
|
4166
4450
|
function IconArrowUpFromSquare($$anchor, $$props) {
|
|
4167
4451
|
let color = $.prop($$props, "color", 8);
|
|
4168
|
-
var svg = root$
|
|
4452
|
+
var svg = root$47();
|
|
4169
4453
|
var path = $.child(svg);
|
|
4170
4454
|
$.reset(svg);
|
|
4171
4455
|
$.template_effect(() => $.set_attribute(path, "fill", color()));
|
|
@@ -4174,10 +4458,10 @@ function IconArrowUpFromSquare($$anchor, $$props) {
|
|
|
4174
4458
|
|
|
4175
4459
|
//#endregion
|
|
4176
4460
|
//#region src/components-flex/icon/variants/IconTicket.svelte
|
|
4177
|
-
var root$
|
|
4461
|
+
var root$46 = $.ns_template(`<svg xmlns="http://www.w3.org/2000/svg" style="width: 100%;height: 100%;" viewBox="0 0 576 512"><path d="M64 64C28.7 64 0 92.7 0 128v64c0 8.8 7.4 15.7 15.7 18.6C34.5 217.1 48 235 48 256s-13.5 38.9-32.3 45.4C7.4 304.3 0 311.2 0 320v64c0 35.3 28.7 64 64 64H512c35.3 0 64-28.7 64-64V320c0-8.8-7.4-15.7-15.7-18.6C541.5 294.9 528 277 528 256s13.5-38.9 32.3-45.4c8.3-2.9 15.7-9.8 15.7-18.6V128c0-35.3-28.7-64-64-64H64zm64 112l0 160c0 8.8 7.2 16 16 16H432c8.8 0 16-7.2 16-16V176c0-8.8-7.2-16-16-16H144c-8.8 0-16 7.2-16 16zM96 160c0-17.7 14.3-32 32-32H448c17.7 0 32 14.3 32 32V352c0 17.7-14.3 32-32 32H128c-17.7 0-32-14.3-32-32V160z"></path></svg>`);
|
|
4178
4462
|
function IconTicket($$anchor, $$props) {
|
|
4179
4463
|
let color = $.prop($$props, "color", 8);
|
|
4180
|
-
var svg = root$
|
|
4464
|
+
var svg = root$46();
|
|
4181
4465
|
var path = $.child(svg);
|
|
4182
4466
|
$.reset(svg);
|
|
4183
4467
|
$.template_effect(() => $.set_attribute(path, "fill", color()));
|
|
@@ -4186,10 +4470,10 @@ function IconTicket($$anchor, $$props) {
|
|
|
4186
4470
|
|
|
4187
4471
|
//#endregion
|
|
4188
4472
|
//#region src/components-flex/icon/variants/IconTrack.svelte
|
|
4189
|
-
var root$
|
|
4473
|
+
var root$45 = $.ns_template(`<svg xmlns="http://www.w3.org/2000/svg" style="width: 100%;height: 100%;" viewBox="0 0 640 512"><path d="M48 0C21.5 0 0 21.5 0 48V368c0 26.5 21.5 48 48 48H64c0 53 43 96 96 96s96-43 96-96H384c0 53 43 96 96 96s96-43 96-96h32c17.7 0 32-14.3 32-32s-14.3-32-32-32V288 256 237.3c0-17-6.7-33.3-18.7-45.3L512 114.7c-12-12-28.3-18.7-45.3-18.7H416V48c0-26.5-21.5-48-48-48H48zM416 160h50.7L544 237.3V256H416V160zM112 416a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zm368-48a48 48 0 1 1 0 96 48 48 0 1 1 0-96z"></path></svg>`);
|
|
4190
4474
|
function IconTrack($$anchor, $$props) {
|
|
4191
4475
|
let color = $.prop($$props, "color", 8);
|
|
4192
|
-
var svg = root$
|
|
4476
|
+
var svg = root$45();
|
|
4193
4477
|
var path = $.child(svg);
|
|
4194
4478
|
$.reset(svg);
|
|
4195
4479
|
$.template_effect(() => $.set_attribute(path, "fill", color()));
|
|
@@ -4198,10 +4482,10 @@ function IconTrack($$anchor, $$props) {
|
|
|
4198
4482
|
|
|
4199
4483
|
//#endregion
|
|
4200
4484
|
//#region src/components-flex/icon/variants/IconCartShopping.svelte
|
|
4201
|
-
var root$
|
|
4485
|
+
var root$44 = $.ns_template(`<svg xmlns="http://www.w3.org/2000/svg" style="width: 100%;height: 100%;" viewBox="0 0 576 512"><path d="M0 24C0 10.7 10.7 0 24 0H69.5c22 0 41.5 12.8 50.6 32h411c26.3 0 45.5 25 38.6 50.4l-41 152.3c-8.5 31.4-37 53.3-69.5 53.3H170.7l5.4 28.5c2.2 11.3 12.1 19.5 23.6 19.5H488c13.3 0 24 10.7 24 24s-10.7 24-24 24H199.7c-34.6 0-64.3-24.6-70.7-58.5L77.4 54.5c-.7-3.8-4-6.5-7.9-6.5H24C10.7 48 0 37.3 0 24zM128 464a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zm336-48a48 48 0 1 1 0 96 48 48 0 1 1 0-96z"></path></svg>`);
|
|
4202
4486
|
function IconCartShopping($$anchor, $$props) {
|
|
4203
4487
|
let color = $.prop($$props, "color", 8);
|
|
4204
|
-
var svg = root$
|
|
4488
|
+
var svg = root$44();
|
|
4205
4489
|
var path = $.child(svg);
|
|
4206
4490
|
$.reset(svg);
|
|
4207
4491
|
$.template_effect(() => $.set_attribute(path, "fill", color()));
|
|
@@ -4210,10 +4494,10 @@ function IconCartShopping($$anchor, $$props) {
|
|
|
4210
4494
|
|
|
4211
4495
|
//#endregion
|
|
4212
4496
|
//#region src/components-flex/icon/variants/IconCircle.svelte
|
|
4213
|
-
var root$
|
|
4497
|
+
var root$43 = $.ns_template(`<svg xmlns="http://www.w3.org/2000/svg" style="width: 100%;height: 100%;" viewBox="0 0 512 512"><path d="M256 512c141.4 0 256-114.6 256-256S397.4 0 256 0S0 114.6 0 256S114.6 512 256 512z"></path></svg>`);
|
|
4214
4498
|
function IconCircle($$anchor, $$props) {
|
|
4215
4499
|
let color = $.prop($$props, "color", 8);
|
|
4216
|
-
var svg = root$
|
|
4500
|
+
var svg = root$43();
|
|
4217
4501
|
var path = $.child(svg);
|
|
4218
4502
|
$.reset(svg);
|
|
4219
4503
|
$.template_effect(() => $.set_attribute(path, "fill", color()));
|
|
@@ -4222,10 +4506,10 @@ function IconCircle($$anchor, $$props) {
|
|
|
4222
4506
|
|
|
4223
4507
|
//#endregion
|
|
4224
4508
|
//#region src/components-flex/icon/variants/IconCircleQuestion.svelte
|
|
4225
|
-
var root$
|
|
4509
|
+
var root$42 = $.ns_template(`<svg xmlns="http://www.w3.org/2000/svg" style="width: 100%;height: 100%;" viewBox="0 0 512 512"><path d="M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM169.8 165.3c7.9-22.3 29.1-37.3 52.8-37.3h58.3c34.9 0 63.1 28.3 63.1 63.1c0 22.6-12.1 43.5-31.7 54.8L280 264.4c-.2 13-10.9 23.6-24 23.6c-13.3 0-24-10.7-24-24V250.5c0-8.6 4.6-16.5 12.1-20.8l44.3-25.4c4.7-2.7 7.6-7.7 7.6-13.1c0-8.4-6.8-15.1-15.1-15.1H222.6c-3.4 0-6.4 2.1-7.5 5.3l-.4 1.2c-4.4 12.5-18.2 19-30.6 14.6s-19-18.2-14.6-30.6l.4-1.2zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"></path></svg>`);
|
|
4226
4510
|
function IconCircleQuestion($$anchor, $$props) {
|
|
4227
4511
|
let color = $.prop($$props, "color", 8);
|
|
4228
|
-
var svg = root$
|
|
4512
|
+
var svg = root$42();
|
|
4229
4513
|
var path = $.child(svg);
|
|
4230
4514
|
$.reset(svg);
|
|
4231
4515
|
$.template_effect(() => $.set_attribute(path, "fill", color()));
|
|
@@ -4234,10 +4518,10 @@ function IconCircleQuestion($$anchor, $$props) {
|
|
|
4234
4518
|
|
|
4235
4519
|
//#endregion
|
|
4236
4520
|
//#region src/components-flex/icon/variants/IconCheck.svelte
|
|
4237
|
-
var root$
|
|
4521
|
+
var root$41 = $.ns_template(`<svg xmlns="http://www.w3.org/2000/svg" style="width: 100%;height: 100%;" viewBox="0 0 512 512"><path d="M470.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L192 338.7 425.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"></path></svg>`);
|
|
4238
4522
|
function IconCheck($$anchor, $$props) {
|
|
4239
4523
|
let color = $.prop($$props, "color", 8);
|
|
4240
|
-
var svg = root$
|
|
4524
|
+
var svg = root$41();
|
|
4241
4525
|
var path = $.child(svg);
|
|
4242
4526
|
$.reset(svg);
|
|
4243
4527
|
$.template_effect(() => $.set_attribute(path, "fill", color()));
|
|
@@ -4246,10 +4530,10 @@ function IconCheck($$anchor, $$props) {
|
|
|
4246
4530
|
|
|
4247
4531
|
//#endregion
|
|
4248
4532
|
//#region src/components-flex/icon/variants/IconXMark.svelte
|
|
4249
|
-
var root$
|
|
4533
|
+
var root$40 = $.ns_template(`<svg xmlns="http://www.w3.org/2000/svg" style="width: 100%;height: 100%;" viewBox="0 0 320 512"><path d="M310.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L160 210.7 54.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L114.7 256 9.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L160 301.3 265.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L205.3 256 310.6 150.6z"></path></svg>`);
|
|
4250
4534
|
function IconXMark($$anchor, $$props) {
|
|
4251
4535
|
let color = $.prop($$props, "color", 8);
|
|
4252
|
-
var svg = root$
|
|
4536
|
+
var svg = root$40();
|
|
4253
4537
|
var path = $.child(svg);
|
|
4254
4538
|
$.reset(svg);
|
|
4255
4539
|
$.template_effect(() => $.set_attribute(path, "fill", color()));
|
|
@@ -4258,10 +4542,10 @@ function IconXMark($$anchor, $$props) {
|
|
|
4258
4542
|
|
|
4259
4543
|
//#endregion
|
|
4260
4544
|
//#region src/components-flex/icon/variants/IconPaperPlane.svelte
|
|
4261
|
-
var root$
|
|
4545
|
+
var root$39 = $.ns_template(`<svg xmlns="http://www.w3.org/2000/svg" style="width: 100%;height: 100%;" viewBox="0 0 512 512"><path d="M498.1 5.6c10.1 7 15.4 19.1 13.5 31.2l-64 416c-1.5 9.7-7.4 18.2-16 23s-18.9 5.4-28 1.6L284 427.7l-68.5 74.1c-8.9 9.7-22.9 12.9-35.2 8.1S160 493.2 160 480V396.4c0-4 1.5-7.8 4.2-10.7L331.8 202.8c5.8-6.3 5.6-16-.4-22s-15.7-6.4-22-.7L106 360.8 17.7 316.6C7.1 311.3 .3 300.7 0 288.9s5.9-22.8 16.1-28.7l448-256c10.7-6.1 23.9-5.5 34 1.4z"></path></svg>`);
|
|
4262
4546
|
function IconPaperPlane($$anchor, $$props) {
|
|
4263
4547
|
let color = $.prop($$props, "color", 8);
|
|
4264
|
-
var svg = root$
|
|
4548
|
+
var svg = root$39();
|
|
4265
4549
|
var path = $.child(svg);
|
|
4266
4550
|
$.reset(svg);
|
|
4267
4551
|
$.template_effect(() => $.set_attribute(path, "fill", color()));
|
|
@@ -4270,10 +4554,10 @@ function IconPaperPlane($$anchor, $$props) {
|
|
|
4270
4554
|
|
|
4271
4555
|
//#endregion
|
|
4272
4556
|
//#region src/components-flex/icon/variants/IconCopy.svelte
|
|
4273
|
-
var root$
|
|
4557
|
+
var root$38 = $.ns_template(`<svg xmlns="http://www.w3.org/2000/svg" style="width: 100%;height: 100%;" viewBox="0 0 512 512"><path d="M224 0c-35.3 0-64 28.7-64 64V288c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V64c0-35.3-28.7-64-64-64H224zM64 160c-35.3 0-64 28.7-64 64V448c0 35.3 28.7 64 64 64H288c35.3 0 64-28.7 64-64V384H288v64H64V224h64V160H64z"></path></svg>`);
|
|
4274
4558
|
function IconCopy($$anchor, $$props) {
|
|
4275
4559
|
let color = $.prop($$props, "color", 8);
|
|
4276
|
-
var svg = root$
|
|
4560
|
+
var svg = root$38();
|
|
4277
4561
|
var path = $.child(svg);
|
|
4278
4562
|
$.reset(svg);
|
|
4279
4563
|
$.template_effect(() => $.set_attribute(path, "fill", color()));
|
|
@@ -4282,10 +4566,10 @@ function IconCopy($$anchor, $$props) {
|
|
|
4282
4566
|
|
|
4283
4567
|
//#endregion
|
|
4284
4568
|
//#region src/components-flex/icon/variants/IconCircleXMark.svelte
|
|
4285
|
-
var root$
|
|
4569
|
+
var root$37 = $.ns_template(`<svg xmlns="http://www.w3.org/2000/svg" style="width: 100%;height: 100%;" viewBox="0 0 512 512"><path d="M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM175 175c9.4-9.4 24.6-9.4 33.9 0l47 47 47-47c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-47 47 47 47c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-47-47-47 47c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l47-47-47-47c-9.4-9.4-9.4-24.6 0-33.9z"></path></svg>`);
|
|
4286
4570
|
function IconCircleXMark($$anchor, $$props) {
|
|
4287
4571
|
let color = $.prop($$props, "color", 8);
|
|
4288
|
-
var svg = root$
|
|
4572
|
+
var svg = root$37();
|
|
4289
4573
|
var path = $.child(svg);
|
|
4290
4574
|
$.reset(svg);
|
|
4291
4575
|
$.template_effect(() => $.set_attribute(path, "fill", color()));
|
|
@@ -4294,10 +4578,10 @@ function IconCircleXMark($$anchor, $$props) {
|
|
|
4294
4578
|
|
|
4295
4579
|
//#endregion
|
|
4296
4580
|
//#region src/components-flex/icon/variants/IconHeart.svelte
|
|
4297
|
-
var root$
|
|
4581
|
+
var root$36 = $.ns_template(`<svg xmlns="http://www.w3.org/2000/svg" style="width: 100%;height: 100%;" viewBox="0 0 512 512"><path d="M47.6 300.4L228.3 469.1c7.5 7 17.4 10.9 27.7 10.9s20.2-3.9 27.7-10.9L464.4 300.4c30.4-28.3 47.6-68 47.6-109.5v-5.8c0-69.9-50.5-129.5-119.4-141C347 36.5 300.6 51.4 268 84L256 96 244 84c-32.6-32.6-79-47.5-124.6-39.9C50.5 55.6 0 115.2 0 185.1v5.8c0 41.5 17.2 81.2 47.6 109.5z"></path></svg>`);
|
|
4298
4582
|
function IconHeart($$anchor, $$props) {
|
|
4299
4583
|
let color = $.prop($$props, "color", 8);
|
|
4300
|
-
var svg = root$
|
|
4584
|
+
var svg = root$36();
|
|
4301
4585
|
var path = $.child(svg);
|
|
4302
4586
|
$.reset(svg);
|
|
4303
4587
|
$.template_effect(() => $.set_attribute(path, "fill", color()));
|
|
@@ -4306,10 +4590,10 @@ function IconHeart($$anchor, $$props) {
|
|
|
4306
4590
|
|
|
4307
4591
|
//#endregion
|
|
4308
4592
|
//#region src/components-flex/icon/variants/IconMagnifyingGrass.svelte
|
|
4309
|
-
var root$
|
|
4593
|
+
var root$35 = $.ns_template(`<svg xmlns="http://www.w3.org/2000/svg" style="width: 100%;height: 100%;" viewBox="0 0 512 512"><path d="M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"></path></svg>`);
|
|
4310
4594
|
function IconMagnifyingGrass($$anchor, $$props) {
|
|
4311
4595
|
let color = $.prop($$props, "color", 8);
|
|
4312
|
-
var svg = root$
|
|
4596
|
+
var svg = root$35();
|
|
4313
4597
|
var path = $.child(svg);
|
|
4314
4598
|
$.reset(svg);
|
|
4315
4599
|
$.template_effect(() => $.set_attribute(path, "fill", color()));
|
|
@@ -4318,10 +4602,10 @@ function IconMagnifyingGrass($$anchor, $$props) {
|
|
|
4318
4602
|
|
|
4319
4603
|
//#endregion
|
|
4320
4604
|
//#region src/components-flex/icon/variants/IconStar.svelte
|
|
4321
|
-
var root$
|
|
4605
|
+
var root$34 = $.ns_template(`<svg xmlns="http://www.w3.org/2000/svg" style="width: 100%;height: 100%;" viewBox="0 0 576 512"><path d="M316.9 18C311.6 7 300.4 0 288.1 0s-23.4 7-28.8 18L195 150.3 51.4 171.5c-12 1.8-22 10.2-25.7 21.7s-.7 24.2 7.9 32.7L137.8 329 113.2 474.7c-2 12 3 24.2 12.9 31.3s23 8 33.8 2.3l128.3-68.5 128.3 68.5c10.8 5.7 23.9 4.9 33.8-2.3s14.9-19.3 12.9-31.3L438.5 329 542.7 225.9c8.6-8.5 11.7-21.2 7.9-32.7s-13.7-19.9-25.7-21.7L381.2 150.3 316.9 18z"></path></svg>`);
|
|
4322
4606
|
function IconStar($$anchor, $$props) {
|
|
4323
4607
|
let color = $.prop($$props, "color", 8);
|
|
4324
|
-
var svg = root$
|
|
4608
|
+
var svg = root$34();
|
|
4325
4609
|
var path = $.child(svg);
|
|
4326
4610
|
$.reset(svg);
|
|
4327
4611
|
$.template_effect(() => $.set_attribute(path, "fill", color()));
|
|
@@ -4330,10 +4614,10 @@ function IconStar($$anchor, $$props) {
|
|
|
4330
4614
|
|
|
4331
4615
|
//#endregion
|
|
4332
4616
|
//#region src/components-flex/icon/variants/IconCircleInfo.svelte
|
|
4333
|
-
var root$
|
|
4617
|
+
var root$33 = $.ns_template(`<svg xmlns="http://www.w3.org/2000/svg" style="width: 100%;height: 100%;" viewBox="0 0 512 512"><path d="M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336h24V272H216c-13.3 0-24-10.7-24-24s10.7-24 24-24h48c13.3 0 24 10.7 24 24v88h8c13.3 0 24 10.7 24 24s-10.7 24-24 24H216c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-208a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"></path></svg>`);
|
|
4334
4618
|
function IconCircleInfo($$anchor, $$props) {
|
|
4335
4619
|
let color = $.prop($$props, "color", 8);
|
|
4336
|
-
var svg = root$
|
|
4620
|
+
var svg = root$33();
|
|
4337
4621
|
var path = $.child(svg);
|
|
4338
4622
|
$.reset(svg);
|
|
4339
4623
|
$.template_effect(() => $.set_attribute(path, "fill", color()));
|
|
@@ -4342,10 +4626,10 @@ function IconCircleInfo($$anchor, $$props) {
|
|
|
4342
4626
|
|
|
4343
4627
|
//#endregion
|
|
4344
4628
|
//#region src/components-flex/icon/variants/IconEnvelope.svelte
|
|
4345
|
-
var root$
|
|
4629
|
+
var root$32 = $.ns_template(`<svg xmlns="http://www.w3.org/2000/svg" style="width: 100%;height: 100%;" viewBox="0 0 512 512"><path d="M48 64C21.5 64 0 85.5 0 112c0 15.1 7.1 29.3 19.2 38.4L236.8 313.6c11.4 8.5 27 8.5 38.4 0L492.8 150.4c12.1-9.1 19.2-23.3 19.2-38.4c0-26.5-21.5-48-48-48H48zM0 176V384c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V176L294.4 339.2c-22.8 17.1-54 17.1-76.8 0L0 176z"></path></svg>`);
|
|
4346
4630
|
function IconEnvelope($$anchor, $$props) {
|
|
4347
4631
|
let color = $.prop($$props, "color", 8);
|
|
4348
|
-
var svg = root$
|
|
4632
|
+
var svg = root$32();
|
|
4349
4633
|
var path = $.child(svg);
|
|
4350
4634
|
$.reset(svg);
|
|
4351
4635
|
$.template_effect(() => $.set_attribute(path, "fill", color()));
|
|
@@ -4354,10 +4638,10 @@ function IconEnvelope($$anchor, $$props) {
|
|
|
4354
4638
|
|
|
4355
4639
|
//#endregion
|
|
4356
4640
|
//#region src/components-flex/icon/variants/IconGift.svelte
|
|
4357
|
-
var root$
|
|
4641
|
+
var root$31 = $.ns_template(`<svg xmlns="http://www.w3.org/2000/svg" style="width: 100%;height: 100%;" viewBox="0 0 512 512"><path d="M190.5 68.8L225.3 128H224 152c-22.1 0-40-17.9-40-40s17.9-40 40-40h2.2c14.9 0 28.8 7.9 36.3 20.8zM64 88c0 14.4 3.5 28 9.6 40H32c-17.7 0-32 14.3-32 32v64c0 17.7 14.3 32 32 32H480c17.7 0 32-14.3 32-32V160c0-17.7-14.3-32-32-32H438.4c6.1-12 9.6-25.6 9.6-40c0-48.6-39.4-88-88-88h-2.2c-31.9 0-61.5 16.9-77.7 44.4L256 85.5l-24.1-41C215.7 16.9 186.1 0 154.2 0H152C103.4 0 64 39.4 64 88zm336 0c0 22.1-17.9 40-40 40H288h-1.3l34.8-59.2C329.1 55.9 342.9 48 357.8 48H360c22.1 0 40 17.9 40 40zM32 288V464c0 26.5 21.5 48 48 48H224V288H32zM288 512H432c26.5 0 48-21.5 48-48V288H288V512z"></path></svg>`);
|
|
4358
4642
|
function IconGift($$anchor, $$props) {
|
|
4359
4643
|
let color = $.prop($$props, "color", 8);
|
|
4360
|
-
var svg = root$
|
|
4644
|
+
var svg = root$31();
|
|
4361
4645
|
var path = $.child(svg);
|
|
4362
4646
|
$.reset(svg);
|
|
4363
4647
|
$.template_effect(() => $.set_attribute(path, "fill", color()));
|
|
@@ -4366,10 +4650,10 @@ function IconGift($$anchor, $$props) {
|
|
|
4366
4650
|
|
|
4367
4651
|
//#endregion
|
|
4368
4652
|
//#region src/components-flex/icon/variants/IconPaperclip.svelte
|
|
4369
|
-
var root$
|
|
4653
|
+
var root$30 = $.ns_template(`<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 448 512"><path d="M364.2 83.8c-24.4-24.4-64-24.4-88.4 0l-184 184c-42.1 42.1-42.1 110.3 0 152.4s110.3 42.1 152.4 0l152-152c10.9-10.9 28.7-10.9 39.6 0s10.9 28.7 0 39.6l-152 152c-64 64-167.6 64-231.6 0s-64-167.6 0-231.6l184-184c46.3-46.3 121.3-46.3 167.6 0s46.3 121.3 0 167.6l-176 176c-28.6 28.6-75 28.6-103.6 0s-28.6-75 0-103.6l144-144c10.9-10.9 28.7-10.9 39.6 0s10.9 28.7 0 39.6l-144 144c-6.7 6.7-6.7 17.7 0 24.4s17.7 6.7 24.4 0l176-176c24.4-24.4 24.4-64 0-88.4z"></path></svg>`);
|
|
4370
4654
|
function IconPaperclip($$anchor, $$props) {
|
|
4371
4655
|
let color = $.prop($$props, "color", 8);
|
|
4372
|
-
var svg = root$
|
|
4656
|
+
var svg = root$30();
|
|
4373
4657
|
var path = $.child(svg);
|
|
4374
4658
|
$.reset(svg);
|
|
4375
4659
|
$.template_effect(() => $.set_attribute(path, "fill", color()));
|
|
@@ -4378,10 +4662,10 @@ function IconPaperclip($$anchor, $$props) {
|
|
|
4378
4662
|
|
|
4379
4663
|
//#endregion
|
|
4380
4664
|
//#region src/components-flex/icon/variants/IconFire.svelte
|
|
4381
|
-
var root$
|
|
4665
|
+
var root$29 = $.ns_template(`<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 448 512"><path d="M159.3 5.4c7.8-7.3 19.9-7.2 27.7 .1c27.6 25.9 53.5 53.8 77.7 84c11-14.4 23.5-30.1 37-42.9c7.9-7.4 20.1-7.4 28 .1c34.6 33 63.9 76.6 84.5 118c20.3 40.8 33.8 82.5 33.8 111.9C448 404.2 348.2 512 224 512C98.4 512 0 404.1 0 276.5c0-38.4 17.8-85.3 45.4-131.7C73.3 97.7 112.7 48.6 159.3 5.4zM225.7 416c25.3 0 47.7-7 68.8-21c42.1-29.4 53.4-88.2 28.1-134.4c-4.5-9-16-9.6-22.5-2l-25.2 29.3c-6.6 7.6-18.5 7.4-24.7-.5c-16.5-21-46-58.5-62.8-79.8c-6.3-8-18.3-8.1-24.7-.1c-33.8 42.5-50.8 69.3-50.8 99.4C112 375.4 162.6 416 225.7 416z"></path></svg>`);
|
|
4382
4666
|
function IconFire($$anchor, $$props) {
|
|
4383
4667
|
let color = $.prop($$props, "color", 8);
|
|
4384
|
-
var svg = root$
|
|
4668
|
+
var svg = root$29();
|
|
4385
4669
|
var path = $.child(svg);
|
|
4386
4670
|
$.reset(svg);
|
|
4387
4671
|
$.template_effect(() => $.set_attribute(path, "fill", color()));
|
|
@@ -4390,10 +4674,10 @@ function IconFire($$anchor, $$props) {
|
|
|
4390
4674
|
|
|
4391
4675
|
//#endregion
|
|
4392
4676
|
//#region src/components-flex/icon/variants/IconLink.svelte
|
|
4393
|
-
var root$
|
|
4677
|
+
var root$28 = $.ns_template(`<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 640 512"><path d="M579.8 267.7c56.5-56.5 56.5-148 0-204.5c-50-50-128.8-56.5-186.3-15.4l-1.6 1.1c-14.4 10.3-17.7 30.3-7.4 44.6s30.3 17.7 44.6 7.4l1.6-1.1c32.1-22.9 76-19.3 103.8 8.6c31.5 31.5 31.5 82.5 0 114L422.3 334.8c-31.5 31.5-82.5 31.5-114 0c-27.9-27.9-31.5-71.8-8.6-103.8l1.1-1.6c10.3-14.4 6.9-34.4-7.4-44.6s-34.4-6.9-44.6 7.4l-1.1 1.6C206.5 251.2 213 330 263 380c56.5 56.5 148 56.5 204.5 0L579.8 267.7zM60.2 244.3c-56.5 56.5-56.5 148 0 204.5c50 50 128.8 56.5 186.3 15.4l1.6-1.1c14.4-10.3 17.7-30.3 7.4-44.6s-30.3-17.7-44.6-7.4l-1.6 1.1c-32.1 22.9-76 19.3-103.8-8.6C74 372 74 321 105.5 289.5L217.7 177.2c31.5-31.5 82.5-31.5 114 0c27.9 27.9 31.5 71.8 8.6 103.9l-1.1 1.6c-10.3 14.4-6.9 34.4 7.4 44.6s34.4 6.9 44.6-7.4l1.1-1.6C433.5 260.8 427 182 377 132c-56.5-56.5-148-56.5-204.5 0L60.2 244.3z"></path></svg>`);
|
|
4394
4678
|
function IconLink($$anchor, $$props) {
|
|
4395
4679
|
let color = $.prop($$props, "color", 8);
|
|
4396
|
-
var svg = root$
|
|
4680
|
+
var svg = root$28();
|
|
4397
4681
|
var path = $.child(svg);
|
|
4398
4682
|
$.reset(svg);
|
|
4399
4683
|
$.template_effect(() => $.set_attribute(path, "fill", color()));
|
|
@@ -4402,10 +4686,10 @@ function IconLink($$anchor, $$props) {
|
|
|
4402
4686
|
|
|
4403
4687
|
//#endregion
|
|
4404
4688
|
//#region src/components-flex/icon/variants/IconBuildings.svelte
|
|
4405
|
-
var root$
|
|
4689
|
+
var root$27 = $.ns_template(`<svg xmlns="http://www.w3.org/2000/svg" style="width: 100%; height: 100%;" viewBox="0 0 512 512"><path d="M256 0c-35.3 0-64 28.7-64 64l0 64L64 128c-35.3 0-64 28.7-64 64L0 448c0 35.3 28.7 64 64 64l192 0 192 0c35.3 0 64-28.7 64-64l0-256 0-128c0-35.3-28.7-64-64-64L256 0zM64 304c0-8.8 7.2-16 16-16l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32zm208 16c-8.8 0-16-7.2-16-16l0-32c0-8.8 7.2-16 16-16l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0zm112-16l0-32c0-8.8 7.2-16 16-16l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16zM80 192l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32c0-8.8 7.2-16 16-16zM256 80c0-8.8 7.2-16 16-16l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32zM400 64l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32c0-8.8 7.2-16 16-16zM256 208l0-32c0-8.8 7.2-16 16-16l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16zm144 16c-8.8 0-16-7.2-16-16l0-32c0-8.8 7.2-16 16-16l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0z"></path></svg>`);
|
|
4406
4690
|
function IconBuildings($$anchor, $$props) {
|
|
4407
4691
|
let color = $.prop($$props, "color", 8);
|
|
4408
|
-
var svg = root$
|
|
4692
|
+
var svg = root$27();
|
|
4409
4693
|
var path = $.child(svg);
|
|
4410
4694
|
$.reset(svg);
|
|
4411
4695
|
$.template_effect(() => $.set_attribute(path, "fill", color()));
|
|
@@ -4414,10 +4698,10 @@ function IconBuildings($$anchor, $$props) {
|
|
|
4414
4698
|
|
|
4415
4699
|
//#endregion
|
|
4416
4700
|
//#region src/components-flex/icon/variants/IconChevronsRight.svelte
|
|
4417
|
-
var root$
|
|
4701
|
+
var root$26 = $.ns_template(`<svg xmlns="http://www.w3.org/2000/svg" style="width: 100%; height: 100%;" viewBox="0 0 640 640"><path d="M534.6 342.6C547.1 330.1 547.1 309.8 534.6 297.3L342.6 105.3C330.1 92.8 309.8 92.8 297.3 105.3C284.8 117.8 284.8 138.1 297.3 150.6L466.7 320L297.4 489.4C284.9 501.9 284.9 522.2 297.4 534.7C309.9 547.2 330.2 547.2 342.7 534.7L534.7 342.7zM150.6 534.6L342.6 342.6C355.1 330.1 355.1 309.8 342.6 297.3L150.6 105.3C138.1 92.8 117.8 92.8 105.3 105.3C92.8 117.8 92.8 138.1 105.3 150.6L274.7 320L105.4 489.4C92.9 501.9 92.9 522.2 105.4 534.7C117.9 547.2 138.2 547.2 150.7 534.7z"></path></svg>`);
|
|
4418
4702
|
function IconChevronsRight($$anchor, $$props) {
|
|
4419
4703
|
let color = $.prop($$props, "color", 8);
|
|
4420
|
-
var svg = root$
|
|
4704
|
+
var svg = root$26();
|
|
4421
4705
|
var path = $.child(svg);
|
|
4422
4706
|
$.reset(svg);
|
|
4423
4707
|
$.template_effect(() => $.set_attribute(path, "fill", color()));
|
|
@@ -4426,10 +4710,10 @@ function IconChevronsRight($$anchor, $$props) {
|
|
|
4426
4710
|
|
|
4427
4711
|
//#endregion
|
|
4428
4712
|
//#region src/components-flex/icon/variants/IconChevronRight.svelte
|
|
4429
|
-
var root$
|
|
4713
|
+
var root$25 = $.ns_template(`<svg xmlns="http://www.w3.org/2000/svg" style="width: 100%; height: 100%;" viewBox="0 0 640 640"><path d="M471.1 297.4C483.6 309.9 483.6 330.2 471.1 342.7L279.1 534.7C266.6 547.2 246.3 547.2 233.8 534.7C221.3 522.2 221.3 501.9 233.8 489.4L403.2 320L233.9 150.6C221.4 138.1 221.4 117.8 233.9 105.3C246.4 92.8 266.7 92.8 279.2 105.3L471.2 297.3z"></path></svg>`);
|
|
4430
4714
|
function IconChevronRight($$anchor, $$props) {
|
|
4431
4715
|
let color = $.prop($$props, "color", 8);
|
|
4432
|
-
var svg = root$
|
|
4716
|
+
var svg = root$25();
|
|
4433
4717
|
var path = $.child(svg);
|
|
4434
4718
|
$.reset(svg);
|
|
4435
4719
|
$.template_effect(() => $.set_attribute(path, "fill", color()));
|
|
@@ -4438,10 +4722,34 @@ function IconChevronRight($$anchor, $$props) {
|
|
|
4438
4722
|
|
|
4439
4723
|
//#endregion
|
|
4440
4724
|
//#region src/components-flex/icon/variants/IconPhone.svelte
|
|
4441
|
-
var root$
|
|
4725
|
+
var root$24 = $.ns_template(`<svg xmlns="http://www.w3.org/2000/svg" style="width: 100%;height: 100%;" viewBox="0 0 512 512"><path d="M164.9 24.6c-7.7-18.6-28-28.5-47.4-23.2l-88 24C12.1 30.2 0 46 0 64C0 311.4 200.6 512 448 512c18 0 33.8-12.1 38.6-29.5l24-88c5.3-19.4-4.6-39.7-23.2-47.4l-96-40c-16.3-6.8-35.2-2.1-46.3 11.6L304.7 368C234.3 334.7 177.3 277.7 144 207.3L193.3 167c13.7-11.2 18.4-30 11.6-46.3l-40-96z"></path></svg>`);
|
|
4442
4726
|
function IconPhone($$anchor, $$props) {
|
|
4443
4727
|
let color = $.prop($$props, "color", 8);
|
|
4444
|
-
var svg = root$
|
|
4728
|
+
var svg = root$24();
|
|
4729
|
+
var path = $.child(svg);
|
|
4730
|
+
$.reset(svg);
|
|
4731
|
+
$.template_effect(() => $.set_attribute(path, "fill", color()));
|
|
4732
|
+
$.append($$anchor, svg);
|
|
4733
|
+
}
|
|
4734
|
+
|
|
4735
|
+
//#endregion
|
|
4736
|
+
//#region src/components-flex/icon/variants/IconLocationDot.svelte
|
|
4737
|
+
var root$23 = $.ns_template(`<svg xmlns="http://www.w3.org/2000/svg" style="width: 100%;height: 100%;" viewBox="0 0 384 512"><path d="M215.7 499.2C267 435 384 279.4 384 192C384 86 298 0 192 0S0 86 0 192c0 87.4 117 243 168.3 307.2c12.3 15.3 35.1 15.3 47.4 0zM192 128a64 64 0 1 1 0 128 64 64 0 1 1 0-128z"></path></svg>`);
|
|
4738
|
+
function IconLocationDot($$anchor, $$props) {
|
|
4739
|
+
let color = $.prop($$props, "color", 8);
|
|
4740
|
+
var svg = root$23();
|
|
4741
|
+
var path = $.child(svg);
|
|
4742
|
+
$.reset(svg);
|
|
4743
|
+
$.template_effect(() => $.set_attribute(path, "fill", color()));
|
|
4744
|
+
$.append($$anchor, svg);
|
|
4745
|
+
}
|
|
4746
|
+
|
|
4747
|
+
//#endregion
|
|
4748
|
+
//#region src/components-flex/icon/variants/IconChevronLeft.svelte
|
|
4749
|
+
var root$22 = $.ns_template(`<svg xmlns="http://www.w3.org/2000/svg" style="width: 100%; height: 100%;" viewBox="0 0 640 640"><path d="M169.4 297.4C156.9 309.9 156.9 330.2 169.4 342.7L361.4 534.7C373.9 547.2 394.2 547.2 406.7 534.7C419.2 522.2 419.2 501.9 406.7 489.4L237.3 320L406.6 150.6C419.1 138.1 419.1 117.8 406.6 105.3C394.1 92.8 373.8 92.8 361.3 105.3L169.3 297.3z"></path></svg>`);
|
|
4750
|
+
function IconChevronLeft($$anchor, $$props) {
|
|
4751
|
+
let color = $.prop($$props, "color", 8);
|
|
4752
|
+
var svg = root$22();
|
|
4445
4753
|
var path = $.child(svg);
|
|
4446
4754
|
$.reset(svg);
|
|
4447
4755
|
$.template_effect(() => $.set_attribute(path, "fill", color()));
|
|
@@ -4449,11 +4757,11 @@ function IconPhone($$anchor, $$props) {
|
|
|
4449
4757
|
}
|
|
4450
4758
|
|
|
4451
4759
|
//#endregion
|
|
4452
|
-
//#region src/components-flex/icon/variants/
|
|
4453
|
-
var root$
|
|
4454
|
-
function
|
|
4760
|
+
//#region src/components-flex/icon/variants/IconChevronsLeft.svelte
|
|
4761
|
+
var root$21 = $.ns_template(`<svg xmlns="http://www.w3.org/2000/svg" style="width: 100%; height: 100%;" viewBox="0 0 640 640"><path d="M105.4 297.4C92.9 309.9 92.9 330.2 105.4 342.7L297.4 534.7C309.9 547.2 330.2 547.2 342.7 534.7C355.2 522.2 355.2 501.9 342.7 489.4L173.3 320L342.6 150.6C355.1 138.1 355.1 117.8 342.6 105.3C330.1 92.8 309.8 92.8 297.3 105.3L105.3 297.3zM489.4 105.4L297.4 297.4C284.9 309.9 284.9 330.2 297.4 342.7L489.4 534.7C501.9 547.2 522.2 547.2 534.7 534.7C547.2 522.2 547.2 501.9 534.7 489.4L365.3 320L534.6 150.6C547.1 138.1 547.1 117.8 534.6 105.3C522.1 92.8 501.8 92.8 489.3 105.3z"></path></svg>`);
|
|
4762
|
+
function IconChevronsLeft($$anchor, $$props) {
|
|
4455
4763
|
let color = $.prop($$props, "color", 8);
|
|
4456
|
-
var svg = root$
|
|
4764
|
+
var svg = root$21();
|
|
4457
4765
|
var path = $.child(svg);
|
|
4458
4766
|
$.reset(svg);
|
|
4459
4767
|
$.template_effect(() => $.set_attribute(path, "fill", color()));
|
|
@@ -4503,7 +4811,9 @@ const ICON_VARIANTS = {
|
|
|
4503
4811
|
cart_shopping: IconCartShopping,
|
|
4504
4812
|
check: IconCheck,
|
|
4505
4813
|
chevrons_right: IconChevronsRight,
|
|
4814
|
+
chevrons_left: IconChevronsLeft,
|
|
4506
4815
|
chevron_right: IconChevronRight,
|
|
4816
|
+
chevron_left: IconChevronLeft,
|
|
4507
4817
|
circle: IconCircle,
|
|
4508
4818
|
circle_info: IconCircleInfo,
|
|
4509
4819
|
circle_question: IconCircleQuestion,
|
|
@@ -4527,54 +4837,89 @@ const ICON_VARIANTS = {
|
|
|
4527
4837
|
};
|
|
4528
4838
|
|
|
4529
4839
|
//#endregion
|
|
4530
|
-
//#region src/components-flex/icon/Icon.
|
|
4531
|
-
|
|
4532
|
-
|
|
4533
|
-
|
|
4840
|
+
//#region src/components-flex/icon/Icon.css.ts
|
|
4841
|
+
var Icon_css_default = (layerId, props, _brandKit) => {
|
|
4842
|
+
return createComponentRawCss(layerId, (style) => [
|
|
4843
|
+
style("", {
|
|
4844
|
+
textDecoration: "none",
|
|
4845
|
+
color: "inherit",
|
|
4846
|
+
border: "0",
|
|
4847
|
+
background: "none",
|
|
4848
|
+
padding: "0"
|
|
4849
|
+
}),
|
|
4850
|
+
style("&[data-clickable=\"true\"]", { cursor: "pointer" }),
|
|
4851
|
+
style("&[data-clickable=\"true\"]:hover", { opacity: .8 }),
|
|
4852
|
+
style("&[aria-disabled=\"true\"]", {
|
|
4853
|
+
opacity: "0.24",
|
|
4854
|
+
cursor: "not-allowed"
|
|
4855
|
+
}),
|
|
4856
|
+
style("&[aria-disabled=\"true\"]:hover", { opacity: "0.24" }),
|
|
4857
|
+
style("&[aria-hidden=\"true\"]", { display: "none" }),
|
|
4858
|
+
toDynamicStyle$2(layerId, props),
|
|
4859
|
+
...props.responsiveSettings?.map((v) => {
|
|
4860
|
+
if (v.mediaQueryCondition) return toResponsiveSelector(v, toDynamicStyle$2(layerId, {
|
|
4861
|
+
variant: v.props.variant ?? props.variant,
|
|
4862
|
+
...v.props
|
|
4863
|
+
}));
|
|
4864
|
+
else if (v.userAgentCondition) return "";
|
|
4865
|
+
return "";
|
|
4866
|
+
}) ?? [],
|
|
4867
|
+
props.customizeCss
|
|
4868
|
+
]);
|
|
4869
|
+
};
|
|
4870
|
+
const toDynamicStyle$2 = (layerId, props) => {
|
|
4871
|
+
return createComponentRawCss(layerId, (style) => [style("", {
|
|
4872
|
+
minWidth: props.width ? props.width : ICON_SIZE[props.size ?? "medium"].value,
|
|
4873
|
+
width: props.width ? props.width : ICON_SIZE[props.size ?? "medium"].value,
|
|
4874
|
+
height: props.height ? props.height : ICON_SIZE[props.size ?? "medium"].value,
|
|
4875
|
+
...toCssCommon(props)
|
|
4876
|
+
})]);
|
|
4534
4877
|
};
|
|
4878
|
+
|
|
4879
|
+
//#endregion
|
|
4880
|
+
//#region src/components-flex/icon/Icon.svelte
|
|
4881
|
+
var root$20 = $.template(`<!> <!>`, 1);
|
|
4535
4882
|
function Icon($$anchor, $$props) {
|
|
4536
4883
|
$.push($$props, false);
|
|
4537
|
-
|
|
4538
|
-
const
|
|
4884
|
+
const [$$stores, $$cleanup] = $.setup_stores();
|
|
4885
|
+
const $rProps = () => $.store_get($.get(rProps), "$rProps", $$stores);
|
|
4886
|
+
const $clickable = () => $.store_get($.get(clickable), "$clickable", $$stores);
|
|
4887
|
+
const rProps = $.mutable_state();
|
|
4888
|
+
const clickable = $.mutable_state();
|
|
4539
4889
|
const IconComponent = $.mutable_state();
|
|
4540
4890
|
let props = $.prop($$props, "props", 24, () => ({}));
|
|
4541
|
-
let layerId = $.prop($$props, "layerId",
|
|
4542
|
-
|
|
4543
|
-
const { attributes, element, handleClick } = useClickable_default(props());
|
|
4544
|
-
const getSizeCss = () => {
|
|
4545
|
-
return {
|
|
4546
|
-
minWidth: props().width ? props().width : ICON_SIZE[props().size ?? "medium"].value,
|
|
4547
|
-
width: props().width ? props().width : ICON_SIZE[props().size ?? "medium"].value,
|
|
4548
|
-
height: props().height ? props().height : ICON_SIZE[props().size ?? "medium"].value
|
|
4549
|
-
};
|
|
4550
|
-
};
|
|
4891
|
+
let layerId = $.prop($$props, "layerId", 24, () => crypto.randomUUID());
|
|
4892
|
+
const cssText = Icon_css_default(layerId(), props());
|
|
4551
4893
|
$.legacy_pre_effect(() => $.deep_read_state(props()), () => {
|
|
4552
|
-
$.set(
|
|
4553
|
-
...getSizeCss(),
|
|
4554
|
-
...toCssCommon(props())
|
|
4555
|
-
}));
|
|
4894
|
+
$.store_unsub($.set(rProps, useResponsiveProps(props())), "$rProps", $$stores);
|
|
4556
4895
|
});
|
|
4557
|
-
$.legacy_pre_effect(() =>
|
|
4558
|
-
$.set(
|
|
4896
|
+
$.legacy_pre_effect(() => $rProps(), () => {
|
|
4897
|
+
$.store_unsub($.set(clickable, useClickable_default($rProps())), "$clickable", $$stores);
|
|
4898
|
+
});
|
|
4899
|
+
$.legacy_pre_effect(() => $rProps(), () => {
|
|
4900
|
+
$.set(IconComponent, ICON_VARIANTS[$rProps().variant] ?? void 0);
|
|
4559
4901
|
});
|
|
4560
4902
|
$.legacy_pre_effect_reset();
|
|
4561
4903
|
$.init();
|
|
4562
|
-
var fragment =
|
|
4904
|
+
var fragment = root$20();
|
|
4563
4905
|
var node = $.first_child(fragment);
|
|
4564
|
-
|
|
4565
|
-
|
|
4566
|
-
|
|
4567
|
-
|
|
4906
|
+
StylePortal(node, { cssText });
|
|
4907
|
+
var node_1 = $.sibling(node, 2);
|
|
4908
|
+
$.element(node_1, () => $clickable().element, false, ($$element, $$anchor$1) => {
|
|
4909
|
+
let attributes;
|
|
4910
|
+
$.template_effect(($0) => attributes = $.set_attributes($$element, attributes, {
|
|
4911
|
+
...$clickable().attributes,
|
|
4568
4912
|
id: props().id,
|
|
4569
4913
|
class: $0,
|
|
4570
|
-
style: $.get(style),
|
|
4571
4914
|
"data-layer-id": layerId()
|
|
4572
|
-
}
|
|
4573
|
-
$.event("click", $$element,
|
|
4915
|
+
}), [() => ["icon", ...props().classNames ?? []].join(" ")], $.derived_safe_equal);
|
|
4916
|
+
$.event("click", $$element, function(...$$args) {
|
|
4917
|
+
$clickable().handleClick?.apply(this, $$args);
|
|
4918
|
+
});
|
|
4574
4919
|
var fragment_1 = $.comment();
|
|
4575
|
-
var
|
|
4920
|
+
var node_2 = $.first_child(fragment_1);
|
|
4576
4921
|
const expression = $.derived_safe_equal(() => props().color ?? "currentColor");
|
|
4577
|
-
$.component(
|
|
4922
|
+
$.component(node_2, () => $.get(IconComponent), ($$anchor$2, $$component) => {
|
|
4578
4923
|
$$component($$anchor$2, { get color() {
|
|
4579
4924
|
return $.get(expression);
|
|
4580
4925
|
} });
|
|
@@ -4583,6 +4928,7 @@ function Icon($$anchor, $$props) {
|
|
|
4583
4928
|
});
|
|
4584
4929
|
$.append($$anchor, fragment);
|
|
4585
4930
|
$.pop();
|
|
4931
|
+
$$cleanup();
|
|
4586
4932
|
}
|
|
4587
4933
|
|
|
4588
4934
|
//#endregion
|
|
@@ -4753,126 +5099,174 @@ function darkenColor(color, percent) {
|
|
|
4753
5099
|
}
|
|
4754
5100
|
|
|
4755
5101
|
//#endregion
|
|
4756
|
-
//#region src/components-flex/button/Button.
|
|
4757
|
-
var
|
|
4758
|
-
|
|
4759
|
-
|
|
4760
|
-
|
|
4761
|
-
|
|
5102
|
+
//#region src/components-flex/button/Button.css.ts
|
|
5103
|
+
var Button_css_default = (layerId, props, brandKit) => {
|
|
5104
|
+
return createComponentRawCss(layerId, (style) => [
|
|
5105
|
+
style("", {
|
|
5106
|
+
display: "inline-flex",
|
|
5107
|
+
gap: "0.8em",
|
|
5108
|
+
alignItems: "center",
|
|
5109
|
+
justifyContent: "center",
|
|
5110
|
+
textDecoration: "none",
|
|
5111
|
+
outline: "0",
|
|
5112
|
+
borderWidth: "1px",
|
|
5113
|
+
borderStyle: "solid",
|
|
5114
|
+
lineHeight: "1.5",
|
|
5115
|
+
transition: "background-color 0.12s, border-color 0.12s, color 0.12s",
|
|
5116
|
+
cursor: "pointer"
|
|
5117
|
+
}),
|
|
5118
|
+
style("&[aria-disabled=\"true\"]", {
|
|
5119
|
+
opacity: "0.24",
|
|
5120
|
+
cursor: "not-allowed"
|
|
5121
|
+
}),
|
|
5122
|
+
style("&[aria-hidden=\"true\"]", { display: "none" }),
|
|
5123
|
+
style(".button-icon", {
|
|
5124
|
+
display: "flex",
|
|
5125
|
+
alignItems: "center",
|
|
5126
|
+
justifyContent: "center",
|
|
5127
|
+
marginLeft: "-0.2em",
|
|
5128
|
+
marginRight: "-0.2em"
|
|
5129
|
+
}),
|
|
5130
|
+
toDynamicStyle$1(layerId, props, brandKit),
|
|
5131
|
+
...props.responsiveSettings?.map((v) => {
|
|
5132
|
+
if (v.mediaQueryCondition) return toResponsiveSelector(v, toDynamicStyle$1(layerId, v.props, brandKit));
|
|
5133
|
+
else if (v.userAgentCondition) return "";
|
|
5134
|
+
return "";
|
|
5135
|
+
}) ?? [],
|
|
5136
|
+
props.customizeCss
|
|
5137
|
+
]);
|
|
5138
|
+
};
|
|
5139
|
+
const toDynamicStyle$1 = (layerId, props, brandKit) => {
|
|
5140
|
+
const buttonThemeStyles = getButtonThemeStyles(brandKit);
|
|
5141
|
+
const buttonThemeStyle = buttonThemeStyles[props.theme] || buttonThemeStyles[buttonPropsDefault.theme];
|
|
5142
|
+
const buttonSizeStyle = BUTTON_SIZE_STYLES[props.size] || BUTTON_SIZE_STYLES[buttonPropsDefault.size];
|
|
5143
|
+
const variantStyle = (() => {
|
|
5144
|
+
switch (props.variant ?? buttonThemeStyle?.variant) {
|
|
5145
|
+
case "outline": return createComponentRawCss(layerId, (style) => [style("", {
|
|
5146
|
+
color: props.color ?? buttonThemeStyle.color,
|
|
5147
|
+
borderColor: props.borderColor ?? buttonThemeStyle.borderColor,
|
|
5148
|
+
backgroundColor: props.backgroundColor ?? buttonThemeStyle.backgroundColor
|
|
5149
|
+
}), style("&:hover", {
|
|
5150
|
+
borderColor: props.borderColor ?? props.color ?? buttonThemeStyle.borderColor,
|
|
5151
|
+
backgroundColor: "#f3f4f6"
|
|
5152
|
+
})]);
|
|
5153
|
+
case "text": return createComponentRawCss(layerId, (style) => [style("", {
|
|
5154
|
+
color: props.color ?? buttonThemeStyle.color,
|
|
5155
|
+
borderColor: "rgba(255,255,255,0)",
|
|
5156
|
+
backgroundColor: "rgba(255,255,255,0)"
|
|
5157
|
+
}), style("&:hover", {
|
|
5158
|
+
borderColor: "#f3f4f6",
|
|
5159
|
+
backgroundColor: "#f3f4f6"
|
|
5160
|
+
})]);
|
|
5161
|
+
case "normal":
|
|
5162
|
+
default: return createComponentRawCss(layerId, (style) => [style("", {
|
|
5163
|
+
color: props.color ?? buttonThemeStyle.color,
|
|
5164
|
+
borderColor: props.backgroundColor ?? buttonThemeStyle.backgroundColor,
|
|
5165
|
+
backgroundColor: props.backgroundColor ?? buttonThemeStyle.backgroundColor
|
|
5166
|
+
}), style("&:hover", {
|
|
5167
|
+
borderColor: darkenColor(props.backgroundColor ?? buttonThemeStyle.backgroundColor, .16),
|
|
5168
|
+
backgroundColor: darkenColor(props.backgroundColor ?? buttonThemeStyle.backgroundColor, .16)
|
|
5169
|
+
})]);
|
|
5170
|
+
}
|
|
5171
|
+
})();
|
|
5172
|
+
return createComponentRawCss(layerId, (style) => [style("", {
|
|
5173
|
+
width: props.width,
|
|
5174
|
+
fontWeight: props.fontWeight ?? "bold",
|
|
5175
|
+
...BUTTON_WRAP_STYLES[props.wrap ?? buttonPropsDefault.wrap],
|
|
5176
|
+
...props.borderTopLeftRadius ? {
|
|
5177
|
+
borderTopLeftRadius: props.borderTopLeftRadius,
|
|
5178
|
+
borderTopRightRadius: props.borderTopRightRadius,
|
|
5179
|
+
borderBottomLeftRadius: props.borderBottomLeftRadius,
|
|
5180
|
+
borderBottomRightRadius: props.borderBottomRightRadius
|
|
5181
|
+
} : BUTTON_ROUND_STYLES[props.round ?? buttonPropsDefault.round],
|
|
5182
|
+
...props.iconAngle && { flexDirection: props.iconAngle },
|
|
5183
|
+
height: props.height ?? buttonSizeStyle.height,
|
|
5184
|
+
paddingLeft: props.paddingLeft ?? buttonSizeStyle.paddingLeft,
|
|
5185
|
+
paddingRight: props.paddingRight ?? buttonSizeStyle.paddingRight,
|
|
5186
|
+
fontSize: props.fontSize ?? buttonSizeStyle.fontSize,
|
|
5187
|
+
...toCssCommon(props),
|
|
5188
|
+
...toCssBorder(props),
|
|
5189
|
+
...toCssShadow(props)
|
|
5190
|
+
}), variantStyle]);
|
|
4762
5191
|
};
|
|
5192
|
+
|
|
5193
|
+
//#endregion
|
|
5194
|
+
//#region src/components-flex/button/Button.svelte
|
|
5195
|
+
var root_3$1 = $.template(`<div class="button-icon"><!></div>`);
|
|
5196
|
+
var root_2$10 = $.template(`<!> <span class="button-label"> </span>`, 1);
|
|
5197
|
+
var root$19 = $.template(`<!> <!>`, 1);
|
|
4763
5198
|
function Button($$anchor, $$props) {
|
|
4764
5199
|
$.push($$props, false);
|
|
4765
|
-
|
|
4766
|
-
const
|
|
4767
|
-
const
|
|
5200
|
+
const [$$stores, $$cleanup] = $.setup_stores();
|
|
5201
|
+
const $rProps = () => $.store_get($.get(rProps), "$rProps", $$stores);
|
|
5202
|
+
const $clickable = () => $.store_get($.get(clickable), "$clickable", $$stores);
|
|
5203
|
+
const rProps = $.mutable_state();
|
|
5204
|
+
const clickable = $.mutable_state();
|
|
4768
5205
|
let props = $.prop($$props, "props", 24, () => ({}));
|
|
4769
|
-
let layerId = $.prop($$props, "layerId",
|
|
4770
|
-
useInjectCustomizeCss(props(), layerId());
|
|
4771
|
-
const { attributes, element, handleClick } = useClickable_default(props());
|
|
5206
|
+
let layerId = $.prop($$props, "layerId", 24, () => crypto.randomUUID());
|
|
4772
5207
|
const { brandKit } = useBrandKit();
|
|
4773
|
-
const
|
|
4774
|
-
|
|
4775
|
-
|
|
4776
|
-
switch (props().variant ?? buttonThemeStyle?.variant) {
|
|
4777
|
-
case "outline": return "outline";
|
|
4778
|
-
case "text": return "text";
|
|
4779
|
-
case "normal":
|
|
4780
|
-
default:
|
|
4781
|
-
}
|
|
4782
|
-
})();
|
|
4783
|
-
const buttonSizeStyle = BUTTON_SIZE_STYLES[props().size] || BUTTON_SIZE_STYLES[buttonPropsDefault.size];
|
|
4784
|
-
$.legacy_pre_effect(() => ($.deep_read_state(props()), darkenColor), () => {
|
|
4785
|
-
$.set(variables$1, (() => {
|
|
4786
|
-
switch (variant) {
|
|
4787
|
-
case "outline": return {
|
|
4788
|
-
"--color": props().color ?? buttonThemeStyle.color,
|
|
4789
|
-
"--border-color": props().borderColor ?? props().color ?? buttonThemeStyle.borderColor,
|
|
4790
|
-
"--bg-color": props().backgroundColor ?? buttonThemeStyle.backgroundColor,
|
|
4791
|
-
"--hover-border-color": props().borderColor ?? props().color ?? buttonThemeStyle.borderColor,
|
|
4792
|
-
"--hover-bg-color": "#f3f4f6"
|
|
4793
|
-
};
|
|
4794
|
-
case "text": return {
|
|
4795
|
-
"--color": props().color ?? buttonThemeStyle.color,
|
|
4796
|
-
"--border-color": "rgba(255,255,255,0)",
|
|
4797
|
-
"--bg-color": "rgba(255,255,255,0)",
|
|
4798
|
-
"--hover-border-color": "#f3f4f6",
|
|
4799
|
-
"--hover-bg-color": "#f3f4f6"
|
|
4800
|
-
};
|
|
4801
|
-
default: return {
|
|
4802
|
-
"--color": props().color ?? buttonThemeStyle.color,
|
|
4803
|
-
"--border-color": props().backgroundColor ?? buttonThemeStyle.backgroundColor,
|
|
4804
|
-
"--bg-color": props().backgroundColor ?? buttonThemeStyle.backgroundColor,
|
|
4805
|
-
"--hover-border-color": darkenColor(props().backgroundColor ?? buttonThemeStyle.backgroundColor, .16),
|
|
4806
|
-
"--hover-bg-color": darkenColor(props().backgroundColor ?? buttonThemeStyle.backgroundColor, .16)
|
|
4807
|
-
};
|
|
4808
|
-
}
|
|
4809
|
-
})());
|
|
5208
|
+
const cssCode = Button_css_default(layerId(), props(), brandKit);
|
|
5209
|
+
$.legacy_pre_effect(() => $.deep_read_state(props()), () => {
|
|
5210
|
+
$.store_unsub($.set(rProps, useResponsiveProps(props())), "$rProps", $$stores);
|
|
4810
5211
|
});
|
|
4811
|
-
$.legacy_pre_effect(() => (
|
|
4812
|
-
$.set(
|
|
4813
|
-
width: props().width,
|
|
4814
|
-
fontWeight: props().fontWeight ?? "bold",
|
|
4815
|
-
...BUTTON_WRAP_STYLES[props().wrap ?? buttonPropsDefault.wrap],
|
|
4816
|
-
...props().borderTopLeftRadius ? {
|
|
4817
|
-
borderTopLeftRadius: props().borderTopLeftRadius,
|
|
4818
|
-
borderTopRightRadius: props().borderTopRightRadius,
|
|
4819
|
-
borderBottomLeftRadius: props().borderBottomLeftRadius,
|
|
4820
|
-
borderBottomRightRadius: props().borderBottomRightRadius
|
|
4821
|
-
} : BUTTON_ROUND_STYLES[props().round ?? buttonPropsDefault.round],
|
|
4822
|
-
...props().iconAngle ? { flexDirection: props().iconAngle } : {},
|
|
4823
|
-
height: props().height ?? buttonSizeStyle.height,
|
|
4824
|
-
paddingLeft: props().paddingLeft ?? buttonSizeStyle.paddingLeft,
|
|
4825
|
-
paddingRight: props().paddingRight ?? buttonSizeStyle.paddingRight,
|
|
4826
|
-
fontSize: props().fontSize ?? buttonSizeStyle.fontSize,
|
|
4827
|
-
...toCssCommon(props()),
|
|
4828
|
-
...toCssBorder(props()),
|
|
4829
|
-
...toCssShadow(props()),
|
|
4830
|
-
...$.get(variables$1)
|
|
4831
|
-
}));
|
|
5212
|
+
$.legacy_pre_effect(() => $rProps(), () => {
|
|
5213
|
+
$.store_unsub($.set(clickable, useClickable_default($rProps())), "$clickable", $$stores);
|
|
4832
5214
|
});
|
|
4833
5215
|
$.legacy_pre_effect_reset();
|
|
4834
5216
|
$.init();
|
|
4835
|
-
var fragment =
|
|
5217
|
+
var fragment = root$19();
|
|
4836
5218
|
var node = $.first_child(fragment);
|
|
4837
|
-
|
|
4838
|
-
|
|
4839
|
-
|
|
4840
|
-
|
|
4841
|
-
|
|
4842
|
-
|
|
4843
|
-
|
|
4844
|
-
|
|
4845
|
-
|
|
4846
|
-
|
|
4847
|
-
|
|
4848
|
-
|
|
4849
|
-
|
|
4850
|
-
|
|
4851
|
-
|
|
4852
|
-
|
|
4853
|
-
|
|
4854
|
-
|
|
4855
|
-
|
|
4856
|
-
|
|
4857
|
-
|
|
4858
|
-
|
|
4859
|
-
|
|
4860
|
-
|
|
4861
|
-
|
|
4862
|
-
|
|
4863
|
-
|
|
4864
|
-
|
|
4865
|
-
|
|
4866
|
-
|
|
5219
|
+
StylePortal(node, { cssText: cssCode });
|
|
5220
|
+
var node_1 = $.sibling(node, 2);
|
|
5221
|
+
var consequent_1 = ($$anchor$1) => {
|
|
5222
|
+
var fragment_1 = $.comment();
|
|
5223
|
+
var node_2 = $.first_child(fragment_1);
|
|
5224
|
+
$.element(node_2, () => $clickable().element, false, ($$element, $$anchor$2) => {
|
|
5225
|
+
let attributes;
|
|
5226
|
+
$.template_effect(($0) => attributes = $.set_attributes($$element, attributes, {
|
|
5227
|
+
...$clickable().attributes,
|
|
5228
|
+
id: $rProps().id,
|
|
5229
|
+
class: $0,
|
|
5230
|
+
"data-layer-id": layerId(),
|
|
5231
|
+
"data-variant": $rProps().variant
|
|
5232
|
+
}), [() => ["button", ...$rProps().classNames ?? []].join(" ")], $.derived_safe_equal);
|
|
5233
|
+
$.event("click", $$element, function(...$$args) {
|
|
5234
|
+
$clickable().handleClick?.apply(this, $$args);
|
|
5235
|
+
});
|
|
5236
|
+
var fragment_2 = root_2$10();
|
|
5237
|
+
var node_3 = $.first_child(fragment_2);
|
|
5238
|
+
var consequent = ($$anchor$3) => {
|
|
5239
|
+
var div = root_3$1();
|
|
5240
|
+
var node_4 = $.child(div);
|
|
5241
|
+
const expression = $.derived_safe_equal(() => ({
|
|
5242
|
+
variant: $rProps().iconVariant,
|
|
5243
|
+
color: $rProps().iconColor ?? $rProps().color,
|
|
5244
|
+
width: "1em",
|
|
5245
|
+
height: "1em"
|
|
5246
|
+
}));
|
|
5247
|
+
Icon(node_4, { get props() {
|
|
5248
|
+
return $.get(expression);
|
|
5249
|
+
} });
|
|
5250
|
+
$.reset(div);
|
|
5251
|
+
$.append($$anchor$3, div);
|
|
5252
|
+
};
|
|
5253
|
+
$.if(node_3, ($$render) => {
|
|
5254
|
+
if (props().isIcon && props().iconVariant) $$render(consequent);
|
|
5255
|
+
});
|
|
5256
|
+
var span = $.sibling(node_3, 2);
|
|
5257
|
+
var text = $.child(span, true);
|
|
5258
|
+
$.reset(span);
|
|
5259
|
+
$.template_effect(() => $.set_text(text, $rProps().label ?? buttonPropsDefault.label));
|
|
5260
|
+
$.append($$anchor$2, fragment_2);
|
|
4867
5261
|
});
|
|
4868
|
-
var span = $.sibling(node_1, 2);
|
|
4869
|
-
var text = $.child(span, true);
|
|
4870
|
-
$.reset(span);
|
|
4871
|
-
$.template_effect(() => $.set_text(text, props().label ?? buttonPropsDefault.label));
|
|
4872
5262
|
$.append($$anchor$1, fragment_1);
|
|
5263
|
+
};
|
|
5264
|
+
$.if(node_1, ($$render) => {
|
|
5265
|
+
if (!$rProps().hidden) $$render(consequent_1);
|
|
4873
5266
|
});
|
|
4874
5267
|
$.append($$anchor, fragment);
|
|
4875
5268
|
$.pop();
|
|
5269
|
+
$$cleanup();
|
|
4876
5270
|
}
|
|
4877
5271
|
|
|
4878
5272
|
//#endregion
|
|
@@ -4886,6 +5280,20 @@ const buttonOutlinedPropsDefault = {
|
|
|
4886
5280
|
wrap: "nowrap"
|
|
4887
5281
|
};
|
|
4888
5282
|
|
|
5283
|
+
//#endregion
|
|
5284
|
+
//#region src/components-flex/utils/obj-to-style.ts
|
|
5285
|
+
const toHyphenCase = (str) => {
|
|
5286
|
+
let result = str.replace(/_/g, "-");
|
|
5287
|
+
result = result.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase();
|
|
5288
|
+
return result;
|
|
5289
|
+
};
|
|
5290
|
+
const objToStyle = (obj) => {
|
|
5291
|
+
return Object.entries(obj).map(([key, value]) => {
|
|
5292
|
+
if (value === void 0) return "";
|
|
5293
|
+
return `${toHyphenCase(key)}: ${value};`;
|
|
5294
|
+
}).filter((v) => v !== "").join(" ");
|
|
5295
|
+
};
|
|
5296
|
+
|
|
4889
5297
|
//#endregion
|
|
4890
5298
|
//#region src/components-flex/button-outlined/styles.ts
|
|
4891
5299
|
const BUTTON_OUTLINED_SIZE_STYLES = {
|
|
@@ -4968,27 +5376,59 @@ const BUTTON_OUTLINED_WRAP_STYLES = {
|
|
|
4968
5376
|
wrap: { whiteSpace: "pre-wrap" }
|
|
4969
5377
|
};
|
|
4970
5378
|
|
|
5379
|
+
//#endregion
|
|
5380
|
+
//#region src/hooks/useInjectCustomizeCss.ts
|
|
5381
|
+
const DATA_ATTR_LAYER_ID_KEY = "data-customize-css-layer-id";
|
|
5382
|
+
const useInjectCustomizeCss = (props, layerId) => {
|
|
5383
|
+
function injectCss() {
|
|
5384
|
+
let headAppended = false;
|
|
5385
|
+
const roots = Array.from(document.querySelectorAll(`.${KARTE_ACTION_ROOT}[data-${KARTE_ACTION_RID}='${actionId}']`));
|
|
5386
|
+
const style = document.createElement("style");
|
|
5387
|
+
style.setAttribute(DATA_ATTR_LAYER_ID_KEY, layerId);
|
|
5388
|
+
style.textContent = props.customizeCss;
|
|
5389
|
+
roots.forEach((root$56) => {
|
|
5390
|
+
if (root$56 && root$56.shadowRoot) {
|
|
5391
|
+
Array.from(root$56.shadowRoot.querySelectorAll(`style[${DATA_ATTR_LAYER_ID_KEY}='${layerId}']`)).forEach((style$1) => {
|
|
5392
|
+
style$1.parentNode?.removeChild(style$1);
|
|
5393
|
+
});
|
|
5394
|
+
root$56.shadowRoot.appendChild(style);
|
|
5395
|
+
} else if (!headAppended) {
|
|
5396
|
+
document.head.appendChild(style);
|
|
5397
|
+
headAppended = true;
|
|
5398
|
+
}
|
|
5399
|
+
});
|
|
5400
|
+
}
|
|
5401
|
+
onMount$1(() => {
|
|
5402
|
+
if (!props.isCustomizeCss) return;
|
|
5403
|
+
injectCss();
|
|
5404
|
+
});
|
|
5405
|
+
};
|
|
5406
|
+
|
|
4971
5407
|
//#endregion
|
|
4972
5408
|
//#region src/components-flex/button-outlined/ButtonOutlined.svelte
|
|
4973
|
-
var root_2$
|
|
4974
|
-
var root_1$
|
|
4975
|
-
const $$css$
|
|
5409
|
+
var root_2$9 = $.template(`<div class="button-outlined-icon svelte-z8gomx"><!></div>`);
|
|
5410
|
+
var root_1$13 = $.template(`<!> <span class="button-outlined-label svelte-z8gomx"> </span>`, 1);
|
|
5411
|
+
const $$css$25 = {
|
|
4976
5412
|
hash: "svelte-z8gomx",
|
|
4977
5413
|
code: ".button-outlined.svelte-z8gomx {display:inline-flex;gap:0.65em;align-items:center;justify-content:center;text-decoration:none;outline:0;border-width:1px;border-style:solid;line-height:1.5;transition:background-color 0.12s,\n border-color 0.12s,\n color 0.12s;cursor:pointer;background-color:var(--bg-color);}.button-outlined.svelte-z8gomx:hover {background-color:var(--hover-bg-color);}.button-outlined-icon.svelte-z8gomx {display:flex;align-items:center;justify-content:center;margin-left:-0.2em;margin-right:-0.2em;margin-bottom:0.1em;}"
|
|
4978
5414
|
};
|
|
4979
5415
|
function ButtonOutlined($$anchor, $$props) {
|
|
4980
5416
|
$.push($$props, false);
|
|
4981
|
-
$.append_styles($$anchor, $$css$
|
|
5417
|
+
$.append_styles($$anchor, $$css$25);
|
|
5418
|
+
const [$$stores, $$cleanup] = $.setup_stores();
|
|
5419
|
+
const $clickable = () => $.store_get($.get(clickable), "$clickable", $$stores);
|
|
5420
|
+
const clickable = $.mutable_state();
|
|
4982
5421
|
const variables$1 = $.mutable_state();
|
|
4983
5422
|
const style = $.mutable_state();
|
|
4984
5423
|
let props = $.prop($$props, "props", 24, () => ({}));
|
|
4985
5424
|
let layerId = $.prop($$props, "layerId", 8, "");
|
|
4986
5425
|
useInjectCustomizeCss(props(), layerId());
|
|
4987
5426
|
const { brandKit } = useBrandKit();
|
|
4988
|
-
const
|
|
4989
|
-
const buttonThemeStyles = getButtonOutlinedThemeStyles(brandKit);
|
|
4990
|
-
const buttonThemeStyle = buttonThemeStyles[props().theme ?? buttonOutlinedPropsDefault.theme];
|
|
5427
|
+
const buttonThemeStyle = getButtonOutlinedThemeStyles(brandKit)[props().theme ?? buttonOutlinedPropsDefault.theme];
|
|
4991
5428
|
const buttonSizeStyle = BUTTON_OUTLINED_SIZE_STYLES[props().size ?? buttonOutlinedPropsDefault.size];
|
|
5429
|
+
$.legacy_pre_effect(() => $.deep_read_state(props()), () => {
|
|
5430
|
+
$.store_unsub($.set(clickable, useClickable_default(props())), "$clickable", $$stores);
|
|
5431
|
+
});
|
|
4992
5432
|
$.legacy_pre_effect(() => ($.deep_read_state(props()), darkenColor), () => {
|
|
4993
5433
|
$.set(variables$1, {
|
|
4994
5434
|
"--bg-color": props().backgroundColor ?? buttonThemeStyle.backgroundColor,
|
|
@@ -5018,19 +5458,21 @@ function ButtonOutlined($$anchor, $$props) {
|
|
|
5018
5458
|
$.init();
|
|
5019
5459
|
var fragment = $.comment();
|
|
5020
5460
|
var node = $.first_child(fragment);
|
|
5021
|
-
$.element(node, () => element, false, ($$element, $$anchor$1) => {
|
|
5022
|
-
let
|
|
5023
|
-
$.template_effect(() =>
|
|
5024
|
-
|
|
5461
|
+
$.element(node, () => $clickable().element, false, ($$element, $$anchor$1) => {
|
|
5462
|
+
let attributes;
|
|
5463
|
+
$.template_effect(() => attributes = $.set_attributes($$element, attributes, {
|
|
5464
|
+
...$clickable().attributes,
|
|
5025
5465
|
class: "button-outlined",
|
|
5026
5466
|
style: $.get(style),
|
|
5027
5467
|
"data-layer-id": layerId()
|
|
5028
5468
|
}, "svelte-z8gomx"));
|
|
5029
|
-
$.event("click", $$element,
|
|
5030
|
-
|
|
5469
|
+
$.event("click", $$element, function(...$$args) {
|
|
5470
|
+
$clickable().handleClick?.apply(this, $$args);
|
|
5471
|
+
});
|
|
5472
|
+
var fragment_1 = root_1$13();
|
|
5031
5473
|
var node_1 = $.first_child(fragment_1);
|
|
5032
5474
|
var consequent = ($$anchor$2) => {
|
|
5033
|
-
var div = root_2$
|
|
5475
|
+
var div = root_2$9();
|
|
5034
5476
|
var node_2 = $.child(div);
|
|
5035
5477
|
const expression = $.derived_safe_equal(() => ({
|
|
5036
5478
|
variant: props().iconVariant,
|
|
@@ -5055,6 +5497,7 @@ function ButtonOutlined($$anchor, $$props) {
|
|
|
5055
5497
|
});
|
|
5056
5498
|
$.append($$anchor, fragment);
|
|
5057
5499
|
$.pop();
|
|
5500
|
+
$$cleanup();
|
|
5058
5501
|
}
|
|
5059
5502
|
|
|
5060
5503
|
//#endregion
|
|
@@ -5117,25 +5560,29 @@ const getButtonTextThemeStyles = getPropStyles(callback$2);
|
|
|
5117
5560
|
|
|
5118
5561
|
//#endregion
|
|
5119
5562
|
//#region src/components-flex/button-text/ButtonText.svelte
|
|
5120
|
-
var root_2$
|
|
5121
|
-
var root_1$
|
|
5122
|
-
const $$css$
|
|
5563
|
+
var root_2$8 = $.template(`<div class="button-text-icon svelte-l90o4j"><!></div>`);
|
|
5564
|
+
var root_1$12 = $.template(`<!> <span class="button-text-label svelte-l90o4j"> </span>`, 1);
|
|
5565
|
+
const $$css$24 = {
|
|
5123
5566
|
hash: "svelte-l90o4j",
|
|
5124
5567
|
code: ".button-text.svelte-l90o4j {display:inline-flex;gap:0.65em;align-items:center;justify-content:center;text-decoration:none;outline:0;border:0;line-height:1.5;transition:background-color 0.12s,\n border-color 0.12s,\n color 0.12s;cursor:pointer;background-color:rgba(255, 255, 255, 0);}.button-text.svelte-l90o4j:hover {background-color:var(--hover-bg-color);}.button-text-icon.svelte-l90o4j {display:flex;align-items:center;justify-content:center;margin-left:-0.2em;margin-right:-0.2em;}"
|
|
5125
5568
|
};
|
|
5126
5569
|
function ButtonText($$anchor, $$props) {
|
|
5127
5570
|
$.push($$props, false);
|
|
5128
|
-
$.append_styles($$anchor, $$css$
|
|
5571
|
+
$.append_styles($$anchor, $$css$24);
|
|
5572
|
+
const [$$stores, $$cleanup] = $.setup_stores();
|
|
5573
|
+
const $clickable = () => $.store_get($.get(clickable), "$clickable", $$stores);
|
|
5574
|
+
const clickable = $.mutable_state();
|
|
5129
5575
|
const variables$1 = $.mutable_state();
|
|
5130
5576
|
const style = $.mutable_state();
|
|
5131
5577
|
let props = $.prop($$props, "props", 24, () => ({}));
|
|
5132
5578
|
let layerId = $.prop($$props, "layerId", 8, "");
|
|
5133
5579
|
useInjectCustomizeCss(props(), layerId());
|
|
5134
5580
|
const { brandKit } = useBrandKit();
|
|
5135
|
-
const
|
|
5136
|
-
const themeStyles = getButtonTextThemeStyles(brandKit);
|
|
5137
|
-
const buttonThemeStyle = themeStyles[props().theme ?? "default"];
|
|
5581
|
+
const buttonThemeStyle = getButtonTextThemeStyles(brandKit)[props().theme ?? "default"];
|
|
5138
5582
|
const buttonSizeStyle = BUTTON_TEXT_SIZE_STYLES[props().size ?? "medium"];
|
|
5583
|
+
$.legacy_pre_effect(() => $.deep_read_state(props()), () => {
|
|
5584
|
+
$.store_unsub($.set(clickable, useClickable_default(props())), "$clickable", $$stores);
|
|
5585
|
+
});
|
|
5139
5586
|
$.legacy_pre_effect(() => $.deep_read_state(props()), () => {
|
|
5140
5587
|
$.set(variables$1, { "--hover-bg-color": props().backgroundColor ?? buttonThemeStyle.backgroundColor });
|
|
5141
5588
|
});
|
|
@@ -5159,19 +5606,21 @@ function ButtonText($$anchor, $$props) {
|
|
|
5159
5606
|
$.init();
|
|
5160
5607
|
var fragment = $.comment();
|
|
5161
5608
|
var node = $.first_child(fragment);
|
|
5162
|
-
$.element(node, () => element, false, ($$element, $$anchor$1) => {
|
|
5163
|
-
let
|
|
5164
|
-
$.template_effect(() =>
|
|
5165
|
-
|
|
5609
|
+
$.element(node, () => $clickable().element, false, ($$element, $$anchor$1) => {
|
|
5610
|
+
let attributes;
|
|
5611
|
+
$.template_effect(() => attributes = $.set_attributes($$element, attributes, {
|
|
5612
|
+
...$clickable().attributes,
|
|
5166
5613
|
class: "button-text",
|
|
5167
5614
|
style: $.get(style),
|
|
5168
5615
|
"data-layer-id": layerId()
|
|
5169
5616
|
}, "svelte-l90o4j"));
|
|
5170
|
-
$.event("click", $$element,
|
|
5171
|
-
|
|
5617
|
+
$.event("click", $$element, function(...$$args) {
|
|
5618
|
+
$clickable().handleClick?.apply(this, $$args);
|
|
5619
|
+
});
|
|
5620
|
+
var fragment_1 = root_1$12();
|
|
5172
5621
|
var node_1 = $.first_child(fragment_1);
|
|
5173
5622
|
var consequent = ($$anchor$2) => {
|
|
5174
|
-
var div = root_2$
|
|
5623
|
+
var div = root_2$8();
|
|
5175
5624
|
var node_2 = $.child(div);
|
|
5176
5625
|
const expression = $.derived_safe_equal(() => ({
|
|
5177
5626
|
variant: props().iconVariant,
|
|
@@ -5196,6 +5645,7 @@ function ButtonText($$anchor, $$props) {
|
|
|
5196
5645
|
});
|
|
5197
5646
|
$.append($$anchor, fragment);
|
|
5198
5647
|
$.pop();
|
|
5648
|
+
$$cleanup();
|
|
5199
5649
|
}
|
|
5200
5650
|
|
|
5201
5651
|
//#endregion
|
|
@@ -5232,15 +5682,18 @@ const getTextThemeStyles = getPropStyles(callback$1);
|
|
|
5232
5682
|
|
|
5233
5683
|
//#endregion
|
|
5234
5684
|
//#region src/components-flex/close-button/CloseButton.svelte
|
|
5235
|
-
var root_2$
|
|
5236
|
-
var root_1$
|
|
5237
|
-
const $$css$
|
|
5685
|
+
var root_2$7 = $.template(`<span></span>`);
|
|
5686
|
+
var root_1$11 = $.template(`<span><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512" style="width: 100%; height: 100%;" class="svelte-18wmfyq"><path d="M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"></path></svg></span> <!>`, 1);
|
|
5687
|
+
const $$css$23 = {
|
|
5238
5688
|
hash: "svelte-18wmfyq",
|
|
5239
5689
|
code: ".close-button.svelte-18wmfyq {display:inline-flex;align-items:center;justify-content:center;align-self:center;gap:8px;border-radius:100%;background:none;cursor:pointer;border:0;outline:0;flex-shrink:0;transition:background-color 0.12s,\n border-color 0.12s,\n color 0.12s;}.close-button.svelte-18wmfyq svg:where(.svelte-18wmfyq) {transition:transform 0.12s;}.close-button.svelte-18wmfyq:hover svg:where(.svelte-18wmfyq) {transform:rotate(90deg);}.close-button-order-one.svelte-18wmfyq {order:1;}.close-button-order-two.svelte-18wmfyq {order:2;}"
|
|
5240
5690
|
};
|
|
5241
5691
|
function CloseButton($$anchor, $$props) {
|
|
5242
5692
|
$.push($$props, false);
|
|
5243
|
-
$.append_styles($$anchor, $$css$
|
|
5693
|
+
$.append_styles($$anchor, $$css$23);
|
|
5694
|
+
const [$$stores, $$cleanup] = $.setup_stores();
|
|
5695
|
+
const $clickable = () => $.store_get($.get(clickable), "$clickable", $$stores);
|
|
5696
|
+
const clickable = $.mutable_state();
|
|
5244
5697
|
const hasLabel = $.mutable_state();
|
|
5245
5698
|
const styleObj = $.mutable_state();
|
|
5246
5699
|
const style = $.mutable_state();
|
|
@@ -5254,14 +5707,6 @@ function CloseButton($$anchor, $$props) {
|
|
|
5254
5707
|
let eventValue = $.prop($$props, "eventValue", 8, void 0);
|
|
5255
5708
|
const { brandKit } = useBrandKit();
|
|
5256
5709
|
useInjectCustomizeCss(props(), layerId());
|
|
5257
|
-
const { attributes, element, handleClick } = useClickable_default(props().onClick ? props() : {
|
|
5258
|
-
onClick: {
|
|
5259
|
-
operation: "closeApp",
|
|
5260
|
-
args: ["button"]
|
|
5261
|
-
},
|
|
5262
|
-
eventValue: eventValue(),
|
|
5263
|
-
eventName: eventName()
|
|
5264
|
-
});
|
|
5265
5710
|
const VARIANTS = {
|
|
5266
5711
|
placement: {
|
|
5267
5712
|
topRight: {
|
|
@@ -5291,6 +5736,16 @@ function CloseButton($$anchor, $$props) {
|
|
|
5291
5736
|
const color = props().color ?? getTextThemeStyles(brandKit)[props().colorVariant]?.color ?? "#666";
|
|
5292
5737
|
const label = props().label;
|
|
5293
5738
|
const isLeftLabelPlacement = props().labelPlacement === "left";
|
|
5739
|
+
$.legacy_pre_effect(() => ($.deep_read_state(props()), $.deep_read_state(eventValue()), $.deep_read_state(eventName())), () => {
|
|
5740
|
+
$.store_unsub($.set(clickable, useClickable_default(props().onClick ? props() : {
|
|
5741
|
+
onClick: {
|
|
5742
|
+
operation: "closeApp",
|
|
5743
|
+
args: ["button"]
|
|
5744
|
+
},
|
|
5745
|
+
eventValue: eventValue(),
|
|
5746
|
+
eventName: eventName()
|
|
5747
|
+
})), "$clickable", $$stores);
|
|
5748
|
+
});
|
|
5294
5749
|
$.legacy_pre_effect(() => {}, () => {
|
|
5295
5750
|
$.set(hasLabel, label !== void 0 && label !== "");
|
|
5296
5751
|
});
|
|
@@ -5342,24 +5797,26 @@ function CloseButton($$anchor, $$props) {
|
|
|
5342
5797
|
$.init();
|
|
5343
5798
|
var fragment = $.comment();
|
|
5344
5799
|
var node = $.first_child(fragment);
|
|
5345
|
-
$.element(node, () => element, false, ($$element, $$anchor$1) => {
|
|
5346
|
-
let
|
|
5347
|
-
$.template_effect(($0) =>
|
|
5348
|
-
|
|
5800
|
+
$.element(node, () => $clickable().element, false, ($$element, $$anchor$1) => {
|
|
5801
|
+
let attributes;
|
|
5802
|
+
$.template_effect(($0) => attributes = $.set_attributes($$element, attributes, {
|
|
5803
|
+
...$clickable().attributes,
|
|
5349
5804
|
id: props().id,
|
|
5350
5805
|
class: $0,
|
|
5351
5806
|
"data-layer-id": layerId(),
|
|
5352
5807
|
style: $.get(style)
|
|
5353
5808
|
}, "svelte-18wmfyq"), [() => [`close-button ${isLeftLabelPlacement ? "close-button-order-two" : ""}`, ...props().classNames ?? []].join(" ")], $.derived_safe_equal);
|
|
5354
|
-
$.event("click", $$element,
|
|
5355
|
-
|
|
5809
|
+
$.event("click", $$element, function(...$$args) {
|
|
5810
|
+
$clickable().handleClick?.apply(this, $$args);
|
|
5811
|
+
});
|
|
5812
|
+
var fragment_1 = root_1$11();
|
|
5356
5813
|
var span = $.first_child(fragment_1);
|
|
5357
5814
|
var svg = $.child(span);
|
|
5358
5815
|
$.set_attribute(svg, "fill", color);
|
|
5359
5816
|
$.reset(span);
|
|
5360
5817
|
var node_1 = $.sibling(span, 2);
|
|
5361
5818
|
var consequent = ($$anchor$2) => {
|
|
5362
|
-
var span_1 = root_2$
|
|
5819
|
+
var span_1 = root_2$7();
|
|
5363
5820
|
$.set_class(span_1, 1, `close-button-label ${isLeftLabelPlacement ? "close-button-order-one" : ""}`, "svelte-18wmfyq");
|
|
5364
5821
|
span_1.textContent = label;
|
|
5365
5822
|
$.template_effect(() => $.set_style(span_1, $.get(labelStyle)));
|
|
@@ -5373,6 +5830,7 @@ function CloseButton($$anchor, $$props) {
|
|
|
5373
5830
|
});
|
|
5374
5831
|
$.append($$anchor, fragment);
|
|
5375
5832
|
$.pop();
|
|
5833
|
+
$$cleanup();
|
|
5376
5834
|
}
|
|
5377
5835
|
|
|
5378
5836
|
//#endregion
|
|
@@ -5451,29 +5909,34 @@ const IMAGE_ROUND_STYLES = {
|
|
|
5451
5909
|
|
|
5452
5910
|
//#endregion
|
|
5453
5911
|
//#region src/components-flex/image/Image.svelte
|
|
5454
|
-
var root_1$
|
|
5455
|
-
const $$css$
|
|
5912
|
+
var root_1$10 = $.template(`<img class="image-img svelte-1olvu11">`);
|
|
5913
|
+
const $$css$22 = {
|
|
5456
5914
|
hash: "svelte-1olvu11",
|
|
5457
5915
|
code: ".image.svelte-1olvu11 {max-width:100%;overflow:hidden;display:flex;align-items:center;justify-content:center;border:0;background:none;padding:0;margin:0;text-align:left;-webkit-appearance:none;}.image-img.svelte-1olvu11 {vertical-align:top;width:100%;height:100%;object-fit:cover;user-select:none;-webkit-user-drag:none;}"
|
|
5458
5916
|
};
|
|
5459
5917
|
function Image($$anchor, $$props) {
|
|
5460
5918
|
$.push($$props, false);
|
|
5461
|
-
$.append_styles($$anchor, $$css$
|
|
5919
|
+
$.append_styles($$anchor, $$css$22);
|
|
5920
|
+
const [$$stores, $$cleanup] = $.setup_stores();
|
|
5921
|
+
const $clickable = () => $.store_get($.get(clickable), "$clickable", $$stores);
|
|
5922
|
+
const clickable = $.mutable_state();
|
|
5462
5923
|
const styleObj = $.mutable_state();
|
|
5463
5924
|
const style = $.mutable_state();
|
|
5464
5925
|
const imgStyle = $.mutable_state();
|
|
5465
5926
|
let props = $.prop($$props, "props", 24, () => ({}));
|
|
5466
5927
|
let layerId = $.prop($$props, "layerId", 8, "");
|
|
5467
5928
|
useInjectCustomizeCss(props(), layerId());
|
|
5468
|
-
const { attributes, element, handleClick } = useClickable_default(props());
|
|
5469
5929
|
const aspectVariantStyles = ASPECT_VARIANT[props().aspectVariant]?.getProps();
|
|
5470
5930
|
const width = props().width ?? "100%";
|
|
5471
|
-
const calcImgRadius = (parentRadius, borderWidth) => {
|
|
5931
|
+
const calcImgRadius$1 = (parentRadius, borderWidth) => {
|
|
5472
5932
|
const radiusSize = parentRadius ? parseInt(parentRadius) : 0;
|
|
5473
5933
|
if (radiusSize === 0) return 0;
|
|
5474
5934
|
if (parentRadius === "100%") return "100%";
|
|
5475
5935
|
return radiusSize > 0 ? `calc(${parentRadius} - ${borderWidth})` : void 0;
|
|
5476
5936
|
};
|
|
5937
|
+
$.legacy_pre_effect(() => $.deep_read_state(props()), () => {
|
|
5938
|
+
$.store_unsub($.set(clickable, useClickable_default(props())), "$clickable", $$stores);
|
|
5939
|
+
});
|
|
5477
5940
|
$.legacy_pre_effect(() => ($.deep_read_state(props()), toCssPadding), () => {
|
|
5478
5941
|
$.set(styleObj, {
|
|
5479
5942
|
...props().borderTopLeftRadius ? toCssRadius(props()) : IMAGE_ROUND_STYLES[props().shape ?? "square"],
|
|
@@ -5491,27 +5954,29 @@ function Image($$anchor, $$props) {
|
|
|
5491
5954
|
});
|
|
5492
5955
|
$.legacy_pre_effect(() => $.get(styleObj), () => {
|
|
5493
5956
|
$.set(imgStyle, objToStyle({ ...toCssRadius({
|
|
5494
|
-
borderTopLeftRadius: calcImgRadius($.get(styleObj).borderTopLeftRadius, $.get(styleObj).borderTopWidth),
|
|
5495
|
-
borderTopRightRadius: calcImgRadius($.get(styleObj).borderTopRightRadius, $.get(styleObj).borderTopWidth),
|
|
5496
|
-
borderBottomLeftRadius: calcImgRadius($.get(styleObj).borderBottomLeftRadius, $.get(styleObj).borderTopWidth),
|
|
5497
|
-
borderBottomRightRadius: calcImgRadius($.get(styleObj).borderBottomRightRadius, $.get(styleObj).borderTopWidth)
|
|
5957
|
+
borderTopLeftRadius: calcImgRadius$1($.get(styleObj).borderTopLeftRadius, $.get(styleObj).borderTopWidth),
|
|
5958
|
+
borderTopRightRadius: calcImgRadius$1($.get(styleObj).borderTopRightRadius, $.get(styleObj).borderTopWidth),
|
|
5959
|
+
borderBottomLeftRadius: calcImgRadius$1($.get(styleObj).borderBottomLeftRadius, $.get(styleObj).borderTopWidth),
|
|
5960
|
+
borderBottomRightRadius: calcImgRadius$1($.get(styleObj).borderBottomRightRadius, $.get(styleObj).borderTopWidth)
|
|
5498
5961
|
}) }));
|
|
5499
5962
|
});
|
|
5500
5963
|
$.legacy_pre_effect_reset();
|
|
5501
5964
|
$.init();
|
|
5502
5965
|
var fragment = $.comment();
|
|
5503
5966
|
var node = $.first_child(fragment);
|
|
5504
|
-
$.element(node, () => element, false, ($$element, $$anchor$1) => {
|
|
5505
|
-
let
|
|
5506
|
-
$.template_effect(($0) =>
|
|
5507
|
-
|
|
5967
|
+
$.element(node, () => $clickable().element, false, ($$element, $$anchor$1) => {
|
|
5968
|
+
let attributes;
|
|
5969
|
+
$.template_effect(($0) => attributes = $.set_attributes($$element, attributes, {
|
|
5970
|
+
...$clickable().attributes,
|
|
5508
5971
|
id: props().id,
|
|
5509
5972
|
class: $0,
|
|
5510
5973
|
style: $.get(style),
|
|
5511
5974
|
"data-layer-id": layerId()
|
|
5512
5975
|
}, "svelte-1olvu11"), [() => ["image", ...props().classNames ?? []].join(" ")], $.derived_safe_equal);
|
|
5513
|
-
$.event("click", $$element,
|
|
5514
|
-
|
|
5976
|
+
$.event("click", $$element, function(...$$args) {
|
|
5977
|
+
$clickable().handleClick?.apply(this, $$args);
|
|
5978
|
+
});
|
|
5979
|
+
var img = root_1$10();
|
|
5515
5980
|
$.template_effect(() => {
|
|
5516
5981
|
$.set_attribute(img, "src", props().image);
|
|
5517
5982
|
$.set_attribute(img, "alt", props().alt);
|
|
@@ -5521,6 +5986,7 @@ function Image($$anchor, $$props) {
|
|
|
5521
5986
|
});
|
|
5522
5987
|
$.append($$anchor, fragment);
|
|
5523
5988
|
$.pop();
|
|
5989
|
+
$$cleanup();
|
|
5524
5990
|
}
|
|
5525
5991
|
|
|
5526
5992
|
//#endregion
|
|
@@ -5544,61 +6010,98 @@ const IMAGE_ASPECT_VARIANTS = {
|
|
|
5544
6010
|
};
|
|
5545
6011
|
|
|
5546
6012
|
//#endregion
|
|
5547
|
-
//#region src/components-flex/layout/Layout.
|
|
5548
|
-
|
|
5549
|
-
|
|
5550
|
-
|
|
6013
|
+
//#region src/components-flex/layout/Layout.css.ts
|
|
6014
|
+
var Layout_css_default = (layerId, props, brandKit) => {
|
|
6015
|
+
const toDynamicStyle$4 = (_props) => {
|
|
6016
|
+
return createComponentRawCss(layerId, (style) => [style("", {
|
|
6017
|
+
display: _props.display ?? "flex",
|
|
6018
|
+
flexDirection: _props.direction,
|
|
6019
|
+
alignItems: _props.align,
|
|
6020
|
+
justifyContent: _props.justify,
|
|
6021
|
+
rowGap: _props.rowGap ?? _props.gap,
|
|
6022
|
+
columnGap: _props.columnGap ?? _props.gap,
|
|
6023
|
+
width: _props.width,
|
|
6024
|
+
maxWidth: _props.maxWidth,
|
|
6025
|
+
height: _props.height,
|
|
6026
|
+
...toCssOverflow(_props),
|
|
6027
|
+
...toCssShadow(_props),
|
|
6028
|
+
...toCssRadius(_props),
|
|
6029
|
+
...toCssBackground(_props, brandKit),
|
|
6030
|
+
...toCssCommon(_props),
|
|
6031
|
+
...toCssPadding(_props),
|
|
6032
|
+
...toCssBorder(_props, brandKit)
|
|
6033
|
+
})]);
|
|
6034
|
+
};
|
|
6035
|
+
return createComponentRawCss(layerId, (style) => [
|
|
6036
|
+
style("", {
|
|
6037
|
+
textDecoration: "none",
|
|
6038
|
+
color: "inherit"
|
|
6039
|
+
}),
|
|
6040
|
+
style("&[data-clickable=\"true\"]", { cursor: "pointer" }),
|
|
6041
|
+
style("&[data-clickable=\"true\"]:hover", { opacity: .8 }),
|
|
6042
|
+
toDynamicStyle$4(props),
|
|
6043
|
+
...props.responsiveSettings?.map((v) => {
|
|
6044
|
+
if (v.mediaQueryCondition) return toResponsiveSelector(v, toDynamicStyle$4(v.props));
|
|
6045
|
+
else if (v.userAgentCondition) return "";
|
|
6046
|
+
return "";
|
|
6047
|
+
}) ?? [],
|
|
6048
|
+
props.customizeCss
|
|
6049
|
+
]);
|
|
5551
6050
|
};
|
|
6051
|
+
|
|
6052
|
+
//#endregion
|
|
6053
|
+
//#region src/components-flex/layout/Layout.svelte
|
|
6054
|
+
var root$18 = $.template(`<!> <!>`, 1);
|
|
5552
6055
|
function Layout($$anchor, $$props) {
|
|
5553
6056
|
$.push($$props, false);
|
|
5554
|
-
|
|
5555
|
-
const
|
|
6057
|
+
const [$$stores, $$cleanup] = $.setup_stores();
|
|
6058
|
+
const $rProps = () => $.store_get($.get(rProps), "$rProps", $$stores);
|
|
6059
|
+
const $clickable = () => $.store_get($.get(clickable), "$clickable", $$stores);
|
|
6060
|
+
const rProps = $.mutable_state();
|
|
6061
|
+
const clickable = $.mutable_state();
|
|
5556
6062
|
let props = $.prop($$props, "props", 24, () => ({}));
|
|
5557
|
-
let layerId = $.prop($$props, "layerId",
|
|
6063
|
+
let layerId = $.prop($$props, "layerId", 24, () => crypto.randomUUID());
|
|
5558
6064
|
const { brandKit } = useBrandKit();
|
|
5559
|
-
|
|
5560
|
-
|
|
5561
|
-
|
|
5562
|
-
|
|
5563
|
-
|
|
5564
|
-
|
|
5565
|
-
alignItems: props().align,
|
|
5566
|
-
justifyContent: props().justify,
|
|
5567
|
-
rowGap: props().rowGap ?? props().gap,
|
|
5568
|
-
columnGap: props().columnGap ?? props().gap,
|
|
5569
|
-
width: props().width,
|
|
5570
|
-
maxWidth: props().maxWidth,
|
|
5571
|
-
height: props().height,
|
|
5572
|
-
...toCssOverflow(props()),
|
|
5573
|
-
...toCssShadow(props()),
|
|
5574
|
-
...toCssRadius(props()),
|
|
5575
|
-
...toCssBackground(props(), brandKit),
|
|
5576
|
-
...toCssCommon(props()),
|
|
5577
|
-
...toCssPadding(props()),
|
|
5578
|
-
...toCssBorder(props(), brandKit)
|
|
5579
|
-
}));
|
|
6065
|
+
const cssCode = Layout_css_default(layerId(), props(), brandKit);
|
|
6066
|
+
$.legacy_pre_effect(() => $.deep_read_state(props()), () => {
|
|
6067
|
+
$.store_unsub($.set(rProps, useResponsiveProps(props())), "$rProps", $$stores);
|
|
6068
|
+
});
|
|
6069
|
+
$.legacy_pre_effect(() => $rProps(), () => {
|
|
6070
|
+
$.store_unsub($.set(clickable, useClickable_default($rProps())), "$clickable", $$stores);
|
|
5580
6071
|
});
|
|
5581
6072
|
$.legacy_pre_effect_reset();
|
|
5582
6073
|
$.init();
|
|
5583
|
-
var fragment =
|
|
6074
|
+
var fragment = root$18();
|
|
5584
6075
|
var node = $.first_child(fragment);
|
|
5585
|
-
|
|
5586
|
-
|
|
5587
|
-
|
|
5588
|
-
...attributes,
|
|
5589
|
-
id: props().id,
|
|
5590
|
-
class: $0,
|
|
5591
|
-
style: $.get(style),
|
|
5592
|
-
"data-layer-id": layerId()
|
|
5593
|
-
}, "svelte-1o103hp"), [() => ["layout", ...props().classNames ?? []].join(" ")], $.derived_safe_equal);
|
|
5594
|
-
$.event("click", $$element, handleClick);
|
|
6076
|
+
StylePortal(node, { cssText: cssCode });
|
|
6077
|
+
var node_1 = $.sibling(node, 2);
|
|
6078
|
+
var consequent = ($$anchor$1) => {
|
|
5595
6079
|
var fragment_1 = $.comment();
|
|
5596
|
-
var
|
|
5597
|
-
$.
|
|
6080
|
+
var node_2 = $.first_child(fragment_1);
|
|
6081
|
+
$.element(node_2, () => "div", false, ($$element, $$anchor$2) => {
|
|
6082
|
+
let attributes;
|
|
6083
|
+
$.template_effect(($0) => attributes = $.set_attributes($$element, attributes, {
|
|
6084
|
+
...$clickable().attributes,
|
|
6085
|
+
id: $rProps().id,
|
|
6086
|
+
class: $0,
|
|
6087
|
+
"data-layer-id": layerId()
|
|
6088
|
+
}), [() => ["layout", ...$rProps().classNames ?? []].join(" ")], $.derived_safe_equal);
|
|
6089
|
+
$.event("click", $$element, function(...$$args) {
|
|
6090
|
+
$clickable().handleClick?.apply(this, $$args);
|
|
6091
|
+
});
|
|
6092
|
+
var fragment_2 = $.comment();
|
|
6093
|
+
var node_3 = $.first_child(fragment_2);
|
|
6094
|
+
$.slot(node_3, $$props, "default", {}, null);
|
|
6095
|
+
$.append($$anchor$2, fragment_2);
|
|
6096
|
+
});
|
|
5598
6097
|
$.append($$anchor$1, fragment_1);
|
|
6098
|
+
};
|
|
6099
|
+
$.if(node_1, ($$render) => {
|
|
6100
|
+
if (!$rProps().hidden) $$render(consequent);
|
|
5599
6101
|
});
|
|
5600
6102
|
$.append($$anchor, fragment);
|
|
5601
6103
|
$.pop();
|
|
6104
|
+
$$cleanup();
|
|
5602
6105
|
}
|
|
5603
6106
|
|
|
5604
6107
|
//#endregion
|
|
@@ -5629,15 +6132,16 @@ const LAYOUT_JUSTIFY = [
|
|
|
5629
6132
|
|
|
5630
6133
|
//#endregion
|
|
5631
6134
|
//#region src/components-flex/slider/Slider.svelte
|
|
5632
|
-
var
|
|
5633
|
-
var
|
|
5634
|
-
|
|
5635
|
-
|
|
5636
|
-
|
|
6135
|
+
var root_2$6 = $.template(`<button><i></i></button>`);
|
|
6136
|
+
var root_1$9 = $.template(`<div></div>`);
|
|
6137
|
+
var root$17 = $.template(`<div><div class="slider-container svelte-i5qqzj"><ul class="slider-list svelte-i5qqzj"><!></ul></div> <!></div>`);
|
|
6138
|
+
const $$css$21 = {
|
|
6139
|
+
hash: "svelte-i5qqzj",
|
|
6140
|
+
code: ".slider.svelte-i5qqzj {width:100%;overflow:hidden;overscroll-behavior:contain;touch-action:pan-y;margin:0;padding:0;}.slider-container.svelte-i5qqzj {width:100%;overflow:hidden;overscroll-behavior:contain;touch-action:pan-y;}.slider-list.svelte-i5qqzj {-webkit-user-drag:none;margin:0;padding:0;list-style:none;will-change:transform;}"
|
|
5637
6141
|
};
|
|
5638
6142
|
function Slider($$anchor, $$props) {
|
|
5639
6143
|
$.push($$props, false);
|
|
5640
|
-
$.append_styles($$anchor, $$css$
|
|
6144
|
+
$.append_styles($$anchor, $$css$21);
|
|
5641
6145
|
const indicators = $.mutable_state();
|
|
5642
6146
|
const itemWidthPercentage = $.mutable_state();
|
|
5643
6147
|
const baseContainerStyle = $.mutable_state();
|
|
@@ -5650,11 +6154,13 @@ function Slider($$anchor, $$props) {
|
|
|
5650
6154
|
useInjectCustomizeCss(props(), layerId());
|
|
5651
6155
|
let containerElement = $.mutable_state();
|
|
5652
6156
|
let slotElement = $.mutable_state();
|
|
5653
|
-
let currentIndex = $.mutable_state(0);
|
|
5654
6157
|
let isDragging = false;
|
|
5655
6158
|
let startX = 0;
|
|
5656
6159
|
let movedX = $.mutable_state(null);
|
|
6160
|
+
let sliderId = layerId();
|
|
6161
|
+
let currentIndex = $.mutable_state(0);
|
|
5657
6162
|
let childCount = $.mutable_state(0);
|
|
6163
|
+
let unsubscribeSliderState = $.mutable_state(null);
|
|
5658
6164
|
let transformX = $.mutable_state();
|
|
5659
6165
|
let lastFrame = 0;
|
|
5660
6166
|
const THROTTLE = 16;
|
|
@@ -5668,19 +6174,15 @@ function Slider($$anchor, $$props) {
|
|
|
5668
6174
|
return `translate3d(calc(-${result}% - ${gap * index}px${moved}), 0, 0)`;
|
|
5669
6175
|
};
|
|
5670
6176
|
const handleClickIndicator = (index) => {
|
|
5671
|
-
|
|
5672
|
-
};
|
|
5673
|
-
const setChildCount = () => {
|
|
5674
|
-
const count = $.get(slotElement)?.children?.length ?? 0;
|
|
5675
|
-
if (count !== $.get(childCount)) $.set(childCount, $.get(slotElement)?.children?.length ?? 0);
|
|
6177
|
+
slideTo(sliderId, "number", index + 1, false)();
|
|
5676
6178
|
};
|
|
5677
6179
|
const toNext = () => {
|
|
5678
|
-
if ($.get(currentIndex) < $.get(childCount) - 1)
|
|
5679
|
-
else if (props().loop)
|
|
6180
|
+
if ($.get(currentIndex) < $.get(childCount) - 1) slideTo(sliderId, "next", 0, false)();
|
|
6181
|
+
else if (props().loop) slideTo(sliderId, "first", 0, false)();
|
|
5680
6182
|
};
|
|
5681
6183
|
const toPrev = () => {
|
|
5682
|
-
if ($.get(currentIndex) > 0)
|
|
5683
|
-
else if (props().loop)
|
|
6184
|
+
if ($.get(currentIndex) > 0) slideTo(sliderId, "prev", 0, false)();
|
|
6185
|
+
else if (props().loop) slideTo(sliderId, "end", 0, false)();
|
|
5684
6186
|
};
|
|
5685
6187
|
const handleClick = (e) => {
|
|
5686
6188
|
const isParentContainer = (el) => {
|
|
@@ -5692,9 +6194,20 @@ function Slider($$anchor, $$props) {
|
|
|
5692
6194
|
e.stopPropagation();
|
|
5693
6195
|
}
|
|
5694
6196
|
};
|
|
6197
|
+
const disableChildrenClick = () => {
|
|
6198
|
+
if ($.get(slotElement)) Array.from($.get(slotElement).children ?? []).forEach((child) => {
|
|
6199
|
+
child.style.pointerEvents = "none";
|
|
6200
|
+
});
|
|
6201
|
+
};
|
|
6202
|
+
const enableChildrenClick = () => {
|
|
6203
|
+
if ($.get(slotElement)) Array.from($.get(slotElement).children ?? []).forEach((child) => {
|
|
6204
|
+
child.style.pointerEvents = void 0;
|
|
6205
|
+
});
|
|
6206
|
+
};
|
|
5695
6207
|
const move = (moved) => {
|
|
5696
6208
|
$.set(movedX, moved);
|
|
5697
6209
|
if ((moved > 10 || moved < -10) && !isDragging) isDragging = true;
|
|
6210
|
+
disableChildrenClick();
|
|
5698
6211
|
};
|
|
5699
6212
|
const handleTouchmove = (e) => {
|
|
5700
6213
|
const now = performance.now();
|
|
@@ -5706,9 +6219,15 @@ function Slider($$anchor, $$props) {
|
|
|
5706
6219
|
if ($.get(movedX) >= 32) toNext();
|
|
5707
6220
|
else if ($.get(movedX) <= -32) toPrev();
|
|
5708
6221
|
$.set(movedX, null);
|
|
6222
|
+
setTimeout(() => {
|
|
6223
|
+
isDragging = false;
|
|
6224
|
+
}, 300);
|
|
5709
6225
|
document.removeEventListener("touchmove", handleTouchmove);
|
|
5710
6226
|
document.removeEventListener("touchend", handleTouchend);
|
|
5711
6227
|
document.removeEventListener("click", handleClick);
|
|
6228
|
+
setTimeout(() => {
|
|
6229
|
+
enableChildrenClick();
|
|
6230
|
+
}, 100);
|
|
5712
6231
|
};
|
|
5713
6232
|
const handleTouchstart = (e) => {
|
|
5714
6233
|
startX = e.touches[0].clientX;
|
|
@@ -5725,9 +6244,15 @@ function Slider($$anchor, $$props) {
|
|
|
5725
6244
|
else if ($.get(movedX) <= -32) toPrev();
|
|
5726
6245
|
$.set(movedX, null);
|
|
5727
6246
|
if (isDragging) e.stopPropagation();
|
|
6247
|
+
setTimeout(() => {
|
|
6248
|
+
isDragging = false;
|
|
6249
|
+
}, 300);
|
|
5728
6250
|
document.removeEventListener("mousemove", handleMousemove);
|
|
5729
6251
|
document.removeEventListener("mouseup", handleMouseup);
|
|
5730
6252
|
document.removeEventListener("click", handleClick);
|
|
6253
|
+
setTimeout(() => {
|
|
6254
|
+
enableChildrenClick();
|
|
6255
|
+
}, 100);
|
|
5731
6256
|
};
|
|
5732
6257
|
const handleMousedown = (e) => {
|
|
5733
6258
|
startX = e.clientX;
|
|
@@ -5737,7 +6262,6 @@ function Slider($$anchor, $$props) {
|
|
|
5737
6262
|
document.addEventListener("click", handleClick, { capture: true });
|
|
5738
6263
|
};
|
|
5739
6264
|
onMount$1(() => {
|
|
5740
|
-
setChildCount();
|
|
5741
6265
|
let autoSlideTimer;
|
|
5742
6266
|
if (props().auto) autoSlideTimer = setInterval(() => {
|
|
5743
6267
|
toNext();
|
|
@@ -5746,8 +6270,26 @@ function Slider($$anchor, $$props) {
|
|
|
5746
6270
|
if (autoSlideTimer) clearInterval(autoSlideTimer);
|
|
5747
6271
|
};
|
|
5748
6272
|
});
|
|
5749
|
-
|
|
5750
|
-
if ($.get(
|
|
6273
|
+
onDestroy$1(() => {
|
|
6274
|
+
if ($.get(unsubscribeSliderState)) $.get(unsubscribeSliderState)();
|
|
6275
|
+
});
|
|
6276
|
+
$.legacy_pre_effect(() => ($.get(slotElement), $.deep_read_state(props()), $.get(unsubscribeSliderState)), () => {
|
|
6277
|
+
if (sliderId) {
|
|
6278
|
+
sliderStates.update((updater) => {
|
|
6279
|
+
updater[sliderId] = {
|
|
6280
|
+
currentIndex: 0,
|
|
6281
|
+
slides: $.get(slotElement)?.children?.length ?? 0,
|
|
6282
|
+
loop: props().loop
|
|
6283
|
+
};
|
|
6284
|
+
return updater;
|
|
6285
|
+
});
|
|
6286
|
+
if ($.get(unsubscribeSliderState)) $.get(unsubscribeSliderState)();
|
|
6287
|
+
$.set(unsubscribeSliderState, sliderStates.subscribe(($states) => {
|
|
6288
|
+
const state$1 = $states[sliderId];
|
|
6289
|
+
$.set(currentIndex, state$1?.currentIndex ?? 0);
|
|
6290
|
+
$.set(childCount, state$1?.slides ?? 0);
|
|
6291
|
+
}));
|
|
6292
|
+
}
|
|
5751
6293
|
});
|
|
5752
6294
|
$.legacy_pre_effect(() => ($.get(childCount), $.get(currentIndex)), () => {
|
|
5753
6295
|
$.set(indicators, [...Array($.get(childCount))].map((_, i) => ({
|
|
@@ -5800,7 +6342,7 @@ function Slider($$anchor, $$props) {
|
|
|
5800
6342
|
});
|
|
5801
6343
|
$.legacy_pre_effect_reset();
|
|
5802
6344
|
$.init();
|
|
5803
|
-
var div = root$
|
|
6345
|
+
var div = root$17();
|
|
5804
6346
|
var div_1 = $.child(div);
|
|
5805
6347
|
var ul = $.child(div_1);
|
|
5806
6348
|
var node = $.child(ul);
|
|
@@ -5809,33 +6351,40 @@ function Slider($$anchor, $$props) {
|
|
|
5809
6351
|
$.bind_this(ul, ($$value) => $.set(slotElement, $$value), () => $.get(slotElement));
|
|
5810
6352
|
$.reset(div_1);
|
|
5811
6353
|
$.bind_this(div_1, ($$value) => $.set(containerElement, $$value), () => $.get(containerElement));
|
|
5812
|
-
var
|
|
5813
|
-
|
|
5814
|
-
var
|
|
5815
|
-
|
|
5816
|
-
|
|
5817
|
-
|
|
5818
|
-
$.
|
|
5819
|
-
$.
|
|
5820
|
-
|
|
5821
|
-
|
|
5822
|
-
|
|
5823
|
-
|
|
5824
|
-
|
|
5825
|
-
|
|
5826
|
-
|
|
5827
|
-
|
|
5828
|
-
|
|
5829
|
-
|
|
5830
|
-
|
|
5831
|
-
|
|
6354
|
+
var node_1 = $.sibling(div_1, 2);
|
|
6355
|
+
var consequent = ($$anchor$1) => {
|
|
6356
|
+
var div_2 = root_1$9();
|
|
6357
|
+
$.each(div_2, 5, () => $.get(indicators) ?? [], $.index, ($$anchor$2, indicator, i) => {
|
|
6358
|
+
var button = root_2$6();
|
|
6359
|
+
var i_1 = $.child(button);
|
|
6360
|
+
$.reset(button);
|
|
6361
|
+
$.template_effect(($0, $1) => {
|
|
6362
|
+
$.set_style(button, $0);
|
|
6363
|
+
$.set_style(i_1, $1);
|
|
6364
|
+
}, [() => objToStyle({
|
|
6365
|
+
padding: "4px",
|
|
6366
|
+
border: 0,
|
|
6367
|
+
background: "none"
|
|
6368
|
+
}), () => objToStyle({
|
|
6369
|
+
...$.get(indicatorItemStyle),
|
|
6370
|
+
background: $.get(indicator).isActive ? "#555555" : "#AAAAAA"
|
|
6371
|
+
})], $.derived_safe_equal);
|
|
6372
|
+
$.event("click", button, () => handleClickIndicator(i));
|
|
6373
|
+
$.append($$anchor$2, button);
|
|
6374
|
+
});
|
|
6375
|
+
$.reset(div_2);
|
|
6376
|
+
$.template_effect(() => $.set_style(div_2, $.get(indicatorListStyle)));
|
|
6377
|
+
$.append($$anchor$1, div_2);
|
|
6378
|
+
};
|
|
6379
|
+
$.if(node_1, ($$render) => {
|
|
6380
|
+
if (!props().hideIndicator) $$render(consequent);
|
|
6381
|
+
});
|
|
5832
6382
|
$.reset(div);
|
|
5833
6383
|
$.template_effect(($0, $1) => {
|
|
5834
6384
|
$.set_attribute(div, "id", props().id);
|
|
5835
|
-
$.set_class(div, 1, $0, "svelte-
|
|
6385
|
+
$.set_class(div, 1, $0, "svelte-i5qqzj");
|
|
5836
6386
|
$.set_attribute(div, "data-layer-id", layerId());
|
|
5837
6387
|
$.set_style(ul, $1);
|
|
5838
|
-
$.set_style(div_2, $.get(indicatorListStyle));
|
|
5839
6388
|
}, [() => $.clsx(["slider", ...props().classNames ?? []].join(" ")), () => [$.get(containerStyle), overrideStyle()].join(" ")], $.derived_safe_equal);
|
|
5840
6389
|
$.event("mousedown", div_1, handleMousedown);
|
|
5841
6390
|
$.event("touchstart", div_1, handleTouchstart);
|
|
@@ -5845,28 +6394,36 @@ function Slider($$anchor, $$props) {
|
|
|
5845
6394
|
|
|
5846
6395
|
//#endregion
|
|
5847
6396
|
//#region src/components-flex/slider/SliderItem.svelte
|
|
5848
|
-
var root$
|
|
5849
|
-
const $$css$
|
|
5850
|
-
hash: "svelte-
|
|
5851
|
-
code: ".slider-item.svelte-
|
|
6397
|
+
var root$16 = $.template(`<li><!></li>`);
|
|
6398
|
+
const $$css$20 = {
|
|
6399
|
+
hash: "svelte-1b4o9dd",
|
|
6400
|
+
code: ".slider-item.svelte-1b4o9dd {display:block;overflow:hidden;}.slider-item-inner.svelte-1b4o9dd {text-decoration:none;border:0;background:none;padding:0;margin:0;text-align:left;-webkit-appearance:none;text-align:left;color:inherit;-webkit-user-drag:none;user-select:none;}"
|
|
5852
6401
|
};
|
|
5853
6402
|
function SliderItem($$anchor, $$props) {
|
|
5854
6403
|
$.push($$props, false);
|
|
5855
|
-
$.append_styles($$anchor, $$css$
|
|
6404
|
+
$.append_styles($$anchor, $$css$20);
|
|
6405
|
+
const [$$stores, $$cleanup] = $.setup_stores();
|
|
6406
|
+
const $clickable = () => $.store_get($.get(clickable), "$clickable", $$stores);
|
|
6407
|
+
const clickable = $.mutable_state();
|
|
5856
6408
|
let layerId = $.prop($$props, "layerId", 8);
|
|
5857
6409
|
let props = $.prop($$props, "props", 8);
|
|
5858
6410
|
useInjectCustomizeCss(props(), layerId());
|
|
5859
|
-
|
|
6411
|
+
$.legacy_pre_effect(() => $.deep_read_state(props()), () => {
|
|
6412
|
+
$.store_unsub($.set(clickable, useClickable_default(props())), "$clickable", $$stores);
|
|
6413
|
+
});
|
|
6414
|
+
$.legacy_pre_effect_reset();
|
|
5860
6415
|
$.init();
|
|
5861
|
-
var li = root$
|
|
6416
|
+
var li = root$16();
|
|
5862
6417
|
var node = $.child(li);
|
|
5863
|
-
$.element(node, () => element, false, ($$element, $$anchor$1) => {
|
|
5864
|
-
let
|
|
5865
|
-
$.template_effect(() =>
|
|
5866
|
-
|
|
6418
|
+
$.element(node, () => $clickable().element, false, ($$element, $$anchor$1) => {
|
|
6419
|
+
let attributes;
|
|
6420
|
+
$.template_effect(() => attributes = $.set_attributes($$element, attributes, {
|
|
6421
|
+
...$clickable().attributes,
|
|
5867
6422
|
class: "slider-item-inner"
|
|
5868
|
-
}, "svelte-
|
|
5869
|
-
$.event("click", $$element,
|
|
6423
|
+
}, "svelte-1b4o9dd"));
|
|
6424
|
+
$.event("click", $$element, function(...$$args) {
|
|
6425
|
+
$clickable().handleClick?.apply(this, $$args);
|
|
6426
|
+
});
|
|
5870
6427
|
var fragment = $.comment();
|
|
5871
6428
|
var node_1 = $.first_child(fragment);
|
|
5872
6429
|
$.slot(node_1, $$props, "default", {}, null);
|
|
@@ -5876,10 +6433,11 @@ function SliderItem($$anchor, $$props) {
|
|
|
5876
6433
|
$.template_effect(($0) => {
|
|
5877
6434
|
$.set_attribute(li, "data-layer-id", layerId());
|
|
5878
6435
|
$.set_attribute(li, "id", props().id);
|
|
5879
|
-
$.set_class(li, 1, $0, "svelte-
|
|
6436
|
+
$.set_class(li, 1, $0, "svelte-1b4o9dd");
|
|
5880
6437
|
}, [() => $.clsx(["slider-item", ...props().classNames ?? []].join(" "))], $.derived_safe_equal);
|
|
5881
6438
|
$.append($$anchor, li);
|
|
5882
6439
|
$.pop();
|
|
6440
|
+
$$cleanup();
|
|
5883
6441
|
}
|
|
5884
6442
|
|
|
5885
6443
|
//#endregion
|
|
@@ -5923,113 +6481,139 @@ const TEXT_VARIANTS = { size: {
|
|
|
5923
6481
|
} };
|
|
5924
6482
|
|
|
5925
6483
|
//#endregion
|
|
5926
|
-
//#region src/components-flex/text/Text.
|
|
5927
|
-
var
|
|
5928
|
-
const $$css$22 = {
|
|
5929
|
-
hash: "svelte-vifn7y",
|
|
5930
|
-
code: ".text.svelte-vifn7y {margin:0;word-break:break-all;text-decoration:none;}"
|
|
5931
|
-
};
|
|
5932
|
-
function Text($$anchor, $$props) {
|
|
5933
|
-
$.push($$props, false);
|
|
5934
|
-
$.append_styles($$anchor, $$css$22);
|
|
5935
|
-
const escapedHTML = $.mutable_state();
|
|
5936
|
-
const style = $.mutable_state();
|
|
5937
|
-
let props = $.prop($$props, "props", 24, () => ({ content: "" }));
|
|
5938
|
-
let layerId = $.prop($$props, "layerId", 8, "");
|
|
5939
|
-
useInjectCustomizeCss(props(), layerId());
|
|
5940
|
-
const { brandKit } = useBrandKit();
|
|
6484
|
+
//#region src/components-flex/text/Text.css.ts
|
|
6485
|
+
var Text_css_default = (layerId, props, brandKit) => {
|
|
5941
6486
|
const themeStyles = getTextThemeStyles(brandKit);
|
|
5942
|
-
const
|
|
5943
|
-
|
|
5944
|
-
|
|
5945
|
-
|
|
5946
|
-
|
|
5947
|
-
if (
|
|
5948
|
-
|
|
5949
|
-
|
|
5950
|
-
|
|
6487
|
+
const toDynamicStyle$4 = (_props) => {
|
|
6488
|
+
const fontFamily = (() => {
|
|
6489
|
+
if (_props.fontFamily) return _props.fontFamily;
|
|
6490
|
+
return _props.fontFamilyVariant in FONT_FAMILY_VARIANT ? FONT_FAMILY_VARIANT[_props.fontFamilyVariant].getProps(brandKit).fontFamily : FONT_FAMILY_VARIANT.default.getProps(brandKit).fontFamily;
|
|
6491
|
+
})();
|
|
6492
|
+
if (fontFamily) addFont(fontFamily);
|
|
6493
|
+
const color = (() => {
|
|
6494
|
+
if (_props.color) return _props.color;
|
|
6495
|
+
if (_props.theme) return themeStyles[_props.theme].color;
|
|
6496
|
+
})();
|
|
5951
6497
|
const fontSize = (() => {
|
|
5952
|
-
if (
|
|
5953
|
-
if (
|
|
5954
|
-
return "14px";
|
|
6498
|
+
if (_props.fontSize) return _props.fontSize;
|
|
6499
|
+
if (_props.size) return TEXT_VARIANTS.size[_props.size].fontSize;
|
|
5955
6500
|
})();
|
|
5956
6501
|
const lineHeight = (() => {
|
|
5957
|
-
if (
|
|
5958
|
-
if (
|
|
5959
|
-
return void 0;
|
|
6502
|
+
if (_props.lineHeight) return _props.lineHeight;
|
|
6503
|
+
if (_props.size) return TEXT_VARIANTS.size[_props.size].lineHeight;
|
|
5960
6504
|
})();
|
|
5961
6505
|
const fontWeight = (() => {
|
|
5962
|
-
if (
|
|
5963
|
-
if (
|
|
5964
|
-
return void 0;
|
|
6506
|
+
if (_props.fontWeight) return _props.fontWeight;
|
|
6507
|
+
if (_props.size) return TEXT_VARIANTS.size[_props.size].fontWeight;
|
|
5965
6508
|
})();
|
|
5966
6509
|
const letterSpacing = (() => {
|
|
5967
|
-
if (
|
|
5968
|
-
else return
|
|
5969
|
-
return void 0;
|
|
6510
|
+
if (_props.letterSpacing) if (_props.letterSpacing.endsWith("%")) return `${parseInt(fontSize) * (parseInt(_props.letterSpacing) / 100)}px`;
|
|
6511
|
+
else return _props.letterSpacing;
|
|
5970
6512
|
})();
|
|
5971
|
-
|
|
6513
|
+
const lineClampStyles = (() => {
|
|
6514
|
+
if (typeof _props.lineClamp !== "number") return {};
|
|
6515
|
+
return {
|
|
6516
|
+
display: "-webkit-box",
|
|
6517
|
+
WebkitBoxOrient: "vertical",
|
|
6518
|
+
WebkitLineClamp: _props.lineClamp,
|
|
6519
|
+
overflow: "hidden"
|
|
6520
|
+
};
|
|
6521
|
+
})();
|
|
6522
|
+
return createComponentRawCss(layerId, (style) => [style("", {
|
|
6523
|
+
textAlign: _props.align,
|
|
6524
|
+
width: _props.width,
|
|
6525
|
+
fontFamily,
|
|
6526
|
+
color,
|
|
5972
6527
|
fontSize,
|
|
5973
|
-
|
|
6528
|
+
letterSpacing,
|
|
5974
6529
|
fontWeight,
|
|
5975
|
-
|
|
5976
|
-
|
|
6530
|
+
lineHeight,
|
|
6531
|
+
...lineClampStyles,
|
|
6532
|
+
...toCssRadius(_props),
|
|
6533
|
+
...toCssBackground(_props),
|
|
6534
|
+
...toCssCommon(_props),
|
|
6535
|
+
...toCssPosition(_props),
|
|
6536
|
+
...toCssPadding(_props),
|
|
6537
|
+
...toCssBorder(_props)
|
|
6538
|
+
})]);
|
|
5977
6539
|
};
|
|
5978
|
-
|
|
5979
|
-
|
|
5980
|
-
|
|
5981
|
-
|
|
5982
|
-
|
|
5983
|
-
|
|
5984
|
-
|
|
5985
|
-
|
|
5986
|
-
|
|
5987
|
-
|
|
5988
|
-
|
|
6540
|
+
return createComponentRawCss(layerId, (style) => [
|
|
6541
|
+
style("", {
|
|
6542
|
+
textDecoration: "none",
|
|
6543
|
+
margin: "0",
|
|
6544
|
+
wordBreak: "break-all"
|
|
6545
|
+
}),
|
|
6546
|
+
toDynamicStyle$4(props),
|
|
6547
|
+
...props.responsiveSettings?.map((v) => {
|
|
6548
|
+
if (v.mediaQueryCondition) return toResponsiveSelector(v, toDynamicStyle$4({
|
|
6549
|
+
...v.props,
|
|
6550
|
+
content: v.props.content ?? props.content
|
|
6551
|
+
}));
|
|
6552
|
+
else if (v.userAgentCondition) return "";
|
|
6553
|
+
return "";
|
|
6554
|
+
}) ?? [],
|
|
6555
|
+
props.customizeCss
|
|
6556
|
+
]);
|
|
6557
|
+
};
|
|
6558
|
+
|
|
6559
|
+
//#endregion
|
|
6560
|
+
//#region src/components-flex/text/Text.svelte
|
|
6561
|
+
var root_1$8 = $.template(`<p><!></p>`);
|
|
6562
|
+
var root$15 = $.template(`<!> <!>`, 1);
|
|
6563
|
+
function Text($$anchor, $$props) {
|
|
6564
|
+
$.push($$props, false);
|
|
6565
|
+
const [$$stores, $$cleanup] = $.setup_stores();
|
|
6566
|
+
const $responsiveProps = () => $.store_get(responsiveProps, "$responsiveProps", $$stores);
|
|
6567
|
+
const rProps = $.mutable_state();
|
|
6568
|
+
const escapedHTML = $.mutable_state();
|
|
6569
|
+
let props = $.prop($$props, "props", 24, () => ({ content: "" }));
|
|
6570
|
+
let layerId = $.prop($$props, "layerId", 24, () => crypto.randomUUID());
|
|
6571
|
+
useInjectCustomizeCss(props(), layerId());
|
|
6572
|
+
const { brandKit } = useBrandKit();
|
|
6573
|
+
const cssCode = Text_css_default(layerId(), props(), brandKit);
|
|
6574
|
+
const responsiveProps = useResponsiveProps(props());
|
|
6575
|
+
$.legacy_pre_effect(() => $responsiveProps(), () => {
|
|
6576
|
+
$.set(rProps, $responsiveProps());
|
|
5989
6577
|
});
|
|
5990
|
-
$.legacy_pre_effect(() => ($.deep_read_state(props())
|
|
5991
|
-
$.set(
|
|
5992
|
-
position: props()?.position ?? "static",
|
|
5993
|
-
textAlign: props().align,
|
|
5994
|
-
width: props().width,
|
|
5995
|
-
fontFamily,
|
|
5996
|
-
color: getColor(),
|
|
5997
|
-
...lineClampStyles,
|
|
5998
|
-
...getCssSize(),
|
|
5999
|
-
...toCssRadius(props()),
|
|
6000
|
-
...toCssBackground(props()),
|
|
6001
|
-
...toCssCommon(props()),
|
|
6002
|
-
...toCssPosition(props()),
|
|
6003
|
-
...toCssPadding(props()),
|
|
6004
|
-
...toCssBorder(props())
|
|
6005
|
-
}));
|
|
6578
|
+
$.legacy_pre_effect(() => ($.get(rProps), $.deep_read_state(props())), () => {
|
|
6579
|
+
$.set(escapedHTML, ($.get(rProps).content || props().content).replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'").replace(/\n/g, "<br />"));
|
|
6006
6580
|
});
|
|
6007
6581
|
$.legacy_pre_effect_reset();
|
|
6008
6582
|
$.init();
|
|
6009
|
-
var
|
|
6010
|
-
var node = $.
|
|
6011
|
-
|
|
6012
|
-
$.
|
|
6013
|
-
|
|
6014
|
-
|
|
6015
|
-
$.
|
|
6016
|
-
$.
|
|
6017
|
-
$.
|
|
6018
|
-
|
|
6019
|
-
|
|
6583
|
+
var fragment = root$15();
|
|
6584
|
+
var node = $.first_child(fragment);
|
|
6585
|
+
StylePortal(node, { cssText: cssCode });
|
|
6586
|
+
var node_1 = $.sibling(node, 2);
|
|
6587
|
+
var consequent = ($$anchor$1) => {
|
|
6588
|
+
var p = root_1$8();
|
|
6589
|
+
var node_2 = $.child(p);
|
|
6590
|
+
$.html(node_2, () => $.get(escapedHTML), false, false);
|
|
6591
|
+
$.reset(p);
|
|
6592
|
+
$.template_effect(($0) => {
|
|
6593
|
+
$.set_class(p, 1, $0);
|
|
6594
|
+
$.set_attribute(p, "id", $.get(rProps).id);
|
|
6595
|
+
$.set_attribute(p, "data-layer-id", layerId());
|
|
6596
|
+
}, [() => $.clsx(["text", ...$.get(rProps).classNames ?? []].join(" "))], $.derived_safe_equal);
|
|
6597
|
+
$.append($$anchor$1, p);
|
|
6598
|
+
};
|
|
6599
|
+
$.if(node_1, ($$render) => {
|
|
6600
|
+
if (!$.get(rProps).hidden) $$render(consequent);
|
|
6601
|
+
});
|
|
6602
|
+
$.append($$anchor, fragment);
|
|
6020
6603
|
$.pop();
|
|
6604
|
+
$$cleanup();
|
|
6021
6605
|
}
|
|
6022
6606
|
|
|
6023
6607
|
//#endregion
|
|
6024
6608
|
//#region src/components-flex/rich-text/RichText.svelte
|
|
6025
|
-
var root$
|
|
6026
|
-
const $$css$
|
|
6609
|
+
var root$14 = $.template(`<div><!></div>`);
|
|
6610
|
+
const $$css$19 = {
|
|
6027
6611
|
hash: "svelte-dxr423",
|
|
6028
6612
|
code: ".rich-text.svelte-dxr423 p {margin:0;word-break:break-all;text-decoration:none;}.rich-text.svelte-dxr423 p + p {margin-top:0.75em;}"
|
|
6029
6613
|
};
|
|
6030
6614
|
function RichText($$anchor, $$props) {
|
|
6031
6615
|
$.push($$props, false);
|
|
6032
|
-
$.append_styles($$anchor, $$css$
|
|
6616
|
+
$.append_styles($$anchor, $$css$19);
|
|
6033
6617
|
const style = $.mutable_state();
|
|
6034
6618
|
let props = $.prop($$props, "props", 24, () => ({ content: "" }));
|
|
6035
6619
|
let layerId = $.prop($$props, "layerId", 8, "");
|
|
@@ -6042,23 +6626,19 @@ function RichText($$anchor, $$props) {
|
|
|
6042
6626
|
const getColor = () => {
|
|
6043
6627
|
if (props().color) return props().color;
|
|
6044
6628
|
if (props().theme) return themeStyles[props().theme].color;
|
|
6045
|
-
return void 0;
|
|
6046
6629
|
};
|
|
6047
6630
|
const getCssSize = () => {
|
|
6048
6631
|
const getFontSize = () => {
|
|
6049
6632
|
if (props().fontSize) return props().fontSize;
|
|
6050
6633
|
if (props().size) return TEXT_VARIANTS.size[props().size].fontSize;
|
|
6051
|
-
return void 0;
|
|
6052
6634
|
};
|
|
6053
6635
|
const getLineHeight = () => {
|
|
6054
6636
|
if (props().lineHeight) return props().lineHeight;
|
|
6055
6637
|
if (props().size) return TEXT_VARIANTS.size[props().size].lineHeight;
|
|
6056
|
-
return void 0;
|
|
6057
6638
|
};
|
|
6058
6639
|
const getFontWeight = () => {
|
|
6059
6640
|
if (props().fontWeight) return props().fontWeight;
|
|
6060
6641
|
if (props().size) return TEXT_VARIANTS.size[props().size].fontWeight;
|
|
6061
|
-
return void 0;
|
|
6062
6642
|
};
|
|
6063
6643
|
return {
|
|
6064
6644
|
fontSize: getFontSize(),
|
|
@@ -6080,7 +6660,7 @@ function RichText($$anchor, $$props) {
|
|
|
6080
6660
|
});
|
|
6081
6661
|
$.legacy_pre_effect_reset();
|
|
6082
6662
|
$.init();
|
|
6083
|
-
var div = root$
|
|
6663
|
+
var div = root$14();
|
|
6084
6664
|
var node = $.child(div);
|
|
6085
6665
|
$.html(node, () => props().content, false, false);
|
|
6086
6666
|
$.reset(div);
|
|
@@ -6147,105 +6727,151 @@ const callback = ({ brandKit }) => ({
|
|
|
6147
6727
|
const getTextLinkThemeStyles = getPropStyles(callback);
|
|
6148
6728
|
|
|
6149
6729
|
//#endregion
|
|
6150
|
-
//#region src/components-flex/text-link/TextLink.
|
|
6151
|
-
var
|
|
6152
|
-
|
|
6153
|
-
|
|
6154
|
-
|
|
6730
|
+
//#region src/components-flex/text-link/TextLink.css.ts
|
|
6731
|
+
var TextLink_css_default = (layerId, props, brandKit) => {
|
|
6732
|
+
return createComponentRawCss(layerId, (style) => [
|
|
6733
|
+
style("", {
|
|
6734
|
+
textDecoration: "none",
|
|
6735
|
+
margin: "0",
|
|
6736
|
+
wordBreak: "break-all",
|
|
6737
|
+
appearance: "none",
|
|
6738
|
+
border: "0",
|
|
6739
|
+
background: "none",
|
|
6740
|
+
padding: "0",
|
|
6741
|
+
display: "inline-flex",
|
|
6742
|
+
gap: "0.5em",
|
|
6743
|
+
alignItems: "center",
|
|
6744
|
+
cursor: "pointer"
|
|
6745
|
+
}),
|
|
6746
|
+
style("&[aria-disabled=\"true\"]", {
|
|
6747
|
+
opacity: "0.24",
|
|
6748
|
+
cursor: "not-allowed"
|
|
6749
|
+
}),
|
|
6750
|
+
style("&[aria-disabled=\"true\"]:hover", { opacity: "0.24" }),
|
|
6751
|
+
style("&[aria-hidden=\"true\"]", { display: "none" }),
|
|
6752
|
+
toDynamicStyle(layerId, props, brandKit),
|
|
6753
|
+
...props.responsiveSettings?.map((v) => {
|
|
6754
|
+
if (v.mediaQueryCondition) return toResponsiveSelector(v, toDynamicStyle(layerId, {
|
|
6755
|
+
...v.props,
|
|
6756
|
+
label: v.props.label ?? props.label
|
|
6757
|
+
}, brandKit));
|
|
6758
|
+
else if (v.userAgentCondition) return "";
|
|
6759
|
+
return "";
|
|
6760
|
+
}) ?? [],
|
|
6761
|
+
props.customizeCss
|
|
6762
|
+
]);
|
|
6763
|
+
};
|
|
6764
|
+
const toDynamicStyle = (layerId, props, brandKit) => {
|
|
6765
|
+
const themeStyle = getTextLinkThemeStyles(brandKit)[props.theme ?? "link"];
|
|
6766
|
+
const sizeStyle = TEXT_LINK_SIZE_STYLES[props.size ?? "medium"];
|
|
6767
|
+
const fontFamilyStyles = props.fontFamilyVariant in FONT_FAMILY_VARIANT ? FONT_FAMILY_VARIANT[props.fontFamilyVariant].getProps(brandKit) : FONT_FAMILY_VARIANT.default.getProps(brandKit);
|
|
6768
|
+
const fontFamily = props.fontFamily ?? fontFamilyStyles.fontFamily;
|
|
6769
|
+
const color = props.color ?? themeStyle.color;
|
|
6770
|
+
if (fontFamily) addFont(fontFamily);
|
|
6771
|
+
return createComponentRawCss(layerId, (style) => [
|
|
6772
|
+
style("", {
|
|
6773
|
+
fontFamily: `"${fontFamily}"`,
|
|
6774
|
+
fontSize: props.fontSize ?? sizeStyle.fontSize,
|
|
6775
|
+
fontWeight: props.fontWeight ?? "bold",
|
|
6776
|
+
flexDirection: props.iconAngle,
|
|
6777
|
+
color,
|
|
6778
|
+
...toCssCommon(props),
|
|
6779
|
+
...toCssPosition(props)
|
|
6780
|
+
}),
|
|
6781
|
+
style("&:visited", { color }),
|
|
6782
|
+
style("&:link", { color }),
|
|
6783
|
+
style("&:hover", { color: darkenColor(props.color ?? themeStyle.color, .12) }),
|
|
6784
|
+
style("&:active", { color: darkenColor(props.color ?? themeStyle.color, .2) }),
|
|
6785
|
+
...(() => {
|
|
6786
|
+
switch (props.underline) {
|
|
6787
|
+
case "on": return [style("", { textDecoration: "underline" })];
|
|
6788
|
+
case "off": return [style("", { textDecoration: "none" })];
|
|
6789
|
+
case "hover_off": return [style("", { textDecoration: "underline" }), style("&:hover", { textDecoration: "none" })];
|
|
6790
|
+
case "hover_on":
|
|
6791
|
+
default: return [style("", { textDecoration: "none" }), style("&:hover", { textDecoration: "underline" })];
|
|
6792
|
+
}
|
|
6793
|
+
})()
|
|
6794
|
+
]);
|
|
6155
6795
|
};
|
|
6796
|
+
|
|
6797
|
+
//#endregion
|
|
6798
|
+
//#region src/components-flex/text-link/TextLink.svelte
|
|
6799
|
+
var root_2$5 = $.template(`<!> <span><!></span>`, 1);
|
|
6800
|
+
var root$13 = $.template(`<!> <!>`, 1);
|
|
6156
6801
|
function TextLink($$anchor, $$props) {
|
|
6157
6802
|
$.push($$props, false);
|
|
6158
|
-
|
|
6803
|
+
const [$$stores, $$cleanup] = $.setup_stores();
|
|
6804
|
+
const $rProps = () => $.store_get($.get(rProps), "$rProps", $$stores);
|
|
6805
|
+
const $clickable = () => $.store_get($.get(clickable), "$clickable", $$stores);
|
|
6806
|
+
const rProps = $.mutable_state();
|
|
6807
|
+
const clickable = $.mutable_state();
|
|
6159
6808
|
const escapedHTML = $.mutable_state();
|
|
6160
|
-
const variables$1 = $.mutable_state();
|
|
6161
|
-
const style = $.mutable_state();
|
|
6162
6809
|
let props = $.prop($$props, "props", 24, () => ({ label: "" }));
|
|
6163
6810
|
let layerId = $.prop($$props, "layerId", 8, "");
|
|
6164
|
-
useInjectCustomizeCss(props(), layerId());
|
|
6165
6811
|
const { brandKit } = useBrandKit();
|
|
6166
|
-
const
|
|
6167
|
-
...props(),
|
|
6168
|
-
element: "span"
|
|
6169
|
-
});
|
|
6170
|
-
const themeStyles = getTextLinkThemeStyles(brandKit);
|
|
6171
|
-
const themeStyle = themeStyles[props().theme ?? "link"];
|
|
6172
|
-
const sizeStyle = TEXT_LINK_SIZE_STYLES[props().size ?? "medium"];
|
|
6173
|
-
const fontFamilyStyles = props().fontFamilyVariant in FONT_FAMILY_VARIANT ? FONT_FAMILY_VARIANT[props().fontFamilyVariant].getProps(brandKit) : FONT_FAMILY_VARIANT.default.getProps(brandKit);
|
|
6174
|
-
const fontFamily = props().fontFamily ?? fontFamilyStyles.fontFamily;
|
|
6175
|
-
if (fontFamily) addFont(fontFamily);
|
|
6176
|
-
const underlineClass = (() => {
|
|
6177
|
-
switch (props().underline) {
|
|
6178
|
-
case "hover_off": return "underline-hover-off";
|
|
6179
|
-
case "hover_on": return "underline-hover-on";
|
|
6180
|
-
case "on": return "underline-on";
|
|
6181
|
-
case "off": return "underline-off";
|
|
6182
|
-
default: return "underline-hover-on";
|
|
6183
|
-
}
|
|
6184
|
-
})();
|
|
6812
|
+
const cssCode = TextLink_css_default(layerId(), props(), brandKit);
|
|
6185
6813
|
$.legacy_pre_effect(() => $.deep_read_state(props()), () => {
|
|
6186
|
-
$.set(
|
|
6814
|
+
$.store_unsub($.set(rProps, useResponsiveProps(props())), "$rProps", $$stores);
|
|
6187
6815
|
});
|
|
6188
|
-
$.legacy_pre_effect(() => (
|
|
6189
|
-
$.set(
|
|
6190
|
-
|
|
6191
|
-
"
|
|
6192
|
-
|
|
6193
|
-
});
|
|
6816
|
+
$.legacy_pre_effect(() => $rProps(), () => {
|
|
6817
|
+
$.store_unsub($.set(clickable, useClickable_default({
|
|
6818
|
+
...$rProps(),
|
|
6819
|
+
element: "span"
|
|
6820
|
+
})), "$clickable", $$stores);
|
|
6194
6821
|
});
|
|
6195
|
-
$.legacy_pre_effect(() => (
|
|
6196
|
-
$.set(
|
|
6197
|
-
display: "inline-flex",
|
|
6198
|
-
gap: "0.5em",
|
|
6199
|
-
alignItems: "center",
|
|
6200
|
-
wordBreak: "break-all",
|
|
6201
|
-
fontFamily: `"${fontFamily}"`,
|
|
6202
|
-
fontSize: props().fontSize ?? sizeStyle.fontSize,
|
|
6203
|
-
fontWeight: props().fontWeight ?? "bold",
|
|
6204
|
-
flexDirection: props().iconAngle,
|
|
6205
|
-
cursor: "pointer",
|
|
6206
|
-
...toCssCommon(props()),
|
|
6207
|
-
...toCssPosition(props()),
|
|
6208
|
-
...$.get(variables$1)
|
|
6209
|
-
}));
|
|
6822
|
+
$.legacy_pre_effect(() => $rProps(), () => {
|
|
6823
|
+
$.set(escapedHTML, $rProps().label.replace(/&/g, "<").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'").replace(/\n/g, "<br />"));
|
|
6210
6824
|
});
|
|
6211
6825
|
$.legacy_pre_effect_reset();
|
|
6212
6826
|
$.init();
|
|
6213
|
-
var fragment =
|
|
6827
|
+
var fragment = root$13();
|
|
6214
6828
|
var node = $.first_child(fragment);
|
|
6215
|
-
|
|
6216
|
-
|
|
6217
|
-
|
|
6218
|
-
|
|
6219
|
-
|
|
6220
|
-
|
|
6221
|
-
|
|
6222
|
-
|
|
6223
|
-
|
|
6224
|
-
|
|
6225
|
-
|
|
6226
|
-
|
|
6227
|
-
|
|
6228
|
-
|
|
6229
|
-
|
|
6230
|
-
|
|
6231
|
-
|
|
6232
|
-
|
|
6233
|
-
|
|
6234
|
-
|
|
6235
|
-
|
|
6236
|
-
|
|
6237
|
-
|
|
6238
|
-
|
|
6239
|
-
|
|
6829
|
+
StylePortal(node, { cssText: cssCode });
|
|
6830
|
+
var node_1 = $.sibling(node, 2);
|
|
6831
|
+
var consequent_1 = ($$anchor$1) => {
|
|
6832
|
+
var fragment_1 = $.comment();
|
|
6833
|
+
var node_2 = $.first_child(fragment_1);
|
|
6834
|
+
$.element(node_2, () => $clickable().element, false, ($$element, $$anchor$2) => {
|
|
6835
|
+
let attributes;
|
|
6836
|
+
$.template_effect(($0) => attributes = $.set_attributes($$element, attributes, {
|
|
6837
|
+
...$clickable().attributes,
|
|
6838
|
+
id: props().id,
|
|
6839
|
+
class: $0,
|
|
6840
|
+
"data-layer-id": layerId()
|
|
6841
|
+
}), [() => [`link`, ...props().classNames ?? []].join(" ")], $.derived_safe_equal);
|
|
6842
|
+
$.event("click", $$element, function(...$$args) {
|
|
6843
|
+
$clickable().handleClick?.apply(this, $$args);
|
|
6844
|
+
});
|
|
6845
|
+
var fragment_2 = root_2$5();
|
|
6846
|
+
var node_3 = $.first_child(fragment_2);
|
|
6847
|
+
var consequent = ($$anchor$3) => {
|
|
6848
|
+
const expression = $.derived_safe_equal(() => ({
|
|
6849
|
+
variant: props().iconVariant,
|
|
6850
|
+
color: props().iconColor ?? props().color,
|
|
6851
|
+
width: "1em",
|
|
6852
|
+
height: "1em"
|
|
6853
|
+
}));
|
|
6854
|
+
Icon($$anchor$3, { get props() {
|
|
6855
|
+
return $.get(expression);
|
|
6856
|
+
} });
|
|
6857
|
+
};
|
|
6858
|
+
$.if(node_3, ($$render) => {
|
|
6859
|
+
if (props().isIcon && props().iconVariant) $$render(consequent);
|
|
6860
|
+
});
|
|
6861
|
+
var span = $.sibling(node_3, 2);
|
|
6862
|
+
var node_4 = $.child(span);
|
|
6863
|
+
$.html(node_4, () => $.get(escapedHTML), false, false);
|
|
6864
|
+
$.reset(span);
|
|
6865
|
+
$.append($$anchor$2, fragment_2);
|
|
6240
6866
|
});
|
|
6241
|
-
var span = $.sibling(node_1, 2);
|
|
6242
|
-
var node_2 = $.child(span);
|
|
6243
|
-
$.html(node_2, () => $.get(escapedHTML), false, false);
|
|
6244
|
-
$.reset(span);
|
|
6245
6867
|
$.append($$anchor$1, fragment_1);
|
|
6868
|
+
};
|
|
6869
|
+
$.if(node_1, ($$render) => {
|
|
6870
|
+
if (!$rProps().hidden) $$render(consequent_1);
|
|
6246
6871
|
});
|
|
6247
6872
|
$.append($$anchor, fragment);
|
|
6248
6873
|
$.pop();
|
|
6874
|
+
$$cleanup();
|
|
6249
6875
|
}
|
|
6250
6876
|
|
|
6251
6877
|
//#endregion
|
|
@@ -6272,14 +6898,14 @@ const TEXT_LINK_UNDERLINE = {
|
|
|
6272
6898
|
|
|
6273
6899
|
//#endregion
|
|
6274
6900
|
//#region src/components-flex/background-overlay/BackgroundOverlay.svelte
|
|
6275
|
-
var root_1$
|
|
6276
|
-
const $$css$
|
|
6901
|
+
var root_1$7 = $.template(`<div></div>`);
|
|
6902
|
+
const $$css$18 = {
|
|
6277
6903
|
hash: "svelte-18nkdjz",
|
|
6278
6904
|
code: ".v2-background.svelte-18nkdjz {position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0, 0, 0, 0.3);z-index:2147483646;}"
|
|
6279
6905
|
};
|
|
6280
6906
|
function BackgroundOverlay($$anchor, $$props) {
|
|
6281
6907
|
$.push($$props, false);
|
|
6282
|
-
$.append_styles($$anchor, $$css$
|
|
6908
|
+
$.append_styles($$anchor, $$css$18);
|
|
6283
6909
|
let backgroundOverlay = $.prop($$props, "backgroundOverlay", 8, false);
|
|
6284
6910
|
let className = $.prop($$props, "class", 8, void 0);
|
|
6285
6911
|
const dispatch = createEventDispatcher();
|
|
@@ -6287,7 +6913,7 @@ function BackgroundOverlay($$anchor, $$props) {
|
|
|
6287
6913
|
var fragment = $.comment();
|
|
6288
6914
|
var node = $.first_child(fragment);
|
|
6289
6915
|
var consequent = ($$anchor$1) => {
|
|
6290
|
-
var div = root_1$
|
|
6916
|
+
var div = root_1$7();
|
|
6291
6917
|
$.template_effect(($0) => $.set_class(div, 1, $0, "svelte-18nkdjz"), [() => $.clsx(["v2-background", className() || ""].join(" "))], $.derived_safe_equal);
|
|
6292
6918
|
$.event("click", div, () => dispatch("click"));
|
|
6293
6919
|
$.append($$anchor$1, div);
|
|
@@ -6304,13 +6930,13 @@ function BackgroundOverlay($$anchor, $$props) {
|
|
|
6304
6930
|
var root_2$4 = $.template(`<!> <!>`, 1);
|
|
6305
6931
|
var root_4 = $.template(`<div role="dialog" aria-modal="true"><!></div>`);
|
|
6306
6932
|
var root$12 = $.template(`<!> <!>`, 1);
|
|
6307
|
-
const $$css$
|
|
6933
|
+
const $$css$17 = {
|
|
6308
6934
|
hash: "svelte-45ue06",
|
|
6309
6935
|
code: "* {box-sizing:border-box;}.modal.svelte-45ue06 {position:fixed;z-index:2147483647;display:flex;}.modal.svelte-45ue06 > .button {flex:auto;display:flex;}\n /* PC */\n @media screen and (min-width: 641px) {.modal-bp.svelte-45ue06 {height:var(--modal-bp-height-pc) !important;width:var(--modal-bp-width-pc) !important;top:var(--modal-bp-top-pc) !important;left:var(--modal-bp-left-pc) !important;bottom:var(--modal-bp-bottom-pc) !important;right:var(--modal-bp-right-pc) !important;transform:var(--modal-bp-transform-pc);margin:var(--modal-bp-margin-pc) !important;}.background-bp-pc {display:block;}.background-bp-sp {display:none;}\n }\n\n /* SP */\n @media screen and (max-width: 640px) {.modal-bp.svelte-45ue06 {height:var(--modal-bp-height-sp) !important;width:var(--modal-bp-width-sp) !important;top:var(--modal-bp-top-sp) !important;left:var(--modal-bp-left-sp) !important;bottom:var(--modal-bp-bottom-sp) !important;right:var(--modal-bp-right-sp) !important;transform:var(--modal-bp-transform-sp);margin:var(--modal-bp-margin-sp) !important;}.background-bp-pc {display:none;}.background-bp-sp {display:block;}\n }"
|
|
6310
6936
|
};
|
|
6311
6937
|
function Modal($$anchor, $$props) {
|
|
6312
6938
|
$.push($$props, false);
|
|
6313
|
-
$.append_styles($$anchor, $$css$
|
|
6939
|
+
$.append_styles($$anchor, $$css$17);
|
|
6314
6940
|
const close$1 = $.mutable_state();
|
|
6315
6941
|
const backgroundClick = $.mutable_state();
|
|
6316
6942
|
const backgroundClickPC = $.mutable_state();
|
|
@@ -6419,7 +7045,7 @@ function Modal($$anchor, $$props) {
|
|
|
6419
7045
|
...getTransform(position$1)
|
|
6420
7046
|
});
|
|
6421
7047
|
});
|
|
6422
|
-
$.legacy_pre_effect(() => ($.deep_read_state(placement()), $.deep_read_state(useBreakPoint()), $.deep_read_state(breakPoint()), $.deep_read_state(props())
|
|
7048
|
+
$.legacy_pre_effect(() => ($.deep_read_state(placement()), $.deep_read_state(useBreakPoint()), $.deep_read_state(breakPoint()), $.deep_read_state(props())), () => {
|
|
6423
7049
|
let margin = DefaultModalPlacement.margin;
|
|
6424
7050
|
if (!isCanvasPreview() && placement() && placement().margin !== null) margin = placement().margin;
|
|
6425
7051
|
let marginStyle = getMarginStyle(margin);
|
|
@@ -6436,15 +7062,7 @@ function Modal($$anchor, $$props) {
|
|
|
6436
7062
|
}));
|
|
6437
7063
|
modalStyles.add(marginVariables);
|
|
6438
7064
|
});
|
|
6439
|
-
const propsStyle = objToStyle({
|
|
6440
|
-
width: props().width,
|
|
6441
|
-
...toCssPadding(props()),
|
|
6442
|
-
...toCssOverflow(props()),
|
|
6443
|
-
...toCssShadow(props()),
|
|
6444
|
-
...toCssRadius(props()),
|
|
6445
|
-
...toCssBackground(props()),
|
|
6446
|
-
...toCssBorder(props())
|
|
6447
|
-
});
|
|
7065
|
+
const propsStyle = objToStyle({ width: props().width });
|
|
6448
7066
|
modalStyles.add(propsStyle);
|
|
6449
7067
|
});
|
|
6450
7068
|
$.legacy_pre_effect(() => {}, () => {
|
|
@@ -6535,14 +7153,14 @@ function Modal($$anchor, $$props) {
|
|
|
6535
7153
|
|
|
6536
7154
|
//#endregion
|
|
6537
7155
|
//#region src/components-flex/code/Code.svelte
|
|
6538
|
-
var root$11 = $.template(
|
|
6539
|
-
const $$css$
|
|
7156
|
+
var root$11 = $.template(`<!> <div><!></div>`, 1);
|
|
7157
|
+
const $$css$16 = {
|
|
6540
7158
|
hash: "svelte-igivoz",
|
|
6541
7159
|
code: ".code.svelte-igivoz {flex-grow:1;flex-shrink:0;align-self:stretch;}\n /*{@html props.rawCss}*/"
|
|
6542
7160
|
};
|
|
6543
7161
|
function Code($$anchor, $$props) {
|
|
6544
7162
|
$.push($$props, false);
|
|
6545
|
-
$.append_styles($$anchor, $$css$
|
|
7163
|
+
$.append_styles($$anchor, $$css$16);
|
|
6546
7164
|
let props = $.prop($$props, "props", 24, () => ({}));
|
|
6547
7165
|
let layerId = $.prop($$props, "layerId", 8, "");
|
|
6548
7166
|
function unescapeBraces(str) {
|
|
@@ -6558,33 +7176,33 @@ function Code($$anchor, $$props) {
|
|
|
6558
7176
|
document.body.removeChild(script);
|
|
6559
7177
|
};
|
|
6560
7178
|
}
|
|
6561
|
-
function injectCss() {
|
|
6562
|
-
const style = document.createElement("style");
|
|
6563
|
-
style.textContent = props().rawCss;
|
|
6564
|
-
document.head.appendChild(style);
|
|
6565
|
-
return () => {
|
|
6566
|
-
document.head.removeChild(style);
|
|
6567
|
-
};
|
|
6568
|
-
}
|
|
6569
7179
|
onMount$1(() => {
|
|
6570
7180
|
const removeScript = injectJavaScript();
|
|
6571
|
-
const removeCss = injectCss();
|
|
6572
7181
|
return () => {
|
|
6573
7182
|
removeScript();
|
|
6574
|
-
removeCss();
|
|
6575
7183
|
};
|
|
6576
7184
|
});
|
|
6577
7185
|
$.init();
|
|
6578
|
-
var
|
|
6579
|
-
var node = $.
|
|
6580
|
-
|
|
7186
|
+
var fragment = root$11();
|
|
7187
|
+
var node = $.first_child(fragment);
|
|
7188
|
+
var consequent = ($$anchor$1) => {
|
|
7189
|
+
StylePortal($$anchor$1, { get cssText() {
|
|
7190
|
+
return props().rawCss;
|
|
7191
|
+
} });
|
|
7192
|
+
};
|
|
7193
|
+
$.if(node, ($$render) => {
|
|
7194
|
+
if (props().rawCss) $$render(consequent);
|
|
7195
|
+
});
|
|
7196
|
+
var div = $.sibling(node, 2);
|
|
7197
|
+
var node_1 = $.child(div);
|
|
7198
|
+
$.html(node_1, () => props().rawHtml, false, false);
|
|
6581
7199
|
$.reset(div);
|
|
6582
7200
|
$.template_effect(($0) => {
|
|
6583
7201
|
$.set_attribute(div, "id", props().id);
|
|
6584
7202
|
$.set_class(div, 1, $0, "svelte-igivoz");
|
|
6585
7203
|
$.set_attribute(div, "data-layer-id", layerId());
|
|
6586
7204
|
}, [() => $.clsx(["code", ...props().classNames ?? []].join(" "))], $.derived_safe_equal);
|
|
6587
|
-
$.append($$anchor,
|
|
7205
|
+
$.append($$anchor, fragment);
|
|
6588
7206
|
$.pop();
|
|
6589
7207
|
}
|
|
6590
7208
|
|
|
@@ -6595,13 +7213,16 @@ const LIST_ITEM_CONTEXT_KEY = "ListItemContext";
|
|
|
6595
7213
|
//#endregion
|
|
6596
7214
|
//#region src/components-flex/list/ListItem.svelte
|
|
6597
7215
|
var root$10 = $.template(`<li><!></li>`);
|
|
6598
|
-
const $$css$
|
|
7216
|
+
const $$css$15 = {
|
|
6599
7217
|
hash: "svelte-b4b4gh",
|
|
6600
7218
|
code: ".list-item.svelte-b4b4gh {margin:0;padding:0;}.list-item-inner.svelte-b4b4gh {display:flex;align-items:center;width:100%;text-decoration:none;color:inherit;border:0;background:none;padding:0;margin:0;text-align:left;-webkit-appearance:none;}.list-item-inner.svelte-b4b4gh:hover {opacity:0.8;}.list-item.svelte-b4b4gh:not(:first-child) {border-top-width:var(--list-item-border-width);border-top-style:var(--list-item-border-style);border-top-color:var(--list-item-border-color);}"
|
|
6601
7219
|
};
|
|
6602
7220
|
function ListItem($$anchor, $$props) {
|
|
6603
7221
|
$.push($$props, false);
|
|
6604
|
-
$.append_styles($$anchor, $$css$
|
|
7222
|
+
$.append_styles($$anchor, $$css$15);
|
|
7223
|
+
const [$$stores, $$cleanup] = $.setup_stores();
|
|
7224
|
+
const $clickable = () => $.store_get($.get(clickable), "$clickable", $$stores);
|
|
7225
|
+
const clickable = $.mutable_state();
|
|
6605
7226
|
const variables$1 = $.mutable_state();
|
|
6606
7227
|
const style = $.mutable_state();
|
|
6607
7228
|
const innerStyle = $.mutable_state();
|
|
@@ -6609,8 +7230,10 @@ function ListItem($$anchor, $$props) {
|
|
|
6609
7230
|
let props = $.prop($$props, "props", 8);
|
|
6610
7231
|
$.prop($$props, "item", 8);
|
|
6611
7232
|
useInjectCustomizeCss(props(), layerId());
|
|
6612
|
-
const { attributes, element, handleClick } = useClickable_default(props());
|
|
6613
7233
|
const context = getContext(LIST_ITEM_CONTEXT_KEY) || {};
|
|
7234
|
+
$.legacy_pre_effect(() => $.deep_read_state(props()), () => {
|
|
7235
|
+
$.store_unsub($.set(clickable, useClickable_default(props())), "$clickable", $$stores);
|
|
7236
|
+
});
|
|
6614
7237
|
$.legacy_pre_effect(() => {}, () => {
|
|
6615
7238
|
$.set(variables$1, { ...context.borderTopWidth ? {
|
|
6616
7239
|
"--list-item-border-width": context.borderTopWidth ?? "0",
|
|
@@ -6634,14 +7257,16 @@ function ListItem($$anchor, $$props) {
|
|
|
6634
7257
|
$.init();
|
|
6635
7258
|
var li = root$10();
|
|
6636
7259
|
var node = $.child(li);
|
|
6637
|
-
$.element(node, () => element, false, ($$element, $$anchor$1) => {
|
|
6638
|
-
let
|
|
6639
|
-
$.template_effect(() =>
|
|
6640
|
-
|
|
7260
|
+
$.element(node, () => $clickable().element, false, ($$element, $$anchor$1) => {
|
|
7261
|
+
let attributes;
|
|
7262
|
+
$.template_effect(() => attributes = $.set_attributes($$element, attributes, {
|
|
7263
|
+
...$clickable().attributes,
|
|
6641
7264
|
class: "list-item-inner",
|
|
6642
7265
|
style: $.get(innerStyle)
|
|
6643
7266
|
}, "svelte-b4b4gh"));
|
|
6644
|
-
$.event("click", $$element,
|
|
7267
|
+
$.event("click", $$element, function(...$$args) {
|
|
7268
|
+
$clickable().handleClick?.apply(this, $$args);
|
|
7269
|
+
});
|
|
6645
7270
|
var fragment = $.comment();
|
|
6646
7271
|
var node_1 = $.first_child(fragment);
|
|
6647
7272
|
$.slot(node_1, $$props, "default", {}, null);
|
|
@@ -6656,18 +7281,19 @@ function ListItem($$anchor, $$props) {
|
|
|
6656
7281
|
}, [() => $.clsx(["list-item", ...props().classNames ?? []].join(" "))], $.derived_safe_equal);
|
|
6657
7282
|
$.append($$anchor, li);
|
|
6658
7283
|
$.pop();
|
|
7284
|
+
$$cleanup();
|
|
6659
7285
|
}
|
|
6660
7286
|
|
|
6661
7287
|
//#endregion
|
|
6662
7288
|
//#region src/components-flex/list/List.svelte
|
|
6663
7289
|
var root$9 = $.template(`<ul><!></ul>`);
|
|
6664
|
-
const $$css$
|
|
7290
|
+
const $$css$14 = {
|
|
6665
7291
|
hash: "svelte-v2vy6p",
|
|
6666
7292
|
code: ".list.svelte-v2vy6p {padding:0;margin:0;list-style:none;display:flex;flex-direction:column;--border-width: 0;--border-style: solit;--border-color: rgba(255, 255, 255, 0);border-top-width:var(--border-width);border-top-style:var(--border-style);border-top-color:var(--border-color);border-bottom-width:var(--border-width);border-bottom-style:var(--border-style);border-bottom-color:var(--border-color);}"
|
|
6667
7293
|
};
|
|
6668
7294
|
function List($$anchor, $$props) {
|
|
6669
7295
|
$.push($$props, false);
|
|
6670
|
-
$.append_styles($$anchor, $$css$
|
|
7296
|
+
$.append_styles($$anchor, $$css$14);
|
|
6671
7297
|
const variables$1 = $.mutable_state();
|
|
6672
7298
|
const actionTableData = $.mutable_state();
|
|
6673
7299
|
const items = $.mutable_state();
|
|
@@ -6734,8 +7360,7 @@ function splitNumberAndUnit(value) {
|
|
|
6734
7360
|
number: void 0,
|
|
6735
7361
|
unit: ""
|
|
6736
7362
|
};
|
|
6737
|
-
const
|
|
6738
|
-
const match = (typeof value !== "string" ? String(value) : value).match(regex);
|
|
7363
|
+
const match = (typeof value !== "string" ? String(value) : value).match(/^(-?\d*\.?\d+)([a-zA-Z%]*)$/);
|
|
6739
7364
|
if (match) return {
|
|
6740
7365
|
number: parseFloat(match[1]),
|
|
6741
7366
|
unit: match[2] || ""
|
|
@@ -6749,13 +7374,13 @@ function splitNumberAndUnit(value) {
|
|
|
6749
7374
|
//#endregion
|
|
6750
7375
|
//#region src/components-flex/multi-column/MultiColumn.svelte
|
|
6751
7376
|
var root$8 = $.template(`<ul><!></ul>`);
|
|
6752
|
-
const $$css$
|
|
7377
|
+
const $$css$13 = {
|
|
6753
7378
|
hash: "svelte-9pwfkr",
|
|
6754
7379
|
code: ".multi-column.svelte-9pwfkr {padding:0;margin:0;list-style:none;display:flex;flex-direction:row;}"
|
|
6755
7380
|
};
|
|
6756
7381
|
function MultiColumn($$anchor, $$props) {
|
|
6757
7382
|
$.push($$props, false);
|
|
6758
|
-
$.append_styles($$anchor, $$css$
|
|
7383
|
+
$.append_styles($$anchor, $$css$13);
|
|
6759
7384
|
const style = $.mutable_state();
|
|
6760
7385
|
let layerId = $.prop($$props, "layerId", 8);
|
|
6761
7386
|
let props = $.prop($$props, "props", 8);
|
|
@@ -6808,20 +7433,25 @@ function MultiColumn($$anchor, $$props) {
|
|
|
6808
7433
|
//#endregion
|
|
6809
7434
|
//#region src/components-flex/multi-column/MultiColumnItem.svelte
|
|
6810
7435
|
var root$7 = $.template(`<li><!></li>`);
|
|
6811
|
-
const $$css$
|
|
7436
|
+
const $$css$12 = {
|
|
6812
7437
|
hash: "svelte-18bwzrs",
|
|
6813
7438
|
code: ".multi-column-item.svelte-18bwzrs {margin:0;width:100%;padding-top:0;padding-bottom:0;padding-left:var(--multi-column-item-padding);padding-right:var(--multi-column-item-padding);}.multi-column-item-inner.svelte-18bwzrs {display:flex;flex-direction:column;align-items:center;gap:var(--multi-column-item-gap);width:100%;text-decoration:none;border:0;background:none;margin:0;text-align:left;-webkit-appearance:none;padding-top:var(--multi-column-item-padding-top);padding-left:var(--multi-column-item-padding-left);padding-right:var(--multi-column-item-padding-right);padding-bottom:var(--multi-column-item-padding-bottom);}.multi-column-item-inner.svelte-18bwzrs:hover {opacity:0.8;}.multi-column-item.svelte-18bwzrs:not(:first-child) {border-left-width:var(--multi-column-item-border-width);border-left-style:var(--multi-column-item-border-style);border-left-color:var(--multi-column-item-border-color);}"
|
|
6814
7439
|
};
|
|
6815
7440
|
function MultiColumnItem($$anchor, $$props) {
|
|
6816
7441
|
$.push($$props, false);
|
|
6817
|
-
$.append_styles($$anchor, $$css$
|
|
7442
|
+
$.append_styles($$anchor, $$css$12);
|
|
7443
|
+
const [$$stores, $$cleanup] = $.setup_stores();
|
|
7444
|
+
const $clickable = () => $.store_get($.get(clickable), "$clickable", $$stores);
|
|
7445
|
+
const clickable = $.mutable_state();
|
|
6818
7446
|
const variables$1 = $.mutable_state();
|
|
6819
7447
|
const style = $.mutable_state();
|
|
6820
7448
|
let layerId = $.prop($$props, "layerId", 8);
|
|
6821
7449
|
let props = $.prop($$props, "props", 8);
|
|
6822
7450
|
useInjectCustomizeCss(props(), layerId());
|
|
6823
|
-
const { attributes, element, handleClick } = useClickable_default(props());
|
|
6824
7451
|
const context = getContext(MULTI_COLUMN_ITEM_CONTEXT_KEY) || {};
|
|
7452
|
+
$.legacy_pre_effect(() => $.deep_read_state(props()), () => {
|
|
7453
|
+
$.store_unsub($.set(clickable, useClickable_default(props())), "$clickable", $$stores);
|
|
7454
|
+
});
|
|
6825
7455
|
$.legacy_pre_effect(() => {}, () => {
|
|
6826
7456
|
$.set(variables$1, {
|
|
6827
7457
|
"--multi-column-item-padding-top": context.paddingTop ?? "0",
|
|
@@ -6844,13 +7474,15 @@ function MultiColumnItem($$anchor, $$props) {
|
|
|
6844
7474
|
$.init();
|
|
6845
7475
|
var li = root$7();
|
|
6846
7476
|
var node = $.child(li);
|
|
6847
|
-
$.element(node, () => element, false, ($$element, $$anchor$1) => {
|
|
6848
|
-
let
|
|
6849
|
-
$.template_effect(() =>
|
|
6850
|
-
|
|
7477
|
+
$.element(node, () => $clickable().element, false, ($$element, $$anchor$1) => {
|
|
7478
|
+
let attributes;
|
|
7479
|
+
$.template_effect(() => attributes = $.set_attributes($$element, attributes, {
|
|
7480
|
+
...$clickable().attributes,
|
|
6851
7481
|
class: "multi-column-item-inner"
|
|
6852
7482
|
}, "svelte-18bwzrs"));
|
|
6853
|
-
$.event("click", $$element,
|
|
7483
|
+
$.event("click", $$element, function(...$$args) {
|
|
7484
|
+
$clickable().handleClick?.apply(this, $$args);
|
|
7485
|
+
});
|
|
6854
7486
|
var fragment = $.comment();
|
|
6855
7487
|
var node_1 = $.first_child(fragment);
|
|
6856
7488
|
$.slot(node_1, $$props, "default", {}, null);
|
|
@@ -6865,18 +7497,19 @@ function MultiColumnItem($$anchor, $$props) {
|
|
|
6865
7497
|
}, [() => $.clsx(["multi-column-item", ...props().classNames ?? []].join(" "))], $.derived_safe_equal);
|
|
6866
7498
|
$.append($$anchor, li);
|
|
6867
7499
|
$.pop();
|
|
7500
|
+
$$cleanup();
|
|
6868
7501
|
}
|
|
6869
7502
|
|
|
6870
7503
|
//#endregion
|
|
6871
7504
|
//#region src/components-flex/youtube/Youtube.svelte
|
|
6872
7505
|
var root$6 = $.template(`<div><div class="youtube-player"></div></div>`);
|
|
6873
|
-
const $$css$
|
|
7506
|
+
const $$css$11 = {
|
|
6874
7507
|
hash: "svelte-odfkc2",
|
|
6875
7508
|
code: ".youtube.svelte-odfkc2 {position:relative;aspect-ratio:16 / 9;width:100%;border-radius:3px;}.youtube.svelte-odfkc2 iframe {position:absolute;width:100%;height:100%;object-fit:cover;}"
|
|
6876
7509
|
};
|
|
6877
7510
|
function Youtube($$anchor, $$props) {
|
|
6878
7511
|
$.push($$props, false);
|
|
6879
|
-
$.append_styles($$anchor, $$css$
|
|
7512
|
+
$.append_styles($$anchor, $$css$11);
|
|
6880
7513
|
const style = $.mutable_state();
|
|
6881
7514
|
let props = $.prop($$props, "props", 24, () => ({}));
|
|
6882
7515
|
let layerId = $.prop($$props, "layerId", 8, "");
|
|
@@ -6973,13 +7606,13 @@ function Youtube($$anchor, $$props) {
|
|
|
6973
7606
|
//#endregion
|
|
6974
7607
|
//#region src/components-flex/count-down/CountDown.svelte
|
|
6975
7608
|
var root$5 = $.template(`<div><!></div>`);
|
|
6976
|
-
const $$css$
|
|
7609
|
+
const $$css$10 = {
|
|
6977
7610
|
hash: "svelte-1n395il",
|
|
6978
7611
|
code: ".countdown.svelte-1n395il {display:flex;align-items:center;gap:4px;}"
|
|
6979
7612
|
};
|
|
6980
7613
|
function CountDown($$anchor, $$props) {
|
|
6981
7614
|
$.push($$props, false);
|
|
6982
|
-
$.append_styles($$anchor, $$css$
|
|
7615
|
+
$.append_styles($$anchor, $$css$10);
|
|
6983
7616
|
const day = $.mutable_state();
|
|
6984
7617
|
const hour = $.mutable_state();
|
|
6985
7618
|
const min = $.mutable_state();
|
|
@@ -7073,23 +7706,19 @@ const useText = (props, layerId) => {
|
|
|
7073
7706
|
const getColor = () => {
|
|
7074
7707
|
if (props.color) return props.color;
|
|
7075
7708
|
if (props.theme) return themeStyles[props.theme].color;
|
|
7076
|
-
return void 0;
|
|
7077
7709
|
};
|
|
7078
7710
|
const getCssSize = () => {
|
|
7079
7711
|
const getFontSize = () => {
|
|
7080
7712
|
if (props.fontSize) return props.fontSize;
|
|
7081
7713
|
if (props.size) return TEXT_VARIANTS.size[props.size].fontSize;
|
|
7082
|
-
return void 0;
|
|
7083
7714
|
};
|
|
7084
7715
|
const getLineHeight = () => {
|
|
7085
7716
|
if (props.lineHeight) return props.lineHeight;
|
|
7086
7717
|
if (props.size) return TEXT_VARIANTS.size[props.size].lineHeight;
|
|
7087
|
-
return void 0;
|
|
7088
7718
|
};
|
|
7089
7719
|
const getFontWeight = () => {
|
|
7090
7720
|
if (props.fontWeight) return props.fontWeight;
|
|
7091
7721
|
if (props.size) return TEXT_VARIANTS.size[props.size].fontWeight;
|
|
7092
|
-
return void 0;
|
|
7093
7722
|
};
|
|
7094
7723
|
return {
|
|
7095
7724
|
fontSize: getFontSize(),
|
|
@@ -7160,49 +7789,126 @@ function CountDownValue($$anchor, $$props) {
|
|
|
7160
7789
|
}
|
|
7161
7790
|
|
|
7162
7791
|
//#endregion
|
|
7163
|
-
//#region src/components-flex/clip-copy/ClipCopy.
|
|
7164
|
-
var
|
|
7165
|
-
|
|
7166
|
-
|
|
7167
|
-
|
|
7792
|
+
//#region src/components-flex/clip-copy/ClipCopy.css.ts
|
|
7793
|
+
var ClipCopy_css_default = (layerId, _props) => {
|
|
7794
|
+
return createComponentRawCss(layerId, (style) => [
|
|
7795
|
+
style("", {
|
|
7796
|
+
position: "relative",
|
|
7797
|
+
display: "inline-flex"
|
|
7798
|
+
}),
|
|
7799
|
+
style(".clipboard-button", {
|
|
7800
|
+
position: "relative",
|
|
7801
|
+
display: "inline-flex",
|
|
7802
|
+
alignItems: "center",
|
|
7803
|
+
whiteSpace: "nowrap",
|
|
7804
|
+
gap: "12px",
|
|
7805
|
+
background: "none",
|
|
7806
|
+
border: "0",
|
|
7807
|
+
transition: "0.12s",
|
|
7808
|
+
cursor: "pointer"
|
|
7809
|
+
}),
|
|
7810
|
+
style(".clipboard-button:hover", { opacity: "0.8" }),
|
|
7811
|
+
style(".clipboard-button:active", { opacity: "0.6" }),
|
|
7812
|
+
style(".clipboard-tooltip", {
|
|
7813
|
+
position: "absolute",
|
|
7814
|
+
top: "-8px",
|
|
7815
|
+
left: "50%",
|
|
7816
|
+
display: "block",
|
|
7817
|
+
transform: "translate(-50%, -100%)",
|
|
7818
|
+
padding: "4px 10px",
|
|
7819
|
+
backgroundColor: "#333333",
|
|
7820
|
+
color: "#ffffff",
|
|
7821
|
+
fontSize: "11px",
|
|
7822
|
+
fontWeight: "bold",
|
|
7823
|
+
borderRadius: "4px",
|
|
7824
|
+
transition: "transform 0.2s ease-out",
|
|
7825
|
+
whiteSpace: "nowrap",
|
|
7826
|
+
pointerEvents: "none"
|
|
7827
|
+
}),
|
|
7828
|
+
style(".clipboard-tooltip:after", {
|
|
7829
|
+
content: "",
|
|
7830
|
+
display: "block",
|
|
7831
|
+
position: "absolute",
|
|
7832
|
+
bottom: "0",
|
|
7833
|
+
left: "50%",
|
|
7834
|
+
width: "8px",
|
|
7835
|
+
height: "8px",
|
|
7836
|
+
backgroundColor: "#333333",
|
|
7837
|
+
borderRadius: "1px",
|
|
7838
|
+
transform: "translate(-50%, 40%) rotate(45deg)"
|
|
7839
|
+
}),
|
|
7840
|
+
style(".clipboard-tooltip[aria-hidden=\"true\"]", {
|
|
7841
|
+
opacity: "0",
|
|
7842
|
+
transform: "translate(-50%, -80%)"
|
|
7843
|
+
})
|
|
7844
|
+
]);
|
|
7168
7845
|
};
|
|
7846
|
+
|
|
7847
|
+
//#endregion
|
|
7848
|
+
//#region src/components-flex/clip-copy/ClipCopy.svelte
|
|
7849
|
+
var root_1$6 = $.template(`<div><button class="clipboard-button"><!></button> <span class="clipboard-tooltip">コピーしました</span></div>`);
|
|
7850
|
+
var root$3 = $.template(`<!> <!>`, 1);
|
|
7169
7851
|
function ClipCopy($$anchor, $$props) {
|
|
7170
7852
|
$.push($$props, false);
|
|
7171
|
-
|
|
7853
|
+
const [$$stores, $$cleanup] = $.setup_stores();
|
|
7854
|
+
const $responsiveProps = () => $.store_get(responsiveProps, "$responsiveProps", $$stores);
|
|
7855
|
+
const rProps = $.mutable_state();
|
|
7172
7856
|
let props = $.prop($$props, "props", 24, () => ({}));
|
|
7173
|
-
let layerId = $.prop($$props, "layerId",
|
|
7857
|
+
let layerId = $.prop($$props, "layerId", 24, () => crypto.randomUUID());
|
|
7174
7858
|
useInjectCustomizeCss(props(), layerId());
|
|
7175
7859
|
let buttonElement = $.mutable_state();
|
|
7176
7860
|
let showTooltip = $.mutable_state(false);
|
|
7177
|
-
const
|
|
7861
|
+
const cssCode = ClipCopy_css_default(layerId(), props());
|
|
7862
|
+
const responsiveProps = useResponsiveProps(props());
|
|
7863
|
+
const handleClick = async (e) => {
|
|
7178
7864
|
e.preventDefault();
|
|
7179
|
-
const targetText =
|
|
7180
|
-
|
|
7181
|
-
|
|
7182
|
-
|
|
7183
|
-
|
|
7184
|
-
|
|
7185
|
-
|
|
7186
|
-
|
|
7865
|
+
const targetText = $.get(rProps).content ?? $.get(buttonElement)?.innerText ?? "";
|
|
7866
|
+
try {
|
|
7867
|
+
if (await copyToClipboard(targetText)) {
|
|
7868
|
+
send_event("_click_copy", { text: targetText });
|
|
7869
|
+
if ($.get(rProps).copiedEventName) send_event($.get(rProps).copiedEventName, { text: targetText });
|
|
7870
|
+
$.set(showTooltip, true);
|
|
7871
|
+
setTimeout(() => {
|
|
7872
|
+
$.set(showTooltip, false);
|
|
7873
|
+
}, 3e3);
|
|
7874
|
+
}
|
|
7875
|
+
} catch (e$1) {
|
|
7876
|
+
console.warn(e$1);
|
|
7877
|
+
}
|
|
7187
7878
|
};
|
|
7879
|
+
$.legacy_pre_effect(() => $responsiveProps(), () => {
|
|
7880
|
+
$.set(rProps, $responsiveProps());
|
|
7881
|
+
});
|
|
7882
|
+
$.legacy_pre_effect_reset();
|
|
7188
7883
|
$.init();
|
|
7189
|
-
var
|
|
7190
|
-
var
|
|
7191
|
-
|
|
7192
|
-
$.
|
|
7193
|
-
|
|
7194
|
-
|
|
7195
|
-
|
|
7196
|
-
|
|
7197
|
-
|
|
7198
|
-
$.
|
|
7199
|
-
$.
|
|
7200
|
-
$.
|
|
7201
|
-
$.
|
|
7202
|
-
|
|
7203
|
-
|
|
7204
|
-
|
|
7884
|
+
var fragment = root$3();
|
|
7885
|
+
var node = $.first_child(fragment);
|
|
7886
|
+
StylePortal(node, { cssText: cssCode });
|
|
7887
|
+
var node_1 = $.sibling(node, 2);
|
|
7888
|
+
var consequent = ($$anchor$1) => {
|
|
7889
|
+
var div = root_1$6();
|
|
7890
|
+
var button = $.child(div);
|
|
7891
|
+
var node_2 = $.child(button);
|
|
7892
|
+
$.slot(node_2, $$props, "default", {}, null);
|
|
7893
|
+
$.reset(button);
|
|
7894
|
+
$.bind_this(button, ($$value) => $.set(buttonElement, $$value), () => $.get(buttonElement));
|
|
7895
|
+
var span = $.sibling(button, 2);
|
|
7896
|
+
$.reset(div);
|
|
7897
|
+
$.template_effect(($0) => {
|
|
7898
|
+
$.set_attribute(div, "id", $.get(rProps).id);
|
|
7899
|
+
$.set_class(div, 1, $0);
|
|
7900
|
+
$.set_attribute(div, "data-layer-id", layerId());
|
|
7901
|
+
$.set_attribute(span, "aria-hidden", !$.get(showTooltip));
|
|
7902
|
+
}, [() => $.clsx(["clipboard", ...$.get(rProps).classNames ?? []].join(" "))], $.derived_safe_equal);
|
|
7903
|
+
$.event("click", button, handleClick);
|
|
7904
|
+
$.append($$anchor$1, div);
|
|
7905
|
+
};
|
|
7906
|
+
$.if(node_1, ($$render) => {
|
|
7907
|
+
if (!$.get(rProps).hidden) $$render(consequent);
|
|
7908
|
+
});
|
|
7909
|
+
$.append($$anchor, fragment);
|
|
7205
7910
|
$.pop();
|
|
7911
|
+
$$cleanup();
|
|
7206
7912
|
}
|
|
7207
7913
|
|
|
7208
7914
|
//#endregion
|
|
@@ -7378,7 +8084,7 @@ function FormField($$anchor, $$props) {
|
|
|
7378
8084
|
$.append($$anchor$1, dt);
|
|
7379
8085
|
};
|
|
7380
8086
|
$.if(node, ($$render) => {
|
|
7381
|
-
if (props().label) $$render(consequent_1);
|
|
8087
|
+
if (props().label && props().showLabel) $$render(consequent_1);
|
|
7382
8088
|
});
|
|
7383
8089
|
var dd = $.sibling(node, 2);
|
|
7384
8090
|
var node_2 = $.child(dd);
|
|
@@ -8474,4 +9180,4 @@ const flexComponentSchemes = {
|
|
|
8474
9180
|
};
|
|
8475
9181
|
|
|
8476
9182
|
//#endregion
|
|
8477
|
-
export { ACTION_HOOK_LABEL, ASPECT_VARIANT, ASPECT_VARIANTS, AVATAR_SHAPE, AVATAR_SIZE, AVATAR_SIZE_STYLES, Alignments, AnimationStyles, BACKGROUND_COLOR_VARIANT, BACKGROUND_COLOR_VARIANTS, BORDER_COLOR_VARIANT, BORDER_COLOR_VARIANTS, BUTTON_ICON_ANGLE, BUTTON_LINK_TARGET, BUTTON_OUTLINED_ROUND_STYLES, BUTTON_OUTLINED_SIZE_STYLES, BUTTON_OUTLINED_WRAP_STYLES, BUTTON_ROUND, BUTTON_ROUND_STYLES, BUTTON_SIZE, BUTTON_SIZE_STYLES, BUTTON_TEXT_SIZE, BUTTON_TEXT_SIZE_STYLES, BUTTON_TEXT_THEME, BUTTON_THEME, BUTTON_VARIANT, BUTTON_WRAP_STYLES, BackgroundSizes, CLOSE_BUTTON_LABEL_PLACEMENT, CLOSE_BUTTON_PLACEMENT, CLOSE_BUTTON_ROUND, ClipPaths, Cursors, DefaultEdgePosition, DefaultElasticity, DefaultFormButtonColor, DefaultFormIdentifyBooleanField, DefaultFormIdentifyTextField, DefaultListBackground, DefaultListBackgroundNone, DefaultListBackgroundStripe, DefaultListSeparator, DefaultListSeparatorBorder, DefaultListSeparatorGap, DefaultListSeparatorNone, DefaultModalBreakPoint, DefaultModalPlacement, DefaultSlideButton, DefaultSlideNavigationButton, Directions, Elasticities, ElasticityStyle, FONT_FAMILY_VARIANT, FONT_FAMILY_VARIANTS, FONT_FAMILY_VARIANT_GROUPS, FORM_FIELD_LABEL_SIZE, FORM_FIELD_LABEL_THEME, FORM_FIELD_SIZE, FORM_FIELD_TYPE, FORM_FIELD_VARIANT, FORM_FIELD_VARIANT_FOR_CHECKER, FORM_IDENTIFY_FIELD_TYPE, FORM_INPUT_TYPE, FORM_VALIDATION_DEFAULT_ERROR_MESSAGES, FORM_VALIDATION_REGEX, FORM_VALIDATION_TYPE, Avatar as FlexAvatar, Button as FlexButton, ButtonOutlined as FlexButtonOutlined, ButtonText as FlexButtonText, ClipCopy as FlexClipCopy, CloseButton as FlexCloseButton, Code as FlexCode, CountDown as FlexCountDown, CountDownValue as FlexCountDownValue, FlexDirections, Embed as FlexEmbed, Form as FlexForm, FormBoolean as FlexFormBoolean, FormCheckboxes as FlexFormCheckboxes, FormField as FlexFormField, FormIdentifyField as FlexFormIdentifyField, FormInput as FlexFormInput, FormRadios as FlexFormRadios, FormSelect as FlexFormSelect, FormTextarea as FlexFormTextarea, Icon as FlexIcon, Image as FlexImage, Layout as FlexLayout, List as FlexList, ListItem as FlexListItem, Modal as FlexModal, MultiColumn as FlexMultiColumn, MultiColumnItem as FlexMultiColumnItem, RichText as FlexRichText, Slider as FlexSlider, SliderItem as FlexSliderItem, Text as FlexText, TextLink as FlexTextLink, Youtube as FlexYoutube, Fonts, FormIdentifyBooleanFields, FormIdentifyTextFieldPlaceholders, FormIdentifyTextFieldValidations, FormIdentifyTextFields, ICON_SIZE, ICON_SIZE_STYLES, ICON_VARIANTS, IMAGE_ASPECT_VARIANTS, IMAGE_ROUND_SHAPE, IMAGE_ROUND_STYLES, Justifies, KARTE_MODAL_ROOT, LAYER_TEXT_SIZE, LAYOUT_ALIGN, LAYOUT_COMPONENT_NAMES, LAYOUT_DIRECTION, LAYOUT_DISPLAY_TYPE, LAYOUT_JUSTIFY, LIST_ITEM_CONTEXT_KEY, LengthUnits, ListBackgroundTypes, ListDirections, ListSeparatorTypes, MULTI_COLUMN_ITEM_CONTEXT_KEY, MediaQueries, ModalPositions, ObjectFits, OnClickOperationOptions, Overflows, PropTypes, ROUND_STYLES, ROUND_VARIANT, Repeats, SHADOW_VARIANT, SHADOW_VARIANTS, SYSTEM_FONT, State, StateItem, TEXT_LINK_SIZE, TEXT_LINK_SIZE_STYLES, TEXT_LINK_THEME, TEXT_LINK_UNDERLINE, TEXT_STYLE, TEXT_THEME, TEXT_VARIANTS, TextDirections, WritingModes, addChoiceAnswer, addFreeAnswer, afterUpdate, applyCss, applyGlobalCss,
|
|
9183
|
+
export { ACTION_HOOK_LABEL, ASPECT_VARIANT, ASPECT_VARIANTS, AVATAR_SHAPE, AVATAR_SIZE, AVATAR_SIZE_STYLES, Alignments, AnimationStyles, BACKGROUND_COLOR_VARIANT, BACKGROUND_COLOR_VARIANTS, BORDER_COLOR_VARIANT, BORDER_COLOR_VARIANTS, BUTTON_ICON_ANGLE, BUTTON_LINK_TARGET, BUTTON_OUTLINED_ROUND_STYLES, BUTTON_OUTLINED_SIZE_STYLES, BUTTON_OUTLINED_WRAP_STYLES, BUTTON_ROUND, BUTTON_ROUND_STYLES, BUTTON_SIZE, BUTTON_SIZE_STYLES, BUTTON_TEXT_SIZE, BUTTON_TEXT_SIZE_STYLES, BUTTON_TEXT_THEME, BUTTON_THEME, BUTTON_VARIANT, BUTTON_WRAP_STYLES, BackgroundSizes, CLOSE_BUTTON_LABEL_PLACEMENT, CLOSE_BUTTON_PLACEMENT, CLOSE_BUTTON_ROUND, ClipPaths, Cursors, DefaultEdgePosition, DefaultElasticity, DefaultFormButtonColor, DefaultFormIdentifyBooleanField, DefaultFormIdentifyTextField, DefaultListBackground, DefaultListBackgroundNone, DefaultListBackgroundStripe, DefaultListSeparator, DefaultListSeparatorBorder, DefaultListSeparatorGap, DefaultListSeparatorNone, DefaultModalBreakPoint, DefaultModalPlacement, DefaultSlideButton, DefaultSlideNavigationButton, Directions, Elasticities, ElasticityStyle, FONT_FAMILY_VARIANT, FONT_FAMILY_VARIANTS, FONT_FAMILY_VARIANT_GROUPS, FORM_FIELD_LABEL_SIZE, FORM_FIELD_LABEL_THEME, FORM_FIELD_SIZE, FORM_FIELD_TYPE, FORM_FIELD_VARIANT, FORM_FIELD_VARIANT_FOR_CHECKER, FORM_IDENTIFY_FIELD_TYPE, FORM_INPUT_TYPE, FORM_VALIDATION_DEFAULT_ERROR_MESSAGES, FORM_VALIDATION_REGEX, FORM_VALIDATION_TYPE, Avatar as FlexAvatar, Button as FlexButton, ButtonOutlined as FlexButtonOutlined, ButtonText as FlexButtonText, ClipCopy as FlexClipCopy, CloseButton as FlexCloseButton, Code as FlexCode, CountDown as FlexCountDown, CountDownValue as FlexCountDownValue, FlexDirections, Embed as FlexEmbed, Form as FlexForm, FormBoolean as FlexFormBoolean, FormCheckboxes as FlexFormCheckboxes, FormField as FlexFormField, FormIdentifyField as FlexFormIdentifyField, FormInput as FlexFormInput, FormRadios as FlexFormRadios, FormSelect as FlexFormSelect, FormTextarea as FlexFormTextarea, Icon as FlexIcon, Image as FlexImage, Layout as FlexLayout, List as FlexList, ListItem as FlexListItem, Modal as FlexModal, MultiColumn as FlexMultiColumn, MultiColumnItem as FlexMultiColumnItem, RichText as FlexRichText, Slider as FlexSlider, SliderItem as FlexSliderItem, Text as FlexText, TextLink as FlexTextLink, Youtube as FlexYoutube, Fonts, FormIdentifyBooleanFields, FormIdentifyTextFieldPlaceholders, FormIdentifyTextFieldValidations, FormIdentifyTextFields, ICON_SIZE, ICON_SIZE_STYLES, ICON_VARIANTS, IMAGE_ASPECT_VARIANTS, IMAGE_ROUND_SHAPE, IMAGE_ROUND_STYLES, Justifies, KARTE_MODAL_ROOT, LAYER_TEXT_SIZE, LAYOUT_ALIGN, LAYOUT_COMPONENT_NAMES, LAYOUT_DIRECTION, LAYOUT_DISPLAY_TYPE, LAYOUT_JUSTIFY, LIST_ITEM_CONTEXT_KEY, LengthUnits, ListBackgroundTypes, ListDirections, ListSeparatorTypes, MULTI_COLUMN_ITEM_CONTEXT_KEY, MediaQueries, ModalPositions, ObjectFits, OnClickOperationOptions, Overflows, PropTypes, ROUND_STYLES, ROUND_VARIANT, Repeats, SHADOW_VARIANT, SHADOW_VARIANTS, SYSTEM_FONT, State, StateItem, TEXT_LINK_SIZE, TEXT_LINK_SIZE_STYLES, TEXT_LINK_THEME, TEXT_LINK_UNDERLINE, TEXT_STYLE, TEXT_THEME, TEXT_VARIANTS, TextDirections, USER_AGENT_VARIANT, WritingModes, addChoiceAnswer, addFreeAnswer, afterUpdate, applyCss, applyGlobalCss, beforeUpdate, buttonOutlinedPropsDefault, buttonPropsDefault, close, closeAction, collection, create, createApp, createFog, createProp, destroy, destroyAction, ensureModalRoot, eventHandlers, finalize, flexComponentSchemes, formData, formStore, formSubmittedIdentifyValues, formSubmittedValues, getActionRoot, getAnsweredQuestion, getAnsweredQuestionIds, getBrandKit, getButtonOutlinedThemeStyles, getButtonTextThemeStyles, getButtonThemeStyles, getCssVariables, getEventHandlers, getEvents, getFormErrors, getFormFieldSchema, getFormFieldState, getFormFieldValue, getFormValues, getLogs, getState, getStates, getSystem, getTextLinkThemeStyles, getTextThemeStyles, getVariables, hideOnScroll, hideOnTime, initialize, isOpened, listenLogger, loadActionTable, loadActionTableQuery, loadActionTableRow, loadActionTableRows, loadGlobalScript, loadGlobalStyle, loadStyle, logger, onChangeState, onClose, onCreate, onDestory, onDestroy, onMount, onScroll, onShow, onSubmitForm, onTime, registerFormField, removeAnswer, resetEventHandlers, resetVariables, sendAnswer, sendAnswers, setEventHandlers, setFormFieldError, setFormFieldTouched, setFormFieldValue, setSetting, setState, setVariables, show, showAction, showModal, showOnScroll, showOnTime, state, tick, unregisterFormField, useBrandKit, useResponsiveProps, validateFormField, variables, widget_exports as widget };
|