@drawbridge/components 0.1.13 → 0.1.15

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 (242) hide show
  1. package/components/styles.css +364 -2
  2. package/dist/advertisement.js +3 -1
  3. package/dist/advertisement.mjs +3 -1
  4. package/dist/bridge/advertisements.js +2 -0
  5. package/dist/bridge/advertisements.mjs +2 -0
  6. package/dist/bridge/countdown.js +2 -1
  7. package/dist/bridge/countdown.mjs +2 -1
  8. package/dist/bridge/form-subdomain-embed.js +18 -20
  9. package/dist/bridge/form-subdomain-embed.mjs +18 -20
  10. package/dist/bridge/form-subdomain-header.js +24 -1
  11. package/dist/bridge/form-subdomain-header.mjs +24 -1
  12. package/dist/bridge/form-subdomain-missions.js +577 -0
  13. package/dist/bridge/form-subdomain-missions.mjs +540 -0
  14. package/dist/bridge/form-subdomain.js +530 -220
  15. package/dist/bridge/form-subdomain.mjs +533 -222
  16. package/dist/bridge/lib/entry.js +59 -0
  17. package/dist/bridge/lib/entry.mjs +29 -0
  18. package/dist/bridge/lib/location.js +38 -0
  19. package/dist/bridge/lib/location.mjs +13 -0
  20. package/dist/bridge/lib/order.js +71 -0
  21. package/dist/bridge/lib/order.mjs +44 -0
  22. package/dist/bridge/lib/url.js +9 -0
  23. package/dist/bridge/lib/url.mjs +7 -0
  24. package/dist/bridge/share-button.js +5 -3
  25. package/dist/bridge/share-button.mjs +5 -3
  26. package/dist/bridge/subdomain-content.js +7 -6
  27. package/dist/bridge/subdomain-content.mjs +7 -6
  28. package/dist/bridge/template-layout.js +59 -21
  29. package/dist/bridge/template-layout.mjs +59 -21
  30. package/dist/bridge/template-modal.js +42 -76
  31. package/dist/bridge/template-modal.mjs +39 -73
  32. package/dist/bridge/template-preview.js +208 -0
  33. package/dist/bridge/template-preview.mjs +173 -0
  34. package/dist/bridge/template-subdomain-gallery.js +6 -2
  35. package/dist/bridge/template-subdomain-gallery.mjs +6 -2
  36. package/dist/bridge/template-subdomain-link.js +6 -1
  37. package/dist/bridge/template-subdomain-link.mjs +6 -1
  38. package/dist/bridge/template-subdomain.js +20 -15
  39. package/dist/bridge/template-subdomain.mjs +20 -15
  40. package/dist/dashboard/accordion.js +74 -39
  41. package/dist/dashboard/accordion.mjs +74 -39
  42. package/dist/dashboard/avatar.js +109 -3
  43. package/dist/dashboard/avatar.mjs +106 -4
  44. package/dist/dashboard/buttons-subscription.js +384 -0
  45. package/dist/dashboard/buttons-subscription.mjs +349 -0
  46. package/dist/dashboard/card-campaign-switch.js +277 -0
  47. package/dist/dashboard/card-campaign-switch.mjs +243 -0
  48. package/dist/dashboard/card-order.js +231 -29
  49. package/dist/dashboard/card-order.mjs +231 -29
  50. package/dist/dashboard/card-section.js +26 -2
  51. package/dist/dashboard/card-section.mjs +26 -2
  52. package/dist/dashboard/card-tile.js +6 -7
  53. package/dist/dashboard/card-tile.mjs +6 -7
  54. package/dist/dashboard/connection-workflows.js +205 -0
  55. package/dist/dashboard/connection-workflows.mjs +171 -0
  56. package/dist/dashboard/device.js +95 -0
  57. package/dist/dashboard/device.mjs +72 -0
  58. package/dist/dashboard/form-admin-campaign.js +19 -50
  59. package/dist/dashboard/form-admin-campaign.mjs +20 -51
  60. package/dist/dashboard/form-ai.js +9 -6
  61. package/dist/dashboard/form-ai.mjs +9 -6
  62. package/dist/dashboard/form-auth.js +35 -25
  63. package/dist/dashboard/form-auth.mjs +36 -26
  64. package/dist/dashboard/form-file.js +10 -1
  65. package/dist/dashboard/form-file.mjs +10 -1
  66. package/dist/dashboard/form-filters-analytics.js +14 -1
  67. package/dist/dashboard/form-filters-analytics.mjs +15 -2
  68. package/dist/dashboard/form-organization-campaign-advertisement.js +15 -1
  69. package/dist/dashboard/form-organization-campaign-advertisement.mjs +16 -2
  70. package/dist/dashboard/form-organization-campaign-agreement.js +215 -164
  71. package/dist/dashboard/form-organization-campaign-agreement.mjs +215 -164
  72. package/dist/dashboard/form-organization-campaign-field-email.js +0 -34
  73. package/dist/dashboard/form-organization-campaign-field-email.mjs +0 -34
  74. package/dist/dashboard/form-organization-campaign-field-list.js +466 -0
  75. package/dist/dashboard/form-organization-campaign-field-list.mjs +437 -0
  76. package/dist/dashboard/form-organization-campaign-field-phone.js +0 -34
  77. package/dist/dashboard/form-organization-campaign-field-phone.mjs +0 -34
  78. package/dist/dashboard/form-organization-campaign-field-remove.js +66 -0
  79. package/dist/dashboard/form-organization-campaign-field-remove.mjs +33 -0
  80. package/dist/dashboard/form-organization-campaign-field-select.js +51 -5
  81. package/dist/dashboard/form-organization-campaign-field-select.mjs +51 -5
  82. package/dist/dashboard/form-organization-campaign-field-textarea.js +46 -8
  83. package/dist/dashboard/form-organization-campaign-field-textarea.mjs +46 -8
  84. package/dist/dashboard/form-organization-campaign-integration-age.js +6 -12
  85. package/dist/dashboard/form-organization-campaign-integration-age.mjs +6 -12
  86. package/dist/dashboard/form-organization-campaign-integration-enable.js +52 -24
  87. package/dist/dashboard/form-organization-campaign-integration-enable.mjs +54 -26
  88. package/dist/dashboard/form-organization-campaign-integration-geocode.js +6 -12
  89. package/dist/dashboard/form-organization-campaign-integration-geocode.mjs +6 -12
  90. package/dist/dashboard/form-organization-campaign-integration-gtm.js +6 -12
  91. package/dist/dashboard/form-organization-campaign-integration-gtm.mjs +6 -12
  92. package/dist/dashboard/form-organization-campaign-link.js +7 -1
  93. package/dist/dashboard/form-organization-campaign-link.mjs +7 -1
  94. package/dist/dashboard/form-organization-campaign-mission.js +291 -0
  95. package/dist/dashboard/form-organization-campaign-mission.mjs +258 -0
  96. package/dist/dashboard/form-organization-campaign-page-embed.js +13 -2
  97. package/dist/dashboard/form-organization-campaign-page-embed.mjs +12 -1
  98. package/dist/dashboard/form-organization-campaign-page.js +20 -11
  99. package/dist/dashboard/form-organization-campaign-page.mjs +20 -11
  100. package/dist/dashboard/form-organization-campaign-prize-edit.js +12 -1
  101. package/dist/dashboard/form-organization-campaign-prize-edit.mjs +12 -1
  102. package/dist/dashboard/form-organization-campaign-section.js +243 -0
  103. package/dist/dashboard/form-organization-campaign-section.mjs +214 -0
  104. package/dist/dashboard/form-organization-campaign.js +114 -469
  105. package/dist/dashboard/form-organization-campaign.mjs +113 -467
  106. package/dist/dashboard/form-organization-export.js +4 -7
  107. package/dist/dashboard/form-organization-export.mjs +4 -7
  108. package/dist/dashboard/form-organization-identity.js +46 -51
  109. package/dist/dashboard/form-organization-identity.mjs +46 -51
  110. package/dist/dashboard/form-organization-workflow.js +708 -687
  111. package/dist/dashboard/form-organization-workflow.mjs +704 -683
  112. package/dist/dashboard/form-organization.js +82 -110
  113. package/dist/dashboard/form-organization.mjs +81 -109
  114. package/dist/dashboard/form-otc.js +4 -5
  115. package/dist/dashboard/form-otc.mjs +4 -5
  116. package/dist/dashboard/form-payment-methods.js +20 -9
  117. package/dist/dashboard/form-payment-methods.mjs +20 -9
  118. package/dist/dashboard/form-stripe.js +30 -0
  119. package/dist/dashboard/form-stripe.mjs +26 -0
  120. package/dist/dashboard/input-array.js +4 -2
  121. package/dist/dashboard/input-array.mjs +4 -2
  122. package/dist/dashboard/input-combobox.js +7 -3
  123. package/dist/dashboard/input-combobox.mjs +7 -3
  124. package/dist/dashboard/input-date.js +7 -0
  125. package/dist/dashboard/input-date.mjs +7 -0
  126. package/dist/dashboard/input-fields.js +80 -20
  127. package/dist/dashboard/input-fields.mjs +80 -20
  128. package/dist/dashboard/input-file.js +21 -1
  129. package/dist/dashboard/input-file.mjs +21 -1
  130. package/dist/dashboard/input-font.js +10 -1
  131. package/dist/dashboard/input-font.mjs +10 -1
  132. package/dist/dashboard/lib/item-list.js +57 -0
  133. package/dist/dashboard/lib/item-list.mjs +33 -0
  134. package/dist/dashboard/lib/menu.js +50 -0
  135. package/dist/dashboard/lib/menu.mjs +26 -0
  136. package/dist/dashboard/locked.js +82 -0
  137. package/dist/dashboard/locked.mjs +53 -0
  138. package/dist/dashboard/menu.js +72 -19
  139. package/dist/dashboard/menu.mjs +72 -19
  140. package/dist/dashboard/note-ai.js +69 -0
  141. package/dist/dashboard/note-ai.mjs +36 -0
  142. package/dist/dashboard/preview.js +419 -0
  143. package/dist/dashboard/preview.mjs +384 -0
  144. package/dist/dashboard/steps.js +39 -13
  145. package/dist/dashboard/steps.mjs +37 -12
  146. package/dist/dashboard/table-contacts.js +136 -0
  147. package/dist/dashboard/table-contacts.mjs +103 -0
  148. package/dist/dashboard/template-not-found.js +4 -2
  149. package/dist/dashboard/template-not-found.mjs +4 -2
  150. package/dist/dashboard/template-socket.js +20 -7
  151. package/dist/dashboard/template-socket.mjs +20 -7
  152. package/dist/icons/desktop.js +46 -0
  153. package/dist/icons/desktop.mjs +27 -0
  154. package/dist/icons/phone.js +46 -0
  155. package/dist/icons/phone.mjs +27 -0
  156. package/dist/icons/puzzle-piece.js +46 -0
  157. package/dist/icons/puzzle-piece.mjs +27 -0
  158. package/dist/icons/tablet.js +46 -0
  159. package/dist/icons/tablet.mjs +27 -0
  160. package/dist/icons/users.js +46 -0
  161. package/dist/icons/users.mjs +27 -0
  162. package/dist/input-checkbox.js +1 -0
  163. package/dist/input-checkbox.mjs +1 -0
  164. package/dist/input-code.js +83 -0
  165. package/dist/input-code.mjs +50 -0
  166. package/dist/input-text.js +2 -1
  167. package/dist/input-text.mjs +2 -1
  168. package/dist/shared/button.js +1 -1
  169. package/dist/shared/button.mjs +1 -1
  170. package/dist/shared/input-checkbox-list.js +0 -1
  171. package/dist/shared/input-checkbox-list.mjs +0 -1
  172. package/dist/shared/input-switch.js +6 -1
  173. package/dist/shared/input-switch.mjs +6 -1
  174. package/dist/shared/lib/campaign.js +123 -0
  175. package/dist/shared/lib/campaign.mjs +96 -0
  176. package/dist/shared/lib/helpers.js +14 -2
  177. package/dist/shared/lib/helpers.mjs +13 -2
  178. package/package.json +133 -13
  179. package/types/bridge/form-subdomain-header.d.ts +2 -0
  180. package/types/bridge/form-subdomain-missions.d.ts +38 -0
  181. package/types/bridge/form-subdomain.d.ts +23 -1
  182. package/types/bridge/lib/entry.d.ts +26 -0
  183. package/types/bridge/lib/location.d.ts +13 -0
  184. package/types/bridge/lib/order.d.ts +30 -0
  185. package/types/bridge/lib/url.d.ts +19 -0
  186. package/types/bridge/template-modal.d.ts +1 -1
  187. package/types/bridge/template-preview.d.ts +10 -0
  188. package/types/bridge/template-subdomain-link.d.ts +2 -0
  189. package/types/dashboard/accordion.d.ts +2 -0
  190. package/types/dashboard/avatar.d.ts +18 -2
  191. package/types/dashboard/buttons-subscription.d.ts +22 -0
  192. package/types/dashboard/card-campaign-switch.d.ts +32 -0
  193. package/types/dashboard/card-order.d.ts +25 -1
  194. package/types/dashboard/card-section.d.ts +2 -0
  195. package/types/dashboard/connection-workflows.d.ts +33 -0
  196. package/types/dashboard/device.d.ts +12 -0
  197. package/types/dashboard/form-admin-campaign.d.ts +3 -2
  198. package/types/dashboard/form-ai.d.ts +2 -2
  199. package/types/dashboard/form-organization-campaign-agreement.d.ts +18 -12
  200. package/types/dashboard/form-organization-campaign-field-email.d.ts +1 -2
  201. package/types/dashboard/form-organization-campaign-field-list.d.ts +36 -0
  202. package/types/dashboard/form-organization-campaign-field-phone.d.ts +1 -2
  203. package/types/dashboard/form-organization-campaign-field-remove.d.ts +22 -0
  204. package/types/dashboard/form-organization-campaign-field-select.d.ts +2 -1
  205. package/types/dashboard/form-organization-campaign-field-textarea.d.ts +2 -1
  206. package/types/dashboard/form-organization-campaign-integration-age.d.ts +3 -3
  207. package/types/dashboard/form-organization-campaign-integration-enable.d.ts +3 -3
  208. package/types/dashboard/form-organization-campaign-mission.d.ts +40 -0
  209. package/types/dashboard/form-organization-campaign-section.d.ts +29 -0
  210. package/types/dashboard/form-organization-campaign.d.ts +27 -17
  211. package/types/dashboard/form-organization-identity.d.ts +2 -0
  212. package/types/dashboard/form-organization-workflow.d.ts +56 -47
  213. package/types/dashboard/form-organization.d.ts +7 -2
  214. package/types/dashboard/form-stripe.d.ts +3 -0
  215. package/types/dashboard/input-combobox.d.ts +2 -0
  216. package/types/dashboard/input-date.d.ts +2 -0
  217. package/types/dashboard/input-fields.d.ts +3 -2
  218. package/types/dashboard/input-file.d.ts +4 -0
  219. package/types/dashboard/lib/item-list.d.ts +14 -0
  220. package/types/dashboard/lib/menu.d.ts +17 -0
  221. package/types/dashboard/locked.d.ts +10 -0
  222. package/types/dashboard/menu.d.ts +10 -2
  223. package/types/dashboard/note-ai.d.ts +15 -0
  224. package/types/dashboard/preview.d.ts +33 -0
  225. package/types/dashboard/steps.d.ts +19 -4
  226. package/types/dashboard/table-cell-title.d.ts +2 -2
  227. package/types/dashboard/table-contacts.d.ts +2 -0
  228. package/types/icons/desktop.d.ts +5 -0
  229. package/types/icons/phone.d.ts +5 -0
  230. package/types/icons/puzzle-piece.d.ts +5 -0
  231. package/types/icons/tablet.d.ts +5 -0
  232. package/types/icons/users.d.ts +5 -0
  233. package/types/input-code.d.ts +23 -0
  234. package/types/shared/input-switch.d.ts +2 -0
  235. package/types/shared/lib/campaign.d.ts +35 -0
  236. package/types/shared/lib/helpers.d.ts +3 -0
  237. package/dist/dashboard/card-integration.js +0 -187
  238. package/dist/dashboard/card-integration.mjs +0 -158
  239. package/dist/dashboard/iframe.js +0 -159
  240. package/dist/dashboard/iframe.mjs +0 -130
  241. package/types/dashboard/card-integration.d.ts +0 -24
  242. package/types/dashboard/iframe.d.ts +0 -18
@@ -50,8 +50,12 @@
50
50
  @apply opacity-100;
51
51
  }
52
52
 
53
- [readonly] {
54
- @apply opacity-50;
53
+ /* Read-only values (a sending domain, DNS records, an embed code) at full
54
+ strength on gray: faded, they read as an empty field (Darren, Dulce Local
55
+ walk, 2026-10-29). `.input` repeats it so it outranks the input's white. */
56
+ [readonly],
57
+ .input[readonly] {
58
+ @apply bg-gray-light;
55
59
  }
56
60
 
57
61
  .input-group {
@@ -62,6 +66,12 @@
62
66
  @apply w-full text-inherit border border-inherit rounded py-2 px-3 bg-white focus:outline-hidden focus:ring-0 focus:border-inherit;
63
67
  }
64
68
 
69
+ /* A toolbar's select ( InputCombobox size small ): small text, the small
70
+ button's 42 px, so the two sit level on one line ( Darren, 2026-10-31 ). */
71
+ .input.small {
72
+ @apply py-2 text-sm min-h-[42px];
73
+ }
74
+
65
75
  input[ type='number' ]::-webkit-inner-spin-button,
66
76
  input[ type='number' ]::-webkit-outer-spin-button {
67
77
  margin: 0;
@@ -226,3 +236,355 @@
226
236
  color: white;
227
237
  border: none;
228
238
  }
239
+
240
+ /*! Devices.css v0.2.0 | MIT License | github.com/picturepan2/devices.css */
241
+ /* The three frames dashboard/device.js draws ( iPhone 14 Pro, iPad Pro, MacBook Pro ), taken
242
+ from devices.css 0.2.0's dist/devices.css, every rule for those three as it ships; the other
243
+ devices and the colour variants ( device-silver, -black, -gold, -spacegray ) are left out:
244
+ device.js draws device-<model> only. In the components layer, so a utility on the screen
245
+ outranks the package's black screen: device.js paints it bg-white, the colour the page
246
+ starts on, and unlayered the black showed through the phone's safe strip. */
247
+ @layer components {
248
+ /* The package's reset, kept to the device's own parts: its `.device *` would also give every
249
+ element inside the screen display: block, and the screen holds our own page. */
250
+ .device,
251
+ .device::before,
252
+ .device::after,
253
+ .device > *,
254
+ .device > *::before,
255
+ .device > *::after,
256
+ .device .device-frame > .device-screen {
257
+ box-sizing: border-box;
258
+ display: block;
259
+ }
260
+
261
+ .device {
262
+ position: relative;
263
+ transform: scale(1);
264
+ z-index: 1;
265
+ }
266
+
267
+ .device .device-frame {
268
+ z-index: 1;
269
+ }
270
+
271
+ .device .device-screen {
272
+ background-color: #000;
273
+ position: relative;
274
+ }
275
+
276
+ .device-iphone-14-pro {
277
+ height: 868px;
278
+ width: 428px;
279
+ }
280
+
281
+ .device-iphone-14-pro .device-frame {
282
+ background: #010101;
283
+ border: 1px solid #1b1721;
284
+ border-radius: 68px;
285
+ box-shadow: inset 0 0 4px 2px #c0b7cd, inset 0 0 0 6px #342c3f;
286
+ height: 868px;
287
+ padding: 19px;
288
+ width: 428px;
289
+ }
290
+
291
+ .device-iphone-14-pro .device-screen {
292
+ border-radius: 49px;
293
+ height: 830px;
294
+ width: 390px;
295
+ }
296
+
297
+ .device-iphone-14-pro .device-stripe::after,
298
+ .device-iphone-14-pro .device-stripe::before {
299
+ border: solid rgba(1, 1, 1, .25);
300
+ border-width: 0 7px;
301
+ content: "";
302
+ height: 7px;
303
+ left: 0;
304
+ position: absolute;
305
+ width: 100%;
306
+ z-index: 9;
307
+ }
308
+
309
+ .device-iphone-14-pro .device-stripe::after {
310
+ top: 85px;
311
+ }
312
+
313
+ .device-iphone-14-pro .device-stripe::before {
314
+ bottom: 85px;
315
+ }
316
+
317
+ .device-iphone-14-pro .device-header {
318
+ background: #010101;
319
+ border-radius: 20px;
320
+ height: 35px;
321
+ left: 50%;
322
+ margin-left: -60px;
323
+ position: absolute;
324
+ top: 29px;
325
+ width: 120px;
326
+ }
327
+
328
+ .device-iphone-14-pro .device-sensors::after,
329
+ .device-iphone-14-pro .device-sensors::before {
330
+ content: "";
331
+ position: absolute;
332
+ }
333
+
334
+ .device-iphone-14-pro .device-sensors::after {
335
+ background: #010101;
336
+ border-radius: 17px;
337
+ height: 33px;
338
+ left: 50%;
339
+ margin-left: -60px;
340
+ top: 30px;
341
+ width: 74px;
342
+ }
343
+
344
+ .device-iphone-14-pro .device-sensors::before {
345
+ background: radial-gradient(farthest-corner at 20% 20%, #6074bf 0, transparent 40%), radial-gradient(farthest-corner at 80% 80%, #513785 0, #24555e 20%, transparent 50%);
346
+ border-radius: 50%;
347
+ box-shadow: 0 0 1px 1px rgba(255, 255, 255, .05);
348
+ height: 9px;
349
+ left: 50%;
350
+ margin-left: 36px;
351
+ top: 42px;
352
+ width: 9px;
353
+ }
354
+
355
+ .device-iphone-14-pro .device-btns {
356
+ background: #1b1721;
357
+ border-radius: 2px;
358
+ height: 32px;
359
+ left: -2px;
360
+ position: absolute;
361
+ top: 115px;
362
+ width: 3px;
363
+ }
364
+
365
+ .device-iphone-14-pro .device-btns::after,
366
+ .device-iphone-14-pro .device-btns::before {
367
+ background: #1b1721;
368
+ border-radius: 2px;
369
+ content: "";
370
+ height: 62px;
371
+ left: 0;
372
+ position: absolute;
373
+ width: 3px;
374
+ }
375
+
376
+ .device-iphone-14-pro .device-btns::after {
377
+ top: 60px;
378
+ }
379
+
380
+ .device-iphone-14-pro .device-btns::before {
381
+ top: 140px;
382
+ }
383
+
384
+ .device-iphone-14-pro .device-power {
385
+ background: #1b1721;
386
+ border-radius: 2px;
387
+ height: 100px;
388
+ position: absolute;
389
+ right: -2px;
390
+ top: 200px;
391
+ width: 3px;
392
+ }
393
+
394
+ .device-iphone-14-pro .device-home::after,
395
+ .device-iphone-14-pro .device-home::before {
396
+ border: solid rgba(1, 1, 1, .25);
397
+ border-width: 6px 0;
398
+ content: "";
399
+ height: 6px;
400
+ position: absolute;
401
+ width: 6px;
402
+ z-index: 9;
403
+ }
404
+
405
+ .device-iphone-14-pro .device-home::after {
406
+ right: 86px;
407
+ top: 0;
408
+ }
409
+
410
+ .device-iphone-14-pro .device-home::before {
411
+ bottom: 0;
412
+ left: 86px;
413
+ }
414
+
415
+ .device-macbook-pro {
416
+ height: 434px;
417
+ width: 740px;
418
+ }
419
+
420
+ .device-macbook-pro .device-frame {
421
+ background: #0d0d0d;
422
+ border-radius: 20px;
423
+ box-shadow: inset 0 0 0 2px #c8cacb;
424
+ height: 418px;
425
+ margin: 0 auto;
426
+ padding: 9px 9px 23px 9px;
427
+ position: relative;
428
+ width: 618px;
429
+ }
430
+
431
+ .device-macbook-pro .device-frame::after {
432
+ background: linear-gradient(to bottom, #272727, #0d0d0d);
433
+ border-radius: 0 0 20px 20px;
434
+ bottom: 2px;
435
+ content: "";
436
+ height: 24px;
437
+ left: 2px;
438
+ position: absolute;
439
+ width: 614px;
440
+ }
441
+
442
+ .device-macbook-pro .device-header {
443
+ background: #0d0d0d;
444
+ border-bottom-left-radius: 4px;
445
+ border-bottom-right-radius: 4px;
446
+ height: 12px;
447
+ left: 50%;
448
+ margin-left: -32px;
449
+ position: absolute;
450
+ top: 11px;
451
+ width: 64px;
452
+ z-index: 2;
453
+ }
454
+
455
+ .device-macbook-pro .device-header::after,
456
+ .device-macbook-pro .device-header::before {
457
+ content: "";
458
+ height: 4px;
459
+ position: absolute;
460
+ top: 0;
461
+ width: 4px;
462
+ }
463
+
464
+ .device-macbook-pro .device-header::after {
465
+ background: radial-gradient(circle at bottom left, transparent 0, transparent 75%, #0d0d0d 75%, #0d0d0d 100%);
466
+ left: -4px;
467
+ }
468
+
469
+ .device-macbook-pro .device-header::before {
470
+ background: radial-gradient(circle at bottom right, transparent 0, transparent 75%, #0d0d0d 75%, #0d0d0d 100%);
471
+ right: -4px;
472
+ }
473
+
474
+ .device-macbook-pro .device-screen {
475
+ border: 2px solid #121212;
476
+ border-radius: 10px 10px 0 0;
477
+ height: 375px;
478
+ width: 600px;
479
+ }
480
+
481
+ .device-macbook-pro .device-power {
482
+ background: radial-gradient(circle at center, #e2e3e4 85%, #c8cacb 100%);
483
+ border: solid #a0a3a7;
484
+ border-radius: 2px 2px 12px 12px;
485
+ border-width: 1px 2px 0 2px;
486
+ box-shadow: inset 0 -2px 8px 0 #6c7074;
487
+ height: 24px;
488
+ margin-top: -10px;
489
+ position: relative;
490
+ width: 740px;
491
+ z-index: 9;
492
+ }
493
+
494
+ .device-macbook-pro .device-power::after {
495
+ background: #e2e3e4;
496
+ border-radius: 0 0 10px 10px;
497
+ box-shadow: inset 0 0 4px 2px #babdbf;
498
+ content: "";
499
+ height: 10px;
500
+ left: 50%;
501
+ margin-left: -60px;
502
+ position: absolute;
503
+ top: 0;
504
+ width: 120px;
505
+ }
506
+
507
+ .device-macbook-pro .device-power::before {
508
+ background: transparent;
509
+ border-radius: 0 0 3px 3px;
510
+ bottom: -2px;
511
+ box-shadow: -300px 0 #272727, 300px 0 #272727;
512
+ content: "";
513
+ height: 2px;
514
+ left: 50%;
515
+ margin-left: -20px;
516
+ position: absolute;
517
+ width: 40px;
518
+ }
519
+
520
+ .device-ipad-pro {
521
+ height: 778px;
522
+ width: 560px;
523
+ }
524
+
525
+ .device-ipad-pro .device-frame {
526
+ background: #0d0d0d;
527
+ border-radius: 36px;
528
+ box-shadow: inset 0 0 0 1px #babdbf, inset 0 0 1px 3px #e2e3e4;
529
+ height: 778px;
530
+ padding: 27px;
531
+ width: 560px;
532
+ }
533
+
534
+ .device-ipad-pro .device-screen {
535
+ border: 2px solid #121212;
536
+ border-radius: 11px;
537
+ height: 724px;
538
+ width: 506px;
539
+ }
540
+
541
+ .device-ipad-pro .device-btns::after,
542
+ .device-ipad-pro .device-btns::before {
543
+ background: #babdbf;
544
+ content: "";
545
+ position: absolute;
546
+ }
547
+
548
+ .device-ipad-pro .device-btns::after {
549
+ height: 2px;
550
+ right: 40px;
551
+ top: -2px;
552
+ width: 36px;
553
+ }
554
+
555
+ .device-ipad-pro .device-btns::before {
556
+ box-shadow: 0 37px #babdbf;
557
+ height: 32px;
558
+ right: -2px;
559
+ top: 63px;
560
+ width: 2px;
561
+ }
562
+
563
+ .device-ipad-pro .device-sensors::after,
564
+ .device-ipad-pro .device-sensors::before {
565
+ content: "";
566
+ position: absolute;
567
+ }
568
+
569
+ .device-ipad-pro .device-sensors::after {
570
+ background: #1a1a1a;
571
+ border-radius: 17px;
572
+ box-shadow: -20px 0 #1a1a1a, 70px 0 #1a1a1a;
573
+ height: 10px;
574
+ left: 50%;
575
+ margin-left: -30px;
576
+ top: 12px;
577
+ width: 10px;
578
+ }
579
+
580
+ .device-ipad-pro .device-sensors::before {
581
+ background: radial-gradient(farthest-corner at 20% 20%, #6074bf 0, transparent 40%), radial-gradient(farthest-corner at 80% 80%, #513785 0, #24555e 20%, transparent 50%);
582
+ border-radius: 50%;
583
+ box-shadow: 0 0 1px 1px rgba(255, 255, 255, .05);
584
+ height: 6px;
585
+ left: 50%;
586
+ margin-left: -3px;
587
+ top: 14px;
588
+ width: 6px;
589
+ }
590
+ }
@@ -34,6 +34,7 @@ module.exports = __toCommonJS(advertisement_exports);
34
34
  var import_jsx_runtime = require("react/jsx-runtime");
35
35
  var import_cdn = require("@drawbridge/drawbridge-utils/cdn");
36
36
  var import_button = __toESM(require("./shared/button"));
37
+ var import_helpers = require("./shared/lib/helpers");
37
38
  var import_empty = __toESM(require("./shared/empty"));
38
39
  var import_product = __toESM(require("./product"));
39
40
  var import_video = __toESM(require("./video"));
@@ -52,6 +53,7 @@ const Advertisement = ({
52
53
  brand,
53
54
  button,
54
55
  campaign,
56
+ descriptions,
55
57
  disabled = false,
56
58
  errors,
57
59
  file,
@@ -249,7 +251,7 @@ const Advertisement = ({
249
251
  ImageComponent,
250
252
  {
251
253
  ...{
252
- alt: file == null ? void 0 : file.filename,
254
+ alt: (0, import_helpers.imageAlt)(file, descriptions == null ? void 0 : descriptions.asset),
253
255
  className: "w-full h-full object-cover",
254
256
  fill: true,
255
257
  priority: false,
@@ -2,6 +2,7 @@
2
2
  import { jsx, jsxs } from "react/jsx-runtime";
3
3
  import { cdnSrc } from "@drawbridge/drawbridge-utils/cdn";
4
4
  import Button from "./shared/button.mjs";
5
+ import { imageAlt } from "./shared/lib/helpers.mjs";
5
6
  import Empty from "./shared/empty.mjs";
6
7
  import Product from "./product.mjs";
7
8
  import Video from "./video.mjs";
@@ -20,6 +21,7 @@ const Advertisement = ({
20
21
  brand,
21
22
  button,
22
23
  campaign,
24
+ descriptions,
23
25
  disabled = false,
24
26
  errors,
25
27
  file,
@@ -217,7 +219,7 @@ const Advertisement = ({
217
219
  ImageComponent,
218
220
  {
219
221
  ...{
220
- alt: file == null ? void 0 : file.filename,
222
+ alt: imageAlt(file, descriptions == null ? void 0 : descriptions.asset),
221
223
  className: "w-full h-full object-cover",
222
224
  fill: true,
223
225
  priority: false,
@@ -41,6 +41,7 @@ const Advertisement = ({
41
41
  affiliate,
42
42
  button,
43
43
  campaign,
44
+ descriptions,
44
45
  file,
45
46
  id,
46
47
  isActive = false,
@@ -110,6 +111,7 @@ const Advertisement = ({
110
111
  brand: { style },
111
112
  button,
112
113
  campaign,
114
+ descriptions,
113
115
  file,
114
116
  id,
115
117
  ImageComponent: import_image.default,
@@ -9,6 +9,7 @@ const Advertisement = ({
9
9
  affiliate,
10
10
  button,
11
11
  campaign,
12
+ descriptions,
12
13
  file,
13
14
  id,
14
15
  isActive = false,
@@ -78,6 +79,7 @@ const Advertisement = ({
78
79
  brand: { style },
79
80
  button,
80
81
  campaign,
82
+ descriptions,
81
83
  file,
82
84
  id,
83
85
  ImageComponent: Image,
@@ -54,7 +54,8 @@ const CountDown = ({
54
54
  {
55
55
  ...{
56
56
  className: classes.join(" "),
57
- "aria-label": "Time Remaining in Contest:"
57
+ // @story public-entry/view-page
58
+ "aria-label": "Time remaining in campaign"
58
59
  },
59
60
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
60
61
  "p",
@@ -22,7 +22,8 @@ const CountDown = ({
22
22
  {
23
23
  ...{
24
24
  className: classes.join(" "),
25
- "aria-label": "Time Remaining in Contest:"
25
+ // @story public-entry/view-page
26
+ "aria-label": "Time remaining in campaign"
26
27
  },
27
28
  children: /* @__PURE__ */ jsxs(
28
29
  "p",
@@ -33,7 +33,6 @@ __export(form_subdomain_embed_exports, {
33
33
  module.exports = __toCommonJS(form_subdomain_embed_exports);
34
34
  var import_jsx_runtime = require("react/jsx-runtime");
35
35
  var import_react = require("react");
36
- var import_drawbridge_utils = require("@drawbridge/drawbridge-utils");
37
36
  var import_subdomain_content = __toESM(require("./subdomain-content"));
38
37
  var import_provider_font = __toESM(require("../provider-font"));
39
38
  var import_button = __toESM(require("../shared/button"));
@@ -44,17 +43,19 @@ var import_warning = __toESM(require("../icons/warning"));
44
43
  var import_link = __toESM(require("next/link"));
45
44
  var import_powered_by = __toESM(require("../icons/powered-by"));
46
45
  var import_provider_analytics = require("./provider-analytics");
46
+ var import_entry = require("./lib/entry");
47
47
  const FormSubdomainEmbed = ({
48
48
  params,
49
49
  preview,
50
50
  result
51
51
  }) => {
52
- var _a, _b, _c, _d, _e, _f, _g, _h, _i;
53
52
  const data = result || {};
54
53
  const style = data == null ? void 0 : data.style;
55
54
  const valid = Boolean(data == null ? void 0 : data.valid);
56
55
  const disabled = !preview && !valid;
57
- const cta = preview || valid ? ((_a = data == null ? void 0 : data.defaults) == null ? void 0 : _a.active) || ((_d = (_c = (_b = import_drawbridge_utils.constants) == null ? void 0 : _b.campaign) == null ? void 0 : _c.defaults) == null ? void 0 : _d.active) : ((_e = data == null ? void 0 : data.defaults) == null ? void 0 : _e.inactive) || ((_h = (_g = (_f = import_drawbridge_utils.constants) == null ? void 0 : _f.campaign) == null ? void 0 : _g.defaults) == null ? void 0 : _h.inactive);
56
+ const form = (0, import_entry.formOn)(data);
57
+ const countdown = (0, import_entry.giveawayOn)(data) ? data == null ? void 0 : data.countdown : null;
58
+ const cta = (0, import_entry.buttonText)(data, preview || valid);
58
59
  const tracking = (0, import_provider_analytics.useTracking)({
59
60
  embed: true,
60
61
  params,
@@ -92,14 +93,11 @@ const FormSubdomainEmbed = ({
92
93
  [view.name]
93
94
  );
94
95
  const onSuccess = (0, import_react.useCallback)(
95
- (response) => {
96
- var _a2;
97
- return setView({
98
- name: "success",
99
- message: (response == null ? void 0 : response.message) || ((_a2 = data == null ? void 0 : data.defaults) == null ? void 0 : _a2.confirmation) || "Thank you! Your submission was received."
100
- });
101
- },
102
- [(_i = data == null ? void 0 : data.defaults) == null ? void 0 : _i.confirmation]
96
+ (response) => setView({
97
+ name: "success",
98
+ message: (response == null ? void 0 : response.message) || (0, import_entry.copy)(data, "confirmation")
99
+ }),
100
+ [data]
103
101
  );
104
102
  const onError = (0, import_react.useCallback)(
105
103
  ({ message }) => setView({
@@ -126,7 +124,7 @@ const FormSubdomainEmbed = ({
126
124
  {
127
125
  ...style,
128
126
  children: (fonts) => {
129
- var _a2, _b2, _c2, _d2, _e2, _f2, _g2;
127
+ var _a, _b, _c, _d, _e, _f, _g;
130
128
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
131
129
  "div",
132
130
  {
@@ -135,7 +133,7 @@ const FormSubdomainEmbed = ({
135
133
  className: "p-6 flex flex-col justify-center min-h-dvh",
136
134
  style: {
137
135
  ...fonts.body,
138
- color: (_b2 = (_a2 = style == null ? void 0 : style.text) == null ? void 0 : _a2.color) == null ? void 0 : _b2.rgb
136
+ color: (_b = (_a = style == null ? void 0 : style.text) == null ? void 0 : _a.color) == null ? void 0 : _b.rgb
139
137
  }
140
138
  },
141
139
  children: [
@@ -143,7 +141,7 @@ const FormSubdomainEmbed = ({
143
141
  import_subdomain_content.default,
144
142
  {
145
143
  ...{
146
- action: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
144
+ action: form && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
147
145
  import_button.default,
148
146
  {
149
147
  ...{
@@ -154,15 +152,15 @@ const FormSubdomainEmbed = ({
154
152
  children: cta
155
153
  }
156
154
  ),
157
- countdown: (data == null ? void 0 : data.countdown) ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
155
+ countdown: countdown ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
158
156
  import_countdown.default,
159
157
  {
160
158
  ...{
161
159
  className: "h-4 mt-4",
162
- date: data.countdown
160
+ date: countdown
163
161
  }
164
162
  },
165
- data.countdown
163
+ countdown
166
164
  ) : null,
167
165
  data,
168
166
  embed: true,
@@ -173,7 +171,7 @@ const FormSubdomainEmbed = ({
173
171
  }
174
172
  }
175
173
  ) }),
176
- view.name === "form" && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
174
+ form && view.name === "form" && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
177
175
  "div",
178
176
  {
179
177
  ...{
@@ -239,8 +237,8 @@ const FormSubdomainEmbed = ({
239
237
  ...{
240
238
  className: "w-full pt-5 lg:pt-10 lg:pb-5",
241
239
  style: {
242
- background: (_e2 = (_d2 = (_c2 = style == null ? void 0 : style.background) == null ? void 0 : _c2.color) == null ? void 0 : _d2.rgb) == null ? void 0 : _e2.replace(")", ",.9)"),
243
- color: (_g2 = (_f2 = style == null ? void 0 : style.text) == null ? void 0 : _f2.color) == null ? void 0 : _g2.rgb
240
+ background: (_e = (_d = (_c = style == null ? void 0 : style.background) == null ? void 0 : _c.color) == null ? void 0 : _d.rgb) == null ? void 0 : _e.replace(")", ",.9)"),
241
+ color: (_g = (_f = style == null ? void 0 : style.text) == null ? void 0 : _f.color) == null ? void 0 : _g.rgb
244
242
  }
245
243
  },
246
244
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(