PageSourceSearch

https://app.hellogrowthcrm.com/assets/CRMInnerShell-CV7qbsiQ.js

js hellogrowthcrm.com collected 2026-09-24 13:27:35 UTC 40,330 bytes, 7 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/ProductMismatchScreen-pvoLR3FL.js","assets/framework-BdTzk1lU.js","assets/supabase--jJ_z69-.js","assets/icons-D40JOYlY.js","assets/ui-extras-DY9FYdFI.js","assets/radix-DqCxixhA.js","assets/react-query-Bk0odbHV.js","assets/date-fns-Ckb5rtl2.js","assets/forms-BBkrZbpw.js","assets/hostProduct-BYbjXgMf.js","assets/useUserTenants-MN7soKgp.js","assets/index-CcH6CCuW.js","assets/usePageTitle-BG_KM02W.js","assets/DatabaseTypesContext-Bhit7V_A.js","assets/useDatabaseTypes-9HmWi-qJ.js","assets/DialerContext-Bi96wr_H.js","assets/DialerQueueContext-DwAg_1FQ.js","assets/pendingVerifyEmail-C8OoUuGw.js","assets/phoneOtpGate-j-sfYfyM.js","assets/ShopifyPendingClaimWatcher-DY8aJ3nN.js","assets/shopifyBilling-Cgh7S5ee.js","assets/index-BE_EFexM.css","assets/viewRegistry-DtBIX_oW.js","assets/navRbacModules-xY0-UnA3.js","assets/clinicConsolidation-DZtwiIaS.js","assets/GlobalFloatingWidgets-JgojbKP5.js","assets/popover-B9Z-5_cJ.js","assets/unifiedPanelPreload-Bl52M0Aa.js","assets/useWhatsAppInbox-LwZI4nSj.js","assets/whatsappMessages-BJViBi8_.js","assets/useLeadScoreDisplay-BB3N-GdA.js","assets/leads-BneCuBOh.js","assets/bugDiagnosticsBuffer-BdHpR8i2.js","assets/crm-assistant-logo-DSclX4m3.js","assets/schedule-7HMI07TY.js","assets/attentionBroker-sLa8CEqE.js","assets/useBackgroundJobs-BAdyoEQW.js","assets/useClarityTracking-C8jhD1FI.js","assets/clarity-D5c7Ycbx.js","assets/GlobalDialer-C4N7P_QB.js","assets/settingsRegistry-Ct7dZPlL.js","assets/useDialer-gkVMaf2C.js","assets/useSIPTrunk-CYQkh0RY.js","assets/CallRecordingPlayer-CBGIpB0q.js","assets/dialerSettings-D-CExP0e.js","assets/SuperfoneWebDialler-v79LRbCE.js","assets/useSuperfoneWebDialler-CyZRnXt8.js","assets/superfoneWebDialler-B-MoLOE7.js","assets/HandoffIncomingDialog-v7BCddW_.js","assets/IncomingWhatsAppCallListener-COmKOWRw.js","assets/useMetaWhatsAppCalling-CJp8U3HH.js","assets/PhoneInput-CgPTxEFB.js","assets/countryCodes-Bfdmr9Yt.js","assets/PerformanceTrackingInit-DynWTCMQ.js","assets/EngagementTrackerInit-DUwE4jUN.js","assets/useEngagementTracker-CEUgD3gJ.js","assets/engagementTracking-Bb7BkaBC.js","assets/CRMShellLayout-DphILItz.js","assets/AccountManagerWidget-BdlveT7x.js","assets/avatar-W9dkDMU1.js","assets/AppLogo-ClQv3tlG.js","assets/useConfirmDialog-BdPPy4-c.js","assets/useNavGroups-DGHhQOvF.js","assets/useIndustryVocabulary-CIB-M0EQ.js","assets/useTenantIndustryType-BUEACheo.js","assets/useNavLabelOverrides-CIefIw3B.js","assets/navLabels-CtXpjKN9.js","assets/useNavItemVisibility-DsJ8T-oS.js","assets/useSMSInbox-BIc0zZUm.js","assets/useScheduledMessages-BoMiJa0-.js","assets/useDailyRunQueue-C31GTCoF.js","assets/useLocale-CRXshO-m.js","assets/format-fQTKMV9f.js","assets/feature-help-map-BahqGzWC.js","assets/useNotifications-DAL0femM.js","assets/useBrowserNotifications-DLjBYe5K.js","assets/useNativePushRegistration-DbnSXWG-.js","assets/useSubscription-Bbd79cjK.js","assets/razorpayCheckoutScript-BL0fWlsT.js","assets/subscriptionGateway-BNdQGw-X.js","assets/useShopifySubscription-DFEVfQ3v.js","assets/responsive-dialog-D6gIZxxA.js","assets/drawer-BL8lhnHN.js","assets/useProductMode-C0SqkDXa.js","assets/helpRequests-DF7F_Kvr.js","assets/bookDemoUrl-BVrESx8X.js","assets/useTenantDialCode-DmKiqRan.js","assets/useGettingStarted-Bpa5Zit5.js","assets/launcherBridge-C__I7LnT.js","assets/sessionStore-B7BCm1Ay.js","assets/howToAutoOpen-D1BatW7c.js","assets/ThemeToggle-DnK4gBis.js","assets/dropdown-menu-DNpNpv6X.js","assets/Index-C8uYKt2z.js","assets/useDefaultLandingPage-Yg2auYlP.js","assets/landingRedirectOneShot-ChHJbzKu.js","assets/launchers-CfZer6Wj.js","assets/quickActionsAnalytics-DYPcGY5J.js","assets/metrics-QAQ3jsPv.js","assets/index-BzjkdIId.js","assets/addressFormat-CkTyJxYb.js","assets/countries-B3R2W46R.js","assets/native-contacts-4RLeivKm.js","assets/phone-D06fwlCD.js","assets/leadDetailPreload-cjwCRubN.js","assets/setupHealthTotal-rM8NfgZW.js","assets/useAIKnowledgeBase-ByOZlRtd.js","assets/aiErrors-Bni4dZZp.js","assets/useChannelHealth-3VmDR50Y.js","assets/useProviderStatus-DByYcv3U.js","assets/setupHubBridge-DfEUjiHf.js","assets/useLeadsSummary-DA3J6evU.js","assets/useWhatsApp-CrfQo5pE.js","assets/whatsappSen
1dError-0SFYkWE3.js","assets/useSMS-D26UfgjJ.js","assets/copilotSuggestions-lpXM4Zk7.js","assets/HelpHint-DWicfmgc.js","assets/productHelp-N4cwR5m5.js","assets/PageDataErrorBoundary-CZ-N4UNe.js","assets/useOfflineQueue-C4rcSeag.js","assets/useKeyboardShortcuts-DwALZHw7.js","assets/TourContext-B-a7Ck40.js","assets/skeleton-dashboard-BcMZS4YQ.js","assets/skeleton-card-BY70vtuX.js","assets/skeleton-table-BAWM3sGU.js","assets/editAccountSeed-B59EfymU.js","assets/useAICredits-bzOAf8cc.js","assets/useAIUsageReport-BV8aSSIj.js","assets/aiCredits-DAlXAIif.js","assets/PlanLimitNearCapBanner-DLaXg8ew.js","assets/InlineError-R6X8jgXp.js","assets/NotFound-BzVKLp4C.js","assets/SuperAdmin-BDV_rcQC.js","assets/superAdminIcons-OUjjGIPZ.js","assets/command-5mM7_e8b.js","assets/orgDeleteReasons-DA7PGbvM.js","assets/textarea-Bb8IobEF.js","assets/useSubViewRouting-DExNRoaK.js","assets/SubscriptionInvoiceDetail-BAFYAmwB.js","assets/OverdueInvoiceBanner-Cr7DigaS.js","assets/invoiceStanding-BRZ4DVEr.js","assets/caProvinceRates-CzXnp7Gl.js","assets/useOwnerTransfer-C5cV3GgH.js","assets/ProjectManagement-DYRVMn5s.js","assets/deepLink-0_dFO_MH.js","assets/useTaskGroups-kUQ44qiE.js","assets/useTaskItems-B5pLKL4Y.js","assets/useUndoableAction-B3NeP_r2.js","assets/useCanCreateBoard-C5Pc6JTZ.js","assets/TaskBoardView-CWsgD3Mz.js","assets/aiCallTemplates-qcRi4SW3.js","assets/useSalesReps-R4c5ispH.js","assets/calendar-Dau8_nXV.js","assets/safeUrl-BOx4V5fL.js","assets/sortable.esm-BgwTk9mv.js","assets/core.esm-CIC61zH5.js","assets/useIssueCreation-BbzJN-Jq.js","assets/sanitizeHtml-DLudLidz.js","assets/browser-DW_aB2dR.js","assets/purify.es-Ooy2klQV.js","assets/taskBoardMembers-BavjDDmW.js","assets/GroupColorPicker-DmKR6j0u.js","assets/empty-state-DehHMRbS.js","assets/MyWorkView-0QvaNeIb.js","assets/useMyWorkTasks-DZFCF9TU.js","assets/taskItems-Bojh3ns2.js","assets/htmlText-C5XeQl9L.js","assets/TaskItemDetailDrawer-CHiX-iDL.js","assets/MentionInput-Ncdl7wVh.js","assets/fileUploadValidation-BZVg5So5.js","assets/CommentSection-jdLoZXTj.js","assets/useSignedStorageUrl-FVAIn51D.js","assets/storageUrl-ovcXjVRt.js","assets/whatsappUseCases-pNghCHF1.js","assets/callFallback-C47JSSXS.js","assets/taskFieldVisitLifecycle-EFST5OHV.js","assets/useFieldVisits-DsXxsYy5.js","assets/notes-DB-bzwwC.js","assets/useSendEmail-JnJkgh4z.js","assets/useWeekStart-BQtehlJF.js","assets/RichTextContent-87EZsEca.js","assets/taskActivityActionLabel-wU3CJqXH.js","assets/swipeable-row-WoCiqHGH.js","assets/TaskBoardTemplates-BypwdgxD.js","assets/formValidation-BTmbYu-t.js","assets/boardTemplates-DLF0Y8_2.js","assets/BoardMembersDialog-Byvv0a_G.js","assets/Scheduler--S-Bjp38.js","assets/ContactsPage-PdPKUk6T.js","assets/page-container-CNH7mMHP.js","assets/page-title-Cnh1zDVe.js","assets/useContacts-BbgRUwDp.js","assets/useDebounce-D0owI2ta.js","assets/CustomFieldsPanel-BmUb8vBm.js","assets/CustomFieldControl-DwM7ViHp.js","assets/AccountCustomFieldDialog-DLQ6KJyR.js","assets/ImportExportMenu-BRrMfNYo.js","assets/ExportFormatDialog-CoG2ROPC.js","assets/contacts-Bp6hTkHr.js","assets/importDedup-CC8Sw2PA.js","assets/exportFormat-DavKLYoq.js","assets/Broadcasts-2nIhONPV.js","assets/csvUtils-BaxP5bc6.js","assets/useNavReveal-BTDVaIgR.js","assets/useBulkMessaging-tOE9Q7Ve.js","assets/supabaseFetchAll-RizCzLP5.js","assets/useAudienceSegments-BNirtoVp.js","assets/ChatDemo-BXiYCL54.js","assets/ExpensesPage-1H0pnAI0.js","assets/WidgetTest-CHC9STbr.js","assets/Onboarding-MojCX9XW.js","assets/AuthLayout-CSNNw3M_.js","assets/PhoneInput-DdmcIajh.js","assets/SearchableSelect-Dsxx44hC.js","assets/countryOptions-CnWA9lnJ.js","assets/emailSequenceSteps-BWD5lWV5.js","assets/welcomeEmail-D12eiFAa.js","assets/onboardingStepState-BES9Vf9r.js","assets/localeDefaults-CmVRFcVa.js","assets/GrowthAuditChat-CnbIQ4HF.js","assets/brand-CQ9hRnU4.js","assets/IndustrySnapshotCard-CPzI5-Ar.js","assets/api-DDMKNSL5.js","assets/eventTypes-D5YJonjD.js","assets/requirementInsightView-DpYq-YPT.js","assets/tenantFeatureFlags-2rB4nJLJ.js","assets/answerUtils-lFJ3erSn.js","assets/OnboardingAuditOverlay-CkCZzoSm.js","assets/growthAuditSkipModalFlag-D-FCOjmU.js","assets/RequirementsFlow-CM4FHDLk.js","assets/questions-CqckwHhN.js","assets/onboardingRequirements-_iTXB9fe.js","assets/WhatsAppReadinessGate-CDuNibXN.js","assets/AIQuotaWatcher-CYPKjlGO.js","assets/RequestMoreAIQuotaDialog-D5mDtmWC.js","assets/SeatOverageWatcher-CGMPSBeZ.js","assets/useTenantSeatUsage-DOKQfN-e.js","assets/tenantMembers-c8OLG39i.js","assets/BillingPlans-CSVYkCpB.js","assets/useBillingProviders-D-Dc46XB.js","assets/support-4GYx1REu.js","assets/ApiKeys-DjYBJ10T.js","assets/useDivisions-D6ZFhDoC.js","assets/responsive-table-CJzTVQe_.js","assets/integrationScopes-ChXgmVJ6.js","assets/Webhooks-FHrozppG.js","assets/ApiDocs-Yd1mp1QI.js","assets/WebhooksDocs-BpQXwtOy.js","assets/appWebhooks-j7A3GgMZ.js","assets/webhookEventsFired-lUfi3OGw.js","assets/IntegrationsDocs-C1_CLmOz.js","assets/AIApprovals-KY93Hi4X.js","assets/AIAuditLog-BNcZTDLj.js","assets/ActiveAICallsHUD-BdqjmFBt.
1js","assets/useActiveAICalls-BfIzLea1.js","assets/useAICallSchedules-BOjussbd.js","assets/GrowthAuditLauncher-Bgy8im59.js","assets/MetaAdsAnalytics-BuCGoJW1.js","assets/SetupHealthBar-BGX8cE2h.js","assets/useGmailSender-BNaDT-KT.js","assets/actionLedger-BGScW079.js","assets/RevOpsUpsellBanner-BcM3Z9c8.js","assets/DealWinCaseStudyModal-BbVriGZw.js","assets/askFunnelTelemetry-lSp6Dt7h.js","assets/ReferralModal-D-C7fPpe.js","assets/useTenantAIDisabled-hekJVLL-.js"])))=>i.map(i=>d[i]);
2import{k as E,r as d,s as P,j as e,N as a,R as ce,_ as o,u as de,J as ue,K as s}from"./framework-BdTzk1lU.js";import{l,n as pe,p as me}from"./index-CcH6CCuW.js";import{D as xe}from"./DatabaseTypesContext-Bhit7V_A.js";import{R as I,B as he,c as je,bK as fe,dX as _e,gj as ge,gk as ye,N as q,g3 as be,gl as ve}from"./integrations-RSRvudgF.js";import{D as Ee}from"./DialerContext-Bi96wr_H.js";import{D as Ae}from"./DialerQueueContext-DwAg_1FQ.js";import{s as ke}from"./pendingVerifyEmail-C8OoUuGw.js";import{s as we}from"./phoneOtpGate-j-sfYfyM.js";import{i as R,L as Pe,aj as Re,b0 as Ie}from"./icons-D40JOYlY.js";import{n as B,h as Te,i as Se}from"./hostProduct-BYbjXgMf.js";import{a as K}from"./react-query-Bk0odbHV.js";import{g as De}from"./ShopifyPendingClaimWatcher-DY8aJ3nN.js";let j=null;const C=6e4;typeof window<"u"&&window.addEventListener("storage",t=>{t.key&&t.key.includes("auth-token")&&(j=null)});const Le=({exhausted:t,attempt:r,max:n})=>e.jsxs("div",{role:"status","aria-live":"polite",className:"min-h-svh flex flex-col items-center justify-center gap-4 bg-background px-6 text-center",children:[e.jsx(R,{className:`w-8 h-8 text-primary ${t?"":"animate-spin"}`,"aria-hidden":"true"}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("p",{className:"text-sm font-medium text-foreground",children:t?"Still can't load your workspace":"Taking longer than usual to load your workspace"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:t?"Your session is still active — you can sign in again or reload.":`Your session is still active — reconnecting (attempt ${r} of ${n})…`})]}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("button",{type:"button",onClick:()=>window.location.reload(),className:"inline-flex h-9 items-center rounded-md bg-primary px-4 text-sm font-medium text-primary-foreground hover:bg-primary/90",children:"Reload"}),e.jsx("button",{type:"button",onClick:async()=>{try{await P.auth.signOut({scope:"local"})}catch{}window.location.assign("/login")},className:"text-sm text-muted-foreground hover:text-foreground hover:underline",children:"Sign in again"})]})]}),f=({children:t})=>{const{user:r,isLoading:n,tenantAccessState:i,profile:c,initialSessionResolved:u,refreshProfile:p}=I(),m=E(),[g,h]=d.useState(!1),_=3,[y,T]=d.useState(0),[M,O]=d.useState(()=>!j||Date.now()-j.value.checkedAt>C?null:j.value),[se,F]=d.useState(!1),A=n||i==="unknown"||!!r&&c===null&&i==="valid";d.useEffect(()=>{if(!A){h(!1);return}const b=setTimeout(()=>h(!0),2e4);return()=>clearTimeout(b)},[A,y]),d.useEffect(()=>{if(!(A&&g&&r&&y<_))return;const k=setTimeout(()=>{p(),h(!1),T(w=>w+1)},y===0?2e3:y===1?4e3:8e3);return()=>clearTimeout(k)},[A,g,r,y,p]),d.useEffect(()=>{if(i!=="valid")return;const b=r?.id,k=c?.tenantId;if(!b||!k||m.pathname.startsWith("/setup-mfa"))return;if(j&&j.userId===b&&j.tenantId===k&&Date.now()-j.value.checkedAt<C){O(j.value);return}let w=!1;return F(!0),(async()=>{try{const[{data:ae},{data:ne}]=await Promise.all([P.from("tenants").select("require_mfa").eq("id",k).maybeSingle(),P.auth.mfa.listFactors()]),ie=!!ae?.require_mfa,oe=(ne?.totp||[]).some(le=>le.status==="verified"),U={mustEnroll:ie&&!oe,checkedAt:Date.now()};j={userId:b,tenantId:k,value:U},w||O(U)}catch{w||O({mustEnroll:!1,checkedAt:Date.now()})}finally{w||F(!1)}})(),()=>{w=!0}},[r?.id,c?.tenantId,i,m.pathname]);const N=`/login?redirect=${encodeURIComponent(m.pathname+(m.search||""))}`;if(u&&!r)return e.jsx(a,{to:N,replace:!0});if(A&&!g)return e.jsx("div",{className:"min-h-svh flex items-center justify-center bg-background",children:e.jsx(R,{className:"w-8 h-8 animate-spin text-primary"})});if(A&&g)return r?e.jsx(Le,{exhausted:y>=_,attempt:Math.min(y+1,_),max:_}):e.jsx(a,{to:N,replace:!0});if(!r)return e.jsx(a,{to:N,replace:!0});if(i==="suspended")return e.jsx(a,{to:"/suspended",replace:!0});if(i==="no_tenant")return e.jsx(a,{to:"/no-organization",replace:!0});if(i==="email_not_verified"){const b=c?.email||r?.email;return b&&ke(b),e.jsx(a,{to:"/verify-email",replace:!0})}if(we({tenantAccessState:i,phoneVerifiedAt:c?.phoneVerifiedAt,deferredUntil:c?.phoneVerificationDeferredUntil})&&!m.pathname.startsWith("/verify-phone"))return e.jsx(a,{to:"/verify-phone",replace:!0});const W=!!j&&j.userId===r?.id&&j.tenantId===c?.tenantId&&Date.now()-j.value.checkedAt<C,G=M??(W?j.value:null),re=i==="valid"&&!!r?.id&&!!c?.tenantId&&!m.pathname.startsWith("/setup-mfa")&&!W;return G?.mustEnroll&&!m.pathname.startsWith("/setup-mfa")?e.jsx(a,{to:"/setup-mfa",replace:!0}):(re||se)&&!G?e.jsx("div",{className:"min-h-svh flex items-center justify-center bg-background",children:e.jsx(R,{className:"w-8 h-8 animate-spin text-primary"})}):e.jsx(e.Fragment,{children:t})},Oe=["/onboarding","/docs"];function z(t){return!(!t.enforcedHost||!t.hasUser||!t.tenantId||t.tenantAccessState!=="valid"||t.isSuperAdmin||t.preOnboardingOwner||Oe.some(r=>t.pathname===r||t.pathname.startsWith(`${r}/`)))}function Ne(t,r){return z(t)?r.isError?{kind:"pass"}:r.isLoading||r.tenantProductKey===void 0||r.enforced===void 0?{kind:"wait"}:r.enforced?B(r.tenantProductKey)===B(t.hostProductKey)?{kind:"pass"}:{kind:"mismatch",tenantProductKey:r.tenantProductKey}:{kind:"pass"}:{kind:"pass"}}const Ce="product_ceiling_enforced",$=P;function J(t){return!!t&&(t.code==="42703"||t.code==="PGRST204")}const H=new Set;function D(t){H.has(t)||H.add(t)}async function Ve(t){const[r,n]=await Promise.all([P.from("feature_flags").select("is_enabled").eq("feature_key",Ce).maybeSingle(),$.from("tenants").select("id, product_key").eq("id",t).maybeSingle()]);if(r.error)throw r.error;const i=r.data?.is_enabled===!0;let c="hellogrowth";if(n.error){if(!J(n.error))throw n.error;D("column_missing")}else n.data?n.data.product_key?c=n.data.product_key:D("value_null"):D("row_unavailable");return{enforced:i,tenantProductKey:c}}async function Ke(t){if(t.length===0)return{};const{data:r,error:n}=await $.from("tenants").select("id, product_key").in("id",t);if(n){if(!J(n))throw n;return D("column_missing"),Object.fromEntries(t.map(i=>[i,"hellogrowth"]))}return Object.fromEntries((r??[]).map(i=>[i.id,i.product_key||"hellogrowth"]))}
2const Q="productEnforcement:v1:",Me=5e3;function Fe(t){try{const r=window.localStorage.getItem(Q+t);if(!r)return;const n=JSON.parse(r);return typeof n.enforced!="boolean"||typeof n.tenantProductKey!="string"?void 0:{enforced:n.enforced,tenantProductKey:n.tenantProductKey}}catch{return}}function We(t,r){try{window.localStorage.setItem(Q+t,JSON.stringify(r))}catch{}}function Ge(t,r){return new Promise((n,i)=>{const c=setTimeout(()=>i(new Error("product_key read timed out")),r);t.then(u=>{clearTimeout(c),n(u)},u=>{clearTimeout(c),i(u)})})}function Ue(t,r=!0){const n=r&&!!t,i=K({queryKey:["tenant-product-enforcement",t],queryFn:async()=>{const u=await Ge(Ve(t),Me);return We(t,u),u},enabled:n,placeholderData:()=>t?Fe(t):void 0,staleTime:5*60*1e3,gcTime:30*60*1e3,retry:1,retryDelay:500,refetchOnWindowFocus:!1}),c=i.data;return{tenantProductKey:c?.tenantProductKey,enforced:c?.enforced,isLoading:n&&!c&&i.isPending&&!i.isError,isError:n&&!c&&i.isError}}function is(t){const r=[...t].sort();return K({queryKey:["tenant-product-keys",r],queryFn:()=>Ke(r),enabled:r.length>0,staleTime:5*60*1e3,retry:1,refetchOnWindowFocus:!1})}const qe=l(()=>o(()=>import("./ProductMismatchScreen-pvoLR3FL.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21])),"ProductMismatchScreen"),Y=()=>e.jsx("div",{className:"flex min-h-svh items-center justify-center bg-background",role:"status","aria-label":"Loading your workspace",children:e.jsx(R,{className:"h-8 w-8 animate-spin text-primary","aria-hidden":"true"})}),Be=({children:t})=>{const{pathname:r}=E(),{user:n,profile:i,tenantAccessState:c,isSuperAdmin:u}=I(),p={pathname:r,enforcedHost:Se(),hostProductKey:Te(),hasUser:!!n,tenantAccessState:c,tenantId:i?.tenantId,isSuperAdmin:u,preOnboardingOwner:!!i&&!i.onboardingCompleted&&!i.invitedBy&&i.invitationStatus!=="pending"&&i.invitationStatus!=="accepted"},m=z(p),g=Ue(i?.tenantId,m),h=Ne(p,g),_=h.kind==="mismatch"?h.tenantProductKey:null;return d.useEffect(()=>{},[_,p.hostProductKey]),h.kind==="wait"?e.jsx(Y,{}):h.kind==="mismatch"?e.jsx(ce.Suspense,{fallback:e.jsx(Y,{}),children:e.jsx(qe,{tenantProductKey:h.tenantProductKey,hostProductKey:p.hostProductKey})}):e.jsx(e.Fragment,{children:t})},He=()=>{const{profile:t}=I(),r=t?.tenantId,{data:n,isLoading:i}=K({queryKey:["effective-access-level",r],enabled:!!r,staleTime:60*1e3,refetchOnWindowFocus:!0,queryFn:async()=>{const{data:u,error:p}=await P.rpc("get_effective_plan",{p_tenant_id:r});if(p)throw p;return u?.access_level??"full"}}),c=n??"full";return{accessLevel:c,isReadOnly:c==="read_only",isBillingOnly:c==="billing_only",isRestricted:c==="restricted",isLoading:i}},Z="/settings?tab=billing",Ye=["/settings","/billing","/super-admin"];function Xe(t){const r=(t||"").toLowerCase();return Ye.some(n=>r===n||r.startsWith(n+"/"))}function ze(t){const r={banner:null,redirectTo:null};if(t.isSuperAdmin)return r;switch(t.accessLevel){case"read_only":return{banner:"read_only",redirectTo:null};case"billing_only":return{banner:"billing_only",redirectTo:Xe(t.pathname)?null:Z};default:return r}}const $e={read_only:{Icon:Re,title:"Your account is read-only",body:"We couldn't collect your subscription payment, so creating and editing are paused. Your data is safe.",cta:"Update payment"},billing_only:{Icon:Pe,title:"Your account is locked pending payment",body:"Restore your subscription to regain access to your workspace. Your data is safe.",cta:"Fix billing"}},Je=()=>{const t=E(),r=de(),{profile:n,isSuperAdmin:i}=I(),{accessLevel:c}=He();if(!n?.tenantId)return null;const u=ze({accessLevel:c,pathname:t.pathname,isSuperAdmin:i});if(u.redirectTo)return e.jsx(a,{to:u.redirectTo,replace:!0});if(!u.banner)return null;const p=$e[u.banner],m=p.Icon;return e.jsxs("div",{role:"status",className:je("flex flex-wrap items-center gap-x-3 gap-y-2 border-b border-destructive/30","bg-destructive/5 px-4 py-2.5 text-sm dark:bg-destructive/10"),children:[e.jsx(m,{className:"h-4 w-4 shrink-0 text-destructive","aria-hidden":"true"}),e.jsxs("span",{className:"min-w-0 flex-1",children:[e.jsxs("span",{className:"font-semibold text-foreground",children:[p.title,"."]})," ",e.jsx("span",{className:"text-muted-foreground",children:p.body})]}),e.jsx(he,{variant:"destructive",className:"shrink-0",onClick:()=>r(Z),children:p.cta})]})},ee=(t,r)=>`/login?redirect=${encodeURIComponent(t+(r||""))}`,Qe=({what:t="the Super Admin console"})=>e.jsx("div",{className:"min-h-svh flex items-center justify-center bg-background p-6",children:e.jsxs("div",{className:"max-w-md w-full text-center space-y-4",role:"alert",children:[e.jsx(Ie,{className:"w-10 h-10 mx-auto text-muted-foreground","aria-hidden":!0}),e.jsx("div",{className:"text-6xl font-display font-bold text-muted-foreground",children:"403"}),e.jsx("h1",{className:"text-2xl font-display font-semibold",children:"Access Denied"}),e.jsxs("p",{className:"text-sm text-muted-foreground",children:["You don't have permission to view ",t,". If you believe this is a mistake, please contact your platform administrator."]}),e.jsx("a",{href:"/",className:"inline-flex items-center justify-center rounded-md bg-primary text-primary-foreground px-4 py-2 text-sm font-medium hover:bg-primary/90 min-h-[40px] touch:min-h-[44px]",children:"Return to Dashboard"})]})}),S=({children:t,roles:r,fallbackPath:n="/",denyElement:i})=>{const{user:c,isLoading:u,isAdmin:p,isSuperAdmin:m,profile:g,tenantAccessState:h}=I(),_=E();return!r||r.length===0?e.jsx(e.Fragment,{children:t}):!r||r.length===0?e.jsx(e.Fragment,{children:t}):u||h==="unknown"||c&&g===null&&h==="valid"?e.jsx("div",{className:"min-h-svh flex items-center justify-center bg-background",children:e.jsx(R,{className:"w-8 h-8 animate-spin text-primary"})}):c?r.includes("super_admin")&&m||r.includes("admin")&&(p||m)?e.jsx(e.Fragment,{children:t}):i?e.jsx(e.Fragment,{children:i}):e.jsx(a,{to:n,replace:!0}):e.jsx(a,{to:ee(_.pathname,_.search),replace:!0})},X=()=>e.jsx("div",{className:"min-h-svh flex items-center justify-center bg-background",children:e.jsx(R,{className:"w-8 h-8 animate-spin text-primary"})}),Ze=({children:t,module:r,action:n="view",fallbackPath:i="/"})=>{const{user:c,isLoading:u,isAdmin:p,isSuperAdmin:m,profile:g,tenantAccessState:h}=I(),{isLoading:_,getModulePermissions:y}=fe(),T=E();return r?r?u||h==="unknown"||c&&g===null&&h==="valid"?e.jsx(X,{}):c?p||m?e.jsx(e.Fragment,{children:t}):_?e.jsx(X,{}):y(r)[n]?e.jsx(e.Fragment,{children:t}):e.jsx(a,{to:i,replace:!0}):e.jsx(a,{to:ee(T.pathname,T.search),replace:!0}):e.jsx(e.Fragment,{children:t}):e.jsx(e.Fragment,{children:t})},et=l(()=>o(()=>import("./viewRegistry-DtBIX_oW.js").then(t=>t.v),__vite__mapDeps([22,1,2,3,4,5,6,7,8,23,11,24,21])),"ViewFeatureGate"),tt={"/broadcasts":{featureKeys:["whatsapp_hub"],navSource:"showItem('whatsapp_hub') → broadcasts"},"/contacts":{featureKeys:["accounts"],navSource:"showAny('accounts', 'accounts') → accounts"},"/project-management":{featureKeys:["task_boards"],upsellKey:"task_boards",navSource:"coreGate('task_boards', 'tasks') → taskboards"}},V=({route:t,children:r})=>{const n=tt[t],i=n.upsellKey?_e[n.upsellKey]:void 0;return e.jsx(d.Suspense,{fallback:null,children:e.jsx(et,{featureKeys:[...n.featureKeys],upsell:i,upsellFeatureKe
2y:i?n.upsellKey:void 0,children:r})})},st=`
3@keyframes crm-shimmer {
4  0% { background-position: -200% 0; }
5  100% { background-position: 200% 0; }
6}
7`,x=({w:t="100%",h:r="12px",className:n=""})=>e.jsx("div",{className:n,style:{width:t,height:r,borderRadius:6,background:"linear-gradient(90deg, hsl(var(--muted)) 25%, hsl(var(--muted-foreground) / 0.08) 50%, hsl(var(--muted)) 75%)",backgroundSize:"200% 100%",animation:"crm-shimmer 1.5s ease-in-out infinite"}}),rt=()=>e.jsxs("div",{style:{display:"flex",height:"100vh",background:"hsl(var(--background))"},children:[e.jsx("style",{children:st}),e.jsxs("div",{style:{width:56,borderRight:"1px solid hsl(var(--border))",padding:"16px 8px",display:"flex",flexDirection:"column",gap:16},children:[e.jsx(x,{w:"40px",h:"40px"}),[1,2,3,4,5].map(t=>e.jsx(x,{w:"40px",h:"24px"},t))]}),e.jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column",minWidth:0},children:[e.jsxs("div",{style:{height:56,borderBottom:"1px solid hsl(var(--border))",padding:"0 16px",display:"flex",alignItems:"center",gap:12},children:[e.jsx(x,{w:"120px",h:"16px"}),e.jsx("div",{style:{flex:1}}),e.jsx(x,{w:"32px",h:"32px"}),e.jsx(x,{w:"32px",h:"32px"})]}),e.jsxs("div",{style:{padding:16,display:"flex",flexDirection:"column",gap:12},children:[e.jsxs("div",{style:{display:"flex",gap:8,marginBottom:8},children:[e.jsx(x,{w:"200px",h:"36px"}),e.jsx(x,{w:"100px",h:"36px"}),e.jsx("div",{style:{flex:1}}),e.jsx(x,{w:"80px",h:"36px"})]}),e.jsxs("div",{style:{display:"flex",gap:16,paddingBottom:8,borderBottom:"1px solid hsl(var(--border))"},children:[e.jsx(x,{w:"30%",h:"14px"}),e.jsx(x,{w:"20%",h:"14px"}),e.jsx(x,{w:"15%",h:"14px"}),e.jsx(x,{w:"15%",h:"14px"})]}),[1,2,3,4,5,6,7,8].map(t=>e.jsxs("div",{style:{display:"flex",gap:16,padding:"8px 0"},children:[e.jsx(x,{w:"30%",h:"12px"}),e.jsx(x,{w:"20%",h:"12px"}),e.jsx(x,{w:"15%",h:"12px"}),e.jsx(x,{w:"15%",h:"12px"})]},t))]})]})]}),at=l(()=>o(()=>import("./GlobalFloatingWidgets-JgojbKP5.js"),__vite__mapDeps([25,1,2,3,4,5,6,7,8,26,27,11,28,29,30,31,32,33,34,35,36,37,38,21])),"GlobalFloatingWidgets"),nt=l(()=>o(()=>import("./GlobalDialer-C4N7P_QB.js"),__vite__mapDeps([39,1,2,3,4,5,6,7,8,40,15,16,41,11,42,43,44,21])),"GlobalDialer"),it=l(()=>o(()=>import("./SuperfoneWebDialler-v79LRbCE.js"),__vite__mapDeps([45,1,2,3,4,5,6,7,8,46,47])),"SuperfoneWebDialler"),ot=l(()=>o(()=>import("./HandoffIncomingDialog-v7BCddW_.js"),__vite__mapDeps([48,1,2,3,4,5,6,7,8])),"HandoffIncomingDialog"),lt=l(()=>o(()=>import("./IncomingWhatsAppCallListener-COmKOWRw.js"),__vite__mapDeps([49,1,2,3,4,5,6,7,8,50,51,26,52])),"IncomingWhatsAppCallListener"),ct=l(()=>o(()=>import("./PerformanceTrackingInit-DynWTCMQ.js"),__vite__mapDeps([53,1,2,11,3,4,5,6,7,8,21])),"PerformanceTrackingInit"),dt=l(()=>o(()=>import("./EngagementTrackerInit-DUwE4jUN.js"),__vite__mapDeps([54,55,1,2,3,4,5,6,7,8,56])),"EngagementTrackerInit"),v=l(()=>o(()=>import("./CRMShellLayout-DphILItz.js"),__vite__mapDeps([57,1,2,58,3,4,5,6,7,8,10,11,59,26,60,61,62,63,64,65,66,67,23,28,29,30,31,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,15,84,85,86,52,44,87,88,89,90,34,91,92,21])),"CRMShellLayout"),te=l(()=>o(()=>import("./Index-C8uYKt2z.js").then(t=>t.a),__vite__mapDeps([93,1,2,4,5,11,3,6,7,8,94,95,65,66,12,58,10,59,26,60,61,62,63,64,67,23,28,29,30,31,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,15,84,85,86,52,44,87,88,89,90,34,96,97,98,99,100,101,102,103,104,92,105,106,107,40,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,22,24,125,126,127,128,129,130,27,17,21])),"default"),ut=l(()=>o(()=>import("./NotFound-BzVKLp4C.js"),__vite__mapDeps([131,1,2,3,4,5,6,7,8])),"default"),pt=l(()=>o(()=>import("./SuperAdmin-BDV_rcQC.js").then(t=>t.aP),__vite__mapDeps([132,1,2,11,3,4,5,6,7,8,59,133,134,91,92,79,135,136,137,138,139,140,141,142,81,82,27,12,21])),"default"),mt=l(()=>o(()=>import("./ProjectManagement-DYRVMn5s.js"),__vite__mapDeps([143,1,2,3,4,5,6,7,8,144,145,146,147,148,92,149,11,61,26,150,151,59,134,152,153,154,155,156,157,158,159,160,161,81,82,162,83,117,73,96,97,98,163,164,165,166,167,168,169,170,171,172,136,112,113,28,29,30,31,109,173,174,175,176,177,178,55,56,179,71,72,180,181,74,75,182,183,184,185,186,118,21])),"default"),xt=l(()=>o(()=>import("./Scheduler--S-Bjp38.js"),__vite__mapDeps([187,1,2,93,4,5,11,3,6,7,8,94,95,65,66,12,58,10,59,26,60,61,62,63,64,67,23,28,29,30,31,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,15,84,85,86,52,44,87,88,89,90,34,96,97,98,99,100,101,102,103,104,92,105,106,107,40,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,22,24,125,126,127,128,129,130,27,17,21])),"default"),ht=l(()=>o(()=>import("./ContactsPage-PdPKUk6T.js"),__vite__mapDeps([188,1,2,3,4,5,6,7,8,189,190,162,81,82,191,192,193,194,195,61,196,92,197,198,199,200,184])),"default"),jt=l(()=>o(()=>import("./Broadcasts-2nIhONPV.js"),__vite__mapDeps([201,1,2,189,3,4,5,6,7,8,190,162,109,202,136,203,67,204,11,205,31,206,103,21])),"default"),ft=l(()=>o(()=>import("./ChatDemo-BXiYCL54.js"),__vite__mapDeps([207,1,2,3,4,5,6,7,8])),"default");l(()=>o(()=>import("./ExpensesPage-1H0pnAI0.js"),__vite__mapDeps([208,1,2,3,4,5,6,7,8,93,11,94,95,65,66,12,58,10,59,26,60,61,62,63,64,67,23,28,29,30,31,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,15,84,85,86,52,44,87,88,89,90,34,96,97,98,99,100,101,102,103,104,92,105,106,107,40,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,22,24,125,126,127,128,129,130,27,17,21])),"default");const _t=l(()=>o(()=>import("./WidgetTest-CHC9STbr.js"),__vite__mapDeps([209,1,2])),"default"),gt=l(()=>o(()=>import("./Onboarding-MojCX9XW.js"),__vite__mapDeps([210,1,2,3,4,5,6,7,8,211,11,37,38,12,212,101,26,51,52,213,214,215,216,106,107,217,72,218,100,219,220,221,222,223,224,225,89,226,85,227,136,228,229,230,231,232,84,88,110,21])),"default"),yt=l(()=>o(()=>import("./AIQuotaWatcher-CYPKjlGO.js"),__vite__mapDeps([233,1,2,4,5,3,6,7,8,234,136])),"default"),bt=l(()=>o(()=>import("./SeatOverageWatcher-CGMPSBeZ.js"),__vite__mapDeps([235,1,2,4,5,3,6,7,8,236,237])),"default"),vt=l(()=>o(()=>import("./BillingPlans-CSVYkCpB.js"),__vite__mapDeps([238,1,2,6,7
77,3,4,5,7,8,78,11,79,239,83,12,57,58,10,59,26,60,61,62,63,64,65,66,67,23,28,29,30,31,68,69,70,71,72,73,74,75,76,80,81,82,15,84,85,86,52,44,87,88,89,90,34,91,92,20,19,240,21])),"default"),Et=l(()=>o(()=>import("./ApiKeys-DjYBJ10T.js"),__vite__mapDeps([241,1,2,6,3,4,5,7,8,242,189,190,162,243,244])),"default"),At=l(()=>o(()=>import("./Webhooks-FHrozppG.js"),__vite__mapDeps([245,1,2,6,3,4,5,7,8,189,190,162,243])),"default"),kt=l(()=>o(()=>import("./ApiDocs-Yd1mp1QI.js"),__vite__mapDeps([246,1,2,3,4,5,6,7,8])),"default"),wt=l(()=>o(()=>import("./WebhooksDocs-BpQXwtOy.js"),__vite__mapDeps([247,1,2,3,4,5,6,7,8,248,249])),"default"),Pt=l(()=>o(()=>import("./IntegrationsDocs-C1_CLmOz.js"),__vite__mapDeps([250,1,2,3,4,5,6,7,8])),"default"),Rt=l(()=>o(()=>import("./AIApprovals-KY93Hi4X.js"),__vite__mapDeps([251,1,2,6,3,4,5,7,8,107,189,190,162,130,243])),"default"),It=l(()=>o(()=>import("./AIAuditLog-BNcZTDLj.js"),__vite__mapDeps([252,1,2,6,3,4,5,7,8,162,130])),"default"),Tt=l(()=>o(()=>import("./ActiveAICallsHUD-BdqjmFBt.js"),__vite__mapDeps([253,1,2,3,4,5,6,7,8,254,255])),"default"),St=l(()=>o(()=>import("./GrowthAuditLauncher-Bgy8im59.js"),__vite__mapDeps([256,1,2,88,89])),"default"),Dt=l(()=>o(()=>import("./MetaAdsAnalytics-BuCGoJW1.js"),__vite__mapDeps([257,1,2,6,3,4,5,7,8,162,130])),"default"),Lt=l(()=>o(()=>import("./SetupHealthBar-BGX8cE2h.js"),__vite__mapDeps([258,1,2,3,4,5,6,7,8,105,106,107,40,108,109,259,110,260])),"SetupHealthBar"),Ot=l(()=>o(()=>import("./RevOpsUpsellBanner-BcM3Z9c8.js"),__vite__mapDeps([261,1,2,3,4,5,6,7,8])),"RevOpsUpsellBanner"),Nt=l(()=>o(()=>import("./DealWinCaseStudyModal-BbVriGZw.js"),__vite__mapDeps([262,1,2,3,4,5,6,7,8,263,35,34])),"DealWinCaseStudyModal"),Ct=l(()=>o(()=>import("./ReferralModal-D-C7fPpe.js"),__vite__mapDeps([264,1,2,3,4,5,6,7,8,263,35,34])),"ReferralModal"),Vt=pe(()=>o(()=>import("./useTenantAIDisabled-hekJVLL-.js"),__vite__mapDeps([265,6,1,2,3,4,5,7,8])).then(t=>(me(t,"useTenantAIDisabled"),{default:()=>{const{disabled:r}=t.useTenantAIDisabled();return r?e.jsx("div",{role:"status",className:"bg-amber-50 dark:bg-amber-950 text-amber-900 dark:text-amber-100 border-b border-amber-200 dark:border-amber-800 px-4 py-2 text-sm",children:"⚠️ AI features are temporarily disabled for your organization. Contact your admin."}):null}}))),L=(t=3e3)=>{const[r,n]=d.useState(!1);return d.useEffect(()=>{if(typeof window.requestIdleCallback=="function"){const c=window.requestIdleCallback(()=>n(!0),{timeout:t});return()=>window.cancelIdleCallback(c)}const i=setTimeout(()=>n(!0),1500);return()=>clearTimeout(i)},[t]),r},Kt=()=>{const{pathname:t}=E(),r=L();return t.startsWith("/docs")||!r?null:e.jsxs(d.Suspense,{fallback:null,children:[e.jsx(at,{}),e.jsx(nt,{}),e.jsx(it,{})]})},Mt=()=>L(2e3)?e.jsxs(d.Suspense,{fallback:null,children:[e.jsx(ct,{}),e.jsx(dt,{})]}):null,Ft=()=>L(2e3)?e.jsxs(e.Fragment,{children:[e.jsx(d.Suspense,{fallback:null,children:e.jsx(yt,{})}),e.jsx(d.Suspense,{fallback:null,children:e.jsx(bt,{})}),e.jsx(d.Suspense,{fallback:null,children:e.jsx(Vt,{})}),e.jsx(d.Suspense,{fallback:null,children:e.jsx(Ot,{})}),e.jsx(d.Suspense,{fallback:null,children:e.jsx(Lt,{})})]}):null,Wt=()=>L(3e3)?e.jsxs(e.Fragment,{children:[e.jsx(d.Suspense,{fallback:null,children:e.jsx(Nt,{})}),e.jsx(d.Suspense,{fallback:null,children:e.jsx(Ct,{})})]}):null,Gt={team:"team",security:"security"},Ut=new Set(["trash-audit"]),qt=["admin"],Bt=t=>t.replace(/^\//,"").split("/")[0]||"",Ht=()=>{const{pathname:t}=E();if(!(be(t)||ve(t)!==null))return e.jsx(ut,{});
7const n=Bt(t);return e.jsx(f,{children:e.jsx(Ze,{module:Gt[n]??null,children:e.jsx(S,{roles:Ut.has(n)?qt:null,children:e.jsx(te,{})})})})},Yt=()=>e.jsx(Be,{children:e.jsx(xe,{children:e.jsx(ge,{children:e.jsx(Ee,{children:e.jsxs(Ae,{children:[e.jsx(Mt,{}),e.jsx(ye,{}),e.jsx(Je,{}),e.jsx(d.Suspense,{fallback:null,children:e.jsx(Tt,{})}),e.jsx(d.Suspense,{fallback:null,children:e.jsx(St,{})}),e.jsx(Ft,{}),e.jsx(Wt,{}),e.jsx(De,{}),e.jsx(d.Suspense,{fallback:e.jsx(rt,{}),children:e.jsxs(ue,{children:[e.jsx(s,{path:"/onboarding",element:e.jsx(f,{children:e.jsx(gt,{})})}),e.jsx(s,{path:"/widget-test/:siteId",element:e.jsx(f,{children:e.jsx(_t,{})})}),e.jsx(s,{path:"/super-admin/*",element:e.jsx(S,{roles:["super_admin"],denyElement:e.jsx(Qe,{}),children:e.jsx(pt,{})})}),e.jsx(s,{path:"/project-management/*",element:e.jsx(f,{children:e.jsx(V,{route:"/project-management",children:e.jsx(mt,{})})})}),e.jsx(s,{path:"/scheduler",element:e.jsx(f,{children:e.jsx(xt,{})})}),e.jsx(s,{path:"/broadcasts",element:e.jsx(f,{children:e.jsx(v,{title:"Broadcasts",children:e.jsx(V,{route:"/broadcasts",children:e.jsx(jt,{})})})})}),e.jsx(s,{path:"/chat-demo",element:e.jsx(f,{children:e.jsx(ft,{})})}),e.jsx(s,{path:"/billing",element:e.jsx(a,{to:q?"/":"/settings?tab=billing",replace:!0})}),e.jsx(s,{path:"/billing/plans",element:q?e.jsx(a,{to:"/",replace:!0}):e.jsx(f,{children:e.jsx(vt,{})})}),e.jsx(s,{path:"/ai/approvals",element:e.jsx(f,{children:e.jsx(v,{title:"AI Approvals",children:e.jsx(Rt,{})})})}),e.jsx(s,{path:"/ai/audit",element:e.jsx(f,{children:e.jsx(v,{title:"AI Audit Log",children:e.jsx(It,{})})})}),e.jsx(s,{path:"/ai-calls",element:e.jsx(a,{to:"/call-hub?tab=ai-calling",replace:!0})}),e.jsx(s,{path:"/ads-analytics",element:e.jsx(f,{children:e.jsx(v,{title:"Ads Analytics",children:e.jsx(Dt,{})})})}),e.jsx(s,{path:"/admin/integrations/api-keys",element:e.jsx(S,{roles:["admin"],children:e.jsx(v,{title:"API Keys",children:e.jsx(Et,{})})})}),e.jsx(s,{path:"/admin/integrations/webhooks",element:e.jsx(S,{roles:["admin"],children:e.jsx(v,{title:"Outbound Webhooks",children:e.jsx(At,{})})})}),e.jsx(s,{path:"/commission-dashboard/*",element:e.jsx(f,{children:e.jsx(S,{roles:["admin"],children:e.jsx(te,{})})})}),e.jsx(s,{path:"/docs/api",element:e.jsx(kt,{})}),e.jsx(s,{path:"/docs/webhooks",element:e.jsx(wt,{})}),e.jsx(s,{path:"/docs/integrations",element:e.jsx(Pt,{})}),e.jsx(s,{path:"/docs",element:e.jsx(a,{to:"/docs/integrations",replace:!0})}),e.jsx(s,{path:"/email",element:e.jsx(a,{to:"/hellomail",replace:!0})}),e.jsx(s,{path:"/whatsapp",element:e.jsx(a,{to:"/whatsapp-hub",replace:!0})}),e.jsx(s,{path:"/calls",element:e.jsx(a,{to:"/calllogs",replace:!0})}),e.jsx(s,{path:"/call-logs",element:e.jsx(a,{to:"/calllogs",replace:!0})}),e.jsx(s,{path:"/schedule",element:e.jsx(a,{to:"/scheduler",replace:!0})}),e.jsx(s,{path:"/calendar",element:e.jsx(a,{to:"/scheduler",replace:!0})}),e.jsx(s,{path:"/chat",element:e.jsx(a,{to:"/livechat",replace:!0})}),e.jsx(s,{path:"/webchat",element:e.jsx(a,{to:"/livechat",replace:!0})}),e.jsx(s,{path:"/pipeline",element:e.jsx(a,{to:"/deals",replace:!0})}),e.jsx(s,{path:"/tickets",element:e.jsx(a,{to:"/support",replace:!0})}),e.jsx(s,{path:"/support-tickets",element:e.jsx(a,{to:"/support",replace:!0})}),e.jsx(s,{path:"/kb",element:e.jsx(a,{to:"/knowledgebase",replace:!0})}),e.jsx(s,{path:"/tasks",element:e.jsx(a,{to:"/taskboards",replace:!0})}),e.jsx(s,{path:"/crm/taskboards",element:e.jsx(a,{to:"/taskboards",replace:!0})}),e.jsx(s,{path:"/crm/task-boards",element:e.jsx(a,{to:"/taskboards",replace:!0})}),e.jsx(s,{path:"/seo",element:e.jsx(a,{to:"/seo-pipeline",replace:!0})}),e.jsx(s,{path:"/bugs",element:e.jsx(a,{to:"/bug-reports",replace:!0})}),e.jsx(s,{path:"/tests",element:e.jsx(a,{to:"/test-cases",replace:!0})}),e.jsx(s,{path:"/market-radar",element:e.jsx(a,{to:"/marketradar",replace:!0})}),e.jsx(s,{path:"/ai",element:e.jsx(a,{to:"/ai-insights",replace:!0})}),e.jsx(s,{path:"/agents",element:e.jsx(a,{to:"/ai-agents",replace:!0})}),e.jsx(s,{path:"/portal",element:e.jsx(a,{to:"/customer-portal",replace:!0})}),e.jsx(s,{path:"/ecommerce",element:e.jsx(a,{to:"/ecom-dashboard",replace:!0})}),e.jsx(s,{path:"/real-estate",element:e.jsx(a,{to:"/re-dashboard",replace:!0})}),e.jsx(s,{path:"/manufacturing",element:e.jsx(a,{to:"/mfg-dashboard",replace:!0})}),e.jsx(s,{path:"/education",element:e.jsx(a,{to:"/edu-dashboard",replace:!0})}),e.jsx(s,{path:"/retail",element:e.jsx(a,{to:"/rtl-dashboard",replace:!0})}),e.jsx(s,{path:"/field",element:e.jsx(a,{to:"/field-visits",replace:!0})}),e.jsx(s,{path:"/listings",element:e.jsx(a,{to:"/business-listings",replace:!0})}),e.jsx(s,{path:"/pages",element:e.jsx(a,{to:"/landing-pages",replace:!0})}),e.jsx(s,{path:"/contacts",element:e.jsx(f,{children:e.jsx(v,{title:"Contacts",children:e.jsx(V,{route:"/contacts",children:e.jsx(ht,{})})})})}),e.jsx(s,{path:"/my-bug-reports",element:e.jsx(a,{to:"/bug-reports",replace:!0})}),e.jsx(s,{path:"/qa-bugs",element:e.jsx(a,{to:"/bug-reports",replace:!0})}),e.jsx(s,{path:"/communication",element:e.jsx(a,{to:"/hellomail",replace:!0})}),e.jsx(s,{path:"/visit-map",element:e.jsx(a,{to:"/field-visit-map",replace:!0})}),e.jsx(s,{path:"/reports",element:e.jsx(a,{to:"/analytics",replace:!0})}),e.jsx(s,{path:"/exhibition-capture",element:e.jsx(a,{to:"/exhibition",replace:!0})}),e.jsx(s,{path:"/visit-reports",element:e.jsx(a,{to:"/field-visit-reports",replace:!0})}),e.jsx(s,{path:"/ai-proposals",element:e.jsx(a,{to:"/proposal-builder",replace:!0})}),e.jsx(s,{path:"/sla-policies",element:e.jsx(a,{to:"/sla",replace:!0})}),e.jsx(s,{path:"/web-chat-assistant",element:e.jsx(a,{to:"/livechat",replace:!0})}),e.jsx(s,{path:"/web-chat",element:e.jsx(a,{to:"/livechat",replace:!0})}),e.jsx(s,{path:"/marketing-campaigns",element:e.jsx(a,{to:"/campaigns",replace:!0})}),e.jsx(s,{path:"/products-pricing",element:e.jsx(a,{to:"/products",replace:!0})}),e.jsx(s,{path:"/prospecting",element:e.jsx(a,{to:"/leadfinder",replace:!0})}),e.jsx(s,{path:"/insurance",element:e.jsx(a,{to:"/ins-dashboard",replace:!0})}),e.jsx(s,{path:"/policies",element:e.jsx(a,{to:"/ins-policies",replace:!0})}),e.jsx(s,{path:"/claims",element:e.jsx(a,{to:"/ins-claims",replace:!0})}),e.jsx(s,{path:"/admin",element:e.jsx(a,{to:"/team",replace:!0})}),e.jsx(s,{path:"/admin/audit",element:e.jsx(a,{to:"/trash-audit",replace:!0})}),e.jsx(s,{path:"/admin/trash",element:e.jsx(a,{to:"/trash-audit",replace:!0})}),e.jsx(s,{path:"/admin/settings",element:e.jsx(a,{to:"/settings",replace:!0})}),e.jsx(s,{path:"/admin/security",element:e.jsx(a,{to:"/security",replace:!0})}),e.jsx(s,{path:"/admin/team",element:e.jsx(a,{to:"/team",replace:!0})}),e.jsx(s,{path:"/admin/users",element:e.jsx(a,{to:"/team",replace:!0})}),e.jsx(s,{path:"/admin/billing",element:e.jsx(a,{to:"/billing",replace:!0})}),e.jsx(s,{path:"/support/sla",element:e.jsx(a,{to:"/sla",replace:!0})}),e.jsx(s,{path:"/settings/users",element:e.jsx(a,{to:"/team",replace:!0})}),e.jsx(s,{path:"/settings/team",element:e.jsx(a,{to:"/team",replace:!0})}),e.jsx(s,{path:"/settings/roles",element:e.jsx(a,{to:"/team?tab=roles",replace:!0})}),e.jsx(s,{path:"/sales",element:e.jsx(a,{to:"/sales-payments",replace:!0})}),e.jsx(s,{path:"/commerce",element:e.jsx(a,{to:"/sales-payments",replace:!0})}),e.jsx(s,{path:"/*",element:e.jsx(Ht,{})})]})}),e.jsx(Kt,{}),e.jsx(d.Suspense,{fallback:null,children:e.jsx(ot,{})}),e.jsx(d.Suspense,{fallback:null,children:e.jsx(lt,{})})]})})})})}),os=Object.freeze(Object.defineProperty({__proto__:null,default:Yt},Symbol.toStringTag,{value:"Module"}));
7export{Qe as A,os as C,ee as b,is as u};

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.