@amp-labs/react 1.9.1 → 1.9.3

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 ve, useState as k, useCallback as Q, useMemo as we, useEffect as Y, forwardRef as Si, useRef as ya, Children as wa } from "react";
3
- import { extendTheme as io, withDefaultColorScheme as Ia, ChakraProvider as va, Box as J, Stack as Ae, Spinner as ba, Text as Ie, useTab as oo, useMultiStyleConfig as ao, Button as ne, Divider as Oi, Tabs as Sa, Select as Oa, Flex as Ur, Heading as Je, FormControl as He, FormErrorMessage as Ca, Checkbox as Mr, Tag as Na, Container as cr, Alert as Xr, AlertIcon as Gr, AlertDescription as Vr, Link as so, FormLabel as rt, InputGroup as Yr, Input as Pe, InputRightElement as Zr, Textarea as co } from "@chakra-ui/react";
4
- import { ThemeContext as Ta } from "@emotion/react";
2
+ import Br, { createContext as _e, useContext as ve, useState as k, useCallback as Q, useMemo as we, useEffect as Y, forwardRef as Si, useRef as ma, Children as ya } from "react";
3
+ import { extendTheme as io, withDefaultColorScheme as wa, ChakraProvider as Ia, Box as J, Stack as Ae, Spinner as va, Text as Ie, useTab as oo, useMultiStyleConfig as ao, Button as ne, Divider as Oi, Tabs as ba, Select as Sa, Flex as Ur, Heading as Je, FormControl as He, FormErrorMessage as Oa, Checkbox as Mr, Tag as Ca, Container as cr, Alert as Xr, AlertIcon as Gr, AlertDescription as Vr, Link as so, FormLabel as rt, InputGroup as Yr, Input as Pe, InputRightElement as Zr, Textarea as co } from "@chakra-ui/react";
4
+ import { ThemeContext as Na } from "@emotion/react";
5
5
  import Di from "@emotion/styled";
6
- const Ra = {
6
+ const Ta = {
7
7
  warning: {
8
8
  bg: "red.50",
9
9
  // Background color
@@ -19,7 +19,7 @@ const Ra = {
19
19
  // Background color on hover
20
20
  }
21
21
  }
22
- }, _a = io({
22
+ }, Ra = io({
23
23
  components: {
24
24
  Tabs: {
25
25
  baseStyle: {
@@ -65,20 +65,20 @@ const Ra = {
65
65
  }
66
66
  },
67
67
  Button: {
68
- variants: Ra
68
+ variants: Ta
69
69
  }
70
70
  }
71
- }), Aa = io(
72
- Ia({
71
+ }), _a = io(
72
+ wa({
73
73
  colorScheme: "facebook",
74
74
  components: ["Button"]
75
75
  }),
76
- _a
76
+ Ra
77
77
  );
78
- function xa({ children: e }) {
79
- return /* @__PURE__ */ l(va, { theme: Aa, children: e });
78
+ function Aa({ children: e }) {
79
+ return /* @__PURE__ */ l(Ia, { theme: _a, children: e });
80
80
  }
81
- const lo = _e(null), ka = lo.Provider, te = () => {
81
+ const lo = _e(null), xa = lo.Provider, te = () => {
82
82
  const e = ve(lo);
83
83
  if (e === null)
84
84
  throw new Error("useApiKey must be used within an ApiKeyProvider");
@@ -92,14 +92,14 @@ function nt() {
92
92
  throw new Error("useErrorState must be used within a ErrorProvider");
93
93
  return e;
94
94
  }
95
- const Ea = (() => {
95
+ const ka = (() => {
96
96
  const e = {};
97
97
  return Object.values(Z).forEach((t) => {
98
98
  e[t] = {};
99
99
  }), e;
100
100
  })();
101
- function Fa({ children: e }) {
102
- const [t, r] = k(Ea), n = Q((h, m) => {
101
+ function Ea({ children: e }) {
102
+ const [t, r] = k(ka), n = Q((h, m) => {
103
103
  r((w) => {
104
104
  const y = {
105
105
  ...w
@@ -160,7 +160,7 @@ function De({ message: e }) {
160
160
  marginBottom: "20%",
161
161
  children: /* @__PURE__ */ A(Ae, { alignItems: "center", children: [
162
162
  /* @__PURE__ */ l(
163
- ba,
163
+ va,
164
164
  {
165
165
  height: "100px",
166
166
  width: "100px",
@@ -178,7 +178,7 @@ function De({ message: e }) {
178
178
  }
179
179
  );
180
180
  }
181
- function qe({ message: e }) {
181
+ function We({ message: e }) {
182
182
  return /* @__PURE__ */ A(
183
183
  J,
184
184
  {
@@ -222,7 +222,7 @@ function qe({ message: e }) {
222
222
  }
223
223
  );
224
224
  }
225
- const Pa = "https://api.withampersand.com/v1".replace(/\/+$/, "");
225
+ const Fa = "https://api.withampersand.com/v1".replace(/\/+$/, "");
226
226
  class po {
227
227
  constructor(t = {}) {
228
228
  this.configuration = t;
@@ -231,7 +231,7 @@ class po {
231
231
  this.configuration = t;
232
232
  }
233
233
  get basePath() {
234
- return this.configuration.basePath != null ? this.configuration.basePath : Pa;
234
+ return this.configuration.basePath != null ? this.configuration.basePath : Fa;
235
235
  }
236
236
  get fetchApi() {
237
237
  return this.configuration.fetchApi;
@@ -265,8 +265,8 @@ class po {
265
265
  return this.configuration.credentials;
266
266
  }
267
267
  }
268
- const Da = new po(), Hr = class Hr {
269
- constructor(t = Da) {
268
+ const Pa = new po(), Hr = class Hr {
269
+ constructor(t = Pa) {
270
270
  this.configuration = t, this.fetchApi = async (r, n) => {
271
271
  let i = { url: r, init: n };
272
272
  for (const s of this.middleware)
@@ -287,7 +287,7 @@ const Da = new po(), Hr = class Hr {
287
287
  response: a ? a.clone() : void 0
288
288
  }) || a);
289
289
  if (a === void 0)
290
- throw s instanceof Error ? new Ua(s, "The request failed and the interceptors did not return an alternative response") : s;
290
+ throw s instanceof Error ? new Ba(s, "The request failed and the interceptors did not return an alternative response") : s;
291
291
  }
292
292
  for (const s of this.middleware)
293
293
  s.post && (a = await s.post({
@@ -328,7 +328,7 @@ const Da = new po(), Hr = class Hr {
328
328
  const { url: n, init: i } = await this.createFetchParams(t, r), a = await this.fetchApi(n, i);
329
329
  if (a && a.status >= 200 && a.status < 300)
330
330
  return a;
331
- throw new Ba(a, "Response returned an error code");
331
+ throw new La(a, "Response returned an error code");
332
332
  }
333
333
  async createFetchParams(t, r) {
334
334
  let n = this.configuration.basePath + t.path;
@@ -348,7 +348,7 @@ const Da = new po(), Hr = class Hr {
348
348
  })
349
349
  }, p = {
350
350
  ...u,
351
- body: La(u.body) || u.body instanceof URLSearchParams || Ka(u.body) ? u.body : JSON.stringify(u.body)
351
+ body: Ka(u.body) || u.body instanceof URLSearchParams || Da(u.body) ? u.body : JSON.stringify(u.body)
352
352
  };
353
353
  return { url: n, init: p };
354
354
  }
@@ -363,18 +363,18 @@ const Da = new po(), Hr = class Hr {
363
363
  };
364
364
  Hr.jsonRegex = new RegExp("^(:?application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(:?;.*)?$", "i");
365
365
  let de = Hr;
366
- function Ka(e) {
366
+ function Da(e) {
367
367
  return typeof Blob < "u" && e instanceof Blob;
368
368
  }
369
- function La(e) {
369
+ function Ka(e) {
370
370
  return typeof FormData < "u" && e instanceof FormData;
371
371
  }
372
- class Ba extends Error {
372
+ class La extends Error {
373
373
  constructor(t, r) {
374
374
  super(r), this.response = t, this.name = "ResponseError";
375
375
  }
376
376
  }
377
- class Ua extends Error {
377
+ class Ba extends Error {
378
378
  constructor(t, r) {
379
379
  super(r), this.cause = t, this.name = "FetchError";
380
380
  }
@@ -424,7 +424,7 @@ class ze {
424
424
  async value() {
425
425
  }
426
426
  }
427
- class Ma {
427
+ class Ua {
428
428
  constructor(t) {
429
429
  this.raw = t;
430
430
  }
@@ -432,16 +432,16 @@ class Ma {
432
432
  return await this.raw.text();
433
433
  }
434
434
  }
435
- function $a(e) {
436
- return ja(e);
435
+ function Ma(e) {
436
+ return $a(e);
437
437
  }
438
- function ja(e, t) {
438
+ function $a(e, t) {
439
439
  return e == null ? e : {
440
440
  fieldUsed: N(e, "fieldUsed") ? e.fieldUsed : void 0,
441
441
  keyFormat: N(e, "keyFormat") ? e.keyFormat : void 0
442
442
  };
443
443
  }
444
- function Wa(e) {
444
+ function ja(e) {
445
445
  return qa(e);
446
446
  }
447
447
  function qa(e, t) {
@@ -450,65 +450,65 @@ function qa(e, t) {
450
450
  valuePrefix: N(e, "valuePrefix") ? e.valuePrefix : void 0
451
451
  };
452
452
  }
453
- function za(e) {
454
- return Ja(e);
453
+ function Wa(e) {
454
+ return za(e);
455
455
  }
456
- function Ja(e, t) {
456
+ function za(e, t) {
457
457
  return e == null ? e : {
458
458
  name: e.name
459
459
  };
460
460
  }
461
- function Ha(e) {
462
- return Xa(e);
461
+ function Ja(e) {
462
+ return Ha(e);
463
463
  }
464
- function Xa(e, t) {
464
+ function Ha(e, t) {
465
465
  return e == null ? e : {
466
466
  attachmentType: e.attachmentType,
467
- query: N(e, "query") ? za(e.query) : void 0,
468
- header: N(e, "header") ? Wa(e.header) : void 0,
467
+ query: N(e, "query") ? Wa(e.query) : void 0,
468
+ header: N(e, "header") ? ja(e.header) : void 0,
469
469
  docsURL: N(e, "docsURL") ? e.docsURL : void 0
470
470
  };
471
471
  }
472
- function Ga(e) {
473
- return Va(e);
472
+ function Xa(e) {
473
+ return Ga(e);
474
474
  }
475
- function Va(e, t) {
475
+ function Ga(e, t) {
476
476
  return e;
477
477
  }
478
- function Ya(e) {
479
- return Za(e);
478
+ function Va(e) {
479
+ return Ya(e);
480
480
  }
481
- function Za(e, t) {
481
+ function Ya(e, t) {
482
482
  return e == null ? e : {
483
483
  days: N(e, "days") ? e.days : void 0,
484
484
  fullHistory: N(e, "fullHistory") ? e.fullHistory : void 0
485
485
  };
486
486
  }
487
487
  function go(e) {
488
- return Qa(e);
488
+ return Za(e);
489
489
  }
490
- function Qa(e, t) {
490
+ function Za(e, t) {
491
491
  return e == null ? e : {
492
- defaultPeriod: Ya(e.defaultPeriod)
492
+ defaultPeriod: Va(e.defaultPeriod)
493
493
  };
494
494
  }
495
- function es(e) {
495
+ function Qa(e) {
496
496
  if (e !== void 0)
497
497
  return e === null ? null : {
498
498
  days: e.days,
499
499
  fullHistory: e.fullHistory
500
500
  };
501
501
  }
502
- function ts(e) {
502
+ function es(e) {
503
503
  if (e !== void 0)
504
504
  return e === null ? null : {
505
- defaultPeriod: es(e.defaultPeriod)
505
+ defaultPeriod: Qa(e.defaultPeriod)
506
506
  };
507
507
  }
508
- function rs(e) {
509
- return ns(e);
508
+ function ts(e) {
509
+ return rs(e);
510
510
  }
511
- function ns(e, t) {
511
+ function rs(e, t) {
512
512
  return e == null ? e : {
513
513
  enabled: N(e, "enabled") ? e.enabled : void 0
514
514
  };
@@ -519,7 +519,7 @@ function mo(e) {
519
519
  enabled: e.enabled
520
520
  };
521
521
  }
522
- function is(e) {
522
+ function ns(e) {
523
523
  if (e !== void 0)
524
524
  return e === null ? null : {
525
525
  objectName: e.objectName,
@@ -527,41 +527,42 @@ function is(e) {
527
527
  destination: e.destination,
528
528
  selectedFields: e.selectedFields,
529
529
  selectedFieldMappings: e.selectedFieldMappings,
530
- backfill: ts(e.backfill)
530
+ backfill: es(e.backfill)
531
531
  };
532
532
  }
533
- function os(e) {
533
+ function is(e) {
534
534
  if (e !== void 0)
535
535
  return e === null ? null : {
536
- objects: e.objects === void 0 ? void 0 : Ci(e.objects, is)
536
+ objects: e.objects === void 0 ? void 0 : Ci(e.objects, ns)
537
537
  };
538
538
  }
539
- function as(e) {
539
+ function os(e) {
540
540
  if (e !== void 0)
541
541
  return e === null ? null : {
542
542
  objectName: e.objectName
543
543
  };
544
544
  }
545
- function ss(e) {
545
+ function as(e) {
546
546
  if (e !== void 0)
547
547
  return e === null ? null : {
548
- objects: e.objects === void 0 ? void 0 : Ci(e.objects, as)
548
+ objects: e.objects === void 0 ? void 0 : Ci(e.objects, os)
549
549
  };
550
550
  }
551
- function cs(e) {
552
- return ds(e);
551
+ function ss(e) {
552
+ return cs(e);
553
553
  }
554
- function ds(e, t) {
554
+ function cs(e, t) {
555
555
  return e == null ? e : {
556
556
  apiKeyAsBasic: N(e, "apiKeyAsBasic") ? e.apiKeyAsBasic : void 0,
557
- apiKeyAsBasicOpts: N(e, "apiKeyAsBasicOpts") ? $a(e.apiKeyAsBasicOpts) : void 0,
557
+ apiKeyAsBasicOpts: N(e, "apiKeyAsBasicOpts") ? Ma(e.apiKeyAsBasicOpts) : void 0,
558
558
  docsURL: N(e, "docsURL") ? e.docsURL : void 0
559
559
  };
560
560
  }
561
- function yo(e) {
561
+ function ds(e) {
562
562
  if (e !== void 0)
563
563
  return e === null ? null : {
564
- sourceZipUrl: e.sourceZipUrl
564
+ sourceZipUrl: e.sourceZipUrl,
565
+ sourceYaml: e.sourceYaml
565
566
  };
566
567
  }
567
568
  function xr(e) {
@@ -596,10 +597,10 @@ function hs(e, t) {
596
597
  provider: e.provider,
597
598
  read: N(e, "read") ? e.read : void 0,
598
599
  write: N(e, "write") ? e.write : void 0,
599
- proxy: N(e, "proxy") ? rs(e.proxy) : void 0
600
+ proxy: N(e, "proxy") ? ts(e.proxy) : void 0
600
601
  };
601
602
  }
602
- function wo(e) {
603
+ function yo(e) {
603
604
  if (e !== void 0)
604
605
  return e === null ? null : {
605
606
  provider: e.provider,
@@ -632,7 +633,7 @@ function ws(e, t) {
632
633
  updateTime: N(e, "updateTime") ? new Date(e.updateTime) : void 0
633
634
  };
634
635
  }
635
- function Io(e) {
636
+ function wo(e) {
636
637
  return Is(e);
637
638
  }
638
639
  function Is(e, t) {
@@ -667,7 +668,7 @@ function bs(e, t) {
667
668
  id: e.id,
668
669
  projectId: e.projectId,
669
670
  providerApp: Pr(e.providerApp),
670
- group: Io(e.group),
671
+ group: wo(e.group),
671
672
  consumer: ys(e.consumer),
672
673
  providerWorkspaceRef: e.providerWorkspaceRef,
673
674
  providerConsumerRef: N(e, "ProviderConsumerRef") ? e.ProviderConsumerRef : void 0,
@@ -709,7 +710,7 @@ function Ts(e) {
709
710
  return e === null ? null : {
710
711
  revisionId: e.revisionId,
711
712
  createdBy: e.createdBy,
712
- content: wo(e.content)
713
+ content: yo(e.content)
713
714
  };
714
715
  }
715
716
  function Rs(e) {
@@ -723,7 +724,8 @@ function Rs(e) {
723
724
  function _s(e) {
724
725
  if (e !== void 0)
725
726
  return e === null ? null : {
726
- sourceZipUrl: e.sourceZipUrl
727
+ sourceZipUrl: e.sourceZipUrl,
728
+ sourceYaml: e.sourceYaml
727
729
  };
728
730
  }
729
731
  function As(e) {
@@ -753,15 +755,31 @@ function ks(e) {
753
755
  };
754
756
  }
755
757
  function Es(e) {
756
- return Fs(e);
758
+ if (e !== void 0)
759
+ return e === null ? null : {
760
+ sourceZipUrl: e.sourceZipUrl,
761
+ sourceYaml: e.sourceYaml
762
+ };
763
+ }
764
+ function Fs(e) {
765
+ return Ps(e);
757
766
  }
758
- function Fs(e, t) {
767
+ function Ps(e, t) {
768
+ return e == null ? e : {
769
+ mode: N(e, "mode") ? e.mode : void 0,
770
+ pageSize: N(e, "pageSize") ? e.pageSize : void 0
771
+ };
772
+ }
773
+ function Ds(e) {
774
+ return Ks(e);
775
+ }
776
+ function Ks(e, t) {
759
777
  return e == null ? e : {
760
778
  url: N(e, "url") ? e.url : void 0,
761
779
  headers: N(e, "headers") ? e.headers : void 0
762
780
  };
763
781
  }
764
- function Ps(e) {
782
+ function Ls(e) {
765
783
  if (e !== void 0)
766
784
  return e === null ? null : {
767
785
  url: e.url,
@@ -769,26 +787,26 @@ function Ps(e) {
769
787
  };
770
788
  }
771
789
  function kr(e) {
772
- return Ds(e);
790
+ return Bs(e);
773
791
  }
774
- function Ds(e, t) {
792
+ function Bs(e, t) {
775
793
  return e == null ? e : {
776
794
  id: e.id,
777
795
  name: e.name,
778
796
  type: e.type,
779
- metadata: Es(e.metadata),
797
+ metadata: Ds(e.metadata),
780
798
  createTime: new Date(e.createTime),
781
799
  updateTime: N(e, "updateTime") ? new Date(e.updateTime) : void 0
782
800
  };
783
801
  }
784
- function Ks(e) {
802
+ function Us(e) {
785
803
  if (e !== void 0)
786
804
  return e === null ? null : {
787
805
  username: e.username,
788
806
  password: e.password
789
807
  };
790
808
  }
791
- function Ls(e) {
809
+ function Ms(e) {
792
810
  if (e !== void 0)
793
811
  return e === null ? null : {
794
812
  clientId: e.clientId,
@@ -796,7 +814,7 @@ function Ls(e) {
796
814
  scopes: e.scopes
797
815
  };
798
816
  }
799
- function Bs(e) {
817
+ function $s(e) {
800
818
  if (e !== void 0)
801
819
  return e === null ? null : {
802
820
  username: e.username,
@@ -806,7 +824,7 @@ function Bs(e) {
806
824
  scopes: e.scopes
807
825
  };
808
826
  }
809
- function Us(e) {
827
+ function js(e) {
810
828
  if (e !== void 0)
811
829
  return e === null ? null : {
812
830
  providerWorkspaceRef: e.providerWorkspaceRef,
@@ -816,26 +834,26 @@ function Us(e) {
816
834
  consumerRef: e.consumerRef,
817
835
  provider: e.provider,
818
836
  apiKey: e.apiKey,
819
- basicAuth: Ks(e.basicAuth),
820
- oauth2ClientCredentials: Ls(e.oauth2ClientCredentials),
821
- oauth2Password: Bs(e.oauth2Password)
837
+ basicAuth: Us(e.basicAuth),
838
+ oauth2ClientCredentials: Ms(e.oauth2ClientCredentials),
839
+ oauth2Password: $s(e.oauth2Password)
822
840
  };
823
841
  }
824
- function Ms(e) {
825
- return $s(e);
842
+ function qs(e) {
843
+ return Ws(e);
826
844
  }
827
- function $s(e, t) {
845
+ function Ws(e, t) {
828
846
  return e == null ? e : {
829
847
  enabled: N(e, "enabled") ? e.enabled : void 0
830
848
  };
831
849
  }
832
- function js(e, t) {
850
+ function zs(e, t) {
833
851
  return e == null ? e : {
834
852
  fieldName: e.fieldName,
835
853
  displayName: e.displayName
836
854
  };
837
855
  }
838
- function vo(e, t) {
856
+ function Io(e, t) {
839
857
  return e == null ? e : {
840
858
  mapToName: e.mapToName,
841
859
  mapToDisplayName: N(e, "mapToDisplayName") ? e.mapToDisplayName : void 0,
@@ -844,21 +862,21 @@ function vo(e, t) {
844
862
  };
845
863
  }
846
864
  function ai(e) {
847
- return Ws(e);
865
+ return Js(e);
848
866
  }
849
- function Ws(e, t) {
850
- return e == null ? e : { ...js(e), ...vo(e) };
867
+ function Js(e, t) {
868
+ return e == null ? e : { ...zs(e), ...Io(e) };
851
869
  }
852
- function bo(e) {
853
- return qs(e);
870
+ function vo(e) {
871
+ return Hs(e);
854
872
  }
855
- function qs(e, t) {
873
+ function Hs(e, t) {
856
874
  return e;
857
875
  }
858
- function zs(e) {
859
- return Js(e);
876
+ function Xs(e) {
877
+ return Gs(e);
860
878
  }
861
- function Js(e, t) {
879
+ function Gs(e, t) {
862
880
  return e == null ? e : {
863
881
  objectName: e.objectName,
864
882
  displayName: e.displayName,
@@ -866,61 +884,61 @@ function Js(e, t) {
866
884
  schedule: e.schedule,
867
885
  requiredFields: N(e, "requiredFields") ? e.requiredFields.map(ai) : void 0,
868
886
  optionalFields: N(e, "optionalFields") ? e.optionalFields.map(ai) : void 0,
869
- optionalFieldsAuto: N(e, "optionalFieldsAuto") ? bo(e.optionalFieldsAuto) : void 0,
887
+ optionalFieldsAuto: N(e, "optionalFieldsAuto") ? vo(e.optionalFieldsAuto) : void 0,
870
888
  allFields: N(e, "allFields") ? e.allFields.map(ai) : void 0,
871
889
  backfill: N(e, "backfill") ? go(e.backfill) : void 0
872
890
  };
873
891
  }
874
- function Hs(e) {
875
- return Xs(e);
892
+ function Vs(e) {
893
+ return Ys(e);
876
894
  }
877
- function Xs(e, t) {
895
+ function Ys(e, t) {
878
896
  return e == null ? e : {
879
- objects: N(e, "objects") ? e.objects.map(zs) : void 0
897
+ objects: N(e, "objects") ? e.objects.map(Xs) : void 0
880
898
  };
881
899
  }
882
- function Gs(e) {
883
- return Vs(e);
900
+ function Zs(e) {
901
+ return Qs(e);
884
902
  }
885
- function Vs(e, t) {
903
+ function Qs(e, t) {
886
904
  return e == null ? e : {
887
905
  objectName: e.objectName,
888
906
  displayName: e.displayName
889
907
  };
890
908
  }
891
- function Ys(e) {
892
- return Zs(e);
909
+ function ec(e) {
910
+ return tc(e);
893
911
  }
894
- function Zs(e, t) {
912
+ function tc(e, t) {
895
913
  return e == null ? e : {
896
- objects: N(e, "objects") ? e.objects.map(Gs) : void 0
914
+ objects: N(e, "objects") ? e.objects.map(Zs) : void 0
897
915
  };
898
916
  }
899
- function Qs(e) {
900
- return ec(e);
917
+ function rc(e) {
918
+ return nc(e);
901
919
  }
902
- function ec(e, t) {
920
+ function nc(e, t) {
903
921
  return e == null ? e : {
904
922
  name: e.name,
905
923
  displayName: N(e, "displayName") ? e.displayName : void 0,
906
924
  provider: e.provider,
907
- read: N(e, "read") ? Hs(e.read) : void 0,
908
- write: N(e, "write") ? Ys(e.write) : void 0,
909
- proxy: N(e, "proxy") ? Ms(e.proxy) : void 0
925
+ read: N(e, "read") ? Vs(e.read) : void 0,
926
+ write: N(e, "write") ? ec(e.write) : void 0,
927
+ proxy: N(e, "proxy") ? qs(e.proxy) : void 0
910
928
  };
911
929
  }
912
- function tc(e) {
913
- return rc(e);
930
+ function ic(e) {
931
+ return oc(e);
914
932
  }
915
- function rc(e, t) {
933
+ function oc(e, t) {
916
934
  return e == null ? e : {
917
935
  id: e.id,
918
936
  specVersion: e.specVersion,
919
937
  createTime: new Date(e.createTime),
920
- content: Qs(e.content)
938
+ content: rc(e.content)
921
939
  };
922
940
  }
923
- function nc(e) {
941
+ function ac(e) {
924
942
  if (e !== void 0)
925
943
  return e === null ? null : {
926
944
  providerAppId: e.providerAppId,
@@ -934,30 +952,30 @@ function nc(e) {
934
952
  scopes: e.scopes
935
953
  };
936
954
  }
937
- function ic(e) {
955
+ function sc(e) {
938
956
  if (e !== void 0)
939
957
  return e === null ? null : {
940
958
  revisionId: e.revisionId,
941
- content: wo(e.content)
959
+ content: yo(e.content)
942
960
  };
943
961
  }
944
- function oc(e) {
962
+ function cc(e) {
945
963
  if (e !== void 0)
946
964
  return e === null ? null : {
947
965
  provider: e.provider,
948
- connection: nc(e.connection),
949
- config: ic(e.config)
966
+ connection: ac(e.connection),
967
+ config: sc(e.config)
950
968
  };
951
969
  }
952
970
  function rr(e) {
953
- return ac(e);
971
+ return dc(e);
954
972
  }
955
- function ac(e, t) {
973
+ function dc(e, t) {
956
974
  return e == null ? e : {
957
975
  id: e.id,
958
976
  projectId: e.projectId,
959
977
  integrationId: e.integrationId,
960
- group: N(e, "group") ? Io(e.group) : void 0,
978
+ group: N(e, "group") ? wo(e.group) : void 0,
961
979
  healthStatus: e.healthStatus,
962
980
  connection: Dr(e.connection),
963
981
  createTime: new Date(e.createTime),
@@ -966,91 +984,92 @@ function ac(e, t) {
966
984
  config: gs(e.config)
967
985
  };
968
986
  }
969
- function sc(e) {
970
- return cc(e);
987
+ function lc(e) {
988
+ return uc(e);
971
989
  }
972
- function cc(e, t) {
990
+ function uc(e, t) {
973
991
  return e == null ? e : {
974
992
  enabled: N(e, "enabled") ? e.enabled : void 0
975
993
  };
976
994
  }
977
- function dc(e, t) {
995
+ function pc(e, t) {
978
996
  return e == null ? e : {
979
997
  fieldName: e.fieldName
980
998
  };
981
999
  }
982
1000
  function Ki(e) {
983
- return lc(e);
1001
+ return fc(e);
984
1002
  }
985
- function lc(e, t) {
986
- return e == null ? e : { ...dc(e), ...vo(e) };
1003
+ function fc(e, t) {
1004
+ return e == null ? e : { ...pc(e), ...Io(e) };
987
1005
  }
988
- function uc(e) {
989
- return pc(e);
1006
+ function hc(e) {
1007
+ return gc(e);
990
1008
  }
991
- function pc(e, t) {
1009
+ function gc(e, t) {
992
1010
  return e == null ? e : {
993
1011
  objectName: e.objectName,
994
1012
  destination: e.destination,
995
1013
  schedule: e.schedule,
996
1014
  requiredFields: N(e, "requiredFields") ? e.requiredFields.map(Ki) : void 0,
997
1015
  optionalFields: N(e, "optionalFields") ? e.optionalFields.map(Ki) : void 0,
998
- optionalFieldsAuto: N(e, "optionalFieldsAuto") ? bo(e.optionalFieldsAuto) : void 0,
999
- backfill: N(e, "backfill") ? go(e.backfill) : void 0
1016
+ optionalFieldsAuto: N(e, "optionalFieldsAuto") ? vo(e.optionalFieldsAuto) : void 0,
1017
+ backfill: N(e, "backfill") ? go(e.backfill) : void 0,
1018
+ delivery: N(e, "delivery") ? Fs(e.delivery) : void 0
1000
1019
  };
1001
1020
  }
1002
- function fc(e) {
1003
- return hc(e);
1021
+ function mc(e) {
1022
+ return yc(e);
1004
1023
  }
1005
- function hc(e, t) {
1024
+ function yc(e, t) {
1006
1025
  return e == null ? e : {
1007
- objects: N(e, "objects") ? e.objects.map(uc) : void 0
1026
+ objects: N(e, "objects") ? e.objects.map(hc) : void 0
1008
1027
  };
1009
1028
  }
1010
- function gc(e) {
1011
- return mc(e);
1029
+ function wc(e) {
1030
+ return Ic(e);
1012
1031
  }
1013
- function mc(e, t) {
1032
+ function Ic(e, t) {
1014
1033
  return e == null ? e : {
1015
1034
  objectName: e.objectName
1016
1035
  };
1017
1036
  }
1018
- function yc(e) {
1019
- return wc(e);
1037
+ function vc(e) {
1038
+ return bc(e);
1020
1039
  }
1021
- function wc(e, t) {
1040
+ function bc(e, t) {
1022
1041
  return e == null ? e : {
1023
- objects: N(e, "objects") ? e.objects.map(gc) : void 0
1042
+ objects: N(e, "objects") ? e.objects.map(wc) : void 0
1024
1043
  };
1025
1044
  }
1026
- function Ic(e) {
1027
- return vc(e);
1045
+ function Sc(e) {
1046
+ return Oc(e);
1028
1047
  }
1029
- function vc(e, t) {
1048
+ function Oc(e, t) {
1030
1049
  return e == null ? e : {
1031
1050
  name: e.name,
1032
1051
  displayName: N(e, "displayName") ? e.displayName : void 0,
1033
1052
  provider: e.provider,
1034
- read: N(e, "read") ? fc(e.read) : void 0,
1035
- write: N(e, "write") ? yc(e.write) : void 0,
1036
- proxy: N(e, "proxy") ? sc(e.proxy) : void 0
1053
+ read: N(e, "read") ? mc(e.read) : void 0,
1054
+ write: N(e, "write") ? vc(e.write) : void 0,
1055
+ proxy: N(e, "proxy") ? lc(e.proxy) : void 0
1037
1056
  };
1038
1057
  }
1039
- function bc(e) {
1040
- return Sc(e);
1058
+ function Cc(e) {
1059
+ return Nc(e);
1041
1060
  }
1042
- function Sc(e, t) {
1061
+ function Nc(e, t) {
1043
1062
  return e == null ? e : {
1044
1063
  id: e.id,
1045
1064
  specVersion: e.specVersion,
1046
1065
  createTime: new Date(e.createTime),
1047
- content: Ic(e.content)
1066
+ content: Sc(e.content)
1048
1067
  };
1049
1068
  }
1050
1069
  function Li(e) {
1051
- return Oc(e);
1070
+ return Tc(e);
1052
1071
  }
1053
- function Oc(e, t) {
1072
+ function Tc(e, t) {
1054
1073
  return e == null ? e : {
1055
1074
  id: e.id,
1056
1075
  projectId: e.projectId,
@@ -1058,70 +1077,70 @@ function Oc(e, t) {
1058
1077
  provider: e.provider,
1059
1078
  createTime: new Date(e.createTime),
1060
1079
  updateTime: N(e, "updateTime") ? new Date(e.updateTime) : void 0,
1061
- latestRevision: bc(e.latestRevision)
1080
+ latestRevision: Cc(e.latestRevision)
1062
1081
  };
1063
1082
  }
1064
- function Cc(e) {
1065
- return Nc(e);
1083
+ function Rc(e) {
1084
+ return _c(e);
1066
1085
  }
1067
- function Nc(e, t) {
1086
+ function _c(e, t) {
1068
1087
  return e == null ? e : {
1069
1088
  msg: e.msg,
1070
1089
  operationEventId: N(e, "operation_event_id") ? e.operation_event_id : void 0,
1071
1090
  operationId: N(e, "operation_id") ? e.operation_id : void 0
1072
1091
  };
1073
1092
  }
1074
- function Tc(e) {
1075
- return Rc(e);
1093
+ function Ac(e) {
1094
+ return xc(e);
1076
1095
  }
1077
- function Rc(e, t) {
1096
+ function xc(e, t) {
1078
1097
  return e == null ? e : {
1079
1098
  timestamp: e.timestamp,
1080
- message: Cc(e.message),
1099
+ message: Rc(e.message),
1081
1100
  severity: e.severity
1082
1101
  };
1083
1102
  }
1084
- function _c(e) {
1085
- return Ac(e);
1103
+ function kc(e) {
1104
+ return Ec(e);
1086
1105
  }
1087
- function Ac(e, t) {
1106
+ function Ec(e, t) {
1088
1107
  return e == null ? e : {
1089
1108
  iconURL: N(e, "iconURL") ? e.iconURL : void 0,
1090
1109
  logoURL: N(e, "logoURL") ? e.logoURL : void 0
1091
1110
  };
1092
1111
  }
1093
- function xc(e) {
1094
- return kc(e);
1112
+ function Fc(e) {
1113
+ return Pc(e);
1095
1114
  }
1096
- function kc(e, t) {
1115
+ function Pc(e, t) {
1097
1116
  return e == null ? e : {
1098
1117
  iconURL: N(e, "iconURL") ? e.iconURL : void 0,
1099
1118
  logoURL: N(e, "logoURL") ? e.logoURL : void 0
1100
1119
  };
1101
1120
  }
1102
- function Ec(e) {
1103
- return Fc(e);
1121
+ function Dc(e) {
1122
+ return Kc(e);
1104
1123
  }
1105
- function Fc(e, t) {
1124
+ function Kc(e, t) {
1106
1125
  return e == null ? e : {
1107
- regular: N(e, "regular") ? xc(e.regular) : void 0,
1108
- darkMode: N(e, "darkMode") ? _c(e.darkMode) : void 0
1126
+ regular: N(e, "regular") ? Fc(e.regular) : void 0,
1127
+ darkMode: N(e, "darkMode") ? kc(e.darkMode) : void 0
1109
1128
  };
1110
1129
  }
1111
- function Pc(e) {
1112
- return Dc(e);
1130
+ function Lc(e) {
1131
+ return Bc(e);
1113
1132
  }
1114
- function Dc(e, t) {
1133
+ function Bc(e, t) {
1115
1134
  return e == null ? e : {
1116
1135
  workspaceRefField: N(e, "workspaceRefField") ? e.workspaceRefField : void 0,
1117
1136
  consumerRefField: N(e, "consumerRefField") ? e.consumerRefField : void 0,
1118
1137
  scopesField: N(e, "scopesField") ? e.scopesField : void 0
1119
1138
  };
1120
1139
  }
1121
- function Kc(e) {
1122
- return Lc(e);
1140
+ function Uc(e) {
1141
+ return Mc(e);
1123
1142
  }
1124
- function Lc(e, t) {
1143
+ function Mc(e, t) {
1125
1144
  return e == null ? e : {
1126
1145
  grantType: e.grantType,
1127
1146
  authURL: N(e, "authURL") ? e.authURL : void 0,
@@ -1129,12 +1148,12 @@ function Lc(e, t) {
1129
1148
  explicitScopesRequired: e.explicitScopesRequired,
1130
1149
  explicitWorkspaceRequired: e.explicitWorkspaceRequired,
1131
1150
  audience: N(e, "audience") ? e.audience : void 0,
1132
- tokenMetadataFields: Pc(e.tokenMetadataFields),
1151
+ tokenMetadataFields: Lc(e.tokenMetadataFields),
1133
1152
  docsURL: N(e, "docsURL") ? e.docsURL : void 0,
1134
1153
  authURLParams: N(e, "authURLParams") ? e.authURLParams : void 0
1135
1154
  };
1136
1155
  }
1137
- function Bc(e) {
1156
+ function $c(e) {
1138
1157
  if (e !== void 0)
1139
1158
  return e === null ? null : {
1140
1159
  providerWorkspaceRef: e.providerWorkspaceRef,
@@ -1148,9 +1167,9 @@ function Bc(e) {
1148
1167
  };
1149
1168
  }
1150
1169
  function Bi(e) {
1151
- return Uc(e);
1170
+ return jc(e);
1152
1171
  }
1153
- function Uc(e, t) {
1172
+ function jc(e, t) {
1154
1173
  return e == null ? e : {
1155
1174
  projectId: e.projectId,
1156
1175
  integrationId: e.integrationId,
@@ -1165,10 +1184,10 @@ function Uc(e, t) {
1165
1184
  createTime: N(e, "createTime") ? new Date(e.createTime) : void 0
1166
1185
  };
1167
1186
  }
1168
- function Mc(e) {
1169
- return $c(e);
1187
+ function qc(e) {
1188
+ return Wc(e);
1170
1189
  }
1171
- function $c(e, t) {
1190
+ function Wc(e, t) {
1172
1191
  return e == null ? e : {
1173
1192
  bulkWrite: us(e.bulkWrite),
1174
1193
  proxy: e.proxy,
@@ -1178,94 +1197,94 @@ function $c(e, t) {
1178
1197
  };
1179
1198
  }
1180
1199
  function Ui(e) {
1181
- return jc(e);
1200
+ return zc(e);
1182
1201
  }
1183
- function jc(e, t) {
1202
+ function zc(e, t) {
1184
1203
  return e == null ? e : {
1185
1204
  name: e.name,
1186
- authType: Ga(e.authType),
1205
+ authType: Xa(e.authType),
1187
1206
  baseURL: e.baseURL,
1188
- oauth2Opts: N(e, "oauth2Opts") ? Kc(e.oauth2Opts) : void 0,
1189
- apiKeyOpts: N(e, "apiKeyOpts") ? Ha(e.apiKeyOpts) : void 0,
1190
- basicOpts: N(e, "basicOpts") ? cs(e.basicOpts) : void 0,
1191
- support: Mc(e.support),
1207
+ oauth2Opts: N(e, "oauth2Opts") ? Uc(e.oauth2Opts) : void 0,
1208
+ apiKeyOpts: N(e, "apiKeyOpts") ? Ja(e.apiKeyOpts) : void 0,
1209
+ basicOpts: N(e, "basicOpts") ? ss(e.basicOpts) : void 0,
1210
+ support: qc(e.support),
1192
1211
  providerOpts: e.providerOpts,
1193
1212
  displayName: N(e, "displayName") ? e.displayName : void 0,
1194
1213
  postAuthInfoNeeded: N(e, "postAuthInfoNeeded") ? e.postAuthInfoNeeded : void 0,
1195
- media: N(e, "media") ? Ec(e.media) : void 0,
1214
+ media: N(e, "media") ? Dc(e.media) : void 0,
1196
1215
  labels: N(e, "labels") ? e.labels : void 0
1197
1216
  };
1198
1217
  }
1199
- function Wc(e) {
1200
- return qc(e);
1218
+ function Jc(e) {
1219
+ return Hc(e);
1201
1220
  }
1202
- function qc(e, t) {
1221
+ function Hc(e, t) {
1203
1222
  return e == null ? e : {
1204
1223
  url: e.url,
1205
1224
  bucket: e.bucket,
1206
1225
  path: e.path
1207
1226
  };
1208
1227
  }
1209
- function zc(e) {
1228
+ function Xc(e) {
1210
1229
  if (e !== void 0)
1211
1230
  return e === null ? null : {
1212
1231
  name: e.name,
1213
- metadata: Ps(e.metadata)
1232
+ metadata: Ls(e.metadata)
1214
1233
  };
1215
1234
  }
1216
- function Jc(e) {
1235
+ function Gc(e) {
1217
1236
  if (e !== void 0)
1218
1237
  return e === null ? null : {
1219
1238
  updateMask: e.updateMask,
1220
- destination: zc(e.destination)
1239
+ destination: Xc(e.destination)
1221
1240
  };
1222
1241
  }
1223
- function Hc(e) {
1242
+ function Vc(e) {
1224
1243
  if (e !== void 0)
1225
1244
  return e === null ? null : {
1226
1245
  provider: e.provider,
1227
- read: os(e.read),
1228
- write: ss(e.write),
1246
+ read: is(e.read),
1247
+ write: as(e.write),
1229
1248
  proxy: mo(e.proxy)
1230
1249
  };
1231
1250
  }
1232
- function Xc(e) {
1251
+ function Yc(e) {
1233
1252
  if (e !== void 0)
1234
1253
  return e === null ? null : {
1235
1254
  revisionId: e.revisionId,
1236
1255
  createdBy: e.createdBy,
1237
- content: Hc(e.content)
1256
+ content: Vc(e.content)
1238
1257
  };
1239
1258
  }
1240
- function Gc(e) {
1259
+ function Zc(e) {
1241
1260
  if (e !== void 0)
1242
1261
  return e === null ? null : {
1243
1262
  connectionId: e.connectionId,
1244
- config: Xc(e.config)
1263
+ config: Yc(e.config)
1245
1264
  };
1246
1265
  }
1247
- function Vc(e) {
1266
+ function Qc(e) {
1248
1267
  if (e !== void 0)
1249
1268
  return e === null ? null : {
1250
1269
  updateMask: e.updateMask,
1251
- installation: Gc(e.installation)
1270
+ installation: Zc(e.installation)
1252
1271
  };
1253
1272
  }
1254
- function Yc(e) {
1273
+ function ed(e) {
1255
1274
  if (e !== void 0)
1256
1275
  return e === null ? null : {
1257
1276
  appName: e.appName,
1258
1277
  name: e.name
1259
1278
  };
1260
1279
  }
1261
- function Zc(e) {
1280
+ function td(e) {
1262
1281
  if (e !== void 0)
1263
1282
  return e === null ? null : {
1264
1283
  updateMask: e.updateMask,
1265
- project: Yc(e.project)
1284
+ project: ed(e.project)
1266
1285
  };
1267
1286
  }
1268
- function Qc(e) {
1287
+ function rd(e) {
1269
1288
  if (e !== void 0)
1270
1289
  return e === null ? null : {
1271
1290
  externalRef: e.externalRef,
@@ -1275,14 +1294,14 @@ function Qc(e) {
1275
1294
  scopes: e.scopes
1276
1295
  };
1277
1296
  }
1278
- function ed(e) {
1297
+ function nd(e) {
1279
1298
  if (e !== void 0)
1280
1299
  return e === null ? null : {
1281
1300
  updateMask: e.updateMask,
1282
- providerApp: Qc(e.providerApp)
1301
+ providerApp: rd(e.providerApp)
1283
1302
  };
1284
1303
  }
1285
- class td extends de {
1304
+ class id extends de {
1286
1305
  /**
1287
1306
  * Generate a new connection (only valid for providers with auth types which are not OAuth2 Authorization Code)
1288
1307
  */
@@ -1296,7 +1315,7 @@ class td extends de {
1296
1315
  method: "POST",
1297
1316
  headers: i,
1298
1317
  query: n,
1299
- body: Us(t.generateConnectionParams)
1318
+ body: js(t.generateConnectionParams)
1300
1319
  }, r);
1301
1320
  return new B(a, (s) => Dr(s));
1302
1321
  }
@@ -1355,7 +1374,7 @@ class td extends de {
1355
1374
  return await (await this.listConnectionsRaw(t, r)).value();
1356
1375
  }
1357
1376
  }
1358
- class rd extends de {
1377
+ class od extends de {
1359
1378
  /**
1360
1379
  * Create a new consumer
1361
1380
  */
@@ -1382,7 +1401,7 @@ class rd extends de {
1382
1401
  await this.createConsumerRaw(t, r);
1383
1402
  }
1384
1403
  }
1385
- class nd extends de {
1404
+ class ad extends de {
1386
1405
  /**
1387
1406
  * Create a new destination
1388
1407
  */
@@ -1495,7 +1514,7 @@ class nd extends de {
1495
1514
  method: "PATCH",
1496
1515
  headers: i,
1497
1516
  query: n,
1498
- body: Jc(t.destinationUpdate)
1517
+ body: Gc(t.destinationUpdate)
1499
1518
  }, r);
1500
1519
  return new B(a, (s) => kr(s));
1501
1520
  }
@@ -1506,7 +1525,7 @@ class nd extends de {
1506
1525
  return await (await this.updateDestinationRaw(t, r)).value();
1507
1526
  }
1508
1527
  }
1509
- class id extends de {
1528
+ class sd extends de {
1510
1529
  /**
1511
1530
  * Create a new group
1512
1531
  */
@@ -1533,7 +1552,7 @@ class id extends de {
1533
1552
  await this.createGroupRaw(t, r);
1534
1553
  }
1535
1554
  }
1536
- class od extends de {
1555
+ class cd extends de {
1537
1556
  /**
1538
1557
  * Create a new installation
1539
1558
  */
@@ -1630,7 +1649,7 @@ class od extends de {
1630
1649
  method: "POST",
1631
1650
  headers: i,
1632
1651
  query: n,
1633
- body: oc(t.installation)
1652
+ body: cc(t.installation)
1634
1653
  }, r);
1635
1654
  return new B(a, (s) => rr(s));
1636
1655
  }
@@ -1685,7 +1704,7 @@ class od extends de {
1685
1704
  method: "PATCH",
1686
1705
  headers: i,
1687
1706
  query: n,
1688
- body: Vc(t.installationUpdate)
1707
+ body: Qc(t.installationUpdate)
1689
1708
  }, r);
1690
1709
  return new B(a, (s) => rr(s));
1691
1710
  }
@@ -1696,7 +1715,7 @@ class od extends de {
1696
1715
  return await (await this.updateInstallationRaw(t, r)).value();
1697
1716
  }
1698
1717
  }
1699
- class ad extends de {
1718
+ class dd extends de {
1700
1719
  /**
1701
1720
  * Batch upsert a group of integrations
1702
1721
  */
@@ -1710,7 +1729,7 @@ class ad extends de {
1710
1729
  method: "PUT",
1711
1730
  headers: i,
1712
1731
  query: n,
1713
- body: yo(t.batchUpsertIntegrationsRequest)
1732
+ body: ds(t.batchUpsertIntegrationsRequest)
1714
1733
  }, r);
1715
1734
  return new B(a, (s) => s.map(Li));
1716
1735
  }
@@ -1792,7 +1811,7 @@ class ad extends de {
1792
1811
  return await (await this.listIntegrationsRaw(t, r)).value();
1793
1812
  }
1794
1813
  }
1795
- class sd extends de {
1814
+ class ld extends de {
1796
1815
  /**
1797
1816
  * Generate a URL for the browser to render to kick off OAuth flow.
1798
1817
  * Get URL for OAuth flow
@@ -1807,9 +1826,9 @@ class sd extends de {
1807
1826
  method: "POST",
1808
1827
  headers: i,
1809
1828
  query: n,
1810
- body: Bc(t.connectOAuthParams)
1829
+ body: $c(t.connectOAuthParams)
1811
1830
  }, r);
1812
- return this.isJsonMime(a.headers.get("content-type")) ? new B(a) : new Ma(a);
1831
+ return this.isJsonMime(a.headers.get("content-type")) ? new B(a) : new Ua(a);
1813
1832
  }
1814
1833
  /**
1815
1834
  * Generate a URL for the browser to render to kick off OAuth flow.
@@ -1819,7 +1838,7 @@ class sd extends de {
1819
1838
  return await (await this.oauthConnectRaw(t, r)).value();
1820
1839
  }
1821
1840
  }
1822
- class cd extends de {
1841
+ class ud extends de {
1823
1842
  /**
1824
1843
  * Get an operation
1825
1844
  */
@@ -1860,7 +1879,7 @@ class cd extends de {
1860
1879
  headers: i,
1861
1880
  query: n
1862
1881
  }, r);
1863
- return new B(a, (s) => s.map(Tc));
1882
+ return new B(a, (s) => s.map(Ac));
1864
1883
  }
1865
1884
  /**
1866
1885
  * List logs for an operation
@@ -1895,7 +1914,7 @@ class cd extends de {
1895
1914
  return await (await this.listOperationsRaw(t, r)).value();
1896
1915
  }
1897
1916
  }
1898
- class dd extends de {
1917
+ class pd extends de {
1899
1918
  /**
1900
1919
  * Create a new project
1901
1920
  */
@@ -1998,7 +2017,7 @@ class dd extends de {
1998
2017
  method: "PATCH",
1999
2018
  headers: i,
2000
2019
  query: n,
2001
- body: Zc(t.projectUpdate)
2020
+ body: td(t.projectUpdate)
2002
2021
  }, r);
2003
2022
  return new B(a, (s) => xr(s));
2004
2023
  }
@@ -2009,7 +2028,7 @@ class dd extends de {
2009
2028
  return await (await this.updateProjectRaw(t, r)).value();
2010
2029
  }
2011
2030
  }
2012
- class ld extends de {
2031
+ class fd extends de {
2013
2032
  /**
2014
2033
  * Get provider
2015
2034
  */
@@ -2053,7 +2072,7 @@ class ld extends de {
2053
2072
  return await (await this.listProvidersRaw(t)).value();
2054
2073
  }
2055
2074
  }
2056
- class ud extends de {
2075
+ class hd extends de {
2057
2076
  /**
2058
2077
  * Create a new provider app
2059
2078
  */
@@ -2142,7 +2161,7 @@ class ud extends de {
2142
2161
  method: "PATCH",
2143
2162
  headers: i,
2144
2163
  query: n,
2145
- body: ed(t.providerAppUpdate)
2164
+ body: nd(t.providerAppUpdate)
2146
2165
  }, r);
2147
2166
  return new B(a, (s) => Pr(s));
2148
2167
  }
@@ -2153,7 +2172,7 @@ class ud extends de {
2153
2172
  return await (await this.updateProviderAppRaw(t, r)).value();
2154
2173
  }
2155
2174
  }
2156
- class pd extends de {
2175
+ class gd extends de {
2157
2176
  /**
2158
2177
  * Create a new revision
2159
2178
  */
@@ -2169,7 +2188,7 @@ class pd extends de {
2169
2188
  method: "POST",
2170
2189
  headers: i,
2171
2190
  query: n,
2172
- body: yo(t.revision)
2191
+ body: Es(t.revision)
2173
2192
  }, r);
2174
2193
  return new ze(a);
2175
2194
  }
@@ -2202,7 +2221,7 @@ class pd extends de {
2202
2221
  headers: i,
2203
2222
  query: n
2204
2223
  }, r);
2205
- return new B(a, (s) => tc(s));
2224
+ return new B(a, (s) => ic(s));
2206
2225
  }
2207
2226
  /**
2208
2227
  * Hydrate a revision with information from the consumer\'s SaaS instance.
@@ -2212,7 +2231,7 @@ class pd extends de {
2212
2231
  return await (await this.getHydratedRevisionRaw(t, r)).value();
2213
2232
  }
2214
2233
  }
2215
- class fd extends de {
2234
+ class md extends de {
2216
2235
  /**
2217
2236
  * Generate a signed URL to upload a zip file to.
2218
2237
  */
@@ -2225,7 +2244,7 @@ class fd extends de {
2225
2244
  headers: n,
2226
2245
  query: r
2227
2246
  }, t);
2228
- return new B(i, (a) => Wc(a));
2247
+ return new B(i, (a) => Jc(a));
2229
2248
  }
2230
2249
  /**
2231
2250
  * Generate a signed URL to upload a zip file to.
@@ -2234,13 +2253,13 @@ class fd extends de {
2234
2253
  return await (await this.generateUploadUrlRaw(t)).value();
2235
2254
  }
2236
2255
  }
2237
- class hd {
2256
+ class yd {
2238
2257
  constructor(t) {
2239
- this.connectionApi = new td(t), this.consumerApi = new rd(t), this.destinationApi = new nd(t), this.groupApi = new id(t), this.installationApi = new od(t), this.integrationApi = new ad(t), this.oAuthApi = new sd(t), this.operationApi = new cd(t), this.projectApi = new dd(t), this.providerApi = new ld(t), this.providerAppApi = new ud(t), this.revisionApi = new pd(t), this.uploadURLApi = new fd(t);
2258
+ this.connectionApi = new id(t), this.consumerApi = new od(t), this.destinationApi = new ad(t), this.groupApi = new sd(t), this.installationApi = new cd(t), this.integrationApi = new dd(t), this.oAuthApi = new ld(t), this.operationApi = new ud(t), this.projectApi = new pd(t), this.providerApi = new fd(t), this.providerAppApi = new hd(t), this.revisionApi = new gd(t), this.uploadURLApi = new md(t);
2240
2259
  }
2241
2260
  }
2242
- const gd = "1.9.1", md = "v1", Er = "https://api.withampersand.com";
2243
- function So() {
2261
+ const wd = "1.9.3", Id = "v1", Er = "https://api.withampersand.com";
2262
+ function bo() {
2244
2263
  try {
2245
2264
  const e = process.env.REACT_APP_AMP_SERVER;
2246
2265
  switch (e) {
@@ -2263,27 +2282,27 @@ function So() {
2263
2282
  return Er;
2264
2283
  }
2265
2284
  }
2266
- const yd = (e, t) => `${e}/${t}`;
2267
- function wd() {
2268
- return yd(So(), md);
2285
+ const vd = (e, t) => `${e}/${t}`;
2286
+ function bd() {
2287
+ return vd(bo(), Id);
2269
2288
  }
2270
- const Id = So(), vd = wd(), bd = new po({
2271
- basePath: vd,
2289
+ const Sd = bo(), Od = bd(), Cd = new po({
2290
+ basePath: Od,
2272
2291
  headers: {
2273
2292
  "X-Amp-Client": "react",
2274
- "X-Amp-Client-Version": gd
2293
+ "X-Amp-Client-Version": wd
2275
2294
  }
2276
2295
  });
2277
- let Sd = new hd(bd);
2278
- const X = () => Sd, Oo = _e({
2296
+ let Nd = new yd(Cd);
2297
+ const X = () => Nd, So = _e({
2279
2298
  integrations: null
2280
- }), Co = () => {
2281
- const e = ve(Oo);
2299
+ }), Oo = () => {
2300
+ const e = ve(So);
2282
2301
  if (!e)
2283
2302
  throw new Error("useIntegrationList must be used within a IntegrationListProvider");
2284
2303
  return e;
2285
2304
  };
2286
- function Od({ projectIdOrName: e, children: t }) {
2305
+ function Td({ projectIdOrName: e, children: t }) {
2287
2306
  const r = te(), { setError: n, isError: i } = nt(), [a, s] = k(null), [u, p] = k(!0);
2288
2307
  Y(() => {
2289
2308
  X().integrationApi.listIntegrations({ projectIdOrName: e }, {
@@ -2299,20 +2318,20 @@ function Od({ projectIdOrName: e, children: t }) {
2299
2318
  const h = we(() => ({
2300
2319
  integrations: a
2301
2320
  }), [a]);
2302
- return i(Z.INTEGRATION_LIST, e) ? /* @__PURE__ */ l(qe, { message: "Error retrieving integrations for the project, double check the API key" }) : /* @__PURE__ */ l(Oo.Provider, { value: h, children: u ? /* @__PURE__ */ l(De, {}) : t });
2321
+ return i(Z.INTEGRATION_LIST, e) ? /* @__PURE__ */ l(We, { message: "Error retrieving integrations for the project, double check the API key" }) : /* @__PURE__ */ l(So.Provider, { value: h, children: u ? /* @__PURE__ */ l(De, {}) : t });
2303
2322
  }
2304
- const No = _e({
2323
+ const Co = _e({
2305
2324
  project: null,
2306
2325
  appName: "",
2307
2326
  projectId: "",
2308
2327
  projectIdOrName: ""
2309
2328
  }), ee = () => {
2310
- const e = ve(No);
2329
+ const e = ve(Co);
2311
2330
  if (!e)
2312
2331
  throw new Error("useProject must be used within a ProjectProvider");
2313
2332
  return e;
2314
2333
  };
2315
- function Cd({ projectIdOrName: e, children: t }) {
2334
+ function Rd({ projectIdOrName: e, children: t }) {
2316
2335
  const r = te(), { isError: n, setError: i } = nt(), [a, s] = k(null), [u, p] = k(!0);
2317
2336
  Y(() => {
2318
2337
  X().projectApi.getProject({ projectIdOrName: e }, {
@@ -2331,9 +2350,9 @@ function Cd({ projectIdOrName: e, children: t }) {
2331
2350
  project: a,
2332
2351
  appName: (a == null ? void 0 : a.appName) || ""
2333
2352
  }), [e, a]);
2334
- return n(Z.PROJECT, e) ? /* @__PURE__ */ l(qe, { message: `Error loading project ${e}` }) : /* @__PURE__ */ l(No.Provider, { value: h, children: u ? /* @__PURE__ */ l(De, {}) : t });
2353
+ return n(Z.PROJECT, e) ? /* @__PURE__ */ l(We, { message: `Error loading project ${e}` }) : /* @__PURE__ */ l(Co.Provider, { value: h, children: u ? /* @__PURE__ */ l(De, {}) : t });
2335
2354
  }
2336
- function Hp(e) {
2355
+ function Vp(e) {
2337
2356
  const { options: { apiKey: t, projectId: r, project: n }, children: i } = e, a = n || r;
2338
2357
  if (r && n)
2339
2358
  throw new Error("Use AmpersandProvider either with projectId or project but not both.");
@@ -2341,26 +2360,26 @@ function Hp(e) {
2341
2360
  throw new Error("Cannot use AmpersandProvider without a projectId or name.");
2342
2361
  if (!t)
2343
2362
  throw new Error("Cannot use AmpersandProvider without an apiKey.");
2344
- return /* @__PURE__ */ l(xa, { children: /* @__PURE__ */ l(Fa, { children: /* @__PURE__ */ l(ka, { value: t, children: /* @__PURE__ */ l(Cd, { projectIdOrName: a, children: /* @__PURE__ */ l(Od, { projectIdOrName: a, children: i }) }) }) }) });
2363
+ return /* @__PURE__ */ l(Aa, { children: /* @__PURE__ */ l(Ea, { children: /* @__PURE__ */ l(xa, { value: t, children: /* @__PURE__ */ l(Rd, { projectIdOrName: a, children: /* @__PURE__ */ l(Td, { projectIdOrName: a, children: i }) }) }) }) });
2345
2364
  }
2346
- const Nd = _e(null);
2347
- function Xp() {
2348
- const e = ve(Nd);
2365
+ const _d = _e(null);
2366
+ function Yp() {
2367
+ const e = ve(_d);
2349
2368
  if (!e)
2350
2369
  throw new Error(`Cannot call useAmpersandProvider unless your
2351
2370
  component is wrapped with AmpersandProvider`);
2352
2371
  return e;
2353
2372
  }
2354
- function To(e) {
2373
+ function No(e) {
2355
2374
  return e.charAt(0).toUpperCase() + e.slice(1);
2356
2375
  }
2357
2376
  function vt(e, t) {
2358
- return (t == null ? void 0 : t.displayName) ?? To(e);
2377
+ return (t == null ? void 0 : t.displayName) ?? No(e);
2359
2378
  }
2360
- const Ro = (e) => e.split(`
2361
- `).filter((r) => r.trim() !== ""), Td = (e, t) => (t == null ? void 0 : t.length) === 0 || !e ? null : t.find(
2379
+ const To = (e) => e.split(`
2380
+ `).filter((r) => r.trim() !== ""), Ad = (e, t) => (t == null ? void 0 : t.length) === 0 || !e ? null : t.find(
2362
2381
  (r) => r.name === e
2363
- ) ?? null, _o = _e({
2382
+ ) ?? null, Ro = _e({
2364
2383
  integrationId: "",
2365
2384
  provider: "",
2366
2385
  integrationObj: void 0,
@@ -2377,12 +2396,12 @@ const Ro = (e) => e.split(`
2377
2396
  onUpdateSuccess: void 0
2378
2397
  });
2379
2398
  function Ke() {
2380
- const e = ve(_o);
2399
+ const e = ve(Ro);
2381
2400
  if (!e)
2382
2401
  throw new Error("useInstallIntegrationProps must be used within an InstallIntegrationProvider");
2383
2402
  return e;
2384
2403
  }
2385
- function Rd({
2404
+ function xd({
2386
2405
  children: e,
2387
2406
  integration: t,
2388
2407
  consumerRef: r,
@@ -2392,8 +2411,8 @@ function Rd({
2392
2411
  onInstallSuccess: s,
2393
2412
  onUpdateSuccess: u
2394
2413
  }) {
2395
- const p = te(), { projectId: h } = ee(), { integrations: m } = Co(), [w, y] = k([]), [I, b] = k(!0), { setError: v, isError: S } = nt(), R = (w == null ? void 0 : w[0]) || null, C = we(
2396
- () => Td(t, m || []),
2414
+ const p = te(), { projectId: h } = ee(), { integrations: m } = Oo(), [w, y] = k([]), [I, b] = k(!0), { setError: v, isError: S } = nt(), R = (w == null ? void 0 : w[0]) || null, C = we(
2415
+ () => Ad(t, m || []),
2397
2416
  [t, m]
2398
2417
  );
2399
2418
  Y(() => {
@@ -2449,11 +2468,11 @@ function Rd({
2449
2468
  ]);
2450
2469
  if (C !== null) {
2451
2470
  const H = `Error retrieving installation information for integration "${(C == null ? void 0 : C.name) || "unknown"}"`;
2452
- return S(Z.INSTALLATION_LIST, M) ? /* @__PURE__ */ l(qe, { message: H }) : /* @__PURE__ */ l(_o.Provider, { value: ie, children: I ? /* @__PURE__ */ l(De, {}) : e });
2471
+ return S(Z.INSTALLATION_LIST, M) ? /* @__PURE__ */ l(We, { message: H }) : /* @__PURE__ */ l(Ro.Provider, { value: ie, children: I ? /* @__PURE__ */ l(De, {}) : e });
2453
2472
  }
2454
- return /* @__PURE__ */ l(qe, { message: `Integration "${t}" not found` });
2473
+ return /* @__PURE__ */ l(We, { message: `Integration "${t}" not found` });
2455
2474
  }
2456
- const Ao = _e({
2475
+ const _o = _e({
2457
2476
  connections: null,
2458
2477
  selectedConnection: null,
2459
2478
  setConnections: () => {
@@ -2461,12 +2480,12 @@ const Ao = _e({
2461
2480
  setSelectedConnection: () => {
2462
2481
  }
2463
2482
  }), Lt = () => {
2464
- const e = ve(Ao);
2483
+ const e = ve(_o);
2465
2484
  if (!e)
2466
2485
  throw new Error("useConnections must be used within a ConnectionsProvider");
2467
2486
  return e;
2468
2487
  };
2469
- function xo({
2488
+ function Ao({
2470
2489
  provider: e,
2471
2490
  groupRef: t,
2472
2491
  children: r
@@ -2494,7 +2513,7 @@ function xo({
2494
2513
  setConnections: s,
2495
2514
  setSelectedConnection: p
2496
2515
  }), [a, u, s, p]);
2497
- return y(Z.CONNECTION_LIST, i) ? /* @__PURE__ */ l(qe, { message: "Error retrieving existing connections" }) : /* @__PURE__ */ l(Ao.Provider, { value: v, children: h ? /* @__PURE__ */ l(De, {}) : r });
2516
+ return y(Z.CONNECTION_LIST, i) ? /* @__PURE__ */ l(We, { message: "Error retrieving existing connections" }) : /* @__PURE__ */ l(_o.Provider, { value: v, children: h ? /* @__PURE__ */ l(De, {}) : r });
2498
2517
  }
2499
2518
  var et = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
2500
2519
  function Ni(e) {
@@ -2562,10 +2581,10 @@ $r.exports;
2562
2581
  c[++o] = f;
2563
2582
  }), c;
2564
2583
  }
2565
- var yr = Array.prototype, Sn = Function.prototype, Tt = Object.prototype, Ge = ce["__core-js_shared__"], jt = Sn.toString, ue = Tt.hasOwnProperty, Wt = function() {
2584
+ var yr = Array.prototype, Sn = Function.prototype, Tt = Object.prototype, Ge = ce["__core-js_shared__"], jt = Sn.toString, ue = Tt.hasOwnProperty, qt = function() {
2566
2585
  var d = /[^.]+$/.exec(Ge && Ge.keys && Ge.keys.IE_PROTO || "");
2567
2586
  return d ? "Symbol(src)_1." + d : "";
2568
- }(), qt = Tt.toString, On = RegExp(
2587
+ }(), Wt = Tt.toString, On = RegExp(
2569
2588
  "^" + jt.call(ue).replace(mn, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
2570
2589
  ), wr = Mt ? ce.Buffer : void 0, he = ce.Symbol, it = ce.Uint8Array, Ir = Tt.propertyIsEnumerable, vr = yr.splice, Be = he ? he.toStringTag : void 0, zt = Object.getOwnPropertySymbols, ot = wr ? wr.isBuffer : void 0, Cn = xe(Object.keys, Object), Se = Ye(ce, "DataView"), at = Ye(ce, "Map"), Jt = Ye(ce, "Promise"), Ht = Ye(ce, "Set"), Xt = Ye(ce, "WeakMap"), st = Ye(Object, "create"), Oe = Te(Se), Nn = Te(at), Tn = Te(Jt), Rn = Te(Ht), _n = Te(Xt), br = he ? he.prototype : void 0, ke = br ? br.valueOf : void 0;
2571
2590
  function Ue(d) {
@@ -2680,10 +2699,10 @@ $r.exports;
2680
2699
  var o = this.__data__, c = o.delete(d);
2681
2700
  return this.size = o.size, c;
2682
2701
  }
2683
- function Wn(d) {
2702
+ function qn(d) {
2684
2703
  return this.__data__.get(d);
2685
2704
  }
2686
- function qn(d) {
2705
+ function Wn(d) {
2687
2706
  return this.__data__.has(d);
2688
2707
  }
2689
2708
  function zn(d, o) {
@@ -2696,7 +2715,7 @@ $r.exports;
2696
2715
  }
2697
2716
  return c.set(d, o), this.size = c.size, this;
2698
2717
  }
2699
- Ee.prototype.clear = Sr, Ee.prototype.delete = jn, Ee.prototype.get = Wn, Ee.prototype.has = qn, Ee.prototype.set = zn;
2718
+ Ee.prototype.clear = Sr, Ee.prototype.delete = jn, Ee.prototype.get = qn, Ee.prototype.has = Wn, Ee.prototype.set = zn;
2700
2719
  function Jn(d, o) {
2701
2720
  var c = ut(d), f = !c && ni(d), O = !c && !f && Ft(d), T = !c && !f && !O && tr(d), x = c || f || O || T, P = x ? vn(d.length, String) : [], E = P.length;
2702
2721
  for (var F in d)
@@ -2729,16 +2748,16 @@ $r.exports;
2729
2748
  function xt(d, o, c, f, O, T) {
2730
2749
  var x = ut(d), P = ut(o), E = x ? p : ge(d), F = P ? p : ge(o);
2731
2750
  E = E == u ? C : E, F = F == u ? C : F;
2732
- var W = E == C, q = F == C, G = E == F;
2751
+ var q = E == C, W = F == C, G = E == F;
2733
2752
  if (G && Ft(d)) {
2734
2753
  if (!Ft(o))
2735
2754
  return !1;
2736
- x = !0, W = !1;
2755
+ x = !0, q = !1;
2737
2756
  }
2738
- if (G && !W)
2757
+ if (G && !q)
2739
2758
  return T || (T = new Ee()), x || tr(d) ? Yt(d, o, c, f, O, T) : Vn(d, o, E, c, f, O, T);
2740
2759
  if (!(c & i)) {
2741
- var oe = W && ue.call(d, "__wrapped__"), ae = q && ue.call(o, "__wrapped__");
2760
+ var oe = q && ue.call(d, "__wrapped__"), ae = W && ue.call(o, "__wrapped__");
2742
2761
  if (oe || ae) {
2743
2762
  var Re = oe ? d.value() : d, $e = ae ? o.value() : o;
2744
2763
  return T || (T = new Ee()), O(Re, $e, c, f, T);
@@ -2770,15 +2789,15 @@ $r.exports;
2770
2789
  var F = T.get(d);
2771
2790
  if (F && T.get(o))
2772
2791
  return F == o;
2773
- var W = -1, q = !0, G = c & a ? new ct() : void 0;
2774
- for (T.set(d, o), T.set(o, d); ++W < P; ) {
2775
- var oe = d[W], ae = o[W];
2792
+ var q = -1, W = !0, G = c & a ? new ct() : void 0;
2793
+ for (T.set(d, o), T.set(o, d); ++q < P; ) {
2794
+ var oe = d[q], ae = o[q];
2776
2795
  if (f)
2777
- var Re = x ? f(ae, oe, W, o, d, T) : f(oe, ae, W, d, o, T);
2796
+ var Re = x ? f(ae, oe, q, o, d, T) : f(oe, ae, q, d, o, T);
2778
2797
  if (Re !== void 0) {
2779
2798
  if (Re)
2780
2799
  continue;
2781
- q = !1;
2800
+ W = !1;
2782
2801
  break;
2783
2802
  }
2784
2803
  if (G) {
@@ -2786,15 +2805,15 @@ $r.exports;
2786
2805
  if (!Ct(G, ft) && (oe === $e || O(oe, $e, c, f, T)))
2787
2806
  return G.push(ft);
2788
2807
  })) {
2789
- q = !1;
2808
+ W = !1;
2790
2809
  break;
2791
2810
  }
2792
2811
  } else if (!(oe === ae || O(oe, ae, c, f, T))) {
2793
- q = !1;
2812
+ W = !1;
2794
2813
  break;
2795
2814
  }
2796
2815
  }
2797
- return T.delete(d), T.delete(o), q;
2816
+ return T.delete(d), T.delete(o), W;
2798
2817
  }
2799
2818
  function Vn(d, o, c, f, O, T, x) {
2800
2819
  switch (c) {
@@ -2823,8 +2842,8 @@ $r.exports;
2823
2842
  if (F)
2824
2843
  return F == o;
2825
2844
  f |= a, x.set(d, o);
2826
- var W = Yt(P(d), P(o), f, O, T, x);
2827
- return x.delete(d), W;
2845
+ var q = Yt(P(d), P(o), f, O, T, x);
2846
+ return x.delete(d), q;
2828
2847
  case se:
2829
2848
  if (ke)
2830
2849
  return ke.call(d) == ke.call(o);
@@ -2832,11 +2851,11 @@ $r.exports;
2832
2851
  return !1;
2833
2852
  }
2834
2853
  function Yn(d, o, c, f, O, T) {
2835
- var x = c & i, P = Nr(d), E = P.length, F = Nr(o), W = F.length;
2836
- if (E != W && !x)
2854
+ var x = c & i, P = Nr(d), E = P.length, F = Nr(o), q = F.length;
2855
+ if (E != q && !x)
2837
2856
  return !1;
2838
- for (var q = E; q--; ) {
2839
- var G = P[q];
2857
+ for (var W = E; W--; ) {
2858
+ var G = P[W];
2840
2859
  if (!(x ? G in o : ue.call(o, G)))
2841
2860
  return !1;
2842
2861
  }
@@ -2845,8 +2864,8 @@ $r.exports;
2845
2864
  return oe == o;
2846
2865
  var ae = !0;
2847
2866
  T.set(d, o), T.set(o, d);
2848
- for (var Re = x; ++q < E; ) {
2849
- G = P[q];
2867
+ for (var Re = x; ++W < E; ) {
2868
+ G = P[W];
2850
2869
  var $e = d[G], ft = o[G];
2851
2870
  if (f)
2852
2871
  var Pi = x ? f(ft, $e, G, o, d, T) : f($e, ft, G, d, o, T);
@@ -2880,7 +2899,7 @@ $r.exports;
2880
2899
  var f = !0;
2881
2900
  } catch {
2882
2901
  }
2883
- var O = qt.call(d);
2902
+ var O = Wt.call(d);
2884
2903
  return f && (o ? d[Be] = c : delete d[Be]), O;
2885
2904
  }
2886
2905
  var Qn = zt ? function(d) {
@@ -2913,14 +2932,14 @@ $r.exports;
2913
2932
  return o == "string" || o == "number" || o == "symbol" || o == "boolean" ? d !== "__proto__" : d === null;
2914
2933
  }
2915
2934
  function ri(d) {
2916
- return !!Wt && Wt in d;
2935
+ return !!qt && qt in d;
2917
2936
  }
2918
2937
  function kt(d) {
2919
2938
  var o = d && d.constructor, c = typeof o == "function" && o.prototype || Tt;
2920
2939
  return d === c;
2921
2940
  }
2922
2941
  function Zt(d) {
2923
- return qt.call(d);
2942
+ return Wt.call(d);
2924
2943
  }
2925
2944
  function Te(d) {
2926
2945
  if (d != null) {
@@ -2978,41 +2997,41 @@ $r.exports;
2978
2997
  }
2979
2998
  e.exports = Me;
2980
2999
  })($r, $r.exports);
2981
- var _d = $r.exports;
2982
- const Ad = /* @__PURE__ */ Ni(_d), yt = "other";
3000
+ var kd = $r.exports;
3001
+ const Ed = /* @__PURE__ */ Ni(kd), yt = "other";
2983
3002
  function tt(e) {
2984
3003
  return e.mapToName !== void 0;
2985
3004
  }
2986
- function xd(e, t) {
3005
+ function Fd(e, t) {
2987
3006
  var r;
2988
3007
  return ((r = e == null ? void 0 : e.objects) == null ? void 0 : r.find((n) => n.objectName === t)) || null;
2989
3008
  }
2990
- function kd(e) {
3009
+ function Pd(e) {
2991
3010
  var t;
2992
3011
  return ((t = e == null ? void 0 : e.requiredFields) == null ? void 0 : t.filter(
2993
3012
  (r) => !tt(r) && !!r.fieldName
2994
3013
  )) || null;
2995
3014
  }
2996
- function Ed(e) {
3015
+ function Dd(e) {
2997
3016
  var r;
2998
3017
  return ((r = e == null ? void 0 : e.requiredFields) == null ? void 0 : r.filter(
2999
3018
  (n) => tt(n) && !!n.mapToName
3000
3019
  )) || [];
3001
3020
  }
3002
- function Fd(e) {
3021
+ function Kd(e) {
3003
3022
  var t;
3004
3023
  return ((t = e == null ? void 0 : e.optionalFields) == null ? void 0 : t.filter(
3005
3024
  (r) => !tt(r) && !!r.fieldName
3006
3025
  )) || null;
3007
3026
  }
3008
- const ko = (e, t) => {
3027
+ const xo = (e, t) => {
3009
3028
  var r, n, i;
3010
3029
  return (i = (n = (r = e == null ? void 0 : e.content) == null ? void 0 : r.read) == null ? void 0 : n.objects) == null ? void 0 : i[t];
3011
3030
  };
3012
- function Pd(e) {
3031
+ function Ld(e) {
3013
3032
  return tt(e) ? e.mapToName : e.fieldName;
3014
3033
  }
3015
- const Eo = (e, t) => {
3034
+ const ko = (e, t) => {
3016
3035
  var n, i, a;
3017
3036
  const r = [];
3018
3037
  return (a = (i = (n = t.content) == null ? void 0 : n.read) == null ? void 0 : i.objects) == null || a.forEach((s) => {
@@ -3021,36 +3040,36 @@ const Eo = (e, t) => {
3021
3040
  name: s == null ? void 0 : s.objectName,
3022
3041
  // if no config, object is not completed
3023
3042
  // object is completed if the key exists in the config
3024
- completed: e ? !!ko(e, s.objectName) : !1
3043
+ completed: e ? !!xo(e, s.objectName) : !1
3025
3044
  }
3026
3045
  );
3027
3046
  }), r;
3028
- }, Fo = (e) => {
3047
+ }, Eo = (e) => {
3029
3048
  var r;
3030
3049
  return {
3031
3050
  name: yt,
3032
3051
  completed: e ? !!((r = e == null ? void 0 : e.content) != null && r.write) : !1
3033
3052
  };
3034
3053
  };
3035
- function Dd(e, t) {
3054
+ function Bd(e, t) {
3036
3055
  var a;
3037
- const r = Eo(e, t), i = !!((a = t == null ? void 0 : t.content) != null && a.write) ? Fo(e) : void 0;
3056
+ const r = ko(e, t), i = !!((a = t == null ? void 0 : t.content) != null && a.write) ? Eo(e) : void 0;
3038
3057
  return i && r.push(i), r;
3039
3058
  }
3040
- function Po(e, t, r) {
3059
+ function Fo(e, t, r) {
3041
3060
  const n = (e == null ? void 0 : e.filter(
3042
3061
  (a) => !(t != null && t[a == null ? void 0 : a.mapToName])
3043
3062
  )) || [], i = n.map((a) => a.mapToName);
3044
3063
  return r(Z.MAPPING, i), n != null && n.length && console.error("required fields not met", n.map((a) => a.mapToDisplayName)), { errorList: i };
3045
3064
  }
3046
3065
  function Ti(e, t) {
3047
- return Ad(e, t);
3066
+ return Ed(e, t);
3048
3067
  }
3049
- const Kd = (e, t, r) => {
3068
+ const Ud = (e, t, r) => {
3050
3069
  var I, b, v, S, R, C;
3051
3070
  if (!e)
3052
3071
  return null;
3053
- const n = xd(e, t), i = n && kd(n), a = n && Fd(n), s = n && Ed(n), u = (n == null ? void 0 : n.allFields) || [], p = r == null ? void 0 : r.content, h = ((v = (b = (I = p == null ? void 0 : p.read) == null ? void 0 : I.objects) == null ? void 0 : b[t]) == null ? void 0 : v.selectedFields) || {}, m = ((C = (R = (S = p == null ? void 0 : p.read) == null ? void 0 : S.objects) == null ? void 0 : R[t]) == null ? void 0 : C.selectedFieldMappings) || {}, w = { ...h }, y = { ...m };
3072
+ const n = Fd(e, t), i = n && Pd(n), a = n && Kd(n), s = n && Dd(n), u = (n == null ? void 0 : n.allFields) || [], p = r == null ? void 0 : r.content, h = ((v = (b = (I = p == null ? void 0 : p.read) == null ? void 0 : I.objects) == null ? void 0 : b[t]) == null ? void 0 : v.selectedFields) || {}, m = ((C = (R = (S = p == null ? void 0 : p.read) == null ? void 0 : S.objects) == null ? void 0 : R[t]) == null ? void 0 : C.selectedFieldMappings) || {}, w = { ...h }, y = { ...m };
3054
3073
  return {
3055
3074
  allFields: u,
3056
3075
  // from hydrated revision
@@ -3072,7 +3091,7 @@ const Kd = (e, t, r) => {
3072
3091
  // from config
3073
3092
  }
3074
3093
  };
3075
- }, Ld = (e, t) => {
3094
+ }, Md = (e, t) => {
3076
3095
  var s, u;
3077
3096
  if (!e)
3078
3097
  return null;
@@ -3090,33 +3109,33 @@ const Kd = (e, t, r) => {
3090
3109
  }
3091
3110
  };
3092
3111
  };
3093
- function Do(e, t, r) {
3112
+ function Po(e, t, r) {
3094
3113
  var a, s;
3095
3114
  const n = (a = e == null ? void 0 : e.content) == null ? void 0 : a.read, i = (s = e == null ? void 0 : e.content) == null ? void 0 : s.write;
3096
3115
  return {
3097
- read: Kd(n, t, r),
3098
- write: Ld(i, r)
3116
+ read: Ud(n, t, r),
3117
+ write: Md(i, r)
3099
3118
  };
3100
3119
  }
3101
- const Ko = (e, t, r, n) => {
3102
- const i = Do(
3120
+ const Do = (e, t, r, n) => {
3121
+ const i = Po(
3103
3122
  e,
3104
3123
  r,
3105
3124
  t
3106
3125
  );
3107
3126
  n(r, i);
3108
- }, Bd = (e, t, r) => {
3109
- const n = Dd(t, e), i = {};
3127
+ }, $d = (e, t, r) => {
3128
+ const n = Bd(t, e), i = {};
3110
3129
  n.forEach(({ name: a, completed: s }) => {
3111
- s && (i[a] = Do(
3130
+ s && (i[a] = Po(
3112
3131
  e,
3113
3132
  a,
3114
3133
  t
3115
3134
  ));
3116
3135
  }), r(i);
3117
- }, Lo = (e) => {
3136
+ }, Ko = (e) => {
3118
3137
  const { requiredFields: t, selectedOptionalFields: r } = (e == null ? void 0 : e.read) || {}, n = /* @__PURE__ */ new Set();
3119
- return t == null || t.forEach((a) => n.add(Pd(a))), {
3138
+ return t == null || t.forEach((a) => n.add(Ld(a))), {
3120
3139
  ...Array.from(n).reduce((a, s) => ({
3121
3140
  ...a,
3122
3141
  [s]: !0
@@ -3124,7 +3143,7 @@ const Ko = (e, t, r, n) => {
3124
3143
  ...r || {}
3125
3144
  // adds optional fields that are selected (true)
3126
3145
  };
3127
- }, Bo = (e) => {
3146
+ }, Lo = (e) => {
3128
3147
  const { selectedFieldMappings: t } = (e == null ? void 0 : e.read) || {}, r = {};
3129
3148
  return t && Object.keys(t).forEach(
3130
3149
  (n) => {
@@ -3132,7 +3151,7 @@ const Ko = (e, t, r, n) => {
3132
3151
  }
3133
3152
  ), r;
3134
3153
  };
3135
- function Uo(e, t) {
3154
+ function Bo(e, t) {
3136
3155
  return t[e] || void 0;
3137
3156
  }
3138
3157
  function Ri({
@@ -3169,13 +3188,13 @@ function Qr(e) {
3169
3188
  var t;
3170
3189
  return (t = e.content.proxy) == null ? void 0 : t.enabled;
3171
3190
  }
3172
- const Ud = (e, t) => {
3191
+ const jd = (e, t) => {
3173
3192
  const r = e.content.read, n = r == null ? void 0 : r.objects;
3174
3193
  return n == null ? void 0 : n.find((i) => i.objectName === t);
3175
- }, Md = (e, t, r, n) => {
3176
- const i = Lo(e), a = Bo(
3194
+ }, qd = (e, t, r, n) => {
3195
+ const i = Ko(e), a = Lo(
3177
3196
  e
3178
- ), s = Ud(r, t);
3197
+ ), s = jd(r, t);
3179
3198
  if (!s)
3180
3199
  return console.error(`Error when getting object from hydratedRevision for objectName: ${t}`), null;
3181
3200
  const u = {
@@ -3198,8 +3217,8 @@ const Ud = (e, t) => {
3198
3217
  }
3199
3218
  };
3200
3219
  return Qr(r) && (u.content.proxy = { enabled: !0 }), u;
3201
- }, $d = (e, t, r, n, i, a, s, u, p, h, m) => {
3202
- const w = Md(
3220
+ }, Wd = (e, t, r, n, i, a, s, u, p, h, m) => {
3221
+ const w = qd(
3203
3222
  p,
3204
3223
  a,
3205
3224
  u,
@@ -3215,7 +3234,7 @@ const Ud = (e, t) => {
3215
3234
  setInstallation: h,
3216
3235
  onInstallSuccess: m
3217
3236
  }) : (console.error("Error when generating createConfig from configureState"), Promise.resolve(null));
3218
- }, Mo = (e) => {
3237
+ }, Uo = (e) => {
3219
3238
  var a, s;
3220
3239
  const t = {}, r = (a = e.write) == null ? void 0 : a.writeObjects, n = (s = e.write) == null ? void 0 : s.selectedNonConfigurableWriteFields, i = n ? Object.keys(n) : [];
3221
3240
  return r && r.forEach((u) => {
@@ -3224,13 +3243,13 @@ const Ud = (e, t) => {
3224
3243
  objectName: p
3225
3244
  });
3226
3245
  }), t;
3227
- }, jd = (e) => {
3246
+ }, zd = (e) => {
3228
3247
  const t = e.content.write;
3229
3248
  return t == null ? void 0 : t.objects;
3230
- }, Wd = (e, t, r) => {
3231
- if (!jd(t))
3249
+ }, Jd = (e, t, r) => {
3250
+ if (!zd(t))
3232
3251
  return console.error("Error when getting write objects from hydratedRevision"), null;
3233
- const i = Mo(e), a = {
3252
+ const i = Uo(e), a = {
3234
3253
  revisionId: t.id,
3235
3254
  createdBy: `consumer:${r}`,
3236
3255
  content: {
@@ -3246,8 +3265,8 @@ const Ud = (e, t) => {
3246
3265
  }
3247
3266
  };
3248
3267
  return Qr(t) && (a.content.proxy = { enabled: !0 }), a;
3249
- }, qd = (e, t, r, n, i, a, s, u, p, h) => {
3250
- const m = Wd(
3268
+ }, Hd = (e, t, r, n, i, a, s, u, p, h) => {
3269
+ const m = Jd(
3251
3270
  u,
3252
3271
  s,
3253
3272
  n
@@ -3263,7 +3282,7 @@ const Ud = (e, t) => {
3263
3282
  onInstallSuccess: h
3264
3283
  }) : (console.error("Error when generating createConfig from configureState"), Promise.resolve(null));
3265
3284
  };
3266
- function zd() {
3285
+ function Xd() {
3267
3286
  return /* @__PURE__ */ A("svg", { width: "18", height: "18", viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
3268
3287
  /* @__PURE__ */ l("path", { d: "M2.25 4.5H3.75H15.75", stroke: "#991B1B", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
3269
3288
  /* @__PURE__ */ l(
@@ -3280,7 +3299,7 @@ function zd() {
3280
3299
  /* @__PURE__ */ l("path", { d: "M10.5 8.25V12.75", stroke: "#991B1B", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" })
3281
3300
  ] });
3282
3301
  }
3283
- const $o = "uninstall-installation", Jd = Si(
3302
+ const Mo = "uninstall-installation", Gd = Si(
3284
3303
  ({ text: e = "Uninstall" }, t) => {
3285
3304
  const r = oo({ ref: t }), n = ao("Tabs", r);
3286
3305
  return /* @__PURE__ */ A(
@@ -3300,7 +3319,7 @@ const $o = "uninstall-installation", Jd = Si(
3300
3319
  my: 2,
3301
3320
  mx: 4,
3302
3321
  children: [
3303
- zd(),
3322
+ Xd(),
3304
3323
  /* @__PURE__ */ l(J, { textAlign: "left", children: /* @__PURE__ */ l(Ie, { color: "red.800", children: e }) })
3305
3324
  ]
3306
3325
  }
@@ -3310,16 +3329,16 @@ const $o = "uninstall-installation", Jd = Si(
3310
3329
  }
3311
3330
  );
3312
3331
  }
3313
- ), jo = _e({
3332
+ ), $o = _e({
3314
3333
  hydratedRevision: null,
3315
3334
  loading: !1
3316
3335
  }), dr = () => {
3317
- const e = ve(jo);
3336
+ const e = ve($o);
3318
3337
  if (!e)
3319
3338
  throw new Error("useHydratedRevision must be used within a HydratedRevisionProvider");
3320
3339
  return e;
3321
3340
  };
3322
- function Hd({
3341
+ function Vd({
3323
3342
  projectId: e,
3324
3343
  children: t
3325
3344
  }) {
@@ -3354,9 +3373,9 @@ function Hd({
3354
3373
  hydratedRevision: a,
3355
3374
  loading: u
3356
3375
  }), [a, u]), C = `Error retrieving integration details for '${(i == null ? void 0 : i.name) || n || "unknown integration"}. This is sometimes caused by insufficient permissions with your credentials'`;
3357
- return /* @__PURE__ */ l(jo.Provider, { value: S, children: h(Z.HYDRATED_REVISION, v) ? /* @__PURE__ */ l(qe, { message: C }) : t });
3376
+ return /* @__PURE__ */ l($o.Provider, { value: S, children: h(Z.HYDRATED_REVISION, v) ? /* @__PURE__ */ l(We, { message: C }) : t });
3358
3377
  }
3359
- var Wo = Symbol.for("immer-nothing"), Mi = Symbol.for("immer-draftable"), pe = Symbol.for("immer-state"), Xd = process.env.NODE_ENV !== "production" ? [
3378
+ var jo = Symbol.for("immer-nothing"), Mi = Symbol.for("immer-draftable"), pe = Symbol.for("immer-state"), Yd = process.env.NODE_ENV !== "production" ? [
3360
3379
  // All error codes, starting by 0:
3361
3380
  function(e) {
3362
3381
  return `The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`;
@@ -3389,7 +3408,7 @@ var Wo = Symbol.for("immer-nothing"), Mi = Symbol.for("immer-draftable"), pe = S
3389
3408
  ] : [];
3390
3409
  function le(e, ...t) {
3391
3410
  if (process.env.NODE_ENV !== "production") {
3392
- const r = Xd[e], n = typeof r == "function" ? r.apply(null, t) : r;
3411
+ const r = Yd[e], n = typeof r == "function" ? r.apply(null, t) : r;
3393
3412
  throw new Error(`[Immer] ${n}`);
3394
3413
  }
3395
3414
  throw new Error(
@@ -3404,7 +3423,7 @@ function wt(e) {
3404
3423
  var t;
3405
3424
  return e ? qo(e) || Array.isArray(e) || !!e[Mi] || !!((t = e.constructor) != null && t[Mi]) || tn(e) || rn(e) : !1;
3406
3425
  }
3407
- var Gd = Object.prototype.constructor.toString();
3426
+ var Zd = Object.prototype.constructor.toString();
3408
3427
  function qo(e) {
3409
3428
  if (!e || typeof e != "object")
3410
3429
  return !1;
@@ -3412,7 +3431,7 @@ function qo(e) {
3412
3431
  if (t === null)
3413
3432
  return !0;
3414
3433
  const r = Object.hasOwnProperty.call(t, "constructor") && t.constructor;
3415
- return r === Object ? !0 : typeof r == "function" && Function.toString.call(r) === Gd;
3434
+ return r === Object ? !0 : typeof r == "function" && Function.toString.call(r) === Zd;
3416
3435
  }
3417
3436
  function jr(e, t) {
3418
3437
  en(e) === 0 ? Reflect.ownKeys(e).forEach((r) => {
@@ -3426,11 +3445,11 @@ function en(e) {
3426
3445
  function ui(e, t) {
3427
3446
  return en(e) === 2 ? e.has(t) : Object.prototype.hasOwnProperty.call(e, t);
3428
3447
  }
3429
- function zo(e, t, r) {
3448
+ function Wo(e, t, r) {
3430
3449
  const n = en(e);
3431
3450
  n === 2 ? e.set(t, r) : n === 3 ? e.add(r) : e[t] = r;
3432
3451
  }
3433
- function Vd(e, t) {
3452
+ function Qd(e, t) {
3434
3453
  return e === t ? e !== 0 || 1 / e === 1 / t : e !== e && t !== t;
3435
3454
  }
3436
3455
  function tn(e) {
@@ -3474,24 +3493,24 @@ function pi(e, t) {
3474
3493
  }
3475
3494
  }
3476
3495
  function _i(e, t = !1) {
3477
- return nn(e) || Dt(e) || !wt(e) || (en(e) > 1 && (e.set = e.add = e.clear = e.delete = Yd), Object.freeze(e), t && Object.entries(e).forEach(([r, n]) => _i(n, !0))), e;
3496
+ return nn(e) || Dt(e) || !wt(e) || (en(e) > 1 && (e.set = e.add = e.clear = e.delete = el), Object.freeze(e), t && Object.entries(e).forEach(([r, n]) => _i(n, !0))), e;
3478
3497
  }
3479
- function Yd() {
3498
+ function el() {
3480
3499
  le(2);
3481
3500
  }
3482
3501
  function nn(e) {
3483
3502
  return Object.isFrozen(e);
3484
3503
  }
3485
- var Zd = {};
3504
+ var tl = {};
3486
3505
  function It(e) {
3487
- const t = Zd[e];
3506
+ const t = tl[e];
3488
3507
  return t || le(0, e), t;
3489
3508
  }
3490
3509
  var ar;
3491
- function Jo() {
3510
+ function zo() {
3492
3511
  return ar;
3493
3512
  }
3494
- function Qd(e, t) {
3513
+ function rl(e, t) {
3495
3514
  return {
3496
3515
  drafts_: [],
3497
3516
  parent_: e,
@@ -3506,49 +3525,49 @@ function $i(e, t) {
3506
3525
  t && (It("Patches"), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
3507
3526
  }
3508
3527
  function fi(e) {
3509
- hi(e), e.drafts_.forEach(el), e.drafts_ = null;
3528
+ hi(e), e.drafts_.forEach(nl), e.drafts_ = null;
3510
3529
  }
3511
3530
  function hi(e) {
3512
3531
  e === ar && (ar = e.parent_);
3513
3532
  }
3514
3533
  function ji(e) {
3515
- return ar = Qd(ar, e);
3534
+ return ar = rl(ar, e);
3516
3535
  }
3517
- function el(e) {
3536
+ function nl(e) {
3518
3537
  const t = e[pe];
3519
3538
  t.type_ === 0 || t.type_ === 1 ? t.revoke_() : t.revoked_ = !0;
3520
3539
  }
3521
- function Wi(e, t) {
3540
+ function qi(e, t) {
3522
3541
  t.unfinalizedDrafts_ = t.drafts_.length;
3523
3542
  const r = t.drafts_[0];
3524
- return e !== void 0 && e !== r ? (r[pe].modified_ && (fi(t), le(4)), wt(e) && (e = Wr(t, e), t.parent_ || qr(t, e)), t.patches_ && It("Patches").generateReplacementPatches_(
3543
+ return e !== void 0 && e !== r ? (r[pe].modified_ && (fi(t), le(4)), wt(e) && (e = qr(t, e), t.parent_ || Wr(t, e)), t.patches_ && It("Patches").generateReplacementPatches_(
3525
3544
  r[pe].base_,
3526
3545
  e,
3527
3546
  t.patches_,
3528
3547
  t.inversePatches_
3529
- )) : e = Wr(t, r, []), fi(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e !== Wo ? e : void 0;
3548
+ )) : e = qr(t, r, []), fi(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e !== jo ? e : void 0;
3530
3549
  }
3531
- function Wr(e, t, r) {
3550
+ function qr(e, t, r) {
3532
3551
  if (nn(t))
3533
3552
  return t;
3534
3553
  const n = t[pe];
3535
3554
  if (!n)
3536
3555
  return jr(
3537
3556
  t,
3538
- (i, a) => qi(e, n, t, i, a, r)
3557
+ (i, a) => Wi(e, n, t, i, a, r)
3539
3558
  ), t;
3540
3559
  if (n.scope_ !== e)
3541
3560
  return t;
3542
3561
  if (!n.modified_)
3543
- return qr(e, n.base_, !0), n.base_;
3562
+ return Wr(e, n.base_, !0), n.base_;
3544
3563
  if (!n.finalized_) {
3545
3564
  n.finalized_ = !0, n.scope_.unfinalizedDrafts_--;
3546
3565
  const i = n.copy_;
3547
3566
  let a = i, s = !1;
3548
3567
  n.type_ === 3 && (a = new Set(i), i.clear(), s = !0), jr(
3549
3568
  a,
3550
- (u, p) => qi(e, n, i, u, p, r, s)
3551
- ), qr(e, i, !1), r && e.patches_ && It("Patches").generatePatches_(
3569
+ (u, p) => Wi(e, n, i, u, p, r, s)
3570
+ ), Wr(e, i, !1), r && e.patches_ && It("Patches").generatePatches_(
3552
3571
  n,
3553
3572
  r,
3554
3573
  e.patches_,
@@ -3557,11 +3576,11 @@ function Wr(e, t, r) {
3557
3576
  }
3558
3577
  return n.copy_;
3559
3578
  }
3560
- function qi(e, t, r, n, i, a, s) {
3579
+ function Wi(e, t, r, n, i, a, s) {
3561
3580
  if (process.env.NODE_ENV !== "production" && i === r && le(5), Dt(i)) {
3562
3581
  const u = a && t && t.type_ !== 3 && // Set objects are atomic since they have no keys.
3563
- !ui(t.assigned_, n) ? a.concat(n) : void 0, p = Wr(e, i, u);
3564
- if (zo(r, n, p), Dt(p))
3582
+ !ui(t.assigned_, n) ? a.concat(n) : void 0, p = qr(e, i, u);
3583
+ if (Wo(r, n, p), Dt(p))
3565
3584
  e.canAutoFreeze_ = !1;
3566
3585
  else
3567
3586
  return;
@@ -3569,17 +3588,17 @@ function qi(e, t, r, n, i, a, s) {
3569
3588
  if (wt(i) && !nn(i)) {
3570
3589
  if (!e.immer_.autoFreeze_ && e.unfinalizedDrafts_ < 1)
3571
3590
  return;
3572
- Wr(e, i), (!t || !t.scope_.parent_) && typeof n != "symbol" && Object.prototype.propertyIsEnumerable.call(r, n) && qr(e, i);
3591
+ qr(e, i), (!t || !t.scope_.parent_) && typeof n != "symbol" && Object.prototype.propertyIsEnumerable.call(r, n) && Wr(e, i);
3573
3592
  }
3574
3593
  }
3575
- function qr(e, t, r = !1) {
3594
+ function Wr(e, t, r = !1) {
3576
3595
  !e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && _i(t, r);
3577
3596
  }
3578
- function tl(e, t) {
3597
+ function il(e, t) {
3579
3598
  const r = Array.isArray(e), n = {
3580
3599
  type_: r ? 1 : 0,
3581
3600
  // Track which produce call this is associated with.
3582
- scope_: t ? t.scope_ : Jo(),
3601
+ scope_: t ? t.scope_ : zo(),
3583
3602
  // True for both shallow and deep changes.
3584
3603
  modified_: !1,
3585
3604
  // Used during finalization.
@@ -3610,7 +3629,7 @@ var Ai = {
3610
3629
  return e;
3611
3630
  const r = ht(e);
3612
3631
  if (!ui(r, t))
3613
- return rl(e, r, t);
3632
+ return ol(e, r, t);
3614
3633
  const n = r[t];
3615
3634
  return e.finalized_ || !wt(n) ? n : n === si(e.base_, t) ? (ci(e), e.copy_[t] = mi(n, e)) : n;
3616
3635
  },
@@ -3621,14 +3640,14 @@ var Ai = {
3621
3640
  return Reflect.ownKeys(ht(e));
3622
3641
  },
3623
3642
  set(e, t, r) {
3624
- const n = Ho(ht(e), t);
3643
+ const n = Jo(ht(e), t);
3625
3644
  if (n != null && n.set)
3626
3645
  return n.set.call(e.draft_, r), !0;
3627
3646
  if (!e.modified_) {
3628
3647
  const i = si(ht(e), t), a = i == null ? void 0 : i[pe];
3629
3648
  if (a && a.base_ === r)
3630
3649
  return e.copy_[t] = r, e.assigned_[t] = !1, !0;
3631
- if (Vd(r, i) && (r !== void 0 || ui(e.base_, t)))
3650
+ if (Qd(r, i) && (r !== void 0 || ui(e.base_, t)))
3632
3651
  return !0;
3633
3652
  ci(e), gi(e);
3634
3653
  }
@@ -3675,16 +3694,16 @@ function si(e, t) {
3675
3694
  const r = e[pe];
3676
3695
  return (r ? ht(r) : e)[t];
3677
3696
  }
3678
- function rl(e, t, r) {
3697
+ function ol(e, t, r) {
3679
3698
  var i;
3680
- const n = Ho(t, r);
3699
+ const n = Jo(t, r);
3681
3700
  return n ? "value" in n ? n.value : (
3682
3701
  // This is a very special case, if the prop is a getter defined by the
3683
3702
  // prototype, we should invoke it with the draft as context!
3684
3703
  (i = n.get) == null ? void 0 : i.call(e.draft_)
3685
3704
  ) : void 0;
3686
3705
  }
3687
- function Ho(e, t) {
3706
+ function Jo(e, t) {
3688
3707
  if (!(t in e))
3689
3708
  return;
3690
3709
  let r = Pt(e);
@@ -3704,7 +3723,7 @@ function ci(e) {
3704
3723
  e.scope_.immer_.useStrictShallowCopy_
3705
3724
  ));
3706
3725
  }
3707
- var nl = class {
3726
+ var al = class {
3708
3727
  constructor(e) {
3709
3728
  this.autoFreeze_ = !0, this.useStrictShallowCopy_ = !1, this.produce = (t, r, n) => {
3710
3729
  if (typeof t == "function" && typeof r != "function") {
@@ -3725,9 +3744,9 @@ var nl = class {
3725
3744
  } finally {
3726
3745
  u ? fi(a) : hi(a);
3727
3746
  }
3728
- return $i(a, n), Wi(i, a);
3747
+ return $i(a, n), qi(i, a);
3729
3748
  } else if (!t || typeof t != "object") {
3730
- if (i = r(t), i === void 0 && (i = t), i === Wo && (i = void 0), this.autoFreeze_ && _i(i, !0), n) {
3749
+ if (i = r(t), i === void 0 && (i = t), i === jo && (i = void 0), this.autoFreeze_ && _i(i, !0), n) {
3731
3750
  const a = [], s = [];
3732
3751
  It("Patches").generateReplacementPatches_(t, i, a, s), n(a, s);
3733
3752
  }
@@ -3744,7 +3763,7 @@ var nl = class {
3744
3763
  }, typeof (e == null ? void 0 : e.autoFreeze) == "boolean" && this.setAutoFreeze(e.autoFreeze), typeof (e == null ? void 0 : e.useStrictShallowCopy) == "boolean" && this.setUseStrictShallowCopy(e.useStrictShallowCopy);
3745
3764
  }
3746
3765
  createDraft(e) {
3747
- wt(e) || le(8), Dt(e) && (e = il(e));
3766
+ wt(e) || le(8), Dt(e) && (e = sl(e));
3748
3767
  const t = ji(this), r = mi(e, void 0);
3749
3768
  return r[pe].isManual_ = !0, hi(t), r;
3750
3769
  }
@@ -3752,7 +3771,7 @@ var nl = class {
3752
3771
  const r = e && e[pe];
3753
3772
  (!r || !r.isManual_) && le(9);
3754
3773
  const { scope_: n } = r;
3755
- return $i(n, t), Wi(void 0, n);
3774
+ return $i(n, t), qi(void 0, n);
3756
3775
  }
3757
3776
  /**
3758
3777
  * Pass true to automatically freeze all copies created by Immer.
@@ -3788,13 +3807,13 @@ var nl = class {
3788
3807
  }
3789
3808
  };
3790
3809
  function mi(e, t) {
3791
- const r = tn(e) ? It("MapSet").proxyMap_(e, t) : rn(e) ? It("MapSet").proxySet_(e, t) : tl(e, t);
3792
- return (t ? t.scope_ : Jo()).drafts_.push(r), r;
3810
+ const r = tn(e) ? It("MapSet").proxyMap_(e, t) : rn(e) ? It("MapSet").proxySet_(e, t) : il(e, t);
3811
+ return (t ? t.scope_ : zo()).drafts_.push(r), r;
3793
3812
  }
3794
- function il(e) {
3795
- return Dt(e) || le(10, e), Xo(e);
3813
+ function sl(e) {
3814
+ return Dt(e) || le(10, e), Ho(e);
3796
3815
  }
3797
- function Xo(e) {
3816
+ function Ho(e) {
3798
3817
  if (!wt(e) || nn(e))
3799
3818
  return e;
3800
3819
  const t = e[pe];
@@ -3806,10 +3825,10 @@ function Xo(e) {
3806
3825
  } else
3807
3826
  r = pi(e, !0);
3808
3827
  return jr(r, (n, i) => {
3809
- zo(r, n, Xo(i));
3828
+ Wo(r, n, Ho(i));
3810
3829
  }), t && (t.finalized_ = !1), r;
3811
3830
  }
3812
- var fe = new nl(), nr = fe.produce;
3831
+ var fe = new al(), nr = fe.produce;
3813
3832
  fe.produceWithPatches.bind(
3814
3833
  fe
3815
3834
  );
@@ -3818,20 +3837,20 @@ fe.setUseStrictShallowCopy.bind(fe);
3818
3837
  fe.applyPatches.bind(fe);
3819
3838
  fe.createDraft.bind(fe);
3820
3839
  fe.finishDraft.bind(fe);
3821
- const Go = _e(void 0), ol = {};
3840
+ const Xo = _e(void 0), cl = {};
3822
3841
  function xi() {
3823
- const e = ve(Go);
3842
+ const e = ve(Xo);
3824
3843
  if (!e)
3825
3844
  throw new Error("useObjectsConfigureState must be used within a ConfigurationProvider");
3826
3845
  return e;
3827
3846
  }
3828
- function al({ children: e }) {
3847
+ function dl({ children: e }) {
3829
3848
  const { installation: t } = Ke(), { hydratedRevision: r, loading: n } = dr(), [
3830
3849
  i,
3831
3850
  a
3832
- ] = k(ol), s = t == null ? void 0 : t.config;
3851
+ ] = k(cl), s = t == null ? void 0 : t.config;
3833
3852
  Y(() => {
3834
- r != null && r.content && !n && s && !(Object.entries(i).length > 0) && Bd(
3853
+ r != null && r.content && !n && s && !(Object.entries(i).length > 0) && $d(
3835
3854
  r,
3836
3855
  s,
3837
3856
  a
@@ -3877,13 +3896,13 @@ function al({ children: e }) {
3877
3896
  u
3878
3897
  ]
3879
3898
  );
3880
- return /* @__PURE__ */ l(Go.Provider, { value: y, children: e });
3899
+ return /* @__PURE__ */ l(Xo.Provider, { value: y, children: e });
3881
3900
  }
3882
- const sl = /* @__PURE__ */ A("svg", { xmlns: "http://www.w3.org/2000/svg", width: "18", height: "18", viewBox: "0 0 18 18", fill: "none", children: [
3901
+ const ll = /* @__PURE__ */ A("svg", { xmlns: "http://www.w3.org/2000/svg", width: "18", height: "18", viewBox: "0 0 18 18", fill: "none", children: [
3883
3902
  /* @__PURE__ */ l("circle", { cx: "9", cy: "9", r: "9", fill: "#BBF7D0" }),
3884
3903
  /* @__PURE__ */ l("path", { d: "M13 7L7.5 12L5 9.72727", stroke: "#16A34A", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" })
3885
3904
  ] });
3886
- function cl(e, t) {
3905
+ function ul(e, t) {
3887
3906
  return t ? Br.createElement(
3888
3907
  "svg",
3889
3908
  {
@@ -3899,9 +3918,9 @@ function cl(e, t) {
3899
3918
  r: "5",
3900
3919
  fill: "#FBD38D"
3901
3920
  })
3902
- ) : e ? sl : /* @__PURE__ */ l("svg", { xmlns: "http://www.w3.org/2000/svg", width: "18", height: "18", viewBox: "0 0 18 18", fill: "none", children: /* @__PURE__ */ l("circle", { cx: "9", cy: "9", r: "5", fill: "#BFDBFE" }) });
3921
+ ) : e ? ll : /* @__PURE__ */ l("svg", { xmlns: "http://www.w3.org/2000/svg", width: "18", height: "18", viewBox: "0 0 18 18", fill: "none", children: /* @__PURE__ */ l("circle", { cx: "9", cy: "9", r: "5", fill: "#BFDBFE" }) });
3903
3922
  }
3904
- const Vo = Si(
3923
+ const Go = Si(
3905
3924
  ({
3906
3925
  objectName: e,
3907
3926
  completed: t,
@@ -3919,7 +3938,7 @@ const Vo = Si(
3919
3938
  gap: 2,
3920
3939
  mr: "3",
3921
3940
  children: [
3922
- cl(t, r),
3941
+ ul(t, r),
3923
3942
  /* @__PURE__ */ A(J, { textAlign: "left", children: [
3924
3943
  /* @__PURE__ */ l(Ie, { children: n || e }),
3925
3944
  r && /* @__PURE__ */ l(Ie, { fontSize: 10, fontStyle: "italic", children: "pending" })
@@ -3931,11 +3950,11 @@ const Vo = Si(
3931
3950
  ] });
3932
3951
  }
3933
3952
  );
3934
- function dl({ pending: e, completed: t, displayName: r }) {
3953
+ function pl({ pending: e, completed: t, displayName: r }) {
3935
3954
  return /* @__PURE__ */ A(Kt, { children: [
3936
3955
  /* @__PURE__ */ l(Oi, { marginY: 3 }),
3937
3956
  /* @__PURE__ */ l(
3938
- Vo,
3957
+ Go,
3939
3958
  {
3940
3959
  objectName: yt,
3941
3960
  completed: t,
@@ -3946,26 +3965,26 @@ function dl({ pending: e, completed: t, displayName: r }) {
3946
3965
  )
3947
3966
  ] });
3948
3967
  }
3949
- const Yo = _e(null);
3950
- function Zo() {
3951
- const e = ve(Yo);
3968
+ const Vo = _e(null);
3969
+ function Yo() {
3970
+ const e = ve(Vo);
3952
3971
  if (e === null)
3953
3972
  throw new Error(
3954
3973
  "useSelectedNavObjectName must be used within a SelectedNavObjectNameProvider"
3955
3974
  );
3956
3975
  return { selectedObjectName: e };
3957
3976
  }
3958
- function ll(e, t) {
3959
- return e != null && e[t] ? e[t] : { name: $o, completed: !1 };
3977
+ function fl(e, t) {
3978
+ return e != null && e[t] ? e[t] : { name: Mo, completed: !1 };
3960
3979
  }
3961
- function ul({
3980
+ function hl({
3962
3981
  children: e
3963
3982
  }) {
3964
3983
  var S, R, C;
3965
- const { project: t } = ee(), { installation: r, provider: n } = Ke(), { hydratedRevision: i } = dr(), { objectConfigurationsState: a } = xi(), [s, u] = k(0), p = (t == null ? void 0 : t.appName) || "", h = r == null ? void 0 : r.config, m = i && Eo(h, i), w = m !== null, y = !!((S = i == null ? void 0 : i.content) != null && S.write), I = y ? Fo(h) : void 0, b = [...m || []];
3984
+ const { project: t } = ee(), { installation: r, provider: n } = Ke(), { hydratedRevision: i } = dr(), { objectConfigurationsState: a } = xi(), [s, u] = k(0), p = (t == null ? void 0 : t.appName) || "", h = r == null ? void 0 : r.config, m = i && ko(h, i), w = m !== null, y = !!((S = i == null ? void 0 : i.content) != null && S.write), I = y ? Eo(h) : void 0, b = [...m || []];
3966
3985
  I && y && b.push(I);
3967
- const v = ll(b, s);
3968
- return /* @__PURE__ */ l(Yo.Provider, { value: v == null ? void 0 : v.name, children: /* @__PURE__ */ A(
3986
+ const v = fl(b, s);
3987
+ return /* @__PURE__ */ l(Vo.Provider, { value: v == null ? void 0 : v.name, children: /* @__PURE__ */ A(
3969
3988
  J,
3970
3989
  {
3971
3990
  p: 8,
@@ -3988,7 +4007,7 @@ function ul({
3988
4007
  ] }),
3989
4008
  /* @__PURE__ */ l(Ie, { marginBottom: "20px", fontSize: "1.125rem", fontWeight: "500", children: p }),
3990
4009
  w && /* @__PURE__ */ A(
3991
- Sa,
4010
+ ba,
3992
4011
  {
3993
4012
  index: s,
3994
4013
  onChange: u,
@@ -3997,7 +4016,7 @@ function ul({
3997
4016
  m.map((D) => {
3998
4017
  var U, M, ie, H;
3999
4018
  return /* @__PURE__ */ l(
4000
- Vo,
4019
+ Go,
4001
4020
  {
4002
4021
  objectName: D.name,
4003
4022
  completed: D.completed,
@@ -4007,7 +4026,7 @@ function ul({
4007
4026
  );
4008
4027
  }),
4009
4028
  y && I && /* @__PURE__ */ l(
4010
- dl,
4029
+ pl,
4011
4030
  {
4012
4031
  completed: I.completed,
4013
4032
  pending: (C = (R = a == null ? void 0 : a.other) == null ? void 0 : R.write) == null ? void 0 : C.isWriteModified,
@@ -4017,7 +4036,7 @@ function ul({
4017
4036
  r && /* @__PURE__ */ A(Kt, { children: [
4018
4037
  /* @__PURE__ */ l(Oi, { marginTop: 10, marginBottom: 3 }),
4019
4038
  /* @__PURE__ */ l(
4020
- Jd,
4039
+ Gd,
4021
4040
  {
4022
4041
  text: "Uninstall"
4023
4042
  },
@@ -4034,7 +4053,7 @@ function ul({
4034
4053
  ) });
4035
4054
  }
4036
4055
  const Bt = () => {
4037
- const { appName: e } = ee(), { objectConfigurationsState: t, setConfigureState: r } = xi(), { selectedObjectName: n } = Zo(), i = Uo(n || "", t);
4056
+ const { appName: e } = ee(), { objectConfigurationsState: t, setConfigureState: r } = xi(), { selectedObjectName: n } = Yo(), i = Bo(n || "", t);
4038
4057
  return {
4039
4058
  appName: e,
4040
4059
  configureState: i,
@@ -4042,7 +4061,7 @@ const Bt = () => {
4042
4061
  selectedObjectName: n
4043
4062
  };
4044
4063
  };
4045
- function pl(e, t, r) {
4064
+ function gl(e, t, r) {
4046
4065
  var i;
4047
4066
  const n = ((i = e == null ? void 0 : e.read) == null ? void 0 : i.selectedFieldMappings) || {};
4048
4067
  if (n[t] = r, e != null && e.read) {
@@ -4050,17 +4069,17 @@ function pl(e, t, r) {
4050
4069
  e.read.isRequiredMapFieldsModified = u;
4051
4070
  }
4052
4071
  }
4053
- function Qo(e, t, r, n) {
4072
+ function Zo(e, t, r, n) {
4054
4073
  t(
4055
4074
  e,
4056
- (i) => pl(i, r, n)
4075
+ (i) => gl(i, r, n)
4057
4076
  );
4058
4077
  }
4059
- function fl({ field: e, onSelectChange: t, allFields: r }) {
4078
+ function ml({ field: e, onSelectChange: t, allFields: r }) {
4060
4079
  var w;
4061
4080
  const { configureState: n, selectedObjectName: i, setConfigureState: a } = Bt(), [s, u] = k(!0), p = (w = n == null ? void 0 : n.read) == null ? void 0 : w.selectedFieldMappings, h = p == null ? void 0 : p[e.mapToName];
4062
4081
  Y(() => {
4063
- e._default && !h && i && n && Qo(i, a, e.mapToName, e._default), u(!1);
4082
+ e._default && !h && i && n && Zo(i, a, e.mapToName, e._default), u(!1);
4064
4083
  }, [e, a, i, h, n]);
4065
4084
  const m = we(() => r == null ? void 0 : r.map(
4066
4085
  (y) => /* @__PURE__ */ l("option", { value: y.fieldName, children: y.displayName }, y.fieldName)
@@ -4069,7 +4088,7 @@ function fl({ field: e, onSelectChange: t, allFields: r }) {
4069
4088
  /* @__PURE__ */ l(Ie, { fontWeight: "500", children: e.mapToDisplayName }),
4070
4089
  /* @__PURE__ */ l(Ie, { marginBottom: "5px", fontSize: 14, children: e == null ? void 0 : e.prompt }),
4071
4090
  /* @__PURE__ */ l(
4072
- Oa,
4091
+ Sa,
4073
4092
  {
4074
4093
  name: e.mapToName,
4075
4094
  variant: "flushed",
@@ -4088,10 +4107,10 @@ function on({ string: e }) {
4088
4107
  /* @__PURE__ */ l(Ur, { flex: "1", justifyContent: "flex-end", alignItems: "center", children: /* @__PURE__ */ l(Oi, { marginLeft: 2 }) })
4089
4108
  ] });
4090
4109
  }
4091
- function hl() {
4110
+ function yl() {
4092
4111
  const { selectedObjectName: e, configureState: t, setConfigureState: r } = Bt(), { isError: n, removeError: i } = nt(), a = (u) => {
4093
4112
  const { value: p, name: h } = u.target;
4094
- p && (e && Qo(e, r, h, p), n(Z.MAPPING, h) && i(Z.MAPPING, h));
4113
+ p && (e && Zo(e, r, h, p), n(Z.MAPPING, h) && i(Z.MAPPING, h));
4095
4114
  }, s = we(
4096
4115
  () => {
4097
4116
  var u, p;
@@ -4114,14 +4133,14 @@ function hl() {
4114
4133
  ),
4115
4134
  children: [
4116
4135
  /* @__PURE__ */ l(
4117
- fl,
4136
+ ml,
4118
4137
  {
4119
4138
  allFields: ((p = t.read) == null ? void 0 : p.allFields) || [],
4120
4139
  field: u,
4121
4140
  onSelectChange: a
4122
4141
  }
4123
4142
  ),
4124
- /* @__PURE__ */ l(Ca, { children: " * required" })
4143
+ /* @__PURE__ */ l(Oa, { children: " * required" })
4125
4144
  ]
4126
4145
  },
4127
4146
  u.mapToName
@@ -4129,7 +4148,7 @@ function hl() {
4129
4148
  }) })
4130
4149
  ] }) : null;
4131
4150
  }
4132
- function gl(e, t, r) {
4151
+ function wl(e, t, r) {
4133
4152
  var i, a;
4134
4153
  const n = ((i = e == null ? void 0 : e.read) == null ? void 0 : i.selectedOptionalFields) || {};
4135
4154
  if (n[t] = r, r || delete n[t], (a = e.read) != null && a.savedConfig.optionalFields) {
@@ -4141,10 +4160,10 @@ function gl(e, t, r) {
4141
4160
  function zi(e, t, r, n) {
4142
4161
  t(
4143
4162
  e,
4144
- (i) => gl(i, r, n)
4163
+ (i) => wl(i, r, n)
4145
4164
  );
4146
4165
  }
4147
- function ml() {
4166
+ function Il() {
4148
4167
  var w, y;
4149
4168
  const {
4150
4169
  appName: e,
@@ -4198,22 +4217,22 @@ function ml() {
4198
4217
  )
4199
4218
  ] });
4200
4219
  }
4201
- function yl() {
4220
+ function vl() {
4202
4221
  var n, i, a;
4203
4222
  const { configureState: e, selectedObjectName: t } = Bt(), { appName: r } = ee();
4204
4223
  return /* @__PURE__ */ A(Kt, { children: [
4205
4224
  /* @__PURE__ */ l(on, { string: `${r} reads the following ${t} fields` }),
4206
- /* @__PURE__ */ l(J, { marginBottom: "20px", display: "flex", gap: 1, children: (i = (n = e == null ? void 0 : e.read) == null ? void 0 : n.requiredFields) != null && i.length ? (a = e.read) == null ? void 0 : a.requiredFields.map((s) => tt(s) ? null : /* @__PURE__ */ l(Na, { children: s.displayName }, s.fieldName)) : "There are no required fields." })
4225
+ /* @__PURE__ */ l(J, { marginBottom: "20px", display: "flex", gap: 1, children: (i = (n = e == null ? void 0 : e.read) == null ? void 0 : n.requiredFields) != null && i.length ? (a = e.read) == null ? void 0 : a.requiredFields.map((s) => tt(s) ? null : /* @__PURE__ */ l(Ca, { children: s.displayName }, s.fieldName)) : "There are no required fields." })
4207
4226
  ] });
4208
4227
  }
4209
- function wl() {
4228
+ function bl() {
4210
4229
  return /* @__PURE__ */ A(Kt, { children: [
4230
+ /* @__PURE__ */ l(vl, {}),
4211
4231
  /* @__PURE__ */ l(yl, {}),
4212
- /* @__PURE__ */ l(hl, {}),
4213
- /* @__PURE__ */ l(ml, {})
4232
+ /* @__PURE__ */ l(Il, {})
4214
4233
  ] });
4215
4234
  }
4216
- function Il(e, t, r) {
4235
+ function Sl(e, t, r) {
4217
4236
  var n, i, a;
4218
4237
  if (((n = e == null ? void 0 : e.write) == null ? void 0 : n.selectedNonConfigurableWriteFields) === null && (e.write.selectedNonConfigurableWriteFields = {}), e != null && e.write) {
4219
4238
  const s = e.write.selectedNonConfigurableWriteFields;
@@ -4227,11 +4246,11 @@ function Ji(e, t, r, n) {
4227
4246
  t(
4228
4247
  e,
4229
4248
  (i) => {
4230
- Il(i, r, n);
4249
+ Sl(i, r, n);
4231
4250
  }
4232
4251
  );
4233
4252
  }
4234
- function vl() {
4253
+ function Ol() {
4235
4254
  var w, y, I, b;
4236
4255
  const {
4237
4256
  appName: e,
@@ -4298,7 +4317,7 @@ function vl() {
4298
4317
  )
4299
4318
  ] });
4300
4319
  }
4301
- function bl() {
4320
+ function Cl() {
4302
4321
  const e = te(), { projectId: t, appName: r } = ee(), { integrationId: n, installation: i, resetInstallations: a } = Ke(), [s, u] = k(!1), p = !t || !n || !(i != null && i.id) || s, h = async () => {
4303
4322
  if (!p) {
4304
4323
  u(!0), console.warn(
@@ -4327,14 +4346,14 @@ function bl() {
4327
4346
  (i == null ? void 0 : i.id) && /* @__PURE__ */ l(ne, { onClick: h, variant: "warning", isDisabled: p, children: m })
4328
4347
  ] });
4329
4348
  }
4330
- function ea({
4349
+ function Qo({
4331
4350
  onSave: e,
4332
4351
  onReset: t,
4333
4352
  isLoading: r,
4334
4353
  isCreateMode: n = !1
4335
4354
  }) {
4336
4355
  var D, U, M;
4337
- const { installation: i } = Ke(), { hydratedRevision: a, loading: s } = dr(), { configureState: u, selectedObjectName: p } = Bt(), h = i == null ? void 0 : i.config, m = h && p && !!ko(h, p) || !1, w = ((D = u == null ? void 0 : u.read) == null ? void 0 : D.isOptionalFieldsModified) || ((U = u == null ? void 0 : u.read) == null ? void 0 : U.isRequiredMapFieldsModified), y = (M = u == null ? void 0 : u.write) == null ? void 0 : M.isWriteModified, S = s || r || !u || !p || !(w || y || n || p !== yt && !m), R = p === yt, C = p === $o;
4356
+ const { installation: i } = Ke(), { hydratedRevision: a, loading: s } = dr(), { configureState: u, selectedObjectName: p } = Bt(), h = i == null ? void 0 : i.config, m = h && p && !!xo(h, p) || !1, w = ((D = u == null ? void 0 : u.read) == null ? void 0 : D.isOptionalFieldsModified) || ((U = u == null ? void 0 : u.read) == null ? void 0 : U.isRequiredMapFieldsModified), y = (M = u == null ? void 0 : u.write) == null ? void 0 : M.isWriteModified, S = s || r || !u || !p || !(w || y || n || p !== yt && !m), R = p === yt, C = p === Mo;
4338
4357
  return r ? /* @__PURE__ */ l(De, {}) : /* @__PURE__ */ A("form", { style: { width: "100%", maxWidth: "50rem" }, onSubmit: e, children: [
4339
4358
  /* @__PURE__ */ A(Ae, { direction: "row", spacing: 4, marginBottom: "20px", flexDir: "row-reverse", children: [
4340
4359
  /* @__PURE__ */ l(
@@ -4375,15 +4394,15 @@ function ea({
4375
4394
  minHeight: 300,
4376
4395
  children: [
4377
4396
  s && /* @__PURE__ */ l(De, {}),
4378
- a && !C && !R && /* @__PURE__ */ l(wl, {}),
4379
- a && !C && R && /* @__PURE__ */ l(vl, {}),
4380
- !s && C && /* @__PURE__ */ l(bl, {})
4397
+ a && !C && !R && /* @__PURE__ */ l(bl, {}),
4398
+ a && !C && R && /* @__PURE__ */ l(Ol, {}),
4399
+ !s && C && /* @__PURE__ */ l(Cl, {})
4381
4400
  ]
4382
4401
  }
4383
4402
  )
4384
4403
  ] });
4385
4404
  }
4386
- const ta = () => {
4405
+ const ea = () => {
4387
4406
  const {
4388
4407
  integrationId: e,
4389
4408
  groupRef: t,
@@ -4391,11 +4410,11 @@ const ta = () => {
4391
4410
  setInstallation: n,
4392
4411
  onInstallSuccess: i,
4393
4412
  onUpdateSuccess: a
4394
- } = Ke(), { hydratedRevision: s, loading: u } = dr(), { selectedObjectName: p } = Zo(), { selectedConnection: h } = Lt(), m = te(), { projectId: w } = ee(), { resetBoundary: y, setErrors: I } = nt(), {
4413
+ } = Ke(), { hydratedRevision: s, loading: u } = dr(), { selectedObjectName: p } = Yo(), { selectedConnection: h } = Lt(), m = te(), { projectId: w } = ee(), { resetBoundary: y, setErrors: I } = nt(), {
4395
4414
  resetConfigureState: b,
4396
4415
  objectConfigurationsState: v,
4397
4416
  resetPendingConfigurationState: S
4398
- } = xi(), R = Uo(p || "", v);
4417
+ } = xi(), R = Bo(p || "", v);
4399
4418
  return {
4400
4419
  integrationId: e,
4401
4420
  groupRef: t,
@@ -4416,8 +4435,8 @@ const ta = () => {
4416
4435
  onInstallSuccess: i,
4417
4436
  onUpdateSuccess: a
4418
4437
  };
4419
- }, Sl = void 0;
4420
- function Ol() {
4438
+ }, Nl = void 0;
4439
+ function Tl() {
4421
4440
  const {
4422
4441
  integrationId: e,
4423
4442
  groupRef: t,
@@ -4436,11 +4455,11 @@ function Ol() {
4436
4455
  resetPendingConfigurationState: b,
4437
4456
  configureState: v,
4438
4457
  onInstallSuccess: S
4439
- } = ta(), [R, C] = k(!1), D = s === yt, U = Q(
4458
+ } = ea(), [R, C] = k(!1), D = s === yt, U = Q(
4440
4459
  () => {
4441
- m(Z.MAPPING), i != null && i.content && !a && s && Ko(
4460
+ m(Z.MAPPING), i != null && i.content && !a && s && Do(
4442
4461
  i,
4443
- Sl,
4462
+ Nl,
4444
4463
  s,
4445
4464
  y
4446
4465
  );
@@ -4451,12 +4470,12 @@ function Ol() {
4451
4470
  !v && (i != null && i.content) && !a && U();
4452
4471
  }, [v, I, i, a, U]);
4453
4472
  const M = () => {
4454
- const { requiredMapFields: se, selectedFieldMappings: V } = (v == null ? void 0 : v.read) || {}, { errorList: be } = Po(
4473
+ const { requiredMapFields: se, selectedFieldMappings: V } = (v == null ? void 0 : v.read) || {}, { errorList: be } = Fo(
4455
4474
  se,
4456
4475
  V,
4457
4476
  w
4458
4477
  );
4459
- be.length > 0 || (s && (u != null && u.id) && p && h && e && t && r && i ? (C(!0), $d(
4478
+ be.length > 0 || (s && (u != null && u.id) && p && h && e && t && r && i ? (C(!0), Wd(
4460
4479
  h,
4461
4480
  e,
4462
4481
  t,
@@ -4472,7 +4491,7 @@ function Ol() {
4472
4491
  C(!1), b(s);
4473
4492
  })) : console.error("CreateInstallallation - onSaveReadCreate: missing required props"));
4474
4493
  }, ie = () => {
4475
- s && (u != null && u.id) && p && h && e && t && r && i ? (C(!0), qd(
4494
+ s && (u != null && u.id) && p && h && e && t && r && i ? (C(!0), Hd(
4476
4495
  h,
4477
4496
  e,
4478
4497
  t,
@@ -4488,7 +4507,7 @@ function Ol() {
4488
4507
  })) : console.error("CreateInstallallation - onSaveWriteCreate: missing required props");
4489
4508
  };
4490
4509
  return /* @__PURE__ */ l(
4491
- ea,
4510
+ Qo,
4492
4511
  {
4493
4512
  isCreateMode: !0,
4494
4513
  isLoading: R,
@@ -4499,7 +4518,7 @@ function Ol() {
4499
4518
  }
4500
4519
  );
4501
4520
  }
4502
- function Cl({
4521
+ function Rl({
4503
4522
  updateConfig: e,
4504
4523
  projectId: t,
4505
4524
  integrationId: r,
@@ -4533,10 +4552,10 @@ function Cl({
4533
4552
  console.error("ERROR: ", h);
4534
4553
  });
4535
4554
  }
4536
- const Nl = (e, t, r, n, i) => {
4537
- const a = Lo(e), s = Bo(
4555
+ const _l = (e, t, r, n, i, a) => {
4556
+ const s = Ko(e), u = Lo(
4538
4557
  e
4539
- ), u = {
4558
+ ), p = {
4540
4559
  content: {
4541
4560
  read: {
4542
4561
  objects: {
@@ -4545,23 +4564,25 @@ const Nl = (e, t, r, n, i) => {
4545
4564
  // these two fields are copied from previous config, otherwise they will override null
4546
4565
  schedule: n,
4547
4566
  destination: (r == null ? void 0 : r.destination) || "",
4548
- selectedFields: a,
4549
- selectedFieldMappings: s
4567
+ selectedFields: s,
4568
+ selectedFieldMappings: u,
4569
+ backfill: a
4550
4570
  }
4551
4571
  }
4552
4572
  }
4553
4573
  }
4554
4574
  };
4555
- return Qr(i) && (u.content || (u.content = {}), u.content.proxy = { enabled: !0 }), u;
4556
- }, Tl = (e, t, r, n, i, a, s, u, p, h) => {
4557
- const m = Nl(
4575
+ return Qr(i) && (p.content || (p.content = {}), p.content.proxy = { enabled: !0 }), p;
4576
+ }, Al = (e, t, r, n, i, a, s, u, p, h) => {
4577
+ const m = _l(
4558
4578
  a,
4559
4579
  n || "",
4560
4580
  u,
4561
4581
  u.schedule,
4562
- p
4582
+ p,
4583
+ u.backfill
4563
4584
  );
4564
- return m ? Cl({
4585
+ return m ? Rl({
4565
4586
  updateConfig: m,
4566
4587
  projectId: e,
4567
4588
  integrationId: t,
@@ -4571,17 +4592,17 @@ const Nl = (e, t, r, n, i) => {
4571
4592
  setInstallation: s,
4572
4593
  onUpdateSuccess: h
4573
4594
  }) : (console.error("Error when generating updateConfig from configureState"), Promise.resolve(null));
4574
- }, Rl = (e, t) => {
4595
+ }, xl = (e, t) => {
4575
4596
  const n = {
4576
4597
  content: {
4577
4598
  write: {
4578
- objects: Mo(e)
4599
+ objects: Uo(e)
4579
4600
  }
4580
4601
  }
4581
4602
  };
4582
4603
  return Qr(t) && (n.content || (n.content = {}), n.content.proxy = { enabled: !0 }), n;
4583
- }, _l = (e, t, r, n, i, a, s, u) => {
4584
- const p = Rl(i, a);
4604
+ }, kl = (e, t, r, n, i, a, s, u) => {
4605
+ const p = xl(i, a);
4585
4606
  if (!p)
4586
4607
  return console.error("Error when generating write updateConfig from configureState"), Promise.resolve(null);
4587
4608
  const h = {
@@ -4608,7 +4629,7 @@ const Nl = (e, t, r, n, i) => {
4608
4629
  console.error("ERROR: ", m);
4609
4630
  });
4610
4631
  };
4611
- function Al({ installation: e, integrationObj: t }) {
4632
+ function El({ installation: e, integrationObj: t }) {
4612
4633
  const {
4613
4634
  setInstallation: r,
4614
4635
  hydratedRevision: n,
@@ -4622,9 +4643,9 @@ function Al({ installation: e, integrationObj: t }) {
4622
4643
  resetPendingConfigurationState: w,
4623
4644
  configureState: y,
4624
4645
  onUpdateSuccess: I
4625
- } = ta(), [b, v] = k(!1), S = a === yt, { config: R } = e, C = Q(
4646
+ } = ea(), [b, v] = k(!1), S = a === yt, { config: R } = e, C = Q(
4626
4647
  () => {
4627
- p(Z.MAPPING), n != null && n.content && !i && a && Ko(n, R, a, m);
4648
+ p(Z.MAPPING), n != null && n.content && !i && a && Do(n, R, a, m);
4628
4649
  },
4629
4650
  [p, n, i, a, R, m]
4630
4651
  );
@@ -4639,12 +4660,12 @@ function Al({ installation: e, integrationObj: t }) {
4639
4660
  (Le) => (Le == null ? void 0 : Le.objectName) === a
4640
4661
  );
4641
4662
  }, [n, a]), U = () => {
4642
- const { requiredMapFields: H, selectedFieldMappings: se } = (y == null ? void 0 : y.read) || {}, { errorList: V } = Po(
4663
+ const { requiredMapFields: H, selectedFieldMappings: se } = (y == null ? void 0 : y.read) || {}, { errorList: V } = Fo(
4643
4664
  H,
4644
4665
  se,
4645
4666
  h
4646
4667
  );
4647
- V.length > 0 || (n && e && a && s && u && D ? (v(!0), Tl(
4668
+ V.length > 0 || (n && e && a && s && u && D ? (v(!0), Al(
4648
4669
  u,
4649
4670
  t.id,
4650
4671
  e.id,
@@ -4659,7 +4680,7 @@ function Al({ installation: e, integrationObj: t }) {
4659
4680
  v(!1), w(a);
4660
4681
  })) : console.error("UpdateInstallation - onSaveUpdate missing required props"));
4661
4682
  }, M = () => {
4662
- e && a && s && u && n ? (v(!0), _l(
4683
+ e && a && s && u && n ? (v(!0), kl(
4663
4684
  u,
4664
4685
  t.id,
4665
4686
  e.id,
@@ -4673,7 +4694,7 @@ function Al({ installation: e, integrationObj: t }) {
4673
4694
  })) : console.error("UpdateInstallation - onSaveUpdate missing required props");
4674
4695
  };
4675
4696
  return /* @__PURE__ */ l(
4676
- ea,
4697
+ Qo,
4677
4698
  {
4678
4699
  onSave: (H) => {
4679
4700
  H.preventDefault(), S ? M() : U();
@@ -4683,12 +4704,12 @@ function Al({ installation: e, integrationObj: t }) {
4683
4704
  }
4684
4705
  );
4685
4706
  }
4686
- function xl() {
4707
+ function Fl() {
4687
4708
  const { integrationObj: e, installation: t } = Ke();
4688
4709
  return e ? t && e ? (
4689
4710
  // If installation exists, render update installation flow
4690
4711
  /* @__PURE__ */ l(
4691
- Al,
4712
+ El,
4692
4713
  {
4693
4714
  installation: t,
4694
4715
  integrationObj: e
@@ -4696,10 +4717,10 @@ function xl() {
4696
4717
  )
4697
4718
  ) : (
4698
4719
  // No installation, render create installation flow
4699
- /* @__PURE__ */ l(Ol, {})
4700
- ) : /* @__PURE__ */ l(qe, { message: "We can't load the integration" });
4720
+ /* @__PURE__ */ l(Tl, {})
4721
+ ) : /* @__PURE__ */ l(We, { message: "We can't load the integration" });
4701
4722
  }
4702
- const kl = (e, t) => ({
4723
+ const Pl = (e, t) => ({
4703
4724
  revisionId: e.id,
4704
4725
  createdBy: `consumer:${t}`,
4705
4726
  content: {
@@ -4709,7 +4730,7 @@ const kl = (e, t) => ({
4709
4730
  }
4710
4731
  }
4711
4732
  });
4712
- function El({
4733
+ function Dl({
4713
4734
  projectId: e,
4714
4735
  integrationId: t,
4715
4736
  groupRef: r,
@@ -4720,7 +4741,7 @@ function El({
4720
4741
  setInstallation: u,
4721
4742
  onInstallSuccess: p
4722
4743
  }) {
4723
- const h = kl(
4744
+ const h = Pl(
4724
4745
  s,
4725
4746
  n
4726
4747
  );
@@ -4735,7 +4756,7 @@ function El({
4735
4756
  onInstallSuccess: p
4736
4757
  }) : (console.error("Error when generating createConfig from configureState"), Promise.resolve(null));
4737
4758
  }
4738
- function Fl() {
4759
+ function Kl() {
4739
4760
  return /* @__PURE__ */ A("svg", { width: "48", height: "48", viewBox: "0 0 48 48", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
4740
4761
  /* @__PURE__ */ l("circle", { cx: "24", cy: "24", r: "24", fill: "#BBF7D0" }),
4741
4762
  /* @__PURE__ */ l(
@@ -4750,7 +4771,7 @@ function Fl() {
4750
4771
  )
4751
4772
  ] });
4752
4773
  }
4753
- function ra({ text: e }) {
4774
+ function ta({ text: e }) {
4754
4775
  return /* @__PURE__ */ l(cr, { children: /* @__PURE__ */ A(
4755
4776
  J,
4756
4777
  {
@@ -4767,21 +4788,21 @@ function ra({ text: e }) {
4767
4788
  color: "gray.800",
4768
4789
  fontSize: "md",
4769
4790
  children: [
4770
- /* @__PURE__ */ l(J, { width: "100%", display: "flex", alignContent: "center", justifyContent: "center", children: /* @__PURE__ */ l(J, { margin: "auto", children: /* @__PURE__ */ l(Fl, {}) }) }),
4791
+ /* @__PURE__ */ l(J, { width: "100%", display: "flex", alignContent: "center", justifyContent: "center", children: /* @__PURE__ */ l(J, { margin: "auto", children: /* @__PURE__ */ l(Kl, {}) }) }),
4771
4792
  /* @__PURE__ */ l(J, { textAlign: "center", paddingTop: "25px", children: e })
4772
4793
  ]
4773
4794
  }
4774
4795
  ) });
4775
4796
  }
4776
- function Pl({ provider: e }) {
4797
+ function Ll({ provider: e }) {
4777
4798
  const t = `You have successfully installed your ${vt(e)} integration.`;
4778
- return /* @__PURE__ */ l(ra, { text: t });
4799
+ return /* @__PURE__ */ l(ta, { text: t });
4779
4800
  }
4780
- const Dl = (e) => {
4801
+ const Bl = (e) => {
4781
4802
  const { read: t, write: r, proxy: n } = (e == null ? void 0 : e.content) ?? {};
4782
4803
  return !t && !r && (n == null ? void 0 : n.enabled) || !1;
4783
4804
  };
4784
- function Kl({ children: e }) {
4805
+ function Ul({ children: e }) {
4785
4806
  var R;
4786
4807
  const { projectId: t } = ee(), r = te(), { hydratedRevision: n, loading: i } = dr(), {
4787
4808
  integrationObj: a,
@@ -4790,9 +4811,9 @@ function Kl({ children: e }) {
4790
4811
  consumerRef: p,
4791
4812
  setInstallation: h,
4792
4813
  onInstallSuccess: m
4793
- } = Ke(), { selectedConnection: w } = Lt(), [y, I] = k(!1), b = i || y, v = (R = n == null ? void 0 : n.content) == null ? void 0 : R.provider, S = Dl(n);
4814
+ } = Ke(), { selectedConnection: w } = Lt(), [y, I] = k(!1), b = i || y, v = (R = n == null ? void 0 : n.content) == null ? void 0 : R.provider, S = Bl(n);
4794
4815
  return Y(() => {
4795
- !b && n && S && !s && w && r && (a != null && a.id) && (I(!0), El({
4816
+ !b && n && S && !s && w && r && (a != null && a.id) && (I(!0), Dl({
4796
4817
  apiKey: r,
4797
4818
  projectId: t,
4798
4819
  integrationId: a == null ? void 0 : a.id,
@@ -4820,9 +4841,9 @@ function Kl({ children: e }) {
4820
4841
  h,
4821
4842
  b,
4822
4843
  m
4823
- ]), a ? b ? /* @__PURE__ */ l(De, {}) : S && v && s ? /* @__PURE__ */ l(Pl, { provider: v }) : /* @__PURE__ */ l("div", { children: e }) : /* @__PURE__ */ l(qe, { message: "We can't load the integration" });
4844
+ ]), a ? b ? /* @__PURE__ */ l(De, {}) : S && v && s ? /* @__PURE__ */ l(Ll, { provider: v }) : /* @__PURE__ */ l("div", { children: e }) : /* @__PURE__ */ l(We, { message: "We can't load the integration" });
4824
4845
  }
4825
- function Ll({ children: e }) {
4846
+ function Ml({ children: e }) {
4826
4847
  return /* @__PURE__ */ l(cr, { children: /* @__PURE__ */ l(
4827
4848
  J,
4828
4849
  {
@@ -4841,13 +4862,13 @@ function Ll({ children: e }) {
4841
4862
  }
4842
4863
  ) });
4843
4864
  }
4844
- function Bl({ error: e }) {
4865
+ function $l({ error: e }) {
4845
4866
  return e ? /* @__PURE__ */ A(Xr, { status: "error", marginTop: "2em", children: [
4846
4867
  /* @__PURE__ */ l(Gr, {}),
4847
4868
  /* @__PURE__ */ l(Vr, { children: e })
4848
4869
  ] }) : null;
4849
4870
  }
4850
- function na({ url: e, providerDisplayName: t, credentialName: r }) {
4871
+ function ra({ url: e, providerDisplayName: t, credentialName: r }) {
4851
4872
  return /* @__PURE__ */ A(Ie, { align: "left", color: "darkgray", children: [
4852
4873
  /* @__PURE__ */ l(
4853
4874
  so,
@@ -4867,7 +4888,7 @@ function na({ url: e, providerDisplayName: t, credentialName: r }) {
4867
4888
  "."
4868
4889
  ] });
4869
4890
  }
4870
- function Ul({
4891
+ function jl({
4871
4892
  provider: e,
4872
4893
  providerInfo: t,
4873
4894
  handleSubmit: r,
@@ -4876,12 +4897,12 @@ function Ul({
4876
4897
  }) {
4877
4898
  var v;
4878
4899
  const [a, s] = k(!1), u = () => s(!a), [p, h] = k(""), m = (S) => h(S.currentTarget.value), w = p.length > 0, y = i || !w, I = vt(e, t), b = (v = t.apiKeyOpts) == null ? void 0 : v.docsURL;
4879
- return /* @__PURE__ */ l(Ll, { children: /* @__PURE__ */ A(He, { children: [
4900
+ return /* @__PURE__ */ l(Ml, { children: /* @__PURE__ */ A(He, { children: [
4880
4901
  /* @__PURE__ */ l(rt, { my: "6", children: /* @__PURE__ */ l(Je, { as: "h4", size: "md", children: `Set up ${I} integration` }) }),
4881
- /* @__PURE__ */ l(Bl, { error: n }),
4902
+ /* @__PURE__ */ l($l, { error: n }),
4882
4903
  /* @__PURE__ */ A(Ae, { spacing: 4, children: [
4883
4904
  b && /* @__PURE__ */ l(
4884
- na,
4905
+ ra,
4885
4906
  {
4886
4907
  url: b,
4887
4908
  providerDisplayName: I,
@@ -4916,7 +4937,7 @@ function Ul({
4916
4937
  )
4917
4938
  ] }) });
4918
4939
  }
4919
- function Ml({
4940
+ function ql({
4920
4941
  provider: e,
4921
4942
  providerInfo: t,
4922
4943
  consumerRef: r,
@@ -4961,9 +4982,9 @@ function Ml({
4961
4982
  const v = (S) => {
4962
4983
  I(S), w(!0);
4963
4984
  };
4964
- return u === null ? /* @__PURE__ */ l(Ul, { provider: e, providerInfo: t, handleSubmit: v, error: null }) : s;
4985
+ return u === null ? /* @__PURE__ */ l(jl, { provider: e, providerInfo: t, handleSubmit: v, error: null }) : s;
4965
4986
  }
4966
- function $l({ children: e }) {
4987
+ function Wl({ children: e }) {
4967
4988
  return /* @__PURE__ */ l(cr, { children: /* @__PURE__ */ l(
4968
4989
  J,
4969
4990
  {
@@ -4982,13 +5003,13 @@ function $l({ children: e }) {
4982
5003
  }
4983
5004
  ) });
4984
5005
  }
4985
- function jl({ error: e }) {
5006
+ function zl({ error: e }) {
4986
5007
  return e ? /* @__PURE__ */ A(Xr, { status: "error", marginTop: "2em", children: [
4987
5008
  /* @__PURE__ */ l(Gr, {}),
4988
5009
  /* @__PURE__ */ l(Vr, { children: e })
4989
5010
  ] }) : null;
4990
5011
  }
4991
- function Wl({
5012
+ function Jl({
4992
5013
  provider: e,
4993
5014
  providerInfo: t,
4994
5015
  handleSubmit: r,
@@ -4997,13 +5018,13 @@ function Wl({
4997
5018
  }) {
4998
5019
  var C;
4999
5020
  const [a, s] = k(!1), u = () => s(!a), [p, h] = k(""), [m, w] = k(""), y = (D) => h(D.currentTarget.value), I = (D) => w(D.currentTarget.value), b = vt(e, t), v = (C = t.basicOpts) == null ? void 0 : C.docsURL, S = p.length > 0, R = i || !S;
5000
- return /* @__PURE__ */ l($l, { children: /* @__PURE__ */ A(He, { children: [
5021
+ return /* @__PURE__ */ l(Wl, { children: /* @__PURE__ */ A(He, { children: [
5001
5022
  /* @__PURE__ */ l(rt, { marginTop: "16", marginBottom: "0", children: /* @__PURE__ */ l(Je, { as: "h4", size: "md", children: `Set up ${b} integration` }) }),
5002
- /* @__PURE__ */ l(jl, { error: n }),
5023
+ /* @__PURE__ */ l(zl, { error: n }),
5003
5024
  /* @__PURE__ */ l("br", {}),
5004
5025
  /* @__PURE__ */ A(Ae, { spacing: 4, children: [
5005
5026
  v && /* @__PURE__ */ l(
5006
- na,
5027
+ ra,
5007
5028
  {
5008
5029
  url: v,
5009
5030
  providerDisplayName: b,
@@ -5039,7 +5060,7 @@ function Wl({
5039
5060
  )
5040
5061
  ] }) });
5041
5062
  }
5042
- function ql({
5063
+ function Hl({
5043
5064
  provider: e,
5044
5065
  providerInfo: t,
5045
5066
  consumerRef: r,
@@ -5088,7 +5109,7 @@ function ql({
5088
5109
  I({ user: S, pass: R }), w(!0);
5089
5110
  };
5090
5111
  return u === null ? /* @__PURE__ */ l(
5091
- Wl,
5112
+ Jl,
5092
5113
  {
5093
5114
  provider: e,
5094
5115
  providerInfo: t,
@@ -5097,16 +5118,16 @@ function ql({
5097
5118
  }
5098
5119
  ) : s;
5099
5120
  }
5100
- function zl(e) {
5121
+ function Xl(e) {
5101
5122
  const { selectedConnection: t } = Lt();
5102
5123
  Y(() => {
5103
5124
  e && t && e(t.id);
5104
5125
  }, [e, t]);
5105
5126
  }
5106
- function Jl({ onSuccess: e }) {
5107
- zl(e);
5127
+ function Gl({ onSuccess: e }) {
5128
+ Xl(e);
5108
5129
  }
5109
- function Hl({ children: e }) {
5130
+ function Vl({ children: e }) {
5110
5131
  return /* @__PURE__ */ l(cr, { children: /* @__PURE__ */ l(
5111
5132
  J,
5112
5133
  {
@@ -5125,21 +5146,21 @@ function Hl({ children: e }) {
5125
5146
  }
5126
5147
  ) });
5127
5148
  }
5128
- function Xl({ error: e }) {
5149
+ function Yl({ error: e }) {
5129
5150
  return e ? /* @__PURE__ */ A(Xr, { status: "error", marginTop: "2em", children: [
5130
5151
  /* @__PURE__ */ l(Gr, {}),
5131
5152
  /* @__PURE__ */ l(Vr, { children: e })
5132
5153
  ] }) : null;
5133
5154
  }
5134
- function Gl({
5155
+ function Zl({
5135
5156
  handleSubmit: e,
5136
5157
  error: t,
5137
5158
  isButtonDisabled: r,
5138
5159
  providerName: n
5139
5160
  }) {
5140
- return /* @__PURE__ */ l(Hl, { children: /* @__PURE__ */ A(He, { children: [
5161
+ return /* @__PURE__ */ l(Vl, { children: /* @__PURE__ */ A(He, { children: [
5141
5162
  /* @__PURE__ */ l(rt, { marginTop: "16", marginBottom: "0", children: /* @__PURE__ */ l(Je, { as: "h4", size: "md", children: `Set up ${n} integration` }) }),
5142
- /* @__PURE__ */ l(Xl, { error: t }),
5163
+ /* @__PURE__ */ l(Yl, { error: t }),
5143
5164
  /* @__PURE__ */ l("br", {}),
5144
5165
  /* @__PURE__ */ l(
5145
5166
  ne,
@@ -5153,7 +5174,7 @@ function Gl({
5153
5174
  )
5154
5175
  ] }) });
5155
5176
  }
5156
- function Vl({
5177
+ function Ql({
5157
5178
  provider: e,
5158
5179
  consumerRef: t,
5159
5180
  consumerName: r,
@@ -5186,7 +5207,7 @@ function Vl({
5186
5207
  const I = () => {
5187
5208
  y(!0);
5188
5209
  };
5189
- return s === null ? /* @__PURE__ */ l(Gl, { handleSubmit: I, error: null, providerName: p }) : a;
5210
+ return s === null ? /* @__PURE__ */ l(Zl, { handleSubmit: I, error: null, providerName: p }) : a;
5190
5211
  }
5191
5212
  function lr({ children: e }) {
5192
5213
  return /* @__PURE__ */ l(cr, { children: /* @__PURE__ */ l(
@@ -5213,7 +5234,7 @@ function ur({ error: e }) {
5213
5234
  /* @__PURE__ */ l(Vr, { children: e })
5214
5235
  ] }) : null;
5215
5236
  }
5216
- function Yl({
5237
+ function eu({
5217
5238
  handleSubmit: e,
5218
5239
  error: t,
5219
5240
  explicitScopesRequired: r,
@@ -5225,7 +5246,7 @@ function Yl({
5225
5246
  clientId: h,
5226
5247
  clientSecret: u
5227
5248
  };
5228
- r && w.length > 0 && (M.scopes = Ro(w)), e(M);
5249
+ r && w.length > 0 && (M.scopes = To(w)), e(M);
5229
5250
  };
5230
5251
  return /* @__PURE__ */ l(lr, { children: /* @__PURE__ */ A(He, { children: [
5231
5252
  /* @__PURE__ */ l(rt, { marginTop: "16", marginBottom: "0", children: /* @__PURE__ */ l(Je, { as: "h4", size: "md", children: `Set up ${i} integration` }) }),
@@ -5266,7 +5287,7 @@ function Yl({
5266
5287
  )
5267
5288
  ] }) });
5268
5289
  }
5269
- function Zl({
5290
+ function tu({
5270
5291
  provider: e,
5271
5292
  consumerRef: t,
5272
5293
  consumerName: r,
@@ -5300,7 +5321,7 @@ function Zl({
5300
5321
  });
5301
5322
  };
5302
5323
  return u === null ? /* @__PURE__ */ l(
5303
- Yl,
5324
+ eu,
5304
5325
  {
5305
5326
  providerName: s,
5306
5327
  handleSubmit: I,
@@ -5309,7 +5330,7 @@ function Zl({
5309
5330
  }
5310
5331
  ) : /* @__PURE__ */ l(De, {});
5311
5332
  }
5312
- const ia = async (e, t, r, n, i, a, s, u) => {
5333
+ const na = async (e, t, r, n, i, a, s, u) => {
5313
5334
  var h;
5314
5335
  const p = await X().providerApi.getProvider({ provider: i }, {
5315
5336
  headers: { "X-Api-Key": n ?? "" }
@@ -5337,8 +5358,8 @@ const ia = async (e, t, r, n, i, a, s, u) => {
5337
5358
  return await X().oAuthApi.oauthConnect(I);
5338
5359
  }
5339
5360
  throw new Error(`Provider ${i} does not support an OAuth2 web flow.`);
5340
- }, Hi = 600, Xi = 600, Ql = "AUTHORIZATION_SUCCEEDED", eu = "AUTHORIZATION_FAILED";
5341
- function tu(e, t, r) {
5361
+ }, Hi = 600, Xi = 600, ru = "AUTHORIZATION_SUCCEEDED", nu = "AUTHORIZATION_FAILED";
5362
+ function iu(e, t, r) {
5342
5363
  return Q(async (n) => {
5343
5364
  const i = await X().connectionApi.getConnection({ projectIdOrName: e, connectionId: n }, {
5344
5365
  headers: { "X-Api-Key": t ?? "" }
@@ -5346,32 +5367,32 @@ function tu(e, t, r) {
5346
5367
  r(i);
5347
5368
  }, [e, t, r]);
5348
5369
  }
5349
- function ru(e, t, r, n) {
5370
+ function ou(e, t, r, n) {
5350
5371
  return Q(() => {
5351
5372
  if (!n) return;
5352
5373
  const i = window.screenX + (window.outerWidth - Hi) / 2, a = window.screenY + (window.outerHeight - Xi) / 2.5, s = `width=${Hi},height=${Xi},left=${i},top=${a}`, u = window.open(n, e, s);
5353
5374
  t(u), window.addEventListener("message", r, !1);
5354
5375
  }, [n, e, t, r]);
5355
5376
  }
5356
- function nu(e) {
5377
+ function au(e) {
5357
5378
  return Q((t) => {
5358
5379
  var r;
5359
- if (t.origin === Id) {
5360
- if (t.data.eventType === Ql) {
5380
+ if (t.origin === Sd) {
5381
+ if (t.data.eventType === ru) {
5361
5382
  const n = (r = t.data.data) == null ? void 0 : r.connection;
5362
5383
  n ? e(n) : console.error("Connection ID not found in event data: ", { event: t });
5363
5384
  }
5364
- t.data.eventType === eu && console.error("OAuth failed: ", { event: t });
5385
+ t.data.eventType === nu && console.error("OAuth failed: ", { event: t });
5365
5386
  }
5366
5387
  }, [e]);
5367
5388
  }
5368
- function oa({
5389
+ function ia({
5369
5390
  children: e,
5370
5391
  oauthUrl: t,
5371
5392
  windowTitle: r = "Connect to Provider",
5372
5393
  onClose: n
5373
5394
  }) {
5374
- const i = te(), { projectId: a } = ee(), [s, u] = k(null), [p, h] = k(null), { setSelectedConnection: m } = Lt(), w = nu(u), y = ru(r, h, w, t), I = tu(a, i, m);
5395
+ const i = te(), { projectId: a } = ee(), [s, u] = k(null), [p, h] = k(null), { setSelectedConnection: m } = Lt(), w = au(u), y = ou(r, h, w, t), I = iu(a, i, m);
5375
5396
  Y(() => {
5376
5397
  t && !p && y();
5377
5398
  }, [t, p, y, w, r]), Y(() => {
@@ -5386,7 +5407,7 @@ function oa({
5386
5407
  }, 500);
5387
5408
  return /* @__PURE__ */ l("div", { children: e });
5388
5409
  }
5389
- function iu({
5410
+ function su({
5390
5411
  handleSubmit: e,
5391
5412
  error: t,
5392
5413
  isButtonDisabled: r,
@@ -5408,7 +5429,7 @@ function iu({
5408
5429
  )
5409
5430
  ] }) });
5410
5431
  }
5411
- function ou({
5432
+ function cu({
5412
5433
  provider: e,
5413
5434
  consumerRef: t,
5414
5435
  consumerName: r,
@@ -5419,7 +5440,7 @@ function ou({
5419
5440
  const { projectId: s } = ee(), u = te(), [p, h] = k(null), [m, w] = k(null), y = async () => {
5420
5441
  w(null);
5421
5442
  try {
5422
- const b = await ia(
5443
+ const b = await na(
5423
5444
  s,
5424
5445
  t,
5425
5446
  n,
@@ -5437,16 +5458,16 @@ function ou({
5437
5458
  w(b), h(null);
5438
5459
  }, []);
5439
5460
  return /* @__PURE__ */ l(
5440
- oa,
5461
+ ia,
5441
5462
  {
5442
5463
  windowTitle: `Connect to ${a}`,
5443
5464
  oauthUrl: p,
5444
5465
  onClose: I,
5445
- children: /* @__PURE__ */ l(iu, { handleSubmit: y, error: m, providerName: a })
5466
+ children: /* @__PURE__ */ l(su, { handleSubmit: y, error: m, providerName: a })
5446
5467
  }
5447
5468
  );
5448
5469
  }
5449
- function au({
5470
+ function du({
5450
5471
  handleSubmit: e,
5451
5472
  error: t,
5452
5473
  isButtonDisabled: r,
@@ -5459,7 +5480,7 @@ function au({
5459
5480
  clientId: h,
5460
5481
  clientSecret: u
5461
5482
  };
5462
- i && I.length > 0 && (V.scopes = Ro(I)), e(V);
5483
+ i && I.length > 0 && (V.scopes = To(I)), e(V);
5463
5484
  };
5464
5485
  return /* @__PURE__ */ l(lr, { children: /* @__PURE__ */ A(He, { children: [
5465
5486
  /* @__PURE__ */ l(rt, { marginTop: "16", marginBottom: "0", children: /* @__PURE__ */ l(Je, { as: "h4", size: "md", children: `Set up ${n} integration` }) }),
@@ -5507,7 +5528,7 @@ function au({
5507
5528
  )
5508
5529
  ] }) });
5509
5530
  }
5510
- function su({
5531
+ function lu({
5511
5532
  provider: e,
5512
5533
  providerName: t,
5513
5534
  consumerRef: r,
@@ -5542,7 +5563,7 @@ function su({
5542
5563
  });
5543
5564
  };
5544
5565
  return u === null ? /* @__PURE__ */ l(
5545
- au,
5566
+ du,
5546
5567
  {
5547
5568
  providerName: t,
5548
5569
  handleSubmit: I,
@@ -5551,9 +5572,9 @@ function su({
5551
5572
  }
5552
5573
  ) : /* @__PURE__ */ l(De, {});
5553
5574
  }
5554
- function cu() {
5575
+ function uu() {
5555
5576
  const e = ve(
5556
- Ta
5577
+ Na
5557
5578
  );
5558
5579
  if (!e)
5559
5580
  throw Error(
@@ -5561,27 +5582,27 @@ function cu() {
5561
5582
  );
5562
5583
  return e;
5563
5584
  }
5564
- var aa = _e({});
5565
- aa.displayName = "ColorModeContext";
5566
- function sa() {
5567
- const e = ve(aa);
5585
+ var oa = _e({});
5586
+ oa.displayName = "ColorModeContext";
5587
+ function aa() {
5588
+ const e = ve(oa);
5568
5589
  if (e === void 0)
5569
5590
  throw new Error("useColorMode must be used within a ColorModeProvider");
5570
5591
  return e;
5571
5592
  }
5572
- function du() {
5573
- const e = sa(), t = cu();
5593
+ function pu() {
5594
+ const e = aa(), t = uu();
5574
5595
  return { ...e, theme: t };
5575
5596
  }
5576
- var lu = (...e) => e.filter(Boolean).join(" ");
5597
+ var fu = (...e) => e.filter(Boolean).join(" ");
5577
5598
  function mt(e) {
5578
5599
  const t = typeof e;
5579
5600
  return e != null && (t === "object" || t === "function") && !Array.isArray(e);
5580
5601
  }
5581
5602
  function gt(e, ...t) {
5582
- return uu(e) ? e(...t) : e;
5603
+ return hu(e) ? e(...t) : e;
5583
5604
  }
5584
- var uu = (e) => typeof e == "function", zr = { exports: {} };
5605
+ var hu = (e) => typeof e == "function", zr = { exports: {} };
5585
5606
  zr.exports;
5586
5607
  (function(e, t) {
5587
5608
  var r = 200, n = "__lodash_hash_undefined__", i = 800, a = 16, s = 9007199254740991, u = "[object Arguments]", p = "[object Array]", h = "[object AsyncFunction]", m = "[object Boolean]", w = "[object Date]", y = "[object Error]", I = "[object Function]", b = "[object GeneratorFunction]", v = "[object Map]", S = "[object Number]", R = "[object Null]", C = "[object Object]", D = "[object Proxy]", U = "[object RegExp]", M = "[object Set]", ie = "[object String]", H = "[object Undefined]", se = "[object WeakMap]", V = "[object ArrayBuffer]", be = "[object DataView]", Le = "[object Float32Array]", bt = "[object Float64Array]", sn = "[object Int8Array]", cn = "[object Int16Array]", dn = "[object Int32Array]", ln = "[object Uint8Array]", un = "[object Uint8ClampedArray]", pn = "[object Uint16Array]", fn = "[object Uint32Array]", hn = /[\\^$.*+?()[\]{}|]/g, gn = /^\[object .+?Constructor\]$/, mn = /^(?:0|[1-9]\d*)$/, $ = {};
@@ -5631,7 +5652,7 @@ zr.exports;
5631
5652
  "^" + Nt.call(xe).replace(hn, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
5632
5653
  ), Ge = Ut ? Xe.Buffer : void 0, jt = Xe.Symbol, ue = Xe.Uint8Array;
5633
5654
  Ge && Ge.allocUnsafe;
5634
- var Wt = In(Object.getPrototypeOf, Object), qt = Object.create, On = Ct.propertyIsEnumerable, wr = vn.splice, he = jt ? jt.toStringTag : void 0, it = function() {
5655
+ var qt = In(Object.getPrototypeOf, Object), Wt = Object.create, On = Ct.propertyIsEnumerable, wr = vn.splice, he = jt ? jt.toStringTag : void 0, it = function() {
5635
5656
  try {
5636
5657
  var o = Vt(Object, "defineProperty");
5637
5658
  return o({}, "", {}), o;
@@ -5643,8 +5664,8 @@ zr.exports;
5643
5664
  return function(c) {
5644
5665
  if (!Me(c))
5645
5666
  return {};
5646
- if (qt)
5647
- return qt(c);
5667
+ if (Wt)
5668
+ return Wt(c);
5648
5669
  o.prototype = c;
5649
5670
  var f = new o();
5650
5671
  return o.prototype = void 0, f;
@@ -5769,12 +5790,12 @@ zr.exports;
5769
5790
  Ve.prototype.clear = Ce, Ve.prototype.delete = Fn, Ve.prototype.get = Pn, Ve.prototype.has = Dn, Ve.prototype.set = Kn;
5770
5791
  function Ln(o, c) {
5771
5792
  var f = Te(o), O = !f && Zt(o), T = !f && !O && ut(o), x = !f && !O && !T && er(o), P = f || O || T || x, E = P ? gr(o.length, String) : [], F = E.length;
5772
- for (var W in o)
5793
+ for (var q in o)
5773
5794
  P && // Safari 9 has enumerable `arguments.length` in strict mode.
5774
- (W == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
5775
- T && (W == "offset" || W == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
5776
- x && (W == "buffer" || W == "byteLength" || W == "byteOffset") || // Skip index properties.
5777
- Yt(W, F)) || E.push(W);
5795
+ (q == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
5796
+ T && (q == "offset" || q == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
5797
+ x && (q == "buffer" || q == "byteLength" || q == "byteOffset") || // Skip index properties.
5798
+ Yt(q, F)) || E.push(q);
5778
5799
  return E;
5779
5800
  }
5780
5801
  function Ne(o, c, f) {
@@ -5833,22 +5854,22 @@ zr.exports;
5833
5854
  }, tr);
5834
5855
  }
5835
5856
  function jn(o, c, f, O, T, x, P) {
5836
- var E = ge(o, f), F = ge(c, f), W = P.get(F);
5837
- if (W) {
5838
- Ne(o, f, W);
5857
+ var E = ge(o, f), F = ge(c, f), q = P.get(F);
5858
+ if (q) {
5859
+ Ne(o, f, q);
5839
5860
  return;
5840
5861
  }
5841
- var q = x ? x(E, F, f + "", o, c, P) : void 0, G = q === void 0;
5862
+ var W = x ? x(E, F, f + "", o, c, P) : void 0, G = W === void 0;
5842
5863
  if (G) {
5843
5864
  var oe = Te(F), ae = !oe && ut(F), Re = !oe && !ae && er(F);
5844
- q = F, oe || ae || Re ? Te(E) ? q = E : ni(E) ? q = Hn(E) : ae ? (G = !1, q = zn(F)) : Re ? (G = !1, q = At(F)) : q = [] : Tr(F) || Zt(F) ? (q = E, Zt(E) ? q = pt(E) : (!Me(E) || Qt(E)) && (q = Gn(F))) : G = !1;
5865
+ W = F, oe || ae || Re ? Te(E) ? W = E : ni(E) ? W = Hn(E) : ae ? (G = !1, W = zn(F)) : Re ? (G = !1, W = At(F)) : W = [] : Tr(F) || Zt(F) ? (W = E, Zt(E) ? W = pt(E) : (!Me(E) || Qt(E)) && (W = Gn(F))) : G = !1;
5845
5866
  }
5846
- G && (P.set(F, q), T(q, F, O, x, P), P.delete(F)), Ne(o, f, q);
5867
+ G && (P.set(F, W), T(W, F, O, x, P), P.delete(F)), Ne(o, f, W);
5847
5868
  }
5848
- function Wn(o, c) {
5869
+ function qn(o, c) {
5849
5870
  return ei(Qn(o, c, Rr), o + "");
5850
5871
  }
5851
- var qn = it ? function(o, c) {
5872
+ var Wn = it ? function(o, c) {
5852
5873
  return it(o, "toString", {
5853
5874
  configurable: !0,
5854
5875
  enumerable: !1,
@@ -5883,7 +5904,7 @@ zr.exports;
5883
5904
  return f;
5884
5905
  }
5885
5906
  function Or(o) {
5886
- return Wn(function(c, f) {
5907
+ return qn(function(c, f) {
5887
5908
  var O = -1, T = f.length, x = T > 1 ? f[T - 1] : void 0, P = T > 2 ? f[2] : void 0;
5888
5909
  for (x = o.length > 3 && typeof x == "function" ? (T--, x) : void 0, P && Vn(f[0], f[1], P) && (x = T < 3 ? void 0 : x, T = 1), c = Object(c); ++O < T; ) {
5889
5910
  var E = f[O];
@@ -5921,7 +5942,7 @@ zr.exports;
5921
5942
  return O && (c ? o[he] = f : delete o[he]), T;
5922
5943
  }
5923
5944
  function Gn(o) {
5924
- return typeof o.constructor == "function" && !lt(o) ? Cn(Wt(o)) : {};
5945
+ return typeof o.constructor == "function" && !lt(o) ? Cn(qt(o)) : {};
5925
5946
  }
5926
5947
  function Yt(o, c) {
5927
5948
  var f = typeof o;
@@ -5968,7 +5989,7 @@ zr.exports;
5968
5989
  if (!(c === "constructor" && typeof o[c] == "function") && c != "__proto__")
5969
5990
  return o[c];
5970
5991
  }
5971
- var ei = ti(qn);
5992
+ var ei = ti(Wn);
5972
5993
  function ti(o) {
5973
5994
  var c = 0, f = 0;
5974
5995
  return function() {
@@ -6028,7 +6049,7 @@ zr.exports;
6028
6049
  function Tr(o) {
6029
6050
  if (!Ze(o) || _t(o) != C)
6030
6051
  return !1;
6031
- var c = Wt(o);
6052
+ var c = qt(o);
6032
6053
  if (c === null)
6033
6054
  return !0;
6034
6055
  var f = xe.call(c, "constructor") && c.constructor;
@@ -6057,10 +6078,10 @@ zr.exports;
6057
6078
  }
6058
6079
  e.exports = ii;
6059
6080
  })(zr, zr.exports);
6060
- var pu = zr.exports;
6061
- const We = /* @__PURE__ */ Ni(pu);
6062
- var fu = (e) => /!(important)?$/.test(e), Gi = (e) => typeof e == "string" ? e.replace(/!(important)?$/, "").trim() : e, hu = (e, t) => (r) => {
6063
- const n = String(t), i = fu(n), a = Gi(n), s = e ? `${e}.${a}` : a;
6081
+ var gu = zr.exports;
6082
+ const qe = /* @__PURE__ */ Ni(gu);
6083
+ var mu = (e) => /!(important)?$/.test(e), Gi = (e) => typeof e == "string" ? e.replace(/!(important)?$/, "").trim() : e, yu = (e, t) => (r) => {
6084
+ const n = String(t), i = mu(n), a = Gi(n), s = e ? `${e}.${a}` : a;
6064
6085
  let u = mt(r.__cssMap) && s in r.__cssMap ? r.__cssMap[s].varRef : t;
6065
6086
  return u = Gi(u), i ? `${u} !important` : u;
6066
6087
  };
@@ -6068,7 +6089,7 @@ function ki(e) {
6068
6089
  const { scale: t, transform: r, compose: n } = e;
6069
6090
  return (a, s) => {
6070
6091
  var u;
6071
- const p = hu(t, a)(s);
6092
+ const p = yu(t, a)(s);
6072
6093
  let h = (u = r == null ? void 0 : r(p, s)) != null ? u : p;
6073
6094
  return n && (h = n(h, s)), h;
6074
6095
  };
@@ -6083,39 +6104,39 @@ function me(e, t) {
6083
6104
  }), n;
6084
6105
  };
6085
6106
  }
6086
- var gu = ({ rtl: e, ltr: t }) => (r) => r.direction === "rtl" ? e : t;
6087
- function mu(e) {
6107
+ var wu = ({ rtl: e, ltr: t }) => (r) => r.direction === "rtl" ? e : t;
6108
+ function Iu(e) {
6088
6109
  const { property: t, scale: r, transform: n } = e;
6089
6110
  return {
6090
6111
  scale: r,
6091
- property: gu(t),
6112
+ property: wu(t),
6092
6113
  transform: r ? ki({
6093
6114
  scale: r,
6094
6115
  compose: n
6095
6116
  }) : n
6096
6117
  };
6097
6118
  }
6098
- var ca = [
6119
+ var sa = [
6099
6120
  "rotate(var(--chakra-rotate, 0))",
6100
6121
  "scaleX(var(--chakra-scale-x, 1))",
6101
6122
  "scaleY(var(--chakra-scale-y, 1))",
6102
6123
  "skewX(var(--chakra-skew-x, 0))",
6103
6124
  "skewY(var(--chakra-skew-y, 0))"
6104
6125
  ];
6105
- function yu() {
6126
+ function vu() {
6106
6127
  return [
6107
6128
  "translateX(var(--chakra-translate-x, 0))",
6108
6129
  "translateY(var(--chakra-translate-y, 0))",
6109
- ...ca
6130
+ ...sa
6110
6131
  ].join(" ");
6111
6132
  }
6112
- function wu() {
6133
+ function bu() {
6113
6134
  return [
6114
6135
  "translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",
6115
- ...ca
6136
+ ...sa
6116
6137
  ].join(" ");
6117
6138
  }
6118
- var Iu = {
6139
+ var Su = {
6119
6140
  "--chakra-blur": "var(--chakra-empty,/*!*/ /*!*/)",
6120
6141
  "--chakra-brightness": "var(--chakra-empty,/*!*/ /*!*/)",
6121
6142
  "--chakra-contrast": "var(--chakra-empty,/*!*/ /*!*/)",
@@ -6136,7 +6157,7 @@ var Iu = {
6136
6157
  "var(--chakra-sepia)",
6137
6158
  "var(--chakra-drop-shadow)"
6138
6159
  ].join(" ")
6139
- }, vu = {
6160
+ }, Ou = {
6140
6161
  backdropFilter: [
6141
6162
  "var(--chakra-backdrop-blur)",
6142
6163
  "var(--chakra-backdrop-brightness)",
@@ -6158,7 +6179,7 @@ var Iu = {
6158
6179
  "--chakra-backdrop-saturate": "var(--chakra-empty,/*!*/ /*!*/)",
6159
6180
  "--chakra-backdrop-sepia": "var(--chakra-empty,/*!*/ /*!*/)"
6160
6181
  };
6161
- function bu(e) {
6182
+ function Cu(e) {
6162
6183
  return {
6163
6184
  "--chakra-ring-offset-shadow": "var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)",
6164
6185
  "--chakra-ring-shadow": "var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)",
@@ -6170,7 +6191,7 @@ function bu(e) {
6170
6191
  ].join(", ")
6171
6192
  };
6172
6193
  }
6173
- var Su = {
6194
+ var Nu = {
6174
6195
  "row-reverse": {
6175
6196
  space: "--chakra-space-x-reverse",
6176
6197
  divide: "--chakra-divide-x-reverse"
@@ -6188,15 +6209,15 @@ var Su = {
6188
6209
  "to-bl": "to bottom left",
6189
6210
  "to-l": "to left",
6190
6211
  "to-tl": "to top left"
6191
- }, Ou = new Set(Object.values(yi)), wi = /* @__PURE__ */ new Set([
6212
+ }, Tu = new Set(Object.values(yi)), wi = /* @__PURE__ */ new Set([
6192
6213
  "none",
6193
6214
  "-moz-initial",
6194
6215
  "inherit",
6195
6216
  "initial",
6196
6217
  "revert",
6197
6218
  "unset"
6198
- ]), Cu = (e) => e.trim();
6199
- function Nu(e, t) {
6219
+ ]), Ru = (e) => e.trim();
6220
+ function _u(e, t) {
6200
6221
  if (e == null || wi.has(e))
6201
6222
  return e;
6202
6223
  if (!(Ii(e) || wi.has(e)))
@@ -6204,13 +6225,13 @@ function Nu(e, t) {
6204
6225
  const i = /(^[a-z-A-Z]+)\((.*)\)/g.exec(e), a = i == null ? void 0 : i[1], s = i == null ? void 0 : i[2];
6205
6226
  if (!a || !s)
6206
6227
  return e;
6207
- const u = a.includes("-gradient") ? a : `${a}-gradient`, [p, ...h] = s.split(",").map(Cu).filter(Boolean);
6228
+ const u = a.includes("-gradient") ? a : `${a}-gradient`, [p, ...h] = s.split(",").map(Ru).filter(Boolean);
6208
6229
  if ((h == null ? void 0 : h.length) === 0)
6209
6230
  return e;
6210
6231
  const m = p in yi ? yi[p] : p;
6211
6232
  h.unshift(m);
6212
6233
  const w = h.map((y) => {
6213
- if (Ou.has(y))
6234
+ if (Tu.has(y))
6214
6235
  return y;
6215
6236
  const I = y.indexOf(" "), [b, v] = I !== -1 ? [y.substr(0, I), y.substr(I + 1)] : [y], S = Ii(v) ? v : v && v.split(" "), R = `colors.${b}`, C = R in t.__cssMap ? t.__cssMap[R].varRef : b;
6216
6237
  return S ? [
@@ -6220,28 +6241,28 @@ function Nu(e, t) {
6220
6241
  });
6221
6242
  return `${u}(${w.join(", ")})`;
6222
6243
  }
6223
- var Ii = (e) => typeof e == "string" && e.includes("(") && e.includes(")"), Tu = (e, t) => Nu(e, t ?? {});
6224
- function Ru(e) {
6244
+ var Ii = (e) => typeof e == "string" && e.includes("(") && e.includes(")"), Au = (e, t) => _u(e, t ?? {});
6245
+ function xu(e) {
6225
6246
  return /^var\(--.+\)$/.test(e);
6226
6247
  }
6227
- var _u = (e) => {
6248
+ var ku = (e) => {
6228
6249
  const t = parseFloat(e.toString()), r = e.toString().replace(String(t), "");
6229
6250
  return { unitless: !r, value: t, unit: r };
6230
6251
  }, Fe = (e) => (t) => `${e}(${t})`, K = {
6231
6252
  filter(e) {
6232
- return e !== "auto" ? e : Iu;
6253
+ return e !== "auto" ? e : Su;
6233
6254
  },
6234
6255
  backdropFilter(e) {
6235
- return e !== "auto" ? e : vu;
6256
+ return e !== "auto" ? e : Ou;
6236
6257
  },
6237
6258
  ring(e) {
6238
- return bu(K.px(e));
6259
+ return Cu(K.px(e));
6239
6260
  },
6240
6261
  bgClip(e) {
6241
6262
  return e === "text" ? { color: "transparent", backgroundClip: "text" } : { backgroundClip: e };
6242
6263
  },
6243
6264
  transform(e) {
6244
- return e === "auto" ? yu() : e === "auto-gpu" ? wu() : e;
6265
+ return e === "auto" ? vu() : e === "auto-gpu" ? bu() : e;
6245
6266
  },
6246
6267
  vh(e) {
6247
6268
  return e === "$100vh" ? "var(--chakra-vh)" : e;
@@ -6249,7 +6270,7 @@ var _u = (e) => {
6249
6270
  px(e) {
6250
6271
  if (e == null)
6251
6272
  return e;
6252
- const { unitless: t } = _u(e);
6273
+ const { unitless: t } = ku(e);
6253
6274
  return t || typeof e == "number" ? `${e}px` : e;
6254
6275
  },
6255
6276
  fraction(e) {
@@ -6260,12 +6281,12 @@ var _u = (e) => {
6260
6281
  return t.direction === "rtl" ? r[e] : e;
6261
6282
  },
6262
6283
  degree(e) {
6263
- if (Ru(e) || e == null)
6284
+ if (xu(e) || e == null)
6264
6285
  return e;
6265
6286
  const t = typeof e == "string" && !e.endsWith("deg");
6266
6287
  return typeof e == "number" || t ? `${e}deg` : e;
6267
6288
  },
6268
- gradient: Tu,
6289
+ gradient: Au,
6269
6290
  blur: Fe("blur"),
6270
6291
  opacity: Fe("opacity"),
6271
6292
  brightness: Fe("brightness"),
@@ -6285,7 +6306,7 @@ var _u = (e) => {
6285
6306
  },
6286
6307
  flexDirection(e) {
6287
6308
  var t;
6288
- const { space: r, divide: n } = (t = Su[e]) != null ? t : {}, i = { flexDirection: e };
6309
+ const { space: r, divide: n } = (t = Nu[e]) != null ? t : {}, i = { flexDirection: e };
6289
6310
  return r && (i[r] = 1), n && (i[n] = 1), i;
6290
6311
  }
6291
6312
  }, g = {
@@ -6315,7 +6336,7 @@ var _u = (e) => {
6315
6336
  sizes: me("sizes", Fr(K.vh, K.px)),
6316
6337
  sizesT: me("sizes", Fr(K.vh, K.fraction)),
6317
6338
  shadows: me("shadows"),
6318
- logical: mu,
6339
+ logical: Iu,
6319
6340
  blur: me("blur", K.blur)
6320
6341
  }, Kr = {
6321
6342
  background: g.colors("background"),
@@ -6473,7 +6494,7 @@ Object.assign(L, {
6473
6494
  borderStartStyle: L.borderInlineStartStyle,
6474
6495
  borderEndStyle: L.borderInlineEndStyle
6475
6496
  });
6476
- var Au = {
6497
+ var Eu = {
6477
6498
  color: g.colors("color"),
6478
6499
  textColor: g.colors("color"),
6479
6500
  fill: g.colors("fill"),
@@ -6489,7 +6510,7 @@ var Au = {
6489
6510
  Object.assign(vi, {
6490
6511
  shadow: vi.boxShadow
6491
6512
  });
6492
- var xu = {
6513
+ var Fu = {
6493
6514
  filter: { transform: K.filter },
6494
6515
  blur: g.blur("--chakra-blur"),
6495
6516
  brightness: g.propT("--chakra-brightness", K.brightness),
@@ -6536,7 +6557,7 @@ var xu = {
6536
6557
  Object.assign(Jr, {
6537
6558
  flexDir: Jr.flexDirection
6538
6559
  });
6539
- var da = {
6560
+ var ca = {
6540
6561
  gridGap: g.space("gridGap"),
6541
6562
  gridColumnGap: g.space("gridColumnGap"),
6542
6563
  gridRowGap: g.space("gridRowGap"),
@@ -6554,7 +6575,7 @@ var da = {
6554
6575
  gridTemplateRows: !0,
6555
6576
  gridTemplateAreas: !0,
6556
6577
  gridArea: !0
6557
- }, ku = {
6578
+ }, Pu = {
6558
6579
  appearance: !0,
6559
6580
  cursor: !0,
6560
6581
  resize: !0,
@@ -6619,20 +6640,20 @@ Object.assign(ye, {
6619
6640
  overscrollX: ye.overscrollBehaviorX,
6620
6641
  overscrollY: ye.overscrollBehaviorY
6621
6642
  });
6622
- var Eu = {
6643
+ var Du = {
6623
6644
  listStyleType: !0,
6624
6645
  listStylePosition: !0,
6625
6646
  listStylePos: g.prop("listStylePosition"),
6626
6647
  listStyleImage: !0,
6627
6648
  listStyleImg: g.prop("listStyleImage")
6628
6649
  };
6629
- function Fu(e, t, r, n) {
6650
+ function Ku(e, t, r, n) {
6630
6651
  const i = typeof t == "string" ? t.split(".") : [t];
6631
6652
  for (n = 0; n < i.length && e; n += 1)
6632
6653
  e = e[i[n]];
6633
6654
  return e === void 0 ? r : e;
6634
6655
  }
6635
- var Pu = (e) => {
6656
+ var Lu = (e) => {
6636
6657
  const t = /* @__PURE__ */ new WeakMap();
6637
6658
  return (n, i, a, s) => {
6638
6659
  if (typeof n > "u")
@@ -6644,7 +6665,7 @@ var Pu = (e) => {
6644
6665
  const p = e(n, i, a, s);
6645
6666
  return u.set(i, p), p;
6646
6667
  };
6647
- }, Du = Pu(Fu), Ku = {
6668
+ }, Bu = Lu(Ku), Uu = {
6648
6669
  border: "0px",
6649
6670
  clip: "rect(0, 0, 0, 0)",
6650
6671
  width: "1px",
@@ -6654,7 +6675,7 @@ var Pu = (e) => {
6654
6675
  overflow: "hidden",
6655
6676
  whiteSpace: "nowrap",
6656
6677
  position: "absolute"
6657
- }, Lu = {
6678
+ }, Mu = {
6658
6679
  position: "static",
6659
6680
  width: "auto",
6660
6681
  height: "auto",
@@ -6664,14 +6685,14 @@ var Pu = (e) => {
6664
6685
  overflow: "visible",
6665
6686
  whiteSpace: "normal"
6666
6687
  }, di = (e, t, r) => {
6667
- const n = {}, i = Du(e, t, {});
6688
+ const n = {}, i = Bu(e, t, {});
6668
6689
  for (const a in i)
6669
6690
  a in r && r[a] != null || (n[a] = i[a]);
6670
6691
  return n;
6671
- }, Bu = {
6692
+ }, $u = {
6672
6693
  srOnly: {
6673
6694
  transform(e) {
6674
- return e === !0 ? Ku : e === "focusable" ? Lu : {};
6695
+ return e === !0 ? Uu : e === "focusable" ? Mu : {};
6675
6696
  }
6676
6697
  },
6677
6698
  layerStyle: {
@@ -6714,7 +6735,7 @@ Object.assign(or, {
6714
6735
  insetStart: or.insetInlineStart,
6715
6736
  insetEnd: or.insetInlineEnd
6716
6737
  });
6717
- var Uu = {
6738
+ var ju = {
6718
6739
  ring: { transform: K.ring },
6719
6740
  ringColor: g.colors("--chakra-ring-color"),
6720
6741
  ringOffset: g.prop("--chakra-ring-offset-width"),
@@ -6772,7 +6793,7 @@ Object.assign(z, {
6772
6793
  pe: z.paddingInlineEnd,
6773
6794
  paddingEnd: z.paddingInlineEnd
6774
6795
  });
6775
- var Mu = {
6796
+ var qu = {
6776
6797
  textDecorationColor: g.colors("textDecorationColor"),
6777
6798
  textDecoration: !0,
6778
6799
  textDecor: { property: "textDecoration" },
@@ -6781,7 +6802,7 @@ var Mu = {
6781
6802
  textDecorationThickness: !0,
6782
6803
  textUnderlineOffset: !0,
6783
6804
  textShadow: g.shadows("textShadow")
6784
- }, $u = {
6805
+ }, Wu = {
6785
6806
  clipPath: !0,
6786
6807
  transform: g.propT("transform", K.transform),
6787
6808
  transformOrigin: !0,
@@ -6793,7 +6814,7 @@ var Mu = {
6793
6814
  scaleY: g.prop("--chakra-scale-y"),
6794
6815
  scale: g.prop(["--chakra-scale-x", "--chakra-scale-y"]),
6795
6816
  rotate: g.degreeT("--chakra-rotate")
6796
- }, ju = {
6817
+ }, zu = {
6797
6818
  transition: !0,
6798
6819
  transitionDelay: !0,
6799
6820
  animation: !0,
@@ -6804,7 +6825,7 @@ var Mu = {
6804
6825
  "transitionTimingFunction",
6805
6826
  "transition.easing"
6806
6827
  )
6807
- }, Wu = {
6828
+ }, Ju = {
6808
6829
  fontFamily: g.prop("fontFamily", "fonts"),
6809
6830
  fontSize: g.prop("fontSize", "fontSizes", K.px),
6810
6831
  fontWeight: g.prop("fontWeight", "fontWeights"),
@@ -6839,7 +6860,7 @@ var Mu = {
6839
6860
  },
6840
6861
  property: "--chakra-line-clamp"
6841
6862
  }
6842
- }, qu = {
6863
+ }, Hu = {
6843
6864
  scrollBehavior: !0,
6844
6865
  scrollSnapAlign: !0,
6845
6866
  scrollSnapStop: !0,
@@ -6861,11 +6882,11 @@ var Mu = {
6861
6882
  scrollPaddingX: g.spaceT(["scrollPaddingLeft", "scrollPaddingRight"]),
6862
6883
  scrollPaddingY: g.spaceT(["scrollPaddingTop", "scrollPaddingBottom"])
6863
6884
  };
6864
- function la(e) {
6885
+ function da(e) {
6865
6886
  return mt(e) && e.reference ? e.reference : String(e);
6866
6887
  }
6867
- var an = (e, ...t) => t.map(la).join(` ${e} `).replace(/calc/g, ""), Vi = (...e) => `calc(${an("+", ...e)})`, Yi = (...e) => `calc(${an("-", ...e)})`, bi = (...e) => `calc(${an("*", ...e)})`, Zi = (...e) => `calc(${an("/", ...e)})`, Qi = (e) => {
6868
- const t = la(e);
6888
+ var an = (e, ...t) => t.map(da).join(` ${e} `).replace(/calc/g, ""), Vi = (...e) => `calc(${an("+", ...e)})`, Yi = (...e) => `calc(${an("-", ...e)})`, bi = (...e) => `calc(${an("*", ...e)})`, Zi = (...e) => `calc(${an("/", ...e)})`, Qi = (e) => {
6889
+ const t = da(e);
6869
6890
  return t != null && !Number.isNaN(parseFloat(t)) ? String(t).startsWith("-") ? String(t).slice(1) : `-${t}` : bi(t, -1);
6870
6891
  }, ir = Object.assign(
6871
6892
  (e) => ({
@@ -6884,17 +6905,17 @@ var an = (e, ...t) => t.map(la).join(` ${e} `).replace(/calc/g, ""), Vi = (...e)
6884
6905
  negate: Qi
6885
6906
  }
6886
6907
  );
6887
- function zu(e) {
6908
+ function Xu(e) {
6888
6909
  const t = parseFloat(e.toString()), r = e.toString().replace(String(t), "");
6889
6910
  return { unitless: !r, value: t, unit: r };
6890
6911
  }
6891
6912
  function eo(e) {
6892
6913
  if (e == null)
6893
6914
  return e;
6894
- const { unitless: t } = zu(e);
6915
+ const { unitless: t } = Xu(e);
6895
6916
  return t || typeof e == "number" ? `${e}px` : e;
6896
6917
  }
6897
- function Ju(e, t) {
6918
+ function Gu(e, t) {
6898
6919
  const r = ["@media screen"];
6899
6920
  return e && r.push("and", `(min-width: ${eo(e)})`), t && r.push("and", `(max-width: ${eo(t)})`), r.join(" ");
6900
6921
  }
@@ -6911,7 +6932,7 @@ var re = {
6911
6932
  readOnly: (e, t) => `${e}:read-only ${t}, ${e}[readonly] ${t}, ${e}[data-read-only] ${t}`,
6912
6933
  expanded: (e, t) => `${e}:read-only ${t}, ${e}[aria-expanded=true] ${t}, ${e}[data-expanded] ${t}`,
6913
6934
  placeholderShown: (e, t) => `${e}:placeholder-shown ${t}`
6914
- }, Qe = (e) => ua((t) => e(t, "&"), "[role=group]", "[data-group]", ".group"), je = (e) => ua((t) => e(t, "~ &"), "[data-peer]", ".peer"), ua = (e, ...t) => t.map(e).join(", "), Ei = {
6935
+ }, Qe = (e) => la((t) => e(t, "&"), "[role=group]", "[data-group]", ".group"), je = (e) => la((t) => e(t, "~ &"), "[data-peer]", ".peer"), la = (e, ...t) => t.map(e).join(", "), Ei = {
6915
6936
  /**
6916
6937
  * Styles for CSS selector `&:hover`
6917
6938
  */
@@ -7199,32 +7220,32 @@ var re = {
7199
7220
  * Styles for the CSS Selector `&[data-orientation=vertical]`
7200
7221
  */
7201
7222
  _vertical: "&[data-orientation=vertical]"
7202
- }, Hu = Object.keys(
7223
+ }, Vu = Object.keys(
7203
7224
  Ei
7204
- ), Fi = We(
7225
+ ), Fi = qe(
7205
7226
  {},
7206
7227
  Kr,
7207
7228
  L,
7208
- Au,
7229
+ Eu,
7209
7230
  Jr,
7210
7231
  ye,
7211
- xu,
7212
- Uu,
7213
- ku,
7214
- da,
7215
- Bu,
7232
+ Fu,
7233
+ ju,
7234
+ Pu,
7235
+ ca,
7236
+ $u,
7216
7237
  or,
7217
7238
  vi,
7218
7239
  z,
7240
+ Hu,
7241
+ Ju,
7219
7242
  qu,
7220
7243
  Wu,
7221
- Mu,
7222
- $u,
7223
- Eu,
7224
- ju
7244
+ Du,
7245
+ zu
7225
7246
  );
7226
- Object.assign({}, z, ye, Jr, da, or);
7227
- var Xu = [...Object.keys(Fi), ...Hu], Gu = { ...Fi, ...Ei }, Vu = (e) => e in Gu, Yu = (e) => (t) => {
7247
+ Object.assign({}, z, ye, Jr, ca, or);
7248
+ var Yu = [...Object.keys(Fi), ...Vu], Zu = { ...Fi, ...Ei }, Qu = (e) => e in Zu, ep = (e) => (t) => {
7228
7249
  if (!t.__breakpoints)
7229
7250
  return e;
7230
7251
  const { isResponsive: r, toArrayValue: n, media: i } = t.__breakpoints, a = {};
@@ -7248,7 +7269,7 @@ var Xu = [...Object.keys(Fi), ...Hu], Gu = { ...Fi, ...Ei }, Vu = (e) => e in Gu
7248
7269
  }
7249
7270
  return a;
7250
7271
  };
7251
- function Zu(e) {
7272
+ function tp(e) {
7252
7273
  const t = [];
7253
7274
  let r = "", n = !1;
7254
7275
  for (let i = 0; i < e.length; i++) {
@@ -7257,10 +7278,10 @@ function Zu(e) {
7257
7278
  }
7258
7279
  return r = r.trim(), r && t.push(r), t;
7259
7280
  }
7260
- function Qu(e) {
7281
+ function rp(e) {
7261
7282
  return /^var\(--.+\)$/.test(e);
7262
7283
  }
7263
- var ep = (e, t) => e.startsWith("--") && typeof t == "string" && !Qu(t), tp = (e, t) => {
7284
+ var np = (e, t) => e.startsWith("--") && typeof t == "string" && !rp(t), ip = (e, t) => {
7264
7285
  var r, n;
7265
7286
  if (t == null)
7266
7287
  return t;
@@ -7270,21 +7291,21 @@ var ep = (e, t) => e.startsWith("--") && typeof t == "string" && !Qu(t), tp = (e
7270
7291
  }, a = (p) => {
7271
7292
  var h;
7272
7293
  return (h = i(p)) != null ? h : p;
7273
- }, [s, u] = Zu(t);
7294
+ }, [s, u] = tp(t);
7274
7295
  return t = (n = (r = i(s)) != null ? r : a(u)) != null ? n : a(t), t;
7275
7296
  };
7276
- function rp(e) {
7297
+ function op(e) {
7277
7298
  const { configs: t = {}, pseudos: r = {}, theme: n } = e, i = (a, s = !1) => {
7278
7299
  var u, p, h;
7279
- const m = gt(a, n), w = Yu(m)(n);
7300
+ const m = gt(a, n), w = ep(m)(n);
7280
7301
  let y = {};
7281
7302
  for (let I in w) {
7282
7303
  const b = w[I];
7283
7304
  let v = gt(b, n);
7284
- I in r && (I = r[I]), ep(I, v) && (v = tp(n, v));
7305
+ I in r && (I = r[I]), np(I, v) && (v = ip(n, v));
7285
7306
  let S = t[I];
7286
7307
  if (S === !0 && (S = { property: I }), mt(v)) {
7287
- y[I] = (u = y[I]) != null ? u : {}, y[I] = We(
7308
+ y[I] = (u = y[I]) != null ? u : {}, y[I] = qe(
7288
7309
  {},
7289
7310
  y[I],
7290
7311
  i(v, !0)
@@ -7296,7 +7317,7 @@ function rp(e) {
7296
7317
  const C = gt(S == null ? void 0 : S.property, n);
7297
7318
  if (!s && (S != null && S.static)) {
7298
7319
  const D = gt(S.static, n);
7299
- y = We({}, y, D);
7320
+ y = qe({}, y, D);
7300
7321
  }
7301
7322
  if (C && Array.isArray(C)) {
7302
7323
  for (const D of C)
@@ -7304,11 +7325,11 @@ function rp(e) {
7304
7325
  continue;
7305
7326
  }
7306
7327
  if (C) {
7307
- C === "&" && mt(R) ? y = We({}, y, R) : y[C] = R;
7328
+ C === "&" && mt(R) ? y = qe({}, y, R) : y[C] = R;
7308
7329
  continue;
7309
7330
  }
7310
7331
  if (mt(R)) {
7311
- y = We({}, y, R);
7332
+ y = qe({}, y, R);
7312
7333
  continue;
7313
7334
  }
7314
7335
  y[I] = R;
@@ -7317,12 +7338,12 @@ function rp(e) {
7317
7338
  };
7318
7339
  return i;
7319
7340
  }
7320
- var np = (e) => (t) => rp({
7341
+ var ap = (e) => (t) => op({
7321
7342
  theme: t,
7322
7343
  pseudos: Ei,
7323
7344
  configs: Fi
7324
7345
  })(e);
7325
- function ip(e, t) {
7346
+ function sp(e, t) {
7326
7347
  if (Array.isArray(e))
7327
7348
  return e;
7328
7349
  if (mt(e))
@@ -7330,35 +7351,35 @@ function ip(e, t) {
7330
7351
  if (e != null)
7331
7352
  return [e];
7332
7353
  }
7333
- function op(e, t) {
7354
+ function cp(e, t) {
7334
7355
  for (let r = t + 1; r < e.length; r++)
7335
7356
  if (e[r] != null)
7336
7357
  return r;
7337
7358
  return -1;
7338
7359
  }
7339
- function ap(e) {
7360
+ function dp(e) {
7340
7361
  const t = e.__breakpoints;
7341
7362
  return function(n, i, a, s) {
7342
7363
  var u, p;
7343
7364
  if (!t)
7344
7365
  return;
7345
- const h = {}, m = ip(a, t.toArrayValue);
7366
+ const h = {}, m = sp(a, t.toArrayValue);
7346
7367
  if (!m)
7347
7368
  return h;
7348
7369
  const w = m.length, y = w === 1, I = !!n.parts;
7349
7370
  for (let b = 0; b < w; b++) {
7350
- const v = t.details[b], S = t.details[op(m, b)], R = Ju(v.minW, S == null ? void 0 : S._minW), C = gt((u = n[i]) == null ? void 0 : u[m[b]], s);
7371
+ const v = t.details[b], S = t.details[cp(m, b)], R = Gu(v.minW, S == null ? void 0 : S._minW), C = gt((u = n[i]) == null ? void 0 : u[m[b]], s);
7351
7372
  if (C) {
7352
7373
  if (I) {
7353
7374
  (p = n.parts) == null || p.forEach((D) => {
7354
- We(h, {
7375
+ qe(h, {
7355
7376
  [D]: y ? C[D] : { [R]: C[D] }
7356
7377
  });
7357
7378
  });
7358
7379
  continue;
7359
7380
  }
7360
7381
  if (!I) {
7361
- y ? We(h, C) : h[R] = C;
7382
+ y ? qe(h, C) : h[R] = C;
7362
7383
  continue;
7363
7384
  }
7364
7385
  h[R] = C;
@@ -7367,11 +7388,11 @@ function ap(e) {
7367
7388
  return h;
7368
7389
  };
7369
7390
  }
7370
- function sp(e) {
7391
+ function lp(e) {
7371
7392
  return (t) => {
7372
7393
  var r;
7373
- const { variant: n, size: i, theme: a } = t, s = ap(a);
7374
- return We(
7394
+ const { variant: n, size: i, theme: a } = t, s = dp(a);
7395
+ return qe(
7375
7396
  {},
7376
7397
  gt((r = e.baseStyle) != null ? r : {}, t),
7377
7398
  s(e, "sizes", i, t),
@@ -7379,19 +7400,19 @@ function sp(e) {
7379
7400
  );
7380
7401
  };
7381
7402
  }
7382
- function cp(e, t) {
7403
+ function up(e, t) {
7383
7404
  const r = {};
7384
7405
  return Object.keys(e).forEach((n) => {
7385
7406
  t.includes(n) || (r[n] = e[n]);
7386
7407
  }), r;
7387
7408
  }
7388
- function dp(e, t, r, n) {
7409
+ function pp(e, t, r, n) {
7389
7410
  const i = typeof t == "string" ? t.split(".") : [t];
7390
7411
  for (n = 0; n < i.length && e; n += 1)
7391
7412
  e = e[i[n]];
7392
7413
  return e === void 0 ? r : e;
7393
7414
  }
7394
- var lp = (e) => {
7415
+ var fp = (e) => {
7395
7416
  const t = /* @__PURE__ */ new WeakMap();
7396
7417
  return (n, i, a, s) => {
7397
7418
  if (typeof n > "u")
@@ -7403,24 +7424,24 @@ var lp = (e) => {
7403
7424
  const p = e(n, i, a, s);
7404
7425
  return u.set(i, p), p;
7405
7426
  };
7406
- }, up = lp(dp);
7407
- function pa(e, t) {
7427
+ }, hp = fp(pp);
7428
+ function ua(e, t) {
7408
7429
  const r = {};
7409
7430
  return Object.keys(e).forEach((n) => {
7410
7431
  const i = e[n];
7411
7432
  t(i, n, e) && (r[n] = i);
7412
7433
  }), r;
7413
7434
  }
7414
- var fa = (e) => pa(e, (t) => t != null);
7415
- function pp(e) {
7435
+ var pa = (e) => ua(e, (t) => t != null);
7436
+ function gp(e) {
7416
7437
  return typeof e == "function";
7417
7438
  }
7418
7439
  process.env.NODE_ENV;
7419
7440
  process.env.NODE_ENV;
7420
- function fp(e, ...t) {
7421
- return pp(e) ? e(...t) : e;
7441
+ function mp(e, ...t) {
7442
+ return gp(e) ? e(...t) : e;
7422
7443
  }
7423
- var hp = typeof Element < "u", gp = typeof Map == "function", mp = typeof Set == "function", yp = typeof ArrayBuffer == "function" && !!ArrayBuffer.isView;
7444
+ var yp = typeof Element < "u", wp = typeof Map == "function", Ip = typeof Set == "function", vp = typeof ArrayBuffer == "function" && !!ArrayBuffer.isView;
7424
7445
  function Lr(e, t) {
7425
7446
  if (e === t) return !0;
7426
7447
  if (e && t && typeof e == "object" && typeof t == "object") {
@@ -7433,7 +7454,7 @@ function Lr(e, t) {
7433
7454
  return !0;
7434
7455
  }
7435
7456
  var a;
7436
- if (gp && e instanceof Map && t instanceof Map) {
7457
+ if (wp && e instanceof Map && t instanceof Map) {
7437
7458
  if (e.size !== t.size) return !1;
7438
7459
  for (a = e.entries(); !(n = a.next()).done; )
7439
7460
  if (!t.has(n.value[0])) return !1;
@@ -7441,13 +7462,13 @@ function Lr(e, t) {
7441
7462
  if (!Lr(n.value[1], t.get(n.value[0]))) return !1;
7442
7463
  return !0;
7443
7464
  }
7444
- if (mp && e instanceof Set && t instanceof Set) {
7465
+ if (Ip && e instanceof Set && t instanceof Set) {
7445
7466
  if (e.size !== t.size) return !1;
7446
7467
  for (a = e.entries(); !(n = a.next()).done; )
7447
7468
  if (!t.has(n.value[0])) return !1;
7448
7469
  return !0;
7449
7470
  }
7450
- if (yp && ArrayBuffer.isView(e) && ArrayBuffer.isView(t)) {
7471
+ if (vp && ArrayBuffer.isView(e) && ArrayBuffer.isView(t)) {
7451
7472
  if (r = e.length, r != t.length) return !1;
7452
7473
  for (n = r; n-- !== 0; )
7453
7474
  if (e[n] !== t[n]) return !1;
@@ -7459,7 +7480,7 @@ function Lr(e, t) {
7459
7480
  if (i = Object.keys(e), r = i.length, r !== Object.keys(t).length) return !1;
7460
7481
  for (n = r; n-- !== 0; )
7461
7482
  if (!Object.prototype.hasOwnProperty.call(t, i[n])) return !1;
7462
- if (hp && e instanceof Element) return !1;
7483
+ if (yp && e instanceof Element) return !1;
7463
7484
  for (n = r; n-- !== 0; )
7464
7485
  if (!((i[n] === "_owner" || i[n] === "__v" || i[n] === "__o") && e.$$typeof) && !Lr(e[i[n]], t[i[n]]))
7465
7486
  return !1;
@@ -7467,7 +7488,7 @@ function Lr(e, t) {
7467
7488
  }
7468
7489
  return e !== e && t !== t;
7469
7490
  }
7470
- var wp = function(t, r) {
7491
+ var bp = function(t, r) {
7471
7492
  try {
7472
7493
  return Lr(t, r);
7473
7494
  } catch (n) {
@@ -7476,25 +7497,25 @@ var wp = function(t, r) {
7476
7497
  throw n;
7477
7498
  }
7478
7499
  };
7479
- const Ip = /* @__PURE__ */ Ni(wp);
7480
- function vp(e, t = {}) {
7500
+ const Sp = /* @__PURE__ */ Ni(bp);
7501
+ function Op(e, t = {}) {
7481
7502
  var r;
7482
- const { styleConfig: n, ...i } = t, { theme: a, colorMode: s } = du(), u = up(a, `components.${e}`), p = n || u, h = We(
7503
+ const { styleConfig: n, ...i } = t, { theme: a, colorMode: s } = pu(), u = hp(a, `components.${e}`), p = n || u, h = qe(
7483
7504
  { theme: a, colorMode: s },
7484
7505
  (r = p == null ? void 0 : p.defaultProps) != null ? r : {},
7485
- fa(cp(i, ["children"]))
7486
- ), m = ya({});
7506
+ pa(up(i, ["children"]))
7507
+ ), m = ma({});
7487
7508
  if (p) {
7488
- const y = sp(p)(h);
7489
- Ip(m.current, y) || (m.current = y);
7509
+ const y = lp(p)(h);
7510
+ Sp(m.current, y) || (m.current = y);
7490
7511
  }
7491
7512
  return m.current;
7492
7513
  }
7493
- function bp(e, t = {}) {
7494
- return vp(e, t);
7514
+ function Cp(e, t = {}) {
7515
+ return Op(e, t);
7495
7516
  }
7496
- var Sp = /* @__PURE__ */ new Set([
7497
- ...Xu,
7517
+ var Np = /* @__PURE__ */ new Set([
7518
+ ...Yu,
7498
7519
  "textStyle",
7499
7520
  "layerStyle",
7500
7521
  "apply",
@@ -7505,16 +7526,16 @@ var Sp = /* @__PURE__ */ new Set([
7505
7526
  "__css",
7506
7527
  "css",
7507
7528
  "sx"
7508
- ]), Op = /* @__PURE__ */ new Set([
7529
+ ]), Tp = /* @__PURE__ */ new Set([
7509
7530
  "htmlWidth",
7510
7531
  "htmlHeight",
7511
7532
  "htmlSize",
7512
7533
  "htmlTranslate"
7513
7534
  ]);
7514
- function Cp(e) {
7515
- return Op.has(e) || !Sp.has(e);
7535
+ function Rp(e) {
7536
+ return Tp.has(e) || !Np.has(e);
7516
7537
  }
7517
- function Np(e, ...t) {
7538
+ function _p(e, ...t) {
7518
7539
  if (e == null)
7519
7540
  throw new TypeError("Cannot convert undefined or null to object");
7520
7541
  const r = { ...e };
@@ -7524,25 +7545,25 @@ function Np(e, ...t) {
7524
7545
  Object.prototype.hasOwnProperty.call(n, i) && (i in r && delete r[i], r[i] = n[i]);
7525
7546
  return r;
7526
7547
  }
7527
- var to, Tp = (to = Di.default) != null ? to : Di, Rp = ({ baseStyle: e }) => (t) => {
7528
- const { theme: r, css: n, __css: i, sx: a, ...s } = t, u = pa(s, (w, y) => Vu(y)), p = fp(e, t), h = Np(
7548
+ var to, Ap = (to = Di.default) != null ? to : Di, xp = ({ baseStyle: e }) => (t) => {
7549
+ const { theme: r, css: n, __css: i, sx: a, ...s } = t, u = ua(s, (w, y) => Qu(y)), p = mp(e, t), h = _p(
7529
7550
  {},
7530
7551
  i,
7531
7552
  p,
7532
- fa(u),
7553
+ pa(u),
7533
7554
  a
7534
- ), m = np(h)(t.theme);
7555
+ ), m = ap(h)(t.theme);
7535
7556
  return n ? [m, n] : m;
7536
7557
  };
7537
7558
  function li(e, t) {
7538
7559
  const { baseStyle: r, ...n } = t ?? {};
7539
- n.shouldForwardProp || (n.shouldForwardProp = Cp);
7540
- const i = Rp({ baseStyle: r }), a = Tp(
7560
+ n.shouldForwardProp || (n.shouldForwardProp = Rp);
7561
+ const i = xp({ baseStyle: r }), a = Ap(
7541
7562
  e,
7542
7563
  n
7543
7564
  )(i);
7544
7565
  return Br.forwardRef(function(p, h) {
7545
- const { colorMode: m, forced: w } = sa();
7566
+ const { colorMode: m, forced: w } = aa();
7546
7567
  return Br.createElement(a, {
7547
7568
  ref: h,
7548
7569
  "data-theme": w ? m : void 0,
@@ -7550,7 +7571,7 @@ function li(e, t) {
7550
7571
  });
7551
7572
  });
7552
7573
  }
7553
- function _p() {
7574
+ function kp() {
7554
7575
  const e = /* @__PURE__ */ new Map();
7555
7576
  return new Proxy(li, {
7556
7577
  /**
@@ -7570,8 +7591,8 @@ function _p() {
7570
7591
  }
7571
7592
  });
7572
7593
  }
7573
- var ro = _p();
7574
- function ha(e) {
7594
+ var ro = kp();
7595
+ function fa(e) {
7575
7596
  return Si(e);
7576
7597
  }
7577
7598
  var no = {
@@ -7595,7 +7616,7 @@ var no = {
7595
7616
  /* @__PURE__ */ l("circle", { fill: "none", strokeMiterlimit: "10", cx: "12", cy: "12", r: "11.25" })
7596
7617
  ] }),
7597
7618
  viewBox: "0 0 24 24"
7598
- }, ga = ha((e, t) => {
7619
+ }, ha = fa((e, t) => {
7599
7620
  const {
7600
7621
  as: r,
7601
7622
  viewBox: n,
@@ -7605,7 +7626,7 @@ var no = {
7605
7626
  className: u,
7606
7627
  __css: p,
7607
7628
  ...h
7608
- } = e, m = lu("chakra-icon", u), w = bp("Icon", e), y = {
7629
+ } = e, m = fu("chakra-icon", u), w = Cp("Icon", e), y = {
7609
7630
  w: "1em",
7610
7631
  h: "1em",
7611
7632
  display: "inline-block",
@@ -7625,17 +7646,17 @@ var no = {
7625
7646
  const v = s ?? no.path;
7626
7647
  return /* @__PURE__ */ l(ro.svg, { verticalAlign: "middle", viewBox: b, ...I, ...h, children: v });
7627
7648
  });
7628
- ga.displayName = "Icon";
7629
- function Ap(e) {
7649
+ ha.displayName = "Icon";
7650
+ function Ep(e) {
7630
7651
  const {
7631
7652
  viewBox: t = "0 0 24 24",
7632
7653
  d: r,
7633
7654
  displayName: n,
7634
7655
  defaultProps: i = {}
7635
- } = e, a = wa.toArray(e.path), s = ha((u, p) => /* @__PURE__ */ l(ga, { ref: p, viewBox: t, ...i, ...u, children: a.length ? a : /* @__PURE__ */ l("path", { fill: "currentColor", d: r }) }));
7656
+ } = e, a = ya.toArray(e.path), s = fa((u, p) => /* @__PURE__ */ l(ha, { ref: p, viewBox: t, ...i, ...u, children: a.length ? a : /* @__PURE__ */ l("path", { fill: "currentColor", d: r }) }));
7636
7657
  return s.displayName = n, s;
7637
7658
  }
7638
- var xp = Ap({
7659
+ var Fp = Ep({
7639
7660
  displayName: "ExternalLinkIcon",
7640
7661
  path: /* @__PURE__ */ A("g", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeWidth: "2", children: [
7641
7662
  /* @__PURE__ */ l("path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6" }),
@@ -7643,8 +7664,8 @@ var xp = Ap({
7643
7664
  /* @__PURE__ */ l("path", { d: "M10 14L21 3" })
7644
7665
  ] })
7645
7666
  });
7646
- const kp = "https://help.salesforce.com/s/articleView?id=sf.faq_domain_name_what.htm&type=5";
7647
- function Ep({
7667
+ const Pp = "https://help.salesforce.com/s/articleView?id=sf.faq_domain_name_what.htm&type=5";
7668
+ function Dp({
7648
7669
  handleSubmit: e,
7649
7670
  setWorkspace: t,
7650
7671
  error: r,
@@ -7652,9 +7673,9 @@ function Ep({
7652
7673
  }) {
7653
7674
  return /* @__PURE__ */ l(lr, { children: /* @__PURE__ */ A(He, { children: [
7654
7675
  /* @__PURE__ */ l(rt, { marginTop: "16", marginBottom: "0", children: /* @__PURE__ */ l(Je, { as: "h4", size: "md", children: "Enter your Salesforce subdomain" }) }),
7655
- /* @__PURE__ */ A(so, { href: kp, color: "blackAlpha.600", isExternal: !0, children: [
7676
+ /* @__PURE__ */ A(so, { href: Pp, color: "blackAlpha.600", isExternal: !0, children: [
7656
7677
  "What is my Salesforce subdomain?",
7657
- /* @__PURE__ */ l(xp, { mx: "2px" })
7678
+ /* @__PURE__ */ l(Fp, { mx: "2px" })
7658
7679
  ] }),
7659
7680
  /* @__PURE__ */ l(ur, { error: r }),
7660
7681
  /* @__PURE__ */ A(Ur, { marginTop: "1em", children: [
@@ -7680,7 +7701,7 @@ function Ep({
7680
7701
  )
7681
7702
  ] }) });
7682
7703
  }
7683
- function Fp({
7704
+ function Kp({
7684
7705
  handleSubmit: e,
7685
7706
  setWorkspace: t,
7686
7707
  error: r,
@@ -7714,8 +7735,8 @@ function Fp({
7714
7735
  )
7715
7736
  ] }) });
7716
7737
  }
7717
- const Pp = "salesforce";
7718
- function Dp({
7738
+ const Lp = "salesforce";
7739
+ function Bp({
7719
7740
  provider: e,
7720
7741
  consumerRef: t,
7721
7742
  consumerName: r,
@@ -7729,7 +7750,7 @@ function Dp({
7729
7750
  return;
7730
7751
  }
7731
7752
  try {
7732
- const R = await ia(
7753
+ const R = await na(
7733
7754
  s,
7734
7755
  t,
7735
7756
  n,
@@ -7745,8 +7766,8 @@ function Dp({
7745
7766
  }
7746
7767
  }, v = Q((R) => {
7747
7768
  I(R), w(null);
7748
- }, []), S = e === Pp ? /* @__PURE__ */ l(
7749
- Ep,
7769
+ }, []), S = e === Lp ? /* @__PURE__ */ l(
7770
+ Dp,
7750
7771
  {
7751
7772
  handleSubmit: b,
7752
7773
  setWorkspace: h,
@@ -7756,7 +7777,7 @@ function Dp({
7756
7777
  ) : (
7757
7778
  // general workspace entry component
7758
7779
  /* @__PURE__ */ l(
7759
- Fp,
7780
+ Kp,
7760
7781
  {
7761
7782
  handleSubmit: b,
7762
7783
  setWorkspace: h,
@@ -7767,7 +7788,7 @@ function Dp({
7767
7788
  )
7768
7789
  );
7769
7790
  return /* @__PURE__ */ l(
7770
- oa,
7791
+ ia,
7771
7792
  {
7772
7793
  windowTitle: `Connect to ${a}`,
7773
7794
  oauthUrl: m,
@@ -7776,8 +7797,8 @@ function Dp({
7776
7797
  }
7777
7798
  );
7778
7799
  }
7779
- const Kp = "authorizationCode", Lp = "clientCredentials";
7780
- function Bp({
7800
+ const Up = "authorizationCode", Mp = "clientCredentials";
7801
+ function $p({
7781
7802
  provider: e,
7782
7803
  providerInfo: t,
7783
7804
  consumerRef: r,
@@ -7790,8 +7811,8 @@ function Bp({
7790
7811
  if (t.oauth2Opts === void 0)
7791
7812
  return /* @__PURE__ */ l("em", { children: "Provider is missing OAuth2 options" });
7792
7813
  const { grantType: p, explicitScopesRequired: h, explicitWorkspaceRequired: m } = t.oauth2Opts, w = vt(e, t);
7793
- return p === Kp ? m ? /* @__PURE__ */ l(
7794
- Dp,
7814
+ return p === Up ? m ? /* @__PURE__ */ l(
7815
+ Bp,
7795
7816
  {
7796
7817
  provider: e,
7797
7818
  consumerRef: r,
@@ -7801,7 +7822,7 @@ function Bp({
7801
7822
  providerName: w
7802
7823
  }
7803
7824
  ) : /* @__PURE__ */ l(
7804
- ou,
7825
+ cu,
7805
7826
  {
7806
7827
  provider: e,
7807
7828
  consumerRef: r,
@@ -7810,8 +7831,8 @@ function Bp({
7810
7831
  groupName: a,
7811
7832
  providerName: w
7812
7833
  }
7813
- ) : p === Lp ? m ? /* @__PURE__ */ l(
7814
- su,
7834
+ ) : p === Mp ? m ? /* @__PURE__ */ l(
7835
+ lu,
7815
7836
  {
7816
7837
  provider: e,
7817
7838
  consumerRef: r,
@@ -7824,7 +7845,7 @@ function Bp({
7824
7845
  providerName: w
7825
7846
  }
7826
7847
  ) : /* @__PURE__ */ l(
7827
- Zl,
7848
+ tu,
7828
7849
  {
7829
7850
  provider: e,
7830
7851
  consumerRef: r,
@@ -7841,7 +7862,7 @@ function Bp({
7841
7862
  p
7842
7863
  ] });
7843
7864
  }
7844
- const Up = async (e, t) => {
7865
+ const jp = async (e, t) => {
7845
7866
  const r = await X().providerApi.getProvider({ provider: t }, {
7846
7867
  headers: { "X-Api-Key": e ?? "" }
7847
7868
  });
@@ -7849,7 +7870,7 @@ const Up = async (e, t) => {
7849
7870
  throw new Error(`Provider ${t} not found`);
7850
7871
  return r;
7851
7872
  };
7852
- function ma({
7873
+ function ga({
7853
7874
  provider: e,
7854
7875
  consumerRef: t,
7855
7876
  consumerName: r,
@@ -7859,14 +7880,14 @@ function ma({
7859
7880
  onSuccess: s
7860
7881
  }) {
7861
7882
  const u = te(), [p, h] = k(null), { provider: m } = Ke(), { selectedConnection: w, setSelectedConnection: y, connections: I } = Lt();
7862
- Jl({ onSuccess: s });
7863
- const b = e || m, v = (p == null ? void 0 : p.displayName) ?? To(b);
7883
+ Gl({ onSuccess: s });
7884
+ const b = e || m, v = (p == null ? void 0 : p.displayName) ?? No(b);
7864
7885
  if (Y(() => {
7865
7886
  if (!w && I && I.length > 0) {
7866
7887
  const [S] = I;
7867
7888
  y(S);
7868
7889
  }
7869
- Up(u, b).then((S) => {
7890
+ jp(u, b).then((S) => {
7870
7891
  h(S);
7871
7892
  }).catch((S) => {
7872
7893
  console.error("Error loading provider info: ", S);
@@ -7874,7 +7895,7 @@ function ma({
7874
7895
  }, [I, w, y, u, b]), !e && !m)
7875
7896
  throw new Error("ProtectedConnectionLayout must be given a provider prop or be used within InstallIntegrationProvider");
7876
7897
  return w ? a : p == null ? /* @__PURE__ */ l("strong", { children: "Provider not found" }) : p.authType === "none" ? /* @__PURE__ */ l(
7877
- Vl,
7898
+ Ql,
7878
7899
  {
7879
7900
  provider: b,
7880
7901
  consumerRef: t,
@@ -7887,7 +7908,7 @@ function ma({
7887
7908
  children: a
7888
7909
  }
7889
7910
  ) : p.authType === "basic" ? /* @__PURE__ */ l(
7890
- ql,
7911
+ Hl,
7891
7912
  {
7892
7913
  provider: b,
7893
7914
  providerInfo: p,
@@ -7900,7 +7921,7 @@ function ma({
7900
7921
  children: a
7901
7922
  }
7902
7923
  ) : p.authType === "apiKey" ? /* @__PURE__ */ l(
7903
- Ml,
7924
+ ql,
7904
7925
  {
7905
7926
  provider: b,
7906
7927
  providerInfo: p,
@@ -7913,7 +7934,7 @@ function ma({
7913
7934
  children: a
7914
7935
  }
7915
7936
  ) : /* @__PURE__ */ l(
7916
- Bp,
7937
+ $p,
7917
7938
  {
7918
7939
  provider: b,
7919
7940
  providerInfo: p,
@@ -7926,7 +7947,7 @@ function ma({
7926
7947
  }
7927
7948
  );
7928
7949
  }
7929
- function Gp({
7950
+ function Zp({
7930
7951
  integration: e,
7931
7952
  consumerRef: t,
7932
7953
  consumerName: r,
@@ -7937,10 +7958,10 @@ function Gp({
7937
7958
  }) {
7938
7959
  var h;
7939
7960
  const { projectId: u } = ee(), { errorState: p } = nt();
7940
- return (h = p[Z.INTEGRATION_LIST]) != null && h.apiError ? /* @__PURE__ */ l(qe, { message: "Something went wrong, couldn't find integration information" }) : (
7961
+ return (h = p[Z.INTEGRATION_LIST]) != null && h.apiError ? /* @__PURE__ */ l(We, { message: "Something went wrong, couldn't find integration information" }) : (
7941
7962
  // install integration provider provides all props, integrationObj and installation
7942
7963
  /* @__PURE__ */ l(
7943
- Rd,
7964
+ xd,
7944
7965
  {
7945
7966
  integration: e,
7946
7967
  consumerRef: t,
@@ -7949,30 +7970,30 @@ function Gp({
7949
7970
  groupName: i,
7950
7971
  onInstallSuccess: a,
7951
7972
  onUpdateSuccess: s,
7952
- children: /* @__PURE__ */ l(xo, { groupRef: n, children: /* @__PURE__ */ l(
7953
- ma,
7973
+ children: /* @__PURE__ */ l(Ao, { groupRef: n, children: /* @__PURE__ */ l(
7974
+ ga,
7954
7975
  {
7955
7976
  consumerRef: t,
7956
7977
  consumerName: r,
7957
7978
  groupRef: n,
7958
7979
  groupName: i,
7959
- children: /* @__PURE__ */ l(Hd, { projectId: u, children: /* @__PURE__ */ l(Kl, { children: /* @__PURE__ */ l(al, { children: /* @__PURE__ */ l(ul, { children: /* @__PURE__ */ l(xl, {}) }) }) }) })
7980
+ children: /* @__PURE__ */ l(Vd, { projectId: u, children: /* @__PURE__ */ l(Ul, { children: /* @__PURE__ */ l(dl, { children: /* @__PURE__ */ l(hl, { children: /* @__PURE__ */ l(Fl, {}) }) }) }) })
7960
7981
  }
7961
7982
  ) })
7962
7983
  }
7963
7984
  )
7964
7985
  );
7965
7986
  }
7966
- function Mp({ redirectURL: e, children: t }) {
7987
+ function qp({ redirectURL: e, children: t }) {
7967
7988
  return Y(() => {
7968
7989
  e && window.location.replace(e);
7969
7990
  }, [e]), e ? /* @__PURE__ */ l(J, { display: "flex", alignItems: "center", justifyContent: "center", children: /* @__PURE__ */ l(De, { message: "Redirecting..." }) }) : t;
7970
7991
  }
7971
- function $p({ provider: e }) {
7992
+ function Wp({ provider: e }) {
7972
7993
  const { appName: t } = ee(), r = `You have successfully connected your ${vt(e)} account to ${t}.`;
7973
- return /* @__PURE__ */ l(ra, { text: r });
7994
+ return /* @__PURE__ */ l(ta, { text: r });
7974
7995
  }
7975
- function Vp({
7996
+ function Qp({
7976
7997
  provider: e,
7977
7998
  consumerRef: t,
7978
7999
  consumerName: r,
@@ -7981,8 +8002,8 @@ function Vp({
7981
8002
  redirectUrl: a,
7982
8003
  onSuccess: s
7983
8004
  }) {
7984
- return /* @__PURE__ */ l(xo, { provider: e, groupRef: n, children: /* @__PURE__ */ l(
7985
- ma,
8005
+ return /* @__PURE__ */ l(Ao, { provider: e, groupRef: n, children: /* @__PURE__ */ l(
8006
+ ga,
7986
8007
  {
7987
8008
  provider: e,
7988
8009
  consumerRef: t,
@@ -7990,12 +8011,12 @@ function Vp({
7990
8011
  groupRef: n,
7991
8012
  groupName: i,
7992
8013
  onSuccess: s,
7993
- children: /* @__PURE__ */ l(Mp, { redirectURL: a, children: /* @__PURE__ */ l($p, { provider: e }) })
8014
+ children: /* @__PURE__ */ l(qp, { redirectURL: a, children: /* @__PURE__ */ l(Wp, { provider: e }) })
7994
8015
  }
7995
8016
  ) });
7996
8017
  }
7997
- const Yp = (e, t) => {
7998
- const r = te(), { projectId: n } = ee(), { integrations: i } = Co(), [a, s] = k(!1), [u, p] = k(null);
8018
+ const ef = (e, t) => {
8019
+ const r = te(), { projectId: n } = ee(), { integrations: i } = Oo(), [a, s] = k(!1), [u, p] = k(null);
7999
8020
  if (!r || !n)
8000
8021
  throw new Error("useIsIntegrationInstalled must be used within AmpersandProvider");
8001
8022
  if (!e)
@@ -8023,10 +8044,10 @@ const Yp = (e, t) => {
8023
8044
  }, [t, r, n, h]), { isLoaded: a, isIntegrationInstalled: u };
8024
8045
  };
8025
8046
  export {
8026
- Nd as AmpersandContext,
8027
- Hp as AmpersandProvider,
8028
- Vp as ConnectProvider,
8029
- Gp as InstallIntegration,
8030
- Xp as useAmpersandProvider,
8031
- Yp as useIsIntegrationInstalled
8047
+ _d as AmpersandContext,
8048
+ Vp as AmpersandProvider,
8049
+ Qp as ConnectProvider,
8050
+ Zp as InstallIntegration,
8051
+ Yp as useAmpersandProvider,
8052
+ ef as useIsIntegrationInstalled
8032
8053
  };