@inkeep/open-knowledge 0.49.2 → 0.49.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{acp-harness-probe-O9BEMpdb.mjs → acp-harness-probe-DfizmTLK.mjs} +2 -2
- package/dist/cli.mjs +6 -6
- package/dist/constants-9En3PtTx.mjs +2 -0
- package/dist/index.mjs +1 -1
- package/dist/{init-Cg1MczGq.mjs → init-DSBSJKPr.mjs} +3 -3
- package/dist/init-DhRSnosg.mjs +1 -0
- package/dist/{launch-json-removal-DFF5AXyX.mjs → launch-json-removal-DgOFJytv.mjs} +2 -2
- package/dist/{loader-CJynt8EV.mjs → loader-BNGyW_6p.mjs} +2 -2
- package/dist/loader-ibEQoapJ.mjs +1 -0
- package/dist/preview-CIkPIOgE.mjs +1 -0
- package/dist/{preview-Dnob-x-p.mjs → preview-DA8wTYdj.mjs} +2 -2
- package/dist/public/assets/FeedbackForm-DshmSaPh.js +1 -0
- package/dist/public/assets/ReportBugDialogBody-B3qyqQDx.js +3 -0
- package/dist/public/assets/{index-B6VepqFk.js → index-BSoHa32-.js} +108 -108
- package/dist/public/index.html +1 -1
- package/dist/{repair-launch-json-DF-pHfel.mjs → repair-launch-json-DvTqoRqm.mjs} +2 -2
- package/dist/{repair-mcp-configs-Cr9jCNwk.mjs → repair-mcp-configs-eusX29TQ.mjs} +2 -2
- package/dist/{src-pUQbXiSN.mjs → src-BzPDSQsW.mjs} +2 -2
- package/dist/src-DMSnphwO.mjs +1 -0
- package/dist/start-BiskEgWj.mjs +1 -0
- package/dist/{start-DQdc8wXO.mjs → start-CGFtqgk1.mjs} +2 -2
- package/package.json +5 -5
- package/dist/constants-C3InsrBS.mjs +0 -2
- package/dist/init-DnqdKHDS.mjs +0 -1
- package/dist/loader-4hXM3EID.mjs +0 -1
- package/dist/preview-BnqROnAm.mjs +0 -1
- package/dist/public/assets/FeedbackForm-YmqhKCxZ.js +0 -1
- package/dist/public/assets/ReportBugDialogBody-BUGec7jk.js +0 -3
- package/dist/src-BmS3oGY4.mjs +0 -1
- package/dist/start-XIVqnuqY.mjs +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{Y as e,c as t,d as n,o as r,s as i}from"./sleep-DVOInM4H.mjs";import"./src-TKCctdpc.mjs";import{_ as a}from"./src-Dt5dAyFQ.mjs";import{F as o,O as s}from"./fs-traced-DVpoNaQJ.mjs";import{t as c}from"./constants-
|
|
2
|
-
//# sourceMappingURL=loader-
|
|
1
|
+
import{Y as e,c as t,d as n,o as r,s as i}from"./sleep-DVOInM4H.mjs";import"./src-TKCctdpc.mjs";import{_ as a}from"./src-Dt5dAyFQ.mjs";import{F as o,O as s}from"./fs-traced-DVpoNaQJ.mjs";import{t as c}from"./constants-9En3PtTx.mjs";import{t as l}from"./is-object-ByG7RnjH.mjs";import{resolve as u}from"node:path";import{existsSync as d,readFileSync as f}from"node:fs";import{realpath as p}from"node:fs/promises";var m=e();async function h(e){let t=u(e);try{return await p(t)}catch(e){if(e.code!==`ENOENT`){let n=e instanceof Error?e.message:String(e);console.warn(`[normalize-cwd] realpath failed for ${t}: ${n}`)}return t}}function g(e,t){let n={...e};for(let r of Object.keys(t)){let i=e[r],a=t[r];l(a)&&l(i)?n[r]=g(i,a):a!==void 0&&(n[r]=a)}return n}function _(e){if(!d(e))return{value:null,path:e,source:null,doc:null};let t;try{t=f(e,`utf-8`)}catch(t){let n=t instanceof Error?t.message:String(t);return console.warn(`[config] Failed to read ${e}: ${n}`),{value:null,path:e,source:null,doc:null,diagnostic:{code:`UNREADABLE`,detail:`${e}: ${n}`}}}let n=(0,m.parseDocument)(t);if(n.errors.length>0){let r=n.errors.map(e=>e.message).join(`; `);return console.warn(`[config] Failed to parse ${e}: ${r}`),{value:null,path:e,source:t,doc:null,diagnostic:{code:`YAML_PARSE`,detail:`${e}: ${r}`}}}let r=n.toJSON();return l(r)?{value:r,path:e,source:t,doc:n}:{value:null,path:e,source:t,doc:n}}function v(e,n){return e.map(e=>{let r=e.path.map(e=>typeof e==`symbol`?String(e):e),i={path:r,message:e.message,issueCode:e.code};if(n.doc!==null&&n.source!==null){let e=t({file:n.path,source:n.source,doc:n.doc,path:r});if(e!==void 0)return{...i,source:e}}return i})}function y(e){let t=e??process.cwd(),l=[],d=[],f=[],p=s(`user`,t),m=o({absPath:p});d.push(...m.diagnostics),!m.valid&&m.sidelinedTo!==void 0&&f.push({from:p,to:m.sidelinedTo});let h={};m.valid&&m.source!==void 0?(h=g(h,m.value),l.push(p)):m.valid;let y=u(t,`.ok`,c),b=_(y);if(b.diagnostic!==void 0&&d.push(b.diagnostic),b.value!==null){let e=r({value:b.value,file:b.path,source:b.source,doc:b.doc});d.push(...e);let t=e.length>0?i(b.value):b.value;h=g(h,t),l.push(y)}let x=a.safeParse(h);if(!x.success){let e={code:`SCHEMA_INVALID`,issues:v(x.error.issues,b)};throw Error(n(e))}return{config:x.data,sources:l,diagnostics:d,sidelined:f}}function b(e){let t=e.cacheMs??1e3,n=e.loadConfigFn??y,r=new Map,i=new Map,a=h(e.startupCwd);return async o=>{let s=await h(o??e.startupCwd),c=Date.now(),l=r.get(s);if(l&&l.expiresAt>c)return l.config;let u=i.get(s);if(u)return await u;let d=(async()=>{if(s===await a)return r.set(s,{config:e.startupConfig,expiresAt:Date.now()+t}),e.startupConfig;let i=n(s).config;return r.set(s,{config:i,expiresAt:Date.now()+t}),i})();i.set(s,d);try{return await d}finally{i.delete(s)}}}export{y as n,b as t};
|
|
2
|
+
//# sourceMappingURL=loader-BNGyW_6p.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e}from"./loader-BNGyW_6p.mjs";export{e as loadConfig};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e,t}from"./preview-DA8wTYdj.mjs";export{t as formatPreviewBlock,e as previewContent};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{Rr as e}from"./src-Dt5dAyFQ.mjs";import"./constants-
|
|
1
|
+
import{Rr as e}from"./src-Dt5dAyFQ.mjs";import"./constants-9En3PtTx.mjs";import{join as t,relative as n}from"node:path";import{existsSync as r,lstatSync as i,readdirSync as a,realpathSync as o,statSync as s}from"node:fs";function c(r){let{projectDir:c,contentDir:l,sampleCap:u=5}=r,d=[],f=[];try{i(l)}catch(e){return{totalCount:0,sample:[],contentDir:l,warnings:[`cannot access content directory ${l}: ${e instanceof Error?e.message:String(e)}`]}}let p;try{p=e({projectDir:c,contentDir:l})}catch(e){return{totalCount:0,sample:[],contentDir:l,warnings:[e instanceof Error?e.message:String(e)]}}function m(e){let r;try{r=a(e,{withFileTypes:!0})}catch(t){let r=t instanceof Error?t.message:String(t);d.push(`could not read directory ${n(l,e)||`.`}: ${r}`);return}for(let i of r){let r=t(e,i.name);if(i.isSymbolicLink()){let e;try{e=o(r)}catch(e){let t=e.code;t===`ENOENT`||t===`ELOOP`?d.push(`broken or cyclic symlink: ${n(l,r)}`):d.push(`cannot resolve symlink ${n(l,r)}: ${t??`unknown error`}`);continue}let t;try{t=s(e)}catch{continue}if(t.isDirectory()){let e=n(l,r);if(p.isDirExcluded(e))continue;m(r)}else if(t.isFile()){let e=n(l,r);if(p.isExcluded(e))continue;f.push(e)}}else if(i.isDirectory()){let e=n(l,r);if(p.isDirExcluded(e))continue;m(r)}else if(i.isFile()){let e=n(l,r);if(p.isExcluded(e))continue;f.push(e)}}}return m(l),{totalCount:f.length,sample:f.slice(0,u),contentDir:l,warnings:d}}function l(e,i){let a=[],o=n(i,e.contentDir),s=o===``?`./`:`./${o}`;if(a.push(`Content:`),a.push(` Found ${e.totalCount} markdown files in ${s}`),e.sample.length>0){let t=e.sample.join(`, `),n=e.totalCount>e.sample.length?`, …`:``;a.push(` Sample: ${t}${n}`)}if(e.warnings.length>0)for(let t of e.warnings)a.push(` Warning: ${t}`);return a.push(``),r(t(i,`.ok`,`config.yml`))?(a.push(` To adjust scope, add patterns to .okignore at the project root.`),a.push(` To change the content root, edit .ok/config.yml → content.dir.`)):a.push(" Run `open-knowledge init` to scaffold config + .okignore."),a.push(``),a.push(` Re-check anytime: open-knowledge preview`),a.join(`
|
|
2
2
|
`)}export{c as n,l as t};
|
|
3
|
-
//# sourceMappingURL=preview-
|
|
3
|
+
//# sourceMappingURL=preview-DA8wTYdj.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./index-BSoHa32-.js";export{e as FeedbackForm};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./jsx-runtime-BUgB2tll.js";import{t as n}from"./react-f2sANaYj.js";import{n as r,r as i}from"./dist-Nvb76hAm.js";import{t as a}from"./compiler-runtime-BfE3aGVn.js";import{t as o}from"./button-RQ5o7P7w.js";import{a as s,c,i as l,n as u,o as d,s as f,t as p}from"./dialog-eak3pI7G.js";import{t as m}from"./checkbox-V0IoPAe3.js";import{a as h}from"./dist-PVtTd_Sj2.js";import{t as g}from"./createLucideIcon-BbftclCc.js";import{t as _}from"./check-BLuQ2zvV.js";import{r as v,t as y}from"./CopyButton-DysciFW5.js";import{t as b}from"./loader-circle-Coob8S41.js";import{n as ee}from"./BugReportHistory-DymFE_6x.js";import{t as te}from"./triangle-alert-DNTyNeem.js";import{t as ne}from"./input-BKUcczSW.js";import{t as re}from"./badge-B89o8Vy9.js";import{t as x}from"./external-link-BkNoUOYg.js";import{t as ie}from"./textarea-C5-cm3M6.js";import{n as ae}from"./clipboard-adapter-C4L1qX1X.js";var S=g(`archive`,[[`rect`,{width:`20`,height:`5`,x:`2`,y:`3`,rx:`1`,key:`1wp1u1`}],[`path`,{d:`M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8`,key:`1s80jp`}],[`path`,{d:`M10 12h4`,key:`a56b0p`}]]),oe=g(`shield`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}]]),se=a(),C=e(n(),1),w=t(),T=`support@inkeep.com`;function ce(e){return`mailto:${T}?subject=${encodeURIComponent(e)}`}function le(e){let t=(0,se.c)(7),{href:n}=e,r,i;t[0]===n?(r=t[1],i=t[2]):(r=e=>x(e,n),i=e=>x(e,n),t[0]=n,t[1]=r,t[2]=i);let a;return t[3]!==n||t[4]!==r||t[5]!==i?(a=(0,w.jsx)(`a`,{href:n,onClick:r,onAuxClick:i,className:`text-primary hover:underline`,children:T}),t[3]=n,t[4]=r,t[5]=i,t[6]=a):a=t[6],a}function ue(e,t){let n=e.trim();if(t===void 0)return n===``?void 0:n;let r=t.join(`
|
|
2
|
+
`);return n===``?r:`${n}\n\n${r}`}var de=25;function fe(e){return e.replace(/\(([^)]*)\)/,(e,t)=>{let n=t.split(/[/\\]/).pop();return n===void 0||n===``?e:`(${n})`})}function E(e){let t=e.split(`
|
|
3
|
+
`).map(e=>fe(e.trim())).filter(e=>e!==``);if(t.length===0)return[];let n=t.slice(0,de),r=t.length-n.length;return[`Component stack:`,...n,...r>0?[`... ${r} more frame(s) omitted`]:[]]}function pe(e){let t=[`Crash source: ${e.source}`];return e.docName!==void 0&&t.push(`Document: ${e.docName}`),e.errorMessage!==void 0&&t.push(`Error: ${e.errorMessage}`),e.componentStack!==void 0&&t.push(...E(e.componentStack)),t}function me(e){let t=[`Crash source: ${e.kind===`render-process-gone`?`renderer process crash (reason: ${e.context.reason})`:e.kind===`child-process-gone`?`${e.context.processType} process crash (reason: ${e.context.reason})`:e.context.dirtyShutdown?`previous session ended without a clean quit`:`new crash dump found from the previous session`}`,`Crash event: ${e.eventId}`];return e.kind===`boot`&&e.crashedAppVersion!==void 0&&t.push(`Crashed app version: ${e.crashedAppVersion}`),t}var he={step:`compose`,creating:!1,createError:null};function ge(e){return e>=1024*1024?`${(e/(1024*1024)).toFixed(1)} MB`:e>=1024?`${Math.max(1,Math.round(e/1024))} KB`:`${e} B`}function _e(e){return e.split(/[\\/]/).pop()??e}function ve(e){return e.summary.files.some(e=>e.startsWith(`extra/`)&&e!==h)}function D(e){let t=(0,se.c)(92),{open:n,onOpenChange:a,systemWide:g,crashContext:x,crashInvite:S,screenshot:T,crashDumpAvailable:de}=e,fe=g===void 0?!1:g,E=T===void 0?null:T,_e=de===void 0?!1:de,{_:D}=i(),[O,k]=(0,C.useState)(he),[A,Se]=(0,C.useState)(``),[j,Ce]=(0,C.useState)(x!==void 0||S!==void 0),M=S===void 0?_e:S.minidumpAvailable===!0,[N,we]=(0,C.useState)(S?.minidumpAvailable===!0),[P,Te]=(0,C.useState)(!0),[Ee,De]=(0,C.useState)(0),F=(0,C.useRef)(0),I=(0,C.useId)(),L=(0,C.useId)(),R=(0,C.useId)(),z=(0,C.useId)(),B=(0,C.useId)(),Oe=(0,C.useId)(),ke=(0,C.useId)(),Ae=(0,C.useId)(),je=(0,C.useId)(),Me=(0,C.useId)(),Ne=(0,C.useId)(),V=O.step===`sending`,Pe;t[0]!==x||t[1]!==S?(Pe=x===void 0?S===void 0?void 0:me(S):pe(x),t[0]=x,t[1]=S,t[2]=Pe):Pe=t[2];let H=Pe,Fe,Ie;t[3]===V?(Fe=t[4],Ie=t[5]):(Fe=()=>{if(!V)return;De(0);let e=Date.now(),t=setInterval(()=>{let t=(Date.now()-e)/1e3;De(Math.min(.9,1-Math.exp(-t/3)))},200);return()=>{clearInterval(t)}},Ie=[V],t[3]=V,t[4]=Fe,t[5]=Ie),(0,C.useEffect)(Fe,Ie);let Le;t[6]!==x||t[7]!==S||t[8]!==a||t[9]!==O.step?(Le=function(e){!e&&O.step===`sending`||(e||(F.current+=1,(O.step===`success`||O.step===`email`||O.step===`failure`)&&(Se(``),Ce(x!==void 0||S!==void 0),we(S?.minidumpAvailable===!0),Te(!0)),k(he)),a(e))},t[6]=x,t[7]=S,t[8]=a,t[9]=O.step,t[10]=Le):Le=t[10];let U=Le,Re;t[11]!==D||t[12]!==M||t[13]!==j||t[14]!==N||t[15]!==P||t[16]!==A||t[17]!==H||t[18]!==E?(Re=async function(){let e=window.okDesktop?.bugReport;if(!e){k({step:`compose`,creating:!1,createError:D({id:`_0JUKX`})});return}let t=F.current+=1;k({step:`compose`,creating:!0,createError:null});let n=await e.create({level:j?`full`:`standard`,note:ue(A,H),...M?{includeCrashDump:N}:{},...E===null?{}:{includeScreenshot:P}});F.current===t&&(n.ok?k({step:`review`,report:{zipPath:n.zipPath,zipSizeBytes:n.zipSizeBytes,summary:n.summary}}):k({step:`compose`,creating:!1,createError:n.error}))},t[11]=D,t[12]=M,t[13]=j,t[14]=N,t[15]=P,t[16]=A,t[17]=H,t[18]=E,t[19]=Re):Re=t[19];let ze=Re,W;t[20]!==A||t[21]!==H?(W=async function(e){let t=window.okDesktop?.bugReport;if(!t)return;let n=F.current+=1;k({step:`sending`,report:e});let r=await t.send({zipPath:e.zipPath,metadata:{level:e.summary.level,systemWide:e.summary.systemWide,projectSlug:e.summary.projectSlug,note:ue(A,H)},includeScreenshot:e.summary.files.includes(h)});F.current===n&&(r.ok?k({step:`success`,report:e,reference:r.reference}):r.reason===`email-draft`?k({step:`email`,report:e,mailtoUrl:r.fallback.mailtoUrl}):k({step:`failure`,report:e,mailtoUrl:r.fallback.mailtoUrl}))},t[20]=A,t[21]=H,t[22]=W):W=t[22];let G=W,Be;t[23]===Symbol.for(`react.memo_cache_sentinel`)?(Be=function(e){F.current+=1,k({step:`review`,report:e})},t[23]=Be):Be=t[23];let Ve=Be,He;t[24]===Symbol.for(`react.memo_cache_sentinel`)?(He=function(e){window.okDesktop?.shell.showItemInFolder(e)},t[24]=He):He=t[24];let Ue=He,We;t[25]===Symbol.for(`react.memo_cache_sentinel`)?(We=function(e){window.okDesktop?.shell.openExternal(e)},t[25]=We):We=t[25];let Ge=We,K;t[26]===Ee?K=t[27]:(K=Math.round(Ee*100),t[26]=Ee,t[27]=K);let Ke=K,qe=!V,q;t[28]!==D||t[29]!==x||t[30]!==M||t[31]!==S||t[32]!==j||t[33]!==B||t[34]!==z||t[35]!==ke||t[36]!==Oe||t[37]!==ze||t[38]!==U||t[39]!==N||t[40]!==P||t[41]!==R||t[42]!==L||t[43]!==A||t[44]!==I||t[45]!==O.createError||t[46]!==O.creating||t[47]!==O.step||t[48]!==E||t[49]!==je||t[50]!==Ae||t[51]!==fe||t[52]!==Ne?(q=O.step===`compose`&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsxs)(f,{children:[(0,w.jsx)(c,{children:(0,w.jsx)(r,{id:`cd5EXh`})}),S===void 0&&(0,w.jsx)(s,{children:(0,w.jsx)(r,{id:`rD-woT`})})]}),(0,w.jsxs)(u,{className:`flex flex-col gap-5`,children:[S!==void 0&&(0,w.jsxs)(`div`,{className:`flex items-start gap-2.5 rounded-md border border-chart-3/35 bg-chart-3/10 px-3 py-2.5 text-sm`,children:[(0,w.jsx)(te,{className:`mt-0.5 size-4 shrink-0 text-chart-3`,"aria-hidden":`true`}),(0,w.jsxs)(`div`,{children:[(0,w.jsx)(`p`,{className:`font-medium`,children:(0,w.jsx)(r,{id:`_IGfXZ`})}),(0,w.jsx)(s,{className:`mt-0.5 text-xs`,children:(0,w.jsx)(r,{id:`03wKPg`})})]})]}),O.createError!==null&&(0,w.jsxs)(`div`,{role:`alert`,className:`flex items-start gap-2.5 rounded-md border border-destructive/35 bg-destructive/10 px-3 py-2.5 text-sm`,children:[(0,w.jsx)(v,{className:`mt-0.5 size-4 shrink-0 text-destructive`,"aria-hidden":`true`}),(0,w.jsxs)(`div`,{children:[(0,w.jsx)(`p`,{className:`font-medium`,children:(0,w.jsx)(r,{id:`wVa83H`})}),(0,w.jsx)(`p`,{className:`mt-0.5 text-xs text-muted-foreground`,children:O.createError}),(0,w.jsx)(`p`,{className:`mt-0.5 text-xs text-muted-foreground`,children:(0,w.jsx)(r,{id:`5PHgV2`,components:{0:(0,w.jsx)(`code`,{className:`font-mono`})}})})]})]}),(0,w.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,w.jsxs)(`label`,{htmlFor:I,className:`text-sm font-medium`,children:[S===void 0?(0,w.jsx)(r,{id:`y_K0Dz`}):(0,w.jsx)(r,{id:`60vpJN`}),` `,(0,w.jsx)(`span`,{className:`font-normal text-muted-foreground`,children:(0,w.jsx)(r,{id:`NzluOx`})})]}),(0,w.jsx)(ie,{id:I,value:A,onChange:e=>Se(e.target.value),placeholder:D(S===void 0?{id:`YLMBSd`}:{id:`T3j-7o`}),rows:3,className:`resize-none`,disabled:O.creating})]}),(0,w.jsxs)(`div`,{role:`group`,"aria-labelledby":Ne,className:`flex flex-col gap-3.5`,children:[(0,w.jsxs)(`div`,{className:`flex flex-col gap-1.5`,children:[(0,w.jsx)(`p`,{id:Ne,className:`text-sm font-medium`,children:(0,w.jsx)(r,{id:`WJjviG`})}),S===void 0&&!M&&(0,w.jsx)(`p`,{className:`text-1sm text-muted-foreground`,children:x===void 0?(0,w.jsx)(r,{id:`2H43L8`}):(0,w.jsx)(r,{id:`GZzDqc`})})]}),(0,w.jsxs)(`div`,{className:`flex items-start gap-2.5`,children:[(0,w.jsx)(m,{id:L,checked:!0,disabled:!0,"aria-describedby":R,className:`mt-0.5`}),(0,w.jsxs)(`div`,{className:`flex flex-col gap-0.5`,children:[(0,w.jsxs)(`label`,{htmlFor:L,className:`flex items-center gap-2 text-sm font-medium text-foreground`,children:[(0,w.jsx)(r,{id:`FgRAvd`}),(0,w.jsx)(re,{variant:`primary`,className:`text-2xs`,children:(0,w.jsx)(r,{id:`C0hoX6`})})]}),(0,w.jsx)(`p`,{id:R,className:`text-1sm text-muted-foreground`,children:fe?(0,w.jsx)(r,{id:`ZoOlzR`}):(0,w.jsx)(r,{id:`2FnYUD`})})]})]}),(0,w.jsxs)(`div`,{className:`flex items-start gap-2.5`,children:[(0,w.jsx)(m,{id:z,checked:j,onCheckedChange:e=>Ce(e===!0),"aria-describedby":B,disabled:O.creating,className:`mt-0.5`}),(0,w.jsxs)(`div`,{className:`flex flex-col gap-0.5`,children:[(0,w.jsx)(`label`,{htmlFor:z,className:`text-sm font-medium`,children:(0,w.jsx)(r,{id:`zvjCD4`})}),(0,w.jsx)(`p`,{id:B,className:`text-1sm text-muted-foreground`,children:(0,w.jsx)(r,{id:`fRVBiq`})})]})]}),E!==null&&(0,w.jsxs)(`div`,{className:`flex items-start gap-2.5`,children:[(0,w.jsx)(m,{id:Ae,checked:P,onCheckedChange:e=>Te(e===!0),"aria-describedby":je,disabled:O.creating,className:`mt-0.5`}),(0,w.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-0.5`,children:[(0,w.jsx)(`label`,{htmlFor:Ae,className:`text-sm font-medium`,children:(0,w.jsx)(r,{id:`IxyZXD`})}),(0,w.jsx)(`p`,{id:je,className:`text-1sm text-muted-foreground`,children:(0,w.jsx)(r,{id:`yzYE4B`})}),(0,w.jsx)(`div`,{className:`mt-2 overflow-hidden rounded-md border bg-muted/40`,children:(0,w.jsx)(`img`,{src:E.dataUrl,alt:D({id:`WuntOK`}),className:`block max-h-44 w-full object-contain transition-opacity motion-reduce:transition-none ${P?`opacity-100`:`opacity-40`}`})})]})]}),M&&(0,w.jsxs)(`div`,{className:`flex items-start gap-2.5`,children:[(0,w.jsx)(m,{id:Oe,checked:N,onCheckedChange:e=>we(e===!0),"aria-describedby":ke,disabled:O.creating,className:`mt-0.5`}),(0,w.jsxs)(`div`,{className:`flex flex-col gap-0.5`,children:[(0,w.jsx)(`label`,{htmlFor:Oe,className:`text-sm font-medium`,children:(0,w.jsx)(r,{id:`8TvlHF`})}),(0,w.jsx)(`p`,{id:ke,className:`text-1sm text-muted-foreground`,children:(0,w.jsx)(r,{id:`jnCROW`})})]})]})]}),S===void 0&&x===void 0?(0,w.jsx)(ee,{}):null]}),(0,w.jsxs)(d,{children:[(0,w.jsx)(o,{variant:`ghost`,className:`font-mono uppercase`,onClick:()=>U(!1),children:S===void 0?(0,w.jsx)(r,{id:`dEgA5A`}):(0,w.jsx)(r,{id:`PBxg_E`})}),(0,w.jsxs)(o,{onClick:()=>void ze(),disabled:O.creating,children:[O.creating&&(0,w.jsx)(b,{className:`size-4 animate-spin motion-reduce:animate-none`,"aria-hidden":`true`}),(0,w.jsx)(r,{id:`Si7mIR`})]})]})]}),t[28]=D,t[29]=x,t[30]=M,t[31]=S,t[32]=j,t[33]=B,t[34]=z,t[35]=ke,t[36]=Oe,t[37]=ze,t[38]=U,t[39]=N,t[40]=P,t[41]=R,t[42]=L,t[43]=A,t[44]=I,t[45]=O.createError,t[46]=O.creating,t[47]=O.step,t[48]=E,t[49]=je,t[50]=Ae,t[51]=fe,t[52]=Ne,t[53]=q):q=t[53];let J;t[54]!==G||t[55]!==O.report||t[56]!==O.step?(J=O.step===`review`&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsxs)(f,{children:[(0,w.jsx)(c,{children:(0,w.jsx)(r,{id:`2AIVbm`})}),(0,w.jsx)(s,{children:(0,w.jsx)(r,{id:`3l_cXP`})})]}),(0,w.jsxs)(u,{className:`flex flex-col gap-4`,children:[(0,w.jsx)(xe,{zipPath:O.report.zipPath,zipSizeBytes:O.report.zipSizeBytes,fileCount:O.report.summary.files.length,rawDumpIncluded:ve(O.report),onReveal:Ue}),(0,w.jsxs)(`div`,{className:`flex items-start gap-2 rounded-md border bg-muted/50 px-3 py-2.5 text-xs text-muted-foreground`,children:[(0,w.jsx)(oe,{className:`size-3.5 shrink-0 text-muted-foreground`,"aria-hidden":`true`}),(0,w.jsx)(`span`,{children:(0,w.jsx)(r,{id:`-o5XAG`})})]})]}),(0,w.jsxs)(d,{className:`sm:justify-between`,children:[(0,w.jsx)(o,{variant:`ghost`,className:`font-mono uppercase`,onClick:()=>k(he),children:(0,w.jsx)(r,{id:`iH8pgl`})}),(0,w.jsx)(o,{onClick:()=>void G(O.report),children:(0,w.jsx)(r,{id:`O9oQJS`})})]})]}),t[54]=G,t[55]=O.report,t[56]=O.step,t[57]=J):J=t[57];let Y;t[58]!==D||t[59]!==O.report||t[60]!==O.step||t[61]!==Ke?(Y=O.step===`sending`&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsxs)(f,{children:[(0,w.jsx)(c,{children:(0,w.jsx)(r,{id:`M5_9s2`})}),(0,w.jsx)(s,{className:`sr-only`,children:(0,w.jsx)(r,{id:`MJqRO6`})})]}),(0,w.jsxs)(u,{className:`flex flex-col gap-3`,children:[(0,w.jsxs)(`div`,{role:`status`,className:`flex items-center gap-2.5 text-sm`,children:[(0,w.jsx)(b,{className:`size-4 shrink-0 animate-spin text-primary motion-reduce:animate-none`,"aria-hidden":`true`}),(0,w.jsx)(r,{id:`qmL1UG`}),(0,w.jsx)(`span`,{className:`ml-auto text-xs text-muted-foreground`,children:(0,w.jsx)(r,{id:`JJcBCm`,values:{0:ge(O.report.zipSizeBytes)}})})]}),(0,w.jsx)(`div`,{role:`progressbar`,"aria-label":D({id:`M5_9s2`}),className:`h-1.5 overflow-hidden rounded-full bg-secondary`,children:(0,w.jsx)(`div`,{className:`h-full rounded-full bg-primary`,style:{width:`${Ke}%`}})})]}),(0,w.jsxs)(d,{className:`sm:justify-between`,children:[(0,w.jsx)(o,{variant:`ghost`,className:`font-mono uppercase`,onClick:()=>Ve(O.report),children:(0,w.jsx)(r,{id:`dEgA5A`})}),(0,w.jsx)(o,{disabled:!0,children:(0,w.jsx)(r,{id:`O9oQJS`})})]})]}),t[58]=D,t[59]=O.report,t[60]=O.step,t[61]=Ke,t[62]=Y):Y=t[62];let X;t[63]!==D||t[64]!==U||t[65]!==O.reference||t[66]!==O.step||t[67]!==Me?(X=O.step===`success`&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(u,{children:(0,w.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[(0,w.jsxs)(`div`,{role:`status`,className:`flex flex-col gap-3`,children:[(0,w.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,w.jsx)(_,{className:`size-5 shrink-0 text-primary`,"aria-hidden":`true`}),(0,w.jsx)(c,{children:(0,w.jsx)(r,{id:`IYciRC`})})]}),(0,w.jsx)(s,{children:(0,w.jsx)(r,{id:`2myNzt`})})]}),(0,w.jsxs)(`div`,{className:`flex flex-col gap-1.5`,children:[(0,w.jsx)(`label`,{htmlFor:Me,className:`text-sm font-medium`,children:(0,w.jsx)(r,{id:`M-IF14`})}),(0,w.jsxs)(`div`,{className:`relative`,children:[(0,w.jsx)(ne,{id:Me,readOnly:!0,value:O.reference,onFocus:be,onClick:ye,className:`select-all bg-muted pr-9 font-mono text-sm font-medium tracking-wide`}),(0,w.jsx)(`div`,{className:`absolute inset-y-0 right-1 flex items-center`,children:(0,w.jsx)(y,{copyContent:O.reference,clipboardWrite:ae})})]})]}),(0,w.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:(0,w.jsx)(r,{id:`fxJk_6`,components:{0:(0,w.jsx)(`span`,{className:`font-medium text-foreground`}),1:(0,w.jsx)(le,{href:ce(D({id:`qEEfPk`,values:{0:O.reference}}))})}})})]})}),(0,w.jsx)(d,{children:(0,w.jsx)(o,{onClick:()=>U(!1),children:(0,w.jsx)(r,{id:`DPfwMq`})})})]}),t[63]=D,t[64]=U,t[65]=O.reference,t[66]=O.step,t[67]=Me,t[68]=X):X=t[68];let Z;t[69]!==U||t[70]!==O.mailtoUrl||t[71]!==O.report||t[72]!==O.step?(Z=O.step===`email`&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsxs)(f,{children:[(0,w.jsx)(c,{children:(0,w.jsx)(r,{id:`6zzhQL`})}),(0,w.jsx)(s,{children:(0,w.jsx)(r,{id:`UTgWxm`})})]}),(0,w.jsxs)(u,{className:`flex flex-col gap-4`,children:[(0,w.jsx)(xe,{zipPath:O.report.zipPath,zipSizeBytes:O.report.zipSizeBytes,fileCount:O.report.summary.files.length,rawDumpIncluded:ve(O.report),onReveal:Ue}),(0,w.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:(0,w.jsx)(r,{id:`9XIEYq`,components:{0:(0,w.jsx)(le,{href:O.mailtoUrl})}})})]}),(0,w.jsxs)(d,{className:`sm:justify-between`,children:[(0,w.jsx)(o,{variant:`ghost`,className:`font-mono uppercase`,onClick:()=>U(!1),children:(0,w.jsx)(r,{id:`yz7wBu`})}),(0,w.jsx)(o,{onClick:()=>Ge(O.mailtoUrl),children:(0,w.jsx)(r,{id:`GuaJb-`})})]})]}),t[69]=U,t[70]=O.mailtoUrl,t[71]=O.report,t[72]=O.step,t[73]=Z):Z=t[73];let Q;t[74]!==U||t[75]!==G||t[76]!==O.mailtoUrl||t[77]!==O.report||t[78]!==O.step?(Q=O.step===`failure`&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsxs)(f,{children:[(0,w.jsx)(c,{children:(0,w.jsx)(r,{id:`Wi-VWy`})}),(0,w.jsx)(s,{className:`sr-only`,children:(0,w.jsx)(r,{id:`1OKzC_`})})]}),(0,w.jsxs)(u,{className:`flex flex-col gap-4`,children:[(0,w.jsxs)(`div`,{role:`alert`,className:`flex items-start gap-2.5 rounded-md border border-destructive/35 bg-destructive/10 px-3 py-2.5 text-sm`,children:[(0,w.jsx)(v,{className:`mt-0.5 size-4 shrink-0 text-destructive`,"aria-hidden":`true`}),(0,w.jsxs)(`div`,{children:[(0,w.jsx)(`p`,{className:`font-medium`,children:(0,w.jsx)(r,{id:`Oawo4U`})}),(0,w.jsx)(`p`,{className:`mt-0.5 text-xs text-muted-foreground`,children:(0,w.jsx)(r,{id:`2-CeZn`})})]})]}),(0,w.jsx)(xe,{zipPath:O.report.zipPath,zipSizeBytes:O.report.zipSizeBytes,fileCount:null,rawDumpIncluded:ve(O.report),onReveal:Ue}),(0,w.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:(0,w.jsx)(r,{id:`9XIEYq`,components:{0:(0,w.jsx)(le,{href:O.mailtoUrl})}})})]}),(0,w.jsxs)(d,{className:`sm:justify-between`,children:[(0,w.jsx)(o,{variant:`ghost`,className:`font-mono uppercase`,onClick:()=>U(!1),children:(0,w.jsx)(r,{id:`yz7wBu`})}),(0,w.jsxs)(`div`,{className:`flex flex-col-reverse gap-2 sm:flex-row`,children:[(0,w.jsx)(o,{variant:`outline`,className:`font-mono uppercase`,onClick:()=>void G(O.report),children:(0,w.jsx)(r,{id:`KDw4GX`})}),(0,w.jsx)(o,{onClick:()=>Ge(O.mailtoUrl),children:(0,w.jsx)(r,{id:`GuaJb-`})})]})]})]}),t[74]=U,t[75]=G,t[76]=O.mailtoUrl,t[77]=O.report,t[78]=O.step,t[79]=Q):Q=t[79];let $;t[80]!==qe||t[81]!==q||t[82]!==J||t[83]!==Y||t[84]!==X||t[85]!==Z||t[86]!==Q?($=(0,w.jsxs)(l,{className:`sm:max-w-2xl`,showCloseButton:qe,children:[q,J,Y,X,Z,Q]}),t[80]=qe,t[81]=q,t[82]=J,t[83]=Y,t[84]=X,t[85]=Z,t[86]=Q,t[87]=$):$=t[87];let Je;return t[88]!==U||t[89]!==n||t[90]!==$?(Je=(0,w.jsx)(p,{open:n,onOpenChange:U,children:$}),t[88]=U,t[89]=n,t[90]=$,t[91]=Je):Je=t[91],Je}function ye(e){return e.currentTarget.select()}function be(e){return e.currentTarget.select()}function xe(e){let t=(0,se.c)(23),{zipPath:n,zipSizeBytes:i,fileCount:a,rawDumpIncluded:s,onReveal:c}=e,l;t[0]===n?l=t[1]:(l=_e(n),t[0]=n,t[1]=l);let u=l,d;t[2]===i?d=t[3]:(d=ge(i),t[2]=i,t[3]=d);let f=d,p;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,w.jsx)(`div`,{className:`flex items-center justify-center size-8 rounded-md bg-muted`,children:(0,w.jsx)(S,{className:`size-4 shrink-0 text-muted-foreground`,"aria-hidden":`true`})}),t[4]=p):p=t[4];let m;t[5]===u?m=t[6]:(m=(0,w.jsx)(`p`,{className:`truncate text-1sm`,title:u,children:u}),t[5]=u,t[6]=m);let h;t[7]!==a||t[8]!==s||t[9]!==f?(h=(0,w.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:a===null?s?(0,w.jsx)(r,{id:`_FLBbi`,values:{sizeText:f}}):(0,w.jsx)(r,{id:`89y7ar`,values:{sizeText:f}}):s?(0,w.jsx)(r,{id:`sn5BEU`,values:{sizeText:f,fileCount:a}}):(0,w.jsx)(r,{id:`3DJEEt`,values:{sizeText:f,fileCount:a}})}),t[7]=a,t[8]=s,t[9]=f,t[10]=h):h=t[10];let g;t[11]!==m||t[12]!==h?(g=(0,w.jsxs)(`div`,{className:`min-w-0 flex-1 space-y-0.5`,children:[m,h]}),t[11]=m,t[12]=h,t[13]=g):g=t[13];let _;t[14]!==c||t[15]!==n?(_=()=>c(n),t[14]=c,t[15]=n,t[16]=_):_=t[16];let v;t[17]===Symbol.for(`react.memo_cache_sentinel`)?(v=(0,w.jsx)(r,{id:`LtSYdi`}),t[17]=v):v=t[17];let y;t[18]===_?y=t[19]:(y=(0,w.jsx)(o,{variant:`link`,className:`h-auto shrink-0 p-0 text-xs`,onClick:_,children:v}),t[18]=_,t[19]=y);let b;return t[20]!==g||t[21]!==y?(b=(0,w.jsxs)(`div`,{className:`flex items-center gap-2.5 rounded-md border px-3 py-2.5`,children:[p,g,y]}),t[20]=g,t[21]=y,t[22]=b):b=t[22],b}export{D as default};
|