PageSourceSearch

https://crmandgo.com.au/static/js/1531.79a942c4.chunk.js

js crmandgo.com.au collected 2026-10-04 01:53:31 UTC 4,346 bytes, 3 lines download raw bytes

1/*! For license information please see 1531.79a942c4.chunk.js.LICENSE.txt */
2"use strict";(globalThis.webpackChunkfrontend=globalThis.webpackChunkfrontend||[]).push([[1531],{91140(e,s,t){t.d(s,{Wu:()=>c,ZB:()=>o,Zp:()=>i,aR:()=>l});var a=t(65043),r=t(99766),n=t(70579);const i=a.forwardRef((e,s)=>{let{className:t,...a}=e;return(0,n.jsx)("div",{ref:s,className:(0,r.cn)("rounded-xl border bg-card text-card-foreground shadow",t),...a})});i.displayName="Card";const l=a.forwardRef((e,s)=>{let{className:t,...a}=e;return(0,n.jsx)("div",{ref:s,className:(0,r.cn)("flex flex-col space-y-1.5 p-6",t),...a})});l.displayName="CardHeader";const o=a.forwardRef((e,s)=>{let{className:t,...a}=e;return(0,n.jsx)("div",{ref:s,className:(0,r.cn)("font-semibold leading-none tracking-tight",t),...a})});o.displayName="CardTitle";a.forwardRef((e,s)=>{let{className:t,...a}=e;return(0,n.jsx)("div",{ref:s,className:(0,r.cn)("text-sm text-muted-foreground",t),...a})}).displayName="CardDescription";const c=a.forwardRef((e,s)=>{let{className:t,...a}=e;return(0,n.jsx)("div",{ref:s,className:(0,r.cn)("p-6 pt-0",t),...a})});c.displayName="CardContent";a.forwardRef((e,s)=>{let{className:t,...a}=e;return(0,n.jsx)("div",{ref:s,className:(0,r.cn)("flex items-center p-6 pt-0",t),...a})}).displayName="CardFooter"},71531(e,s,t){t.r(s),t.d(s,{default:()=>f});var a=t(65043),r=t(92087),n=t(22024),i=t(37719),l=t(78384),o=t(91140),c=t(13390),d=t(30342),m=t(48179),u=t(70579);const x="crmandgo_pending_invite";function f(){const[e]=(0,r.ok)(),s=(0,r.Zp)(),{user:t,loading:f}=(0,d.A)(),h=e.get("org_id"),p=e.get("invite_id"),[g,v]=(0,a.useState)("working"),[N,j]=(0,a.useState)(""),y=(0,a.useRef)(!1);return(0,a.useEffect)(()=>{if(!f&&!y.current){if(!h||!p)return y.current=!0,v("error"),void j("This invitation link is missing information. Please use the link from your email.");if(t)y.current=!0,(0,m.Ql)(h,p).then(()=>{try{sessionStorage.removeItem(x)}catch{}s(`/org/${h}/dashboard`,{replace:!0})}).catch(e=>{var s,t,a;try{sessionStorage.removeItem(x)}catch{}const r=null===e||void 0===e||null===(s=e.response)||void 0===s||null===(t=s.data)||void 0===t?void 0:t.detail,n=null===e||void 0===e||null===(a=e.response)||void 0===a?void 0:a.status;v("error"),j(400===n?r||"This invitation is no longer valid. It may have already been used or expired.":r||"We couldn't accept this invitation. Please contact whoever invited you.")});else{try{sessionStorage.setItem(x,JSON.stringify({orgId:h,inviteId:p}))}catch{}s("/login",{replace:!0})}}},[t,f,h,p,s]),"error"===g?(0,u.jsx)("div",{className:"min-h-screen flex items-center justify-center bg-slate-50 p-4",children:(0,u.jsx)(o.Zp,{className:"max-w-md w-full border-slate-200 shadow-sm",children:(0,u.jsxs)(o.Wu,{className:"p-10 text-center",children:[(0,u.jsx)("div",{className:"w-14 h-14 rounded-full bg-amber-50 flex items-center justify-center mx-auto mb-4",children:(0,u.jsx)(i.A,{size:26,className:"text-amber-500"})}),(0,u.jsx)("h2",{className:"text-lg font-semibold text-slate-900 mb-2",children:"Invitation issue"}),(0,u.jsx)("p",{className:"text-sm text-slate-500 mb-6",children:N}),(0,u.jsx)(c.$,{className:"bg-slate-900 hover:bg-slate-800 text-white",onClick:()=>s("/login",{replace:!0}),children:"Go to sign in"})]})})}):(0,u.jsx)("div",{className:"min-h-screen flex items-center justify-center bg-slate-50 p-4",children:(0,u.jsx)(o.Zp,{className:"max-w-md w-full border-slate-200 shadow-sm",children:(0,u.jsxs)(o.Wu,{className:"p-10 text-center",children:[(0,u.jsx)("div",{className:"w-14 h-14 rounded-full bg-slate-100 flex items-center justify-center mx-auto mb-4",children:t?(0,u.jsx)(n.A,{size:26,className:"text-slate-400 animate-spin"}):(0,u.jsx)(l.A,{size:26,className:"text-slate-400"})}),(0,u.jsx)("h2",{className:"text-lg font-semibold text-slate-900 mb-2",children:t?"Setting up your access\u2026":"Taking you to sign in\u2026"}),(0,u.jsx)("p",{className:"text-sm text-slate-500",children:t?"One moment while we add you to your team.":"Sign in with the email your invitation was sent to."})]})})})}},37719(e,s,t){t.d(s,{A:()=>a});const a=(0,t(77784).A)("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]])}}]);
3//# sourceMappingURL=1531.79a942c4.chunk.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.