PageSourceSearch

https://app.sol.dk/static.php/plugins/xframework/assets/scripts/framework.min.js?s=1788946541

js sol.dk collected 2026-10-02 07:19:19 UTC 12,727 bytes, 1 lines download raw bytes

1window.jQuery(document).on("change","select",function(e){!e.originalEvent&&this.selectedIndex>=0&&this.dispatchEvent(new Event("change",{bubbles:!0}))});let xsidebar;$(document).ready(()=>{xframework.initialize(),xsidebar=rcmail.env.xelastic?new xsidebarElastic:new xsidebarLarry,xsidebar.initialize()});const xframework=new function(){this.language=rcmail.env.locale.substr(0,2),this.showPasswordTimeout=!1,this.postCallbacks={},this.initialize=()=>{$("#sections-table").length&&setTimeout(()=>{$("#rcmrow"+xframework.getUrlParameter("_section")).mousedown()},0),typeof rcmail.env.appsMenu!="undefined"&&rcmail.env.appsMenu&&(rcmail.env.xelastic?($("#show-mobile-xsidebar").before($(rcmail.env.appsMenu)),UI.popup_init(document.getElementById("button-apps"))):$(".button-settings").after($(rcmail.env.appsMenu)),rcmail.env.appsMenu=!1);const t=$("#show-xsidebar");rcmail.env.xelastic&&t.length&&t.parent("li").attr("id","show-xsidebar-item"),$("#quick-language-change select").on("mouseup",function(e){e.stopPropagation()}),rcmail.env.set_token!==void 0&&setTimeout(()=>{$.ajax({url:rcmail.url("set-token"),headers:{"x-csrf-token":rcmail.env.request_token}})},1500),$("span.sidebar-settings-url").on("click",function(e){e.stopPropagation(),window.location=$(e.target).data("url")});const e=$("#xsidebar-order");if(e.length){$("table.propform").attr("id","xsidebar-order-table");const t=$("#xsidebar-order-table");t.after(e),t.after($("#xsidebar-order-note")),t.find("tr:last-child").remove(),$("#xsidebar-order-table tbody").sortable({delay:100,distance:10,placeholder:"placeholder",stop:function(){let t=[];$("#xsidebar-order-table input[type=checkbox]").each(function(){t.push($(this).attr("data-name"))}),e.val(t.join(","))}})}xframework.isCpanel()&&$("body").addClass("cpanel"),$("body.xelastic").length&&$("#button-apps").on("mouseup",()=>{setTimeout(()=>{$(".popover .popover-body select:not(.xreverted)").off("mousedown keydown change").on("mousedown click",e=>{e.stopPropagation()}).addClass("xreverted")},300)}),$(".password-toggle-input").each((e,t)=>{t=$(t),t.on("blur",()=>{t.attr("type")=="text"&&t.addClass("blurred").attr("type","password")});const n=t.parent().addClass("password-toggle-container");n.find(".password-toggle-button").length||t.after($('<span class="password-toggle-button" onclick="xframework.togglePassword(this)"></span>'))}),this.initializeClipboardEvents()},this.assetPath=e=>{const t=(rcmail.env.blankpage||"").indexOf("static.php");return t==-1?e:rcmail.env.blankpage.substring(0,t+10)+"/"+e.replace(/^\/+/,"")},this.getPage=()=>{const t=$("body"),e=t[0].className.match(/\btask-([^\s]+)/);return e?e[1]==="mail"&&t.hasClass("action-compose")?"compose":e[1]:""},this.initializeClipboardEvents=()=>{$(document).on("mouseenter",".xclipboard",e=>{const t=$(e.currentTarget);t.attr("title")||t.attr("title",rcmail.gettext("xframework.copy_to_clipboard"))}),$(document).on("click",".xclipboard",e=>{e.stopPropagation(),xframework.copyToClipboard($(e.currentTarget).parent().clone().children(".xclipboard").remove().end().text().trim())})},this.copyToClipboard=e=>typeof e!="string"||e.trim()===""?(rcmail.display_message(rcmail.gettext("xframework.cannot_copy_to_clipboard"),"error"),console.log("Cannot copy to clipboard: text is empty or not string."),!1):!navigator.clipboard||typeof navigator.clipboard.writeText!="function"?(rcmail.display_message(rcmail.gettext("xframework.cannot_copy_to_clipboard"),"error"),console.log("Cannot copy to clipboard: clipboard not accessible."),!1):(navigator.clipboard.writeText(e).then(()=>{rcmail.display_message(rcmail.gettext("xframework.copied_to_clipboard"),"confirmation")}).catch(()=>{rcmail.display_message(rcmail.gettext("xframework.cannot_copy_to_clipboard"),"error")}),!0),this.togglePassword=e=>{if(e=$(e).parent().find(".password-toggle-input"),clearTimeout(this.showPasswordTimeout),e.attr("type")=="password"){if(e.hasClass("blurred")){e.removeClass("blurred");return}e.attr("type","text").focus(),this.showPasswordTimeout=setTimeout(()=>{e.attr("type","password")},1e4)}else e.attr("type","password")},this.getTimezoneOffset=()=>rcmail.env.timezoneOffset,this.getDateFormat=(e=void 0)=>rcmail.env.dateFormats[e===void 0?"moment":e],this.getTimeFormat=(e=void 0)=>rcmail.env.timeFormats[e===void 0?"moment":e],this.getDateTimeFormat=(e=void 0)=>rcmail.env.dateFormats[e===void 0?"moment":e]+" "+rcmail.env.timeFormats[e===void 0?"moment":e],this.getDmFormat=(e=void 0)=>rcmail.env.dmFormats[e===void 0?"moment":e],this.getLanguage=()=>this.language,this.getUrl=()=>{const e=window.location.protocol+"//"+window.location.host+window.location.pathname;return e+(e.substring(e.length-1)==="/"?"":"/")},this.getUrlParameter=(e,t=void 0)=>{const n=RegExp("[?&]"+e+"=([^&]*)").exec(t===void 0?window.location.search:t);return n&&decodeURIComponent(n[1].replace(/\+/g," "))},this.mobile=()=>rcmail.env.xskin_type!==void 0&&rcmail.env.xskin_type=="mobile",this.elastic=()=>rcmail.env.xelastic,this.htmlEncode=e=>document.createElement("a").appendChild(document.createTextNode(e)).parentNode.innerHTML,this.sleep=e=>{const t=(new Date).getTime();for(;(new Date).getTime()<t+e;);},this.isCpanel=()=>window.location.pathname.indexOf("/cpsess")!=-1,this.replaceUrlParam=(e,t,n)=>{let s=n||location.search;return new RegExp("[&?]"+e+"([=&].+)?$").test(s)&&(s=s.replace(new RegExp("(?:[&?])"+e+"[^&]*","g"),"")),s+="&",s+=e+"="+t,s="?"+s.slice(1),s==="?"&&(s=""),s+location.hash},this.getRandomCode=()=>{let e="";const t="abcdefghijklmnopqrstuvwxyz0123456789";for(let n=0;n<32;n++)e+=t.charAt(Math.floor(Math.random()*t.length));return e},this.showLarryPopup=(e,t)=>{typeof UI.toggle_popup!="undefined"&&UI.toggle_popup(e,t)}
1,this.post=(e,t,n)=>{this.postCallbacks[e]||(this.postCallbacks[e]={},rcmail.addEventListener(e,t=>{const n=t?.x_request_id;n&&this.postCallbacks[e][n]&&(this.postCallbacks[e][n](t),delete this.postCallbacks[e][n])})),t=typeof t=="object"&&t!==null?t:{},t.x_request_id=Math.random().toString(36).slice(2,10),this.postCallbacks[e][t.x_request_id]=n,rcmail.http_post(e,t)},this.ajax=(e,t={},n,s,o,i=!0)=>{$.ajax({url:rcmail.url(e),method:"POST",headers:{"x-csrf-token":rcmail.env.request_token},contentType:"application/json",dataType:"json",data:JSON.stringify(t),error:t=>{rcmail.display_message(`Ajax error: ${e} (392884)`,"error")}}).done(t=>{t.success?typeof n=="function"&&n(t):(i&&rcmail.display_message(t.message||`Server error 388194 (Ajax: ${e})`,"error"),typeof s=="function"&&s(t)),typeof o=="function"&&o(t)})},this.ajaxSuccess=(e,t=!0)=>!!e&&(!!e.success||(t&&rcmail.display_message(e.message||"This operation cannot be completed due to server error. (5549481)","error"),!1)),this.createCrcTable=()=>{let e,t=[];for(let n=0;n<256;n++){e=n;for(let t=0;t<8;t++)e=e&1?3988292384^e>>>1:e>>>1;t[n]=e}return t},this.crc32=e=>{this.crcTable||(this.crcTable=this.createCrcTable());let t=0^-1;for(let n=0;n<e.length;n++)t=t>>>8^this.crcTable[(t^e.charCodeAt(n))&255];return(t^-1)>>>0},this.isValidEmail=e=>/\S+@\S+\.\S+/.test(e),this.extractEmail=e=>{if(e.indexOf("<")!==-1){const t=/<([^<>]+)>/.exec(e);if(t&&t.length>=2&&t[1])return t[1].trim()}return e.trim()},this.hidePopovers=()=>{const e=$(".popover");typeof e.popover=="function"&&e.popover("hide")},this.showPassword=e=>{this.showPasswordTimeout&&clearTimeout(this.showPasswordTimeout);const t=$(e).prev();t.attr("type")=="password"?(t.attr("type","text"),this.showPasswordTimeout=setTimeout(()=>{t.attr("type","password")},1e4)):t.attr("type","password")}};(function(e){e.fn.alterClass=function(t,n){if(t.indexOf("*")===-1)this.removeClass(t);else{const n=new RegExp("\\s"+t.replace(/\*/g,"[A-Za-z0-9-_]+").split(" ").join("\\s|\\s")+"\\s","g");this.each(function(t,s){let o=" "+s.className+" ";for(;n.test(o);)o=o.replace(n," ");s.className=e.trim(o)})}return n?this.addClass(n):this}})(jQuery),function(e){let t=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;e.fn.attrChange=function(e){if(t){const n={subtree:!1,attributes:!0},s=new t(function(t){t.forEach(function(t){e.call(t.target,t.attributeName)})});return this.each(function(){s.observe(this,n)})}}}(jQuery);function xsidebarLarry(){this.initialized=!1,this.splitter=!1,this.initialize=()=>{if(this.sidebar=$("#xsidebar"),xframework.mobile()||!this.sidebar.length||this.initialized)return;$("#xsidebar-inner").sortable({delay:100,distance:10,placeholder:"placeholder",stop:function(){let e=[];$("#xsidebar .box-wrap").each(function(){e.push($(this).attr("data-name"))}),rcmail.save_pref({name:"xsidebar_order",value:e.join(",")})}}),this.mainscreen=$("#mainscreen"),this.mainscreencontent=$("#mainscreencontent"),$("#messagesearchtools").addClass("xsidebar-wrap"),this.splitter=$("<div>").attr("id","xsidebar-splitter").attr("unselectable","on").attr("role","presentation").addClass("splitter splitter-v").appendTo("#mainscreen").mousedown(function(e){xsidebar.onSplitterDragStart(e)}),this.setSize(this.validateSize(window.UI?window.UI.get_pref("xsidebar-size"):250));let e=window.UI?window.UI.get_pref("xsidebar-visible"):void 0;e===void 0&&rcmail.env.xsidebarVisible!==void 0&&(e=!!rcmail.env.xsidebarVisible),e===void 0||e?this.show():this.hide(),$(document).on("mousemove.#mainscreen",function(e){xsidebar.onSplitterDrag(e)}).on("mouseup.#mainscreen",function(e){xsidebar.onSplitterDragStop(e)}),this.initialized=!0},this.isVisible=()=>$("body").hasClass("xsidebar-visible"),this.show=()=>{$("body").addClass("xsidebar-visible")},this.hide=()=>{$("body").removeClass("xsidebar-visible"),this.mainscreencontent.css("width","").css("right","0px")},this.validateSize=e=>e==null?250:e>this.mainscreen.width()/2?this.mainscreen.width()/2:e<150?150:e,this.setSize=e=>{e=e??xsidebar.sidebar.width(),this.sidebar.width(e),this.splitter.css("right",e+"px"),this.mainscreencontent.css("right",e+12+"px")},this.saveVisibility=()=>{window.UI&&window.UI.save_pref("xsidebar-visible",$("body").hasClass("xsidebar-visible")?1:0)},this.toggle=()=>{this.isVisible()?this.hide():(this.show(),this.setSize()),this.saveVisibility()},this.onSplitterDragStart=()=>{$("#mailpreviewframe").append($("<div>").attr("id","xsidebar-preview-frame-overlay")),(bw.konq||bw.chrome||bw.safari)&&(document.body.style.webkitUserSelect="none"),this.draggingSplitter=!0},this.onSplitterDrag=e=>{this.draggingSplitter&&this.setSize(this.mainscreen.width()-e.pageX)},this.onSplitterDragStop=e=>{if(!this.draggingSplitter)return;$("#xsidebar-preview-frame-overlay").remove(),(bw.konq||bw.chrome||bw.safari)&&(document.body.style.webkitUserSelect="auto"),this.draggingSplitter=!1,this.setSize(this.validateSize(this.mainscreen.width()-e.pageX)),window.UI&&window.UI.save_pref("xsidebar-size",this.sidebar.width())},this.toggleBox=(e,t)=>{const n=$(t).parents(".box-wrap");n.hasClass("collapsed")?n.find(".box-content").slideDown(200,()=>{n.removeClass("collapsed"),xsidebar.saveToggleBox()}):n.find(".box-content").slideUp(200,()=>{n.addClass("collapsed"),xsidebar.saveToggleBox()})},this.saveToggleBox=()=>{let e=[];$("#xsidebar .box-wrap").each(function(){$(this).hasClass("collapsed")&&e.push($(this).attr("data-name"))}),rcmail.save_pref({name:"xsidebar_collapsed",value:e})}}function xsidebarElastic(){this.initialized=!1,this.splitter=!1,this.initialize=()=>{if(this.sidebar=$("#xsidebar"),!this.sidebar.length||this.initialized)return;this.initialized=!0,$("#xsidebar-inner").sortable({delay:100,distance:10,placeholder:"placeholder",stop:function(){let e=[];$("#xsidebar .box-wrap").each(function(){e.push($(this).attr("data-name"))}),rcmail.save_pref({name:"xsidebar_order",value:e.join(",")})}});
1let e=Cookies.get("xsidebar-visible");e!==void 0?e=parseInt(e):rcmail.env.xsidebarVisible!==void 0?e=!!rcmail.env.xsidebarVisible:e=!0,e&&this.show()},this.isVisible=()=>$("body").hasClass("xsidebar-visible"),this.show=()=>{$("body").addClass("xsidebar-visible")},this.hide=()=>{$("body").removeClass("xsidebar-visible")},this.showMobile=()=>{$("body").addClass("xsidebar-mobile-visible")},this.hideMobile=()=>{$("body").removeClass("xsidebar-mobile-visible")},this.saveVisibility=()=>{Cookies.set("xsidebar-visible",this.isVisible()?1:0)},this.toggle=()=>{this.isVisible()?this.hide():this.show(),this.saveVisibility()},this.toggleBox=(e,t)=>{const n=$(t).parents(".box-wrap");n.hasClass("collapsed")?n.find(".box-content").slideDown(200,function(){n.removeClass("collapsed"),xsidebar.saveToggleBox()}):n.find(".box-content").slideUp(200,function(){n.addClass("collapsed"),xsidebar.saveToggleBox()})},this.saveToggleBox=()=>{let e=[];$("#xsidebar .box-wrap").each(function(){$(this).hasClass("collapsed")&&e.push($(this).attr("data-name"))}),rcmail.save_pref({name:"xsidebar_collapsed",value:e})}}

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.