export const __webpack_esm_id__=67262;export const __webpack_esm_ids__=[67262,81417];export const __webpack_esm_modules__={67262(t,e,r){var s=r(81417);angular.module("graphdb.framework.core.directives.validate-url",[]).directive("validateUrl",function(){return{restrict:"A",require:"ngModel",link:function(t,e,r,o){o.$validators.validUrl=function(t,e){if(o.$isEmpty(e))return"false"!==r.allowEmpty;if(!s.r.isValidUrl(e))return!1;if(r.exclude&&!s.r.doesNotContain(e,r.exclude))return!1;if(r.excludeProtocol){const t=r.excludeProtocol.split(",");if(!s.r.doesNotUseProtocol(e,t))return!1}return!0}}}})},81417(t,e,r){r.d(e,{r:()=>i});const s=/^(h|ht|htt|http|https|http:|https:|http:\/|https:\/|http:\/\/|https:\/\/|https?:\/\/[\S]*)$/i,o=/^(f|ft|ftp|ftps|ftp:|ftps:|ftp:\/|ftps:\/|ftp:\/\/|ftps:\/\/[\S]*)$/i;class i{static isValidUrl(t){return s.test(t)||o.test(t)}static doesNotContain(t,e){return!new RegExp(e).test(t)}static doesNotUseProtocol(t,e){return!new RegExp("^("+e.join("|")+")://","i").test(t)}}}};
//# sourceMappingURL=67262.0530e9863743242f6c88.bundle.js.map