@plaidev/karte-action-sdk 1.1.270-29291355.57078a51c → 1.1.270-29364900.6ab45349e
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 +2755 -1520
- 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 +2634 -1484
- 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 +1882 -1176
- 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 +1882 -1176
- package/dist/svelte5/index.front2.es.js +1881 -1175
- 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
package/dist/svelte5/index.es.js
CHANGED
|
@@ -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
|
|
@@ -1300,13 +1386,27 @@ const ACTION_CLOSE_EVENT = `KARTE-ACTION-CLOSE-${actionId}`;
|
|
|
1300
1386
|
const ACTION_CHANGE_STATE_EVENT = `KARTE-ACTION-CHANGE-STATE-${actionId}`;
|
|
1301
1387
|
/** @internal */
|
|
1302
1388
|
const send_event = (event_name, values) => {
|
|
1303
|
-
|
|
1304
|
-
|
|
1389
|
+
getSetting()?.send?.(event_name, values);
|
|
1390
|
+
};
|
|
1391
|
+
/** @internal */
|
|
1392
|
+
const toStateChangedData = (newState, oldState) => {
|
|
1393
|
+
const states$1 = getStates();
|
|
1394
|
+
const stateNames$1 = getStateNames();
|
|
1395
|
+
const getVal$1 = (state$1) => states$1.indexOf(state$1) + 1;
|
|
1396
|
+
const getName = (state$1) => {
|
|
1397
|
+
if (!state$1) return "非表示時";
|
|
1398
|
+
return stateNames$1[states$1.indexOf(state$1)] ?? state$1;
|
|
1399
|
+
};
|
|
1400
|
+
return {
|
|
1401
|
+
newState: getName(newState),
|
|
1402
|
+
oldState: getName(oldState),
|
|
1403
|
+
newVal: states$1.length === 0 ? 1 : getVal$1(newState),
|
|
1404
|
+
oldVal: states$1.length === 0 ? 0 : getVal$1(oldState)
|
|
1405
|
+
};
|
|
1305
1406
|
};
|
|
1306
1407
|
/** @internal */
|
|
1307
1408
|
const publish_edge = (topic, values) => {
|
|
1308
|
-
|
|
1309
|
-
setting?.publish?.(topic, values);
|
|
1409
|
+
getSetting()?.publish?.(topic, values);
|
|
1310
1410
|
};
|
|
1311
1411
|
/** @internal */
|
|
1312
1412
|
const initialize = (setting) => {
|
|
@@ -1320,6 +1420,19 @@ const initialize = (setting) => {
|
|
|
1320
1420
|
const finalize = () => {
|
|
1321
1421
|
resetSetting();
|
|
1322
1422
|
};
|
|
1423
|
+
/** @internal */
|
|
1424
|
+
function dispatchActionEvent(eventName, data) {
|
|
1425
|
+
try {
|
|
1426
|
+
window.dispatchEvent(new CustomEvent(eventName, data));
|
|
1427
|
+
if (window.parent) window.parent.postMessage({
|
|
1428
|
+
type: "action-sdk:event",
|
|
1429
|
+
eventName,
|
|
1430
|
+
data: data || {}
|
|
1431
|
+
}, "*");
|
|
1432
|
+
} catch (e) {
|
|
1433
|
+
console.error(e);
|
|
1434
|
+
}
|
|
1435
|
+
}
|
|
1323
1436
|
/**
|
|
1324
1437
|
* Dispatch the event to destroy KARTE action
|
|
1325
1438
|
*
|
|
@@ -1560,8 +1673,7 @@ const loadActionTableRows = async (config, data, api_key, collection_endpoint) =
|
|
|
1560
1673
|
const defaultValue = config.query.default_value ?? null;
|
|
1561
1674
|
const keys = [];
|
|
1562
1675
|
let hasError = false;
|
|
1563
|
-
|
|
1564
|
-
originalKeys.forEach((key) => {
|
|
1676
|
+
(Array.isArray(config.query.keys) ? config.query.keys : [config.query.keys]).forEach((key) => {
|
|
1565
1677
|
const d = data[key];
|
|
1566
1678
|
if (d == null || d === "") {
|
|
1567
1679
|
console.warn("key is not found. key: ", key);
|
|
@@ -1685,10 +1797,9 @@ function closeAction$1(trigger = "none") {
|
|
|
1685
1797
|
/** @internal */
|
|
1686
1798
|
const handleState = (event) => {
|
|
1687
1799
|
if (event.detail.actionId === actionId || event.detail.actionId === ALL_ACTION_ID) {
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
});
|
|
1800
|
+
const nextState = event.detail.to;
|
|
1801
|
+
const currentState = getState();
|
|
1802
|
+
send_event("_message_state_changed", toStateChangedData(nextState, currentState));
|
|
1692
1803
|
setState(event.detail.to, { disableInPreview: event.detail.disableInPreview });
|
|
1693
1804
|
}
|
|
1694
1805
|
};
|
|
@@ -1799,8 +1910,7 @@ async function loadStyle(href) {
|
|
|
1799
1910
|
if (!sr) return;
|
|
1800
1911
|
let cssRules = "";
|
|
1801
1912
|
try {
|
|
1802
|
-
|
|
1803
|
-
cssRules = await res.text();
|
|
1913
|
+
cssRules = await (await fetch(href)).text();
|
|
1804
1914
|
} catch (_) {}
|
|
1805
1915
|
if (!cssRules) return;
|
|
1806
1916
|
const [rules, fontFaceRules] = await fixFontFaceIssue(href, cssRules);
|
|
@@ -1832,9 +1942,10 @@ function getCssVariables(data) {
|
|
|
1832
1942
|
* @public
|
|
1833
1943
|
*/
|
|
1834
1944
|
function getActionRoot() {
|
|
1835
|
-
const root$
|
|
1836
|
-
if (!root$
|
|
1837
|
-
|
|
1945
|
+
const root$56 = document.querySelector(`.${KARTE_ACTION_ROOT}[data-${KARTE_ACTION_RID}='${actionId}']`);
|
|
1946
|
+
if (!root$56) return null;
|
|
1947
|
+
if (!root$56.shadowRoot) return root$56;
|
|
1948
|
+
return root$56.shadowRoot;
|
|
1838
1949
|
}
|
|
1839
1950
|
/** @internal */
|
|
1840
1951
|
function createModal(App, options = {
|
|
@@ -1876,8 +1987,7 @@ function createModal(App, options = {
|
|
|
1876
1987
|
sendErrorIfMessageOpenEventNotSent();
|
|
1877
1988
|
options.send("_message_state_changed", {
|
|
1878
1989
|
trigger,
|
|
1879
|
-
|
|
1880
|
-
newState: ""
|
|
1990
|
+
...toStateChangedData("", getState())
|
|
1881
1991
|
});
|
|
1882
1992
|
setOpened(false);
|
|
1883
1993
|
setClosed(true);
|
|
@@ -1909,8 +2019,7 @@ function createModal(App, options = {
|
|
|
1909
2019
|
if (!isOnSite() && trigger === "custom") return;
|
|
1910
2020
|
if (trigger === "custom" && (options.props.show_on_scroll || options.props.show_on_time)) return;
|
|
1911
2021
|
if (actionTablePromise) {
|
|
1912
|
-
|
|
1913
|
-
if (!result.success) return;
|
|
2022
|
+
if (!(await actionTablePromise).success) return;
|
|
1914
2023
|
}
|
|
1915
2024
|
if (!hasAlreadySentMessageOpenEvent) {
|
|
1916
2025
|
options.send("message_open", { state: getState() });
|
|
@@ -1919,15 +2028,13 @@ function createModal(App, options = {
|
|
|
1919
2028
|
sendErrorIfMessageOpenEventNotSent();
|
|
1920
2029
|
options.send("_message_state_changed", {
|
|
1921
2030
|
trigger,
|
|
1922
|
-
|
|
1923
|
-
newState: getState()
|
|
2031
|
+
...toStateChangedData(getState(), "")
|
|
1924
2032
|
});
|
|
1925
2033
|
setOpened(true);
|
|
1926
2034
|
setClosed(false);
|
|
1927
2035
|
if (app) return;
|
|
1928
|
-
const target = ensureActionRoot(isOnSite());
|
|
1929
2036
|
const props = {
|
|
1930
|
-
target,
|
|
2037
|
+
target: ensureActionRoot(isOnSite()),
|
|
1931
2038
|
props: {
|
|
1932
2039
|
send: options.send,
|
|
1933
2040
|
publish: options.publish,
|
|
@@ -1935,8 +2042,7 @@ function createModal(App, options = {
|
|
|
1935
2042
|
onShow: (props$1) => {
|
|
1936
2043
|
const { onShowHandlers } = getInternalHandlers();
|
|
1937
2044
|
if (onShowHandlers) onShowHandlers.forEach((h$1) => {
|
|
1938
|
-
|
|
1939
|
-
console.info(`${ACTION_HOOK_LABEL}:${JSON.stringify(actionHookLog)}`);
|
|
2045
|
+
console.info(`${ACTION_HOOK_LABEL}:${JSON.stringify({ name: "onShow" })}`);
|
|
1940
2046
|
h$1(props$1);
|
|
1941
2047
|
});
|
|
1942
2048
|
},
|
|
@@ -2034,8 +2140,7 @@ function ensureActionRoot(useShadow = true) {
|
|
|
2034
2140
|
el = h("div", rootAttrs);
|
|
2035
2141
|
document.body.appendChild(el);
|
|
2036
2142
|
}
|
|
2037
|
-
|
|
2038
|
-
if (isShadow) return el.shadowRoot ?? el.attachShadow({ mode: "open" });
|
|
2143
|
+
if (!!document.body.attachShadow && useShadow) return el.shadowRoot ?? el.attachShadow({ mode: "open" });
|
|
2039
2144
|
else return el;
|
|
2040
2145
|
}
|
|
2041
2146
|
/**
|
|
@@ -2096,8 +2201,7 @@ function createApp(App, options = {
|
|
|
2096
2201
|
}
|
|
2097
2202
|
}
|
|
2098
2203
|
};
|
|
2099
|
-
|
|
2100
|
-
appArgs.target = win;
|
|
2204
|
+
appArgs.target = ensureActionRoot(isOnSite());
|
|
2101
2205
|
return {
|
|
2102
2206
|
close: close$1,
|
|
2103
2207
|
show: () => {
|
|
@@ -2116,8 +2220,8 @@ function createApp(App, options = {
|
|
|
2116
2220
|
*/
|
|
2117
2221
|
function createFog({ color = "#000", opacity = "50%", zIndex = 999, onclick }) {
|
|
2118
2222
|
console.log("createFog");
|
|
2119
|
-
const root$
|
|
2120
|
-
if (root$
|
|
2223
|
+
const root$56 = ensureModalRoot();
|
|
2224
|
+
if (root$56.querySelector(".__krt-fog")) return {
|
|
2121
2225
|
fog: null,
|
|
2122
2226
|
close: () => {}
|
|
2123
2227
|
};
|
|
@@ -2138,7 +2242,7 @@ function createFog({ color = "#000", opacity = "50%", zIndex = 999, onclick }) {
|
|
|
2138
2242
|
fog.remove();
|
|
2139
2243
|
};
|
|
2140
2244
|
fog.onclick = close$1;
|
|
2141
|
-
root$
|
|
2245
|
+
root$56.appendChild(fog);
|
|
2142
2246
|
return {
|
|
2143
2247
|
fog,
|
|
2144
2248
|
close: close$1
|
|
@@ -2290,8 +2394,7 @@ function create(App, options) {
|
|
|
2290
2394
|
const handleDestroy = () => {
|
|
2291
2395
|
const { onDestroyHandlers } = getInternalHandlers();
|
|
2292
2396
|
onDestroyHandlers?.forEach((h$1) => {
|
|
2293
|
-
|
|
2294
|
-
console.info(`${ACTION_HOOK_LABEL}:${JSON.stringify(actionHookLog)}`);
|
|
2397
|
+
console.info(`${ACTION_HOOK_LABEL}:${JSON.stringify({ name: "onDestroy" })}`);
|
|
2295
2398
|
h$1(actionProps);
|
|
2296
2399
|
});
|
|
2297
2400
|
const { onDestroyHandlers: onDestroyWidgetHandlers } = getWidgetHandlers();
|
|
@@ -2442,8 +2545,7 @@ function formDataToEventValues$1(campaignId, formData$1) {
|
|
|
2442
2545
|
questions.push(name);
|
|
2443
2546
|
const value = dataItem.value;
|
|
2444
2547
|
const answerKey = `question_${name}`;
|
|
2445
|
-
|
|
2446
|
-
answersMap[answerKey] = answerValue;
|
|
2548
|
+
answersMap[answerKey] = createAnswerValue$1(value);
|
|
2447
2549
|
});
|
|
2448
2550
|
return { [campaignId]: {
|
|
2449
2551
|
questions,
|
|
@@ -2458,8 +2560,7 @@ function formDataToIdentifyEventValues$1(formData$1) {
|
|
|
2458
2560
|
}
|
|
2459
2561
|
/** @internal */
|
|
2460
2562
|
function submit() {
|
|
2461
|
-
const
|
|
2462
|
-
const campaignId = systemConfig.campaignId;
|
|
2563
|
+
const campaignId = getSystem().campaignId;
|
|
2463
2564
|
if (campaignId) {
|
|
2464
2565
|
const formData$1 = get(formData);
|
|
2465
2566
|
const identifyFormData$1 = get(identifyFormData);
|
|
@@ -2533,8 +2634,7 @@ function removeAnswer(questionId) {
|
|
|
2533
2634
|
* @public
|
|
2534
2635
|
*/
|
|
2535
2636
|
function getAnsweredQuestion(questionId) {
|
|
2536
|
-
const
|
|
2537
|
-
const valueState = formData$1[questionId];
|
|
2637
|
+
const valueState = get(formData)[questionId];
|
|
2538
2638
|
if (valueState) return createAnswerValue$1(valueState.value);
|
|
2539
2639
|
}
|
|
2540
2640
|
/**
|
|
@@ -2576,8 +2676,7 @@ function sendAnswers() {
|
|
|
2576
2676
|
|
|
2577
2677
|
//#endregion
|
|
2578
2678
|
//#region src/widget.ts
|
|
2579
|
-
var widget_exports = {
|
|
2580
|
-
__export(widget_exports, {
|
|
2679
|
+
var widget_exports = /* @__PURE__ */ __export({
|
|
2581
2680
|
collection: () => collection$1,
|
|
2582
2681
|
getState: () => getState$1,
|
|
2583
2682
|
getVal: () => getVal,
|
|
@@ -2637,8 +2736,7 @@ function setVal(name, value) {
|
|
|
2637
2736
|
* @public
|
|
2638
2737
|
*/
|
|
2639
2738
|
function getVal(name) {
|
|
2640
|
-
|
|
2641
|
-
return cv[name];
|
|
2739
|
+
return getVariables()[name];
|
|
2642
2740
|
}
|
|
2643
2741
|
/**
|
|
2644
2742
|
* 変数が変更されたときに実行されるコールバック関数を設定する
|
|
@@ -2703,8 +2801,7 @@ function on(name, callback$5) {
|
|
|
2703
2801
|
* @public
|
|
2704
2802
|
*/
|
|
2705
2803
|
function setState$1(stateId) {
|
|
2706
|
-
|
|
2707
|
-
if (stateIds.includes(stateId)) return;
|
|
2804
|
+
if (getStates().includes(stateId)) return;
|
|
2708
2805
|
setState(stateId);
|
|
2709
2806
|
}
|
|
2710
2807
|
/**
|
|
@@ -2776,8 +2873,7 @@ function getLocalStore(key) {
|
|
|
2776
2873
|
return;
|
|
2777
2874
|
}
|
|
2778
2875
|
if (item.val === void 0) return;
|
|
2779
|
-
|
|
2780
|
-
if (now - item.last > item.expire) {
|
|
2876
|
+
if ((/* @__PURE__ */ new Date()).getTime() - item.last > item.expire) {
|
|
2781
2877
|
localStorage.removeItem(lsKey);
|
|
2782
2878
|
return;
|
|
2783
2879
|
}
|
|
@@ -2894,15 +2990,13 @@ const formSubmittedIdentifyValues = writable({});
|
|
|
2894
2990
|
* @public
|
|
2895
2991
|
*/
|
|
2896
2992
|
const getFormFieldSchema = (name) => {
|
|
2897
|
-
|
|
2898
|
-
return store.schemas.find((v) => v.name === name) ?? void 0;
|
|
2993
|
+
return get(formStore).schemas.find((v) => v.name === name) ?? void 0;
|
|
2899
2994
|
};
|
|
2900
2995
|
/**
|
|
2901
2996
|
* @public
|
|
2902
2997
|
*/
|
|
2903
2998
|
const getFormFieldState = (name) => {
|
|
2904
|
-
|
|
2905
|
-
return store.states[name] ?? void 0;
|
|
2999
|
+
return get(formStore).states[name] ?? void 0;
|
|
2906
3000
|
};
|
|
2907
3001
|
/**
|
|
2908
3002
|
* @public
|
|
@@ -3146,8 +3240,7 @@ function formDataToIdentifyEventValues(values) {
|
|
|
3146
3240
|
* @public
|
|
3147
3241
|
*/
|
|
3148
3242
|
function onSubmitForm(fn) {
|
|
3149
|
-
const
|
|
3150
|
-
const campaignId = systemConfig.campaignId;
|
|
3243
|
+
const campaignId = getSystem().campaignId;
|
|
3151
3244
|
if (campaignId) {
|
|
3152
3245
|
let hasInvalid = false;
|
|
3153
3246
|
const formData$1 = get(formStore);
|
|
@@ -3200,7 +3293,7 @@ function onSubmitForm(fn) {
|
|
|
3200
3293
|
|
|
3201
3294
|
//#endregion
|
|
3202
3295
|
//#region src/components-flex/state/Header.svelte
|
|
3203
|
-
var root_2$
|
|
3296
|
+
var root_2$11 = $.template(`<link type="text/css" rel="stylesheet">`);
|
|
3204
3297
|
function Header($$anchor, $$props) {
|
|
3205
3298
|
$.push($$props, false);
|
|
3206
3299
|
const [$$stores, $$cleanup] = $.setup_stores();
|
|
@@ -3219,7 +3312,7 @@ function Header($$anchor, $$props) {
|
|
|
3219
3312
|
var fragment = $.comment();
|
|
3220
3313
|
var node = $.first_child(fragment);
|
|
3221
3314
|
var consequent = ($$anchor$2) => {
|
|
3222
|
-
var link = root_2$
|
|
3315
|
+
var link = root_2$11();
|
|
3223
3316
|
$.template_effect(() => $.set_attribute(link, "href", $.get(googleFontUrl)));
|
|
3224
3317
|
$.append($$anchor$2, link);
|
|
3225
3318
|
};
|
|
@@ -3276,19 +3369,94 @@ const useBrandKit = () => {
|
|
|
3276
3369
|
return { brandKit: getContext("brandKit") || getBrandKit() };
|
|
3277
3370
|
};
|
|
3278
3371
|
|
|
3372
|
+
//#endregion
|
|
3373
|
+
//#region src/components-flex/css.ts
|
|
3374
|
+
function createComponentRawCss(layerId, define) {
|
|
3375
|
+
const rootSelector = `[data-layer-id="${layerId}"]`;
|
|
3376
|
+
const gen = (selector, styles) => {
|
|
3377
|
+
const childSelector = selector.startsWith("&") ? selector.slice(1) : ` ${selector}`;
|
|
3378
|
+
const body = Object.entries(styles).map(([k, v]) => {
|
|
3379
|
+
if (!v) return "";
|
|
3380
|
+
return `${k.replace(/[A-Z]/g, (m) => "-" + m.toLowerCase())}: ${v};`;
|
|
3381
|
+
}).filter((v) => v !== "").join("\n");
|
|
3382
|
+
return `${rootSelector}${childSelector} {\n${body}\n}`;
|
|
3383
|
+
};
|
|
3384
|
+
return define(gen).join("\n");
|
|
3385
|
+
}
|
|
3386
|
+
function toResponsiveSelector(responsiveSetting, body) {
|
|
3387
|
+
const { mediaQueryCondition, userAgentCondition } = responsiveSetting;
|
|
3388
|
+
if (mediaQueryCondition) {
|
|
3389
|
+
const { raw, range, orientation } = mediaQueryCondition;
|
|
3390
|
+
const prefix = `@media screen and`;
|
|
3391
|
+
if (raw) return `${prefix} (${raw}) {\n${body}\n}`;
|
|
3392
|
+
const orientationStyle = orientation ? ` and (orientation: ${orientation})` : "";
|
|
3393
|
+
if (range) {
|
|
3394
|
+
if (range.min && range.max) return `${prefix} (min-width: ${range.min}px)${orientationStyle} and (max-width: ${range.max}) {\n${body}\n}`;
|
|
3395
|
+
else if (range.max) return `${prefix} (max-width: ${range.max}px)${orientationStyle} {\n${body}\n}`;
|
|
3396
|
+
else if (range.min) return `${prefix} (min-width: ${range.min}px)${orientationStyle} {\n${body}\n}`;
|
|
3397
|
+
}
|
|
3398
|
+
return "";
|
|
3399
|
+
} else if (userAgentCondition) return "";
|
|
3400
|
+
return "";
|
|
3401
|
+
}
|
|
3402
|
+
function toStyleTag(css) {
|
|
3403
|
+
return `<style>${css}</style>`;
|
|
3404
|
+
}
|
|
3405
|
+
|
|
3406
|
+
//#endregion
|
|
3407
|
+
//#region src/components-flex/shared/StylePortal.svelte
|
|
3408
|
+
function StylePortal($$anchor, $$props) {
|
|
3409
|
+
$.push($$props, false);
|
|
3410
|
+
let cssText = $.prop($$props, "cssText", 8, "");
|
|
3411
|
+
const actionRoot = getActionRoot();
|
|
3412
|
+
const isShadowRoot = !!actionRoot && actionRoot instanceof ShadowRoot;
|
|
3413
|
+
onMount$1(() => {
|
|
3414
|
+
if (isShadowRoot) {
|
|
3415
|
+
const style = document.createElement("style");
|
|
3416
|
+
style.textContent = cssText();
|
|
3417
|
+
actionRoot.appendChild(style);
|
|
3418
|
+
return () => style.remove();
|
|
3419
|
+
}
|
|
3420
|
+
});
|
|
3421
|
+
$.init();
|
|
3422
|
+
var fragment = $.comment();
|
|
3423
|
+
var node = $.first_child(fragment);
|
|
3424
|
+
var consequent = ($$anchor$1) => {
|
|
3425
|
+
var fragment_1 = $.comment();
|
|
3426
|
+
var node_1 = $.first_child(fragment_1);
|
|
3427
|
+
$.html(node_1, () => toStyleTag(cssText()), false, false);
|
|
3428
|
+
$.append($$anchor$1, fragment_1);
|
|
3429
|
+
};
|
|
3430
|
+
$.if(node, ($$render) => {
|
|
3431
|
+
if (!isShadowRoot) $$render(consequent);
|
|
3432
|
+
});
|
|
3433
|
+
$.append($$anchor, fragment);
|
|
3434
|
+
$.pop();
|
|
3435
|
+
}
|
|
3436
|
+
|
|
3279
3437
|
//#endregion
|
|
3280
3438
|
//#region src/components-flex/state/State.svelte
|
|
3281
|
-
var root$
|
|
3439
|
+
var root$55 = $.template(`<!> <!> <!>`, 1);
|
|
3282
3440
|
function State($$anchor, $$props) {
|
|
3283
3441
|
$.push($$props, false);
|
|
3284
3442
|
let customBrandKit = $.prop($$props, "customBrandKit", 8, void 0);
|
|
3443
|
+
let globalCssCode = $.prop($$props, "globalCssCode", 8, void 0);
|
|
3285
3444
|
setContext("brandKit", getBrandKit(customBrandKit()));
|
|
3286
3445
|
$.init();
|
|
3287
|
-
var fragment = root$
|
|
3446
|
+
var fragment = root$55();
|
|
3288
3447
|
var node = $.first_child(fragment);
|
|
3289
|
-
|
|
3448
|
+
var consequent = ($$anchor$1) => {
|
|
3449
|
+
StylePortal($$anchor$1, { get cssText() {
|
|
3450
|
+
return globalCssCode();
|
|
3451
|
+
} });
|
|
3452
|
+
};
|
|
3453
|
+
$.if(node, ($$render) => {
|
|
3454
|
+
if (globalCssCode()) $$render(consequent);
|
|
3455
|
+
});
|
|
3290
3456
|
var node_1 = $.sibling(node, 2);
|
|
3291
|
-
|
|
3457
|
+
Header(node_1, {});
|
|
3458
|
+
var node_2 = $.sibling(node_1, 2);
|
|
3459
|
+
$.slot(node_2, $$props, "default", {}, null);
|
|
3292
3460
|
$.append($$anchor, fragment);
|
|
3293
3461
|
$.pop();
|
|
3294
3462
|
}
|
|
@@ -3297,19 +3465,20 @@ function State($$anchor, $$props) {
|
|
|
3297
3465
|
//#region src/components-flex/state/StateItem.svelte
|
|
3298
3466
|
const STATE_ITEM_CONTEXT_KEY = Symbol();
|
|
3299
3467
|
var root_1$15 = $.template(`<div class="state-item svelte-2qb6dm"></div> <!>`, 1);
|
|
3300
|
-
const $$css$
|
|
3468
|
+
const $$css$26 = {
|
|
3301
3469
|
hash: "svelte-2qb6dm",
|
|
3302
3470
|
code: ".state-item.svelte-2qb6dm {position:absolute;display:none;}"
|
|
3303
3471
|
};
|
|
3304
3472
|
function StateItem($$anchor, $$props) {
|
|
3305
3473
|
$.push($$props, false);
|
|
3306
|
-
$.append_styles($$anchor, $$css$
|
|
3474
|
+
$.append_styles($$anchor, $$css$26);
|
|
3307
3475
|
const [$$stores, $$cleanup] = $.setup_stores();
|
|
3308
3476
|
const $state = () => $.store_get(state, "$state", $$stores);
|
|
3309
3477
|
let path = $.prop($$props, "path", 8);
|
|
3478
|
+
let name = $.prop($$props, "name", 8, "");
|
|
3310
3479
|
setContext(STATE_ITEM_CONTEXT_KEY, { path: path() });
|
|
3311
|
-
$.legacy_pre_effect(() => $.deep_read_state(path()), () => {
|
|
3312
|
-
addState(path());
|
|
3480
|
+
$.legacy_pre_effect(() => ($.deep_read_state(path()), $.deep_read_state(name())), () => {
|
|
3481
|
+
addState(path(), name());
|
|
3313
3482
|
});
|
|
3314
3483
|
$.legacy_pre_effect_reset();
|
|
3315
3484
|
$.init();
|
|
@@ -3343,353 +3512,144 @@ const ROUND_VARIANT = {
|
|
|
3343
3512
|
};
|
|
3344
3513
|
|
|
3345
3514
|
//#endregion
|
|
3346
|
-
//#region src/components-flex/
|
|
3347
|
-
const
|
|
3348
|
-
|
|
3349
|
-
|
|
3350
|
-
|
|
3351
|
-
|
|
3352
|
-
|
|
3353
|
-
}
|
|
3354
|
-
|
|
3355
|
-
|
|
3356
|
-
|
|
3357
|
-
|
|
3358
|
-
}
|
|
3359
|
-
|
|
3360
|
-
|
|
3361
|
-
|
|
3362
|
-
};
|
|
3515
|
+
//#region src/components-flex/responsive.ts
|
|
3516
|
+
const USER_AGENT_VARIANT = {
|
|
3517
|
+
smartphone: { regex: /iPhone|Android.*Mobile/i },
|
|
3518
|
+
tablet: { regex: /iPad|Android(?!.*Mobile)/i },
|
|
3519
|
+
pc: { regex: /Windows NT|Macintosh|Linux x86_64/i },
|
|
3520
|
+
windows: { regex: /Windows NT/i },
|
|
3521
|
+
mac: { regex: /Macintosh|Mac OS X/i },
|
|
3522
|
+
ios: { regex: /iPhone|iPad|iPod/i },
|
|
3523
|
+
android: { regex: /Android/i },
|
|
3524
|
+
safari: { regex: /Safari/i },
|
|
3525
|
+
chrome: { regex: /Chrome|CriOS/i },
|
|
3526
|
+
firefox: { regex: /Firefox/i },
|
|
3527
|
+
ios_webview: { regex: /iPhone|iPad|iPod/i },
|
|
3528
|
+
android_webview: { regex: /; wv\)/i }
|
|
3529
|
+
};
|
|
3530
|
+
const isMatchMediaQueryCondition = (condition) => {
|
|
3531
|
+
const { raw, range, orientation } = condition;
|
|
3532
|
+
if (orientation) return window.matchMedia(`(orientation: ${condition.orientation})`).matches;
|
|
3533
|
+
if (range) {
|
|
3534
|
+
const { min, max } = range;
|
|
3535
|
+
if (typeof min === "number" && typeof max === "number") return window.matchMedia(`(min-width: ${min}px) and (max-width: ${max}px)`).matches;
|
|
3536
|
+
else if (typeof min === "number") return window.matchMedia(`(min-width: ${min}px)`).matches;
|
|
3537
|
+
else if (typeof max === "number") return window.matchMedia(`(max-width: ${max}px)`).matches;
|
|
3538
|
+
}
|
|
3539
|
+
if (raw) return window.matchMedia(raw).matches;
|
|
3540
|
+
return false;
|
|
3541
|
+
};
|
|
3542
|
+
const isMatchUserAgentCondition = (condition) => {
|
|
3543
|
+
const { variants, regex } = condition;
|
|
3544
|
+
if (variants) return variants.some((variant) => {
|
|
3545
|
+
const regex$1 = USER_AGENT_VARIANT[variant]?.regex;
|
|
3546
|
+
if (!regex$1) return false;
|
|
3547
|
+
return new RegExp(regex$1).test(navigator.userAgent);
|
|
3548
|
+
});
|
|
3549
|
+
else if (regex) return new RegExp(regex).test(navigator.userAgent);
|
|
3550
|
+
return false;
|
|
3551
|
+
};
|
|
3552
|
+
const isMatchResponsiveSetting = (setting) => {
|
|
3553
|
+
const { mediaQueryCondition, userAgentCondition } = setting;
|
|
3554
|
+
if (mediaQueryCondition) return isMatchMediaQueryCondition(mediaQueryCondition);
|
|
3555
|
+
else if (userAgentCondition) return isMatchUserAgentCondition(userAgentCondition);
|
|
3556
|
+
else return false;
|
|
3557
|
+
};
|
|
3558
|
+
function useResponsiveProps(props) {
|
|
3559
|
+
return readable(props, (set) => {
|
|
3560
|
+
if (!props.responsiveSettings) {
|
|
3561
|
+
set(props);
|
|
3562
|
+
return () => {};
|
|
3563
|
+
}
|
|
3564
|
+
const update = () => {
|
|
3565
|
+
const matchedSetting = [...props.responsiveSettings ?? []].reverse().find(isMatchResponsiveSetting);
|
|
3566
|
+
if (matchedSetting) set(Object.assign({}, props, matchedSetting.props ?? {}));
|
|
3567
|
+
else set(props);
|
|
3568
|
+
};
|
|
3569
|
+
update();
|
|
3570
|
+
window.addEventListener("resize", update);
|
|
3571
|
+
window.addEventListener("orientationchange", update);
|
|
3572
|
+
return () => {
|
|
3573
|
+
window.removeEventListener("resize", update);
|
|
3574
|
+
window.removeEventListener("orientationchange", update);
|
|
3575
|
+
};
|
|
3576
|
+
});
|
|
3577
|
+
}
|
|
3363
3578
|
|
|
3364
3579
|
//#endregion
|
|
3365
|
-
//#region src/
|
|
3366
|
-
|
|
3367
|
-
|
|
3368
|
-
|
|
3369
|
-
|
|
3580
|
+
//#region src/functions.ts
|
|
3581
|
+
function _moveTo(to) {
|
|
3582
|
+
const currentState = getState();
|
|
3583
|
+
dispatchActionEvent(ACTION_CHANGE_STATE_EVENT, { detail: {
|
|
3584
|
+
from: currentState,
|
|
3585
|
+
to,
|
|
3586
|
+
actionId
|
|
3587
|
+
} });
|
|
3588
|
+
}
|
|
3589
|
+
/** @internal */
|
|
3590
|
+
const moveTo = (to) => () => {
|
|
3591
|
+
_moveTo(to);
|
|
3370
3592
|
};
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
|
|
3593
|
+
/** @internal */
|
|
3594
|
+
const linkTo = (to, targetBlank = true, decode = false, keepNativeActionViewed = false) => () => {
|
|
3595
|
+
const decodedTo = decode ? decodeURI(to) : to;
|
|
3596
|
+
const { target } = getActionRunnerContext() ?? {};
|
|
3597
|
+
async function sleep(ms) {
|
|
3598
|
+
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
3599
|
+
}
|
|
3600
|
+
async function _send() {
|
|
3601
|
+
send_event("message_click", {
|
|
3602
|
+
url: decodedTo,
|
|
3603
|
+
state: getState()
|
|
3604
|
+
});
|
|
3605
|
+
await sleep(450);
|
|
3606
|
+
}
|
|
3607
|
+
let doTransitionByLocation = true;
|
|
3608
|
+
const execAnchorClick = (href, blank) => {
|
|
3609
|
+
const anchor = document.createElement("a");
|
|
3610
|
+
anchor.style.position = "fixed";
|
|
3611
|
+
anchor.style.visibility = "hidden";
|
|
3612
|
+
anchor.href = href;
|
|
3613
|
+
if (blank) anchor.target = "_blank";
|
|
3614
|
+
document.body.appendChild(anchor);
|
|
3615
|
+
anchor.click();
|
|
3616
|
+
anchor.remove();
|
|
3617
|
+
};
|
|
3618
|
+
if (target === "native" && targetBlank && keepNativeActionViewed) {
|
|
3619
|
+
const win = window;
|
|
3620
|
+
const nativeMessageName = "open_url";
|
|
3621
|
+
const nativeMessageData = {
|
|
3622
|
+
url: decodedTo,
|
|
3623
|
+
target: "_blank"
|
|
3624
|
+
};
|
|
3625
|
+
win.NativeBridge?.onReceivedMessage(nativeMessageName, JSON.stringify(nativeMessageData));
|
|
3626
|
+
win.webkit?.messageHandlers[nativeMessageName]?.postMessage(nativeMessageData);
|
|
3627
|
+
doTransitionByLocation = false;
|
|
3628
|
+
}
|
|
3629
|
+
Promise.race([_send(), sleep(650)]).then(() => {
|
|
3630
|
+
if (doTransitionByLocation) execAnchorClick(decodedTo, targetBlank);
|
|
3631
|
+
});
|
|
3377
3632
|
};
|
|
3378
|
-
|
|
3379
|
-
|
|
3380
|
-
|
|
3381
|
-
const toVariantArray = (group) => {
|
|
3382
|
-
return Object.keys(group).map((key) => ({
|
|
3383
|
-
...group[key],
|
|
3384
|
-
code: key
|
|
3385
|
-
}));
|
|
3633
|
+
/** @internal */
|
|
3634
|
+
const closeApp = (trigger) => () => {
|
|
3635
|
+
dispatchActionEvent(ACTION_CLOSE_EVENT, { detail: { trigger } });
|
|
3386
3636
|
};
|
|
3387
|
-
|
|
3388
|
-
|
|
3389
|
-
|
|
3390
|
-
|
|
3391
|
-
|
|
3392
|
-
|
|
3393
|
-
|
|
3394
|
-
|
|
3395
|
-
description: "一眼レフ、フィルムカメラ",
|
|
3396
|
-
getProps: () => ({ aspect: "3 / 2" })
|
|
3397
|
-
},
|
|
3398
|
-
movie_old_hr: {
|
|
3399
|
-
name: "4:3",
|
|
3400
|
-
description: "iPhoneカメラ、デジカメ",
|
|
3401
|
-
getProps: () => ({ aspect: "4 / 3" })
|
|
3402
|
-
},
|
|
3403
|
-
og_image: {
|
|
3404
|
-
name: "1.91:1",
|
|
3405
|
-
description: "SNSのOG画像、横長バナー",
|
|
3406
|
-
getProps: () => ({ aspect: "1.91 / 1" })
|
|
3407
|
-
},
|
|
3408
|
-
movie_hr: {
|
|
3409
|
-
name: "16:9",
|
|
3410
|
-
getProps: () => ({ aspect: "16 / 9" }),
|
|
3411
|
-
description: "Youtube、TV、横長バナー"
|
|
3412
|
-
},
|
|
3413
|
-
movie_old_vt: {
|
|
3414
|
-
name: "3:4",
|
|
3415
|
-
description: "iPhoneカメラ、デジカメ (タテ)",
|
|
3416
|
-
getProps: () => ({ aspect: "3 / 4" })
|
|
3417
|
-
},
|
|
3418
|
-
movie_vt: {
|
|
3419
|
-
name: "9:16",
|
|
3420
|
-
description: "TikTok、Shortsなど縦型動画",
|
|
3421
|
-
getProps: () => ({ aspect: "9 / 16" })
|
|
3637
|
+
/** @internal */
|
|
3638
|
+
const runScript = (handlerName) => () => {
|
|
3639
|
+
const handler = getEventHandlers()[handlerName];
|
|
3640
|
+
if (!handler) return;
|
|
3641
|
+
try {
|
|
3642
|
+
handler();
|
|
3643
|
+
} catch (e) {
|
|
3644
|
+
console.warn("Failed to run custom handler", handlerName, e);
|
|
3422
3645
|
}
|
|
3423
3646
|
};
|
|
3424
|
-
|
|
3425
|
-
const
|
|
3426
|
-
|
|
3427
|
-
|
|
3428
|
-
|
|
3429
|
-
|
|
3430
|
-
type
|
|
3431
|
-
},
|
|
3432
|
-
getProps: () => ({ fontFamily: font })
|
|
3433
|
-
};
|
|
3434
|
-
};
|
|
3435
|
-
const FONT_FAMILY_VARIANT = {
|
|
3436
|
-
default: {
|
|
3437
|
-
name: `デフォルト`,
|
|
3438
|
-
meta: {
|
|
3439
|
-
type: "kaku",
|
|
3440
|
-
lang: "ja"
|
|
3441
|
-
},
|
|
3442
|
-
getProps: (brandKit) => ({ fontFamily: brandKit?.font_family ?? SYSTEM_FONT })
|
|
3443
|
-
},
|
|
3444
|
-
noto_sans_jp: createFontVariant("Noto Sans JP", "ja", "kaku"),
|
|
3445
|
-
sawarabi_gothic: createFontVariant("Sawarabi Gothic", "ja", "kaku"),
|
|
3446
|
-
zen_kaku_gothic: createFontVariant("Zen Kaku Gothic", "ja", "kaku"),
|
|
3447
|
-
biz_udp_gothic: createFontVariant("BIZ UDPGothic", "ja", "kaku"),
|
|
3448
|
-
open_sans: createFontVariant("Open Sans", "ja", "kaku"),
|
|
3449
|
-
sans_serif: createFontVariant("sans-serif", "ja", "kaku"),
|
|
3450
|
-
m_plus_1p: createFontVariant("M PLUS 1p", "ja", "maru"),
|
|
3451
|
-
m_plus_rounded_1c: createFontVariant("M PLUS Rounded 1c", "ja", "maru"),
|
|
3452
|
-
kiwi_maru: createFontVariant("Kiwi Maru", "ja", "maru"),
|
|
3453
|
-
zen_maru_gothic: createFontVariant("Zen Maru Gothic", "ja", "maru"),
|
|
3454
|
-
noto_serif_jp: createFontVariant("Noto Serif JP", "ja", "min"),
|
|
3455
|
-
shippori_micho: createFontVariant("Shippori Mincho", "ja", "min"),
|
|
3456
|
-
biz_udp_micho: createFontVariant("BIZ UDPMincho", "ja", "min"),
|
|
3457
|
-
serif: createFontVariant("serif", "ja", "min"),
|
|
3458
|
-
anton: createFontVariant("Anton", "en", "kaku"),
|
|
3459
|
-
barlow: createFontVariant("Barlow", "en", "kaku"),
|
|
3460
|
-
fraunces: createFontVariant("Fraunces", "en", "kaku"),
|
|
3461
|
-
inter: createFontVariant("Inter", "en", "kaku"),
|
|
3462
|
-
lato: createFontVariant("Lato", "en", "kaku"),
|
|
3463
|
-
lora: createFontVariant("Lora", "en", "kaku"),
|
|
3464
|
-
monospace: createFontVariant("monospace", "en", "kaku"),
|
|
3465
|
-
montserrat: createFontVariant("Montserrat", "en", "kaku"),
|
|
3466
|
-
outfit: createFontVariant("Outfit", "en", "kaku"),
|
|
3467
|
-
playfair_display: createFontVariant("Playfair Display", "en", "kaku"),
|
|
3468
|
-
poppins: createFontVariant("Poppins", "en", "kaku"),
|
|
3469
|
-
raleway: createFontVariant("Raleway", "en", "kaku"),
|
|
3470
|
-
roboto: createFontVariant("Roboto", "en", "kaku"),
|
|
3471
|
-
system_ui: createFontVariant("system-ui", "en", "kaku")
|
|
3472
|
-
};
|
|
3473
|
-
const FONT_FAMILY_VARIANTS = toVariantArray(FONT_FAMILY_VARIANT);
|
|
3474
|
-
const FONT_FAMILY_VARIANT_GROUPS = [
|
|
3475
|
-
{
|
|
3476
|
-
label: "日本語 / 角ゴシック",
|
|
3477
|
-
variants: FONT_FAMILY_VARIANTS.filter((v) => v.meta?.lang === "ja" && v.meta?.type === "kaku")
|
|
3478
|
-
},
|
|
3479
|
-
{
|
|
3480
|
-
label: "日本語 / 丸ゴシック",
|
|
3481
|
-
variants: FONT_FAMILY_VARIANTS.filter((v) => v.meta?.lang === "ja" && v.meta?.type === "maru")
|
|
3482
|
-
},
|
|
3483
|
-
{
|
|
3484
|
-
label: "日本語 / 明朝",
|
|
3485
|
-
variants: FONT_FAMILY_VARIANTS.filter((v) => v.meta?.lang === "ja" && v.meta?.type === "min")
|
|
3486
|
-
},
|
|
3487
|
-
{
|
|
3488
|
-
label: "英語",
|
|
3489
|
-
variants: FONT_FAMILY_VARIANTS.filter((v) => v.meta?.lang === "en")
|
|
3490
|
-
}
|
|
3491
|
-
];
|
|
3492
|
-
const SHADOW_VARIANT = {
|
|
3493
|
-
extra_small: {
|
|
3494
|
-
name: "エクストラスモール",
|
|
3495
|
-
getProps: () => ({ shadow: "0 1px 2px 0 rgba(0,0,0,0.1)" })
|
|
3496
|
-
},
|
|
3497
|
-
small: {
|
|
3498
|
-
name: "スモール",
|
|
3499
|
-
getProps: () => ({ shadow: "0 2px 4px 1px rgba(0,0,0,0.1)" })
|
|
3500
|
-
},
|
|
3501
|
-
medium: {
|
|
3502
|
-
name: "ミディアム",
|
|
3503
|
-
getProps: () => ({ shadow: "0px 4px 8px 2px rgba(0,0,0,0.1)" })
|
|
3504
|
-
},
|
|
3505
|
-
large: {
|
|
3506
|
-
name: "ラージ",
|
|
3507
|
-
getProps: () => ({ shadow: "0px 8px 16px 4px rgba(0,0,0,0.1)" })
|
|
3508
|
-
}
|
|
3509
|
-
};
|
|
3510
|
-
const SHADOW_VARIANTS = toVariantArray(SHADOW_VARIANT);
|
|
3511
|
-
const BACKGROUND_COLOR_VARIANT = {
|
|
3512
|
-
base: {
|
|
3513
|
-
name: "ホワイト",
|
|
3514
|
-
getProps: () => ({ backgroundColor: "#FFFFFF" })
|
|
3515
|
-
},
|
|
3516
|
-
dark: {
|
|
3517
|
-
name: "ブラック",
|
|
3518
|
-
getProps: () => ({ backgroundColor: "#000000" })
|
|
3519
|
-
},
|
|
3520
|
-
gray: {
|
|
3521
|
-
name: "グレー",
|
|
3522
|
-
getProps: () => ({ backgroundColor: "#ECECEC" })
|
|
3523
|
-
},
|
|
3524
|
-
brand: {
|
|
3525
|
-
name: "ブランド",
|
|
3526
|
-
getProps: (kit) => ({ backgroundColor: getBrandKit(kit).color_brand })
|
|
3527
|
-
},
|
|
3528
|
-
danger: {
|
|
3529
|
-
name: "デンジャー",
|
|
3530
|
-
getProps: (kit) => ({ backgroundColor: getBrandKit(kit).color_danger })
|
|
3531
|
-
}
|
|
3532
|
-
};
|
|
3533
|
-
const BACKGROUND_COLOR_VARIANTS = toVariantArray(BACKGROUND_COLOR_VARIANT);
|
|
3534
|
-
const BORDER_COLOR_VARIANT = {
|
|
3535
|
-
black: {
|
|
3536
|
-
name: "ブラック",
|
|
3537
|
-
getProps: () => ({ borderColor: "#000000" })
|
|
3538
|
-
},
|
|
3539
|
-
gray: {
|
|
3540
|
-
name: "グレー",
|
|
3541
|
-
getProps: () => ({ borderColor: "#DBDBDB" })
|
|
3542
|
-
},
|
|
3543
|
-
brand: {
|
|
3544
|
-
name: "ブランド",
|
|
3545
|
-
getProps: (kit) => ({ borderColor: getBrandKit(kit).color_brand })
|
|
3546
|
-
},
|
|
3547
|
-
danger: {
|
|
3548
|
-
name: "デンジャー",
|
|
3549
|
-
getProps: (kit) => ({ borderColor: getBrandKit(kit).color_danger })
|
|
3550
|
-
},
|
|
3551
|
-
base: {
|
|
3552
|
-
name: "ホワイト",
|
|
3553
|
-
getProps: () => ({ borderColor: "#FFFFFF" })
|
|
3554
|
-
}
|
|
3555
|
-
};
|
|
3556
|
-
const BORDER_COLOR_VARIANTS = toVariantArray(BORDER_COLOR_VARIANT);
|
|
3557
|
-
|
|
3558
|
-
//#endregion
|
|
3559
|
-
//#region src/components-flex/utils/prop-to-style.ts
|
|
3560
|
-
const toCssPosition = (p) => {
|
|
3561
|
-
return {
|
|
3562
|
-
position: p?.position ?? "static",
|
|
3563
|
-
top: p?.top,
|
|
3564
|
-
left: p?.left,
|
|
3565
|
-
bottom: p?.bottom,
|
|
3566
|
-
right: p?.right,
|
|
3567
|
-
transform: p?.transform
|
|
3568
|
-
};
|
|
3569
|
-
};
|
|
3570
|
-
const toCssCommon = (p) => {
|
|
3571
|
-
return { ...toCssPosition(p) };
|
|
3572
|
-
};
|
|
3573
|
-
const toCssBorder = (p, brandKit) => {
|
|
3574
|
-
const borderWidth = p?.borderTopWidth ?? p?.borderRightWidth ?? p?.borderLeftWidth ?? p?.borderBottomWidth ?? null;
|
|
3575
|
-
if (borderWidth === null) return {};
|
|
3576
|
-
const variant = BORDER_COLOR_VARIANT[p?.borderColorVariant];
|
|
3577
|
-
return {
|
|
3578
|
-
borderColor: p?.borderColor ?? variant?.getProps(brandKit)?.borderColor,
|
|
3579
|
-
borderStyle: "solid",
|
|
3580
|
-
borderTopWidth: p?.borderTopWidth,
|
|
3581
|
-
borderLeftWidth: p?.borderLeftWidth,
|
|
3582
|
-
borderRightWidth: p?.borderRightWidth,
|
|
3583
|
-
borderBottomWidth: p?.borderBottomWidth
|
|
3584
|
-
};
|
|
3585
|
-
};
|
|
3586
|
-
const toCssPadding = (p) => {
|
|
3587
|
-
return {
|
|
3588
|
-
paddingTop: p?.paddingTop,
|
|
3589
|
-
paddingLeft: p?.paddingLeft,
|
|
3590
|
-
paddingRight: p?.paddingRight,
|
|
3591
|
-
paddingBottom: p?.paddingBottom
|
|
3592
|
-
};
|
|
3593
|
-
};
|
|
3594
|
-
const toCssBackground = (p, brandKit) => {
|
|
3595
|
-
const url = p?.backgroundImageUrl;
|
|
3596
|
-
const variant = BACKGROUND_COLOR_VARIANT[p?.backgroundColorVariant];
|
|
3597
|
-
return {
|
|
3598
|
-
backgroundColor: p?.backgroundBlendColor ?? p?.backgroundColor ?? variant?.getProps(brandKit)?.backgroundColor,
|
|
3599
|
-
...url ? {
|
|
3600
|
-
backgroundSize: url ? p.backgroundSize ?? "cover" : void 0,
|
|
3601
|
-
backgroundImage: url ? `url(${url})` : void 0,
|
|
3602
|
-
backgroundPositionX: p?.backgroundPositionX ?? "center",
|
|
3603
|
-
backgroundPositionY: p?.backgroundPositionY ?? "center",
|
|
3604
|
-
backgroundBlendMode: p?.backgroundBlendMode,
|
|
3605
|
-
backgroundRepeat: "no-repeat"
|
|
3606
|
-
} : {}
|
|
3607
|
-
};
|
|
3608
|
-
};
|
|
3609
|
-
const toCssRadius = (p) => {
|
|
3610
|
-
return {
|
|
3611
|
-
borderTopLeftRadius: p?.borderTopLeftRadius,
|
|
3612
|
-
borderTopRightRadius: p?.borderTopRightRadius,
|
|
3613
|
-
borderBottomLeftRadius: p?.borderBottomLeftRadius,
|
|
3614
|
-
borderBottomRightRadius: p?.borderBottomRightRadius
|
|
3615
|
-
};
|
|
3616
|
-
};
|
|
3617
|
-
const toCssShadow = (p) => {
|
|
3618
|
-
const variant = SHADOW_VARIANT[p?.shadowVariant];
|
|
3619
|
-
return { boxShadow: p?.shadow ?? variant?.getProps()?.shadow };
|
|
3620
|
-
};
|
|
3621
|
-
const toCssOverflow = (p) => {
|
|
3622
|
-
return { overflow: p?.overflow };
|
|
3623
|
-
};
|
|
3624
|
-
|
|
3625
|
-
//#endregion
|
|
3626
|
-
//#region src/functions.ts
|
|
3627
|
-
function _moveTo(to) {
|
|
3628
|
-
const currentState = getState();
|
|
3629
|
-
window.dispatchEvent(new CustomEvent(ACTION_CHANGE_STATE_EVENT, { detail: {
|
|
3630
|
-
from: currentState,
|
|
3631
|
-
to,
|
|
3632
|
-
actionId
|
|
3633
|
-
} }));
|
|
3634
|
-
}
|
|
3635
|
-
/** @internal */
|
|
3636
|
-
const moveTo = (to) => () => {
|
|
3637
|
-
_moveTo(to);
|
|
3638
|
-
};
|
|
3639
|
-
/** @internal */
|
|
3640
|
-
const linkTo = (to, targetBlank = true, decode = false, keepNativeActionViewed = false) => () => {
|
|
3641
|
-
const decodedTo = decode ? decodeURI(to) : to;
|
|
3642
|
-
const { target } = getActionRunnerContext() ?? {};
|
|
3643
|
-
async function sleep(ms) {
|
|
3644
|
-
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
3645
|
-
}
|
|
3646
|
-
async function _send() {
|
|
3647
|
-
send_event("message_click", {
|
|
3648
|
-
url: decodedTo,
|
|
3649
|
-
state: getState()
|
|
3650
|
-
});
|
|
3651
|
-
await sleep(450);
|
|
3652
|
-
}
|
|
3653
|
-
let doTransitionByLocation = true;
|
|
3654
|
-
if (target === "native" && targetBlank && keepNativeActionViewed) {
|
|
3655
|
-
const win = window;
|
|
3656
|
-
const nativeMessageName = "open_url";
|
|
3657
|
-
const nativeMessageData = {
|
|
3658
|
-
url: decodedTo,
|
|
3659
|
-
target: "_blank"
|
|
3660
|
-
};
|
|
3661
|
-
win.NativeBridge?.onReceivedMessage(nativeMessageName, JSON.stringify(nativeMessageData));
|
|
3662
|
-
win.webkit?.messageHandlers[nativeMessageName]?.postMessage(nativeMessageData);
|
|
3663
|
-
doTransitionByLocation = false;
|
|
3664
|
-
} else if (target === "web" && targetBlank) {
|
|
3665
|
-
window.open(decodedTo, "_blank");
|
|
3666
|
-
doTransitionByLocation = false;
|
|
3667
|
-
}
|
|
3668
|
-
Promise.race([_send(), sleep(650)]).then(() => {
|
|
3669
|
-
if (doTransitionByLocation) location.href = decodedTo;
|
|
3670
|
-
});
|
|
3671
|
-
};
|
|
3672
|
-
/** @internal */
|
|
3673
|
-
const closeApp = (trigger) => () => {
|
|
3674
|
-
window.dispatchEvent(new CustomEvent(ACTION_CLOSE_EVENT, { detail: { trigger } }));
|
|
3675
|
-
};
|
|
3676
|
-
/** @internal */
|
|
3677
|
-
const runScript = (handlerName) => () => {
|
|
3678
|
-
const handlers = getEventHandlers();
|
|
3679
|
-
const handler = handlers[handlerName];
|
|
3680
|
-
if (!handler) return;
|
|
3681
|
-
try {
|
|
3682
|
-
handler();
|
|
3683
|
-
} catch (e) {
|
|
3684
|
-
console.warn("Failed to run custom handler", handlerName, e);
|
|
3685
|
-
}
|
|
3686
|
-
};
|
|
3687
|
-
/** @internal */
|
|
3688
|
-
const submitForm = (to) => () => {
|
|
3689
|
-
const { values, identifyValues } = submit();
|
|
3690
|
-
send_event("_answer_question", values);
|
|
3691
|
-
if (Object.keys(identifyValues ?? {}).length > 0) send_event("identify", identifyValues);
|
|
3692
|
-
_moveTo(to);
|
|
3647
|
+
/** @internal */
|
|
3648
|
+
const submitForm = (to) => () => {
|
|
3649
|
+
const { values, identifyValues } = submit();
|
|
3650
|
+
send_event("_answer_question", values);
|
|
3651
|
+
if (Object.keys(identifyValues ?? {}).length > 0) send_event("identify", identifyValues);
|
|
3652
|
+
_moveTo(to);
|
|
3693
3653
|
};
|
|
3694
3654
|
/** @internal */
|
|
3695
3655
|
const submitFormProgress = (to) => () => {
|
|
@@ -3715,6 +3675,42 @@ const submitFormFinal = (to) => () => {
|
|
|
3715
3675
|
});
|
|
3716
3676
|
};
|
|
3717
3677
|
/** @internal */
|
|
3678
|
+
const slideTo = (name, target, slideNumber, _hiddenIsDisabled) => () => {
|
|
3679
|
+
sliderStates.update((updater) => {
|
|
3680
|
+
if (!updater[name]) return;
|
|
3681
|
+
const state$1 = updater[name];
|
|
3682
|
+
const toIndex = (() => {
|
|
3683
|
+
if (target === "number") return typeof slideNumber === "number" ? slideNumber - 1 : 0;
|
|
3684
|
+
else if (target === "prev") return state$1.currentIndex - 1;
|
|
3685
|
+
else if (target === "next") return state$1.currentIndex + 1;
|
|
3686
|
+
else if (target === "first") return 0;
|
|
3687
|
+
else if (target === "end") return state$1.slides - 1;
|
|
3688
|
+
})();
|
|
3689
|
+
const is_next = (() => {
|
|
3690
|
+
if (state$1.loop && state$1.currentIndex === state$1.slides - 1 && toIndex === 0) return true;
|
|
3691
|
+
return toIndex > state$1.currentIndex;
|
|
3692
|
+
})();
|
|
3693
|
+
const is_prev = (() => {
|
|
3694
|
+
if (state$1.loop && state$1.currentIndex === 0 && toIndex === state$1.slides - 1) return true;
|
|
3695
|
+
return toIndex < state$1.currentIndex;
|
|
3696
|
+
})();
|
|
3697
|
+
const slide_no = toIndex + 1;
|
|
3698
|
+
const is_finished = toIndex === state$1.slides - 1;
|
|
3699
|
+
if (state$1.loop || toIndex <= state$1.slides - 1 && toIndex >= 0 && toIndex !== state$1.currentIndex) {
|
|
3700
|
+
updater[name].currentIndex = toIndex < 0 ? state$1.slides - 1 : toIndex > state$1.slides - 1 ? 0 : toIndex;
|
|
3701
|
+
send_event("_slide_to", {
|
|
3702
|
+
name,
|
|
3703
|
+
is_next,
|
|
3704
|
+
is_prev,
|
|
3705
|
+
slide_no,
|
|
3706
|
+
is_finished,
|
|
3707
|
+
slide_count: state$1.slides
|
|
3708
|
+
});
|
|
3709
|
+
}
|
|
3710
|
+
return updater;
|
|
3711
|
+
});
|
|
3712
|
+
};
|
|
3713
|
+
/** @internal */
|
|
3718
3714
|
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) => () => {
|
|
3719
3715
|
const options = {
|
|
3720
3716
|
hide_launcher,
|
|
@@ -3745,6 +3741,7 @@ const execOnClickOperation = (onClickOperation) => {
|
|
|
3745
3741
|
else if (onClickOperation.operation === "submitFormFinal") submitFormFinal(onClickOperation.args[0])();
|
|
3746
3742
|
else if (onClickOperation.operation === "submitFormProgress") submitFormProgress(onClickOperation.args[0])();
|
|
3747
3743
|
else if (onClickOperation.operation === "bootChat") bootChat(...onClickOperation.args)();
|
|
3744
|
+
else if (onClickOperation.operation === "slideTo") slideTo(...onClickOperation.args)();
|
|
3748
3745
|
};
|
|
3749
3746
|
function getAnimation(animation) {
|
|
3750
3747
|
switch (animation.type) {
|
|
@@ -3803,7 +3800,7 @@ const EASING = {
|
|
|
3803
3800
|
*
|
|
3804
3801
|
* @internal
|
|
3805
3802
|
*/
|
|
3806
|
-
function customAnimation(
|
|
3803
|
+
function customAnimation(_node, { transforms, animationStyle, delay = 0, duration = 1e3 }) {
|
|
3807
3804
|
if (!isOnSite()) return {};
|
|
3808
3805
|
let [x, y] = [0, 0];
|
|
3809
3806
|
for (const { query, x: tx, y: ty } of transforms) if (query == null || window.matchMedia(query).matches) {
|
|
@@ -3811,93 +3808,338 @@ function customAnimation(node, { transforms, animationStyle, delay = 0, duration
|
|
|
3811
3808
|
y = ty;
|
|
3812
3809
|
break;
|
|
3813
3810
|
}
|
|
3814
|
-
return {
|
|
3815
|
-
delay,
|
|
3816
|
-
duration,
|
|
3817
|
-
easing: EASING[animationStyle],
|
|
3818
|
-
css: (progress) => getAnimation({
|
|
3819
|
-
type: animationStyle,
|
|
3820
|
-
x,
|
|
3821
|
-
y,
|
|
3822
|
-
progress
|
|
3823
|
-
})
|
|
3824
|
-
};
|
|
3825
|
-
}
|
|
3811
|
+
return {
|
|
3812
|
+
delay,
|
|
3813
|
+
duration,
|
|
3814
|
+
easing: EASING[animationStyle],
|
|
3815
|
+
css: (progress) => getAnimation({
|
|
3816
|
+
type: animationStyle,
|
|
3817
|
+
x,
|
|
3818
|
+
y,
|
|
3819
|
+
progress
|
|
3820
|
+
})
|
|
3821
|
+
};
|
|
3822
|
+
}
|
|
3823
|
+
|
|
3824
|
+
//#endregion
|
|
3825
|
+
//#region src/hooks/useClickable.ts
|
|
3826
|
+
function useClickable(props = {}) {
|
|
3827
|
+
const getHref = (onClick) => {
|
|
3828
|
+
if (!onClick) return void 0;
|
|
3829
|
+
if (onClick.operation === "callNativeFunction") return String(onClick.args[0]);
|
|
3830
|
+
if (onClick.operation === "linkTo") {
|
|
3831
|
+
const href = String(onClick.args[0]) || "";
|
|
3832
|
+
return onClick.args[2] ?? false ? decodeURI(href) : href;
|
|
3833
|
+
}
|
|
3834
|
+
};
|
|
3835
|
+
const getTarget = (onClick) => {
|
|
3836
|
+
if (!onClick) return void 0;
|
|
3837
|
+
if (onClick.operation !== "linkTo") return void 0;
|
|
3838
|
+
return onClick.args[1] ? "_blank" : void 0;
|
|
3839
|
+
};
|
|
3840
|
+
function handleClick(e, { onClick, eventValue, eventName }, disabled) {
|
|
3841
|
+
if (!onClick || onClick.operation === "none") return;
|
|
3842
|
+
e.stopPropagation();
|
|
3843
|
+
e.preventDefault();
|
|
3844
|
+
if (disabled) return;
|
|
3845
|
+
if (eventName) send_event(eventName, eventValue);
|
|
3846
|
+
execOnClickOperation(onClick);
|
|
3847
|
+
}
|
|
3848
|
+
function getFixedElement({ onClick, element }) {
|
|
3849
|
+
if (!onClick) return element ?? "div";
|
|
3850
|
+
switch (onClick.operation) {
|
|
3851
|
+
case "linkTo":
|
|
3852
|
+
case "callNativeFunction": return "a";
|
|
3853
|
+
case "none": return element;
|
|
3854
|
+
default: return "button";
|
|
3855
|
+
}
|
|
3856
|
+
}
|
|
3857
|
+
const defaultValue = {
|
|
3858
|
+
element: getFixedElement(props),
|
|
3859
|
+
attributes: {
|
|
3860
|
+
href: getHref(props.onClick),
|
|
3861
|
+
target: getTarget(props.onClick),
|
|
3862
|
+
"data-clickable": props.onClick !== void 0 && props.onClick.operation !== "none",
|
|
3863
|
+
disabled: false,
|
|
3864
|
+
"aria-disabled": false,
|
|
3865
|
+
"aria-hidden": false
|
|
3866
|
+
},
|
|
3867
|
+
handleClick: (e) => handleClick(e, props)
|
|
3868
|
+
};
|
|
3869
|
+
return readable(defaultValue, (set) => {
|
|
3870
|
+
let unsubscribe = null;
|
|
3871
|
+
if (props.onClick?.operation === "slideTo") {
|
|
3872
|
+
const [sliderId, sliderTarget, slideNumber, hiddenIsDisabled] = props.onClick.args;
|
|
3873
|
+
unsubscribe = sliderStates.subscribe(($states) => {
|
|
3874
|
+
const state$1 = $states[sliderId];
|
|
3875
|
+
if (!state$1 || state$1.loop) return;
|
|
3876
|
+
let nextDisabled = false;
|
|
3877
|
+
if (sliderTarget === "next") nextDisabled = state$1.currentIndex >= state$1.slides - 1;
|
|
3878
|
+
else if (sliderTarget === "prev") nextDisabled = state$1.currentIndex <= 0;
|
|
3879
|
+
else if (sliderTarget === "first") nextDisabled = state$1.currentIndex === 0;
|
|
3880
|
+
else if (sliderTarget === "end") nextDisabled = state$1.currentIndex >= state$1.slides - 1;
|
|
3881
|
+
else if (sliderTarget === "number" && typeof slideNumber !== "undefined") nextDisabled = state$1.currentIndex === slideNumber - 1;
|
|
3882
|
+
set(Object.assign({}, defaultValue, {
|
|
3883
|
+
attributes: {
|
|
3884
|
+
...defaultValue.attributes,
|
|
3885
|
+
disabled: nextDisabled,
|
|
3886
|
+
"aria-disabled": nextDisabled,
|
|
3887
|
+
"aria-hidden": hiddenIsDisabled && nextDisabled
|
|
3888
|
+
},
|
|
3889
|
+
handleClick: (e) => handleClick(e, props, nextDisabled)
|
|
3890
|
+
}));
|
|
3891
|
+
});
|
|
3892
|
+
}
|
|
3893
|
+
return () => {
|
|
3894
|
+
if (unsubscribe) unsubscribe();
|
|
3895
|
+
};
|
|
3896
|
+
});
|
|
3897
|
+
}
|
|
3898
|
+
var useClickable_default = useClickable;
|
|
3899
|
+
|
|
3900
|
+
//#endregion
|
|
3901
|
+
//#region src/components-flex/variants.ts
|
|
3902
|
+
const toVariantArray = (group) => {
|
|
3903
|
+
return Object.keys(group).map((key) => ({
|
|
3904
|
+
...group[key],
|
|
3905
|
+
code: key
|
|
3906
|
+
}));
|
|
3907
|
+
};
|
|
3908
|
+
const ASPECT_VARIANT = {
|
|
3909
|
+
square: {
|
|
3910
|
+
name: "1:1",
|
|
3911
|
+
description: "正方形の画角",
|
|
3912
|
+
getProps: () => ({ aspect: "1 / 1" })
|
|
3913
|
+
},
|
|
3914
|
+
photo_hr: {
|
|
3915
|
+
name: "3:2",
|
|
3916
|
+
description: "一眼レフ、フィルムカメラ",
|
|
3917
|
+
getProps: () => ({ aspect: "3 / 2" })
|
|
3918
|
+
},
|
|
3919
|
+
movie_old_hr: {
|
|
3920
|
+
name: "4:3",
|
|
3921
|
+
description: "iPhoneカメラ、デジカメ",
|
|
3922
|
+
getProps: () => ({ aspect: "4 / 3" })
|
|
3923
|
+
},
|
|
3924
|
+
og_image: {
|
|
3925
|
+
name: "1.91:1",
|
|
3926
|
+
description: "SNSのOG画像、横長バナー",
|
|
3927
|
+
getProps: () => ({ aspect: "1.91 / 1" })
|
|
3928
|
+
},
|
|
3929
|
+
movie_hr: {
|
|
3930
|
+
name: "16:9",
|
|
3931
|
+
getProps: () => ({ aspect: "16 / 9" }),
|
|
3932
|
+
description: "Youtube、TV、横長バナー"
|
|
3933
|
+
},
|
|
3934
|
+
movie_old_vt: {
|
|
3935
|
+
name: "3:4",
|
|
3936
|
+
description: "iPhoneカメラ、デジカメ (タテ)",
|
|
3937
|
+
getProps: () => ({ aspect: "3 / 4" })
|
|
3938
|
+
},
|
|
3939
|
+
movie_vt: {
|
|
3940
|
+
name: "9:16",
|
|
3941
|
+
description: "TikTok、Shortsなど縦型動画",
|
|
3942
|
+
getProps: () => ({ aspect: "9 / 16" })
|
|
3943
|
+
}
|
|
3944
|
+
};
|
|
3945
|
+
const ASPECT_VARIANTS = toVariantArray(ASPECT_VARIANT);
|
|
3946
|
+
const createFontVariant = (font, lang, type) => {
|
|
3947
|
+
return {
|
|
3948
|
+
name: font,
|
|
3949
|
+
meta: {
|
|
3950
|
+
lang,
|
|
3951
|
+
type
|
|
3952
|
+
},
|
|
3953
|
+
getProps: () => ({ fontFamily: font })
|
|
3954
|
+
};
|
|
3955
|
+
};
|
|
3956
|
+
const FONT_FAMILY_VARIANT = {
|
|
3957
|
+
default: {
|
|
3958
|
+
name: `デフォルト`,
|
|
3959
|
+
meta: {
|
|
3960
|
+
type: "kaku",
|
|
3961
|
+
lang: "ja"
|
|
3962
|
+
},
|
|
3963
|
+
getProps: (brandKit) => ({ fontFamily: brandKit?.font_family ?? SYSTEM_FONT })
|
|
3964
|
+
},
|
|
3965
|
+
noto_sans_jp: createFontVariant("Noto Sans JP", "ja", "kaku"),
|
|
3966
|
+
sawarabi_gothic: createFontVariant("Sawarabi Gothic", "ja", "kaku"),
|
|
3967
|
+
zen_kaku_gothic: createFontVariant("Zen Kaku Gothic", "ja", "kaku"),
|
|
3968
|
+
biz_udp_gothic: createFontVariant("BIZ UDPGothic", "ja", "kaku"),
|
|
3969
|
+
open_sans: createFontVariant("Open Sans", "ja", "kaku"),
|
|
3970
|
+
sans_serif: createFontVariant("sans-serif", "ja", "kaku"),
|
|
3971
|
+
m_plus_1p: createFontVariant("M PLUS 1p", "ja", "maru"),
|
|
3972
|
+
m_plus_rounded_1c: createFontVariant("M PLUS Rounded 1c", "ja", "maru"),
|
|
3973
|
+
kiwi_maru: createFontVariant("Kiwi Maru", "ja", "maru"),
|
|
3974
|
+
zen_maru_gothic: createFontVariant("Zen Maru Gothic", "ja", "maru"),
|
|
3975
|
+
noto_serif_jp: createFontVariant("Noto Serif JP", "ja", "min"),
|
|
3976
|
+
shippori_micho: createFontVariant("Shippori Mincho", "ja", "min"),
|
|
3977
|
+
biz_udp_micho: createFontVariant("BIZ UDPMincho", "ja", "min"),
|
|
3978
|
+
serif: createFontVariant("serif", "ja", "min"),
|
|
3979
|
+
anton: createFontVariant("Anton", "en", "kaku"),
|
|
3980
|
+
barlow: createFontVariant("Barlow", "en", "kaku"),
|
|
3981
|
+
fraunces: createFontVariant("Fraunces", "en", "kaku"),
|
|
3982
|
+
inter: createFontVariant("Inter", "en", "kaku"),
|
|
3983
|
+
lato: createFontVariant("Lato", "en", "kaku"),
|
|
3984
|
+
lora: createFontVariant("Lora", "en", "kaku"),
|
|
3985
|
+
monospace: createFontVariant("monospace", "en", "kaku"),
|
|
3986
|
+
montserrat: createFontVariant("Montserrat", "en", "kaku"),
|
|
3987
|
+
outfit: createFontVariant("Outfit", "en", "kaku"),
|
|
3988
|
+
playfair_display: createFontVariant("Playfair Display", "en", "kaku"),
|
|
3989
|
+
poppins: createFontVariant("Poppins", "en", "kaku"),
|
|
3990
|
+
raleway: createFontVariant("Raleway", "en", "kaku"),
|
|
3991
|
+
roboto: createFontVariant("Roboto", "en", "kaku"),
|
|
3992
|
+
system_ui: createFontVariant("system-ui", "en", "kaku")
|
|
3993
|
+
};
|
|
3994
|
+
const FONT_FAMILY_VARIANTS = toVariantArray(FONT_FAMILY_VARIANT);
|
|
3995
|
+
const FONT_FAMILY_VARIANT_GROUPS = [
|
|
3996
|
+
{
|
|
3997
|
+
label: "日本語 / 角ゴシック",
|
|
3998
|
+
variants: FONT_FAMILY_VARIANTS.filter((v) => v.meta?.lang === "ja" && v.meta?.type === "kaku")
|
|
3999
|
+
},
|
|
4000
|
+
{
|
|
4001
|
+
label: "日本語 / 丸ゴシック",
|
|
4002
|
+
variants: FONT_FAMILY_VARIANTS.filter((v) => v.meta?.lang === "ja" && v.meta?.type === "maru")
|
|
4003
|
+
},
|
|
4004
|
+
{
|
|
4005
|
+
label: "日本語 / 明朝",
|
|
4006
|
+
variants: FONT_FAMILY_VARIANTS.filter((v) => v.meta?.lang === "ja" && v.meta?.type === "min")
|
|
4007
|
+
},
|
|
4008
|
+
{
|
|
4009
|
+
label: "英語",
|
|
4010
|
+
variants: FONT_FAMILY_VARIANTS.filter((v) => v.meta?.lang === "en")
|
|
4011
|
+
}
|
|
4012
|
+
];
|
|
4013
|
+
const SHADOW_VARIANT = {
|
|
4014
|
+
extra_small: {
|
|
4015
|
+
name: "エクストラスモール",
|
|
4016
|
+
getProps: () => ({ shadow: "0 1px 2px 0 rgba(0,0,0,0.1)" })
|
|
4017
|
+
},
|
|
4018
|
+
small: {
|
|
4019
|
+
name: "スモール",
|
|
4020
|
+
getProps: () => ({ shadow: "0 2px 4px 1px rgba(0,0,0,0.1)" })
|
|
4021
|
+
},
|
|
4022
|
+
medium: {
|
|
4023
|
+
name: "ミディアム",
|
|
4024
|
+
getProps: () => ({ shadow: "0px 4px 8px 2px rgba(0,0,0,0.1)" })
|
|
4025
|
+
},
|
|
4026
|
+
large: {
|
|
4027
|
+
name: "ラージ",
|
|
4028
|
+
getProps: () => ({ shadow: "0px 8px 16px 4px rgba(0,0,0,0.1)" })
|
|
4029
|
+
}
|
|
4030
|
+
};
|
|
4031
|
+
const SHADOW_VARIANTS = toVariantArray(SHADOW_VARIANT);
|
|
4032
|
+
const BACKGROUND_COLOR_VARIANT = {
|
|
4033
|
+
base: {
|
|
4034
|
+
name: "ホワイト",
|
|
4035
|
+
getProps: () => ({ backgroundColor: "#FFFFFF" })
|
|
4036
|
+
},
|
|
4037
|
+
dark: {
|
|
4038
|
+
name: "ブラック",
|
|
4039
|
+
getProps: () => ({ backgroundColor: "#000000" })
|
|
4040
|
+
},
|
|
4041
|
+
gray: {
|
|
4042
|
+
name: "グレー",
|
|
4043
|
+
getProps: () => ({ backgroundColor: "#ECECEC" })
|
|
4044
|
+
},
|
|
4045
|
+
brand: {
|
|
4046
|
+
name: "ブランド",
|
|
4047
|
+
getProps: (kit) => ({ backgroundColor: getBrandKit(kit).color_brand })
|
|
4048
|
+
},
|
|
4049
|
+
danger: {
|
|
4050
|
+
name: "デンジャー",
|
|
4051
|
+
getProps: (kit) => ({ backgroundColor: getBrandKit(kit).color_danger })
|
|
4052
|
+
}
|
|
4053
|
+
};
|
|
4054
|
+
const BACKGROUND_COLOR_VARIANTS = toVariantArray(BACKGROUND_COLOR_VARIANT);
|
|
4055
|
+
const BORDER_COLOR_VARIANT = {
|
|
4056
|
+
black: {
|
|
4057
|
+
name: "ブラック",
|
|
4058
|
+
getProps: () => ({ borderColor: "#000000" })
|
|
4059
|
+
},
|
|
4060
|
+
gray: {
|
|
4061
|
+
name: "グレー",
|
|
4062
|
+
getProps: () => ({ borderColor: "#DBDBDB" })
|
|
4063
|
+
},
|
|
4064
|
+
brand: {
|
|
4065
|
+
name: "ブランド",
|
|
4066
|
+
getProps: (kit) => ({ borderColor: getBrandKit(kit).color_brand })
|
|
4067
|
+
},
|
|
4068
|
+
danger: {
|
|
4069
|
+
name: "デンジャー",
|
|
4070
|
+
getProps: (kit) => ({ borderColor: getBrandKit(kit).color_danger })
|
|
4071
|
+
},
|
|
4072
|
+
base: {
|
|
4073
|
+
name: "ホワイト",
|
|
4074
|
+
getProps: () => ({ borderColor: "#FFFFFF" })
|
|
4075
|
+
}
|
|
4076
|
+
};
|
|
4077
|
+
const BORDER_COLOR_VARIANTS = toVariantArray(BORDER_COLOR_VARIANT);
|
|
3826
4078
|
|
|
3827
4079
|
//#endregion
|
|
3828
|
-
//#region src/
|
|
3829
|
-
const
|
|
3830
|
-
|
|
3831
|
-
|
|
3832
|
-
|
|
3833
|
-
|
|
3834
|
-
|
|
3835
|
-
|
|
3836
|
-
|
|
3837
|
-
|
|
4080
|
+
//#region src/components-flex/utils/prop-to-style.ts
|
|
4081
|
+
const toCssPosition = (p) => {
|
|
4082
|
+
return {
|
|
4083
|
+
position: p?.position,
|
|
4084
|
+
top: p?.top,
|
|
4085
|
+
left: p?.left,
|
|
4086
|
+
bottom: p?.bottom,
|
|
4087
|
+
right: p?.right,
|
|
4088
|
+
transform: p?.transform
|
|
4089
|
+
};
|
|
3838
4090
|
};
|
|
3839
|
-
const
|
|
3840
|
-
|
|
3841
|
-
if (onClick.operation !== "linkTo") return void 0;
|
|
3842
|
-
return onClick.args[1] ? "_blank" : void 0;
|
|
4091
|
+
const toCssCommon = (p) => {
|
|
4092
|
+
return { ...toCssPosition(p) };
|
|
3843
4093
|
};
|
|
3844
|
-
const
|
|
3845
|
-
|
|
3846
|
-
|
|
3847
|
-
|
|
3848
|
-
|
|
3849
|
-
|
|
3850
|
-
|
|
3851
|
-
|
|
3852
|
-
|
|
3853
|
-
|
|
3854
|
-
const attributes = {
|
|
3855
|
-
href: getHref(onClick),
|
|
3856
|
-
target: getTarget(onClick),
|
|
3857
|
-
"data-clickable": onClick !== void 0 && onClick.operation !== "none"
|
|
4094
|
+
const toCssBorder = (p, brandKit) => {
|
|
4095
|
+
if ((p?.borderTopWidth ?? p?.borderRightWidth ?? p?.borderLeftWidth ?? p?.borderBottomWidth ?? null) === null) return {};
|
|
4096
|
+
const variant = BORDER_COLOR_VARIANT[p?.borderColorVariant];
|
|
4097
|
+
return {
|
|
4098
|
+
borderColor: p?.borderColor ?? variant?.getProps(brandKit)?.borderColor,
|
|
4099
|
+
borderStyle: "solid",
|
|
4100
|
+
borderTopWidth: p?.borderTopWidth,
|
|
4101
|
+
borderLeftWidth: p?.borderLeftWidth,
|
|
4102
|
+
borderRightWidth: p?.borderRightWidth,
|
|
4103
|
+
borderBottomWidth: p?.borderBottomWidth
|
|
3858
4104
|
};
|
|
3859
|
-
|
|
3860
|
-
|
|
3861
|
-
e.stopPropagation();
|
|
3862
|
-
e.preventDefault();
|
|
3863
|
-
if (eventName) send_event(eventName, eventValue);
|
|
3864
|
-
execOnClickOperation(onClick);
|
|
3865
|
-
}
|
|
4105
|
+
};
|
|
4106
|
+
const toCssPadding = (p) => {
|
|
3866
4107
|
return {
|
|
3867
|
-
|
|
3868
|
-
|
|
3869
|
-
|
|
4108
|
+
paddingTop: p?.paddingTop,
|
|
4109
|
+
paddingLeft: p?.paddingLeft,
|
|
4110
|
+
paddingRight: p?.paddingRight,
|
|
4111
|
+
paddingBottom: p?.paddingBottom
|
|
3870
4112
|
};
|
|
3871
4113
|
};
|
|
3872
|
-
|
|
3873
|
-
|
|
3874
|
-
|
|
3875
|
-
|
|
3876
|
-
|
|
3877
|
-
|
|
3878
|
-
|
|
3879
|
-
|
|
3880
|
-
|
|
3881
|
-
|
|
3882
|
-
|
|
3883
|
-
|
|
3884
|
-
|
|
3885
|
-
|
|
3886
|
-
|
|
3887
|
-
|
|
3888
|
-
|
|
3889
|
-
|
|
3890
|
-
|
|
3891
|
-
|
|
3892
|
-
|
|
3893
|
-
|
|
3894
|
-
|
|
3895
|
-
|
|
3896
|
-
|
|
3897
|
-
|
|
3898
|
-
|
|
3899
|
-
|
|
3900
|
-
}
|
|
4114
|
+
const toCssBackground = (p, brandKit) => {
|
|
4115
|
+
const url = p?.backgroundImageUrl;
|
|
4116
|
+
const variant = BACKGROUND_COLOR_VARIANT[p?.backgroundColorVariant];
|
|
4117
|
+
return {
|
|
4118
|
+
backgroundColor: p?.backgroundBlendColor ?? p?.backgroundColor ?? variant?.getProps(brandKit)?.backgroundColor,
|
|
4119
|
+
...url ? {
|
|
4120
|
+
backgroundSize: url ? p.backgroundSize ?? "cover" : void 0,
|
|
4121
|
+
backgroundImage: url ? `url(${url})` : void 0,
|
|
4122
|
+
backgroundPositionX: p?.backgroundPositionX ?? "center",
|
|
4123
|
+
backgroundPositionY: p?.backgroundPositionY ?? "center",
|
|
4124
|
+
backgroundBlendMode: p?.backgroundBlendMode,
|
|
4125
|
+
backgroundRepeat: "no-repeat"
|
|
4126
|
+
} : {}
|
|
4127
|
+
};
|
|
4128
|
+
};
|
|
4129
|
+
const toCssRadius = (p) => {
|
|
4130
|
+
return {
|
|
4131
|
+
borderTopLeftRadius: p?.borderTopLeftRadius,
|
|
4132
|
+
borderTopRightRadius: p?.borderTopRightRadius,
|
|
4133
|
+
borderBottomLeftRadius: p?.borderBottomLeftRadius,
|
|
4134
|
+
borderBottomRightRadius: p?.borderBottomRightRadius
|
|
4135
|
+
};
|
|
4136
|
+
};
|
|
4137
|
+
const toCssShadow = (p) => {
|
|
4138
|
+
const variant = SHADOW_VARIANT[p?.shadowVariant];
|
|
4139
|
+
return { boxShadow: p?.shadow ?? variant?.getProps()?.shadow };
|
|
4140
|
+
};
|
|
4141
|
+
const toCssOverflow = (p) => {
|
|
4142
|
+
return { overflow: p?.overflow };
|
|
3901
4143
|
};
|
|
3902
4144
|
|
|
3903
4145
|
//#endregion
|
|
@@ -3926,89 +4168,131 @@ const AVATAR_SIZE_STYLES = {
|
|
|
3926
4168
|
};
|
|
3927
4169
|
|
|
3928
4170
|
//#endregion
|
|
3929
|
-
//#region src/components-flex/avatar/Avatar.
|
|
3930
|
-
var
|
|
3931
|
-
|
|
3932
|
-
|
|
3933
|
-
|
|
4171
|
+
//#region src/components-flex/avatar/Avatar.css.ts
|
|
4172
|
+
var Avatar_css_default = (layerId, props) => {
|
|
4173
|
+
return createComponentRawCss(layerId, (style) => [
|
|
4174
|
+
style("", {
|
|
4175
|
+
display: "flex",
|
|
4176
|
+
alignItems: "center",
|
|
4177
|
+
justifyContent: "center",
|
|
4178
|
+
overflow: "hidden",
|
|
4179
|
+
flexShrink: "0",
|
|
4180
|
+
border: "0",
|
|
4181
|
+
background: "none",
|
|
4182
|
+
padding: "0",
|
|
4183
|
+
margin: "0",
|
|
4184
|
+
textAlign: "center",
|
|
4185
|
+
appearance: "none"
|
|
4186
|
+
}),
|
|
4187
|
+
toDynamicStyle$3(layerId, props),
|
|
4188
|
+
...props.responsiveSettings?.map((v) => {
|
|
4189
|
+
if (v.mediaQueryCondition) return toResponsiveSelector(v, toDynamicStyle$3(layerId, v.props));
|
|
4190
|
+
else if (v.userAgentCondition) return "";
|
|
4191
|
+
return "";
|
|
4192
|
+
}) ?? [],
|
|
4193
|
+
props.customizeCss
|
|
4194
|
+
]);
|
|
4195
|
+
};
|
|
4196
|
+
const calcImgRadius = (parentRadius, borderWidth) => {
|
|
4197
|
+
const radiusSize = parentRadius ? parseInt(parentRadius) : 0;
|
|
4198
|
+
if (radiusSize === 0) return 0;
|
|
4199
|
+
if (parentRadius === "100%") return "100%";
|
|
4200
|
+
return radiusSize > 0 ? `calc(${parentRadius} - ${borderWidth})` : void 0;
|
|
4201
|
+
};
|
|
4202
|
+
const toDynamicStyle$3 = (layerId, props) => {
|
|
4203
|
+
const avatarSizeStyle = !isNaN(Number(props.size)) ? {
|
|
4204
|
+
width: `${props.size}px`,
|
|
4205
|
+
height: `${props.size}px`
|
|
4206
|
+
} : AVATAR_SIZE_STYLES[props.size] || AVATAR_SIZE_STYLES["medium"];
|
|
4207
|
+
const styleObj = {
|
|
4208
|
+
...{ shape: {
|
|
4209
|
+
circle: { borderRadius: "100%" },
|
|
4210
|
+
square: { borderRadius: "0.25em" },
|
|
4211
|
+
rounded: { borderRadius: "1em" }
|
|
4212
|
+
} }.shape[props.shape ?? "square"],
|
|
4213
|
+
width: props.width ?? avatarSizeStyle.width,
|
|
4214
|
+
height: props.height ?? avatarSizeStyle.height,
|
|
4215
|
+
...toCssCommon(props),
|
|
4216
|
+
...toCssBorder(props),
|
|
4217
|
+
...toCssPadding(props)
|
|
4218
|
+
};
|
|
4219
|
+
return createComponentRawCss(layerId, (style) => [style("", styleObj), style("img", {
|
|
4220
|
+
width: "100%",
|
|
4221
|
+
height: "100%",
|
|
4222
|
+
objectFit: "cover",
|
|
4223
|
+
...toCssRadius({
|
|
4224
|
+
borderTopLeftRadius: calcImgRadius(styleObj.borderRadius, styleObj.borderTopWidth),
|
|
4225
|
+
borderTopRightRadius: calcImgRadius(styleObj.borderRadius, styleObj.borderTopWidth),
|
|
4226
|
+
borderBottomLeftRadius: calcImgRadius(styleObj.borderRadius, styleObj.borderTopWidth),
|
|
4227
|
+
borderBottomRightRadius: calcImgRadius(styleObj.borderRadius, styleObj.borderTopWidth)
|
|
4228
|
+
})
|
|
4229
|
+
})]);
|
|
3934
4230
|
};
|
|
4231
|
+
|
|
4232
|
+
//#endregion
|
|
4233
|
+
//#region src/components-flex/avatar/Avatar.svelte
|
|
4234
|
+
var root_1$14 = $.template(`<img class="avatar-image">`);
|
|
4235
|
+
var root$54 = $.template(`<!> <!>`, 1);
|
|
3935
4236
|
function Avatar($$anchor, $$props) {
|
|
3936
4237
|
$.push($$props, false);
|
|
3937
|
-
|
|
3938
|
-
const
|
|
3939
|
-
const
|
|
3940
|
-
const
|
|
4238
|
+
const [$$stores, $$cleanup] = $.setup_stores();
|
|
4239
|
+
const $rProps = () => $.store_get($.get(rProps), "$rProps", $$stores);
|
|
4240
|
+
const $clickable = () => $.store_get($.get(clickable), "$clickable", $$stores);
|
|
4241
|
+
const rProps = $.mutable_state();
|
|
4242
|
+
const clickable = $.mutable_state();
|
|
3941
4243
|
let props = $.prop($$props, "props", 24, () => ({}));
|
|
3942
|
-
let layerId = $.prop($$props, "layerId",
|
|
3943
|
-
|
|
3944
|
-
|
|
3945
|
-
|
|
3946
|
-
width: `${props().size}px`,
|
|
3947
|
-
height: `${props().size}px`
|
|
3948
|
-
} : AVATAR_SIZE_STYLES[props().size] || AVATAR_SIZE_STYLES[avatarPropsDefault.size];
|
|
3949
|
-
const VARIANTS = { shape: {
|
|
3950
|
-
circle: { borderRadius: "100%" },
|
|
3951
|
-
square: { borderRadius: "0.25em" },
|
|
3952
|
-
rounded: { borderRadius: "1em" }
|
|
3953
|
-
} };
|
|
3954
|
-
const calcImgRadius = (parentRadius, borderWidth) => {
|
|
3955
|
-
const radiusSize = parentRadius ? parseInt(parentRadius) : 0;
|
|
3956
|
-
if (radiusSize === 0) return 0;
|
|
3957
|
-
if (parentRadius === "100%") return "100%";
|
|
3958
|
-
return radiusSize > 0 ? `calc(${parentRadius} - ${borderWidth})` : void 0;
|
|
3959
|
-
};
|
|
3960
|
-
$.legacy_pre_effect(() => ($.deep_read_state(props()), toCssPadding), () => {
|
|
3961
|
-
$.set(styleObj, {
|
|
3962
|
-
...VARIANTS.shape[props().shape ?? "square"],
|
|
3963
|
-
width: props().width ?? avatarSizeStyle.width,
|
|
3964
|
-
height: props().height ?? avatarSizeStyle.height,
|
|
3965
|
-
...toCssCommon(props()),
|
|
3966
|
-
...toCssBorder(props()),
|
|
3967
|
-
...toCssPadding(props())
|
|
3968
|
-
});
|
|
3969
|
-
});
|
|
3970
|
-
$.legacy_pre_effect(() => $.get(styleObj), () => {
|
|
3971
|
-
$.set(style, objToStyle($.get(styleObj)));
|
|
4244
|
+
let layerId = $.prop($$props, "layerId", 24, () => crypto.randomUUID());
|
|
4245
|
+
const cssText = Avatar_css_default(layerId(), props());
|
|
4246
|
+
$.legacy_pre_effect(() => $.deep_read_state(props()), () => {
|
|
4247
|
+
$.store_unsub($.set(rProps, useResponsiveProps(props())), "$rProps", $$stores);
|
|
3972
4248
|
});
|
|
3973
|
-
$.legacy_pre_effect(() =>
|
|
3974
|
-
$.set(
|
|
3975
|
-
width: "100%",
|
|
3976
|
-
height: "100%",
|
|
3977
|
-
objectFit: "cover",
|
|
3978
|
-
...toCssRadius({
|
|
3979
|
-
borderTopLeftRadius: calcImgRadius($.get(styleObj).borderRadius, $.get(styleObj).borderTopWidth),
|
|
3980
|
-
borderTopRightRadius: calcImgRadius($.get(styleObj).borderRadius, $.get(styleObj).borderTopWidth),
|
|
3981
|
-
borderBottomLeftRadius: calcImgRadius($.get(styleObj).borderRadius, $.get(styleObj).borderTopWidth),
|
|
3982
|
-
borderBottomRightRadius: calcImgRadius($.get(styleObj).borderRadius, $.get(styleObj).borderTopWidth)
|
|
3983
|
-
})
|
|
3984
|
-
}));
|
|
4249
|
+
$.legacy_pre_effect(() => $rProps(), () => {
|
|
4250
|
+
$.store_unsub($.set(clickable, useClickable_default($rProps())), "$clickable", $$stores);
|
|
3985
4251
|
});
|
|
3986
4252
|
$.legacy_pre_effect_reset();
|
|
3987
4253
|
$.init();
|
|
3988
|
-
var fragment =
|
|
4254
|
+
var fragment = root$54();
|
|
3989
4255
|
var node = $.first_child(fragment);
|
|
3990
|
-
|
|
3991
|
-
|
|
3992
|
-
|
|
3993
|
-
|
|
3994
|
-
|
|
4256
|
+
StylePortal(node, { cssText });
|
|
4257
|
+
var node_1 = $.sibling(node, 2);
|
|
4258
|
+
$.element(node_1, () => $clickable().element, false, ($$element, $$anchor$1) => {
|
|
4259
|
+
let attributes;
|
|
4260
|
+
$.template_effect(($0) => attributes = $.set_attributes($$element, attributes, {
|
|
4261
|
+
...$clickable().attributes,
|
|
4262
|
+
id: $rProps().id,
|
|
3995
4263
|
class: $0,
|
|
3996
|
-
style: $.get(style),
|
|
3997
4264
|
"data-layer-id": layerId()
|
|
3998
|
-
}
|
|
3999
|
-
$.event("click", $$element,
|
|
4265
|
+
}), [() => ["avatar", ...$rProps().classNames ?? []].join(" ")], $.derived_safe_equal);
|
|
4266
|
+
$.event("click", $$element, function(...$$args) {
|
|
4267
|
+
$clickable().handleClick?.apply(this, $$args);
|
|
4268
|
+
});
|
|
4000
4269
|
var img = root_1$14();
|
|
4001
4270
|
$.template_effect(() => {
|
|
4002
|
-
$.set_attribute(img, "src",
|
|
4003
|
-
$.set_attribute(img, "alt",
|
|
4004
|
-
$.set_style(img, $.get(imgStyle));
|
|
4271
|
+
$.set_attribute(img, "src", $rProps().image);
|
|
4272
|
+
$.set_attribute(img, "alt", $rProps().alt);
|
|
4005
4273
|
});
|
|
4006
4274
|
$.append($$anchor$1, img);
|
|
4007
4275
|
});
|
|
4008
4276
|
$.append($$anchor, fragment);
|
|
4009
4277
|
$.pop();
|
|
4278
|
+
$$cleanup();
|
|
4010
4279
|
}
|
|
4011
4280
|
|
|
4281
|
+
//#endregion
|
|
4282
|
+
//#region src/components-flex/avatar/types.ts
|
|
4283
|
+
const AVATAR_SIZE = {
|
|
4284
|
+
extra_small: "XS(48 x 48)",
|
|
4285
|
+
small: "S(64 x 64)",
|
|
4286
|
+
medium: "M(88 x 88)",
|
|
4287
|
+
large: "L(108 x 108)",
|
|
4288
|
+
extra_large: "XL(128 x 128)"
|
|
4289
|
+
};
|
|
4290
|
+
const AVATAR_SHAPE = {
|
|
4291
|
+
circle: "サークル",
|
|
4292
|
+
square: "スクエア",
|
|
4293
|
+
rounded: "ラウンド"
|
|
4294
|
+
};
|
|
4295
|
+
|
|
4012
4296
|
//#endregion
|
|
4013
4297
|
//#region src/components-flex/button/types.ts
|
|
4014
4298
|
const BUTTON_SIZE = {
|
|
@@ -4059,10 +4343,10 @@ const buttonPropsDefault = {
|
|
|
4059
4343
|
|
|
4060
4344
|
//#endregion
|
|
4061
4345
|
//#region src/components-flex/icon/variants/IconArrowDown.svelte
|
|
4062
|
-
var root$
|
|
4346
|
+
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>`);
|
|
4063
4347
|
function IconArrowDown($$anchor, $$props) {
|
|
4064
4348
|
let color = $.prop($$props, "color", 8);
|
|
4065
|
-
var svg = root$
|
|
4349
|
+
var svg = root$53();
|
|
4066
4350
|
var path = $.child(svg);
|
|
4067
4351
|
$.reset(svg);
|
|
4068
4352
|
$.template_effect(() => $.set_attribute(path, "fill", color()));
|
|
@@ -4071,10 +4355,10 @@ function IconArrowDown($$anchor, $$props) {
|
|
|
4071
4355
|
|
|
4072
4356
|
//#endregion
|
|
4073
4357
|
//#region src/components-flex/icon/variants/IconArrowUp.svelte
|
|
4074
|
-
var root$
|
|
4358
|
+
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>`);
|
|
4075
4359
|
function IconArrowUp($$anchor, $$props) {
|
|
4076
4360
|
let color = $.prop($$props, "color", 8);
|
|
4077
|
-
var svg = root$
|
|
4361
|
+
var svg = root$52();
|
|
4078
4362
|
var path = $.child(svg);
|
|
4079
4363
|
$.reset(svg);
|
|
4080
4364
|
$.template_effect(() => $.set_attribute(path, "fill", color()));
|
|
@@ -4083,10 +4367,10 @@ function IconArrowUp($$anchor, $$props) {
|
|
|
4083
4367
|
|
|
4084
4368
|
//#endregion
|
|
4085
4369
|
//#region src/components-flex/icon/variants/IconUsers.svelte
|
|
4086
|
-
var root$
|
|
4370
|
+
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>`);
|
|
4087
4371
|
function IconUsers($$anchor, $$props) {
|
|
4088
4372
|
let color = $.prop($$props, "color", 8);
|
|
4089
|
-
var svg = root$
|
|
4373
|
+
var svg = root$51();
|
|
4090
4374
|
var path = $.child(svg);
|
|
4091
4375
|
$.reset(svg);
|
|
4092
4376
|
$.template_effect(() => $.set_attribute(path, "fill", color()));
|
|
@@ -4095,10 +4379,10 @@ function IconUsers($$anchor, $$props) {
|
|
|
4095
4379
|
|
|
4096
4380
|
//#endregion
|
|
4097
4381
|
//#region src/components-flex/icon/variants/IconArrowLeft.svelte
|
|
4098
|
-
var root$
|
|
4382
|
+
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>`);
|
|
4099
4383
|
function IconArrowLeft($$anchor, $$props) {
|
|
4100
4384
|
let color = $.prop($$props, "color", 8);
|
|
4101
|
-
var svg = root$
|
|
4385
|
+
var svg = root$50();
|
|
4102
4386
|
var path = $.child(svg);
|
|
4103
4387
|
$.reset(svg);
|
|
4104
4388
|
$.template_effect(() => $.set_attribute(path, "fill", color()));
|
|
@@ -4107,10 +4391,10 @@ function IconArrowLeft($$anchor, $$props) {
|
|
|
4107
4391
|
|
|
4108
4392
|
//#endregion
|
|
4109
4393
|
//#region src/components-flex/icon/variants/IconArrowRight.svelte
|
|
4110
|
-
var root$
|
|
4394
|
+
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>`);
|
|
4111
4395
|
function IconArrowRight($$anchor, $$props) {
|
|
4112
4396
|
let color = $.prop($$props, "color", 8);
|
|
4113
|
-
var svg = root$
|
|
4397
|
+
var svg = root$49();
|
|
4114
4398
|
var path = $.child(svg);
|
|
4115
4399
|
$.reset(svg);
|
|
4116
4400
|
$.template_effect(() => $.set_attribute(path, "fill", color()));
|
|
@@ -4119,10 +4403,10 @@ function IconArrowRight($$anchor, $$props) {
|
|
|
4119
4403
|
|
|
4120
4404
|
//#endregion
|
|
4121
4405
|
//#region src/components-flex/icon/variants/IconBell.svelte
|
|
4122
|
-
var root$
|
|
4406
|
+
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>`);
|
|
4123
4407
|
function IconBell($$anchor, $$props) {
|
|
4124
4408
|
let color = $.prop($$props, "color", 8);
|
|
4125
|
-
var svg = root$
|
|
4409
|
+
var svg = root$48();
|
|
4126
4410
|
var path = $.child(svg);
|
|
4127
4411
|
$.reset(svg);
|
|
4128
4412
|
$.template_effect(() => $.set_attribute(path, "fill", color()));
|
|
@@ -4131,10 +4415,10 @@ function IconBell($$anchor, $$props) {
|
|
|
4131
4415
|
|
|
4132
4416
|
//#endregion
|
|
4133
4417
|
//#region src/components-flex/icon/variants/IconArrowUpFromSquare.svelte
|
|
4134
|
-
var root$
|
|
4418
|
+
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>`);
|
|
4135
4419
|
function IconArrowUpFromSquare($$anchor, $$props) {
|
|
4136
4420
|
let color = $.prop($$props, "color", 8);
|
|
4137
|
-
var svg = root$
|
|
4421
|
+
var svg = root$47();
|
|
4138
4422
|
var path = $.child(svg);
|
|
4139
4423
|
$.reset(svg);
|
|
4140
4424
|
$.template_effect(() => $.set_attribute(path, "fill", color()));
|
|
@@ -4143,10 +4427,10 @@ function IconArrowUpFromSquare($$anchor, $$props) {
|
|
|
4143
4427
|
|
|
4144
4428
|
//#endregion
|
|
4145
4429
|
//#region src/components-flex/icon/variants/IconTicket.svelte
|
|
4146
|
-
var root$
|
|
4430
|
+
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>`);
|
|
4147
4431
|
function IconTicket($$anchor, $$props) {
|
|
4148
4432
|
let color = $.prop($$props, "color", 8);
|
|
4149
|
-
var svg = root$
|
|
4433
|
+
var svg = root$46();
|
|
4150
4434
|
var path = $.child(svg);
|
|
4151
4435
|
$.reset(svg);
|
|
4152
4436
|
$.template_effect(() => $.set_attribute(path, "fill", color()));
|
|
@@ -4155,10 +4439,10 @@ function IconTicket($$anchor, $$props) {
|
|
|
4155
4439
|
|
|
4156
4440
|
//#endregion
|
|
4157
4441
|
//#region src/components-flex/icon/variants/IconTrack.svelte
|
|
4158
|
-
var root$
|
|
4442
|
+
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>`);
|
|
4159
4443
|
function IconTrack($$anchor, $$props) {
|
|
4160
4444
|
let color = $.prop($$props, "color", 8);
|
|
4161
|
-
var svg = root$
|
|
4445
|
+
var svg = root$45();
|
|
4162
4446
|
var path = $.child(svg);
|
|
4163
4447
|
$.reset(svg);
|
|
4164
4448
|
$.template_effect(() => $.set_attribute(path, "fill", color()));
|
|
@@ -4167,10 +4451,10 @@ function IconTrack($$anchor, $$props) {
|
|
|
4167
4451
|
|
|
4168
4452
|
//#endregion
|
|
4169
4453
|
//#region src/components-flex/icon/variants/IconCartShopping.svelte
|
|
4170
|
-
var root$
|
|
4454
|
+
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>`);
|
|
4171
4455
|
function IconCartShopping($$anchor, $$props) {
|
|
4172
4456
|
let color = $.prop($$props, "color", 8);
|
|
4173
|
-
var svg = root$
|
|
4457
|
+
var svg = root$44();
|
|
4174
4458
|
var path = $.child(svg);
|
|
4175
4459
|
$.reset(svg);
|
|
4176
4460
|
$.template_effect(() => $.set_attribute(path, "fill", color()));
|
|
@@ -4179,10 +4463,10 @@ function IconCartShopping($$anchor, $$props) {
|
|
|
4179
4463
|
|
|
4180
4464
|
//#endregion
|
|
4181
4465
|
//#region src/components-flex/icon/variants/IconCircle.svelte
|
|
4182
|
-
var root$
|
|
4466
|
+
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>`);
|
|
4183
4467
|
function IconCircle($$anchor, $$props) {
|
|
4184
4468
|
let color = $.prop($$props, "color", 8);
|
|
4185
|
-
var svg = root$
|
|
4469
|
+
var svg = root$43();
|
|
4186
4470
|
var path = $.child(svg);
|
|
4187
4471
|
$.reset(svg);
|
|
4188
4472
|
$.template_effect(() => $.set_attribute(path, "fill", color()));
|
|
@@ -4191,10 +4475,10 @@ function IconCircle($$anchor, $$props) {
|
|
|
4191
4475
|
|
|
4192
4476
|
//#endregion
|
|
4193
4477
|
//#region src/components-flex/icon/variants/IconCircleQuestion.svelte
|
|
4194
|
-
var root$
|
|
4478
|
+
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>`);
|
|
4195
4479
|
function IconCircleQuestion($$anchor, $$props) {
|
|
4196
4480
|
let color = $.prop($$props, "color", 8);
|
|
4197
|
-
var svg = root$
|
|
4481
|
+
var svg = root$42();
|
|
4198
4482
|
var path = $.child(svg);
|
|
4199
4483
|
$.reset(svg);
|
|
4200
4484
|
$.template_effect(() => $.set_attribute(path, "fill", color()));
|
|
@@ -4203,10 +4487,10 @@ function IconCircleQuestion($$anchor, $$props) {
|
|
|
4203
4487
|
|
|
4204
4488
|
//#endregion
|
|
4205
4489
|
//#region src/components-flex/icon/variants/IconCheck.svelte
|
|
4206
|
-
var root$
|
|
4490
|
+
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>`);
|
|
4207
4491
|
function IconCheck($$anchor, $$props) {
|
|
4208
4492
|
let color = $.prop($$props, "color", 8);
|
|
4209
|
-
var svg = root$
|
|
4493
|
+
var svg = root$41();
|
|
4210
4494
|
var path = $.child(svg);
|
|
4211
4495
|
$.reset(svg);
|
|
4212
4496
|
$.template_effect(() => $.set_attribute(path, "fill", color()));
|
|
@@ -4215,10 +4499,10 @@ function IconCheck($$anchor, $$props) {
|
|
|
4215
4499
|
|
|
4216
4500
|
//#endregion
|
|
4217
4501
|
//#region src/components-flex/icon/variants/IconXMark.svelte
|
|
4218
|
-
var root$
|
|
4502
|
+
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>`);
|
|
4219
4503
|
function IconXMark($$anchor, $$props) {
|
|
4220
4504
|
let color = $.prop($$props, "color", 8);
|
|
4221
|
-
var svg = root$
|
|
4505
|
+
var svg = root$40();
|
|
4222
4506
|
var path = $.child(svg);
|
|
4223
4507
|
$.reset(svg);
|
|
4224
4508
|
$.template_effect(() => $.set_attribute(path, "fill", color()));
|
|
@@ -4227,10 +4511,10 @@ function IconXMark($$anchor, $$props) {
|
|
|
4227
4511
|
|
|
4228
4512
|
//#endregion
|
|
4229
4513
|
//#region src/components-flex/icon/variants/IconPaperPlane.svelte
|
|
4230
|
-
var root$
|
|
4514
|
+
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>`);
|
|
4231
4515
|
function IconPaperPlane($$anchor, $$props) {
|
|
4232
4516
|
let color = $.prop($$props, "color", 8);
|
|
4233
|
-
var svg = root$
|
|
4517
|
+
var svg = root$39();
|
|
4234
4518
|
var path = $.child(svg);
|
|
4235
4519
|
$.reset(svg);
|
|
4236
4520
|
$.template_effect(() => $.set_attribute(path, "fill", color()));
|
|
@@ -4239,10 +4523,10 @@ function IconPaperPlane($$anchor, $$props) {
|
|
|
4239
4523
|
|
|
4240
4524
|
//#endregion
|
|
4241
4525
|
//#region src/components-flex/icon/variants/IconCopy.svelte
|
|
4242
|
-
var root$
|
|
4526
|
+
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>`);
|
|
4243
4527
|
function IconCopy($$anchor, $$props) {
|
|
4244
4528
|
let color = $.prop($$props, "color", 8);
|
|
4245
|
-
var svg = root$
|
|
4529
|
+
var svg = root$38();
|
|
4246
4530
|
var path = $.child(svg);
|
|
4247
4531
|
$.reset(svg);
|
|
4248
4532
|
$.template_effect(() => $.set_attribute(path, "fill", color()));
|
|
@@ -4251,10 +4535,10 @@ function IconCopy($$anchor, $$props) {
|
|
|
4251
4535
|
|
|
4252
4536
|
//#endregion
|
|
4253
4537
|
//#region src/components-flex/icon/variants/IconCircleXMark.svelte
|
|
4254
|
-
var root$
|
|
4538
|
+
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>`);
|
|
4255
4539
|
function IconCircleXMark($$anchor, $$props) {
|
|
4256
4540
|
let color = $.prop($$props, "color", 8);
|
|
4257
|
-
var svg = root$
|
|
4541
|
+
var svg = root$37();
|
|
4258
4542
|
var path = $.child(svg);
|
|
4259
4543
|
$.reset(svg);
|
|
4260
4544
|
$.template_effect(() => $.set_attribute(path, "fill", color()));
|
|
@@ -4263,10 +4547,10 @@ function IconCircleXMark($$anchor, $$props) {
|
|
|
4263
4547
|
|
|
4264
4548
|
//#endregion
|
|
4265
4549
|
//#region src/components-flex/icon/variants/IconHeart.svelte
|
|
4266
|
-
var root$
|
|
4550
|
+
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>`);
|
|
4267
4551
|
function IconHeart($$anchor, $$props) {
|
|
4268
4552
|
let color = $.prop($$props, "color", 8);
|
|
4269
|
-
var svg = root$
|
|
4553
|
+
var svg = root$36();
|
|
4270
4554
|
var path = $.child(svg);
|
|
4271
4555
|
$.reset(svg);
|
|
4272
4556
|
$.template_effect(() => $.set_attribute(path, "fill", color()));
|
|
@@ -4275,10 +4559,10 @@ function IconHeart($$anchor, $$props) {
|
|
|
4275
4559
|
|
|
4276
4560
|
//#endregion
|
|
4277
4561
|
//#region src/components-flex/icon/variants/IconMagnifyingGrass.svelte
|
|
4278
|
-
var root$
|
|
4562
|
+
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>`);
|
|
4279
4563
|
function IconMagnifyingGrass($$anchor, $$props) {
|
|
4280
4564
|
let color = $.prop($$props, "color", 8);
|
|
4281
|
-
var svg = root$
|
|
4565
|
+
var svg = root$35();
|
|
4282
4566
|
var path = $.child(svg);
|
|
4283
4567
|
$.reset(svg);
|
|
4284
4568
|
$.template_effect(() => $.set_attribute(path, "fill", color()));
|
|
@@ -4287,10 +4571,10 @@ function IconMagnifyingGrass($$anchor, $$props) {
|
|
|
4287
4571
|
|
|
4288
4572
|
//#endregion
|
|
4289
4573
|
//#region src/components-flex/icon/variants/IconStar.svelte
|
|
4290
|
-
var root$
|
|
4574
|
+
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>`);
|
|
4291
4575
|
function IconStar($$anchor, $$props) {
|
|
4292
4576
|
let color = $.prop($$props, "color", 8);
|
|
4293
|
-
var svg = root$
|
|
4577
|
+
var svg = root$34();
|
|
4294
4578
|
var path = $.child(svg);
|
|
4295
4579
|
$.reset(svg);
|
|
4296
4580
|
$.template_effect(() => $.set_attribute(path, "fill", color()));
|
|
@@ -4299,10 +4583,10 @@ function IconStar($$anchor, $$props) {
|
|
|
4299
4583
|
|
|
4300
4584
|
//#endregion
|
|
4301
4585
|
//#region src/components-flex/icon/variants/IconCircleInfo.svelte
|
|
4302
|
-
var root$
|
|
4586
|
+
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>`);
|
|
4303
4587
|
function IconCircleInfo($$anchor, $$props) {
|
|
4304
4588
|
let color = $.prop($$props, "color", 8);
|
|
4305
|
-
var svg = root$
|
|
4589
|
+
var svg = root$33();
|
|
4306
4590
|
var path = $.child(svg);
|
|
4307
4591
|
$.reset(svg);
|
|
4308
4592
|
$.template_effect(() => $.set_attribute(path, "fill", color()));
|
|
@@ -4311,10 +4595,10 @@ function IconCircleInfo($$anchor, $$props) {
|
|
|
4311
4595
|
|
|
4312
4596
|
//#endregion
|
|
4313
4597
|
//#region src/components-flex/icon/variants/IconEnvelope.svelte
|
|
4314
|
-
var root$
|
|
4598
|
+
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>`);
|
|
4315
4599
|
function IconEnvelope($$anchor, $$props) {
|
|
4316
4600
|
let color = $.prop($$props, "color", 8);
|
|
4317
|
-
var svg = root$
|
|
4601
|
+
var svg = root$32();
|
|
4318
4602
|
var path = $.child(svg);
|
|
4319
4603
|
$.reset(svg);
|
|
4320
4604
|
$.template_effect(() => $.set_attribute(path, "fill", color()));
|
|
@@ -4323,10 +4607,10 @@ function IconEnvelope($$anchor, $$props) {
|
|
|
4323
4607
|
|
|
4324
4608
|
//#endregion
|
|
4325
4609
|
//#region src/components-flex/icon/variants/IconGift.svelte
|
|
4326
|
-
var root$
|
|
4610
|
+
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>`);
|
|
4327
4611
|
function IconGift($$anchor, $$props) {
|
|
4328
4612
|
let color = $.prop($$props, "color", 8);
|
|
4329
|
-
var svg = root$
|
|
4613
|
+
var svg = root$31();
|
|
4330
4614
|
var path = $.child(svg);
|
|
4331
4615
|
$.reset(svg);
|
|
4332
4616
|
$.template_effect(() => $.set_attribute(path, "fill", color()));
|
|
@@ -4335,10 +4619,10 @@ function IconGift($$anchor, $$props) {
|
|
|
4335
4619
|
|
|
4336
4620
|
//#endregion
|
|
4337
4621
|
//#region src/components-flex/icon/variants/IconPaperclip.svelte
|
|
4338
|
-
var root$
|
|
4622
|
+
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>`);
|
|
4339
4623
|
function IconPaperclip($$anchor, $$props) {
|
|
4340
4624
|
let color = $.prop($$props, "color", 8);
|
|
4341
|
-
var svg = root$
|
|
4625
|
+
var svg = root$30();
|
|
4342
4626
|
var path = $.child(svg);
|
|
4343
4627
|
$.reset(svg);
|
|
4344
4628
|
$.template_effect(() => $.set_attribute(path, "fill", color()));
|
|
@@ -4347,10 +4631,10 @@ function IconPaperclip($$anchor, $$props) {
|
|
|
4347
4631
|
|
|
4348
4632
|
//#endregion
|
|
4349
4633
|
//#region src/components-flex/icon/variants/IconFire.svelte
|
|
4350
|
-
var root$
|
|
4634
|
+
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>`);
|
|
4351
4635
|
function IconFire($$anchor, $$props) {
|
|
4352
4636
|
let color = $.prop($$props, "color", 8);
|
|
4353
|
-
var svg = root$
|
|
4637
|
+
var svg = root$29();
|
|
4354
4638
|
var path = $.child(svg);
|
|
4355
4639
|
$.reset(svg);
|
|
4356
4640
|
$.template_effect(() => $.set_attribute(path, "fill", color()));
|
|
@@ -4359,10 +4643,10 @@ function IconFire($$anchor, $$props) {
|
|
|
4359
4643
|
|
|
4360
4644
|
//#endregion
|
|
4361
4645
|
//#region src/components-flex/icon/variants/IconLink.svelte
|
|
4362
|
-
var root$
|
|
4646
|
+
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>`);
|
|
4363
4647
|
function IconLink($$anchor, $$props) {
|
|
4364
4648
|
let color = $.prop($$props, "color", 8);
|
|
4365
|
-
var svg = root$
|
|
4649
|
+
var svg = root$28();
|
|
4366
4650
|
var path = $.child(svg);
|
|
4367
4651
|
$.reset(svg);
|
|
4368
4652
|
$.template_effect(() => $.set_attribute(path, "fill", color()));
|
|
@@ -4371,10 +4655,10 @@ function IconLink($$anchor, $$props) {
|
|
|
4371
4655
|
|
|
4372
4656
|
//#endregion
|
|
4373
4657
|
//#region src/components-flex/icon/variants/IconBuildings.svelte
|
|
4374
|
-
var root$
|
|
4658
|
+
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>`);
|
|
4375
4659
|
function IconBuildings($$anchor, $$props) {
|
|
4376
4660
|
let color = $.prop($$props, "color", 8);
|
|
4377
|
-
var svg = root$
|
|
4661
|
+
var svg = root$27();
|
|
4378
4662
|
var path = $.child(svg);
|
|
4379
4663
|
$.reset(svg);
|
|
4380
4664
|
$.template_effect(() => $.set_attribute(path, "fill", color()));
|
|
@@ -4383,10 +4667,10 @@ function IconBuildings($$anchor, $$props) {
|
|
|
4383
4667
|
|
|
4384
4668
|
//#endregion
|
|
4385
4669
|
//#region src/components-flex/icon/variants/IconChevronsRight.svelte
|
|
4386
|
-
var root$
|
|
4670
|
+
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>`);
|
|
4387
4671
|
function IconChevronsRight($$anchor, $$props) {
|
|
4388
4672
|
let color = $.prop($$props, "color", 8);
|
|
4389
|
-
var svg = root$
|
|
4673
|
+
var svg = root$26();
|
|
4390
4674
|
var path = $.child(svg);
|
|
4391
4675
|
$.reset(svg);
|
|
4392
4676
|
$.template_effect(() => $.set_attribute(path, "fill", color()));
|
|
@@ -4395,10 +4679,10 @@ function IconChevronsRight($$anchor, $$props) {
|
|
|
4395
4679
|
|
|
4396
4680
|
//#endregion
|
|
4397
4681
|
//#region src/components-flex/icon/variants/IconChevronRight.svelte
|
|
4398
|
-
var root$
|
|
4682
|
+
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>`);
|
|
4399
4683
|
function IconChevronRight($$anchor, $$props) {
|
|
4400
4684
|
let color = $.prop($$props, "color", 8);
|
|
4401
|
-
var svg = root$
|
|
4685
|
+
var svg = root$25();
|
|
4402
4686
|
var path = $.child(svg);
|
|
4403
4687
|
$.reset(svg);
|
|
4404
4688
|
$.template_effect(() => $.set_attribute(path, "fill", color()));
|
|
@@ -4407,10 +4691,34 @@ function IconChevronRight($$anchor, $$props) {
|
|
|
4407
4691
|
|
|
4408
4692
|
//#endregion
|
|
4409
4693
|
//#region src/components-flex/icon/variants/IconPhone.svelte
|
|
4410
|
-
var root$
|
|
4694
|
+
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>`);
|
|
4411
4695
|
function IconPhone($$anchor, $$props) {
|
|
4412
4696
|
let color = $.prop($$props, "color", 8);
|
|
4413
|
-
var svg = root$
|
|
4697
|
+
var svg = root$24();
|
|
4698
|
+
var path = $.child(svg);
|
|
4699
|
+
$.reset(svg);
|
|
4700
|
+
$.template_effect(() => $.set_attribute(path, "fill", color()));
|
|
4701
|
+
$.append($$anchor, svg);
|
|
4702
|
+
}
|
|
4703
|
+
|
|
4704
|
+
//#endregion
|
|
4705
|
+
//#region src/components-flex/icon/variants/IconLocationDot.svelte
|
|
4706
|
+
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>`);
|
|
4707
|
+
function IconLocationDot($$anchor, $$props) {
|
|
4708
|
+
let color = $.prop($$props, "color", 8);
|
|
4709
|
+
var svg = root$23();
|
|
4710
|
+
var path = $.child(svg);
|
|
4711
|
+
$.reset(svg);
|
|
4712
|
+
$.template_effect(() => $.set_attribute(path, "fill", color()));
|
|
4713
|
+
$.append($$anchor, svg);
|
|
4714
|
+
}
|
|
4715
|
+
|
|
4716
|
+
//#endregion
|
|
4717
|
+
//#region src/components-flex/icon/variants/IconChevronLeft.svelte
|
|
4718
|
+
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>`);
|
|
4719
|
+
function IconChevronLeft($$anchor, $$props) {
|
|
4720
|
+
let color = $.prop($$props, "color", 8);
|
|
4721
|
+
var svg = root$22();
|
|
4414
4722
|
var path = $.child(svg);
|
|
4415
4723
|
$.reset(svg);
|
|
4416
4724
|
$.template_effect(() => $.set_attribute(path, "fill", color()));
|
|
@@ -4418,11 +4726,11 @@ function IconPhone($$anchor, $$props) {
|
|
|
4418
4726
|
}
|
|
4419
4727
|
|
|
4420
4728
|
//#endregion
|
|
4421
|
-
//#region src/components-flex/icon/variants/
|
|
4422
|
-
var root$
|
|
4423
|
-
function
|
|
4729
|
+
//#region src/components-flex/icon/variants/IconChevronsLeft.svelte
|
|
4730
|
+
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>`);
|
|
4731
|
+
function IconChevronsLeft($$anchor, $$props) {
|
|
4424
4732
|
let color = $.prop($$props, "color", 8);
|
|
4425
|
-
var svg = root$
|
|
4733
|
+
var svg = root$21();
|
|
4426
4734
|
var path = $.child(svg);
|
|
4427
4735
|
$.reset(svg);
|
|
4428
4736
|
$.template_effect(() => $.set_attribute(path, "fill", color()));
|
|
@@ -4472,7 +4780,9 @@ const ICON_VARIANTS = {
|
|
|
4472
4780
|
cart_shopping: IconCartShopping,
|
|
4473
4781
|
check: IconCheck,
|
|
4474
4782
|
chevrons_right: IconChevronsRight,
|
|
4783
|
+
chevrons_left: IconChevronsLeft,
|
|
4475
4784
|
chevron_right: IconChevronRight,
|
|
4785
|
+
chevron_left: IconChevronLeft,
|
|
4476
4786
|
circle: IconCircle,
|
|
4477
4787
|
circle_info: IconCircleInfo,
|
|
4478
4788
|
circle_question: IconCircleQuestion,
|
|
@@ -4496,54 +4806,89 @@ const ICON_VARIANTS = {
|
|
|
4496
4806
|
};
|
|
4497
4807
|
|
|
4498
4808
|
//#endregion
|
|
4499
|
-
//#region src/components-flex/icon/Icon.
|
|
4500
|
-
|
|
4501
|
-
|
|
4502
|
-
|
|
4809
|
+
//#region src/components-flex/icon/Icon.css.ts
|
|
4810
|
+
var Icon_css_default = (layerId, props, _brandKit) => {
|
|
4811
|
+
return createComponentRawCss(layerId, (style) => [
|
|
4812
|
+
style("", {
|
|
4813
|
+
textDecoration: "none",
|
|
4814
|
+
color: "inherit",
|
|
4815
|
+
border: "0",
|
|
4816
|
+
background: "none",
|
|
4817
|
+
padding: "0"
|
|
4818
|
+
}),
|
|
4819
|
+
style("&[data-clickable=\"true\"]", { cursor: "pointer" }),
|
|
4820
|
+
style("&[data-clickable=\"true\"]:hover", { opacity: .8 }),
|
|
4821
|
+
style("&[aria-disabled=\"true\"]", {
|
|
4822
|
+
opacity: "0.24",
|
|
4823
|
+
cursor: "not-allowed"
|
|
4824
|
+
}),
|
|
4825
|
+
style("&[aria-disabled=\"true\"]:hover", { opacity: "0.24" }),
|
|
4826
|
+
style("&[aria-hidden=\"true\"]", { display: "none" }),
|
|
4827
|
+
toDynamicStyle$2(layerId, props),
|
|
4828
|
+
...props.responsiveSettings?.map((v) => {
|
|
4829
|
+
if (v.mediaQueryCondition) return toResponsiveSelector(v, toDynamicStyle$2(layerId, {
|
|
4830
|
+
variant: v.props.variant ?? props.variant,
|
|
4831
|
+
...v.props
|
|
4832
|
+
}));
|
|
4833
|
+
else if (v.userAgentCondition) return "";
|
|
4834
|
+
return "";
|
|
4835
|
+
}) ?? [],
|
|
4836
|
+
props.customizeCss
|
|
4837
|
+
]);
|
|
4838
|
+
};
|
|
4839
|
+
const toDynamicStyle$2 = (layerId, props) => {
|
|
4840
|
+
return createComponentRawCss(layerId, (style) => [style("", {
|
|
4841
|
+
minWidth: props.width ? props.width : ICON_SIZE[props.size ?? "medium"].value,
|
|
4842
|
+
width: props.width ? props.width : ICON_SIZE[props.size ?? "medium"].value,
|
|
4843
|
+
height: props.height ? props.height : ICON_SIZE[props.size ?? "medium"].value,
|
|
4844
|
+
...toCssCommon(props)
|
|
4845
|
+
})]);
|
|
4503
4846
|
};
|
|
4847
|
+
|
|
4848
|
+
//#endregion
|
|
4849
|
+
//#region src/components-flex/icon/Icon.svelte
|
|
4850
|
+
var root$20 = $.template(`<!> <!>`, 1);
|
|
4504
4851
|
function Icon($$anchor, $$props) {
|
|
4505
4852
|
$.push($$props, false);
|
|
4506
|
-
|
|
4507
|
-
const
|
|
4853
|
+
const [$$stores, $$cleanup] = $.setup_stores();
|
|
4854
|
+
const $rProps = () => $.store_get($.get(rProps), "$rProps", $$stores);
|
|
4855
|
+
const $clickable = () => $.store_get($.get(clickable), "$clickable", $$stores);
|
|
4856
|
+
const rProps = $.mutable_state();
|
|
4857
|
+
const clickable = $.mutable_state();
|
|
4508
4858
|
const IconComponent = $.mutable_state();
|
|
4509
4859
|
let props = $.prop($$props, "props", 24, () => ({}));
|
|
4510
|
-
let layerId = $.prop($$props, "layerId",
|
|
4511
|
-
|
|
4512
|
-
const { attributes, element, handleClick } = useClickable_default(props());
|
|
4513
|
-
const getSizeCss = () => {
|
|
4514
|
-
return {
|
|
4515
|
-
minWidth: props().width ? props().width : ICON_SIZE[props().size ?? "medium"].value,
|
|
4516
|
-
width: props().width ? props().width : ICON_SIZE[props().size ?? "medium"].value,
|
|
4517
|
-
height: props().height ? props().height : ICON_SIZE[props().size ?? "medium"].value
|
|
4518
|
-
};
|
|
4519
|
-
};
|
|
4860
|
+
let layerId = $.prop($$props, "layerId", 24, () => crypto.randomUUID());
|
|
4861
|
+
const cssText = Icon_css_default(layerId(), props());
|
|
4520
4862
|
$.legacy_pre_effect(() => $.deep_read_state(props()), () => {
|
|
4521
|
-
$.set(
|
|
4522
|
-
...getSizeCss(),
|
|
4523
|
-
...toCssCommon(props())
|
|
4524
|
-
}));
|
|
4863
|
+
$.store_unsub($.set(rProps, useResponsiveProps(props())), "$rProps", $$stores);
|
|
4525
4864
|
});
|
|
4526
|
-
$.legacy_pre_effect(() =>
|
|
4527
|
-
$.set(
|
|
4865
|
+
$.legacy_pre_effect(() => $rProps(), () => {
|
|
4866
|
+
$.store_unsub($.set(clickable, useClickable_default($rProps())), "$clickable", $$stores);
|
|
4867
|
+
});
|
|
4868
|
+
$.legacy_pre_effect(() => $rProps(), () => {
|
|
4869
|
+
$.set(IconComponent, ICON_VARIANTS[$rProps().variant] ?? void 0);
|
|
4528
4870
|
});
|
|
4529
4871
|
$.legacy_pre_effect_reset();
|
|
4530
4872
|
$.init();
|
|
4531
|
-
var fragment =
|
|
4873
|
+
var fragment = root$20();
|
|
4532
4874
|
var node = $.first_child(fragment);
|
|
4533
|
-
|
|
4534
|
-
|
|
4535
|
-
|
|
4536
|
-
|
|
4875
|
+
StylePortal(node, { cssText });
|
|
4876
|
+
var node_1 = $.sibling(node, 2);
|
|
4877
|
+
$.element(node_1, () => $clickable().element, false, ($$element, $$anchor$1) => {
|
|
4878
|
+
let attributes;
|
|
4879
|
+
$.template_effect(($0) => attributes = $.set_attributes($$element, attributes, {
|
|
4880
|
+
...$clickable().attributes,
|
|
4537
4881
|
id: props().id,
|
|
4538
4882
|
class: $0,
|
|
4539
|
-
style: $.get(style),
|
|
4540
4883
|
"data-layer-id": layerId()
|
|
4541
|
-
}
|
|
4542
|
-
$.event("click", $$element,
|
|
4884
|
+
}), [() => ["icon", ...props().classNames ?? []].join(" ")], $.derived_safe_equal);
|
|
4885
|
+
$.event("click", $$element, function(...$$args) {
|
|
4886
|
+
$clickable().handleClick?.apply(this, $$args);
|
|
4887
|
+
});
|
|
4543
4888
|
var fragment_1 = $.comment();
|
|
4544
|
-
var
|
|
4889
|
+
var node_2 = $.first_child(fragment_1);
|
|
4545
4890
|
const expression = $.derived_safe_equal(() => props().color ?? "currentColor");
|
|
4546
|
-
$.component(
|
|
4891
|
+
$.component(node_2, () => $.get(IconComponent), ($$anchor$2, $$component) => {
|
|
4547
4892
|
$$component($$anchor$2, { get color() {
|
|
4548
4893
|
return $.get(expression);
|
|
4549
4894
|
} });
|
|
@@ -4552,6 +4897,7 @@ function Icon($$anchor, $$props) {
|
|
|
4552
4897
|
});
|
|
4553
4898
|
$.append($$anchor, fragment);
|
|
4554
4899
|
$.pop();
|
|
4900
|
+
$$cleanup();
|
|
4555
4901
|
}
|
|
4556
4902
|
|
|
4557
4903
|
//#endregion
|
|
@@ -4722,126 +5068,174 @@ function darkenColor(color, percent) {
|
|
|
4722
5068
|
}
|
|
4723
5069
|
|
|
4724
5070
|
//#endregion
|
|
4725
|
-
//#region src/components-flex/button/Button.
|
|
4726
|
-
var
|
|
4727
|
-
|
|
4728
|
-
|
|
4729
|
-
|
|
4730
|
-
|
|
5071
|
+
//#region src/components-flex/button/Button.css.ts
|
|
5072
|
+
var Button_css_default = (layerId, props, brandKit) => {
|
|
5073
|
+
return createComponentRawCss(layerId, (style) => [
|
|
5074
|
+
style("", {
|
|
5075
|
+
display: "inline-flex",
|
|
5076
|
+
gap: "0.8em",
|
|
5077
|
+
alignItems: "center",
|
|
5078
|
+
justifyContent: "center",
|
|
5079
|
+
textDecoration: "none",
|
|
5080
|
+
outline: "0",
|
|
5081
|
+
borderWidth: "1px",
|
|
5082
|
+
borderStyle: "solid",
|
|
5083
|
+
lineHeight: "1.5",
|
|
5084
|
+
transition: "background-color 0.12s, border-color 0.12s, color 0.12s",
|
|
5085
|
+
cursor: "pointer"
|
|
5086
|
+
}),
|
|
5087
|
+
style("&[aria-disabled=\"true\"]", {
|
|
5088
|
+
opacity: "0.24",
|
|
5089
|
+
cursor: "not-allowed"
|
|
5090
|
+
}),
|
|
5091
|
+
style("&[aria-hidden=\"true\"]", { display: "none" }),
|
|
5092
|
+
style(".button-icon", {
|
|
5093
|
+
display: "flex",
|
|
5094
|
+
alignItems: "center",
|
|
5095
|
+
justifyContent: "center",
|
|
5096
|
+
marginLeft: "-0.2em",
|
|
5097
|
+
marginRight: "-0.2em"
|
|
5098
|
+
}),
|
|
5099
|
+
toDynamicStyle$1(layerId, props, brandKit),
|
|
5100
|
+
...props.responsiveSettings?.map((v) => {
|
|
5101
|
+
if (v.mediaQueryCondition) return toResponsiveSelector(v, toDynamicStyle$1(layerId, v.props, brandKit));
|
|
5102
|
+
else if (v.userAgentCondition) return "";
|
|
5103
|
+
return "";
|
|
5104
|
+
}) ?? [],
|
|
5105
|
+
props.customizeCss
|
|
5106
|
+
]);
|
|
5107
|
+
};
|
|
5108
|
+
const toDynamicStyle$1 = (layerId, props, brandKit) => {
|
|
5109
|
+
const buttonThemeStyles = getButtonThemeStyles(brandKit);
|
|
5110
|
+
const buttonThemeStyle = buttonThemeStyles[props.theme] || buttonThemeStyles[buttonPropsDefault.theme];
|
|
5111
|
+
const buttonSizeStyle = BUTTON_SIZE_STYLES[props.size] || BUTTON_SIZE_STYLES[buttonPropsDefault.size];
|
|
5112
|
+
const variantStyle = (() => {
|
|
5113
|
+
switch (props.variant ?? buttonThemeStyle?.variant) {
|
|
5114
|
+
case "outline": return createComponentRawCss(layerId, (style) => [style("", {
|
|
5115
|
+
color: props.color ?? buttonThemeStyle.color,
|
|
5116
|
+
borderColor: props.borderColor ?? buttonThemeStyle.borderColor,
|
|
5117
|
+
backgroundColor: props.backgroundColor ?? buttonThemeStyle.backgroundColor
|
|
5118
|
+
}), style("&:hover", {
|
|
5119
|
+
borderColor: props.borderColor ?? props.color ?? buttonThemeStyle.borderColor,
|
|
5120
|
+
backgroundColor: "#f3f4f6"
|
|
5121
|
+
})]);
|
|
5122
|
+
case "text": return createComponentRawCss(layerId, (style) => [style("", {
|
|
5123
|
+
color: props.color ?? buttonThemeStyle.color,
|
|
5124
|
+
borderColor: "rgba(255,255,255,0)",
|
|
5125
|
+
backgroundColor: "rgba(255,255,255,0)"
|
|
5126
|
+
}), style("&:hover", {
|
|
5127
|
+
borderColor: "#f3f4f6",
|
|
5128
|
+
backgroundColor: "#f3f4f6"
|
|
5129
|
+
})]);
|
|
5130
|
+
case "normal":
|
|
5131
|
+
default: return createComponentRawCss(layerId, (style) => [style("", {
|
|
5132
|
+
color: props.color ?? buttonThemeStyle.color,
|
|
5133
|
+
borderColor: props.backgroundColor ?? buttonThemeStyle.backgroundColor,
|
|
5134
|
+
backgroundColor: props.backgroundColor ?? buttonThemeStyle.backgroundColor
|
|
5135
|
+
}), style("&:hover", {
|
|
5136
|
+
borderColor: darkenColor(props.backgroundColor ?? buttonThemeStyle.backgroundColor, .16),
|
|
5137
|
+
backgroundColor: darkenColor(props.backgroundColor ?? buttonThemeStyle.backgroundColor, .16)
|
|
5138
|
+
})]);
|
|
5139
|
+
}
|
|
5140
|
+
})();
|
|
5141
|
+
return createComponentRawCss(layerId, (style) => [style("", {
|
|
5142
|
+
width: props.width,
|
|
5143
|
+
fontWeight: props.fontWeight ?? "bold",
|
|
5144
|
+
...BUTTON_WRAP_STYLES[props.wrap ?? buttonPropsDefault.wrap],
|
|
5145
|
+
...props.borderTopLeftRadius ? {
|
|
5146
|
+
borderTopLeftRadius: props.borderTopLeftRadius,
|
|
5147
|
+
borderTopRightRadius: props.borderTopRightRadius,
|
|
5148
|
+
borderBottomLeftRadius: props.borderBottomLeftRadius,
|
|
5149
|
+
borderBottomRightRadius: props.borderBottomRightRadius
|
|
5150
|
+
} : BUTTON_ROUND_STYLES[props.round ?? buttonPropsDefault.round],
|
|
5151
|
+
...props.iconAngle && { flexDirection: props.iconAngle },
|
|
5152
|
+
height: props.height ?? buttonSizeStyle.height,
|
|
5153
|
+
paddingLeft: props.paddingLeft ?? buttonSizeStyle.paddingLeft,
|
|
5154
|
+
paddingRight: props.paddingRight ?? buttonSizeStyle.paddingRight,
|
|
5155
|
+
fontSize: props.fontSize ?? buttonSizeStyle.fontSize,
|
|
5156
|
+
...toCssCommon(props),
|
|
5157
|
+
...toCssBorder(props),
|
|
5158
|
+
...toCssShadow(props)
|
|
5159
|
+
}), variantStyle]);
|
|
4731
5160
|
};
|
|
5161
|
+
|
|
5162
|
+
//#endregion
|
|
5163
|
+
//#region src/components-flex/button/Button.svelte
|
|
5164
|
+
var root_3$1 = $.template(`<div class="button-icon"><!></div>`);
|
|
5165
|
+
var root_2$10 = $.template(`<!> <span class="button-label"> </span>`, 1);
|
|
5166
|
+
var root$19 = $.template(`<!> <!>`, 1);
|
|
4732
5167
|
function Button($$anchor, $$props) {
|
|
4733
5168
|
$.push($$props, false);
|
|
4734
|
-
|
|
4735
|
-
const
|
|
4736
|
-
const
|
|
5169
|
+
const [$$stores, $$cleanup] = $.setup_stores();
|
|
5170
|
+
const $rProps = () => $.store_get($.get(rProps), "$rProps", $$stores);
|
|
5171
|
+
const $clickable = () => $.store_get($.get(clickable), "$clickable", $$stores);
|
|
5172
|
+
const rProps = $.mutable_state();
|
|
5173
|
+
const clickable = $.mutable_state();
|
|
4737
5174
|
let props = $.prop($$props, "props", 24, () => ({}));
|
|
4738
|
-
let layerId = $.prop($$props, "layerId",
|
|
4739
|
-
useInjectCustomizeCss(props(), layerId());
|
|
4740
|
-
const { attributes, element, handleClick } = useClickable_default(props());
|
|
5175
|
+
let layerId = $.prop($$props, "layerId", 24, () => crypto.randomUUID());
|
|
4741
5176
|
const { brandKit } = useBrandKit();
|
|
4742
|
-
const
|
|
4743
|
-
|
|
4744
|
-
|
|
4745
|
-
switch (props().variant ?? buttonThemeStyle?.variant) {
|
|
4746
|
-
case "outline": return "outline";
|
|
4747
|
-
case "text": return "text";
|
|
4748
|
-
case "normal":
|
|
4749
|
-
default:
|
|
4750
|
-
}
|
|
4751
|
-
})();
|
|
4752
|
-
const buttonSizeStyle = BUTTON_SIZE_STYLES[props().size] || BUTTON_SIZE_STYLES[buttonPropsDefault.size];
|
|
4753
|
-
$.legacy_pre_effect(() => ($.deep_read_state(props()), darkenColor), () => {
|
|
4754
|
-
$.set(variables$1, (() => {
|
|
4755
|
-
switch (variant) {
|
|
4756
|
-
case "outline": return {
|
|
4757
|
-
"--color": props().color ?? buttonThemeStyle.color,
|
|
4758
|
-
"--border-color": props().borderColor ?? props().color ?? buttonThemeStyle.borderColor,
|
|
4759
|
-
"--bg-color": props().backgroundColor ?? buttonThemeStyle.backgroundColor,
|
|
4760
|
-
"--hover-border-color": props().borderColor ?? props().color ?? buttonThemeStyle.borderColor,
|
|
4761
|
-
"--hover-bg-color": "#f3f4f6"
|
|
4762
|
-
};
|
|
4763
|
-
case "text": return {
|
|
4764
|
-
"--color": props().color ?? buttonThemeStyle.color,
|
|
4765
|
-
"--border-color": "rgba(255,255,255,0)",
|
|
4766
|
-
"--bg-color": "rgba(255,255,255,0)",
|
|
4767
|
-
"--hover-border-color": "#f3f4f6",
|
|
4768
|
-
"--hover-bg-color": "#f3f4f6"
|
|
4769
|
-
};
|
|
4770
|
-
default: return {
|
|
4771
|
-
"--color": props().color ?? buttonThemeStyle.color,
|
|
4772
|
-
"--border-color": props().backgroundColor ?? buttonThemeStyle.backgroundColor,
|
|
4773
|
-
"--bg-color": props().backgroundColor ?? buttonThemeStyle.backgroundColor,
|
|
4774
|
-
"--hover-border-color": darkenColor(props().backgroundColor ?? buttonThemeStyle.backgroundColor, .16),
|
|
4775
|
-
"--hover-bg-color": darkenColor(props().backgroundColor ?? buttonThemeStyle.backgroundColor, .16)
|
|
4776
|
-
};
|
|
4777
|
-
}
|
|
4778
|
-
})());
|
|
5177
|
+
const cssCode = Button_css_default(layerId(), props(), brandKit);
|
|
5178
|
+
$.legacy_pre_effect(() => $.deep_read_state(props()), () => {
|
|
5179
|
+
$.store_unsub($.set(rProps, useResponsiveProps(props())), "$rProps", $$stores);
|
|
4779
5180
|
});
|
|
4780
|
-
$.legacy_pre_effect(() => (
|
|
4781
|
-
$.set(
|
|
4782
|
-
width: props().width,
|
|
4783
|
-
fontWeight: props().fontWeight ?? "bold",
|
|
4784
|
-
...BUTTON_WRAP_STYLES[props().wrap ?? buttonPropsDefault.wrap],
|
|
4785
|
-
...props().borderTopLeftRadius ? {
|
|
4786
|
-
borderTopLeftRadius: props().borderTopLeftRadius,
|
|
4787
|
-
borderTopRightRadius: props().borderTopRightRadius,
|
|
4788
|
-
borderBottomLeftRadius: props().borderBottomLeftRadius,
|
|
4789
|
-
borderBottomRightRadius: props().borderBottomRightRadius
|
|
4790
|
-
} : BUTTON_ROUND_STYLES[props().round ?? buttonPropsDefault.round],
|
|
4791
|
-
...props().iconAngle ? { flexDirection: props().iconAngle } : {},
|
|
4792
|
-
height: props().height ?? buttonSizeStyle.height,
|
|
4793
|
-
paddingLeft: props().paddingLeft ?? buttonSizeStyle.paddingLeft,
|
|
4794
|
-
paddingRight: props().paddingRight ?? buttonSizeStyle.paddingRight,
|
|
4795
|
-
fontSize: props().fontSize ?? buttonSizeStyle.fontSize,
|
|
4796
|
-
...toCssCommon(props()),
|
|
4797
|
-
...toCssBorder(props()),
|
|
4798
|
-
...toCssShadow(props()),
|
|
4799
|
-
...$.get(variables$1)
|
|
4800
|
-
}));
|
|
5181
|
+
$.legacy_pre_effect(() => $rProps(), () => {
|
|
5182
|
+
$.store_unsub($.set(clickable, useClickable_default($rProps())), "$clickable", $$stores);
|
|
4801
5183
|
});
|
|
4802
5184
|
$.legacy_pre_effect_reset();
|
|
4803
5185
|
$.init();
|
|
4804
|
-
var fragment =
|
|
5186
|
+
var fragment = root$19();
|
|
4805
5187
|
var node = $.first_child(fragment);
|
|
4806
|
-
|
|
4807
|
-
|
|
4808
|
-
|
|
4809
|
-
|
|
4810
|
-
|
|
4811
|
-
|
|
4812
|
-
|
|
4813
|
-
|
|
4814
|
-
|
|
4815
|
-
|
|
4816
|
-
|
|
4817
|
-
|
|
4818
|
-
|
|
4819
|
-
|
|
4820
|
-
|
|
4821
|
-
|
|
4822
|
-
|
|
4823
|
-
|
|
4824
|
-
|
|
4825
|
-
|
|
4826
|
-
|
|
4827
|
-
|
|
4828
|
-
|
|
4829
|
-
|
|
4830
|
-
|
|
4831
|
-
|
|
4832
|
-
|
|
4833
|
-
|
|
4834
|
-
|
|
4835
|
-
|
|
5188
|
+
StylePortal(node, { cssText: cssCode });
|
|
5189
|
+
var node_1 = $.sibling(node, 2);
|
|
5190
|
+
var consequent_1 = ($$anchor$1) => {
|
|
5191
|
+
var fragment_1 = $.comment();
|
|
5192
|
+
var node_2 = $.first_child(fragment_1);
|
|
5193
|
+
$.element(node_2, () => $clickable().element, false, ($$element, $$anchor$2) => {
|
|
5194
|
+
let attributes;
|
|
5195
|
+
$.template_effect(($0) => attributes = $.set_attributes($$element, attributes, {
|
|
5196
|
+
...$clickable().attributes,
|
|
5197
|
+
id: $rProps().id,
|
|
5198
|
+
class: $0,
|
|
5199
|
+
"data-layer-id": layerId(),
|
|
5200
|
+
"data-variant": $rProps().variant
|
|
5201
|
+
}), [() => ["button", ...$rProps().classNames ?? []].join(" ")], $.derived_safe_equal);
|
|
5202
|
+
$.event("click", $$element, function(...$$args) {
|
|
5203
|
+
$clickable().handleClick?.apply(this, $$args);
|
|
5204
|
+
});
|
|
5205
|
+
var fragment_2 = root_2$10();
|
|
5206
|
+
var node_3 = $.first_child(fragment_2);
|
|
5207
|
+
var consequent = ($$anchor$3) => {
|
|
5208
|
+
var div = root_3$1();
|
|
5209
|
+
var node_4 = $.child(div);
|
|
5210
|
+
const expression = $.derived_safe_equal(() => ({
|
|
5211
|
+
variant: $rProps().iconVariant,
|
|
5212
|
+
color: $rProps().iconColor ?? $rProps().color,
|
|
5213
|
+
width: "1em",
|
|
5214
|
+
height: "1em"
|
|
5215
|
+
}));
|
|
5216
|
+
Icon(node_4, { get props() {
|
|
5217
|
+
return $.get(expression);
|
|
5218
|
+
} });
|
|
5219
|
+
$.reset(div);
|
|
5220
|
+
$.append($$anchor$3, div);
|
|
5221
|
+
};
|
|
5222
|
+
$.if(node_3, ($$render) => {
|
|
5223
|
+
if (props().isIcon && props().iconVariant) $$render(consequent);
|
|
5224
|
+
});
|
|
5225
|
+
var span = $.sibling(node_3, 2);
|
|
5226
|
+
var text = $.child(span, true);
|
|
5227
|
+
$.reset(span);
|
|
5228
|
+
$.template_effect(() => $.set_text(text, $rProps().label ?? buttonPropsDefault.label));
|
|
5229
|
+
$.append($$anchor$2, fragment_2);
|
|
4836
5230
|
});
|
|
4837
|
-
var span = $.sibling(node_1, 2);
|
|
4838
|
-
var text = $.child(span, true);
|
|
4839
|
-
$.reset(span);
|
|
4840
|
-
$.template_effect(() => $.set_text(text, props().label ?? buttonPropsDefault.label));
|
|
4841
5231
|
$.append($$anchor$1, fragment_1);
|
|
5232
|
+
};
|
|
5233
|
+
$.if(node_1, ($$render) => {
|
|
5234
|
+
if (!$rProps().hidden) $$render(consequent_1);
|
|
4842
5235
|
});
|
|
4843
5236
|
$.append($$anchor, fragment);
|
|
4844
5237
|
$.pop();
|
|
5238
|
+
$$cleanup();
|
|
4845
5239
|
}
|
|
4846
5240
|
|
|
4847
5241
|
//#endregion
|
|
@@ -4855,6 +5249,20 @@ const buttonOutlinedPropsDefault = {
|
|
|
4855
5249
|
wrap: "nowrap"
|
|
4856
5250
|
};
|
|
4857
5251
|
|
|
5252
|
+
//#endregion
|
|
5253
|
+
//#region src/components-flex/utils/obj-to-style.ts
|
|
5254
|
+
const toHyphenCase = (str) => {
|
|
5255
|
+
let result = str.replace(/_/g, "-");
|
|
5256
|
+
result = result.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase();
|
|
5257
|
+
return result;
|
|
5258
|
+
};
|
|
5259
|
+
const objToStyle = (obj) => {
|
|
5260
|
+
return Object.entries(obj).map(([key, value]) => {
|
|
5261
|
+
if (value === void 0) return "";
|
|
5262
|
+
return `${toHyphenCase(key)}: ${value};`;
|
|
5263
|
+
}).filter((v) => v !== "").join(" ");
|
|
5264
|
+
};
|
|
5265
|
+
|
|
4858
5266
|
//#endregion
|
|
4859
5267
|
//#region src/components-flex/button-outlined/styles.ts
|
|
4860
5268
|
const BUTTON_OUTLINED_SIZE_STYLES = {
|
|
@@ -4937,27 +5345,59 @@ const BUTTON_OUTLINED_WRAP_STYLES = {
|
|
|
4937
5345
|
wrap: { whiteSpace: "pre-wrap" }
|
|
4938
5346
|
};
|
|
4939
5347
|
|
|
5348
|
+
//#endregion
|
|
5349
|
+
//#region src/hooks/useInjectCustomizeCss.ts
|
|
5350
|
+
const DATA_ATTR_LAYER_ID_KEY = "data-customize-css-layer-id";
|
|
5351
|
+
const useInjectCustomizeCss = (props, layerId) => {
|
|
5352
|
+
function injectCss() {
|
|
5353
|
+
let headAppended = false;
|
|
5354
|
+
const roots = Array.from(document.querySelectorAll(`.${KARTE_ACTION_ROOT}[data-${KARTE_ACTION_RID}='${actionId}']`));
|
|
5355
|
+
const style = document.createElement("style");
|
|
5356
|
+
style.setAttribute(DATA_ATTR_LAYER_ID_KEY, layerId);
|
|
5357
|
+
style.textContent = props.customizeCss;
|
|
5358
|
+
roots.forEach((root$56) => {
|
|
5359
|
+
if (root$56 && root$56.shadowRoot) {
|
|
5360
|
+
Array.from(root$56.shadowRoot.querySelectorAll(`style[${DATA_ATTR_LAYER_ID_KEY}='${layerId}']`)).forEach((style$1) => {
|
|
5361
|
+
style$1.parentNode?.removeChild(style$1);
|
|
5362
|
+
});
|
|
5363
|
+
root$56.shadowRoot.appendChild(style);
|
|
5364
|
+
} else if (!headAppended) {
|
|
5365
|
+
document.head.appendChild(style);
|
|
5366
|
+
headAppended = true;
|
|
5367
|
+
}
|
|
5368
|
+
});
|
|
5369
|
+
}
|
|
5370
|
+
onMount$1(() => {
|
|
5371
|
+
if (!props.isCustomizeCss) return;
|
|
5372
|
+
injectCss();
|
|
5373
|
+
});
|
|
5374
|
+
};
|
|
5375
|
+
|
|
4940
5376
|
//#endregion
|
|
4941
5377
|
//#region src/components-flex/button-outlined/ButtonOutlined.svelte
|
|
4942
|
-
var root_2$
|
|
4943
|
-
var root_1$
|
|
4944
|
-
const $$css$
|
|
5378
|
+
var root_2$9 = $.template(`<div class="button-outlined-icon svelte-z8gomx"><!></div>`);
|
|
5379
|
+
var root_1$13 = $.template(`<!> <span class="button-outlined-label svelte-z8gomx"> </span>`, 1);
|
|
5380
|
+
const $$css$25 = {
|
|
4945
5381
|
hash: "svelte-z8gomx",
|
|
4946
5382
|
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;}"
|
|
4947
5383
|
};
|
|
4948
5384
|
function ButtonOutlined($$anchor, $$props) {
|
|
4949
5385
|
$.push($$props, false);
|
|
4950
|
-
$.append_styles($$anchor, $$css$
|
|
5386
|
+
$.append_styles($$anchor, $$css$25);
|
|
5387
|
+
const [$$stores, $$cleanup] = $.setup_stores();
|
|
5388
|
+
const $clickable = () => $.store_get($.get(clickable), "$clickable", $$stores);
|
|
5389
|
+
const clickable = $.mutable_state();
|
|
4951
5390
|
const variables$1 = $.mutable_state();
|
|
4952
5391
|
const style = $.mutable_state();
|
|
4953
5392
|
let props = $.prop($$props, "props", 24, () => ({}));
|
|
4954
5393
|
let layerId = $.prop($$props, "layerId", 8, "");
|
|
4955
5394
|
useInjectCustomizeCss(props(), layerId());
|
|
4956
5395
|
const { brandKit } = useBrandKit();
|
|
4957
|
-
const
|
|
4958
|
-
const buttonThemeStyles = getButtonOutlinedThemeStyles(brandKit);
|
|
4959
|
-
const buttonThemeStyle = buttonThemeStyles[props().theme ?? buttonOutlinedPropsDefault.theme];
|
|
5396
|
+
const buttonThemeStyle = getButtonOutlinedThemeStyles(brandKit)[props().theme ?? buttonOutlinedPropsDefault.theme];
|
|
4960
5397
|
const buttonSizeStyle = BUTTON_OUTLINED_SIZE_STYLES[props().size ?? buttonOutlinedPropsDefault.size];
|
|
5398
|
+
$.legacy_pre_effect(() => $.deep_read_state(props()), () => {
|
|
5399
|
+
$.store_unsub($.set(clickable, useClickable_default(props())), "$clickable", $$stores);
|
|
5400
|
+
});
|
|
4961
5401
|
$.legacy_pre_effect(() => ($.deep_read_state(props()), darkenColor), () => {
|
|
4962
5402
|
$.set(variables$1, {
|
|
4963
5403
|
"--bg-color": props().backgroundColor ?? buttonThemeStyle.backgroundColor,
|
|
@@ -4987,19 +5427,21 @@ function ButtonOutlined($$anchor, $$props) {
|
|
|
4987
5427
|
$.init();
|
|
4988
5428
|
var fragment = $.comment();
|
|
4989
5429
|
var node = $.first_child(fragment);
|
|
4990
|
-
$.element(node, () => element, false, ($$element, $$anchor$1) => {
|
|
4991
|
-
let
|
|
4992
|
-
$.template_effect(() =>
|
|
4993
|
-
|
|
5430
|
+
$.element(node, () => $clickable().element, false, ($$element, $$anchor$1) => {
|
|
5431
|
+
let attributes;
|
|
5432
|
+
$.template_effect(() => attributes = $.set_attributes($$element, attributes, {
|
|
5433
|
+
...$clickable().attributes,
|
|
4994
5434
|
class: "button-outlined",
|
|
4995
5435
|
style: $.get(style),
|
|
4996
5436
|
"data-layer-id": layerId()
|
|
4997
5437
|
}, "svelte-z8gomx"));
|
|
4998
|
-
$.event("click", $$element,
|
|
4999
|
-
|
|
5438
|
+
$.event("click", $$element, function(...$$args) {
|
|
5439
|
+
$clickable().handleClick?.apply(this, $$args);
|
|
5440
|
+
});
|
|
5441
|
+
var fragment_1 = root_1$13();
|
|
5000
5442
|
var node_1 = $.first_child(fragment_1);
|
|
5001
5443
|
var consequent = ($$anchor$2) => {
|
|
5002
|
-
var div = root_2$
|
|
5444
|
+
var div = root_2$9();
|
|
5003
5445
|
var node_2 = $.child(div);
|
|
5004
5446
|
const expression = $.derived_safe_equal(() => ({
|
|
5005
5447
|
variant: props().iconVariant,
|
|
@@ -5024,6 +5466,7 @@ function ButtonOutlined($$anchor, $$props) {
|
|
|
5024
5466
|
});
|
|
5025
5467
|
$.append($$anchor, fragment);
|
|
5026
5468
|
$.pop();
|
|
5469
|
+
$$cleanup();
|
|
5027
5470
|
}
|
|
5028
5471
|
|
|
5029
5472
|
//#endregion
|
|
@@ -5086,25 +5529,29 @@ const getButtonTextThemeStyles = getPropStyles(callback$2);
|
|
|
5086
5529
|
|
|
5087
5530
|
//#endregion
|
|
5088
5531
|
//#region src/components-flex/button-text/ButtonText.svelte
|
|
5089
|
-
var root_2$
|
|
5090
|
-
var root_1$
|
|
5091
|
-
const $$css$
|
|
5532
|
+
var root_2$8 = $.template(`<div class="button-text-icon svelte-l90o4j"><!></div>`);
|
|
5533
|
+
var root_1$12 = $.template(`<!> <span class="button-text-label svelte-l90o4j"> </span>`, 1);
|
|
5534
|
+
const $$css$24 = {
|
|
5092
5535
|
hash: "svelte-l90o4j",
|
|
5093
5536
|
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;}"
|
|
5094
5537
|
};
|
|
5095
5538
|
function ButtonText($$anchor, $$props) {
|
|
5096
5539
|
$.push($$props, false);
|
|
5097
|
-
$.append_styles($$anchor, $$css$
|
|
5540
|
+
$.append_styles($$anchor, $$css$24);
|
|
5541
|
+
const [$$stores, $$cleanup] = $.setup_stores();
|
|
5542
|
+
const $clickable = () => $.store_get($.get(clickable), "$clickable", $$stores);
|
|
5543
|
+
const clickable = $.mutable_state();
|
|
5098
5544
|
const variables$1 = $.mutable_state();
|
|
5099
5545
|
const style = $.mutable_state();
|
|
5100
5546
|
let props = $.prop($$props, "props", 24, () => ({}));
|
|
5101
5547
|
let layerId = $.prop($$props, "layerId", 8, "");
|
|
5102
5548
|
useInjectCustomizeCss(props(), layerId());
|
|
5103
5549
|
const { brandKit } = useBrandKit();
|
|
5104
|
-
const
|
|
5105
|
-
const themeStyles = getButtonTextThemeStyles(brandKit);
|
|
5106
|
-
const buttonThemeStyle = themeStyles[props().theme ?? "default"];
|
|
5550
|
+
const buttonThemeStyle = getButtonTextThemeStyles(brandKit)[props().theme ?? "default"];
|
|
5107
5551
|
const buttonSizeStyle = BUTTON_TEXT_SIZE_STYLES[props().size ?? "medium"];
|
|
5552
|
+
$.legacy_pre_effect(() => $.deep_read_state(props()), () => {
|
|
5553
|
+
$.store_unsub($.set(clickable, useClickable_default(props())), "$clickable", $$stores);
|
|
5554
|
+
});
|
|
5108
5555
|
$.legacy_pre_effect(() => $.deep_read_state(props()), () => {
|
|
5109
5556
|
$.set(variables$1, { "--hover-bg-color": props().backgroundColor ?? buttonThemeStyle.backgroundColor });
|
|
5110
5557
|
});
|
|
@@ -5128,19 +5575,21 @@ function ButtonText($$anchor, $$props) {
|
|
|
5128
5575
|
$.init();
|
|
5129
5576
|
var fragment = $.comment();
|
|
5130
5577
|
var node = $.first_child(fragment);
|
|
5131
|
-
$.element(node, () => element, false, ($$element, $$anchor$1) => {
|
|
5132
|
-
let
|
|
5133
|
-
$.template_effect(() =>
|
|
5134
|
-
|
|
5578
|
+
$.element(node, () => $clickable().element, false, ($$element, $$anchor$1) => {
|
|
5579
|
+
let attributes;
|
|
5580
|
+
$.template_effect(() => attributes = $.set_attributes($$element, attributes, {
|
|
5581
|
+
...$clickable().attributes,
|
|
5135
5582
|
class: "button-text",
|
|
5136
5583
|
style: $.get(style),
|
|
5137
5584
|
"data-layer-id": layerId()
|
|
5138
5585
|
}, "svelte-l90o4j"));
|
|
5139
|
-
$.event("click", $$element,
|
|
5140
|
-
|
|
5586
|
+
$.event("click", $$element, function(...$$args) {
|
|
5587
|
+
$clickable().handleClick?.apply(this, $$args);
|
|
5588
|
+
});
|
|
5589
|
+
var fragment_1 = root_1$12();
|
|
5141
5590
|
var node_1 = $.first_child(fragment_1);
|
|
5142
5591
|
var consequent = ($$anchor$2) => {
|
|
5143
|
-
var div = root_2$
|
|
5592
|
+
var div = root_2$8();
|
|
5144
5593
|
var node_2 = $.child(div);
|
|
5145
5594
|
const expression = $.derived_safe_equal(() => ({
|
|
5146
5595
|
variant: props().iconVariant,
|
|
@@ -5165,6 +5614,7 @@ function ButtonText($$anchor, $$props) {
|
|
|
5165
5614
|
});
|
|
5166
5615
|
$.append($$anchor, fragment);
|
|
5167
5616
|
$.pop();
|
|
5617
|
+
$$cleanup();
|
|
5168
5618
|
}
|
|
5169
5619
|
|
|
5170
5620
|
//#endregion
|
|
@@ -5201,15 +5651,18 @@ const getTextThemeStyles = getPropStyles(callback$1);
|
|
|
5201
5651
|
|
|
5202
5652
|
//#endregion
|
|
5203
5653
|
//#region src/components-flex/close-button/CloseButton.svelte
|
|
5204
|
-
var root_2$
|
|
5205
|
-
var root_1$
|
|
5206
|
-
const $$css$
|
|
5654
|
+
var root_2$7 = $.template(`<span></span>`);
|
|
5655
|
+
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);
|
|
5656
|
+
const $$css$23 = {
|
|
5207
5657
|
hash: "svelte-18wmfyq",
|
|
5208
5658
|
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;}"
|
|
5209
5659
|
};
|
|
5210
5660
|
function CloseButton($$anchor, $$props) {
|
|
5211
5661
|
$.push($$props, false);
|
|
5212
|
-
$.append_styles($$anchor, $$css$
|
|
5662
|
+
$.append_styles($$anchor, $$css$23);
|
|
5663
|
+
const [$$stores, $$cleanup] = $.setup_stores();
|
|
5664
|
+
const $clickable = () => $.store_get($.get(clickable), "$clickable", $$stores);
|
|
5665
|
+
const clickable = $.mutable_state();
|
|
5213
5666
|
const hasLabel = $.mutable_state();
|
|
5214
5667
|
const styleObj = $.mutable_state();
|
|
5215
5668
|
const style = $.mutable_state();
|
|
@@ -5223,14 +5676,6 @@ function CloseButton($$anchor, $$props) {
|
|
|
5223
5676
|
let eventValue = $.prop($$props, "eventValue", 8, void 0);
|
|
5224
5677
|
const { brandKit } = useBrandKit();
|
|
5225
5678
|
useInjectCustomizeCss(props(), layerId());
|
|
5226
|
-
const { attributes, element, handleClick } = useClickable_default(props().onClick ? props() : {
|
|
5227
|
-
onClick: {
|
|
5228
|
-
operation: "closeApp",
|
|
5229
|
-
args: ["button"]
|
|
5230
|
-
},
|
|
5231
|
-
eventValue: eventValue(),
|
|
5232
|
-
eventName: eventName()
|
|
5233
|
-
});
|
|
5234
5679
|
const VARIANTS = {
|
|
5235
5680
|
placement: {
|
|
5236
5681
|
topRight: {
|
|
@@ -5260,6 +5705,16 @@ function CloseButton($$anchor, $$props) {
|
|
|
5260
5705
|
const color = props().color ?? getTextThemeStyles(brandKit)[props().colorVariant]?.color ?? "#666";
|
|
5261
5706
|
const label = props().label;
|
|
5262
5707
|
const isLeftLabelPlacement = props().labelPlacement === "left";
|
|
5708
|
+
$.legacy_pre_effect(() => ($.deep_read_state(props()), $.deep_read_state(eventValue()), $.deep_read_state(eventName())), () => {
|
|
5709
|
+
$.store_unsub($.set(clickable, useClickable_default(props().onClick ? props() : {
|
|
5710
|
+
onClick: {
|
|
5711
|
+
operation: "closeApp",
|
|
5712
|
+
args: ["button"]
|
|
5713
|
+
},
|
|
5714
|
+
eventValue: eventValue(),
|
|
5715
|
+
eventName: eventName()
|
|
5716
|
+
})), "$clickable", $$stores);
|
|
5717
|
+
});
|
|
5263
5718
|
$.legacy_pre_effect(() => {}, () => {
|
|
5264
5719
|
$.set(hasLabel, label !== void 0 && label !== "");
|
|
5265
5720
|
});
|
|
@@ -5311,24 +5766,26 @@ function CloseButton($$anchor, $$props) {
|
|
|
5311
5766
|
$.init();
|
|
5312
5767
|
var fragment = $.comment();
|
|
5313
5768
|
var node = $.first_child(fragment);
|
|
5314
|
-
$.element(node, () => element, false, ($$element, $$anchor$1) => {
|
|
5315
|
-
let
|
|
5316
|
-
$.template_effect(($0) =>
|
|
5317
|
-
|
|
5769
|
+
$.element(node, () => $clickable().element, false, ($$element, $$anchor$1) => {
|
|
5770
|
+
let attributes;
|
|
5771
|
+
$.template_effect(($0) => attributes = $.set_attributes($$element, attributes, {
|
|
5772
|
+
...$clickable().attributes,
|
|
5318
5773
|
id: props().id,
|
|
5319
5774
|
class: $0,
|
|
5320
5775
|
"data-layer-id": layerId(),
|
|
5321
5776
|
style: $.get(style)
|
|
5322
5777
|
}, "svelte-18wmfyq"), [() => [`close-button ${isLeftLabelPlacement ? "close-button-order-two" : ""}`, ...props().classNames ?? []].join(" ")], $.derived_safe_equal);
|
|
5323
|
-
$.event("click", $$element,
|
|
5324
|
-
|
|
5778
|
+
$.event("click", $$element, function(...$$args) {
|
|
5779
|
+
$clickable().handleClick?.apply(this, $$args);
|
|
5780
|
+
});
|
|
5781
|
+
var fragment_1 = root_1$11();
|
|
5325
5782
|
var span = $.first_child(fragment_1);
|
|
5326
5783
|
var svg = $.child(span);
|
|
5327
5784
|
$.set_attribute(svg, "fill", color);
|
|
5328
5785
|
$.reset(span);
|
|
5329
5786
|
var node_1 = $.sibling(span, 2);
|
|
5330
5787
|
var consequent = ($$anchor$2) => {
|
|
5331
|
-
var span_1 = root_2$
|
|
5788
|
+
var span_1 = root_2$7();
|
|
5332
5789
|
$.set_class(span_1, 1, `close-button-label ${isLeftLabelPlacement ? "close-button-order-one" : ""}`, "svelte-18wmfyq");
|
|
5333
5790
|
span_1.textContent = label;
|
|
5334
5791
|
$.template_effect(() => $.set_style(span_1, $.get(labelStyle)));
|
|
@@ -5342,6 +5799,7 @@ function CloseButton($$anchor, $$props) {
|
|
|
5342
5799
|
});
|
|
5343
5800
|
$.append($$anchor, fragment);
|
|
5344
5801
|
$.pop();
|
|
5802
|
+
$$cleanup();
|
|
5345
5803
|
}
|
|
5346
5804
|
|
|
5347
5805
|
//#endregion
|
|
@@ -5420,29 +5878,34 @@ const IMAGE_ROUND_STYLES = {
|
|
|
5420
5878
|
|
|
5421
5879
|
//#endregion
|
|
5422
5880
|
//#region src/components-flex/image/Image.svelte
|
|
5423
|
-
var root_1$
|
|
5424
|
-
const $$css$
|
|
5881
|
+
var root_1$10 = $.template(`<img class="image-img svelte-1olvu11">`);
|
|
5882
|
+
const $$css$22 = {
|
|
5425
5883
|
hash: "svelte-1olvu11",
|
|
5426
5884
|
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;}"
|
|
5427
5885
|
};
|
|
5428
5886
|
function Image($$anchor, $$props) {
|
|
5429
5887
|
$.push($$props, false);
|
|
5430
|
-
$.append_styles($$anchor, $$css$
|
|
5888
|
+
$.append_styles($$anchor, $$css$22);
|
|
5889
|
+
const [$$stores, $$cleanup] = $.setup_stores();
|
|
5890
|
+
const $clickable = () => $.store_get($.get(clickable), "$clickable", $$stores);
|
|
5891
|
+
const clickable = $.mutable_state();
|
|
5431
5892
|
const styleObj = $.mutable_state();
|
|
5432
5893
|
const style = $.mutable_state();
|
|
5433
5894
|
const imgStyle = $.mutable_state();
|
|
5434
5895
|
let props = $.prop($$props, "props", 24, () => ({}));
|
|
5435
5896
|
let layerId = $.prop($$props, "layerId", 8, "");
|
|
5436
5897
|
useInjectCustomizeCss(props(), layerId());
|
|
5437
|
-
const { attributes, element, handleClick } = useClickable_default(props());
|
|
5438
5898
|
const aspectVariantStyles = ASPECT_VARIANT[props().aspectVariant]?.getProps();
|
|
5439
5899
|
const width = props().width ?? "100%";
|
|
5440
|
-
const calcImgRadius = (parentRadius, borderWidth) => {
|
|
5900
|
+
const calcImgRadius$1 = (parentRadius, borderWidth) => {
|
|
5441
5901
|
const radiusSize = parentRadius ? parseInt(parentRadius) : 0;
|
|
5442
5902
|
if (radiusSize === 0) return 0;
|
|
5443
5903
|
if (parentRadius === "100%") return "100%";
|
|
5444
5904
|
return radiusSize > 0 ? `calc(${parentRadius} - ${borderWidth})` : void 0;
|
|
5445
5905
|
};
|
|
5906
|
+
$.legacy_pre_effect(() => $.deep_read_state(props()), () => {
|
|
5907
|
+
$.store_unsub($.set(clickable, useClickable_default(props())), "$clickable", $$stores);
|
|
5908
|
+
});
|
|
5446
5909
|
$.legacy_pre_effect(() => ($.deep_read_state(props()), toCssPadding), () => {
|
|
5447
5910
|
$.set(styleObj, {
|
|
5448
5911
|
...props().borderTopLeftRadius ? toCssRadius(props()) : IMAGE_ROUND_STYLES[props().shape ?? "square"],
|
|
@@ -5460,27 +5923,29 @@ function Image($$anchor, $$props) {
|
|
|
5460
5923
|
});
|
|
5461
5924
|
$.legacy_pre_effect(() => $.get(styleObj), () => {
|
|
5462
5925
|
$.set(imgStyle, objToStyle({ ...toCssRadius({
|
|
5463
|
-
borderTopLeftRadius: calcImgRadius($.get(styleObj).borderTopLeftRadius, $.get(styleObj).borderTopWidth),
|
|
5464
|
-
borderTopRightRadius: calcImgRadius($.get(styleObj).borderTopRightRadius, $.get(styleObj).borderTopWidth),
|
|
5465
|
-
borderBottomLeftRadius: calcImgRadius($.get(styleObj).borderBottomLeftRadius, $.get(styleObj).borderTopWidth),
|
|
5466
|
-
borderBottomRightRadius: calcImgRadius($.get(styleObj).borderBottomRightRadius, $.get(styleObj).borderTopWidth)
|
|
5926
|
+
borderTopLeftRadius: calcImgRadius$1($.get(styleObj).borderTopLeftRadius, $.get(styleObj).borderTopWidth),
|
|
5927
|
+
borderTopRightRadius: calcImgRadius$1($.get(styleObj).borderTopRightRadius, $.get(styleObj).borderTopWidth),
|
|
5928
|
+
borderBottomLeftRadius: calcImgRadius$1($.get(styleObj).borderBottomLeftRadius, $.get(styleObj).borderTopWidth),
|
|
5929
|
+
borderBottomRightRadius: calcImgRadius$1($.get(styleObj).borderBottomRightRadius, $.get(styleObj).borderTopWidth)
|
|
5467
5930
|
}) }));
|
|
5468
5931
|
});
|
|
5469
5932
|
$.legacy_pre_effect_reset();
|
|
5470
5933
|
$.init();
|
|
5471
5934
|
var fragment = $.comment();
|
|
5472
5935
|
var node = $.first_child(fragment);
|
|
5473
|
-
$.element(node, () => element, false, ($$element, $$anchor$1) => {
|
|
5474
|
-
let
|
|
5475
|
-
$.template_effect(($0) =>
|
|
5476
|
-
|
|
5936
|
+
$.element(node, () => $clickable().element, false, ($$element, $$anchor$1) => {
|
|
5937
|
+
let attributes;
|
|
5938
|
+
$.template_effect(($0) => attributes = $.set_attributes($$element, attributes, {
|
|
5939
|
+
...$clickable().attributes,
|
|
5477
5940
|
id: props().id,
|
|
5478
5941
|
class: $0,
|
|
5479
5942
|
style: $.get(style),
|
|
5480
5943
|
"data-layer-id": layerId()
|
|
5481
5944
|
}, "svelte-1olvu11"), [() => ["image", ...props().classNames ?? []].join(" ")], $.derived_safe_equal);
|
|
5482
|
-
$.event("click", $$element,
|
|
5483
|
-
|
|
5945
|
+
$.event("click", $$element, function(...$$args) {
|
|
5946
|
+
$clickable().handleClick?.apply(this, $$args);
|
|
5947
|
+
});
|
|
5948
|
+
var img = root_1$10();
|
|
5484
5949
|
$.template_effect(() => {
|
|
5485
5950
|
$.set_attribute(img, "src", props().image);
|
|
5486
5951
|
$.set_attribute(img, "alt", props().alt);
|
|
@@ -5490,6 +5955,7 @@ function Image($$anchor, $$props) {
|
|
|
5490
5955
|
});
|
|
5491
5956
|
$.append($$anchor, fragment);
|
|
5492
5957
|
$.pop();
|
|
5958
|
+
$$cleanup();
|
|
5493
5959
|
}
|
|
5494
5960
|
|
|
5495
5961
|
//#endregion
|
|
@@ -5513,61 +5979,98 @@ const IMAGE_ASPECT_VARIANTS = {
|
|
|
5513
5979
|
};
|
|
5514
5980
|
|
|
5515
5981
|
//#endregion
|
|
5516
|
-
//#region src/components-flex/layout/Layout.
|
|
5517
|
-
|
|
5518
|
-
|
|
5519
|
-
|
|
5982
|
+
//#region src/components-flex/layout/Layout.css.ts
|
|
5983
|
+
var Layout_css_default = (layerId, props, brandKit) => {
|
|
5984
|
+
const toDynamicStyle$4 = (_props) => {
|
|
5985
|
+
return createComponentRawCss(layerId, (style) => [style("", {
|
|
5986
|
+
display: _props.display ?? "flex",
|
|
5987
|
+
flexDirection: _props.direction,
|
|
5988
|
+
alignItems: _props.align,
|
|
5989
|
+
justifyContent: _props.justify,
|
|
5990
|
+
rowGap: _props.rowGap ?? _props.gap,
|
|
5991
|
+
columnGap: _props.columnGap ?? _props.gap,
|
|
5992
|
+
width: _props.width,
|
|
5993
|
+
maxWidth: _props.maxWidth,
|
|
5994
|
+
height: _props.height,
|
|
5995
|
+
...toCssOverflow(_props),
|
|
5996
|
+
...toCssShadow(_props),
|
|
5997
|
+
...toCssRadius(_props),
|
|
5998
|
+
...toCssBackground(_props, brandKit),
|
|
5999
|
+
...toCssCommon(_props),
|
|
6000
|
+
...toCssPadding(_props),
|
|
6001
|
+
...toCssBorder(_props, brandKit)
|
|
6002
|
+
})]);
|
|
6003
|
+
};
|
|
6004
|
+
return createComponentRawCss(layerId, (style) => [
|
|
6005
|
+
style("", {
|
|
6006
|
+
textDecoration: "none",
|
|
6007
|
+
color: "inherit"
|
|
6008
|
+
}),
|
|
6009
|
+
style("&[data-clickable=\"true\"]", { cursor: "pointer" }),
|
|
6010
|
+
style("&[data-clickable=\"true\"]:hover", { opacity: .8 }),
|
|
6011
|
+
toDynamicStyle$4(props),
|
|
6012
|
+
...props.responsiveSettings?.map((v) => {
|
|
6013
|
+
if (v.mediaQueryCondition) return toResponsiveSelector(v, toDynamicStyle$4(v.props));
|
|
6014
|
+
else if (v.userAgentCondition) return "";
|
|
6015
|
+
return "";
|
|
6016
|
+
}) ?? [],
|
|
6017
|
+
props.customizeCss
|
|
6018
|
+
]);
|
|
5520
6019
|
};
|
|
6020
|
+
|
|
6021
|
+
//#endregion
|
|
6022
|
+
//#region src/components-flex/layout/Layout.svelte
|
|
6023
|
+
var root$18 = $.template(`<!> <!>`, 1);
|
|
5521
6024
|
function Layout($$anchor, $$props) {
|
|
5522
6025
|
$.push($$props, false);
|
|
5523
|
-
|
|
5524
|
-
const
|
|
6026
|
+
const [$$stores, $$cleanup] = $.setup_stores();
|
|
6027
|
+
const $rProps = () => $.store_get($.get(rProps), "$rProps", $$stores);
|
|
6028
|
+
const $clickable = () => $.store_get($.get(clickable), "$clickable", $$stores);
|
|
6029
|
+
const rProps = $.mutable_state();
|
|
6030
|
+
const clickable = $.mutable_state();
|
|
5525
6031
|
let props = $.prop($$props, "props", 24, () => ({}));
|
|
5526
|
-
let layerId = $.prop($$props, "layerId",
|
|
6032
|
+
let layerId = $.prop($$props, "layerId", 24, () => crypto.randomUUID());
|
|
5527
6033
|
const { brandKit } = useBrandKit();
|
|
5528
|
-
|
|
5529
|
-
|
|
5530
|
-
|
|
5531
|
-
|
|
5532
|
-
|
|
5533
|
-
|
|
5534
|
-
alignItems: props().align,
|
|
5535
|
-
justifyContent: props().justify,
|
|
5536
|
-
rowGap: props().rowGap ?? props().gap,
|
|
5537
|
-
columnGap: props().columnGap ?? props().gap,
|
|
5538
|
-
width: props().width,
|
|
5539
|
-
maxWidth: props().maxWidth,
|
|
5540
|
-
height: props().height,
|
|
5541
|
-
...toCssOverflow(props()),
|
|
5542
|
-
...toCssShadow(props()),
|
|
5543
|
-
...toCssRadius(props()),
|
|
5544
|
-
...toCssBackground(props(), brandKit),
|
|
5545
|
-
...toCssCommon(props()),
|
|
5546
|
-
...toCssPadding(props()),
|
|
5547
|
-
...toCssBorder(props(), brandKit)
|
|
5548
|
-
}));
|
|
6034
|
+
const cssCode = Layout_css_default(layerId(), props(), brandKit);
|
|
6035
|
+
$.legacy_pre_effect(() => $.deep_read_state(props()), () => {
|
|
6036
|
+
$.store_unsub($.set(rProps, useResponsiveProps(props())), "$rProps", $$stores);
|
|
6037
|
+
});
|
|
6038
|
+
$.legacy_pre_effect(() => $rProps(), () => {
|
|
6039
|
+
$.store_unsub($.set(clickable, useClickable_default($rProps())), "$clickable", $$stores);
|
|
5549
6040
|
});
|
|
5550
6041
|
$.legacy_pre_effect_reset();
|
|
5551
6042
|
$.init();
|
|
5552
|
-
var fragment =
|
|
6043
|
+
var fragment = root$18();
|
|
5553
6044
|
var node = $.first_child(fragment);
|
|
5554
|
-
|
|
5555
|
-
|
|
5556
|
-
|
|
5557
|
-
...attributes,
|
|
5558
|
-
id: props().id,
|
|
5559
|
-
class: $0,
|
|
5560
|
-
style: $.get(style),
|
|
5561
|
-
"data-layer-id": layerId()
|
|
5562
|
-
}, "svelte-1o103hp"), [() => ["layout", ...props().classNames ?? []].join(" ")], $.derived_safe_equal);
|
|
5563
|
-
$.event("click", $$element, handleClick);
|
|
6045
|
+
StylePortal(node, { cssText: cssCode });
|
|
6046
|
+
var node_1 = $.sibling(node, 2);
|
|
6047
|
+
var consequent = ($$anchor$1) => {
|
|
5564
6048
|
var fragment_1 = $.comment();
|
|
5565
|
-
var
|
|
5566
|
-
$.
|
|
6049
|
+
var node_2 = $.first_child(fragment_1);
|
|
6050
|
+
$.element(node_2, () => "div", false, ($$element, $$anchor$2) => {
|
|
6051
|
+
let attributes;
|
|
6052
|
+
$.template_effect(($0) => attributes = $.set_attributes($$element, attributes, {
|
|
6053
|
+
...$clickable().attributes,
|
|
6054
|
+
id: $rProps().id,
|
|
6055
|
+
class: $0,
|
|
6056
|
+
"data-layer-id": layerId()
|
|
6057
|
+
}), [() => ["layout", ...$rProps().classNames ?? []].join(" ")], $.derived_safe_equal);
|
|
6058
|
+
$.event("click", $$element, function(...$$args) {
|
|
6059
|
+
$clickable().handleClick?.apply(this, $$args);
|
|
6060
|
+
});
|
|
6061
|
+
var fragment_2 = $.comment();
|
|
6062
|
+
var node_3 = $.first_child(fragment_2);
|
|
6063
|
+
$.slot(node_3, $$props, "default", {}, null);
|
|
6064
|
+
$.append($$anchor$2, fragment_2);
|
|
6065
|
+
});
|
|
5567
6066
|
$.append($$anchor$1, fragment_1);
|
|
6067
|
+
};
|
|
6068
|
+
$.if(node_1, ($$render) => {
|
|
6069
|
+
if (!$rProps().hidden) $$render(consequent);
|
|
5568
6070
|
});
|
|
5569
6071
|
$.append($$anchor, fragment);
|
|
5570
6072
|
$.pop();
|
|
6073
|
+
$$cleanup();
|
|
5571
6074
|
}
|
|
5572
6075
|
|
|
5573
6076
|
//#endregion
|
|
@@ -5598,15 +6101,16 @@ const LAYOUT_JUSTIFY = [
|
|
|
5598
6101
|
|
|
5599
6102
|
//#endregion
|
|
5600
6103
|
//#region src/components-flex/slider/Slider.svelte
|
|
5601
|
-
var
|
|
5602
|
-
var
|
|
5603
|
-
|
|
6104
|
+
var root_2$6 = $.template(`<button><i></i></button>`);
|
|
6105
|
+
var root_1$9 = $.template(`<div></div>`);
|
|
6106
|
+
var root$17 = $.template(`<div><div class="slider-container svelte-wwv1o"><ul class="slider-list svelte-wwv1o"><!></ul></div> <!></div>`);
|
|
6107
|
+
const $$css$21 = {
|
|
5604
6108
|
hash: "svelte-wwv1o",
|
|
5605
6109
|
code: ".slider.svelte-wwv1o {width:100%;overflow:hidden;overscroll-behavior:contain;touch-action:pan-y;}.slider-container.svelte-wwv1o {width:100%;overflow:hidden;overscroll-behavior:contain;touch-action:pan-y;}.slider-list.svelte-wwv1o {-webkit-user-drag:none;margin:0;padding:0;list-style:none;will-change:transform;}"
|
|
5606
6110
|
};
|
|
5607
6111
|
function Slider($$anchor, $$props) {
|
|
5608
6112
|
$.push($$props, false);
|
|
5609
|
-
$.append_styles($$anchor, $$css$
|
|
6113
|
+
$.append_styles($$anchor, $$css$21);
|
|
5610
6114
|
const indicators = $.mutable_state();
|
|
5611
6115
|
const itemWidthPercentage = $.mutable_state();
|
|
5612
6116
|
const baseContainerStyle = $.mutable_state();
|
|
@@ -5619,11 +6123,13 @@ function Slider($$anchor, $$props) {
|
|
|
5619
6123
|
useInjectCustomizeCss(props(), layerId());
|
|
5620
6124
|
let containerElement = $.mutable_state();
|
|
5621
6125
|
let slotElement = $.mutable_state();
|
|
5622
|
-
let currentIndex = $.mutable_state(0);
|
|
5623
6126
|
let isDragging = false;
|
|
5624
6127
|
let startX = 0;
|
|
5625
6128
|
let movedX = $.mutable_state(null);
|
|
6129
|
+
let sliderId = layerId();
|
|
6130
|
+
let currentIndex = $.mutable_state(0);
|
|
5626
6131
|
let childCount = $.mutable_state(0);
|
|
6132
|
+
let unsubscribeSliderState = $.mutable_state(null);
|
|
5627
6133
|
let transformX = $.mutable_state();
|
|
5628
6134
|
let lastFrame = 0;
|
|
5629
6135
|
const THROTTLE = 16;
|
|
@@ -5637,19 +6143,15 @@ function Slider($$anchor, $$props) {
|
|
|
5637
6143
|
return `translate3d(calc(-${result}% - ${gap * index}px${moved}), 0, 0)`;
|
|
5638
6144
|
};
|
|
5639
6145
|
const handleClickIndicator = (index) => {
|
|
5640
|
-
|
|
5641
|
-
};
|
|
5642
|
-
const setChildCount = () => {
|
|
5643
|
-
const count = $.get(slotElement)?.children?.length ?? 0;
|
|
5644
|
-
if (count !== $.get(childCount)) $.set(childCount, $.get(slotElement)?.children?.length ?? 0);
|
|
6146
|
+
slideTo(sliderId, "number", index + 1, false)();
|
|
5645
6147
|
};
|
|
5646
6148
|
const toNext = () => {
|
|
5647
|
-
if ($.get(currentIndex) < $.get(childCount) - 1)
|
|
5648
|
-
else if (props().loop)
|
|
6149
|
+
if ($.get(currentIndex) < $.get(childCount) - 1) slideTo(sliderId, "next", 0, false)();
|
|
6150
|
+
else if (props().loop) slideTo(sliderId, "first", 0, false)();
|
|
5649
6151
|
};
|
|
5650
6152
|
const toPrev = () => {
|
|
5651
|
-
if ($.get(currentIndex) > 0)
|
|
5652
|
-
else if (props().loop)
|
|
6153
|
+
if ($.get(currentIndex) > 0) slideTo(sliderId, "prev", 0, false)();
|
|
6154
|
+
else if (props().loop) slideTo(sliderId, "end", 0, false)();
|
|
5653
6155
|
};
|
|
5654
6156
|
const handleClick = (e) => {
|
|
5655
6157
|
const isParentContainer = (el) => {
|
|
@@ -5661,9 +6163,20 @@ function Slider($$anchor, $$props) {
|
|
|
5661
6163
|
e.stopPropagation();
|
|
5662
6164
|
}
|
|
5663
6165
|
};
|
|
6166
|
+
const disableChildrenClick = () => {
|
|
6167
|
+
if ($.get(slotElement)) Array.from($.get(slotElement).children ?? []).forEach((child) => {
|
|
6168
|
+
child.style.pointerEvents = "none";
|
|
6169
|
+
});
|
|
6170
|
+
};
|
|
6171
|
+
const enableChildrenClick = () => {
|
|
6172
|
+
if ($.get(slotElement)) Array.from($.get(slotElement).children ?? []).forEach((child) => {
|
|
6173
|
+
child.style.pointerEvents = void 0;
|
|
6174
|
+
});
|
|
6175
|
+
};
|
|
5664
6176
|
const move = (moved) => {
|
|
5665
6177
|
$.set(movedX, moved);
|
|
5666
6178
|
if ((moved > 10 || moved < -10) && !isDragging) isDragging = true;
|
|
6179
|
+
disableChildrenClick();
|
|
5667
6180
|
};
|
|
5668
6181
|
const handleTouchmove = (e) => {
|
|
5669
6182
|
const now = performance.now();
|
|
@@ -5675,9 +6188,15 @@ function Slider($$anchor, $$props) {
|
|
|
5675
6188
|
if ($.get(movedX) >= 32) toNext();
|
|
5676
6189
|
else if ($.get(movedX) <= -32) toPrev();
|
|
5677
6190
|
$.set(movedX, null);
|
|
6191
|
+
setTimeout(() => {
|
|
6192
|
+
isDragging = false;
|
|
6193
|
+
}, 300);
|
|
5678
6194
|
document.removeEventListener("touchmove", handleTouchmove);
|
|
5679
6195
|
document.removeEventListener("touchend", handleTouchend);
|
|
5680
6196
|
document.removeEventListener("click", handleClick);
|
|
6197
|
+
setTimeout(() => {
|
|
6198
|
+
enableChildrenClick();
|
|
6199
|
+
}, 100);
|
|
5681
6200
|
};
|
|
5682
6201
|
const handleTouchstart = (e) => {
|
|
5683
6202
|
startX = e.touches[0].clientX;
|
|
@@ -5694,9 +6213,15 @@ function Slider($$anchor, $$props) {
|
|
|
5694
6213
|
else if ($.get(movedX) <= -32) toPrev();
|
|
5695
6214
|
$.set(movedX, null);
|
|
5696
6215
|
if (isDragging) e.stopPropagation();
|
|
6216
|
+
setTimeout(() => {
|
|
6217
|
+
isDragging = false;
|
|
6218
|
+
}, 300);
|
|
5697
6219
|
document.removeEventListener("mousemove", handleMousemove);
|
|
5698
6220
|
document.removeEventListener("mouseup", handleMouseup);
|
|
5699
6221
|
document.removeEventListener("click", handleClick);
|
|
6222
|
+
setTimeout(() => {
|
|
6223
|
+
enableChildrenClick();
|
|
6224
|
+
}, 100);
|
|
5700
6225
|
};
|
|
5701
6226
|
const handleMousedown = (e) => {
|
|
5702
6227
|
startX = e.clientX;
|
|
@@ -5706,7 +6231,6 @@ function Slider($$anchor, $$props) {
|
|
|
5706
6231
|
document.addEventListener("click", handleClick, { capture: true });
|
|
5707
6232
|
};
|
|
5708
6233
|
onMount$1(() => {
|
|
5709
|
-
setChildCount();
|
|
5710
6234
|
let autoSlideTimer;
|
|
5711
6235
|
if (props().auto) autoSlideTimer = setInterval(() => {
|
|
5712
6236
|
toNext();
|
|
@@ -5715,8 +6239,26 @@ function Slider($$anchor, $$props) {
|
|
|
5715
6239
|
if (autoSlideTimer) clearInterval(autoSlideTimer);
|
|
5716
6240
|
};
|
|
5717
6241
|
});
|
|
5718
|
-
|
|
5719
|
-
if ($.get(
|
|
6242
|
+
onDestroy$1(() => {
|
|
6243
|
+
if ($.get(unsubscribeSliderState)) $.get(unsubscribeSliderState)();
|
|
6244
|
+
});
|
|
6245
|
+
$.legacy_pre_effect(() => ($.get(slotElement), $.deep_read_state(props()), $.get(unsubscribeSliderState)), () => {
|
|
6246
|
+
if (sliderId) {
|
|
6247
|
+
sliderStates.update((updater) => {
|
|
6248
|
+
updater[sliderId] = {
|
|
6249
|
+
currentIndex: 0,
|
|
6250
|
+
slides: $.get(slotElement)?.children?.length ?? 0,
|
|
6251
|
+
loop: props().loop
|
|
6252
|
+
};
|
|
6253
|
+
return updater;
|
|
6254
|
+
});
|
|
6255
|
+
if ($.get(unsubscribeSliderState)) $.get(unsubscribeSliderState)();
|
|
6256
|
+
$.set(unsubscribeSliderState, sliderStates.subscribe(($states) => {
|
|
6257
|
+
const state$1 = $states[sliderId];
|
|
6258
|
+
$.set(currentIndex, state$1?.currentIndex ?? 0);
|
|
6259
|
+
$.set(childCount, state$1?.slides ?? 0);
|
|
6260
|
+
}));
|
|
6261
|
+
}
|
|
5720
6262
|
});
|
|
5721
6263
|
$.legacy_pre_effect(() => ($.get(childCount), $.get(currentIndex)), () => {
|
|
5722
6264
|
$.set(indicators, [...Array($.get(childCount))].map((_, i) => ({
|
|
@@ -5769,7 +6311,7 @@ function Slider($$anchor, $$props) {
|
|
|
5769
6311
|
});
|
|
5770
6312
|
$.legacy_pre_effect_reset();
|
|
5771
6313
|
$.init();
|
|
5772
|
-
var div = root$
|
|
6314
|
+
var div = root$17();
|
|
5773
6315
|
var div_1 = $.child(div);
|
|
5774
6316
|
var ul = $.child(div_1);
|
|
5775
6317
|
var node = $.child(ul);
|
|
@@ -5778,33 +6320,40 @@ function Slider($$anchor, $$props) {
|
|
|
5778
6320
|
$.bind_this(ul, ($$value) => $.set(slotElement, $$value), () => $.get(slotElement));
|
|
5779
6321
|
$.reset(div_1);
|
|
5780
6322
|
$.bind_this(div_1, ($$value) => $.set(containerElement, $$value), () => $.get(containerElement));
|
|
5781
|
-
var
|
|
5782
|
-
|
|
5783
|
-
var
|
|
5784
|
-
|
|
5785
|
-
|
|
5786
|
-
|
|
5787
|
-
$.
|
|
5788
|
-
$.
|
|
5789
|
-
|
|
5790
|
-
|
|
5791
|
-
|
|
5792
|
-
|
|
5793
|
-
|
|
5794
|
-
|
|
5795
|
-
|
|
5796
|
-
|
|
5797
|
-
|
|
5798
|
-
|
|
5799
|
-
|
|
5800
|
-
|
|
6323
|
+
var node_1 = $.sibling(div_1, 2);
|
|
6324
|
+
var consequent = ($$anchor$1) => {
|
|
6325
|
+
var div_2 = root_1$9();
|
|
6326
|
+
$.each(div_2, 5, () => $.get(indicators) ?? [], $.index, ($$anchor$2, indicator, i) => {
|
|
6327
|
+
var button = root_2$6();
|
|
6328
|
+
var i_1 = $.child(button);
|
|
6329
|
+
$.reset(button);
|
|
6330
|
+
$.template_effect(($0, $1) => {
|
|
6331
|
+
$.set_style(button, $0);
|
|
6332
|
+
$.set_style(i_1, $1);
|
|
6333
|
+
}, [() => objToStyle({
|
|
6334
|
+
padding: "4px",
|
|
6335
|
+
border: 0,
|
|
6336
|
+
background: "none"
|
|
6337
|
+
}), () => objToStyle({
|
|
6338
|
+
...$.get(indicatorItemStyle),
|
|
6339
|
+
background: $.get(indicator).isActive ? "#555555" : "#AAAAAA"
|
|
6340
|
+
})], $.derived_safe_equal);
|
|
6341
|
+
$.event("click", button, () => handleClickIndicator(i));
|
|
6342
|
+
$.append($$anchor$2, button);
|
|
6343
|
+
});
|
|
6344
|
+
$.reset(div_2);
|
|
6345
|
+
$.template_effect(() => $.set_style(div_2, $.get(indicatorListStyle)));
|
|
6346
|
+
$.append($$anchor$1, div_2);
|
|
6347
|
+
};
|
|
6348
|
+
$.if(node_1, ($$render) => {
|
|
6349
|
+
if (!props().hideIndicator) $$render(consequent);
|
|
6350
|
+
});
|
|
5801
6351
|
$.reset(div);
|
|
5802
6352
|
$.template_effect(($0, $1) => {
|
|
5803
6353
|
$.set_attribute(div, "id", props().id);
|
|
5804
6354
|
$.set_class(div, 1, $0, "svelte-wwv1o");
|
|
5805
6355
|
$.set_attribute(div, "data-layer-id", layerId());
|
|
5806
6356
|
$.set_style(ul, $1);
|
|
5807
|
-
$.set_style(div_2, $.get(indicatorListStyle));
|
|
5808
6357
|
}, [() => $.clsx(["slider", ...props().classNames ?? []].join(" ")), () => [$.get(containerStyle), overrideStyle()].join(" ")], $.derived_safe_equal);
|
|
5809
6358
|
$.event("mousedown", div_1, handleMousedown);
|
|
5810
6359
|
$.event("touchstart", div_1, handleTouchstart);
|
|
@@ -5814,28 +6363,36 @@ function Slider($$anchor, $$props) {
|
|
|
5814
6363
|
|
|
5815
6364
|
//#endregion
|
|
5816
6365
|
//#region src/components-flex/slider/SliderItem.svelte
|
|
5817
|
-
var root$
|
|
5818
|
-
const $$css$
|
|
5819
|
-
hash: "svelte-
|
|
5820
|
-
code: ".slider-item.svelte-
|
|
6366
|
+
var root$16 = $.template(`<li><!></li>`);
|
|
6367
|
+
const $$css$20 = {
|
|
6368
|
+
hash: "svelte-1b4o9dd",
|
|
6369
|
+
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;}"
|
|
5821
6370
|
};
|
|
5822
6371
|
function SliderItem($$anchor, $$props) {
|
|
5823
6372
|
$.push($$props, false);
|
|
5824
|
-
$.append_styles($$anchor, $$css$
|
|
6373
|
+
$.append_styles($$anchor, $$css$20);
|
|
6374
|
+
const [$$stores, $$cleanup] = $.setup_stores();
|
|
6375
|
+
const $clickable = () => $.store_get($.get(clickable), "$clickable", $$stores);
|
|
6376
|
+
const clickable = $.mutable_state();
|
|
5825
6377
|
let layerId = $.prop($$props, "layerId", 8);
|
|
5826
6378
|
let props = $.prop($$props, "props", 8);
|
|
5827
6379
|
useInjectCustomizeCss(props(), layerId());
|
|
5828
|
-
|
|
6380
|
+
$.legacy_pre_effect(() => $.deep_read_state(props()), () => {
|
|
6381
|
+
$.store_unsub($.set(clickable, useClickable_default(props())), "$clickable", $$stores);
|
|
6382
|
+
});
|
|
6383
|
+
$.legacy_pre_effect_reset();
|
|
5829
6384
|
$.init();
|
|
5830
|
-
var li = root$
|
|
6385
|
+
var li = root$16();
|
|
5831
6386
|
var node = $.child(li);
|
|
5832
|
-
$.element(node, () => element, false, ($$element, $$anchor$1) => {
|
|
5833
|
-
let
|
|
5834
|
-
$.template_effect(() =>
|
|
5835
|
-
|
|
6387
|
+
$.element(node, () => $clickable().element, false, ($$element, $$anchor$1) => {
|
|
6388
|
+
let attributes;
|
|
6389
|
+
$.template_effect(() => attributes = $.set_attributes($$element, attributes, {
|
|
6390
|
+
...$clickable().attributes,
|
|
5836
6391
|
class: "slider-item-inner"
|
|
5837
|
-
}, "svelte-
|
|
5838
|
-
$.event("click", $$element,
|
|
6392
|
+
}, "svelte-1b4o9dd"));
|
|
6393
|
+
$.event("click", $$element, function(...$$args) {
|
|
6394
|
+
$clickable().handleClick?.apply(this, $$args);
|
|
6395
|
+
});
|
|
5839
6396
|
var fragment = $.comment();
|
|
5840
6397
|
var node_1 = $.first_child(fragment);
|
|
5841
6398
|
$.slot(node_1, $$props, "default", {}, null);
|
|
@@ -5845,10 +6402,11 @@ function SliderItem($$anchor, $$props) {
|
|
|
5845
6402
|
$.template_effect(($0) => {
|
|
5846
6403
|
$.set_attribute(li, "data-layer-id", layerId());
|
|
5847
6404
|
$.set_attribute(li, "id", props().id);
|
|
5848
|
-
$.set_class(li, 1, $0, "svelte-
|
|
6405
|
+
$.set_class(li, 1, $0, "svelte-1b4o9dd");
|
|
5849
6406
|
}, [() => $.clsx(["slider-item", ...props().classNames ?? []].join(" "))], $.derived_safe_equal);
|
|
5850
6407
|
$.append($$anchor, li);
|
|
5851
6408
|
$.pop();
|
|
6409
|
+
$$cleanup();
|
|
5852
6410
|
}
|
|
5853
6411
|
|
|
5854
6412
|
//#endregion
|
|
@@ -5892,113 +6450,139 @@ const TEXT_VARIANTS = { size: {
|
|
|
5892
6450
|
} };
|
|
5893
6451
|
|
|
5894
6452
|
//#endregion
|
|
5895
|
-
//#region src/components-flex/text/Text.
|
|
5896
|
-
var
|
|
5897
|
-
const $$css$22 = {
|
|
5898
|
-
hash: "svelte-vifn7y",
|
|
5899
|
-
code: ".text.svelte-vifn7y {margin:0;word-break:break-all;text-decoration:none;}"
|
|
5900
|
-
};
|
|
5901
|
-
function Text($$anchor, $$props) {
|
|
5902
|
-
$.push($$props, false);
|
|
5903
|
-
$.append_styles($$anchor, $$css$22);
|
|
5904
|
-
const escapedHTML = $.mutable_state();
|
|
5905
|
-
const style = $.mutable_state();
|
|
5906
|
-
let props = $.prop($$props, "props", 24, () => ({ content: "" }));
|
|
5907
|
-
let layerId = $.prop($$props, "layerId", 8, "");
|
|
5908
|
-
useInjectCustomizeCss(props(), layerId());
|
|
5909
|
-
const { brandKit } = useBrandKit();
|
|
6453
|
+
//#region src/components-flex/text/Text.css.ts
|
|
6454
|
+
var Text_css_default = (layerId, props, brandKit) => {
|
|
5910
6455
|
const themeStyles = getTextThemeStyles(brandKit);
|
|
5911
|
-
const
|
|
5912
|
-
|
|
5913
|
-
|
|
5914
|
-
|
|
5915
|
-
|
|
5916
|
-
if (
|
|
5917
|
-
|
|
5918
|
-
|
|
5919
|
-
|
|
6456
|
+
const toDynamicStyle$4 = (_props) => {
|
|
6457
|
+
const fontFamily = (() => {
|
|
6458
|
+
if (_props.fontFamily) return _props.fontFamily;
|
|
6459
|
+
return _props.fontFamilyVariant in FONT_FAMILY_VARIANT ? FONT_FAMILY_VARIANT[_props.fontFamilyVariant].getProps(brandKit).fontFamily : FONT_FAMILY_VARIANT.default.getProps(brandKit).fontFamily;
|
|
6460
|
+
})();
|
|
6461
|
+
if (fontFamily) addFont(fontFamily);
|
|
6462
|
+
const color = (() => {
|
|
6463
|
+
if (_props.color) return _props.color;
|
|
6464
|
+
if (_props.theme) return themeStyles[_props.theme].color;
|
|
6465
|
+
})();
|
|
5920
6466
|
const fontSize = (() => {
|
|
5921
|
-
if (
|
|
5922
|
-
if (
|
|
5923
|
-
return "14px";
|
|
6467
|
+
if (_props.fontSize) return _props.fontSize;
|
|
6468
|
+
if (_props.size) return TEXT_VARIANTS.size[_props.size].fontSize;
|
|
5924
6469
|
})();
|
|
5925
6470
|
const lineHeight = (() => {
|
|
5926
|
-
if (
|
|
5927
|
-
if (
|
|
5928
|
-
return void 0;
|
|
6471
|
+
if (_props.lineHeight) return _props.lineHeight;
|
|
6472
|
+
if (_props.size) return TEXT_VARIANTS.size[_props.size].lineHeight;
|
|
5929
6473
|
})();
|
|
5930
6474
|
const fontWeight = (() => {
|
|
5931
|
-
if (
|
|
5932
|
-
if (
|
|
5933
|
-
return void 0;
|
|
6475
|
+
if (_props.fontWeight) return _props.fontWeight;
|
|
6476
|
+
if (_props.size) return TEXT_VARIANTS.size[_props.size].fontWeight;
|
|
5934
6477
|
})();
|
|
5935
6478
|
const letterSpacing = (() => {
|
|
5936
|
-
if (
|
|
5937
|
-
else return
|
|
5938
|
-
return void 0;
|
|
6479
|
+
if (_props.letterSpacing) if (_props.letterSpacing.endsWith("%")) return `${parseInt(fontSize) * (parseInt(_props.letterSpacing) / 100)}px`;
|
|
6480
|
+
else return _props.letterSpacing;
|
|
5939
6481
|
})();
|
|
5940
|
-
|
|
6482
|
+
const lineClampStyles = (() => {
|
|
6483
|
+
if (typeof _props.lineClamp !== "number") return {};
|
|
6484
|
+
return {
|
|
6485
|
+
display: "-webkit-box",
|
|
6486
|
+
WebkitBoxOrient: "vertical",
|
|
6487
|
+
WebkitLineClamp: _props.lineClamp,
|
|
6488
|
+
overflow: "hidden"
|
|
6489
|
+
};
|
|
6490
|
+
})();
|
|
6491
|
+
return createComponentRawCss(layerId, (style) => [style("", {
|
|
6492
|
+
textAlign: _props.align,
|
|
6493
|
+
width: _props.width,
|
|
6494
|
+
fontFamily,
|
|
6495
|
+
color,
|
|
5941
6496
|
fontSize,
|
|
5942
|
-
|
|
6497
|
+
letterSpacing,
|
|
5943
6498
|
fontWeight,
|
|
5944
|
-
|
|
5945
|
-
|
|
6499
|
+
lineHeight,
|
|
6500
|
+
...lineClampStyles,
|
|
6501
|
+
...toCssRadius(_props),
|
|
6502
|
+
...toCssBackground(_props),
|
|
6503
|
+
...toCssCommon(_props),
|
|
6504
|
+
...toCssPosition(_props),
|
|
6505
|
+
...toCssPadding(_props),
|
|
6506
|
+
...toCssBorder(_props)
|
|
6507
|
+
})]);
|
|
5946
6508
|
};
|
|
5947
|
-
|
|
5948
|
-
|
|
5949
|
-
|
|
5950
|
-
|
|
5951
|
-
|
|
5952
|
-
|
|
5953
|
-
|
|
5954
|
-
|
|
5955
|
-
|
|
5956
|
-
|
|
5957
|
-
|
|
6509
|
+
return createComponentRawCss(layerId, (style) => [
|
|
6510
|
+
style("", {
|
|
6511
|
+
textDecoration: "none",
|
|
6512
|
+
margin: "0",
|
|
6513
|
+
wordBreak: "break-all"
|
|
6514
|
+
}),
|
|
6515
|
+
toDynamicStyle$4(props),
|
|
6516
|
+
...props.responsiveSettings?.map((v) => {
|
|
6517
|
+
if (v.mediaQueryCondition) return toResponsiveSelector(v, toDynamicStyle$4({
|
|
6518
|
+
...v.props,
|
|
6519
|
+
content: v.props.content ?? props.content
|
|
6520
|
+
}));
|
|
6521
|
+
else if (v.userAgentCondition) return "";
|
|
6522
|
+
return "";
|
|
6523
|
+
}) ?? [],
|
|
6524
|
+
props.customizeCss
|
|
6525
|
+
]);
|
|
6526
|
+
};
|
|
6527
|
+
|
|
6528
|
+
//#endregion
|
|
6529
|
+
//#region src/components-flex/text/Text.svelte
|
|
6530
|
+
var root_1$8 = $.template(`<p><!></p>`);
|
|
6531
|
+
var root$15 = $.template(`<!> <!>`, 1);
|
|
6532
|
+
function Text($$anchor, $$props) {
|
|
6533
|
+
$.push($$props, false);
|
|
6534
|
+
const [$$stores, $$cleanup] = $.setup_stores();
|
|
6535
|
+
const $responsiveProps = () => $.store_get(responsiveProps, "$responsiveProps", $$stores);
|
|
6536
|
+
const rProps = $.mutable_state();
|
|
6537
|
+
const escapedHTML = $.mutable_state();
|
|
6538
|
+
let props = $.prop($$props, "props", 24, () => ({ content: "" }));
|
|
6539
|
+
let layerId = $.prop($$props, "layerId", 24, () => crypto.randomUUID());
|
|
6540
|
+
useInjectCustomizeCss(props(), layerId());
|
|
6541
|
+
const { brandKit } = useBrandKit();
|
|
6542
|
+
const cssCode = Text_css_default(layerId(), props(), brandKit);
|
|
6543
|
+
const responsiveProps = useResponsiveProps(props());
|
|
6544
|
+
$.legacy_pre_effect(() => $responsiveProps(), () => {
|
|
6545
|
+
$.set(rProps, $responsiveProps());
|
|
5958
6546
|
});
|
|
5959
|
-
$.legacy_pre_effect(() => ($.deep_read_state(props())
|
|
5960
|
-
$.set(
|
|
5961
|
-
position: props()?.position ?? "static",
|
|
5962
|
-
textAlign: props().align,
|
|
5963
|
-
width: props().width,
|
|
5964
|
-
fontFamily,
|
|
5965
|
-
color: getColor(),
|
|
5966
|
-
...lineClampStyles,
|
|
5967
|
-
...getCssSize(),
|
|
5968
|
-
...toCssRadius(props()),
|
|
5969
|
-
...toCssBackground(props()),
|
|
5970
|
-
...toCssCommon(props()),
|
|
5971
|
-
...toCssPosition(props()),
|
|
5972
|
-
...toCssPadding(props()),
|
|
5973
|
-
...toCssBorder(props())
|
|
5974
|
-
}));
|
|
6547
|
+
$.legacy_pre_effect(() => ($.get(rProps), $.deep_read_state(props())), () => {
|
|
6548
|
+
$.set(escapedHTML, ($.get(rProps).content || props().content).replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'").replace(/\n/g, "<br />"));
|
|
5975
6549
|
});
|
|
5976
6550
|
$.legacy_pre_effect_reset();
|
|
5977
6551
|
$.init();
|
|
5978
|
-
var
|
|
5979
|
-
var node = $.
|
|
5980
|
-
|
|
5981
|
-
$.
|
|
5982
|
-
|
|
5983
|
-
|
|
5984
|
-
$.
|
|
5985
|
-
$.
|
|
5986
|
-
$.
|
|
5987
|
-
|
|
5988
|
-
|
|
6552
|
+
var fragment = root$15();
|
|
6553
|
+
var node = $.first_child(fragment);
|
|
6554
|
+
StylePortal(node, { cssText: cssCode });
|
|
6555
|
+
var node_1 = $.sibling(node, 2);
|
|
6556
|
+
var consequent = ($$anchor$1) => {
|
|
6557
|
+
var p = root_1$8();
|
|
6558
|
+
var node_2 = $.child(p);
|
|
6559
|
+
$.html(node_2, () => $.get(escapedHTML), false, false);
|
|
6560
|
+
$.reset(p);
|
|
6561
|
+
$.template_effect(($0) => {
|
|
6562
|
+
$.set_class(p, 1, $0);
|
|
6563
|
+
$.set_attribute(p, "id", $.get(rProps).id);
|
|
6564
|
+
$.set_attribute(p, "data-layer-id", layerId());
|
|
6565
|
+
}, [() => $.clsx(["text", ...$.get(rProps).classNames ?? []].join(" "))], $.derived_safe_equal);
|
|
6566
|
+
$.append($$anchor$1, p);
|
|
6567
|
+
};
|
|
6568
|
+
$.if(node_1, ($$render) => {
|
|
6569
|
+
if (!$.get(rProps).hidden) $$render(consequent);
|
|
6570
|
+
});
|
|
6571
|
+
$.append($$anchor, fragment);
|
|
5989
6572
|
$.pop();
|
|
6573
|
+
$$cleanup();
|
|
5990
6574
|
}
|
|
5991
6575
|
|
|
5992
6576
|
//#endregion
|
|
5993
6577
|
//#region src/components-flex/rich-text/RichText.svelte
|
|
5994
|
-
var root$
|
|
5995
|
-
const $$css$
|
|
6578
|
+
var root$14 = $.template(`<div><!></div>`);
|
|
6579
|
+
const $$css$19 = {
|
|
5996
6580
|
hash: "svelte-dxr423",
|
|
5997
6581
|
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;}"
|
|
5998
6582
|
};
|
|
5999
6583
|
function RichText($$anchor, $$props) {
|
|
6000
6584
|
$.push($$props, false);
|
|
6001
|
-
$.append_styles($$anchor, $$css$
|
|
6585
|
+
$.append_styles($$anchor, $$css$19);
|
|
6002
6586
|
const style = $.mutable_state();
|
|
6003
6587
|
let props = $.prop($$props, "props", 24, () => ({ content: "" }));
|
|
6004
6588
|
let layerId = $.prop($$props, "layerId", 8, "");
|
|
@@ -6011,23 +6595,19 @@ function RichText($$anchor, $$props) {
|
|
|
6011
6595
|
const getColor = () => {
|
|
6012
6596
|
if (props().color) return props().color;
|
|
6013
6597
|
if (props().theme) return themeStyles[props().theme].color;
|
|
6014
|
-
return void 0;
|
|
6015
6598
|
};
|
|
6016
6599
|
const getCssSize = () => {
|
|
6017
6600
|
const getFontSize = () => {
|
|
6018
6601
|
if (props().fontSize) return props().fontSize;
|
|
6019
6602
|
if (props().size) return TEXT_VARIANTS.size[props().size].fontSize;
|
|
6020
|
-
return void 0;
|
|
6021
6603
|
};
|
|
6022
6604
|
const getLineHeight = () => {
|
|
6023
6605
|
if (props().lineHeight) return props().lineHeight;
|
|
6024
6606
|
if (props().size) return TEXT_VARIANTS.size[props().size].lineHeight;
|
|
6025
|
-
return void 0;
|
|
6026
6607
|
};
|
|
6027
6608
|
const getFontWeight = () => {
|
|
6028
6609
|
if (props().fontWeight) return props().fontWeight;
|
|
6029
6610
|
if (props().size) return TEXT_VARIANTS.size[props().size].fontWeight;
|
|
6030
|
-
return void 0;
|
|
6031
6611
|
};
|
|
6032
6612
|
return {
|
|
6033
6613
|
fontSize: getFontSize(),
|
|
@@ -6049,7 +6629,7 @@ function RichText($$anchor, $$props) {
|
|
|
6049
6629
|
});
|
|
6050
6630
|
$.legacy_pre_effect_reset();
|
|
6051
6631
|
$.init();
|
|
6052
|
-
var div = root$
|
|
6632
|
+
var div = root$14();
|
|
6053
6633
|
var node = $.child(div);
|
|
6054
6634
|
$.html(node, () => props().content, false, false);
|
|
6055
6635
|
$.reset(div);
|
|
@@ -6116,105 +6696,151 @@ const callback = ({ brandKit }) => ({
|
|
|
6116
6696
|
const getTextLinkThemeStyles = getPropStyles(callback);
|
|
6117
6697
|
|
|
6118
6698
|
//#endregion
|
|
6119
|
-
//#region src/components-flex/text-link/TextLink.
|
|
6120
|
-
var
|
|
6121
|
-
|
|
6122
|
-
|
|
6123
|
-
|
|
6699
|
+
//#region src/components-flex/text-link/TextLink.css.ts
|
|
6700
|
+
var TextLink_css_default = (layerId, props, brandKit) => {
|
|
6701
|
+
return createComponentRawCss(layerId, (style) => [
|
|
6702
|
+
style("", {
|
|
6703
|
+
textDecoration: "none",
|
|
6704
|
+
margin: "0",
|
|
6705
|
+
wordBreak: "break-all",
|
|
6706
|
+
appearance: "none",
|
|
6707
|
+
border: "0",
|
|
6708
|
+
background: "none",
|
|
6709
|
+
padding: "0",
|
|
6710
|
+
display: "inline-flex",
|
|
6711
|
+
gap: "0.5em",
|
|
6712
|
+
alignItems: "center",
|
|
6713
|
+
cursor: "pointer"
|
|
6714
|
+
}),
|
|
6715
|
+
style("&[aria-disabled=\"true\"]", {
|
|
6716
|
+
opacity: "0.24",
|
|
6717
|
+
cursor: "not-allowed"
|
|
6718
|
+
}),
|
|
6719
|
+
style("&[aria-disabled=\"true\"]:hover", { opacity: "0.24" }),
|
|
6720
|
+
style("&[aria-hidden=\"true\"]", { display: "none" }),
|
|
6721
|
+
toDynamicStyle(layerId, props, brandKit),
|
|
6722
|
+
...props.responsiveSettings?.map((v) => {
|
|
6723
|
+
if (v.mediaQueryCondition) return toResponsiveSelector(v, toDynamicStyle(layerId, {
|
|
6724
|
+
...v.props,
|
|
6725
|
+
label: v.props.label ?? props.label
|
|
6726
|
+
}, brandKit));
|
|
6727
|
+
else if (v.userAgentCondition) return "";
|
|
6728
|
+
return "";
|
|
6729
|
+
}) ?? [],
|
|
6730
|
+
props.customizeCss
|
|
6731
|
+
]);
|
|
6732
|
+
};
|
|
6733
|
+
const toDynamicStyle = (layerId, props, brandKit) => {
|
|
6734
|
+
const themeStyle = getTextLinkThemeStyles(brandKit)[props.theme ?? "link"];
|
|
6735
|
+
const sizeStyle = TEXT_LINK_SIZE_STYLES[props.size ?? "medium"];
|
|
6736
|
+
const fontFamilyStyles = props.fontFamilyVariant in FONT_FAMILY_VARIANT ? FONT_FAMILY_VARIANT[props.fontFamilyVariant].getProps(brandKit) : FONT_FAMILY_VARIANT.default.getProps(brandKit);
|
|
6737
|
+
const fontFamily = props.fontFamily ?? fontFamilyStyles.fontFamily;
|
|
6738
|
+
const color = props.color ?? themeStyle.color;
|
|
6739
|
+
if (fontFamily) addFont(fontFamily);
|
|
6740
|
+
return createComponentRawCss(layerId, (style) => [
|
|
6741
|
+
style("", {
|
|
6742
|
+
fontFamily: `"${fontFamily}"`,
|
|
6743
|
+
fontSize: props.fontSize ?? sizeStyle.fontSize,
|
|
6744
|
+
fontWeight: props.fontWeight ?? "bold",
|
|
6745
|
+
flexDirection: props.iconAngle,
|
|
6746
|
+
color,
|
|
6747
|
+
...toCssCommon(props),
|
|
6748
|
+
...toCssPosition(props)
|
|
6749
|
+
}),
|
|
6750
|
+
style("&:visited", { color }),
|
|
6751
|
+
style("&:link", { color }),
|
|
6752
|
+
style("&:hover", { color: darkenColor(props.color ?? themeStyle.color, .12) }),
|
|
6753
|
+
style("&:active", { color: darkenColor(props.color ?? themeStyle.color, .2) }),
|
|
6754
|
+
...(() => {
|
|
6755
|
+
switch (props.underline) {
|
|
6756
|
+
case "on": return [style("", { textDecoration: "underline" })];
|
|
6757
|
+
case "off": return [style("", { textDecoration: "none" })];
|
|
6758
|
+
case "hover_off": return [style("", { textDecoration: "underline" }), style("&:hover", { textDecoration: "none" })];
|
|
6759
|
+
case "hover_on":
|
|
6760
|
+
default: return [style("", { textDecoration: "none" }), style("&:hover", { textDecoration: "underline" })];
|
|
6761
|
+
}
|
|
6762
|
+
})()
|
|
6763
|
+
]);
|
|
6124
6764
|
};
|
|
6765
|
+
|
|
6766
|
+
//#endregion
|
|
6767
|
+
//#region src/components-flex/text-link/TextLink.svelte
|
|
6768
|
+
var root_2$5 = $.template(`<!> <span><!></span>`, 1);
|
|
6769
|
+
var root$13 = $.template(`<!> <!>`, 1);
|
|
6125
6770
|
function TextLink($$anchor, $$props) {
|
|
6126
6771
|
$.push($$props, false);
|
|
6127
|
-
|
|
6772
|
+
const [$$stores, $$cleanup] = $.setup_stores();
|
|
6773
|
+
const $rProps = () => $.store_get($.get(rProps), "$rProps", $$stores);
|
|
6774
|
+
const $clickable = () => $.store_get($.get(clickable), "$clickable", $$stores);
|
|
6775
|
+
const rProps = $.mutable_state();
|
|
6776
|
+
const clickable = $.mutable_state();
|
|
6128
6777
|
const escapedHTML = $.mutable_state();
|
|
6129
|
-
const variables$1 = $.mutable_state();
|
|
6130
|
-
const style = $.mutable_state();
|
|
6131
6778
|
let props = $.prop($$props, "props", 24, () => ({ label: "" }));
|
|
6132
6779
|
let layerId = $.prop($$props, "layerId", 8, "");
|
|
6133
|
-
useInjectCustomizeCss(props(), layerId());
|
|
6134
6780
|
const { brandKit } = useBrandKit();
|
|
6135
|
-
const
|
|
6136
|
-
...props(),
|
|
6137
|
-
element: "span"
|
|
6138
|
-
});
|
|
6139
|
-
const themeStyles = getTextLinkThemeStyles(brandKit);
|
|
6140
|
-
const themeStyle = themeStyles[props().theme ?? "link"];
|
|
6141
|
-
const sizeStyle = TEXT_LINK_SIZE_STYLES[props().size ?? "medium"];
|
|
6142
|
-
const fontFamilyStyles = props().fontFamilyVariant in FONT_FAMILY_VARIANT ? FONT_FAMILY_VARIANT[props().fontFamilyVariant].getProps(brandKit) : FONT_FAMILY_VARIANT.default.getProps(brandKit);
|
|
6143
|
-
const fontFamily = props().fontFamily ?? fontFamilyStyles.fontFamily;
|
|
6144
|
-
if (fontFamily) addFont(fontFamily);
|
|
6145
|
-
const underlineClass = (() => {
|
|
6146
|
-
switch (props().underline) {
|
|
6147
|
-
case "hover_off": return "underline-hover-off";
|
|
6148
|
-
case "hover_on": return "underline-hover-on";
|
|
6149
|
-
case "on": return "underline-on";
|
|
6150
|
-
case "off": return "underline-off";
|
|
6151
|
-
default: return "underline-hover-on";
|
|
6152
|
-
}
|
|
6153
|
-
})();
|
|
6781
|
+
const cssCode = TextLink_css_default(layerId(), props(), brandKit);
|
|
6154
6782
|
$.legacy_pre_effect(() => $.deep_read_state(props()), () => {
|
|
6155
|
-
$.set(
|
|
6783
|
+
$.store_unsub($.set(rProps, useResponsiveProps(props())), "$rProps", $$stores);
|
|
6156
6784
|
});
|
|
6157
|
-
$.legacy_pre_effect(() => (
|
|
6158
|
-
$.set(
|
|
6159
|
-
|
|
6160
|
-
"
|
|
6161
|
-
|
|
6162
|
-
});
|
|
6785
|
+
$.legacy_pre_effect(() => $rProps(), () => {
|
|
6786
|
+
$.store_unsub($.set(clickable, useClickable_default({
|
|
6787
|
+
...$rProps(),
|
|
6788
|
+
element: "span"
|
|
6789
|
+
})), "$clickable", $$stores);
|
|
6163
6790
|
});
|
|
6164
|
-
$.legacy_pre_effect(() => (
|
|
6165
|
-
$.set(
|
|
6166
|
-
display: "inline-flex",
|
|
6167
|
-
gap: "0.5em",
|
|
6168
|
-
alignItems: "center",
|
|
6169
|
-
wordBreak: "break-all",
|
|
6170
|
-
fontFamily: `"${fontFamily}"`,
|
|
6171
|
-
fontSize: props().fontSize ?? sizeStyle.fontSize,
|
|
6172
|
-
fontWeight: props().fontWeight ?? "bold",
|
|
6173
|
-
flexDirection: props().iconAngle,
|
|
6174
|
-
cursor: "pointer",
|
|
6175
|
-
...toCssCommon(props()),
|
|
6176
|
-
...toCssPosition(props()),
|
|
6177
|
-
...$.get(variables$1)
|
|
6178
|
-
}));
|
|
6791
|
+
$.legacy_pre_effect(() => $rProps(), () => {
|
|
6792
|
+
$.set(escapedHTML, $rProps().label.replace(/&/g, "<").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'").replace(/\n/g, "<br />"));
|
|
6179
6793
|
});
|
|
6180
6794
|
$.legacy_pre_effect_reset();
|
|
6181
6795
|
$.init();
|
|
6182
|
-
var fragment =
|
|
6796
|
+
var fragment = root$13();
|
|
6183
6797
|
var node = $.first_child(fragment);
|
|
6184
|
-
|
|
6185
|
-
|
|
6186
|
-
|
|
6187
|
-
|
|
6188
|
-
|
|
6189
|
-
|
|
6190
|
-
|
|
6191
|
-
|
|
6192
|
-
|
|
6193
|
-
|
|
6194
|
-
|
|
6195
|
-
|
|
6196
|
-
|
|
6197
|
-
|
|
6198
|
-
|
|
6199
|
-
|
|
6200
|
-
|
|
6201
|
-
|
|
6202
|
-
|
|
6203
|
-
|
|
6204
|
-
|
|
6205
|
-
|
|
6206
|
-
|
|
6207
|
-
|
|
6208
|
-
|
|
6798
|
+
StylePortal(node, { cssText: cssCode });
|
|
6799
|
+
var node_1 = $.sibling(node, 2);
|
|
6800
|
+
var consequent_1 = ($$anchor$1) => {
|
|
6801
|
+
var fragment_1 = $.comment();
|
|
6802
|
+
var node_2 = $.first_child(fragment_1);
|
|
6803
|
+
$.element(node_2, () => $clickable().element, false, ($$element, $$anchor$2) => {
|
|
6804
|
+
let attributes;
|
|
6805
|
+
$.template_effect(($0) => attributes = $.set_attributes($$element, attributes, {
|
|
6806
|
+
...$clickable().attributes,
|
|
6807
|
+
id: props().id,
|
|
6808
|
+
class: $0,
|
|
6809
|
+
"data-layer-id": layerId()
|
|
6810
|
+
}), [() => [`link`, ...props().classNames ?? []].join(" ")], $.derived_safe_equal);
|
|
6811
|
+
$.event("click", $$element, function(...$$args) {
|
|
6812
|
+
$clickable().handleClick?.apply(this, $$args);
|
|
6813
|
+
});
|
|
6814
|
+
var fragment_2 = root_2$5();
|
|
6815
|
+
var node_3 = $.first_child(fragment_2);
|
|
6816
|
+
var consequent = ($$anchor$3) => {
|
|
6817
|
+
const expression = $.derived_safe_equal(() => ({
|
|
6818
|
+
variant: props().iconVariant,
|
|
6819
|
+
color: props().iconColor ?? props().color,
|
|
6820
|
+
width: "1em",
|
|
6821
|
+
height: "1em"
|
|
6822
|
+
}));
|
|
6823
|
+
Icon($$anchor$3, { get props() {
|
|
6824
|
+
return $.get(expression);
|
|
6825
|
+
} });
|
|
6826
|
+
};
|
|
6827
|
+
$.if(node_3, ($$render) => {
|
|
6828
|
+
if (props().isIcon && props().iconVariant) $$render(consequent);
|
|
6829
|
+
});
|
|
6830
|
+
var span = $.sibling(node_3, 2);
|
|
6831
|
+
var node_4 = $.child(span);
|
|
6832
|
+
$.html(node_4, () => $.get(escapedHTML), false, false);
|
|
6833
|
+
$.reset(span);
|
|
6834
|
+
$.append($$anchor$2, fragment_2);
|
|
6209
6835
|
});
|
|
6210
|
-
var span = $.sibling(node_1, 2);
|
|
6211
|
-
var node_2 = $.child(span);
|
|
6212
|
-
$.html(node_2, () => $.get(escapedHTML), false, false);
|
|
6213
|
-
$.reset(span);
|
|
6214
6836
|
$.append($$anchor$1, fragment_1);
|
|
6837
|
+
};
|
|
6838
|
+
$.if(node_1, ($$render) => {
|
|
6839
|
+
if (!$rProps().hidden) $$render(consequent_1);
|
|
6215
6840
|
});
|
|
6216
6841
|
$.append($$anchor, fragment);
|
|
6217
6842
|
$.pop();
|
|
6843
|
+
$$cleanup();
|
|
6218
6844
|
}
|
|
6219
6845
|
|
|
6220
6846
|
//#endregion
|
|
@@ -6241,14 +6867,14 @@ const TEXT_LINK_UNDERLINE = {
|
|
|
6241
6867
|
|
|
6242
6868
|
//#endregion
|
|
6243
6869
|
//#region src/components-flex/background-overlay/BackgroundOverlay.svelte
|
|
6244
|
-
var root_1$
|
|
6245
|
-
const $$css$
|
|
6870
|
+
var root_1$7 = $.template(`<div></div>`);
|
|
6871
|
+
const $$css$18 = {
|
|
6246
6872
|
hash: "svelte-18nkdjz",
|
|
6247
6873
|
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;}"
|
|
6248
6874
|
};
|
|
6249
6875
|
function BackgroundOverlay($$anchor, $$props) {
|
|
6250
6876
|
$.push($$props, false);
|
|
6251
|
-
$.append_styles($$anchor, $$css$
|
|
6877
|
+
$.append_styles($$anchor, $$css$18);
|
|
6252
6878
|
let backgroundOverlay = $.prop($$props, "backgroundOverlay", 8, false);
|
|
6253
6879
|
let className = $.prop($$props, "class", 8, void 0);
|
|
6254
6880
|
const dispatch = createEventDispatcher();
|
|
@@ -6256,7 +6882,7 @@ function BackgroundOverlay($$anchor, $$props) {
|
|
|
6256
6882
|
var fragment = $.comment();
|
|
6257
6883
|
var node = $.first_child(fragment);
|
|
6258
6884
|
var consequent = ($$anchor$1) => {
|
|
6259
|
-
var div = root_1$
|
|
6885
|
+
var div = root_1$7();
|
|
6260
6886
|
$.template_effect(($0) => $.set_class(div, 1, $0, "svelte-18nkdjz"), [() => $.clsx(["v2-background", className() || ""].join(" "))], $.derived_safe_equal);
|
|
6261
6887
|
$.event("click", div, () => dispatch("click"));
|
|
6262
6888
|
$.append($$anchor$1, div);
|
|
@@ -6273,13 +6899,13 @@ function BackgroundOverlay($$anchor, $$props) {
|
|
|
6273
6899
|
var root_2$4 = $.template(`<!> <!>`, 1);
|
|
6274
6900
|
var root_4 = $.template(`<div role="dialog" aria-modal="true"><!></div>`);
|
|
6275
6901
|
var root$12 = $.template(`<!> <!>`, 1);
|
|
6276
|
-
const $$css$
|
|
6902
|
+
const $$css$17 = {
|
|
6277
6903
|
hash: "svelte-45ue06",
|
|
6278
6904
|
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 }"
|
|
6279
6905
|
};
|
|
6280
6906
|
function Modal($$anchor, $$props) {
|
|
6281
6907
|
$.push($$props, false);
|
|
6282
|
-
$.append_styles($$anchor, $$css$
|
|
6908
|
+
$.append_styles($$anchor, $$css$17);
|
|
6283
6909
|
const close$1 = $.mutable_state();
|
|
6284
6910
|
const backgroundClick = $.mutable_state();
|
|
6285
6911
|
const backgroundClickPC = $.mutable_state();
|
|
@@ -6388,7 +7014,7 @@ function Modal($$anchor, $$props) {
|
|
|
6388
7014
|
...getTransform(position$1)
|
|
6389
7015
|
});
|
|
6390
7016
|
});
|
|
6391
|
-
$.legacy_pre_effect(() => ($.deep_read_state(placement()), $.deep_read_state(useBreakPoint()), $.deep_read_state(breakPoint()), $.deep_read_state(props())
|
|
7017
|
+
$.legacy_pre_effect(() => ($.deep_read_state(placement()), $.deep_read_state(useBreakPoint()), $.deep_read_state(breakPoint()), $.deep_read_state(props())), () => {
|
|
6392
7018
|
let margin = DefaultModalPlacement.margin;
|
|
6393
7019
|
if (!isCanvasPreview() && placement() && placement().margin !== null) margin = placement().margin;
|
|
6394
7020
|
let marginStyle = getMarginStyle(margin);
|
|
@@ -6405,15 +7031,7 @@ function Modal($$anchor, $$props) {
|
|
|
6405
7031
|
}));
|
|
6406
7032
|
modalStyles.add(marginVariables);
|
|
6407
7033
|
});
|
|
6408
|
-
const propsStyle = objToStyle({
|
|
6409
|
-
width: props().width,
|
|
6410
|
-
...toCssPadding(props()),
|
|
6411
|
-
...toCssOverflow(props()),
|
|
6412
|
-
...toCssShadow(props()),
|
|
6413
|
-
...toCssRadius(props()),
|
|
6414
|
-
...toCssBackground(props()),
|
|
6415
|
-
...toCssBorder(props())
|
|
6416
|
-
});
|
|
7034
|
+
const propsStyle = objToStyle({ width: props().width });
|
|
6417
7035
|
modalStyles.add(propsStyle);
|
|
6418
7036
|
});
|
|
6419
7037
|
$.legacy_pre_effect(() => {}, () => {
|
|
@@ -6504,14 +7122,14 @@ function Modal($$anchor, $$props) {
|
|
|
6504
7122
|
|
|
6505
7123
|
//#endregion
|
|
6506
7124
|
//#region src/components-flex/code/Code.svelte
|
|
6507
|
-
var root$11 = $.template(
|
|
6508
|
-
const $$css$
|
|
7125
|
+
var root$11 = $.template(`<!> <div><!></div>`, 1);
|
|
7126
|
+
const $$css$16 = {
|
|
6509
7127
|
hash: "svelte-igivoz",
|
|
6510
7128
|
code: ".code.svelte-igivoz {flex-grow:1;flex-shrink:0;align-self:stretch;}\n /*{@html props.rawCss}*/"
|
|
6511
7129
|
};
|
|
6512
7130
|
function Code($$anchor, $$props) {
|
|
6513
7131
|
$.push($$props, false);
|
|
6514
|
-
$.append_styles($$anchor, $$css$
|
|
7132
|
+
$.append_styles($$anchor, $$css$16);
|
|
6515
7133
|
let props = $.prop($$props, "props", 24, () => ({}));
|
|
6516
7134
|
let layerId = $.prop($$props, "layerId", 8, "");
|
|
6517
7135
|
function unescapeBraces(str) {
|
|
@@ -6527,33 +7145,33 @@ function Code($$anchor, $$props) {
|
|
|
6527
7145
|
document.body.removeChild(script);
|
|
6528
7146
|
};
|
|
6529
7147
|
}
|
|
6530
|
-
function injectCss() {
|
|
6531
|
-
const style = document.createElement("style");
|
|
6532
|
-
style.textContent = props().rawCss;
|
|
6533
|
-
document.head.appendChild(style);
|
|
6534
|
-
return () => {
|
|
6535
|
-
document.head.removeChild(style);
|
|
6536
|
-
};
|
|
6537
|
-
}
|
|
6538
7148
|
onMount$1(() => {
|
|
6539
7149
|
const removeScript = injectJavaScript();
|
|
6540
|
-
const removeCss = injectCss();
|
|
6541
7150
|
return () => {
|
|
6542
7151
|
removeScript();
|
|
6543
|
-
removeCss();
|
|
6544
7152
|
};
|
|
6545
7153
|
});
|
|
6546
7154
|
$.init();
|
|
6547
|
-
var
|
|
6548
|
-
var node = $.
|
|
6549
|
-
|
|
7155
|
+
var fragment = root$11();
|
|
7156
|
+
var node = $.first_child(fragment);
|
|
7157
|
+
var consequent = ($$anchor$1) => {
|
|
7158
|
+
StylePortal($$anchor$1, { get cssText() {
|
|
7159
|
+
return props().rawCss;
|
|
7160
|
+
} });
|
|
7161
|
+
};
|
|
7162
|
+
$.if(node, ($$render) => {
|
|
7163
|
+
if (props().rawCss) $$render(consequent);
|
|
7164
|
+
});
|
|
7165
|
+
var div = $.sibling(node, 2);
|
|
7166
|
+
var node_1 = $.child(div);
|
|
7167
|
+
$.html(node_1, () => props().rawHtml, false, false);
|
|
6550
7168
|
$.reset(div);
|
|
6551
7169
|
$.template_effect(($0) => {
|
|
6552
7170
|
$.set_attribute(div, "id", props().id);
|
|
6553
7171
|
$.set_class(div, 1, $0, "svelte-igivoz");
|
|
6554
7172
|
$.set_attribute(div, "data-layer-id", layerId());
|
|
6555
7173
|
}, [() => $.clsx(["code", ...props().classNames ?? []].join(" "))], $.derived_safe_equal);
|
|
6556
|
-
$.append($$anchor,
|
|
7174
|
+
$.append($$anchor, fragment);
|
|
6557
7175
|
$.pop();
|
|
6558
7176
|
}
|
|
6559
7177
|
|
|
@@ -6564,13 +7182,16 @@ const LIST_ITEM_CONTEXT_KEY = "ListItemContext";
|
|
|
6564
7182
|
//#endregion
|
|
6565
7183
|
//#region src/components-flex/list/ListItem.svelte
|
|
6566
7184
|
var root$10 = $.template(`<li><!></li>`);
|
|
6567
|
-
const $$css$
|
|
7185
|
+
const $$css$15 = {
|
|
6568
7186
|
hash: "svelte-b4b4gh",
|
|
6569
7187
|
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);}"
|
|
6570
7188
|
};
|
|
6571
7189
|
function ListItem($$anchor, $$props) {
|
|
6572
7190
|
$.push($$props, false);
|
|
6573
|
-
$.append_styles($$anchor, $$css$
|
|
7191
|
+
$.append_styles($$anchor, $$css$15);
|
|
7192
|
+
const [$$stores, $$cleanup] = $.setup_stores();
|
|
7193
|
+
const $clickable = () => $.store_get($.get(clickable), "$clickable", $$stores);
|
|
7194
|
+
const clickable = $.mutable_state();
|
|
6574
7195
|
const variables$1 = $.mutable_state();
|
|
6575
7196
|
const style = $.mutable_state();
|
|
6576
7197
|
const innerStyle = $.mutable_state();
|
|
@@ -6578,8 +7199,10 @@ function ListItem($$anchor, $$props) {
|
|
|
6578
7199
|
let props = $.prop($$props, "props", 8);
|
|
6579
7200
|
$.prop($$props, "item", 8);
|
|
6580
7201
|
useInjectCustomizeCss(props(), layerId());
|
|
6581
|
-
const { attributes, element, handleClick } = useClickable_default(props());
|
|
6582
7202
|
const context = getContext(LIST_ITEM_CONTEXT_KEY) || {};
|
|
7203
|
+
$.legacy_pre_effect(() => $.deep_read_state(props()), () => {
|
|
7204
|
+
$.store_unsub($.set(clickable, useClickable_default(props())), "$clickable", $$stores);
|
|
7205
|
+
});
|
|
6583
7206
|
$.legacy_pre_effect(() => {}, () => {
|
|
6584
7207
|
$.set(variables$1, { ...context.borderTopWidth ? {
|
|
6585
7208
|
"--list-item-border-width": context.borderTopWidth ?? "0",
|
|
@@ -6603,14 +7226,16 @@ function ListItem($$anchor, $$props) {
|
|
|
6603
7226
|
$.init();
|
|
6604
7227
|
var li = root$10();
|
|
6605
7228
|
var node = $.child(li);
|
|
6606
|
-
$.element(node, () => element, false, ($$element, $$anchor$1) => {
|
|
6607
|
-
let
|
|
6608
|
-
$.template_effect(() =>
|
|
6609
|
-
|
|
7229
|
+
$.element(node, () => $clickable().element, false, ($$element, $$anchor$1) => {
|
|
7230
|
+
let attributes;
|
|
7231
|
+
$.template_effect(() => attributes = $.set_attributes($$element, attributes, {
|
|
7232
|
+
...$clickable().attributes,
|
|
6610
7233
|
class: "list-item-inner",
|
|
6611
7234
|
style: $.get(innerStyle)
|
|
6612
7235
|
}, "svelte-b4b4gh"));
|
|
6613
|
-
$.event("click", $$element,
|
|
7236
|
+
$.event("click", $$element, function(...$$args) {
|
|
7237
|
+
$clickable().handleClick?.apply(this, $$args);
|
|
7238
|
+
});
|
|
6614
7239
|
var fragment = $.comment();
|
|
6615
7240
|
var node_1 = $.first_child(fragment);
|
|
6616
7241
|
$.slot(node_1, $$props, "default", {}, null);
|
|
@@ -6625,18 +7250,19 @@ function ListItem($$anchor, $$props) {
|
|
|
6625
7250
|
}, [() => $.clsx(["list-item", ...props().classNames ?? []].join(" "))], $.derived_safe_equal);
|
|
6626
7251
|
$.append($$anchor, li);
|
|
6627
7252
|
$.pop();
|
|
7253
|
+
$$cleanup();
|
|
6628
7254
|
}
|
|
6629
7255
|
|
|
6630
7256
|
//#endregion
|
|
6631
7257
|
//#region src/components-flex/list/List.svelte
|
|
6632
7258
|
var root$9 = $.template(`<ul><!></ul>`);
|
|
6633
|
-
const $$css$
|
|
7259
|
+
const $$css$14 = {
|
|
6634
7260
|
hash: "svelte-v2vy6p",
|
|
6635
7261
|
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);}"
|
|
6636
7262
|
};
|
|
6637
7263
|
function List($$anchor, $$props) {
|
|
6638
7264
|
$.push($$props, false);
|
|
6639
|
-
$.append_styles($$anchor, $$css$
|
|
7265
|
+
$.append_styles($$anchor, $$css$14);
|
|
6640
7266
|
const variables$1 = $.mutable_state();
|
|
6641
7267
|
const actionTableData = $.mutable_state();
|
|
6642
7268
|
const items = $.mutable_state();
|
|
@@ -6703,8 +7329,7 @@ function splitNumberAndUnit(value) {
|
|
|
6703
7329
|
number: void 0,
|
|
6704
7330
|
unit: ""
|
|
6705
7331
|
};
|
|
6706
|
-
const
|
|
6707
|
-
const match = (typeof value !== "string" ? String(value) : value).match(regex);
|
|
7332
|
+
const match = (typeof value !== "string" ? String(value) : value).match(/^(-?\d*\.?\d+)([a-zA-Z%]*)$/);
|
|
6708
7333
|
if (match) return {
|
|
6709
7334
|
number: parseFloat(match[1]),
|
|
6710
7335
|
unit: match[2] || ""
|
|
@@ -6718,13 +7343,13 @@ function splitNumberAndUnit(value) {
|
|
|
6718
7343
|
//#endregion
|
|
6719
7344
|
//#region src/components-flex/multi-column/MultiColumn.svelte
|
|
6720
7345
|
var root$8 = $.template(`<ul><!></ul>`);
|
|
6721
|
-
const $$css$
|
|
7346
|
+
const $$css$13 = {
|
|
6722
7347
|
hash: "svelte-9pwfkr",
|
|
6723
7348
|
code: ".multi-column.svelte-9pwfkr {padding:0;margin:0;list-style:none;display:flex;flex-direction:row;}"
|
|
6724
7349
|
};
|
|
6725
7350
|
function MultiColumn($$anchor, $$props) {
|
|
6726
7351
|
$.push($$props, false);
|
|
6727
|
-
$.append_styles($$anchor, $$css$
|
|
7352
|
+
$.append_styles($$anchor, $$css$13);
|
|
6728
7353
|
const style = $.mutable_state();
|
|
6729
7354
|
let layerId = $.prop($$props, "layerId", 8);
|
|
6730
7355
|
let props = $.prop($$props, "props", 8);
|
|
@@ -6777,20 +7402,25 @@ function MultiColumn($$anchor, $$props) {
|
|
|
6777
7402
|
//#endregion
|
|
6778
7403
|
//#region src/components-flex/multi-column/MultiColumnItem.svelte
|
|
6779
7404
|
var root$7 = $.template(`<li><!></li>`);
|
|
6780
|
-
const $$css$
|
|
7405
|
+
const $$css$12 = {
|
|
6781
7406
|
hash: "svelte-18bwzrs",
|
|
6782
7407
|
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);}"
|
|
6783
7408
|
};
|
|
6784
7409
|
function MultiColumnItem($$anchor, $$props) {
|
|
6785
7410
|
$.push($$props, false);
|
|
6786
|
-
$.append_styles($$anchor, $$css$
|
|
7411
|
+
$.append_styles($$anchor, $$css$12);
|
|
7412
|
+
const [$$stores, $$cleanup] = $.setup_stores();
|
|
7413
|
+
const $clickable = () => $.store_get($.get(clickable), "$clickable", $$stores);
|
|
7414
|
+
const clickable = $.mutable_state();
|
|
6787
7415
|
const variables$1 = $.mutable_state();
|
|
6788
7416
|
const style = $.mutable_state();
|
|
6789
7417
|
let layerId = $.prop($$props, "layerId", 8);
|
|
6790
7418
|
let props = $.prop($$props, "props", 8);
|
|
6791
7419
|
useInjectCustomizeCss(props(), layerId());
|
|
6792
|
-
const { attributes, element, handleClick } = useClickable_default(props());
|
|
6793
7420
|
const context = getContext(MULTI_COLUMN_ITEM_CONTEXT_KEY) || {};
|
|
7421
|
+
$.legacy_pre_effect(() => $.deep_read_state(props()), () => {
|
|
7422
|
+
$.store_unsub($.set(clickable, useClickable_default(props())), "$clickable", $$stores);
|
|
7423
|
+
});
|
|
6794
7424
|
$.legacy_pre_effect(() => {}, () => {
|
|
6795
7425
|
$.set(variables$1, {
|
|
6796
7426
|
"--multi-column-item-padding-top": context.paddingTop ?? "0",
|
|
@@ -6813,13 +7443,15 @@ function MultiColumnItem($$anchor, $$props) {
|
|
|
6813
7443
|
$.init();
|
|
6814
7444
|
var li = root$7();
|
|
6815
7445
|
var node = $.child(li);
|
|
6816
|
-
$.element(node, () => element, false, ($$element, $$anchor$1) => {
|
|
6817
|
-
let
|
|
6818
|
-
$.template_effect(() =>
|
|
6819
|
-
|
|
7446
|
+
$.element(node, () => $clickable().element, false, ($$element, $$anchor$1) => {
|
|
7447
|
+
let attributes;
|
|
7448
|
+
$.template_effect(() => attributes = $.set_attributes($$element, attributes, {
|
|
7449
|
+
...$clickable().attributes,
|
|
6820
7450
|
class: "multi-column-item-inner"
|
|
6821
7451
|
}, "svelte-18bwzrs"));
|
|
6822
|
-
$.event("click", $$element,
|
|
7452
|
+
$.event("click", $$element, function(...$$args) {
|
|
7453
|
+
$clickable().handleClick?.apply(this, $$args);
|
|
7454
|
+
});
|
|
6823
7455
|
var fragment = $.comment();
|
|
6824
7456
|
var node_1 = $.first_child(fragment);
|
|
6825
7457
|
$.slot(node_1, $$props, "default", {}, null);
|
|
@@ -6834,18 +7466,19 @@ function MultiColumnItem($$anchor, $$props) {
|
|
|
6834
7466
|
}, [() => $.clsx(["multi-column-item", ...props().classNames ?? []].join(" "))], $.derived_safe_equal);
|
|
6835
7467
|
$.append($$anchor, li);
|
|
6836
7468
|
$.pop();
|
|
7469
|
+
$$cleanup();
|
|
6837
7470
|
}
|
|
6838
7471
|
|
|
6839
7472
|
//#endregion
|
|
6840
7473
|
//#region src/components-flex/youtube/Youtube.svelte
|
|
6841
7474
|
var root$6 = $.template(`<div><div class="youtube-player"></div></div>`);
|
|
6842
|
-
const $$css$
|
|
7475
|
+
const $$css$11 = {
|
|
6843
7476
|
hash: "svelte-odfkc2",
|
|
6844
7477
|
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;}"
|
|
6845
7478
|
};
|
|
6846
7479
|
function Youtube($$anchor, $$props) {
|
|
6847
7480
|
$.push($$props, false);
|
|
6848
|
-
$.append_styles($$anchor, $$css$
|
|
7481
|
+
$.append_styles($$anchor, $$css$11);
|
|
6849
7482
|
const style = $.mutable_state();
|
|
6850
7483
|
let props = $.prop($$props, "props", 24, () => ({}));
|
|
6851
7484
|
let layerId = $.prop($$props, "layerId", 8, "");
|
|
@@ -6942,13 +7575,13 @@ function Youtube($$anchor, $$props) {
|
|
|
6942
7575
|
//#endregion
|
|
6943
7576
|
//#region src/components-flex/count-down/CountDown.svelte
|
|
6944
7577
|
var root$5 = $.template(`<div><!></div>`);
|
|
6945
|
-
const $$css$
|
|
7578
|
+
const $$css$10 = {
|
|
6946
7579
|
hash: "svelte-1n395il",
|
|
6947
7580
|
code: ".countdown.svelte-1n395il {display:flex;align-items:center;gap:4px;}"
|
|
6948
7581
|
};
|
|
6949
7582
|
function CountDown($$anchor, $$props) {
|
|
6950
7583
|
$.push($$props, false);
|
|
6951
|
-
$.append_styles($$anchor, $$css$
|
|
7584
|
+
$.append_styles($$anchor, $$css$10);
|
|
6952
7585
|
const day = $.mutable_state();
|
|
6953
7586
|
const hour = $.mutable_state();
|
|
6954
7587
|
const min = $.mutable_state();
|
|
@@ -7042,23 +7675,19 @@ const useText = (props, layerId) => {
|
|
|
7042
7675
|
const getColor = () => {
|
|
7043
7676
|
if (props.color) return props.color;
|
|
7044
7677
|
if (props.theme) return themeStyles[props.theme].color;
|
|
7045
|
-
return void 0;
|
|
7046
7678
|
};
|
|
7047
7679
|
const getCssSize = () => {
|
|
7048
7680
|
const getFontSize = () => {
|
|
7049
7681
|
if (props.fontSize) return props.fontSize;
|
|
7050
7682
|
if (props.size) return TEXT_VARIANTS.size[props.size].fontSize;
|
|
7051
|
-
return void 0;
|
|
7052
7683
|
};
|
|
7053
7684
|
const getLineHeight = () => {
|
|
7054
7685
|
if (props.lineHeight) return props.lineHeight;
|
|
7055
7686
|
if (props.size) return TEXT_VARIANTS.size[props.size].lineHeight;
|
|
7056
|
-
return void 0;
|
|
7057
7687
|
};
|
|
7058
7688
|
const getFontWeight = () => {
|
|
7059
7689
|
if (props.fontWeight) return props.fontWeight;
|
|
7060
7690
|
if (props.size) return TEXT_VARIANTS.size[props.size].fontWeight;
|
|
7061
|
-
return void 0;
|
|
7062
7691
|
};
|
|
7063
7692
|
return {
|
|
7064
7693
|
fontSize: getFontSize(),
|
|
@@ -7129,49 +7758,126 @@ function CountDownValue($$anchor, $$props) {
|
|
|
7129
7758
|
}
|
|
7130
7759
|
|
|
7131
7760
|
//#endregion
|
|
7132
|
-
//#region src/components-flex/clip-copy/ClipCopy.
|
|
7133
|
-
var
|
|
7134
|
-
|
|
7135
|
-
|
|
7136
|
-
|
|
7761
|
+
//#region src/components-flex/clip-copy/ClipCopy.css.ts
|
|
7762
|
+
var ClipCopy_css_default = (layerId, _props) => {
|
|
7763
|
+
return createComponentRawCss(layerId, (style) => [
|
|
7764
|
+
style("", {
|
|
7765
|
+
position: "relative",
|
|
7766
|
+
display: "inline-flex"
|
|
7767
|
+
}),
|
|
7768
|
+
style(".clipboard-button", {
|
|
7769
|
+
position: "relative",
|
|
7770
|
+
display: "inline-flex",
|
|
7771
|
+
alignItems: "center",
|
|
7772
|
+
whiteSpace: "nowrap",
|
|
7773
|
+
gap: "12px",
|
|
7774
|
+
background: "none",
|
|
7775
|
+
border: "0",
|
|
7776
|
+
transition: "0.12s",
|
|
7777
|
+
cursor: "pointer"
|
|
7778
|
+
}),
|
|
7779
|
+
style(".clipboard-button:hover", { opacity: "0.8" }),
|
|
7780
|
+
style(".clipboard-button:active", { opacity: "0.6" }),
|
|
7781
|
+
style(".clipboard-tooltip", {
|
|
7782
|
+
position: "absolute",
|
|
7783
|
+
top: "-8px",
|
|
7784
|
+
left: "50%",
|
|
7785
|
+
display: "block",
|
|
7786
|
+
transform: "translate(-50%, -100%)",
|
|
7787
|
+
padding: "4px 10px",
|
|
7788
|
+
backgroundColor: "#333333",
|
|
7789
|
+
color: "#ffffff",
|
|
7790
|
+
fontSize: "11px",
|
|
7791
|
+
fontWeight: "bold",
|
|
7792
|
+
borderRadius: "4px",
|
|
7793
|
+
transition: "transform 0.2s ease-out",
|
|
7794
|
+
whiteSpace: "nowrap",
|
|
7795
|
+
pointerEvents: "none"
|
|
7796
|
+
}),
|
|
7797
|
+
style(".clipboard-tooltip:after", {
|
|
7798
|
+
content: "",
|
|
7799
|
+
display: "block",
|
|
7800
|
+
position: "absolute",
|
|
7801
|
+
bottom: "0",
|
|
7802
|
+
left: "50%",
|
|
7803
|
+
width: "8px",
|
|
7804
|
+
height: "8px",
|
|
7805
|
+
backgroundColor: "#333333",
|
|
7806
|
+
borderRadius: "1px",
|
|
7807
|
+
transform: "translate(-50%, 40%) rotate(45deg)"
|
|
7808
|
+
}),
|
|
7809
|
+
style(".clipboard-tooltip[aria-hidden=\"true\"]", {
|
|
7810
|
+
opacity: "0",
|
|
7811
|
+
transform: "translate(-50%, -80%)"
|
|
7812
|
+
})
|
|
7813
|
+
]);
|
|
7137
7814
|
};
|
|
7815
|
+
|
|
7816
|
+
//#endregion
|
|
7817
|
+
//#region src/components-flex/clip-copy/ClipCopy.svelte
|
|
7818
|
+
var root_1$6 = $.template(`<div><button class="clipboard-button"><!></button> <span class="clipboard-tooltip">コピーしました</span></div>`);
|
|
7819
|
+
var root$3 = $.template(`<!> <!>`, 1);
|
|
7138
7820
|
function ClipCopy($$anchor, $$props) {
|
|
7139
7821
|
$.push($$props, false);
|
|
7140
|
-
|
|
7822
|
+
const [$$stores, $$cleanup] = $.setup_stores();
|
|
7823
|
+
const $responsiveProps = () => $.store_get(responsiveProps, "$responsiveProps", $$stores);
|
|
7824
|
+
const rProps = $.mutable_state();
|
|
7141
7825
|
let props = $.prop($$props, "props", 24, () => ({}));
|
|
7142
|
-
let layerId = $.prop($$props, "layerId",
|
|
7826
|
+
let layerId = $.prop($$props, "layerId", 24, () => crypto.randomUUID());
|
|
7143
7827
|
useInjectCustomizeCss(props(), layerId());
|
|
7144
7828
|
let buttonElement = $.mutable_state();
|
|
7145
7829
|
let showTooltip = $.mutable_state(false);
|
|
7146
|
-
const
|
|
7830
|
+
const cssCode = ClipCopy_css_default(layerId(), props());
|
|
7831
|
+
const responsiveProps = useResponsiveProps(props());
|
|
7832
|
+
const handleClick = async (e) => {
|
|
7147
7833
|
e.preventDefault();
|
|
7148
|
-
const targetText =
|
|
7149
|
-
|
|
7150
|
-
|
|
7151
|
-
|
|
7152
|
-
|
|
7153
|
-
|
|
7154
|
-
|
|
7155
|
-
|
|
7834
|
+
const targetText = $.get(rProps).content ?? $.get(buttonElement)?.innerText ?? "";
|
|
7835
|
+
try {
|
|
7836
|
+
if (await copyToClipboard(targetText)) {
|
|
7837
|
+
send_event("_click_copy", { text: targetText });
|
|
7838
|
+
if ($.get(rProps).copiedEventName) send_event($.get(rProps).copiedEventName, { text: targetText });
|
|
7839
|
+
$.set(showTooltip, true);
|
|
7840
|
+
setTimeout(() => {
|
|
7841
|
+
$.set(showTooltip, false);
|
|
7842
|
+
}, 3e3);
|
|
7843
|
+
}
|
|
7844
|
+
} catch (e$1) {
|
|
7845
|
+
console.warn(e$1);
|
|
7846
|
+
}
|
|
7156
7847
|
};
|
|
7848
|
+
$.legacy_pre_effect(() => $responsiveProps(), () => {
|
|
7849
|
+
$.set(rProps, $responsiveProps());
|
|
7850
|
+
});
|
|
7851
|
+
$.legacy_pre_effect_reset();
|
|
7157
7852
|
$.init();
|
|
7158
|
-
var
|
|
7159
|
-
var
|
|
7160
|
-
|
|
7161
|
-
$.
|
|
7162
|
-
|
|
7163
|
-
|
|
7164
|
-
|
|
7165
|
-
|
|
7166
|
-
|
|
7167
|
-
$.
|
|
7168
|
-
$.
|
|
7169
|
-
$.
|
|
7170
|
-
$.
|
|
7171
|
-
|
|
7172
|
-
|
|
7173
|
-
|
|
7853
|
+
var fragment = root$3();
|
|
7854
|
+
var node = $.first_child(fragment);
|
|
7855
|
+
StylePortal(node, { cssText: cssCode });
|
|
7856
|
+
var node_1 = $.sibling(node, 2);
|
|
7857
|
+
var consequent = ($$anchor$1) => {
|
|
7858
|
+
var div = root_1$6();
|
|
7859
|
+
var button = $.child(div);
|
|
7860
|
+
var node_2 = $.child(button);
|
|
7861
|
+
$.slot(node_2, $$props, "default", {}, null);
|
|
7862
|
+
$.reset(button);
|
|
7863
|
+
$.bind_this(button, ($$value) => $.set(buttonElement, $$value), () => $.get(buttonElement));
|
|
7864
|
+
var span = $.sibling(button, 2);
|
|
7865
|
+
$.reset(div);
|
|
7866
|
+
$.template_effect(($0) => {
|
|
7867
|
+
$.set_attribute(div, "id", $.get(rProps).id);
|
|
7868
|
+
$.set_class(div, 1, $0);
|
|
7869
|
+
$.set_attribute(div, "data-layer-id", layerId());
|
|
7870
|
+
$.set_attribute(span, "aria-hidden", !$.get(showTooltip));
|
|
7871
|
+
}, [() => $.clsx(["clipboard", ...$.get(rProps).classNames ?? []].join(" "))], $.derived_safe_equal);
|
|
7872
|
+
$.event("click", button, handleClick);
|
|
7873
|
+
$.append($$anchor$1, div);
|
|
7874
|
+
};
|
|
7875
|
+
$.if(node_1, ($$render) => {
|
|
7876
|
+
if (!$.get(rProps).hidden) $$render(consequent);
|
|
7877
|
+
});
|
|
7878
|
+
$.append($$anchor, fragment);
|
|
7174
7879
|
$.pop();
|
|
7880
|
+
$$cleanup();
|
|
7175
7881
|
}
|
|
7176
7882
|
|
|
7177
7883
|
//#endregion
|
|
@@ -7347,7 +8053,7 @@ function FormField($$anchor, $$props) {
|
|
|
7347
8053
|
$.append($$anchor$1, dt);
|
|
7348
8054
|
};
|
|
7349
8055
|
$.if(node, ($$render) => {
|
|
7350
|
-
if (props().label) $$render(consequent_1);
|
|
8056
|
+
if (props().label && props().showLabel) $$render(consequent_1);
|
|
7351
8057
|
});
|
|
7352
8058
|
var dd = $.sibling(node, 2);
|
|
7353
8059
|
var node_2 = $.child(dd);
|
|
@@ -8443,4 +9149,4 @@ const flexComponentSchemes = {
|
|
|
8443
9149
|
};
|
|
8444
9150
|
|
|
8445
9151
|
//#endregion
|
|
8446
|
-
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,
|
|
9152
|
+
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 };
|