@livechat/platform-workflows 0.0.18 → 0.0.20

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.
package/dist/index.js CHANGED
@@ -508,7 +508,6 @@ function getWorkflowsConfig() {
508
508
  githubOauthClientId: isProd ? "ebbb08fa2c26d3e7911d" : "bcffd61bd0edd23bca45",
509
509
  hubpotClientId: isProd ? "0ea9fd9a-711f-46c5-b2d3-2eded08c9e4e" : "9364c554-2d76-4bd8-afe0-a376779391fb",
510
510
  mailchimpClientId: isProd ? "422176034316" : "909176593632",
511
- neonClientId: isProd ? "textdotcom" : "textdotcom",
512
511
  netlifyClientId: isProd ? "qUoHYb2DdVwKxot9Gc7URTdsZQYHYaumykjkv5K3_Mw" : "vDmNXNN9rTkZJtCwOHot2IKOherrm8t7gGA5kStotlo",
513
512
  shopifyClientId: isProd ? "8eea1c48bad9a2172515036a332ee612" : "406be223b8445696dfe64d86c17eb3ed",
514
513
  vercelClientId: isProd ? "oac_0nV7q5jDmCQKqpwEdGljaaLp" : "oac_bgwv72AO8fJWj8I9qIROY7wI",
@@ -547,10 +546,6 @@ function AuthProvider({ children }) {
547
546
  raw: {},
548
547
  data: {}
549
548
  },
550
- neon: {
551
- raw: {},
552
- data: {}
553
- },
554
549
  mailchimp: {
555
550
  raw: {},
556
551
  data: {}
@@ -598,12 +593,6 @@ function AuthProvider({ children }) {
598
593
  },
599
594
  data: {}
600
595
  },
601
- neon: {
602
- raw: {
603
- token: JSON.parse(localStorage.getItem("neon.token") || '""')
604
- },
605
- data: {}
606
- },
607
596
  mailchimp: {
608
597
  raw: {
609
598
  token: JSON.parse(localStorage.getItem("mailchimp.token") || '""'),
@@ -697,22 +686,6 @@ function AuthProvider({ children }) {
697
686
  }));
698
687
  break;
699
688
  }
700
- case import_developer_studio_api.IntegrationNames.Neon: {
701
- localStorage.setItem(`neon.token`, JSON.stringify(data.token));
702
- (0, import_developer_studio_api.updateNeonClient)(data.token);
703
- (0, import_developer_studio_api.updatePlatformAdapterClient)({
704
- neon: data
705
- });
706
- setState((prevState) => __spreadProps(__spreadValues({}, prevState), {
707
- neon: __spreadProps(__spreadValues({}, prevState.neon), {
708
- raw: data,
709
- data: {
710
- isAuthorized: Boolean(data.token)
711
- }
712
- })
713
- }));
714
- break;
715
- }
716
689
  case import_developer_studio_api.IntegrationNames.Mailchimp: {
717
690
  localStorage.setItem(`mailchimp.token`, JSON.stringify(data.token));
718
691
  localStorage.setItem(`mailchimp.server`, JSON.stringify(data.server));
@@ -833,17 +806,6 @@ function AuthProvider({ children }) {
833
806
  }));
834
807
  break;
835
808
  }
836
- case import_developer_studio_api.IntegrationNames.Neon: {
837
- localStorage.removeItem(`neon.token`);
838
- setState((prevState) => __spreadProps(__spreadValues({}, prevState), {
839
- neon: __spreadProps(__spreadValues({}, prevState.neon), {
840
- raw: __spreadProps(__spreadValues({}, prevState.neon.raw), {
841
- token: void 0
842
- })
843
- })
844
- }));
845
- break;
846
- }
847
809
  case import_developer_studio_api.IntegrationNames.Mailchimp: {
848
810
  localStorage.removeItem(`mailchimp.token`);
849
811
  localStorage.removeItem(`mailchimp.server`);
@@ -919,9 +881,6 @@ function AuthProvider({ children }) {
919
881
  if (state.vercel.raw.token) {
920
882
  (0, import_developer_studio_api.updateVercelClient)(state.vercel.raw.token);
921
883
  }
922
- if (state.neon.raw.token) {
923
- (0, import_developer_studio_api.updateNeonClient)(state.neon.raw.token);
924
- }
925
884
  if (state.mailchimp.raw.token) {
926
885
  (0, import_developer_studio_api.updateMailchimpClient)(state.mailchimp.raw.token);
927
886
  }
@@ -941,7 +900,6 @@ function AuthProvider({ children }) {
941
900
  github: state.github.raw,
942
901
  netlify: state.netlify.raw,
943
902
  vercel: state.vercel.raw,
944
- neon: state.neon.raw,
945
903
  mailchimp: state.mailchimp.raw,
946
904
  shopify: state.shopify.raw,
947
905
  hubspot: state.hubspot.raw,
@@ -964,11 +922,6 @@ function AuthProvider({ children }) {
964
922
  isAuthorized: Boolean(prevState.vercel.raw.token)
965
923
  })
966
924
  }),
967
- neon: __spreadProps(__spreadValues({}, prevState.neon), {
968
- data: __spreadProps(__spreadValues({}, prevState.neon.data), {
969
- isAuthorized: Boolean(prevState.neon.raw.token)
970
- })
971
- }),
972
925
  mailchimp: __spreadProps(__spreadValues({}, prevState.mailchimp), {
973
926
  data: __spreadProps(__spreadValues({}, prevState.mailchimp.data), {
974
927
  isAuthorized: Boolean(prevState.mailchimp.raw.token) && Boolean(prevState.mailchimp.raw.server)
@@ -999,7 +952,6 @@ function AuthProvider({ children }) {
999
952
  state.github.raw,
1000
953
  state.netlify.raw,
1001
954
  state.vercel.raw,
1002
- state.neon.raw,
1003
955
  state.mailchimp.raw,
1004
956
  state.shopify.raw,
1005
957
  state.hubspot.raw,
@@ -1114,7 +1066,6 @@ function getWorkflowsConfig2() {
1114
1066
  githubOauthClientId: isProd ? "ebbb08fa2c26d3e7911d" : "bcffd61bd0edd23bca45",
1115
1067
  hubpotClientId: isProd ? "0ea9fd9a-711f-46c5-b2d3-2eded08c9e4e" : "9364c554-2d76-4bd8-afe0-a376779391fb",
1116
1068
  mailchimpClientId: isProd ? "422176034316" : "909176593632",
1117
- neonClientId: isProd ? "textdotcom" : "textdotcom",
1118
1069
  netlifyClientId: isProd ? "qUoHYb2DdVwKxot9Gc7URTdsZQYHYaumykjkv5K3_Mw" : "vDmNXNN9rTkZJtCwOHot2IKOherrm8t7gGA5kStotlo",
1119
1070
  shopifyClientId: isProd ? "8eea1c48bad9a2172515036a332ee612" : "406be223b8445696dfe64d86c17eb3ed",
1120
1071
  vercelClientId: isProd ? "oac_0nV7q5jDmCQKqpwEdGljaaLp" : "oac_bgwv72AO8fJWj8I9qIROY7wI",
@@ -24917,11 +24868,6 @@ var import_react_router_dom32 = require("react-router-dom");
24917
24868
  var import_design_system_icons46 = require("@livechat/design-system-icons");
24918
24869
  var import_design_system_react_components88 = require("@livechat/design-system-react-components");
24919
24870
  var import_developer_studio_ui_react60 = require("@livechat/developer-studio-ui-react");
24920
-
24921
- // src/assets/flows/workflows-presentation.png
24922
- var workflows_presentation_default = "./workflows-presentation-EFFOQNV2.png";
24923
-
24924
- // src/views/Flows/Waitlist/index.tsx
24925
24871
  var config13 = getWorkflowsConfig2();
24926
24872
  var infoCss = css`
24927
24873
  display: flex;
@@ -24932,12 +24878,22 @@ var infoCss = css`
24932
24878
  }
24933
24879
  `;
24934
24880
  var imgContainerCss = css`
24935
- width: 100%;
24881
+ position: relative;
24936
24882
  display: flex;
24937
24883
  justify-content: center;
24938
24884
  margin-top: var(${import_design_system_react_components88.SpacingToken.Spacing10});
24885
+
24886
+ img {
24887
+ height: auto;
24888
+ max-width: 100%;
24889
+ margin-bottom: var(${import_design_system_react_components88.SpacingToken.Spacing10});
24890
+
24891
+ @media (min-width: 1080px) {
24892
+ margin-bottom: 0;
24893
+ }
24894
+ }
24939
24895
  `;
24940
- var Waitlist = () => {
24896
+ function Waitlist({ image }) {
24941
24897
  const {
24942
24898
  userData: { user, isLoading }
24943
24899
  } = (0, import_developer_studio_ui_react60.useRootContext)();
@@ -24952,52 +24908,52 @@ var Waitlist = () => {
24952
24908
  return /* @__PURE__ */ jsx4(import_developer_studio_ui_react60.Loader, { stretch: true });
24953
24909
  }
24954
24910
  return /* @__PURE__ */ jsxs2(import_developer_studio_ui_react60.View, { children: [
24955
- /* @__PURE__ */ jsx4(import_developer_studio_ui_react60.Row, { topMargin: true, verticalCenter: true, noMaxWidth: true, children: /* @__PURE__ */ jsx4(import_developer_studio_ui_react60.Column, { center: true, children: /* @__PURE__ */ jsx4(
24911
+ /* @__PURE__ */ jsx4(import_developer_studio_ui_react60.Row, { noMaxWidth: true, topMargin: true, verticalCenter: true, children: /* @__PURE__ */ jsx4(import_developer_studio_ui_react60.Column, { center: true, children: /* @__PURE__ */ jsx4(
24956
24912
  import_developer_studio_ui_react60.Intro,
24957
24913
  {
24914
+ body: "No-code setup to streamline tasks you would otherwise do manually",
24915
+ center: true,
24958
24916
  header: /* @__PURE__ */ jsx4(import_developer_studio_ui_react60.Column, { notPadded: true, stretch: true, width: 4, children: /* @__PURE__ */ jsx4(
24959
24917
  import_developer_studio_ui_react60.Row,
24960
24918
  {
24961
- notPadded: true,
24962
- verticalCenter: true,
24963
24919
  center: true,
24964
24920
  gap: `var(${import_design_system_react_components88.SpacingToken.Spacing2})`,
24921
+ notPadded: true,
24922
+ verticalCenter: true,
24965
24923
  children: "Connect all of your tools and fully automate manual, routine tasks."
24966
24924
  }
24967
24925
  ) }),
24968
- body: "No-code setup to streamline tasks you would otherwise do manually",
24969
- center: true,
24970
24926
  noMaxWidth: true
24971
24927
  }
24972
24928
  ) }) }),
24973
- /* @__PURE__ */ jsxs2(import_developer_studio_ui_react60.Row, { verticalCenter: true, gap: 8, topMargin: true, noMaxWidth: true, children: [
24929
+ /* @__PURE__ */ jsxs2(import_developer_studio_ui_react60.Row, { gap: 8, noMaxWidth: true, topMargin: true, verticalCenter: true, children: [
24974
24930
  /* @__PURE__ */ jsx4(
24975
24931
  import_design_system_react_components88.Button,
24976
24932
  {
24977
- kind: "high-contrast",
24978
- href: config13.platformUrl + "/workflows#join",
24979
24933
  css: css`
24980
24934
  &:hover {
24981
24935
  color: var(${import_design_system_react_components88.DesignToken.ContentInvertPrimary});
24982
24936
  }
24983
24937
  `,
24984
- target: "_blank",
24938
+ href: `${config13.platformUrl}/workflows#join`,
24939
+ kind: "high-contrast",
24985
24940
  rel: "noopener noreferrer",
24941
+ target: "_blank",
24986
24942
  children: "Join waitlist"
24987
24943
  }
24988
24944
  ),
24989
24945
  /* @__PURE__ */ jsx4(
24990
24946
  import_design_system_react_components88.Button,
24991
24947
  {
24948
+ href: `${config13.platformUrl}/workflows`,
24992
24949
  kind: "plain",
24993
- href: config13.platformUrl + "/workflows",
24994
- target: "_blank",
24995
24950
  rel: "noopener noreferrer",
24951
+ target: "_blank",
24996
24952
  children: "Learn more"
24997
24953
  }
24998
24954
  )
24999
24955
  ] }),
25000
- /* @__PURE__ */ jsxs2(import_developer_studio_ui_react60.Row, { verticalCenter: true, gap: 8, topMargin: true, lowMargin: true, noMaxWidth: true, children: [
24956
+ /* @__PURE__ */ jsxs2(import_developer_studio_ui_react60.Row, { gap: 8, lowMargin: true, noMaxWidth: true, topMargin: true, verticalCenter: true, children: [
25001
24957
  /* @__PURE__ */ jsxs2(import_design_system_react_components88.Text, { css: infoCss, size: "lg", children: [
25002
24958
  /* @__PURE__ */ jsx4(import_design_system_react_components88.Icon, { source: import_design_system_icons46.CheckCircle }),
25003
24959
  "integrated with popular platforms"
@@ -25011,39 +24967,29 @@ var Waitlist = () => {
25011
24967
  "build with ready-made blocks"
25012
24968
  ] })
25013
24969
  ] }),
25014
- /* @__PURE__ */ jsx4(import_developer_studio_ui_react60.Row, { center: true, verticalCenter: true, noMaxWidth: true, children: /* @__PURE__ */ jsx4(import_developer_studio_ui_react60.Column, { width: 5, center: true, children: /* @__PURE__ */ jsx4("div", { css: imgContainerCss, children: /* @__PURE__ */ jsx4(
25015
- "img",
25016
- {
25017
- alt: "waitlist",
25018
- src: workflows_presentation_default,
25019
- css: css`
25020
- height: 460px;
25021
- margin-bottom: var(${import_design_system_react_components88.SpacingToken.Spacing7});
25022
- `
25023
- }
25024
- ) }) }) })
24970
+ /* @__PURE__ */ jsx4(import_developer_studio_ui_react60.Row, { center: true, noMaxWidth: true, verticalCenter: true, children: /* @__PURE__ */ jsx4(import_developer_studio_ui_react60.Column, { center: true, width: 5, children: /* @__PURE__ */ jsx4("div", { css: imgContainerCss, children: image }) }) })
25025
24971
  ] });
25026
- };
24972
+ }
25027
24973
  var Waitlist_default = Waitlist;
25028
24974
 
25029
24975
  // src/views/Flows/index.tsx
25030
24976
  var import_jsx_runtime132 = require("react/jsx-runtime");
25031
- var Flows = () => {
24977
+ function Flows({ waitlistImage }) {
25032
24978
  return /* @__PURE__ */ (0, import_jsx_runtime132.jsxs)(import_react_router_dom33.Routes, { children: [
25033
- /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(import_react_router_dom33.Route, { path: "*", element: /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(Definitions_default, {}) }),
25034
- /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(import_react_router_dom33.Route, { path: "/waitlist", element: /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(Waitlist_default, {}) })
24979
+ /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(import_react_router_dom33.Route, { element: /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(Definitions_default, {}), path: "*" }),
24980
+ /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(import_react_router_dom33.Route, { element: /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(Waitlist_default, { image: waitlistImage }), path: "/waitlist" })
25035
24981
  ] });
25036
- };
24982
+ }
25037
24983
  var Flows_default = Flows;
25038
24984
 
25039
24985
  // src/views/Settings/index.tsx
25040
- var import_react_router_dom45 = require("react-router-dom");
24986
+ var import_react_router_dom44 = require("react-router-dom");
25041
24987
 
25042
24988
  // src/views/Settings/Integrations/index.tsx
25043
- var import_react_router_dom44 = require("react-router-dom");
25044
- var import_design_system_react_components103 = require("@livechat/design-system-react-components");
25045
- var import_developer_studio_api70 = require("@livechat/developer-studio-api");
25046
- var import_developer_studio_ui_react86 = require("@livechat/developer-studio-ui-react");
24989
+ var import_react_router_dom43 = require("react-router-dom");
24990
+ var import_design_system_react_components102 = require("@livechat/design-system-react-components");
24991
+ var import_developer_studio_api64 = require("@livechat/developer-studio-api");
24992
+ var import_developer_studio_ui_react83 = require("@livechat/developer-studio-ui-react");
25047
24993
 
25048
24994
  // src/views/Settings/Integrations/Accounts/index.tsx
25049
24995
  var import_react_router_dom34 = require("react-router-dom");
@@ -26365,234 +26311,13 @@ var MailchimpIntegration = () => {
26365
26311
  };
26366
26312
  var Mailchimp_default2 = MailchimpIntegration;
26367
26313
 
26368
- // src/views/Settings/Integrations/Neon/index.tsx
26314
+ // src/views/Settings/Integrations/Netlify/index.tsx
26369
26315
  var import_react_router_dom39 = require("react-router-dom");
26370
26316
 
26371
- // src/views/Settings/Integrations/Neon/Action.tsx
26317
+ // src/views/Settings/Integrations/Netlify/Action.tsx
26372
26318
  var import_react166 = require("react");
26373
26319
  var import_developer_studio_api52 = require("@livechat/developer-studio-api");
26374
26320
  var import_developer_studio_ui_react72 = require("@livechat/developer-studio-ui-react");
26375
- var import_jsx_runtime152 = require("react/jsx-runtime");
26376
- var NeonAction = (props) => {
26377
- var _a;
26378
- const { login } = (0, import_react166.useContext)(AuthContext);
26379
- const match2 = (0, import_developer_studio_ui_react72.useMatch)();
26380
- const action = (_a = props.action) != null ? _a : match2.params.action;
26381
- if (!action) {
26382
- throw new Error("Invalid action");
26383
- }
26384
- return /* @__PURE__ */ (0, import_jsx_runtime152.jsx)(
26385
- IntegrationAction_default,
26386
- {
26387
- name: import_developer_studio_api52.IntegrationNames.Neon,
26388
- action,
26389
- data: props.data,
26390
- context: props.context,
26391
- serializedData: match2.params.data,
26392
- serializedContext: match2.params.context,
26393
- executor: props.executor,
26394
- trigger: {
26395
- mode: import_developer_studio_api52.IntegrationModes.Modal,
26396
- handler: (output) => {
26397
- var _a2;
26398
- return neonActionHandlers(login, (_a2 = props.data) == null ? void 0 : _a2.setIsActionLoading)[action](output);
26399
- }
26400
- },
26401
- onSuccess: props.onSuccess
26402
- }
26403
- );
26404
- };
26405
- var neonActionHandlers = (login, setIsActionLoading) => {
26406
- const handlers = {
26407
- authorize: (output) => {
26408
- setIsActionLoading == null ? void 0 : setIsActionLoading(false);
26409
- if (output.status === "success" && output.result.token) {
26410
- login({
26411
- source: import_developer_studio_api52.IntegrationNames.Neon,
26412
- data: { token: output.result.token }
26413
- });
26414
- return {
26415
- isValid: true,
26416
- result: output.result
26417
- };
26418
- }
26419
- return {
26420
- isValid: false
26421
- };
26422
- }
26423
- };
26424
- return handlers;
26425
- };
26426
- var Action_default7 = NeonAction;
26427
-
26428
- // src/views/Settings/Integrations/Neon/Callback.tsx
26429
- var import_react167 = require("react");
26430
- var import_developer_studio_ui_react73 = require("@livechat/developer-studio-ui-react");
26431
- var import_jsx_runtime153 = require("react/jsx-runtime");
26432
- var NeonCallback = () => {
26433
- const { login } = (0, import_react167.useContext)(AuthContext);
26434
- const match2 = (0, import_developer_studio_ui_react73.useMatch)();
26435
- const action = match2.params.action;
26436
- if (!action) {
26437
- throw new Error("Invalid action");
26438
- }
26439
- return /* @__PURE__ */ (0, import_jsx_runtime153.jsx)(
26440
- IntegrationCallback_default,
26441
- {
26442
- handler: (output) => neonActionHandlers(login)[action](output)
26443
- }
26444
- );
26445
- };
26446
- var Callback_default6 = NeonCallback;
26447
-
26448
- // src/views/Settings/Integrations/Neon/Status.tsx
26449
- var import_react171 = require("react");
26450
- var import_design_system_icons52 = require("@livechat/design-system-icons");
26451
- var import_design_system_react_components98 = require("@livechat/design-system-react-components");
26452
- var import_developer_studio_api57 = require("@livechat/developer-studio-api");
26453
- var import_developer_studio_ui_react74 = require("@livechat/developer-studio-ui-react");
26454
-
26455
- // src/hooks/integrations/neon/credentials.ts
26456
- var import_developer_studio_api53 = require("@livechat/developer-studio-api");
26457
- var useFetchNeonCredentials = () => {
26458
- var _a, _b;
26459
- const credentialsQuery = useFetchIntegrationCredentialsQuery(
26460
- import_developer_studio_api53.IntegrationNames.Neon
26461
- );
26462
- const oauthCredential = (_a = credentialsQuery.data) == null ? void 0 : _a.find(
26463
- (credential) => credential.type === "oauth2" && credential.data.client_id === getWorkflowEnv("neonClientId")
26464
- );
26465
- const otherCredentials = (_b = credentialsQuery.data) == null ? void 0 : _b.filter(
26466
- (credential) => credential !== oauthCredential
26467
- );
26468
- return __spreadProps(__spreadValues({}, credentialsQuery), {
26469
- data: {
26470
- internal: oauthCredential,
26471
- other: otherCredentials
26472
- }
26473
- });
26474
- };
26475
-
26476
- // src/hooks/integrations/neon/databases.ts
26477
- var import_react168 = require("react");
26478
- var import_react_query12 = require("@tanstack/react-query");
26479
- var import_developer_studio_api54 = require("@livechat/developer-studio-api");
26480
-
26481
- // src/hooks/integrations/neon/projects.ts
26482
- var import_react169 = require("react");
26483
- var import_react_query13 = require("@tanstack/react-query");
26484
- var import_developer_studio_api55 = require("@livechat/developer-studio-api");
26485
-
26486
- // src/hooks/integrations/neon/user.ts
26487
- var import_react170 = require("react");
26488
- var import_react_query14 = require("@tanstack/react-query");
26489
- var import_developer_studio_api56 = require("@livechat/developer-studio-api");
26490
-
26491
- // src/views/Settings/Integrations/Neon/Status.tsx
26492
- var NeonStatus = () => {
26493
- const credentialsQuery = useFetchNeonCredentials();
26494
- const removeCredentialMutation = useRemoveIntegrationCredential();
26495
- const refetch = (0, import_react171.useCallback)(() => {
26496
- credentialsQuery.refetch();
26497
- }, [credentialsQuery]);
26498
- const oauthCredential = credentialsQuery.data.internal;
26499
- const otherCredentials = credentialsQuery.data.other;
26500
- const Connect = (0, import_react171.useCallback)(
26501
- ({ credential }) => /* @__PURE__ */ jsx4(
26502
- Action_default7,
26503
- {
26504
- action: "authorize",
26505
- executor: {
26506
- type: "manual",
26507
- render: (confirm) => /* @__PURE__ */ jsx4(
26508
- import_design_system_react_components98.Button,
26509
- {
26510
- kind: (credential == null ? void 0 : credential.data.connected) ? "secondary" : "primary",
26511
- onClick: confirm,
26512
- iconPosition: "right",
26513
- "data-cy": "neon-connect-button",
26514
- children: (credential == null ? void 0 : credential.data.connected) ? "Reconnect" : "Connect"
26515
- }
26516
- )
26517
- },
26518
- data: {
26519
- redirectTo: {
26520
- success: "/settings/integrations/neon/status"
26521
- }
26522
- },
26523
- context: {
26524
- credentialId: credential == null ? void 0 : credential.name
26525
- },
26526
- onSuccess: refetch
26527
- }
26528
- ),
26529
- [refetch]
26530
- );
26531
- return /* @__PURE__ */ jsxs2(
26532
- IntegrationStatus_default,
26533
- {
26534
- title: import_developer_studio_api57.IntegrationDisplayNames.Neon,
26535
- subtitle: `${import_developer_studio_api57.IntegrationDisplayNames.Neon} integration`,
26536
- header: `${import_developer_studio_api57.IntegrationDisplayNames.Neon} integration`,
26537
- description: "Integrate Developer Console with Neon to enjoy simplified web development with a platform for storing your apps data. Experience faster, scalable, and more secure workflow.",
26538
- icon: /* @__PURE__ */ jsx4(import_developer_studio_ui_react74.Neon, {}),
26539
- dataCy: "neon-integration-component",
26540
- children: [
26541
- /* @__PURE__ */ jsx4(
26542
- IntegrationStatusRow,
26543
- {
26544
- title: "Text Platform | Developer Console",
26545
- isConnected: Boolean(oauthCredential == null ? void 0 : oauthCredential.data.connected),
26546
- isLoading: credentialsQuery.isFetching,
26547
- icon: /* @__PURE__ */ jsx4(import_developer_studio_ui_react74.Neon, {}),
26548
- action: !credentialsQuery.isFetching ? /* @__PURE__ */ jsx4(Connect, { credential: oauthCredential }) : void 0,
26549
- status: !credentialsQuery.isFetching && (oauthCredential == null ? void 0 : oauthCredential.name) ? /* @__PURE__ */ jsx4(
26550
- import_design_system_react_components98.Button,
26551
- {
26552
- size: "xcompact",
26553
- icon: /* @__PURE__ */ jsx4(import_design_system_react_components98.Icon, { source: import_design_system_icons52.Delete, size: "small" }),
26554
- onClick: () => {
26555
- if (oauthCredential.name) {
26556
- removeCredentialMutation.mutateAsync(oauthCredential);
26557
- }
26558
- },
26559
- kind: "plain"
26560
- }
26561
- ) : void 0
26562
- }
26563
- ),
26564
- !credentialsQuery.isFetching && (otherCredentials == null ? void 0 : otherCredentials.length) ? /* @__PURE__ */ jsx4(
26565
- IntegrationStatusCredentials,
26566
- {
26567
- credentials: otherCredentials.filter(Boolean),
26568
- trigger: Connect
26569
- }
26570
- ) : void 0
26571
- ]
26572
- }
26573
- );
26574
- };
26575
- var Status_default5 = NeonStatus;
26576
-
26577
- // src/views/Settings/Integrations/Neon/index.tsx
26578
- var import_jsx_runtime155 = require("react/jsx-runtime");
26579
- var NeonIntegration = () => {
26580
- return /* @__PURE__ */ (0, import_jsx_runtime155.jsxs)(import_react_router_dom39.Routes, { children: [
26581
- /* @__PURE__ */ (0, import_jsx_runtime155.jsx)(import_react_router_dom39.Route, { path: "/", element: /* @__PURE__ */ (0, import_jsx_runtime155.jsx)(import_react_router_dom39.Navigate, { to: "status", replace: true }) }),
26582
- /* @__PURE__ */ (0, import_jsx_runtime155.jsx)(import_react_router_dom39.Route, { path: "/status", element: /* @__PURE__ */ (0, import_jsx_runtime155.jsx)(Status_default5, {}) }),
26583
- /* @__PURE__ */ (0, import_jsx_runtime155.jsx)(import_react_router_dom39.Route, { path: "/action/:action/:data?/:context?", element: /* @__PURE__ */ (0, import_jsx_runtime155.jsx)(Action_default7, {}) }),
26584
- /* @__PURE__ */ (0, import_jsx_runtime155.jsx)(import_react_router_dom39.Route, { path: "/callback/:action", element: /* @__PURE__ */ (0, import_jsx_runtime155.jsx)(Callback_default6, {}) })
26585
- ] });
26586
- };
26587
- var Neon_default = NeonIntegration;
26588
-
26589
- // src/views/Settings/Integrations/Netlify/index.tsx
26590
- var import_react_router_dom40 = require("react-router-dom");
26591
-
26592
- // src/views/Settings/Integrations/Netlify/Action.tsx
26593
- var import_react172 = require("react");
26594
- var import_developer_studio_api58 = require("@livechat/developer-studio-api");
26595
- var import_developer_studio_ui_react75 = require("@livechat/developer-studio-ui-react");
26596
26321
 
26597
26322
  // src/utils/amplitude/journeys/application/blocks/deployment.ts
26598
26323
  var appDeploymentBlockAmplitudeJourneyFactory = (email) => ({
@@ -26708,22 +26433,22 @@ var appDeploymentBlockAmplitudeJourneyFactory = (email) => ({
26708
26433
  });
26709
26434
 
26710
26435
  // src/views/Settings/Integrations/Netlify/Action.tsx
26711
- var import_jsx_runtime156 = require("react/jsx-runtime");
26436
+ var import_jsx_runtime152 = require("react/jsx-runtime");
26712
26437
  var NetlifyAction = (props) => {
26713
26438
  var _a;
26714
- const { login } = (0, import_react172.useContext)(AuthContext);
26715
- const match2 = (0, import_developer_studio_ui_react75.useMatch)();
26439
+ const { login } = (0, import_react166.useContext)(AuthContext);
26440
+ const match2 = (0, import_developer_studio_ui_react72.useMatch)();
26716
26441
  const {
26717
26442
  userData: { user }
26718
- } = (0, import_developer_studio_ui_react75.useRootContext)();
26443
+ } = (0, import_developer_studio_ui_react72.useRootContext)();
26719
26444
  const action = (_a = props.action) != null ? _a : match2.params.action;
26720
26445
  if (!action) {
26721
26446
  throw new Error("Invalid action");
26722
26447
  }
26723
- return /* @__PURE__ */ (0, import_jsx_runtime156.jsx)(
26448
+ return /* @__PURE__ */ (0, import_jsx_runtime152.jsx)(
26724
26449
  IntegrationAction_default,
26725
26450
  {
26726
- name: import_developer_studio_api58.IntegrationNames.Netlify,
26451
+ name: import_developer_studio_api52.IntegrationNames.Netlify,
26727
26452
  action,
26728
26453
  data: props.data,
26729
26454
  context: props.context,
@@ -26731,7 +26456,7 @@ var NetlifyAction = (props) => {
26731
26456
  serializedContext: match2.params.context,
26732
26457
  executor: props.executor,
26733
26458
  trigger: {
26734
- mode: import_developer_studio_api58.IntegrationModes.Modal,
26459
+ mode: import_developer_studio_api52.IntegrationModes.Modal,
26735
26460
  handler: (output) => netlifyActionHandlers(login, user == null ? void 0 : user.meta.email)[action](output)
26736
26461
  },
26737
26462
  onSuccess: props.onSuccess
@@ -26741,9 +26466,9 @@ var NetlifyAction = (props) => {
26741
26466
  function triggerNetlifyAction(props, meta) {
26742
26467
  return executeIntegrationAction(
26743
26468
  __spreadProps(__spreadValues({}, props), {
26744
- name: import_developer_studio_api58.IntegrationNames.Netlify,
26469
+ name: import_developer_studio_api52.IntegrationNames.Netlify,
26745
26470
  trigger: {
26746
- mode: import_developer_studio_api58.IntegrationModes.Modal,
26471
+ mode: import_developer_studio_api52.IntegrationModes.Modal,
26747
26472
  handler: (output) => netlifyActionHandlers(
26748
26473
  meta.login,
26749
26474
  meta.user.meta.email
@@ -26759,10 +26484,10 @@ var netlifyActionHandlers = (login, email) => {
26759
26484
  authorize: (output) => {
26760
26485
  if (output.status === "success" && output.result.token) {
26761
26486
  amplitudeDeploymentJourney.app.deployment.actions.authorize.success(
26762
- import_developer_studio_api58.IntegrationNames.Netlify
26487
+ import_developer_studio_api52.IntegrationNames.Netlify
26763
26488
  );
26764
26489
  login({
26765
- source: import_developer_studio_api58.IntegrationNames.Netlify,
26490
+ source: import_developer_studio_api52.IntegrationNames.Netlify,
26766
26491
  data: { token: output.result.token }
26767
26492
  });
26768
26493
  return {
@@ -26783,7 +26508,7 @@ var netlifyActionHandlers = (login, email) => {
26783
26508
  install: (output) => {
26784
26509
  if (output.status === "success" && output.result.installationId) {
26785
26510
  amplitudeDeploymentJourney.app.deployment.actions.install.success(
26786
- import_developer_studio_api58.IntegrationNames.Netlify
26511
+ import_developer_studio_api52.IntegrationNames.Netlify
26787
26512
  );
26788
26513
  return {
26789
26514
  isValid: true,
@@ -26798,44 +26523,44 @@ var netlifyActionHandlers = (login, email) => {
26798
26523
  };
26799
26524
  return handlers;
26800
26525
  };
26801
- var Action_default8 = NetlifyAction;
26526
+ var Action_default7 = NetlifyAction;
26802
26527
 
26803
26528
  // src/views/Settings/Integrations/Netlify/Callback.tsx
26804
- var import_react173 = require("react");
26805
- var import_developer_studio_ui_react76 = require("@livechat/developer-studio-ui-react");
26806
- var import_jsx_runtime157 = require("react/jsx-runtime");
26529
+ var import_react167 = require("react");
26530
+ var import_developer_studio_ui_react73 = require("@livechat/developer-studio-ui-react");
26531
+ var import_jsx_runtime153 = require("react/jsx-runtime");
26807
26532
  var NetlifyCallback = () => {
26808
- const match2 = (0, import_developer_studio_ui_react76.useMatch)();
26809
- const { login } = (0, import_react173.useContext)(AuthContext);
26533
+ const match2 = (0, import_developer_studio_ui_react73.useMatch)();
26534
+ const { login } = (0, import_react167.useContext)(AuthContext);
26810
26535
  const action = match2.params.action;
26811
26536
  const {
26812
26537
  userData: { user }
26813
- } = (0, import_developer_studio_ui_react76.useRootContext)();
26538
+ } = (0, import_developer_studio_ui_react73.useRootContext)();
26814
26539
  if (!action) {
26815
26540
  throw new Error("Invalid action");
26816
26541
  }
26817
- return /* @__PURE__ */ (0, import_jsx_runtime157.jsx)(
26542
+ return /* @__PURE__ */ (0, import_jsx_runtime153.jsx)(
26818
26543
  IntegrationCallback_default,
26819
26544
  {
26820
26545
  handler: (output) => netlifyActionHandlers(login, user == null ? void 0 : user.meta.email)[action](output)
26821
26546
  }
26822
26547
  );
26823
26548
  };
26824
- var Callback_default7 = NetlifyCallback;
26549
+ var Callback_default6 = NetlifyCallback;
26825
26550
 
26826
26551
  // src/views/Settings/Integrations/Netlify/Status.tsx
26827
- var import_react175 = require("react");
26828
- var import_design_system_icons53 = require("@livechat/design-system-icons");
26829
- var import_design_system_react_components99 = require("@livechat/design-system-react-components");
26830
- var import_developer_studio_api62 = require("@livechat/developer-studio-api");
26831
- var import_developer_studio_ui_react77 = require("@livechat/developer-studio-ui-react");
26552
+ var import_react169 = require("react");
26553
+ var import_design_system_icons52 = require("@livechat/design-system-icons");
26554
+ var import_design_system_react_components98 = require("@livechat/design-system-react-components");
26555
+ var import_developer_studio_api56 = require("@livechat/developer-studio-api");
26556
+ var import_developer_studio_ui_react74 = require("@livechat/developer-studio-ui-react");
26832
26557
 
26833
26558
  // src/hooks/integrations/netlify/credentials.ts
26834
- var import_developer_studio_api59 = require("@livechat/developer-studio-api");
26559
+ var import_developer_studio_api53 = require("@livechat/developer-studio-api");
26835
26560
  var useFetchNetlifyCredentials = () => {
26836
26561
  var _a, _b;
26837
26562
  const credentialsQuery = useFetchIntegrationCredentialsQuery(
26838
- import_developer_studio_api59.IntegrationNames.Netlify
26563
+ import_developer_studio_api53.IntegrationNames.Netlify
26839
26564
  );
26840
26565
  const oauthCredential = (_a = credentialsQuery.data) == null ? void 0 : _a.find(
26841
26566
  (credential) => credential.type === "oauth2" && credential.data.client_id === getWorkflowEnv("netlifyClientId")
@@ -26852,22 +26577,22 @@ var useFetchNetlifyCredentials = () => {
26852
26577
  };
26853
26578
 
26854
26579
  // src/hooks/integrations/netlify/site.ts
26855
- var import_react174 = require("react");
26856
- var import_react_query15 = require("@tanstack/react-query");
26857
- var import_developer_studio_api60 = require("@livechat/developer-studio-api");
26580
+ var import_react168 = require("react");
26581
+ var import_react_query12 = require("@tanstack/react-query");
26582
+ var import_developer_studio_api54 = require("@livechat/developer-studio-api");
26858
26583
  var netlifyDeploymentQueryKeys = {
26859
26584
  getSites: ["netlify.getSites"]
26860
26585
  };
26861
26586
  var useFetchNetlifySitesQuery = (isAuthorized) => {
26862
- const { logout } = (0, import_react174.useContext)(AuthContext);
26863
- return (0, import_react_query15.useQuery)(
26587
+ const { logout } = (0, import_react168.useContext)(AuthContext);
26588
+ return (0, import_react_query12.useQuery)(
26864
26589
  netlifyDeploymentQueryKeys.getSites,
26865
- () => import_developer_studio_api60.api.integrations.netlify.site.getSites(),
26590
+ () => import_developer_studio_api54.api.integrations.netlify.site.getSites(),
26866
26591
  {
26867
26592
  retry: false,
26868
26593
  onError: (error) => {
26869
- if (error instanceof import_developer_studio_api60.UnauthorizeApiError) {
26870
- logout(import_developer_studio_api60.IntegrationNames.Netlify);
26594
+ if (error instanceof import_developer_studio_api54.UnauthorizeApiError) {
26595
+ logout(import_developer_studio_api54.IntegrationNames.Netlify);
26871
26596
  }
26872
26597
  },
26873
26598
  enabled: isAuthorized
@@ -26876,12 +26601,12 @@ var useFetchNetlifySitesQuery = (isAuthorized) => {
26876
26601
  };
26877
26602
 
26878
26603
  // src/hooks/state/user/integrations/netlify.ts
26879
- var import_react_query16 = require("@tanstack/react-query");
26880
- var import_developer_studio_api61 = require("@livechat/developer-studio-api");
26604
+ var import_react_query13 = require("@tanstack/react-query");
26605
+ var import_developer_studio_api55 = require("@livechat/developer-studio-api");
26881
26606
  var useUpdateUserNetlifyIntegrationQuery = () => {
26882
- const queryClient = (0, import_react_query16.useQueryClient)();
26883
- const { mutateAsync: updateUserNetlifyIntegration, isLoading } = (0, import_react_query16.useMutation)(
26884
- (userNetlifyIntegration) => import_developer_studio_api61.api.platform.dps.user.updateUserNetlifyIntegration(
26607
+ const queryClient = (0, import_react_query13.useQueryClient)();
26608
+ const { mutateAsync: updateUserNetlifyIntegration, isLoading } = (0, import_react_query13.useMutation)(
26609
+ (userNetlifyIntegration) => import_developer_studio_api55.api.platform.dps.user.updateUserNetlifyIntegration(
26885
26610
  userNetlifyIntegration
26886
26611
  ),
26887
26612
  {
@@ -26908,7 +26633,7 @@ var notFoundInfoCss = css`
26908
26633
  font-size: 13px;
26909
26634
  font-weight: 400;
26910
26635
  line-height: 16px;
26911
- color: var(${import_design_system_react_components99.DesignToken.ContentBasicSecondary});
26636
+ color: var(${import_design_system_react_components98.DesignToken.ContentBasicSecondary});
26912
26637
  margin: 0;
26913
26638
 
26914
26639
  span {
@@ -26920,9 +26645,9 @@ var NetlifyStatus = () => {
26920
26645
  var _a, _b, _c, _d;
26921
26646
  const {
26922
26647
  userData: { user }
26923
- } = (0, import_developer_studio_ui_react77.useRootContext)();
26924
- const { state, login } = (0, import_react175.useContext)(AuthContext);
26925
- const { context: notifications } = (0, import_developer_studio_ui_react77.useNotifications)();
26648
+ } = (0, import_developer_studio_ui_react74.useRootContext)();
26649
+ const { state, login } = (0, import_react169.useContext)(AuthContext);
26650
+ const { context: notifications } = (0, import_developer_studio_ui_react74.useNotifications)();
26926
26651
  const userIntegrationsQuery = useFetchUserIntegrationsQuery();
26927
26652
  const removeCredentialMutation = useRemoveIntegrationCredential();
26928
26653
  const credentialsQuery = useFetchNetlifyCredentials();
@@ -26932,26 +26657,26 @@ var NetlifyStatus = () => {
26932
26657
  const amplitudeDeploymentJourney = appDeploymentBlockAmplitudeJourneyFactory(
26933
26658
  user == null ? void 0 : user.meta.email
26934
26659
  );
26935
- const refetch = (0, import_react175.useCallback)(() => {
26660
+ const refetch = (0, import_react169.useCallback)(() => {
26936
26661
  credentialsQuery.refetch();
26937
26662
  userIntegrationsQuery.refetch();
26938
26663
  sitesQuery.refetch();
26939
26664
  }, [credentialsQuery, userIntegrationsQuery, sitesQuery]);
26940
26665
  const { updateUserNetlifyIntegration } = useUpdateUserNetlifyIntegrationQuery();
26941
- const [isDropdownVisible, setIsDropdownVisible] = (0, import_react175.useState)(false);
26666
+ const [isDropdownVisible, setIsDropdownVisible] = (0, import_react169.useState)(false);
26942
26667
  const oauthCredential = credentialsQuery.data.internal;
26943
26668
  const otherCredentials = credentialsQuery.data.other;
26944
26669
  const isInstalled = Boolean((_c = (_b = userIntegrationsQuery.data) == null ? void 0 : _b.netlify) == null ? void 0 : _c.githubInstallationId);
26945
26670
  const doesNetlifySiteHasInstallID = (_d = sitesQuery.data) == null ? void 0 : _d.some(
26946
26671
  (element) => element.build_settings.installation_id
26947
26672
  );
26948
- (0, import_react175.useEffect)(() => {
26673
+ (0, import_react169.useEffect)(() => {
26949
26674
  if (credentialsQuery.isFetching) {
26950
26675
  return;
26951
26676
  }
26952
26677
  if (!(oauthCredential == null ? void 0 : oauthCredential.data.connected)) {
26953
26678
  amplitudeDeploymentJourney.app.deployment.actions.authorize.requested(
26954
- import_developer_studio_api62.IntegrationNames.Netlify
26679
+ import_developer_studio_api56.IntegrationNames.Netlify
26955
26680
  );
26956
26681
  return;
26957
26682
  }
@@ -26960,7 +26685,7 @@ var NetlifyStatus = () => {
26960
26685
  }
26961
26686
  if (!isInstalled) {
26962
26687
  amplitudeDeploymentJourney.app.deployment.actions.install.requested(
26963
- import_developer_studio_api62.IntegrationNames.Netlify
26688
+ import_developer_studio_api56.IntegrationNames.Netlify
26964
26689
  );
26965
26690
  }
26966
26691
  }, [credentialsQuery, oauthCredential, userIntegrationsQuery, isInstalled]);
@@ -26968,7 +26693,7 @@ var NetlifyStatus = () => {
26968
26693
  "my-channel",
26969
26694
  "my-event",
26970
26695
  (data) => {
26971
- if (data.userId !== (user == null ? void 0 : user.profile.id) || data.integration !== import_developer_studio_api62.IntegrationNames.Netlify) {
26696
+ if (data.userId !== (user == null ? void 0 : user.profile.id) || data.integration !== import_developer_studio_api56.IntegrationNames.Netlify) {
26972
26697
  return;
26973
26698
  }
26974
26699
  if (data.action === "authorize" || data.action === "install") {
@@ -26977,21 +26702,21 @@ var NetlifyStatus = () => {
26977
26702
  },
26978
26703
  [refetch]
26979
26704
  );
26980
- const Connect = (0, import_react175.useCallback)(
26705
+ const Connect = (0, import_react169.useCallback)(
26981
26706
  ({ credential }) => /* @__PURE__ */ jsx4(
26982
- Action_default8,
26707
+ Action_default7,
26983
26708
  {
26984
26709
  action: "authorize",
26985
26710
  executor: {
26986
26711
  type: "manual",
26987
26712
  render: (confirm) => /* @__PURE__ */ jsx4(
26988
- import_design_system_react_components99.Button,
26713
+ import_design_system_react_components98.Button,
26989
26714
  {
26990
26715
  kind: (credential == null ? void 0 : credential.data.connected) ? "secondary" : "primary",
26991
26716
  onClick: () => {
26992
26717
  if (!(credential == null ? void 0 : credential.data.connected)) {
26993
26718
  amplitudeDeploymentJourney.app.deployment.actions.authorize.click(
26994
- import_developer_studio_api62.IntegrationNames.Netlify
26719
+ import_developer_studio_api56.IntegrationNames.Netlify
26995
26720
  );
26996
26721
  }
26997
26722
  confirm();
@@ -27016,23 +26741,23 @@ var NetlifyStatus = () => {
27016
26741
  // eslint-disable-next-line react-hooks/exhaustive-deps
27017
26742
  [refetch]
27018
26743
  );
27019
- const Install = (0, import_react175.useCallback)(
26744
+ const Install = (0, import_react169.useCallback)(
27020
26745
  () => {
27021
26746
  var _a2;
27022
26747
  return /* @__PURE__ */ jsx4(
27023
- Action_default8,
26748
+ Action_default7,
27024
26749
  {
27025
26750
  action: "install",
27026
26751
  executor: {
27027
26752
  type: "manual",
27028
26753
  render: (confirm) => /* @__PURE__ */ jsx4(
27029
- import_design_system_react_components99.Button,
26754
+ import_design_system_react_components98.Button,
27030
26755
  {
27031
26756
  kind: userIntegrationsQuery.isLoading ? "text" : isInstalled ? "secondary" : "primary",
27032
26757
  loading: userIntegrationsQuery.isLoading,
27033
26758
  onClick: () => {
27034
26759
  amplitudeDeploymentJourney.app.deployment.actions.install.click(
27035
- import_developer_studio_api62.IntegrationNames.Netlify
26760
+ import_developer_studio_api56.IntegrationNames.Netlify
27036
26761
  );
27037
26762
  confirm();
27038
26763
  },
@@ -27047,7 +26772,7 @@ var NetlifyStatus = () => {
27047
26772
  }
27048
26773
  },
27049
26774
  context: {
27050
- credentialId: import_developer_studio_api62.IntegrationNames.Netlify,
26775
+ credentialId: import_developer_studio_api56.IntegrationNames.Netlify,
27051
26776
  token: (_a2 = state.netlify.raw.token) != null ? _a2 : "",
27052
26777
  showInstruction: !isInstalled ? true : void 0
27053
26778
  },
@@ -27118,11 +26843,11 @@ var NetlifyStatus = () => {
27118
26843
  return /* @__PURE__ */ jsxs2(
27119
26844
  IntegrationStatus_default,
27120
26845
  {
27121
- title: import_developer_studio_api62.IntegrationDisplayNames.Netlify,
27122
- subtitle: `${import_developer_studio_api62.IntegrationDisplayNames.Netlify} integration`,
27123
- header: `${import_developer_studio_api62.IntegrationDisplayNames.Netlify} integration`,
26846
+ title: import_developer_studio_api56.IntegrationDisplayNames.Netlify,
26847
+ subtitle: `${import_developer_studio_api56.IntegrationDisplayNames.Netlify} integration`,
26848
+ header: `${import_developer_studio_api56.IntegrationDisplayNames.Netlify} integration`,
27124
26849
  description: "Integrate Developer Console with Netlify to enjoy simplified web development with a platform for building, deploying, and managing your projects. Experience faster, scalable, and more secure workflow.",
27125
- icon: /* @__PURE__ */ jsx4(import_developer_studio_ui_react77.Netlify, {}),
26850
+ icon: /* @__PURE__ */ jsx4(import_developer_studio_ui_react74.Netlify, {}),
27126
26851
  dataCy: "netlify-integration-component",
27127
26852
  children: [
27128
26853
  /* @__PURE__ */ jsx4(
@@ -27131,22 +26856,22 @@ var NetlifyStatus = () => {
27131
26856
  title: "Text Platform | Developer Console",
27132
26857
  isConnected: Boolean(oauthCredential == null ? void 0 : oauthCredential.data.connected),
27133
26858
  isLoading: credentialsQuery.isFetching,
27134
- icon: /* @__PURE__ */ jsx4(import_developer_studio_ui_react77.Netlify, {}),
27135
- action: !(oauthCredential == null ? void 0 : oauthCredential.data.connected) && !credentialsQuery.isFetching ? /* @__PURE__ */ jsx4(Connect, {}) : !credentialsQuery.isFetching ? /* @__PURE__ */ jsxs2(import_developer_studio_ui_react77.Row, { notPadded: true, flexEnd: true, gap: `var(${import_design_system_react_components99.SpacingToken.Spacing2})`, children: [
26859
+ icon: /* @__PURE__ */ jsx4(import_developer_studio_ui_react74.Netlify, {}),
26860
+ action: !(oauthCredential == null ? void 0 : oauthCredential.data.connected) && !credentialsQuery.isFetching ? /* @__PURE__ */ jsx4(Connect, {}) : !credentialsQuery.isFetching ? /* @__PURE__ */ jsxs2(import_developer_studio_ui_react74.Row, { notPadded: true, flexEnd: true, gap: `var(${import_design_system_react_components98.SpacingToken.Spacing2})`, children: [
27136
26861
  !userIntegrationsQuery.isFetching && !isInstalled ? /* @__PURE__ */ jsx4(Install, {}) : void 0,
27137
26862
  /* @__PURE__ */ jsx4(
27138
- import_design_system_react_components99.ActionMenu,
26863
+ import_design_system_react_components98.ActionMenu,
27139
26864
  {
27140
26865
  visible: isDropdownVisible,
27141
26866
  placement: "bottom",
27142
26867
  triggerRenderer: /* @__PURE__ */ jsx4(
27143
- import_design_system_react_components99.Button,
26868
+ import_design_system_react_components98.Button,
27144
26869
  {
27145
26870
  kind: "secondary",
27146
26871
  onClick: () => {
27147
26872
  setIsDropdownVisible(!isDropdownVisible);
27148
26873
  },
27149
- icon: isDropdownVisible ? /* @__PURE__ */ jsx4(import_design_system_react_components99.Icon, { source: import_design_system_icons53.ChevronUp }) : /* @__PURE__ */ jsx4(import_design_system_react_components99.Icon, { source: import_design_system_icons53.ChevronDown }),
26874
+ icon: isDropdownVisible ? /* @__PURE__ */ jsx4(import_design_system_react_components98.Icon, { source: import_design_system_icons52.ChevronUp }) : /* @__PURE__ */ jsx4(import_design_system_react_components98.Icon, { source: import_design_system_icons52.ChevronDown }),
27150
26875
  iconPosition: "right",
27151
26876
  children: "Settings"
27152
26877
  }
@@ -27158,17 +26883,17 @@ var NetlifyStatus = () => {
27158
26883
  }
27159
26884
  )
27160
26885
  ] }) : void 0,
27161
- status: !credentialsQuery.isFetching && (oauthCredential == null ? void 0 : oauthCredential.name) ? /* @__PURE__ */ jsxs2(import_react175.Fragment, { children: [
26886
+ status: !credentialsQuery.isFetching && (oauthCredential == null ? void 0 : oauthCredential.name) ? /* @__PURE__ */ jsxs2(import_react169.Fragment, { children: [
27162
26887
  (oauthCredential == null ? void 0 : oauthCredential.data.connected) ? getConnectionStatus(
27163
26888
  isInstalled,
27164
26889
  "install",
27165
26890
  userIntegrationsQuery.isFetching
27166
26891
  ) : void 0,
27167
26892
  /* @__PURE__ */ jsx4(
27168
- import_design_system_react_components99.Button,
26893
+ import_design_system_react_components98.Button,
27169
26894
  {
27170
26895
  size: "xcompact",
27171
- icon: /* @__PURE__ */ jsx4(import_design_system_react_components99.Icon, { source: import_design_system_icons53.Delete, size: "small" }),
26896
+ icon: /* @__PURE__ */ jsx4(import_design_system_react_components98.Icon, { source: import_design_system_icons52.Delete, size: "small" }),
27172
26897
  onClick: () => {
27173
26898
  if (oauthCredential.name) {
27174
26899
  removeCredentialMutation.mutateAsync(oauthCredential);
@@ -27180,7 +26905,7 @@ var NetlifyStatus = () => {
27180
26905
  ] }) : void 0
27181
26906
  }
27182
26907
  ),
27183
- oauthCredential && isInstalled && !sitesQuery.isFetching && !doesNetlifySiteHasInstallID ? /* @__PURE__ */ jsx4(import_developer_studio_ui_react77.Row, { setRowPadding: "8px 0 0 26px", children: /* @__PURE__ */ jsxs2("p", { css: notFoundInfoCss, children: [
26908
+ oauthCredential && isInstalled && !sitesQuery.isFetching && !doesNetlifySiteHasInstallID ? /* @__PURE__ */ jsx4(import_developer_studio_ui_react74.Row, { setRowPadding: "8px 0 0 26px", children: /* @__PURE__ */ jsxs2("p", { css: notFoundInfoCss, children: [
27184
26909
  "In case of GitHub Installation page returns 404,",
27185
26910
  " ",
27186
26911
  /* @__PURE__ */ jsx4(
@@ -27204,72 +26929,72 @@ var NetlifyStatus = () => {
27204
26929
  }
27205
26930
  );
27206
26931
  };
27207
- var Status_default6 = NetlifyStatus;
26932
+ var Status_default5 = NetlifyStatus;
27208
26933
 
27209
26934
  // src/views/Settings/Integrations/Netlify/index.tsx
27210
- var import_jsx_runtime159 = require("react/jsx-runtime");
26935
+ var import_jsx_runtime155 = require("react/jsx-runtime");
27211
26936
  var NetlifyIntegration = () => {
27212
- return /* @__PURE__ */ (0, import_jsx_runtime159.jsxs)(import_react_router_dom40.Routes, { children: [
27213
- /* @__PURE__ */ (0, import_jsx_runtime159.jsx)(import_react_router_dom40.Route, { path: "/", element: /* @__PURE__ */ (0, import_jsx_runtime159.jsx)(import_react_router_dom40.Navigate, { to: "status", replace: true }) }),
27214
- /* @__PURE__ */ (0, import_jsx_runtime159.jsx)(import_react_router_dom40.Route, { path: "/status", element: /* @__PURE__ */ (0, import_jsx_runtime159.jsx)(Status_default6, {}) }),
27215
- /* @__PURE__ */ (0, import_jsx_runtime159.jsx)(
27216
- import_react_router_dom40.Route,
26937
+ return /* @__PURE__ */ (0, import_jsx_runtime155.jsxs)(import_react_router_dom39.Routes, { children: [
26938
+ /* @__PURE__ */ (0, import_jsx_runtime155.jsx)(import_react_router_dom39.Route, { path: "/", element: /* @__PURE__ */ (0, import_jsx_runtime155.jsx)(import_react_router_dom39.Navigate, { to: "status", replace: true }) }),
26939
+ /* @__PURE__ */ (0, import_jsx_runtime155.jsx)(import_react_router_dom39.Route, { path: "/status", element: /* @__PURE__ */ (0, import_jsx_runtime155.jsx)(Status_default5, {}) }),
26940
+ /* @__PURE__ */ (0, import_jsx_runtime155.jsx)(
26941
+ import_react_router_dom39.Route,
27217
26942
  {
27218
26943
  path: "/action/:action/:data?/:context?",
27219
- element: /* @__PURE__ */ (0, import_jsx_runtime159.jsx)(Action_default8, {})
26944
+ element: /* @__PURE__ */ (0, import_jsx_runtime155.jsx)(Action_default7, {})
27220
26945
  }
27221
26946
  ),
27222
- /* @__PURE__ */ (0, import_jsx_runtime159.jsx)(import_react_router_dom40.Route, { path: "/callback/:action", element: /* @__PURE__ */ (0, import_jsx_runtime159.jsx)(Callback_default7, {}) })
26947
+ /* @__PURE__ */ (0, import_jsx_runtime155.jsx)(import_react_router_dom39.Route, { path: "/callback/:action", element: /* @__PURE__ */ (0, import_jsx_runtime155.jsx)(Callback_default6, {}) })
27223
26948
  ] });
27224
26949
  };
27225
26950
  var Netlify_default = NetlifyIntegration;
27226
26951
 
27227
26952
  // src/views/Settings/Integrations/Shopify/index.tsx
27228
- var import_react_router_dom41 = require("react-router-dom");
26953
+ var import_react_router_dom40 = require("react-router-dom");
27229
26954
 
27230
26955
  // src/views/Settings/Integrations/Shopify/Callback.tsx
27231
- var import_react177 = require("react");
27232
- var import_developer_studio_ui_react78 = require("@livechat/developer-studio-ui-react");
27233
- var import_jsx_runtime160 = require("react/jsx-runtime");
26956
+ var import_react171 = require("react");
26957
+ var import_developer_studio_ui_react75 = require("@livechat/developer-studio-ui-react");
26958
+ var import_jsx_runtime156 = require("react/jsx-runtime");
27234
26959
  var ShopifyCallback = () => {
27235
- const { login } = (0, import_react177.useContext)(AuthContext);
27236
- const match2 = (0, import_developer_studio_ui_react78.useMatch)();
26960
+ const { login } = (0, import_react171.useContext)(AuthContext);
26961
+ const match2 = (0, import_developer_studio_ui_react75.useMatch)();
27237
26962
  const action = match2.params.action;
27238
26963
  if (!action) {
27239
26964
  throw new Error("Invalid action");
27240
26965
  }
27241
- return /* @__PURE__ */ (0, import_jsx_runtime160.jsx)(
26966
+ return /* @__PURE__ */ (0, import_jsx_runtime156.jsx)(
27242
26967
  IntegrationCallback_default,
27243
26968
  {
27244
26969
  handler: (output) => shopifyActionHandlers(login)[action](output)
27245
26970
  }
27246
26971
  );
27247
26972
  };
27248
- var Callback_default8 = ShopifyCallback;
26973
+ var Callback_default7 = ShopifyCallback;
27249
26974
 
27250
26975
  // src/views/Settings/Integrations/Shopify/Status.tsx
27251
- var import_react178 = require("react");
26976
+ var import_react172 = require("react");
27252
26977
  var import_design_system4 = require("@livechat/design-system");
27253
- var import_design_system_icons54 = require("@livechat/design-system-icons");
27254
- var import_design_system_react_components100 = require("@livechat/design-system-react-components");
27255
- var import_developer_studio_api63 = require("@livechat/developer-studio-api");
27256
- var import_developer_studio_ui_react79 = require("@livechat/developer-studio-ui-react");
26978
+ var import_design_system_icons53 = require("@livechat/design-system-icons");
26979
+ var import_design_system_react_components99 = require("@livechat/design-system-react-components");
26980
+ var import_developer_studio_api57 = require("@livechat/developer-studio-api");
26981
+ var import_developer_studio_ui_react76 = require("@livechat/developer-studio-ui-react");
27257
26982
  var ShopifyStatus = () => {
27258
26983
  var _a;
27259
26984
  const {
27260
26985
  userData: { user }
27261
- } = (0, import_developer_studio_ui_react79.useRootContext)();
27262
- const { login } = (0, import_react178.useContext)(AuthContext);
27263
- const { context: notifications } = (0, import_developer_studio_ui_react79.useNotifications)();
26986
+ } = (0, import_developer_studio_ui_react76.useRootContext)();
26987
+ const { login } = (0, import_react172.useContext)(AuthContext);
26988
+ const { context: notifications } = (0, import_developer_studio_ui_react76.useNotifications)();
27264
26989
  const credentialsQuery = useFetchShopifyCredentials();
27265
26990
  const removeCredentialMutation = useRemoveIntegrationCredential();
27266
- const [state, setState] = (0, import_react178.useState)();
27267
- const refetch = (0, import_react178.useCallback)(() => {
26991
+ const [state, setState] = (0, import_react172.useState)();
26992
+ const refetch = (0, import_react172.useCallback)(() => {
27268
26993
  credentialsQuery.refetch();
27269
26994
  }, [credentialsQuery]);
27270
26995
  const oauthCredential = credentialsQuery.data.internal;
27271
26996
  const otherCredentials = credentialsQuery.data.other;
27272
- const triggerConnect = (0, import_react178.useCallback)(
26997
+ const triggerConnect = (0, import_react172.useCallback)(
27273
26998
  (shop) => {
27274
26999
  user && triggerShopifyAction(
27275
27000
  {
@@ -27294,14 +27019,14 @@ var ShopifyStatus = () => {
27294
27019
  },
27295
27020
  [login, refetch, notifications, user]
27296
27021
  );
27297
- const toggleModal = (0, import_react178.useCallback)((isVisible) => {
27022
+ const toggleModal = (0, import_react172.useCallback)((isVisible) => {
27298
27023
  setState((prevState) => __spreadProps(__spreadValues({}, prevState), {
27299
27024
  modal: {
27300
27025
  isVisible
27301
27026
  }
27302
27027
  }));
27303
27028
  }, []);
27304
- const updateShop = (0, import_react178.useCallback)((shop) => {
27029
+ const updateShop = (0, import_react172.useCallback)((shop) => {
27305
27030
  setState(
27306
27031
  (prevState) => {
27307
27032
  var _a2;
@@ -27313,7 +27038,7 @@ var ShopifyStatus = () => {
27313
27038
  }
27314
27039
  );
27315
27040
  }, []);
27316
- const submit = (0, import_react178.useCallback)(() => {
27041
+ const submit = (0, import_react172.useCallback)(() => {
27317
27042
  var _a2, _b;
27318
27043
  setState(
27319
27044
  (prevState) => {
@@ -27330,11 +27055,11 @@ var ShopifyStatus = () => {
27330
27055
  triggerConnect(state.modal.shop);
27331
27056
  }
27332
27057
  }, [state == null ? void 0 : state.modal, toggleModal, triggerConnect]);
27333
- const Connect = (0, import_react178.useCallback)(
27058
+ const Connect = (0, import_react172.useCallback)(
27334
27059
  ({ credential }) => {
27335
27060
  if (!credential) {
27336
27061
  return /* @__PURE__ */ jsx4(
27337
- import_design_system_react_components100.Button,
27062
+ import_design_system_react_components99.Button,
27338
27063
  {
27339
27064
  kind: "primary",
27340
27065
  onClick: () => {
@@ -27353,7 +27078,7 @@ var ShopifyStatus = () => {
27353
27078
  executor: {
27354
27079
  type: "manual",
27355
27080
  render: (confirm) => /* @__PURE__ */ jsx4(
27356
- import_design_system_react_components100.Button,
27081
+ import_design_system_react_components99.Button,
27357
27082
  {
27358
27083
  kind: (credential == null ? void 0 : credential.data.connected) ? "secondary" : "primary",
27359
27084
  onClick: () => {
@@ -27383,21 +27108,21 @@ var ShopifyStatus = () => {
27383
27108
  },
27384
27109
  [refetch, toggleModal]
27385
27110
  );
27386
- return /* @__PURE__ */ jsxs2(import_react178.Fragment, { children: [
27111
+ return /* @__PURE__ */ jsxs2(import_react172.Fragment, { children: [
27387
27112
  ((_a = state == null ? void 0 : state.modal) == null ? void 0 : _a.isVisible) ? /* @__PURE__ */ jsx4(
27388
- import_design_system_react_components100.Modal,
27113
+ import_design_system_react_components99.Modal,
27389
27114
  {
27390
27115
  onClose: () => {
27391
27116
  toggleModal(false);
27392
27117
  },
27393
27118
  children: /* @__PURE__ */ jsx4(
27394
- import_design_system_react_components100.Form,
27119
+ import_design_system_react_components99.Form,
27395
27120
  {
27396
- formFooter: /* @__PURE__ */ jsx4(import_design_system_react_components100.Button, { kind: "primary", onClick: submit, iconPosition: "right", children: "Connect" }),
27121
+ formFooter: /* @__PURE__ */ jsx4(import_design_system_react_components99.Button, { kind: "primary", onClick: submit, iconPosition: "right", children: "Connect" }),
27397
27122
  helperText: "Enter your shopify shop name",
27398
27123
  labelText: "Shop",
27399
- children: /* @__PURE__ */ jsx4(import_design_system_react_components100.FormField, { labelText: "Shop", children: /* @__PURE__ */ jsx4(
27400
- import_design_system_react_components100.Input,
27124
+ children: /* @__PURE__ */ jsx4(import_design_system_react_components99.FormField, { labelText: "Shop", children: /* @__PURE__ */ jsx4(
27125
+ import_design_system_react_components99.Input,
27401
27126
  {
27402
27127
  error: Boolean(state.modal.isSubmitted && !state.modal.shop),
27403
27128
  onChange: (event) => {
@@ -27419,11 +27144,11 @@ var ShopifyStatus = () => {
27419
27144
  /* @__PURE__ */ jsxs2(
27420
27145
  IntegrationStatus_default,
27421
27146
  {
27422
- title: import_developer_studio_api63.IntegrationDisplayNames.Shopify,
27423
- subtitle: `${import_developer_studio_api63.IntegrationDisplayNames.Shopify} integration`,
27424
- header: `${import_developer_studio_api63.IntegrationDisplayNames.Shopify} integration`,
27147
+ title: import_developer_studio_api57.IntegrationDisplayNames.Shopify,
27148
+ subtitle: `${import_developer_studio_api57.IntegrationDisplayNames.Shopify} integration`,
27149
+ header: `${import_developer_studio_api57.IntegrationDisplayNames.Shopify} integration`,
27425
27150
  description: "Enhance your e-commerce capabilities with Shopify integration in Developer Console. Simplify your store management, boost your sales, and create a seamless shopping experience for your customers, all while ensuring a robust and scalable workflow.",
27426
- icon: /* @__PURE__ */ jsx4(import_design_system_icons54.ShopifyColored, {}),
27151
+ icon: /* @__PURE__ */ jsx4(import_design_system_icons53.ShopifyColored, {}),
27427
27152
  dataCy: "shopify-integration-component",
27428
27153
  children: [
27429
27154
  /* @__PURE__ */ jsx4(
@@ -27432,13 +27157,13 @@ var ShopifyStatus = () => {
27432
27157
  title: "Text Platform | Developer Console",
27433
27158
  isConnected: Boolean(oauthCredential == null ? void 0 : oauthCredential.data.connected),
27434
27159
  isLoading: credentialsQuery.isFetching,
27435
- icon: /* @__PURE__ */ jsx4(import_design_system_icons54.ShopifyColored, {}),
27160
+ icon: /* @__PURE__ */ jsx4(import_design_system_icons53.ShopifyColored, {}),
27436
27161
  action: !credentialsQuery.isFetching ? /* @__PURE__ */ jsx4(Connect, { credential: oauthCredential }) : void 0,
27437
27162
  status: !credentialsQuery.isFetching && (oauthCredential == null ? void 0 : oauthCredential.name) ? /* @__PURE__ */ jsx4(
27438
- import_design_system_react_components100.Button,
27163
+ import_design_system_react_components99.Button,
27439
27164
  {
27440
27165
  size: "xcompact",
27441
- icon: /* @__PURE__ */ jsx4(import_design_system_react_components100.Icon, { source: import_design_system_icons54.Delete, size: "small" }),
27166
+ icon: /* @__PURE__ */ jsx4(import_design_system_react_components99.Icon, { source: import_design_system_icons53.Delete, size: "small" }),
27442
27167
  onClick: () => {
27443
27168
  if (oauthCredential.name) {
27444
27169
  removeCredentialMutation.mutateAsync(oauthCredential);
@@ -27461,46 +27186,46 @@ var ShopifyStatus = () => {
27461
27186
  )
27462
27187
  ] });
27463
27188
  };
27464
- var Status_default7 = (0, import_design_system4.notificationConnect)(ShopifyStatus);
27189
+ var Status_default6 = (0, import_design_system4.notificationConnect)(ShopifyStatus);
27465
27190
 
27466
27191
  // src/views/Settings/Integrations/Shopify/index.tsx
27467
- var import_jsx_runtime162 = require("react/jsx-runtime");
27192
+ var import_jsx_runtime158 = require("react/jsx-runtime");
27468
27193
  var ShopifyIntegration = () => {
27469
- return /* @__PURE__ */ (0, import_jsx_runtime162.jsxs)(import_react_router_dom41.Routes, { children: [
27470
- /* @__PURE__ */ (0, import_jsx_runtime162.jsx)(import_react_router_dom41.Route, { path: "/", element: /* @__PURE__ */ (0, import_jsx_runtime162.jsx)(import_react_router_dom41.Navigate, { to: "status", replace: true }) }),
27471
- /* @__PURE__ */ (0, import_jsx_runtime162.jsx)(import_react_router_dom41.Route, { path: "/status", element: /* @__PURE__ */ (0, import_jsx_runtime162.jsx)(Status_default7, {}) }),
27472
- /* @__PURE__ */ (0, import_jsx_runtime162.jsx)(
27473
- import_react_router_dom41.Route,
27194
+ return /* @__PURE__ */ (0, import_jsx_runtime158.jsxs)(import_react_router_dom40.Routes, { children: [
27195
+ /* @__PURE__ */ (0, import_jsx_runtime158.jsx)(import_react_router_dom40.Route, { path: "/", element: /* @__PURE__ */ (0, import_jsx_runtime158.jsx)(import_react_router_dom40.Navigate, { to: "status", replace: true }) }),
27196
+ /* @__PURE__ */ (0, import_jsx_runtime158.jsx)(import_react_router_dom40.Route, { path: "/status", element: /* @__PURE__ */ (0, import_jsx_runtime158.jsx)(Status_default6, {}) }),
27197
+ /* @__PURE__ */ (0, import_jsx_runtime158.jsx)(
27198
+ import_react_router_dom40.Route,
27474
27199
  {
27475
27200
  path: "/action/:action/:data?/:context?",
27476
- element: /* @__PURE__ */ (0, import_jsx_runtime162.jsx)(Action_default4, {})
27201
+ element: /* @__PURE__ */ (0, import_jsx_runtime158.jsx)(Action_default4, {})
27477
27202
  }
27478
27203
  ),
27479
- /* @__PURE__ */ (0, import_jsx_runtime162.jsx)(import_react_router_dom41.Route, { path: "/callback/:action", element: /* @__PURE__ */ (0, import_jsx_runtime162.jsx)(Callback_default8, {}) })
27204
+ /* @__PURE__ */ (0, import_jsx_runtime158.jsx)(import_react_router_dom40.Route, { path: "/callback/:action", element: /* @__PURE__ */ (0, import_jsx_runtime158.jsx)(Callback_default7, {}) })
27480
27205
  ] });
27481
27206
  };
27482
27207
  var Shopify_default2 = ShopifyIntegration;
27483
27208
 
27484
27209
  // src/views/Settings/Integrations/Text/index.tsx
27485
- var import_react_router_dom42 = require("react-router-dom");
27210
+ var import_react_router_dom41 = require("react-router-dom");
27486
27211
 
27487
27212
  // src/views/Settings/Integrations/Text/Action.tsx
27488
- var import_react179 = require("react");
27489
- var import_developer_studio_api64 = require("@livechat/developer-studio-api");
27490
- var import_developer_studio_ui_react80 = require("@livechat/developer-studio-ui-react");
27491
- var import_jsx_runtime163 = require("react/jsx-runtime");
27213
+ var import_react173 = require("react");
27214
+ var import_developer_studio_api58 = require("@livechat/developer-studio-api");
27215
+ var import_developer_studio_ui_react77 = require("@livechat/developer-studio-ui-react");
27216
+ var import_jsx_runtime159 = require("react/jsx-runtime");
27492
27217
  var TextAction = (props) => {
27493
27218
  var _a;
27494
- const { login } = (0, import_react179.useContext)(AuthContext);
27495
- const match2 = (0, import_developer_studio_ui_react80.useMatch)();
27219
+ const { login } = (0, import_react173.useContext)(AuthContext);
27220
+ const match2 = (0, import_developer_studio_ui_react77.useMatch)();
27496
27221
  const action = (_a = props.action) != null ? _a : match2.params.action;
27497
27222
  if (!action) {
27498
27223
  throw new Error("Invalid action");
27499
27224
  }
27500
- return /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(
27225
+ return /* @__PURE__ */ (0, import_jsx_runtime159.jsx)(
27501
27226
  IntegrationAction_default,
27502
27227
  {
27503
- name: import_developer_studio_api64.IntegrationNames.Text,
27228
+ name: import_developer_studio_api58.IntegrationNames.Text,
27504
27229
  action,
27505
27230
  data: props.data,
27506
27231
  context: props.context,
@@ -27508,7 +27233,7 @@ var TextAction = (props) => {
27508
27233
  serializedContext: match2.params.context,
27509
27234
  executor: props.executor,
27510
27235
  trigger: {
27511
- mode: import_developer_studio_api64.IntegrationModes.Modal,
27236
+ mode: import_developer_studio_api58.IntegrationModes.Modal,
27512
27237
  handler: (output) => textActionHandlers(login)[action](output)
27513
27238
  },
27514
27239
  onSuccess: props.onSuccess
@@ -27520,7 +27245,7 @@ var textActionHandlers = (login) => {
27520
27245
  authorize: (output) => {
27521
27246
  if (output.status === "success" && output.result.token) {
27522
27247
  login({
27523
- source: import_developer_studio_api64.IntegrationNames.Text,
27248
+ source: import_developer_studio_api58.IntegrationNames.Text,
27524
27249
  data: { token: output.result.token }
27525
27250
  });
27526
27251
  return {
@@ -27535,54 +27260,54 @@ var textActionHandlers = (login) => {
27535
27260
  };
27536
27261
  return handlers;
27537
27262
  };
27538
- var Action_default9 = TextAction;
27263
+ var Action_default8 = TextAction;
27539
27264
 
27540
27265
  // src/views/Settings/Integrations/Text/Callback.tsx
27541
- var import_react180 = require("react");
27542
- var import_developer_studio_ui_react81 = require("@livechat/developer-studio-ui-react");
27543
- var import_jsx_runtime164 = require("react/jsx-runtime");
27266
+ var import_react174 = require("react");
27267
+ var import_developer_studio_ui_react78 = require("@livechat/developer-studio-ui-react");
27268
+ var import_jsx_runtime160 = require("react/jsx-runtime");
27544
27269
  var TextCallback = () => {
27545
- const { login } = (0, import_react180.useContext)(AuthContext);
27546
- const match2 = (0, import_developer_studio_ui_react81.useMatch)();
27270
+ const { login } = (0, import_react174.useContext)(AuthContext);
27271
+ const match2 = (0, import_developer_studio_ui_react78.useMatch)();
27547
27272
  const action = match2.params.action;
27548
27273
  if (!action) {
27549
27274
  throw new Error("Invalid action");
27550
27275
  }
27551
- return /* @__PURE__ */ (0, import_jsx_runtime164.jsx)(
27276
+ return /* @__PURE__ */ (0, import_jsx_runtime160.jsx)(
27552
27277
  IntegrationCallback_default,
27553
27278
  {
27554
27279
  handler: (output) => textActionHandlers(login)[action](output)
27555
27280
  }
27556
27281
  );
27557
27282
  };
27558
- var Callback_default9 = TextCallback;
27283
+ var Callback_default8 = TextCallback;
27559
27284
 
27560
27285
  // src/views/Settings/Integrations/Text/Status.tsx
27561
- var import_react181 = require("react");
27562
- var import_design_system_react_components101 = require("@livechat/design-system-react-components");
27563
- var import_developer_studio_api65 = require("@livechat/developer-studio-api");
27564
- var import_developer_studio_ui_react82 = require("@livechat/developer-studio-ui-react");
27286
+ var import_react175 = require("react");
27287
+ var import_design_system_react_components100 = require("@livechat/design-system-react-components");
27288
+ var import_developer_studio_api59 = require("@livechat/developer-studio-api");
27289
+ var import_developer_studio_ui_react79 = require("@livechat/developer-studio-ui-react");
27565
27290
  var TextStatus = () => {
27566
27291
  const {
27567
27292
  userData: { user }
27568
- } = (0, import_developer_studio_ui_react82.useRootContext)();
27293
+ } = (0, import_developer_studio_ui_react79.useRootContext)();
27569
27294
  const credentialsQuery = useFetchTextCredentials();
27570
27295
  const isInstalledQuery = useFetchUserInstalledTextIntegration(user);
27571
- const refetch = (0, import_react181.useCallback)(() => {
27296
+ const refetch = (0, import_react175.useCallback)(() => {
27572
27297
  credentialsQuery.refetch();
27573
27298
  isInstalledQuery.refetch();
27574
27299
  }, [credentialsQuery, isInstalledQuery]);
27575
27300
  const authCredential = credentialsQuery.data.internal;
27576
27301
  const otherCredentials = credentialsQuery.data.other;
27577
- const Connect = (0, import_react181.useCallback)(
27302
+ const Connect = (0, import_react175.useCallback)(
27578
27303
  ({ credential }) => /* @__PURE__ */ jsx4(
27579
- Action_default9,
27304
+ Action_default8,
27580
27305
  {
27581
27306
  action: "authorize",
27582
27307
  executor: {
27583
27308
  type: "manual",
27584
27309
  render: (confirm) => /* @__PURE__ */ jsx4(
27585
- import_design_system_react_components101.Button,
27310
+ import_design_system_react_components100.Button,
27586
27311
  {
27587
27312
  kind: (credential == null ? void 0 : credential.data.connected) ? "secondary" : "primary",
27588
27313
  onClick: confirm,
@@ -27608,11 +27333,11 @@ var TextStatus = () => {
27608
27333
  return /* @__PURE__ */ jsxs2(
27609
27334
  IntegrationStatus_default,
27610
27335
  {
27611
- title: import_developer_studio_api65.IntegrationDisplayNames.Text,
27612
- subtitle: `${import_developer_studio_api65.IntegrationDisplayNames.Text} integration`,
27613
- header: `${import_developer_studio_api65.IntegrationDisplayNames.Text} integration`,
27336
+ title: import_developer_studio_api59.IntegrationDisplayNames.Text,
27337
+ subtitle: `${import_developer_studio_api59.IntegrationDisplayNames.Text} integration`,
27338
+ header: `${import_developer_studio_api59.IntegrationDisplayNames.Text} integration`,
27614
27339
  description: "",
27615
- icon: /* @__PURE__ */ jsx4(import_developer_studio_ui_react82.Logo, {}),
27340
+ icon: /* @__PURE__ */ jsx4(import_developer_studio_ui_react79.Logo, {}),
27616
27341
  dataCy: "text-integration-component",
27617
27342
  children: [
27618
27343
  /* @__PURE__ */ jsx4(
@@ -27621,8 +27346,8 @@ var TextStatus = () => {
27621
27346
  title: "Text Platform | Developer Console",
27622
27347
  isConnected: Boolean(authCredential),
27623
27348
  isLoading: credentialsQuery.isFetching,
27624
- icon: /* @__PURE__ */ jsx4(import_developer_studio_ui_react82.Logo, {}),
27625
- status: !credentialsQuery.isFetching && (authCredential == null ? void 0 : authCredential.name) ? /* @__PURE__ */ jsx4(import_react181.Fragment, { children: !isInstalledQuery.isFetching ? getConnectionStatus(isInstalledQuery.data, "install") : void 0 }) : void 0
27349
+ icon: /* @__PURE__ */ jsx4(import_developer_studio_ui_react79.Logo, {}),
27350
+ status: !credentialsQuery.isFetching && (authCredential == null ? void 0 : authCredential.name) ? /* @__PURE__ */ jsx4(import_react175.Fragment, { children: !isInstalledQuery.isFetching ? getConnectionStatus(isInstalledQuery.data, "install") : void 0 }) : void 0
27626
27351
  }
27627
27352
  ),
27628
27353
  !credentialsQuery.isFetching && (otherCredentials == null ? void 0 : otherCredentials.length) ? /* @__PURE__ */ jsx4(
@@ -27636,43 +27361,43 @@ var TextStatus = () => {
27636
27361
  }
27637
27362
  );
27638
27363
  };
27639
- var Status_default8 = TextStatus;
27364
+ var Status_default7 = TextStatus;
27640
27365
 
27641
27366
  // src/views/Settings/Integrations/Text/index.tsx
27642
- var import_jsx_runtime166 = require("react/jsx-runtime");
27367
+ var import_jsx_runtime162 = require("react/jsx-runtime");
27643
27368
  var TextIntegration = () => {
27644
- return /* @__PURE__ */ (0, import_jsx_runtime166.jsxs)(import_react_router_dom42.Routes, { children: [
27645
- /* @__PURE__ */ (0, import_jsx_runtime166.jsx)(import_react_router_dom42.Route, { path: "/", element: /* @__PURE__ */ (0, import_jsx_runtime166.jsx)(import_react_router_dom42.Navigate, { to: "status", replace: true }) }),
27646
- /* @__PURE__ */ (0, import_jsx_runtime166.jsx)(import_react_router_dom42.Route, { path: "/status", element: /* @__PURE__ */ (0, import_jsx_runtime166.jsx)(Status_default8, {}) }),
27647
- /* @__PURE__ */ (0, import_jsx_runtime166.jsx)(import_react_router_dom42.Route, { path: "/action/:action/:data?/:context?", element: /* @__PURE__ */ (0, import_jsx_runtime166.jsx)(Action_default9, {}) }),
27648
- /* @__PURE__ */ (0, import_jsx_runtime166.jsx)(import_react_router_dom42.Route, { path: "/callback/:action", element: /* @__PURE__ */ (0, import_jsx_runtime166.jsx)(Callback_default9, {}) })
27369
+ return /* @__PURE__ */ (0, import_jsx_runtime162.jsxs)(import_react_router_dom41.Routes, { children: [
27370
+ /* @__PURE__ */ (0, import_jsx_runtime162.jsx)(import_react_router_dom41.Route, { path: "/", element: /* @__PURE__ */ (0, import_jsx_runtime162.jsx)(import_react_router_dom41.Navigate, { to: "status", replace: true }) }),
27371
+ /* @__PURE__ */ (0, import_jsx_runtime162.jsx)(import_react_router_dom41.Route, { path: "/status", element: /* @__PURE__ */ (0, import_jsx_runtime162.jsx)(Status_default7, {}) }),
27372
+ /* @__PURE__ */ (0, import_jsx_runtime162.jsx)(import_react_router_dom41.Route, { path: "/action/:action/:data?/:context?", element: /* @__PURE__ */ (0, import_jsx_runtime162.jsx)(Action_default8, {}) }),
27373
+ /* @__PURE__ */ (0, import_jsx_runtime162.jsx)(import_react_router_dom41.Route, { path: "/callback/:action", element: /* @__PURE__ */ (0, import_jsx_runtime162.jsx)(Callback_default8, {}) })
27649
27374
  ] });
27650
27375
  };
27651
27376
  var Text_default2 = TextIntegration;
27652
27377
 
27653
27378
  // src/views/Settings/Integrations/Vercel/index.tsx
27654
- var import_react_router_dom43 = require("react-router-dom");
27379
+ var import_react_router_dom42 = require("react-router-dom");
27655
27380
 
27656
27381
  // src/views/Settings/Integrations/Vercel/Action.tsx
27657
- var import_react182 = require("react");
27658
- var import_developer_studio_api66 = require("@livechat/developer-studio-api");
27659
- var import_developer_studio_ui_react83 = require("@livechat/developer-studio-ui-react");
27660
- var import_jsx_runtime167 = require("react/jsx-runtime");
27382
+ var import_react176 = require("react");
27383
+ var import_developer_studio_api60 = require("@livechat/developer-studio-api");
27384
+ var import_developer_studio_ui_react80 = require("@livechat/developer-studio-ui-react");
27385
+ var import_jsx_runtime163 = require("react/jsx-runtime");
27661
27386
  var VercelAction = (props) => {
27662
27387
  var _a;
27663
27388
  const {
27664
27389
  userData: { user }
27665
- } = (0, import_developer_studio_ui_react83.useRootContext)();
27666
- const { login } = (0, import_react182.useContext)(AuthContext);
27667
- const match2 = (0, import_developer_studio_ui_react83.useMatch)();
27390
+ } = (0, import_developer_studio_ui_react80.useRootContext)();
27391
+ const { login } = (0, import_react176.useContext)(AuthContext);
27392
+ const match2 = (0, import_developer_studio_ui_react80.useMatch)();
27668
27393
  const action = (_a = props.action) != null ? _a : match2.params.action;
27669
27394
  if (!action) {
27670
27395
  throw new Error("Invalid action");
27671
27396
  }
27672
- return /* @__PURE__ */ (0, import_jsx_runtime167.jsx)(
27397
+ return /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(
27673
27398
  IntegrationAction_default,
27674
27399
  {
27675
- name: import_developer_studio_api66.IntegrationNames.Vercel,
27400
+ name: import_developer_studio_api60.IntegrationNames.Vercel,
27676
27401
  action,
27677
27402
  data: props.data,
27678
27403
  context: props.context,
@@ -27680,7 +27405,7 @@ var VercelAction = (props) => {
27680
27405
  serializedContext: match2.params.context,
27681
27406
  executor: props.executor,
27682
27407
  trigger: {
27683
- mode: import_developer_studio_api66.IntegrationModes.Modal,
27408
+ mode: import_developer_studio_api60.IntegrationModes.Modal,
27684
27409
  handler: (output) => vercelActionHandlers(login, user == null ? void 0 : user.meta.email)[action](output)
27685
27410
  },
27686
27411
  onSuccess: props.onSuccess
@@ -27691,9 +27416,9 @@ function triggerVercelAction(props, meta) {
27691
27416
  return __async(this, null, function* () {
27692
27417
  return executeIntegrationAction(
27693
27418
  __spreadProps(__spreadValues({}, props), {
27694
- name: import_developer_studio_api66.IntegrationNames.Vercel,
27419
+ name: import_developer_studio_api60.IntegrationNames.Vercel,
27695
27420
  trigger: {
27696
- mode: import_developer_studio_api66.IntegrationModes.Modal,
27421
+ mode: import_developer_studio_api60.IntegrationModes.Modal,
27697
27422
  handler: (output) => vercelActionHandlers(
27698
27423
  meta.login,
27699
27424
  meta.user.meta.email
@@ -27712,10 +27437,10 @@ var vercelActionHandlers = (login, email) => {
27712
27437
  authorize: (output) => {
27713
27438
  if (output.status === "success" && output.result.token) {
27714
27439
  amplitudeDeploymentJourney.app.deployment.actions.authorize.success(
27715
- import_developer_studio_api66.IntegrationNames.Vercel
27440
+ import_developer_studio_api60.IntegrationNames.Vercel
27716
27441
  );
27717
27442
  login({
27718
- source: import_developer_studio_api66.IntegrationNames.Vercel,
27443
+ source: import_developer_studio_api60.IntegrationNames.Vercel,
27719
27444
  data: { token: output.result.token }
27720
27445
  });
27721
27446
  return {
@@ -27736,7 +27461,7 @@ var vercelActionHandlers = (login, email) => {
27736
27461
  install: (output) => {
27737
27462
  if (output.status === "success" && output.result.installationId) {
27738
27463
  amplitudeDeploymentJourney.app.deployment.actions.install.success(
27739
- import_developer_studio_api66.IntegrationNames.Vercel
27464
+ import_developer_studio_api60.IntegrationNames.Vercel
27740
27465
  );
27741
27466
  return {
27742
27467
  isValid: true,
@@ -27751,44 +27476,44 @@ var vercelActionHandlers = (login, email) => {
27751
27476
  };
27752
27477
  return handlers;
27753
27478
  };
27754
- var Action_default10 = VercelAction;
27479
+ var Action_default9 = VercelAction;
27755
27480
 
27756
27481
  // src/views/Settings/Integrations/Vercel/Callback.tsx
27757
- var import_react183 = require("react");
27758
- var import_developer_studio_ui_react84 = require("@livechat/developer-studio-ui-react");
27759
- var import_jsx_runtime168 = require("react/jsx-runtime");
27482
+ var import_react177 = require("react");
27483
+ var import_developer_studio_ui_react81 = require("@livechat/developer-studio-ui-react");
27484
+ var import_jsx_runtime164 = require("react/jsx-runtime");
27760
27485
  var VercelCallback = () => {
27761
- const { login } = (0, import_react183.useContext)(AuthContext);
27762
- const match2 = (0, import_developer_studio_ui_react84.useMatch)();
27486
+ const { login } = (0, import_react177.useContext)(AuthContext);
27487
+ const match2 = (0, import_developer_studio_ui_react81.useMatch)();
27763
27488
  const action = match2.params.action;
27764
27489
  const {
27765
27490
  userData: { user }
27766
- } = (0, import_developer_studio_ui_react84.useRootContext)();
27491
+ } = (0, import_developer_studio_ui_react81.useRootContext)();
27767
27492
  if (!action) {
27768
27493
  throw new Error("Invalid action");
27769
27494
  }
27770
- return /* @__PURE__ */ (0, import_jsx_runtime168.jsx)(
27495
+ return /* @__PURE__ */ (0, import_jsx_runtime164.jsx)(
27771
27496
  IntegrationCallback_default,
27772
27497
  {
27773
27498
  handler: (output) => vercelActionHandlers(login, user == null ? void 0 : user.meta.email)[action](output)
27774
27499
  }
27775
27500
  );
27776
27501
  };
27777
- var Callback_default10 = VercelCallback;
27502
+ var Callback_default9 = VercelCallback;
27778
27503
 
27779
27504
  // src/views/Settings/Integrations/Vercel/Status.tsx
27780
- var import_react184 = require("react");
27781
- var import_design_system_icons55 = require("@livechat/design-system-icons");
27782
- var import_design_system_react_components102 = require("@livechat/design-system-react-components");
27783
- var import_developer_studio_api69 = require("@livechat/developer-studio-api");
27784
- var import_developer_studio_ui_react85 = require("@livechat/developer-studio-ui-react");
27505
+ var import_react178 = require("react");
27506
+ var import_design_system_icons54 = require("@livechat/design-system-icons");
27507
+ var import_design_system_react_components101 = require("@livechat/design-system-react-components");
27508
+ var import_developer_studio_api63 = require("@livechat/developer-studio-api");
27509
+ var import_developer_studio_ui_react82 = require("@livechat/developer-studio-ui-react");
27785
27510
 
27786
27511
  // src/hooks/integrations/vercel/credentials.ts
27787
- var import_developer_studio_api67 = require("@livechat/developer-studio-api");
27512
+ var import_developer_studio_api61 = require("@livechat/developer-studio-api");
27788
27513
  var useFetchVercelCredentials = () => {
27789
27514
  var _a, _b;
27790
27515
  const credentialsQuery = useFetchIntegrationCredentialsQuery(
27791
- import_developer_studio_api67.IntegrationNames.Vercel
27516
+ import_developer_studio_api61.IntegrationNames.Vercel
27792
27517
  );
27793
27518
  const oauthCredential = (_a = credentialsQuery.data) == null ? void 0 : _a.find(
27794
27519
  (credential) => credential.type === "oauth2" && credential.data.client_id === getWorkflowEnv("vercelClientId")
@@ -27805,15 +27530,15 @@ var useFetchVercelCredentials = () => {
27805
27530
  };
27806
27531
 
27807
27532
  // src/hooks/integrations/vercel/namespace.ts
27808
- var import_react_query17 = require("@tanstack/react-query");
27809
- var import_developer_studio_api68 = require("@livechat/developer-studio-api");
27533
+ var import_react_query14 = require("@tanstack/react-query");
27534
+ var import_developer_studio_api62 = require("@livechat/developer-studio-api");
27810
27535
  var vercelNamespacesQueryKeys = {
27811
27536
  getInstallations: ["vercel.getNamespaces"]
27812
27537
  };
27813
27538
  var useFetchVercelNamespaces = (enabled) => {
27814
- return (0, import_react_query17.useQuery)(
27539
+ return (0, import_react_query14.useQuery)(
27815
27540
  vercelNamespacesQueryKeys.getInstallations,
27816
- () => import_developer_studio_api68.api.integrations.vercel.integrations.getGitNamespaces(),
27541
+ () => import_developer_studio_api62.api.integrations.vercel.integrations.getGitNamespaces(),
27817
27542
  {
27818
27543
  retry: false,
27819
27544
  enabled
@@ -27826,15 +27551,15 @@ var VercelStatus = () => {
27826
27551
  var _a, _b, _c;
27827
27552
  const {
27828
27553
  userData: { user }
27829
- } = (0, import_developer_studio_ui_react85.useRootContext)();
27830
- const { state, login } = (0, import_react184.useContext)(AuthContext);
27831
- const { context: notifications } = (0, import_developer_studio_ui_react85.useNotifications)();
27554
+ } = (0, import_developer_studio_ui_react82.useRootContext)();
27555
+ const { state, login } = (0, import_react178.useContext)(AuthContext);
27556
+ const { context: notifications } = (0, import_developer_studio_ui_react82.useNotifications)();
27832
27557
  const removeCredentialMutation = useRemoveIntegrationCredential();
27833
27558
  const credentialsQuery = useFetchVercelCredentials();
27834
27559
  const namespacesQuery = useFetchVercelNamespaces(
27835
27560
  Boolean((_a = credentialsQuery.data) == null ? void 0 : _a.internal)
27836
27561
  );
27837
- const [isDropdownVisible, setIsDropdownVisible] = (0, import_react184.useState)(false);
27562
+ const [isDropdownVisible, setIsDropdownVisible] = (0, import_react178.useState)(false);
27838
27563
  const oauthCredential = credentialsQuery.data.internal;
27839
27564
  const otherCredentials = credentialsQuery.data.other;
27840
27565
  const isInstalled = ((_b = namespacesQuery.data) != null ? _b : []).some(
@@ -27843,17 +27568,17 @@ var VercelStatus = () => {
27843
27568
  const amplitudeDeploymentJourney = appDeploymentBlockAmplitudeJourneyFactory(
27844
27569
  user == null ? void 0 : user.meta.email
27845
27570
  );
27846
- const refetch = (0, import_react184.useCallback)(() => {
27571
+ const refetch = (0, import_react178.useCallback)(() => {
27847
27572
  credentialsQuery.refetch();
27848
27573
  namespacesQuery.refetch();
27849
27574
  }, [credentialsQuery, namespacesQuery]);
27850
- (0, import_react184.useEffect)(() => {
27575
+ (0, import_react178.useEffect)(() => {
27851
27576
  if (credentialsQuery.isFetching) {
27852
27577
  return;
27853
27578
  }
27854
27579
  if (!(oauthCredential == null ? void 0 : oauthCredential.data.connected)) {
27855
27580
  amplitudeDeploymentJourney.app.deployment.actions.authorize.requested(
27856
- import_developer_studio_api69.IntegrationNames.Vercel
27581
+ import_developer_studio_api63.IntegrationNames.Vercel
27857
27582
  );
27858
27583
  return;
27859
27584
  }
@@ -27862,7 +27587,7 @@ var VercelStatus = () => {
27862
27587
  }
27863
27588
  if (!isInstalled) {
27864
27589
  amplitudeDeploymentJourney.app.deployment.actions.install.requested(
27865
- import_developer_studio_api69.IntegrationNames.Vercel
27590
+ import_developer_studio_api63.IntegrationNames.Vercel
27866
27591
  );
27867
27592
  }
27868
27593
  }, [credentialsQuery, oauthCredential, namespacesQuery, isInstalled]);
@@ -27870,7 +27595,7 @@ var VercelStatus = () => {
27870
27595
  "my-channel",
27871
27596
  "my-event",
27872
27597
  (data) => {
27873
- if (data.userId !== (user == null ? void 0 : user.profile.id) || data.integration !== import_developer_studio_api69.IntegrationNames.Vercel) {
27598
+ if (data.userId !== (user == null ? void 0 : user.profile.id) || data.integration !== import_developer_studio_api63.IntegrationNames.Vercel) {
27874
27599
  return;
27875
27600
  }
27876
27601
  if (data.action === "authorize" || data.action === "install") {
@@ -27879,21 +27604,21 @@ var VercelStatus = () => {
27879
27604
  },
27880
27605
  [refetch]
27881
27606
  );
27882
- const Connect = (0, import_react184.useCallback)(
27607
+ const Connect = (0, import_react178.useCallback)(
27883
27608
  ({ credential }) => /* @__PURE__ */ jsx4(
27884
- Action_default10,
27609
+ Action_default9,
27885
27610
  {
27886
27611
  action: "authorize",
27887
27612
  executor: {
27888
27613
  type: "manual",
27889
27614
  render: (confirm) => /* @__PURE__ */ jsx4(
27890
- import_design_system_react_components102.Button,
27615
+ import_design_system_react_components101.Button,
27891
27616
  {
27892
27617
  kind: (credential == null ? void 0 : credential.data.connected) ? "secondary" : "primary",
27893
27618
  onClick: () => {
27894
27619
  if (!(credential == null ? void 0 : credential.data.connected)) {
27895
27620
  amplitudeDeploymentJourney.app.deployment.actions.authorize.click(
27896
- import_developer_studio_api69.IntegrationNames.Vercel
27621
+ import_developer_studio_api63.IntegrationNames.Vercel
27897
27622
  );
27898
27623
  }
27899
27624
  confirm();
@@ -27918,23 +27643,23 @@ var VercelStatus = () => {
27918
27643
  // eslint-disable-next-line react-hooks/exhaustive-deps
27919
27644
  [refetch]
27920
27645
  );
27921
- const Install = (0, import_react184.useCallback)(
27646
+ const Install = (0, import_react178.useCallback)(
27922
27647
  () => {
27923
27648
  var _a2;
27924
27649
  return /* @__PURE__ */ jsx4(
27925
- Action_default10,
27650
+ Action_default9,
27926
27651
  {
27927
27652
  action: "install",
27928
27653
  executor: {
27929
27654
  type: "manual",
27930
27655
  render: (confirm) => /* @__PURE__ */ jsx4(
27931
- import_design_system_react_components102.Button,
27656
+ import_design_system_react_components101.Button,
27932
27657
  {
27933
27658
  kind: namespacesQuery.isLoading ? "text" : isInstalled ? "secondary" : "primary",
27934
27659
  loading: namespacesQuery.isLoading,
27935
27660
  onClick: () => {
27936
27661
  amplitudeDeploymentJourney.app.deployment.actions.install.click(
27937
- import_developer_studio_api69.IntegrationNames.Vercel
27662
+ import_developer_studio_api63.IntegrationNames.Vercel
27938
27663
  );
27939
27664
  confirm();
27940
27665
  },
@@ -27949,7 +27674,7 @@ var VercelStatus = () => {
27949
27674
  }
27950
27675
  },
27951
27676
  context: {
27952
- credentialId: import_developer_studio_api69.IntegrationNames.Vercel,
27677
+ credentialId: import_developer_studio_api63.IntegrationNames.Vercel,
27953
27678
  token: (_a2 = state.vercel.raw.token) != null ? _a2 : "",
27954
27679
  showInstruction: !isInstalled ? true : void 0
27955
27680
  },
@@ -28024,11 +27749,11 @@ var VercelStatus = () => {
28024
27749
  return /* @__PURE__ */ jsxs2(
28025
27750
  IntegrationStatus_default,
28026
27751
  {
28027
- title: import_developer_studio_api69.IntegrationDisplayNames.Vercel,
28028
- subtitle: `${import_developer_studio_api69.IntegrationDisplayNames.Vercel} integration`,
28029
- header: `${import_developer_studio_api69.IntegrationDisplayNames.Vercel} integration`,
27752
+ title: import_developer_studio_api63.IntegrationDisplayNames.Vercel,
27753
+ subtitle: `${import_developer_studio_api63.IntegrationDisplayNames.Vercel} integration`,
27754
+ header: `${import_developer_studio_api63.IntegrationDisplayNames.Vercel} integration`,
28030
27755
  description: "Optimize your app deployment with Vercel to enjoy seamless integration, streamlined workflows, and easy collaboration, all without compromising on speed or quality.",
28031
- icon: /* @__PURE__ */ jsx4(import_developer_studio_ui_react85.Vercel, {}),
27756
+ icon: /* @__PURE__ */ jsx4(import_developer_studio_ui_react82.Vercel, {}),
28032
27757
  dataCy: "vercel-integration-component",
28033
27758
  children: [
28034
27759
  /* @__PURE__ */ jsx4(
@@ -28037,22 +27762,22 @@ var VercelStatus = () => {
28037
27762
  title: "Text Platform | Developer Console",
28038
27763
  isConnected: Boolean(oauthCredential == null ? void 0 : oauthCredential.data.connected),
28039
27764
  isLoading: credentialsQuery.isFetching,
28040
- icon: /* @__PURE__ */ jsx4(import_developer_studio_ui_react85.Vercel, {}),
28041
- action: !(oauthCredential == null ? void 0 : oauthCredential.data.connected) && !credentialsQuery.isFetching ? /* @__PURE__ */ jsx4(Connect, {}) : !credentialsQuery.isFetching ? /* @__PURE__ */ jsxs2(import_developer_studio_ui_react85.Row, { notPadded: true, flexEnd: true, gap: `var(${import_design_system_react_components102.SpacingToken.Spacing2})`, children: [
27765
+ icon: /* @__PURE__ */ jsx4(import_developer_studio_ui_react82.Vercel, {}),
27766
+ action: !(oauthCredential == null ? void 0 : oauthCredential.data.connected) && !credentialsQuery.isFetching ? /* @__PURE__ */ jsx4(Connect, {}) : !credentialsQuery.isFetching ? /* @__PURE__ */ jsxs2(import_developer_studio_ui_react82.Row, { notPadded: true, flexEnd: true, gap: `var(${import_design_system_react_components101.SpacingToken.Spacing2})`, children: [
28042
27767
  !namespacesQuery.isFetching && !isInstalled ? /* @__PURE__ */ jsx4(Install, {}) : void 0,
28043
27768
  /* @__PURE__ */ jsx4(
28044
- import_design_system_react_components102.ActionMenu,
27769
+ import_design_system_react_components101.ActionMenu,
28045
27770
  {
28046
27771
  visible: isDropdownVisible,
28047
27772
  placement: "bottom",
28048
27773
  triggerRenderer: /* @__PURE__ */ jsx4(
28049
- import_design_system_react_components102.Button,
27774
+ import_design_system_react_components101.Button,
28050
27775
  {
28051
27776
  kind: "secondary",
28052
27777
  onClick: () => {
28053
27778
  setIsDropdownVisible(!isDropdownVisible);
28054
27779
  },
28055
- icon: isDropdownVisible ? /* @__PURE__ */ jsx4(import_design_system_react_components102.Icon, { source: import_design_system_icons55.ChevronUp }) : /* @__PURE__ */ jsx4(import_design_system_react_components102.Icon, { source: import_design_system_icons55.ChevronDown }),
27780
+ icon: isDropdownVisible ? /* @__PURE__ */ jsx4(import_design_system_react_components101.Icon, { source: import_design_system_icons54.ChevronUp }) : /* @__PURE__ */ jsx4(import_design_system_react_components101.Icon, { source: import_design_system_icons54.ChevronDown }),
28056
27781
  iconPosition: "right",
28057
27782
  children: "Settings"
28058
27783
  }
@@ -28064,17 +27789,17 @@ var VercelStatus = () => {
28064
27789
  }
28065
27790
  )
28066
27791
  ] }) : void 0,
28067
- status: !credentialsQuery.isFetching && (oauthCredential == null ? void 0 : oauthCredential.name) ? /* @__PURE__ */ jsxs2(import_react184.Fragment, { children: [
27792
+ status: !credentialsQuery.isFetching && (oauthCredential == null ? void 0 : oauthCredential.name) ? /* @__PURE__ */ jsxs2(import_react178.Fragment, { children: [
28068
27793
  (oauthCredential == null ? void 0 : oauthCredential.data.connected) ? getConnectionStatus(
28069
27794
  isInstalled,
28070
27795
  "install",
28071
27796
  namespacesQuery.isFetching
28072
27797
  ) : void 0,
28073
27798
  /* @__PURE__ */ jsx4(
28074
- import_design_system_react_components102.Button,
27799
+ import_design_system_react_components101.Button,
28075
27800
  {
28076
27801
  size: "xcompact",
28077
- icon: /* @__PURE__ */ jsx4(import_design_system_react_components102.Icon, { source: import_design_system_icons55.Delete, size: "small" }),
27802
+ icon: /* @__PURE__ */ jsx4(import_design_system_react_components101.Icon, { source: import_design_system_icons54.Delete, size: "small" }),
28078
27803
  onClick: () => {
28079
27804
  if (oauthCredential.name) {
28080
27805
  removeCredentialMutation.mutateAsync(oauthCredential);
@@ -28097,145 +27822,133 @@ var VercelStatus = () => {
28097
27822
  }
28098
27823
  );
28099
27824
  };
28100
- var Status_default9 = VercelStatus;
27825
+ var Status_default8 = VercelStatus;
28101
27826
 
28102
27827
  // src/views/Settings/Integrations/Vercel/index.tsx
28103
- var import_jsx_runtime170 = require("react/jsx-runtime");
27828
+ var import_jsx_runtime166 = require("react/jsx-runtime");
28104
27829
  var VercelIntegration = () => {
28105
- return /* @__PURE__ */ (0, import_jsx_runtime170.jsxs)(import_react_router_dom43.Routes, { children: [
28106
- /* @__PURE__ */ (0, import_jsx_runtime170.jsx)(import_react_router_dom43.Route, { path: "/", element: /* @__PURE__ */ (0, import_jsx_runtime170.jsx)(import_react_router_dom43.Navigate, { to: "status", replace: true }) }),
28107
- /* @__PURE__ */ (0, import_jsx_runtime170.jsx)(import_react_router_dom43.Route, { path: "/status", element: /* @__PURE__ */ (0, import_jsx_runtime170.jsx)(Status_default9, {}) }),
28108
- /* @__PURE__ */ (0, import_jsx_runtime170.jsx)(
28109
- import_react_router_dom43.Route,
27830
+ return /* @__PURE__ */ (0, import_jsx_runtime166.jsxs)(import_react_router_dom42.Routes, { children: [
27831
+ /* @__PURE__ */ (0, import_jsx_runtime166.jsx)(import_react_router_dom42.Route, { path: "/", element: /* @__PURE__ */ (0, import_jsx_runtime166.jsx)(import_react_router_dom42.Navigate, { to: "status", replace: true }) }),
27832
+ /* @__PURE__ */ (0, import_jsx_runtime166.jsx)(import_react_router_dom42.Route, { path: "/status", element: /* @__PURE__ */ (0, import_jsx_runtime166.jsx)(Status_default8, {}) }),
27833
+ /* @__PURE__ */ (0, import_jsx_runtime166.jsx)(
27834
+ import_react_router_dom42.Route,
28110
27835
  {
28111
27836
  path: "/action/:action/:data?/:context?",
28112
- element: /* @__PURE__ */ (0, import_jsx_runtime170.jsx)(Action_default10, {})
27837
+ element: /* @__PURE__ */ (0, import_jsx_runtime166.jsx)(Action_default9, {})
28113
27838
  }
28114
27839
  ),
28115
- /* @__PURE__ */ (0, import_jsx_runtime170.jsx)(import_react_router_dom43.Route, { path: "/callback/:action", element: /* @__PURE__ */ (0, import_jsx_runtime170.jsx)(Callback_default10, {}) })
27840
+ /* @__PURE__ */ (0, import_jsx_runtime166.jsx)(import_react_router_dom42.Route, { path: "/callback/:action", element: /* @__PURE__ */ (0, import_jsx_runtime166.jsx)(Callback_default9, {}) })
28116
27841
  ] });
28117
27842
  };
28118
27843
  var Vercel_default = VercelIntegration;
28119
27844
 
28120
27845
  // src/views/Settings/Integrations/index.tsx
28121
- var import_jsx_runtime171 = require("react/jsx-runtime");
27846
+ var import_jsx_runtime167 = require("react/jsx-runtime");
28122
27847
  function IntegrationsSubNavGroup() {
28123
- const { pathname } = (0, import_react_router_dom44.useLocation)();
28124
- const navigate = (0, import_react_router_dom44.useNavigate)();
27848
+ const { pathname } = (0, import_react_router_dom43.useLocation)();
27849
+ const navigate = (0, import_react_router_dom43.useNavigate)();
28125
27850
  const {
28126
27851
  userData: { user }
28127
- } = (0, import_developer_studio_ui_react86.useRootContext)();
27852
+ } = (0, import_developer_studio_ui_react83.useRootContext)();
28128
27853
  const { data: userHasInstalledWorkflows } = useFetchUserInstalledWorkflows(user);
28129
- return /* @__PURE__ */ (0, import_jsx_runtime171.jsxs)(
28130
- import_design_system_react_components103.SideNavigationGroup,
27854
+ return /* @__PURE__ */ (0, import_jsx_runtime167.jsxs)(
27855
+ import_design_system_react_components102.SideNavigationGroup,
28131
27856
  {
28132
27857
  className: "navigation-group",
28133
27858
  isCollapsible: true,
28134
27859
  label: "Integrations",
28135
27860
  shouldOpenOnInit: pathname.includes("integrations"),
28136
27861
  children: [
28137
- /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(
28138
- import_design_system_react_components103.SideNavigationItem,
27862
+ /* @__PURE__ */ (0, import_jsx_runtime167.jsx)(
27863
+ import_design_system_react_components102.SideNavigationItem,
28139
27864
  {
28140
- "data-testid": `${import_developer_studio_api70.IntegrationNames.GitHub}-option`,
27865
+ "data-testid": `${import_developer_studio_api64.IntegrationNames.GitHub}-option`,
28141
27866
  isActive: pathname.includes("/settings/integrations/github"),
28142
- label: import_developer_studio_api70.IntegrationDisplayNames.GitHub,
27867
+ label: import_developer_studio_api64.IntegrationDisplayNames.GitHub,
28143
27868
  onClick: () => {
28144
27869
  navigate("/settings/integrations/github");
28145
27870
  },
28146
27871
  shouldKeepIconSpace: false
28147
27872
  }
28148
27873
  ),
28149
- /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(
28150
- import_design_system_react_components103.SideNavigationItem,
27874
+ /* @__PURE__ */ (0, import_jsx_runtime167.jsx)(
27875
+ import_design_system_react_components102.SideNavigationItem,
28151
27876
  {
28152
- "data-testid": `${import_developer_studio_api70.IntegrationNames.Netlify}-option`,
27877
+ "data-testid": `${import_developer_studio_api64.IntegrationNames.Netlify}-option`,
28153
27878
  isActive: pathname.includes("/settings/integrations/netlify"),
28154
- label: import_developer_studio_api70.IntegrationDisplayNames.Netlify,
27879
+ label: import_developer_studio_api64.IntegrationDisplayNames.Netlify,
28155
27880
  onClick: () => {
28156
27881
  navigate("/settings/integrations/netlify");
28157
27882
  },
28158
27883
  shouldKeepIconSpace: false
28159
27884
  }
28160
27885
  ),
28161
- /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(
28162
- import_design_system_react_components103.SideNavigationItem,
27886
+ /* @__PURE__ */ (0, import_jsx_runtime167.jsx)(
27887
+ import_design_system_react_components102.SideNavigationItem,
28163
27888
  {
28164
- "data-testid": `${import_developer_studio_api70.IntegrationNames.Vercel}-option`,
27889
+ "data-testid": `${import_developer_studio_api64.IntegrationNames.Vercel}-option`,
28165
27890
  isActive: pathname.includes("/settings/integrations/vercel"),
28166
- label: import_developer_studio_api70.IntegrationDisplayNames.Vercel,
27891
+ label: import_developer_studio_api64.IntegrationDisplayNames.Vercel,
28167
27892
  onClick: () => {
28168
27893
  navigate("/settings/integrations/vercel");
28169
27894
  },
28170
27895
  shouldKeepIconSpace: false
28171
27896
  }
28172
27897
  ),
28173
- /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(
28174
- import_design_system_react_components103.SideNavigationItem,
27898
+ userHasInstalledWorkflows ? /* @__PURE__ */ (0, import_jsx_runtime167.jsx)(
27899
+ import_design_system_react_components102.SideNavigationItem,
28175
27900
  {
28176
- "data-testid": `${import_developer_studio_api70.IntegrationNames.Neon}-option`,
28177
- isActive: pathname.includes("/settings/integrations/neon"),
28178
- label: import_developer_studio_api70.IntegrationDisplayNames.Neon,
28179
- onClick: () => {
28180
- navigate("/settings/integrations/neon");
28181
- },
28182
- shouldKeepIconSpace: false
28183
- }
28184
- ),
28185
- userHasInstalledWorkflows ? /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(
28186
- import_design_system_react_components103.SideNavigationItem,
28187
- {
28188
- "data-testid": `${import_developer_studio_api70.IntegrationNames.Mailchimp}-option`,
27901
+ "data-testid": `${import_developer_studio_api64.IntegrationNames.Mailchimp}-option`,
28189
27902
  isActive: pathname.includes("/settings/integrations/mailchimp"),
28190
- label: import_developer_studio_api70.IntegrationDisplayNames.Mailchimp,
27903
+ label: import_developer_studio_api64.IntegrationDisplayNames.Mailchimp,
28191
27904
  onClick: () => {
28192
27905
  navigate("/settings/integrations/mailchimp");
28193
27906
  },
28194
27907
  shouldKeepIconSpace: false
28195
27908
  }
28196
27909
  ) : void 0,
28197
- userHasInstalledWorkflows ? /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(
28198
- import_design_system_react_components103.SideNavigationItem,
27910
+ userHasInstalledWorkflows ? /* @__PURE__ */ (0, import_jsx_runtime167.jsx)(
27911
+ import_design_system_react_components102.SideNavigationItem,
28199
27912
  {
28200
- "data-testid": `${import_developer_studio_api70.IntegrationNames.Shopify}-option`,
27913
+ "data-testid": `${import_developer_studio_api64.IntegrationNames.Shopify}-option`,
28201
27914
  isActive: pathname.includes("/settings/integrations/shopify"),
28202
- label: import_developer_studio_api70.IntegrationDisplayNames.Shopify,
27915
+ label: import_developer_studio_api64.IntegrationDisplayNames.Shopify,
28203
27916
  onClick: () => {
28204
27917
  navigate("/settings/integrations/shopify");
28205
27918
  },
28206
27919
  shouldKeepIconSpace: false
28207
27920
  }
28208
27921
  ) : void 0,
28209
- userHasInstalledWorkflows ? /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(
28210
- import_design_system_react_components103.SideNavigationItem,
27922
+ userHasInstalledWorkflows ? /* @__PURE__ */ (0, import_jsx_runtime167.jsx)(
27923
+ import_design_system_react_components102.SideNavigationItem,
28211
27924
  {
28212
- "data-testid": `${import_developer_studio_api70.IntegrationNames.HubSpot}-option`,
27925
+ "data-testid": `${import_developer_studio_api64.IntegrationNames.HubSpot}-option`,
28213
27926
  isActive: pathname.includes("/settings/integrations/hubspot"),
28214
- label: import_developer_studio_api70.IntegrationDisplayNames.HubSpot,
27927
+ label: import_developer_studio_api64.IntegrationDisplayNames.HubSpot,
28215
27928
  onClick: () => {
28216
27929
  navigate("/settings/integrations/hubspot");
28217
27930
  },
28218
27931
  shouldKeepIconSpace: false
28219
27932
  }
28220
27933
  ) : void 0,
28221
- userHasInstalledWorkflows ? /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(
28222
- import_design_system_react_components103.SideNavigationItem,
27934
+ userHasInstalledWorkflows ? /* @__PURE__ */ (0, import_jsx_runtime167.jsx)(
27935
+ import_design_system_react_components102.SideNavigationItem,
28223
27936
  {
28224
- "data-testid": `${import_developer_studio_api70.IntegrationNames.BigCommerce}-option`,
27937
+ "data-testid": `${import_developer_studio_api64.IntegrationNames.BigCommerce}-option`,
28225
27938
  isActive: pathname.includes("/settings/integrations/bigcommerce"),
28226
- label: import_developer_studio_api70.IntegrationDisplayNames.BigCommerce,
27939
+ label: import_developer_studio_api64.IntegrationDisplayNames.BigCommerce,
28227
27940
  onClick: () => {
28228
27941
  navigate("/settings/integrations/bigcommerce");
28229
27942
  },
28230
27943
  shouldKeepIconSpace: false
28231
27944
  }
28232
27945
  ) : void 0,
28233
- userHasInstalledWorkflows ? /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(
28234
- import_design_system_react_components103.SideNavigationItem,
27946
+ userHasInstalledWorkflows ? /* @__PURE__ */ (0, import_jsx_runtime167.jsx)(
27947
+ import_design_system_react_components102.SideNavigationItem,
28235
27948
  {
28236
- "data-testid": `${import_developer_studio_api70.IntegrationNames.Text}-option`,
27949
+ "data-testid": `${import_developer_studio_api64.IntegrationNames.Text}-option`,
28237
27950
  isActive: pathname.includes("/settings/integrations/text"),
28238
- label: import_developer_studio_api70.IntegrationDisplayNames.Text,
27951
+ label: import_developer_studio_api64.IntegrationDisplayNames.Text,
28239
27952
  onClick: () => {
28240
27953
  navigate("/settings/integrations/text/status");
28241
27954
  },
@@ -28247,51 +27960,45 @@ function IntegrationsSubNavGroup() {
28247
27960
  );
28248
27961
  }
28249
27962
  function Integrations() {
28250
- return /* @__PURE__ */ (0, import_jsx_runtime171.jsxs)(import_react_router_dom44.Routes, { children: [
28251
- /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(import_react_router_dom44.Route, { element: /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(import_react_router_dom44.Navigate, { replace: true, to: "github" }), path: "/" }),
28252
- /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(import_react_router_dom44.Route, { element: /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(GitHub_default, {}), path: "/github/*" }),
28253
- /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(import_react_router_dom44.Route, { element: /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(Netlify_default, {}), path: "/netlify/*" }),
28254
- /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(import_react_router_dom44.Route, { element: /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(Vercel_default, {}), path: "/vercel/*" }),
28255
- /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(import_react_router_dom44.Route, { element: /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(Neon_default, {}), path: "/neon/*" }),
28256
- /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(import_react_router_dom44.Route, { element: /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(Mailchimp_default2, {}), path: "/mailchimp/*" }),
28257
- /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(import_react_router_dom44.Route, { element: /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(Shopify_default2, {}), path: "/shopify/*" }),
28258
- /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(import_react_router_dom44.Route, { element: /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(HubSpot_default2, {}), path: "/hubspot/*" }),
28259
- /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(import_react_router_dom44.Route, { element: /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(BigCommerce_default2, {}), path: "/bigcommerce/*" }),
28260
- /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(import_react_router_dom44.Route, { element: /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(Text_default2, {}), path: "/text/*" }),
28261
- /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(import_react_router_dom44.Route, { element: /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(Accounts_default, {}), path: "/accounts/*" })
27963
+ return /* @__PURE__ */ (0, import_jsx_runtime167.jsxs)(import_react_router_dom43.Routes, { children: [
27964
+ /* @__PURE__ */ (0, import_jsx_runtime167.jsx)(import_react_router_dom43.Route, { element: /* @__PURE__ */ (0, import_jsx_runtime167.jsx)(import_react_router_dom43.Navigate, { replace: true, to: "github" }), path: "/" }),
27965
+ /* @__PURE__ */ (0, import_jsx_runtime167.jsx)(import_react_router_dom43.Route, { element: /* @__PURE__ */ (0, import_jsx_runtime167.jsx)(GitHub_default, {}), path: "/github/*" }),
27966
+ /* @__PURE__ */ (0, import_jsx_runtime167.jsx)(import_react_router_dom43.Route, { element: /* @__PURE__ */ (0, import_jsx_runtime167.jsx)(Netlify_default, {}), path: "/netlify/*" }),
27967
+ /* @__PURE__ */ (0, import_jsx_runtime167.jsx)(import_react_router_dom43.Route, { element: /* @__PURE__ */ (0, import_jsx_runtime167.jsx)(Vercel_default, {}), path: "/vercel/*" }),
27968
+ /* @__PURE__ */ (0, import_jsx_runtime167.jsx)(import_react_router_dom43.Route, { element: /* @__PURE__ */ (0, import_jsx_runtime167.jsx)(Mailchimp_default2, {}), path: "/mailchimp/*" }),
27969
+ /* @__PURE__ */ (0, import_jsx_runtime167.jsx)(import_react_router_dom43.Route, { element: /* @__PURE__ */ (0, import_jsx_runtime167.jsx)(Shopify_default2, {}), path: "/shopify/*" }),
27970
+ /* @__PURE__ */ (0, import_jsx_runtime167.jsx)(import_react_router_dom43.Route, { element: /* @__PURE__ */ (0, import_jsx_runtime167.jsx)(HubSpot_default2, {}), path: "/hubspot/*" }),
27971
+ /* @__PURE__ */ (0, import_jsx_runtime167.jsx)(import_react_router_dom43.Route, { element: /* @__PURE__ */ (0, import_jsx_runtime167.jsx)(BigCommerce_default2, {}), path: "/bigcommerce/*" }),
27972
+ /* @__PURE__ */ (0, import_jsx_runtime167.jsx)(import_react_router_dom43.Route, { element: /* @__PURE__ */ (0, import_jsx_runtime167.jsx)(Text_default2, {}), path: "/text/*" }),
27973
+ /* @__PURE__ */ (0, import_jsx_runtime167.jsx)(import_react_router_dom43.Route, { element: /* @__PURE__ */ (0, import_jsx_runtime167.jsx)(Accounts_default, {}), path: "/accounts/*" })
28262
27974
  ] });
28263
27975
  }
28264
27976
  var Integrations_default = Integrations;
28265
27977
 
28266
27978
  // src/views/Settings/index.tsx
28267
- var import_jsx_runtime172 = require("react/jsx-runtime");
27979
+ var import_jsx_runtime168 = require("react/jsx-runtime");
28268
27980
  function SettingsSubNav() {
28269
- return /* @__PURE__ */ (0, import_jsx_runtime172.jsx)(IntegrationsSubNavGroup, {});
27981
+ return /* @__PURE__ */ (0, import_jsx_runtime168.jsx)(IntegrationsSubNavGroup, {});
28270
27982
  }
28271
27983
  function Settings() {
28272
- return /* @__PURE__ */ (0, import_jsx_runtime172.jsxs)(import_react_router_dom45.Routes, { children: [
28273
- /* @__PURE__ */ (0, import_jsx_runtime172.jsx)(import_react_router_dom45.Route, { element: /* @__PURE__ */ (0, import_jsx_runtime172.jsx)(import_react_router_dom45.Navigate, { replace: true, to: "integrations" }), path: "/" }),
28274
- /* @__PURE__ */ (0, import_jsx_runtime172.jsx)(import_react_router_dom45.Route, { element: /* @__PURE__ */ (0, import_jsx_runtime172.jsx)(Integrations_default, {}), path: "/integrations/*" })
27984
+ return /* @__PURE__ */ (0, import_jsx_runtime168.jsxs)(import_react_router_dom44.Routes, { children: [
27985
+ /* @__PURE__ */ (0, import_jsx_runtime168.jsx)(import_react_router_dom44.Route, { element: /* @__PURE__ */ (0, import_jsx_runtime168.jsx)(import_react_router_dom44.Navigate, { replace: true, to: "integrations" }), path: "/" }),
27986
+ /* @__PURE__ */ (0, import_jsx_runtime168.jsx)(import_react_router_dom44.Route, { element: /* @__PURE__ */ (0, import_jsx_runtime168.jsx)(Integrations_default, {}), path: "/integrations/*" })
28275
27987
  ] });
28276
27988
  }
28277
27989
  var Settings_default = Settings;
28278
27990
 
28279
27991
  // src/views/Common/LoginError.tsx
28280
- var import_design_system_react_components104 = require("@livechat/design-system-react-components");
28281
- var import_developer_studio_ui_react87 = require("@livechat/developer-studio-ui-react");
28282
-
28283
- // src/assets/flows/workflows-welcome.png
28284
- var workflows_welcome_default = "./workflows-welcome-N73H5YQR.png";
28285
-
28286
- // src/views/Common/LoginError.tsx
27992
+ var import_design_system_react_components103 = require("@livechat/design-system-react-components");
27993
+ var import_developer_studio_ui_react84 = require("@livechat/developer-studio-ui-react");
28287
27994
  var imgContainerCss2 = css`
28288
27995
  width: 100%;
28289
27996
  display: flex;
28290
27997
  justify-content: center;
28291
27998
  `;
28292
27999
  var paragraphCss = (heading) => css`
28293
- ${heading ? import_developer_studio_ui_react87.theme.typography.heading.xs : import_developer_studio_ui_react87.theme.typography.paragraph.s}
28294
- margin-top: var(${heading ? import_design_system_react_components104.SpacingToken.Spacing10 : import_design_system_react_components104.SpacingToken.Spacing2});
28000
+ ${heading ? import_developer_studio_ui_react84.theme.typography.heading.xs : import_developer_studio_ui_react84.theme.typography.paragraph.s}
28001
+ margin-top: var(${heading ? import_design_system_react_components103.SpacingToken.Spacing10 : import_design_system_react_components103.SpacingToken.Spacing2});
28295
28002
  `;
28296
28003
  var wrapperCss = css`
28297
28004
  display: flex;
@@ -28301,26 +28008,19 @@ var wrapperCss = css`
28301
28008
  height: 100vh;
28302
28009
  width: 100%;
28303
28010
  `;
28304
- function LoginErrorPage() {
28305
- const { authorize } = (0, import_developer_studio_ui_react87.useRootContext)();
28011
+ function LoginErrorPage({
28012
+ errorImage,
28013
+ welcomeImage
28014
+ }) {
28015
+ const { authorize } = (0, import_developer_studio_ui_react84.useRootContext)();
28306
28016
  if (getWorkflowEnv("isHeadless")) {
28307
28017
  return /* @__PURE__ */ jsxs2("div", { css: wrapperCss, children: [
28308
- /* @__PURE__ */ jsx4(import_developer_studio_ui_react87.Row, { center: true, noMaxWidth: true, verticalCenter: true, children: /* @__PURE__ */ jsx4(import_developer_studio_ui_react87.Column, { center: true, width: 10, children: /* @__PURE__ */ jsx4("div", { css: imgContainerCss2, children: /* @__PURE__ */ jsx4(
28309
- "img",
28310
- {
28311
- alt: "",
28312
- css: css`
28313
- width: 600px;
28314
- margin-bottom: var(${import_design_system_react_components104.SpacingToken.Spacing7});
28315
- `,
28316
- src: workflows_welcome_default
28317
- }
28318
- ) }) }) }),
28319
- /* @__PURE__ */ jsx4(import_developer_studio_ui_react87.Row, { center: true, noMaxWidth: true, verticalCenter: true, children: /* @__PURE__ */ jsxs2(import_developer_studio_ui_react87.Column, { center: true, width: 10, children: [
28320
- /* @__PURE__ */ jsx4(import_developer_studio_ui_react87.Intro, { center: true, header: "Welcome to Workflows!", headerSize: "m" }),
28018
+ /* @__PURE__ */ jsx4(import_developer_studio_ui_react84.Row, { center: true, noMaxWidth: true, verticalCenter: true, children: /* @__PURE__ */ jsx4(import_developer_studio_ui_react84.Column, { center: true, width: 10, children: /* @__PURE__ */ jsx4("div", { css: imgContainerCss2, children: welcomeImage }) }) }),
28019
+ /* @__PURE__ */ jsx4(import_developer_studio_ui_react84.Row, { center: true, noMaxWidth: true, verticalCenter: true, children: /* @__PURE__ */ jsxs2(import_developer_studio_ui_react84.Column, { center: true, width: 10, children: [
28020
+ /* @__PURE__ */ jsx4(import_developer_studio_ui_react84.Intro, { center: true, header: "Welcome to Workflows!", headerSize: "m" }),
28321
28021
  /* @__PURE__ */ jsx4("p", { css: paragraphCss(false), children: "You're using a browser that required additional login to access Workflows" }),
28322
28022
  /* @__PURE__ */ jsx4("div", { children: /* @__PURE__ */ jsx4(
28323
- import_design_system_react_components104.Button,
28023
+ import_design_system_react_components103.Button,
28324
28024
  {
28325
28025
  kind: "primary",
28326
28026
  onClick: () => {
@@ -28332,7 +28032,7 @@ function LoginErrorPage() {
28332
28032
  ] }) })
28333
28033
  ] });
28334
28034
  }
28335
- return /* @__PURE__ */ jsx4(import_developer_studio_ui_react87.LoginErrorPage, {});
28035
+ return /* @__PURE__ */ jsx4(import_developer_studio_ui_react84.LoginErrorPage, { image: errorImage });
28336
28036
  }
28337
28037
  var LoginError_default = LoginErrorPage;
28338
28038
  // Annotate the CommonJS export names for ESM import in node: