PageSourceSearch

https://epsilo.ai/_next/static/chunks/6236.47afd2ba4c06baf0.js

js epsilo.ai collected 2026-10-05 12:07:25 UTC 16,236 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6236],{36236:(e,t,r)=>{r.r(t),r.d(t,{__rspack_esm_id:()=>n,__rspack_esm_ids:()=>a,__webpack_modules__:()=>s});let n="7844",a=["7844"],s={13970(e,t,r){r.d(t,{T:()=>d});var n=r(53014),a=r(71178),s=r(51649),o=r(89745),l=r(23959),i=r(64018),c=r(39480),d=e=>{var t=e.children,r=e.className,d=e.trackClassName,u=e.scrollStep,h=void 0===u?304:u,m=s.useRef(null),p=(0,n._)(s.useState(!1),2),v=p[0],g=p[1],f=(0,n._)(s.useState(!1),2),x=f[0],b=f[1],k=s.useCallback(()=>{var e=m.current;e&&(g(e.scrollLeft>1),b(e.scrollLeft<e.scrollWidth-e.clientWidth-1))},[]);s.useEffect(()=>{k();var e=m.current;if(e){e.addEventListener("scroll",k,{passive:!0});var t=new ResizeObserver(k);return t.observe(e),()=>{e.removeEventListener("scroll",k),t.disconnect()}}},[k,t]);var w=e=>{var t=m.current;t&&t.scrollBy({left:"right"===e?h:-h,behavior:"smooth"})};return(0,a.jsx)("div",{className:r,children:(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)("div",{ref:m,className:(0,o.cn)("flex gap-3 overflow-x-auto min-w-0 scroll-hidden",d),style:{scrollBehavior:"smooth"},children:t}),v&&(0,a.jsx)("div",{className:"absolute inset-y-0 left-0 w-12 flex items-center justify-start pl-1 z-10 bg-gradient-to-r from-background via-background/80 to-transparent pointer-events-none",children:(0,a.jsx)(l.$n,{variant:"ghost",size:"sm",className:"w-7 p-0 rounded-full bg-background border border-border shadow-sm hover:bg-muted pointer-events-auto",onClick:()=>w("left"),children:(0,a.jsx)(i.In,{type:(0,c.qz)("nav.back"),width:"var(--icon-default)",height:"var(--icon-default)"})})}),x&&(0,a.jsx)("div",{className:"absolute inset-y-0 right-0 w-12 flex items-center justify-end pr-1 z-10 bg-gradient-to-l from-background via-background/80 to-transparent pointer-events-none",children:(0,a.jsx)(l.$n,{variant:"ghost",size:"sm",className:"w-7 p-0 rounded-full bg-background border border-border shadow-sm hover:bg-muted pointer-events-auto",onClick:()=>w("right"),children:(0,a.jsx)(i.In,{type:(0,c.qz)("nav.forward"),width:"var(--icon-default)",height:"var(--icon-default)"})})})]})})}},33691(e,t,r){r.d(t,{Qs:()=>o,cG:()=>l,hb:()=>i});var n=r(51649),a=r(7516),s=n.createContext(null),o=s.Provider,l=()=>n.useContext(s),i=e=>{var t=e.into,r=e.children;return t?(0,a.createPortal)(r,t):null}},44406(e,t,r){r.d(t,{l:()=>s,p:()=>o});var n=r(51649),a=n.createContext(null),s=a.Provider,o=()=>n.useContext(a)},83509(e,t,r){r.d(t,{DE:()=>s,ZP:()=>i,si:()=>o,yc:()=>l});var n=r(71178);r(51649);var a=r(89745),s="relative flex w-full select-none items-center gap-3 rounded-[var(--radius-menu-item)] px-2 py-1.5 text-left transition-colors",o={"--color-eo-gray":"color-mix(in srgb, var(--color-muted-foreground) 80%, transparent)"},l=92,i=e=>{var t=e.columns,r=e.interactive,s=e.className,o=e.role,l=e.tabIndex,i=e.onClick,c=e.onKeyDown,d=e.children;return(0,n.jsx)("div",{role:o,tabIndex:l,onClick:i,onKeyDown:c,className:(0,a.cn)("grid items-center gap-x-2","rounded-[var(--radius-input)] px-2 py-1.5 transition-colors duration-(--transition-duration-micro)",r&&"curs
1or-default hover:bg-state-hover",t,s),children:d})}},58928(e,t,r){r.d(t,{AE:()=>d,FN:()=>c,aq:()=>l,gX:()=>u,qF:()=>i});var n=r(71893),a=r(55456),s="shape:",o=/\b(by|to|from|in|on|at|of|for|with)$/i,l=e=>(null!=e?e:[]).filter(e=>!!e.onReset&&!!e.valueHint).map(e=>{let t,r;return{key:(t=e.key,"".concat(s).concat(t)),label:e.label,operator:(r=e.label,o.test(r.trim())?void 0:"is"),displayValue:e.valueHint}}),i=(e,t)=>{if(!t.startsWith(s))return!1;var r,n=t.slice(s.length),a=(null!=e?e:[]).find(e=>e.key===n);return null==a||null==(r=a.onReset)||r.call(a),!0},c=e=>e.startsWith(s),d=e=>{var t=e.open,r=e.activeFilterCount,n=e.search;return t||r>0||n.trim().length>0},u=(e,t)=>e.map(e=>{if(e.editContent||c(e.key))return e;var r=(null!=t?t:[]).find(t=>t.key===e.key);if(!r)return e;var s=r.renderContent;return(0,a._)((0,n._)({},e),{editContent:()=>s({searchPlaceholder:"Filter ".concat(e.label.toLowerCase())})})})},71082(e,t,r){r.d(t,{_:()=>d});var n=r(71178);r(51649);var a=r(77380),s=r(5052),o=r(63950),l=r(39480),i=r(89745),c=r(14801);function d(e){var t=e.open,r=e.onToggle,d=e.className,u=e["aria-label"];return(0,c.r)(r,{scope:"surface",description:"Open console"}),(0,n.jsxs)(s.m_,{children:[(0,n.jsx)(s.k$,{asChild:!0,children:(0,n.jsx)(a.n,{icon:(0,l.qz)("menu.console"),glyph:"header",active:t,onClick:r,"aria-label":void 0===u?"Console":u,className:(0,i.cn)(d)})}),(0,n.jsx)(o.ZI,{side:"bottom",children:(0,n.jsxs)("span",{className:"flex items-center gap-2",children:[(0,n.jsx)("span",{className:"text-tiny font-medium",children:"Console"}),(0,n.jsx)("span",{className:"text-tiny text-muted-foreground",children:c.z})]})})]})}},91849(e,t,r){r.d(t,{k:()=>_});var n=r(71893),a=r(53014),s=r(71178),o=r(51649),l=r(52166),i=r(50835),c=r(47482),d=r(64018),u=r(39480),h=r(5052),m=r(63950),p=r(82628),v=r(81053),g=r(10158),f=r(35267),x=r(75876),b=r(41382),k=r(23404),w=r(16465),y=r(91082),j=r(66284),C=r(27548),N=o.lazy(()=>Promise.all([r.e("1751"),r.e("929"),r.e("6434"),r.e("4333"),r.e("9283")]).then(r.bind(r,33150)).then(e=>({default:e.Composer})));function _(e){var t,r=e.isOpen,h=e.onClose,m=e.pageTitle,_=e.lockedContext,I=e.fullHeight,W=(0,c.B)("console").t,z=(0,f.KB)(),T=(0,l.Z)(),A=(0,i.g)({strict:!1}),O=(0,g.h)().currentWorkspace,E=null==O?void 0:O.workspace_id,R=(0,x.S)(E),q=(0,y.z)(),M=q.clearedByUser?null:q.scope,D=_?{kind:_.kind,id:_.id,name:_.name}:M,H=D&&D.id?[D]:[],P=(0,a._)(o.useState(""),2),B=P[0],V=P[1],F=(0,k.w)({workspaceId:E,conversationId:null!=(t=null==z?void 0:z.activeConversationId)?t:null}),L=F.models,U=F.model,K=F.setModel,$=F.composerMode,Z=F.setComposerMode,G=F.sendPins,Q=o.useMemo(()=>{var e;return{workspaceId:E,conversationId:null!=(e=null==z?void 0:z.activeConversationId)?e:void 0,liveUsage:null==z?void 0:z.lastUsage}},[E,null==z?void 0:z.activeConversationId,null==z?void 0:z.lastUsage]),X=o.useCallback((e,t)=>{var r,a=e.trim();if(a&&z){var s=function(e,t){for(var r=new Set,n=[],a=0,s=[...e,...t];a<s.length;a++){var o=s[a],l="".concat(o.kind,":").concat(o.id);r.has(l)||(r.add(l),n.push(o))}return n}(null!=(r=null==t?void 0:t.references)?r:[],H);z.sendMessage(a,(0,n._)({imageTokens:null==t?void 0:t.imageTokens,documentTokens:null==t?void 0:t.documentTokens,references:s.length?s:void 0},G)),V("")}},[z,H,G]);o.useEffect(()=>{if(r&&z){var e=z.sendMessage,t=t=>{var r=t.title,a=t.option,s=t.text;e(null!=s?s:"".concat(r,": ").concat(a),(0,n._)({},G,H.length?{references:H}:{}))},a=window;return a.__botepVerdict=t,()=>{a.__botepVerdict===t&&delete a.__botepVerdict}}},[r,z,H,G]);var J=o.useCallback(()=>{var e=A.workspaceDomain;if(e){(0,b.n)(H);var t=null==z?void 0:z.activeConversationId;T(t?{to:"/".concat(e,"/console"),search:{c:t}}:{to:"/".concat(e,"/console")})}},[T,A.workspaceDomain,null==z?void 0:z.activeConversationId,H]),Y=!!z&&z.messages.length>0,ee=(null==_?void 0:_.name)||m||(null==D?void 0:D.name),et=o.useMemo(()=>(0,C.b)(D,ee),[D,ee]),er=D?{kind:D.kind,id:D.id,name:ee||D.name,icon:null==_?void 0:_.icon,imageSrc:null==_?void 0:_.imageSrc,modified:null==_?void 0:_.modified}:void 0,en=W(er?"Ask anything":"Ask anything, or @ to scope");return z?(0,s.jsxs)(p.W,{isOpen:r,storageKey:"CONSOLE_SIDEPEEK_WIDTH",defaultWidth:460,minWidth:380,fullHeight:void 0!==I&&I,children:[(0,s.jsx)(v.S,{title:(0,s.jsxs)("span",{className:"flex items-center gap-2",children:[(0,s.jsx)(d.In,{type:(0,u.qz)("menu.console"),width:"var(--icon-default)",height:"var(--icon-default)",className:"text-primary"}),"Console",m&&(0,s.jsxs)("span",{className:"min-w-0 truncate text-tiny text-muted-foreground",children:["• ",m]})]}),onClose:()=>h(),headerExtras:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(S,{icon:"action.add",label:"New chat",onClick:z.newChat}),(0,s.jsx)(S,{icon:"action.arrowUpRight",label:"Open in Console",onClick:J})]})}),(0,s.jsxs)("div",{className:"flex min-h-0 flex-1 flex-col overflow-hidden",children:[(0,s.jsx)("div",{className:"min-h-0 flex-1 overflow-y-auto",children:Y&&(0,s.jsx)(j.o,{messages:z.messages,streamingId:z.streamingId,working:z.working,retrying:z.retrying,activeArtifact:z.activeArtifact,onOpenArtifact:J})}),(0,s.jsxs)("div",{className:"shrink-0",children:[!Y&&et.length>0&&(0,s.jsx)("div",{className:"max-h-[240px] overflow-y-auto",children:(0,s.jsx)(C.S,{items:et,onPick:e=>X(e)})}),(0,s.jsx)("div",{className:"border-t border-border px-3 pb-3 pt-2",children:(0,s.jsx)(o.Suspense,{fallback:null,children:(0,s.jsx)(N,{value:B,onValueChange:V,placeholder:en,skills:w.x,models:L,model:U,onModelChange:K,mode:$,onModeChange:Z,onSubmit:X,isStreaming:!!z.streamingId,onStop:z.cancelTurn,queuedCount:z.queuedCount,references:R,workspaceLabel:null==O?void 0:O.workspace_name,workspaceLogo:null==O?void 0:O.workspace_logo,activeArtifact:null,selectedBlock:null,voiceChat:null,usage:Q,lockedContext:er,hideWorkspacePicker:!!er,maxR
1ows:6})})})]})]})]}):null}function S(e){var t=e.icon,r=e.label,n=e.onClick;return(0,s.jsxs)(h.m_,{children:[(0,s.jsx)(h.k$,{asChild:!0,children:(0,s.jsx)("button",{type:"button","aria-label":r,onClick:n,className:"flex size-7 items-center justify-center rounded-[var(--radius-icon)] text-muted-foreground hover:bg-state-hover hover:text-foreground",children:(0,s.jsx)(d.In,{type:(0,u.qz)(t),width:16,height:16})})}),(0,s.jsx)(m.ZI,{children:(0,s.jsx)("span",{className:"text-tiny font-medium",children:r})})]})}},26385(e,t,r){r.d(t,{q:()=>s});var n=r(53014),a=r(51649);function s(e,t,r){var s,o,l=null==(s=null==r?void 0:r.enabled)||s,i=null!=(o=null==r?void 0:r.threshold)?o:24,c=(0,n._)((0,a.useState)(!0),2),d=c[0],u=c[1],h=(0,a.useCallback)(e=>{var t=e.currentTarget;u(function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:24;return t-e-r<n}(t.scrollTop,t.scrollHeight,t.clientHeight,i))},[i]);return(0,a.useEffect)(()=>{if(l&&d){var t=e.current;t&&(t.scrollTop=t.scrollHeight)}},[l,d,t,e]),{pinned:d,onScroll:h,scrollToBottom:(0,a.useCallback)(()=>{var t=e.current;t&&(t.scrollTop=t.scrollHeight),u(!0)},[e])}}},27548(e,t,r){r.d(t,{S:()=>s,b:()=>a});var n=r(71178);function a(e,t){var r=null==t?void 0:t.trim(),n=(null!=t?t:"").toLowerCase();return(null==e?void 0:e.kind)==="storefront"?["Summarize ".concat(r||"this storefront","'s ad performance this week"),"Which campaigns here are underpacing or overspending?","Why did ROAS change versus last week?","Where is there budget headroom to scale?","Draft a weekly performance recap I can share"]:(null==e?void 0:e.kind)==="campaign"?["How is ".concat(r||"this campaign"," tracking against target?"),"What changed in the last 7 days, and why?","Which keywords are wasting spend?","Suggest bid and budget moves to lift ROAS","Draft a status update for this campaign"]:(null==e?void 0:e.kind)==="marketplace"?["Summarize ".concat(r||"this marketplace"," ad performance this week"),"Top and bottom storefronts by Ads GMV","Where is spend growing fastest?","Which storefronts are off-pace versus target?","Where should I shift budget for the best return?"]:/keyword/.test(n)?["Which keywords are wasting spend?","Find keywords with high spend but low ROAS","Suggest bids for my top converting keywords","What new keywords should I add?","Summarize keyword performance this week"]:/placement/.test(n)?["Which placements drive the best ROAS?","Where am I overspending on placements?","Suggest placement bid adjustments","Compare placement performance week over week","Summarize placement performance"]:/product|sku/.test(n)?["Which products have the best ad ROAS?","Find products with high spend but low return","Which products should I push harder?","Flag products losing momentum","Summarize product ad performance"]:/ad object|creative|\bads?\b/.test(n)?["Which ad objects are underperforming?","What changed across these ads this week?","Flag ads that stopped delivering","Suggest budget moves across ad objects","Summarize ad object performance"]:/campaign/.test(n)?["Which campaigns are underpacing or overspending?","What changed across my campaigns this week?","Where is there budget headroom to scale?","Suggest bid and budget moves to lift ROAS","Draft a weekly campaign performance recap"]:/storefront|portfolio|shop/.test(n)?["Top and bottom storefronts by Ads GMV","Which storefronts are off-pace versus target?","Where is spend growing fastest?","Where should I shift budget for the best return?","Draft a storefront performance recap"]:["Summarize what this page shows","What stands out or looks off this week?","Where are the biggest week-over-week changes?","What should I act on first?","Draft a short performance summary I can share"]}function s(e){var t=e.items,r=e.onPick;return 0===t.length?null:(0,n.jsx)("div",{className:"flex flex-col gap-0.5 p-2",children:t.slice(0,5).map(e=>(0,n.jsx)("button",{type:"button",onClick:()=>r(e),className:"flex items-center rounded-[var(--radius-menu-item)] px-3 py-1.5 text-left text-sm text-muted-foreground hover:bg-state-hover hover:text-foreground",children:(0,n.jsx)("span",{className:"min-w-0 truncate",children:e})},e))})}},66284(e,t,r){r.d(t,{o:()=>h});var n=r(71178),a=r(51649),s=r(89745),o=r(64018),l=r(39480),i=r(23193),c=r(2746),d=r(26385),u=r(88105);function h(e){var t=e.messages,r=e.streamingId,c=e.working,u=e.retrying,h=e.activeArtifact,p=e.onOpenArtifact,v=a.useRef(null),g=t.length?t[t.length-1].content.length:0,f=(0,d.q)(v,"".concat(t.length,":").concat(g,":").concat(null!=r?r:"",":").concat(c),{enabled:ff.chat_scroll_ux});a.useEffect(()=>{if(!ff.chat_scroll_ux){var e=v.current;e&&(e.scrollTop=e.scrollHeight)}},[t.length,g,r,c]);var x=a.useMemo(()=>{for(var e=t.length-1;e>=0;e-=1)if("assistant"===t[e].role)return t[e].id;return null},[t]);return 0===t.length?(0,n.jsxs)("div",{className:"flex flex-1 flex-col items-center justify-center gap-2 px-6 text-center",children:[(0,n.jsx)(o.In,{type:(0,l.qz)("menu.console"),width:22,height:22,className:"text-muted-foreground
1/50"}),(0,n.jsx)("p",{className:"text-xs leading-5 text-muted-foreground/70",children:"Ask Botep about this page. It already knows what you’re looking at."})]}):(0,n.jsxs)("div",{className:"relative flex min-h-0 flex-1 flex-col",children:[(0,n.jsx)("div",{ref:v,onScroll:ff.chat_scroll_ux?f.onScroll:void 0,className:"eip-vertical-scroll flex-1 overflow-y-auto px-3 py-3",children:(0,n.jsxs)("div",{className:"flex flex-col gap-4",children:[t.map(e=>(0,n.jsx)(m,{message:e,isStreaming:r===e.id,suppressVerdicts:e.id!==x},e.id)),(c||u)&&(0,n.jsx)("p",{className:"px-1 text-[length:var(--text-chat-meta)] text-muted-foreground/70",children:u?"Retrying…":"Still working…"}),h&&(0,n.jsxs)("button",{type:"button",onClick:p,className:(0,s.cn)("group flex items-center gap-2 rounded-[var(--radius-card)] border border-card-edge bg-card","px-3 py-2 text-left transition-colors hover:border-primary/40 hover:bg-state-hover"),children:[(0,n.jsx)(o.In,{type:(0,l.qz)("menu.campaignDetails"),width:"var(--icon-default)",height:"var(--icon-default)",className:"shrink-0 text-primary"}),(0,n.jsxs)("span",{className:"min-w-0 flex-1",children:[(0,n.jsx)("span",{className:"block truncate text-xs font-medium text-foreground",children:h.title}),(0,n.jsx)("span",{className:"block text-tiny text-muted-foreground",children:"Open in Console to view"})]}),(0,n.jsx)(o.In,{type:(0,l.qz)("action.arrowUpRight"),width:14,height:14,className:"shrink-0 text-muted-foreground group-hover:text-primary"})]})]})}),ff.chat_scroll_ux&&!f.pinned&&(0,n.jsx)(i.c,{onClick:f.scrollToBottom})]})}var m=a.memo(function(e){var t=e.message,r=e.isStreaming,a=e.suppressVerdicts;return"user"===t.role?(0,n.jsx)("div",{className:"chat-user-bubble ml-auto max-w-[85%] whitespace-pre-wrap rounded-md bg-primary px-3 py-2 text-[length:var(--text-chat-body)] text-primary-foreground",children:t.content}):(0,n.jsxs)("div",{className:"mr-auto w-full max-w-full text-[length:var(--text-chat-body)] text-foreground",children:[(0,n.jsx)(c.oz,{source:t.content,isStreaming:r,suppressVerdicts:a,copyableBlocks:!0}),!r&&null!=t.ttlMs&&(0,n.jsx)(u.I,{ms:t.ttlMs,traceId:t.ttlTraceId,className:"mt-0.5 block text-[length:var(--text-chat-meta)] text-muted-foreground/70",title:"Time from send to the last byte of this answer"})]})})}}}}]);

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.