1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[51272],{33789:(e,t,r)=>{r.d(t,{p:()=>l});var n=r(95155);r(12115);var o=r(25016);function l(e){let{className:t,type:r,...l}=e,i=null==t?void 0:t.includes("form-field-white-bg");return(0,n.jsx)("input",{type:r,"data-slot":"input",className:(0,o.cn)("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground border-input flex h-9 w-full min-w-0 rounded-md border px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",!i&&"bg-transparent dark:bg-input/30","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",t),...l})}},36639:(e,t,r)=>{r.d(t,{P:()=>m,h:()=>u});var n=r(95155),o=r(12115),l=r(6191),i=r(80534),a=r(89715),s=r(95740),d=r(26983),c=r(54679),p=r(75851);function u(e){let t=new Set(e),r=1;for(;t.has("Generated Report-".concat(r));)r++;return"Generated Report-".concat(r)}function m(e){let{open:t,onOpenChange:r,drafts:i,isLoading:a,activeDraftId:s,onLoad:d,onNew:p}=e,u=(0,o.useMemo)(()=>[...i].sort((e,t)=>t.updatedAt.getTime()-e.updatedAt.getTime()),[i]);return(0,n.jsx)(c.lG,{open:t,onOpenChange:r,children:(0,n.jsxs)(c.Cf,{className:"sm:max-w-3xl max-h-[80vh] flex flex-col",children:[(0,n.jsxs)(c.c7,{children:[(0,n.jsx)(c.L3,{children:"Select a Report Template"}),(0,n.jsx)(c.rr,{children:"Choose a saved draft to load, or start fresh with a blank report."})]}),(0,n.jsxs)("div",{className:"flex-1 overflow-y-auto -mx-6 px-6 pb-2",children:[(0,n.jsxs)("div",{className:"grid grid-cols-2 md:grid-cols-3 gap-3",children:[(0,n.jsx)("button",{onClick:()=>{p(),r(!1)},className:"group flex flex-col rounded-xl border-2 border-dashed border-border/60 hover:border-violet-400/40 bg-muted/20 hover:bg-violet-400/[0.04] transition-all duration-200 overflow-hidden",children:(0,n.jsxs)("div",{className:"flex-1 flex flex-col items-center justify-center py-10 px-4 gap-3",children:[(0,n.jsx)("div",{className:"size-10 rounded-full bg-violet-400/10 border border-violet-400/20 flex items-center justify-center group-hover:bg-violet-400/20 transition-colors",children:(0,n.jsx)(l.A,{className:"size-5 text-violet-500"})}),(0,n.jsxs)("div",{className:"text-center",children:[(0,n.jsx)("p",{className:"text-sm font-medium text-foreground",children:"New Blank Report"}),(0,n.jsx)("p",{className:"text-[11px] text-muted-foreground mt-0.5",children:"Start from scratch"})]})]})}),u.map(e=>(0,n.jsx)(x,{draft:e,isActive:e.id===s,onSelect:()=>{d(e),r(!1)}},e.id))]}),a&&0===i.length&&(0,n.jsx)("div",{className:"flex items-center justify-center py-12",children:(0,n.jsx)("p",{className:"text-sm text-muted-foreground",children:"Loading templates..."})})]})]})})}function x(e){var t,r,o,l,c;let{draft:u,isActive:m,onSelect:x}=e,h=u.config,g=(null!=(o=null==(t=h.chartOrder)?void 0:t.length)?o:0)-(null!=(l=null==(r=h.hiddenChartIds)?void 0:r.length)?l:0),f=Object.keys(null!=(c=h.chartAnalysis)?c:{}).length>0,b=!1!==h.includeSummary;return(0,n.jsxs)("button",{onClick:x,className:"group flex flex-col rounded-xl border overflow-hidden text-left transition-all duration-200 hover:-translate-y-0.5 ".concat(m?"border-violet-400/40 bg-violet-400/[0.06] ring-1 ring-violet-400/20":"border-border/60 bg-card hover:border-violet-400/30 hover:bg-violet-400/[0.02]"),children:[(0,n.jsx)("div",{className:"w-full bg-white dark:bg-card rounded-t-lg overflow-hidden",children:(0,n.jsx)(p.P,{preset:h.theme})}),(0,n.jsxs)("div",{className:"p-3 space-y-2 flex-1",children:[(0,n.jsxs)("div",{className:"flex items-start justify-between gap-2",children:[(0,n.jsx)("p",{className:"text-sm font-medium text-foreground leading-tight line-clamp-2",children:u.name}),m&&(0,n.jsx)("span",{className:"text-[9px] font-semibold text-violet-500 bg-violet-400/10 px-1.5 py-0.5 rounded shrink-0",children:"Active"})]}),(0,n.jsxs)("div",{className:"flex flex-wrap gap-1.5",children:[b&&(0,n.jsxs)("span",{className:"inline-flex items-center gap-1 text-[10px] text-muted-foreground bg-muted/40 px-1.5 py-0.5 rounded",children:[(0,n.jsx)(i.A,{className:"size-2.5"}),"KPIs"]}),g>0&&(0,n.jsxs)("span",{className:"inline-flex items-center gap-1 text-[10px] text-muted-foreground bg-muted/40 px-1.5 py-0.5 rounded",children:[(0,n.jsx)(a.A,{className:"size-2.5"}),g," chart",1!==g?"s":""]}),f&&(0,n.jsxs)("span",{className:"inline-flex items-center gap-1 text-[10px] text-violet-500 bg-violet-400/10 px-1.5 py-0.5 rounded",children:[(0,n.jsx)(s.A,{className:"size-2.5"}),"Analysis"]})]}
1),(0,n.jsxs)("p",{className:"text-[10px] text-muted-foreground/60 flex items-center gap-1",children:[(0,n.jsx)(d.A,{className:"size-2.5"}),function(e){let t=Math.floor((new Date().getTime()-e.getTime())/6e4);if(t<1)return"Just now";if(t<60)return"".concat(t,"m ago");let r=Math.floor(t/60);if(r<24)return"".concat(r,"h ago");let n=Math.floor(r/24);return n<7?"".concat(n,"d ago"):e.toLocaleDateString("en-US",{month:"short",day:"numeric"})}(u.updatedAt)]})]})]})}},67001:(e,t,r)=>{r.d(t,{T:()=>l});var n=r(95155);r(12115);var o=r(25016);function l(e){let{className:t,...r}=e;return(0,n.jsx)("textarea",{"data-slot":"textarea",className:(0,o.cn)("border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",t),...r})}},75851:(e,t,r)=>{r.d(t,{P:()=>c});var n=r(95155),o=r(12115),l=r(56734),i=r(62299);let a=[{label:"Spend",value:"$4,281.63"},{label:"Impressions",value:"312.8K"},{label:"CTR",value:"2.34%"}],s=[...a,{label:"Conversions",value:"847"}],d=a.slice(0,2);function c(e){var t,r,l;let{preset:i}=e,c=4===i.kpiColumns?s:2===i.kpiColumns?d:a,m=null!=(t=i.marginTop)?t:40,x=null!=(r=i.marginBottom)?r:60,h=null!=(l=i.marginHorizontal)?l:40,g=o.useRef(null),[f,b]=o.useState(.15);return o.useEffect(()=>{let e=g.current;if(!e)return;let t=()=>{let t=e.clientWidth;t>0&&b(t/595)};t();let r=new ResizeObserver(t);return r.observe(e),()=>r.disconnect()},[]),(0,n.jsx)("div",{ref:g,className:"w-full overflow-hidden relative",style:{aspectRatio:"595/842"},children:(0,n.jsx)("div",{style:{width:595,height:842,transform:"scale(".concat(f,")"),transformOrigin:"top left",position:"absolute",top:0,left:0},children:i.showCover?(0,n.jsx)(p,{preset:i}):(0,n.jsx)(u,{preset:i,kpis:c,mt:m,mb:x,mh:h})})})}function p(e){let{preset:t}=e;return(0,n.jsx)("div",{style:{width:595,height:842},children:(0,n.jsx)(i.KZ,{theme:t,title:"Lorem Ipsum Analytics Report",orgName:"Acme Corporation",logoUrl:void 0})})}function u(e){let{preset:t,kpis:r,mt:o,mb:a,mh:s}=e;return(0,n.jsxs)("div",{style:{width:595,height:842,background:"#fff",padding:"".concat(o,"px ").concat(s,"px ").concat(a,"px"),fontFamily:(0,l.t)(t.font),display:"flex",flexDirection:"column"},children:[(0,n.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",borderBottom:"1px solid ".concat(t.border),marginBottom:24,paddingBottom:12},children:[(0,n.jsx)("span",{style:{fontSize:10,fontWeight:700,color:t.text},children:"Acme Corporation"}),(0,n.jsx)("span",{style:{fontSize:9,color:t.textLight},children:"Lorem Ipsum Report"})]}),(0,n.jsx)(i.KE,{title:"Executive Summary",theme:t}),(0,n.jsx)(i.ZO,{kpis:r,theme:t}),(0,n.jsxs)("div",{style:{marginTop:16},children:[(0,n.jsx)(i.KE,{title:"Performance Trends",theme:t}),(0,n.jsx)(i.ed,{children:(0,n.jsxs)("div",{style:{marginBottom:20,borderRadius:6,border:"card"===t.chartStyle?"1px solid ".concat(t.border):"none",backgroundColor:"card"===t.chartStyle?t.background:"transparent",padding:16},children:[(0,n.jsx)("p",{style:{fontSize:11,fontWeight:700,color:t.text,marginBottom:12},children:"Spend vs. Impressions"}),(0,n.jsx)("div",{style:{height:120,borderRadius:4,backgroundColor:"".concat(t.accent,"10"),display:"flex",alignItems:"center",justifyContent:"center"},children:(0,n.jsxs)("svg",{viewBox:"0 0 200 48",style:{width:"90%",height:48},preserveAspectRatio:"none",children:[(0,n.jsx)("polyline",{points:"4,38 28,26 52,30 78,14 104,22 130,10 156,18 182,6",fill:"none",stroke:t.accent,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,n.jsx)("polyline",{points:"4,38 28,26 52,30 78,14 104,22 130,10 156,18 182,6 182,46 4,46",fill:t.accent,fillOpacity:"0.08",stroke:"none"}),(0,n.jsx)("polyline",{points:"4,34 28,36 52,28 78,32 104,24 130,28 156,20 182,22",fill:"none",stroke:t.textLight,strokeWidth:"1.5",strokeLinecap:"round",strokeDasharray:"4 3",opacity:"0.35"})]})})]})})]}),(0,n.jsxs)("div",{style:{marginTop:8},children:[(0,n.jsx)(i.KE,{title:"Detailed Breakdown",theme:t}),(0,n.jsx)(m,{preset:t})]}),(0,n.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",borderTop:"1px solid ".concat(t.border),paddingTop:8,marginTop:"auto",fontSize:8,color:t.textLight},children:[(0,n.jsx)("span",{children:"Mar 26, 2026"}),(0,n.jsx)("span",{children:"Page 1"})]})]})}function m(e){let{preset:t}=e,r=[["Mar 18, 2026","$1,420.31","104,218","2.41%"],["Mar 19, 2026","$1,380.09","98,742","2.18%"],["Mar 20, 2026","$1,481.23","109,893","2.52%"]],o="minimal"===t.tableStyle;return(0,n.jsxs)("div",{style:{borderRadius:4,overflow:"hidden",border:o?"none":"1px solid ".concat(t.border)},children:[(0,n.jsx)("div",{style:{display:"flex",padding:"6px 10px",backgroundColor:o?"transparent":t.primary},children:["Date","Spend","Impressions","CTR"].map(e=>(0,n.jsx)("span",{style:{flex:1,fontSize:8,fontWeight:600,color:o?t.textLight:"#fff",textTransform:"uppercase",letterSpacing:"0.04em"},children:e},e))}),r.map((e,o)=>(0,n.jsx)("div",{style:{display:"flex",padding:"5px 10px",borderBottom:o<r.length-1?"1px solid ".concat(t.border):"none",backgroundColor:"striped"===t.tableStyle&&o%2==1?t.background:"transparent"},children:e.map((e,r)=>(0,n.jsx)("span",{style:{flex:1,fontSize:8,color:t.textLight},children:e},r))},o))]})}},81272:(e,t,r)=>{function n(){let e=document.querySelector("[data-paged-engine]");return e?function(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1];let t=e.cloneNode(!0);
1t.querySelectorAll("[data-export-exclude]").forEach(e=>e.remove()),t.querySelectorAll("[data-analysis-placeholder]").forEach(e=>e.remove()),t.querySelectorAll("[data-measurement-area]").forEach(e=>e.remove()),t.querySelectorAll(".ring-2, .ring-1").forEach(e=>{e.classList.remove("ring-2","ring-1","ring-violet-500","ring-violet-300","rounded-md")}),t.querySelectorAll(".shadow-xl, .shadow-lg, .rounded-lg").forEach(e=>{e.classList.remove("shadow-xl","shadow-lg","rounded-lg")}),t.querySelectorAll(".mb-6").forEach(e=>{e.classList.remove("mb-6")});let r=t.getAttribute("class")||"";for(let e of(t.setAttribute("class",r.replace(/space-y-\S+/g,"").replace(/pb-\S+/g,"").replace(/w-\[\S+\]/g,"").replace(/shadow-\S+/g,"").replace(/rounded-\S+/g,"").replace(/relative/g,"").trim()),t.style.cssText="margin:0; padding:0; width:595px;",Array.from(t.querySelectorAll("img")))){let t=e.getAttribute("src");if(!(!t||t.startsWith("data:"))&&e.naturalWidth>0&&e.complete)try{let t=e.naturalWidth,r=e.naturalHeight;if(t>800||r>800){let e=800/Math.max(t,r);t=Math.round(t*e),r=Math.round(r*e)}let n=document.createElement("canvas");n.width=t,n.height=r;let o=n.getContext("2d");if(o){o.drawImage(e,0,0,t,r);let l=t<=64&&r<=64;e.setAttribute("src",n.toDataURL(l?"image/png":"image/jpeg",.85))}}catch(e){}}let n=t.outerHTML,o=[];document.querySelectorAll('link[rel="stylesheet"]').forEach(e=>{let t=e.href;t.includes("fonts.googleapis.com")&&o.push('<link rel="stylesheet" href="'.concat(t,'" />'))});let l=function(){let e=[];for(let t of Array.from(document.styleSheets))try{if(!t.cssRules)continue;for(let r of Array.from(t.cssRules))e.push(r.cssText)}catch(e){}return e.join("\n")}(),i=window.location.origin;return'<!DOCTYPE html>\n<html>\n<head>\n <meta charset="utf-8" />\n '.concat(i?'<base href="'.concat(i,'" />'):"","\n ").concat(o.join("\n "),"\n <style>\n ").concat(l,"\n </style>\n <style>\n ").concat("\n /* Paged mode â each preview page = one PDF page */\n @page { size: 595px 842px; margin: 0; }\n\n html, body {\n margin: 0;\n padding: 0;\n background: white;\n }\n\n [data-preview-page] {\n width: 595px !important;\n height: 842px !important;\n overflow: hidden !important;\n page-break-after: always !important;\n background: white !important;\n position: relative !important;\n box-shadow: none !important;\n border-radius: 0 !important;\n margin: 0 !important;\n }\n [data-preview-page]:last-child {\n page-break-after: auto !important;\n }\n /* Kill any remaining shadows */\n * { box-shadow: none !important; }\n ","\n\n svg { shape-rendering: geometricPrecision; }\n * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }\n .animate-in { animation: none !important; }\n </style>\n</head>\n<body>\n ").concat(n,"\n</body>\n</html>")}(e,"paged"):null}function o(e){let t=n();return t?{...e,snapshotHtml:t}:e}r.d(t,{s:()=>n,H:()=>o})},90235:(e,t,r)=>{r.d(t,{J:()=>i});var n=r(95155);r(12115);var o=r(10489),l=r(25016);function i(e){let{className:t,...r}=e;return(0,n.jsx)(o.b,{"data-slot":"label",className:(0,l.cn)("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",t),...r})}}}]);
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.