PageSourceSearch

https://stirling.com/app/assets/TimestampPdf-ByWlpkVD.js

js stirling.com collected 2026-09-25 21:09:07 UTC 2,402 bytes, 1 lines download raw bytes

1import{h as d,r as n,j as i,S as h,k as p,n as P}from"./vendor-ui-CS0mnPFt.js";import{c as S}from"./createToolFlow-C4zWLjrN.js";import{a7 as x,a8 as C,a9 as u,aa as U}from"./index-C_aFVV9u.js";import{u as b}from"./useBaseTool-BSBw1Chw.js";import"./vendor-i18n-Duaa3CPZ.js";import"./vendor-zip-MQ9XS9sB.js";import"./vendor-posthog-BTegTnBq.js";import"./PrivateContent-5HmopU0L.js";import"./DocumentThumbnail-T25PCzpJ.js";import"./vendor-embedpdf-DPr2xF0N.js";import"./vendor-pdfjs-qeL0KTy0.js";import"./vendor-supabase-BDX6J8AV.js";import"./useViewScopedFiles-BhlXdGH7.js";const g=({parameters:l,onParameterChange:s,disabled:e=!1})=>{const{t:o}=d(),{config:a}=x(),m=n.useRef(!1),r=a?.timestampTsaPresets??C,c=new Set(r.map(t=>t.url)),f=(a?.timestampCustomTsaUrls??[]).filter(t=>!c.has(t)),T=[...r.map(t=>({value:t.url,label:t.label})),...f.map(t=>({value:t,label:t}))];return n.useEffect(()=>{if(!m.current&&a?.timestampDefaultTsaUrl){m.current=!0;const t=a.timestampDefaultTsaUrl;t&&t!==l.tsaUrl&&s("tsaUrl",t)}},[a?.timestampDefaultTsaUrl]),i.jsxs(h,{gap:"md",children:[i.jsx(p,{size:"sm",fw:500,children:o("timestampPdf.options.title","Timestamp Server (TSA)")}),i.jsx(P,{label:o("timestampPdf.options.tsaUrl.label","Select a TSA server"),description:o("timestampPdf.options.tsaUrl.desc","Pick a trusted Time Stamp Authority"),data:T,value:l.tsaUrl,onChange:t=>s("tsaUrl",t??r[0].url),disabled:e}),i.jsx(p,{size:"xs",c:"dimmed",children:o("timestampPdf.options.note","Only a SHA-256 hash of your document is sent to the TSA server; the PDF file itself is never sent to the TSA server.")})]})},A=l=>{const{t:s}=d(),e=b("timestampPdf",U,u,l);return S({files:{selectedFiles:e.selectedFiles,isCollapsed:e.hasResults},steps:[{title:s("timestampPdf.steps.settings","Settings"),isCollapsed:e.settingsCollapsed,onCollapsedClick:e.settingsCollapsed?e.handleSettingsReset:void 0,content:i.jsx(g,{parameters:e.params.parameters,onParameterChange:e.params.updateParameter,disabled:e.endpointLoading})}],executeButton:{text:s("timestampPdf.submit","Apply Timestamp"),isVisible:!e.hasResults,loadingText:s("loading"),onClick:e.handleExecute,disabled:!e.params.validateParameters()||!e.hasFiles||!e.endpointEnabled},review:{isVisible:e.hasResults,operation:e.operation,title:s("timestampPdf.results","Timestamp Results"),onFileClick:e.handleThumbnailClick,onUndo:e.handleUndo}})};A.tool=()=>u;export{A as default};

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.