@amp-labs/react 1.9.2 → 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
- 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 ya, Children as wa } from "react";
3
- import { extendTheme as io, withDefaultColorScheme as Ia, ChakraProvider as va, Box as J, Stack as Ae, Spinner as ba, Text as Ie, useTab as oo, useMultiStyleConfig as ao, Button as ne, Divider as Oi, Tabs as Sa, Select as Oa, Flex as Ur, Heading as Je, FormControl as He, FormErrorMessage as Ca, Checkbox as Mr, Tag as Na, 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 Ta } from "@emotion/react";
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, 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 Ra = {
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 Ra = {
19
42
  // Background color on hover
20
43
  }
21
44
  }
22
- }, _a = io({
45
+ }, Ta = io({
23
46
  components: {
24
47
  Tabs: {
25
48
  baseStyle: {
@@ -27,18 +50,18 @@ const Ra = {
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 Ra = {
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: Ra
91
+ variants: Na
69
92
  }
70
93
  }
71
- }), Aa = io(
72
- Ia({
73
- colorScheme: "facebook",
74
- components: ["Button"]
75
- }),
76
- _a
77
- );
78
- function xa({ children: e }) {
79
- return /* @__PURE__ */ l(va, { theme: Aa, 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), ka = 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 Ea = (() => {
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 Fa({ children: e }) {
102
- const [t, r] = k(Ea), 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
- ba,
180
+ Ia,
164
181
  {
165
182
  height: "100px",
166
183
  width: "100px",
@@ -178,7 +195,7 @@ function De({ message: e }) {
178
195
  }
179
196
  );
180
197
  }
181
- function qe({ message: e }) {
198
+ function We({ message: e }) {
182
199
  return /* @__PURE__ */ A(
183
200
  J,
184
201
  {
@@ -222,7 +239,7 @@ function qe({ message: e }) {
222
239
  }
223
240
  );
224
241
  }
225
- const Pa = "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 : Pa;
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 Da = new po(), Hr = class Hr {
269
- constructor(t = Da) {
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 Da = 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 Ua(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 Da = 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 Ba(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 Da = new po(), Hr = class Hr {
348
365
  })
349
366
  }, p = {
350
367
  ...u,
351
- body: La(u.body) || u.body instanceof URLSearchParams || Ka(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 Da = new po(), Hr = class Hr {
363
380
  };
364
381
  Hr.jsonRegex = new RegExp("^(:?application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(:?;.*)?$", "i");
365
382
  let de = Hr;
366
- function Ka(e) {
383
+ function Pa(e) {
367
384
  return typeof Blob < "u" && e instanceof Blob;
368
385
  }
369
- function La(e) {
386
+ function Da(e) {
370
387
  return typeof FormData < "u" && e instanceof FormData;
371
388
  }
372
- class Ba 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 Ua 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 Ma {
444
+ class Ba {
428
445
  constructor(t) {
429
446
  this.raw = t;
430
447
  }
@@ -432,83 +449,83 @@ class Ma {
432
449
  return await this.raw.text();
433
450
  }
434
451
  }
435
- function $a(e) {
436
- return ja(e);
452
+ function Ua(e) {
453
+ return Ma(e);
437
454
  }
438
- function ja(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 Wa(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
  }
470
+ function qa(e) {
471
+ return Wa(e);
472
+ }
473
+ function Wa(e, t) {
474
+ return e == null ? e : {
475
+ name: e.name
476
+ };
477
+ }
453
478
  function za(e) {
454
479
  return Ja(e);
455
480
  }
456
481
  function Ja(e, t) {
457
482
  return e == null ? e : {
458
- name: e.name
483
+ attachmentType: e.attachmentType,
484
+ query: N(e, "query") ? qa(e.query) : void 0,
485
+ header: N(e, "header") ? $a(e.header) : void 0,
486
+ docsURL: N(e, "docsURL") ? e.docsURL : void 0
459
487
  };
460
488
  }
461
489
  function Ha(e) {
462
490
  return Xa(e);
463
491
  }
464
492
  function Xa(e, t) {
465
- return e == null ? e : {
466
- attachmentType: e.attachmentType,
467
- query: N(e, "query") ? za(e.query) : void 0,
468
- header: N(e, "header") ? Wa(e.header) : void 0,
469
- docsURL: N(e, "docsURL") ? e.docsURL : void 0
470
- };
493
+ return e;
471
494
  }
472
495
  function Ga(e) {
473
496
  return Va(e);
474
497
  }
475
498
  function Va(e, t) {
476
- return e;
477
- }
478
- function Ya(e) {
479
- return Za(e);
480
- }
481
- function Za(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 Qa(e);
505
+ return Ya(e);
489
506
  }
490
- function Qa(e, t) {
507
+ function Ya(e, t) {
491
508
  return e == null ? e : {
492
- defaultPeriod: Ya(e.defaultPeriod)
509
+ defaultPeriod: Ga(e.defaultPeriod)
493
510
  };
494
511
  }
495
- function es(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 ts(e) {
519
+ function Qa(e) {
503
520
  if (e !== void 0)
504
521
  return e === null ? null : {
505
- defaultPeriod: es(e.defaultPeriod)
522
+ defaultPeriod: Za(e.defaultPeriod)
506
523
  };
507
524
  }
508
- function rs(e) {
509
- return ns(e);
525
+ function es(e) {
526
+ return ts(e);
510
527
  }
511
- function ns(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 is(e) {
539
+ function rs(e) {
523
540
  if (e !== void 0)
524
541
  return e === null ? null : {
525
542
  objectName: e.objectName,
@@ -527,47 +544,48 @@ function is(e) {
527
544
  destination: e.destination,
528
545
  selectedFields: e.selectedFields,
529
546
  selectedFieldMappings: e.selectedFieldMappings,
530
- backfill: ts(e.backfill)
547
+ backfill: Qa(e.backfill)
531
548
  };
532
549
  }
533
- function os(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, is)
553
+ objects: e.objects === void 0 ? void 0 : Ci(e.objects, rs)
537
554
  };
538
555
  }
539
- function as(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 ss(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, as)
565
+ objects: e.objects === void 0 ? void 0 : Ci(e.objects, is)
549
566
  };
550
567
  }
551
- function cs(e) {
552
- return ds(e);
568
+ function as(e) {
569
+ return ss(e);
553
570
  }
554
- function ds(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") ? $a(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 yo(e) {
578
+ function cs(e) {
562
579
  if (e !== void 0)
563
580
  return e === null ? null : {
564
- sourceZipUrl: e.sourceZipUrl
581
+ sourceZipUrl: e.sourceZipUrl,
582
+ sourceYaml: e.sourceYaml
565
583
  };
566
584
  }
567
585
  function xr(e) {
568
- return ls(e);
586
+ return ds(e);
569
587
  }
570
- function ls(e, t) {
588
+ function ds(e, t) {
571
589
  return e == null ? e : {
572
590
  id: e.id,
573
591
  name: e.name,
@@ -577,10 +595,10 @@ function ls(e, t) {
577
595
  updateTime: N(e, "updateTime") ? new Date(e.updateTime) : void 0
578
596
  };
579
597
  }
580
- function us(e) {
581
- return ps(e);
598
+ function ls(e) {
599
+ return us(e);
582
600
  }
583
- function ps(e, t) {
601
+ function us(e, t) {
584
602
  return e == null ? e : {
585
603
  insert: e.insert,
586
604
  update: e.update,
@@ -588,18 +606,18 @@ function ps(e, t) {
588
606
  _delete: e.delete
589
607
  };
590
608
  }
591
- function fs(e) {
592
- return hs(e);
609
+ function ps(e) {
610
+ return fs(e);
593
611
  }
594
- function hs(e, t) {
612
+ function fs(e, t) {
595
613
  return e == null ? e : {
596
614
  provider: e.provider,
597
615
  read: N(e, "read") ? e.read : void 0,
598
616
  write: N(e, "write") ? e.write : void 0,
599
- proxy: N(e, "proxy") ? rs(e.proxy) : void 0
617
+ proxy: N(e, "proxy") ? es(e.proxy) : void 0
600
618
  };
601
619
  }
602
- function wo(e) {
620
+ function yo(e) {
603
621
  if (e !== void 0)
604
622
  return e === null ? null : {
605
623
  provider: e.provider,
@@ -608,22 +626,22 @@ function wo(e) {
608
626
  proxy: mo(e.proxy)
609
627
  };
610
628
  }
611
- function gs(e) {
612
- return ms(e);
629
+ function hs(e) {
630
+ return gs(e);
613
631
  }
614
- function ms(e, t) {
632
+ function gs(e, t) {
615
633
  return e == null ? e : {
616
634
  id: e.id,
617
635
  revisionId: e.revisionId,
618
636
  createTime: new Date(e.createTime),
619
637
  createdBy: e.createdBy,
620
- content: fs(e.content)
638
+ content: ps(e.content)
621
639
  };
622
640
  }
623
- function ys(e) {
624
- return ws(e);
641
+ function ms(e) {
642
+ return ys(e);
625
643
  }
626
- function ws(e, t) {
644
+ function ys(e, t) {
627
645
  return e == null ? e : {
628
646
  consumerRef: e.consumerRef,
629
647
  consumerName: e.consumerName,
@@ -632,10 +650,10 @@ function ws(e, t) {
632
650
  updateTime: N(e, "updateTime") ? new Date(e.updateTime) : void 0
633
651
  };
634
652
  }
635
- function Io(e) {
636
- return Is(e);
653
+ function wo(e) {
654
+ return ws(e);
637
655
  }
638
- function Is(e, t) {
656
+ function ws(e, t) {
639
657
  return e == null ? e : {
640
658
  groupRef: e.groupRef,
641
659
  groupName: e.groupName,
@@ -645,9 +663,9 @@ function Is(e, t) {
645
663
  };
646
664
  }
647
665
  function Pr(e) {
648
- return vs(e);
666
+ return Is(e);
649
667
  }
650
- function vs(e, t) {
668
+ function Is(e, t) {
651
669
  return e == null ? e : {
652
670
  id: e.id,
653
671
  projectId: e.projectId,
@@ -660,81 +678,82 @@ function vs(e, t) {
660
678
  };
661
679
  }
662
680
  function Dr(e) {
663
- return bs(e);
681
+ return vs(e);
664
682
  }
665
- function bs(e, t) {
683
+ function vs(e, t) {
666
684
  return e == null ? e : {
667
685
  id: e.id,
668
686
  projectId: e.projectId,
669
687
  providerApp: Pr(e.providerApp),
670
- group: Io(e.group),
671
- consumer: ys(e.consumer),
688
+ group: wo(e.group),
689
+ consumer: ms(e.consumer),
672
690
  providerWorkspaceRef: e.providerWorkspaceRef,
673
691
  providerConsumerRef: N(e, "ProviderConsumerRef") ? e.ProviderConsumerRef : void 0,
674
692
  createTime: new Date(e.createTime),
675
693
  updateTime: N(e, "updateTime") ? new Date(e.updateTime) : void 0
676
694
  };
677
695
  }
678
- function Ss(e) {
696
+ function bs(e) {
679
697
  if (e !== void 0)
680
698
  return e === null ? null : {
681
699
  consumerRef: e.consumerRef,
682
700
  consumerName: e.consumerName
683
701
  };
684
702
  }
685
- function Os(e) {
703
+ function Ss(e) {
686
704
  if (e !== void 0)
687
705
  return e === null ? null : {
688
706
  url: e.url,
689
707
  headers: e.headers
690
708
  };
691
709
  }
692
- function Cs(e) {
710
+ function Os(e) {
693
711
  if (e !== void 0)
694
712
  return e === null ? null : {
695
713
  name: e.name,
696
714
  type: e.type,
697
- metadata: Os(e.metadata)
715
+ metadata: Ss(e.metadata)
698
716
  };
699
717
  }
700
- function Ns(e) {
718
+ function Cs(e) {
701
719
  if (e !== void 0)
702
720
  return e === null ? null : {
703
721
  groupRef: e.groupRef,
704
722
  groupName: e.groupName
705
723
  };
706
724
  }
707
- function Ts(e) {
725
+ function Ns(e) {
708
726
  if (e !== void 0)
709
727
  return e === null ? null : {
710
728
  revisionId: e.revisionId,
711
729
  createdBy: e.createdBy,
712
- content: wo(e.content)
730
+ content: yo(e.content)
713
731
  };
714
732
  }
715
- function Rs(e) {
733
+ function Ts(e) {
716
734
  if (e !== void 0)
717
735
  return e === null ? null : {
718
736
  groupRef: e.groupRef,
719
737
  connectionId: e.connectionId,
720
- config: Ts(e.config)
738
+ config: Ns(e.config)
721
739
  };
722
740
  }
723
- function _s(e) {
741
+ function Rs(e) {
724
742
  if (e !== void 0)
725
743
  return e === null ? null : {
726
- sourceZipUrl: e.sourceZipUrl
744
+ sourceZipUrl: e.sourceZipUrl,
745
+ sourceYaml: e.sourceYaml
727
746
  };
728
747
  }
729
- function As(e) {
748
+ function _s(e) {
730
749
  if (e !== void 0)
731
750
  return e === null ? null : {
732
751
  name: e.name,
733
752
  provider: e.provider,
734
- latestRevision: _s(e.latestRevision)
753
+ latestRevision: Rs(e.latestRevision)
735
754
  };
736
755
  }
737
- function xs(e) {
756
+ function As(e) {
738
757
  if (e !== void 0)
739
758
  return e === null ? null : {
740
759
  appName: e.appName,
@@ -742,7 +761,7 @@ function xs(e) {
742
761
  orgId: e.orgId
743
762
  };
744
763
  }
745
- function ks(e) {
764
+ function xs(e) {
746
765
  if (e !== void 0)
747
766
  return e === null ? null : {
748
767
  externalRef: e.externalRef,
@@ -752,16 +771,32 @@ function ks(e) {
752
771
  scopes: e.scopes
753
772
  };
754
773
  }
774
+ function ks(e) {
775
+ if (e !== void 0)
776
+ return e === null ? null : {
777
+ sourceZipUrl: e.sourceZipUrl,
778
+ sourceYaml: e.sourceYaml
779
+ };
780
+ }
755
781
  function Es(e) {
756
782
  return Fs(e);
757
783
  }
758
784
  function Fs(e, t) {
785
+ return e == null ? e : {
786
+ mode: N(e, "mode") ? e.mode : void 0,
787
+ pageSize: N(e, "pageSize") ? e.pageSize : void 0
788
+ };
789
+ }
790
+ function Ps(e) {
791
+ return Ds(e);
792
+ }
793
+ function Ds(e, t) {
759
794
  return e == null ? e : {
760
795
  url: N(e, "url") ? e.url : void 0,
761
796
  headers: N(e, "headers") ? e.headers : void 0
762
797
  };
763
798
  }
764
- function Ps(e) {
799
+ function Ks(e) {
765
800
  if (e !== void 0)
766
801
  return e === null ? null : {
767
802
  url: e.url,
@@ -769,26 +804,26 @@ function Ps(e) {
769
804
  };
770
805
  }
771
806
  function kr(e) {
772
- return Ds(e);
807
+ return Ls(e);
773
808
  }
774
- function Ds(e, t) {
809
+ function Ls(e, t) {
775
810
  return e == null ? e : {
776
811
  id: e.id,
777
812
  name: e.name,
778
813
  type: e.type,
779
- metadata: Es(e.metadata),
814
+ metadata: Ps(e.metadata),
780
815
  createTime: new Date(e.createTime),
781
816
  updateTime: N(e, "updateTime") ? new Date(e.updateTime) : void 0
782
817
  };
783
818
  }
784
- function Ks(e) {
819
+ function Bs(e) {
785
820
  if (e !== void 0)
786
821
  return e === null ? null : {
787
822
  username: e.username,
788
823
  password: e.password
789
824
  };
790
825
  }
791
- function Ls(e) {
826
+ function Us(e) {
792
827
  if (e !== void 0)
793
828
  return e === null ? null : {
794
829
  clientId: e.clientId,
@@ -796,7 +831,7 @@ function Ls(e) {
796
831
  scopes: e.scopes
797
832
  };
798
833
  }
799
- function Bs(e) {
834
+ function Ms(e) {
800
835
  if (e !== void 0)
801
836
  return e === null ? null : {
802
837
  username: e.username,
@@ -806,7 +841,7 @@ function Bs(e) {
806
841
  scopes: e.scopes
807
842
  };
808
843
  }
809
- function Us(e) {
844
+ function $s(e) {
810
845
  if (e !== void 0)
811
846
  return e === null ? null : {
812
847
  providerWorkspaceRef: e.providerWorkspaceRef,
@@ -816,26 +851,26 @@ function Us(e) {
816
851
  consumerRef: e.consumerRef,
817
852
  provider: e.provider,
818
853
  apiKey: e.apiKey,
819
- basicAuth: Ks(e.basicAuth),
820
- oauth2ClientCredentials: Ls(e.oauth2ClientCredentials),
821
- oauth2Password: Bs(e.oauth2Password)
854
+ basicAuth: Bs(e.basicAuth),
855
+ oauth2ClientCredentials: Us(e.oauth2ClientCredentials),
856
+ oauth2Password: Ms(e.oauth2Password)
822
857
  };
823
858
  }
824
- function Ms(e) {
825
- return $s(e);
859
+ function js(e) {
860
+ return qs(e);
826
861
  }
827
- function $s(e, t) {
862
+ function qs(e, t) {
828
863
  return e == null ? e : {
829
864
  enabled: N(e, "enabled") ? e.enabled : void 0
830
865
  };
831
866
  }
832
- function js(e, t) {
867
+ function Ws(e, t) {
833
868
  return e == null ? e : {
834
869
  fieldName: e.fieldName,
835
870
  displayName: e.displayName
836
871
  };
837
872
  }
838
- function vo(e, t) {
873
+ function Io(e, t) {
839
874
  return e == null ? e : {
840
875
  mapToName: e.mapToName,
841
876
  mapToDisplayName: N(e, "mapToDisplayName") ? e.mapToDisplayName : void 0,
@@ -844,21 +879,21 @@ function vo(e, t) {
844
879
  };
845
880
  }
846
881
  function ai(e) {
847
- return Ws(e);
882
+ return zs(e);
848
883
  }
849
- function Ws(e, t) {
850
- return e == null ? e : { ...js(e), ...vo(e) };
884
+ function zs(e, t) {
885
+ return e == null ? e : { ...Ws(e), ...Io(e) };
851
886
  }
852
- function bo(e) {
853
- return qs(e);
887
+ function vo(e) {
888
+ return Js(e);
854
889
  }
855
- function qs(e, t) {
890
+ function Js(e, t) {
856
891
  return e;
857
892
  }
858
- function zs(e) {
859
- return Js(e);
893
+ function Hs(e) {
894
+ return Xs(e);
860
895
  }
861
- function Js(e, t) {
896
+ function Xs(e, t) {
862
897
  return e == null ? e : {
863
898
  objectName: e.objectName,
864
899
  displayName: e.displayName,
@@ -866,26 +901,17 @@ function Js(e, t) {
866
901
  schedule: e.schedule,
867
902
  requiredFields: N(e, "requiredFields") ? e.requiredFields.map(ai) : void 0,
868
903
  optionalFields: N(e, "optionalFields") ? e.optionalFields.map(ai) : void 0,
869
- optionalFieldsAuto: N(e, "optionalFieldsAuto") ? bo(e.optionalFieldsAuto) : void 0,
904
+ optionalFieldsAuto: N(e, "optionalFieldsAuto") ? vo(e.optionalFieldsAuto) : void 0,
870
905
  allFields: N(e, "allFields") ? e.allFields.map(ai) : void 0,
871
906
  backfill: N(e, "backfill") ? go(e.backfill) : void 0
872
907
  };
873
908
  }
874
- function Hs(e) {
875
- return Xs(e);
876
- }
877
- function Xs(e, t) {
878
- return e == null ? e : {
879
- objects: N(e, "objects") ? e.objects.map(zs) : void 0
880
- };
881
- }
882
909
  function Gs(e) {
883
910
  return Vs(e);
884
911
  }
885
912
  function Vs(e, t) {
886
913
  return e == null ? e : {
887
- objectName: e.objectName,
888
- displayName: e.displayName
914
+ objects: N(e, "objects") ? e.objects.map(Hs) : void 0
889
915
  };
890
916
  }
891
917
  function Ys(e) {
@@ -893,7 +919,8 @@ function Ys(e) {
893
919
  }
894
920
  function Zs(e, t) {
895
921
  return e == null ? e : {
896
- objects: N(e, "objects") ? e.objects.map(Gs) : void 0
922
+ objectName: e.objectName,
923
+ displayName: e.displayName
897
924
  };
898
925
  }
899
926
  function Qs(e) {
@@ -901,26 +928,34 @@ function Qs(e) {
901
928
  }
902
929
  function ec(e, t) {
903
930
  return e == null ? e : {
904
- name: e.name,
905
- displayName: N(e, "displayName") ? e.displayName : void 0,
906
- provider: e.provider,
907
- read: N(e, "read") ? Hs(e.read) : void 0,
908
- write: N(e, "write") ? Ys(e.write) : void 0,
909
- proxy: N(e, "proxy") ? Ms(e.proxy) : void 0
931
+ objects: N(e, "objects") ? e.objects.map(Ys) : void 0
910
932
  };
911
933
  }
912
934
  function tc(e) {
913
935
  return rc(e);
914
936
  }
915
937
  function rc(e, t) {
938
+ return e == null ? e : {
939
+ name: e.name,
940
+ displayName: N(e, "displayName") ? e.displayName : void 0,
941
+ provider: e.provider,
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
945
+ };
946
+ }
947
+ function nc(e) {
948
+ return ic(e);
949
+ }
950
+ function ic(e, t) {
916
951
  return e == null ? e : {
917
952
  id: e.id,
918
953
  specVersion: e.specVersion,
919
954
  createTime: new Date(e.createTime),
920
- content: Qs(e.content)
955
+ content: tc(e.content)
921
956
  };
922
957
  }
923
- function nc(e) {
958
+ function oc(e) {
924
959
  if (e !== void 0)
925
960
  return e === null ? null : {
926
961
  providerAppId: e.providerAppId,
@@ -934,77 +969,70 @@ function nc(e) {
934
969
  scopes: e.scopes
935
970
  };
936
971
  }
937
- function ic(e) {
972
+ function ac(e) {
938
973
  if (e !== void 0)
939
974
  return e === null ? null : {
940
975
  revisionId: e.revisionId,
941
- content: wo(e.content)
976
+ content: yo(e.content)
942
977
  };
943
978
  }
944
- function oc(e) {
979
+ function sc(e) {
945
980
  if (e !== void 0)
946
981
  return e === null ? null : {
947
982
  provider: e.provider,
948
- connection: nc(e.connection),
949
- config: ic(e.config)
983
+ connection: oc(e.connection),
984
+ config: ac(e.config)
950
985
  };
951
986
  }
952
987
  function rr(e) {
953
- return ac(e);
988
+ return cc(e);
954
989
  }
955
- function ac(e, t) {
990
+ function cc(e, t) {
956
991
  return e == null ? e : {
957
992
  id: e.id,
958
993
  projectId: e.projectId,
959
994
  integrationId: e.integrationId,
960
- group: N(e, "group") ? Io(e.group) : void 0,
995
+ group: N(e, "group") ? wo(e.group) : void 0,
961
996
  healthStatus: e.healthStatus,
962
997
  connection: Dr(e.connection),
963
998
  createTime: new Date(e.createTime),
964
999
  createdBy: e.createdBy,
965
1000
  updateTime: N(e, "updateTime") ? new Date(e.updateTime) : void 0,
966
- config: gs(e.config)
1001
+ config: hs(e.config)
967
1002
  };
968
1003
  }
969
- function sc(e) {
970
- return cc(e);
1004
+ function dc(e) {
1005
+ return lc(e);
971
1006
  }
972
- function cc(e, t) {
1007
+ function lc(e, t) {
973
1008
  return e == null ? e : {
974
1009
  enabled: N(e, "enabled") ? e.enabled : void 0
975
1010
  };
976
1011
  }
977
- function dc(e, t) {
1012
+ function uc(e, t) {
978
1013
  return e == null ? e : {
979
1014
  fieldName: e.fieldName
980
1015
  };
981
1016
  }
982
1017
  function Ki(e) {
983
- return lc(e);
984
- }
985
- function lc(e, t) {
986
- return e == null ? e : { ...dc(e), ...vo(e) };
987
- }
988
- function uc(e) {
989
1018
  return pc(e);
990
1019
  }
991
1020
  function pc(e, t) {
992
- return e == null ? e : {
993
- objectName: e.objectName,
994
- destination: e.destination,
995
- schedule: e.schedule,
996
- requiredFields: N(e, "requiredFields") ? e.requiredFields.map(Ki) : void 0,
997
- optionalFields: N(e, "optionalFields") ? e.optionalFields.map(Ki) : void 0,
998
- optionalFieldsAuto: N(e, "optionalFieldsAuto") ? bo(e.optionalFieldsAuto) : void 0,
999
- backfill: N(e, "backfill") ? go(e.backfill) : void 0
1000
- };
1021
+ return e == null ? e : { ...uc(e), ...Io(e) };
1001
1022
  }
1002
1023
  function fc(e) {
1003
1024
  return hc(e);
1004
1025
  }
1005
1026
  function hc(e, t) {
1006
1027
  return e == null ? e : {
1007
- objects: N(e, "objects") ? e.objects.map(uc) : void 0
1028
+ objectName: e.objectName,
1029
+ destination: e.destination,
1030
+ schedule: e.schedule,
1031
+ requiredFields: N(e, "requiredFields") ? e.requiredFields.map(Ki) : void 0,
1032
+ optionalFields: N(e, "optionalFields") ? e.optionalFields.map(Ki) : void 0,
1033
+ optionalFieldsAuto: N(e, "optionalFieldsAuto") ? vo(e.optionalFieldsAuto) : void 0,
1034
+ backfill: N(e, "backfill") ? go(e.backfill) : void 0,
1035
+ delivery: N(e, "delivery") ? Es(e.delivery) : void 0
1008
1036
  };
1009
1037
  }
1010
1038
  function gc(e) {
@@ -1012,7 +1040,7 @@ function gc(e) {
1012
1040
  }
1013
1041
  function mc(e, t) {
1014
1042
  return e == null ? e : {
1015
- objectName: e.objectName
1043
+ objects: N(e, "objects") ? e.objects.map(fc) : void 0
1016
1044
  };
1017
1045
  }
1018
1046
  function yc(e) {
@@ -1020,7 +1048,7 @@ function yc(e) {
1020
1048
  }
1021
1049
  function wc(e, t) {
1022
1050
  return e == null ? e : {
1023
- objects: N(e, "objects") ? e.objects.map(gc) : void 0
1051
+ objectName: e.objectName
1024
1052
  };
1025
1053
  }
1026
1054
  function Ic(e) {
@@ -1028,29 +1056,37 @@ function Ic(e) {
1028
1056
  }
1029
1057
  function vc(e, t) {
1030
1058
  return e == null ? e : {
1031
- name: e.name,
1032
- displayName: N(e, "displayName") ? e.displayName : void 0,
1033
- provider: e.provider,
1034
- read: N(e, "read") ? fc(e.read) : void 0,
1035
- write: N(e, "write") ? yc(e.write) : void 0,
1036
- proxy: N(e, "proxy") ? sc(e.proxy) : void 0
1059
+ objects: N(e, "objects") ? e.objects.map(yc) : void 0
1037
1060
  };
1038
1061
  }
1039
1062
  function bc(e) {
1040
1063
  return Sc(e);
1041
1064
  }
1042
1065
  function Sc(e, t) {
1066
+ return e == null ? e : {
1067
+ name: e.name,
1068
+ displayName: N(e, "displayName") ? e.displayName : void 0,
1069
+ provider: e.provider,
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
1073
+ };
1074
+ }
1075
+ function Oc(e) {
1076
+ return Cc(e);
1077
+ }
1078
+ function Cc(e, t) {
1043
1079
  return e == null ? e : {
1044
1080
  id: e.id,
1045
1081
  specVersion: e.specVersion,
1046
1082
  createTime: new Date(e.createTime),
1047
- content: Ic(e.content)
1083
+ content: bc(e.content)
1048
1084
  };
1049
1085
  }
1050
1086
  function Li(e) {
1051
- return Oc(e);
1087
+ return Nc(e);
1052
1088
  }
1053
- function Oc(e, t) {
1089
+ function Nc(e, t) {
1054
1090
  return e == null ? e : {
1055
1091
  id: e.id,
1056
1092
  projectId: e.projectId,
@@ -1058,17 +1094,7 @@ function Oc(e, t) {
1058
1094
  provider: e.provider,
1059
1095
  createTime: new Date(e.createTime),
1060
1096
  updateTime: N(e, "updateTime") ? new Date(e.updateTime) : void 0,
1061
- latestRevision: bc(e.latestRevision)
1062
- };
1063
- }
1064
- function Cc(e) {
1065
- return Nc(e);
1066
- }
1067
- function Nc(e, t) {
1068
- return e == null ? e : {
1069
- msg: e.msg,
1070
- operationEventId: N(e, "operation_event_id") ? e.operation_event_id : void 0,
1071
- operationId: N(e, "operation_id") ? e.operation_id : void 0
1097
+ latestRevision: Oc(e.latestRevision)
1072
1098
  };
1073
1099
  }
1074
1100
  function Tc(e) {
@@ -1076,9 +1102,9 @@ function Tc(e) {
1076
1102
  }
1077
1103
  function Rc(e, t) {
1078
1104
  return e == null ? e : {
1079
- timestamp: e.timestamp,
1080
- message: Cc(e.message),
1081
- severity: e.severity
1105
+ msg: e.msg,
1106
+ operationEventId: N(e, "operation_event_id") ? e.operation_event_id : void 0,
1107
+ operationId: N(e, "operation_id") ? e.operation_id : void 0
1082
1108
  };
1083
1109
  }
1084
1110
  function _c(e) {
@@ -1086,8 +1112,9 @@ function _c(e) {
1086
1112
  }
1087
1113
  function Ac(e, t) {
1088
1114
  return e == null ? e : {
1089
- iconURL: N(e, "iconURL") ? e.iconURL : void 0,
1090
- logoURL: N(e, "logoURL") ? e.logoURL : void 0
1115
+ timestamp: e.timestamp,
1116
+ message: Tc(e.message),
1117
+ severity: e.severity
1091
1118
  };
1092
1119
  }
1093
1120
  function xc(e) {
@@ -1104,8 +1131,8 @@ function Ec(e) {
1104
1131
  }
1105
1132
  function Fc(e, t) {
1106
1133
  return e == null ? e : {
1107
- regular: N(e, "regular") ? xc(e.regular) : void 0,
1108
- darkMode: N(e, "darkMode") ? _c(e.darkMode) : void 0
1134
+ iconURL: N(e, "iconURL") ? e.iconURL : void 0,
1135
+ logoURL: N(e, "logoURL") ? e.logoURL : void 0
1109
1136
  };
1110
1137
  }
1111
1138
  function Pc(e) {
@@ -1113,15 +1140,24 @@ function Pc(e) {
1113
1140
  }
1114
1141
  function Dc(e, t) {
1115
1142
  return e == null ? e : {
1116
- workspaceRefField: N(e, "workspaceRefField") ? e.workspaceRefField : void 0,
1117
- consumerRefField: N(e, "consumerRefField") ? e.consumerRefField : void 0,
1118
- scopesField: N(e, "scopesField") ? e.scopesField : void 0
1143
+ regular: N(e, "regular") ? Ec(e.regular) : void 0,
1144
+ darkMode: N(e, "darkMode") ? xc(e.darkMode) : void 0
1119
1145
  };
1120
1146
  }
1121
1147
  function Kc(e) {
1122
1148
  return Lc(e);
1123
1149
  }
1124
1150
  function Lc(e, t) {
1151
+ return e == null ? e : {
1152
+ workspaceRefField: N(e, "workspaceRefField") ? e.workspaceRefField : void 0,
1153
+ consumerRefField: N(e, "consumerRefField") ? e.consumerRefField : void 0,
1154
+ scopesField: N(e, "scopesField") ? e.scopesField : void 0
1155
+ };
1156
+ }
1157
+ function Bc(e) {
1158
+ return Uc(e);
1159
+ }
1160
+ function Uc(e, t) {
1125
1161
  return e == null ? e : {
1126
1162
  grantType: e.grantType,
1127
1163
  authURL: N(e, "authURL") ? e.authURL : void 0,
@@ -1129,12 +1165,12 @@ function Lc(e, t) {
1129
1165
  explicitScopesRequired: e.explicitScopesRequired,
1130
1166
  explicitWorkspaceRequired: e.explicitWorkspaceRequired,
1131
1167
  audience: N(e, "audience") ? e.audience : void 0,
1132
- tokenMetadataFields: Pc(e.tokenMetadataFields),
1168
+ tokenMetadataFields: Kc(e.tokenMetadataFields),
1133
1169
  docsURL: N(e, "docsURL") ? e.docsURL : void 0,
1134
1170
  authURLParams: N(e, "authURLParams") ? e.authURLParams : void 0
1135
1171
  };
1136
1172
  }
1137
- function Bc(e) {
1173
+ function Mc(e) {
1138
1174
  if (e !== void 0)
1139
1175
  return e === null ? null : {
1140
1176
  providerWorkspaceRef: e.providerWorkspaceRef,
@@ -1148,9 +1184,9 @@ function Bc(e) {
1148
1184
  };
1149
1185
  }
1150
1186
  function Bi(e) {
1151
- return Uc(e);
1187
+ return $c(e);
1152
1188
  }
1153
- function Uc(e, t) {
1189
+ function $c(e, t) {
1154
1190
  return e == null ? e : {
1155
1191
  projectId: e.projectId,
1156
1192
  integrationId: e.integrationId,
@@ -1165,12 +1201,12 @@ function Uc(e, t) {
1165
1201
  createTime: N(e, "createTime") ? new Date(e.createTime) : void 0
1166
1202
  };
1167
1203
  }
1168
- function Mc(e) {
1169
- return $c(e);
1204
+ function jc(e) {
1205
+ return qc(e);
1170
1206
  }
1171
- function $c(e, t) {
1207
+ function qc(e, t) {
1172
1208
  return e == null ? e : {
1173
- bulkWrite: us(e.bulkWrite),
1209
+ bulkWrite: ls(e.bulkWrite),
1174
1210
  proxy: e.proxy,
1175
1211
  read: e.read,
1176
1212
  subscribe: e.subscribe,
@@ -1178,94 +1214,94 @@ function $c(e, t) {
1178
1214
  };
1179
1215
  }
1180
1216
  function Ui(e) {
1181
- return jc(e);
1217
+ return Wc(e);
1182
1218
  }
1183
- function jc(e, t) {
1219
+ function Wc(e, t) {
1184
1220
  return e == null ? e : {
1185
1221
  name: e.name,
1186
- authType: Ga(e.authType),
1222
+ authType: Ha(e.authType),
1187
1223
  baseURL: e.baseURL,
1188
- oauth2Opts: N(e, "oauth2Opts") ? Kc(e.oauth2Opts) : void 0,
1189
- apiKeyOpts: N(e, "apiKeyOpts") ? Ha(e.apiKeyOpts) : void 0,
1190
- basicOpts: N(e, "basicOpts") ? cs(e.basicOpts) : void 0,
1191
- support: Mc(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),
1192
1228
  providerOpts: e.providerOpts,
1193
1229
  displayName: N(e, "displayName") ? e.displayName : void 0,
1194
1230
  postAuthInfoNeeded: N(e, "postAuthInfoNeeded") ? e.postAuthInfoNeeded : void 0,
1195
- media: N(e, "media") ? Ec(e.media) : void 0,
1231
+ media: N(e, "media") ? Pc(e.media) : void 0,
1196
1232
  labels: N(e, "labels") ? e.labels : void 0
1197
1233
  };
1198
1234
  }
1199
- function Wc(e) {
1200
- return qc(e);
1235
+ function zc(e) {
1236
+ return Jc(e);
1201
1237
  }
1202
- function qc(e, t) {
1238
+ function Jc(e, t) {
1203
1239
  return e == null ? e : {
1204
1240
  url: e.url,
1205
1241
  bucket: e.bucket,
1206
1242
  path: e.path
1207
1243
  };
1208
1244
  }
1209
- function zc(e) {
1245
+ function Hc(e) {
1210
1246
  if (e !== void 0)
1211
1247
  return e === null ? null : {
1212
1248
  name: e.name,
1213
- metadata: Ps(e.metadata)
1249
+ metadata: Ks(e.metadata)
1214
1250
  };
1215
1251
  }
1216
- function Jc(e) {
1252
+ function Xc(e) {
1217
1253
  if (e !== void 0)
1218
1254
  return e === null ? null : {
1219
1255
  updateMask: e.updateMask,
1220
- destination: zc(e.destination)
1256
+ destination: Hc(e.destination)
1221
1257
  };
1222
1258
  }
1223
- function Hc(e) {
1259
+ function Gc(e) {
1224
1260
  if (e !== void 0)
1225
1261
  return e === null ? null : {
1226
1262
  provider: e.provider,
1227
- read: os(e.read),
1228
- write: ss(e.write),
1263
+ read: ns(e.read),
1264
+ write: os(e.write),
1229
1265
  proxy: mo(e.proxy)
1230
1266
  };
1231
1267
  }
1232
- function Xc(e) {
1268
+ function Vc(e) {
1233
1269
  if (e !== void 0)
1234
1270
  return e === null ? null : {
1235
1271
  revisionId: e.revisionId,
1236
1272
  createdBy: e.createdBy,
1237
- content: Hc(e.content)
1273
+ content: Gc(e.content)
1238
1274
  };
1239
1275
  }
1240
- function Gc(e) {
1276
+ function Yc(e) {
1241
1277
  if (e !== void 0)
1242
1278
  return e === null ? null : {
1243
1279
  connectionId: e.connectionId,
1244
- config: Xc(e.config)
1280
+ config: Vc(e.config)
1245
1281
  };
1246
1282
  }
1247
- function Vc(e) {
1283
+ function Zc(e) {
1248
1284
  if (e !== void 0)
1249
1285
  return e === null ? null : {
1250
1286
  updateMask: e.updateMask,
1251
- installation: Gc(e.installation)
1287
+ installation: Yc(e.installation)
1252
1288
  };
1253
1289
  }
1254
- function Yc(e) {
1290
+ function Qc(e) {
1255
1291
  if (e !== void 0)
1256
1292
  return e === null ? null : {
1257
1293
  appName: e.appName,
1258
1294
  name: e.name
1259
1295
  };
1260
1296
  }
1261
- function Zc(e) {
1297
+ function ed(e) {
1262
1298
  if (e !== void 0)
1263
1299
  return e === null ? null : {
1264
1300
  updateMask: e.updateMask,
1265
- project: Yc(e.project)
1301
+ project: Qc(e.project)
1266
1302
  };
1267
1303
  }
1268
- function Qc(e) {
1304
+ function td(e) {
1269
1305
  if (e !== void 0)
1270
1306
  return e === null ? null : {
1271
1307
  externalRef: e.externalRef,
@@ -1275,14 +1311,14 @@ function Qc(e) {
1275
1311
  scopes: e.scopes
1276
1312
  };
1277
1313
  }
1278
- function ed(e) {
1314
+ function rd(e) {
1279
1315
  if (e !== void 0)
1280
1316
  return e === null ? null : {
1281
1317
  updateMask: e.updateMask,
1282
- providerApp: Qc(e.providerApp)
1318
+ providerApp: td(e.providerApp)
1283
1319
  };
1284
1320
  }
1285
- class td extends de {
1321
+ class nd extends de {
1286
1322
  /**
1287
1323
  * Generate a new connection (only valid for providers with auth types which are not OAuth2 Authorization Code)
1288
1324
  */
@@ -1296,7 +1332,7 @@ class td extends de {
1296
1332
  method: "POST",
1297
1333
  headers: i,
1298
1334
  query: n,
1299
- body: Us(t.generateConnectionParams)
1335
+ body: $s(t.generateConnectionParams)
1300
1336
  }, r);
1301
1337
  return new B(a, (s) => Dr(s));
1302
1338
  }
@@ -1355,7 +1391,7 @@ class td extends de {
1355
1391
  return await (await this.listConnectionsRaw(t, r)).value();
1356
1392
  }
1357
1393
  }
1358
- class rd extends de {
1394
+ class id extends de {
1359
1395
  /**
1360
1396
  * Create a new consumer
1361
1397
  */
@@ -1371,7 +1407,7 @@ class rd extends de {
1371
1407
  method: "POST",
1372
1408
  headers: i,
1373
1409
  query: n,
1374
- body: Ss(t.consumer)
1410
+ body: bs(t.consumer)
1375
1411
  }, r);
1376
1412
  return new ze(a);
1377
1413
  }
@@ -1382,7 +1418,7 @@ class rd extends de {
1382
1418
  await this.createConsumerRaw(t, r);
1383
1419
  }
1384
1420
  }
1385
- class nd extends de {
1421
+ class od extends de {
1386
1422
  /**
1387
1423
  * Create a new destination
1388
1424
  */
@@ -1398,7 +1434,7 @@ class nd extends de {
1398
1434
  method: "POST",
1399
1435
  headers: i,
1400
1436
  query: n,
1401
- body: Cs(t.destination)
1437
+ body: Os(t.destination)
1402
1438
  }, r);
1403
1439
  return new B(a, (s) => kr(s));
1404
1440
  }
@@ -1495,7 +1531,7 @@ class nd extends de {
1495
1531
  method: "PATCH",
1496
1532
  headers: i,
1497
1533
  query: n,
1498
- body: Jc(t.destinationUpdate)
1534
+ body: Xc(t.destinationUpdate)
1499
1535
  }, r);
1500
1536
  return new B(a, (s) => kr(s));
1501
1537
  }
@@ -1506,7 +1542,7 @@ class nd extends de {
1506
1542
  return await (await this.updateDestinationRaw(t, r)).value();
1507
1543
  }
1508
1544
  }
1509
- class id extends de {
1545
+ class ad extends de {
1510
1546
  /**
1511
1547
  * Create a new group
1512
1548
  */
@@ -1522,7 +1558,7 @@ class id extends de {
1522
1558
  method: "POST",
1523
1559
  headers: i,
1524
1560
  query: n,
1525
- body: Ns(t.group)
1561
+ body: Cs(t.group)
1526
1562
  }, r);
1527
1563
  return new ze(a);
1528
1564
  }
@@ -1533,7 +1569,7 @@ class id extends de {
1533
1569
  await this.createGroupRaw(t, r);
1534
1570
  }
1535
1571
  }
1536
- class od extends de {
1572
+ class sd extends de {
1537
1573
  /**
1538
1574
  * Create a new installation
1539
1575
  */
@@ -1551,7 +1587,7 @@ class od extends de {
1551
1587
  method: "POST",
1552
1588
  headers: i,
1553
1589
  query: n,
1554
- body: Rs(t.installation)
1590
+ body: Ts(t.installation)
1555
1591
  }, r);
1556
1592
  return new B(a, (s) => rr(s));
1557
1593
  }
@@ -1630,7 +1666,7 @@ class od extends de {
1630
1666
  method: "POST",
1631
1667
  headers: i,
1632
1668
  query: n,
1633
- body: oc(t.installation)
1669
+ body: sc(t.installation)
1634
1670
  }, r);
1635
1671
  return new B(a, (s) => rr(s));
1636
1672
  }
@@ -1685,7 +1721,7 @@ class od extends de {
1685
1721
  method: "PATCH",
1686
1722
  headers: i,
1687
1723
  query: n,
1688
- body: Vc(t.installationUpdate)
1724
+ body: Zc(t.installationUpdate)
1689
1725
  }, r);
1690
1726
  return new B(a, (s) => rr(s));
1691
1727
  }
@@ -1696,7 +1732,7 @@ class od extends de {
1696
1732
  return await (await this.updateInstallationRaw(t, r)).value();
1697
1733
  }
1698
1734
  }
1699
- class ad extends de {
1735
+ class cd extends de {
1700
1736
  /**
1701
1737
  * Batch upsert a group of integrations
1702
1738
  */
@@ -1710,7 +1746,7 @@ class ad extends de {
1710
1746
  method: "PUT",
1711
1747
  headers: i,
1712
1748
  query: n,
1713
- body: yo(t.batchUpsertIntegrationsRequest)
1749
+ body: cs(t.batchUpsertIntegrationsRequest)
1714
1750
  }, r);
1715
1751
  return new B(a, (s) => s.map(Li));
1716
1752
  }
@@ -1735,7 +1771,7 @@ class ad extends de {
1735
1771
  method: "POST",
1736
1772
  headers: i,
1737
1773
  query: n,
1738
- body: As(t.integration)
1774
+ body: _s(t.integration)
1739
1775
  }, r);
1740
1776
  return new ze(a);
1741
1777
  }
@@ -1792,7 +1828,7 @@ class ad extends de {
1792
1828
  return await (await this.listIntegrationsRaw(t, r)).value();
1793
1829
  }
1794
1830
  }
1795
- class sd extends de {
1831
+ class dd extends de {
1796
1832
  /**
1797
1833
  * Generate a URL for the browser to render to kick off OAuth flow.
1798
1834
  * Get URL for OAuth flow
@@ -1807,9 +1843,9 @@ class sd extends de {
1807
1843
  method: "POST",
1808
1844
  headers: i,
1809
1845
  query: n,
1810
- body: Bc(t.connectOAuthParams)
1846
+ body: Mc(t.connectOAuthParams)
1811
1847
  }, r);
1812
- return this.isJsonMime(a.headers.get("content-type")) ? new B(a) : new Ma(a);
1848
+ return this.isJsonMime(a.headers.get("content-type")) ? new B(a) : new Ba(a);
1813
1849
  }
1814
1850
  /**
1815
1851
  * Generate a URL for the browser to render to kick off OAuth flow.
@@ -1819,7 +1855,7 @@ class sd extends de {
1819
1855
  return await (await this.oauthConnectRaw(t, r)).value();
1820
1856
  }
1821
1857
  }
1822
- class cd extends de {
1858
+ class ld extends de {
1823
1859
  /**
1824
1860
  * Get an operation
1825
1861
  */
@@ -1860,7 +1896,7 @@ class cd extends de {
1860
1896
  headers: i,
1861
1897
  query: n
1862
1898
  }, r);
1863
- return new B(a, (s) => s.map(Tc));
1899
+ return new B(a, (s) => s.map(_c));
1864
1900
  }
1865
1901
  /**
1866
1902
  * List logs for an operation
@@ -1895,7 +1931,7 @@ class cd extends de {
1895
1931
  return await (await this.listOperationsRaw(t, r)).value();
1896
1932
  }
1897
1933
  }
1898
- class dd extends de {
1934
+ class ud extends de {
1899
1935
  /**
1900
1936
  * Create a new project
1901
1937
  */
@@ -1909,7 +1945,7 @@ class dd extends de {
1909
1945
  method: "POST",
1910
1946
  headers: i,
1911
1947
  query: n,
1912
- body: xs(t.project)
1948
+ body: As(t.project)
1913
1949
  }, r);
1914
1950
  return new B(a, (s) => xr(s));
1915
1951
  }
@@ -1998,7 +2034,7 @@ class dd extends de {
1998
2034
  method: "PATCH",
1999
2035
  headers: i,
2000
2036
  query: n,
2001
- body: Zc(t.projectUpdate)
2037
+ body: ed(t.projectUpdate)
2002
2038
  }, r);
2003
2039
  return new B(a, (s) => xr(s));
2004
2040
  }
@@ -2009,7 +2045,7 @@ class dd extends de {
2009
2045
  return await (await this.updateProjectRaw(t, r)).value();
2010
2046
  }
2011
2047
  }
2012
- class ld extends de {
2048
+ class pd extends de {
2013
2049
  /**
2014
2050
  * Get provider
2015
2051
  */
@@ -2053,7 +2089,7 @@ class ld extends de {
2053
2089
  return await (await this.listProvidersRaw(t)).value();
2054
2090
  }
2055
2091
  }
2056
- class ud extends de {
2092
+ class fd extends de {
2057
2093
  /**
2058
2094
  * Create a new provider app
2059
2095
  */
@@ -2069,7 +2105,7 @@ class ud extends de {
2069
2105
  method: "POST",
2070
2106
  headers: i,
2071
2107
  query: n,
2072
- body: ks(t.providerApp)
2108
+ body: xs(t.providerApp)
2073
2109
  }, r);
2074
2110
  return new B(a, (s) => Pr(s));
2075
2111
  }
@@ -2142,7 +2178,7 @@ class ud extends de {
2142
2178
  method: "PATCH",
2143
2179
  headers: i,
2144
2180
  query: n,
2145
- body: ed(t.providerAppUpdate)
2181
+ body: rd(t.providerAppUpdate)
2146
2182
  }, r);
2147
2183
  return new B(a, (s) => Pr(s));
2148
2184
  }
@@ -2153,7 +2189,7 @@ class ud extends de {
2153
2189
  return await (await this.updateProviderAppRaw(t, r)).value();
2154
2190
  }
2155
2191
  }
2156
- class pd extends de {
2192
+ class hd extends de {
2157
2193
  /**
2158
2194
  * Create a new revision
2159
2195
  */
@@ -2169,7 +2205,7 @@ class pd extends de {
2169
2205
  method: "POST",
2170
2206
  headers: i,
2171
2207
  query: n,
2172
- body: yo(t.revision)
2208
+ body: ks(t.revision)
2173
2209
  }, r);
2174
2210
  return new ze(a);
2175
2211
  }
@@ -2202,7 +2238,7 @@ class pd extends de {
2202
2238
  headers: i,
2203
2239
  query: n
2204
2240
  }, r);
2205
- return new B(a, (s) => tc(s));
2241
+ return new B(a, (s) => nc(s));
2206
2242
  }
2207
2243
  /**
2208
2244
  * Hydrate a revision with information from the consumer\'s SaaS instance.
@@ -2212,7 +2248,7 @@ class pd extends de {
2212
2248
  return await (await this.getHydratedRevisionRaw(t, r)).value();
2213
2249
  }
2214
2250
  }
2215
- class fd extends de {
2251
+ class gd extends de {
2216
2252
  /**
2217
2253
  * Generate a signed URL to upload a zip file to.
2218
2254
  */
@@ -2225,7 +2261,7 @@ class fd extends de {
2225
2261
  headers: n,
2226
2262
  query: r
2227
2263
  }, t);
2228
- return new B(i, (a) => Wc(a));
2264
+ return new B(i, (a) => zc(a));
2229
2265
  }
2230
2266
  /**
2231
2267
  * Generate a signed URL to upload a zip file to.
@@ -2234,13 +2270,13 @@ class fd extends de {
2234
2270
  return await (await this.generateUploadUrlRaw(t)).value();
2235
2271
  }
2236
2272
  }
2237
- class hd {
2273
+ class md {
2238
2274
  constructor(t) {
2239
- this.connectionApi = new td(t), this.consumerApi = new rd(t), this.destinationApi = new nd(t), this.groupApi = new id(t), this.installationApi = new od(t), this.integrationApi = new ad(t), this.oAuthApi = new sd(t), this.operationApi = new cd(t), this.projectApi = new dd(t), this.providerApi = new ld(t), this.providerAppApi = new ud(t), this.revisionApi = new pd(t), this.uploadURLApi = new fd(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);
2240
2276
  }
2241
2277
  }
2242
- const gd = "1.9.2", md = "v1", Er = "https://api.withampersand.com";
2243
- function So() {
2278
+ const yd = "1.10.0", wd = "v1", Er = "https://api.withampersand.com";
2279
+ function bo() {
2244
2280
  try {
2245
2281
  const e = process.env.REACT_APP_AMP_SERVER;
2246
2282
  switch (e) {
@@ -2263,27 +2299,27 @@ function So() {
2263
2299
  return Er;
2264
2300
  }
2265
2301
  }
2266
- const yd = (e, t) => `${e}/${t}`;
2267
- function wd() {
2268
- return yd(So(), md);
2302
+ const Id = (e, t) => `${e}/${t}`;
2303
+ function vd() {
2304
+ return Id(bo(), wd);
2269
2305
  }
2270
- const Id = So(), vd = wd(), bd = new po({
2271
- basePath: vd,
2306
+ const bd = bo(), Sd = vd(), Od = new po({
2307
+ basePath: Sd,
2272
2308
  headers: {
2273
2309
  "X-Amp-Client": "react",
2274
- "X-Amp-Client-Version": gd
2310
+ "X-Amp-Client-Version": yd
2275
2311
  }
2276
2312
  });
2277
- let Sd = new hd(bd);
2278
- const X = () => Sd, Oo = _e({
2313
+ let Cd = new md(Od);
2314
+ const X = () => Cd, So = _e({
2279
2315
  integrations: null
2280
- }), Co = () => {
2281
- const e = ve(Oo);
2316
+ }), Oo = () => {
2317
+ const e = ve(So);
2282
2318
  if (!e)
2283
2319
  throw new Error("useIntegrationList must be used within a IntegrationListProvider");
2284
2320
  return e;
2285
2321
  };
2286
- function Od({ projectIdOrName: e, children: t }) {
2322
+ function Nd({ projectIdOrName: e, children: t }) {
2287
2323
  const r = te(), { setError: n, isError: i } = nt(), [a, s] = k(null), [u, p] = k(!0);
2288
2324
  Y(() => {
2289
2325
  X().integrationApi.listIntegrations({ projectIdOrName: e }, {
@@ -2299,20 +2335,20 @@ function Od({ projectIdOrName: e, children: t }) {
2299
2335
  const h = we(() => ({
2300
2336
  integrations: a
2301
2337
  }), [a]);
2302
- return i(Z.INTEGRATION_LIST, e) ? /* @__PURE__ */ l(qe, { message: "Error retrieving integrations for the project, double check the API key" }) : /* @__PURE__ */ l(Oo.Provider, { value: h, children: u ? /* @__PURE__ */ l(De, {}) : t });
2338
+ return i(Z.INTEGRATION_LIST, e) ? /* @__PURE__ */ l(We, { message: "Error retrieving integrations for the project, double check the API key" }) : /* @__PURE__ */ l(So.Provider, { value: h, children: u ? /* @__PURE__ */ l(De, {}) : t });
2303
2339
  }
2304
- const No = _e({
2340
+ const Co = _e({
2305
2341
  project: null,
2306
2342
  appName: "",
2307
2343
  projectId: "",
2308
2344
  projectIdOrName: ""
2309
2345
  }), ee = () => {
2310
- const e = ve(No);
2346
+ const e = ve(Co);
2311
2347
  if (!e)
2312
2348
  throw new Error("useProject must be used within a ProjectProvider");
2313
2349
  return e;
2314
2350
  };
2315
- function Cd({ projectIdOrName: e, children: t }) {
2351
+ function Td({ projectIdOrName: e, children: t }) {
2316
2352
  const r = te(), { isError: n, setError: i } = nt(), [a, s] = k(null), [u, p] = k(!0);
2317
2353
  Y(() => {
2318
2354
  X().projectApi.getProject({ projectIdOrName: e }, {
@@ -2331,9 +2367,9 @@ function Cd({ projectIdOrName: e, children: t }) {
2331
2367
  project: a,
2332
2368
  appName: (a == null ? void 0 : a.appName) || ""
2333
2369
  }), [e, a]);
2334
- return n(Z.PROJECT, e) ? /* @__PURE__ */ l(qe, { message: `Error loading project ${e}` }) : /* @__PURE__ */ l(No.Provider, { value: h, children: u ? /* @__PURE__ */ l(De, {}) : t });
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 });
2335
2371
  }
2336
- function Hp(e) {
2372
+ function Gp(e) {
2337
2373
  const { options: { apiKey: t, projectId: r, project: n }, children: i } = e, a = n || r;
2338
2374
  if (r && n)
2339
2375
  throw new Error("Use AmpersandProvider either with projectId or project but not both.");
@@ -2341,26 +2377,26 @@ function Hp(e) {
2341
2377
  throw new Error("Cannot use AmpersandProvider without a projectId or name.");
2342
2378
  if (!t)
2343
2379
  throw new Error("Cannot use AmpersandProvider without an apiKey.");
2344
- return /* @__PURE__ */ l(xa, { children: /* @__PURE__ */ l(Fa, { children: /* @__PURE__ */ l(ka, { value: t, children: /* @__PURE__ */ l(Cd, { projectIdOrName: a, children: /* @__PURE__ */ l(Od, { 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 }) }) }) }) });
2345
2381
  }
2346
- const Nd = _e(null);
2347
- function Xp() {
2348
- const e = ve(Nd);
2382
+ const Rd = _e(null);
2383
+ function Vp() {
2384
+ const e = ve(Rd);
2349
2385
  if (!e)
2350
2386
  throw new Error(`Cannot call useAmpersandProvider unless your
2351
2387
  component is wrapped with AmpersandProvider`);
2352
2388
  return e;
2353
2389
  }
2354
- function To(e) {
2390
+ function No(e) {
2355
2391
  return e.charAt(0).toUpperCase() + e.slice(1);
2356
2392
  }
2357
2393
  function vt(e, t) {
2358
- return (t == null ? void 0 : t.displayName) ?? To(e);
2394
+ return (t == null ? void 0 : t.displayName) ?? No(e);
2359
2395
  }
2360
- const Ro = (e) => e.split(`
2361
- `).filter((r) => r.trim() !== ""), Td = (e, t) => (t == null ? void 0 : t.length) === 0 || !e ? null : t.find(
2396
+ const To = (e) => e.split(`
2397
+ `).filter((r) => r.trim() !== ""), _d = (e, t) => (t == null ? void 0 : t.length) === 0 || !e ? null : t.find(
2362
2398
  (r) => r.name === e
2363
- ) ?? null, _o = _e({
2399
+ ) ?? null, Ro = _e({
2364
2400
  integrationId: "",
2365
2401
  provider: "",
2366
2402
  integrationObj: void 0,
@@ -2377,12 +2413,12 @@ const Ro = (e) => e.split(`
2377
2413
  onUpdateSuccess: void 0
2378
2414
  });
2379
2415
  function Ke() {
2380
- const e = ve(_o);
2416
+ const e = ve(Ro);
2381
2417
  if (!e)
2382
2418
  throw new Error("useInstallIntegrationProps must be used within an InstallIntegrationProvider");
2383
2419
  return e;
2384
2420
  }
2385
- function Rd({
2421
+ function Ad({
2386
2422
  children: e,
2387
2423
  integration: t,
2388
2424
  consumerRef: r,
@@ -2392,8 +2428,8 @@ function Rd({
2392
2428
  onInstallSuccess: s,
2393
2429
  onUpdateSuccess: u
2394
2430
  }) {
2395
- const p = te(), { projectId: h } = ee(), { integrations: m } = Co(), [w, y] = k([]), [I, b] = k(!0), { setError: v, isError: S } = nt(), R = (w == null ? void 0 : w[0]) || null, C = we(
2396
- () => Td(t, m || []),
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(
2432
+ () => _d(t, m || []),
2397
2433
  [t, m]
2398
2434
  );
2399
2435
  Y(() => {
@@ -2449,11 +2485,11 @@ function Rd({
2449
2485
  ]);
2450
2486
  if (C !== null) {
2451
2487
  const H = `Error retrieving installation information for integration "${(C == null ? void 0 : C.name) || "unknown"}"`;
2452
- return S(Z.INSTALLATION_LIST, M) ? /* @__PURE__ */ l(qe, { message: H }) : /* @__PURE__ */ l(_o.Provider, { value: ie, children: I ? /* @__PURE__ */ l(De, {}) : e });
2488
+ return S(Z.INSTALLATION_LIST, M) ? /* @__PURE__ */ l(We, { message: H }) : /* @__PURE__ */ l(Ro.Provider, { value: ie, children: I ? /* @__PURE__ */ l(De, {}) : e });
2453
2489
  }
2454
- return /* @__PURE__ */ l(qe, { message: `Integration "${t}" not found` });
2490
+ return /* @__PURE__ */ l(We, { message: `Integration "${t}" not found` });
2455
2491
  }
2456
- const Ao = _e({
2492
+ const _o = _e({
2457
2493
  connections: null,
2458
2494
  selectedConnection: null,
2459
2495
  setConnections: () => {
@@ -2461,12 +2497,12 @@ const Ao = _e({
2461
2497
  setSelectedConnection: () => {
2462
2498
  }
2463
2499
  }), Lt = () => {
2464
- const e = ve(Ao);
2500
+ const e = ve(_o);
2465
2501
  if (!e)
2466
2502
  throw new Error("useConnections must be used within a ConnectionsProvider");
2467
2503
  return e;
2468
2504
  };
2469
- function xo({
2505
+ function Ao({
2470
2506
  provider: e,
2471
2507
  groupRef: t,
2472
2508
  children: r
@@ -2494,7 +2530,7 @@ function xo({
2494
2530
  setConnections: s,
2495
2531
  setSelectedConnection: p
2496
2532
  }), [a, u, s, p]);
2497
- return y(Z.CONNECTION_LIST, i) ? /* @__PURE__ */ l(qe, { message: "Error retrieving existing connections" }) : /* @__PURE__ */ l(Ao.Provider, { value: v, children: h ? /* @__PURE__ */ l(De, {}) : r });
2533
+ return y(Z.CONNECTION_LIST, i) ? /* @__PURE__ */ l(We, { message: "Error retrieving existing connections" }) : /* @__PURE__ */ l(_o.Provider, { value: v, children: h ? /* @__PURE__ */ l(De, {}) : r });
2498
2534
  }
2499
2535
  var et = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
2500
2536
  function Ni(e) {
@@ -2562,10 +2598,10 @@ $r.exports;
2562
2598
  c[++o] = f;
2563
2599
  }), c;
2564
2600
  }
2565
- var yr = Array.prototype, Sn = Function.prototype, Tt = Object.prototype, Ge = ce["__core-js_shared__"], jt = Sn.toString, ue = Tt.hasOwnProperty, Wt = function() {
2601
+ var yr = Array.prototype, Sn = Function.prototype, Tt = Object.prototype, Ge = ce["__core-js_shared__"], jt = Sn.toString, ue = Tt.hasOwnProperty, qt = function() {
2566
2602
  var d = /[^.]+$/.exec(Ge && Ge.keys && Ge.keys.IE_PROTO || "");
2567
2603
  return d ? "Symbol(src)_1." + d : "";
2568
- }(), qt = Tt.toString, On = RegExp(
2604
+ }(), Wt = Tt.toString, On = RegExp(
2569
2605
  "^" + jt.call(ue).replace(mn, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
2570
2606
  ), wr = Mt ? ce.Buffer : void 0, he = ce.Symbol, it = ce.Uint8Array, Ir = Tt.propertyIsEnumerable, vr = yr.splice, Be = he ? he.toStringTag : void 0, zt = Object.getOwnPropertySymbols, ot = wr ? wr.isBuffer : void 0, Cn = xe(Object.keys, Object), Se = Ye(ce, "DataView"), at = Ye(ce, "Map"), Jt = Ye(ce, "Promise"), Ht = Ye(ce, "Set"), Xt = Ye(ce, "WeakMap"), st = Ye(Object, "create"), Oe = Te(Se), Nn = Te(at), Tn = Te(Jt), Rn = Te(Ht), _n = Te(Xt), br = he ? he.prototype : void 0, ke = br ? br.valueOf : void 0;
2571
2607
  function Ue(d) {
@@ -2680,10 +2716,10 @@ $r.exports;
2680
2716
  var o = this.__data__, c = o.delete(d);
2681
2717
  return this.size = o.size, c;
2682
2718
  }
2683
- function Wn(d) {
2719
+ function qn(d) {
2684
2720
  return this.__data__.get(d);
2685
2721
  }
2686
- function qn(d) {
2722
+ function Wn(d) {
2687
2723
  return this.__data__.has(d);
2688
2724
  }
2689
2725
  function zn(d, o) {
@@ -2696,7 +2732,7 @@ $r.exports;
2696
2732
  }
2697
2733
  return c.set(d, o), this.size = c.size, this;
2698
2734
  }
2699
- Ee.prototype.clear = Sr, Ee.prototype.delete = jn, Ee.prototype.get = Wn, Ee.prototype.has = qn, Ee.prototype.set = zn;
2735
+ Ee.prototype.clear = Sr, Ee.prototype.delete = jn, Ee.prototype.get = qn, Ee.prototype.has = Wn, Ee.prototype.set = zn;
2700
2736
  function Jn(d, o) {
2701
2737
  var c = ut(d), f = !c && ni(d), O = !c && !f && Ft(d), T = !c && !f && !O && tr(d), x = c || f || O || T, P = x ? vn(d.length, String) : [], E = P.length;
2702
2738
  for (var F in d)
@@ -2729,16 +2765,16 @@ $r.exports;
2729
2765
  function xt(d, o, c, f, O, T) {
2730
2766
  var x = ut(d), P = ut(o), E = x ? p : ge(d), F = P ? p : ge(o);
2731
2767
  E = E == u ? C : E, F = F == u ? C : F;
2732
- var W = E == C, q = F == C, G = E == F;
2768
+ var q = E == C, W = F == C, G = E == F;
2733
2769
  if (G && Ft(d)) {
2734
2770
  if (!Ft(o))
2735
2771
  return !1;
2736
- x = !0, W = !1;
2772
+ x = !0, q = !1;
2737
2773
  }
2738
- if (G && !W)
2774
+ if (G && !q)
2739
2775
  return T || (T = new Ee()), x || tr(d) ? Yt(d, o, c, f, O, T) : Vn(d, o, E, c, f, O, T);
2740
2776
  if (!(c & i)) {
2741
- var oe = W && ue.call(d, "__wrapped__"), ae = q && ue.call(o, "__wrapped__");
2777
+ var oe = q && ue.call(d, "__wrapped__"), ae = W && ue.call(o, "__wrapped__");
2742
2778
  if (oe || ae) {
2743
2779
  var Re = oe ? d.value() : d, $e = ae ? o.value() : o;
2744
2780
  return T || (T = new Ee()), O(Re, $e, c, f, T);
@@ -2770,15 +2806,15 @@ $r.exports;
2770
2806
  var F = T.get(d);
2771
2807
  if (F && T.get(o))
2772
2808
  return F == o;
2773
- var W = -1, q = !0, G = c & a ? new ct() : void 0;
2774
- for (T.set(d, o), T.set(o, d); ++W < P; ) {
2775
- var oe = d[W], ae = o[W];
2809
+ var q = -1, W = !0, G = c & a ? new ct() : void 0;
2810
+ for (T.set(d, o), T.set(o, d); ++q < P; ) {
2811
+ var oe = d[q], ae = o[q];
2776
2812
  if (f)
2777
- var Re = x ? f(ae, oe, W, o, d, T) : f(oe, ae, W, d, o, T);
2813
+ var Re = x ? f(ae, oe, q, o, d, T) : f(oe, ae, q, d, o, T);
2778
2814
  if (Re !== void 0) {
2779
2815
  if (Re)
2780
2816
  continue;
2781
- q = !1;
2817
+ W = !1;
2782
2818
  break;
2783
2819
  }
2784
2820
  if (G) {
@@ -2786,15 +2822,15 @@ $r.exports;
2786
2822
  if (!Ct(G, ft) && (oe === $e || O(oe, $e, c, f, T)))
2787
2823
  return G.push(ft);
2788
2824
  })) {
2789
- q = !1;
2825
+ W = !1;
2790
2826
  break;
2791
2827
  }
2792
2828
  } else if (!(oe === ae || O(oe, ae, c, f, T))) {
2793
- q = !1;
2829
+ W = !1;
2794
2830
  break;
2795
2831
  }
2796
2832
  }
2797
- return T.delete(d), T.delete(o), q;
2833
+ return T.delete(d), T.delete(o), W;
2798
2834
  }
2799
2835
  function Vn(d, o, c, f, O, T, x) {
2800
2836
  switch (c) {
@@ -2823,8 +2859,8 @@ $r.exports;
2823
2859
  if (F)
2824
2860
  return F == o;
2825
2861
  f |= a, x.set(d, o);
2826
- var W = Yt(P(d), P(o), f, O, T, x);
2827
- return x.delete(d), W;
2862
+ var q = Yt(P(d), P(o), f, O, T, x);
2863
+ return x.delete(d), q;
2828
2864
  case se:
2829
2865
  if (ke)
2830
2866
  return ke.call(d) == ke.call(o);
@@ -2832,11 +2868,11 @@ $r.exports;
2832
2868
  return !1;
2833
2869
  }
2834
2870
  function Yn(d, o, c, f, O, T) {
2835
- var x = c & i, P = Nr(d), E = P.length, F = Nr(o), W = F.length;
2836
- if (E != W && !x)
2871
+ var x = c & i, P = Nr(d), E = P.length, F = Nr(o), q = F.length;
2872
+ if (E != q && !x)
2837
2873
  return !1;
2838
- for (var q = E; q--; ) {
2839
- var G = P[q];
2874
+ for (var W = E; W--; ) {
2875
+ var G = P[W];
2840
2876
  if (!(x ? G in o : ue.call(o, G)))
2841
2877
  return !1;
2842
2878
  }
@@ -2845,8 +2881,8 @@ $r.exports;
2845
2881
  return oe == o;
2846
2882
  var ae = !0;
2847
2883
  T.set(d, o), T.set(o, d);
2848
- for (var Re = x; ++q < E; ) {
2849
- G = P[q];
2884
+ for (var Re = x; ++W < E; ) {
2885
+ G = P[W];
2850
2886
  var $e = d[G], ft = o[G];
2851
2887
  if (f)
2852
2888
  var Pi = x ? f(ft, $e, G, o, d, T) : f($e, ft, G, d, o, T);
@@ -2880,7 +2916,7 @@ $r.exports;
2880
2916
  var f = !0;
2881
2917
  } catch {
2882
2918
  }
2883
- var O = qt.call(d);
2919
+ var O = Wt.call(d);
2884
2920
  return f && (o ? d[Be] = c : delete d[Be]), O;
2885
2921
  }
2886
2922
  var Qn = zt ? function(d) {
@@ -2913,14 +2949,14 @@ $r.exports;
2913
2949
  return o == "string" || o == "number" || o == "symbol" || o == "boolean" ? d !== "__proto__" : d === null;
2914
2950
  }
2915
2951
  function ri(d) {
2916
- return !!Wt && Wt in d;
2952
+ return !!qt && qt in d;
2917
2953
  }
2918
2954
  function kt(d) {
2919
2955
  var o = d && d.constructor, c = typeof o == "function" && o.prototype || Tt;
2920
2956
  return d === c;
2921
2957
  }
2922
2958
  function Zt(d) {
2923
- return qt.call(d);
2959
+ return Wt.call(d);
2924
2960
  }
2925
2961
  function Te(d) {
2926
2962
  if (d != null) {
@@ -2978,41 +3014,41 @@ $r.exports;
2978
3014
  }
2979
3015
  e.exports = Me;
2980
3016
  })($r, $r.exports);
2981
- var _d = $r.exports;
2982
- const Ad = /* @__PURE__ */ Ni(_d), yt = "other";
3017
+ var xd = $r.exports;
3018
+ const kd = /* @__PURE__ */ Ni(xd), yt = "other";
2983
3019
  function tt(e) {
2984
3020
  return e.mapToName !== void 0;
2985
3021
  }
2986
- function xd(e, t) {
3022
+ function Ed(e, t) {
2987
3023
  var r;
2988
3024
  return ((r = e == null ? void 0 : e.objects) == null ? void 0 : r.find((n) => n.objectName === t)) || null;
2989
3025
  }
2990
- function kd(e) {
3026
+ function Fd(e) {
2991
3027
  var t;
2992
3028
  return ((t = e == null ? void 0 : e.requiredFields) == null ? void 0 : t.filter(
2993
3029
  (r) => !tt(r) && !!r.fieldName
2994
3030
  )) || null;
2995
3031
  }
2996
- function Ed(e) {
3032
+ function Pd(e) {
2997
3033
  var r;
2998
3034
  return ((r = e == null ? void 0 : e.requiredFields) == null ? void 0 : r.filter(
2999
3035
  (n) => tt(n) && !!n.mapToName
3000
3036
  )) || [];
3001
3037
  }
3002
- function Fd(e) {
3038
+ function Dd(e) {
3003
3039
  var t;
3004
3040
  return ((t = e == null ? void 0 : e.optionalFields) == null ? void 0 : t.filter(
3005
3041
  (r) => !tt(r) && !!r.fieldName
3006
3042
  )) || null;
3007
3043
  }
3008
- const ko = (e, t) => {
3044
+ const xo = (e, t) => {
3009
3045
  var r, n, i;
3010
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];
3011
3047
  };
3012
- function Pd(e) {
3048
+ function Kd(e) {
3013
3049
  return tt(e) ? e.mapToName : e.fieldName;
3014
3050
  }
3015
- const Eo = (e, t) => {
3051
+ const ko = (e, t) => {
3016
3052
  var n, i, a;
3017
3053
  const r = [];
3018
3054
  return (a = (i = (n = t.content) == null ? void 0 : n.read) == null ? void 0 : i.objects) == null || a.forEach((s) => {
@@ -3021,36 +3057,36 @@ const Eo = (e, t) => {
3021
3057
  name: s == null ? void 0 : s.objectName,
3022
3058
  // if no config, object is not completed
3023
3059
  // object is completed if the key exists in the config
3024
- completed: e ? !!ko(e, s.objectName) : !1
3060
+ completed: e ? !!xo(e, s.objectName) : !1
3025
3061
  }
3026
3062
  );
3027
3063
  }), r;
3028
- }, Fo = (e) => {
3064
+ }, Eo = (e) => {
3029
3065
  var r;
3030
3066
  return {
3031
3067
  name: yt,
3032
3068
  completed: e ? !!((r = e == null ? void 0 : e.content) != null && r.write) : !1
3033
3069
  };
3034
3070
  };
3035
- function Dd(e, t) {
3071
+ function Ld(e, t) {
3036
3072
  var a;
3037
- const r = Eo(e, t), i = !!((a = t == null ? void 0 : t.content) != null && a.write) ? Fo(e) : void 0;
3073
+ const r = ko(e, t), i = !!((a = t == null ? void 0 : t.content) != null && a.write) ? Eo(e) : void 0;
3038
3074
  return i && r.push(i), r;
3039
3075
  }
3040
- function Po(e, t, r) {
3076
+ function Fo(e, t, r) {
3041
3077
  const n = (e == null ? void 0 : e.filter(
3042
3078
  (a) => !(t != null && t[a == null ? void 0 : a.mapToName])
3043
3079
  )) || [], i = n.map((a) => a.mapToName);
3044
3080
  return r(Z.MAPPING, i), n != null && n.length && console.error("required fields not met", n.map((a) => a.mapToDisplayName)), { errorList: i };
3045
3081
  }
3046
3082
  function Ti(e, t) {
3047
- return Ad(e, t);
3083
+ return kd(e, t);
3048
3084
  }
3049
- const Kd = (e, t, r) => {
3085
+ const Bd = (e, t, r) => {
3050
3086
  var I, b, v, S, R, C;
3051
3087
  if (!e)
3052
3088
  return null;
3053
- const n = xd(e, t), i = n && kd(n), a = n && Fd(n), s = n && Ed(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 };
3054
3090
  return {
3055
3091
  allFields: u,
3056
3092
  // from hydrated revision
@@ -3072,7 +3108,7 @@ const Kd = (e, t, r) => {
3072
3108
  // from config
3073
3109
  }
3074
3110
  };
3075
- }, Ld = (e, t) => {
3111
+ }, Ud = (e, t) => {
3076
3112
  var s, u;
3077
3113
  if (!e)
3078
3114
  return null;
@@ -3090,33 +3126,33 @@ const Kd = (e, t, r) => {
3090
3126
  }
3091
3127
  };
3092
3128
  };
3093
- function Do(e, t, r) {
3129
+ function Po(e, t, r) {
3094
3130
  var a, s;
3095
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;
3096
3132
  return {
3097
- read: Kd(n, t, r),
3098
- write: Ld(i, r)
3133
+ read: Bd(n, t, r),
3134
+ write: Ud(i, r)
3099
3135
  };
3100
3136
  }
3101
- const Ko = (e, t, r, n) => {
3102
- const i = Do(
3137
+ const Do = (e, t, r, n) => {
3138
+ const i = Po(
3103
3139
  e,
3104
3140
  r,
3105
3141
  t
3106
3142
  );
3107
3143
  n(r, i);
3108
- }, Bd = (e, t, r) => {
3109
- const n = Dd(t, e), i = {};
3144
+ }, Md = (e, t, r) => {
3145
+ const n = Ld(t, e), i = {};
3110
3146
  n.forEach(({ name: a, completed: s }) => {
3111
- s && (i[a] = Do(
3147
+ s && (i[a] = Po(
3112
3148
  e,
3113
3149
  a,
3114
3150
  t
3115
3151
  ));
3116
3152
  }), r(i);
3117
- }, Lo = (e) => {
3153
+ }, Ko = (e) => {
3118
3154
  const { requiredFields: t, selectedOptionalFields: r } = (e == null ? void 0 : e.read) || {}, n = /* @__PURE__ */ new Set();
3119
- return t == null || t.forEach((a) => n.add(Pd(a))), {
3155
+ return t == null || t.forEach((a) => n.add(Kd(a))), {
3120
3156
  ...Array.from(n).reduce((a, s) => ({
3121
3157
  ...a,
3122
3158
  [s]: !0
@@ -3124,7 +3160,7 @@ const Ko = (e, t, r, n) => {
3124
3160
  ...r || {}
3125
3161
  // adds optional fields that are selected (true)
3126
3162
  };
3127
- }, Bo = (e) => {
3163
+ }, Lo = (e) => {
3128
3164
  const { selectedFieldMappings: t } = (e == null ? void 0 : e.read) || {}, r = {};
3129
3165
  return t && Object.keys(t).forEach(
3130
3166
  (n) => {
@@ -3132,7 +3168,7 @@ const Ko = (e, t, r, n) => {
3132
3168
  }
3133
3169
  ), r;
3134
3170
  };
3135
- function Uo(e, t) {
3171
+ function Bo(e, t) {
3136
3172
  return t[e] || void 0;
3137
3173
  }
3138
3174
  function Ri({
@@ -3169,13 +3205,13 @@ function Qr(e) {
3169
3205
  var t;
3170
3206
  return (t = e.content.proxy) == null ? void 0 : t.enabled;
3171
3207
  }
3172
- const Ud = (e, t) => {
3208
+ const $d = (e, t) => {
3173
3209
  const r = e.content.read, n = r == null ? void 0 : r.objects;
3174
3210
  return n == null ? void 0 : n.find((i) => i.objectName === t);
3175
- }, Md = (e, t, r, n) => {
3176
- const i = Lo(e), a = Bo(
3211
+ }, jd = (e, t, r, n) => {
3212
+ const i = Ko(e), a = Lo(
3177
3213
  e
3178
- ), s = Ud(r, t);
3214
+ ), s = $d(r, t);
3179
3215
  if (!s)
3180
3216
  return console.error(`Error when getting object from hydratedRevision for objectName: ${t}`), null;
3181
3217
  const u = {
@@ -3198,8 +3234,8 @@ const Ud = (e, t) => {
3198
3234
  }
3199
3235
  };
3200
3236
  return Qr(r) && (u.content.proxy = { enabled: !0 }), u;
3201
- }, $d = (e, t, r, n, i, a, s, u, p, h, m) => {
3202
- const w = Md(
3237
+ }, qd = (e, t, r, n, i, a, s, u, p, h, m) => {
3238
+ const w = jd(
3203
3239
  p,
3204
3240
  a,
3205
3241
  u,
@@ -3215,7 +3251,7 @@ const Ud = (e, t) => {
3215
3251
  setInstallation: h,
3216
3252
  onInstallSuccess: m
3217
3253
  }) : (console.error("Error when generating createConfig from configureState"), Promise.resolve(null));
3218
- }, Mo = (e) => {
3254
+ }, Uo = (e) => {
3219
3255
  var a, s;
3220
3256
  const t = {}, r = (a = e.write) == null ? void 0 : a.writeObjects, n = (s = e.write) == null ? void 0 : s.selectedNonConfigurableWriteFields, i = n ? Object.keys(n) : [];
3221
3257
  return r && r.forEach((u) => {
@@ -3224,13 +3260,13 @@ const Ud = (e, t) => {
3224
3260
  objectName: p
3225
3261
  });
3226
3262
  }), t;
3227
- }, jd = (e) => {
3263
+ }, Wd = (e) => {
3228
3264
  const t = e.content.write;
3229
3265
  return t == null ? void 0 : t.objects;
3230
- }, Wd = (e, t, r) => {
3231
- if (!jd(t))
3266
+ }, zd = (e, t, r) => {
3267
+ if (!Wd(t))
3232
3268
  return console.error("Error when getting write objects from hydratedRevision"), null;
3233
- const i = Mo(e), a = {
3269
+ const i = Uo(e), a = {
3234
3270
  revisionId: t.id,
3235
3271
  createdBy: `consumer:${r}`,
3236
3272
  content: {
@@ -3246,8 +3282,8 @@ const Ud = (e, t) => {
3246
3282
  }
3247
3283
  };
3248
3284
  return Qr(t) && (a.content.proxy = { enabled: !0 }), a;
3249
- }, qd = (e, t, r, n, i, a, s, u, p, h) => {
3250
- const m = Wd(
3285
+ }, Jd = (e, t, r, n, i, a, s, u, p, h) => {
3286
+ const m = zd(
3251
3287
  u,
3252
3288
  s,
3253
3289
  n
@@ -3263,7 +3299,7 @@ const Ud = (e, t) => {
3263
3299
  onInstallSuccess: h
3264
3300
  }) : (console.error("Error when generating createConfig from configureState"), Promise.resolve(null));
3265
3301
  };
3266
- function zd() {
3302
+ function Hd() {
3267
3303
  return /* @__PURE__ */ A("svg", { width: "18", height: "18", viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
3268
3304
  /* @__PURE__ */ l("path", { d: "M2.25 4.5H3.75H15.75", stroke: "#991B1B", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
3269
3305
  /* @__PURE__ */ l(
@@ -3280,7 +3316,7 @@ function zd() {
3280
3316
  /* @__PURE__ */ l("path", { d: "M10.5 8.25V12.75", stroke: "#991B1B", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" })
3281
3317
  ] });
3282
3318
  }
3283
- const $o = "uninstall-installation", Jd = Si(
3319
+ const Mo = "uninstall-installation", Xd = Si(
3284
3320
  ({ text: e = "Uninstall" }, t) => {
3285
3321
  const r = oo({ ref: t }), n = ao("Tabs", r);
3286
3322
  return /* @__PURE__ */ A(
@@ -3300,7 +3336,7 @@ const $o = "uninstall-installation", Jd = Si(
3300
3336
  my: 2,
3301
3337
  mx: 4,
3302
3338
  children: [
3303
- zd(),
3339
+ Hd(),
3304
3340
  /* @__PURE__ */ l(J, { textAlign: "left", children: /* @__PURE__ */ l(Ie, { color: "red.800", children: e }) })
3305
3341
  ]
3306
3342
  }
@@ -3310,16 +3346,16 @@ const $o = "uninstall-installation", Jd = Si(
3310
3346
  }
3311
3347
  );
3312
3348
  }
3313
- ), jo = _e({
3349
+ ), $o = _e({
3314
3350
  hydratedRevision: null,
3315
3351
  loading: !1
3316
3352
  }), dr = () => {
3317
- const e = ve(jo);
3353
+ const e = ve($o);
3318
3354
  if (!e)
3319
3355
  throw new Error("useHydratedRevision must be used within a HydratedRevisionProvider");
3320
3356
  return e;
3321
3357
  };
3322
- function Hd({
3358
+ function Gd({
3323
3359
  projectId: e,
3324
3360
  children: t
3325
3361
  }) {
@@ -3354,9 +3390,9 @@ function Hd({
3354
3390
  hydratedRevision: a,
3355
3391
  loading: u
3356
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'`;
3357
- return /* @__PURE__ */ l(jo.Provider, { value: S, children: h(Z.HYDRATED_REVISION, v) ? /* @__PURE__ */ l(qe, { message: C }) : t });
3393
+ return /* @__PURE__ */ l($o.Provider, { value: S, children: h(Z.HYDRATED_REVISION, v) ? /* @__PURE__ */ l(We, { message: C }) : t });
3358
3394
  }
3359
- var Wo = Symbol.for("immer-nothing"), Mi = Symbol.for("immer-draftable"), pe = Symbol.for("immer-state"), Xd = 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" ? [
3360
3396
  // All error codes, starting by 0:
3361
3397
  function(e) {
3362
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.`;
@@ -3389,7 +3425,7 @@ var Wo = Symbol.for("immer-nothing"), Mi = Symbol.for("immer-draftable"), pe = S
3389
3425
  ] : [];
3390
3426
  function le(e, ...t) {
3391
3427
  if (process.env.NODE_ENV !== "production") {
3392
- const r = Xd[e], n = typeof r == "function" ? r.apply(null, t) : r;
3428
+ const r = Vd[e], n = typeof r == "function" ? r.apply(null, t) : r;
3393
3429
  throw new Error(`[Immer] ${n}`);
3394
3430
  }
3395
3431
  throw new Error(
@@ -3404,7 +3440,7 @@ function wt(e) {
3404
3440
  var t;
3405
3441
  return e ? qo(e) || Array.isArray(e) || !!e[Mi] || !!((t = e.constructor) != null && t[Mi]) || tn(e) || rn(e) : !1;
3406
3442
  }
3407
- var Gd = Object.prototype.constructor.toString();
3443
+ var Yd = Object.prototype.constructor.toString();
3408
3444
  function qo(e) {
3409
3445
  if (!e || typeof e != "object")
3410
3446
  return !1;
@@ -3412,7 +3448,7 @@ function qo(e) {
3412
3448
  if (t === null)
3413
3449
  return !0;
3414
3450
  const r = Object.hasOwnProperty.call(t, "constructor") && t.constructor;
3415
- return r === Object ? !0 : typeof r == "function" && Function.toString.call(r) === Gd;
3451
+ return r === Object ? !0 : typeof r == "function" && Function.toString.call(r) === Yd;
3416
3452
  }
3417
3453
  function jr(e, t) {
3418
3454
  en(e) === 0 ? Reflect.ownKeys(e).forEach((r) => {
@@ -3426,11 +3462,11 @@ function en(e) {
3426
3462
  function ui(e, t) {
3427
3463
  return en(e) === 2 ? e.has(t) : Object.prototype.hasOwnProperty.call(e, t);
3428
3464
  }
3429
- function zo(e, t, r) {
3465
+ function Wo(e, t, r) {
3430
3466
  const n = en(e);
3431
3467
  n === 2 ? e.set(t, r) : n === 3 ? e.add(r) : e[t] = r;
3432
3468
  }
3433
- function Vd(e, t) {
3469
+ function Zd(e, t) {
3434
3470
  return e === t ? e !== 0 || 1 / e === 1 / t : e !== e && t !== t;
3435
3471
  }
3436
3472
  function tn(e) {
@@ -3474,24 +3510,24 @@ function pi(e, t) {
3474
3510
  }
3475
3511
  }
3476
3512
  function _i(e, t = !1) {
3477
- return nn(e) || Dt(e) || !wt(e) || (en(e) > 1 && (e.set = e.add = e.clear = e.delete = Yd), 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;
3478
3514
  }
3479
- function Yd() {
3515
+ function Qd() {
3480
3516
  le(2);
3481
3517
  }
3482
3518
  function nn(e) {
3483
3519
  return Object.isFrozen(e);
3484
3520
  }
3485
- var Zd = {};
3521
+ var el = {};
3486
3522
  function It(e) {
3487
- const t = Zd[e];
3523
+ const t = el[e];
3488
3524
  return t || le(0, e), t;
3489
3525
  }
3490
3526
  var ar;
3491
- function Jo() {
3527
+ function zo() {
3492
3528
  return ar;
3493
3529
  }
3494
- function Qd(e, t) {
3530
+ function tl(e, t) {
3495
3531
  return {
3496
3532
  drafts_: [],
3497
3533
  parent_: e,
@@ -3506,49 +3542,49 @@ function $i(e, t) {
3506
3542
  t && (It("Patches"), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
3507
3543
  }
3508
3544
  function fi(e) {
3509
- hi(e), e.drafts_.forEach(el), e.drafts_ = null;
3545
+ hi(e), e.drafts_.forEach(rl), e.drafts_ = null;
3510
3546
  }
3511
3547
  function hi(e) {
3512
3548
  e === ar && (ar = e.parent_);
3513
3549
  }
3514
3550
  function ji(e) {
3515
- return ar = Qd(ar, e);
3551
+ return ar = tl(ar, e);
3516
3552
  }
3517
- function el(e) {
3553
+ function rl(e) {
3518
3554
  const t = e[pe];
3519
3555
  t.type_ === 0 || t.type_ === 1 ? t.revoke_() : t.revoked_ = !0;
3520
3556
  }
3521
- function Wi(e, t) {
3557
+ function qi(e, t) {
3522
3558
  t.unfinalizedDrafts_ = t.drafts_.length;
3523
3559
  const r = t.drafts_[0];
3524
- return e !== void 0 && e !== r ? (r[pe].modified_ && (fi(t), le(4)), wt(e) && (e = Wr(t, e), t.parent_ || qr(t, e)), t.patches_ && It("Patches").generateReplacementPatches_(
3560
+ return e !== void 0 && e !== r ? (r[pe].modified_ && (fi(t), le(4)), wt(e) && (e = qr(t, e), t.parent_ || Wr(t, e)), t.patches_ && It("Patches").generateReplacementPatches_(
3525
3561
  r[pe].base_,
3526
3562
  e,
3527
3563
  t.patches_,
3528
3564
  t.inversePatches_
3529
- )) : e = Wr(t, r, []), fi(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e !== Wo ? e : void 0;
3565
+ )) : e = qr(t, r, []), fi(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e !== jo ? e : void 0;
3530
3566
  }
3531
- function Wr(e, t, r) {
3567
+ function qr(e, t, r) {
3532
3568
  if (nn(t))
3533
3569
  return t;
3534
3570
  const n = t[pe];
3535
3571
  if (!n)
3536
3572
  return jr(
3537
3573
  t,
3538
- (i, a) => qi(e, n, t, i, a, r)
3574
+ (i, a) => Wi(e, n, t, i, a, r)
3539
3575
  ), t;
3540
3576
  if (n.scope_ !== e)
3541
3577
  return t;
3542
3578
  if (!n.modified_)
3543
- return qr(e, n.base_, !0), n.base_;
3579
+ return Wr(e, n.base_, !0), n.base_;
3544
3580
  if (!n.finalized_) {
3545
3581
  n.finalized_ = !0, n.scope_.unfinalizedDrafts_--;
3546
3582
  const i = n.copy_;
3547
3583
  let a = i, s = !1;
3548
3584
  n.type_ === 3 && (a = new Set(i), i.clear(), s = !0), jr(
3549
3585
  a,
3550
- (u, p) => qi(e, n, i, u, p, r, s)
3551
- ), qr(e, i, !1), r && e.patches_ && It("Patches").generatePatches_(
3586
+ (u, p) => Wi(e, n, i, u, p, r, s)
3587
+ ), Wr(e, i, !1), r && e.patches_ && It("Patches").generatePatches_(
3552
3588
  n,
3553
3589
  r,
3554
3590
  e.patches_,
@@ -3557,11 +3593,11 @@ function Wr(e, t, r) {
3557
3593
  }
3558
3594
  return n.copy_;
3559
3595
  }
3560
- function qi(e, t, r, n, i, a, s) {
3596
+ function Wi(e, t, r, n, i, a, s) {
3561
3597
  if (process.env.NODE_ENV !== "production" && i === r && le(5), Dt(i)) {
3562
3598
  const u = a && t && t.type_ !== 3 && // Set objects are atomic since they have no keys.
3563
- !ui(t.assigned_, n) ? a.concat(n) : void 0, p = Wr(e, i, u);
3564
- if (zo(r, n, p), Dt(p))
3599
+ !ui(t.assigned_, n) ? a.concat(n) : void 0, p = qr(e, i, u);
3600
+ if (Wo(r, n, p), Dt(p))
3565
3601
  e.canAutoFreeze_ = !1;
3566
3602
  else
3567
3603
  return;
@@ -3569,17 +3605,17 @@ function qi(e, t, r, n, i, a, s) {
3569
3605
  if (wt(i) && !nn(i)) {
3570
3606
  if (!e.immer_.autoFreeze_ && e.unfinalizedDrafts_ < 1)
3571
3607
  return;
3572
- Wr(e, i), (!t || !t.scope_.parent_) && typeof n != "symbol" && Object.prototype.propertyIsEnumerable.call(r, n) && qr(e, i);
3608
+ qr(e, i), (!t || !t.scope_.parent_) && typeof n != "symbol" && Object.prototype.propertyIsEnumerable.call(r, n) && Wr(e, i);
3573
3609
  }
3574
3610
  }
3575
- function qr(e, t, r = !1) {
3611
+ function Wr(e, t, r = !1) {
3576
3612
  !e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && _i(t, r);
3577
3613
  }
3578
- function tl(e, t) {
3614
+ function nl(e, t) {
3579
3615
  const r = Array.isArray(e), n = {
3580
3616
  type_: r ? 1 : 0,
3581
3617
  // Track which produce call this is associated with.
3582
- scope_: t ? t.scope_ : Jo(),
3618
+ scope_: t ? t.scope_ : zo(),
3583
3619
  // True for both shallow and deep changes.
3584
3620
  modified_: !1,
3585
3621
  // Used during finalization.
@@ -3610,7 +3646,7 @@ var Ai = {
3610
3646
  return e;
3611
3647
  const r = ht(e);
3612
3648
  if (!ui(r, t))
3613
- return rl(e, r, t);
3649
+ return il(e, r, t);
3614
3650
  const n = r[t];
3615
3651
  return e.finalized_ || !wt(n) ? n : n === si(e.base_, t) ? (ci(e), e.copy_[t] = mi(n, e)) : n;
3616
3652
  },
@@ -3621,14 +3657,14 @@ var Ai = {
3621
3657
  return Reflect.ownKeys(ht(e));
3622
3658
  },
3623
3659
  set(e, t, r) {
3624
- const n = Ho(ht(e), t);
3660
+ const n = Jo(ht(e), t);
3625
3661
  if (n != null && n.set)
3626
3662
  return n.set.call(e.draft_, r), !0;
3627
3663
  if (!e.modified_) {
3628
3664
  const i = si(ht(e), t), a = i == null ? void 0 : i[pe];
3629
3665
  if (a && a.base_ === r)
3630
3666
  return e.copy_[t] = r, e.assigned_[t] = !1, !0;
3631
- if (Vd(r, i) && (r !== void 0 || ui(e.base_, t)))
3667
+ if (Zd(r, i) && (r !== void 0 || ui(e.base_, t)))
3632
3668
  return !0;
3633
3669
  ci(e), gi(e);
3634
3670
  }
@@ -3675,16 +3711,16 @@ function si(e, t) {
3675
3711
  const r = e[pe];
3676
3712
  return (r ? ht(r) : e)[t];
3677
3713
  }
3678
- function rl(e, t, r) {
3714
+ function il(e, t, r) {
3679
3715
  var i;
3680
- const n = Ho(t, r);
3716
+ const n = Jo(t, r);
3681
3717
  return n ? "value" in n ? n.value : (
3682
3718
  // This is a very special case, if the prop is a getter defined by the
3683
3719
  // prototype, we should invoke it with the draft as context!
3684
3720
  (i = n.get) == null ? void 0 : i.call(e.draft_)
3685
3721
  ) : void 0;
3686
3722
  }
3687
- function Ho(e, t) {
3723
+ function Jo(e, t) {
3688
3724
  if (!(t in e))
3689
3725
  return;
3690
3726
  let r = Pt(e);
@@ -3704,7 +3740,7 @@ function ci(e) {
3704
3740
  e.scope_.immer_.useStrictShallowCopy_
3705
3741
  ));
3706
3742
  }
3707
- var nl = class {
3743
+ var ol = class {
3708
3744
  constructor(e) {
3709
3745
  this.autoFreeze_ = !0, this.useStrictShallowCopy_ = !1, this.produce = (t, r, n) => {
3710
3746
  if (typeof t == "function" && typeof r != "function") {
@@ -3725,9 +3761,9 @@ var nl = class {
3725
3761
  } finally {
3726
3762
  u ? fi(a) : hi(a);
3727
3763
  }
3728
- return $i(a, n), Wi(i, a);
3764
+ return $i(a, n), qi(i, a);
3729
3765
  } else if (!t || typeof t != "object") {
3730
- if (i = r(t), i === void 0 && (i = t), i === Wo && (i = void 0), this.autoFreeze_ && _i(i, !0), n) {
3766
+ if (i = r(t), i === void 0 && (i = t), i === jo && (i = void 0), this.autoFreeze_ && _i(i, !0), n) {
3731
3767
  const a = [], s = [];
3732
3768
  It("Patches").generateReplacementPatches_(t, i, a, s), n(a, s);
3733
3769
  }
@@ -3744,7 +3780,7 @@ var nl = class {
3744
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);
3745
3781
  }
3746
3782
  createDraft(e) {
3747
- wt(e) || le(8), Dt(e) && (e = il(e));
3783
+ wt(e) || le(8), Dt(e) && (e = al(e));
3748
3784
  const t = ji(this), r = mi(e, void 0);
3749
3785
  return r[pe].isManual_ = !0, hi(t), r;
3750
3786
  }
@@ -3752,7 +3788,7 @@ var nl = class {
3752
3788
  const r = e && e[pe];
3753
3789
  (!r || !r.isManual_) && le(9);
3754
3790
  const { scope_: n } = r;
3755
- return $i(n, t), Wi(void 0, n);
3791
+ return $i(n, t), qi(void 0, n);
3756
3792
  }
3757
3793
  /**
3758
3794
  * Pass true to automatically freeze all copies created by Immer.
@@ -3788,13 +3824,13 @@ var nl = class {
3788
3824
  }
3789
3825
  };
3790
3826
  function mi(e, t) {
3791
- const r = tn(e) ? It("MapSet").proxyMap_(e, t) : rn(e) ? It("MapSet").proxySet_(e, t) : tl(e, t);
3792
- return (t ? t.scope_ : Jo()).drafts_.push(r), r;
3827
+ const r = tn(e) ? It("MapSet").proxyMap_(e, t) : rn(e) ? It("MapSet").proxySet_(e, t) : nl(e, t);
3828
+ return (t ? t.scope_ : zo()).drafts_.push(r), r;
3793
3829
  }
3794
- function il(e) {
3795
- return Dt(e) || le(10, e), Xo(e);
3830
+ function al(e) {
3831
+ return Dt(e) || le(10, e), Ho(e);
3796
3832
  }
3797
- function Xo(e) {
3833
+ function Ho(e) {
3798
3834
  if (!wt(e) || nn(e))
3799
3835
  return e;
3800
3836
  const t = e[pe];
@@ -3806,10 +3842,10 @@ function Xo(e) {
3806
3842
  } else
3807
3843
  r = pi(e, !0);
3808
3844
  return jr(r, (n, i) => {
3809
- zo(r, n, Xo(i));
3845
+ Wo(r, n, Ho(i));
3810
3846
  }), t && (t.finalized_ = !1), r;
3811
3847
  }
3812
- var fe = new nl(), nr = fe.produce;
3848
+ var fe = new ol(), nr = fe.produce;
3813
3849
  fe.produceWithPatches.bind(
3814
3850
  fe
3815
3851
  );
@@ -3818,20 +3854,20 @@ fe.setUseStrictShallowCopy.bind(fe);
3818
3854
  fe.applyPatches.bind(fe);
3819
3855
  fe.createDraft.bind(fe);
3820
3856
  fe.finishDraft.bind(fe);
3821
- const Go = _e(void 0), ol = {};
3857
+ const Xo = _e(void 0), sl = {};
3822
3858
  function xi() {
3823
- const e = ve(Go);
3859
+ const e = ve(Xo);
3824
3860
  if (!e)
3825
3861
  throw new Error("useObjectsConfigureState must be used within a ConfigurationProvider");
3826
3862
  return e;
3827
3863
  }
3828
- function al({ children: e }) {
3864
+ function cl({ children: e }) {
3829
3865
  const { installation: t } = Ke(), { hydratedRevision: r, loading: n } = dr(), [
3830
3866
  i,
3831
3867
  a
3832
- ] = k(ol), s = t == null ? void 0 : t.config;
3868
+ ] = k(sl), s = t == null ? void 0 : t.config;
3833
3869
  Y(() => {
3834
- r != null && r.content && !n && s && !(Object.entries(i).length > 0) && Bd(
3870
+ r != null && r.content && !n && s && !(Object.entries(i).length > 0) && Md(
3835
3871
  r,
3836
3872
  s,
3837
3873
  a
@@ -3877,13 +3913,13 @@ function al({ children: e }) {
3877
3913
  u
3878
3914
  ]
3879
3915
  );
3880
- return /* @__PURE__ */ l(Go.Provider, { value: y, children: e });
3916
+ return /* @__PURE__ */ l(Xo.Provider, { value: y, children: e });
3881
3917
  }
3882
- const sl = /* @__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: [
3883
3919
  /* @__PURE__ */ l("circle", { cx: "9", cy: "9", r: "9", fill: "#BBF7D0" }),
3884
3920
  /* @__PURE__ */ l("path", { d: "M13 7L7.5 12L5 9.72727", stroke: "#16A34A", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" })
3885
3921
  ] });
3886
- function cl(e, t) {
3922
+ function ll(e, t) {
3887
3923
  return t ? Br.createElement(
3888
3924
  "svg",
3889
3925
  {
@@ -3899,9 +3935,9 @@ function cl(e, t) {
3899
3935
  r: "5",
3900
3936
  fill: "#FBD38D"
3901
3937
  })
3902
- ) : e ? sl : /* @__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" }) });
3903
3939
  }
3904
- const Vo = Si(
3940
+ const Go = Si(
3905
3941
  ({
3906
3942
  objectName: e,
3907
3943
  completed: t,
@@ -3919,7 +3955,7 @@ const Vo = Si(
3919
3955
  gap: 2,
3920
3956
  mr: "3",
3921
3957
  children: [
3922
- cl(t, r),
3958
+ ll(t, r),
3923
3959
  /* @__PURE__ */ A(J, { textAlign: "left", children: [
3924
3960
  /* @__PURE__ */ l(Ie, { children: n || e }),
3925
3961
  r && /* @__PURE__ */ l(Ie, { fontSize: 10, fontStyle: "italic", children: "pending" })
@@ -3931,11 +3967,11 @@ const Vo = Si(
3931
3967
  ] });
3932
3968
  }
3933
3969
  );
3934
- function dl({ pending: e, completed: t, displayName: r }) {
3970
+ function ul({ pending: e, completed: t, displayName: r }) {
3935
3971
  return /* @__PURE__ */ A(Kt, { children: [
3936
3972
  /* @__PURE__ */ l(Oi, { marginY: 3 }),
3937
3973
  /* @__PURE__ */ l(
3938
- Vo,
3974
+ Go,
3939
3975
  {
3940
3976
  objectName: yt,
3941
3977
  completed: t,
@@ -3946,40 +3982,39 @@ function dl({ pending: e, completed: t, displayName: r }) {
3946
3982
  )
3947
3983
  ] });
3948
3984
  }
3949
- const Yo = _e(null);
3950
- function Zo() {
3951
- const e = ve(Yo);
3985
+ const Vo = _e(null);
3986
+ function Yo() {
3987
+ const e = ve(Vo);
3952
3988
  if (e === null)
3953
3989
  throw new Error(
3954
3990
  "useSelectedNavObjectName must be used within a SelectedNavObjectNameProvider"
3955
3991
  );
3956
3992
  return { selectedObjectName: e };
3957
3993
  }
3958
- function ll(e, t) {
3959
- return e != null && e[t] ? e[t] : { name: $o, completed: !1 };
3994
+ function pl(e, t) {
3995
+ return e != null && e[t] ? e[t] : { name: Mo, completed: !1 };
3960
3996
  }
3961
- function ul({
3997
+ function fl({
3962
3998
  children: e
3963
3999
  }) {
3964
4000
  var S, R, C;
3965
- 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 && Eo(h, i), w = m !== null, y = !!((S = i == null ? void 0 : i.content) != null && S.write), I = y ? Fo(h) : void 0, b = [...m || []];
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 || []];
3966
4002
  I && y && b.push(I);
3967
- const v = ll(b, s);
3968
- return /* @__PURE__ */ l(Yo.Provider, { value: v == null ? void 0 : v.name, children: /* @__PURE__ */ A(
4003
+ const v = pl(b, s);
4004
+ return /* @__PURE__ */ l(Vo.Provider, { value: v == null ? void 0 : v.name, children: /* @__PURE__ */ A(
3969
4005
  J,
3970
4006
  {
3971
4007
  p: 8,
3972
4008
  maxWidth: "55rem",
3973
- border: "1px solid #EFEFEF",
3974
- borderRadius: 6,
3975
- boxShadow: "md",
4009
+ borderRadius: 4,
3976
4010
  margin: "auto",
3977
- bgColor: "whitesmoke",
3978
4011
  display: "flex",
3979
4012
  gap: "6",
3980
4013
  minHeight: "100%",
3981
- color: "gray.800",
3982
4014
  fontSize: "md",
4015
+ backgroundColor: "#FCFCFC",
4016
+ border: "1px solid #EFEFEF",
4017
+ boxShadow: "0px 4px 8px rgba(0, 0, 0, 0.05)",
3983
4018
  children: [
3984
4019
  /* @__PURE__ */ A(J, { width: "20rem", children: [
3985
4020
  /* @__PURE__ */ A(Ie, { children: [
@@ -3988,7 +4023,7 @@ function ul({
3988
4023
  ] }),
3989
4024
  /* @__PURE__ */ l(Ie, { marginBottom: "20px", fontSize: "1.125rem", fontWeight: "500", children: p }),
3990
4025
  w && /* @__PURE__ */ A(
3991
- Sa,
4026
+ va,
3992
4027
  {
3993
4028
  index: s,
3994
4029
  onChange: u,
@@ -3997,7 +4032,7 @@ function ul({
3997
4032
  m.map((D) => {
3998
4033
  var U, M, ie, H;
3999
4034
  return /* @__PURE__ */ l(
4000
- Vo,
4035
+ Go,
4001
4036
  {
4002
4037
  objectName: D.name,
4003
4038
  completed: D.completed,
@@ -4007,7 +4042,7 @@ function ul({
4007
4042
  );
4008
4043
  }),
4009
4044
  y && I && /* @__PURE__ */ l(
4010
- dl,
4045
+ ul,
4011
4046
  {
4012
4047
  completed: I.completed,
4013
4048
  pending: (C = (R = a == null ? void 0 : a.other) == null ? void 0 : R.write) == null ? void 0 : C.isWriteModified,
@@ -4017,7 +4052,7 @@ function ul({
4017
4052
  r && /* @__PURE__ */ A(Kt, { children: [
4018
4053
  /* @__PURE__ */ l(Oi, { marginTop: 10, marginBottom: 3 }),
4019
4054
  /* @__PURE__ */ l(
4020
- Jd,
4055
+ Xd,
4021
4056
  {
4022
4057
  text: "Uninstall"
4023
4058
  },
@@ -4034,7 +4069,7 @@ function ul({
4034
4069
  ) });
4035
4070
  }
4036
4071
  const Bt = () => {
4037
- const { appName: e } = ee(), { objectConfigurationsState: t, setConfigureState: r } = xi(), { selectedObjectName: n } = Zo(), i = Uo(n || "", t);
4072
+ const { appName: e } = ee(), { objectConfigurationsState: t, setConfigureState: r } = xi(), { selectedObjectName: n } = Yo(), i = Bo(n || "", t);
4038
4073
  return {
4039
4074
  appName: e,
4040
4075
  configureState: i,
@@ -4042,7 +4077,7 @@ const Bt = () => {
4042
4077
  selectedObjectName: n
4043
4078
  };
4044
4079
  };
4045
- function pl(e, t, r) {
4080
+ function hl(e, t, r) {
4046
4081
  var i;
4047
4082
  const n = ((i = e == null ? void 0 : e.read) == null ? void 0 : i.selectedFieldMappings) || {};
4048
4083
  if (n[t] = r, e != null && e.read) {
@@ -4050,17 +4085,17 @@ function pl(e, t, r) {
4050
4085
  e.read.isRequiredMapFieldsModified = u;
4051
4086
  }
4052
4087
  }
4053
- function Qo(e, t, r, n) {
4088
+ function Zo(e, t, r, n) {
4054
4089
  t(
4055
4090
  e,
4056
- (i) => pl(i, r, n)
4091
+ (i) => hl(i, r, n)
4057
4092
  );
4058
4093
  }
4059
- function fl({ field: e, onSelectChange: t, allFields: r }) {
4094
+ function gl({ field: e, onSelectChange: t, allFields: r }) {
4060
4095
  var w;
4061
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];
4062
4097
  Y(() => {
4063
- e._default && !h && i && n && Qo(i, a, e.mapToName, e._default), u(!1);
4098
+ e._default && !h && i && n && Zo(i, a, e.mapToName, e._default), u(!1);
4064
4099
  }, [e, a, i, h, n]);
4065
4100
  const m = we(() => r == null ? void 0 : r.map(
4066
4101
  (y) => /* @__PURE__ */ l("option", { value: y.fieldName, children: y.displayName }, y.fieldName)
@@ -4069,7 +4104,7 @@ function fl({ field: e, onSelectChange: t, allFields: r }) {
4069
4104
  /* @__PURE__ */ l(Ie, { fontWeight: "500", children: e.mapToDisplayName }),
4070
4105
  /* @__PURE__ */ l(Ie, { marginBottom: "5px", fontSize: 14, children: e == null ? void 0 : e.prompt }),
4071
4106
  /* @__PURE__ */ l(
4072
- Oa,
4107
+ ba,
4073
4108
  {
4074
4109
  name: e.mapToName,
4075
4110
  variant: "flushed",
@@ -4088,10 +4123,10 @@ function on({ string: e }) {
4088
4123
  /* @__PURE__ */ l(Ur, { flex: "1", justifyContent: "flex-end", alignItems: "center", children: /* @__PURE__ */ l(Oi, { marginLeft: 2 }) })
4089
4124
  ] });
4090
4125
  }
4091
- function hl() {
4126
+ function ml() {
4092
4127
  const { selectedObjectName: e, configureState: t, setConfigureState: r } = Bt(), { isError: n, removeError: i } = nt(), a = (u) => {
4093
4128
  const { value: p, name: h } = u.target;
4094
- p && (e && Qo(e, r, h, p), n(Z.MAPPING, h) && i(Z.MAPPING, h));
4129
+ p && (e && Zo(e, r, h, p), n(Z.MAPPING, h) && i(Z.MAPPING, h));
4095
4130
  }, s = we(
4096
4131
  () => {
4097
4132
  var u, p;
@@ -4114,14 +4149,14 @@ function hl() {
4114
4149
  ),
4115
4150
  children: [
4116
4151
  /* @__PURE__ */ l(
4117
- fl,
4152
+ gl,
4118
4153
  {
4119
4154
  allFields: ((p = t.read) == null ? void 0 : p.allFields) || [],
4120
4155
  field: u,
4121
4156
  onSelectChange: a
4122
4157
  }
4123
4158
  ),
4124
- /* @__PURE__ */ l(Ca, { children: " * required" })
4159
+ /* @__PURE__ */ l(Sa, { children: " * required" })
4125
4160
  ]
4126
4161
  },
4127
4162
  u.mapToName
@@ -4129,7 +4164,7 @@ function hl() {
4129
4164
  }) })
4130
4165
  ] }) : null;
4131
4166
  }
4132
- function gl(e, t, r) {
4167
+ function yl(e, t, r) {
4133
4168
  var i, a;
4134
4169
  const n = ((i = e == null ? void 0 : e.read) == null ? void 0 : i.selectedOptionalFields) || {};
4135
4170
  if (n[t] = r, r || delete n[t], (a = e.read) != null && a.savedConfig.optionalFields) {
@@ -4141,10 +4176,10 @@ function gl(e, t, r) {
4141
4176
  function zi(e, t, r, n) {
4142
4177
  t(
4143
4178
  e,
4144
- (i) => gl(i, r, n)
4179
+ (i) => yl(i, r, n)
4145
4180
  );
4146
4181
  }
4147
- function ml() {
4182
+ function wl() {
4148
4183
  var w, y;
4149
4184
  const {
4150
4185
  appName: e,
@@ -4198,22 +4233,22 @@ function ml() {
4198
4233
  )
4199
4234
  ] });
4200
4235
  }
4201
- function yl() {
4236
+ function Il() {
4202
4237
  var n, i, a;
4203
4238
  const { configureState: e, selectedObjectName: t } = Bt(), { appName: r } = ee();
4204
4239
  return /* @__PURE__ */ A(Kt, { children: [
4205
4240
  /* @__PURE__ */ l(on, { string: `${r} reads the following ${t} fields` }),
4206
- /* @__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(Na, { 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." })
4207
4242
  ] });
4208
4243
  }
4209
- function wl() {
4244
+ function vl() {
4210
4245
  return /* @__PURE__ */ A(Kt, { children: [
4211
- /* @__PURE__ */ l(yl, {}),
4212
- /* @__PURE__ */ l(hl, {}),
4213
- /* @__PURE__ */ l(ml, {})
4246
+ /* @__PURE__ */ l(Il, {}),
4247
+ /* @__PURE__ */ l(ml, {}),
4248
+ /* @__PURE__ */ l(wl, {})
4214
4249
  ] });
4215
4250
  }
4216
- function Il(e, t, r) {
4251
+ function bl(e, t, r) {
4217
4252
  var n, i, a;
4218
4253
  if (((n = e == null ? void 0 : e.write) == null ? void 0 : n.selectedNonConfigurableWriteFields) === null && (e.write.selectedNonConfigurableWriteFields = {}), e != null && e.write) {
4219
4254
  const s = e.write.selectedNonConfigurableWriteFields;
@@ -4227,11 +4262,11 @@ function Ji(e, t, r, n) {
4227
4262
  t(
4228
4263
  e,
4229
4264
  (i) => {
4230
- Il(i, r, n);
4265
+ bl(i, r, n);
4231
4266
  }
4232
4267
  );
4233
4268
  }
4234
- function vl() {
4269
+ function Sl() {
4235
4270
  var w, y, I, b;
4236
4271
  const {
4237
4272
  appName: e,
@@ -4298,7 +4333,7 @@ function vl() {
4298
4333
  )
4299
4334
  ] });
4300
4335
  }
4301
- function bl() {
4336
+ function Ol() {
4302
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 () => {
4303
4338
  if (!p) {
4304
4339
  u(!0), console.warn(
@@ -4327,21 +4362,20 @@ function bl() {
4327
4362
  (i == null ? void 0 : i.id) && /* @__PURE__ */ l(ne, { onClick: h, variant: "warning", isDisabled: p, children: m })
4328
4363
  ] });
4329
4364
  }
4330
- function ea({
4365
+ function Qo({
4331
4366
  onSave: e,
4332
4367
  onReset: t,
4333
4368
  isLoading: r,
4334
4369
  isCreateMode: n = !1
4335
4370
  }) {
4336
4371
  var D, U, M;
4337
- const { installation: i } = Ke(), { hydratedRevision: a, loading: s } = dr(), { configureState: u, selectedObjectName: p } = Bt(), h = i == null ? void 0 : i.config, m = h && p && !!ko(h, p) || !1, w = ((D = u == null ? void 0 : u.read) == null ? void 0 : D.isOptionalFieldsModified) || ((U = u == null ? void 0 : u.read) == null ? void 0 : U.isRequiredMapFieldsModified), y = (M = u == null ? void 0 : u.write) == null ? void 0 : M.isWriteModified, S = s || r || !u || !p || !(w || y || n || p !== yt && !m), R = p === yt, C = p === $o;
4372
+ const { installation: i } = Ke(), { hydratedRevision: a, loading: s } = dr(), { configureState: u, selectedObjectName: p } = Bt(), h = i == null ? void 0 : i.config, m = h && p && !!xo(h, p) || !1, w = ((D = u == null ? void 0 : u.read) == null ? void 0 : D.isOptionalFieldsModified) || ((U = u == null ? void 0 : u.read) == null ? void 0 : U.isRequiredMapFieldsModified), y = (M = u == null ? void 0 : u.write) == null ? void 0 : M.isWriteModified, S = s || r || !u || !p || !(w || y || n || p !== yt && !m), R = p === yt, C = p === Mo;
4338
4373
  return r ? /* @__PURE__ */ l(De, {}) : /* @__PURE__ */ A("form", { style: { width: "100%", maxWidth: "50rem" }, onSubmit: e, children: [
4339
4374
  /* @__PURE__ */ A(Ae, { direction: "row", spacing: 4, marginBottom: "20px", flexDir: "row-reverse", children: [
4340
4375
  /* @__PURE__ */ l(
4341
4376
  ne,
4342
4377
  {
4343
- backgroundColor: "gray.800",
4344
- _hover: { backgroundColor: "gray.600" },
4378
+ variant: "primary",
4345
4379
  type: "submit",
4346
4380
  isDisabled: S,
4347
4381
  children: n ? "Install" : "Save"
@@ -4350,9 +4384,6 @@ function ea({
4350
4384
  /* @__PURE__ */ l(
4351
4385
  ne,
4352
4386
  {
4353
- backgroundColor: "gray.200",
4354
- color: "blackAlpha.700",
4355
- _hover: { backgroundColor: "gray.300" },
4356
4387
  isDisabled: S,
4357
4388
  onClick: t,
4358
4389
  children: "Reset"
@@ -4363,27 +4394,23 @@ function ea({
4363
4394
  J,
4364
4395
  {
4365
4396
  p: 8,
4366
- width: "100%",
4367
- border: "1px solid #EFEFEF",
4368
- borderRadius: 8,
4369
- boxShadow: "md",
4370
- textAlign: ["left"],
4397
+ borderRadius: 4,
4398
+ boxShadow: "sm",
4371
4399
  margin: "auto",
4372
- bgColor: "white",
4373
- maxHeight: "100%",
4374
- overflowY: "scroll",
4400
+ backgroundColor: "white",
4401
+ border: "1px solid gray.100",
4375
4402
  minHeight: 300,
4376
4403
  children: [
4377
4404
  s && /* @__PURE__ */ l(De, {}),
4378
- a && !C && !R && /* @__PURE__ */ l(wl, {}),
4379
- a && !C && R && /* @__PURE__ */ l(vl, {}),
4380
- !s && C && /* @__PURE__ */ l(bl, {})
4405
+ a && !C && !R && /* @__PURE__ */ l(vl, {}),
4406
+ a && !C && R && /* @__PURE__ */ l(Sl, {}),
4407
+ !s && C && /* @__PURE__ */ l(Ol, {})
4381
4408
  ]
4382
4409
  }
4383
4410
  )
4384
4411
  ] });
4385
4412
  }
4386
- const ta = () => {
4413
+ const ea = () => {
4387
4414
  const {
4388
4415
  integrationId: e,
4389
4416
  groupRef: t,
@@ -4391,11 +4418,11 @@ const ta = () => {
4391
4418
  setInstallation: n,
4392
4419
  onInstallSuccess: i,
4393
4420
  onUpdateSuccess: a
4394
- } = Ke(), { hydratedRevision: s, loading: u } = dr(), { selectedObjectName: p } = Zo(), { selectedConnection: h } = Lt(), m = te(), { projectId: w } = ee(), { resetBoundary: y, setErrors: I } = nt(), {
4421
+ } = Ke(), { hydratedRevision: s, loading: u } = dr(), { selectedObjectName: p } = Yo(), { selectedConnection: h } = Lt(), m = te(), { projectId: w } = ee(), { resetBoundary: y, setErrors: I } = nt(), {
4395
4422
  resetConfigureState: b,
4396
4423
  objectConfigurationsState: v,
4397
4424
  resetPendingConfigurationState: S
4398
- } = xi(), R = Uo(p || "", v);
4425
+ } = xi(), R = Bo(p || "", v);
4399
4426
  return {
4400
4427
  integrationId: e,
4401
4428
  groupRef: t,
@@ -4416,8 +4443,8 @@ const ta = () => {
4416
4443
  onInstallSuccess: i,
4417
4444
  onUpdateSuccess: a
4418
4445
  };
4419
- }, Sl = void 0;
4420
- function Ol() {
4446
+ }, Cl = void 0;
4447
+ function Nl() {
4421
4448
  const {
4422
4449
  integrationId: e,
4423
4450
  groupRef: t,
@@ -4436,11 +4463,11 @@ function Ol() {
4436
4463
  resetPendingConfigurationState: b,
4437
4464
  configureState: v,
4438
4465
  onInstallSuccess: S
4439
- } = ta(), [R, C] = k(!1), D = s === yt, U = Q(
4466
+ } = ea(), [R, C] = k(!1), D = s === yt, U = Q(
4440
4467
  () => {
4441
- m(Z.MAPPING), i != null && i.content && !a && s && Ko(
4468
+ m(Z.MAPPING), i != null && i.content && !a && s && Do(
4442
4469
  i,
4443
- Sl,
4470
+ Cl,
4444
4471
  s,
4445
4472
  y
4446
4473
  );
@@ -4451,12 +4478,12 @@ function Ol() {
4451
4478
  !v && (i != null && i.content) && !a && U();
4452
4479
  }, [v, I, i, a, U]);
4453
4480
  const M = () => {
4454
- const { requiredMapFields: se, selectedFieldMappings: V } = (v == null ? void 0 : v.read) || {}, { errorList: be } = Po(
4481
+ const { requiredMapFields: se, selectedFieldMappings: V } = (v == null ? void 0 : v.read) || {}, { errorList: be } = Fo(
4455
4482
  se,
4456
4483
  V,
4457
4484
  w
4458
4485
  );
4459
- be.length > 0 || (s && (u != null && u.id) && p && h && e && t && r && i ? (C(!0), $d(
4486
+ be.length > 0 || (s && (u != null && u.id) && p && h && e && t && r && i ? (C(!0), qd(
4460
4487
  h,
4461
4488
  e,
4462
4489
  t,
@@ -4472,7 +4499,7 @@ function Ol() {
4472
4499
  C(!1), b(s);
4473
4500
  })) : console.error("CreateInstallallation - onSaveReadCreate: missing required props"));
4474
4501
  }, ie = () => {
4475
- s && (u != null && u.id) && p && h && e && t && r && i ? (C(!0), qd(
4502
+ s && (u != null && u.id) && p && h && e && t && r && i ? (C(!0), Jd(
4476
4503
  h,
4477
4504
  e,
4478
4505
  t,
@@ -4488,7 +4515,7 @@ function Ol() {
4488
4515
  })) : console.error("CreateInstallallation - onSaveWriteCreate: missing required props");
4489
4516
  };
4490
4517
  return /* @__PURE__ */ l(
4491
- ea,
4518
+ Qo,
4492
4519
  {
4493
4520
  isCreateMode: !0,
4494
4521
  isLoading: R,
@@ -4499,7 +4526,7 @@ function Ol() {
4499
4526
  }
4500
4527
  );
4501
4528
  }
4502
- function Cl({
4529
+ function Tl({
4503
4530
  updateConfig: e,
4504
4531
  projectId: t,
4505
4532
  integrationId: r,
@@ -4533,10 +4560,10 @@ function Cl({
4533
4560
  console.error("ERROR: ", h);
4534
4561
  });
4535
4562
  }
4536
- const Nl = (e, t, r, n, i) => {
4537
- const a = Lo(e), s = Bo(
4563
+ const Rl = (e, t, r, n, i, a) => {
4564
+ const s = Ko(e), u = Lo(
4538
4565
  e
4539
- ), u = {
4566
+ ), p = {
4540
4567
  content: {
4541
4568
  read: {
4542
4569
  objects: {
@@ -4545,23 +4572,25 @@ const Nl = (e, t, r, n, i) => {
4545
4572
  // these two fields are copied from previous config, otherwise they will override null
4546
4573
  schedule: n,
4547
4574
  destination: (r == null ? void 0 : r.destination) || "",
4548
- selectedFields: a,
4549
- selectedFieldMappings: s
4575
+ selectedFields: s,
4576
+ selectedFieldMappings: u,
4577
+ backfill: a
4550
4578
  }
4551
4579
  }
4552
4580
  }
4553
4581
  }
4554
4582
  };
4555
- return Qr(i) && (u.content || (u.content = {}), u.content.proxy = { enabled: !0 }), u;
4556
- }, Tl = (e, t, r, n, i, a, s, u, p, h) => {
4557
- const m = Nl(
4583
+ return Qr(i) && (p.content || (p.content = {}), p.content.proxy = { enabled: !0 }), p;
4584
+ }, _l = (e, t, r, n, i, a, s, u, p, h) => {
4585
+ const m = Rl(
4558
4586
  a,
4559
4587
  n || "",
4560
4588
  u,
4561
4589
  u.schedule,
4562
- p
4590
+ p,
4591
+ u.backfill
4563
4592
  );
4564
- return m ? Cl({
4593
+ return m ? Tl({
4565
4594
  updateConfig: m,
4566
4595
  projectId: e,
4567
4596
  integrationId: t,
@@ -4571,17 +4600,17 @@ const Nl = (e, t, r, n, i) => {
4571
4600
  setInstallation: s,
4572
4601
  onUpdateSuccess: h
4573
4602
  }) : (console.error("Error when generating updateConfig from configureState"), Promise.resolve(null));
4574
- }, Rl = (e, t) => {
4603
+ }, Al = (e, t) => {
4575
4604
  const n = {
4576
4605
  content: {
4577
4606
  write: {
4578
- objects: Mo(e)
4607
+ objects: Uo(e)
4579
4608
  }
4580
4609
  }
4581
4610
  };
4582
4611
  return Qr(t) && (n.content || (n.content = {}), n.content.proxy = { enabled: !0 }), n;
4583
- }, _l = (e, t, r, n, i, a, s, u) => {
4584
- const p = Rl(i, a);
4612
+ }, xl = (e, t, r, n, i, a, s, u) => {
4613
+ const p = Al(i, a);
4585
4614
  if (!p)
4586
4615
  return console.error("Error when generating write updateConfig from configureState"), Promise.resolve(null);
4587
4616
  const h = {
@@ -4608,7 +4637,7 @@ const Nl = (e, t, r, n, i) => {
4608
4637
  console.error("ERROR: ", m);
4609
4638
  });
4610
4639
  };
4611
- function Al({ installation: e, integrationObj: t }) {
4640
+ function kl({ installation: e, integrationObj: t }) {
4612
4641
  const {
4613
4642
  setInstallation: r,
4614
4643
  hydratedRevision: n,
@@ -4622,9 +4651,9 @@ function Al({ installation: e, integrationObj: t }) {
4622
4651
  resetPendingConfigurationState: w,
4623
4652
  configureState: y,
4624
4653
  onUpdateSuccess: I
4625
- } = ta(), [b, v] = k(!1), S = a === yt, { config: R } = e, C = Q(
4654
+ } = ea(), [b, v] = k(!1), S = a === yt, { config: R } = e, C = Q(
4626
4655
  () => {
4627
- p(Z.MAPPING), n != null && n.content && !i && a && Ko(n, R, a, m);
4656
+ p(Z.MAPPING), n != null && n.content && !i && a && Do(n, R, a, m);
4628
4657
  },
4629
4658
  [p, n, i, a, R, m]
4630
4659
  );
@@ -4639,12 +4668,12 @@ function Al({ installation: e, integrationObj: t }) {
4639
4668
  (Le) => (Le == null ? void 0 : Le.objectName) === a
4640
4669
  );
4641
4670
  }, [n, a]), U = () => {
4642
- const { requiredMapFields: H, selectedFieldMappings: se } = (y == null ? void 0 : y.read) || {}, { errorList: V } = Po(
4671
+ const { requiredMapFields: H, selectedFieldMappings: se } = (y == null ? void 0 : y.read) || {}, { errorList: V } = Fo(
4643
4672
  H,
4644
4673
  se,
4645
4674
  h
4646
4675
  );
4647
- V.length > 0 || (n && e && a && s && u && D ? (v(!0), Tl(
4676
+ V.length > 0 || (n && e && a && s && u && D ? (v(!0), _l(
4648
4677
  u,
4649
4678
  t.id,
4650
4679
  e.id,
@@ -4659,7 +4688,7 @@ function Al({ installation: e, integrationObj: t }) {
4659
4688
  v(!1), w(a);
4660
4689
  })) : console.error("UpdateInstallation - onSaveUpdate missing required props"));
4661
4690
  }, M = () => {
4662
- e && a && s && u && n ? (v(!0), _l(
4691
+ e && a && s && u && n ? (v(!0), xl(
4663
4692
  u,
4664
4693
  t.id,
4665
4694
  e.id,
@@ -4673,7 +4702,7 @@ function Al({ installation: e, integrationObj: t }) {
4673
4702
  })) : console.error("UpdateInstallation - onSaveUpdate missing required props");
4674
4703
  };
4675
4704
  return /* @__PURE__ */ l(
4676
- ea,
4705
+ Qo,
4677
4706
  {
4678
4707
  onSave: (H) => {
4679
4708
  H.preventDefault(), S ? M() : U();
@@ -4683,12 +4712,12 @@ function Al({ installation: e, integrationObj: t }) {
4683
4712
  }
4684
4713
  );
4685
4714
  }
4686
- function xl() {
4715
+ function El() {
4687
4716
  const { integrationObj: e, installation: t } = Ke();
4688
4717
  return e ? t && e ? (
4689
4718
  // If installation exists, render update installation flow
4690
4719
  /* @__PURE__ */ l(
4691
- Al,
4720
+ kl,
4692
4721
  {
4693
4722
  installation: t,
4694
4723
  integrationObj: e
@@ -4696,10 +4725,10 @@ function xl() {
4696
4725
  )
4697
4726
  ) : (
4698
4727
  // No installation, render create installation flow
4699
- /* @__PURE__ */ l(Ol, {})
4700
- ) : /* @__PURE__ */ l(qe, { message: "We can't load the integration" });
4728
+ /* @__PURE__ */ l(Nl, {})
4729
+ ) : /* @__PURE__ */ l(We, { message: "We can't load the integration" });
4701
4730
  }
4702
- const kl = (e, t) => ({
4731
+ const Fl = (e, t) => ({
4703
4732
  revisionId: e.id,
4704
4733
  createdBy: `consumer:${t}`,
4705
4734
  content: {
@@ -4709,7 +4738,7 @@ const kl = (e, t) => ({
4709
4738
  }
4710
4739
  }
4711
4740
  });
4712
- function El({
4741
+ function Pl({
4713
4742
  projectId: e,
4714
4743
  integrationId: t,
4715
4744
  groupRef: r,
@@ -4720,7 +4749,7 @@ function El({
4720
4749
  setInstallation: u,
4721
4750
  onInstallSuccess: p
4722
4751
  }) {
4723
- const h = kl(
4752
+ const h = Fl(
4724
4753
  s,
4725
4754
  n
4726
4755
  );
@@ -4735,7 +4764,7 @@ function El({
4735
4764
  onInstallSuccess: p
4736
4765
  }) : (console.error("Error when generating createConfig from configureState"), Promise.resolve(null));
4737
4766
  }
4738
- function Fl() {
4767
+ function Dl() {
4739
4768
  return /* @__PURE__ */ A("svg", { width: "48", height: "48", viewBox: "0 0 48 48", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
4740
4769
  /* @__PURE__ */ l("circle", { cx: "24", cy: "24", r: "24", fill: "#BBF7D0" }),
4741
4770
  /* @__PURE__ */ l(
@@ -4750,7 +4779,7 @@ function Fl() {
4750
4779
  )
4751
4780
  ] });
4752
4781
  }
4753
- function ra({ text: e }) {
4782
+ function ta({ text: e }) {
4754
4783
  return /* @__PURE__ */ l(cr, { children: /* @__PURE__ */ A(
4755
4784
  J,
4756
4785
  {
@@ -4767,21 +4796,21 @@ function ra({ text: e }) {
4767
4796
  color: "gray.800",
4768
4797
  fontSize: "md",
4769
4798
  children: [
4770
- /* @__PURE__ */ l(J, { width: "100%", display: "flex", alignContent: "center", justifyContent: "center", children: /* @__PURE__ */ l(J, { margin: "auto", children: /* @__PURE__ */ l(Fl, {}) }) }),
4799
+ /* @__PURE__ */ l(J, { width: "100%", display: "flex", alignContent: "center", justifyContent: "center", children: /* @__PURE__ */ l(J, { margin: "auto", children: /* @__PURE__ */ l(Dl, {}) }) }),
4771
4800
  /* @__PURE__ */ l(J, { textAlign: "center", paddingTop: "25px", children: e })
4772
4801
  ]
4773
4802
  }
4774
4803
  ) });
4775
4804
  }
4776
- function Pl({ provider: e }) {
4805
+ function Kl({ provider: e }) {
4777
4806
  const t = `You have successfully installed your ${vt(e)} integration.`;
4778
- return /* @__PURE__ */ l(ra, { text: t });
4807
+ return /* @__PURE__ */ l(ta, { text: t });
4779
4808
  }
4780
- const Dl = (e) => {
4809
+ const Ll = (e) => {
4781
4810
  const { read: t, write: r, proxy: n } = (e == null ? void 0 : e.content) ?? {};
4782
4811
  return !t && !r && (n == null ? void 0 : n.enabled) || !1;
4783
4812
  };
4784
- function Kl({ children: e }) {
4813
+ function Bl({ children: e }) {
4785
4814
  var R;
4786
4815
  const { projectId: t } = ee(), r = te(), { hydratedRevision: n, loading: i } = dr(), {
4787
4816
  integrationObj: a,
@@ -4790,9 +4819,9 @@ function Kl({ children: e }) {
4790
4819
  consumerRef: p,
4791
4820
  setInstallation: h,
4792
4821
  onInstallSuccess: m
4793
- } = 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 = Dl(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);
4794
4823
  return Y(() => {
4795
- !b && n && S && !s && w && r && (a != null && a.id) && (I(!0), El({
4824
+ !b && n && S && !s && w && r && (a != null && a.id) && (I(!0), Pl({
4796
4825
  apiKey: r,
4797
4826
  projectId: t,
4798
4827
  integrationId: a == null ? void 0 : a.id,
@@ -4820,9 +4849,9 @@ function Kl({ children: e }) {
4820
4849
  h,
4821
4850
  b,
4822
4851
  m
4823
- ]), a ? b ? /* @__PURE__ */ l(De, {}) : S && v && s ? /* @__PURE__ */ l(Pl, { provider: v }) : /* @__PURE__ */ l("div", { children: e }) : /* @__PURE__ */ l(qe, { 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" });
4824
4853
  }
4825
- function Ll({ children: e }) {
4854
+ function Ul({ children: e }) {
4826
4855
  return /* @__PURE__ */ l(cr, { children: /* @__PURE__ */ l(
4827
4856
  J,
4828
4857
  {
@@ -4841,13 +4870,13 @@ function Ll({ children: e }) {
4841
4870
  }
4842
4871
  ) });
4843
4872
  }
4844
- function Bl({ error: e }) {
4873
+ function Ml({ error: e }) {
4845
4874
  return e ? /* @__PURE__ */ A(Xr, { status: "error", marginTop: "2em", children: [
4846
4875
  /* @__PURE__ */ l(Gr, {}),
4847
4876
  /* @__PURE__ */ l(Vr, { children: e })
4848
4877
  ] }) : null;
4849
4878
  }
4850
- function na({ url: e, providerDisplayName: t, credentialName: r }) {
4879
+ function ra({ url: e, providerDisplayName: t, credentialName: r }) {
4851
4880
  return /* @__PURE__ */ A(Ie, { align: "left", color: "darkgray", children: [
4852
4881
  /* @__PURE__ */ l(
4853
4882
  so,
@@ -4867,7 +4896,7 @@ function na({ url: e, providerDisplayName: t, credentialName: r }) {
4867
4896
  "."
4868
4897
  ] });
4869
4898
  }
4870
- function Ul({
4899
+ function $l({
4871
4900
  provider: e,
4872
4901
  providerInfo: t,
4873
4902
  handleSubmit: r,
@@ -4876,12 +4905,12 @@ function Ul({
4876
4905
  }) {
4877
4906
  var v;
4878
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;
4879
- return /* @__PURE__ */ l(Ll, { children: /* @__PURE__ */ A(He, { children: [
4908
+ return /* @__PURE__ */ l(Ul, { children: /* @__PURE__ */ A(He, { children: [
4880
4909
  /* @__PURE__ */ l(rt, { my: "6", children: /* @__PURE__ */ l(Je, { as: "h4", size: "md", children: `Set up ${I} integration` }) }),
4881
- /* @__PURE__ */ l(Bl, { error: n }),
4910
+ /* @__PURE__ */ l(Ml, { error: n }),
4882
4911
  /* @__PURE__ */ A(Ae, { spacing: 4, children: [
4883
4912
  b && /* @__PURE__ */ l(
4884
- na,
4913
+ ra,
4885
4914
  {
4886
4915
  url: b,
4887
4916
  providerDisplayName: I,
@@ -4905,6 +4934,7 @@ function Ul({
4905
4934
  /* @__PURE__ */ l(
4906
4935
  ne,
4907
4936
  {
4937
+ variant: "primary",
4908
4938
  isDisabled: y,
4909
4939
  width: "100%",
4910
4940
  type: "submit",
@@ -4916,7 +4946,7 @@ function Ul({
4916
4946
  )
4917
4947
  ] }) });
4918
4948
  }
4919
- function Ml({
4949
+ function jl({
4920
4950
  provider: e,
4921
4951
  providerInfo: t,
4922
4952
  consumerRef: r,
@@ -4961,34 +4991,30 @@ function Ml({
4961
4991
  const v = (S) => {
4962
4992
  I(S), w(!0);
4963
4993
  };
4964
- return u === null ? /* @__PURE__ */ l(Ul, { 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;
4965
4995
  }
4966
- function $l({ children: e }) {
4996
+ function ql({ children: e }) {
4967
4997
  return /* @__PURE__ */ l(cr, { children: /* @__PURE__ */ l(
4968
4998
  J,
4969
4999
  {
4970
5000
  p: 8,
4971
5001
  maxWidth: "600px",
4972
5002
  borderWidth: 1,
4973
- borderRadius: 8,
4974
- boxShadow: "lg",
4975
- textAlign: ["left"],
5003
+ borderRadius: 4,
4976
5004
  margin: "auto",
4977
5005
  marginTop: "40px",
4978
- bgColor: "white",
4979
- color: "gray.800",
4980
5006
  fontSize: "md",
4981
5007
  children: e
4982
5008
  }
4983
5009
  ) });
4984
5010
  }
4985
- function jl({ error: e }) {
5011
+ function Wl({ error: e }) {
4986
5012
  return e ? /* @__PURE__ */ A(Xr, { status: "error", marginTop: "2em", children: [
4987
5013
  /* @__PURE__ */ l(Gr, {}),
4988
5014
  /* @__PURE__ */ l(Vr, { children: e })
4989
5015
  ] }) : null;
4990
5016
  }
4991
- function Wl({
5017
+ function zl({
4992
5018
  provider: e,
4993
5019
  providerInfo: t,
4994
5020
  handleSubmit: r,
@@ -4997,13 +5023,13 @@ function Wl({
4997
5023
  }) {
4998
5024
  var C;
4999
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;
5000
- return /* @__PURE__ */ l($l, { children: /* @__PURE__ */ A(He, { children: [
5026
+ return /* @__PURE__ */ l(ql, { children: /* @__PURE__ */ A(He, { children: [
5001
5027
  /* @__PURE__ */ l(rt, { marginTop: "16", marginBottom: "0", children: /* @__PURE__ */ l(Je, { as: "h4", size: "md", children: `Set up ${b} integration` }) }),
5002
- /* @__PURE__ */ l(jl, { error: n }),
5028
+ /* @__PURE__ */ l(Wl, { error: n }),
5003
5029
  /* @__PURE__ */ l("br", {}),
5004
5030
  /* @__PURE__ */ A(Ae, { spacing: 4, children: [
5005
5031
  v && /* @__PURE__ */ l(
5006
- na,
5032
+ ra,
5007
5033
  {
5008
5034
  url: v,
5009
5035
  providerDisplayName: b,
@@ -5028,6 +5054,7 @@ function Wl({
5028
5054
  /* @__PURE__ */ l(
5029
5055
  ne,
5030
5056
  {
5057
+ variant: "primary",
5031
5058
  isDisabled: R,
5032
5059
  width: "100%",
5033
5060
  type: "submit",
@@ -5039,7 +5066,7 @@ function Wl({
5039
5066
  )
5040
5067
  ] }) });
5041
5068
  }
5042
- function ql({
5069
+ function Jl({
5043
5070
  provider: e,
5044
5071
  providerInfo: t,
5045
5072
  consumerRef: r,
@@ -5088,7 +5115,7 @@ function ql({
5088
5115
  I({ user: S, pass: R }), w(!0);
5089
5116
  };
5090
5117
  return u === null ? /* @__PURE__ */ l(
5091
- Wl,
5118
+ zl,
5092
5119
  {
5093
5120
  provider: e,
5094
5121
  providerInfo: t,
@@ -5097,16 +5124,16 @@ function ql({
5097
5124
  }
5098
5125
  ) : s;
5099
5126
  }
5100
- function zl(e) {
5127
+ function Hl(e) {
5101
5128
  const { selectedConnection: t } = Lt();
5102
5129
  Y(() => {
5103
5130
  e && t && e(t.id);
5104
5131
  }, [e, t]);
5105
5132
  }
5106
- function Jl({ onSuccess: e }) {
5107
- zl(e);
5133
+ function Xl({ onSuccess: e }) {
5134
+ Hl(e);
5108
5135
  }
5109
- function Hl({ children: e }) {
5136
+ function Gl({ children: e }) {
5110
5137
  return /* @__PURE__ */ l(cr, { children: /* @__PURE__ */ l(
5111
5138
  J,
5112
5139
  {
@@ -5125,25 +5152,26 @@ function Hl({ children: e }) {
5125
5152
  }
5126
5153
  ) });
5127
5154
  }
5128
- function Xl({ error: e }) {
5155
+ function Vl({ error: e }) {
5129
5156
  return e ? /* @__PURE__ */ A(Xr, { status: "error", marginTop: "2em", children: [
5130
5157
  /* @__PURE__ */ l(Gr, {}),
5131
5158
  /* @__PURE__ */ l(Vr, { children: e })
5132
5159
  ] }) : null;
5133
5160
  }
5134
- function Gl({
5161
+ function Yl({
5135
5162
  handleSubmit: e,
5136
5163
  error: t,
5137
5164
  isButtonDisabled: r,
5138
5165
  providerName: n
5139
5166
  }) {
5140
- return /* @__PURE__ */ l(Hl, { children: /* @__PURE__ */ A(He, { children: [
5167
+ return /* @__PURE__ */ l(Gl, { children: /* @__PURE__ */ A(He, { children: [
5141
5168
  /* @__PURE__ */ l(rt, { marginTop: "16", marginBottom: "0", children: /* @__PURE__ */ l(Je, { as: "h4", size: "md", children: `Set up ${n} integration` }) }),
5142
- /* @__PURE__ */ l(Xl, { error: t }),
5169
+ /* @__PURE__ */ l(Vl, { error: t }),
5143
5170
  /* @__PURE__ */ l("br", {}),
5144
5171
  /* @__PURE__ */ l(
5145
5172
  ne,
5146
5173
  {
5174
+ variant: "primary",
5147
5175
  isDisabled: r,
5148
5176
  width: "100%",
5149
5177
  type: "submit",
@@ -5153,7 +5181,7 @@ function Gl({
5153
5181
  )
5154
5182
  ] }) });
5155
5183
  }
5156
- function Vl({
5184
+ function Zl({
5157
5185
  provider: e,
5158
5186
  consumerRef: t,
5159
5187
  consumerName: r,
@@ -5186,7 +5214,7 @@ function Vl({
5186
5214
  const I = () => {
5187
5215
  y(!0);
5188
5216
  };
5189
- return s === null ? /* @__PURE__ */ l(Gl, { handleSubmit: I, error: null, providerName: p }) : a;
5217
+ return s === null ? /* @__PURE__ */ l(Yl, { handleSubmit: I, error: null, providerName: p }) : a;
5190
5218
  }
5191
5219
  function lr({ children: e }) {
5192
5220
  return /* @__PURE__ */ l(cr, { children: /* @__PURE__ */ l(
@@ -5213,7 +5241,7 @@ function ur({ error: e }) {
5213
5241
  /* @__PURE__ */ l(Vr, { children: e })
5214
5242
  ] }) : null;
5215
5243
  }
5216
- function Yl({
5244
+ function Ql({
5217
5245
  handleSubmit: e,
5218
5246
  error: t,
5219
5247
  explicitScopesRequired: r,
@@ -5225,7 +5253,7 @@ function Yl({
5225
5253
  clientId: h,
5226
5254
  clientSecret: u
5227
5255
  };
5228
- r && w.length > 0 && (M.scopes = Ro(w)), e(M);
5256
+ r && w.length > 0 && (M.scopes = To(w)), e(M);
5229
5257
  };
5230
5258
  return /* @__PURE__ */ l(lr, { children: /* @__PURE__ */ A(He, { children: [
5231
5259
  /* @__PURE__ */ l(rt, { marginTop: "16", marginBottom: "0", children: /* @__PURE__ */ l(Je, { as: "h4", size: "md", children: `Set up ${i} integration` }) }),
@@ -5257,6 +5285,7 @@ function Yl({
5257
5285
  /* @__PURE__ */ l(
5258
5286
  ne,
5259
5287
  {
5288
+ variant: "primary",
5260
5289
  isDisabled: D,
5261
5290
  width: "100%",
5262
5291
  type: "submit",
@@ -5266,7 +5295,7 @@ function Yl({
5266
5295
  )
5267
5296
  ] }) });
5268
5297
  }
5269
- function Zl({
5298
+ function eu({
5270
5299
  provider: e,
5271
5300
  consumerRef: t,
5272
5301
  consumerName: r,
@@ -5300,7 +5329,7 @@ function Zl({
5300
5329
  });
5301
5330
  };
5302
5331
  return u === null ? /* @__PURE__ */ l(
5303
- Yl,
5332
+ Ql,
5304
5333
  {
5305
5334
  providerName: s,
5306
5335
  handleSubmit: I,
@@ -5309,7 +5338,7 @@ function Zl({
5309
5338
  }
5310
5339
  ) : /* @__PURE__ */ l(De, {});
5311
5340
  }
5312
- const ia = async (e, t, r, n, i, a, s, u) => {
5341
+ const na = async (e, t, r, n, i, a, s, u) => {
5313
5342
  var h;
5314
5343
  const p = await X().providerApi.getProvider({ provider: i }, {
5315
5344
  headers: { "X-Api-Key": n ?? "" }
@@ -5337,8 +5366,8 @@ const ia = async (e, t, r, n, i, a, s, u) => {
5337
5366
  return await X().oAuthApi.oauthConnect(I);
5338
5367
  }
5339
5368
  throw new Error(`Provider ${i} does not support an OAuth2 web flow.`);
5340
- }, Hi = 600, Xi = 600, Ql = "AUTHORIZATION_SUCCEEDED", eu = "AUTHORIZATION_FAILED";
5341
- function tu(e, t, r) {
5369
+ }, Hi = 600, Xi = 600, tu = "AUTHORIZATION_SUCCEEDED", ru = "AUTHORIZATION_FAILED";
5370
+ function nu(e, t, r) {
5342
5371
  return Q(async (n) => {
5343
5372
  const i = await X().connectionApi.getConnection({ projectIdOrName: e, connectionId: n }, {
5344
5373
  headers: { "X-Api-Key": t ?? "" }
@@ -5346,32 +5375,32 @@ function tu(e, t, r) {
5346
5375
  r(i);
5347
5376
  }, [e, t, r]);
5348
5377
  }
5349
- function ru(e, t, r, n) {
5378
+ function iu(e, t, r, n) {
5350
5379
  return Q(() => {
5351
5380
  if (!n) return;
5352
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);
5353
5382
  t(u), window.addEventListener("message", r, !1);
5354
5383
  }, [n, e, t, r]);
5355
5384
  }
5356
- function nu(e) {
5385
+ function ou(e) {
5357
5386
  return Q((t) => {
5358
5387
  var r;
5359
- if (t.origin === Id) {
5360
- if (t.data.eventType === Ql) {
5388
+ if (t.origin === bd) {
5389
+ if (t.data.eventType === tu) {
5361
5390
  const n = (r = t.data.data) == null ? void 0 : r.connection;
5362
5391
  n ? e(n) : console.error("Connection ID not found in event data: ", { event: t });
5363
5392
  }
5364
- t.data.eventType === eu && console.error("OAuth failed: ", { event: t });
5393
+ t.data.eventType === ru && console.error("OAuth failed: ", { event: t });
5365
5394
  }
5366
5395
  }, [e]);
5367
5396
  }
5368
- function oa({
5397
+ function ia({
5369
5398
  children: e,
5370
5399
  oauthUrl: t,
5371
5400
  windowTitle: r = "Connect to Provider",
5372
5401
  onClose: n
5373
5402
  }) {
5374
- const i = te(), { projectId: a } = ee(), [s, u] = k(null), [p, h] = k(null), { setSelectedConnection: m } = Lt(), w = nu(u), y = ru(r, h, w, t), I = tu(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);
5375
5404
  Y(() => {
5376
5405
  t && !p && y();
5377
5406
  }, [t, p, y, w, r]), Y(() => {
@@ -5386,7 +5415,7 @@ function oa({
5386
5415
  }, 500);
5387
5416
  return /* @__PURE__ */ l("div", { children: e });
5388
5417
  }
5389
- function iu({
5418
+ function au({
5390
5419
  handleSubmit: e,
5391
5420
  error: t,
5392
5421
  isButtonDisabled: r,
@@ -5399,6 +5428,7 @@ function iu({
5399
5428
  /* @__PURE__ */ l(
5400
5429
  ne,
5401
5430
  {
5431
+ variant: "primary",
5402
5432
  isDisabled: r,
5403
5433
  width: "100%",
5404
5434
  type: "submit",
@@ -5408,7 +5438,7 @@ function iu({
5408
5438
  )
5409
5439
  ] }) });
5410
5440
  }
5411
- function ou({
5441
+ function su({
5412
5442
  provider: e,
5413
5443
  consumerRef: t,
5414
5444
  consumerName: r,
@@ -5419,7 +5449,7 @@ function ou({
5419
5449
  const { projectId: s } = ee(), u = te(), [p, h] = k(null), [m, w] = k(null), y = async () => {
5420
5450
  w(null);
5421
5451
  try {
5422
- const b = await ia(
5452
+ const b = await na(
5423
5453
  s,
5424
5454
  t,
5425
5455
  n,
@@ -5437,16 +5467,16 @@ function ou({
5437
5467
  w(b), h(null);
5438
5468
  }, []);
5439
5469
  return /* @__PURE__ */ l(
5440
- oa,
5470
+ ia,
5441
5471
  {
5442
5472
  windowTitle: `Connect to ${a}`,
5443
5473
  oauthUrl: p,
5444
5474
  onClose: I,
5445
- children: /* @__PURE__ */ l(iu, { handleSubmit: y, error: m, providerName: a })
5475
+ children: /* @__PURE__ */ l(au, { handleSubmit: y, error: m, providerName: a })
5446
5476
  }
5447
5477
  );
5448
5478
  }
5449
- function au({
5479
+ function cu({
5450
5480
  handleSubmit: e,
5451
5481
  error: t,
5452
5482
  isButtonDisabled: r,
@@ -5459,7 +5489,7 @@ function au({
5459
5489
  clientId: h,
5460
5490
  clientSecret: u
5461
5491
  };
5462
- i && I.length > 0 && (V.scopes = Ro(I)), e(V);
5492
+ i && I.length > 0 && (V.scopes = To(I)), e(V);
5463
5493
  };
5464
5494
  return /* @__PURE__ */ l(lr, { children: /* @__PURE__ */ A(He, { children: [
5465
5495
  /* @__PURE__ */ l(rt, { marginTop: "16", marginBottom: "0", children: /* @__PURE__ */ l(Je, { as: "h4", size: "md", children: `Set up ${n} integration` }) }),
@@ -5498,6 +5528,7 @@ function au({
5498
5528
  /* @__PURE__ */ l(
5499
5529
  ne,
5500
5530
  {
5531
+ variant: "primary",
5501
5532
  isDisabled: H,
5502
5533
  width: "100%",
5503
5534
  type: "submit",
@@ -5507,7 +5538,7 @@ function au({
5507
5538
  )
5508
5539
  ] }) });
5509
5540
  }
5510
- function su({
5541
+ function du({
5511
5542
  provider: e,
5512
5543
  providerName: t,
5513
5544
  consumerRef: r,
@@ -5542,7 +5573,7 @@ function su({
5542
5573
  });
5543
5574
  };
5544
5575
  return u === null ? /* @__PURE__ */ l(
5545
- au,
5576
+ cu,
5546
5577
  {
5547
5578
  providerName: t,
5548
5579
  handleSubmit: I,
@@ -5551,9 +5582,9 @@ function su({
5551
5582
  }
5552
5583
  ) : /* @__PURE__ */ l(De, {});
5553
5584
  }
5554
- function cu() {
5585
+ function lu() {
5555
5586
  const e = ve(
5556
- Ta
5587
+ Ca
5557
5588
  );
5558
5589
  if (!e)
5559
5590
  throw Error(
@@ -5561,27 +5592,27 @@ function cu() {
5561
5592
  );
5562
5593
  return e;
5563
5594
  }
5564
- var aa = _e({});
5565
- aa.displayName = "ColorModeContext";
5566
- function sa() {
5567
- const e = ve(aa);
5595
+ var oa = _e({});
5596
+ oa.displayName = "ColorModeContext";
5597
+ function aa() {
5598
+ const e = ve(oa);
5568
5599
  if (e === void 0)
5569
5600
  throw new Error("useColorMode must be used within a ColorModeProvider");
5570
5601
  return e;
5571
5602
  }
5572
- function du() {
5573
- const e = sa(), t = cu();
5603
+ function uu() {
5604
+ const e = aa(), t = lu();
5574
5605
  return { ...e, theme: t };
5575
5606
  }
5576
- var lu = (...e) => e.filter(Boolean).join(" ");
5607
+ var pu = (...e) => e.filter(Boolean).join(" ");
5577
5608
  function mt(e) {
5578
5609
  const t = typeof e;
5579
5610
  return e != null && (t === "object" || t === "function") && !Array.isArray(e);
5580
5611
  }
5581
5612
  function gt(e, ...t) {
5582
- return uu(e) ? e(...t) : e;
5613
+ return fu(e) ? e(...t) : e;
5583
5614
  }
5584
- var uu = (e) => typeof e == "function", zr = { exports: {} };
5615
+ var fu = (e) => typeof e == "function", zr = { exports: {} };
5585
5616
  zr.exports;
5586
5617
  (function(e, t) {
5587
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*)$/, $ = {};
@@ -5631,7 +5662,7 @@ zr.exports;
5631
5662
  "^" + Nt.call(xe).replace(hn, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
5632
5663
  ), Ge = Ut ? Xe.Buffer : void 0, jt = Xe.Symbol, ue = Xe.Uint8Array;
5633
5664
  Ge && Ge.allocUnsafe;
5634
- var Wt = In(Object.getPrototypeOf, Object), qt = Object.create, On = Ct.propertyIsEnumerable, wr = vn.splice, he = jt ? jt.toStringTag : void 0, it = function() {
5665
+ var qt = In(Object.getPrototypeOf, Object), Wt = Object.create, On = Ct.propertyIsEnumerable, wr = vn.splice, he = jt ? jt.toStringTag : void 0, it = function() {
5635
5666
  try {
5636
5667
  var o = Vt(Object, "defineProperty");
5637
5668
  return o({}, "", {}), o;
@@ -5643,8 +5674,8 @@ zr.exports;
5643
5674
  return function(c) {
5644
5675
  if (!Me(c))
5645
5676
  return {};
5646
- if (qt)
5647
- return qt(c);
5677
+ if (Wt)
5678
+ return Wt(c);
5648
5679
  o.prototype = c;
5649
5680
  var f = new o();
5650
5681
  return o.prototype = void 0, f;
@@ -5769,12 +5800,12 @@ zr.exports;
5769
5800
  Ve.prototype.clear = Ce, Ve.prototype.delete = Fn, Ve.prototype.get = Pn, Ve.prototype.has = Dn, Ve.prototype.set = Kn;
5770
5801
  function Ln(o, c) {
5771
5802
  var f = Te(o), O = !f && Zt(o), T = !f && !O && ut(o), x = !f && !O && !T && er(o), P = f || O || T || x, E = P ? gr(o.length, String) : [], F = E.length;
5772
- for (var W in o)
5803
+ for (var q in o)
5773
5804
  P && // Safari 9 has enumerable `arguments.length` in strict mode.
5774
- (W == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
5775
- T && (W == "offset" || W == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
5776
- x && (W == "buffer" || W == "byteLength" || W == "byteOffset") || // Skip index properties.
5777
- Yt(W, F)) || E.push(W);
5805
+ (q == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
5806
+ T && (q == "offset" || q == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
5807
+ x && (q == "buffer" || q == "byteLength" || q == "byteOffset") || // Skip index properties.
5808
+ Yt(q, F)) || E.push(q);
5778
5809
  return E;
5779
5810
  }
5780
5811
  function Ne(o, c, f) {
@@ -5833,22 +5864,22 @@ zr.exports;
5833
5864
  }, tr);
5834
5865
  }
5835
5866
  function jn(o, c, f, O, T, x, P) {
5836
- var E = ge(o, f), F = ge(c, f), W = P.get(F);
5837
- if (W) {
5838
- Ne(o, f, W);
5867
+ var E = ge(o, f), F = ge(c, f), q = P.get(F);
5868
+ if (q) {
5869
+ Ne(o, f, q);
5839
5870
  return;
5840
5871
  }
5841
- var q = x ? x(E, F, f + "", o, c, P) : void 0, G = q === void 0;
5872
+ var W = x ? x(E, F, f + "", o, c, P) : void 0, G = W === void 0;
5842
5873
  if (G) {
5843
5874
  var oe = Te(F), ae = !oe && ut(F), Re = !oe && !ae && er(F);
5844
- q = F, oe || ae || Re ? Te(E) ? q = E : ni(E) ? q = Hn(E) : ae ? (G = !1, q = zn(F)) : Re ? (G = !1, q = At(F)) : q = [] : Tr(F) || Zt(F) ? (q = E, Zt(E) ? q = pt(E) : (!Me(E) || Qt(E)) && (q = Gn(F))) : G = !1;
5875
+ W = F, oe || ae || Re ? Te(E) ? W = E : ni(E) ? W = Hn(E) : ae ? (G = !1, W = zn(F)) : Re ? (G = !1, W = At(F)) : W = [] : Tr(F) || Zt(F) ? (W = E, Zt(E) ? W = pt(E) : (!Me(E) || Qt(E)) && (W = Gn(F))) : G = !1;
5845
5876
  }
5846
- G && (P.set(F, q), T(q, F, O, x, P), P.delete(F)), Ne(o, f, q);
5877
+ G && (P.set(F, W), T(W, F, O, x, P), P.delete(F)), Ne(o, f, W);
5847
5878
  }
5848
- function Wn(o, c) {
5879
+ function qn(o, c) {
5849
5880
  return ei(Qn(o, c, Rr), o + "");
5850
5881
  }
5851
- var qn = it ? function(o, c) {
5882
+ var Wn = it ? function(o, c) {
5852
5883
  return it(o, "toString", {
5853
5884
  configurable: !0,
5854
5885
  enumerable: !1,
@@ -5883,7 +5914,7 @@ zr.exports;
5883
5914
  return f;
5884
5915
  }
5885
5916
  function Or(o) {
5886
- return Wn(function(c, f) {
5917
+ return qn(function(c, f) {
5887
5918
  var O = -1, T = f.length, x = T > 1 ? f[T - 1] : void 0, P = T > 2 ? f[2] : void 0;
5888
5919
  for (x = o.length > 3 && typeof x == "function" ? (T--, x) : void 0, P && Vn(f[0], f[1], P) && (x = T < 3 ? void 0 : x, T = 1), c = Object(c); ++O < T; ) {
5889
5920
  var E = f[O];
@@ -5921,7 +5952,7 @@ zr.exports;
5921
5952
  return O && (c ? o[he] = f : delete o[he]), T;
5922
5953
  }
5923
5954
  function Gn(o) {
5924
- return typeof o.constructor == "function" && !lt(o) ? Cn(Wt(o)) : {};
5955
+ return typeof o.constructor == "function" && !lt(o) ? Cn(qt(o)) : {};
5925
5956
  }
5926
5957
  function Yt(o, c) {
5927
5958
  var f = typeof o;
@@ -5968,7 +5999,7 @@ zr.exports;
5968
5999
  if (!(c === "constructor" && typeof o[c] == "function") && c != "__proto__")
5969
6000
  return o[c];
5970
6001
  }
5971
- var ei = ti(qn);
6002
+ var ei = ti(Wn);
5972
6003
  function ti(o) {
5973
6004
  var c = 0, f = 0;
5974
6005
  return function() {
@@ -6028,7 +6059,7 @@ zr.exports;
6028
6059
  function Tr(o) {
6029
6060
  if (!Ze(o) || _t(o) != C)
6030
6061
  return !1;
6031
- var c = Wt(o);
6062
+ var c = qt(o);
6032
6063
  if (c === null)
6033
6064
  return !0;
6034
6065
  var f = xe.call(c, "constructor") && c.constructor;
@@ -6057,10 +6088,10 @@ zr.exports;
6057
6088
  }
6058
6089
  e.exports = ii;
6059
6090
  })(zr, zr.exports);
6060
- var pu = zr.exports;
6061
- const We = /* @__PURE__ */ Ni(pu);
6062
- var fu = (e) => /!(important)?$/.test(e), Gi = (e) => typeof e == "string" ? e.replace(/!(important)?$/, "").trim() : e, hu = (e, t) => (r) => {
6063
- const n = String(t), i = fu(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;
6064
6095
  let u = mt(r.__cssMap) && s in r.__cssMap ? r.__cssMap[s].varRef : t;
6065
6096
  return u = Gi(u), i ? `${u} !important` : u;
6066
6097
  };
@@ -6068,7 +6099,7 @@ function ki(e) {
6068
6099
  const { scale: t, transform: r, compose: n } = e;
6069
6100
  return (a, s) => {
6070
6101
  var u;
6071
- const p = hu(t, a)(s);
6102
+ const p = mu(t, a)(s);
6072
6103
  let h = (u = r == null ? void 0 : r(p, s)) != null ? u : p;
6073
6104
  return n && (h = n(h, s)), h;
6074
6105
  };
@@ -6083,39 +6114,39 @@ function me(e, t) {
6083
6114
  }), n;
6084
6115
  };
6085
6116
  }
6086
- var gu = ({ rtl: e, ltr: t }) => (r) => r.direction === "rtl" ? e : t;
6087
- function mu(e) {
6117
+ var yu = ({ rtl: e, ltr: t }) => (r) => r.direction === "rtl" ? e : t;
6118
+ function wu(e) {
6088
6119
  const { property: t, scale: r, transform: n } = e;
6089
6120
  return {
6090
6121
  scale: r,
6091
- property: gu(t),
6122
+ property: yu(t),
6092
6123
  transform: r ? ki({
6093
6124
  scale: r,
6094
6125
  compose: n
6095
6126
  }) : n
6096
6127
  };
6097
6128
  }
6098
- var ca = [
6129
+ var sa = [
6099
6130
  "rotate(var(--chakra-rotate, 0))",
6100
6131
  "scaleX(var(--chakra-scale-x, 1))",
6101
6132
  "scaleY(var(--chakra-scale-y, 1))",
6102
6133
  "skewX(var(--chakra-skew-x, 0))",
6103
6134
  "skewY(var(--chakra-skew-y, 0))"
6104
6135
  ];
6105
- function yu() {
6136
+ function Iu() {
6106
6137
  return [
6107
6138
  "translateX(var(--chakra-translate-x, 0))",
6108
6139
  "translateY(var(--chakra-translate-y, 0))",
6109
- ...ca
6140
+ ...sa
6110
6141
  ].join(" ");
6111
6142
  }
6112
- function wu() {
6143
+ function vu() {
6113
6144
  return [
6114
6145
  "translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",
6115
- ...ca
6146
+ ...sa
6116
6147
  ].join(" ");
6117
6148
  }
6118
- var Iu = {
6149
+ var bu = {
6119
6150
  "--chakra-blur": "var(--chakra-empty,/*!*/ /*!*/)",
6120
6151
  "--chakra-brightness": "var(--chakra-empty,/*!*/ /*!*/)",
6121
6152
  "--chakra-contrast": "var(--chakra-empty,/*!*/ /*!*/)",
@@ -6136,7 +6167,7 @@ var Iu = {
6136
6167
  "var(--chakra-sepia)",
6137
6168
  "var(--chakra-drop-shadow)"
6138
6169
  ].join(" ")
6139
- }, vu = {
6170
+ }, Su = {
6140
6171
  backdropFilter: [
6141
6172
  "var(--chakra-backdrop-blur)",
6142
6173
  "var(--chakra-backdrop-brightness)",
@@ -6158,7 +6189,7 @@ var Iu = {
6158
6189
  "--chakra-backdrop-saturate": "var(--chakra-empty,/*!*/ /*!*/)",
6159
6190
  "--chakra-backdrop-sepia": "var(--chakra-empty,/*!*/ /*!*/)"
6160
6191
  };
6161
- function bu(e) {
6192
+ function Ou(e) {
6162
6193
  return {
6163
6194
  "--chakra-ring-offset-shadow": "var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)",
6164
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)",
@@ -6170,7 +6201,7 @@ function bu(e) {
6170
6201
  ].join(", ")
6171
6202
  };
6172
6203
  }
6173
- var Su = {
6204
+ var Cu = {
6174
6205
  "row-reverse": {
6175
6206
  space: "--chakra-space-x-reverse",
6176
6207
  divide: "--chakra-divide-x-reverse"
@@ -6188,15 +6219,15 @@ var Su = {
6188
6219
  "to-bl": "to bottom left",
6189
6220
  "to-l": "to left",
6190
6221
  "to-tl": "to top left"
6191
- }, Ou = new Set(Object.values(yi)), wi = /* @__PURE__ */ new Set([
6222
+ }, Nu = new Set(Object.values(yi)), wi = /* @__PURE__ */ new Set([
6192
6223
  "none",
6193
6224
  "-moz-initial",
6194
6225
  "inherit",
6195
6226
  "initial",
6196
6227
  "revert",
6197
6228
  "unset"
6198
- ]), Cu = (e) => e.trim();
6199
- function Nu(e, t) {
6229
+ ]), Tu = (e) => e.trim();
6230
+ function Ru(e, t) {
6200
6231
  if (e == null || wi.has(e))
6201
6232
  return e;
6202
6233
  if (!(Ii(e) || wi.has(e)))
@@ -6204,13 +6235,13 @@ function Nu(e, t) {
6204
6235
  const i = /(^[a-z-A-Z]+)\((.*)\)/g.exec(e), a = i == null ? void 0 : i[1], s = i == null ? void 0 : i[2];
6205
6236
  if (!a || !s)
6206
6237
  return e;
6207
- const u = a.includes("-gradient") ? a : `${a}-gradient`, [p, ...h] = s.split(",").map(Cu).filter(Boolean);
6238
+ const u = a.includes("-gradient") ? a : `${a}-gradient`, [p, ...h] = s.split(",").map(Tu).filter(Boolean);
6208
6239
  if ((h == null ? void 0 : h.length) === 0)
6209
6240
  return e;
6210
6241
  const m = p in yi ? yi[p] : p;
6211
6242
  h.unshift(m);
6212
6243
  const w = h.map((y) => {
6213
- if (Ou.has(y))
6244
+ if (Nu.has(y))
6214
6245
  return y;
6215
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;
6216
6247
  return S ? [
@@ -6220,28 +6251,28 @@ function Nu(e, t) {
6220
6251
  });
6221
6252
  return `${u}(${w.join(", ")})`;
6222
6253
  }
6223
- var Ii = (e) => typeof e == "string" && e.includes("(") && e.includes(")"), Tu = (e, t) => Nu(e, t ?? {});
6224
- function Ru(e) {
6254
+ var Ii = (e) => typeof e == "string" && e.includes("(") && e.includes(")"), _u = (e, t) => Ru(e, t ?? {});
6255
+ function Au(e) {
6225
6256
  return /^var\(--.+\)$/.test(e);
6226
6257
  }
6227
- var _u = (e) => {
6258
+ var xu = (e) => {
6228
6259
  const t = parseFloat(e.toString()), r = e.toString().replace(String(t), "");
6229
6260
  return { unitless: !r, value: t, unit: r };
6230
6261
  }, Fe = (e) => (t) => `${e}(${t})`, K = {
6231
6262
  filter(e) {
6232
- return e !== "auto" ? e : Iu;
6263
+ return e !== "auto" ? e : bu;
6233
6264
  },
6234
6265
  backdropFilter(e) {
6235
- return e !== "auto" ? e : vu;
6266
+ return e !== "auto" ? e : Su;
6236
6267
  },
6237
6268
  ring(e) {
6238
- return bu(K.px(e));
6269
+ return Ou(K.px(e));
6239
6270
  },
6240
6271
  bgClip(e) {
6241
6272
  return e === "text" ? { color: "transparent", backgroundClip: "text" } : { backgroundClip: e };
6242
6273
  },
6243
6274
  transform(e) {
6244
- return e === "auto" ? yu() : e === "auto-gpu" ? wu() : e;
6275
+ return e === "auto" ? Iu() : e === "auto-gpu" ? vu() : e;
6245
6276
  },
6246
6277
  vh(e) {
6247
6278
  return e === "$100vh" ? "var(--chakra-vh)" : e;
@@ -6249,7 +6280,7 @@ var _u = (e) => {
6249
6280
  px(e) {
6250
6281
  if (e == null)
6251
6282
  return e;
6252
- const { unitless: t } = _u(e);
6283
+ const { unitless: t } = xu(e);
6253
6284
  return t || typeof e == "number" ? `${e}px` : e;
6254
6285
  },
6255
6286
  fraction(e) {
@@ -6260,12 +6291,12 @@ var _u = (e) => {
6260
6291
  return t.direction === "rtl" ? r[e] : e;
6261
6292
  },
6262
6293
  degree(e) {
6263
- if (Ru(e) || e == null)
6294
+ if (Au(e) || e == null)
6264
6295
  return e;
6265
6296
  const t = typeof e == "string" && !e.endsWith("deg");
6266
6297
  return typeof e == "number" || t ? `${e}deg` : e;
6267
6298
  },
6268
- gradient: Tu,
6299
+ gradient: _u,
6269
6300
  blur: Fe("blur"),
6270
6301
  opacity: Fe("opacity"),
6271
6302
  brightness: Fe("brightness"),
@@ -6285,7 +6316,7 @@ var _u = (e) => {
6285
6316
  },
6286
6317
  flexDirection(e) {
6287
6318
  var t;
6288
- const { space: r, divide: n } = (t = Su[e]) != null ? t : {}, i = { flexDirection: e };
6319
+ const { space: r, divide: n } = (t = Cu[e]) != null ? t : {}, i = { flexDirection: e };
6289
6320
  return r && (i[r] = 1), n && (i[n] = 1), i;
6290
6321
  }
6291
6322
  }, g = {
@@ -6315,7 +6346,7 @@ var _u = (e) => {
6315
6346
  sizes: me("sizes", Fr(K.vh, K.px)),
6316
6347
  sizesT: me("sizes", Fr(K.vh, K.fraction)),
6317
6348
  shadows: me("shadows"),
6318
- logical: mu,
6349
+ logical: wu,
6319
6350
  blur: me("blur", K.blur)
6320
6351
  }, Kr = {
6321
6352
  background: g.colors("background"),
@@ -6473,7 +6504,7 @@ Object.assign(L, {
6473
6504
  borderStartStyle: L.borderInlineStartStyle,
6474
6505
  borderEndStyle: L.borderInlineEndStyle
6475
6506
  });
6476
- var Au = {
6507
+ var ku = {
6477
6508
  color: g.colors("color"),
6478
6509
  textColor: g.colors("color"),
6479
6510
  fill: g.colors("fill"),
@@ -6489,7 +6520,7 @@ var Au = {
6489
6520
  Object.assign(vi, {
6490
6521
  shadow: vi.boxShadow
6491
6522
  });
6492
- var xu = {
6523
+ var Eu = {
6493
6524
  filter: { transform: K.filter },
6494
6525
  blur: g.blur("--chakra-blur"),
6495
6526
  brightness: g.propT("--chakra-brightness", K.brightness),
@@ -6536,7 +6567,7 @@ var xu = {
6536
6567
  Object.assign(Jr, {
6537
6568
  flexDir: Jr.flexDirection
6538
6569
  });
6539
- var da = {
6570
+ var ca = {
6540
6571
  gridGap: g.space("gridGap"),
6541
6572
  gridColumnGap: g.space("gridColumnGap"),
6542
6573
  gridRowGap: g.space("gridRowGap"),
@@ -6554,7 +6585,7 @@ var da = {
6554
6585
  gridTemplateRows: !0,
6555
6586
  gridTemplateAreas: !0,
6556
6587
  gridArea: !0
6557
- }, ku = {
6588
+ }, Fu = {
6558
6589
  appearance: !0,
6559
6590
  cursor: !0,
6560
6591
  resize: !0,
@@ -6619,20 +6650,20 @@ Object.assign(ye, {
6619
6650
  overscrollX: ye.overscrollBehaviorX,
6620
6651
  overscrollY: ye.overscrollBehaviorY
6621
6652
  });
6622
- var Eu = {
6653
+ var Pu = {
6623
6654
  listStyleType: !0,
6624
6655
  listStylePosition: !0,
6625
6656
  listStylePos: g.prop("listStylePosition"),
6626
6657
  listStyleImage: !0,
6627
6658
  listStyleImg: g.prop("listStyleImage")
6628
6659
  };
6629
- function Fu(e, t, r, n) {
6660
+ function Du(e, t, r, n) {
6630
6661
  const i = typeof t == "string" ? t.split(".") : [t];
6631
6662
  for (n = 0; n < i.length && e; n += 1)
6632
6663
  e = e[i[n]];
6633
6664
  return e === void 0 ? r : e;
6634
6665
  }
6635
- var Pu = (e) => {
6666
+ var Ku = (e) => {
6636
6667
  const t = /* @__PURE__ */ new WeakMap();
6637
6668
  return (n, i, a, s) => {
6638
6669
  if (typeof n > "u")
@@ -6644,7 +6675,7 @@ var Pu = (e) => {
6644
6675
  const p = e(n, i, a, s);
6645
6676
  return u.set(i, p), p;
6646
6677
  };
6647
- }, Du = Pu(Fu), Ku = {
6678
+ }, Lu = Ku(Du), Bu = {
6648
6679
  border: "0px",
6649
6680
  clip: "rect(0, 0, 0, 0)",
6650
6681
  width: "1px",
@@ -6654,7 +6685,7 @@ var Pu = (e) => {
6654
6685
  overflow: "hidden",
6655
6686
  whiteSpace: "nowrap",
6656
6687
  position: "absolute"
6657
- }, Lu = {
6688
+ }, Uu = {
6658
6689
  position: "static",
6659
6690
  width: "auto",
6660
6691
  height: "auto",
@@ -6664,14 +6695,14 @@ var Pu = (e) => {
6664
6695
  overflow: "visible",
6665
6696
  whiteSpace: "normal"
6666
6697
  }, di = (e, t, r) => {
6667
- const n = {}, i = Du(e, t, {});
6698
+ const n = {}, i = Lu(e, t, {});
6668
6699
  for (const a in i)
6669
6700
  a in r && r[a] != null || (n[a] = i[a]);
6670
6701
  return n;
6671
- }, Bu = {
6702
+ }, Mu = {
6672
6703
  srOnly: {
6673
6704
  transform(e) {
6674
- return e === !0 ? Ku : e === "focusable" ? Lu : {};
6705
+ return e === !0 ? Bu : e === "focusable" ? Uu : {};
6675
6706
  }
6676
6707
  },
6677
6708
  layerStyle: {
@@ -6714,7 +6745,7 @@ Object.assign(or, {
6714
6745
  insetStart: or.insetInlineStart,
6715
6746
  insetEnd: or.insetInlineEnd
6716
6747
  });
6717
- var Uu = {
6748
+ var $u = {
6718
6749
  ring: { transform: K.ring },
6719
6750
  ringColor: g.colors("--chakra-ring-color"),
6720
6751
  ringOffset: g.prop("--chakra-ring-offset-width"),
@@ -6772,7 +6803,7 @@ Object.assign(z, {
6772
6803
  pe: z.paddingInlineEnd,
6773
6804
  paddingEnd: z.paddingInlineEnd
6774
6805
  });
6775
- var Mu = {
6806
+ var ju = {
6776
6807
  textDecorationColor: g.colors("textDecorationColor"),
6777
6808
  textDecoration: !0,
6778
6809
  textDecor: { property: "textDecoration" },
@@ -6781,7 +6812,7 @@ var Mu = {
6781
6812
  textDecorationThickness: !0,
6782
6813
  textUnderlineOffset: !0,
6783
6814
  textShadow: g.shadows("textShadow")
6784
- }, $u = {
6815
+ }, qu = {
6785
6816
  clipPath: !0,
6786
6817
  transform: g.propT("transform", K.transform),
6787
6818
  transformOrigin: !0,
@@ -6793,7 +6824,7 @@ var Mu = {
6793
6824
  scaleY: g.prop("--chakra-scale-y"),
6794
6825
  scale: g.prop(["--chakra-scale-x", "--chakra-scale-y"]),
6795
6826
  rotate: g.degreeT("--chakra-rotate")
6796
- }, ju = {
6827
+ }, Wu = {
6797
6828
  transition: !0,
6798
6829
  transitionDelay: !0,
6799
6830
  animation: !0,
@@ -6804,7 +6835,7 @@ var Mu = {
6804
6835
  "transitionTimingFunction",
6805
6836
  "transition.easing"
6806
6837
  )
6807
- }, Wu = {
6838
+ }, zu = {
6808
6839
  fontFamily: g.prop("fontFamily", "fonts"),
6809
6840
  fontSize: g.prop("fontSize", "fontSizes", K.px),
6810
6841
  fontWeight: g.prop("fontWeight", "fontWeights"),
@@ -6839,7 +6870,7 @@ var Mu = {
6839
6870
  },
6840
6871
  property: "--chakra-line-clamp"
6841
6872
  }
6842
- }, qu = {
6873
+ }, Ju = {
6843
6874
  scrollBehavior: !0,
6844
6875
  scrollSnapAlign: !0,
6845
6876
  scrollSnapStop: !0,
@@ -6861,11 +6892,11 @@ var Mu = {
6861
6892
  scrollPaddingX: g.spaceT(["scrollPaddingLeft", "scrollPaddingRight"]),
6862
6893
  scrollPaddingY: g.spaceT(["scrollPaddingTop", "scrollPaddingBottom"])
6863
6894
  };
6864
- function la(e) {
6895
+ function da(e) {
6865
6896
  return mt(e) && e.reference ? e.reference : String(e);
6866
6897
  }
6867
- var an = (e, ...t) => t.map(la).join(` ${e} `).replace(/calc/g, ""), Vi = (...e) => `calc(${an("+", ...e)})`, Yi = (...e) => `calc(${an("-", ...e)})`, bi = (...e) => `calc(${an("*", ...e)})`, Zi = (...e) => `calc(${an("/", ...e)})`, Qi = (e) => {
6868
- const t = la(e);
6898
+ var an = (e, ...t) => t.map(da).join(` ${e} `).replace(/calc/g, ""), Vi = (...e) => `calc(${an("+", ...e)})`, Yi = (...e) => `calc(${an("-", ...e)})`, bi = (...e) => `calc(${an("*", ...e)})`, Zi = (...e) => `calc(${an("/", ...e)})`, Qi = (e) => {
6899
+ const t = da(e);
6869
6900
  return t != null && !Number.isNaN(parseFloat(t)) ? String(t).startsWith("-") ? String(t).slice(1) : `-${t}` : bi(t, -1);
6870
6901
  }, ir = Object.assign(
6871
6902
  (e) => ({
@@ -6884,17 +6915,17 @@ var an = (e, ...t) => t.map(la).join(` ${e} `).replace(/calc/g, ""), Vi = (...e)
6884
6915
  negate: Qi
6885
6916
  }
6886
6917
  );
6887
- function zu(e) {
6918
+ function Hu(e) {
6888
6919
  const t = parseFloat(e.toString()), r = e.toString().replace(String(t), "");
6889
6920
  return { unitless: !r, value: t, unit: r };
6890
6921
  }
6891
6922
  function eo(e) {
6892
6923
  if (e == null)
6893
6924
  return e;
6894
- const { unitless: t } = zu(e);
6925
+ const { unitless: t } = Hu(e);
6895
6926
  return t || typeof e == "number" ? `${e}px` : e;
6896
6927
  }
6897
- function Ju(e, t) {
6928
+ function Xu(e, t) {
6898
6929
  const r = ["@media screen"];
6899
6930
  return e && r.push("and", `(min-width: ${eo(e)})`), t && r.push("and", `(max-width: ${eo(t)})`), r.join(" ");
6900
6931
  }
@@ -6911,7 +6942,7 @@ var re = {
6911
6942
  readOnly: (e, t) => `${e}:read-only ${t}, ${e}[readonly] ${t}, ${e}[data-read-only] ${t}`,
6912
6943
  expanded: (e, t) => `${e}:read-only ${t}, ${e}[aria-expanded=true] ${t}, ${e}[data-expanded] ${t}`,
6913
6944
  placeholderShown: (e, t) => `${e}:placeholder-shown ${t}`
6914
- }, Qe = (e) => ua((t) => e(t, "&"), "[role=group]", "[data-group]", ".group"), je = (e) => ua((t) => e(t, "~ &"), "[data-peer]", ".peer"), ua = (e, ...t) => t.map(e).join(", "), Ei = {
6945
+ }, Qe = (e) => la((t) => e(t, "&"), "[role=group]", "[data-group]", ".group"), je = (e) => la((t) => e(t, "~ &"), "[data-peer]", ".peer"), la = (e, ...t) => t.map(e).join(", "), Ei = {
6915
6946
  /**
6916
6947
  * Styles for CSS selector `&:hover`
6917
6948
  */
@@ -7199,32 +7230,32 @@ var re = {
7199
7230
  * Styles for the CSS Selector `&[data-orientation=vertical]`
7200
7231
  */
7201
7232
  _vertical: "&[data-orientation=vertical]"
7202
- }, Hu = Object.keys(
7233
+ }, Gu = Object.keys(
7203
7234
  Ei
7204
- ), Fi = We(
7235
+ ), Fi = qe(
7205
7236
  {},
7206
7237
  Kr,
7207
7238
  L,
7208
- Au,
7239
+ ku,
7209
7240
  Jr,
7210
7241
  ye,
7211
- xu,
7212
- Uu,
7213
- ku,
7214
- da,
7215
- Bu,
7242
+ Eu,
7243
+ $u,
7244
+ Fu,
7245
+ ca,
7246
+ Mu,
7216
7247
  or,
7217
7248
  vi,
7218
7249
  z,
7250
+ Ju,
7251
+ zu,
7252
+ ju,
7219
7253
  qu,
7220
- Wu,
7221
- Mu,
7222
- $u,
7223
- Eu,
7224
- ju
7254
+ Pu,
7255
+ Wu
7225
7256
  );
7226
- Object.assign({}, z, ye, Jr, da, or);
7227
- var Xu = [...Object.keys(Fi), ...Hu], Gu = { ...Fi, ...Ei }, Vu = (e) => e in Gu, Yu = (e) => (t) => {
7257
+ Object.assign({}, z, ye, Jr, ca, or);
7258
+ var Vu = [...Object.keys(Fi), ...Gu], Yu = { ...Fi, ...Ei }, Zu = (e) => e in Yu, Qu = (e) => (t) => {
7228
7259
  if (!t.__breakpoints)
7229
7260
  return e;
7230
7261
  const { isResponsive: r, toArrayValue: n, media: i } = t.__breakpoints, a = {};
@@ -7248,7 +7279,7 @@ var Xu = [...Object.keys(Fi), ...Hu], Gu = { ...Fi, ...Ei }, Vu = (e) => e in Gu
7248
7279
  }
7249
7280
  return a;
7250
7281
  };
7251
- function Zu(e) {
7282
+ function ep(e) {
7252
7283
  const t = [];
7253
7284
  let r = "", n = !1;
7254
7285
  for (let i = 0; i < e.length; i++) {
@@ -7257,10 +7288,10 @@ function Zu(e) {
7257
7288
  }
7258
7289
  return r = r.trim(), r && t.push(r), t;
7259
7290
  }
7260
- function Qu(e) {
7291
+ function tp(e) {
7261
7292
  return /^var\(--.+\)$/.test(e);
7262
7293
  }
7263
- var ep = (e, t) => e.startsWith("--") && typeof t == "string" && !Qu(t), tp = (e, t) => {
7294
+ var rp = (e, t) => e.startsWith("--") && typeof t == "string" && !tp(t), np = (e, t) => {
7264
7295
  var r, n;
7265
7296
  if (t == null)
7266
7297
  return t;
@@ -7270,21 +7301,21 @@ var ep = (e, t) => e.startsWith("--") && typeof t == "string" && !Qu(t), tp = (e
7270
7301
  }, a = (p) => {
7271
7302
  var h;
7272
7303
  return (h = i(p)) != null ? h : p;
7273
- }, [s, u] = Zu(t);
7304
+ }, [s, u] = ep(t);
7274
7305
  return t = (n = (r = i(s)) != null ? r : a(u)) != null ? n : a(t), t;
7275
7306
  };
7276
- function rp(e) {
7307
+ function ip(e) {
7277
7308
  const { configs: t = {}, pseudos: r = {}, theme: n } = e, i = (a, s = !1) => {
7278
7309
  var u, p, h;
7279
- const m = gt(a, n), w = Yu(m)(n);
7310
+ const m = gt(a, n), w = Qu(m)(n);
7280
7311
  let y = {};
7281
7312
  for (let I in w) {
7282
7313
  const b = w[I];
7283
7314
  let v = gt(b, n);
7284
- I in r && (I = r[I]), ep(I, v) && (v = tp(n, v));
7315
+ I in r && (I = r[I]), rp(I, v) && (v = np(n, v));
7285
7316
  let S = t[I];
7286
7317
  if (S === !0 && (S = { property: I }), mt(v)) {
7287
- y[I] = (u = y[I]) != null ? u : {}, y[I] = We(
7318
+ y[I] = (u = y[I]) != null ? u : {}, y[I] = qe(
7288
7319
  {},
7289
7320
  y[I],
7290
7321
  i(v, !0)
@@ -7296,7 +7327,7 @@ function rp(e) {
7296
7327
  const C = gt(S == null ? void 0 : S.property, n);
7297
7328
  if (!s && (S != null && S.static)) {
7298
7329
  const D = gt(S.static, n);
7299
- y = We({}, y, D);
7330
+ y = qe({}, y, D);
7300
7331
  }
7301
7332
  if (C && Array.isArray(C)) {
7302
7333
  for (const D of C)
@@ -7304,11 +7335,11 @@ function rp(e) {
7304
7335
  continue;
7305
7336
  }
7306
7337
  if (C) {
7307
- C === "&" && mt(R) ? y = We({}, y, R) : y[C] = R;
7338
+ C === "&" && mt(R) ? y = qe({}, y, R) : y[C] = R;
7308
7339
  continue;
7309
7340
  }
7310
7341
  if (mt(R)) {
7311
- y = We({}, y, R);
7342
+ y = qe({}, y, R);
7312
7343
  continue;
7313
7344
  }
7314
7345
  y[I] = R;
@@ -7317,12 +7348,12 @@ function rp(e) {
7317
7348
  };
7318
7349
  return i;
7319
7350
  }
7320
- var np = (e) => (t) => rp({
7351
+ var op = (e) => (t) => ip({
7321
7352
  theme: t,
7322
7353
  pseudos: Ei,
7323
7354
  configs: Fi
7324
7355
  })(e);
7325
- function ip(e, t) {
7356
+ function ap(e, t) {
7326
7357
  if (Array.isArray(e))
7327
7358
  return e;
7328
7359
  if (mt(e))
@@ -7330,35 +7361,35 @@ function ip(e, t) {
7330
7361
  if (e != null)
7331
7362
  return [e];
7332
7363
  }
7333
- function op(e, t) {
7364
+ function sp(e, t) {
7334
7365
  for (let r = t + 1; r < e.length; r++)
7335
7366
  if (e[r] != null)
7336
7367
  return r;
7337
7368
  return -1;
7338
7369
  }
7339
- function ap(e) {
7370
+ function cp(e) {
7340
7371
  const t = e.__breakpoints;
7341
7372
  return function(n, i, a, s) {
7342
7373
  var u, p;
7343
7374
  if (!t)
7344
7375
  return;
7345
- const h = {}, m = ip(a, t.toArrayValue);
7376
+ const h = {}, m = ap(a, t.toArrayValue);
7346
7377
  if (!m)
7347
7378
  return h;
7348
7379
  const w = m.length, y = w === 1, I = !!n.parts;
7349
7380
  for (let b = 0; b < w; b++) {
7350
- const v = t.details[b], S = t.details[op(m, b)], R = Ju(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);
7351
7382
  if (C) {
7352
7383
  if (I) {
7353
7384
  (p = n.parts) == null || p.forEach((D) => {
7354
- We(h, {
7385
+ qe(h, {
7355
7386
  [D]: y ? C[D] : { [R]: C[D] }
7356
7387
  });
7357
7388
  });
7358
7389
  continue;
7359
7390
  }
7360
7391
  if (!I) {
7361
- y ? We(h, C) : h[R] = C;
7392
+ y ? qe(h, C) : h[R] = C;
7362
7393
  continue;
7363
7394
  }
7364
7395
  h[R] = C;
@@ -7367,11 +7398,11 @@ function ap(e) {
7367
7398
  return h;
7368
7399
  };
7369
7400
  }
7370
- function sp(e) {
7401
+ function dp(e) {
7371
7402
  return (t) => {
7372
7403
  var r;
7373
- const { variant: n, size: i, theme: a } = t, s = ap(a);
7374
- return We(
7404
+ const { variant: n, size: i, theme: a } = t, s = cp(a);
7405
+ return qe(
7375
7406
  {},
7376
7407
  gt((r = e.baseStyle) != null ? r : {}, t),
7377
7408
  s(e, "sizes", i, t),
@@ -7379,19 +7410,19 @@ function sp(e) {
7379
7410
  );
7380
7411
  };
7381
7412
  }
7382
- function cp(e, t) {
7413
+ function lp(e, t) {
7383
7414
  const r = {};
7384
7415
  return Object.keys(e).forEach((n) => {
7385
7416
  t.includes(n) || (r[n] = e[n]);
7386
7417
  }), r;
7387
7418
  }
7388
- function dp(e, t, r, n) {
7419
+ function up(e, t, r, n) {
7389
7420
  const i = typeof t == "string" ? t.split(".") : [t];
7390
7421
  for (n = 0; n < i.length && e; n += 1)
7391
7422
  e = e[i[n]];
7392
7423
  return e === void 0 ? r : e;
7393
7424
  }
7394
- var lp = (e) => {
7425
+ var pp = (e) => {
7395
7426
  const t = /* @__PURE__ */ new WeakMap();
7396
7427
  return (n, i, a, s) => {
7397
7428
  if (typeof n > "u")
@@ -7403,24 +7434,24 @@ var lp = (e) => {
7403
7434
  const p = e(n, i, a, s);
7404
7435
  return u.set(i, p), p;
7405
7436
  };
7406
- }, up = lp(dp);
7407
- function pa(e, t) {
7437
+ }, fp = pp(up);
7438
+ function ua(e, t) {
7408
7439
  const r = {};
7409
7440
  return Object.keys(e).forEach((n) => {
7410
7441
  const i = e[n];
7411
7442
  t(i, n, e) && (r[n] = i);
7412
7443
  }), r;
7413
7444
  }
7414
- var fa = (e) => pa(e, (t) => t != null);
7415
- function pp(e) {
7445
+ var pa = (e) => ua(e, (t) => t != null);
7446
+ function hp(e) {
7416
7447
  return typeof e == "function";
7417
7448
  }
7418
7449
  process.env.NODE_ENV;
7419
7450
  process.env.NODE_ENV;
7420
- function fp(e, ...t) {
7421
- return pp(e) ? e(...t) : e;
7451
+ function gp(e, ...t) {
7452
+ return hp(e) ? e(...t) : e;
7422
7453
  }
7423
- var hp = typeof Element < "u", gp = typeof Map == "function", mp = typeof Set == "function", yp = 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;
7424
7455
  function Lr(e, t) {
7425
7456
  if (e === t) return !0;
7426
7457
  if (e && t && typeof e == "object" && typeof t == "object") {
@@ -7433,7 +7464,7 @@ function Lr(e, t) {
7433
7464
  return !0;
7434
7465
  }
7435
7466
  var a;
7436
- if (gp && e instanceof Map && t instanceof Map) {
7467
+ if (yp && e instanceof Map && t instanceof Map) {
7437
7468
  if (e.size !== t.size) return !1;
7438
7469
  for (a = e.entries(); !(n = a.next()).done; )
7439
7470
  if (!t.has(n.value[0])) return !1;
@@ -7441,13 +7472,13 @@ function Lr(e, t) {
7441
7472
  if (!Lr(n.value[1], t.get(n.value[0]))) return !1;
7442
7473
  return !0;
7443
7474
  }
7444
- if (mp && e instanceof Set && t instanceof Set) {
7475
+ if (wp && e instanceof Set && t instanceof Set) {
7445
7476
  if (e.size !== t.size) return !1;
7446
7477
  for (a = e.entries(); !(n = a.next()).done; )
7447
7478
  if (!t.has(n.value[0])) return !1;
7448
7479
  return !0;
7449
7480
  }
7450
- if (yp && ArrayBuffer.isView(e) && ArrayBuffer.isView(t)) {
7481
+ if (Ip && ArrayBuffer.isView(e) && ArrayBuffer.isView(t)) {
7451
7482
  if (r = e.length, r != t.length) return !1;
7452
7483
  for (n = r; n-- !== 0; )
7453
7484
  if (e[n] !== t[n]) return !1;
@@ -7459,7 +7490,7 @@ function Lr(e, t) {
7459
7490
  if (i = Object.keys(e), r = i.length, r !== Object.keys(t).length) return !1;
7460
7491
  for (n = r; n-- !== 0; )
7461
7492
  if (!Object.prototype.hasOwnProperty.call(t, i[n])) return !1;
7462
- if (hp && e instanceof Element) return !1;
7493
+ if (mp && e instanceof Element) return !1;
7463
7494
  for (n = r; n-- !== 0; )
7464
7495
  if (!((i[n] === "_owner" || i[n] === "__v" || i[n] === "__o") && e.$$typeof) && !Lr(e[i[n]], t[i[n]]))
7465
7496
  return !1;
@@ -7467,7 +7498,7 @@ function Lr(e, t) {
7467
7498
  }
7468
7499
  return e !== e && t !== t;
7469
7500
  }
7470
- var wp = function(t, r) {
7501
+ var vp = function(t, r) {
7471
7502
  try {
7472
7503
  return Lr(t, r);
7473
7504
  } catch (n) {
@@ -7476,25 +7507,25 @@ var wp = function(t, r) {
7476
7507
  throw n;
7477
7508
  }
7478
7509
  };
7479
- const Ip = /* @__PURE__ */ Ni(wp);
7480
- function vp(e, t = {}) {
7510
+ const bp = /* @__PURE__ */ Ni(vp);
7511
+ function Sp(e, t = {}) {
7481
7512
  var r;
7482
- const { styleConfig: n, ...i } = t, { theme: a, colorMode: s } = du(), u = up(a, `components.${e}`), p = n || u, h = We(
7513
+ const { styleConfig: n, ...i } = t, { theme: a, colorMode: s } = uu(), u = fp(a, `components.${e}`), p = n || u, h = qe(
7483
7514
  { theme: a, colorMode: s },
7484
7515
  (r = p == null ? void 0 : p.defaultProps) != null ? r : {},
7485
- fa(cp(i, ["children"]))
7486
- ), m = ya({});
7516
+ pa(lp(i, ["children"]))
7517
+ ), m = ma({});
7487
7518
  if (p) {
7488
- const y = sp(p)(h);
7489
- Ip(m.current, y) || (m.current = y);
7519
+ const y = dp(p)(h);
7520
+ bp(m.current, y) || (m.current = y);
7490
7521
  }
7491
7522
  return m.current;
7492
7523
  }
7493
- function bp(e, t = {}) {
7494
- return vp(e, t);
7524
+ function Op(e, t = {}) {
7525
+ return Sp(e, t);
7495
7526
  }
7496
- var Sp = /* @__PURE__ */ new Set([
7497
- ...Xu,
7527
+ var Cp = /* @__PURE__ */ new Set([
7528
+ ...Vu,
7498
7529
  "textStyle",
7499
7530
  "layerStyle",
7500
7531
  "apply",
@@ -7505,16 +7536,16 @@ var Sp = /* @__PURE__ */ new Set([
7505
7536
  "__css",
7506
7537
  "css",
7507
7538
  "sx"
7508
- ]), Op = /* @__PURE__ */ new Set([
7539
+ ]), Np = /* @__PURE__ */ new Set([
7509
7540
  "htmlWidth",
7510
7541
  "htmlHeight",
7511
7542
  "htmlSize",
7512
7543
  "htmlTranslate"
7513
7544
  ]);
7514
- function Cp(e) {
7515
- return Op.has(e) || !Sp.has(e);
7545
+ function Tp(e) {
7546
+ return Np.has(e) || !Cp.has(e);
7516
7547
  }
7517
- function Np(e, ...t) {
7548
+ function Rp(e, ...t) {
7518
7549
  if (e == null)
7519
7550
  throw new TypeError("Cannot convert undefined or null to object");
7520
7551
  const r = { ...e };
@@ -7524,25 +7555,25 @@ function Np(e, ...t) {
7524
7555
  Object.prototype.hasOwnProperty.call(n, i) && (i in r && delete r[i], r[i] = n[i]);
7525
7556
  return r;
7526
7557
  }
7527
- var to, Tp = (to = Di.default) != null ? to : Di, Rp = ({ baseStyle: e }) => (t) => {
7528
- const { theme: r, css: n, __css: i, sx: a, ...s } = t, u = pa(s, (w, y) => Vu(y)), p = fp(e, t), h = Np(
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(
7529
7560
  {},
7530
7561
  i,
7531
7562
  p,
7532
- fa(u),
7563
+ pa(u),
7533
7564
  a
7534
- ), m = np(h)(t.theme);
7565
+ ), m = op(h)(t.theme);
7535
7566
  return n ? [m, n] : m;
7536
7567
  };
7537
7568
  function li(e, t) {
7538
7569
  const { baseStyle: r, ...n } = t ?? {};
7539
- n.shouldForwardProp || (n.shouldForwardProp = Cp);
7540
- const i = Rp({ baseStyle: r }), a = Tp(
7570
+ n.shouldForwardProp || (n.shouldForwardProp = Tp);
7571
+ const i = Ap({ baseStyle: r }), a = _p(
7541
7572
  e,
7542
7573
  n
7543
7574
  )(i);
7544
7575
  return Br.forwardRef(function(p, h) {
7545
- const { colorMode: m, forced: w } = sa();
7576
+ const { colorMode: m, forced: w } = aa();
7546
7577
  return Br.createElement(a, {
7547
7578
  ref: h,
7548
7579
  "data-theme": w ? m : void 0,
@@ -7550,7 +7581,7 @@ function li(e, t) {
7550
7581
  });
7551
7582
  });
7552
7583
  }
7553
- function _p() {
7584
+ function xp() {
7554
7585
  const e = /* @__PURE__ */ new Map();
7555
7586
  return new Proxy(li, {
7556
7587
  /**
@@ -7570,8 +7601,8 @@ function _p() {
7570
7601
  }
7571
7602
  });
7572
7603
  }
7573
- var ro = _p();
7574
- function ha(e) {
7604
+ var ro = xp();
7605
+ function fa(e) {
7575
7606
  return Si(e);
7576
7607
  }
7577
7608
  var no = {
@@ -7595,7 +7626,7 @@ var no = {
7595
7626
  /* @__PURE__ */ l("circle", { fill: "none", strokeMiterlimit: "10", cx: "12", cy: "12", r: "11.25" })
7596
7627
  ] }),
7597
7628
  viewBox: "0 0 24 24"
7598
- }, ga = ha((e, t) => {
7629
+ }, ha = fa((e, t) => {
7599
7630
  const {
7600
7631
  as: r,
7601
7632
  viewBox: n,
@@ -7605,7 +7636,7 @@ var no = {
7605
7636
  className: u,
7606
7637
  __css: p,
7607
7638
  ...h
7608
- } = e, m = lu("chakra-icon", u), w = bp("Icon", e), y = {
7639
+ } = e, m = pu("chakra-icon", u), w = Op("Icon", e), y = {
7609
7640
  w: "1em",
7610
7641
  h: "1em",
7611
7642
  display: "inline-block",
@@ -7625,17 +7656,17 @@ var no = {
7625
7656
  const v = s ?? no.path;
7626
7657
  return /* @__PURE__ */ l(ro.svg, { verticalAlign: "middle", viewBox: b, ...I, ...h, children: v });
7627
7658
  });
7628
- ga.displayName = "Icon";
7629
- function Ap(e) {
7659
+ ha.displayName = "Icon";
7660
+ function kp(e) {
7630
7661
  const {
7631
7662
  viewBox: t = "0 0 24 24",
7632
7663
  d: r,
7633
7664
  displayName: n,
7634
7665
  defaultProps: i = {}
7635
- } = e, a = wa.toArray(e.path), s = ha((u, p) => /* @__PURE__ */ l(ga, { ref: p, viewBox: t, ...i, ...u, children: a.length ? a : /* @__PURE__ */ l("path", { fill: "currentColor", d: r }) }));
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 }) }));
7636
7667
  return s.displayName = n, s;
7637
7668
  }
7638
- var xp = Ap({
7669
+ var Ep = kp({
7639
7670
  displayName: "ExternalLinkIcon",
7640
7671
  path: /* @__PURE__ */ A("g", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeWidth: "2", children: [
7641
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" }),
@@ -7643,8 +7674,8 @@ var xp = Ap({
7643
7674
  /* @__PURE__ */ l("path", { d: "M10 14L21 3" })
7644
7675
  ] })
7645
7676
  });
7646
- const kp = "https://help.salesforce.com/s/articleView?id=sf.faq_domain_name_what.htm&type=5";
7647
- function Ep({
7677
+ const Fp = "https://help.salesforce.com/s/articleView?id=sf.faq_domain_name_what.htm&type=5";
7678
+ function Pp({
7648
7679
  handleSubmit: e,
7649
7680
  setWorkspace: t,
7650
7681
  error: r,
@@ -7652,9 +7683,9 @@ function Ep({
7652
7683
  }) {
7653
7684
  return /* @__PURE__ */ l(lr, { children: /* @__PURE__ */ A(He, { children: [
7654
7685
  /* @__PURE__ */ l(rt, { marginTop: "16", marginBottom: "0", children: /* @__PURE__ */ l(Je, { as: "h4", size: "md", children: "Enter your Salesforce subdomain" }) }),
7655
- /* @__PURE__ */ A(so, { href: kp, color: "blackAlpha.600", isExternal: !0, children: [
7686
+ /* @__PURE__ */ A(so, { href: Fp, color: "blackAlpha.600", isExternal: !0, children: [
7656
7687
  "What is my Salesforce subdomain?",
7657
- /* @__PURE__ */ l(xp, { mx: "2px" })
7688
+ /* @__PURE__ */ l(Ep, { mx: "2px" })
7658
7689
  ] }),
7659
7690
  /* @__PURE__ */ l(ur, { error: r }),
7660
7691
  /* @__PURE__ */ A(Ur, { marginTop: "1em", children: [
@@ -7671,6 +7702,7 @@ function Ep({
7671
7702
  /* @__PURE__ */ l(
7672
7703
  ne,
7673
7704
  {
7705
+ variant: "primary",
7674
7706
  isDisabled: n,
7675
7707
  width: "100%",
7676
7708
  type: "submit",
@@ -7680,7 +7712,7 @@ function Ep({
7680
7712
  )
7681
7713
  ] }) });
7682
7714
  }
7683
- function Fp({
7715
+ function Dp({
7684
7716
  handleSubmit: e,
7685
7717
  setWorkspace: t,
7686
7718
  error: r,
@@ -7705,6 +7737,7 @@ function Fp({
7705
7737
  /* @__PURE__ */ l(
7706
7738
  ne,
7707
7739
  {
7740
+ variant: "primary",
7708
7741
  isDisabled: n,
7709
7742
  width: "100%",
7710
7743
  type: "submit",
@@ -7714,8 +7747,8 @@ function Fp({
7714
7747
  )
7715
7748
  ] }) });
7716
7749
  }
7717
- const Pp = "salesforce";
7718
- function Dp({
7750
+ const Kp = "salesforce";
7751
+ function Lp({
7719
7752
  provider: e,
7720
7753
  consumerRef: t,
7721
7754
  consumerName: r,
@@ -7729,7 +7762,7 @@ function Dp({
7729
7762
  return;
7730
7763
  }
7731
7764
  try {
7732
- const R = await ia(
7765
+ const R = await na(
7733
7766
  s,
7734
7767
  t,
7735
7768
  n,
@@ -7745,8 +7778,8 @@ function Dp({
7745
7778
  }
7746
7779
  }, v = Q((R) => {
7747
7780
  I(R), w(null);
7748
- }, []), S = e === Pp ? /* @__PURE__ */ l(
7749
- Ep,
7781
+ }, []), S = e === Kp ? /* @__PURE__ */ l(
7782
+ Pp,
7750
7783
  {
7751
7784
  handleSubmit: b,
7752
7785
  setWorkspace: h,
@@ -7756,7 +7789,7 @@ function Dp({
7756
7789
  ) : (
7757
7790
  // general workspace entry component
7758
7791
  /* @__PURE__ */ l(
7759
- Fp,
7792
+ Dp,
7760
7793
  {
7761
7794
  handleSubmit: b,
7762
7795
  setWorkspace: h,
@@ -7767,7 +7800,7 @@ function Dp({
7767
7800
  )
7768
7801
  );
7769
7802
  return /* @__PURE__ */ l(
7770
- oa,
7803
+ ia,
7771
7804
  {
7772
7805
  windowTitle: `Connect to ${a}`,
7773
7806
  oauthUrl: m,
@@ -7776,8 +7809,8 @@ function Dp({
7776
7809
  }
7777
7810
  );
7778
7811
  }
7779
- const Kp = "authorizationCode", Lp = "clientCredentials";
7780
- function Bp({
7812
+ const Bp = "authorizationCode", Up = "clientCredentials";
7813
+ function Mp({
7781
7814
  provider: e,
7782
7815
  providerInfo: t,
7783
7816
  consumerRef: r,
@@ -7790,8 +7823,8 @@ function Bp({
7790
7823
  if (t.oauth2Opts === void 0)
7791
7824
  return /* @__PURE__ */ l("em", { children: "Provider is missing OAuth2 options" });
7792
7825
  const { grantType: p, explicitScopesRequired: h, explicitWorkspaceRequired: m } = t.oauth2Opts, w = vt(e, t);
7793
- return p === Kp ? m ? /* @__PURE__ */ l(
7794
- Dp,
7826
+ return p === Bp ? m ? /* @__PURE__ */ l(
7827
+ Lp,
7795
7828
  {
7796
7829
  provider: e,
7797
7830
  consumerRef: r,
@@ -7801,7 +7834,7 @@ function Bp({
7801
7834
  providerName: w
7802
7835
  }
7803
7836
  ) : /* @__PURE__ */ l(
7804
- ou,
7837
+ su,
7805
7838
  {
7806
7839
  provider: e,
7807
7840
  consumerRef: r,
@@ -7810,8 +7843,8 @@ function Bp({
7810
7843
  groupName: a,
7811
7844
  providerName: w
7812
7845
  }
7813
- ) : p === Lp ? m ? /* @__PURE__ */ l(
7814
- su,
7846
+ ) : p === Up ? m ? /* @__PURE__ */ l(
7847
+ du,
7815
7848
  {
7816
7849
  provider: e,
7817
7850
  consumerRef: r,
@@ -7824,7 +7857,7 @@ function Bp({
7824
7857
  providerName: w
7825
7858
  }
7826
7859
  ) : /* @__PURE__ */ l(
7827
- Zl,
7860
+ eu,
7828
7861
  {
7829
7862
  provider: e,
7830
7863
  consumerRef: r,
@@ -7841,7 +7874,7 @@ function Bp({
7841
7874
  p
7842
7875
  ] });
7843
7876
  }
7844
- const Up = async (e, t) => {
7877
+ const $p = async (e, t) => {
7845
7878
  const r = await X().providerApi.getProvider({ provider: t }, {
7846
7879
  headers: { "X-Api-Key": e ?? "" }
7847
7880
  });
@@ -7849,7 +7882,7 @@ const Up = async (e, t) => {
7849
7882
  throw new Error(`Provider ${t} not found`);
7850
7883
  return r;
7851
7884
  };
7852
- function ma({
7885
+ function ga({
7853
7886
  provider: e,
7854
7887
  consumerRef: t,
7855
7888
  consumerName: r,
@@ -7859,14 +7892,14 @@ function ma({
7859
7892
  onSuccess: s
7860
7893
  }) {
7861
7894
  const u = te(), [p, h] = k(null), { provider: m } = Ke(), { selectedConnection: w, setSelectedConnection: y, connections: I } = Lt();
7862
- Jl({ onSuccess: s });
7863
- const b = e || m, v = (p == null ? void 0 : p.displayName) ?? To(b);
7895
+ Xl({ onSuccess: s });
7896
+ const b = e || m, v = (p == null ? void 0 : p.displayName) ?? No(b);
7864
7897
  if (Y(() => {
7865
7898
  if (!w && I && I.length > 0) {
7866
7899
  const [S] = I;
7867
7900
  y(S);
7868
7901
  }
7869
- Up(u, b).then((S) => {
7902
+ $p(u, b).then((S) => {
7870
7903
  h(S);
7871
7904
  }).catch((S) => {
7872
7905
  console.error("Error loading provider info: ", S);
@@ -7874,7 +7907,7 @@ function ma({
7874
7907
  }, [I, w, y, u, b]), !e && !m)
7875
7908
  throw new Error("ProtectedConnectionLayout must be given a provider prop or be used within InstallIntegrationProvider");
7876
7909
  return w ? a : p == null ? /* @__PURE__ */ l("strong", { children: "Provider not found" }) : p.authType === "none" ? /* @__PURE__ */ l(
7877
- Vl,
7910
+ Zl,
7878
7911
  {
7879
7912
  provider: b,
7880
7913
  consumerRef: t,
@@ -7887,7 +7920,7 @@ function ma({
7887
7920
  children: a
7888
7921
  }
7889
7922
  ) : p.authType === "basic" ? /* @__PURE__ */ l(
7890
- ql,
7923
+ Jl,
7891
7924
  {
7892
7925
  provider: b,
7893
7926
  providerInfo: p,
@@ -7900,7 +7933,7 @@ function ma({
7900
7933
  children: a
7901
7934
  }
7902
7935
  ) : p.authType === "apiKey" ? /* @__PURE__ */ l(
7903
- Ml,
7936
+ jl,
7904
7937
  {
7905
7938
  provider: b,
7906
7939
  providerInfo: p,
@@ -7913,7 +7946,7 @@ function ma({
7913
7946
  children: a
7914
7947
  }
7915
7948
  ) : /* @__PURE__ */ l(
7916
- Bp,
7949
+ Mp,
7917
7950
  {
7918
7951
  provider: b,
7919
7952
  providerInfo: p,
@@ -7926,7 +7959,7 @@ function ma({
7926
7959
  }
7927
7960
  );
7928
7961
  }
7929
- function Gp({
7962
+ function Yp({
7930
7963
  integration: e,
7931
7964
  consumerRef: t,
7932
7965
  consumerName: r,
@@ -7937,10 +7970,10 @@ function Gp({
7937
7970
  }) {
7938
7971
  var h;
7939
7972
  const { projectId: u } = ee(), { errorState: p } = nt();
7940
- return (h = p[Z.INTEGRATION_LIST]) != null && h.apiError ? /* @__PURE__ */ l(qe, { message: "Something went wrong, couldn't find integration information" }) : (
7973
+ return (h = p[Z.INTEGRATION_LIST]) != null && h.apiError ? /* @__PURE__ */ l(We, { message: "Something went wrong, couldn't find integration information" }) : (
7941
7974
  // install integration provider provides all props, integrationObj and installation
7942
7975
  /* @__PURE__ */ l(
7943
- Rd,
7976
+ Ad,
7944
7977
  {
7945
7978
  integration: e,
7946
7979
  consumerRef: t,
@@ -7949,30 +7982,30 @@ function Gp({
7949
7982
  groupName: i,
7950
7983
  onInstallSuccess: a,
7951
7984
  onUpdateSuccess: s,
7952
- children: /* @__PURE__ */ l(xo, { groupRef: n, children: /* @__PURE__ */ l(
7953
- ma,
7985
+ children: /* @__PURE__ */ l(Ao, { groupRef: n, children: /* @__PURE__ */ l(
7986
+ ga,
7954
7987
  {
7955
7988
  consumerRef: t,
7956
7989
  consumerName: r,
7957
7990
  groupRef: n,
7958
7991
  groupName: i,
7959
- children: /* @__PURE__ */ l(Hd, { projectId: u, children: /* @__PURE__ */ l(Kl, { children: /* @__PURE__ */ l(al, { children: /* @__PURE__ */ l(ul, { children: /* @__PURE__ */ l(xl, {}) }) }) }) })
7992
+ children: /* @__PURE__ */ l(Gd, { projectId: u, children: /* @__PURE__ */ l(Bl, { children: /* @__PURE__ */ l(cl, { children: /* @__PURE__ */ l(fl, { children: /* @__PURE__ */ l(El, {}) }) }) }) })
7960
7993
  }
7961
7994
  ) })
7962
7995
  }
7963
7996
  )
7964
7997
  );
7965
7998
  }
7966
- function Mp({ redirectURL: e, children: t }) {
7999
+ function jp({ redirectURL: e, children: t }) {
7967
8000
  return Y(() => {
7968
8001
  e && window.location.replace(e);
7969
8002
  }, [e]), e ? /* @__PURE__ */ l(J, { display: "flex", alignItems: "center", justifyContent: "center", children: /* @__PURE__ */ l(De, { message: "Redirecting..." }) }) : t;
7970
8003
  }
7971
- function $p({ provider: e }) {
8004
+ function qp({ provider: e }) {
7972
8005
  const { appName: t } = ee(), r = `You have successfully connected your ${vt(e)} account to ${t}.`;
7973
- return /* @__PURE__ */ l(ra, { text: r });
8006
+ return /* @__PURE__ */ l(ta, { text: r });
7974
8007
  }
7975
- function Vp({
8008
+ function Zp({
7976
8009
  provider: e,
7977
8010
  consumerRef: t,
7978
8011
  consumerName: r,
@@ -7981,8 +8014,8 @@ function Vp({
7981
8014
  redirectUrl: a,
7982
8015
  onSuccess: s
7983
8016
  }) {
7984
- return /* @__PURE__ */ l(xo, { provider: e, groupRef: n, children: /* @__PURE__ */ l(
7985
- ma,
8017
+ return /* @__PURE__ */ l(Ao, { provider: e, groupRef: n, children: /* @__PURE__ */ l(
8018
+ ga,
7986
8019
  {
7987
8020
  provider: e,
7988
8021
  consumerRef: t,
@@ -7990,12 +8023,12 @@ function Vp({
7990
8023
  groupRef: n,
7991
8024
  groupName: i,
7992
8025
  onSuccess: s,
7993
- children: /* @__PURE__ */ l(Mp, { redirectURL: a, children: /* @__PURE__ */ l($p, { provider: e }) })
8026
+ children: /* @__PURE__ */ l(jp, { redirectURL: a, children: /* @__PURE__ */ l(qp, { provider: e }) })
7994
8027
  }
7995
8028
  ) });
7996
8029
  }
7997
- const Yp = (e, t) => {
7998
- const r = te(), { projectId: n } = ee(), { integrations: i } = Co(), [a, s] = k(!1), [u, p] = k(null);
8030
+ const Qp = (e, t) => {
8031
+ const r = te(), { projectId: n } = ee(), { integrations: i } = Oo(), [a, s] = k(!1), [u, p] = k(null);
7999
8032
  if (!r || !n)
8000
8033
  throw new Error("useIsIntegrationInstalled must be used within AmpersandProvider");
8001
8034
  if (!e)
@@ -8023,10 +8056,10 @@ const Yp = (e, t) => {
8023
8056
  }, [t, r, n, h]), { isLoaded: a, isIntegrationInstalled: u };
8024
8057
  };
8025
8058
  export {
8026
- Nd as AmpersandContext,
8027
- Hp as AmpersandProvider,
8028
- Vp as ConnectProvider,
8029
- Gp as InstallIntegration,
8030
- Xp as useAmpersandProvider,
8031
- Yp 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
8032
8065
  };