1import{a as E}from"./chunk-3KBSOQBD.js";import{e as w}from"./chunk-U3SD5ENI.js";var b=w((u,A)=>{(function(a,t){typeof u=="object"&&typeof A<"u"?t(E()):typeof define=="function"&&define.amd?define(["froala-editor"],t):t(a.FroalaEditor)})(u,function(a){"use strict";(a=a&&a.hasOwnProperty("default")?a.default:a).URLRegEx="(^| |\\u00A0)(".concat(a.LinkRegEx,"|([a-z0-9+-_.]{1,}@[a-z0-9+-_.]{1,}\\.[a-z0-9+-_]{1,}))$"),a.PLUGINS.url=function(t){var l=t.$,o=null;function C(i,e,n){for(var s="";n.length&&n[n.length-1]==".";)s+=".",n=n.substring(0,n.length-1);var r=n;if(t.opts.linkConvertEmailAddress)t.helpers.isEmail(r)&&!/^mailto:.*/i.test(r)&&(r="mailto:".concat(r));else if(t.helpers.isEmail(r))return e+n;return/^((http|https|ftp|ftps|mailto|tel|sms|notes|data)\:)/i.test(r)||(r="//".concat(r)),(e||"")+"<a".concat(t.opts.linkAlwaysBlank?' target="_blank"':"").concat(o?' rel="'.concat(o,'"'):"",' data-fr-linked="true" href="').concat(r,'">').concat(n.replace(/&/g,"&").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),"</a>").concat(s)}var c=function(){return new RegExp(a.URLRegEx,"gi")};function f(i){return t.opts.linkAlwaysNoFollow&&(o="nofollow"),t.opts.linkAlwaysBlank&&(t.opts.linkNoOpener&&(o?o+=" noopener":o="noopener"),t.opts.linkNoReferrer&&(o?o+=" noreferrer":o="noreferrer")),i.replace(c(),C)}function h(i){var e=i.split(" ");return e[e.length-1]}function k(){var i=t.selection.ranges(0),e=i.startContainer;if(e.nodeType!==Node.TEXT_NODE)return!1;if(!e||i.startOffset!==(e.textContent||"").length){t.markers.insert();var n=t.$el.find(".fr-marker"),s=e.textContent.match(/(^| |\u00A0)(((([a-z\u0080-\u009f\u00a1-\uffff0-9-_\.]{1,})(\.(com|net|org|edu|mil|gov|co|biz|info|me|dev)))|((ftp|http|https):\/\/[a-z\u0080-\u009f\u00a1-\uffff0-9-_\.]{1,})|(www\.[a-z\u0080-\u009f\u00a1-\uffff0-9-_\.]{1,}\.[a-z0-9-]{2,24})|((ftp|http|https):\/\/[\u0021-\uffff]{1,}@[a-z\u0080-\u009f\u00a1-\uffff0-9-_\.]{1,}))((:[0-9]{1,5})|)(((\/|\?|#)[a-z\u00a1-\uffff0-9@?\|!^=%&\/~+#-\'*-_{}]*)|())|([a-z0-9+-_.]{1,}@[a-z0-9+-_.]{1,}\.[a-z0-9+-_]{1,}))$/gi);if(n.remove(),!s)return!1}if((function N(p){return!!p&&(p.tagName==="A"||!(!p.parentNode||p.parentNode==t.el)&&N(p.parentNode))})(e))return!1;if(c().test(h(e.textContent))){var r,d=e.textContent.length;if(0<d&&e.textContent.charAt(d-1)===","){l(e).before(f(e.textContent.substring(0,d-1))),(r=l(e.parentNode).find("a[data-fr-linked]")).removeAttr("data-fr-linked"),e.textContent=",";var m=t.win.getSelection().getRangeAt(0);m.setStart(e,1),m.setEnd(e,1)}else l(e).before(f(e.textContent)),(r=l(e.parentNode).find("a[data-fr-linked]")).removeAttr("data-fr-linked"),e.parentNode.removeChild(e);t.events.trigger("url.linked",[r.get(0)])}else if(e.textContent.split(" ").length<=2&&e.previousSibling&&e.previousSibling.tagName==="A"){var v=e.previousSibling.innerText+e.textContent,_=e.textContent.length;if(c().test(h(v))&&e.textContent.charAt(_-1)!==","){var g=new DOMParser().parseFromString(f(v),"text/html").body.childNodes;e.parentNode.replaceChild(g[0],e.previousSibling),g.length&&l(e).before(g[0]),e.parentNode.removeChild(e)}}}return{_init:function(){t.events.on("keypress",function(e){!t.selection.isCollapsed()||e.key!=")"&&e.key!="("||k()},!0),t.events.on("keydown",function(e){var n=e.which;!t.selection.isCollapsed()||n!=a.KEYCODE.ENTER&&n!=a.KEYCODE.SPACE||k()},!0),t.events.on("paste.beforeCleanup",function(e){if(t.helpers.isURL(e)&&!t.$el[0].getAttribute("plainpaste")){var n=null;return t.opts.linkAlwaysBlank&&(t.opts.linkNoOpener&&(n?n+=" noopener":n="noopener"),t.opts.linkNoReferrer&&(n?n+=" noreferrer":n="noreferrer")),"<a".concat(t.opts.linkAlwaysBlank?' target="_blank"':"").concat(n?' rel="'.concat(n,'"'):"",' href="').concat(e,'" >').concat(e,"</a>")}if(t.$el[0].getAttribute("plainpaste"))return(function(r){if(typeof r=="string")return(r=r.replace(/&/g,"&")).replace(/(?:(?:https?|ftp|file):\/\/|www\.|ftp\.)(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[-A-Z0-9+&@#\/%=~_|$?!:,.])*(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[A-Z0-9+&@#\/%=~_|$])/gim,f).replace(/([a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+\.[a-zA-Z0-9_-]+)/gim,f)})(e)})}}}})});export default b(); 2//# sourceMappingURL=https://aterasourcemap.blob.core.windows.net/customers-portal/master-20260928.8/chunk-EHO2INBX.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.