//{"name":"DataShredder","version":"1.2.868","created":"2023-01-09T12:52:52.729Z"} import{SvelteComponent as e,init as t,safe_not_equal as n,create_component as r,mount_component as s,transition_in as i,transition_out as a,destroy_component as l,component_subscribe as d,element as c,space as o,set_custom_element_data as u,attr as p,insert as h,append as f,listen as m,detach as g,run_all as $,text as b,noop as k,set_data as _,append_styles as v,empty as S,destroy_each as x,handle_promise as y,update_await_block_branch as w,bubble as C,group_outros as A,check_outros as P,toggle_class as F,src_url_equal as z}from"./svelteInternal.js";import{onDestroy as L}from"./svelteInternal.js";import{Router as D}from"./libs.js";import{serviceRequest as I,eventer as T,napiTracker as N}from"./napi.js";import{napiUtils as O,productModel as E,settingsService as W,ipmService as M}from"./napiExtensions.js";import{nls as j}from"./i18n.js";import{modals as G,Modal as K,View as R,Page as q,Crumbs as V,Upsell as Q,Installer as X}from"./svelteComponents.js";import{svelteComponents as H}from"./Settings.js";const Y="DataShredder",Z="DataShredder";function B(){}function J(e){return e()}function U(e,...t){if(null==e)return B;const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function ee(e){let t;return U(e,(e=>t=e))(),t}Promise.resolve();const te=[];function ne(e,t){return{subscribe:re(e,t).subscribe}}function re(e,t=B){let n;const r=new Set;function s(t){if(i=t,((s=e)!=s?i==i:s!==i||s&&"object"==typeof s||"function"==typeof s)&&(e=t,n)){const t=!te.length;for(const n of r)n[1](),te.push(n,e);if(t){for(let e=0;e{r.delete(l),0===r.size&&(n(),n=null)}}}}function se(e,t,n){const r=!Array.isArray(e),s=r?[e]:e,i=t.length<2;return ne(n,(e=>{let n=!1;const a=[];let l=0,d=B;const c=()=>{if(l)return;d();const n=t(r?a[0]:a,e);i?e(n):d="function"==typeof n?n:B},o=s.map(((e,t)=>U(e,(e=>{a[t]=e,l&=~(1<{l|=1<{};let le;const de=ne(ie,(e=>{if(E.isInstalled(Y))return I("app.shredder.TARGET_TYPES").then(e),ae})),ce=ne(ie,(e=>{if(E.isInstalled(Y))return I("app.shredder.STATES").then(e),ae})),oe=ne(ie,(e=>{if(E.isInstalled(Y))return I("app.shredder.ACTIONS").then((t=>{const n=["shreddingFile","shreddingDir","shreddingPartition","cleaning"],r={};for(const e in t)r[t[e]]={key:e,withSubject:-1!==n.indexOf(e)};e(r)})),ae})),ue=function(){const{subscribe:e,set:t}=re(ie,(e=>{if(E.isInstalled(Y))return I("app.shredder.GetStatus").then((t=>{le=t,e(le)})),T.on("shredder.onStatusChanged",(t=>{e(Object.assign(le,t))}))}));return{subscribe:e,reset:()=>t({}),fakeProgress:()=>t({progress:0,action:"",state:ee(ce).running})}}(),pe=ne(null,(e=>(e(E.isLicensed(Y)),T.on("product.change.feature.DataShredder.licensed",e)))),he=ne(null,(e=>(e(E.isInstalled(Y)),T.on("product.change.feature.DataShredder.installed",e)))),fe=se([ce,ue],(([e,t])=>e!==ie&&t!==ie&&(t.state===e.running||t.state===e.stopping))),me=re(),ge=re([]),$e=re([]),be=se([ge,$e],(([e,t])=>{const n=e.filter((e=>t.includes(e.path))).reduce(((e,t)=>t.isFolder?e+1:e),0);return 0===n?"files":n===t.length?"folders":"items"}),"files"),ke=re(),_e=se([de,me],(([e,t])=>O.supportedSince("21.3")&&t===e.partition)),ve=function(){const{subscribe:e,set:t}=re(!1,(e=>(W.getValue("avcfg://settings/Shredder/QuickFormatDrive").then((t=>e("1"==t))),ae)));return{subscribe:e,set:e=>{W.set("avcfg://settings/Shredder/QuickFormatDrive",e?1:0),t(e)}}}(),Se=function(){const{subscribe:e,set:t}=re(!1,(e=>(W.getValue("avcfg://settings/Shredder/LowShreddingPriority").then((t=>{const n=ee(ue),r=ee(ce);n.state===r.running?e(0===n.ioPriority):e("1"==t)})),ae)));return{subscribe:e,set:e=>{I("app.shredder.SetPriority",{io:e?0:2}).catch((()=>t(!e))),t(e)}}}(),xe=re(!1),ye=re(),we=se([de,ce,oe,ue,he],(([e,t,n,r,s])=>!!s&&(e===ie||t===ie||n===ie||r===ie)));function Ce(){return I("app.utils.GetDriveList")}function Ae(){me.set(null),ge.set([]),$e.set([]),ke.set(null),ue.reset(),ye.set(null),location.hash="#"+Z}function Pe(){const e=ee(de),t=ee(me),n=ee(_e),r=ee(ve),s={targetType:t};n&&(s.format=r),xe.set(!0),t===e.files?(s.pathList=`"${ee($e).join('";"')}"`,ue.fakeProgress(),setTimeout((()=>{I("app.shredder.Start",s).catch((()=>{G.inform(j("datashredder.start.error"))}))}),2e3)):(s.pathList=ee(ke).id,I("app.shredder.Start",s).catch((()=>{G.inform(j("datashredder.start.error"))})))}function Fe(){ue.reset(),I("app.shredder.Stop").then((()=>{xe.set(!1),Ae()}))}function ze(e){if(!e)return;const t=[],n=e.split('";"');for(let r of n){r=r.replace(/"/g,""),r=r.replace(/\\\\/g,"\\");const e=r.substring(r.lastIndexOf("\\")+1),n={path:r,isFolder:!/[.]/.exec(e)};t.push(O.injectAppData(n,{iconSize:"large"}))}Promise.all(t).then((e=>{ge.set(e),$e.set(e.map((e=>e.path))),location.hash="#"+Z+"/FileShredding"}))}function Le(e){let t,n=j("datashredder.yesDelete")+"";return{c(){t=b(n)},m(e,n){h(e,t,n)},p:k,d(e){e&&g(t)}}}function De(e){let t,n=j("datashredder.shredSelectedFiles.confirm.btn",e[3].length)+"";return{c(){t=b(n)},m(e,n){h(e,t,n)},p(e,r){8&r&&n!==(n=j("datashredder.shredSelectedFiles.confirm.btn",e[3].length)+"")&&_(t,n)},d(e){e&&g(t)}}}function Ie(e){let t,n=j("global.yes")+"";return{c(){t=b(n)},m(e,n){h(e,t,n)},p:k,d(e){e&&g(t)}}}function Te(e){let t,n=j("global.no")+"";return{c(){t=b(n)},m(e,n){h(e,t,n)},p:k,d(e){e&&g(t)}}}function Ne(e){let t,n=j("datashredder.shredSelectedFiles.cancel.btn",e[3].length)+"";return{c(){t=b(n)},m(e,n){h(e,t,n)},p(e,r){8&r&&n!==(n=j("datashredder.shredSelectedFiles.cancel.btn",e[3].length)+"")&&_(t,n)},d(e){e&&g(t)}}}function Oe(e){let t,n,r,s,i,a,l,d;function b(e,t){return e[0]?Ie:e[2]===e[1].files?De:Le}let k=b(e),_=k(e);function v(e,t){return e[2]===e[1].files?Ne:Te}let S=v(e),x=S(e);return{c(){t=c("div"),n=c("kin-button"),r=c("span"),_.c(),s=o(),i=c("kin-button"),a=c("span"),x.c(),u(n,"kin-disabled",e[6]),u(n,"processing",e[6]),u(n,"type","critical"),u(n,"class","g-margin-top--20"),u(n,"data-test","dts_confirm-delete"),u(i,"kin-disabled",e[6]),u(i,"type","secondary"),u(i,"class","g-margin-top--20 g-margin-left--10"),u(i,"data-test","dts_close-delete"),p(t,"slot","modal-footer")},m(c,o){h(c,t,o),f(t,n),f(n,r),_.m(r,null),f(t,s),f(t,i),f(i,a),x.m(a,null),l||(d=[m(n,"click",e[7]),m(i,"click",e[8])],l=!0)},p(e,t){k===(k=b(e))&&_?_.p(e,t):(_.d(1),_=k(e),_&&(_.c(),_.m(r,null))),64&t&&u(n,"kin-disabled",e[6]),64&t&&u(n,"processing",e[6]),S===(S=v(e))&&x?x.p(e,t):(x.d(1),x=S(e),x&&(x.c(),x.m(a,null))),64&t&&u(i,"kin-disabled",e[6])},d(e){e&&g(t),_.d(),x.d(),l=!1,$(d)}}}function Ee(e){let t,n;return t=new K({props:{title:e[4],subtitle:e[5],htmlSubtitle:Boolean(e[0]),$$slots:{"modal-footer":[Oe]},$$scope:{ctx:e}}}),t.$on("close",e[8]),{c(){r(t.$$.fragment)},m(e,r){s(t,e,r),n=!0},p(e,[n]){const r={};16&n&&(r.title=e[4]),32&n&&(r.subtitle=e[5]),1&n&&(r.htmlSubtitle=Boolean(e[0])),1103&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(i(t.$$.fragment,e),n=!0)},o(e){a(t.$$.fragment,e),n=!1},d(e){l(t,e)}}}function We(e,t,n){let r,s,i,a,l,c;d(e,de,(e=>n(1,r=e))),d(e,me,(e=>n(2,s=e))),d(e,$e,(e=>n(3,i=e))),d(e,be,(e=>n(9,a=e)));let o,u=!1;function p(){ye.set(null)}return e.$$.update=()=>{526&e.$$.dirty&&(s===r.files&&"files"===a?n(4,l=j("datashredder.shredSelectedFiles.confirm",i.length)):s===r.files&&"items"===a?n(4,l=j("datashredder.shredSelectedItems.confirm",i.length)):s===r.files&&"folders"===a?n(4,l=j("datashredder.shredSelectedFolders.confirm",i.length)):s===r.partition?n(4,l=j("datashredder.shredPartition.desc")):s===r.freespace&&n(4,l=j("datashredder.shredFreeSpace.desc"))),527&e.$$.dirty&&(o?n(5,c=j("datashredder.ssdAndNoTrimConfirmation",o)):s===r.files&&"files"===a?n(5,c=j("datashredder.shredSelectedFiles.confirm.desc",i.length)):s===r.files&&"items"===a?n(5,c=j("datashredder.shredSelectedItems.confirm.desc",i.length)):s===r.files&&"folders"===a?n(5,c=j("datashredder.shredSelectedFolders.confirm.desc",i.length)):s===r.partition?n(5,c=j("datashredder.shredPartition.confirm")):s===r.freespace&&n(5,c=j("datashredder.shredFreeSpace.confirm")))},[o,r,s,i,l,c,u,function(){s!==r.files||o?(Pe(),p()):(n(6,u=!0),Ce().then((e=>{const t=ee($e),n=[];return e.forEach((e=>{e.ssd&&!e.trim&&e.label&&t.some((t=>{const r=/^\[-(\w)\]/.exec(e.label),s=r&&r[1];if(0===t.indexOf(s+":"))return n.push(s||e.id),!0}))})),n})).then((e=>{n(6,u=!1),e.length?n(0,o=e):(Pe(),p())})))},p,a]}class Me extends e{constructor(e){super(),t(this,e,We,Ee,n,{})}}function je(e){v(e,"svelte-c3x724",".dts_label.svelte-c3x724{text-align:left;margin-left:5px;margin-bottom:5px}.dts_item.svelte-c3x724{width:100%;display:flex;justify-content:space-between}")}function Ge(e,t,n){const r=e.slice();return r[16]=t[n],r}function Ke(e){let t;function n(e,t){return e[1]===e[0].partition?Qe:e[1]===e[0].freespace?Ve:void 0}let r=n(e),s=r&&r(e);return{c(){t=c("p"),s&&s.c(),p(t,"class","p")},m(e,n){h(e,t,n),s&&s.m(t,null)},p(e,i){r===(r=n(e))&&s?s.p(e,i):(s&&s.d(1),s=r&&r(e),s&&(s.c(),s.m(t,null)))},d(e){e&&g(t),s&&s.d()}}}function Re(e){let t,n,r,s=e[4],i=[];for(let a=0;as===r.partition?!e.systemVolume:s===r.freespace?["NTFS","FAT32"].includes(e.filesystem):void 0)))}function h(e){ye.set(Me),ke.set(e)}d(e,de,(e=>n(0,r=e))),d(e,me,(e=>n(1,s=e))),d(e,_e,(e=>n(5,i=e))),d(e,ve,(e=>n(6,a=e))),p(),u=setInterval(p,1e4),L((()=>{u=clearInterval(u)}));return e.$$.update=()=>{3&e.$$.dirty&&(s===r.partition?(n(2,l=j("datashredder.shredPartition.modal.title")),n(3,c=j("datashredder.shredPartition.modal.desc"))):s===r.freespace&&(n(2,l=j("datashredder.shredFreeSpace.modal.title")),n(3,c=j("datashredder.shredFreeSpace.modal.desc"))))},[r,s,l,c,o,i,a,h,function(){a=this.checked,ve.set(a)},()=>Ae(),e=>h(e),()=>Ae()]}class tt extends e{constructor(e){super(),t(this,e,et,Ue,n,{},je)}}function nt(e){v(e,"svelte-w3iyd5",".dts_cubes.svelte-w3iyd5{text-align:center;padding-top:12vh}")}function rt(e){let t,n,r=j("datashredder.desc")+"";return{c(){t=c("div"),n=c("p"),p(n,"class","kin_description__text"),p(t,"slot","description")},m(e,s){h(e,t,s),f(t,n),n.innerHTML=r},p:k,d(e){e&&g(t)}}}function st(e){let t,n,r,s,i,a,l,d,_,v,S,x,y,w,C,A,P,F,z,L,D,I,T,N,O,E,W,M,G,K,R,q,V,Q,X,H,Y=j("datashredder.shredFiles")+"",Z=j("datashredder.shredPartition")+"",B=j("datashredder.shredFreeSpace")+"";return{c(){t=c("div"),n=c("section"),r=c("div"),s=c("button"),i=c("div"),i.innerHTML='',a=o(),l=c("kin-button"),l.textContent=`${j("datashredder.selectFiles")}`,d=o(),_=c("span"),v=b(Y),S=o(),x=c("span"),x.textContent=`${j("datashredder.shredFiles.desc")}`,y=o(),w=c("div"),C=c("button"),A=c("div"),A.innerHTML='',P=o(),F=c("kin-button"),F.textContent=`${j("datashredder.selectDisk")}`,z=o(),L=c("span"),D=b(Z),I=o(),T=c("span"),T.textContent=`${j("datashredder.shredPartition.desc")}`,N=o(),O=c("div"),E=c("button"),W=c("div"),W.innerHTML='',M=o(),G=c("kin-button"),G.textContent=`${j("datashredder.selectFiles")}`,K=o(),R=c("span"),q=b(B),V=o(),Q=c("span"),Q.textContent=`${j("datashredder.shredFreeSpace.desc")}`,p(i,"class","cube__icon g-margin-bottom--10"),u(l,"type","secondary"),u(l,"fake","true"),u(l,"size","small"),p(x,"class","cube__desc"),p(_,"class","cube__label"),p(s,"class","cube -blank -full"),p(s,"data-test","dts_files"),p(r,"class","sixpack__2"),p(A,"class","cube__icon g-margin-bottom--10"),u(F,"type","secondary"),u(F,"fake","true"),u(F,"size","small"),p(T,"class","cube__desc"),p(L,"class","cube__label"),p(C,"class","cube -blank -full"),p(C,"data-test","dts_partition"),p(w,"class","sixpack__2"),p(W,"class","cube__icon g-margin-bottom--10"),u(G,"type","secondary"),u(G,"fake","true"),u(G,"size","small"),p(Q,"class","cube__desc"),p(R,"class","cube__label"),p(E,"class","cube -blank -full"),p(E,"data-test","dts_space"),p(O,"class","sixpack__2"),p(n,"class","dts_cubes sixpack svelte-w3iyd5"),p(t,"slot","view-content")},m(c,o){h(c,t,o),f(t,n),f(n,r),f(r,s),f(s,i),f(s,a),f(s,l),f(s,d),f(s,_),f(_,v),f(_,S),f(_,x),f(n,y),f(n,w),f(w,C),f(C,A),f(C,P),f(C,F),f(C,z),f(C,L),f(L,D),f(L,I),f(L,T),f(n,N),f(n,O),f(O,E),f(E,W),f(E,M),f(E,G),f(E,K),f(E,R),f(R,q),f(R,V),f(R,Q),X||(H=[m(s,"click",e[2]),m(C,"click",e[3]),m(E,"click",e[4])],X=!0)},p:k,d(e){e&&g(t),X=!1,$(H)}}}function it(e){let t,n;return t=new R({props:{$$slots:{"view-content":[st],description:[rt]},$$scope:{ctx:e}}}),{c(){r(t.$$.fragment)},m(e,r){s(t,e,r),n=!0},p(e,[n]){const r={};65&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(i(t.$$.fragment,e),n=!0)},o(e){a(t.$$.fragment,e),n=!1},d(e){l(t,e)}}}function at(e,t,n){let r,s;function i(e){if(s)console.info("[dataShredder] target selected but shredder is running -> doing nothing");else switch(me.set(e),e){case r.files:I("app.utils.SelectFolders",{hideNetwork:!0}).then((e=>{const t="ok"===e.dialogReturnCode?e.paths:null;t?ze(t):Ae()}));break;case r.partition:case r.freespace:ye.set(tt)}}d(e,de,(e=>n(0,r=e))),d(e,fe,(e=>n(5,s=e)));return[r,i,()=>i(r.files),()=>i(r.partition),()=>i(r.freespace)]}class lt extends e{constructor(e){super(),t(this,e,at,it,n,{},nt)}}function dt(e,t,n){const r=e.slice();return r[3]=t[n],r}function ct(e){return{c:k,m:k,p:k,d:k}}function ot(e){let t,n=e[2],r=[];for(let s=0;se.errors)),r),{c(){t=c("div"),n=c("p"),r.block.c(),p(t,"class","g-align--left")},m(e,s){h(e,t,s),f(t,n),r.block.m(n,r.anchor=null),r.mount=()=>n,r.anchor=null},p(t,n){w(r,e=t,n)},d(e){e&&g(t),r.block.d(),r.token=null,r=null}}}function ft(e){let t,n,r,s;return{c(){t=c("div"),n=c("kin-button"),n.textContent=`${j("global.close")}`,u(n,"class","g-margin-top--20"),u(n,"data-test","dts_error-files-close"),p(t,"slot","modal-footer")},m(i,a){h(i,t,a),f(t,n),r||(s=m(n,"click",e[0]),r=!0)},p:k,d(e){e&&g(t),r=!1,s()}}}function mt(e){let t,n;return t=new K({props:{title:j("datashredder.error.filesModal.title"),$$slots:{"modal-footer":[ft],default:[ht]},$$scope:{ctx:e}}}),t.$on("close",e[1]),{c(){r(t.$$.fragment)},m(e,r){s(t,e,r),n=!0},p(e,[n]){const r={};64&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(i(t.$$.fragment,e),n=!0)},o(e){a(t.$$.fragment,e),n=!1},d(e){l(t,e)}}}function gt(e){return[()=>ye.set(null),function(t){C.call(this,e,t)}]}class $t extends e{constructor(e){super(),t(this,e,gt,mt,n,{})}}function bt(e){v(e,"svelte-35tk6x",".dts_deprioritize__label.svelte-35tk6x{text-align:start;margin:0 1rem}")}function kt(e){let t,n=e[1]&&function(e){let t,n,r,s,i;return{c(){t=c("input"),n=o(),r=c("label"),r.textContent=`${j("datashredder.deprioritizeShredding.label")}`,p(t,"id","shredder-deprioritize"),p(t,"type","checkbox"),p(t,"class","checkbox"),p(r,"for","shredder-deprioritize"),p(r,"class","dts_deprioritize__label span -secondary -small svelte-35tk6x")},m(a,l){h(a,t,l),t.checked=e[0],h(a,n,l),h(a,r,l),s||(i=m(t,"change",e[2]),s=!0)},p(e,n){1&n&&(t.checked=e[0])},d(e){e&&g(t),e&&g(n),e&&g(r),s=!1,i()}}}(e);return{c(){n&&n.c(),t=S()},m(e,r){n&&n.m(e,r),h(e,t,r)},p(e,[t]){e[1]&&n.p(e,t)},i:k,o:k,d(e){n&&n.d(e),e&&g(t)}}}function _t(e,t,n){let r;d(e,Se,(e=>n(0,r=e)));const s=O.supportedSince("21.10");return[r,s,function(){r=this.checked,Se.set(r)}]}class vt extends e{constructor(e){super(),t(this,e,_t,kt,n,{},bt)}}function St(e){v(e,"svelte-1dk1n8u",".dts_deprioritize.svelte-1dk1n8u{display:flex;min-width:32%;max-width:32%;min-height:100%;align-items:center;position:absolute;left:var(--page-padding);right:var(--page-padding)}")}function xt(e){let t,n,r,s,i,a,l,d,v,S,x,y,w,C,A,P,F,z=j("datashredder.errorLog")+"",L=e[0].errorPath+"",D=e[0].errorPath&&Ct(e);return{c(){t=c("div"),n=c("kin-icon"),r=o(),s=c("div"),i=c("h1"),i.textContent=`${e[9]()}`,a=o(),l=c("p"),d=b(z),v=b(":\n\t\t\t\t"),S=c("button"),x=b(L),y=o(),w=c("div"),C=c("kin-button"),C.textContent=`${j("global.done")}`,A=o(),D&&D.c(),u(n,"name","circle-error"),u(n,"class","kin_scan__icon"),u(n,"size","96"),p(i,"class","h1 kin_scan__title -overlay"),p(S,"class","a"),p(S,"data-test","dts_error-log"),p(l,"class","kin_scan__subtitle -overlay"),p(w,"class","kin_scan__actions"),p(s,"class","kin_scan__result"),p(t,"class","kin_page-content -scan")},m(c,o){h(c,t,o),f(t,n),f(t,r),f(t,s),f(s,i),f(s,a),f(s,l),f(l,d),f(l,v),f(l,S),f(S,x),f(s,y),f(s,w),f(w,C),f(w,A),D&&D.m(w,null),P||(F=[m(S,"click",e[12]),m(C,"click",e[13])],P=!0)},p(e,t){1&t&&L!==(L=e[0].errorPath+"")&&_(x,L),e[0].errorPath?D?D.p(e,t):(D=Ct(e),D.c(),D.m(w,null)):D&&(D.d(1),D=null)},i:k,o:k,d(e){e&&g(t),D&&D.d(),P=!1,$(F)}}}function yt(e){let t,n,r,s,i,a,l,d,$,b,_;function v(e,t){return e[2]===e[1].files&&"files"===e[7]?Dt:e[2]===e[1].files&&"items"===e[7]?Lt:e[2]===e[1].files&&"folders"===e[7]?zt:e[2]===e[1].partition?Ft:e[2]===e[1].freespace?Pt:At}let S=v(e),x=S(e);return{c(){t=c("div"),n=c("kin-icon"),r=o(),s=c("div"),x.c(),i=o(),a=c("p"),a.textContent=`${j("datashredder.operationDone.desc")}`,l=o(),d=c("div"),$=c("kin-button"),$.textContent=`${j("global.done")}`,u(n,"name","circle-ok"),u(n,"class","kin_scan__icon"),u(n,"size","96"),p(a,"class","kin_scan__subtitle -overlay"),p(s,"class","kin_scan__result"),u($,"data-test","dts_done"),p(d,"class","kin_scan__actions"),p(t,"class","kin_page-content -scan")},m(c,o){h(c,t,o),f(t,n),f(t,r),f(t,s),x.m(s,null),f(s,i),f(s,a),f(t,l),f(t,d),f(d,$),b||(_=m($,"click",e[11]),b=!0)},p(e,t){S===(S=v(e))&&x?x.p(e,t):(x.d(1),x=S(e),x&&(x.c(),x.m(s,i)))},i:k,o:k,d(e){e&&g(t),x.d(),b=!1,_()}}}function wt(e){let t,n,r,s,l,d,m,$,k,v,S;const x=[Tt,It],y=[];function w(e,t){return e[0].state===e[6].stopping?0:1}return k=w(e),v=y[k]=x[k](e),{c(){t=c("div"),n=c("p"),r=b(e[4]),s=o(),l=c("div"),d=c("kin-progress"),$=o(),v.c(),p(n,"class","p"),u(d,"percentage",m=e[0].progress),u(d,"dotted","true"),p(l,"class","kin_scan__progress"),p(t,"class","kin_page-content -scan-with-header")},m(e,i){h(e,t,i),f(t,n),f(n,r),f(t,s),f(t,l),f(l,d),f(t,$),y[k].m(t,null),S=!0},p(e,n){(!S||16&n)&&_(r,e[4]),(!S||1&n&&m!==(m=e[0].progress))&&u(d,"percentage",m);let s=k;k=w(e),k===s?y[k].p(e,n):(A(),a(y[s],1,1,(()=>{y[s]=null})),P(),v=y[k],v?v.p(e,n):(v=y[k]=x[k](e),v.c()),i(v,1),v.m(t,null))},i(e){S||(i(v),S=!0)},o(e){a(v),S=!1},d(e){e&&g(t),y[k].d()}}}function Ct(e){let t,n,r;return{c(){t=c("kin-button"),t.textContent=`${j("datashredder.error.showFiles")}`,u(t,"type","secondary"),u(t,"class","g-margin-left--5"),u(t,"data-test","dts_error-files")},m(s,i){h(s,t,i),n||(r=m(t,"click",e[14]),n=!0)},p:k,d(e){e&&g(t),n=!1,r()}}}function At(e){let t;return{c(){t=c("h1"),t.textContent=`${j("datashredder.operationDone")}`,p(t,"class","h1 kin_scan__title -overlay")},m(e,n){h(e,t,n)},p:k,d(e){e&&g(t)}}}function Pt(e){let t;return{c(){t=c("h1"),t.textContent=`${j("datashredder.operationDone.freespace")}`,p(t,"class","h1 kin_scan__title -overlay")},m(e,n){h(e,t,n)},p:k,d(e){e&&g(t)}}}function Ft(e){let t,n,r=j("datashredder.operationDone.partition",e[3].label)+"";return{c(){t=c("h1"),n=b(r),p(t,"class","h1 kin_scan__title -overlay")},m(e,r){h(e,t,r),f(t,n)},p(e,t){8&t&&r!==(r=j("datashredder.operationDone.partition",e[3].label)+"")&&_(n,r)},d(e){e&&g(t)}}}function zt(e){let t,n,r=j("datashredder.foldersShreddedSuccessfully",e[8].length)+"";return{c(){t=c("h1"),n=b(r),p(t,"class","h1 kin_scan__title -overlay")},m(e,r){h(e,t,r),f(t,n)},p(e,t){256&t&&r!==(r=j("datashredder.foldersShreddedSuccessfully",e[8].length)+"")&&_(n,r)},d(e){e&&g(t)}}}function Lt(e){let t,n,r=j("datashredder.itemsShreddedSuccessfully",e[8].length)+"";return{c(){t=c("h1"),n=b(r),p(t,"class","h1 kin_scan__title -overlay")},m(e,r){h(e,t,r),f(t,n)},p(e,t){256&t&&r!==(r=j("datashredder.itemsShreddedSuccessfully",e[8].length)+"")&&_(n,r)},d(e){e&&g(t)}}}function Dt(e){let t,n,r=j("datashredder.filesShreddedSuccessfully",e[8].length)+"";return{c(){t=c("h1"),n=b(r),p(t,"class","h1 kin_scan__title -overlay")},m(e,r){h(e,t,r),f(t,n)},p(e,t){256&t&&r!==(r=j("datashredder.filesShreddedSuccessfully",e[8].length)+"")&&_(n,r)},d(e){e&&g(t)}}}function It(e){let t,n,d,$,b,k,_,v,S,x,y;return k=new vt({}),{c(){t=c("div"),n=c("p"),d=o(),$=c("div"),b=c("div"),r(k.$$.fragment),_=o(),v=c("kin-button"),v.textContent=`${j("global.stop")}`,p(n,"class","kin_scan__subtitle -overlay"),p(t,"class","kin_scan__result"),p(b,"class","dts_deprioritize svelte-1dk1n8u"),u(v,"type","secondary"),u(v,"data-test","dts_stop-shred"),p($,"class","kin_scan__actions")},m(r,i){h(r,t,i),f(t,n),n.innerHTML=e[5],h(r,d,i),h(r,$,i),f($,b),s(k,b,null),f($,_),f($,v),S=!0,x||(y=m(v,"click",e[10]),x=!0)},p(e,t){(!S||32&t)&&(n.innerHTML=e[5])},i(e){S||(i(k.$$.fragment,e),S=!0)},o(e){a(k.$$.fragment,e),S=!1},d(e){e&&g(t),e&&g(d),e&&g($),l(k),x=!1,y()}}}function Tt(e){let t,n;return{c(){t=c("div"),n=c("p"),n.textContent=`${j("datashredder.stopping")}`,p(n,"class","kin_scan__subtitle -overlay"),p(t,"class","kin_scan__result")},m(e,r){h(e,t,r),f(t,n)},p:k,i:k,o:k,d(e){e&&g(t)}}}function Nt(e){let t,n,r,s;const l=[wt,yt,xt],d=[];function c(e,t){return e[0].state===e[6].running||e[0].state===e[6].stopping?0:e[0].state===e[6].finished?1:e[0].state===e[6].failed?2:-1}return~(t=c(e))&&(n=d[t]=l[t](e)),{c(){n&&n.c(),r=S()},m(e,n){~t&&d[t].m(e,n),h(e,r,n),s=!0},p(e,[s]){let o=t;t=c(e),t===o?~t&&d[t].p(e,s):(n&&(A(),a(d[o],1,1,(()=>{d[o]=null})),P()),~t?(n=d[t],n?n.p(e,s):(n=d[t]=l[t](e),n.c()),i(n,1),n.m(r.parentNode,r)):n=null)},i(e){s||(i(n),s=!0)},o(e){a(n),s=!1},d(e){~t&&d[t].d(e),e&&g(r)}}}function Ot(e,t,n){let r,s,i,a,l,c,o,u,p;d(e,ue,(e=>n(0,s=e))),d(e,ce,(e=>n(6,i=e))),d(e,oe,(e=>n(16,a=e))),d(e,de,(e=>n(1,l=e))),d(e,me,(e=>n(2,c=e))),d(e,ke,(e=>n(3,o=e))),d(e,be,(e=>n(7,u=e))),d(e,$e,(e=>n(8,p=e)));const h={5:"ERROR_ACCESS_DENIED",19:"ERROR_WRITE_PROTECT",32:"ERROR_SHARING_VIOLATION",1300:"ERROR_NOT_ALL_ASSIGNED"};let f;function m(){if(s.state!==i.failed)return;const e=h[s.errorCode]||"operationFailed";return j("datashredder.error."+e)}return e.$$.update=()=>{14&e.$$.dirty&&(c===l.partition?n(4,f=j("datashredder.shredding.partition",o.label)):c===l.freespace&&n(4,f=j("datashredder.shreddingFreeSpace"))),1&e.$$.dirty&&n(5,r=s&&function(){const e=a[s.action],t=e?.withSubject&&s.subject;let n="";return e?.key&&(e.withSubject?t&&(n=j("datashredder.action."+e.key,t)):n=j("datashredder.action."+e.key),n=n.replace("","‎")),n}()),1&e.$$.dirty&&s&&m()},[s,l,c,o,f,r,i,u,p,m,()=>function(){const e=ee(de),t=ee(me),n=()=>{I("app.shredder.Stop").catch((()=>G.inform(j("datashredder.stop.error")))).then((()=>{xe.set(!1),Ae()}))};t===e.partition?G.confirm({title:j("datashredder.shredPartition.stopConfirmation.title"),message:j("datashredder.shredPartition.stopConfirmation")}).then((e=>!e&&n())):n()}(),()=>Fe(),()=>function(){const e=ee(ue).errorPath;e&&I("app.utils.OpenWithDefaultProgram",{filename:e,preventFail:!0})}(),()=>Fe(),()=>ye.set($t)]}class Et extends e{constructor(e){super(),t(this,e,Ot,Nt,n,{},St)}}function Wt(e){v(e,"svelte-1c60tk6","[slot='table-header'].svelte-1c60tk6{grid-template-columns:4rem calc(4rem + 26%) auto}.kin_table__row.svelte-1c60tk6{grid-template-columns:calc(4rem + 4rem + 26%) auto}.dts_file-icon.svelte-1c60tk6{width:24px;height:24px;font-size:24px}.dts_deprioritize.svelte-1c60tk6{display:flex;min-width:32%;max-width:32%;min-height:100%;align-items:center}kin-progress.svelte-1c60tk6{position:absolute;left:0;top:0;right:0;height:1px;overflow:hidden}")}function Mt(e,t,n){const r=e.slice();return r[18]=t[n],r[20]=n,r}function jt(e){let t,n;return{c(){t=c("div"),n=c("p"),n.textContent=`${j("datashredder.filesForShredding.desc")}`,p(n,"class","kin_description__text -center"),p(t,"slot","description")},m(e,r){h(e,t,r),f(t,n)},p:k,d(e){e&&g(t)}}}function Gt(e){let t,n,r;return{c(){t=c("img"),p(t,"class","dts_file-icon g-icon-shadow svelte-1c60tk6"),p(t,"height","24"),z(t.src,n="data:image/png;base64,"+e[18].icon)||p(t,"src",n),p(t,"alt",r=e[18].name)},m(e,n){h(e,t,n)},p(e,s){8&s&&!z(t.src,n="data:image/png;base64,"+e[18].icon)&&p(t,"src",n),8&s&&r!==(r=e[18].name)&&p(t,"alt",r)},d(e){e&&g(t)}}}function Kt(e){let t;return{c(){t=c("kin-icon"),u(t,"name","icon-m-file-folder"),u(t,"size","24")},m(e,n){h(e,t,n)},p:k,d(e){e&&g(t)}}}function Rt(e){let t,n,r,s,i,a,l,d,$,k,v,S,x,y,w,C,A,P,z,L,D,I,T,N,O,E,W,M=e[18].name+"",G=e[18].name+"",K=e[18].path+"",R=e[18].path+"";function q(...t){return e[17](e[18],...t)}function V(e,t){return e[18].isFolder?Kt:Gt}let Q=V(e),X=Q(e);return{c(){t=c("div"),n=c("label"),r=c("div"),s=c("input"),l=o(),d=c("div"),X.c(),$=o(),k=c("div"),v=c("kin-tooltip"),S=c("label"),x=b(M),y=o(),w=c("div"),C=b(G),A=o(),P=c("div"),z=c("kin-tooltip"),L=c("div"),D=b(K),I=o(),T=c("div"),N=b(R),O=o(),s.disabled=i=e[4].state===e[5].running,p(s,"type","checkbox"),p(s,"class","checkbox"),s.checked=a=e[0].includes(e[18].path),p(s,"id","dts-item-"+e[20]),p(s,"aria-label",j("global.selectItem")),p(r,"class","kin_table__checkbox"),p(d,"class","kin_table__icon"),p(S,"slot","tooltip-activator"),p(S,"for","dts-item-"+e[20]),p(w,"slot","tooltip"),u(v,"ellipsis","true"),p(k,"class","kin_table__name"),p(L,"slot","tooltip-activator"),p(T,"slot","tooltip"),u(z,"ellipsis","true"),u(z,"data-test","kin_table-item-description"),p(t,"role","row"),p(t,"class","kin_table__row svelte-1c60tk6"),p(t,"data-test","table-row-"+e[20]),p(t,"aria-rowindex",e[20]),F(t,"-selected",e[0].includes(e[18].path))},m(e,i){h(e,t,i),f(t,n),f(n,r),f(r,s),f(n,l),f(n,d),X.m(d,null),f(n,$),f(n,k),f(k,v),f(v,S),f(S,x),f(v,y),f(v,w),f(w,C),f(t,A),f(t,P),f(P,z),f(z,L),f(L,D),f(z,I),f(z,T),f(T,N),f(t,O),E||(W=m(s,"click",q),E=!0)},p(n,r){e=n,48&r&&i!==(i=e[4].state===e[5].running)&&(s.disabled=i),9&r&&a!==(a=e[0].includes(e[18].path))&&(s.checked=a),Q===(Q=V(e))&&X?X.p(e,r):(X.d(1),X=Q(e),X&&(X.c(),X.m(d,null))),8&r&&M!==(M=e[18].name+"")&&_(x,M),8&r&&G!==(G=e[18].name+"")&&_(C,G),8&r&&K!==(K=e[18].path+"")&&_(D,K),8&r&&R!==(R=e[18].path+"")&&_(N,R),9&r&&F(t,"-selected",e[0].includes(e[18].path))},d(e){e&&g(t),X.d(),E=!1,W()}}}function qt(e){let t,n,r,s,i,a,l,d,$,b,k,_,v,S,y,w,C,A,P,z=e[3],L=[];for(let c=0;c0,p(i,"aria-label",j("global.selectAllItems")),F(i,"-checked",e[3].length===e[0].length&&e[0].length),p(s,"class","kin_table__checkbox"),p(s,"role","columnheader"),p(b,"role","columnheader"),p(_,"role","columnheader"),p(r,"slot","table-header"),p(r,"role","row"),p(r,"class","dts_table__header svelte-1c60tk6"),p(S,"slot","table-body"),u(n,"datalength",y=e[3].length),u(n,"selecteditems",w=e[0].length),u(n,"inactive",C=e[4].state===e[5].running),p(t,"slot","view-content")},m(a,l){h(a,t,l),f(t,n),f(n,r),f(r,s),f(s,i),f(r,$),f(r,b),f(r,k),f(r,_),f(n,v),f(n,S);for(let e=0;e0)&&(i.checked=d),9&t&&F(i,"-checked",e[3].length===e[0].length&&e[0].length),825&t){let n;for(z=e[3],n=0;n{d[c]=null})),P(),r=d[n],r?r.p(e,s):(r=d[n]=l[n](e),r.c()),i(r,1),r.m(t,null))},i(e){s||(i(r),s=!0)},o(e){a(r),s=!1},d(e){e&&g(t),d[n].d()}}}function Bt(e){let t,n,d,c;return t=new R({props:{actionbar:"true",$$slots:{"view-actions":[Zt],"view-content":[qt],description:[jt]},$$scope:{ctx:e}}}),{c(){r(t.$$.fragment)},m(r,i){s(t,r,i),n=!0,d||(c=m(window,"kin-deselectAll",e[12]),d=!0)},p(e,[n]){const r={};2097215&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(i(t.$$.fragment,e),n=!0)},o(e){a(t.$$.fragment,e),n=!1},d(e){l(t,e),d=!1,c()}}}function Jt(e,t,n){let r,s,i,a,l,c,o;function u(){$e.set(i.map((e=>e.path)))}function p(){!s&&$e.set([])}function h(e){r.includes(e.path)||$e.set([...r,e.path])}function f(e){const t=r.indexOf(e.path);r.splice(t,1),$e.set(r)}function m(){ye.set(Me)}d(e,$e,(e=>n(0,r=e))),d(e,xe,(e=>n(2,s=e))),d(e,ge,(e=>n(3,i=e))),d(e,be,(e=>n(11,a=e))),d(e,ue,(e=>n(4,l=e))),d(e,ce,(e=>n(5,c=e)));return e.$$.update=()=>{2049&e.$$.dirty&&n(1,o=j("folders"===a?"datashredder.foldersSelected":"items"===a?"datashredder.itemsSelected":"datashredder.filesSelected",r.length))},[r,o,s,i,l,c,u,p,h,f,m,a,()=>p(),()=>u(),()=>Ae(),()=>m(),e=>e.target.checked?u():p(),(e,t)=>t.target.checked?h(e):f(e)]}class Ut extends e{constructor(e){super(),t(this,e,Jt,Bt,n,{},Wt)}}function en(e){v(e,"svelte-dy9adk",".dts_wrap.svelte-dy9adk{width:100%}")}function tn(e){let t,n,d;return n=new V({props:{section:"privacy",moduleId:Z,moduleTranslationId:"datashredder",subsections:e[4]}}),{c(){t=c("div"),r(n.$$.fragment),p(t,"slot","breadcrumbs")},m(e,r){h(e,t,r),s(n,t,null),d=!0},p(e,t){const r={};16&t&&(r.subsections=e[4]),n.$set(r)},i(e){d||(i(n.$$.fragment,e),d=!0)},o(e){a(n.$$.fragment,e),d=!1},d(e){e&&g(t),l(n)}}}function nn(e){let t,n,d;return n=new Q({props:{desc:j("upsell.desc.dataShredder"),animation:"data:image/png;base64,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"}}),n.$on("init",e[20]),n.$on("buy",e[21]),{c(){t=c("div"),r(n.$$.fragment),p(t,"slot","upsell")},m(e,r){h(e,t,r),s(n,t,null),d=!0},p:k,i(e){d||(i(n.$$.fragment,e),d=!0)},o(e){a(n.$$.fragment,e),d=!1},d(e){e&&g(t),l(n)}}}function rn(e){let t,n,d;return n=new X({props:{desc:j("datashredder.desc"),featureId:Y}}),{c(){t=c("div"),r(n.$$.fragment),p(t,"slot","installer")},m(e,r){h(e,t,r),s(n,t,null),d=!0},p:k,i(e){d||(i(n.$$.fragment,e),d=!0)},o(e){a(n.$$.fragment,e),d=!1},d(e){e&&g(t),l(n)}}}function sn(e){let t;return{c(){t=c("kin-loading"),u(t,"fullscreen","true")},m(e,n){h(e,t,n)},p:k,i:k,o:k,d(e){e&&g(t)}}}function an(e){let t,n,d;var c=e[0];return c&&(t=new c({})),{c(){t&&r(t.$$.fragment),n=S()},m(e,r){t&&s(t,e,r),h(e,n,r),d=!0},p(e,d){if(c!==(c=e[0])){if(t){A();const e=t;a(e.$$.fragment,1,0,(()=>{l(e,1)})),P()}c?(t=new c({}),r(t.$$.fragment),i(t.$$.fragment,1),s(t,n.parentNode,n)):t=null}},i(e){d||(t&&i(t.$$.fragment,e),d=!0)},o(e){t&&a(t.$$.fragment,e),d=!1},d(e){e&&g(n),t&&l(t,e)}}}function ln(e){let t,n,r,s;const l=[an,sn],d=[];function o(e,t){return e[0]&&!e[1]?0:1}return n=o(e),r=d[n]=l[n](e),{c(){t=c("div"),r.c(),p(t,"slot","page-content"),p(t,"class","dts_wrap svelte-dy9adk")},m(e,r){h(e,t,r),d[n].m(t,null),s=!0},p(e,s){let c=n;n=o(e),n===c?d[n].p(e,s):(A(),a(d[c],1,1,(()=>{d[c]=null})),P(),r=d[n],r?r.p(e,s):(r=d[n]=l[n](e),r.c()),i(r,1),r.m(t,null))},i(e){s||(i(r),s=!0)},o(e){a(r),s=!1},d(e){e&&g(t),d[n].d()}}}function dn(e){let t,n,d;var c=e[7];return c&&(t=new c({})),{c(){t&&r(t.$$.fragment),n=S()},m(e,r){t&&s(t,e,r),h(e,n,r),d=!0},p(e,d){if(c!==(c=e[7])){if(t){A();const e=t;a(e.$$.fragment,1,0,(()=>{l(e,1)})),P()}c?(t=new c({}),r(t.$$.fragment),i(t.$$.fragment,1),s(t,n.parentNode,n)):t=null}},i(e){d||(t&&i(t.$$.fragment,e),d=!0)},o(e){t&&a(t.$$.fragment,e),d=!1},d(e){e&&g(n),t&&l(t,e)}}}function cn(e){let t,n,d,c;t=new q({props:{heading:e[3],cssCls:"dts "+e[2],settingsUrl:e[5]?"#Settings/DataShredder":"",upsell:!e[5],installer:!e[6],backHash:"#privacy",loading:e[1],$$slots:{"page-content":[ln],installer:[rn],upsell:[nn],breadcrumbs:[tn]},$$scope:{ctx:e}}});let u=e[7]&&dn(e);return{c(){r(t.$$.fragment),n=o(),u&&u.c(),d=S()},m(e,r){s(t,e,r),h(e,n,r),u&&u.m(e,r),h(e,d,r),c=!0},p(e,[n]){const r={};8&n&&(r.heading=e[3]),4&n&&(r.cssCls="dts "+e[2]),32&n&&(r.settingsUrl=e[5]?"#Settings/DataShredder":""),32&n&&(r.upsell=!e[5]),64&n&&(r.installer=!e[6]),2&n&&(r.loading=e[1]),16777235&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r),e[7]?u?(u.p(e,n),128&n&&i(u,1)):(u=dn(e),u.c(),i(u,1),u.m(d.parentNode,d)):u&&(A(),a(u,1,1,(()=>{u=null})),P())},i(e){c||(i(t.$$.fragment,e),i(u),c=!0)},o(e){a(t.$$.fragment,e),a(u),c=!1},d(e){l(t,e),e&&g(n),u&&u.d(e),e&&g(d)}}}function on(e,t,n){let r,s,i,a,l,c,o,u,p,h,f,m,g;d(e,de,(e=>n(12,s=e))),d(e,ue,(e=>n(13,i=e))),d(e,ce,(e=>n(14,a=e))),d(e,me,(e=>n(15,l=e))),d(e,$e,(e=>n(16,c=e))),d(e,be,(e=>n(17,o=e))),d(e,ge,(e=>n(18,u=e))),d(e,xe,(e=>n(19,p=e))),d(e,we,(e=>n(1,h=e))),d(e,pe,(e=>n(5,f=e))),d(e,he,(e=>n(6,m=e))),d(e,ye,(e=>n(7,g=e)));const $=new D,b=T.on("settings.change.shredder.prioritizeShredding",(e=>{Se.set(!e)}));let k,_,v,S,x,y;$.on("/",(()=>Ae())),$.on("/:action/:pathList",(e=>n(9,x=e))),L((()=>b()));return e.$$.update=()=>{514&e.$$.dirty&&!h&&x&&("Run"===x.action&&x.pathList&&(me.set(s.files),ze(decodeURIComponent(x.pathList))),n(9,x=null)),24578&e.$$.dirty&&n(11,r=!h&&(i.state===a.finished||i.state===a.failed||i.state===a.stopping)),788992&e.$$.dirty&&(u.length&&!r||"Run"===x?.action&&x?.pathList?n(0,k=Ut):p||u.length&&r?n(0,k=Et):n(0,k=lt)),196608&e.$$.dirty&&n(10,y=j("folders"===o?"datashredder.foldersForShredding":"items"===o?"datashredder.itemsForShredding":"datashredder.filesForShredding",c.length)),37889&e.$$.dirty&&(k===Ut?n(3,v=y):k!==Et?n(3,v=j("datashredder")):l===s.partition?n(3,v=j("datashredder.shredPartition")):l===s.freespace&&n(3,v=j("datashredder.shredFreeSpace"))),24577&e.$$.dirty&&(k===Ut?n(2,_="-center-header"):k===Et?i.state===a.running||i.state===a.stopping?n(2,_="-center-header"):n(2,_="-no-header -center-all"):n(2,_="")),25601&e.$$.dirty&&(k!==Ut||[a.running,a.stopping].includes(i.state)?n(4,S=[]):n(4,S=[{title:y}]))},[k,h,_,v,S,f,m,g,$,x,y,r,s,i,a,l,c,o,u,p,()=>N.event("Upsell","View"),()=>M.openWindow(343)]}class un extends e{constructor(e){super(),t(this,e,on,cn,n,{router:8},en)}get router(){return this.$$.ctx[8]}}function pn(e){v(e,"svelte-19o5pp",".dts_algorithm.svelte-19o5pp{line-height:4rem;display:flex;align-items:center;margin-top:1rem}.dts_algorithm.svelte-19o5pp .dts_algorithm__input{width:6rem;margin:0 1rem;text-align:end}")}function hn(e){let t,n;return{c(){t=c("span"),n=b(e[0]),p(t,"class","span -small -secondary")},m(e,r){h(e,t,r),f(t,n)},p(e,t){1&t&&_(n,e[0])},i:k,o:k,d(e){e&&g(t)}}}function fn(e){let t,n;return t=new e[4]({props:{property:e[5].passCount,inputType:"number",cssCls:"dts_algorithm__input"}}),{c(){r(t.$$.fragment)},m(e,r){s(t,e,r),n=!0},p:k,i(e){n||(i(t.$$.fragment,e),n=!0)},o(e){a(t.$$.fragment,e),n=!1},d(e){l(t,e)}}}function mn(e){let t,n,r,s,l,d,u,m;const $=[fn,hn],b=[];function k(e,t){return null==e[0]?0:1}return s=k(e),l=b[s]=$[s](e),{c(){t=c("p"),n=c("span"),n.textContent=`${j(bn.withPasses)}`,r=o(),l.c(),d=o(),u=c("span"),u.textContent=`${j(bn.numberOfPasses)}`,p(n,"class","span -small -secondary"),p(u,"class","span -small -secondary"),p(t,"class","dts_algorithm svelte-19o5pp")},m(e,i){h(e,t,i),f(t,n),f(t,r),b[s].m(t,null),f(t,d),f(t,u),m=!0},p(e,n){let r=s;s=k(e),s===r?b[s].p(e,n):(A(),a(b[r],1,1,(()=>{b[r]=null})),P(),l=b[s],l?l.p(e,n):(l=b[s]=$[s](e),l.c()),i(l,1),l.m(t,d))},i(e){m||(i(l),m=!0)},o(e){a(l),m=!1},d(e){e&&g(t),b[s].d()}}}function gn(e){let t,n,d,c,u;t=new e[2]({props:{property:e[5].showInContextMenu}});let p=e[5].prioritizeShredding&&function(e){let t,n;return t=new e[2]({props:{property:e[5].prioritizeShredding}}),{c(){r(t.$$.fragment)},m(e,r){s(t,e,r),n=!0},p:k,i(e){n||(i(t.$$.fragment,e),n=!0)},o(e){a(t.$$.fragment,e),n=!1},d(e){l(t,e)}}}(e);return c=new e[3]({props:{property:e[5].algorithm,labelSmall:!0,layout:"block-dropdown",$$slots:{default:[mn]},$$scope:{ctx:e}}}),{c(){r(t.$$.fragment),n=o(),p&&p.c(),d=o(),r(c.$$.fragment)},m(e,r){s(t,e,r),h(e,n,r),p&&p.m(e,r),h(e,d,r),s(c,e,r),u=!0},p(e,t){e[5].prioritizeShredding&&p.p(e,t);const n={};65&t&&(n.$$scope={dirty:t,ctx:e}),c.$set(n)},i(e){u||(i(t.$$.fragment,e),i(p),i(c.$$.fragment,e),u=!0)},o(e){a(t.$$.fragment,e),a(p),a(c.$$.fragment,e),u=!1},d(e){l(t,e),e&&g(n),p&&p.d(e),e&&g(d),l(c,e)}}}function $n(e){let t,n;return t=new e[1]({props:{component:Y,ipmBuyElm:343,title:j(bn.title),desc:j(bn.desc),noEnable:"true",$$slots:{default:[gn]},$$scope:{ctx:e}}}),{c(){r(t.$$.fragment)},m(e,r){s(t,e,r),n=!0},p(e,[n]){const r={};65&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(i(t.$$.fragment,e),n=!0)},o(e){a(t.$$.fragment,e),n=!1},d(e){l(t,e)}}}const bn={title:"datashredder",desc:"datashredder.settings.desc",showInContextMenu:"datashredder.settings.showInContextMenu",algorithmLabel:"datashredder.settings.algorithm.label",algorithmGutman:"datashredder.settings.algorithm.gutman",algorithmDod:"datashredder.settings.algorithm.dod",algorithmRandom:"datashredder.settings.algorithm.random",withPasses:"datas