{"version":3,"sources":["../../node_modules/.pnpm/antd@4.24.10_react-dom@17.0.2_react@17.0.2/node_modules/antd/lib/tag/style/index.js","../../node_modules/.pnpm/antd@4.24.10_react-dom@17.0.2_react@17.0.2/node_modules/antd/lib/tag/index.js","webpack:///../node_modules/.pnpm/antd@4.24.10_react-dom@17.0.2_react@17.0.2/node_modules/antd/lib/tag/style/index.less?a675","../../node_modules/.pnpm/antd@4.24.10_react-dom@17.0.2_react@17.0.2/node_modules/antd/lib/tag/CheckableTag.js","lib/commons/marshalling.ts","../../node_modules/.pnpm/@ant-design+icons-svg@4.2.1/node_modules/@ant-design/icons-svg/es/asn/ApiOutlined.js","../../node_modules/.pnpm/@ant-design+icons@4.7.0_react-dom@17.0.2_react@17.0.2/node_modules/@ant-design/icons/es/icons/ApiOutlined.js","../../node_modules/.pnpm/@ant-design+icons-svg@4.2.1/node_modules/@ant-design/icons-svg/es/asn/ClockCircleOutlined.js","../../node_modules/.pnpm/@ant-design+icons@4.7.0_react-dom@17.0.2_react@17.0.2/node_modules/@ant-design/icons/es/icons/ClockCircleOutlined.js","../../node_modules/.pnpm/@ant-design+icons-svg@4.2.1/node_modules/@ant-design/icons-svg/es/asn/CheckCircleOutlined.js","../../node_modules/.pnpm/@ant-design+icons@4.7.0_react-dom@17.0.2_react@17.0.2/node_modules/@ant-design/icons/es/icons/CheckCircleOutlined.js","../../node_modules/.pnpm/@ant-design+icons-svg@4.2.1/node_modules/@ant-design/icons-svg/es/asn/CloseCircleOutlined.js","../../node_modules/.pnpm/@ant-design+icons@4.7.0_react-dom@17.0.2_react@17.0.2/node_modules/@ant-design/icons/es/icons/CloseCircleOutlined.js","lib/components/GeoDataResolver/GeoDataResolver.tsx"],"names":["require","_interopRequireWildcard","_interopRequireDefault","Object","defineProperty","exports","value","_defineProperty2","_extends2","_slicedToArray2","_CloseOutlined","_classnames","_omit","React","_configProvider","_colors","_wave","_warning","_CheckableTag","__rest","s","e","t","p","prototype","hasOwnProperty","call","indexOf","getOwnPropertySymbols","i","length","propertyIsEnumerable","PresetColorRegex","RegExp","concat","PresetColorTypes","join","PresetStatusColorRegex","PresetStatusColorTypes","InternalTag","_a","ref","_classNames","customizePrefixCls","prefixCls","className","style","children","icon","color","onClose","closeIcon","_a$closable","closable","props","_React$useContext","useContext","ConfigContext","getPrefixCls","direction","_React$useState","useState","_React$useState2","visible","setVisible","process","useEffect","isPresetColor","test","tagStyle","backgroundColor","undefined","presetColor","tagClassName","handleCloseClick","stopPropagation","defaultPrevented","renderCloseIcon","createElement","onClick","isNeedWave","type","tagProps","iconNode","kids","Fragment","tagNode","Tag","forwardRef","CheckableTag","_default","checked","onChange","restProps","handleClick","cls","TYPE_PROPERTY","newInstance","classes","Error","keys","classesMap","map","forEach","name","newInstanceInternal","initialInstance","json","Array","isArray","element","instance","key","Marshal","newKnownInstance","allClasses","toPureJson","object","result","constructor","val","ApiOutlined","AntdIcon","_objectSpread","ApiOutlinedSvg","displayName","ClockCircleOutlined","ClockCircleOutlinedSvg","CheckCircleOutlined","CheckCircleOutlinedSvg","CloseCircleOutlined","CloseCircleOutlinedSvg","geoDataResolversCollection","GeoDataResolver","services","useServices","saving","setSaving","testingConnection","setTestingConnection","formDisabled","setFormDisabled","project","useProject","disableEdit","permissions","allPermissions","includes","ProjectPermission","MODIFY_CONFIG","useForm","form","useLoaderAsObject","backendApiClient","get","activeProject","id","response","config","license_key","maxmind","enabled","editions","_statuses","ApplicationServices","withQueryParams","project_id","proxy","setFieldsValue","loadingError","error","formConfig","data","setFormConfig","setData","submit","formValues","getFieldsValue","testConnection","save","actionNotification","message","post","anyConnected","filter","editionStatus","main","status","analog","success","warn","hideMessage","maxmind_url","currentFormConfig","handleError","databaseStatusesRepresentation","dbStatus","body","editionTagRender","edition","split","db","messages","ok","icons","colors","maxWidth","width","minWidth"],"mappings":";;;;;;AAAa;;AAEbA,mBAAO,CAAC,EAAD,CAAP;;AACAA,mBAAO,CAAC,IAAD,CAAP,C;;;;;;;;ACHa;;AAEb,IA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AAS,CAAC,eAAf,CAA+B,KAAK,CAAE,CAAEmE,KAAK,CAAE,MAAT,CAAiBC,QAAQ,CAAE,MAA3B,CAAtC,uBACE,yDADF,EADF,cAKE,kCAAK,SAAS,CAAC,gBAAf,uBACE,kCAAK,SAAS,CAAC,4CAAf,UACGrC,UAAU,CAACT,QAAX,CAAoB5D,GAApB,CAAwB,SAAAmG,EAAE,QAAIH,iBAAgB,CAACG,EAAD,CAApB,EAA1B,CADH,EADF,EALF,GA9DF,cAyEE,4BAAC,2BAAD,yBACE,6CACE,IAAI,CAAC,OADP,CAEE,SAAS,CAAC,MAFZ,CAGE,IAAI,CAAC,QAHP,CAIE,OAAO,CAAE/D,iBAJX,CAKE,OAAO,CAAE,yBAAMwC,eAAc,EAApB,EALX,CAME,IAAI,cAAE,2BAAC,8BAAD,IANR,CAOE,QAAQ,CAAEtC,YAPZ,6BADF,cAYE,6CAAQ,OAAO,CAAEJ,MAAjB,CAAyB,QAAQ,CAAC,QAAlC,CAA2C,IAAI,CAAC,OAAhD,CAAwD,IAAI,CAAC,SAA7D,kBAZF,GAzEF,GADF,EAbF,GADF,EADF,CA8GD,CAEcH,oHAAf,E","file":"static/js/117.28e1f14a.chunk.js","sourcesContent":["\"use strict\";\n\nrequire(\"../../style/default.less\");\nrequire(\"./index.less\");","\"use strict\";\n\nvar _interopRequireWildcard = require(\"@babel/runtime/helpers/interopRequireWildcard\")[\"default\"];\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\nvar _defineProperty2 = _interopRequireDefault(require(\"@babel/runtime/helpers/defineProperty\"));\nvar _extends2 = _interopRequireDefault(require(\"@babel/runtime/helpers/extends\"));\nvar _slicedToArray2 = _interopRequireDefault(require(\"@babel/runtime/helpers/slicedToArray\"));\nvar _CloseOutlined = _interopRequireDefault(require(\"@ant-design/icons/CloseOutlined\"));\nvar _classnames = _interopRequireDefault(require(\"classnames\"));\nvar _omit = _interopRequireDefault(require(\"rc-util/lib/omit\"));\nvar React = _interopRequireWildcard(require(\"react\"));\nvar _configProvider = require(\"../config-provider\");\nvar _colors = require(\"../_util/colors\");\nvar _wave = _interopRequireDefault(require(\"../_util/wave\"));\nvar _warning = _interopRequireDefault(require(\"../_util/warning\"));\nvar _CheckableTag = _interopRequireDefault(require(\"./CheckableTag\"));\nvar __rest = void 0 && (void 0).__rest || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar PresetColorRegex = new RegExp(\"^(\".concat(_colors.PresetColorTypes.join('|'), \")(-inverse)?$\"));\nvar PresetStatusColorRegex = new RegExp(\"^(\".concat(_colors.PresetStatusColorTypes.join('|'), \")$\"));\nvar InternalTag = function InternalTag(_a, ref) {\n var _classNames;\n var customizePrefixCls = _a.prefixCls,\n className = _a.className,\n style = _a.style,\n children = _a.children,\n icon = _a.icon,\n color = _a.color,\n onClose = _a.onClose,\n closeIcon = _a.closeIcon,\n _a$closable = _a.closable,\n closable = _a$closable === void 0 ? false : _a$closable,\n props = __rest(_a, [\"prefixCls\", \"className\", \"style\", \"children\", \"icon\", \"color\", \"onClose\", \"closeIcon\", \"closable\"]);\n var _React$useContext = React.useContext(_configProvider.ConfigContext),\n getPrefixCls = _React$useContext.getPrefixCls,\n direction = _React$useContext.direction;\n var _React$useState = React.useState(true),\n _React$useState2 = (0, _slicedToArray2[\"default\"])(_React$useState, 2),\n visible = _React$useState2[0],\n setVisible = _React$useState2[1];\n // Warning for deprecated usage\n if (process.env.NODE_ENV !== 'production') {\n process.env.NODE_ENV !== \"production\" ? (0, _warning[\"default\"])(!('visible' in props), 'Tag', '`visible` will be removed in next major version, please use `visible && ` instead.') : void 0;\n }\n React.useEffect(function () {\n if ('visible' in props) {\n setVisible(props.visible);\n }\n }, [props.visible]);\n var isPresetColor = function isPresetColor() {\n if (!color) {\n return false;\n }\n return PresetColorRegex.test(color) || PresetStatusColorRegex.test(color);\n };\n var tagStyle = (0, _extends2[\"default\"])({\n backgroundColor: color && !isPresetColor() ? color : undefined\n }, style);\n var presetColor = isPresetColor();\n var prefixCls = getPrefixCls('tag', customizePrefixCls);\n var tagClassName = (0, _classnames[\"default\"])(prefixCls, (_classNames = {}, (0, _defineProperty2[\"default\"])(_classNames, \"\".concat(prefixCls, \"-\").concat(color), presetColor), (0, _defineProperty2[\"default\"])(_classNames, \"\".concat(prefixCls, \"-has-color\"), color && !presetColor), (0, _defineProperty2[\"default\"])(_classNames, \"\".concat(prefixCls, \"-hidden\"), !visible), (0, _defineProperty2[\"default\"])(_classNames, \"\".concat(prefixCls, \"-rtl\"), direction === 'rtl'), _classNames), className);\n var handleCloseClick = function handleCloseClick(e) {\n e.stopPropagation();\n onClose === null || onClose === void 0 ? void 0 : onClose(e);\n if (e.defaultPrevented) {\n return;\n }\n if (!('visible' in props)) {\n setVisible(false);\n }\n };\n var renderCloseIcon = function renderCloseIcon() {\n if (closable) {\n return closeIcon ? /*#__PURE__*/React.createElement(\"span\", {\n className: \"\".concat(prefixCls, \"-close-icon\"),\n onClick: handleCloseClick\n }, closeIcon) : /*#__PURE__*/React.createElement(_CloseOutlined[\"default\"], {\n className: \"\".concat(prefixCls, \"-close-icon\"),\n onClick: handleCloseClick\n });\n }\n return null;\n };\n var isNeedWave = 'onClick' in props || children && children.type === 'a';\n var tagProps = (0, _omit[\"default\"])(props, ['visible']);\n var iconNode = icon || null;\n var kids = iconNode ? /*#__PURE__*/React.createElement(React.Fragment, null, iconNode, /*#__PURE__*/React.createElement(\"span\", null, children)) : children;\n var tagNode = /*#__PURE__*/React.createElement(\"span\", (0, _extends2[\"default\"])({}, tagProps, {\n ref: ref,\n className: tagClassName,\n style: tagStyle\n }), kids, renderCloseIcon());\n return isNeedWave ? /*#__PURE__*/React.createElement(_wave[\"default\"], null, tagNode) : tagNode;\n};\nvar Tag = /*#__PURE__*/React.forwardRef(InternalTag);\nif (process.env.NODE_ENV !== 'production') {\n Tag.displayName = 'Tag';\n}\nTag.CheckableTag = _CheckableTag[\"default\"];\nvar _default = Tag;\nexports[\"default\"] = _default;","// extracted by mini-css-extract-plugin","\"use strict\";\n\nvar _interopRequireWildcard = require(\"@babel/runtime/helpers/interopRequireWildcard\")[\"default\"];\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\")[\"default\"];\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\nvar _extends2 = _interopRequireDefault(require(\"@babel/runtime/helpers/extends\"));\nvar _defineProperty2 = _interopRequireDefault(require(\"@babel/runtime/helpers/defineProperty\"));\nvar _classnames = _interopRequireDefault(require(\"classnames\"));\nvar React = _interopRequireWildcard(require(\"react\"));\nvar _configProvider = require(\"../config-provider\");\nvar __rest = void 0 && (void 0).__rest || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar CheckableTag = function CheckableTag(_a) {\n var _classNames;\n var customizePrefixCls = _a.prefixCls,\n className = _a.className,\n checked = _a.checked,\n onChange = _a.onChange,\n onClick = _a.onClick,\n restProps = __rest(_a, [\"prefixCls\", \"className\", \"checked\", \"onChange\", \"onClick\"]);\n var _React$useContext = React.useContext(_configProvider.ConfigContext),\n getPrefixCls = _React$useContext.getPrefixCls;\n var handleClick = function handleClick(e) {\n onChange === null || onChange === void 0 ? void 0 : onChange(!checked);\n onClick === null || onClick === void 0 ? void 0 : onClick(e);\n };\n var prefixCls = getPrefixCls('tag', customizePrefixCls);\n var cls = (0, _classnames[\"default\"])(prefixCls, (_classNames = {}, (0, _defineProperty2[\"default\"])(_classNames, \"\".concat(prefixCls, \"-checkable\"), true), (0, _defineProperty2[\"default\"])(_classNames, \"\".concat(prefixCls, \"-checkable-checked\"), checked), _classNames), className);\n return /*#__PURE__*/React.createElement(\"span\", (0, _extends2[\"default\"])({}, restProps, {\n className: cls,\n onClick: handleClick\n }));\n};\nvar _default = CheckableTag;\nexports[\"default\"] = _default;","/**\n * Helper classes to serialize things to JSON and back\n */\nconst TYPE_PROPERTY = \"$type\"\n\ninterface IMarshal {\n toPureJson(object: any)\n newInstance(json: any, classes?: any[]): any\n newKnownInstance(cls: any, json: any, classes?: any[]): any\n}\n\nfunction newInstance(className: string, classes: Record) {\n if (className === \"Object\") {\n return {}\n }\n let cls = classes[className]\n if (cls === undefined) {\n throw new Error(\n `Unknown class ${className}. Pass classes to as a second argument of newInstanceInternal(). Known classes '${Object.keys(\n classes\n )}'`\n )\n }\n return new cls()\n}\n\nfunction classesMap(classes?: any[]) {\n if (classes === undefined) {\n return {}\n }\n let map = {}\n classes.forEach(cls => (map[cls.name] = cls))\n return map\n}\n\nfunction newInstanceInternal(initialInstance: any, json: any, classes: Record) {\n if (json == null) {\n return null\n } else if (typeof json !== \"object\" && typeof json !== \"function\") {\n return json\n } else if (typeof json == \"object\") {\n if (Array.isArray(json)) {\n return (json as any[]).map(element => newInstanceInternal(null, element, classes))\n } else {\n let instance\n if (json[TYPE_PROPERTY] !== undefined) {\n instance = newInstance(json[TYPE_PROPERTY], classes)\n } else {\n instance = initialInstance ? initialInstance : new Object()\n }\n for (let key in json) {\n if (json.hasOwnProperty(key) && key != TYPE_PROPERTY) {\n instance[key] = newInstanceInternal(null, json[key], classes)\n }\n }\n return instance\n }\n } else {\n throw new Error(`Unsupported object type ${typeof json}`)\n }\n}\n\nconst Marshal: IMarshal = {\n newKnownInstance(cls: any, json: any, classes?: any[]): any {\n if (!cls) {\n throw new Error(`Class should be defined, not ${cls}`)\n }\n let allClasses = classes ? [...classes, cls] : [cls]\n return newInstanceInternal(new cls(), json, classesMap(allClasses))\n },\n\n newInstance: (json: any, classes?: any[]) => {\n return newInstanceInternal(null, json, classesMap(classes))\n },\n\n toPureJson: (object: any) => {\n if (object == null) {\n return null\n } else if (typeof object !== \"object\" && typeof object !== \"function\") {\n return object\n } else if (typeof object == \"object\") {\n if (Array.isArray(object)) {\n return (object as any[]).map(element => Marshal.toPureJson(element))\n } else {\n let result = {}\n if (object.constructor.name !== \"Object\") {\n result[TYPE_PROPERTY] = object.constructor.name\n }\n for (let key in object) {\n let val = object[key]\n if (typeof val !== \"function\") {\n result[key] = Marshal.toPureJson(val)\n }\n }\n return result\n }\n } else {\n throw new Error(`Unsupported object type ${typeof object}`)\n }\n },\n}\n\nexport default Marshal\n","// This icon file is generated automatically.\nvar ApiOutlined = { \"icon\": { \"tag\": \"svg\", \"attrs\": { \"viewBox\": \"64 64 896 896\", \"focusable\": \"false\" }, \"children\": [{ \"tag\": \"path\", \"attrs\": { \"d\": \"M917.7 148.8l-42.4-42.4c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-76.1 76.1a199.27 199.27 0 00-112.1-34.3c-51.2 0-102.4 19.5-141.5 58.6L432.3 308.7a8.03 8.03 0 000 11.3L704 591.7c1.6 1.6 3.6 2.3 5.7 2.3 2 0 4.1-.8 5.7-2.3l101.9-101.9c68.9-69 77-175.7 24.3-253.5l76.1-76.1c3.1-3.2 3.1-8.3 0-11.4zM769.1 441.7l-59.4 59.4-186.8-186.8 59.4-59.4c24.9-24.9 58.1-38.7 93.4-38.7 35.3 0 68.4 13.7 93.4 38.7 24.9 24.9 38.7 58.1 38.7 93.4 0 35.3-13.8 68.4-38.7 93.4zm-190.2 105a8.03 8.03 0 00-11.3 0L501 613.3 410.7 523l66.7-66.7c3.1-3.1 3.1-8.2 0-11.3L441 408.6a8.03 8.03 0 00-11.3 0L363 475.3l-43-43a7.85 7.85 0 00-5.7-2.3c-2 0-4.1.8-5.7 2.3L206.8 534.2c-68.9 69-77 175.7-24.3 253.5l-76.1 76.1a8.03 8.03 0 000 11.3l42.4 42.4c1.6 1.6 3.6 2.3 5.7 2.3s4.1-.8 5.7-2.3l76.1-76.1c33.7 22.9 72.9 34.3 112.1 34.3 51.2 0 102.4-19.5 141.5-58.6l101.9-101.9c3.1-3.1 3.1-8.2 0-11.3l-43-43 66.7-66.7c3.1-3.1 3.1-8.2 0-11.3l-36.6-36.2zM441.7 769.1a131.32 131.32 0 01-93.4 38.7c-35.3 0-68.4-13.7-93.4-38.7a131.32 131.32 0 01-38.7-93.4c0-35.3 13.7-68.4 38.7-93.4l59.4-59.4 186.8 186.8-59.4 59.4z\" } }] }, \"name\": \"api\", \"theme\": \"outlined\" };\nexport default ApiOutlined;\n","import _objectSpread from \"@babel/runtime/helpers/esm/objectSpread2\";\n// GENERATE BY ./scripts/generate.ts\n// DON NOT EDIT IT MANUALLY\nimport * as React from 'react';\nimport ApiOutlinedSvg from \"@ant-design/icons-svg/es/asn/ApiOutlined\";\nimport AntdIcon from '../components/AntdIcon';\n\nvar ApiOutlined = function ApiOutlined(props, ref) {\n return /*#__PURE__*/React.createElement(AntdIcon, _objectSpread(_objectSpread({}, props), {}, {\n ref: ref,\n icon: ApiOutlinedSvg\n }));\n};\n\nApiOutlined.displayName = 'ApiOutlined';\nexport default /*#__PURE__*/React.forwardRef(ApiOutlined);","// This icon file is generated automatically.\nvar ClockCircleOutlined = { \"icon\": { \"tag\": \"svg\", \"attrs\": { \"viewBox\": \"64 64 896 896\", \"focusable\": \"false\" }, \"children\": [{ \"tag\": \"path\", \"attrs\": { \"d\": \"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z\" } }, { \"tag\": \"path\", \"attrs\": { \"d\": \"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z\" } }] }, \"name\": \"clock-circle\", \"theme\": \"outlined\" };\nexport default ClockCircleOutlined;\n","import _objectSpread from \"@babel/runtime/helpers/esm/objectSpread2\";\n// GENERATE BY ./scripts/generate.ts\n// DON NOT EDIT IT MANUALLY\nimport * as React from 'react';\nimport ClockCircleOutlinedSvg from \"@ant-design/icons-svg/es/asn/ClockCircleOutlined\";\nimport AntdIcon from '../components/AntdIcon';\n\nvar ClockCircleOutlined = function ClockCircleOutlined(props, ref) {\n return /*#__PURE__*/React.createElement(AntdIcon, _objectSpread(_objectSpread({}, props), {}, {\n ref: ref,\n icon: ClockCircleOutlinedSvg\n }));\n};\n\nClockCircleOutlined.displayName = 'ClockCircleOutlined';\nexport default /*#__PURE__*/React.forwardRef(ClockCircleOutlined);","// This icon file is generated automatically.\nvar CheckCircleOutlined = { \"icon\": { \"tag\": \"svg\", \"attrs\": { \"viewBox\": \"64 64 896 896\", \"focusable\": \"false\" }, \"children\": [{ \"tag\": \"path\", \"attrs\": { \"d\": \"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z\" } }, { \"tag\": \"path\", \"attrs\": { \"d\": \"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z\" } }] }, \"name\": \"check-circle\", \"theme\": \"outlined\" };\nexport default CheckCircleOutlined;\n","import _objectSpread from \"@babel/runtime/helpers/esm/objectSpread2\";\n// GENERATE BY ./scripts/generate.ts\n// DON NOT EDIT IT MANUALLY\nimport * as React from 'react';\nimport CheckCircleOutlinedSvg from \"@ant-design/icons-svg/es/asn/CheckCircleOutlined\";\nimport AntdIcon from '../components/AntdIcon';\n\nvar CheckCircleOutlined = function CheckCircleOutlined(props, ref) {\n return /*#__PURE__*/React.createElement(AntdIcon, _objectSpread(_objectSpread({}, props), {}, {\n ref: ref,\n icon: CheckCircleOutlinedSvg\n }));\n};\n\nCheckCircleOutlined.displayName = 'CheckCircleOutlined';\nexport default /*#__PURE__*/React.forwardRef(CheckCircleOutlined);","// This icon file is generated automatically.\nvar CloseCircleOutlined = { \"icon\": { \"tag\": \"svg\", \"attrs\": { \"viewBox\": \"64 64 896 896\", \"focusable\": \"false\" }, \"children\": [{ \"tag\": \"path\", \"attrs\": { \"d\": \"M685.4 354.8c0-4.4-3.6-8-8-8l-66 .3L512 465.6l-99.3-118.4-66.1-.3c-4.4 0-8 3.5-8 8 0 1.9.7 3.7 1.9 5.2l130.1 155L340.5 670a8.32 8.32 0 00-1.9 5.2c0 4.4 3.6 8 8 8l66.1-.3L512 564.4l99.3 118.4 66 .3c4.4 0 8-3.5 8-8 0-1.9-.7-3.7-1.9-5.2L553.5 515l130.1-155c1.2-1.4 1.8-3.3 1.8-5.2z\" } }, { \"tag\": \"path\", \"attrs\": { \"d\": \"M512 65C264.6 65 64 265.6 64 513s200.6 448 448 448 448-200.6 448-448S759.4 65 512 65zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z\" } }] }, \"name\": \"close-circle\", \"theme\": \"outlined\" };\nexport default CloseCircleOutlined;\n","import _objectSpread from \"@babel/runtime/helpers/esm/objectSpread2\";\n// GENERATE BY ./scripts/generate.ts\n// DON NOT EDIT IT MANUALLY\nimport * as React from 'react';\nimport CloseCircleOutlinedSvg from \"@ant-design/icons-svg/es/asn/CloseCircleOutlined\";\nimport AntdIcon from '../components/AntdIcon';\n\nvar CloseCircleOutlined = function CloseCircleOutlined(props, ref) {\n return /*#__PURE__*/React.createElement(AntdIcon, _objectSpread(_objectSpread({}, props), {}, {\n ref: ref,\n icon: CloseCircleOutlinedSvg\n }));\n};\n\nCloseCircleOutlined.displayName = 'CloseCircleOutlined';\nexport default /*#__PURE__*/React.forwardRef(CloseCircleOutlined);","import { useState } from \"react\"\nimport { Button, Form, Input, Switch, Tag, Tooltip } from \"antd\"\nimport { FormActions, FormField, FormLayout } from \"../Form/Form\"\nimport { useForm } from \"antd/es/form/Form\"\nimport { useServices } from \"../../../hooks/useServices\"\nimport ApplicationServices from \"../../services/ApplicationServices\"\nimport { actionNotification } from \"../../../ui/components/ActionNotification/ActionNotification\"\nimport { CenteredError, CenteredSpin, CodeInline, handleError } from \"../components\"\nimport { withQueryParams } from \"../../../utils/queryParams\"\nimport { ApiOutlined, CheckCircleOutlined, ClockCircleOutlined, CloseCircleOutlined } from \"@ant-design/icons\"\nimport { useLoaderAsObject } from \"../../../hooks/useLoader\"\nimport { Edition, MaxMindConfig } from \"./utils\"\nimport Marshal from \"lib/commons/marshalling\"\nimport useProject from \"../../../hooks/useProject\"\nimport { allPermissions } from \"../../services/permissions\"\nimport { ProjectPermission } from \"../../../generated/conf-openapi\"\n\nconst geoDataResolversCollection = \"geo_data_resolvers\"\n\ntype GeoDataResolverFormValues = {\n enabled: boolean\n license_key: string\n}\n\nfunction GeoDataResolver() {\n const services = useServices()\n\n const [saving, setSaving] = useState(false)\n const [testingConnection, setTestingConnection] = useState(false)\n const [formDisabled, setFormDisabled] = useState(false)\n const project = useProject()\n const disableEdit = !(project.permissions || allPermissions).includes(ProjectPermission.MODIFY_CONFIG)\n\n const [form] = useForm()\n\n const {\n error: loadingError,\n data: formConfig,\n setData: setFormConfig,\n } = useLoaderAsObject(async () => {\n const response = await services.backendApiClient.get(\n `/configurations/${geoDataResolversCollection}?id=${services.activeProject.id}`\n )\n\n let config = {\n license_key: response.maxmind?.license_key,\n enabled: response.maxmind?.enabled,\n editions: [],\n }\n\n //set statuses or load\n if (response.maxmind?.enabled && response.maxmind?._statuses) {\n config.editions = response.maxmind._statuses\n } else {\n const response = await ApplicationServices.get().backendApiClient.get(\n withQueryParams(\"/geo_data_resolvers/editions\", { project_id: services.activeProject.id }),\n { proxy: true }\n )\n config.editions = response.editions\n }\n\n form.setFieldsValue({\n license_key: config.license_key,\n enabled: config.enabled,\n })\n\n setFormDisabled(!config.enabled)\n\n return config\n }, [])\n\n const submit = async () => {\n setSaving(true)\n let formValues = form.getFieldsValue()\n try {\n if (formValues.enabled) {\n await testConnection(true)\n }\n await save()\n } catch (error) {\n actionNotification.error(error.message || error)\n } finally {\n setSaving(false)\n }\n }\n\n const save = async () => {\n let formValues = form.getFieldsValue()\n\n let config = {\n maxmind: {\n enabled: formValues.enabled,\n license_key: formValues.license_key,\n _statuses: formValues.enabled ? formConfig.editions : null,\n },\n }\n\n await services.backendApiClient.post(\n `/configurations/${geoDataResolversCollection}?id=${services.activeProject.id}`,\n Marshal.toPureJson(config)\n )\n\n let anyConnected =\n formConfig.editions.filter(editionStatus => {\n return editionStatus.main.status === \"ok\" || editionStatus.analog?.status === \"ok\"\n }).length > 0\n\n if (!formValues.enabled || anyConnected) {\n actionNotification.success(\"Settings saved!\")\n }\n\n if (formValues.enabled && !anyConnected) {\n actionNotification.warn(\n `Settings have been saved, but there is no available MaxMind database for this license key. Geo Resolution won't be applied to your JSON events`\n )\n }\n }\n\n const testConnection = async (hideMessage?: boolean) => {\n setTestingConnection(true)\n\n let formValues = form.getFieldsValue()\n\n try {\n const response = await ApplicationServices.get().backendApiClient.post(\n withQueryParams(\"/geo_data_resolvers/test\", { project_id: services.activeProject.id }),\n { maxmind_url: formValues.license_key },\n {\n proxy: true,\n }\n )\n\n if (response.message) throw new Error(response.message)\n\n //enrich state\n let currentFormConfig = formConfig\n currentFormConfig.editions = response.editions\n setFormConfig(currentFormConfig)\n\n //show notification\n if (!hideMessage) {\n let anyConnected =\n formConfig.editions.filter(editionStatus => {\n return editionStatus.main.status === \"ok\" || editionStatus.analog?.status === \"ok\"\n }).length > 0\n\n if (anyConnected) {\n actionNotification.success(\"Successfully connected!\")\n } else {\n actionNotification.error(\"Connection failed: there is no available MaxMind database for this license key\")\n }\n }\n } catch (error) {\n if (!hideMessage) {\n handleError(error, \"Connection failed\")\n }\n } finally {\n setTestingConnection(false)\n }\n }\n\n const databaseStatusesRepresentation = (dbStatus: any) => {\n let body = <>-\n if (dbStatus) {\n let icon = (\n \n \n \n )\n\n if (dbStatus.status === \"ok\") {\n icon = (\n \n \n \n )\n } else if (dbStatus.status === \"error\") {\n icon = (\n \n \n \n )\n }\n\n body = (\n <>\n {dbStatus.name}: {icon}\n \n )\n }\n\n return body\n }\n\n if (loadingError) {\n return \n } else if (!formConfig) {\n return \n }\n\n const editionTagRender = (edition: Edition) => {\n if (edition.main.status === \"unknown\" && (!edition.analog || edition.analog.status === \"unknown\")) {\n let name = edition.main.name.split(\"-\")[1]\n if (name === \"ISP\") {\n name = \"ISP or ASN\"\n }\n return (\n \n \n }>{name}\n \n \n )\n }\n return [\"main\", \"analog\"].map(type => {\n const db = edition[type]\n\n // if main base has ok status - don't show analog base\n if (type === \"analog\" && edition[\"main\"].status === \"ok\") {\n return null\n }\n // if analog base has ok status - don't show main base\n if (type === \"main\" && edition[\"analog\"]?.status === \"ok\") {\n return null\n }\n\n if (!db?.name || db?.status === \"unknown\") {\n return null\n }\n\n const messages = { ok: \"Successfully connected\", error: db.message }\n const icons = {\n ok: ,\n error: ,\n }\n const colors = { ok: \"green\", error: \"red\" }\n return (\n \n }\n >\n {db.name}{\" \"}\n \n \n )\n })\n }\n\n return (\n
\n
\n

\n Jitsu uses{\" \"}\n \n MaxMind\n {\" \"}\n databases for geo resolution. There are two families of MaxMind databases: GeoIP2 and GeoLite2.\n After setting a license key all available MaxMind databases, which the license key has access, will be\n downloaded and used for enriching incoming events. For using a certain database add{\" \"}\n {\"?edition_id=\"} to MaxMind License Key value. For example:{\" \"}\n {\"M10sDzWKmnDYUBM0?edition_id=GeoIP2-City,GeoIP2-ISP\"}.\n

\n\n
\n \n \n If enabled - Jitsu downloads{\" \"}\n \n GeoIP Databases\n {\" \"}\n with your license key and enriches incoming JSON events with location based data. Read more\n information about{\" \"}\n \n Geo data resolution\n \n .\n \n }\n key=\"enabled\"\n >\n \n {\n setFormDisabled(!value)\n }}\n size=\"default\"\n />\n \n \n \n Your MaxMind licence key. Obtain a new one in your{\" \"}\n \n Account\n {\" \"}\n {\"->\"} Manage License Keys. Jitsu downloads all available MaxMind databases with your license key. If\n you would like to enrich events JSON with the only certain MaxMind DB data{\": \"}\n specify license key with the format:{\" \"}\n {\"?edition_id=\"}. If you use{\" \"}\n \n Jitsu.Cloud\n {\" \"}\n and MaxMind isn't set - free GeoLite2-City and GeoLite2-ASN MaxMind databases are applied. Read more\n about{\" \"}\n \n free MaxMind databases\n \n .{\" \"}\n \n }\n key=\"license_key\"\n >\n \n \n \n \n
\n
\n Databases\n
\n\n
\n
\n {formConfig.editions.map(db => editionTagRender(db))}\n
\n
\n
\n \n testConnection()}\n icon={}\n disabled={formDisabled}\n >\n Test connection\n \n \n \n
\n
\n
\n
\n )\n}\n\nexport default GeoDataResolver\n"],"sourceRoot":""}