@layers-app/shared 0.2.6 → 0.2.8-test

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 (186) hide show
  1. package/dist/assets/svg/socials/instagram.svg.js +3 -3
  2. package/dist/components/AliasTextInput/AliasTextInput.d.ts.map +1 -1
  3. package/dist/components/AliasTextInput/AliasTextInput.js +21 -20
  4. package/dist/components/AppContainer/AppContainer.js +3 -3
  5. package/dist/components/AppContainer/AppContainer.module.css.js +1 -1
  6. package/dist/components/AppContainer/components/AppSidebarButton.d.ts +1 -1
  7. package/dist/components/AppContainer/components/AppSidebarButton.d.ts.map +1 -1
  8. package/dist/components/AppContainer/components/AppSidebarButton.js +4 -4
  9. package/dist/components/AppContainer/components/AppsSidebar/AppsSection.d.ts.map +1 -1
  10. package/dist/components/AppContainer/components/AppsSidebar/AppsSection.js +40 -32
  11. package/dist/components/AppContainer/components/AppsSidebar/TopSection.d.ts.map +1 -1
  12. package/dist/components/AppContainer/components/AppsSidebar/TopSection.js +41 -33
  13. package/dist/components/AppContainer/components/AppsSidebar/UserSection.d.ts.map +1 -1
  14. package/dist/components/AppContainer/components/AppsSidebar/UserSection.js +58 -49
  15. package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.d.ts.map +1 -1
  16. package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.js +151 -51
  17. package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.module.css.js +1 -1
  18. package/dist/components/AppContainer/hooks/useAppContainer.d.ts +1 -1
  19. package/dist/components/AppContainer/hooks/useAppContainer.d.ts.map +1 -1
  20. package/dist/components/AppContainer/hooks/useAppContainer.js +46 -43
  21. package/dist/components/AppContainer/hooks/useAppContainerDataStore.d.ts.map +1 -1
  22. package/dist/components/AppContainer/hooks/useAppContainerDataStore.js +4 -3
  23. package/dist/components/AppContainer/types.d.ts +2 -1
  24. package/dist/components/AppContainer/types.d.ts.map +1 -1
  25. package/dist/components/AppShell/AppShell.module.css.js +5 -5
  26. package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.module.css.js +4 -4
  27. package/dist/components/AttachmentsGalleryModal/styles.module.css.js +14 -14
  28. package/dist/components/AttachmentsPreview/AttachmentsPreview.module.css.js +1 -1
  29. package/dist/components/BouncingLogo/BouncingLogo.module.css.js +8 -8
  30. package/dist/components/CollapsibleContainer/CollapsibleContainer.module.css.js +1 -1
  31. package/dist/components/CommentComposer/CommentComposer.module.css.js +4 -4
  32. package/dist/components/CommunitiesDialog/styles.module.css.js +1 -1
  33. package/dist/components/Copyright/Copyright.module.css.js +1 -1
  34. package/dist/components/CustomKBD/CustomKBD.module.css.js +1 -1
  35. package/dist/components/EmojiPicker/EmojiPicker.d.ts.map +1 -1
  36. package/dist/components/EmojiPicker/EmojiPicker.js +28 -29
  37. package/dist/components/EmojiPicker/EmojiPicker.module.css.js +8 -8
  38. package/dist/components/EntityTitle/EntityTitle.module.css.js +1 -1
  39. package/dist/components/ErrorPage/components/Error404.d.ts.map +1 -1
  40. package/dist/components/FeatureProgress/FeatureProgress.d.ts +11 -0
  41. package/dist/components/FeatureProgress/FeatureProgress.d.ts.map +1 -0
  42. package/dist/components/FeatureProgress/FeatureProgress.js +148 -0
  43. package/dist/components/FeatureProgress/FeatureProgress.module.css.js +81 -0
  44. package/dist/components/FeatureProgress/FeatureProgressCelebrationIcon.d.ts +2 -0
  45. package/dist/components/FeatureProgress/FeatureProgressCelebrationIcon.d.ts.map +1 -0
  46. package/dist/components/FeatureProgress/FeatureProgressCelebrationIcon.js +88 -0
  47. package/dist/components/FeatureProgress/FeatureProgressCompleteModal.d.ts +9 -0
  48. package/dist/components/FeatureProgress/FeatureProgressCompleteModal.d.ts.map +1 -0
  49. package/dist/components/FeatureProgress/FeatureProgressCompleteModal.js +35 -0
  50. package/dist/components/FeatureProgress/constants.d.ts +4 -0
  51. package/dist/components/FeatureProgress/constants.d.ts.map +1 -0
  52. package/dist/components/FeatureProgress/constants.js +4 -0
  53. package/dist/components/FeatureProgress/index.d.ts +3 -0
  54. package/dist/components/FeatureProgress/index.d.ts.map +1 -0
  55. package/dist/components/FilePicker/FilePicker.d.ts +4 -2
  56. package/dist/components/FilePicker/FilePicker.d.ts.map +1 -1
  57. package/dist/components/FilePicker/FilePicker.js +247 -229
  58. package/dist/components/FilePicker/FilePicker.module.css.js +12 -10
  59. package/dist/components/FilePicker/FilePickerGallery.d.ts.map +1 -1
  60. package/dist/components/FilePicker/FilePickerGallery.js +59 -33
  61. package/dist/components/FilePicker/FilePickerGiphy.d.ts.map +1 -1
  62. package/dist/components/FilePicker/FilePickerGiphy.js +38 -38
  63. package/dist/components/FilePicker/FilePickerLink.d.ts.map +1 -1
  64. package/dist/components/FilePicker/FilePickerLink.js +18 -15
  65. package/dist/components/FilePicker/FilePickerUnsplash.d.ts.map +1 -1
  66. package/dist/components/FilePicker/FilePickerUnsplash.js +39 -39
  67. package/dist/components/FilePicker/FilePickerUpload.d.ts.map +1 -1
  68. package/dist/components/FilePicker/FilePickerUpload.js +51 -35
  69. package/dist/components/FilePicker/api/giphyApi.js +10 -10
  70. package/dist/components/FilePicker/coverCollections.d.ts +4 -0
  71. package/dist/components/FilePicker/coverCollections.d.ts.map +1 -0
  72. package/dist/components/FilePicker/coverCollections.js +164 -0
  73. package/dist/components/FilePicker/index.d.ts +1 -0
  74. package/dist/components/FilePicker/index.d.ts.map +1 -1
  75. package/dist/components/FormViewer/FormViewer.module.css.js +20 -20
  76. package/dist/components/FormViewer/components/OneSlideLayput.js +39 -37
  77. package/dist/components/FormViewer/components/fields/DragOptions/DragOptions.module.css.js +1 -1
  78. package/dist/components/FormViewer/components/fields/DropdownField/DropdownField.module.css.js +1 -1
  79. package/dist/components/FormViewer/components/fields/EditableContent/EditableContent.module.css.js +1 -1
  80. package/dist/components/FormViewer/components/fields/SelectableCard/PictureSelectableCard.js +42 -42
  81. package/dist/components/FormViewer/components/fields/SelectableCard/SelectableCard.module.css.js +8 -8
  82. package/dist/components/FormViewer/components/fields/UploadField/UploadFile/UploadFile.module.css.js +4 -4
  83. package/dist/components/FormViewer/hooks/useCreateFormContext.d.ts.map +1 -1
  84. package/dist/components/FormViewer/hooks/useCreateFormContext.js +10 -10
  85. package/dist/components/FormViewer/store/formStore.d.ts.map +1 -1
  86. package/dist/components/FormViewer/store/formStoreApi.js +13 -13
  87. package/dist/components/ImageCropper/ImageCropper.d.ts.map +1 -1
  88. package/dist/components/ImageCropper/ImageCropper.js +185 -183
  89. package/dist/components/ImageCropper/ImageCropper.module.css.js +38 -38
  90. package/dist/components/ImageCropper/index.d.ts +1 -1
  91. package/dist/components/ImageCropper/index.d.ts.map +1 -1
  92. package/dist/components/ImageCropper/useCropInteraction.d.ts.map +1 -1
  93. package/dist/components/ImageCropper/useCropInteraction.js +13 -2
  94. package/dist/components/IntegrationFlowAnimation/IntegrationFlowAnimation.d.ts.map +1 -1
  95. package/dist/components/IntegrationFlowAnimation/IntegrationFlowAnimation.module.css.js +7 -7
  96. package/dist/components/IntegrationFlowAnimation/icons/GoogleDriveIcon.d.ts +1 -1
  97. package/dist/components/IntegrationFlowAnimation/icons/GoogleDriveIcon.d.ts.map +1 -1
  98. package/dist/components/IntegrationFlowAnimation/icons/GoogleDriveIcon.js +3 -1
  99. package/dist/components/IntegrationFlowAnimation/icons/LayersCubeIcon.d.ts +1 -1
  100. package/dist/components/IntegrationFlowAnimation/icons/LayersCubeIcon.d.ts.map +1 -1
  101. package/dist/components/IntegrationFlowAnimation/icons/LayersCubeIcon.js +3 -1
  102. package/dist/components/LanguagePicker/LanguagePicker.d.ts.map +1 -1
  103. package/dist/components/LanguagePicker/LanguagePicker.js +45 -35
  104. package/dist/components/LanguagePicker/LanguagePicker.module.css.js +6 -4
  105. package/dist/components/Loaders/styles.module.css.js +6 -6
  106. package/dist/components/MediaLibrary/MediaLibrary.module.css.js +2 -2
  107. package/dist/components/MediaLibrary/MediaLibraryRow.d.ts.map +1 -1
  108. package/dist/components/MediaLibrary/MediaLibraryRow.js +16 -4
  109. package/dist/components/NavMenu/NavMenu.d.ts +2 -1
  110. package/dist/components/NavMenu/NavMenu.d.ts.map +1 -1
  111. package/dist/components/NavMenu/NavMenu.module.css.js +16 -16
  112. package/dist/components/NavMenu/components/NavMenuItem.d.ts +2 -1
  113. package/dist/components/NavMenu/components/NavMenuItem.d.ts.map +1 -1
  114. package/dist/components/NavMenu/components/NavMenuItem.js +128 -106
  115. package/dist/components/NavMenu/types.d.ts +1 -0
  116. package/dist/components/NavMenu/types.d.ts.map +1 -1
  117. package/dist/components/NavbarResizer/NavbarResizer.module.css.js +2 -2
  118. package/dist/components/NotPublicPanel/NotPublicPanel.module.css.js +11 -11
  119. package/dist/components/Notification/Notification.module.css.js +1 -1
  120. package/dist/components/OnBoarding/steps/DifferentLayouts/styles.module.css.js +3 -3
  121. package/dist/components/OnBoarding/steps/styles.module.css.js +9 -9
  122. package/dist/components/OnBoarding/styles.module.css.js +7 -7
  123. package/dist/components/OnboardingTour/OnboardingTourFooter.d.ts +17 -0
  124. package/dist/components/OnboardingTour/OnboardingTourFooter.d.ts.map +1 -0
  125. package/dist/components/OnboardingTour/OnboardingTourFooter.js +40 -0
  126. package/dist/components/OnboardingTour/OnboardingTourWrapper.d.ts +13 -0
  127. package/dist/components/OnboardingTour/OnboardingTourWrapper.d.ts.map +1 -0
  128. package/dist/components/OnboardingTour/OnboardingTourWrapper.js +164 -0
  129. package/dist/components/OnboardingTour/index.d.ts +4 -0
  130. package/dist/components/OnboardingTour/index.d.ts.map +1 -0
  131. package/dist/components/OnboardingTour/useOnboardingTour.d.ts +14 -0
  132. package/dist/components/OnboardingTour/useOnboardingTour.d.ts.map +1 -0
  133. package/dist/components/OnboardingTour/useOnboardingTour.js +50 -0
  134. package/dist/components/SearchFilters/SearchFilters.module.css.js +1 -1
  135. package/dist/components/SettingsSection/styles.module.css.js +1 -1
  136. package/dist/components/SocialLinkRow/index.d.ts.map +1 -1
  137. package/dist/components/SocialLinkRow/index.js +80 -58
  138. package/dist/components/StorageUsageProgress/StorageUsageProgress.module.css.js +1 -1
  139. package/dist/components/TimezonePicker/index.d.ts.map +1 -1
  140. package/dist/components/TimezonePicker/index.js +42 -41
  141. package/dist/components/UserAvatar/index.d.ts.map +1 -1
  142. package/dist/components/UserAvatar/index.js +11 -10
  143. package/dist/components/WorkspaceMenu/WorkspaceItem.d.ts.map +1 -1
  144. package/dist/components/WorkspaceMenu/WorkspaceItem.js +21 -21
  145. package/dist/components/WorkspaceMenu/WorkspaceMenu.d.ts.map +1 -1
  146. package/dist/components/WorkspaceMenu/WorkspaceMenu.js +74 -74
  147. package/dist/components/table/FrontTable.d.ts.map +1 -1
  148. package/dist/components/table/hooks/useColumnsResizing.d.ts.map +1 -1
  149. package/dist/helpers/getFileIcons.js +1 -1
  150. package/dist/helpers/getFileType.d.ts +1 -1
  151. package/dist/helpers/getFileType.d.ts.map +1 -1
  152. package/dist/helpers/platform.d.ts +14 -0
  153. package/dist/helpers/platform.d.ts.map +1 -0
  154. package/dist/helpers/platform.js +33 -0
  155. package/dist/helpers/showFeatureFeedback.d.ts +16 -0
  156. package/dist/helpers/showFeatureFeedback.d.ts.map +1 -0
  157. package/dist/helpers/showFeatureFeedback.js +109 -0
  158. package/dist/helpers/showFeatureFeedback.module.css.js +9 -0
  159. package/dist/helpers/showNotifications.d.ts.map +1 -1
  160. package/dist/helpers/showNotifications.js +81 -113
  161. package/dist/helpers/showNotifications.module.css.js +10 -10
  162. package/dist/hooks/useFeatureFeedback.d.ts +23 -0
  163. package/dist/hooks/useFeatureFeedback.d.ts.map +1 -0
  164. package/dist/hooks/useFeatureFeedback.js +45 -0
  165. package/dist/hooks/usePlatform.d.ts +3 -0
  166. package/dist/hooks/usePlatform.d.ts.map +1 -0
  167. package/dist/hooks/usePlatform.js +10 -0
  168. package/dist/index.css +1 -1
  169. package/dist/index.d.ts +8 -0
  170. package/dist/index.d.ts.map +1 -1
  171. package/dist/index.js +373 -334
  172. package/dist/lang/locales/ui_en.json.js +15 -15
  173. package/dist/lang/locales/ui_es.json.js +13 -13
  174. package/dist/lang/locales/ui_ru.json.js +12 -12
  175. package/dist/lib/contentImport/lexicalSerializer.js +59 -47
  176. package/dist/lib/contentImport/utils.d.ts.map +1 -1
  177. package/dist/lib/layersVisitData.d.ts +13 -0
  178. package/dist/lib/layersVisitData.d.ts.map +1 -0
  179. package/dist/lib/layersVisitData.js +37 -0
  180. package/dist/store/featureProgress.d.ts +39 -0
  181. package/dist/store/featureProgress.d.ts.map +1 -0
  182. package/dist/store/featureProgress.js +68 -0
  183. package/dist/store/plansModal.d.ts.map +1 -1
  184. package/dist/store/plansModal.js +8 -6
  185. package/docs/README.md +499 -499
  186. package/package.json +75 -74
@@ -0,0 +1,164 @@
1
+ const e = [
2
+ {
3
+ path: "color-and-gradients",
4
+ id: "colorGradients",
5
+ url: "https://images.superfamous.com/36-Gradients",
6
+ items: [
7
+ "/gradients_2.webp",
8
+ "/gradients_3.webp",
9
+ "/gradients_4.webp",
10
+ "/gradients_5.webp",
11
+ "/gradients_8.webp",
12
+ "/gradients_10.webp",
13
+ "/gradients_11.webp",
14
+ "/solid_beige.webp",
15
+ "/solid_blue.webp",
16
+ "/solid_red.webp",
17
+ "/solid_yellow.webp"
18
+ ]
19
+ },
20
+ {
21
+ path: "indian-art",
22
+ id: "theIndianEdition",
23
+ url: "https://www.artisera.com/pages/fine-art",
24
+ items: [
25
+ "/5-acquatinte-01.jpg",
26
+ "/5-acquatinte-03.jpg",
27
+ "/5-acquatinte-04.jpg",
28
+ "/5-acquatinte-05.jpg",
29
+ "/1280px-Edwin_Lord_Weeks_-_The_Taj_Mahal_-_Walters_37316.jpg",
30
+ "/Ethnic-Serendipity-_-Acrylic-on-canvas-_48-x-84-inches-_-9600.jpg",
31
+ "/Raja_Ravi_Varma,_Galaxy_of_Musicians.jpg",
32
+ "/T12511_10.webp",
33
+ "/screen-2023-07-04-00-04-38.jpg"
34
+ ]
35
+ },
36
+ {
37
+ path: "james-webb-telescope",
38
+ id: "jamesWebbTelescope",
39
+ url: "https://webbtelescope.org",
40
+ items: ["/webb1.jpg", "/webb2.webp", "/webb3.jpg", "/webb4.jpg"]
41
+ },
42
+ {
43
+ path: "japanese-print",
44
+ id: "theMetMuseumJapanesePrints",
45
+ url: "https://www.metmuseum.org/art/the-collection",
46
+ items: [
47
+ "/woodcuts_1.jpg",
48
+ "/woodcuts_2.jpg",
49
+ "/woodcuts_3.jpg",
50
+ "/woodcuts_4.jpg",
51
+ "/woodcuts_5.jpg",
52
+ "/woodcuts_6.jpg",
53
+ "/woodcuts_7.jpg",
54
+ "/woodcuts_8.jpg",
55
+ "/woodcuts_9.jpg",
56
+ "/woodcuts_10.jpg",
57
+ "/woodcuts_11.jpg",
58
+ "/woodcuts_13.jpg",
59
+ "/woodcuts_14.jpg",
60
+ "/woodcuts_15.jpg",
61
+ "/woodcuts_16.jpg",
62
+ "/woodcuts_sekka_1.jpg",
63
+ "/woodcuts_sekka_2.jpg",
64
+ "/woodcuts_sekka_3.jpg"
65
+ ]
66
+ },
67
+ {
68
+ path: "met-museum",
69
+ id: "theMetMuseum",
70
+ url: "https://www.metmuseum.org/art/the-collection",
71
+ items: [
72
+ "/met_arnold_bocklin_1880.jpg",
73
+ "/met_bruegel_1565.jpg",
74
+ "/met_camille_pissarro_1896.jpg",
75
+ "/met_canaletto_1720.jpg",
76
+ "/met_cezanne_1890.jpg",
77
+ "/met_edgar_degas_1874.jpg",
78
+ "/met_emanuel_leutze.jpg",
79
+ "/met_fitz_henry_lane.jpg",
80
+ "/met_frederic_edwin_church_1871.jpg",
81
+ "/met_georges_seurat_1884.jpg",
82
+ "/met_gerome_1890.jpg",
83
+ "/met_goya_1789.jpg",
84
+ "/met_henri_rousseau_1907.webp",
85
+ "/met_henri_tl_1892.jpg",
86
+ "/met_henry_lerolle_1885.jpg",
87
+ "/met_horace_pippin.jpg",
88
+ "/met_jean_beraud.jpg",
89
+ "/met_john_singer_sargent_morocco.jpg",
90
+ "/met_joseph_hidley_1870.jpg",
91
+ "/met_jules_tavernier_1878.jpg",
92
+ "/met_klimt_1912.jpg",
93
+ "/met_paul_signac.jpg",
94
+ "/met_terracotta_funerary_plaque.jpg",
95
+ "/met_the_unicorn_in_captivity.jpg",
96
+ "/met_vincent_van_gogh_cradle.jpg",
97
+ "/met_vincent_van_gogh_ginoux.jpg",
98
+ "/met_vincent_van_gogh_irises.jpg",
99
+ "/met_vincent_van_gogh_oleanders.jpg",
100
+ "/met_william_turner_1835.jpg",
101
+ "/met_winslow_homer_maine_coast.jpg"
102
+ ]
103
+ },
104
+ {
105
+ path: "nasa-archive",
106
+ id: "nasaArchive",
107
+ url: "https://www.flickr.com/photos/nasacommons/",
108
+ items: [
109
+ "/nasa_bruce_mccandless_spacewalk.webp",
110
+ "/nasa_buzz_aldrin_on_the_moon.webp",
111
+ "/nasa_carina_nebula.jpg",
112
+ "/nasa_eagle_in_lunar_orbit.webp",
113
+ "/nasa_earth_grid.webp",
114
+ "/nasa_eva_during_skylab_3.webp",
115
+ "/nasa_fingerprints_of_water_on_the_sand.webp",
116
+ "/nasa_great_sandy_desert_australia.webp",
117
+ "/nasa_ibm_type_704.webp",
118
+ "/nasa_multi-axis_gimbal_rig.webp",
119
+ "/nasa_new_york_city_grid.webp",
120
+ "/nasa_reduced_gravity_walking_simulator.webp",
121
+ "/nasa_robert_stewart_spacewalk.jpg",
122
+ "/nasa_robert_stewart_spacewalk_2.jpg",
123
+ "/nasa_space_shuttle_challenger.jpg",
124
+ "/nasa_space_shuttle_columbia.jpg",
125
+ "/nasa_space_shuttle_columbia_and_sunrise.webp",
126
+ "/nasa_the_blue_marble.webp",
127
+ "/nasa_tim_peake_spacewalk.webp",
128
+ "/nasa_transonic_tunnel.webp",
129
+ "/nasa_wrights_first_flight.webp"
130
+ ]
131
+ },
132
+ {
133
+ path: "patterns",
134
+ id: "theMetMuseumPatterns",
135
+ url: "https://www.metmuseum.org/art/the-collection",
136
+ items: [
137
+ "/met_silk_kashan_carpet.webp",
138
+ "/met_william_morris_1875.webp",
139
+ "/met_william_morris_1877_willow.webp",
140
+ "/met_william_morris_1878.webp"
141
+ ]
142
+ },
143
+ {
144
+ path: "rijks-museum",
145
+ id: "rijkmuseum",
146
+ url: "https://www.rijksmuseum.nl/en/rijksstudio?ii=0&p=0&from=2023-07-02T23%3A55%3A33.8008630Z",
147
+ items: [
148
+ "/rijksmuseum_avercamp_1608.webp",
149
+ "/rijksmuseum_avercamp_1620.webp",
150
+ "/rijksmuseum_claesz_1628.webp",
151
+ "/rijksmuseum_jan_lievens_1627.jpg",
152
+ "/rijksmuseum_jansz_1636.jpg",
153
+ "/rijksmuseum_jansz_1637.jpg",
154
+ "/rijksmuseum_jansz_1641.jpg",
155
+ "/rijksmuseum_jansz_1649.webp",
156
+ "/rijksmuseum_mignons_1660.webp",
157
+ "/rijksmuseum_rembrandt_1642.webp",
158
+ "/rijksmuseum_vermeer_the_milkmaid.jpg"
159
+ ]
160
+ }
161
+ ];
162
+ export {
163
+ e as coverCollections
164
+ };
@@ -1,2 +1,3 @@
1
+ export * from './coverCollections';
1
2
  export * from './FilePicker';
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/FilePicker/index.tsx"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/FilePicker/index.tsx"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC"}
@@ -1,4 +1,4 @@
1
- const t = "_themeProvider_1lm79_1", o = "_root_1lm79_7", e = "_container_1lm79_36", n = "_media_1lm79_42", _ = "_background_1lm79_46", s = "_stepRoot_1lm79_59", c = "_content_1lm79_104", l = "_mediaInner_1lm79_169", i = "_stepTitle_1lm79_332", a = "_stepDescription_1lm79_355", r = "_stepIndicator_1lm79_369", d = "_stepIndicatorIcon_1lm79_386", m = "_focusBox_1lm79_405", p = "_dropzone_1lm79_414", u = "_allSlidesLayout_1lm79_432", I = "_allSlidesLayoutStep_1lm79_438", S = {
1
+ const t = "_themeProvider_1fk4v_1", o = "_root_1fk4v_13", e = "_container_1fk4v_71", n = "_media_1fk4v_83", _ = "_background_1fk4v_91", s = "_stepRoot_1fk4v_117", c = "_content_1fk4v_207", i = "_mediaInner_1fk4v_337", a = "_stepTitle_1fk4v_663", r = "_stepDescription_1fk4v_709", d = "_stepIndicator_1fk4v_737", p = "_stepIndicatorIcon_1fk4v_771", l = "_focusBox_1fk4v_809", f = "_dropzone_1fk4v_827", k = "_allSlidesLayout_1fk4v_863", v = "_allSlidesLayoutStep_1fk4v_875", u = {
2
2
  themeProvider: t,
3
3
  root: o,
4
4
  container: e,
@@ -6,32 +6,32 @@ const t = "_themeProvider_1lm79_1", o = "_root_1lm79_7", e = "_container_1lm79_3
6
6
  background: _,
7
7
  stepRoot: s,
8
8
  content: c,
9
- mediaInner: l,
10
- stepTitle: i,
11
- stepDescription: a,
12
- stepIndicator: r,
13
- stepIndicatorIcon: d,
14
- focusBox: m,
15
- dropzone: p,
16
- allSlidesLayout: u,
17
- allSlidesLayoutStep: I
9
+ mediaInner: i,
10
+ stepTitle: a,
11
+ stepDescription: r,
12
+ stepIndicator: d,
13
+ stepIndicatorIcon: p,
14
+ focusBox: l,
15
+ dropzone: f,
16
+ allSlidesLayout: k,
17
+ allSlidesLayoutStep: v
18
18
  };
19
19
  export {
20
- u as allSlidesLayout,
21
- I as allSlidesLayoutStep,
20
+ k as allSlidesLayout,
21
+ v as allSlidesLayoutStep,
22
22
  _ as background,
23
23
  e as container,
24
24
  c as content,
25
- S as default,
26
- p as dropzone,
27
- m as focusBox,
25
+ u as default,
26
+ f as dropzone,
27
+ l as focusBox,
28
28
  n as media,
29
- l as mediaInner,
29
+ i as mediaInner,
30
30
  o as root,
31
- a as stepDescription,
32
- r as stepIndicator,
33
- d as stepIndicatorIcon,
31
+ r as stepDescription,
32
+ d as stepIndicator,
33
+ p as stepIndicatorIcon,
34
34
  s as stepRoot,
35
- i as stepTitle,
35
+ a as stepTitle,
36
36
  t as themeProvider
37
37
  };
@@ -1,26 +1,26 @@
1
- import { jsx as e, jsxs as s, Fragment as c } from "react/jsx-runtime";
2
- import { memo as d } from "react";
3
- import { createPortal as h } from "react-dom";
4
- import { Stack as u, Flex as b } from "@mantine/core";
5
- import { AnimatePresence as y, motion as k } from "framer-motion";
1
+ import { jsx as e, jsxs as s, Fragment as p } from "react/jsx-runtime";
2
+ import { memo as h } from "react";
3
+ import { createPortal as u } from "react-dom";
4
+ import { Stack as b, Flex as y } from "@mantine/core";
5
+ import { AnimatePresence as v, motion as k } from "framer-motion";
6
6
  import { Copyright as S } from "../../Copyright/index.js";
7
7
  import { animations as w } from "../helpers/slides.js";
8
- import { useFormViewerStore as p } from "../store/formStore.js";
9
- import { startStepReselect as v, themeReselect as F } from "../store/selectors.js";
10
- import { Navigation as x } from "./Navigation/Navigation.js";
11
- import { getImageFilter as $, Step as R } from "./Step.js";
8
+ import { useFormViewerStore as d } from "../store/formStore.js";
9
+ import { startStepReselect as x, themeReselect as F } from "../store/selectors.js";
10
+ import { Navigation as $ } from "./Navigation/Navigation.js";
11
+ import { getImageFilter as R, Step as j } from "./Step.js";
12
12
  import { ProgressLine as A } from "./fields/ProgressLine.js";
13
13
  import g from "../FormViewer.module.css.js";
14
14
  import { useSteps as C } from "../hooks/useCreateFormContext.js";
15
- import { useFormMobile as j } from "../hooks/useFormMobile.js";
15
+ import { useFormMobile as M } from "../hooks/useFormMobile.js";
16
16
  import { useActiveStep as N } from "../hooks/useActiveStep.js";
17
- const T = ({
17
+ const U = ({
18
18
  NoStepSlot: m,
19
19
  copyright: l
20
20
  }) => {
21
- const { useStore: a } = p();
22
- return a(v) ? /* @__PURE__ */ e(P, { copyright: l }) : /* @__PURE__ */ e(
23
- u,
21
+ const { useStore: a } = d();
22
+ return a(x) ? /* @__PURE__ */ e(P, { copyright: l }) : /* @__PURE__ */ e(
23
+ b,
24
24
  {
25
25
  align: "center",
26
26
  justify: "center",
@@ -31,11 +31,11 @@ const T = ({
31
31
  children: /* @__PURE__ */ e(m, {})
32
32
  }
33
33
  );
34
- }, P = d(({ copyright: m }) => {
35
- const { anim: l } = C(), { ref: a } = j(), { useStore: n } = p(), i = n((r) => r.config.settings), f = n((r) => r.editing), t = n(F), o = N();
36
- return /* @__PURE__ */ s(c, { children: [
37
- h(
38
- /* @__PURE__ */ s(c, { children: [
34
+ }, P = h(({ copyright: m }) => {
35
+ const { anim: l } = C(), { ref: a, isMobile: o } = M(), { useStore: c } = d(), r = c((n) => n.config.settings), f = c((n) => n.editing), t = c(F), i = N();
36
+ return /* @__PURE__ */ s(p, { children: [
37
+ u(
38
+ /* @__PURE__ */ s(p, { children: [
39
39
  /* @__PURE__ */ e(
40
40
  "link",
41
41
  {
@@ -70,7 +70,7 @@ const T = ({
70
70
  "--bg-fit": t.background?.fit || "cover",
71
71
  "--bg-image": t.background?.image ? `url(${t.background.image})` : "none",
72
72
  "--bg-color": t.background?.color || "none",
73
- "--bg-image-filter": $({
73
+ "--bg-image-filter": R({
74
74
  brightness: t.background?.brightness || 100,
75
75
  blur: t.background?.blur,
76
76
  layout: "background"
@@ -78,7 +78,7 @@ const T = ({
78
78
  }
79
79
  }
80
80
  ),
81
- /* @__PURE__ */ e(y, { mode: "wait", children: o && /* @__PURE__ */ e(
81
+ /* @__PURE__ */ e(v, { mode: "wait", children: i && /* @__PURE__ */ e(
82
82
  k.div,
83
83
  {
84
84
  style: {
@@ -91,43 +91,45 @@ const T = ({
91
91
  transition: {
92
92
  duration: 0.25
93
93
  },
94
- ...w[i.slideAnimation][l],
94
+ ...w[r.slideAnimation][l],
95
95
  animate: { opacity: 1, y: 0, x: 0 },
96
96
  children: /* @__PURE__ */ e(
97
- R,
97
+ j,
98
98
  {
99
- step: o,
100
- theme: o.theme
99
+ step: i,
100
+ theme: i.theme
101
101
  },
102
- o.id
102
+ i.id
103
103
  )
104
104
  },
105
- o.id
105
+ i.id
106
106
  ) })
107
107
  ] }),
108
108
  /* @__PURE__ */ s(
109
- b,
109
+ y,
110
110
  {
111
- pos: "absolute",
112
- bottom: 24,
113
- right: 24,
114
- onClick: f ? (r) => r.preventDefault() : void 0,
111
+ pos: o ? "relative" : "absolute",
112
+ bottom: o ? void 0 : 24,
113
+ right: o ? void 0 : 24,
114
+ justify: o ? "flex-end" : void 0,
115
+ p: o ? "8px 12px" : void 0,
116
+ onClick: f ? (n) => n.preventDefault() : void 0,
115
117
  children: [
116
- i.copyright && /* @__PURE__ */ e(
118
+ r.copyright && /* @__PURE__ */ e(
117
119
  S,
118
120
  {
119
121
  size: "sm",
120
- color: o?.theme?.primaryColor,
122
+ color: i?.theme?.primaryColor,
121
123
  title: m
122
124
  }
123
125
  ),
124
- i.navArrows && i.layout === "slides" && /* @__PURE__ */ e(x, {})
126
+ r.navArrows && r.layout === "slides" && /* @__PURE__ */ e($, {})
125
127
  ]
126
128
  }
127
129
  ),
128
- i.progressBar && /* @__PURE__ */ e(A, {})
130
+ r.progressBar && /* @__PURE__ */ e(A, {})
129
131
  ] });
130
132
  });
131
133
  export {
132
- T as OneSlideLayout
134
+ U as OneSlideLayout
133
135
  };
@@ -1,4 +1,4 @@
1
- const s = "_dragOptions_gdwk6_1", t = {
1
+ const s = "_dragOptions_8pbru_1", t = {
2
2
  dragOptions: s
3
3
  };
4
4
  export {
@@ -1,4 +1,4 @@
1
- const o = "_optionsContainer_1xro2_1", n = {
1
+ const o = "_optionsContainer_19qy4_1", n = {
2
2
  optionsContainer: o
3
3
  };
4
4
  export {
@@ -1,4 +1,4 @@
1
- const t = "_editableContent_a0zig_1", e = {
1
+ const t = "_editableContent_14jzv_1", e = {
2
2
  editableContent: t
3
3
  };
4
4
  export {
@@ -1,14 +1,14 @@
1
1
  import { jsx as o, jsxs as I } from "react/jsx-runtime";
2
2
  import { memo as L, useMemo as N } from "react";
3
- import { useMantineTheme as _, parseThemeColor as x, Radio as z, alpha as p, Checkbox as A, Flex as D, ActionIcon as P } from "@mantine/core";
4
- import { IconTrash as B, IconPhoto as H } from "@tabler/icons-react";
5
- import { useAsyncStatus as M } from "../../../../../hooks/useAsyncStatus.js";
6
- import { combineClasses as g, STATIC_CLASSES as s } from "../../../helpers/staticClasses.js";
7
- import { useFormViewerStore as X } from "../../../store/formStore.js";
8
- import { EditableContent as w } from "../EditableContent/EditableContent.js";
3
+ import { useMantineTheme as _, parseThemeColor as x, Radio as z, alpha as p, Checkbox as P, Flex as A, ActionIcon as D } from "@mantine/core";
4
+ import { IconTrash as w, IconPhoto as B } from "@tabler/icons-react";
5
+ import { useAsyncStatus as H } from "../../../../../hooks/useAsyncStatus.js";
6
+ import { combineClasses as h, STATIC_CLASSES as a } from "../../../helpers/staticClasses.js";
7
+ import { useFormViewerStore as K } from "../../../store/formStore.js";
8
+ import { EditableContent as R } from "../EditableContent/EditableContent.js";
9
9
  import u from "./SelectableCard.module.css.js";
10
- import { FilePicker as F } from "../../../../FilePicker/FilePicker.js";
11
- const K = "a2SNktIFgNCvXITBZgpup1T8mtSdJIM6TIZlndbRuRg", R = "TBp2lqNzl0orFQtaXgwymH4UDM0kbAVe", oo = L(
10
+ import { FilePicker as M } from "../../../../FilePicker/FilePicker.js";
11
+ const X = "a2SNktIFgNCvXITBZgpup1T8mtSdJIM6TIZlndbRuRg", F = "1kKxu8nbV5rsb4ieGGw0zERUSw0knTNr", oo = L(
12
12
  ({
13
13
  label: i,
14
14
  active: r,
@@ -22,21 +22,21 @@ const K = "a2SNktIFgNCvXITBZgpup1T8mtSdJIM6TIZlndbRuRg", R = "TBp2lqNzl0orFQtaXg
22
22
  theme: l,
23
23
  onUpload: O
24
24
  }) => {
25
- const { useStore: S } = X(), y = S((d) => d.editing), b = _(), a = x({
25
+ const { useStore: S } = K(), b = S((d) => d.editing), f = _(), s = x({
26
26
  color: l?.primaryColor || "",
27
- theme: b
28
- }), f = N(() => c === "radio" ? /* @__PURE__ */ o(
27
+ theme: f
28
+ }), k = N(() => c === "radio" ? /* @__PURE__ */ o(
29
29
  z,
30
30
  {
31
31
  style: {
32
- "--color": a.value,
33
- "--color-shadow": p(a.value, 0.5)
32
+ "--color": s.value,
33
+ "--color-shadow": p(s.value, 0.5)
34
34
  },
35
35
  classNames: {
36
- radio: g(
36
+ radio: h(
37
37
  u.radio,
38
- s.RADIO,
39
- r ? s.RADIO_SELECTED : ""
38
+ a.RADIO,
39
+ r ? a.RADIO_SELECTED : ""
40
40
  )
41
41
  },
42
42
  disabled: n,
@@ -47,19 +47,19 @@ const K = "a2SNktIFgNCvXITBZgpup1T8mtSdJIM6TIZlndbRuRg", R = "TBp2lqNzl0orFQtaXg
47
47
  radius: "xl"
48
48
  }
49
49
  ) : /* @__PURE__ */ o(
50
- A,
50
+ P,
51
51
  {
52
52
  styles: {
53
53
  input: {
54
- "--color": a.value,
55
- "--color-shadow": p(a.value, 0.5)
54
+ "--color": s.value,
55
+ "--color-shadow": p(s.value, 0.5)
56
56
  }
57
57
  },
58
58
  classNames: {
59
- input: g(
59
+ input: h(
60
60
  u.checkbox,
61
- s.CHECKBOX,
62
- r ? s.CHECKBOX_SELECTED : ""
61
+ a.CHECKBOX,
62
+ r ? a.CHECKBOX_SELECTED : ""
63
63
  )
64
64
  },
65
65
  disabled: n,
@@ -70,31 +70,31 @@ const K = "a2SNktIFgNCvXITBZgpup1T8mtSdJIM6TIZlndbRuRg", R = "TBp2lqNzl0orFQtaXg
70
70
  }
71
71
  ), [
72
72
  r,
73
- a.value,
73
+ s.value,
74
74
  n,
75
75
  c,
76
76
  l?.primaryColor,
77
77
  l?.size
78
- ]), k = {
79
- "--text-color": a.value,
80
- "--border-color": a.value,
81
- "--bg-color": p(a.value, 0.05)
82
- }, h = e || m, v = g(
78
+ ]), y = {
79
+ "--text-color": s.value,
80
+ "--border-color": s.value,
81
+ "--bg-color": p(s.value, 0.05)
82
+ }, g = e || m, v = h(
83
83
  u.card,
84
- c === "radio" ? s.MULTIPLE_CHOICE_OPTION : s.CHECKBOX,
85
- r ? c === "radio" ? s.MULTIPLE_CHOICE_OPTION_SELECTED : s.CHECKBOX_SELECTED : ""
84
+ c === "radio" ? a.MULTIPLE_CHOICE_OPTION : a.CHECKBOX,
85
+ r ? c === "radio" ? a.MULTIPLE_CHOICE_OPTION_SELECTED : a.CHECKBOX_SELECTED : ""
86
86
  );
87
87
  return /* @__PURE__ */ I(
88
88
  "div",
89
89
  {
90
- style: k,
90
+ style: y,
91
91
  className: v,
92
92
  "data-active": r,
93
93
  "data-disabled": n,
94
- onClick: h ? void 0 : E,
94
+ onClick: g ? void 0 : E,
95
95
  "data-radius": l?.borderRadius,
96
96
  children: [
97
- y ? /* @__PURE__ */ o(
97
+ b ? /* @__PURE__ */ o(
98
98
  j,
99
99
  {
100
100
  hasImage: !!t,
@@ -105,10 +105,10 @@ const K = "a2SNktIFgNCvXITBZgpup1T8mtSdJIM6TIZlndbRuRg", R = "TBp2lqNzl0orFQtaXg
105
105
  }
106
106
  ) : /* @__PURE__ */ o(T, { image: t }),
107
107
  /* @__PURE__ */ I("div", { className: u.controls, children: [
108
- C && f,
109
- h ? /* @__PURE__ */ I(D, { miw: 0, flex: 1, children: [
108
+ C && k,
109
+ g ? /* @__PURE__ */ I(A, { miw: 0, flex: 1, children: [
110
110
  e && /* @__PURE__ */ o(
111
- w,
111
+ R,
112
112
  {
113
113
  value: i,
114
114
  placeholder: "Option",
@@ -117,7 +117,7 @@ const K = "a2SNktIFgNCvXITBZgpup1T8mtSdJIM6TIZlndbRuRg", R = "TBp2lqNzl0orFQtaXg
117
117
  }
118
118
  }
119
119
  ),
120
- m && /* @__PURE__ */ o(P, { color: "red", variant: "subtle", onClick: m, children: /* @__PURE__ */ o(B, { size: "1em" }) })
120
+ m && /* @__PURE__ */ o(D, { color: "red", variant: "subtle", onClick: m, children: /* @__PURE__ */ o(w, { size: "1em" }) })
121
121
  ] }) : i
122
122
  ] })
123
123
  ]
@@ -131,7 +131,7 @@ const K = "a2SNktIFgNCvXITBZgpup1T8mtSdJIM6TIZlndbRuRg", R = "TBp2lqNzl0orFQtaXg
131
131
  style: {
132
132
  backgroundImage: `url(${i})`
133
133
  },
134
- children: !i && /* @__PURE__ */ o(H, { size: 32, color: "var(--primary-color)" })
134
+ children: !i && /* @__PURE__ */ o(B, { size: 32, color: "var(--primary-color)" })
135
135
  }
136
136
  ), j = ({
137
137
  children: i,
@@ -140,16 +140,16 @@ const K = "a2SNktIFgNCvXITBZgpup1T8mtSdJIM6TIZlndbRuRg", R = "TBp2lqNzl0orFQtaXg
140
140
  hasImage: C,
141
141
  onUpload: t
142
142
  }) => {
143
- const { isLoading: E, onSubmit: c } = M();
143
+ const { isLoading: E, onSubmit: c } = H();
144
144
  return /* @__PURE__ */ o(
145
- F,
145
+ M,
146
146
  {
147
147
  hasImage: C,
148
148
  onChange: (e) => r?.({
149
149
  image: e
150
150
  }),
151
- unsplashClientId: K,
152
- giphyToken: R,
151
+ unsplashClientId: X,
152
+ giphyToken: F,
153
153
  onRemove: n,
154
154
  onUpload: (e, m) => c(async () => t?.(e, m)),
155
155
  uploading: E,
@@ -1,15 +1,15 @@
1
- const o = "_card_aspur_1", c = "_image_aspur_48", s = "_controls_aspur_60", a = "_radio_aspur_82", r = "_checkbox_aspur_87", _ = {
1
+ const o = "_card_18zj4_1", c = "_image_18zj4_95", _ = "_controls_18zj4_119", s = "_radio_18zj4_163", t = "_checkbox_18zj4_173", a = {
2
2
  card: o,
3
3
  image: c,
4
- controls: s,
5
- radio: a,
6
- checkbox: r
4
+ controls: _,
5
+ radio: s,
6
+ checkbox: t
7
7
  };
8
8
  export {
9
9
  o as card,
10
- r as checkbox,
11
- s as controls,
12
- _ as default,
10
+ t as checkbox,
11
+ _ as controls,
12
+ a as default,
13
13
  c as image,
14
- a as radio
14
+ s as radio
15
15
  };
@@ -1,7 +1,7 @@
1
- const a = "_image_1om5a_1", e = {
2
- image: a
1
+ const e = "_image_jcfli_1", a = {
2
+ image: e
3
3
  };
4
4
  export {
5
- e as default,
6
- a as image
5
+ a as default,
6
+ e as image
7
7
  };
@@ -1 +1 @@
1
- {"version":3,"file":"useCreateFormContext.d.ts","sourceRoot":"","sources":["../../../../src/components/FormViewer/hooks/useCreateFormContext.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EAKlB,MAAM,OAAO,CAAC;AAEf,OAAO,EAAE,iBAAiB,EAAW,MAAM,eAAe,CAAC;AAO3D,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAG1C,KAAK,YAAY,GAAG;IAClB,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,IAAI,EAAE,SAAS,CAAC;IAChB,IAAI,EAAE,iBAAiB,CAAC,eAAe,CAAC,CAAC;IACzC,QAAQ,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;CACrE,CAAC;AAEF,eAAO,MAAM,YAAY,uCAExB,CAAC;AAEF,eAAO,MAAM,QAAQ,oBAAiC,CAAC;AAEvD,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG;IAClD,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,KAAK,yBAAyB,GAAG;IAC/B,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,eAAe,KAAK,IAAI,CAAC;IAC7C,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,eAAe,KAAK,IAAI,CAAC;CACpD,CAAC;AAyGF,kEAAkE;AAClE,eAAO,MAAM,mBAAmB,GAAI,wBAGjC,iBAAiB,CAAC,yBAAyB,CAAC,4CAK9C,CAAC"}
1
+ {"version":3,"file":"useCreateFormContext.d.ts","sourceRoot":"","sources":["../../../../src/components/FormViewer/hooks/useCreateFormContext.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EAKlB,MAAM,OAAO,CAAC;AAEf,OAAO,EAAE,iBAAiB,EAAW,MAAM,eAAe,CAAC;AAO3D,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAG1C,KAAK,YAAY,GAAG;IAClB,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,IAAI,EAAE,SAAS,CAAC;IAChB,IAAI,EAAE,iBAAiB,CAAC,eAAe,CAAC,CAAC;IACzC,QAAQ,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;CACrE,CAAC;AAEF,eAAO,MAAM,YAAY,uCAExB,CAAC;AAEF,eAAO,MAAM,QAAQ,oBAAiC,CAAC;AAEvD,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG;IAClD,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,KAAK,yBAAyB,GAAG;IAC/B,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,eAAe,KAAK,IAAI,CAAC;IAC7C,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,eAAe,KAAK,IAAI,CAAC;CACpD,CAAC;AA2GF,kEAAkE;AAClE,eAAO,MAAM,mBAAmB,GAAI,wBAGjC,iBAAiB,CAAC,yBAAyB,CAAC,4CAK9C,CAAC"}
@@ -34,26 +34,26 @@ const d = h(
34
34
  }) => {
35
35
  const { useStore: a, api: i } = A(), { currentSteps: l } = a(T), n = j(), [f, p] = b("next"), { getValidation: x } = y(), r = E({
36
36
  initialValues: l?.reduce(
37
- (e, o) => (o.controls?.forEach((t) => {
38
- e[t.id] = w[t.controlType];
39
- }), e),
37
+ (o, e) => (e.controls?.forEach((t) => {
38
+ o[t.id] = w[t.controlType];
39
+ }), o),
40
40
  {
41
41
  submissionId: crypto.randomUUID()
42
42
  }
43
43
  ),
44
- validate: l?.reduce((e, o) => (o.controls?.forEach((t) => e[t.id] = x(t)), e), {}),
44
+ validate: l?.reduce((o, e) => (e.controls?.forEach((t) => o[t.id] = x(t)), o), {}),
45
45
  onValuesChange: u
46
46
  }), c = m(() => {
47
47
  if (!n || (n.controls || []).map((t) => r.validateField(t.id)).some((t) => t.hasError)) return;
48
- const o = g(n, l, r);
49
- p("next"), setTimeout(() => {
50
- i.setActiveStepId(o?.id || "");
51
- }, 0), o?.isEnd && (s?.(r.getValues()), new F().addConfetti());
48
+ const e = g(n, l, r);
49
+ p("next"), e && setTimeout(() => {
50
+ i.setActiveStepId(e.id);
51
+ }, 0), e?.isEnd && (s?.(r.getValues()), new F().addConfetti());
52
52
  }, [n, i, l, r, s]), S = m(() => {
53
53
  p("prev"), setTimeout(() => i.backActiveStep(), 0);
54
54
  }, [i]), v = m(
55
- (e, o) => {
56
- r.setFieldValue(e, o), n?.autoSubmit && c();
55
+ (o, e) => {
56
+ r.setFieldValue(o, e), n?.autoSubmit && c();
57
57
  },
58
58
  [n?.autoSubmit, r, c]
59
59
  );