@hiver/connector-admin 0.0.10-beta.70 → 0.0.10-beta.72

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/app/connectors/index.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAOjD,eAAO,MAAM,aAAa,2DAAiE,UAAU,4CAmCpG,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/app/connectors/index.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAOjD,eAAO,MAAM,aAAa,2DAAiE,UAAU,4CAkCpG,CAAC"}
@@ -1,4 +1,4 @@
1
- import { b7 as s, b8 as e } from "./index-BosHRUtv.js";
1
+ import { b7 as s, b8 as e } from "./index-BkNoFPPk.js";
2
2
  const t = s.withTypes(), a = e.withTypes();
3
3
  export {
4
4
  a,
@@ -1,6 +1,6 @@
1
- import { s as p, B as d, b4 as f, b5 as A, b6 as h, A as u, aI as w, aJ as l, j as e } from "./index-BosHRUtv.js";
1
+ import { s as p, B as d, b4 as f, b5 as A, b6 as h, A as u, aI as w, aJ as l, j as e } from "./index-BkNoFPPk.js";
2
2
  import { useEffect as r } from "react";
3
- import { u as m, a as c } from "./hooks-BAfCCOvq.js";
3
+ import { u as m, a as c } from "./hooks-CaKwIqOQ.js";
4
4
  import { d as S, e as x } from "./selectors-BZXXKPzK.js";
5
5
  const T = p(d)`
6
6
  position: fixed;
@@ -30666,35 +30666,35 @@ const kk = (e) => ck(
30666
30666
  {
30667
30667
  path: qt.BASEPATH,
30668
30668
  lazy: async () => {
30669
- const { ConnectorView: t } = await import("./index-W61PqL-Q.js");
30669
+ const { ConnectorView: t } = await import("./index-DBAlgVat.js");
30670
30670
  return { Component: t };
30671
30671
  },
30672
30672
  children: [
30673
30673
  {
30674
30674
  index: !0,
30675
30675
  lazy: async () => {
30676
- const { Dashboard: t } = await import("./index-ETGz4Td1.js");
30676
+ const { Dashboard: t } = await import("./index-CpN7GZsq.js");
30677
30677
  return { Component: t };
30678
30678
  }
30679
30679
  },
30680
30680
  {
30681
30681
  path: qt.DASHBOARD,
30682
30682
  lazy: async () => {
30683
- const { Dashboard: t } = await import("./index-ETGz4Td1.js");
30683
+ const { Dashboard: t } = await import("./index-CpN7GZsq.js");
30684
30684
  return { Component: t };
30685
30685
  }
30686
30686
  },
30687
30687
  {
30688
30688
  path: qt.AGENT,
30689
30689
  lazy: async () => {
30690
- const { Agent: t } = await import("./index-BU6TxTiv.js");
30690
+ const { Agent: t } = await import("./index-JVDuCNQY.js");
30691
30691
  return { Component: t };
30692
30692
  }
30693
30693
  },
30694
30694
  {
30695
30695
  path: `${qt.API_VIEW}/:id`,
30696
30696
  lazy: async () => {
30697
- const { ConnectorConfig: t } = await import("./index-DyaxzPz4.js");
30697
+ const { ConnectorConfig: t } = await import("./index-Dvhh_pe5.js");
30698
30698
  return { Component: t };
30699
30699
  }
30700
30700
  }
@@ -30703,14 +30703,14 @@ const kk = (e) => ck(
30703
30703
  {
30704
30704
  path: `${qt.CONNECTOR_SETTINGS}/:id`,
30705
30705
  lazy: async () => {
30706
- const { Settings: t } = await import("./index-BZZxOOmE.js");
30706
+ const { Settings: t } = await import("./index-D-xTarWl.js");
30707
30707
  return { Component: t };
30708
30708
  }
30709
30709
  },
30710
30710
  {
30711
30711
  path: qt.AUTH_SUCCESS,
30712
30712
  lazy: async () => {
30713
- const { AuthSuccess: t } = await import("./index-DHkWWLq2.js");
30713
+ const { AuthSuccess: t } = await import("./index-B1287XXv.js");
30714
30714
  return { Component: t };
30715
30715
  }
30716
30716
  }
@@ -30721,7 +30721,7 @@ const kk = (e) => ck(
30721
30721
  ), Rk = ({ basename: e = "/", availableFeatures: t = {}, extraParams: n = {} }) => {
30722
30722
  const { setAvailableFeatures: r, setSendTrackingEvent: o } = Qp(zm), { sendTrackingEvent: a } = n;
30723
30723
  ol(() => {
30724
- r(t), a && o(a);
30724
+ r(t), a && o(() => a);
30725
30725
  }, [r, t, o, a]);
30726
30726
  const i = gA(() => kk(e), [e]);
30727
30727
  return /* @__PURE__ */ P.jsx(mk, { router: i });
@@ -31756,7 +31756,7 @@ const kk = (e) => ck(
31756
31756
  align-self: auto !important;
31757
31757
  margin-left: 12px;
31758
31758
  }
31759
- `, HR = ({ basename: e, baseUrls: t, availableFeatures: n = {}, extraParams: r }) => (console.log("---/* DEBUG extraParams */---", r), /* @__PURE__ */ P.jsx(Kk, { children: /* @__PURE__ */ P.jsx(kO, { children: vT(n) ? /* @__PURE__ */ P.jsx(Yk, { availableFeatures: n }) : /* @__PURE__ */ P.jsxs(P.Fragment, { children: [
31759
+ `, HR = ({ basename: e, baseUrls: t, availableFeatures: n = {}, extraParams: r }) => /* @__PURE__ */ P.jsx(Kk, { children: /* @__PURE__ */ P.jsx(kO, { children: vT(n) ? /* @__PURE__ */ P.jsx(Yk, { availableFeatures: n }) : /* @__PURE__ */ P.jsxs(P.Fragment, { children: [
31760
31760
  /* @__PURE__ */ P.jsx(
31761
31761
  Rk,
31762
31762
  {
@@ -31782,7 +31782,7 @@ const kk = (e) => ck(
31782
31782
  ) }),
31783
31783
  document.body
31784
31784
  )
31785
- ] }) }) }));
31785
+ ] }) }) });
31786
31786
  export {
31787
31787
  jr as $,
31788
31788
  Le as A,
@@ -1,8 +1,8 @@
1
- import { s as e, o as n, j as t, u as H, f as _, L as v, A as E, d as A, e as T, g as S, h as N, R as g, I as D, b, B as h, T as d, i as w, k as R, l as I } from "./index-BosHRUtv.js";
1
+ import { s as e, o as n, j as t, u as H, f as _, L as v, A as E, d as A, e as T, g as S, h as N, R as g, I as D, b, B as h, T as d, i as w, k as R, l as I } from "./index-BkNoFPPk.js";
2
2
  import { useEffect as m, useState as M } from "react";
3
- import { E as O, a as B, R as f, C as V, b as $, c as U } from "./index-2AYwYlgP.js";
4
- import { u as j, a as l } from "./hooks-BAfCCOvq.js";
5
- import { C as x, s as y, a as W, b as P, c as Z, d as q } from "./showMessage-BTOprmUT.js";
3
+ import { E as O, a as B, R as f, C as V, b as $, c as U } from "./index-gZDsJGp1.js";
4
+ import { u as j, a as l } from "./hooks-CaKwIqOQ.js";
5
+ import { C as x, s as y, a as W, b as P, c as Z, d as q } from "./showMessage-BxU_qn4N.js";
6
6
  const z = e("li")`
7
7
  width: 252px;
8
8
  height: 187px;
@@ -1,9 +1,9 @@
1
- import { s as X, b as z, o as Ue, T as pe, u as Yt, j as C, ao as Wn, ap as E, aq as Jt, ar as gt, as as Nn, B as U, at as Xn, w as Zn, au as wn, av as Pn, aw as Te, ax as Hn, i as jt, ay as O, az as Ln, aA as Dn, aB as bt, aC as pt, aD as On, A as Qe, aE as Mn, x as kn, y as Yn, aF as Jn, aG as jn, z as zn, D as Un, aH as De, R as fe, aI as Qn, aJ as It, aK as mt, aL as _n, aM as Kn, aN as $n } from "./index-BosHRUtv.js";
1
+ import { s as X, b as z, o as Ue, T as pe, u as Yt, j as C, ao as Wn, ap as E, aq as Jt, ar as gt, as as Nn, B as U, at as Xn, w as Zn, au as wn, av as Pn, aw as Te, ax as Hn, i as jt, ay as O, az as Ln, aA as Dn, aB as bt, aC as pt, aD as On, A as Qe, aE as Mn, x as kn, y as Yn, aF as Jn, aG as jn, z as zn, D as Un, aH as De, R as fe, aI as Qn, aJ as It, aK as mt, aL as _n, aM as Kn, aN as $n } from "./index-BkNoFPPk.js";
2
2
  import * as R from "react";
3
3
  import qn, { useState as J, useCallback as L, useLayoutEffect as ei, useRef as te, useMemo as me, createContext as ti, useContext as ni, Component as ii, Fragment as _e, useEffect as ne, forwardRef as ui, useReducer as ri } from "react";
4
4
  import { createPortal as ai } from "react-dom";
5
- import { T as ht, C as ft, A as oi, d as li, e as si, f as ci, g as di, k as ve, m as Oe, S as vt } from "./showMessage-BTOprmUT.js";
6
- import { u as nt, a as ce } from "./hooks-BAfCCOvq.js";
5
+ import { T as ht, C as ft, A as oi, d as li, e as si, f as ci, g as di, k as ve, m as Oe, S as vt } from "./showMessage-BxU_qn4N.js";
6
+ import { u as nt, a as ce } from "./hooks-CaKwIqOQ.js";
7
7
  import { s as gi, a as bi, b as pi, c as Ii } from "./selectors-BZXXKPzK.js";
8
8
  const mi = X(z)`
9
9
  margin-bottom: 36px;
@@ -1,4 +1,4 @@
1
- import { s as o, B as s, T as S, M as m, u as C, a as b, R as B, S as x, j as i, C as E, G as T, b as v, c as j, O as k } from "./index-BosHRUtv.js";
1
+ import { s as o, B as s, T as S, M as m, u as C, a as b, R as B, S as x, j as i, C as E, G as T, b as v, c as j, O as k } from "./index-BkNoFPPk.js";
2
2
  import { useContext as A, useEffect as N } from "react";
3
3
  const O = o(s)`
4
4
  box-sizing: border-box;
@@ -1,8 +1,8 @@
1
- import { s as c, b as o, o as f, j as t, i as j, T as d, w as y, u as S, x as b, y as T, z as v, D as I, R as E, A as C } from "./index-BosHRUtv.js";
1
+ import { s as c, b as o, o as f, j as t, i as j, T as d, w as y, u as S, x as b, y as T, z as v, D as I, R as E, A as C } from "./index-BkNoFPPk.js";
2
2
  import { useState as D, useEffect as P } from "react";
3
- import { a as h, u as k } from "./hooks-BAfCCOvq.js";
4
- import { C as L, d as B, e as M, f as R, g as N, T as _ } from "./showMessage-BTOprmUT.js";
5
- import { c as Z, b as W } from "./index-2AYwYlgP.js";
3
+ import { a as h, u as k } from "./hooks-CaKwIqOQ.js";
4
+ import { C as L, d as B, e as M, f as R, g as N, T as _ } from "./showMessage-BxU_qn4N.js";
5
+ import { c as Z, b as W } from "./index-gZDsJGp1.js";
6
6
  const q = "{{connector}} features", O = "Following are the list of features that you will find in this connector", $ = "Request new feature", z = c(o)`
7
7
  width: 100%;
8
8
  height: ${(s) => s.height ? s.height : "72px"};
@@ -1,4 +1,4 @@
1
- import { s as g, b as C, B as I, M as r, j as A, m as v, T as B, n as t, p as u, H as d, q as e, r as s, t as w, v as b } from "./index-BosHRUtv.js";
1
+ import { s as g, b as C, B as I, M as r, j as A, m as v, T as B, n as t, p as u, H as d, q as e, r as s, t as w, v as b } from "./index-BkNoFPPk.js";
2
2
  import { useContext as X } from "react";
3
3
  const W = g(C)`
4
4
  width: 100%;
@@ -1,8 +1,8 @@
1
- import { E as S2, F as l2, J as c2, K as a0, _ as s, N as bA, P as YA, s as D, Q as d, U as ZA, V as wA, j as I, W as q, X as C, Y as NA, Z as f2, $ as AA, a0 as W2, a1 as m2, a2 as s0, a3 as F2, a4 as mA, a5 as V2, a6 as jA, w as D2, a7 as u2, a8 as c0, a9 as K2, aa as i0, ab as $2, ac as l0, ad as Y2, ae as d0, af as f0, ag as D0, ah as u0, ai as w0, aj as p0, B as UA, o as MA, T as LA, b as T, i as g2, u as v0, A as d2, ak as M0, R as qA, al as L0, am as P0, an as U0 } from "./index-BosHRUtv.js";
1
+ import { E as S2, F as l2, J as c2, K as a0, _ as s, N as bA, P as YA, s as D, Q as d, U as ZA, V as wA, j as I, W as q, X as C, Y as NA, Z as f2, $ as AA, a0 as W2, a1 as m2, a2 as s0, a3 as F2, a4 as mA, a5 as V2, a6 as jA, w as D2, a7 as u2, a8 as c0, a9 as K2, aa as i0, ab as $2, ac as l0, ad as Y2, ae as d0, af as f0, ag as D0, ah as u0, ai as w0, aj as p0, B as UA, o as MA, T as LA, b as T, i as g2, u as v0, A as d2, ak as M0, R as qA, al as L0, am as P0, an as U0 } from "./index-BkNoFPPk.js";
2
2
  import * as L from "react";
3
3
  import { useState as RA, useEffect as h2 } from "react";
4
- import { a as HA, u as _2 } from "./hooks-BAfCCOvq.js";
5
- import { P as A0, h as F0, T as H2, A as h0, i as x0, j as O0, f as m0, k as b2, l as H0, I as b0, E as Y0, m as C0 } from "./showMessage-BTOprmUT.js";
4
+ import { a as HA, u as _2 } from "./hooks-CaKwIqOQ.js";
5
+ import { P as A0, h as F0, T as H2, A as h0, i as x0, j as O0, f as m0, k as b2, l as H0, I as b0, E as Y0, m as C0 } from "./showMessage-BxU_qn4N.js";
6
6
  const N0 = (A) => {
7
7
  const g = L.useRef({});
8
8
  return L.useEffect(() => {
package/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { b9 as e, ba as a, bb as b, bc as o } from "./index-BosHRUtv.js";
1
+ import { b9 as e, ba as a, bb as b, bc as o } from "./index-BkNoFPPk.js";
2
2
  export {
3
3
  e as ConnectorsApp,
4
4
  a as setAppConfig,
package/index.umd.js CHANGED
@@ -2121,7 +2121,7 @@ Take a look at the reducer(s) handling this action type: ${f.type}.
2121
2121
  * LICENSE.md file in the root directory of this source tree.
2122
2122
  *
2123
2123
  * @license MIT
2124
- */function r2(){return r2=Object.assign?Object.assign.bind():function(A){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(A[n]=t[n])}return A},r2.apply(this,arguments)}function xE(A,e){if(A==null)return{};var t={},n=Object.keys(A),r,o;for(o=0;o<n.length;o++)r=n[o],!(e.indexOf(r)>=0)&&(t[r]=A[r]);return t}const Fi="get",Li="application/x-www-form-urlencoded";function Oi(A){return A!=null&&typeof A.tagName=="string"}function VS(A){return Oi(A)&&A.tagName.toLowerCase()==="button"}function zS(A){return Oi(A)&&A.tagName.toLowerCase()==="form"}function WS(A){return Oi(A)&&A.tagName.toLowerCase()==="input"}function YS(A){return!!(A.metaKey||A.altKey||A.ctrlKey||A.shiftKey)}function GS(A,e){return A.button===0&&(!e||e==="_self")&&!YS(A)}function DE(A){return A===void 0&&(A=""),new URLSearchParams(typeof A=="string"||Array.isArray(A)||A instanceof URLSearchParams?A:Object.keys(A).reduce((e,t)=>{let n=A[t];return e.concat(Array.isArray(n)?n.map(r=>[t,r]):[[t,n]])},[]))}function ZS(A,e){let t=DE(A);return e&&e.forEach((n,r)=>{t.has(r)||e.getAll(r).forEach(o=>{t.append(r,o)})}),t}let Mi=null;function qS(){if(Mi===null)try{new FormData(document.createElement("form"),0),Mi=!1}catch{Mi=!0}return Mi}const KS=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function PE(A){return A!=null&&!KS.has(A)?(process.env.NODE_ENV!=="production"&&pt(!1,'"'+A+'" is not a valid `encType` for `<Form>`/`<fetcher.Form>` '+('and will default to "'+Li+'"')),null):A}function JS(A,e){let t,n,r,o,g;if(zS(A)){let i=A.getAttribute("action");n=i?Sn(i,e):null,t=A.getAttribute("method")||Fi,r=PE(A.getAttribute("enctype"))||Li,o=new FormData(A)}else if(VS(A)||WS(A)&&(A.type==="submit"||A.type==="image")){let i=A.form;if(i==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let a=A.getAttribute("formaction")||i.getAttribute("action");if(n=a?Sn(a,e):null,t=A.getAttribute("formmethod")||i.getAttribute("method")||Fi,r=PE(A.getAttribute("formenctype"))||PE(i.getAttribute("enctype"))||Li,o=new FormData(i,A),!qS()){let{name:s,type:E,value:I}=A;if(E==="image"){let Q=s?s+".":"";o.append(Q+"x","0"),o.append(Q+"y","0")}else s&&o.append(s,I)}}else{if(Oi(A))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');t=Fi,n=null,r=Li,g=A}return o&&r==="text/plain"&&(g=o,o=void 0),{action:n,method:t.toLowerCase(),encType:r,formData:o,body:g}}const _S=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],$S=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"],AR=["fetcherKey","navigate","reloadDocument","replace","state","method","action","onSubmit","relative","preventScrollReset","unstable_viewTransition"],eR="6";try{window.__reactRouterVersion=eR}catch{}function tR(A,e){return AS({basename:e==null?void 0:e.basename,future:r2({},e==null?void 0:e.future,{v7_prependBasename:!0}),history:bU({window:e==null?void 0:e.window}),hydrationData:(e==null?void 0:e.hydrationData)||nR(),routes:A,mapRouteProperties:XS,unstable_dataStrategy:e==null?void 0:e.unstable_dataStrategy,unstable_patchRoutesOnNavigation:e==null?void 0:e.unstable_patchRoutesOnNavigation,window:e==null?void 0:e.window}).initialize()}function nR(){var A;let e=(A=window)==null?void 0:A.__staticRouterHydrationData;return e&&e.errors&&(e=r2({},e,{errors:rR(e.errors)})),e}function rR(A){if(!A)return null;let e=Object.entries(A),t={};for(let[n,r]of e)if(r&&r.__type==="RouteErrorResponse")t[n]=new yi(r.status,r.statusText,r.data,r.internal===!0);else if(r&&r.__type==="Error"){if(r.__subType){let o=window[r.__subType];if(typeof o=="function")try{let g=new o(r.message);g.stack="",t[n]=g}catch{}}if(t[n]==null){let o=new Error(r.message);o.stack="",t[n]=o}}else t[n]=r;return t}const TE=D.createContext({isTransitioning:!1});process.env.NODE_ENV!=="production"&&(TE.displayName="ViewTransition");const lf=D.createContext(new Map);process.env.NODE_ENV!=="production"&&(lf.displayName="Fetchers");const Qf=D["startTransition"],cf=A3["flushSync"];function oR(A){Qf?Qf(A):A()}function _0(A){cf?cf(A):A()}class gR{constructor(){this.status="pending",this.promise=new Promise((e,t)=>{this.resolve=n=>{this.status==="pending"&&(this.status="resolved",e(n))},this.reject=n=>{this.status==="pending"&&(this.status="rejected",t(n))}})}}function CR(A){let{fallbackElement:e,router:t,future:n}=A,[r,o]=D.useState(t.state),[g,i]=D.useState(),[a,s]=D.useState({isTransitioning:!1}),[E,I]=D.useState(),[Q,f]=D.useState(),[c,l]=D.useState(),B=D.useRef(new Map),{v7_startTransition:u}=n||{},h=D.useCallback(b=>{u?oR(b):b()},[u]),p=D.useCallback((b,F)=>{let{deletedFetchers:L,unstable_flushSync:O,unstable_viewTransitionOpts:N}=F;L.forEach(M=>B.current.delete(M)),b.fetchers.forEach((M,z)=>{M.data!==void 0&&B.current.set(z,M.data)});let j=t.window==null||t.window.document==null||typeof t.window.document.startViewTransition!="function";if(!N||j){O?_0(()=>o(b)):h(()=>o(b));return}if(O){_0(()=>{Q&&(E&&E.resolve(),Q.skipTransition()),s({isTransitioning:!0,flushSync:!0,currentLocation:N.currentLocation,nextLocation:N.nextLocation})});let M=t.window.document.startViewTransition(()=>{_0(()=>o(b))});M.finished.finally(()=>{_0(()=>{I(void 0),f(void 0),i(void 0),s({isTransitioning:!1})})}),_0(()=>f(M));return}Q?(E&&E.resolve(),Q.skipTransition(),l({state:b,currentLocation:N.currentLocation,nextLocation:N.nextLocation})):(i(b),s({isTransitioning:!0,flushSync:!1,currentLocation:N.currentLocation,nextLocation:N.nextLocation}))},[t.window,Q,E,B,h]);D.useLayoutEffect(()=>t.subscribe(p),[t,p]),D.useEffect(()=>{a.isTransitioning&&!a.flushSync&&I(new gR)},[a]),D.useEffect(()=>{if(E&&g&&t.window){let b=g,F=E.promise,L=t.window.document.startViewTransition(async()=>{h(()=>o(b)),await F});L.finished.finally(()=>{I(void 0),f(void 0),i(void 0),s({isTransitioning:!1})}),f(L)}},[h,g,E,t.window]),D.useEffect(()=>{E&&g&&r.location.key===g.location.key&&E.resolve()},[E,Q,r.location,g]),D.useEffect(()=>{!a.isTransitioning&&c&&(i(c.state),s({isTransitioning:!0,flushSync:!1,currentLocation:c.currentLocation,nextLocation:c.nextLocation}),l(void 0))},[a.isTransitioning,c]),D.useEffect(()=>{process.env.NODE_ENV!=="production"&&pt(e==null||!t.future.v7_partialHydration,"`<RouterProvider fallbackElement>` is deprecated when using `v7_partialHydration`, use a `HydrateFallback` component instead")},[]);let v=D.useMemo(()=>({createHref:t.createHref,encodeLocation:t.encodeLocation,go:b=>t.navigate(b),push:(b,F,L)=>t.navigate(b,{state:F,preventScrollReset:L==null?void 0:L.preventScrollReset}),replace:(b,F,L)=>t.navigate(b,{replace:!0,state:F,preventScrollReset:L==null?void 0:L.preventScrollReset})}),[t]),d=t.basename||"/",m=D.useMemo(()=>({router:t,navigator:v,static:!1,basename:d}),[t,v,d]),y=D.useMemo(()=>({v7_relativeSplatPath:t.future.v7_relativeSplatPath}),[t.future.v7_relativeSplatPath]);return D.createElement(D.Fragment,null,D.createElement(Fo.Provider,{value:m},D.createElement(Pi.Provider,{value:r},D.createElement(lf.Provider,{value:B.current},D.createElement(TE.Provider,{value:a},D.createElement(jS,{basename:d,location:r.location,navigationType:r.historyAction,navigator:v,future:y},r.initialized||t.future.v7_partialHydration?D.createElement(iR,{routes:t.routes,future:t.future,state:r}):e))))),null)}const iR=D.memo(aR);function aR(A){let{routes:e,future:t,state:n}=A;return DS(e,void 0,n,t)}process.env.NODE_ENV;const sR=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",ER=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,uf=D.forwardRef(function(e,t){let{onClick:n,relative:r,reloadDocument:o,replace:g,state:i,target:a,to:s,preventScrollReset:E,unstable_viewTransition:I}=e,Q=xE(e,_S),{basename:f}=D.useContext(Hn),c,l=!1;if(typeof s=="string"&&ER.test(s)&&(c=s,sR))try{let p=new URL(window.location.href),v=s.startsWith("//")?new URL(p.protocol+s):new URL(s),d=Sn(v.pathname,f);v.origin===p.origin&&d!=null?s=d+v.search+v.hash:l=!0}catch{process.env.NODE_ENV!=="production"&&pt(!1,'<Link to="'+s+'"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.')}let B=bS(s,{relative:r}),u=QR(s,{replace:g,state:i,target:a,preventScrollReset:E,relative:r,unstable_viewTransition:I});function h(p){n&&n(p),p.defaultPrevented||u(p)}return D.createElement("a",r2({},Q,{href:c||B,onClick:l||o?n:h,ref:t,target:a}))});process.env.NODE_ENV!=="production"&&(uf.displayName="Link");const IR=D.forwardRef(function(e,t){let{"aria-current":n="page",caseSensitive:r=!1,className:o="",end:g=!1,style:i,to:a,unstable_viewTransition:s,children:E}=e,I=xE(e,$S),Q=K0(a,{relative:I.relative}),f=t2(),c=D.useContext(Pi),{navigator:l,basename:B}=D.useContext(Hn),u=c!=null&&hR(Q)&&s===!0,h=l.encodeLocation?l.encodeLocation(Q).pathname:Q.pathname,p=f.pathname,v=c&&c.navigation&&c.navigation.location?c.navigation.location.pathname:null;r||(p=p.toLowerCase(),v=v?v.toLowerCase():null,h=h.toLowerCase()),v&&B&&(v=Sn(v,B)||v);const d=h!=="/"&&h.endsWith("/")?h.length-1:h.length;let m=p===h||!g&&p.startsWith(h)&&p.charAt(d)==="/",y=v!=null&&(v===h||!g&&v.startsWith(h)&&v.charAt(h.length)==="/"),b={isActive:m,isPending:y,isTransitioning:u},F=m?n:void 0,L;typeof o=="function"?L=o(b):L=[o,m?"active":null,y?"pending":null,u?"transitioning":null].filter(Boolean).join(" ");let O=typeof i=="function"?i(b):i;return D.createElement(uf,r2({},I,{"aria-current":F,className:L,ref:t,style:O,to:a,unstable_viewTransition:s}),typeof E=="function"?E(b):E)});process.env.NODE_ENV!=="production"&&(IR.displayName="NavLink");const BR=D.forwardRef((A,e)=>{let{fetcherKey:t,navigate:n,reloadDocument:r,replace:o,state:g,method:i=Fi,action:a,onSubmit:s,relative:E,preventScrollReset:I,unstable_viewTransition:Q}=A,f=xE(A,AR),c=fR(),l=pR(a,{relative:E}),B=i.toLowerCase()==="get"?"get":"post",u=h=>{if(s&&s(h),h.defaultPrevented)return;h.preventDefault();let p=h.nativeEvent.submitter,v=(p==null?void 0:p.getAttribute("formmethod"))||i;c(p||h.currentTarget,{fetcherKey:t,method:v,navigate:n,replace:o,state:g,relative:E,preventScrollReset:I,unstable_viewTransition:Q})};return D.createElement("form",r2({ref:e,method:B,action:l,onSubmit:r?s:u},f))});process.env.NODE_ENV!=="production"&&(BR.displayName="Form"),process.env.NODE_ENV;var ki;(function(A){A.UseScrollRestoration="useScrollRestoration",A.UseSubmit="useSubmit",A.UseSubmitFetcher="useSubmitFetcher",A.UseFetcher="useFetcher",A.useViewTransitionState="useViewTransitionState"})(ki||(ki={}));var df;(function(A){A.UseFetcher="useFetcher",A.UseFetchers="useFetchers",A.UseScrollRestoration="useScrollRestoration"})(df||(df={}));function lR(A){return A+" must be used within a data router. See https://reactrouter.com/routers/picking-a-router."}function ff(A){let e=D.useContext(Fo);return e||(process.env.NODE_ENV!=="production"?NA(!1,lR(A)):NA(!1)),e}function QR(A,e){let{target:t,replace:n,state:r,preventScrollReset:o,relative:g,unstable_viewTransition:i}=e===void 0?{}:e,a=n2(),s=t2(),E=K0(A,{relative:g});return D.useCallback(I=>{if(GS(I,t)){I.preventDefault();let Q=n!==void 0?n:_r(s)===_r(E);a(A,{replace:Q,state:r,preventScrollReset:o,relative:g,unstable_viewTransition:i})}},[s,a,E,n,r,t,A,o,g,i])}function pf(A){process.env.NODE_ENV!=="production"&&pt(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let e=D.useRef(DE(A)),t=D.useRef(!1),n=t2(),r=D.useMemo(()=>ZS(n.search,t.current?null:e.current),[n.search]),o=n2(),g=D.useCallback((i,a)=>{const s=DE(typeof i=="function"?i(r):i);t.current=!0,o("?"+s,a)},[o,r]);return[r,g]}function cR(){if(typeof document>"u")throw new Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.")}let uR=0,dR=()=>"__"+String(++uR)+"__";function fR(){let{router:A}=ff(ki.UseSubmit),{basename:e}=D.useContext(Hn),t=US();return D.useCallback(function(n,r){r===void 0&&(r={}),cR();let{action:o,method:g,encType:i,formData:a,body:s}=JS(n,e);if(r.navigate===!1){let E=r.fetcherKey||dR();A.fetch(E,t,r.action||o,{preventScrollReset:r.preventScrollReset,formData:a,body:s,formMethod:r.method||g,formEncType:r.encType||i,unstable_flushSync:r.unstable_flushSync})}else A.navigate(r.action||o,{preventScrollReset:r.preventScrollReset,formData:a,body:s,formMethod:r.method||g,formEncType:r.encType||i,replace:r.replace,state:r.state,fromRouteId:t,unstable_flushSync:r.unstable_flushSync,unstable_viewTransition:r.unstable_viewTransition})},[A,e,t])}function pR(A,e){let{relative:t}=e===void 0?{}:e,{basename:n}=D.useContext(Hn),r=D.useContext(jn);r||(process.env.NODE_ENV!=="production"?NA(!1,"useFormAction must be used inside a RouteContext"):NA(!1));let[o]=r.matches.slice(-1),g=r2({},K0(A||".",{relative:t})),i=t2();if(A==null){g.search=i.search;let a=new URLSearchParams(g.search);a.has("index")&&a.get("index")===""&&(a.delete("index"),g.search=a.toString()?"?"+a.toString():"")}return(!A||A===".")&&o.route.index&&(g.search=g.search?g.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(g.pathname=g.pathname==="/"?n:rr([n,g.pathname])),_r(g)}function hR(A,e){e===void 0&&(e={});let t=D.useContext(TE);t==null&&(process.env.NODE_ENV!=="production"?NA(!1,"`unstable_useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?"):NA(!1));let{basename:n}=ff(ki.useViewTransitionState),r=K0(A,{relative:e.relative});if(!t.isTransitioning)return!1;let o=Sn(t.currentLocation.pathname,n)||t.currentLocation.pathname,g=Sn(t.nextLocation.pathname,n)||t.nextLocation.pathname;return bi(r.pathname,g)!=null||bi(r.pathname,o)!=null}const mR=A=>tR([{path:se.BASEPATH,lazy:async()=>{const{ConnectorView:e}=await Promise.resolve().then(()=>nH);return{Component:e}},children:[{index:!0,lazy:async()=>{const{Dashboard:e}=await Promise.resolve().then(()=>kf);return{Component:e}}},{path:se.DASHBOARD,lazy:async()=>{const{Dashboard:e}=await Promise.resolve().then(()=>kf);return{Component:e}}},{path:se.AGENT,lazy:async()=>{const{Agent:e}=await Promise.resolve().then(()=>kj);return{Component:e}}},{path:`${se.API_VIEW}/:id`,lazy:async()=>{const{ConnectorConfig:e}=await Promise.resolve().then(()=>Gj);return{Component:e}}}]},{path:`${se.CONNECTOR_SETTINGS}/:id`,lazy:async()=>{const{Settings:e}=await Promise.resolve().then(()=>MW);return{Component:e}}},{path:se.AUTH_SUCCESS,lazy:async()=>{const{AuthSuccess:e}=await Promise.resolve().then(()=>NW);return{Component:e}}}],{basename:A}),vR=({basename:A="/",availableFeatures:e={},extraParams:t={}})=>{const{setAvailableFeatures:n,setSendTrackingEvent:r}=x.useContext(mi),{sendTrackingEvent:o}=t;x.useEffect(()=>{n(e),o&&r(o)},[n,e,r,o]);const g=x.useMemo(()=>mR(A),[A]);return w.jsx(CR,{router:g})},bR="Customising connectors on the agent’s panel",yR="Configure your Connectors in the right panel, add your cards and name them how you want the agents to see and update them.",wR="Coming Soon",xR="Have any questions? ",hf="internal-chat",DR=H(JA)`
2124
+ */function r2(){return r2=Object.assign?Object.assign.bind():function(A){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(A[n]=t[n])}return A},r2.apply(this,arguments)}function xE(A,e){if(A==null)return{};var t={},n=Object.keys(A),r,o;for(o=0;o<n.length;o++)r=n[o],!(e.indexOf(r)>=0)&&(t[r]=A[r]);return t}const Fi="get",Li="application/x-www-form-urlencoded";function Oi(A){return A!=null&&typeof A.tagName=="string"}function VS(A){return Oi(A)&&A.tagName.toLowerCase()==="button"}function zS(A){return Oi(A)&&A.tagName.toLowerCase()==="form"}function WS(A){return Oi(A)&&A.tagName.toLowerCase()==="input"}function YS(A){return!!(A.metaKey||A.altKey||A.ctrlKey||A.shiftKey)}function GS(A,e){return A.button===0&&(!e||e==="_self")&&!YS(A)}function DE(A){return A===void 0&&(A=""),new URLSearchParams(typeof A=="string"||Array.isArray(A)||A instanceof URLSearchParams?A:Object.keys(A).reduce((e,t)=>{let n=A[t];return e.concat(Array.isArray(n)?n.map(r=>[t,r]):[[t,n]])},[]))}function ZS(A,e){let t=DE(A);return e&&e.forEach((n,r)=>{t.has(r)||e.getAll(r).forEach(o=>{t.append(r,o)})}),t}let Mi=null;function qS(){if(Mi===null)try{new FormData(document.createElement("form"),0),Mi=!1}catch{Mi=!0}return Mi}const KS=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function PE(A){return A!=null&&!KS.has(A)?(process.env.NODE_ENV!=="production"&&pt(!1,'"'+A+'" is not a valid `encType` for `<Form>`/`<fetcher.Form>` '+('and will default to "'+Li+'"')),null):A}function JS(A,e){let t,n,r,o,g;if(zS(A)){let i=A.getAttribute("action");n=i?Sn(i,e):null,t=A.getAttribute("method")||Fi,r=PE(A.getAttribute("enctype"))||Li,o=new FormData(A)}else if(VS(A)||WS(A)&&(A.type==="submit"||A.type==="image")){let i=A.form;if(i==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let a=A.getAttribute("formaction")||i.getAttribute("action");if(n=a?Sn(a,e):null,t=A.getAttribute("formmethod")||i.getAttribute("method")||Fi,r=PE(A.getAttribute("formenctype"))||PE(i.getAttribute("enctype"))||Li,o=new FormData(i,A),!qS()){let{name:s,type:E,value:I}=A;if(E==="image"){let Q=s?s+".":"";o.append(Q+"x","0"),o.append(Q+"y","0")}else s&&o.append(s,I)}}else{if(Oi(A))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');t=Fi,n=null,r=Li,g=A}return o&&r==="text/plain"&&(g=o,o=void 0),{action:n,method:t.toLowerCase(),encType:r,formData:o,body:g}}const _S=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],$S=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"],AR=["fetcherKey","navigate","reloadDocument","replace","state","method","action","onSubmit","relative","preventScrollReset","unstable_viewTransition"],eR="6";try{window.__reactRouterVersion=eR}catch{}function tR(A,e){return AS({basename:e==null?void 0:e.basename,future:r2({},e==null?void 0:e.future,{v7_prependBasename:!0}),history:bU({window:e==null?void 0:e.window}),hydrationData:(e==null?void 0:e.hydrationData)||nR(),routes:A,mapRouteProperties:XS,unstable_dataStrategy:e==null?void 0:e.unstable_dataStrategy,unstable_patchRoutesOnNavigation:e==null?void 0:e.unstable_patchRoutesOnNavigation,window:e==null?void 0:e.window}).initialize()}function nR(){var A;let e=(A=window)==null?void 0:A.__staticRouterHydrationData;return e&&e.errors&&(e=r2({},e,{errors:rR(e.errors)})),e}function rR(A){if(!A)return null;let e=Object.entries(A),t={};for(let[n,r]of e)if(r&&r.__type==="RouteErrorResponse")t[n]=new yi(r.status,r.statusText,r.data,r.internal===!0);else if(r&&r.__type==="Error"){if(r.__subType){let o=window[r.__subType];if(typeof o=="function")try{let g=new o(r.message);g.stack="",t[n]=g}catch{}}if(t[n]==null){let o=new Error(r.message);o.stack="",t[n]=o}}else t[n]=r;return t}const TE=D.createContext({isTransitioning:!1});process.env.NODE_ENV!=="production"&&(TE.displayName="ViewTransition");const lf=D.createContext(new Map);process.env.NODE_ENV!=="production"&&(lf.displayName="Fetchers");const Qf=D["startTransition"],cf=A3["flushSync"];function oR(A){Qf?Qf(A):A()}function _0(A){cf?cf(A):A()}class gR{constructor(){this.status="pending",this.promise=new Promise((e,t)=>{this.resolve=n=>{this.status==="pending"&&(this.status="resolved",e(n))},this.reject=n=>{this.status==="pending"&&(this.status="rejected",t(n))}})}}function CR(A){let{fallbackElement:e,router:t,future:n}=A,[r,o]=D.useState(t.state),[g,i]=D.useState(),[a,s]=D.useState({isTransitioning:!1}),[E,I]=D.useState(),[Q,f]=D.useState(),[c,l]=D.useState(),B=D.useRef(new Map),{v7_startTransition:u}=n||{},h=D.useCallback(b=>{u?oR(b):b()},[u]),p=D.useCallback((b,F)=>{let{deletedFetchers:L,unstable_flushSync:O,unstable_viewTransitionOpts:N}=F;L.forEach(M=>B.current.delete(M)),b.fetchers.forEach((M,z)=>{M.data!==void 0&&B.current.set(z,M.data)});let j=t.window==null||t.window.document==null||typeof t.window.document.startViewTransition!="function";if(!N||j){O?_0(()=>o(b)):h(()=>o(b));return}if(O){_0(()=>{Q&&(E&&E.resolve(),Q.skipTransition()),s({isTransitioning:!0,flushSync:!0,currentLocation:N.currentLocation,nextLocation:N.nextLocation})});let M=t.window.document.startViewTransition(()=>{_0(()=>o(b))});M.finished.finally(()=>{_0(()=>{I(void 0),f(void 0),i(void 0),s({isTransitioning:!1})})}),_0(()=>f(M));return}Q?(E&&E.resolve(),Q.skipTransition(),l({state:b,currentLocation:N.currentLocation,nextLocation:N.nextLocation})):(i(b),s({isTransitioning:!0,flushSync:!1,currentLocation:N.currentLocation,nextLocation:N.nextLocation}))},[t.window,Q,E,B,h]);D.useLayoutEffect(()=>t.subscribe(p),[t,p]),D.useEffect(()=>{a.isTransitioning&&!a.flushSync&&I(new gR)},[a]),D.useEffect(()=>{if(E&&g&&t.window){let b=g,F=E.promise,L=t.window.document.startViewTransition(async()=>{h(()=>o(b)),await F});L.finished.finally(()=>{I(void 0),f(void 0),i(void 0),s({isTransitioning:!1})}),f(L)}},[h,g,E,t.window]),D.useEffect(()=>{E&&g&&r.location.key===g.location.key&&E.resolve()},[E,Q,r.location,g]),D.useEffect(()=>{!a.isTransitioning&&c&&(i(c.state),s({isTransitioning:!0,flushSync:!1,currentLocation:c.currentLocation,nextLocation:c.nextLocation}),l(void 0))},[a.isTransitioning,c]),D.useEffect(()=>{process.env.NODE_ENV!=="production"&&pt(e==null||!t.future.v7_partialHydration,"`<RouterProvider fallbackElement>` is deprecated when using `v7_partialHydration`, use a `HydrateFallback` component instead")},[]);let v=D.useMemo(()=>({createHref:t.createHref,encodeLocation:t.encodeLocation,go:b=>t.navigate(b),push:(b,F,L)=>t.navigate(b,{state:F,preventScrollReset:L==null?void 0:L.preventScrollReset}),replace:(b,F,L)=>t.navigate(b,{replace:!0,state:F,preventScrollReset:L==null?void 0:L.preventScrollReset})}),[t]),d=t.basename||"/",m=D.useMemo(()=>({router:t,navigator:v,static:!1,basename:d}),[t,v,d]),y=D.useMemo(()=>({v7_relativeSplatPath:t.future.v7_relativeSplatPath}),[t.future.v7_relativeSplatPath]);return D.createElement(D.Fragment,null,D.createElement(Fo.Provider,{value:m},D.createElement(Pi.Provider,{value:r},D.createElement(lf.Provider,{value:B.current},D.createElement(TE.Provider,{value:a},D.createElement(jS,{basename:d,location:r.location,navigationType:r.historyAction,navigator:v,future:y},r.initialized||t.future.v7_partialHydration?D.createElement(iR,{routes:t.routes,future:t.future,state:r}):e))))),null)}const iR=D.memo(aR);function aR(A){let{routes:e,future:t,state:n}=A;return DS(e,void 0,n,t)}process.env.NODE_ENV;const sR=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",ER=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,uf=D.forwardRef(function(e,t){let{onClick:n,relative:r,reloadDocument:o,replace:g,state:i,target:a,to:s,preventScrollReset:E,unstable_viewTransition:I}=e,Q=xE(e,_S),{basename:f}=D.useContext(Hn),c,l=!1;if(typeof s=="string"&&ER.test(s)&&(c=s,sR))try{let p=new URL(window.location.href),v=s.startsWith("//")?new URL(p.protocol+s):new URL(s),d=Sn(v.pathname,f);v.origin===p.origin&&d!=null?s=d+v.search+v.hash:l=!0}catch{process.env.NODE_ENV!=="production"&&pt(!1,'<Link to="'+s+'"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.')}let B=bS(s,{relative:r}),u=QR(s,{replace:g,state:i,target:a,preventScrollReset:E,relative:r,unstable_viewTransition:I});function h(p){n&&n(p),p.defaultPrevented||u(p)}return D.createElement("a",r2({},Q,{href:c||B,onClick:l||o?n:h,ref:t,target:a}))});process.env.NODE_ENV!=="production"&&(uf.displayName="Link");const IR=D.forwardRef(function(e,t){let{"aria-current":n="page",caseSensitive:r=!1,className:o="",end:g=!1,style:i,to:a,unstable_viewTransition:s,children:E}=e,I=xE(e,$S),Q=K0(a,{relative:I.relative}),f=t2(),c=D.useContext(Pi),{navigator:l,basename:B}=D.useContext(Hn),u=c!=null&&hR(Q)&&s===!0,h=l.encodeLocation?l.encodeLocation(Q).pathname:Q.pathname,p=f.pathname,v=c&&c.navigation&&c.navigation.location?c.navigation.location.pathname:null;r||(p=p.toLowerCase(),v=v?v.toLowerCase():null,h=h.toLowerCase()),v&&B&&(v=Sn(v,B)||v);const d=h!=="/"&&h.endsWith("/")?h.length-1:h.length;let m=p===h||!g&&p.startsWith(h)&&p.charAt(d)==="/",y=v!=null&&(v===h||!g&&v.startsWith(h)&&v.charAt(h.length)==="/"),b={isActive:m,isPending:y,isTransitioning:u},F=m?n:void 0,L;typeof o=="function"?L=o(b):L=[o,m?"active":null,y?"pending":null,u?"transitioning":null].filter(Boolean).join(" ");let O=typeof i=="function"?i(b):i;return D.createElement(uf,r2({},I,{"aria-current":F,className:L,ref:t,style:O,to:a,unstable_viewTransition:s}),typeof E=="function"?E(b):E)});process.env.NODE_ENV!=="production"&&(IR.displayName="NavLink");const BR=D.forwardRef((A,e)=>{let{fetcherKey:t,navigate:n,reloadDocument:r,replace:o,state:g,method:i=Fi,action:a,onSubmit:s,relative:E,preventScrollReset:I,unstable_viewTransition:Q}=A,f=xE(A,AR),c=fR(),l=pR(a,{relative:E}),B=i.toLowerCase()==="get"?"get":"post",u=h=>{if(s&&s(h),h.defaultPrevented)return;h.preventDefault();let p=h.nativeEvent.submitter,v=(p==null?void 0:p.getAttribute("formmethod"))||i;c(p||h.currentTarget,{fetcherKey:t,method:v,navigate:n,replace:o,state:g,relative:E,preventScrollReset:I,unstable_viewTransition:Q})};return D.createElement("form",r2({ref:e,method:B,action:l,onSubmit:r?s:u},f))});process.env.NODE_ENV!=="production"&&(BR.displayName="Form"),process.env.NODE_ENV;var ki;(function(A){A.UseScrollRestoration="useScrollRestoration",A.UseSubmit="useSubmit",A.UseSubmitFetcher="useSubmitFetcher",A.UseFetcher="useFetcher",A.useViewTransitionState="useViewTransitionState"})(ki||(ki={}));var df;(function(A){A.UseFetcher="useFetcher",A.UseFetchers="useFetchers",A.UseScrollRestoration="useScrollRestoration"})(df||(df={}));function lR(A){return A+" must be used within a data router. See https://reactrouter.com/routers/picking-a-router."}function ff(A){let e=D.useContext(Fo);return e||(process.env.NODE_ENV!=="production"?NA(!1,lR(A)):NA(!1)),e}function QR(A,e){let{target:t,replace:n,state:r,preventScrollReset:o,relative:g,unstable_viewTransition:i}=e===void 0?{}:e,a=n2(),s=t2(),E=K0(A,{relative:g});return D.useCallback(I=>{if(GS(I,t)){I.preventDefault();let Q=n!==void 0?n:_r(s)===_r(E);a(A,{replace:Q,state:r,preventScrollReset:o,relative:g,unstable_viewTransition:i})}},[s,a,E,n,r,t,A,o,g,i])}function pf(A){process.env.NODE_ENV!=="production"&&pt(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let e=D.useRef(DE(A)),t=D.useRef(!1),n=t2(),r=D.useMemo(()=>ZS(n.search,t.current?null:e.current),[n.search]),o=n2(),g=D.useCallback((i,a)=>{const s=DE(typeof i=="function"?i(r):i);t.current=!0,o("?"+s,a)},[o,r]);return[r,g]}function cR(){if(typeof document>"u")throw new Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.")}let uR=0,dR=()=>"__"+String(++uR)+"__";function fR(){let{router:A}=ff(ki.UseSubmit),{basename:e}=D.useContext(Hn),t=US();return D.useCallback(function(n,r){r===void 0&&(r={}),cR();let{action:o,method:g,encType:i,formData:a,body:s}=JS(n,e);if(r.navigate===!1){let E=r.fetcherKey||dR();A.fetch(E,t,r.action||o,{preventScrollReset:r.preventScrollReset,formData:a,body:s,formMethod:r.method||g,formEncType:r.encType||i,unstable_flushSync:r.unstable_flushSync})}else A.navigate(r.action||o,{preventScrollReset:r.preventScrollReset,formData:a,body:s,formMethod:r.method||g,formEncType:r.encType||i,replace:r.replace,state:r.state,fromRouteId:t,unstable_flushSync:r.unstable_flushSync,unstable_viewTransition:r.unstable_viewTransition})},[A,e,t])}function pR(A,e){let{relative:t}=e===void 0?{}:e,{basename:n}=D.useContext(Hn),r=D.useContext(jn);r||(process.env.NODE_ENV!=="production"?NA(!1,"useFormAction must be used inside a RouteContext"):NA(!1));let[o]=r.matches.slice(-1),g=r2({},K0(A||".",{relative:t})),i=t2();if(A==null){g.search=i.search;let a=new URLSearchParams(g.search);a.has("index")&&a.get("index")===""&&(a.delete("index"),g.search=a.toString()?"?"+a.toString():"")}return(!A||A===".")&&o.route.index&&(g.search=g.search?g.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(g.pathname=g.pathname==="/"?n:rr([n,g.pathname])),_r(g)}function hR(A,e){e===void 0&&(e={});let t=D.useContext(TE);t==null&&(process.env.NODE_ENV!=="production"?NA(!1,"`unstable_useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?"):NA(!1));let{basename:n}=ff(ki.useViewTransitionState),r=K0(A,{relative:e.relative});if(!t.isTransitioning)return!1;let o=Sn(t.currentLocation.pathname,n)||t.currentLocation.pathname,g=Sn(t.nextLocation.pathname,n)||t.nextLocation.pathname;return bi(r.pathname,g)!=null||bi(r.pathname,o)!=null}const mR=A=>tR([{path:se.BASEPATH,lazy:async()=>{const{ConnectorView:e}=await Promise.resolve().then(()=>nH);return{Component:e}},children:[{index:!0,lazy:async()=>{const{Dashboard:e}=await Promise.resolve().then(()=>kf);return{Component:e}}},{path:se.DASHBOARD,lazy:async()=>{const{Dashboard:e}=await Promise.resolve().then(()=>kf);return{Component:e}}},{path:se.AGENT,lazy:async()=>{const{Agent:e}=await Promise.resolve().then(()=>kj);return{Component:e}}},{path:`${se.API_VIEW}/:id`,lazy:async()=>{const{ConnectorConfig:e}=await Promise.resolve().then(()=>Gj);return{Component:e}}}]},{path:`${se.CONNECTOR_SETTINGS}/:id`,lazy:async()=>{const{Settings:e}=await Promise.resolve().then(()=>MW);return{Component:e}}},{path:se.AUTH_SUCCESS,lazy:async()=>{const{AuthSuccess:e}=await Promise.resolve().then(()=>NW);return{Component:e}}}],{basename:A}),vR=({basename:A="/",availableFeatures:e={},extraParams:t={}})=>{const{setAvailableFeatures:n,setSendTrackingEvent:r}=x.useContext(mi),{sendTrackingEvent:o}=t;x.useEffect(()=>{n(e),o&&r(()=>o)},[n,e,r,o]);const g=x.useMemo(()=>mR(A),[A]);return w.jsx(CR,{router:g})},bR="Customising connectors on the agent’s panel",yR="Configure your Connectors in the right panel, add your cards and name them how you want the agents to see and update them.",wR="Coming Soon",xR="Have any questions? ",hf="internal-chat",DR=H(JA)`
2125
2125
  padding: 43px 0px 0 35px;
2126
2126
  box-sizing: border-box;
2127
2127
  width: 100%;
@@ -3125,7 +3125,7 @@ Take a look at the reducer(s) handling this action type: ${f.type}.
3125
3125
  align-self: auto !important;
3126
3126
  margin-left: 12px;
3127
3127
  }
3128
- `,qR=({basename:A,baseUrls:e,availableFeatures:t={},extraParams:n})=>(console.log("---/* DEBUG extraParams */---",n),w.jsx(YR,{children:w.jsx(vU,{children:$O(t)?w.jsx(WR,{availableFeatures:t}):w.jsxs(w.Fragment,{children:[w.jsx(vR,{basename:A,baseUrls:e,availableFeatures:t,extraParams:n}),ut.createPortal(w.jsx(ZR,{id:"toast-message",children:w.jsx(t4,{position:"bottom-left",autoClose:5e3,hideProgressBar:!0,newestOnTop:!1,closeOnClick:!0,rtl:!1,draggable:!0,pauseOnHover:!0})}),document.body)]})})})),KR=H(JA)`
3128
+ `,qR=({basename:A,baseUrls:e,availableFeatures:t={},extraParams:n})=>w.jsx(YR,{children:w.jsx(vU,{children:$O(t)?w.jsx(WR,{availableFeatures:t}):w.jsxs(w.Fragment,{children:[w.jsx(vR,{basename:A,baseUrls:e,availableFeatures:t,extraParams:n}),ut.createPortal(w.jsx(ZR,{id:"toast-message",children:w.jsx(t4,{position:"bottom-left",autoClose:5e3,hideProgressBar:!0,newestOnTop:!1,closeOnClick:!0,rtl:!1,draggable:!0,pauseOnHover:!0})}),document.body)]})})}),KR=H(JA)`
3129
3129
  box-sizing: border-box;
3130
3130
  background-color: #ffffff;
3131
3131
  width: 178px;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hiver/connector-admin",
3
- "version": "0.0.10-beta.70",
3
+ "version": "0.0.10-beta.72",
4
4
  "main": "index.es.js",
5
5
  "module": "index.es.js",
6
6
  "types": "index.d.ts",
@@ -1,4 +1,4 @@
1
- import { aO as Zo, aP as Yt, P as dt, N as vt, Z as ze, j as P, s as F, a7 as Qo, Q as Fe, aj as Gt, ai as Kt, _ as w, U as mt, V as Me, aQ as Zt, w as Jo, W as Ce, X as n, Y as ht, aR as er, aS as Qt, aT as tr, a9 as or, aU as pt, ad as xo, a0 as Ct, aV as Jt, aW as rr, ao as Oo, aq as eo, $ as To, ag as nr, aX as ar, aY as ot, F as ir, E as sr, J as to, aZ as lr, a_ as oo, a$ as rt, b0 as pr, b1 as cr, B as Po, b2 as fr, b as ur, b3 as _e } from "./index-BosHRUtv.js";
1
+ import { aO as Zo, aP as Yt, P as dt, N as vt, Z as ze, j as P, s as F, a7 as Qo, Q as Fe, aj as Gt, ai as Kt, _ as w, U as mt, V as Me, aQ as Zt, w as Jo, W as Ce, X as n, Y as ht, aR as er, aS as Qt, aT as tr, a9 as or, aU as pt, ad as xo, a0 as Ct, aV as Jt, aW as rr, ao as Oo, aq as eo, $ as To, ag as nr, aX as ar, aY as ot, F as ir, E as sr, J as to, aZ as lr, a_ as oo, a$ as rt, b0 as pr, b1 as cr, B as Po, b2 as fr, b as ur, b3 as _e } from "./index-BkNoFPPk.js";
2
2
  import * as M from "react";
3
3
  import dr from "react";
4
4
  function vr(e, t = 0, o = 1) {