Server : Apache/2.4.43 (Win64) OpenSSL/1.1.1g PHP/7.4.6 System : Windows NT USER-PC 6.1 build 7601 (Windows 7 Professional Edition Service Pack 1) AMD64 User : User ( 0) PHP Version : 7.4.6 Disable Function : NONE Directory : C:/Program Files/Avast Software/Avast/gui_resources/1.0.663/ |
//{"name":"FeedbackForm","version":"1.2.370","created":"2021-09-06T13:05:18.840Z"} import e from"./ractive.js";import{windowApi as t,serviceRequest as r,eventer as n}from"./napi.js";import{productModel as s,settingsService as o}from"./napiExtensions.js";import{nls as a,nlsRaw as i,format as c}from"./i18n.js";import{modals as l}from"./ractiveComponents.js";import{stringUtils as d}from"./libs.js";var f=".ffo {\n text-align: center;\n}\n.ffo.disabled .h2,\n.ffo.disabled .h4,\n.ffo.disabled label {\n opacity: 0.3;\n}\n.ffo .ffo_form {\n width: 80%;\n margin: 0 auto;\n max-width: 500px;\n padding: 2rem 0;\n}\n.ffo .ffo_form input[type='text'],\n.ffo .ffo_form textarea {\n display: block;\n width: 100%;\n resize: none;\n white-space: break-spaces;\n}\n.ffo .ffo_error {\n min-height: 2em;\n padding-top: 0.7rem;\n}\n.ffo .ffo_submit {\n min-height: 4rem;\n}\n";for(var p="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},u=function(e){return e.replace(/[^\u0000-\u007e]/g,(function(e){return m[e]||e}))},h=[{base:" ",chars:" "},{base:"0",chars:"߀"},{base:"A",chars:"ⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",chars:"Ꜳ"},{base:"AE",chars:"ÆǼǢ"},{base:"AO",chars:"Ꜵ"},{base:"AU",chars:"Ꜷ"},{base:"AV",chars:"ꜸꜺ"},{base:"AY",chars:"Ꜽ"},{base:"B",chars:"ⒷBḂḄḆɃƁ"},{base:"C",chars:"ⒸCꜾḈĆCĈĊČÇƇȻ"},{base:"D",chars:"ⒹDḊĎḌḐḒḎĐƊƉᴅꝹ"},{base:"Dh",chars:"Ð"},{base:"DZ",chars:"DZDŽ"},{base:"Dz",chars:"DzDž"},{base:"E",chars:"ɛⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎᴇ"},{base:"F",chars:"ꝼⒻFḞƑꝻ"},{base:"G",chars:"ⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾɢ"},{base:"H",chars:"ⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",chars:"ⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",chars:"ⒿJĴɈȷ"},{base:"K",chars:"ⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",chars:"ⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",chars:"LJ"},{base:"Lj",chars:"Lj"},{base:"M",chars:"ⓂMḾṀṂⱮƜϻ"},{base:"N",chars:"ꞤȠⓃNǸŃÑṄŇṆŅṊṈƝꞐᴎ"},{base:"NJ",chars:"NJ"},{base:"Nj",chars:"Nj"},{base:"O",chars:"ⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OE",chars:"Œ"},{base:"OI",chars:"Ƣ"},{base:"OO",chars:"Ꝏ"},{base:"OU",chars:"Ȣ"},{base:"P",chars:"ⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",chars:"ⓆQꝖꝘɊ"},{base:"R",chars:"ⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",chars:"ⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",chars:"ⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"Th",chars:"Þ"},{base:"TZ",chars:"Ꜩ"},{base:"U",chars:"ⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",chars:"ⓋVṼṾƲꝞɅ"},{base:"VY",chars:"Ꝡ"},{base:"W",chars:"ⓌWẀẂŴẆẄẈⱲ"},{base:"X",chars:"ⓍXẊẌ"},{base:"Y",chars:"ⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",chars:"ⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",chars:"ⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐɑ"},{base:"aa",chars:"ꜳ"},{base:"ae",chars:"æǽǣ"},{base:"ao",chars:"ꜵ"},{base:"au",chars:"ꜷ"},{base:"av",chars:"ꜹꜻ"},{base:"ay",chars:"ꜽ"},{base:"b",chars:"ⓑbḃḅḇƀƃɓƂ"},{base:"c",chars:"cⓒćĉċčçḉƈȼꜿↄ"},{base:"d",chars:"ⓓdḋďḍḑḓḏđƌɖɗƋᏧԁꞪ"},{base:"dh",chars:"ð"},{base:"dz",chars:"dzdž"},{base:"e",chars:"ⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇǝ"},{base:"f",chars:"ⓕfḟƒ"},{base:"ff",chars:"ff"},{base:"fi",chars:"fi"},{base:"fl",chars:"fl"},{base:"ffi",chars:"ffi"},{base:"ffl",chars:"ffl"},{base:"g",chars:"ⓖgǵĝḡğġǧģǥɠꞡꝿᵹ"},{base:"h",chars:"ⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",chars:"ƕ"},{base:"i",chars:"ⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",chars:"ⓙjĵǰɉ"},{base:"k",chars:"ⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",chars:"ⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇɭ"},{base:"lj",chars:"lj"},{base:"m",chars:"ⓜmḿṁṃɱɯ"},{base:"n",chars:"ⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥлԉ"},{base:"nj",chars:"nj"},{base:"o",chars:"ⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿꝋꝍɵɔᴑ"},{base:"oe",chars:"œ"},{base:"oi",chars:"ƣ"},{base:"oo",chars:"ꝏ"},{base:"ou",chars:"ȣ"},{base:"p",chars:"ⓟpṕṗƥᵽꝑꝓꝕρ"},{base:"q",chars:"ⓠqɋꝗꝙ"},{base:"r",chars:"ⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",chars:"ⓢsśṥŝṡšṧṣṩșşȿꞩꞅẛʂ"},{base:"ss",chars:"ß"},{base:"t",chars:"ⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"th",chars:"þ"},{base:"tz",chars:"ꜩ"},{base:"u",chars:"ⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",chars:"ⓥvṽṿʋꝟʌ"},{base:"vy",chars:"ꝡ"},{base:"w",chars:"ⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",chars:"ⓧxẋẍ"},{base:"y",chars:"ⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",chars:"ⓩzźẑżžẓẕƶȥɀⱬꝣ"}],m={},b=0;b<h.length;b+=1)for(var g=h[b].chars,_=0;_<g.length;_+=1)m[g[_]]=h[b].base;const v=["subscribed","subscribing","subscription.noun","subscriptions.noun","unsubscribe","unsubscribes","unsubscribed","unsubscribing","pay","pays","paid","paying","payment.noun","payments.noun","premium","activate","activates","activated","activating","activation.noun","bill","bills","billed","billing","bill.noun","bills.noun","refund","refunds","refunded","refunding","refund.noun","refunds.noun","renew","renews","renewed","renewing","renewal","license","invoice"];function k(e,t){const r=t.match(new RegExp(e,"i"));return r?r[0]:null}const y=e.extend({template:{v:3,t:[{t:7,e:"div",a:{class:["ffo ",{t:2,x:{r:["state"],s:'_0!="ready"?"disabled":""'}}]},f:[{t:7,e:"h2",a:{class:"h2 -margins"},f:[{t:3,x:{r:["nls"],s:'_0("feedbackForm.submit")'}}]}," ",{t:7,e:"h4",a:{class:"h4"},f:[{t:3,x:{r:["nls"],s:'_0("feedbackForm.subtitle")'}}]}," ",{t:7,e:"fieldset",m:[{t:2,x:{r:["state"],s:'_0!="ready"?"disabled":""'}}],f:[{t:7,e:"form",a:{name:"form",class:"ffo_form"},f:[{t:7,e:"div",a:{class:"g-margin-bottom--20"},f:[{t:7,e:"div",a:{class:"radio__row"},f:[{t:7,e:"input",a:{id:"feedback",type:"radio",class:"radio g-margin-top--5",name:[{t:2,r:"feedbackType"}],value:"feedback"}}," ",{t:7,e:"label",a:{class:"radio__label",for:"feedback"},f:[{t:3,x:{r:["nls"],s:'_0("feedbackForm.report.feedback")'}}]}]}," ",{t:7,e:"div",a:{class:"radio__row"},f:[{t:7,e:"input",a:{id:"bug",type:"radio",class:"radio",name:[{t:2,r:"feedbackType"}],value:"bug"}}," ",{t:7,e:"label",a:{class:"radio__label",for:"bug"},f:[{t:3,x:{r:["nls"],s:'_0("feedbackForm.report.bug")'}}]}]}]}," ",{t:7,e:"textarea",o:"eventHandler",a:{class:["input ",{t:2,x:{r:["invalidReport"],s:'_0?"-error":""'}}],placeholder:[{t:3,x:{r:["nls"],s:'_0("feedbackForm.report.placeholder")'}}],rows:"6",value:[{t:2,r:"userReport"}]},v:{focus:"clearError",blur:{n:"validateReport",d:[{t:2,r:"userReport"}]}}}," ",{t:7,e:"div",a:{class:"form__error ffo_error"},f:[{t:4,f:[{t:7,e:"kin-icon",a:{name:"badge-critical",size:"16"}}," ",{t:3,x:{r:["nls"],s:'_0("feedbackForm.report.error")'}}],n:50,r:"invalidReport"}]}]}]}," ",{t:7,e:"div",a:{class:"ffo_submit"},f:[{t:4,f:[{t:7,e:"p",a:{class:"p"},f:[{t:7,e:"kin-icon",a:{name:"circle-ok",size:"24",class:"g-margin-right--5"}}," ",{t:3,x:{r:["nls"],s:'_0("feedbackForm.sending.success")'}}]}],n:50,x:{r:["state"],s:'_0==="sendingSuccess"'}},{t:4,n:51,f:[{t:4,n:50,x:{r:["state"],s:'_0==="sendingError"'},f:[{t:7,e:"p",a:{class:"p"},f:[{t:7,e:"kin-icon",a:{name:"circle-critical",size:"24",class:"g-margin-right--5"}}," ",{t:3,x:{r:["nls"],s:'_0("feedbackForm.sending.error")'}}]}]},{t:4,n:50,x:{r:["state"],s:'(!(_0==="sendingError"))&&(_0==="sendingInProgress")'},f:[" ",{t:7,e:"kin-button",a:{processing:"true","kin-disabled":"true"},f:[{t:3,x:{r:["nls"],s:'_0("feedbackForm.submit")'}}]}]},{t:4,n:50,x:{r:["state"],s:'(!(_0==="sendingError"))&&(!(_0==="sendingInProgress"))'},f:[" ",{t:7,e:"kin-button",v:{click:"sendFeedback"},f:[{t:3,x:{r:["nls"],s:'_0("feedbackForm.submit")'}}]}]}],x:{r:["state"],s:'_0==="sendingSuccess"'}}]}," ",{t:7,e:"div",a:{class:"text -tiny g-margin-top--10"},f:[{t:3,r:"footnoteText"}]}]}]},css:f,data:()=>({feedbackType:"feedback",userReport:"",invalidReport:!1,state:"ready",footnoteText:""}),oninit(){const e=t.getUrlParams();this.set("feedbackType",e.feedbackType||"feedback"),this.observe("state",(e=>this.fire("feedbackFormStateChanged",e))),this.on("sendFeedback",this._sendFeedback),this.on("validateReport",((e,t)=>{this._validateReport(t)})),this.on("clearError",(()=>{this.set("invalidReport",!1)})),this._prepareFootnoteText()},_validateReport(e){this.set("invalidReport",!e.match(/\w+|\d+/g))},_sendFeedback(){const e=this.get("userReport"),n=this.get("feedbackType"),s=()=>{this.set("state","sendingInProgress"),r("app.utils.SubmitFeedback",{type:n,content:e}).then((()=>{this._feedbackSent()})).catch((e=>{this.set("state","sendingError"),console.error("app.utils.SubmitFeedback error",JSON.stringify(e))}))};if(this._validateReport(e),!this.get("invalidReport")){if("feedback"===n){const r=function(e){const t=[];for(const r of v){const n="feedbackForm.subscriptionKeyword."+r;let s=k(a(n),e);if(s||(s=k(u(a(n)),u(e))),s)t.push(s);else{const r=k(i(n,"en"),e);r&&t.push(r)}}return t.reduce(((e,t)=>t.length>e.length?t:e),"")}(e);if(r){const e=this._getSupportUrl(),n=a("feedbackForm.report.keywordModal.title",r),o=this._urlToText(a("feedbackForm.report.keywordModal.desc"),e);return void l.confirm(o,{title:n,ok:a("feedbackForm.report.keywordModal.contactSupportCenter.btn"),cancel:a("feedbackForm.report.keywordModal.submit.btn")}).then((()=>{t.browse(e)})).catch((e=>{"cancel"===e&&s()}))}}s()}},_feedbackSent(){this.set("state","sendingSuccess"),this.closeDialogTimeout||(this.closeDialogTimeout=setTimeout((()=>{this._clearCloseDialogTimeout(),this.fire("feedbackFormClose")}),2e3))},_clearCloseDialogTimeout(){this.closeDialogTimeout&&(clearTimeout(this.closeDialogTimeout),this.closeDialogTimeout=null)},_prepareFootnoteText(){const e=this._getSupportUrl(),t=this._urlToText(a("feedbackForm.footnote.text"),e);this.set("footnoteText",t)},_getSupportUrl(){const e=s.getProduct(),t=s.getUserConfig().language;let r="avast";"avg_business"===e?r="avg_smb":0===e.indexOf("avg_")?r="avg":0===e.indexOf("business")?r="avast_smb":s.isTheOne()&&(r="one");return{avast:"https://support.avast.com/?l="+t,avast_smb:"https://www.avast.com/business-support",avg:"https://support.avg.com/?l="+t,avg_smb:"https://support.avg.com/business",one:a("help.link.support")}[r]},_urlToText:(e,t)=>e.replace(new RegExp("{URL_START}(.+?){URL_END}"),"<a onclick=\"NAPI.track.event('Feedback', 'Click', 'SupportCenter');NAPI.request('av.command', 'shell_exec:open:"+t+'\')" class="a">$1</a>'),onteardown(){this._clearCloseDialogTimeout()}}),x=e.extend({template:{v:3,t:[{t:7,e:"header",a:{class:"nui_titlebar -toaster nui_caption"},f:[{t:7,e:"h1",a:{class:"nui_logo"},f:[{t:7,e:"span",a:{class:"logo -white -width-70"}}]}," ",{t:7,e:"div",a:{class:"nui_controls"},f:[{t:7,e:"button",a:{disabled:[{t:2,r:"preventClose"}],"data-test":"feedback-modal-close",class:"nui_controls__item -close nui_caption_client",title:[{t:2,x:{r:["nls"],s:'_0("global.close")'}}]},v:{click:"Modal.close"},f:[{t:7,e:"Icon",a:{name:"titlebar-close"}}]}]}]}," ",{t:7,e:"section",a:{class:"nui_main -toaster"},f:[{t:7,e:"Form"}]}]},css:f,components:{Form:y},data:()=>({windowWidth:570,windowHeight:490,preventClose:!1}),oninit(){this.on("Modal.close",this._closeModal),this.on("Form.feedbackFormClose",this._closeModal),this.on("Form.feedbackFormStateChanged",(e=>{this.set("preventClose","sendingInProgress"===e)}))},_closeModal(){t.close()}});const w=e.extend({template:{v:3,t:[{t:7,e:"div",a:{class:[{t:2,x:{r:["isModal"],s:'!_0?"window-content":""'}}]},o:"observeMutation",f:[{t:4,f:[{t:7,e:"header",a:{class:"nui_titlebar -toaster nui_caption"},f:[{t:7,e:"h1",a:{class:"nui_logo"},f:[{t:7,e:"span",a:{class:"logo -white -width-70"}}]}," ",{t:7,e:"div",a:{class:"nui_controls"},f:[{t:7,e:"button",a:{disabled:[{t:2,x:{r:["state"],s:'_0!=="ready"'}}],class:"nui_controls__item -close nui_caption_client","data-test":"close",title:[{t:3,x:{r:["nls"],s:'_0("global.close")'}}]},v:{click:"Modal.close"},f:[{t:7,e:"Icon",a:{name:"titlebar-close"}}]}]}]}],n:50,x:{r:["isModal"],s:"!_0"}}," ",{t:7,e:"div",a:{class:["ffo ",{t:2,x:{r:["isModal"],s:'!_0?"-toaster":""'}}]},f:[{t:4,f:[{t:7,e:"h2",a:{class:"h2 -margins"},f:[{t:3,x:{r:["nls"],s:'_0("sendAnalysis.title")'}}]}," ",{t:7,e:"h4",a:{class:"h4"},f:[{t:2,r:"currentThreat.filePath"}]}," ",{t:7,e:"fieldset",a:{disabled:[{t:2,x:{r:["state"],s:'_0!=="ready"'}}]},f:[{t:7,e:"form",a:{name:"form",class:"ffo_form"},f:[{t:7,e:"div",a:{class:"g-margin-bottom--20"},f:[{t:7,e:"div",a:{class:"radio__row"},f:[{t:7,e:"input",a:{id:"sendAnalysis-option-0",type:"radio",class:"radio",name:[{t:2,r:"analysisType"}],value:"0"}}," ",{t:7,e:"label",a:{class:"radio__label",for:"sendAnalysis-option-0"},f:[{t:3,x:{r:["nls"],s:'_0("sendAnalysis.radio.option0")'}}]}]}," ",{t:7,e:"div",a:{class:"radio__row"},f:[{t:7,e:"input",a:{id:"sendAnalysis-option-1",type:"radio",class:"radio",name:[{t:2,r:"analysisType"}],value:"1"}}," ",{t:7,e:"label",a:{class:"radio__label",for:"sendAnalysis-option-1"},f:[{t:3,x:{r:["nls"],s:'_0("sendAnalysis.radio.option1")'}}]}]}]}," ",{t:7,e:"textarea",o:"eventHandler",a:{class:["input ",{t:2,x:{r:["invalidReport"],s:'_0?"-error":""'}}],placeholder:[{t:3,x:{r:["nls"],s:'_0("sendAnalysis.textarea.caption")'}}],rows:"6",value:[{t:2,r:"userReport"}]},v:{focus:{n:"clearError",a:"report"},blur:{n:"validateReport",d:[{t:2,r:"userReport"}]}}}," ",{t:7,e:"div",a:{class:"form__error ffo_error"},f:[{t:4,f:[{t:7,e:"kin-icon",a:{name:"badge-critical",size:"16"}}," ",{t:3,x:{r:["nls"],s:'_0("feedbackForm.report.error")'}}],n:50,r:"invalidReport"}]}]}]}," ",{t:7,e:"div",a:{class:"ffo_submit"},f:[{t:4,f:[{t:7,e:"p",a:{class:"p"},f:[{t:7,e:"kin-icon",a:{name:"circle-ok",size:"24",class:"g-margin-right--5"}}," ",{t:3,x:{r:["nls"],s:'_0("global.sent")'}}]}],n:50,x:{r:["state"],s:'_0==="sendingSuccess"'}},{t:4,n:51,f:[{t:4,n:50,x:{r:["state"],s:'_0==="sendingError"'},f:[{t:7,e:"p",a:{class:"p"},f:[{t:7,e:"kin-icon",a:{name:"circle-critical",size:"24",class:"g-margin-right--5"}}," ",{t:3,x:{r:["nls"],s:'_0("feedbackForm.sending.error")'}}]}]},{t:4,n:50,x:{r:["state"],s:'!(_0==="sendingError")'},f:[" ",{t:7,e:"kin-button",v:{click:"send"},a:{processing:[{t:2,x:{r:["state"],s:'_0==="sendingInProgress"'}}],"kin-disabled":[{t:2,x:{r:["state"],s:'_0==="sendingInProgress"'}}]},f:[{t:3,x:{r:["nls"],s:'_0("global.send")'}}]}," ",{t:4,f:[{t:7,e:"kin-button",v:{click:"skip"},a:{type:"secondary",class:"g-margin-left--10"},f:[{t:3,x:{r:["nls"],s:'_0("global.skip")'}}]}],n:50,r:"threats.length"}," ",{t:7,e:"kin-button",v:{click:"close"},a:{type:"secondary",class:"g-margin-left--10"},f:[{t:3,x:{r:["nls"],s:'_0("global.cancel")'}}]}]}],x:{r:["state"],s:'_0==="sendingSuccess"'}}]}],n:50,r:"currentThreat"},{t:4,n:51,f:[{t:7,e:"h3",a:{class:"h3 modal__title -text"},f:[{t:3,x:{r:["nls"],s:'_0("sendAnalysis.modal.title")'}}]}," ",{t:7,e:"p",a:{class:"p"},f:[{t:3,x:{r:["nls","threatsSent"],s:'_0("sendAnalysis.modal.subtitle",_1)'}}]}," ",{t:7,e:"div",a:{class:"modal__actions"},f:[{t:7,e:"kin-button",a:{type:"secondary",size:"small"},v:{click:"close"},f:[{t:3,x:{r:["nls"],s:'_0("global.close")'}}]}]}],r:"currentThreat"}]}]}]},css:".ffo {\n text-align: center;\n}\n.ffo .h4 {\n word-break: break-all;\n}\n.ffo .ffo_form {\n width: 80%;\n margin: 20px auto;\n max-width: 500px;\n}\n.ffo .ffo_form input[type='text'],\n.ffo .ffo_form textarea {\n display: block;\n width: 100%;\n resize: none;\n}\n.ffo .ffo_form:disabled {\n opacity: 0.3;\n}\n.ffo .ffo_error {\n min-height: 2em;\n padding-top: 0.7rem;\n}\n.ffo .ffo_submit {\n min-height: 4rem;\n}\n.ffo .ffo_submit button {\n margin-right: 5px;\n}\n.ffo .ffo_submit button:last-child {\n margin-right: 0;\n}\n.ffo .ffo_result {\n font-size: 20px;\n border-radius: 100px;\n border: solid 1px;\n width: 33px;\n height: 33px;\n line-height: 30px;\n text-align: center;\n}\n.window-content .modal__actions,\n.window-content .ffo_submit {\n padding-bottom: 20px;\n}\n",data:()=>({windowWidth:570,windowHeight:430,state:"ready",analysisType:1,threatsSent:0,userReport:""}),decorators:{observeMutation:function(e){const t=new MutationObserver(this.adjustWindowHeight.bind(this));return t.observe(e,{attributes:!0,childList:!0,characterData:!0,subtree:!0}),this.adjustWindowHeight(),{teardown:function(){t.disconnect()}}}},adjustWindowHeight(){const e=this.find(".window-content");e&&this.set("windowHeight",e.scrollHeight)},onconfig(){const e=this.get("params")||{},t=void 0===e.analysisType?this.get("analysisType"):+e.analysisType,r="string"==typeof e.threats?JSON.parse(decodeURIComponent(e.threats)):e.threats,n=!!e.isModal;this.set({analysisType:t>=0&&t<=1?t:1,threats:r,isModal:n}),this._showNextThreat()},oninit(){this.timeout="",this._setListeners()},_setListeners(){this.on("send",this._sendForAnalysis),this.on("skip",this._showNextThreat),this.on("Modal.close",this._closeModal),this.on("close",this._closeModal),this.on("clearError",(()=>{this.set("invalidReport",!1)}))},_closeModal(){"sendingInProgress"!==this.get("state")&&(this.get("isModal")?this.fire("AnalysisClose"):t.close())},_sendForAnalysis(){const e=this.get("userReport"),t=this.get("currentThreat");e.match(/\w+|\d+/g)?(this.set({state:"sendingInProgress"}),r("app.utils.SendFileForAnalysis",{analysisType:+this.get("analysisType"),userContent:e,threat:{itemUID:t.itemUID,filePath:t.filePath}}).catch((e=>{console.error("[Feedback] {analyis} Submit failed:",JSON.stringify(e))})).then((()=>{this.set({state:"sendingSuccess"}),this.add("threatsSent"),this.timeout=setTimeout((()=>{this.set({state:"ready"}),this._showNextThreat()}),2e3)}))):this.set({invalidReport:!0})},_showNextThreat(){const e=this.get("threats").pop();e&&e.dirPath&&(e.filePath=e.dirPath+"\\"+e.name),this.set({currentThreat:e,userReport:""})},onteardown(){clearTimeout(this.timeout)}});function R(){}function T(e){return e()}function $(){return Object.create(null)}function F(e){e.forEach(T)}function C(e){return"function"==typeof e}function S(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function M(e,t){e.appendChild(t)}function E(e,t,r){e.insertBefore(t,r||null)}function A(e){e.parentNode.removeChild(e)}function z(e){return document.createElement(e)}function j(e){return document.createTextNode(e)}function O(){return j(" ")}function N(e,t,r,n){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}function P(e,t,r){null==r?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function D(e,t,r){t in e?e[t]=r:P(e,t,r)}function I(e,t){t=""+t,e.wholeText!==t&&(e.data=t)}function H(e,t){e.value=null==t?"":t}class L{constructor(e=null){this.a=e,this.e=this.n=null}m(e,t,r=null){this.e||(this.e=z(t.nodeName),this.t=t,this.h(e)),this.i(r)}h(e){this.e.innerHTML=e,this.n=Array.from(this.e.childNodes)}i(e){for(let t=0;t<this.n.length;t+=1)E(this.t,this.n[t],e)}p(e){this.d(),this.h(e),this.i(this.a)}d(){this.n.forEach(A)}}let W;function U(e){W=e}function G(e){(function(){if(!W)throw new Error("Function called outside component initialization");return W})().$$.on_destroy.push(e)}const J=[],V=[],B=[],Y=[],Z=Promise.resolve();let q=!1;function K(e){B.push(e)}let Q=!1;const X=new Set;function ee(){if(!Q){Q=!0;do{for(let e=0;e<J.length;e+=1){const t=J[e];U(t),te(t.$$)}for(U(null),J.length=0;V.length;)V.pop()();for(let e=0;e<B.length;e+=1){const t=B[e];X.has(t)||(X.add(t),t())}B.length=0}while(J.length);for(;Y.length;)Y.pop()();q=!1,Q=!1,X.clear()}}function te(e){if(null!==e.fragment){e.update(),F(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(K)}}const re=new Set;function ne(e,t){-1===e.$$.dirty[0]&&(J.push(e),q||(q=!0,Z.then(ee)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function se(e,t,r,n,s,o,a=[-1]){const i=W;U(e);const c=e.$$={fragment:null,ctx:null,props:o,update:R,not_equal:s,bound:$(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(i?i.$$.context:[]),callbacks:$(),dirty:a,skip_bound:!1};let l=!1;if(c.ctx=r?r(e,t.props||{},((t,r,...n)=>{const o=n.length?n[0]:r;return c.ctx&&s(c.ctx[t],c.ctx[t]=o)&&(!c.skip_bound&&c.bound[t]&&c.bound[t](o),l&&ne(e,t)),r})):[],c.update(),l=!0,F(c.before_update),c.fragment=!!n&&n(c.ctx),t.target){if(t.hydrate){const e=function(e){return Array.from(e.childNodes)}(t.target);c.fragment&&c.fragment.l(e),e.forEach(A)}else c.fragment&&c.fragment.c();t.intro&&((d=e.$$.fragment)&&d.i&&(re.delete(d),d.i(f))),function(e,t,r,n){const{fragment:s,on_mount:o,on_destroy:a,after_update:i}=e.$$;s&&s.m(t,r),n||K((()=>{const t=o.map(T).filter(C);a?a.push(...t):F(t),e.$$.on_mount=[]})),i.forEach(K)}(e,t.target,t.anchor,t.customElement),ee()}var d,f;U(i)}var oe=/^\s+|\s+$/g,ae=/^[-+]0x[0-9a-f]+$/i,ie=/^0b[01]+$/i,ce=/^0o[0-7]+$/i,le=parseInt,de="object"==typeof p&&p&&p.Object===Object&&p,fe="object"==typeof self&&self&&self.Object===Object&&self,pe=de||fe||Function("return this")(),ue=Object.prototype.toString,he=Math.max,me=Math.min,be=function(){return pe.Date.now()};function ge(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function _e(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==ue.call(e)}(e))return NaN;if(ge(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ge(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(oe,"");var r=ie.test(e);return r||ce.test(e)?le(e.slice(2),r?2:8):ae.test(e)?NaN:+e}var ve=function(e,t,r){var n,s,o,a,i,c,l=0,d=!1,f=!1,p=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function u(t){var r=n,o=s;return n=s=void 0,l=t,a=e.apply(o,r)}function h(e){return l=e,i=setTimeout(b,t),d?u(e):a}function m(e){var r=e-c;return void 0===c||r>=t||r<0||f&&e-l>=o}function b(){var e=be();if(m(e))return g(e);i=setTimeout(b,function(e){var r=t-(e-c);return f?me(r,o-(e-l)):r}(e))}function g(e){return i=void 0,p&&n?u(e):(n=s=void 0,a)}function _(){var e=be(),r=m(e);if(n=arguments,s=this,c=e,r){if(void 0===i)return h(c);if(f)return i=setTimeout(b,t),u(c)}return void 0===i&&(i=setTimeout(b,t)),a}return t=_e(t)||0,ge(r)&&(d=!!r.leading,o=(f="maxWait"in r)?he(_e(r.maxWait)||0,t):o,p="trailing"in r?!!r.trailing:p),_.cancel=function(){void 0!==i&&clearTimeout(i),l=0,n=c=s=i=void 0},_.flush=function(){return void 0===i?a:g(be())},_};function ke(e){let t,r,n,s;return{c(){t=z("button"),r=z("kin-icon"),D(r,"name","minimize"),D(r,"size","16"),P(t,"class","nui_controls__item -minimize nui_caption_client"),P(t,"title",a("global.minimize"))},m(o,a){E(o,t,a),M(t,r),n||(s=N(t,"click",e[15]),n=!0)},p:R,d(e){e&&A(t),n=!1,s()}}}function ye(e){let t,r,n,s,o,i,c,l,d,f,p,u,h,m,b,g,_,v,k,y,x,w,R,T,$,C,S,I,W,U,G,J,V,B,Y=a("performanceReporter.desc",e[8])+"",Z=a("performanceReporter.whatWeRecord.tooltip.list")+"",q=a("performanceReporter.whatWeDontRecord.tooltip.list")+"",K=a("performanceReporter.startRecording")+"",Q=e[4]&&$e(e);return{c(){t=z("h2"),t.textContent=`${a("performanceReporter.title")}`,r=O(),n=z("div"),o=O(),i=z("span"),i.textContent=`${a("performanceReporter.whatDoWeRecord")}`,c=O(),l=z("kin-tooltip"),d=z("div"),d.innerHTML='<kin-icon name="icon-m-action-info" size="16"></kin-icon>',f=O(),p=z("div"),u=z("div"),h=z("p"),h.textContent=`${a("performanceReporter.whatWeRecord.tooltip.title")}`,m=O(),b=z("ul"),g=O(),_=z("p"),_.textContent=`${a("performanceReporter.whatWeDontRecord.tooltip.title")}`,v=O(),k=z("ul"),y=O(),x=z("form"),w=z("textarea"),R=O(),T=z("div"),Q&&Q.c(),$=O(),C=z("div"),S=z("kin-button"),I=j(K),W=O(),U=z("kin-button"),U.textContent=`${a("global.cancel")}`,G=O(),J=z("div"),J.textContent=`${a("performanceReporter.footnote")}`,P(t,"class","h2 -margins"),s=new L(o),P(d,"slot","tooltip-activator"),P(h,"class","p g-margin-top--20 g-font--bold -small"),P(b,"class","list svelte-k1d41"),P(_,"class","p g-margin-top--20 g-font--bold -small"),P(k,"class","list svelte-k1d41"),P(u,"class","pre_tooltip svelte-k1d41"),P(p,"slot","tooltip"),P(n,"class","p"),P(w,"class","input svelte-k1d41"),P(w,"placeholder",a("performanceReporter.describeYourProblemHere")),P(w,"rows","6"),P(T,"class","form__error pre_error svelte-k1d41"),P(x,"name","form"),P(x,"class","pre_form svelte-k1d41"),D(S,"processing",e[7]),D(U,"type","secondary"),D(U,"class","g-margin-left--10"),P(C,"class","pre_submit svelte-k1d41"),P(J,"class","text -tiny pre_footnote svelte-k1d41")},m(a,F){E(a,t,F),E(a,r,F),E(a,n,F),s.m(Y,n),M(n,o),M(n,i),M(n,c),M(n,l),M(l,d),M(l,f),M(l,p),M(p,u),M(u,h),M(u,m),M(u,b),b.innerHTML=Z,M(u,g),M(u,_),M(u,v),M(u,k),k.innerHTML=q,E(a,y,F),E(a,x,F),M(x,w),H(w,e[0]),M(x,R),M(x,T),Q&&Q.m(T,null),E(a,$,F),E(a,C,F),M(C,S),M(S,I),M(C,W),M(C,U),E(a,G,F),E(a,J,F),V||(B=[N(w,"input",e[18]),N(S,"click",e[14]),N(U,"click",e[11])],V=!0)},p(e,t){256&t[0]&&Y!==(Y=a("performanceReporter.desc",e[8])+"")&&s.p(Y),1&t[0]&&H(w,e[0]),e[4]?Q?Q.p(e,t):(Q=$e(e),Q.c(),Q.m(T,null)):Q&&(Q.d(1),Q=null),128&t[0]&&D(S,"processing",e[7])},d(e){e&&A(t),e&&A(r),e&&A(n),e&&A(y),e&&A(x),Q&&Q.d(),e&&A($),e&&A(C),e&&A(G),e&&A(J),V=!1,F(B)}}}function xe(e){let t,r,n,s,o,i,c,l,d,f;return{c(){t=z("kin-icon"),r=O(),n=z("h2"),n.textContent=`${a("performanceReporter.recordingSent.title")}`,s=O(),o=z("p"),o.textContent=`${a("performanceReporter.recordingSent.desc")}`,i=O(),c=z("div"),l=z("kin-button"),l.textContent=`${a("global.done")}`,D(t,"name","circle-ok"),D(t,"size","54"),D(t,"class","g-margin-top--20 g-margin-bottom--20"),P(n,"class","h2 -margins"),P(o,"class","p"),P(c,"class","g-margin-top--20 g-margin-bottom--20")},m(a,p){E(a,t,p),E(a,r,p),E(a,n,p),E(a,s,p),E(a,o,p),E(a,i,p),E(a,c,p),M(c,l),d||(f=N(l,"click",e[17]),d=!0)},p:R,d(e){e&&A(t),e&&A(r),e&&A(n),e&&A(s),e&&A(o),e&&A(i),e&&A(c),d=!1,f()}}}function we(e){let t,r,n,s,o,i,c,l,d,f,p,u,h,m,b,g,_=a("global.send")+"",v=e[3]&&Fe();return{c(){t=z("h2"),t.textContent=`${a("performanceReporter.recordingFinished.title")}`,r=O(),n=z("p"),n.textContent=`${a("performanceReporter.recordingFinished.desc")}`,s=O(),o=z("form"),i=z("kin-input"),c=O(),l=z("div"),v&&v.c(),d=O(),f=z("div"),p=z("kin-button"),u=j(_),h=O(),m=z("kin-button"),m.textContent=`${a("performanceReporter.discardRecording")}`,P(t,"class","h2 -margins"),P(n,"class","p"),D(i,"placeholder",a("performanceReporter.addEmail.label")),D(i,"value",e[2]),P(l,"class","form__error pre_error svelte-k1d41"),P(o,"onsubmit","return false"),P(o,"class","pre_email svelte-k1d41"),P(o,"name","form"),D(p,"processing",e[7]),D(m,"type","secondary"),D(m,"class","g-margin-left--5"),P(f,"class","pre_submit svelte-k1d41")},m(a,_){E(a,t,_),E(a,r,_),E(a,n,_),E(a,s,_),E(a,o,_),M(o,i),M(o,c),M(o,l),v&&v.m(l,null),E(a,d,_),E(a,f,_),M(f,p),M(p,u),M(f,h),M(f,m),b||(g=[N(i,"input",e[16]),N(p,"click",e[12]),N(m,"click",e[11])],b=!0)},p(e,t){4&t[0]&&D(i,"value",e[2]),e[3]?v?v.p(e,t):(v=Fe(),v.c(),v.m(l,null)):v&&(v.d(1),v=null),128&t[0]&&D(p,"processing",e[7])},d(e){e&&A(t),e&&A(r),e&&A(n),e&&A(s),e&&A(o),v&&v.d(),e&&A(d),e&&A(f),b=!1,F(g)}}}function Re(e){let t;function r(e,t){return e[4]?Se:Ce}let n=r(e),s=n(e);return{c(){s.c(),t=j("")},m(e,r){s.m(e,r),E(e,t,r)},p(e,o){n===(n=r(e))&&s?s.p(e,o):(s.d(1),s=n(e),s&&(s.c(),s.m(t.parentNode,t)))},d(e){s.d(e),e&&A(t)}}}function Te(e){let t,r,n,s,o,i,c,l,d,f,p,u=a("performanceReporter.finishRecording")+"";function h(e,t){return e[8]<=0?Ee:Me}let m=h(e),b=m(e);return{c(){t=z("h2"),t.textContent=`${a("performanceReporter.recordingInProgress")}`,r=O(),n=z("p"),b.c(),s=O(),o=z("div"),i=z("kin-progress"),c=O(),l=z("kin-button"),d=j(u),P(t,"class","h2 -margins"),P(n,"class","p"),D(i,"percentage",e[6]),P(o,"class","g-margin-top--20 g-margin-bottom--40"),D(l,"processing",e[7])},m(a,u){E(a,t,u),E(a,r,u),E(a,n,u),b.m(n,null),E(a,s,u),E(a,o,u),M(o,i),E(a,c,u),E(a,l,u),M(l,d),f||(p=N(l,"click",e[13]),f=!0)},p(e,t){m===(m=h(e))&&b?b.p(e,t):(b.d(1),b=m(e),b&&(b.c(),b.m(n,null))),64&t[0]&&D(i,"percentage",e[6]),128&t[0]&&D(l,"processing",e[7])},d(e){e&&A(t),e&&A(r),e&&A(n),b.d(),e&&A(s),e&&A(o),e&&A(c),e&&A(l),f=!1,p()}}}function $e(e){let t,r,n;return{c(){t=z("kin-icon"),r=O(),n=j(e[4]),D(t,"name","badge-critical"),D(t,"size","16")},m(e,s){E(e,t,s),E(e,r,s),E(e,n,s)},p(e,t){16&t[0]&&I(n,e[4])},d(e){e&&A(t),e&&A(r),e&&A(n)}}}function Fe(e){let t,r,n,s=a("global.invalidEmailError")+"";return{c(){t=z("kin-icon"),r=O(),n=j(s),D(t,"name","badge-critical"),D(t,"size","16")},m(e,s){E(e,t,s),E(e,r,s),E(e,n,s)},p:R,d(e){e&&A(t),e&&A(r),e&&A(n)}}}function Ce(e){let t,r,n,s,o;return{c(){t=z("h2"),t.textContent=`${a("performanceReporter.discarding.title")}`,r=O(),n=z("p"),n.textContent=`${a("performanceReporter.discarding.desc")}`,s=O(),o=z("div"),o.innerHTML='<kin-progress percentage="-1"></kin-progress>',P(t,"class","h2 -margins"),P(n,"class","p"),P(o,"class","g-margin-top--20 g-margin-bottom--40")},m(e,a){E(e,t,a),E(e,r,a),E(e,n,a),E(e,s,a),E(e,o,a)},p:R,d(e){e&&A(t),e&&A(r),e&&A(n),e&&A(s),e&&A(o)}}}function Se(e){let t,r,n,s,o,i,c,l,d;return{c(){t=z("h2"),t.textContent=`${a("performanceReporter.discarding.error.title")}`,r=O(),n=z("div"),s=z("p"),o=j(e[4]),i=O(),c=z("kin-button"),c.textContent=`${a("global.close")}`,P(t,"class","h2 -margins"),P(s,"class","p color-critical -text g-margin-bottom--40"),P(n,"class","g-margin-top--20")},m(a,f){E(a,t,f),E(a,r,f),E(a,n,f),M(n,s),M(s,o),M(n,i),M(n,c),l||(d=N(c,"click",e[11]),l=!0)},p(e,t){16&t[0]&&I(o,e[4])},d(e){e&&A(t),e&&A(r),e&&A(n),l=!1,d()}}}function Me(e){let t,r=a("performanceReporter.secRemaining",e[8])+"";return{c(){t=j(r)},m(e,r){E(e,t,r)},p(e,n){256&n[0]&&r!==(r=a("performanceReporter.secRemaining",e[8])+"")&&I(t,r)},d(e){e&&A(t)}}}function Ee(e){let t,r=a("performanceReporter.processing")+"";return{c(){t=j(r)},m(e,r){E(e,t,r)},p:R,d(e){e&&A(t)}}}function Ae(e){let t,r,n,s,o,i,c,l,d,f,p,u,h="recording"===e[5]&&ke(e);function m(e,t){return"recording"===e[5]?Te:"discarding"===e[5]?Re:"recordingFinished"===e[5]?we:"recordingSent"===e[5]?xe:e[1]?void 0:ye}let b=m(e),g=b&&b(e);return{c(){var e,p,u;t=z("div"),r=z("div"),n=z("h1"),n.innerHTML='<span class="logo -white -width-70"></span>',s=O(),o=z("div"),h&&h.c(),i=O(),c=z("button"),l=O(),d=z("div"),f=z("div"),g&&g.c(),P(n,"class","nui_logo"),P(c,"class","nui_controls__item -close nui_caption_client"),P(c,"title",a("global.closeModalWindow")),P(o,"class","nui_controls"),P(r,"class","nui_titlebar -toaster nui_caption"),P(f,"class","pre svelte-k1d41"),P(d,"class","nui_main -toaster svelte-k1d41"),P(t,"class","sve_toaster -detection"),e="width",p=ze+"px",t.style.setProperty(e,p,u?"important":"")},m(a,m){var b;E(a,t,m),M(t,r),M(r,n),M(r,s),M(r,o),h&&h.m(o,null),M(o,i),M(o,c),M(t,l),M(t,d),M(d,f),g&&g.m(f,null),p||(u=[N(c,"click",e[11]),(b=e[9].call(null,t),b&&C(b.destroy)?b.destroy:R)],p=!0)},p(e,t){"recording"===e[5]?h?h.p(e,t):(h=ke(e),h.c(),h.m(o,i)):h&&(h.d(1),h=null),b===(b=m(e))&&g?g.p(e,t):(g&&g.d(1),g=b&&b(e),g&&(g.c(),g.m(f,null)))},i:R,o:R,d(e){e&&A(t),h&&h.d(),g&&g.d(),p=!1,F(u)}}}const ze=570;function je(e,s,i){let f,p="",u=!0,h="",m=!1,b=null,g="ready",_=0,v=!1,k=0,y=0,x=0,w=null;const R=[];function T(e){t.resize(ze,Math.max(e.scrollHeight,300))}function $(e){i(2,h=e),f()}function F(){if(""===h)return i(3,m=!1),!0;const e=d.isEmailValid(h);return i(3,m=!e),e}function C(){const e=25e3*k;return{raw:e,formatted:c.formatBytes(e,0,1e3)}}function S(){w&&(clearInterval(w),w=null)}f=ve(F,1e3),o.getValueCached("avcfg://settings/PerfRecorder/MaxRecordingSeconds").then((e=>{i(8,x=parseInt(e)||20),y=1e3*x,k=y})).then((()=>{i(1,u=!1)})),G((()=>{S(),R.forEach((e=>e()))}));return[p,u,h,m,b,g,_,v,x,function(e){T(e);const t=new MutationObserver(T.bind(this,e));return t.observe(e,{attributes:!0,childList:!0,characterData:!0,subtree:!0}),{destroy:t.disconnect.bind(t)}},$,function(){if("recording"===g||"recordingFinished"===g){let e="performanceReporter.closeConfirm.recording.desc",n="performanceReporter.closeConfirm.recording.title",s="performanceReporter.closeConfirm.recording.confirm.btn",o="performanceReporter.closeConfirm.recording.cancel.btn";"recordingFinished"===g&&(e="performanceReporter.closeConfirm.recordingFinished.desc",n="performanceReporter.closeConfirm.recordingFinished.title",s="performanceReporter.closeConfirm.recordingFinished.confirm.btn",o="performanceReporter.closeConfirm.recordingFinished.cancel.btn"),l.confirm(a(e),{title:a(n),ok:a(s),cancel:a(o)}).then((()=>{i(7,v=!0),i(5,g="discarding"),r("app.perf_recorder.Cancel").then((()=>{t.close()})).catch((e=>{console.error("app.perf_recorder.Cancel",e),i(4,b=a("performanceReporter.discarding.error.desc"))})).finally((()=>{i(7,v=!1)}))})).catch((()=>{console.log("Window close cancelled")}))}else t.close()},function(){F()&&(i(7,v=!0),r("app.perf_recorder.Send",{email:h}).catch((e=>{console.error("app.perf_recorder.Send",e),i(4,b=e.description)})).finally((()=>{i(7,v=!1),i(5,g="recordingSent")})))},function(){i(7,v=!0),r("app.perf_recorder.Stop").catch((e=>{console.error("app.perf_recorder.Stop",e),i(4,b=e.description)})).finally((()=>{i(7,v=!1)}))},function(){i(4,b=null),p?(i(7,v=!0),r("app.utils.GetGlobalMemoryStatus").then((e=>{if(e&&e.available_physical){const t=e.available_physical,r=C();t&&t<r.raw/1e6&&i(4,b=a("performanceReporter.error.notEnoughMemory",r.formatted))}})).catch((e=>{console.error("app.utils.GetGlobalMemoryStatus",e)})).then((()=>{b?i(7,v=!1):r("app.perf_recorder.Start",{description:p}).then((()=>{R.push(n.on("asw.perf_recorder.Stopped",(()=>{i(7,v=!1),i(5,g="recordingFinished"),t.open({url:location.origin+"/MainWindow.html?module=Feedback&view=performanceReporter",windowType:"window",showTitlebar:!1})}))),i(5,g="recording"),w=setInterval((()=>{y-=100,i(8,x=Math.floor(y/1e3)),i(6,_=100-y/k*100),y<=0&&(S(),i(6,_=-1))}),100)})).catch((e=>{1===e.code?(i(4,b=a("performanceReporter.error.recordingNotFinished")),i(7,v=!0),R.push(n.on("asw.perf_recorder.Finished",(()=>{setTimeout((()=>{i(7,v=!1),i(4,b=null)}),2e3)})))):8===e.code?i(4,b=a("performanceReporter.error.notEnoughMemory")):112===e.code?i(4,b=a("performanceReporter.error.notEnoughDiskSpace",C().formatted)):i(4,b=a("performanceReporter.error.cannotStartGeneric"))})).finally((()=>{i(7,v=!1)}))}))):i(4,b=a("performanceReporter.error.missingDesc"))},()=>t.minimize(),e=>$(e.target.value),()=>t.close(),function(){p=this.value,i(0,p)}]}class Oe extends class{$destroy(){!function(e,t){const r=e.$$;null!==r.fragment&&(F(r.on_destroy),r.fragment&&r.fragment.d(t),r.on_destroy=r.fragment=null,r.ctx=[])}(this,1),this.$destroy=R}$on(e,t){const r=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return r.push(t),()=>{const e=r.indexOf(t);-1!==e&&r.splice(e,1)}}$set(e){var t;this.$$set&&(t=e,0!==Object.keys(t).length)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}{constructor(e){var t;super(),document.getElementById("svelte-k1d41-style")||((t=z("style")).id="svelte-k1d41-style",t.textContent=".nui_main.svelte-k1d41.svelte-k1d41{display:flex;height:auto;max-height:initial}.pre_tooltip.svelte-k1d41 .list.svelte-k1d41{min-width:18ch;font-size:var(--font-size-small)}.pre.svelte-k1d41.svelte-k1d41{text-align:center;margin-left:4rem;margin-right:4rem}.pre_form.svelte-k1d41.svelte-k1d41{margin:2rem auto 0}.pre_form.svelte-k1d41 textarea.svelte-k1d41{display:block;width:100%;resize:none}.pre_error.svelte-k1d41.svelte-k1d41{min-height:5rem;margin-top:1rem}.pre_submit.svelte-k1d41.svelte-k1d41{min-height:4rem}.pre_email.svelte-k1d41.svelte-k1d41{width:39rem;margin:2rem auto 0}.pre_footnote.svelte-k1d41.svelte-k1d41{margin:2rem 6rem}",M(document.head,t)),se(this,e,je,Ae,S,{},[-1,-1])}}export default x;export{w as analysis,y as form,Oe as performanceReporter};const Ne={name:"FeedbackForm",version:"1.2.370",created:"2021-09-06T13:05:18.840Z"};export{Ne as metadata};