@hiver/connector-admin 4.25.0-ghlClaim-beta.1 → 4.25.0-ghlClaim-beta.2

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/pages/gohighlevel-claim/index.tsx"],"names":[],"mappings":"AAqDA;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,+CAwD5B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/app/connectors/pages/gohighlevel-claim/index.tsx"],"names":[],"mappings":"AAyDA;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,+CAwD5B,CAAC"}
package/index.es.js CHANGED
@@ -38038,6 +38038,10 @@ const lb = R(le)`
38038
38038
  title: "This agency is connected to another Hiver workspace",
38039
38039
  body: "A GoHighLevel agency can be connected to one Hiver workspace. Contact support@hiverhq.com if this is unexpected."
38040
38040
  },
38041
+ other_agency: {
38042
+ title: "This workspace is connected to a different agency",
38043
+ body: "Your Hiver workspace is already connected to another GoHighLevel agency, and a workspace can connect one agency. Contact support@hiverhq.com to switch agencies."
38044
+ },
38041
38045
  failed: {
38042
38046
  title: "We couldn't finish connecting GoHighLevel",
38043
38047
  body: "Reload this page to try again. If it keeps failing, contact support@hiverhq.com."
package/index.umd.js CHANGED
@@ -2571,7 +2571,7 @@ https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStat
2571
2571
  gap: 24px;
2572
2572
  margin-top: 16px;
2573
2573
  align-items: start;
2574
- `,TW=({carouselImages:e,illustrationUrl:t,overviewHelpHeading:n,showScheduleCall:r,templateDescription:o,features:A,supportLinks:a,appName:i})=>{const s=(e??[]).map(({url:c})=>({src:c}));return l.jsxs(SW,{children:[l.jsxs("div",{children:[t?l.jsx(Gb,{children:l.jsx("img",{src:t,alt:`${i??"App"} overview`})}):s.length>0&&l.jsx(_C,{previewList:s}),o&&l.jsx(g.Typography,{variant:"body2",sx:{color:"var(--connector-admin-text-heading)",marginTop:2},children:l.jsx("span",{dangerouslySetInnerHTML:{__html:o}})}),A&&A.length>0&&l.jsxs(Hb,{children:[l.jsx(g.Typography,{sx:{fontWeight:g.theme.typography.fontWeightMedium,fontSize:`${g.theme.typography.body1.fontSize}px`,lineHeight:"24px",letterSpacing:"0.042px",color:"var(--connector-admin-text-primary)",marginBottom:"8px"},children:"Features"}),A.map((c,u)=>l.jsxs(g.Typography,{sx:{fontSize:`${g.theme.typography.body2.fontSize}px`,lineHeight:"20px",color:"var(--connector-admin-text-secondary)"},children:[u+1,". ",c]},u))]})]}),l.jsxs(g.Stack,{gap:"12px",children:[l.jsx(g.Typography,{variant:"h2",marginBottom:"8px",children:n??Sd}),r!==!1&&l.jsx(Wi,{isSettingsPage:!0}),l.jsx(HC,{connectorName:i,supportLinks:a})]})]})},Zb=e=>bd(e,!1),qb=["Overview","Visibility"],DW={title:"Configuration",visibility:!0},Ub={textTransform:"none",fontSize:`${g.theme.typography.body1.fontSize}px`,fontWeight:g.theme.typography.fontWeightMedium,letterSpacing:"0.25px",minHeight:"auto",padding:"0",color:"var(--connector-admin-text-tertiary)","&.Mui-selected":{color:"var(--connector-admin-accent)"}},OW=({mode:e})=>{const t=Jt(),n=cn(),{id:r=""}=ko(),o=xe(CA),A=xe(Nn),a=xe(ac),i=xe(so),s=e==="template"?(o==null?void 0:o[r])??null:null,c=e==="connector"?(A==null?void 0:A[r])??null:null;return b.useEffect(()=>{var u,d;r&&(e==="template"?(u=o==null?void 0:o[r])!=null&&u.apiList||n(EA(r)):(d=A==null?void 0:A[r])!=null&&d.apiList||n(pA(r)))},[r,e,o,A,n]),e==="template"?s!=null&&s.apiList?Zb(s.type)?l.jsx(Kb,{mode:"template",id:r,headerSource:s}):l.jsx(da,{to:`${Se.BASEPATH}${Se.API_VIEW}/${r}`,replace:!0}):a===pe.FAILED?l.jsxs(Kr,{children:[l.jsxs(Ra,{onClick:()=>t(`${Se.BASEPATH}${Se.DASHBOARD}`),children:[l.jsx(Na,{"aria-hidden":!0,width:20,height:20}),"Apps Marketplace"]}),l.jsx(g.Typography,{variant:"h6",sx:{marginTop:2,fontWeight:g.theme.typography.fontWeightSemiBold},children:"Couldn’t load app"}),l.jsxs(g.Typography,{variant:"body2",sx:{color:"var(--connector-admin-text-tertiary)"},children:["Template ID “",r,"” couldn’t be fetched. Try refreshing."]})]}):l.jsx(Kr,{children:l.jsx(Wl,{})}):c!=null&&c.apiList?Zb(c.type)?l.jsx(Kb,{mode:"connector",id:r,headerSource:c}):l.jsx(da,{to:`${Se.BASEPATH}${Se.API_VIEW}/${r}?isEdit=true`,replace:!0}):i===pe.FAILED?l.jsxs(Kr,{children:[l.jsxs(Ra,{onClick:()=>t(`${Se.BASEPATH}${Se.DASHBOARD}`),children:[l.jsx(Na,{"aria-hidden":!0,width:20,height:20}),"Apps Marketplace"]}),l.jsx(g.Typography,{variant:"h6",sx:{marginTop:2,fontWeight:g.theme.typography.fontWeightSemiBold},children:"Couldn’t load app"}),l.jsxs(g.Typography,{variant:"body2",sx:{color:"var(--connector-admin-text-tertiary)"},children:["Connector ID “",r,"” couldn’t be fetched. Try refreshing."]})]}):l.jsx(Kr,{children:l.jsx(Wl,{})})},Kb=({mode:e,id:t,headerSource:n})=>{const r=Jt(),o=g.useTheme(),[A,a]=Ro(),i=b.useMemo(()=>g.createTheme(o,{typography:jg("'Hanken Grotesk', system-ui, sans-serif").typography}),[o]),c=yQ(n.type)({mode:e,id:t}),u=n.logo,d=A.get("tab"),h=d==="overview"?0:d==="visibility"?1:e==="connector"?1:0,[I,E]=b.useState(h),C=(p,f)=>{E(f);const m=new URLSearchParams(A);m.set("tab",f===1?"visibility":"overview"),a(m,{replace:!0})},Q=()=>C({},1);return l.jsx(g.HiverProvider,{theme:i,children:l.jsxs(Kr,{children:[l.jsxs(Ra,{onClick:()=>r(`${Se.BASEPATH}${Se.DASHBOARD}`),children:[l.jsx(Na,{"aria-hidden":!0,width:20,height:20}),"Apps Marketplace"]}),l.jsxs(JC,{children:[l.jsxs(XC,{children:[u&&l.jsx(Mb,{children:l.jsx(_b,{children:l.jsx("img",{src:u,alt:n.name})})}),l.jsxs(xW,{children:[l.jsx(g.Typography,{sx:{fontWeight:g.theme.typography.fontWeightMedium,fontSize:`${g.theme.typography.h1.fontSize}px`,lineHeight:"32px",letterSpacing:"0.2px",color:"var(--connector-admin-app-title)"},children:n.name}),l.jsx(g.Typography,{sx:{fontWeight:g.theme.typography.fontWeightRegular,fontSize:`${g.theme.typography.body1.fontSize}px`,lineHeight:"20px",color:"var(--connector-admin-text-secondary)"},children:n.description})]})]}),e==="template"&&I===0&&l.jsx(wW,{variant:"contained",disableElevation:!0,onClick:Q,children:"Start setup"}),e==="connector"&&l.jsx(vW,{connectorId:t,isEnabled:!!n.isEnabled,isAuthenticated:!!n.isAuthenticated,connectorType:n.type,connectorName:n.name})]}),l.jsxs(g.Tabs,{value:I,onChange:C,TabIndicatorProps:{sx:{backgroundColor:"var(--connector-admin-accent)",height:"2px"}},sx:{marginTop:4,minHeight:"auto",width:"100%",borderBottom:"1px solid var(--connector-admin-border-strong)"},children:[l.jsx(g.Tab,{label:qb[0],sx:Ub}),l.jsx(g.Tab,{label:qb[1],sx:Ub})]}),l.jsx("div",{hidden:I!==0,style:{paddingTop:24},children:l.jsx(TW,{carouselImages:n.carouselImages,illustrationUrl:n.illustrationUrl,overviewHelpHeading:n.overviewHelpHeading,showScheduleCall:n.showScheduleCall,templateDescription:n.templateDescription,features:n.features,supportLinks:n.supportLinks,appName:n.name})}),l.jsx("div",{hidden:I!==1,style:{paddingTop:24},children:l.jsx(Xb,{schema:n.configuration??DW,controller:c})})]})})},FW=({carouselImages:e,illustrationUrl:t,overviewHelpHeading:n,showScheduleCall:r,templateDescription:o,features:A,apiList:a,appType:i,supportLinks:s,appName:c})=>{const u=(e??[]).map(({url:B})=>({src:B})),d=(a??[]).filter(({keyName:B,name:h})=>!/webhook/i.test(`${B??""} ${h??""}`));return l.jsxs(Vb,{children:[l.jsxs("div",{children:[t?l.jsx(Gb,{children:l.jsx("img",{src:t,alt:`${c??"App"} overview`})}):u.length>0&&l.jsx(_C,{previewList:u}),o&&l.jsx(g.Typography,{variant:"body2",sx:{color:"var(--connector-admin-text-heading)",marginTop:2},children:l.jsx("span",{dangerouslySetInnerHTML:{__html:o}})}),A&&A.length>0&&l.jsxs(Hb,{children:[l.jsx(g.Typography,{sx:{fontWeight:g.theme.typography.fontWeightMedium,fontSize:`${g.theme.typography.body1.fontSize}px`,lineHeight:"24px",letterSpacing:"0.042px",color:"var(--connector-admin-text-primary)",marginBottom:"8px"},children:"Features"}),A.map((B,h)=>l.jsxs(g.Typography,{sx:{fontSize:`${g.theme.typography.body2.fontSize}px`,lineHeight:"20px",color:"var(--connector-admin-text-secondary)"},children:[h+1,". ",B]},h))]}),!(A!=null&&A.length)&&d.length>0&&l.jsx(OQ,{apiList:d,connectorName:c,connectorType:i})]}),l.jsxs(iW,{children:[l.jsx(g.Typography,{variant:"h2",marginBottom:"8px",children:n??Sd}),r!==!1&&l.jsx(Wi,{isSettingsPage:!0}),l.jsx(HC,{connectorName:c,supportLinks:s})]})]})},MW=[{label:"Active",enabled:!0},{label:"Inactive",enabled:!1}],_W=({connectorId:e,isEnabled:t,isAuthenticated:n,connectorType:r,connectorName:o})=>{const A=cn(),{sendTrackingEvent:a}=b.useContext($e),i=xe(Ca),s=xe(so),c=xe(cl),[u,d]=b.useState(null),B=(c==null?void 0:c[e])===pe.LOADING,I=[i,s].includes(pe.LOADING)||!n||B,E=C=>{d(null),C!==t&&A(IA({id:e,enabled:C})).unwrap().then(()=>{r==="slack"&&a(C?ze.SLACK_INTEGRATION_ENABLED:ze.SLACK_INTEGRATION_DISABLED,{connector_name:o}),C||tt({message:lc,type:hi})}).catch(()=>{tt({message:cc,type:Lt})})};return l.jsxs(l.Fragment,{children:[l.jsx(oW,{"aria-haspopup":"menu","aria-expanded":u?"true":void 0,disabled:I,onClick:C=>d(C.currentTarget),endIcon:B?l.jsx(g.CircularProgress,{size:16}):l.jsx(qC,{size:16}),children:t?"Active":"Inactive"}),l.jsx(g.Menu,{anchorEl:u,open:!!u,onClose:()=>d(null),sx:AW,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:MW.map(C=>l.jsx(g.MenuItem,{selected:C.enabled===t,onClick:()=>E(C.enabled),children:C.label},C.label))})]})},LW={overview:"Overview",authentication:"Authentication",visibility:"Visibility"},PW={title:"Configuration",visibility:!0},kW={textTransform:"none",fontSize:`${g.theme.typography.body1.fontSize}px`,fontWeight:g.theme.typography.fontWeightMedium,letterSpacing:"0.25px",minHeight:"auto",padding:"0",color:"var(--connector-admin-text-tertiary)","&.Mui-selected":{color:"var(--connector-admin-accent)"}},$b=({mode:e})=>{const{availableFeatures:t}=b.useContext($e);return Nt(t,xo)?l.jsx(NW,{mode:e}):l.jsx(OW,{mode:e})},NW=({mode:e})=>{const t=Jt(),n=cn(),{id:r=""}=ko(),o=xe(CA),A=xe(Nn),a=xe(ac),i=xe(so),s=e==="template"?(o==null?void 0:o[r])??null:null,c=e==="connector"?(A==null?void 0:A[r])??null:null;b.useEffect(()=>{var d,B;r&&(e==="template"?(d=o==null?void 0:o[r])!=null&&d.apiList||n(EA(r)):(B=A==null?void 0:A[r])!=null&&B.apiList||n(pA(r)))},[r,e,o,A,n]);const u=!!c;return b.useEffect(()=>{e!=="connector"||!r||n(Do())},[r,e,n]),b.useEffect(()=>{e!=="connector"||!r||!u||n(Qi(r))},[r,e,u,n]),e==="template"?s!=null&&s.apiList?gl(s.type)?l.jsx(ey,{mode:"template",id:r,headerSource:s}):l.jsx(da,{to:`${Se.BASEPATH}${Se.API_VIEW}/${r}`,replace:!0}):a===pe.FAILED?l.jsxs(Kr,{children:[l.jsxs(Ra,{onClick:()=>t(`${Se.BASEPATH}${Se.DASHBOARD}`),children:[l.jsx(Na,{"aria-hidden":!0,width:20,height:20}),"Apps Marketplace"]}),l.jsx(g.Typography,{variant:"h6",sx:{marginTop:2,fontWeight:g.theme.typography.fontWeightSemiBold},children:"Couldn’t load app"}),l.jsxs(g.Typography,{variant:"body2",sx:{color:"var(--connector-admin-text-tertiary)"},children:["Template ID “",r,"” couldn’t be fetched. Try refreshing."]})]}):l.jsx(Kr,{children:l.jsx(Wl,{})}):c!=null&&c.apiList?gl(c.type)?l.jsx(ey,{mode:"connector",id:r,headerSource:c}):l.jsx(da,{to:`${Se.BASEPATH}${Se.API_VIEW}/${r}?isEdit=true`,replace:!0}):i===pe.FAILED?l.jsxs(Kr,{children:[l.jsxs(Ra,{onClick:()=>t(`${Se.BASEPATH}${Se.DASHBOARD}`),children:[l.jsx(Na,{"aria-hidden":!0,width:20,height:20}),"Apps Marketplace"]}),l.jsx(g.Typography,{variant:"h6",sx:{marginTop:2,fontWeight:g.theme.typography.fontWeightSemiBold},children:"Couldn’t load app"}),l.jsxs(g.Typography,{variant:"body2",sx:{color:"var(--connector-admin-text-tertiary)"},children:["Connector ID “",r,"” couldn’t be fetched. Try refreshing."]})]}):l.jsx(Kr,{children:l.jsx(Wl,{})})},ey=({mode:e,id:t,headerSource:n})=>{const r=Jt(),o=g.useTheme(),[A,a]=Ro(),i=b.useMemo(()=>g.createTheme(o,{typography:jg("'Hanken Grotesk', system-ui, sans-serif").typography}),[o]),c=yQ(n.type)({mode:e,id:t}),u=n.logo,d=!(e==="template"&&Gi(n.type)),B=e==="connector"||Gi(n.type),h=["overview","authentication","visibility"].filter(T=>(T!=="authentication"||B)&&(T!=="visibility"||d)),I=A.get("tab"),E=e==="template"?"overview":n.isAuthenticated?"visibility":"authentication",[C,Q]=b.useState(I&&h.includes(I)?I:h.includes(E)?E:"overview"),p=T=>{Q(T);const O=new URLSearchParams(A);O.set("tab",T),a(O,{replace:!0})},{availableFeatures:f,connectorFunctions:m}=b.useContext($e),v=()=>d?p("visibility"):r(`${Se.BASEPATH}${Se.CONNECTOR_SETTINGS}/${t}`),w=qM(n.type)&&Nt(f,xo)&&typeof(m==null?void 0:m.openCopilot)=="function",x=e!=="connector"?null:n.isAuthenticated?{status:"connected",label:"Connected"}:n.authPending?null:{status:"failed",label:"Authentication failed"},y=()=>{var T;(T=m==null?void 0:m.openCopilot)==null||T.call(m,{app:n.type,connectorId:t,name:n.name})};return l.jsx(g.HiverProvider,{theme:i,children:l.jsxs(Kr,{children:[l.jsxs(Ra,{onClick:()=>r(`${Se.BASEPATH}${Se.DASHBOARD}`),children:[l.jsx(Na,{"aria-hidden":!0,width:20,height:20}),"Apps Marketplace"]}),l.jsxs(JC,{children:[l.jsxs(XC,{children:[u&&l.jsx(Mb,{children:l.jsx(_b,{children:l.jsx("img",{src:u,alt:n.name})})}),l.jsxs(WH,{children:[l.jsxs(zH,{children:[l.jsx(g.Typography,{sx:{fontWeight:g.theme.typography.fontWeightMedium,fontSize:`${g.theme.typography.h1.fontSize}px`,lineHeight:"32px",letterSpacing:"0.2px",color:"var(--connector-admin-app-title)"},children:n.name}),x&&l.jsx(rW,{"data-status":x.status,children:x.label})]}),l.jsx(g.Typography,{sx:{fontWeight:g.theme.typography.fontWeightRegular,fontSize:`${g.theme.typography.body1.fontSize}px`,lineHeight:"20px",color:"var(--connector-admin-text-secondary)"},children:n.description})]})]}),e==="template"&&(w||C==="overview")&&l.jsx(jb,{children:w?l.jsx(Rb,{variant:"contained",disableElevation:!0,onClick:y,children:"Setup with AI"}):l.jsx(YH,{variant:"contained",disableElevation:!0,onClick:v,children:"Start setup"})}),e==="connector"&&l.jsxs(jb,{children:[l.jsx(_W,{connectorId:t,isEnabled:!!n.isEnabled,isAuthenticated:!!n.isAuthenticated,connectorType:n.type,connectorName:n.name}),w&&l.jsxs(l.Fragment,{children:[l.jsx(aW,{role:"separator","aria-orientation":"vertical"}),l.jsx(Rb,{variant:"contained",disableElevation:!0,onClick:y,children:"Setup with AI"})]})]})]}),l.jsx(g.Tabs,{value:C,onChange:(T,O)=>p(O),TabIndicatorProps:{sx:{backgroundColor:"var(--connector-admin-accent)",height:"2px"}},sx:{marginTop:4,minHeight:"auto",width:"100%",boxShadow:"inset 0 -2px 0 var(--connector-admin-border-strong)"},children:h.map(T=>l.jsx(g.Tab,{value:T,label:LW[T],sx:kW,className:"border-b-0!"},T))}),l.jsx("div",{hidden:C!=="overview",style:{paddingTop:24},children:l.jsx(FW,{carouselImages:n.carouselImages,illustrationUrl:n.illustrationUrl,overviewHelpHeading:n.overviewHelpHeading,showScheduleCall:n.showScheduleCall,templateDescription:n.templateDescription,features:n.features,apiList:n.apiList,appType:n.type,supportLinks:n.supportLinks,appName:n.name})}),B&&l.jsx(sW,{hidden:C!=="authentication",style:{paddingTop:24},children:l.jsx(zC,{connectorData:n,isEdit:e==="connector",hideAuthFailedAlert:!0})}),l.jsx("div",{hidden:C!=="visibility",style:{paddingTop:24},children:e==="connector"&&Gi(n.type)?l.jsx(Sb,{connectorData:n}):l.jsx(Xb,{schema:n.configuration??PW,controller:c})})]})})},ty={not_admin:{title:"Ask a Hiver admin to finish this",body:"Only a Hiver admin can connect GoHighLevel. Ask an admin to sign in and open the link from the GoHighLevel install page again."},not_enabled:{title:"GoHighLevel isn't available on this workspace",body:"Contact support@hiverhq.com to enable the GoHighLevel integration for your Hiver workspace."},plan:{title:"Your Hiver plan doesn't include GoHighLevel",body:"Upgrade your plan, then install the app again from the GoHighLevel Marketplace."},expired:{title:"This install link has expired",body:"Install links work for 2 hours and only once. Install the app again from the GoHighLevel Marketplace."},agency_taken:{title:"This agency is connected to another Hiver workspace",body:"A GoHighLevel agency can be connected to one Hiver workspace. Contact support@hiverhq.com if this is unexpected."},failed:{title:"We couldn't finish connecting GoHighLevel",body:"Reload this page to try again. If it keeps failing, contact support@hiverhq.com."}},RW=new Set(Object.keys(ty)),jW=e=>{var r;const t=e==null?void 0:e.response;if((t==null?void 0:t.status)===402)return"plan";const n=(r=t==null?void 0:t.data)==null?void 0:r.reason;return typeof n=="string"&&RW.has(n)?n:"failed"},VW=()=>{const[e]=Ro(),t=Jt(),n=Cl(),r=e.get("install")??"",[o,A]=b.useState(r?{status:"claiming"}:{status:"failed",reason:"expired"}),a=b.useRef(!1);if(b.useEffect(()=>{!r||a.current||(a.current=!0,Je({url:R4,method:nt.POST,data:{install:r}}).then(s=>{const{connectorId:c,templateId:u,created:d}=(s==null?void 0:s.data)??{};if(!c){A({status:"failed",reason:"failed"});return}const B=d&&u?`${Se.BASEPATH}${Se.CONNECTOR_INITIAL_SETUP}/${u}?connectorId=${c}`:n({id:c,type:"gohighlevel",tabIndex:0});t(B,{replace:!0})}).catch(s=>A({status:"failed",reason:jW(s)})))},[r,t,n]),o.status==="claiming")return l.jsxs(g.Stack,{alignItems:"center",gap:2,sx:{padding:6},children:[l.jsx(g.CircularProgress,{size:28}),l.jsx(g.Typography,{variant:"h6",children:"Connecting GoHighLevel to Hiver…"}),l.jsx(g.Typography,{variant:"body2",children:"This takes a few seconds. Don't close this tab."})]});const i=ty[o.reason];return l.jsxs(g.Stack,{alignItems:"center",gap:2,sx:{padding:6,maxWidth:520,margin:"0 auto",textAlign:"center"},children:[l.jsx(g.Typography,{variant:"h6",children:i.title}),l.jsx(g.Typography,{variant:"body2",children:i.body}),l.jsx(g.Button,{size:"small",onClick:()=>t(`${Se.BASEPATH}${Se.DASHBOARD}`),children:"Go to Apps"})]})},ny=()=>{const e=Jt();return l.jsxs(g.Stack,{alignItems:"center",gap:2,sx:{padding:6},children:[l.jsx(g.Typography,{variant:"h6",children:"Page not found"}),l.jsx(g.Button,{size:"small",onClick:()=>e(`${Se.BASEPATH}${Se.DASHBOARD}`),children:"Go to Apps"})]})},ry=[{errorElement:l.jsx(ny,{}),children:[{path:Se.BASEPATH,element:l.jsx(TQ,{})},{path:Se.DASHBOARD,element:l.jsx(TQ,{})},{path:Se.AUTH_SUCCESS,element:l.jsx(RH,{})},{path:`${Se.API_VIEW}/:id`,element:l.jsx(aV,{})},{path:`${Se.CONNECTOR_SETTINGS}/:id`,element:l.jsx(LH,{})},{path:`${Se.NATIVE_INTEGRATION}/:id`,element:l.jsx(jH,{})},{path:`${Se.CONNECTOR_INITIAL_SETUP}/:id`,element:l.jsx(HH,{})},{path:`${Se.APP_DETAIL}/:id`,element:l.jsx($b,{mode:"connector"})},{path:`${Se.TEMPLATE_APP}/:id`,element:l.jsx($b,{mode:"template"})},{path:Se.GOHIGHLEVEL_CLAIM,element:l.jsx(VW,{})},{path:"*",element:l.jsx(ny,{})}]}],GW=ry[0].children.filter(e=>e.path!=="*"),HW=(e,t)=>cF(t?ry:GW,{basename:e}),WW=({basename:e="/",metaData:t,userId:n})=>{var a;const{availableFeatures:r}=b.useContext($e),o=Nt(r,xo),A=b.useMemo(()=>HW(e,o),[e,o]);return(a=t==null?void 0:t.templateUpdates)!=null&&a.version&&n&&(Ck(t.templateUpdates.version),pk(n)),l.jsx(CF,{router:A})},zW="internal-chat",YW=g.styled(g.Box)`
2574
+ `,TW=({carouselImages:e,illustrationUrl:t,overviewHelpHeading:n,showScheduleCall:r,templateDescription:o,features:A,supportLinks:a,appName:i})=>{const s=(e??[]).map(({url:c})=>({src:c}));return l.jsxs(SW,{children:[l.jsxs("div",{children:[t?l.jsx(Gb,{children:l.jsx("img",{src:t,alt:`${i??"App"} overview`})}):s.length>0&&l.jsx(_C,{previewList:s}),o&&l.jsx(g.Typography,{variant:"body2",sx:{color:"var(--connector-admin-text-heading)",marginTop:2},children:l.jsx("span",{dangerouslySetInnerHTML:{__html:o}})}),A&&A.length>0&&l.jsxs(Hb,{children:[l.jsx(g.Typography,{sx:{fontWeight:g.theme.typography.fontWeightMedium,fontSize:`${g.theme.typography.body1.fontSize}px`,lineHeight:"24px",letterSpacing:"0.042px",color:"var(--connector-admin-text-primary)",marginBottom:"8px"},children:"Features"}),A.map((c,u)=>l.jsxs(g.Typography,{sx:{fontSize:`${g.theme.typography.body2.fontSize}px`,lineHeight:"20px",color:"var(--connector-admin-text-secondary)"},children:[u+1,". ",c]},u))]})]}),l.jsxs(g.Stack,{gap:"12px",children:[l.jsx(g.Typography,{variant:"h2",marginBottom:"8px",children:n??Sd}),r!==!1&&l.jsx(Wi,{isSettingsPage:!0}),l.jsx(HC,{connectorName:i,supportLinks:a})]})]})},Zb=e=>bd(e,!1),qb=["Overview","Visibility"],DW={title:"Configuration",visibility:!0},Ub={textTransform:"none",fontSize:`${g.theme.typography.body1.fontSize}px`,fontWeight:g.theme.typography.fontWeightMedium,letterSpacing:"0.25px",minHeight:"auto",padding:"0",color:"var(--connector-admin-text-tertiary)","&.Mui-selected":{color:"var(--connector-admin-accent)"}},OW=({mode:e})=>{const t=Jt(),n=cn(),{id:r=""}=ko(),o=xe(CA),A=xe(Nn),a=xe(ac),i=xe(so),s=e==="template"?(o==null?void 0:o[r])??null:null,c=e==="connector"?(A==null?void 0:A[r])??null:null;return b.useEffect(()=>{var u,d;r&&(e==="template"?(u=o==null?void 0:o[r])!=null&&u.apiList||n(EA(r)):(d=A==null?void 0:A[r])!=null&&d.apiList||n(pA(r)))},[r,e,o,A,n]),e==="template"?s!=null&&s.apiList?Zb(s.type)?l.jsx(Kb,{mode:"template",id:r,headerSource:s}):l.jsx(da,{to:`${Se.BASEPATH}${Se.API_VIEW}/${r}`,replace:!0}):a===pe.FAILED?l.jsxs(Kr,{children:[l.jsxs(Ra,{onClick:()=>t(`${Se.BASEPATH}${Se.DASHBOARD}`),children:[l.jsx(Na,{"aria-hidden":!0,width:20,height:20}),"Apps Marketplace"]}),l.jsx(g.Typography,{variant:"h6",sx:{marginTop:2,fontWeight:g.theme.typography.fontWeightSemiBold},children:"Couldn’t load app"}),l.jsxs(g.Typography,{variant:"body2",sx:{color:"var(--connector-admin-text-tertiary)"},children:["Template ID “",r,"” couldn’t be fetched. Try refreshing."]})]}):l.jsx(Kr,{children:l.jsx(Wl,{})}):c!=null&&c.apiList?Zb(c.type)?l.jsx(Kb,{mode:"connector",id:r,headerSource:c}):l.jsx(da,{to:`${Se.BASEPATH}${Se.API_VIEW}/${r}?isEdit=true`,replace:!0}):i===pe.FAILED?l.jsxs(Kr,{children:[l.jsxs(Ra,{onClick:()=>t(`${Se.BASEPATH}${Se.DASHBOARD}`),children:[l.jsx(Na,{"aria-hidden":!0,width:20,height:20}),"Apps Marketplace"]}),l.jsx(g.Typography,{variant:"h6",sx:{marginTop:2,fontWeight:g.theme.typography.fontWeightSemiBold},children:"Couldn’t load app"}),l.jsxs(g.Typography,{variant:"body2",sx:{color:"var(--connector-admin-text-tertiary)"},children:["Connector ID “",r,"” couldn’t be fetched. Try refreshing."]})]}):l.jsx(Kr,{children:l.jsx(Wl,{})})},Kb=({mode:e,id:t,headerSource:n})=>{const r=Jt(),o=g.useTheme(),[A,a]=Ro(),i=b.useMemo(()=>g.createTheme(o,{typography:jg("'Hanken Grotesk', system-ui, sans-serif").typography}),[o]),c=yQ(n.type)({mode:e,id:t}),u=n.logo,d=A.get("tab"),h=d==="overview"?0:d==="visibility"?1:e==="connector"?1:0,[I,E]=b.useState(h),C=(p,f)=>{E(f);const m=new URLSearchParams(A);m.set("tab",f===1?"visibility":"overview"),a(m,{replace:!0})},Q=()=>C({},1);return l.jsx(g.HiverProvider,{theme:i,children:l.jsxs(Kr,{children:[l.jsxs(Ra,{onClick:()=>r(`${Se.BASEPATH}${Se.DASHBOARD}`),children:[l.jsx(Na,{"aria-hidden":!0,width:20,height:20}),"Apps Marketplace"]}),l.jsxs(JC,{children:[l.jsxs(XC,{children:[u&&l.jsx(Mb,{children:l.jsx(_b,{children:l.jsx("img",{src:u,alt:n.name})})}),l.jsxs(xW,{children:[l.jsx(g.Typography,{sx:{fontWeight:g.theme.typography.fontWeightMedium,fontSize:`${g.theme.typography.h1.fontSize}px`,lineHeight:"32px",letterSpacing:"0.2px",color:"var(--connector-admin-app-title)"},children:n.name}),l.jsx(g.Typography,{sx:{fontWeight:g.theme.typography.fontWeightRegular,fontSize:`${g.theme.typography.body1.fontSize}px`,lineHeight:"20px",color:"var(--connector-admin-text-secondary)"},children:n.description})]})]}),e==="template"&&I===0&&l.jsx(wW,{variant:"contained",disableElevation:!0,onClick:Q,children:"Start setup"}),e==="connector"&&l.jsx(vW,{connectorId:t,isEnabled:!!n.isEnabled,isAuthenticated:!!n.isAuthenticated,connectorType:n.type,connectorName:n.name})]}),l.jsxs(g.Tabs,{value:I,onChange:C,TabIndicatorProps:{sx:{backgroundColor:"var(--connector-admin-accent)",height:"2px"}},sx:{marginTop:4,minHeight:"auto",width:"100%",borderBottom:"1px solid var(--connector-admin-border-strong)"},children:[l.jsx(g.Tab,{label:qb[0],sx:Ub}),l.jsx(g.Tab,{label:qb[1],sx:Ub})]}),l.jsx("div",{hidden:I!==0,style:{paddingTop:24},children:l.jsx(TW,{carouselImages:n.carouselImages,illustrationUrl:n.illustrationUrl,overviewHelpHeading:n.overviewHelpHeading,showScheduleCall:n.showScheduleCall,templateDescription:n.templateDescription,features:n.features,supportLinks:n.supportLinks,appName:n.name})}),l.jsx("div",{hidden:I!==1,style:{paddingTop:24},children:l.jsx(Xb,{schema:n.configuration??DW,controller:c})})]})})},FW=({carouselImages:e,illustrationUrl:t,overviewHelpHeading:n,showScheduleCall:r,templateDescription:o,features:A,apiList:a,appType:i,supportLinks:s,appName:c})=>{const u=(e??[]).map(({url:B})=>({src:B})),d=(a??[]).filter(({keyName:B,name:h})=>!/webhook/i.test(`${B??""} ${h??""}`));return l.jsxs(Vb,{children:[l.jsxs("div",{children:[t?l.jsx(Gb,{children:l.jsx("img",{src:t,alt:`${c??"App"} overview`})}):u.length>0&&l.jsx(_C,{previewList:u}),o&&l.jsx(g.Typography,{variant:"body2",sx:{color:"var(--connector-admin-text-heading)",marginTop:2},children:l.jsx("span",{dangerouslySetInnerHTML:{__html:o}})}),A&&A.length>0&&l.jsxs(Hb,{children:[l.jsx(g.Typography,{sx:{fontWeight:g.theme.typography.fontWeightMedium,fontSize:`${g.theme.typography.body1.fontSize}px`,lineHeight:"24px",letterSpacing:"0.042px",color:"var(--connector-admin-text-primary)",marginBottom:"8px"},children:"Features"}),A.map((B,h)=>l.jsxs(g.Typography,{sx:{fontSize:`${g.theme.typography.body2.fontSize}px`,lineHeight:"20px",color:"var(--connector-admin-text-secondary)"},children:[h+1,". ",B]},h))]}),!(A!=null&&A.length)&&d.length>0&&l.jsx(OQ,{apiList:d,connectorName:c,connectorType:i})]}),l.jsxs(iW,{children:[l.jsx(g.Typography,{variant:"h2",marginBottom:"8px",children:n??Sd}),r!==!1&&l.jsx(Wi,{isSettingsPage:!0}),l.jsx(HC,{connectorName:c,supportLinks:s})]})]})},MW=[{label:"Active",enabled:!0},{label:"Inactive",enabled:!1}],_W=({connectorId:e,isEnabled:t,isAuthenticated:n,connectorType:r,connectorName:o})=>{const A=cn(),{sendTrackingEvent:a}=b.useContext($e),i=xe(Ca),s=xe(so),c=xe(cl),[u,d]=b.useState(null),B=(c==null?void 0:c[e])===pe.LOADING,I=[i,s].includes(pe.LOADING)||!n||B,E=C=>{d(null),C!==t&&A(IA({id:e,enabled:C})).unwrap().then(()=>{r==="slack"&&a(C?ze.SLACK_INTEGRATION_ENABLED:ze.SLACK_INTEGRATION_DISABLED,{connector_name:o}),C||tt({message:lc,type:hi})}).catch(()=>{tt({message:cc,type:Lt})})};return l.jsxs(l.Fragment,{children:[l.jsx(oW,{"aria-haspopup":"menu","aria-expanded":u?"true":void 0,disabled:I,onClick:C=>d(C.currentTarget),endIcon:B?l.jsx(g.CircularProgress,{size:16}):l.jsx(qC,{size:16}),children:t?"Active":"Inactive"}),l.jsx(g.Menu,{anchorEl:u,open:!!u,onClose:()=>d(null),sx:AW,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:MW.map(C=>l.jsx(g.MenuItem,{selected:C.enabled===t,onClick:()=>E(C.enabled),children:C.label},C.label))})]})},LW={overview:"Overview",authentication:"Authentication",visibility:"Visibility"},PW={title:"Configuration",visibility:!0},kW={textTransform:"none",fontSize:`${g.theme.typography.body1.fontSize}px`,fontWeight:g.theme.typography.fontWeightMedium,letterSpacing:"0.25px",minHeight:"auto",padding:"0",color:"var(--connector-admin-text-tertiary)","&.Mui-selected":{color:"var(--connector-admin-accent)"}},$b=({mode:e})=>{const{availableFeatures:t}=b.useContext($e);return Nt(t,xo)?l.jsx(NW,{mode:e}):l.jsx(OW,{mode:e})},NW=({mode:e})=>{const t=Jt(),n=cn(),{id:r=""}=ko(),o=xe(CA),A=xe(Nn),a=xe(ac),i=xe(so),s=e==="template"?(o==null?void 0:o[r])??null:null,c=e==="connector"?(A==null?void 0:A[r])??null:null;b.useEffect(()=>{var d,B;r&&(e==="template"?(d=o==null?void 0:o[r])!=null&&d.apiList||n(EA(r)):(B=A==null?void 0:A[r])!=null&&B.apiList||n(pA(r)))},[r,e,o,A,n]);const u=!!c;return b.useEffect(()=>{e!=="connector"||!r||n(Do())},[r,e,n]),b.useEffect(()=>{e!=="connector"||!r||!u||n(Qi(r))},[r,e,u,n]),e==="template"?s!=null&&s.apiList?gl(s.type)?l.jsx(ey,{mode:"template",id:r,headerSource:s}):l.jsx(da,{to:`${Se.BASEPATH}${Se.API_VIEW}/${r}`,replace:!0}):a===pe.FAILED?l.jsxs(Kr,{children:[l.jsxs(Ra,{onClick:()=>t(`${Se.BASEPATH}${Se.DASHBOARD}`),children:[l.jsx(Na,{"aria-hidden":!0,width:20,height:20}),"Apps Marketplace"]}),l.jsx(g.Typography,{variant:"h6",sx:{marginTop:2,fontWeight:g.theme.typography.fontWeightSemiBold},children:"Couldn’t load app"}),l.jsxs(g.Typography,{variant:"body2",sx:{color:"var(--connector-admin-text-tertiary)"},children:["Template ID “",r,"” couldn’t be fetched. Try refreshing."]})]}):l.jsx(Kr,{children:l.jsx(Wl,{})}):c!=null&&c.apiList?gl(c.type)?l.jsx(ey,{mode:"connector",id:r,headerSource:c}):l.jsx(da,{to:`${Se.BASEPATH}${Se.API_VIEW}/${r}?isEdit=true`,replace:!0}):i===pe.FAILED?l.jsxs(Kr,{children:[l.jsxs(Ra,{onClick:()=>t(`${Se.BASEPATH}${Se.DASHBOARD}`),children:[l.jsx(Na,{"aria-hidden":!0,width:20,height:20}),"Apps Marketplace"]}),l.jsx(g.Typography,{variant:"h6",sx:{marginTop:2,fontWeight:g.theme.typography.fontWeightSemiBold},children:"Couldn’t load app"}),l.jsxs(g.Typography,{variant:"body2",sx:{color:"var(--connector-admin-text-tertiary)"},children:["Connector ID “",r,"” couldn’t be fetched. Try refreshing."]})]}):l.jsx(Kr,{children:l.jsx(Wl,{})})},ey=({mode:e,id:t,headerSource:n})=>{const r=Jt(),o=g.useTheme(),[A,a]=Ro(),i=b.useMemo(()=>g.createTheme(o,{typography:jg("'Hanken Grotesk', system-ui, sans-serif").typography}),[o]),c=yQ(n.type)({mode:e,id:t}),u=n.logo,d=!(e==="template"&&Gi(n.type)),B=e==="connector"||Gi(n.type),h=["overview","authentication","visibility"].filter(T=>(T!=="authentication"||B)&&(T!=="visibility"||d)),I=A.get("tab"),E=e==="template"?"overview":n.isAuthenticated?"visibility":"authentication",[C,Q]=b.useState(I&&h.includes(I)?I:h.includes(E)?E:"overview"),p=T=>{Q(T);const O=new URLSearchParams(A);O.set("tab",T),a(O,{replace:!0})},{availableFeatures:f,connectorFunctions:m}=b.useContext($e),v=()=>d?p("visibility"):r(`${Se.BASEPATH}${Se.CONNECTOR_SETTINGS}/${t}`),w=qM(n.type)&&Nt(f,xo)&&typeof(m==null?void 0:m.openCopilot)=="function",x=e!=="connector"?null:n.isAuthenticated?{status:"connected",label:"Connected"}:n.authPending?null:{status:"failed",label:"Authentication failed"},y=()=>{var T;(T=m==null?void 0:m.openCopilot)==null||T.call(m,{app:n.type,connectorId:t,name:n.name})};return l.jsx(g.HiverProvider,{theme:i,children:l.jsxs(Kr,{children:[l.jsxs(Ra,{onClick:()=>r(`${Se.BASEPATH}${Se.DASHBOARD}`),children:[l.jsx(Na,{"aria-hidden":!0,width:20,height:20}),"Apps Marketplace"]}),l.jsxs(JC,{children:[l.jsxs(XC,{children:[u&&l.jsx(Mb,{children:l.jsx(_b,{children:l.jsx("img",{src:u,alt:n.name})})}),l.jsxs(WH,{children:[l.jsxs(zH,{children:[l.jsx(g.Typography,{sx:{fontWeight:g.theme.typography.fontWeightMedium,fontSize:`${g.theme.typography.h1.fontSize}px`,lineHeight:"32px",letterSpacing:"0.2px",color:"var(--connector-admin-app-title)"},children:n.name}),x&&l.jsx(rW,{"data-status":x.status,children:x.label})]}),l.jsx(g.Typography,{sx:{fontWeight:g.theme.typography.fontWeightRegular,fontSize:`${g.theme.typography.body1.fontSize}px`,lineHeight:"20px",color:"var(--connector-admin-text-secondary)"},children:n.description})]})]}),e==="template"&&(w||C==="overview")&&l.jsx(jb,{children:w?l.jsx(Rb,{variant:"contained",disableElevation:!0,onClick:y,children:"Setup with AI"}):l.jsx(YH,{variant:"contained",disableElevation:!0,onClick:v,children:"Start setup"})}),e==="connector"&&l.jsxs(jb,{children:[l.jsx(_W,{connectorId:t,isEnabled:!!n.isEnabled,isAuthenticated:!!n.isAuthenticated,connectorType:n.type,connectorName:n.name}),w&&l.jsxs(l.Fragment,{children:[l.jsx(aW,{role:"separator","aria-orientation":"vertical"}),l.jsx(Rb,{variant:"contained",disableElevation:!0,onClick:y,children:"Setup with AI"})]})]})]}),l.jsx(g.Tabs,{value:C,onChange:(T,O)=>p(O),TabIndicatorProps:{sx:{backgroundColor:"var(--connector-admin-accent)",height:"2px"}},sx:{marginTop:4,minHeight:"auto",width:"100%",boxShadow:"inset 0 -2px 0 var(--connector-admin-border-strong)"},children:h.map(T=>l.jsx(g.Tab,{value:T,label:LW[T],sx:kW,className:"border-b-0!"},T))}),l.jsx("div",{hidden:C!=="overview",style:{paddingTop:24},children:l.jsx(FW,{carouselImages:n.carouselImages,illustrationUrl:n.illustrationUrl,overviewHelpHeading:n.overviewHelpHeading,showScheduleCall:n.showScheduleCall,templateDescription:n.templateDescription,features:n.features,apiList:n.apiList,appType:n.type,supportLinks:n.supportLinks,appName:n.name})}),B&&l.jsx(sW,{hidden:C!=="authentication",style:{paddingTop:24},children:l.jsx(zC,{connectorData:n,isEdit:e==="connector",hideAuthFailedAlert:!0})}),l.jsx("div",{hidden:C!=="visibility",style:{paddingTop:24},children:e==="connector"&&Gi(n.type)?l.jsx(Sb,{connectorData:n}):l.jsx(Xb,{schema:n.configuration??PW,controller:c})})]})})},ty={not_admin:{title:"Ask a Hiver admin to finish this",body:"Only a Hiver admin can connect GoHighLevel. Ask an admin to sign in and open the link from the GoHighLevel install page again."},not_enabled:{title:"GoHighLevel isn't available on this workspace",body:"Contact support@hiverhq.com to enable the GoHighLevel integration for your Hiver workspace."},plan:{title:"Your Hiver plan doesn't include GoHighLevel",body:"Upgrade your plan, then install the app again from the GoHighLevel Marketplace."},expired:{title:"This install link has expired",body:"Install links work for 2 hours and only once. Install the app again from the GoHighLevel Marketplace."},agency_taken:{title:"This agency is connected to another Hiver workspace",body:"A GoHighLevel agency can be connected to one Hiver workspace. Contact support@hiverhq.com if this is unexpected."},other_agency:{title:"This workspace is connected to a different agency",body:"Your Hiver workspace is already connected to another GoHighLevel agency, and a workspace can connect one agency. Contact support@hiverhq.com to switch agencies."},failed:{title:"We couldn't finish connecting GoHighLevel",body:"Reload this page to try again. If it keeps failing, contact support@hiverhq.com."}},RW=new Set(Object.keys(ty)),jW=e=>{var r;const t=e==null?void 0:e.response;if((t==null?void 0:t.status)===402)return"plan";const n=(r=t==null?void 0:t.data)==null?void 0:r.reason;return typeof n=="string"&&RW.has(n)?n:"failed"},VW=()=>{const[e]=Ro(),t=Jt(),n=Cl(),r=e.get("install")??"",[o,A]=b.useState(r?{status:"claiming"}:{status:"failed",reason:"expired"}),a=b.useRef(!1);if(b.useEffect(()=>{!r||a.current||(a.current=!0,Je({url:R4,method:nt.POST,data:{install:r}}).then(s=>{const{connectorId:c,templateId:u,created:d}=(s==null?void 0:s.data)??{};if(!c){A({status:"failed",reason:"failed"});return}const B=d&&u?`${Se.BASEPATH}${Se.CONNECTOR_INITIAL_SETUP}/${u}?connectorId=${c}`:n({id:c,type:"gohighlevel",tabIndex:0});t(B,{replace:!0})}).catch(s=>A({status:"failed",reason:jW(s)})))},[r,t,n]),o.status==="claiming")return l.jsxs(g.Stack,{alignItems:"center",gap:2,sx:{padding:6},children:[l.jsx(g.CircularProgress,{size:28}),l.jsx(g.Typography,{variant:"h6",children:"Connecting GoHighLevel to Hiver…"}),l.jsx(g.Typography,{variant:"body2",children:"This takes a few seconds. Don't close this tab."})]});const i=ty[o.reason];return l.jsxs(g.Stack,{alignItems:"center",gap:2,sx:{padding:6,maxWidth:520,margin:"0 auto",textAlign:"center"},children:[l.jsx(g.Typography,{variant:"h6",children:i.title}),l.jsx(g.Typography,{variant:"body2",children:i.body}),l.jsx(g.Button,{size:"small",onClick:()=>t(`${Se.BASEPATH}${Se.DASHBOARD}`),children:"Go to Apps"})]})},ny=()=>{const e=Jt();return l.jsxs(g.Stack,{alignItems:"center",gap:2,sx:{padding:6},children:[l.jsx(g.Typography,{variant:"h6",children:"Page not found"}),l.jsx(g.Button,{size:"small",onClick:()=>e(`${Se.BASEPATH}${Se.DASHBOARD}`),children:"Go to Apps"})]})},ry=[{errorElement:l.jsx(ny,{}),children:[{path:Se.BASEPATH,element:l.jsx(TQ,{})},{path:Se.DASHBOARD,element:l.jsx(TQ,{})},{path:Se.AUTH_SUCCESS,element:l.jsx(RH,{})},{path:`${Se.API_VIEW}/:id`,element:l.jsx(aV,{})},{path:`${Se.CONNECTOR_SETTINGS}/:id`,element:l.jsx(LH,{})},{path:`${Se.NATIVE_INTEGRATION}/:id`,element:l.jsx(jH,{})},{path:`${Se.CONNECTOR_INITIAL_SETUP}/:id`,element:l.jsx(HH,{})},{path:`${Se.APP_DETAIL}/:id`,element:l.jsx($b,{mode:"connector"})},{path:`${Se.TEMPLATE_APP}/:id`,element:l.jsx($b,{mode:"template"})},{path:Se.GOHIGHLEVEL_CLAIM,element:l.jsx(VW,{})},{path:"*",element:l.jsx(ny,{})}]}],GW=ry[0].children.filter(e=>e.path!=="*"),HW=(e,t)=>cF(t?ry:GW,{basename:e}),WW=({basename:e="/",metaData:t,userId:n})=>{var a;const{availableFeatures:r}=b.useContext($e),o=Nt(r,xo),A=b.useMemo(()=>HW(e,o),[e,o]);return(a=t==null?void 0:t.templateUpdates)!=null&&a.version&&n&&(Ck(t.templateUpdates.version),pk(n)),l.jsx(CF,{router:A})},zW="internal-chat",YW=g.styled(g.Box)`
2575
2575
  padding: 43px 0px 0 35px;
2576
2576
  box-sizing: border-box;
2577
2577
  width: 100%;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hiver/connector-admin",
3
- "version": "4.25.0-ghlClaim-beta.1",
3
+ "version": "4.25.0-ghlClaim-beta.2",
4
4
  "main": "index.es.js",
5
5
  "module": "index.es.js",
6
6
  "types": "index.d.ts",