PageSourceSearch

https://demo.sonraisecurity.com/_next/static/chunks/pages/agent/debug/[agentDemoId]-b2cf525967962ad1.js

js sonraisecurity.com collected 2026-09-24 09:25:54 UTC 15,375 bytes, 5 lines download raw bytes

1
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="ed79ab29-9115-5cb4-9676-07271b165fd3")}catch(e){}}();
3(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8475],{261:(e,t,n)=>{"use strict";n.d(t,{d:()=>r,j:()=>o});var a=n(12108),l=n(55729),i=n(33684);function r(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.Nx;return Object.entries({xs:(0,i.Ub)("(min-width: 0px)"),sm:(0,i.Ub)("(min-width: 640px)"),md:(0,i.Ub)("(min-width: 768px)"),lg:(0,i.Ub)("(min-width: 1024px)"),xl:(0,i.Ub)("(min-width: 1280px)")}).reverse().filter(t=>{let[n]=t;return e.includes(n)}).find(e=>{let[,t]=e;return t})[0]}let o=e=>{let{defaultIsOpen:t=!1}=e||{},[n,a]=(0,l.useState)(t),i=(0,l.useCallback)(()=>{a(!0)},[]);return{isOpen:n,onOpen:i,onClose:(0,l.useCallback)(()=>{a(!1)},[]),onToggle:(0,l.useCallback)(()=>{a(e=>!e)},[])}}},1093:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/agent/debug/[agentDemoId]",function(){return n(42046)}])},2683:(e,t,n)=>{"use strict";n.d(t,{T:()=>u});var a=n(6029),l=n(95632),i=n(94626),r=n(94873),o=n(67827),s=n(55729),d=n(82626);let c=(0,o.F)(["field-sizing-content min-h-[4lh]","p-2 leading-5","transition duration-150 ease-in-out","disabled:cursor-not-allowed"],{variants:{variant:{default:["border bg-default rounded-lg text-sm shadow-sm border-default text-emphasis ","focus-outline hover:shadow-sm","disabled:border-gray-300 disabled:bg-subtle disabled:text-muted"],themable:"border px-ct-button-padding-h py-ct-button-padding-v text-ct-dialog-font-size! text-ct-dialog-text font-ct-dialog-font-family rounded-ct-form-field-radius bg-ct-dialog-bg border-ct-dialog-text/30 focus:border-ct-dialog-text/90 focus:outline-offset-[3px] focus:outline-ct-focus-ring-width focus:outline-ct-focus-ring-color placeholder:text-ct-dialog-text/50 placeholder:text-ct-dialog-font-size placeholder:text-ct-dialog-font-family",ghost:"border-0 bg-transparent text-sm text-emphasis shadow-none outline-none focus:outline-none focus-visible:outline-none disabled:text-muted"},size:{xs:"",sm:"",md:"",lg:""}},compoundVariants:[{variant:"themable",size:"md",className:"px-3.5 py-2.5"},{variant:"themable",size:"lg",className:"px-4 py-3"}],defaultVariants:{variant:"default"}}),u=(0,s.forwardRef)((e,t)=>{let{debounce:n=0,label:o,description:u,error:m,help:p,className:h,onChangeDebounce:x=()=>{},onChange:f,disabled:y,styles:v,defaultValue:b,value:g,variant:j="default",size:N,"data-test-id":w,...C}=e,P=(0,s.useId)(),_=C.id||P,R=(0,d.YQ)(x,n),[E,S]=(0,s.useState)(b);return(0,a.jsx)("div",{className:(0,l.cn)("flex flex-col gap-2"),style:null==v?void 0:v.wrapper,children:(0,a.jsx)(r.nV,{label:o&&("string"==typeof o?{children:o,htmlFor:_,isRequired:C.required}:{...o,htmlFor:_,isRequired:C.required}),description:u,promptText:m||p,variant:"themable"===j?"themable":"default",state:m?"error":"default",isDisabled:y,children:(0,a.jsx)("textarea",{id:_,"data-test-id":w,className:(0,l.cn)(c({variant:j,size:N}),h),...C,disabled:y,onChange:e=>{let t=e.target.value;S(t),null==f||f(t),R(t)},value:null!=g?g:E,style:{...null==v?void 0:v.input,borderColor:m?(0,i.c0)({defaultColor:i.c8.RED_700}):void 0},ref:t})})})});u.displayName="Textarea"},11468:(e,t,n)=>{"use strict";n.d(t,{q3:()=>y,ki:()=>b,Ui:()=>v,A3:()=>d,YE:()=>u,yz:()=>N,IR:()=>R,L2:()=>j,CZ:()=>P,UW:()=>_,p2:()=>g,Sj:()=>p,uo:()=>x,jQ:()=>h,kR:()=>s,_N:()=>o});var a=n(78465),l=n(4871);let i=e=>{let[t,n,a]=e.split(".").reverse();return(null==t?void 0:t.startsWith("localhost"))?{tld:t,sld:"",subdomain:n}:{tld:t||"",sld:n||"",subdomain:a||""}},r=e=>[e.subdomain,e.sld,e.tld].filter(Boolean).join("."),o=e=>{let{subdomain:t}=e,{host:n,protocol:a}=window.location,l=i(n);return"".concat(a,"//").concat(r({...l,subdomain:t}))},s=e=>{let{subdomain:t}=e,[n,l]=a.o.split("//"),o=i(l);return"".concat(n,"//").concat(r({...o,subdomain:t}))},d=e=>h(p(m(e))),c=["planetscale.com","pagerduty.com","ramp.com"];function u(e){let t=c.includes(e)?"?no-svg":"";return"https://logo.navattic.com/".concat(e).concat(t)}let m=e=>e.replace(/^(https?:\/\/)?www\./,"$1"),p=e=>e.replace("https://","").replace("http://","");function h(e){return e.replace(/\/$/,"")}function x(e){return e.startsWith("/")?e.substring(1):e}function f(e){return e.startsWith("http")?e:"https://".concat(e)}let y="dev:show-real-custom-domain",v=e=>{let{linkOrigin:t,customPath:n="",customDomain:i,workspaceId:r}=e;if(i){if("development"===l.A.NODE_ENV&&!function(){var e;return(null==(e=window.localStorage)?void 0:e.getItem(y))==="true"}()){let e=new URL(a.o).host;return"capture.".concat(e,"/psl/").concat(x(n),"?workspaceId=").concat(r)}return"https://".concat(i,"/psl/").concat(x(n))}return"".concat(t,"/").concat(x(n))},b=e=>{let{workspaceSlug:t,projectId:n,customPath:l}=e;return"".concat(a.o,"/").concat(t,"/product-demos/").concat(n,"/present/").concat(x(l))};function g(e){return e.includes("/nv_static/v/")}function j(e){try{let t=f(e);return new URL(t).pathname}catch(e){return}}function N(e){try{let t=f(e);return new URL(t).hostname}catch(e){return}}function w(e){try{let t=new URL(e),n=null;if(t.hostname.includes("youtu.be")?n=t.pathname.slice(1):t.hostname.includes("youtube.com")&&(n=t.searchParams.get("v")),!n)return null;let a=t.searchParams;a.delete("v");let l=a.get("t");return l&&(a.delete("t"),a.set("start",l)),{videoId:n,params:a}}catch(e){return null}}function C(e,t){let n=t.toString();return n?"".concat(e,"?").concat(n):e}function P(e){let t=w(e);return t?C("".concat("https://www.youtube.com/embed/").concat(t.videoId),t.params):e}function _(e){let t=w(e);return t?C("".concat(a.o,"/embed/youtube/").concat(t.videoId),t.params):null}function R(e){let t=new URLSearchParams({hideEmbedTopBar:"true",hide_title:"true",hide_owner:"true",hide_share:"true",hide_speed:"true"}),n=e.includes("?")?"&":"?";return"".concat(e).concat(n).concat(t.toString())}},12108:(e,t,n)=>{"use strict";n.d(t,{Nx:()=>a});let a=["xs","sm","md","lg","xl"]}
3,22743:(e,t,n)=>{"use strict";n.d(t,{B:()=>i});var a=n(6029),l=n(41456);function i(e){return(0,a.jsx)(l.Bc,{...e})}},42046:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__N_SSP:()=>s,default:()=>d});var a=n(6029),l=n(26293),i=n(65102),r=n(39363),o=n(94245);n(55729);var s=!0;function d(e){let{agentDemo:t,isNavatticAgentWorkerEnabled:n}=e,s=t.editVersion;return(0,a.jsx)(o.e,{children:(0,a.jsx)(r.U,{children:(0,a.jsx)(i.rt,{children:(0,a.jsx)(l.u,{agentDemoVersion:s,isNavatticAgentWorkerEnabled:n})})})})}},44580:(e,t,n)=>{"use strict";n.d(t,{S:()=>d});var a=n(6029),l=n(95632),i=n(87173),r=n(34281),o=n(55729);let s={open:{height:"auto",opacity:1},collapsed:{height:0,opacity:0}},d=e=>{let{isOpen:t,className:n,children:d,motionKey:c="collapse-content",allowOverflowWhenOpen:u=!1,withTriggerSpacing:m=!0,"data-test-id":p,...h}=e,[x,f]=(0,o.useState)(t),y=(0,o.useRef)(d);return t&&(y.current=d),(0,o.useEffect)(()=>{t&&f(!0)},[t]),(0,a.jsx)(i.N,{initial:!1,children:(t||x)&&(0,a.jsx)(r.P.div,{variants:s,initial:"collapsed",animate:t?"open":"collapsed",exit:"collapsed",transition:{ease:[.175,.885,.32,1.1]},onAnimationComplete:e=>{"collapsed"!==e||t||f(!1)},"data-test-id":p,className:(0,l.cn)(u&&t?"overflow-visible":"overflow-hidden",n),...h,children:(0,a.jsx)("div",{className:(0,l.cn)(m&&"mt-3"),children:t?d:y.current})},c)})}},55314:(e,t,n)=>{"use strict";n.d(t,{$m:()=>U,AM:()=>w,EO:()=>P,Oj:()=>E,Q$:()=>R,WV:()=>j,Ze:()=>v,aF:()=>y,cw:()=>D,g6:()=>_,jl:()=>O,kp:()=>b,mH:()=>A,mN:()=>M,mw:()=>V,n6:()=>g,qP:()=>C,rQ:()=>k,s_:()=>S,wJ:()=>B,wt:()=>L,xe:()=>N});var a=n(6029),l=n(95632),i=n(66148),r=n(74719),o=n(55613),s=n(69222),d=n(40041),c=n(62292),u=n(16697),m=n(67827),p=n(34281),h=n(87173),x=n(55729);let f=(0,x.createContext)({open:!1}),y=e=>{let{trigger:t,children:n,title:l,description:i,header:r,primaryButton:o,secondaryButton:s={children:"Cancel"},footer:d,isFullScreen:c,open:u,onOpenChange:m,onOpenChangeComplete:h,className:f,showCloseButton:y,showScrollSuggestions:v,bodyClassName:b,overlayClassName:g,onPointerDownOutside:j,onInteractOutside:w,onEscapeKeyDown:C,submitOnEnter:R=!0,"data-test-id":E,...S}=e,A=(0,x.useRef)(null),L=(0,x.useMemo)(()=>r?(0,a.jsx)(k,{...r}):l||i?(0,a.jsx)(M,{title:l,description:i}):null,[r,l,i]),V=(0,x.useMemo)(()=>d?(0,a.jsx)(O,{...d}):o?(0,a.jsx)(B,{primaryButton:o,secondaryButton:s,primaryButtonRef:A}):null,[d,o,s]);return(0,a.jsxs)(P,{"data-test-id":E,open:u,onOpenChange:m,onOpenChangeComplete:h,...S,children:[t&&(0,a.jsx)(_,{asChild:!0,children:t}),(0,a.jsxs)(U,{"aria-describedby":void 0,isFullScreen:c,showCloseButton:y,className:f,overlayClassName:g,onPointerDownOutside:j,onInteractOutside:w,onEscapeKeyDown:C,onKeyDown:R?e=>{var t,n;if("Enter"!==e.key||e.defaultPrevented||e.shiftKey||e.altKey||e.ctrlKey||e.metaKey||e.nativeEvent.isComposing)return;let a=e.target;null!=(t=a.closest)&&t.call(a,'textarea, button, a, select, [contenteditable="true"], [role="button"], [role="menu"], [role="menuitem"], [role="listbox"], [role="option"], [aria-haspopup="listbox"], [aria-haspopup="menu"]')||(e.preventDefault(),null==(n=A.current)||n.click())}:void 0,children:[L&&(0,a.jsx)(p.P.div,{layout:!0,transition:{layout:N},children:(0,a.jsx)(p.P.div,{layout:"position",transition:{layout:N},children:L})}),n&&(0,a.jsx)(D,{showScrollSuggestions:v,className:b,children:n}),V&&(0,a.jsx)(p.P.div,{layout:!0,transition:{layout:N},children:(0,a.jsx)(p.P.div,{layout:"position",transition:{layout:N},children:V})})]})]})},v=(0,m.F)(["relative z-50 bg-default w-full overflow-clip shadow-lg outline-hidden"],{variants:{isRounded:{true:"rounded-2xl",false:""},isFullScreen:{true:"flex h-full max-h-[95dvh] max-w-[95dvw] flex-col",false:"flex max-h-[95dvh] max-w-[540px] flex-col"}},defaultVariants:{isRounded:!1,isFullScreen:!1}}),b=(0,m.F)(["fixed inset-0 z-50 bg-gray-800/50 backdrop-blur-sm"]),g={initial:{opacity:0}
3,animate:{opacity:1},exit:{opacity:0}},j={initial:{opacity:0,y:8},animate:{opacity:1,y:0},exit:{opacity:0,y:16}},N={duration:.125,ease:"easeOut"},w="text-xl font-semibold text-gray-900",C="text-sm text-gray-500",P=e=>{let{open:t,defaultOpen:n,onOpenChange:l,onOpenChangeComplete:i,children:r,"data-test-id":o,...s}=e,[d,m]=(0,u.i)({prop:t,defaultProp:null!=n&&n,onChange:l});return(0,a.jsx)(f.Provider,{value:{open:d,onOpenChangeComplete:i},children:(0,a.jsx)(c.bL,{"data-test-id":o,open:d,onOpenChange:m,...s,children:r})})},_=c.l9,R=c.ZL,E=c.bm,S=x.forwardRef((e,t)=>{let{className:n,...i}=e;return(0,a.jsx)(E,{ref:t,asChild:!0,className:(0,l.cn)(n),...i,children:(0,a.jsx)(s.K,{icon:"x",variant:"ghost","aria-label":"Close button"})})});S.displayName=c.bm.displayName;let A=x.forwardRef((e,t)=>{let{className:n,...i}=e;return(0,a.jsx)(c.hJ,{ref:t,forceMount:!0,asChild:!0,...i,children:(0,a.jsx)(p.P.div,{className:(0,l.cn)(b(),n),variants:g,initial:"initial",animate:"animate",exit:"exit",transition:N})})});A.displayName=c.hJ.displayName;let U=x.forwardRef((e,t)=>{let{isFullScreen:n=!1,showCloseButton:o=!0,transitionDuration:s,className:u,overlayClassName:m,children:y,...b}=e,[g,w]=(0,x.useState)(null),C=(0,d.s)(t,w),{open:P,onOpenChangeComplete:_}=(0,x.useContext)(f),{container:E}=(0,i.m)({useContextContainer:!1});return(0,a.jsx)(h.N,{children:P&&(0,a.jsxs)(R,{forceMount:!0,container:E,children:[(0,a.jsx)(A,{className:m}),(0,a.jsx)(p.P.div,{className:"fixed inset-0 z-50 flex items-center justify-center","data-test-id":"modal-content",children:(0,a.jsx)(c.UC,{ref:C,forceMount:!0,asChild:!0,...b,children:(0,a.jsx)(p.P.div,{layout:!0,className:(0,l.cn)(v({isFullScreen:n,isRounded:!1}),u),style:{borderRadius:16},variants:j,initial:"initial",animate:"animate",exit:"exit",transition:{...N,duration:null!=s?s:N.duration,layout:{...N,duration:null!=s?s:N.duration}},onAnimationComplete:e=>{"animate"===e&&(null==_||_(!0))},children:(0,a.jsxs)(r.R,{container:g,children:[y,o&&(0,a.jsx)(S,{className:"absolute top-4 right-4"})]})})})})]})})});U.displayName=c.UC.displayName;let k=e=>{let{className:t,children:n,...i}=e;return(0,a.jsx)(p.P.div,{layout:!0,transition:{layout:N},children:(0,a.jsx)("div",{className:(0,l.cn)("px-6 py-4",t),...i,children:n})})};k.displayName="ModalHeader";let O=e=>{let{className:t,children:n,...i}=e;return(0,a.jsx)(p.P.div,{layout:!0,transition:{layout:N},children:(0,a.jsx)("div",{className:(0,l.cn)("px-6 py-4",t),...i,children:n})})};O.displayName="ModalFooter";let D=e=>{let{className:t,showScrollSuggestions:n=!0,transitionDuration:i,children:r,...o}=e;return(0,a.jsx)(p.P.div,{layout:"position",layoutScroll:!0,className:(0,l.cn)("relative grow overflow-y-auto px-6",n&&"scroll-fade-y py-6",t),transition:{layout:{...N,duration:null!=i?i:N.duration}},...o,children:r})};D.displayName="ModalBody";let L=x.forwardRef((e,t)=>{let{className:n,...i}=e;return(0,a.jsx)(c.hE,{ref:t,className:(0,l.cn)(w,n),...i})});L.displayName=c.hE.displayName;let V=x.forwardRef((e,t)=>{let{className:n,...i}=e;return(0,a.jsx)(c.VY,{ref:t,className:(0,l.cn)(C,n),...i})});V.displayName=c.VY.displayName;let M=e=>{let{title:t,description:n}=e;return(0,a.jsxs)(k,{className:"bg-default border-b border-gray-300",children:[(0,a.jsx)(p.P.div,{layout:"position",transition:{layout:N},children:(0,a.jsx)(L,{className:"mr-10",children:t})}),n&&(0,a.jsx)(p.P.div,{layout:"position",transition:{layout:N},children:(0,a.jsx)(V,{className:"mr-10",children:n})})]})},B=e=>{let{primaryButton:t,secondaryButton:n={children:"Cancel"},primaryButtonRef:l}=e;return(0,a.jsxs)(O,{className:"flex items-center justify-end gap-2 border-t border-gray-300 bg-gray-100",children:[(0,a.jsx)(p.P.div,{layout:"position",transition:{layout:N},children:(null==n?void 0:n.onClick)?(0,a.jsx)(o.$,{variant:"ghost",...n}):(0,a.jsx)(E,{asChild:!0,children:(0,a.jsx)(o.$,{variant:"ghost",...n})})}),t&&(0,a.jsx)(p.P.div,{layout:"position",transition:{layout:N},children:(0,a.jsx)(o.$,{ref:l,...t})})]})}},75761:(e,t,n)=>{"use strict";n.d(t,{x:()=>d});var a=n(6029),l=n(55729),i=n(32113),r=n(76634),o=n(72784),s=n(90028);function d({children:e,isValidProp:t,...n}){t&&(0,o.D)(t);let d=(0,l.useContext)(r.Q);(n={...d,...n}).transition=(0,i.K)(n.transition,d.transition),n.isStatic=(0,s.M)(()=>n.isStatic);let c=(0,l.useMemo)(()=>n,[JSON.stringify(n.transition),n.transformPagePoint,n.reducedMotion,n.skipAnimations]);return(0,a.jsx)(r.Q.Provider,{value:c,children:e})}},78465:(e,t,n)=>{"use strict";n.d(t,{o:()=>r});var a=n(38925),l=n(4871),i=n(33601);let r="staging"===l.A.NODE_ENV?a.AA.APP_URL.STAGING:"production"!==l.A.NODE_ENV||i.env.NEXT_PUBLIC_LOCAL_BUILD?a.AA.APP_URL.DEV:a.AA.APP_URL.PROD},82211:(e,t,n)=>{"use strict";n.d(t,{l:()=>a});let a=e=>{let t=document.createElement("div");t.textContent=null!=e?e:null,t.setAttribute("readonly",""),t.style.position="absolute",t.style.left="-9999px",document.body.appendChild(t);let n=document.getSelection(),a=document.createRange();a.selectNodeContents(t),n&&(n.removeAllRanges(),n.addRange(a));
3let l=document.execCommand("copy");return document.body.removeChild(t),l}}},e=>{e.O(0,[1456,238,9913,8277,3684,4446,4882,2292,8750,9899,9928,1963,2532,8975,6100,865,2593,4379,4641,7332,8559,2274,4473,6338,8255,6593,8792],()=>e(e.s=1093)),_N_E=e.O()}]);
4//# sourceMappingURL=[agentDemoId]-b2cf525967962ad1.js.map
5//# debugId=ed79ab29-9115-5cb4-9676-07271b165fd3

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.