1/*! For license information please see 5249.13dc5835.chunk.js.LICENSE.txt */ 2"use strict";(self.webpackChunkknowledge_base_saas=self.webpackChunkknowledge_base_saas||[]).push([[5249],{35249(e,t,a){a.r(t),a.d(t,{default:()=>W});var s=a(89379),r=a(5544),n=a(65043),l=a(92382),o=a(36210),d=a(9463),c=a(38326),i=a(28646),m=a(22024),u=a(56099),x=a(77819),h=a(40614),y=a(41680),g=a(76996),p=a(35087),b=a(72105),f=a(72313),v=a(7104),w=a(33908),j=a(52395),N=a(58147),k=a(96822);const A="America/New_York";function S(e){var t;e.toLocaleString("en-US",{timeZone:A,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",weekday:"short",hour12:!1});const a=new Intl.DateTimeFormat("en-US",{timeZone:A,year:"numeric",month:"numeric",day:"numeric",weekday:"short",hour:"numeric",hour12:!1}).formatToParts(e),s=e=>{var t;return null===(t=a.find(t=>t.type===e))||void 0===t?void 0:t.value};return{year:parseInt(s("year"),10),month:parseInt(s("month"),10),day:parseInt(s("day"),10),dayOfWeek:null!==(t={Sun:0,Mon:1,Tue:2,Wed:3,Thu:4,Fri:5,Sat:6}[s("weekday")])&&void 0!==t?t:0,hour:parseInt(s("hour"),10)}}function C(e,t,a){const s=new Date(Date.UTC(e,t-1,a,5,0,0,0)),r=S(s);if(r.year===e&&r.month===t&&r.day===a&&0===r.hour)return s;const n=new Date(Date.UTC(e,t-1,a,4,0,0,0)),l=S(n);if(l.year===e&&l.month===t&&l.day===a&&0===l.hour)return n;for(let o=3;o<=6;o++){const s=new Date(Date.UTC(e,t-1,a,o,0,0,0)),r=S(s);if(r.year===e&&r.month===t&&r.day===a&&0===r.hour)return s}return s}function D(){const e=S(arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date),t=e.day-e.dayOfWeek,a=S(new Date(Date.UTC(e.year,e.month-1,t,12,0,0))),s=C(a.year,a.month,a.day),r=S(new Date(Date.UTC(a.year,a.month-1,a.day+6,12,0,0))),n=C(r.year,r.month,r.day),l=new Date(n.getTime()+864e5-1),o=S(new Date(Date.UTC(a.year,a.month-1,a.day+7,12,0,0)));return{weekStart:s,weekEnd:l,intendedSendDate:C(o.year,o.month,o.day),weekStartId:M(a.year,a.month,a.day)}}function M(e,t,a){return"".concat(e,"-").concat(String(t).padStart(2,"0"),"-").concat(String(a).padStart(2,"0"))}function I(e,t){return D(new Date(e.getTime()+7*t*24*60*60*1e3))}var T=a(66630),L=a(70579);const U={draft:{label:"Draft",bg:"bg-gray-100",text:"text-gray-700",dot:"bg-gray-400"},ready:{label:"Ready",bg:"bg-blue-100",text:"text-blue-700",dot:"bg-blue-500"},sent:{label:"Sent",bg:"bg-green-100",text:"text-green-700",dot:"bg-green-500"}};function B(e){let t=e.status,a=e.onChangeStatus;const s=(0,n.useState)(!1),o=(0,r.A)(s,2),d=o[0],c=o[1],i=(0,n.useRef)(null),m=U[t]||U.draft;return(0,n.useEffect)(()=>{const e=e=>{i.current&&!i.current.contains(e.target)&&c(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]),(0,L.jsxs)("div",{className:"relative",ref:i,children:[(0,L.jsxs)("button",{type:"button",onClick:()=>c(!d),className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-medium ".concat(m.bg," ").concat(m.text," transition-colors hover:opacity-80"),children:[(0,L.jsx)("span",{className:"w-2 h-2 rounded-full ".concat(m.dot)}),m.label,(0,L.jsx)(l.A,{className:"h-3 w-3"})]}),d&&(0,L.jsx)("div",{className:"absolute right-0 mt-1 bg-white border border-gray-200 rounded-lg shadow-lg py-1 z-20 min-w-[120px]",children:Object.entries(U).map(e=>{let s=(0,r.A)(e,2),n=s[0],l=s[1];return(0,L.jsxs)("button",{type:"button",onClick:()=>{a(n),c(!1)},className:"w-full flex items-center gap-2 px-3 py-1.5 text-xs hover:bg-gray-50 ".concat(t===n?"font-semibold":""),children:[(0,L.jsx)("span",{className:"w-2 h-2 rounded-full ".concat(l.dot)}),l.label]},n)})})]})}function F(e){let t=e.text,a=e.label,s=e.icon;const l=(0,n.useState)(!1),d=(0,r.A)(l,2),c=d[0],i=d[1];return(0,L.jsxs)("button",{type:"button",onClick:async()=>{try{await navigator.clipboard.writeText(t),i(!0),setTimeout(()=>i(!1),2e3)}catch(e){console.error("Failed to copy:",e)}},disabled:!t,className:"inline-flex items-center gap-1.5 px-3 py-1.5 text-xs font-medium text-gray-700 bg-white border border-gray-300 rounded-md hover:bg-gray-50 disabled:opacity-40 disabled:cursor-not-allowed transition-colors",children:[c?(0,L.jsx)(o.A,{className:"h-3.5 w-3.5 text-green-600"}):(0,L.jsx)(s,{className:"h-3.5 w-3.5"}),c?"Copied!":a]})}
2function W(){const e=(0,n.useState)(()=>D()),t=(0,r.A)(e,2),a=t[0],l=t[1],o=function(e,t){const a=S(e),s=S(t),r=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];return a.year===s.year?a.month===s.month?"".concat(r[a.month-1]," ").concat(a.day," - ").concat(s.day,", ").concat(a.year):"".concat(r[a.month-1]," ").concat(a.day," - ").concat(r[s.month-1]," ").concat(s.day,", ").concat(a.year):"".concat(r[a.month-1]," ").concat(a.day,", ").concat(a.year," - ").concat(r[s.month-1]," ").concat(s.day,", ").concat(s.year)}(a.weekStart,a.weekEnd),A=(0,n.useState)(null),C=(0,r.A)(A,2),M=C[0],U=C[1],W=(0,n.useState)(!0),z=(0,r.A)(W,2),O=z[0],E=z[1],H=(0,n.useState)(!1),_=(0,r.A)(H,2),R=_[0],q=_[1],P=(0,n.useState)(!1),V=(0,r.A)(P,2),Z=V[0],G=V[1],J=(0,n.useState)(null),Y=(0,r.A)(J,2),K=Y[0],Q=Y[1],X=(0,n.useState)([]),$=(0,r.A)(X,2),ee=$[0],te=$[1],ae=(0,n.useState)(!1),se=(0,r.A)(ae,2),re=se[0],ne=se[1],le=(0,n.useState)("preview"),oe=(0,r.A)(le,2),de=oe[0],ce=oe[1],ie=(0,n.useState)(""),me=(0,r.A)(ie,2),ue=me[0],xe=me[1],he=(0,n.useState)(!1),ye=(0,r.A)(he,2),ge=ye[0],pe=ye[1],be=(0,n.useState)(""),fe=(0,r.A)(be,2),ve=fe[0],we=fe[1],je=(0,n.useRef)(null),Ne=(0,n.useState)(!1),ke=(0,r.A)(Ne,2),Ae=ke[0],Se=ke[1],Ce=(0,j.getFunctions)(),De=(0,n.useCallback)(async()=>{E(!0),Q(null);try{var e,t;const s=(0,j.httpsCallable)(Ce,"getWeeklyDraft"),r=await s({weekStart:a.weekStart.toISOString()}),n=null!==(e=null===r||void 0===r||null===(t=r.data)||void 0===t?void 0:t.draft)&&void 0!==e?e:null;U(n),we((null===n||void 0===n?void 0:n.subject)||""),xe((null===n||void 0===n?void 0:n.manualNotes)||"")}catch(s){console.error("fetchDraft error:",s),Q((null===s||void 0===s?void 0:s.message)||"Failed to fetch draft")}finally{E(!1)}},[Ce,a.weekStart]),Me=(0,n.useCallback)(async()=>{ne(!0);try{var e,t;const s=(0,j.httpsCallable)(Ce,"getWeeklySourceItems"),r=await s({weekStart:a.weekStart.toISOString()});te(null!==(e=null===r||void 0===r||null===(t=r.data)||void 0===t?void 0:t.items)&&void 0!==e?e:[])}catch(s){console.error("fetchSourceItems error:",s)}finally{ne(!1)}},[Ce,a.weekStart]);(0,n.useEffect)(()=>{De(),Me()},[De,Me]);const Ie=async e=>{G(!0);try{var t,s;const r=(0,j.httpsCallable)(Ce,"saveWeeklyDraft"),n=await r({weekStart:a.weekStart.toISOString(),updates:e}),l=null!==(t=null===n||void 0===n||null===(s=n.data)||void 0===s?void 0:s.draft)&&void 0!==t?t:null;U(l),e.subject&&we((null===l||void 0===l?void 0:l.subject)||e.subject)}catch(r){console.error("saveWeeklyDraft error:",r),Q((null===r||void 0===r?void 0:r.message)||"Failed to save draft")}finally{G(!1)}},Te=()=>{pe(!1),ve!==((null===M||void 0===M?void 0:M.subject)||"")&&ve.trim()&&Ie({subject:ve.trim()})};return(0,L.jsxs)("main",{className:"max-w-6xl mx-auto px-4 sm:px-6 lg:px-8 py-8 space-y-6",children:[(0,L.jsxs)("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4",children:[(0,L.jsxs)("div",{className:"flex items-center gap-3",children:[(0,L.jsxs)("div",{className:"flex items-center gap-1",children:[(0,L.jsx)("button",{type:"button",onClick:()=>l(I(a.weekStart,-1)),className:"p-1.5 rounded-md hover:bg-gray-200 text-gray-600 transition-colors",title:"Previous week",children:(0,L.jsx)(d.A,{className:"h-5 w-5"})}),(0,L.jsx)("button",{type:"button",onClick:()=>l(I(a.weekStart,1)),className:"p-1.5 rounded-md hover:bg-gray-200 text-gray-600 transition-colors",title:"Next week",children:(0,L.jsx)(c.A,{className:"h-5 w-5"})})]}),(0,L.jsxs)("div",{children:[(0,L.jsxs)("h2",{className:"text-lg font-semibold text-gray-900 flex items-center gap-2",children:[(0,L.jsx)(i.A,{className:"h-5 w-5 text-gray-400"}),o]}),(0,L.jsxs)("p",{className:"text-xs text-gray-500 mt-0.5",children:["Week ID: ",a.weekStartId]})]}),(0,L.jsx)("button",{type:"button",onClick:()=>l(D()),className:"text-xs text-blue-600 hover:text-blue-700 font-medium",children:"Today"})]}),(0,L.jsxs)("div",{className:"flex items-center gap-2",children:[M&&(0,L.jsx)(B,{status:M.status||"draft",onChangeStatus:e=>{Ie({status:e})}}),(0,L.jsxs)("button",{type:"button",onClick:async()=>{q(!0),Q(null);try{var e,t;const s=(0,j.httpsCallable)(Ce,"generateWeeklyDraft"),r=await s({weekStart:a.weekStart.toISOString(),manualNotes:ue||void 0}),n=null!==(e=null===r||void 0===r||null===(t=r.data)||void 0===t?void 0:t.draft)&&void 0!==e?e:null;U(n),we((null===n||void 0===n?void 0:n.subject)||"")}catch(s){console.error("generateWeeklyDraft error:",s),Q((null===s||void 0===s?void 0:s.message)||"Failed to generate draft")}finally{q(!1)}},disabled:R,className:"inline-flex items-center gap-2 px-4 py-2 text-sm font-medium text-white bg-blue-600 rounded-lg hover:bg-blue-700 disabled:opacity-50 disabled:cursor-not-allowed transition-colors shadow-sm",children:[R?(0,L.jsx)(m.A,{className:"h-4 w-4 animate-spin"}):(0,L.jsx)(u.A,{className:"h-4 w-4"}),R?"Generating...":M?"Regenerate Draft":"Generate Draft"]})]})]}),K&&(0,L.jsxs)("div",{className:"flex items-center gap-2 text-red-700 bg-red-50 border border-red-200 rounded-lg px-4 py-3",children:[(0,L.jsx)(x.A,{className:"h-4 w-4 flex-shrink-0"}),(0,L.jsx)("span",{className:"text-sm",children:K}),(0,L.jsx)("button",{type:"button",onClick:()=>Q(null),className:"ml-auto text-red-500 hover:text-red-700",children:(0,L.jsx)(h.A,{className:"h-4 w-4"})})]}),O&&(0,L.jsx)("div",{className:"flex items-center justify-center py-16",children:(0,L.jsx)(T.Ay,{})}),!O&&!M&&(0,L.jsxs)("div",{className:"bg-white rounded-lg border border-gray-200 shadow-sm p-8 text-center",children:[(0,L.jsx)(y.A,{className:"h-12 w-12 text-gray-300 mx-auto mb-4"}),(0,L.jsx)("h3",{className:"text-lg font-medium text-gray-900 mb-2",children:"No draft for this week"}),(0,L.jsx)("p",{className:"text-sm text-gray-500 mb-6 max-w-md mx-auto",children:ee.length>
20?"".concat(ee.length," update").concat(1!==ee.length?"s":"",' found for this week. Click "Generate Draft" to create the email.'):"No app updates found for this week. You can add manual notes below and generate a draft."}),(0,L.jsxs)("div",{className:"max-w-lg mx-auto mb-4",children:[(0,L.jsxs)("label",{className:"block text-sm font-medium text-gray-700 text-left mb-1",children:[(0,L.jsx)(g.A,{className:"h-3.5 w-3.5 inline mr-1"}),"Manual Notes (optional)"]}),(0,L.jsx)("textarea",{value:ue,onChange:e=>xe(e.target.value),rows:3,placeholder:"Add any notes or updates you want included in the email...",className:"w-full rounded-md border border-gray-300 px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500"})]}),re?(0,L.jsx)("p",{className:"text-xs text-gray-400",children:"Loading source items..."}):ee.length>0?(0,L.jsxs)("div",{className:"max-w-lg mx-auto text-left",children:[(0,L.jsx)("p",{className:"text-xs font-medium text-gray-500 mb-2",children:"Source updates this week:"}),(0,L.jsx)("ul",{className:"space-y-1",children:ee.map(e=>(0,L.jsxs)("li",{className:"text-xs text-gray-600 flex items-start gap-1.5",children:[(0,L.jsx)("span",{className:"text-gray-400 mt-0.5",children:"-"}),(0,L.jsx)("span",{children:e.summary||"v".concat(e.version)})]},e.id))})]}):null]}),!O&&M&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsxs)("div",{className:"bg-white rounded-lg border border-gray-200 shadow-sm overflow-hidden",children:[(0,L.jsxs)("div",{className:"px-4 py-3 border-b border-gray-100 flex items-center justify-between",children:[(0,L.jsx)("span",{className:"text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Subject Line"}),Z&&(0,L.jsx)(m.A,{className:"h-3.5 w-3.5 animate-spin text-gray-400"})]}),(0,L.jsx)("div",{className:"px-4 py-3",children:ge?(0,L.jsx)("input",{type:"text",value:ve,onChange:e=>we(e.target.value),onBlur:Te,onKeyDown:e=>"Enter"===e.key&&Te(),autoFocus:!0,className:"w-full text-base font-semibold text-gray-900 border-b-2 border-blue-500 outline-none pb-1 bg-transparent"}):(0,L.jsx)("button",{type:"button",onClick:()=>pe(!0),className:"text-base font-semibold text-gray-900 hover:text-blue-600 transition-colors text-left w-full",title:"Click to edit subject",children:M.subject||"(no subject)"})})]}),(0,L.jsxs)("div",{className:"bg-white rounded-lg border border-gray-200 shadow-sm overflow-hidden",children:[(0,L.jsxs)("div",{className:"px-4 py-3 border-b border-gray-100 flex items-center justify-between",children:[(0,L.jsxs)("div",{className:"flex items-center gap-3",children:[(0,L.jsx)("span",{className:"text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Email Body"}),(0,L.jsxs)("div",{className:"flex items-center bg-gray-100 rounded-md p-0.5",children:[(0,L.jsxs)("button",{type:"button",onClick:()=>ce("preview"),className:"inline-flex items-center gap-1 px-2 py-1 text-xs rounded ".concat("preview"===de?"bg-white shadow-sm text-gray-900 font-medium":"text-gray-500 hover:text-gray-700"),children:[(0,L.jsx)(p.A,{className:"h-3 w-3"}),"Preview"]}),(0,L.jsxs)("button",{type:"button",onClick:()=>ce("source"),className:"inline-flex items-center gap-1 px-2 py-1 text-xs rounded ".concat("source"===de?"bg-white shadow-sm text-gray-900 font-medium":"text-gray-500 hover:text-gray-700"),children:[(0,L.jsx)(b.A,{className:"h-3 w-3"}),"Source"]})]})]}),(0,L.jsxs)("div",{className:"flex items-center gap-2",children:[(0,L.jsx)(F,{text:M.htmlBody||"",label:"Copy HTML",icon:f.A}),(0,L.jsx)(F,{text:M.plainTextBody||"",label:"Copy Plain Text",icon:y.A}),(0,L.jsxs)("button",{type:"button",onClick:()=>{if(null===M||void 0===M||!M.htmlBody)return;const e='<!DOCTYPE html>\n<html lang="en">\n<head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>'.concat(M.subject||"Weekly Update","</title></head>\n<body>").concat(M.htmlBody,"</body>\n</html>"),t=new Blob([e],{type:"text/html"}),s=URL.createObjectURL(t),r=document.createElement("a");r.href=s,r.download="weekly-update-".concat(a.weekStartId,".html"),document.body.appendChild(r),r.click(),document.body.removeChild(r),URL.revokeObjectURL(s)}
2,disabled:!M.htmlBody,className:"inline-flex items-center gap-1.5 px-3 py-1.5 text-xs font-medium text-gray-700 bg-white border border-gray-300 rounded-md hover:bg-gray-50 disabled:opacity-40 disabled:cursor-not-allowed transition-colors",children:[(0,L.jsx)(v.A,{className:"h-3.5 w-3.5"}),"Download .html"]})]})]}),(0,L.jsx)("div",{className:"p-4",children:"preview"===de?(0,L.jsx)("div",{className:"prose prose-sm max-w-none border border-gray-100 rounded-lg p-6 bg-gray-50",dangerouslySetInnerHTML:{__html:M.htmlBody||'<p class="text-gray-400">No content</p>'}}):(0,L.jsx)("pre",{className:"text-xs font-mono text-gray-700 bg-gray-50 border border-gray-100 rounded-lg p-4 overflow-x-auto max-h-[500px] whitespace-pre-wrap",children:M.htmlBody||"(empty)"})})]}),(0,L.jsxs)("div",{className:"bg-white rounded-lg border border-gray-200 shadow-sm overflow-hidden",children:[(0,L.jsxs)("div",{className:"px-4 py-3 border-b border-gray-100 flex items-center justify-between",children:[(0,L.jsx)("span",{className:"text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Images"}),(0,L.jsxs)("div",{className:"flex items-center gap-2",children:[Ae&&(0,L.jsx)(m.A,{className:"h-3.5 w-3.5 animate-spin text-gray-400"}),(0,L.jsxs)("button",{type:"button",onClick:()=>{var e;return null===(e=je.current)||void 0===e?void 0:e.click()},disabled:Ae,className:"inline-flex items-center gap-1.5 px-3 py-1.5 text-xs font-medium text-gray-700 bg-white border border-gray-300 rounded-md hover:bg-gray-50 disabled:opacity-40 transition-colors",children:[(0,L.jsx)(w.A,{className:"h-3.5 w-3.5"}),"Add Image"]}),(0,L.jsx)("input",{ref:je,type:"file",accept:"image/*",className:"hidden",onChange:async e=>{var t;const s=null===(t=e.target.files)||void 0===t?void 0:t[0];if(s)if(s.type.startsWith("image/")){Se(!0),Q(null);try{const e=Date.now(),t=s.name.replace(/[^a-zA-Z0-9._-]/g,"_"),r="weekly-updates/".concat(a.weekStartId,"/images/").concat(e,"_").concat(t),n=(0,N.KR)(k.IG,r);await(0,N.D)(n,s);const l=await(0,N.qk)(n),o=[...(null===M||void 0===M?void 0:M.images)||[],{url:l,caption:"",storagePath:r}];await Ie({images:o})}catch(r){console.error("Image upload error:",r),Q((null===r||void 0===r?void 0:r.message)||"Failed to upload image")}finally{Se(!1),je.current&&(je.current.value="")}}else Q("Please select an image file")}})]})]}),(0,L.jsx)("div",{className:"p-4",children:M.images&&0!==M.images.length?(0,L.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4",children:M.images.map((e,t)=>(0,L.jsxs)("div",{className:"relative group border border-gray-200 rounded-lg overflow-hidden",children:[(0,L.jsx)("img",{src:e.url,alt:e.caption||"Image ".concat(t+1),className:"w-full h-40 object-cover"}),(0,L.jsx)("button",{type:"button",onClick:()=>(async e=>{const t=((null===M||void 0===M?void 0:M.images)||[]).filter((t,a)=>a!==e);await Ie({images:t})})(t),className:"absolute top-2 right-2 p-1 bg-white/90 rounded-full shadow-sm opacity-0 group-hover:opacity-100 transition-opacity hover:bg-red-50",children:(0,L.jsx)(h.A,{className:"h-3.5 w-3.5 text-red-600"})}),(0,L.jsx)("div",{className:"px-3 py-2",children:(0,L.jsx)("input",{type:"text",value:e.caption||"",onChange:e=>{const a=[...M.images||[]];a[t]=(0,s.A)((0,s.A)({},a[t]),{},{caption:e.target.value}),U(e=>(0,s.A)((0,s.A)({},e),{},{images:a}))},onBlur:e=>(async(e,t)=>{const a=[...(null===M||void 0===M?void 0:M.images)||[]];a[e]=(0,s.A)((0,s.A)({},a[e]),{},{caption:t}),await Ie({images:a})})(t,e.target.value),placeholder:"Add caption...",className:"w-full text-xs text-gray-600 border-0 border-b border-gray-200 focus:border-blue-500 focus:ring-0 outline-none px-0 py-1 bg-transparent"})})]},t))}):(0,L.jsx)("p",{className:"text-sm text-gray-400 text-center py-4",children:"No images attached. Upload screenshots or product images to include in the email."})})]}),(0,L.jsxs)("div",{className:"bg-white rounded-lg border border-gray-200 shadow-sm overflow-hidden",children:[(0,L.jsxs)("div",{className:"px-4 py-3 border-b border-gray-100 flex items-center gap-2",children:[(0,L.jsx)(g.A,{className:"h-4 w-4 text-gray-400"}),(0,L.jsx)("span",{className:"text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Manual Notes"})]}),(0,L.jsxs)("div",{className:"p-4",children:[(0,L.jsx)("textarea",{value:ue,onChange:e=>xe(e.target.value),onBlur:()=>{ue!==(M.manualNotes||"")&&Ie({manualNotes:ue})},rows:3,placeholder:"Add any manual notes to include when regenerating the draft...",className:"w-full rounded-md border border-gray-300 px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500 resize-y"}),(0,L.jsx)("p",{className:"text-xs text-gray-400 mt-1",children:"These notes will be included as context when you regenerate the draft."})]})]}),(0,L.jsxs)("div",{className:"bg-white rounded-lg border border-gray-200 shadow-sm overflow-hidden",children:[(0,L.jsxs)("div",{className:"px-4 py-3 border-b border-gray-100 flex items-center justify-between",children:[(0,L.jsxs)("span",{className:"text-xs font-medium text-gray-500 uppercase tracking-wider",children:["Source Items (",ee.length,")"]}),re&&(0,L.jsx)(m.A,{className:"h-3.5 w-3.5 animate-spin text-gray-400"})]}),(0,L.jsx)("div",{className:"p-4",children:0===ee.length?(0,L.jsx)("p",{className:"text-sm text-gray-400 text-center py-2",children:"No app updates found for this week."}):(0,L.jsx)("ul",{className:"space-y-2",children:ee.map(e=>(0,L.jsxs)("li",{className:"flex items-start gap-2 text-sm",children:[(0,L.jsxs)("span",{className:"inline-flex items-center px-1.5 py-0.5 rounded text-xs font-mono bg-gray-100 text-gray-500 mt-0.5",children:["v",e.version]}),(0,L.jsx)("span",{className:"text-gray-700",children:e.summary||"(no summary)"}),e.beta&&(0,L.jsx)("span",{className:"inline-flex items-center px-1.5 py-0.5 rounded-full text-xs bg-amber-100 text-amber-700",children:"beta"})]},e.id))})})]})]})]})}},28646(e,t,a){a.d(t,{A:()=>s});const s=(0,a(77784).A)("calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]])},36210(e,t,a){a.d(t,{A:()=>s});const s=(0,a(77784).A)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},38326(e,t,a){a.d(t,{A:()=>s});const s=(0,a(77784).A)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},72105(e,t,a){a.d(t,{A:()=>s});const s=(0,a(77784).A)("code",[["polyline",{points:"16 18 22 12 16 6",key:"z7tu5w"}],["polyline",{points:"8 6 2 12 8 18",key:"1eg1df"}]])},72313(e,t,a){a.d(t,{A:()=>s});
2const s=(0,a(77784).A)("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},7104(e,t,a){a.d(t,{A:()=>s});const s=(0,a(77784).A)("download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]])},35087(e,t,a){a.d(t,{A:()=>s});const s=(0,a(77784).A)("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]])},41680(e,t,a){a.d(t,{A:()=>s});const s=(0,a(77784).A)("file-text",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]])},33908(e,t,a){a.d(t,{A:()=>s});const s=(0,a(77784).A)("image-plus",[["path",{d:"M16 5h6",key:"1vod17"}],["path",{d:"M19 2v6",key:"4bpg5p"}],["path",{d:"M21 11.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7.5",key:"1ue2ih"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}]])},56099(e,t,a){a.d(t,{A:()=>s});const s=(0,a(77784).A)("sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]])},76996(e,t,a){a.d(t,{A:()=>s});const s=(0,a(77784).A)("sticky-note",[["path",{d:"M16 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V8Z",key:"qazsjp"}],["path",{d:"M15 3v4a2 2 0 0 0 2 2h4",key:"40519r"}]])}}]); 3//# sourceMappingURL=5249.13dc5835.chunk.js.map
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.