@plaidev/karte-action-sdk 1.1.270-29177657.a375e44e → 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.
Files changed (132) hide show
  1. package/dist/action.d.ts +0 -1
  2. package/dist/actionEvent.d.ts +0 -1
  3. package/dist/components/index.d.ts +0 -1
  4. package/dist/components-flex/avatar/types.d.ts +0 -1
  5. package/dist/components-flex/brand-kit.d.ts +6 -0
  6. package/dist/components-flex/button/types.d.ts +0 -3
  7. package/dist/components-flex/button-outlined/types.d.ts +0 -3
  8. package/dist/components-flex/button-text/types.d.ts +0 -3
  9. package/dist/components-flex/embed/types.d.ts +7 -0
  10. package/dist/components-flex/form/styles.d.ts +7 -0
  11. package/dist/components-flex/form/types.d.ts +131 -0
  12. package/dist/components-flex/form.d.ts +122 -0
  13. package/dist/components-flex/layout/types.d.ts +1 -0
  14. package/dist/components-flex/modal/types.d.ts +2 -2
  15. package/dist/components-flex/props.d.ts +5 -1
  16. package/dist/components-flex/text/types.d.ts +0 -3
  17. package/dist/components-flex/text-link/types.d.ts +0 -3
  18. package/dist/components-flex/utils/obj-to-style.d.ts +1 -1
  19. package/dist/components-flex/variants.d.ts +0 -15
  20. package/dist/components-flex/youtube/types.d.ts +0 -1
  21. package/dist/constants.d.ts +0 -1
  22. package/dist/functions.d.ts +4 -0
  23. package/dist/hooks/useInjectCustomizeCss.d.ts +1 -1
  24. package/dist/hooks/useText.d.ts +1 -1
  25. package/dist/hydrate/action.d.ts +0 -1
  26. package/dist/hydrate/actionEvent.d.ts +0 -1
  27. package/dist/hydrate/components/index.d.ts +0 -1
  28. package/dist/hydrate/components-flex/avatar/types.d.ts +0 -1
  29. package/dist/hydrate/components-flex/brand-kit.d.ts +6 -0
  30. package/dist/hydrate/components-flex/button/types.d.ts +0 -3
  31. package/dist/hydrate/components-flex/button-outlined/types.d.ts +0 -3
  32. package/dist/hydrate/components-flex/button-text/types.d.ts +0 -3
  33. package/dist/hydrate/components-flex/embed/types.d.ts +7 -0
  34. package/dist/hydrate/components-flex/form/styles.d.ts +7 -0
  35. package/dist/hydrate/components-flex/form/types.d.ts +131 -0
  36. package/dist/hydrate/components-flex/form.d.ts +122 -0
  37. package/dist/hydrate/components-flex/layout/types.d.ts +1 -0
  38. package/dist/hydrate/components-flex/modal/types.d.ts +2 -2
  39. package/dist/hydrate/components-flex/props.d.ts +5 -1
  40. package/dist/hydrate/components-flex/text/types.d.ts +0 -3
  41. package/dist/hydrate/components-flex/text-link/types.d.ts +0 -3
  42. package/dist/hydrate/components-flex/utils/obj-to-style.d.ts +1 -1
  43. package/dist/hydrate/components-flex/variants.d.ts +0 -15
  44. package/dist/hydrate/components-flex/youtube/types.d.ts +0 -1
  45. package/dist/hydrate/constants.d.ts +0 -1
  46. package/dist/hydrate/functions.d.ts +4 -0
  47. package/dist/hydrate/hooks/useInjectCustomizeCss.d.ts +1 -1
  48. package/dist/hydrate/hooks/useText.d.ts +1 -1
  49. package/dist/hydrate/index.d.ts +3 -2
  50. package/dist/hydrate/index.es.js +3547 -947
  51. package/dist/hydrate/index.svelte5.d.ts +13 -1
  52. package/dist/hydrate/modal.d.ts +0 -2
  53. package/dist/hydrate/modal.svelte5.d.ts +0 -2
  54. package/dist/hydrate/prop.d.ts +14 -0
  55. package/dist/hydrate/stores.d.ts +12 -0
  56. package/dist/hydrate/types.d.ts +0 -1
  57. package/dist/icons.d.ts +0 -3
  58. package/dist/index.es.d.ts +3 -2
  59. package/dist/index.es.js +3375 -997
  60. package/dist/modal.d.ts +0 -2
  61. package/dist/modal.svelte5.d.ts +0 -2
  62. package/dist/prop.d.ts +14 -0
  63. package/dist/stores.d.ts +12 -0
  64. package/dist/svelte5/action.d.ts +0 -1
  65. package/dist/svelte5/actionEvent.d.ts +0 -1
  66. package/dist/svelte5/components/index.d.ts +0 -1
  67. package/dist/svelte5/components-flex/avatar/types.d.ts +0 -1
  68. package/dist/svelte5/components-flex/brand-kit.d.ts +6 -0
  69. package/dist/svelte5/components-flex/button/types.d.ts +0 -3
  70. package/dist/svelte5/components-flex/button-outlined/types.d.ts +0 -3
  71. package/dist/svelte5/components-flex/button-text/types.d.ts +0 -3
  72. package/dist/svelte5/components-flex/embed/types.d.ts +7 -0
  73. package/dist/svelte5/components-flex/form/styles.d.ts +7 -0
  74. package/dist/svelte5/components-flex/form/types.d.ts +131 -0
  75. package/dist/svelte5/components-flex/form.d.ts +122 -0
  76. package/dist/svelte5/components-flex/layout/types.d.ts +1 -0
  77. package/dist/svelte5/components-flex/modal/types.d.ts +2 -2
  78. package/dist/svelte5/components-flex/props.d.ts +5 -1
  79. package/dist/svelte5/components-flex/text/types.d.ts +0 -3
  80. package/dist/svelte5/components-flex/text-link/types.d.ts +0 -3
  81. package/dist/svelte5/components-flex/utils/obj-to-style.d.ts +1 -1
  82. package/dist/svelte5/components-flex/variants.d.ts +0 -15
  83. package/dist/svelte5/components-flex/youtube/types.d.ts +0 -1
  84. package/dist/svelte5/constants.d.ts +0 -1
  85. package/dist/svelte5/functions.d.ts +4 -0
  86. package/dist/svelte5/hooks/useInjectCustomizeCss.d.ts +1 -1
  87. package/dist/svelte5/hooks/useText.d.ts +1 -1
  88. package/dist/svelte5/hydrate/action.d.ts +0 -1
  89. package/dist/svelte5/hydrate/actionEvent.d.ts +0 -1
  90. package/dist/svelte5/hydrate/components/index.d.ts +0 -1
  91. package/dist/svelte5/hydrate/components-flex/avatar/types.d.ts +0 -1
  92. package/dist/svelte5/hydrate/components-flex/brand-kit.d.ts +6 -0
  93. package/dist/svelte5/hydrate/components-flex/button/types.d.ts +0 -3
  94. package/dist/svelte5/hydrate/components-flex/button-outlined/types.d.ts +0 -3
  95. package/dist/svelte5/hydrate/components-flex/button-text/types.d.ts +0 -3
  96. package/dist/svelte5/hydrate/components-flex/embed/types.d.ts +7 -0
  97. package/dist/svelte5/hydrate/components-flex/form/styles.d.ts +7 -0
  98. package/dist/svelte5/hydrate/components-flex/form/types.d.ts +131 -0
  99. package/dist/svelte5/hydrate/components-flex/form.d.ts +122 -0
  100. package/dist/svelte5/hydrate/components-flex/layout/types.d.ts +1 -0
  101. package/dist/svelte5/hydrate/components-flex/modal/types.d.ts +2 -2
  102. package/dist/svelte5/hydrate/components-flex/props.d.ts +5 -1
  103. package/dist/svelte5/hydrate/components-flex/text/types.d.ts +0 -3
  104. package/dist/svelte5/hydrate/components-flex/text-link/types.d.ts +0 -3
  105. package/dist/svelte5/hydrate/components-flex/utils/obj-to-style.d.ts +1 -1
  106. package/dist/svelte5/hydrate/components-flex/variants.d.ts +0 -15
  107. package/dist/svelte5/hydrate/components-flex/youtube/types.d.ts +0 -1
  108. package/dist/svelte5/hydrate/constants.d.ts +0 -1
  109. package/dist/svelte5/hydrate/functions.d.ts +4 -0
  110. package/dist/svelte5/hydrate/hooks/useInjectCustomizeCss.d.ts +1 -1
  111. package/dist/svelte5/hydrate/hooks/useText.d.ts +1 -1
  112. package/dist/svelte5/hydrate/index.es.d.ts +13 -1
  113. package/dist/svelte5/hydrate/index.es.js +1833 -462
  114. package/dist/svelte5/hydrate/modal.d.ts +0 -2
  115. package/dist/svelte5/hydrate/modal.svelte5.d.ts +0 -2
  116. package/dist/svelte5/hydrate/prop.d.ts +14 -0
  117. package/dist/svelte5/hydrate/stores.d.ts +12 -0
  118. package/dist/svelte5/hydrate/types.d.ts +0 -1
  119. package/dist/svelte5/index.es.d.ts +13 -1
  120. package/dist/svelte5/index.es.js +1833 -462
  121. package/dist/svelte5/index.front2.es.js +1947 -544
  122. package/dist/svelte5/index.svelte5.d.ts +13 -1
  123. package/dist/svelte5/modal.d.ts +0 -2
  124. package/dist/svelte5/modal.svelte5.d.ts +0 -2
  125. package/dist/svelte5/prop.d.ts +14 -0
  126. package/dist/svelte5/stores.d.ts +12 -0
  127. package/dist/svelte5/types.d.ts +0 -1
  128. package/dist/templates.cjs.js +13 -6
  129. package/dist/templates.d.ts +0 -5
  130. package/dist/templates.js +13 -6
  131. package/dist/types.d.ts +0 -1
  132. package/package.json +8 -15
@@ -414,6 +414,22 @@ const OnClickOperationOptions = [
414
414
  default: "/"
415
415
  }]
416
416
  },
417
+ {
418
+ operation: "submitFormFinal",
419
+ args: [{
420
+ name: "state",
421
+ type: "TransitState",
422
+ default: "/"
423
+ }]
424
+ },
425
+ {
426
+ operation: "submitFormProgress",
427
+ args: [{
428
+ name: "state",
429
+ type: "TransitState",
430
+ default: "/"
431
+ }]
432
+ },
417
433
  {
418
434
  operation: "bootChat",
419
435
  args: [
@@ -1085,6 +1101,12 @@ const formData = writable({});
1085
1101
  * @internal
1086
1102
  */
1087
1103
  const identifyFormData = writable({});
1104
+ /**
1105
+ * Store for form data
1106
+ *
1107
+ * @internal
1108
+ */
1109
+ const formFields = writable({});
1088
1110
 
1089
1111
  //#endregion
1090
1112
  //#region src/logger.ts
@@ -1836,9 +1858,9 @@ function getCssVariables(data) {
1836
1858
  * @public
1837
1859
  */
1838
1860
  function getActionRoot() {
1839
- const root$46 = document.querySelector(`.${KARTE_ACTION_ROOT}[data-${KARTE_ACTION_RID}='${actionId}']`);
1840
- if (!root$46?.shadowRoot) return null;
1841
- return root$46.shadowRoot;
1861
+ const root$49 = document.querySelector(`.${KARTE_ACTION_ROOT}[data-${KARTE_ACTION_RID}='${actionId}']`);
1862
+ if (!root$49?.shadowRoot) return null;
1863
+ return root$49.shadowRoot;
1842
1864
  }
1843
1865
  /** @internal */
1844
1866
  function createModal(App, options = {
@@ -2120,8 +2142,8 @@ function createApp(App, options = {
2120
2142
  */
2121
2143
  function createFog({ color = "#000", opacity = "50%", zIndex = 999, onclick }) {
2122
2144
  console.log("createFog");
2123
- const root$46 = ensureModalRoot();
2124
- if (root$46.querySelector(".__krt-fog")) return {
2145
+ const root$49 = ensureModalRoot();
2146
+ if (root$49.querySelector(".__krt-fog")) return {
2125
2147
  fog: null,
2126
2148
  close: () => {}
2127
2149
  };
@@ -2142,7 +2164,7 @@ function createFog({ color = "#000", opacity = "50%", zIndex = 999, onclick }) {
2142
2164
  fog.remove();
2143
2165
  };
2144
2166
  fog.onclick = close$1;
2145
- root$46.appendChild(fog);
2167
+ root$49.appendChild(fog);
2146
2168
  return {
2147
2169
  fog,
2148
2170
  close: close$1
@@ -2435,18 +2457,18 @@ function createInputRegisterer(formData$1) {
2435
2457
  const registerInput = createInputRegisterer(formData);
2436
2458
  /** @internal */
2437
2459
  const registerIdentifyInput = createInputRegisterer(identifyFormData);
2438
- function createAnswerValue(value) {
2460
+ function createAnswerValue$1(value) {
2439
2461
  if (Array.isArray(value)) return { choices: value };
2440
2462
  else if (typeof value === "string") return { free_answer: value };
2441
2463
  }
2442
- function formDataToEventValues(campaignId, formData$1) {
2464
+ function formDataToEventValues$1(campaignId, formData$1) {
2443
2465
  const questions = [];
2444
2466
  const answersMap = {};
2445
2467
  Object.entries(formData$1).forEach(([name, dataItem]) => {
2446
2468
  questions.push(name);
2447
2469
  const value = dataItem.value;
2448
2470
  const answerKey = `question_${name}`;
2449
- const answerValue = createAnswerValue(value);
2471
+ const answerValue = createAnswerValue$1(value);
2450
2472
  answersMap[answerKey] = answerValue;
2451
2473
  });
2452
2474
  return { [campaignId]: {
@@ -2454,7 +2476,7 @@ function formDataToEventValues(campaignId, formData$1) {
2454
2476
  ...answersMap
2455
2477
  } };
2456
2478
  }
2457
- function formDataToIdentifyEventValues(formData$1) {
2479
+ function formDataToIdentifyEventValues$1(formData$1) {
2458
2480
  return Object.fromEntries(Object.entries(formData$1).map(([name, dataItem]) => {
2459
2481
  const value = dataItem.value;
2460
2482
  return [name, value];
@@ -2467,8 +2489,8 @@ function submit() {
2467
2489
  if (campaignId) {
2468
2490
  const formData$1 = get(formData);
2469
2491
  const identifyFormData$1 = get(identifyFormData);
2470
- const values = formDataToEventValues(campaignId, formData$1);
2471
- const identifyValues = formDataToIdentifyEventValues(identifyFormData$1);
2492
+ const values = formDataToEventValues$1(campaignId, formData$1);
2493
+ const identifyValues = formDataToIdentifyEventValues$1(identifyFormData$1);
2472
2494
  if (Object.keys(identifyValues).length > 0) identifyValues["user_id"] = getVariables()?.[USER_ID_VARIABLE_NAME];
2473
2495
  return {
2474
2496
  values,
@@ -2539,7 +2561,7 @@ function removeAnswer(questionId) {
2539
2561
  function getAnsweredQuestion(questionId) {
2540
2562
  const formData$1 = get(formData);
2541
2563
  const valueState = formData$1[questionId];
2542
- if (valueState) return createAnswerValue(valueState.value);
2564
+ if (valueState) return createAnswerValue$1(valueState.value);
2543
2565
  }
2544
2566
  /**
2545
2567
  * 回答済の回答IDのリストを取得
@@ -2856,9 +2878,355 @@ const LAYOUT_COMPONENT_NAMES = [
2856
2878
  "StateItem"
2857
2879
  ];
2858
2880
 
2881
+ //#endregion
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
+ };
2910
+ /**
2911
+ * @internal
2912
+ */
2913
+ const formStore = writable({
2914
+ schemas: [],
2915
+ states: {}
2916
+ });
2917
+ const formSubmittedValues = writable({});
2918
+ const formSubmittedIdentifyValues = writable({});
2919
+ /**
2920
+ * @public
2921
+ */
2922
+ const getFormFieldSchema = (name) => {
2923
+ const store = get(formStore);
2924
+ return store.schemas.find((v) => v.name === name) ?? void 0;
2925
+ };
2926
+ /**
2927
+ * @public
2928
+ */
2929
+ const getFormFieldState = (name) => {
2930
+ const store = get(formStore);
2931
+ return store.states[name] ?? void 0;
2932
+ };
2933
+ /**
2934
+ * @public
2935
+ */
2936
+ const getFormFieldValue = (name) => {
2937
+ return getFormFieldState(name)?.value ?? void 0;
2938
+ };
2939
+ /**
2940
+ * @public
2941
+ */
2942
+ const getFormValues = () => {
2943
+ const store = get(formStore);
2944
+ return Object.fromEntries(Object.entries(store.states).map(([name, state$1]) => [name, state$1.value]));
2945
+ };
2946
+ /**
2947
+ * @public
2948
+ */
2949
+ const getFormErrors = () => {
2950
+ const store = get(formStore);
2951
+ return Object.fromEntries(Object.entries(store.states).map(([name, state$1]) => [name, state$1.errorMessage]));
2952
+ };
2953
+ /**
2954
+ * @public
2955
+ */
2956
+ const setFormFieldValue = (name, value) => {
2957
+ formStore.update((updater) => ({
2958
+ ...updater,
2959
+ states: (() => {
2960
+ const states$1 = { ...updater.states };
2961
+ if (!(name in states$1)) return states$1;
2962
+ states$1[name].value = value;
2963
+ if (states$1[name].value !== value) states$1[name].isDirty = true;
2964
+ const schema = updater.schemas.find((v) => v.name === name);
2965
+ if (schema) {
2966
+ const res = validateFormField(schema, value);
2967
+ states$1[name].isValid = res.isValid;
2968
+ states$1[name].errorMessage = res.error;
2969
+ }
2970
+ return states$1;
2971
+ })()
2972
+ }));
2973
+ formSubmittedValues.update((updater) => ({
2974
+ ...updater,
2975
+ [name]: value
2976
+ }));
2977
+ };
2978
+ /**
2979
+ * @public
2980
+ */
2981
+ const setFormFieldError = (name, errorMessage) => {
2982
+ formStore.update((updater) => ({
2983
+ ...updater,
2984
+ states: {
2985
+ ...updater.states,
2986
+ [name]: {
2987
+ ...updater.states[name],
2988
+ errorMessage,
2989
+ isValid: errorMessage !== null
2990
+ }
2991
+ }
2992
+ }));
2993
+ };
2994
+ /**
2995
+ * @public
2996
+ */
2997
+ const setFormFieldTouched = (name) => {
2998
+ formStore.update((updater) => ({
2999
+ ...updater,
3000
+ states: {
3001
+ ...updater.states,
3002
+ [name]: {
3003
+ ...updater.states[name],
3004
+ isTouched: true
3005
+ }
3006
+ }
3007
+ }));
3008
+ };
3009
+ /**
3010
+ * @public
3011
+ */
3012
+ const registerFormField = (schemas) => {
3013
+ schemas = Array.isArray(schemas) ? schemas : [schemas];
3014
+ formStore.update((updater) => ({
3015
+ schemas: (() => {
3016
+ const resultSchemes = [...updater.schemas];
3017
+ schemas.forEach((schema) => {
3018
+ const index = resultSchemes.findIndex((rSchema) => rSchema.name === schema.name);
3019
+ if (index >= 0) resultSchemes[index] = {
3020
+ name: schema.name,
3021
+ defaultValue: schema.defaultValue,
3022
+ type: schema.type,
3023
+ required: schema.required,
3024
+ statePath: getState(),
3025
+ isIdentify: schema.isIdentify,
3026
+ validations: schema.validations
3027
+ };
3028
+ else resultSchemes.push({
3029
+ name: schema.name,
3030
+ defaultValue: schema.defaultValue,
3031
+ type: schema.type,
3032
+ required: schema.required,
3033
+ statePath: getState(),
3034
+ isIdentify: schema.isIdentify,
3035
+ validations: schema.validations
3036
+ });
3037
+ });
3038
+ return resultSchemes;
3039
+ })(),
3040
+ states: (() => {
3041
+ const states$1 = { ...updater.states };
3042
+ const submittedValues = get(formSubmittedValues);
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
+ };
3060
+ });
3061
+ return states$1;
3062
+ })()
3063
+ }));
3064
+ };
3065
+ /**
3066
+ * @public
3067
+ */
3068
+ const unregisterFormField = (fieldNames) => {
3069
+ fieldNames = typeof fieldNames === "string" ? [fieldNames] : fieldNames;
3070
+ formStore.update((updater) => ({
3071
+ schemas: (() => {
3072
+ return updater.schemas.filter((v) => !fieldNames.some((name) => name === v.name));
3073
+ })(),
3074
+ states: (() => {
3075
+ const states$1 = { ...updater.states };
3076
+ fieldNames.forEach((name) => {
3077
+ if (name in states$1) delete states$1[name];
3078
+ });
3079
+ return states$1;
3080
+ })()
3081
+ }));
3082
+ };
3083
+ const validateFormField = (schema, value) => {
3084
+ if (schema.required) {
3085
+ if (schema.type === "checkboxes") {
3086
+ if (Array.isArray(value) && value.length === 0) return {
3087
+ isValid: false,
3088
+ error: FORM_VALIDATION_DEFAULT_ERROR_MESSAGES["required"]
3089
+ };
3090
+ } else if (typeof value !== "string" || value.trim() === "") return {
3091
+ isValid: false,
3092
+ error: FORM_VALIDATION_DEFAULT_ERROR_MESSAGES["required"]
3093
+ };
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
+ }
3146
+ return {
3147
+ isValid: true,
3148
+ error: void 0
3149
+ };
3150
+ };
3151
+ function createAnswerValue(value) {
3152
+ if (value.type === "input" || value.type === "textarea") return { free_answer: String(value.value) };
3153
+ else return { choices: Array.isArray(value) ? value : [value] };
3154
+ }
3155
+ function formDataToEventValues(campaignId, values) {
3156
+ const questions = [];
3157
+ const answersMap = {};
3158
+ Object.entries(values).forEach(([name, value]) => {
3159
+ questions.push(name);
3160
+ const answerKey = `question_${name}`;
3161
+ answersMap[answerKey] = createAnswerValue(value);
3162
+ });
3163
+ return { [campaignId]: {
3164
+ questions,
3165
+ ...answersMap
3166
+ } };
3167
+ }
3168
+ function formDataToIdentifyEventValues(values) {
3169
+ return Object.fromEntries(Object.entries(values).map(([name, { value }]) => [name, value]));
3170
+ }
3171
+ /**
3172
+ * @public
3173
+ */
3174
+ function onSubmitForm(fn) {
3175
+ const systemConfig = getSystem();
3176
+ const campaignId = systemConfig.campaignId;
3177
+ if (campaignId) {
3178
+ let hasInvalid = false;
3179
+ const formData$1 = get(formStore);
3180
+ const currentState = getState();
3181
+ const currentStateSchemas = formData$1.schemas.filter((v) => v.statePath === currentState);
3182
+ for (const schema of currentStateSchemas) {
3183
+ const { isValid, error: error$1 } = validateFormField(schema, formData$1.states[schema.name]?.value);
3184
+ setFormFieldError(schema.name, isValid ? null : error$1);
3185
+ if (!isValid) hasInvalid = true;
3186
+ }
3187
+ formStore.update((updater) => ({
3188
+ ...updater,
3189
+ states: (() => {
3190
+ const states$1 = { ...updater.states };
3191
+ currentStateSchemas.forEach((schema) => {
3192
+ states$1[schema.name].isTouched = true;
3193
+ });
3194
+ return states$1;
3195
+ })()
3196
+ }));
3197
+ if (hasInvalid) return;
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
+ });
3210
+ formSubmittedValues.update((updater) => ({
3211
+ ...updater,
3212
+ ...newValues
3213
+ }));
3214
+ if (Object.keys(newIdentifyValues).length > 0) formSubmittedIdentifyValues.update((updater) => ({
3215
+ ...updater,
3216
+ ...newIdentifyValues
3217
+ }));
3218
+ fn({
3219
+ currentStateIdentifyValues: formDataToIdentifyEventValues(newIdentifyValues),
3220
+ allIdentifyValues: formDataToIdentifyEventValues(get(formSubmittedIdentifyValues)),
3221
+ currentStateValues: formDataToEventValues(campaignId, newValues),
3222
+ allValues: formDataToEventValues(campaignId, get(formSubmittedValues))
3223
+ });
3224
+ }
3225
+ }
3226
+
2859
3227
  //#endregion
2860
3228
  //#region src/components-flex/state/Header.svelte
2861
- var root_2$5 = $.template(`<link type="text/css" rel="stylesheet">`);
3229
+ var root_2$9 = $.template(`<link type="text/css" rel="stylesheet">`);
2862
3230
  function Header($$anchor, $$props) {
2863
3231
  $.push($$props, false);
2864
3232
  const [$$stores, $$cleanup] = $.setup_stores();
@@ -2876,16 +3244,14 @@ function Header($$anchor, $$props) {
2876
3244
  $.head(($$anchor$1) => {
2877
3245
  var fragment = $.comment();
2878
3246
  var node = $.first_child(fragment);
2879
- {
2880
- var consequent = ($$anchor$2) => {
2881
- var link = root_2$5();
2882
- $.template_effect(() => $.set_attribute(link, "href", $.get(googleFontUrl)));
2883
- $.append($$anchor$2, link);
2884
- };
2885
- $.if(node, ($$render) => {
2886
- if ($.get(googleFontUrl)) $$render(consequent);
2887
- });
2888
- }
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
+ });
2889
3255
  $.append($$anchor$1, fragment);
2890
3256
  });
2891
3257
  $.pop();
@@ -2897,14 +3263,20 @@ function Header($$anchor, $$props) {
2897
3263
  const BRAND_KIT_DEFAULT = {
2898
3264
  font_family: "sans-serif, serif, monospace, system-ui",
2899
3265
  color_text_primary: "#222222",
2900
- color_text_secondary: "#555555",
3266
+ color_text_secondary: "#666666",
2901
3267
  color_brand: "#33403e",
2902
3268
  color_link: "#1558d6",
2903
3269
  color_danger: "#f44336",
2904
3270
  color_warning: "#ffa726",
2905
3271
  color_success: "#10b981",
2906
3272
  color_info: "#29b6f6",
2907
- color_white: "#FFFFFF"
3273
+ color_white: "#FFFFFF",
3274
+ color_form_field_placeholder: "#CCCCCC",
3275
+ color_form_field_border: "#DBDBDB",
3276
+ color_form_field_focused_border: "",
3277
+ color_form_field_focused_background: "",
3278
+ color_form_field_accent: "",
3279
+ color_form_field_background: "#f5f5f5"
2908
3280
  };
2909
3281
  const getBrandKit = (customBrandKit) => {
2910
3282
  return {
@@ -2917,7 +3289,13 @@ const getBrandKit = (customBrandKit) => {
2917
3289
  color_warning: customBrandKit?.color_warning ?? BRAND_KIT_DEFAULT.color_warning,
2918
3290
  color_success: customBrandKit?.color_success ?? BRAND_KIT_DEFAULT.color_success,
2919
3291
  color_info: customBrandKit?.color_info ?? BRAND_KIT_DEFAULT.color_info,
2920
- color_white: customBrandKit?.color_white ?? BRAND_KIT_DEFAULT.color_white
3292
+ color_white: customBrandKit?.color_white ?? BRAND_KIT_DEFAULT.color_white,
3293
+ color_form_field_placeholder: customBrandKit?.color_form_field_placeholder ?? BRAND_KIT_DEFAULT.color_form_field_placeholder,
3294
+ color_form_field_border: customBrandKit?.color_form_field_border ?? BRAND_KIT_DEFAULT.color_form_field_border,
3295
+ color_form_field_focused_border: customBrandKit?.color_form_field_focused_border ?? BRAND_KIT_DEFAULT.color_form_field_focused_border,
3296
+ color_form_field_background: customBrandKit?.color_form_field_background ?? BRAND_KIT_DEFAULT.color_form_field_background,
3297
+ color_form_field_focused_background: customBrandKit?.color_form_field_focused_background ?? BRAND_KIT_DEFAULT.color_form_field_focused_background,
3298
+ color_form_field_accent: customBrandKit?.color_form_field_accent ?? BRAND_KIT_DEFAULT.color_form_field_accent
2921
3299
  };
2922
3300
  };
2923
3301
  const useBrandKit = () => {
@@ -2926,13 +3304,13 @@ const useBrandKit = () => {
2926
3304
 
2927
3305
  //#endregion
2928
3306
  //#region src/components-flex/state/State.svelte
2929
- var root$45 = $.template(`<!> <!>`, 1);
3307
+ var root$48 = $.template(`<!> <!>`, 1);
2930
3308
  function State($$anchor, $$props) {
2931
3309
  $.push($$props, false);
2932
3310
  let customBrandKit = $.prop($$props, "customBrandKit", 8, void 0);
2933
3311
  setContext("brandKit", getBrandKit(customBrandKit()));
2934
3312
  $.init();
2935
- var fragment = root$45();
3313
+ var fragment = root$48();
2936
3314
  var node = $.first_child(fragment);
2937
3315
  Header(node, {});
2938
3316
  var node_1 = $.sibling(node, 2);
@@ -2944,14 +3322,14 @@ function State($$anchor, $$props) {
2944
3322
  //#endregion
2945
3323
  //#region src/components-flex/state/StateItem.svelte
2946
3324
  const STATE_ITEM_CONTEXT_KEY = Symbol();
2947
- var root_1$9 = $.template(`<div class="state-item svelte-2qb6dm"></div> <!>`, 1);
2948
- const $$css$23 = {
3325
+ var root_1$15 = $.template(`<div class="state-item svelte-2qb6dm"></div> <!>`, 1);
3326
+ const $$css$33 = {
2949
3327
  hash: "svelte-2qb6dm",
2950
3328
  code: ".state-item.svelte-2qb6dm {position:absolute;display:none;}"
2951
3329
  };
2952
3330
  function StateItem($$anchor, $$props) {
2953
3331
  $.push($$props, false);
2954
- $.append_styles($$anchor, $$css$23);
3332
+ $.append_styles($$anchor, $$css$33);
2955
3333
  const [$$stores, $$cleanup] = $.setup_stores();
2956
3334
  const $state = () => $.store_get(state, "$state", $$stores);
2957
3335
  let path = $.prop($$props, "path", 8);
@@ -2963,19 +3341,17 @@ function StateItem($$anchor, $$props) {
2963
3341
  $.init();
2964
3342
  var fragment = $.comment();
2965
3343
  var node = $.first_child(fragment);
2966
- {
2967
- var consequent = ($$anchor$1) => {
2968
- var fragment_1 = root_1$9();
2969
- var div = $.first_child(fragment_1);
2970
- var node_1 = $.sibling(div, 2);
2971
- $.slot(node_1, $$props, "default", {}, null);
2972
- $.template_effect(() => $.set_attribute(div, "data-state-path", path()));
2973
- $.append($$anchor$1, fragment_1);
2974
- };
2975
- $.if(node, ($$render) => {
2976
- if ($state() === path()) $$render(consequent);
2977
- });
2978
- }
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
+ });
2979
3355
  $.append($$anchor, fragment);
2980
3356
  $.pop();
2981
3357
  $$cleanup();
@@ -3300,10 +3676,18 @@ const linkTo = (to, targetBlank = true, decode = false) => () => {
3300
3676
  });
3301
3677
  await sleep(450);
3302
3678
  }
3303
- const isRequiredWindowOpen = target === "native" ? false : targetBlank;
3304
- if (isRequiredWindowOpen) window.open(decodedTo);
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");
3305
3689
  Promise.race([_send(), sleep(650)]).then(() => {
3306
- if (!isRequiredWindowOpen) location.href = decodedTo;
3690
+ if (!targetBlank) location.href = decodedTo;
3307
3691
  });
3308
3692
  };
3309
3693
  /** @internal */
@@ -3329,6 +3713,29 @@ const submitForm = (to) => () => {
3329
3713
  _moveTo(to);
3330
3714
  };
3331
3715
  /** @internal */
3716
+ const submitFormProgress = (to) => () => {
3717
+ onSubmitForm(({ currentStateValues, currentStateIdentifyValues }) => {
3718
+ send_event("_answer_question_progress", {
3719
+ ...currentStateValues,
3720
+ state: getState()
3721
+ });
3722
+ if (Object.keys(currentStateIdentifyValues).length > 0) send_event("identify", currentStateIdentifyValues);
3723
+ console.log("currentStateValues", currentStateValues);
3724
+ console.log("currentStateIdentifyValues", currentStateIdentifyValues);
3725
+ _moveTo(to);
3726
+ });
3727
+ };
3728
+ /** @internal */
3729
+ const submitFormFinal = (to) => () => {
3730
+ onSubmitForm(({ allValues, allIdentifyValues }) => {
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);
3735
+ _moveTo(to);
3736
+ });
3737
+ };
3738
+ /** @internal */
3332
3739
  const bootChat = (hide_launcher, placement_pc, placement_mobile, horizontal_spacing_pc, horizontal_spacing_mobile, vertical_spacing_pc, vertical_spacing_mobile, theme_color, header_title, header_description, launcher_image) => () => {
3333
3740
  const options = {
3334
3741
  hide_launcher,
@@ -3356,6 +3763,8 @@ const execOnClickOperation = (onClickOperation) => {
3356
3763
  else if (onClickOperation.operation === "closeApp") closeApp(onClickOperation.args[0] || "button")();
3357
3764
  else if (onClickOperation.operation === "runScript") runScript(onClickOperation.args[0])();
3358
3765
  else if (onClickOperation.operation === "submitForm") submitForm(onClickOperation.args[0])();
3766
+ else if (onClickOperation.operation === "submitFormFinal") submitFormFinal(onClickOperation.args[0])();
3767
+ else if (onClickOperation.operation === "submitFormProgress") submitFormProgress(onClickOperation.args[0])();
3359
3768
  else if (onClickOperation.operation === "bootChat") bootChat(...onClickOperation.args)();
3360
3769
  };
3361
3770
  function getAnimation(animation) {
@@ -3485,24 +3894,30 @@ var useClickable_default = useClickable;
3485
3894
 
3486
3895
  //#endregion
3487
3896
  //#region src/hooks/useInjectCustomizeCss.ts
3488
- const useInjectCustomizeCss = (props) => {
3897
+ const DATA_ATTR_LAYER_ID_KEY = "data-customize-css-layer-id";
3898
+ const useInjectCustomizeCss = (props, layerId) => {
3489
3899
  function injectCss() {
3490
- const modalElement = document.querySelector(`.${KARTE_MODAL_ROOT}`);
3900
+ let headAppended = false;
3901
+ const roots = Array.from(document.querySelectorAll(`.${KARTE_ACTION_ROOT}[data-${KARTE_ACTION_RID}='${actionId}']`));
3491
3902
  const style = document.createElement("style");
3903
+ style.setAttribute(DATA_ATTR_LAYER_ID_KEY, layerId);
3492
3904
  style.textContent = props.customizeCss;
3493
- if (modalElement?.shadowRoot) modalElement.shadowRoot.appendChild(style);
3494
- else document.head.appendChild(style);
3495
- return () => {
3496
- if (modalElement?.shadowRoot) modalElement.shadowRoot.removeChild(style);
3497
- else document.head.removeChild(style);
3498
- };
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) {
3913
+ document.head.appendChild(style);
3914
+ headAppended = true;
3915
+ }
3916
+ });
3499
3917
  }
3500
3918
  onMount$1(() => {
3501
3919
  if (!props.isCustomizeCss) return;
3502
- const removeCss = injectCss();
3503
- return () => {
3504
- removeCss();
3505
- };
3920
+ injectCss();
3506
3921
  });
3507
3922
  };
3508
3923
 
@@ -3533,20 +3948,20 @@ const AVATAR_SIZE_STYLES = {
3533
3948
 
3534
3949
  //#endregion
3535
3950
  //#region src/components-flex/avatar/Avatar.svelte
3536
- var root_1$8 = $.template(`<img class="avatar-image svelte-1xhdr99">`);
3537
- const $$css$22 = {
3951
+ var root_1$14 = $.template(`<img class="avatar-image svelte-1xhdr99">`);
3952
+ const $$css$32 = {
3538
3953
  hash: "svelte-1xhdr99",
3539
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;}"
3540
3955
  };
3541
3956
  function Avatar($$anchor, $$props) {
3542
3957
  $.push($$props, false);
3543
- $.append_styles($$anchor, $$css$22);
3958
+ $.append_styles($$anchor, $$css$32);
3544
3959
  const styleObj = $.mutable_state();
3545
3960
  const style = $.mutable_state();
3546
3961
  const imgStyle = $.mutable_state();
3547
3962
  let props = $.prop($$props, "props", 24, () => ({}));
3548
3963
  let layerId = $.prop($$props, "layerId", 8, "");
3549
- useInjectCustomizeCss(props());
3964
+ useInjectCustomizeCss(props(), layerId());
3550
3965
  const { attributes, element, handleClick } = useClickable_default(props());
3551
3966
  const avatarSizeStyle = !isNaN(Number(props().size)) ? {
3552
3967
  width: `${props().size}px`,
@@ -3595,14 +4010,15 @@ function Avatar($$anchor, $$props) {
3595
4010
  var node = $.first_child(fragment);
3596
4011
  $.element(node, () => element, false, ($$element, $$anchor$1) => {
3597
4012
  let attributes_1;
3598
- $.template_effect(() => attributes_1 = $.set_attributes($$element, attributes_1, {
4013
+ $.template_effect(($0) => attributes_1 = $.set_attributes($$element, attributes_1, {
3599
4014
  ...attributes,
3600
- class: "avatar",
4015
+ id: props().id,
4016
+ class: $0,
3601
4017
  style: $.get(style),
3602
4018
  "data-layer-id": layerId()
3603
- }, "svelte-1xhdr99"));
4019
+ }, "svelte-1xhdr99"), [() => ["avatar", ...props().classNames ?? []].join(" ")], $.derived_safe_equal);
3604
4020
  $.event("click", $$element, handleClick);
3605
- var img = root_1$8();
4021
+ var img = root_1$14();
3606
4022
  $.template_effect(() => {
3607
4023
  $.set_attribute(img, "src", props().image);
3608
4024
  $.set_attribute(img, "alt", props().alt);
@@ -3664,10 +4080,10 @@ const buttonPropsDefault = {
3664
4080
 
3665
4081
  //#endregion
3666
4082
  //#region src/components-flex/icon/variants/IconArrowDown.svelte
3667
- var root$44 = $.ns_template(`<svg xmlns="http://www.w3.org/2000/svg" style="width: 100%;height: 100%;" viewBox="0 0 384 512"><path d="M169.4 470.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 370.8 224 64c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 306.7L54.6 265.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z"></path></svg>`);
4083
+ var root$47 = $.ns_template(`<svg xmlns="http://www.w3.org/2000/svg" style="width: 100%;height: 100%;" viewBox="0 0 384 512"><path d="M169.4 470.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 370.8 224 64c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 306.7L54.6 265.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z"></path></svg>`);
3668
4084
  function IconArrowDown($$anchor, $$props) {
3669
4085
  let color = $.prop($$props, "color", 8);
3670
- var svg = root$44();
4086
+ var svg = root$47();
3671
4087
  var path = $.child(svg);
3672
4088
  $.reset(svg);
3673
4089
  $.template_effect(() => $.set_attribute(path, "fill", color()));
@@ -3676,10 +4092,10 @@ function IconArrowDown($$anchor, $$props) {
3676
4092
 
3677
4093
  //#endregion
3678
4094
  //#region src/components-flex/icon/variants/IconArrowUp.svelte
3679
- var root$43 = $.ns_template(`<svg xmlns="http://www.w3.org/2000/svg" style="width: 100%;height: 100%;" viewBox="0 0 384 512"><path d="M214.6 41.4c-12.5-12.5-32.8-12.5-45.3 0l-160 160c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L160 141.2V448c0 17.7 14.3 32 32 32s32-14.3 32-32V141.2L329.4 246.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-160-160z"></path></svg>`);
4095
+ var root$46 = $.ns_template(`<svg xmlns="http://www.w3.org/2000/svg" style="width: 100%;height: 100%;" viewBox="0 0 384 512"><path d="M214.6 41.4c-12.5-12.5-32.8-12.5-45.3 0l-160 160c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L160 141.2V448c0 17.7 14.3 32 32 32s32-14.3 32-32V141.2L329.4 246.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-160-160z"></path></svg>`);
3680
4096
  function IconArrowUp($$anchor, $$props) {
3681
4097
  let color = $.prop($$props, "color", 8);
3682
- var svg = root$43();
4098
+ var svg = root$46();
3683
4099
  var path = $.child(svg);
3684
4100
  $.reset(svg);
3685
4101
  $.template_effect(() => $.set_attribute(path, "fill", color()));
@@ -3688,10 +4104,10 @@ function IconArrowUp($$anchor, $$props) {
3688
4104
 
3689
4105
  //#endregion
3690
4106
  //#region src/components-flex/icon/variants/IconUsers.svelte
3691
- var root$42 = $.ns_template(`<svg xmlns="http://www.w3.org/2000/svg" style="width: 100%;height: 100%;" viewBox="0 0 640 512"><path d="M144 0a80 80 0 1 1 0 160A80 80 0 1 1 144 0zM512 0a80 80 0 1 1 0 160A80 80 0 1 1 512 0zM0 298.7C0 239.8 47.8 192 106.7 192h42.7c15.9 0 31 3.5 44.6 9.7c-1.3 7.2-1.9 14.7-1.9 22.3c0 38.2 16.8 72.5 43.3 96c-.2 0-.4 0-.7 0H21.3C9.6 320 0 310.4 0 298.7zM405.3 320c-.2 0-.4 0-.7 0c26.6-23.5 43.3-57.8 43.3-96c0-7.6-.7-15-1.9-22.3c13.6-6.3 28.7-9.7 44.6-9.7h42.7C592.2 192 640 239.8 640 298.7c0 11.8-9.6 21.3-21.3 21.3H405.3zM224 224a96 96 0 1 1 192 0 96 96 0 1 1 -192 0zM128 485.3C128 411.7 187.7 352 261.3 352H378.7C452.3 352 512 411.7 512 485.3c0 14.7-11.9 26.7-26.7 26.7H154.7c-14.7 0-26.7-11.9-26.7-26.7z"></path></svg>`);
4107
+ var root$45 = $.ns_template(`<svg xmlns="http://www.w3.org/2000/svg" style="width: 100%;height: 100%;" viewBox="0 0 640 512"><path d="M144 0a80 80 0 1 1 0 160A80 80 0 1 1 144 0zM512 0a80 80 0 1 1 0 160A80 80 0 1 1 512 0zM0 298.7C0 239.8 47.8 192 106.7 192h42.7c15.9 0 31 3.5 44.6 9.7c-1.3 7.2-1.9 14.7-1.9 22.3c0 38.2 16.8 72.5 43.3 96c-.2 0-.4 0-.7 0H21.3C9.6 320 0 310.4 0 298.7zM405.3 320c-.2 0-.4 0-.7 0c26.6-23.5 43.3-57.8 43.3-96c0-7.6-.7-15-1.9-22.3c13.6-6.3 28.7-9.7 44.6-9.7h42.7C592.2 192 640 239.8 640 298.7c0 11.8-9.6 21.3-21.3 21.3H405.3zM224 224a96 96 0 1 1 192 0 96 96 0 1 1 -192 0zM128 485.3C128 411.7 187.7 352 261.3 352H378.7C452.3 352 512 411.7 512 485.3c0 14.7-11.9 26.7-26.7 26.7H154.7c-14.7 0-26.7-11.9-26.7-26.7z"></path></svg>`);
3692
4108
  function IconUsers($$anchor, $$props) {
3693
4109
  let color = $.prop($$props, "color", 8);
3694
- var svg = root$42();
4110
+ var svg = root$45();
3695
4111
  var path = $.child(svg);
3696
4112
  $.reset(svg);
3697
4113
  $.template_effect(() => $.set_attribute(path, "fill", color()));
@@ -3700,10 +4116,10 @@ function IconUsers($$anchor, $$props) {
3700
4116
 
3701
4117
  //#endregion
3702
4118
  //#region src/components-flex/icon/variants/IconArrowLeft.svelte
3703
- var root$41 = $.ns_template(`<svg xmlns="http://www.w3.org/2000/svg" style="width: 100%;height: 100%;" viewBox="0 0 448 512"><path d="M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.2 288 416 288c17.7 0 32-14.3 32-32s-14.3-32-32-32l-306.7 0L214.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160z"></path></svg>`);
4119
+ var root$44 = $.ns_template(`<svg xmlns="http://www.w3.org/2000/svg" style="width: 100%;height: 100%;" viewBox="0 0 448 512"><path d="M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.2 288 416 288c17.7 0 32-14.3 32-32s-14.3-32-32-32l-306.7 0L214.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160z"></path></svg>`);
3704
4120
  function IconArrowLeft($$anchor, $$props) {
3705
4121
  let color = $.prop($$props, "color", 8);
3706
- var svg = root$41();
4122
+ var svg = root$44();
3707
4123
  var path = $.child(svg);
3708
4124
  $.reset(svg);
3709
4125
  $.template_effect(() => $.set_attribute(path, "fill", color()));
@@ -3712,10 +4128,10 @@ function IconArrowLeft($$anchor, $$props) {
3712
4128
 
3713
4129
  //#endregion
3714
4130
  //#region src/components-flex/icon/variants/IconArrowRight.svelte
3715
- var root$40 = $.ns_template(`<svg xmlns="http://www.w3.org/2000/svg" style="width: 100%;height: 100%;" viewBox="0 0 448 512"><path d="M438.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L338.8 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l306.7 0L233.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160z"></path></svg>`);
4131
+ var root$43 = $.ns_template(`<svg xmlns="http://www.w3.org/2000/svg" style="width: 100%;height: 100%;" viewBox="0 0 448 512"><path d="M438.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L338.8 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l306.7 0L233.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160z"></path></svg>`);
3716
4132
  function IconArrowRight($$anchor, $$props) {
3717
4133
  let color = $.prop($$props, "color", 8);
3718
- var svg = root$40();
4134
+ var svg = root$43();
3719
4135
  var path = $.child(svg);
3720
4136
  $.reset(svg);
3721
4137
  $.template_effect(() => $.set_attribute(path, "fill", color()));
@@ -3724,10 +4140,10 @@ function IconArrowRight($$anchor, $$props) {
3724
4140
 
3725
4141
  //#endregion
3726
4142
  //#region src/components-flex/icon/variants/IconBell.svelte
3727
- var root$39 = $.ns_template(`<svg xmlns="http://www.w3.org/2000/svg" style="width: 100%;height: 100%;" viewBox="0 0 448 512"><path d="M224 0c-17.7 0-32 14.3-32 32V51.2C119 66 64 130.6 64 208v18.8c0 47-17.3 92.4-48.5 127.6l-7.4 8.3c-8.4 9.4-10.4 22.9-5.3 34.4S19.4 416 32 416H416c12.6 0 24-7.4 29.2-18.9s3.1-25-5.3-34.4l-7.4-8.3C401.3 319.2 384 273.9 384 226.8V208c0-77.4-55-142-128-156.8V32c0-17.7-14.3-32-32-32zm45.3 493.3c12-12 18.7-28.3 18.7-45.3H224 160c0 17 6.7 33.3 18.7 45.3s28.3 18.7 45.3 18.7s33.3-6.7 45.3-18.7z"></path></svg>`);
4143
+ var root$42 = $.ns_template(`<svg xmlns="http://www.w3.org/2000/svg" style="width: 100%;height: 100%;" viewBox="0 0 448 512"><path d="M224 0c-17.7 0-32 14.3-32 32V51.2C119 66 64 130.6 64 208v18.8c0 47-17.3 92.4-48.5 127.6l-7.4 8.3c-8.4 9.4-10.4 22.9-5.3 34.4S19.4 416 32 416H416c12.6 0 24-7.4 29.2-18.9s3.1-25-5.3-34.4l-7.4-8.3C401.3 319.2 384 273.9 384 226.8V208c0-77.4-55-142-128-156.8V32c0-17.7-14.3-32-32-32zm45.3 493.3c12-12 18.7-28.3 18.7-45.3H224 160c0 17 6.7 33.3 18.7 45.3s28.3 18.7 45.3 18.7s33.3-6.7 45.3-18.7z"></path></svg>`);
3728
4144
  function IconBell($$anchor, $$props) {
3729
4145
  let color = $.prop($$props, "color", 8);
3730
- var svg = root$39();
4146
+ var svg = root$42();
3731
4147
  var path = $.child(svg);
3732
4148
  $.reset(svg);
3733
4149
  $.template_effect(() => $.set_attribute(path, "fill", color()));
@@ -3736,10 +4152,10 @@ function IconBell($$anchor, $$props) {
3736
4152
 
3737
4153
  //#endregion
3738
4154
  //#region src/components-flex/icon/variants/IconArrowUpFromSquare.svelte
3739
- var root$38 = $.ns_template(`<svg xmlns="http://www.w3.org/2000/svg" style="width: 100%;height: 100%;" viewBox="0 0 512 512"><path d="M320 0c-17.7 0-32 14.3-32 32s14.3 32 32 32h82.7L201.4 265.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L448 109.3V192c0 17.7 14.3 32 32 32s32-14.3 32-32V32c0-17.7-14.3-32-32-32H320zM80 32C35.8 32 0 67.8 0 112V432c0 44.2 35.8 80 80 80H400c44.2 0 80-35.8 80-80V320c0-17.7-14.3-32-32-32s-32 14.3-32 32V432c0 8.8-7.2 16-16 16H80c-8.8 0-16-7.2-16-16V112c0-8.8 7.2-16 16-16H192c17.7 0 32-14.3 32-32s-14.3-32-32-32H80z"></path></svg>`);
4155
+ var root$41 = $.ns_template(`<svg xmlns="http://www.w3.org/2000/svg" style="width: 100%;height: 100%;" viewBox="0 0 512 512"><path d="M320 0c-17.7 0-32 14.3-32 32s14.3 32 32 32h82.7L201.4 265.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L448 109.3V192c0 17.7 14.3 32 32 32s32-14.3 32-32V32c0-17.7-14.3-32-32-32H320zM80 32C35.8 32 0 67.8 0 112V432c0 44.2 35.8 80 80 80H400c44.2 0 80-35.8 80-80V320c0-17.7-14.3-32-32-32s-32 14.3-32 32V432c0 8.8-7.2 16-16 16H80c-8.8 0-16-7.2-16-16V112c0-8.8 7.2-16 16-16H192c17.7 0 32-14.3 32-32s-14.3-32-32-32H80z"></path></svg>`);
3740
4156
  function IconArrowUpFromSquare($$anchor, $$props) {
3741
4157
  let color = $.prop($$props, "color", 8);
3742
- var svg = root$38();
4158
+ var svg = root$41();
3743
4159
  var path = $.child(svg);
3744
4160
  $.reset(svg);
3745
4161
  $.template_effect(() => $.set_attribute(path, "fill", color()));
@@ -3748,10 +4164,10 @@ function IconArrowUpFromSquare($$anchor, $$props) {
3748
4164
 
3749
4165
  //#endregion
3750
4166
  //#region src/components-flex/icon/variants/IconTicket.svelte
3751
- var root$37 = $.ns_template(`<svg xmlns="http://www.w3.org/2000/svg" style="width: 100%;height: 100%;" viewBox="0 0 576 512"><path d="M64 64C28.7 64 0 92.7 0 128v64c0 8.8 7.4 15.7 15.7 18.6C34.5 217.1 48 235 48 256s-13.5 38.9-32.3 45.4C7.4 304.3 0 311.2 0 320v64c0 35.3 28.7 64 64 64H512c35.3 0 64-28.7 64-64V320c0-8.8-7.4-15.7-15.7-18.6C541.5 294.9 528 277 528 256s13.5-38.9 32.3-45.4c8.3-2.9 15.7-9.8 15.7-18.6V128c0-35.3-28.7-64-64-64H64zm64 112l0 160c0 8.8 7.2 16 16 16H432c8.8 0 16-7.2 16-16V176c0-8.8-7.2-16-16-16H144c-8.8 0-16 7.2-16 16zM96 160c0-17.7 14.3-32 32-32H448c17.7 0 32 14.3 32 32V352c0 17.7-14.3 32-32 32H128c-17.7 0-32-14.3-32-32V160z"></path></svg>`);
4167
+ var root$40 = $.ns_template(`<svg xmlns="http://www.w3.org/2000/svg" style="width: 100%;height: 100%;" viewBox="0 0 576 512"><path d="M64 64C28.7 64 0 92.7 0 128v64c0 8.8 7.4 15.7 15.7 18.6C34.5 217.1 48 235 48 256s-13.5 38.9-32.3 45.4C7.4 304.3 0 311.2 0 320v64c0 35.3 28.7 64 64 64H512c35.3 0 64-28.7 64-64V320c0-8.8-7.4-15.7-15.7-18.6C541.5 294.9 528 277 528 256s13.5-38.9 32.3-45.4c8.3-2.9 15.7-9.8 15.7-18.6V128c0-35.3-28.7-64-64-64H64zm64 112l0 160c0 8.8 7.2 16 16 16H432c8.8 0 16-7.2 16-16V176c0-8.8-7.2-16-16-16H144c-8.8 0-16 7.2-16 16zM96 160c0-17.7 14.3-32 32-32H448c17.7 0 32 14.3 32 32V352c0 17.7-14.3 32-32 32H128c-17.7 0-32-14.3-32-32V160z"></path></svg>`);
3752
4168
  function IconTicket($$anchor, $$props) {
3753
4169
  let color = $.prop($$props, "color", 8);
3754
- var svg = root$37();
4170
+ var svg = root$40();
3755
4171
  var path = $.child(svg);
3756
4172
  $.reset(svg);
3757
4173
  $.template_effect(() => $.set_attribute(path, "fill", color()));
@@ -3760,10 +4176,10 @@ function IconTicket($$anchor, $$props) {
3760
4176
 
3761
4177
  //#endregion
3762
4178
  //#region src/components-flex/icon/variants/IconTrack.svelte
3763
- var root$36 = $.ns_template(`<svg xmlns="http://www.w3.org/2000/svg" style="width: 100%;height: 100%;" viewBox="0 0 640 512"><path d="M48 0C21.5 0 0 21.5 0 48V368c0 26.5 21.5 48 48 48H64c0 53 43 96 96 96s96-43 96-96H384c0 53 43 96 96 96s96-43 96-96h32c17.7 0 32-14.3 32-32s-14.3-32-32-32V288 256 237.3c0-17-6.7-33.3-18.7-45.3L512 114.7c-12-12-28.3-18.7-45.3-18.7H416V48c0-26.5-21.5-48-48-48H48zM416 160h50.7L544 237.3V256H416V160zM112 416a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zm368-48a48 48 0 1 1 0 96 48 48 0 1 1 0-96z"></path></svg>`);
4179
+ var root$39 = $.ns_template(`<svg xmlns="http://www.w3.org/2000/svg" style="width: 100%;height: 100%;" viewBox="0 0 640 512"><path d="M48 0C21.5 0 0 21.5 0 48V368c0 26.5 21.5 48 48 48H64c0 53 43 96 96 96s96-43 96-96H384c0 53 43 96 96 96s96-43 96-96h32c17.7 0 32-14.3 32-32s-14.3-32-32-32V288 256 237.3c0-17-6.7-33.3-18.7-45.3L512 114.7c-12-12-28.3-18.7-45.3-18.7H416V48c0-26.5-21.5-48-48-48H48zM416 160h50.7L544 237.3V256H416V160zM112 416a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zm368-48a48 48 0 1 1 0 96 48 48 0 1 1 0-96z"></path></svg>`);
3764
4180
  function IconTrack($$anchor, $$props) {
3765
4181
  let color = $.prop($$props, "color", 8);
3766
- var svg = root$36();
4182
+ var svg = root$39();
3767
4183
  var path = $.child(svg);
3768
4184
  $.reset(svg);
3769
4185
  $.template_effect(() => $.set_attribute(path, "fill", color()));
@@ -3772,10 +4188,10 @@ function IconTrack($$anchor, $$props) {
3772
4188
 
3773
4189
  //#endregion
3774
4190
  //#region src/components-flex/icon/variants/IconCartShopping.svelte
3775
- var root$35 = $.ns_template(`<svg xmlns="http://www.w3.org/2000/svg" style="width: 100%;height: 100%;" viewBox="0 0 576 512"><path d="M0 24C0 10.7 10.7 0 24 0H69.5c22 0 41.5 12.8 50.6 32h411c26.3 0 45.5 25 38.6 50.4l-41 152.3c-8.5 31.4-37 53.3-69.5 53.3H170.7l5.4 28.5c2.2 11.3 12.1 19.5 23.6 19.5H488c13.3 0 24 10.7 24 24s-10.7 24-24 24H199.7c-34.6 0-64.3-24.6-70.7-58.5L77.4 54.5c-.7-3.8-4-6.5-7.9-6.5H24C10.7 48 0 37.3 0 24zM128 464a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zm336-48a48 48 0 1 1 0 96 48 48 0 1 1 0-96z"></path></svg>`);
4191
+ var root$38 = $.ns_template(`<svg xmlns="http://www.w3.org/2000/svg" style="width: 100%;height: 100%;" viewBox="0 0 576 512"><path d="M0 24C0 10.7 10.7 0 24 0H69.5c22 0 41.5 12.8 50.6 32h411c26.3 0 45.5 25 38.6 50.4l-41 152.3c-8.5 31.4-37 53.3-69.5 53.3H170.7l5.4 28.5c2.2 11.3 12.1 19.5 23.6 19.5H488c13.3 0 24 10.7 24 24s-10.7 24-24 24H199.7c-34.6 0-64.3-24.6-70.7-58.5L77.4 54.5c-.7-3.8-4-6.5-7.9-6.5H24C10.7 48 0 37.3 0 24zM128 464a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zm336-48a48 48 0 1 1 0 96 48 48 0 1 1 0-96z"></path></svg>`);
3776
4192
  function IconCartShopping($$anchor, $$props) {
3777
4193
  let color = $.prop($$props, "color", 8);
3778
- var svg = root$35();
4194
+ var svg = root$38();
3779
4195
  var path = $.child(svg);
3780
4196
  $.reset(svg);
3781
4197
  $.template_effect(() => $.set_attribute(path, "fill", color()));
@@ -3784,10 +4200,10 @@ function IconCartShopping($$anchor, $$props) {
3784
4200
 
3785
4201
  //#endregion
3786
4202
  //#region src/components-flex/icon/variants/IconCircle.svelte
3787
- var root$34 = $.ns_template(`<svg xmlns="http://www.w3.org/2000/svg" style="width: 100%;height: 100%;" viewBox="0 0 512 512"><path d="M256 512c141.4 0 256-114.6 256-256S397.4 0 256 0S0 114.6 0 256S114.6 512 256 512z"></path></svg>`);
4203
+ var root$37 = $.ns_template(`<svg xmlns="http://www.w3.org/2000/svg" style="width: 100%;height: 100%;" viewBox="0 0 512 512"><path d="M256 512c141.4 0 256-114.6 256-256S397.4 0 256 0S0 114.6 0 256S114.6 512 256 512z"></path></svg>`);
3788
4204
  function IconCircle($$anchor, $$props) {
3789
4205
  let color = $.prop($$props, "color", 8);
3790
- var svg = root$34();
4206
+ var svg = root$37();
3791
4207
  var path = $.child(svg);
3792
4208
  $.reset(svg);
3793
4209
  $.template_effect(() => $.set_attribute(path, "fill", color()));
@@ -3796,10 +4212,10 @@ function IconCircle($$anchor, $$props) {
3796
4212
 
3797
4213
  //#endregion
3798
4214
  //#region src/components-flex/icon/variants/IconCircleQuestion.svelte
3799
- var root$33 = $.ns_template(`<svg xmlns="http://www.w3.org/2000/svg" style="width: 100%;height: 100%;" viewBox="0 0 512 512"><path d="M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM169.8 165.3c7.9-22.3 29.1-37.3 52.8-37.3h58.3c34.9 0 63.1 28.3 63.1 63.1c0 22.6-12.1 43.5-31.7 54.8L280 264.4c-.2 13-10.9 23.6-24 23.6c-13.3 0-24-10.7-24-24V250.5c0-8.6 4.6-16.5 12.1-20.8l44.3-25.4c4.7-2.7 7.6-7.7 7.6-13.1c0-8.4-6.8-15.1-15.1-15.1H222.6c-3.4 0-6.4 2.1-7.5 5.3l-.4 1.2c-4.4 12.5-18.2 19-30.6 14.6s-19-18.2-14.6-30.6l.4-1.2zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"></path></svg>`);
4215
+ var root$36 = $.ns_template(`<svg xmlns="http://www.w3.org/2000/svg" style="width: 100%;height: 100%;" viewBox="0 0 512 512"><path d="M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM169.8 165.3c7.9-22.3 29.1-37.3 52.8-37.3h58.3c34.9 0 63.1 28.3 63.1 63.1c0 22.6-12.1 43.5-31.7 54.8L280 264.4c-.2 13-10.9 23.6-24 23.6c-13.3 0-24-10.7-24-24V250.5c0-8.6 4.6-16.5 12.1-20.8l44.3-25.4c4.7-2.7 7.6-7.7 7.6-13.1c0-8.4-6.8-15.1-15.1-15.1H222.6c-3.4 0-6.4 2.1-7.5 5.3l-.4 1.2c-4.4 12.5-18.2 19-30.6 14.6s-19-18.2-14.6-30.6l.4-1.2zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"></path></svg>`);
3800
4216
  function IconCircleQuestion($$anchor, $$props) {
3801
4217
  let color = $.prop($$props, "color", 8);
3802
- var svg = root$33();
4218
+ var svg = root$36();
3803
4219
  var path = $.child(svg);
3804
4220
  $.reset(svg);
3805
4221
  $.template_effect(() => $.set_attribute(path, "fill", color()));
@@ -3808,10 +4224,10 @@ function IconCircleQuestion($$anchor, $$props) {
3808
4224
 
3809
4225
  //#endregion
3810
4226
  //#region src/components-flex/icon/variants/IconCheck.svelte
3811
- var root$32 = $.ns_template(`<svg xmlns="http://www.w3.org/2000/svg" style="width: 100%;height: 100%;" viewBox="0 0 512 512"><path d="M470.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L192 338.7 425.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"></path></svg>`);
4227
+ var root$35 = $.ns_template(`<svg xmlns="http://www.w3.org/2000/svg" style="width: 100%;height: 100%;" viewBox="0 0 512 512"><path d="M470.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L192 338.7 425.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"></path></svg>`);
3812
4228
  function IconCheck($$anchor, $$props) {
3813
4229
  let color = $.prop($$props, "color", 8);
3814
- var svg = root$32();
4230
+ var svg = root$35();
3815
4231
  var path = $.child(svg);
3816
4232
  $.reset(svg);
3817
4233
  $.template_effect(() => $.set_attribute(path, "fill", color()));
@@ -3820,10 +4236,10 @@ function IconCheck($$anchor, $$props) {
3820
4236
 
3821
4237
  //#endregion
3822
4238
  //#region src/components-flex/icon/variants/IconXMark.svelte
3823
- var root$31 = $.ns_template(`<svg xmlns="http://www.w3.org/2000/svg" style="width: 100%;height: 100%;" viewBox="0 0 320 512"><path d="M310.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L160 210.7 54.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L114.7 256 9.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L160 301.3 265.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L205.3 256 310.6 150.6z"></path></svg>`);
4239
+ var root$34 = $.ns_template(`<svg xmlns="http://www.w3.org/2000/svg" style="width: 100%;height: 100%;" viewBox="0 0 320 512"><path d="M310.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L160 210.7 54.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L114.7 256 9.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L160 301.3 265.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L205.3 256 310.6 150.6z"></path></svg>`);
3824
4240
  function IconXMark($$anchor, $$props) {
3825
4241
  let color = $.prop($$props, "color", 8);
3826
- var svg = root$31();
4242
+ var svg = root$34();
3827
4243
  var path = $.child(svg);
3828
4244
  $.reset(svg);
3829
4245
  $.template_effect(() => $.set_attribute(path, "fill", color()));
@@ -3832,10 +4248,10 @@ function IconXMark($$anchor, $$props) {
3832
4248
 
3833
4249
  //#endregion
3834
4250
  //#region src/components-flex/icon/variants/IconPaperPlane.svelte
3835
- var root$30 = $.ns_template(`<svg xmlns="http://www.w3.org/2000/svg" style="width: 100%;height: 100%;" viewBox="0 0 512 512"><path d="M498.1 5.6c10.1 7 15.4 19.1 13.5 31.2l-64 416c-1.5 9.7-7.4 18.2-16 23s-18.9 5.4-28 1.6L284 427.7l-68.5 74.1c-8.9 9.7-22.9 12.9-35.2 8.1S160 493.2 160 480V396.4c0-4 1.5-7.8 4.2-10.7L331.8 202.8c5.8-6.3 5.6-16-.4-22s-15.7-6.4-22-.7L106 360.8 17.7 316.6C7.1 311.3 .3 300.7 0 288.9s5.9-22.8 16.1-28.7l448-256c10.7-6.1 23.9-5.5 34 1.4z"></path></svg>`);
4251
+ var root$33 = $.ns_template(`<svg xmlns="http://www.w3.org/2000/svg" style="width: 100%;height: 100%;" viewBox="0 0 512 512"><path d="M498.1 5.6c10.1 7 15.4 19.1 13.5 31.2l-64 416c-1.5 9.7-7.4 18.2-16 23s-18.9 5.4-28 1.6L284 427.7l-68.5 74.1c-8.9 9.7-22.9 12.9-35.2 8.1S160 493.2 160 480V396.4c0-4 1.5-7.8 4.2-10.7L331.8 202.8c5.8-6.3 5.6-16-.4-22s-15.7-6.4-22-.7L106 360.8 17.7 316.6C7.1 311.3 .3 300.7 0 288.9s5.9-22.8 16.1-28.7l448-256c10.7-6.1 23.9-5.5 34 1.4z"></path></svg>`);
3836
4252
  function IconPaperPlane($$anchor, $$props) {
3837
4253
  let color = $.prop($$props, "color", 8);
3838
- var svg = root$30();
4254
+ var svg = root$33();
3839
4255
  var path = $.child(svg);
3840
4256
  $.reset(svg);
3841
4257
  $.template_effect(() => $.set_attribute(path, "fill", color()));
@@ -3844,10 +4260,10 @@ function IconPaperPlane($$anchor, $$props) {
3844
4260
 
3845
4261
  //#endregion
3846
4262
  //#region src/components-flex/icon/variants/IconCopy.svelte
3847
- var root$29 = $.ns_template(`<svg xmlns="http://www.w3.org/2000/svg" style="width: 100%;height: 100%;" viewBox="0 0 512 512"><path d="M224 0c-35.3 0-64 28.7-64 64V288c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V64c0-35.3-28.7-64-64-64H224zM64 160c-35.3 0-64 28.7-64 64V448c0 35.3 28.7 64 64 64H288c35.3 0 64-28.7 64-64V384H288v64H64V224h64V160H64z"></path></svg>`);
4263
+ var root$32 = $.ns_template(`<svg xmlns="http://www.w3.org/2000/svg" style="width: 100%;height: 100%;" viewBox="0 0 512 512"><path d="M224 0c-35.3 0-64 28.7-64 64V288c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V64c0-35.3-28.7-64-64-64H224zM64 160c-35.3 0-64 28.7-64 64V448c0 35.3 28.7 64 64 64H288c35.3 0 64-28.7 64-64V384H288v64H64V224h64V160H64z"></path></svg>`);
3848
4264
  function IconCopy($$anchor, $$props) {
3849
4265
  let color = $.prop($$props, "color", 8);
3850
- var svg = root$29();
4266
+ var svg = root$32();
3851
4267
  var path = $.child(svg);
3852
4268
  $.reset(svg);
3853
4269
  $.template_effect(() => $.set_attribute(path, "fill", color()));
@@ -3856,10 +4272,10 @@ function IconCopy($$anchor, $$props) {
3856
4272
 
3857
4273
  //#endregion
3858
4274
  //#region src/components-flex/icon/variants/IconCircleXMark.svelte
3859
- var root$28 = $.ns_template(`<svg xmlns="http://www.w3.org/2000/svg" style="width: 100%;height: 100%;" viewBox="0 0 512 512"><path d="M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM175 175c9.4-9.4 24.6-9.4 33.9 0l47 47 47-47c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-47 47 47 47c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-47-47-47 47c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l47-47-47-47c-9.4-9.4-9.4-24.6 0-33.9z"></path></svg>`);
4275
+ var root$31 = $.ns_template(`<svg xmlns="http://www.w3.org/2000/svg" style="width: 100%;height: 100%;" viewBox="0 0 512 512"><path d="M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM175 175c9.4-9.4 24.6-9.4 33.9 0l47 47 47-47c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-47 47 47 47c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-47-47-47 47c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l47-47-47-47c-9.4-9.4-9.4-24.6 0-33.9z"></path></svg>`);
3860
4276
  function IconCircleXMark($$anchor, $$props) {
3861
4277
  let color = $.prop($$props, "color", 8);
3862
- var svg = root$28();
4278
+ var svg = root$31();
3863
4279
  var path = $.child(svg);
3864
4280
  $.reset(svg);
3865
4281
  $.template_effect(() => $.set_attribute(path, "fill", color()));
@@ -3868,10 +4284,10 @@ function IconCircleXMark($$anchor, $$props) {
3868
4284
 
3869
4285
  //#endregion
3870
4286
  //#region src/components-flex/icon/variants/IconHeart.svelte
3871
- var root$27 = $.ns_template(`<svg xmlns="http://www.w3.org/2000/svg" style="width: 100%;height: 100%;" viewBox="0 0 512 512"><path d="M47.6 300.4L228.3 469.1c7.5 7 17.4 10.9 27.7 10.9s20.2-3.9 27.7-10.9L464.4 300.4c30.4-28.3 47.6-68 47.6-109.5v-5.8c0-69.9-50.5-129.5-119.4-141C347 36.5 300.6 51.4 268 84L256 96 244 84c-32.6-32.6-79-47.5-124.6-39.9C50.5 55.6 0 115.2 0 185.1v5.8c0 41.5 17.2 81.2 47.6 109.5z"></path></svg>`);
4287
+ var root$30 = $.ns_template(`<svg xmlns="http://www.w3.org/2000/svg" style="width: 100%;height: 100%;" viewBox="0 0 512 512"><path d="M47.6 300.4L228.3 469.1c7.5 7 17.4 10.9 27.7 10.9s20.2-3.9 27.7-10.9L464.4 300.4c30.4-28.3 47.6-68 47.6-109.5v-5.8c0-69.9-50.5-129.5-119.4-141C347 36.5 300.6 51.4 268 84L256 96 244 84c-32.6-32.6-79-47.5-124.6-39.9C50.5 55.6 0 115.2 0 185.1v5.8c0 41.5 17.2 81.2 47.6 109.5z"></path></svg>`);
3872
4288
  function IconHeart($$anchor, $$props) {
3873
4289
  let color = $.prop($$props, "color", 8);
3874
- var svg = root$27();
4290
+ var svg = root$30();
3875
4291
  var path = $.child(svg);
3876
4292
  $.reset(svg);
3877
4293
  $.template_effect(() => $.set_attribute(path, "fill", color()));
@@ -3880,10 +4296,10 @@ function IconHeart($$anchor, $$props) {
3880
4296
 
3881
4297
  //#endregion
3882
4298
  //#region src/components-flex/icon/variants/IconMagnifyingGrass.svelte
3883
- var root$26 = $.ns_template(`<svg xmlns="http://www.w3.org/2000/svg" style="width: 100%;height: 100%;" viewBox="0 0 512 512"><path d="M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"></path></svg>`);
4299
+ var root$29 = $.ns_template(`<svg xmlns="http://www.w3.org/2000/svg" style="width: 100%;height: 100%;" viewBox="0 0 512 512"><path d="M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"></path></svg>`);
3884
4300
  function IconMagnifyingGrass($$anchor, $$props) {
3885
4301
  let color = $.prop($$props, "color", 8);
3886
- var svg = root$26();
4302
+ var svg = root$29();
3887
4303
  var path = $.child(svg);
3888
4304
  $.reset(svg);
3889
4305
  $.template_effect(() => $.set_attribute(path, "fill", color()));
@@ -3892,10 +4308,10 @@ function IconMagnifyingGrass($$anchor, $$props) {
3892
4308
 
3893
4309
  //#endregion
3894
4310
  //#region src/components-flex/icon/variants/IconStar.svelte
3895
- var root$25 = $.ns_template(`<svg xmlns="http://www.w3.org/2000/svg" style="width: 100%;height: 100%;" viewBox="0 0 576 512"><path d="M316.9 18C311.6 7 300.4 0 288.1 0s-23.4 7-28.8 18L195 150.3 51.4 171.5c-12 1.8-22 10.2-25.7 21.7s-.7 24.2 7.9 32.7L137.8 329 113.2 474.7c-2 12 3 24.2 12.9 31.3s23 8 33.8 2.3l128.3-68.5 128.3 68.5c10.8 5.7 23.9 4.9 33.8-2.3s14.9-19.3 12.9-31.3L438.5 329 542.7 225.9c8.6-8.5 11.7-21.2 7.9-32.7s-13.7-19.9-25.7-21.7L381.2 150.3 316.9 18z"></path></svg>`);
4311
+ var root$28 = $.ns_template(`<svg xmlns="http://www.w3.org/2000/svg" style="width: 100%;height: 100%;" viewBox="0 0 576 512"><path d="M316.9 18C311.6 7 300.4 0 288.1 0s-23.4 7-28.8 18L195 150.3 51.4 171.5c-12 1.8-22 10.2-25.7 21.7s-.7 24.2 7.9 32.7L137.8 329 113.2 474.7c-2 12 3 24.2 12.9 31.3s23 8 33.8 2.3l128.3-68.5 128.3 68.5c10.8 5.7 23.9 4.9 33.8-2.3s14.9-19.3 12.9-31.3L438.5 329 542.7 225.9c8.6-8.5 11.7-21.2 7.9-32.7s-13.7-19.9-25.7-21.7L381.2 150.3 316.9 18z"></path></svg>`);
3896
4312
  function IconStar($$anchor, $$props) {
3897
4313
  let color = $.prop($$props, "color", 8);
3898
- var svg = root$25();
4314
+ var svg = root$28();
3899
4315
  var path = $.child(svg);
3900
4316
  $.reset(svg);
3901
4317
  $.template_effect(() => $.set_attribute(path, "fill", color()));
@@ -3904,10 +4320,10 @@ function IconStar($$anchor, $$props) {
3904
4320
 
3905
4321
  //#endregion
3906
4322
  //#region src/components-flex/icon/variants/IconCircleInfo.svelte
3907
- var root$24 = $.ns_template(`<svg xmlns="http://www.w3.org/2000/svg" style="width: 100%;height: 100%;" viewBox="0 0 512 512"><path d="M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336h24V272H216c-13.3 0-24-10.7-24-24s10.7-24 24-24h48c13.3 0 24 10.7 24 24v88h8c13.3 0 24 10.7 24 24s-10.7 24-24 24H216c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-208a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"></path></svg>`);
4323
+ var root$27 = $.ns_template(`<svg xmlns="http://www.w3.org/2000/svg" style="width: 100%;height: 100%;" viewBox="0 0 512 512"><path d="M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336h24V272H216c-13.3 0-24-10.7-24-24s10.7-24 24-24h48c13.3 0 24 10.7 24 24v88h8c13.3 0 24 10.7 24 24s-10.7 24-24 24H216c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-208a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"></path></svg>`);
3908
4324
  function IconCircleInfo($$anchor, $$props) {
3909
4325
  let color = $.prop($$props, "color", 8);
3910
- var svg = root$24();
4326
+ var svg = root$27();
3911
4327
  var path = $.child(svg);
3912
4328
  $.reset(svg);
3913
4329
  $.template_effect(() => $.set_attribute(path, "fill", color()));
@@ -3916,10 +4332,10 @@ function IconCircleInfo($$anchor, $$props) {
3916
4332
 
3917
4333
  //#endregion
3918
4334
  //#region src/components-flex/icon/variants/IconEnvelope.svelte
3919
- var root$23 = $.ns_template(`<svg xmlns="http://www.w3.org/2000/svg" style="width: 100%;height: 100%;" viewBox="0 0 512 512"><path d="M48 64C21.5 64 0 85.5 0 112c0 15.1 7.1 29.3 19.2 38.4L236.8 313.6c11.4 8.5 27 8.5 38.4 0L492.8 150.4c12.1-9.1 19.2-23.3 19.2-38.4c0-26.5-21.5-48-48-48H48zM0 176V384c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V176L294.4 339.2c-22.8 17.1-54 17.1-76.8 0L0 176z"></path></svg>`);
4335
+ var root$26 = $.ns_template(`<svg xmlns="http://www.w3.org/2000/svg" style="width: 100%;height: 100%;" viewBox="0 0 512 512"><path d="M48 64C21.5 64 0 85.5 0 112c0 15.1 7.1 29.3 19.2 38.4L236.8 313.6c11.4 8.5 27 8.5 38.4 0L492.8 150.4c12.1-9.1 19.2-23.3 19.2-38.4c0-26.5-21.5-48-48-48H48zM0 176V384c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V176L294.4 339.2c-22.8 17.1-54 17.1-76.8 0L0 176z"></path></svg>`);
3920
4336
  function IconEnvelope($$anchor, $$props) {
3921
4337
  let color = $.prop($$props, "color", 8);
3922
- var svg = root$23();
4338
+ var svg = root$26();
3923
4339
  var path = $.child(svg);
3924
4340
  $.reset(svg);
3925
4341
  $.template_effect(() => $.set_attribute(path, "fill", color()));
@@ -3928,10 +4344,10 @@ function IconEnvelope($$anchor, $$props) {
3928
4344
 
3929
4345
  //#endregion
3930
4346
  //#region src/components-flex/icon/variants/IconGift.svelte
3931
- var root$22 = $.ns_template(`<svg xmlns="http://www.w3.org/2000/svg" style="width: 100%;height: 100%;" viewBox="0 0 512 512"><path d="M190.5 68.8L225.3 128H224 152c-22.1 0-40-17.9-40-40s17.9-40 40-40h2.2c14.9 0 28.8 7.9 36.3 20.8zM64 88c0 14.4 3.5 28 9.6 40H32c-17.7 0-32 14.3-32 32v64c0 17.7 14.3 32 32 32H480c17.7 0 32-14.3 32-32V160c0-17.7-14.3-32-32-32H438.4c6.1-12 9.6-25.6 9.6-40c0-48.6-39.4-88-88-88h-2.2c-31.9 0-61.5 16.9-77.7 44.4L256 85.5l-24.1-41C215.7 16.9 186.1 0 154.2 0H152C103.4 0 64 39.4 64 88zm336 0c0 22.1-17.9 40-40 40H288h-1.3l34.8-59.2C329.1 55.9 342.9 48 357.8 48H360c22.1 0 40 17.9 40 40zM32 288V464c0 26.5 21.5 48 48 48H224V288H32zM288 512H432c26.5 0 48-21.5 48-48V288H288V512z"></path></svg>`);
4347
+ var root$25 = $.ns_template(`<svg xmlns="http://www.w3.org/2000/svg" style="width: 100%;height: 100%;" viewBox="0 0 512 512"><path d="M190.5 68.8L225.3 128H224 152c-22.1 0-40-17.9-40-40s17.9-40 40-40h2.2c14.9 0 28.8 7.9 36.3 20.8zM64 88c0 14.4 3.5 28 9.6 40H32c-17.7 0-32 14.3-32 32v64c0 17.7 14.3 32 32 32H480c17.7 0 32-14.3 32-32V160c0-17.7-14.3-32-32-32H438.4c6.1-12 9.6-25.6 9.6-40c0-48.6-39.4-88-88-88h-2.2c-31.9 0-61.5 16.9-77.7 44.4L256 85.5l-24.1-41C215.7 16.9 186.1 0 154.2 0H152C103.4 0 64 39.4 64 88zm336 0c0 22.1-17.9 40-40 40H288h-1.3l34.8-59.2C329.1 55.9 342.9 48 357.8 48H360c22.1 0 40 17.9 40 40zM32 288V464c0 26.5 21.5 48 48 48H224V288H32zM288 512H432c26.5 0 48-21.5 48-48V288H288V512z"></path></svg>`);
3932
4348
  function IconGift($$anchor, $$props) {
3933
4349
  let color = $.prop($$props, "color", 8);
3934
- var svg = root$22();
4350
+ var svg = root$25();
3935
4351
  var path = $.child(svg);
3936
4352
  $.reset(svg);
3937
4353
  $.template_effect(() => $.set_attribute(path, "fill", color()));
@@ -3940,10 +4356,10 @@ function IconGift($$anchor, $$props) {
3940
4356
 
3941
4357
  //#endregion
3942
4358
  //#region src/components-flex/icon/variants/IconPaperclip.svelte
3943
- var root$21 = $.ns_template(`<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 448 512"><path d="M364.2 83.8c-24.4-24.4-64-24.4-88.4 0l-184 184c-42.1 42.1-42.1 110.3 0 152.4s110.3 42.1 152.4 0l152-152c10.9-10.9 28.7-10.9 39.6 0s10.9 28.7 0 39.6l-152 152c-64 64-167.6 64-231.6 0s-64-167.6 0-231.6l184-184c46.3-46.3 121.3-46.3 167.6 0s46.3 121.3 0 167.6l-176 176c-28.6 28.6-75 28.6-103.6 0s-28.6-75 0-103.6l144-144c10.9-10.9 28.7-10.9 39.6 0s10.9 28.7 0 39.6l-144 144c-6.7 6.7-6.7 17.7 0 24.4s17.7 6.7 24.4 0l176-176c24.4-24.4 24.4-64 0-88.4z"></path></svg>`);
4359
+ var root$24 = $.ns_template(`<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 448 512"><path d="M364.2 83.8c-24.4-24.4-64-24.4-88.4 0l-184 184c-42.1 42.1-42.1 110.3 0 152.4s110.3 42.1 152.4 0l152-152c10.9-10.9 28.7-10.9 39.6 0s10.9 28.7 0 39.6l-152 152c-64 64-167.6 64-231.6 0s-64-167.6 0-231.6l184-184c46.3-46.3 121.3-46.3 167.6 0s46.3 121.3 0 167.6l-176 176c-28.6 28.6-75 28.6-103.6 0s-28.6-75 0-103.6l144-144c10.9-10.9 28.7-10.9 39.6 0s10.9 28.7 0 39.6l-144 144c-6.7 6.7-6.7 17.7 0 24.4s17.7 6.7 24.4 0l176-176c24.4-24.4 24.4-64 0-88.4z"></path></svg>`);
3944
4360
  function IconPaperclip($$anchor, $$props) {
3945
4361
  let color = $.prop($$props, "color", 8);
3946
- var svg = root$21();
4362
+ var svg = root$24();
3947
4363
  var path = $.child(svg);
3948
4364
  $.reset(svg);
3949
4365
  $.template_effect(() => $.set_attribute(path, "fill", color()));
@@ -3952,10 +4368,10 @@ function IconPaperclip($$anchor, $$props) {
3952
4368
 
3953
4369
  //#endregion
3954
4370
  //#region src/components-flex/icon/variants/IconFire.svelte
3955
- var root$20 = $.ns_template(`<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 448 512"><path d="M159.3 5.4c7.8-7.3 19.9-7.2 27.7 .1c27.6 25.9 53.5 53.8 77.7 84c11-14.4 23.5-30.1 37-42.9c7.9-7.4 20.1-7.4 28 .1c34.6 33 63.9 76.6 84.5 118c20.3 40.8 33.8 82.5 33.8 111.9C448 404.2 348.2 512 224 512C98.4 512 0 404.1 0 276.5c0-38.4 17.8-85.3 45.4-131.7C73.3 97.7 112.7 48.6 159.3 5.4zM225.7 416c25.3 0 47.7-7 68.8-21c42.1-29.4 53.4-88.2 28.1-134.4c-4.5-9-16-9.6-22.5-2l-25.2 29.3c-6.6 7.6-18.5 7.4-24.7-.5c-16.5-21-46-58.5-62.8-79.8c-6.3-8-18.3-8.1-24.7-.1c-33.8 42.5-50.8 69.3-50.8 99.4C112 375.4 162.6 416 225.7 416z"></path></svg>`);
4371
+ var root$23 = $.ns_template(`<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 448 512"><path d="M159.3 5.4c7.8-7.3 19.9-7.2 27.7 .1c27.6 25.9 53.5 53.8 77.7 84c11-14.4 23.5-30.1 37-42.9c7.9-7.4 20.1-7.4 28 .1c34.6 33 63.9 76.6 84.5 118c20.3 40.8 33.8 82.5 33.8 111.9C448 404.2 348.2 512 224 512C98.4 512 0 404.1 0 276.5c0-38.4 17.8-85.3 45.4-131.7C73.3 97.7 112.7 48.6 159.3 5.4zM225.7 416c25.3 0 47.7-7 68.8-21c42.1-29.4 53.4-88.2 28.1-134.4c-4.5-9-16-9.6-22.5-2l-25.2 29.3c-6.6 7.6-18.5 7.4-24.7-.5c-16.5-21-46-58.5-62.8-79.8c-6.3-8-18.3-8.1-24.7-.1c-33.8 42.5-50.8 69.3-50.8 99.4C112 375.4 162.6 416 225.7 416z"></path></svg>`);
3956
4372
  function IconFire($$anchor, $$props) {
3957
4373
  let color = $.prop($$props, "color", 8);
3958
- var svg = root$20();
4374
+ var svg = root$23();
3959
4375
  var path = $.child(svg);
3960
4376
  $.reset(svg);
3961
4377
  $.template_effect(() => $.set_attribute(path, "fill", color()));
@@ -3964,10 +4380,10 @@ function IconFire($$anchor, $$props) {
3964
4380
 
3965
4381
  //#endregion
3966
4382
  //#region src/components-flex/icon/variants/IconLink.svelte
3967
- var root$19 = $.ns_template(`<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 640 512"><path d="M579.8 267.7c56.5-56.5 56.5-148 0-204.5c-50-50-128.8-56.5-186.3-15.4l-1.6 1.1c-14.4 10.3-17.7 30.3-7.4 44.6s30.3 17.7 44.6 7.4l1.6-1.1c32.1-22.9 76-19.3 103.8 8.6c31.5 31.5 31.5 82.5 0 114L422.3 334.8c-31.5 31.5-82.5 31.5-114 0c-27.9-27.9-31.5-71.8-8.6-103.8l1.1-1.6c10.3-14.4 6.9-34.4-7.4-44.6s-34.4-6.9-44.6 7.4l-1.1 1.6C206.5 251.2 213 330 263 380c56.5 56.5 148 56.5 204.5 0L579.8 267.7zM60.2 244.3c-56.5 56.5-56.5 148 0 204.5c50 50 128.8 56.5 186.3 15.4l1.6-1.1c14.4-10.3 17.7-30.3 7.4-44.6s-30.3-17.7-44.6-7.4l-1.6 1.1c-32.1 22.9-76 19.3-103.8-8.6C74 372 74 321 105.5 289.5L217.7 177.2c31.5-31.5 82.5-31.5 114 0c27.9 27.9 31.5 71.8 8.6 103.9l-1.1 1.6c-10.3 14.4-6.9 34.4 7.4 44.6s34.4 6.9 44.6-7.4l1.1-1.6C433.5 260.8 427 182 377 132c-56.5-56.5-148-56.5-204.5 0L60.2 244.3z"></path></svg>`);
4383
+ var root$22 = $.ns_template(`<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 640 512"><path d="M579.8 267.7c56.5-56.5 56.5-148 0-204.5c-50-50-128.8-56.5-186.3-15.4l-1.6 1.1c-14.4 10.3-17.7 30.3-7.4 44.6s30.3 17.7 44.6 7.4l1.6-1.1c32.1-22.9 76-19.3 103.8 8.6c31.5 31.5 31.5 82.5 0 114L422.3 334.8c-31.5 31.5-82.5 31.5-114 0c-27.9-27.9-31.5-71.8-8.6-103.8l1.1-1.6c10.3-14.4 6.9-34.4-7.4-44.6s-34.4-6.9-44.6 7.4l-1.1 1.6C206.5 251.2 213 330 263 380c56.5 56.5 148 56.5 204.5 0L579.8 267.7zM60.2 244.3c-56.5 56.5-56.5 148 0 204.5c50 50 128.8 56.5 186.3 15.4l1.6-1.1c14.4-10.3 17.7-30.3 7.4-44.6s-30.3-17.7-44.6-7.4l-1.6 1.1c-32.1 22.9-76 19.3-103.8-8.6C74 372 74 321 105.5 289.5L217.7 177.2c31.5-31.5 82.5-31.5 114 0c27.9 27.9 31.5 71.8 8.6 103.9l-1.1 1.6c-10.3 14.4-6.9 34.4 7.4 44.6s34.4 6.9 44.6-7.4l1.1-1.6C433.5 260.8 427 182 377 132c-56.5-56.5-148-56.5-204.5 0L60.2 244.3z"></path></svg>`);
3968
4384
  function IconLink($$anchor, $$props) {
3969
4385
  let color = $.prop($$props, "color", 8);
3970
- var svg = root$19();
4386
+ var svg = root$22();
3971
4387
  var path = $.child(svg);
3972
4388
  $.reset(svg);
3973
4389
  $.template_effect(() => $.set_attribute(path, "fill", color()));
@@ -3976,10 +4392,10 @@ function IconLink($$anchor, $$props) {
3976
4392
 
3977
4393
  //#endregion
3978
4394
  //#region src/components-flex/icon/variants/IconBuildings.svelte
3979
- var root$18 = $.ns_template(`<svg xmlns="http://www.w3.org/2000/svg" style="width: 100%; height: 100%;" viewBox="0 0 512 512"><path d="M256 0c-35.3 0-64 28.7-64 64l0 64L64 128c-35.3 0-64 28.7-64 64L0 448c0 35.3 28.7 64 64 64l192 0 192 0c35.3 0 64-28.7 64-64l0-256 0-128c0-35.3-28.7-64-64-64L256 0zM64 304c0-8.8 7.2-16 16-16l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32zm208 16c-8.8 0-16-7.2-16-16l0-32c0-8.8 7.2-16 16-16l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0zm112-16l0-32c0-8.8 7.2-16 16-16l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16zM80 192l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32c0-8.8 7.2-16 16-16zM256 80c0-8.8 7.2-16 16-16l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32zM400 64l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32c0-8.8 7.2-16 16-16zM256 208l0-32c0-8.8 7.2-16 16-16l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16zm144 16c-8.8 0-16-7.2-16-16l0-32c0-8.8 7.2-16 16-16l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0z"></path></svg>`);
4395
+ var root$21 = $.ns_template(`<svg xmlns="http://www.w3.org/2000/svg" style="width: 100%; height: 100%;" viewBox="0 0 512 512"><path d="M256 0c-35.3 0-64 28.7-64 64l0 64L64 128c-35.3 0-64 28.7-64 64L0 448c0 35.3 28.7 64 64 64l192 0 192 0c35.3 0 64-28.7 64-64l0-256 0-128c0-35.3-28.7-64-64-64L256 0zM64 304c0-8.8 7.2-16 16-16l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32zm208 16c-8.8 0-16-7.2-16-16l0-32c0-8.8 7.2-16 16-16l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0zm112-16l0-32c0-8.8 7.2-16 16-16l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16zM80 192l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32c0-8.8 7.2-16 16-16zM256 80c0-8.8 7.2-16 16-16l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32zM400 64l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32c0-8.8 7.2-16 16-16zM256 208l0-32c0-8.8 7.2-16 16-16l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16zm144 16c-8.8 0-16-7.2-16-16l0-32c0-8.8 7.2-16 16-16l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0z"></path></svg>`);
3980
4396
  function IconBuildings($$anchor, $$props) {
3981
4397
  let color = $.prop($$props, "color", 8);
3982
- var svg = root$18();
4398
+ var svg = root$21();
3983
4399
  var path = $.child(svg);
3984
4400
  $.reset(svg);
3985
4401
  $.template_effect(() => $.set_attribute(path, "fill", color()));
@@ -3988,10 +4404,10 @@ function IconBuildings($$anchor, $$props) {
3988
4404
 
3989
4405
  //#endregion
3990
4406
  //#region src/components-flex/icon/variants/IconChevronsRight.svelte
3991
- var root$17 = $.ns_template(`<svg xmlns="http://www.w3.org/2000/svg" style="width: 100%; height: 100%;" viewBox="0 0 512 512"><path d="M470.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-192-192c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L402.7 256 233.4 425.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l192-192zm-384 192l192-192c12.5-12.5 12.5-32.8 0-45.3l-192-192c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L210.7 256 41.4 425.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0z"></path></svg>`);
4407
+ var root$20 = $.ns_template(`<svg xmlns="http://www.w3.org/2000/svg" style="width: 100%; height: 100%;" viewBox="0 0 512 512"><path d="M470.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-192-192c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L402.7 256 233.4 425.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l192-192zm-384 192l192-192c12.5-12.5 12.5-32.8 0-45.3l-192-192c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L210.7 256 41.4 425.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0z"></path></svg>`);
3992
4408
  function IconChevronsRight($$anchor, $$props) {
3993
4409
  let color = $.prop($$props, "color", 8);
3994
- var svg = root$17();
4410
+ var svg = root$20();
3995
4411
  var path = $.child(svg);
3996
4412
  $.reset(svg);
3997
4413
  $.template_effect(() => $.set_attribute(path, "fill", color()));
@@ -4000,10 +4416,10 @@ function IconChevronsRight($$anchor, $$props) {
4000
4416
 
4001
4417
  //#endregion
4002
4418
  //#region src/components-flex/icon/variants/IconChevronRight.svelte
4003
- var root$16 = $.ns_template(`<svg xmlns="http://www.w3.org/2000/svg" style="width: 100%; height: 100%;" viewBox="0 0 320 512"><path d="M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"></path></svg>`);
4419
+ var root$19 = $.ns_template(`<svg xmlns="http://www.w3.org/2000/svg" style="width: 100%; height: 100%;" viewBox="0 0 320 512"><path d="M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"></path></svg>`);
4004
4420
  function IconChevronRight($$anchor, $$props) {
4005
4421
  let color = $.prop($$props, "color", 8);
4006
- var svg = root$16();
4422
+ var svg = root$19();
4007
4423
  var path = $.child(svg);
4008
4424
  $.reset(svg);
4009
4425
  $.template_effect(() => $.set_attribute(path, "fill", color()));
@@ -4012,10 +4428,10 @@ function IconChevronRight($$anchor, $$props) {
4012
4428
 
4013
4429
  //#endregion
4014
4430
  //#region src/components-flex/icon/variants/IconPhone.svelte
4015
- var root$15 = $.ns_template(`<svg xmlns="http://www.w3.org/2000/svg" style="width: 100%;height: 100%;" viewBox="0 0 512 512"><path d="M164.9 24.6c-7.7-18.6-28-28.5-47.4-23.2l-88 24C12.1 30.2 0 46 0 64C0 311.4 200.6 512 448 512c18 0 33.8-12.1 38.6-29.5l24-88c5.3-19.4-4.6-39.7-23.2-47.4l-96-40c-16.3-6.8-35.2-2.1-46.3 11.6L304.7 368C234.3 334.7 177.3 277.7 144 207.3L193.3 167c13.7-11.2 18.4-30 11.6-46.3l-40-96z"></path></svg>`);
4431
+ var root$18 = $.ns_template(`<svg xmlns="http://www.w3.org/2000/svg" style="width: 100%;height: 100%;" viewBox="0 0 512 512"><path d="M164.9 24.6c-7.7-18.6-28-28.5-47.4-23.2l-88 24C12.1 30.2 0 46 0 64C0 311.4 200.6 512 448 512c18 0 33.8-12.1 38.6-29.5l24-88c5.3-19.4-4.6-39.7-23.2-47.4l-96-40c-16.3-6.8-35.2-2.1-46.3 11.6L304.7 368C234.3 334.7 177.3 277.7 144 207.3L193.3 167c13.7-11.2 18.4-30 11.6-46.3l-40-96z"></path></svg>`);
4016
4432
  function IconPhone($$anchor, $$props) {
4017
4433
  let color = $.prop($$props, "color", 8);
4018
- var svg = root$15();
4434
+ var svg = root$18();
4019
4435
  var path = $.child(svg);
4020
4436
  $.reset(svg);
4021
4437
  $.template_effect(() => $.set_attribute(path, "fill", color()));
@@ -4024,10 +4440,10 @@ function IconPhone($$anchor, $$props) {
4024
4440
 
4025
4441
  //#endregion
4026
4442
  //#region src/components-flex/icon/variants/IconLocationDot.svelte
4027
- var root$14 = $.ns_template(`<svg xmlns="http://www.w3.org/2000/svg" style="width: 100%;height: 100%;" viewBox="0 0 384 512"><path d="M215.7 499.2C267 435 384 279.4 384 192C384 86 298 0 192 0S0 86 0 192c0 87.4 117 243 168.3 307.2c12.3 15.3 35.1 15.3 47.4 0zM192 128a64 64 0 1 1 0 128 64 64 0 1 1 0-128z"></path></svg>`);
4443
+ var root$17 = $.ns_template(`<svg xmlns="http://www.w3.org/2000/svg" style="width: 100%;height: 100%;" viewBox="0 0 384 512"><path d="M215.7 499.2C267 435 384 279.4 384 192C384 86 298 0 192 0S0 86 0 192c0 87.4 117 243 168.3 307.2c12.3 15.3 35.1 15.3 47.4 0zM192 128a64 64 0 1 1 0 128 64 64 0 1 1 0-128z"></path></svg>`);
4028
4444
  function IconLocationDot($$anchor, $$props) {
4029
4445
  let color = $.prop($$props, "color", 8);
4030
- var svg = root$14();
4446
+ var svg = root$17();
4031
4447
  var path = $.child(svg);
4032
4448
  $.reset(svg);
4033
4449
  $.template_effect(() => $.set_attribute(path, "fill", color()));
@@ -4102,18 +4518,18 @@ const ICON_VARIANTS = {
4102
4518
 
4103
4519
  //#endregion
4104
4520
  //#region src/components-flex/icon/Icon.svelte
4105
- const $$css$21 = {
4521
+ const $$css$31 = {
4106
4522
  hash: "svelte-1kl9m59",
4107
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;}"
4108
4524
  };
4109
4525
  function Icon($$anchor, $$props) {
4110
4526
  $.push($$props, false);
4111
- $.append_styles($$anchor, $$css$21);
4527
+ $.append_styles($$anchor, $$css$31);
4112
4528
  const style = $.mutable_state();
4113
4529
  const IconComponent = $.mutable_state();
4114
4530
  let props = $.prop($$props, "props", 24, () => ({}));
4115
4531
  let layerId = $.prop($$props, "layerId", 8, "");
4116
- useInjectCustomizeCss(props());
4532
+ useInjectCustomizeCss(props(), layerId());
4117
4533
  const { attributes, element, handleClick } = useClickable_default(props());
4118
4534
  const getSizeCss = () => {
4119
4535
  return {
@@ -4137,12 +4553,13 @@ function Icon($$anchor, $$props) {
4137
4553
  var node = $.first_child(fragment);
4138
4554
  $.element(node, () => element, false, ($$element, $$anchor$1) => {
4139
4555
  let attributes_1;
4140
- $.template_effect(() => attributes_1 = $.set_attributes($$element, attributes_1, {
4556
+ $.template_effect(($0) => attributes_1 = $.set_attributes($$element, attributes_1, {
4141
4557
  ...attributes,
4142
- class: "icon",
4558
+ id: props().id,
4559
+ class: $0,
4143
4560
  style: $.get(style),
4144
4561
  "data-layer-id": layerId()
4145
- }, "svelte-1kl9m59"));
4562
+ }, "svelte-1kl9m59"), [() => ["icon", ...props().classNames ?? []].join(" ")], $.derived_safe_equal);
4146
4563
  $.event("click", $$element, handleClick);
4147
4564
  var fragment_1 = $.comment();
4148
4565
  var node_1 = $.first_child(fragment_1);
@@ -4327,20 +4744,20 @@ function darkenColor(color, percent) {
4327
4744
 
4328
4745
  //#endregion
4329
4746
  //#region src/components-flex/button/Button.svelte
4330
- var root_2$4 = $.template(`<div class="button-icon svelte-l0rauj"><!></div>`);
4331
- var root_1$7 = $.template(`<!> <span class="button-label"> </span>`, 1);
4332
- const $$css$20 = {
4747
+ var root_2$8 = $.template(`<div class="button-icon svelte-l0rauj"><!></div>`);
4748
+ var root_1$13 = $.template(`<!> <span class="button-label"> </span>`, 1);
4749
+ const $$css$30 = {
4333
4750
  hash: "svelte-l0rauj",
4334
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;}"
4335
4752
  };
4336
4753
  function Button($$anchor, $$props) {
4337
4754
  $.push($$props, false);
4338
- $.append_styles($$anchor, $$css$20);
4755
+ $.append_styles($$anchor, $$css$30);
4339
4756
  const variables$1 = $.mutable_state();
4340
4757
  const style = $.mutable_state();
4341
4758
  let props = $.prop($$props, "props", 24, () => ({}));
4342
4759
  let layerId = $.prop($$props, "layerId", 8, "");
4343
- useInjectCustomizeCss(props());
4760
+ useInjectCustomizeCss(props(), layerId());
4344
4761
  const { attributes, element, handleClick } = useClickable_default(props());
4345
4762
  const { brandKit } = useBrandKit();
4346
4763
  const buttonThemeStyles = getButtonThemeStyles(brandKit);
@@ -4409,36 +4826,35 @@ function Button($$anchor, $$props) {
4409
4826
  var node = $.first_child(fragment);
4410
4827
  $.element(node, () => element, false, ($$element, $$anchor$1) => {
4411
4828
  let attributes_1;
4412
- $.template_effect(() => attributes_1 = $.set_attributes($$element, attributes_1, {
4829
+ $.template_effect(($0) => attributes_1 = $.set_attributes($$element, attributes_1, {
4413
4830
  ...attributes,
4414
- class: "button",
4831
+ id: props().id,
4832
+ class: $0,
4415
4833
  style: $.get(style),
4416
4834
  "data-layer-id": layerId(),
4417
4835
  "data-variant": variant
4418
- }, "svelte-l0rauj"));
4836
+ }, "svelte-l0rauj"), [() => ["button", ...props().classNames ?? []].join(" ")], $.derived_safe_equal);
4419
4837
  $.event("click", $$element, handleClick);
4420
- var fragment_1 = root_1$7();
4838
+ var fragment_1 = root_1$13();
4421
4839
  var node_1 = $.first_child(fragment_1);
4422
- {
4423
- var consequent = ($$anchor$2) => {
4424
- var div = root_2$4();
4425
- var node_2 = $.child(div);
4426
- const expression = $.derived_safe_equal(() => ({
4427
- variant: props().iconVariant,
4428
- color: props().iconColor ?? props().color ?? buttonThemeStyle.color,
4429
- width: "1em",
4430
- height: "1em"
4431
- }));
4432
- Icon(node_2, { get props() {
4433
- return $.get(expression);
4434
- } });
4435
- $.reset(div);
4436
- $.append($$anchor$2, div);
4437
- };
4438
- $.if(node_1, ($$render) => {
4439
- if (props().isIcon && props().iconVariant) $$render(consequent);
4440
- });
4441
- }
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
+ });
4442
4858
  var span = $.sibling(node_1, 2);
4443
4859
  var text = $.child(span, true);
4444
4860
  $.reset(span);
@@ -4544,20 +4960,20 @@ const BUTTON_OUTLINED_WRAP_STYLES = {
4544
4960
 
4545
4961
  //#endregion
4546
4962
  //#region src/components-flex/button-outlined/ButtonOutlined.svelte
4547
- var root_2$3 = $.template(`<div class="button-outlined-icon svelte-z8gomx"><!></div>`);
4548
- var root_1$6 = $.template(`<!> <span class="button-outlined-label svelte-z8gomx"> </span>`, 1);
4549
- const $$css$19 = {
4963
+ var root_2$7 = $.template(`<div class="button-outlined-icon svelte-z8gomx"><!></div>`);
4964
+ var root_1$12 = $.template(`<!> <span class="button-outlined-label svelte-z8gomx"> </span>`, 1);
4965
+ const $$css$29 = {
4550
4966
  hash: "svelte-z8gomx",
4551
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;}"
4552
4968
  };
4553
4969
  function ButtonOutlined($$anchor, $$props) {
4554
4970
  $.push($$props, false);
4555
- $.append_styles($$anchor, $$css$19);
4971
+ $.append_styles($$anchor, $$css$29);
4556
4972
  const variables$1 = $.mutable_state();
4557
4973
  const style = $.mutable_state();
4558
4974
  let props = $.prop($$props, "props", 24, () => ({}));
4559
4975
  let layerId = $.prop($$props, "layerId", 8, "");
4560
- useInjectCustomizeCss(props());
4976
+ useInjectCustomizeCss(props(), layerId());
4561
4977
  const { brandKit } = useBrandKit();
4562
4978
  const { attributes, element, handleClick } = useClickable_default(props());
4563
4979
  const buttonThemeStyles = getButtonOutlinedThemeStyles(brandKit);
@@ -4601,29 +5017,27 @@ function ButtonOutlined($$anchor, $$props) {
4601
5017
  "data-layer-id": layerId()
4602
5018
  }, "svelte-z8gomx"));
4603
5019
  $.event("click", $$element, handleClick);
4604
- var fragment_1 = root_1$6();
5020
+ var fragment_1 = root_1$12();
4605
5021
  var node_1 = $.first_child(fragment_1);
4606
- {
4607
- var consequent = ($$anchor$2) => {
4608
- var div = root_2$3();
4609
- var node_2 = $.child(div);
4610
- const expression = $.derived_safe_equal(() => ({
4611
- variant: props().iconVariant,
4612
- color: props().iconColor ?? props().color ?? buttonThemeStyle.color,
4613
- width: "1em",
4614
- height: "1em"
4615
- }));
4616
- Icon(node_2, { get props() {
4617
- return $.get(expression);
4618
- } });
4619
- $.reset(div);
4620
- $.append($$anchor$2, div);
4621
- };
4622
- $.if(node_1, ($$render) => {
4623
- if (props().isIcon && props().iconVariant) $$render(consequent);
4624
- });
4625
- }
4626
- var span = $.sibling(node_1, 2);
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
+ });
5040
+ var span = $.sibling(node_1, 2);
4627
5041
  var text = $.child(span, true);
4628
5042
  $.reset(span);
4629
5043
  $.template_effect(() => $.set_text(text, props().label ?? buttonOutlinedPropsDefault.label));
@@ -4693,20 +5107,20 @@ const getButtonTextThemeStyles = getPropStyles(callback$2);
4693
5107
 
4694
5108
  //#endregion
4695
5109
  //#region src/components-flex/button-text/ButtonText.svelte
4696
- var root_2$2 = $.template(`<div class="button-text-icon svelte-l90o4j"><!></div>`);
4697
- var root_1$5 = $.template(`<!> <span class="button-text-label svelte-l90o4j"> </span>`, 1);
4698
- const $$css$18 = {
5110
+ var root_2$6 = $.template(`<div class="button-text-icon svelte-l90o4j"><!></div>`);
5111
+ var root_1$11 = $.template(`<!> <span class="button-text-label svelte-l90o4j"> </span>`, 1);
5112
+ const $$css$28 = {
4699
5113
  hash: "svelte-l90o4j",
4700
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;}"
4701
5115
  };
4702
5116
  function ButtonText($$anchor, $$props) {
4703
5117
  $.push($$props, false);
4704
- $.append_styles($$anchor, $$css$18);
5118
+ $.append_styles($$anchor, $$css$28);
4705
5119
  const variables$1 = $.mutable_state();
4706
5120
  const style = $.mutable_state();
4707
5121
  let props = $.prop($$props, "props", 24, () => ({}));
4708
5122
  let layerId = $.prop($$props, "layerId", 8, "");
4709
- useInjectCustomizeCss(props());
5123
+ useInjectCustomizeCss(props(), layerId());
4710
5124
  const { brandKit } = useBrandKit();
4711
5125
  const { attributes, element, handleClick } = useClickable_default(props());
4712
5126
  const themeStyles = getButtonTextThemeStyles(brandKit);
@@ -4744,28 +5158,26 @@ function ButtonText($$anchor, $$props) {
4744
5158
  "data-layer-id": layerId()
4745
5159
  }, "svelte-l90o4j"));
4746
5160
  $.event("click", $$element, handleClick);
4747
- var fragment_1 = root_1$5();
5161
+ var fragment_1 = root_1$11();
4748
5162
  var node_1 = $.first_child(fragment_1);
4749
- {
4750
- var consequent = ($$anchor$2) => {
4751
- var div = root_2$2();
4752
- var node_2 = $.child(div);
4753
- const expression = $.derived_safe_equal(() => ({
4754
- variant: props().iconVariant,
4755
- color: props().color ?? buttonThemeStyle.color,
4756
- width: "1em",
4757
- height: "1em"
4758
- }));
4759
- Icon(node_2, { get props() {
4760
- return $.get(expression);
4761
- } });
4762
- $.reset(div);
4763
- $.append($$anchor$2, div);
4764
- };
4765
- $.if(node_1, ($$render) => {
4766
- if (props().isIcon && props().iconVariant) $$render(consequent);
4767
- });
4768
- }
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
+ });
4769
5181
  var span = $.sibling(node_1, 2);
4770
5182
  var text = $.child(span, true);
4771
5183
  $.reset(span);
@@ -4810,15 +5222,15 @@ const getTextThemeStyles = getPropStyles(callback$1);
4810
5222
 
4811
5223
  //#endregion
4812
5224
  //#region src/components-flex/close-button/CloseButton.svelte
4813
- var root_2$1 = $.template(`<span></span>`);
4814
- var root_1$4 = $.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);
4815
- const $$css$17 = {
5225
+ var root_2$5 = $.template(`<span></span>`);
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);
5227
+ const $$css$27 = {
4816
5228
  hash: "svelte-18wmfyq",
4817
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;}"
4818
5230
  };
4819
5231
  function CloseButton($$anchor, $$props) {
4820
5232
  $.push($$props, false);
4821
- $.append_styles($$anchor, $$css$17);
5233
+ $.append_styles($$anchor, $$css$27);
4822
5234
  const hasLabel = $.mutable_state();
4823
5235
  const styleObj = $.mutable_state();
4824
5236
  const style = $.mutable_state();
@@ -4831,8 +5243,8 @@ function CloseButton($$anchor, $$props) {
4831
5243
  let eventName = $.prop($$props, "eventName", 8, "");
4832
5244
  let eventValue = $.prop($$props, "eventValue", 8, void 0);
4833
5245
  const { brandKit } = useBrandKit();
4834
- useInjectCustomizeCss(props());
4835
- const { attributes, element, handleClick } = useClickable_default({
5246
+ useInjectCustomizeCss(props(), layerId());
5247
+ const { attributes, element, handleClick } = useClickable_default(props().onClick ? props() : {
4836
5248
  onClick: {
4837
5249
  operation: "closeApp",
4838
5250
  args: ["button"]
@@ -4922,31 +5334,30 @@ function CloseButton($$anchor, $$props) {
4922
5334
  var node = $.first_child(fragment);
4923
5335
  $.element(node, () => element, false, ($$element, $$anchor$1) => {
4924
5336
  let attributes_1;
4925
- $.template_effect(() => attributes_1 = $.set_attributes($$element, attributes_1, {
5337
+ $.template_effect(($0) => attributes_1 = $.set_attributes($$element, attributes_1, {
4926
5338
  ...attributes,
4927
- class: `close-button ${isLeftLabelPlacement ? "close-button-order-two" : ""}`,
5339
+ id: props().id,
5340
+ class: $0,
4928
5341
  "data-layer-id": layerId(),
4929
5342
  style: $.get(style)
4930
- }, "svelte-18wmfyq"));
5343
+ }, "svelte-18wmfyq"), [() => [`close-button ${isLeftLabelPlacement ? "close-button-order-two" : ""}`, ...props().classNames ?? []].join(" ")], $.derived_safe_equal);
4931
5344
  $.event("click", $$element, handleClick);
4932
- var fragment_1 = root_1$4();
5345
+ var fragment_1 = root_1$10();
4933
5346
  var span = $.first_child(fragment_1);
4934
5347
  var svg = $.child(span);
4935
5348
  $.set_attribute(svg, "fill", color);
4936
5349
  $.reset(span);
4937
5350
  var node_1 = $.sibling(span, 2);
4938
- {
4939
- var consequent = ($$anchor$2) => {
4940
- var span_1 = root_2$1();
4941
- $.set_class(span_1, 1, `close-button-label ${isLeftLabelPlacement ? "close-button-order-one" : ""}`, "svelte-18wmfyq");
4942
- span_1.textContent = label;
4943
- $.template_effect(() => $.set_style(span_1, $.get(labelStyle)));
4944
- $.append($$anchor$2, span_1);
4945
- };
4946
- $.if(node_1, ($$render) => {
4947
- if ($.get(hasLabel)) $$render(consequent);
4948
- });
4949
- }
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
+ });
4950
5361
  $.template_effect(() => $.set_style(span, $.get(iconStyle)));
4951
5362
  $.append($$anchor$1, fragment_1);
4952
5363
  });
@@ -5030,20 +5441,20 @@ const IMAGE_ROUND_STYLES = {
5030
5441
 
5031
5442
  //#endregion
5032
5443
  //#region src/components-flex/image/Image.svelte
5033
- var root_1$3 = $.template(`<img class="image-img svelte-1olvu11">`);
5034
- const $$css$16 = {
5444
+ var root_1$9 = $.template(`<img class="image-img svelte-1olvu11">`);
5445
+ const $$css$26 = {
5035
5446
  hash: "svelte-1olvu11",
5036
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;}"
5037
5448
  };
5038
5449
  function Image($$anchor, $$props) {
5039
5450
  $.push($$props, false);
5040
- $.append_styles($$anchor, $$css$16);
5451
+ $.append_styles($$anchor, $$css$26);
5041
5452
  const styleObj = $.mutable_state();
5042
5453
  const style = $.mutable_state();
5043
5454
  const imgStyle = $.mutable_state();
5044
5455
  let props = $.prop($$props, "props", 24, () => ({}));
5045
5456
  let layerId = $.prop($$props, "layerId", 8, "");
5046
- useInjectCustomizeCss(props());
5457
+ useInjectCustomizeCss(props(), layerId());
5047
5458
  const { attributes, element, handleClick } = useClickable_default(props());
5048
5459
  const aspectVariantStyles = ASPECT_VARIANT[props().aspectVariant]?.getProps();
5049
5460
  const width = props().width ?? "100%";
@@ -5082,14 +5493,15 @@ function Image($$anchor, $$props) {
5082
5493
  var node = $.first_child(fragment);
5083
5494
  $.element(node, () => element, false, ($$element, $$anchor$1) => {
5084
5495
  let attributes_1;
5085
- $.template_effect(() => attributes_1 = $.set_attributes($$element, attributes_1, {
5496
+ $.template_effect(($0) => attributes_1 = $.set_attributes($$element, attributes_1, {
5086
5497
  ...attributes,
5087
- class: "image",
5498
+ id: props().id,
5499
+ class: $0,
5088
5500
  style: $.get(style),
5089
5501
  "data-layer-id": layerId()
5090
- }, "svelte-1olvu11"));
5502
+ }, "svelte-1olvu11"), [() => ["image", ...props().classNames ?? []].join(" ")], $.derived_safe_equal);
5091
5503
  $.event("click", $$element, handleClick);
5092
- var img = root_1$3();
5504
+ var img = root_1$9();
5093
5505
  $.template_effect(() => {
5094
5506
  $.set_attribute(img, "src", props().image);
5095
5507
  $.set_attribute(img, "alt", props().alt);
@@ -5123,18 +5535,18 @@ const IMAGE_ASPECT_VARIANTS = {
5123
5535
 
5124
5536
  //#endregion
5125
5537
  //#region src/components-flex/layout/Layout.svelte
5126
- const $$css$15 = {
5538
+ const $$css$25 = {
5127
5539
  hash: "svelte-1o103hp",
5128
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;}"
5129
5541
  };
5130
5542
  function Layout($$anchor, $$props) {
5131
5543
  $.push($$props, false);
5132
- $.append_styles($$anchor, $$css$15);
5544
+ $.append_styles($$anchor, $$css$25);
5133
5545
  const style = $.mutable_state();
5134
5546
  let props = $.prop($$props, "props", 24, () => ({}));
5135
5547
  let layerId = $.prop($$props, "layerId", 8, "");
5136
5548
  const { brandKit } = useBrandKit();
5137
- useInjectCustomizeCss(props());
5549
+ useInjectCustomizeCss(props(), layerId());
5138
5550
  const { attributes, element, handleClick } = useClickable_default(props());
5139
5551
  $.legacy_pre_effect(() => ($.deep_read_state(props()), toCssBorder), () => {
5140
5552
  $.set(style, objToStyle({
@@ -5145,6 +5557,7 @@ function Layout($$anchor, $$props) {
5145
5557
  rowGap: props().rowGap ?? props().gap,
5146
5558
  columnGap: props().columnGap ?? props().gap,
5147
5559
  width: props().width,
5560
+ maxWidth: props().maxWidth,
5148
5561
  height: props().height,
5149
5562
  ...toCssOverflow(props()),
5150
5563
  ...toCssShadow(props()),
@@ -5161,12 +5574,13 @@ function Layout($$anchor, $$props) {
5161
5574
  var node = $.first_child(fragment);
5162
5575
  $.element(node, () => "div", false, ($$element, $$anchor$1) => {
5163
5576
  let attributes_1;
5164
- $.template_effect(() => attributes_1 = $.set_attributes($$element, attributes_1, {
5577
+ $.template_effect(($0) => attributes_1 = $.set_attributes($$element, attributes_1, {
5165
5578
  ...attributes,
5166
- class: "layout",
5579
+ id: props().id,
5580
+ class: $0,
5167
5581
  style: $.get(style),
5168
5582
  "data-layer-id": layerId()
5169
- }, "svelte-1o103hp"));
5583
+ }, "svelte-1o103hp"), [() => ["layout", ...props().classNames ?? []].join(" ")], $.derived_safe_equal);
5170
5584
  $.event("click", $$element, handleClick);
5171
5585
  var fragment_1 = $.comment();
5172
5586
  var node_1 = $.first_child(fragment_1);
@@ -5205,15 +5619,15 @@ const LAYOUT_JUSTIFY = [
5205
5619
 
5206
5620
  //#endregion
5207
5621
  //#region src/components-flex/slider/Slider.svelte
5208
- var root_1$2 = $.template(`<button><i></i></button>`);
5209
- var root$13 = $.template(`<div class="slider svelte-wwv1o"><div class="slider-container svelte-wwv1o"><ul class="slider-list svelte-wwv1o"><!></ul></div> <div></div></div>`);
5210
- const $$css$14 = {
5622
+ var root_1$8 = $.template(`<button><i></i></button>`);
5623
+ var root$16 = $.template(`<div><div class="slider-container svelte-wwv1o"><ul class="slider-list svelte-wwv1o"><!></ul></div> <div></div></div>`);
5624
+ const $$css$24 = {
5211
5625
  hash: "svelte-wwv1o",
5212
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;}"
5213
5627
  };
5214
5628
  function Slider($$anchor, $$props) {
5215
5629
  $.push($$props, false);
5216
- $.append_styles($$anchor, $$css$14);
5630
+ $.append_styles($$anchor, $$css$24);
5217
5631
  const indicators = $.mutable_state();
5218
5632
  const itemWidthPercentage = $.mutable_state();
5219
5633
  const baseContainerStyle = $.mutable_state();
@@ -5223,7 +5637,7 @@ function Slider($$anchor, $$props) {
5223
5637
  let layerId = $.prop($$props, "layerId", 8);
5224
5638
  let props = $.prop($$props, "props", 8);
5225
5639
  let overrideStyle = $.prop($$props, "overrideStyle", 8);
5226
- useInjectCustomizeCss(props());
5640
+ useInjectCustomizeCss(props(), layerId());
5227
5641
  let containerElement = $.mutable_state();
5228
5642
  let slotElement = $.mutable_state();
5229
5643
  let currentIndex = $.mutable_state(0);
@@ -5376,7 +5790,7 @@ function Slider($$anchor, $$props) {
5376
5790
  });
5377
5791
  $.legacy_pre_effect_reset();
5378
5792
  $.init();
5379
- var div = root$13();
5793
+ var div = root$16();
5380
5794
  var div_1 = $.child(div);
5381
5795
  var ul = $.child(div_1);
5382
5796
  var node = $.child(ul);
@@ -5387,7 +5801,7 @@ function Slider($$anchor, $$props) {
5387
5801
  $.bind_this(div_1, ($$value) => $.set(containerElement, $$value), () => $.get(containerElement));
5388
5802
  var div_2 = $.sibling(div_1, 2);
5389
5803
  $.each(div_2, 5, () => $.get(indicators) ?? [], $.index, ($$anchor$1, indicator, i) => {
5390
- var button = root_1$2();
5804
+ var button = root_1$8();
5391
5805
  var i_1 = $.child(button);
5392
5806
  $.reset(button);
5393
5807
  $.template_effect(($0, $1) => {
@@ -5406,11 +5820,13 @@ function Slider($$anchor, $$props) {
5406
5820
  });
5407
5821
  $.reset(div_2);
5408
5822
  $.reset(div);
5409
- $.template_effect(($0) => {
5823
+ $.template_effect(($0, $1) => {
5824
+ $.set_attribute(div, "id", props().id);
5825
+ $.set_class(div, 1, $0, "svelte-wwv1o");
5410
5826
  $.set_attribute(div, "data-layer-id", layerId());
5411
- $.set_style(ul, $0);
5827
+ $.set_style(ul, $1);
5412
5828
  $.set_style(div_2, $.get(indicatorListStyle));
5413
- }, [() => [$.get(containerStyle), overrideStyle()].join(" ")], $.derived_safe_equal);
5829
+ }, [() => $.clsx(["slider", ...props().classNames ?? []].join(" ")), () => [$.get(containerStyle), overrideStyle()].join(" ")], $.derived_safe_equal);
5414
5830
  $.event("mousedown", div_1, handleMousedown);
5415
5831
  $.event("touchstart", div_1, handleTouchstart);
5416
5832
  $.append($$anchor, div);
@@ -5419,20 +5835,20 @@ function Slider($$anchor, $$props) {
5419
5835
 
5420
5836
  //#endregion
5421
5837
  //#region src/components-flex/slider/SliderItem.svelte
5422
- var root$12 = $.template(`<li class="slider-item svelte-1m93md9"><!></li>`);
5423
- const $$css$13 = {
5838
+ var root$15 = $.template(`<li><!></li>`);
5839
+ const $$css$23 = {
5424
5840
  hash: "svelte-1m93md9",
5425
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;}"
5426
5842
  };
5427
5843
  function SliderItem($$anchor, $$props) {
5428
5844
  $.push($$props, false);
5429
- $.append_styles($$anchor, $$css$13);
5845
+ $.append_styles($$anchor, $$css$23);
5430
5846
  let layerId = $.prop($$props, "layerId", 8);
5431
5847
  let props = $.prop($$props, "props", 8);
5432
- useInjectCustomizeCss(props());
5848
+ useInjectCustomizeCss(props(), layerId());
5433
5849
  const { attributes, element, handleClick } = useClickable_default(props());
5434
5850
  $.init();
5435
- var li = root$12();
5851
+ var li = root$15();
5436
5852
  var node = $.child(li);
5437
5853
  $.element(node, () => element, false, ($$element, $$anchor$1) => {
5438
5854
  let attributes_1;
@@ -5447,7 +5863,11 @@ function SliderItem($$anchor, $$props) {
5447
5863
  $.append($$anchor$1, fragment);
5448
5864
  });
5449
5865
  $.reset(li);
5450
- $.template_effect(() => $.set_attribute(li, "data-layer-id", layerId()));
5866
+ $.template_effect(($0) => {
5867
+ $.set_attribute(li, "data-layer-id", layerId());
5868
+ $.set_attribute(li, "id", props().id);
5869
+ $.set_class(li, 1, $0, "svelte-1m93md9");
5870
+ }, [() => $.clsx(["slider-item", ...props().classNames ?? []].join(" "))], $.derived_safe_equal);
5451
5871
  $.append($$anchor, li);
5452
5872
  $.pop();
5453
5873
  }
@@ -5494,19 +5914,19 @@ const TEXT_VARIANTS = { size: {
5494
5914
 
5495
5915
  //#endregion
5496
5916
  //#region src/components-flex/text/Text.svelte
5497
- var root$11 = $.template(`<p class="text svelte-vifn7y"><!></p>`);
5498
- const $$css$12 = {
5917
+ var root$14 = $.template(`<p><!></p>`);
5918
+ const $$css$22 = {
5499
5919
  hash: "svelte-vifn7y",
5500
5920
  code: ".text.svelte-vifn7y {margin:0;word-break:break-all;text-decoration:none;}"
5501
5921
  };
5502
5922
  function Text($$anchor, $$props) {
5503
5923
  $.push($$props, false);
5504
- $.append_styles($$anchor, $$css$12);
5924
+ $.append_styles($$anchor, $$css$22);
5505
5925
  const escapedHTML = $.mutable_state();
5506
5926
  const style = $.mutable_state();
5507
5927
  let props = $.prop($$props, "props", 24, () => ({ content: "" }));
5508
5928
  let layerId = $.prop($$props, "layerId", 8, "");
5509
- useInjectCustomizeCss(props());
5929
+ useInjectCustomizeCss(props(), layerId());
5510
5930
  const { brandKit } = useBrandKit();
5511
5931
  const themeStyles = getTextThemeStyles(brandKit);
5512
5932
  const fontFamilyStyles = props().fontFamilyVariant in FONT_FAMILY_VARIANT ? FONT_FAMILY_VARIANT[props().fontFamilyVariant].getProps(brandKit) : FONT_FAMILY_VARIANT.default.getProps(brandKit);
@@ -5576,32 +5996,34 @@ function Text($$anchor, $$props) {
5576
5996
  });
5577
5997
  $.legacy_pre_effect_reset();
5578
5998
  $.init();
5579
- var p = root$11();
5999
+ var p = root$14();
5580
6000
  var node = $.child(p);
5581
6001
  $.html(node, () => $.get(escapedHTML), false, false);
5582
6002
  $.reset(p);
5583
- $.template_effect(() => {
6003
+ $.template_effect(($0) => {
6004
+ $.set_class(p, 1, $0, "svelte-vifn7y");
6005
+ $.set_attribute(p, "id", props().id);
5584
6006
  $.set_attribute(p, "data-layer-id", layerId());
5585
6007
  $.set_style(p, $.get(style));
5586
- });
6008
+ }, [() => $.clsx(["text", ...props().classNames ?? []].join(" "))], $.derived_safe_equal);
5587
6009
  $.append($$anchor, p);
5588
6010
  $.pop();
5589
6011
  }
5590
6012
 
5591
6013
  //#endregion
5592
6014
  //#region src/components-flex/rich-text/RichText.svelte
5593
- var root$10 = $.template(`<div class="rich-text svelte-dxr423"><!></div>`);
5594
- const $$css$11 = {
6015
+ var root$13 = $.template(`<div><!></div>`);
6016
+ const $$css$21 = {
5595
6017
  hash: "svelte-dxr423",
5596
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;}"
5597
6019
  };
5598
6020
  function RichText($$anchor, $$props) {
5599
6021
  $.push($$props, false);
5600
- $.append_styles($$anchor, $$css$11);
6022
+ $.append_styles($$anchor, $$css$21);
5601
6023
  const style = $.mutable_state();
5602
6024
  let props = $.prop($$props, "props", 24, () => ({ content: "" }));
5603
6025
  let layerId = $.prop($$props, "layerId", 8, "");
5604
- useInjectCustomizeCss(props());
6026
+ useInjectCustomizeCss(props(), layerId());
5605
6027
  const { brandKit } = useBrandKit();
5606
6028
  const themeStyles = getTextThemeStyles(brandKit);
5607
6029
  const fontFamilyStyles = props().fontFamilyVariant in FONT_FAMILY_VARIANT ? FONT_FAMILY_VARIANT[props().fontFamilyVariant].getProps(brandKit) : FONT_FAMILY_VARIANT.default.getProps(brandKit);
@@ -5648,14 +6070,16 @@ function RichText($$anchor, $$props) {
5648
6070
  });
5649
6071
  $.legacy_pre_effect_reset();
5650
6072
  $.init();
5651
- var div = root$10();
6073
+ var div = root$13();
5652
6074
  var node = $.child(div);
5653
6075
  $.html(node, () => props().content, false, false);
5654
6076
  $.reset(div);
5655
- $.template_effect(() => {
6077
+ $.template_effect(($0) => {
6078
+ $.set_attribute(div, "id", props().id);
6079
+ $.set_class(div, 1, $0, "svelte-dxr423");
5656
6080
  $.set_style(div, $.get(style));
5657
6081
  $.set_attribute(div, "data-layer-id", layerId());
5658
- });
6082
+ }, [() => $.clsx(["rich-text", ...props().classNames ?? []].join(" "))], $.derived_safe_equal);
5659
6083
  $.append($$anchor, div);
5660
6084
  $.pop();
5661
6085
  }
@@ -5714,20 +6138,20 @@ const getTextLinkThemeStyles = getPropStyles(callback);
5714
6138
 
5715
6139
  //#endregion
5716
6140
  //#region src/components-flex/text-link/TextLink.svelte
5717
- var root_1$1 = $.template(`<!> <span><!></span>`, 1);
5718
- const $$css$10 = {
6141
+ var root_1$7 = $.template(`<!> <span><!></span>`, 1);
6142
+ const $$css$20 = {
5719
6143
  hash: "svelte-dc9m5n",
5720
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;}"
5721
6145
  };
5722
6146
  function TextLink($$anchor, $$props) {
5723
6147
  $.push($$props, false);
5724
- $.append_styles($$anchor, $$css$10);
6148
+ $.append_styles($$anchor, $$css$20);
5725
6149
  const escapedHTML = $.mutable_state();
5726
6150
  const variables$1 = $.mutable_state();
5727
6151
  const style = $.mutable_state();
5728
6152
  let props = $.prop($$props, "props", 24, () => ({ label: "" }));
5729
6153
  let layerId = $.prop($$props, "layerId", 8, "");
5730
- useInjectCustomizeCss(props());
6154
+ useInjectCustomizeCss(props(), layerId());
5731
6155
  const { brandKit } = useBrandKit();
5732
6156
  const { attributes, element, handleClick } = useClickable_default({
5733
6157
  ...props(),
@@ -5780,31 +6204,30 @@ function TextLink($$anchor, $$props) {
5780
6204
  var node = $.first_child(fragment);
5781
6205
  $.element(node, () => element, false, ($$element, $$anchor$1) => {
5782
6206
  let attributes_1;
5783
- $.template_effect(() => attributes_1 = $.set_attributes($$element, attributes_1, {
6207
+ $.template_effect(($0) => attributes_1 = $.set_attributes($$element, attributes_1, {
5784
6208
  ...attributes,
5785
- class: `link ${underlineClass}`,
6209
+ id: props().id,
6210
+ class: $0,
5786
6211
  style: $.get(style),
5787
6212
  "data-layer-id": layerId()
5788
- }, "svelte-dc9m5n"));
6213
+ }, "svelte-dc9m5n"), [() => [`link ${underlineClass}`, ...props().classNames ?? []].join(" ")], $.derived_safe_equal);
5789
6214
  $.event("click", $$element, handleClick);
5790
- var fragment_1 = root_1$1();
6215
+ var fragment_1 = root_1$7();
5791
6216
  var node_1 = $.first_child(fragment_1);
5792
- {
5793
- var consequent = ($$anchor$2) => {
5794
- const expression = $.derived_safe_equal(() => ({
5795
- variant: props().iconVariant,
5796
- color: props().iconColor ?? props().color,
5797
- width: "1em",
5798
- height: "1em"
5799
- }));
5800
- Icon($$anchor$2, { get props() {
5801
- return $.get(expression);
5802
- } });
5803
- };
5804
- $.if(node_1, ($$render) => {
5805
- if (props().isIcon && props().iconVariant) $$render(consequent);
5806
- });
5807
- }
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
+ });
5808
6231
  var span = $.sibling(node_1, 2);
5809
6232
  var node_2 = $.child(span);
5810
6233
  $.html(node_2, () => $.get(escapedHTML), false, false);
@@ -5839,47 +6262,45 @@ const TEXT_LINK_UNDERLINE = {
5839
6262
 
5840
6263
  //#endregion
5841
6264
  //#region src/components-flex/background-overlay/BackgroundOverlay.svelte
5842
- var root_1 = $.template(`<div></div>`);
5843
- const $$css$9 = {
6265
+ var root_1$6 = $.template(`<div></div>`);
6266
+ const $$css$19 = {
5844
6267
  hash: "svelte-18nkdjz",
5845
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;}"
5846
6269
  };
5847
6270
  function BackgroundOverlay($$anchor, $$props) {
5848
6271
  $.push($$props, false);
5849
- $.append_styles($$anchor, $$css$9);
6272
+ $.append_styles($$anchor, $$css$19);
5850
6273
  let backgroundOverlay = $.prop($$props, "backgroundOverlay", 8, false);
5851
6274
  let className = $.prop($$props, "class", 8, void 0);
5852
6275
  const dispatch = createEventDispatcher();
5853
6276
  $.init();
5854
6277
  var fragment = $.comment();
5855
6278
  var node = $.first_child(fragment);
5856
- {
5857
- var consequent = ($$anchor$1) => {
5858
- var div = root_1();
5859
- $.template_effect(($0) => $.set_class(div, 1, $0, "svelte-18nkdjz"), [() => $.clsx(["v2-background", className() || ""].join(" "))], $.derived_safe_equal);
5860
- $.event("click", div, () => dispatch("click"));
5861
- $.append($$anchor$1, div);
5862
- };
5863
- $.if(node, ($$render) => {
5864
- if (backgroundOverlay()) $$render(consequent);
5865
- });
5866
- }
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
+ });
5867
6288
  $.append($$anchor, fragment);
5868
6289
  $.pop();
5869
6290
  }
5870
6291
 
5871
6292
  //#endregion
5872
6293
  //#region src/components-flex/modal/Modal.svelte
5873
- var root_2 = $.template(`<!> <!>`, 1);
6294
+ var root_2$4 = $.template(`<!> <!>`, 1);
5874
6295
  var root_4 = $.template(`<div role="dialog" aria-modal="true"><!></div>`);
5875
- var root$9 = $.template(`<!> <!>`, 1);
5876
- const $$css$8 = {
6296
+ var root$12 = $.template(`<!> <!>`, 1);
6297
+ const $$css$18 = {
5877
6298
  hash: "svelte-45ue06",
5878
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 }"
5879
6300
  };
5880
6301
  function Modal($$anchor, $$props) {
5881
6302
  $.push($$props, false);
5882
- $.append_styles($$anchor, $$css$8);
6303
+ $.append_styles($$anchor, $$css$18);
5883
6304
  const close$1 = $.mutable_state();
5884
6305
  const backgroundClick = $.mutable_state();
5885
6306
  const backgroundClickPC = $.mutable_state();
@@ -5889,7 +6310,7 @@ function Modal($$anchor, $$props) {
5889
6310
  let useBreakPoint = $.prop($$props, "useBreakPoint", 8, false);
5890
6311
  let placement = $.prop($$props, "placement", 8);
5891
6312
  let breakPoint = $.prop($$props, "breakPoint", 8);
5892
- let elasticity = $.prop($$props, "elasticity", 8);
6313
+ $.prop($$props, "elasticity", 8);
5893
6314
  let animation = $.prop($$props, "animation", 8, "none");
5894
6315
  let props = $.prop($$props, "props", 24, () => ({}));
5895
6316
  let closeEventName = $.prop($$props, "closeEventName", 8, "");
@@ -6007,6 +6428,7 @@ function Modal($$anchor, $$props) {
6007
6428
  });
6008
6429
  const propsStyle = objToStyle({
6009
6430
  width: props().width,
6431
+ ...toCssPadding(props()),
6010
6432
  ...toCssOverflow(props()),
6011
6433
  ...toCssShadow(props()),
6012
6434
  ...toCssRadius(props()),
@@ -6026,97 +6448,91 @@ function Modal($$anchor, $$props) {
6026
6448
  });
6027
6449
  $.legacy_pre_effect_reset();
6028
6450
  $.init();
6029
- var fragment = root$9();
6451
+ var fragment = root$12();
6030
6452
  $.event("keydown", $.window, function(...$$args) {
6031
6453
  $.get(handle_keydown)?.apply(this, $$args);
6032
6454
  });
6033
6455
  var node = $.first_child(fragment);
6034
- {
6035
- var consequent = ($$anchor$1) => {};
6036
- var alternate = ($$anchor$1, $$elseif) => {
6037
- {
6038
- var consequent_1 = ($$anchor$2) => {
6039
- var fragment_1 = root_2();
6040
- var node_1 = $.first_child(fragment_1);
6041
- BackgroundOverlay(node_1, {
6042
- class: "background-bp-pc",
6043
- get backgroundOverlay() {
6044
- return $.get(backgroundOverlayPC);
6045
- },
6046
- $$events: { click(...$$args) {
6047
- $.get(backgroundClickPC)?.apply(this, $$args);
6048
- } }
6049
- });
6050
- var node_2 = $.sibling(node_1, 2);
6051
- BackgroundOverlay(node_2, {
6052
- class: "background-bp-sp ",
6053
- get backgroundOverlay() {
6054
- return $.get(backgroundOverlaySP);
6055
- },
6056
- $$events: { click(...$$args) {
6057
- $.get(backgroundClickSP)?.apply(this, $$args);
6058
- } }
6059
- });
6060
- $.append($$anchor$2, fragment_1);
6061
- };
6062
- var alternate_1 = ($$anchor$2) => {
6063
- BackgroundOverlay($$anchor$2, {
6064
- get backgroundOverlay() {
6065
- return $.get(backgroundOverlay);
6066
- },
6067
- $$events: { click(...$$args) {
6068
- $.get(backgroundClick)?.apply(this, $$args);
6069
- } }
6070
- });
6071
- };
6072
- $.if($$anchor$1, ($$render) => {
6073
- if (useBreakPoint()) $$render(consequent_1);
6074
- else $$render(alternate_1, false);
6075
- }, $$elseif);
6076
- }
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);
6077
6481
  };
6078
- $.if(node, ($$render) => {
6079
- if (isCanvasPreview()) $$render(consequent);
6080
- else $$render(alternate, false);
6081
- });
6082
- }
6083
- var node_3 = $.sibling(node, 2);
6084
- {
6085
- var consequent_2 = ($$anchor$1) => {
6086
- var div = root_4();
6087
- var node_4 = $.child(div);
6088
- $.slot(node_4, $$props, "default", {}, null);
6089
- $.reset(div);
6090
- $.bind_this(div, ($$value) => $.set(modal, $$value), () => $.get(modal));
6091
- $.template_effect(($0, $1) => {
6092
- $.set_class(div, 1, $0, "svelte-45ue06");
6093
- $.set_attribute(div, "data-layer-id", layerId());
6094
- $.set_style(div, $1);
6095
- }, [() => $.clsx(["modal", useBreakPoint() ? "modal-bp" : ""].join(" ")), () => Array.from(modalStyles).join(";")], $.derived_safe_equal);
6096
- $.transition(1, div, () => customAnimation, () => ({
6097
- transforms: $.get(transforms),
6098
- animationStyle: animation()
6099
- }));
6100
- $.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
+ });
6101
6491
  };
6102
- $.if(node_3, ($$render) => {
6103
- if ($.get(visible)) $$render(consequent_2);
6104
- });
6105
- }
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
+ });
6106
6522
  $.append($$anchor, fragment);
6107
6523
  $.pop();
6108
6524
  }
6109
6525
 
6110
6526
  //#endregion
6111
6527
  //#region src/components-flex/code/Code.svelte
6112
- var root$8 = $.template(`<div class="code svelte-igivoz"><!></div>`);
6113
- const $$css$7 = {
6528
+ var root$11 = $.template(`<div><!></div>`);
6529
+ const $$css$17 = {
6114
6530
  hash: "svelte-igivoz",
6115
6531
  code: ".code.svelte-igivoz {flex-grow:1;flex-shrink:0;align-self:stretch;}\n /*{@html props.rawCss}*/"
6116
6532
  };
6117
6533
  function Code($$anchor, $$props) {
6118
6534
  $.push($$props, false);
6119
- $.append_styles($$anchor, $$css$7);
6535
+ $.append_styles($$anchor, $$css$17);
6120
6536
  let props = $.prop($$props, "props", 24, () => ({}));
6121
6537
  let layerId = $.prop($$props, "layerId", 8, "");
6122
6538
  function unescapeBraces(str) {
@@ -6149,11 +6565,15 @@ function Code($$anchor, $$props) {
6149
6565
  };
6150
6566
  });
6151
6567
  $.init();
6152
- var div = root$8();
6568
+ var div = root$11();
6153
6569
  var node = $.child(div);
6154
6570
  $.html(node, () => props().rawHtml, false, false);
6155
6571
  $.reset(div);
6156
- $.template_effect(() => $.set_attribute(div, "data-layer-id", layerId()));
6572
+ $.template_effect(($0) => {
6573
+ $.set_attribute(div, "id", props().id);
6574
+ $.set_class(div, 1, $0, "svelte-igivoz");
6575
+ $.set_attribute(div, "data-layer-id", layerId());
6576
+ }, [() => $.clsx(["code", ...props().classNames ?? []].join(" "))], $.derived_safe_equal);
6157
6577
  $.append($$anchor, div);
6158
6578
  $.pop();
6159
6579
  }
@@ -6164,21 +6584,21 @@ const LIST_ITEM_CONTEXT_KEY = "ListItemContext";
6164
6584
 
6165
6585
  //#endregion
6166
6586
  //#region src/components-flex/list/ListItem.svelte
6167
- var root$7 = $.template(`<li class="list-item svelte-b4b4gh"><!></li>`);
6168
- const $$css$6 = {
6587
+ var root$10 = $.template(`<li><!></li>`);
6588
+ const $$css$16 = {
6169
6589
  hash: "svelte-b4b4gh",
6170
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);}"
6171
6591
  };
6172
6592
  function ListItem($$anchor, $$props) {
6173
6593
  $.push($$props, false);
6174
- $.append_styles($$anchor, $$css$6);
6594
+ $.append_styles($$anchor, $$css$16);
6175
6595
  const variables$1 = $.mutable_state();
6176
6596
  const style = $.mutable_state();
6177
6597
  const innerStyle = $.mutable_state();
6178
6598
  let layerId = $.prop($$props, "layerId", 8);
6179
6599
  let props = $.prop($$props, "props", 8);
6180
- let item = $.prop($$props, "item", 8);
6181
- useInjectCustomizeCss(props());
6600
+ $.prop($$props, "item", 8);
6601
+ useInjectCustomizeCss(props(), layerId());
6182
6602
  const { attributes, element, handleClick } = useClickable_default(props());
6183
6603
  const context = getContext(LIST_ITEM_CONTEXT_KEY) || {};
6184
6604
  $.legacy_pre_effect(() => {}, () => {
@@ -6202,7 +6622,7 @@ function ListItem($$anchor, $$props) {
6202
6622
  });
6203
6623
  $.legacy_pre_effect_reset();
6204
6624
  $.init();
6205
- var li = root$7();
6625
+ var li = root$10();
6206
6626
  var node = $.child(li);
6207
6627
  $.element(node, () => element, false, ($$element, $$anchor$1) => {
6208
6628
  let attributes_1;
@@ -6218,24 +6638,26 @@ function ListItem($$anchor, $$props) {
6218
6638
  $.append($$anchor$1, fragment);
6219
6639
  });
6220
6640
  $.reset(li);
6221
- $.template_effect(() => {
6641
+ $.template_effect(($0) => {
6642
+ $.set_attribute(li, "id", props().id);
6643
+ $.set_class(li, 1, $0, "svelte-b4b4gh");
6222
6644
  $.set_attribute(li, "data-layer-id", layerId());
6223
6645
  $.set_style(li, $.get(style));
6224
- });
6646
+ }, [() => $.clsx(["list-item", ...props().classNames ?? []].join(" "))], $.derived_safe_equal);
6225
6647
  $.append($$anchor, li);
6226
6648
  $.pop();
6227
6649
  }
6228
6650
 
6229
6651
  //#endregion
6230
6652
  //#region src/components-flex/list/List.svelte
6231
- var root$6 = $.template(`<ul class="list svelte-v2vy6p"><!></ul>`);
6232
- const $$css$5 = {
6653
+ var root$9 = $.template(`<ul><!></ul>`);
6654
+ const $$css$15 = {
6233
6655
  hash: "svelte-v2vy6p",
6234
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);}"
6235
6657
  };
6236
6658
  function List($$anchor, $$props) {
6237
6659
  $.push($$props, false);
6238
- $.append_styles($$anchor, $$css$5);
6660
+ $.append_styles($$anchor, $$css$15);
6239
6661
  const variables$1 = $.mutable_state();
6240
6662
  const actionTableData = $.mutable_state();
6241
6663
  const items = $.mutable_state();
@@ -6243,7 +6665,7 @@ function List($$anchor, $$props) {
6243
6665
  let layerId = $.prop($$props, "layerId", 8);
6244
6666
  let props = $.prop($$props, "props", 8);
6245
6667
  const { brandKit } = useBrandKit();
6246
- useInjectCustomizeCss(props());
6668
+ useInjectCustomizeCss(props(), layerId());
6247
6669
  const vars = getVariables();
6248
6670
  setContext(LIST_ITEM_CONTEXT_KEY, {
6249
6671
  paddingTop: props().itemPaddingTop,
@@ -6277,14 +6699,16 @@ function List($$anchor, $$props) {
6277
6699
  });
6278
6700
  $.legacy_pre_effect_reset();
6279
6701
  $.init();
6280
- var ul = root$6();
6702
+ var ul = root$9();
6281
6703
  var node = $.child(ul);
6282
6704
  $.slot(node, $$props, "default", {}, null);
6283
6705
  $.reset(ul);
6284
- $.template_effect(() => {
6706
+ $.template_effect(($0) => {
6707
+ $.set_attribute(ul, "id", props().id);
6708
+ $.set_class(ul, 1, $0, "svelte-v2vy6p");
6285
6709
  $.set_attribute(ul, "data-layer-id", layerId());
6286
6710
  $.set_style(ul, $.get(style));
6287
- });
6711
+ }, [() => $.clsx(["list", ...props().classNames ?? []].join(" "))], $.derived_safe_equal);
6288
6712
  $.append($$anchor, ul);
6289
6713
  $.pop();
6290
6714
  }
@@ -6314,19 +6738,19 @@ function splitNumberAndUnit(value) {
6314
6738
 
6315
6739
  //#endregion
6316
6740
  //#region src/components-flex/multi-column/MultiColumn.svelte
6317
- var root$5 = $.template(`<ul class="list svelte-aoppwp"><!></ul>`);
6318
- const $$css$4 = {
6319
- hash: "svelte-aoppwp",
6320
- code: ".list.svelte-aoppwp {padding:0;margin:0;list-style:none;display:flex;flex-direction:row;}"
6741
+ var root$8 = $.template(`<ul><!></ul>`);
6742
+ const $$css$14 = {
6743
+ hash: "svelte-9pwfkr",
6744
+ code: ".multi-column.svelte-9pwfkr {padding:0;margin:0;list-style:none;display:flex;flex-direction:row;}"
6321
6745
  };
6322
6746
  function MultiColumn($$anchor, $$props) {
6323
6747
  $.push($$props, false);
6324
- $.append_styles($$anchor, $$css$4);
6748
+ $.append_styles($$anchor, $$css$14);
6325
6749
  const style = $.mutable_state();
6326
6750
  let layerId = $.prop($$props, "layerId", 8);
6327
6751
  let props = $.prop($$props, "props", 8);
6328
6752
  const { brandKit } = useBrandKit();
6329
- useInjectCustomizeCss(props());
6753
+ useInjectCustomizeCss(props(), layerId());
6330
6754
  let listGap = (() => {
6331
6755
  if (!props().gap) return "0";
6332
6756
  const { number, unit } = splitNumberAndUnit(props().gap);
@@ -6357,33 +6781,35 @@ function MultiColumn($$anchor, $$props) {
6357
6781
  });
6358
6782
  $.legacy_pre_effect_reset();
6359
6783
  $.init();
6360
- var ul = root$5();
6784
+ var ul = root$8();
6361
6785
  var node = $.child(ul);
6362
6786
  $.slot(node, $$props, "default", {}, null);
6363
6787
  $.reset(ul);
6364
- $.template_effect(() => {
6788
+ $.template_effect(($0) => {
6365
6789
  $.set_attribute(ul, "data-layer-id", layerId());
6790
+ $.set_attribute(ul, "id", props().id);
6791
+ $.set_class(ul, 1, $0, "svelte-9pwfkr");
6366
6792
  $.set_style(ul, $.get(style));
6367
- });
6793
+ }, [() => $.clsx(["multi-column", ...props().classNames ?? []].join(" "))], $.derived_safe_equal);
6368
6794
  $.append($$anchor, ul);
6369
6795
  $.pop();
6370
6796
  }
6371
6797
 
6372
6798
  //#endregion
6373
6799
  //#region src/components-flex/multi-column/MultiColumnItem.svelte
6374
- var root$4 = $.template(`<li class="multi-column-item svelte-18bwzrs"><!></li>`);
6375
- const $$css$3 = {
6800
+ var root$7 = $.template(`<li><!></li>`);
6801
+ const $$css$13 = {
6376
6802
  hash: "svelte-18bwzrs",
6377
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);}"
6378
6804
  };
6379
6805
  function MultiColumnItem($$anchor, $$props) {
6380
6806
  $.push($$props, false);
6381
- $.append_styles($$anchor, $$css$3);
6807
+ $.append_styles($$anchor, $$css$13);
6382
6808
  const variables$1 = $.mutable_state();
6383
6809
  const style = $.mutable_state();
6384
6810
  let layerId = $.prop($$props, "layerId", 8);
6385
6811
  let props = $.prop($$props, "props", 8);
6386
- useInjectCustomizeCss(props());
6812
+ useInjectCustomizeCss(props(), layerId());
6387
6813
  const { attributes, element, handleClick } = useClickable_default(props());
6388
6814
  const context = getContext(MULTI_COLUMN_ITEM_CONTEXT_KEY) || {};
6389
6815
  $.legacy_pre_effect(() => {}, () => {
@@ -6406,7 +6832,7 @@ function MultiColumnItem($$anchor, $$props) {
6406
6832
  });
6407
6833
  $.legacy_pre_effect_reset();
6408
6834
  $.init();
6409
- var li = root$4();
6835
+ var li = root$7();
6410
6836
  var node = $.child(li);
6411
6837
  $.element(node, () => element, false, ($$element, $$anchor$1) => {
6412
6838
  let attributes_1;
@@ -6421,28 +6847,30 @@ function MultiColumnItem($$anchor, $$props) {
6421
6847
  $.append($$anchor$1, fragment);
6422
6848
  });
6423
6849
  $.reset(li);
6424
- $.template_effect(() => {
6850
+ $.template_effect(($0) => {
6851
+ $.set_attribute(li, "id", props().id);
6852
+ $.set_class(li, 1, $0, "svelte-18bwzrs");
6425
6853
  $.set_attribute(li, "data-layer-id", layerId());
6426
6854
  $.set_style(li, $.get(style));
6427
- });
6855
+ }, [() => $.clsx(["multi-column-item", ...props().classNames ?? []].join(" "))], $.derived_safe_equal);
6428
6856
  $.append($$anchor, li);
6429
6857
  $.pop();
6430
6858
  }
6431
6859
 
6432
6860
  //#endregion
6433
6861
  //#region src/components-flex/youtube/Youtube.svelte
6434
- var root$3 = $.template(`<div class="youtube svelte-odfkc2"><div class="youtube-player"></div></div>`);
6435
- const $$css$2 = {
6862
+ var root$6 = $.template(`<div><div class="youtube-player"></div></div>`);
6863
+ const $$css$12 = {
6436
6864
  hash: "svelte-odfkc2",
6437
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;}"
6438
6866
  };
6439
6867
  function Youtube($$anchor, $$props) {
6440
6868
  $.push($$props, false);
6441
- $.append_styles($$anchor, $$css$2);
6869
+ $.append_styles($$anchor, $$css$12);
6442
6870
  const style = $.mutable_state();
6443
6871
  let props = $.prop($$props, "props", 24, () => ({}));
6444
6872
  let layerId = $.prop($$props, "layerId", 8, "");
6445
- useInjectCustomizeCss(props());
6873
+ useInjectCustomizeCss(props(), layerId());
6446
6874
  if (!window.YT) {
6447
6875
  const tag = document.createElement("script");
6448
6876
  tag.src = "https://www.youtube.com/iframe_api";
@@ -6518,35 +6946,37 @@ function Youtube($$anchor, $$props) {
6518
6946
  });
6519
6947
  $.legacy_pre_effect_reset();
6520
6948
  $.init();
6521
- var div = root$3();
6949
+ var div = root$6();
6522
6950
  var div_1 = $.child(div);
6523
6951
  $.bind_this(div_1, ($$value) => $.set(playerRef, $$value), () => $.get(playerRef));
6524
6952
  $.reset(div);
6525
- $.template_effect(() => {
6953
+ $.template_effect(($0) => {
6954
+ $.set_attribute(div, "id", props().id);
6955
+ $.set_class(div, 1, $0, "svelte-odfkc2");
6526
6956
  $.set_style(div, $.get(style));
6527
6957
  $.set_attribute(div, "data-layer-id", layerId());
6528
- });
6958
+ }, [() => $.clsx(["youtube", ...props().classNames ?? []].join(" "))], $.derived_safe_equal);
6529
6959
  $.append($$anchor, div);
6530
6960
  $.pop();
6531
6961
  }
6532
6962
 
6533
6963
  //#endregion
6534
6964
  //#region src/components-flex/count-down/CountDown.svelte
6535
- var root$2 = $.template(`<div class="countdown svelte-1n395il"><!></div>`);
6536
- const $$css$1 = {
6965
+ var root$5 = $.template(`<div><!></div>`);
6966
+ const $$css$11 = {
6537
6967
  hash: "svelte-1n395il",
6538
6968
  code: ".countdown.svelte-1n395il {display:flex;align-items:center;gap:4px;}"
6539
6969
  };
6540
6970
  function CountDown($$anchor, $$props) {
6541
6971
  $.push($$props, false);
6542
- $.append_styles($$anchor, $$css$1);
6972
+ $.append_styles($$anchor, $$css$11);
6543
6973
  const day = $.mutable_state();
6544
6974
  const hour = $.mutable_state();
6545
6975
  const min = $.mutable_state();
6546
6976
  const sec = $.mutable_state();
6547
6977
  let props = $.prop($$props, "props", 24, () => ({}));
6548
6978
  let layerId = $.prop($$props, "layerId", 8, "");
6549
- useInjectCustomizeCss(props());
6979
+ useInjectCustomizeCss(props(), layerId());
6550
6980
  let remainingTime = $.mutable_state();
6551
6981
  let timeLimit = props().timeLimit ? new Date(props().timeLimit) : /* @__PURE__ */ new Date();
6552
6982
  function calcRemainingTime(limit) {
@@ -6595,7 +7025,7 @@ function CountDown($$anchor, $$props) {
6595
7025
  });
6596
7026
  $.legacy_pre_effect_reset();
6597
7027
  $.init();
6598
- var div = root$2();
7028
+ var div = root$5();
6599
7029
  var node = $.child(div);
6600
7030
  $.slot(node, $$props, "default", {
6601
7031
  get day() {
@@ -6612,15 +7042,19 @@ function CountDown($$anchor, $$props) {
6612
7042
  }
6613
7043
  }, null);
6614
7044
  $.reset(div);
6615
- $.template_effect(() => $.set_attribute(div, "data-layer-id", layerId()));
7045
+ $.template_effect(($0) => {
7046
+ $.set_attribute(div, "id", props().id);
7047
+ $.set_class(div, 1, $0, "svelte-1n395il");
7048
+ $.set_attribute(div, "data-layer-id", layerId());
7049
+ }, [() => $.clsx(["countdown", ...props().classNames ?? []].join(" "))], $.derived_safe_equal);
6616
7050
  $.append($$anchor, div);
6617
7051
  $.pop();
6618
7052
  }
6619
7053
 
6620
7054
  //#endregion
6621
7055
  //#region src/hooks/useText.ts
6622
- const useText = (props) => {
6623
- useInjectCustomizeCss(props);
7056
+ const useText = (props, layerId) => {
7057
+ useInjectCustomizeCss(props, layerId);
6624
7058
  const { brandKit } = useBrandKit();
6625
7059
  const themeStyles = getTextThemeStyles(brandKit);
6626
7060
  const fontFamilyStyles = props.fontFamilyVariant in FONT_FAMILY_VARIANT ? FONT_FAMILY_VARIANT[props.fontFamilyVariant].getProps(brandKit) : FONT_FAMILY_VARIANT.default.getProps(brandKit);
@@ -6676,7 +7110,7 @@ const useText = (props) => {
6676
7110
 
6677
7111
  //#endregion
6678
7112
  //#region src/components-flex/count-down/CountDownValue.svelte
6679
- var root$1 = $.template(`<span class="count-down-value"> </span>`);
7113
+ var root$4 = $.template(`<span> </span>`);
6680
7114
  function CountDownValue($$anchor, $$props) {
6681
7115
  $.push($$props, false);
6682
7116
  const [$$stores, $$cleanup] = $.setup_stores();
@@ -6685,7 +7119,7 @@ function CountDownValue($$anchor, $$props) {
6685
7119
  let props = $.prop($$props, "props", 24, () => ({}));
6686
7120
  let layerId = $.prop($$props, "layerId", 8, "");
6687
7121
  let countdownStore = getContext("countdownStore");
6688
- let { style } = useText(props());
7122
+ let { style } = useText(props(), layerId());
6689
7123
  $.legacy_pre_effect(() => ($countdownStore(), $.deep_read_state(props())), () => {
6690
7124
  $.set(value, (() => {
6691
7125
  const { day, hour, min, sec } = $countdownStore();
@@ -6700,14 +7134,16 @@ function CountDownValue($$anchor, $$props) {
6700
7134
  });
6701
7135
  $.legacy_pre_effect_reset();
6702
7136
  $.init();
6703
- var span = root$1();
7137
+ var span = root$4();
6704
7138
  $.set_style(span, style);
6705
7139
  var text = $.child(span, true);
6706
7140
  $.reset(span);
6707
- $.template_effect(() => {
7141
+ $.template_effect(($0) => {
7142
+ $.set_attribute(span, "id", props().id);
7143
+ $.set_class(span, 1, $0);
6708
7144
  $.set_attribute(span, "data-layer-id", layerId());
6709
7145
  $.set_text(text, $.get(value));
6710
- });
7146
+ }, [() => $.clsx(["count-down-value", ...props().classNames ?? []].join(" "))], $.derived_safe_equal);
6711
7147
  $.append($$anchor, span);
6712
7148
  $.pop();
6713
7149
  $$cleanup();
@@ -6715,17 +7151,17 @@ function CountDownValue($$anchor, $$props) {
6715
7151
 
6716
7152
  //#endregion
6717
7153
  //#region src/components-flex/clip-copy/ClipCopy.svelte
6718
- var root = $.template(`<div class="clipboard svelte-orhp4c"><button class="clipboard-button svelte-orhp4c"><!></button> <span class="clipboard-tooltip svelte-orhp4c">コピーしました</span></div>`);
6719
- const $$css = {
7154
+ var root$3 = $.template(`<div><button class="clipboard-button svelte-orhp4c"><!></button> <span class="clipboard-tooltip svelte-orhp4c">コピーしました</span></div>`);
7155
+ const $$css$10 = {
6720
7156
  hash: "svelte-orhp4c",
6721
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%);}"
6722
7158
  };
6723
7159
  function ClipCopy($$anchor, $$props) {
6724
7160
  $.push($$props, false);
6725
- $.append_styles($$anchor, $$css);
7161
+ $.append_styles($$anchor, $$css$10);
6726
7162
  let props = $.prop($$props, "props", 24, () => ({}));
6727
7163
  let layerId = $.prop($$props, "layerId", 8, "");
6728
- useInjectCustomizeCss(props());
7164
+ useInjectCustomizeCss(props(), layerId());
6729
7165
  let buttonElement = $.mutable_state();
6730
7166
  let showTooltip = $.mutable_state(false);
6731
7167
  const handleClick = (e) => {
@@ -6740,7 +7176,7 @@ function ClipCopy($$anchor, $$props) {
6740
7176
  }, 3e3);
6741
7177
  };
6742
7178
  $.init();
6743
- var div = root();
7179
+ var div = root$3();
6744
7180
  var button = $.child(div);
6745
7181
  var node = $.child(button);
6746
7182
  $.slot(node, $$props, "default", {}, null);
@@ -6748,15 +7184,950 @@ function ClipCopy($$anchor, $$props) {
6748
7184
  $.bind_this(button, ($$value) => $.set(buttonElement, $$value), () => $.get(buttonElement));
6749
7185
  var span = $.sibling(button, 2);
6750
7186
  $.reset(div);
6751
- $.template_effect(() => {
7187
+ $.template_effect(($0) => {
7188
+ $.set_attribute(div, "id", props().id);
7189
+ $.set_class(div, 1, $0, "svelte-orhp4c");
6752
7190
  $.set_attribute(div, "data-layer-id", layerId());
6753
7191
  $.set_attribute(span, "aria-hidden", !$.get(showTooltip));
6754
- });
7192
+ }, [() => $.clsx(["clipboard", ...props().classNames ?? []].join(" "))], $.derived_safe_equal);
6755
7193
  $.event("click", button, handleClick);
6756
7194
  $.append($$anchor, div);
6757
7195
  $.pop();
6758
7196
  }
6759
7197
 
7198
+ //#endregion
7199
+ //#region src/components-flex/embed/Embed.svelte
7200
+ var root$2 = $.template(`<div><!></div>`);
7201
+ const $$css$9 = {
7202
+ hash: "svelte-13tkwh0",
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;}"
7204
+ };
7205
+ function Embed($$anchor, $$props) {
7206
+ $.push($$props, false);
7207
+ $.append_styles($$anchor, $$css$9);
7208
+ const variables$1 = $.mutable_state();
7209
+ const styleObj = $.mutable_state();
7210
+ const style = $.mutable_state();
7211
+ let props = $.prop($$props, "props", 24, () => ({}));
7212
+ let layerId = $.prop($$props, "layerId", 8, "");
7213
+ useInjectCustomizeCss(props(), layerId());
7214
+ const aspectVariantStyles = ASPECT_VARIANT[props().aspectVariant]?.getProps();
7215
+ const width = props().width ?? "100%";
7216
+ $.legacy_pre_effect(() => $.deep_read_state(props()), () => {
7217
+ $.set(variables$1, {
7218
+ "--width": width,
7219
+ "--height": props().height ?? "auto",
7220
+ "--aspect": props().aspect ?? aspectVariantStyles?.aspect
7221
+ });
7222
+ });
7223
+ $.legacy_pre_effect(() => ($.deep_read_state(props()), $.get(variables$1)), () => {
7224
+ $.set(styleObj, {
7225
+ ...toCssCommon(props()),
7226
+ ...$.get(variables$1)
7227
+ });
7228
+ });
7229
+ $.legacy_pre_effect(() => $.get(styleObj), () => {
7230
+ $.set(style, objToStyle($.get(styleObj)));
7231
+ });
7232
+ $.legacy_pre_effect_reset();
7233
+ $.init();
7234
+ var div = root$2();
7235
+ var node = $.child(div);
7236
+ $.html(node, () => props().iframe, false, false);
7237
+ $.reset(div);
7238
+ $.template_effect(($0) => {
7239
+ $.set_attribute(div, "id", props().id);
7240
+ $.set_style(div, $.get(style));
7241
+ $.set_class(div, 1, $0, "svelte-13tkwh0");
7242
+ $.set_attribute(div, "data-layer-id", layerId());
7243
+ }, [() => $.clsx(["embed", ...props().classNames ?? []].join(" "))], $.derived_safe_equal);
7244
+ $.append($$anchor, div);
7245
+ $.pop();
7246
+ }
7247
+
7248
+ //#endregion
7249
+ //#region src/components-flex/form/Form.svelte
7250
+ var root$1 = $.template(`<div><!></div>`);
7251
+ const $$css$8 = {
7252
+ hash: "svelte-nekp9e",
7253
+ code: ".form.svelte-nekp9e {width:100%;}"
7254
+ };
7255
+ function Form($$anchor, $$props) {
7256
+ $.push($$props, false);
7257
+ $.append_styles($$anchor, $$css$8);
7258
+ let props = $.prop($$props, "props", 24, () => ({}));
7259
+ let layerId = $.prop($$props, "layerId", 8, "");
7260
+ useInjectCustomizeCss(props(), layerId());
7261
+ $.init();
7262
+ var div = root$1();
7263
+ var node = $.child(div);
7264
+ $.slot(node, $$props, "default", {}, null);
7265
+ $.reset(div);
7266
+ $.template_effect(($0) => {
7267
+ $.set_attribute(div, "id", props().id);
7268
+ $.set_class(div, 1, $0, "svelte-nekp9e");
7269
+ $.set_attribute(div, "data-layer-id", layerId());
7270
+ }, [() => $.clsx(["form", ...props().classNames ?? []].join(" "))], $.derived_safe_equal);
7271
+ $.append($$anchor, div);
7272
+ $.pop();
7273
+ }
7274
+
7275
+ //#endregion
7276
+ //#region src/components-flex/form/styles.ts
7277
+ const getFormFieldLabelThemeStyles = getPropStyles(({ brandKit }) => {
7278
+ return {
7279
+ default: { color: brandKit.color_text_primary },
7280
+ gray: { color: brandKit.color_text_secondary },
7281
+ brand: { color: brandKit.color_brand }
7282
+ };
7283
+ });
7284
+ const FORM_FIELD_LABEL_SIZE_STYLES = {
7285
+ small: { fontSize: "12px" },
7286
+ medium: { fontSize: "14px" },
7287
+ large: { fontSize: "16px" }
7288
+ };
7289
+
7290
+ //#endregion
7291
+ //#region src/components-flex/form/FormField.svelte
7292
+ var root_2$3 = $.template(`<span class="field-required svelte-1maygd6">*</span>`);
7293
+ var root_1$5 = $.template(`<dt class="svelte-1maygd6"><span> </span> <!></dt>`);
7294
+ var root_3 = $.template(`<p class="field-error svelte-1maygd6"> </p>`);
7295
+ var root = $.template(`<dl><!> <dd class="svelte-1maygd6"><!> <!></dd></dl>`);
7296
+ const $$css$7 = {
7297
+ hash: "svelte-1maygd6",
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;}"
7299
+ };
7300
+ function FormField($$anchor, $$props) {
7301
+ $.push($$props, false);
7302
+ $.append_styles($$anchor, $$css$7);
7303
+ const variables$1 = $.mutable_state();
7304
+ const style = $.mutable_state();
7305
+ let props = $.prop($$props, "props", 24, () => ({}));
7306
+ let layerId = $.prop($$props, "layerId", 8, "");
7307
+ useInjectCustomizeCss(props(), layerId());
7308
+ const { brandKit } = useBrandKit();
7309
+ let registeredFieldName = $.mutable_state("");
7310
+ let errorMessage = $.mutable_state(null);
7311
+ let isShowErrorMessage = $.mutable_state(false);
7312
+ const theme = getFormFieldLabelThemeStyles(brandKit)[props().labelTheme ?? "gray"];
7313
+ const size = FORM_FIELD_LABEL_SIZE_STYLES[props().labelSize ?? "medium"];
7314
+ onDestory(() => {
7315
+ if (!$.get(registeredFieldName)) return;
7316
+ unregisterFormField($.get(registeredFieldName));
7317
+ });
7318
+ $.legacy_pre_effect(() => $.deep_read_state(props()), () => {
7319
+ $.set(variables$1, {
7320
+ "--danger-color": brandKit.color_danger,
7321
+ "--form-field-direction": props().direction ?? "column",
7322
+ "--form-field-gap": props().gap ?? "4px",
7323
+ "--form-field-label-width": props().labelWidth ?? "100%",
7324
+ "--form-field-label-font-size": size.fontSize,
7325
+ "--form-field-label-color": theme.color
7326
+ });
7327
+ });
7328
+ $.legacy_pre_effect(() => $.get(variables$1), () => {
7329
+ $.set(style, objToStyle({ ...$.get(variables$1) }));
7330
+ });
7331
+ $.legacy_pre_effect(() => ($.deep_read_state(props()), $.get(registeredFieldName), formStore), () => {
7332
+ if (props().fieldName) {
7333
+ if ($.get(registeredFieldName) && $.get(registeredFieldName) !== props().fieldName) unregisterFormField($.get(registeredFieldName));
7334
+ registerFormField({
7335
+ type: props().fieldType,
7336
+ name: props().fieldName,
7337
+ defaultValue: props().defaultValue,
7338
+ required: props().required,
7339
+ validations: props().validations,
7340
+ isIdentify: props().isIdentify
7341
+ });
7342
+ formStore.subscribe(($store) => {
7343
+ $.set(errorMessage, $store.states[props().fieldName]?.errorMessage ?? null);
7344
+ $.set(isShowErrorMessage, $store.states[props().fieldName]?.isTouched ?? false);
7345
+ });
7346
+ $.set(registeredFieldName, props().fieldName);
7347
+ }
7348
+ });
7349
+ $.legacy_pre_effect_reset();
7350
+ $.init();
7351
+ var dl = root();
7352
+ var node = $.child(dl);
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);
7362
+ };
7363
+ $.if(node_1, ($$render) => {
7364
+ if (props().required) $$render(consequent);
7365
+ });
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
+ });
7373
+ var dd = $.sibling(node, 2);
7374
+ var node_2 = $.child(dd);
7375
+ $.slot(node_2, $$props, "default", { get "data-layer-id"() {
7376
+ return layerId();
7377
+ } }, null);
7378
+ var node_3 = $.sibling(node_2, 2);
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
+ });
7389
+ $.reset(dd);
7390
+ $.reset(dl);
7391
+ $.template_effect(($0) => {
7392
+ $.set_attribute(dl, "id", props().id);
7393
+ $.set_class(dl, 1, $0, "svelte-1maygd6");
7394
+ $.set_attribute(dl, "data-layer-id", layerId());
7395
+ $.set_style(dl, $.get(style));
7396
+ }, [() => $.clsx([
7397
+ "field",
7398
+ props().required ? "required" : "",
7399
+ ...props().classNames ?? []
7400
+ ].join(" "))], $.derived_safe_equal);
7401
+ $.append($$anchor, dl);
7402
+ $.pop();
7403
+ }
7404
+
7405
+ //#endregion
7406
+ //#region src/components-flex/form/FormInput.svelte
7407
+ var root_1$4 = $.template(`<input type="text">`);
7408
+ const $$css$6 = {
7409
+ hash: "svelte-176cxs0",
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);}"
7411
+ };
7412
+ function FormInput($$anchor, $$props) {
7413
+ $.push($$props, false);
7414
+ $.append_styles($$anchor, $$css$6);
7415
+ const variant = $.mutable_state();
7416
+ const size = $.mutable_state();
7417
+ const variables$1 = $.mutable_state();
7418
+ const style = $.mutable_state();
7419
+ const type = $.mutable_state();
7420
+ let props = $.prop($$props, "props", 24, () => ({}));
7421
+ let layerId = $.prop($$props, "layerId", 8, "");
7422
+ const { brandKit } = useBrandKit();
7423
+ useInjectCustomizeCss(props(), layerId());
7424
+ let value = $.mutable_state("");
7425
+ const handleBlur = () => {
7426
+ if (props().fieldName) {
7427
+ setFormFieldTouched(props().fieldName);
7428
+ setFormFieldValue(props().fieldName, $.get(value));
7429
+ }
7430
+ };
7431
+ const handleInput = () => {
7432
+ setFormFieldValue(props().fieldName, $.get(value));
7433
+ };
7434
+ onMount$1(() => {
7435
+ if (props().fieldName) $.set(value, getFormFieldValue(props().fieldName));
7436
+ });
7437
+ $.legacy_pre_effect(() => $.deep_read_state(props()), () => {
7438
+ $.set(variant, props().variant ?? "outlined");
7439
+ });
7440
+ $.legacy_pre_effect(() => $.deep_read_state(props()), () => {
7441
+ $.set(size, props().size ?? "medium");
7442
+ });
7443
+ $.legacy_pre_effect(() => $.deep_read_state(props()), () => {
7444
+ $.set(variables$1, (() => {
7445
+ return {
7446
+ "--form-input-width": props().width ?? "100%",
7447
+ "--border-color": props().borderColor || brandKit.color_form_field_border,
7448
+ "--focused-outline-color": props().focusedBorderColor || brandKit.color_form_field_focused_border || brandKit.color_brand,
7449
+ "--placeholder-color": props().placeholderColor ?? brandKit.color_form_field_placeholder,
7450
+ "--font-color": props().fontColor || brandKit.color_text_primary,
7451
+ "--background-color": props().backgroundColor || brandKit.color_form_field_background
7452
+ };
7453
+ })());
7454
+ });
7455
+ $.legacy_pre_effect(() => $.get(variables$1), () => {
7456
+ $.set(style, objToStyle({ ...$.get(variables$1) }));
7457
+ });
7458
+ $.legacy_pre_effect(() => $.deep_read_state(props()), () => {
7459
+ $.set(type, (() => {
7460
+ if (props().inputType === "url") return "url";
7461
+ if (props().inputType === "tel") return "tel";
7462
+ if (props().inputType === "email") return "email";
7463
+ return "text";
7464
+ })());
7465
+ });
7466
+ $.legacy_pre_effect_reset();
7467
+ $.init();
7468
+ FormField($$anchor, {
7469
+ get layerId() {
7470
+ return layerId();
7471
+ },
7472
+ get props() {
7473
+ return props();
7474
+ },
7475
+ children: ($$anchor$1, $$slotProps) => {
7476
+ var input = root_1$4();
7477
+ $.remove_input_defaults(input);
7478
+ $.template_effect(($0) => {
7479
+ $.set_attribute(input, "placeholder", props().placeholder);
7480
+ $.set_attribute(input, "name", props().fieldName);
7481
+ $.set_class(input, 1, $0, "svelte-176cxs0");
7482
+ $.set_style(input, $.get(style));
7483
+ }, [() => $.clsx([
7484
+ "form-input",
7485
+ $.get(variant),
7486
+ $.get(size)
7487
+ ].join(" "))], $.derived_safe_equal);
7488
+ $.bind_value(input, () => $.get(value), ($$value) => $.set(value, $$value));
7489
+ $.event("blur", input, handleBlur);
7490
+ $.event("input", input, handleInput);
7491
+ $.append($$anchor$1, input);
7492
+ },
7493
+ $$slots: { default: true }
7494
+ });
7495
+ $.pop();
7496
+ }
7497
+
7498
+ //#endregion
7499
+ //#region src/components-flex/form/FormTextarea.svelte
7500
+ var root_1$3 = $.template(`<textarea></textarea>`);
7501
+ const $$css$5 = {
7502
+ hash: "svelte-1oqg2c0",
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);}"
7504
+ };
7505
+ function FormTextarea($$anchor, $$props) {
7506
+ $.push($$props, false);
7507
+ $.append_styles($$anchor, $$css$5);
7508
+ const variant = $.mutable_state();
7509
+ const size = $.mutable_state();
7510
+ const variables$1 = $.mutable_state();
7511
+ const style = $.mutable_state();
7512
+ let props = $.prop($$props, "props", 24, () => ({}));
7513
+ let layerId = $.prop($$props, "layerId", 8, "");
7514
+ const { brandKit } = useBrandKit();
7515
+ useInjectCustomizeCss(props(), layerId());
7516
+ let value = $.mutable_state("");
7517
+ const handleBlur = () => {
7518
+ if (props().fieldName) {
7519
+ setFormFieldTouched(props().fieldName);
7520
+ setFormFieldValue(props().fieldName, $.get(value));
7521
+ }
7522
+ };
7523
+ const handleInput = () => {
7524
+ setFormFieldValue(props().fieldName, $.get(value));
7525
+ };
7526
+ onMount$1(() => {
7527
+ if (props().fieldName) $.set(value, getFormFieldValue(props().fieldName));
7528
+ });
7529
+ $.legacy_pre_effect(() => $.deep_read_state(props()), () => {
7530
+ $.set(variant, props().variant ?? "outlined");
7531
+ });
7532
+ $.legacy_pre_effect(() => $.deep_read_state(props()), () => {
7533
+ $.set(size, props().size ?? "medium");
7534
+ });
7535
+ $.legacy_pre_effect(() => $.deep_read_state(props()), () => {
7536
+ $.set(variables$1, (() => {
7537
+ return {
7538
+ "--form-textarea-width": props().width ?? "100%",
7539
+ "--border-color": props().borderColor || brandKit.color_form_field_border,
7540
+ "--focused-outline-color": props().focusedBorderColor || brandKit.color_form_field_focused_border || brandKit.color_brand,
7541
+ "--placeholder-color": props().placeholderColor ?? brandKit.color_form_field_placeholder,
7542
+ "--font-color": props().fontColor || brandKit.color_text_primary,
7543
+ "--background-color": props().backgroundColor || brandKit.color_form_field_background
7544
+ };
7545
+ })());
7546
+ });
7547
+ $.legacy_pre_effect(() => $.get(variables$1), () => {
7548
+ $.set(style, objToStyle({ ...$.get(variables$1) }));
7549
+ });
7550
+ $.legacy_pre_effect_reset();
7551
+ $.init();
7552
+ FormField($$anchor, {
7553
+ get layerId() {
7554
+ return layerId();
7555
+ },
7556
+ get props() {
7557
+ return props();
7558
+ },
7559
+ children: ($$anchor$1, $$slotProps) => {
7560
+ var textarea = root_1$3();
7561
+ $.remove_textarea_child(textarea);
7562
+ $.template_effect(($0) => {
7563
+ $.set_attribute(textarea, "placeholder", props().placeholder);
7564
+ $.set_attribute(textarea, "rows", props().rows);
7565
+ $.set_attribute(textarea, "name", props().fieldName);
7566
+ $.set_class(textarea, 1, $0, "svelte-1oqg2c0");
7567
+ $.set_style(textarea, $.get(style));
7568
+ }, [() => $.clsx([
7569
+ "form-textarea",
7570
+ $.get(variant),
7571
+ $.get(size)
7572
+ ].join(" "))], $.derived_safe_equal);
7573
+ $.bind_value(textarea, () => $.get(value), ($$value) => $.set(value, $$value));
7574
+ $.event("blur", textarea, handleBlur);
7575
+ $.event("input", textarea, handleInput);
7576
+ $.append($$anchor$1, textarea);
7577
+ },
7578
+ $$slots: { default: true }
7579
+ });
7580
+ $.pop();
7581
+ }
7582
+
7583
+ //#endregion
7584
+ //#region src/components-flex/form/FormSelect.svelte
7585
+ var root_2$2 = $.template(`<option class="svelte-p118m"> </option>`);
7586
+ var root_1$2 = $.template(`<div><select class="form-select-select svelte-p118m"><option disabled class="svelte-p118m"> </option><!></select></div>`);
7587
+ const $$css$4 = {
7588
+ hash: "svelte-p118m",
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);}"
7590
+ };
7591
+ function FormSelect($$anchor, $$props) {
7592
+ $.push($$props, false);
7593
+ $.append_styles($$anchor, $$css$4);
7594
+ const variant = $.mutable_state();
7595
+ const size = $.mutable_state();
7596
+ const isEmpty$1 = $.mutable_state();
7597
+ const variables$1 = $.mutable_state();
7598
+ const style = $.mutable_state();
7599
+ let props = $.prop($$props, "props", 24, () => ({}));
7600
+ let layerId = $.prop($$props, "layerId", 8, "");
7601
+ const { brandKit } = useBrandKit();
7602
+ useInjectCustomizeCss(props(), layerId());
7603
+ let value = $.mutable_state("");
7604
+ const handleChange = () => {
7605
+ if (props().fieldName) {
7606
+ setFormFieldTouched(props().fieldName);
7607
+ setFormFieldValue(props().fieldName, $.get(value));
7608
+ }
7609
+ };
7610
+ onMount$1(() => {
7611
+ if (props().fieldName) $.set(value, getFormFieldValue(props().fieldName));
7612
+ });
7613
+ $.legacy_pre_effect(() => $.deep_read_state(props()), () => {
7614
+ $.set(variant, props().variant ?? "outlined");
7615
+ });
7616
+ $.legacy_pre_effect(() => $.deep_read_state(props()), () => {
7617
+ $.set(size, props().size ?? "medium");
7618
+ });
7619
+ $.legacy_pre_effect(() => $.get(value), () => {
7620
+ $.set(isEmpty$1, $.get(value) === "");
7621
+ });
7622
+ $.legacy_pre_effect(() => $.deep_read_state(props()), () => {
7623
+ $.set(variables$1, (() => {
7624
+ return {
7625
+ "--width": props().width ?? "100%",
7626
+ "--border-color": props().borderColor || brandKit.color_form_field_border,
7627
+ "--focused-outline-color": props().focusedBorderColor || brandKit.color_form_field_focused_border || brandKit.color_brand,
7628
+ "--placeholder-color": props().placeholderColor ?? brandKit.color_form_field_placeholder,
7629
+ "--font-color": props().fontColor || brandKit.color_text_primary,
7630
+ "--background-color": props().backgroundColor || brandKit.color_form_field_background
7631
+ };
7632
+ })());
7633
+ });
7634
+ $.legacy_pre_effect(() => $.get(variables$1), () => {
7635
+ $.set(style, objToStyle({ ...$.get(variables$1) }));
7636
+ });
7637
+ $.legacy_pre_effect_reset();
7638
+ $.init();
7639
+ FormField($$anchor, {
7640
+ get layerId() {
7641
+ return layerId();
7642
+ },
7643
+ get props() {
7644
+ return props();
7645
+ },
7646
+ children: ($$anchor$1, $$slotProps) => {
7647
+ var div = root_1$2();
7648
+ var select = $.child(div);
7649
+ $.template_effect(() => {
7650
+ $.get(value);
7651
+ $.invalidate_inner_signals(() => {
7652
+ props();
7653
+ });
7654
+ });
7655
+ var option_1 = $.child(select);
7656
+ option_1.value = null == (option_1.__value = "") ? "" : "";
7657
+ var text = $.child(option_1, true);
7658
+ $.reset(option_1);
7659
+ var node = $.sibling(option_1);
7660
+ $.each(node, 1, () => props().options, $.index, ($$anchor$2, option) => {
7661
+ var option_2 = root_2$2();
7662
+ var option_2_value = {};
7663
+ var text_1 = $.child(option_2, true);
7664
+ $.reset(option_2);
7665
+ $.template_effect(() => {
7666
+ if (option_2_value !== (option_2_value = $.get(option).value)) option_2.value = null == (option_2.__value = $.get(option).value) ? "" : $.get(option).value;
7667
+ $.set_text(text_1, $.get(option).label);
7668
+ });
7669
+ $.append($$anchor$2, option_2);
7670
+ });
7671
+ $.reset(select);
7672
+ $.reset(div);
7673
+ $.template_effect(($0) => {
7674
+ $.set_class(div, 1, $0, "svelte-p118m");
7675
+ $.set_style(div, $.get(style));
7676
+ $.set_attribute(select, "name", props().fieldName);
7677
+ $.set_text(text, props().placeholder ?? "選択してください");
7678
+ }, [() => $.clsx([
7679
+ "form-select",
7680
+ $.get(variant),
7681
+ $.get(size),
7682
+ $.get(isEmpty$1) ? "empty" : ""
7683
+ ].join(" "))], $.derived_safe_equal);
7684
+ $.bind_select_value(select, () => $.get(value), ($$value) => $.set(value, $$value));
7685
+ $.event("change", select, handleChange);
7686
+ $.append($$anchor$1, div);
7687
+ },
7688
+ $$slots: { default: true }
7689
+ });
7690
+ $.pop();
7691
+ }
7692
+
7693
+ //#endregion
7694
+ //#region src/components-flex/form/types.ts
7695
+ const FORM_FIELD_LABEL_SIZE = {
7696
+ small: "スモール",
7697
+ medium: "ミディアム",
7698
+ large: "ラージ"
7699
+ };
7700
+ const FORM_FIELD_LABEL_THEME = {
7701
+ default: "デフォルト",
7702
+ gray: "グレー",
7703
+ brand: "ブランド"
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
+ };
7714
+ const FORM_FIELD_TYPE = {
7715
+ INPUT: "input",
7716
+ SELECT: "select",
7717
+ CHECKBOX: "checkbox",
7718
+ CHECKBOXES: "checkboxes",
7719
+ RADIOS: "radio",
7720
+ BOOLEAN: "boolean",
7721
+ TEXTAREA: "textarea"
7722
+ };
7723
+ const FORM_FIELD_VARIANT = {
7724
+ outlined: "アウトライン",
7725
+ underlined: "アンダーライン",
7726
+ filled: "塗りつぶし"
7727
+ };
7728
+ const FORM_FIELD_VARIANT_FOR_CHECKER = {
7729
+ outlined: "アウトライン",
7730
+ filled: "塗りつぶし"
7731
+ };
7732
+ const FORM_FIELD_SIZE = {
7733
+ small: "スモール",
7734
+ medium: "ミディアム",
7735
+ large: "ラージ"
7736
+ };
7737
+ const FORM_INPUT_TYPE = {
7738
+ TEXT: "text",
7739
+ URL: "url",
7740
+ TEL: "tel",
7741
+ EMAIL: "email"
7742
+ };
7743
+
7744
+ //#endregion
7745
+ //#region src/components-flex/form/FormCheckboxes.svelte
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>`);
7747
+ var root_1$1 = $.template(`<ul></ul>`);
7748
+ const $$css$3 = {
7749
+ hash: "svelte-rx48m9",
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;}"
7751
+ };
7752
+ function FormCheckboxes($$anchor, $$props) {
7753
+ $.push($$props, false);
7754
+ $.append_styles($$anchor, $$css$3);
7755
+ const variant = $.mutable_state();
7756
+ const size = $.mutable_state();
7757
+ const options = $.mutable_state();
7758
+ const variables$1 = $.mutable_state();
7759
+ const listStyles = $.mutable_state();
7760
+ const binding_group = [];
7761
+ let props = $.prop($$props, "props", 24, () => ({}));
7762
+ let layerId = $.prop($$props, "layerId", 8, "");
7763
+ useInjectCustomizeCss(props(), layerId());
7764
+ const { brandKit } = useBrandKit();
7765
+ let values = $.mutable_state([]);
7766
+ const handleChange = () => {
7767
+ if (props().fieldName) {
7768
+ setFormFieldTouched(props().fieldName);
7769
+ setFormFieldValue(props().fieldName, $.get(values));
7770
+ }
7771
+ };
7772
+ onMount$1(() => {
7773
+ if (props().fieldName) $.set(values, getFormFieldValue(props().fieldName));
7774
+ });
7775
+ $.legacy_pre_effect(() => ($.deep_read_state(props()), FORM_FIELD_VARIANT_FOR_CHECKER), () => {
7776
+ $.set(variant, props().variant && Object.keys(FORM_FIELD_VARIANT_FOR_CHECKER).includes(props().variant) ? props().variant : "outlined");
7777
+ });
7778
+ $.legacy_pre_effect(() => $.deep_read_state(props()), () => {
7779
+ $.set(size, props().size ?? "medium");
7780
+ });
7781
+ $.legacy_pre_effect(() => $.deep_read_state(props()), () => {
7782
+ $.set(options, (props().options ?? []).filter((v) => v.label && v.value));
7783
+ });
7784
+ $.legacy_pre_effect(() => ($.deep_read_state(props()), $.get(size)), () => {
7785
+ $.set(variables$1, {
7786
+ "--checkboxes-display": props().layout === "grid" ? "grid" : "flex",
7787
+ "--checkboxes-direction": (() => {
7788
+ if (props().layout === "grid") return void 0;
7789
+ return props().layout === "horizontal" ? "row" : "column";
7790
+ })(),
7791
+ "--checkboxes-grid-cols": (() => {
7792
+ if (props().layout !== "grid") return void 0;
7793
+ return `repeat(${props().layoutGridCols ?? 1},minmax(0,1fr))`;
7794
+ })(),
7795
+ "--checkboxes-gap-y": props().layoutGapY ?? "0",
7796
+ "--checkboxes-gap-x": props().layoutGapX ?? "0",
7797
+ "--checkbox-font-size": (() => {
7798
+ if ($.get(size) === "small") return "12px";
7799
+ if ($.get(size) === "large") return "16px";
7800
+ return "14px";
7801
+ })(),
7802
+ "--checkbox-check-size": (() => {
7803
+ if ($.get(size) === "small") return "14x";
7804
+ if ($.get(size) === "large") return "18px";
7805
+ return "16px";
7806
+ })(),
7807
+ "--checkbox-check-radius": (() => {
7808
+ if ($.get(size) === "small") return "2px";
7809
+ if ($.get(size) === "large") return "6px";
7810
+ return "4px";
7811
+ })(),
7812
+ "--checkbox-gap": (() => {
7813
+ if ($.get(size) === "small") return "6px";
7814
+ if ($.get(size) === "large") return "12px";
7815
+ return "8px";
7816
+ })(),
7817
+ "--accent-color": props().accentColor || brandKit.color_brand,
7818
+ "--border-color": props().borderColor || brandKit.color_form_field_border,
7819
+ "--font-color": props().fontColor || brandKit.color_text_primary,
7820
+ "--background-color": props().backgroundColor || brandKit.color_form_field_background
7821
+ });
7822
+ });
7823
+ $.legacy_pre_effect(() => $.get(variables$1), () => {
7824
+ $.set(listStyles, objToStyle({ ...$.get(variables$1) }));
7825
+ });
7826
+ $.legacy_pre_effect_reset();
7827
+ $.init();
7828
+ FormField($$anchor, {
7829
+ get layerId() {
7830
+ return layerId();
7831
+ },
7832
+ get props() {
7833
+ return props();
7834
+ },
7835
+ children: ($$anchor$1, $$slotProps) => {
7836
+ var ul = root_1$1();
7837
+ $.each(ul, 5, () => $.get(options), $.index, ($$anchor$2, option) => {
7838
+ var li = root_2$1();
7839
+ var label = $.child(li);
7840
+ var input = $.child(label);
7841
+ $.remove_input_defaults(input);
7842
+ var input_value;
7843
+ var span = $.sibling(input, 4);
7844
+ var text = $.child(span, true);
7845
+ $.reset(span);
7846
+ $.reset(label);
7847
+ $.reset(li);
7848
+ $.template_effect(() => {
7849
+ if (input_value !== (input_value = $.get(option).value)) input.value = null == (input.__value = $.get(option).value) ? "" : $.get(option).value;
7850
+ $.set_attribute(input, "name", props().fieldName);
7851
+ $.set_text(text, $.get(option).label);
7852
+ });
7853
+ $.bind_group(binding_group, [], input, () => {
7854
+ $.get(option).value;
7855
+ return $.get(values);
7856
+ }, ($$value) => $.set(values, $$value));
7857
+ $.event("change", input, handleChange);
7858
+ $.append($$anchor$2, li);
7859
+ });
7860
+ $.reset(ul);
7861
+ $.template_effect(($0) => {
7862
+ $.set_class(ul, 1, $0, "svelte-rx48m9");
7863
+ $.set_style(ul, $.get(listStyles));
7864
+ }, [() => $.clsx([
7865
+ "form-checkboxes",
7866
+ $.get(variant),
7867
+ $.get(size)
7868
+ ].join(" "))], $.derived_safe_equal);
7869
+ $.append($$anchor$1, ul);
7870
+ },
7871
+ $$slots: { default: true }
7872
+ });
7873
+ $.pop();
7874
+ }
7875
+
7876
+ //#endregion
7877
+ //#region src/components-flex/form/FormRadios.svelte
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>`);
7879
+ var root_1 = $.template(`<ul></ul>`);
7880
+ const $$css$2 = {
7881
+ hash: "svelte-ps4qqa",
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;}"
7883
+ };
7884
+ function FormRadios($$anchor, $$props) {
7885
+ $.push($$props, false);
7886
+ $.append_styles($$anchor, $$css$2);
7887
+ const variant = $.mutable_state();
7888
+ const size = $.mutable_state();
7889
+ const options = $.mutable_state();
7890
+ const variables$1 = $.mutable_state();
7891
+ const listStyles = $.mutable_state();
7892
+ const binding_group = [];
7893
+ let props = $.prop($$props, "props", 24, () => ({}));
7894
+ let layerId = $.prop($$props, "layerId", 8, "");
7895
+ useInjectCustomizeCss(props(), layerId());
7896
+ const { brandKit } = useBrandKit();
7897
+ let value = $.mutable_state("");
7898
+ const handleChange = () => {
7899
+ if (props().fieldName) {
7900
+ setFormFieldTouched(props().fieldName);
7901
+ setFormFieldValue(props().fieldName, $.get(value));
7902
+ }
7903
+ };
7904
+ onMount$1(() => {
7905
+ if (props().fieldName) $.set(value, getFormFieldValue(props().fieldName));
7906
+ });
7907
+ $.legacy_pre_effect(() => ($.deep_read_state(props()), FORM_FIELD_VARIANT_FOR_CHECKER), () => {
7908
+ $.set(variant, props().variant && Object.keys(FORM_FIELD_VARIANT_FOR_CHECKER).includes(props().variant) ? props().variant : "outlined");
7909
+ });
7910
+ $.legacy_pre_effect(() => $.deep_read_state(props()), () => {
7911
+ $.set(size, props().size ?? "medium");
7912
+ });
7913
+ $.legacy_pre_effect(() => $.deep_read_state(props()), () => {
7914
+ $.set(options, (props().options ?? []).filter((v) => v.label && v.value));
7915
+ });
7916
+ $.legacy_pre_effect(() => ($.deep_read_state(props()), $.get(size)), () => {
7917
+ $.set(variables$1, {
7918
+ "--radios-display": props().layout === "grid" ? "grid" : "flex",
7919
+ "--radios-direction": (() => {
7920
+ if (props().layout === "grid") return void 0;
7921
+ return props().layout === "horizontal" ? "row" : "column";
7922
+ })(),
7923
+ "--radios-grid-cols": (() => {
7924
+ if (props().layout !== "grid") return void 0;
7925
+ return `repeat(${props().layoutGridCols ?? 1},minmax(0,1fr))`;
7926
+ })(),
7927
+ "--radios-gap-y": props().layoutGapY ?? "0",
7928
+ "--radios-gap-x": props().layoutGapX ?? "0",
7929
+ "--radio-font-size": (() => {
7930
+ if ($.get(size) === "small") return "12px";
7931
+ if ($.get(size) === "large") return "16px";
7932
+ return "14px";
7933
+ })(),
7934
+ "--radio-check-size": (() => {
7935
+ if ($.get(size) === "small") return "14px";
7936
+ if ($.get(size) === "large") return "20px";
7937
+ return "16px";
7938
+ })(),
7939
+ "--radio-check-icon-size": (() => {
7940
+ if ($.get(size) === "small") return "8px";
7941
+ if ($.get(size) === "large") return "14px";
7942
+ return "10px";
7943
+ })(),
7944
+ "--radio-check-radius": (() => {
7945
+ if ($.get(size) === "small") return "2px";
7946
+ if ($.get(size) === "large") return "6px";
7947
+ return "4px";
7948
+ })(),
7949
+ "--radio-gap": (() => {
7950
+ if ($.get(size) === "small") return "6px";
7951
+ if ($.get(size) === "large") return "12px";
7952
+ return "8px";
7953
+ })(),
7954
+ "--accent-color": props().accentColor || brandKit.color_brand,
7955
+ "--border-color": props().borderColor || brandKit.color_form_field_border,
7956
+ "--font-color": props().fontColor || brandKit.color_text_primary,
7957
+ "--background-color": props().backgroundColor || brandKit.color_form_field_background
7958
+ });
7959
+ });
7960
+ $.legacy_pre_effect(() => $.get(variables$1), () => {
7961
+ $.set(listStyles, objToStyle({ ...$.get(variables$1) }));
7962
+ });
7963
+ $.legacy_pre_effect_reset();
7964
+ $.init();
7965
+ FormField($$anchor, {
7966
+ get layerId() {
7967
+ return layerId();
7968
+ },
7969
+ get props() {
7970
+ return props();
7971
+ },
7972
+ children: ($$anchor$1, $$slotProps) => {
7973
+ var ul = root_1();
7974
+ $.each(ul, 5, () => $.get(options), $.index, ($$anchor$2, option) => {
7975
+ var li = root_2();
7976
+ var label = $.child(li);
7977
+ var input = $.child(label);
7978
+ $.remove_input_defaults(input);
7979
+ var input_value;
7980
+ var span = $.sibling(input, 4);
7981
+ var text = $.child(span, true);
7982
+ $.reset(span);
7983
+ $.reset(label);
7984
+ $.reset(li);
7985
+ $.template_effect(() => {
7986
+ if (input_value !== (input_value = $.get(option).value)) input.value = null == (input.__value = $.get(option).value) ? "" : $.get(option).value;
7987
+ $.set_attribute(input, "name", props().fieldName);
7988
+ $.set_text(text, $.get(option).label);
7989
+ });
7990
+ $.bind_group(binding_group, [], input, () => {
7991
+ $.get(option).value;
7992
+ return $.get(value);
7993
+ }, ($$value) => $.set(value, $$value));
7994
+ $.event("change", input, handleChange);
7995
+ $.append($$anchor$2, li);
7996
+ });
7997
+ $.reset(ul);
7998
+ $.template_effect(($0) => {
7999
+ $.set_class(ul, 1, $0, "svelte-ps4qqa");
8000
+ $.set_style(ul, $.get(listStyles));
8001
+ }, [() => $.clsx([
8002
+ "form-radios",
8003
+ $.get(variant),
8004
+ $.get(size)
8005
+ ].join(" "))], $.derived_safe_equal);
8006
+ $.append($$anchor$1, ul);
8007
+ },
8008
+ $$slots: { default: true }
8009
+ });
8010
+ $.pop();
8011
+ }
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
+
6760
8131
  //#endregion
6761
8132
  //#region src/components-flex/shared/styles.ts
6762
8133
  const ROUND_STYLES = {
@@ -6965,4 +8336,4 @@ const flexComponentSchemes = {
6965
8336
  };
6966
8337
 
6967
8338
  //#endregion
6968
- 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, 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, 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, getActionRoot, getAnsweredQuestion, getAnsweredQuestionIds, getBrandKit, getButtonOutlinedThemeStyles, getButtonTextThemeStyles, getButtonThemeStyles, getCssVariables, getEventHandlers, getEvents, 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, onTime, removeAnswer, resetEventHandlers, resetVariables, sendAnswer, sendAnswers, setEventHandlers, setSetting, setState, setVariables, show, showAction, showModal, showOnScroll, showOnTime, state, tick, useBrandKit, 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 };