@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
@@ -2476,7 +2476,7 @@ function formDataToEventValues$1(campaignId, formData$1) {
|
|
2476
2476
|
...answersMap
|
2477
2477
|
} };
|
2478
2478
|
}
|
2479
|
-
function formDataToIdentifyEventValues(formData$1) {
|
2479
|
+
function formDataToIdentifyEventValues$1(formData$1) {
|
2480
2480
|
return Object.fromEntries(Object.entries(formData$1).map(([name, dataItem]) => {
|
2481
2481
|
const value = dataItem.value;
|
2482
2482
|
return [name, value];
|
@@ -2490,7 +2490,7 @@ function submit() {
|
|
2490
2490
|
const formData$1 = get(formData);
|
2491
2491
|
const identifyFormData$1 = get(identifyFormData);
|
2492
2492
|
const values = formDataToEventValues$1(campaignId, formData$1);
|
2493
|
-
const identifyValues = formDataToIdentifyEventValues(identifyFormData$1);
|
2493
|
+
const identifyValues = formDataToIdentifyEventValues$1(identifyFormData$1);
|
2494
2494
|
if (Object.keys(identifyValues).length > 0) identifyValues["user_id"] = getVariables()?.[USER_ID_VARIABLE_NAME];
|
2495
2495
|
return {
|
2496
2496
|
values,
|
@@ -2880,6 +2880,33 @@ const LAYOUT_COMPONENT_NAMES = [
|
|
2880
2880
|
|
2881
2881
|
//#endregion
|
2882
2882
|
//#region src/components-flex/form.ts
|
2883
|
+
const FORM_VALIDATION_TYPE = {
|
2884
|
+
required: "必須",
|
2885
|
+
email: "メールアドレス",
|
2886
|
+
tel: "電話番号",
|
2887
|
+
url: "URL",
|
2888
|
+
minLength: "最小文字数",
|
2889
|
+
maxLength: "最大文字数",
|
2890
|
+
minCount: "最小個数",
|
2891
|
+
maxCount: "最大個数",
|
2892
|
+
pattern: "正規表現"
|
2893
|
+
};
|
2894
|
+
const FORM_VALIDATION_DEFAULT_ERROR_MESSAGES = {
|
2895
|
+
required: `入力してください`,
|
2896
|
+
minLength: `{minLength}文字以上で入力してください`,
|
2897
|
+
maxLength: `{maxLength}文字以下で入力してください`,
|
2898
|
+
minCount: `{minCount}個以上選択してください`,
|
2899
|
+
maxCount: `{maxCount}個以下で選択してください`,
|
2900
|
+
pattern: `正しい形式で入力してください`,
|
2901
|
+
email: `正しいメールアドレスを入力してください`,
|
2902
|
+
tel: `正しい電話番号を入力してください`,
|
2903
|
+
url: `正しいURLを入力してください`
|
2904
|
+
};
|
2905
|
+
const FORM_VALIDATION_REGEX = {
|
2906
|
+
email: "^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9-]*\\.?[a-zA-Z0-9-]+\\.[a-zA-Z]{2,}$",
|
2907
|
+
tel: "^0\\d{1,4}[-]?\\d{1,4}[-]?\\d{4}$",
|
2908
|
+
url: "^http(s)?://.+$"
|
2909
|
+
};
|
2883
2910
|
/**
|
2884
2911
|
* @internal
|
2885
2912
|
*/
|
@@ -2888,6 +2915,7 @@ const formStore = writable({
|
|
2888
2915
|
states: {}
|
2889
2916
|
});
|
2890
2917
|
const formSubmittedValues = writable({});
|
2918
|
+
const formSubmittedIdentifyValues = writable({});
|
2891
2919
|
/**
|
2892
2920
|
* @public
|
2893
2921
|
*/
|
@@ -2906,7 +2934,6 @@ const getFormFieldState = (name) => {
|
|
2906
2934
|
* @public
|
2907
2935
|
*/
|
2908
2936
|
const getFormFieldValue = (name) => {
|
2909
|
-
console.log("getFormFieldValue", getFormFieldState(name)?.value ?? void 0);
|
2910
2937
|
return getFormFieldState(name)?.value ?? void 0;
|
2911
2938
|
};
|
2912
2939
|
/**
|
@@ -2994,14 +3021,18 @@ const registerFormField = (schemas) => {
|
|
2994
3021
|
defaultValue: schema.defaultValue,
|
2995
3022
|
type: schema.type,
|
2996
3023
|
required: schema.required,
|
2997
|
-
statePath: getState()
|
3024
|
+
statePath: getState(),
|
3025
|
+
isIdentify: schema.isIdentify,
|
3026
|
+
validations: schema.validations
|
2998
3027
|
};
|
2999
3028
|
else resultSchemes.push({
|
3000
3029
|
name: schema.name,
|
3001
3030
|
defaultValue: schema.defaultValue,
|
3002
3031
|
type: schema.type,
|
3003
3032
|
required: schema.required,
|
3004
|
-
statePath: getState()
|
3033
|
+
statePath: getState(),
|
3034
|
+
isIdentify: schema.isIdentify,
|
3035
|
+
validations: schema.validations
|
3005
3036
|
});
|
3006
3037
|
});
|
3007
3038
|
return resultSchemes;
|
@@ -3009,21 +3040,23 @@ const registerFormField = (schemas) => {
|
|
3009
3040
|
states: (() => {
|
3010
3041
|
const states$1 = { ...updater.states };
|
3011
3042
|
const submittedValues = get(formSubmittedValues);
|
3012
|
-
|
3013
|
-
|
3014
|
-
|
3015
|
-
|
3016
|
-
|
3017
|
-
|
3018
|
-
|
3019
|
-
|
3020
|
-
|
3021
|
-
|
3022
|
-
}
|
3023
|
-
|
3024
|
-
|
3025
|
-
|
3026
|
-
|
3043
|
+
const submittedIdentifyValues = get(formSubmittedIdentifyValues);
|
3044
|
+
schemas.forEach((schema) => {
|
3045
|
+
if (!(schema.name in states$1) && schema.name) states$1[schema.name] = {
|
3046
|
+
isDirty: false,
|
3047
|
+
isValid: false,
|
3048
|
+
isTouched: false,
|
3049
|
+
type: schema.type,
|
3050
|
+
value: (() => {
|
3051
|
+
if (schema.isIdentify) {
|
3052
|
+
if (submittedIdentifyValues[schema.name]) return submittedIdentifyValues[schema.name].value;
|
3053
|
+
} else if (submittedValues[schema.name]) return submittedValues[schema.name].value;
|
3054
|
+
if (schema.type === "checkboxes") return Array.isArray(schema.defaultValue) ? schema.defaultValue : [];
|
3055
|
+
else if (schema.type === "boolean") return schema.defaultValue ?? void 0;
|
3056
|
+
else return typeof schema.defaultValue === "string" ? schema.defaultValue : "";
|
3057
|
+
})(),
|
3058
|
+
errorMessage: null
|
3059
|
+
};
|
3027
3060
|
});
|
3028
3061
|
return states$1;
|
3029
3062
|
})()
|
@@ -3048,31 +3081,81 @@ const unregisterFormField = (fieldNames) => {
|
|
3048
3081
|
}));
|
3049
3082
|
};
|
3050
3083
|
const validateFormField = (schema, value) => {
|
3051
|
-
const store = get(formStore);
|
3052
3084
|
if (schema.required) {
|
3053
3085
|
if (schema.type === "checkboxes") {
|
3054
|
-
if (value.length === 0) return {
|
3086
|
+
if (Array.isArray(value) && value.length === 0) return {
|
3055
3087
|
isValid: false,
|
3056
|
-
error: "
|
3088
|
+
error: FORM_VALIDATION_DEFAULT_ERROR_MESSAGES["required"]
|
3057
3089
|
};
|
3058
3090
|
} else if (typeof value !== "string" || value.trim() === "") return {
|
3059
3091
|
isValid: false,
|
3060
|
-
error: "
|
3092
|
+
error: FORM_VALIDATION_DEFAULT_ERROR_MESSAGES["required"]
|
3061
3093
|
};
|
3062
3094
|
}
|
3095
|
+
if (schema.validations && schema.validations.length > 0) for (const validation of schema.validations) {
|
3096
|
+
const { type, number, errorMessage, regexp } = validation;
|
3097
|
+
if (type === "minLength" && !!number) {
|
3098
|
+
if (typeof value === "string" && value.length < number) return {
|
3099
|
+
isValid: false,
|
3100
|
+
error: (errorMessage || FORM_VALIDATION_DEFAULT_ERROR_MESSAGES[type]).replace("{minLength}", number.toString())
|
3101
|
+
};
|
3102
|
+
}
|
3103
|
+
if (type === "maxLength" && !!number) {
|
3104
|
+
if (typeof value === "string" && value.length > number) return {
|
3105
|
+
isValid: false,
|
3106
|
+
error: (errorMessage || FORM_VALIDATION_DEFAULT_ERROR_MESSAGES[type]).replace("{maxLength}", number.toString())
|
3107
|
+
};
|
3108
|
+
}
|
3109
|
+
if (type === "minCount" && !!number) {
|
3110
|
+
if (Array.isArray(value) && value.length < number) return {
|
3111
|
+
isValid: false,
|
3112
|
+
error: (errorMessage || FORM_VALIDATION_DEFAULT_ERROR_MESSAGES[type]).replace("{minCount}", number.toString())
|
3113
|
+
};
|
3114
|
+
}
|
3115
|
+
if (type === "maxCount" && !!number) {
|
3116
|
+
if (Array.isArray(value) && value.length > number) return {
|
3117
|
+
isValid: false,
|
3118
|
+
error: (errorMessage || FORM_VALIDATION_DEFAULT_ERROR_MESSAGES[type]).replace("{maxCount}", number.toString())
|
3119
|
+
};
|
3120
|
+
}
|
3121
|
+
if (type === "pattern" && !!regexp) {
|
3122
|
+
if (typeof value === "string" && new RegExp(regexp).test(value) === false) return {
|
3123
|
+
isValid: false,
|
3124
|
+
error: errorMessage || FORM_VALIDATION_DEFAULT_ERROR_MESSAGES[type]
|
3125
|
+
};
|
3126
|
+
}
|
3127
|
+
if (type === "email") {
|
3128
|
+
if (typeof value === "string" && new RegExp(regexp || FORM_VALIDATION_REGEX.email).test(value) === false) return {
|
3129
|
+
isValid: false,
|
3130
|
+
error: errorMessage || FORM_VALIDATION_DEFAULT_ERROR_MESSAGES[type]
|
3131
|
+
};
|
3132
|
+
}
|
3133
|
+
if (type === "tel") {
|
3134
|
+
if (typeof value === "string" && new RegExp(regexp || FORM_VALIDATION_REGEX.tel).test(value) === false) return {
|
3135
|
+
isValid: false,
|
3136
|
+
error: errorMessage || FORM_VALIDATION_DEFAULT_ERROR_MESSAGES[type]
|
3137
|
+
};
|
3138
|
+
}
|
3139
|
+
if (type === "url") {
|
3140
|
+
if (typeof value === "string" && new RegExp(regexp || FORM_VALIDATION_REGEX.url).test(value) === false) return {
|
3141
|
+
isValid: false,
|
3142
|
+
error: errorMessage || FORM_VALIDATION_DEFAULT_ERROR_MESSAGES[type]
|
3143
|
+
};
|
3144
|
+
}
|
3145
|
+
}
|
3063
3146
|
return {
|
3064
3147
|
isValid: true,
|
3065
3148
|
error: void 0
|
3066
3149
|
};
|
3067
3150
|
};
|
3068
3151
|
function createAnswerValue(value) {
|
3069
|
-
if (
|
3070
|
-
else
|
3152
|
+
if (value.type === "input" || value.type === "textarea") return { free_answer: String(value.value) };
|
3153
|
+
else return { choices: Array.isArray(value) ? value : [value] };
|
3071
3154
|
}
|
3072
|
-
function formDataToEventValues(campaignId,
|
3155
|
+
function formDataToEventValues(campaignId, values) {
|
3073
3156
|
const questions = [];
|
3074
3157
|
const answersMap = {};
|
3075
|
-
Object.entries(
|
3158
|
+
Object.entries(values).forEach(([name, value]) => {
|
3076
3159
|
questions.push(name);
|
3077
3160
|
const answerKey = `question_${name}`;
|
3078
3161
|
answersMap[answerKey] = createAnswerValue(value);
|
@@ -3082,6 +3165,9 @@ function formDataToEventValues(campaignId, formData$1) {
|
|
3082
3165
|
...answersMap
|
3083
3166
|
} };
|
3084
3167
|
}
|
3168
|
+
function formDataToIdentifyEventValues(values) {
|
3169
|
+
return Object.fromEntries(Object.entries(values).map(([name, { value }]) => [name, value]));
|
3170
|
+
}
|
3085
3171
|
/**
|
3086
3172
|
* @public
|
3087
3173
|
*/
|
@@ -3109,13 +3195,30 @@ function onSubmitForm(fn) {
|
|
3109
3195
|
})()
|
3110
3196
|
}));
|
3111
3197
|
if (hasInvalid) return;
|
3112
|
-
const
|
3198
|
+
const newValues = {};
|
3199
|
+
const newIdentifyValues = {};
|
3200
|
+
currentStateSchemas.forEach((schema) => {
|
3201
|
+
if (schema.isIdentify) newIdentifyValues[schema.name] = {
|
3202
|
+
value: formData$1.states[schema.name]?.value,
|
3203
|
+
type: schema.type
|
3204
|
+
};
|
3205
|
+
else newValues[schema.name] = {
|
3206
|
+
value: formData$1.states[schema.name]?.value,
|
3207
|
+
type: schema.type
|
3208
|
+
};
|
3209
|
+
});
|
3113
3210
|
formSubmittedValues.update((updater) => ({
|
3114
3211
|
...updater,
|
3115
|
-
...
|
3212
|
+
...newValues
|
3213
|
+
}));
|
3214
|
+
if (Object.keys(newIdentifyValues).length > 0) formSubmittedIdentifyValues.update((updater) => ({
|
3215
|
+
...updater,
|
3216
|
+
...newIdentifyValues
|
3116
3217
|
}));
|
3117
3218
|
fn({
|
3118
|
-
|
3219
|
+
currentStateIdentifyValues: formDataToIdentifyEventValues(newIdentifyValues),
|
3220
|
+
allIdentifyValues: formDataToIdentifyEventValues(get(formSubmittedIdentifyValues)),
|
3221
|
+
currentStateValues: formDataToEventValues(campaignId, newValues),
|
3119
3222
|
allValues: formDataToEventValues(campaignId, get(formSubmittedValues))
|
3120
3223
|
});
|
3121
3224
|
}
|
@@ -3141,16 +3244,14 @@ function Header($$anchor, $$props) {
|
|
3141
3244
|
$.head(($$anchor$1) => {
|
3142
3245
|
var fragment = $.comment();
|
3143
3246
|
var node = $.first_child(fragment);
|
3144
|
-
{
|
3145
|
-
var
|
3146
|
-
|
3147
|
-
|
3148
|
-
|
3149
|
-
|
3150
|
-
|
3151
|
-
|
3152
|
-
});
|
3153
|
-
}
|
3247
|
+
var consequent = ($$anchor$2) => {
|
3248
|
+
var link = root_2$9();
|
3249
|
+
$.template_effect(() => $.set_attribute(link, "href", $.get(googleFontUrl)));
|
3250
|
+
$.append($$anchor$2, link);
|
3251
|
+
};
|
3252
|
+
$.if(node, ($$render) => {
|
3253
|
+
if ($.get(googleFontUrl)) $$render(consequent);
|
3254
|
+
});
|
3154
3255
|
$.append($$anchor$1, fragment);
|
3155
3256
|
});
|
3156
3257
|
$.pop();
|
@@ -3222,13 +3323,13 @@ function State($$anchor, $$props) {
|
|
3222
3323
|
//#region src/components-flex/state/StateItem.svelte
|
3223
3324
|
const STATE_ITEM_CONTEXT_KEY = Symbol();
|
3224
3325
|
var root_1$15 = $.template(`<div class="state-item svelte-2qb6dm"></div> <!>`, 1);
|
3225
|
-
const $$css$
|
3326
|
+
const $$css$33 = {
|
3226
3327
|
hash: "svelte-2qb6dm",
|
3227
3328
|
code: ".state-item.svelte-2qb6dm {position:absolute;display:none;}"
|
3228
3329
|
};
|
3229
3330
|
function StateItem($$anchor, $$props) {
|
3230
3331
|
$.push($$props, false);
|
3231
|
-
$.append_styles($$anchor, $$css$
|
3332
|
+
$.append_styles($$anchor, $$css$33);
|
3232
3333
|
const [$$stores, $$cleanup] = $.setup_stores();
|
3233
3334
|
const $state = () => $.store_get(state, "$state", $$stores);
|
3234
3335
|
let path = $.prop($$props, "path", 8);
|
@@ -3240,19 +3341,17 @@ function StateItem($$anchor, $$props) {
|
|
3240
3341
|
$.init();
|
3241
3342
|
var fragment = $.comment();
|
3242
3343
|
var node = $.first_child(fragment);
|
3243
|
-
{
|
3244
|
-
var
|
3245
|
-
|
3246
|
-
|
3247
|
-
|
3248
|
-
|
3249
|
-
|
3250
|
-
|
3251
|
-
|
3252
|
-
|
3253
|
-
|
3254
|
-
});
|
3255
|
-
}
|
3344
|
+
var consequent = ($$anchor$1) => {
|
3345
|
+
var fragment_1 = root_1$15();
|
3346
|
+
var div = $.first_child(fragment_1);
|
3347
|
+
var node_1 = $.sibling(div, 2);
|
3348
|
+
$.slot(node_1, $$props, "default", {}, null);
|
3349
|
+
$.template_effect(() => $.set_attribute(div, "data-state-path", path()));
|
3350
|
+
$.append($$anchor$1, fragment_1);
|
3351
|
+
};
|
3352
|
+
$.if(node, ($$render) => {
|
3353
|
+
if ($state() === path()) $$render(consequent);
|
3354
|
+
});
|
3256
3355
|
$.append($$anchor, fragment);
|
3257
3356
|
$.pop();
|
3258
3357
|
$$cleanup();
|
@@ -3577,10 +3676,18 @@ const linkTo = (to, targetBlank = true, decode = false) => () => {
|
|
3577
3676
|
});
|
3578
3677
|
await sleep(450);
|
3579
3678
|
}
|
3580
|
-
|
3581
|
-
|
3679
|
+
if (targetBlank) if (target === "native") {
|
3680
|
+
const win = window;
|
3681
|
+
const nativeMessageName = "open_url";
|
3682
|
+
const nativeMessageData = {
|
3683
|
+
url: decodedTo,
|
3684
|
+
target: "_blank"
|
3685
|
+
};
|
3686
|
+
win.NativeBridge?.onReceivedMessage(nativeMessageName, JSON.stringify(nativeMessageData));
|
3687
|
+
win.webkit?.messageHandlers[nativeMessageName]?.postMessage(nativeMessageData);
|
3688
|
+
} else window.open(decodedTo, "_blank");
|
3582
3689
|
Promise.race([_send(), sleep(650)]).then(() => {
|
3583
|
-
if (!
|
3690
|
+
if (!targetBlank) location.href = decodedTo;
|
3584
3691
|
});
|
3585
3692
|
};
|
3586
3693
|
/** @internal */
|
@@ -3607,18 +3714,24 @@ const submitForm = (to) => () => {
|
|
3607
3714
|
};
|
3608
3715
|
/** @internal */
|
3609
3716
|
const submitFormProgress = (to) => () => {
|
3610
|
-
onSubmitForm(({ currentStateValues }) => {
|
3717
|
+
onSubmitForm(({ currentStateValues, currentStateIdentifyValues }) => {
|
3611
3718
|
send_event("_answer_question_progress", {
|
3612
3719
|
...currentStateValues,
|
3613
3720
|
state: getState()
|
3614
3721
|
});
|
3722
|
+
if (Object.keys(currentStateIdentifyValues).length > 0) send_event("identify", currentStateIdentifyValues);
|
3723
|
+
console.log("currentStateValues", currentStateValues);
|
3724
|
+
console.log("currentStateIdentifyValues", currentStateIdentifyValues);
|
3615
3725
|
_moveTo(to);
|
3616
3726
|
});
|
3617
3727
|
};
|
3618
3728
|
/** @internal */
|
3619
3729
|
const submitFormFinal = (to) => () => {
|
3620
|
-
onSubmitForm(({ allValues }) => {
|
3730
|
+
onSubmitForm(({ allValues, allIdentifyValues }) => {
|
3621
3731
|
send_event("_answer_question", allValues);
|
3732
|
+
if (Object.keys(allIdentifyValues).length > 0) send_event("identify", allIdentifyValues);
|
3733
|
+
console.log("allValues", allValues);
|
3734
|
+
console.log("allIdentifyValues", allIdentifyValues);
|
3622
3735
|
_moveTo(to);
|
3623
3736
|
});
|
3624
3737
|
};
|
@@ -3781,32 +3894,30 @@ var useClickable_default = useClickable;
|
|
3781
3894
|
|
3782
3895
|
//#endregion
|
3783
3896
|
//#region src/hooks/useInjectCustomizeCss.ts
|
3784
|
-
const
|
3897
|
+
const DATA_ATTR_LAYER_ID_KEY = "data-customize-css-layer-id";
|
3898
|
+
const useInjectCustomizeCss = (props, layerId) => {
|
3785
3899
|
function injectCss() {
|
3786
|
-
const modalElements = Array.from(document.querySelectorAll(`.${KARTE_MODAL_ROOT}`));
|
3787
|
-
const style = document.createElement("style");
|
3788
3900
|
let headAppended = false;
|
3901
|
+
const roots = Array.from(document.querySelectorAll(`.${KARTE_ACTION_ROOT}[data-${KARTE_ACTION_RID}='${actionId}']`));
|
3902
|
+
const style = document.createElement("style");
|
3903
|
+
style.setAttribute(DATA_ATTR_LAYER_ID_KEY, layerId);
|
3789
3904
|
style.textContent = props.customizeCss;
|
3790
|
-
|
3791
|
-
if (
|
3792
|
-
|
3905
|
+
roots.forEach((root$49) => {
|
3906
|
+
if (root$49 && root$49.shadowRoot) {
|
3907
|
+
const existingStyles = Array.from(root$49.shadowRoot.querySelectorAll(`style[${DATA_ATTR_LAYER_ID_KEY}='${layerId}']`));
|
3908
|
+
existingStyles.forEach((style$1) => {
|
3909
|
+
style$1.parentNode?.removeChild(style$1);
|
3910
|
+
});
|
3911
|
+
root$49.shadowRoot.appendChild(style);
|
3912
|
+
} else if (!headAppended) {
|
3793
3913
|
document.head.appendChild(style);
|
3794
3914
|
headAppended = true;
|
3795
3915
|
}
|
3796
3916
|
});
|
3797
|
-
return () => {
|
3798
|
-
modalElements.forEach((modalElement) => {
|
3799
|
-
if (modalElement?.shadowRoot) modalElement.shadowRoot.removeChild(style);
|
3800
|
-
else document.head.removeChild(style);
|
3801
|
-
});
|
3802
|
-
};
|
3803
3917
|
}
|
3804
3918
|
onMount$1(() => {
|
3805
3919
|
if (!props.isCustomizeCss) return;
|
3806
|
-
|
3807
|
-
return () => {
|
3808
|
-
removeCss();
|
3809
|
-
};
|
3920
|
+
injectCss();
|
3810
3921
|
});
|
3811
3922
|
};
|
3812
3923
|
|
@@ -3838,19 +3949,19 @@ const AVATAR_SIZE_STYLES = {
|
|
3838
3949
|
//#endregion
|
3839
3950
|
//#region src/components-flex/avatar/Avatar.svelte
|
3840
3951
|
var root_1$14 = $.template(`<img class="avatar-image svelte-1xhdr99">`);
|
3841
|
-
const $$css$
|
3952
|
+
const $$css$32 = {
|
3842
3953
|
hash: "svelte-1xhdr99",
|
3843
3954
|
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;}"
|
3844
3955
|
};
|
3845
3956
|
function Avatar($$anchor, $$props) {
|
3846
3957
|
$.push($$props, false);
|
3847
|
-
$.append_styles($$anchor, $$css$
|
3958
|
+
$.append_styles($$anchor, $$css$32);
|
3848
3959
|
const styleObj = $.mutable_state();
|
3849
3960
|
const style = $.mutable_state();
|
3850
3961
|
const imgStyle = $.mutable_state();
|
3851
3962
|
let props = $.prop($$props, "props", 24, () => ({}));
|
3852
3963
|
let layerId = $.prop($$props, "layerId", 8, "");
|
3853
|
-
useInjectCustomizeCss(props());
|
3964
|
+
useInjectCustomizeCss(props(), layerId());
|
3854
3965
|
const { attributes, element, handleClick } = useClickable_default(props());
|
3855
3966
|
const avatarSizeStyle = !isNaN(Number(props().size)) ? {
|
3856
3967
|
width: `${props().size}px`,
|
@@ -4407,18 +4518,18 @@ const ICON_VARIANTS = {
|
|
4407
4518
|
|
4408
4519
|
//#endregion
|
4409
4520
|
//#region src/components-flex/icon/Icon.svelte
|
4410
|
-
const $$css$
|
4521
|
+
const $$css$31 = {
|
4411
4522
|
hash: "svelte-1kl9m59",
|
4412
4523
|
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;}"
|
4413
4524
|
};
|
4414
4525
|
function Icon($$anchor, $$props) {
|
4415
4526
|
$.push($$props, false);
|
4416
|
-
$.append_styles($$anchor, $$css$
|
4527
|
+
$.append_styles($$anchor, $$css$31);
|
4417
4528
|
const style = $.mutable_state();
|
4418
4529
|
const IconComponent = $.mutable_state();
|
4419
4530
|
let props = $.prop($$props, "props", 24, () => ({}));
|
4420
4531
|
let layerId = $.prop($$props, "layerId", 8, "");
|
4421
|
-
useInjectCustomizeCss(props());
|
4532
|
+
useInjectCustomizeCss(props(), layerId());
|
4422
4533
|
const { attributes, element, handleClick } = useClickable_default(props());
|
4423
4534
|
const getSizeCss = () => {
|
4424
4535
|
return {
|
@@ -4635,18 +4746,18 @@ function darkenColor(color, percent) {
|
|
4635
4746
|
//#region src/components-flex/button/Button.svelte
|
4636
4747
|
var root_2$8 = $.template(`<div class="button-icon svelte-l0rauj"><!></div>`);
|
4637
4748
|
var root_1$13 = $.template(`<!> <span class="button-label"> </span>`, 1);
|
4638
|
-
const $$css$
|
4749
|
+
const $$css$30 = {
|
4639
4750
|
hash: "svelte-l0rauj",
|
4640
4751
|
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;}"
|
4641
4752
|
};
|
4642
4753
|
function Button($$anchor, $$props) {
|
4643
4754
|
$.push($$props, false);
|
4644
|
-
$.append_styles($$anchor, $$css$
|
4755
|
+
$.append_styles($$anchor, $$css$30);
|
4645
4756
|
const variables$1 = $.mutable_state();
|
4646
4757
|
const style = $.mutable_state();
|
4647
4758
|
let props = $.prop($$props, "props", 24, () => ({}));
|
4648
4759
|
let layerId = $.prop($$props, "layerId", 8, "");
|
4649
|
-
useInjectCustomizeCss(props());
|
4760
|
+
useInjectCustomizeCss(props(), layerId());
|
4650
4761
|
const { attributes, element, handleClick } = useClickable_default(props());
|
4651
4762
|
const { brandKit } = useBrandKit();
|
4652
4763
|
const buttonThemeStyles = getButtonThemeStyles(brandKit);
|
@@ -4726,26 +4837,24 @@ function Button($$anchor, $$props) {
|
|
4726
4837
|
$.event("click", $$element, handleClick);
|
4727
4838
|
var fragment_1 = root_1$13();
|
4728
4839
|
var node_1 = $.first_child(fragment_1);
|
4729
|
-
{
|
4730
|
-
var
|
4731
|
-
|
4732
|
-
|
4733
|
-
|
4734
|
-
|
4735
|
-
|
4736
|
-
|
4737
|
-
|
4738
|
-
|
4739
|
-
|
4740
|
-
|
4741
|
-
|
4742
|
-
|
4743
|
-
|
4744
|
-
|
4745
|
-
|
4746
|
-
|
4747
|
-
});
|
4748
|
-
}
|
4840
|
+
var consequent = ($$anchor$2) => {
|
4841
|
+
var div = root_2$8();
|
4842
|
+
var node_2 = $.child(div);
|
4843
|
+
const expression = $.derived_safe_equal(() => ({
|
4844
|
+
variant: props().iconVariant,
|
4845
|
+
color: props().iconColor ?? props().color ?? buttonThemeStyle.color,
|
4846
|
+
width: "1em",
|
4847
|
+
height: "1em"
|
4848
|
+
}));
|
4849
|
+
Icon(node_2, { get props() {
|
4850
|
+
return $.get(expression);
|
4851
|
+
} });
|
4852
|
+
$.reset(div);
|
4853
|
+
$.append($$anchor$2, div);
|
4854
|
+
};
|
4855
|
+
$.if(node_1, ($$render) => {
|
4856
|
+
if (props().isIcon && props().iconVariant) $$render(consequent);
|
4857
|
+
});
|
4749
4858
|
var span = $.sibling(node_1, 2);
|
4750
4859
|
var text = $.child(span, true);
|
4751
4860
|
$.reset(span);
|
@@ -4853,18 +4962,18 @@ const BUTTON_OUTLINED_WRAP_STYLES = {
|
|
4853
4962
|
//#region src/components-flex/button-outlined/ButtonOutlined.svelte
|
4854
4963
|
var root_2$7 = $.template(`<div class="button-outlined-icon svelte-z8gomx"><!></div>`);
|
4855
4964
|
var root_1$12 = $.template(`<!> <span class="button-outlined-label svelte-z8gomx"> </span>`, 1);
|
4856
|
-
const $$css$
|
4965
|
+
const $$css$29 = {
|
4857
4966
|
hash: "svelte-z8gomx",
|
4858
4967
|
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;}"
|
4859
4968
|
};
|
4860
4969
|
function ButtonOutlined($$anchor, $$props) {
|
4861
4970
|
$.push($$props, false);
|
4862
|
-
$.append_styles($$anchor, $$css$
|
4971
|
+
$.append_styles($$anchor, $$css$29);
|
4863
4972
|
const variables$1 = $.mutable_state();
|
4864
4973
|
const style = $.mutable_state();
|
4865
4974
|
let props = $.prop($$props, "props", 24, () => ({}));
|
4866
4975
|
let layerId = $.prop($$props, "layerId", 8, "");
|
4867
|
-
useInjectCustomizeCss(props());
|
4976
|
+
useInjectCustomizeCss(props(), layerId());
|
4868
4977
|
const { brandKit } = useBrandKit();
|
4869
4978
|
const { attributes, element, handleClick } = useClickable_default(props());
|
4870
4979
|
const buttonThemeStyles = getButtonOutlinedThemeStyles(brandKit);
|
@@ -4910,26 +5019,24 @@ function ButtonOutlined($$anchor, $$props) {
|
|
4910
5019
|
$.event("click", $$element, handleClick);
|
4911
5020
|
var fragment_1 = root_1$12();
|
4912
5021
|
var node_1 = $.first_child(fragment_1);
|
4913
|
-
{
|
4914
|
-
var
|
4915
|
-
|
4916
|
-
|
4917
|
-
|
4918
|
-
|
4919
|
-
|
4920
|
-
|
4921
|
-
|
4922
|
-
|
4923
|
-
|
4924
|
-
|
4925
|
-
|
4926
|
-
|
4927
|
-
|
4928
|
-
|
4929
|
-
|
4930
|
-
|
4931
|
-
});
|
4932
|
-
}
|
5022
|
+
var consequent = ($$anchor$2) => {
|
5023
|
+
var div = root_2$7();
|
5024
|
+
var node_2 = $.child(div);
|
5025
|
+
const expression = $.derived_safe_equal(() => ({
|
5026
|
+
variant: props().iconVariant,
|
5027
|
+
color: props().iconColor ?? props().color ?? buttonThemeStyle.color,
|
5028
|
+
width: "1em",
|
5029
|
+
height: "1em"
|
5030
|
+
}));
|
5031
|
+
Icon(node_2, { get props() {
|
5032
|
+
return $.get(expression);
|
5033
|
+
} });
|
5034
|
+
$.reset(div);
|
5035
|
+
$.append($$anchor$2, div);
|
5036
|
+
};
|
5037
|
+
$.if(node_1, ($$render) => {
|
5038
|
+
if (props().isIcon && props().iconVariant) $$render(consequent);
|
5039
|
+
});
|
4933
5040
|
var span = $.sibling(node_1, 2);
|
4934
5041
|
var text = $.child(span, true);
|
4935
5042
|
$.reset(span);
|
@@ -5002,18 +5109,18 @@ const getButtonTextThemeStyles = getPropStyles(callback$2);
|
|
5002
5109
|
//#region src/components-flex/button-text/ButtonText.svelte
|
5003
5110
|
var root_2$6 = $.template(`<div class="button-text-icon svelte-l90o4j"><!></div>`);
|
5004
5111
|
var root_1$11 = $.template(`<!> <span class="button-text-label svelte-l90o4j"> </span>`, 1);
|
5005
|
-
const $$css$
|
5112
|
+
const $$css$28 = {
|
5006
5113
|
hash: "svelte-l90o4j",
|
5007
5114
|
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;}"
|
5008
5115
|
};
|
5009
5116
|
function ButtonText($$anchor, $$props) {
|
5010
5117
|
$.push($$props, false);
|
5011
|
-
$.append_styles($$anchor, $$css$
|
5118
|
+
$.append_styles($$anchor, $$css$28);
|
5012
5119
|
const variables$1 = $.mutable_state();
|
5013
5120
|
const style = $.mutable_state();
|
5014
5121
|
let props = $.prop($$props, "props", 24, () => ({}));
|
5015
5122
|
let layerId = $.prop($$props, "layerId", 8, "");
|
5016
|
-
useInjectCustomizeCss(props());
|
5123
|
+
useInjectCustomizeCss(props(), layerId());
|
5017
5124
|
const { brandKit } = useBrandKit();
|
5018
5125
|
const { attributes, element, handleClick } = useClickable_default(props());
|
5019
5126
|
const themeStyles = getButtonTextThemeStyles(brandKit);
|
@@ -5053,26 +5160,24 @@ function ButtonText($$anchor, $$props) {
|
|
5053
5160
|
$.event("click", $$element, handleClick);
|
5054
5161
|
var fragment_1 = root_1$11();
|
5055
5162
|
var node_1 = $.first_child(fragment_1);
|
5056
|
-
{
|
5057
|
-
var
|
5058
|
-
|
5059
|
-
|
5060
|
-
|
5061
|
-
|
5062
|
-
|
5063
|
-
|
5064
|
-
|
5065
|
-
|
5066
|
-
|
5067
|
-
|
5068
|
-
|
5069
|
-
|
5070
|
-
|
5071
|
-
|
5072
|
-
|
5073
|
-
|
5074
|
-
});
|
5075
|
-
}
|
5163
|
+
var consequent = ($$anchor$2) => {
|
5164
|
+
var div = root_2$6();
|
5165
|
+
var node_2 = $.child(div);
|
5166
|
+
const expression = $.derived_safe_equal(() => ({
|
5167
|
+
variant: props().iconVariant,
|
5168
|
+
color: props().color ?? buttonThemeStyle.color,
|
5169
|
+
width: "1em",
|
5170
|
+
height: "1em"
|
5171
|
+
}));
|
5172
|
+
Icon(node_2, { get props() {
|
5173
|
+
return $.get(expression);
|
5174
|
+
} });
|
5175
|
+
$.reset(div);
|
5176
|
+
$.append($$anchor$2, div);
|
5177
|
+
};
|
5178
|
+
$.if(node_1, ($$render) => {
|
5179
|
+
if (props().isIcon && props().iconVariant) $$render(consequent);
|
5180
|
+
});
|
5076
5181
|
var span = $.sibling(node_1, 2);
|
5077
5182
|
var text = $.child(span, true);
|
5078
5183
|
$.reset(span);
|
@@ -5119,13 +5224,13 @@ const getTextThemeStyles = getPropStyles(callback$1);
|
|
5119
5224
|
//#region src/components-flex/close-button/CloseButton.svelte
|
5120
5225
|
var root_2$5 = $.template(`<span></span>`);
|
5121
5226
|
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);
|
5122
|
-
const $$css$
|
5227
|
+
const $$css$27 = {
|
5123
5228
|
hash: "svelte-18wmfyq",
|
5124
5229
|
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;}"
|
5125
5230
|
};
|
5126
5231
|
function CloseButton($$anchor, $$props) {
|
5127
5232
|
$.push($$props, false);
|
5128
|
-
$.append_styles($$anchor, $$css$
|
5233
|
+
$.append_styles($$anchor, $$css$27);
|
5129
5234
|
const hasLabel = $.mutable_state();
|
5130
5235
|
const styleObj = $.mutable_state();
|
5131
5236
|
const style = $.mutable_state();
|
@@ -5138,7 +5243,7 @@ function CloseButton($$anchor, $$props) {
|
|
5138
5243
|
let eventName = $.prop($$props, "eventName", 8, "");
|
5139
5244
|
let eventValue = $.prop($$props, "eventValue", 8, void 0);
|
5140
5245
|
const { brandKit } = useBrandKit();
|
5141
|
-
useInjectCustomizeCss(props());
|
5246
|
+
useInjectCustomizeCss(props(), layerId());
|
5142
5247
|
const { attributes, element, handleClick } = useClickable_default(props().onClick ? props() : {
|
5143
5248
|
onClick: {
|
5144
5249
|
operation: "closeApp",
|
@@ -5243,18 +5348,16 @@ function CloseButton($$anchor, $$props) {
|
|
5243
5348
|
$.set_attribute(svg, "fill", color);
|
5244
5349
|
$.reset(span);
|
5245
5350
|
var node_1 = $.sibling(span, 2);
|
5246
|
-
{
|
5247
|
-
var
|
5248
|
-
|
5249
|
-
|
5250
|
-
|
5251
|
-
|
5252
|
-
|
5253
|
-
|
5254
|
-
|
5255
|
-
|
5256
|
-
});
|
5257
|
-
}
|
5351
|
+
var consequent = ($$anchor$2) => {
|
5352
|
+
var span_1 = root_2$5();
|
5353
|
+
$.set_class(span_1, 1, `close-button-label ${isLeftLabelPlacement ? "close-button-order-one" : ""}`, "svelte-18wmfyq");
|
5354
|
+
span_1.textContent = label;
|
5355
|
+
$.template_effect(() => $.set_style(span_1, $.get(labelStyle)));
|
5356
|
+
$.append($$anchor$2, span_1);
|
5357
|
+
};
|
5358
|
+
$.if(node_1, ($$render) => {
|
5359
|
+
if ($.get(hasLabel)) $$render(consequent);
|
5360
|
+
});
|
5258
5361
|
$.template_effect(() => $.set_style(span, $.get(iconStyle)));
|
5259
5362
|
$.append($$anchor$1, fragment_1);
|
5260
5363
|
});
|
@@ -5339,19 +5442,19 @@ const IMAGE_ROUND_STYLES = {
|
|
5339
5442
|
//#endregion
|
5340
5443
|
//#region src/components-flex/image/Image.svelte
|
5341
5444
|
var root_1$9 = $.template(`<img class="image-img svelte-1olvu11">`);
|
5342
|
-
const $$css$
|
5445
|
+
const $$css$26 = {
|
5343
5446
|
hash: "svelte-1olvu11",
|
5344
5447
|
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;}"
|
5345
5448
|
};
|
5346
5449
|
function Image($$anchor, $$props) {
|
5347
5450
|
$.push($$props, false);
|
5348
|
-
$.append_styles($$anchor, $$css$
|
5451
|
+
$.append_styles($$anchor, $$css$26);
|
5349
5452
|
const styleObj = $.mutable_state();
|
5350
5453
|
const style = $.mutable_state();
|
5351
5454
|
const imgStyle = $.mutable_state();
|
5352
5455
|
let props = $.prop($$props, "props", 24, () => ({}));
|
5353
5456
|
let layerId = $.prop($$props, "layerId", 8, "");
|
5354
|
-
useInjectCustomizeCss(props());
|
5457
|
+
useInjectCustomizeCss(props(), layerId());
|
5355
5458
|
const { attributes, element, handleClick } = useClickable_default(props());
|
5356
5459
|
const aspectVariantStyles = ASPECT_VARIANT[props().aspectVariant]?.getProps();
|
5357
5460
|
const width = props().width ?? "100%";
|
@@ -5432,18 +5535,18 @@ const IMAGE_ASPECT_VARIANTS = {
|
|
5432
5535
|
|
5433
5536
|
//#endregion
|
5434
5537
|
//#region src/components-flex/layout/Layout.svelte
|
5435
|
-
const $$css$
|
5538
|
+
const $$css$25 = {
|
5436
5539
|
hash: "svelte-1o103hp",
|
5437
5540
|
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;}"
|
5438
5541
|
};
|
5439
5542
|
function Layout($$anchor, $$props) {
|
5440
5543
|
$.push($$props, false);
|
5441
|
-
$.append_styles($$anchor, $$css$
|
5544
|
+
$.append_styles($$anchor, $$css$25);
|
5442
5545
|
const style = $.mutable_state();
|
5443
5546
|
let props = $.prop($$props, "props", 24, () => ({}));
|
5444
5547
|
let layerId = $.prop($$props, "layerId", 8, "");
|
5445
5548
|
const { brandKit } = useBrandKit();
|
5446
|
-
useInjectCustomizeCss(props());
|
5549
|
+
useInjectCustomizeCss(props(), layerId());
|
5447
5550
|
const { attributes, element, handleClick } = useClickable_default(props());
|
5448
5551
|
$.legacy_pre_effect(() => ($.deep_read_state(props()), toCssBorder), () => {
|
5449
5552
|
$.set(style, objToStyle({
|
@@ -5518,13 +5621,13 @@ const LAYOUT_JUSTIFY = [
|
|
5518
5621
|
//#region src/components-flex/slider/Slider.svelte
|
5519
5622
|
var root_1$8 = $.template(`<button><i></i></button>`);
|
5520
5623
|
var root$16 = $.template(`<div><div class="slider-container svelte-wwv1o"><ul class="slider-list svelte-wwv1o"><!></ul></div> <div></div></div>`);
|
5521
|
-
const $$css$
|
5624
|
+
const $$css$24 = {
|
5522
5625
|
hash: "svelte-wwv1o",
|
5523
5626
|
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;}"
|
5524
5627
|
};
|
5525
5628
|
function Slider($$anchor, $$props) {
|
5526
5629
|
$.push($$props, false);
|
5527
|
-
$.append_styles($$anchor, $$css$
|
5630
|
+
$.append_styles($$anchor, $$css$24);
|
5528
5631
|
const indicators = $.mutable_state();
|
5529
5632
|
const itemWidthPercentage = $.mutable_state();
|
5530
5633
|
const baseContainerStyle = $.mutable_state();
|
@@ -5534,7 +5637,7 @@ function Slider($$anchor, $$props) {
|
|
5534
5637
|
let layerId = $.prop($$props, "layerId", 8);
|
5535
5638
|
let props = $.prop($$props, "props", 8);
|
5536
5639
|
let overrideStyle = $.prop($$props, "overrideStyle", 8);
|
5537
|
-
useInjectCustomizeCss(props());
|
5640
|
+
useInjectCustomizeCss(props(), layerId());
|
5538
5641
|
let containerElement = $.mutable_state();
|
5539
5642
|
let slotElement = $.mutable_state();
|
5540
5643
|
let currentIndex = $.mutable_state(0);
|
@@ -5733,16 +5836,16 @@ function Slider($$anchor, $$props) {
|
|
5733
5836
|
//#endregion
|
5734
5837
|
//#region src/components-flex/slider/SliderItem.svelte
|
5735
5838
|
var root$15 = $.template(`<li><!></li>`);
|
5736
|
-
const $$css$
|
5839
|
+
const $$css$23 = {
|
5737
5840
|
hash: "svelte-1m93md9",
|
5738
5841
|
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;}"
|
5739
5842
|
};
|
5740
5843
|
function SliderItem($$anchor, $$props) {
|
5741
5844
|
$.push($$props, false);
|
5742
|
-
$.append_styles($$anchor, $$css$
|
5845
|
+
$.append_styles($$anchor, $$css$23);
|
5743
5846
|
let layerId = $.prop($$props, "layerId", 8);
|
5744
5847
|
let props = $.prop($$props, "props", 8);
|
5745
|
-
useInjectCustomizeCss(props());
|
5848
|
+
useInjectCustomizeCss(props(), layerId());
|
5746
5849
|
const { attributes, element, handleClick } = useClickable_default(props());
|
5747
5850
|
$.init();
|
5748
5851
|
var li = root$15();
|
@@ -5812,18 +5915,18 @@ const TEXT_VARIANTS = { size: {
|
|
5812
5915
|
//#endregion
|
5813
5916
|
//#region src/components-flex/text/Text.svelte
|
5814
5917
|
var root$14 = $.template(`<p><!></p>`);
|
5815
|
-
const $$css$
|
5918
|
+
const $$css$22 = {
|
5816
5919
|
hash: "svelte-vifn7y",
|
5817
5920
|
code: ".text.svelte-vifn7y {margin:0;word-break:break-all;text-decoration:none;}"
|
5818
5921
|
};
|
5819
5922
|
function Text($$anchor, $$props) {
|
5820
5923
|
$.push($$props, false);
|
5821
|
-
$.append_styles($$anchor, $$css$
|
5924
|
+
$.append_styles($$anchor, $$css$22);
|
5822
5925
|
const escapedHTML = $.mutable_state();
|
5823
5926
|
const style = $.mutable_state();
|
5824
5927
|
let props = $.prop($$props, "props", 24, () => ({ content: "" }));
|
5825
5928
|
let layerId = $.prop($$props, "layerId", 8, "");
|
5826
|
-
useInjectCustomizeCss(props());
|
5929
|
+
useInjectCustomizeCss(props(), layerId());
|
5827
5930
|
const { brandKit } = useBrandKit();
|
5828
5931
|
const themeStyles = getTextThemeStyles(brandKit);
|
5829
5932
|
const fontFamilyStyles = props().fontFamilyVariant in FONT_FAMILY_VARIANT ? FONT_FAMILY_VARIANT[props().fontFamilyVariant].getProps(brandKit) : FONT_FAMILY_VARIANT.default.getProps(brandKit);
|
@@ -5910,17 +6013,17 @@ function Text($$anchor, $$props) {
|
|
5910
6013
|
//#endregion
|
5911
6014
|
//#region src/components-flex/rich-text/RichText.svelte
|
5912
6015
|
var root$13 = $.template(`<div><!></div>`);
|
5913
|
-
const $$css$
|
6016
|
+
const $$css$21 = {
|
5914
6017
|
hash: "svelte-dxr423",
|
5915
6018
|
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;}"
|
5916
6019
|
};
|
5917
6020
|
function RichText($$anchor, $$props) {
|
5918
6021
|
$.push($$props, false);
|
5919
|
-
$.append_styles($$anchor, $$css$
|
6022
|
+
$.append_styles($$anchor, $$css$21);
|
5920
6023
|
const style = $.mutable_state();
|
5921
6024
|
let props = $.prop($$props, "props", 24, () => ({ content: "" }));
|
5922
6025
|
let layerId = $.prop($$props, "layerId", 8, "");
|
5923
|
-
useInjectCustomizeCss(props());
|
6026
|
+
useInjectCustomizeCss(props(), layerId());
|
5924
6027
|
const { brandKit } = useBrandKit();
|
5925
6028
|
const themeStyles = getTextThemeStyles(brandKit);
|
5926
6029
|
const fontFamilyStyles = props().fontFamilyVariant in FONT_FAMILY_VARIANT ? FONT_FAMILY_VARIANT[props().fontFamilyVariant].getProps(brandKit) : FONT_FAMILY_VARIANT.default.getProps(brandKit);
|
@@ -6036,19 +6139,19 @@ const getTextLinkThemeStyles = getPropStyles(callback);
|
|
6036
6139
|
//#endregion
|
6037
6140
|
//#region src/components-flex/text-link/TextLink.svelte
|
6038
6141
|
var root_1$7 = $.template(`<!> <span><!></span>`, 1);
|
6039
|
-
const $$css$
|
6142
|
+
const $$css$20 = {
|
6040
6143
|
hash: "svelte-dc9m5n",
|
6041
6144
|
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;}"
|
6042
6145
|
};
|
6043
6146
|
function TextLink($$anchor, $$props) {
|
6044
6147
|
$.push($$props, false);
|
6045
|
-
$.append_styles($$anchor, $$css$
|
6148
|
+
$.append_styles($$anchor, $$css$20);
|
6046
6149
|
const escapedHTML = $.mutable_state();
|
6047
6150
|
const variables$1 = $.mutable_state();
|
6048
6151
|
const style = $.mutable_state();
|
6049
6152
|
let props = $.prop($$props, "props", 24, () => ({ label: "" }));
|
6050
6153
|
let layerId = $.prop($$props, "layerId", 8, "");
|
6051
|
-
useInjectCustomizeCss(props());
|
6154
|
+
useInjectCustomizeCss(props(), layerId());
|
6052
6155
|
const { brandKit } = useBrandKit();
|
6053
6156
|
const { attributes, element, handleClick } = useClickable_default({
|
6054
6157
|
...props(),
|
@@ -6111,22 +6214,20 @@ function TextLink($$anchor, $$props) {
|
|
6111
6214
|
$.event("click", $$element, handleClick);
|
6112
6215
|
var fragment_1 = root_1$7();
|
6113
6216
|
var node_1 = $.first_child(fragment_1);
|
6114
|
-
{
|
6115
|
-
|
6116
|
-
|
6117
|
-
|
6118
|
-
|
6119
|
-
|
6120
|
-
|
6121
|
-
|
6122
|
-
|
6123
|
-
|
6124
|
-
|
6125
|
-
|
6126
|
-
|
6127
|
-
|
6128
|
-
});
|
6129
|
-
}
|
6217
|
+
var consequent = ($$anchor$2) => {
|
6218
|
+
const expression = $.derived_safe_equal(() => ({
|
6219
|
+
variant: props().iconVariant,
|
6220
|
+
color: props().iconColor ?? props().color,
|
6221
|
+
width: "1em",
|
6222
|
+
height: "1em"
|
6223
|
+
}));
|
6224
|
+
Icon($$anchor$2, { get props() {
|
6225
|
+
return $.get(expression);
|
6226
|
+
} });
|
6227
|
+
};
|
6228
|
+
$.if(node_1, ($$render) => {
|
6229
|
+
if (props().isIcon && props().iconVariant) $$render(consequent);
|
6230
|
+
});
|
6130
6231
|
var span = $.sibling(node_1, 2);
|
6131
6232
|
var node_2 = $.child(span);
|
6132
6233
|
$.html(node_2, () => $.get(escapedHTML), false, false);
|
@@ -6162,30 +6263,28 @@ const TEXT_LINK_UNDERLINE = {
|
|
6162
6263
|
//#endregion
|
6163
6264
|
//#region src/components-flex/background-overlay/BackgroundOverlay.svelte
|
6164
6265
|
var root_1$6 = $.template(`<div></div>`);
|
6165
|
-
const $$css$
|
6266
|
+
const $$css$19 = {
|
6166
6267
|
hash: "svelte-18nkdjz",
|
6167
6268
|
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;}"
|
6168
6269
|
};
|
6169
6270
|
function BackgroundOverlay($$anchor, $$props) {
|
6170
6271
|
$.push($$props, false);
|
6171
|
-
$.append_styles($$anchor, $$css$
|
6272
|
+
$.append_styles($$anchor, $$css$19);
|
6172
6273
|
let backgroundOverlay = $.prop($$props, "backgroundOverlay", 8, false);
|
6173
6274
|
let className = $.prop($$props, "class", 8, void 0);
|
6174
6275
|
const dispatch = createEventDispatcher();
|
6175
6276
|
$.init();
|
6176
6277
|
var fragment = $.comment();
|
6177
6278
|
var node = $.first_child(fragment);
|
6178
|
-
{
|
6179
|
-
var
|
6180
|
-
|
6181
|
-
|
6182
|
-
|
6183
|
-
|
6184
|
-
|
6185
|
-
|
6186
|
-
|
6187
|
-
});
|
6188
|
-
}
|
6279
|
+
var consequent = ($$anchor$1) => {
|
6280
|
+
var div = root_1$6();
|
6281
|
+
$.template_effect(($0) => $.set_class(div, 1, $0, "svelte-18nkdjz"), [() => $.clsx(["v2-background", className() || ""].join(" "))], $.derived_safe_equal);
|
6282
|
+
$.event("click", div, () => dispatch("click"));
|
6283
|
+
$.append($$anchor$1, div);
|
6284
|
+
};
|
6285
|
+
$.if(node, ($$render) => {
|
6286
|
+
if (backgroundOverlay()) $$render(consequent);
|
6287
|
+
});
|
6189
6288
|
$.append($$anchor, fragment);
|
6190
6289
|
$.pop();
|
6191
6290
|
}
|
@@ -6195,13 +6294,13 @@ function BackgroundOverlay($$anchor, $$props) {
|
|
6195
6294
|
var root_2$4 = $.template(`<!> <!>`, 1);
|
6196
6295
|
var root_4 = $.template(`<div role="dialog" aria-modal="true"><!></div>`);
|
6197
6296
|
var root$12 = $.template(`<!> <!>`, 1);
|
6198
|
-
const $$css$
|
6297
|
+
const $$css$18 = {
|
6199
6298
|
hash: "svelte-45ue06",
|
6200
6299
|
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 }"
|
6201
6300
|
};
|
6202
6301
|
function Modal($$anchor, $$props) {
|
6203
6302
|
$.push($$props, false);
|
6204
|
-
$.append_styles($$anchor, $$css$
|
6303
|
+
$.append_styles($$anchor, $$css$18);
|
6205
6304
|
const close$1 = $.mutable_state();
|
6206
6305
|
const backgroundClick = $.mutable_state();
|
6207
6306
|
const backgroundClickPC = $.mutable_state();
|
@@ -6211,7 +6310,7 @@ function Modal($$anchor, $$props) {
|
|
6211
6310
|
let useBreakPoint = $.prop($$props, "useBreakPoint", 8, false);
|
6212
6311
|
let placement = $.prop($$props, "placement", 8);
|
6213
6312
|
let breakPoint = $.prop($$props, "breakPoint", 8);
|
6214
|
-
|
6313
|
+
$.prop($$props, "elasticity", 8);
|
6215
6314
|
let animation = $.prop($$props, "animation", 8, "none");
|
6216
6315
|
let props = $.prop($$props, "props", 24, () => ({}));
|
6217
6316
|
let closeEventName = $.prop($$props, "closeEventName", 8, "");
|
@@ -6354,78 +6453,72 @@ function Modal($$anchor, $$props) {
|
|
6354
6453
|
$.get(handle_keydown)?.apply(this, $$args);
|
6355
6454
|
});
|
6356
6455
|
var node = $.first_child(fragment);
|
6357
|
-
{
|
6358
|
-
|
6359
|
-
var
|
6360
|
-
|
6361
|
-
|
6362
|
-
|
6363
|
-
|
6364
|
-
|
6365
|
-
|
6366
|
-
|
6367
|
-
|
6368
|
-
|
6369
|
-
|
6370
|
-
|
6371
|
-
|
6372
|
-
|
6373
|
-
|
6374
|
-
|
6375
|
-
|
6376
|
-
|
6377
|
-
|
6378
|
-
|
6379
|
-
|
6380
|
-
|
6381
|
-
|
6382
|
-
});
|
6383
|
-
$.append($$anchor$2, fragment_1);
|
6384
|
-
};
|
6385
|
-
var alternate_1 = ($$anchor$2) => {
|
6386
|
-
BackgroundOverlay($$anchor$2, {
|
6387
|
-
get backgroundOverlay() {
|
6388
|
-
return $.get(backgroundOverlay);
|
6389
|
-
},
|
6390
|
-
$$events: { click(...$$args) {
|
6391
|
-
$.get(backgroundClick)?.apply(this, $$args);
|
6392
|
-
} }
|
6393
|
-
});
|
6394
|
-
};
|
6395
|
-
$.if($$anchor$1, ($$render) => {
|
6396
|
-
if (useBreakPoint()) $$render(consequent_1);
|
6397
|
-
else $$render(alternate_1, false);
|
6398
|
-
}, $$elseif);
|
6399
|
-
}
|
6456
|
+
var consequent = ($$anchor$1) => {};
|
6457
|
+
var alternate = ($$anchor$1, $$elseif) => {
|
6458
|
+
var consequent_1 = ($$anchor$2) => {
|
6459
|
+
var fragment_1 = root_2$4();
|
6460
|
+
var node_1 = $.first_child(fragment_1);
|
6461
|
+
BackgroundOverlay(node_1, {
|
6462
|
+
class: "background-bp-pc",
|
6463
|
+
get backgroundOverlay() {
|
6464
|
+
return $.get(backgroundOverlayPC);
|
6465
|
+
},
|
6466
|
+
$$events: { click(...$$args) {
|
6467
|
+
$.get(backgroundClickPC)?.apply(this, $$args);
|
6468
|
+
} }
|
6469
|
+
});
|
6470
|
+
var node_2 = $.sibling(node_1, 2);
|
6471
|
+
BackgroundOverlay(node_2, {
|
6472
|
+
class: "background-bp-sp ",
|
6473
|
+
get backgroundOverlay() {
|
6474
|
+
return $.get(backgroundOverlaySP);
|
6475
|
+
},
|
6476
|
+
$$events: { click(...$$args) {
|
6477
|
+
$.get(backgroundClickSP)?.apply(this, $$args);
|
6478
|
+
} }
|
6479
|
+
});
|
6480
|
+
$.append($$anchor$2, fragment_1);
|
6400
6481
|
};
|
6401
|
-
|
6402
|
-
|
6403
|
-
|
6404
|
-
|
6405
|
-
|
6406
|
-
|
6407
|
-
|
6408
|
-
|
6409
|
-
|
6410
|
-
var node_4 = $.child(div);
|
6411
|
-
$.slot(node_4, $$props, "default", {}, null);
|
6412
|
-
$.reset(div);
|
6413
|
-
$.bind_this(div, ($$value) => $.set(modal, $$value), () => $.get(modal));
|
6414
|
-
$.template_effect(($0, $1) => {
|
6415
|
-
$.set_class(div, 1, $0, "svelte-45ue06");
|
6416
|
-
$.set_attribute(div, "data-layer-id", layerId());
|
6417
|
-
$.set_style(div, $1);
|
6418
|
-
}, [() => $.clsx(["modal", useBreakPoint() ? "modal-bp" : ""].join(" ")), () => Array.from(modalStyles).join(";")], $.derived_safe_equal);
|
6419
|
-
$.transition(1, div, () => customAnimation, () => ({
|
6420
|
-
transforms: $.get(transforms),
|
6421
|
-
animationStyle: animation()
|
6422
|
-
}));
|
6423
|
-
$.append($$anchor$1, div);
|
6482
|
+
var alternate_1 = ($$anchor$2) => {
|
6483
|
+
BackgroundOverlay($$anchor$2, {
|
6484
|
+
get backgroundOverlay() {
|
6485
|
+
return $.get(backgroundOverlay);
|
6486
|
+
},
|
6487
|
+
$$events: { click(...$$args) {
|
6488
|
+
$.get(backgroundClick)?.apply(this, $$args);
|
6489
|
+
} }
|
6490
|
+
});
|
6424
6491
|
};
|
6425
|
-
$.if(
|
6426
|
-
if (
|
6427
|
-
|
6428
|
-
|
6492
|
+
$.if($$anchor$1, ($$render) => {
|
6493
|
+
if (useBreakPoint()) $$render(consequent_1);
|
6494
|
+
else $$render(alternate_1, false);
|
6495
|
+
}, $$elseif);
|
6496
|
+
};
|
6497
|
+
$.if(node, ($$render) => {
|
6498
|
+
if (isCanvasPreview()) $$render(consequent);
|
6499
|
+
else $$render(alternate, false);
|
6500
|
+
});
|
6501
|
+
var node_3 = $.sibling(node, 2);
|
6502
|
+
var consequent_2 = ($$anchor$1) => {
|
6503
|
+
var div = root_4();
|
6504
|
+
var node_4 = $.child(div);
|
6505
|
+
$.slot(node_4, $$props, "default", {}, null);
|
6506
|
+
$.reset(div);
|
6507
|
+
$.bind_this(div, ($$value) => $.set(modal, $$value), () => $.get(modal));
|
6508
|
+
$.template_effect(($0, $1) => {
|
6509
|
+
$.set_class(div, 1, $0, "svelte-45ue06");
|
6510
|
+
$.set_attribute(div, "data-layer-id", layerId());
|
6511
|
+
$.set_style(div, $1);
|
6512
|
+
}, [() => $.clsx(["modal", useBreakPoint() ? "modal-bp" : ""].join(" ")), () => Array.from(modalStyles).join(";")], $.derived_safe_equal);
|
6513
|
+
$.transition(1, div, () => customAnimation, () => ({
|
6514
|
+
transforms: $.get(transforms),
|
6515
|
+
animationStyle: animation()
|
6516
|
+
}));
|
6517
|
+
$.append($$anchor$1, div);
|
6518
|
+
};
|
6519
|
+
$.if(node_3, ($$render) => {
|
6520
|
+
if ($.get(visible)) $$render(consequent_2);
|
6521
|
+
});
|
6429
6522
|
$.append($$anchor, fragment);
|
6430
6523
|
$.pop();
|
6431
6524
|
}
|
@@ -6433,13 +6526,13 @@ function Modal($$anchor, $$props) {
|
|
6433
6526
|
//#endregion
|
6434
6527
|
//#region src/components-flex/code/Code.svelte
|
6435
6528
|
var root$11 = $.template(`<div><!></div>`);
|
6436
|
-
const $$css$
|
6529
|
+
const $$css$17 = {
|
6437
6530
|
hash: "svelte-igivoz",
|
6438
6531
|
code: ".code.svelte-igivoz {flex-grow:1;flex-shrink:0;align-self:stretch;}\n /*{@html props.rawCss}*/"
|
6439
6532
|
};
|
6440
6533
|
function Code($$anchor, $$props) {
|
6441
6534
|
$.push($$props, false);
|
6442
|
-
$.append_styles($$anchor, $$css$
|
6535
|
+
$.append_styles($$anchor, $$css$17);
|
6443
6536
|
let props = $.prop($$props, "props", 24, () => ({}));
|
6444
6537
|
let layerId = $.prop($$props, "layerId", 8, "");
|
6445
6538
|
function unescapeBraces(str) {
|
@@ -6492,20 +6585,20 @@ const LIST_ITEM_CONTEXT_KEY = "ListItemContext";
|
|
6492
6585
|
//#endregion
|
6493
6586
|
//#region src/components-flex/list/ListItem.svelte
|
6494
6587
|
var root$10 = $.template(`<li><!></li>`);
|
6495
|
-
const $$css$
|
6588
|
+
const $$css$16 = {
|
6496
6589
|
hash: "svelte-b4b4gh",
|
6497
6590
|
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);}"
|
6498
6591
|
};
|
6499
6592
|
function ListItem($$anchor, $$props) {
|
6500
6593
|
$.push($$props, false);
|
6501
|
-
$.append_styles($$anchor, $$css$
|
6594
|
+
$.append_styles($$anchor, $$css$16);
|
6502
6595
|
const variables$1 = $.mutable_state();
|
6503
6596
|
const style = $.mutable_state();
|
6504
6597
|
const innerStyle = $.mutable_state();
|
6505
6598
|
let layerId = $.prop($$props, "layerId", 8);
|
6506
6599
|
let props = $.prop($$props, "props", 8);
|
6507
|
-
|
6508
|
-
useInjectCustomizeCss(props());
|
6600
|
+
$.prop($$props, "item", 8);
|
6601
|
+
useInjectCustomizeCss(props(), layerId());
|
6509
6602
|
const { attributes, element, handleClick } = useClickable_default(props());
|
6510
6603
|
const context = getContext(LIST_ITEM_CONTEXT_KEY) || {};
|
6511
6604
|
$.legacy_pre_effect(() => {}, () => {
|
@@ -6558,13 +6651,13 @@ function ListItem($$anchor, $$props) {
|
|
6558
6651
|
//#endregion
|
6559
6652
|
//#region src/components-flex/list/List.svelte
|
6560
6653
|
var root$9 = $.template(`<ul><!></ul>`);
|
6561
|
-
const $$css$
|
6654
|
+
const $$css$15 = {
|
6562
6655
|
hash: "svelte-v2vy6p",
|
6563
6656
|
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);}"
|
6564
6657
|
};
|
6565
6658
|
function List($$anchor, $$props) {
|
6566
6659
|
$.push($$props, false);
|
6567
|
-
$.append_styles($$anchor, $$css$
|
6660
|
+
$.append_styles($$anchor, $$css$15);
|
6568
6661
|
const variables$1 = $.mutable_state();
|
6569
6662
|
const actionTableData = $.mutable_state();
|
6570
6663
|
const items = $.mutable_state();
|
@@ -6572,7 +6665,7 @@ function List($$anchor, $$props) {
|
|
6572
6665
|
let layerId = $.prop($$props, "layerId", 8);
|
6573
6666
|
let props = $.prop($$props, "props", 8);
|
6574
6667
|
const { brandKit } = useBrandKit();
|
6575
|
-
useInjectCustomizeCss(props());
|
6668
|
+
useInjectCustomizeCss(props(), layerId());
|
6576
6669
|
const vars = getVariables();
|
6577
6670
|
setContext(LIST_ITEM_CONTEXT_KEY, {
|
6578
6671
|
paddingTop: props().itemPaddingTop,
|
@@ -6646,18 +6739,18 @@ function splitNumberAndUnit(value) {
|
|
6646
6739
|
//#endregion
|
6647
6740
|
//#region src/components-flex/multi-column/MultiColumn.svelte
|
6648
6741
|
var root$8 = $.template(`<ul><!></ul>`);
|
6649
|
-
const $$css$
|
6742
|
+
const $$css$14 = {
|
6650
6743
|
hash: "svelte-9pwfkr",
|
6651
6744
|
code: ".multi-column.svelte-9pwfkr {padding:0;margin:0;list-style:none;display:flex;flex-direction:row;}"
|
6652
6745
|
};
|
6653
6746
|
function MultiColumn($$anchor, $$props) {
|
6654
6747
|
$.push($$props, false);
|
6655
|
-
$.append_styles($$anchor, $$css$
|
6748
|
+
$.append_styles($$anchor, $$css$14);
|
6656
6749
|
const style = $.mutable_state();
|
6657
6750
|
let layerId = $.prop($$props, "layerId", 8);
|
6658
6751
|
let props = $.prop($$props, "props", 8);
|
6659
6752
|
const { brandKit } = useBrandKit();
|
6660
|
-
useInjectCustomizeCss(props());
|
6753
|
+
useInjectCustomizeCss(props(), layerId());
|
6661
6754
|
let listGap = (() => {
|
6662
6755
|
if (!props().gap) return "0";
|
6663
6756
|
const { number, unit } = splitNumberAndUnit(props().gap);
|
@@ -6705,18 +6798,18 @@ function MultiColumn($$anchor, $$props) {
|
|
6705
6798
|
//#endregion
|
6706
6799
|
//#region src/components-flex/multi-column/MultiColumnItem.svelte
|
6707
6800
|
var root$7 = $.template(`<li><!></li>`);
|
6708
|
-
const $$css$
|
6801
|
+
const $$css$13 = {
|
6709
6802
|
hash: "svelte-18bwzrs",
|
6710
6803
|
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);}"
|
6711
6804
|
};
|
6712
6805
|
function MultiColumnItem($$anchor, $$props) {
|
6713
6806
|
$.push($$props, false);
|
6714
|
-
$.append_styles($$anchor, $$css$
|
6807
|
+
$.append_styles($$anchor, $$css$13);
|
6715
6808
|
const variables$1 = $.mutable_state();
|
6716
6809
|
const style = $.mutable_state();
|
6717
6810
|
let layerId = $.prop($$props, "layerId", 8);
|
6718
6811
|
let props = $.prop($$props, "props", 8);
|
6719
|
-
useInjectCustomizeCss(props());
|
6812
|
+
useInjectCustomizeCss(props(), layerId());
|
6720
6813
|
const { attributes, element, handleClick } = useClickable_default(props());
|
6721
6814
|
const context = getContext(MULTI_COLUMN_ITEM_CONTEXT_KEY) || {};
|
6722
6815
|
$.legacy_pre_effect(() => {}, () => {
|
@@ -6767,17 +6860,17 @@ function MultiColumnItem($$anchor, $$props) {
|
|
6767
6860
|
//#endregion
|
6768
6861
|
//#region src/components-flex/youtube/Youtube.svelte
|
6769
6862
|
var root$6 = $.template(`<div><div class="youtube-player"></div></div>`);
|
6770
|
-
const $$css$
|
6863
|
+
const $$css$12 = {
|
6771
6864
|
hash: "svelte-odfkc2",
|
6772
6865
|
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;}"
|
6773
6866
|
};
|
6774
6867
|
function Youtube($$anchor, $$props) {
|
6775
6868
|
$.push($$props, false);
|
6776
|
-
$.append_styles($$anchor, $$css$
|
6869
|
+
$.append_styles($$anchor, $$css$12);
|
6777
6870
|
const style = $.mutable_state();
|
6778
6871
|
let props = $.prop($$props, "props", 24, () => ({}));
|
6779
6872
|
let layerId = $.prop($$props, "layerId", 8, "");
|
6780
|
-
useInjectCustomizeCss(props());
|
6873
|
+
useInjectCustomizeCss(props(), layerId());
|
6781
6874
|
if (!window.YT) {
|
6782
6875
|
const tag = document.createElement("script");
|
6783
6876
|
tag.src = "https://www.youtube.com/iframe_api";
|
@@ -6870,20 +6963,20 @@ function Youtube($$anchor, $$props) {
|
|
6870
6963
|
//#endregion
|
6871
6964
|
//#region src/components-flex/count-down/CountDown.svelte
|
6872
6965
|
var root$5 = $.template(`<div><!></div>`);
|
6873
|
-
const $$css$
|
6966
|
+
const $$css$11 = {
|
6874
6967
|
hash: "svelte-1n395il",
|
6875
6968
|
code: ".countdown.svelte-1n395il {display:flex;align-items:center;gap:4px;}"
|
6876
6969
|
};
|
6877
6970
|
function CountDown($$anchor, $$props) {
|
6878
6971
|
$.push($$props, false);
|
6879
|
-
$.append_styles($$anchor, $$css$
|
6972
|
+
$.append_styles($$anchor, $$css$11);
|
6880
6973
|
const day = $.mutable_state();
|
6881
6974
|
const hour = $.mutable_state();
|
6882
6975
|
const min = $.mutable_state();
|
6883
6976
|
const sec = $.mutable_state();
|
6884
6977
|
let props = $.prop($$props, "props", 24, () => ({}));
|
6885
6978
|
let layerId = $.prop($$props, "layerId", 8, "");
|
6886
|
-
useInjectCustomizeCss(props());
|
6979
|
+
useInjectCustomizeCss(props(), layerId());
|
6887
6980
|
let remainingTime = $.mutable_state();
|
6888
6981
|
let timeLimit = props().timeLimit ? new Date(props().timeLimit) : /* @__PURE__ */ new Date();
|
6889
6982
|
function calcRemainingTime(limit) {
|
@@ -6960,8 +7053,8 @@ function CountDown($$anchor, $$props) {
|
|
6960
7053
|
|
6961
7054
|
//#endregion
|
6962
7055
|
//#region src/hooks/useText.ts
|
6963
|
-
const useText = (props) => {
|
6964
|
-
useInjectCustomizeCss(props);
|
7056
|
+
const useText = (props, layerId) => {
|
7057
|
+
useInjectCustomizeCss(props, layerId);
|
6965
7058
|
const { brandKit } = useBrandKit();
|
6966
7059
|
const themeStyles = getTextThemeStyles(brandKit);
|
6967
7060
|
const fontFamilyStyles = props.fontFamilyVariant in FONT_FAMILY_VARIANT ? FONT_FAMILY_VARIANT[props.fontFamilyVariant].getProps(brandKit) : FONT_FAMILY_VARIANT.default.getProps(brandKit);
|
@@ -7026,7 +7119,7 @@ function CountDownValue($$anchor, $$props) {
|
|
7026
7119
|
let props = $.prop($$props, "props", 24, () => ({}));
|
7027
7120
|
let layerId = $.prop($$props, "layerId", 8, "");
|
7028
7121
|
let countdownStore = getContext("countdownStore");
|
7029
|
-
let { style } = useText(props());
|
7122
|
+
let { style } = useText(props(), layerId());
|
7030
7123
|
$.legacy_pre_effect(() => ($countdownStore(), $.deep_read_state(props())), () => {
|
7031
7124
|
$.set(value, (() => {
|
7032
7125
|
const { day, hour, min, sec } = $countdownStore();
|
@@ -7059,16 +7152,16 @@ function CountDownValue($$anchor, $$props) {
|
|
7059
7152
|
//#endregion
|
7060
7153
|
//#region src/components-flex/clip-copy/ClipCopy.svelte
|
7061
7154
|
var root$3 = $.template(`<div><button class="clipboard-button svelte-orhp4c"><!></button> <span class="clipboard-tooltip svelte-orhp4c">コピーしました</span></div>`);
|
7062
|
-
const $$css$
|
7155
|
+
const $$css$10 = {
|
7063
7156
|
hash: "svelte-orhp4c",
|
7064
7157
|
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%);}"
|
7065
7158
|
};
|
7066
7159
|
function ClipCopy($$anchor, $$props) {
|
7067
7160
|
$.push($$props, false);
|
7068
|
-
$.append_styles($$anchor, $$css$
|
7161
|
+
$.append_styles($$anchor, $$css$10);
|
7069
7162
|
let props = $.prop($$props, "props", 24, () => ({}));
|
7070
7163
|
let layerId = $.prop($$props, "layerId", 8, "");
|
7071
|
-
useInjectCustomizeCss(props());
|
7164
|
+
useInjectCustomizeCss(props(), layerId());
|
7072
7165
|
let buttonElement = $.mutable_state();
|
7073
7166
|
let showTooltip = $.mutable_state(false);
|
7074
7167
|
const handleClick = (e) => {
|
@@ -7105,19 +7198,19 @@ function ClipCopy($$anchor, $$props) {
|
|
7105
7198
|
//#endregion
|
7106
7199
|
//#region src/components-flex/embed/Embed.svelte
|
7107
7200
|
var root$2 = $.template(`<div><!></div>`);
|
7108
|
-
const $$css$
|
7201
|
+
const $$css$9 = {
|
7109
7202
|
hash: "svelte-13tkwh0",
|
7110
7203
|
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;}"
|
7111
7204
|
};
|
7112
7205
|
function Embed($$anchor, $$props) {
|
7113
7206
|
$.push($$props, false);
|
7114
|
-
$.append_styles($$anchor, $$css$
|
7207
|
+
$.append_styles($$anchor, $$css$9);
|
7115
7208
|
const variables$1 = $.mutable_state();
|
7116
7209
|
const styleObj = $.mutable_state();
|
7117
7210
|
const style = $.mutable_state();
|
7118
7211
|
let props = $.prop($$props, "props", 24, () => ({}));
|
7119
7212
|
let layerId = $.prop($$props, "layerId", 8, "");
|
7120
|
-
useInjectCustomizeCss(props());
|
7213
|
+
useInjectCustomizeCss(props(), layerId());
|
7121
7214
|
const aspectVariantStyles = ASPECT_VARIANT[props().aspectVariant]?.getProps();
|
7122
7215
|
const width = props().width ?? "100%";
|
7123
7216
|
$.legacy_pre_effect(() => $.deep_read_state(props()), () => {
|
@@ -7155,16 +7248,16 @@ function Embed($$anchor, $$props) {
|
|
7155
7248
|
//#endregion
|
7156
7249
|
//#region src/components-flex/form/Form.svelte
|
7157
7250
|
var root$1 = $.template(`<div><!></div>`);
|
7158
|
-
const $$css$
|
7251
|
+
const $$css$8 = {
|
7159
7252
|
hash: "svelte-nekp9e",
|
7160
7253
|
code: ".form.svelte-nekp9e {width:100%;}"
|
7161
7254
|
};
|
7162
7255
|
function Form($$anchor, $$props) {
|
7163
7256
|
$.push($$props, false);
|
7164
|
-
$.append_styles($$anchor, $$css$
|
7257
|
+
$.append_styles($$anchor, $$css$8);
|
7165
7258
|
let props = $.prop($$props, "props", 24, () => ({}));
|
7166
7259
|
let layerId = $.prop($$props, "layerId", 8, "");
|
7167
|
-
useInjectCustomizeCss(props());
|
7260
|
+
useInjectCustomizeCss(props(), layerId());
|
7168
7261
|
$.init();
|
7169
7262
|
var div = root$1();
|
7170
7263
|
var node = $.child(div);
|
@@ -7200,18 +7293,18 @@ var root_2$3 = $.template(`<span class="field-required svelte-1maygd6">*</span
|
|
7200
7293
|
var root_1$5 = $.template(`<dt class="svelte-1maygd6"><span> </span> <!></dt>`);
|
7201
7294
|
var root_3 = $.template(`<p class="field-error svelte-1maygd6"> </p>`);
|
7202
7295
|
var root = $.template(`<dl><!> <dd class="svelte-1maygd6"><!> <!></dd></dl>`);
|
7203
|
-
const $$css$
|
7296
|
+
const $$css$7 = {
|
7204
7297
|
hash: "svelte-1maygd6",
|
7205
7298
|
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;}"
|
7206
7299
|
};
|
7207
7300
|
function FormField($$anchor, $$props) {
|
7208
7301
|
$.push($$props, false);
|
7209
|
-
$.append_styles($$anchor, $$css$
|
7302
|
+
$.append_styles($$anchor, $$css$7);
|
7210
7303
|
const variables$1 = $.mutable_state();
|
7211
7304
|
const style = $.mutable_state();
|
7212
7305
|
let props = $.prop($$props, "props", 24, () => ({}));
|
7213
7306
|
let layerId = $.prop($$props, "layerId", 8, "");
|
7214
|
-
useInjectCustomizeCss(props());
|
7307
|
+
useInjectCustomizeCss(props(), layerId());
|
7215
7308
|
const { brandKit } = useBrandKit();
|
7216
7309
|
let registeredFieldName = $.mutable_state("");
|
7217
7310
|
let errorMessage = $.mutable_state(null);
|
@@ -7242,7 +7335,9 @@ function FormField($$anchor, $$props) {
|
|
7242
7335
|
type: props().fieldType,
|
7243
7336
|
name: props().fieldName,
|
7244
7337
|
defaultValue: props().defaultValue,
|
7245
|
-
required: props().required
|
7338
|
+
required: props().required,
|
7339
|
+
validations: props().validations,
|
7340
|
+
isIdentify: props().isIdentify
|
7246
7341
|
});
|
7247
7342
|
formStore.subscribe(($store) => {
|
7248
7343
|
$.set(errorMessage, $store.states[props().fieldName]?.errorMessage ?? null);
|
@@ -7255,48 +7350,42 @@ function FormField($$anchor, $$props) {
|
|
7255
7350
|
$.init();
|
7256
7351
|
var dl = root();
|
7257
7352
|
var node = $.child(dl);
|
7258
|
-
{
|
7259
|
-
var
|
7260
|
-
|
7261
|
-
|
7262
|
-
|
7263
|
-
|
7264
|
-
|
7265
|
-
|
7266
|
-
|
7267
|
-
var span_1 = root_2$3();
|
7268
|
-
$.append($$anchor$2, span_1);
|
7269
|
-
};
|
7270
|
-
$.if(node_1, ($$render) => {
|
7271
|
-
if (props().required) $$render(consequent);
|
7272
|
-
});
|
7273
|
-
}
|
7274
|
-
$.reset(dt);
|
7275
|
-
$.template_effect(() => $.set_text(text, props().label));
|
7276
|
-
$.append($$anchor$1, dt);
|
7353
|
+
var consequent_1 = ($$anchor$1) => {
|
7354
|
+
var dt = root_1$5();
|
7355
|
+
var span = $.child(dt);
|
7356
|
+
var text = $.child(span, true);
|
7357
|
+
$.reset(span);
|
7358
|
+
var node_1 = $.sibling(span, 2);
|
7359
|
+
var consequent = ($$anchor$2) => {
|
7360
|
+
var span_1 = root_2$3();
|
7361
|
+
$.append($$anchor$2, span_1);
|
7277
7362
|
};
|
7278
|
-
$.if(
|
7279
|
-
if (props().
|
7363
|
+
$.if(node_1, ($$render) => {
|
7364
|
+
if (props().required) $$render(consequent);
|
7280
7365
|
});
|
7281
|
-
|
7366
|
+
$.reset(dt);
|
7367
|
+
$.template_effect(() => $.set_text(text, props().label));
|
7368
|
+
$.append($$anchor$1, dt);
|
7369
|
+
};
|
7370
|
+
$.if(node, ($$render) => {
|
7371
|
+
if (props().label) $$render(consequent_1);
|
7372
|
+
});
|
7282
7373
|
var dd = $.sibling(node, 2);
|
7283
7374
|
var node_2 = $.child(dd);
|
7284
7375
|
$.slot(node_2, $$props, "default", { get "data-layer-id"() {
|
7285
7376
|
return layerId();
|
7286
7377
|
} }, null);
|
7287
7378
|
var node_3 = $.sibling(node_2, 2);
|
7288
|
-
{
|
7289
|
-
var
|
7290
|
-
|
7291
|
-
|
7292
|
-
|
7293
|
-
|
7294
|
-
|
7295
|
-
|
7296
|
-
|
7297
|
-
|
7298
|
-
});
|
7299
|
-
}
|
7379
|
+
var consequent_2 = ($$anchor$1) => {
|
7380
|
+
var p = root_3();
|
7381
|
+
var text_1 = $.child(p, true);
|
7382
|
+
$.reset(p);
|
7383
|
+
$.template_effect(() => $.set_text(text_1, $.get(errorMessage)));
|
7384
|
+
$.append($$anchor$1, p);
|
7385
|
+
};
|
7386
|
+
$.if(node_3, ($$render) => {
|
7387
|
+
if ($.get(isShowErrorMessage) && $.get(errorMessage)) $$render(consequent_2);
|
7388
|
+
});
|
7300
7389
|
$.reset(dd);
|
7301
7390
|
$.reset(dl);
|
7302
7391
|
$.template_effect(($0) => {
|
@@ -7316,13 +7405,13 @@ function FormField($$anchor, $$props) {
|
|
7316
7405
|
//#endregion
|
7317
7406
|
//#region src/components-flex/form/FormInput.svelte
|
7318
7407
|
var root_1$4 = $.template(`<input type="text">`);
|
7319
|
-
const $$css$
|
7408
|
+
const $$css$6 = {
|
7320
7409
|
hash: "svelte-176cxs0",
|
7321
7410
|
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);}"
|
7322
7411
|
};
|
7323
7412
|
function FormInput($$anchor, $$props) {
|
7324
7413
|
$.push($$props, false);
|
7325
|
-
$.append_styles($$anchor, $$css$
|
7414
|
+
$.append_styles($$anchor, $$css$6);
|
7326
7415
|
const variant = $.mutable_state();
|
7327
7416
|
const size = $.mutable_state();
|
7328
7417
|
const variables$1 = $.mutable_state();
|
@@ -7331,7 +7420,7 @@ function FormInput($$anchor, $$props) {
|
|
7331
7420
|
let props = $.prop($$props, "props", 24, () => ({}));
|
7332
7421
|
let layerId = $.prop($$props, "layerId", 8, "");
|
7333
7422
|
const { brandKit } = useBrandKit();
|
7334
|
-
useInjectCustomizeCss(props());
|
7423
|
+
useInjectCustomizeCss(props(), layerId());
|
7335
7424
|
let value = $.mutable_state("");
|
7336
7425
|
const handleBlur = () => {
|
7337
7426
|
if (props().fieldName) {
|
@@ -7409,13 +7498,13 @@ function FormInput($$anchor, $$props) {
|
|
7409
7498
|
//#endregion
|
7410
7499
|
//#region src/components-flex/form/FormTextarea.svelte
|
7411
7500
|
var root_1$3 = $.template(`<textarea></textarea>`);
|
7412
|
-
const $$css$
|
7501
|
+
const $$css$5 = {
|
7413
7502
|
hash: "svelte-1oqg2c0",
|
7414
7503
|
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);}"
|
7415
7504
|
};
|
7416
7505
|
function FormTextarea($$anchor, $$props) {
|
7417
7506
|
$.push($$props, false);
|
7418
|
-
$.append_styles($$anchor, $$css$
|
7507
|
+
$.append_styles($$anchor, $$css$5);
|
7419
7508
|
const variant = $.mutable_state();
|
7420
7509
|
const size = $.mutable_state();
|
7421
7510
|
const variables$1 = $.mutable_state();
|
@@ -7423,7 +7512,7 @@ function FormTextarea($$anchor, $$props) {
|
|
7423
7512
|
let props = $.prop($$props, "props", 24, () => ({}));
|
7424
7513
|
let layerId = $.prop($$props, "layerId", 8, "");
|
7425
7514
|
const { brandKit } = useBrandKit();
|
7426
|
-
useInjectCustomizeCss(props());
|
7515
|
+
useInjectCustomizeCss(props(), layerId());
|
7427
7516
|
let value = $.mutable_state("");
|
7428
7517
|
const handleBlur = () => {
|
7429
7518
|
if (props().fieldName) {
|
@@ -7495,13 +7584,13 @@ function FormTextarea($$anchor, $$props) {
|
|
7495
7584
|
//#region src/components-flex/form/FormSelect.svelte
|
7496
7585
|
var root_2$2 = $.template(`<option class="svelte-p118m"> </option>`);
|
7497
7586
|
var root_1$2 = $.template(`<div><select class="form-select-select svelte-p118m"><option disabled class="svelte-p118m"> </option><!></select></div>`);
|
7498
|
-
const $$css$
|
7587
|
+
const $$css$4 = {
|
7499
7588
|
hash: "svelte-p118m",
|
7500
7589
|
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);}"
|
7501
7590
|
};
|
7502
7591
|
function FormSelect($$anchor, $$props) {
|
7503
7592
|
$.push($$props, false);
|
7504
|
-
$.append_styles($$anchor, $$css$
|
7593
|
+
$.append_styles($$anchor, $$css$4);
|
7505
7594
|
const variant = $.mutable_state();
|
7506
7595
|
const size = $.mutable_state();
|
7507
7596
|
const isEmpty$1 = $.mutable_state();
|
@@ -7510,7 +7599,7 @@ function FormSelect($$anchor, $$props) {
|
|
7510
7599
|
let props = $.prop($$props, "props", 24, () => ({}));
|
7511
7600
|
let layerId = $.prop($$props, "layerId", 8, "");
|
7512
7601
|
const { brandKit } = useBrandKit();
|
7513
|
-
useInjectCustomizeCss(props());
|
7602
|
+
useInjectCustomizeCss(props(), layerId());
|
7514
7603
|
let value = $.mutable_state("");
|
7515
7604
|
const handleChange = () => {
|
7516
7605
|
if (props().fieldName) {
|
@@ -7613,12 +7702,22 @@ const FORM_FIELD_LABEL_THEME = {
|
|
7613
7702
|
gray: "グレー",
|
7614
7703
|
brand: "ブランド"
|
7615
7704
|
};
|
7705
|
+
const FORM_IDENTIFY_FIELD_TYPE = {
|
7706
|
+
email: "メールアドレス",
|
7707
|
+
subscription: "メールマガジン登録",
|
7708
|
+
phone: "電話番号",
|
7709
|
+
phone_subscribe: "SMS配信許可",
|
7710
|
+
first_name: "名前(名)",
|
7711
|
+
last_name: "名前(姓)",
|
7712
|
+
address: "住所"
|
7713
|
+
};
|
7616
7714
|
const FORM_FIELD_TYPE = {
|
7617
7715
|
INPUT: "input",
|
7618
7716
|
SELECT: "select",
|
7619
7717
|
CHECKBOX: "checkbox",
|
7620
7718
|
CHECKBOXES: "checkboxes",
|
7621
7719
|
RADIOS: "radio",
|
7720
|
+
BOOLEAN: "boolean",
|
7622
7721
|
TEXTAREA: "textarea"
|
7623
7722
|
};
|
7624
7723
|
const FORM_FIELD_VARIANT = {
|
@@ -7646,13 +7745,13 @@ const FORM_INPUT_TYPE = {
|
|
7646
7745
|
//#region src/components-flex/form/FormCheckboxes.svelte
|
7647
7746
|
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>`);
|
7648
7747
|
var root_1$1 = $.template(`<ul></ul>`);
|
7649
|
-
const $$css$
|
7748
|
+
const $$css$3 = {
|
7650
7749
|
hash: "svelte-rx48m9",
|
7651
7750
|
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;}"
|
7652
7751
|
};
|
7653
7752
|
function FormCheckboxes($$anchor, $$props) {
|
7654
7753
|
$.push($$props, false);
|
7655
|
-
$.append_styles($$anchor, $$css$
|
7754
|
+
$.append_styles($$anchor, $$css$3);
|
7656
7755
|
const variant = $.mutable_state();
|
7657
7756
|
const size = $.mutable_state();
|
7658
7757
|
const options = $.mutable_state();
|
@@ -7661,7 +7760,7 @@ function FormCheckboxes($$anchor, $$props) {
|
|
7661
7760
|
const binding_group = [];
|
7662
7761
|
let props = $.prop($$props, "props", 24, () => ({}));
|
7663
7762
|
let layerId = $.prop($$props, "layerId", 8, "");
|
7664
|
-
useInjectCustomizeCss(props());
|
7763
|
+
useInjectCustomizeCss(props(), layerId());
|
7665
7764
|
const { brandKit } = useBrandKit();
|
7666
7765
|
let values = $.mutable_state([]);
|
7667
7766
|
const handleChange = () => {
|
@@ -7702,7 +7801,7 @@ function FormCheckboxes($$anchor, $$props) {
|
|
7702
7801
|
})(),
|
7703
7802
|
"--checkbox-check-size": (() => {
|
7704
7803
|
if ($.get(size) === "small") return "14x";
|
7705
|
-
if ($.get(size) === "large") return "
|
7804
|
+
if ($.get(size) === "large") return "18px";
|
7706
7805
|
return "16px";
|
7707
7806
|
})(),
|
7708
7807
|
"--checkbox-check-radius": (() => {
|
@@ -7778,13 +7877,13 @@ function FormCheckboxes($$anchor, $$props) {
|
|
7778
7877
|
//#region src/components-flex/form/FormRadios.svelte
|
7779
7878
|
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>`);
|
7780
7879
|
var root_1 = $.template(`<ul></ul>`);
|
7781
|
-
const $$css = {
|
7880
|
+
const $$css$2 = {
|
7782
7881
|
hash: "svelte-ps4qqa",
|
7783
7882
|
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;}"
|
7784
7883
|
};
|
7785
7884
|
function FormRadios($$anchor, $$props) {
|
7786
7885
|
$.push($$props, false);
|
7787
|
-
$.append_styles($$anchor, $$css);
|
7886
|
+
$.append_styles($$anchor, $$css$2);
|
7788
7887
|
const variant = $.mutable_state();
|
7789
7888
|
const size = $.mutable_state();
|
7790
7889
|
const options = $.mutable_state();
|
@@ -7793,7 +7892,7 @@ function FormRadios($$anchor, $$props) {
|
|
7793
7892
|
const binding_group = [];
|
7794
7893
|
let props = $.prop($$props, "props", 24, () => ({}));
|
7795
7894
|
let layerId = $.prop($$props, "layerId", 8, "");
|
7796
|
-
useInjectCustomizeCss(props());
|
7895
|
+
useInjectCustomizeCss(props(), layerId());
|
7797
7896
|
const { brandKit } = useBrandKit();
|
7798
7897
|
let value = $.mutable_state("");
|
7799
7898
|
const handleChange = () => {
|
@@ -7911,6 +8010,124 @@ function FormRadios($$anchor, $$props) {
|
|
7911
8010
|
$.pop();
|
7912
8011
|
}
|
7913
8012
|
|
8013
|
+
//#endregion
|
8014
|
+
//#region src/components-flex/form/FormBoolean.svelte
|
8015
|
+
const $$css$1 = {
|
8016
|
+
hash: "svelte-3kpd",
|
8017
|
+
code: ""
|
8018
|
+
};
|
8019
|
+
function FormBoolean($$anchor, $$props) {
|
8020
|
+
$.append_styles($$anchor, $$css$1);
|
8021
|
+
let props = $.prop($$props, "props", 24, () => ({}));
|
8022
|
+
let layerId = $.prop($$props, "layerId", 8, "");
|
8023
|
+
FormRadios($$anchor, {
|
8024
|
+
get layerId() {
|
8025
|
+
return layerId();
|
8026
|
+
},
|
8027
|
+
get props() {
|
8028
|
+
return props();
|
8029
|
+
}
|
8030
|
+
});
|
8031
|
+
}
|
8032
|
+
|
8033
|
+
//#endregion
|
8034
|
+
//#region src/components-flex/form/FormIdentifyField.svelte
|
8035
|
+
const $$css = {
|
8036
|
+
hash: "svelte-3kpd",
|
8037
|
+
code: ""
|
8038
|
+
};
|
8039
|
+
function FormIdentifyField($$anchor, $$props) {
|
8040
|
+
$.push($$props, false);
|
8041
|
+
$.append_styles($$anchor, $$css);
|
8042
|
+
const fieldType = $.mutable_state();
|
8043
|
+
const fieldProps = $.mutable_state();
|
8044
|
+
const inputProps = $.mutable_state();
|
8045
|
+
const booleanProps = $.mutable_state();
|
8046
|
+
let props = $.prop($$props, "props", 24, () => ({}));
|
8047
|
+
let layerId = $.prop($$props, "layerId", 8, "");
|
8048
|
+
useInjectCustomizeCss(props(), layerId());
|
8049
|
+
const identifyType = props().identifyType ?? "email";
|
8050
|
+
$.legacy_pre_effect(() => {}, () => {
|
8051
|
+
$.set(fieldType, (() => {
|
8052
|
+
switch (identifyType) {
|
8053
|
+
case "phone_subscribe":
|
8054
|
+
case "subscription": return "boolean";
|
8055
|
+
case "address":
|
8056
|
+
case "first_name":
|
8057
|
+
case "last_name":
|
8058
|
+
case "email":
|
8059
|
+
case "phone":
|
8060
|
+
default: return "input";
|
8061
|
+
}
|
8062
|
+
})());
|
8063
|
+
});
|
8064
|
+
$.legacy_pre_effect(() => ($.deep_read_state(props()), $.get(fieldType)), () => {
|
8065
|
+
$.set(fieldProps, (() => {
|
8066
|
+
return {
|
8067
|
+
...props(),
|
8068
|
+
fieldType: $.get(fieldType),
|
8069
|
+
fieldName: identifyType,
|
8070
|
+
isIdentify: true
|
8071
|
+
};
|
8072
|
+
})());
|
8073
|
+
});
|
8074
|
+
$.legacy_pre_effect(() => ($.get(fieldType), $.get(fieldProps), $.deep_read_state(props())), () => {
|
8075
|
+
$.set(inputProps, (() => {
|
8076
|
+
if ($.get(fieldType) !== "input") return null;
|
8077
|
+
return {
|
8078
|
+
...$.get(fieldProps),
|
8079
|
+
...props().inputProps ?? {}
|
8080
|
+
};
|
8081
|
+
})());
|
8082
|
+
});
|
8083
|
+
$.legacy_pre_effect(() => ($.get(fieldType), $.get(fieldProps), $.deep_read_state(props())), () => {
|
8084
|
+
$.set(booleanProps, (() => {
|
8085
|
+
if ($.get(fieldType) !== "boolean") return null;
|
8086
|
+
return {
|
8087
|
+
...$.get(fieldProps),
|
8088
|
+
...props().checkerProps ?? {}
|
8089
|
+
};
|
8090
|
+
})());
|
8091
|
+
});
|
8092
|
+
$.legacy_pre_effect_reset();
|
8093
|
+
$.init();
|
8094
|
+
var fragment = $.comment();
|
8095
|
+
var node = $.first_child(fragment);
|
8096
|
+
var consequent = ($$anchor$1) => {
|
8097
|
+
FormInput($$anchor$1, {
|
8098
|
+
get layerId() {
|
8099
|
+
return layerId();
|
8100
|
+
},
|
8101
|
+
get props() {
|
8102
|
+
return $.get(inputProps);
|
8103
|
+
}
|
8104
|
+
});
|
8105
|
+
};
|
8106
|
+
var alternate = ($$anchor$1, $$elseif) => {
|
8107
|
+
var consequent_1 = ($$anchor$2) => {
|
8108
|
+
FormBoolean($$anchor$2, {
|
8109
|
+
get layerId() {
|
8110
|
+
return layerId();
|
8111
|
+
},
|
8112
|
+
get props() {
|
8113
|
+
return $.get(booleanProps);
|
8114
|
+
}
|
8115
|
+
});
|
8116
|
+
};
|
8117
|
+
var alternate_1 = ($$anchor$2) => {};
|
8118
|
+
$.if($$anchor$1, ($$render) => {
|
8119
|
+
if ($.get(booleanProps)) $$render(consequent_1);
|
8120
|
+
else $$render(alternate_1, false);
|
8121
|
+
}, $$elseif);
|
8122
|
+
};
|
8123
|
+
$.if(node, ($$render) => {
|
8124
|
+
if ($.get(inputProps)) $$render(consequent);
|
8125
|
+
else $$render(alternate, false);
|
8126
|
+
});
|
8127
|
+
$.append($$anchor, fragment);
|
8128
|
+
$.pop();
|
8129
|
+
}
|
8130
|
+
|
7914
8131
|
//#endregion
|
7915
8132
|
//#region src/components-flex/shared/styles.ts
|
7916
8133
|
const ROUND_STYLES = {
|
@@ -8119,4 +8336,4 @@ const flexComponentSchemes = {
|
|
8119
8336
|
};
|
8120
8337
|
|
8121
8338
|
//#endregion
|
8122
|
-
export { ACTION_HOOK_LABEL, ASPECT_VARIANT, ASPECT_VARIANTS, AVATAR_SHAPE, AVATAR_SIZE, AVATAR_SIZE_STYLES, Alignments, AnimationStyles, BACKGROUND_COLOR_VARIANT, BACKGROUND_COLOR_VARIANTS, BORDER_COLOR_VARIANT, BORDER_COLOR_VARIANTS, BUTTON_ICON_ANGLE, BUTTON_LINK_TARGET, BUTTON_OUTLINED_ROUND_STYLES, BUTTON_OUTLINED_SIZE_STYLES, BUTTON_OUTLINED_WRAP_STYLES, BUTTON_ROUND, BUTTON_ROUND_STYLES, BUTTON_SIZE, BUTTON_SIZE_STYLES, BUTTON_TEXT_SIZE, BUTTON_TEXT_SIZE_STYLES, BUTTON_TEXT_THEME, BUTTON_THEME, BUTTON_VARIANT, BUTTON_WRAP_STYLES, BackgroundSizes, CLOSE_BUTTON_LABEL_PLACEMENT, CLOSE_BUTTON_PLACEMENT, CLOSE_BUTTON_ROUND, ClipPaths, Cursors, DefaultEdgePosition, DefaultElasticity, DefaultFormButtonColor, DefaultFormIdentifyBooleanField, DefaultFormIdentifyTextField, DefaultListBackground, DefaultListBackgroundNone, DefaultListBackgroundStripe, DefaultListSeparator, DefaultListSeparatorBorder, DefaultListSeparatorGap, DefaultListSeparatorNone, DefaultModalBreakPoint, DefaultModalPlacement, DefaultSlideButton, DefaultSlideNavigationButton, Directions, Elasticities, ElasticityStyle, FONT_FAMILY_VARIANT, FONT_FAMILY_VARIANTS, FONT_FAMILY_VARIANT_GROUPS, FORM_FIELD_LABEL_SIZE, FORM_FIELD_LABEL_THEME, FORM_FIELD_SIZE, FORM_FIELD_TYPE, FORM_FIELD_VARIANT, FORM_FIELD_VARIANT_FOR_CHECKER, FORM_INPUT_TYPE, Avatar as FlexAvatar, Button as FlexButton, ButtonOutlined as FlexButtonOutlined, ButtonText as FlexButtonText, ClipCopy as FlexClipCopy, CloseButton as FlexCloseButton, Code as FlexCode, CountDown as FlexCountDown, CountDownValue as FlexCountDownValue, FlexDirections, Embed as FlexEmbed, Form as FlexForm, FormCheckboxes as FlexFormCheckboxes, FormField as FlexFormField, FormInput as FlexFormInput, FormRadios as FlexFormRadios, FormSelect as FlexFormSelect, FormTextarea as FlexFormTextarea, Icon as FlexIcon, Image as FlexImage, Layout as FlexLayout, List as FlexList, ListItem as FlexListItem, Modal as FlexModal, MultiColumn as FlexMultiColumn, MultiColumnItem as FlexMultiColumnItem, RichText as FlexRichText, Slider as FlexSlider, SliderItem as FlexSliderItem, Text as FlexText, TextLink as FlexTextLink, Youtube as FlexYoutube, Fonts, FormIdentifyBooleanFields, FormIdentifyTextFieldPlaceholders, FormIdentifyTextFieldValidations, FormIdentifyTextFields, ICON_SIZE, ICON_SIZE_STYLES, ICON_VARIANTS, IMAGE_ASPECT_VARIANTS, IMAGE_ROUND_SHAPE, IMAGE_ROUND_STYLES, Justifies, KARTE_MODAL_ROOT, LAYER_TEXT_SIZE, LAYOUT_ALIGN, LAYOUT_COMPONENT_NAMES, LAYOUT_DIRECTION, LAYOUT_DISPLAY_TYPE, LAYOUT_JUSTIFY, LIST_ITEM_CONTEXT_KEY, LengthUnits, ListBackgroundTypes, ListDirections, ListSeparatorTypes, MULTI_COLUMN_ITEM_CONTEXT_KEY, MediaQueries, ModalPositions, ObjectFits, OnClickOperationOptions, Overflows, PropTypes, ROUND_STYLES, ROUND_VARIANT, Repeats, SHADOW_VARIANT, SHADOW_VARIANTS, SYSTEM_FONT, State, StateItem, TEXT_LINK_SIZE, TEXT_LINK_SIZE_STYLES, TEXT_LINK_THEME, TEXT_LINK_UNDERLINE, TEXT_STYLE, TEXT_THEME, TEXT_VARIANTS, TextDirections, WritingModes, addChoiceAnswer, addFreeAnswer, afterUpdate, applyCss, applyGlobalCss, avatarPropsDefault, beforeUpdate, buttonOutlinedPropsDefault, buttonPropsDefault, close, closeAction, collection, create, createApp, createFog, createProp, destroy, destroyAction, ensureModalRoot, eventHandlers, finalize, flexComponentSchemes, formData, formStore, formSubmittedValues, getActionRoot, getAnsweredQuestion, getAnsweredQuestionIds, getBrandKit, getButtonOutlinedThemeStyles, getButtonTextThemeStyles, getButtonThemeStyles, getCssVariables, getEventHandlers, getEvents, getFormErrors, getFormFieldSchema, getFormFieldState, getFormFieldValue, getFormValues, getLogs, getState, getStates, getSystem, getTextLinkThemeStyles, getTextThemeStyles, getVariables, hideOnScroll, hideOnTime, initialize, isOpened, listenLogger, loadActionTable, loadActionTableQuery, loadActionTableRow, loadActionTableRows, loadGlobalScript, loadGlobalStyle, loadStyle, logger, onChangeState, onClose, onCreate, onDestory, onDestroy, onMount, onScroll, onShow, onSubmitForm, onTime, registerFormField, removeAnswer, resetEventHandlers, resetVariables, sendAnswer, sendAnswers, setEventHandlers, setFormFieldError, setFormFieldTouched, setFormFieldValue, setSetting, setState, setVariables, show, showAction, showModal, showOnScroll, showOnTime, state, tick, unregisterFormField, useBrandKit, validateFormField, variables, widget_exports as widget };
|
8339
|
+
export { ACTION_HOOK_LABEL, ASPECT_VARIANT, ASPECT_VARIANTS, AVATAR_SHAPE, AVATAR_SIZE, AVATAR_SIZE_STYLES, Alignments, AnimationStyles, BACKGROUND_COLOR_VARIANT, BACKGROUND_COLOR_VARIANTS, BORDER_COLOR_VARIANT, BORDER_COLOR_VARIANTS, BUTTON_ICON_ANGLE, BUTTON_LINK_TARGET, BUTTON_OUTLINED_ROUND_STYLES, BUTTON_OUTLINED_SIZE_STYLES, BUTTON_OUTLINED_WRAP_STYLES, BUTTON_ROUND, BUTTON_ROUND_STYLES, BUTTON_SIZE, BUTTON_SIZE_STYLES, BUTTON_TEXT_SIZE, BUTTON_TEXT_SIZE_STYLES, BUTTON_TEXT_THEME, BUTTON_THEME, BUTTON_VARIANT, BUTTON_WRAP_STYLES, BackgroundSizes, CLOSE_BUTTON_LABEL_PLACEMENT, CLOSE_BUTTON_PLACEMENT, CLOSE_BUTTON_ROUND, ClipPaths, Cursors, DefaultEdgePosition, DefaultElasticity, DefaultFormButtonColor, DefaultFormIdentifyBooleanField, DefaultFormIdentifyTextField, DefaultListBackground, DefaultListBackgroundNone, DefaultListBackgroundStripe, DefaultListSeparator, DefaultListSeparatorBorder, DefaultListSeparatorGap, DefaultListSeparatorNone, DefaultModalBreakPoint, DefaultModalPlacement, DefaultSlideButton, DefaultSlideNavigationButton, Directions, Elasticities, ElasticityStyle, FONT_FAMILY_VARIANT, FONT_FAMILY_VARIANTS, FONT_FAMILY_VARIANT_GROUPS, FORM_FIELD_LABEL_SIZE, FORM_FIELD_LABEL_THEME, FORM_FIELD_SIZE, FORM_FIELD_TYPE, FORM_FIELD_VARIANT, FORM_FIELD_VARIANT_FOR_CHECKER, FORM_IDENTIFY_FIELD_TYPE, FORM_INPUT_TYPE, FORM_VALIDATION_DEFAULT_ERROR_MESSAGES, FORM_VALIDATION_REGEX, FORM_VALIDATION_TYPE, Avatar as FlexAvatar, Button as FlexButton, ButtonOutlined as FlexButtonOutlined, ButtonText as FlexButtonText, ClipCopy as FlexClipCopy, CloseButton as FlexCloseButton, Code as FlexCode, CountDown as FlexCountDown, CountDownValue as FlexCountDownValue, FlexDirections, Embed as FlexEmbed, Form as FlexForm, FormBoolean as FlexFormBoolean, FormCheckboxes as FlexFormCheckboxes, FormField as FlexFormField, FormIdentifyField as FlexFormIdentifyField, FormInput as FlexFormInput, FormRadios as FlexFormRadios, FormSelect as FlexFormSelect, FormTextarea as FlexFormTextarea, Icon as FlexIcon, Image as FlexImage, Layout as FlexLayout, List as FlexList, ListItem as FlexListItem, Modal as FlexModal, MultiColumn as FlexMultiColumn, MultiColumnItem as FlexMultiColumnItem, RichText as FlexRichText, Slider as FlexSlider, SliderItem as FlexSliderItem, Text as FlexText, TextLink as FlexTextLink, Youtube as FlexYoutube, Fonts, FormIdentifyBooleanFields, FormIdentifyTextFieldPlaceholders, FormIdentifyTextFieldValidations, FormIdentifyTextFields, ICON_SIZE, ICON_SIZE_STYLES, ICON_VARIANTS, IMAGE_ASPECT_VARIANTS, IMAGE_ROUND_SHAPE, IMAGE_ROUND_STYLES, Justifies, KARTE_MODAL_ROOT, LAYER_TEXT_SIZE, LAYOUT_ALIGN, LAYOUT_COMPONENT_NAMES, LAYOUT_DIRECTION, LAYOUT_DISPLAY_TYPE, LAYOUT_JUSTIFY, LIST_ITEM_CONTEXT_KEY, LengthUnits, ListBackgroundTypes, ListDirections, ListSeparatorTypes, MULTI_COLUMN_ITEM_CONTEXT_KEY, MediaQueries, ModalPositions, ObjectFits, OnClickOperationOptions, Overflows, PropTypes, ROUND_STYLES, ROUND_VARIANT, Repeats, SHADOW_VARIANT, SHADOW_VARIANTS, SYSTEM_FONT, State, StateItem, TEXT_LINK_SIZE, TEXT_LINK_SIZE_STYLES, TEXT_LINK_THEME, TEXT_LINK_UNDERLINE, TEXT_STYLE, TEXT_THEME, TEXT_VARIANTS, TextDirections, WritingModes, addChoiceAnswer, addFreeAnswer, afterUpdate, applyCss, applyGlobalCss, avatarPropsDefault, beforeUpdate, buttonOutlinedPropsDefault, buttonPropsDefault, close, closeAction, collection, create, createApp, createFog, createProp, destroy, destroyAction, ensureModalRoot, eventHandlers, finalize, flexComponentSchemes, formData, formStore, formSubmittedIdentifyValues, formSubmittedValues, getActionRoot, getAnsweredQuestion, getAnsweredQuestionIds, getBrandKit, getButtonOutlinedThemeStyles, getButtonTextThemeStyles, getButtonThemeStyles, getCssVariables, getEventHandlers, getEvents, getFormErrors, getFormFieldSchema, getFormFieldState, getFormFieldValue, getFormValues, getLogs, getState, getStates, getSystem, getTextLinkThemeStyles, getTextThemeStyles, getVariables, hideOnScroll, hideOnTime, initialize, isOpened, listenLogger, loadActionTable, loadActionTableQuery, loadActionTableRow, loadActionTableRows, loadGlobalScript, loadGlobalStyle, loadStyle, logger, onChangeState, onClose, onCreate, onDestory, onDestroy, onMount, onScroll, onShow, onSubmitForm, onTime, registerFormField, removeAnswer, resetEventHandlers, resetVariables, sendAnswer, sendAnswers, setEventHandlers, setFormFieldError, setFormFieldTouched, setFormFieldValue, setSetting, setState, setVariables, show, showAction, showModal, showOnScroll, showOnTime, state, tick, unregisterFormField, useBrandKit, validateFormField, variables, widget_exports as widget };
|