@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
@@ -17,23 +17,14 @@ var __copyProps = (to, from, except, desc) => {
17
17
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
18
  var entry_exports = {};
19
19
  __export(entry_exports, {
20
- AFTER: () => AFTER,
21
- afterOrder: () => afterOrder,
22
- agreementContent: () => agreementContent,
23
- agreementShown: () => agreementShown,
24
- agreementTitles: () => agreementTitles,
25
20
  agreementWording: () => agreementWording,
26
- asksForPhone: () => asksForPhone,
27
21
  awardingOn: () => awardingOn,
28
- buttonState: () => buttonState,
29
22
  buttonText: () => buttonText,
30
23
  copy: () => copy,
31
24
  formOn: () => formOn,
32
25
  giveawayOn: () => giveawayOn,
33
- menuAgreements: () => menuAgreements,
34
26
  panelMissions: () => panelMissions,
35
- termsOptOut: () => termsOptOut,
36
- withLocale: () => withLocale
27
+ panelTitle: () => panelTitle
37
28
  });
38
29
  module.exports = __toCommonJS(entry_exports);
39
30
  var import_drawbridge_utils = require("@drawbridge/drawbridge-utils");
@@ -46,69 +37,23 @@ const agreementWording = {
46
37
  // The default wording carrier reviewers look for: explicit texts, rates, and STOP.
47
38
  sms: "I agree to receive text messages about this campaign. Message and data rates may apply. Reply STOP to opt out."
48
39
  };
49
- const buttonState = (data, open) => !open ? "inactive" : (data == null ? void 0 : data.awarding) === false ? "button" : "active";
50
- const buttonText = (data, open) => copy(data, buttonState(data, open));
40
+ const buttonText = (data, open) => copy(data, !open ? "inactive" : (data == null ? void 0 : data.awarding) === false ? "button" : "active");
51
41
  const formOn = (data) => (data == null ? void 0 : data.form) !== false;
52
42
  const giveawayOn = (data) => (data == null ? void 0 : data.giveaway) !== false;
53
43
  const awardingOn = (data) => giveawayOn(data) && (data == null ? void 0 : data.awarding) !== false;
54
- const AFTER = ["message", "missions", "advertisements"];
55
- const afterOrder = (data) => {
56
- var _a;
57
- const order = (data == null ? void 0 : data.after) || ((_a = data == null ? void 0 : data.form) == null ? void 0 : _a.after);
58
- return Array.isArray(order) && order.length > 0 ? order : AFTER;
44
+ const panelTitle = (data, awarding = awardingOn(data)) => {
45
+ var _a, _b, _c, _d, _e, _f;
46
+ return ((_a = data == null ? void 0 : data.defaults) == null ? void 0 : _a.title) || ((_f = (_e = (_d = (_c = (_b = import_drawbridge_utils.constants) == null ? void 0 : _b.campaign) == null ? void 0 : _c.form) == null ? void 0 : _d.copy) == null ? void 0 : _e.title) == null ? void 0 : _f[awarding ? "awarding" : "open"]);
59
47
  };
60
48
  const panelMissions = (missions = [], repeat = false) => repeat ? (missions || []).filter((item) => (item == null ? void 0 : item.type) !== "form") : missions;
61
- const agreementTitles = {
62
- terms: "Terms and conditions",
63
- privacy: "Privacy",
64
- marketing: "Marketing terms",
65
- sms: "SMS terms"
66
- };
67
- const agreementContent = (agreement) => {
68
- if ((agreement == null ? void 0 : agreement.confirmed) === false) return null;
69
- const type = (agreement == null ? void 0 : agreement.type) || ((agreement == null ? void 0 : agreement.link) ? "link" : "document");
70
- if (type === "link") return (agreement == null ? void 0 : agreement.link) ? "link" : null;
71
- return (agreement == null ? void 0 : agreement.document) ? "document" : null;
72
- };
73
- const agreementShown = (agreement) => (agreement == null ? void 0 : agreement.confirmed) !== false && (Boolean(agreementContent(agreement)) || (agreement == null ? void 0 : agreement.type) === "link" && Boolean(agreement == null ? void 0 : agreement.confirmed));
74
- const asksForPhone = (fields) => [
75
- ...((fields == null ? void 0 : fields.sections) || []).flatMap((section) => (section == null ? void 0 : section.fields) || []),
76
- ...(fields == null ? void 0 : fields.lead) || [],
77
- ...(fields == null ? void 0 : fields.additional) || []
78
- ].some((field) => (field == null ? void 0 : field.slug) === "phone");
79
- const menuAgreements = (data) => Object.keys(agreementTitles).filter((id) => {
80
- var _a;
81
- const agreement = (_a = data == null ? void 0 : data.agreements) == null ? void 0 : _a[id];
82
- if (id === "sms" && (data == null ? void 0 : data.sms) === false) return false;
83
- return Boolean(agreementContent(agreement)) && Boolean(agreement == null ? void 0 : agreement.enabled) && (id !== "sms" || asksForPhone(data == null ? void 0 : data.fields));
84
- });
85
- const withLocale = (agreements = {}, locale = {}) => Object.fromEntries(
86
- [.../* @__PURE__ */ new Set([...Object.keys(agreements || {}), ...Object.keys(locale || {})])].map((id) => [
87
- id,
88
- {
89
- ...agreements == null ? void 0 : agreements[id],
90
- ...locale == null ? void 0 : locale[id]
91
- }
92
- ])
93
- );
94
- const termsOptOut = ({ giveaway, sms } = {}) => giveaway === false ? null : "If you unsubscribe" + (sms !== false ? " or reply STOP" : "") + ", you can't win and won't be told you were selected.";
95
49
  // Annotate the CommonJS export names for ESM import in node:
96
50
  0 && (module.exports = {
97
- AFTER,
98
- afterOrder,
99
- agreementContent,
100
- agreementShown,
101
- agreementTitles,
102
51
  agreementWording,
103
- asksForPhone,
104
52
  awardingOn,
105
- buttonState,
106
53
  buttonText,
107
54
  copy,
108
55
  formOn,
109
56
  giveawayOn,
110
- menuAgreements,
111
57
  panelMissions,
112
- termsOptOut,
113
- withLocale
58
+ panelTitle
114
59
  });
@@ -8,68 +8,22 @@ const agreementWording = {
8
8
  // The default wording carrier reviewers look for: explicit texts, rates, and STOP.
9
9
  sms: "I agree to receive text messages about this campaign. Message and data rates may apply. Reply STOP to opt out."
10
10
  };
11
- const buttonState = (data, open) => !open ? "inactive" : (data == null ? void 0 : data.awarding) === false ? "button" : "active";
12
- const buttonText = (data, open) => copy(data, buttonState(data, open));
11
+ const buttonText = (data, open) => copy(data, !open ? "inactive" : (data == null ? void 0 : data.awarding) === false ? "button" : "active");
13
12
  const formOn = (data) => (data == null ? void 0 : data.form) !== false;
14
13
  const giveawayOn = (data) => (data == null ? void 0 : data.giveaway) !== false;
15
14
  const awardingOn = (data) => giveawayOn(data) && (data == null ? void 0 : data.awarding) !== false;
16
- const AFTER = ["message", "missions", "advertisements"];
17
- const afterOrder = (data) => {
18
- var _a;
19
- const order = (data == null ? void 0 : data.after) || ((_a = data == null ? void 0 : data.form) == null ? void 0 : _a.after);
20
- return Array.isArray(order) && order.length > 0 ? order : AFTER;
15
+ const panelTitle = (data, awarding = awardingOn(data)) => {
16
+ var _a, _b, _c, _d, _e, _f;
17
+ return ((_a = data == null ? void 0 : data.defaults) == null ? void 0 : _a.title) || ((_f = (_e = (_d = (_c = (_b = constants) == null ? void 0 : _b.campaign) == null ? void 0 : _c.form) == null ? void 0 : _d.copy) == null ? void 0 : _e.title) == null ? void 0 : _f[awarding ? "awarding" : "open"]);
21
18
  };
22
19
  const panelMissions = (missions = [], repeat = false) => repeat ? (missions || []).filter((item) => (item == null ? void 0 : item.type) !== "form") : missions;
23
- const agreementTitles = {
24
- terms: "Terms and conditions",
25
- privacy: "Privacy",
26
- marketing: "Marketing terms",
27
- sms: "SMS terms"
28
- };
29
- const agreementContent = (agreement) => {
30
- if ((agreement == null ? void 0 : agreement.confirmed) === false) return null;
31
- const type = (agreement == null ? void 0 : agreement.type) || ((agreement == null ? void 0 : agreement.link) ? "link" : "document");
32
- if (type === "link") return (agreement == null ? void 0 : agreement.link) ? "link" : null;
33
- return (agreement == null ? void 0 : agreement.document) ? "document" : null;
34
- };
35
- const agreementShown = (agreement) => (agreement == null ? void 0 : agreement.confirmed) !== false && (Boolean(agreementContent(agreement)) || (agreement == null ? void 0 : agreement.type) === "link" && Boolean(agreement == null ? void 0 : agreement.confirmed));
36
- const asksForPhone = (fields) => [
37
- ...((fields == null ? void 0 : fields.sections) || []).flatMap((section) => (section == null ? void 0 : section.fields) || []),
38
- ...(fields == null ? void 0 : fields.lead) || [],
39
- ...(fields == null ? void 0 : fields.additional) || []
40
- ].some((field) => (field == null ? void 0 : field.slug) === "phone");
41
- const menuAgreements = (data) => Object.keys(agreementTitles).filter((id) => {
42
- var _a;
43
- const agreement = (_a = data == null ? void 0 : data.agreements) == null ? void 0 : _a[id];
44
- if (id === "sms" && (data == null ? void 0 : data.sms) === false) return false;
45
- return Boolean(agreementContent(agreement)) && Boolean(agreement == null ? void 0 : agreement.enabled) && (id !== "sms" || asksForPhone(data == null ? void 0 : data.fields));
46
- });
47
- const withLocale = (agreements = {}, locale = {}) => Object.fromEntries(
48
- [.../* @__PURE__ */ new Set([...Object.keys(agreements || {}), ...Object.keys(locale || {})])].map((id) => [
49
- id,
50
- {
51
- ...agreements == null ? void 0 : agreements[id],
52
- ...locale == null ? void 0 : locale[id]
53
- }
54
- ])
55
- );
56
- const termsOptOut = ({ giveaway, sms } = {}) => giveaway === false ? null : "If you unsubscribe" + (sms !== false ? " or reply STOP" : "") + ", you can't win and won't be told you were selected.";
57
20
  export {
58
- AFTER,
59
- afterOrder,
60
- agreementContent,
61
- agreementShown,
62
- agreementTitles,
63
21
  agreementWording,
64
- asksForPhone,
65
22
  awardingOn,
66
- buttonState,
67
23
  buttonText,
68
24
  copy,
69
25
  formOn,
70
26
  giveawayOn,
71
- menuAgreements,
72
27
  panelMissions,
73
- termsOptOut,
74
- withLocale
28
+ panelTitle
75
29
  };
@@ -19,11 +19,8 @@ var order_exports = {};
19
19
  __export(order_exports, {
20
20
  isLastList: () => isLastList,
21
21
  itemCount: () => itemCount,
22
- itemRuns: () => itemRuns,
23
22
  limitMessage: () => limitMessage,
24
23
  orderTotal: () => orderTotal,
25
- priced: () => priced,
26
- refusedSection: () => refusedSection,
27
24
  sectionsOf: () => sectionsOf
28
25
  });
29
26
  module.exports = __toCommonJS(order_exports);
@@ -50,22 +47,6 @@ const lines = (fields, answers = {}) => lists(fields).flatMap((field) => {
50
47
  };
51
48
  });
52
49
  });
53
- const priced = (fields) => lines(fields).some(({ item }) => typeof (item == null ? void 0 : item.price) === "number");
54
- const itemRuns = (fields = []) => fields.reduce((runs, field) => {
55
- var _a;
56
- const single = (field == null ? void 0 : field.slug) === "list" && (((_a = field == null ? void 0 : field.settings) == null ? void 0 : _a.items) || []).length === 1;
57
- const previous = runs.at(-1);
58
- if (single && (previous == null ? void 0 : previous.single)) {
59
- previous.fields.push(field);
60
- } else {
61
- runs.push({
62
- fields: [field],
63
- single
64
- });
65
- }
66
- ;
67
- return runs;
68
- }, []);
69
50
  const orderTotal = (fields, answers) => Math.round(lines(fields, answers).reduce(
70
51
  (sum, { item, quantity }) => sum + (typeof (item == null ? void 0 : item.price) === "number" ? item.price * quantity : 0),
71
52
  0
@@ -80,15 +61,11 @@ const limitMessage = (item, quantity) => {
80
61
  const max = (_a = item == null ? void 0 : item.attributes) == null ? void 0 : _a.max;
81
62
  return max && Number(quantity) >= max ? import_fields_validate.errors.limit(max) : null;
82
63
  };
83
- const refusedSection = (sections = [], refused = {}) => sections.findIndex((section) => ((section == null ? void 0 : section.fields) || []).some((field) => Boolean(refused == null ? void 0 : refused[field == null ? void 0 : field.id])));
84
64
  // Annotate the CommonJS export names for ESM import in node:
85
65
  0 && (module.exports = {
86
66
  isLastList,
87
67
  itemCount,
88
- itemRuns,
89
68
  limitMessage,
90
69
  orderTotal,
91
- priced,
92
- refusedSection,
93
70
  sectionsOf
94
71
  });
@@ -21,22 +21,6 @@ const lines = (fields, answers = {}) => lists(fields).flatMap((field) => {
21
21
  };
22
22
  });
23
23
  });
24
- const priced = (fields) => lines(fields).some(({ item }) => typeof (item == null ? void 0 : item.price) === "number");
25
- const itemRuns = (fields = []) => fields.reduce((runs, field) => {
26
- var _a;
27
- const single = (field == null ? void 0 : field.slug) === "list" && (((_a = field == null ? void 0 : field.settings) == null ? void 0 : _a.items) || []).length === 1;
28
- const previous = runs.at(-1);
29
- if (single && (previous == null ? void 0 : previous.single)) {
30
- previous.fields.push(field);
31
- } else {
32
- runs.push({
33
- fields: [field],
34
- single
35
- });
36
- }
37
- ;
38
- return runs;
39
- }, []);
40
24
  const orderTotal = (fields, answers) => Math.round(lines(fields, answers).reduce(
41
25
  (sum, { item, quantity }) => sum + (typeof (item == null ? void 0 : item.price) === "number" ? item.price * quantity : 0),
42
26
  0
@@ -51,14 +35,10 @@ const limitMessage = (item, quantity) => {
51
35
  const max = (_a = item == null ? void 0 : item.attributes) == null ? void 0 : _a.max;
52
36
  return max && Number(quantity) >= max ? errors.limit(max) : null;
53
37
  };
54
- const refusedSection = (sections = [], refused = {}) => sections.findIndex((section) => ((section == null ? void 0 : section.fields) || []).some((field) => Boolean(refused == null ? void 0 : refused[field == null ? void 0 : field.id])));
55
38
  export {
56
39
  isLastList,
57
40
  itemCount,
58
- itemRuns,
59
41
  limitMessage,
60
42
  orderTotal,
61
- priced,
62
- refusedSection,
63
43
  sectionsOf
64
44
  };
@@ -80,11 +80,9 @@ const TemplateLayout = ({
80
80
  const [panel, setPanel] = (0, import_react.useState)(submissionId ? {
81
81
  name: "submission",
82
82
  data: {
83
- // @story public-entry/submit
84
- // The deep link's panel: the organizer's order, no title ( Pistachio ).
85
- after: (0, import_entry.afterOrder)(result),
86
83
  giveaway: (0, import_entry.awardingOn)(result),
87
84
  id: submissionId,
85
+ title: "Keep going",
88
86
  preview,
89
87
  style,
90
88
  ...params
@@ -374,12 +372,11 @@ const TemplateLayout = ({
374
372
  [iframeMessageResponse, preview, tracking, (_b = (_a = style == null ? void 0 : style.background) == null ? void 0 : _a.color) == null ? void 0 : _b.rgb, (_d = (_c = style == null ? void 0 : style.text) == null ? void 0 : _c.color) == null ? void 0 : _d.rgb, userAgent]
375
373
  );
376
374
  const submission = (0, import_react.useCallback)(
377
- ({ after, id, lead, message, panel: answer, repeat, title }) => {
375
+ ({ id, lead, message, panel: answer, repeat, title }) => {
378
376
  setPanel({
379
377
  name: "submission",
380
378
  data: {
381
379
  affiliate,
382
- after,
383
380
  giveaway: (0, import_entry.awardingOn)(data),
384
381
  id,
385
382
  lead,
@@ -17,7 +17,7 @@ import { request } from "@drawbridge/drawbridge-utils/fetch";
17
17
  import constants from "./lib/constants.mjs";
18
18
  import { checkout as checkoutKit, ensureCheckoutKit } from "./lib/checkout-kit.mjs";
19
19
  import { useTracking } from "./provider-analytics.mjs";
20
- import { afterOrder, awardingOn, buttonText, copy, formOn } from "./lib/entry.mjs";
20
+ import { awardingOn, buttonText, copy, formOn } from "./lib/entry.mjs";
21
21
  import { leadEndpoint } from "./lib/url.mjs";
22
22
  const TemplateModal = dynamic(() => import("./template-modal.mjs"), { ssr: false });
23
23
  const TemplateLayout = ({
@@ -48,11 +48,9 @@ const TemplateLayout = ({
48
48
  const [panel, setPanel] = useState(submissionId ? {
49
49
  name: "submission",
50
50
  data: {
51
- // @story public-entry/submit
52
- // The deep link's panel: the organizer's order, no title ( Pistachio ).
53
- after: afterOrder(result),
54
51
  giveaway: awardingOn(result),
55
52
  id: submissionId,
53
+ title: "Keep going",
56
54
  preview,
57
55
  style,
58
56
  ...params
@@ -342,12 +340,11 @@ const TemplateLayout = ({
342
340
  [iframeMessageResponse, preview, tracking, (_b = (_a = style == null ? void 0 : style.background) == null ? void 0 : _a.color) == null ? void 0 : _b.rgb, (_d = (_c = style == null ? void 0 : style.text) == null ? void 0 : _c.color) == null ? void 0 : _d.rgb, userAgent]
343
341
  );
344
342
  const submission = useCallback(
345
- ({ after, id, lead, message, panel: answer, repeat, title }) => {
343
+ ({ id, lead, message, panel: answer, repeat, title }) => {
346
344
  setPanel({
347
345
  name: "submission",
348
346
  data: {
349
347
  affiliate,
350
- after,
351
348
  giveaway: awardingOn(data),
352
349
  id,
353
350
  lead,
@@ -35,7 +35,6 @@ var import_jsx_runtime = require("react/jsx-runtime");
35
35
  var import_react = require("react");
36
36
  var import_react2 = require("@headlessui/react");
37
37
  var import_form_subdomain = __toESM(require("./form-subdomain"));
38
- var import_form_subdomain_agreement = __toESM(require("./form-subdomain-agreement"));
39
38
  var import_form_subdomain_header = __toESM(require("./form-subdomain-header"));
40
39
  var import_form_subdomain_issue = __toESM(require("./form-subdomain-issue"));
41
40
  var import_form_subdomain_prize = __toESM(require("./form-subdomain-prize"));
@@ -76,7 +75,7 @@ const TemplateModal = ({
76
75
  var _a, _b, _c, _d, _e, _f;
77
76
  const renderPanel = (0, import_react.useCallback)(
78
77
  () => {
79
- var _a2, _b2, _c2, _d2, _e2, _f2, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w;
78
+ var _a2, _b2, _c2, _d2, _e2, _f2, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u;
80
79
  const agreements = (data == null ? void 0 : data.agreements) || {};
81
80
  switch (panel == null ? void 0 : panel.name) {
82
81
  case "cart":
@@ -109,7 +108,6 @@ const TemplateModal = ({
109
108
  ...{
110
109
  agreements,
111
110
  button: buttons.close("enter"),
112
- documents: data == null ? void 0 : data.documents,
113
111
  onCheckout: openCheckout,
114
112
  onError: ({ message }) => setPanel({
115
113
  name: "error",
@@ -120,27 +118,24 @@ const TemplateModal = ({
120
118
  onSuccess: ({ created, message, result }) => {
121
119
  var _a3;
122
120
  return submission({
123
- // @story public-entry/submit
124
- // The panel's parts in the organizer's order; it has no title (Pistachio).
125
- after: (0, import_entry.afterOrder)(data),
126
121
  id: (_a3 = result == null ? void 0 : result.submission) == null ? void 0 : _a3.id,
127
122
  message: message || (0, import_entry.copy)(data, "confirmation"),
128
123
  // @story public-entry/submit
129
124
  // The panel's ads and missions ride on the answer: nothing more to ask.
130
125
  panel: result == null ? void 0 : result.panel,
131
126
  // The api answers a submitter at the limit with created false.
132
- repeat: created === false
127
+ repeat: created === false,
128
+ // @story public-entry/submit
129
+ title: (0, import_entry.panelTitle)(data)
133
130
  });
134
131
  },
135
132
  disabled: !preview && !(data == null ? void 0 : data.valid),
136
133
  fields: data == null ? void 0 : data.fields,
137
- giveaway: (0, import_entry.giveawayOn)(data),
138
134
  integrations: data == null ? void 0 : data.integrations,
139
135
  params,
140
136
  sms: data == null ? void 0 : data.sms,
141
137
  preview,
142
138
  style,
143
- submit: (0, import_entry.copy)(data, "submit"),
144
139
  tracking
145
140
  }
146
141
  }
@@ -228,50 +223,6 @@ const TemplateModal = ({
228
223
  }
229
224
  }
230
225
  ),
231
- (0, import_entry.menuAgreements)(data).map(
232
- (id) => {
233
- var _a3, _b3, _c3;
234
- return ((_a3 = agreements[id]) == null ? void 0 : _a3.type) === "link" || !((_b3 = agreements[id]) == null ? void 0 : _b3.type) && ((_c3 = agreements[id]) == null ? void 0 : _c3.link) ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
235
- import_template_subdomain_link.default,
236
- {
237
- ...{
238
- disabled: iframe,
239
- element: "a",
240
- href: agreements[id].link,
241
- onClick: () => tracking.track({
242
- name: "link-agreement-" + id
243
- }),
244
- rel: "noopener noreferrer",
245
- svg: import_arrow_right.default,
246
- target: "_blank",
247
- text: import_entry.agreementTitles[id]
248
- }
249
- },
250
- id
251
- ) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
252
- import_template_subdomain_link.default,
253
- {
254
- ...{
255
- disabled: iframe,
256
- onClick: () => {
257
- setPanel({
258
- name: "agreement",
259
- data: {
260
- id
261
- }
262
- });
263
- tracking.track({
264
- name: "link-agreement-" + id
265
- });
266
- },
267
- svg: import_arrow_right.default,
268
- text: import_entry.agreementTitles[id]
269
- }
270
- },
271
- id
272
- );
273
- }
274
- ),
275
226
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
276
227
  import_template_subdomain_link.default,
277
228
  {
@@ -295,24 +246,6 @@ const TemplateModal = ({
295
246
  }
296
247
  )
297
248
  ] });
298
- // @story public-entry/read-agreement
299
- // An agreement's document opened from the menu, with Back to the menu.
300
- case "agreement":
301
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
302
- import_form_subdomain_agreement.default,
303
- {
304
- ...{
305
- agreement: agreements == null ? void 0 : agreements[(_f2 = panel == null ? void 0 : panel.data) == null ? void 0 : _f2.id],
306
- back: () => setPanel({
307
- name: "menu"
308
- }),
309
- button: buttons.close("menu"),
310
- data: data == null ? void 0 : data.documents,
311
- style,
312
- title: import_entry.agreementTitles[(_g = panel == null ? void 0 : panel.data) == null ? void 0 : _g.id]
313
- }
314
- }
315
- );
316
249
  case "prize":
317
250
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_react.Fragment, { children: [
318
251
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
@@ -326,7 +259,7 @@ const TemplateModal = ({
326
259
  },
327
260
  button: buttons.close("menu"),
328
261
  style,
329
- title: (_h = panel == null ? void 0 : panel.data) == null ? void 0 : _h.title
262
+ title: (_f2 = panel == null ? void 0 : panel.data) == null ? void 0 : _f2.title
330
263
  }
331
264
  }
332
265
  ),
@@ -337,17 +270,17 @@ const TemplateModal = ({
337
270
  className: "space-y-6",
338
271
  ...style && {
339
272
  style: {
340
- borderColor: (_j = (_i = style == null ? void 0 : style.text) == null ? void 0 : _i.color) == null ? void 0 : _j.rgb
273
+ borderColor: (_h = (_g = style == null ? void 0 : style.text) == null ? void 0 : _g.color) == null ? void 0 : _h.rgb
341
274
  }
342
275
  }
343
276
  },
344
- children: (((_k = panel == null ? void 0 : panel.data) == null ? void 0 : _k.draws) || []).length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
277
+ children: (((_i = panel == null ? void 0 : panel.data) == null ? void 0 : _i.draws) || []).length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
345
278
  import_tabs.default,
346
279
  {
347
280
  ...{
348
281
  list: [
349
282
  {
350
- title: "Check " + ((_m = (_l = data == null ? void 0 : data.fields) == null ? void 0 : _l.primary) == null ? void 0 : _m.slug),
283
+ title: "Check " + ((_k = (_j = data == null ? void 0 : data.fields) == null ? void 0 : _j.primary) == null ? void 0 : _k.slug),
351
284
  slug: "verify"
352
285
  },
353
286
  {
@@ -368,7 +301,7 @@ const TemplateModal = ({
368
301
  style,
369
302
  tracking,
370
303
  values: {
371
- primary: (_n = data == null ? void 0 : data.fields) == null ? void 0 : _n.primary,
304
+ primary: (_l = data == null ? void 0 : data.fields) == null ? void 0 : _l.primary,
372
305
  prize: panel == null ? void 0 : panel.data,
373
306
  ...params
374
307
  }
@@ -383,11 +316,11 @@ const TemplateModal = ({
383
316
  className: "divide-y divide-inherit border-y border-inherit",
384
317
  ...style && {
385
318
  style: {
386
- borderColor: (_p = (_o = style == null ? void 0 : style.text) == null ? void 0 : _o.color) == null ? void 0 : _p.rgb
319
+ borderColor: (_n = (_m = style == null ? void 0 : style.text) == null ? void 0 : _m.color) == null ? void 0 : _n.rgb
387
320
  }
388
321
  }
389
322
  },
390
- children: (((_q = panel == null ? void 0 : panel.data) == null ? void 0 : _q.draws) || []).map((draw, key) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
323
+ children: (((_o = panel == null ? void 0 : panel.data) == null ? void 0 : _o.draws) || []).map((draw, key) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
391
324
  "div",
392
325
  {
393
326
  ...{
@@ -445,11 +378,11 @@ const TemplateModal = ({
445
378
  className: "divide-y divide-inherit border-t border-inherit [&>:last-child>span]:pb-0",
446
379
  ...style && {
447
380
  style: {
448
- borderColor: (_s = (_r = style == null ? void 0 : style.text) == null ? void 0 : _r.color) == null ? void 0 : _s.rgb
381
+ borderColor: (_q = (_p = style == null ? void 0 : style.text) == null ? void 0 : _p.color) == null ? void 0 : _q.rgb
449
382
  }
450
383
  }
451
384
  },
452
- children: (_t = data == null ? void 0 : data.prizes) == null ? void 0 : _t.items.map((prize, key) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
385
+ children: (_r = data == null ? void 0 : data.prizes) == null ? void 0 : _r.items.map((prize, key) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
453
386
  import_card_prize.default,
454
387
  {
455
388
  ...{
@@ -480,7 +413,7 @@ const TemplateModal = ({
480
413
  {
481
414
  ...{
482
415
  cart,
483
- drawer: !((_v = (_u = panel.data) == null ? void 0 : _u.product) == null ? void 0 : _v.sample),
416
+ drawer: !((_t = (_s = panel.data) == null ? void 0 : _s.product) == null ? void 0 : _t.sample),
484
417
  onLineRemove: onCartLineRemove,
485
418
  onLineUpdate: onCartLineUpdate,
486
419
  onSuccess: ({ result }) => {
@@ -537,7 +470,7 @@ const TemplateModal = ({
537
470
  {
538
471
  ...{
539
472
  button: buttons.close("purchase"),
540
- message: (_w = panel == null ? void 0 : panel.data) == null ? void 0 : _w.message,
473
+ message: (_u = panel == null ? void 0 : panel.data) == null ? void 0 : _u.message,
541
474
  style,
542
475
  title: "Purchase complete"
543
476
  }