@plaidev/karte-action-sdk 1.1.270-29228770.05dce6ca → 1.1.270-29270413.6a2b1dc5c
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/action.d.ts +0 -1
- package/dist/actionEvent.d.ts +0 -1
- package/dist/components/index.d.ts +0 -1
- package/dist/components-flex/avatar/types.d.ts +0 -1
- package/dist/components-flex/button/types.d.ts +0 -3
- package/dist/components-flex/button-outlined/types.d.ts +0 -3
- package/dist/components-flex/button-text/types.d.ts +0 -3
- package/dist/components-flex/form/types.d.ts +35 -20
- package/dist/components-flex/form.d.ts +40 -3
- package/dist/components-flex/icon/types.d.ts +0 -1
- package/dist/components-flex/text/types.d.ts +0 -3
- package/dist/components-flex/text-link/types.d.ts +0 -3
- package/dist/components-flex/variants.d.ts +0 -15
- package/dist/components-flex/youtube/types.d.ts +0 -1
- package/dist/constants.d.ts +0 -1
- package/dist/hooks/useInjectCustomizeCss.d.ts +1 -1
- package/dist/hooks/useText.d.ts +1 -1
- package/dist/hydrate/action.d.ts +0 -1
- package/dist/hydrate/actionEvent.d.ts +0 -1
- package/dist/hydrate/components/index.d.ts +0 -1
- package/dist/hydrate/components-flex/avatar/types.d.ts +0 -1
- package/dist/hydrate/components-flex/button/types.d.ts +0 -3
- package/dist/hydrate/components-flex/button-outlined/types.d.ts +0 -3
- package/dist/hydrate/components-flex/button-text/types.d.ts +0 -3
- package/dist/hydrate/components-flex/form/types.d.ts +35 -20
- package/dist/hydrate/components-flex/form.d.ts +40 -3
- package/dist/hydrate/components-flex/icon/types.d.ts +0 -1
- package/dist/hydrate/components-flex/text/types.d.ts +0 -3
- package/dist/hydrate/components-flex/text-link/types.d.ts +0 -3
- package/dist/hydrate/components-flex/variants.d.ts +0 -15
- package/dist/hydrate/components-flex/youtube/types.d.ts +0 -1
- package/dist/hydrate/constants.d.ts +0 -1
- package/dist/hydrate/hooks/useInjectCustomizeCss.d.ts +1 -1
- package/dist/hydrate/hooks/useText.d.ts +1 -1
- package/dist/hydrate/index.d.ts +0 -2
- package/dist/hydrate/index.es.js +903 -572
- package/dist/hydrate/index.svelte5.d.ts +2 -1
- package/dist/hydrate/modal.d.ts +0 -2
- package/dist/hydrate/modal.svelte5.d.ts +0 -2
- package/dist/hydrate/types.d.ts +0 -1
- package/dist/icons.d.ts +0 -3
- package/dist/index.es.d.ts +0 -2
- package/dist/index.es.js +891 -510
- package/dist/modal.d.ts +0 -2
- package/dist/modal.svelte5.d.ts +0 -2
- package/dist/svelte5/action.d.ts +0 -1
- package/dist/svelte5/actionEvent.d.ts +0 -1
- package/dist/svelte5/components/index.d.ts +0 -1
- package/dist/svelte5/components-flex/avatar/types.d.ts +0 -1
- package/dist/svelte5/components-flex/button/types.d.ts +0 -3
- package/dist/svelte5/components-flex/button-outlined/types.d.ts +0 -3
- package/dist/svelte5/components-flex/button-text/types.d.ts +0 -3
- package/dist/svelte5/components-flex/form/types.d.ts +35 -20
- package/dist/svelte5/components-flex/form.d.ts +40 -3
- package/dist/svelte5/components-flex/icon/types.d.ts +0 -1
- package/dist/svelte5/components-flex/text/types.d.ts +0 -3
- package/dist/svelte5/components-flex/text-link/types.d.ts +0 -3
- package/dist/svelte5/components-flex/variants.d.ts +0 -15
- package/dist/svelte5/components-flex/youtube/types.d.ts +0 -1
- package/dist/svelte5/constants.d.ts +0 -1
- package/dist/svelte5/hooks/useInjectCustomizeCss.d.ts +1 -1
- package/dist/svelte5/hooks/useText.d.ts +1 -1
- package/dist/svelte5/hydrate/action.d.ts +0 -1
- package/dist/svelte5/hydrate/actionEvent.d.ts +0 -1
- package/dist/svelte5/hydrate/components/index.d.ts +0 -1
- package/dist/svelte5/hydrate/components-flex/avatar/types.d.ts +0 -1
- package/dist/svelte5/hydrate/components-flex/button/types.d.ts +0 -3
- package/dist/svelte5/hydrate/components-flex/button-outlined/types.d.ts +0 -3
- package/dist/svelte5/hydrate/components-flex/button-text/types.d.ts +0 -3
- package/dist/svelte5/hydrate/components-flex/form/types.d.ts +35 -20
- package/dist/svelte5/hydrate/components-flex/form.d.ts +40 -3
- package/dist/svelte5/hydrate/components-flex/icon/types.d.ts +0 -1
- package/dist/svelte5/hydrate/components-flex/text/types.d.ts +0 -3
- package/dist/svelte5/hydrate/components-flex/text-link/types.d.ts +0 -3
- package/dist/svelte5/hydrate/components-flex/variants.d.ts +0 -15
- package/dist/svelte5/hydrate/components-flex/youtube/types.d.ts +0 -1
- package/dist/svelte5/hydrate/constants.d.ts +0 -1
- package/dist/svelte5/hydrate/hooks/useInjectCustomizeCss.d.ts +1 -1
- package/dist/svelte5/hydrate/hooks/useText.d.ts +1 -1
- package/dist/svelte5/hydrate/index.es.d.ts +2 -1
- package/dist/svelte5/hydrate/index.es.js +595 -378
- package/dist/svelte5/hydrate/modal.d.ts +0 -2
- package/dist/svelte5/hydrate/modal.svelte5.d.ts +0 -2
- package/dist/svelte5/hydrate/types.d.ts +0 -1
- package/dist/svelte5/index.es.d.ts +2 -1
- package/dist/svelte5/index.es.js +595 -378
- package/dist/svelte5/index.front2.es.js +637 -417
- package/dist/svelte5/index.svelte5.d.ts +2 -1
- package/dist/svelte5/modal.d.ts +0 -2
- package/dist/svelte5/modal.svelte5.d.ts +0 -2
- package/dist/svelte5/types.d.ts +0 -1
- package/dist/templates.cjs.js +4 -2
- package/dist/templates.d.ts +0 -2
- package/dist/templates.js +4 -2
- package/dist/types.d.ts +0 -1
- package/package.json +3 -3
@@ -2445,7 +2445,7 @@ function formDataToEventValues$1(campaignId, formData$1) {
|
|
2445
2445
|
...answersMap
|
2446
2446
|
} };
|
2447
2447
|
}
|
2448
|
-
function formDataToIdentifyEventValues(formData$1) {
|
2448
|
+
function formDataToIdentifyEventValues$1(formData$1) {
|
2449
2449
|
return Object.fromEntries(Object.entries(formData$1).map(([name, dataItem]) => {
|
2450
2450
|
const value = dataItem.value;
|
2451
2451
|
return [name, value];
|
@@ -2459,7 +2459,7 @@ function submit() {
|
|
2459
2459
|
const formData$1 = get(formData);
|
2460
2460
|
const identifyFormData$1 = get(identifyFormData);
|
2461
2461
|
const values = formDataToEventValues$1(campaignId, formData$1);
|
2462
|
-
const identifyValues = formDataToIdentifyEventValues(identifyFormData$1);
|
2462
|
+
const identifyValues = formDataToIdentifyEventValues$1(identifyFormData$1);
|
2463
2463
|
if (Object.keys(identifyValues).length > 0) identifyValues["user_id"] = getVariables()?.[USER_ID_VARIABLE_NAME];
|
2464
2464
|
return {
|
2465
2465
|
values,
|
@@ -2849,6 +2849,33 @@ const LAYOUT_COMPONENT_NAMES = [
|
|
2849
2849
|
|
2850
2850
|
//#endregion
|
2851
2851
|
//#region src/components-flex/form.ts
|
2852
|
+
const FORM_VALIDATION_TYPE = {
|
2853
|
+
required: "必須",
|
2854
|
+
email: "メールアドレス",
|
2855
|
+
tel: "電話番号",
|
2856
|
+
url: "URL",
|
2857
|
+
minLength: "最小文字数",
|
2858
|
+
maxLength: "最大文字数",
|
2859
|
+
minCount: "最小個数",
|
2860
|
+
maxCount: "最大個数",
|
2861
|
+
pattern: "正規表現"
|
2862
|
+
};
|
2863
|
+
const FORM_VALIDATION_DEFAULT_ERROR_MESSAGES = {
|
2864
|
+
required: `入力してください`,
|
2865
|
+
minLength: `{minLength}文字以上で入力してください`,
|
2866
|
+
maxLength: `{maxLength}文字以下で入力してください`,
|
2867
|
+
minCount: `{minCount}個以上選択してください`,
|
2868
|
+
maxCount: `{maxCount}個以下で選択してください`,
|
2869
|
+
pattern: `正しい形式で入力してください`,
|
2870
|
+
email: `正しいメールアドレスを入力してください`,
|
2871
|
+
tel: `正しい電話番号を入力してください`,
|
2872
|
+
url: `正しいURLを入力してください`
|
2873
|
+
};
|
2874
|
+
const FORM_VALIDATION_REGEX = {
|
2875
|
+
email: "^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9-]*\\.?[a-zA-Z0-9-]+\\.[a-zA-Z]{2,}$",
|
2876
|
+
tel: "^0\\d{1,4}[-]?\\d{1,4}[-]?\\d{4}$",
|
2877
|
+
url: "^http(s)?://.+$"
|
2878
|
+
};
|
2852
2879
|
/**
|
2853
2880
|
* @internal
|
2854
2881
|
*/
|
@@ -2857,6 +2884,7 @@ const formStore = writable({
|
|
2857
2884
|
states: {}
|
2858
2885
|
});
|
2859
2886
|
const formSubmittedValues = writable({});
|
2887
|
+
const formSubmittedIdentifyValues = writable({});
|
2860
2888
|
/**
|
2861
2889
|
* @public
|
2862
2890
|
*/
|
@@ -2875,7 +2903,6 @@ const getFormFieldState = (name) => {
|
|
2875
2903
|
* @public
|
2876
2904
|
*/
|
2877
2905
|
const getFormFieldValue = (name) => {
|
2878
|
-
console.log("getFormFieldValue", getFormFieldState(name)?.value ?? void 0);
|
2879
2906
|
return getFormFieldState(name)?.value ?? void 0;
|
2880
2907
|
};
|
2881
2908
|
/**
|
@@ -2963,14 +2990,18 @@ const registerFormField = (schemas) => {
|
|
2963
2990
|
defaultValue: schema.defaultValue,
|
2964
2991
|
type: schema.type,
|
2965
2992
|
required: schema.required,
|
2966
|
-
statePath: getState()
|
2993
|
+
statePath: getState(),
|
2994
|
+
isIdentify: schema.isIdentify,
|
2995
|
+
validations: schema.validations
|
2967
2996
|
};
|
2968
2997
|
else resultSchemes.push({
|
2969
2998
|
name: schema.name,
|
2970
2999
|
defaultValue: schema.defaultValue,
|
2971
3000
|
type: schema.type,
|
2972
3001
|
required: schema.required,
|
2973
|
-
statePath: getState()
|
3002
|
+
statePath: getState(),
|
3003
|
+
isIdentify: schema.isIdentify,
|
3004
|
+
validations: schema.validations
|
2974
3005
|
});
|
2975
3006
|
});
|
2976
3007
|
return resultSchemes;
|
@@ -2978,21 +3009,23 @@ const registerFormField = (schemas) => {
|
|
2978
3009
|
states: (() => {
|
2979
3010
|
const states$1 = { ...updater.states };
|
2980
3011
|
const submittedValues = get(formSubmittedValues);
|
2981
|
-
|
2982
|
-
|
2983
|
-
|
2984
|
-
|
2985
|
-
|
2986
|
-
|
2987
|
-
|
2988
|
-
|
2989
|
-
|
2990
|
-
|
2991
|
-
}
|
2992
|
-
|
2993
|
-
|
2994
|
-
|
2995
|
-
|
3012
|
+
const submittedIdentifyValues = get(formSubmittedIdentifyValues);
|
3013
|
+
schemas.forEach((schema) => {
|
3014
|
+
if (!(schema.name in states$1) && schema.name) states$1[schema.name] = {
|
3015
|
+
isDirty: false,
|
3016
|
+
isValid: false,
|
3017
|
+
isTouched: false,
|
3018
|
+
type: schema.type,
|
3019
|
+
value: (() => {
|
3020
|
+
if (schema.isIdentify) {
|
3021
|
+
if (submittedIdentifyValues[schema.name]) return submittedIdentifyValues[schema.name].value;
|
3022
|
+
} else if (submittedValues[schema.name]) return submittedValues[schema.name].value;
|
3023
|
+
if (schema.type === "checkboxes") return Array.isArray(schema.defaultValue) ? schema.defaultValue : [];
|
3024
|
+
else if (schema.type === "boolean") return schema.defaultValue ?? void 0;
|
3025
|
+
else return typeof schema.defaultValue === "string" ? schema.defaultValue : "";
|
3026
|
+
})(),
|
3027
|
+
errorMessage: null
|
3028
|
+
};
|
2996
3029
|
});
|
2997
3030
|
return states$1;
|
2998
3031
|
})()
|
@@ -3017,31 +3050,81 @@ const unregisterFormField = (fieldNames) => {
|
|
3017
3050
|
}));
|
3018
3051
|
};
|
3019
3052
|
const validateFormField = (schema, value) => {
|
3020
|
-
const store = get(formStore);
|
3021
3053
|
if (schema.required) {
|
3022
3054
|
if (schema.type === "checkboxes") {
|
3023
|
-
if (value.length === 0) return {
|
3055
|
+
if (Array.isArray(value) && value.length === 0) return {
|
3024
3056
|
isValid: false,
|
3025
|
-
error: "
|
3057
|
+
error: FORM_VALIDATION_DEFAULT_ERROR_MESSAGES["required"]
|
3026
3058
|
};
|
3027
3059
|
} else if (typeof value !== "string" || value.trim() === "") return {
|
3028
3060
|
isValid: false,
|
3029
|
-
error: "
|
3061
|
+
error: FORM_VALIDATION_DEFAULT_ERROR_MESSAGES["required"]
|
3030
3062
|
};
|
3031
3063
|
}
|
3064
|
+
if (schema.validations && schema.validations.length > 0) for (const validation of schema.validations) {
|
3065
|
+
const { type, number, errorMessage, regexp } = validation;
|
3066
|
+
if (type === "minLength" && !!number) {
|
3067
|
+
if (typeof value === "string" && value.length < number) return {
|
3068
|
+
isValid: false,
|
3069
|
+
error: (errorMessage || FORM_VALIDATION_DEFAULT_ERROR_MESSAGES[type]).replace("{minLength}", number.toString())
|
3070
|
+
};
|
3071
|
+
}
|
3072
|
+
if (type === "maxLength" && !!number) {
|
3073
|
+
if (typeof value === "string" && value.length > number) return {
|
3074
|
+
isValid: false,
|
3075
|
+
error: (errorMessage || FORM_VALIDATION_DEFAULT_ERROR_MESSAGES[type]).replace("{maxLength}", number.toString())
|
3076
|
+
};
|
3077
|
+
}
|
3078
|
+
if (type === "minCount" && !!number) {
|
3079
|
+
if (Array.isArray(value) && value.length < number) return {
|
3080
|
+
isValid: false,
|
3081
|
+
error: (errorMessage || FORM_VALIDATION_DEFAULT_ERROR_MESSAGES[type]).replace("{minCount}", number.toString())
|
3082
|
+
};
|
3083
|
+
}
|
3084
|
+
if (type === "maxCount" && !!number) {
|
3085
|
+
if (Array.isArray(value) && value.length > number) return {
|
3086
|
+
isValid: false,
|
3087
|
+
error: (errorMessage || FORM_VALIDATION_DEFAULT_ERROR_MESSAGES[type]).replace("{maxCount}", number.toString())
|
3088
|
+
};
|
3089
|
+
}
|
3090
|
+
if (type === "pattern" && !!regexp) {
|
3091
|
+
if (typeof value === "string" && new RegExp(regexp).test(value) === false) return {
|
3092
|
+
isValid: false,
|
3093
|
+
error: errorMessage || FORM_VALIDATION_DEFAULT_ERROR_MESSAGES[type]
|
3094
|
+
};
|
3095
|
+
}
|
3096
|
+
if (type === "email") {
|
3097
|
+
if (typeof value === "string" && new RegExp(regexp || FORM_VALIDATION_REGEX.email).test(value) === false) return {
|
3098
|
+
isValid: false,
|
3099
|
+
error: errorMessage || FORM_VALIDATION_DEFAULT_ERROR_MESSAGES[type]
|
3100
|
+
};
|
3101
|
+
}
|
3102
|
+
if (type === "tel") {
|
3103
|
+
if (typeof value === "string" && new RegExp(regexp || FORM_VALIDATION_REGEX.tel).test(value) === false) return {
|
3104
|
+
isValid: false,
|
3105
|
+
error: errorMessage || FORM_VALIDATION_DEFAULT_ERROR_MESSAGES[type]
|
3106
|
+
};
|
3107
|
+
}
|
3108
|
+
if (type === "url") {
|
3109
|
+
if (typeof value === "string" && new RegExp(regexp || FORM_VALIDATION_REGEX.url).test(value) === false) return {
|
3110
|
+
isValid: false,
|
3111
|
+
error: errorMessage || FORM_VALIDATION_DEFAULT_ERROR_MESSAGES[type]
|
3112
|
+
};
|
3113
|
+
}
|
3114
|
+
}
|
3032
3115
|
return {
|
3033
3116
|
isValid: true,
|
3034
3117
|
error: void 0
|
3035
3118
|
};
|
3036
3119
|
};
|
3037
3120
|
function createAnswerValue(value) {
|
3038
|
-
if (
|
3039
|
-
else
|
3121
|
+
if (value.type === "input" || value.type === "textarea") return { free_answer: String(value.value) };
|
3122
|
+
else return { choices: Array.isArray(value) ? value : [value] };
|
3040
3123
|
}
|
3041
|
-
function formDataToEventValues(campaignId,
|
3124
|
+
function formDataToEventValues(campaignId, values) {
|
3042
3125
|
const questions = [];
|
3043
3126
|
const answersMap = {};
|
3044
|
-
Object.entries(
|
3127
|
+
Object.entries(values).forEach(([name, value]) => {
|
3045
3128
|
questions.push(name);
|
3046
3129
|
const answerKey = `question_${name}`;
|
3047
3130
|
answersMap[answerKey] = createAnswerValue(value);
|
@@ -3051,6 +3134,9 @@ function formDataToEventValues(campaignId, formData$1) {
|
|
3051
3134
|
...answersMap
|
3052
3135
|
} };
|
3053
3136
|
}
|
3137
|
+
function formDataToIdentifyEventValues(values) {
|
3138
|
+
return Object.fromEntries(Object.entries(values).map(([name, { value }]) => [name, value]));
|
3139
|
+
}
|
3054
3140
|
/**
|
3055
3141
|
* @public
|
3056
3142
|
*/
|
@@ -3078,13 +3164,30 @@ function onSubmitForm(fn) {
|
|
3078
3164
|
})()
|
3079
3165
|
}));
|
3080
3166
|
if (hasInvalid) return;
|
3081
|
-
const
|
3167
|
+
const newValues = {};
|
3168
|
+
const newIdentifyValues = {};
|
3169
|
+
currentStateSchemas.forEach((schema) => {
|
3170
|
+
if (schema.isIdentify) newIdentifyValues[schema.name] = {
|
3171
|
+
value: formData$1.states[schema.name]?.value,
|
3172
|
+
type: schema.type
|
3173
|
+
};
|
3174
|
+
else newValues[schema.name] = {
|
3175
|
+
value: formData$1.states[schema.name]?.value,
|
3176
|
+
type: schema.type
|
3177
|
+
};
|
3178
|
+
});
|
3082
3179
|
formSubmittedValues.update((updater) => ({
|
3083
3180
|
...updater,
|
3084
|
-
...
|
3181
|
+
...newValues
|
3182
|
+
}));
|
3183
|
+
if (Object.keys(newIdentifyValues).length > 0) formSubmittedIdentifyValues.update((updater) => ({
|
3184
|
+
...updater,
|
3185
|
+
...newIdentifyValues
|
3085
3186
|
}));
|
3086
3187
|
fn({
|
3087
|
-
|
3188
|
+
currentStateIdentifyValues: formDataToIdentifyEventValues(newIdentifyValues),
|
3189
|
+
allIdentifyValues: formDataToIdentifyEventValues(get(formSubmittedIdentifyValues)),
|
3190
|
+
currentStateValues: formDataToEventValues(campaignId, newValues),
|
3088
3191
|
allValues: formDataToEventValues(campaignId, get(formSubmittedValues))
|
3089
3192
|
});
|
3090
3193
|
}
|
@@ -3110,16 +3213,14 @@ function Header($$anchor, $$props) {
|
|
3110
3213
|
$.head(($$anchor$1) => {
|
3111
3214
|
var fragment = $.comment();
|
3112
3215
|
var node = $.first_child(fragment);
|
3113
|
-
{
|
3114
|
-
var
|
3115
|
-
|
3116
|
-
|
3117
|
-
|
3118
|
-
|
3119
|
-
|
3120
|
-
|
3121
|
-
});
|
3122
|
-
}
|
3216
|
+
var consequent = ($$anchor$2) => {
|
3217
|
+
var link = root_2$9();
|
3218
|
+
$.template_effect(() => $.set_attribute(link, "href", $.get(googleFontUrl)));
|
3219
|
+
$.append($$anchor$2, link);
|
3220
|
+
};
|
3221
|
+
$.if(node, ($$render) => {
|
3222
|
+
if ($.get(googleFontUrl)) $$render(consequent);
|
3223
|
+
});
|
3123
3224
|
$.append($$anchor$1, fragment);
|
3124
3225
|
});
|
3125
3226
|
$.pop();
|
@@ -3191,13 +3292,13 @@ function State($$anchor, $$props) {
|
|
3191
3292
|
//#region src/components-flex/state/StateItem.svelte
|
3192
3293
|
const STATE_ITEM_CONTEXT_KEY = Symbol();
|
3193
3294
|
var root_1$15 = $.template(`<div class="state-item svelte-2qb6dm"></div> <!>`, 1);
|
3194
|
-
const $$css$
|
3295
|
+
const $$css$33 = {
|
3195
3296
|
hash: "svelte-2qb6dm",
|
3196
3297
|
code: ".state-item.svelte-2qb6dm {position:absolute;display:none;}"
|
3197
3298
|
};
|
3198
3299
|
function StateItem($$anchor, $$props) {
|
3199
3300
|
$.push($$props, false);
|
3200
|
-
$.append_styles($$anchor, $$css$
|
3301
|
+
$.append_styles($$anchor, $$css$33);
|
3201
3302
|
const [$$stores, $$cleanup] = $.setup_stores();
|
3202
3303
|
const $state = () => $.store_get(state, "$state", $$stores);
|
3203
3304
|
let path = $.prop($$props, "path", 8);
|
@@ -3209,19 +3310,17 @@ function StateItem($$anchor, $$props) {
|
|
3209
3310
|
$.init();
|
3210
3311
|
var fragment = $.comment();
|
3211
3312
|
var node = $.first_child(fragment);
|
3212
|
-
{
|
3213
|
-
var
|
3214
|
-
|
3215
|
-
|
3216
|
-
|
3217
|
-
|
3218
|
-
|
3219
|
-
|
3220
|
-
|
3221
|
-
|
3222
|
-
|
3223
|
-
});
|
3224
|
-
}
|
3313
|
+
var consequent = ($$anchor$1) => {
|
3314
|
+
var fragment_1 = root_1$15();
|
3315
|
+
var div = $.first_child(fragment_1);
|
3316
|
+
var node_1 = $.sibling(div, 2);
|
3317
|
+
$.slot(node_1, $$props, "default", {}, null);
|
3318
|
+
$.template_effect(() => $.set_attribute(div, "data-state-path", path()));
|
3319
|
+
$.append($$anchor$1, fragment_1);
|
3320
|
+
};
|
3321
|
+
$.if(node, ($$render) => {
|
3322
|
+
if ($state() === path()) $$render(consequent);
|
3323
|
+
});
|
3225
3324
|
$.append($$anchor, fragment);
|
3226
3325
|
$.pop();
|
3227
3326
|
$$cleanup();
|
@@ -3546,10 +3645,18 @@ const linkTo = (to, targetBlank = true, decode = false) => () => {
|
|
3546
3645
|
});
|
3547
3646
|
await sleep(450);
|
3548
3647
|
}
|
3549
|
-
|
3550
|
-
|
3648
|
+
if (targetBlank) if (target === "native") {
|
3649
|
+
const win = window;
|
3650
|
+
const nativeMessageName = "open_url";
|
3651
|
+
const nativeMessageData = {
|
3652
|
+
url: decodedTo,
|
3653
|
+
target: "_blank"
|
3654
|
+
};
|
3655
|
+
win.NativeBridge?.onReceivedMessage(nativeMessageName, JSON.stringify(nativeMessageData));
|
3656
|
+
win.webkit?.messageHandlers[nativeMessageName]?.postMessage(nativeMessageData);
|
3657
|
+
} else window.open(decodedTo, "_blank");
|
3551
3658
|
Promise.race([_send(), sleep(650)]).then(() => {
|
3552
|
-
if (!
|
3659
|
+
if (!targetBlank) location.href = decodedTo;
|
3553
3660
|
});
|
3554
3661
|
};
|
3555
3662
|
/** @internal */
|
@@ -3576,18 +3683,24 @@ const submitForm = (to) => () => {
|
|
3576
3683
|
};
|
3577
3684
|
/** @internal */
|
3578
3685
|
const submitFormProgress = (to) => () => {
|
3579
|
-
onSubmitForm(({ currentStateValues }) => {
|
3686
|
+
onSubmitForm(({ currentStateValues, currentStateIdentifyValues }) => {
|
3580
3687
|
send_event("_answer_question_progress", {
|
3581
3688
|
...currentStateValues,
|
3582
3689
|
state: getState()
|
3583
3690
|
});
|
3691
|
+
if (Object.keys(currentStateIdentifyValues).length > 0) send_event("identify", currentStateIdentifyValues);
|
3692
|
+
console.log("currentStateValues", currentStateValues);
|
3693
|
+
console.log("currentStateIdentifyValues", currentStateIdentifyValues);
|
3584
3694
|
_moveTo(to);
|
3585
3695
|
});
|
3586
3696
|
};
|
3587
3697
|
/** @internal */
|
3588
3698
|
const submitFormFinal = (to) => () => {
|
3589
|
-
onSubmitForm(({ allValues }) => {
|
3699
|
+
onSubmitForm(({ allValues, allIdentifyValues }) => {
|
3590
3700
|
send_event("_answer_question", allValues);
|
3701
|
+
if (Object.keys(allIdentifyValues).length > 0) send_event("identify", allIdentifyValues);
|
3702
|
+
console.log("allValues", allValues);
|
3703
|
+
console.log("allIdentifyValues", allIdentifyValues);
|
3591
3704
|
_moveTo(to);
|
3592
3705
|
});
|
3593
3706
|
};
|
@@ -3750,32 +3863,30 @@ var useClickable_default = useClickable;
|
|
3750
3863
|
|
3751
3864
|
//#endregion
|
3752
3865
|
//#region src/hooks/useInjectCustomizeCss.ts
|
3753
|
-
const
|
3866
|
+
const DATA_ATTR_LAYER_ID_KEY = "data-customize-css-layer-id";
|
3867
|
+
const useInjectCustomizeCss = (props, layerId) => {
|
3754
3868
|
function injectCss() {
|
3755
|
-
const modalElements = Array.from(document.querySelectorAll(`.${KARTE_MODAL_ROOT}`));
|
3756
|
-
const style = document.createElement("style");
|
3757
3869
|
let headAppended = false;
|
3870
|
+
const roots = Array.from(document.querySelectorAll(`.${KARTE_ACTION_ROOT}[data-${KARTE_ACTION_RID}='${actionId}']`));
|
3871
|
+
const style = document.createElement("style");
|
3872
|
+
style.setAttribute(DATA_ATTR_LAYER_ID_KEY, layerId);
|
3758
3873
|
style.textContent = props.customizeCss;
|
3759
|
-
|
3760
|
-
if (
|
3761
|
-
|
3874
|
+
roots.forEach((root$49) => {
|
3875
|
+
if (root$49 && root$49.shadowRoot) {
|
3876
|
+
const existingStyles = Array.from(root$49.shadowRoot.querySelectorAll(`style[${DATA_ATTR_LAYER_ID_KEY}='${layerId}']`));
|
3877
|
+
existingStyles.forEach((style$1) => {
|
3878
|
+
style$1.parentNode?.removeChild(style$1);
|
3879
|
+
});
|
3880
|
+
root$49.shadowRoot.appendChild(style);
|
3881
|
+
} else if (!headAppended) {
|
3762
3882
|
document.head.appendChild(style);
|
3763
3883
|
headAppended = true;
|
3764
3884
|
}
|
3765
3885
|
});
|
3766
|
-
return () => {
|
3767
|
-
modalElements.forEach((modalElement) => {
|
3768
|
-
if (modalElement?.shadowRoot) modalElement.shadowRoot.removeChild(style);
|
3769
|
-
else document.head.removeChild(style);
|
3770
|
-
});
|
3771
|
-
};
|
3772
3886
|
}
|
3773
3887
|
onMount(() => {
|
3774
3888
|
if (!props.isCustomizeCss) return;
|
3775
|
-
|
3776
|
-
return () => {
|
3777
|
-
removeCss();
|
3778
|
-
};
|
3889
|
+
injectCss();
|
3779
3890
|
});
|
3780
3891
|
};
|
3781
3892
|
|
@@ -3807,19 +3918,19 @@ const AVATAR_SIZE_STYLES = {
|
|
3807
3918
|
//#endregion
|
3808
3919
|
//#region src/components-flex/avatar/Avatar.svelte
|
3809
3920
|
var root_1$14 = $.template(`<img class="avatar-image svelte-1xhdr99">`);
|
3810
|
-
const $$css$
|
3921
|
+
const $$css$32 = {
|
3811
3922
|
hash: "svelte-1xhdr99",
|
3812
3923
|
code: ".avatar.svelte-1xhdr99 {display:flex;align-items:center;justify-content:center;overflow:hidden;flex-shrink:0;border:0;background:none;padding:0;margin:0;text-align:left;-webkit-appearance:none;}"
|
3813
3924
|
};
|
3814
3925
|
function Avatar($$anchor, $$props) {
|
3815
3926
|
$.push($$props, false);
|
3816
|
-
$.append_styles($$anchor, $$css$
|
3927
|
+
$.append_styles($$anchor, $$css$32);
|
3817
3928
|
const styleObj = $.mutable_state();
|
3818
3929
|
const style = $.mutable_state();
|
3819
3930
|
const imgStyle = $.mutable_state();
|
3820
3931
|
let props = $.prop($$props, "props", 24, () => ({}));
|
3821
3932
|
let layerId = $.prop($$props, "layerId", 8, "");
|
3822
|
-
useInjectCustomizeCss(props());
|
3933
|
+
useInjectCustomizeCss(props(), layerId());
|
3823
3934
|
const { attributes, element, handleClick } = useClickable_default(props());
|
3824
3935
|
const avatarSizeStyle = !isNaN(Number(props().size)) ? {
|
3825
3936
|
width: `${props().size}px`,
|
@@ -4376,18 +4487,18 @@ const ICON_VARIANTS = {
|
|
4376
4487
|
|
4377
4488
|
//#endregion
|
4378
4489
|
//#region src/components-flex/icon/Icon.svelte
|
4379
|
-
const $$css$
|
4490
|
+
const $$css$31 = {
|
4380
4491
|
hash: "svelte-1kl9m59",
|
4381
4492
|
code: ".icon.svelte-1kl9m59 {display:flex;align-items:center;overflow:hidden;width:auto;cursor:pointer;text-decoration:none;border:0;background:none;padding:0;margin:0;text-align:left;-webkit-appearance:none;}"
|
4382
4493
|
};
|
4383
4494
|
function Icon($$anchor, $$props) {
|
4384
4495
|
$.push($$props, false);
|
4385
|
-
$.append_styles($$anchor, $$css$
|
4496
|
+
$.append_styles($$anchor, $$css$31);
|
4386
4497
|
const style = $.mutable_state();
|
4387
4498
|
const IconComponent = $.mutable_state();
|
4388
4499
|
let props = $.prop($$props, "props", 24, () => ({}));
|
4389
4500
|
let layerId = $.prop($$props, "layerId", 8, "");
|
4390
|
-
useInjectCustomizeCss(props());
|
4501
|
+
useInjectCustomizeCss(props(), layerId());
|
4391
4502
|
const { attributes, element, handleClick } = useClickable_default(props());
|
4392
4503
|
const getSizeCss = () => {
|
4393
4504
|
return {
|
@@ -4604,18 +4715,18 @@ function darkenColor(color, percent) {
|
|
4604
4715
|
//#region src/components-flex/button/Button.svelte
|
4605
4716
|
var root_2$8 = $.template(`<div class="button-icon svelte-l0rauj"><!></div>`);
|
4606
4717
|
var root_1$13 = $.template(`<!> <span class="button-label"> </span>`, 1);
|
4607
|
-
const $$css$
|
4718
|
+
const $$css$30 = {
|
4608
4719
|
hash: "svelte-l0rauj",
|
4609
4720
|
code: ".button.svelte-l0rauj {display:inline-flex;gap:0.8em;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;color:var(--color);border-color:var(--border-color);background-color:var(--bg-color);}.button.svelte-l0rauj:hover {background-color:var(--hover-bg-color);border-color:var(--hover-border-color);}.button-icon.svelte-l0rauj {display:flex;align-items:center;justify-content:center;margin-left:-0.2em;margin-right:-0.2em;}"
|
4610
4721
|
};
|
4611
4722
|
function Button($$anchor, $$props) {
|
4612
4723
|
$.push($$props, false);
|
4613
|
-
$.append_styles($$anchor, $$css$
|
4724
|
+
$.append_styles($$anchor, $$css$30);
|
4614
4725
|
const variables$1 = $.mutable_state();
|
4615
4726
|
const style = $.mutable_state();
|
4616
4727
|
let props = $.prop($$props, "props", 24, () => ({}));
|
4617
4728
|
let layerId = $.prop($$props, "layerId", 8, "");
|
4618
|
-
useInjectCustomizeCss(props());
|
4729
|
+
useInjectCustomizeCss(props(), layerId());
|
4619
4730
|
const { attributes, element, handleClick } = useClickable_default(props());
|
4620
4731
|
const { brandKit } = useBrandKit();
|
4621
4732
|
const buttonThemeStyles = getButtonThemeStyles(brandKit);
|
@@ -4695,26 +4806,24 @@ function Button($$anchor, $$props) {
|
|
4695
4806
|
$.event("click", $$element, handleClick);
|
4696
4807
|
var fragment_1 = root_1$13();
|
4697
4808
|
var node_1 = $.first_child(fragment_1);
|
4698
|
-
{
|
4699
|
-
var
|
4700
|
-
|
4701
|
-
|
4702
|
-
|
4703
|
-
|
4704
|
-
|
4705
|
-
|
4706
|
-
|
4707
|
-
|
4708
|
-
|
4709
|
-
|
4710
|
-
|
4711
|
-
|
4712
|
-
|
4713
|
-
|
4714
|
-
|
4715
|
-
|
4716
|
-
});
|
4717
|
-
}
|
4809
|
+
var consequent = ($$anchor$2) => {
|
4810
|
+
var div = root_2$8();
|
4811
|
+
var node_2 = $.child(div);
|
4812
|
+
const expression = $.derived_safe_equal(() => ({
|
4813
|
+
variant: props().iconVariant,
|
4814
|
+
color: props().iconColor ?? props().color ?? buttonThemeStyle.color,
|
4815
|
+
width: "1em",
|
4816
|
+
height: "1em"
|
4817
|
+
}));
|
4818
|
+
Icon(node_2, { get props() {
|
4819
|
+
return $.get(expression);
|
4820
|
+
} });
|
4821
|
+
$.reset(div);
|
4822
|
+
$.append($$anchor$2, div);
|
4823
|
+
};
|
4824
|
+
$.if(node_1, ($$render) => {
|
4825
|
+
if (props().isIcon && props().iconVariant) $$render(consequent);
|
4826
|
+
});
|
4718
4827
|
var span = $.sibling(node_1, 2);
|
4719
4828
|
var text = $.child(span, true);
|
4720
4829
|
$.reset(span);
|
@@ -4822,18 +4931,18 @@ const BUTTON_OUTLINED_WRAP_STYLES = {
|
|
4822
4931
|
//#region src/components-flex/button-outlined/ButtonOutlined.svelte
|
4823
4932
|
var root_2$7 = $.template(`<div class="button-outlined-icon svelte-z8gomx"><!></div>`);
|
4824
4933
|
var root_1$12 = $.template(`<!> <span class="button-outlined-label svelte-z8gomx"> </span>`, 1);
|
4825
|
-
const $$css$
|
4934
|
+
const $$css$29 = {
|
4826
4935
|
hash: "svelte-z8gomx",
|
4827
4936
|
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;}"
|
4828
4937
|
};
|
4829
4938
|
function ButtonOutlined($$anchor, $$props) {
|
4830
4939
|
$.push($$props, false);
|
4831
|
-
$.append_styles($$anchor, $$css$
|
4940
|
+
$.append_styles($$anchor, $$css$29);
|
4832
4941
|
const variables$1 = $.mutable_state();
|
4833
4942
|
const style = $.mutable_state();
|
4834
4943
|
let props = $.prop($$props, "props", 24, () => ({}));
|
4835
4944
|
let layerId = $.prop($$props, "layerId", 8, "");
|
4836
|
-
useInjectCustomizeCss(props());
|
4945
|
+
useInjectCustomizeCss(props(), layerId());
|
4837
4946
|
const { brandKit } = useBrandKit();
|
4838
4947
|
const { attributes, element, handleClick } = useClickable_default(props());
|
4839
4948
|
const buttonThemeStyles = getButtonOutlinedThemeStyles(brandKit);
|
@@ -4879,26 +4988,24 @@ function ButtonOutlined($$anchor, $$props) {
|
|
4879
4988
|
$.event("click", $$element, handleClick);
|
4880
4989
|
var fragment_1 = root_1$12();
|
4881
4990
|
var node_1 = $.first_child(fragment_1);
|
4882
|
-
{
|
4883
|
-
var
|
4884
|
-
|
4885
|
-
|
4886
|
-
|
4887
|
-
|
4888
|
-
|
4889
|
-
|
4890
|
-
|
4891
|
-
|
4892
|
-
|
4893
|
-
|
4894
|
-
|
4895
|
-
|
4896
|
-
|
4897
|
-
|
4898
|
-
|
4899
|
-
|
4900
|
-
});
|
4901
|
-
}
|
4991
|
+
var consequent = ($$anchor$2) => {
|
4992
|
+
var div = root_2$7();
|
4993
|
+
var node_2 = $.child(div);
|
4994
|
+
const expression = $.derived_safe_equal(() => ({
|
4995
|
+
variant: props().iconVariant,
|
4996
|
+
color: props().iconColor ?? props().color ?? buttonThemeStyle.color,
|
4997
|
+
width: "1em",
|
4998
|
+
height: "1em"
|
4999
|
+
}));
|
5000
|
+
Icon(node_2, { get props() {
|
5001
|
+
return $.get(expression);
|
5002
|
+
} });
|
5003
|
+
$.reset(div);
|
5004
|
+
$.append($$anchor$2, div);
|
5005
|
+
};
|
5006
|
+
$.if(node_1, ($$render) => {
|
5007
|
+
if (props().isIcon && props().iconVariant) $$render(consequent);
|
5008
|
+
});
|
4902
5009
|
var span = $.sibling(node_1, 2);
|
4903
5010
|
var text = $.child(span, true);
|
4904
5011
|
$.reset(span);
|
@@ -4971,18 +5078,18 @@ const getButtonTextThemeStyles = getPropStyles(callback$2);
|
|
4971
5078
|
//#region src/components-flex/button-text/ButtonText.svelte
|
4972
5079
|
var root_2$6 = $.template(`<div class="button-text-icon svelte-l90o4j"><!></div>`);
|
4973
5080
|
var root_1$11 = $.template(`<!> <span class="button-text-label svelte-l90o4j"> </span>`, 1);
|
4974
|
-
const $$css$
|
5081
|
+
const $$css$28 = {
|
4975
5082
|
hash: "svelte-l90o4j",
|
4976
5083
|
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;}"
|
4977
5084
|
};
|
4978
5085
|
function ButtonText($$anchor, $$props) {
|
4979
5086
|
$.push($$props, false);
|
4980
|
-
$.append_styles($$anchor, $$css$
|
5087
|
+
$.append_styles($$anchor, $$css$28);
|
4981
5088
|
const variables$1 = $.mutable_state();
|
4982
5089
|
const style = $.mutable_state();
|
4983
5090
|
let props = $.prop($$props, "props", 24, () => ({}));
|
4984
5091
|
let layerId = $.prop($$props, "layerId", 8, "");
|
4985
|
-
useInjectCustomizeCss(props());
|
5092
|
+
useInjectCustomizeCss(props(), layerId());
|
4986
5093
|
const { brandKit } = useBrandKit();
|
4987
5094
|
const { attributes, element, handleClick } = useClickable_default(props());
|
4988
5095
|
const themeStyles = getButtonTextThemeStyles(brandKit);
|
@@ -5022,26 +5129,24 @@ function ButtonText($$anchor, $$props) {
|
|
5022
5129
|
$.event("click", $$element, handleClick);
|
5023
5130
|
var fragment_1 = root_1$11();
|
5024
5131
|
var node_1 = $.first_child(fragment_1);
|
5025
|
-
{
|
5026
|
-
var
|
5027
|
-
|
5028
|
-
|
5029
|
-
|
5030
|
-
|
5031
|
-
|
5032
|
-
|
5033
|
-
|
5034
|
-
|
5035
|
-
|
5036
|
-
|
5037
|
-
|
5038
|
-
|
5039
|
-
|
5040
|
-
|
5041
|
-
|
5042
|
-
|
5043
|
-
});
|
5044
|
-
}
|
5132
|
+
var consequent = ($$anchor$2) => {
|
5133
|
+
var div = root_2$6();
|
5134
|
+
var node_2 = $.child(div);
|
5135
|
+
const expression = $.derived_safe_equal(() => ({
|
5136
|
+
variant: props().iconVariant,
|
5137
|
+
color: props().color ?? buttonThemeStyle.color,
|
5138
|
+
width: "1em",
|
5139
|
+
height: "1em"
|
5140
|
+
}));
|
5141
|
+
Icon(node_2, { get props() {
|
5142
|
+
return $.get(expression);
|
5143
|
+
} });
|
5144
|
+
$.reset(div);
|
5145
|
+
$.append($$anchor$2, div);
|
5146
|
+
};
|
5147
|
+
$.if(node_1, ($$render) => {
|
5148
|
+
if (props().isIcon && props().iconVariant) $$render(consequent);
|
5149
|
+
});
|
5045
5150
|
var span = $.sibling(node_1, 2);
|
5046
5151
|
var text = $.child(span, true);
|
5047
5152
|
$.reset(span);
|
@@ -5088,13 +5193,13 @@ const getTextThemeStyles = getPropStyles(callback$1);
|
|
5088
5193
|
//#region src/components-flex/close-button/CloseButton.svelte
|
5089
5194
|
var root_2$5 = $.template(`<span></span>`);
|
5090
5195
|
var root_1$10 = $.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);
|
5091
|
-
const $$css$
|
5196
|
+
const $$css$27 = {
|
5092
5197
|
hash: "svelte-18wmfyq",
|
5093
5198
|
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;}"
|
5094
5199
|
};
|
5095
5200
|
function CloseButton($$anchor, $$props) {
|
5096
5201
|
$.push($$props, false);
|
5097
|
-
$.append_styles($$anchor, $$css$
|
5202
|
+
$.append_styles($$anchor, $$css$27);
|
5098
5203
|
const hasLabel = $.mutable_state();
|
5099
5204
|
const styleObj = $.mutable_state();
|
5100
5205
|
const style = $.mutable_state();
|
@@ -5107,7 +5212,7 @@ function CloseButton($$anchor, $$props) {
|
|
5107
5212
|
let eventName = $.prop($$props, "eventName", 8, "");
|
5108
5213
|
let eventValue = $.prop($$props, "eventValue", 8, void 0);
|
5109
5214
|
const { brandKit } = useBrandKit();
|
5110
|
-
useInjectCustomizeCss(props());
|
5215
|
+
useInjectCustomizeCss(props(), layerId());
|
5111
5216
|
const { attributes, element, handleClick } = useClickable_default(props().onClick ? props() : {
|
5112
5217
|
onClick: {
|
5113
5218
|
operation: "closeApp",
|
@@ -5212,18 +5317,16 @@ function CloseButton($$anchor, $$props) {
|
|
5212
5317
|
$.set_attribute(svg, "fill", color);
|
5213
5318
|
$.reset(span);
|
5214
5319
|
var node_1 = $.sibling(span, 2);
|
5215
|
-
{
|
5216
|
-
var
|
5217
|
-
|
5218
|
-
|
5219
|
-
|
5220
|
-
|
5221
|
-
|
5222
|
-
|
5223
|
-
|
5224
|
-
|
5225
|
-
});
|
5226
|
-
}
|
5320
|
+
var consequent = ($$anchor$2) => {
|
5321
|
+
var span_1 = root_2$5();
|
5322
|
+
$.set_class(span_1, 1, `close-button-label ${isLeftLabelPlacement ? "close-button-order-one" : ""}`, "svelte-18wmfyq");
|
5323
|
+
span_1.textContent = label;
|
5324
|
+
$.template_effect(() => $.set_style(span_1, $.get(labelStyle)));
|
5325
|
+
$.append($$anchor$2, span_1);
|
5326
|
+
};
|
5327
|
+
$.if(node_1, ($$render) => {
|
5328
|
+
if ($.get(hasLabel)) $$render(consequent);
|
5329
|
+
});
|
5227
5330
|
$.template_effect(() => $.set_style(span, $.get(iconStyle)));
|
5228
5331
|
$.append($$anchor$1, fragment_1);
|
5229
5332
|
});
|
@@ -5308,19 +5411,19 @@ const IMAGE_ROUND_STYLES = {
|
|
5308
5411
|
//#endregion
|
5309
5412
|
//#region src/components-flex/image/Image.svelte
|
5310
5413
|
var root_1$9 = $.template(`<img class="image-img svelte-1olvu11">`);
|
5311
|
-
const $$css$
|
5414
|
+
const $$css$26 = {
|
5312
5415
|
hash: "svelte-1olvu11",
|
5313
5416
|
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;}"
|
5314
5417
|
};
|
5315
5418
|
function Image($$anchor, $$props) {
|
5316
5419
|
$.push($$props, false);
|
5317
|
-
$.append_styles($$anchor, $$css$
|
5420
|
+
$.append_styles($$anchor, $$css$26);
|
5318
5421
|
const styleObj = $.mutable_state();
|
5319
5422
|
const style = $.mutable_state();
|
5320
5423
|
const imgStyle = $.mutable_state();
|
5321
5424
|
let props = $.prop($$props, "props", 24, () => ({}));
|
5322
5425
|
let layerId = $.prop($$props, "layerId", 8, "");
|
5323
|
-
useInjectCustomizeCss(props());
|
5426
|
+
useInjectCustomizeCss(props(), layerId());
|
5324
5427
|
const { attributes, element, handleClick } = useClickable_default(props());
|
5325
5428
|
const aspectVariantStyles = ASPECT_VARIANT[props().aspectVariant]?.getProps();
|
5326
5429
|
const width = props().width ?? "100%";
|
@@ -5401,18 +5504,18 @@ const IMAGE_ASPECT_VARIANTS = {
|
|
5401
5504
|
|
5402
5505
|
//#endregion
|
5403
5506
|
//#region src/components-flex/layout/Layout.svelte
|
5404
|
-
const $$css$
|
5507
|
+
const $$css$25 = {
|
5405
5508
|
hash: "svelte-1o103hp",
|
5406
5509
|
code: ".layout.svelte-1o103hp {text-decoration:none;color:inherit;}.layout[data-clickable='true'].svelte-1o103hp {cursor:pointer;}.layout[data-clickable='true'].svelte-1o103hp:hover {opacity:0.8;}"
|
5407
5510
|
};
|
5408
5511
|
function Layout($$anchor, $$props) {
|
5409
5512
|
$.push($$props, false);
|
5410
|
-
$.append_styles($$anchor, $$css$
|
5513
|
+
$.append_styles($$anchor, $$css$25);
|
5411
5514
|
const style = $.mutable_state();
|
5412
5515
|
let props = $.prop($$props, "props", 24, () => ({}));
|
5413
5516
|
let layerId = $.prop($$props, "layerId", 8, "");
|
5414
5517
|
const { brandKit } = useBrandKit();
|
5415
|
-
useInjectCustomizeCss(props());
|
5518
|
+
useInjectCustomizeCss(props(), layerId());
|
5416
5519
|
const { attributes, element, handleClick } = useClickable_default(props());
|
5417
5520
|
$.legacy_pre_effect(() => ($.deep_read_state(props()), toCssBorder), () => {
|
5418
5521
|
$.set(style, objToStyle({
|
@@ -5487,13 +5590,13 @@ const LAYOUT_JUSTIFY = [
|
|
5487
5590
|
//#region src/components-flex/slider/Slider.svelte
|
5488
5591
|
var root_1$8 = $.template(`<button><i></i></button>`);
|
5489
5592
|
var root$16 = $.template(`<div><div class="slider-container svelte-wwv1o"><ul class="slider-list svelte-wwv1o"><!></ul></div> <div></div></div>`);
|
5490
|
-
const $$css$
|
5593
|
+
const $$css$24 = {
|
5491
5594
|
hash: "svelte-wwv1o",
|
5492
5595
|
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;}"
|
5493
5596
|
};
|
5494
5597
|
function Slider($$anchor, $$props) {
|
5495
5598
|
$.push($$props, false);
|
5496
|
-
$.append_styles($$anchor, $$css$
|
5599
|
+
$.append_styles($$anchor, $$css$24);
|
5497
5600
|
const indicators = $.mutable_state();
|
5498
5601
|
const itemWidthPercentage = $.mutable_state();
|
5499
5602
|
const baseContainerStyle = $.mutable_state();
|
@@ -5503,7 +5606,7 @@ function Slider($$anchor, $$props) {
|
|
5503
5606
|
let layerId = $.prop($$props, "layerId", 8);
|
5504
5607
|
let props = $.prop($$props, "props", 8);
|
5505
5608
|
let overrideStyle = $.prop($$props, "overrideStyle", 8);
|
5506
|
-
useInjectCustomizeCss(props());
|
5609
|
+
useInjectCustomizeCss(props(), layerId());
|
5507
5610
|
let containerElement = $.mutable_state();
|
5508
5611
|
let slotElement = $.mutable_state();
|
5509
5612
|
let currentIndex = $.mutable_state(0);
|
@@ -5702,16 +5805,16 @@ function Slider($$anchor, $$props) {
|
|
5702
5805
|
//#endregion
|
5703
5806
|
//#region src/components-flex/slider/SliderItem.svelte
|
5704
5807
|
var root$15 = $.template(`<li><!></li>`);
|
5705
|
-
const $$css$
|
5808
|
+
const $$css$23 = {
|
5706
5809
|
hash: "svelte-1m93md9",
|
5707
5810
|
code: ".slider-item.svelte-1m93md9 {overflow:hidden;}.slider-item-inner.svelte-1m93md9 {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;}"
|
5708
5811
|
};
|
5709
5812
|
function SliderItem($$anchor, $$props) {
|
5710
5813
|
$.push($$props, false);
|
5711
|
-
$.append_styles($$anchor, $$css$
|
5814
|
+
$.append_styles($$anchor, $$css$23);
|
5712
5815
|
let layerId = $.prop($$props, "layerId", 8);
|
5713
5816
|
let props = $.prop($$props, "props", 8);
|
5714
|
-
useInjectCustomizeCss(props());
|
5817
|
+
useInjectCustomizeCss(props(), layerId());
|
5715
5818
|
const { attributes, element, handleClick } = useClickable_default(props());
|
5716
5819
|
$.init();
|
5717
5820
|
var li = root$15();
|
@@ -5781,18 +5884,18 @@ const TEXT_VARIANTS = { size: {
|
|
5781
5884
|
//#endregion
|
5782
5885
|
//#region src/components-flex/text/Text.svelte
|
5783
5886
|
var root$14 = $.template(`<p><!></p>`);
|
5784
|
-
const $$css$
|
5887
|
+
const $$css$22 = {
|
5785
5888
|
hash: "svelte-vifn7y",
|
5786
5889
|
code: ".text.svelte-vifn7y {margin:0;word-break:break-all;text-decoration:none;}"
|
5787
5890
|
};
|
5788
5891
|
function Text($$anchor, $$props) {
|
5789
5892
|
$.push($$props, false);
|
5790
|
-
$.append_styles($$anchor, $$css$
|
5893
|
+
$.append_styles($$anchor, $$css$22);
|
5791
5894
|
const escapedHTML = $.mutable_state();
|
5792
5895
|
const style = $.mutable_state();
|
5793
5896
|
let props = $.prop($$props, "props", 24, () => ({ content: "" }));
|
5794
5897
|
let layerId = $.prop($$props, "layerId", 8, "");
|
5795
|
-
useInjectCustomizeCss(props());
|
5898
|
+
useInjectCustomizeCss(props(), layerId());
|
5796
5899
|
const { brandKit } = useBrandKit();
|
5797
5900
|
const themeStyles = getTextThemeStyles(brandKit);
|
5798
5901
|
const fontFamilyStyles = props().fontFamilyVariant in FONT_FAMILY_VARIANT ? FONT_FAMILY_VARIANT[props().fontFamilyVariant].getProps(brandKit) : FONT_FAMILY_VARIANT.default.getProps(brandKit);
|
@@ -5879,17 +5982,17 @@ function Text($$anchor, $$props) {
|
|
5879
5982
|
//#endregion
|
5880
5983
|
//#region src/components-flex/rich-text/RichText.svelte
|
5881
5984
|
var root$13 = $.template(`<div><!></div>`);
|
5882
|
-
const $$css$
|
5985
|
+
const $$css$21 = {
|
5883
5986
|
hash: "svelte-dxr423",
|
5884
5987
|
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;}"
|
5885
5988
|
};
|
5886
5989
|
function RichText($$anchor, $$props) {
|
5887
5990
|
$.push($$props, false);
|
5888
|
-
$.append_styles($$anchor, $$css$
|
5991
|
+
$.append_styles($$anchor, $$css$21);
|
5889
5992
|
const style = $.mutable_state();
|
5890
5993
|
let props = $.prop($$props, "props", 24, () => ({ content: "" }));
|
5891
5994
|
let layerId = $.prop($$props, "layerId", 8, "");
|
5892
|
-
useInjectCustomizeCss(props());
|
5995
|
+
useInjectCustomizeCss(props(), layerId());
|
5893
5996
|
const { brandKit } = useBrandKit();
|
5894
5997
|
const themeStyles = getTextThemeStyles(brandKit);
|
5895
5998
|
const fontFamilyStyles = props().fontFamilyVariant in FONT_FAMILY_VARIANT ? FONT_FAMILY_VARIANT[props().fontFamilyVariant].getProps(brandKit) : FONT_FAMILY_VARIANT.default.getProps(brandKit);
|
@@ -6005,19 +6108,19 @@ const getTextLinkThemeStyles = getPropStyles(callback);
|
|
6005
6108
|
//#endregion
|
6006
6109
|
//#region src/components-flex/text-link/TextLink.svelte
|
6007
6110
|
var root_1$7 = $.template(`<!> <span><!></span>`, 1);
|
6008
|
-
const $$css$
|
6111
|
+
const $$css$20 = {
|
6009
6112
|
hash: "svelte-dc9m5n",
|
6010
6113
|
code: ".link.svelte-dc9m5n {-webkit-appearance:none;border:0;background:none;padding:0;display:inline-flex;}.link.svelte-dc9m5n,\n .link.svelte-dc9m5n:visited,\n .link.svelte-dc9m5n:link {color:var(--color);}.link.svelte-dc9m5n:hover {color:var(--hover-color);}.link.svelte-dc9m5n:active {color:var(--active-color);}.link.underline-hover-on.svelte-dc9m5n {text-decoration:none;}.link.underline-hover-on.svelte-dc9m5n:hover {text-decoration:underline;}.link.underline-hover-off.svelte-dc9m5n {text-decoration:underline;}.link.underline-hover-off.svelte-dc9m5n:hover {text-decoration:none;}.link.underline-on.svelte-dc9m5n {text-decoration:underline;}.link.underline-off.svelte-dc9m5n {text-decoration:none;}"
|
6011
6114
|
};
|
6012
6115
|
function TextLink($$anchor, $$props) {
|
6013
6116
|
$.push($$props, false);
|
6014
|
-
$.append_styles($$anchor, $$css$
|
6117
|
+
$.append_styles($$anchor, $$css$20);
|
6015
6118
|
const escapedHTML = $.mutable_state();
|
6016
6119
|
const variables$1 = $.mutable_state();
|
6017
6120
|
const style = $.mutable_state();
|
6018
6121
|
let props = $.prop($$props, "props", 24, () => ({ label: "" }));
|
6019
6122
|
let layerId = $.prop($$props, "layerId", 8, "");
|
6020
|
-
useInjectCustomizeCss(props());
|
6123
|
+
useInjectCustomizeCss(props(), layerId());
|
6021
6124
|
const { brandKit } = useBrandKit();
|
6022
6125
|
const { attributes, element, handleClick } = useClickable_default({
|
6023
6126
|
...props(),
|
@@ -6080,22 +6183,20 @@ function TextLink($$anchor, $$props) {
|
|
6080
6183
|
$.event("click", $$element, handleClick);
|
6081
6184
|
var fragment_1 = root_1$7();
|
6082
6185
|
var node_1 = $.first_child(fragment_1);
|
6083
|
-
{
|
6084
|
-
|
6085
|
-
|
6086
|
-
|
6087
|
-
|
6088
|
-
|
6089
|
-
|
6090
|
-
|
6091
|
-
|
6092
|
-
|
6093
|
-
|
6094
|
-
|
6095
|
-
|
6096
|
-
|
6097
|
-
});
|
6098
|
-
}
|
6186
|
+
var consequent = ($$anchor$2) => {
|
6187
|
+
const expression = $.derived_safe_equal(() => ({
|
6188
|
+
variant: props().iconVariant,
|
6189
|
+
color: props().iconColor ?? props().color,
|
6190
|
+
width: "1em",
|
6191
|
+
height: "1em"
|
6192
|
+
}));
|
6193
|
+
Icon($$anchor$2, { get props() {
|
6194
|
+
return $.get(expression);
|
6195
|
+
} });
|
6196
|
+
};
|
6197
|
+
$.if(node_1, ($$render) => {
|
6198
|
+
if (props().isIcon && props().iconVariant) $$render(consequent);
|
6199
|
+
});
|
6099
6200
|
var span = $.sibling(node_1, 2);
|
6100
6201
|
var node_2 = $.child(span);
|
6101
6202
|
$.html(node_2, () => $.get(escapedHTML), false, false);
|
@@ -6131,30 +6232,28 @@ const TEXT_LINK_UNDERLINE = {
|
|
6131
6232
|
//#endregion
|
6132
6233
|
//#region src/components-flex/background-overlay/BackgroundOverlay.svelte
|
6133
6234
|
var root_1$6 = $.template(`<div></div>`);
|
6134
|
-
const $$css$
|
6235
|
+
const $$css$19 = {
|
6135
6236
|
hash: "svelte-18nkdjz",
|
6136
6237
|
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;}"
|
6137
6238
|
};
|
6138
6239
|
function BackgroundOverlay($$anchor, $$props) {
|
6139
6240
|
$.push($$props, false);
|
6140
|
-
$.append_styles($$anchor, $$css$
|
6241
|
+
$.append_styles($$anchor, $$css$19);
|
6141
6242
|
let backgroundOverlay = $.prop($$props, "backgroundOverlay", 8, false);
|
6142
6243
|
let className = $.prop($$props, "class", 8, void 0);
|
6143
6244
|
const dispatch = createEventDispatcher();
|
6144
6245
|
$.init();
|
6145
6246
|
var fragment = $.comment();
|
6146
6247
|
var node = $.first_child(fragment);
|
6147
|
-
{
|
6148
|
-
var
|
6149
|
-
|
6150
|
-
|
6151
|
-
|
6152
|
-
|
6153
|
-
|
6154
|
-
|
6155
|
-
|
6156
|
-
});
|
6157
|
-
}
|
6248
|
+
var consequent = ($$anchor$1) => {
|
6249
|
+
var div = root_1$6();
|
6250
|
+
$.template_effect(($0) => $.set_class(div, 1, $0, "svelte-18nkdjz"), [() => $.clsx(["v2-background", className() || ""].join(" "))], $.derived_safe_equal);
|
6251
|
+
$.event("click", div, () => dispatch("click"));
|
6252
|
+
$.append($$anchor$1, div);
|
6253
|
+
};
|
6254
|
+
$.if(node, ($$render) => {
|
6255
|
+
if (backgroundOverlay()) $$render(consequent);
|
6256
|
+
});
|
6158
6257
|
$.append($$anchor, fragment);
|
6159
6258
|
$.pop();
|
6160
6259
|
}
|
@@ -6164,13 +6263,13 @@ function BackgroundOverlay($$anchor, $$props) {
|
|
6164
6263
|
var root_2$4 = $.template(`<!> <!>`, 1);
|
6165
6264
|
var root_4 = $.template(`<div role="dialog" aria-modal="true"><!></div>`);
|
6166
6265
|
var root$12 = $.template(`<!> <!>`, 1);
|
6167
|
-
const $$css$
|
6266
|
+
const $$css$18 = {
|
6168
6267
|
hash: "svelte-45ue06",
|
6169
6268
|
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 }"
|
6170
6269
|
};
|
6171
6270
|
function Modal($$anchor, $$props) {
|
6172
6271
|
$.push($$props, false);
|
6173
|
-
$.append_styles($$anchor, $$css$
|
6272
|
+
$.append_styles($$anchor, $$css$18);
|
6174
6273
|
const close$1 = $.mutable_state();
|
6175
6274
|
const backgroundClick = $.mutable_state();
|
6176
6275
|
const backgroundClickPC = $.mutable_state();
|
@@ -6180,7 +6279,7 @@ function Modal($$anchor, $$props) {
|
|
6180
6279
|
let useBreakPoint = $.prop($$props, "useBreakPoint", 8, false);
|
6181
6280
|
let placement = $.prop($$props, "placement", 8);
|
6182
6281
|
let breakPoint = $.prop($$props, "breakPoint", 8);
|
6183
|
-
|
6282
|
+
$.prop($$props, "elasticity", 8);
|
6184
6283
|
let animation = $.prop($$props, "animation", 8, "none");
|
6185
6284
|
let props = $.prop($$props, "props", 24, () => ({}));
|
6186
6285
|
let closeEventName = $.prop($$props, "closeEventName", 8, "");
|
@@ -6323,78 +6422,72 @@ function Modal($$anchor, $$props) {
|
|
6323
6422
|
$.get(handle_keydown)?.apply(this, $$args);
|
6324
6423
|
});
|
6325
6424
|
var node = $.first_child(fragment);
|
6326
|
-
{
|
6327
|
-
|
6328
|
-
var
|
6329
|
-
|
6330
|
-
|
6331
|
-
|
6332
|
-
|
6333
|
-
|
6334
|
-
|
6335
|
-
|
6336
|
-
|
6337
|
-
|
6338
|
-
|
6339
|
-
|
6340
|
-
|
6341
|
-
|
6342
|
-
|
6343
|
-
|
6344
|
-
|
6345
|
-
|
6346
|
-
|
6347
|
-
|
6348
|
-
|
6349
|
-
|
6350
|
-
|
6351
|
-
});
|
6352
|
-
$.append($$anchor$2, fragment_1);
|
6353
|
-
};
|
6354
|
-
var alternate_1 = ($$anchor$2) => {
|
6355
|
-
BackgroundOverlay($$anchor$2, {
|
6356
|
-
get backgroundOverlay() {
|
6357
|
-
return $.get(backgroundOverlay);
|
6358
|
-
},
|
6359
|
-
$$events: { click(...$$args) {
|
6360
|
-
$.get(backgroundClick)?.apply(this, $$args);
|
6361
|
-
} }
|
6362
|
-
});
|
6363
|
-
};
|
6364
|
-
$.if($$anchor$1, ($$render) => {
|
6365
|
-
if (useBreakPoint()) $$render(consequent_1);
|
6366
|
-
else $$render(alternate_1, false);
|
6367
|
-
}, $$elseif);
|
6368
|
-
}
|
6425
|
+
var consequent = ($$anchor$1) => {};
|
6426
|
+
var alternate = ($$anchor$1, $$elseif) => {
|
6427
|
+
var consequent_1 = ($$anchor$2) => {
|
6428
|
+
var fragment_1 = root_2$4();
|
6429
|
+
var node_1 = $.first_child(fragment_1);
|
6430
|
+
BackgroundOverlay(node_1, {
|
6431
|
+
class: "background-bp-pc",
|
6432
|
+
get backgroundOverlay() {
|
6433
|
+
return $.get(backgroundOverlayPC);
|
6434
|
+
},
|
6435
|
+
$$events: { click(...$$args) {
|
6436
|
+
$.get(backgroundClickPC)?.apply(this, $$args);
|
6437
|
+
} }
|
6438
|
+
});
|
6439
|
+
var node_2 = $.sibling(node_1, 2);
|
6440
|
+
BackgroundOverlay(node_2, {
|
6441
|
+
class: "background-bp-sp ",
|
6442
|
+
get backgroundOverlay() {
|
6443
|
+
return $.get(backgroundOverlaySP);
|
6444
|
+
},
|
6445
|
+
$$events: { click(...$$args) {
|
6446
|
+
$.get(backgroundClickSP)?.apply(this, $$args);
|
6447
|
+
} }
|
6448
|
+
});
|
6449
|
+
$.append($$anchor$2, fragment_1);
|
6369
6450
|
};
|
6370
|
-
|
6371
|
-
|
6372
|
-
|
6373
|
-
|
6374
|
-
|
6375
|
-
|
6376
|
-
|
6377
|
-
|
6378
|
-
|
6379
|
-
var node_4 = $.child(div);
|
6380
|
-
$.slot(node_4, $$props, "default", {}, null);
|
6381
|
-
$.reset(div);
|
6382
|
-
$.bind_this(div, ($$value) => $.set(modal, $$value), () => $.get(modal));
|
6383
|
-
$.template_effect(($0, $1) => {
|
6384
|
-
$.set_class(div, 1, $0, "svelte-45ue06");
|
6385
|
-
$.set_attribute(div, "data-layer-id", layerId());
|
6386
|
-
$.set_style(div, $1);
|
6387
|
-
}, [() => $.clsx(["modal", useBreakPoint() ? "modal-bp" : ""].join(" ")), () => Array.from(modalStyles).join(";")], $.derived_safe_equal);
|
6388
|
-
$.transition(1, div, () => customAnimation, () => ({
|
6389
|
-
transforms: $.get(transforms),
|
6390
|
-
animationStyle: animation()
|
6391
|
-
}));
|
6392
|
-
$.append($$anchor$1, div);
|
6451
|
+
var alternate_1 = ($$anchor$2) => {
|
6452
|
+
BackgroundOverlay($$anchor$2, {
|
6453
|
+
get backgroundOverlay() {
|
6454
|
+
return $.get(backgroundOverlay);
|
6455
|
+
},
|
6456
|
+
$$events: { click(...$$args) {
|
6457
|
+
$.get(backgroundClick)?.apply(this, $$args);
|
6458
|
+
} }
|
6459
|
+
});
|
6393
6460
|
};
|
6394
|
-
$.if(
|
6395
|
-
if (
|
6396
|
-
|
6397
|
-
|
6461
|
+
$.if($$anchor$1, ($$render) => {
|
6462
|
+
if (useBreakPoint()) $$render(consequent_1);
|
6463
|
+
else $$render(alternate_1, false);
|
6464
|
+
}, $$elseif);
|
6465
|
+
};
|
6466
|
+
$.if(node, ($$render) => {
|
6467
|
+
if (isCanvasPreview()) $$render(consequent);
|
6468
|
+
else $$render(alternate, false);
|
6469
|
+
});
|
6470
|
+
var node_3 = $.sibling(node, 2);
|
6471
|
+
var consequent_2 = ($$anchor$1) => {
|
6472
|
+
var div = root_4();
|
6473
|
+
var node_4 = $.child(div);
|
6474
|
+
$.slot(node_4, $$props, "default", {}, null);
|
6475
|
+
$.reset(div);
|
6476
|
+
$.bind_this(div, ($$value) => $.set(modal, $$value), () => $.get(modal));
|
6477
|
+
$.template_effect(($0, $1) => {
|
6478
|
+
$.set_class(div, 1, $0, "svelte-45ue06");
|
6479
|
+
$.set_attribute(div, "data-layer-id", layerId());
|
6480
|
+
$.set_style(div, $1);
|
6481
|
+
}, [() => $.clsx(["modal", useBreakPoint() ? "modal-bp" : ""].join(" ")), () => Array.from(modalStyles).join(";")], $.derived_safe_equal);
|
6482
|
+
$.transition(1, div, () => customAnimation, () => ({
|
6483
|
+
transforms: $.get(transforms),
|
6484
|
+
animationStyle: animation()
|
6485
|
+
}));
|
6486
|
+
$.append($$anchor$1, div);
|
6487
|
+
};
|
6488
|
+
$.if(node_3, ($$render) => {
|
6489
|
+
if ($.get(visible)) $$render(consequent_2);
|
6490
|
+
});
|
6398
6491
|
$.append($$anchor, fragment);
|
6399
6492
|
$.pop();
|
6400
6493
|
}
|
@@ -6402,13 +6495,13 @@ function Modal($$anchor, $$props) {
|
|
6402
6495
|
//#endregion
|
6403
6496
|
//#region src/components-flex/code/Code.svelte
|
6404
6497
|
var root$11 = $.template(`<div><!></div>`);
|
6405
|
-
const $$css$
|
6498
|
+
const $$css$17 = {
|
6406
6499
|
hash: "svelte-igivoz",
|
6407
6500
|
code: ".code.svelte-igivoz {flex-grow:1;flex-shrink:0;align-self:stretch;}\n /*{@html props.rawCss}*/"
|
6408
6501
|
};
|
6409
6502
|
function Code($$anchor, $$props) {
|
6410
6503
|
$.push($$props, false);
|
6411
|
-
$.append_styles($$anchor, $$css$
|
6504
|
+
$.append_styles($$anchor, $$css$17);
|
6412
6505
|
let props = $.prop($$props, "props", 24, () => ({}));
|
6413
6506
|
let layerId = $.prop($$props, "layerId", 8, "");
|
6414
6507
|
function unescapeBraces(str) {
|
@@ -6461,20 +6554,20 @@ const LIST_ITEM_CONTEXT_KEY = "ListItemContext";
|
|
6461
6554
|
//#endregion
|
6462
6555
|
//#region src/components-flex/list/ListItem.svelte
|
6463
6556
|
var root$10 = $.template(`<li><!></li>`);
|
6464
|
-
const $$css$
|
6557
|
+
const $$css$16 = {
|
6465
6558
|
hash: "svelte-b4b4gh",
|
6466
6559
|
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);}"
|
6467
6560
|
};
|
6468
6561
|
function ListItem($$anchor, $$props) {
|
6469
6562
|
$.push($$props, false);
|
6470
|
-
$.append_styles($$anchor, $$css$
|
6563
|
+
$.append_styles($$anchor, $$css$16);
|
6471
6564
|
const variables$1 = $.mutable_state();
|
6472
6565
|
const style = $.mutable_state();
|
6473
6566
|
const innerStyle = $.mutable_state();
|
6474
6567
|
let layerId = $.prop($$props, "layerId", 8);
|
6475
6568
|
let props = $.prop($$props, "props", 8);
|
6476
|
-
|
6477
|
-
useInjectCustomizeCss(props());
|
6569
|
+
$.prop($$props, "item", 8);
|
6570
|
+
useInjectCustomizeCss(props(), layerId());
|
6478
6571
|
const { attributes, element, handleClick } = useClickable_default(props());
|
6479
6572
|
const context = getContext(LIST_ITEM_CONTEXT_KEY) || {};
|
6480
6573
|
$.legacy_pre_effect(() => {}, () => {
|
@@ -6527,13 +6620,13 @@ function ListItem($$anchor, $$props) {
|
|
6527
6620
|
//#endregion
|
6528
6621
|
//#region src/components-flex/list/List.svelte
|
6529
6622
|
var root$9 = $.template(`<ul><!></ul>`);
|
6530
|
-
const $$css$
|
6623
|
+
const $$css$15 = {
|
6531
6624
|
hash: "svelte-v2vy6p",
|
6532
6625
|
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);}"
|
6533
6626
|
};
|
6534
6627
|
function List($$anchor, $$props) {
|
6535
6628
|
$.push($$props, false);
|
6536
|
-
$.append_styles($$anchor, $$css$
|
6629
|
+
$.append_styles($$anchor, $$css$15);
|
6537
6630
|
const variables$1 = $.mutable_state();
|
6538
6631
|
const actionTableData = $.mutable_state();
|
6539
6632
|
const items = $.mutable_state();
|
@@ -6541,7 +6634,7 @@ function List($$anchor, $$props) {
|
|
6541
6634
|
let layerId = $.prop($$props, "layerId", 8);
|
6542
6635
|
let props = $.prop($$props, "props", 8);
|
6543
6636
|
const { brandKit } = useBrandKit();
|
6544
|
-
useInjectCustomizeCss(props());
|
6637
|
+
useInjectCustomizeCss(props(), layerId());
|
6545
6638
|
const vars = getVariables();
|
6546
6639
|
setContext(LIST_ITEM_CONTEXT_KEY, {
|
6547
6640
|
paddingTop: props().itemPaddingTop,
|
@@ -6615,18 +6708,18 @@ function splitNumberAndUnit(value) {
|
|
6615
6708
|
//#endregion
|
6616
6709
|
//#region src/components-flex/multi-column/MultiColumn.svelte
|
6617
6710
|
var root$8 = $.template(`<ul><!></ul>`);
|
6618
|
-
const $$css$
|
6711
|
+
const $$css$14 = {
|
6619
6712
|
hash: "svelte-9pwfkr",
|
6620
6713
|
code: ".multi-column.svelte-9pwfkr {padding:0;margin:0;list-style:none;display:flex;flex-direction:row;}"
|
6621
6714
|
};
|
6622
6715
|
function MultiColumn($$anchor, $$props) {
|
6623
6716
|
$.push($$props, false);
|
6624
|
-
$.append_styles($$anchor, $$css$
|
6717
|
+
$.append_styles($$anchor, $$css$14);
|
6625
6718
|
const style = $.mutable_state();
|
6626
6719
|
let layerId = $.prop($$props, "layerId", 8);
|
6627
6720
|
let props = $.prop($$props, "props", 8);
|
6628
6721
|
const { brandKit } = useBrandKit();
|
6629
|
-
useInjectCustomizeCss(props());
|
6722
|
+
useInjectCustomizeCss(props(), layerId());
|
6630
6723
|
let listGap = (() => {
|
6631
6724
|
if (!props().gap) return "0";
|
6632
6725
|
const { number, unit } = splitNumberAndUnit(props().gap);
|
@@ -6674,18 +6767,18 @@ function MultiColumn($$anchor, $$props) {
|
|
6674
6767
|
//#endregion
|
6675
6768
|
//#region src/components-flex/multi-column/MultiColumnItem.svelte
|
6676
6769
|
var root$7 = $.template(`<li><!></li>`);
|
6677
|
-
const $$css$
|
6770
|
+
const $$css$13 = {
|
6678
6771
|
hash: "svelte-18bwzrs",
|
6679
6772
|
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);}"
|
6680
6773
|
};
|
6681
6774
|
function MultiColumnItem($$anchor, $$props) {
|
6682
6775
|
$.push($$props, false);
|
6683
|
-
$.append_styles($$anchor, $$css$
|
6776
|
+
$.append_styles($$anchor, $$css$13);
|
6684
6777
|
const variables$1 = $.mutable_state();
|
6685
6778
|
const style = $.mutable_state();
|
6686
6779
|
let layerId = $.prop($$props, "layerId", 8);
|
6687
6780
|
let props = $.prop($$props, "props", 8);
|
6688
|
-
useInjectCustomizeCss(props());
|
6781
|
+
useInjectCustomizeCss(props(), layerId());
|
6689
6782
|
const { attributes, element, handleClick } = useClickable_default(props());
|
6690
6783
|
const context = getContext(MULTI_COLUMN_ITEM_CONTEXT_KEY) || {};
|
6691
6784
|
$.legacy_pre_effect(() => {}, () => {
|
@@ -6736,17 +6829,17 @@ function MultiColumnItem($$anchor, $$props) {
|
|
6736
6829
|
//#endregion
|
6737
6830
|
//#region src/components-flex/youtube/Youtube.svelte
|
6738
6831
|
var root$6 = $.template(`<div><div class="youtube-player"></div></div>`);
|
6739
|
-
const $$css$
|
6832
|
+
const $$css$12 = {
|
6740
6833
|
hash: "svelte-odfkc2",
|
6741
6834
|
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;}"
|
6742
6835
|
};
|
6743
6836
|
function Youtube($$anchor, $$props) {
|
6744
6837
|
$.push($$props, false);
|
6745
|
-
$.append_styles($$anchor, $$css$
|
6838
|
+
$.append_styles($$anchor, $$css$12);
|
6746
6839
|
const style = $.mutable_state();
|
6747
6840
|
let props = $.prop($$props, "props", 24, () => ({}));
|
6748
6841
|
let layerId = $.prop($$props, "layerId", 8, "");
|
6749
|
-
useInjectCustomizeCss(props());
|
6842
|
+
useInjectCustomizeCss(props(), layerId());
|
6750
6843
|
if (!window.YT) {
|
6751
6844
|
const tag = document.createElement("script");
|
6752
6845
|
tag.src = "https://www.youtube.com/iframe_api";
|
@@ -6839,20 +6932,20 @@ function Youtube($$anchor, $$props) {
|
|
6839
6932
|
//#endregion
|
6840
6933
|
//#region src/components-flex/count-down/CountDown.svelte
|
6841
6934
|
var root$5 = $.template(`<div><!></div>`);
|
6842
|
-
const $$css$
|
6935
|
+
const $$css$11 = {
|
6843
6936
|
hash: "svelte-1n395il",
|
6844
6937
|
code: ".countdown.svelte-1n395il {display:flex;align-items:center;gap:4px;}"
|
6845
6938
|
};
|
6846
6939
|
function CountDown($$anchor, $$props) {
|
6847
6940
|
$.push($$props, false);
|
6848
|
-
$.append_styles($$anchor, $$css$
|
6941
|
+
$.append_styles($$anchor, $$css$11);
|
6849
6942
|
const day = $.mutable_state();
|
6850
6943
|
const hour = $.mutable_state();
|
6851
6944
|
const min = $.mutable_state();
|
6852
6945
|
const sec = $.mutable_state();
|
6853
6946
|
let props = $.prop($$props, "props", 24, () => ({}));
|
6854
6947
|
let layerId = $.prop($$props, "layerId", 8, "");
|
6855
|
-
useInjectCustomizeCss(props());
|
6948
|
+
useInjectCustomizeCss(props(), layerId());
|
6856
6949
|
let remainingTime = $.mutable_state();
|
6857
6950
|
let timeLimit = props().timeLimit ? new Date(props().timeLimit) : /* @__PURE__ */ new Date();
|
6858
6951
|
function calcRemainingTime(limit) {
|
@@ -6929,8 +7022,8 @@ function CountDown($$anchor, $$props) {
|
|
6929
7022
|
|
6930
7023
|
//#endregion
|
6931
7024
|
//#region src/hooks/useText.ts
|
6932
|
-
const useText = (props) => {
|
6933
|
-
useInjectCustomizeCss(props);
|
7025
|
+
const useText = (props, layerId) => {
|
7026
|
+
useInjectCustomizeCss(props, layerId);
|
6934
7027
|
const { brandKit } = useBrandKit();
|
6935
7028
|
const themeStyles = getTextThemeStyles(brandKit);
|
6936
7029
|
const fontFamilyStyles = props.fontFamilyVariant in FONT_FAMILY_VARIANT ? FONT_FAMILY_VARIANT[props.fontFamilyVariant].getProps(brandKit) : FONT_FAMILY_VARIANT.default.getProps(brandKit);
|
@@ -6995,7 +7088,7 @@ function CountDownValue($$anchor, $$props) {
|
|
6995
7088
|
let props = $.prop($$props, "props", 24, () => ({}));
|
6996
7089
|
let layerId = $.prop($$props, "layerId", 8, "");
|
6997
7090
|
let countdownStore = getContext("countdownStore");
|
6998
|
-
let { style } = useText(props());
|
7091
|
+
let { style } = useText(props(), layerId());
|
6999
7092
|
$.legacy_pre_effect(() => ($countdownStore(), $.deep_read_state(props())), () => {
|
7000
7093
|
$.set(value, (() => {
|
7001
7094
|
const { day, hour, min, sec } = $countdownStore();
|
@@ -7028,16 +7121,16 @@ function CountDownValue($$anchor, $$props) {
|
|
7028
7121
|
//#endregion
|
7029
7122
|
//#region src/components-flex/clip-copy/ClipCopy.svelte
|
7030
7123
|
var root$3 = $.template(`<div><button class="clipboard-button svelte-orhp4c"><!></button> <span class="clipboard-tooltip svelte-orhp4c">コピーしました</span></div>`);
|
7031
|
-
const $$css$
|
7124
|
+
const $$css$10 = {
|
7032
7125
|
hash: "svelte-orhp4c",
|
7033
7126
|
code: ".clipboard.svelte-orhp4c {position:relative;display:inline-flex;}.clipboard-button.svelte-orhp4c {position:relative;display:inline-flex;align-items:center;white-space:nowrap;gap:12px;background:none;border:0;transition:0.12s;cursor:pointer;}.clipboard-button.svelte-orhp4c:hover {opacity:0.8;}.clipboard-button.svelte-orhp4c:active {opacity:0.6;}.clipboard-tooltip.svelte-orhp4c {position:absolute;top:-8px;left:50%;display:block;transform:translate(-50%, -100%);padding:4px 10px;background-color:#333333;color:#ffffff;font-size:11px;font-weight:bold;border-radius:4px;transition:transform 0.2s ease-out;white-space:nowrap;pointer-events:none;}.clipboard-tooltip.svelte-orhp4c:after {content:'';display:block;position:absolute;bottom:0;left:50%;width:8px;height:8px;background-color:#333333;border-radius:1px;transform:translate(-50%, 40%) rotate(45deg);}.clipboard-tooltip[aria-hidden='true'].svelte-orhp4c {opacity:0;transform:translate(-50%, -80%);}"
|
7034
7127
|
};
|
7035
7128
|
function ClipCopy($$anchor, $$props) {
|
7036
7129
|
$.push($$props, false);
|
7037
|
-
$.append_styles($$anchor, $$css$
|
7130
|
+
$.append_styles($$anchor, $$css$10);
|
7038
7131
|
let props = $.prop($$props, "props", 24, () => ({}));
|
7039
7132
|
let layerId = $.prop($$props, "layerId", 8, "");
|
7040
|
-
useInjectCustomizeCss(props());
|
7133
|
+
useInjectCustomizeCss(props(), layerId());
|
7041
7134
|
let buttonElement = $.mutable_state();
|
7042
7135
|
let showTooltip = $.mutable_state(false);
|
7043
7136
|
const handleClick = (e) => {
|
@@ -7074,19 +7167,19 @@ function ClipCopy($$anchor, $$props) {
|
|
7074
7167
|
//#endregion
|
7075
7168
|
//#region src/components-flex/embed/Embed.svelte
|
7076
7169
|
var root$2 = $.template(`<div><!></div>`);
|
7077
|
-
const $$css$
|
7170
|
+
const $$css$9 = {
|
7078
7171
|
hash: "svelte-13tkwh0",
|
7079
7172
|
code: ".embed.svelte-13tkwh0 {width:var(--width);height:var(--height);aspect-ratio:var(--aspect);}.embed.svelte-13tkwh0 iframe {vertical-align:bottom;max-width:100%;width:var(--width) !important;height:var(--height) !important;aspect-ratio:var(--aspect) !important;}"
|
7080
7173
|
};
|
7081
7174
|
function Embed($$anchor, $$props) {
|
7082
7175
|
$.push($$props, false);
|
7083
|
-
$.append_styles($$anchor, $$css$
|
7176
|
+
$.append_styles($$anchor, $$css$9);
|
7084
7177
|
const variables$1 = $.mutable_state();
|
7085
7178
|
const styleObj = $.mutable_state();
|
7086
7179
|
const style = $.mutable_state();
|
7087
7180
|
let props = $.prop($$props, "props", 24, () => ({}));
|
7088
7181
|
let layerId = $.prop($$props, "layerId", 8, "");
|
7089
|
-
useInjectCustomizeCss(props());
|
7182
|
+
useInjectCustomizeCss(props(), layerId());
|
7090
7183
|
const aspectVariantStyles = ASPECT_VARIANT[props().aspectVariant]?.getProps();
|
7091
7184
|
const width = props().width ?? "100%";
|
7092
7185
|
$.legacy_pre_effect(() => $.deep_read_state(props()), () => {
|
@@ -7124,16 +7217,16 @@ function Embed($$anchor, $$props) {
|
|
7124
7217
|
//#endregion
|
7125
7218
|
//#region src/components-flex/form/Form.svelte
|
7126
7219
|
var root$1 = $.template(`<div><!></div>`);
|
7127
|
-
const $$css$
|
7220
|
+
const $$css$8 = {
|
7128
7221
|
hash: "svelte-nekp9e",
|
7129
7222
|
code: ".form.svelte-nekp9e {width:100%;}"
|
7130
7223
|
};
|
7131
7224
|
function Form($$anchor, $$props) {
|
7132
7225
|
$.push($$props, false);
|
7133
|
-
$.append_styles($$anchor, $$css$
|
7226
|
+
$.append_styles($$anchor, $$css$8);
|
7134
7227
|
let props = $.prop($$props, "props", 24, () => ({}));
|
7135
7228
|
let layerId = $.prop($$props, "layerId", 8, "");
|
7136
|
-
useInjectCustomizeCss(props());
|
7229
|
+
useInjectCustomizeCss(props(), layerId());
|
7137
7230
|
$.init();
|
7138
7231
|
var div = root$1();
|
7139
7232
|
var node = $.child(div);
|
@@ -7169,18 +7262,18 @@ var root_2$3 = $.template(`<span class="field-required svelte-1maygd6">*</span
|
|
7169
7262
|
var root_1$5 = $.template(`<dt class="svelte-1maygd6"><span> </span> <!></dt>`);
|
7170
7263
|
var root_3 = $.template(`<p class="field-error svelte-1maygd6"> </p>`);
|
7171
7264
|
var root = $.template(`<dl><!> <dd class="svelte-1maygd6"><!> <!></dd></dl>`);
|
7172
|
-
const $$css$
|
7265
|
+
const $$css$7 = {
|
7173
7266
|
hash: "svelte-1maygd6",
|
7174
7267
|
code: ".field.svelte-1maygd6 {margin:0;padding:0;border:0;display:flex;width:100%;flex-direction:var(--form-field-direction);gap:var(--form-field-gap);}.field.svelte-1maygd6 > dt:where(.svelte-1maygd6) {position:relative;font-weight:bold;font-size:var(--form-field-label-font-size);width:var(--form-field-label-width);flex-shrink:0;color:var(--form-field-label-color);display:inline-flex;gap:0.4em;}.field-required.svelte-1maygd6 {flex-shrink:0;font-size:0.6em;color:var(--danger-color);}.field.svelte-1maygd6 > dd:where(.svelte-1maygd6) {position:relative;margin:0;flex-grow:1;}.field-error.svelte-1maygd6 {position:absolute;top:calc(100% + 8px);left:0;display:inline-flex;color:var(--danger-color);border:1px solid var(--danger-color);border-radius:4px;background-color:#fff;padding:6px 12px;font-size:12px;margin:0;z-index:10;}.field-error.svelte-1maygd6::after {content:'';display:block;position:absolute;top:0;left:8px;width:8px;height:8px;transform:rotate(45deg) translateY(-80%);border-top:1px solid var(--danger-color);border-left:1px solid var(--danger-color);border-radius:1px;background-color:#fff;}"
|
7175
7268
|
};
|
7176
7269
|
function FormField($$anchor, $$props) {
|
7177
7270
|
$.push($$props, false);
|
7178
|
-
$.append_styles($$anchor, $$css$
|
7271
|
+
$.append_styles($$anchor, $$css$7);
|
7179
7272
|
const variables$1 = $.mutable_state();
|
7180
7273
|
const style = $.mutable_state();
|
7181
7274
|
let props = $.prop($$props, "props", 24, () => ({}));
|
7182
7275
|
let layerId = $.prop($$props, "layerId", 8, "");
|
7183
|
-
useInjectCustomizeCss(props());
|
7276
|
+
useInjectCustomizeCss(props(), layerId());
|
7184
7277
|
const { brandKit } = useBrandKit();
|
7185
7278
|
let registeredFieldName = $.mutable_state("");
|
7186
7279
|
let errorMessage = $.mutable_state(null);
|
@@ -7211,7 +7304,9 @@ function FormField($$anchor, $$props) {
|
|
7211
7304
|
type: props().fieldType,
|
7212
7305
|
name: props().fieldName,
|
7213
7306
|
defaultValue: props().defaultValue,
|
7214
|
-
required: props().required
|
7307
|
+
required: props().required,
|
7308
|
+
validations: props().validations,
|
7309
|
+
isIdentify: props().isIdentify
|
7215
7310
|
});
|
7216
7311
|
formStore.subscribe(($store) => {
|
7217
7312
|
$.set(errorMessage, $store.states[props().fieldName]?.errorMessage ?? null);
|
@@ -7224,48 +7319,42 @@ function FormField($$anchor, $$props) {
|
|
7224
7319
|
$.init();
|
7225
7320
|
var dl = root();
|
7226
7321
|
var node = $.child(dl);
|
7227
|
-
{
|
7228
|
-
var
|
7229
|
-
|
7230
|
-
|
7231
|
-
|
7232
|
-
|
7233
|
-
|
7234
|
-
|
7235
|
-
|
7236
|
-
var span_1 = root_2$3();
|
7237
|
-
$.append($$anchor$2, span_1);
|
7238
|
-
};
|
7239
|
-
$.if(node_1, ($$render) => {
|
7240
|
-
if (props().required) $$render(consequent);
|
7241
|
-
});
|
7242
|
-
}
|
7243
|
-
$.reset(dt);
|
7244
|
-
$.template_effect(() => $.set_text(text, props().label));
|
7245
|
-
$.append($$anchor$1, dt);
|
7322
|
+
var consequent_1 = ($$anchor$1) => {
|
7323
|
+
var dt = root_1$5();
|
7324
|
+
var span = $.child(dt);
|
7325
|
+
var text = $.child(span, true);
|
7326
|
+
$.reset(span);
|
7327
|
+
var node_1 = $.sibling(span, 2);
|
7328
|
+
var consequent = ($$anchor$2) => {
|
7329
|
+
var span_1 = root_2$3();
|
7330
|
+
$.append($$anchor$2, span_1);
|
7246
7331
|
};
|
7247
|
-
$.if(
|
7248
|
-
if (props().
|
7332
|
+
$.if(node_1, ($$render) => {
|
7333
|
+
if (props().required) $$render(consequent);
|
7249
7334
|
});
|
7250
|
-
|
7335
|
+
$.reset(dt);
|
7336
|
+
$.template_effect(() => $.set_text(text, props().label));
|
7337
|
+
$.append($$anchor$1, dt);
|
7338
|
+
};
|
7339
|
+
$.if(node, ($$render) => {
|
7340
|
+
if (props().label) $$render(consequent_1);
|
7341
|
+
});
|
7251
7342
|
var dd = $.sibling(node, 2);
|
7252
7343
|
var node_2 = $.child(dd);
|
7253
7344
|
$.slot(node_2, $$props, "default", { get "data-layer-id"() {
|
7254
7345
|
return layerId();
|
7255
7346
|
} }, null);
|
7256
7347
|
var node_3 = $.sibling(node_2, 2);
|
7257
|
-
{
|
7258
|
-
var
|
7259
|
-
|
7260
|
-
|
7261
|
-
|
7262
|
-
|
7263
|
-
|
7264
|
-
|
7265
|
-
|
7266
|
-
|
7267
|
-
});
|
7268
|
-
}
|
7348
|
+
var consequent_2 = ($$anchor$1) => {
|
7349
|
+
var p = root_3();
|
7350
|
+
var text_1 = $.child(p, true);
|
7351
|
+
$.reset(p);
|
7352
|
+
$.template_effect(() => $.set_text(text_1, $.get(errorMessage)));
|
7353
|
+
$.append($$anchor$1, p);
|
7354
|
+
};
|
7355
|
+
$.if(node_3, ($$render) => {
|
7356
|
+
if ($.get(isShowErrorMessage) && $.get(errorMessage)) $$render(consequent_2);
|
7357
|
+
});
|
7269
7358
|
$.reset(dd);
|
7270
7359
|
$.reset(dl);
|
7271
7360
|
$.template_effect(($0) => {
|
@@ -7285,13 +7374,13 @@ function FormField($$anchor, $$props) {
|
|
7285
7374
|
//#endregion
|
7286
7375
|
//#region src/components-flex/form/FormInput.svelte
|
7287
7376
|
var root_1$4 = $.template(`<input type="text">`);
|
7288
|
-
const $$css$
|
7377
|
+
const $$css$6 = {
|
7289
7378
|
hash: "svelte-176cxs0",
|
7290
7379
|
code: ".form-input.svelte-176cxs0 {margin:0;width:var(--form-input-width);-webkit-appearance:none;color:var(--font-color);transition:all 0.2s;}.form-input.small.svelte-176cxs0 {font-size:12px;line-height:19px;padding:6px 10px 5px;border-radius:4px;}.form-input.medium.svelte-176cxs0 {font-size:14px;line-height:21px;padding:8px 12px 7px;border-radius:6px;}.form-input.large.svelte-176cxs0 {font-size:16px;line-height:25px;padding:11px 16px 10px;border-radius:8px;}.form-input.outlined.svelte-176cxs0 {border:1px solid var(--border-color);}.form-input.filled.svelte-176cxs0 {background-color:var(--background-color);border:1px solid var(--background-color);}.form-input.underlined.svelte-176cxs0 {border-radius:0;border-width:0 0 1px;border-style:solid;border-color:rgba(255, 255, 255, 0) rgba(255, 255, 255, 0) var(--border-color);}.form-input.underlined.svelte-176cxs0:focus-visible {outline:0;border-bottom-color:1px solid var(--focused-outline-color);}.form-input.svelte-176cxs0:focus-visible {outline-color:var(--focused-outline-color);}.form-input.svelte-176cxs0::placeholder {color:var(--placeholder-color);}"
|
7291
7380
|
};
|
7292
7381
|
function FormInput($$anchor, $$props) {
|
7293
7382
|
$.push($$props, false);
|
7294
|
-
$.append_styles($$anchor, $$css$
|
7383
|
+
$.append_styles($$anchor, $$css$6);
|
7295
7384
|
const variant = $.mutable_state();
|
7296
7385
|
const size = $.mutable_state();
|
7297
7386
|
const variables$1 = $.mutable_state();
|
@@ -7300,7 +7389,7 @@ function FormInput($$anchor, $$props) {
|
|
7300
7389
|
let props = $.prop($$props, "props", 24, () => ({}));
|
7301
7390
|
let layerId = $.prop($$props, "layerId", 8, "");
|
7302
7391
|
const { brandKit } = useBrandKit();
|
7303
|
-
useInjectCustomizeCss(props());
|
7392
|
+
useInjectCustomizeCss(props(), layerId());
|
7304
7393
|
let value = $.mutable_state("");
|
7305
7394
|
const handleBlur = () => {
|
7306
7395
|
if (props().fieldName) {
|
@@ -7378,13 +7467,13 @@ function FormInput($$anchor, $$props) {
|
|
7378
7467
|
//#endregion
|
7379
7468
|
//#region src/components-flex/form/FormTextarea.svelte
|
7380
7469
|
var root_1$3 = $.template(`<textarea></textarea>`);
|
7381
|
-
const $$css$
|
7470
|
+
const $$css$5 = {
|
7382
7471
|
hash: "svelte-1oqg2c0",
|
7383
7472
|
code: ".form-textarea.svelte-1oqg2c0 {margin:0;width:var(--form-textarea-width);max-width:var(--form-textarea-width);min-width:var(--form-textarea-width);-webkit-appearance:none;vertical-align:bottom;color:var(--font-color);transition:all 0.2s;}.form-textarea.small.svelte-1oqg2c0 {font-size:12px;line-height:19px;padding:6px 10px 5px;border-radius:4px;}.form-textarea.medium.svelte-1oqg2c0 {font-size:14px;line-height:21px;padding:8px 12px 7px;border-radius:6px;}.form-textarea.large.svelte-1oqg2c0 {font-size:16px;line-height:25px;padding:11px 16px 10px;border-radius:8px;}.form-textarea.outlined.svelte-1oqg2c0 {border:1px solid var(--border-color);}.form-textarea.filled.svelte-1oqg2c0 {background-color:var(--background-color);border:1px solid var(--background-color);}.form-textarea.underlined.svelte-1oqg2c0 {border-radius:0;border-width:0 0 1px;border-style:solid;border-color:rgba(255, 255, 255, 0) rgba(255, 255, 255, 0) var(--border-color);}.form-textarea.underlined.svelte-1oqg2c0:focus-visible {outline:0;border-bottom-color:1px solid var(--focused-outline-color);}.form-textarea.svelte-1oqg2c0:focus-visible {outline-color:var(--focused-outline-color);}.form-textarea.svelte-1oqg2c0::placeholder {color:var(--placeholder-color);}"
|
7384
7473
|
};
|
7385
7474
|
function FormTextarea($$anchor, $$props) {
|
7386
7475
|
$.push($$props, false);
|
7387
|
-
$.append_styles($$anchor, $$css$
|
7476
|
+
$.append_styles($$anchor, $$css$5);
|
7388
7477
|
const variant = $.mutable_state();
|
7389
7478
|
const size = $.mutable_state();
|
7390
7479
|
const variables$1 = $.mutable_state();
|
@@ -7392,7 +7481,7 @@ function FormTextarea($$anchor, $$props) {
|
|
7392
7481
|
let props = $.prop($$props, "props", 24, () => ({}));
|
7393
7482
|
let layerId = $.prop($$props, "layerId", 8, "");
|
7394
7483
|
const { brandKit } = useBrandKit();
|
7395
|
-
useInjectCustomizeCss(props());
|
7484
|
+
useInjectCustomizeCss(props(), layerId());
|
7396
7485
|
let value = $.mutable_state("");
|
7397
7486
|
const handleBlur = () => {
|
7398
7487
|
if (props().fieldName) {
|
@@ -7464,13 +7553,13 @@ function FormTextarea($$anchor, $$props) {
|
|
7464
7553
|
//#region src/components-flex/form/FormSelect.svelte
|
7465
7554
|
var root_2$2 = $.template(`<option class="svelte-p118m"> </option>`);
|
7466
7555
|
var root_1$2 = $.template(`<div><select class="form-select-select svelte-p118m"><option disabled class="svelte-p118m"> </option><!></select></div>`);
|
7467
|
-
const $$css$
|
7556
|
+
const $$css$4 = {
|
7468
7557
|
hash: "svelte-p118m",
|
7469
7558
|
code: ".form-select.svelte-p118m {position:relative;display:inline-flex;width:var(--width);color:var(--font-color);}.form-select.empty.svelte-p118m select:where(.svelte-p118m) {color:var(--placeholder-color);}.form-select.svelte-p118m:after {content:'';display:block;position:absolute;top:50%;right:12px;width:6px;height:6px;border-bottom:1px solid var(--font-color);border-left:1px solid var(--font-color);transform:translateY(-75%) rotate(-45deg);}.form-select.svelte-p118m select:where(.svelte-p118m) {margin:0;width:100%;-webkit-appearance:none;transition:all 0.2s;}.form-select.small.svelte-p118m select:where(.svelte-p118m) {font-size:12px;line-height:19px;padding:6px 32px 5px 10px;border-radius:4px;}.form-select.medium.svelte-p118m select:where(.svelte-p118m) {font-size:14px;line-height:21px;padding:8px 36px 7px 12px;border-radius:6px;}.form-select.large.svelte-p118m select:where(.svelte-p118m) {font-size:16px;line-height:25px;padding:11px 40px 10px 16px;border-radius:8px;}.form-select.large.svelte-p118m:after {right:20px;}.form-select.outlined.svelte-p118m select:where(.svelte-p118m) {border:1px solid var(--border-color);}.form-select.filled.svelte-p118m select:where(.svelte-p118m) {background-color:var(--background-color);border:1px solid var(--background-color);}.form-select.underlined.svelte-p118m select:where(.svelte-p118m) {border-radius:0;border-width:0 0 1px;border-style:solid;border-color:rgba(255, 255, 255, 0) rgba(255, 255, 255, 0) var(--border-color);}.form-select.underlined.svelte-p118m select:where(.svelte-p118m):focus-visible {outline:0;border-bottom-color:1px solid var(--focused-outline-color);}.form-select.svelte-p118m select:where(.svelte-p118m):focus-visible {outline-color:var(--focused-outline-color);}.form-select.svelte-p118m select:where(.svelte-p118m) option:where(.svelte-p118m) {color:var(--font-color);}"
|
7470
7559
|
};
|
7471
7560
|
function FormSelect($$anchor, $$props) {
|
7472
7561
|
$.push($$props, false);
|
7473
|
-
$.append_styles($$anchor, $$css$
|
7562
|
+
$.append_styles($$anchor, $$css$4);
|
7474
7563
|
const variant = $.mutable_state();
|
7475
7564
|
const size = $.mutable_state();
|
7476
7565
|
const isEmpty$1 = $.mutable_state();
|
@@ -7479,7 +7568,7 @@ function FormSelect($$anchor, $$props) {
|
|
7479
7568
|
let props = $.prop($$props, "props", 24, () => ({}));
|
7480
7569
|
let layerId = $.prop($$props, "layerId", 8, "");
|
7481
7570
|
const { brandKit } = useBrandKit();
|
7482
|
-
useInjectCustomizeCss(props());
|
7571
|
+
useInjectCustomizeCss(props(), layerId());
|
7483
7572
|
let value = $.mutable_state("");
|
7484
7573
|
const handleChange = () => {
|
7485
7574
|
if (props().fieldName) {
|
@@ -7582,12 +7671,22 @@ const FORM_FIELD_LABEL_THEME = {
|
|
7582
7671
|
gray: "グレー",
|
7583
7672
|
brand: "ブランド"
|
7584
7673
|
};
|
7674
|
+
const FORM_IDENTIFY_FIELD_TYPE = {
|
7675
|
+
email: "メールアドレス",
|
7676
|
+
subscription: "メールマガジン登録",
|
7677
|
+
phone: "電話番号",
|
7678
|
+
phone_subscribe: "SMS配信許可",
|
7679
|
+
first_name: "名前(名)",
|
7680
|
+
last_name: "名前(姓)",
|
7681
|
+
address: "住所"
|
7682
|
+
};
|
7585
7683
|
const FORM_FIELD_TYPE = {
|
7586
7684
|
INPUT: "input",
|
7587
7685
|
SELECT: "select",
|
7588
7686
|
CHECKBOX: "checkbox",
|
7589
7687
|
CHECKBOXES: "checkboxes",
|
7590
7688
|
RADIOS: "radio",
|
7689
|
+
BOOLEAN: "boolean",
|
7591
7690
|
TEXTAREA: "textarea"
|
7592
7691
|
};
|
7593
7692
|
const FORM_FIELD_VARIANT = {
|
@@ -7615,13 +7714,13 @@ const FORM_INPUT_TYPE = {
|
|
7615
7714
|
//#region src/components-flex/form/FormCheckboxes.svelte
|
7616
7715
|
var root_2$1 = $.template(`<li><label class="form-checkbox svelte-rx48m9"><input type="checkbox" class="form-checkbox-input svelte-rx48m9"> <span class="form-checkbox-check svelte-rx48m9"><i class="form-checkbox-check-icon svelte-rx48m9"></i></span> <span class="form-checkbox-label svelte-rx48m9"> </span></label></li>`);
|
7617
7716
|
var root_1$1 = $.template(`<ul></ul>`);
|
7618
|
-
const $$css$
|
7717
|
+
const $$css$3 = {
|
7619
7718
|
hash: "svelte-rx48m9",
|
7620
7719
|
code: ".form-checkboxes.svelte-rx48m9 {position:relative;display:var(--checkboxes-display);flex-direction:var(--checkboxes-direction);flex-wrap:wrap;column-gap:var(--checkboxes-gap-x);row-gap:var(--checkboxes-gap-y);grid-template-columns:var(--checkboxes-grid-cols);width:100%;list-style:none;padding:2px 0;}.form-checkboxes.outlined.svelte-rx48m9 .form-checkbox-check:where(.svelte-rx48m9) {background-color:#fff;border:1px solid var(--border-color);}.form-checkboxes.filled.svelte-rx48m9 .form-checkbox-check:where(.svelte-rx48m9) {background-color:var(--background-color);border:1px solid var(--background-color);}.form-checkbox.svelte-rx48m9 {display:flex;align-items:center;gap:var(--checkbox-gap);cursor:pointer;}.form-checkbox-input.svelte-rx48m9 {appearance:none;margin:0;width:var(--checkbox-check-size);height:var(--checkbox-check-size);cursor:pointer;position:absolute;}.form-checkbox-check.svelte-rx48m9 {display:flex;align-items:center;justify-content:center;flex-shrink:0;width:var(--checkbox-check-size);height:var(--checkbox-check-size);border-radius:var(--checkbox-check-radius);transition:0.2s;}.form-checkbox-check-icon.svelte-rx48m9 {display:block;width:0.625em;height:0.375em;border-bottom:2px solid white;border-left:2px solid white;transform:translateY(-25%) rotate(-45deg);opacity:0;transition:0.2s;}.form-checkbox-label.svelte-rx48m9 {font-size:var(--checkbox-font-size);color:var(--font-color);white-space:nowrap;user-select:none;}.form-checkbox-input.svelte-rx48m9:checked ~ .form-checkbox-check:where(.svelte-rx48m9) {background-color:var(--accent-color);border-color:var(--accent-color);}.form-checkbox-input.svelte-rx48m9:checked ~ .form-checkbox-check:where(.svelte-rx48m9) .form-checkbox-check-icon:where(.svelte-rx48m9) {opacity:1;}"
|
7621
7720
|
};
|
7622
7721
|
function FormCheckboxes($$anchor, $$props) {
|
7623
7722
|
$.push($$props, false);
|
7624
|
-
$.append_styles($$anchor, $$css$
|
7723
|
+
$.append_styles($$anchor, $$css$3);
|
7625
7724
|
const variant = $.mutable_state();
|
7626
7725
|
const size = $.mutable_state();
|
7627
7726
|
const options = $.mutable_state();
|
@@ -7630,7 +7729,7 @@ function FormCheckboxes($$anchor, $$props) {
|
|
7630
7729
|
const binding_group = [];
|
7631
7730
|
let props = $.prop($$props, "props", 24, () => ({}));
|
7632
7731
|
let layerId = $.prop($$props, "layerId", 8, "");
|
7633
|
-
useInjectCustomizeCss(props());
|
7732
|
+
useInjectCustomizeCss(props(), layerId());
|
7634
7733
|
const { brandKit } = useBrandKit();
|
7635
7734
|
let values = $.mutable_state([]);
|
7636
7735
|
const handleChange = () => {
|
@@ -7671,7 +7770,7 @@ function FormCheckboxes($$anchor, $$props) {
|
|
7671
7770
|
})(),
|
7672
7771
|
"--checkbox-check-size": (() => {
|
7673
7772
|
if ($.get(size) === "small") return "14x";
|
7674
|
-
if ($.get(size) === "large") return "
|
7773
|
+
if ($.get(size) === "large") return "18px";
|
7675
7774
|
return "16px";
|
7676
7775
|
})(),
|
7677
7776
|
"--checkbox-check-radius": (() => {
|
@@ -7747,13 +7846,13 @@ function FormCheckboxes($$anchor, $$props) {
|
|
7747
7846
|
//#region src/components-flex/form/FormRadios.svelte
|
7748
7847
|
var root_2 = $.template(`<li><label class="form-radio svelte-ps4qqa"><input type="radio" class="form-radio-input svelte-ps4qqa"> <span class="form-radio-check svelte-ps4qqa"><i class="form-radio-check-icon svelte-ps4qqa"></i></span> <span class="form-radio-label svelte-ps4qqa"> </span></label></li>`);
|
7749
7848
|
var root_1 = $.template(`<ul></ul>`);
|
7750
|
-
const $$css = {
|
7849
|
+
const $$css$2 = {
|
7751
7850
|
hash: "svelte-ps4qqa",
|
7752
7851
|
code: ".form-radios.svelte-ps4qqa {position:relative;display:var(--radios-display);flex-direction:var(--radios-direction);flex-wrap:wrap;column-gap:var(--radios-gap-x);row-gap:var(--radios-gap-y);grid-template-columns:var(--radios-grid-cols);width:100%;list-style:none;padding:2px 0;}.form-radios.outlined.svelte-ps4qqa .form-radio-check:where(.svelte-ps4qqa) {background-color:#fff;border:1px solid var(--border-color);}.form-radios.filled.svelte-ps4qqa .form-radio-check:where(.svelte-ps4qqa) {background-color:var(--background-color);border:1px solid var(--background-color);}.form-radio.svelte-ps4qqa {display:flex;align-items:center;gap:var(--radio-gap);cursor:pointer;}.form-radio-input.svelte-ps4qqa {appearance:none;width:var(--radio-check-size);height:var(--radio-check-size);margin:0;cursor:pointer;position:absolute;}.form-radio-check.svelte-ps4qqa {display:flex;align-items:center;justify-content:center;flex-shrink:0;width:var(--radio-check-size);height:var(--radio-check-size);border-radius:100%;transition:0.2s;}.form-radio-check-icon.svelte-ps4qqa {display:block;width:var(--radio-check-icon-size);height:var(--radio-check-icon-size);border-radius:100%;background-color:var(--accent-color);opacity:0;transition:0.2s;}.form-radio-label.svelte-ps4qqa {font-size:var(--radio-font-size);color:var(--font-color);white-space:nowrap;user-select:none;}.form-radio-input.svelte-ps4qqa:checked ~ .form-radio-check:where(.svelte-ps4qqa) {border-color:var(--accent-color);}.form-radio-input.svelte-ps4qqa:checked ~ .form-radio-check:where(.svelte-ps4qqa) .form-radio-check-icon:where(.svelte-ps4qqa) {opacity:1;}"
|
7753
7852
|
};
|
7754
7853
|
function FormRadios($$anchor, $$props) {
|
7755
7854
|
$.push($$props, false);
|
7756
|
-
$.append_styles($$anchor, $$css);
|
7855
|
+
$.append_styles($$anchor, $$css$2);
|
7757
7856
|
const variant = $.mutable_state();
|
7758
7857
|
const size = $.mutable_state();
|
7759
7858
|
const options = $.mutable_state();
|
@@ -7762,7 +7861,7 @@ function FormRadios($$anchor, $$props) {
|
|
7762
7861
|
const binding_group = [];
|
7763
7862
|
let props = $.prop($$props, "props", 24, () => ({}));
|
7764
7863
|
let layerId = $.prop($$props, "layerId", 8, "");
|
7765
|
-
useInjectCustomizeCss(props());
|
7864
|
+
useInjectCustomizeCss(props(), layerId());
|
7766
7865
|
const { brandKit } = useBrandKit();
|
7767
7866
|
let value = $.mutable_state("");
|
7768
7867
|
const handleChange = () => {
|
@@ -7880,6 +7979,124 @@ function FormRadios($$anchor, $$props) {
|
|
7880
7979
|
$.pop();
|
7881
7980
|
}
|
7882
7981
|
|
7982
|
+
//#endregion
|
7983
|
+
//#region src/components-flex/form/FormBoolean.svelte
|
7984
|
+
const $$css$1 = {
|
7985
|
+
hash: "svelte-3kpd",
|
7986
|
+
code: ""
|
7987
|
+
};
|
7988
|
+
function FormBoolean($$anchor, $$props) {
|
7989
|
+
$.append_styles($$anchor, $$css$1);
|
7990
|
+
let props = $.prop($$props, "props", 24, () => ({}));
|
7991
|
+
let layerId = $.prop($$props, "layerId", 8, "");
|
7992
|
+
FormRadios($$anchor, {
|
7993
|
+
get layerId() {
|
7994
|
+
return layerId();
|
7995
|
+
},
|
7996
|
+
get props() {
|
7997
|
+
return props();
|
7998
|
+
}
|
7999
|
+
});
|
8000
|
+
}
|
8001
|
+
|
8002
|
+
//#endregion
|
8003
|
+
//#region src/components-flex/form/FormIdentifyField.svelte
|
8004
|
+
const $$css = {
|
8005
|
+
hash: "svelte-3kpd",
|
8006
|
+
code: ""
|
8007
|
+
};
|
8008
|
+
function FormIdentifyField($$anchor, $$props) {
|
8009
|
+
$.push($$props, false);
|
8010
|
+
$.append_styles($$anchor, $$css);
|
8011
|
+
const fieldType = $.mutable_state();
|
8012
|
+
const fieldProps = $.mutable_state();
|
8013
|
+
const inputProps = $.mutable_state();
|
8014
|
+
const booleanProps = $.mutable_state();
|
8015
|
+
let props = $.prop($$props, "props", 24, () => ({}));
|
8016
|
+
let layerId = $.prop($$props, "layerId", 8, "");
|
8017
|
+
useInjectCustomizeCss(props(), layerId());
|
8018
|
+
const identifyType = props().identifyType ?? "email";
|
8019
|
+
$.legacy_pre_effect(() => {}, () => {
|
8020
|
+
$.set(fieldType, (() => {
|
8021
|
+
switch (identifyType) {
|
8022
|
+
case "phone_subscribe":
|
8023
|
+
case "subscription": return "boolean";
|
8024
|
+
case "address":
|
8025
|
+
case "first_name":
|
8026
|
+
case "last_name":
|
8027
|
+
case "email":
|
8028
|
+
case "phone":
|
8029
|
+
default: return "input";
|
8030
|
+
}
|
8031
|
+
})());
|
8032
|
+
});
|
8033
|
+
$.legacy_pre_effect(() => ($.deep_read_state(props()), $.get(fieldType)), () => {
|
8034
|
+
$.set(fieldProps, (() => {
|
8035
|
+
return {
|
8036
|
+
...props(),
|
8037
|
+
fieldType: $.get(fieldType),
|
8038
|
+
fieldName: identifyType,
|
8039
|
+
isIdentify: true
|
8040
|
+
};
|
8041
|
+
})());
|
8042
|
+
});
|
8043
|
+
$.legacy_pre_effect(() => ($.get(fieldType), $.get(fieldProps), $.deep_read_state(props())), () => {
|
8044
|
+
$.set(inputProps, (() => {
|
8045
|
+
if ($.get(fieldType) !== "input") return null;
|
8046
|
+
return {
|
8047
|
+
...$.get(fieldProps),
|
8048
|
+
...props().inputProps ?? {}
|
8049
|
+
};
|
8050
|
+
})());
|
8051
|
+
});
|
8052
|
+
$.legacy_pre_effect(() => ($.get(fieldType), $.get(fieldProps), $.deep_read_state(props())), () => {
|
8053
|
+
$.set(booleanProps, (() => {
|
8054
|
+
if ($.get(fieldType) !== "boolean") return null;
|
8055
|
+
return {
|
8056
|
+
...$.get(fieldProps),
|
8057
|
+
...props().checkerProps ?? {}
|
8058
|
+
};
|
8059
|
+
})());
|
8060
|
+
});
|
8061
|
+
$.legacy_pre_effect_reset();
|
8062
|
+
$.init();
|
8063
|
+
var fragment = $.comment();
|
8064
|
+
var node = $.first_child(fragment);
|
8065
|
+
var consequent = ($$anchor$1) => {
|
8066
|
+
FormInput($$anchor$1, {
|
8067
|
+
get layerId() {
|
8068
|
+
return layerId();
|
8069
|
+
},
|
8070
|
+
get props() {
|
8071
|
+
return $.get(inputProps);
|
8072
|
+
}
|
8073
|
+
});
|
8074
|
+
};
|
8075
|
+
var alternate = ($$anchor$1, $$elseif) => {
|
8076
|
+
var consequent_1 = ($$anchor$2) => {
|
8077
|
+
FormBoolean($$anchor$2, {
|
8078
|
+
get layerId() {
|
8079
|
+
return layerId();
|
8080
|
+
},
|
8081
|
+
get props() {
|
8082
|
+
return $.get(booleanProps);
|
8083
|
+
}
|
8084
|
+
});
|
8085
|
+
};
|
8086
|
+
var alternate_1 = ($$anchor$2) => {};
|
8087
|
+
$.if($$anchor$1, ($$render) => {
|
8088
|
+
if ($.get(booleanProps)) $$render(consequent_1);
|
8089
|
+
else $$render(alternate_1, false);
|
8090
|
+
}, $$elseif);
|
8091
|
+
};
|
8092
|
+
$.if(node, ($$render) => {
|
8093
|
+
if ($.get(inputProps)) $$render(consequent);
|
8094
|
+
else $$render(alternate, false);
|
8095
|
+
});
|
8096
|
+
$.append($$anchor, fragment);
|
8097
|
+
$.pop();
|
8098
|
+
}
|
8099
|
+
|
7883
8100
|
//#endregion
|
7884
8101
|
//#region src/components-flex/shared/styles.ts
|
7885
8102
|
const ROUND_STYLES = {
|
@@ -8152,7 +8369,11 @@ __export(index_svelte5_exports, {
|
|
8152
8369
|
FORM_FIELD_TYPE: () => FORM_FIELD_TYPE,
|
8153
8370
|
FORM_FIELD_VARIANT: () => FORM_FIELD_VARIANT,
|
8154
8371
|
FORM_FIELD_VARIANT_FOR_CHECKER: () => FORM_FIELD_VARIANT_FOR_CHECKER,
|
8372
|
+
FORM_IDENTIFY_FIELD_TYPE: () => FORM_IDENTIFY_FIELD_TYPE,
|
8155
8373
|
FORM_INPUT_TYPE: () => FORM_INPUT_TYPE,
|
8374
|
+
FORM_VALIDATION_DEFAULT_ERROR_MESSAGES: () => FORM_VALIDATION_DEFAULT_ERROR_MESSAGES,
|
8375
|
+
FORM_VALIDATION_REGEX: () => FORM_VALIDATION_REGEX,
|
8376
|
+
FORM_VALIDATION_TYPE: () => FORM_VALIDATION_TYPE,
|
8156
8377
|
FlexAvatar: () => Avatar,
|
8157
8378
|
FlexButton: () => Button,
|
8158
8379
|
FlexButtonOutlined: () => ButtonOutlined,
|
@@ -8165,8 +8386,10 @@ __export(index_svelte5_exports, {
|
|
8165
8386
|
FlexDirections: () => FlexDirections,
|
8166
8387
|
FlexEmbed: () => Embed,
|
8167
8388
|
FlexForm: () => Form,
|
8389
|
+
FlexFormBoolean: () => FormBoolean,
|
8168
8390
|
FlexFormCheckboxes: () => FormCheckboxes,
|
8169
8391
|
FlexFormField: () => FormField,
|
8392
|
+
FlexFormIdentifyField: () => FormIdentifyField,
|
8170
8393
|
FlexFormInput: () => FormInput,
|
8171
8394
|
FlexFormRadios: () => FormRadios,
|
8172
8395
|
FlexFormSelect: () => FormSelect,
|
@@ -8257,6 +8480,7 @@ __export(index_svelte5_exports, {
|
|
8257
8480
|
flexComponentSchemes: () => flexComponentSchemes,
|
8258
8481
|
formData: () => formData,
|
8259
8482
|
formStore: () => formStore,
|
8483
|
+
formSubmittedIdentifyValues: () => formSubmittedIdentifyValues,
|
8260
8484
|
formSubmittedValues: () => formSubmittedValues,
|
8261
8485
|
getActionRoot: () => getActionRoot,
|
8262
8486
|
getAnsweredQuestion: () => getAnsweredQuestion,
|
@@ -8348,48 +8572,44 @@ function ThumbnailPreview($$anchor, $$props) {
|
|
8348
8572
|
$.init();
|
8349
8573
|
var fragment = $.comment();
|
8350
8574
|
var node = $.first_child(fragment);
|
8351
|
-
{
|
8352
|
-
var
|
8353
|
-
|
8354
|
-
|
8355
|
-
|
8356
|
-
|
8357
|
-
|
8358
|
-
get
|
8359
|
-
|
8360
|
-
|
8361
|
-
|
8362
|
-
|
8363
|
-
|
8364
|
-
|
8365
|
-
|
8366
|
-
|
8367
|
-
|
8368
|
-
|
8369
|
-
|
8370
|
-
|
8371
|
-
|
8372
|
-
|
8373
|
-
|
8374
|
-
|
8375
|
-
|
8376
|
-
|
8377
|
-
|
8378
|
-
|
8379
|
-
|
8380
|
-
|
8381
|
-
|
8382
|
-
$.append($$anchor$3, fragment_2);
|
8383
|
-
},
|
8384
|
-
$$slots: { default: true }
|
8385
|
-
});
|
8575
|
+
var consequent_1 = ($$anchor$1) => {
|
8576
|
+
var fragment_1 = $.comment();
|
8577
|
+
var node_1 = $.first_child(fragment_1);
|
8578
|
+
const expression = $.derived_safe_equal(() => "previewProps" in option() && typeof option().previewProps !== "undefined" ? option().previewProps : option().props);
|
8579
|
+
$.component(node_1, () => $.get(component), ($$anchor$2, $$component) => {
|
8580
|
+
$$component($$anchor$2, {
|
8581
|
+
get props() {
|
8582
|
+
return $.get(expression);
|
8583
|
+
},
|
8584
|
+
children: ($$anchor$3, $$slotProps) => {
|
8585
|
+
var fragment_2 = $.comment();
|
8586
|
+
var node_2 = $.first_child(fragment_2);
|
8587
|
+
var consequent = ($$anchor$4) => {
|
8588
|
+
var fragment_3 = $.comment();
|
8589
|
+
var node_3 = $.first_child(fragment_3);
|
8590
|
+
$.each(node_3, 1, () => option().children, $.index, ($$anchor$5, child) => {
|
8591
|
+
var fragment_4 = $.comment();
|
8592
|
+
var node_4 = $.first_child(fragment_4);
|
8593
|
+
ThumbnailPreview(node_4, { get option() {
|
8594
|
+
return $.get(child);
|
8595
|
+
} });
|
8596
|
+
$.append($$anchor$5, fragment_4);
|
8597
|
+
});
|
8598
|
+
$.append($$anchor$4, fragment_3);
|
8599
|
+
};
|
8600
|
+
$.if(node_2, ($$render) => {
|
8601
|
+
if (option().children) $$render(consequent);
|
8602
|
+
});
|
8603
|
+
$.append($$anchor$3, fragment_2);
|
8604
|
+
},
|
8605
|
+
$$slots: { default: true }
|
8386
8606
|
});
|
8387
|
-
$.append($$anchor$1, fragment_1);
|
8388
|
-
};
|
8389
|
-
$.if(node, ($$render) => {
|
8390
|
-
if ($.get(component)) $$render(consequent_1);
|
8391
8607
|
});
|
8392
|
-
|
8608
|
+
$.append($$anchor$1, fragment_1);
|
8609
|
+
};
|
8610
|
+
$.if(node, ($$render) => {
|
8611
|
+
if ($.get(component)) $$render(consequent_1);
|
8612
|
+
});
|
8393
8613
|
$.append($$anchor, fragment);
|
8394
8614
|
$.pop();
|
8395
8615
|
}
|