1import{u as o,a as r,aJ as s,aK as m}from"./index-a1sN8VY_.js";import{c as d}from"./createToolFlow-BB8VivOj.js";import{u as p}from"./useBaseTool-CVpjH0lc.js";import u from"./RemoveBlanksSettings-Bq0vJm4C.js";import"./vendor-react-CW0cBZaz.js";import"./pdf-engine-DkeLIkTF.js";import"./ToolStep-Curr4moQ.js";import"./Undo-HulwD6jH.js";import"./TextFields-DfF3ytsK.js";import"./useViewScopedFiles-B_R8NRBe.js";import"./NumberInputWithUnit-Bw2jrMME.js";import"./Slider-DqqOO35z.js";import"./use-move-BtCjQEOr.js";const h=()=>{const{t:e}=o();return{header:{title:e("removeBlanks.tooltip.header.title","Remove Blank Pages Settings")},tips:[{title:e("removeBlanks.tooltip.threshold.title","Pixel Whiteness Threshold"),description:e("removeBlanks.tooltip.threshold.text","Controls how white a pixel must be to be considered 'white'. This helps determine what counts as a blank area on the page."),bullets:[e("removeBlanks.tooltip.threshold.bullet1","0 = Pure black (most restrictive)"),e("removeBlanks.tooltip.threshold.bullet2","128 = Medium gray"),e("removeBlanks.tooltip.threshold.bullet3","255 = Pure white (least restrictive)")]},{title:e("removeBlanks.tooltip.whitePercent.title","White Percentage Threshold"),description:e("removeBlanks.tooltip.whitePercent.text","Sets the minimum percentage of white pixels required for a page to be considered blank and removed."),bullets:[e("removeBlanks.tooltip.whitePercent.bullet1","Lower values (e.g., 80%) = More pages removed"),e("removeBlanks.tooltip.whitePercent.bullet2","Higher values (e.g., 95%) = Only very blank pages removed"),e("removeBlanks.tooltip.whitePercent.bullet3","Use higher values for documents with light backgrounds")]},{title:e("removeBlanks.tooltip.includeBlankPages.title","Include Detected Blank Pages"),description:e("removeBlanks.tooltip.includeBlankPages.text","When enabled, creates a separate PDF containing all the blank pages that were detected and removed from the original document."),bullets:[e("removeBlanks.tooltip.includeBlankPages.bullet1","Useful for reviewing what was removed"),e("removeBlanks.tooltip.includeBlankPages.bullet2","Helps verify the detection accuracy"),e("removeBlanks.tooltip.includeBlankPages.bullet3","Can be disabled to reduce output file size")]}]}},c=e=>{const{t:l}=o(),a=h(),t=p("remove-blanks",m,s,e),i=r.jsx(u,{parameters:t.params.parameters,onParameterChange:t.params.updateParameter,disabled:t.endpointLoading}),n=()=>{t.hasResults&&t.handleSettingsReset()};return d({files:{selectedFiles:t.selectedFiles,isCollapsed:t.hasResults},steps:[{title:l("removeBlanks.settings.title","Settings"),isCollapsed:t.settingsCollapsed,onCollapsedClick:n,content:i,tooltip:a}],executeButton:{text:l("removeBlanks.submit","Remove blank pages"),loadingText:l("loading"),onClick:t.handleExecute,isVisible:!t.hasResults,endpointEnabled:t.endpointEnabled,paramsValid:t.params.validateParameters()},review:{isVisible:t.hasResults,operation:t.operation,title:l("removeBlanks.results.title","Removed Blank Pages"),onFileClick:t.handleThumbnailClick,onUndo:t.handleUndo}})};c.tool=()=>s;export{c 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.