PageSourceSearch

https://www.reasonvoice.ai/_next/static/chunks/app/layout-c037510e…?dpl=dpl_8o6VRtDwghvgxLWLMbjnCqKU6AxL

js reasonvoice.ai collected 2026-10-05 16:18:50 UTC 7,311 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7177],{3998:(e,t,r)=>{"use strict";r.d(t,{$:()=>l,r:()=>o});var s=r(95155);r(12115);var n=r(32467),i=r(83101),a=r(64269);let o=(0,i.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});function l({className:e,variant:t,size:r,asChild:i=!1,...l}){let c=i?n.DX:"button";return(0,s.jsx)(c,{"data-slot":"button",className:(0,a.cn)(o({variant:t,size:r,className:e})),...l})}},4707:(e,t,r)=>{"use strict";r.d(t,{ErrorBoundary:()=>u});var s=r(95155),n=r(12115),i=r(52619),a=r.n(i),o=r(3998),l=r(6132),c=r(48314),d=r(65993);class u extends n.Component{constructor(e){super(e),this.reset=()=>{this.setState({error:null})},this.state={error:null}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){console.error("[ErrorBoundary] caught error:",e,t),this.props.onError?.(e,t)}render(){return this.state.error?this.props.fallback?this.props.fallback:(0,s.jsx)("div",{className:"flex items-center justify-center min-h-[60vh] p-6",children:(0,s.jsxs)("div",{className:"max-w-md w-full text-center",children:[(0,s.jsx)("div",{className:"inline-flex items-center justify-center w-12 h-12 rounded-full bg-red-100 text-red-600 mb-4",children:(0,s.jsx)(l.A,{className:"w-6 h-6"})}),(0,s.jsx)("h2",{className:"text-lg font-semibold text-slate-900 mb-2",children:"Something went wrong"}),(0,s.jsx)("p",{className:"text-sm text-slate-600 mb-6",children:"This part of the page hit an unexpected error. It's been reported and we'll look into it. You can retry the page or head back to the dashboard."}),!1,(0,s.jsxs)("div",{className:"flex items-center justify-center gap-2",children:[(0,s.jsxs)(o.$,{variant:"outline",onClick:this.reset,className:"gap-2",children:[(0,s.jsx)(c.A,{className:"w-4 h-4"}),"Try again"]}),(0,s.jsx)(a(),{href:"/dashboard",children:(0,s.jsxs)(o.$,{className:"gap-2",children:[(0,s.jsx)(d.A,{className:"w-4 h-4"}),"Dashboard"]})})]})]})}):this.props.children}}},11288:(e,t,r)=>{Promise.resolve().then(r.t.bind(r,28963,23)),Promise.resolve().then(r.bind(r,44517)),Promise.resolve().then(r.bind(r,18720)),Promise.resolve().then(r.t.bind(r,13673,23)),Promise.resolve().then(r.bind(r,19016)),Promise.resolve().then(r.bind(r,4707)),Promise.resolve().then(r.bind(r,78772))},13673:()=>{},19016:(e,t,r)=>{"use strict";r.d(t,{As:()=>d,AuthProvider:()=>c,n5:()=>u});var s=r(95155),n=r(12115),i=r(20063),a=r(47886),o=r(65314);let l=(0,n.createContext)(void 0);function c({children:e}){let[t,r]=(0,n.useState)(null),[c,d]=(0,n.useState)(!0),u=(0,i.useRouter)(),h=(0,i.usePathname)(),v=async()=>{try{if((0,a.isAuthenticated)()){let e=await (0,a.getCurrentUser)();r(e)}else r(null)}catch(e){console.error("Failed to refresh user:",e),r(null)}},p=async()=>{try{await (0,a.logout)(),r(null),u.push("/login")}catch(e){console.error("Logout failed:",e),r(null),u.push("/login")}};return(0,n.useEffect)(()=>{(async()=>{d(!0),(0,a.isAuthenticated)()||await (0,a.refreshSession)(),(0,a.isAuthenticated)()?await v():r(null),d(!1)})();let e=(0,a.startSessionKeepAlive)(),t=e=>{"reasonvoice_token"===e.key&&(e.newValue?v():r(null))};return window.addEventListener("storage",t),()=>{e(),window.removeEventListener("storage",t)}},[]),(0,n.useEffect)(()=>
1{if(!c){if("/sitemap.xml"===h||"/robots.txt"===h||"/llms.txt"===h||"/llms-full.txt"===h||"/manifest.webmanifest"===h||"/favicon.ico"===h||"/opengraph-image"===h||h.startsWith("/.well-known/"))return;let e="/login"===h||"/signup"===h||"/verify-email"===h||"/forgot-password"===h||"/reset-password"===h,r="/"===h||"/voice"===h||"/chat"===h||"/pricing"===h||"/support"===h||"/contact"===h||"/status"===h||"/privacy-policy"===h||"/terms-of-service"===h||"/cookies"===h||"/sms-consent"===h||"/account-deletion"===h||"/health"===h||"/hubspot-dialer"===h||"/salesforce-dialer"===h||"/odoo-dialer"===h||"/zoho-dialer"===h||"/staff-panel"===h||h.startsWith("/docs"),s=!!t;s||e||r?s&&e&&u.push((0,o.u7)()||(0,o.jP)()):u.push((0,o.qA)(h))}},[t,c,h,u]),(0,s.jsx)(l.Provider,{value:{user:t,isLoading:c,isAuthenticated:!!t,logout:p,refreshUser:v},children:e})}function d(){let e=(0,n.useContext)(l);if(void 0===e)throw Error("useAuth must be used within an AuthProvider");return e}function u(){return(0,s.jsx)("div",{className:"min-h-screen flex items-center justify-center",children:(0,s.jsxs)("div",{className:"text-center",children:[(0,s.jsx)("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-blue-600 mx-auto"}),(0,s.jsx)("p",{className:"mt-2 text-gray-600",children:"Loading..."})]})})}},64269:(e,t,r)=>{"use strict";r.d(t,{cn:()=>i});var s=r(2821),n=r(75889);function i(...e){return(0,n.QP)((0,s.$)(e))}},65314:(e,t,r)=>{"use strict";function s(){return!function(){let e=window.location.hostname;return"call.reasonvoice.ai"===e||e.startsWith("call.localhost")}()?"/dashboard":"/calls"}function n(){let e=new URLSearchParams(window.location.search).get("next");return!e||!/^\/(?![/\\])/.test(e)||e.includes("\\")?null:e.startsWith("/integrations/odoo/connect")?e:null}function i(e){return e.startsWith("/integrations/odoo/connect")?`/login?next=${encodeURIComponent(e+window.location.search)}`:"/login"}r.d(t,{jP:()=>s,qA:()=>i,u7:()=>n})},78772:(e,t,r)=>{"use strict";r.d(t,{PostHogProvider:()=>d});var s=r(95155),n=r(12115),i=r(20063),a=r(67385),o=r(26302);let l="phc_wC6rU6atXELfRNmcUAW5oeAWsPfNd3yiVvahQsvpRMYA";function c(){let e=(0,i.usePathname)(),t=(0,i.useSearchParams)();return(0,n.useEffect)(()=>{if(!l||!e)return;let r=t.get("ref");r&&a.Ay.register({ref:r});let s=t.toString();a.Ay.capture("$pageview",{$current_url:window.origin+e+(s?`?${s}`:"")})},[e,t]),null}function d({children:e}){return l?(0,s.jsxs)(o.so,{client:a.Ay,children:[(0,s.jsx)(n.Suspense,{fallback:null,children:(0,s.jsx)(c,{})}),e]}):(0,s.jsx)(s.Fragment,{children:e})}!l||a.Ay.__loaded||window.location.pathname.startsWith("/staff-panel")||a.Ay.init(l,{api_host:"/ingest",ui_host:"https://analytics.reasonworks.ai",capture_pageview:!1,capture_pageleave:!0,persistence:"localStorage+cookie",disable_surveys:!0})}},e=>{e.O(0,[557,2978,9432,4909,2619,8720,1820,7886,8441,1255,7358],()=>e(e.s=11288)),_N_E=e.O()}]);

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.