@amp-labs/react 1.11.0 → 1.12.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,9 +1,9 @@
1
1
  import { jsx as l, jsxs as A, Fragment as Kt } from "react/jsx-runtime";
2
- import Br, { createContext as _e, useContext as be, useState as x, useCallback as Z, useMemo as Ie, useEffect as Y, forwardRef as Si, useRef as ma, Children as ya } from "react";
3
- import { extendTheme as oo, ChakraProvider as wa, Box as J, Stack as Ae, Spinner as Ia, Text as ve, useTab as ao, useMultiStyleConfig as so, Button as ae, 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 co, FormLabel as rt, InputGroup as Yr, Input as Pe, InputRightElement as Zr, Textarea as lo } from "@chakra-ui/react";
4
- import { ThemeContext as Ca } from "@emotion/react";
2
+ import Br, { createContext as _e, useContext as be, useState as x, useCallback as Z, useMemo as Ie, useEffect as Y, forwardRef as Si, useRef as ya, Children as wa } from "react";
3
+ import { extendTheme as oo, ChakraProvider as Ia, Box as J, Stack as Ae, Spinner as va, Text as ve, useTab as ao, useMultiStyleConfig as so, Button as ae, Divider as Oi, Container as Lt, Tabs as ba, Select as Sa, Flex as Ur, Heading as Je, FormControl as He, FormErrorMessage as Oa, Checkbox as Mr, Tag as Ca, Alert as Xr, AlertIcon as Gr, AlertDescription as Vr, Link as co, FormLabel as rt, InputGroup as Yr, Input as Pe, InputRightElement as Zr, Textarea as lo } from "@chakra-ui/react";
4
+ import { ThemeContext as Na } from "@emotion/react";
5
5
  import Ki from "@emotion/styled";
6
- const Na = {
6
+ const Ta = {
7
7
  primary: {
8
8
  bg: "black",
9
9
  // Background color
@@ -42,7 +42,7 @@ const Na = {
42
42
  // Background color on hover
43
43
  }
44
44
  }
45
- }, Ta = oo({
45
+ }, Ra = oo({
46
46
  components: {
47
47
  Tabs: {
48
48
  baseStyle: {
@@ -88,14 +88,14 @@ const Na = {
88
88
  }
89
89
  },
90
90
  Button: {
91
- variants: Na
91
+ variants: Ta
92
92
  }
93
93
  }
94
- }), Ra = oo(Ta);
95
- function _a({ children: e }) {
96
- return /* @__PURE__ */ l(wa, { theme: Ra, children: e });
94
+ }), _a = oo(Ra);
95
+ function Aa({ children: e }) {
96
+ return /* @__PURE__ */ l(Ia, { theme: _a, children: e });
97
97
  }
98
- const uo = _e(null), Aa = uo.Provider, re = () => {
98
+ const uo = _e(null), xa = uo.Provider, re = () => {
99
99
  const e = be(uo);
100
100
  if (e === null)
101
101
  throw new Error("useApiKey must be used within an ApiKeyProvider");
@@ -109,14 +109,14 @@ function nt() {
109
109
  throw new Error("useErrorState must be used within a ErrorProvider");
110
110
  return e;
111
111
  }
112
- const xa = (() => {
112
+ const ka = (() => {
113
113
  const e = {};
114
114
  return Object.values(Q).forEach((t) => {
115
115
  e[t] = {};
116
116
  }), e;
117
117
  })();
118
- function ka({ children: e }) {
119
- const [t, r] = x(xa), n = Z((h, m) => {
118
+ function Ea({ children: e }) {
119
+ const [t, r] = x(ka), n = Z((h, m) => {
120
120
  r((w) => {
121
121
  const y = {
122
122
  ...w
@@ -177,7 +177,7 @@ function De({ message: e }) {
177
177
  marginBottom: "20%",
178
178
  children: /* @__PURE__ */ A(Ae, { alignItems: "center", children: [
179
179
  /* @__PURE__ */ l(
180
- Ia,
180
+ va,
181
181
  {
182
182
  height: "100px",
183
183
  width: "100px",
@@ -239,7 +239,7 @@ function We({ message: e }) {
239
239
  }
240
240
  );
241
241
  }
242
- const Ea = "https://api.withampersand.com/v1".replace(/\/+$/, "");
242
+ const Fa = "https://api.withampersand.com/v1".replace(/\/+$/, "");
243
243
  class fo {
244
244
  constructor(t = {}) {
245
245
  this.configuration = t;
@@ -248,7 +248,7 @@ class fo {
248
248
  this.configuration = t;
249
249
  }
250
250
  get basePath() {
251
- return this.configuration.basePath != null ? this.configuration.basePath : Ea;
251
+ return this.configuration.basePath != null ? this.configuration.basePath : Fa;
252
252
  }
253
253
  get fetchApi() {
254
254
  return this.configuration.fetchApi;
@@ -282,8 +282,8 @@ class fo {
282
282
  return this.configuration.credentials;
283
283
  }
284
284
  }
285
- const Fa = new fo(), Hr = class Hr {
286
- constructor(t = Fa) {
285
+ const Pa = new fo(), Hr = class Hr {
286
+ constructor(t = Pa) {
287
287
  this.configuration = t, this.fetchApi = async (r, n) => {
288
288
  let i = { url: r, init: n };
289
289
  for (const s of this.middleware)
@@ -304,7 +304,7 @@ const Fa = new fo(), Hr = class Hr {
304
304
  response: a ? a.clone() : void 0
305
305
  }) || a);
306
306
  if (a === void 0)
307
- throw s instanceof Error ? new La(s, "The request failed and the interceptors did not return an alternative response") : s;
307
+ throw s instanceof Error ? new Ba(s, "The request failed and the interceptors did not return an alternative response") : s;
308
308
  }
309
309
  for (const s of this.middleware)
310
310
  s.post && (a = await s.post({
@@ -345,7 +345,7 @@ const Fa = new fo(), Hr = class Hr {
345
345
  const { url: n, init: i } = await this.createFetchParams(t, r), a = await this.fetchApi(n, i);
346
346
  if (a && a.status >= 200 && a.status < 300)
347
347
  return a;
348
- throw new Ka(a, "Response returned an error code");
348
+ throw new La(a, "Response returned an error code");
349
349
  }
350
350
  async createFetchParams(t, r) {
351
351
  let n = this.configuration.basePath + t.path;
@@ -365,7 +365,7 @@ const Fa = new fo(), Hr = class Hr {
365
365
  })
366
366
  }, p = {
367
367
  ...u,
368
- body: Da(u.body) || u.body instanceof URLSearchParams || Pa(u.body) ? u.body : JSON.stringify(u.body)
368
+ body: Ka(u.body) || u.body instanceof URLSearchParams || Da(u.body) ? u.body : JSON.stringify(u.body)
369
369
  };
370
370
  return { url: n, init: p };
371
371
  }
@@ -380,18 +380,18 @@ const Fa = new fo(), Hr = class Hr {
380
380
  };
381
381
  Hr.jsonRegex = new RegExp("^(:?application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(:?;.*)?$", "i");
382
382
  let le = Hr;
383
- function Pa(e) {
383
+ function Da(e) {
384
384
  return typeof Blob < "u" && e instanceof Blob;
385
385
  }
386
- function Da(e) {
386
+ function Ka(e) {
387
387
  return typeof FormData < "u" && e instanceof FormData;
388
388
  }
389
- class Ka extends Error {
389
+ class La extends Error {
390
390
  constructor(t, r) {
391
391
  super(r), this.response = t, this.name = "ResponseError";
392
392
  }
393
393
  }
394
- class La extends Error {
394
+ class Ba extends Error {
395
395
  constructor(t, r) {
396
396
  super(r), this.cause = t, this.name = "FetchError";
397
397
  }
@@ -441,7 +441,7 @@ class ze {
441
441
  async value() {
442
442
  }
443
443
  }
444
- class Ba {
444
+ class Ua {
445
445
  constructor(t) {
446
446
  this.raw = t;
447
447
  }
@@ -449,83 +449,83 @@ class Ba {
449
449
  return await this.raw.text();
450
450
  }
451
451
  }
452
- function Ua(e) {
453
- return Ma(e);
452
+ function Ma(e) {
453
+ return $a(e);
454
454
  }
455
- function Ma(e, t) {
455
+ function $a(e, t) {
456
456
  return e == null ? e : {
457
457
  fieldUsed: C(e, "fieldUsed") ? e.fieldUsed : void 0,
458
458
  keyFormat: C(e, "keyFormat") ? e.keyFormat : void 0
459
459
  };
460
460
  }
461
- function $a(e) {
462
- return ja(e);
461
+ function ja(e) {
462
+ return qa(e);
463
463
  }
464
- function ja(e, t) {
464
+ function qa(e, t) {
465
465
  return e == null ? e : {
466
466
  name: e.name,
467
467
  valuePrefix: C(e, "valuePrefix") ? e.valuePrefix : void 0
468
468
  };
469
469
  }
470
- function qa(e) {
471
- return Wa(e);
470
+ function Wa(e) {
471
+ return za(e);
472
472
  }
473
- function Wa(e, t) {
473
+ function za(e, t) {
474
474
  return e == null ? e : {
475
475
  name: e.name
476
476
  };
477
477
  }
478
- function za(e) {
479
- return Ja(e);
478
+ function Ja(e) {
479
+ return Ha(e);
480
480
  }
481
- function Ja(e, t) {
481
+ function Ha(e, t) {
482
482
  return e == null ? e : {
483
483
  attachmentType: e.attachmentType,
484
- query: C(e, "query") ? qa(e.query) : void 0,
485
- header: C(e, "header") ? $a(e.header) : void 0,
484
+ query: C(e, "query") ? Wa(e.query) : void 0,
485
+ header: C(e, "header") ? ja(e.header) : void 0,
486
486
  docsURL: C(e, "docsURL") ? e.docsURL : void 0
487
487
  };
488
488
  }
489
- function Ha(e) {
490
- return Xa(e);
489
+ function Xa(e) {
490
+ return Ga(e);
491
491
  }
492
- function Xa(e, t) {
492
+ function Ga(e, t) {
493
493
  return e;
494
494
  }
495
- function Ga(e) {
496
- return Va(e);
495
+ function Va(e) {
496
+ return Ya(e);
497
497
  }
498
- function Va(e, t) {
498
+ function Ya(e, t) {
499
499
  return e == null ? e : {
500
500
  days: C(e, "days") ? e.days : void 0,
501
501
  fullHistory: C(e, "fullHistory") ? e.fullHistory : void 0
502
502
  };
503
503
  }
504
504
  function mo(e) {
505
- return Ya(e);
505
+ return Za(e);
506
506
  }
507
- function Ya(e, t) {
507
+ function Za(e, t) {
508
508
  return e == null ? e : {
509
- defaultPeriod: Ga(e.defaultPeriod)
509
+ defaultPeriod: Va(e.defaultPeriod)
510
510
  };
511
511
  }
512
- function Za(e) {
512
+ function Qa(e) {
513
513
  if (e !== void 0)
514
514
  return e === null ? null : {
515
515
  days: e.days,
516
516
  fullHistory: e.fullHistory
517
517
  };
518
518
  }
519
- function Qa(e) {
519
+ function es(e) {
520
520
  if (e !== void 0)
521
521
  return e === null ? null : {
522
- defaultPeriod: Za(e.defaultPeriod)
522
+ defaultPeriod: Qa(e.defaultPeriod)
523
523
  };
524
524
  }
525
- function es(e) {
526
- return ts(e);
525
+ function ts(e) {
526
+ return rs(e);
527
527
  }
528
- function ts(e, t) {
528
+ function rs(e, t) {
529
529
  return e == null ? e : {
530
530
  enabled: C(e, "enabled") ? e.enabled : void 0
531
531
  };
@@ -536,7 +536,7 @@ function yo(e) {
536
536
  enabled: e.enabled
537
537
  };
538
538
  }
539
- function rs(e) {
539
+ function ns(e) {
540
540
  if (e !== void 0)
541
541
  return e === null ? null : {
542
542
  objectName: e.objectName,
@@ -544,38 +544,38 @@ function rs(e) {
544
544
  destination: e.destination,
545
545
  selectedFields: e.selectedFields,
546
546
  selectedFieldMappings: e.selectedFieldMappings,
547
- backfill: Qa(e.backfill)
547
+ backfill: es(e.backfill)
548
548
  };
549
549
  }
550
- function ns(e) {
550
+ function is(e) {
551
551
  if (e !== void 0)
552
552
  return e === null ? null : {
553
- objects: e.objects === void 0 ? void 0 : Ci(e.objects, rs)
553
+ objects: e.objects === void 0 ? void 0 : Ci(e.objects, ns)
554
554
  };
555
555
  }
556
- function is(e) {
556
+ function os(e) {
557
557
  if (e !== void 0)
558
558
  return e === null ? null : {
559
559
  objectName: e.objectName
560
560
  };
561
561
  }
562
- function os(e) {
562
+ function as(e) {
563
563
  if (e !== void 0)
564
564
  return e === null ? null : {
565
- objects: e.objects === void 0 ? void 0 : Ci(e.objects, is)
565
+ objects: e.objects === void 0 ? void 0 : Ci(e.objects, os)
566
566
  };
567
567
  }
568
- function as(e) {
569
- return ss(e);
568
+ function ss(e) {
569
+ return cs(e);
570
570
  }
571
- function ss(e, t) {
571
+ function cs(e, t) {
572
572
  return e == null ? e : {
573
573
  apiKeyAsBasic: C(e, "apiKeyAsBasic") ? e.apiKeyAsBasic : void 0,
574
- apiKeyAsBasicOpts: C(e, "apiKeyAsBasicOpts") ? Ua(e.apiKeyAsBasicOpts) : void 0,
574
+ apiKeyAsBasicOpts: C(e, "apiKeyAsBasicOpts") ? Ma(e.apiKeyAsBasicOpts) : void 0,
575
575
  docsURL: C(e, "docsURL") ? e.docsURL : void 0
576
576
  };
577
577
  }
578
- function cs(e) {
578
+ function ds(e) {
579
579
  if (e !== void 0)
580
580
  return e === null ? null : {
581
581
  sourceZipUrl: e.sourceZipUrl,
@@ -583,9 +583,9 @@ function cs(e) {
583
583
  };
584
584
  }
585
585
  function xr(e) {
586
- return ds(e);
586
+ return ls(e);
587
587
  }
588
- function ds(e, t) {
588
+ function ls(e, t) {
589
589
  return e == null ? e : {
590
590
  id: e.id,
591
591
  name: e.name,
@@ -595,10 +595,10 @@ function ds(e, t) {
595
595
  updateTime: C(e, "updateTime") ? new Date(e.updateTime) : void 0
596
596
  };
597
597
  }
598
- function ls(e) {
599
- return us(e);
598
+ function us(e) {
599
+ return ps(e);
600
600
  }
601
- function us(e, t) {
601
+ function ps(e, t) {
602
602
  return e == null ? e : {
603
603
  insert: e.insert,
604
604
  update: e.update,
@@ -606,15 +606,15 @@ function us(e, t) {
606
606
  _delete: e.delete
607
607
  };
608
608
  }
609
- function ps(e) {
610
- return fs(e);
609
+ function fs(e) {
610
+ return hs(e);
611
611
  }
612
- function fs(e, t) {
612
+ function hs(e, t) {
613
613
  return e == null ? e : {
614
614
  provider: e.provider,
615
615
  read: C(e, "read") ? e.read : void 0,
616
616
  write: C(e, "write") ? e.write : void 0,
617
- proxy: C(e, "proxy") ? es(e.proxy) : void 0
617
+ proxy: C(e, "proxy") ? ts(e.proxy) : void 0
618
618
  };
619
619
  }
620
620
  function wo(e) {
@@ -626,22 +626,22 @@ function wo(e) {
626
626
  proxy: yo(e.proxy)
627
627
  };
628
628
  }
629
- function hs(e) {
630
- return gs(e);
629
+ function gs(e) {
630
+ return ms(e);
631
631
  }
632
- function gs(e, t) {
632
+ function ms(e, t) {
633
633
  return e == null ? e : {
634
634
  id: e.id,
635
635
  revisionId: e.revisionId,
636
636
  createTime: new Date(e.createTime),
637
637
  createdBy: e.createdBy,
638
- content: ps(e.content)
638
+ content: fs(e.content)
639
639
  };
640
640
  }
641
- function ms(e) {
642
- return ys(e);
641
+ function ys(e) {
642
+ return ws(e);
643
643
  }
644
- function ys(e, t) {
644
+ function ws(e, t) {
645
645
  return e == null ? e : {
646
646
  consumerRef: e.consumerRef,
647
647
  consumerName: e.consumerName,
@@ -651,9 +651,9 @@ function ys(e, t) {
651
651
  };
652
652
  }
653
653
  function Io(e) {
654
- return ws(e);
654
+ return Is(e);
655
655
  }
656
- function ws(e, t) {
656
+ function Is(e, t) {
657
657
  return e == null ? e : {
658
658
  groupRef: e.groupRef,
659
659
  groupName: e.groupName,
@@ -663,9 +663,9 @@ function ws(e, t) {
663
663
  };
664
664
  }
665
665
  function Pr(e) {
666
- return Is(e);
666
+ return vs(e);
667
667
  }
668
- function Is(e, t) {
668
+ function vs(e, t) {
669
669
  return e == null ? e : {
670
670
  id: e.id,
671
671
  projectId: e.projectId,
@@ -678,51 +678,51 @@ function Is(e, t) {
678
678
  };
679
679
  }
680
680
  function Dr(e) {
681
- return vs(e);
681
+ return bs(e);
682
682
  }
683
- function vs(e, t) {
683
+ function bs(e, t) {
684
684
  return e == null ? e : {
685
685
  id: e.id,
686
686
  projectId: e.projectId,
687
687
  providerApp: Pr(e.providerApp),
688
688
  group: Io(e.group),
689
- consumer: ms(e.consumer),
689
+ consumer: ys(e.consumer),
690
690
  providerWorkspaceRef: e.providerWorkspaceRef,
691
691
  providerConsumerRef: C(e, "ProviderConsumerRef") ? e.ProviderConsumerRef : void 0,
692
692
  createTime: new Date(e.createTime),
693
693
  updateTime: C(e, "updateTime") ? new Date(e.updateTime) : void 0
694
694
  };
695
695
  }
696
- function bs(e) {
696
+ function Ss(e) {
697
697
  if (e !== void 0)
698
698
  return e === null ? null : {
699
699
  consumerRef: e.consumerRef,
700
700
  consumerName: e.consumerName
701
701
  };
702
702
  }
703
- function Ss(e) {
703
+ function Os(e) {
704
704
  if (e !== void 0)
705
705
  return e === null ? null : {
706
706
  url: e.url,
707
707
  headers: e.headers
708
708
  };
709
709
  }
710
- function Os(e) {
710
+ function Cs(e) {
711
711
  if (e !== void 0)
712
712
  return e === null ? null : {
713
713
  name: e.name,
714
714
  type: e.type,
715
- metadata: Ss(e.metadata)
715
+ metadata: Os(e.metadata)
716
716
  };
717
717
  }
718
- function Cs(e) {
718
+ function Ns(e) {
719
719
  if (e !== void 0)
720
720
  return e === null ? null : {
721
721
  groupRef: e.groupRef,
722
722
  groupName: e.groupName
723
723
  };
724
724
  }
725
- function Ns(e) {
725
+ function Ts(e) {
726
726
  if (e !== void 0)
727
727
  return e === null ? null : {
728
728
  revisionId: e.revisionId,
@@ -730,30 +730,30 @@ function Ns(e) {
730
730
  content: wo(e.content)
731
731
  };
732
732
  }
733
- function Ts(e) {
733
+ function Rs(e) {
734
734
  if (e !== void 0)
735
735
  return e === null ? null : {
736
736
  groupRef: e.groupRef,
737
737
  connectionId: e.connectionId,
738
- config: Ns(e.config)
738
+ config: Ts(e.config)
739
739
  };
740
740
  }
741
- function Rs(e) {
741
+ function _s(e) {
742
742
  if (e !== void 0)
743
743
  return e === null ? null : {
744
744
  sourceZipUrl: e.sourceZipUrl,
745
745
  sourceYaml: e.sourceYaml
746
746
  };
747
747
  }
748
- function _s(e) {
748
+ function As(e) {
749
749
  if (e !== void 0)
750
750
  return e === null ? null : {
751
751
  name: e.name,
752
752
  provider: e.provider,
753
- latestRevision: Rs(e.latestRevision)
753
+ latestRevision: _s(e.latestRevision)
754
754
  };
755
755
  }
756
- function As(e) {
756
+ function xs(e) {
757
757
  if (e !== void 0)
758
758
  return e === null ? null : {
759
759
  appName: e.appName,
@@ -761,7 +761,7 @@ function As(e) {
761
761
  orgId: e.orgId
762
762
  };
763
763
  }
764
- function xs(e) {
764
+ function ks(e) {
765
765
  if (e !== void 0)
766
766
  return e === null ? null : {
767
767
  externalRef: e.externalRef,
@@ -771,32 +771,32 @@ function xs(e) {
771
771
  scopes: e.scopes
772
772
  };
773
773
  }
774
- function ks(e) {
774
+ function Es(e) {
775
775
  if (e !== void 0)
776
776
  return e === null ? null : {
777
777
  sourceZipUrl: e.sourceZipUrl,
778
778
  sourceYaml: e.sourceYaml
779
779
  };
780
780
  }
781
- function Es(e) {
782
- return Fs(e);
781
+ function Fs(e) {
782
+ return Ps(e);
783
783
  }
784
- function Fs(e, t) {
784
+ function Ps(e, t) {
785
785
  return e == null ? e : {
786
786
  mode: C(e, "mode") ? e.mode : void 0,
787
787
  pageSize: C(e, "pageSize") ? e.pageSize : void 0
788
788
  };
789
789
  }
790
- function Ps(e) {
791
- return Ds(e);
790
+ function Ds(e) {
791
+ return Ks(e);
792
792
  }
793
- function Ds(e, t) {
793
+ function Ks(e, t) {
794
794
  return e == null ? e : {
795
795
  url: C(e, "url") ? e.url : void 0,
796
796
  headers: C(e, "headers") ? e.headers : void 0
797
797
  };
798
798
  }
799
- function Ks(e) {
799
+ function Ls(e) {
800
800
  if (e !== void 0)
801
801
  return e === null ? null : {
802
802
  url: e.url,
@@ -804,26 +804,26 @@ function Ks(e) {
804
804
  };
805
805
  }
806
806
  function kr(e) {
807
- return Ls(e);
807
+ return Bs(e);
808
808
  }
809
- function Ls(e, t) {
809
+ function Bs(e, t) {
810
810
  return e == null ? e : {
811
811
  id: e.id,
812
812
  name: e.name,
813
813
  type: e.type,
814
- metadata: Ps(e.metadata),
814
+ metadata: Ds(e.metadata),
815
815
  createTime: new Date(e.createTime),
816
816
  updateTime: C(e, "updateTime") ? new Date(e.updateTime) : void 0
817
817
  };
818
818
  }
819
- function Bs(e) {
819
+ function Us(e) {
820
820
  if (e !== void 0)
821
821
  return e === null ? null : {
822
822
  username: e.username,
823
823
  password: e.password
824
824
  };
825
825
  }
826
- function Us(e) {
826
+ function Ms(e) {
827
827
  if (e !== void 0)
828
828
  return e === null ? null : {
829
829
  clientId: e.clientId,
@@ -831,7 +831,7 @@ function Us(e) {
831
831
  scopes: e.scopes
832
832
  };
833
833
  }
834
- function Ms(e) {
834
+ function $s(e) {
835
835
  if (e !== void 0)
836
836
  return e === null ? null : {
837
837
  username: e.username,
@@ -841,7 +841,7 @@ function Ms(e) {
841
841
  scopes: e.scopes
842
842
  };
843
843
  }
844
- function $s(e) {
844
+ function js(e) {
845
845
  if (e !== void 0)
846
846
  return e === null ? null : {
847
847
  providerWorkspaceRef: e.providerWorkspaceRef,
@@ -851,20 +851,20 @@ function $s(e) {
851
851
  consumerRef: e.consumerRef,
852
852
  provider: e.provider,
853
853
  apiKey: e.apiKey,
854
- basicAuth: Bs(e.basicAuth),
855
- oauth2ClientCredentials: Us(e.oauth2ClientCredentials),
856
- oauth2Password: Ms(e.oauth2Password)
854
+ basicAuth: Us(e.basicAuth),
855
+ oauth2ClientCredentials: Ms(e.oauth2ClientCredentials),
856
+ oauth2Password: $s(e.oauth2Password)
857
857
  };
858
858
  }
859
- function js(e) {
860
- return qs(e);
859
+ function qs(e) {
860
+ return Ws(e);
861
861
  }
862
- function qs(e, t) {
862
+ function Ws(e, t) {
863
863
  return e == null ? e : {
864
864
  enabled: C(e, "enabled") ? e.enabled : void 0
865
865
  };
866
866
  }
867
- function Ws(e, t) {
867
+ function zs(e, t) {
868
868
  return e == null ? e : {
869
869
  fieldName: e.fieldName,
870
870
  displayName: e.displayName
@@ -879,21 +879,21 @@ function vo(e, t) {
879
879
  };
880
880
  }
881
881
  function ai(e) {
882
- return zs(e);
882
+ return Js(e);
883
883
  }
884
- function zs(e, t) {
885
- return e == null ? e : { ...Ws(e), ...vo(e) };
884
+ function Js(e, t) {
885
+ return e == null ? e : { ...zs(e), ...vo(e) };
886
886
  }
887
887
  function bo(e) {
888
- return Js(e);
888
+ return Hs(e);
889
889
  }
890
- function Js(e, t) {
890
+ function Hs(e, t) {
891
891
  return e;
892
892
  }
893
- function Hs(e) {
894
- return Xs(e);
893
+ function Xs(e) {
894
+ return Gs(e);
895
895
  }
896
- function Xs(e, t) {
896
+ function Gs(e, t) {
897
897
  return e == null ? e : {
898
898
  objectName: e.objectName,
899
899
  displayName: e.displayName,
@@ -906,56 +906,56 @@ function Xs(e, t) {
906
906
  backfill: C(e, "backfill") ? mo(e.backfill) : void 0
907
907
  };
908
908
  }
909
- function Gs(e) {
910
- return Vs(e);
909
+ function Vs(e) {
910
+ return Ys(e);
911
911
  }
912
- function Vs(e, t) {
912
+ function Ys(e, t) {
913
913
  return e == null ? e : {
914
- objects: C(e, "objects") ? e.objects.map(Hs) : void 0
914
+ objects: C(e, "objects") ? e.objects.map(Xs) : void 0
915
915
  };
916
916
  }
917
- function Ys(e) {
918
- return Zs(e);
917
+ function Zs(e) {
918
+ return Qs(e);
919
919
  }
920
- function Zs(e, t) {
920
+ function Qs(e, t) {
921
921
  return e == null ? e : {
922
922
  objectName: e.objectName,
923
923
  displayName: e.displayName
924
924
  };
925
925
  }
926
- function Qs(e) {
927
- return ec(e);
926
+ function ec(e) {
927
+ return tc(e);
928
928
  }
929
- function ec(e, t) {
929
+ function tc(e, t) {
930
930
  return e == null ? e : {
931
- objects: C(e, "objects") ? e.objects.map(Ys) : void 0
931
+ objects: C(e, "objects") ? e.objects.map(Zs) : void 0
932
932
  };
933
933
  }
934
- function tc(e) {
935
- return rc(e);
934
+ function rc(e) {
935
+ return nc(e);
936
936
  }
937
- function rc(e, t) {
937
+ function nc(e, t) {
938
938
  return e == null ? e : {
939
939
  name: e.name,
940
940
  displayName: C(e, "displayName") ? e.displayName : void 0,
941
941
  provider: e.provider,
942
- read: C(e, "read") ? Gs(e.read) : void 0,
943
- write: C(e, "write") ? Qs(e.write) : void 0,
944
- proxy: C(e, "proxy") ? js(e.proxy) : void 0
942
+ read: C(e, "read") ? Vs(e.read) : void 0,
943
+ write: C(e, "write") ? ec(e.write) : void 0,
944
+ proxy: C(e, "proxy") ? qs(e.proxy) : void 0
945
945
  };
946
946
  }
947
- function nc(e) {
948
- return ic(e);
947
+ function ic(e) {
948
+ return oc(e);
949
949
  }
950
- function ic(e, t) {
950
+ function oc(e, t) {
951
951
  return e == null ? e : {
952
952
  id: e.id,
953
953
  specVersion: e.specVersion,
954
954
  createTime: new Date(e.createTime),
955
- content: tc(e.content)
955
+ content: rc(e.content)
956
956
  };
957
957
  }
958
- function oc(e) {
958
+ function ac(e) {
959
959
  if (e !== void 0)
960
960
  return e === null ? null : {
961
961
  providerAppId: e.providerAppId,
@@ -969,25 +969,25 @@ function oc(e) {
969
969
  scopes: e.scopes
970
970
  };
971
971
  }
972
- function ac(e) {
972
+ function sc(e) {
973
973
  if (e !== void 0)
974
974
  return e === null ? null : {
975
975
  revisionId: e.revisionId,
976
976
  content: wo(e.content)
977
977
  };
978
978
  }
979
- function sc(e) {
979
+ function cc(e) {
980
980
  if (e !== void 0)
981
981
  return e === null ? null : {
982
982
  provider: e.provider,
983
- connection: oc(e.connection),
984
- config: ac(e.config)
983
+ connection: ac(e.connection),
984
+ config: sc(e.config)
985
985
  };
986
986
  }
987
- function rr(e) {
988
- return cc(e);
987
+ function nr(e) {
988
+ return dc(e);
989
989
  }
990
- function cc(e, t) {
990
+ function dc(e, t) {
991
991
  return e == null ? e : {
992
992
  id: e.id,
993
993
  projectId: e.projectId,
@@ -998,32 +998,32 @@ function cc(e, t) {
998
998
  createTime: new Date(e.createTime),
999
999
  createdBy: e.createdBy,
1000
1000
  updateTime: C(e, "updateTime") ? new Date(e.updateTime) : void 0,
1001
- config: hs(e.config)
1001
+ config: gs(e.config)
1002
1002
  };
1003
1003
  }
1004
- function dc(e) {
1005
- return lc(e);
1004
+ function lc(e) {
1005
+ return uc(e);
1006
1006
  }
1007
- function lc(e, t) {
1007
+ function uc(e, t) {
1008
1008
  return e == null ? e : {
1009
1009
  enabled: C(e, "enabled") ? e.enabled : void 0
1010
1010
  };
1011
1011
  }
1012
- function uc(e, t) {
1012
+ function pc(e, t) {
1013
1013
  return e == null ? e : {
1014
1014
  fieldName: e.fieldName
1015
1015
  };
1016
1016
  }
1017
1017
  function Li(e) {
1018
- return pc(e);
1018
+ return fc(e);
1019
1019
  }
1020
- function pc(e, t) {
1021
- return e == null ? e : { ...uc(e), ...vo(e) };
1020
+ function fc(e, t) {
1021
+ return e == null ? e : { ...pc(e), ...vo(e) };
1022
1022
  }
1023
- function fc(e) {
1024
- return hc(e);
1023
+ function hc(e) {
1024
+ return gc(e);
1025
1025
  }
1026
- function hc(e, t) {
1026
+ function gc(e, t) {
1027
1027
  return e == null ? e : {
1028
1028
  objectName: e.objectName,
1029
1029
  destination: e.destination,
@@ -1032,61 +1032,61 @@ function hc(e, t) {
1032
1032
  optionalFields: C(e, "optionalFields") ? e.optionalFields.map(Li) : void 0,
1033
1033
  optionalFieldsAuto: C(e, "optionalFieldsAuto") ? bo(e.optionalFieldsAuto) : void 0,
1034
1034
  backfill: C(e, "backfill") ? mo(e.backfill) : void 0,
1035
- delivery: C(e, "delivery") ? Es(e.delivery) : void 0
1035
+ delivery: C(e, "delivery") ? Fs(e.delivery) : void 0
1036
1036
  };
1037
1037
  }
1038
- function gc(e) {
1039
- return mc(e);
1038
+ function mc(e) {
1039
+ return yc(e);
1040
1040
  }
1041
- function mc(e, t) {
1041
+ function yc(e, t) {
1042
1042
  return e == null ? e : {
1043
- objects: C(e, "objects") ? e.objects.map(fc) : void 0
1043
+ objects: C(e, "objects") ? e.objects.map(hc) : void 0
1044
1044
  };
1045
1045
  }
1046
- function yc(e) {
1047
- return wc(e);
1046
+ function wc(e) {
1047
+ return Ic(e);
1048
1048
  }
1049
- function wc(e, t) {
1049
+ function Ic(e, t) {
1050
1050
  return e == null ? e : {
1051
1051
  objectName: e.objectName
1052
1052
  };
1053
1053
  }
1054
- function Ic(e) {
1055
- return vc(e);
1054
+ function vc(e) {
1055
+ return bc(e);
1056
1056
  }
1057
- function vc(e, t) {
1057
+ function bc(e, t) {
1058
1058
  return e == null ? e : {
1059
- objects: C(e, "objects") ? e.objects.map(yc) : void 0
1059
+ objects: C(e, "objects") ? e.objects.map(wc) : void 0
1060
1060
  };
1061
1061
  }
1062
- function bc(e) {
1063
- return Sc(e);
1062
+ function Sc(e) {
1063
+ return Oc(e);
1064
1064
  }
1065
- function Sc(e, t) {
1065
+ function Oc(e, t) {
1066
1066
  return e == null ? e : {
1067
1067
  name: e.name,
1068
1068
  displayName: C(e, "displayName") ? e.displayName : void 0,
1069
1069
  provider: e.provider,
1070
- read: C(e, "read") ? gc(e.read) : void 0,
1071
- write: C(e, "write") ? Ic(e.write) : void 0,
1072
- proxy: C(e, "proxy") ? dc(e.proxy) : void 0
1070
+ read: C(e, "read") ? mc(e.read) : void 0,
1071
+ write: C(e, "write") ? vc(e.write) : void 0,
1072
+ proxy: C(e, "proxy") ? lc(e.proxy) : void 0
1073
1073
  };
1074
1074
  }
1075
- function Oc(e) {
1076
- return Cc(e);
1075
+ function Cc(e) {
1076
+ return Nc(e);
1077
1077
  }
1078
- function Cc(e, t) {
1078
+ function Nc(e, t) {
1079
1079
  return e == null ? e : {
1080
1080
  id: e.id,
1081
1081
  specVersion: e.specVersion,
1082
1082
  createTime: new Date(e.createTime),
1083
- content: bc(e.content)
1083
+ content: Sc(e.content)
1084
1084
  };
1085
1085
  }
1086
1086
  function Bi(e) {
1087
- return Nc(e);
1087
+ return Tc(e);
1088
1088
  }
1089
- function Nc(e, t) {
1089
+ function Tc(e, t) {
1090
1090
  return e == null ? e : {
1091
1091
  id: e.id,
1092
1092
  projectId: e.projectId,
@@ -1094,70 +1094,70 @@ function Nc(e, t) {
1094
1094
  provider: e.provider,
1095
1095
  createTime: new Date(e.createTime),
1096
1096
  updateTime: C(e, "updateTime") ? new Date(e.updateTime) : void 0,
1097
- latestRevision: Oc(e.latestRevision)
1097
+ latestRevision: Cc(e.latestRevision)
1098
1098
  };
1099
1099
  }
1100
- function Tc(e) {
1101
- return Rc(e);
1100
+ function Rc(e) {
1101
+ return _c(e);
1102
1102
  }
1103
- function Rc(e, t) {
1103
+ function _c(e, t) {
1104
1104
  return e == null ? e : {
1105
1105
  msg: e.msg,
1106
1106
  operationEventId: C(e, "operation_event_id") ? e.operation_event_id : void 0,
1107
1107
  operationId: C(e, "operation_id") ? e.operation_id : void 0
1108
1108
  };
1109
1109
  }
1110
- function _c(e) {
1111
- return Ac(e);
1110
+ function Ac(e) {
1111
+ return xc(e);
1112
1112
  }
1113
- function Ac(e, t) {
1113
+ function xc(e, t) {
1114
1114
  return e == null ? e : {
1115
1115
  timestamp: e.timestamp,
1116
- message: Tc(e.message),
1116
+ message: Rc(e.message),
1117
1117
  severity: e.severity
1118
1118
  };
1119
1119
  }
1120
- function xc(e) {
1121
- return kc(e);
1120
+ function kc(e) {
1121
+ return Ec(e);
1122
1122
  }
1123
- function kc(e, t) {
1123
+ function Ec(e, t) {
1124
1124
  return e == null ? e : {
1125
1125
  iconURL: C(e, "iconURL") ? e.iconURL : void 0,
1126
1126
  logoURL: C(e, "logoURL") ? e.logoURL : void 0
1127
1127
  };
1128
1128
  }
1129
- function Ec(e) {
1130
- return Fc(e);
1129
+ function Fc(e) {
1130
+ return Pc(e);
1131
1131
  }
1132
- function Fc(e, t) {
1132
+ function Pc(e, t) {
1133
1133
  return e == null ? e : {
1134
1134
  iconURL: C(e, "iconURL") ? e.iconURL : void 0,
1135
1135
  logoURL: C(e, "logoURL") ? e.logoURL : void 0
1136
1136
  };
1137
1137
  }
1138
- function Pc(e) {
1139
- return Dc(e);
1138
+ function Dc(e) {
1139
+ return Kc(e);
1140
1140
  }
1141
- function Dc(e, t) {
1141
+ function Kc(e, t) {
1142
1142
  return e == null ? e : {
1143
- regular: C(e, "regular") ? Ec(e.regular) : void 0,
1144
- darkMode: C(e, "darkMode") ? xc(e.darkMode) : void 0
1143
+ regular: C(e, "regular") ? Fc(e.regular) : void 0,
1144
+ darkMode: C(e, "darkMode") ? kc(e.darkMode) : void 0
1145
1145
  };
1146
1146
  }
1147
- function Kc(e) {
1148
- return Lc(e);
1147
+ function Lc(e) {
1148
+ return Bc(e);
1149
1149
  }
1150
- function Lc(e, t) {
1150
+ function Bc(e, t) {
1151
1151
  return e == null ? e : {
1152
1152
  workspaceRefField: C(e, "workspaceRefField") ? e.workspaceRefField : void 0,
1153
1153
  consumerRefField: C(e, "consumerRefField") ? e.consumerRefField : void 0,
1154
1154
  scopesField: C(e, "scopesField") ? e.scopesField : void 0
1155
1155
  };
1156
1156
  }
1157
- function Bc(e) {
1158
- return Uc(e);
1157
+ function Uc(e) {
1158
+ return Mc(e);
1159
1159
  }
1160
- function Uc(e, t) {
1160
+ function Mc(e, t) {
1161
1161
  return e == null ? e : {
1162
1162
  grantType: e.grantType,
1163
1163
  authURL: C(e, "authURL") ? e.authURL : void 0,
@@ -1165,12 +1165,12 @@ function Uc(e, t) {
1165
1165
  explicitScopesRequired: e.explicitScopesRequired,
1166
1166
  explicitWorkspaceRequired: e.explicitWorkspaceRequired,
1167
1167
  audience: C(e, "audience") ? e.audience : void 0,
1168
- tokenMetadataFields: Kc(e.tokenMetadataFields),
1168
+ tokenMetadataFields: Lc(e.tokenMetadataFields),
1169
1169
  docsURL: C(e, "docsURL") ? e.docsURL : void 0,
1170
1170
  authURLParams: C(e, "authURLParams") ? e.authURLParams : void 0
1171
1171
  };
1172
1172
  }
1173
- function Mc(e) {
1173
+ function $c(e) {
1174
1174
  if (e !== void 0)
1175
1175
  return e === null ? null : {
1176
1176
  providerWorkspaceRef: e.providerWorkspaceRef,
@@ -1184,9 +1184,9 @@ function Mc(e) {
1184
1184
  };
1185
1185
  }
1186
1186
  function Ui(e) {
1187
- return $c(e);
1187
+ return jc(e);
1188
1188
  }
1189
- function $c(e, t) {
1189
+ function jc(e, t) {
1190
1190
  return e == null ? e : {
1191
1191
  projectId: e.projectId,
1192
1192
  integrationId: e.integrationId,
@@ -1201,12 +1201,12 @@ function $c(e, t) {
1201
1201
  createTime: C(e, "createTime") ? new Date(e.createTime) : void 0
1202
1202
  };
1203
1203
  }
1204
- function jc(e) {
1205
- return qc(e);
1204
+ function qc(e) {
1205
+ return Wc(e);
1206
1206
  }
1207
- function qc(e, t) {
1207
+ function Wc(e, t) {
1208
1208
  return e == null ? e : {
1209
- bulkWrite: ls(e.bulkWrite),
1209
+ bulkWrite: us(e.bulkWrite),
1210
1210
  proxy: e.proxy,
1211
1211
  read: e.read,
1212
1212
  subscribe: e.subscribe,
@@ -1214,94 +1214,94 @@ function qc(e, t) {
1214
1214
  };
1215
1215
  }
1216
1216
  function Mi(e) {
1217
- return Wc(e);
1217
+ return zc(e);
1218
1218
  }
1219
- function Wc(e, t) {
1219
+ function zc(e, t) {
1220
1220
  return e == null ? e : {
1221
1221
  name: e.name,
1222
- authType: Ha(e.authType),
1222
+ authType: Xa(e.authType),
1223
1223
  baseURL: e.baseURL,
1224
- oauth2Opts: C(e, "oauth2Opts") ? Bc(e.oauth2Opts) : void 0,
1225
- apiKeyOpts: C(e, "apiKeyOpts") ? za(e.apiKeyOpts) : void 0,
1226
- basicOpts: C(e, "basicOpts") ? as(e.basicOpts) : void 0,
1227
- support: jc(e.support),
1224
+ oauth2Opts: C(e, "oauth2Opts") ? Uc(e.oauth2Opts) : void 0,
1225
+ apiKeyOpts: C(e, "apiKeyOpts") ? Ja(e.apiKeyOpts) : void 0,
1226
+ basicOpts: C(e, "basicOpts") ? ss(e.basicOpts) : void 0,
1227
+ support: qc(e.support),
1228
1228
  providerOpts: e.providerOpts,
1229
1229
  displayName: C(e, "displayName") ? e.displayName : void 0,
1230
1230
  postAuthInfoNeeded: C(e, "postAuthInfoNeeded") ? e.postAuthInfoNeeded : void 0,
1231
- media: C(e, "media") ? Pc(e.media) : void 0,
1231
+ media: C(e, "media") ? Dc(e.media) : void 0,
1232
1232
  labels: C(e, "labels") ? e.labels : void 0
1233
1233
  };
1234
1234
  }
1235
- function zc(e) {
1236
- return Jc(e);
1235
+ function Jc(e) {
1236
+ return Hc(e);
1237
1237
  }
1238
- function Jc(e, t) {
1238
+ function Hc(e, t) {
1239
1239
  return e == null ? e : {
1240
1240
  url: e.url,
1241
1241
  bucket: e.bucket,
1242
1242
  path: e.path
1243
1243
  };
1244
1244
  }
1245
- function Hc(e) {
1245
+ function Xc(e) {
1246
1246
  if (e !== void 0)
1247
1247
  return e === null ? null : {
1248
1248
  name: e.name,
1249
- metadata: Ks(e.metadata)
1249
+ metadata: Ls(e.metadata)
1250
1250
  };
1251
1251
  }
1252
- function Xc(e) {
1252
+ function Gc(e) {
1253
1253
  if (e !== void 0)
1254
1254
  return e === null ? null : {
1255
1255
  updateMask: e.updateMask,
1256
- destination: Hc(e.destination)
1256
+ destination: Xc(e.destination)
1257
1257
  };
1258
1258
  }
1259
- function Gc(e) {
1259
+ function Vc(e) {
1260
1260
  if (e !== void 0)
1261
1261
  return e === null ? null : {
1262
1262
  provider: e.provider,
1263
- read: ns(e.read),
1264
- write: os(e.write),
1263
+ read: is(e.read),
1264
+ write: as(e.write),
1265
1265
  proxy: yo(e.proxy)
1266
1266
  };
1267
1267
  }
1268
- function Vc(e) {
1268
+ function Yc(e) {
1269
1269
  if (e !== void 0)
1270
1270
  return e === null ? null : {
1271
1271
  revisionId: e.revisionId,
1272
1272
  createdBy: e.createdBy,
1273
- content: Gc(e.content)
1273
+ content: Vc(e.content)
1274
1274
  };
1275
1275
  }
1276
- function Yc(e) {
1276
+ function Zc(e) {
1277
1277
  if (e !== void 0)
1278
1278
  return e === null ? null : {
1279
1279
  connectionId: e.connectionId,
1280
- config: Vc(e.config)
1280
+ config: Yc(e.config)
1281
1281
  };
1282
1282
  }
1283
- function Zc(e) {
1283
+ function Qc(e) {
1284
1284
  if (e !== void 0)
1285
1285
  return e === null ? null : {
1286
1286
  updateMask: e.updateMask,
1287
- installation: Yc(e.installation)
1287
+ installation: Zc(e.installation)
1288
1288
  };
1289
1289
  }
1290
- function Qc(e) {
1290
+ function ed(e) {
1291
1291
  if (e !== void 0)
1292
1292
  return e === null ? null : {
1293
1293
  appName: e.appName,
1294
1294
  name: e.name
1295
1295
  };
1296
1296
  }
1297
- function ed(e) {
1297
+ function td(e) {
1298
1298
  if (e !== void 0)
1299
1299
  return e === null ? null : {
1300
1300
  updateMask: e.updateMask,
1301
- project: Qc(e.project)
1301
+ project: ed(e.project)
1302
1302
  };
1303
1303
  }
1304
- function td(e) {
1304
+ function rd(e) {
1305
1305
  if (e !== void 0)
1306
1306
  return e === null ? null : {
1307
1307
  externalRef: e.externalRef,
@@ -1311,14 +1311,14 @@ function td(e) {
1311
1311
  scopes: e.scopes
1312
1312
  };
1313
1313
  }
1314
- function rd(e) {
1314
+ function nd(e) {
1315
1315
  if (e !== void 0)
1316
1316
  return e === null ? null : {
1317
1317
  updateMask: e.updateMask,
1318
- providerApp: td(e.providerApp)
1318
+ providerApp: rd(e.providerApp)
1319
1319
  };
1320
1320
  }
1321
- class nd extends le {
1321
+ class id extends le {
1322
1322
  /**
1323
1323
  * Generate a new connection (only valid for providers with auth types which are not OAuth2 Authorization Code)
1324
1324
  */
@@ -1332,7 +1332,7 @@ class nd extends le {
1332
1332
  method: "POST",
1333
1333
  headers: i,
1334
1334
  query: n,
1335
- body: $s(t.generateConnectionParams)
1335
+ body: js(t.generateConnectionParams)
1336
1336
  }, r);
1337
1337
  return new U(a, (s) => Dr(s));
1338
1338
  }
@@ -1391,7 +1391,7 @@ class nd extends le {
1391
1391
  return await (await this.listConnectionsRaw(t, r)).value();
1392
1392
  }
1393
1393
  }
1394
- class id extends le {
1394
+ class od extends le {
1395
1395
  /**
1396
1396
  * Create a new consumer
1397
1397
  */
@@ -1407,7 +1407,7 @@ class id extends le {
1407
1407
  method: "POST",
1408
1408
  headers: i,
1409
1409
  query: n,
1410
- body: bs(t.consumer)
1410
+ body: Ss(t.consumer)
1411
1411
  }, r);
1412
1412
  return new ze(a);
1413
1413
  }
@@ -1418,7 +1418,7 @@ class id extends le {
1418
1418
  await this.createConsumerRaw(t, r);
1419
1419
  }
1420
1420
  }
1421
- class od extends le {
1421
+ class ad extends le {
1422
1422
  /**
1423
1423
  * Create a new destination
1424
1424
  */
@@ -1434,7 +1434,7 @@ class od extends le {
1434
1434
  method: "POST",
1435
1435
  headers: i,
1436
1436
  query: n,
1437
- body: Os(t.destination)
1437
+ body: Cs(t.destination)
1438
1438
  }, r);
1439
1439
  return new U(a, (s) => kr(s));
1440
1440
  }
@@ -1531,7 +1531,7 @@ class od extends le {
1531
1531
  method: "PATCH",
1532
1532
  headers: i,
1533
1533
  query: n,
1534
- body: Xc(t.destinationUpdate)
1534
+ body: Gc(t.destinationUpdate)
1535
1535
  }, r);
1536
1536
  return new U(a, (s) => kr(s));
1537
1537
  }
@@ -1542,7 +1542,7 @@ class od extends le {
1542
1542
  return await (await this.updateDestinationRaw(t, r)).value();
1543
1543
  }
1544
1544
  }
1545
- class ad extends le {
1545
+ class sd extends le {
1546
1546
  /**
1547
1547
  * Create a new group
1548
1548
  */
@@ -1558,7 +1558,7 @@ class ad extends le {
1558
1558
  method: "POST",
1559
1559
  headers: i,
1560
1560
  query: n,
1561
- body: Cs(t.group)
1561
+ body: Ns(t.group)
1562
1562
  }, r);
1563
1563
  return new ze(a);
1564
1564
  }
@@ -1569,7 +1569,7 @@ class ad extends le {
1569
1569
  await this.createGroupRaw(t, r);
1570
1570
  }
1571
1571
  }
1572
- class sd extends le {
1572
+ class cd extends le {
1573
1573
  /**
1574
1574
  * Create a new installation
1575
1575
  */
@@ -1587,9 +1587,9 @@ class sd extends le {
1587
1587
  method: "POST",
1588
1588
  headers: i,
1589
1589
  query: n,
1590
- body: Ts(t.installation)
1590
+ body: Rs(t.installation)
1591
1591
  }, r);
1592
- return new U(a, (s) => rr(s));
1592
+ return new U(a, (s) => nr(s));
1593
1593
  }
1594
1594
  /**
1595
1595
  * Create a new installation
@@ -1641,7 +1641,7 @@ class sd extends le {
1641
1641
  headers: i,
1642
1642
  query: n
1643
1643
  }, r);
1644
- return new U(a, (s) => rr(s));
1644
+ return new U(a, (s) => nr(s));
1645
1645
  }
1646
1646
  /**
1647
1647
  * Get an installation
@@ -1666,9 +1666,9 @@ class sd extends le {
1666
1666
  method: "POST",
1667
1667
  headers: i,
1668
1668
  query: n,
1669
- body: sc(t.installation)
1669
+ body: cc(t.installation)
1670
1670
  }, r);
1671
- return new U(a, (s) => rr(s));
1671
+ return new U(a, (s) => nr(s));
1672
1672
  }
1673
1673
  /**
1674
1674
  * Import an existing installation
@@ -1694,7 +1694,7 @@ class sd extends le {
1694
1694
  headers: i,
1695
1695
  query: n
1696
1696
  }, r);
1697
- return new U(a, (s) => s.map(rr));
1697
+ return new U(a, (s) => s.map(nr));
1698
1698
  }
1699
1699
  /**
1700
1700
  * List installations
@@ -1721,9 +1721,9 @@ class sd extends le {
1721
1721
  method: "PATCH",
1722
1722
  headers: i,
1723
1723
  query: n,
1724
- body: Zc(t.installationUpdate)
1724
+ body: Qc(t.installationUpdate)
1725
1725
  }, r);
1726
- return new U(a, (s) => rr(s));
1726
+ return new U(a, (s) => nr(s));
1727
1727
  }
1728
1728
  /**
1729
1729
  * Update an installation
@@ -1732,7 +1732,7 @@ class sd extends le {
1732
1732
  return await (await this.updateInstallationRaw(t, r)).value();
1733
1733
  }
1734
1734
  }
1735
- class cd extends le {
1735
+ class dd extends le {
1736
1736
  /**
1737
1737
  * Batch upsert a group of integrations
1738
1738
  */
@@ -1746,7 +1746,7 @@ class cd extends le {
1746
1746
  method: "PUT",
1747
1747
  headers: i,
1748
1748
  query: n,
1749
- body: cs(t.batchUpsertIntegrationsRequest)
1749
+ body: ds(t.batchUpsertIntegrationsRequest)
1750
1750
  }, r);
1751
1751
  return new U(a, (s) => s.map(Bi));
1752
1752
  }
@@ -1771,7 +1771,7 @@ class cd extends le {
1771
1771
  method: "POST",
1772
1772
  headers: i,
1773
1773
  query: n,
1774
- body: _s(t.integration)
1774
+ body: As(t.integration)
1775
1775
  }, r);
1776
1776
  return new ze(a);
1777
1777
  }
@@ -1828,7 +1828,7 @@ class cd extends le {
1828
1828
  return await (await this.listIntegrationsRaw(t, r)).value();
1829
1829
  }
1830
1830
  }
1831
- class dd extends le {
1831
+ class ld extends le {
1832
1832
  /**
1833
1833
  * Generate a URL for the browser to render to kick off OAuth flow.
1834
1834
  * Get URL for OAuth flow
@@ -1843,9 +1843,9 @@ class dd extends le {
1843
1843
  method: "POST",
1844
1844
  headers: i,
1845
1845
  query: n,
1846
- body: Mc(t.connectOAuthParams)
1846
+ body: $c(t.connectOAuthParams)
1847
1847
  }, r);
1848
- return this.isJsonMime(a.headers.get("content-type")) ? new U(a) : new Ba(a);
1848
+ return this.isJsonMime(a.headers.get("content-type")) ? new U(a) : new Ua(a);
1849
1849
  }
1850
1850
  /**
1851
1851
  * Generate a URL for the browser to render to kick off OAuth flow.
@@ -1855,7 +1855,7 @@ class dd extends le {
1855
1855
  return await (await this.oauthConnectRaw(t, r)).value();
1856
1856
  }
1857
1857
  }
1858
- class ld extends le {
1858
+ class ud extends le {
1859
1859
  /**
1860
1860
  * Get an operation
1861
1861
  */
@@ -1896,7 +1896,7 @@ class ld extends le {
1896
1896
  headers: i,
1897
1897
  query: n
1898
1898
  }, r);
1899
- return new U(a, (s) => s.map(_c));
1899
+ return new U(a, (s) => s.map(Ac));
1900
1900
  }
1901
1901
  /**
1902
1902
  * List logs for an operation
@@ -1931,7 +1931,7 @@ class ld extends le {
1931
1931
  return await (await this.listOperationsRaw(t, r)).value();
1932
1932
  }
1933
1933
  }
1934
- class ud extends le {
1934
+ class pd extends le {
1935
1935
  /**
1936
1936
  * Create a new project
1937
1937
  */
@@ -1945,7 +1945,7 @@ class ud extends le {
1945
1945
  method: "POST",
1946
1946
  headers: i,
1947
1947
  query: n,
1948
- body: As(t.project)
1948
+ body: xs(t.project)
1949
1949
  }, r);
1950
1950
  return new U(a, (s) => xr(s));
1951
1951
  }
@@ -2034,7 +2034,7 @@ class ud extends le {
2034
2034
  method: "PATCH",
2035
2035
  headers: i,
2036
2036
  query: n,
2037
- body: ed(t.projectUpdate)
2037
+ body: td(t.projectUpdate)
2038
2038
  }, r);
2039
2039
  return new U(a, (s) => xr(s));
2040
2040
  }
@@ -2045,7 +2045,7 @@ class ud extends le {
2045
2045
  return await (await this.updateProjectRaw(t, r)).value();
2046
2046
  }
2047
2047
  }
2048
- class pd extends le {
2048
+ class fd extends le {
2049
2049
  /**
2050
2050
  * Get provider
2051
2051
  */
@@ -2089,7 +2089,7 @@ class pd extends le {
2089
2089
  return await (await this.listProvidersRaw(t)).value();
2090
2090
  }
2091
2091
  }
2092
- class fd extends le {
2092
+ class hd extends le {
2093
2093
  /**
2094
2094
  * Create a new provider app
2095
2095
  */
@@ -2105,7 +2105,7 @@ class fd extends le {
2105
2105
  method: "POST",
2106
2106
  headers: i,
2107
2107
  query: n,
2108
- body: xs(t.providerApp)
2108
+ body: ks(t.providerApp)
2109
2109
  }, r);
2110
2110
  return new U(a, (s) => Pr(s));
2111
2111
  }
@@ -2178,7 +2178,7 @@ class fd extends le {
2178
2178
  method: "PATCH",
2179
2179
  headers: i,
2180
2180
  query: n,
2181
- body: rd(t.providerAppUpdate)
2181
+ body: nd(t.providerAppUpdate)
2182
2182
  }, r);
2183
2183
  return new U(a, (s) => Pr(s));
2184
2184
  }
@@ -2189,7 +2189,7 @@ class fd extends le {
2189
2189
  return await (await this.updateProviderAppRaw(t, r)).value();
2190
2190
  }
2191
2191
  }
2192
- class hd extends le {
2192
+ class gd extends le {
2193
2193
  /**
2194
2194
  * Create a new revision
2195
2195
  */
@@ -2205,7 +2205,7 @@ class hd extends le {
2205
2205
  method: "POST",
2206
2206
  headers: i,
2207
2207
  query: n,
2208
- body: ks(t.revision)
2208
+ body: Es(t.revision)
2209
2209
  }, r);
2210
2210
  return new ze(a);
2211
2211
  }
@@ -2238,7 +2238,7 @@ class hd extends le {
2238
2238
  headers: i,
2239
2239
  query: n
2240
2240
  }, r);
2241
- return new U(a, (s) => nc(s));
2241
+ return new U(a, (s) => ic(s));
2242
2242
  }
2243
2243
  /**
2244
2244
  * Hydrate a revision with information from the consumer\'s SaaS instance.
@@ -2248,7 +2248,7 @@ class hd extends le {
2248
2248
  return await (await this.getHydratedRevisionRaw(t, r)).value();
2249
2249
  }
2250
2250
  }
2251
- class gd extends le {
2251
+ class md extends le {
2252
2252
  /**
2253
2253
  * Generate a signed URL to upload a zip file to.
2254
2254
  */
@@ -2261,7 +2261,7 @@ class gd extends le {
2261
2261
  headers: n,
2262
2262
  query: r
2263
2263
  }, t);
2264
- return new U(i, (a) => zc(a));
2264
+ return new U(i, (a) => Jc(a));
2265
2265
  }
2266
2266
  /**
2267
2267
  * Generate a signed URL to upload a zip file to.
@@ -2270,12 +2270,12 @@ class gd extends le {
2270
2270
  return await (await this.generateUploadUrlRaw(t)).value();
2271
2271
  }
2272
2272
  }
2273
- class md {
2273
+ class yd {
2274
2274
  constructor(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);
2275
+ this.connectionApi = new id(t), this.consumerApi = new od(t), this.destinationApi = new ad(t), this.groupApi = new sd(t), this.installationApi = new cd(t), this.integrationApi = new dd(t), this.oAuthApi = new ld(t), this.operationApi = new ud(t), this.projectApi = new pd(t), this.providerApi = new fd(t), this.providerAppApi = new hd(t), this.revisionApi = new gd(t), this.uploadURLApi = new md(t);
2276
2276
  }
2277
2277
  }
2278
- const yd = "1.11.0", wd = "v1", Er = "https://api.withampersand.com";
2278
+ const wd = "1.12.0", Id = "v1", Er = "https://api.withampersand.com";
2279
2279
  function So() {
2280
2280
  try {
2281
2281
  const e = process.env.REACT_APP_AMP_SERVER;
@@ -2299,19 +2299,19 @@ function So() {
2299
2299
  return Er;
2300
2300
  }
2301
2301
  }
2302
- const Id = (e, t) => `${e}/${t}`;
2303
- function vd() {
2304
- return Id(So(), wd);
2302
+ const vd = (e, t) => `${e}/${t}`;
2303
+ function bd() {
2304
+ return vd(So(), Id);
2305
2305
  }
2306
- const bd = So(), Sd = vd(), Od = new fo({
2307
- basePath: Sd,
2306
+ const Sd = So(), Od = bd(), Cd = new fo({
2307
+ basePath: Od,
2308
2308
  headers: {
2309
2309
  "X-Amp-Client": "react",
2310
- "X-Amp-Client-Version": yd
2310
+ "X-Amp-Client-Version": wd
2311
2311
  }
2312
2312
  });
2313
- let Cd = new md(Od);
2314
- const X = () => Cd, Oo = _e({
2313
+ let Nd = new yd(Cd);
2314
+ const X = () => Nd, Oo = _e({
2315
2315
  integrations: null
2316
2316
  }), Co = () => {
2317
2317
  const e = be(Oo);
@@ -2319,7 +2319,7 @@ const X = () => Cd, Oo = _e({
2319
2319
  throw new Error("useIntegrationList must be used within a IntegrationListProvider");
2320
2320
  return e;
2321
2321
  };
2322
- function Nd({ projectIdOrName: e, children: t }) {
2322
+ function Td({ projectIdOrName: e, children: t }) {
2323
2323
  const r = re(), { setError: n, isError: i } = nt(), [a, s] = x(null), [u, p] = x(!0);
2324
2324
  Y(() => {
2325
2325
  X().integrationApi.listIntegrations({ projectIdOrName: e }, {
@@ -2348,7 +2348,7 @@ const No = _e({
2348
2348
  throw new Error("useProject must be used within a ProjectProvider");
2349
2349
  return e;
2350
2350
  };
2351
- function Td({ projectIdOrName: e, children: t }) {
2351
+ function Rd({ projectIdOrName: e, children: t }) {
2352
2352
  const r = re(), { isError: n, setError: i } = nt(), [a, s] = x(null), [u, p] = x(!0);
2353
2353
  Y(() => {
2354
2354
  X().projectApi.getProject({ projectIdOrName: e }, {
@@ -2369,7 +2369,7 @@ function Td({ projectIdOrName: e, children: t }) {
2369
2369
  }), [e, a]);
2370
2370
  return n(Q.PROJECT, e) ? /* @__PURE__ */ l(We, { message: `Error loading project ${e}` }) : /* @__PURE__ */ l(No.Provider, { value: h, children: u ? /* @__PURE__ */ l(De, {}) : t });
2371
2371
  }
2372
- function Vp(e) {
2372
+ function Yp(e) {
2373
2373
  const { options: { apiKey: t, projectId: r, project: n }, children: i } = e, a = n || r;
2374
2374
  if (r && n)
2375
2375
  throw new Error("Use AmpersandProvider either with projectId or project but not both.");
@@ -2377,11 +2377,11 @@ function Vp(e) {
2377
2377
  throw new Error("Cannot use AmpersandProvider without a projectId or name.");
2378
2378
  if (!t)
2379
2379
  throw new Error("Cannot use AmpersandProvider without an apiKey.");
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 }) }) }) }) });
2380
+ return /* @__PURE__ */ l(Aa, { children: /* @__PURE__ */ l(Ea, { children: /* @__PURE__ */ l(xa, { value: t, children: /* @__PURE__ */ l(Rd, { projectIdOrName: a, children: /* @__PURE__ */ l(Td, { projectIdOrName: a, children: i }) }) }) }) });
2381
2381
  }
2382
- const Rd = _e(null);
2383
- function Yp() {
2384
- const e = be(Rd);
2382
+ const _d = _e(null);
2383
+ function Zp() {
2384
+ const e = be(_d);
2385
2385
  if (!e)
2386
2386
  throw new Error(`Cannot call useAmpersandProvider unless your
2387
2387
  component is wrapped with AmpersandProvider`);
@@ -2394,9 +2394,9 @@ function vt(e, t) {
2394
2394
  return (t == null ? void 0 : t.displayName) ?? To(e);
2395
2395
  }
2396
2396
  const Ro = (e) => e.split(`
2397
- `).filter((r) => r.trim() !== ""), _d = (e, t) => (t == null ? void 0 : t.length) === 0 || !e ? null : t.find(
2397
+ `).filter((r) => r.trim() !== ""), Ad = (e, t) => (t == null ? void 0 : t.length) === 0 || !e ? null : t.find(
2398
2398
  (r) => r.name === e
2399
- ) ?? null, Ad = () => {
2399
+ ) ?? null, xd = () => {
2400
2400
  const [e, t] = x(!1), r = Z(() => {
2401
2401
  t(!0);
2402
2402
  }, [t]);
@@ -2427,7 +2427,7 @@ function Ke() {
2427
2427
  throw new Error("useInstallIntegrationProps must be used within an InstallIntegrationProvider");
2428
2428
  return e;
2429
2429
  }
2430
- function xd({
2430
+ function kd({
2431
2431
  children: e,
2432
2432
  integration: t,
2433
2433
  consumerRef: r,
@@ -2438,8 +2438,8 @@ function xd({
2438
2438
  onUpdateSuccess: u,
2439
2439
  onUninstallSuccess: p
2440
2440
  }) {
2441
- const h = re(), { projectId: m } = te(), { integrations: w } = Co(), { setError: y, isError: I } = nt(), { isIntegrationDeleted: b, setIntegrationDeleted: v } = Ad(), [S, N] = x([]), [_, D] = x(!0), j = (S == null ? void 0 : S[0]) || null, E = Ie(
2442
- () => _d(t, w || []),
2441
+ const h = re(), { projectId: m } = te(), { integrations: w } = Co(), { setError: y, isError: I } = nt(), { isIntegrationDeleted: b, setIntegrationDeleted: v } = xd(), [S, N] = x([]), [_, D] = x(!0), j = (S == null ? void 0 : S[0]) || null, E = Ie(
2442
+ () => Ad(t, w || []),
2443
2443
  [t, w]
2444
2444
  );
2445
2445
  Y(() => {
@@ -2512,7 +2512,7 @@ const Ao = _e({
2512
2512
  },
2513
2513
  setSelectedConnection: () => {
2514
2514
  }
2515
- }), Lt = () => {
2515
+ }), Bt = () => {
2516
2516
  const e = be(Ao);
2517
2517
  if (!e)
2518
2518
  throw new Error("useConnections must be used within a ConnectionsProvider");
@@ -2557,7 +2557,7 @@ $r.exports;
2557
2557
  (function(e, t) {
2558
2558
  var r = 200, n = "__lodash_hash_undefined__", i = 1, a = 2, 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]", N = "[object Null]", _ = "[object Object]", D = "[object Promise]", j = "[object Proxy]", E = "[object RegExp]", ne = "[object Set]", V = "[object String]", ie = "[object Symbol]", H = "[object Undefined]", ee = "[object WeakMap]", Le = "[object ArrayBuffer]", bt = "[object DataView]", sn = "[object Float32Array]", cn = "[object Float64Array]", dn = "[object Int8Array]", ln = "[object Int16Array]", un = "[object Int32Array]", pn = "[object Uint8Array]", fn = "[object Uint8ClampedArray]", hn = "[object Uint16Array]", gn = "[object Uint32Array]", mn = /[\\^$.*+?()[\]{}|]/g, M = /^\[object .+?Constructor\]$/, pr = /^(?:0|[1-9]\d*)$/, $ = {};
2559
2559
  $[sn] = $[cn] = $[dn] = $[ln] = $[un] = $[pn] = $[fn] = $[hn] = $[gn] = !0, $[u] = $[p] = $[Le] = $[m] = $[bt] = $[w] = $[y] = $[I] = $[v] = $[S] = $[_] = $[E] = $[ne] = $[V] = $[ee] = !1;
2560
- var Xe = typeof et == "object" && et && et.Object === Object && et, fr = typeof self == "object" && self && self.Object === Object && self, de = Xe || fr || Function("return this")(), Ut = t && !t.nodeType && t, St = Ut && !0 && e && !e.nodeType && e, Mt = St && St.exports === Ut, Ot = Mt && Xe.process, hr = function() {
2560
+ var Xe = typeof et == "object" && et && et.Object === Object && et, fr = typeof self == "object" && self && self.Object === Object && self, de = Xe || fr || Function("return this")(), Mt = t && !t.nodeType && t, St = Mt && !0 && e && !e.nodeType && e, $t = St && St.exports === Mt, Ot = $t && Xe.process, hr = function() {
2561
2561
  try {
2562
2562
  return Ot && Ot.binding && Ot.binding("util");
2563
2563
  } catch {
@@ -2594,7 +2594,7 @@ $r.exports;
2594
2594
  function Ct(d, o) {
2595
2595
  return d.has(o);
2596
2596
  }
2597
- function $t(d, o) {
2597
+ function jt(d, o) {
2598
2598
  return d == null ? void 0 : d[o];
2599
2599
  }
2600
2600
  function Nt(d) {
@@ -2614,12 +2614,12 @@ $r.exports;
2614
2614
  c[++o] = f;
2615
2615
  }), c;
2616
2616
  }
2617
- var yr = Array.prototype, Sn = Function.prototype, Tt = Object.prototype, Ge = de["__core-js_shared__"], jt = Sn.toString, pe = Tt.hasOwnProperty, qt = function() {
2617
+ var yr = Array.prototype, Sn = Function.prototype, Tt = Object.prototype, Ge = de["__core-js_shared__"], qt = Sn.toString, pe = Tt.hasOwnProperty, Wt = function() {
2618
2618
  var d = /[^.]+$/.exec(Ge && Ge.keys && Ge.keys.IE_PROTO || "");
2619
2619
  return d ? "Symbol(src)_1." + d : "";
2620
- }(), Wt = Tt.toString, On = RegExp(
2621
- "^" + jt.call(pe).replace(mn, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
2622
- ), wr = Mt ? de.Buffer : void 0, ge = de.Symbol, it = de.Uint8Array, Ir = Tt.propertyIsEnumerable, vr = yr.splice, Be = ge ? ge.toStringTag : void 0, zt = Object.getOwnPropertySymbols, ot = wr ? wr.isBuffer : void 0, Cn = xe(Object.keys, Object), Se = Ye(de, "DataView"), at = Ye(de, "Map"), Jt = Ye(de, "Promise"), Ht = Ye(de, "Set"), Xt = Ye(de, "WeakMap"), st = Ye(Object, "create"), Oe = Te(Se), Nn = Te(at), Tn = Te(Jt), Rn = Te(Ht), _n = Te(Xt), br = ge ? ge.prototype : void 0, ke = br ? br.valueOf : void 0;
2620
+ }(), zt = Tt.toString, On = RegExp(
2621
+ "^" + qt.call(pe).replace(mn, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
2622
+ ), wr = $t ? de.Buffer : void 0, ge = de.Symbol, it = de.Uint8Array, Ir = Tt.propertyIsEnumerable, vr = yr.splice, Be = ge ? ge.toStringTag : void 0, Jt = Object.getOwnPropertySymbols, ot = wr ? wr.isBuffer : void 0, Cn = xe(Object.keys, Object), Se = Ye(de, "DataView"), at = Ye(de, "Map"), Ht = Ye(de, "Promise"), Xt = Ye(de, "Set"), Gt = Ye(de, "WeakMap"), st = Ye(Object, "create"), Oe = Te(Se), Nn = Te(at), Tn = Te(Ht), Rn = Te(Xt), _n = Te(Gt), br = ge ? ge.prototype : void 0, ke = br ? br.valueOf : void 0;
2623
2623
  function Ue(d) {
2624
2624
  var o = -1, c = d == null ? 0 : d.length;
2625
2625
  for (this.clear(); ++o < c; ) {
@@ -2698,7 +2698,7 @@ $r.exports;
2698
2698
  var o = lt(this, d).delete(d);
2699
2699
  return this.size -= o ? 1 : 0, o;
2700
2700
  }
2701
- function Gt(d) {
2701
+ function Vt(d) {
2702
2702
  return lt(this, d).get(d);
2703
2703
  }
2704
2704
  function Un(d) {
@@ -2708,7 +2708,7 @@ $r.exports;
2708
2708
  var c = lt(this, d), f = c.size;
2709
2709
  return c.set(d, o), this.size += c.size == f ? 0 : 1, this;
2710
2710
  }
2711
- Ne.prototype.clear = Bn, Ne.prototype.delete = Rt, Ne.prototype.get = Gt, Ne.prototype.has = Un, Ne.prototype.set = _t;
2711
+ Ne.prototype.clear = Bn, Ne.prototype.delete = Rt, Ne.prototype.get = Vt, Ne.prototype.has = Un, Ne.prototype.set = _t;
2712
2712
  function ct(d) {
2713
2713
  var o = -1, c = d == null ? 0 : d.length;
2714
2714
  for (this.__data__ = new Ne(); ++o < c; )
@@ -2750,7 +2750,7 @@ $r.exports;
2750
2750
  }
2751
2751
  Ee.prototype.clear = Sr, Ee.prototype.delete = jn, Ee.prototype.get = qn, Ee.prototype.has = Wn, Ee.prototype.set = zn;
2752
2752
  function Jn(d, o) {
2753
- var c = ut(d), f = !c && ni(d), O = !c && !f && Ft(d), T = !c && !f && !O && tr(d), k = c || f || O || T, K = k ? vn(d.length, String) : [], F = K.length;
2753
+ var c = ut(d), f = !c && ni(d), O = !c && !f && Ft(d), T = !c && !f && !O && rr(d), k = c || f || O || T, K = k ? vn(d.length, String) : [], F = K.length;
2754
2754
  for (var P in d)
2755
2755
  pe.call(d, P) && !(k && // Safari 9 has enumerable `arguments.length` in strict mode.
2756
2756
  (P == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
@@ -2770,7 +2770,7 @@ $r.exports;
2770
2770
  return ut(d) ? f : wn(f, c(d));
2771
2771
  }
2772
2772
  function dt(d) {
2773
- return d == null ? d === void 0 ? H : N : Be && Be in Object(d) ? Zn(d) : Zt(d);
2773
+ return d == null ? d === void 0 ? H : N : Be && Be in Object(d) ? Zn(d) : Qt(d);
2774
2774
  }
2775
2775
  function Or(d) {
2776
2776
  return pt(d) && dt(d) == u;
@@ -2788,7 +2788,7 @@ $r.exports;
2788
2788
  k = !0, q = !1;
2789
2789
  }
2790
2790
  if (G && !q)
2791
- return T || (T = new Ee()), k || tr(d) ? Yt(d, o, c, f, O, T) : Vn(d, o, F, c, f, O, T);
2791
+ return T || (T = new Ee()), k || rr(d) ? Zt(d, o, c, f, O, T) : Vn(d, o, F, c, f, O, T);
2792
2792
  if (!(c & i)) {
2793
2793
  var se = q && pe.call(d, "__wrapped__"), ce = W && pe.call(o, "__wrapped__");
2794
2794
  if (se || ce) {
@@ -2798,8 +2798,8 @@ $r.exports;
2798
2798
  }
2799
2799
  return G ? (T || (T = new Ee()), Yn(d, o, c, f, O, T)) : !1;
2800
2800
  }
2801
- function Vt(d) {
2802
- if (!er(d) || ri(d))
2801
+ function Yt(d) {
2802
+ if (!tr(d) || ri(d))
2803
2803
  return !1;
2804
2804
  var o = Ze(d) ? On : M;
2805
2805
  return o.test(Te(d));
@@ -2815,7 +2815,7 @@ $r.exports;
2815
2815
  pe.call(d, c) && c != "constructor" && o.push(c);
2816
2816
  return o;
2817
2817
  }
2818
- function Yt(d, o, c, f, O, T) {
2818
+ function Zt(d, o, c, f, O, T) {
2819
2819
  var k = c & i, K = d.length, F = o.length;
2820
2820
  if (K != F && !(k && F > K))
2821
2821
  return !1;
@@ -2875,7 +2875,7 @@ $r.exports;
2875
2875
  if (P)
2876
2876
  return P == o;
2877
2877
  f |= a, k.set(d, o);
2878
- var q = Yt(K(d), K(o), f, O, T, k);
2878
+ var q = Zt(K(d), K(o), f, O, T, k);
2879
2879
  return k.delete(d), q;
2880
2880
  case ie:
2881
2881
  if (ke)
@@ -2922,8 +2922,8 @@ $r.exports;
2922
2922
  return ti(o) ? c[typeof o == "string" ? "string" : "hash"] : c.map;
2923
2923
  }
2924
2924
  function Ye(d, o) {
2925
- var c = $t(d, o);
2926
- return Vt(c) ? c : void 0;
2925
+ var c = jt(d, o);
2926
+ return Yt(c) ? c : void 0;
2927
2927
  }
2928
2928
  function Zn(d) {
2929
2929
  var o = pe.call(d, Be), c = d[Be];
@@ -2932,15 +2932,15 @@ $r.exports;
2932
2932
  var f = !0;
2933
2933
  } catch {
2934
2934
  }
2935
- var O = Wt.call(d);
2935
+ var O = zt.call(d);
2936
2936
  return f && (o ? d[Be] = c : delete d[Be]), O;
2937
2937
  }
2938
- var Qn = zt ? function(d) {
2939
- return d == null ? [] : (d = Object(d), yn(zt(d), function(o) {
2938
+ var Qn = Jt ? function(d) {
2939
+ return d == null ? [] : (d = Object(d), yn(Jt(d), function(o) {
2940
2940
  return Ir.call(d, o);
2941
2941
  }));
2942
2942
  } : oi, me = dt;
2943
- (Se && me(new Se(new ArrayBuffer(1))) != bt || at && me(new at()) != v || Jt && me(Jt.resolve()) != D || Ht && me(new Ht()) != ne || Xt && me(new Xt()) != ee) && (me = function(d) {
2943
+ (Se && me(new Se(new ArrayBuffer(1))) != bt || at && me(new at()) != v || Ht && me(Ht.resolve()) != D || Xt && me(new Xt()) != ne || Gt && me(new Gt()) != ee) && (me = function(d) {
2944
2944
  var o = dt(d), c = o == _ ? d.constructor : void 0, f = c ? Te(c) : "";
2945
2945
  if (f)
2946
2946
  switch (f) {
@@ -2965,19 +2965,19 @@ $r.exports;
2965
2965
  return o == "string" || o == "number" || o == "symbol" || o == "boolean" ? d !== "__proto__" : d === null;
2966
2966
  }
2967
2967
  function ri(d) {
2968
- return !!qt && qt in d;
2968
+ return !!Wt && Wt in d;
2969
2969
  }
2970
2970
  function kt(d) {
2971
2971
  var o = d && d.constructor, c = typeof o == "function" && o.prototype || Tt;
2972
2972
  return d === c;
2973
2973
  }
2974
- function Zt(d) {
2975
- return Wt.call(d);
2974
+ function Qt(d) {
2975
+ return zt.call(d);
2976
2976
  }
2977
2977
  function Te(d) {
2978
2978
  if (d != null) {
2979
2979
  try {
2980
- return jt.call(d);
2980
+ return qt.call(d);
2981
2981
  } catch {
2982
2982
  }
2983
2983
  try {
@@ -2995,7 +2995,7 @@ $r.exports;
2995
2995
  }()) ? Or : function(d) {
2996
2996
  return pt(d) && pe.call(d, "callee") && !Ir.call(d, "callee");
2997
2997
  }, ut = Array.isArray;
2998
- function Qt(d) {
2998
+ function er(d) {
2999
2999
  return d != null && Tr(d.length) && !Ze(d);
3000
3000
  }
3001
3001
  var Ft = ot || Rr;
@@ -3003,7 +3003,7 @@ $r.exports;
3003
3003
  return Cr(d, o);
3004
3004
  }
3005
3005
  function Ze(d) {
3006
- if (!er(d))
3006
+ if (!tr(d))
3007
3007
  return !1;
3008
3008
  var o = dt(d);
3009
3009
  return o == I || o == b || o == h || o == j;
@@ -3011,16 +3011,16 @@ $r.exports;
3011
3011
  function Tr(d) {
3012
3012
  return typeof d == "number" && d > -1 && d % 1 == 0 && d <= s;
3013
3013
  }
3014
- function er(d) {
3014
+ function tr(d) {
3015
3015
  var o = typeof d;
3016
3016
  return d != null && (o == "object" || o == "function");
3017
3017
  }
3018
3018
  function pt(d) {
3019
3019
  return d != null && typeof d == "object";
3020
3020
  }
3021
- var tr = gr ? bn(gr) : Xn;
3021
+ var rr = gr ? bn(gr) : Xn;
3022
3022
  function ii(d) {
3023
- return Qt(d) ? Jn(d) : Gn(d);
3023
+ return er(d) ? Jn(d) : Gn(d);
3024
3024
  }
3025
3025
  function oi() {
3026
3026
  return [];
@@ -3030,28 +3030,28 @@ $r.exports;
3030
3030
  }
3031
3031
  e.exports = Me;
3032
3032
  })($r, $r.exports);
3033
- var kd = $r.exports;
3034
- const Ed = /* @__PURE__ */ Ni(kd), yt = "other";
3033
+ var Ed = $r.exports;
3034
+ const Fd = /* @__PURE__ */ Ni(Ed), yt = "other";
3035
3035
  function tt(e) {
3036
3036
  return e.mapToName !== void 0;
3037
3037
  }
3038
- function Fd(e, t) {
3038
+ function Pd(e, t) {
3039
3039
  var r;
3040
3040
  return ((r = e == null ? void 0 : e.objects) == null ? void 0 : r.find((n) => n.objectName === t)) || null;
3041
3041
  }
3042
- function Pd(e) {
3042
+ function Dd(e) {
3043
3043
  var t;
3044
3044
  return ((t = e == null ? void 0 : e.requiredFields) == null ? void 0 : t.filter(
3045
3045
  (r) => !tt(r) && !!r.fieldName
3046
3046
  )) || null;
3047
3047
  }
3048
- function Dd(e) {
3048
+ function Kd(e) {
3049
3049
  var r;
3050
3050
  return ((r = e == null ? void 0 : e.requiredFields) == null ? void 0 : r.filter(
3051
3051
  (n) => tt(n) && !!n.mapToName
3052
3052
  )) || [];
3053
3053
  }
3054
- function Kd(e) {
3054
+ function Ld(e) {
3055
3055
  var t;
3056
3056
  return ((t = e == null ? void 0 : e.optionalFields) == null ? void 0 : t.filter(
3057
3057
  (r) => !tt(r) && !!r.fieldName
@@ -3061,7 +3061,7 @@ const ko = (e, t) => {
3061
3061
  var r, n, i;
3062
3062
  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];
3063
3063
  };
3064
- function Ld(e) {
3064
+ function Bd(e) {
3065
3065
  return tt(e) ? e.mapToName : e.fieldName;
3066
3066
  }
3067
3067
  const Eo = (e, t) => {
@@ -3084,7 +3084,7 @@ const Eo = (e, t) => {
3084
3084
  completed: e ? !!((r = e == null ? void 0 : e.content) != null && r.write) : !1
3085
3085
  };
3086
3086
  };
3087
- function Bd(e, t) {
3087
+ function Ud(e, t) {
3088
3088
  var a;
3089
3089
  const r = Eo(e, t), i = !!((a = t == null ? void 0 : t.content) != null && a.write) ? Fo(e) : void 0;
3090
3090
  return i && r.push(i), r;
@@ -3096,13 +3096,13 @@ function Po(e, t, r) {
3096
3096
  return r(Q.MAPPING, i), n != null && n.length && console.error("required fields not met", n.map((a) => a.mapToDisplayName)), { errorList: i };
3097
3097
  }
3098
3098
  function Ti(e, t) {
3099
- return Ed(e, t);
3099
+ return Fd(e, t);
3100
3100
  }
3101
- const Ud = (e, t, r) => {
3101
+ const Md = (e, t, r) => {
3102
3102
  var I, b, v, S, N, _;
3103
3103
  if (!e)
3104
3104
  return null;
3105
- const n = Fd(e, t), i = n && Pd(n), a = n && Kd(n), s = n && Dd(n), u = (n == null ? void 0 : n.allFields) || [], p = r == null ? void 0 : r.content, h = ((v = (b = (I = p == null ? void 0 : p.read) == null ? void 0 : I.objects) == null ? void 0 : b[t]) == null ? void 0 : v.selectedFields) || {}, m = ((_ = (N = (S = p == null ? void 0 : p.read) == null ? void 0 : S.objects) == null ? void 0 : N[t]) == null ? void 0 : _.selectedFieldMappings) || {}, w = { ...h }, y = { ...m };
3105
+ const n = Pd(e, t), i = n && Dd(n), a = n && Ld(n), s = n && Kd(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 = ((_ = (N = (S = p == null ? void 0 : p.read) == null ? void 0 : S.objects) == null ? void 0 : N[t]) == null ? void 0 : _.selectedFieldMappings) || {}, w = { ...h }, y = { ...m };
3106
3106
  return {
3107
3107
  allFields: u,
3108
3108
  // from hydrated revision
@@ -3124,7 +3124,7 @@ const Ud = (e, t, r) => {
3124
3124
  // from config
3125
3125
  }
3126
3126
  };
3127
- }, Md = (e, t) => {
3127
+ }, $d = (e, t) => {
3128
3128
  var s, u;
3129
3129
  if (!e)
3130
3130
  return null;
@@ -3146,8 +3146,8 @@ function Do(e, t, r) {
3146
3146
  var a, s;
3147
3147
  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;
3148
3148
  return {
3149
- read: Ud(n, t, r),
3150
- write: Md(i, r)
3149
+ read: Md(n, t, r),
3150
+ write: $d(i, r)
3151
3151
  };
3152
3152
  }
3153
3153
  const Ko = (e, t, r, n) => {
@@ -3157,8 +3157,8 @@ const Ko = (e, t, r, n) => {
3157
3157
  t
3158
3158
  );
3159
3159
  n(r, i);
3160
- }, $d = (e, t, r) => {
3161
- const n = Bd(t, e), i = {};
3160
+ }, jd = (e, t, r) => {
3161
+ const n = Ud(t, e), i = {};
3162
3162
  n.forEach(({ name: a, completed: s }) => {
3163
3163
  s && (i[a] = Do(
3164
3164
  e,
@@ -3168,7 +3168,7 @@ const Ko = (e, t, r, n) => {
3168
3168
  }), r(i);
3169
3169
  }, Lo = (e) => {
3170
3170
  const { requiredFields: t, selectedOptionalFields: r } = (e == null ? void 0 : e.read) || {}, n = /* @__PURE__ */ new Set();
3171
- return t == null || t.forEach((a) => n.add(Ld(a))), {
3171
+ return t == null || t.forEach((a) => n.add(Bd(a))), {
3172
3172
  ...Array.from(n).reduce((a, s) => ({
3173
3173
  ...a,
3174
3174
  [s]: !0
@@ -3221,13 +3221,13 @@ function Qr(e) {
3221
3221
  var t;
3222
3222
  return (t = e.content.proxy) == null ? void 0 : t.enabled;
3223
3223
  }
3224
- const jd = (e, t) => {
3224
+ const qd = (e, t) => {
3225
3225
  const r = e.content.read, n = r == null ? void 0 : r.objects;
3226
3226
  return n == null ? void 0 : n.find((i) => i.objectName === t);
3227
- }, qd = (e, t, r, n) => {
3227
+ }, Wd = (e, t, r, n) => {
3228
3228
  const i = Lo(e), a = Bo(
3229
3229
  e
3230
- ), s = jd(r, t);
3230
+ ), s = qd(r, t);
3231
3231
  if (!s)
3232
3232
  return console.error(`Error when getting object from hydratedRevision for objectName: ${t}`), null;
3233
3233
  const u = {
@@ -3250,8 +3250,8 @@ const jd = (e, t) => {
3250
3250
  }
3251
3251
  };
3252
3252
  return Qr(r) && (u.content.proxy = { enabled: !0 }), u;
3253
- }, Wd = (e, t, r, n, i, a, s, u, p, h, m) => {
3254
- const w = qd(
3253
+ }, zd = (e, t, r, n, i, a, s, u, p, h, m) => {
3254
+ const w = Wd(
3255
3255
  p,
3256
3256
  a,
3257
3257
  u,
@@ -3276,11 +3276,11 @@ const jd = (e, t) => {
3276
3276
  objectName: p
3277
3277
  });
3278
3278
  }), t;
3279
- }, zd = (e) => {
3279
+ }, Jd = (e) => {
3280
3280
  const t = e.content.write;
3281
3281
  return t == null ? void 0 : t.objects;
3282
- }, Jd = (e, t, r) => {
3283
- if (!zd(t))
3282
+ }, Hd = (e, t, r) => {
3283
+ if (!Jd(t))
3284
3284
  return console.error("Error when getting write objects from hydratedRevision"), null;
3285
3285
  const i = Mo(e), a = {
3286
3286
  revisionId: t.id,
@@ -3298,8 +3298,8 @@ const jd = (e, t) => {
3298
3298
  }
3299
3299
  };
3300
3300
  return Qr(t) && (a.content.proxy = { enabled: !0 }), a;
3301
- }, Hd = (e, t, r, n, i, a, s, u, p, h) => {
3302
- const m = Jd(
3301
+ }, Xd = (e, t, r, n, i, a, s, u, p, h) => {
3302
+ const m = Hd(
3303
3303
  u,
3304
3304
  s,
3305
3305
  n
@@ -3315,7 +3315,7 @@ const jd = (e, t) => {
3315
3315
  onInstallSuccess: h
3316
3316
  }) : (console.error("Error when generating createConfig from configureState"), Promise.resolve(null));
3317
3317
  };
3318
- function Xd() {
3318
+ function Gd() {
3319
3319
  return /* @__PURE__ */ A("svg", { width: "18", height: "18", viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
3320
3320
  /* @__PURE__ */ l("path", { d: "M2.25 4.5H3.75H15.75", stroke: "#991B1B", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
3321
3321
  /* @__PURE__ */ l(
@@ -3332,7 +3332,7 @@ function Xd() {
3332
3332
  /* @__PURE__ */ l("path", { d: "M10.5 8.25V12.75", stroke: "#991B1B", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" })
3333
3333
  ] });
3334
3334
  }
3335
- const $o = "uninstall-installation", Gd = Si(
3335
+ const $o = "uninstall-installation", Vd = Si(
3336
3336
  ({ text: e = "Uninstall" }, t) => {
3337
3337
  const r = ao({ ref: t }), n = so("Tabs", r);
3338
3338
  return /* @__PURE__ */ A(
@@ -3352,7 +3352,7 @@ const $o = "uninstall-installation", Gd = Si(
3352
3352
  my: 2,
3353
3353
  mx: 4,
3354
3354
  children: [
3355
- Xd(),
3355
+ Gd(),
3356
3356
  /* @__PURE__ */ l(J, { textAlign: "left", children: /* @__PURE__ */ l(ve, { color: "red.800", children: e }) })
3357
3357
  ]
3358
3358
  }
@@ -3371,12 +3371,12 @@ const $o = "uninstall-installation", Gd = Si(
3371
3371
  throw new Error("useHydratedRevision must be used within a HydratedRevisionProvider");
3372
3372
  return e;
3373
3373
  };
3374
- function Vd({
3374
+ function Yd({
3375
3375
  projectId: e,
3376
3376
  children: t
3377
3377
  }) {
3378
3378
  var D;
3379
- const { selectedConnection: r } = Lt(), { integrationId: n, integrationObj: i } = Ke(), [a, s] = x(null), [u, p] = x(!0), { isError: h, removeError: m, setError: w } = nt(), y = re(), I = r == null ? void 0 : r.id, b = (D = i == null ? void 0 : i.latestRevision) == null ? void 0 : D.id, v = (i == null ? void 0 : i.name) || n;
3379
+ const { selectedConnection: r } = Bt(), { integrationId: n, integrationObj: i } = Ke(), [a, s] = x(null), [u, p] = x(!0), { isError: h, removeError: m, setError: w } = nt(), y = re(), I = r == null ? void 0 : r.id, b = (D = i == null ? void 0 : i.latestRevision) == null ? void 0 : D.id, v = (i == null ? void 0 : i.name) || n;
3380
3380
  Y(() => {
3381
3381
  e && n && b && I && y && X().revisionApi.getHydratedRevision({
3382
3382
  projectIdOrName: e,
@@ -3408,7 +3408,38 @@ function Vd({
3408
3408
  }), [a, u]), _ = `Error retrieving integration details for '${(i == null ? void 0 : i.name) || n || "unknown integration"}. This is sometimes caused by insufficient permissions with your credentials'`;
3409
3409
  return /* @__PURE__ */ l(jo.Provider, { value: S, children: h(Q.HYDRATED_REVISION, v) ? /* @__PURE__ */ l(We, { message: _ }) : t });
3410
3410
  }
3411
- var qo = Symbol.for("immer-nothing"), $i = Symbol.for("immer-draftable"), fe = Symbol.for("immer-state"), Yd = process.env.NODE_ENV !== "production" ? [
3411
+ function qo() {
3412
+ return /* @__PURE__ */ A(
3413
+ "footer",
3414
+ {
3415
+ style: {
3416
+ backgroundColor: "#EFEFEF",
3417
+ padding: "1em",
3418
+ fontSize: "0.8em",
3419
+ color: "gray",
3420
+ display: "flex",
3421
+ justifyContent: "center",
3422
+ alignItems: "center",
3423
+ borderRadius: "0 0 4px 4px",
3424
+ gap: "0.4em"
3425
+ },
3426
+ children: [
3427
+ /* @__PURE__ */ l("p", { children: "Secured by" }),
3428
+ /* @__PURE__ */ l(
3429
+ "a",
3430
+ {
3431
+ href: "https://www.withampersand.com/",
3432
+ target: "_blank",
3433
+ "aria-label": "Go to Ampersand",
3434
+ rel: "noreferrer noopener",
3435
+ children: /* @__PURE__ */ l("img", { style: { height: ".8em" }, src: "https://ampersand-website.vercel.app/logo-black.svg", alt: "Ampersand" })
3436
+ }
3437
+ )
3438
+ ]
3439
+ }
3440
+ );
3441
+ }
3442
+ var Wo = Symbol.for("immer-nothing"), $i = Symbol.for("immer-draftable"), fe = Symbol.for("immer-state"), Zd = process.env.NODE_ENV !== "production" ? [
3412
3443
  // All error codes, starting by 0:
3413
3444
  function(e) {
3414
3445
  return `The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`;
@@ -3441,7 +3472,7 @@ var qo = Symbol.for("immer-nothing"), $i = Symbol.for("immer-draftable"), fe = S
3441
3472
  ] : [];
3442
3473
  function ue(e, ...t) {
3443
3474
  if (process.env.NODE_ENV !== "production") {
3444
- const r = Yd[e], n = typeof r == "function" ? r.apply(null, t) : r;
3475
+ const r = Zd[e], n = typeof r == "function" ? r.apply(null, t) : r;
3445
3476
  throw new Error(`[Immer] ${n}`);
3446
3477
  }
3447
3478
  throw new Error(
@@ -3454,17 +3485,17 @@ function Dt(e) {
3454
3485
  }
3455
3486
  function wt(e) {
3456
3487
  var t;
3457
- return e ? Wo(e) || Array.isArray(e) || !!e[$i] || !!((t = e.constructor) != null && t[$i]) || tn(e) || rn(e) : !1;
3488
+ return e ? zo(e) || Array.isArray(e) || !!e[$i] || !!((t = e.constructor) != null && t[$i]) || tn(e) || rn(e) : !1;
3458
3489
  }
3459
- var Zd = Object.prototype.constructor.toString();
3460
- function Wo(e) {
3490
+ var Qd = Object.prototype.constructor.toString();
3491
+ function zo(e) {
3461
3492
  if (!e || typeof e != "object")
3462
3493
  return !1;
3463
3494
  const t = Pt(e);
3464
3495
  if (t === null)
3465
3496
  return !0;
3466
3497
  const r = Object.hasOwnProperty.call(t, "constructor") && t.constructor;
3467
- return r === Object ? !0 : typeof r == "function" && Function.toString.call(r) === Zd;
3498
+ return r === Object ? !0 : typeof r == "function" && Function.toString.call(r) === Qd;
3468
3499
  }
3469
3500
  function jr(e, t) {
3470
3501
  en(e) === 0 ? Reflect.ownKeys(e).forEach((r) => {
@@ -3478,11 +3509,11 @@ function en(e) {
3478
3509
  function ui(e, t) {
3479
3510
  return en(e) === 2 ? e.has(t) : Object.prototype.hasOwnProperty.call(e, t);
3480
3511
  }
3481
- function zo(e, t, r) {
3512
+ function Jo(e, t, r) {
3482
3513
  const n = en(e);
3483
3514
  n === 2 ? e.set(t, r) : n === 3 ? e.add(r) : e[t] = r;
3484
3515
  }
3485
- function Qd(e, t) {
3516
+ function el(e, t) {
3486
3517
  return e === t ? e !== 0 || 1 / e === 1 / t : e !== e && t !== t;
3487
3518
  }
3488
3519
  function tn(e) {
@@ -3501,7 +3532,7 @@ function pi(e, t) {
3501
3532
  return new Set(e);
3502
3533
  if (Array.isArray(e))
3503
3534
  return Array.prototype.slice.call(e);
3504
- const r = Wo(e);
3535
+ const r = zo(e);
3505
3536
  if (t === !0 || t === "class_only" && !r) {
3506
3537
  const n = Object.getOwnPropertyDescriptors(e);
3507
3538
  delete n[fe];
@@ -3526,24 +3557,24 @@ function pi(e, t) {
3526
3557
  }
3527
3558
  }
3528
3559
  function _i(e, t = !1) {
3529
- return nn(e) || Dt(e) || !wt(e) || (en(e) > 1 && (e.set = e.add = e.clear = e.delete = el), Object.freeze(e), t && Object.entries(e).forEach(([r, n]) => _i(n, !0))), e;
3560
+ return nn(e) || Dt(e) || !wt(e) || (en(e) > 1 && (e.set = e.add = e.clear = e.delete = tl), Object.freeze(e), t && Object.entries(e).forEach(([r, n]) => _i(n, !0))), e;
3530
3561
  }
3531
- function el() {
3562
+ function tl() {
3532
3563
  ue(2);
3533
3564
  }
3534
3565
  function nn(e) {
3535
3566
  return Object.isFrozen(e);
3536
3567
  }
3537
- var tl = {};
3568
+ var rl = {};
3538
3569
  function It(e) {
3539
- const t = tl[e];
3570
+ const t = rl[e];
3540
3571
  return t || ue(0, e), t;
3541
3572
  }
3542
- var ar;
3543
- function Jo() {
3544
- return ar;
3573
+ var sr;
3574
+ function Ho() {
3575
+ return sr;
3545
3576
  }
3546
- function rl(e, t) {
3577
+ function nl(e, t) {
3547
3578
  return {
3548
3579
  drafts_: [],
3549
3580
  parent_: e,
@@ -3558,15 +3589,15 @@ function ji(e, t) {
3558
3589
  t && (It("Patches"), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
3559
3590
  }
3560
3591
  function fi(e) {
3561
- hi(e), e.drafts_.forEach(nl), e.drafts_ = null;
3592
+ hi(e), e.drafts_.forEach(il), e.drafts_ = null;
3562
3593
  }
3563
3594
  function hi(e) {
3564
- e === ar && (ar = e.parent_);
3595
+ e === sr && (sr = e.parent_);
3565
3596
  }
3566
3597
  function qi(e) {
3567
- return ar = rl(ar, e);
3598
+ return sr = nl(sr, e);
3568
3599
  }
3569
- function nl(e) {
3600
+ function il(e) {
3570
3601
  const t = e[fe];
3571
3602
  t.type_ === 0 || t.type_ === 1 ? t.revoke_() : t.revoked_ = !0;
3572
3603
  }
@@ -3578,7 +3609,7 @@ function Wi(e, t) {
3578
3609
  e,
3579
3610
  t.patches_,
3580
3611
  t.inversePatches_
3581
- )) : e = qr(t, r, []), fi(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e !== qo ? e : void 0;
3612
+ )) : e = qr(t, r, []), fi(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e !== Wo ? e : void 0;
3582
3613
  }
3583
3614
  function qr(e, t, r) {
3584
3615
  if (nn(t))
@@ -3613,7 +3644,7 @@ function zi(e, t, r, n, i, a, s) {
3613
3644
  if (process.env.NODE_ENV !== "production" && i === r && ue(5), Dt(i)) {
3614
3645
  const u = a && t && t.type_ !== 3 && // Set objects are atomic since they have no keys.
3615
3646
  !ui(t.assigned_, n) ? a.concat(n) : void 0, p = qr(e, i, u);
3616
- if (zo(r, n, p), Dt(p))
3647
+ if (Jo(r, n, p), Dt(p))
3617
3648
  e.canAutoFreeze_ = !1;
3618
3649
  else
3619
3650
  return;
@@ -3627,11 +3658,11 @@ function zi(e, t, r, n, i, a, s) {
3627
3658
  function Wr(e, t, r = !1) {
3628
3659
  !e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && _i(t, r);
3629
3660
  }
3630
- function il(e, t) {
3661
+ function ol(e, t) {
3631
3662
  const r = Array.isArray(e), n = {
3632
3663
  type_: r ? 1 : 0,
3633
3664
  // Track which produce call this is associated with.
3634
- scope_: t ? t.scope_ : Jo(),
3665
+ scope_: t ? t.scope_ : Ho(),
3635
3666
  // True for both shallow and deep changes.
3636
3667
  modified_: !1,
3637
3668
  // Used during finalization.
@@ -3652,7 +3683,7 @@ function il(e, t) {
3652
3683
  isManual_: !1
3653
3684
  };
3654
3685
  let i = n, a = Ai;
3655
- r && (i = [n], a = sr);
3686
+ r && (i = [n], a = cr);
3656
3687
  const { revoke: s, proxy: u } = Proxy.revocable(i, a);
3657
3688
  return n.draft_ = u, n.revoke_ = s, u;
3658
3689
  }
@@ -3662,7 +3693,7 @@ var Ai = {
3662
3693
  return e;
3663
3694
  const r = ht(e);
3664
3695
  if (!ui(r, t))
3665
- return ol(e, r, t);
3696
+ return al(e, r, t);
3666
3697
  const n = r[t];
3667
3698
  return e.finalized_ || !wt(n) ? n : n === si(e.base_, t) ? (ci(e), e.copy_[t] = mi(n, e)) : n;
3668
3699
  },
@@ -3673,14 +3704,14 @@ var Ai = {
3673
3704
  return Reflect.ownKeys(ht(e));
3674
3705
  },
3675
3706
  set(e, t, r) {
3676
- const n = Ho(ht(e), t);
3707
+ const n = Xo(ht(e), t);
3677
3708
  if (n != null && n.set)
3678
3709
  return n.set.call(e.draft_, r), !0;
3679
3710
  if (!e.modified_) {
3680
3711
  const i = si(ht(e), t), a = i == null ? void 0 : i[fe];
3681
3712
  if (a && a.base_ === r)
3682
3713
  return e.copy_[t] = r, e.assigned_[t] = !1, !0;
3683
- if (Qd(r, i) && (r !== void 0 || ui(e.base_, t)))
3714
+ if (el(r, i) && (r !== void 0 || ui(e.base_, t)))
3684
3715
  return !0;
3685
3716
  ci(e), gi(e);
3686
3717
  }
@@ -3711,32 +3742,32 @@ var Ai = {
3711
3742
  setPrototypeOf() {
3712
3743
  ue(12);
3713
3744
  }
3714
- }, sr = {};
3745
+ }, cr = {};
3715
3746
  jr(Ai, (e, t) => {
3716
- sr[e] = function() {
3747
+ cr[e] = function() {
3717
3748
  return arguments[0] = arguments[0][0], t.apply(this, arguments);
3718
3749
  };
3719
3750
  });
3720
- sr.deleteProperty = function(e, t) {
3721
- return process.env.NODE_ENV !== "production" && isNaN(parseInt(t)) && ue(13), sr.set.call(this, e, t, void 0);
3751
+ cr.deleteProperty = function(e, t) {
3752
+ return process.env.NODE_ENV !== "production" && isNaN(parseInt(t)) && ue(13), cr.set.call(this, e, t, void 0);
3722
3753
  };
3723
- sr.set = function(e, t, r) {
3754
+ cr.set = function(e, t, r) {
3724
3755
  return process.env.NODE_ENV !== "production" && t !== "length" && isNaN(parseInt(t)) && ue(14), Ai.set.call(this, e[0], t, r, e[0]);
3725
3756
  };
3726
3757
  function si(e, t) {
3727
3758
  const r = e[fe];
3728
3759
  return (r ? ht(r) : e)[t];
3729
3760
  }
3730
- function ol(e, t, r) {
3761
+ function al(e, t, r) {
3731
3762
  var i;
3732
- const n = Ho(t, r);
3763
+ const n = Xo(t, r);
3733
3764
  return n ? "value" in n ? n.value : (
3734
3765
  // This is a very special case, if the prop is a getter defined by the
3735
3766
  // prototype, we should invoke it with the draft as context!
3736
3767
  (i = n.get) == null ? void 0 : i.call(e.draft_)
3737
3768
  ) : void 0;
3738
3769
  }
3739
- function Ho(e, t) {
3770
+ function Xo(e, t) {
3740
3771
  if (!(t in e))
3741
3772
  return;
3742
3773
  let r = Pt(e);
@@ -3756,7 +3787,7 @@ function ci(e) {
3756
3787
  e.scope_.immer_.useStrictShallowCopy_
3757
3788
  ));
3758
3789
  }
3759
- var al = class {
3790
+ var sl = class {
3760
3791
  constructor(e) {
3761
3792
  this.autoFreeze_ = !0, this.useStrictShallowCopy_ = !1, this.produce = (t, r, n) => {
3762
3793
  if (typeof t == "function" && typeof r != "function") {
@@ -3779,7 +3810,7 @@ var al = class {
3779
3810
  }
3780
3811
  return ji(a, n), Wi(i, a);
3781
3812
  } else if (!t || typeof t != "object") {
3782
- if (i = r(t), i === void 0 && (i = t), i === qo && (i = void 0), this.autoFreeze_ && _i(i, !0), n) {
3813
+ if (i = r(t), i === void 0 && (i = t), i === Wo && (i = void 0), this.autoFreeze_ && _i(i, !0), n) {
3783
3814
  const a = [], s = [];
3784
3815
  It("Patches").generateReplacementPatches_(t, i, a, s), n(a, s);
3785
3816
  }
@@ -3796,7 +3827,7 @@ var al = class {
3796
3827
  }, typeof (e == null ? void 0 : e.autoFreeze) == "boolean" && this.setAutoFreeze(e.autoFreeze), typeof (e == null ? void 0 : e.useStrictShallowCopy) == "boolean" && this.setUseStrictShallowCopy(e.useStrictShallowCopy);
3797
3828
  }
3798
3829
  createDraft(e) {
3799
- wt(e) || ue(8), Dt(e) && (e = sl(e));
3830
+ wt(e) || ue(8), Dt(e) && (e = cl(e));
3800
3831
  const t = qi(this), r = mi(e, void 0);
3801
3832
  return r[fe].isManual_ = !0, hi(t), r;
3802
3833
  }
@@ -3840,13 +3871,13 @@ var al = class {
3840
3871
  }
3841
3872
  };
3842
3873
  function mi(e, t) {
3843
- const r = tn(e) ? It("MapSet").proxyMap_(e, t) : rn(e) ? It("MapSet").proxySet_(e, t) : il(e, t);
3844
- return (t ? t.scope_ : Jo()).drafts_.push(r), r;
3874
+ const r = tn(e) ? It("MapSet").proxyMap_(e, t) : rn(e) ? It("MapSet").proxySet_(e, t) : ol(e, t);
3875
+ return (t ? t.scope_ : Ho()).drafts_.push(r), r;
3845
3876
  }
3846
- function sl(e) {
3847
- return Dt(e) || ue(10, e), Xo(e);
3877
+ function cl(e) {
3878
+ return Dt(e) || ue(10, e), Go(e);
3848
3879
  }
3849
- function Xo(e) {
3880
+ function Go(e) {
3850
3881
  if (!wt(e) || nn(e))
3851
3882
  return e;
3852
3883
  const t = e[fe];
@@ -3858,10 +3889,10 @@ function Xo(e) {
3858
3889
  } else
3859
3890
  r = pi(e, !0);
3860
3891
  return jr(r, (n, i) => {
3861
- zo(r, n, Xo(i));
3892
+ Jo(r, n, Go(i));
3862
3893
  }), t && (t.finalized_ = !1), r;
3863
3894
  }
3864
- var he = new al(), nr = he.produce;
3895
+ var he = new sl(), ir = he.produce;
3865
3896
  he.produceWithPatches.bind(
3866
3897
  he
3867
3898
  );
@@ -3870,43 +3901,43 @@ he.setUseStrictShallowCopy.bind(he);
3870
3901
  he.applyPatches.bind(he);
3871
3902
  he.createDraft.bind(he);
3872
3903
  he.finishDraft.bind(he);
3873
- const Go = _e(void 0), cl = {};
3904
+ const Vo = _e(void 0), dl = {};
3874
3905
  function xi() {
3875
- const e = be(Go);
3906
+ const e = be(Vo);
3876
3907
  if (!e)
3877
3908
  throw new Error("useObjectsConfigureState must be used within a ConfigurationProvider");
3878
3909
  return e;
3879
3910
  }
3880
- function dl({ children: e }) {
3911
+ function ll({ children: e }) {
3881
3912
  const { installation: t } = Ke(), { hydratedRevision: r, loading: n } = dr(), [
3882
3913
  i,
3883
3914
  a
3884
- ] = x(cl), s = t == null ? void 0 : t.config;
3915
+ ] = x(dl), s = t == null ? void 0 : t.config;
3885
3916
  Y(() => {
3886
- r != null && r.content && !n && s && !(Object.entries(i).length > 0) && $d(
3917
+ r != null && r.content && !n && s && !(Object.entries(i).length > 0) && jd(
3887
3918
  r,
3888
3919
  s,
3889
3920
  a
3890
3921
  );
3891
3922
  }, [r, n, s, i]);
3892
3923
  const u = Z((I, b) => {
3893
- a((v) => nr(v, (S) => {
3894
- S[I] = nr(S[I], b);
3924
+ a((v) => ir(v, (S) => {
3925
+ S[I] = ir(S[I], b);
3895
3926
  }));
3896
3927
  }, [a]), p = Z((I, b) => {
3897
- a((v) => nr(v, (S) => {
3928
+ a((v) => ir(v, (S) => {
3898
3929
  S[I] = b;
3899
3930
  }));
3900
3931
  }, [a]), h = Z(() => {
3901
3932
  a(
3902
- nr((I) => {
3933
+ ir((I) => {
3903
3934
  const b = I.other.write;
3904
3935
  b && (b.isWriteModified = !1);
3905
3936
  })
3906
3937
  );
3907
3938
  }, [a]), m = Z((I) => {
3908
3939
  a(
3909
- nr((b) => {
3940
+ ir((b) => {
3910
3941
  var S;
3911
3942
  const v = (S = b[I]) == null ? void 0 : S.read;
3912
3943
  v && (v.isOptionalFieldsModified = !1, v.isRequiredMapFieldsModified = !1);
@@ -3929,13 +3960,13 @@ function dl({ children: e }) {
3929
3960
  u
3930
3961
  ]
3931
3962
  );
3932
- return /* @__PURE__ */ l(Go.Provider, { value: y, children: e });
3963
+ return /* @__PURE__ */ l(Vo.Provider, { value: y, children: e });
3933
3964
  }
3934
- const ll = /* @__PURE__ */ A("svg", { xmlns: "http://www.w3.org/2000/svg", width: "18", height: "18", viewBox: "0 0 18 18", fill: "none", children: [
3965
+ const ul = /* @__PURE__ */ A("svg", { xmlns: "http://www.w3.org/2000/svg", width: "18", height: "18", viewBox: "0 0 18 18", fill: "none", children: [
3935
3966
  /* @__PURE__ */ l("circle", { cx: "9", cy: "9", r: "9", fill: "#BBF7D0" }),
3936
3967
  /* @__PURE__ */ l("path", { d: "M13 7L7.5 12L5 9.72727", stroke: "#16A34A", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" })
3937
3968
  ] });
3938
- function ul(e, t) {
3969
+ function pl(e, t) {
3939
3970
  return t ? Br.createElement(
3940
3971
  "svg",
3941
3972
  {
@@ -3951,9 +3982,9 @@ function ul(e, t) {
3951
3982
  r: "5",
3952
3983
  fill: "#FBD38D"
3953
3984
  })
3954
- ) : e ? ll : /* @__PURE__ */ l("svg", { xmlns: "http://www.w3.org/2000/svg", width: "18", height: "18", viewBox: "0 0 18 18", fill: "none", children: /* @__PURE__ */ l("circle", { cx: "9", cy: "9", r: "5", fill: "#BFDBFE" }) });
3985
+ ) : e ? ul : /* @__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" }) });
3955
3986
  }
3956
- const Vo = Si(
3987
+ const Yo = Si(
3957
3988
  ({
3958
3989
  objectName: e,
3959
3990
  completed: t,
@@ -3971,7 +4002,7 @@ const Vo = Si(
3971
4002
  gap: 2,
3972
4003
  mr: "3",
3973
4004
  children: [
3974
- ul(t, r),
4005
+ pl(t, r),
3975
4006
  /* @__PURE__ */ A(J, { textAlign: "left", children: [
3976
4007
  /* @__PURE__ */ l(ve, { children: n || e }),
3977
4008
  r && /* @__PURE__ */ l(ve, { fontSize: 10, fontStyle: "italic", children: "pending" })
@@ -3983,11 +4014,11 @@ const Vo = Si(
3983
4014
  ] });
3984
4015
  }
3985
4016
  );
3986
- function pl({ pending: e, completed: t, displayName: r }) {
4017
+ function fl({ pending: e, completed: t, displayName: r }) {
3987
4018
  return /* @__PURE__ */ A(Kt, { children: [
3988
4019
  /* @__PURE__ */ l(Oi, { marginY: 3 }),
3989
4020
  /* @__PURE__ */ l(
3990
- Vo,
4021
+ Yo,
3991
4022
  {
3992
4023
  objectName: yt,
3993
4024
  completed: t,
@@ -3998,94 +4029,96 @@ function pl({ pending: e, completed: t, displayName: r }) {
3998
4029
  )
3999
4030
  ] });
4000
4031
  }
4001
- const Yo = _e(null);
4002
- function Zo() {
4003
- const e = be(Yo);
4032
+ const Zo = _e(null);
4033
+ function Qo() {
4034
+ const e = be(Zo);
4004
4035
  if (e === null)
4005
4036
  throw new Error(
4006
4037
  "useSelectedNavObjectName must be used within a SelectedNavObjectNameProvider"
4007
4038
  );
4008
4039
  return { selectedObjectName: e };
4009
4040
  }
4010
- function fl(e, t) {
4041
+ function hl(e, t) {
4011
4042
  return e != null && e[t] ? e[t] : { name: $o, completed: !1 };
4012
4043
  }
4013
- function hl({
4044
+ function gl({
4014
4045
  children: e
4015
4046
  }) {
4016
4047
  var S, N, _;
4017
4048
  const { project: t } = te(), { installation: r, provider: n } = Ke(), { hydratedRevision: i } = dr(), { objectConfigurationsState: a } = xi(), [s, u] = x(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 || []];
4018
4049
  I && y && b.push(I);
4019
- const v = fl(b, s);
4020
- return /* @__PURE__ */ l(Yo.Provider, { value: v == null ? void 0 : v.name, children: /* @__PURE__ */ A(
4021
- J,
4022
- {
4023
- p: 8,
4024
- maxWidth: "55rem",
4025
- borderRadius: 4,
4026
- margin: "auto",
4027
- display: "flex",
4028
- gap: "6",
4029
- minHeight: "100%",
4030
- fontSize: "md",
4031
- backgroundColor: "#FCFCFC",
4032
- border: "1px solid #EFEFEF",
4033
- boxShadow: "0px 4px 8px rgba(0, 0, 0, 0.05)",
4034
- children: [
4035
- /* @__PURE__ */ A(J, { width: "20rem", children: [
4036
- /* @__PURE__ */ A(ve, { children: [
4037
- vt(n),
4038
- " integration"
4039
- ] }),
4040
- /* @__PURE__ */ l(ve, { marginBottom: "20px", fontSize: "1.125rem", fontWeight: "500", children: p }),
4041
- w && /* @__PURE__ */ A(
4042
- va,
4043
- {
4044
- index: s,
4045
- onChange: u,
4046
- orientation: "horizontal",
4047
- children: [
4048
- m.map((D) => {
4049
- var j, E, ne, V;
4050
- return /* @__PURE__ */ l(
4051
- Vo,
4052
- {
4053
- objectName: D.name,
4054
- completed: D.completed,
4055
- pending: ((E = (j = a[D.name]) == null ? void 0 : j.read) == null ? void 0 : E.isOptionalFieldsModified) || ((V = (ne = a[D.name]) == null ? void 0 : ne.read) == null ? void 0 : V.isRequiredMapFieldsModified)
4056
- },
4057
- D.name
4058
- );
4059
- }),
4060
- y && I && /* @__PURE__ */ l(
4061
- pl,
4062
- {
4063
- completed: I.completed,
4064
- pending: (_ = (N = a == null ? void 0 : a.other) == null ? void 0 : N.write) == null ? void 0 : _.isWriteModified,
4065
- displayName: m != null && m.length ? "other" : "write"
4066
- }
4067
- ),
4068
- r && /* @__PURE__ */ A(Kt, { children: [
4069
- /* @__PURE__ */ l(Oi, { marginTop: 10, marginBottom: 3 }),
4070
- /* @__PURE__ */ l(
4071
- Gd,
4050
+ const v = hl(b, s);
4051
+ return /* @__PURE__ */ l(Zo.Provider, { value: v == null ? void 0 : v.name, children: /* @__PURE__ */ A(Lt, { maxWidth: "55rem", children: [
4052
+ /* @__PURE__ */ A(
4053
+ J,
4054
+ {
4055
+ p: 8,
4056
+ borderRadius: 4,
4057
+ margin: "auto",
4058
+ display: "flex",
4059
+ gap: "6",
4060
+ minHeight: "100%",
4061
+ fontSize: "md",
4062
+ backgroundColor: "#FCFCFC",
4063
+ border: "1px solid #EFEFEF",
4064
+ boxShadow: "0px 4px 8px rgba(0, 0, 0, 0.05)",
4065
+ children: [
4066
+ /* @__PURE__ */ A(J, { width: "20rem", children: [
4067
+ /* @__PURE__ */ A(ve, { children: [
4068
+ vt(n),
4069
+ " integration"
4070
+ ] }),
4071
+ /* @__PURE__ */ l(ve, { marginBottom: "20px", fontSize: "1.125rem", fontWeight: "500", children: p }),
4072
+ w && /* @__PURE__ */ A(
4073
+ ba,
4074
+ {
4075
+ index: s,
4076
+ onChange: u,
4077
+ orientation: "horizontal",
4078
+ children: [
4079
+ m.map((D) => {
4080
+ var j, E, ne, V;
4081
+ return /* @__PURE__ */ l(
4082
+ Yo,
4083
+ {
4084
+ objectName: D.name,
4085
+ completed: D.completed,
4086
+ pending: ((E = (j = a[D.name]) == null ? void 0 : j.read) == null ? void 0 : E.isOptionalFieldsModified) || ((V = (ne = a[D.name]) == null ? void 0 : ne.read) == null ? void 0 : V.isRequiredMapFieldsModified)
4087
+ },
4088
+ D.name
4089
+ );
4090
+ }),
4091
+ y && I && /* @__PURE__ */ l(
4092
+ fl,
4072
4093
  {
4073
- text: "Uninstall"
4074
- },
4075
- "uninstall-installation"
4076
- )
4077
- ] })
4078
- ]
4079
- }
4080
- )
4081
- ] }),
4082
- e
4083
- ]
4084
- }
4085
- ) });
4094
+ completed: I.completed,
4095
+ pending: (_ = (N = a == null ? void 0 : a.other) == null ? void 0 : N.write) == null ? void 0 : _.isWriteModified,
4096
+ displayName: m != null && m.length ? "other" : "write"
4097
+ }
4098
+ ),
4099
+ r && /* @__PURE__ */ A(Kt, { children: [
4100
+ /* @__PURE__ */ l(Oi, { marginTop: 10, marginBottom: 3 }),
4101
+ /* @__PURE__ */ l(
4102
+ Vd,
4103
+ {
4104
+ text: "Uninstall"
4105
+ },
4106
+ "uninstall-installation"
4107
+ )
4108
+ ] })
4109
+ ]
4110
+ }
4111
+ )
4112
+ ] }),
4113
+ e
4114
+ ]
4115
+ }
4116
+ ),
4117
+ /* @__PURE__ */ l(qo, {})
4118
+ ] }) });
4086
4119
  }
4087
- const Bt = () => {
4088
- const { appName: e } = te(), { objectConfigurationsState: t, setConfigureState: r } = xi(), { selectedObjectName: n } = Zo(), i = Uo(n || "", t);
4120
+ const Ut = () => {
4121
+ const { appName: e } = te(), { objectConfigurationsState: t, setConfigureState: r } = xi(), { selectedObjectName: n } = Qo(), i = Uo(n || "", t);
4089
4122
  return {
4090
4123
  appName: e,
4091
4124
  configureState: i,
@@ -4093,7 +4126,7 @@ const Bt = () => {
4093
4126
  selectedObjectName: n
4094
4127
  };
4095
4128
  };
4096
- function gl(e, t, r) {
4129
+ function ml(e, t, r) {
4097
4130
  var i;
4098
4131
  const n = ((i = e == null ? void 0 : e.read) == null ? void 0 : i.selectedFieldMappings) || {};
4099
4132
  if (n[t] = r, e != null && e.read) {
@@ -4101,17 +4134,17 @@ function gl(e, t, r) {
4101
4134
  e.read.isRequiredMapFieldsModified = u;
4102
4135
  }
4103
4136
  }
4104
- function Qo(e, t, r, n) {
4137
+ function ea(e, t, r, n) {
4105
4138
  t(
4106
4139
  e,
4107
- (i) => gl(i, r, n)
4140
+ (i) => ml(i, r, n)
4108
4141
  );
4109
4142
  }
4110
- function ml({ field: e, onSelectChange: t, allFields: r }) {
4143
+ function yl({ field: e, onSelectChange: t, allFields: r }) {
4111
4144
  var w;
4112
- const { configureState: n, selectedObjectName: i, setConfigureState: a } = Bt(), [s, u] = x(!0), p = (w = n == null ? void 0 : n.read) == null ? void 0 : w.selectedFieldMappings, h = p == null ? void 0 : p[e.mapToName];
4145
+ const { configureState: n, selectedObjectName: i, setConfigureState: a } = Ut(), [s, u] = x(!0), p = (w = n == null ? void 0 : n.read) == null ? void 0 : w.selectedFieldMappings, h = p == null ? void 0 : p[e.mapToName];
4113
4146
  Y(() => {
4114
- e._default && !h && i && n && Qo(i, a, e.mapToName, e._default), u(!1);
4147
+ e._default && !h && i && n && ea(i, a, e.mapToName, e._default), u(!1);
4115
4148
  }, [e, a, i, h, n]);
4116
4149
  const m = Ie(() => r == null ? void 0 : r.map(
4117
4150
  (y) => /* @__PURE__ */ l("option", { value: y.fieldName, children: y.displayName }, y.fieldName)
@@ -4120,7 +4153,7 @@ function ml({ field: e, onSelectChange: t, allFields: r }) {
4120
4153
  /* @__PURE__ */ l(ve, { fontWeight: "500", children: e.mapToDisplayName }),
4121
4154
  /* @__PURE__ */ l(ve, { marginBottom: "5px", fontSize: 14, children: e == null ? void 0 : e.prompt }),
4122
4155
  /* @__PURE__ */ l(
4123
- ba,
4156
+ Sa,
4124
4157
  {
4125
4158
  name: e.mapToName,
4126
4159
  variant: "flushed",
@@ -4139,10 +4172,10 @@ function on({ string: e }) {
4139
4172
  /* @__PURE__ */ l(Ur, { flex: "1", justifyContent: "flex-end", alignItems: "center", children: /* @__PURE__ */ l(Oi, { marginLeft: 2 }) })
4140
4173
  ] });
4141
4174
  }
4142
- function yl() {
4143
- const { selectedObjectName: e, configureState: t, setConfigureState: r } = Bt(), { isError: n, removeError: i } = nt(), a = (u) => {
4175
+ function wl() {
4176
+ const { selectedObjectName: e, configureState: t, setConfigureState: r } = Ut(), { isError: n, removeError: i } = nt(), a = (u) => {
4144
4177
  const { value: p, name: h } = u.target;
4145
- p && (e && Qo(e, r, h, p), n(Q.MAPPING, h) && i(Q.MAPPING, h));
4178
+ p && (e && ea(e, r, h, p), n(Q.MAPPING, h) && i(Q.MAPPING, h));
4146
4179
  }, s = Ie(
4147
4180
  () => {
4148
4181
  var u, p;
@@ -4165,14 +4198,14 @@ function yl() {
4165
4198
  ),
4166
4199
  children: [
4167
4200
  /* @__PURE__ */ l(
4168
- ml,
4201
+ yl,
4169
4202
  {
4170
4203
  allFields: ((p = t.read) == null ? void 0 : p.allFields) || [],
4171
4204
  field: u,
4172
4205
  onSelectChange: a
4173
4206
  }
4174
4207
  ),
4175
- /* @__PURE__ */ l(Sa, { children: " * required" })
4208
+ /* @__PURE__ */ l(Oa, { children: " * required" })
4176
4209
  ]
4177
4210
  },
4178
4211
  u.mapToName
@@ -4180,7 +4213,7 @@ function yl() {
4180
4213
  }) })
4181
4214
  ] }) : null;
4182
4215
  }
4183
- function wl(e, t, r) {
4216
+ function Il(e, t, r) {
4184
4217
  var i, a;
4185
4218
  const n = ((i = e == null ? void 0 : e.read) == null ? void 0 : i.selectedOptionalFields) || {};
4186
4219
  if (n[t] = r, r || delete n[t], (a = e.read) != null && a.savedConfig.optionalFields) {
@@ -4192,17 +4225,17 @@ function wl(e, t, r) {
4192
4225
  function Ji(e, t, r, n) {
4193
4226
  t(
4194
4227
  e,
4195
- (i) => wl(i, r, n)
4228
+ (i) => Il(i, r, n)
4196
4229
  );
4197
4230
  }
4198
- function Il() {
4231
+ function vl() {
4199
4232
  var w, y;
4200
4233
  const {
4201
4234
  appName: e,
4202
4235
  configureState: t,
4203
4236
  setConfigureState: r,
4204
4237
  selectedObjectName: n
4205
- } = Bt(), i = (w = t == null ? void 0 : t.read) == null ? void 0 : w.selectedOptionalFields, a = (I) => {
4238
+ } = Ut(), i = (w = t == null ? void 0 : t.read) == null ? void 0 : w.selectedOptionalFields, a = (I) => {
4206
4239
  const { name: b, checked: v } = I.target;
4207
4240
  n && t && Ji(n, r, b, v);
4208
4241
  }, s = (y = t == null ? void 0 : t.read) == null ? void 0 : y.optionalFields, u = (I) => {
@@ -4249,22 +4282,22 @@ function Il() {
4249
4282
  )
4250
4283
  ] });
4251
4284
  }
4252
- function vl() {
4285
+ function bl() {
4253
4286
  var n, i, a;
4254
- const { configureState: e, selectedObjectName: t } = Bt(), { appName: r } = te();
4287
+ const { configureState: e, selectedObjectName: t } = Ut(), { appName: r } = te();
4255
4288
  return /* @__PURE__ */ A(Kt, { children: [
4256
4289
  /* @__PURE__ */ l(on, { string: `${r} reads the following ${t} fields` }),
4257
- /* @__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." })
4290
+ /* @__PURE__ */ l(J, { marginBottom: "20px", display: "flex", gap: 1, children: (i = (n = e == null ? void 0 : e.read) == null ? void 0 : n.requiredFields) != null && i.length ? (a = e.read) == null ? void 0 : a.requiredFields.map((s) => tt(s) ? null : /* @__PURE__ */ l(Ca, { children: s.displayName }, s.fieldName)) : "There are no required fields." })
4258
4291
  ] });
4259
4292
  }
4260
- function bl() {
4293
+ function Sl() {
4261
4294
  return /* @__PURE__ */ A(Kt, { children: [
4262
- /* @__PURE__ */ l(vl, {}),
4263
- /* @__PURE__ */ l(yl, {}),
4264
- /* @__PURE__ */ l(Il, {})
4295
+ /* @__PURE__ */ l(bl, {}),
4296
+ /* @__PURE__ */ l(wl, {}),
4297
+ /* @__PURE__ */ l(vl, {})
4265
4298
  ] });
4266
4299
  }
4267
- function Sl(e, t, r) {
4300
+ function Ol(e, t, r) {
4268
4301
  var n, i, a;
4269
4302
  if (((n = e == null ? void 0 : e.write) == null ? void 0 : n.selectedNonConfigurableWriteFields) === null && (e.write.selectedNonConfigurableWriteFields = {}), e != null && e.write) {
4270
4303
  const s = e.write.selectedNonConfigurableWriteFields;
@@ -4278,18 +4311,18 @@ function Hi(e, t, r, n) {
4278
4311
  t(
4279
4312
  e,
4280
4313
  (i) => {
4281
- Sl(i, r, n);
4314
+ Ol(i, r, n);
4282
4315
  }
4283
4316
  );
4284
4317
  }
4285
- function Ol() {
4318
+ function Cl() {
4286
4319
  var w, y, I, b;
4287
4320
  const {
4288
4321
  appName: e,
4289
4322
  selectedObjectName: t,
4290
4323
  configureState: r,
4291
4324
  setConfigureState: n
4292
- } = Bt(), i = (w = r == null ? void 0 : r.write) == null ? void 0 : w.selectedNonConfigurableWriteFields, a = (y = r == null ? void 0 : r.write) == null ? void 0 : y.writeObjects, s = (v) => {
4325
+ } = Ut(), i = (w = r == null ? void 0 : r.write) == null ? void 0 : w.selectedNonConfigurableWriteFields, a = (y = r == null ? void 0 : r.write) == null ? void 0 : y.writeObjects, s = (v) => {
4293
4326
  const { name: S, checked: N } = v.target;
4294
4327
  t && r && Hi(t, n, S, N);
4295
4328
  }, u = (v) => {
@@ -4349,7 +4382,7 @@ function Ol() {
4349
4382
  )
4350
4383
  ] });
4351
4384
  }
4352
- function Cl() {
4385
+ function Nl() {
4353
4386
  const e = re(), { projectId: t, appName: r } = te(), {
4354
4387
  integrationId: n,
4355
4388
  installation: i,
@@ -4384,14 +4417,14 @@ function Cl() {
4384
4417
  (i == null ? void 0 : i.id) && /* @__PURE__ */ l(ae, { onClick: w, variant: "warning", isDisabled: m, children: y })
4385
4418
  ] });
4386
4419
  }
4387
- function ea({
4420
+ function ta({
4388
4421
  onSave: e,
4389
4422
  onReset: t,
4390
4423
  isLoading: r,
4391
4424
  isCreateMode: n = !1
4392
4425
  }) {
4393
4426
  var D, j, E;
4394
- 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) || ((j = u == null ? void 0 : u.read) == null ? void 0 : j.isRequiredMapFieldsModified), y = (E = u == null ? void 0 : u.write) == null ? void 0 : E.isWriteModified, S = s || r || !u || !p || !(w || y || n || p !== yt && !m), N = p === yt, _ = p === $o;
4427
+ const { installation: i } = Ke(), { hydratedRevision: a, loading: s } = dr(), { configureState: u, selectedObjectName: p } = Ut(), 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) || ((j = u == null ? void 0 : u.read) == null ? void 0 : j.isRequiredMapFieldsModified), y = (E = u == null ? void 0 : u.write) == null ? void 0 : E.isWriteModified, S = s || r || !u || !p || !(w || y || n || p !== yt && !m), N = p === yt, _ = p === $o;
4395
4428
  return r ? /* @__PURE__ */ l(De, {}) : /* @__PURE__ */ A("form", { style: { width: "100%", maxWidth: "50rem" }, onSubmit: e, children: [
4396
4429
  /* @__PURE__ */ A(Ae, { direction: "row", spacing: 4, marginBottom: "20px", flexDir: "row-reverse", children: [
4397
4430
  /* @__PURE__ */ l(
@@ -4424,15 +4457,15 @@ function ea({
4424
4457
  minHeight: 300,
4425
4458
  children: [
4426
4459
  s && /* @__PURE__ */ l(De, {}),
4427
- a && !_ && !N && /* @__PURE__ */ l(bl, {}),
4428
- a && !_ && N && /* @__PURE__ */ l(Ol, {}),
4429
- !s && _ && /* @__PURE__ */ l(Cl, {})
4460
+ a && !_ && !N && /* @__PURE__ */ l(Sl, {}),
4461
+ a && !_ && N && /* @__PURE__ */ l(Cl, {}),
4462
+ !s && _ && /* @__PURE__ */ l(Nl, {})
4430
4463
  ]
4431
4464
  }
4432
4465
  )
4433
4466
  ] });
4434
4467
  }
4435
- const ta = () => {
4468
+ const ra = () => {
4436
4469
  const {
4437
4470
  integrationId: e,
4438
4471
  groupRef: t,
@@ -4440,7 +4473,7 @@ const ta = () => {
4440
4473
  setInstallation: n,
4441
4474
  onInstallSuccess: i,
4442
4475
  onUpdateSuccess: a
4443
- } = Ke(), { hydratedRevision: s, loading: u } = dr(), { selectedObjectName: p } = Zo(), { selectedConnection: h } = Lt(), m = re(), { projectId: w } = te(), { resetBoundary: y, setErrors: I } = nt(), {
4476
+ } = Ke(), { hydratedRevision: s, loading: u } = dr(), { selectedObjectName: p } = Qo(), { selectedConnection: h } = Bt(), m = re(), { projectId: w } = te(), { resetBoundary: y, setErrors: I } = nt(), {
4444
4477
  resetConfigureState: b,
4445
4478
  objectConfigurationsState: v,
4446
4479
  resetPendingConfigurationState: S
@@ -4465,8 +4498,8 @@ const ta = () => {
4465
4498
  onInstallSuccess: i,
4466
4499
  onUpdateSuccess: a
4467
4500
  };
4468
- }, Nl = void 0;
4469
- function Tl() {
4501
+ }, Tl = void 0;
4502
+ function Rl() {
4470
4503
  const {
4471
4504
  integrationId: e,
4472
4505
  groupRef: t,
@@ -4485,11 +4518,11 @@ function Tl() {
4485
4518
  resetPendingConfigurationState: b,
4486
4519
  configureState: v,
4487
4520
  onInstallSuccess: S
4488
- } = ta(), [N, _] = x(!1), D = s === yt, j = Z(
4521
+ } = ra(), [N, _] = x(!1), D = s === yt, j = Z(
4489
4522
  () => {
4490
4523
  m(Q.MAPPING), i != null && i.content && !a && s && Ko(
4491
4524
  i,
4492
- Nl,
4525
+ Tl,
4493
4526
  s,
4494
4527
  y
4495
4528
  );
@@ -4505,7 +4538,7 @@ function Tl() {
4505
4538
  H,
4506
4539
  w
4507
4540
  );
4508
- ee.length > 0 || (s && (u != null && u.id) && p && h && e && t && r && i ? (_(!0), Wd(
4541
+ ee.length > 0 || (s && (u != null && u.id) && p && h && e && t && r && i ? (_(!0), zd(
4509
4542
  h,
4510
4543
  e,
4511
4544
  t,
@@ -4521,7 +4554,7 @@ function Tl() {
4521
4554
  _(!1), b(s);
4522
4555
  })) : console.error("CreateInstallallation - onSaveReadCreate: missing required props"));
4523
4556
  }, ne = () => {
4524
- s && (u != null && u.id) && p && h && e && t && r && i ? (_(!0), Hd(
4557
+ s && (u != null && u.id) && p && h && e && t && r && i ? (_(!0), Xd(
4525
4558
  h,
4526
4559
  e,
4527
4560
  t,
@@ -4537,7 +4570,7 @@ function Tl() {
4537
4570
  })) : console.error("CreateInstallallation - onSaveWriteCreate: missing required props");
4538
4571
  };
4539
4572
  return /* @__PURE__ */ l(
4540
- ea,
4573
+ ta,
4541
4574
  {
4542
4575
  isCreateMode: !0,
4543
4576
  isLoading: N,
@@ -4548,7 +4581,7 @@ function Tl() {
4548
4581
  }
4549
4582
  );
4550
4583
  }
4551
- function Rl({
4584
+ function _l({
4552
4585
  updateConfig: e,
4553
4586
  projectId: t,
4554
4587
  integrationId: r,
@@ -4582,7 +4615,7 @@ function Rl({
4582
4615
  console.error("ERROR: ", h);
4583
4616
  });
4584
4617
  }
4585
- const _l = (e, t, r, n, i, a) => {
4618
+ const Al = (e, t, r, n, i, a) => {
4586
4619
  const s = Lo(e), u = Bo(
4587
4620
  e
4588
4621
  ), p = {
@@ -4603,8 +4636,8 @@ const _l = (e, t, r, n, i, a) => {
4603
4636
  }
4604
4637
  };
4605
4638
  return Qr(i) && (p.content || (p.content = {}), p.content.proxy = { enabled: !0 }), p;
4606
- }, Al = (e, t, r, n, i, a, s, u, p, h) => {
4607
- const m = _l(
4639
+ }, xl = (e, t, r, n, i, a, s, u, p, h) => {
4640
+ const m = Al(
4608
4641
  a,
4609
4642
  n || "",
4610
4643
  u,
@@ -4612,7 +4645,7 @@ const _l = (e, t, r, n, i, a) => {
4612
4645
  p,
4613
4646
  u.backfill
4614
4647
  );
4615
- return m ? Rl({
4648
+ return m ? _l({
4616
4649
  updateConfig: m,
4617
4650
  projectId: e,
4618
4651
  integrationId: t,
@@ -4622,7 +4655,7 @@ const _l = (e, t, r, n, i, a) => {
4622
4655
  setInstallation: s,
4623
4656
  onUpdateSuccess: h
4624
4657
  }) : (console.error("Error when generating updateConfig from configureState"), Promise.resolve(null));
4625
- }, xl = (e, t) => {
4658
+ }, kl = (e, t) => {
4626
4659
  const n = {
4627
4660
  content: {
4628
4661
  write: {
@@ -4631,8 +4664,8 @@ const _l = (e, t, r, n, i, a) => {
4631
4664
  }
4632
4665
  };
4633
4666
  return Qr(t) && (n.content || (n.content = {}), n.content.proxy = { enabled: !0 }), n;
4634
- }, kl = (e, t, r, n, i, a, s, u) => {
4635
- const p = xl(i, a);
4667
+ }, El = (e, t, r, n, i, a, s, u) => {
4668
+ const p = kl(i, a);
4636
4669
  if (!p)
4637
4670
  return console.error("Error when generating write updateConfig from configureState"), Promise.resolve(null);
4638
4671
  const h = {
@@ -4659,7 +4692,7 @@ const _l = (e, t, r, n, i, a) => {
4659
4692
  console.error("ERROR: ", m);
4660
4693
  });
4661
4694
  };
4662
- function El({ installation: e, integrationObj: t }) {
4695
+ function Fl({ installation: e, integrationObj: t }) {
4663
4696
  const {
4664
4697
  setInstallation: r,
4665
4698
  hydratedRevision: n,
@@ -4673,7 +4706,7 @@ function El({ installation: e, integrationObj: t }) {
4673
4706
  resetPendingConfigurationState: w,
4674
4707
  configureState: y,
4675
4708
  onUpdateSuccess: I
4676
- } = ta(), [b, v] = x(!1), S = a === yt, { config: N } = e, _ = Z(
4709
+ } = ra(), [b, v] = x(!1), S = a === yt, { config: N } = e, _ = Z(
4677
4710
  () => {
4678
4711
  p(Q.MAPPING), n != null && n.content && !i && a && Ko(n, N, a, m);
4679
4712
  },
@@ -4695,7 +4728,7 @@ function El({ installation: e, integrationObj: t }) {
4695
4728
  ie,
4696
4729
  h
4697
4730
  );
4698
- H.length > 0 || (n && e && a && s && u && D ? (v(!0), Al(
4731
+ H.length > 0 || (n && e && a && s && u && D ? (v(!0), xl(
4699
4732
  u,
4700
4733
  t.id,
4701
4734
  e.id,
@@ -4710,7 +4743,7 @@ function El({ installation: e, integrationObj: t }) {
4710
4743
  v(!1), w(a);
4711
4744
  })) : console.error("UpdateInstallation - onSaveUpdate missing required props"));
4712
4745
  }, E = () => {
4713
- e && a && s && u && n ? (v(!0), kl(
4746
+ e && a && s && u && n ? (v(!0), El(
4714
4747
  u,
4715
4748
  t.id,
4716
4749
  e.id,
@@ -4724,7 +4757,7 @@ function El({ installation: e, integrationObj: t }) {
4724
4757
  })) : console.error("UpdateInstallation - onSaveUpdate missing required props");
4725
4758
  };
4726
4759
  return /* @__PURE__ */ l(
4727
- ea,
4760
+ ta,
4728
4761
  {
4729
4762
  onSave: (V) => {
4730
4763
  V.preventDefault(), S ? E() : j();
@@ -4734,12 +4767,12 @@ function El({ installation: e, integrationObj: t }) {
4734
4767
  }
4735
4768
  );
4736
4769
  }
4737
- function Fl() {
4770
+ function Pl() {
4738
4771
  const { integrationObj: e, installation: t } = Ke();
4739
4772
  return e ? t && e ? (
4740
4773
  // If installation exists, render update installation flow
4741
4774
  /* @__PURE__ */ l(
4742
- El,
4775
+ Fl,
4743
4776
  {
4744
4777
  installation: t,
4745
4778
  integrationObj: e
@@ -4747,10 +4780,10 @@ function Fl() {
4747
4780
  )
4748
4781
  ) : (
4749
4782
  // No installation, render create installation flow
4750
- /* @__PURE__ */ l(Tl, {})
4783
+ /* @__PURE__ */ l(Rl, {})
4751
4784
  ) : /* @__PURE__ */ l(We, { message: "We can't load the integration" });
4752
4785
  }
4753
- function Pl() {
4786
+ function Dl() {
4754
4787
  return /* @__PURE__ */ A("svg", { width: "48", height: "48", viewBox: "0 0 48 48", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
4755
4788
  /* @__PURE__ */ l("circle", { cx: "24", cy: "24", r: "24", fill: "#BBF7D0" }),
4756
4789
  /* @__PURE__ */ l(
@@ -4766,7 +4799,7 @@ function Pl() {
4766
4799
  ] });
4767
4800
  }
4768
4801
  function ki({ text: e }) {
4769
- return /* @__PURE__ */ l(cr, { children: /* @__PURE__ */ A(
4802
+ return /* @__PURE__ */ l(Lt, { children: /* @__PURE__ */ A(
4770
4803
  J,
4771
4804
  {
4772
4805
  p: 8,
@@ -4782,13 +4815,13 @@ function ki({ text: e }) {
4782
4815
  color: "gray.800",
4783
4816
  fontSize: "md",
4784
4817
  children: [
4785
- /* @__PURE__ */ l(J, { width: "100%", display: "flex", alignContent: "center", justifyContent: "center", children: /* @__PURE__ */ l(J, { margin: "auto", children: /* @__PURE__ */ l(Pl, {}) }) }),
4818
+ /* @__PURE__ */ l(J, { width: "100%", display: "flex", alignContent: "center", justifyContent: "center", children: /* @__PURE__ */ l(J, { margin: "auto", children: /* @__PURE__ */ l(Dl, {}) }) }),
4786
4819
  /* @__PURE__ */ l(J, { textAlign: "center", paddingTop: "25px", children: e })
4787
4820
  ]
4788
4821
  }
4789
4822
  ) });
4790
4823
  }
4791
- const Dl = (e, t) => ({
4824
+ const Kl = (e, t) => ({
4792
4825
  revisionId: e.id,
4793
4826
  createdBy: `consumer:${t}`,
4794
4827
  content: {
@@ -4798,7 +4831,7 @@ const Dl = (e, t) => ({
4798
4831
  }
4799
4832
  }
4800
4833
  });
4801
- function Kl({
4834
+ function Ll({
4802
4835
  projectId: e,
4803
4836
  integrationId: t,
4804
4837
  groupRef: r,
@@ -4809,7 +4842,7 @@ function Kl({
4809
4842
  setInstallation: u,
4810
4843
  onInstallSuccess: p
4811
4844
  }) {
4812
- const h = Dl(
4845
+ const h = Kl(
4813
4846
  s,
4814
4847
  n
4815
4848
  );
@@ -4824,15 +4857,15 @@ function Kl({
4824
4857
  onInstallSuccess: p
4825
4858
  }) : (console.error("Error when generating createConfig from configureState"), Promise.resolve(null));
4826
4859
  }
4827
- function Ll({ provider: e }) {
4860
+ function Bl({ provider: e }) {
4828
4861
  const t = `You have successfully installed your ${vt(e)} integration.`;
4829
4862
  return /* @__PURE__ */ l(ki, { text: t });
4830
4863
  }
4831
- const Bl = (e) => {
4864
+ const Ul = (e) => {
4832
4865
  const { read: t, write: r, proxy: n } = (e == null ? void 0 : e.content) ?? {};
4833
4866
  return !t && !r && (n == null ? void 0 : n.enabled) || !1;
4834
4867
  };
4835
- function Ul({ children: e }) {
4868
+ function Ml({ children: e }) {
4836
4869
  var _;
4837
4870
  const { projectId: t } = te(), r = re(), { hydratedRevision: n, loading: i } = dr(), {
4838
4871
  integrationObj: a,
@@ -4842,9 +4875,9 @@ function Ul({ children: e }) {
4842
4875
  setInstallation: h,
4843
4876
  onInstallSuccess: m,
4844
4877
  isIntegrationDeleted: w
4845
- } = Ke(), { selectedConnection: y } = Lt(), [I, b] = x(!1), v = i || I, S = (_ = n == null ? void 0 : n.content) == null ? void 0 : _.provider, N = Bl(n);
4878
+ } = Ke(), { selectedConnection: y } = Bt(), [I, b] = x(!1), v = i || I, S = (_ = n == null ? void 0 : n.content) == null ? void 0 : _.provider, N = Ul(n);
4846
4879
  return Y(() => {
4847
- !v && n && N && !s && y && r && (a != null && a.id) && (b(!0), Kl({
4880
+ !v && n && N && !s && y && r && (a != null && a.id) && (b(!0), Ll({
4848
4881
  apiKey: r,
4849
4882
  projectId: t,
4850
4883
  integrationId: a == null ? void 0 : a.id,
@@ -4872,10 +4905,10 @@ function Ul({ children: e }) {
4872
4905
  h,
4873
4906
  v,
4874
4907
  m
4875
- ]), a ? v ? /* @__PURE__ */ l(De, {}) : N && S && s ? /* @__PURE__ */ l(Ll, { provider: S }) : w ? /* @__PURE__ */ l(ki, { text: "Integration successfully uninstalled." }) : /* @__PURE__ */ l("div", { children: e }) : /* @__PURE__ */ l(We, { message: "We can't load the integration" });
4908
+ ]), a ? v ? /* @__PURE__ */ l(De, {}) : N && S && s ? /* @__PURE__ */ l(Bl, { provider: S }) : w ? /* @__PURE__ */ l(ki, { text: "Integration successfully uninstalled." }) : /* @__PURE__ */ l("div", { children: e }) : /* @__PURE__ */ l(We, { message: "We can't load the integration" });
4876
4909
  }
4877
- function Ml({ children: e }) {
4878
- return /* @__PURE__ */ l(cr, { children: /* @__PURE__ */ l(
4910
+ function $l({ children: e }) {
4911
+ return /* @__PURE__ */ l(Lt, { children: /* @__PURE__ */ l(
4879
4912
  J,
4880
4913
  {
4881
4914
  p: 8,
@@ -4893,13 +4926,13 @@ function Ml({ children: e }) {
4893
4926
  }
4894
4927
  ) });
4895
4928
  }
4896
- function $l({ error: e }) {
4929
+ function jl({ error: e }) {
4897
4930
  return e ? /* @__PURE__ */ A(Xr, { status: "error", marginTop: "2em", children: [
4898
4931
  /* @__PURE__ */ l(Gr, {}),
4899
4932
  /* @__PURE__ */ l(Vr, { children: e })
4900
4933
  ] }) : null;
4901
4934
  }
4902
- function ra({ url: e, providerDisplayName: t, credentialName: r }) {
4935
+ function na({ url: e, providerDisplayName: t, credentialName: r }) {
4903
4936
  return /* @__PURE__ */ A(ve, { align: "left", color: "darkgray", children: [
4904
4937
  /* @__PURE__ */ l(
4905
4938
  co,
@@ -4919,7 +4952,7 @@ function ra({ url: e, providerDisplayName: t, credentialName: r }) {
4919
4952
  "."
4920
4953
  ] });
4921
4954
  }
4922
- function jl({
4955
+ function ql({
4923
4956
  provider: e,
4924
4957
  providerInfo: t,
4925
4958
  handleSubmit: r,
@@ -4928,12 +4961,12 @@ function jl({
4928
4961
  }) {
4929
4962
  var v;
4930
4963
  const [a, s] = x(!1), u = () => s(!a), [p, h] = x(""), 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;
4931
- return /* @__PURE__ */ l(Ml, { children: /* @__PURE__ */ A(He, { children: [
4964
+ return /* @__PURE__ */ l($l, { children: /* @__PURE__ */ A(He, { children: [
4932
4965
  /* @__PURE__ */ l(rt, { my: "6", children: /* @__PURE__ */ l(Je, { as: "h4", size: "md", children: `Set up ${I} integration` }) }),
4933
- /* @__PURE__ */ l($l, { error: n }),
4966
+ /* @__PURE__ */ l(jl, { error: n }),
4934
4967
  /* @__PURE__ */ A(Ae, { spacing: 4, children: [
4935
4968
  b && /* @__PURE__ */ l(
4936
- ra,
4969
+ na,
4937
4970
  {
4938
4971
  url: b,
4939
4972
  providerDisplayName: I,
@@ -4969,7 +5002,7 @@ function jl({
4969
5002
  )
4970
5003
  ] }) });
4971
5004
  }
4972
- function ql({
5005
+ function Wl({
4973
5006
  provider: e,
4974
5007
  providerInfo: t,
4975
5008
  consumerRef: r,
@@ -5014,10 +5047,10 @@ function ql({
5014
5047
  const v = (S) => {
5015
5048
  I(S), w(!0);
5016
5049
  };
5017
- return u === null ? /* @__PURE__ */ l(jl, { provider: e, providerInfo: t, handleSubmit: v, error: null }) : s;
5050
+ return u === null ? /* @__PURE__ */ l(ql, { provider: e, providerInfo: t, handleSubmit: v, error: null }) : s;
5018
5051
  }
5019
- function Wl({ children: e }) {
5020
- return /* @__PURE__ */ l(cr, { children: /* @__PURE__ */ l(
5052
+ function zl({ children: e }) {
5053
+ return /* @__PURE__ */ l(Lt, { children: /* @__PURE__ */ l(
5021
5054
  J,
5022
5055
  {
5023
5056
  p: 8,
@@ -5031,13 +5064,13 @@ function Wl({ children: e }) {
5031
5064
  }
5032
5065
  ) });
5033
5066
  }
5034
- function zl({ error: e }) {
5067
+ function Jl({ error: e }) {
5035
5068
  return e ? /* @__PURE__ */ A(Xr, { status: "error", marginTop: "2em", children: [
5036
5069
  /* @__PURE__ */ l(Gr, {}),
5037
5070
  /* @__PURE__ */ l(Vr, { children: e })
5038
5071
  ] }) : null;
5039
5072
  }
5040
- function Jl({
5073
+ function Hl({
5041
5074
  provider: e,
5042
5075
  providerInfo: t,
5043
5076
  handleSubmit: r,
@@ -5046,13 +5079,13 @@ function Jl({
5046
5079
  }) {
5047
5080
  var _;
5048
5081
  const [a, s] = x(!1), u = () => s(!a), [p, h] = x(""), [m, w] = x(""), y = (D) => h(D.currentTarget.value), I = (D) => w(D.currentTarget.value), b = vt(e, t), v = (_ = t.basicOpts) == null ? void 0 : _.docsURL, S = p.length > 0, N = i || !S;
5049
- return /* @__PURE__ */ l(Wl, { children: /* @__PURE__ */ A(He, { children: [
5082
+ return /* @__PURE__ */ l(zl, { children: /* @__PURE__ */ A(He, { children: [
5050
5083
  /* @__PURE__ */ l(rt, { marginTop: "16", marginBottom: "0", children: /* @__PURE__ */ l(Je, { as: "h4", size: "md", children: `Set up ${b} integration` }) }),
5051
- /* @__PURE__ */ l(zl, { error: n }),
5084
+ /* @__PURE__ */ l(Jl, { error: n }),
5052
5085
  /* @__PURE__ */ l("br", {}),
5053
5086
  /* @__PURE__ */ A(Ae, { spacing: 4, children: [
5054
5087
  v && /* @__PURE__ */ l(
5055
- ra,
5088
+ na,
5056
5089
  {
5057
5090
  url: v,
5058
5091
  providerDisplayName: b,
@@ -5089,7 +5122,7 @@ function Jl({
5089
5122
  )
5090
5123
  ] }) });
5091
5124
  }
5092
- function Hl({
5125
+ function Xl({
5093
5126
  provider: e,
5094
5127
  providerInfo: t,
5095
5128
  consumerRef: r,
@@ -5138,7 +5171,7 @@ function Hl({
5138
5171
  I({ user: S, pass: N }), w(!0);
5139
5172
  };
5140
5173
  return u === null ? /* @__PURE__ */ l(
5141
- Jl,
5174
+ Hl,
5142
5175
  {
5143
5176
  provider: e,
5144
5177
  providerInfo: t,
@@ -5147,17 +5180,17 @@ function Hl({
5147
5180
  }
5148
5181
  ) : s;
5149
5182
  }
5150
- function Xl(e) {
5151
- const { selectedConnection: t } = Lt();
5183
+ function Gl(e) {
5184
+ const { selectedConnection: t } = Bt();
5152
5185
  Y(() => {
5153
5186
  e && t && e(t.id);
5154
5187
  }, [e, t]);
5155
5188
  }
5156
- function Gl({ onSuccess: e }) {
5157
- Xl(e);
5189
+ function Vl({ onSuccess: e }) {
5190
+ Gl(e);
5158
5191
  }
5159
- function Vl({ children: e }) {
5160
- return /* @__PURE__ */ l(cr, { children: /* @__PURE__ */ l(
5192
+ function Yl({ children: e }) {
5193
+ return /* @__PURE__ */ l(Lt, { children: /* @__PURE__ */ l(
5161
5194
  J,
5162
5195
  {
5163
5196
  p: 8,
@@ -5175,21 +5208,21 @@ function Vl({ children: e }) {
5175
5208
  }
5176
5209
  ) });
5177
5210
  }
5178
- function Yl({ error: e }) {
5211
+ function Zl({ error: e }) {
5179
5212
  return e ? /* @__PURE__ */ A(Xr, { status: "error", marginTop: "2em", children: [
5180
5213
  /* @__PURE__ */ l(Gr, {}),
5181
5214
  /* @__PURE__ */ l(Vr, { children: e })
5182
5215
  ] }) : null;
5183
5216
  }
5184
- function Zl({
5217
+ function Ql({
5185
5218
  handleSubmit: e,
5186
5219
  error: t,
5187
5220
  isButtonDisabled: r,
5188
5221
  providerName: n
5189
5222
  }) {
5190
- return /* @__PURE__ */ l(Vl, { children: /* @__PURE__ */ A(He, { children: [
5223
+ return /* @__PURE__ */ l(Yl, { children: /* @__PURE__ */ A(He, { children: [
5191
5224
  /* @__PURE__ */ l(rt, { marginTop: "16", marginBottom: "0", children: /* @__PURE__ */ l(Je, { as: "h4", size: "md", children: `Set up ${n} integration` }) }),
5192
- /* @__PURE__ */ l(Yl, { error: t }),
5225
+ /* @__PURE__ */ l(Zl, { error: t }),
5193
5226
  /* @__PURE__ */ l("br", {}),
5194
5227
  /* @__PURE__ */ l(
5195
5228
  ae,
@@ -5204,7 +5237,7 @@ function Zl({
5204
5237
  )
5205
5238
  ] }) });
5206
5239
  }
5207
- function Ql({
5240
+ function eu({
5208
5241
  provider: e,
5209
5242
  consumerRef: t,
5210
5243
  consumerName: r,
@@ -5237,24 +5270,19 @@ function Ql({
5237
5270
  const I = () => {
5238
5271
  y(!0);
5239
5272
  };
5240
- return s === null ? /* @__PURE__ */ l(Zl, { handleSubmit: I, error: null, providerName: p }) : a;
5273
+ return s === null ? /* @__PURE__ */ l(Ql, { handleSubmit: I, error: null, providerName: p }) : a;
5241
5274
  }
5242
5275
  function lr({ children: e }) {
5243
- return /* @__PURE__ */ l(cr, { children: /* @__PURE__ */ l(
5276
+ return /* @__PURE__ */ l(Lt, { children: /* @__PURE__ */ A(
5244
5277
  J,
5245
5278
  {
5246
- p: 8,
5247
5279
  maxWidth: "600px",
5248
5280
  borderWidth: 1,
5249
- borderRadius: 8,
5250
- boxShadow: "lg",
5251
- textAlign: ["left"],
5252
- margin: "auto",
5253
- marginTop: "40px",
5254
- bgColor: "white",
5255
- color: "gray.800",
5256
- fontSize: "md",
5257
- children: e
5281
+ borderRadius: 4,
5282
+ children: [
5283
+ /* @__PURE__ */ l("div", { style: { padding: "3rem 2rem" }, children: e }),
5284
+ /* @__PURE__ */ l(qo, {})
5285
+ ]
5258
5286
  }
5259
5287
  ) });
5260
5288
  }
@@ -5264,7 +5292,7 @@ function ur({ error: e }) {
5264
5292
  /* @__PURE__ */ l(Vr, { children: e })
5265
5293
  ] }) : null;
5266
5294
  }
5267
- function eu({
5295
+ function tu({
5268
5296
  handleSubmit: e,
5269
5297
  error: t,
5270
5298
  explicitScopesRequired: r,
@@ -5318,7 +5346,7 @@ function eu({
5318
5346
  )
5319
5347
  ] }) });
5320
5348
  }
5321
- function tu({
5349
+ function ru({
5322
5350
  provider: e,
5323
5351
  consumerRef: t,
5324
5352
  consumerName: r,
@@ -5352,7 +5380,7 @@ function tu({
5352
5380
  });
5353
5381
  };
5354
5382
  return u === null ? /* @__PURE__ */ l(
5355
- eu,
5383
+ tu,
5356
5384
  {
5357
5385
  providerName: s,
5358
5386
  handleSubmit: I,
@@ -5361,7 +5389,7 @@ function tu({
5361
5389
  }
5362
5390
  ) : /* @__PURE__ */ l(De, {});
5363
5391
  }
5364
- const na = async (e, t, r, n, i, a, s, u) => {
5392
+ const ia = async (e, t, r, n, i, a, s, u) => {
5365
5393
  var h;
5366
5394
  const p = await X().providerApi.getProvider({ provider: i }, {
5367
5395
  headers: { "X-Api-Key": n ?? "" }
@@ -5389,8 +5417,8 @@ const na = async (e, t, r, n, i, a, s, u) => {
5389
5417
  return await X().oAuthApi.oauthConnect(I);
5390
5418
  }
5391
5419
  throw new Error(`Provider ${i} does not support an OAuth2 web flow.`);
5392
- }, Xi = 600, Gi = 600, ru = "AUTHORIZATION_SUCCEEDED", nu = "AUTHORIZATION_FAILED";
5393
- function iu(e, t, r) {
5420
+ }, Xi = 600, Gi = 600, nu = "AUTHORIZATION_SUCCEEDED", iu = "AUTHORIZATION_FAILED";
5421
+ function ou(e, t, r) {
5394
5422
  return Z(async (n) => {
5395
5423
  const i = await X().connectionApi.getConnection({ projectIdOrName: e, connectionId: n }, {
5396
5424
  headers: { "X-Api-Key": t ?? "" }
@@ -5398,32 +5426,32 @@ function iu(e, t, r) {
5398
5426
  r(i);
5399
5427
  }, [e, t, r]);
5400
5428
  }
5401
- function ou(e, t, r, n) {
5429
+ function au(e, t, r, n) {
5402
5430
  return Z(() => {
5403
5431
  if (!n) return;
5404
5432
  const i = window.screenX + (window.outerWidth - Xi) / 2, a = window.screenY + (window.outerHeight - Gi) / 2.5, s = `width=${Xi},height=${Gi},left=${i},top=${a}`, u = window.open(n, e, s);
5405
5433
  t(u), window.addEventListener("message", r, !1);
5406
5434
  }, [n, e, t, r]);
5407
5435
  }
5408
- function au(e) {
5436
+ function su(e) {
5409
5437
  return Z((t) => {
5410
5438
  var r;
5411
- if (t.origin === bd) {
5412
- if (t.data.eventType === ru) {
5439
+ if (t.origin === Sd) {
5440
+ if (t.data.eventType === nu) {
5413
5441
  const n = (r = t.data.data) == null ? void 0 : r.connection;
5414
5442
  n ? e(n) : console.error("Connection ID not found in event data: ", { event: t });
5415
5443
  }
5416
- t.data.eventType === nu && console.error("OAuth failed: ", { event: t });
5444
+ t.data.eventType === iu && console.error("OAuth failed: ", { event: t });
5417
5445
  }
5418
5446
  }, [e]);
5419
5447
  }
5420
- function ia({
5448
+ function oa({
5421
5449
  children: e,
5422
5450
  oauthUrl: t,
5423
5451
  windowTitle: r = "Connect to Provider",
5424
5452
  onClose: n
5425
5453
  }) {
5426
- const i = re(), { projectId: a } = te(), [s, u] = x(null), [p, h] = x(null), { setSelectedConnection: m } = Lt(), w = au(u), y = ou(r, h, w, t), I = iu(a, i, m);
5454
+ const i = re(), { projectId: a } = te(), [s, u] = x(null), [p, h] = x(null), { setSelectedConnection: m } = Bt(), w = su(u), y = au(r, h, w, t), I = ou(a, i, m);
5427
5455
  Y(() => {
5428
5456
  t && !p && y();
5429
5457
  }, [t, p, y, w, r]), Y(() => {
@@ -5438,7 +5466,7 @@ function ia({
5438
5466
  }, 500);
5439
5467
  return /* @__PURE__ */ l("div", { children: e });
5440
5468
  }
5441
- function su({
5469
+ function cu({
5442
5470
  handleSubmit: e,
5443
5471
  error: t,
5444
5472
  isButtonDisabled: r,
@@ -5461,7 +5489,7 @@ function su({
5461
5489
  )
5462
5490
  ] }) });
5463
5491
  }
5464
- function cu({
5492
+ function du({
5465
5493
  provider: e,
5466
5494
  consumerRef: t,
5467
5495
  consumerName: r,
@@ -5472,7 +5500,7 @@ function cu({
5472
5500
  const { projectId: s } = te(), u = re(), [p, h] = x(null), [m, w] = x(null), y = async () => {
5473
5501
  w(null);
5474
5502
  try {
5475
- const b = await na(
5503
+ const b = await ia(
5476
5504
  s,
5477
5505
  t,
5478
5506
  n,
@@ -5490,16 +5518,16 @@ function cu({
5490
5518
  w(b), h(null);
5491
5519
  }, []);
5492
5520
  return /* @__PURE__ */ l(
5493
- ia,
5521
+ oa,
5494
5522
  {
5495
5523
  windowTitle: `Connect to ${a}`,
5496
5524
  oauthUrl: p,
5497
5525
  onClose: I,
5498
- children: /* @__PURE__ */ l(su, { handleSubmit: y, error: m, providerName: a })
5526
+ children: /* @__PURE__ */ l(cu, { handleSubmit: y, error: m, providerName: a })
5499
5527
  }
5500
5528
  );
5501
5529
  }
5502
- function du({
5530
+ function lu({
5503
5531
  handleSubmit: e,
5504
5532
  error: t,
5505
5533
  isButtonDisabled: r,
@@ -5561,7 +5589,7 @@ function du({
5561
5589
  )
5562
5590
  ] }) });
5563
5591
  }
5564
- function lu({
5592
+ function uu({
5565
5593
  provider: e,
5566
5594
  providerName: t,
5567
5595
  consumerRef: r,
@@ -5596,7 +5624,7 @@ function lu({
5596
5624
  });
5597
5625
  };
5598
5626
  return u === null ? /* @__PURE__ */ l(
5599
- du,
5627
+ lu,
5600
5628
  {
5601
5629
  providerName: t,
5602
5630
  handleSubmit: I,
@@ -5605,9 +5633,9 @@ function lu({
5605
5633
  }
5606
5634
  ) : /* @__PURE__ */ l(De, {});
5607
5635
  }
5608
- function uu() {
5636
+ function pu() {
5609
5637
  const e = be(
5610
- Ca
5638
+ Na
5611
5639
  );
5612
5640
  if (!e)
5613
5641
  throw Error(
@@ -5615,38 +5643,38 @@ function uu() {
5615
5643
  );
5616
5644
  return e;
5617
5645
  }
5618
- var oa = _e({});
5619
- oa.displayName = "ColorModeContext";
5620
- function aa() {
5621
- const e = be(oa);
5646
+ var aa = _e({});
5647
+ aa.displayName = "ColorModeContext";
5648
+ function sa() {
5649
+ const e = be(aa);
5622
5650
  if (e === void 0)
5623
5651
  throw new Error("useColorMode must be used within a ColorModeProvider");
5624
5652
  return e;
5625
5653
  }
5626
- function pu() {
5627
- const e = aa(), t = uu();
5654
+ function fu() {
5655
+ const e = sa(), t = pu();
5628
5656
  return { ...e, theme: t };
5629
5657
  }
5630
- var fu = (...e) => e.filter(Boolean).join(" ");
5658
+ var hu = (...e) => e.filter(Boolean).join(" ");
5631
5659
  function mt(e) {
5632
5660
  const t = typeof e;
5633
5661
  return e != null && (t === "object" || t === "function") && !Array.isArray(e);
5634
5662
  }
5635
5663
  function gt(e, ...t) {
5636
- return hu(e) ? e(...t) : e;
5664
+ return gu(e) ? e(...t) : e;
5637
5665
  }
5638
- var hu = (e) => typeof e == "function", zr = { exports: {} };
5666
+ var gu = (e) => typeof e == "function", zr = { exports: {} };
5639
5667
  zr.exports;
5640
5668
  (function(e, t) {
5641
5669
  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]", N = "[object Null]", _ = "[object Object]", D = "[object Proxy]", j = "[object RegExp]", E = "[object Set]", ne = "[object String]", V = "[object Undefined]", ie = "[object WeakMap]", H = "[object ArrayBuffer]", ee = "[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*)$/, M = {};
5642
5670
  M[Le] = M[bt] = M[sn] = M[cn] = M[dn] = M[ln] = M[un] = M[pn] = M[fn] = !0, M[u] = M[p] = M[H] = M[m] = M[ee] = M[w] = M[y] = M[I] = M[v] = M[S] = M[_] = M[j] = M[E] = M[ne] = M[ie] = !1;
5643
- var pr = typeof et == "object" && et && et.Object === Object && et, $ = typeof self == "object" && self && self.Object === Object && self, Xe = pr || $ || Function("return this")(), fr = t && !t.nodeType && t, de = fr && !0 && e && !e.nodeType && e, Ut = de && de.exports === fr, St = Ut && pr.process, Mt = function() {
5671
+ var pr = typeof et == "object" && et && et.Object === Object && et, $ = typeof self == "object" && self && self.Object === Object && self, Xe = pr || $ || Function("return this")(), fr = t && !t.nodeType && t, de = fr && !0 && e && !e.nodeType && e, Mt = de && de.exports === fr, St = Mt && pr.process, $t = function() {
5644
5672
  try {
5645
5673
  var o = de && de.require && de.require("util").types;
5646
5674
  return o || St && St.binding && St.binding("util");
5647
5675
  } catch {
5648
5676
  }
5649
- }(), Ot = Mt && Mt.isTypedArray;
5677
+ }(), Ot = $t && $t.isTypedArray;
5650
5678
  function hr(o, c, f) {
5651
5679
  switch (f.length) {
5652
5680
  case 0:
@@ -5678,27 +5706,27 @@ zr.exports;
5678
5706
  return o(c(f));
5679
5707
  };
5680
5708
  }
5681
- var vn = Array.prototype, bn = Function.prototype, Ct = Object.prototype, $t = Xe["__core-js_shared__"], Nt = bn.toString, xe = Ct.hasOwnProperty, mr = function() {
5682
- var o = /[^.]+$/.exec($t && $t.keys && $t.keys.IE_PROTO || "");
5709
+ var vn = Array.prototype, bn = Function.prototype, Ct = Object.prototype, jt = Xe["__core-js_shared__"], Nt = bn.toString, xe = Ct.hasOwnProperty, mr = function() {
5710
+ var o = /[^.]+$/.exec(jt && jt.keys && jt.keys.IE_PROTO || "");
5683
5711
  return o ? "Symbol(src)_1." + o : "";
5684
5712
  }(), yr = Ct.toString, Sn = Nt.call(Object), Tt = RegExp(
5685
5713
  "^" + Nt.call(xe).replace(hn, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
5686
- ), Ge = Ut ? Xe.Buffer : void 0, jt = Xe.Symbol, pe = Xe.Uint8Array;
5714
+ ), Ge = Mt ? Xe.Buffer : void 0, qt = Xe.Symbol, pe = Xe.Uint8Array;
5687
5715
  Ge && Ge.allocUnsafe;
5688
- var qt = In(Object.getPrototypeOf, Object), Wt = Object.create, On = Ct.propertyIsEnumerable, wr = vn.splice, ge = jt ? jt.toStringTag : void 0, it = function() {
5716
+ var Wt = In(Object.getPrototypeOf, Object), zt = Object.create, On = Ct.propertyIsEnumerable, wr = vn.splice, ge = qt ? qt.toStringTag : void 0, it = function() {
5689
5717
  try {
5690
- var o = Vt(Object, "defineProperty");
5718
+ var o = Yt(Object, "defineProperty");
5691
5719
  return o({}, "", {}), o;
5692
5720
  } catch {
5693
5721
  }
5694
- }(), Ir = Ge ? Ge.isBuffer : void 0, vr = Math.max, Be = Date.now, zt = Vt(Xe, "Map"), ot = Vt(Object, "create"), Cn = /* @__PURE__ */ function() {
5722
+ }(), Ir = Ge ? Ge.isBuffer : void 0, vr = Math.max, Be = Date.now, Jt = Yt(Xe, "Map"), ot = Yt(Object, "create"), Cn = /* @__PURE__ */ function() {
5695
5723
  function o() {
5696
5724
  }
5697
5725
  return function(c) {
5698
5726
  if (!Me(c))
5699
5727
  return {};
5700
- if (Wt)
5701
- return Wt(c);
5728
+ if (zt)
5729
+ return zt(c);
5702
5730
  o.prototype = c;
5703
5731
  var f = new o();
5704
5732
  return o.prototype = void 0, f;
@@ -5714,11 +5742,11 @@ zr.exports;
5714
5742
  function at() {
5715
5743
  this.__data__ = ot ? ot(null) : {}, this.size = 0;
5716
5744
  }
5717
- function Jt(o) {
5745
+ function Ht(o) {
5718
5746
  var c = this.has(o) && delete this.__data__[o];
5719
5747
  return this.size -= c ? 1 : 0, c;
5720
5748
  }
5721
- function Ht(o) {
5749
+ function Xt(o) {
5722
5750
  var c = this.__data__;
5723
5751
  if (ot) {
5724
5752
  var f = c[o];
@@ -5726,7 +5754,7 @@ zr.exports;
5726
5754
  }
5727
5755
  return xe.call(c, o) ? c[o] : void 0;
5728
5756
  }
5729
- function Xt(o) {
5757
+ function Gt(o) {
5730
5758
  var c = this.__data__;
5731
5759
  return ot ? c[o] !== void 0 : xe.call(c, o);
5732
5760
  }
@@ -5734,7 +5762,7 @@ zr.exports;
5734
5762
  var f = this.__data__;
5735
5763
  return this.size += this.has(o) ? 0 : 1, f[o] = ot && c === void 0 ? n : c, this;
5736
5764
  }
5737
- Se.prototype.clear = at, Se.prototype.delete = Jt, Se.prototype.get = Ht, Se.prototype.has = Xt, Se.prototype.set = st;
5765
+ Se.prototype.clear = at, Se.prototype.delete = Ht, Se.prototype.get = Xt, Se.prototype.has = Gt, Se.prototype.set = st;
5738
5766
  function Oe(o) {
5739
5767
  var c = -1, f = o == null ? 0 : o.length;
5740
5768
  for (this.clear(); ++c < f; ) {
@@ -5774,7 +5802,7 @@ zr.exports;
5774
5802
  function Ue() {
5775
5803
  this.size = 0, this.__data__ = {
5776
5804
  hash: new Se(),
5777
- map: new (zt || Oe)(),
5805
+ map: new (Jt || Oe)(),
5778
5806
  string: new Se()
5779
5807
  };
5780
5808
  }
@@ -5814,7 +5842,7 @@ zr.exports;
5814
5842
  var f = this.__data__;
5815
5843
  if (f instanceof Oe) {
5816
5844
  var O = f.__data__;
5817
- if (!zt || O.length < r - 1)
5845
+ if (!Jt || O.length < r - 1)
5818
5846
  return O.push([o, c]), this.size = ++f.size, this;
5819
5847
  f = this.__data__ = new ke(O);
5820
5848
  }
@@ -5822,21 +5850,21 @@ zr.exports;
5822
5850
  }
5823
5851
  Ve.prototype.clear = Ce, Ve.prototype.delete = Fn, Ve.prototype.get = Pn, Ve.prototype.has = Dn, Ve.prototype.set = Kn;
5824
5852
  function Ln(o, c) {
5825
- var f = Te(o), O = !f && Zt(o), T = !f && !O && ut(o), k = !f && !O && !T && er(o), K = f || O || T || k, F = K ? gr(o.length, String) : [], P = F.length;
5853
+ var f = Te(o), O = !f && Qt(o), T = !f && !O && ut(o), k = !f && !O && !T && tr(o), K = f || O || T || k, F = K ? gr(o.length, String) : [], P = F.length;
5826
5854
  for (var q in o)
5827
5855
  K && // Safari 9 has enumerable `arguments.length` in strict mode.
5828
5856
  (q == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
5829
5857
  T && (q == "offset" || q == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
5830
5858
  k && (q == "buffer" || q == "byteLength" || q == "byteOffset") || // Skip index properties.
5831
- Yt(q, P)) || F.push(q);
5859
+ Zt(q, P)) || F.push(q);
5832
5860
  return F;
5833
5861
  }
5834
5862
  function Ne(o, c, f) {
5835
- (f !== void 0 && !kt(o[c], f) || f === void 0 && !(c in o)) && Gt(o, c, f);
5863
+ (f !== void 0 && !kt(o[c], f) || f === void 0 && !(c in o)) && Vt(o, c, f);
5836
5864
  }
5837
5865
  function Bn(o, c, f) {
5838
5866
  var O = o[c];
5839
- (!(xe.call(o, c) && kt(O, f)) || f === void 0 && !(c in o)) && Gt(o, c, f);
5867
+ (!(xe.call(o, c) && kt(O, f)) || f === void 0 && !(c in o)) && Vt(o, c, f);
5840
5868
  }
5841
5869
  function Rt(o, c) {
5842
5870
  for (var f = o.length; f--; )
@@ -5844,7 +5872,7 @@ zr.exports;
5844
5872
  return f;
5845
5873
  return -1;
5846
5874
  }
5847
- function Gt(o, c, f) {
5875
+ function Vt(o, c, f) {
5848
5876
  c == "__proto__" && it ? it(o, c, {
5849
5877
  configurable: !0,
5850
5878
  enumerable: !0,
@@ -5862,7 +5890,7 @@ zr.exports;
5862
5890
  function Mn(o) {
5863
5891
  if (!Me(o) || Nr(o))
5864
5892
  return !1;
5865
- var c = Qt(o) ? Tt : gn;
5893
+ var c = er(o) ? Tt : gn;
5866
5894
  return c.test(ri(o));
5867
5895
  }
5868
5896
  function $n(o) {
@@ -5884,7 +5912,7 @@ zr.exports;
5884
5912
  var F = O ? O(me(o, K), k, K + "", o, c, T) : void 0;
5885
5913
  F === void 0 && (F = k), Ne(o, K, F);
5886
5914
  }
5887
- }, tr);
5915
+ }, rr);
5888
5916
  }
5889
5917
  function jn(o, c, f, O, T, k, K) {
5890
5918
  var F = me(o, f), P = me(c, f), q = K.get(P);
@@ -5894,8 +5922,8 @@ zr.exports;
5894
5922
  }
5895
5923
  var W = k ? k(F, P, f + "", o, c, K) : void 0, G = W === void 0;
5896
5924
  if (G) {
5897
- var se = Te(P), ce = !se && ut(P), Re = !se && !ce && er(P);
5898
- W = P, se || ce || Re ? Te(F) ? W = F : ni(F) ? W = Hn(F) : ce ? (G = !1, W = zn(P)) : Re ? (G = !1, W = At(P)) : W = [] : Tr(P) || Zt(P) ? (W = F, Zt(F) ? W = pt(F) : (!Me(F) || Qt(F)) && (W = Gn(P))) : G = !1;
5925
+ var se = Te(P), ce = !se && ut(P), Re = !se && !ce && tr(P);
5926
+ W = P, se || ce || Re ? Te(F) ? W = F : ni(F) ? W = Hn(F) : ce ? (G = !1, W = zn(P)) : Re ? (G = !1, W = At(P)) : W = [] : Tr(P) || Qt(P) ? (W = F, Qt(F) ? W = pt(F) : (!Me(F) || er(F)) && (W = Gn(P))) : G = !1;
5899
5927
  }
5900
5928
  G && (K.set(P, W), T(W, P, O, k, K), K.delete(P)), Ne(o, f, W);
5901
5929
  }
@@ -5932,7 +5960,7 @@ zr.exports;
5932
5960
  f || (f = {});
5933
5961
  for (var k = -1, K = c.length; ++k < K; ) {
5934
5962
  var F = c[k], P = void 0;
5935
- P === void 0 && (P = o[F]), T ? Gt(f, F, P) : Bn(f, F, P);
5963
+ P === void 0 && (P = o[F]), T ? Vt(f, F, P) : Bn(f, F, P);
5936
5964
  }
5937
5965
  return f;
5938
5966
  }
@@ -5960,7 +5988,7 @@ zr.exports;
5960
5988
  var f = o.__data__;
5961
5989
  return Yn(c) ? f[typeof c == "string" ? "string" : "hash"] : f.map;
5962
5990
  }
5963
- function Vt(o, c) {
5991
+ function Yt(o, c) {
5964
5992
  var f = wn(o, c);
5965
5993
  return Mn(f) ? f : void 0;
5966
5994
  }
@@ -5975,9 +6003,9 @@ zr.exports;
5975
6003
  return O && (c ? o[ge] = f : delete o[ge]), T;
5976
6004
  }
5977
6005
  function Gn(o) {
5978
- return typeof o.constructor == "function" && !lt(o) ? Cn(qt(o)) : {};
6006
+ return typeof o.constructor == "function" && !lt(o) ? Cn(Wt(o)) : {};
5979
6007
  }
5980
- function Yt(o, c) {
6008
+ function Zt(o, c) {
5981
6009
  var f = typeof o;
5982
6010
  return c = c ?? s, !!c && (f == "number" || f != "symbol" && mn.test(o)) && o > -1 && o % 1 == 0 && o < c;
5983
6011
  }
@@ -5985,7 +6013,7 @@ zr.exports;
5985
6013
  if (!Me(f))
5986
6014
  return !1;
5987
6015
  var O = typeof c;
5988
- return (O == "number" ? Et(f) && Yt(c, f.length) : O == "string" && c in f) ? kt(f[c], o) : !1;
6016
+ return (O == "number" ? Et(f) && Zt(c, f.length) : O == "string" && c in f) ? kt(f[c], o) : !1;
5989
6017
  }
5990
6018
  function Yn(o) {
5991
6019
  var c = typeof o;
@@ -6051,19 +6079,19 @@ zr.exports;
6051
6079
  function kt(o, c) {
6052
6080
  return o === c || o !== o && c !== c;
6053
6081
  }
6054
- var Zt = ct(/* @__PURE__ */ function() {
6082
+ var Qt = ct(/* @__PURE__ */ function() {
6055
6083
  return arguments;
6056
6084
  }()) ? ct : function(o) {
6057
6085
  return Ze(o) && xe.call(o, "callee") && !On.call(o, "callee");
6058
6086
  }, Te = Array.isArray;
6059
6087
  function Et(o) {
6060
- return o != null && Ft(o.length) && !Qt(o);
6088
+ return o != null && Ft(o.length) && !er(o);
6061
6089
  }
6062
6090
  function ni(o) {
6063
6091
  return Ze(o) && Et(o);
6064
6092
  }
6065
6093
  var ut = Ir || d;
6066
- function Qt(o) {
6094
+ function er(o) {
6067
6095
  if (!Me(o))
6068
6096
  return !1;
6069
6097
  var c = _t(o);
@@ -6082,17 +6110,17 @@ zr.exports;
6082
6110
  function Tr(o) {
6083
6111
  if (!Ze(o) || _t(o) != _)
6084
6112
  return !1;
6085
- var c = qt(o);
6113
+ var c = Wt(o);
6086
6114
  if (c === null)
6087
6115
  return !0;
6088
6116
  var f = xe.call(c, "constructor") && c.constructor;
6089
6117
  return typeof f == "function" && f instanceof f && Nt.call(f) == Sn;
6090
6118
  }
6091
- var er = Ot ? yn(Ot) : $n;
6119
+ var tr = Ot ? yn(Ot) : $n;
6092
6120
  function pt(o) {
6093
- return dt(o, tr(o));
6121
+ return dt(o, rr(o));
6094
6122
  }
6095
- function tr(o) {
6123
+ function rr(o) {
6096
6124
  return Et(o) ? Ln(o) : Ee(o);
6097
6125
  }
6098
6126
  var ii = Or(function(o, c, f, O) {
@@ -6111,10 +6139,10 @@ zr.exports;
6111
6139
  }
6112
6140
  e.exports = ii;
6113
6141
  })(zr, zr.exports);
6114
- var gu = zr.exports;
6115
- const qe = /* @__PURE__ */ Ni(gu);
6116
- var mu = (e) => /!(important)?$/.test(e), Vi = (e) => typeof e == "string" ? e.replace(/!(important)?$/, "").trim() : e, yu = (e, t) => (r) => {
6117
- const n = String(t), i = mu(n), a = Vi(n), s = e ? `${e}.${a}` : a;
6142
+ var mu = zr.exports;
6143
+ const qe = /* @__PURE__ */ Ni(mu);
6144
+ var yu = (e) => /!(important)?$/.test(e), Vi = (e) => typeof e == "string" ? e.replace(/!(important)?$/, "").trim() : e, wu = (e, t) => (r) => {
6145
+ const n = String(t), i = yu(n), a = Vi(n), s = e ? `${e}.${a}` : a;
6118
6146
  let u = mt(r.__cssMap) && s in r.__cssMap ? r.__cssMap[s].varRef : t;
6119
6147
  return u = Vi(u), i ? `${u} !important` : u;
6120
6148
  };
@@ -6122,7 +6150,7 @@ function Ei(e) {
6122
6150
  const { scale: t, transform: r, compose: n } = e;
6123
6151
  return (a, s) => {
6124
6152
  var u;
6125
- const p = yu(t, a)(s);
6153
+ const p = wu(t, a)(s);
6126
6154
  let h = (u = r == null ? void 0 : r(p, s)) != null ? u : p;
6127
6155
  return n && (h = n(h, s)), h;
6128
6156
  };
@@ -6137,39 +6165,39 @@ function ye(e, t) {
6137
6165
  }), n;
6138
6166
  };
6139
6167
  }
6140
- var wu = ({ rtl: e, ltr: t }) => (r) => r.direction === "rtl" ? e : t;
6141
- function Iu(e) {
6168
+ var Iu = ({ rtl: e, ltr: t }) => (r) => r.direction === "rtl" ? e : t;
6169
+ function vu(e) {
6142
6170
  const { property: t, scale: r, transform: n } = e;
6143
6171
  return {
6144
6172
  scale: r,
6145
- property: wu(t),
6173
+ property: Iu(t),
6146
6174
  transform: r ? Ei({
6147
6175
  scale: r,
6148
6176
  compose: n
6149
6177
  }) : n
6150
6178
  };
6151
6179
  }
6152
- var sa = [
6180
+ var ca = [
6153
6181
  "rotate(var(--chakra-rotate, 0))",
6154
6182
  "scaleX(var(--chakra-scale-x, 1))",
6155
6183
  "scaleY(var(--chakra-scale-y, 1))",
6156
6184
  "skewX(var(--chakra-skew-x, 0))",
6157
6185
  "skewY(var(--chakra-skew-y, 0))"
6158
6186
  ];
6159
- function vu() {
6187
+ function bu() {
6160
6188
  return [
6161
6189
  "translateX(var(--chakra-translate-x, 0))",
6162
6190
  "translateY(var(--chakra-translate-y, 0))",
6163
- ...sa
6191
+ ...ca
6164
6192
  ].join(" ");
6165
6193
  }
6166
- function bu() {
6194
+ function Su() {
6167
6195
  return [
6168
6196
  "translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",
6169
- ...sa
6197
+ ...ca
6170
6198
  ].join(" ");
6171
6199
  }
6172
- var Su = {
6200
+ var Ou = {
6173
6201
  "--chakra-blur": "var(--chakra-empty,/*!*/ /*!*/)",
6174
6202
  "--chakra-brightness": "var(--chakra-empty,/*!*/ /*!*/)",
6175
6203
  "--chakra-contrast": "var(--chakra-empty,/*!*/ /*!*/)",
@@ -6190,7 +6218,7 @@ var Su = {
6190
6218
  "var(--chakra-sepia)",
6191
6219
  "var(--chakra-drop-shadow)"
6192
6220
  ].join(" ")
6193
- }, Ou = {
6221
+ }, Cu = {
6194
6222
  backdropFilter: [
6195
6223
  "var(--chakra-backdrop-blur)",
6196
6224
  "var(--chakra-backdrop-brightness)",
@@ -6212,7 +6240,7 @@ var Su = {
6212
6240
  "--chakra-backdrop-saturate": "var(--chakra-empty,/*!*/ /*!*/)",
6213
6241
  "--chakra-backdrop-sepia": "var(--chakra-empty,/*!*/ /*!*/)"
6214
6242
  };
6215
- function Cu(e) {
6243
+ function Nu(e) {
6216
6244
  return {
6217
6245
  "--chakra-ring-offset-shadow": "var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)",
6218
6246
  "--chakra-ring-shadow": "var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)",
@@ -6224,7 +6252,7 @@ function Cu(e) {
6224
6252
  ].join(", ")
6225
6253
  };
6226
6254
  }
6227
- var Nu = {
6255
+ var Tu = {
6228
6256
  "row-reverse": {
6229
6257
  space: "--chakra-space-x-reverse",
6230
6258
  divide: "--chakra-divide-x-reverse"
@@ -6242,15 +6270,15 @@ var Nu = {
6242
6270
  "to-bl": "to bottom left",
6243
6271
  "to-l": "to left",
6244
6272
  "to-tl": "to top left"
6245
- }, Tu = new Set(Object.values(yi)), wi = /* @__PURE__ */ new Set([
6273
+ }, Ru = new Set(Object.values(yi)), wi = /* @__PURE__ */ new Set([
6246
6274
  "none",
6247
6275
  "-moz-initial",
6248
6276
  "inherit",
6249
6277
  "initial",
6250
6278
  "revert",
6251
6279
  "unset"
6252
- ]), Ru = (e) => e.trim();
6253
- function _u(e, t) {
6280
+ ]), _u = (e) => e.trim();
6281
+ function Au(e, t) {
6254
6282
  if (e == null || wi.has(e))
6255
6283
  return e;
6256
6284
  if (!(Ii(e) || wi.has(e)))
@@ -6258,13 +6286,13 @@ function _u(e, t) {
6258
6286
  const i = /(^[a-z-A-Z]+)\((.*)\)/g.exec(e), a = i == null ? void 0 : i[1], s = i == null ? void 0 : i[2];
6259
6287
  if (!a || !s)
6260
6288
  return e;
6261
- const u = a.includes("-gradient") ? a : `${a}-gradient`, [p, ...h] = s.split(",").map(Ru).filter(Boolean);
6289
+ const u = a.includes("-gradient") ? a : `${a}-gradient`, [p, ...h] = s.split(",").map(_u).filter(Boolean);
6262
6290
  if ((h == null ? void 0 : h.length) === 0)
6263
6291
  return e;
6264
6292
  const m = p in yi ? yi[p] : p;
6265
6293
  h.unshift(m);
6266
6294
  const w = h.map((y) => {
6267
- if (Tu.has(y))
6295
+ if (Ru.has(y))
6268
6296
  return y;
6269
6297
  const I = y.indexOf(" "), [b, v] = I !== -1 ? [y.substr(0, I), y.substr(I + 1)] : [y], S = Ii(v) ? v : v && v.split(" "), N = `colors.${b}`, _ = N in t.__cssMap ? t.__cssMap[N].varRef : b;
6270
6298
  return S ? [
@@ -6274,28 +6302,28 @@ function _u(e, t) {
6274
6302
  });
6275
6303
  return `${u}(${w.join(", ")})`;
6276
6304
  }
6277
- var Ii = (e) => typeof e == "string" && e.includes("(") && e.includes(")"), Au = (e, t) => _u(e, t ?? {});
6278
- function xu(e) {
6305
+ var Ii = (e) => typeof e == "string" && e.includes("(") && e.includes(")"), xu = (e, t) => Au(e, t ?? {});
6306
+ function ku(e) {
6279
6307
  return /^var\(--.+\)$/.test(e);
6280
6308
  }
6281
- var ku = (e) => {
6309
+ var Eu = (e) => {
6282
6310
  const t = parseFloat(e.toString()), r = e.toString().replace(String(t), "");
6283
6311
  return { unitless: !r, value: t, unit: r };
6284
6312
  }, Fe = (e) => (t) => `${e}(${t})`, L = {
6285
6313
  filter(e) {
6286
- return e !== "auto" ? e : Su;
6314
+ return e !== "auto" ? e : Ou;
6287
6315
  },
6288
6316
  backdropFilter(e) {
6289
- return e !== "auto" ? e : Ou;
6317
+ return e !== "auto" ? e : Cu;
6290
6318
  },
6291
6319
  ring(e) {
6292
- return Cu(L.px(e));
6320
+ return Nu(L.px(e));
6293
6321
  },
6294
6322
  bgClip(e) {
6295
6323
  return e === "text" ? { color: "transparent", backgroundClip: "text" } : { backgroundClip: e };
6296
6324
  },
6297
6325
  transform(e) {
6298
- return e === "auto" ? vu() : e === "auto-gpu" ? bu() : e;
6326
+ return e === "auto" ? bu() : e === "auto-gpu" ? Su() : e;
6299
6327
  },
6300
6328
  vh(e) {
6301
6329
  return e === "$100vh" ? "var(--chakra-vh)" : e;
@@ -6303,7 +6331,7 @@ var ku = (e) => {
6303
6331
  px(e) {
6304
6332
  if (e == null)
6305
6333
  return e;
6306
- const { unitless: t } = ku(e);
6334
+ const { unitless: t } = Eu(e);
6307
6335
  return t || typeof e == "number" ? `${e}px` : e;
6308
6336
  },
6309
6337
  fraction(e) {
@@ -6314,12 +6342,12 @@ var ku = (e) => {
6314
6342
  return t.direction === "rtl" ? r[e] : e;
6315
6343
  },
6316
6344
  degree(e) {
6317
- if (xu(e) || e == null)
6345
+ if (ku(e) || e == null)
6318
6346
  return e;
6319
6347
  const t = typeof e == "string" && !e.endsWith("deg");
6320
6348
  return typeof e == "number" || t ? `${e}deg` : e;
6321
6349
  },
6322
- gradient: Au,
6350
+ gradient: xu,
6323
6351
  blur: Fe("blur"),
6324
6352
  opacity: Fe("opacity"),
6325
6353
  brightness: Fe("brightness"),
@@ -6339,7 +6367,7 @@ var ku = (e) => {
6339
6367
  },
6340
6368
  flexDirection(e) {
6341
6369
  var t;
6342
- const { space: r, divide: n } = (t = Nu[e]) != null ? t : {}, i = { flexDirection: e };
6370
+ const { space: r, divide: n } = (t = Tu[e]) != null ? t : {}, i = { flexDirection: e };
6343
6371
  return r && (i[r] = 1), n && (i[n] = 1), i;
6344
6372
  }
6345
6373
  }, g = {
@@ -6369,7 +6397,7 @@ var ku = (e) => {
6369
6397
  sizes: ye("sizes", Fr(L.vh, L.px)),
6370
6398
  sizesT: ye("sizes", Fr(L.vh, L.fraction)),
6371
6399
  shadows: ye("shadows"),
6372
- logical: Iu,
6400
+ logical: vu,
6373
6401
  blur: ye("blur", L.blur)
6374
6402
  }, Kr = {
6375
6403
  background: g.colors("background"),
@@ -6527,7 +6555,7 @@ Object.assign(B, {
6527
6555
  borderStartStyle: B.borderInlineStartStyle,
6528
6556
  borderEndStyle: B.borderInlineEndStyle
6529
6557
  });
6530
- var Eu = {
6558
+ var Fu = {
6531
6559
  color: g.colors("color"),
6532
6560
  textColor: g.colors("color"),
6533
6561
  fill: g.colors("fill"),
@@ -6543,7 +6571,7 @@ var Eu = {
6543
6571
  Object.assign(vi, {
6544
6572
  shadow: vi.boxShadow
6545
6573
  });
6546
- var Fu = {
6574
+ var Pu = {
6547
6575
  filter: { transform: L.filter },
6548
6576
  blur: g.blur("--chakra-blur"),
6549
6577
  brightness: g.propT("--chakra-brightness", L.brightness),
@@ -6590,7 +6618,7 @@ var Fu = {
6590
6618
  Object.assign(Jr, {
6591
6619
  flexDir: Jr.flexDirection
6592
6620
  });
6593
- var ca = {
6621
+ var da = {
6594
6622
  gridGap: g.space("gridGap"),
6595
6623
  gridColumnGap: g.space("gridColumnGap"),
6596
6624
  gridRowGap: g.space("gridRowGap"),
@@ -6608,7 +6636,7 @@ var ca = {
6608
6636
  gridTemplateRows: !0,
6609
6637
  gridTemplateAreas: !0,
6610
6638
  gridArea: !0
6611
- }, Pu = {
6639
+ }, Du = {
6612
6640
  appearance: !0,
6613
6641
  cursor: !0,
6614
6642
  resize: !0,
@@ -6673,20 +6701,20 @@ Object.assign(we, {
6673
6701
  overscrollX: we.overscrollBehaviorX,
6674
6702
  overscrollY: we.overscrollBehaviorY
6675
6703
  });
6676
- var Du = {
6704
+ var Ku = {
6677
6705
  listStyleType: !0,
6678
6706
  listStylePosition: !0,
6679
6707
  listStylePos: g.prop("listStylePosition"),
6680
6708
  listStyleImage: !0,
6681
6709
  listStyleImg: g.prop("listStyleImage")
6682
6710
  };
6683
- function Ku(e, t, r, n) {
6711
+ function Lu(e, t, r, n) {
6684
6712
  const i = typeof t == "string" ? t.split(".") : [t];
6685
6713
  for (n = 0; n < i.length && e; n += 1)
6686
6714
  e = e[i[n]];
6687
6715
  return e === void 0 ? r : e;
6688
6716
  }
6689
- var Lu = (e) => {
6717
+ var Bu = (e) => {
6690
6718
  const t = /* @__PURE__ */ new WeakMap();
6691
6719
  return (n, i, a, s) => {
6692
6720
  if (typeof n > "u")
@@ -6698,7 +6726,7 @@ var Lu = (e) => {
6698
6726
  const p = e(n, i, a, s);
6699
6727
  return u.set(i, p), p;
6700
6728
  };
6701
- }, Bu = Lu(Ku), Uu = {
6729
+ }, Uu = Bu(Lu), Mu = {
6702
6730
  border: "0px",
6703
6731
  clip: "rect(0, 0, 0, 0)",
6704
6732
  width: "1px",
@@ -6708,7 +6736,7 @@ var Lu = (e) => {
6708
6736
  overflow: "hidden",
6709
6737
  whiteSpace: "nowrap",
6710
6738
  position: "absolute"
6711
- }, Mu = {
6739
+ }, $u = {
6712
6740
  position: "static",
6713
6741
  width: "auto",
6714
6742
  height: "auto",
@@ -6718,14 +6746,14 @@ var Lu = (e) => {
6718
6746
  overflow: "visible",
6719
6747
  whiteSpace: "normal"
6720
6748
  }, di = (e, t, r) => {
6721
- const n = {}, i = Bu(e, t, {});
6749
+ const n = {}, i = Uu(e, t, {});
6722
6750
  for (const a in i)
6723
6751
  a in r && r[a] != null || (n[a] = i[a]);
6724
6752
  return n;
6725
- }, $u = {
6753
+ }, ju = {
6726
6754
  srOnly: {
6727
6755
  transform(e) {
6728
- return e === !0 ? Uu : e === "focusable" ? Mu : {};
6756
+ return e === !0 ? Mu : e === "focusable" ? $u : {};
6729
6757
  }
6730
6758
  },
6731
6759
  layerStyle: {
@@ -6740,7 +6768,7 @@ var Lu = (e) => {
6740
6768
  processResult: !0,
6741
6769
  transform: (e, t, r) => di(t, e, r)
6742
6770
  }
6743
- }, or = {
6771
+ }, ar = {
6744
6772
  position: !0,
6745
6773
  pos: g.prop("position"),
6746
6774
  zIndex: g.prop("zIndex", "zIndices"),
@@ -6764,11 +6792,11 @@ var Lu = (e) => {
6764
6792
  property: { ltr: "right", rtl: "left" }
6765
6793
  })
6766
6794
  };
6767
- Object.assign(or, {
6768
- insetStart: or.insetInlineStart,
6769
- insetEnd: or.insetInlineEnd
6795
+ Object.assign(ar, {
6796
+ insetStart: ar.insetInlineStart,
6797
+ insetEnd: ar.insetInlineEnd
6770
6798
  });
6771
- var ju = {
6799
+ var qu = {
6772
6800
  ring: { transform: L.ring },
6773
6801
  ringColor: g.colors("--chakra-ring-color"),
6774
6802
  ringOffset: g.prop("--chakra-ring-offset-width"),
@@ -6826,7 +6854,7 @@ Object.assign(z, {
6826
6854
  pe: z.paddingInlineEnd,
6827
6855
  paddingEnd: z.paddingInlineEnd
6828
6856
  });
6829
- var qu = {
6857
+ var Wu = {
6830
6858
  textDecorationColor: g.colors("textDecorationColor"),
6831
6859
  textDecoration: !0,
6832
6860
  textDecor: { property: "textDecoration" },
@@ -6835,7 +6863,7 @@ var qu = {
6835
6863
  textDecorationThickness: !0,
6836
6864
  textUnderlineOffset: !0,
6837
6865
  textShadow: g.shadows("textShadow")
6838
- }, Wu = {
6866
+ }, zu = {
6839
6867
  clipPath: !0,
6840
6868
  transform: g.propT("transform", L.transform),
6841
6869
  transformOrigin: !0,
@@ -6847,7 +6875,7 @@ var qu = {
6847
6875
  scaleY: g.prop("--chakra-scale-y"),
6848
6876
  scale: g.prop(["--chakra-scale-x", "--chakra-scale-y"]),
6849
6877
  rotate: g.degreeT("--chakra-rotate")
6850
- }, zu = {
6878
+ }, Ju = {
6851
6879
  transition: !0,
6852
6880
  transitionDelay: !0,
6853
6881
  animation: !0,
@@ -6858,7 +6886,7 @@ var qu = {
6858
6886
  "transitionTimingFunction",
6859
6887
  "transition.easing"
6860
6888
  )
6861
- }, Ju = {
6889
+ }, Hu = {
6862
6890
  fontFamily: g.prop("fontFamily", "fonts"),
6863
6891
  fontSize: g.prop("fontSize", "fontSizes", L.px),
6864
6892
  fontWeight: g.prop("fontWeight", "fontWeights"),
@@ -6893,7 +6921,7 @@ var qu = {
6893
6921
  },
6894
6922
  property: "--chakra-line-clamp"
6895
6923
  }
6896
- }, Hu = {
6924
+ }, Xu = {
6897
6925
  scrollBehavior: !0,
6898
6926
  scrollSnapAlign: !0,
6899
6927
  scrollSnapStop: !0,
@@ -6915,19 +6943,19 @@ var qu = {
6915
6943
  scrollPaddingX: g.spaceT(["scrollPaddingLeft", "scrollPaddingRight"]),
6916
6944
  scrollPaddingY: g.spaceT(["scrollPaddingTop", "scrollPaddingBottom"])
6917
6945
  };
6918
- function da(e) {
6946
+ function la(e) {
6919
6947
  return mt(e) && e.reference ? e.reference : String(e);
6920
6948
  }
6921
- var an = (e, ...t) => t.map(da).join(` ${e} `).replace(/calc/g, ""), Yi = (...e) => `calc(${an("+", ...e)})`, Zi = (...e) => `calc(${an("-", ...e)})`, bi = (...e) => `calc(${an("*", ...e)})`, Qi = (...e) => `calc(${an("/", ...e)})`, eo = (e) => {
6922
- const t = da(e);
6949
+ var an = (e, ...t) => t.map(la).join(` ${e} `).replace(/calc/g, ""), Yi = (...e) => `calc(${an("+", ...e)})`, Zi = (...e) => `calc(${an("-", ...e)})`, bi = (...e) => `calc(${an("*", ...e)})`, Qi = (...e) => `calc(${an("/", ...e)})`, eo = (e) => {
6950
+ const t = la(e);
6923
6951
  return t != null && !Number.isNaN(parseFloat(t)) ? String(t).startsWith("-") ? String(t).slice(1) : `-${t}` : bi(t, -1);
6924
- }, ir = Object.assign(
6952
+ }, or = Object.assign(
6925
6953
  (e) => ({
6926
- add: (...t) => ir(Yi(e, ...t)),
6927
- subtract: (...t) => ir(Zi(e, ...t)),
6928
- multiply: (...t) => ir(bi(e, ...t)),
6929
- divide: (...t) => ir(Qi(e, ...t)),
6930
- negate: () => ir(eo(e)),
6954
+ add: (...t) => or(Yi(e, ...t)),
6955
+ subtract: (...t) => or(Zi(e, ...t)),
6956
+ multiply: (...t) => or(bi(e, ...t)),
6957
+ divide: (...t) => or(Qi(e, ...t)),
6958
+ negate: () => or(eo(e)),
6931
6959
  toString: () => e.toString()
6932
6960
  }),
6933
6961
  {
@@ -6938,17 +6966,17 @@ var an = (e, ...t) => t.map(da).join(` ${e} `).replace(/calc/g, ""), Yi = (...e)
6938
6966
  negate: eo
6939
6967
  }
6940
6968
  );
6941
- function Xu(e) {
6969
+ function Gu(e) {
6942
6970
  const t = parseFloat(e.toString()), r = e.toString().replace(String(t), "");
6943
6971
  return { unitless: !r, value: t, unit: r };
6944
6972
  }
6945
6973
  function to(e) {
6946
6974
  if (e == null)
6947
6975
  return e;
6948
- const { unitless: t } = Xu(e);
6976
+ const { unitless: t } = Gu(e);
6949
6977
  return t || typeof e == "number" ? `${e}px` : e;
6950
6978
  }
6951
- function Gu(e, t) {
6979
+ function Vu(e, t) {
6952
6980
  const r = ["@media screen"];
6953
6981
  return e && r.push("and", `(min-width: ${to(e)})`), t && r.push("and", `(max-width: ${to(t)})`), r.join(" ");
6954
6982
  }
@@ -6965,7 +6993,7 @@ var oe = {
6965
6993
  readOnly: (e, t) => `${e}:read-only ${t}, ${e}[readonly] ${t}, ${e}[data-read-only] ${t}`,
6966
6994
  expanded: (e, t) => `${e}:read-only ${t}, ${e}[aria-expanded=true] ${t}, ${e}[data-expanded] ${t}`,
6967
6995
  placeholderShown: (e, t) => `${e}:placeholder-shown ${t}`
6968
- }, 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(", "), Fi = {
6996
+ }, 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(", "), Fi = {
6969
6997
  /**
6970
6998
  * Styles for CSS selector `&:hover`
6971
6999
  */
@@ -7253,32 +7281,32 @@ var oe = {
7253
7281
  * Styles for the CSS Selector `&[data-orientation=vertical]`
7254
7282
  */
7255
7283
  _vertical: "&[data-orientation=vertical]"
7256
- }, Vu = Object.keys(
7284
+ }, Yu = Object.keys(
7257
7285
  Fi
7258
7286
  ), Pi = qe(
7259
7287
  {},
7260
7288
  Kr,
7261
7289
  B,
7262
- Eu,
7290
+ Fu,
7263
7291
  Jr,
7264
7292
  we,
7265
- Fu,
7266
- ju,
7267
7293
  Pu,
7268
- ca,
7269
- $u,
7270
- or,
7294
+ qu,
7295
+ Du,
7296
+ da,
7297
+ ju,
7298
+ ar,
7271
7299
  vi,
7272
7300
  z,
7301
+ Xu,
7273
7302
  Hu,
7274
- Ju,
7275
- qu,
7276
7303
  Wu,
7277
- Du,
7278
- zu
7304
+ zu,
7305
+ Ku,
7306
+ Ju
7279
7307
  );
7280
- Object.assign({}, z, we, Jr, ca, or);
7281
- var Yu = [...Object.keys(Pi), ...Vu], Zu = { ...Pi, ...Fi }, Qu = (e) => e in Zu, ep = (e) => (t) => {
7308
+ Object.assign({}, z, we, Jr, da, ar);
7309
+ var Zu = [...Object.keys(Pi), ...Yu], Qu = { ...Pi, ...Fi }, ep = (e) => e in Qu, tp = (e) => (t) => {
7282
7310
  if (!t.__breakpoints)
7283
7311
  return e;
7284
7312
  const { isResponsive: r, toArrayValue: n, media: i } = t.__breakpoints, a = {};
@@ -7302,7 +7330,7 @@ var Yu = [...Object.keys(Pi), ...Vu], Zu = { ...Pi, ...Fi }, Qu = (e) => e in Zu
7302
7330
  }
7303
7331
  return a;
7304
7332
  };
7305
- function tp(e) {
7333
+ function rp(e) {
7306
7334
  const t = [];
7307
7335
  let r = "", n = !1;
7308
7336
  for (let i = 0; i < e.length; i++) {
@@ -7311,10 +7339,10 @@ function tp(e) {
7311
7339
  }
7312
7340
  return r = r.trim(), r && t.push(r), t;
7313
7341
  }
7314
- function rp(e) {
7342
+ function np(e) {
7315
7343
  return /^var\(--.+\)$/.test(e);
7316
7344
  }
7317
- var np = (e, t) => e.startsWith("--") && typeof t == "string" && !rp(t), ip = (e, t) => {
7345
+ var ip = (e, t) => e.startsWith("--") && typeof t == "string" && !np(t), op = (e, t) => {
7318
7346
  var r, n;
7319
7347
  if (t == null)
7320
7348
  return t;
@@ -7324,18 +7352,18 @@ var np = (e, t) => e.startsWith("--") && typeof t == "string" && !rp(t), ip = (e
7324
7352
  }, a = (p) => {
7325
7353
  var h;
7326
7354
  return (h = i(p)) != null ? h : p;
7327
- }, [s, u] = tp(t);
7355
+ }, [s, u] = rp(t);
7328
7356
  return t = (n = (r = i(s)) != null ? r : a(u)) != null ? n : a(t), t;
7329
7357
  };
7330
- function op(e) {
7358
+ function ap(e) {
7331
7359
  const { configs: t = {}, pseudos: r = {}, theme: n } = e, i = (a, s = !1) => {
7332
7360
  var u, p, h;
7333
- const m = gt(a, n), w = ep(m)(n);
7361
+ const m = gt(a, n), w = tp(m)(n);
7334
7362
  let y = {};
7335
7363
  for (let I in w) {
7336
7364
  const b = w[I];
7337
7365
  let v = gt(b, n);
7338
- I in r && (I = r[I]), np(I, v) && (v = ip(n, v));
7366
+ I in r && (I = r[I]), ip(I, v) && (v = op(n, v));
7339
7367
  let S = t[I];
7340
7368
  if (S === !0 && (S = { property: I }), mt(v)) {
7341
7369
  y[I] = (u = y[I]) != null ? u : {}, y[I] = qe(
@@ -7371,12 +7399,12 @@ function op(e) {
7371
7399
  };
7372
7400
  return i;
7373
7401
  }
7374
- var ap = (e) => (t) => op({
7402
+ var sp = (e) => (t) => ap({
7375
7403
  theme: t,
7376
7404
  pseudos: Fi,
7377
7405
  configs: Pi
7378
7406
  })(e);
7379
- function sp(e, t) {
7407
+ function cp(e, t) {
7380
7408
  if (Array.isArray(e))
7381
7409
  return e;
7382
7410
  if (mt(e))
@@ -7384,24 +7412,24 @@ function sp(e, t) {
7384
7412
  if (e != null)
7385
7413
  return [e];
7386
7414
  }
7387
- function cp(e, t) {
7415
+ function dp(e, t) {
7388
7416
  for (let r = t + 1; r < e.length; r++)
7389
7417
  if (e[r] != null)
7390
7418
  return r;
7391
7419
  return -1;
7392
7420
  }
7393
- function dp(e) {
7421
+ function lp(e) {
7394
7422
  const t = e.__breakpoints;
7395
7423
  return function(n, i, a, s) {
7396
7424
  var u, p;
7397
7425
  if (!t)
7398
7426
  return;
7399
- const h = {}, m = sp(a, t.toArrayValue);
7427
+ const h = {}, m = cp(a, t.toArrayValue);
7400
7428
  if (!m)
7401
7429
  return h;
7402
7430
  const w = m.length, y = w === 1, I = !!n.parts;
7403
7431
  for (let b = 0; b < w; b++) {
7404
- const v = t.details[b], S = t.details[cp(m, b)], N = Gu(v.minW, S == null ? void 0 : S._minW), _ = gt((u = n[i]) == null ? void 0 : u[m[b]], s);
7432
+ const v = t.details[b], S = t.details[dp(m, b)], N = Vu(v.minW, S == null ? void 0 : S._minW), _ = gt((u = n[i]) == null ? void 0 : u[m[b]], s);
7405
7433
  if (_) {
7406
7434
  if (I) {
7407
7435
  (p = n.parts) == null || p.forEach((D) => {
@@ -7421,10 +7449,10 @@ function dp(e) {
7421
7449
  return h;
7422
7450
  };
7423
7451
  }
7424
- function lp(e) {
7452
+ function up(e) {
7425
7453
  return (t) => {
7426
7454
  var r;
7427
- const { variant: n, size: i, theme: a } = t, s = dp(a);
7455
+ const { variant: n, size: i, theme: a } = t, s = lp(a);
7428
7456
  return qe(
7429
7457
  {},
7430
7458
  gt((r = e.baseStyle) != null ? r : {}, t),
@@ -7433,19 +7461,19 @@ function lp(e) {
7433
7461
  );
7434
7462
  };
7435
7463
  }
7436
- function up(e, t) {
7464
+ function pp(e, t) {
7437
7465
  const r = {};
7438
7466
  return Object.keys(e).forEach((n) => {
7439
7467
  t.includes(n) || (r[n] = e[n]);
7440
7468
  }), r;
7441
7469
  }
7442
- function pp(e, t, r, n) {
7470
+ function fp(e, t, r, n) {
7443
7471
  const i = typeof t == "string" ? t.split(".") : [t];
7444
7472
  for (n = 0; n < i.length && e; n += 1)
7445
7473
  e = e[i[n]];
7446
7474
  return e === void 0 ? r : e;
7447
7475
  }
7448
- var fp = (e) => {
7476
+ var hp = (e) => {
7449
7477
  const t = /* @__PURE__ */ new WeakMap();
7450
7478
  return (n, i, a, s) => {
7451
7479
  if (typeof n > "u")
@@ -7457,24 +7485,24 @@ var fp = (e) => {
7457
7485
  const p = e(n, i, a, s);
7458
7486
  return u.set(i, p), p;
7459
7487
  };
7460
- }, hp = fp(pp);
7461
- function ua(e, t) {
7488
+ }, gp = hp(fp);
7489
+ function pa(e, t) {
7462
7490
  const r = {};
7463
7491
  return Object.keys(e).forEach((n) => {
7464
7492
  const i = e[n];
7465
7493
  t(i, n, e) && (r[n] = i);
7466
7494
  }), r;
7467
7495
  }
7468
- var pa = (e) => ua(e, (t) => t != null);
7469
- function gp(e) {
7496
+ var fa = (e) => pa(e, (t) => t != null);
7497
+ function mp(e) {
7470
7498
  return typeof e == "function";
7471
7499
  }
7472
7500
  process.env.NODE_ENV;
7473
7501
  process.env.NODE_ENV;
7474
- function mp(e, ...t) {
7475
- return gp(e) ? e(...t) : e;
7502
+ function yp(e, ...t) {
7503
+ return mp(e) ? e(...t) : e;
7476
7504
  }
7477
- var yp = typeof Element < "u", wp = typeof Map == "function", Ip = typeof Set == "function", vp = typeof ArrayBuffer == "function" && !!ArrayBuffer.isView;
7505
+ var wp = typeof Element < "u", Ip = typeof Map == "function", vp = typeof Set == "function", bp = typeof ArrayBuffer == "function" && !!ArrayBuffer.isView;
7478
7506
  function Lr(e, t) {
7479
7507
  if (e === t) return !0;
7480
7508
  if (e && t && typeof e == "object" && typeof t == "object") {
@@ -7487,7 +7515,7 @@ function Lr(e, t) {
7487
7515
  return !0;
7488
7516
  }
7489
7517
  var a;
7490
- if (wp && e instanceof Map && t instanceof Map) {
7518
+ if (Ip && e instanceof Map && t instanceof Map) {
7491
7519
  if (e.size !== t.size) return !1;
7492
7520
  for (a = e.entries(); !(n = a.next()).done; )
7493
7521
  if (!t.has(n.value[0])) return !1;
@@ -7495,13 +7523,13 @@ function Lr(e, t) {
7495
7523
  if (!Lr(n.value[1], t.get(n.value[0]))) return !1;
7496
7524
  return !0;
7497
7525
  }
7498
- if (Ip && e instanceof Set && t instanceof Set) {
7526
+ if (vp && e instanceof Set && t instanceof Set) {
7499
7527
  if (e.size !== t.size) return !1;
7500
7528
  for (a = e.entries(); !(n = a.next()).done; )
7501
7529
  if (!t.has(n.value[0])) return !1;
7502
7530
  return !0;
7503
7531
  }
7504
- if (vp && ArrayBuffer.isView(e) && ArrayBuffer.isView(t)) {
7532
+ if (bp && ArrayBuffer.isView(e) && ArrayBuffer.isView(t)) {
7505
7533
  if (r = e.length, r != t.length) return !1;
7506
7534
  for (n = r; n-- !== 0; )
7507
7535
  if (e[n] !== t[n]) return !1;
@@ -7513,7 +7541,7 @@ function Lr(e, t) {
7513
7541
  if (i = Object.keys(e), r = i.length, r !== Object.keys(t).length) return !1;
7514
7542
  for (n = r; n-- !== 0; )
7515
7543
  if (!Object.prototype.hasOwnProperty.call(t, i[n])) return !1;
7516
- if (yp && e instanceof Element) return !1;
7544
+ if (wp && e instanceof Element) return !1;
7517
7545
  for (n = r; n-- !== 0; )
7518
7546
  if (!((i[n] === "_owner" || i[n] === "__v" || i[n] === "__o") && e.$$typeof) && !Lr(e[i[n]], t[i[n]]))
7519
7547
  return !1;
@@ -7521,7 +7549,7 @@ function Lr(e, t) {
7521
7549
  }
7522
7550
  return e !== e && t !== t;
7523
7551
  }
7524
- var bp = function(t, r) {
7552
+ var Sp = function(t, r) {
7525
7553
  try {
7526
7554
  return Lr(t, r);
7527
7555
  } catch (n) {
@@ -7530,25 +7558,25 @@ var bp = function(t, r) {
7530
7558
  throw n;
7531
7559
  }
7532
7560
  };
7533
- const Sp = /* @__PURE__ */ Ni(bp);
7534
- function Op(e, t = {}) {
7561
+ const Op = /* @__PURE__ */ Ni(Sp);
7562
+ function Cp(e, t = {}) {
7535
7563
  var r;
7536
- const { styleConfig: n, ...i } = t, { theme: a, colorMode: s } = pu(), u = hp(a, `components.${e}`), p = n || u, h = qe(
7564
+ const { styleConfig: n, ...i } = t, { theme: a, colorMode: s } = fu(), u = gp(a, `components.${e}`), p = n || u, h = qe(
7537
7565
  { theme: a, colorMode: s },
7538
7566
  (r = p == null ? void 0 : p.defaultProps) != null ? r : {},
7539
- pa(up(i, ["children"]))
7540
- ), m = ma({});
7567
+ fa(pp(i, ["children"]))
7568
+ ), m = ya({});
7541
7569
  if (p) {
7542
- const y = lp(p)(h);
7543
- Sp(m.current, y) || (m.current = y);
7570
+ const y = up(p)(h);
7571
+ Op(m.current, y) || (m.current = y);
7544
7572
  }
7545
7573
  return m.current;
7546
7574
  }
7547
- function Cp(e, t = {}) {
7548
- return Op(e, t);
7575
+ function Np(e, t = {}) {
7576
+ return Cp(e, t);
7549
7577
  }
7550
- var Np = /* @__PURE__ */ new Set([
7551
- ...Yu,
7578
+ var Tp = /* @__PURE__ */ new Set([
7579
+ ...Zu,
7552
7580
  "textStyle",
7553
7581
  "layerStyle",
7554
7582
  "apply",
@@ -7559,16 +7587,16 @@ var Np = /* @__PURE__ */ new Set([
7559
7587
  "__css",
7560
7588
  "css",
7561
7589
  "sx"
7562
- ]), Tp = /* @__PURE__ */ new Set([
7590
+ ]), Rp = /* @__PURE__ */ new Set([
7563
7591
  "htmlWidth",
7564
7592
  "htmlHeight",
7565
7593
  "htmlSize",
7566
7594
  "htmlTranslate"
7567
7595
  ]);
7568
- function Rp(e) {
7569
- return Tp.has(e) || !Np.has(e);
7596
+ function _p(e) {
7597
+ return Rp.has(e) || !Tp.has(e);
7570
7598
  }
7571
- function _p(e, ...t) {
7599
+ function Ap(e, ...t) {
7572
7600
  if (e == null)
7573
7601
  throw new TypeError("Cannot convert undefined or null to object");
7574
7602
  const r = { ...e };
@@ -7578,25 +7606,25 @@ function _p(e, ...t) {
7578
7606
  Object.prototype.hasOwnProperty.call(n, i) && (i in r && delete r[i], r[i] = n[i]);
7579
7607
  return r;
7580
7608
  }
7581
- var ro, Ap = (ro = Ki.default) != null ? ro : Ki, xp = ({ baseStyle: e }) => (t) => {
7582
- const { theme: r, css: n, __css: i, sx: a, ...s } = t, u = ua(s, (w, y) => Qu(y)), p = mp(e, t), h = _p(
7609
+ var ro, xp = (ro = Ki.default) != null ? ro : Ki, kp = ({ baseStyle: e }) => (t) => {
7610
+ const { theme: r, css: n, __css: i, sx: a, ...s } = t, u = pa(s, (w, y) => ep(y)), p = yp(e, t), h = Ap(
7583
7611
  {},
7584
7612
  i,
7585
7613
  p,
7586
- pa(u),
7614
+ fa(u),
7587
7615
  a
7588
- ), m = ap(h)(t.theme);
7616
+ ), m = sp(h)(t.theme);
7589
7617
  return n ? [m, n] : m;
7590
7618
  };
7591
7619
  function li(e, t) {
7592
7620
  const { baseStyle: r, ...n } = t ?? {};
7593
- n.shouldForwardProp || (n.shouldForwardProp = Rp);
7594
- const i = xp({ baseStyle: r }), a = Ap(
7621
+ n.shouldForwardProp || (n.shouldForwardProp = _p);
7622
+ const i = kp({ baseStyle: r }), a = xp(
7595
7623
  e,
7596
7624
  n
7597
7625
  )(i);
7598
7626
  return Br.forwardRef(function(p, h) {
7599
- const { colorMode: m, forced: w } = aa();
7627
+ const { colorMode: m, forced: w } = sa();
7600
7628
  return Br.createElement(a, {
7601
7629
  ref: h,
7602
7630
  "data-theme": w ? m : void 0,
@@ -7604,7 +7632,7 @@ function li(e, t) {
7604
7632
  });
7605
7633
  });
7606
7634
  }
7607
- function kp() {
7635
+ function Ep() {
7608
7636
  const e = /* @__PURE__ */ new Map();
7609
7637
  return new Proxy(li, {
7610
7638
  /**
@@ -7624,8 +7652,8 @@ function kp() {
7624
7652
  }
7625
7653
  });
7626
7654
  }
7627
- var no = kp();
7628
- function fa(e) {
7655
+ var no = Ep();
7656
+ function ha(e) {
7629
7657
  return Si(e);
7630
7658
  }
7631
7659
  var io = {
@@ -7649,7 +7677,7 @@ var io = {
7649
7677
  /* @__PURE__ */ l("circle", { fill: "none", strokeMiterlimit: "10", cx: "12", cy: "12", r: "11.25" })
7650
7678
  ] }),
7651
7679
  viewBox: "0 0 24 24"
7652
- }, ha = fa((e, t) => {
7680
+ }, ga = ha((e, t) => {
7653
7681
  const {
7654
7682
  as: r,
7655
7683
  viewBox: n,
@@ -7659,7 +7687,7 @@ var io = {
7659
7687
  className: u,
7660
7688
  __css: p,
7661
7689
  ...h
7662
- } = e, m = fu("chakra-icon", u), w = Cp("Icon", e), y = {
7690
+ } = e, m = hu("chakra-icon", u), w = Np("Icon", e), y = {
7663
7691
  w: "1em",
7664
7692
  h: "1em",
7665
7693
  display: "inline-block",
@@ -7679,17 +7707,17 @@ var io = {
7679
7707
  const v = s ?? io.path;
7680
7708
  return /* @__PURE__ */ l(no.svg, { verticalAlign: "middle", viewBox: b, ...I, ...h, children: v });
7681
7709
  });
7682
- ha.displayName = "Icon";
7683
- function Ep(e) {
7710
+ ga.displayName = "Icon";
7711
+ function Fp(e) {
7684
7712
  const {
7685
7713
  viewBox: t = "0 0 24 24",
7686
7714
  d: r,
7687
7715
  displayName: n,
7688
7716
  defaultProps: i = {}
7689
- } = 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 }) }));
7717
+ } = 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 }) }));
7690
7718
  return s.displayName = n, s;
7691
7719
  }
7692
- var Fp = Ep({
7720
+ var Pp = Fp({
7693
7721
  displayName: "ExternalLinkIcon",
7694
7722
  path: /* @__PURE__ */ A("g", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeWidth: "2", children: [
7695
7723
  /* @__PURE__ */ l("path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6" }),
@@ -7697,18 +7725,18 @@ var Fp = Ep({
7697
7725
  /* @__PURE__ */ l("path", { d: "M10 14L21 3" })
7698
7726
  ] })
7699
7727
  });
7700
- const Pp = "https://help.salesforce.com/s/articleView?id=sf.faq_domain_name_what.htm&type=5";
7701
- function Dp({
7728
+ const Dp = "https://help.salesforce.com/s/articleView?id=sf.faq_domain_name_what.htm&type=5";
7729
+ function Kp({
7702
7730
  handleSubmit: e,
7703
7731
  setWorkspace: t,
7704
7732
  error: r,
7705
7733
  isButtonDisabled: n
7706
7734
  }) {
7707
7735
  return /* @__PURE__ */ l(lr, { children: /* @__PURE__ */ A(He, { children: [
7708
- /* @__PURE__ */ l(rt, { marginTop: "16", marginBottom: "0", children: /* @__PURE__ */ l(Je, { as: "h4", size: "md", children: "Enter your Salesforce subdomain" }) }),
7709
- /* @__PURE__ */ A(co, { href: Pp, color: "blackAlpha.600", isExternal: !0, children: [
7736
+ /* @__PURE__ */ l(rt, { children: /* @__PURE__ */ l(Je, { as: "h4", size: "md", children: "Enter your Salesforce subdomain" }) }),
7737
+ /* @__PURE__ */ A(co, { href: Dp, color: "blackAlpha.600", isExternal: !0, children: [
7710
7738
  "What is my Salesforce subdomain?",
7711
- /* @__PURE__ */ l(Fp, { mx: "2px" })
7739
+ /* @__PURE__ */ l(Pp, { mx: "2px" })
7712
7740
  ] }),
7713
7741
  /* @__PURE__ */ l(ur, { error: r }),
7714
7742
  /* @__PURE__ */ A(Ur, { marginTop: "1em", children: [
@@ -7735,7 +7763,7 @@ function Dp({
7735
7763
  )
7736
7764
  ] }) });
7737
7765
  }
7738
- function Kp({
7766
+ function Lp({
7739
7767
  handleSubmit: e,
7740
7768
  setWorkspace: t,
7741
7769
  error: r,
@@ -7770,8 +7798,8 @@ function Kp({
7770
7798
  )
7771
7799
  ] }) });
7772
7800
  }
7773
- const Lp = "salesforce";
7774
- function Bp({
7801
+ const Bp = "salesforce";
7802
+ function Up({
7775
7803
  provider: e,
7776
7804
  consumerRef: t,
7777
7805
  consumerName: r,
@@ -7785,7 +7813,7 @@ function Bp({
7785
7813
  return;
7786
7814
  }
7787
7815
  try {
7788
- const N = await na(
7816
+ const N = await ia(
7789
7817
  s,
7790
7818
  t,
7791
7819
  n,
@@ -7801,8 +7829,8 @@ function Bp({
7801
7829
  }
7802
7830
  }, v = Z((N) => {
7803
7831
  I(N), w(null);
7804
- }, []), S = e === Lp ? /* @__PURE__ */ l(
7805
- Dp,
7832
+ }, []), S = e === Bp ? /* @__PURE__ */ l(
7833
+ Kp,
7806
7834
  {
7807
7835
  handleSubmit: b,
7808
7836
  setWorkspace: h,
@@ -7812,7 +7840,7 @@ function Bp({
7812
7840
  ) : (
7813
7841
  // general workspace entry component
7814
7842
  /* @__PURE__ */ l(
7815
- Kp,
7843
+ Lp,
7816
7844
  {
7817
7845
  handleSubmit: b,
7818
7846
  setWorkspace: h,
@@ -7823,7 +7851,7 @@ function Bp({
7823
7851
  )
7824
7852
  );
7825
7853
  return /* @__PURE__ */ l(
7826
- ia,
7854
+ oa,
7827
7855
  {
7828
7856
  windowTitle: `Connect to ${a}`,
7829
7857
  oauthUrl: m,
@@ -7832,8 +7860,8 @@ function Bp({
7832
7860
  }
7833
7861
  );
7834
7862
  }
7835
- const Up = "authorizationCode", Mp = "clientCredentials";
7836
- function $p({
7863
+ const Mp = "authorizationCode", $p = "clientCredentials";
7864
+ function jp({
7837
7865
  provider: e,
7838
7866
  providerInfo: t,
7839
7867
  consumerRef: r,
@@ -7846,8 +7874,8 @@ function $p({
7846
7874
  if (t.oauth2Opts === void 0)
7847
7875
  return /* @__PURE__ */ l("em", { children: "Provider is missing OAuth2 options" });
7848
7876
  const { grantType: p, explicitScopesRequired: h, explicitWorkspaceRequired: m } = t.oauth2Opts, w = vt(e, t);
7849
- return p === Up ? m ? /* @__PURE__ */ l(
7850
- Bp,
7877
+ return p === Mp ? m ? /* @__PURE__ */ l(
7878
+ Up,
7851
7879
  {
7852
7880
  provider: e,
7853
7881
  consumerRef: r,
@@ -7857,7 +7885,7 @@ function $p({
7857
7885
  providerName: w
7858
7886
  }
7859
7887
  ) : /* @__PURE__ */ l(
7860
- cu,
7888
+ du,
7861
7889
  {
7862
7890
  provider: e,
7863
7891
  consumerRef: r,
@@ -7866,8 +7894,8 @@ function $p({
7866
7894
  groupName: a,
7867
7895
  providerName: w
7868
7896
  }
7869
- ) : p === Mp ? m ? /* @__PURE__ */ l(
7870
- lu,
7897
+ ) : p === $p ? m ? /* @__PURE__ */ l(
7898
+ uu,
7871
7899
  {
7872
7900
  provider: e,
7873
7901
  consumerRef: r,
@@ -7880,7 +7908,7 @@ function $p({
7880
7908
  providerName: w
7881
7909
  }
7882
7910
  ) : /* @__PURE__ */ l(
7883
- tu,
7911
+ ru,
7884
7912
  {
7885
7913
  provider: e,
7886
7914
  consumerRef: r,
@@ -7897,7 +7925,7 @@ function $p({
7897
7925
  p
7898
7926
  ] });
7899
7927
  }
7900
- const jp = async (e, t) => {
7928
+ const qp = async (e, t) => {
7901
7929
  const r = await X().providerApi.getProvider({ provider: t }, {
7902
7930
  headers: { "X-Api-Key": e ?? "" }
7903
7931
  });
@@ -7905,7 +7933,7 @@ const jp = async (e, t) => {
7905
7933
  throw new Error(`Provider ${t} not found`);
7906
7934
  return r;
7907
7935
  };
7908
- function ga({
7936
+ function ma({
7909
7937
  provider: e,
7910
7938
  consumerRef: t,
7911
7939
  consumerName: r,
@@ -7914,15 +7942,15 @@ function ga({
7914
7942
  children: a,
7915
7943
  onSuccess: s
7916
7944
  }) {
7917
- const u = re(), [p, h] = x(null), { provider: m } = Ke(), { selectedConnection: w, setSelectedConnection: y, connections: I } = Lt();
7918
- Gl({ onSuccess: s });
7945
+ const u = re(), [p, h] = x(null), { provider: m } = Ke(), { selectedConnection: w, setSelectedConnection: y, connections: I } = Bt();
7946
+ Vl({ onSuccess: s });
7919
7947
  const b = e || m, v = (p == null ? void 0 : p.displayName) ?? To(b);
7920
7948
  if (Y(() => {
7921
7949
  if (!w && I && I.length > 0) {
7922
7950
  const [S] = I;
7923
7951
  y(S);
7924
7952
  }
7925
- jp(u, b).then((S) => {
7953
+ qp(u, b).then((S) => {
7926
7954
  h(S);
7927
7955
  }).catch((S) => {
7928
7956
  console.error("Error loading provider info: ", S);
@@ -7930,7 +7958,7 @@ function ga({
7930
7958
  }, [I, w, y, u, b]), !e && !m)
7931
7959
  throw new Error("ProtectedConnectionLayout must be given a provider prop or be used within InstallIntegrationProvider");
7932
7960
  return w ? a : p == null ? /* @__PURE__ */ l("strong", { children: "Provider not found" }) : p.authType === "none" ? /* @__PURE__ */ l(
7933
- Ql,
7961
+ eu,
7934
7962
  {
7935
7963
  provider: b,
7936
7964
  consumerRef: t,
@@ -7943,7 +7971,7 @@ function ga({
7943
7971
  children: a
7944
7972
  }
7945
7973
  ) : p.authType === "basic" ? /* @__PURE__ */ l(
7946
- Hl,
7974
+ Xl,
7947
7975
  {
7948
7976
  provider: b,
7949
7977
  providerInfo: p,
@@ -7956,7 +7984,7 @@ function ga({
7956
7984
  children: a
7957
7985
  }
7958
7986
  ) : p.authType === "apiKey" ? /* @__PURE__ */ l(
7959
- ql,
7987
+ Wl,
7960
7988
  {
7961
7989
  provider: b,
7962
7990
  providerInfo: p,
@@ -7969,7 +7997,7 @@ function ga({
7969
7997
  children: a
7970
7998
  }
7971
7999
  ) : /* @__PURE__ */ l(
7972
- $p,
8000
+ jp,
7973
8001
  {
7974
8002
  provider: b,
7975
8003
  providerInfo: p,
@@ -7982,7 +8010,7 @@ function ga({
7982
8010
  }
7983
8011
  );
7984
8012
  }
7985
- function Zp({
8013
+ function Qp({
7986
8014
  integration: e,
7987
8015
  consumerRef: t,
7988
8016
  consumerName: r,
@@ -7997,7 +8025,7 @@ function Zp({
7997
8025
  return (m = h[Q.INTEGRATION_LIST]) != null && m.apiError ? /* @__PURE__ */ l(We, { message: "Something went wrong, couldn't find integration information" }) : (
7998
8026
  // install integration provider provides all props, integrationObj and installation
7999
8027
  /* @__PURE__ */ l(
8000
- xd,
8028
+ kd,
8001
8029
  {
8002
8030
  integration: e,
8003
8031
  consumerRef: t,
@@ -8008,29 +8036,29 @@ function Zp({
8008
8036
  onUpdateSuccess: s,
8009
8037
  onUninstallSuccess: u,
8010
8038
  children: /* @__PURE__ */ l(xo, { groupRef: n, children: /* @__PURE__ */ l(
8011
- ga,
8039
+ ma,
8012
8040
  {
8013
8041
  consumerRef: t,
8014
8042
  consumerName: r,
8015
8043
  groupRef: n,
8016
8044
  groupName: i,
8017
- children: /* @__PURE__ */ l(Vd, { projectId: p, children: /* @__PURE__ */ l(Ul, { children: /* @__PURE__ */ l(dl, { children: /* @__PURE__ */ l(hl, { children: /* @__PURE__ */ l(Fl, {}) }) }) }) })
8045
+ children: /* @__PURE__ */ l(Yd, { projectId: p, children: /* @__PURE__ */ l(Ml, { children: /* @__PURE__ */ l(ll, { children: /* @__PURE__ */ l(gl, { children: /* @__PURE__ */ l(Pl, {}) }) }) }) })
8018
8046
  }
8019
8047
  ) })
8020
8048
  }
8021
8049
  )
8022
8050
  );
8023
8051
  }
8024
- function qp({ redirectURL: e, children: t }) {
8052
+ function Wp({ redirectURL: e, children: t }) {
8025
8053
  return Y(() => {
8026
8054
  e && window.location.replace(e);
8027
8055
  }, [e]), e ? /* @__PURE__ */ l(J, { display: "flex", alignItems: "center", justifyContent: "center", children: /* @__PURE__ */ l(De, { message: "Redirecting..." }) }) : t;
8028
8056
  }
8029
- function Wp({ provider: e }) {
8057
+ function zp({ provider: e }) {
8030
8058
  const { appName: t } = te(), r = `You have successfully connected your ${vt(e)} account to ${t}.`;
8031
8059
  return /* @__PURE__ */ l(ki, { text: r });
8032
8060
  }
8033
- function Qp({
8061
+ function ef({
8034
8062
  provider: e,
8035
8063
  consumerRef: t,
8036
8064
  consumerName: r,
@@ -8040,7 +8068,7 @@ function Qp({
8040
8068
  onSuccess: s
8041
8069
  }) {
8042
8070
  return /* @__PURE__ */ l(xo, { provider: e, groupRef: n, children: /* @__PURE__ */ l(
8043
- ga,
8071
+ ma,
8044
8072
  {
8045
8073
  provider: e,
8046
8074
  consumerRef: t,
@@ -8048,11 +8076,11 @@ function Qp({
8048
8076
  groupRef: n,
8049
8077
  groupName: i,
8050
8078
  onSuccess: s,
8051
- children: /* @__PURE__ */ l(qp, { redirectURL: a, children: /* @__PURE__ */ l(Wp, { provider: e }) })
8079
+ children: /* @__PURE__ */ l(Wp, { redirectURL: a, children: /* @__PURE__ */ l(zp, { provider: e }) })
8052
8080
  }
8053
8081
  ) });
8054
8082
  }
8055
- const ef = (e, t) => {
8083
+ const tf = (e, t) => {
8056
8084
  const r = re(), { projectId: n } = te(), { integrations: i } = Co(), [a, s] = x(!1), [u, p] = x(null);
8057
8085
  if (!r || !n)
8058
8086
  throw new Error("useIsIntegrationInstalled must be used within AmpersandProvider");
@@ -8081,10 +8109,10 @@ const ef = (e, t) => {
8081
8109
  }, [t, r, n, h]), { isLoaded: a, isIntegrationInstalled: u };
8082
8110
  };
8083
8111
  export {
8084
- Rd as AmpersandContext,
8085
- Vp as AmpersandProvider,
8086
- Qp as ConnectProvider,
8087
- Zp as InstallIntegration,
8088
- Yp as useAmpersandProvider,
8089
- ef as useIsIntegrationInstalled
8112
+ _d as AmpersandContext,
8113
+ Yp as AmpersandProvider,
8114
+ ef as ConnectProvider,
8115
+ Qp as InstallIntegration,
8116
+ Zp as useAmpersandProvider,
8117
+ tf as useIsIntegrationInstalled
8090
8118
  };