PageSourceSearch

https://legalbet.uk/wp/js/libs/admin/legalcdn/utility.056da3ff2f1e6d951dd4.js

js legalbet.uk collected 2026-10-02 17:57:56 UTC 1,646 bytes, 1 lines download raw bytes

1var legalCdnUtility={webPrefix:"web",staticPrefix:"static",cdnPrefix:"cdn/static/",strategies:{default:"default",trusted:"trusted",by_request:"by_request",profile:"profile",blog:"blog",comment:"comment",carousel:"carousel"},isAdmin:function(){return window.location.pathname.indexOf("/admin/")===0},auth:function(e,n,t=!0){$.ajax({url:this.isAdmin()?"/admin/legalcdn/token/":"/legalcdn/token/",type:"POST",data:e,async:t,success:function(a){n(a)}})},saveInfo:function(e,n){$.ajax({url:"/legalcdn/save-info/",type:"POST",data:{fileInfo:e},success:function(t){n(t)}})},isEnabled:function(){return!0},parseResponse:function(e){var n=[],t=this;return $.each(e,function(a,u){t.fillResponse(n,a,u),u.thumbs.length>0&&$.each(u.thumbs,function(s,r){r.thumbAlias!==void 0&&(n[a].thumbs={},t.fillResponse(n[a].thumbs,r.thumbAlias,r))})}),n},fillResponse:function(e,n,t){e[n]={},e[n].path=t.path,e[n].url=this.parseUrl(t.url),t.height!==void 0&&(e[n].height=t.height),t.height!==void 0&&(e[n].width=t.width)},parseUrl:function(e){return e.replace(this.cdnPrefix,"")},parsePath:function(e){return e.replace(this.cdnPrefix,"static/")},isCdnPath(e){return e.includes("cdn/")},pathFromUrl(e,n){var t=n.replace(e,"");return"/"+this.staticPrefix+t},getBase64(e,n){var t=new XMLHttpRequest;t.onload=function(){var a=new FileReader;a.onloadend=function(){n!==void 0&&typeof n=="function"&&n(a.result)},a.readAsDataURL(t.response)},t.open("GET",e),t.responseType="blob",t.send()}},legalHelpers={debounce:function(e,n,t){var a;return function(){var s=this,r=arguments,i=function(){a=null,t||e.apply(s,r)},l=t&&!a;clearTimeout(a),a=setTimeout(i,n),l&&e.apply(s,r)}}};

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.