PageSourceSearch

https://app.gonitro.com/chunk-Z66JRO6L.js

js gonitro.com collected 2026-10-01 08:59:38 UTC 13,123 bytes, 1 lines download raw bytes

1import{a as B,e as N,g as v,h as X}from"./chunk-ZGLA4FVK.js";import{a as Re,b as ge,c as Te,d as Se,e as ke,f as P,g as S,h as y,i as Ee,j as k,k as be,l as he,m as De}from"./chunk-2CSFK344.js";import{c as _e}from"./chunk-ARRG6PC6.js";import"./chunk-HEIRLCEY.js";import"./chunk-XF3SG6XV.js";import{Da as ce,a as le,ta as de}from"./chunk-VTA3GAPG.js";import{a as pe,m as Ce}from"./chunk-JIWAHQIF.js";import{F as L,w as me}from"./chunk-XSBBHJD2.js";import{Oa as ue,Qa as fe}from"./chunk-ATY74AED.js";import{Ab as _,Bb as A,Da as V,Fe as Y,Gc as h,Hc as D,Jb as T,Lc as K,Lk as Z,Mb as $,Mc as u,Mk as ee,Nb as z,Oj as F,Ok as te,Rk as oe,Sa as m,Tb as p,Tj as Q,Uk as ne,Vb as r,Ve as J,Vk as ie,Wk as ae,Xk as re,_h as O,dc as H,eb as w,fc as b,gl as se,ic as U,jc as G,li as I,oa as i,pb as E,qa as q,sa as s,sb as R,ta as l,tb as g,yb as f,yc as W,zb as c}from"./chunk-Y7YV4OAR.js";import"./chunk-C6BZFLMK.js";import"./chunk-55L2N4O6.js";var x="redact";var M=oe(re({workspaceActive:!1}),ne((n,d=i(v),t=i(N),o=i(pe))=>({limitViolation:u(()=>ue(o()??me,"smartRedact",d.file(),t.pageCount()))})),ae((n,d=i(X))=>({leaveMode(){let t=d.availableModes().find(o=>o.key!==x);t&&d.activateMode(t.key)}})),ie((n,d=i(X),t=i(v),o=i(B),e=i(k),a=i(F))=>({onInit(){V(()=>{let C=d.activeModeKey()===x&&t.documentReady()&&n.limitViolation()===null;K(()=>{C!==n.workspaceActive()&&(te(n,{workspaceActive:C}),e.onSidebarChanged(C),C||o.resetCanvasInteraction())})}),V(()=>{let C=n.limitViolation();d.activeModeKey()!==x||!t.documentReady()||C===null||K(()=>{let j=fe($localize`Smart Redact`,C);a.open({title:j.title,content:j.message,actions:[{text:$localize`OK`,themeColor:"primary"}]}),n.leaveMode()})})}})));function ve(){let n=i(v),d=i(N),t=i(B);return{viewer:n.viewer,document:d,file:n.file,loading:u(()=>!n.documentReady()),setTool:o=>t.setCanvasInteraction(o==="select"?"select":"other",o==="draw"?"crosshair":""),reloadDocument:o=>n.openFile(o)}}var xe={show:()=>{},hide:()=>{}};function Me(){return[...De,{provide:Ee,useValue:xe},{provide:Ce,useFactory:ve},M,q(()=>{i(S),i(k),i(y),i(M),i(be).setupShortcut()})]}function Oe(n,d){if(n&1){let t=T();c(0,"div",2)(1,"p",9),$(2,0),A(3,"strong"),z(),_(),c(4,"button",10),h(5,"faToSvgIcon"),p("click",function(){s(t);let e=r();return l(e.openLearnMore())}),_()()}if(n&2){let t=r();m(4),f("title",t.learnMoreTooltip)("svgIcon",D(5,3,t.infoIcon)),E("aria-label",t.learnMoreTooltip)}}function Ie(n,d){if(n&1&&(c(0,"div",4)(1,"message-box",11)(2,"h5",12),U(3),_(),c(4,"p",13),U(5),_()()()),n&2){let t,o,e=r();m(3),G((t=e.store.scanError())==null?null:t.errorTitle),m(2),G((o=e.store.scanError())==null?null:o.errorMessage)}}function Fe(n,d){if(n&1){let t=T();c(0,"pdf-reader-feature-redaction-tabs",14),p("manageCustomTermsClicked",function(){s(t);let e=r();return l(e.dispatch.customTermsModalOpened())}),_()}}function Le(n,d){if(n&1){let t=T();c(0,"pdf-reader-ui-redaction-actions",15),p("applyRedaction",function(){s(t);let e=r();return l(e.confirmApply())})("addReasonClicked",function(){s(t);let e=r();return l(e.dispatch.bulkReasonScreenOpened())})("cancelRedaction",function(){s(t);let e=r();return l(e.workspace.leaveMode())})("clearAll",function(){s(t);let e=r();return l(e.dispatch.clearAllModalOpened())})("saveDraft",function(){s(t);let e=r();return l(e.dispatch.saveDraftRequested())}),_()}if(n&2){let t=r();f("isLoading",t.store.isBusy())("totalRedactionItems",t.store.totalSelectedItems())("hasRedactionMarks",t.store.hasRedactionMarks())("redactionSessionId",t.store.redactionSessionId())("showAddReason",t.bulkLabelsEnabled())("showSaveDraft",t.saveDraftEnabled())("canSaveDraft",t.store.canSaveDraft())("isSavingDraft",t.store.isSavingDraft())}}function Pe(n,d){if(n&1){let t=T();c(0,"p",7),$(1,1),c(2,"button",16),p("click",function(){s(t);let e=r();return l(e.openDisclaimer())}),_(),z(),_()}}function ye(n,d){if(n&1){let t=T();c(0,"pdf-reader-ui-redaction-bulk-labels",17),p("back",function(){s(t);let e=r();return l(e.dispatch.bulkReasonScreenClosed())})("reasonFilterChanged",function(e){s(t);let a=r();return l(a.dispatch.bulkReasonFilterSelected({filter:e}))})("selectAllToggled",function(e){s(t);let a=r();return l(a.dispatch.bulkReasonSelectionToggled({itemIds:a.bulkLabelsStore.filteredItemIds(),enabled:e===!0}))})("selectionChanged",function(e){s(t);let a=r();return l(a.dispatch.bulkReasonSelectionToggled(e))})("categoryToggled",function(e){s(t);let a=r();return l(a.dispatch.bulkReasonCategoryToggled(e))})("categoryCompleted",function(e){s(t);let a=r();return l(a.dispatch.bulkReasonCategoryCompleted(e))})("navigationRequested",function(e){s(t);let a=r();return l(a.dispatch.navigateToRedaction(e))})("reasonSelected",function(e){s(t);let a=r();return l(a.dispatch.bulkReasonPicked({reason:e}))})("reasonCleared",function(){s(t);let e=r();return l(e.dispatch.bulkReasonPicked({reason:null}))})("itemReasonCleared",function(e){s(t);let a=r();return l(a.bulkLabelsStore.clearItemReason(e))})("save",function(){s(t);let e=r();return l(e.bulkLabelsStore.save())}),_()}if(n&2){let t=r();f("open",t.componentStore.bulkReasonScreenOpen())("items",t.bulkLabelsStore.filteredItems())("selectedItemIds",t.bulkLabelsStore.selectedItemIds())("selectAllState",t.bulkLabelsStore.selectAllState())("selectedCount",t.bulkLabelsStore.selectedCount())("reasonFilter",t.bulkLabelsStore.reasonFilter())("reasonCounts",t.bulkLabelsStore.reasonCounts())("reasonOptions",t.bulkLabelsStore.reasonOptions())("selectedReason",t.bulkLabelsStore.selectedReason())}}var Be=(()=>{class n{constructor(){this.store=i(S),this.componentStore=i(k),this.bulkLabelsStore=i(y),this.workspace=i(M),this.dispatch=L(P),this.featureToggleService=i(se),this.dialogService=i(F),this.analytics=i(Z),this.bulkLabelsEnabled=u(()=>this.featureToggleService.isEnabled("redactionBulkLabels")),this.saveDraftEnabled=u(()=>this.featureToggleService.isEnabled("smartRedactSaveDraft")),this.infoIcon=le,this.learnMoreTooltip=$localize`Learn more about the type of information automatically detected by Smart Redact`}openLearnMore(){this.dialogService.open({content:Re,width:464,title:$localize`How Smart Redact Works`}),this.analytics.record({eventName:"ReaderRedactionAboutDialogOpened",eventContext:"Clicked"})}openDisclaimer(){this.dialogService.open({content:Se,width:500,title:$localize`Disclaimer`})}confirmApply(){let t=this.dialogService.open({content:ke,width:430,title:$localize`Finalize Redaction`,cssClass:"k-text-start",htmlAttributes:{"data-testid":"confirm-redact-modal"}});t.result.subscribe(o=>{if(o==="redact"){this.dispatch.applyRedactionRequested();return}t.close(),this.dispatch.applyRedactionDismissed()})}static{this.\u0275fac=function(o){return new(o||n)}}static{this.\u0275cmp=w({type:n,selectors:[["redact-panel"]],hostAttrs:[1,"k-pos-relative","k-d-flex","k-flex-col","k-flex-1","k-min-h-0","k-overflow-x-hidden"],decls:7,vars:14,consts:()=>{let t;t=$localize` Define the content to redact, then select ${"\uFFFD#3\uFFFD"}:START_TAG_STRONG:Finalize Redaction${"\uFFFD/#3\uFFFD"}:CLOSE_TAG_STRONG: to create a new file with the chosen content permanently removed. `;let o;return o=$localize` Always review Smart Redact AI suggestions. See our ${"\uFFFD#2\uFFFD"}:START_TAG_BUTTON: disclaimer${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_BUTTON:. `,[t,o,["data-testid","redact-description",1,"k-d-flex","k-align-items-start","k-gap-1","k-px-4","k-pb-2","k-flex-shrink-0"],[1,"k-flex-1","k-min-h-0","k-overflow-y-auto","k-overflow-x-hidden","k-box-sizing-border","k-w-full"],[1,"k-mt-5"],["data-testid","redaction-tabs"],[3,"isLoading","totalRedactionItems","hasRedactionMarks","redactionSessionId","showAddReason","showSaveDraft","canSaveDraft","isSavingDraft"],["data-testid","disclaimer",1,"k-text-center","k-font-size-sm","k-d-flex","k-align-items-center","k-justify-content-center","k-gap-1","k-my-md","k-mx-0","k-h-3"],[3,"open","items","selectedItemIds","selectAllState","selectedCount","reasonFilter","reasonCounts","reasonOptions","selectedReason"],[1,"description","k-flex-1","k-m-0","k-font-size-sm"],["kendoButton","","fillMode","flat","size","small","data-testid","redact-learn-more","kendoTooltip","","position","left",1,"k-flex-shrink-0",3,"click","title","svgIcon"],["themeColor","error"],[1,"k-font-medium","k-m-0"],[1,"k-mb-0"],["data-testid","redaction-tabs",3,"manageCustomTermsClicked"],[3,"applyRedaction","addReasonClicked","cancelRedaction","clearAll","saveDraft","isLoading","totalRedactionItems","hasRedactionMarks","redactionSessionId","showAddReason","showSaveDraft","canSaveDraft","isSavingDraft"],["kendoButton","","fillMode","link","size","small",1,"k-text-underline","!k-font-size-sm","!k-p-0",3,"click"],[3,"back","reasonFilterChanged","selectAllToggled","selectionChanged","categoryToggled","categoryCompleted","navigationRequested","reasonSelected","reasonCleared","itemReasonCleared","save","open","items","selectedItemIds","selectAllState","selectedCount","reasonFilter","reasonCounts","reasonOptions","selectedReason"]]},template:function(o,e){o&1&&(R(0,Oe,6,5,"div",2),c(1,"div",3),R(2,Ie,6,2,"div",4),R(3,Fe,1,0,"pdf-reader-feature-redaction-tabs",5),_(),R(4,Le,1,8,"pdf-reader-ui-redaction-actions",6),R(5,Pe,3,0,"p",7),R(6,ye,1,9,"pdf-reader-ui-redaction-bulk-labels",8)),o&2&&(g(e.store.isBusy()?-1:0),m(),b("k-px-4",!e.store.isBusy())("k-d-flex",e.store.isBusy())("k-align-items-center",e.store.isBusy())("k-justify-content-center",e.store.isBusy()),m(),g(!e.store.isBusy()&&e.store.isPageLimitError()?2:-1),m(),g(e.store.isPageLimitError()?-1:3),m(),g(e.store.scanError()?-1:4),m(),g(!e.store.isBusy()&&!e.store.isPageLimitError()?5:-1),m(),g(e.bulkLabelsEnabled()?6:-1))},dependencies:[O,ce,de,ge,Te,he,I],styles:[".description[_ngcontent-%COMP%]{line-height:150%}  pdf-reader-ui-page.pdf-selection-active:not(.pdf-selection-anchor) .page *{-webkit-user-select:none!important;user-select:none!important;pointer-events:none!important}  .pdf-reader-progress-dialog .k-dialog-titlebar-actions{display:none}[_nghost-%COMP%]     kendo-skeleton.skeleton-text, [_nghost-%COMP%]     kendo-skeleton.skeleton-item, [_nghost-%COMP%]     kendo-skeleton.skeleton-item-small, [_nghost-%COMP%]     kendo-skeleton.skeleton-item-medium{height:20px}[_nghost-%COMP%]     kendo-skeleton.skeleton-text{height:16px}"]})}}return n})();var Ne=n=>({redactionSessionId:n}),Ve=(()=>{class n{constructor(){this.store=i(S),this.dispatch=L(P),this.drawBoxesIcon=Y,this.selectTextIcon=J,this.drawBoxesTooltip=$localize`Draw redaction boxes over the content you want to redact. You can move and resize the boxes before you apply redaction.`,this.selectTextTooltip=$localize`Select the text you want to redact.`,this.toolsDisabled=u(()=>this.store.isBusy()||this.store.scanFailed()),this.previewDisabled=u(()=>this.store.isBusy()||this.store.scanError()!==null||!this.store.hasRedactionMarks())}onDrawBoxesClicked(){this.dispatch.manualRedactionToggled({enabled:!this.store.manualRedactionEnabled()})}onSelectTextClicked(){this.dispatch.textSelectionToggled({enabled:!this.store.textSelectionEnabled()})}static{this.\u0275fac=function(o){return new(o||n)}}static{this.\u0275cmp=w({type:n,selectors:[["redact-mode-toolbar"]],hostAttrs:[1,"k-d-flex","k-align-items-center","k-gap-0-5"],decls:7,vars:23,consts:()=>{let t;t=$localize`Draw Boxes`;let o;o=$localize`Select Text`;let e;return e=$localize`Preview Mode`,[["previewSwitch",""],["kendoButton","","fillMode","solid","themeColor","dark","size","large","data-testid","redact-draw-boxes-tool","aria-label",t,3,"click","title","svgIcon","disabled"],["kendoButton","","fillMode","solid","themeColor","dark","size","large","data-testid","redact-select-text-tool","aria-label",o,3,"click","title","svgIcon","disabled"],["size","small","data-testid","redact-preview-toggle","analyticsLogClick","ReaderRedactionPreviewToggled",1,"k-mx-1",3,"valueChange","analyticsLogContext","analyticsLogDetails","checked","disabled"],["text",e,1,"k-text-app-surface","k-cursor-pointer","k-whitespace-nowrap","k-mr-1",3,"for"]]},template:function(o,e){if(o&1&&(c(0,"button",1),h(1,"faToSvgIcon"),p("click",function(){return e.onDrawBoxesClicked()}),_(),c(2,"button",2),h(3,"faToSvgIcon"),p("click",function(){return e.onSelectTextClicked()}),_(),c(4,"kendo-switch",3,0),p("valueChange",function(){return e.dispatch.previewToggled()}),_(),A(6,"kendo-label",4)),o&2){let a=H(5);b("k-selected",e.store.manualRedactionEnabled()),f("title",e.drawBoxesTooltip)("svgIcon",D(1,17,e.drawBoxesIcon))("disabled",e.toolsDisabled()),E("aria-pressed",e.store.manualRedactionEnabled()),m(2),b("k-selected",e.store.textSelectionEnabled()),f("title",e.selectTextTooltip)("svgIcon",D(3,19,e.selectTextIcon))("disabled",e.toolsDisabled()),E("aria-pressed",e.store.textSelectionEnabled()),m(2),f("analyticsLogContext",e.store.previewEnabled()?"Off":"On")("analyticsLogDetails",W(21,Ne,e.store.redactionSessionId()??""))("checked",e.store.previewEnabled())("disabled",e.previewDisabled()),m(2),f("for",a)}},dependencies:[O,_e,Q,ee,I],encapsulation:2})}}return n})();export{x as REDACT_MODE_KEY,Ve as RedactModeToolbarComponent,Be as RedactPanelComponent,Me as redactModeProviders};

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.