1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1321],{1707:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var a=r(14232);let n=a.forwardRef(function({title:e,titleId:t,...r},n){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?a.createElement("title",{id:t},e):null,a.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 4.5 21 12m0 0-7.5 7.5M21 12H3"}))})},3495:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var a=r(14232);let n=a.forwardRef(function({title:e,titleId:t,...r},n){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?a.createElement("title",{id:t},e):null,a.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m15.75 15.75-2.489-2.489m0 0a3.375 3.375 0 1 0-4.773-4.773 3.375 3.375 0 0 0 4.774 4.774ZM21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))})},32797:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/deep-dive",function(){return r(69224)}])},44545:(e,t,r)=>{"use strict";r.d(t,{X:()=>o});var a=r(14232),n=r(7033),s=r(23623);function i(e){return Math.floor(e*(.2+.6*Math.random()))}function l(e,t){return Promise.race([e,new Promise(e=>setTimeout(()=>e(void 0),t))])}function o(){let e=(0,n.aB)(),t=(0,s.V)(),o=(0,a.useContext)(n.Zv),c=(0,a.useMemo)(()=>async function(a,n={}){var s;let c,d=n.method||"GET",m=n.timeoutMs??3e4,u=n.maxRetries??2,x=n.body,h={accept:"application/json",...n.headers||{}};void 0===(s=x)||"string"==typeof s||s instanceof Blob||s instanceof ArrayBuffer||(h["Content-Type"]=h["Content-Type"]||"application/json",x=JSON.stringify(x)),t&&(h["x-csrf-token"]=t);try{if(o){let{getToken:e}=await r.e(2357).then(r.bind(r,12357)),t=await l(e(o,!1),5e3);t?.token&&(h["X-Firebase-AppCheck"]=t.token)}}catch{}async function p(t){try{let r=await l(e.data?.getIdToken?.(t)??Promise.resolve(void 0),5e3);r&&(h.Authorization=`Bearer ${r}`)}catch{}}h["X-Correlation-Id"]=h["X-Correlation-Id"]||`corr-${Date.now()}-${Math.random().toString(36).slice(2,8)}`,await p(!0),n.signal?.throwIfAborted();for(let e=0;e<=u;e++){let t=new AbortController,r=()=>t.abort();n.signal?.throwIfAborted(),n.signal?.addEventListener("abort",r,{once:!0});let s=setTimeout(()=>t.abort(),m);try{let r=await fetch(a,{method:d,headers:h,body:x,signal:t.signal});if((401===r.status||403===r.status)&&0===e&&e<u){await p(!0);continue}if((429===r.status||r.status>=500)&&e<u){let t=i(400*(e+1));await new Promise(e=>setTimeout(e,t));continue}return clearTimeout(s),r}catch(r){if(n.signal?.throwIfAborted(),c=r,e===u)throw clearTimeout(s),r;let t=i(400*(e+1));await new Promise(e=>setTimeout(e,t))}finally{n.signal?.removeEventListener("abort",r),clearTimeout(s)}}throw c??Error("Request failed")},[e.data,t,o]);return(0,a.useMemo)(()=>({fetch:c}),[c])}},54254:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var a=r(14232);let n=a.forwardRef(function({title:e,titleId:t,...r},n){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?a.createElement("title",{id:t},e):null,a.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6v6h4.5m4.5 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))})},63393:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var a=r(14232);let n=a.forwardRef(function({title:e,titleId:t,...r},n){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?a.createElement("title",{id:t},e):null,a.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126ZM12 15.75h.007v.008H12v-.008Z"}))})},69224:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__N_SSP:()=>k,default:()=>A});var a=r(37876),n=r(14232),s=r(77328),i=r.n(s),l=r(48230),o=r.n(l),c=r(89099),d=r(85755),m=r(35109),u=r(96668),x=r(54254),h=r(63393),p=r(3495),g=r(4153),f=r(74550),w=r(1707),v=r(27730),b=r(6359),y=r(62093),j=r(85669),N=r(29846),k=!0;function A(){(0,c.useRouter)();
1let[e,t]=(0,n.useState)(!1),{loading:r,trial:s}=(0,v.A)(),l=(0,b.A)().hasCapability("deep_dive.full"),{sessions:k,loading:A,error:E}=(0,y.A)(),C=(0,n.useMemo)(()=>[...k].sort((e,t)=>{let r=+("completed"===e.status),a=+("completed"===t.status);return r!==a?a-r:t.updatedAt-e.updatedAt}),[k]);C.find(e=>"completed"===e.status);let S=r||A;return r||l?(0,a.jsxs)(d.A,{header:(0,a.jsx)(a.Fragment,{}),returnUrl:"/deep-dive",children:[(0,a.jsx)(i(),{children:(0,a.jsx)("title",{children:"Deep Dives ⢠Cutline"})}),(0,a.jsxs)("div",{className:"max-w-4xl mx-auto py-12 px-4",children:[(0,a.jsxs)("div",{className:"text-center mb-12",children:[(0,a.jsx)("div",{className:"inline-flex items-center justify-center w-16 h-16 rounded-full bg-primary/10 mb-4",children:(0,a.jsx)(p.A,{className:"w-8 h-8 text-primary"})}),(0,a.jsx)("h1",{className:"text-3xl font-bold text-primary mb-2",children:"Deep Dives"}),(0,a.jsx)("p",{className:"text-gray-400 max-w-md mx-auto",children:"Execution-focused research for product ideas that are ready to get concrete."})]}),(0,a.jsxs)("div",{className:"flex items-center justify-between mb-8",children:[(0,a.jsx)("h2",{className:"text-lg font-semibold text-white",children:"Your Deep Dives"}),(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[N.A.features.scopeExpansionUi&&(0,a.jsx)("button",{onClick:()=>t(!0),className:"btn btn-outline text-sm",children:"Expand Scope"}),(0,a.jsxs)(o(),{href:"/start",className:"btn btn-primary text-sm flex items-center gap-2",children:[(0,a.jsx)(f.A,{className:"w-4 h-4"}),"New Analysis"]})]})]}),S&&(0,a.jsx)("div",{className:"text-center py-12",children:(0,a.jsx)("div",{className:"animate-pulse text-gray-500",children:"Loading deep dives..."})}),!S&&E&&(0,a.jsxs)("div",{className:"text-center py-12",children:[(0,a.jsx)("p",{className:"text-red-400 mb-4",children:"Failed to load deep dives"}),(0,a.jsx)("button",{onClick:()=>window.location.reload(),className:"btn btn-outline text-sm",children:"Retry"})]}),!S&&!E&&0===C.length&&(0,a.jsxs)("div",{className:"text-center py-12",children:[(0,a.jsx)(p.A,{className:"w-16 h-16 text-gray-600 mx-auto mb-4"}),(0,a.jsx)("h3",{className:"text-lg font-medium text-white mb-2",children:"No deep dives yet"}),(0,a.jsx)("p",{className:"text-gray-400 mb-6 max-w-md mx-auto",children:"Start a Framing and graduate it into an execution-focused Deep Dive."}),(0,a.jsx)(o(),{href:"/start",className:"btn btn-primary",children:"Start New Analysis"})]}),!S&&!E&&C.length>0&&(0,a.jsx)("div",{className:"space-y-3",children:C.map(e=>{var t,r;let n=(t=e.status,r=e.verdict,"completed"===t?{color:"proceed"===r||"Go (guarded)"===r||"go"===r?"bg-green-500/20 text-green-400":"kill"===r||"No-Go"===r||"no-go"===r?"bg-red-500/20 text-red-400":"bg-yellow-500/20 text-yellow-400",label:"proceed"===r||"Go (guarded)"===r||"go"===r?"Go":"kill"===r||"No-Go"===r||"no-go"===r?"No-Go":r||"Complete",icon:u.A}:"running"===t||"queued"===t||"chat_active"===t?{color:"bg-blue-500/20 text-blue-400",label:"chat_active"===t?"In Progress":"Processing",icon:x.A}:"error"===t||"failed"===t?{color:"bg-red-500/20 text-red-400",label:"Failed",icon:h.A}:{color:"bg-gray-500/20 text-gray-400",label:"Draft",icon:x.A}),s=n.icon,i="completed"===e.status?`/deep-dive/${e.id}`:`/premortem/${e.id}`;return(0,a.jsx)(o(),{href:i,className:"block bg-gray-800/50 border border-gray-700 rounded-lg p-4 hover:border-primary/50 transition-colors",children:(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsxs)("div",{className:"flex items-center gap-3 mb-1",children:[(0,a.jsx)("h3",{className:"text-white font-medium truncate",children:e.title}),(0,a.jsxs)("span",{className:`inline-flex items-center gap-1 text-xs px-2 py-0.5 rounded-full ${n.color}`,children:[(0,a.jsx)(s,{className:"w-3 h-3"}),n.label]}),"consulting"===e.mode&&(0,a.jsx)("span",{className:"text-xs bg-amber-500/20 text-amber-400 px-2 py-0.5 rounded-full",children:"Consulting"})]}),e.firefliesSource&&(0,a.jsx)("div",{className:"mb-2",children:(0,a.jsx)(m.A,{source:e.firefliesSource})}),(0,a.jsxs)("div",{className:"flex items-center gap-4 text-xs text-gray-500",children:[(0,a.jsx)("span",{children:function(e){let t=Date.now()-e,r=Math.floor(t/6e4),a=Math.floor(t/36e5),n=Math.floor(t/864e5);return r<1?"Just now":r<60?`${r}m ago`:a<24?`${a}h ago`:n<7?`${n}d ago`:new Date(e).toLocaleDateString()}(e.updatedAt)}),e.risksCount>0&&(0,a.jsxs)("span",{className:"flex items-center gap-1",children:[(0,a.jsx)(h.A,{className:"w-3 h-3"}),e.risksCount," risks"]})]})]}),(0,a.jsx)(w.A,{className:"w-5 h-5 text-gray-500"})]})},e.id)})})]}),N.A.features.scopeExpansionUi&&(0,a.jsx)(j.A,{isOpen:e,source:"deep_dives",onClose:()=>t(!1)})]}):(0,a.jsxs)(d.A,{header:(0,a.jsx)(a.Fragment,{}),returnUrl:"/deep-dive",children:[(0,a.jsx)(i(),{children:(0,a.jsx)("title",{children:"Deep Dives ⢠Cutline"})}),(0,a.jsxs)("div",{className:"max-w-4xl mx-auto py-12 px-4",children:[(0,a.jsxs)("div",{className:"text-center mb-12",children:[(0,a.jsx)("div",{className:"inline-flex items-center justify-center w-16 h-16 rounded-full bg-primary/10 mb-4",children:(0,a.jsx)(p.A,{className:"w-8 h-8 text-primary"})}),(0,a.jsx)("h1",{className:"text-3xl font-bold text-primary mb-2",children:"Deep Dives"}),(0,a.jsx)("p",{className:"text-gray-400 max-w-md mx-auto",children:"Execution-focused research for product ideas that are ready to get concrete."})]}),(0,a.jsxs)("div",{className:"max-w-xl mx-auto bg-gray-800/50 border border-gray-700 rounded-xl p-8 text-center",children:[s.isTrialExpired&&(0,a.jsx)("div",{className:"mb-4 px-4 py-2 bg-amber-500/10 border border-amber-500/30 rounded-lg inline-block",children:(0,a.jsx)("p",{className:"text-amber-400 text-sm font-medium",children:"Subscription Required"})}),(0,a.jsx)("div",{className:"inline-flex items-center justify-center w-12 h-12 rounded-full bg-primary/10 mb-4",children:(0,a.jsx)(g.A,{className:"w-6 h-6 text-primary"})}),(0,a.jsx)("h2",{className:"text-xl font-semibold text-primary mb-3",children:"Unlock Deep Dives"}),(0,a.jsx)("p",{className:"text-gray-400 mb-6",children:"Deep Dives are where product definitions get fleshed out through a comprehensive multi-agent analysis. Get clearer product framing, deployment/distribution clarity, and execution risk guidance."}),(0,a.jsxs)("div",{className:"bg-gray-900/50 rounded-lg p-4 mb-6 text-left",children:[(0,a.jsx)("p",{className:"text-sm font-medium text-primary mb-3",children:"What you'll get:"}),(0,a.jsxs)("ul",{className:"space-y-2 text-sm text-gray-300",children:[(0,a.jsxs)("li",{className:"flex items-center gap-2",children:[(0,a.jsx)(u.A,{className:"w-4 h-4 text-primary flex-shrink-0"}),"Market sizing with TAM/SAM/SOM analysis"]}),(0,a.jsxs)("li",{className:"flex items-center gap-2",children:[(0,a.jsx)(u.A,{className:"w-4 h-4 text-primary flex-shrink-0"}),"Comprehensive risk identification with mitigations"]}),(0,a.jsxs)("li",{className:"flex items-center gap-2",children:[(0,a.jsx)(u.A,{className:"w-4 h-4 text-primary flex-shrink-0"}),"Ideal Customer Profile generation"]}),(0,a.jsxs)("li",{className:"flex items-center gap-2",children:[(0,a.jsx)(u.A,{className:"w-4 h-4 text-primary flex-shrink-0"}),"Pricing strategy recommendations"]}),(0,a.jsxs)("li",{className:"flex items-center gap-2",children:[(0,a.jsx)(u.A,{className:"w-4 h-4 text-primary flex-shrink-0"}),"Clear go/no-go verdicts with rationale"]})]})]}),(0,a.jsxs)("p",{className:"text-xs text-gray-500 mb-4 flex items-center justify-center gap-1",children:[(0,a.jsx)(g.A,{className:"w-3 h-3"}),"Deep Dives require a Cutline subscription"]}),(0,a.jsx)(o(),{href:"/settings/subscription",className:"inline-block px-8 py-3 bg-primary hover:bg-primary/90 text-primary-foreground font-medium rounded-xl transition-colors",children:"Upgrade to Unlock"}),(0,a.jsx)("div",{className:"mt-4",children:(0,a.jsx)(o(),{href:"/explore",className:"text-sm text-gray-400 hover:text-primary transition-colors",children:"â Back to Product Exploration"})})]})]})]})}},79447:(e,t,r)=>{"use strict";r.d(t,{Kd:()=>m,ZL:()=>u,_e:()=>h,hm:()=>x,j3:()=>d});var a=r(14232);let n="cutline.currentProductId",s="cutline.activeExploration",i="cutline.activePersona",l="cutline.activeDeepDive",o="cutline.activeRefinement";function c(e){try{let t=localStorage.getItem(e);return t?JSON.parse(t):null}catch{return null}}function d(){let[e,t]=(0,a.useState)({exploration:null,product:null,persona:null,deepDive:null,refinement:null,loading:!0}),r=(0,a.useCallback)(()=>{t({exploration:function(){try{let e=localStorage.getItem(s);if(e)return JSON.parse(e);return null}catch{return null}}(),product:function(){try{let e,t=localStorage.getItem(n);if(!t)return null;let r=`cutline.product.${t}.bundle`,a=c(r);if(a?.name&&(e=a.name),!e){let r=c("cutline.products.index"),a=r?.find(e=>e.id===t);a?.name&&(e=a.name)}return{id:t,name:e||"Untitled Project"}}catch{return null}}(),persona:c(i),deepDive:c(l),refinement:c(o),loading:!1})},[]);return(0,a.useEffect)(()=>{r();let e=e=>{(e.key===n||e.key===s||e.key===i||e.key===l||e.key===o||e.key?.startsWith("cutline.product."))&&r()},t=()=>r();window.addEventListener("storage",e),window.addEventListener("cutline:context-changed",t);let a=setInterval(r,2e3);return()=>{window.removeEventListener("storage",e),window.removeEventListener("cutline:context-changed",t),clearInterval(a)}},[r]),e}function m(e){try{e?localStorage.setItem(s,JSON.stringify(e)):localStorage.removeItem(s),window.dispatchEvent(new CustomEvent("cutline:context-changed"))}catch{}}function u(e){try{e?localStorage.setItem(i,JSON.stringify(e)):localStorage.removeItem(i),window.dispatchEvent(new CustomEvent("cutline:context-changed"))}catch{}}function x(e){try{e?localStorage.setItem(l,JSON.stringify(e)):localStorage.removeItem(l),window.dispatchEvent(new CustomEvent("cutline:context-changed"))}catch{}}function h(e){try{e?localStorage.setItem(o,JSON.stringify(e)):localStorage.removeItem(o),window.dispatchEvent(new CustomEvent("cutline:context-changed"))}catch{}}},96668:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var a=r(14232);let n=a.forwardRef(function({title:e,titleId:t,...r},n){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?a.createElement("title",{id:t},e):null,a.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))})}},e=>{e.O(0,[8230,7730,7990,8050,636,6593,8792],()=>e(e.s=32797)),_N_E=e.O()}]);
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.