export const __webpack_esm_id__=62062;export const __webpack_esm_ids__=[62062,67262,81417];export const __webpack_esm_modules__={67262(t,o,e){var r=e(81417);angular.module("graphdb.framework.core.directives.validate-url",[]).directive("validateUrl",function(){return{restrict:"A",require:"ngModel",link:function(t,o,e,i){i.$validators.validUrl=function(t,o){if(i.$isEmpty(o))return"false"!==e.allowEmpty;if(!r.r.isValidUrl(o))return!1;if(e.exclude&&!r.r.doesNotContain(o,e.exclude))return!1;if(e.excludeProtocol){const t=e.excludeProtocol.split(",");if(!r.r.doesNotUseProtocol(o,t))return!1}return!0}}}})},62062(t,o,e){var r=e(62831);function i(t,o,e,i){t.remoteLocation=i.remoteLocation?new r.TP({...i.remoteLocation}):new r.TP,t.RemoteLocationType=r.Il,t.RemoteLocationAuthType=r.Qk,t.isEdit=!!i.remoteLocation,t.docBase=`https://graphdb.ontotext.com/documentation/${e.productShortVersion}`,t.ok=()=>{t.remoteLocationForm.$pristine||t.remoteLocationForm.$invalid||o.close(t.remoteLocation)},t.cancel=()=>{o.dismiss("cancel")},t.onLocationTypeChanged=()=>{[r.Il.ONTOPIC,r.Il.SPARQL].includes(t.remoteLocation.locationType)?t.remoteLocation.authType=r.Qk.BASIC:t.remoteLocation.authType=r.Qk.NONE}}e(67262),angular.module("graphdb.framework.repositories.controllers.manage-remote-location-dialog",["graphdb.framework.core.directives.validate-url"]).controller("ManageRemoteLocationDialogController",i),i.$inject=["$scope","$uibModalInstance","productInfo","data"]},81417(t,o,e){e.d(o,{r:()=>n});const r=/^(h|ht|htt|http|https|http:|https:|http:\/|https:\/|http:\/\/|https:\/\/|https?:\/\/[\S]*)$/i,i=/^(f|ft|ftp|ftps|ftp:|ftps:|ftp:\/|ftps:\/|ftp:\/\/|ftps:\/\/[\S]*)$/i;class n{static isValidUrl(t){return r.test(t)||i.test(t)}static doesNotContain(t,o){return!new RegExp(o).test(t)}static doesNotUseProtocol(t,o){return!new RegExp("^("+o.join("|")+")://","i").test(t)}}}};
//# sourceMappingURL=62062.0792fb66771a6bd80444.bundle.js.map