@drawbridge/components 0.1.36 → 0.1.37

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 (338) hide show
  1. package/components/styles.css +355 -68
  2. package/dist/advertisement.js +20 -15
  3. package/dist/advertisement.mjs +20 -15
  4. package/dist/bridge/advertisements.js +2 -4
  5. package/dist/bridge/advertisements.mjs +3 -5
  6. package/dist/bridge/fields.js +6 -89
  7. package/dist/bridge/fields.mjs +7 -89
  8. package/dist/bridge/form-subdomain-embed.js +1 -5
  9. package/dist/bridge/form-subdomain-embed.mjs +1 -5
  10. package/dist/bridge/form-subdomain-header.js +14 -21
  11. package/dist/bridge/form-subdomain-header.mjs +14 -20
  12. package/dist/bridge/form-subdomain-issue.js +8 -17
  13. package/dist/bridge/form-subdomain-issue.mjs +8 -17
  14. package/dist/bridge/form-subdomain-missions.js +52 -58
  15. package/dist/bridge/form-subdomain-missions.mjs +54 -60
  16. package/dist/bridge/form-subdomain.js +94 -223
  17. package/dist/bridge/form-subdomain.mjs +96 -222
  18. package/dist/bridge/lib/entry.js +6 -61
  19. package/dist/bridge/lib/entry.mjs +5 -51
  20. package/dist/bridge/lib/order.js +0 -23
  21. package/dist/bridge/lib/order.mjs +0 -20
  22. package/dist/bridge/template-layout.js +2 -5
  23. package/dist/bridge/template-layout.mjs +3 -6
  24. package/dist/bridge/template-modal.js +15 -82
  25. package/dist/bridge/template-modal.mjs +16 -83
  26. package/dist/bridge/template-preview.js +208 -0
  27. package/dist/bridge/template-preview.mjs +173 -0
  28. package/dist/bridge/template-subdomain-gallery.js +75 -126
  29. package/dist/bridge/template-subdomain-gallery.mjs +75 -122
  30. package/dist/bridge/template-subdomain.js +14 -16
  31. package/dist/bridge/template-subdomain.mjs +15 -17
  32. package/dist/dashboard/avatar.js +0 -5
  33. package/dist/dashboard/avatar.mjs +0 -5
  34. package/dist/dashboard/card-affiliate.js +2 -3
  35. package/dist/dashboard/card-affiliate.mjs +2 -3
  36. package/dist/dashboard/card-campaign-switch.js +9 -34
  37. package/dist/dashboard/card-campaign-switch.mjs +8 -32
  38. package/dist/dashboard/card-connection.js +91 -51
  39. package/dist/dashboard/card-connection.mjs +89 -50
  40. package/dist/dashboard/card-order.js +14 -6
  41. package/dist/dashboard/card-order.mjs +14 -6
  42. package/dist/dashboard/card-section.js +26 -69
  43. package/dist/dashboard/card-section.mjs +26 -65
  44. package/dist/dashboard/card-tile.js +35 -3
  45. package/dist/dashboard/card-tile.mjs +34 -3
  46. package/dist/dashboard/device.js +95 -0
  47. package/dist/dashboard/device.mjs +72 -0
  48. package/dist/dashboard/drawer-subscription.js +14 -52
  49. package/dist/dashboard/drawer-subscription.mjs +14 -52
  50. package/dist/dashboard/drawer.js +3 -20
  51. package/dist/dashboard/drawer.mjs +4 -21
  52. package/dist/dashboard/dropdown.js +2 -6
  53. package/dist/dashboard/dropdown.mjs +2 -6
  54. package/dist/dashboard/form-admin-subscription-custom.js +8 -72
  55. package/dist/dashboard/form-admin-subscription-custom.mjs +8 -72
  56. package/dist/dashboard/form-ai.js +148 -0
  57. package/dist/dashboard/form-ai.mjs +148 -1
  58. package/dist/dashboard/form-filters-analytics.js +62 -85
  59. package/dist/dashboard/form-filters-analytics.mjs +61 -85
  60. package/dist/dashboard/form-organization-brand.js +13 -30
  61. package/dist/dashboard/form-organization-brand.mjs +13 -30
  62. package/dist/dashboard/form-organization-campaign-advertisement.js +112 -38
  63. package/dist/dashboard/form-organization-campaign-advertisement.mjs +112 -38
  64. package/dist/dashboard/form-organization-campaign-agreement.js +210 -402
  65. package/dist/dashboard/form-organization-campaign-agreement.mjs +211 -398
  66. package/dist/dashboard/form-organization-campaign-field-list.js +425 -0
  67. package/dist/dashboard/form-organization-campaign-field-list.mjs +396 -0
  68. package/dist/dashboard/form-organization-campaign-field-number.js +7 -48
  69. package/dist/dashboard/form-organization-campaign-field-number.mjs +7 -48
  70. package/dist/dashboard/form-organization-campaign-field-select.js +4 -15
  71. package/dist/dashboard/form-organization-campaign-field-select.mjs +4 -15
  72. package/dist/dashboard/form-organization-campaign-field-text.js +6 -46
  73. package/dist/dashboard/form-organization-campaign-field-text.mjs +6 -46
  74. package/dist/dashboard/form-organization-campaign-field-textarea.js +13 -22
  75. package/dist/dashboard/form-organization-campaign-field-textarea.mjs +13 -22
  76. package/dist/dashboard/form-organization-campaign-integration-age.js +35 -2
  77. package/dist/dashboard/form-organization-campaign-integration-age.mjs +35 -2
  78. package/dist/dashboard/form-organization-campaign-integration-geocode.js +1 -4
  79. package/dist/dashboard/form-organization-campaign-integration-geocode.mjs +1 -4
  80. package/dist/dashboard/form-organization-campaign-page-embed.js +1 -1
  81. package/dist/dashboard/form-organization-campaign-page-embed.mjs +1 -1
  82. package/dist/dashboard/form-organization-campaign-page-preview.js +2 -1
  83. package/dist/dashboard/form-organization-campaign-page-preview.mjs +2 -1
  84. package/dist/dashboard/form-organization-campaign-page-qr.js +2 -2
  85. package/dist/dashboard/form-organization-campaign-page-qr.mjs +2 -2
  86. package/dist/dashboard/form-organization-campaign-page-share.js +5 -5
  87. package/dist/dashboard/form-organization-campaign-page-share.mjs +5 -5
  88. package/dist/dashboard/form-organization-campaign-page-slug.js +3 -2
  89. package/dist/dashboard/form-organization-campaign-page-slug.mjs +3 -2
  90. package/dist/dashboard/form-organization-campaign-page.js +265 -168
  91. package/dist/dashboard/form-organization-campaign-page.mjs +266 -170
  92. package/dist/dashboard/form-organization-campaign-section.js +107 -125
  93. package/dist/dashboard/form-organization-campaign-section.mjs +107 -121
  94. package/dist/dashboard/form-organization-campaign.js +9 -119
  95. package/dist/dashboard/form-organization-campaign.mjs +9 -118
  96. package/dist/dashboard/form-organization-file-frame.js +1 -7
  97. package/dist/dashboard/form-organization-file-frame.mjs +1 -7
  98. package/dist/dashboard/form-organization-workflow.js +545 -589
  99. package/dist/dashboard/form-organization-workflow.mjs +545 -590
  100. package/dist/dashboard/form-organization.js +0 -22
  101. package/dist/dashboard/form-organization.mjs +0 -22
  102. package/dist/dashboard/form-verify-prize.js +34 -114
  103. package/dist/dashboard/form-verify-prize.mjs +34 -111
  104. package/dist/dashboard/google.js +1 -8
  105. package/dist/dashboard/google.mjs +1 -8
  106. package/dist/dashboard/input-array.js +0 -2
  107. package/dist/dashboard/input-array.mjs +0 -2
  108. package/dist/dashboard/input-combobox.js +9 -0
  109. package/dist/dashboard/input-combobox.mjs +9 -0
  110. package/dist/dashboard/input-date.js +8 -3
  111. package/dist/dashboard/input-date.mjs +8 -3
  112. package/dist/dashboard/input-editor.js +6 -17
  113. package/dist/dashboard/input-editor.mjs +6 -17
  114. package/dist/dashboard/input-fields.js +437 -287
  115. package/dist/dashboard/input-fields.mjs +436 -287
  116. package/dist/dashboard/input-file.js +2 -70
  117. package/dist/dashboard/input-file.mjs +2 -70
  118. package/dist/dashboard/input-font.js +55 -64
  119. package/dist/dashboard/input-font.mjs +55 -64
  120. package/dist/dashboard/input-resource.js +1 -4
  121. package/dist/dashboard/input-resource.mjs +1 -4
  122. package/dist/dashboard/item-row.js +92 -0
  123. package/dist/dashboard/item-row.mjs +63 -0
  124. package/dist/dashboard/lib/features.js +1 -1
  125. package/dist/dashboard/lib/features.mjs +1 -1
  126. package/dist/dashboard/lib/item-list.js +15 -0
  127. package/dist/dashboard/lib/item-list.mjs +14 -0
  128. package/dist/dashboard/lib/rail.js +17 -16
  129. package/dist/dashboard/lib/rail.mjs +16 -15
  130. package/dist/dashboard/lib/sms.js +2 -8
  131. package/dist/dashboard/lib/sms.mjs +1 -6
  132. package/dist/dashboard/list-resource.js +0 -2
  133. package/dist/dashboard/list-resource.mjs +0 -2
  134. package/dist/dashboard/menu.js +5 -54
  135. package/dist/dashboard/menu.mjs +5 -53
  136. package/dist/dashboard/modal.js +4 -19
  137. package/dist/dashboard/modal.mjs +5 -20
  138. package/dist/dashboard/order-sections.js +0 -4
  139. package/dist/dashboard/order-sections.mjs +0 -4
  140. package/dist/dashboard/preview.js +324 -838
  141. package/dist/dashboard/preview.mjs +324 -826
  142. package/dist/dashboard/provider-ui.js +12 -20
  143. package/dist/dashboard/provider-ui.mjs +13 -21
  144. package/dist/dashboard/recharts.js +28 -53
  145. package/dist/dashboard/recharts.mjs +28 -53
  146. package/dist/dashboard/swatch.js +0 -35
  147. package/dist/dashboard/swatch.mjs +0 -31
  148. package/dist/dashboard/table-contacts.js +10 -6
  149. package/dist/dashboard/table-contacts.mjs +10 -6
  150. package/dist/dashboard/table.js +3 -10
  151. package/dist/dashboard/table.mjs +3 -9
  152. package/dist/dashboard/template-dashboard.js +21 -13
  153. package/dist/dashboard/template-dashboard.mjs +21 -12
  154. package/dist/dashboard/template-rail.js +126 -198
  155. package/dist/dashboard/template-rail.mjs +125 -196
  156. package/dist/dashboard/template-socket.js +12 -0
  157. package/dist/dashboard/template-socket.mjs +12 -0
  158. package/dist/dashboard/template-ui.js +11 -20
  159. package/dist/dashboard/template-ui.mjs +13 -22
  160. package/dist/input-checkbox.js +1 -7
  161. package/dist/input-checkbox.mjs +1 -7
  162. package/dist/input-name.js +3 -3
  163. package/dist/input-name.mjs +3 -3
  164. package/dist/input-select.js +1 -3
  165. package/dist/input-select.mjs +1 -3
  166. package/dist/provider-font.js +3 -4
  167. package/dist/provider-font.mjs +3 -4
  168. package/dist/shared/badge.js +0 -15
  169. package/dist/shared/badge.mjs +0 -11
  170. package/dist/shared/carousel.js +7 -11
  171. package/dist/shared/carousel.mjs +7 -11
  172. package/dist/shared/lib/campaign.js +9 -3
  173. package/dist/shared/lib/campaign.mjs +9 -3
  174. package/dist/shared/lib/helpers.js +0 -24
  175. package/dist/shared/lib/helpers.mjs +0 -22
  176. package/dist/shared/lib/video.js +0 -6
  177. package/dist/shared/lib/video.mjs +0 -5
  178. package/dist/shared/sortable.js +10 -27
  179. package/dist/shared/sortable.mjs +10 -27
  180. package/dist/shared/tabs.js +1 -1
  181. package/dist/shared/tabs.mjs +1 -1
  182. package/dist/video.js +9 -127
  183. package/dist/video.mjs +11 -125
  184. package/package.json +20 -176
  185. package/types/bridge/fields.d.ts +1 -6
  186. package/types/bridge/form-subdomain-missions.d.ts +0 -2
  187. package/types/bridge/form-subdomain.d.ts +3 -62
  188. package/types/bridge/lib/entry.d.ts +7 -44
  189. package/types/bridge/lib/order.d.ts +2 -13
  190. package/types/bridge/subdomain-content.d.ts +0 -1
  191. package/types/bridge/template-preview.d.ts +10 -0
  192. package/types/bridge/template-subdomain-gallery.d.ts +1 -13
  193. package/types/dashboard/card-campaign-switch.d.ts +1 -20
  194. package/types/dashboard/card-connection.d.ts +8 -0
  195. package/types/dashboard/card-order.d.ts +2 -2
  196. package/types/dashboard/card-section.d.ts +1 -9
  197. package/types/dashboard/card-tile.d.ts +9 -4
  198. package/types/dashboard/device.d.ts +12 -0
  199. package/types/dashboard/drawer.d.ts +0 -3
  200. package/types/dashboard/form-ai.d.ts +17 -0
  201. package/types/dashboard/form-filters-analytics.d.ts +14 -0
  202. package/types/dashboard/form-organization-brand.d.ts +0 -3
  203. package/types/dashboard/form-organization-campaign-agreement.d.ts +10 -53
  204. package/types/dashboard/form-organization-campaign-field-list.d.ts +36 -0
  205. package/types/dashboard/form-organization-campaign-field-number.d.ts +1 -4
  206. package/types/dashboard/form-organization-campaign-field-select.d.ts +1 -6
  207. package/types/dashboard/form-organization-campaign-field-text.d.ts +1 -5
  208. package/types/dashboard/form-organization-campaign-field-textarea.d.ts +1 -4
  209. package/types/dashboard/form-organization-campaign-integration-age.d.ts +1 -2
  210. package/types/dashboard/form-organization-campaign-integration-geocode.d.ts +0 -2
  211. package/types/dashboard/form-organization-campaign-page.d.ts +15 -9
  212. package/types/dashboard/form-organization-campaign-section.d.ts +8 -24
  213. package/types/dashboard/form-organization-campaign.d.ts +0 -3
  214. package/types/dashboard/form-organization-workflow.d.ts +4 -3
  215. package/types/dashboard/form-organization.d.ts +2 -2
  216. package/types/dashboard/form-verify-prize.d.ts +3 -30
  217. package/types/dashboard/input-combobox.d.ts +2 -0
  218. package/types/dashboard/input-date.d.ts +2 -0
  219. package/types/dashboard/input-editor.d.ts +0 -9
  220. package/types/dashboard/input-fields.d.ts +5 -8
  221. package/types/dashboard/input-file.d.ts +0 -4
  222. package/types/dashboard/input-resource.d.ts +0 -1
  223. package/types/dashboard/item-row.d.ts +25 -0
  224. package/types/dashboard/lib/item-list.d.ts +5 -10
  225. package/types/dashboard/lib/rail.d.ts +1 -0
  226. package/types/dashboard/lib/sms.d.ts +0 -7
  227. package/types/dashboard/modal.d.ts +1 -3
  228. package/types/dashboard/preview.d.ts +10 -65
  229. package/types/dashboard/recharts.d.ts +0 -3
  230. package/types/dashboard/swatch.d.ts +0 -4
  231. package/types/dashboard/template-dashboard.d.ts +2 -3
  232. package/types/input-select.d.ts +0 -2
  233. package/types/shared/button.d.ts +1 -1
  234. package/types/shared/lib/helpers.d.ts +1 -22
  235. package/types/shared/lib/video.d.ts +0 -3
  236. package/types/shared/sortable.d.ts +0 -6
  237. package/types/video.d.ts +2 -18
  238. package/dist/bridge/form-subdomain-agreement.js +0 -165
  239. package/dist/bridge/form-subdomain-agreement.mjs +0 -132
  240. package/dist/dashboard/campaign-form.js +0 -1798
  241. package/dist/dashboard/campaign-form.mjs +0 -1769
  242. package/dist/dashboard/card-campaign-agreement.js +0 -172
  243. package/dist/dashboard/card-campaign-agreement.mjs +0 -139
  244. package/dist/dashboard/card-shortcut.js +0 -181
  245. package/dist/dashboard/card-shortcut.mjs +0 -152
  246. package/dist/dashboard/document-blocks.js +0 -305
  247. package/dist/dashboard/document-blocks.mjs +0 -270
  248. package/dist/dashboard/form-organization-campaign-advertisements.js +0 -374
  249. package/dist/dashboard/form-organization-campaign-advertisements.mjs +0 -345
  250. package/dist/dashboard/form-organization-campaign-design.js +0 -258
  251. package/dist/dashboard/form-organization-campaign-design.mjs +0 -223
  252. package/dist/dashboard/form-organization-campaign-field-item.js +0 -585
  253. package/dist/dashboard/form-organization-campaign-field-item.mjs +0 -552
  254. package/dist/dashboard/form-organization-campaign-field-skill.js +0 -359
  255. package/dist/dashboard/form-organization-campaign-field-skill.mjs +0 -330
  256. package/dist/dashboard/form-organization-campaign-footer.js +0 -178
  257. package/dist/dashboard/form-organization-campaign-footer.mjs +0 -149
  258. package/dist/dashboard/form-reposition.js +0 -396
  259. package/dist/dashboard/form-reposition.mjs +0 -359
  260. package/dist/dashboard/form-support.js +0 -189
  261. package/dist/dashboard/form-support.mjs +0 -160
  262. package/dist/dashboard/form-tests.js +0 -683
  263. package/dist/dashboard/form-tests.mjs +0 -646
  264. package/dist/dashboard/lib/ab-tests.js +0 -130
  265. package/dist/dashboard/lib/ab-tests.mjs +0 -94
  266. package/dist/dashboard/lib/focus.js +0 -93
  267. package/dist/dashboard/lib/focus.mjs +0 -69
  268. package/dist/dashboard/lib/form-page.js +0 -203
  269. package/dist/dashboard/lib/form-page.mjs +0 -155
  270. package/dist/dashboard/template-design.js +0 -564
  271. package/dist/dashboard/template-design.mjs +0 -531
  272. package/dist/dashboard/template-test-page.js +0 -436
  273. package/dist/dashboard/template-test-page.mjs +0 -407
  274. package/dist/dashboard/template-tests.js +0 -141
  275. package/dist/dashboard/template-tests.mjs +0 -112
  276. package/dist/dashboard/template-variant.js +0 -185
  277. package/dist/dashboard/template-variant.mjs +0 -156
  278. package/dist/icons/arrow-down-long.js +0 -47
  279. package/dist/icons/arrow-down-long.mjs +0 -28
  280. package/dist/icons/arrows-pointing-out.js +0 -46
  281. package/dist/icons/arrows-pointing-out.mjs +0 -27
  282. package/dist/icons/beaker.js +0 -46
  283. package/dist/icons/beaker.mjs +0 -27
  284. package/dist/icons/identification.js +0 -46
  285. package/dist/icons/identification.mjs +0 -27
  286. package/dist/icons/lifebuoy.js +0 -46
  287. package/dist/icons/lifebuoy.mjs +0 -27
  288. package/dist/icons/rectangle-group.js +0 -46
  289. package/dist/icons/rectangle-group.mjs +0 -27
  290. package/dist/icons/rectangle-stack.js +0 -46
  291. package/dist/icons/rectangle-stack.mjs +0 -27
  292. package/dist/icons/shopping-bag.js +0 -46
  293. package/dist/icons/shopping-bag.mjs +0 -27
  294. package/dist/icons/swatch.js +0 -46
  295. package/dist/icons/swatch.mjs +0 -27
  296. package/dist/icons/window.js +0 -46
  297. package/dist/icons/window.mjs +0 -27
  298. package/dist/icons/zoom-in.js +0 -46
  299. package/dist/icons/zoom-in.mjs +0 -27
  300. package/dist/input-answer.js +0 -60
  301. package/dist/input-answer.mjs +0 -27
  302. package/dist/shared/document-pieces.js +0 -295
  303. package/dist/shared/document-pieces.mjs +0 -260
  304. package/types/bridge/form-subdomain-agreement.d.ts +0 -27
  305. package/types/dashboard/campaign-form.d.ts +0 -42
  306. package/types/dashboard/card-campaign-agreement.d.ts +0 -26
  307. package/types/dashboard/card-shortcut.d.ts +0 -38
  308. package/types/dashboard/document-blocks.d.ts +0 -14
  309. package/types/dashboard/form-organization-campaign-advertisements.d.ts +0 -15
  310. package/types/dashboard/form-organization-campaign-design.d.ts +0 -46
  311. package/types/dashboard/form-organization-campaign-field-item.d.ts +0 -36
  312. package/types/dashboard/form-organization-campaign-field-skill.d.ts +0 -36
  313. package/types/dashboard/form-organization-campaign-footer.d.ts +0 -23
  314. package/types/dashboard/form-reposition.d.ts +0 -29
  315. package/types/dashboard/form-support.d.ts +0 -14
  316. package/types/dashboard/form-tests.d.ts +0 -78
  317. package/types/dashboard/lib/ab-tests.d.ts +0 -50
  318. package/types/dashboard/lib/escape.d.ts +0 -4
  319. package/types/dashboard/lib/focus.d.ts +0 -16
  320. package/types/dashboard/lib/form-page.d.ts +0 -25
  321. package/types/dashboard/template-design.d.ts +0 -30
  322. package/types/dashboard/template-test-page.d.ts +0 -69
  323. package/types/dashboard/template-tests.d.ts +0 -30
  324. package/types/dashboard/template-variant.d.ts +0 -18
  325. package/types/icons/arrow-down-long.d.ts +0 -5
  326. package/types/icons/arrows-pointing-out.d.ts +0 -5
  327. package/types/icons/beaker.d.ts +0 -5
  328. package/types/icons/identification.d.ts +0 -5
  329. package/types/icons/lifebuoy.d.ts +0 -5
  330. package/types/icons/rectangle-group.d.ts +0 -5
  331. package/types/icons/rectangle-stack.d.ts +0 -5
  332. package/types/icons/shopping-bag.d.ts +0 -5
  333. package/types/icons/swatch.d.ts +0 -5
  334. package/types/icons/window.d.ts +0 -5
  335. package/types/icons/zoom-in.d.ts +0 -5
  336. package/types/input-answer.d.ts +0 -15
  337. package/types/shared/document-pieces.d.ts +0 -34
  338. package/types/shared/lib/motion.d.ts +0 -2
@@ -28,9 +28,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
29
  var form_subdomain_exports = {};
30
30
  __export(form_subdomain_exports, {
31
- FormSubdomainAge: () => FormSubdomainAge,
32
- FormSubdomainGeocode: () => FormSubdomainGeocode,
33
- FormSubdomainItemList: () => FormSubdomainItemList,
34
31
  FormSubdomainMessage: () => FormSubdomainMessage,
35
32
  FormSubdomainSubmission: () => FormSubdomainSubmission,
36
33
  default: () => form_subdomain_default
@@ -52,7 +49,6 @@ var import_react_google_recaptcha_v3 = require("react-google-recaptcha-v3");
52
49
  var import_recaptcha = require("./lib/recaptcha");
53
50
  var import_url = require("./lib/url");
54
51
  var import_entry = require("./lib/entry");
55
- var import_form_subdomain_agreement = __toESM(require("./form-subdomain-agreement"));
56
52
  var import_location = require("./lib/location");
57
53
  var import_order = require("./lib/order");
58
54
  var import_form = __toESM(require("../shared/form"));
@@ -83,7 +79,6 @@ const scrollToCentre = (node) => {
83
79
  };
84
80
  const FormSubdomainSubmission = ({
85
81
  affiliate,
86
- after = import_entry.AFTER,
87
82
  button,
88
83
  checkout,
89
84
  giveaway,
@@ -188,7 +183,6 @@ const FormSubdomainSubmission = ({
188
183
  {
189
184
  ...{
190
185
  advertisements,
191
- after,
192
186
  button,
193
187
  contact: data == null ? void 0 : data.contact,
194
188
  message,
@@ -202,10 +196,6 @@ const FormSubdomainSubmission = ({
202
196
  }
203
197
  }
204
198
  );
205
- const parts = {
206
- advertisements,
207
- message: message && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(FormSubdomainMessage, { ...{ message, style } })
208
- };
209
199
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
210
200
  "div",
211
201
  {
@@ -218,13 +208,16 @@ const FormSubdomainSubmission = ({
218
208
  {
219
209
  ...{
220
210
  button,
211
+ title,
221
212
  preview,
222
213
  style,
223
- title
214
+ ...message && {
215
+ message
216
+ }
224
217
  }
225
218
  }
226
219
  ),
227
- after.map((key) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react.Fragment, { children: parts[key] }, key))
220
+ advertisements
228
221
  ]
229
222
  }
230
223
  );
@@ -328,11 +321,10 @@ const FormSubdomainGeocode = ({
328
321
  disabled,
329
322
  callback,
330
323
  preview,
331
- still,
332
324
  style,
333
325
  values
334
326
  }) => {
335
- const [state, setState] = (0, import_react.useState)(still ? { status: "asking" } : disabled ? { message: "Campaign is not currently active", status: "inactive" } : { status: "checking" });
327
+ const [state, setState] = (0, import_react.useState)(disabled ? { message: "Campaign is not currently active", status: "inactive" } : { status: "checking" });
336
328
  const [attempt, setAttempt] = (0, import_react.useState)(0);
337
329
  const searchParams = (0, import_navigation.useSearchParams)();
338
330
  const token = searchParams.get("drwbrdg_pre");
@@ -341,7 +333,7 @@ const FormSubdomainGeocode = ({
341
333
  (0, import_react.useEffect)(
342
334
  () => {
343
335
  var _a, _b;
344
- if (disabled || still) return;
336
+ if (disabled) return;
345
337
  if (!navigator.geolocation) {
346
338
  setState({ status: "unsupported" });
347
339
  return;
@@ -379,7 +371,7 @@ const FormSubdomainGeocode = ({
379
371
  live = false;
380
372
  };
381
373
  },
382
- [attempt, disabled, preview, still, token, values == null ? void 0 : values.slug, values == null ? void 0 : values.subdomain]
374
+ [attempt, disabled, preview, token, values == null ? void 0 : values.slug, values == null ? void 0 : values.subdomain]
383
375
  );
384
376
  if (["denied", "inactive", "missing", "outside", "unsupported"].includes(state.status)) {
385
377
  const retry = ["denied", "missing"].includes(state.status);
@@ -519,8 +511,7 @@ const FormSubdomainAge = ({
519
511
  {
520
512
  ...{
521
513
  button,
522
- description: values == null ? void 0 : values.description,
523
- title: (values == null ? void 0 : values.title) || "Confirm your age",
514
+ title: "Confirm your age",
524
515
  style
525
516
  }
526
517
  }
@@ -567,7 +558,7 @@ const FormSubdomainAge = ({
567
558
  className: "space-y-2 w-full"
568
559
  },
569
560
  children: [
570
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { children: "Month *" }),
561
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { children: "Month" }),
571
562
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
572
563
  import_input_text.default,
573
564
  {
@@ -595,7 +586,7 @@ const FormSubdomainAge = ({
595
586
  className: "space-y-2 w-full"
596
587
  },
597
588
  children: [
598
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { children: "Day *" }),
589
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { children: "Day" }),
599
590
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
600
591
  import_input_text.default,
601
592
  {
@@ -623,7 +614,7 @@ const FormSubdomainAge = ({
623
614
  className: "space-y-2 w-full"
624
615
  },
625
616
  children: [
626
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { children: "Year *" }),
617
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { children: "Year" }),
627
618
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
628
619
  import_input_text.default,
629
620
  {
@@ -664,8 +655,7 @@ const FormSubdomainAge = ({
664
655
  ...{
665
656
  disabled,
666
657
  style,
667
- submitting: formState == null ? void 0 : formState.isSubmitting,
668
- text: (values == null ? void 0 : values.button) || "Next"
658
+ submitting: formState == null ? void 0 : formState.isSubmitting
669
659
  }
670
660
  }
671
661
  )
@@ -681,11 +671,11 @@ const FormSubdomainItemList = ({
681
671
  currency,
682
672
  field,
683
673
  onChange,
684
- prices = true,
674
+ prices,
685
675
  style,
686
676
  value
687
677
  }) => {
688
- var _a, _b;
678
+ var _a;
689
679
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
690
680
  "div",
691
681
  {
@@ -693,8 +683,8 @@ const FormSubdomainItemList = ({
693
683
  className: "space-y-2"
694
684
  },
695
685
  children: [
696
- (((_a = field == null ? void 0 : field.settings) == null ? void 0 : _a.items) || []).length !== 1 && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
697
- "h5",
686
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
687
+ "p",
698
688
  {
699
689
  ...{
700
690
  className: "text-xs uppercase tracking-wide opacity-60"
@@ -708,8 +698,8 @@ const FormSubdomainItemList = ({
708
698
  ...{
709
699
  className: "space-y-4"
710
700
  },
711
- children: (((_b = field == null ? void 0 : field.settings) == null ? void 0 : _b.items) || []).map((item) => {
712
- var _a2, _b2;
701
+ children: (((_a = field == null ? void 0 : field.settings) == null ? void 0 : _a.items) || []).map((item) => {
702
+ var _a2, _b;
713
703
  const quantity = Number(value == null ? void 0 : value[item.id]) || 0;
714
704
  const src = (0, import_cdn.cdnSrc)(item.image, "200x200", (_a2 = item.image) == null ? void 0 : _a2.updatedAt);
715
705
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
@@ -735,7 +725,7 @@ const FormSubdomainItemList = ({
735
725
  {
736
726
  ...{
737
727
  // The image's own description, else its file name, as every image slot.
738
- alt: item.description || ((_b2 = item.image) == null ? void 0 : _b2.filename) || "",
728
+ alt: item.description || ((_b = item.image) == null ? void 0 : _b.filename) || "",
739
729
  className: "object-cover",
740
730
  fill: true,
741
731
  sizes: "56px",
@@ -769,7 +759,7 @@ const FormSubdomainItemList = ({
769
759
  className: "text-xs opacity-60"
770
760
  },
771
761
  children: (0, import_drawbridge_utils.formatCurrency)({
772
- code: (currency || "usd").toUpperCase(),
762
+ code: currency.toUpperCase(),
773
763
  display: "parts",
774
764
  value: item.price
775
765
  })
@@ -823,28 +813,20 @@ const FormSubdomainSection = ({
823
813
  focus,
824
814
  initial,
825
815
  last,
826
- onAgreement,
827
816
  preview,
828
- refused,
829
817
  section,
830
818
  slugs = [],
831
819
  style,
832
820
  values
833
821
  }) => {
834
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q;
822
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
835
823
  const fields = (section == null ? void 0 : section.fields) || [];
836
824
  const lists = fields.filter((field) => (field == null ? void 0 : field.slug) === "list");
837
- const prices = (0, import_order.priced)(lists);
838
- const currency = ((_a = section == null ? void 0 : section.settings) == null ? void 0 : _a.currency) || "usd";
839
- const opens = (key) => {
840
- var _a2;
841
- return (0, import_entry.agreementContent)((_a2 = values == null ? void 0 : values.agreements) == null ? void 0 : _a2[key]);
842
- };
843
- const optOutLine = (0, import_entry.termsOptOut)(values);
844
- const smsConsent = Boolean(last) && (values == null ? void 0 : values.sms) !== false && Boolean((_c = (_b = values == null ? void 0 : values.agreements) == null ? void 0 : _b.sms) == null ? void 0 : _c.enabled) && slugs.includes("phone");
845
- const marketingConsent = Boolean(last) && Boolean((_e = (_d = values == null ? void 0 : values.agreements) == null ? void 0 : _d.marketing) == null ? void 0 : _e.enabled) && (0, import_entry.agreementShown)((_f = values == null ? void 0 : values.agreements) == null ? void 0 : _f.marketing);
846
- const termsConsent = Boolean(last) && Boolean((_h = (_g = values == null ? void 0 : values.agreements) == null ? void 0 : _g.terms) == null ? void 0 : _h.enabled) && (0, import_entry.agreementShown)((_i = values == null ? void 0 : values.agreements) == null ? void 0 : _i.terms);
847
- const privacy = Boolean(last) && Boolean((_k = (_j = values == null ? void 0 : values.agreements) == null ? void 0 : _j.privacy) == null ? void 0 : _k.enabled) && Boolean(opens("privacy"));
825
+ const prices = ((_a = section == null ? void 0 : section.settings) == null ? void 0 : _a.prices) !== false;
826
+ const currency = ((_b = section == null ? void 0 : section.settings) == null ? void 0 : _b.currency) || "usd";
827
+ const smsConsent = Boolean(last) && (values == null ? void 0 : values.sms) !== false && (Boolean((_d = (_c = values == null ? void 0 : values.agreements) == null ? void 0 : _c.sms) == null ? void 0 : _d.enabled) || slugs.includes("phone"));
828
+ const marketingConsent = Boolean(last) && Boolean((_f = (_e = values == null ? void 0 : values.agreements) == null ? void 0 : _e.marketing) == null ? void 0 : _f.enabled);
829
+ const termsConsent = Boolean(last) && Boolean((_h = (_g = values == null ? void 0 : values.agreements) == null ? void 0 : _g.terms) == null ? void 0 : _h.enabled);
848
830
  const schema = (0, import_react.useMemo)(
849
831
  () => {
850
832
  var _a2;
@@ -884,17 +866,10 @@ const FormSubdomainSection = ({
884
866
  },
885
867
  [marketingConsent, section, smsConsent, termsConsent, values]
886
868
  );
887
- const { control, getValues, handleSubmit, formState, setError } = (0, import_react_hook_form.useForm)({
869
+ const { control, getValues, handleSubmit, formState } = (0, import_react_hook_form.useForm)({
888
870
  defaultValues: initial || {},
889
871
  resolver: (0, import_yup.resolver)(schema)
890
872
  });
891
- (0, import_react.useEffect)(
892
- () => Object.entries(refused || {}).forEach(([id, message]) => {
893
- if (fields.some((field) => (field == null ? void 0 : field.id) === id)) setError("fields." + id, { message });
894
- }),
895
- [refused]
896
- // eslint-disable-line react-hooks/exhaustive-deps
897
- );
898
873
  const answers = (0, import_react_hook_form.useWatch)({
899
874
  control,
900
875
  name: "fields"
@@ -911,34 +886,19 @@ const FormSubdomainSection = ({
911
886
  {
912
887
  ...{
913
888
  labelId: "checkbox-" + key,
914
- // @story public-entry/read-agreement
915
- // A link opens in a new tab; a document opens over the form, with Back.
916
- label: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_react.Fragment, { children: [
917
- opens(key) === "link" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
918
- import_button.default,
919
- {
920
- ...{
921
- element: import_link.default,
922
- href: (_b2 = (_a2 = values == null ? void 0 : values.agreements) == null ? void 0 : _a2[key]) == null ? void 0 : _b2.link,
923
- inline: true,
924
- target: "_blank",
925
- variant: "link"
926
- },
927
- children: ((_d2 = (_c2 = values == null ? void 0 : values.agreements) == null ? void 0 : _c2[key]) == null ? void 0 : _d2.label) || fallback
928
- }
929
- ) : opens(key) === "document" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
930
- import_button.default,
931
- {
932
- ...{
933
- inline: true,
934
- onClick: () => onAgreement == null ? void 0 : onAgreement(key),
935
- variant: "link"
936
- },
937
- children: ((_f2 = (_e2 = values == null ? void 0 : values.agreements) == null ? void 0 : _e2[key]) == null ? void 0 : _f2.label) || fallback
938
- }
939
- ) : ((_h2 = (_g2 = values == null ? void 0 : values.agreements) == null ? void 0 : _g2[key]) == null ? void 0 : _h2.label) || fallback,
940
- key === "terms" && " *"
941
- ] }),
889
+ label: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react.Fragment, { children: ((_b2 = (_a2 = values == null ? void 0 : values.agreements) == null ? void 0 : _a2[key]) == null ? void 0 : _b2.link) ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
890
+ import_button.default,
891
+ {
892
+ ...{
893
+ element: import_link.default,
894
+ href: (_d2 = (_c2 = values == null ? void 0 : values.agreements) == null ? void 0 : _c2[key]) == null ? void 0 : _d2.link,
895
+ inline: true,
896
+ target: "_blank",
897
+ variant: "link"
898
+ },
899
+ children: ((_f2 = (_e2 = values == null ? void 0 : values.agreements) == null ? void 0 : _e2[key]) == null ? void 0 : _f2.label) || fallback
900
+ }
901
+ ) : ((_h2 = (_g2 = values == null ? void 0 : values.agreements) == null ? void 0 : _g2[key]) == null ? void 0 : _h2.label) || fallback }),
942
902
  onChange,
943
903
  style,
944
904
  value
@@ -947,7 +907,7 @@ const FormSubdomainSection = ({
947
907
  );
948
908
  };
949
909
  const count = (0, import_order.itemCount)(lists, answers);
950
- const itemsError = (_m = (_l = formState == null ? void 0 : formState.errors) == null ? void 0 : _l.items) == null ? void 0 : _m.message;
910
+ const itemsError = (_j = (_i = formState == null ? void 0 : formState.errors) == null ? void 0 : _i.items) == null ? void 0 : _j.message;
951
911
  const totalBlock = (prices || itemsError) && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
952
912
  "div",
953
913
  {
@@ -962,7 +922,7 @@ const FormSubdomainSection = ({
962
922
  className: "flex items-center justify-between text-sm"
963
923
  },
964
924
  children: [
965
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { children: "TOTAL \xB7 " + count + " " + (count === 1 ? "ITEM" : "ITEMS") }),
925
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { children: "ESTIMATED TOTAL \xB7 " + count + " " + (count === 1 ? "ITEM" : "ITEMS") }),
966
926
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { children: (0, import_drawbridge_utils.formatCurrency)({
967
927
  code: currency.toUpperCase(),
968
928
  display: "parts",
@@ -983,38 +943,6 @@ const FormSubdomainSection = ({
983
943
  ]
984
944
  }
985
945
  );
986
- const drawn = (field) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
987
- import_react_hook_form.Controller,
988
- {
989
- ...{
990
- control,
991
- name: "fields." + field.id,
992
- render: ({ field: { onChange, value } }) => {
993
- var _a2, _b2;
994
- return (field == null ? void 0 : field.slug) === "list" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
995
- FormSubdomainItemList,
996
- {
997
- ...{
998
- currency,
999
- field,
1000
- onChange,
1001
- prices,
1002
- style,
1003
- value
1004
- }
1005
- }
1006
- ) : import_fields.components[drawnAs[field == null ? void 0 : field.slug] || (field == null ? void 0 : field.slug)]({
1007
- error: (_b2 = (_a2 = formState == null ? void 0 : formState.errors) == null ? void 0 : _a2.fields) == null ? void 0 : _b2[field == null ? void 0 : field.id],
1008
- field,
1009
- onChange,
1010
- style,
1011
- value
1012
- });
1013
- }
1014
- }
1015
- },
1016
- field == null ? void 0 : field.id
1017
- );
1018
946
  const consent = [
1019
947
  termsConsent && ["terms"],
1020
948
  marketingConsent && ["marketing", import_entry.agreementWording.marketing],
@@ -1090,21 +1018,40 @@ const FormSubdomainSection = ({
1090
1018
  ...{
1091
1019
  className: (lists.length > 0 ? "space-y-6 " : "space-y-4 ") + faded()
1092
1020
  },
1093
- children: (0, import_order.itemRuns)(fields).map((run) => {
1094
- var _a2;
1095
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_react.Fragment, { children: [
1096
- run.fields.length > 1 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
1097
- "div",
1098
- {
1099
- ...{
1100
- className: "space-y-4"
1101
- },
1102
- children: run.fields.map(drawn)
1021
+ children: fields.map((field) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_react.Fragment, { children: [
1022
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
1023
+ import_react_hook_form.Controller,
1024
+ {
1025
+ ...{
1026
+ control,
1027
+ name: "fields." + field.id,
1028
+ render: ({ field: { onChange, value } }) => {
1029
+ var _a2, _b2;
1030
+ return (field == null ? void 0 : field.slug) === "list" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
1031
+ FormSubdomainItemList,
1032
+ {
1033
+ ...{
1034
+ currency,
1035
+ field,
1036
+ onChange,
1037
+ prices,
1038
+ style,
1039
+ value
1040
+ }
1041
+ }
1042
+ ) : import_fields.components[drawnAs[field == null ? void 0 : field.slug] || (field == null ? void 0 : field.slug)]({
1043
+ error: (_b2 = (_a2 = formState == null ? void 0 : formState.errors) == null ? void 0 : _a2.fields) == null ? void 0 : _b2[field == null ? void 0 : field.id],
1044
+ field,
1045
+ onChange,
1046
+ style,
1047
+ value
1048
+ });
1049
+ }
1103
1050
  }
1104
- ) : drawn(run.fields[0]),
1105
- run.fields.some((field) => (0, import_order.isLastList)(fields, field == null ? void 0 : field.id)) && totalBlock
1106
- ] }, (_a2 = run.fields[0]) == null ? void 0 : _a2.id);
1107
- })
1051
+ }
1052
+ ),
1053
+ (0, import_order.isLastList)(fields, field == null ? void 0 : field.id) && totalBlock
1054
+ ] }, field == null ? void 0 : field.id))
1108
1055
  }
1109
1056
  ),
1110
1057
  consent.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
@@ -1135,11 +1082,6 @@ const FormSubdomainSection = ({
1135
1082
  {
1136
1083
  ...{
1137
1084
  error: (_c2 = (_b2 = (_a2 = formState == null ? void 0 : formState.errors) == null ? void 0 : _a2.agreements) == null ? void 0 : _b2[key]) == null ? void 0 : _c2.message,
1138
- // @story public-entry/read-agreement
1139
- // The organizer's own rules may not say it; our document does, in Opting out.
1140
- ...key === "terms" && opens("terms") === "link" && optOutLine && {
1141
- message: optOutLine
1142
- },
1143
1085
  input: checkbox({
1144
1086
  fallback,
1145
1087
  key,
@@ -1175,41 +1117,11 @@ const FormSubdomainSection = ({
1175
1117
  disabled,
1176
1118
  style,
1177
1119
  submitting: formState == null ? void 0 : formState.isSubmitting,
1178
- // @story public-entry/submit
1179
- // The step's own Next text; the last step's is the form's one Submit text.
1180
- text: last ? (values == null ? void 0 : values.submit) || "Submit" : (section == null ? void 0 : section.button) || "Next"
1120
+ text: last ? "Submit" : "Next"
1181
1121
  }
1182
1122
  }
1183
1123
  )
1184
1124
  }
1185
- ),
1186
- privacy && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
1187
- "p",
1188
- {
1189
- ...{
1190
- className: "text-center text-xs " + faded("privacy"),
1191
- ...focus === "privacy" && {
1192
- ref: focused
1193
- }
1194
- },
1195
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
1196
- import_button.default,
1197
- {
1198
- ...{
1199
- inline: true,
1200
- variant: "link",
1201
- ...opens("privacy") === "link" ? {
1202
- element: import_link.default,
1203
- href: (_o = (_n = values == null ? void 0 : values.agreements) == null ? void 0 : _n.privacy) == null ? void 0 : _o.link,
1204
- target: "_blank"
1205
- } : {
1206
- onClick: () => onAgreement == null ? void 0 : onAgreement("privacy")
1207
- }
1208
- },
1209
- children: ((_q = (_p = values == null ? void 0 : values.agreements) == null ? void 0 : _p.privacy) == null ? void 0 : _q.label) || "Privacy policy"
1210
- }
1211
- )
1212
- }
1213
1125
  )
1214
1126
  ]
1215
1127
  }
@@ -1219,7 +1131,6 @@ const FormSubdomain = ({
1219
1131
  agreements,
1220
1132
  button,
1221
1133
  disabled,
1222
- documents,
1223
1134
  fields,
1224
1135
  focus,
1225
1136
  integrations,
@@ -1230,29 +1141,20 @@ const FormSubdomain = ({
1230
1141
  },
1231
1142
  params,
1232
1143
  preview,
1233
- // @story public-entry/read-agreement
1234
- // False while the campaign's giveaway is off ( lib/entry giveawayOn ).
1235
- giveaway,
1236
1144
  // The share payload's `sms` : false while texts are off on the platform.
1237
1145
  sms,
1238
1146
  step: start = 0,
1239
1147
  style,
1240
- // @story public-entry/submit
1241
- // The form's one Submit text, on the last step ( `defaults.submit` ).
1242
- submit,
1243
1148
  tracking
1244
1149
  }) => {
1245
- var _a, _b, _c, _d, _e;
1150
+ var _a, _b, _c;
1246
1151
  const { executeRecaptcha } = (0, import_react_google_recaptcha_v3.useGoogleReCaptcha)();
1247
1152
  const searchParams = (0, import_navigation.useSearchParams)();
1248
1153
  const token = searchParams.get("drwbrdg_pre");
1249
1154
  const [data, setData] = (0, import_react.useState)({});
1250
1155
  const [step, setStep] = (0, import_react.useState)(start);
1251
- const [reading, setReading] = (0, import_react.useState)(null);
1252
- const [refused, setRefused] = (0, import_react.useState)(null);
1253
1156
  const sections = (0, import_order.sectionsOf)(fields);
1254
1157
  const slugs = sections.flatMap((section) => ((section == null ? void 0 : section.fields) || []).map((field) => field == null ? void 0 : field.slug));
1255
- const before = Number(Boolean((_a = integrations == null ? void 0 : integrations.geocode) == null ? void 0 : _a.enabled)) + Number(Boolean((_b = integrations == null ? void 0 : integrations.age) == null ? void 0 : _b.enabled));
1256
1158
  const merge = (object = {}) => ({
1257
1159
  ...data,
1258
1160
  ...object,
@@ -1263,7 +1165,7 @@ const FormSubdomain = ({
1263
1165
  });
1264
1166
  const onSubmit = (0, import_react.useCallback)(
1265
1167
  async (values) => {
1266
- var _a2, _b2, _c2;
1168
+ var _a2, _b2;
1267
1169
  try {
1268
1170
  let recaptcha;
1269
1171
  if (Boolean((_a2 = integrations == null ? void 0 : integrations.recaptcha) == null ? void 0 : _a2.enabled)) {
@@ -1300,21 +1202,13 @@ const FormSubdomain = ({
1300
1202
  );
1301
1203
  }
1302
1204
  } catch (error) {
1303
- const index = (0, import_order.refusedSection)(sections, (_c2 = error == null ? void 0 : error.data) == null ? void 0 : _c2.fields);
1304
- if (index >= 0) {
1305
- setData(values);
1306
- setRefused(error.data.fields);
1307
- setStep(before + index);
1308
- return;
1309
- }
1310
- ;
1311
1205
  onError(error);
1312
1206
  }
1313
1207
  },
1314
- [before, executeRecaptcha, integrations, onError, onSuccess, params, preview, sections, token, tracking]
1208
+ [executeRecaptcha, integrations, onError, onSuccess, params, preview, token, tracking]
1315
1209
  );
1316
1210
  const forms = [
1317
- ...Boolean((_c = integrations == null ? void 0 : integrations.geocode) == null ? void 0 : _c.enabled) ? [
1211
+ ...Boolean((_a = integrations == null ? void 0 : integrations.geocode) == null ? void 0 : _a.enabled) ? [
1318
1212
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
1319
1213
  FormSubdomainGeocode,
1320
1214
  {
@@ -1338,7 +1232,7 @@ const FormSubdomain = ({
1338
1232
  "form-subdomain-geocode"
1339
1233
  )
1340
1234
  ] : [],
1341
- ...Boolean((_d = integrations == null ? void 0 : integrations.age) == null ? void 0 : _d.enabled) ? [
1235
+ ...Boolean((_b = integrations == null ? void 0 : integrations.age) == null ? void 0 : _b.enabled) ? [
1342
1236
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
1343
1237
  FormSubdomainAge,
1344
1238
  {
@@ -1363,7 +1257,7 @@ const FormSubdomain = ({
1363
1257
  disabled,
1364
1258
  preview,
1365
1259
  style,
1366
- values: (_e = integrations == null ? void 0 : integrations.age) == null ? void 0 : _e.settings
1260
+ values: (_c = integrations == null ? void 0 : integrations.age) == null ? void 0 : _c.settings
1367
1261
  }
1368
1262
  },
1369
1263
  "form-subdomain-age"
@@ -1381,7 +1275,6 @@ const FormSubdomain = ({
1381
1275
  button,
1382
1276
  callback: async (object) => {
1383
1277
  const merged = merge(object);
1384
- setRefused(null);
1385
1278
  if (index < sections.length - 1) {
1386
1279
  setData(merged);
1387
1280
  setStep(step + 1);
@@ -1393,62 +1286,40 @@ const FormSubdomain = ({
1393
1286
  focus,
1394
1287
  initial: data,
1395
1288
  last: index === sections.length - 1,
1396
- onAgreement: setReading,
1397
1289
  preview,
1398
- refused,
1399
1290
  section,
1400
1291
  slugs,
1401
1292
  style,
1402
1293
  values: {
1403
1294
  agreements,
1404
- giveaway,
1405
- sms,
1406
- submit
1295
+ sms
1407
1296
  }
1408
1297
  }
1409
1298
  },
1410
1299
  "form-subdomain-section-" + section.id
1411
1300
  ))
1412
1301
  ];
1413
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
1302
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
1414
1303
  "div",
1415
1304
  {
1416
1305
  ...{
1417
1306
  className: "space-y-6"
1418
1307
  },
1419
- children: [
1420
- reading && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
1421
- import_form_subdomain_agreement.default,
1422
- {
1423
- ...{
1424
- agreement: agreements == null ? void 0 : agreements[reading],
1425
- back: () => setReading(null),
1426
- button,
1427
- data: documents,
1428
- style,
1429
- title: import_entry.agreementTitles[reading]
1430
- }
1431
- }
1432
- ),
1433
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
1434
- "div",
1435
- {
1436
- ...{
1437
- className: "relative w-full space-y-6" + (reading ? " hidden" : "")
1438
- },
1439
- children: forms == null ? void 0 : forms[step]
1440
- }
1441
- )
1442
- ]
1308
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
1309
+ "div",
1310
+ {
1311
+ ...{
1312
+ className: "relative w-full space-y-6"
1313
+ },
1314
+ children: forms == null ? void 0 : forms[step]
1315
+ }
1316
+ )
1443
1317
  }
1444
1318
  );
1445
1319
  };
1446
1320
  var form_subdomain_default = FormSubdomain;
1447
1321
  // Annotate the CommonJS export names for ESM import in node:
1448
1322
  0 && (module.exports = {
1449
- FormSubdomainAge,
1450
- FormSubdomainGeocode,
1451
- FormSubdomainItemList,
1452
1323
  FormSubdomainMessage,
1453
1324
  FormSubdomainSubmission
1454
1325
  });