@hiver/connector-admin 1.5.1-beta.6 → 1.5.1-beta.7

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/index.es.js CHANGED
@@ -52787,7 +52787,7 @@ const GnA = (A) => {
52787
52787
  width: 40px;
52788
52788
  height: 40px;
52789
52789
  }
52790
- `, KnA = (A) => /* @__PURE__ */ y.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 41, height: 41, viewBox: "0 0 41 41", fill: "none", ...A }, /* @__PURE__ */ y.createElement("g", { clipPath: "url(#clip0_5805_11979)" }, /* @__PURE__ */ y.createElement("path", { d: "M20.5001 3.41663C11.0701 3.41663 3.41675 11.07 3.41675 20.5C3.41675 29.93 11.0701 37.5833 20.5001 37.5833C29.9301 37.5833 37.5834 29.93 37.5834 20.5C37.5834 11.07 29.9301 3.41663 20.5001 3.41663ZM17.0834 28.1875V12.8125L27.3334 20.5L17.0834 28.1875Z", fill: "#4D596C" })), /* @__PURE__ */ y.createElement("defs", null, /* @__PURE__ */ y.createElement("clipPath", { id: "clip0_5805_11979" }, /* @__PURE__ */ y.createElement("rect", { width: 41, height: 41, fill: "white" })))), JnA = (A) => {
52790
+ `, KnA = (A) => /* @__PURE__ */ y.createElement("svg", { width: 35, height: 35, viewBox: "0 0 35 35", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...A }, /* @__PURE__ */ y.createElement("rect", { x: 9, y: 9, width: 15, height: 17, fill: "white" }), /* @__PURE__ */ y.createElement("g", { clipPath: "url(#clip0_7787_114457)" }, /* @__PURE__ */ y.createElement("path", { d: "M17.1981 2.86633C9.28704 2.86633 2.86646 9.28691 2.86646 17.198C2.86646 25.1091 9.28704 31.5296 17.1981 31.5296C25.1092 31.5296 31.5298 25.1091 31.5298 17.198C31.5298 9.28691 25.1092 2.86633 17.1981 2.86633ZM14.3318 23.6472V10.7487L22.9308 17.198L14.3318 23.6472Z", fill: "#4D596C" })), /* @__PURE__ */ y.createElement("defs", null, /* @__PURE__ */ y.createElement("clipPath", { id: "clip0_7787_114457" }, /* @__PURE__ */ y.createElement("rect", { width: 34.396, height: 34.396, fill: "white" })))), JnA = (A) => {
52791
52791
  const [e, t] = jA(!1);
52792
52792
  return e ? null : /* @__PURE__ */ p.jsxs(qnA, { children: [
52793
52793
  /* @__PURE__ */ p.jsx("img", { className: "preview-img", onError: () => t(!0), ...A }),
@@ -53486,7 +53486,7 @@ const CrA = (A, e) => {
53486
53486
  icons: k
53487
53487
  }
53488
53488
  ),
53489
- Q && O.length > 0 && /* @__PURE__ */ p.jsx(trA, { titleNode: /* @__PURE__ */ p.jsx(HA, { variant: "h4", children: "Advanced settings" }), children: /* @__PURE__ */ p.jsx(
53489
+ Q && O.length > 0 && /* @__PURE__ */ p.jsx(trA, { titleNode: /* @__PURE__ */ p.jsx(HA, { variant: "h3", children: "Advanced settings" }), children: /* @__PURE__ */ p.jsx(
53490
53490
  Id,
53491
53491
  {
53492
53492
  formConfig: O,
@@ -53568,7 +53568,7 @@ const CrA = (A, e) => {
53568
53568
  }
53569
53569
  ], NrA = ({ connectorName: A, supportLinks: e }) => {
53570
53570
  const { availableFeatures: t, sendTrackingEvent: n } = at(Kt), r = Fo(t, lX), o = ip(t), a = (s, g) => {
53571
- n(g, { connectorName: A }), window.open(s, "_blank");
53571
+ n(g, { source: A }), window.open(s, "_blank");
53572
53572
  };
53573
53573
  return r ? /* @__PURE__ */ p.jsx(mA, { gap: "12px", children: SrA.map(({ icon: s, text: g, link: C, keys: l, event: c, prefixName: E }) => {
53574
53574
  const d = l != null && l.link ? e == null ? void 0 : e[l.link] : null, B = o ? d ?? C : C;
@@ -53580,7 +53580,7 @@ const CrA = (A, e) => {
53580
53580
  /* @__PURE__ */ p.jsx(FrA, { children: s }),
53581
53581
  /* @__PURE__ */ p.jsx(LrA, { variant: "body2_medium", children: u })
53582
53582
  ] }),
53583
- /* @__PURE__ */ p.jsx(krA, {})
53583
+ I ? null : /* @__PURE__ */ p.jsx(krA, {})
53584
53584
  ] }),
53585
53585
  I && /* @__PURE__ */ p.jsx(MrA, { children: /* @__PURE__ */ p.jsx(JnA, { src: I, alt: g }) })
53586
53586
  ] }, B);
@@ -53717,7 +53717,7 @@ const XrA = S(mA)`
53717
53717
  }
53718
53718
  )
53719
53719
  ] }),
53720
- /* @__PURE__ */ p.jsxs(mA, { gap: "36px", width: "410px", children: [
53720
+ /* @__PURE__ */ p.jsxs(mA, { gap: "36px", width: "322px", children: [
53721
53721
  E != null && E.upgradeGuideContent ? /* @__PURE__ */ p.jsx(
53722
53722
  ZrA,
53723
53723
  {
package/index.umd.js CHANGED
@@ -3014,7 +3014,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
3014
3014
  width: 40px;
3015
3015
  height: 40px;
3016
3016
  }
3017
- `,NnA=A=>w.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:41,height:41,viewBox:"0 0 41 41",fill:"none",...A},w.createElement("g",{clipPath:"url(#clip0_5805_11979)"},w.createElement("path",{d:"M20.5001 3.41663C11.0701 3.41663 3.41675 11.07 3.41675 20.5C3.41675 29.93 11.0701 37.5833 20.5001 37.5833C29.9301 37.5833 37.5834 29.93 37.5834 20.5C37.5834 11.07 29.9301 3.41663 20.5001 3.41663ZM17.0834 28.1875V12.8125L27.3334 20.5L17.0834 28.1875Z",fill:"#4D596C"})),w.createElement("defs",null,w.createElement("clipPath",{id:"clip0_5805_11979"},w.createElement("rect",{width:41,height:41,fill:"white"})))),UnA=A=>{const[e,t]=y.useState(!1);return e?null:p.jsxs(SnA,{children:[p.jsx("img",{className:"preview-img",onError:()=>t(!0),...A}),p.jsx(NnA,{className:"play-icon"})]})},RnA=S(AB)`
3017
+ `,NnA=A=>w.createElement("svg",{width:35,height:35,viewBox:"0 0 35 35",fill:"none",xmlns:"http://www.w3.org/2000/svg",...A},w.createElement("rect",{x:9,y:9,width:15,height:17,fill:"white"}),w.createElement("g",{clipPath:"url(#clip0_7787_114457)"},w.createElement("path",{d:"M17.1981 2.86633C9.28704 2.86633 2.86646 9.28691 2.86646 17.198C2.86646 25.1091 9.28704 31.5296 17.1981 31.5296C25.1092 31.5296 31.5298 25.1091 31.5298 17.198C31.5298 9.28691 25.1092 2.86633 17.1981 2.86633ZM14.3318 23.6472V10.7487L22.9308 17.198L14.3318 23.6472Z",fill:"#4D596C"})),w.createElement("defs",null,w.createElement("clipPath",{id:"clip0_7787_114457"},w.createElement("rect",{width:34.396,height:34.396,fill:"white"})))),UnA=A=>{const[e,t]=y.useState(!1);return e?null:p.jsxs(SnA,{children:[p.jsx("img",{className:"preview-img",onError:()=>t(!0),...A}),p.jsx(NnA,{className:"play-icon"})]})},RnA=S(AB)`
3018
3018
  box-shadow: none;
3019
3019
  margin: 24px 0 0 0;
3020
3020
  background: none;
@@ -3086,7 +3086,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
3086
3086
  padding-bottom: 13px;
3087
3087
  border-top: 1px solid #d6dde8;
3088
3088
  gap: 16px;
3089
- `,CrA="data:image/svg+xml,%3csvg%20width='22'%20height='22'%20viewBox='0%200%2022%2022'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_1446_32274)'%3e%3cpath%20d='M14.6663%200.916687H3.66634C2.65801%200.916687%201.83301%201.74169%201.83301%202.75002V15.5834H3.66634V2.75002H14.6663V0.916687ZM17.4163%204.58335H7.33301C6.32467%204.58335%205.49967%205.40835%205.49967%206.41669V19.25C5.49967%2020.2584%206.32467%2021.0834%207.33301%2021.0834H17.4163C18.4247%2021.0834%2019.2497%2020.2584%2019.2497%2019.25V6.41669C19.2497%205.40835%2018.4247%204.58335%2017.4163%204.58335ZM17.4163%2019.25H7.33301V6.41669H17.4163V19.25Z'%20fill='%236F7C90'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_1446_32274'%3e%3crect%20width='22'%20height='22'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",lrA="Custom Connectors",x7="Settings",crA=()=>p.jsxs(mA,{gap:"24px",marginTop:"28px",paddingRight:"65px",children:[p.jsxs("div",{children:[p.jsx(Ir,{variant:"rounded",width:100,height:24,animation:"wave",margin:"12px 0px 10px 0px"}),p.jsx(Ir,{variant:"rounded",height:40,animation:"wave",margin:"12px 0px 10px 0px"})]}),p.jsxs("div",{children:[p.jsx(Ir,{variant:"rounded",width:100,height:24,animation:"wave",margin:"12px 0px 10px 0px"}),p.jsx(Ir,{variant:"rounded",height:40,animation:"wave",margin:"12px 0px 10px 0px"})]})]}),ErA=({isEdit:A=!1,connectorId:e,isLoading:t=!1,connectorData:n,authStatus:r})=>{const{sendTrackingEvent:o,availableFeatures:s}=y.useContext(Yt),a=$r(),[g,C]=y.useReducer(nrA,trA),[l,c]=y.useState(!1),E=n?n.name:"",d=n?n.description:"",B=n?n.isAuthenticated:!1,u=n&&n.variablesConfig?n.variablesConfig:[],I=(n==null?void 0:n.advancedSettingsFields)??[],Q=a4(s),m=y.useMemo(()=>!Q||!(n!=null&&n.interpolationFields)?{}:_nA(n==null?void 0:n.interpolationFields),[n==null?void 0:n.interpolationFields,Q]);y.useEffect(()=>{var N;if(n!=null&&n.authDetails){const R=KnA(n.authDetails);C({type:Fr.SET_FIELDS,payload:{values:R}})}if(n!=null&&n.variables&&Object.keys(n.variables).forEach(R=>{var H;C({type:Fr.SET_FIELD_VALUE,payload:{name:R,value:((H=n.variables)==null?void 0:H[R])||""}})}),n!=null&&n.redirectUrl&&C({type:Fr.SET_FIELD_VALUE,payload:{name:WA.oAuthRedirectUrl,value:n==null?void 0:n.redirectUrl}}),Q&&(n!=null&&n.interpolationFields)&&(n!=null&&n.variables)){const R=f7((N=n==null?void 0:n.authDetails)==null?void 0:N.authType);Object.entries(n.interpolationFields).forEach(([H,z])=>{const G=R[H];G&&C({type:Fr.SET_FIELD_VALUE,payload:{name:G,value:h7(z,n.variables)}})})}},[n,Q]);const h=(N,R)=>{C({type:Fr.SET_FIELD_VALUE,payload:{value:R,name:N}})},b=N=>{var eA,Z;N.stopPropagation();const{name:R,value:H}=(N==null?void 0:N.target)||{};if(h(R,H.trim()),!Q)return;const z=m[R];if(!(z!=null&&z.length))return;const G=(eA=g.values)==null?void 0:eA.authType,U=f7(typeof G=="object"?G.value:void 0);for(const J of z){const _=U[J],rA=(Z=n==null?void 0:n.interpolationFields)==null?void 0:Z[J];if(!_||!rA)continue;const K=h7(rA,{...g.values,[R]:H});h(_,K)}},f=(N,R)=>{N&&typeof N=="object"&&"label"in N&&typeof N.label=="string"&&"value"in N&&typeof N.value=="string"&&typeof R.name<"u"&&(R.name===eo.authType&&o(Je.AUTH_UPDATED,{selected_auth_type:N.label}),h(R.name,{value:N.value,label:N.label}))},v=(N,R)=>{C({type:Fr.SET_FIELD_ERROR,payload:{name:N,value:R}})},D=()=>{if(u)if(Q){const{advanced:H,basic:z}=Q7(u,I);pa.formFields=H,FC.formFields=z}else pa.formFields=[...u];let N=[];pa.formFields&&pa.formFields.length&&(N=[pa]);const R=g.values.authType;if(Q){const H=typeof R=="object"?R.value:void 0,z=[...LC];H===No.apiToken.value?z.push(...v7):H===No.oAuth.value?z.push(...b7):z.push(...y7);const{basicFields:G,advancedConfigs:U}=ZnA(z,I,H);FC.formFields.push(...G),N.push(...U),FC.formFields.length&&N.push(FC)}else typeof R=="object"&&R.value===No.apiToken.value?N=[...N,...LC,...v7]:typeof R=="object"&&R.value===No.oAuth.value?N=[...N,...LC,...b7]:N=[...N,...LC,...y7];return N},x=()=>{const N={};return typeof g.values.apiAddTo=="object"&&g.values.apiAddTo.value===OC.queryParam.value?(N.apiHeaderPrefix=!1,N.apiHeaderName=!1):N.apiParamName=!1,N},P=()=>{const N=x(),R=s4(D());return!Object.keys(g.errors).filter(z=>!!g.errors[z]).filter(z=>z in N?N[z]:!0).filter(z=>z in R).length},M=()=>{var z;const N=x(),R=s4(D()),H=qnA({isEdit:A,templateId:e,values:g.values,formFields:R,predicates:N});if(u&&u.length){const G=JnA(u,g.values);H.variables=G}o(Je.SAVE_AUTHORIZE_CLICKED,{connector_name:E,auth_type:((z=g.values.authType)==null?void 0:z.label)??g.values.authType,base_url:g.values.baseUrl}),!A&&"templateId"in H?a(Ks({data:H})):a(Ks({data:H,connectorId:e}))},F=()=>{g.values.oAuthRedirectUrl&&IX(g.values.oAuthRedirectUrl,N=>c(!N))},k={[WA.oAuthRedirectUrl]:{icon:p.jsx("img",{alt:"copy",src:CrA,onClick:F}),toolTipText:CX}},j=D().filter(GnA),O=D().filter(YnA);return p.jsxs(arA,{children:[p.jsxs(rrA,{direction:"column",gap:1,children:[A&&!B?p.jsx(ql,{severity:"error",sx:{width:"fit-content"},children:lX}):null,p.jsx(orA,{variant:"h2",children:x7})]}),t?p.jsxs(p.Fragment,{children:[p.jsx(znA,{}),p.jsx(crA,{})]}):p.jsxs(p.Fragment,{children:[p.jsxs("div",{children:[p.jsx(jA,{variant:"h3",children:E}),p.jsx(irA,{variant:"body2",children:d})]}),p.jsxs(srA,{children:[p.jsx(B7,{formConfig:Q?j:D(),selectChangeHandler:f,inputChangeHandler:b,predicates:x(),values:g.values,validations:w7,onValidationError:v,icons:k}),Q&&O.length>0&&p.jsx(XnA,{titleNode:p.jsx(jA,{variant:"h4",children:"Advanced settings"}),children:p.jsx(B7,{formConfig:O,selectChangeHandler:f,inputChangeHandler:b,predicates:x(),values:g.values,validations:w7,onValidationError:v,icons:k})})]}),p.jsx(grA,{direction:"row",children:p.jsx(It,{disabled:!P()||t||r===qe.PENDING,onClick:M,children:"Save & Authorize"})})]}),p.jsx(cH,{message:QY,anchorOrigin:{vertical:"bottom",horizontal:"left"},autoHideDuration:2e3,onClose:()=>c(!1),open:l})]})},IrA=A=>w.createElement("svg",{width:19,height:14,viewBox:"0 0 19 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",...A},w.createElement("path",{d:"M4.5 11C5.15764 11 5.79771 11.0833 6.42021 11.25C7.04285 11.4167 7.65278 11.625 8.25 11.875V2.41667C7.66667 2.11111 7.0625 1.88194 6.4375 1.72917C5.8125 1.57639 5.16514 1.5 4.49542 1.5C3.98236 1.5 3.47292 1.54514 2.96708 1.63542C2.46125 1.72569 1.97222 1.875 1.5 2.08333V11.5C1.98611 11.3194 2.47785 11.191 2.97521 11.1146C3.47271 11.0382 3.98097 11 4.5 11ZM9.75 11.875C10.3472 11.5972 10.9572 11.3819 11.5798 11.2292C12.2023 11.0764 12.8424 11 13.5 11C14.0139 11 14.5243 11.0312 15.0312 11.0938C15.5382 11.1562 16.0278 11.2917 16.5 11.5V2.08333C16.0139 1.90278 15.5195 1.76042 15.0169 1.65625C14.5142 1.55208 14.0081 1.5 13.4983 1.5C12.8328 1.5 12.1875 1.57639 11.5625 1.72917C10.9375 1.88194 10.3333 2.11111 9.75 2.41667V11.875ZM9 14C8.31944 13.5556 7.60417 13.1944 6.85417 12.9167C6.10417 12.6389 5.31944 12.5 4.5 12.5C3.97222 12.5 3.44444 12.5521 2.91667 12.6562C2.38889 12.7604 1.88194 12.9167 1.39583 13.125C1.0625 13.2639 0.746528 13.2394 0.447917 13.0515C0.149306 12.8635 0 12.5894 0 12.2292V1.75C0 1.55556 0.0520833 1.375 0.15625 1.20833C0.260417 1.04167 0.402778 0.916667 0.583333 0.833333C1.20833 0.555556 1.8475 0.347222 2.50083 0.208333C3.15417 0.0694444 3.82056 0 4.5 0C5.29097 0 6.06486 0.09375 6.82167 0.28125C7.57847 0.46875 8.30458 0.75 9 1.125C9.70833 0.763889 10.4388 0.486111 11.1915 0.291667C11.944 0.0972222 12.7135 0 13.5 0C14.1794 0 14.8458 0.0694444 15.4992 0.208333C16.1525 0.347222 16.7917 0.555556 17.4167 0.833333C17.5972 0.916667 17.7431 1.04167 17.8542 1.20833C17.9653 1.375 18.0208 1.55556 18.0208 1.75V12.2292C18.0208 12.5764 17.9132 12.8542 17.6979 13.0625C17.4826 13.2708 17.2569 13.3194 17.0208 13.2083C16.4653 12.9583 15.8925 12.7778 15.3025 12.6667C14.7126 12.5556 14.1118 12.5 13.5 12.5C12.6806 12.5 11.8958 12.6389 11.1458 12.9167C10.3958 13.1944 9.68056 13.5556 9 14Z",fill:"#4D596C"})),urA=A=>w.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,viewBox:"0 0 20 20",fill:"none",...A},w.createElement("g",{clipPath:"url(#clip0_5762_155564)"},w.createElement("path",{d:"M8.33342 13.75L13.3334 9.99996L8.33342 6.24996V13.75ZM10.0001 1.66663C5.40008 1.66663 1.66675 5.39996 1.66675 9.99996C1.66675 14.6 5.40008 18.3333 10.0001 18.3333C14.6001 18.3333 18.3334 14.6 18.3334 9.99996C18.3334 5.39996 14.6001 1.66663 10.0001 1.66663ZM10.0001 16.6666C6.32508 16.6666 3.33341 13.675 3.33341 9.99996C3.33341 6.32496 6.32508 3.33329 10.0001 3.33329C13.6751 3.33329 16.6667 6.32496 16.6667 9.99996C16.6667 13.675 13.6751 16.6666 10.0001 16.6666Z",fill:"#4D596C"})),w.createElement("defs",null,w.createElement("clipPath",{id:"clip0_5762_155564"},w.createElement("rect",{width:20,height:20,fill:"white"})))),BrA=A=>w.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...A},w.createElement("path",{d:"M17.5 9.31947C17.503 10.456 17.2374 11.5772 16.725 12.5917C16.1174 13.8074 15.1834 14.8299 14.0275 15.5447C12.8717 16.2595 11.5396 16.6384 10.1806 16.6389C9.044 16.6419 7.92282 16.3763 6.90833 15.8639L2 17.5L3.63611 12.5917C3.12369 11.5772 2.85815 10.456 2.86111 9.31947C2.86164 7.96043 3.24053 6.62837 3.95534 5.4725C4.67016 4.31663 5.69266 3.3826 6.90833 2.77502C7.92282 2.2626 9.044 1.99706 10.1806 2.00002H10.6111C11.4833 2.04814 12.332 2.25177 13.1199 2.59427C13.9534 2.95658 14.7189 3.4743 15.3723 4.12771C16.1287 4.8841 16.7033 5.7907 17.0654 6.77911C17.3118 7.45168 17.4599 8.16213 17.5 8.88891V9.31947Z",stroke:"#4D596C",strokeWidth:1.44667,strokeLinecap:"round",strokeLinejoin:"round"}),w.createElement("circle",{cx:7,cy:9.5,r:1,fill:"#4D596C"}),w.createElement("circle",{cx:10,cy:9.5,r:1,fill:"#4D596C"}),w.createElement("circle",{cx:13,cy:9.5,r:1,fill:"#4D596C"})),QrA=S(re)`
3089
+ `,CrA="data:image/svg+xml,%3csvg%20width='22'%20height='22'%20viewBox='0%200%2022%2022'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_1446_32274)'%3e%3cpath%20d='M14.6663%200.916687H3.66634C2.65801%200.916687%201.83301%201.74169%201.83301%202.75002V15.5834H3.66634V2.75002H14.6663V0.916687ZM17.4163%204.58335H7.33301C6.32467%204.58335%205.49967%205.40835%205.49967%206.41669V19.25C5.49967%2020.2584%206.32467%2021.0834%207.33301%2021.0834H17.4163C18.4247%2021.0834%2019.2497%2020.2584%2019.2497%2019.25V6.41669C19.2497%205.40835%2018.4247%204.58335%2017.4163%204.58335ZM17.4163%2019.25H7.33301V6.41669H17.4163V19.25Z'%20fill='%236F7C90'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_1446_32274'%3e%3crect%20width='22'%20height='22'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",lrA="Custom Connectors",x7="Settings",crA=()=>p.jsxs(mA,{gap:"24px",marginTop:"28px",paddingRight:"65px",children:[p.jsxs("div",{children:[p.jsx(Ir,{variant:"rounded",width:100,height:24,animation:"wave",margin:"12px 0px 10px 0px"}),p.jsx(Ir,{variant:"rounded",height:40,animation:"wave",margin:"12px 0px 10px 0px"})]}),p.jsxs("div",{children:[p.jsx(Ir,{variant:"rounded",width:100,height:24,animation:"wave",margin:"12px 0px 10px 0px"}),p.jsx(Ir,{variant:"rounded",height:40,animation:"wave",margin:"12px 0px 10px 0px"})]})]}),ErA=({isEdit:A=!1,connectorId:e,isLoading:t=!1,connectorData:n,authStatus:r})=>{const{sendTrackingEvent:o,availableFeatures:s}=y.useContext(Yt),a=$r(),[g,C]=y.useReducer(nrA,trA),[l,c]=y.useState(!1),E=n?n.name:"",d=n?n.description:"",B=n?n.isAuthenticated:!1,u=n&&n.variablesConfig?n.variablesConfig:[],I=(n==null?void 0:n.advancedSettingsFields)??[],Q=a4(s),m=y.useMemo(()=>!Q||!(n!=null&&n.interpolationFields)?{}:_nA(n==null?void 0:n.interpolationFields),[n==null?void 0:n.interpolationFields,Q]);y.useEffect(()=>{var N;if(n!=null&&n.authDetails){const R=KnA(n.authDetails);C({type:Fr.SET_FIELDS,payload:{values:R}})}if(n!=null&&n.variables&&Object.keys(n.variables).forEach(R=>{var H;C({type:Fr.SET_FIELD_VALUE,payload:{name:R,value:((H=n.variables)==null?void 0:H[R])||""}})}),n!=null&&n.redirectUrl&&C({type:Fr.SET_FIELD_VALUE,payload:{name:WA.oAuthRedirectUrl,value:n==null?void 0:n.redirectUrl}}),Q&&(n!=null&&n.interpolationFields)&&(n!=null&&n.variables)){const R=f7((N=n==null?void 0:n.authDetails)==null?void 0:N.authType);Object.entries(n.interpolationFields).forEach(([H,z])=>{const G=R[H];G&&C({type:Fr.SET_FIELD_VALUE,payload:{name:G,value:h7(z,n.variables)}})})}},[n,Q]);const h=(N,R)=>{C({type:Fr.SET_FIELD_VALUE,payload:{value:R,name:N}})},b=N=>{var eA,Z;N.stopPropagation();const{name:R,value:H}=(N==null?void 0:N.target)||{};if(h(R,H.trim()),!Q)return;const z=m[R];if(!(z!=null&&z.length))return;const G=(eA=g.values)==null?void 0:eA.authType,U=f7(typeof G=="object"?G.value:void 0);for(const J of z){const _=U[J],rA=(Z=n==null?void 0:n.interpolationFields)==null?void 0:Z[J];if(!_||!rA)continue;const K=h7(rA,{...g.values,[R]:H});h(_,K)}},f=(N,R)=>{N&&typeof N=="object"&&"label"in N&&typeof N.label=="string"&&"value"in N&&typeof N.value=="string"&&typeof R.name<"u"&&(R.name===eo.authType&&o(Je.AUTH_UPDATED,{selected_auth_type:N.label}),h(R.name,{value:N.value,label:N.label}))},v=(N,R)=>{C({type:Fr.SET_FIELD_ERROR,payload:{name:N,value:R}})},D=()=>{if(u)if(Q){const{advanced:H,basic:z}=Q7(u,I);pa.formFields=H,FC.formFields=z}else pa.formFields=[...u];let N=[];pa.formFields&&pa.formFields.length&&(N=[pa]);const R=g.values.authType;if(Q){const H=typeof R=="object"?R.value:void 0,z=[...LC];H===No.apiToken.value?z.push(...v7):H===No.oAuth.value?z.push(...b7):z.push(...y7);const{basicFields:G,advancedConfigs:U}=ZnA(z,I,H);FC.formFields.push(...G),N.push(...U),FC.formFields.length&&N.push(FC)}else typeof R=="object"&&R.value===No.apiToken.value?N=[...N,...LC,...v7]:typeof R=="object"&&R.value===No.oAuth.value?N=[...N,...LC,...b7]:N=[...N,...LC,...y7];return N},x=()=>{const N={};return typeof g.values.apiAddTo=="object"&&g.values.apiAddTo.value===OC.queryParam.value?(N.apiHeaderPrefix=!1,N.apiHeaderName=!1):N.apiParamName=!1,N},P=()=>{const N=x(),R=s4(D());return!Object.keys(g.errors).filter(z=>!!g.errors[z]).filter(z=>z in N?N[z]:!0).filter(z=>z in R).length},M=()=>{var z;const N=x(),R=s4(D()),H=qnA({isEdit:A,templateId:e,values:g.values,formFields:R,predicates:N});if(u&&u.length){const G=JnA(u,g.values);H.variables=G}o(Je.SAVE_AUTHORIZE_CLICKED,{connector_name:E,auth_type:((z=g.values.authType)==null?void 0:z.label)??g.values.authType,base_url:g.values.baseUrl}),!A&&"templateId"in H?a(Ks({data:H})):a(Ks({data:H,connectorId:e}))},F=()=>{g.values.oAuthRedirectUrl&&IX(g.values.oAuthRedirectUrl,N=>c(!N))},k={[WA.oAuthRedirectUrl]:{icon:p.jsx("img",{alt:"copy",src:CrA,onClick:F}),toolTipText:CX}},j=D().filter(GnA),O=D().filter(YnA);return p.jsxs(arA,{children:[p.jsxs(rrA,{direction:"column",gap:1,children:[A&&!B?p.jsx(ql,{severity:"error",sx:{width:"fit-content"},children:lX}):null,p.jsx(orA,{variant:"h2",children:x7})]}),t?p.jsxs(p.Fragment,{children:[p.jsx(znA,{}),p.jsx(crA,{})]}):p.jsxs(p.Fragment,{children:[p.jsxs("div",{children:[p.jsx(jA,{variant:"h3",children:E}),p.jsx(irA,{variant:"body2",children:d})]}),p.jsxs(srA,{children:[p.jsx(B7,{formConfig:Q?j:D(),selectChangeHandler:f,inputChangeHandler:b,predicates:x(),values:g.values,validations:w7,onValidationError:v,icons:k}),Q&&O.length>0&&p.jsx(XnA,{titleNode:p.jsx(jA,{variant:"h3",children:"Advanced settings"}),children:p.jsx(B7,{formConfig:O,selectChangeHandler:f,inputChangeHandler:b,predicates:x(),values:g.values,validations:w7,onValidationError:v,icons:k})})]}),p.jsx(grA,{direction:"row",children:p.jsx(It,{disabled:!P()||t||r===qe.PENDING,onClick:M,children:"Save & Authorize"})})]}),p.jsx(cH,{message:QY,anchorOrigin:{vertical:"bottom",horizontal:"left"},autoHideDuration:2e3,onClose:()=>c(!1),open:l})]})},IrA=A=>w.createElement("svg",{width:19,height:14,viewBox:"0 0 19 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",...A},w.createElement("path",{d:"M4.5 11C5.15764 11 5.79771 11.0833 6.42021 11.25C7.04285 11.4167 7.65278 11.625 8.25 11.875V2.41667C7.66667 2.11111 7.0625 1.88194 6.4375 1.72917C5.8125 1.57639 5.16514 1.5 4.49542 1.5C3.98236 1.5 3.47292 1.54514 2.96708 1.63542C2.46125 1.72569 1.97222 1.875 1.5 2.08333V11.5C1.98611 11.3194 2.47785 11.191 2.97521 11.1146C3.47271 11.0382 3.98097 11 4.5 11ZM9.75 11.875C10.3472 11.5972 10.9572 11.3819 11.5798 11.2292C12.2023 11.0764 12.8424 11 13.5 11C14.0139 11 14.5243 11.0312 15.0312 11.0938C15.5382 11.1562 16.0278 11.2917 16.5 11.5V2.08333C16.0139 1.90278 15.5195 1.76042 15.0169 1.65625C14.5142 1.55208 14.0081 1.5 13.4983 1.5C12.8328 1.5 12.1875 1.57639 11.5625 1.72917C10.9375 1.88194 10.3333 2.11111 9.75 2.41667V11.875ZM9 14C8.31944 13.5556 7.60417 13.1944 6.85417 12.9167C6.10417 12.6389 5.31944 12.5 4.5 12.5C3.97222 12.5 3.44444 12.5521 2.91667 12.6562C2.38889 12.7604 1.88194 12.9167 1.39583 13.125C1.0625 13.2639 0.746528 13.2394 0.447917 13.0515C0.149306 12.8635 0 12.5894 0 12.2292V1.75C0 1.55556 0.0520833 1.375 0.15625 1.20833C0.260417 1.04167 0.402778 0.916667 0.583333 0.833333C1.20833 0.555556 1.8475 0.347222 2.50083 0.208333C3.15417 0.0694444 3.82056 0 4.5 0C5.29097 0 6.06486 0.09375 6.82167 0.28125C7.57847 0.46875 8.30458 0.75 9 1.125C9.70833 0.763889 10.4388 0.486111 11.1915 0.291667C11.944 0.0972222 12.7135 0 13.5 0C14.1794 0 14.8458 0.0694444 15.4992 0.208333C16.1525 0.347222 16.7917 0.555556 17.4167 0.833333C17.5972 0.916667 17.7431 1.04167 17.8542 1.20833C17.9653 1.375 18.0208 1.55556 18.0208 1.75V12.2292C18.0208 12.5764 17.9132 12.8542 17.6979 13.0625C17.4826 13.2708 17.2569 13.3194 17.0208 13.2083C16.4653 12.9583 15.8925 12.7778 15.3025 12.6667C14.7126 12.5556 14.1118 12.5 13.5 12.5C12.6806 12.5 11.8958 12.6389 11.1458 12.9167C10.3958 13.1944 9.68056 13.5556 9 14Z",fill:"#4D596C"})),urA=A=>w.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,viewBox:"0 0 20 20",fill:"none",...A},w.createElement("g",{clipPath:"url(#clip0_5762_155564)"},w.createElement("path",{d:"M8.33342 13.75L13.3334 9.99996L8.33342 6.24996V13.75ZM10.0001 1.66663C5.40008 1.66663 1.66675 5.39996 1.66675 9.99996C1.66675 14.6 5.40008 18.3333 10.0001 18.3333C14.6001 18.3333 18.3334 14.6 18.3334 9.99996C18.3334 5.39996 14.6001 1.66663 10.0001 1.66663ZM10.0001 16.6666C6.32508 16.6666 3.33341 13.675 3.33341 9.99996C3.33341 6.32496 6.32508 3.33329 10.0001 3.33329C13.6751 3.33329 16.6667 6.32496 16.6667 9.99996C16.6667 13.675 13.6751 16.6666 10.0001 16.6666Z",fill:"#4D596C"})),w.createElement("defs",null,w.createElement("clipPath",{id:"clip0_5762_155564"},w.createElement("rect",{width:20,height:20,fill:"white"})))),BrA=A=>w.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...A},w.createElement("path",{d:"M17.5 9.31947C17.503 10.456 17.2374 11.5772 16.725 12.5917C16.1174 13.8074 15.1834 14.8299 14.0275 15.5447C12.8717 16.2595 11.5396 16.6384 10.1806 16.6389C9.044 16.6419 7.92282 16.3763 6.90833 15.8639L2 17.5L3.63611 12.5917C3.12369 11.5772 2.85815 10.456 2.86111 9.31947C2.86164 7.96043 3.24053 6.62837 3.95534 5.4725C4.67016 4.31663 5.69266 3.3826 6.90833 2.77502C7.92282 2.2626 9.044 1.99706 10.1806 2.00002H10.6111C11.4833 2.04814 12.332 2.25177 13.1199 2.59427C13.9534 2.95658 14.7189 3.4743 15.3723 4.12771C16.1287 4.8841 16.7033 5.7907 17.0654 6.77911C17.3118 7.45168 17.4599 8.16213 17.5 8.88891V9.31947Z",stroke:"#4D596C",strokeWidth:1.44667,strokeLinecap:"round",strokeLinejoin:"round"}),w.createElement("circle",{cx:7,cy:9.5,r:1,fill:"#4D596C"}),w.createElement("circle",{cx:10,cy:9.5,r:1,fill:"#4D596C"}),w.createElement("circle",{cx:13,cy:9.5,r:1,fill:"#4D596C"})),QrA=S(re)`
3090
3090
  background-color: #f6f8fc;
3091
3091
  border-radius: 4px;
3092
3092
  padding: 4px 12px 4px 12px;
@@ -3106,7 +3106,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
3106
3106
  `,mrA=S(Pn.ChevronRightOutlined)`
3107
3107
  height: 20px;
3108
3108
  width: 20px;
3109
- `,vrA=[{icon:p.jsx(urA,{}),text:H$,keys:{link:"setupguideVideoLink",preview:"setupguideVideoPreviewImage"},event:Je.CONNECTOR_VIDEO_CLICKED},{icon:p.jsx(IrA,{}),text:V$,link:z$,keys:{link:"helpArticleLink"},event:Je.CONNECTOR_AUTH_PAGE_KB_CLICKED,prefixName:!0},{icon:p.jsx(BrA,{}),text:X$,link:W$,event:Je.CONNECTOR_AUTH_PAGE_CONTACT_SUPPORT_CLICKED}],brA=({connectorName:A,supportLinks:e})=>{const{availableFeatures:t,sendTrackingEvent:n}=y.useContext(Yt),r=yo(t,eX),o=a4(t),s=(a,g)=>{n(g,{connectorName:A}),window.open(a,"_blank")};return r?p.jsx(mA,{gap:"12px",children:vrA.map(({icon:a,text:g,link:C,keys:l,event:c,prefixName:E})=>{const d=l!=null&&l.link?e==null?void 0:e[l.link]:null,B=o?d??C:C;if(!B)return null;const u=o&&E&&A?`${A} ${g}`:g,I=o&&(l!=null&&l.preview)?e==null?void 0:e[l.preview]:null;return p.jsxs(QrA,{onClick:()=>s(B,c),children:[p.jsxs(drA,{direction:"row",justifyContent:"space-between",alignItems:"center",children:[p.jsxs(mA,{direction:"row",gap:"11px",alignItems:"center",children:[p.jsx(prA,{children:a}),p.jsx(hrA,{variant:"body2_medium",children:u})]}),p.jsx(mrA,{})]}),I&&p.jsx(frA,{children:p.jsx(UnA,{src:I,alt:g})})]},B)})}):null},yrA=A=>A.auth.authUrl,wrA=A=>A.auth.verifyTokenApiStatus,xrA=A=>A.auth.authVerificationDone,DrA=A=>A.auth.authStatus,TrA=S(mA)`
3109
+ `,vrA=[{icon:p.jsx(urA,{}),text:H$,keys:{link:"setupguideVideoLink",preview:"setupguideVideoPreviewImage"},event:Je.CONNECTOR_VIDEO_CLICKED},{icon:p.jsx(IrA,{}),text:V$,link:z$,keys:{link:"helpArticleLink"},event:Je.CONNECTOR_AUTH_PAGE_KB_CLICKED,prefixName:!0},{icon:p.jsx(BrA,{}),text:X$,link:W$,event:Je.CONNECTOR_AUTH_PAGE_CONTACT_SUPPORT_CLICKED}],brA=({connectorName:A,supportLinks:e})=>{const{availableFeatures:t,sendTrackingEvent:n}=y.useContext(Yt),r=yo(t,eX),o=a4(t),s=(a,g)=>{n(g,{source:A}),window.open(a,"_blank")};return r?p.jsx(mA,{gap:"12px",children:vrA.map(({icon:a,text:g,link:C,keys:l,event:c,prefixName:E})=>{const d=l!=null&&l.link?e==null?void 0:e[l.link]:null,B=o?d??C:C;if(!B)return null;const u=o&&E&&A?`${A} ${g}`:g,I=o&&(l!=null&&l.preview)?e==null?void 0:e[l.preview]:null;return p.jsxs(QrA,{onClick:()=>s(B,c),children:[p.jsxs(drA,{direction:"row",justifyContent:"space-between",alignItems:"center",children:[p.jsxs(mA,{direction:"row",gap:"11px",alignItems:"center",children:[p.jsx(prA,{children:a}),p.jsx(hrA,{variant:"body2_medium",children:u})]}),I?null:p.jsx(mrA,{})]}),I&&p.jsx(frA,{children:p.jsx(UnA,{src:I,alt:g})})]},B)})}):null},yrA=A=>A.auth.authUrl,wrA=A=>A.auth.verifyTokenApiStatus,xrA=A=>A.auth.authVerificationDone,DrA=A=>A.auth.authStatus,TrA=S(mA)`
3110
3110
  width: 100%;
3111
3111
  height: 100%;
3112
3112
  padding: 17px 52px 0 0;
@@ -3142,7 +3142,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
3142
3142
  `,LrA=S(Pn.OpenInNew)`
3143
3143
  height: 18px;
3144
3144
  width: 18px;
3145
- `,krA=({upgradeGuideContent:A,upgradeGuideLink:e})=>p.jsxs(PrA,{children:[p.jsxs(mA,{marginBottom:"20px",children:[p.jsxs(mA,{direction:"row",padding:"8px 0",gap:"4px",alignItems:"center",children:[p.jsx(MrA,{}),p.jsx(jA,{variant:"body1_medium",color:Ae.palette.gray.black,children:mY})]}),p.jsx(jA,{variant:"body2",children:vY})]}),p.jsx(jA,{variant:"body2_medium",marginBottom:"8px",color:Ae.palette.gray.black,children:bY}),p.jsx(FrA,{variant:"body2",dangerouslySetInnerHTML:{__html:A}}),e?p.jsxs(OrA,{target:"_blank",underline:"none",href:e,children:[p.jsx(LrA,{}),yY]}):null]}),SrA=()=>{const A=ye(iC),e=ye(tE),t=ye(PE),n=ye(u6),r=ye(yrA),o=ye(DrA),s=Fo(),{id:a=""}=_6(),[g]=ap(),C=g.get("isEdit")==="true",l=(A==null?void 0:A[a])||null,c=(e==null?void 0:e[a])||null,E=C?l:c,d=!!(E!=null&&E.showUpgradeButton),B=$r();y.useEffect(()=>()=>{B(kY())},[B]),y.useEffect(()=>{B(C?Gs(a):Ys(a))},[C,B,a]),y.useEffect(()=>{let Q,m,h;const b=f=>{Q&&f.origin===window.location.origin&&(f.data===Q6||f.data===nE)&&(clearTimeout(m),Q.close(),B(sE(f.data===nE?qe.OAUTH_SUCCESS:qe.OAUTH_FAILED)))};if(r){Q=window.open(r,"_blank");const f=5*60*1e3;m=setTimeout(()=>{Q==null||Q.close(),B(sE(qe.OAUTH_FAILED))},f),h=setInterval(()=>{Q&&Q.closed&&(clearInterval(h),Q=null,B(sE(qe.OAUTH_FAILED)))},500),window.addEventListener("message",b)}return()=>{window.removeEventListener("message",b),clearTimeout(m),clearInterval(h)}},[r,B]),y.useEffect(()=>{switch((o===qe.OAUTH_SUCCESS||o===qe.OAUTH_FAILED||o===qe.API_KEY_SUCCESS||o===qe.API_KEY_FAILED||o===qe.BASIC_AUTH_SUCCESS||o===qe.BASIC_AUTH_FAILED)&&s(he.BASEPATH),o){case qe.OAUTH_SUCCESS:{er({message:d?rE:d6,type:sa});break}case qe.OAUTH_FAILED:{er({message:d?oE:f6,type:ko});break}case qe.REQUEST_FAILED:{er({message:p6,type:ko});break}case qe.API_KEY_SUCCESS:{er({message:d?rE:dY,type:sa});break}case qe.API_KEY_FAILED:{er({message:d?oE:p6,type:ko});break}case qe.BASIC_AUTH_SUCCESS:{er({message:d?rE:d6,type:sa});break}case qe.BASIC_AUTH_FAILED:{er({message:d?oE:f6,type:ko});break}}},[o,s,d]);const u=t===VA.LOADING||n===VA.LOADING,I=[{name:lrA,route:`${he.BASEPATH}${he.DASHBOARD}`},{name:(E==null?void 0:E.name)||"",route:`${he.BASEPATH}${he.API_VIEW}/${a}?isEdit=${String(C)}`},{name:x7}];return p.jsxs(TrA,{direction:"row",children:[p.jsxs("div",{children:[p.jsx(mAA,{options:I}),p.jsx(ErA,{connectorId:a,isEdit:C,connectorData:E,authStatus:o,isLoading:u})]}),p.jsxs(mA,{gap:"36px",width:"410px",children:[E!=null&&E.upgradeGuideContent?p.jsx(krA,{upgradeGuideContent:E.upgradeGuideContent,upgradeGuideLink:E.upgradeGuideLink}):null,p.jsxs(mA,{gap:"12px",children:[p.jsx(jA,{variant:"h2",marginBottom:"8px",children:G$}),C?null:p.jsx($E,{isSettingsPage:!0}),p.jsx(brA,{connectorName:E==null?void 0:E.name,supportLinks:E==null?void 0:E.supportLinks})]})]})]})},NrA=S(re)`
3145
+ `,krA=({upgradeGuideContent:A,upgradeGuideLink:e})=>p.jsxs(PrA,{children:[p.jsxs(mA,{marginBottom:"20px",children:[p.jsxs(mA,{direction:"row",padding:"8px 0",gap:"4px",alignItems:"center",children:[p.jsx(MrA,{}),p.jsx(jA,{variant:"body1_medium",color:Ae.palette.gray.black,children:mY})]}),p.jsx(jA,{variant:"body2",children:vY})]}),p.jsx(jA,{variant:"body2_medium",marginBottom:"8px",color:Ae.palette.gray.black,children:bY}),p.jsx(FrA,{variant:"body2",dangerouslySetInnerHTML:{__html:A}}),e?p.jsxs(OrA,{target:"_blank",underline:"none",href:e,children:[p.jsx(LrA,{}),yY]}):null]}),SrA=()=>{const A=ye(iC),e=ye(tE),t=ye(PE),n=ye(u6),r=ye(yrA),o=ye(DrA),s=Fo(),{id:a=""}=_6(),[g]=ap(),C=g.get("isEdit")==="true",l=(A==null?void 0:A[a])||null,c=(e==null?void 0:e[a])||null,E=C?l:c,d=!!(E!=null&&E.showUpgradeButton),B=$r();y.useEffect(()=>()=>{B(kY())},[B]),y.useEffect(()=>{B(C?Gs(a):Ys(a))},[C,B,a]),y.useEffect(()=>{let Q,m,h;const b=f=>{Q&&f.origin===window.location.origin&&(f.data===Q6||f.data===nE)&&(clearTimeout(m),Q.close(),B(sE(f.data===nE?qe.OAUTH_SUCCESS:qe.OAUTH_FAILED)))};if(r){Q=window.open(r,"_blank");const f=5*60*1e3;m=setTimeout(()=>{Q==null||Q.close(),B(sE(qe.OAUTH_FAILED))},f),h=setInterval(()=>{Q&&Q.closed&&(clearInterval(h),Q=null,B(sE(qe.OAUTH_FAILED)))},500),window.addEventListener("message",b)}return()=>{window.removeEventListener("message",b),clearTimeout(m),clearInterval(h)}},[r,B]),y.useEffect(()=>{switch((o===qe.OAUTH_SUCCESS||o===qe.OAUTH_FAILED||o===qe.API_KEY_SUCCESS||o===qe.API_KEY_FAILED||o===qe.BASIC_AUTH_SUCCESS||o===qe.BASIC_AUTH_FAILED)&&s(he.BASEPATH),o){case qe.OAUTH_SUCCESS:{er({message:d?rE:d6,type:sa});break}case qe.OAUTH_FAILED:{er({message:d?oE:f6,type:ko});break}case qe.REQUEST_FAILED:{er({message:p6,type:ko});break}case qe.API_KEY_SUCCESS:{er({message:d?rE:dY,type:sa});break}case qe.API_KEY_FAILED:{er({message:d?oE:p6,type:ko});break}case qe.BASIC_AUTH_SUCCESS:{er({message:d?rE:d6,type:sa});break}case qe.BASIC_AUTH_FAILED:{er({message:d?oE:f6,type:ko});break}}},[o,s,d]);const u=t===VA.LOADING||n===VA.LOADING,I=[{name:lrA,route:`${he.BASEPATH}${he.DASHBOARD}`},{name:(E==null?void 0:E.name)||"",route:`${he.BASEPATH}${he.API_VIEW}/${a}?isEdit=${String(C)}`},{name:x7}];return p.jsxs(TrA,{direction:"row",children:[p.jsxs("div",{children:[p.jsx(mAA,{options:I}),p.jsx(ErA,{connectorId:a,isEdit:C,connectorData:E,authStatus:o,isLoading:u})]}),p.jsxs(mA,{gap:"36px",width:"322px",children:[E!=null&&E.upgradeGuideContent?p.jsx(krA,{upgradeGuideContent:E.upgradeGuideContent,upgradeGuideLink:E.upgradeGuideLink}):null,p.jsxs(mA,{gap:"12px",children:[p.jsx(jA,{variant:"h2",marginBottom:"8px",children:G$}),C?null:p.jsx($E,{isSettingsPage:!0}),p.jsx(brA,{connectorName:E==null?void 0:E.name,supportLinks:E==null?void 0:E.supportLinks})]})]})]})},NrA=S(re)`
3146
3146
  position: fixed;
3147
3147
  z-index: 1000;
3148
3148
  background-color: #fff;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hiver/connector-admin",
3
- "version": "1.5.1-beta.6",
3
+ "version": "1.5.1-beta.7",
4
4
  "main": "index.es.js",
5
5
  "module": "index.es.js",
6
6
  "types": "index.d.ts",