{"version":3,"sources":["webpack:///./filters/artifactory.filters.module.js","webpack:///./filters/format_long_int_by_scale.js","webpack:///./filters/replace_character.js","webpack:///./filters/parse_links.js","webpack:///./filters/replace_string_for_aol.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;KAmBQ,oBAAoB,uBAAO,GAA4B,EAAvD,oBAAoB;;KACpB,gBAAgB,uBAAO,GAAqB,EAA5C,gBAAgB;;KAChB,UAAU,uBAAO,GAAe,EAAhC,UAAU;;KACV,mBAAmB,uBAAO,GAA0B,EAApD,mBAAmB;;kBAEZ,OAAO,CAAC,MAAM,CAAC,qBAAqB,EAAE,EAAE,CAAC,CAC/C,MAAM,CAAC,kBAAkB,EAAE,gBAAgB,CAAC,CAC5C,MAAM,CAAC,YAAY,EAAE,UAAU,CAAC,CAChC,MAAM,CAAC,qBAAqB,EAAE,mBAAmB,CAAC,CAClD,MAAM,CAAC,sBAAsB,EAAE,oBAAoB,CAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;SCT7C,oBAAoB,GAApB,oBAAoB;;;;;AAA7B,UAAS,oBAAoB,GAAG;AACtC,UAAO,UAAS,GAAG,EAAE;AACpB,SAAI,KAAK,GAAG,IAAI;SAAE,WAAW,GAAG,OAAO;SAAE,WAAW,GAAG,UAAU,CAAC;AAClE,SAAG,IAAI,CAAC,KAAK,CAAC,GAAG,GAAG,KAAK,CAAC,GAAG,CAAC,IAAI,IAAI,CAAC,KAAK,CAAC,GAAG,GAAG,WAAW,CAAC,IAAI,CAAC,EAAE;AAC5D,cAAO,CAAC,GAAG,GAAG,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC,GAAI,IAAI,CAAC;MACjD;AACD,SAAG,IAAI,CAAC,KAAK,CAAC,GAAG,GAAG,WAAW,CAAC,GAAG,CAAC,IAAI,IAAI,CAAC,KAAK,CAAC,GAAG,GAAG,WAAW,CAAC,IAAI,CAAC,EAAE;AAC3E,cAAO,CAAC,GAAG,GAAG,WAAW,EAAE,OAA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ALnC,KAAM,UAAU,GAAG;AAClB,oBAAiB,EAAE,QAAQ;AAC3B,iCAA8B,EAAE,qBAAqB;EACrD,CAAC;;AAEK,UAAS,mBAAmB,CAAC,mBAAmB,EAAE;;AAErD,UAAO,UAAS,GAAG,EAAE;AACpB,SAAI,mBAAmB,CAAC,KAAK,EAAE,EAAE;AAChC,cAAO,UAAU,CAAC,GAAG,CAAC,IAAI,GAAG,CAAC;MAC9B,MACI;AACJ,cAAO,GAAG,CAAC;MACX;IACD","file":"artifactory_filters.4089.js","sourcesContent":["/*\n *\n * Artifactory is a binaries repository manager.\n * Copyright (C) 2018 JFrog Ltd.\n *\n * Artifactory is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * Artifactory is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with Artifactory. If not, see .\n *\n */\nimport {FormatLongIntByScale} from './format_long_int_by_scale';\nimport {ReplaceCharacter} from './replace_character';\nimport {ParseLinks} from './parse_links';\nimport {ReplaceStringForAol} from './replace_string_for_aol';\n\nexport default angular.module('artifactory.filters', [])\n .filter('replaceCharacter', ReplaceCharacter)\n .filter('parseLinks', ParseLinks)\n .filter('replaceStringForAol', ReplaceStringForAol)\n .filter('formatLongIntByScale', FormatLongIntByScale);\n\n\n// WEBPACK FOOTER //\n// ./filters/artifactory.filters.module.js","/*\n *\n * Artifactory is a binaries repository manager.\n * Copyright (C) 2018 JFrog Ltd.\n *\n * Artifactory is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * Artifactory is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with Artifactory. If not, see .\n *\n */\nexport function FormatLongIntByScale() {\n\treturn function(num) {\n\t\tlet ONE_K = 1000, ONE_MILLION = 1000000, ONE_BILLION = 1000000000;\n\t\tif(Math.round(num / ONE_K) > 0 && Math.round(num / ONE_MILLION) <= 0) {\n return (num / ONE_K).toFixed(1) + ' K';\n\t\t}\n\t\tif(Math.round(num / ONE_MILLION) > 0 && Math.round(num / ONE_BILLION) <= 0) {\n\t\t\treturn (num / ONE_MILLION).toFixed(2) + ' M';\n\t\t}\n\t\tif(Math.round(num / ONE_BILLION) > 0) {\n\t\t\treturn (num / ONE_BILLION).toFixed(2) + ' B';\n\t\t}\n\t\treturn num;\n\t}\n}\n\n\n// WEBPACK FOOTER //\n// ./filters/format_long_int_by_scale.js","/*\n *\n * Artifactory is a binaries repository manager.\n * Copyright (C) 2018 JFrog Ltd.\n *\n * Artifactory is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * Artifactory is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with Artifactory. If not, see .\n *\n */\nexport function ReplaceCharacter() {\n\n return function(input, search, replace) {\n if (input) {\n let regex = new RegExp(search, 'g');\n return input.replace(regex, replace);\n }\n\n return input;\n }\n}\n\n\n// WEBPACK FOOTER //\n// ./filters/replace_character.js","/*\n *\n * Artifactory is a binaries repository manager.\n * Copyright (C) 2018 JFrog Ltd.\n *\n * Artifactory is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * Artifactory is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with Artifactory. If not, see .\n *\n */\nexport function ParseLinks() {\n\n return function(str) {\n return str.replace(/\\[(.*?)\\]/g, function (match) {\n let linkData = match.substring(1, match.length - 1).split(',');\n if (linkData.length == 2)\n return '' + linkData[1].trim() + '';\n else\n return match;\n });\n }\n}\n\n\n// WEBPACK FOOTER //\n// ./filters/parse_links.js","/*\n *\n * Artifactory is a binaries repository manager.\n * Copyright (C) 2018 JFrog Ltd.\n *\n * Artifactory is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * Artifactory is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with Artifactory. If not, see .\n *\n */\n// TODO: pass in key to filter instead of the text\nconst dictionary = {\n\t'Import & Export': 'Import',\n\t'Repositories Import & Export': 'Import Repositories'\n};\n\nexport function ReplaceStringForAol(ArtifactoryFeatures) {\n\n return function(str) {\n \tif (ArtifactoryFeatures.isAol()) {\n \t\treturn dictionary[str] || str;\n \t}\n \telse {\n \t\treturn str;\n \t}\n }\n}\n\n\n// WEBPACK FOOTER //\n// ./filters/replace_string_for_aol.js"],"sourceRoot":""}