@drawbridge/components 0.1.46 → 0.1.48
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.
- package/dist/bridge/cart-drawer.js +152 -0
- package/dist/bridge/cart-drawer.mjs +123 -0
- package/dist/bridge/fields.js +278 -0
- package/dist/bridge/fields.mjs +276 -1
- package/dist/bridge/form-subdomain-checkout.js +687 -0
- package/dist/bridge/form-subdomain-checkout.mjs +665 -0
- package/dist/bridge/form-subdomain-shop-modal.js +234 -274
- package/dist/bridge/form-subdomain-shop-modal.mjs +233 -275
- package/dist/bridge/form-subdomain-shop.js +4 -1
- package/dist/bridge/form-subdomain-shop.mjs +4 -1
- package/dist/bridge/form-subdomain.js +24 -5
- package/dist/bridge/form-subdomain.mjs +25 -6
- package/dist/bridge/lib/age-gate.js +12 -0
- package/dist/bridge/lib/age-gate.mjs +11 -0
- package/dist/bridge/lib/cart.js +79 -0
- package/dist/bridge/lib/cart.mjs +48 -0
- package/dist/bridge/lib/checkout-kit.js +2 -32
- package/dist/bridge/lib/checkout-kit.mjs +2 -32
- package/dist/bridge/lib/entry.js +41 -0
- package/dist/bridge/lib/entry.mjs +40 -0
- package/dist/bridge/product-tile.js +13 -6
- package/dist/bridge/product-tile.mjs +13 -6
- package/dist/bridge/template-layout.js +263 -129
- package/dist/bridge/template-layout.mjs +264 -130
- package/dist/bridge/template-modal.js +39 -74
- package/dist/bridge/template-modal.mjs +40 -75
- package/dist/dashboard/avatar.js +2 -3
- package/dist/dashboard/avatar.mjs +2 -3
- package/dist/dashboard/buttons-subscription.js +1 -1
- package/dist/dashboard/buttons-subscription.mjs +1 -1
- package/dist/dashboard/campaign-form.js +179 -155
- package/dist/dashboard/campaign-form.mjs +179 -155
- package/dist/dashboard/campaign-share.js +347 -0
- package/dist/dashboard/campaign-share.mjs +314 -0
- package/dist/dashboard/card-affiliate.js +1 -1
- package/dist/dashboard/card-affiliate.mjs +1 -1
- package/dist/dashboard/card-campaign-switch.js +4 -1
- package/dist/dashboard/card-campaign-switch.mjs +4 -1
- package/dist/dashboard/card-order.js +22 -4
- package/dist/dashboard/card-order.mjs +22 -4
- package/dist/dashboard/embed-stripe.js +145 -0
- package/dist/dashboard/embed-stripe.mjs +116 -0
- package/dist/dashboard/form-admin-provider.js +71 -17
- package/dist/dashboard/form-admin-provider.mjs +71 -17
- package/dist/dashboard/form-file-upload.js +3 -2
- package/dist/dashboard/form-file-upload.mjs +4 -3
- package/dist/dashboard/form-organization-campaign-advertisements.js +47 -6
- package/dist/dashboard/form-organization-campaign-advertisements.mjs +47 -6
- package/dist/dashboard/form-organization-campaign-field-birthday.js +193 -0
- package/dist/dashboard/form-organization-campaign-field-birthday.mjs +164 -0
- package/dist/dashboard/form-organization-campaign-field-rating.js +246 -0
- package/dist/dashboard/form-organization-campaign-field-rating.mjs +217 -0
- package/dist/dashboard/form-organization-campaign-page.js +73 -39
- package/dist/dashboard/form-organization-campaign-page.mjs +73 -39
- package/dist/dashboard/form-organization-campaign.js +82 -0
- package/dist/dashboard/form-organization-campaign.mjs +81 -0
- package/dist/dashboard/form-organization-connection.js +48 -6
- package/dist/dashboard/form-organization-connection.mjs +48 -7
- package/dist/dashboard/form-organization-product.js +1461 -0
- package/dist/dashboard/form-organization-product.mjs +1425 -0
- package/dist/dashboard/form-organization-workflow.js +72 -1
- package/dist/dashboard/form-organization-workflow.mjs +69 -1
- package/dist/dashboard/form-otc.js +4 -5
- package/dist/dashboard/form-otc.mjs +4 -5
- package/dist/dashboard/form-stripe.js +12 -5
- package/dist/dashboard/form-stripe.mjs +12 -5
- package/dist/dashboard/input-combobox.js +6 -0
- package/dist/dashboard/input-combobox.mjs +6 -0
- package/dist/dashboard/input-fields.js +37 -161
- package/dist/dashboard/input-fields.mjs +37 -161
- package/dist/dashboard/input-file.js +21 -4
- package/dist/dashboard/input-file.mjs +21 -4
- package/dist/dashboard/input-font.js +2 -0
- package/dist/dashboard/input-font.mjs +2 -0
- package/dist/dashboard/input-gallery.js +201 -0
- package/dist/dashboard/input-gallery.mjs +172 -0
- package/dist/dashboard/input-group-ai.js +15 -3
- package/dist/dashboard/input-group-ai.mjs +15 -3
- package/dist/dashboard/lib/ab-tests.js +2 -2
- package/dist/dashboard/lib/ab-tests.mjs +2 -2
- package/dist/dashboard/lib/connection-controls.js +5 -2
- package/dist/dashboard/lib/connection-controls.mjs +3 -1
- package/dist/dashboard/lib/form-page.js +1 -1
- package/dist/dashboard/lib/form-page.mjs +1 -1
- package/dist/dashboard/lib/menu.js +19 -0
- package/dist/dashboard/lib/menu.mjs +18 -0
- package/dist/dashboard/lib/products.js +169 -0
- package/dist/dashboard/lib/products.mjs +135 -0
- package/dist/dashboard/lib/settings-paths.js +35 -0
- package/dist/dashboard/lib/settings-paths.mjs +11 -0
- package/dist/dashboard/lib/uppy.js +10 -1
- package/dist/dashboard/lib/uppy.mjs +11 -2
- package/dist/dashboard/menu.js +13 -2
- package/dist/dashboard/menu.mjs +13 -2
- package/dist/dashboard/order-sections.js +456 -6
- package/dist/dashboard/order-sections.mjs +453 -7
- package/dist/dashboard/preview.js +119 -52
- package/dist/dashboard/preview.mjs +119 -52
- package/dist/dashboard/provider-ui.js +9 -7
- package/dist/dashboard/provider-ui.mjs +9 -7
- package/dist/dashboard/recharts.js +10 -4
- package/dist/dashboard/recharts.mjs +10 -4
- package/dist/dashboard/shipping-rates.js +404 -0
- package/dist/dashboard/shipping-rates.mjs +371 -0
- package/dist/dashboard/template-buyer.js +301 -0
- package/dist/dashboard/template-buyer.mjs +267 -0
- package/dist/dashboard/template-dashboard.js +11 -1
- package/dist/dashboard/template-dashboard.mjs +11 -1
- package/dist/dashboard/template-design.js +209 -130
- package/dist/dashboard/template-design.mjs +210 -131
- package/dist/dashboard/template-ui.js +157 -55
- package/dist/dashboard/template-ui.mjs +158 -56
- package/dist/icons/flags.js +134 -0
- package/dist/icons/flags.mjs +115 -0
- package/dist/input-checkbox.js +28 -10
- package/dist/input-checkbox.mjs +28 -10
- package/dist/product.js +96 -24
- package/dist/product.mjs +97 -25
- package/dist/shared/carousel.js +14 -5
- package/dist/shared/carousel.mjs +14 -5
- package/dist/shared/lib/helpers.js +54 -6
- package/dist/shared/lib/helpers.mjs +53 -8
- package/dist/shared/order-summary.js +139 -0
- package/dist/shared/order-summary.mjs +110 -0
- package/package.json +84 -4
- package/types/bridge/cart-drawer.d.ts +31 -0
- package/types/bridge/fields.d.ts +14 -2
- package/types/bridge/form-subdomain-checkout.d.ts +20 -0
- package/types/bridge/form-subdomain-shop-modal.d.ts +27 -3
- package/types/bridge/form-subdomain.d.ts +13 -0
- package/types/bridge/lib/age-gate.d.ts +5 -0
- package/types/bridge/lib/cart.d.ts +44 -0
- package/types/bridge/lib/checkout-kit.d.ts +2 -10
- package/types/bridge/lib/entry.d.ts +5 -0
- package/types/bridge/product-tile.d.ts +2 -0
- package/types/dashboard/campaign-share.d.ts +16 -0
- package/types/dashboard/card-order.d.ts +6 -0
- package/types/dashboard/embed-stripe.d.ts +25 -0
- package/types/dashboard/form-admin-provider.d.ts +9 -2
- package/types/dashboard/form-file-upload.d.ts +2 -1
- package/types/dashboard/form-organization-campaign-advertisements.d.ts +3 -0
- package/types/dashboard/form-organization-campaign-field-birthday.d.ts +31 -0
- package/types/dashboard/form-organization-campaign-field-rating.d.ts +33 -0
- package/types/dashboard/form-organization-campaign-page.d.ts +8 -1
- package/types/dashboard/form-organization-campaign.d.ts +3 -0
- package/types/dashboard/form-organization-connection.d.ts +11 -0
- package/types/dashboard/form-organization-product.d.ts +24 -0
- package/types/dashboard/form-otc.d.ts +5 -1
- package/types/dashboard/form-stripe.d.ts +3 -2
- package/types/dashboard/input-combobox.d.ts +2 -0
- package/types/dashboard/input-file.d.ts +2 -0
- package/types/dashboard/input-gallery.d.ts +14 -0
- package/types/dashboard/lib/products.d.ts +14 -0
- package/types/dashboard/lib/settings-paths.d.ts +5 -0
- package/types/dashboard/order-sections.d.ts +24 -1
- package/types/dashboard/preview.d.ts +11 -3
- package/types/dashboard/shipping-rates.d.ts +26 -0
- package/types/dashboard/template-buyer.d.ts +50 -0
- package/types/icons/flags.d.ts +5 -0
- package/types/input-checkbox.d.ts +2 -0
- package/types/shared/lib/helpers.d.ts +4 -0
- package/types/shared/order-summary.d.ts +19 -0
|
@@ -47,6 +47,7 @@ var import_card_task = __toESM(require("./card-task"));
|
|
|
47
47
|
var import_dropdown = __toESM(require("./dropdown"));
|
|
48
48
|
var import_link = __toESM(require("./link"));
|
|
49
49
|
var import_preview = __toESM(require("./preview"));
|
|
50
|
+
var import_ab_tests = require("./lib/ab-tests");
|
|
50
51
|
var import_empty = __toESM(require("../shared/empty"));
|
|
51
52
|
var import_badge = __toESM(require("../shared/badge"));
|
|
52
53
|
var import_button = __toESM(require("../shared/button"));
|
|
@@ -613,6 +614,8 @@ const Step = ({
|
|
|
613
614
|
collapsed,
|
|
614
615
|
currency,
|
|
615
616
|
fonts,
|
|
617
|
+
// Every field type on the form, across its sections.
|
|
618
|
+
formKeys,
|
|
616
619
|
handle,
|
|
617
620
|
last,
|
|
618
621
|
params,
|
|
@@ -635,6 +638,7 @@ const Step = ({
|
|
|
635
638
|
const on = (0, import_form_page.sectionOn)(section);
|
|
636
639
|
const shown = on && !collapsed;
|
|
637
640
|
const card = (0, import_preview.useCard)(section.id);
|
|
641
|
+
const keys = formKeys || section.keys;
|
|
638
642
|
const add = () => modal.open({
|
|
639
643
|
message: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
640
644
|
Choices,
|
|
@@ -642,8 +646,8 @@ const Step = ({
|
|
|
642
646
|
...{
|
|
643
647
|
choices: (section.inputs || []).map(({ slug, title, ...input }) => ({
|
|
644
648
|
...input,
|
|
645
|
-
disabled: (0, import_form_page.addedOnce)(slug,
|
|
646
|
-
message: (0, import_form_page.addedOnce)(slug,
|
|
649
|
+
disabled: (0, import_form_page.addedOnce)(slug, keys),
|
|
650
|
+
message: (0, import_form_page.addedOnce)(slug, keys) ? "Field has already been added" : input.granted === false ? input.message : null,
|
|
647
651
|
onClick: () => actions.manage({
|
|
648
652
|
...input,
|
|
649
653
|
section,
|
|
@@ -1506,6 +1510,11 @@ const After = ({
|
|
|
1506
1510
|
{
|
|
1507
1511
|
...{
|
|
1508
1512
|
id: "after",
|
|
1513
|
+
// The real page's panel: the missions and advertisements shown here.
|
|
1514
|
+
page: {
|
|
1515
|
+
advertisements: ads,
|
|
1516
|
+
missions: response === "order" ? [] : missions
|
|
1517
|
+
},
|
|
1509
1518
|
states: {
|
|
1510
1519
|
onChange: setResponse,
|
|
1511
1520
|
options: messageStates,
|
|
@@ -1552,6 +1561,7 @@ const CampaignForm = ({
|
|
|
1552
1561
|
const texts = (0, import_sms.textsOn)(organization);
|
|
1553
1562
|
const currency = ((_a = organization == null ? void 0 : organization.defaults) == null ? void 0 : _a.currency) || "usd";
|
|
1554
1563
|
const documents = (0, import_react.useMemo)(() => (0, import_form_page.readableDocuments)(campaign == null ? void 0 : campaign.agreements, texts), [campaign == null ? void 0 : campaign.agreements, texts]);
|
|
1564
|
+
const version = (0, import_react.useMemo)(() => JSON.stringify([campaign == null ? void 0 : campaign.updatedAt, sections]), [campaign == null ? void 0 : campaign.updatedAt, sections]);
|
|
1555
1565
|
(0, import_react.useEffect)(() => {
|
|
1556
1566
|
if (open !== "footer") return;
|
|
1557
1567
|
actions.footer({
|
|
@@ -1560,6 +1570,7 @@ const CampaignForm = ({
|
|
|
1560
1570
|
});
|
|
1561
1571
|
onOpened == null ? void 0 : onOpened();
|
|
1562
1572
|
}, [open]);
|
|
1573
|
+
const formKeys = (Array.isArray(sections) ? sections : []).flatMap((section) => (section == null ? void 0 : section.keys) || []);
|
|
1563
1574
|
const choices = customs.map((section) => ({
|
|
1564
1575
|
description: section.description,
|
|
1565
1576
|
label: section.title,
|
|
@@ -1615,6 +1626,7 @@ const CampaignForm = ({
|
|
|
1615
1626
|
collapsed,
|
|
1616
1627
|
currency,
|
|
1617
1628
|
fonts,
|
|
1629
|
+
formKeys,
|
|
1618
1630
|
handle,
|
|
1619
1631
|
last: section.id === lastId,
|
|
1620
1632
|
params,
|
|
@@ -1630,185 +1642,197 @@ const CampaignForm = ({
|
|
|
1630
1642
|
import_provider_font.default,
|
|
1631
1643
|
{
|
|
1632
1644
|
...style,
|
|
1633
|
-
children: (fonts) =>
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
campaign,
|
|
1649
|
-
fonts,
|
|
1650
|
-
style
|
|
1645
|
+
children: (fonts) => {
|
|
1646
|
+
var _a2;
|
|
1647
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
1648
|
+
import_preview.SliderLayout,
|
|
1649
|
+
{
|
|
1650
|
+
...{
|
|
1651
|
+
blank: dragging,
|
|
1652
|
+
last: lastId,
|
|
1653
|
+
// @story campaigns/form-page
|
|
1654
|
+
// Every step in the campaign's real page ( Darren, 2026-11-21 ),
|
|
1655
|
+
// loaded again after each save.
|
|
1656
|
+
...((_a2 = campaign == null ? void 0 : campaign.share) == null ? void 0 : _a2.url) && {
|
|
1657
|
+
page: {
|
|
1658
|
+
url: (0, import_ab_tests.variantPreview)(campaign),
|
|
1659
|
+
version
|
|
1651
1660
|
}
|
|
1652
|
-
}
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1661
|
+
},
|
|
1662
|
+
slides: (0, import_form_page.formSlides)(parts, documents.length > 0),
|
|
1663
|
+
style
|
|
1664
|
+
},
|
|
1665
|
+
children: [
|
|
1656
1666
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
1657
|
-
|
|
1667
|
+
Start,
|
|
1658
1668
|
{
|
|
1659
1669
|
...{
|
|
1670
|
+
actions,
|
|
1671
|
+
campaign,
|
|
1660
1672
|
fonts,
|
|
1661
|
-
item: location,
|
|
1662
1673
|
style
|
|
1663
1674
|
}
|
|
1664
1675
|
}
|
|
1665
1676
|
),
|
|
1666
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Arrow, {})
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
variant: "gray"
|
|
1676
|
-
},
|
|
1677
|
-
children: [
|
|
1678
|
-
!age && canManage && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
1679
|
-
Join,
|
|
1680
|
-
{
|
|
1681
|
-
...{
|
|
1682
|
-
label: "Add an age gate",
|
|
1683
|
-
onAdd: choose([addAge]),
|
|
1684
|
-
start: true
|
|
1685
|
-
}
|
|
1677
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Arrow, {}),
|
|
1678
|
+
location && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_react.Fragment, { children: [
|
|
1679
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
1680
|
+
Location,
|
|
1681
|
+
{
|
|
1682
|
+
...{
|
|
1683
|
+
fonts,
|
|
1684
|
+
item: location,
|
|
1685
|
+
style
|
|
1686
1686
|
}
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1687
|
+
}
|
|
1688
|
+
),
|
|
1689
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Arrow, {})
|
|
1690
|
+
] }),
|
|
1691
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
1692
|
+
import_card_section.default,
|
|
1693
|
+
{
|
|
1694
|
+
...{
|
|
1695
|
+
className: "shrink-0",
|
|
1696
|
+
"data-guide": "section-fields",
|
|
1697
|
+
title: "Fields",
|
|
1698
|
+
variant: "gray"
|
|
1699
|
+
},
|
|
1700
|
+
children: [
|
|
1701
|
+
!age && canManage && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
1702
|
+
Join,
|
|
1703
|
+
{
|
|
1704
|
+
...{
|
|
1705
|
+
label: "Add an age gate",
|
|
1706
|
+
onAdd: choose([addAge]),
|
|
1707
|
+
start: true
|
|
1708
|
+
}
|
|
1697
1709
|
}
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
handleClassName: GRIP,
|
|
1710
|
-
handleLabel: (section) => "Move " + section.title,
|
|
1711
|
-
items: customs,
|
|
1712
|
-
onDragging: setDragging,
|
|
1713
|
-
onSort: (sorted) => actions.reorderSections(sorted.map((section) => section.id)),
|
|
1714
|
-
renderItem: (section, _index, handle) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_react.Fragment, { children: [
|
|
1715
|
-
dragging ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
1716
|
-
"div",
|
|
1717
|
-
{
|
|
1718
|
-
...{
|
|
1719
|
-
className: "h-4"
|
|
1720
|
-
}
|
|
1721
|
-
}
|
|
1722
|
-
) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
1723
|
-
Join,
|
|
1724
|
-
{
|
|
1725
|
-
...{
|
|
1726
|
-
label: "Add a section here",
|
|
1727
|
-
onAdd: middle(section.id)
|
|
1728
|
-
}
|
|
1729
|
-
}
|
|
1730
|
-
),
|
|
1731
|
-
step(section, fonts, handle, dragging)
|
|
1732
|
-
] }),
|
|
1733
|
-
sortableElement: "div"
|
|
1710
|
+
),
|
|
1711
|
+
age && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
1712
|
+
AgeStep,
|
|
1713
|
+
{
|
|
1714
|
+
...{
|
|
1715
|
+
actions,
|
|
1716
|
+
age,
|
|
1717
|
+
canManage,
|
|
1718
|
+
fonts,
|
|
1719
|
+
style
|
|
1720
|
+
}
|
|
1734
1721
|
}
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1722
|
+
),
|
|
1723
|
+
information && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_react.Fragment, { children: [
|
|
1724
|
+
age && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Join, {}),
|
|
1725
|
+
step(information, fonts)
|
|
1726
|
+
] }),
|
|
1727
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
1728
|
+
import_sortable.default,
|
|
1740
1729
|
{
|
|
1741
1730
|
...{
|
|
1742
|
-
|
|
1731
|
+
disabled: !canManage,
|
|
1732
|
+
handleClassName: GRIP,
|
|
1733
|
+
handleLabel: (section) => "Move " + section.title,
|
|
1734
|
+
items: customs,
|
|
1735
|
+
onDragging: setDragging,
|
|
1736
|
+
onSort: (sorted) => actions.reorderSections(sorted.map((section) => section.id)),
|
|
1737
|
+
renderItem: (section, _index, handle) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_react.Fragment, { children: [
|
|
1738
|
+
dragging ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
1739
|
+
"div",
|
|
1740
|
+
{
|
|
1741
|
+
...{
|
|
1742
|
+
className: "h-4"
|
|
1743
|
+
}
|
|
1744
|
+
}
|
|
1745
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
1746
|
+
Join,
|
|
1747
|
+
{
|
|
1748
|
+
...{
|
|
1749
|
+
label: "Add a section here",
|
|
1750
|
+
onAdd: middle(section.id)
|
|
1751
|
+
}
|
|
1752
|
+
}
|
|
1753
|
+
),
|
|
1754
|
+
step(section, fonts, handle, dragging)
|
|
1755
|
+
] }),
|
|
1756
|
+
sortableElement: "div"
|
|
1743
1757
|
}
|
|
1744
1758
|
}
|
|
1745
|
-
)
|
|
1759
|
+
),
|
|
1760
|
+
order && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_react.Fragment, { children: [
|
|
1761
|
+
dragging ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
1762
|
+
"div",
|
|
1763
|
+
{
|
|
1764
|
+
...{
|
|
1765
|
+
className: "h-4"
|
|
1766
|
+
}
|
|
1767
|
+
}
|
|
1768
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
1769
|
+
Join,
|
|
1770
|
+
{
|
|
1771
|
+
...{
|
|
1772
|
+
label: "Add a section here",
|
|
1773
|
+
onAdd: middle()
|
|
1774
|
+
}
|
|
1775
|
+
}
|
|
1776
|
+
),
|
|
1777
|
+
step(order, fonts)
|
|
1778
|
+
] }),
|
|
1779
|
+
!order && canManage && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
1746
1780
|
Join,
|
|
1747
1781
|
{
|
|
1748
1782
|
...{
|
|
1749
|
-
|
|
1750
|
-
|
|
1783
|
+
end: true,
|
|
1784
|
+
label: "Add an order or a section here",
|
|
1785
|
+
onAdd: choose([addOrder, addSection()])
|
|
1751
1786
|
}
|
|
1752
1787
|
}
|
|
1753
1788
|
),
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
}
|
|
1764
|
-
}
|
|
1765
|
-
),
|
|
1766
|
-
lastId && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
1767
|
-
Footer,
|
|
1768
|
-
{
|
|
1769
|
-
...{
|
|
1770
|
-
actions,
|
|
1771
|
-
campaign,
|
|
1772
|
-
phone,
|
|
1773
|
-
texts
|
|
1789
|
+
lastId && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
1790
|
+
Footer,
|
|
1791
|
+
{
|
|
1792
|
+
...{
|
|
1793
|
+
actions,
|
|
1794
|
+
campaign,
|
|
1795
|
+
phone,
|
|
1796
|
+
texts
|
|
1797
|
+
}
|
|
1774
1798
|
}
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1799
|
+
),
|
|
1800
|
+
documents.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
1801
|
+
Agreements,
|
|
1802
|
+
{
|
|
1803
|
+
...{
|
|
1804
|
+
campaign,
|
|
1805
|
+
documents,
|
|
1806
|
+
fonts,
|
|
1807
|
+
style
|
|
1808
|
+
}
|
|
1785
1809
|
}
|
|
1810
|
+
)
|
|
1811
|
+
]
|
|
1812
|
+
}
|
|
1813
|
+
),
|
|
1814
|
+
after && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_react.Fragment, { children: [
|
|
1815
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Arrow, {}),
|
|
1816
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
1817
|
+
After,
|
|
1818
|
+
{
|
|
1819
|
+
...{
|
|
1820
|
+
actions,
|
|
1821
|
+
after,
|
|
1822
|
+
campaign,
|
|
1823
|
+
canManage,
|
|
1824
|
+
fonts,
|
|
1825
|
+
organization,
|
|
1826
|
+
params,
|
|
1827
|
+
style
|
|
1786
1828
|
}
|
|
1787
|
-
)
|
|
1788
|
-
]
|
|
1789
|
-
}
|
|
1790
|
-
),
|
|
1791
|
-
after && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_react.Fragment, { children: [
|
|
1792
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Arrow, {}),
|
|
1793
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
1794
|
-
After,
|
|
1795
|
-
{
|
|
1796
|
-
...{
|
|
1797
|
-
actions,
|
|
1798
|
-
after,
|
|
1799
|
-
campaign,
|
|
1800
|
-
canManage,
|
|
1801
|
-
fonts,
|
|
1802
|
-
organization,
|
|
1803
|
-
params,
|
|
1804
|
-
style
|
|
1805
1829
|
}
|
|
1806
|
-
|
|
1807
|
-
)
|
|
1808
|
-
]
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1830
|
+
)
|
|
1831
|
+
] })
|
|
1832
|
+
]
|
|
1833
|
+
}
|
|
1834
|
+
);
|
|
1835
|
+
}
|
|
1812
1836
|
}
|
|
1813
1837
|
);
|
|
1814
1838
|
};
|