1'use strict';define("link-protection-translations",{prefix:"",keys:["url.api.followLinkConfirmationText"]}); 2require(["jquery","xwiki-l10n!link-protection-translations","xwiki-events-bridge"],function(e,h){function f(){let d=null;try{const b=e("script#trusted-domains-configuration");b.length>0&&(d=JSON.parse(b.text()))}catch(b){console.error("Error while parsing the trusted domain configurations, falling back on enforcing checks on all links going outside current domain.",b)}e(document).on("click","a[href]",function(b){var a=d;b=h.get("url.api.followLinkConfirmationText",window.location.hostname,this.hostname); 3var c=a===null?"COMMENTS":a.frontendUrlCheckPolicy;c==="DISABLED"||e(this).parents(".cke_editable").length>0?c=!1:c==="COMMENTS"?c=e(this).parents(".xwikicomment").length>0:(c!=="ENABLED"&&console.error("Unknown frontend check url policy: ",c),c=!0);if(c)if(a!=null||g(this)){b:if(c=a.trustedDomains,a=a.allowedUrls,g(this)||a.indexOf(this.href)>-1)a=!0;else{a=this.hostname;do{if(c.indexOf(a)>-1){a=!0;break b}a=a.indexOf(".")>-1?a.substring(a.indexOf(".")+1):""}while(a!=="");a=!1}b=a?!0:confirm(b)}else b= 4confirm(b);else b=!0;return b})}function g(d){let b=window.location.hostname;d=d.hostname;return!d||d===b}XWiki.domIsLoaded&&f()||document.observe("xwiki:dom:loaded",f)}); 5//# sourceMappingURL=link-protection.min.js.map
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.