1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[738],{20738:(e,t,a)=>{a.r(t),a.d(t,{__rspack_esm_id:()=>r,__rspack_esm_ids:()=>n,__webpack_modules__:()=>o});let r="696",n=["696"],o={85777(e,t,a){a.d(t,{$m:()=>v,Eq:()=>h});var r=a(71893),n=a(55456),o=a(18542),s=a(53014),l=a(71178),i=a(51649),d=a(8758),c=a(87),u=a(64018),m=a(39480),p=a(89745),h=e=>{var t=e.title,a=e.defaultValue,r=e.children,n=e.defaultOpen,o=void 0!==n&&n,d=e.accordionClassName,h=e.accordionTriggerClassName,x=e.accordionContentClassName,g=e.accordionItemClassName,b=e.onChange,f=e.iconColor,y=e.accordionTriggerContainerClassName,w=(0,s._)(i.useState(o?a:""),2),_=w[0],k=w[1];i.useEffect(()=>{b&&k(o?a:"")},[o,b]);var j=_===a;return(0,l.jsx)(c.nD,{type:"single",collapsible:!0,className:(0,p.cn)("px-2",d),value:_,children:(0,l.jsxs)(c.As,{value:a,className:g,children:[(0,l.jsx)(v,{className:h,onClick:()=>{b?b(_!==a):k(e=>e?"":a)},children:(0,l.jsx)("div",{className:"flex items-center justify-between w-full relative",children:(0,l.jsxs)("div",{className:(0,p.cn)("flex items-center gap-2 text-foreground",y),children:[(0,l.jsx)("span",{className:"inline-flex items-center",children:(0,l.jsx)(u.In,{type:(0,m.qz)(j?"nav.dropdown":"nav.forward"),size:"var(--icon-default)",className:void 0===f?"text-foreground":f})}),(0,l.jsx)("div",{className:"flex items-center cursor-default",children:"string"==typeof t?(0,l.jsx)("span",{className:"text-medium font-[number:var(--weight-section-title)] leading-8 overflow-hidden whitespace-nowrap text-ellipsis title",children:t}):t})]})})}),(0,l.jsx)(c.ub,{className:(0,p.cn)("pb-2",x),children:r})]})})},v=e=>{var t=e.className,a=e.children,s=(0,o._)(e,["className","children"]);return(0,l.jsx)(d.Header,{className:"flex",children:(0,l.jsx)(d.Trigger,(0,n._)((0,r._)({"data-slot":"accordion-trigger",className:(0,p.cn)("flex flex-1 items-center justify-between py-2 font-medium transition-[color,background-color,border-color,opacity,box-shadow,transform] [&[data-state=open]>svg]:rotate-180",t)},s),{children:a}))})}},83509(e,t,a){a.d(t,{DE:()=>o,ZP:()=>i,si:()=>s,yc:()=>l});var r=a(71178);a(51649);var n=a(89745),o="relative flex w-full select-none items-center gap-3 rounded-[var(--radius-menu-item)] px-2 py-1.5 text-left transition-colors",s={"--color-eo-gray":"color-mix(in srgb, var(--color-muted-foreground) 80%, transparent)"},l=92,i=e=>{var t=e.columns,a=e.interactive,o=e.className,s=e.role,l=e.tabIndex,i=e.onClick,d=e.onKeyDown,c=e.children;return(0,r.jsx)("div",{role:s,tabIndex:l,onClick:i,onKeyDown:d,className:(0,n.cn)("grid items-center gap-x-2","rounded-[var(--radius-input)] px-2 py-1.5 transition-colors duration-(--transition-duration-micro)",a&&"cursor-default hover:bg-state-hover",t,o),children:c})}},71302(e,t,a){a.d(t,{dU:()=>g});var r=a(71893),n=a(71178),o=a(2543),s=a(51649),l=a(95093),i=a.n(l),d=a(23741),c=a(93164),u=a(17493),m=a(59414),p=a(16384),h=a(43614),v=(0,c.C)("block:etable"),x=["tableParams"];function g(e){var t=e.nodeData,a=e.systemConfig,l=e.addons,c=e.backboneRef,h=e.lockedFilters,g=new Proxy(new URLSearchParams(String(window.location.search).replace(/.+(?=\?)/,"")),{get:(e,t)=>e.get(t)}).v,b=s.default.useContext(d.cn),f=s.default.useRef(i()().valueOf()),y=s.default.useCallback(e=>{v("handlechangeconfig",e);var a=(0,o.omit)(e,x);x.forEach(e=>{a[e]=void 0}),window.requestAnimationFrame(()=>{b.onUpdateCustomAttributes(t,a)})},[t]),w=(0,r._)({blockEid:t.blockEid,blockTag:(0,o.get)(t,"tag","")},(0,o.get)(t,"customAttributes",{})),_=(0,m.Kl)({customConfig:w,systemConfig:a,lastUpdated:f,blockEid:t.blockEid,addons:void 0===l?{}:l,queryView:g}),k=_.config,j=_.linkedObjects;if(null==h?void 0:h.length){var N=k.addons=null!=(T=k.addons)?T:{},S=N["datasource.getRowsParams"];N["datasource.getRowsParams"]=(e,t,a)=>{var r=e.params,n=S?S({params:r},t,a):r,o=h.map(e=>{var t,a;return{dataType:null!=(t=e.dataType)?t:"string",field:e.field,operator:null!=(a=e.operator)?a:"is",value:e.value}});return n.filter?n.filter.filters.push(...o):n.filter={combinator:"AND",filters:o},n};var C=N["get.table.context"],A={},E=!0,D=!1,M=void 0;try{for(var T,I,R=h[Symbol.iterator]();!(E=(I=R.next()).done);E=!0){var O=I.value;A[O.field]=O.value}}catch(e){D=!0,M=e}finally{try{E||null==R.return||R.return()}finally{if(D)throw M}}N["get.table.context"]=function(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return(0,r._)({},C?C(...t):{},A)}}return(0,n.jsx)(p.D,{blockEid:t.blockEid,config:k,changeConfiguration:y,tableBackboneHook:u.z,linkedObjects:j,backboneRef:void 0===c?null:c})}h.b5,h.Xt.lg.default},47765(e,t,a){var r=a(71893),n=a(55456),o=a(71178),s=a(51649),l=a(64852),i=a(2543),d=a(2520),c=a.n(d),u=a(42041);class m extends s.Component{static getDerivedStateFromError(e){return{hasError:!0}}componentDidCatch(e,t){console.log(e,t)}render(){return this.state.hasError?(0,o.jsx)("span",{children:"Something went wrong."}):this.props.children}constructor(e){super(e),this.state={hasError:!1}}}t.A=e=>
1{var t=e.data,a=e.chartPeriod,d=e.metricDetail,p=e.currency,h=e.height,v=(0,i.get)(t,["datasets"],[]).reduce((e,t)=>(e[t.yAxisID]?(e[t.yAxisID].min=Math.min(t.min,e[t.yAxisID].min),e[t.yAxisID].max=Math.max(t.max,e[t.yAxisID].max)):e[t.yAxisID]={display:!1,grid:{display:!1,drawBorder:!1},min:t.min,max:t.max},e),{}),x=s.useMemo(()=>({responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},scales:(0,n._)((0,r._)({},v),{xAxes:{display:!1,grid:{display:!1,drawBorder:!1}}}),layout:{padding:{left:0,right:0,top:2,bottom:0}},plugins:{legend:{display:!1},tooltip:{enabled:!1,position:"nearest",external:e=>a?((e,t)=>{var a=e.chart,r=e.tooltip,n=(e=>{var t="cell-elasticity-chart-tooltip",a=document.getElementById(t);if(!a){(a=document.createElement("div")).id=t,a.style.background="var(--popover)",a.style.borderRadius="var(--radius-popover)",a.style.color="var(--foreground)",a.style.opacity="1",a.style.pointerEvents="none",a.style.position="fixed",a.style.zIndex="10001",a.style.transform="translate(-50%, 0)",a.style.transition="all .1s ease",a.style.boxShadow="var(--epsilo-tooltip-box-shadow)",a.style.padding="6px 8px";var r=document.createElement("table");r.style.margin="0px",r.style.width="200px",a.appendChild(r),document.body.appendChild(a)}return a})(0);if(0===r.opacity){n.style.opacity=0;return}if(r.body){var o=r.title||[],s=r.body.map(e=>e.lines),l=0;s.forEach(e=>{l+=(0,i.get)(e,[0,"value"],0)});var d=document.createElement("thead");o.forEach(e=>{var t=document.createElement("tr");t.style.borderWidth="0",t.className="headerRow";var a=document.createElement("th");a.style.borderWidth="0";var r=document.createTextNode(e);a.appendChild(r),t.appendChild(a),d.appendChild(t)});var c=document.createElement("tbody");s.forEach((e,t)=>{var a=document.createElement("tr");a.className="legendRow";var n=(0,i.get)(e,[0,"metric"],""),o=(0,i.get)(e,[0,"value","tooltipLabel"],0),s=(0,i.get)(r,["labelColors",t,"borderColor"],"");a.innerHTML='\n <td class="legendLine">\n <span class="legendIcon" style="background: '.concat(s,"; border-color: ").concat(s,';"></span>\n <div class="content">\n <div class="label">').concat(n,'</div>\n <div class="value">').concat(o,"</div>\n </div>\n </td>\n "),c.appendChild(a)});for(var u=n.querySelector("table");u.firstChild;)u.firstChild.remove();u.className="tableTooltip",u.appendChild(d),u.appendChild(c)}var m=e.chart.canvas.getBoundingClientRect(),p=a.canvas;p.offsetLeft,p.offsetTop,p.offsetHeight;var h=n.getBoundingClientRect().width;n.style.opacity="1";var v=m.left+110+r.caretX;n.style.left=(v+h/2+12>document.body.clientWidth?v-h-12:v)+"px",n.style.font=r.options.bodyFont.string,n.style.padding="6px 8px";var x=n.getBoundingClientRect().height||80,g=window.innerHeight,b=m.top+r.caretY-x-8;b<0&&(b=m.top+r.caretY+12),b+x>g&&(b=g-x-8),n.style.top=b+"px"})(e,0):null,callbacks:{label(e){var t,a,r,n;return{metric:(null==(t=e.dataset)?void 0:t.customMetric)?null==(a=e.dataset)?void 0:a.customMetric:null==d||null==(r=d[null==(n=e.raw)?void 0:n.metric])?void 0:r.label_raw,value:e.raw,currency:p}}}}}}),[a]),g=(0,l.Ay)(t,e=>{t.datasets.forEach((t,a)=>{e.datasets[a].segment={borderDash:e=>e.p0.skip||e.p1.skip?[2,2]:void 0},"area"===t.chartStyle&&(e.datasets[a].fill="start",e.datasets[a].backgroundColor=c()(t.borderColor).lightness(90).fade(.2).rgb().string())})});return t.datasets&&0!==t.datasets.length?(0,o.jsx)("div",{children:(0,o.jsx)(m,{children:(0,o.jsx)(u.N1,(0,n._)((0,r._)({},h?{height:h}:{}),{width:"100%",data:g,options:x}))})}):(0,o.jsx)("div",{width:"100%"})}},71376(e,t,a){a.d(t,{GU:()=>p,m8:()=>h});var r=a(71893),n=a(55456),o=a(51649),s=a(2543),l=a(97286),i=a(43614),d=a(3558),c=a(82083),u=a(8178),m=e=>{var t;return null==(t=(0,s.get)(e,["configuration"],[]).find(e=>e.key===i.DS))?void 0:t.value},p=(e,t)=>{if(e.category!==i.fI)return e;var a,o=m(e),s={};return(null!=(a=e.keepFields)?a:[]).forEach(t=>{s[t]=e[t]}),(0,d.A)((0,n._)((0,r._)({},e,o?null==t?void 0:t[o]:void 0,s),{__gateHidden:(0,u.q)(e,o,t),rawId:e.id}))},h=e=>{var t=e.actions,a=(0,c.L)().getSystemActionsByIds,r=o.useMemo(()=>Object.values(t).reduce((e,t)=>
1(t.forEach(t=>{if(t.category===i.fI){var a=m(t);a&&(e=[...new Set([...e,a])])}}),e),[]),[t]),n=(0,l.I)({queryKey:["block-usage",JSON.stringify(r)],queryFn:()=>a(r).then(e=>{var t;return e.success&&e.data&&Array.isArray(e.data)&&(null==(t=(null==e?void 0:e.data)||[])?void 0:t.length)!==0?e.data.reduce((e,t)=>(e[t.id]=t,e),{}):{}}).catch(()=>({})),enabled:!!r.length,staleTime:36e5,gcTime:36e5}).data;return{blockUsage:n,transformSystemAction:e=>n?p(e,n):e}}},58581(e,t,a){a.d(t,{On:()=>p,jj:()=>m});var r=a(41374),n=a(51735),o=a(51649),s=a(97286),l=a(10158),i=a(64603),d=e=>!e.deactivated_at&&"accepted"===e.state,c=e=>({label:e.name||e.email,value:e.email,sublabel:e.email}),u=e=>(null!=e?e:[]).filter(d).map(c).filter(e=>!!e.value),m=e=>(0,r._)(function(){var t;return(0,n._)(this,function(a){switch(a.label){case 0:return[4,(0,i.uU)(e,"active")];case 1:return[2,u((null==(t=a.sent())?void 0:t.success)&&Array.isArray(t.data)?t.data:[])]}})})();function p(){var e=(0,l.h)().currentWorkspace,t=null==e?void 0:e.workspace_uid,a=(0,s.I)({queryKey:["workspaceMembers",null==e?void 0:e.workspace_id,"active"],queryFn:()=>(0,i.uU)(t,"active"),enabled:!!t});return{members:o.useMemo(()=>{var e=a.data;return u((null==e?void 0:e.success)&&Array.isArray(e.data)?e.data:[])},[a.data]),isLoading:a.isLoading,workspaceUid:t}}},23741(e,t,a){a.d(t,{cn:()=>o});var r=a(51649),n=(0,a(93164).C)("context:NodeEdit"),o=r.default.createContext({onTextChange:(e,t,a)=>{console.info("onTextChange",{contentId:t,contentValue:a})},isEditMode:!1,onUpdateCustomAttributes:(e,t)=>{n("onUpdateCustomAttributes",e,t)}});r.default.createContext({customAttributes:{},builtinEntities:{},onExportData:e=>{console.log("Export file "+e)},onUpdateCustomAttributes:e=>{console.log("Update table custom attributes",e)},onRemove:()=>{console.log("Remove table")},onDuplicate:()=>{console.log("Duplicate table")}}),r.default.createContext({find:e=>null})},66955(e,t,a){a.d(t,{dp:()=>r});var r=[{key:"costToday",label:"Ads spend today",value:18442,previousValue:16280,format:"currency",currency:"SGD",trend:13.3,trendDirection:"up"},{key:"gmvToday",label:"Ads GMV today",value:96260,previousValue:88400,format:"currency",currency:"SGD",trend:8.9,trendDirection:"up"},{key:"roasToday",label:"ROAS today",value:5.22,previousValue:5.43,format:"roas",trend:-3.9,trendDirection:"down"},{key:"adLiveTimePct",label:"Ad live time",value:.72,previousValue:.81,format:"percent",trend:-11.1,trendDirection:"down"},{key:"missedGmvToday",label:"Missed GMV today",value:22540,previousValue:14200,format:"currency",currency:"SGD",trend:58.7,trendDirection:"up"},{key:"ordersToday",label:"Orders today",value:836,previousValue:780,format:"number",trend:7.2,trendDirection:"up"}]},82353(e,t,a){a.d(t,{ConsoleDemo:()=>x});var r=a(71893),n=a(71178);a(51649);var o=a(98590),s=a(33150),l=a(14121),i=a(35267),d=a(31675),c=a(28477),u=a(55969),m=a(54687),p=a(56759),h=a(38938),v=a(91983);function x(){var e=(0,o.z)().search,t=(0,h.qC)(e,"no_accounts"),a=(0,h.qC)(e,"mock_chat"),x=(0,h.qC)(e,"wide")?"Ask anything about your campaigns":void 0,g=!t&&d.STOREFRONTS_ROWS.length>0,b=(0,h.H2)(e,"c"),f=(0,l.b)(),y=(0,i.KB)(),w=(0,m.Lt)(),_=!a&&"open"===f.connectionState&&f.history.length>0;return(0,n.jsx)(s._H,{workspaceId:"one",placeholder:x,userName:(0,v.vN)(),workspaceLabel:(0,v.n)(),workspaceLogo:(0,v.Md)(),hasAdAccounts:g,initialConversationId:b,chatDriver:_?f:null!=y?y:w,workspaceTemplates:c.e,renderArtifact:e=>(0,n.jsx)(u.E,(0,r._)({},e)),tryConsoleHref:p.s,bookMeetingHref:p.S})}},56759(e,t,a){a.d(t,{S:()=>n,s:()=>r});var r="https://one.epsilo.ai/auth/google",n="https://cal.com/team/epsilo/gtm-meet"},91983(e,t,a){a.d(t,{Md:()=>i,n:()=>o,vN:()=>l});var r=a(81549),n=a(95431);function o(){return"Boutique agency"}var s=n.JE.hanoi;function l(){var e,t=window.__epsilo_demo_country,a=(0,r.X1)(t);return null!=(e=a?(0,n.PZ)(a.slug):null)?e:"Linh"}function i(){var e=window.__epsilo_demo_country,t=(0,r.X1)(e);return t?(0,n.$w)(t.slug):s}},28477(e,t,a){a.d(t,{e:()=>n});var r=Date.now(),n=[{id:"pulse-daily-roas",title:"Portfolio: ROAS Daily",description:"Blended ROAS by marketplace with the campaigns dragging it down.",spec:{component:"kpi-grid",title:"Portfolio: ROAS Daily",headline:"Blended ROAS 3.2\xd7, 3 Shopee campaigns below 1.5\xd7.",takeaways:["Shopee 3.4\xd7 \xb7 Lazada 2.9\xd7 \xb7 TikTok Shop 3.1\xd7","Lumora Official the biggest drag (1.18\xd7)."]},source_prompt:"Show blended ROAS by marketplace today and flag the campaigns below 1.5\xd7.",created_by:"[email protected]",created_by_name:"Marcus",created_by_company:"Epsilo",created_at:r-18144e5,updated_at:r-228e4,last_resolved_at:r-228e4,refreshable:!0},{id:"pulse-spend-pacing",title:"Portfolio: Spend Pacing",description:"Budget burn vs plan by storefront, with caps that will hit before EOD.",spec:{component:"bar",title:"Portfolio: Spend Pacing",headline:"2 storefronts pacing to cap by 2pm, ฿18K at risk.",takeaways:["Verdane PH at 71% of daily budget by noon.","Shift ฿6K/day to recover ~à¸
1¿41K GMV."]},source_prompt:"How is spend pacing against plan across storefronts right now?",created_by:"[email protected]",created_by_name:"Marcus",created_by_company:"Epsilo",created_at:r-12096e5,updated_at:r-72e5,last_resolved_at:r-72e5,refreshable:!0},{id:"pulse-shopee-movers",title:"SEA: Top Movers Weekly",description:"Biggest GMV gainers and decliners across SEA, week over week.",spec:{component:"table",title:"SEA: Top Movers Weekly",headline:"GMV Max +18% w/w; 2 hero SKUs ran out of budget.",takeaways:["Hydrating Cleanser +34% w/w.","Sunscreen SPF50 out of budget ThuâFri."]},source_prompt:"Show the top 10 GMV movers across SEA this week vs last week.",created_by:"[email protected]",created_by_name:"Marcus",created_by_company:"Epsilo",created_at:r-7776e5,updated_at:r-864e5,last_resolved_at:r-864e5,refreshable:!0},{id:"pulse-keyword-harvest",title:"Search: Term Harvest",description:"High-converting search terms not yet promoted to exact-match keywords.",spec:{component:"table",title:"Search: Term Harvest",headline:"12 converting terms ready to graduate to exact match.",takeaways:['"gentle cleanser sensitive skin", 9 orders, not a keyword yet.']}
1,source_prompt:"Find converting search terms that are not yet exact-match keywords.",created_by:"[email protected]",created_by_name:"Maya",created_by_company:"Epsilo",created_at:r-432e6,updated_at:r-2592e5,last_resolved_at:r-2592e5,refreshable:!0},{id:"pulse-orchestration-lift",title:"Portfolio: Orchestration Lift",description:"Managed vs unmanaged ROAS at equal spend, the orchestration premium.",spec:{component:"bar",title:"Portfolio: Orchestration Lift",headline:"Orchestrated storefronts return +32% ROAS at the same spend.",takeaways:["Managed 2.6\xd7 vs unmanaged 2.0\xd7 across 14 storefronts.","4 storefronts not yet orchestrated, the biggest opportunity left."]},source_prompt:"Compare ROAS for storefronts on budget orchestration vs not, at equal spend, this month, and show the incremental GMV.",created_by:"[email protected]",created_by_name:"Marcus",created_by_company:"Epsilo",created_at:r-24192e5,updated_at:r-864e5,last_resolved_at:r-864e5,refreshable:!0},{id:"pulse-first-7-days",title:"Launch: First 7 Days",description:"Are my newly connected storefronts live and clearing 2.0\xd7 ROAS yet?",spec:{component:"table",title:"Launch: First 7 Days",headline:"2 of 3 newly connected storefronts already profitable; one needs a look.",takeaways:["Verdane PH live within a day, 2.4\xd7 ROAS.","Veluma ID not yet at 2.0\xd7, trim the bottom keywords."]},source_prompt:"For my newly connected storefronts, show days live, spend so far, current ROAS, and flag any not yet at 2.0\xd7.",created_by:"[email protected]",created_by_name:"Maya",created_by_company:"Epsilo",created_at:r-5184e5,updated_at:r-108e5,last_resolved_at:r-108e5,refreshable:!0}]},55969(e,t,a){a.d(t,{E:()=>y});var r=a(71178);a(55858);var n=a(51649),o=a(64018),s=a(24402),l=a(65511),i=a(89745),d=a(71302),c=a(47765),u=a(66955),m=a(55413),p=a(68222),h=a(22966),v=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],x=[62e3,71e3,88e3,84e3,95e3,102e3,96260],g=[11200,13e3,15400,14100,16800,18200,18442],b={labels:v,datasets:[{label:"GMV",data:x.map((e,t)=>({x:v[t],y:e,metric:"gmv",tooltipLabel:e.toLocaleString()})),borderColor:"hsl(214 100% 50%)",backgroundColor:"hsl(214 100% 50%)",borderWidth:2,pointRadius:3,pointHoverRadius:4,yAxisID:"left",min:0,max:1.1*Math.max(...x),chartStyle:"area",tension:.35},{label:"Spend",data:g.map((e,t)=>({x:v[t],y:e,metric:"spend",tooltipLabel:e.toLocaleString()})),borderColor:"hsl(0 0% 60%)",backgroundColor:"hsl(0 0% 60%)",borderWidth:1.5,borderDash:[3,3],pointRadius:2,yAxisID:"right",min:0,max:1.5*Math.max(...g),tension:.35}]};function f(e){var t=e.metric,a="up"===t.trendDirection?"text-[#0BA373]":"down"===t.trendDirection?"text-destructive":"text-muted-foreground",n="up"===t.trendDirection?"ic/tabler:arrow-up":"down"===t.trendDirection?"ic/tabler:arrow-down":"ic/tabler:minus";return(0,r.jsxs)("div",{className:"flex flex-col gap-1 rounded-lg border border-border bg-background p-3",children:[(0,r.jsx)("span",{className:"truncate text-[length:var(--text-list-secondary)] text-muted-foreground",children:t.label}),(0,r.jsx)("span",{className:"truncate text-[length:var(--text-lg)] font-[number:var(--weight-cell-value)] tabular-nums text-foreground",children:function(e){var t=e.value,a=e.format,r=e.currency;switch(a){case"currency":var n=r?" ".concat(r):"";if(t>=1e6)return"".concat((t/1e6).toFixed(1).replace(/\.0$/,""),"M").concat(n);if(t>=1e3)return"".concat(new Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(t)).concat(n);return"".concat(t.toFixed(2)).concat(n);case"roas":return"".concat(t.toFixed(2),"x");case"percent":return"".concat((100*t).toFixed(1),"%");case"number":return new Intl.NumberFormat("en-US").format(t);default:return String(t)}}(t)}),(0,r.jsxs)("div",{className:(0,i.cn)("flex items-center gap-1 text-[length:var(--text-caption)] font-[number:var(--weight-badge)] tabular-nums",a),children:[(0,r.jsx)(o.In,{type:n,size:12}),(0,r.jsxs)("span",{children:[t.trend>0?"+":"",t.trend,"%"]})]})]})}function y(e){var t=e.prompt,a=(0,h.f)({handlers:p.Y9,mockServiceWorkerUrl:"/mockServiceWorker.js"}),i=n.useMemo(()=>{var e;return{nodeData:{blockEid:"zD3ZaC-5-SCPHd9_G92HW",blockType:"richTable",customAttributes:m.CAMPAIGNS_PAGE_SYSTEM_BLOCK},systemConfig:{customAttributes:m.CAMPAIGNS_PAGE_SYSTEM_BLOCK,system:null!=(e=m.CAMPAIGNS_PAGE_SYSTEM_BLOCK.system)?e:{}}}},[]),v=i.nodeData,x=i.systemConfig;return a?(0,r.jsx)("div",{className:"flex flex-1 flex-col overflow-hidden",children:(0,r.jsxs)(l.tU,{defaultValue:"overview",className:"flex h-full flex-col",children:[(0,r.jsxs)("div",{className:"shrink-0 px-4 pt-3",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsxs)("div",{className:"flex flex-col gap-0.5",children:[(0,r.jsx)("span",{className:"text-[length:var(--text-section-label)] uppercase tracking-wide text-muted-foreground",children:"Report \xb7 v1"}),(0,r.jsx)("span",{className:"truncate text-[length:var(--text-list-primary)] font-[number:var(--weight-list-primary)] text-foreground",children:t})]}),(0,r.jsx)("span",{className:"rounded-md bg-eo-info/10 px-2 py-1 text-[length:var(--text-caption)] font-[number:var(--weight-badge)] text-eo-info",children:"Live"})]}),(0,r.jsxs)(l.j7,{className:"mt-3",children:[(0,r.jsxs)(l.Xi,{value:"overview",children:[(0,r.jsx)(o.In,{type:"ic/tabler:layout-dashboard",width:12,height:12}),(0,r.jsx)("span",{children:"Overview"})]}),(0,r.jsxs)(l.Xi,{value:"trend",children:[(0,r.jsx)(o.In,{type:"ic/tabler:chart-line",width:12,height:12}),(0,r.jsx)("span",{children:"Trend"})]}),(0,r.jsxs)(l.Xi,{value:"table",children:[(0,r.jsx)(o.In,{type:"ic/tabler:table",width:12,height:12}),(0,r.jsx)("span",{children:"Table"})]})]})]}),(0,r.jsx)(l.av,{value:"overview",className:"flex-1 overflow-y-auto px-4 py-4 data-[state=inactive]:hidden",children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)("div",{className:"grid grid-cols-2 gap-2",children:u.dp.slice(0,4).map(e=>(0,r.jsx)(f,{metric:e},e.key))}),(0,r.jsxs)("div",{className:"flex flex-col gap-2 rounded-lg border border-border bg-muted/30 p-4",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)(o.In,{type:"ic/tabler:bulb",width:14,height:14}),(0,r.jsx)("span",{className:"text-[length:var(--text-list-primary)] font-[number:var(--weight-list-primary)] text-foreground",children:"Suggested action"})]}),(0,r.jsxs)("p",{className:"text-[length:var(--text-sm)] leading-relaxed text-foreground
1/90",children:["Rebalance budget away from SKU 4422 and 9817 toward the top quartile. Estimated lift on weekly GMV:"," ",(0,r.jsx)("span",{className:"font-[number:var(--weight-list-primary)] tabular-nums",children:"+12%"}),"."]}),(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsxs)("button",{type:"button",className:"flex h-7 items-center gap-1.5 rounded-md border border-border bg-background px-2 text-[length:var(--text-button-xs)] font-[number:var(--weight-button)] text-foreground hover:bg-muted",children:[(0,r.jsx)(o.In,{type:"ic/tabler:player-play",width:12,height:12}),(0,r.jsx)("span",{children:"Run as automation"})]}),(0,r.jsxs)("button",{type:"button",className:"flex h-7 items-center gap-1.5 rounded-md px-2 text-[length:var(--text-button-xs)] text-muted-foreground hover:bg-muted",children:[(0,r.jsx)(o.In,{type:"ic/tabler:copy",width:12,height:12}),(0,r.jsx)("span",{children:"Copy"})]})]})]})]})}),(0,r.jsx)(l.av,{value:"trend",className:"flex-1 overflow-y-auto px-4 py-4 data-[state=inactive]:hidden",children:(0,r.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsxs)("div",{className:"flex flex-col",children:[(0,r.jsx)("span",{className:"text-[length:var(--text-list-primary)] font-[number:var(--weight-list-primary)] text-foreground",children:"GMV vs spend"}),(0,r.jsx)("span",{className:"text-[length:var(--text-caption)] text-muted-foreground",children:"SGD \xb7 last 7 days"})]}),(0,r.jsxs)("div",{className:"flex items-center gap-3 text-[length:var(--text-caption)]",children:[(0,r.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,r.jsx)("span",{className:"inline-block h-2 w-2 rounded-full bg-eo-info"}),(0,r.jsx)("span",{className:"text-muted-foreground",children:"GMV"})]}),(0,r.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,r.jsx)("span",{className:"inline-block h-2 w-2 rounded-full bg-muted-foreground/70"}),(0,r.jsx)("span",{className:"text-muted-foreground",children:"Spend"})]})]})]}),(0,r.jsx)("div",{className:"h-44 rounded-lg border border-border bg-background p-2",children:(0,r.jsx)(c.A,{data:b,currency:"SGD",height:170})}),(0,r.jsx)("div",{className:"grid grid-cols-3 gap-2",children:u.dp.slice(0,3).map(e=>(0,r.jsx)(f,{metric:e},e.key))})]})}),(0,r.jsxs)(l.av,{value:"table",className:"flex flex-1 flex-col overflow-hidden data-[state=inactive]:hidden",children:[(0,r.jsx)(s.w,{}),(0,r.jsx)("div",{className:"flex-1 overflow-hidden",children:(0,r.jsx)(d.dU,{nodeData:v,systemConfig:x,addons:{}})})]})]})}):(0,r.jsx)("div",{className:"flex flex-1 items-center justify-center px-4 py-10 text-[length:var(--text-caption)] text-muted-foreground",children:"Loading artifactâ¦"})}},90110(e,t,a){a.d(t,{PV:()=>n,vG:()=>s});var r=a(53014),n=e=>!!e&&/\.(mp4|webm|mov|m4v)(\?.*)?$/i.test(e),o=e=>Number.isFinite(e)&&e>=0x5e0be100&&e<=0x83aa7e80?1e3*e:null,s=e=>{var t,a,n,s;return e?null!=(t=null!=(a=(n=/[?&]x-expires=(\d+)/i.exec(e))?o(Number(n[1])):null)?a:(s=/^https?:\/\/v\d+[\w.-]*\.tiktokcdn\.com\/[^/]+\/([0-9a-f]{8})\//i.exec(e))?o(parseInt(s[1],16)):null)?t:(e=>{var t=/[?&]X-Amz-Date=(\d{8})T(\d{6})Z/i.exec(e),a=/[?&]X-Amz-Expires=(\d+)/i.exec(e);if(!t||!a)return null;var n=(0,r._)(t,3),s=n[1],l=n[2],i=Date.parse("".concat(s.slice(0,4),"-").concat(s.slice(4,6),"-").concat(s.slice(6,8),"T").concat(l.slice(0,2),":").concat(l.slice(2,4),":").concat(l.slice(4,6),"Z"));return Number.isFinite(i)?o(Math.floor(i/1e3)+Number(a[1])):null})(e):null}}}}}]);
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.