@amp-labs/react 1.9.3 → 1.10.0

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.
@@ -1,16 +1,39 @@
1
1
  import { jsx as l, jsxs as A, Fragment as Kt } from "react/jsx-runtime";
2
2
  import Br, { createContext as _e, useContext as ve, useState as k, useCallback as Q, useMemo as we, useEffect as Y, forwardRef as Si, useRef as ma, Children as ya } from "react";
3
- import { extendTheme as io, withDefaultColorScheme as wa, ChakraProvider as Ia, Box as J, Stack as Ae, Spinner as va, Text as Ie, useTab as oo, useMultiStyleConfig as ao, Button as ne, Divider as Oi, Tabs as ba, Select as Sa, Flex as Ur, Heading as Je, FormControl as He, FormErrorMessage as Oa, Checkbox as Mr, Tag as Ca, Container as cr, Alert as Xr, AlertIcon as Gr, AlertDescription as Vr, Link as so, FormLabel as rt, InputGroup as Yr, Input as Pe, InputRightElement as Zr, Textarea as co } from "@chakra-ui/react";
4
- import { ThemeContext as Na } from "@emotion/react";
3
+ import { extendTheme as io, ChakraProvider as wa, Box as J, Stack as Ae, Spinner as Ia, Text as Ie, useTab as oo, useMultiStyleConfig as ao, Button as ne, Divider as Oi, Tabs as va, Select as ba, Flex as Ur, Heading as Je, FormControl as He, FormErrorMessage as Sa, Checkbox as Mr, Tag as Oa, Container as cr, Alert as Xr, AlertIcon as Gr, AlertDescription as Vr, Link as so, FormLabel as rt, InputGroup as Yr, Input as Pe, InputRightElement as Zr, Textarea as co } from "@chakra-ui/react";
4
+ import { ThemeContext as Ca } from "@emotion/react";
5
5
  import Di from "@emotion/styled";
6
- const Ta = {
6
+ const Na = {
7
+ primary: {
8
+ bg: "black",
9
+ // Background color
10
+ color: "white",
11
+ // Text color
12
+ _hover: {
13
+ bg: "gray.700",
14
+ // Background color on hover
15
+ _disabled: {
16
+ bg: "gray.600"
17
+ // Background color for disabled state
18
+ }
19
+ },
20
+ _disabled: {
21
+ bg: "gray.600",
22
+ // Background color for disabled state
23
+ color: "gray.300",
24
+ // Text color for disabled state
25
+ cursor: "not-allowed",
26
+ // Optional: Disable the pointer
27
+ opacity: 1
28
+ // Ensure it is fully visible (no transparency)
29
+ }
30
+ },
7
31
  warning: {
8
32
  bg: "red.50",
9
33
  // Background color
10
- outlineColor: "red.800",
11
- outline: "2px solid",
34
+ outline: "2px solid red.100",
12
35
  outlineOffset: "0",
13
- borderColor: "red.800",
36
+ borderColor: "red.100",
14
37
  // Border color
15
38
  color: "red.800",
16
39
  // Text color
@@ -19,7 +42,7 @@ const Ta = {
19
42
  // Background color on hover
20
43
  }
21
44
  }
22
- }, Ra = io({
45
+ }, Ta = io({
23
46
  components: {
24
47
  Tabs: {
25
48
  baseStyle: {
@@ -27,18 +50,18 @@ const Ta = {
27
50
  width: "100%",
28
51
  borderRadius: "4px",
29
52
  _hover: {
30
- bg: "gray.300"
53
+ bg: "gray.200"
31
54
  },
32
55
  _selected: {
33
56
  color: "black",
34
57
  // Set the color of the selected tab to 'black
35
58
  fontWeight: "500",
36
59
  // Set the font weight of the selected tab
37
- bg: "gray.200",
60
+ bg: "gray.100",
38
61
  // Set the background color of the selected tab
39
62
  border: "none",
40
63
  _hover: {
41
- bg: "gray.300"
64
+ bg: "gray.200"
42
65
  }
43
66
  }
44
67
  },
@@ -47,38 +70,32 @@ const Ta = {
47
70
  width: "100%",
48
71
  borderRadius: "4px",
49
72
  _hover: {
50
- bg: "red.200"
73
+ bg: "red.100"
51
74
  },
52
75
  _selected: {
53
76
  color: "red.800",
54
77
  // Set the color of the selected tab
55
78
  fontWeight: "500",
56
79
  // Set the font weight of the selected tab
57
- bg: "red.100",
80
+ bg: "red.50",
58
81
  // Set the background color of the selected tab
59
82
  border: "none",
60
83
  _hover: {
61
- bg: "red.200"
84
+ bg: "red.100"
62
85
  }
63
86
  }
64
87
  }
65
88
  }
66
89
  },
67
90
  Button: {
68
- variants: Ta
91
+ variants: Na
69
92
  }
70
93
  }
71
- }), _a = io(
72
- wa({
73
- colorScheme: "facebook",
74
- components: ["Button"]
75
- }),
76
- Ra
77
- );
78
- function Aa({ children: e }) {
79
- return /* @__PURE__ */ l(Ia, { theme: _a, children: e });
94
+ }), Ra = io(Ta);
95
+ function _a({ children: e }) {
96
+ return /* @__PURE__ */ l(wa, { theme: Ra, children: e });
80
97
  }
81
- const lo = _e(null), xa = lo.Provider, te = () => {
98
+ const lo = _e(null), Aa = lo.Provider, te = () => {
82
99
  const e = ve(lo);
83
100
  if (e === null)
84
101
  throw new Error("useApiKey must be used within an ApiKeyProvider");
@@ -92,14 +109,14 @@ function nt() {
92
109
  throw new Error("useErrorState must be used within a ErrorProvider");
93
110
  return e;
94
111
  }
95
- const ka = (() => {
112
+ const xa = (() => {
96
113
  const e = {};
97
114
  return Object.values(Z).forEach((t) => {
98
115
  e[t] = {};
99
116
  }), e;
100
117
  })();
101
- function Ea({ children: e }) {
102
- const [t, r] = k(ka), n = Q((h, m) => {
118
+ function ka({ children: e }) {
119
+ const [t, r] = k(xa), n = Q((h, m) => {
103
120
  r((w) => {
104
121
  const y = {
105
122
  ...w
@@ -160,7 +177,7 @@ function De({ message: e }) {
160
177
  marginBottom: "20%",
161
178
  children: /* @__PURE__ */ A(Ae, { alignItems: "center", children: [
162
179
  /* @__PURE__ */ l(
163
- va,
180
+ Ia,
164
181
  {
165
182
  height: "100px",
166
183
  width: "100px",
@@ -222,7 +239,7 @@ function We({ message: e }) {
222
239
  }
223
240
  );
224
241
  }
225
- const Fa = "https://api.withampersand.com/v1".replace(/\/+$/, "");
242
+ const Ea = "https://api.withampersand.com/v1".replace(/\/+$/, "");
226
243
  class po {
227
244
  constructor(t = {}) {
228
245
  this.configuration = t;
@@ -231,7 +248,7 @@ class po {
231
248
  this.configuration = t;
232
249
  }
233
250
  get basePath() {
234
- return this.configuration.basePath != null ? this.configuration.basePath : Fa;
251
+ return this.configuration.basePath != null ? this.configuration.basePath : Ea;
235
252
  }
236
253
  get fetchApi() {
237
254
  return this.configuration.fetchApi;
@@ -265,8 +282,8 @@ class po {
265
282
  return this.configuration.credentials;
266
283
  }
267
284
  }
268
- const Pa = new po(), Hr = class Hr {
269
- constructor(t = Pa) {
285
+ const Fa = new po(), Hr = class Hr {
286
+ constructor(t = Fa) {
270
287
  this.configuration = t, this.fetchApi = async (r, n) => {
271
288
  let i = { url: r, init: n };
272
289
  for (const s of this.middleware)
@@ -287,7 +304,7 @@ const Pa = new po(), Hr = class Hr {
287
304
  response: a ? a.clone() : void 0
288
305
  }) || a);
289
306
  if (a === void 0)
290
- throw s instanceof Error ? new Ba(s, "The request failed and the interceptors did not return an alternative response") : s;
307
+ throw s instanceof Error ? new La(s, "The request failed and the interceptors did not return an alternative response") : s;
291
308
  }
292
309
  for (const s of this.middleware)
293
310
  s.post && (a = await s.post({
@@ -328,7 +345,7 @@ const Pa = new po(), Hr = class Hr {
328
345
  const { url: n, init: i } = await this.createFetchParams(t, r), a = await this.fetchApi(n, i);
329
346
  if (a && a.status >= 200 && a.status < 300)
330
347
  return a;
331
- throw new La(a, "Response returned an error code");
348
+ throw new Ka(a, "Response returned an error code");
332
349
  }
333
350
  async createFetchParams(t, r) {
334
351
  let n = this.configuration.basePath + t.path;
@@ -348,7 +365,7 @@ const Pa = new po(), Hr = class Hr {
348
365
  })
349
366
  }, p = {
350
367
  ...u,
351
- body: Ka(u.body) || u.body instanceof URLSearchParams || Da(u.body) ? u.body : JSON.stringify(u.body)
368
+ body: Da(u.body) || u.body instanceof URLSearchParams || Pa(u.body) ? u.body : JSON.stringify(u.body)
352
369
  };
353
370
  return { url: n, init: p };
354
371
  }
@@ -363,18 +380,18 @@ const Pa = new po(), Hr = class Hr {
363
380
  };
364
381
  Hr.jsonRegex = new RegExp("^(:?application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(:?;.*)?$", "i");
365
382
  let de = Hr;
366
- function Da(e) {
383
+ function Pa(e) {
367
384
  return typeof Blob < "u" && e instanceof Blob;
368
385
  }
369
- function Ka(e) {
386
+ function Da(e) {
370
387
  return typeof FormData < "u" && e instanceof FormData;
371
388
  }
372
- class La extends Error {
389
+ class Ka extends Error {
373
390
  constructor(t, r) {
374
391
  super(r), this.response = t, this.name = "ResponseError";
375
392
  }
376
393
  }
377
- class Ba extends Error {
394
+ class La extends Error {
378
395
  constructor(t, r) {
379
396
  super(r), this.cause = t, this.name = "FetchError";
380
397
  }
@@ -424,7 +441,7 @@ class ze {
424
441
  async value() {
425
442
  }
426
443
  }
427
- class Ua {
444
+ class Ba {
428
445
  constructor(t) {
429
446
  this.raw = t;
430
447
  }
@@ -432,83 +449,83 @@ class Ua {
432
449
  return await this.raw.text();
433
450
  }
434
451
  }
435
- function Ma(e) {
436
- return $a(e);
452
+ function Ua(e) {
453
+ return Ma(e);
437
454
  }
438
- function $a(e, t) {
455
+ function Ma(e, t) {
439
456
  return e == null ? e : {
440
457
  fieldUsed: N(e, "fieldUsed") ? e.fieldUsed : void 0,
441
458
  keyFormat: N(e, "keyFormat") ? e.keyFormat : void 0
442
459
  };
443
460
  }
444
- function ja(e) {
445
- return qa(e);
461
+ function $a(e) {
462
+ return ja(e);
446
463
  }
447
- function qa(e, t) {
464
+ function ja(e, t) {
448
465
  return e == null ? e : {
449
466
  name: e.name,
450
467
  valuePrefix: N(e, "valuePrefix") ? e.valuePrefix : void 0
451
468
  };
452
469
  }
453
- function Wa(e) {
454
- return za(e);
470
+ function qa(e) {
471
+ return Wa(e);
455
472
  }
456
- function za(e, t) {
473
+ function Wa(e, t) {
457
474
  return e == null ? e : {
458
475
  name: e.name
459
476
  };
460
477
  }
461
- function Ja(e) {
462
- return Ha(e);
478
+ function za(e) {
479
+ return Ja(e);
463
480
  }
464
- function Ha(e, t) {
481
+ function Ja(e, t) {
465
482
  return e == null ? e : {
466
483
  attachmentType: e.attachmentType,
467
- query: N(e, "query") ? Wa(e.query) : void 0,
468
- header: N(e, "header") ? ja(e.header) : void 0,
484
+ query: N(e, "query") ? qa(e.query) : void 0,
485
+ header: N(e, "header") ? $a(e.header) : void 0,
469
486
  docsURL: N(e, "docsURL") ? e.docsURL : void 0
470
487
  };
471
488
  }
472
- function Xa(e) {
473
- return Ga(e);
489
+ function Ha(e) {
490
+ return Xa(e);
474
491
  }
475
- function Ga(e, t) {
492
+ function Xa(e, t) {
476
493
  return e;
477
494
  }
478
- function Va(e) {
479
- return Ya(e);
495
+ function Ga(e) {
496
+ return Va(e);
480
497
  }
481
- function Ya(e, t) {
498
+ function Va(e, t) {
482
499
  return e == null ? e : {
483
500
  days: N(e, "days") ? e.days : void 0,
484
501
  fullHistory: N(e, "fullHistory") ? e.fullHistory : void 0
485
502
  };
486
503
  }
487
504
  function go(e) {
488
- return Za(e);
505
+ return Ya(e);
489
506
  }
490
- function Za(e, t) {
507
+ function Ya(e, t) {
491
508
  return e == null ? e : {
492
- defaultPeriod: Va(e.defaultPeriod)
509
+ defaultPeriod: Ga(e.defaultPeriod)
493
510
  };
494
511
  }
495
- function Qa(e) {
512
+ function Za(e) {
496
513
  if (e !== void 0)
497
514
  return e === null ? null : {
498
515
  days: e.days,
499
516
  fullHistory: e.fullHistory
500
517
  };
501
518
  }
502
- function es(e) {
519
+ function Qa(e) {
503
520
  if (e !== void 0)
504
521
  return e === null ? null : {
505
- defaultPeriod: Qa(e.defaultPeriod)
522
+ defaultPeriod: Za(e.defaultPeriod)
506
523
  };
507
524
  }
508
- function ts(e) {
509
- return rs(e);
525
+ function es(e) {
526
+ return ts(e);
510
527
  }
511
- function rs(e, t) {
528
+ function ts(e, t) {
512
529
  return e == null ? e : {
513
530
  enabled: N(e, "enabled") ? e.enabled : void 0
514
531
  };
@@ -519,7 +536,7 @@ function mo(e) {
519
536
  enabled: e.enabled
520
537
  };
521
538
  }
522
- function ns(e) {
539
+ function rs(e) {
523
540
  if (e !== void 0)
524
541
  return e === null ? null : {
525
542
  objectName: e.objectName,
@@ -527,38 +544,38 @@ function ns(e) {
527
544
  destination: e.destination,
528
545
  selectedFields: e.selectedFields,
529
546
  selectedFieldMappings: e.selectedFieldMappings,
530
- backfill: es(e.backfill)
547
+ backfill: Qa(e.backfill)
531
548
  };
532
549
  }
533
- function is(e) {
550
+ function ns(e) {
534
551
  if (e !== void 0)
535
552
  return e === null ? null : {
536
- objects: e.objects === void 0 ? void 0 : Ci(e.objects, ns)
553
+ objects: e.objects === void 0 ? void 0 : Ci(e.objects, rs)
537
554
  };
538
555
  }
539
- function os(e) {
556
+ function is(e) {
540
557
  if (e !== void 0)
541
558
  return e === null ? null : {
542
559
  objectName: e.objectName
543
560
  };
544
561
  }
545
- function as(e) {
562
+ function os(e) {
546
563
  if (e !== void 0)
547
564
  return e === null ? null : {
548
- objects: e.objects === void 0 ? void 0 : Ci(e.objects, os)
565
+ objects: e.objects === void 0 ? void 0 : Ci(e.objects, is)
549
566
  };
550
567
  }
551
- function ss(e) {
552
- return cs(e);
568
+ function as(e) {
569
+ return ss(e);
553
570
  }
554
- function cs(e, t) {
571
+ function ss(e, t) {
555
572
  return e == null ? e : {
556
573
  apiKeyAsBasic: N(e, "apiKeyAsBasic") ? e.apiKeyAsBasic : void 0,
557
- apiKeyAsBasicOpts: N(e, "apiKeyAsBasicOpts") ? Ma(e.apiKeyAsBasicOpts) : void 0,
574
+ apiKeyAsBasicOpts: N(e, "apiKeyAsBasicOpts") ? Ua(e.apiKeyAsBasicOpts) : void 0,
558
575
  docsURL: N(e, "docsURL") ? e.docsURL : void 0
559
576
  };
560
577
  }
561
- function ds(e) {
578
+ function cs(e) {
562
579
  if (e !== void 0)
563
580
  return e === null ? null : {
564
581
  sourceZipUrl: e.sourceZipUrl,
@@ -566,9 +583,9 @@ function ds(e) {
566
583
  };
567
584
  }
568
585
  function xr(e) {
569
- return ls(e);
586
+ return ds(e);
570
587
  }
571
- function ls(e, t) {
588
+ function ds(e, t) {
572
589
  return e == null ? e : {
573
590
  id: e.id,
574
591
  name: e.name,
@@ -578,10 +595,10 @@ function ls(e, t) {
578
595
  updateTime: N(e, "updateTime") ? new Date(e.updateTime) : void 0
579
596
  };
580
597
  }
581
- function us(e) {
582
- return ps(e);
598
+ function ls(e) {
599
+ return us(e);
583
600
  }
584
- function ps(e, t) {
601
+ function us(e, t) {
585
602
  return e == null ? e : {
586
603
  insert: e.insert,
587
604
  update: e.update,
@@ -589,15 +606,15 @@ function ps(e, t) {
589
606
  _delete: e.delete
590
607
  };
591
608
  }
592
- function fs(e) {
593
- return hs(e);
609
+ function ps(e) {
610
+ return fs(e);
594
611
  }
595
- function hs(e, t) {
612
+ function fs(e, t) {
596
613
  return e == null ? e : {
597
614
  provider: e.provider,
598
615
  read: N(e, "read") ? e.read : void 0,
599
616
  write: N(e, "write") ? e.write : void 0,
600
- proxy: N(e, "proxy") ? ts(e.proxy) : void 0
617
+ proxy: N(e, "proxy") ? es(e.proxy) : void 0
601
618
  };
602
619
  }
603
620
  function yo(e) {
@@ -609,22 +626,22 @@ function yo(e) {
609
626
  proxy: mo(e.proxy)
610
627
  };
611
628
  }
612
- function gs(e) {
613
- return ms(e);
629
+ function hs(e) {
630
+ return gs(e);
614
631
  }
615
- function ms(e, t) {
632
+ function gs(e, t) {
616
633
  return e == null ? e : {
617
634
  id: e.id,
618
635
  revisionId: e.revisionId,
619
636
  createTime: new Date(e.createTime),
620
637
  createdBy: e.createdBy,
621
- content: fs(e.content)
638
+ content: ps(e.content)
622
639
  };
623
640
  }
624
- function ys(e) {
625
- return ws(e);
641
+ function ms(e) {
642
+ return ys(e);
626
643
  }
627
- function ws(e, t) {
644
+ function ys(e, t) {
628
645
  return e == null ? e : {
629
646
  consumerRef: e.consumerRef,
630
647
  consumerName: e.consumerName,
@@ -634,9 +651,9 @@ function ws(e, t) {
634
651
  };
635
652
  }
636
653
  function wo(e) {
637
- return Is(e);
654
+ return ws(e);
638
655
  }
639
- function Is(e, t) {
656
+ function ws(e, t) {
640
657
  return e == null ? e : {
641
658
  groupRef: e.groupRef,
642
659
  groupName: e.groupName,
@@ -646,9 +663,9 @@ function Is(e, t) {
646
663
  };
647
664
  }
648
665
  function Pr(e) {
649
- return vs(e);
666
+ return Is(e);
650
667
  }
651
- function vs(e, t) {
668
+ function Is(e, t) {
652
669
  return e == null ? e : {
653
670
  id: e.id,
654
671
  projectId: e.projectId,
@@ -661,51 +678,51 @@ function vs(e, t) {
661
678
  };
662
679
  }
663
680
  function Dr(e) {
664
- return bs(e);
681
+ return vs(e);
665
682
  }
666
- function bs(e, t) {
683
+ function vs(e, t) {
667
684
  return e == null ? e : {
668
685
  id: e.id,
669
686
  projectId: e.projectId,
670
687
  providerApp: Pr(e.providerApp),
671
688
  group: wo(e.group),
672
- consumer: ys(e.consumer),
689
+ consumer: ms(e.consumer),
673
690
  providerWorkspaceRef: e.providerWorkspaceRef,
674
691
  providerConsumerRef: N(e, "ProviderConsumerRef") ? e.ProviderConsumerRef : void 0,
675
692
  createTime: new Date(e.createTime),
676
693
  updateTime: N(e, "updateTime") ? new Date(e.updateTime) : void 0
677
694
  };
678
695
  }
679
- function Ss(e) {
696
+ function bs(e) {
680
697
  if (e !== void 0)
681
698
  return e === null ? null : {
682
699
  consumerRef: e.consumerRef,
683
700
  consumerName: e.consumerName
684
701
  };
685
702
  }
686
- function Os(e) {
703
+ function Ss(e) {
687
704
  if (e !== void 0)
688
705
  return e === null ? null : {
689
706
  url: e.url,
690
707
  headers: e.headers
691
708
  };
692
709
  }
693
- function Cs(e) {
710
+ function Os(e) {
694
711
  if (e !== void 0)
695
712
  return e === null ? null : {
696
713
  name: e.name,
697
714
  type: e.type,
698
- metadata: Os(e.metadata)
715
+ metadata: Ss(e.metadata)
699
716
  };
700
717
  }
701
- function Ns(e) {
718
+ function Cs(e) {
702
719
  if (e !== void 0)
703
720
  return e === null ? null : {
704
721
  groupRef: e.groupRef,
705
722
  groupName: e.groupName
706
723
  };
707
724
  }
708
- function Ts(e) {
725
+ function Ns(e) {
709
726
  if (e !== void 0)
710
727
  return e === null ? null : {
711
728
  revisionId: e.revisionId,
@@ -713,30 +730,30 @@ function Ts(e) {
713
730
  content: yo(e.content)
714
731
  };
715
732
  }
716
- function Rs(e) {
733
+ function Ts(e) {
717
734
  if (e !== void 0)
718
735
  return e === null ? null : {
719
736
  groupRef: e.groupRef,
720
737
  connectionId: e.connectionId,
721
- config: Ts(e.config)
738
+ config: Ns(e.config)
722
739
  };
723
740
  }
724
- function _s(e) {
741
+ function Rs(e) {
725
742
  if (e !== void 0)
726
743
  return e === null ? null : {
727
744
  sourceZipUrl: e.sourceZipUrl,
728
745
  sourceYaml: e.sourceYaml
729
746
  };
730
747
  }
731
- function As(e) {
748
+ function _s(e) {
732
749
  if (e !== void 0)
733
750
  return e === null ? null : {
734
751
  name: e.name,
735
752
  provider: e.provider,
736
- latestRevision: _s(e.latestRevision)
753
+ latestRevision: Rs(e.latestRevision)
737
754
  };
738
755
  }
739
- function xs(e) {
756
+ function As(e) {
740
757
  if (e !== void 0)
741
758
  return e === null ? null : {
742
759
  appName: e.appName,
@@ -744,7 +761,7 @@ function xs(e) {
744
761
  orgId: e.orgId
745
762
  };
746
763
  }
747
- function ks(e) {
764
+ function xs(e) {
748
765
  if (e !== void 0)
749
766
  return e === null ? null : {
750
767
  externalRef: e.externalRef,
@@ -754,32 +771,32 @@ function ks(e) {
754
771
  scopes: e.scopes
755
772
  };
756
773
  }
757
- function Es(e) {
774
+ function ks(e) {
758
775
  if (e !== void 0)
759
776
  return e === null ? null : {
760
777
  sourceZipUrl: e.sourceZipUrl,
761
778
  sourceYaml: e.sourceYaml
762
779
  };
763
780
  }
764
- function Fs(e) {
765
- return Ps(e);
781
+ function Es(e) {
782
+ return Fs(e);
766
783
  }
767
- function Ps(e, t) {
784
+ function Fs(e, t) {
768
785
  return e == null ? e : {
769
786
  mode: N(e, "mode") ? e.mode : void 0,
770
787
  pageSize: N(e, "pageSize") ? e.pageSize : void 0
771
788
  };
772
789
  }
773
- function Ds(e) {
774
- return Ks(e);
790
+ function Ps(e) {
791
+ return Ds(e);
775
792
  }
776
- function Ks(e, t) {
793
+ function Ds(e, t) {
777
794
  return e == null ? e : {
778
795
  url: N(e, "url") ? e.url : void 0,
779
796
  headers: N(e, "headers") ? e.headers : void 0
780
797
  };
781
798
  }
782
- function Ls(e) {
799
+ function Ks(e) {
783
800
  if (e !== void 0)
784
801
  return e === null ? null : {
785
802
  url: e.url,
@@ -787,26 +804,26 @@ function Ls(e) {
787
804
  };
788
805
  }
789
806
  function kr(e) {
790
- return Bs(e);
807
+ return Ls(e);
791
808
  }
792
- function Bs(e, t) {
809
+ function Ls(e, t) {
793
810
  return e == null ? e : {
794
811
  id: e.id,
795
812
  name: e.name,
796
813
  type: e.type,
797
- metadata: Ds(e.metadata),
814
+ metadata: Ps(e.metadata),
798
815
  createTime: new Date(e.createTime),
799
816
  updateTime: N(e, "updateTime") ? new Date(e.updateTime) : void 0
800
817
  };
801
818
  }
802
- function Us(e) {
819
+ function Bs(e) {
803
820
  if (e !== void 0)
804
821
  return e === null ? null : {
805
822
  username: e.username,
806
823
  password: e.password
807
824
  };
808
825
  }
809
- function Ms(e) {
826
+ function Us(e) {
810
827
  if (e !== void 0)
811
828
  return e === null ? null : {
812
829
  clientId: e.clientId,
@@ -814,7 +831,7 @@ function Ms(e) {
814
831
  scopes: e.scopes
815
832
  };
816
833
  }
817
- function $s(e) {
834
+ function Ms(e) {
818
835
  if (e !== void 0)
819
836
  return e === null ? null : {
820
837
  username: e.username,
@@ -824,7 +841,7 @@ function $s(e) {
824
841
  scopes: e.scopes
825
842
  };
826
843
  }
827
- function js(e) {
844
+ function $s(e) {
828
845
  if (e !== void 0)
829
846
  return e === null ? null : {
830
847
  providerWorkspaceRef: e.providerWorkspaceRef,
@@ -834,20 +851,20 @@ function js(e) {
834
851
  consumerRef: e.consumerRef,
835
852
  provider: e.provider,
836
853
  apiKey: e.apiKey,
837
- basicAuth: Us(e.basicAuth),
838
- oauth2ClientCredentials: Ms(e.oauth2ClientCredentials),
839
- oauth2Password: $s(e.oauth2Password)
854
+ basicAuth: Bs(e.basicAuth),
855
+ oauth2ClientCredentials: Us(e.oauth2ClientCredentials),
856
+ oauth2Password: Ms(e.oauth2Password)
840
857
  };
841
858
  }
842
- function qs(e) {
843
- return Ws(e);
859
+ function js(e) {
860
+ return qs(e);
844
861
  }
845
- function Ws(e, t) {
862
+ function qs(e, t) {
846
863
  return e == null ? e : {
847
864
  enabled: N(e, "enabled") ? e.enabled : void 0
848
865
  };
849
866
  }
850
- function zs(e, t) {
867
+ function Ws(e, t) {
851
868
  return e == null ? e : {
852
869
  fieldName: e.fieldName,
853
870
  displayName: e.displayName
@@ -862,21 +879,21 @@ function Io(e, t) {
862
879
  };
863
880
  }
864
881
  function ai(e) {
865
- return Js(e);
882
+ return zs(e);
866
883
  }
867
- function Js(e, t) {
868
- return e == null ? e : { ...zs(e), ...Io(e) };
884
+ function zs(e, t) {
885
+ return e == null ? e : { ...Ws(e), ...Io(e) };
869
886
  }
870
887
  function vo(e) {
871
- return Hs(e);
888
+ return Js(e);
872
889
  }
873
- function Hs(e, t) {
890
+ function Js(e, t) {
874
891
  return e;
875
892
  }
876
- function Xs(e) {
877
- return Gs(e);
893
+ function Hs(e) {
894
+ return Xs(e);
878
895
  }
879
- function Gs(e, t) {
896
+ function Xs(e, t) {
880
897
  return e == null ? e : {
881
898
  objectName: e.objectName,
882
899
  displayName: e.displayName,
@@ -889,56 +906,56 @@ function Gs(e, t) {
889
906
  backfill: N(e, "backfill") ? go(e.backfill) : void 0
890
907
  };
891
908
  }
892
- function Vs(e) {
893
- return Ys(e);
909
+ function Gs(e) {
910
+ return Vs(e);
894
911
  }
895
- function Ys(e, t) {
912
+ function Vs(e, t) {
896
913
  return e == null ? e : {
897
- objects: N(e, "objects") ? e.objects.map(Xs) : void 0
914
+ objects: N(e, "objects") ? e.objects.map(Hs) : void 0
898
915
  };
899
916
  }
900
- function Zs(e) {
901
- return Qs(e);
917
+ function Ys(e) {
918
+ return Zs(e);
902
919
  }
903
- function Qs(e, t) {
920
+ function Zs(e, t) {
904
921
  return e == null ? e : {
905
922
  objectName: e.objectName,
906
923
  displayName: e.displayName
907
924
  };
908
925
  }
909
- function ec(e) {
910
- return tc(e);
926
+ function Qs(e) {
927
+ return ec(e);
911
928
  }
912
- function tc(e, t) {
929
+ function ec(e, t) {
913
930
  return e == null ? e : {
914
- objects: N(e, "objects") ? e.objects.map(Zs) : void 0
931
+ objects: N(e, "objects") ? e.objects.map(Ys) : void 0
915
932
  };
916
933
  }
917
- function rc(e) {
918
- return nc(e);
934
+ function tc(e) {
935
+ return rc(e);
919
936
  }
920
- function nc(e, t) {
937
+ function rc(e, t) {
921
938
  return e == null ? e : {
922
939
  name: e.name,
923
940
  displayName: N(e, "displayName") ? e.displayName : void 0,
924
941
  provider: e.provider,
925
- read: N(e, "read") ? Vs(e.read) : void 0,
926
- write: N(e, "write") ? ec(e.write) : void 0,
927
- proxy: N(e, "proxy") ? qs(e.proxy) : void 0
942
+ read: N(e, "read") ? Gs(e.read) : void 0,
943
+ write: N(e, "write") ? Qs(e.write) : void 0,
944
+ proxy: N(e, "proxy") ? js(e.proxy) : void 0
928
945
  };
929
946
  }
930
- function ic(e) {
931
- return oc(e);
947
+ function nc(e) {
948
+ return ic(e);
932
949
  }
933
- function oc(e, t) {
950
+ function ic(e, t) {
934
951
  return e == null ? e : {
935
952
  id: e.id,
936
953
  specVersion: e.specVersion,
937
954
  createTime: new Date(e.createTime),
938
- content: rc(e.content)
955
+ content: tc(e.content)
939
956
  };
940
957
  }
941
- function ac(e) {
958
+ function oc(e) {
942
959
  if (e !== void 0)
943
960
  return e === null ? null : {
944
961
  providerAppId: e.providerAppId,
@@ -952,25 +969,25 @@ function ac(e) {
952
969
  scopes: e.scopes
953
970
  };
954
971
  }
955
- function sc(e) {
972
+ function ac(e) {
956
973
  if (e !== void 0)
957
974
  return e === null ? null : {
958
975
  revisionId: e.revisionId,
959
976
  content: yo(e.content)
960
977
  };
961
978
  }
962
- function cc(e) {
979
+ function sc(e) {
963
980
  if (e !== void 0)
964
981
  return e === null ? null : {
965
982
  provider: e.provider,
966
- connection: ac(e.connection),
967
- config: sc(e.config)
983
+ connection: oc(e.connection),
984
+ config: ac(e.config)
968
985
  };
969
986
  }
970
987
  function rr(e) {
971
- return dc(e);
988
+ return cc(e);
972
989
  }
973
- function dc(e, t) {
990
+ function cc(e, t) {
974
991
  return e == null ? e : {
975
992
  id: e.id,
976
993
  projectId: e.projectId,
@@ -981,32 +998,32 @@ function dc(e, t) {
981
998
  createTime: new Date(e.createTime),
982
999
  createdBy: e.createdBy,
983
1000
  updateTime: N(e, "updateTime") ? new Date(e.updateTime) : void 0,
984
- config: gs(e.config)
1001
+ config: hs(e.config)
985
1002
  };
986
1003
  }
987
- function lc(e) {
988
- return uc(e);
1004
+ function dc(e) {
1005
+ return lc(e);
989
1006
  }
990
- function uc(e, t) {
1007
+ function lc(e, t) {
991
1008
  return e == null ? e : {
992
1009
  enabled: N(e, "enabled") ? e.enabled : void 0
993
1010
  };
994
1011
  }
995
- function pc(e, t) {
1012
+ function uc(e, t) {
996
1013
  return e == null ? e : {
997
1014
  fieldName: e.fieldName
998
1015
  };
999
1016
  }
1000
1017
  function Ki(e) {
1001
- return fc(e);
1018
+ return pc(e);
1002
1019
  }
1003
- function fc(e, t) {
1004
- return e == null ? e : { ...pc(e), ...Io(e) };
1020
+ function pc(e, t) {
1021
+ return e == null ? e : { ...uc(e), ...Io(e) };
1005
1022
  }
1006
- function hc(e) {
1007
- return gc(e);
1023
+ function fc(e) {
1024
+ return hc(e);
1008
1025
  }
1009
- function gc(e, t) {
1026
+ function hc(e, t) {
1010
1027
  return e == null ? e : {
1011
1028
  objectName: e.objectName,
1012
1029
  destination: e.destination,
@@ -1015,61 +1032,61 @@ function gc(e, t) {
1015
1032
  optionalFields: N(e, "optionalFields") ? e.optionalFields.map(Ki) : void 0,
1016
1033
  optionalFieldsAuto: N(e, "optionalFieldsAuto") ? vo(e.optionalFieldsAuto) : void 0,
1017
1034
  backfill: N(e, "backfill") ? go(e.backfill) : void 0,
1018
- delivery: N(e, "delivery") ? Fs(e.delivery) : void 0
1035
+ delivery: N(e, "delivery") ? Es(e.delivery) : void 0
1019
1036
  };
1020
1037
  }
1021
- function mc(e) {
1022
- return yc(e);
1038
+ function gc(e) {
1039
+ return mc(e);
1023
1040
  }
1024
- function yc(e, t) {
1041
+ function mc(e, t) {
1025
1042
  return e == null ? e : {
1026
- objects: N(e, "objects") ? e.objects.map(hc) : void 0
1043
+ objects: N(e, "objects") ? e.objects.map(fc) : void 0
1027
1044
  };
1028
1045
  }
1029
- function wc(e) {
1030
- return Ic(e);
1046
+ function yc(e) {
1047
+ return wc(e);
1031
1048
  }
1032
- function Ic(e, t) {
1049
+ function wc(e, t) {
1033
1050
  return e == null ? e : {
1034
1051
  objectName: e.objectName
1035
1052
  };
1036
1053
  }
1037
- function vc(e) {
1038
- return bc(e);
1054
+ function Ic(e) {
1055
+ return vc(e);
1039
1056
  }
1040
- function bc(e, t) {
1057
+ function vc(e, t) {
1041
1058
  return e == null ? e : {
1042
- objects: N(e, "objects") ? e.objects.map(wc) : void 0
1059
+ objects: N(e, "objects") ? e.objects.map(yc) : void 0
1043
1060
  };
1044
1061
  }
1045
- function Sc(e) {
1046
- return Oc(e);
1062
+ function bc(e) {
1063
+ return Sc(e);
1047
1064
  }
1048
- function Oc(e, t) {
1065
+ function Sc(e, t) {
1049
1066
  return e == null ? e : {
1050
1067
  name: e.name,
1051
1068
  displayName: N(e, "displayName") ? e.displayName : void 0,
1052
1069
  provider: e.provider,
1053
- read: N(e, "read") ? mc(e.read) : void 0,
1054
- write: N(e, "write") ? vc(e.write) : void 0,
1055
- proxy: N(e, "proxy") ? lc(e.proxy) : void 0
1070
+ read: N(e, "read") ? gc(e.read) : void 0,
1071
+ write: N(e, "write") ? Ic(e.write) : void 0,
1072
+ proxy: N(e, "proxy") ? dc(e.proxy) : void 0
1056
1073
  };
1057
1074
  }
1058
- function Cc(e) {
1059
- return Nc(e);
1075
+ function Oc(e) {
1076
+ return Cc(e);
1060
1077
  }
1061
- function Nc(e, t) {
1078
+ function Cc(e, t) {
1062
1079
  return e == null ? e : {
1063
1080
  id: e.id,
1064
1081
  specVersion: e.specVersion,
1065
1082
  createTime: new Date(e.createTime),
1066
- content: Sc(e.content)
1083
+ content: bc(e.content)
1067
1084
  };
1068
1085
  }
1069
1086
  function Li(e) {
1070
- return Tc(e);
1087
+ return Nc(e);
1071
1088
  }
1072
- function Tc(e, t) {
1089
+ function Nc(e, t) {
1073
1090
  return e == null ? e : {
1074
1091
  id: e.id,
1075
1092
  projectId: e.projectId,
@@ -1077,70 +1094,70 @@ function Tc(e, t) {
1077
1094
  provider: e.provider,
1078
1095
  createTime: new Date(e.createTime),
1079
1096
  updateTime: N(e, "updateTime") ? new Date(e.updateTime) : void 0,
1080
- latestRevision: Cc(e.latestRevision)
1097
+ latestRevision: Oc(e.latestRevision)
1081
1098
  };
1082
1099
  }
1083
- function Rc(e) {
1084
- return _c(e);
1100
+ function Tc(e) {
1101
+ return Rc(e);
1085
1102
  }
1086
- function _c(e, t) {
1103
+ function Rc(e, t) {
1087
1104
  return e == null ? e : {
1088
1105
  msg: e.msg,
1089
1106
  operationEventId: N(e, "operation_event_id") ? e.operation_event_id : void 0,
1090
1107
  operationId: N(e, "operation_id") ? e.operation_id : void 0
1091
1108
  };
1092
1109
  }
1093
- function Ac(e) {
1094
- return xc(e);
1110
+ function _c(e) {
1111
+ return Ac(e);
1095
1112
  }
1096
- function xc(e, t) {
1113
+ function Ac(e, t) {
1097
1114
  return e == null ? e : {
1098
1115
  timestamp: e.timestamp,
1099
- message: Rc(e.message),
1116
+ message: Tc(e.message),
1100
1117
  severity: e.severity
1101
1118
  };
1102
1119
  }
1103
- function kc(e) {
1104
- return Ec(e);
1120
+ function xc(e) {
1121
+ return kc(e);
1105
1122
  }
1106
- function Ec(e, t) {
1123
+ function kc(e, t) {
1107
1124
  return e == null ? e : {
1108
1125
  iconURL: N(e, "iconURL") ? e.iconURL : void 0,
1109
1126
  logoURL: N(e, "logoURL") ? e.logoURL : void 0
1110
1127
  };
1111
1128
  }
1112
- function Fc(e) {
1113
- return Pc(e);
1129
+ function Ec(e) {
1130
+ return Fc(e);
1114
1131
  }
1115
- function Pc(e, t) {
1132
+ function Fc(e, t) {
1116
1133
  return e == null ? e : {
1117
1134
  iconURL: N(e, "iconURL") ? e.iconURL : void 0,
1118
1135
  logoURL: N(e, "logoURL") ? e.logoURL : void 0
1119
1136
  };
1120
1137
  }
1121
- function Dc(e) {
1122
- return Kc(e);
1138
+ function Pc(e) {
1139
+ return Dc(e);
1123
1140
  }
1124
- function Kc(e, t) {
1141
+ function Dc(e, t) {
1125
1142
  return e == null ? e : {
1126
- regular: N(e, "regular") ? Fc(e.regular) : void 0,
1127
- darkMode: N(e, "darkMode") ? kc(e.darkMode) : void 0
1143
+ regular: N(e, "regular") ? Ec(e.regular) : void 0,
1144
+ darkMode: N(e, "darkMode") ? xc(e.darkMode) : void 0
1128
1145
  };
1129
1146
  }
1130
- function Lc(e) {
1131
- return Bc(e);
1147
+ function Kc(e) {
1148
+ return Lc(e);
1132
1149
  }
1133
- function Bc(e, t) {
1150
+ function Lc(e, t) {
1134
1151
  return e == null ? e : {
1135
1152
  workspaceRefField: N(e, "workspaceRefField") ? e.workspaceRefField : void 0,
1136
1153
  consumerRefField: N(e, "consumerRefField") ? e.consumerRefField : void 0,
1137
1154
  scopesField: N(e, "scopesField") ? e.scopesField : void 0
1138
1155
  };
1139
1156
  }
1140
- function Uc(e) {
1141
- return Mc(e);
1157
+ function Bc(e) {
1158
+ return Uc(e);
1142
1159
  }
1143
- function Mc(e, t) {
1160
+ function Uc(e, t) {
1144
1161
  return e == null ? e : {
1145
1162
  grantType: e.grantType,
1146
1163
  authURL: N(e, "authURL") ? e.authURL : void 0,
@@ -1148,12 +1165,12 @@ function Mc(e, t) {
1148
1165
  explicitScopesRequired: e.explicitScopesRequired,
1149
1166
  explicitWorkspaceRequired: e.explicitWorkspaceRequired,
1150
1167
  audience: N(e, "audience") ? e.audience : void 0,
1151
- tokenMetadataFields: Lc(e.tokenMetadataFields),
1168
+ tokenMetadataFields: Kc(e.tokenMetadataFields),
1152
1169
  docsURL: N(e, "docsURL") ? e.docsURL : void 0,
1153
1170
  authURLParams: N(e, "authURLParams") ? e.authURLParams : void 0
1154
1171
  };
1155
1172
  }
1156
- function $c(e) {
1173
+ function Mc(e) {
1157
1174
  if (e !== void 0)
1158
1175
  return e === null ? null : {
1159
1176
  providerWorkspaceRef: e.providerWorkspaceRef,
@@ -1167,9 +1184,9 @@ function $c(e) {
1167
1184
  };
1168
1185
  }
1169
1186
  function Bi(e) {
1170
- return jc(e);
1187
+ return $c(e);
1171
1188
  }
1172
- function jc(e, t) {
1189
+ function $c(e, t) {
1173
1190
  return e == null ? e : {
1174
1191
  projectId: e.projectId,
1175
1192
  integrationId: e.integrationId,
@@ -1184,12 +1201,12 @@ function jc(e, t) {
1184
1201
  createTime: N(e, "createTime") ? new Date(e.createTime) : void 0
1185
1202
  };
1186
1203
  }
1187
- function qc(e) {
1188
- return Wc(e);
1204
+ function jc(e) {
1205
+ return qc(e);
1189
1206
  }
1190
- function Wc(e, t) {
1207
+ function qc(e, t) {
1191
1208
  return e == null ? e : {
1192
- bulkWrite: us(e.bulkWrite),
1209
+ bulkWrite: ls(e.bulkWrite),
1193
1210
  proxy: e.proxy,
1194
1211
  read: e.read,
1195
1212
  subscribe: e.subscribe,
@@ -1197,94 +1214,94 @@ function Wc(e, t) {
1197
1214
  };
1198
1215
  }
1199
1216
  function Ui(e) {
1200
- return zc(e);
1217
+ return Wc(e);
1201
1218
  }
1202
- function zc(e, t) {
1219
+ function Wc(e, t) {
1203
1220
  return e == null ? e : {
1204
1221
  name: e.name,
1205
- authType: Xa(e.authType),
1222
+ authType: Ha(e.authType),
1206
1223
  baseURL: e.baseURL,
1207
- oauth2Opts: N(e, "oauth2Opts") ? Uc(e.oauth2Opts) : void 0,
1208
- apiKeyOpts: N(e, "apiKeyOpts") ? Ja(e.apiKeyOpts) : void 0,
1209
- basicOpts: N(e, "basicOpts") ? ss(e.basicOpts) : void 0,
1210
- support: qc(e.support),
1224
+ oauth2Opts: N(e, "oauth2Opts") ? Bc(e.oauth2Opts) : void 0,
1225
+ apiKeyOpts: N(e, "apiKeyOpts") ? za(e.apiKeyOpts) : void 0,
1226
+ basicOpts: N(e, "basicOpts") ? as(e.basicOpts) : void 0,
1227
+ support: jc(e.support),
1211
1228
  providerOpts: e.providerOpts,
1212
1229
  displayName: N(e, "displayName") ? e.displayName : void 0,
1213
1230
  postAuthInfoNeeded: N(e, "postAuthInfoNeeded") ? e.postAuthInfoNeeded : void 0,
1214
- media: N(e, "media") ? Dc(e.media) : void 0,
1231
+ media: N(e, "media") ? Pc(e.media) : void 0,
1215
1232
  labels: N(e, "labels") ? e.labels : void 0
1216
1233
  };
1217
1234
  }
1218
- function Jc(e) {
1219
- return Hc(e);
1235
+ function zc(e) {
1236
+ return Jc(e);
1220
1237
  }
1221
- function Hc(e, t) {
1238
+ function Jc(e, t) {
1222
1239
  return e == null ? e : {
1223
1240
  url: e.url,
1224
1241
  bucket: e.bucket,
1225
1242
  path: e.path
1226
1243
  };
1227
1244
  }
1228
- function Xc(e) {
1245
+ function Hc(e) {
1229
1246
  if (e !== void 0)
1230
1247
  return e === null ? null : {
1231
1248
  name: e.name,
1232
- metadata: Ls(e.metadata)
1249
+ metadata: Ks(e.metadata)
1233
1250
  };
1234
1251
  }
1235
- function Gc(e) {
1252
+ function Xc(e) {
1236
1253
  if (e !== void 0)
1237
1254
  return e === null ? null : {
1238
1255
  updateMask: e.updateMask,
1239
- destination: Xc(e.destination)
1256
+ destination: Hc(e.destination)
1240
1257
  };
1241
1258
  }
1242
- function Vc(e) {
1259
+ function Gc(e) {
1243
1260
  if (e !== void 0)
1244
1261
  return e === null ? null : {
1245
1262
  provider: e.provider,
1246
- read: is(e.read),
1247
- write: as(e.write),
1263
+ read: ns(e.read),
1264
+ write: os(e.write),
1248
1265
  proxy: mo(e.proxy)
1249
1266
  };
1250
1267
  }
1251
- function Yc(e) {
1268
+ function Vc(e) {
1252
1269
  if (e !== void 0)
1253
1270
  return e === null ? null : {
1254
1271
  revisionId: e.revisionId,
1255
1272
  createdBy: e.createdBy,
1256
- content: Vc(e.content)
1273
+ content: Gc(e.content)
1257
1274
  };
1258
1275
  }
1259
- function Zc(e) {
1276
+ function Yc(e) {
1260
1277
  if (e !== void 0)
1261
1278
  return e === null ? null : {
1262
1279
  connectionId: e.connectionId,
1263
- config: Yc(e.config)
1280
+ config: Vc(e.config)
1264
1281
  };
1265
1282
  }
1266
- function Qc(e) {
1283
+ function Zc(e) {
1267
1284
  if (e !== void 0)
1268
1285
  return e === null ? null : {
1269
1286
  updateMask: e.updateMask,
1270
- installation: Zc(e.installation)
1287
+ installation: Yc(e.installation)
1271
1288
  };
1272
1289
  }
1273
- function ed(e) {
1290
+ function Qc(e) {
1274
1291
  if (e !== void 0)
1275
1292
  return e === null ? null : {
1276
1293
  appName: e.appName,
1277
1294
  name: e.name
1278
1295
  };
1279
1296
  }
1280
- function td(e) {
1297
+ function ed(e) {
1281
1298
  if (e !== void 0)
1282
1299
  return e === null ? null : {
1283
1300
  updateMask: e.updateMask,
1284
- project: ed(e.project)
1301
+ project: Qc(e.project)
1285
1302
  };
1286
1303
  }
1287
- function rd(e) {
1304
+ function td(e) {
1288
1305
  if (e !== void 0)
1289
1306
  return e === null ? null : {
1290
1307
  externalRef: e.externalRef,
@@ -1294,14 +1311,14 @@ function rd(e) {
1294
1311
  scopes: e.scopes
1295
1312
  };
1296
1313
  }
1297
- function nd(e) {
1314
+ function rd(e) {
1298
1315
  if (e !== void 0)
1299
1316
  return e === null ? null : {
1300
1317
  updateMask: e.updateMask,
1301
- providerApp: rd(e.providerApp)
1318
+ providerApp: td(e.providerApp)
1302
1319
  };
1303
1320
  }
1304
- class id extends de {
1321
+ class nd extends de {
1305
1322
  /**
1306
1323
  * Generate a new connection (only valid for providers with auth types which are not OAuth2 Authorization Code)
1307
1324
  */
@@ -1315,7 +1332,7 @@ class id extends de {
1315
1332
  method: "POST",
1316
1333
  headers: i,
1317
1334
  query: n,
1318
- body: js(t.generateConnectionParams)
1335
+ body: $s(t.generateConnectionParams)
1319
1336
  }, r);
1320
1337
  return new B(a, (s) => Dr(s));
1321
1338
  }
@@ -1374,7 +1391,7 @@ class id extends de {
1374
1391
  return await (await this.listConnectionsRaw(t, r)).value();
1375
1392
  }
1376
1393
  }
1377
- class od extends de {
1394
+ class id extends de {
1378
1395
  /**
1379
1396
  * Create a new consumer
1380
1397
  */
@@ -1390,7 +1407,7 @@ class od extends de {
1390
1407
  method: "POST",
1391
1408
  headers: i,
1392
1409
  query: n,
1393
- body: Ss(t.consumer)
1410
+ body: bs(t.consumer)
1394
1411
  }, r);
1395
1412
  return new ze(a);
1396
1413
  }
@@ -1401,7 +1418,7 @@ class od extends de {
1401
1418
  await this.createConsumerRaw(t, r);
1402
1419
  }
1403
1420
  }
1404
- class ad extends de {
1421
+ class od extends de {
1405
1422
  /**
1406
1423
  * Create a new destination
1407
1424
  */
@@ -1417,7 +1434,7 @@ class ad extends de {
1417
1434
  method: "POST",
1418
1435
  headers: i,
1419
1436
  query: n,
1420
- body: Cs(t.destination)
1437
+ body: Os(t.destination)
1421
1438
  }, r);
1422
1439
  return new B(a, (s) => kr(s));
1423
1440
  }
@@ -1514,7 +1531,7 @@ class ad extends de {
1514
1531
  method: "PATCH",
1515
1532
  headers: i,
1516
1533
  query: n,
1517
- body: Gc(t.destinationUpdate)
1534
+ body: Xc(t.destinationUpdate)
1518
1535
  }, r);
1519
1536
  return new B(a, (s) => kr(s));
1520
1537
  }
@@ -1525,7 +1542,7 @@ class ad extends de {
1525
1542
  return await (await this.updateDestinationRaw(t, r)).value();
1526
1543
  }
1527
1544
  }
1528
- class sd extends de {
1545
+ class ad extends de {
1529
1546
  /**
1530
1547
  * Create a new group
1531
1548
  */
@@ -1541,7 +1558,7 @@ class sd extends de {
1541
1558
  method: "POST",
1542
1559
  headers: i,
1543
1560
  query: n,
1544
- body: Ns(t.group)
1561
+ body: Cs(t.group)
1545
1562
  }, r);
1546
1563
  return new ze(a);
1547
1564
  }
@@ -1552,7 +1569,7 @@ class sd extends de {
1552
1569
  await this.createGroupRaw(t, r);
1553
1570
  }
1554
1571
  }
1555
- class cd extends de {
1572
+ class sd extends de {
1556
1573
  /**
1557
1574
  * Create a new installation
1558
1575
  */
@@ -1570,7 +1587,7 @@ class cd extends de {
1570
1587
  method: "POST",
1571
1588
  headers: i,
1572
1589
  query: n,
1573
- body: Rs(t.installation)
1590
+ body: Ts(t.installation)
1574
1591
  }, r);
1575
1592
  return new B(a, (s) => rr(s));
1576
1593
  }
@@ -1649,7 +1666,7 @@ class cd extends de {
1649
1666
  method: "POST",
1650
1667
  headers: i,
1651
1668
  query: n,
1652
- body: cc(t.installation)
1669
+ body: sc(t.installation)
1653
1670
  }, r);
1654
1671
  return new B(a, (s) => rr(s));
1655
1672
  }
@@ -1704,7 +1721,7 @@ class cd extends de {
1704
1721
  method: "PATCH",
1705
1722
  headers: i,
1706
1723
  query: n,
1707
- body: Qc(t.installationUpdate)
1724
+ body: Zc(t.installationUpdate)
1708
1725
  }, r);
1709
1726
  return new B(a, (s) => rr(s));
1710
1727
  }
@@ -1715,7 +1732,7 @@ class cd extends de {
1715
1732
  return await (await this.updateInstallationRaw(t, r)).value();
1716
1733
  }
1717
1734
  }
1718
- class dd extends de {
1735
+ class cd extends de {
1719
1736
  /**
1720
1737
  * Batch upsert a group of integrations
1721
1738
  */
@@ -1729,7 +1746,7 @@ class dd extends de {
1729
1746
  method: "PUT",
1730
1747
  headers: i,
1731
1748
  query: n,
1732
- body: ds(t.batchUpsertIntegrationsRequest)
1749
+ body: cs(t.batchUpsertIntegrationsRequest)
1733
1750
  }, r);
1734
1751
  return new B(a, (s) => s.map(Li));
1735
1752
  }
@@ -1754,7 +1771,7 @@ class dd extends de {
1754
1771
  method: "POST",
1755
1772
  headers: i,
1756
1773
  query: n,
1757
- body: As(t.integration)
1774
+ body: _s(t.integration)
1758
1775
  }, r);
1759
1776
  return new ze(a);
1760
1777
  }
@@ -1811,7 +1828,7 @@ class dd extends de {
1811
1828
  return await (await this.listIntegrationsRaw(t, r)).value();
1812
1829
  }
1813
1830
  }
1814
- class ld extends de {
1831
+ class dd extends de {
1815
1832
  /**
1816
1833
  * Generate a URL for the browser to render to kick off OAuth flow.
1817
1834
  * Get URL for OAuth flow
@@ -1826,9 +1843,9 @@ class ld extends de {
1826
1843
  method: "POST",
1827
1844
  headers: i,
1828
1845
  query: n,
1829
- body: $c(t.connectOAuthParams)
1846
+ body: Mc(t.connectOAuthParams)
1830
1847
  }, r);
1831
- return this.isJsonMime(a.headers.get("content-type")) ? new B(a) : new Ua(a);
1848
+ return this.isJsonMime(a.headers.get("content-type")) ? new B(a) : new Ba(a);
1832
1849
  }
1833
1850
  /**
1834
1851
  * Generate a URL for the browser to render to kick off OAuth flow.
@@ -1838,7 +1855,7 @@ class ld extends de {
1838
1855
  return await (await this.oauthConnectRaw(t, r)).value();
1839
1856
  }
1840
1857
  }
1841
- class ud extends de {
1858
+ class ld extends de {
1842
1859
  /**
1843
1860
  * Get an operation
1844
1861
  */
@@ -1879,7 +1896,7 @@ class ud extends de {
1879
1896
  headers: i,
1880
1897
  query: n
1881
1898
  }, r);
1882
- return new B(a, (s) => s.map(Ac));
1899
+ return new B(a, (s) => s.map(_c));
1883
1900
  }
1884
1901
  /**
1885
1902
  * List logs for an operation
@@ -1914,7 +1931,7 @@ class ud extends de {
1914
1931
  return await (await this.listOperationsRaw(t, r)).value();
1915
1932
  }
1916
1933
  }
1917
- class pd extends de {
1934
+ class ud extends de {
1918
1935
  /**
1919
1936
  * Create a new project
1920
1937
  */
@@ -1928,7 +1945,7 @@ class pd extends de {
1928
1945
  method: "POST",
1929
1946
  headers: i,
1930
1947
  query: n,
1931
- body: xs(t.project)
1948
+ body: As(t.project)
1932
1949
  }, r);
1933
1950
  return new B(a, (s) => xr(s));
1934
1951
  }
@@ -2017,7 +2034,7 @@ class pd extends de {
2017
2034
  method: "PATCH",
2018
2035
  headers: i,
2019
2036
  query: n,
2020
- body: td(t.projectUpdate)
2037
+ body: ed(t.projectUpdate)
2021
2038
  }, r);
2022
2039
  return new B(a, (s) => xr(s));
2023
2040
  }
@@ -2028,7 +2045,7 @@ class pd extends de {
2028
2045
  return await (await this.updateProjectRaw(t, r)).value();
2029
2046
  }
2030
2047
  }
2031
- class fd extends de {
2048
+ class pd extends de {
2032
2049
  /**
2033
2050
  * Get provider
2034
2051
  */
@@ -2072,7 +2089,7 @@ class fd extends de {
2072
2089
  return await (await this.listProvidersRaw(t)).value();
2073
2090
  }
2074
2091
  }
2075
- class hd extends de {
2092
+ class fd extends de {
2076
2093
  /**
2077
2094
  * Create a new provider app
2078
2095
  */
@@ -2088,7 +2105,7 @@ class hd extends de {
2088
2105
  method: "POST",
2089
2106
  headers: i,
2090
2107
  query: n,
2091
- body: ks(t.providerApp)
2108
+ body: xs(t.providerApp)
2092
2109
  }, r);
2093
2110
  return new B(a, (s) => Pr(s));
2094
2111
  }
@@ -2161,7 +2178,7 @@ class hd extends de {
2161
2178
  method: "PATCH",
2162
2179
  headers: i,
2163
2180
  query: n,
2164
- body: nd(t.providerAppUpdate)
2181
+ body: rd(t.providerAppUpdate)
2165
2182
  }, r);
2166
2183
  return new B(a, (s) => Pr(s));
2167
2184
  }
@@ -2172,7 +2189,7 @@ class hd extends de {
2172
2189
  return await (await this.updateProviderAppRaw(t, r)).value();
2173
2190
  }
2174
2191
  }
2175
- class gd extends de {
2192
+ class hd extends de {
2176
2193
  /**
2177
2194
  * Create a new revision
2178
2195
  */
@@ -2188,7 +2205,7 @@ class gd extends de {
2188
2205
  method: "POST",
2189
2206
  headers: i,
2190
2207
  query: n,
2191
- body: Es(t.revision)
2208
+ body: ks(t.revision)
2192
2209
  }, r);
2193
2210
  return new ze(a);
2194
2211
  }
@@ -2221,7 +2238,7 @@ class gd extends de {
2221
2238
  headers: i,
2222
2239
  query: n
2223
2240
  }, r);
2224
- return new B(a, (s) => ic(s));
2241
+ return new B(a, (s) => nc(s));
2225
2242
  }
2226
2243
  /**
2227
2244
  * Hydrate a revision with information from the consumer\'s SaaS instance.
@@ -2231,7 +2248,7 @@ class gd extends de {
2231
2248
  return await (await this.getHydratedRevisionRaw(t, r)).value();
2232
2249
  }
2233
2250
  }
2234
- class md extends de {
2251
+ class gd extends de {
2235
2252
  /**
2236
2253
  * Generate a signed URL to upload a zip file to.
2237
2254
  */
@@ -2244,7 +2261,7 @@ class md extends de {
2244
2261
  headers: n,
2245
2262
  query: r
2246
2263
  }, t);
2247
- return new B(i, (a) => Jc(a));
2264
+ return new B(i, (a) => zc(a));
2248
2265
  }
2249
2266
  /**
2250
2267
  * Generate a signed URL to upload a zip file to.
@@ -2253,12 +2270,12 @@ class md extends de {
2253
2270
  return await (await this.generateUploadUrlRaw(t)).value();
2254
2271
  }
2255
2272
  }
2256
- class yd {
2273
+ class md {
2257
2274
  constructor(t) {
2258
- this.connectionApi = new id(t), this.consumerApi = new od(t), this.destinationApi = new ad(t), this.groupApi = new sd(t), this.installationApi = new cd(t), this.integrationApi = new dd(t), this.oAuthApi = new ld(t), this.operationApi = new ud(t), this.projectApi = new pd(t), this.providerApi = new fd(t), this.providerAppApi = new hd(t), this.revisionApi = new gd(t), this.uploadURLApi = new md(t);
2275
+ this.connectionApi = new nd(t), this.consumerApi = new id(t), this.destinationApi = new od(t), this.groupApi = new ad(t), this.installationApi = new sd(t), this.integrationApi = new cd(t), this.oAuthApi = new dd(t), this.operationApi = new ld(t), this.projectApi = new ud(t), this.providerApi = new pd(t), this.providerAppApi = new fd(t), this.revisionApi = new hd(t), this.uploadURLApi = new gd(t);
2259
2276
  }
2260
2277
  }
2261
- const wd = "1.9.3", Id = "v1", Er = "https://api.withampersand.com";
2278
+ const yd = "1.10.0", wd = "v1", Er = "https://api.withampersand.com";
2262
2279
  function bo() {
2263
2280
  try {
2264
2281
  const e = process.env.REACT_APP_AMP_SERVER;
@@ -2282,19 +2299,19 @@ function bo() {
2282
2299
  return Er;
2283
2300
  }
2284
2301
  }
2285
- const vd = (e, t) => `${e}/${t}`;
2286
- function bd() {
2287
- return vd(bo(), Id);
2302
+ const Id = (e, t) => `${e}/${t}`;
2303
+ function vd() {
2304
+ return Id(bo(), wd);
2288
2305
  }
2289
- const Sd = bo(), Od = bd(), Cd = new po({
2290
- basePath: Od,
2306
+ const bd = bo(), Sd = vd(), Od = new po({
2307
+ basePath: Sd,
2291
2308
  headers: {
2292
2309
  "X-Amp-Client": "react",
2293
- "X-Amp-Client-Version": wd
2310
+ "X-Amp-Client-Version": yd
2294
2311
  }
2295
2312
  });
2296
- let Nd = new yd(Cd);
2297
- const X = () => Nd, So = _e({
2313
+ let Cd = new md(Od);
2314
+ const X = () => Cd, So = _e({
2298
2315
  integrations: null
2299
2316
  }), Oo = () => {
2300
2317
  const e = ve(So);
@@ -2302,7 +2319,7 @@ const X = () => Nd, So = _e({
2302
2319
  throw new Error("useIntegrationList must be used within a IntegrationListProvider");
2303
2320
  return e;
2304
2321
  };
2305
- function Td({ projectIdOrName: e, children: t }) {
2322
+ function Nd({ projectIdOrName: e, children: t }) {
2306
2323
  const r = te(), { setError: n, isError: i } = nt(), [a, s] = k(null), [u, p] = k(!0);
2307
2324
  Y(() => {
2308
2325
  X().integrationApi.listIntegrations({ projectIdOrName: e }, {
@@ -2331,7 +2348,7 @@ const Co = _e({
2331
2348
  throw new Error("useProject must be used within a ProjectProvider");
2332
2349
  return e;
2333
2350
  };
2334
- function Rd({ projectIdOrName: e, children: t }) {
2351
+ function Td({ projectIdOrName: e, children: t }) {
2335
2352
  const r = te(), { isError: n, setError: i } = nt(), [a, s] = k(null), [u, p] = k(!0);
2336
2353
  Y(() => {
2337
2354
  X().projectApi.getProject({ projectIdOrName: e }, {
@@ -2352,7 +2369,7 @@ function Rd({ projectIdOrName: e, children: t }) {
2352
2369
  }), [e, a]);
2353
2370
  return n(Z.PROJECT, e) ? /* @__PURE__ */ l(We, { message: `Error loading project ${e}` }) : /* @__PURE__ */ l(Co.Provider, { value: h, children: u ? /* @__PURE__ */ l(De, {}) : t });
2354
2371
  }
2355
- function Vp(e) {
2372
+ function Gp(e) {
2356
2373
  const { options: { apiKey: t, projectId: r, project: n }, children: i } = e, a = n || r;
2357
2374
  if (r && n)
2358
2375
  throw new Error("Use AmpersandProvider either with projectId or project but not both.");
@@ -2360,11 +2377,11 @@ function Vp(e) {
2360
2377
  throw new Error("Cannot use AmpersandProvider without a projectId or name.");
2361
2378
  if (!t)
2362
2379
  throw new Error("Cannot use AmpersandProvider without an apiKey.");
2363
- return /* @__PURE__ */ l(Aa, { children: /* @__PURE__ */ l(Ea, { children: /* @__PURE__ */ l(xa, { value: t, children: /* @__PURE__ */ l(Rd, { projectIdOrName: a, children: /* @__PURE__ */ l(Td, { projectIdOrName: a, children: i }) }) }) }) });
2380
+ return /* @__PURE__ */ l(_a, { children: /* @__PURE__ */ l(ka, { children: /* @__PURE__ */ l(Aa, { value: t, children: /* @__PURE__ */ l(Td, { projectIdOrName: a, children: /* @__PURE__ */ l(Nd, { projectIdOrName: a, children: i }) }) }) }) });
2364
2381
  }
2365
- const _d = _e(null);
2366
- function Yp() {
2367
- const e = ve(_d);
2382
+ const Rd = _e(null);
2383
+ function Vp() {
2384
+ const e = ve(Rd);
2368
2385
  if (!e)
2369
2386
  throw new Error(`Cannot call useAmpersandProvider unless your
2370
2387
  component is wrapped with AmpersandProvider`);
@@ -2377,7 +2394,7 @@ function vt(e, t) {
2377
2394
  return (t == null ? void 0 : t.displayName) ?? No(e);
2378
2395
  }
2379
2396
  const To = (e) => e.split(`
2380
- `).filter((r) => r.trim() !== ""), Ad = (e, t) => (t == null ? void 0 : t.length) === 0 || !e ? null : t.find(
2397
+ `).filter((r) => r.trim() !== ""), _d = (e, t) => (t == null ? void 0 : t.length) === 0 || !e ? null : t.find(
2381
2398
  (r) => r.name === e
2382
2399
  ) ?? null, Ro = _e({
2383
2400
  integrationId: "",
@@ -2401,7 +2418,7 @@ function Ke() {
2401
2418
  throw new Error("useInstallIntegrationProps must be used within an InstallIntegrationProvider");
2402
2419
  return e;
2403
2420
  }
2404
- function xd({
2421
+ function Ad({
2405
2422
  children: e,
2406
2423
  integration: t,
2407
2424
  consumerRef: r,
@@ -2412,7 +2429,7 @@ function xd({
2412
2429
  onUpdateSuccess: u
2413
2430
  }) {
2414
2431
  const p = te(), { projectId: h } = ee(), { integrations: m } = Oo(), [w, y] = k([]), [I, b] = k(!0), { setError: v, isError: S } = nt(), R = (w == null ? void 0 : w[0]) || null, C = we(
2415
- () => Ad(t, m || []),
2432
+ () => _d(t, m || []),
2416
2433
  [t, m]
2417
2434
  );
2418
2435
  Y(() => {
@@ -2997,28 +3014,28 @@ $r.exports;
2997
3014
  }
2998
3015
  e.exports = Me;
2999
3016
  })($r, $r.exports);
3000
- var kd = $r.exports;
3001
- const Ed = /* @__PURE__ */ Ni(kd), yt = "other";
3017
+ var xd = $r.exports;
3018
+ const kd = /* @__PURE__ */ Ni(xd), yt = "other";
3002
3019
  function tt(e) {
3003
3020
  return e.mapToName !== void 0;
3004
3021
  }
3005
- function Fd(e, t) {
3022
+ function Ed(e, t) {
3006
3023
  var r;
3007
3024
  return ((r = e == null ? void 0 : e.objects) == null ? void 0 : r.find((n) => n.objectName === t)) || null;
3008
3025
  }
3009
- function Pd(e) {
3026
+ function Fd(e) {
3010
3027
  var t;
3011
3028
  return ((t = e == null ? void 0 : e.requiredFields) == null ? void 0 : t.filter(
3012
3029
  (r) => !tt(r) && !!r.fieldName
3013
3030
  )) || null;
3014
3031
  }
3015
- function Dd(e) {
3032
+ function Pd(e) {
3016
3033
  var r;
3017
3034
  return ((r = e == null ? void 0 : e.requiredFields) == null ? void 0 : r.filter(
3018
3035
  (n) => tt(n) && !!n.mapToName
3019
3036
  )) || [];
3020
3037
  }
3021
- function Kd(e) {
3038
+ function Dd(e) {
3022
3039
  var t;
3023
3040
  return ((t = e == null ? void 0 : e.optionalFields) == null ? void 0 : t.filter(
3024
3041
  (r) => !tt(r) && !!r.fieldName
@@ -3028,7 +3045,7 @@ const xo = (e, t) => {
3028
3045
  var r, n, i;
3029
3046
  return (i = (n = (r = e == null ? void 0 : e.content) == null ? void 0 : r.read) == null ? void 0 : n.objects) == null ? void 0 : i[t];
3030
3047
  };
3031
- function Ld(e) {
3048
+ function Kd(e) {
3032
3049
  return tt(e) ? e.mapToName : e.fieldName;
3033
3050
  }
3034
3051
  const ko = (e, t) => {
@@ -3051,7 +3068,7 @@ const ko = (e, t) => {
3051
3068
  completed: e ? !!((r = e == null ? void 0 : e.content) != null && r.write) : !1
3052
3069
  };
3053
3070
  };
3054
- function Bd(e, t) {
3071
+ function Ld(e, t) {
3055
3072
  var a;
3056
3073
  const r = ko(e, t), i = !!((a = t == null ? void 0 : t.content) != null && a.write) ? Eo(e) : void 0;
3057
3074
  return i && r.push(i), r;
@@ -3063,13 +3080,13 @@ function Fo(e, t, r) {
3063
3080
  return r(Z.MAPPING, i), n != null && n.length && console.error("required fields not met", n.map((a) => a.mapToDisplayName)), { errorList: i };
3064
3081
  }
3065
3082
  function Ti(e, t) {
3066
- return Ed(e, t);
3083
+ return kd(e, t);
3067
3084
  }
3068
- const Ud = (e, t, r) => {
3085
+ const Bd = (e, t, r) => {
3069
3086
  var I, b, v, S, R, C;
3070
3087
  if (!e)
3071
3088
  return null;
3072
- const n = Fd(e, t), i = n && Pd(n), a = n && Kd(n), s = n && Dd(n), u = (n == null ? void 0 : n.allFields) || [], p = r == null ? void 0 : r.content, h = ((v = (b = (I = p == null ? void 0 : p.read) == null ? void 0 : I.objects) == null ? void 0 : b[t]) == null ? void 0 : v.selectedFields) || {}, m = ((C = (R = (S = p == null ? void 0 : p.read) == null ? void 0 : S.objects) == null ? void 0 : R[t]) == null ? void 0 : C.selectedFieldMappings) || {}, w = { ...h }, y = { ...m };
3089
+ const n = Ed(e, t), i = n && Fd(n), a = n && Dd(n), s = n && Pd(n), u = (n == null ? void 0 : n.allFields) || [], p = r == null ? void 0 : r.content, h = ((v = (b = (I = p == null ? void 0 : p.read) == null ? void 0 : I.objects) == null ? void 0 : b[t]) == null ? void 0 : v.selectedFields) || {}, m = ((C = (R = (S = p == null ? void 0 : p.read) == null ? void 0 : S.objects) == null ? void 0 : R[t]) == null ? void 0 : C.selectedFieldMappings) || {}, w = { ...h }, y = { ...m };
3073
3090
  return {
3074
3091
  allFields: u,
3075
3092
  // from hydrated revision
@@ -3091,7 +3108,7 @@ const Ud = (e, t, r) => {
3091
3108
  // from config
3092
3109
  }
3093
3110
  };
3094
- }, Md = (e, t) => {
3111
+ }, Ud = (e, t) => {
3095
3112
  var s, u;
3096
3113
  if (!e)
3097
3114
  return null;
@@ -3113,8 +3130,8 @@ function Po(e, t, r) {
3113
3130
  var a, s;
3114
3131
  const n = (a = e == null ? void 0 : e.content) == null ? void 0 : a.read, i = (s = e == null ? void 0 : e.content) == null ? void 0 : s.write;
3115
3132
  return {
3116
- read: Ud(n, t, r),
3117
- write: Md(i, r)
3133
+ read: Bd(n, t, r),
3134
+ write: Ud(i, r)
3118
3135
  };
3119
3136
  }
3120
3137
  const Do = (e, t, r, n) => {
@@ -3124,8 +3141,8 @@ const Do = (e, t, r, n) => {
3124
3141
  t
3125
3142
  );
3126
3143
  n(r, i);
3127
- }, $d = (e, t, r) => {
3128
- const n = Bd(t, e), i = {};
3144
+ }, Md = (e, t, r) => {
3145
+ const n = Ld(t, e), i = {};
3129
3146
  n.forEach(({ name: a, completed: s }) => {
3130
3147
  s && (i[a] = Po(
3131
3148
  e,
@@ -3135,7 +3152,7 @@ const Do = (e, t, r, n) => {
3135
3152
  }), r(i);
3136
3153
  }, Ko = (e) => {
3137
3154
  const { requiredFields: t, selectedOptionalFields: r } = (e == null ? void 0 : e.read) || {}, n = /* @__PURE__ */ new Set();
3138
- return t == null || t.forEach((a) => n.add(Ld(a))), {
3155
+ return t == null || t.forEach((a) => n.add(Kd(a))), {
3139
3156
  ...Array.from(n).reduce((a, s) => ({
3140
3157
  ...a,
3141
3158
  [s]: !0
@@ -3188,13 +3205,13 @@ function Qr(e) {
3188
3205
  var t;
3189
3206
  return (t = e.content.proxy) == null ? void 0 : t.enabled;
3190
3207
  }
3191
- const jd = (e, t) => {
3208
+ const $d = (e, t) => {
3192
3209
  const r = e.content.read, n = r == null ? void 0 : r.objects;
3193
3210
  return n == null ? void 0 : n.find((i) => i.objectName === t);
3194
- }, qd = (e, t, r, n) => {
3211
+ }, jd = (e, t, r, n) => {
3195
3212
  const i = Ko(e), a = Lo(
3196
3213
  e
3197
- ), s = jd(r, t);
3214
+ ), s = $d(r, t);
3198
3215
  if (!s)
3199
3216
  return console.error(`Error when getting object from hydratedRevision for objectName: ${t}`), null;
3200
3217
  const u = {
@@ -3217,8 +3234,8 @@ const jd = (e, t) => {
3217
3234
  }
3218
3235
  };
3219
3236
  return Qr(r) && (u.content.proxy = { enabled: !0 }), u;
3220
- }, Wd = (e, t, r, n, i, a, s, u, p, h, m) => {
3221
- const w = qd(
3237
+ }, qd = (e, t, r, n, i, a, s, u, p, h, m) => {
3238
+ const w = jd(
3222
3239
  p,
3223
3240
  a,
3224
3241
  u,
@@ -3243,11 +3260,11 @@ const jd = (e, t) => {
3243
3260
  objectName: p
3244
3261
  });
3245
3262
  }), t;
3246
- }, zd = (e) => {
3263
+ }, Wd = (e) => {
3247
3264
  const t = e.content.write;
3248
3265
  return t == null ? void 0 : t.objects;
3249
- }, Jd = (e, t, r) => {
3250
- if (!zd(t))
3266
+ }, zd = (e, t, r) => {
3267
+ if (!Wd(t))
3251
3268
  return console.error("Error when getting write objects from hydratedRevision"), null;
3252
3269
  const i = Uo(e), a = {
3253
3270
  revisionId: t.id,
@@ -3265,8 +3282,8 @@ const jd = (e, t) => {
3265
3282
  }
3266
3283
  };
3267
3284
  return Qr(t) && (a.content.proxy = { enabled: !0 }), a;
3268
- }, Hd = (e, t, r, n, i, a, s, u, p, h) => {
3269
- const m = Jd(
3285
+ }, Jd = (e, t, r, n, i, a, s, u, p, h) => {
3286
+ const m = zd(
3270
3287
  u,
3271
3288
  s,
3272
3289
  n
@@ -3282,7 +3299,7 @@ const jd = (e, t) => {
3282
3299
  onInstallSuccess: h
3283
3300
  }) : (console.error("Error when generating createConfig from configureState"), Promise.resolve(null));
3284
3301
  };
3285
- function Xd() {
3302
+ function Hd() {
3286
3303
  return /* @__PURE__ */ A("svg", { width: "18", height: "18", viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
3287
3304
  /* @__PURE__ */ l("path", { d: "M2.25 4.5H3.75H15.75", stroke: "#991B1B", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
3288
3305
  /* @__PURE__ */ l(
@@ -3299,7 +3316,7 @@ function Xd() {
3299
3316
  /* @__PURE__ */ l("path", { d: "M10.5 8.25V12.75", stroke: "#991B1B", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" })
3300
3317
  ] });
3301
3318
  }
3302
- const Mo = "uninstall-installation", Gd = Si(
3319
+ const Mo = "uninstall-installation", Xd = Si(
3303
3320
  ({ text: e = "Uninstall" }, t) => {
3304
3321
  const r = oo({ ref: t }), n = ao("Tabs", r);
3305
3322
  return /* @__PURE__ */ A(
@@ -3319,7 +3336,7 @@ const Mo = "uninstall-installation", Gd = Si(
3319
3336
  my: 2,
3320
3337
  mx: 4,
3321
3338
  children: [
3322
- Xd(),
3339
+ Hd(),
3323
3340
  /* @__PURE__ */ l(J, { textAlign: "left", children: /* @__PURE__ */ l(Ie, { color: "red.800", children: e }) })
3324
3341
  ]
3325
3342
  }
@@ -3338,7 +3355,7 @@ const Mo = "uninstall-installation", Gd = Si(
3338
3355
  throw new Error("useHydratedRevision must be used within a HydratedRevisionProvider");
3339
3356
  return e;
3340
3357
  };
3341
- function Vd({
3358
+ function Gd({
3342
3359
  projectId: e,
3343
3360
  children: t
3344
3361
  }) {
@@ -3375,7 +3392,7 @@ function Vd({
3375
3392
  }), [a, u]), C = `Error retrieving integration details for '${(i == null ? void 0 : i.name) || n || "unknown integration"}. This is sometimes caused by insufficient permissions with your credentials'`;
3376
3393
  return /* @__PURE__ */ l($o.Provider, { value: S, children: h(Z.HYDRATED_REVISION, v) ? /* @__PURE__ */ l(We, { message: C }) : t });
3377
3394
  }
3378
- var jo = Symbol.for("immer-nothing"), Mi = Symbol.for("immer-draftable"), pe = Symbol.for("immer-state"), Yd = process.env.NODE_ENV !== "production" ? [
3395
+ var jo = Symbol.for("immer-nothing"), Mi = Symbol.for("immer-draftable"), pe = Symbol.for("immer-state"), Vd = process.env.NODE_ENV !== "production" ? [
3379
3396
  // All error codes, starting by 0:
3380
3397
  function(e) {
3381
3398
  return `The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`;
@@ -3408,7 +3425,7 @@ var jo = Symbol.for("immer-nothing"), Mi = Symbol.for("immer-draftable"), pe = S
3408
3425
  ] : [];
3409
3426
  function le(e, ...t) {
3410
3427
  if (process.env.NODE_ENV !== "production") {
3411
- const r = Yd[e], n = typeof r == "function" ? r.apply(null, t) : r;
3428
+ const r = Vd[e], n = typeof r == "function" ? r.apply(null, t) : r;
3412
3429
  throw new Error(`[Immer] ${n}`);
3413
3430
  }
3414
3431
  throw new Error(
@@ -3423,7 +3440,7 @@ function wt(e) {
3423
3440
  var t;
3424
3441
  return e ? qo(e) || Array.isArray(e) || !!e[Mi] || !!((t = e.constructor) != null && t[Mi]) || tn(e) || rn(e) : !1;
3425
3442
  }
3426
- var Zd = Object.prototype.constructor.toString();
3443
+ var Yd = Object.prototype.constructor.toString();
3427
3444
  function qo(e) {
3428
3445
  if (!e || typeof e != "object")
3429
3446
  return !1;
@@ -3431,7 +3448,7 @@ function qo(e) {
3431
3448
  if (t === null)
3432
3449
  return !0;
3433
3450
  const r = Object.hasOwnProperty.call(t, "constructor") && t.constructor;
3434
- return r === Object ? !0 : typeof r == "function" && Function.toString.call(r) === Zd;
3451
+ return r === Object ? !0 : typeof r == "function" && Function.toString.call(r) === Yd;
3435
3452
  }
3436
3453
  function jr(e, t) {
3437
3454
  en(e) === 0 ? Reflect.ownKeys(e).forEach((r) => {
@@ -3449,7 +3466,7 @@ function Wo(e, t, r) {
3449
3466
  const n = en(e);
3450
3467
  n === 2 ? e.set(t, r) : n === 3 ? e.add(r) : e[t] = r;
3451
3468
  }
3452
- function Qd(e, t) {
3469
+ function Zd(e, t) {
3453
3470
  return e === t ? e !== 0 || 1 / e === 1 / t : e !== e && t !== t;
3454
3471
  }
3455
3472
  function tn(e) {
@@ -3493,24 +3510,24 @@ function pi(e, t) {
3493
3510
  }
3494
3511
  }
3495
3512
  function _i(e, t = !1) {
3496
- return nn(e) || Dt(e) || !wt(e) || (en(e) > 1 && (e.set = e.add = e.clear = e.delete = el), Object.freeze(e), t && Object.entries(e).forEach(([r, n]) => _i(n, !0))), e;
3513
+ return nn(e) || Dt(e) || !wt(e) || (en(e) > 1 && (e.set = e.add = e.clear = e.delete = Qd), Object.freeze(e), t && Object.entries(e).forEach(([r, n]) => _i(n, !0))), e;
3497
3514
  }
3498
- function el() {
3515
+ function Qd() {
3499
3516
  le(2);
3500
3517
  }
3501
3518
  function nn(e) {
3502
3519
  return Object.isFrozen(e);
3503
3520
  }
3504
- var tl = {};
3521
+ var el = {};
3505
3522
  function It(e) {
3506
- const t = tl[e];
3523
+ const t = el[e];
3507
3524
  return t || le(0, e), t;
3508
3525
  }
3509
3526
  var ar;
3510
3527
  function zo() {
3511
3528
  return ar;
3512
3529
  }
3513
- function rl(e, t) {
3530
+ function tl(e, t) {
3514
3531
  return {
3515
3532
  drafts_: [],
3516
3533
  parent_: e,
@@ -3525,15 +3542,15 @@ function $i(e, t) {
3525
3542
  t && (It("Patches"), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
3526
3543
  }
3527
3544
  function fi(e) {
3528
- hi(e), e.drafts_.forEach(nl), e.drafts_ = null;
3545
+ hi(e), e.drafts_.forEach(rl), e.drafts_ = null;
3529
3546
  }
3530
3547
  function hi(e) {
3531
3548
  e === ar && (ar = e.parent_);
3532
3549
  }
3533
3550
  function ji(e) {
3534
- return ar = rl(ar, e);
3551
+ return ar = tl(ar, e);
3535
3552
  }
3536
- function nl(e) {
3553
+ function rl(e) {
3537
3554
  const t = e[pe];
3538
3555
  t.type_ === 0 || t.type_ === 1 ? t.revoke_() : t.revoked_ = !0;
3539
3556
  }
@@ -3594,7 +3611,7 @@ function Wi(e, t, r, n, i, a, s) {
3594
3611
  function Wr(e, t, r = !1) {
3595
3612
  !e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && _i(t, r);
3596
3613
  }
3597
- function il(e, t) {
3614
+ function nl(e, t) {
3598
3615
  const r = Array.isArray(e), n = {
3599
3616
  type_: r ? 1 : 0,
3600
3617
  // Track which produce call this is associated with.
@@ -3629,7 +3646,7 @@ var Ai = {
3629
3646
  return e;
3630
3647
  const r = ht(e);
3631
3648
  if (!ui(r, t))
3632
- return ol(e, r, t);
3649
+ return il(e, r, t);
3633
3650
  const n = r[t];
3634
3651
  return e.finalized_ || !wt(n) ? n : n === si(e.base_, t) ? (ci(e), e.copy_[t] = mi(n, e)) : n;
3635
3652
  },
@@ -3647,7 +3664,7 @@ var Ai = {
3647
3664
  const i = si(ht(e), t), a = i == null ? void 0 : i[pe];
3648
3665
  if (a && a.base_ === r)
3649
3666
  return e.copy_[t] = r, e.assigned_[t] = !1, !0;
3650
- if (Qd(r, i) && (r !== void 0 || ui(e.base_, t)))
3667
+ if (Zd(r, i) && (r !== void 0 || ui(e.base_, t)))
3651
3668
  return !0;
3652
3669
  ci(e), gi(e);
3653
3670
  }
@@ -3694,7 +3711,7 @@ function si(e, t) {
3694
3711
  const r = e[pe];
3695
3712
  return (r ? ht(r) : e)[t];
3696
3713
  }
3697
- function ol(e, t, r) {
3714
+ function il(e, t, r) {
3698
3715
  var i;
3699
3716
  const n = Jo(t, r);
3700
3717
  return n ? "value" in n ? n.value : (
@@ -3723,7 +3740,7 @@ function ci(e) {
3723
3740
  e.scope_.immer_.useStrictShallowCopy_
3724
3741
  ));
3725
3742
  }
3726
- var al = class {
3743
+ var ol = class {
3727
3744
  constructor(e) {
3728
3745
  this.autoFreeze_ = !0, this.useStrictShallowCopy_ = !1, this.produce = (t, r, n) => {
3729
3746
  if (typeof t == "function" && typeof r != "function") {
@@ -3763,7 +3780,7 @@ var al = class {
3763
3780
  }, typeof (e == null ? void 0 : e.autoFreeze) == "boolean" && this.setAutoFreeze(e.autoFreeze), typeof (e == null ? void 0 : e.useStrictShallowCopy) == "boolean" && this.setUseStrictShallowCopy(e.useStrictShallowCopy);
3764
3781
  }
3765
3782
  createDraft(e) {
3766
- wt(e) || le(8), Dt(e) && (e = sl(e));
3783
+ wt(e) || le(8), Dt(e) && (e = al(e));
3767
3784
  const t = ji(this), r = mi(e, void 0);
3768
3785
  return r[pe].isManual_ = !0, hi(t), r;
3769
3786
  }
@@ -3807,10 +3824,10 @@ var al = class {
3807
3824
  }
3808
3825
  };
3809
3826
  function mi(e, t) {
3810
- const r = tn(e) ? It("MapSet").proxyMap_(e, t) : rn(e) ? It("MapSet").proxySet_(e, t) : il(e, t);
3827
+ const r = tn(e) ? It("MapSet").proxyMap_(e, t) : rn(e) ? It("MapSet").proxySet_(e, t) : nl(e, t);
3811
3828
  return (t ? t.scope_ : zo()).drafts_.push(r), r;
3812
3829
  }
3813
- function sl(e) {
3830
+ function al(e) {
3814
3831
  return Dt(e) || le(10, e), Ho(e);
3815
3832
  }
3816
3833
  function Ho(e) {
@@ -3828,7 +3845,7 @@ function Ho(e) {
3828
3845
  Wo(r, n, Ho(i));
3829
3846
  }), t && (t.finalized_ = !1), r;
3830
3847
  }
3831
- var fe = new al(), nr = fe.produce;
3848
+ var fe = new ol(), nr = fe.produce;
3832
3849
  fe.produceWithPatches.bind(
3833
3850
  fe
3834
3851
  );
@@ -3837,20 +3854,20 @@ fe.setUseStrictShallowCopy.bind(fe);
3837
3854
  fe.applyPatches.bind(fe);
3838
3855
  fe.createDraft.bind(fe);
3839
3856
  fe.finishDraft.bind(fe);
3840
- const Xo = _e(void 0), cl = {};
3857
+ const Xo = _e(void 0), sl = {};
3841
3858
  function xi() {
3842
3859
  const e = ve(Xo);
3843
3860
  if (!e)
3844
3861
  throw new Error("useObjectsConfigureState must be used within a ConfigurationProvider");
3845
3862
  return e;
3846
3863
  }
3847
- function dl({ children: e }) {
3864
+ function cl({ children: e }) {
3848
3865
  const { installation: t } = Ke(), { hydratedRevision: r, loading: n } = dr(), [
3849
3866
  i,
3850
3867
  a
3851
- ] = k(cl), s = t == null ? void 0 : t.config;
3868
+ ] = k(sl), s = t == null ? void 0 : t.config;
3852
3869
  Y(() => {
3853
- r != null && r.content && !n && s && !(Object.entries(i).length > 0) && $d(
3870
+ r != null && r.content && !n && s && !(Object.entries(i).length > 0) && Md(
3854
3871
  r,
3855
3872
  s,
3856
3873
  a
@@ -3898,11 +3915,11 @@ function dl({ children: e }) {
3898
3915
  );
3899
3916
  return /* @__PURE__ */ l(Xo.Provider, { value: y, children: e });
3900
3917
  }
3901
- const ll = /* @__PURE__ */ A("svg", { xmlns: "http://www.w3.org/2000/svg", width: "18", height: "18", viewBox: "0 0 18 18", fill: "none", children: [
3918
+ const dl = /* @__PURE__ */ A("svg", { xmlns: "http://www.w3.org/2000/svg", width: "18", height: "18", viewBox: "0 0 18 18", fill: "none", children: [
3902
3919
  /* @__PURE__ */ l("circle", { cx: "9", cy: "9", r: "9", fill: "#BBF7D0" }),
3903
3920
  /* @__PURE__ */ l("path", { d: "M13 7L7.5 12L5 9.72727", stroke: "#16A34A", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" })
3904
3921
  ] });
3905
- function ul(e, t) {
3922
+ function ll(e, t) {
3906
3923
  return t ? Br.createElement(
3907
3924
  "svg",
3908
3925
  {
@@ -3918,7 +3935,7 @@ function ul(e, t) {
3918
3935
  r: "5",
3919
3936
  fill: "#FBD38D"
3920
3937
  })
3921
- ) : e ? ll : /* @__PURE__ */ l("svg", { xmlns: "http://www.w3.org/2000/svg", width: "18", height: "18", viewBox: "0 0 18 18", fill: "none", children: /* @__PURE__ */ l("circle", { cx: "9", cy: "9", r: "5", fill: "#BFDBFE" }) });
3938
+ ) : e ? dl : /* @__PURE__ */ l("svg", { xmlns: "http://www.w3.org/2000/svg", width: "18", height: "18", viewBox: "0 0 18 18", fill: "none", children: /* @__PURE__ */ l("circle", { cx: "9", cy: "9", r: "5", fill: "#BFDBFE" }) });
3922
3939
  }
3923
3940
  const Go = Si(
3924
3941
  ({
@@ -3938,7 +3955,7 @@ const Go = Si(
3938
3955
  gap: 2,
3939
3956
  mr: "3",
3940
3957
  children: [
3941
- ul(t, r),
3958
+ ll(t, r),
3942
3959
  /* @__PURE__ */ A(J, { textAlign: "left", children: [
3943
3960
  /* @__PURE__ */ l(Ie, { children: n || e }),
3944
3961
  r && /* @__PURE__ */ l(Ie, { fontSize: 10, fontStyle: "italic", children: "pending" })
@@ -3950,7 +3967,7 @@ const Go = Si(
3950
3967
  ] });
3951
3968
  }
3952
3969
  );
3953
- function pl({ pending: e, completed: t, displayName: r }) {
3970
+ function ul({ pending: e, completed: t, displayName: r }) {
3954
3971
  return /* @__PURE__ */ A(Kt, { children: [
3955
3972
  /* @__PURE__ */ l(Oi, { marginY: 3 }),
3956
3973
  /* @__PURE__ */ l(
@@ -3974,31 +3991,30 @@ function Yo() {
3974
3991
  );
3975
3992
  return { selectedObjectName: e };
3976
3993
  }
3977
- function fl(e, t) {
3994
+ function pl(e, t) {
3978
3995
  return e != null && e[t] ? e[t] : { name: Mo, completed: !1 };
3979
3996
  }
3980
- function hl({
3997
+ function fl({
3981
3998
  children: e
3982
3999
  }) {
3983
4000
  var S, R, C;
3984
4001
  const { project: t } = ee(), { installation: r, provider: n } = Ke(), { hydratedRevision: i } = dr(), { objectConfigurationsState: a } = xi(), [s, u] = k(0), p = (t == null ? void 0 : t.appName) || "", h = r == null ? void 0 : r.config, m = i && ko(h, i), w = m !== null, y = !!((S = i == null ? void 0 : i.content) != null && S.write), I = y ? Eo(h) : void 0, b = [...m || []];
3985
4002
  I && y && b.push(I);
3986
- const v = fl(b, s);
4003
+ const v = pl(b, s);
3987
4004
  return /* @__PURE__ */ l(Vo.Provider, { value: v == null ? void 0 : v.name, children: /* @__PURE__ */ A(
3988
4005
  J,
3989
4006
  {
3990
4007
  p: 8,
3991
4008
  maxWidth: "55rem",
3992
- border: "1px solid #EFEFEF",
3993
- borderRadius: 6,
3994
- boxShadow: "md",
4009
+ borderRadius: 4,
3995
4010
  margin: "auto",
3996
- bgColor: "whitesmoke",
3997
4011
  display: "flex",
3998
4012
  gap: "6",
3999
4013
  minHeight: "100%",
4000
- color: "gray.800",
4001
4014
  fontSize: "md",
4015
+ backgroundColor: "#FCFCFC",
4016
+ border: "1px solid #EFEFEF",
4017
+ boxShadow: "0px 4px 8px rgba(0, 0, 0, 0.05)",
4002
4018
  children: [
4003
4019
  /* @__PURE__ */ A(J, { width: "20rem", children: [
4004
4020
  /* @__PURE__ */ A(Ie, { children: [
@@ -4007,7 +4023,7 @@ function hl({
4007
4023
  ] }),
4008
4024
  /* @__PURE__ */ l(Ie, { marginBottom: "20px", fontSize: "1.125rem", fontWeight: "500", children: p }),
4009
4025
  w && /* @__PURE__ */ A(
4010
- ba,
4026
+ va,
4011
4027
  {
4012
4028
  index: s,
4013
4029
  onChange: u,
@@ -4026,7 +4042,7 @@ function hl({
4026
4042
  );
4027
4043
  }),
4028
4044
  y && I && /* @__PURE__ */ l(
4029
- pl,
4045
+ ul,
4030
4046
  {
4031
4047
  completed: I.completed,
4032
4048
  pending: (C = (R = a == null ? void 0 : a.other) == null ? void 0 : R.write) == null ? void 0 : C.isWriteModified,
@@ -4036,7 +4052,7 @@ function hl({
4036
4052
  r && /* @__PURE__ */ A(Kt, { children: [
4037
4053
  /* @__PURE__ */ l(Oi, { marginTop: 10, marginBottom: 3 }),
4038
4054
  /* @__PURE__ */ l(
4039
- Gd,
4055
+ Xd,
4040
4056
  {
4041
4057
  text: "Uninstall"
4042
4058
  },
@@ -4061,7 +4077,7 @@ const Bt = () => {
4061
4077
  selectedObjectName: n
4062
4078
  };
4063
4079
  };
4064
- function gl(e, t, r) {
4080
+ function hl(e, t, r) {
4065
4081
  var i;
4066
4082
  const n = ((i = e == null ? void 0 : e.read) == null ? void 0 : i.selectedFieldMappings) || {};
4067
4083
  if (n[t] = r, e != null && e.read) {
@@ -4072,10 +4088,10 @@ function gl(e, t, r) {
4072
4088
  function Zo(e, t, r, n) {
4073
4089
  t(
4074
4090
  e,
4075
- (i) => gl(i, r, n)
4091
+ (i) => hl(i, r, n)
4076
4092
  );
4077
4093
  }
4078
- function ml({ field: e, onSelectChange: t, allFields: r }) {
4094
+ function gl({ field: e, onSelectChange: t, allFields: r }) {
4079
4095
  var w;
4080
4096
  const { configureState: n, selectedObjectName: i, setConfigureState: a } = Bt(), [s, u] = k(!0), p = (w = n == null ? void 0 : n.read) == null ? void 0 : w.selectedFieldMappings, h = p == null ? void 0 : p[e.mapToName];
4081
4097
  Y(() => {
@@ -4088,7 +4104,7 @@ function ml({ field: e, onSelectChange: t, allFields: r }) {
4088
4104
  /* @__PURE__ */ l(Ie, { fontWeight: "500", children: e.mapToDisplayName }),
4089
4105
  /* @__PURE__ */ l(Ie, { marginBottom: "5px", fontSize: 14, children: e == null ? void 0 : e.prompt }),
4090
4106
  /* @__PURE__ */ l(
4091
- Sa,
4107
+ ba,
4092
4108
  {
4093
4109
  name: e.mapToName,
4094
4110
  variant: "flushed",
@@ -4107,7 +4123,7 @@ function on({ string: e }) {
4107
4123
  /* @__PURE__ */ l(Ur, { flex: "1", justifyContent: "flex-end", alignItems: "center", children: /* @__PURE__ */ l(Oi, { marginLeft: 2 }) })
4108
4124
  ] });
4109
4125
  }
4110
- function yl() {
4126
+ function ml() {
4111
4127
  const { selectedObjectName: e, configureState: t, setConfigureState: r } = Bt(), { isError: n, removeError: i } = nt(), a = (u) => {
4112
4128
  const { value: p, name: h } = u.target;
4113
4129
  p && (e && Zo(e, r, h, p), n(Z.MAPPING, h) && i(Z.MAPPING, h));
@@ -4133,14 +4149,14 @@ function yl() {
4133
4149
  ),
4134
4150
  children: [
4135
4151
  /* @__PURE__ */ l(
4136
- ml,
4152
+ gl,
4137
4153
  {
4138
4154
  allFields: ((p = t.read) == null ? void 0 : p.allFields) || [],
4139
4155
  field: u,
4140
4156
  onSelectChange: a
4141
4157
  }
4142
4158
  ),
4143
- /* @__PURE__ */ l(Oa, { children: " * required" })
4159
+ /* @__PURE__ */ l(Sa, { children: " * required" })
4144
4160
  ]
4145
4161
  },
4146
4162
  u.mapToName
@@ -4148,7 +4164,7 @@ function yl() {
4148
4164
  }) })
4149
4165
  ] }) : null;
4150
4166
  }
4151
- function wl(e, t, r) {
4167
+ function yl(e, t, r) {
4152
4168
  var i, a;
4153
4169
  const n = ((i = e == null ? void 0 : e.read) == null ? void 0 : i.selectedOptionalFields) || {};
4154
4170
  if (n[t] = r, r || delete n[t], (a = e.read) != null && a.savedConfig.optionalFields) {
@@ -4160,10 +4176,10 @@ function wl(e, t, r) {
4160
4176
  function zi(e, t, r, n) {
4161
4177
  t(
4162
4178
  e,
4163
- (i) => wl(i, r, n)
4179
+ (i) => yl(i, r, n)
4164
4180
  );
4165
4181
  }
4166
- function Il() {
4182
+ function wl() {
4167
4183
  var w, y;
4168
4184
  const {
4169
4185
  appName: e,
@@ -4217,22 +4233,22 @@ function Il() {
4217
4233
  )
4218
4234
  ] });
4219
4235
  }
4220
- function vl() {
4236
+ function Il() {
4221
4237
  var n, i, a;
4222
4238
  const { configureState: e, selectedObjectName: t } = Bt(), { appName: r } = ee();
4223
4239
  return /* @__PURE__ */ A(Kt, { children: [
4224
4240
  /* @__PURE__ */ l(on, { string: `${r} reads the following ${t} fields` }),
4225
- /* @__PURE__ */ l(J, { marginBottom: "20px", display: "flex", gap: 1, children: (i = (n = e == null ? void 0 : e.read) == null ? void 0 : n.requiredFields) != null && i.length ? (a = e.read) == null ? void 0 : a.requiredFields.map((s) => tt(s) ? null : /* @__PURE__ */ l(Ca, { children: s.displayName }, s.fieldName)) : "There are no required fields." })
4241
+ /* @__PURE__ */ l(J, { marginBottom: "20px", display: "flex", gap: 1, children: (i = (n = e == null ? void 0 : e.read) == null ? void 0 : n.requiredFields) != null && i.length ? (a = e.read) == null ? void 0 : a.requiredFields.map((s) => tt(s) ? null : /* @__PURE__ */ l(Oa, { children: s.displayName }, s.fieldName)) : "There are no required fields." })
4226
4242
  ] });
4227
4243
  }
4228
- function bl() {
4244
+ function vl() {
4229
4245
  return /* @__PURE__ */ A(Kt, { children: [
4230
- /* @__PURE__ */ l(vl, {}),
4231
- /* @__PURE__ */ l(yl, {}),
4232
- /* @__PURE__ */ l(Il, {})
4246
+ /* @__PURE__ */ l(Il, {}),
4247
+ /* @__PURE__ */ l(ml, {}),
4248
+ /* @__PURE__ */ l(wl, {})
4233
4249
  ] });
4234
4250
  }
4235
- function Sl(e, t, r) {
4251
+ function bl(e, t, r) {
4236
4252
  var n, i, a;
4237
4253
  if (((n = e == null ? void 0 : e.write) == null ? void 0 : n.selectedNonConfigurableWriteFields) === null && (e.write.selectedNonConfigurableWriteFields = {}), e != null && e.write) {
4238
4254
  const s = e.write.selectedNonConfigurableWriteFields;
@@ -4246,11 +4262,11 @@ function Ji(e, t, r, n) {
4246
4262
  t(
4247
4263
  e,
4248
4264
  (i) => {
4249
- Sl(i, r, n);
4265
+ bl(i, r, n);
4250
4266
  }
4251
4267
  );
4252
4268
  }
4253
- function Ol() {
4269
+ function Sl() {
4254
4270
  var w, y, I, b;
4255
4271
  const {
4256
4272
  appName: e,
@@ -4317,7 +4333,7 @@ function Ol() {
4317
4333
  )
4318
4334
  ] });
4319
4335
  }
4320
- function Cl() {
4336
+ function Ol() {
4321
4337
  const e = te(), { projectId: t, appName: r } = ee(), { integrationId: n, installation: i, resetInstallations: a } = Ke(), [s, u] = k(!1), p = !t || !n || !(i != null && i.id) || s, h = async () => {
4322
4338
  if (!p) {
4323
4339
  u(!0), console.warn(
@@ -4359,8 +4375,7 @@ function Qo({
4359
4375
  /* @__PURE__ */ l(
4360
4376
  ne,
4361
4377
  {
4362
- backgroundColor: "gray.800",
4363
- _hover: { backgroundColor: "gray.600" },
4378
+ variant: "primary",
4364
4379
  type: "submit",
4365
4380
  isDisabled: S,
4366
4381
  children: n ? "Install" : "Save"
@@ -4369,9 +4384,6 @@ function Qo({
4369
4384
  /* @__PURE__ */ l(
4370
4385
  ne,
4371
4386
  {
4372
- backgroundColor: "gray.200",
4373
- color: "blackAlpha.700",
4374
- _hover: { backgroundColor: "gray.300" },
4375
4387
  isDisabled: S,
4376
4388
  onClick: t,
4377
4389
  children: "Reset"
@@ -4382,21 +4394,17 @@ function Qo({
4382
4394
  J,
4383
4395
  {
4384
4396
  p: 8,
4385
- width: "100%",
4386
- border: "1px solid #EFEFEF",
4387
- borderRadius: 8,
4388
- boxShadow: "md",
4389
- textAlign: ["left"],
4397
+ borderRadius: 4,
4398
+ boxShadow: "sm",
4390
4399
  margin: "auto",
4391
- bgColor: "white",
4392
- maxHeight: "100%",
4393
- overflowY: "scroll",
4400
+ backgroundColor: "white",
4401
+ border: "1px solid gray.100",
4394
4402
  minHeight: 300,
4395
4403
  children: [
4396
4404
  s && /* @__PURE__ */ l(De, {}),
4397
- a && !C && !R && /* @__PURE__ */ l(bl, {}),
4398
- a && !C && R && /* @__PURE__ */ l(Ol, {}),
4399
- !s && C && /* @__PURE__ */ l(Cl, {})
4405
+ a && !C && !R && /* @__PURE__ */ l(vl, {}),
4406
+ a && !C && R && /* @__PURE__ */ l(Sl, {}),
4407
+ !s && C && /* @__PURE__ */ l(Ol, {})
4400
4408
  ]
4401
4409
  }
4402
4410
  )
@@ -4435,8 +4443,8 @@ const ea = () => {
4435
4443
  onInstallSuccess: i,
4436
4444
  onUpdateSuccess: a
4437
4445
  };
4438
- }, Nl = void 0;
4439
- function Tl() {
4446
+ }, Cl = void 0;
4447
+ function Nl() {
4440
4448
  const {
4441
4449
  integrationId: e,
4442
4450
  groupRef: t,
@@ -4459,7 +4467,7 @@ function Tl() {
4459
4467
  () => {
4460
4468
  m(Z.MAPPING), i != null && i.content && !a && s && Do(
4461
4469
  i,
4462
- Nl,
4470
+ Cl,
4463
4471
  s,
4464
4472
  y
4465
4473
  );
@@ -4475,7 +4483,7 @@ function Tl() {
4475
4483
  V,
4476
4484
  w
4477
4485
  );
4478
- be.length > 0 || (s && (u != null && u.id) && p && h && e && t && r && i ? (C(!0), Wd(
4486
+ be.length > 0 || (s && (u != null && u.id) && p && h && e && t && r && i ? (C(!0), qd(
4479
4487
  h,
4480
4488
  e,
4481
4489
  t,
@@ -4491,7 +4499,7 @@ function Tl() {
4491
4499
  C(!1), b(s);
4492
4500
  })) : console.error("CreateInstallallation - onSaveReadCreate: missing required props"));
4493
4501
  }, ie = () => {
4494
- s && (u != null && u.id) && p && h && e && t && r && i ? (C(!0), Hd(
4502
+ s && (u != null && u.id) && p && h && e && t && r && i ? (C(!0), Jd(
4495
4503
  h,
4496
4504
  e,
4497
4505
  t,
@@ -4518,7 +4526,7 @@ function Tl() {
4518
4526
  }
4519
4527
  );
4520
4528
  }
4521
- function Rl({
4529
+ function Tl({
4522
4530
  updateConfig: e,
4523
4531
  projectId: t,
4524
4532
  integrationId: r,
@@ -4552,7 +4560,7 @@ function Rl({
4552
4560
  console.error("ERROR: ", h);
4553
4561
  });
4554
4562
  }
4555
- const _l = (e, t, r, n, i, a) => {
4563
+ const Rl = (e, t, r, n, i, a) => {
4556
4564
  const s = Ko(e), u = Lo(
4557
4565
  e
4558
4566
  ), p = {
@@ -4573,8 +4581,8 @@ const _l = (e, t, r, n, i, a) => {
4573
4581
  }
4574
4582
  };
4575
4583
  return Qr(i) && (p.content || (p.content = {}), p.content.proxy = { enabled: !0 }), p;
4576
- }, Al = (e, t, r, n, i, a, s, u, p, h) => {
4577
- const m = _l(
4584
+ }, _l = (e, t, r, n, i, a, s, u, p, h) => {
4585
+ const m = Rl(
4578
4586
  a,
4579
4587
  n || "",
4580
4588
  u,
@@ -4582,7 +4590,7 @@ const _l = (e, t, r, n, i, a) => {
4582
4590
  p,
4583
4591
  u.backfill
4584
4592
  );
4585
- return m ? Rl({
4593
+ return m ? Tl({
4586
4594
  updateConfig: m,
4587
4595
  projectId: e,
4588
4596
  integrationId: t,
@@ -4592,7 +4600,7 @@ const _l = (e, t, r, n, i, a) => {
4592
4600
  setInstallation: s,
4593
4601
  onUpdateSuccess: h
4594
4602
  }) : (console.error("Error when generating updateConfig from configureState"), Promise.resolve(null));
4595
- }, xl = (e, t) => {
4603
+ }, Al = (e, t) => {
4596
4604
  const n = {
4597
4605
  content: {
4598
4606
  write: {
@@ -4601,8 +4609,8 @@ const _l = (e, t, r, n, i, a) => {
4601
4609
  }
4602
4610
  };
4603
4611
  return Qr(t) && (n.content || (n.content = {}), n.content.proxy = { enabled: !0 }), n;
4604
- }, kl = (e, t, r, n, i, a, s, u) => {
4605
- const p = xl(i, a);
4612
+ }, xl = (e, t, r, n, i, a, s, u) => {
4613
+ const p = Al(i, a);
4606
4614
  if (!p)
4607
4615
  return console.error("Error when generating write updateConfig from configureState"), Promise.resolve(null);
4608
4616
  const h = {
@@ -4629,7 +4637,7 @@ const _l = (e, t, r, n, i, a) => {
4629
4637
  console.error("ERROR: ", m);
4630
4638
  });
4631
4639
  };
4632
- function El({ installation: e, integrationObj: t }) {
4640
+ function kl({ installation: e, integrationObj: t }) {
4633
4641
  const {
4634
4642
  setInstallation: r,
4635
4643
  hydratedRevision: n,
@@ -4665,7 +4673,7 @@ function El({ installation: e, integrationObj: t }) {
4665
4673
  se,
4666
4674
  h
4667
4675
  );
4668
- V.length > 0 || (n && e && a && s && u && D ? (v(!0), Al(
4676
+ V.length > 0 || (n && e && a && s && u && D ? (v(!0), _l(
4669
4677
  u,
4670
4678
  t.id,
4671
4679
  e.id,
@@ -4680,7 +4688,7 @@ function El({ installation: e, integrationObj: t }) {
4680
4688
  v(!1), w(a);
4681
4689
  })) : console.error("UpdateInstallation - onSaveUpdate missing required props"));
4682
4690
  }, M = () => {
4683
- e && a && s && u && n ? (v(!0), kl(
4691
+ e && a && s && u && n ? (v(!0), xl(
4684
4692
  u,
4685
4693
  t.id,
4686
4694
  e.id,
@@ -4704,12 +4712,12 @@ function El({ installation: e, integrationObj: t }) {
4704
4712
  }
4705
4713
  );
4706
4714
  }
4707
- function Fl() {
4715
+ function El() {
4708
4716
  const { integrationObj: e, installation: t } = Ke();
4709
4717
  return e ? t && e ? (
4710
4718
  // If installation exists, render update installation flow
4711
4719
  /* @__PURE__ */ l(
4712
- El,
4720
+ kl,
4713
4721
  {
4714
4722
  installation: t,
4715
4723
  integrationObj: e
@@ -4717,10 +4725,10 @@ function Fl() {
4717
4725
  )
4718
4726
  ) : (
4719
4727
  // No installation, render create installation flow
4720
- /* @__PURE__ */ l(Tl, {})
4728
+ /* @__PURE__ */ l(Nl, {})
4721
4729
  ) : /* @__PURE__ */ l(We, { message: "We can't load the integration" });
4722
4730
  }
4723
- const Pl = (e, t) => ({
4731
+ const Fl = (e, t) => ({
4724
4732
  revisionId: e.id,
4725
4733
  createdBy: `consumer:${t}`,
4726
4734
  content: {
@@ -4730,7 +4738,7 @@ const Pl = (e, t) => ({
4730
4738
  }
4731
4739
  }
4732
4740
  });
4733
- function Dl({
4741
+ function Pl({
4734
4742
  projectId: e,
4735
4743
  integrationId: t,
4736
4744
  groupRef: r,
@@ -4741,7 +4749,7 @@ function Dl({
4741
4749
  setInstallation: u,
4742
4750
  onInstallSuccess: p
4743
4751
  }) {
4744
- const h = Pl(
4752
+ const h = Fl(
4745
4753
  s,
4746
4754
  n
4747
4755
  );
@@ -4756,7 +4764,7 @@ function Dl({
4756
4764
  onInstallSuccess: p
4757
4765
  }) : (console.error("Error when generating createConfig from configureState"), Promise.resolve(null));
4758
4766
  }
4759
- function Kl() {
4767
+ function Dl() {
4760
4768
  return /* @__PURE__ */ A("svg", { width: "48", height: "48", viewBox: "0 0 48 48", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
4761
4769
  /* @__PURE__ */ l("circle", { cx: "24", cy: "24", r: "24", fill: "#BBF7D0" }),
4762
4770
  /* @__PURE__ */ l(
@@ -4788,21 +4796,21 @@ function ta({ text: e }) {
4788
4796
  color: "gray.800",
4789
4797
  fontSize: "md",
4790
4798
  children: [
4791
- /* @__PURE__ */ l(J, { width: "100%", display: "flex", alignContent: "center", justifyContent: "center", children: /* @__PURE__ */ l(J, { margin: "auto", children: /* @__PURE__ */ l(Kl, {}) }) }),
4799
+ /* @__PURE__ */ l(J, { width: "100%", display: "flex", alignContent: "center", justifyContent: "center", children: /* @__PURE__ */ l(J, { margin: "auto", children: /* @__PURE__ */ l(Dl, {}) }) }),
4792
4800
  /* @__PURE__ */ l(J, { textAlign: "center", paddingTop: "25px", children: e })
4793
4801
  ]
4794
4802
  }
4795
4803
  ) });
4796
4804
  }
4797
- function Ll({ provider: e }) {
4805
+ function Kl({ provider: e }) {
4798
4806
  const t = `You have successfully installed your ${vt(e)} integration.`;
4799
4807
  return /* @__PURE__ */ l(ta, { text: t });
4800
4808
  }
4801
- const Bl = (e) => {
4809
+ const Ll = (e) => {
4802
4810
  const { read: t, write: r, proxy: n } = (e == null ? void 0 : e.content) ?? {};
4803
4811
  return !t && !r && (n == null ? void 0 : n.enabled) || !1;
4804
4812
  };
4805
- function Ul({ children: e }) {
4813
+ function Bl({ children: e }) {
4806
4814
  var R;
4807
4815
  const { projectId: t } = ee(), r = te(), { hydratedRevision: n, loading: i } = dr(), {
4808
4816
  integrationObj: a,
@@ -4811,9 +4819,9 @@ function Ul({ children: e }) {
4811
4819
  consumerRef: p,
4812
4820
  setInstallation: h,
4813
4821
  onInstallSuccess: m
4814
- } = Ke(), { selectedConnection: w } = Lt(), [y, I] = k(!1), b = i || y, v = (R = n == null ? void 0 : n.content) == null ? void 0 : R.provider, S = Bl(n);
4822
+ } = Ke(), { selectedConnection: w } = Lt(), [y, I] = k(!1), b = i || y, v = (R = n == null ? void 0 : n.content) == null ? void 0 : R.provider, S = Ll(n);
4815
4823
  return Y(() => {
4816
- !b && n && S && !s && w && r && (a != null && a.id) && (I(!0), Dl({
4824
+ !b && n && S && !s && w && r && (a != null && a.id) && (I(!0), Pl({
4817
4825
  apiKey: r,
4818
4826
  projectId: t,
4819
4827
  integrationId: a == null ? void 0 : a.id,
@@ -4841,9 +4849,9 @@ function Ul({ children: e }) {
4841
4849
  h,
4842
4850
  b,
4843
4851
  m
4844
- ]), a ? b ? /* @__PURE__ */ l(De, {}) : S && v && s ? /* @__PURE__ */ l(Ll, { provider: v }) : /* @__PURE__ */ l("div", { children: e }) : /* @__PURE__ */ l(We, { message: "We can't load the integration" });
4852
+ ]), a ? b ? /* @__PURE__ */ l(De, {}) : S && v && s ? /* @__PURE__ */ l(Kl, { provider: v }) : /* @__PURE__ */ l("div", { children: e }) : /* @__PURE__ */ l(We, { message: "We can't load the integration" });
4845
4853
  }
4846
- function Ml({ children: e }) {
4854
+ function Ul({ children: e }) {
4847
4855
  return /* @__PURE__ */ l(cr, { children: /* @__PURE__ */ l(
4848
4856
  J,
4849
4857
  {
@@ -4862,7 +4870,7 @@ function Ml({ children: e }) {
4862
4870
  }
4863
4871
  ) });
4864
4872
  }
4865
- function $l({ error: e }) {
4873
+ function Ml({ error: e }) {
4866
4874
  return e ? /* @__PURE__ */ A(Xr, { status: "error", marginTop: "2em", children: [
4867
4875
  /* @__PURE__ */ l(Gr, {}),
4868
4876
  /* @__PURE__ */ l(Vr, { children: e })
@@ -4888,7 +4896,7 @@ function ra({ url: e, providerDisplayName: t, credentialName: r }) {
4888
4896
  "."
4889
4897
  ] });
4890
4898
  }
4891
- function jl({
4899
+ function $l({
4892
4900
  provider: e,
4893
4901
  providerInfo: t,
4894
4902
  handleSubmit: r,
@@ -4897,9 +4905,9 @@ function jl({
4897
4905
  }) {
4898
4906
  var v;
4899
4907
  const [a, s] = k(!1), u = () => s(!a), [p, h] = k(""), m = (S) => h(S.currentTarget.value), w = p.length > 0, y = i || !w, I = vt(e, t), b = (v = t.apiKeyOpts) == null ? void 0 : v.docsURL;
4900
- return /* @__PURE__ */ l(Ml, { children: /* @__PURE__ */ A(He, { children: [
4908
+ return /* @__PURE__ */ l(Ul, { children: /* @__PURE__ */ A(He, { children: [
4901
4909
  /* @__PURE__ */ l(rt, { my: "6", children: /* @__PURE__ */ l(Je, { as: "h4", size: "md", children: `Set up ${I} integration` }) }),
4902
- /* @__PURE__ */ l($l, { error: n }),
4910
+ /* @__PURE__ */ l(Ml, { error: n }),
4903
4911
  /* @__PURE__ */ A(Ae, { spacing: 4, children: [
4904
4912
  b && /* @__PURE__ */ l(
4905
4913
  ra,
@@ -4926,6 +4934,7 @@ function jl({
4926
4934
  /* @__PURE__ */ l(
4927
4935
  ne,
4928
4936
  {
4937
+ variant: "primary",
4929
4938
  isDisabled: y,
4930
4939
  width: "100%",
4931
4940
  type: "submit",
@@ -4937,7 +4946,7 @@ function jl({
4937
4946
  )
4938
4947
  ] }) });
4939
4948
  }
4940
- function ql({
4949
+ function jl({
4941
4950
  provider: e,
4942
4951
  providerInfo: t,
4943
4952
  consumerRef: r,
@@ -4982,34 +4991,30 @@ function ql({
4982
4991
  const v = (S) => {
4983
4992
  I(S), w(!0);
4984
4993
  };
4985
- return u === null ? /* @__PURE__ */ l(jl, { provider: e, providerInfo: t, handleSubmit: v, error: null }) : s;
4994
+ return u === null ? /* @__PURE__ */ l($l, { provider: e, providerInfo: t, handleSubmit: v, error: null }) : s;
4986
4995
  }
4987
- function Wl({ children: e }) {
4996
+ function ql({ children: e }) {
4988
4997
  return /* @__PURE__ */ l(cr, { children: /* @__PURE__ */ l(
4989
4998
  J,
4990
4999
  {
4991
5000
  p: 8,
4992
5001
  maxWidth: "600px",
4993
5002
  borderWidth: 1,
4994
- borderRadius: 8,
4995
- boxShadow: "lg",
4996
- textAlign: ["left"],
5003
+ borderRadius: 4,
4997
5004
  margin: "auto",
4998
5005
  marginTop: "40px",
4999
- bgColor: "white",
5000
- color: "gray.800",
5001
5006
  fontSize: "md",
5002
5007
  children: e
5003
5008
  }
5004
5009
  ) });
5005
5010
  }
5006
- function zl({ error: e }) {
5011
+ function Wl({ error: e }) {
5007
5012
  return e ? /* @__PURE__ */ A(Xr, { status: "error", marginTop: "2em", children: [
5008
5013
  /* @__PURE__ */ l(Gr, {}),
5009
5014
  /* @__PURE__ */ l(Vr, { children: e })
5010
5015
  ] }) : null;
5011
5016
  }
5012
- function Jl({
5017
+ function zl({
5013
5018
  provider: e,
5014
5019
  providerInfo: t,
5015
5020
  handleSubmit: r,
@@ -5018,9 +5023,9 @@ function Jl({
5018
5023
  }) {
5019
5024
  var C;
5020
5025
  const [a, s] = k(!1), u = () => s(!a), [p, h] = k(""), [m, w] = k(""), y = (D) => h(D.currentTarget.value), I = (D) => w(D.currentTarget.value), b = vt(e, t), v = (C = t.basicOpts) == null ? void 0 : C.docsURL, S = p.length > 0, R = i || !S;
5021
- return /* @__PURE__ */ l(Wl, { children: /* @__PURE__ */ A(He, { children: [
5026
+ return /* @__PURE__ */ l(ql, { children: /* @__PURE__ */ A(He, { children: [
5022
5027
  /* @__PURE__ */ l(rt, { marginTop: "16", marginBottom: "0", children: /* @__PURE__ */ l(Je, { as: "h4", size: "md", children: `Set up ${b} integration` }) }),
5023
- /* @__PURE__ */ l(zl, { error: n }),
5028
+ /* @__PURE__ */ l(Wl, { error: n }),
5024
5029
  /* @__PURE__ */ l("br", {}),
5025
5030
  /* @__PURE__ */ A(Ae, { spacing: 4, children: [
5026
5031
  v && /* @__PURE__ */ l(
@@ -5049,6 +5054,7 @@ function Jl({
5049
5054
  /* @__PURE__ */ l(
5050
5055
  ne,
5051
5056
  {
5057
+ variant: "primary",
5052
5058
  isDisabled: R,
5053
5059
  width: "100%",
5054
5060
  type: "submit",
@@ -5060,7 +5066,7 @@ function Jl({
5060
5066
  )
5061
5067
  ] }) });
5062
5068
  }
5063
- function Hl({
5069
+ function Jl({
5064
5070
  provider: e,
5065
5071
  providerInfo: t,
5066
5072
  consumerRef: r,
@@ -5109,7 +5115,7 @@ function Hl({
5109
5115
  I({ user: S, pass: R }), w(!0);
5110
5116
  };
5111
5117
  return u === null ? /* @__PURE__ */ l(
5112
- Jl,
5118
+ zl,
5113
5119
  {
5114
5120
  provider: e,
5115
5121
  providerInfo: t,
@@ -5118,16 +5124,16 @@ function Hl({
5118
5124
  }
5119
5125
  ) : s;
5120
5126
  }
5121
- function Xl(e) {
5127
+ function Hl(e) {
5122
5128
  const { selectedConnection: t } = Lt();
5123
5129
  Y(() => {
5124
5130
  e && t && e(t.id);
5125
5131
  }, [e, t]);
5126
5132
  }
5127
- function Gl({ onSuccess: e }) {
5128
- Xl(e);
5133
+ function Xl({ onSuccess: e }) {
5134
+ Hl(e);
5129
5135
  }
5130
- function Vl({ children: e }) {
5136
+ function Gl({ children: e }) {
5131
5137
  return /* @__PURE__ */ l(cr, { children: /* @__PURE__ */ l(
5132
5138
  J,
5133
5139
  {
@@ -5146,25 +5152,26 @@ function Vl({ children: e }) {
5146
5152
  }
5147
5153
  ) });
5148
5154
  }
5149
- function Yl({ error: e }) {
5155
+ function Vl({ error: e }) {
5150
5156
  return e ? /* @__PURE__ */ A(Xr, { status: "error", marginTop: "2em", children: [
5151
5157
  /* @__PURE__ */ l(Gr, {}),
5152
5158
  /* @__PURE__ */ l(Vr, { children: e })
5153
5159
  ] }) : null;
5154
5160
  }
5155
- function Zl({
5161
+ function Yl({
5156
5162
  handleSubmit: e,
5157
5163
  error: t,
5158
5164
  isButtonDisabled: r,
5159
5165
  providerName: n
5160
5166
  }) {
5161
- return /* @__PURE__ */ l(Vl, { children: /* @__PURE__ */ A(He, { children: [
5167
+ return /* @__PURE__ */ l(Gl, { children: /* @__PURE__ */ A(He, { children: [
5162
5168
  /* @__PURE__ */ l(rt, { marginTop: "16", marginBottom: "0", children: /* @__PURE__ */ l(Je, { as: "h4", size: "md", children: `Set up ${n} integration` }) }),
5163
- /* @__PURE__ */ l(Yl, { error: t }),
5169
+ /* @__PURE__ */ l(Vl, { error: t }),
5164
5170
  /* @__PURE__ */ l("br", {}),
5165
5171
  /* @__PURE__ */ l(
5166
5172
  ne,
5167
5173
  {
5174
+ variant: "primary",
5168
5175
  isDisabled: r,
5169
5176
  width: "100%",
5170
5177
  type: "submit",
@@ -5174,7 +5181,7 @@ function Zl({
5174
5181
  )
5175
5182
  ] }) });
5176
5183
  }
5177
- function Ql({
5184
+ function Zl({
5178
5185
  provider: e,
5179
5186
  consumerRef: t,
5180
5187
  consumerName: r,
@@ -5207,7 +5214,7 @@ function Ql({
5207
5214
  const I = () => {
5208
5215
  y(!0);
5209
5216
  };
5210
- return s === null ? /* @__PURE__ */ l(Zl, { handleSubmit: I, error: null, providerName: p }) : a;
5217
+ return s === null ? /* @__PURE__ */ l(Yl, { handleSubmit: I, error: null, providerName: p }) : a;
5211
5218
  }
5212
5219
  function lr({ children: e }) {
5213
5220
  return /* @__PURE__ */ l(cr, { children: /* @__PURE__ */ l(
@@ -5234,7 +5241,7 @@ function ur({ error: e }) {
5234
5241
  /* @__PURE__ */ l(Vr, { children: e })
5235
5242
  ] }) : null;
5236
5243
  }
5237
- function eu({
5244
+ function Ql({
5238
5245
  handleSubmit: e,
5239
5246
  error: t,
5240
5247
  explicitScopesRequired: r,
@@ -5278,6 +5285,7 @@ function eu({
5278
5285
  /* @__PURE__ */ l(
5279
5286
  ne,
5280
5287
  {
5288
+ variant: "primary",
5281
5289
  isDisabled: D,
5282
5290
  width: "100%",
5283
5291
  type: "submit",
@@ -5287,7 +5295,7 @@ function eu({
5287
5295
  )
5288
5296
  ] }) });
5289
5297
  }
5290
- function tu({
5298
+ function eu({
5291
5299
  provider: e,
5292
5300
  consumerRef: t,
5293
5301
  consumerName: r,
@@ -5321,7 +5329,7 @@ function tu({
5321
5329
  });
5322
5330
  };
5323
5331
  return u === null ? /* @__PURE__ */ l(
5324
- eu,
5332
+ Ql,
5325
5333
  {
5326
5334
  providerName: s,
5327
5335
  handleSubmit: I,
@@ -5358,8 +5366,8 @@ const na = async (e, t, r, n, i, a, s, u) => {
5358
5366
  return await X().oAuthApi.oauthConnect(I);
5359
5367
  }
5360
5368
  throw new Error(`Provider ${i} does not support an OAuth2 web flow.`);
5361
- }, Hi = 600, Xi = 600, ru = "AUTHORIZATION_SUCCEEDED", nu = "AUTHORIZATION_FAILED";
5362
- function iu(e, t, r) {
5369
+ }, Hi = 600, Xi = 600, tu = "AUTHORIZATION_SUCCEEDED", ru = "AUTHORIZATION_FAILED";
5370
+ function nu(e, t, r) {
5363
5371
  return Q(async (n) => {
5364
5372
  const i = await X().connectionApi.getConnection({ projectIdOrName: e, connectionId: n }, {
5365
5373
  headers: { "X-Api-Key": t ?? "" }
@@ -5367,22 +5375,22 @@ function iu(e, t, r) {
5367
5375
  r(i);
5368
5376
  }, [e, t, r]);
5369
5377
  }
5370
- function ou(e, t, r, n) {
5378
+ function iu(e, t, r, n) {
5371
5379
  return Q(() => {
5372
5380
  if (!n) return;
5373
5381
  const i = window.screenX + (window.outerWidth - Hi) / 2, a = window.screenY + (window.outerHeight - Xi) / 2.5, s = `width=${Hi},height=${Xi},left=${i},top=${a}`, u = window.open(n, e, s);
5374
5382
  t(u), window.addEventListener("message", r, !1);
5375
5383
  }, [n, e, t, r]);
5376
5384
  }
5377
- function au(e) {
5385
+ function ou(e) {
5378
5386
  return Q((t) => {
5379
5387
  var r;
5380
- if (t.origin === Sd) {
5381
- if (t.data.eventType === ru) {
5388
+ if (t.origin === bd) {
5389
+ if (t.data.eventType === tu) {
5382
5390
  const n = (r = t.data.data) == null ? void 0 : r.connection;
5383
5391
  n ? e(n) : console.error("Connection ID not found in event data: ", { event: t });
5384
5392
  }
5385
- t.data.eventType === nu && console.error("OAuth failed: ", { event: t });
5393
+ t.data.eventType === ru && console.error("OAuth failed: ", { event: t });
5386
5394
  }
5387
5395
  }, [e]);
5388
5396
  }
@@ -5392,7 +5400,7 @@ function ia({
5392
5400
  windowTitle: r = "Connect to Provider",
5393
5401
  onClose: n
5394
5402
  }) {
5395
- const i = te(), { projectId: a } = ee(), [s, u] = k(null), [p, h] = k(null), { setSelectedConnection: m } = Lt(), w = au(u), y = ou(r, h, w, t), I = iu(a, i, m);
5403
+ const i = te(), { projectId: a } = ee(), [s, u] = k(null), [p, h] = k(null), { setSelectedConnection: m } = Lt(), w = ou(u), y = iu(r, h, w, t), I = nu(a, i, m);
5396
5404
  Y(() => {
5397
5405
  t && !p && y();
5398
5406
  }, [t, p, y, w, r]), Y(() => {
@@ -5407,7 +5415,7 @@ function ia({
5407
5415
  }, 500);
5408
5416
  return /* @__PURE__ */ l("div", { children: e });
5409
5417
  }
5410
- function su({
5418
+ function au({
5411
5419
  handleSubmit: e,
5412
5420
  error: t,
5413
5421
  isButtonDisabled: r,
@@ -5420,6 +5428,7 @@ function su({
5420
5428
  /* @__PURE__ */ l(
5421
5429
  ne,
5422
5430
  {
5431
+ variant: "primary",
5423
5432
  isDisabled: r,
5424
5433
  width: "100%",
5425
5434
  type: "submit",
@@ -5429,7 +5438,7 @@ function su({
5429
5438
  )
5430
5439
  ] }) });
5431
5440
  }
5432
- function cu({
5441
+ function su({
5433
5442
  provider: e,
5434
5443
  consumerRef: t,
5435
5444
  consumerName: r,
@@ -5463,11 +5472,11 @@ function cu({
5463
5472
  windowTitle: `Connect to ${a}`,
5464
5473
  oauthUrl: p,
5465
5474
  onClose: I,
5466
- children: /* @__PURE__ */ l(su, { handleSubmit: y, error: m, providerName: a })
5475
+ children: /* @__PURE__ */ l(au, { handleSubmit: y, error: m, providerName: a })
5467
5476
  }
5468
5477
  );
5469
5478
  }
5470
- function du({
5479
+ function cu({
5471
5480
  handleSubmit: e,
5472
5481
  error: t,
5473
5482
  isButtonDisabled: r,
@@ -5519,6 +5528,7 @@ function du({
5519
5528
  /* @__PURE__ */ l(
5520
5529
  ne,
5521
5530
  {
5531
+ variant: "primary",
5522
5532
  isDisabled: H,
5523
5533
  width: "100%",
5524
5534
  type: "submit",
@@ -5528,7 +5538,7 @@ function du({
5528
5538
  )
5529
5539
  ] }) });
5530
5540
  }
5531
- function lu({
5541
+ function du({
5532
5542
  provider: e,
5533
5543
  providerName: t,
5534
5544
  consumerRef: r,
@@ -5563,7 +5573,7 @@ function lu({
5563
5573
  });
5564
5574
  };
5565
5575
  return u === null ? /* @__PURE__ */ l(
5566
- du,
5576
+ cu,
5567
5577
  {
5568
5578
  providerName: t,
5569
5579
  handleSubmit: I,
@@ -5572,9 +5582,9 @@ function lu({
5572
5582
  }
5573
5583
  ) : /* @__PURE__ */ l(De, {});
5574
5584
  }
5575
- function uu() {
5585
+ function lu() {
5576
5586
  const e = ve(
5577
- Na
5587
+ Ca
5578
5588
  );
5579
5589
  if (!e)
5580
5590
  throw Error(
@@ -5590,19 +5600,19 @@ function aa() {
5590
5600
  throw new Error("useColorMode must be used within a ColorModeProvider");
5591
5601
  return e;
5592
5602
  }
5593
- function pu() {
5594
- const e = aa(), t = uu();
5603
+ function uu() {
5604
+ const e = aa(), t = lu();
5595
5605
  return { ...e, theme: t };
5596
5606
  }
5597
- var fu = (...e) => e.filter(Boolean).join(" ");
5607
+ var pu = (...e) => e.filter(Boolean).join(" ");
5598
5608
  function mt(e) {
5599
5609
  const t = typeof e;
5600
5610
  return e != null && (t === "object" || t === "function") && !Array.isArray(e);
5601
5611
  }
5602
5612
  function gt(e, ...t) {
5603
- return hu(e) ? e(...t) : e;
5613
+ return fu(e) ? e(...t) : e;
5604
5614
  }
5605
- var hu = (e) => typeof e == "function", zr = { exports: {} };
5615
+ var fu = (e) => typeof e == "function", zr = { exports: {} };
5606
5616
  zr.exports;
5607
5617
  (function(e, t) {
5608
5618
  var r = 200, n = "__lodash_hash_undefined__", i = 800, a = 16, s = 9007199254740991, u = "[object Arguments]", p = "[object Array]", h = "[object AsyncFunction]", m = "[object Boolean]", w = "[object Date]", y = "[object Error]", I = "[object Function]", b = "[object GeneratorFunction]", v = "[object Map]", S = "[object Number]", R = "[object Null]", C = "[object Object]", D = "[object Proxy]", U = "[object RegExp]", M = "[object Set]", ie = "[object String]", H = "[object Undefined]", se = "[object WeakMap]", V = "[object ArrayBuffer]", be = "[object DataView]", Le = "[object Float32Array]", bt = "[object Float64Array]", sn = "[object Int8Array]", cn = "[object Int16Array]", dn = "[object Int32Array]", ln = "[object Uint8Array]", un = "[object Uint8ClampedArray]", pn = "[object Uint16Array]", fn = "[object Uint32Array]", hn = /[\\^$.*+?()[\]{}|]/g, gn = /^\[object .+?Constructor\]$/, mn = /^(?:0|[1-9]\d*)$/, $ = {};
@@ -6078,10 +6088,10 @@ zr.exports;
6078
6088
  }
6079
6089
  e.exports = ii;
6080
6090
  })(zr, zr.exports);
6081
- var gu = zr.exports;
6082
- const qe = /* @__PURE__ */ Ni(gu);
6083
- var mu = (e) => /!(important)?$/.test(e), Gi = (e) => typeof e == "string" ? e.replace(/!(important)?$/, "").trim() : e, yu = (e, t) => (r) => {
6084
- const n = String(t), i = mu(n), a = Gi(n), s = e ? `${e}.${a}` : a;
6091
+ var hu = zr.exports;
6092
+ const qe = /* @__PURE__ */ Ni(hu);
6093
+ var gu = (e) => /!(important)?$/.test(e), Gi = (e) => typeof e == "string" ? e.replace(/!(important)?$/, "").trim() : e, mu = (e, t) => (r) => {
6094
+ const n = String(t), i = gu(n), a = Gi(n), s = e ? `${e}.${a}` : a;
6085
6095
  let u = mt(r.__cssMap) && s in r.__cssMap ? r.__cssMap[s].varRef : t;
6086
6096
  return u = Gi(u), i ? `${u} !important` : u;
6087
6097
  };
@@ -6089,7 +6099,7 @@ function ki(e) {
6089
6099
  const { scale: t, transform: r, compose: n } = e;
6090
6100
  return (a, s) => {
6091
6101
  var u;
6092
- const p = yu(t, a)(s);
6102
+ const p = mu(t, a)(s);
6093
6103
  let h = (u = r == null ? void 0 : r(p, s)) != null ? u : p;
6094
6104
  return n && (h = n(h, s)), h;
6095
6105
  };
@@ -6104,12 +6114,12 @@ function me(e, t) {
6104
6114
  }), n;
6105
6115
  };
6106
6116
  }
6107
- var wu = ({ rtl: e, ltr: t }) => (r) => r.direction === "rtl" ? e : t;
6108
- function Iu(e) {
6117
+ var yu = ({ rtl: e, ltr: t }) => (r) => r.direction === "rtl" ? e : t;
6118
+ function wu(e) {
6109
6119
  const { property: t, scale: r, transform: n } = e;
6110
6120
  return {
6111
6121
  scale: r,
6112
- property: wu(t),
6122
+ property: yu(t),
6113
6123
  transform: r ? ki({
6114
6124
  scale: r,
6115
6125
  compose: n
@@ -6123,20 +6133,20 @@ var sa = [
6123
6133
  "skewX(var(--chakra-skew-x, 0))",
6124
6134
  "skewY(var(--chakra-skew-y, 0))"
6125
6135
  ];
6126
- function vu() {
6136
+ function Iu() {
6127
6137
  return [
6128
6138
  "translateX(var(--chakra-translate-x, 0))",
6129
6139
  "translateY(var(--chakra-translate-y, 0))",
6130
6140
  ...sa
6131
6141
  ].join(" ");
6132
6142
  }
6133
- function bu() {
6143
+ function vu() {
6134
6144
  return [
6135
6145
  "translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",
6136
6146
  ...sa
6137
6147
  ].join(" ");
6138
6148
  }
6139
- var Su = {
6149
+ var bu = {
6140
6150
  "--chakra-blur": "var(--chakra-empty,/*!*/ /*!*/)",
6141
6151
  "--chakra-brightness": "var(--chakra-empty,/*!*/ /*!*/)",
6142
6152
  "--chakra-contrast": "var(--chakra-empty,/*!*/ /*!*/)",
@@ -6157,7 +6167,7 @@ var Su = {
6157
6167
  "var(--chakra-sepia)",
6158
6168
  "var(--chakra-drop-shadow)"
6159
6169
  ].join(" ")
6160
- }, Ou = {
6170
+ }, Su = {
6161
6171
  backdropFilter: [
6162
6172
  "var(--chakra-backdrop-blur)",
6163
6173
  "var(--chakra-backdrop-brightness)",
@@ -6179,7 +6189,7 @@ var Su = {
6179
6189
  "--chakra-backdrop-saturate": "var(--chakra-empty,/*!*/ /*!*/)",
6180
6190
  "--chakra-backdrop-sepia": "var(--chakra-empty,/*!*/ /*!*/)"
6181
6191
  };
6182
- function Cu(e) {
6192
+ function Ou(e) {
6183
6193
  return {
6184
6194
  "--chakra-ring-offset-shadow": "var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)",
6185
6195
  "--chakra-ring-shadow": "var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)",
@@ -6191,7 +6201,7 @@ function Cu(e) {
6191
6201
  ].join(", ")
6192
6202
  };
6193
6203
  }
6194
- var Nu = {
6204
+ var Cu = {
6195
6205
  "row-reverse": {
6196
6206
  space: "--chakra-space-x-reverse",
6197
6207
  divide: "--chakra-divide-x-reverse"
@@ -6209,15 +6219,15 @@ var Nu = {
6209
6219
  "to-bl": "to bottom left",
6210
6220
  "to-l": "to left",
6211
6221
  "to-tl": "to top left"
6212
- }, Tu = new Set(Object.values(yi)), wi = /* @__PURE__ */ new Set([
6222
+ }, Nu = new Set(Object.values(yi)), wi = /* @__PURE__ */ new Set([
6213
6223
  "none",
6214
6224
  "-moz-initial",
6215
6225
  "inherit",
6216
6226
  "initial",
6217
6227
  "revert",
6218
6228
  "unset"
6219
- ]), Ru = (e) => e.trim();
6220
- function _u(e, t) {
6229
+ ]), Tu = (e) => e.trim();
6230
+ function Ru(e, t) {
6221
6231
  if (e == null || wi.has(e))
6222
6232
  return e;
6223
6233
  if (!(Ii(e) || wi.has(e)))
@@ -6225,13 +6235,13 @@ function _u(e, t) {
6225
6235
  const i = /(^[a-z-A-Z]+)\((.*)\)/g.exec(e), a = i == null ? void 0 : i[1], s = i == null ? void 0 : i[2];
6226
6236
  if (!a || !s)
6227
6237
  return e;
6228
- const u = a.includes("-gradient") ? a : `${a}-gradient`, [p, ...h] = s.split(",").map(Ru).filter(Boolean);
6238
+ const u = a.includes("-gradient") ? a : `${a}-gradient`, [p, ...h] = s.split(",").map(Tu).filter(Boolean);
6229
6239
  if ((h == null ? void 0 : h.length) === 0)
6230
6240
  return e;
6231
6241
  const m = p in yi ? yi[p] : p;
6232
6242
  h.unshift(m);
6233
6243
  const w = h.map((y) => {
6234
- if (Tu.has(y))
6244
+ if (Nu.has(y))
6235
6245
  return y;
6236
6246
  const I = y.indexOf(" "), [b, v] = I !== -1 ? [y.substr(0, I), y.substr(I + 1)] : [y], S = Ii(v) ? v : v && v.split(" "), R = `colors.${b}`, C = R in t.__cssMap ? t.__cssMap[R].varRef : b;
6237
6247
  return S ? [
@@ -6241,28 +6251,28 @@ function _u(e, t) {
6241
6251
  });
6242
6252
  return `${u}(${w.join(", ")})`;
6243
6253
  }
6244
- var Ii = (e) => typeof e == "string" && e.includes("(") && e.includes(")"), Au = (e, t) => _u(e, t ?? {});
6245
- function xu(e) {
6254
+ var Ii = (e) => typeof e == "string" && e.includes("(") && e.includes(")"), _u = (e, t) => Ru(e, t ?? {});
6255
+ function Au(e) {
6246
6256
  return /^var\(--.+\)$/.test(e);
6247
6257
  }
6248
- var ku = (e) => {
6258
+ var xu = (e) => {
6249
6259
  const t = parseFloat(e.toString()), r = e.toString().replace(String(t), "");
6250
6260
  return { unitless: !r, value: t, unit: r };
6251
6261
  }, Fe = (e) => (t) => `${e}(${t})`, K = {
6252
6262
  filter(e) {
6253
- return e !== "auto" ? e : Su;
6263
+ return e !== "auto" ? e : bu;
6254
6264
  },
6255
6265
  backdropFilter(e) {
6256
- return e !== "auto" ? e : Ou;
6266
+ return e !== "auto" ? e : Su;
6257
6267
  },
6258
6268
  ring(e) {
6259
- return Cu(K.px(e));
6269
+ return Ou(K.px(e));
6260
6270
  },
6261
6271
  bgClip(e) {
6262
6272
  return e === "text" ? { color: "transparent", backgroundClip: "text" } : { backgroundClip: e };
6263
6273
  },
6264
6274
  transform(e) {
6265
- return e === "auto" ? vu() : e === "auto-gpu" ? bu() : e;
6275
+ return e === "auto" ? Iu() : e === "auto-gpu" ? vu() : e;
6266
6276
  },
6267
6277
  vh(e) {
6268
6278
  return e === "$100vh" ? "var(--chakra-vh)" : e;
@@ -6270,7 +6280,7 @@ var ku = (e) => {
6270
6280
  px(e) {
6271
6281
  if (e == null)
6272
6282
  return e;
6273
- const { unitless: t } = ku(e);
6283
+ const { unitless: t } = xu(e);
6274
6284
  return t || typeof e == "number" ? `${e}px` : e;
6275
6285
  },
6276
6286
  fraction(e) {
@@ -6281,12 +6291,12 @@ var ku = (e) => {
6281
6291
  return t.direction === "rtl" ? r[e] : e;
6282
6292
  },
6283
6293
  degree(e) {
6284
- if (xu(e) || e == null)
6294
+ if (Au(e) || e == null)
6285
6295
  return e;
6286
6296
  const t = typeof e == "string" && !e.endsWith("deg");
6287
6297
  return typeof e == "number" || t ? `${e}deg` : e;
6288
6298
  },
6289
- gradient: Au,
6299
+ gradient: _u,
6290
6300
  blur: Fe("blur"),
6291
6301
  opacity: Fe("opacity"),
6292
6302
  brightness: Fe("brightness"),
@@ -6306,7 +6316,7 @@ var ku = (e) => {
6306
6316
  },
6307
6317
  flexDirection(e) {
6308
6318
  var t;
6309
- const { space: r, divide: n } = (t = Nu[e]) != null ? t : {}, i = { flexDirection: e };
6319
+ const { space: r, divide: n } = (t = Cu[e]) != null ? t : {}, i = { flexDirection: e };
6310
6320
  return r && (i[r] = 1), n && (i[n] = 1), i;
6311
6321
  }
6312
6322
  }, g = {
@@ -6336,7 +6346,7 @@ var ku = (e) => {
6336
6346
  sizes: me("sizes", Fr(K.vh, K.px)),
6337
6347
  sizesT: me("sizes", Fr(K.vh, K.fraction)),
6338
6348
  shadows: me("shadows"),
6339
- logical: Iu,
6349
+ logical: wu,
6340
6350
  blur: me("blur", K.blur)
6341
6351
  }, Kr = {
6342
6352
  background: g.colors("background"),
@@ -6494,7 +6504,7 @@ Object.assign(L, {
6494
6504
  borderStartStyle: L.borderInlineStartStyle,
6495
6505
  borderEndStyle: L.borderInlineEndStyle
6496
6506
  });
6497
- var Eu = {
6507
+ var ku = {
6498
6508
  color: g.colors("color"),
6499
6509
  textColor: g.colors("color"),
6500
6510
  fill: g.colors("fill"),
@@ -6510,7 +6520,7 @@ var Eu = {
6510
6520
  Object.assign(vi, {
6511
6521
  shadow: vi.boxShadow
6512
6522
  });
6513
- var Fu = {
6523
+ var Eu = {
6514
6524
  filter: { transform: K.filter },
6515
6525
  blur: g.blur("--chakra-blur"),
6516
6526
  brightness: g.propT("--chakra-brightness", K.brightness),
@@ -6575,7 +6585,7 @@ var ca = {
6575
6585
  gridTemplateRows: !0,
6576
6586
  gridTemplateAreas: !0,
6577
6587
  gridArea: !0
6578
- }, Pu = {
6588
+ }, Fu = {
6579
6589
  appearance: !0,
6580
6590
  cursor: !0,
6581
6591
  resize: !0,
@@ -6640,20 +6650,20 @@ Object.assign(ye, {
6640
6650
  overscrollX: ye.overscrollBehaviorX,
6641
6651
  overscrollY: ye.overscrollBehaviorY
6642
6652
  });
6643
- var Du = {
6653
+ var Pu = {
6644
6654
  listStyleType: !0,
6645
6655
  listStylePosition: !0,
6646
6656
  listStylePos: g.prop("listStylePosition"),
6647
6657
  listStyleImage: !0,
6648
6658
  listStyleImg: g.prop("listStyleImage")
6649
6659
  };
6650
- function Ku(e, t, r, n) {
6660
+ function Du(e, t, r, n) {
6651
6661
  const i = typeof t == "string" ? t.split(".") : [t];
6652
6662
  for (n = 0; n < i.length && e; n += 1)
6653
6663
  e = e[i[n]];
6654
6664
  return e === void 0 ? r : e;
6655
6665
  }
6656
- var Lu = (e) => {
6666
+ var Ku = (e) => {
6657
6667
  const t = /* @__PURE__ */ new WeakMap();
6658
6668
  return (n, i, a, s) => {
6659
6669
  if (typeof n > "u")
@@ -6665,7 +6675,7 @@ var Lu = (e) => {
6665
6675
  const p = e(n, i, a, s);
6666
6676
  return u.set(i, p), p;
6667
6677
  };
6668
- }, Bu = Lu(Ku), Uu = {
6678
+ }, Lu = Ku(Du), Bu = {
6669
6679
  border: "0px",
6670
6680
  clip: "rect(0, 0, 0, 0)",
6671
6681
  width: "1px",
@@ -6675,7 +6685,7 @@ var Lu = (e) => {
6675
6685
  overflow: "hidden",
6676
6686
  whiteSpace: "nowrap",
6677
6687
  position: "absolute"
6678
- }, Mu = {
6688
+ }, Uu = {
6679
6689
  position: "static",
6680
6690
  width: "auto",
6681
6691
  height: "auto",
@@ -6685,14 +6695,14 @@ var Lu = (e) => {
6685
6695
  overflow: "visible",
6686
6696
  whiteSpace: "normal"
6687
6697
  }, di = (e, t, r) => {
6688
- const n = {}, i = Bu(e, t, {});
6698
+ const n = {}, i = Lu(e, t, {});
6689
6699
  for (const a in i)
6690
6700
  a in r && r[a] != null || (n[a] = i[a]);
6691
6701
  return n;
6692
- }, $u = {
6702
+ }, Mu = {
6693
6703
  srOnly: {
6694
6704
  transform(e) {
6695
- return e === !0 ? Uu : e === "focusable" ? Mu : {};
6705
+ return e === !0 ? Bu : e === "focusable" ? Uu : {};
6696
6706
  }
6697
6707
  },
6698
6708
  layerStyle: {
@@ -6735,7 +6745,7 @@ Object.assign(or, {
6735
6745
  insetStart: or.insetInlineStart,
6736
6746
  insetEnd: or.insetInlineEnd
6737
6747
  });
6738
- var ju = {
6748
+ var $u = {
6739
6749
  ring: { transform: K.ring },
6740
6750
  ringColor: g.colors("--chakra-ring-color"),
6741
6751
  ringOffset: g.prop("--chakra-ring-offset-width"),
@@ -6793,7 +6803,7 @@ Object.assign(z, {
6793
6803
  pe: z.paddingInlineEnd,
6794
6804
  paddingEnd: z.paddingInlineEnd
6795
6805
  });
6796
- var qu = {
6806
+ var ju = {
6797
6807
  textDecorationColor: g.colors("textDecorationColor"),
6798
6808
  textDecoration: !0,
6799
6809
  textDecor: { property: "textDecoration" },
@@ -6802,7 +6812,7 @@ var qu = {
6802
6812
  textDecorationThickness: !0,
6803
6813
  textUnderlineOffset: !0,
6804
6814
  textShadow: g.shadows("textShadow")
6805
- }, Wu = {
6815
+ }, qu = {
6806
6816
  clipPath: !0,
6807
6817
  transform: g.propT("transform", K.transform),
6808
6818
  transformOrigin: !0,
@@ -6814,7 +6824,7 @@ var qu = {
6814
6824
  scaleY: g.prop("--chakra-scale-y"),
6815
6825
  scale: g.prop(["--chakra-scale-x", "--chakra-scale-y"]),
6816
6826
  rotate: g.degreeT("--chakra-rotate")
6817
- }, zu = {
6827
+ }, Wu = {
6818
6828
  transition: !0,
6819
6829
  transitionDelay: !0,
6820
6830
  animation: !0,
@@ -6825,7 +6835,7 @@ var qu = {
6825
6835
  "transitionTimingFunction",
6826
6836
  "transition.easing"
6827
6837
  )
6828
- }, Ju = {
6838
+ }, zu = {
6829
6839
  fontFamily: g.prop("fontFamily", "fonts"),
6830
6840
  fontSize: g.prop("fontSize", "fontSizes", K.px),
6831
6841
  fontWeight: g.prop("fontWeight", "fontWeights"),
@@ -6860,7 +6870,7 @@ var qu = {
6860
6870
  },
6861
6871
  property: "--chakra-line-clamp"
6862
6872
  }
6863
- }, Hu = {
6873
+ }, Ju = {
6864
6874
  scrollBehavior: !0,
6865
6875
  scrollSnapAlign: !0,
6866
6876
  scrollSnapStop: !0,
@@ -6905,17 +6915,17 @@ var an = (e, ...t) => t.map(da).join(` ${e} `).replace(/calc/g, ""), Vi = (...e)
6905
6915
  negate: Qi
6906
6916
  }
6907
6917
  );
6908
- function Xu(e) {
6918
+ function Hu(e) {
6909
6919
  const t = parseFloat(e.toString()), r = e.toString().replace(String(t), "");
6910
6920
  return { unitless: !r, value: t, unit: r };
6911
6921
  }
6912
6922
  function eo(e) {
6913
6923
  if (e == null)
6914
6924
  return e;
6915
- const { unitless: t } = Xu(e);
6925
+ const { unitless: t } = Hu(e);
6916
6926
  return t || typeof e == "number" ? `${e}px` : e;
6917
6927
  }
6918
- function Gu(e, t) {
6928
+ function Xu(e, t) {
6919
6929
  const r = ["@media screen"];
6920
6930
  return e && r.push("and", `(min-width: ${eo(e)})`), t && r.push("and", `(max-width: ${eo(t)})`), r.join(" ");
6921
6931
  }
@@ -7220,32 +7230,32 @@ var re = {
7220
7230
  * Styles for the CSS Selector `&[data-orientation=vertical]`
7221
7231
  */
7222
7232
  _vertical: "&[data-orientation=vertical]"
7223
- }, Vu = Object.keys(
7233
+ }, Gu = Object.keys(
7224
7234
  Ei
7225
7235
  ), Fi = qe(
7226
7236
  {},
7227
7237
  Kr,
7228
7238
  L,
7229
- Eu,
7239
+ ku,
7230
7240
  Jr,
7231
7241
  ye,
7242
+ Eu,
7243
+ $u,
7232
7244
  Fu,
7233
- ju,
7234
- Pu,
7235
7245
  ca,
7236
- $u,
7246
+ Mu,
7237
7247
  or,
7238
7248
  vi,
7239
7249
  z,
7240
- Hu,
7241
7250
  Ju,
7251
+ zu,
7252
+ ju,
7242
7253
  qu,
7243
- Wu,
7244
- Du,
7245
- zu
7254
+ Pu,
7255
+ Wu
7246
7256
  );
7247
7257
  Object.assign({}, z, ye, Jr, ca, or);
7248
- var Yu = [...Object.keys(Fi), ...Vu], Zu = { ...Fi, ...Ei }, Qu = (e) => e in Zu, ep = (e) => (t) => {
7258
+ var Vu = [...Object.keys(Fi), ...Gu], Yu = { ...Fi, ...Ei }, Zu = (e) => e in Yu, Qu = (e) => (t) => {
7249
7259
  if (!t.__breakpoints)
7250
7260
  return e;
7251
7261
  const { isResponsive: r, toArrayValue: n, media: i } = t.__breakpoints, a = {};
@@ -7269,7 +7279,7 @@ var Yu = [...Object.keys(Fi), ...Vu], Zu = { ...Fi, ...Ei }, Qu = (e) => e in Zu
7269
7279
  }
7270
7280
  return a;
7271
7281
  };
7272
- function tp(e) {
7282
+ function ep(e) {
7273
7283
  const t = [];
7274
7284
  let r = "", n = !1;
7275
7285
  for (let i = 0; i < e.length; i++) {
@@ -7278,10 +7288,10 @@ function tp(e) {
7278
7288
  }
7279
7289
  return r = r.trim(), r && t.push(r), t;
7280
7290
  }
7281
- function rp(e) {
7291
+ function tp(e) {
7282
7292
  return /^var\(--.+\)$/.test(e);
7283
7293
  }
7284
- var np = (e, t) => e.startsWith("--") && typeof t == "string" && !rp(t), ip = (e, t) => {
7294
+ var rp = (e, t) => e.startsWith("--") && typeof t == "string" && !tp(t), np = (e, t) => {
7285
7295
  var r, n;
7286
7296
  if (t == null)
7287
7297
  return t;
@@ -7291,18 +7301,18 @@ var np = (e, t) => e.startsWith("--") && typeof t == "string" && !rp(t), ip = (e
7291
7301
  }, a = (p) => {
7292
7302
  var h;
7293
7303
  return (h = i(p)) != null ? h : p;
7294
- }, [s, u] = tp(t);
7304
+ }, [s, u] = ep(t);
7295
7305
  return t = (n = (r = i(s)) != null ? r : a(u)) != null ? n : a(t), t;
7296
7306
  };
7297
- function op(e) {
7307
+ function ip(e) {
7298
7308
  const { configs: t = {}, pseudos: r = {}, theme: n } = e, i = (a, s = !1) => {
7299
7309
  var u, p, h;
7300
- const m = gt(a, n), w = ep(m)(n);
7310
+ const m = gt(a, n), w = Qu(m)(n);
7301
7311
  let y = {};
7302
7312
  for (let I in w) {
7303
7313
  const b = w[I];
7304
7314
  let v = gt(b, n);
7305
- I in r && (I = r[I]), np(I, v) && (v = ip(n, v));
7315
+ I in r && (I = r[I]), rp(I, v) && (v = np(n, v));
7306
7316
  let S = t[I];
7307
7317
  if (S === !0 && (S = { property: I }), mt(v)) {
7308
7318
  y[I] = (u = y[I]) != null ? u : {}, y[I] = qe(
@@ -7338,12 +7348,12 @@ function op(e) {
7338
7348
  };
7339
7349
  return i;
7340
7350
  }
7341
- var ap = (e) => (t) => op({
7351
+ var op = (e) => (t) => ip({
7342
7352
  theme: t,
7343
7353
  pseudos: Ei,
7344
7354
  configs: Fi
7345
7355
  })(e);
7346
- function sp(e, t) {
7356
+ function ap(e, t) {
7347
7357
  if (Array.isArray(e))
7348
7358
  return e;
7349
7359
  if (mt(e))
@@ -7351,24 +7361,24 @@ function sp(e, t) {
7351
7361
  if (e != null)
7352
7362
  return [e];
7353
7363
  }
7354
- function cp(e, t) {
7364
+ function sp(e, t) {
7355
7365
  for (let r = t + 1; r < e.length; r++)
7356
7366
  if (e[r] != null)
7357
7367
  return r;
7358
7368
  return -1;
7359
7369
  }
7360
- function dp(e) {
7370
+ function cp(e) {
7361
7371
  const t = e.__breakpoints;
7362
7372
  return function(n, i, a, s) {
7363
7373
  var u, p;
7364
7374
  if (!t)
7365
7375
  return;
7366
- const h = {}, m = sp(a, t.toArrayValue);
7376
+ const h = {}, m = ap(a, t.toArrayValue);
7367
7377
  if (!m)
7368
7378
  return h;
7369
7379
  const w = m.length, y = w === 1, I = !!n.parts;
7370
7380
  for (let b = 0; b < w; b++) {
7371
- const v = t.details[b], S = t.details[cp(m, b)], R = Gu(v.minW, S == null ? void 0 : S._minW), C = gt((u = n[i]) == null ? void 0 : u[m[b]], s);
7381
+ const v = t.details[b], S = t.details[sp(m, b)], R = Xu(v.minW, S == null ? void 0 : S._minW), C = gt((u = n[i]) == null ? void 0 : u[m[b]], s);
7372
7382
  if (C) {
7373
7383
  if (I) {
7374
7384
  (p = n.parts) == null || p.forEach((D) => {
@@ -7388,10 +7398,10 @@ function dp(e) {
7388
7398
  return h;
7389
7399
  };
7390
7400
  }
7391
- function lp(e) {
7401
+ function dp(e) {
7392
7402
  return (t) => {
7393
7403
  var r;
7394
- const { variant: n, size: i, theme: a } = t, s = dp(a);
7404
+ const { variant: n, size: i, theme: a } = t, s = cp(a);
7395
7405
  return qe(
7396
7406
  {},
7397
7407
  gt((r = e.baseStyle) != null ? r : {}, t),
@@ -7400,19 +7410,19 @@ function lp(e) {
7400
7410
  );
7401
7411
  };
7402
7412
  }
7403
- function up(e, t) {
7413
+ function lp(e, t) {
7404
7414
  const r = {};
7405
7415
  return Object.keys(e).forEach((n) => {
7406
7416
  t.includes(n) || (r[n] = e[n]);
7407
7417
  }), r;
7408
7418
  }
7409
- function pp(e, t, r, n) {
7419
+ function up(e, t, r, n) {
7410
7420
  const i = typeof t == "string" ? t.split(".") : [t];
7411
7421
  for (n = 0; n < i.length && e; n += 1)
7412
7422
  e = e[i[n]];
7413
7423
  return e === void 0 ? r : e;
7414
7424
  }
7415
- var fp = (e) => {
7425
+ var pp = (e) => {
7416
7426
  const t = /* @__PURE__ */ new WeakMap();
7417
7427
  return (n, i, a, s) => {
7418
7428
  if (typeof n > "u")
@@ -7424,7 +7434,7 @@ var fp = (e) => {
7424
7434
  const p = e(n, i, a, s);
7425
7435
  return u.set(i, p), p;
7426
7436
  };
7427
- }, hp = fp(pp);
7437
+ }, fp = pp(up);
7428
7438
  function ua(e, t) {
7429
7439
  const r = {};
7430
7440
  return Object.keys(e).forEach((n) => {
@@ -7433,15 +7443,15 @@ function ua(e, t) {
7433
7443
  }), r;
7434
7444
  }
7435
7445
  var pa = (e) => ua(e, (t) => t != null);
7436
- function gp(e) {
7446
+ function hp(e) {
7437
7447
  return typeof e == "function";
7438
7448
  }
7439
7449
  process.env.NODE_ENV;
7440
7450
  process.env.NODE_ENV;
7441
- function mp(e, ...t) {
7442
- return gp(e) ? e(...t) : e;
7451
+ function gp(e, ...t) {
7452
+ return hp(e) ? e(...t) : e;
7443
7453
  }
7444
- var yp = typeof Element < "u", wp = typeof Map == "function", Ip = typeof Set == "function", vp = typeof ArrayBuffer == "function" && !!ArrayBuffer.isView;
7454
+ var mp = typeof Element < "u", yp = typeof Map == "function", wp = typeof Set == "function", Ip = typeof ArrayBuffer == "function" && !!ArrayBuffer.isView;
7445
7455
  function Lr(e, t) {
7446
7456
  if (e === t) return !0;
7447
7457
  if (e && t && typeof e == "object" && typeof t == "object") {
@@ -7454,7 +7464,7 @@ function Lr(e, t) {
7454
7464
  return !0;
7455
7465
  }
7456
7466
  var a;
7457
- if (wp && e instanceof Map && t instanceof Map) {
7467
+ if (yp && e instanceof Map && t instanceof Map) {
7458
7468
  if (e.size !== t.size) return !1;
7459
7469
  for (a = e.entries(); !(n = a.next()).done; )
7460
7470
  if (!t.has(n.value[0])) return !1;
@@ -7462,13 +7472,13 @@ function Lr(e, t) {
7462
7472
  if (!Lr(n.value[1], t.get(n.value[0]))) return !1;
7463
7473
  return !0;
7464
7474
  }
7465
- if (Ip && e instanceof Set && t instanceof Set) {
7475
+ if (wp && e instanceof Set && t instanceof Set) {
7466
7476
  if (e.size !== t.size) return !1;
7467
7477
  for (a = e.entries(); !(n = a.next()).done; )
7468
7478
  if (!t.has(n.value[0])) return !1;
7469
7479
  return !0;
7470
7480
  }
7471
- if (vp && ArrayBuffer.isView(e) && ArrayBuffer.isView(t)) {
7481
+ if (Ip && ArrayBuffer.isView(e) && ArrayBuffer.isView(t)) {
7472
7482
  if (r = e.length, r != t.length) return !1;
7473
7483
  for (n = r; n-- !== 0; )
7474
7484
  if (e[n] !== t[n]) return !1;
@@ -7480,7 +7490,7 @@ function Lr(e, t) {
7480
7490
  if (i = Object.keys(e), r = i.length, r !== Object.keys(t).length) return !1;
7481
7491
  for (n = r; n-- !== 0; )
7482
7492
  if (!Object.prototype.hasOwnProperty.call(t, i[n])) return !1;
7483
- if (yp && e instanceof Element) return !1;
7493
+ if (mp && e instanceof Element) return !1;
7484
7494
  for (n = r; n-- !== 0; )
7485
7495
  if (!((i[n] === "_owner" || i[n] === "__v" || i[n] === "__o") && e.$$typeof) && !Lr(e[i[n]], t[i[n]]))
7486
7496
  return !1;
@@ -7488,7 +7498,7 @@ function Lr(e, t) {
7488
7498
  }
7489
7499
  return e !== e && t !== t;
7490
7500
  }
7491
- var bp = function(t, r) {
7501
+ var vp = function(t, r) {
7492
7502
  try {
7493
7503
  return Lr(t, r);
7494
7504
  } catch (n) {
@@ -7497,25 +7507,25 @@ var bp = function(t, r) {
7497
7507
  throw n;
7498
7508
  }
7499
7509
  };
7500
- const Sp = /* @__PURE__ */ Ni(bp);
7501
- function Op(e, t = {}) {
7510
+ const bp = /* @__PURE__ */ Ni(vp);
7511
+ function Sp(e, t = {}) {
7502
7512
  var r;
7503
- const { styleConfig: n, ...i } = t, { theme: a, colorMode: s } = pu(), u = hp(a, `components.${e}`), p = n || u, h = qe(
7513
+ const { styleConfig: n, ...i } = t, { theme: a, colorMode: s } = uu(), u = fp(a, `components.${e}`), p = n || u, h = qe(
7504
7514
  { theme: a, colorMode: s },
7505
7515
  (r = p == null ? void 0 : p.defaultProps) != null ? r : {},
7506
- pa(up(i, ["children"]))
7516
+ pa(lp(i, ["children"]))
7507
7517
  ), m = ma({});
7508
7518
  if (p) {
7509
- const y = lp(p)(h);
7510
- Sp(m.current, y) || (m.current = y);
7519
+ const y = dp(p)(h);
7520
+ bp(m.current, y) || (m.current = y);
7511
7521
  }
7512
7522
  return m.current;
7513
7523
  }
7514
- function Cp(e, t = {}) {
7515
- return Op(e, t);
7524
+ function Op(e, t = {}) {
7525
+ return Sp(e, t);
7516
7526
  }
7517
- var Np = /* @__PURE__ */ new Set([
7518
- ...Yu,
7527
+ var Cp = /* @__PURE__ */ new Set([
7528
+ ...Vu,
7519
7529
  "textStyle",
7520
7530
  "layerStyle",
7521
7531
  "apply",
@@ -7526,16 +7536,16 @@ var Np = /* @__PURE__ */ new Set([
7526
7536
  "__css",
7527
7537
  "css",
7528
7538
  "sx"
7529
- ]), Tp = /* @__PURE__ */ new Set([
7539
+ ]), Np = /* @__PURE__ */ new Set([
7530
7540
  "htmlWidth",
7531
7541
  "htmlHeight",
7532
7542
  "htmlSize",
7533
7543
  "htmlTranslate"
7534
7544
  ]);
7535
- function Rp(e) {
7536
- return Tp.has(e) || !Np.has(e);
7545
+ function Tp(e) {
7546
+ return Np.has(e) || !Cp.has(e);
7537
7547
  }
7538
- function _p(e, ...t) {
7548
+ function Rp(e, ...t) {
7539
7549
  if (e == null)
7540
7550
  throw new TypeError("Cannot convert undefined or null to object");
7541
7551
  const r = { ...e };
@@ -7545,20 +7555,20 @@ function _p(e, ...t) {
7545
7555
  Object.prototype.hasOwnProperty.call(n, i) && (i in r && delete r[i], r[i] = n[i]);
7546
7556
  return r;
7547
7557
  }
7548
- var to, Ap = (to = Di.default) != null ? to : Di, xp = ({ baseStyle: e }) => (t) => {
7549
- const { theme: r, css: n, __css: i, sx: a, ...s } = t, u = ua(s, (w, y) => Qu(y)), p = mp(e, t), h = _p(
7558
+ var to, _p = (to = Di.default) != null ? to : Di, Ap = ({ baseStyle: e }) => (t) => {
7559
+ const { theme: r, css: n, __css: i, sx: a, ...s } = t, u = ua(s, (w, y) => Zu(y)), p = gp(e, t), h = Rp(
7550
7560
  {},
7551
7561
  i,
7552
7562
  p,
7553
7563
  pa(u),
7554
7564
  a
7555
- ), m = ap(h)(t.theme);
7565
+ ), m = op(h)(t.theme);
7556
7566
  return n ? [m, n] : m;
7557
7567
  };
7558
7568
  function li(e, t) {
7559
7569
  const { baseStyle: r, ...n } = t ?? {};
7560
- n.shouldForwardProp || (n.shouldForwardProp = Rp);
7561
- const i = xp({ baseStyle: r }), a = Ap(
7570
+ n.shouldForwardProp || (n.shouldForwardProp = Tp);
7571
+ const i = Ap({ baseStyle: r }), a = _p(
7562
7572
  e,
7563
7573
  n
7564
7574
  )(i);
@@ -7571,7 +7581,7 @@ function li(e, t) {
7571
7581
  });
7572
7582
  });
7573
7583
  }
7574
- function kp() {
7584
+ function xp() {
7575
7585
  const e = /* @__PURE__ */ new Map();
7576
7586
  return new Proxy(li, {
7577
7587
  /**
@@ -7591,7 +7601,7 @@ function kp() {
7591
7601
  }
7592
7602
  });
7593
7603
  }
7594
- var ro = kp();
7604
+ var ro = xp();
7595
7605
  function fa(e) {
7596
7606
  return Si(e);
7597
7607
  }
@@ -7626,7 +7636,7 @@ var no = {
7626
7636
  className: u,
7627
7637
  __css: p,
7628
7638
  ...h
7629
- } = e, m = fu("chakra-icon", u), w = Cp("Icon", e), y = {
7639
+ } = e, m = pu("chakra-icon", u), w = Op("Icon", e), y = {
7630
7640
  w: "1em",
7631
7641
  h: "1em",
7632
7642
  display: "inline-block",
@@ -7647,7 +7657,7 @@ var no = {
7647
7657
  return /* @__PURE__ */ l(ro.svg, { verticalAlign: "middle", viewBox: b, ...I, ...h, children: v });
7648
7658
  });
7649
7659
  ha.displayName = "Icon";
7650
- function Ep(e) {
7660
+ function kp(e) {
7651
7661
  const {
7652
7662
  viewBox: t = "0 0 24 24",
7653
7663
  d: r,
@@ -7656,7 +7666,7 @@ function Ep(e) {
7656
7666
  } = e, a = ya.toArray(e.path), s = fa((u, p) => /* @__PURE__ */ l(ha, { ref: p, viewBox: t, ...i, ...u, children: a.length ? a : /* @__PURE__ */ l("path", { fill: "currentColor", d: r }) }));
7657
7667
  return s.displayName = n, s;
7658
7668
  }
7659
- var Fp = Ep({
7669
+ var Ep = kp({
7660
7670
  displayName: "ExternalLinkIcon",
7661
7671
  path: /* @__PURE__ */ A("g", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeWidth: "2", children: [
7662
7672
  /* @__PURE__ */ l("path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6" }),
@@ -7664,8 +7674,8 @@ var Fp = Ep({
7664
7674
  /* @__PURE__ */ l("path", { d: "M10 14L21 3" })
7665
7675
  ] })
7666
7676
  });
7667
- const Pp = "https://help.salesforce.com/s/articleView?id=sf.faq_domain_name_what.htm&type=5";
7668
- function Dp({
7677
+ const Fp = "https://help.salesforce.com/s/articleView?id=sf.faq_domain_name_what.htm&type=5";
7678
+ function Pp({
7669
7679
  handleSubmit: e,
7670
7680
  setWorkspace: t,
7671
7681
  error: r,
@@ -7673,9 +7683,9 @@ function Dp({
7673
7683
  }) {
7674
7684
  return /* @__PURE__ */ l(lr, { children: /* @__PURE__ */ A(He, { children: [
7675
7685
  /* @__PURE__ */ l(rt, { marginTop: "16", marginBottom: "0", children: /* @__PURE__ */ l(Je, { as: "h4", size: "md", children: "Enter your Salesforce subdomain" }) }),
7676
- /* @__PURE__ */ A(so, { href: Pp, color: "blackAlpha.600", isExternal: !0, children: [
7686
+ /* @__PURE__ */ A(so, { href: Fp, color: "blackAlpha.600", isExternal: !0, children: [
7677
7687
  "What is my Salesforce subdomain?",
7678
- /* @__PURE__ */ l(Fp, { mx: "2px" })
7688
+ /* @__PURE__ */ l(Ep, { mx: "2px" })
7679
7689
  ] }),
7680
7690
  /* @__PURE__ */ l(ur, { error: r }),
7681
7691
  /* @__PURE__ */ A(Ur, { marginTop: "1em", children: [
@@ -7692,6 +7702,7 @@ function Dp({
7692
7702
  /* @__PURE__ */ l(
7693
7703
  ne,
7694
7704
  {
7705
+ variant: "primary",
7695
7706
  isDisabled: n,
7696
7707
  width: "100%",
7697
7708
  type: "submit",
@@ -7701,7 +7712,7 @@ function Dp({
7701
7712
  )
7702
7713
  ] }) });
7703
7714
  }
7704
- function Kp({
7715
+ function Dp({
7705
7716
  handleSubmit: e,
7706
7717
  setWorkspace: t,
7707
7718
  error: r,
@@ -7726,6 +7737,7 @@ function Kp({
7726
7737
  /* @__PURE__ */ l(
7727
7738
  ne,
7728
7739
  {
7740
+ variant: "primary",
7729
7741
  isDisabled: n,
7730
7742
  width: "100%",
7731
7743
  type: "submit",
@@ -7735,8 +7747,8 @@ function Kp({
7735
7747
  )
7736
7748
  ] }) });
7737
7749
  }
7738
- const Lp = "salesforce";
7739
- function Bp({
7750
+ const Kp = "salesforce";
7751
+ function Lp({
7740
7752
  provider: e,
7741
7753
  consumerRef: t,
7742
7754
  consumerName: r,
@@ -7766,8 +7778,8 @@ function Bp({
7766
7778
  }
7767
7779
  }, v = Q((R) => {
7768
7780
  I(R), w(null);
7769
- }, []), S = e === Lp ? /* @__PURE__ */ l(
7770
- Dp,
7781
+ }, []), S = e === Kp ? /* @__PURE__ */ l(
7782
+ Pp,
7771
7783
  {
7772
7784
  handleSubmit: b,
7773
7785
  setWorkspace: h,
@@ -7777,7 +7789,7 @@ function Bp({
7777
7789
  ) : (
7778
7790
  // general workspace entry component
7779
7791
  /* @__PURE__ */ l(
7780
- Kp,
7792
+ Dp,
7781
7793
  {
7782
7794
  handleSubmit: b,
7783
7795
  setWorkspace: h,
@@ -7797,8 +7809,8 @@ function Bp({
7797
7809
  }
7798
7810
  );
7799
7811
  }
7800
- const Up = "authorizationCode", Mp = "clientCredentials";
7801
- function $p({
7812
+ const Bp = "authorizationCode", Up = "clientCredentials";
7813
+ function Mp({
7802
7814
  provider: e,
7803
7815
  providerInfo: t,
7804
7816
  consumerRef: r,
@@ -7811,8 +7823,8 @@ function $p({
7811
7823
  if (t.oauth2Opts === void 0)
7812
7824
  return /* @__PURE__ */ l("em", { children: "Provider is missing OAuth2 options" });
7813
7825
  const { grantType: p, explicitScopesRequired: h, explicitWorkspaceRequired: m } = t.oauth2Opts, w = vt(e, t);
7814
- return p === Up ? m ? /* @__PURE__ */ l(
7815
- Bp,
7826
+ return p === Bp ? m ? /* @__PURE__ */ l(
7827
+ Lp,
7816
7828
  {
7817
7829
  provider: e,
7818
7830
  consumerRef: r,
@@ -7822,7 +7834,7 @@ function $p({
7822
7834
  providerName: w
7823
7835
  }
7824
7836
  ) : /* @__PURE__ */ l(
7825
- cu,
7837
+ su,
7826
7838
  {
7827
7839
  provider: e,
7828
7840
  consumerRef: r,
@@ -7831,8 +7843,8 @@ function $p({
7831
7843
  groupName: a,
7832
7844
  providerName: w
7833
7845
  }
7834
- ) : p === Mp ? m ? /* @__PURE__ */ l(
7835
- lu,
7846
+ ) : p === Up ? m ? /* @__PURE__ */ l(
7847
+ du,
7836
7848
  {
7837
7849
  provider: e,
7838
7850
  consumerRef: r,
@@ -7845,7 +7857,7 @@ function $p({
7845
7857
  providerName: w
7846
7858
  }
7847
7859
  ) : /* @__PURE__ */ l(
7848
- tu,
7860
+ eu,
7849
7861
  {
7850
7862
  provider: e,
7851
7863
  consumerRef: r,
@@ -7862,7 +7874,7 @@ function $p({
7862
7874
  p
7863
7875
  ] });
7864
7876
  }
7865
- const jp = async (e, t) => {
7877
+ const $p = async (e, t) => {
7866
7878
  const r = await X().providerApi.getProvider({ provider: t }, {
7867
7879
  headers: { "X-Api-Key": e ?? "" }
7868
7880
  });
@@ -7880,14 +7892,14 @@ function ga({
7880
7892
  onSuccess: s
7881
7893
  }) {
7882
7894
  const u = te(), [p, h] = k(null), { provider: m } = Ke(), { selectedConnection: w, setSelectedConnection: y, connections: I } = Lt();
7883
- Gl({ onSuccess: s });
7895
+ Xl({ onSuccess: s });
7884
7896
  const b = e || m, v = (p == null ? void 0 : p.displayName) ?? No(b);
7885
7897
  if (Y(() => {
7886
7898
  if (!w && I && I.length > 0) {
7887
7899
  const [S] = I;
7888
7900
  y(S);
7889
7901
  }
7890
- jp(u, b).then((S) => {
7902
+ $p(u, b).then((S) => {
7891
7903
  h(S);
7892
7904
  }).catch((S) => {
7893
7905
  console.error("Error loading provider info: ", S);
@@ -7895,7 +7907,7 @@ function ga({
7895
7907
  }, [I, w, y, u, b]), !e && !m)
7896
7908
  throw new Error("ProtectedConnectionLayout must be given a provider prop or be used within InstallIntegrationProvider");
7897
7909
  return w ? a : p == null ? /* @__PURE__ */ l("strong", { children: "Provider not found" }) : p.authType === "none" ? /* @__PURE__ */ l(
7898
- Ql,
7910
+ Zl,
7899
7911
  {
7900
7912
  provider: b,
7901
7913
  consumerRef: t,
@@ -7908,7 +7920,7 @@ function ga({
7908
7920
  children: a
7909
7921
  }
7910
7922
  ) : p.authType === "basic" ? /* @__PURE__ */ l(
7911
- Hl,
7923
+ Jl,
7912
7924
  {
7913
7925
  provider: b,
7914
7926
  providerInfo: p,
@@ -7921,7 +7933,7 @@ function ga({
7921
7933
  children: a
7922
7934
  }
7923
7935
  ) : p.authType === "apiKey" ? /* @__PURE__ */ l(
7924
- ql,
7936
+ jl,
7925
7937
  {
7926
7938
  provider: b,
7927
7939
  providerInfo: p,
@@ -7934,7 +7946,7 @@ function ga({
7934
7946
  children: a
7935
7947
  }
7936
7948
  ) : /* @__PURE__ */ l(
7937
- $p,
7949
+ Mp,
7938
7950
  {
7939
7951
  provider: b,
7940
7952
  providerInfo: p,
@@ -7947,7 +7959,7 @@ function ga({
7947
7959
  }
7948
7960
  );
7949
7961
  }
7950
- function Zp({
7962
+ function Yp({
7951
7963
  integration: e,
7952
7964
  consumerRef: t,
7953
7965
  consumerName: r,
@@ -7961,7 +7973,7 @@ function Zp({
7961
7973
  return (h = p[Z.INTEGRATION_LIST]) != null && h.apiError ? /* @__PURE__ */ l(We, { message: "Something went wrong, couldn't find integration information" }) : (
7962
7974
  // install integration provider provides all props, integrationObj and installation
7963
7975
  /* @__PURE__ */ l(
7964
- xd,
7976
+ Ad,
7965
7977
  {
7966
7978
  integration: e,
7967
7979
  consumerRef: t,
@@ -7977,23 +7989,23 @@ function Zp({
7977
7989
  consumerName: r,
7978
7990
  groupRef: n,
7979
7991
  groupName: i,
7980
- children: /* @__PURE__ */ l(Vd, { projectId: u, children: /* @__PURE__ */ l(Ul, { children: /* @__PURE__ */ l(dl, { children: /* @__PURE__ */ l(hl, { children: /* @__PURE__ */ l(Fl, {}) }) }) }) })
7992
+ children: /* @__PURE__ */ l(Gd, { projectId: u, children: /* @__PURE__ */ l(Bl, { children: /* @__PURE__ */ l(cl, { children: /* @__PURE__ */ l(fl, { children: /* @__PURE__ */ l(El, {}) }) }) }) })
7981
7993
  }
7982
7994
  ) })
7983
7995
  }
7984
7996
  )
7985
7997
  );
7986
7998
  }
7987
- function qp({ redirectURL: e, children: t }) {
7999
+ function jp({ redirectURL: e, children: t }) {
7988
8000
  return Y(() => {
7989
8001
  e && window.location.replace(e);
7990
8002
  }, [e]), e ? /* @__PURE__ */ l(J, { display: "flex", alignItems: "center", justifyContent: "center", children: /* @__PURE__ */ l(De, { message: "Redirecting..." }) }) : t;
7991
8003
  }
7992
- function Wp({ provider: e }) {
8004
+ function qp({ provider: e }) {
7993
8005
  const { appName: t } = ee(), r = `You have successfully connected your ${vt(e)} account to ${t}.`;
7994
8006
  return /* @__PURE__ */ l(ta, { text: r });
7995
8007
  }
7996
- function Qp({
8008
+ function Zp({
7997
8009
  provider: e,
7998
8010
  consumerRef: t,
7999
8011
  consumerName: r,
@@ -8011,11 +8023,11 @@ function Qp({
8011
8023
  groupRef: n,
8012
8024
  groupName: i,
8013
8025
  onSuccess: s,
8014
- children: /* @__PURE__ */ l(qp, { redirectURL: a, children: /* @__PURE__ */ l(Wp, { provider: e }) })
8026
+ children: /* @__PURE__ */ l(jp, { redirectURL: a, children: /* @__PURE__ */ l(qp, { provider: e }) })
8015
8027
  }
8016
8028
  ) });
8017
8029
  }
8018
- const ef = (e, t) => {
8030
+ const Qp = (e, t) => {
8019
8031
  const r = te(), { projectId: n } = ee(), { integrations: i } = Oo(), [a, s] = k(!1), [u, p] = k(null);
8020
8032
  if (!r || !n)
8021
8033
  throw new Error("useIsIntegrationInstalled must be used within AmpersandProvider");
@@ -8044,10 +8056,10 @@ const ef = (e, t) => {
8044
8056
  }, [t, r, n, h]), { isLoaded: a, isIntegrationInstalled: u };
8045
8057
  };
8046
8058
  export {
8047
- _d as AmpersandContext,
8048
- Vp as AmpersandProvider,
8049
- Qp as ConnectProvider,
8050
- Zp as InstallIntegration,
8051
- Yp as useAmpersandProvider,
8052
- ef as useIsIntegrationInstalled
8059
+ Rd as AmpersandContext,
8060
+ Gp as AmpersandProvider,
8061
+ Zp as ConnectProvider,
8062
+ Yp as InstallIntegration,
8063
+ Vp as useAmpersandProvider,
8064
+ Qp as useIsIntegrationInstalled
8053
8065
  };