@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
@@ -1805,9 +1827,9 @@ function getCssVariables(data) {
1805
1827
  * @public
1806
1828
  */
1807
1829
  function getActionRoot() {
1808
- const root$46 = document.querySelector(`.${KARTE_ACTION_ROOT}[data-${KARTE_ACTION_RID}='${actionId}']`);
1809
- if (!root$46?.shadowRoot) return null;
1810
- return root$46.shadowRoot;
1830
+ const root$49 = document.querySelector(`.${KARTE_ACTION_ROOT}[data-${KARTE_ACTION_RID}='${actionId}']`);
1831
+ if (!root$49?.shadowRoot) return null;
1832
+ return root$49.shadowRoot;
1811
1833
  }
1812
1834
  /** @internal */
1813
1835
  function createModal(App, options = {
@@ -2089,8 +2111,8 @@ function createApp(App, options = {
2089
2111
  */
2090
2112
  function createFog({ color = "#000", opacity = "50%", zIndex = 999, onclick }) {
2091
2113
  console.log("createFog");
2092
- const root$46 = ensureModalRoot();
2093
- if (root$46.querySelector(".__krt-fog")) return {
2114
+ const root$49 = ensureModalRoot();
2115
+ if (root$49.querySelector(".__krt-fog")) return {
2094
2116
  fog: null,
2095
2117
  close: () => {}
2096
2118
  };
@@ -2111,7 +2133,7 @@ function createFog({ color = "#000", opacity = "50%", zIndex = 999, onclick }) {
2111
2133
  fog.remove();
2112
2134
  };
2113
2135
  fog.onclick = close$1;
2114
- root$46.appendChild(fog);
2136
+ root$49.appendChild(fog);
2115
2137
  return {
2116
2138
  fog,
2117
2139
  close: close$1
@@ -2404,18 +2426,18 @@ function createInputRegisterer(formData$1) {
2404
2426
  const registerInput = createInputRegisterer(formData);
2405
2427
  /** @internal */
2406
2428
  const registerIdentifyInput = createInputRegisterer(identifyFormData);
2407
- function createAnswerValue(value) {
2429
+ function createAnswerValue$1(value) {
2408
2430
  if (Array.isArray(value)) return { choices: value };
2409
2431
  else if (typeof value === "string") return { free_answer: value };
2410
2432
  }
2411
- function formDataToEventValues(campaignId, formData$1) {
2433
+ function formDataToEventValues$1(campaignId, formData$1) {
2412
2434
  const questions = [];
2413
2435
  const answersMap = {};
2414
2436
  Object.entries(formData$1).forEach(([name, dataItem]) => {
2415
2437
  questions.push(name);
2416
2438
  const value = dataItem.value;
2417
2439
  const answerKey = `question_${name}`;
2418
- const answerValue = createAnswerValue(value);
2440
+ const answerValue = createAnswerValue$1(value);
2419
2441
  answersMap[answerKey] = answerValue;
2420
2442
  });
2421
2443
  return { [campaignId]: {
@@ -2423,7 +2445,7 @@ function formDataToEventValues(campaignId, formData$1) {
2423
2445
  ...answersMap
2424
2446
  } };
2425
2447
  }
2426
- function formDataToIdentifyEventValues(formData$1) {
2448
+ function formDataToIdentifyEventValues$1(formData$1) {
2427
2449
  return Object.fromEntries(Object.entries(formData$1).map(([name, dataItem]) => {
2428
2450
  const value = dataItem.value;
2429
2451
  return [name, value];
@@ -2436,8 +2458,8 @@ function submit() {
2436
2458
  if (campaignId) {
2437
2459
  const formData$1 = get(formData);
2438
2460
  const identifyFormData$1 = get(identifyFormData);
2439
- const values = formDataToEventValues(campaignId, formData$1);
2440
- const identifyValues = formDataToIdentifyEventValues(identifyFormData$1);
2461
+ const values = formDataToEventValues$1(campaignId, formData$1);
2462
+ const identifyValues = formDataToIdentifyEventValues$1(identifyFormData$1);
2441
2463
  if (Object.keys(identifyValues).length > 0) identifyValues["user_id"] = getVariables()?.[USER_ID_VARIABLE_NAME];
2442
2464
  return {
2443
2465
  values,
@@ -2508,7 +2530,7 @@ function removeAnswer(questionId) {
2508
2530
  function getAnsweredQuestion(questionId) {
2509
2531
  const formData$1 = get(formData);
2510
2532
  const valueState = formData$1[questionId];
2511
- if (valueState) return createAnswerValue(valueState.value);
2533
+ if (valueState) return createAnswerValue$1(valueState.value);
2512
2534
  }
2513
2535
  /**
2514
2536
  * 回答済の回答IDのリストを取得
@@ -2825,9 +2847,355 @@ const LAYOUT_COMPONENT_NAMES = [
2825
2847
  "StateItem"
2826
2848
  ];
2827
2849
 
2850
+ //#endregion
2851
+ //#region src/components-flex/form.ts
2852
+ const FORM_VALIDATION_TYPE = {
2853
+ required: "必須",
2854
+ email: "メールアドレス",
2855
+ tel: "電話番号",
2856
+ url: "URL",
2857
+ minLength: "最小文字数",
2858
+ maxLength: "最大文字数",
2859
+ minCount: "最小個数",
2860
+ maxCount: "最大個数",
2861
+ pattern: "正規表現"
2862
+ };
2863
+ const FORM_VALIDATION_DEFAULT_ERROR_MESSAGES = {
2864
+ required: `入力してください`,
2865
+ minLength: `{minLength}文字以上で入力してください`,
2866
+ maxLength: `{maxLength}文字以下で入力してください`,
2867
+ minCount: `{minCount}個以上選択してください`,
2868
+ maxCount: `{maxCount}個以下で選択してください`,
2869
+ pattern: `正しい形式で入力してください`,
2870
+ email: `正しいメールアドレスを入力してください`,
2871
+ tel: `正しい電話番号を入力してください`,
2872
+ url: `正しいURLを入力してください`
2873
+ };
2874
+ const FORM_VALIDATION_REGEX = {
2875
+ email: "^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9-]*\\.?[a-zA-Z0-9-]+\\.[a-zA-Z]{2,}$",
2876
+ tel: "^0\\d{1,4}[-]?\\d{1,4}[-]?\\d{4}$",
2877
+ url: "^http(s)?://.+$"
2878
+ };
2879
+ /**
2880
+ * @internal
2881
+ */
2882
+ const formStore = writable({
2883
+ schemas: [],
2884
+ states: {}
2885
+ });
2886
+ const formSubmittedValues = writable({});
2887
+ const formSubmittedIdentifyValues = writable({});
2888
+ /**
2889
+ * @public
2890
+ */
2891
+ const getFormFieldSchema = (name) => {
2892
+ const store = get(formStore);
2893
+ return store.schemas.find((v) => v.name === name) ?? void 0;
2894
+ };
2895
+ /**
2896
+ * @public
2897
+ */
2898
+ const getFormFieldState = (name) => {
2899
+ const store = get(formStore);
2900
+ return store.states[name] ?? void 0;
2901
+ };
2902
+ /**
2903
+ * @public
2904
+ */
2905
+ const getFormFieldValue = (name) => {
2906
+ return getFormFieldState(name)?.value ?? void 0;
2907
+ };
2908
+ /**
2909
+ * @public
2910
+ */
2911
+ const getFormValues = () => {
2912
+ const store = get(formStore);
2913
+ return Object.fromEntries(Object.entries(store.states).map(([name, state$1]) => [name, state$1.value]));
2914
+ };
2915
+ /**
2916
+ * @public
2917
+ */
2918
+ const getFormErrors = () => {
2919
+ const store = get(formStore);
2920
+ return Object.fromEntries(Object.entries(store.states).map(([name, state$1]) => [name, state$1.errorMessage]));
2921
+ };
2922
+ /**
2923
+ * @public
2924
+ */
2925
+ const setFormFieldValue = (name, value) => {
2926
+ formStore.update((updater) => ({
2927
+ ...updater,
2928
+ states: (() => {
2929
+ const states$1 = { ...updater.states };
2930
+ if (!(name in states$1)) return states$1;
2931
+ states$1[name].value = value;
2932
+ if (states$1[name].value !== value) states$1[name].isDirty = true;
2933
+ const schema = updater.schemas.find((v) => v.name === name);
2934
+ if (schema) {
2935
+ const res = validateFormField(schema, value);
2936
+ states$1[name].isValid = res.isValid;
2937
+ states$1[name].errorMessage = res.error;
2938
+ }
2939
+ return states$1;
2940
+ })()
2941
+ }));
2942
+ formSubmittedValues.update((updater) => ({
2943
+ ...updater,
2944
+ [name]: value
2945
+ }));
2946
+ };
2947
+ /**
2948
+ * @public
2949
+ */
2950
+ const setFormFieldError = (name, errorMessage) => {
2951
+ formStore.update((updater) => ({
2952
+ ...updater,
2953
+ states: {
2954
+ ...updater.states,
2955
+ [name]: {
2956
+ ...updater.states[name],
2957
+ errorMessage,
2958
+ isValid: errorMessage !== null
2959
+ }
2960
+ }
2961
+ }));
2962
+ };
2963
+ /**
2964
+ * @public
2965
+ */
2966
+ const setFormFieldTouched = (name) => {
2967
+ formStore.update((updater) => ({
2968
+ ...updater,
2969
+ states: {
2970
+ ...updater.states,
2971
+ [name]: {
2972
+ ...updater.states[name],
2973
+ isTouched: true
2974
+ }
2975
+ }
2976
+ }));
2977
+ };
2978
+ /**
2979
+ * @public
2980
+ */
2981
+ const registerFormField = (schemas) => {
2982
+ schemas = Array.isArray(schemas) ? schemas : [schemas];
2983
+ formStore.update((updater) => ({
2984
+ schemas: (() => {
2985
+ const resultSchemes = [...updater.schemas];
2986
+ schemas.forEach((schema) => {
2987
+ const index = resultSchemes.findIndex((rSchema) => rSchema.name === schema.name);
2988
+ if (index >= 0) resultSchemes[index] = {
2989
+ name: schema.name,
2990
+ defaultValue: schema.defaultValue,
2991
+ type: schema.type,
2992
+ required: schema.required,
2993
+ statePath: getState(),
2994
+ isIdentify: schema.isIdentify,
2995
+ validations: schema.validations
2996
+ };
2997
+ else resultSchemes.push({
2998
+ name: schema.name,
2999
+ defaultValue: schema.defaultValue,
3000
+ type: schema.type,
3001
+ required: schema.required,
3002
+ statePath: getState(),
3003
+ isIdentify: schema.isIdentify,
3004
+ validations: schema.validations
3005
+ });
3006
+ });
3007
+ return resultSchemes;
3008
+ })(),
3009
+ states: (() => {
3010
+ const states$1 = { ...updater.states };
3011
+ const submittedValues = get(formSubmittedValues);
3012
+ const submittedIdentifyValues = get(formSubmittedIdentifyValues);
3013
+ schemas.forEach((schema) => {
3014
+ if (!(schema.name in states$1) && schema.name) states$1[schema.name] = {
3015
+ isDirty: false,
3016
+ isValid: false,
3017
+ isTouched: false,
3018
+ type: schema.type,
3019
+ value: (() => {
3020
+ if (schema.isIdentify) {
3021
+ if (submittedIdentifyValues[schema.name]) return submittedIdentifyValues[schema.name].value;
3022
+ } else if (submittedValues[schema.name]) return submittedValues[schema.name].value;
3023
+ if (schema.type === "checkboxes") return Array.isArray(schema.defaultValue) ? schema.defaultValue : [];
3024
+ else if (schema.type === "boolean") return schema.defaultValue ?? void 0;
3025
+ else return typeof schema.defaultValue === "string" ? schema.defaultValue : "";
3026
+ })(),
3027
+ errorMessage: null
3028
+ };
3029
+ });
3030
+ return states$1;
3031
+ })()
3032
+ }));
3033
+ };
3034
+ /**
3035
+ * @public
3036
+ */
3037
+ const unregisterFormField = (fieldNames) => {
3038
+ fieldNames = typeof fieldNames === "string" ? [fieldNames] : fieldNames;
3039
+ formStore.update((updater) => ({
3040
+ schemas: (() => {
3041
+ return updater.schemas.filter((v) => !fieldNames.some((name) => name === v.name));
3042
+ })(),
3043
+ states: (() => {
3044
+ const states$1 = { ...updater.states };
3045
+ fieldNames.forEach((name) => {
3046
+ if (name in states$1) delete states$1[name];
3047
+ });
3048
+ return states$1;
3049
+ })()
3050
+ }));
3051
+ };
3052
+ const validateFormField = (schema, value) => {
3053
+ if (schema.required) {
3054
+ if (schema.type === "checkboxes") {
3055
+ if (Array.isArray(value) && value.length === 0) return {
3056
+ isValid: false,
3057
+ error: FORM_VALIDATION_DEFAULT_ERROR_MESSAGES["required"]
3058
+ };
3059
+ } else if (typeof value !== "string" || value.trim() === "") return {
3060
+ isValid: false,
3061
+ error: FORM_VALIDATION_DEFAULT_ERROR_MESSAGES["required"]
3062
+ };
3063
+ }
3064
+ if (schema.validations && schema.validations.length > 0) for (const validation of schema.validations) {
3065
+ const { type, number, errorMessage, regexp } = validation;
3066
+ if (type === "minLength" && !!number) {
3067
+ if (typeof value === "string" && value.length < number) return {
3068
+ isValid: false,
3069
+ error: (errorMessage || FORM_VALIDATION_DEFAULT_ERROR_MESSAGES[type]).replace("{minLength}", number.toString())
3070
+ };
3071
+ }
3072
+ if (type === "maxLength" && !!number) {
3073
+ if (typeof value === "string" && value.length > number) return {
3074
+ isValid: false,
3075
+ error: (errorMessage || FORM_VALIDATION_DEFAULT_ERROR_MESSAGES[type]).replace("{maxLength}", number.toString())
3076
+ };
3077
+ }
3078
+ if (type === "minCount" && !!number) {
3079
+ if (Array.isArray(value) && value.length < number) return {
3080
+ isValid: false,
3081
+ error: (errorMessage || FORM_VALIDATION_DEFAULT_ERROR_MESSAGES[type]).replace("{minCount}", number.toString())
3082
+ };
3083
+ }
3084
+ if (type === "maxCount" && !!number) {
3085
+ if (Array.isArray(value) && value.length > number) return {
3086
+ isValid: false,
3087
+ error: (errorMessage || FORM_VALIDATION_DEFAULT_ERROR_MESSAGES[type]).replace("{maxCount}", number.toString())
3088
+ };
3089
+ }
3090
+ if (type === "pattern" && !!regexp) {
3091
+ if (typeof value === "string" && new RegExp(regexp).test(value) === false) return {
3092
+ isValid: false,
3093
+ error: errorMessage || FORM_VALIDATION_DEFAULT_ERROR_MESSAGES[type]
3094
+ };
3095
+ }
3096
+ if (type === "email") {
3097
+ if (typeof value === "string" && new RegExp(regexp || FORM_VALIDATION_REGEX.email).test(value) === false) return {
3098
+ isValid: false,
3099
+ error: errorMessage || FORM_VALIDATION_DEFAULT_ERROR_MESSAGES[type]
3100
+ };
3101
+ }
3102
+ if (type === "tel") {
3103
+ if (typeof value === "string" && new RegExp(regexp || FORM_VALIDATION_REGEX.tel).test(value) === false) return {
3104
+ isValid: false,
3105
+ error: errorMessage || FORM_VALIDATION_DEFAULT_ERROR_MESSAGES[type]
3106
+ };
3107
+ }
3108
+ if (type === "url") {
3109
+ if (typeof value === "string" && new RegExp(regexp || FORM_VALIDATION_REGEX.url).test(value) === false) return {
3110
+ isValid: false,
3111
+ error: errorMessage || FORM_VALIDATION_DEFAULT_ERROR_MESSAGES[type]
3112
+ };
3113
+ }
3114
+ }
3115
+ return {
3116
+ isValid: true,
3117
+ error: void 0
3118
+ };
3119
+ };
3120
+ function createAnswerValue(value) {
3121
+ if (value.type === "input" || value.type === "textarea") return { free_answer: String(value.value) };
3122
+ else return { choices: Array.isArray(value) ? value : [value] };
3123
+ }
3124
+ function formDataToEventValues(campaignId, values) {
3125
+ const questions = [];
3126
+ const answersMap = {};
3127
+ Object.entries(values).forEach(([name, value]) => {
3128
+ questions.push(name);
3129
+ const answerKey = `question_${name}`;
3130
+ answersMap[answerKey] = createAnswerValue(value);
3131
+ });
3132
+ return { [campaignId]: {
3133
+ questions,
3134
+ ...answersMap
3135
+ } };
3136
+ }
3137
+ function formDataToIdentifyEventValues(values) {
3138
+ return Object.fromEntries(Object.entries(values).map(([name, { value }]) => [name, value]));
3139
+ }
3140
+ /**
3141
+ * @public
3142
+ */
3143
+ function onSubmitForm(fn) {
3144
+ const systemConfig = getSystem();
3145
+ const campaignId = systemConfig.campaignId;
3146
+ if (campaignId) {
3147
+ let hasInvalid = false;
3148
+ const formData$1 = get(formStore);
3149
+ const currentState = getState();
3150
+ const currentStateSchemas = formData$1.schemas.filter((v) => v.statePath === currentState);
3151
+ for (const schema of currentStateSchemas) {
3152
+ const { isValid, error: error$1 } = validateFormField(schema, formData$1.states[schema.name]?.value);
3153
+ setFormFieldError(schema.name, isValid ? null : error$1);
3154
+ if (!isValid) hasInvalid = true;
3155
+ }
3156
+ formStore.update((updater) => ({
3157
+ ...updater,
3158
+ states: (() => {
3159
+ const states$1 = { ...updater.states };
3160
+ currentStateSchemas.forEach((schema) => {
3161
+ states$1[schema.name].isTouched = true;
3162
+ });
3163
+ return states$1;
3164
+ })()
3165
+ }));
3166
+ if (hasInvalid) return;
3167
+ const newValues = {};
3168
+ const newIdentifyValues = {};
3169
+ currentStateSchemas.forEach((schema) => {
3170
+ if (schema.isIdentify) newIdentifyValues[schema.name] = {
3171
+ value: formData$1.states[schema.name]?.value,
3172
+ type: schema.type
3173
+ };
3174
+ else newValues[schema.name] = {
3175
+ value: formData$1.states[schema.name]?.value,
3176
+ type: schema.type
3177
+ };
3178
+ });
3179
+ formSubmittedValues.update((updater) => ({
3180
+ ...updater,
3181
+ ...newValues
3182
+ }));
3183
+ if (Object.keys(newIdentifyValues).length > 0) formSubmittedIdentifyValues.update((updater) => ({
3184
+ ...updater,
3185
+ ...newIdentifyValues
3186
+ }));
3187
+ fn({
3188
+ currentStateIdentifyValues: formDataToIdentifyEventValues(newIdentifyValues),
3189
+ allIdentifyValues: formDataToIdentifyEventValues(get(formSubmittedIdentifyValues)),
3190
+ currentStateValues: formDataToEventValues(campaignId, newValues),
3191
+ allValues: formDataToEventValues(campaignId, get(formSubmittedValues))
3192
+ });
3193
+ }
3194
+ }
3195
+
2828
3196
  //#endregion
2829
3197
  //#region src/components-flex/state/Header.svelte
2830
- var root_2$5 = $.template(`<link type="text/css" rel="stylesheet">`);
3198
+ var root_2$9 = $.template(`<link type="text/css" rel="stylesheet">`);
2831
3199
  function Header($$anchor, $$props) {
2832
3200
  $.push($$props, false);
2833
3201
  const [$$stores, $$cleanup] = $.setup_stores();
@@ -2845,16 +3213,14 @@ function Header($$anchor, $$props) {
2845
3213
  $.head(($$anchor$1) => {
2846
3214
  var fragment = $.comment();
2847
3215
  var node = $.first_child(fragment);
2848
- {
2849
- var consequent = ($$anchor$2) => {
2850
- var link = root_2$5();
2851
- $.template_effect(() => $.set_attribute(link, "href", $.get(googleFontUrl)));
2852
- $.append($$anchor$2, link);
2853
- };
2854
- $.if(node, ($$render) => {
2855
- if ($.get(googleFontUrl)) $$render(consequent);
2856
- });
2857
- }
3216
+ var consequent = ($$anchor$2) => {
3217
+ var link = root_2$9();
3218
+ $.template_effect(() => $.set_attribute(link, "href", $.get(googleFontUrl)));
3219
+ $.append($$anchor$2, link);
3220
+ };
3221
+ $.if(node, ($$render) => {
3222
+ if ($.get(googleFontUrl)) $$render(consequent);
3223
+ });
2858
3224
  $.append($$anchor$1, fragment);
2859
3225
  });
2860
3226
  $.pop();
@@ -2866,14 +3232,20 @@ function Header($$anchor, $$props) {
2866
3232
  const BRAND_KIT_DEFAULT = {
2867
3233
  font_family: "sans-serif, serif, monospace, system-ui",
2868
3234
  color_text_primary: "#222222",
2869
- color_text_secondary: "#555555",
3235
+ color_text_secondary: "#666666",
2870
3236
  color_brand: "#33403e",
2871
3237
  color_link: "#1558d6",
2872
3238
  color_danger: "#f44336",
2873
3239
  color_warning: "#ffa726",
2874
3240
  color_success: "#10b981",
2875
3241
  color_info: "#29b6f6",
2876
- color_white: "#FFFFFF"
3242
+ color_white: "#FFFFFF",
3243
+ color_form_field_placeholder: "#CCCCCC",
3244
+ color_form_field_border: "#DBDBDB",
3245
+ color_form_field_focused_border: "",
3246
+ color_form_field_focused_background: "",
3247
+ color_form_field_accent: "",
3248
+ color_form_field_background: "#f5f5f5"
2877
3249
  };
2878
3250
  const getBrandKit = (customBrandKit) => {
2879
3251
  return {
@@ -2886,7 +3258,13 @@ const getBrandKit = (customBrandKit) => {
2886
3258
  color_warning: customBrandKit?.color_warning ?? BRAND_KIT_DEFAULT.color_warning,
2887
3259
  color_success: customBrandKit?.color_success ?? BRAND_KIT_DEFAULT.color_success,
2888
3260
  color_info: customBrandKit?.color_info ?? BRAND_KIT_DEFAULT.color_info,
2889
- color_white: customBrandKit?.color_white ?? BRAND_KIT_DEFAULT.color_white
3261
+ color_white: customBrandKit?.color_white ?? BRAND_KIT_DEFAULT.color_white,
3262
+ color_form_field_placeholder: customBrandKit?.color_form_field_placeholder ?? BRAND_KIT_DEFAULT.color_form_field_placeholder,
3263
+ color_form_field_border: customBrandKit?.color_form_field_border ?? BRAND_KIT_DEFAULT.color_form_field_border,
3264
+ color_form_field_focused_border: customBrandKit?.color_form_field_focused_border ?? BRAND_KIT_DEFAULT.color_form_field_focused_border,
3265
+ color_form_field_background: customBrandKit?.color_form_field_background ?? BRAND_KIT_DEFAULT.color_form_field_background,
3266
+ color_form_field_focused_background: customBrandKit?.color_form_field_focused_background ?? BRAND_KIT_DEFAULT.color_form_field_focused_background,
3267
+ color_form_field_accent: customBrandKit?.color_form_field_accent ?? BRAND_KIT_DEFAULT.color_form_field_accent
2890
3268
  };
2891
3269
  };
2892
3270
  const useBrandKit = () => {
@@ -2895,13 +3273,13 @@ const useBrandKit = () => {
2895
3273
 
2896
3274
  //#endregion
2897
3275
  //#region src/components-flex/state/State.svelte
2898
- var root$45 = $.template(`<!> <!>`, 1);
3276
+ var root$48 = $.template(`<!> <!>`, 1);
2899
3277
  function State($$anchor, $$props) {
2900
3278
  $.push($$props, false);
2901
3279
  let customBrandKit = $.prop($$props, "customBrandKit", 8, void 0);
2902
3280
  setContext("brandKit", getBrandKit(customBrandKit()));
2903
3281
  $.init();
2904
- var fragment = root$45();
3282
+ var fragment = root$48();
2905
3283
  var node = $.first_child(fragment);
2906
3284
  Header(node, {});
2907
3285
  var node_1 = $.sibling(node, 2);
@@ -2913,14 +3291,14 @@ function State($$anchor, $$props) {
2913
3291
  //#endregion
2914
3292
  //#region src/components-flex/state/StateItem.svelte
2915
3293
  const STATE_ITEM_CONTEXT_KEY = Symbol();
2916
- var root_1$9 = $.template(`<div class="state-item svelte-2qb6dm"></div> <!>`, 1);
2917
- const $$css$23 = {
3294
+ var root_1$15 = $.template(`<div class="state-item svelte-2qb6dm"></div> <!>`, 1);
3295
+ const $$css$33 = {
2918
3296
  hash: "svelte-2qb6dm",
2919
3297
  code: ".state-item.svelte-2qb6dm {position:absolute;display:none;}"
2920
3298
  };
2921
3299
  function StateItem($$anchor, $$props) {
2922
3300
  $.push($$props, false);
2923
- $.append_styles($$anchor, $$css$23);
3301
+ $.append_styles($$anchor, $$css$33);
2924
3302
  const [$$stores, $$cleanup] = $.setup_stores();
2925
3303
  const $state = () => $.store_get(state, "$state", $$stores);
2926
3304
  let path = $.prop($$props, "path", 8);
@@ -2932,19 +3310,17 @@ function StateItem($$anchor, $$props) {
2932
3310
  $.init();
2933
3311
  var fragment = $.comment();
2934
3312
  var node = $.first_child(fragment);
2935
- {
2936
- var consequent = ($$anchor$1) => {
2937
- var fragment_1 = root_1$9();
2938
- var div = $.first_child(fragment_1);
2939
- var node_1 = $.sibling(div, 2);
2940
- $.slot(node_1, $$props, "default", {}, null);
2941
- $.template_effect(() => $.set_attribute(div, "data-state-path", path()));
2942
- $.append($$anchor$1, fragment_1);
2943
- };
2944
- $.if(node, ($$render) => {
2945
- if ($state() === path()) $$render(consequent);
2946
- });
2947
- }
3313
+ var consequent = ($$anchor$1) => {
3314
+ var fragment_1 = root_1$15();
3315
+ var div = $.first_child(fragment_1);
3316
+ var node_1 = $.sibling(div, 2);
3317
+ $.slot(node_1, $$props, "default", {}, null);
3318
+ $.template_effect(() => $.set_attribute(div, "data-state-path", path()));
3319
+ $.append($$anchor$1, fragment_1);
3320
+ };
3321
+ $.if(node, ($$render) => {
3322
+ if ($state() === path()) $$render(consequent);
3323
+ });
2948
3324
  $.append($$anchor, fragment);
2949
3325
  $.pop();
2950
3326
  $$cleanup();
@@ -3269,10 +3645,18 @@ const linkTo = (to, targetBlank = true, decode = false) => () => {
3269
3645
  });
3270
3646
  await sleep(450);
3271
3647
  }
3272
- const isRequiredWindowOpen = target === "native" ? false : targetBlank;
3273
- if (isRequiredWindowOpen) window.open(decodedTo);
3648
+ if (targetBlank) if (target === "native") {
3649
+ const win = window;
3650
+ const nativeMessageName = "open_url";
3651
+ const nativeMessageData = {
3652
+ url: decodedTo,
3653
+ target: "_blank"
3654
+ };
3655
+ win.NativeBridge?.onReceivedMessage(nativeMessageName, JSON.stringify(nativeMessageData));
3656
+ win.webkit?.messageHandlers[nativeMessageName]?.postMessage(nativeMessageData);
3657
+ } else window.open(decodedTo, "_blank");
3274
3658
  Promise.race([_send(), sleep(650)]).then(() => {
3275
- if (!isRequiredWindowOpen) location.href = decodedTo;
3659
+ if (!targetBlank) location.href = decodedTo;
3276
3660
  });
3277
3661
  };
3278
3662
  /** @internal */
@@ -3298,6 +3682,29 @@ const submitForm = (to) => () => {
3298
3682
  _moveTo(to);
3299
3683
  };
3300
3684
  /** @internal */
3685
+ const submitFormProgress = (to) => () => {
3686
+ onSubmitForm(({ currentStateValues, currentStateIdentifyValues }) => {
3687
+ send_event("_answer_question_progress", {
3688
+ ...currentStateValues,
3689
+ state: getState()
3690
+ });
3691
+ if (Object.keys(currentStateIdentifyValues).length > 0) send_event("identify", currentStateIdentifyValues);
3692
+ console.log("currentStateValues", currentStateValues);
3693
+ console.log("currentStateIdentifyValues", currentStateIdentifyValues);
3694
+ _moveTo(to);
3695
+ });
3696
+ };
3697
+ /** @internal */
3698
+ const submitFormFinal = (to) => () => {
3699
+ onSubmitForm(({ allValues, allIdentifyValues }) => {
3700
+ send_event("_answer_question", allValues);
3701
+ if (Object.keys(allIdentifyValues).length > 0) send_event("identify", allIdentifyValues);
3702
+ console.log("allValues", allValues);
3703
+ console.log("allIdentifyValues", allIdentifyValues);
3704
+ _moveTo(to);
3705
+ });
3706
+ };
3707
+ /** @internal */
3301
3708
  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) => () => {
3302
3709
  const options = {
3303
3710
  hide_launcher,
@@ -3325,6 +3732,8 @@ const execOnClickOperation = (onClickOperation) => {
3325
3732
  else if (onClickOperation.operation === "closeApp") closeApp(onClickOperation.args[0] || "button")();
3326
3733
  else if (onClickOperation.operation === "runScript") runScript(onClickOperation.args[0])();
3327
3734
  else if (onClickOperation.operation === "submitForm") submitForm(onClickOperation.args[0])();
3735
+ else if (onClickOperation.operation === "submitFormFinal") submitFormFinal(onClickOperation.args[0])();
3736
+ else if (onClickOperation.operation === "submitFormProgress") submitFormProgress(onClickOperation.args[0])();
3328
3737
  else if (onClickOperation.operation === "bootChat") bootChat(...onClickOperation.args)();
3329
3738
  };
3330
3739
  function getAnimation(animation) {
@@ -3454,24 +3863,30 @@ var useClickable_default = useClickable;
3454
3863
 
3455
3864
  //#endregion
3456
3865
  //#region src/hooks/useInjectCustomizeCss.ts
3457
- const useInjectCustomizeCss = (props) => {
3866
+ const DATA_ATTR_LAYER_ID_KEY = "data-customize-css-layer-id";
3867
+ const useInjectCustomizeCss = (props, layerId) => {
3458
3868
  function injectCss() {
3459
- const modalElement = document.querySelector(`.${KARTE_MODAL_ROOT}`);
3869
+ let headAppended = false;
3870
+ const roots = Array.from(document.querySelectorAll(`.${KARTE_ACTION_ROOT}[data-${KARTE_ACTION_RID}='${actionId}']`));
3460
3871
  const style = document.createElement("style");
3872
+ style.setAttribute(DATA_ATTR_LAYER_ID_KEY, layerId);
3461
3873
  style.textContent = props.customizeCss;
3462
- if (modalElement?.shadowRoot) modalElement.shadowRoot.appendChild(style);
3463
- else document.head.appendChild(style);
3464
- return () => {
3465
- if (modalElement?.shadowRoot) modalElement.shadowRoot.removeChild(style);
3466
- else document.head.removeChild(style);
3467
- };
3874
+ roots.forEach((root$49) => {
3875
+ if (root$49 && root$49.shadowRoot) {
3876
+ const existingStyles = Array.from(root$49.shadowRoot.querySelectorAll(`style[${DATA_ATTR_LAYER_ID_KEY}='${layerId}']`));
3877
+ existingStyles.forEach((style$1) => {
3878
+ style$1.parentNode?.removeChild(style$1);
3879
+ });
3880
+ root$49.shadowRoot.appendChild(style);
3881
+ } else if (!headAppended) {
3882
+ document.head.appendChild(style);
3883
+ headAppended = true;
3884
+ }
3885
+ });
3468
3886
  }
3469
3887
  onMount$1(() => {
3470
3888
  if (!props.isCustomizeCss) return;
3471
- const removeCss = injectCss();
3472
- return () => {
3473
- removeCss();
3474
- };
3889
+ injectCss();
3475
3890
  });
3476
3891
  };
3477
3892
 
@@ -3502,20 +3917,20 @@ const AVATAR_SIZE_STYLES = {
3502
3917
 
3503
3918
  //#endregion
3504
3919
  //#region src/components-flex/avatar/Avatar.svelte
3505
- var root_1$8 = $.template(`<img class="avatar-image svelte-1xhdr99">`);
3506
- const $$css$22 = {
3920
+ var root_1$14 = $.template(`<img class="avatar-image svelte-1xhdr99">`);
3921
+ const $$css$32 = {
3507
3922
  hash: "svelte-1xhdr99",
3508
3923
  code: ".avatar.svelte-1xhdr99 {display:flex;align-items:center;justify-content:center;overflow:hidden;flex-shrink:0;border:0;background:none;padding:0;margin:0;text-align:left;-webkit-appearance:none;}"
3509
3924
  };
3510
3925
  function Avatar($$anchor, $$props) {
3511
3926
  $.push($$props, false);
3512
- $.append_styles($$anchor, $$css$22);
3927
+ $.append_styles($$anchor, $$css$32);
3513
3928
  const styleObj = $.mutable_state();
3514
3929
  const style = $.mutable_state();
3515
3930
  const imgStyle = $.mutable_state();
3516
3931
  let props = $.prop($$props, "props", 24, () => ({}));
3517
3932
  let layerId = $.prop($$props, "layerId", 8, "");
3518
- useInjectCustomizeCss(props());
3933
+ useInjectCustomizeCss(props(), layerId());
3519
3934
  const { attributes, element, handleClick } = useClickable_default(props());
3520
3935
  const avatarSizeStyle = !isNaN(Number(props().size)) ? {
3521
3936
  width: `${props().size}px`,
@@ -3564,14 +3979,15 @@ function Avatar($$anchor, $$props) {
3564
3979
  var node = $.first_child(fragment);
3565
3980
  $.element(node, () => element, false, ($$element, $$anchor$1) => {
3566
3981
  let attributes_1;
3567
- $.template_effect(() => attributes_1 = $.set_attributes($$element, attributes_1, {
3982
+ $.template_effect(($0) => attributes_1 = $.set_attributes($$element, attributes_1, {
3568
3983
  ...attributes,
3569
- class: "avatar",
3984
+ id: props().id,
3985
+ class: $0,
3570
3986
  style: $.get(style),
3571
3987
  "data-layer-id": layerId()
3572
- }, "svelte-1xhdr99"));
3988
+ }, "svelte-1xhdr99"), [() => ["avatar", ...props().classNames ?? []].join(" ")], $.derived_safe_equal);
3573
3989
  $.event("click", $$element, handleClick);
3574
- var img = root_1$8();
3990
+ var img = root_1$14();
3575
3991
  $.template_effect(() => {
3576
3992
  $.set_attribute(img, "src", props().image);
3577
3993
  $.set_attribute(img, "alt", props().alt);
@@ -3633,10 +4049,10 @@ const buttonPropsDefault = {
3633
4049
 
3634
4050
  //#endregion
3635
4051
  //#region src/components-flex/icon/variants/IconArrowDown.svelte
3636
- 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>`);
4052
+ 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>`);
3637
4053
  function IconArrowDown($$anchor, $$props) {
3638
4054
  let color = $.prop($$props, "color", 8);
3639
- var svg = root$44();
4055
+ var svg = root$47();
3640
4056
  var path = $.child(svg);
3641
4057
  $.reset(svg);
3642
4058
  $.template_effect(() => $.set_attribute(path, "fill", color()));
@@ -3645,10 +4061,10 @@ function IconArrowDown($$anchor, $$props) {
3645
4061
 
3646
4062
  //#endregion
3647
4063
  //#region src/components-flex/icon/variants/IconArrowUp.svelte
3648
- 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>`);
4064
+ 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>`);
3649
4065
  function IconArrowUp($$anchor, $$props) {
3650
4066
  let color = $.prop($$props, "color", 8);
3651
- var svg = root$43();
4067
+ var svg = root$46();
3652
4068
  var path = $.child(svg);
3653
4069
  $.reset(svg);
3654
4070
  $.template_effect(() => $.set_attribute(path, "fill", color()));
@@ -3657,10 +4073,10 @@ function IconArrowUp($$anchor, $$props) {
3657
4073
 
3658
4074
  //#endregion
3659
4075
  //#region src/components-flex/icon/variants/IconUsers.svelte
3660
- 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>`);
4076
+ 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>`);
3661
4077
  function IconUsers($$anchor, $$props) {
3662
4078
  let color = $.prop($$props, "color", 8);
3663
- var svg = root$42();
4079
+ var svg = root$45();
3664
4080
  var path = $.child(svg);
3665
4081
  $.reset(svg);
3666
4082
  $.template_effect(() => $.set_attribute(path, "fill", color()));
@@ -3669,10 +4085,10 @@ function IconUsers($$anchor, $$props) {
3669
4085
 
3670
4086
  //#endregion
3671
4087
  //#region src/components-flex/icon/variants/IconArrowLeft.svelte
3672
- 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>`);
4088
+ 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>`);
3673
4089
  function IconArrowLeft($$anchor, $$props) {
3674
4090
  let color = $.prop($$props, "color", 8);
3675
- var svg = root$41();
4091
+ var svg = root$44();
3676
4092
  var path = $.child(svg);
3677
4093
  $.reset(svg);
3678
4094
  $.template_effect(() => $.set_attribute(path, "fill", color()));
@@ -3681,10 +4097,10 @@ function IconArrowLeft($$anchor, $$props) {
3681
4097
 
3682
4098
  //#endregion
3683
4099
  //#region src/components-flex/icon/variants/IconArrowRight.svelte
3684
- 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>`);
4100
+ 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>`);
3685
4101
  function IconArrowRight($$anchor, $$props) {
3686
4102
  let color = $.prop($$props, "color", 8);
3687
- var svg = root$40();
4103
+ var svg = root$43();
3688
4104
  var path = $.child(svg);
3689
4105
  $.reset(svg);
3690
4106
  $.template_effect(() => $.set_attribute(path, "fill", color()));
@@ -3693,10 +4109,10 @@ function IconArrowRight($$anchor, $$props) {
3693
4109
 
3694
4110
  //#endregion
3695
4111
  //#region src/components-flex/icon/variants/IconBell.svelte
3696
- 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>`);
4112
+ 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>`);
3697
4113
  function IconBell($$anchor, $$props) {
3698
4114
  let color = $.prop($$props, "color", 8);
3699
- var svg = root$39();
4115
+ var svg = root$42();
3700
4116
  var path = $.child(svg);
3701
4117
  $.reset(svg);
3702
4118
  $.template_effect(() => $.set_attribute(path, "fill", color()));
@@ -3705,10 +4121,10 @@ function IconBell($$anchor, $$props) {
3705
4121
 
3706
4122
  //#endregion
3707
4123
  //#region src/components-flex/icon/variants/IconArrowUpFromSquare.svelte
3708
- 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>`);
4124
+ 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>`);
3709
4125
  function IconArrowUpFromSquare($$anchor, $$props) {
3710
4126
  let color = $.prop($$props, "color", 8);
3711
- var svg = root$38();
4127
+ var svg = root$41();
3712
4128
  var path = $.child(svg);
3713
4129
  $.reset(svg);
3714
4130
  $.template_effect(() => $.set_attribute(path, "fill", color()));
@@ -3717,10 +4133,10 @@ function IconArrowUpFromSquare($$anchor, $$props) {
3717
4133
 
3718
4134
  //#endregion
3719
4135
  //#region src/components-flex/icon/variants/IconTicket.svelte
3720
- 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>`);
4136
+ 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>`);
3721
4137
  function IconTicket($$anchor, $$props) {
3722
4138
  let color = $.prop($$props, "color", 8);
3723
- var svg = root$37();
4139
+ var svg = root$40();
3724
4140
  var path = $.child(svg);
3725
4141
  $.reset(svg);
3726
4142
  $.template_effect(() => $.set_attribute(path, "fill", color()));
@@ -3729,10 +4145,10 @@ function IconTicket($$anchor, $$props) {
3729
4145
 
3730
4146
  //#endregion
3731
4147
  //#region src/components-flex/icon/variants/IconTrack.svelte
3732
- 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>`);
4148
+ 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>`);
3733
4149
  function IconTrack($$anchor, $$props) {
3734
4150
  let color = $.prop($$props, "color", 8);
3735
- var svg = root$36();
4151
+ var svg = root$39();
3736
4152
  var path = $.child(svg);
3737
4153
  $.reset(svg);
3738
4154
  $.template_effect(() => $.set_attribute(path, "fill", color()));
@@ -3741,10 +4157,10 @@ function IconTrack($$anchor, $$props) {
3741
4157
 
3742
4158
  //#endregion
3743
4159
  //#region src/components-flex/icon/variants/IconCartShopping.svelte
3744
- 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>`);
4160
+ 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>`);
3745
4161
  function IconCartShopping($$anchor, $$props) {
3746
4162
  let color = $.prop($$props, "color", 8);
3747
- var svg = root$35();
4163
+ var svg = root$38();
3748
4164
  var path = $.child(svg);
3749
4165
  $.reset(svg);
3750
4166
  $.template_effect(() => $.set_attribute(path, "fill", color()));
@@ -3753,10 +4169,10 @@ function IconCartShopping($$anchor, $$props) {
3753
4169
 
3754
4170
  //#endregion
3755
4171
  //#region src/components-flex/icon/variants/IconCircle.svelte
3756
- 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>`);
4172
+ 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>`);
3757
4173
  function IconCircle($$anchor, $$props) {
3758
4174
  let color = $.prop($$props, "color", 8);
3759
- var svg = root$34();
4175
+ var svg = root$37();
3760
4176
  var path = $.child(svg);
3761
4177
  $.reset(svg);
3762
4178
  $.template_effect(() => $.set_attribute(path, "fill", color()));
@@ -3765,10 +4181,10 @@ function IconCircle($$anchor, $$props) {
3765
4181
 
3766
4182
  //#endregion
3767
4183
  //#region src/components-flex/icon/variants/IconCircleQuestion.svelte
3768
- 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>`);
4184
+ 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>`);
3769
4185
  function IconCircleQuestion($$anchor, $$props) {
3770
4186
  let color = $.prop($$props, "color", 8);
3771
- var svg = root$33();
4187
+ var svg = root$36();
3772
4188
  var path = $.child(svg);
3773
4189
  $.reset(svg);
3774
4190
  $.template_effect(() => $.set_attribute(path, "fill", color()));
@@ -3777,10 +4193,10 @@ function IconCircleQuestion($$anchor, $$props) {
3777
4193
 
3778
4194
  //#endregion
3779
4195
  //#region src/components-flex/icon/variants/IconCheck.svelte
3780
- 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>`);
4196
+ 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>`);
3781
4197
  function IconCheck($$anchor, $$props) {
3782
4198
  let color = $.prop($$props, "color", 8);
3783
- var svg = root$32();
4199
+ var svg = root$35();
3784
4200
  var path = $.child(svg);
3785
4201
  $.reset(svg);
3786
4202
  $.template_effect(() => $.set_attribute(path, "fill", color()));
@@ -3789,10 +4205,10 @@ function IconCheck($$anchor, $$props) {
3789
4205
 
3790
4206
  //#endregion
3791
4207
  //#region src/components-flex/icon/variants/IconXMark.svelte
3792
- 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>`);
4208
+ 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>`);
3793
4209
  function IconXMark($$anchor, $$props) {
3794
4210
  let color = $.prop($$props, "color", 8);
3795
- var svg = root$31();
4211
+ var svg = root$34();
3796
4212
  var path = $.child(svg);
3797
4213
  $.reset(svg);
3798
4214
  $.template_effect(() => $.set_attribute(path, "fill", color()));
@@ -3801,10 +4217,10 @@ function IconXMark($$anchor, $$props) {
3801
4217
 
3802
4218
  //#endregion
3803
4219
  //#region src/components-flex/icon/variants/IconPaperPlane.svelte
3804
- 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>`);
4220
+ 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>`);
3805
4221
  function IconPaperPlane($$anchor, $$props) {
3806
4222
  let color = $.prop($$props, "color", 8);
3807
- var svg = root$30();
4223
+ var svg = root$33();
3808
4224
  var path = $.child(svg);
3809
4225
  $.reset(svg);
3810
4226
  $.template_effect(() => $.set_attribute(path, "fill", color()));
@@ -3813,10 +4229,10 @@ function IconPaperPlane($$anchor, $$props) {
3813
4229
 
3814
4230
  //#endregion
3815
4231
  //#region src/components-flex/icon/variants/IconCopy.svelte
3816
- 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>`);
4232
+ 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>`);
3817
4233
  function IconCopy($$anchor, $$props) {
3818
4234
  let color = $.prop($$props, "color", 8);
3819
- var svg = root$29();
4235
+ var svg = root$32();
3820
4236
  var path = $.child(svg);
3821
4237
  $.reset(svg);
3822
4238
  $.template_effect(() => $.set_attribute(path, "fill", color()));
@@ -3825,10 +4241,10 @@ function IconCopy($$anchor, $$props) {
3825
4241
 
3826
4242
  //#endregion
3827
4243
  //#region src/components-flex/icon/variants/IconCircleXMark.svelte
3828
- 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>`);
4244
+ 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>`);
3829
4245
  function IconCircleXMark($$anchor, $$props) {
3830
4246
  let color = $.prop($$props, "color", 8);
3831
- var svg = root$28();
4247
+ var svg = root$31();
3832
4248
  var path = $.child(svg);
3833
4249
  $.reset(svg);
3834
4250
  $.template_effect(() => $.set_attribute(path, "fill", color()));
@@ -3837,10 +4253,10 @@ function IconCircleXMark($$anchor, $$props) {
3837
4253
 
3838
4254
  //#endregion
3839
4255
  //#region src/components-flex/icon/variants/IconHeart.svelte
3840
- 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>`);
4256
+ 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>`);
3841
4257
  function IconHeart($$anchor, $$props) {
3842
4258
  let color = $.prop($$props, "color", 8);
3843
- var svg = root$27();
4259
+ var svg = root$30();
3844
4260
  var path = $.child(svg);
3845
4261
  $.reset(svg);
3846
4262
  $.template_effect(() => $.set_attribute(path, "fill", color()));
@@ -3849,10 +4265,10 @@ function IconHeart($$anchor, $$props) {
3849
4265
 
3850
4266
  //#endregion
3851
4267
  //#region src/components-flex/icon/variants/IconMagnifyingGrass.svelte
3852
- 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>`);
4268
+ 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>`);
3853
4269
  function IconMagnifyingGrass($$anchor, $$props) {
3854
4270
  let color = $.prop($$props, "color", 8);
3855
- var svg = root$26();
4271
+ var svg = root$29();
3856
4272
  var path = $.child(svg);
3857
4273
  $.reset(svg);
3858
4274
  $.template_effect(() => $.set_attribute(path, "fill", color()));
@@ -3861,10 +4277,10 @@ function IconMagnifyingGrass($$anchor, $$props) {
3861
4277
 
3862
4278
  //#endregion
3863
4279
  //#region src/components-flex/icon/variants/IconStar.svelte
3864
- 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>`);
4280
+ 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>`);
3865
4281
  function IconStar($$anchor, $$props) {
3866
4282
  let color = $.prop($$props, "color", 8);
3867
- var svg = root$25();
4283
+ var svg = root$28();
3868
4284
  var path = $.child(svg);
3869
4285
  $.reset(svg);
3870
4286
  $.template_effect(() => $.set_attribute(path, "fill", color()));
@@ -3873,10 +4289,10 @@ function IconStar($$anchor, $$props) {
3873
4289
 
3874
4290
  //#endregion
3875
4291
  //#region src/components-flex/icon/variants/IconCircleInfo.svelte
3876
- 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>`);
4292
+ 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>`);
3877
4293
  function IconCircleInfo($$anchor, $$props) {
3878
4294
  let color = $.prop($$props, "color", 8);
3879
- var svg = root$24();
4295
+ var svg = root$27();
3880
4296
  var path = $.child(svg);
3881
4297
  $.reset(svg);
3882
4298
  $.template_effect(() => $.set_attribute(path, "fill", color()));
@@ -3885,10 +4301,10 @@ function IconCircleInfo($$anchor, $$props) {
3885
4301
 
3886
4302
  //#endregion
3887
4303
  //#region src/components-flex/icon/variants/IconEnvelope.svelte
3888
- 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>`);
4304
+ 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>`);
3889
4305
  function IconEnvelope($$anchor, $$props) {
3890
4306
  let color = $.prop($$props, "color", 8);
3891
- var svg = root$23();
4307
+ var svg = root$26();
3892
4308
  var path = $.child(svg);
3893
4309
  $.reset(svg);
3894
4310
  $.template_effect(() => $.set_attribute(path, "fill", color()));
@@ -3897,10 +4313,10 @@ function IconEnvelope($$anchor, $$props) {
3897
4313
 
3898
4314
  //#endregion
3899
4315
  //#region src/components-flex/icon/variants/IconGift.svelte
3900
- 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>`);
4316
+ 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>`);
3901
4317
  function IconGift($$anchor, $$props) {
3902
4318
  let color = $.prop($$props, "color", 8);
3903
- var svg = root$22();
4319
+ var svg = root$25();
3904
4320
  var path = $.child(svg);
3905
4321
  $.reset(svg);
3906
4322
  $.template_effect(() => $.set_attribute(path, "fill", color()));
@@ -3909,10 +4325,10 @@ function IconGift($$anchor, $$props) {
3909
4325
 
3910
4326
  //#endregion
3911
4327
  //#region src/components-flex/icon/variants/IconPaperclip.svelte
3912
- 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>`);
4328
+ 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>`);
3913
4329
  function IconPaperclip($$anchor, $$props) {
3914
4330
  let color = $.prop($$props, "color", 8);
3915
- var svg = root$21();
4331
+ var svg = root$24();
3916
4332
  var path = $.child(svg);
3917
4333
  $.reset(svg);
3918
4334
  $.template_effect(() => $.set_attribute(path, "fill", color()));
@@ -3921,10 +4337,10 @@ function IconPaperclip($$anchor, $$props) {
3921
4337
 
3922
4338
  //#endregion
3923
4339
  //#region src/components-flex/icon/variants/IconFire.svelte
3924
- 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>`);
4340
+ 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>`);
3925
4341
  function IconFire($$anchor, $$props) {
3926
4342
  let color = $.prop($$props, "color", 8);
3927
- var svg = root$20();
4343
+ var svg = root$23();
3928
4344
  var path = $.child(svg);
3929
4345
  $.reset(svg);
3930
4346
  $.template_effect(() => $.set_attribute(path, "fill", color()));
@@ -3933,10 +4349,10 @@ function IconFire($$anchor, $$props) {
3933
4349
 
3934
4350
  //#endregion
3935
4351
  //#region src/components-flex/icon/variants/IconLink.svelte
3936
- 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>`);
4352
+ 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>`);
3937
4353
  function IconLink($$anchor, $$props) {
3938
4354
  let color = $.prop($$props, "color", 8);
3939
- var svg = root$19();
4355
+ var svg = root$22();
3940
4356
  var path = $.child(svg);
3941
4357
  $.reset(svg);
3942
4358
  $.template_effect(() => $.set_attribute(path, "fill", color()));
@@ -3945,10 +4361,10 @@ function IconLink($$anchor, $$props) {
3945
4361
 
3946
4362
  //#endregion
3947
4363
  //#region src/components-flex/icon/variants/IconBuildings.svelte
3948
- 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>`);
4364
+ 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>`);
3949
4365
  function IconBuildings($$anchor, $$props) {
3950
4366
  let color = $.prop($$props, "color", 8);
3951
- var svg = root$18();
4367
+ var svg = root$21();
3952
4368
  var path = $.child(svg);
3953
4369
  $.reset(svg);
3954
4370
  $.template_effect(() => $.set_attribute(path, "fill", color()));
@@ -3957,10 +4373,10 @@ function IconBuildings($$anchor, $$props) {
3957
4373
 
3958
4374
  //#endregion
3959
4375
  //#region src/components-flex/icon/variants/IconChevronsRight.svelte
3960
- 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>`);
4376
+ 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>`);
3961
4377
  function IconChevronsRight($$anchor, $$props) {
3962
4378
  let color = $.prop($$props, "color", 8);
3963
- var svg = root$17();
4379
+ var svg = root$20();
3964
4380
  var path = $.child(svg);
3965
4381
  $.reset(svg);
3966
4382
  $.template_effect(() => $.set_attribute(path, "fill", color()));
@@ -3969,10 +4385,10 @@ function IconChevronsRight($$anchor, $$props) {
3969
4385
 
3970
4386
  //#endregion
3971
4387
  //#region src/components-flex/icon/variants/IconChevronRight.svelte
3972
- 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>`);
4388
+ 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>`);
3973
4389
  function IconChevronRight($$anchor, $$props) {
3974
4390
  let color = $.prop($$props, "color", 8);
3975
- var svg = root$16();
4391
+ var svg = root$19();
3976
4392
  var path = $.child(svg);
3977
4393
  $.reset(svg);
3978
4394
  $.template_effect(() => $.set_attribute(path, "fill", color()));
@@ -3981,10 +4397,10 @@ function IconChevronRight($$anchor, $$props) {
3981
4397
 
3982
4398
  //#endregion
3983
4399
  //#region src/components-flex/icon/variants/IconPhone.svelte
3984
- 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>`);
4400
+ 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>`);
3985
4401
  function IconPhone($$anchor, $$props) {
3986
4402
  let color = $.prop($$props, "color", 8);
3987
- var svg = root$15();
4403
+ var svg = root$18();
3988
4404
  var path = $.child(svg);
3989
4405
  $.reset(svg);
3990
4406
  $.template_effect(() => $.set_attribute(path, "fill", color()));
@@ -3993,10 +4409,10 @@ function IconPhone($$anchor, $$props) {
3993
4409
 
3994
4410
  //#endregion
3995
4411
  //#region src/components-flex/icon/variants/IconLocationDot.svelte
3996
- 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>`);
4412
+ 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>`);
3997
4413
  function IconLocationDot($$anchor, $$props) {
3998
4414
  let color = $.prop($$props, "color", 8);
3999
- var svg = root$14();
4415
+ var svg = root$17();
4000
4416
  var path = $.child(svg);
4001
4417
  $.reset(svg);
4002
4418
  $.template_effect(() => $.set_attribute(path, "fill", color()));
@@ -4071,18 +4487,18 @@ const ICON_VARIANTS = {
4071
4487
 
4072
4488
  //#endregion
4073
4489
  //#region src/components-flex/icon/Icon.svelte
4074
- const $$css$21 = {
4490
+ const $$css$31 = {
4075
4491
  hash: "svelte-1kl9m59",
4076
4492
  code: ".icon.svelte-1kl9m59 {display:flex;align-items:center;overflow:hidden;width:auto;cursor:pointer;text-decoration:none;border:0;background:none;padding:0;margin:0;text-align:left;-webkit-appearance:none;}"
4077
4493
  };
4078
4494
  function Icon($$anchor, $$props) {
4079
4495
  $.push($$props, false);
4080
- $.append_styles($$anchor, $$css$21);
4496
+ $.append_styles($$anchor, $$css$31);
4081
4497
  const style = $.mutable_state();
4082
4498
  const IconComponent = $.mutable_state();
4083
4499
  let props = $.prop($$props, "props", 24, () => ({}));
4084
4500
  let layerId = $.prop($$props, "layerId", 8, "");
4085
- useInjectCustomizeCss(props());
4501
+ useInjectCustomizeCss(props(), layerId());
4086
4502
  const { attributes, element, handleClick } = useClickable_default(props());
4087
4503
  const getSizeCss = () => {
4088
4504
  return {
@@ -4106,12 +4522,13 @@ function Icon($$anchor, $$props) {
4106
4522
  var node = $.first_child(fragment);
4107
4523
  $.element(node, () => element, false, ($$element, $$anchor$1) => {
4108
4524
  let attributes_1;
4109
- $.template_effect(() => attributes_1 = $.set_attributes($$element, attributes_1, {
4525
+ $.template_effect(($0) => attributes_1 = $.set_attributes($$element, attributes_1, {
4110
4526
  ...attributes,
4111
- class: "icon",
4527
+ id: props().id,
4528
+ class: $0,
4112
4529
  style: $.get(style),
4113
4530
  "data-layer-id": layerId()
4114
- }, "svelte-1kl9m59"));
4531
+ }, "svelte-1kl9m59"), [() => ["icon", ...props().classNames ?? []].join(" ")], $.derived_safe_equal);
4115
4532
  $.event("click", $$element, handleClick);
4116
4533
  var fragment_1 = $.comment();
4117
4534
  var node_1 = $.first_child(fragment_1);
@@ -4296,20 +4713,20 @@ function darkenColor(color, percent) {
4296
4713
 
4297
4714
  //#endregion
4298
4715
  //#region src/components-flex/button/Button.svelte
4299
- var root_2$4 = $.template(`<div class="button-icon svelte-l0rauj"><!></div>`);
4300
- var root_1$7 = $.template(`<!> <span class="button-label"> </span>`, 1);
4301
- const $$css$20 = {
4716
+ var root_2$8 = $.template(`<div class="button-icon svelte-l0rauj"><!></div>`);
4717
+ var root_1$13 = $.template(`<!> <span class="button-label"> </span>`, 1);
4718
+ const $$css$30 = {
4302
4719
  hash: "svelte-l0rauj",
4303
4720
  code: ".button.svelte-l0rauj {display:inline-flex;gap:0.8em;align-items:center;justify-content:center;text-decoration:none;outline:0;border-width:1px;border-style:solid;line-height:1.5;transition:background-color 0.12s,\n border-color 0.12s,\n color 0.12s;cursor:pointer;color:var(--color);border-color:var(--border-color);background-color:var(--bg-color);}.button.svelte-l0rauj:hover {background-color:var(--hover-bg-color);border-color:var(--hover-border-color);}.button-icon.svelte-l0rauj {display:flex;align-items:center;justify-content:center;margin-left:-0.2em;margin-right:-0.2em;}"
4304
4721
  };
4305
4722
  function Button($$anchor, $$props) {
4306
4723
  $.push($$props, false);
4307
- $.append_styles($$anchor, $$css$20);
4724
+ $.append_styles($$anchor, $$css$30);
4308
4725
  const variables$1 = $.mutable_state();
4309
4726
  const style = $.mutable_state();
4310
4727
  let props = $.prop($$props, "props", 24, () => ({}));
4311
4728
  let layerId = $.prop($$props, "layerId", 8, "");
4312
- useInjectCustomizeCss(props());
4729
+ useInjectCustomizeCss(props(), layerId());
4313
4730
  const { attributes, element, handleClick } = useClickable_default(props());
4314
4731
  const { brandKit } = useBrandKit();
4315
4732
  const buttonThemeStyles = getButtonThemeStyles(brandKit);
@@ -4378,36 +4795,35 @@ function Button($$anchor, $$props) {
4378
4795
  var node = $.first_child(fragment);
4379
4796
  $.element(node, () => element, false, ($$element, $$anchor$1) => {
4380
4797
  let attributes_1;
4381
- $.template_effect(() => attributes_1 = $.set_attributes($$element, attributes_1, {
4798
+ $.template_effect(($0) => attributes_1 = $.set_attributes($$element, attributes_1, {
4382
4799
  ...attributes,
4383
- class: "button",
4800
+ id: props().id,
4801
+ class: $0,
4384
4802
  style: $.get(style),
4385
4803
  "data-layer-id": layerId(),
4386
4804
  "data-variant": variant
4387
- }, "svelte-l0rauj"));
4805
+ }, "svelte-l0rauj"), [() => ["button", ...props().classNames ?? []].join(" ")], $.derived_safe_equal);
4388
4806
  $.event("click", $$element, handleClick);
4389
- var fragment_1 = root_1$7();
4807
+ var fragment_1 = root_1$13();
4390
4808
  var node_1 = $.first_child(fragment_1);
4391
- {
4392
- var consequent = ($$anchor$2) => {
4393
- var div = root_2$4();
4394
- var node_2 = $.child(div);
4395
- const expression = $.derived_safe_equal(() => ({
4396
- variant: props().iconVariant,
4397
- color: props().iconColor ?? props().color ?? buttonThemeStyle.color,
4398
- width: "1em",
4399
- height: "1em"
4400
- }));
4401
- Icon(node_2, { get props() {
4402
- return $.get(expression);
4403
- } });
4404
- $.reset(div);
4405
- $.append($$anchor$2, div);
4406
- };
4407
- $.if(node_1, ($$render) => {
4408
- if (props().isIcon && props().iconVariant) $$render(consequent);
4409
- });
4410
- }
4809
+ var consequent = ($$anchor$2) => {
4810
+ var div = root_2$8();
4811
+ var node_2 = $.child(div);
4812
+ const expression = $.derived_safe_equal(() => ({
4813
+ variant: props().iconVariant,
4814
+ color: props().iconColor ?? props().color ?? buttonThemeStyle.color,
4815
+ width: "1em",
4816
+ height: "1em"
4817
+ }));
4818
+ Icon(node_2, { get props() {
4819
+ return $.get(expression);
4820
+ } });
4821
+ $.reset(div);
4822
+ $.append($$anchor$2, div);
4823
+ };
4824
+ $.if(node_1, ($$render) => {
4825
+ if (props().isIcon && props().iconVariant) $$render(consequent);
4826
+ });
4411
4827
  var span = $.sibling(node_1, 2);
4412
4828
  var text = $.child(span, true);
4413
4829
  $.reset(span);
@@ -4513,20 +4929,20 @@ const BUTTON_OUTLINED_WRAP_STYLES = {
4513
4929
 
4514
4930
  //#endregion
4515
4931
  //#region src/components-flex/button-outlined/ButtonOutlined.svelte
4516
- var root_2$3 = $.template(`<div class="button-outlined-icon svelte-z8gomx"><!></div>`);
4517
- var root_1$6 = $.template(`<!> <span class="button-outlined-label svelte-z8gomx"> </span>`, 1);
4518
- const $$css$19 = {
4932
+ var root_2$7 = $.template(`<div class="button-outlined-icon svelte-z8gomx"><!></div>`);
4933
+ var root_1$12 = $.template(`<!> <span class="button-outlined-label svelte-z8gomx"> </span>`, 1);
4934
+ const $$css$29 = {
4519
4935
  hash: "svelte-z8gomx",
4520
4936
  code: ".button-outlined.svelte-z8gomx {display:inline-flex;gap:0.65em;align-items:center;justify-content:center;text-decoration:none;outline:0;border-width:1px;border-style:solid;line-height:1.5;transition:background-color 0.12s,\n border-color 0.12s,\n color 0.12s;cursor:pointer;background-color:var(--bg-color);}.button-outlined.svelte-z8gomx:hover {background-color:var(--hover-bg-color);}.button-outlined-icon.svelte-z8gomx {display:flex;align-items:center;justify-content:center;margin-left:-0.2em;margin-right:-0.2em;margin-bottom:0.1em;}"
4521
4937
  };
4522
4938
  function ButtonOutlined($$anchor, $$props) {
4523
4939
  $.push($$props, false);
4524
- $.append_styles($$anchor, $$css$19);
4940
+ $.append_styles($$anchor, $$css$29);
4525
4941
  const variables$1 = $.mutable_state();
4526
4942
  const style = $.mutable_state();
4527
4943
  let props = $.prop($$props, "props", 24, () => ({}));
4528
4944
  let layerId = $.prop($$props, "layerId", 8, "");
4529
- useInjectCustomizeCss(props());
4945
+ useInjectCustomizeCss(props(), layerId());
4530
4946
  const { brandKit } = useBrandKit();
4531
4947
  const { attributes, element, handleClick } = useClickable_default(props());
4532
4948
  const buttonThemeStyles = getButtonOutlinedThemeStyles(brandKit);
@@ -4570,29 +4986,27 @@ function ButtonOutlined($$anchor, $$props) {
4570
4986
  "data-layer-id": layerId()
4571
4987
  }, "svelte-z8gomx"));
4572
4988
  $.event("click", $$element, handleClick);
4573
- var fragment_1 = root_1$6();
4989
+ var fragment_1 = root_1$12();
4574
4990
  var node_1 = $.first_child(fragment_1);
4575
- {
4576
- var consequent = ($$anchor$2) => {
4577
- var div = root_2$3();
4578
- var node_2 = $.child(div);
4579
- const expression = $.derived_safe_equal(() => ({
4580
- variant: props().iconVariant,
4581
- color: props().iconColor ?? props().color ?? buttonThemeStyle.color,
4582
- width: "1em",
4583
- height: "1em"
4584
- }));
4585
- Icon(node_2, { get props() {
4586
- return $.get(expression);
4587
- } });
4588
- $.reset(div);
4589
- $.append($$anchor$2, div);
4590
- };
4591
- $.if(node_1, ($$render) => {
4592
- if (props().isIcon && props().iconVariant) $$render(consequent);
4593
- });
4594
- }
4595
- var span = $.sibling(node_1, 2);
4991
+ var consequent = ($$anchor$2) => {
4992
+ var div = root_2$7();
4993
+ var node_2 = $.child(div);
4994
+ const expression = $.derived_safe_equal(() => ({
4995
+ variant: props().iconVariant,
4996
+ color: props().iconColor ?? props().color ?? buttonThemeStyle.color,
4997
+ width: "1em",
4998
+ height: "1em"
4999
+ }));
5000
+ Icon(node_2, { get props() {
5001
+ return $.get(expression);
5002
+ } });
5003
+ $.reset(div);
5004
+ $.append($$anchor$2, div);
5005
+ };
5006
+ $.if(node_1, ($$render) => {
5007
+ if (props().isIcon && props().iconVariant) $$render(consequent);
5008
+ });
5009
+ var span = $.sibling(node_1, 2);
4596
5010
  var text = $.child(span, true);
4597
5011
  $.reset(span);
4598
5012
  $.template_effect(() => $.set_text(text, props().label ?? buttonOutlinedPropsDefault.label));
@@ -4662,20 +5076,20 @@ const getButtonTextThemeStyles = getPropStyles(callback$2);
4662
5076
 
4663
5077
  //#endregion
4664
5078
  //#region src/components-flex/button-text/ButtonText.svelte
4665
- var root_2$2 = $.template(`<div class="button-text-icon svelte-l90o4j"><!></div>`);
4666
- var root_1$5 = $.template(`<!> <span class="button-text-label svelte-l90o4j"> </span>`, 1);
4667
- const $$css$18 = {
5079
+ var root_2$6 = $.template(`<div class="button-text-icon svelte-l90o4j"><!></div>`);
5080
+ var root_1$11 = $.template(`<!> <span class="button-text-label svelte-l90o4j"> </span>`, 1);
5081
+ const $$css$28 = {
4668
5082
  hash: "svelte-l90o4j",
4669
5083
  code: ".button-text.svelte-l90o4j {display:inline-flex;gap:0.65em;align-items:center;justify-content:center;text-decoration:none;outline:0;border:0;line-height:1.5;transition:background-color 0.12s,\n border-color 0.12s,\n color 0.12s;cursor:pointer;background-color:rgba(255, 255, 255, 0);}.button-text.svelte-l90o4j:hover {background-color:var(--hover-bg-color);}.button-text-icon.svelte-l90o4j {display:flex;align-items:center;justify-content:center;margin-left:-0.2em;margin-right:-0.2em;}"
4670
5084
  };
4671
5085
  function ButtonText($$anchor, $$props) {
4672
5086
  $.push($$props, false);
4673
- $.append_styles($$anchor, $$css$18);
5087
+ $.append_styles($$anchor, $$css$28);
4674
5088
  const variables$1 = $.mutable_state();
4675
5089
  const style = $.mutable_state();
4676
5090
  let props = $.prop($$props, "props", 24, () => ({}));
4677
5091
  let layerId = $.prop($$props, "layerId", 8, "");
4678
- useInjectCustomizeCss(props());
5092
+ useInjectCustomizeCss(props(), layerId());
4679
5093
  const { brandKit } = useBrandKit();
4680
5094
  const { attributes, element, handleClick } = useClickable_default(props());
4681
5095
  const themeStyles = getButtonTextThemeStyles(brandKit);
@@ -4713,28 +5127,26 @@ function ButtonText($$anchor, $$props) {
4713
5127
  "data-layer-id": layerId()
4714
5128
  }, "svelte-l90o4j"));
4715
5129
  $.event("click", $$element, handleClick);
4716
- var fragment_1 = root_1$5();
5130
+ var fragment_1 = root_1$11();
4717
5131
  var node_1 = $.first_child(fragment_1);
4718
- {
4719
- var consequent = ($$anchor$2) => {
4720
- var div = root_2$2();
4721
- var node_2 = $.child(div);
4722
- const expression = $.derived_safe_equal(() => ({
4723
- variant: props().iconVariant,
4724
- color: props().color ?? buttonThemeStyle.color,
4725
- width: "1em",
4726
- height: "1em"
4727
- }));
4728
- Icon(node_2, { get props() {
4729
- return $.get(expression);
4730
- } });
4731
- $.reset(div);
4732
- $.append($$anchor$2, div);
4733
- };
4734
- $.if(node_1, ($$render) => {
4735
- if (props().isIcon && props().iconVariant) $$render(consequent);
4736
- });
4737
- }
5132
+ var consequent = ($$anchor$2) => {
5133
+ var div = root_2$6();
5134
+ var node_2 = $.child(div);
5135
+ const expression = $.derived_safe_equal(() => ({
5136
+ variant: props().iconVariant,
5137
+ color: props().color ?? buttonThemeStyle.color,
5138
+ width: "1em",
5139
+ height: "1em"
5140
+ }));
5141
+ Icon(node_2, { get props() {
5142
+ return $.get(expression);
5143
+ } });
5144
+ $.reset(div);
5145
+ $.append($$anchor$2, div);
5146
+ };
5147
+ $.if(node_1, ($$render) => {
5148
+ if (props().isIcon && props().iconVariant) $$render(consequent);
5149
+ });
4738
5150
  var span = $.sibling(node_1, 2);
4739
5151
  var text = $.child(span, true);
4740
5152
  $.reset(span);
@@ -4779,15 +5191,15 @@ const getTextThemeStyles = getPropStyles(callback$1);
4779
5191
 
4780
5192
  //#endregion
4781
5193
  //#region src/components-flex/close-button/CloseButton.svelte
4782
- var root_2$1 = $.template(`<span></span>`);
4783
- 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);
4784
- const $$css$17 = {
5194
+ var root_2$5 = $.template(`<span></span>`);
5195
+ var root_1$10 = $.template(`<span><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512" style="width: 100%; height: 100%;" class="svelte-18wmfyq"><path d="M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"></path></svg></span> <!>`, 1);
5196
+ const $$css$27 = {
4785
5197
  hash: "svelte-18wmfyq",
4786
5198
  code: ".close-button.svelte-18wmfyq {display:inline-flex;align-items:center;justify-content:center;align-self:center;gap:8px;border-radius:100%;background:none;cursor:pointer;border:0;outline:0;flex-shrink:0;transition:background-color 0.12s,\n border-color 0.12s,\n color 0.12s;}.close-button.svelte-18wmfyq svg:where(.svelte-18wmfyq) {transition:transform 0.12s;}.close-button.svelte-18wmfyq:hover svg:where(.svelte-18wmfyq) {transform:rotate(90deg);}.close-button-order-one.svelte-18wmfyq {order:1;}.close-button-order-two.svelte-18wmfyq {order:2;}"
4787
5199
  };
4788
5200
  function CloseButton($$anchor, $$props) {
4789
5201
  $.push($$props, false);
4790
- $.append_styles($$anchor, $$css$17);
5202
+ $.append_styles($$anchor, $$css$27);
4791
5203
  const hasLabel = $.mutable_state();
4792
5204
  const styleObj = $.mutable_state();
4793
5205
  const style = $.mutable_state();
@@ -4800,8 +5212,8 @@ function CloseButton($$anchor, $$props) {
4800
5212
  let eventName = $.prop($$props, "eventName", 8, "");
4801
5213
  let eventValue = $.prop($$props, "eventValue", 8, void 0);
4802
5214
  const { brandKit } = useBrandKit();
4803
- useInjectCustomizeCss(props());
4804
- const { attributes, element, handleClick } = useClickable_default({
5215
+ useInjectCustomizeCss(props(), layerId());
5216
+ const { attributes, element, handleClick } = useClickable_default(props().onClick ? props() : {
4805
5217
  onClick: {
4806
5218
  operation: "closeApp",
4807
5219
  args: ["button"]
@@ -4891,31 +5303,30 @@ function CloseButton($$anchor, $$props) {
4891
5303
  var node = $.first_child(fragment);
4892
5304
  $.element(node, () => element, false, ($$element, $$anchor$1) => {
4893
5305
  let attributes_1;
4894
- $.template_effect(() => attributes_1 = $.set_attributes($$element, attributes_1, {
5306
+ $.template_effect(($0) => attributes_1 = $.set_attributes($$element, attributes_1, {
4895
5307
  ...attributes,
4896
- class: `close-button ${isLeftLabelPlacement ? "close-button-order-two" : ""}`,
5308
+ id: props().id,
5309
+ class: $0,
4897
5310
  "data-layer-id": layerId(),
4898
5311
  style: $.get(style)
4899
- }, "svelte-18wmfyq"));
5312
+ }, "svelte-18wmfyq"), [() => [`close-button ${isLeftLabelPlacement ? "close-button-order-two" : ""}`, ...props().classNames ?? []].join(" ")], $.derived_safe_equal);
4900
5313
  $.event("click", $$element, handleClick);
4901
- var fragment_1 = root_1$4();
5314
+ var fragment_1 = root_1$10();
4902
5315
  var span = $.first_child(fragment_1);
4903
5316
  var svg = $.child(span);
4904
5317
  $.set_attribute(svg, "fill", color);
4905
5318
  $.reset(span);
4906
5319
  var node_1 = $.sibling(span, 2);
4907
- {
4908
- var consequent = ($$anchor$2) => {
4909
- var span_1 = root_2$1();
4910
- $.set_class(span_1, 1, `close-button-label ${isLeftLabelPlacement ? "close-button-order-one" : ""}`, "svelte-18wmfyq");
4911
- span_1.textContent = label;
4912
- $.template_effect(() => $.set_style(span_1, $.get(labelStyle)));
4913
- $.append($$anchor$2, span_1);
4914
- };
4915
- $.if(node_1, ($$render) => {
4916
- if ($.get(hasLabel)) $$render(consequent);
4917
- });
4918
- }
5320
+ var consequent = ($$anchor$2) => {
5321
+ var span_1 = root_2$5();
5322
+ $.set_class(span_1, 1, `close-button-label ${isLeftLabelPlacement ? "close-button-order-one" : ""}`, "svelte-18wmfyq");
5323
+ span_1.textContent = label;
5324
+ $.template_effect(() => $.set_style(span_1, $.get(labelStyle)));
5325
+ $.append($$anchor$2, span_1);
5326
+ };
5327
+ $.if(node_1, ($$render) => {
5328
+ if ($.get(hasLabel)) $$render(consequent);
5329
+ });
4919
5330
  $.template_effect(() => $.set_style(span, $.get(iconStyle)));
4920
5331
  $.append($$anchor$1, fragment_1);
4921
5332
  });
@@ -4999,20 +5410,20 @@ const IMAGE_ROUND_STYLES = {
4999
5410
 
5000
5411
  //#endregion
5001
5412
  //#region src/components-flex/image/Image.svelte
5002
- var root_1$3 = $.template(`<img class="image-img svelte-1olvu11">`);
5003
- const $$css$16 = {
5413
+ var root_1$9 = $.template(`<img class="image-img svelte-1olvu11">`);
5414
+ const $$css$26 = {
5004
5415
  hash: "svelte-1olvu11",
5005
5416
  code: ".image.svelte-1olvu11 {max-width:100%;overflow:hidden;display:flex;align-items:center;justify-content:center;border:0;background:none;padding:0;margin:0;text-align:left;-webkit-appearance:none;}.image-img.svelte-1olvu11 {vertical-align:top;width:100%;height:100%;object-fit:cover;user-select:none;-webkit-user-drag:none;}"
5006
5417
  };
5007
5418
  function Image($$anchor, $$props) {
5008
5419
  $.push($$props, false);
5009
- $.append_styles($$anchor, $$css$16);
5420
+ $.append_styles($$anchor, $$css$26);
5010
5421
  const styleObj = $.mutable_state();
5011
5422
  const style = $.mutable_state();
5012
5423
  const imgStyle = $.mutable_state();
5013
5424
  let props = $.prop($$props, "props", 24, () => ({}));
5014
5425
  let layerId = $.prop($$props, "layerId", 8, "");
5015
- useInjectCustomizeCss(props());
5426
+ useInjectCustomizeCss(props(), layerId());
5016
5427
  const { attributes, element, handleClick } = useClickable_default(props());
5017
5428
  const aspectVariantStyles = ASPECT_VARIANT[props().aspectVariant]?.getProps();
5018
5429
  const width = props().width ?? "100%";
@@ -5051,14 +5462,15 @@ function Image($$anchor, $$props) {
5051
5462
  var node = $.first_child(fragment);
5052
5463
  $.element(node, () => element, false, ($$element, $$anchor$1) => {
5053
5464
  let attributes_1;
5054
- $.template_effect(() => attributes_1 = $.set_attributes($$element, attributes_1, {
5465
+ $.template_effect(($0) => attributes_1 = $.set_attributes($$element, attributes_1, {
5055
5466
  ...attributes,
5056
- class: "image",
5467
+ id: props().id,
5468
+ class: $0,
5057
5469
  style: $.get(style),
5058
5470
  "data-layer-id": layerId()
5059
- }, "svelte-1olvu11"));
5471
+ }, "svelte-1olvu11"), [() => ["image", ...props().classNames ?? []].join(" ")], $.derived_safe_equal);
5060
5472
  $.event("click", $$element, handleClick);
5061
- var img = root_1$3();
5473
+ var img = root_1$9();
5062
5474
  $.template_effect(() => {
5063
5475
  $.set_attribute(img, "src", props().image);
5064
5476
  $.set_attribute(img, "alt", props().alt);
@@ -5092,18 +5504,18 @@ const IMAGE_ASPECT_VARIANTS = {
5092
5504
 
5093
5505
  //#endregion
5094
5506
  //#region src/components-flex/layout/Layout.svelte
5095
- const $$css$15 = {
5507
+ const $$css$25 = {
5096
5508
  hash: "svelte-1o103hp",
5097
5509
  code: ".layout.svelte-1o103hp {text-decoration:none;color:inherit;}.layout[data-clickable='true'].svelte-1o103hp {cursor:pointer;}.layout[data-clickable='true'].svelte-1o103hp:hover {opacity:0.8;}"
5098
5510
  };
5099
5511
  function Layout($$anchor, $$props) {
5100
5512
  $.push($$props, false);
5101
- $.append_styles($$anchor, $$css$15);
5513
+ $.append_styles($$anchor, $$css$25);
5102
5514
  const style = $.mutable_state();
5103
5515
  let props = $.prop($$props, "props", 24, () => ({}));
5104
5516
  let layerId = $.prop($$props, "layerId", 8, "");
5105
5517
  const { brandKit } = useBrandKit();
5106
- useInjectCustomizeCss(props());
5518
+ useInjectCustomizeCss(props(), layerId());
5107
5519
  const { attributes, element, handleClick } = useClickable_default(props());
5108
5520
  $.legacy_pre_effect(() => ($.deep_read_state(props()), toCssBorder), () => {
5109
5521
  $.set(style, objToStyle({
@@ -5114,6 +5526,7 @@ function Layout($$anchor, $$props) {
5114
5526
  rowGap: props().rowGap ?? props().gap,
5115
5527
  columnGap: props().columnGap ?? props().gap,
5116
5528
  width: props().width,
5529
+ maxWidth: props().maxWidth,
5117
5530
  height: props().height,
5118
5531
  ...toCssOverflow(props()),
5119
5532
  ...toCssShadow(props()),
@@ -5130,12 +5543,13 @@ function Layout($$anchor, $$props) {
5130
5543
  var node = $.first_child(fragment);
5131
5544
  $.element(node, () => "div", false, ($$element, $$anchor$1) => {
5132
5545
  let attributes_1;
5133
- $.template_effect(() => attributes_1 = $.set_attributes($$element, attributes_1, {
5546
+ $.template_effect(($0) => attributes_1 = $.set_attributes($$element, attributes_1, {
5134
5547
  ...attributes,
5135
- class: "layout",
5548
+ id: props().id,
5549
+ class: $0,
5136
5550
  style: $.get(style),
5137
5551
  "data-layer-id": layerId()
5138
- }, "svelte-1o103hp"));
5552
+ }, "svelte-1o103hp"), [() => ["layout", ...props().classNames ?? []].join(" ")], $.derived_safe_equal);
5139
5553
  $.event("click", $$element, handleClick);
5140
5554
  var fragment_1 = $.comment();
5141
5555
  var node_1 = $.first_child(fragment_1);
@@ -5174,15 +5588,15 @@ const LAYOUT_JUSTIFY = [
5174
5588
 
5175
5589
  //#endregion
5176
5590
  //#region src/components-flex/slider/Slider.svelte
5177
- var root_1$2 = $.template(`<button><i></i></button>`);
5178
- 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>`);
5179
- const $$css$14 = {
5591
+ var root_1$8 = $.template(`<button><i></i></button>`);
5592
+ var root$16 = $.template(`<div><div class="slider-container svelte-wwv1o"><ul class="slider-list svelte-wwv1o"><!></ul></div> <div></div></div>`);
5593
+ const $$css$24 = {
5180
5594
  hash: "svelte-wwv1o",
5181
5595
  code: ".slider.svelte-wwv1o {width:100%;overflow:hidden;overscroll-behavior:contain;touch-action:pan-y;}.slider-container.svelte-wwv1o {width:100%;overflow:hidden;overscroll-behavior:contain;touch-action:pan-y;}.slider-list.svelte-wwv1o {-webkit-user-drag:none;margin:0;padding:0;list-style:none;will-change:transform;}"
5182
5596
  };
5183
5597
  function Slider($$anchor, $$props) {
5184
5598
  $.push($$props, false);
5185
- $.append_styles($$anchor, $$css$14);
5599
+ $.append_styles($$anchor, $$css$24);
5186
5600
  const indicators = $.mutable_state();
5187
5601
  const itemWidthPercentage = $.mutable_state();
5188
5602
  const baseContainerStyle = $.mutable_state();
@@ -5192,7 +5606,7 @@ function Slider($$anchor, $$props) {
5192
5606
  let layerId = $.prop($$props, "layerId", 8);
5193
5607
  let props = $.prop($$props, "props", 8);
5194
5608
  let overrideStyle = $.prop($$props, "overrideStyle", 8);
5195
- useInjectCustomizeCss(props());
5609
+ useInjectCustomizeCss(props(), layerId());
5196
5610
  let containerElement = $.mutable_state();
5197
5611
  let slotElement = $.mutable_state();
5198
5612
  let currentIndex = $.mutable_state(0);
@@ -5345,7 +5759,7 @@ function Slider($$anchor, $$props) {
5345
5759
  });
5346
5760
  $.legacy_pre_effect_reset();
5347
5761
  $.init();
5348
- var div = root$13();
5762
+ var div = root$16();
5349
5763
  var div_1 = $.child(div);
5350
5764
  var ul = $.child(div_1);
5351
5765
  var node = $.child(ul);
@@ -5356,7 +5770,7 @@ function Slider($$anchor, $$props) {
5356
5770
  $.bind_this(div_1, ($$value) => $.set(containerElement, $$value), () => $.get(containerElement));
5357
5771
  var div_2 = $.sibling(div_1, 2);
5358
5772
  $.each(div_2, 5, () => $.get(indicators) ?? [], $.index, ($$anchor$1, indicator, i) => {
5359
- var button = root_1$2();
5773
+ var button = root_1$8();
5360
5774
  var i_1 = $.child(button);
5361
5775
  $.reset(button);
5362
5776
  $.template_effect(($0, $1) => {
@@ -5375,11 +5789,13 @@ function Slider($$anchor, $$props) {
5375
5789
  });
5376
5790
  $.reset(div_2);
5377
5791
  $.reset(div);
5378
- $.template_effect(($0) => {
5792
+ $.template_effect(($0, $1) => {
5793
+ $.set_attribute(div, "id", props().id);
5794
+ $.set_class(div, 1, $0, "svelte-wwv1o");
5379
5795
  $.set_attribute(div, "data-layer-id", layerId());
5380
- $.set_style(ul, $0);
5796
+ $.set_style(ul, $1);
5381
5797
  $.set_style(div_2, $.get(indicatorListStyle));
5382
- }, [() => [$.get(containerStyle), overrideStyle()].join(" ")], $.derived_safe_equal);
5798
+ }, [() => $.clsx(["slider", ...props().classNames ?? []].join(" ")), () => [$.get(containerStyle), overrideStyle()].join(" ")], $.derived_safe_equal);
5383
5799
  $.event("mousedown", div_1, handleMousedown);
5384
5800
  $.event("touchstart", div_1, handleTouchstart);
5385
5801
  $.append($$anchor, div);
@@ -5388,20 +5804,20 @@ function Slider($$anchor, $$props) {
5388
5804
 
5389
5805
  //#endregion
5390
5806
  //#region src/components-flex/slider/SliderItem.svelte
5391
- var root$12 = $.template(`<li class="slider-item svelte-1m93md9"><!></li>`);
5392
- const $$css$13 = {
5807
+ var root$15 = $.template(`<li><!></li>`);
5808
+ const $$css$23 = {
5393
5809
  hash: "svelte-1m93md9",
5394
5810
  code: ".slider-item.svelte-1m93md9 {overflow:hidden;}.slider-item-inner.svelte-1m93md9 {text-decoration:none;border:0;background:none;padding:0;margin:0;text-align:left;-webkit-appearance:none;text-align:left;color:inherit;-webkit-user-drag:none;user-select:none;}"
5395
5811
  };
5396
5812
  function SliderItem($$anchor, $$props) {
5397
5813
  $.push($$props, false);
5398
- $.append_styles($$anchor, $$css$13);
5814
+ $.append_styles($$anchor, $$css$23);
5399
5815
  let layerId = $.prop($$props, "layerId", 8);
5400
5816
  let props = $.prop($$props, "props", 8);
5401
- useInjectCustomizeCss(props());
5817
+ useInjectCustomizeCss(props(), layerId());
5402
5818
  const { attributes, element, handleClick } = useClickable_default(props());
5403
5819
  $.init();
5404
- var li = root$12();
5820
+ var li = root$15();
5405
5821
  var node = $.child(li);
5406
5822
  $.element(node, () => element, false, ($$element, $$anchor$1) => {
5407
5823
  let attributes_1;
@@ -5416,7 +5832,11 @@ function SliderItem($$anchor, $$props) {
5416
5832
  $.append($$anchor$1, fragment);
5417
5833
  });
5418
5834
  $.reset(li);
5419
- $.template_effect(() => $.set_attribute(li, "data-layer-id", layerId()));
5835
+ $.template_effect(($0) => {
5836
+ $.set_attribute(li, "data-layer-id", layerId());
5837
+ $.set_attribute(li, "id", props().id);
5838
+ $.set_class(li, 1, $0, "svelte-1m93md9");
5839
+ }, [() => $.clsx(["slider-item", ...props().classNames ?? []].join(" "))], $.derived_safe_equal);
5420
5840
  $.append($$anchor, li);
5421
5841
  $.pop();
5422
5842
  }
@@ -5463,19 +5883,19 @@ const TEXT_VARIANTS = { size: {
5463
5883
 
5464
5884
  //#endregion
5465
5885
  //#region src/components-flex/text/Text.svelte
5466
- var root$11 = $.template(`<p class="text svelte-vifn7y"><!></p>`);
5467
- const $$css$12 = {
5886
+ var root$14 = $.template(`<p><!></p>`);
5887
+ const $$css$22 = {
5468
5888
  hash: "svelte-vifn7y",
5469
5889
  code: ".text.svelte-vifn7y {margin:0;word-break:break-all;text-decoration:none;}"
5470
5890
  };
5471
5891
  function Text($$anchor, $$props) {
5472
5892
  $.push($$props, false);
5473
- $.append_styles($$anchor, $$css$12);
5893
+ $.append_styles($$anchor, $$css$22);
5474
5894
  const escapedHTML = $.mutable_state();
5475
5895
  const style = $.mutable_state();
5476
5896
  let props = $.prop($$props, "props", 24, () => ({ content: "" }));
5477
5897
  let layerId = $.prop($$props, "layerId", 8, "");
5478
- useInjectCustomizeCss(props());
5898
+ useInjectCustomizeCss(props(), layerId());
5479
5899
  const { brandKit } = useBrandKit();
5480
5900
  const themeStyles = getTextThemeStyles(brandKit);
5481
5901
  const fontFamilyStyles = props().fontFamilyVariant in FONT_FAMILY_VARIANT ? FONT_FAMILY_VARIANT[props().fontFamilyVariant].getProps(brandKit) : FONT_FAMILY_VARIANT.default.getProps(brandKit);
@@ -5545,32 +5965,34 @@ function Text($$anchor, $$props) {
5545
5965
  });
5546
5966
  $.legacy_pre_effect_reset();
5547
5967
  $.init();
5548
- var p = root$11();
5968
+ var p = root$14();
5549
5969
  var node = $.child(p);
5550
5970
  $.html(node, () => $.get(escapedHTML), false, false);
5551
5971
  $.reset(p);
5552
- $.template_effect(() => {
5972
+ $.template_effect(($0) => {
5973
+ $.set_class(p, 1, $0, "svelte-vifn7y");
5974
+ $.set_attribute(p, "id", props().id);
5553
5975
  $.set_attribute(p, "data-layer-id", layerId());
5554
5976
  $.set_style(p, $.get(style));
5555
- });
5977
+ }, [() => $.clsx(["text", ...props().classNames ?? []].join(" "))], $.derived_safe_equal);
5556
5978
  $.append($$anchor, p);
5557
5979
  $.pop();
5558
5980
  }
5559
5981
 
5560
5982
  //#endregion
5561
5983
  //#region src/components-flex/rich-text/RichText.svelte
5562
- var root$10 = $.template(`<div class="rich-text svelte-dxr423"><!></div>`);
5563
- const $$css$11 = {
5984
+ var root$13 = $.template(`<div><!></div>`);
5985
+ const $$css$21 = {
5564
5986
  hash: "svelte-dxr423",
5565
5987
  code: ".rich-text.svelte-dxr423 p {margin:0;word-break:break-all;text-decoration:none;}.rich-text.svelte-dxr423 p + p {margin-top:0.75em;}"
5566
5988
  };
5567
5989
  function RichText($$anchor, $$props) {
5568
5990
  $.push($$props, false);
5569
- $.append_styles($$anchor, $$css$11);
5991
+ $.append_styles($$anchor, $$css$21);
5570
5992
  const style = $.mutable_state();
5571
5993
  let props = $.prop($$props, "props", 24, () => ({ content: "" }));
5572
5994
  let layerId = $.prop($$props, "layerId", 8, "");
5573
- useInjectCustomizeCss(props());
5995
+ useInjectCustomizeCss(props(), layerId());
5574
5996
  const { brandKit } = useBrandKit();
5575
5997
  const themeStyles = getTextThemeStyles(brandKit);
5576
5998
  const fontFamilyStyles = props().fontFamilyVariant in FONT_FAMILY_VARIANT ? FONT_FAMILY_VARIANT[props().fontFamilyVariant].getProps(brandKit) : FONT_FAMILY_VARIANT.default.getProps(brandKit);
@@ -5617,14 +6039,16 @@ function RichText($$anchor, $$props) {
5617
6039
  });
5618
6040
  $.legacy_pre_effect_reset();
5619
6041
  $.init();
5620
- var div = root$10();
6042
+ var div = root$13();
5621
6043
  var node = $.child(div);
5622
6044
  $.html(node, () => props().content, false, false);
5623
6045
  $.reset(div);
5624
- $.template_effect(() => {
6046
+ $.template_effect(($0) => {
6047
+ $.set_attribute(div, "id", props().id);
6048
+ $.set_class(div, 1, $0, "svelte-dxr423");
5625
6049
  $.set_style(div, $.get(style));
5626
6050
  $.set_attribute(div, "data-layer-id", layerId());
5627
- });
6051
+ }, [() => $.clsx(["rich-text", ...props().classNames ?? []].join(" "))], $.derived_safe_equal);
5628
6052
  $.append($$anchor, div);
5629
6053
  $.pop();
5630
6054
  }
@@ -5683,20 +6107,20 @@ const getTextLinkThemeStyles = getPropStyles(callback);
5683
6107
 
5684
6108
  //#endregion
5685
6109
  //#region src/components-flex/text-link/TextLink.svelte
5686
- var root_1$1 = $.template(`<!> <span><!></span>`, 1);
5687
- const $$css$10 = {
6110
+ var root_1$7 = $.template(`<!> <span><!></span>`, 1);
6111
+ const $$css$20 = {
5688
6112
  hash: "svelte-dc9m5n",
5689
6113
  code: ".link.svelte-dc9m5n {-webkit-appearance:none;border:0;background:none;padding:0;display:inline-flex;}.link.svelte-dc9m5n,\n .link.svelte-dc9m5n:visited,\n .link.svelte-dc9m5n:link {color:var(--color);}.link.svelte-dc9m5n:hover {color:var(--hover-color);}.link.svelte-dc9m5n:active {color:var(--active-color);}.link.underline-hover-on.svelte-dc9m5n {text-decoration:none;}.link.underline-hover-on.svelte-dc9m5n:hover {text-decoration:underline;}.link.underline-hover-off.svelte-dc9m5n {text-decoration:underline;}.link.underline-hover-off.svelte-dc9m5n:hover {text-decoration:none;}.link.underline-on.svelte-dc9m5n {text-decoration:underline;}.link.underline-off.svelte-dc9m5n {text-decoration:none;}"
5690
6114
  };
5691
6115
  function TextLink($$anchor, $$props) {
5692
6116
  $.push($$props, false);
5693
- $.append_styles($$anchor, $$css$10);
6117
+ $.append_styles($$anchor, $$css$20);
5694
6118
  const escapedHTML = $.mutable_state();
5695
6119
  const variables$1 = $.mutable_state();
5696
6120
  const style = $.mutable_state();
5697
6121
  let props = $.prop($$props, "props", 24, () => ({ label: "" }));
5698
6122
  let layerId = $.prop($$props, "layerId", 8, "");
5699
- useInjectCustomizeCss(props());
6123
+ useInjectCustomizeCss(props(), layerId());
5700
6124
  const { brandKit } = useBrandKit();
5701
6125
  const { attributes, element, handleClick } = useClickable_default({
5702
6126
  ...props(),
@@ -5749,31 +6173,30 @@ function TextLink($$anchor, $$props) {
5749
6173
  var node = $.first_child(fragment);
5750
6174
  $.element(node, () => element, false, ($$element, $$anchor$1) => {
5751
6175
  let attributes_1;
5752
- $.template_effect(() => attributes_1 = $.set_attributes($$element, attributes_1, {
6176
+ $.template_effect(($0) => attributes_1 = $.set_attributes($$element, attributes_1, {
5753
6177
  ...attributes,
5754
- class: `link ${underlineClass}`,
6178
+ id: props().id,
6179
+ class: $0,
5755
6180
  style: $.get(style),
5756
6181
  "data-layer-id": layerId()
5757
- }, "svelte-dc9m5n"));
6182
+ }, "svelte-dc9m5n"), [() => [`link ${underlineClass}`, ...props().classNames ?? []].join(" ")], $.derived_safe_equal);
5758
6183
  $.event("click", $$element, handleClick);
5759
- var fragment_1 = root_1$1();
6184
+ var fragment_1 = root_1$7();
5760
6185
  var node_1 = $.first_child(fragment_1);
5761
- {
5762
- var consequent = ($$anchor$2) => {
5763
- const expression = $.derived_safe_equal(() => ({
5764
- variant: props().iconVariant,
5765
- color: props().iconColor ?? props().color,
5766
- width: "1em",
5767
- height: "1em"
5768
- }));
5769
- Icon($$anchor$2, { get props() {
5770
- return $.get(expression);
5771
- } });
5772
- };
5773
- $.if(node_1, ($$render) => {
5774
- if (props().isIcon && props().iconVariant) $$render(consequent);
5775
- });
5776
- }
6186
+ var consequent = ($$anchor$2) => {
6187
+ const expression = $.derived_safe_equal(() => ({
6188
+ variant: props().iconVariant,
6189
+ color: props().iconColor ?? props().color,
6190
+ width: "1em",
6191
+ height: "1em"
6192
+ }));
6193
+ Icon($$anchor$2, { get props() {
6194
+ return $.get(expression);
6195
+ } });
6196
+ };
6197
+ $.if(node_1, ($$render) => {
6198
+ if (props().isIcon && props().iconVariant) $$render(consequent);
6199
+ });
5777
6200
  var span = $.sibling(node_1, 2);
5778
6201
  var node_2 = $.child(span);
5779
6202
  $.html(node_2, () => $.get(escapedHTML), false, false);
@@ -5808,47 +6231,45 @@ const TEXT_LINK_UNDERLINE = {
5808
6231
 
5809
6232
  //#endregion
5810
6233
  //#region src/components-flex/background-overlay/BackgroundOverlay.svelte
5811
- var root_1 = $.template(`<div></div>`);
5812
- const $$css$9 = {
6234
+ var root_1$6 = $.template(`<div></div>`);
6235
+ const $$css$19 = {
5813
6236
  hash: "svelte-18nkdjz",
5814
6237
  code: ".v2-background.svelte-18nkdjz {position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0, 0, 0, 0.3);z-index:2147483646;}"
5815
6238
  };
5816
6239
  function BackgroundOverlay($$anchor, $$props) {
5817
6240
  $.push($$props, false);
5818
- $.append_styles($$anchor, $$css$9);
6241
+ $.append_styles($$anchor, $$css$19);
5819
6242
  let backgroundOverlay = $.prop($$props, "backgroundOverlay", 8, false);
5820
6243
  let className = $.prop($$props, "class", 8, void 0);
5821
6244
  const dispatch = createEventDispatcher();
5822
6245
  $.init();
5823
6246
  var fragment = $.comment();
5824
6247
  var node = $.first_child(fragment);
5825
- {
5826
- var consequent = ($$anchor$1) => {
5827
- var div = root_1();
5828
- $.template_effect(($0) => $.set_class(div, 1, $0, "svelte-18nkdjz"), [() => $.clsx(["v2-background", className() || ""].join(" "))], $.derived_safe_equal);
5829
- $.event("click", div, () => dispatch("click"));
5830
- $.append($$anchor$1, div);
5831
- };
5832
- $.if(node, ($$render) => {
5833
- if (backgroundOverlay()) $$render(consequent);
5834
- });
5835
- }
6248
+ var consequent = ($$anchor$1) => {
6249
+ var div = root_1$6();
6250
+ $.template_effect(($0) => $.set_class(div, 1, $0, "svelte-18nkdjz"), [() => $.clsx(["v2-background", className() || ""].join(" "))], $.derived_safe_equal);
6251
+ $.event("click", div, () => dispatch("click"));
6252
+ $.append($$anchor$1, div);
6253
+ };
6254
+ $.if(node, ($$render) => {
6255
+ if (backgroundOverlay()) $$render(consequent);
6256
+ });
5836
6257
  $.append($$anchor, fragment);
5837
6258
  $.pop();
5838
6259
  }
5839
6260
 
5840
6261
  //#endregion
5841
6262
  //#region src/components-flex/modal/Modal.svelte
5842
- var root_2 = $.template(`<!> <!>`, 1);
6263
+ var root_2$4 = $.template(`<!> <!>`, 1);
5843
6264
  var root_4 = $.template(`<div role="dialog" aria-modal="true"><!></div>`);
5844
- var root$9 = $.template(`<!> <!>`, 1);
5845
- const $$css$8 = {
6265
+ var root$12 = $.template(`<!> <!>`, 1);
6266
+ const $$css$18 = {
5846
6267
  hash: "svelte-45ue06",
5847
6268
  code: "* {box-sizing:border-box;}.modal.svelte-45ue06 {position:fixed;z-index:2147483647;display:flex;}.modal.svelte-45ue06 > .button {flex:auto;display:flex;}\n /* PC */\n @media screen and (min-width: 641px) {.modal-bp.svelte-45ue06 {height:var(--modal-bp-height-pc) !important;width:var(--modal-bp-width-pc) !important;top:var(--modal-bp-top-pc) !important;left:var(--modal-bp-left-pc) !important;bottom:var(--modal-bp-bottom-pc) !important;right:var(--modal-bp-right-pc) !important;transform:var(--modal-bp-transform-pc);margin:var(--modal-bp-margin-pc) !important;}.background-bp-pc {display:block;}.background-bp-sp {display:none;}\n }\n\n /* SP */\n @media screen and (max-width: 640px) {.modal-bp.svelte-45ue06 {height:var(--modal-bp-height-sp) !important;width:var(--modal-bp-width-sp) !important;top:var(--modal-bp-top-sp) !important;left:var(--modal-bp-left-sp) !important;bottom:var(--modal-bp-bottom-sp) !important;right:var(--modal-bp-right-sp) !important;transform:var(--modal-bp-transform-sp);margin:var(--modal-bp-margin-sp) !important;}.background-bp-pc {display:none;}.background-bp-sp {display:block;}\n }"
5848
6269
  };
5849
6270
  function Modal($$anchor, $$props) {
5850
6271
  $.push($$props, false);
5851
- $.append_styles($$anchor, $$css$8);
6272
+ $.append_styles($$anchor, $$css$18);
5852
6273
  const close$1 = $.mutable_state();
5853
6274
  const backgroundClick = $.mutable_state();
5854
6275
  const backgroundClickPC = $.mutable_state();
@@ -5858,7 +6279,7 @@ function Modal($$anchor, $$props) {
5858
6279
  let useBreakPoint = $.prop($$props, "useBreakPoint", 8, false);
5859
6280
  let placement = $.prop($$props, "placement", 8);
5860
6281
  let breakPoint = $.prop($$props, "breakPoint", 8);
5861
- let elasticity = $.prop($$props, "elasticity", 8);
6282
+ $.prop($$props, "elasticity", 8);
5862
6283
  let animation = $.prop($$props, "animation", 8, "none");
5863
6284
  let props = $.prop($$props, "props", 24, () => ({}));
5864
6285
  let closeEventName = $.prop($$props, "closeEventName", 8, "");
@@ -5976,6 +6397,7 @@ function Modal($$anchor, $$props) {
5976
6397
  });
5977
6398
  const propsStyle = objToStyle({
5978
6399
  width: props().width,
6400
+ ...toCssPadding(props()),
5979
6401
  ...toCssOverflow(props()),
5980
6402
  ...toCssShadow(props()),
5981
6403
  ...toCssRadius(props()),
@@ -5995,97 +6417,91 @@ function Modal($$anchor, $$props) {
5995
6417
  });
5996
6418
  $.legacy_pre_effect_reset();
5997
6419
  $.init();
5998
- var fragment = root$9();
6420
+ var fragment = root$12();
5999
6421
  $.event("keydown", $.window, function(...$$args) {
6000
6422
  $.get(handle_keydown)?.apply(this, $$args);
6001
6423
  });
6002
6424
  var node = $.first_child(fragment);
6003
- {
6004
- var consequent = ($$anchor$1) => {};
6005
- var alternate = ($$anchor$1, $$elseif) => {
6006
- {
6007
- var consequent_1 = ($$anchor$2) => {
6008
- var fragment_1 = root_2();
6009
- var node_1 = $.first_child(fragment_1);
6010
- BackgroundOverlay(node_1, {
6011
- class: "background-bp-pc",
6012
- get backgroundOverlay() {
6013
- return $.get(backgroundOverlayPC);
6014
- },
6015
- $$events: { click(...$$args) {
6016
- $.get(backgroundClickPC)?.apply(this, $$args);
6017
- } }
6018
- });
6019
- var node_2 = $.sibling(node_1, 2);
6020
- BackgroundOverlay(node_2, {
6021
- class: "background-bp-sp ",
6022
- get backgroundOverlay() {
6023
- return $.get(backgroundOverlaySP);
6024
- },
6025
- $$events: { click(...$$args) {
6026
- $.get(backgroundClickSP)?.apply(this, $$args);
6027
- } }
6028
- });
6029
- $.append($$anchor$2, fragment_1);
6030
- };
6031
- var alternate_1 = ($$anchor$2) => {
6032
- BackgroundOverlay($$anchor$2, {
6033
- get backgroundOverlay() {
6034
- return $.get(backgroundOverlay);
6035
- },
6036
- $$events: { click(...$$args) {
6037
- $.get(backgroundClick)?.apply(this, $$args);
6038
- } }
6039
- });
6040
- };
6041
- $.if($$anchor$1, ($$render) => {
6042
- if (useBreakPoint()) $$render(consequent_1);
6043
- else $$render(alternate_1, false);
6044
- }, $$elseif);
6045
- }
6425
+ var consequent = ($$anchor$1) => {};
6426
+ var alternate = ($$anchor$1, $$elseif) => {
6427
+ var consequent_1 = ($$anchor$2) => {
6428
+ var fragment_1 = root_2$4();
6429
+ var node_1 = $.first_child(fragment_1);
6430
+ BackgroundOverlay(node_1, {
6431
+ class: "background-bp-pc",
6432
+ get backgroundOverlay() {
6433
+ return $.get(backgroundOverlayPC);
6434
+ },
6435
+ $$events: { click(...$$args) {
6436
+ $.get(backgroundClickPC)?.apply(this, $$args);
6437
+ } }
6438
+ });
6439
+ var node_2 = $.sibling(node_1, 2);
6440
+ BackgroundOverlay(node_2, {
6441
+ class: "background-bp-sp ",
6442
+ get backgroundOverlay() {
6443
+ return $.get(backgroundOverlaySP);
6444
+ },
6445
+ $$events: { click(...$$args) {
6446
+ $.get(backgroundClickSP)?.apply(this, $$args);
6447
+ } }
6448
+ });
6449
+ $.append($$anchor$2, fragment_1);
6046
6450
  };
6047
- $.if(node, ($$render) => {
6048
- if (isCanvasPreview()) $$render(consequent);
6049
- else $$render(alternate, false);
6050
- });
6051
- }
6052
- var node_3 = $.sibling(node, 2);
6053
- {
6054
- var consequent_2 = ($$anchor$1) => {
6055
- var div = root_4();
6056
- var node_4 = $.child(div);
6057
- $.slot(node_4, $$props, "default", {}, null);
6058
- $.reset(div);
6059
- $.bind_this(div, ($$value) => $.set(modal, $$value), () => $.get(modal));
6060
- $.template_effect(($0, $1) => {
6061
- $.set_class(div, 1, $0, "svelte-45ue06");
6062
- $.set_attribute(div, "data-layer-id", layerId());
6063
- $.set_style(div, $1);
6064
- }, [() => $.clsx(["modal", useBreakPoint() ? "modal-bp" : ""].join(" ")), () => Array.from(modalStyles).join(";")], $.derived_safe_equal);
6065
- $.transition(1, div, () => customAnimation, () => ({
6066
- transforms: $.get(transforms),
6067
- animationStyle: animation()
6068
- }));
6069
- $.append($$anchor$1, div);
6451
+ var alternate_1 = ($$anchor$2) => {
6452
+ BackgroundOverlay($$anchor$2, {
6453
+ get backgroundOverlay() {
6454
+ return $.get(backgroundOverlay);
6455
+ },
6456
+ $$events: { click(...$$args) {
6457
+ $.get(backgroundClick)?.apply(this, $$args);
6458
+ } }
6459
+ });
6070
6460
  };
6071
- $.if(node_3, ($$render) => {
6072
- if ($.get(visible)) $$render(consequent_2);
6073
- });
6074
- }
6461
+ $.if($$anchor$1, ($$render) => {
6462
+ if (useBreakPoint()) $$render(consequent_1);
6463
+ else $$render(alternate_1, false);
6464
+ }, $$elseif);
6465
+ };
6466
+ $.if(node, ($$render) => {
6467
+ if (isCanvasPreview()) $$render(consequent);
6468
+ else $$render(alternate, false);
6469
+ });
6470
+ var node_3 = $.sibling(node, 2);
6471
+ var consequent_2 = ($$anchor$1) => {
6472
+ var div = root_4();
6473
+ var node_4 = $.child(div);
6474
+ $.slot(node_4, $$props, "default", {}, null);
6475
+ $.reset(div);
6476
+ $.bind_this(div, ($$value) => $.set(modal, $$value), () => $.get(modal));
6477
+ $.template_effect(($0, $1) => {
6478
+ $.set_class(div, 1, $0, "svelte-45ue06");
6479
+ $.set_attribute(div, "data-layer-id", layerId());
6480
+ $.set_style(div, $1);
6481
+ }, [() => $.clsx(["modal", useBreakPoint() ? "modal-bp" : ""].join(" ")), () => Array.from(modalStyles).join(";")], $.derived_safe_equal);
6482
+ $.transition(1, div, () => customAnimation, () => ({
6483
+ transforms: $.get(transforms),
6484
+ animationStyle: animation()
6485
+ }));
6486
+ $.append($$anchor$1, div);
6487
+ };
6488
+ $.if(node_3, ($$render) => {
6489
+ if ($.get(visible)) $$render(consequent_2);
6490
+ });
6075
6491
  $.append($$anchor, fragment);
6076
6492
  $.pop();
6077
6493
  }
6078
6494
 
6079
6495
  //#endregion
6080
6496
  //#region src/components-flex/code/Code.svelte
6081
- var root$8 = $.template(`<div class="code svelte-igivoz"><!></div>`);
6082
- const $$css$7 = {
6497
+ var root$11 = $.template(`<div><!></div>`);
6498
+ const $$css$17 = {
6083
6499
  hash: "svelte-igivoz",
6084
6500
  code: ".code.svelte-igivoz {flex-grow:1;flex-shrink:0;align-self:stretch;}\n /*{@html props.rawCss}*/"
6085
6501
  };
6086
6502
  function Code($$anchor, $$props) {
6087
6503
  $.push($$props, false);
6088
- $.append_styles($$anchor, $$css$7);
6504
+ $.append_styles($$anchor, $$css$17);
6089
6505
  let props = $.prop($$props, "props", 24, () => ({}));
6090
6506
  let layerId = $.prop($$props, "layerId", 8, "");
6091
6507
  function unescapeBraces(str) {
@@ -6118,11 +6534,15 @@ function Code($$anchor, $$props) {
6118
6534
  };
6119
6535
  });
6120
6536
  $.init();
6121
- var div = root$8();
6537
+ var div = root$11();
6122
6538
  var node = $.child(div);
6123
6539
  $.html(node, () => props().rawHtml, false, false);
6124
6540
  $.reset(div);
6125
- $.template_effect(() => $.set_attribute(div, "data-layer-id", layerId()));
6541
+ $.template_effect(($0) => {
6542
+ $.set_attribute(div, "id", props().id);
6543
+ $.set_class(div, 1, $0, "svelte-igivoz");
6544
+ $.set_attribute(div, "data-layer-id", layerId());
6545
+ }, [() => $.clsx(["code", ...props().classNames ?? []].join(" "))], $.derived_safe_equal);
6126
6546
  $.append($$anchor, div);
6127
6547
  $.pop();
6128
6548
  }
@@ -6133,21 +6553,21 @@ const LIST_ITEM_CONTEXT_KEY = "ListItemContext";
6133
6553
 
6134
6554
  //#endregion
6135
6555
  //#region src/components-flex/list/ListItem.svelte
6136
- var root$7 = $.template(`<li class="list-item svelte-b4b4gh"><!></li>`);
6137
- const $$css$6 = {
6556
+ var root$10 = $.template(`<li><!></li>`);
6557
+ const $$css$16 = {
6138
6558
  hash: "svelte-b4b4gh",
6139
6559
  code: ".list-item.svelte-b4b4gh {margin:0;padding:0;}.list-item-inner.svelte-b4b4gh {display:flex;align-items:center;width:100%;text-decoration:none;color:inherit;border:0;background:none;padding:0;margin:0;text-align:left;-webkit-appearance:none;}.list-item-inner.svelte-b4b4gh:hover {opacity:0.8;}.list-item.svelte-b4b4gh:not(:first-child) {border-top-width:var(--list-item-border-width);border-top-style:var(--list-item-border-style);border-top-color:var(--list-item-border-color);}"
6140
6560
  };
6141
6561
  function ListItem($$anchor, $$props) {
6142
6562
  $.push($$props, false);
6143
- $.append_styles($$anchor, $$css$6);
6563
+ $.append_styles($$anchor, $$css$16);
6144
6564
  const variables$1 = $.mutable_state();
6145
6565
  const style = $.mutable_state();
6146
6566
  const innerStyle = $.mutable_state();
6147
6567
  let layerId = $.prop($$props, "layerId", 8);
6148
6568
  let props = $.prop($$props, "props", 8);
6149
- let item = $.prop($$props, "item", 8);
6150
- useInjectCustomizeCss(props());
6569
+ $.prop($$props, "item", 8);
6570
+ useInjectCustomizeCss(props(), layerId());
6151
6571
  const { attributes, element, handleClick } = useClickable_default(props());
6152
6572
  const context = getContext(LIST_ITEM_CONTEXT_KEY) || {};
6153
6573
  $.legacy_pre_effect(() => {}, () => {
@@ -6171,7 +6591,7 @@ function ListItem($$anchor, $$props) {
6171
6591
  });
6172
6592
  $.legacy_pre_effect_reset();
6173
6593
  $.init();
6174
- var li = root$7();
6594
+ var li = root$10();
6175
6595
  var node = $.child(li);
6176
6596
  $.element(node, () => element, false, ($$element, $$anchor$1) => {
6177
6597
  let attributes_1;
@@ -6187,24 +6607,26 @@ function ListItem($$anchor, $$props) {
6187
6607
  $.append($$anchor$1, fragment);
6188
6608
  });
6189
6609
  $.reset(li);
6190
- $.template_effect(() => {
6610
+ $.template_effect(($0) => {
6611
+ $.set_attribute(li, "id", props().id);
6612
+ $.set_class(li, 1, $0, "svelte-b4b4gh");
6191
6613
  $.set_attribute(li, "data-layer-id", layerId());
6192
6614
  $.set_style(li, $.get(style));
6193
- });
6615
+ }, [() => $.clsx(["list-item", ...props().classNames ?? []].join(" "))], $.derived_safe_equal);
6194
6616
  $.append($$anchor, li);
6195
6617
  $.pop();
6196
6618
  }
6197
6619
 
6198
6620
  //#endregion
6199
6621
  //#region src/components-flex/list/List.svelte
6200
- var root$6 = $.template(`<ul class="list svelte-v2vy6p"><!></ul>`);
6201
- const $$css$5 = {
6622
+ var root$9 = $.template(`<ul><!></ul>`);
6623
+ const $$css$15 = {
6202
6624
  hash: "svelte-v2vy6p",
6203
6625
  code: ".list.svelte-v2vy6p {padding:0;margin:0;list-style:none;display:flex;flex-direction:column;--border-width: 0;--border-style: solit;--border-color: rgba(255, 255, 255, 0);border-top-width:var(--border-width);border-top-style:var(--border-style);border-top-color:var(--border-color);border-bottom-width:var(--border-width);border-bottom-style:var(--border-style);border-bottom-color:var(--border-color);}"
6204
6626
  };
6205
6627
  function List($$anchor, $$props) {
6206
6628
  $.push($$props, false);
6207
- $.append_styles($$anchor, $$css$5);
6629
+ $.append_styles($$anchor, $$css$15);
6208
6630
  const variables$1 = $.mutable_state();
6209
6631
  const actionTableData = $.mutable_state();
6210
6632
  const items = $.mutable_state();
@@ -6212,7 +6634,7 @@ function List($$anchor, $$props) {
6212
6634
  let layerId = $.prop($$props, "layerId", 8);
6213
6635
  let props = $.prop($$props, "props", 8);
6214
6636
  const { brandKit } = useBrandKit();
6215
- useInjectCustomizeCss(props());
6637
+ useInjectCustomizeCss(props(), layerId());
6216
6638
  const vars = getVariables();
6217
6639
  setContext(LIST_ITEM_CONTEXT_KEY, {
6218
6640
  paddingTop: props().itemPaddingTop,
@@ -6246,14 +6668,16 @@ function List($$anchor, $$props) {
6246
6668
  });
6247
6669
  $.legacy_pre_effect_reset();
6248
6670
  $.init();
6249
- var ul = root$6();
6671
+ var ul = root$9();
6250
6672
  var node = $.child(ul);
6251
6673
  $.slot(node, $$props, "default", {}, null);
6252
6674
  $.reset(ul);
6253
- $.template_effect(() => {
6675
+ $.template_effect(($0) => {
6676
+ $.set_attribute(ul, "id", props().id);
6677
+ $.set_class(ul, 1, $0, "svelte-v2vy6p");
6254
6678
  $.set_attribute(ul, "data-layer-id", layerId());
6255
6679
  $.set_style(ul, $.get(style));
6256
- });
6680
+ }, [() => $.clsx(["list", ...props().classNames ?? []].join(" "))], $.derived_safe_equal);
6257
6681
  $.append($$anchor, ul);
6258
6682
  $.pop();
6259
6683
  }
@@ -6283,19 +6707,19 @@ function splitNumberAndUnit(value) {
6283
6707
 
6284
6708
  //#endregion
6285
6709
  //#region src/components-flex/multi-column/MultiColumn.svelte
6286
- var root$5 = $.template(`<ul class="list svelte-aoppwp"><!></ul>`);
6287
- const $$css$4 = {
6288
- hash: "svelte-aoppwp",
6289
- code: ".list.svelte-aoppwp {padding:0;margin:0;list-style:none;display:flex;flex-direction:row;}"
6710
+ var root$8 = $.template(`<ul><!></ul>`);
6711
+ const $$css$14 = {
6712
+ hash: "svelte-9pwfkr",
6713
+ code: ".multi-column.svelte-9pwfkr {padding:0;margin:0;list-style:none;display:flex;flex-direction:row;}"
6290
6714
  };
6291
6715
  function MultiColumn($$anchor, $$props) {
6292
6716
  $.push($$props, false);
6293
- $.append_styles($$anchor, $$css$4);
6717
+ $.append_styles($$anchor, $$css$14);
6294
6718
  const style = $.mutable_state();
6295
6719
  let layerId = $.prop($$props, "layerId", 8);
6296
6720
  let props = $.prop($$props, "props", 8);
6297
6721
  const { brandKit } = useBrandKit();
6298
- useInjectCustomizeCss(props());
6722
+ useInjectCustomizeCss(props(), layerId());
6299
6723
  let listGap = (() => {
6300
6724
  if (!props().gap) return "0";
6301
6725
  const { number, unit } = splitNumberAndUnit(props().gap);
@@ -6326,33 +6750,35 @@ function MultiColumn($$anchor, $$props) {
6326
6750
  });
6327
6751
  $.legacy_pre_effect_reset();
6328
6752
  $.init();
6329
- var ul = root$5();
6753
+ var ul = root$8();
6330
6754
  var node = $.child(ul);
6331
6755
  $.slot(node, $$props, "default", {}, null);
6332
6756
  $.reset(ul);
6333
- $.template_effect(() => {
6757
+ $.template_effect(($0) => {
6334
6758
  $.set_attribute(ul, "data-layer-id", layerId());
6759
+ $.set_attribute(ul, "id", props().id);
6760
+ $.set_class(ul, 1, $0, "svelte-9pwfkr");
6335
6761
  $.set_style(ul, $.get(style));
6336
- });
6762
+ }, [() => $.clsx(["multi-column", ...props().classNames ?? []].join(" "))], $.derived_safe_equal);
6337
6763
  $.append($$anchor, ul);
6338
6764
  $.pop();
6339
6765
  }
6340
6766
 
6341
6767
  //#endregion
6342
6768
  //#region src/components-flex/multi-column/MultiColumnItem.svelte
6343
- var root$4 = $.template(`<li class="multi-column-item svelte-18bwzrs"><!></li>`);
6344
- const $$css$3 = {
6769
+ var root$7 = $.template(`<li><!></li>`);
6770
+ const $$css$13 = {
6345
6771
  hash: "svelte-18bwzrs",
6346
6772
  code: ".multi-column-item.svelte-18bwzrs {margin:0;width:100%;padding-top:0;padding-bottom:0;padding-left:var(--multi-column-item-padding);padding-right:var(--multi-column-item-padding);}.multi-column-item-inner.svelte-18bwzrs {display:flex;flex-direction:column;align-items:center;gap:var(--multi-column-item-gap);width:100%;text-decoration:none;border:0;background:none;margin:0;text-align:left;-webkit-appearance:none;padding-top:var(--multi-column-item-padding-top);padding-left:var(--multi-column-item-padding-left);padding-right:var(--multi-column-item-padding-right);padding-bottom:var(--multi-column-item-padding-bottom);}.multi-column-item-inner.svelte-18bwzrs:hover {opacity:0.8;}.multi-column-item.svelte-18bwzrs:not(:first-child) {border-left-width:var(--multi-column-item-border-width);border-left-style:var(--multi-column-item-border-style);border-left-color:var(--multi-column-item-border-color);}"
6347
6773
  };
6348
6774
  function MultiColumnItem($$anchor, $$props) {
6349
6775
  $.push($$props, false);
6350
- $.append_styles($$anchor, $$css$3);
6776
+ $.append_styles($$anchor, $$css$13);
6351
6777
  const variables$1 = $.mutable_state();
6352
6778
  const style = $.mutable_state();
6353
6779
  let layerId = $.prop($$props, "layerId", 8);
6354
6780
  let props = $.prop($$props, "props", 8);
6355
- useInjectCustomizeCss(props());
6781
+ useInjectCustomizeCss(props(), layerId());
6356
6782
  const { attributes, element, handleClick } = useClickable_default(props());
6357
6783
  const context = getContext(MULTI_COLUMN_ITEM_CONTEXT_KEY) || {};
6358
6784
  $.legacy_pre_effect(() => {}, () => {
@@ -6375,7 +6801,7 @@ function MultiColumnItem($$anchor, $$props) {
6375
6801
  });
6376
6802
  $.legacy_pre_effect_reset();
6377
6803
  $.init();
6378
- var li = root$4();
6804
+ var li = root$7();
6379
6805
  var node = $.child(li);
6380
6806
  $.element(node, () => element, false, ($$element, $$anchor$1) => {
6381
6807
  let attributes_1;
@@ -6390,28 +6816,30 @@ function MultiColumnItem($$anchor, $$props) {
6390
6816
  $.append($$anchor$1, fragment);
6391
6817
  });
6392
6818
  $.reset(li);
6393
- $.template_effect(() => {
6819
+ $.template_effect(($0) => {
6820
+ $.set_attribute(li, "id", props().id);
6821
+ $.set_class(li, 1, $0, "svelte-18bwzrs");
6394
6822
  $.set_attribute(li, "data-layer-id", layerId());
6395
6823
  $.set_style(li, $.get(style));
6396
- });
6824
+ }, [() => $.clsx(["multi-column-item", ...props().classNames ?? []].join(" "))], $.derived_safe_equal);
6397
6825
  $.append($$anchor, li);
6398
6826
  $.pop();
6399
6827
  }
6400
6828
 
6401
6829
  //#endregion
6402
6830
  //#region src/components-flex/youtube/Youtube.svelte
6403
- var root$3 = $.template(`<div class="youtube svelte-odfkc2"><div class="youtube-player"></div></div>`);
6404
- const $$css$2 = {
6831
+ var root$6 = $.template(`<div><div class="youtube-player"></div></div>`);
6832
+ const $$css$12 = {
6405
6833
  hash: "svelte-odfkc2",
6406
6834
  code: ".youtube.svelte-odfkc2 {position:relative;aspect-ratio:16 / 9;width:100%;border-radius:3px;}.youtube.svelte-odfkc2 iframe {position:absolute;width:100%;height:100%;object-fit:cover;}"
6407
6835
  };
6408
6836
  function Youtube($$anchor, $$props) {
6409
6837
  $.push($$props, false);
6410
- $.append_styles($$anchor, $$css$2);
6838
+ $.append_styles($$anchor, $$css$12);
6411
6839
  const style = $.mutable_state();
6412
6840
  let props = $.prop($$props, "props", 24, () => ({}));
6413
6841
  let layerId = $.prop($$props, "layerId", 8, "");
6414
- useInjectCustomizeCss(props());
6842
+ useInjectCustomizeCss(props(), layerId());
6415
6843
  if (!window.YT) {
6416
6844
  const tag = document.createElement("script");
6417
6845
  tag.src = "https://www.youtube.com/iframe_api";
@@ -6487,35 +6915,37 @@ function Youtube($$anchor, $$props) {
6487
6915
  });
6488
6916
  $.legacy_pre_effect_reset();
6489
6917
  $.init();
6490
- var div = root$3();
6918
+ var div = root$6();
6491
6919
  var div_1 = $.child(div);
6492
6920
  $.bind_this(div_1, ($$value) => $.set(playerRef, $$value), () => $.get(playerRef));
6493
6921
  $.reset(div);
6494
- $.template_effect(() => {
6922
+ $.template_effect(($0) => {
6923
+ $.set_attribute(div, "id", props().id);
6924
+ $.set_class(div, 1, $0, "svelte-odfkc2");
6495
6925
  $.set_style(div, $.get(style));
6496
6926
  $.set_attribute(div, "data-layer-id", layerId());
6497
- });
6927
+ }, [() => $.clsx(["youtube", ...props().classNames ?? []].join(" "))], $.derived_safe_equal);
6498
6928
  $.append($$anchor, div);
6499
6929
  $.pop();
6500
6930
  }
6501
6931
 
6502
6932
  //#endregion
6503
6933
  //#region src/components-flex/count-down/CountDown.svelte
6504
- var root$2 = $.template(`<div class="countdown svelte-1n395il"><!></div>`);
6505
- const $$css$1 = {
6934
+ var root$5 = $.template(`<div><!></div>`);
6935
+ const $$css$11 = {
6506
6936
  hash: "svelte-1n395il",
6507
6937
  code: ".countdown.svelte-1n395il {display:flex;align-items:center;gap:4px;}"
6508
6938
  };
6509
6939
  function CountDown($$anchor, $$props) {
6510
6940
  $.push($$props, false);
6511
- $.append_styles($$anchor, $$css$1);
6941
+ $.append_styles($$anchor, $$css$11);
6512
6942
  const day = $.mutable_state();
6513
6943
  const hour = $.mutable_state();
6514
6944
  const min = $.mutable_state();
6515
6945
  const sec = $.mutable_state();
6516
6946
  let props = $.prop($$props, "props", 24, () => ({}));
6517
6947
  let layerId = $.prop($$props, "layerId", 8, "");
6518
- useInjectCustomizeCss(props());
6948
+ useInjectCustomizeCss(props(), layerId());
6519
6949
  let remainingTime = $.mutable_state();
6520
6950
  let timeLimit = props().timeLimit ? new Date(props().timeLimit) : /* @__PURE__ */ new Date();
6521
6951
  function calcRemainingTime(limit) {
@@ -6564,7 +6994,7 @@ function CountDown($$anchor, $$props) {
6564
6994
  });
6565
6995
  $.legacy_pre_effect_reset();
6566
6996
  $.init();
6567
- var div = root$2();
6997
+ var div = root$5();
6568
6998
  var node = $.child(div);
6569
6999
  $.slot(node, $$props, "default", {
6570
7000
  get day() {
@@ -6581,15 +7011,19 @@ function CountDown($$anchor, $$props) {
6581
7011
  }
6582
7012
  }, null);
6583
7013
  $.reset(div);
6584
- $.template_effect(() => $.set_attribute(div, "data-layer-id", layerId()));
7014
+ $.template_effect(($0) => {
7015
+ $.set_attribute(div, "id", props().id);
7016
+ $.set_class(div, 1, $0, "svelte-1n395il");
7017
+ $.set_attribute(div, "data-layer-id", layerId());
7018
+ }, [() => $.clsx(["countdown", ...props().classNames ?? []].join(" "))], $.derived_safe_equal);
6585
7019
  $.append($$anchor, div);
6586
7020
  $.pop();
6587
7021
  }
6588
7022
 
6589
7023
  //#endregion
6590
7024
  //#region src/hooks/useText.ts
6591
- const useText = (props) => {
6592
- useInjectCustomizeCss(props);
7025
+ const useText = (props, layerId) => {
7026
+ useInjectCustomizeCss(props, layerId);
6593
7027
  const { brandKit } = useBrandKit();
6594
7028
  const themeStyles = getTextThemeStyles(brandKit);
6595
7029
  const fontFamilyStyles = props.fontFamilyVariant in FONT_FAMILY_VARIANT ? FONT_FAMILY_VARIANT[props.fontFamilyVariant].getProps(brandKit) : FONT_FAMILY_VARIANT.default.getProps(brandKit);
@@ -6645,7 +7079,7 @@ const useText = (props) => {
6645
7079
 
6646
7080
  //#endregion
6647
7081
  //#region src/components-flex/count-down/CountDownValue.svelte
6648
- var root$1 = $.template(`<span class="count-down-value"> </span>`);
7082
+ var root$4 = $.template(`<span> </span>`);
6649
7083
  function CountDownValue($$anchor, $$props) {
6650
7084
  $.push($$props, false);
6651
7085
  const [$$stores, $$cleanup] = $.setup_stores();
@@ -6654,7 +7088,7 @@ function CountDownValue($$anchor, $$props) {
6654
7088
  let props = $.prop($$props, "props", 24, () => ({}));
6655
7089
  let layerId = $.prop($$props, "layerId", 8, "");
6656
7090
  let countdownStore = getContext("countdownStore");
6657
- let { style } = useText(props());
7091
+ let { style } = useText(props(), layerId());
6658
7092
  $.legacy_pre_effect(() => ($countdownStore(), $.deep_read_state(props())), () => {
6659
7093
  $.set(value, (() => {
6660
7094
  const { day, hour, min, sec } = $countdownStore();
@@ -6669,14 +7103,16 @@ function CountDownValue($$anchor, $$props) {
6669
7103
  });
6670
7104
  $.legacy_pre_effect_reset();
6671
7105
  $.init();
6672
- var span = root$1();
7106
+ var span = root$4();
6673
7107
  $.set_style(span, style);
6674
7108
  var text = $.child(span, true);
6675
7109
  $.reset(span);
6676
- $.template_effect(() => {
7110
+ $.template_effect(($0) => {
7111
+ $.set_attribute(span, "id", props().id);
7112
+ $.set_class(span, 1, $0);
6677
7113
  $.set_attribute(span, "data-layer-id", layerId());
6678
7114
  $.set_text(text, $.get(value));
6679
- });
7115
+ }, [() => $.clsx(["count-down-value", ...props().classNames ?? []].join(" "))], $.derived_safe_equal);
6680
7116
  $.append($$anchor, span);
6681
7117
  $.pop();
6682
7118
  $$cleanup();
@@ -6684,17 +7120,17 @@ function CountDownValue($$anchor, $$props) {
6684
7120
 
6685
7121
  //#endregion
6686
7122
  //#region src/components-flex/clip-copy/ClipCopy.svelte
6687
- var root = $.template(`<div class="clipboard svelte-orhp4c"><button class="clipboard-button svelte-orhp4c"><!></button> <span class="clipboard-tooltip svelte-orhp4c">コピーしました</span></div>`);
6688
- const $$css = {
7123
+ var root$3 = $.template(`<div><button class="clipboard-button svelte-orhp4c"><!></button> <span class="clipboard-tooltip svelte-orhp4c">コピーしました</span></div>`);
7124
+ const $$css$10 = {
6689
7125
  hash: "svelte-orhp4c",
6690
7126
  code: ".clipboard.svelte-orhp4c {position:relative;display:inline-flex;}.clipboard-button.svelte-orhp4c {position:relative;display:inline-flex;align-items:center;white-space:nowrap;gap:12px;background:none;border:0;transition:0.12s;cursor:pointer;}.clipboard-button.svelte-orhp4c:hover {opacity:0.8;}.clipboard-button.svelte-orhp4c:active {opacity:0.6;}.clipboard-tooltip.svelte-orhp4c {position:absolute;top:-8px;left:50%;display:block;transform:translate(-50%, -100%);padding:4px 10px;background-color:#333333;color:#ffffff;font-size:11px;font-weight:bold;border-radius:4px;transition:transform 0.2s ease-out;white-space:nowrap;pointer-events:none;}.clipboard-tooltip.svelte-orhp4c:after {content:'';display:block;position:absolute;bottom:0;left:50%;width:8px;height:8px;background-color:#333333;border-radius:1px;transform:translate(-50%, 40%) rotate(45deg);}.clipboard-tooltip[aria-hidden='true'].svelte-orhp4c {opacity:0;transform:translate(-50%, -80%);}"
6691
7127
  };
6692
7128
  function ClipCopy($$anchor, $$props) {
6693
7129
  $.push($$props, false);
6694
- $.append_styles($$anchor, $$css);
7130
+ $.append_styles($$anchor, $$css$10);
6695
7131
  let props = $.prop($$props, "props", 24, () => ({}));
6696
7132
  let layerId = $.prop($$props, "layerId", 8, "");
6697
- useInjectCustomizeCss(props());
7133
+ useInjectCustomizeCss(props(), layerId());
6698
7134
  let buttonElement = $.mutable_state();
6699
7135
  let showTooltip = $.mutable_state(false);
6700
7136
  const handleClick = (e) => {
@@ -6709,7 +7145,7 @@ function ClipCopy($$anchor, $$props) {
6709
7145
  }, 3e3);
6710
7146
  };
6711
7147
  $.init();
6712
- var div = root();
7148
+ var div = root$3();
6713
7149
  var button = $.child(div);
6714
7150
  var node = $.child(button);
6715
7151
  $.slot(node, $$props, "default", {}, null);
@@ -6717,15 +7153,950 @@ function ClipCopy($$anchor, $$props) {
6717
7153
  $.bind_this(button, ($$value) => $.set(buttonElement, $$value), () => $.get(buttonElement));
6718
7154
  var span = $.sibling(button, 2);
6719
7155
  $.reset(div);
6720
- $.template_effect(() => {
7156
+ $.template_effect(($0) => {
7157
+ $.set_attribute(div, "id", props().id);
7158
+ $.set_class(div, 1, $0, "svelte-orhp4c");
6721
7159
  $.set_attribute(div, "data-layer-id", layerId());
6722
7160
  $.set_attribute(span, "aria-hidden", !$.get(showTooltip));
6723
- });
7161
+ }, [() => $.clsx(["clipboard", ...props().classNames ?? []].join(" "))], $.derived_safe_equal);
6724
7162
  $.event("click", button, handleClick);
6725
7163
  $.append($$anchor, div);
6726
7164
  $.pop();
6727
7165
  }
6728
7166
 
7167
+ //#endregion
7168
+ //#region src/components-flex/embed/Embed.svelte
7169
+ var root$2 = $.template(`<div><!></div>`);
7170
+ const $$css$9 = {
7171
+ hash: "svelte-13tkwh0",
7172
+ code: ".embed.svelte-13tkwh0 {width:var(--width);height:var(--height);aspect-ratio:var(--aspect);}.embed.svelte-13tkwh0 iframe {vertical-align:bottom;max-width:100%;width:var(--width) !important;height:var(--height) !important;aspect-ratio:var(--aspect) !important;}"
7173
+ };
7174
+ function Embed($$anchor, $$props) {
7175
+ $.push($$props, false);
7176
+ $.append_styles($$anchor, $$css$9);
7177
+ const variables$1 = $.mutable_state();
7178
+ const styleObj = $.mutable_state();
7179
+ const style = $.mutable_state();
7180
+ let props = $.prop($$props, "props", 24, () => ({}));
7181
+ let layerId = $.prop($$props, "layerId", 8, "");
7182
+ useInjectCustomizeCss(props(), layerId());
7183
+ const aspectVariantStyles = ASPECT_VARIANT[props().aspectVariant]?.getProps();
7184
+ const width = props().width ?? "100%";
7185
+ $.legacy_pre_effect(() => $.deep_read_state(props()), () => {
7186
+ $.set(variables$1, {
7187
+ "--width": width,
7188
+ "--height": props().height ?? "auto",
7189
+ "--aspect": props().aspect ?? aspectVariantStyles?.aspect
7190
+ });
7191
+ });
7192
+ $.legacy_pre_effect(() => ($.deep_read_state(props()), $.get(variables$1)), () => {
7193
+ $.set(styleObj, {
7194
+ ...toCssCommon(props()),
7195
+ ...$.get(variables$1)
7196
+ });
7197
+ });
7198
+ $.legacy_pre_effect(() => $.get(styleObj), () => {
7199
+ $.set(style, objToStyle($.get(styleObj)));
7200
+ });
7201
+ $.legacy_pre_effect_reset();
7202
+ $.init();
7203
+ var div = root$2();
7204
+ var node = $.child(div);
7205
+ $.html(node, () => props().iframe, false, false);
7206
+ $.reset(div);
7207
+ $.template_effect(($0) => {
7208
+ $.set_attribute(div, "id", props().id);
7209
+ $.set_style(div, $.get(style));
7210
+ $.set_class(div, 1, $0, "svelte-13tkwh0");
7211
+ $.set_attribute(div, "data-layer-id", layerId());
7212
+ }, [() => $.clsx(["embed", ...props().classNames ?? []].join(" "))], $.derived_safe_equal);
7213
+ $.append($$anchor, div);
7214
+ $.pop();
7215
+ }
7216
+
7217
+ //#endregion
7218
+ //#region src/components-flex/form/Form.svelte
7219
+ var root$1 = $.template(`<div><!></div>`);
7220
+ const $$css$8 = {
7221
+ hash: "svelte-nekp9e",
7222
+ code: ".form.svelte-nekp9e {width:100%;}"
7223
+ };
7224
+ function Form($$anchor, $$props) {
7225
+ $.push($$props, false);
7226
+ $.append_styles($$anchor, $$css$8);
7227
+ let props = $.prop($$props, "props", 24, () => ({}));
7228
+ let layerId = $.prop($$props, "layerId", 8, "");
7229
+ useInjectCustomizeCss(props(), layerId());
7230
+ $.init();
7231
+ var div = root$1();
7232
+ var node = $.child(div);
7233
+ $.slot(node, $$props, "default", {}, null);
7234
+ $.reset(div);
7235
+ $.template_effect(($0) => {
7236
+ $.set_attribute(div, "id", props().id);
7237
+ $.set_class(div, 1, $0, "svelte-nekp9e");
7238
+ $.set_attribute(div, "data-layer-id", layerId());
7239
+ }, [() => $.clsx(["form", ...props().classNames ?? []].join(" "))], $.derived_safe_equal);
7240
+ $.append($$anchor, div);
7241
+ $.pop();
7242
+ }
7243
+
7244
+ //#endregion
7245
+ //#region src/components-flex/form/styles.ts
7246
+ const getFormFieldLabelThemeStyles = getPropStyles(({ brandKit }) => {
7247
+ return {
7248
+ default: { color: brandKit.color_text_primary },
7249
+ gray: { color: brandKit.color_text_secondary },
7250
+ brand: { color: brandKit.color_brand }
7251
+ };
7252
+ });
7253
+ const FORM_FIELD_LABEL_SIZE_STYLES = {
7254
+ small: { fontSize: "12px" },
7255
+ medium: { fontSize: "14px" },
7256
+ large: { fontSize: "16px" }
7257
+ };
7258
+
7259
+ //#endregion
7260
+ //#region src/components-flex/form/FormField.svelte
7261
+ var root_2$3 = $.template(`<span class="field-required svelte-1maygd6">*</span>`);
7262
+ var root_1$5 = $.template(`<dt class="svelte-1maygd6"><span> </span> <!></dt>`);
7263
+ var root_3 = $.template(`<p class="field-error svelte-1maygd6"> </p>`);
7264
+ var root = $.template(`<dl><!> <dd class="svelte-1maygd6"><!> <!></dd></dl>`);
7265
+ const $$css$7 = {
7266
+ hash: "svelte-1maygd6",
7267
+ code: ".field.svelte-1maygd6 {margin:0;padding:0;border:0;display:flex;width:100%;flex-direction:var(--form-field-direction);gap:var(--form-field-gap);}.field.svelte-1maygd6 > dt:where(.svelte-1maygd6) {position:relative;font-weight:bold;font-size:var(--form-field-label-font-size);width:var(--form-field-label-width);flex-shrink:0;color:var(--form-field-label-color);display:inline-flex;gap:0.4em;}.field-required.svelte-1maygd6 {flex-shrink:0;font-size:0.6em;color:var(--danger-color);}.field.svelte-1maygd6 > dd:where(.svelte-1maygd6) {position:relative;margin:0;flex-grow:1;}.field-error.svelte-1maygd6 {position:absolute;top:calc(100% + 8px);left:0;display:inline-flex;color:var(--danger-color);border:1px solid var(--danger-color);border-radius:4px;background-color:#fff;padding:6px 12px;font-size:12px;margin:0;z-index:10;}.field-error.svelte-1maygd6::after {content:'';display:block;position:absolute;top:0;left:8px;width:8px;height:8px;transform:rotate(45deg) translateY(-80%);border-top:1px solid var(--danger-color);border-left:1px solid var(--danger-color);border-radius:1px;background-color:#fff;}"
7268
+ };
7269
+ function FormField($$anchor, $$props) {
7270
+ $.push($$props, false);
7271
+ $.append_styles($$anchor, $$css$7);
7272
+ const variables$1 = $.mutable_state();
7273
+ const style = $.mutable_state();
7274
+ let props = $.prop($$props, "props", 24, () => ({}));
7275
+ let layerId = $.prop($$props, "layerId", 8, "");
7276
+ useInjectCustomizeCss(props(), layerId());
7277
+ const { brandKit } = useBrandKit();
7278
+ let registeredFieldName = $.mutable_state("");
7279
+ let errorMessage = $.mutable_state(null);
7280
+ let isShowErrorMessage = $.mutable_state(false);
7281
+ const theme = getFormFieldLabelThemeStyles(brandKit)[props().labelTheme ?? "gray"];
7282
+ const size = FORM_FIELD_LABEL_SIZE_STYLES[props().labelSize ?? "medium"];
7283
+ onDestory(() => {
7284
+ if (!$.get(registeredFieldName)) return;
7285
+ unregisterFormField($.get(registeredFieldName));
7286
+ });
7287
+ $.legacy_pre_effect(() => $.deep_read_state(props()), () => {
7288
+ $.set(variables$1, {
7289
+ "--danger-color": brandKit.color_danger,
7290
+ "--form-field-direction": props().direction ?? "column",
7291
+ "--form-field-gap": props().gap ?? "4px",
7292
+ "--form-field-label-width": props().labelWidth ?? "100%",
7293
+ "--form-field-label-font-size": size.fontSize,
7294
+ "--form-field-label-color": theme.color
7295
+ });
7296
+ });
7297
+ $.legacy_pre_effect(() => $.get(variables$1), () => {
7298
+ $.set(style, objToStyle({ ...$.get(variables$1) }));
7299
+ });
7300
+ $.legacy_pre_effect(() => ($.deep_read_state(props()), $.get(registeredFieldName), formStore), () => {
7301
+ if (props().fieldName) {
7302
+ if ($.get(registeredFieldName) && $.get(registeredFieldName) !== props().fieldName) unregisterFormField($.get(registeredFieldName));
7303
+ registerFormField({
7304
+ type: props().fieldType,
7305
+ name: props().fieldName,
7306
+ defaultValue: props().defaultValue,
7307
+ required: props().required,
7308
+ validations: props().validations,
7309
+ isIdentify: props().isIdentify
7310
+ });
7311
+ formStore.subscribe(($store) => {
7312
+ $.set(errorMessage, $store.states[props().fieldName]?.errorMessage ?? null);
7313
+ $.set(isShowErrorMessage, $store.states[props().fieldName]?.isTouched ?? false);
7314
+ });
7315
+ $.set(registeredFieldName, props().fieldName);
7316
+ }
7317
+ });
7318
+ $.legacy_pre_effect_reset();
7319
+ $.init();
7320
+ var dl = root();
7321
+ var node = $.child(dl);
7322
+ var consequent_1 = ($$anchor$1) => {
7323
+ var dt = root_1$5();
7324
+ var span = $.child(dt);
7325
+ var text = $.child(span, true);
7326
+ $.reset(span);
7327
+ var node_1 = $.sibling(span, 2);
7328
+ var consequent = ($$anchor$2) => {
7329
+ var span_1 = root_2$3();
7330
+ $.append($$anchor$2, span_1);
7331
+ };
7332
+ $.if(node_1, ($$render) => {
7333
+ if (props().required) $$render(consequent);
7334
+ });
7335
+ $.reset(dt);
7336
+ $.template_effect(() => $.set_text(text, props().label));
7337
+ $.append($$anchor$1, dt);
7338
+ };
7339
+ $.if(node, ($$render) => {
7340
+ if (props().label) $$render(consequent_1);
7341
+ });
7342
+ var dd = $.sibling(node, 2);
7343
+ var node_2 = $.child(dd);
7344
+ $.slot(node_2, $$props, "default", { get "data-layer-id"() {
7345
+ return layerId();
7346
+ } }, null);
7347
+ var node_3 = $.sibling(node_2, 2);
7348
+ var consequent_2 = ($$anchor$1) => {
7349
+ var p = root_3();
7350
+ var text_1 = $.child(p, true);
7351
+ $.reset(p);
7352
+ $.template_effect(() => $.set_text(text_1, $.get(errorMessage)));
7353
+ $.append($$anchor$1, p);
7354
+ };
7355
+ $.if(node_3, ($$render) => {
7356
+ if ($.get(isShowErrorMessage) && $.get(errorMessage)) $$render(consequent_2);
7357
+ });
7358
+ $.reset(dd);
7359
+ $.reset(dl);
7360
+ $.template_effect(($0) => {
7361
+ $.set_attribute(dl, "id", props().id);
7362
+ $.set_class(dl, 1, $0, "svelte-1maygd6");
7363
+ $.set_attribute(dl, "data-layer-id", layerId());
7364
+ $.set_style(dl, $.get(style));
7365
+ }, [() => $.clsx([
7366
+ "field",
7367
+ props().required ? "required" : "",
7368
+ ...props().classNames ?? []
7369
+ ].join(" "))], $.derived_safe_equal);
7370
+ $.append($$anchor, dl);
7371
+ $.pop();
7372
+ }
7373
+
7374
+ //#endregion
7375
+ //#region src/components-flex/form/FormInput.svelte
7376
+ var root_1$4 = $.template(`<input type="text">`);
7377
+ const $$css$6 = {
7378
+ hash: "svelte-176cxs0",
7379
+ code: ".form-input.svelte-176cxs0 {margin:0;width:var(--form-input-width);-webkit-appearance:none;color:var(--font-color);transition:all 0.2s;}.form-input.small.svelte-176cxs0 {font-size:12px;line-height:19px;padding:6px 10px 5px;border-radius:4px;}.form-input.medium.svelte-176cxs0 {font-size:14px;line-height:21px;padding:8px 12px 7px;border-radius:6px;}.form-input.large.svelte-176cxs0 {font-size:16px;line-height:25px;padding:11px 16px 10px;border-radius:8px;}.form-input.outlined.svelte-176cxs0 {border:1px solid var(--border-color);}.form-input.filled.svelte-176cxs0 {background-color:var(--background-color);border:1px solid var(--background-color);}.form-input.underlined.svelte-176cxs0 {border-radius:0;border-width:0 0 1px;border-style:solid;border-color:rgba(255, 255, 255, 0) rgba(255, 255, 255, 0) var(--border-color);}.form-input.underlined.svelte-176cxs0:focus-visible {outline:0;border-bottom-color:1px solid var(--focused-outline-color);}.form-input.svelte-176cxs0:focus-visible {outline-color:var(--focused-outline-color);}.form-input.svelte-176cxs0::placeholder {color:var(--placeholder-color);}"
7380
+ };
7381
+ function FormInput($$anchor, $$props) {
7382
+ $.push($$props, false);
7383
+ $.append_styles($$anchor, $$css$6);
7384
+ const variant = $.mutable_state();
7385
+ const size = $.mutable_state();
7386
+ const variables$1 = $.mutable_state();
7387
+ const style = $.mutable_state();
7388
+ const type = $.mutable_state();
7389
+ let props = $.prop($$props, "props", 24, () => ({}));
7390
+ let layerId = $.prop($$props, "layerId", 8, "");
7391
+ const { brandKit } = useBrandKit();
7392
+ useInjectCustomizeCss(props(), layerId());
7393
+ let value = $.mutable_state("");
7394
+ const handleBlur = () => {
7395
+ if (props().fieldName) {
7396
+ setFormFieldTouched(props().fieldName);
7397
+ setFormFieldValue(props().fieldName, $.get(value));
7398
+ }
7399
+ };
7400
+ const handleInput = () => {
7401
+ setFormFieldValue(props().fieldName, $.get(value));
7402
+ };
7403
+ onMount$1(() => {
7404
+ if (props().fieldName) $.set(value, getFormFieldValue(props().fieldName));
7405
+ });
7406
+ $.legacy_pre_effect(() => $.deep_read_state(props()), () => {
7407
+ $.set(variant, props().variant ?? "outlined");
7408
+ });
7409
+ $.legacy_pre_effect(() => $.deep_read_state(props()), () => {
7410
+ $.set(size, props().size ?? "medium");
7411
+ });
7412
+ $.legacy_pre_effect(() => $.deep_read_state(props()), () => {
7413
+ $.set(variables$1, (() => {
7414
+ return {
7415
+ "--form-input-width": props().width ?? "100%",
7416
+ "--border-color": props().borderColor || brandKit.color_form_field_border,
7417
+ "--focused-outline-color": props().focusedBorderColor || brandKit.color_form_field_focused_border || brandKit.color_brand,
7418
+ "--placeholder-color": props().placeholderColor ?? brandKit.color_form_field_placeholder,
7419
+ "--font-color": props().fontColor || brandKit.color_text_primary,
7420
+ "--background-color": props().backgroundColor || brandKit.color_form_field_background
7421
+ };
7422
+ })());
7423
+ });
7424
+ $.legacy_pre_effect(() => $.get(variables$1), () => {
7425
+ $.set(style, objToStyle({ ...$.get(variables$1) }));
7426
+ });
7427
+ $.legacy_pre_effect(() => $.deep_read_state(props()), () => {
7428
+ $.set(type, (() => {
7429
+ if (props().inputType === "url") return "url";
7430
+ if (props().inputType === "tel") return "tel";
7431
+ if (props().inputType === "email") return "email";
7432
+ return "text";
7433
+ })());
7434
+ });
7435
+ $.legacy_pre_effect_reset();
7436
+ $.init();
7437
+ FormField($$anchor, {
7438
+ get layerId() {
7439
+ return layerId();
7440
+ },
7441
+ get props() {
7442
+ return props();
7443
+ },
7444
+ children: ($$anchor$1, $$slotProps) => {
7445
+ var input = root_1$4();
7446
+ $.remove_input_defaults(input);
7447
+ $.template_effect(($0) => {
7448
+ $.set_attribute(input, "placeholder", props().placeholder);
7449
+ $.set_attribute(input, "name", props().fieldName);
7450
+ $.set_class(input, 1, $0, "svelte-176cxs0");
7451
+ $.set_style(input, $.get(style));
7452
+ }, [() => $.clsx([
7453
+ "form-input",
7454
+ $.get(variant),
7455
+ $.get(size)
7456
+ ].join(" "))], $.derived_safe_equal);
7457
+ $.bind_value(input, () => $.get(value), ($$value) => $.set(value, $$value));
7458
+ $.event("blur", input, handleBlur);
7459
+ $.event("input", input, handleInput);
7460
+ $.append($$anchor$1, input);
7461
+ },
7462
+ $$slots: { default: true }
7463
+ });
7464
+ $.pop();
7465
+ }
7466
+
7467
+ //#endregion
7468
+ //#region src/components-flex/form/FormTextarea.svelte
7469
+ var root_1$3 = $.template(`<textarea></textarea>`);
7470
+ const $$css$5 = {
7471
+ hash: "svelte-1oqg2c0",
7472
+ code: ".form-textarea.svelte-1oqg2c0 {margin:0;width:var(--form-textarea-width);max-width:var(--form-textarea-width);min-width:var(--form-textarea-width);-webkit-appearance:none;vertical-align:bottom;color:var(--font-color);transition:all 0.2s;}.form-textarea.small.svelte-1oqg2c0 {font-size:12px;line-height:19px;padding:6px 10px 5px;border-radius:4px;}.form-textarea.medium.svelte-1oqg2c0 {font-size:14px;line-height:21px;padding:8px 12px 7px;border-radius:6px;}.form-textarea.large.svelte-1oqg2c0 {font-size:16px;line-height:25px;padding:11px 16px 10px;border-radius:8px;}.form-textarea.outlined.svelte-1oqg2c0 {border:1px solid var(--border-color);}.form-textarea.filled.svelte-1oqg2c0 {background-color:var(--background-color);border:1px solid var(--background-color);}.form-textarea.underlined.svelte-1oqg2c0 {border-radius:0;border-width:0 0 1px;border-style:solid;border-color:rgba(255, 255, 255, 0) rgba(255, 255, 255, 0) var(--border-color);}.form-textarea.underlined.svelte-1oqg2c0:focus-visible {outline:0;border-bottom-color:1px solid var(--focused-outline-color);}.form-textarea.svelte-1oqg2c0:focus-visible {outline-color:var(--focused-outline-color);}.form-textarea.svelte-1oqg2c0::placeholder {color:var(--placeholder-color);}"
7473
+ };
7474
+ function FormTextarea($$anchor, $$props) {
7475
+ $.push($$props, false);
7476
+ $.append_styles($$anchor, $$css$5);
7477
+ const variant = $.mutable_state();
7478
+ const size = $.mutable_state();
7479
+ const variables$1 = $.mutable_state();
7480
+ const style = $.mutable_state();
7481
+ let props = $.prop($$props, "props", 24, () => ({}));
7482
+ let layerId = $.prop($$props, "layerId", 8, "");
7483
+ const { brandKit } = useBrandKit();
7484
+ useInjectCustomizeCss(props(), layerId());
7485
+ let value = $.mutable_state("");
7486
+ const handleBlur = () => {
7487
+ if (props().fieldName) {
7488
+ setFormFieldTouched(props().fieldName);
7489
+ setFormFieldValue(props().fieldName, $.get(value));
7490
+ }
7491
+ };
7492
+ const handleInput = () => {
7493
+ setFormFieldValue(props().fieldName, $.get(value));
7494
+ };
7495
+ onMount$1(() => {
7496
+ if (props().fieldName) $.set(value, getFormFieldValue(props().fieldName));
7497
+ });
7498
+ $.legacy_pre_effect(() => $.deep_read_state(props()), () => {
7499
+ $.set(variant, props().variant ?? "outlined");
7500
+ });
7501
+ $.legacy_pre_effect(() => $.deep_read_state(props()), () => {
7502
+ $.set(size, props().size ?? "medium");
7503
+ });
7504
+ $.legacy_pre_effect(() => $.deep_read_state(props()), () => {
7505
+ $.set(variables$1, (() => {
7506
+ return {
7507
+ "--form-textarea-width": props().width ?? "100%",
7508
+ "--border-color": props().borderColor || brandKit.color_form_field_border,
7509
+ "--focused-outline-color": props().focusedBorderColor || brandKit.color_form_field_focused_border || brandKit.color_brand,
7510
+ "--placeholder-color": props().placeholderColor ?? brandKit.color_form_field_placeholder,
7511
+ "--font-color": props().fontColor || brandKit.color_text_primary,
7512
+ "--background-color": props().backgroundColor || brandKit.color_form_field_background
7513
+ };
7514
+ })());
7515
+ });
7516
+ $.legacy_pre_effect(() => $.get(variables$1), () => {
7517
+ $.set(style, objToStyle({ ...$.get(variables$1) }));
7518
+ });
7519
+ $.legacy_pre_effect_reset();
7520
+ $.init();
7521
+ FormField($$anchor, {
7522
+ get layerId() {
7523
+ return layerId();
7524
+ },
7525
+ get props() {
7526
+ return props();
7527
+ },
7528
+ children: ($$anchor$1, $$slotProps) => {
7529
+ var textarea = root_1$3();
7530
+ $.remove_textarea_child(textarea);
7531
+ $.template_effect(($0) => {
7532
+ $.set_attribute(textarea, "placeholder", props().placeholder);
7533
+ $.set_attribute(textarea, "rows", props().rows);
7534
+ $.set_attribute(textarea, "name", props().fieldName);
7535
+ $.set_class(textarea, 1, $0, "svelte-1oqg2c0");
7536
+ $.set_style(textarea, $.get(style));
7537
+ }, [() => $.clsx([
7538
+ "form-textarea",
7539
+ $.get(variant),
7540
+ $.get(size)
7541
+ ].join(" "))], $.derived_safe_equal);
7542
+ $.bind_value(textarea, () => $.get(value), ($$value) => $.set(value, $$value));
7543
+ $.event("blur", textarea, handleBlur);
7544
+ $.event("input", textarea, handleInput);
7545
+ $.append($$anchor$1, textarea);
7546
+ },
7547
+ $$slots: { default: true }
7548
+ });
7549
+ $.pop();
7550
+ }
7551
+
7552
+ //#endregion
7553
+ //#region src/components-flex/form/FormSelect.svelte
7554
+ var root_2$2 = $.template(`<option class="svelte-p118m"> </option>`);
7555
+ var root_1$2 = $.template(`<div><select class="form-select-select svelte-p118m"><option disabled class="svelte-p118m"> </option><!></select></div>`);
7556
+ const $$css$4 = {
7557
+ hash: "svelte-p118m",
7558
+ code: ".form-select.svelte-p118m {position:relative;display:inline-flex;width:var(--width);color:var(--font-color);}.form-select.empty.svelte-p118m select:where(.svelte-p118m) {color:var(--placeholder-color);}.form-select.svelte-p118m:after {content:'';display:block;position:absolute;top:50%;right:12px;width:6px;height:6px;border-bottom:1px solid var(--font-color);border-left:1px solid var(--font-color);transform:translateY(-75%) rotate(-45deg);}.form-select.svelte-p118m select:where(.svelte-p118m) {margin:0;width:100%;-webkit-appearance:none;transition:all 0.2s;}.form-select.small.svelte-p118m select:where(.svelte-p118m) {font-size:12px;line-height:19px;padding:6px 32px 5px 10px;border-radius:4px;}.form-select.medium.svelte-p118m select:where(.svelte-p118m) {font-size:14px;line-height:21px;padding:8px 36px 7px 12px;border-radius:6px;}.form-select.large.svelte-p118m select:where(.svelte-p118m) {font-size:16px;line-height:25px;padding:11px 40px 10px 16px;border-radius:8px;}.form-select.large.svelte-p118m:after {right:20px;}.form-select.outlined.svelte-p118m select:where(.svelte-p118m) {border:1px solid var(--border-color);}.form-select.filled.svelte-p118m select:where(.svelte-p118m) {background-color:var(--background-color);border:1px solid var(--background-color);}.form-select.underlined.svelte-p118m select:where(.svelte-p118m) {border-radius:0;border-width:0 0 1px;border-style:solid;border-color:rgba(255, 255, 255, 0) rgba(255, 255, 255, 0) var(--border-color);}.form-select.underlined.svelte-p118m select:where(.svelte-p118m):focus-visible {outline:0;border-bottom-color:1px solid var(--focused-outline-color);}.form-select.svelte-p118m select:where(.svelte-p118m):focus-visible {outline-color:var(--focused-outline-color);}.form-select.svelte-p118m select:where(.svelte-p118m) option:where(.svelte-p118m) {color:var(--font-color);}"
7559
+ };
7560
+ function FormSelect($$anchor, $$props) {
7561
+ $.push($$props, false);
7562
+ $.append_styles($$anchor, $$css$4);
7563
+ const variant = $.mutable_state();
7564
+ const size = $.mutable_state();
7565
+ const isEmpty$1 = $.mutable_state();
7566
+ const variables$1 = $.mutable_state();
7567
+ const style = $.mutable_state();
7568
+ let props = $.prop($$props, "props", 24, () => ({}));
7569
+ let layerId = $.prop($$props, "layerId", 8, "");
7570
+ const { brandKit } = useBrandKit();
7571
+ useInjectCustomizeCss(props(), layerId());
7572
+ let value = $.mutable_state("");
7573
+ const handleChange = () => {
7574
+ if (props().fieldName) {
7575
+ setFormFieldTouched(props().fieldName);
7576
+ setFormFieldValue(props().fieldName, $.get(value));
7577
+ }
7578
+ };
7579
+ onMount$1(() => {
7580
+ if (props().fieldName) $.set(value, getFormFieldValue(props().fieldName));
7581
+ });
7582
+ $.legacy_pre_effect(() => $.deep_read_state(props()), () => {
7583
+ $.set(variant, props().variant ?? "outlined");
7584
+ });
7585
+ $.legacy_pre_effect(() => $.deep_read_state(props()), () => {
7586
+ $.set(size, props().size ?? "medium");
7587
+ });
7588
+ $.legacy_pre_effect(() => $.get(value), () => {
7589
+ $.set(isEmpty$1, $.get(value) === "");
7590
+ });
7591
+ $.legacy_pre_effect(() => $.deep_read_state(props()), () => {
7592
+ $.set(variables$1, (() => {
7593
+ return {
7594
+ "--width": props().width ?? "100%",
7595
+ "--border-color": props().borderColor || brandKit.color_form_field_border,
7596
+ "--focused-outline-color": props().focusedBorderColor || brandKit.color_form_field_focused_border || brandKit.color_brand,
7597
+ "--placeholder-color": props().placeholderColor ?? brandKit.color_form_field_placeholder,
7598
+ "--font-color": props().fontColor || brandKit.color_text_primary,
7599
+ "--background-color": props().backgroundColor || brandKit.color_form_field_background
7600
+ };
7601
+ })());
7602
+ });
7603
+ $.legacy_pre_effect(() => $.get(variables$1), () => {
7604
+ $.set(style, objToStyle({ ...$.get(variables$1) }));
7605
+ });
7606
+ $.legacy_pre_effect_reset();
7607
+ $.init();
7608
+ FormField($$anchor, {
7609
+ get layerId() {
7610
+ return layerId();
7611
+ },
7612
+ get props() {
7613
+ return props();
7614
+ },
7615
+ children: ($$anchor$1, $$slotProps) => {
7616
+ var div = root_1$2();
7617
+ var select = $.child(div);
7618
+ $.template_effect(() => {
7619
+ $.get(value);
7620
+ $.invalidate_inner_signals(() => {
7621
+ props();
7622
+ });
7623
+ });
7624
+ var option_1 = $.child(select);
7625
+ option_1.value = null == (option_1.__value = "") ? "" : "";
7626
+ var text = $.child(option_1, true);
7627
+ $.reset(option_1);
7628
+ var node = $.sibling(option_1);
7629
+ $.each(node, 1, () => props().options, $.index, ($$anchor$2, option) => {
7630
+ var option_2 = root_2$2();
7631
+ var option_2_value = {};
7632
+ var text_1 = $.child(option_2, true);
7633
+ $.reset(option_2);
7634
+ $.template_effect(() => {
7635
+ if (option_2_value !== (option_2_value = $.get(option).value)) option_2.value = null == (option_2.__value = $.get(option).value) ? "" : $.get(option).value;
7636
+ $.set_text(text_1, $.get(option).label);
7637
+ });
7638
+ $.append($$anchor$2, option_2);
7639
+ });
7640
+ $.reset(select);
7641
+ $.reset(div);
7642
+ $.template_effect(($0) => {
7643
+ $.set_class(div, 1, $0, "svelte-p118m");
7644
+ $.set_style(div, $.get(style));
7645
+ $.set_attribute(select, "name", props().fieldName);
7646
+ $.set_text(text, props().placeholder ?? "選択してください");
7647
+ }, [() => $.clsx([
7648
+ "form-select",
7649
+ $.get(variant),
7650
+ $.get(size),
7651
+ $.get(isEmpty$1) ? "empty" : ""
7652
+ ].join(" "))], $.derived_safe_equal);
7653
+ $.bind_select_value(select, () => $.get(value), ($$value) => $.set(value, $$value));
7654
+ $.event("change", select, handleChange);
7655
+ $.append($$anchor$1, div);
7656
+ },
7657
+ $$slots: { default: true }
7658
+ });
7659
+ $.pop();
7660
+ }
7661
+
7662
+ //#endregion
7663
+ //#region src/components-flex/form/types.ts
7664
+ const FORM_FIELD_LABEL_SIZE = {
7665
+ small: "スモール",
7666
+ medium: "ミディアム",
7667
+ large: "ラージ"
7668
+ };
7669
+ const FORM_FIELD_LABEL_THEME = {
7670
+ default: "デフォルト",
7671
+ gray: "グレー",
7672
+ brand: "ブランド"
7673
+ };
7674
+ const FORM_IDENTIFY_FIELD_TYPE = {
7675
+ email: "メールアドレス",
7676
+ subscription: "メールマガジン登録",
7677
+ phone: "電話番号",
7678
+ phone_subscribe: "SMS配信許可",
7679
+ first_name: "名前(名)",
7680
+ last_name: "名前(姓)",
7681
+ address: "住所"
7682
+ };
7683
+ const FORM_FIELD_TYPE = {
7684
+ INPUT: "input",
7685
+ SELECT: "select",
7686
+ CHECKBOX: "checkbox",
7687
+ CHECKBOXES: "checkboxes",
7688
+ RADIOS: "radio",
7689
+ BOOLEAN: "boolean",
7690
+ TEXTAREA: "textarea"
7691
+ };
7692
+ const FORM_FIELD_VARIANT = {
7693
+ outlined: "アウトライン",
7694
+ underlined: "アンダーライン",
7695
+ filled: "塗りつぶし"
7696
+ };
7697
+ const FORM_FIELD_VARIANT_FOR_CHECKER = {
7698
+ outlined: "アウトライン",
7699
+ filled: "塗りつぶし"
7700
+ };
7701
+ const FORM_FIELD_SIZE = {
7702
+ small: "スモール",
7703
+ medium: "ミディアム",
7704
+ large: "ラージ"
7705
+ };
7706
+ const FORM_INPUT_TYPE = {
7707
+ TEXT: "text",
7708
+ URL: "url",
7709
+ TEL: "tel",
7710
+ EMAIL: "email"
7711
+ };
7712
+
7713
+ //#endregion
7714
+ //#region src/components-flex/form/FormCheckboxes.svelte
7715
+ var root_2$1 = $.template(`<li><label class="form-checkbox svelte-rx48m9"><input type="checkbox" class="form-checkbox-input svelte-rx48m9"> <span class="form-checkbox-check svelte-rx48m9"><i class="form-checkbox-check-icon svelte-rx48m9"></i></span> <span class="form-checkbox-label svelte-rx48m9"> </span></label></li>`);
7716
+ var root_1$1 = $.template(`<ul></ul>`);
7717
+ const $$css$3 = {
7718
+ hash: "svelte-rx48m9",
7719
+ code: ".form-checkboxes.svelte-rx48m9 {position:relative;display:var(--checkboxes-display);flex-direction:var(--checkboxes-direction);flex-wrap:wrap;column-gap:var(--checkboxes-gap-x);row-gap:var(--checkboxes-gap-y);grid-template-columns:var(--checkboxes-grid-cols);width:100%;list-style:none;padding:2px 0;}.form-checkboxes.outlined.svelte-rx48m9 .form-checkbox-check:where(.svelte-rx48m9) {background-color:#fff;border:1px solid var(--border-color);}.form-checkboxes.filled.svelte-rx48m9 .form-checkbox-check:where(.svelte-rx48m9) {background-color:var(--background-color);border:1px solid var(--background-color);}.form-checkbox.svelte-rx48m9 {display:flex;align-items:center;gap:var(--checkbox-gap);cursor:pointer;}.form-checkbox-input.svelte-rx48m9 {appearance:none;margin:0;width:var(--checkbox-check-size);height:var(--checkbox-check-size);cursor:pointer;position:absolute;}.form-checkbox-check.svelte-rx48m9 {display:flex;align-items:center;justify-content:center;flex-shrink:0;width:var(--checkbox-check-size);height:var(--checkbox-check-size);border-radius:var(--checkbox-check-radius);transition:0.2s;}.form-checkbox-check-icon.svelte-rx48m9 {display:block;width:0.625em;height:0.375em;border-bottom:2px solid white;border-left:2px solid white;transform:translateY(-25%) rotate(-45deg);opacity:0;transition:0.2s;}.form-checkbox-label.svelte-rx48m9 {font-size:var(--checkbox-font-size);color:var(--font-color);white-space:nowrap;user-select:none;}.form-checkbox-input.svelte-rx48m9:checked ~ .form-checkbox-check:where(.svelte-rx48m9) {background-color:var(--accent-color);border-color:var(--accent-color);}.form-checkbox-input.svelte-rx48m9:checked ~ .form-checkbox-check:where(.svelte-rx48m9) .form-checkbox-check-icon:where(.svelte-rx48m9) {opacity:1;}"
7720
+ };
7721
+ function FormCheckboxes($$anchor, $$props) {
7722
+ $.push($$props, false);
7723
+ $.append_styles($$anchor, $$css$3);
7724
+ const variant = $.mutable_state();
7725
+ const size = $.mutable_state();
7726
+ const options = $.mutable_state();
7727
+ const variables$1 = $.mutable_state();
7728
+ const listStyles = $.mutable_state();
7729
+ const binding_group = [];
7730
+ let props = $.prop($$props, "props", 24, () => ({}));
7731
+ let layerId = $.prop($$props, "layerId", 8, "");
7732
+ useInjectCustomizeCss(props(), layerId());
7733
+ const { brandKit } = useBrandKit();
7734
+ let values = $.mutable_state([]);
7735
+ const handleChange = () => {
7736
+ if (props().fieldName) {
7737
+ setFormFieldTouched(props().fieldName);
7738
+ setFormFieldValue(props().fieldName, $.get(values));
7739
+ }
7740
+ };
7741
+ onMount$1(() => {
7742
+ if (props().fieldName) $.set(values, getFormFieldValue(props().fieldName));
7743
+ });
7744
+ $.legacy_pre_effect(() => ($.deep_read_state(props()), FORM_FIELD_VARIANT_FOR_CHECKER), () => {
7745
+ $.set(variant, props().variant && Object.keys(FORM_FIELD_VARIANT_FOR_CHECKER).includes(props().variant) ? props().variant : "outlined");
7746
+ });
7747
+ $.legacy_pre_effect(() => $.deep_read_state(props()), () => {
7748
+ $.set(size, props().size ?? "medium");
7749
+ });
7750
+ $.legacy_pre_effect(() => $.deep_read_state(props()), () => {
7751
+ $.set(options, (props().options ?? []).filter((v) => v.label && v.value));
7752
+ });
7753
+ $.legacy_pre_effect(() => ($.deep_read_state(props()), $.get(size)), () => {
7754
+ $.set(variables$1, {
7755
+ "--checkboxes-display": props().layout === "grid" ? "grid" : "flex",
7756
+ "--checkboxes-direction": (() => {
7757
+ if (props().layout === "grid") return void 0;
7758
+ return props().layout === "horizontal" ? "row" : "column";
7759
+ })(),
7760
+ "--checkboxes-grid-cols": (() => {
7761
+ if (props().layout !== "grid") return void 0;
7762
+ return `repeat(${props().layoutGridCols ?? 1},minmax(0,1fr))`;
7763
+ })(),
7764
+ "--checkboxes-gap-y": props().layoutGapY ?? "0",
7765
+ "--checkboxes-gap-x": props().layoutGapX ?? "0",
7766
+ "--checkbox-font-size": (() => {
7767
+ if ($.get(size) === "small") return "12px";
7768
+ if ($.get(size) === "large") return "16px";
7769
+ return "14px";
7770
+ })(),
7771
+ "--checkbox-check-size": (() => {
7772
+ if ($.get(size) === "small") return "14x";
7773
+ if ($.get(size) === "large") return "18px";
7774
+ return "16px";
7775
+ })(),
7776
+ "--checkbox-check-radius": (() => {
7777
+ if ($.get(size) === "small") return "2px";
7778
+ if ($.get(size) === "large") return "6px";
7779
+ return "4px";
7780
+ })(),
7781
+ "--checkbox-gap": (() => {
7782
+ if ($.get(size) === "small") return "6px";
7783
+ if ($.get(size) === "large") return "12px";
7784
+ return "8px";
7785
+ })(),
7786
+ "--accent-color": props().accentColor || brandKit.color_brand,
7787
+ "--border-color": props().borderColor || brandKit.color_form_field_border,
7788
+ "--font-color": props().fontColor || brandKit.color_text_primary,
7789
+ "--background-color": props().backgroundColor || brandKit.color_form_field_background
7790
+ });
7791
+ });
7792
+ $.legacy_pre_effect(() => $.get(variables$1), () => {
7793
+ $.set(listStyles, objToStyle({ ...$.get(variables$1) }));
7794
+ });
7795
+ $.legacy_pre_effect_reset();
7796
+ $.init();
7797
+ FormField($$anchor, {
7798
+ get layerId() {
7799
+ return layerId();
7800
+ },
7801
+ get props() {
7802
+ return props();
7803
+ },
7804
+ children: ($$anchor$1, $$slotProps) => {
7805
+ var ul = root_1$1();
7806
+ $.each(ul, 5, () => $.get(options), $.index, ($$anchor$2, option) => {
7807
+ var li = root_2$1();
7808
+ var label = $.child(li);
7809
+ var input = $.child(label);
7810
+ $.remove_input_defaults(input);
7811
+ var input_value;
7812
+ var span = $.sibling(input, 4);
7813
+ var text = $.child(span, true);
7814
+ $.reset(span);
7815
+ $.reset(label);
7816
+ $.reset(li);
7817
+ $.template_effect(() => {
7818
+ if (input_value !== (input_value = $.get(option).value)) input.value = null == (input.__value = $.get(option).value) ? "" : $.get(option).value;
7819
+ $.set_attribute(input, "name", props().fieldName);
7820
+ $.set_text(text, $.get(option).label);
7821
+ });
7822
+ $.bind_group(binding_group, [], input, () => {
7823
+ $.get(option).value;
7824
+ return $.get(values);
7825
+ }, ($$value) => $.set(values, $$value));
7826
+ $.event("change", input, handleChange);
7827
+ $.append($$anchor$2, li);
7828
+ });
7829
+ $.reset(ul);
7830
+ $.template_effect(($0) => {
7831
+ $.set_class(ul, 1, $0, "svelte-rx48m9");
7832
+ $.set_style(ul, $.get(listStyles));
7833
+ }, [() => $.clsx([
7834
+ "form-checkboxes",
7835
+ $.get(variant),
7836
+ $.get(size)
7837
+ ].join(" "))], $.derived_safe_equal);
7838
+ $.append($$anchor$1, ul);
7839
+ },
7840
+ $$slots: { default: true }
7841
+ });
7842
+ $.pop();
7843
+ }
7844
+
7845
+ //#endregion
7846
+ //#region src/components-flex/form/FormRadios.svelte
7847
+ var root_2 = $.template(`<li><label class="form-radio svelte-ps4qqa"><input type="radio" class="form-radio-input svelte-ps4qqa"> <span class="form-radio-check svelte-ps4qqa"><i class="form-radio-check-icon svelte-ps4qqa"></i></span> <span class="form-radio-label svelte-ps4qqa"> </span></label></li>`);
7848
+ var root_1 = $.template(`<ul></ul>`);
7849
+ const $$css$2 = {
7850
+ hash: "svelte-ps4qqa",
7851
+ code: ".form-radios.svelte-ps4qqa {position:relative;display:var(--radios-display);flex-direction:var(--radios-direction);flex-wrap:wrap;column-gap:var(--radios-gap-x);row-gap:var(--radios-gap-y);grid-template-columns:var(--radios-grid-cols);width:100%;list-style:none;padding:2px 0;}.form-radios.outlined.svelte-ps4qqa .form-radio-check:where(.svelte-ps4qqa) {background-color:#fff;border:1px solid var(--border-color);}.form-radios.filled.svelte-ps4qqa .form-radio-check:where(.svelte-ps4qqa) {background-color:var(--background-color);border:1px solid var(--background-color);}.form-radio.svelte-ps4qqa {display:flex;align-items:center;gap:var(--radio-gap);cursor:pointer;}.form-radio-input.svelte-ps4qqa {appearance:none;width:var(--radio-check-size);height:var(--radio-check-size);margin:0;cursor:pointer;position:absolute;}.form-radio-check.svelte-ps4qqa {display:flex;align-items:center;justify-content:center;flex-shrink:0;width:var(--radio-check-size);height:var(--radio-check-size);border-radius:100%;transition:0.2s;}.form-radio-check-icon.svelte-ps4qqa {display:block;width:var(--radio-check-icon-size);height:var(--radio-check-icon-size);border-radius:100%;background-color:var(--accent-color);opacity:0;transition:0.2s;}.form-radio-label.svelte-ps4qqa {font-size:var(--radio-font-size);color:var(--font-color);white-space:nowrap;user-select:none;}.form-radio-input.svelte-ps4qqa:checked ~ .form-radio-check:where(.svelte-ps4qqa) {border-color:var(--accent-color);}.form-radio-input.svelte-ps4qqa:checked ~ .form-radio-check:where(.svelte-ps4qqa) .form-radio-check-icon:where(.svelte-ps4qqa) {opacity:1;}"
7852
+ };
7853
+ function FormRadios($$anchor, $$props) {
7854
+ $.push($$props, false);
7855
+ $.append_styles($$anchor, $$css$2);
7856
+ const variant = $.mutable_state();
7857
+ const size = $.mutable_state();
7858
+ const options = $.mutable_state();
7859
+ const variables$1 = $.mutable_state();
7860
+ const listStyles = $.mutable_state();
7861
+ const binding_group = [];
7862
+ let props = $.prop($$props, "props", 24, () => ({}));
7863
+ let layerId = $.prop($$props, "layerId", 8, "");
7864
+ useInjectCustomizeCss(props(), layerId());
7865
+ const { brandKit } = useBrandKit();
7866
+ let value = $.mutable_state("");
7867
+ const handleChange = () => {
7868
+ if (props().fieldName) {
7869
+ setFormFieldTouched(props().fieldName);
7870
+ setFormFieldValue(props().fieldName, $.get(value));
7871
+ }
7872
+ };
7873
+ onMount$1(() => {
7874
+ if (props().fieldName) $.set(value, getFormFieldValue(props().fieldName));
7875
+ });
7876
+ $.legacy_pre_effect(() => ($.deep_read_state(props()), FORM_FIELD_VARIANT_FOR_CHECKER), () => {
7877
+ $.set(variant, props().variant && Object.keys(FORM_FIELD_VARIANT_FOR_CHECKER).includes(props().variant) ? props().variant : "outlined");
7878
+ });
7879
+ $.legacy_pre_effect(() => $.deep_read_state(props()), () => {
7880
+ $.set(size, props().size ?? "medium");
7881
+ });
7882
+ $.legacy_pre_effect(() => $.deep_read_state(props()), () => {
7883
+ $.set(options, (props().options ?? []).filter((v) => v.label && v.value));
7884
+ });
7885
+ $.legacy_pre_effect(() => ($.deep_read_state(props()), $.get(size)), () => {
7886
+ $.set(variables$1, {
7887
+ "--radios-display": props().layout === "grid" ? "grid" : "flex",
7888
+ "--radios-direction": (() => {
7889
+ if (props().layout === "grid") return void 0;
7890
+ return props().layout === "horizontal" ? "row" : "column";
7891
+ })(),
7892
+ "--radios-grid-cols": (() => {
7893
+ if (props().layout !== "grid") return void 0;
7894
+ return `repeat(${props().layoutGridCols ?? 1},minmax(0,1fr))`;
7895
+ })(),
7896
+ "--radios-gap-y": props().layoutGapY ?? "0",
7897
+ "--radios-gap-x": props().layoutGapX ?? "0",
7898
+ "--radio-font-size": (() => {
7899
+ if ($.get(size) === "small") return "12px";
7900
+ if ($.get(size) === "large") return "16px";
7901
+ return "14px";
7902
+ })(),
7903
+ "--radio-check-size": (() => {
7904
+ if ($.get(size) === "small") return "14px";
7905
+ if ($.get(size) === "large") return "20px";
7906
+ return "16px";
7907
+ })(),
7908
+ "--radio-check-icon-size": (() => {
7909
+ if ($.get(size) === "small") return "8px";
7910
+ if ($.get(size) === "large") return "14px";
7911
+ return "10px";
7912
+ })(),
7913
+ "--radio-check-radius": (() => {
7914
+ if ($.get(size) === "small") return "2px";
7915
+ if ($.get(size) === "large") return "6px";
7916
+ return "4px";
7917
+ })(),
7918
+ "--radio-gap": (() => {
7919
+ if ($.get(size) === "small") return "6px";
7920
+ if ($.get(size) === "large") return "12px";
7921
+ return "8px";
7922
+ })(),
7923
+ "--accent-color": props().accentColor || brandKit.color_brand,
7924
+ "--border-color": props().borderColor || brandKit.color_form_field_border,
7925
+ "--font-color": props().fontColor || brandKit.color_text_primary,
7926
+ "--background-color": props().backgroundColor || brandKit.color_form_field_background
7927
+ });
7928
+ });
7929
+ $.legacy_pre_effect(() => $.get(variables$1), () => {
7930
+ $.set(listStyles, objToStyle({ ...$.get(variables$1) }));
7931
+ });
7932
+ $.legacy_pre_effect_reset();
7933
+ $.init();
7934
+ FormField($$anchor, {
7935
+ get layerId() {
7936
+ return layerId();
7937
+ },
7938
+ get props() {
7939
+ return props();
7940
+ },
7941
+ children: ($$anchor$1, $$slotProps) => {
7942
+ var ul = root_1();
7943
+ $.each(ul, 5, () => $.get(options), $.index, ($$anchor$2, option) => {
7944
+ var li = root_2();
7945
+ var label = $.child(li);
7946
+ var input = $.child(label);
7947
+ $.remove_input_defaults(input);
7948
+ var input_value;
7949
+ var span = $.sibling(input, 4);
7950
+ var text = $.child(span, true);
7951
+ $.reset(span);
7952
+ $.reset(label);
7953
+ $.reset(li);
7954
+ $.template_effect(() => {
7955
+ if (input_value !== (input_value = $.get(option).value)) input.value = null == (input.__value = $.get(option).value) ? "" : $.get(option).value;
7956
+ $.set_attribute(input, "name", props().fieldName);
7957
+ $.set_text(text, $.get(option).label);
7958
+ });
7959
+ $.bind_group(binding_group, [], input, () => {
7960
+ $.get(option).value;
7961
+ return $.get(value);
7962
+ }, ($$value) => $.set(value, $$value));
7963
+ $.event("change", input, handleChange);
7964
+ $.append($$anchor$2, li);
7965
+ });
7966
+ $.reset(ul);
7967
+ $.template_effect(($0) => {
7968
+ $.set_class(ul, 1, $0, "svelte-ps4qqa");
7969
+ $.set_style(ul, $.get(listStyles));
7970
+ }, [() => $.clsx([
7971
+ "form-radios",
7972
+ $.get(variant),
7973
+ $.get(size)
7974
+ ].join(" "))], $.derived_safe_equal);
7975
+ $.append($$anchor$1, ul);
7976
+ },
7977
+ $$slots: { default: true }
7978
+ });
7979
+ $.pop();
7980
+ }
7981
+
7982
+ //#endregion
7983
+ //#region src/components-flex/form/FormBoolean.svelte
7984
+ const $$css$1 = {
7985
+ hash: "svelte-3kpd",
7986
+ code: ""
7987
+ };
7988
+ function FormBoolean($$anchor, $$props) {
7989
+ $.append_styles($$anchor, $$css$1);
7990
+ let props = $.prop($$props, "props", 24, () => ({}));
7991
+ let layerId = $.prop($$props, "layerId", 8, "");
7992
+ FormRadios($$anchor, {
7993
+ get layerId() {
7994
+ return layerId();
7995
+ },
7996
+ get props() {
7997
+ return props();
7998
+ }
7999
+ });
8000
+ }
8001
+
8002
+ //#endregion
8003
+ //#region src/components-flex/form/FormIdentifyField.svelte
8004
+ const $$css = {
8005
+ hash: "svelte-3kpd",
8006
+ code: ""
8007
+ };
8008
+ function FormIdentifyField($$anchor, $$props) {
8009
+ $.push($$props, false);
8010
+ $.append_styles($$anchor, $$css);
8011
+ const fieldType = $.mutable_state();
8012
+ const fieldProps = $.mutable_state();
8013
+ const inputProps = $.mutable_state();
8014
+ const booleanProps = $.mutable_state();
8015
+ let props = $.prop($$props, "props", 24, () => ({}));
8016
+ let layerId = $.prop($$props, "layerId", 8, "");
8017
+ useInjectCustomizeCss(props(), layerId());
8018
+ const identifyType = props().identifyType ?? "email";
8019
+ $.legacy_pre_effect(() => {}, () => {
8020
+ $.set(fieldType, (() => {
8021
+ switch (identifyType) {
8022
+ case "phone_subscribe":
8023
+ case "subscription": return "boolean";
8024
+ case "address":
8025
+ case "first_name":
8026
+ case "last_name":
8027
+ case "email":
8028
+ case "phone":
8029
+ default: return "input";
8030
+ }
8031
+ })());
8032
+ });
8033
+ $.legacy_pre_effect(() => ($.deep_read_state(props()), $.get(fieldType)), () => {
8034
+ $.set(fieldProps, (() => {
8035
+ return {
8036
+ ...props(),
8037
+ fieldType: $.get(fieldType),
8038
+ fieldName: identifyType,
8039
+ isIdentify: true
8040
+ };
8041
+ })());
8042
+ });
8043
+ $.legacy_pre_effect(() => ($.get(fieldType), $.get(fieldProps), $.deep_read_state(props())), () => {
8044
+ $.set(inputProps, (() => {
8045
+ if ($.get(fieldType) !== "input") return null;
8046
+ return {
8047
+ ...$.get(fieldProps),
8048
+ ...props().inputProps ?? {}
8049
+ };
8050
+ })());
8051
+ });
8052
+ $.legacy_pre_effect(() => ($.get(fieldType), $.get(fieldProps), $.deep_read_state(props())), () => {
8053
+ $.set(booleanProps, (() => {
8054
+ if ($.get(fieldType) !== "boolean") return null;
8055
+ return {
8056
+ ...$.get(fieldProps),
8057
+ ...props().checkerProps ?? {}
8058
+ };
8059
+ })());
8060
+ });
8061
+ $.legacy_pre_effect_reset();
8062
+ $.init();
8063
+ var fragment = $.comment();
8064
+ var node = $.first_child(fragment);
8065
+ var consequent = ($$anchor$1) => {
8066
+ FormInput($$anchor$1, {
8067
+ get layerId() {
8068
+ return layerId();
8069
+ },
8070
+ get props() {
8071
+ return $.get(inputProps);
8072
+ }
8073
+ });
8074
+ };
8075
+ var alternate = ($$anchor$1, $$elseif) => {
8076
+ var consequent_1 = ($$anchor$2) => {
8077
+ FormBoolean($$anchor$2, {
8078
+ get layerId() {
8079
+ return layerId();
8080
+ },
8081
+ get props() {
8082
+ return $.get(booleanProps);
8083
+ }
8084
+ });
8085
+ };
8086
+ var alternate_1 = ($$anchor$2) => {};
8087
+ $.if($$anchor$1, ($$render) => {
8088
+ if ($.get(booleanProps)) $$render(consequent_1);
8089
+ else $$render(alternate_1, false);
8090
+ }, $$elseif);
8091
+ };
8092
+ $.if(node, ($$render) => {
8093
+ if ($.get(inputProps)) $$render(consequent);
8094
+ else $$render(alternate, false);
8095
+ });
8096
+ $.append($$anchor, fragment);
8097
+ $.pop();
8098
+ }
8099
+
6729
8100
  //#endregion
6730
8101
  //#region src/components-flex/shared/styles.ts
6731
8102
  const ROUND_STYLES = {
@@ -6934,4 +8305,4 @@ const flexComponentSchemes = {
6934
8305
  };
6935
8306
 
6936
8307
  //#endregion
6937
- 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 };
8308
+ 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 };