@drawbridge/components 0.1.14 → 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 (27) hide show
  1. package/dist/bridge/form-subdomain-missions.js +77 -38
  2. package/dist/bridge/form-subdomain-missions.mjs +76 -38
  3. package/dist/dashboard/card-campaign-switch.js +55 -43
  4. package/dist/dashboard/card-campaign-switch.mjs +56 -44
  5. package/dist/dashboard/card-order.js +216 -31
  6. package/dist/dashboard/card-order.mjs +216 -31
  7. package/dist/dashboard/connection-workflows.js +13 -4
  8. package/dist/dashboard/connection-workflows.mjs +13 -4
  9. package/dist/dashboard/form-organization-campaign-field-select.js +51 -5
  10. package/dist/dashboard/form-organization-campaign-field-select.mjs +51 -5
  11. package/dist/dashboard/form-organization-campaign-field-textarea.js +46 -8
  12. package/dist/dashboard/form-organization-campaign-field-textarea.mjs +46 -8
  13. package/dist/dashboard/form-organization-campaign-section.js +24 -4
  14. package/dist/dashboard/form-organization-campaign-section.mjs +24 -4
  15. package/dist/dashboard/form-organization-workflow.js +222 -33
  16. package/dist/dashboard/form-organization-workflow.mjs +219 -33
  17. package/dist/input-code.js +35 -53
  18. package/dist/input-code.mjs +26 -54
  19. package/dist/shared/button.js +1 -1
  20. package/dist/shared/button.mjs +1 -1
  21. package/dist/shared/lib/campaign.js +9 -3
  22. package/dist/shared/lib/campaign.mjs +7 -2
  23. package/package.json +1 -1
  24. package/types/bridge/form-subdomain-missions.d.ts +3 -1
  25. package/types/dashboard/card-order.d.ts +15 -2
  26. package/types/dashboard/form-organization-campaign-section.d.ts +2 -0
  27. package/types/dashboard/form-organization-workflow.d.ts +13 -0
@@ -38,18 +38,224 @@ const attributions = {
38
38
  conversion: "A campaign link brought the buyer to checkout, so the conversion fee applies.",
39
39
  redemption: "The buyer used one of your discount codes, so no fee applies."
40
40
  };
41
+ const date = (value) => value ? (0, import_drawbridge_utils.formatDateString)({
42
+ date: value,
43
+ options: {
44
+ day: "numeric",
45
+ month: "short",
46
+ year: "numeric"
47
+ }
48
+ }) : "\u2014";
49
+ const Item = ({ label, value }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
50
+ import_card_data_item.default,
51
+ {
52
+ ...{
53
+ className: ["flex flex-col min-w-0", className].join(" "),
54
+ classNameSlotLeft: "text-sm disabled",
55
+ classNameSlotRight: "w-full break-words",
56
+ label,
57
+ value: value || "\u2014"
58
+ }
59
+ }
60
+ );
61
+ const FormOrder = ({ code, customer, gross, lines, note, pickup, purchasedAt }) => {
62
+ const priced = lines.some((line) => typeof (line == null ? void 0 : line.price) === "number");
63
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
64
+ "div",
65
+ {
66
+ ...{
67
+ className: "space-y-6"
68
+ },
69
+ children: [
70
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { children: "Placed on your entry form. No payment was taken." }),
71
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
72
+ "div",
73
+ {
74
+ ...{
75
+ className: "grid grid-cols-2 gap-6 sm:grid-cols-3"
76
+ },
77
+ children: [
78
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
79
+ Item,
80
+ {
81
+ ...{
82
+ label: "Customer",
83
+ value: [customer == null ? void 0 : customer.firstName, customer == null ? void 0 : customer.lastName].filter(Boolean).join(" ")
84
+ }
85
+ }
86
+ ),
87
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
88
+ Item,
89
+ {
90
+ ...{
91
+ label: "Email",
92
+ value: customer == null ? void 0 : customer.email
93
+ }
94
+ }
95
+ ),
96
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
97
+ Item,
98
+ {
99
+ ...{
100
+ label: "Phone",
101
+ value: customer == null ? void 0 : customer.phone
102
+ }
103
+ }
104
+ ),
105
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
106
+ Item,
107
+ {
108
+ ...{
109
+ label: "Date",
110
+ value: date(purchasedAt)
111
+ }
112
+ }
113
+ ),
114
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
115
+ Item,
116
+ {
117
+ ...{
118
+ label: "Pickup",
119
+ value: pickup
120
+ }
121
+ }
122
+ ),
123
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
124
+ Item,
125
+ {
126
+ ...{
127
+ label: "Note",
128
+ value: note
129
+ }
130
+ }
131
+ ),
132
+ priced && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
133
+ Item,
134
+ {
135
+ ...{
136
+ label: "Estimated total",
137
+ value: (0, import_drawbridge_utils.formatCurrency)({ code, value: gross })
138
+ }
139
+ }
140
+ )
141
+ ]
142
+ }
143
+ ),
144
+ lines.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
145
+ "div",
146
+ {
147
+ ...{
148
+ className: "space-y-2"
149
+ },
150
+ children: [
151
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
152
+ "p",
153
+ {
154
+ ...{
155
+ className: "text-sm disabled"
156
+ },
157
+ children: "Items"
158
+ }
159
+ ),
160
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
161
+ "div",
162
+ {
163
+ ...{
164
+ className: "space-y-3"
165
+ },
166
+ children: lines.map(({ price, quantity = 0, title }, key) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
167
+ "div",
168
+ {
169
+ ...{
170
+ className: ["space-y-3", className].join(" ")
171
+ },
172
+ children: [
173
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { children: title || "Untitled item" }),
174
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
175
+ "div",
176
+ {
177
+ ...{
178
+ className: "grid grid-cols-3 gap-6"
179
+ },
180
+ children: [
181
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
182
+ import_card_data_item.default,
183
+ {
184
+ ...{
185
+ className: "flex flex-col",
186
+ classNameSlotLeft: "text-sm disabled",
187
+ label: "Quantity",
188
+ value: (0, import_drawbridge_utils.formatNumber)(quantity)
189
+ }
190
+ }
191
+ ),
192
+ typeof price === "number" && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
193
+ import_card_data_item.default,
194
+ {
195
+ ...{
196
+ className: "flex flex-col",
197
+ classNameSlotLeft: "text-sm disabled",
198
+ label: "Price",
199
+ value: (0, import_drawbridge_utils.formatCurrency)({ code, value: price })
200
+ }
201
+ }
202
+ ),
203
+ typeof price === "number" && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
204
+ import_card_data_item.default,
205
+ {
206
+ ...{
207
+ className: "flex flex-col",
208
+ classNameSlotLeft: "text-sm disabled",
209
+ label: "Total",
210
+ value: (0, import_drawbridge_utils.formatCurrency)({ code, value: price * quantity })
211
+ }
212
+ }
213
+ )
214
+ ]
215
+ }
216
+ )
217
+ ]
218
+ },
219
+ key
220
+ ))
221
+ }
222
+ )
223
+ ]
224
+ }
225
+ )
226
+ ]
227
+ }
228
+ );
229
+ };
41
230
  const CardOrder = ({
42
231
  currency,
232
+ customer,
43
233
  fee = 0,
44
234
  gross = 0,
45
235
  lines = [],
46
236
  net = 0,
237
+ note,
238
+ pickup,
47
239
  provider,
48
240
  purchasedAt,
49
241
  rate,
50
242
  type
51
243
  }) => {
52
244
  const code = (currency || "usd").toUpperCase();
245
+ if (type === "form") return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
246
+ FormOrder,
247
+ {
248
+ ...{
249
+ code,
250
+ customer,
251
+ gross,
252
+ lines,
253
+ note,
254
+ pickup,
255
+ purchasedAt
256
+ }
257
+ }
258
+ );
53
259
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
54
260
  "div",
55
261
  {
@@ -66,84 +272,63 @@ const CardOrder = ({
66
272
  },
67
273
  children: [
68
274
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
69
- import_card_data_item.default,
275
+ Item,
70
276
  {
71
277
  ...{
72
- className: ["flex flex-col", className].join(" "),
73
- classNameSlotLeft: "text-sm disabled",
74
278
  label: "Order number",
75
- value: (provider == null ? void 0 : provider.name) || "\u2014"
279
+ value: provider == null ? void 0 : provider.name
76
280
  }
77
281
  }
78
282
  ),
79
283
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
80
- import_card_data_item.default,
284
+ Item,
81
285
  {
82
286
  ...{
83
- className: ["flex flex-col", className].join(" "),
84
- classNameSlotLeft: "text-sm disabled",
85
287
  label: "Order ID",
86
- value: (provider == null ? void 0 : provider.id) || "\u2014"
288
+ value: provider == null ? void 0 : provider.id
87
289
  }
88
290
  }
89
291
  ),
90
292
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
91
- import_card_data_item.default,
293
+ Item,
92
294
  {
93
295
  ...{
94
- className: ["flex flex-col", className].join(" "),
95
- classNameSlotLeft: "text-sm disabled",
96
296
  label: "Date",
97
- value: purchasedAt ? (0, import_drawbridge_utils.formatDateString)({
98
- date: purchasedAt,
99
- options: {
100
- day: "numeric",
101
- month: "short",
102
- year: "numeric"
103
- }
104
- }) : "\u2014"
297
+ value: date(purchasedAt)
105
298
  }
106
299
  }
107
300
  ),
108
301
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
109
- import_card_data_item.default,
302
+ Item,
110
303
  {
111
304
  ...{
112
- className: ["flex flex-col", className].join(" "),
113
- classNameSlotLeft: "text-sm disabled",
114
305
  label: "Currency",
115
306
  value: code
116
307
  }
117
308
  }
118
309
  ),
119
310
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
120
- import_card_data_item.default,
311
+ Item,
121
312
  {
122
313
  ...{
123
- className: ["flex flex-col", className].join(" "),
124
- classNameSlotLeft: "text-sm disabled",
125
314
  label: "Gross",
126
315
  value: (0, import_drawbridge_utils.formatCurrency)({ code, value: gross })
127
316
  }
128
317
  }
129
318
  ),
130
319
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
131
- import_card_data_item.default,
320
+ Item,
132
321
  {
133
322
  ...{
134
- className: ["flex flex-col", className].join(" "),
135
- classNameSlotLeft: "text-sm disabled",
136
323
  label: "Net",
137
324
  value: (0, import_drawbridge_utils.formatCurrency)({ code, value: net })
138
325
  }
139
326
  }
140
327
  ),
141
328
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
142
- import_card_data_item.default,
329
+ Item,
143
330
  {
144
331
  ...{
145
- className: ["flex flex-col", className].join(" "),
146
- classNameSlotLeft: "text-sm disabled",
147
332
  label: "Fee",
148
333
  // A redemption is charged no fee, so it shows no rate ( rateCell in table.js ).
149
334
  value: (0, import_drawbridge_utils.formatCurrency)({ code, value: fee }) + (type !== "redemption" && (rate || rate === 0) ? " (" + rate + "%)" : "")
@@ -6,18 +6,224 @@ const attributions = {
6
6
  conversion: "A campaign link brought the buyer to checkout, so the conversion fee applies.",
7
7
  redemption: "The buyer used one of your discount codes, so no fee applies."
8
8
  };
9
+ const date = (value) => value ? formatDateString({
10
+ date: value,
11
+ options: {
12
+ day: "numeric",
13
+ month: "short",
14
+ year: "numeric"
15
+ }
16
+ }) : "\u2014";
17
+ const Item = ({ label, value }) => /* @__PURE__ */ jsx(
18
+ CardDataItem,
19
+ {
20
+ ...{
21
+ className: ["flex flex-col min-w-0", className].join(" "),
22
+ classNameSlotLeft: "text-sm disabled",
23
+ classNameSlotRight: "w-full break-words",
24
+ label,
25
+ value: value || "\u2014"
26
+ }
27
+ }
28
+ );
29
+ const FormOrder = ({ code, customer, gross, lines, note, pickup, purchasedAt }) => {
30
+ const priced = lines.some((line) => typeof (line == null ? void 0 : line.price) === "number");
31
+ return /* @__PURE__ */ jsxs(
32
+ "div",
33
+ {
34
+ ...{
35
+ className: "space-y-6"
36
+ },
37
+ children: [
38
+ /* @__PURE__ */ jsx("p", { children: "Placed on your entry form. No payment was taken." }),
39
+ /* @__PURE__ */ jsxs(
40
+ "div",
41
+ {
42
+ ...{
43
+ className: "grid grid-cols-2 gap-6 sm:grid-cols-3"
44
+ },
45
+ children: [
46
+ /* @__PURE__ */ jsx(
47
+ Item,
48
+ {
49
+ ...{
50
+ label: "Customer",
51
+ value: [customer == null ? void 0 : customer.firstName, customer == null ? void 0 : customer.lastName].filter(Boolean).join(" ")
52
+ }
53
+ }
54
+ ),
55
+ /* @__PURE__ */ jsx(
56
+ Item,
57
+ {
58
+ ...{
59
+ label: "Email",
60
+ value: customer == null ? void 0 : customer.email
61
+ }
62
+ }
63
+ ),
64
+ /* @__PURE__ */ jsx(
65
+ Item,
66
+ {
67
+ ...{
68
+ label: "Phone",
69
+ value: customer == null ? void 0 : customer.phone
70
+ }
71
+ }
72
+ ),
73
+ /* @__PURE__ */ jsx(
74
+ Item,
75
+ {
76
+ ...{
77
+ label: "Date",
78
+ value: date(purchasedAt)
79
+ }
80
+ }
81
+ ),
82
+ /* @__PURE__ */ jsx(
83
+ Item,
84
+ {
85
+ ...{
86
+ label: "Pickup",
87
+ value: pickup
88
+ }
89
+ }
90
+ ),
91
+ /* @__PURE__ */ jsx(
92
+ Item,
93
+ {
94
+ ...{
95
+ label: "Note",
96
+ value: note
97
+ }
98
+ }
99
+ ),
100
+ priced && /* @__PURE__ */ jsx(
101
+ Item,
102
+ {
103
+ ...{
104
+ label: "Estimated total",
105
+ value: formatCurrency({ code, value: gross })
106
+ }
107
+ }
108
+ )
109
+ ]
110
+ }
111
+ ),
112
+ lines.length > 0 && /* @__PURE__ */ jsxs(
113
+ "div",
114
+ {
115
+ ...{
116
+ className: "space-y-2"
117
+ },
118
+ children: [
119
+ /* @__PURE__ */ jsx(
120
+ "p",
121
+ {
122
+ ...{
123
+ className: "text-sm disabled"
124
+ },
125
+ children: "Items"
126
+ }
127
+ ),
128
+ /* @__PURE__ */ jsx(
129
+ "div",
130
+ {
131
+ ...{
132
+ className: "space-y-3"
133
+ },
134
+ children: lines.map(({ price, quantity = 0, title }, key) => /* @__PURE__ */ jsxs(
135
+ "div",
136
+ {
137
+ ...{
138
+ className: ["space-y-3", className].join(" ")
139
+ },
140
+ children: [
141
+ /* @__PURE__ */ jsx("p", { children: title || "Untitled item" }),
142
+ /* @__PURE__ */ jsxs(
143
+ "div",
144
+ {
145
+ ...{
146
+ className: "grid grid-cols-3 gap-6"
147
+ },
148
+ children: [
149
+ /* @__PURE__ */ jsx(
150
+ CardDataItem,
151
+ {
152
+ ...{
153
+ className: "flex flex-col",
154
+ classNameSlotLeft: "text-sm disabled",
155
+ label: "Quantity",
156
+ value: formatNumber(quantity)
157
+ }
158
+ }
159
+ ),
160
+ typeof price === "number" && /* @__PURE__ */ jsx(
161
+ CardDataItem,
162
+ {
163
+ ...{
164
+ className: "flex flex-col",
165
+ classNameSlotLeft: "text-sm disabled",
166
+ label: "Price",
167
+ value: formatCurrency({ code, value: price })
168
+ }
169
+ }
170
+ ),
171
+ typeof price === "number" && /* @__PURE__ */ jsx(
172
+ CardDataItem,
173
+ {
174
+ ...{
175
+ className: "flex flex-col",
176
+ classNameSlotLeft: "text-sm disabled",
177
+ label: "Total",
178
+ value: formatCurrency({ code, value: price * quantity })
179
+ }
180
+ }
181
+ )
182
+ ]
183
+ }
184
+ )
185
+ ]
186
+ },
187
+ key
188
+ ))
189
+ }
190
+ )
191
+ ]
192
+ }
193
+ )
194
+ ]
195
+ }
196
+ );
197
+ };
9
198
  const CardOrder = ({
10
199
  currency,
200
+ customer,
11
201
  fee = 0,
12
202
  gross = 0,
13
203
  lines = [],
14
204
  net = 0,
205
+ note,
206
+ pickup,
15
207
  provider,
16
208
  purchasedAt,
17
209
  rate,
18
210
  type
19
211
  }) => {
20
212
  const code = (currency || "usd").toUpperCase();
213
+ if (type === "form") return /* @__PURE__ */ jsx(
214
+ FormOrder,
215
+ {
216
+ ...{
217
+ code,
218
+ customer,
219
+ gross,
220
+ lines,
221
+ note,
222
+ pickup,
223
+ purchasedAt
224
+ }
225
+ }
226
+ );
21
227
  return /* @__PURE__ */ jsxs(
22
228
  "div",
23
229
  {
@@ -34,84 +240,63 @@ const CardOrder = ({
34
240
  },
35
241
  children: [
36
242
  /* @__PURE__ */ jsx(
37
- CardDataItem,
243
+ Item,
38
244
  {
39
245
  ...{
40
- className: ["flex flex-col", className].join(" "),
41
- classNameSlotLeft: "text-sm disabled",
42
246
  label: "Order number",
43
- value: (provider == null ? void 0 : provider.name) || "\u2014"
247
+ value: provider == null ? void 0 : provider.name
44
248
  }
45
249
  }
46
250
  ),
47
251
  /* @__PURE__ */ jsx(
48
- CardDataItem,
252
+ Item,
49
253
  {
50
254
  ...{
51
- className: ["flex flex-col", className].join(" "),
52
- classNameSlotLeft: "text-sm disabled",
53
255
  label: "Order ID",
54
- value: (provider == null ? void 0 : provider.id) || "\u2014"
256
+ value: provider == null ? void 0 : provider.id
55
257
  }
56
258
  }
57
259
  ),
58
260
  /* @__PURE__ */ jsx(
59
- CardDataItem,
261
+ Item,
60
262
  {
61
263
  ...{
62
- className: ["flex flex-col", className].join(" "),
63
- classNameSlotLeft: "text-sm disabled",
64
264
  label: "Date",
65
- value: purchasedAt ? formatDateString({
66
- date: purchasedAt,
67
- options: {
68
- day: "numeric",
69
- month: "short",
70
- year: "numeric"
71
- }
72
- }) : "\u2014"
265
+ value: date(purchasedAt)
73
266
  }
74
267
  }
75
268
  ),
76
269
  /* @__PURE__ */ jsx(
77
- CardDataItem,
270
+ Item,
78
271
  {
79
272
  ...{
80
- className: ["flex flex-col", className].join(" "),
81
- classNameSlotLeft: "text-sm disabled",
82
273
  label: "Currency",
83
274
  value: code
84
275
  }
85
276
  }
86
277
  ),
87
278
  /* @__PURE__ */ jsx(
88
- CardDataItem,
279
+ Item,
89
280
  {
90
281
  ...{
91
- className: ["flex flex-col", className].join(" "),
92
- classNameSlotLeft: "text-sm disabled",
93
282
  label: "Gross",
94
283
  value: formatCurrency({ code, value: gross })
95
284
  }
96
285
  }
97
286
  ),
98
287
  /* @__PURE__ */ jsx(
99
- CardDataItem,
288
+ Item,
100
289
  {
101
290
  ...{
102
- className: ["flex flex-col", className].join(" "),
103
- classNameSlotLeft: "text-sm disabled",
104
291
  label: "Net",
105
292
  value: formatCurrency({ code, value: net })
106
293
  }
107
294
  }
108
295
  ),
109
296
  /* @__PURE__ */ jsx(
110
- CardDataItem,
297
+ Item,
111
298
  {
112
299
  ...{
113
- className: ["flex flex-col", className].join(" "),
114
- classNameSlotLeft: "text-sm disabled",
115
300
  label: "Fee",
116
301
  // A redemption is charged no fee, so it shows no rate ( rateCell in table.js ).
117
302
  value: formatCurrency({ code, value: fee }) + (type !== "redemption" && (rate || rate === 0) ? " (" + rate + "%)" : "")
@@ -98,7 +98,7 @@ const ConnectionWorkflows = ({
98
98
  className: "divide-y divide-gray"
99
99
  },
100
100
  children: items.map((row) => {
101
- var _a, _b, _c;
101
+ var _a, _b, _c, _d;
102
102
  const badge = (0, import_helpers.statusBadge)("workflow", row == null ? void 0 : row.status);
103
103
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
104
104
  "div",
@@ -151,11 +151,20 @@ const ConnectionWorkflows = ({
151
151
  },
152
152
  children: workflowLine(row)
153
153
  }
154
+ ),
155
+ ((_b = row == null ? void 0 : row.issue) == null ? void 0 : _b.message) && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
156
+ "p",
157
+ {
158
+ ...{
159
+ className: "text-sm text-red-dark"
160
+ },
161
+ children: row.issue.message
162
+ }
154
163
  )
155
164
  ]
156
165
  }
157
166
  ),
158
- (row == null ? void 0 : row.locked) || !((_b = row == null ? void 0 : row.campaign) == null ? void 0 : _b.id) ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
167
+ (row == null ? void 0 : row.locked) ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
159
168
  import_badge.default,
160
169
  {
161
170
  ...{
@@ -164,12 +173,12 @@ const ConnectionWorkflows = ({
164
173
  },
165
174
  children: "Locked"
166
175
  }
167
- ) : view && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
176
+ ) : view && ((_c = row == null ? void 0 : row.campaign) == null ? void 0 : _c.id) && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
168
177
  import_button.default,
169
178
  {
170
179
  ...{
171
180
  element: import_link.default,
172
- href: "/organizations/" + organization + "/campaigns/" + row.campaign.id + "/workflows/" + ((_c = row == null ? void 0 : row.trigger) == null ? void 0 : _c.event),
181
+ href: "/organizations/" + organization + "/campaigns/" + row.campaign.id + "/workflows/" + ((_d = row == null ? void 0 : row.trigger) == null ? void 0 : _d.event),
173
182
  inline: true,
174
183
  onClick: drawer.close,
175
184
  size: "small",