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/
Upload File :
Current Directory [ Writeable ] Root Directory [ Writeable ]


Current File : C:/Program Files/Avast Software/Avast/gui_resources/1.0.663/ractiveAdapter.js
//{"name":"ractiveAdapter","version":"1.2.366","created":"2021-09-06T10:52:56.949Z"}
import t from"./ractive.js";import{moduleManager as e,windowApi as o,debugMode as n}from"./napi.js";import i,{moment as r,nls as a}from"./i18n.js";import s,{modals as d}from"./ractiveComponents.js";import l from"./ractive.js";const c=t.extend({template:'<div class="nui--module--container">{{>Component(cName)}}</div>',isolated:!0,data:()=>({name:null,view:"default",cName:"Loading",Component:function(t){return this.partials[t]||(this.partials[t]="<"+t+"/>"),t}}),computed:{id:{set(t){this.set("name",t)},get(){return this.get("name")}}},components:{Error:t.extend({template:'<div class="nui--module--error">Module Error. Failed to load module {{name}}/{{view}}. {{componentError}}</div>'}),Loading:t.extend({template:'<div class="nui--moduler"></div>'})},onrender(){const t=this.get("name"),o=this.get("view");t?e.importModule(t,o).then((e=>{this.components.ScopedPackage=e,this.set("cName","ScopedPackage");const n=this.find(".nui--module--container");for(const t in e.__NITRO_VERSION)n.dataset["nitro_"+t]=e.__NITRO_VERSION[t];this.fire("moduleReady",t,o)})).catch((e=>{console.error("Module loading error",e),this.set("cName","Error"),this.set("componentError",e),this.fire("moduleError",t,o,e)})):(this.set("cName","Error"),this.fire("moduleError",t,o,"Module name is missing."))}});var p="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var m,u={exports:{}};m=u,function(t,e){if(m.exports)m.exports=e(l);else{if(!t.Ractive)throw new Error("Could not find Ractive! It must be loaded before the ractive-transitions-slidehorizontal plugin");e(t.Ractive)}}("undefined"!=typeof window?window:p,(function(t){var e,o,n,i;return i={duration:300,easing:"easeInOut"},o=["width","borderLeftWidth","borderRightWidth","paddingLeft","paddingRight","marginLeft","marginRight"],n={width:0,borderLeftWidth:0,borderRightWidth:0,paddingLeft:0,paddingRight:0,marginLeft:0,marginRight:0},e=function(t,e){var r;e=t.processParams(e,i),t.isIntro?(t.setStyle("height",t.getStyle("height")),r=t.getStyle(o),t.setStyle(n)):(t.setStyle("height",t.getStyle("height")),t.setStyle(t.getStyle(o)),r=n),t.setStyle({overflow:"hidden"}),t.animateStyle(r,e).then(t.complete)},t.transitions.slidehorizontal=e,t.transitions.slideh=e,e}));const f=u.exports;var h={exports:{}};const g=h.exports=function(){var t={duration:300,easing:"easeInOut"},e=["height","borderTopWidth","borderBottomWidth","paddingTop","paddingBottom","marginTop","marginBottom"],o={height:0,borderTopWidth:0,borderBottomWidth:0,paddingTop:0,paddingBottom:0,marginTop:0,marginBottom:0};function n(n,i){var r;i=n.processParams(i,t),n.isIntro?(r=n.getStyle(e),n.setStyle(o)):(n.setStyle(n.getStyle(e)),r=o),n.setStyle("overflowY","hidden"),n.animateStyle(r,i).then(n.complete)}return n}();var y={exports:{}};const v=y.exports=function(){var t={delay:0,duration:300,easing:"linear"};function e(e,o){var n;o=e.processParams(o,t),e.isIntro?(n=e.getStyle("opacity"),e.setStyle("opacity",0)):n=0,e.animateStyle("opacity",n,o).then(e.complete)}return e}();var w=function(){let t;const e={animation:"animationend","-o-animation":"oAnimationEnd","-moz-animation":"animationend","-webkit-animation":"webkitAnimationEnd","-ms-animation":"animationend"},o=document.createElement("fakeelement");for(t in e)if(void 0!==o.style[t])return e[t];return null}();const b=function(t,e){e=e||(t.isIntro?"slideInDown":"slideOutUp"),t.node.classList.contains("animated")||t.node.classList.add("animated"),t.node.classList.add(e);const o=function(){t.node.classList.remove(e),t.node.classList.remove("animated"),t.node.removeEventListener(w,o),t.complete()};t.node.addEventListener(w,o)};function _(){t.localization=i,t.localization.moment=r,t.defaults.data.nls=i.nls.bind(i),t.defaults.data.nlsc=i.nlsc.bind(i),t.defaults.data.moment=r,t.defaults.data.escapeHtml=i.escapeHtml.bind(i),t.defaults.data.ellipsis=i.ellipsis.bind(i),t.transitions.slideh=f,t.transitions.slide=g,t.transitions.fade=v,t.transitions.animatecss=b,window.localStorage.__noTransition?document.body.classList.add("nui_no-transitions"):document.body.classList.remove("nui_no-transitions"),t.prototype.transitionsEnabled=!window.localStorage.__noTransition,t.defaults.data.partialExists=function(t){return Boolean(this.partials[t])},t.prototype.emit=t.prototype.fire,t.prototype.onconfig=function(){this.on("browser",(t=>(t.original.preventDefault(),o.browse(t.node.getAttribute("href")),!1)))};const e=t.prototype.render;t.prototype.render=function(){return e.apply(this,arguments).then((()=>{!0!==this.asyncLoad&&this.ready()}))},t.prototype.ready=function(){this.onready&&this.onready(),this.fire("ready")};const n=t.prototype.teardown;for(var a in t.prototype.teardown=function(){return n.apply(this,arguments).then((()=>this.router&&this.router.removeAllListeners()))},t.prototype.screenReady=function(t=!0){return this.findAllComponents("Screen").forEach((function(e){e.set("loaded",t)})),Promise.resolve()},t.prototype.screenError=function(t){return this.findAllComponents("Screen").forEach((function(e){e.set("error",t)})),Promise.resolve()},t.UI=d,s)t.components[a]=s[a];t.components.Module=c,t.components.Titlebar.prototype.titlebarCompleted=function(){setTimeout((()=>{o.setCaption()}),800)},t.components.Overlay.prototype.overlayOpened=function(){o.setCaption(void 0,".nui_caption_client-overlay",!0)},t.components.Overlay.prototype.overlayClosed=function(){document.querySelectorAll("button.overlay__close.nui_caption_client-overlay").length<=1?o.setCaption():o.setCaption(void 0,".nui_caption_client-overlay",!0)},t.decorators.eventHandler=t=>{const e=e=>{if(e.ctrlKey&&"KeyA"===e.code){const e=t.tagName.toUpperCase();["INPUT","TEXTAREA"].indexOf(e)>-1&&t.select()}};return t.addEventListener("keydown",e),{teardown:t.removeEventListener.bind(null,"keydown",e)}}}const S=Object.freeze({__proto__:null,initRactive:function(t){let e;const o={},n=function(n){const i=n.detail.dataname;e||(o[i]=t.el.querySelector("kin-table[dataname="+i+"]"),e=t.observe(i,(function(){const t=o[i],e=parseInt(t.getAttribute("showmorelimit"),10);if(e){const o=parseInt(t.getAttribute("datalength"),10),n=Number.isInteger(o)&&Number.isInteger(e)?o-e:0;t.setAttribute("txtshowmore",a("global.show.more",n)),t.setAttribute("txtshowless",a("global.show.less"))}this.update("rows_"+i)})));const r=[],s=t.get(i);for(let t=n.detail.start;t<n.detail.end;t++)r.push(s[t]);t.set("rows_"+i,r)};t.el.addEventListener("kin-table:showrows",n),t.on("teardown",(function(){this.el.removeEventListener("kin-table:showrows",n),e&&e.cancel()}))}}),E=Object.freeze({__proto__:null,kinTableScrollable:S});function L(){n.isEnabled()?(window.nitro=window.nitro||{},window.nitro.Ractive=t,console.log("Added Ractive to the nitro object.")):window.nitro&&(delete window.nitro.Ractive,console.log("Removed Ractive from the nitro object."))}n.on("enabledChanged",L),L();export{_ as extendRactive,E as plugins};const R={name:"ractiveAdapter",version:"1.2.366",created:"2021-09-06T10:52:56.949Z"};export{R as metadata};