{"version":3,"sources":["ui/components/EmptyList/EmptyListView.tsx","webpack:///./src/ui/components/EmptyList/EmptyList.module.less?7c94","../../node_modules/.pnpm/@ant-design+icons@4.7.0_react-dom@17.0.2_react@17.0.2/node_modules/@ant-design/icons/lib/icons/CodeOutlined.js","../../node_modules/.pnpm/@ant-design+icons-svg@4.2.1/node_modules/@ant-design/icons-svg/lib/asn/CodeOutlined.js","lib/components/BillingCheckRedirect/BillingCheckRedirect.tsx","webpack:///./src/ui/pages/DestinationsPage/partials/AddDestinationDialog/AddDestinationDialog.module.less?cd7c","ui/components/EmptyList/EmptyList.tsx","../../node_modules/.pnpm/antd@4.24.10_react-dom@17.0.2_react@17.0.2/node_modules/antd/es/_util/colors.js","../../node_modules/.pnpm/antd@4.24.10_react-dom@17.0.2_react@17.0.2/node_modules/antd/es/_util/placements.js","../../node_modules/.pnpm/antd@4.24.10_react-dom@17.0.2_react@17.0.2/node_modules/antd/es/tooltip/index.js","ui/components/DestinationCard/DestinationCard.tsx","ui/pages/DestinationsPage/partials/DestinationsList/DestinationsList.tsx","ui/pages/DestinationsPage/partials/DestinationStatistics/DestinationStatistics.tsx","ui/pages/DestinationsPage/partials/AddDestinationDialog/AddDestinationDialog.tsx","ui/pages/DestinationsPage/DestinationsPage.tsx"],"names":["EmptyListViewComponent","title","list","unit","handleAddClick","centered","dropdownOverlayPlacement","hideFreeDatabaseSeparateButton","handleCreateFreeDatabase","useState","creating","setCreating","styles","bare","handleError","displayName","EmptyListView","memo","_interopRequireWildcard","require","_interopRequireDefault","Object","defineProperty","exports","value","default","_objectSpread2","React","_CodeOutlined","_AntdIcon","CodeOutlined","props","ref","createElement","icon","_default","forwardRef","BillingCheckRedirect","quotaExceededRedirectTo","quotaExceedeMessage","isQuotaExceeded","children","services","useServices","isQuotaLimitReached","features","billingEnabled","currentSubscription","doNotBlock","useEffect","showQuotaLimitModal","EmptyListComponent","router","useHistory","needShowCreateDemoDatabase","useMemo","createDemoDatabase","useCallback","flowResult","destinationsStore","createFreeDatabase","modal","info","content","destroy","push","onOk","EmptyList","observer","PresetStatusColorTypes","tuple","PresetColorTypes","autoAdjustOverflowEnabled","adjustX","adjustY","autoAdjustOverflowDisabled","targetOffset","getOverflowOptions","autoAdjustOverflow","_extends","getPlacements","config","_config$arrowWidth","arrowWidth","_config$horizontalArr","horizontalArrowShift","_config$verticalArrow","verticalArrowShift","arrowPointAtCenter","placementMap","left","points","offset","right","top","bottom","topLeft","leftTop","topRight","rightTop","bottomRight","rightBottom","bottomLeft","leftBottom","keys","forEach","key","overflow","placements","ignoreShake","__rest","s","e","t","p","prototype","hasOwnProperty","call","indexOf","getOwnPropertySymbols","i","length","propertyIsEnumerable","splitObject","obj","picked","omitted","PresetColorRegex","RegExp","concat","join","getDisabledCompatibleChildren","element","prefixCls","elementType","type","__ANT_BUTTON","disabled","__ANT_SWITCH","loading","__ANT_RADIO","_splitObject","style","spanStyle","display","cursor","width","block","undefined","buttonStyle","pointerEvents","child","cloneElement","className","classNames","Tooltip","_classNames2","_React$useContext","ConfigContext","getContextPopupContainer","getPopupContainer","getPrefixCls","direction","process","_useMergedState","useMergedState","open","visible","defaultValue","defaultOpen","defaultVisible","_useMergedState2","_slicedToArray","setOpen","isNoTitle","overlay","onOpenChange","vis","_a","_b","onVisibleChange","getTooltipPlacements","builtinPlacements","_props$arrowPointAtCe","_props$autoAdjustOver","onPopupAlign","domNode","align","placement","find","rect","getBoundingClientRect","transformOrigin","test","height","getOverlay","_props$placement","_props$mouseEnterDela","mouseEnterDelay","_props$mouseLeaveDela","mouseLeaveDelay","otherProps","customizePrefixCls","openClassName","getTooltipContainer","overlayClassName","color","overlayInnerStyle","rootPrefixCls","tempOpen","isValidElement","isFragment","childProps","childCls","_defineProperty","customOverlayClassName","formattedOverlayInnerStyle","arrowContentStyle","background","RcTooltip","arrowContent","motion","motionName","getTransitionName","transitionName","motionDeadline","DestinationCard","dst","project","useProject","disableEdit","permissions","allPermissions","includes","ProjectPermission","MODIFY_CONFIG","reference","destinationsReferenceMap","_type","rename","newName","patch","_uid","deleteAction","confirm","_id","okText","cancelText","delete","connectionsHelper","unconnectDeletedDestination","editLink","projectRoute","destinationPageRoutes","editExact","id","statLink","statisticsExact","DestinationsUtils","getDisplayName","ui","_formData","mode","_connectionTestOk","_connectionErrorMessage","deprecated","DestinationsListComponent","history","subscription","add","currentPageHeaderStore","setBreadcrumbs","map","DestinationsList","DestinationStatistics","params","useParams","destination","d","destinationId","root","allAvailableDestinations","destinationsReferenceList","filter","hidden","sort","a","b","localeCompare","destinations","Services","community","AddDestinationDialogComponent","filterParam","setFilterParam","showDeprecatedDestinations","setShowDeprecatedDestinations","handleClick","stopPropagation","preventDefault","analyticsService","track","app","appName","connector_id","deprecatedReplacement","newExact","handleChange","debounce","target","filterDestinationList","dsts","toLowerCase","document","body","classList","remove","dialog","filterInput","checked","item","item__disabled","pic","expertLabel","AddDestinationDialog","DestinationsPageComponent","isDestinationsLimitReached","currentPlan","quota","status","EntitiesStoreStatus","GLOBAL_ERROR","errorMessage","GLOBAL_LOADING","sourcesStore","DestinationsPage"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAGA;AAEA;AAwBA,GAAMA,uBAAuC,CAAG,QAA1CA,uBAA0C,MAS1C,IARJC,MAQI,MARJA,KAQI,CAPJC,IAOI,MAPJA,IAOI,CANJC,IAMI,MANJA,IAMI,0BALJC,cAKI,CALJA,cAKI,8BALa,UAAM,CAAE,CAKrB,wCAJJC,QAII,CAJJA,QAII,wBAJO,IAIP,0CAHJC,wBAGI,CAHJA,wBAGI,gCAHuB,cAGvB,kDAFJC,8BAEI,CAFJA,8BAEI,gCAF6B,KAE7B,uBADJC,wBACI,MADJA,wBACI,CACJ,cAAgCC,sDAAQ,CAAC,KAAD,CAAxC,oOAAOC,QAAP,eAAiBC,WAAjB,eACA,mBACE,uEAAK,SAAS,CAAEN,QAAQ,CAAGO,6DAAM,CAACP,QAAV,CAAqBO,6DAAM,CAACC,IAApD,wBACE,qE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T,CAA6BwR,WAA7B,CAAyCC,KAAzC,CAA+CvC,YADvF,CACqG,GADrG,kBAHJ,CAQE,eAAe,CAAEqC,0BARnB,uBAUE,2BAAC,8CAAD,EAAmB,UAAU,CAAC,KAA9B,EAVF,EADF,EAhCF,cA8CE,2BAAC,6BAAD,wBACE,2BAAC,oCAAD,EAAc,OAAO,CAAC,GAAtB,EADF,EA9CF,GADF,EADF,CAsDD,CAxED,CA0EA,GAAMS,iBAAgB,CAAG3Q,8BAAQ,CAACiQ,0CAAD,CAAjC,CAEAU,gBAAgB,CAAChU,WAAjB,CAA+B,kBAA/B,CAEegU,uHAAf,E","file":"static/js/111.1aae765d.chunk.js","sourcesContent":["// @Libs\nimport React, { memo, ReactElement, ReactNode, useState } from \"react\"\nimport { Button, Dropdown } from \"antd\"\n// @Styles\nimport styles from \"./EmptyList.module.less\"\n// @Icons\nimport PlusOutlined from \"@ant-design/icons/lib/icons/PlusOutlined\"\nimport CheckOutlined from \"@ant-design/icons/lib/icons/CheckOutlined\"\nimport { handleError } from \"lib/components/components\"\n\ntype CommonProps = {\n title: ReactNode\n list?: ReactElement\n handleAddClick?: () => void\n unit: string\n}\n\ntype LayoutProps = {\n centered?: boolean\n dropdownOverlayPlacement?: \"bottomLeft\" | \"bottomCenter\" | \"bottomRight\" | \"topLeft\" | \"topCenter\" | \"topRight\"\n}\n\ntype FreeDatabaseProps = {\n hideFreeDatabaseSeparateButton?: boolean\n handleCreateFreeDatabase?: () => Promise\n}\n\ntype Props = CommonProps & LayoutProps & FreeDatabaseProps\n\nconst EmptyListViewComponent: React.FC = ({\n title,\n list,\n unit,\n handleAddClick = () => {},\n centered = true,\n dropdownOverlayPlacement = \"bottomCenter\",\n hideFreeDatabaseSeparateButton = false,\n handleCreateFreeDatabase,\n}) => {\n const [creating, setCreating] = useState(false)\n return (\n
\n

{title}

\n
\n
\n {list ? (\n \n \n \n ) : (\n }\n >{`Add ${unit}`}\n )}\n
\n {!hideFreeDatabaseSeparateButton && handleCreateFreeDatabase && (\n <>\n
or
\n
\n }\n onClick={async () => {\n setCreating(true)\n try {\n await handleCreateFreeDatabase()\n } catch (e) {\n handleError(e)\n }\n }}\n >\n Create a free database\n \n
\n Create a free PostgresSQL database with 10,000 row limit\n
\n
\n \n )}\n
\n
\n )\n}\n\nEmptyListViewComponent.displayName = \"EmptyListView\"\n\nexport const EmptyListView = memo(EmptyListViewComponent)\n","// extracted by mini-css-extract-plugin\nmodule.exports = {\"centered\":\"EmptyList_centered__238pu\",\"bare\":\"EmptyList_bare__12cWH\"};","\"use strict\";\n\nvar _interopRequireWildcard = require(\"@babel/runtime/helpers/interopRequireWildcard\");\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _objectSpread2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectSpread2\"));\n\nvar React = _interopRequireWildcard(require(\"react\"));\n\nvar _CodeOutlined = _interopRequireDefault(require(\"@ant-design/icons-svg/lib/asn/CodeOutlined\"));\n\nvar _AntdIcon = _interopRequireDefault(require(\"../components/AntdIcon\"));\n\n// GENERATE BY ./scripts/generate.ts\n// DON NOT EDIT IT MANUALLY\nvar CodeOutlined = function CodeOutlined(props, ref) {\n return /*#__PURE__*/React.createElement(_AntdIcon.default, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, props), {}, {\n ref: ref,\n icon: _CodeOutlined.default\n }));\n};\n\nCodeOutlined.displayName = 'CodeOutlined';\n\nvar _default = /*#__PURE__*/React.forwardRef(CodeOutlined);\n\nexports.default = _default;","\"use strict\";\n// This icon file is generated automatically.\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar CodeOutlined = { \"icon\": { \"tag\": \"svg\", \"attrs\": { \"viewBox\": \"64 64 896 896\", \"focusable\": \"false\" }, \"children\": [{ \"tag\": \"path\", \"attrs\": { \"d\": \"M516 673c0 4.4 3.4 8 7.5 8h185c4.1 0 7.5-3.6 7.5-8v-48c0-4.4-3.4-8-7.5-8h-185c-4.1 0-7.5 3.6-7.5 8v48zm-194.9 6.1l192-161c3.8-3.2 3.8-9.1 0-12.3l-192-160.9A7.95 7.95 0 00308 351v62.7c0 2.4 1 4.6 2.9 6.1L420.7 512l-109.8 92.2a8.1 8.1 0 00-2.9 6.1V673c0 6.8 7.9 10.5 13.1 6.1zM880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z\" } }] }, \"name\": \"code\", \"theme\": \"outlined\" };\nexports.default = CodeOutlined;\n","import { ReactElement, useEffect } from \"react\"\nimport { Redirect } from \"react-router-dom\"\nimport { useServices } from \"hooks/useServices\"\nimport { CurrentSubscription, showQuotaLimitModal } from \"lib/services/billing\"\n\ntype Props = {\n quotaExceededRedirectTo: string\n quotaExceedeMessage: ReactElement\n isQuotaExceeded: (subscription: CurrentSubscription | null | undefined) => boolean\n}\n\n\nexport const BillingCheckRedirect: React.FC = ({\n quotaExceededRedirectTo,\n quotaExceedeMessage,\n isQuotaExceeded,\n children,\n}) => {\n const services = useServices()\n const isQuotaLimitReached: boolean =\n services.features.billingEnabled &&\n !services.currentSubscription.doNotBlock &&\n isQuotaExceeded(services.currentSubscription)\n\n useEffect(() => {\n if (isQuotaLimitReached) showQuotaLimitModal(services.currentSubscription, quotaExceedeMessage)\n }, [])\n\n return isQuotaLimitReached ? : <>{children}\n}\n","// extracted by mini-css-extract-plugin\nmodule.exports = {\"box-shadow-base\":\"AddDestinationDialog_box-shadow-base__1Ee4L\",\"border-debug\":\"AddDestinationDialog_border-debug__2lZWH\",\"font-heading\":\"AddDestinationDialog_font-heading__1UkR_\",\"font-monospace\":\"AddDestinationDialog_font-monospace__3dnLh\",\"ant-select-disabled\":\"AddDestinationDialog_ant-select-disabled__XbV8S\",\"ant-select\":\"AddDestinationDialog_ant-select__3sw_a\",\"ant-select-customize-input\":\"AddDestinationDialog_ant-select-customize-input__37NZG\",\"ant-select-selector\":\"AddDestinationDialog_ant-select-selector___KZvN\",\"ant-input-number-disabled\":\"AddDestinationDialog_ant-input-number-disabled__2BeAy\",\"ant-select-item-option-selected\":\"AddDestinationDialog_ant-select-item-option-selected__3-C48\",\"ant-select-item-option-active\":\"AddDestinationDialog_ant-select-item-option-active__3wozc\",\"ant-dropdown-menu-submenu-active\":\"AddDestinationDialog_ant-dropdown-menu-submenu-active__32Ndy\",\"ant-dropdown-menu-submenu-title\":\"AddDestinationDialog_ant-dropdown-menu-submenu-title__T9ecN\",\"ant-collapse-content-box\":\"AddDestinationDialog_ant-collapse-content-box__39VdH\",\"ant-card\":\"AddDestinationDialog_ant-card__QCPud\",\"ant-modal-content\":\"AddDestinationDialog_ant-modal-content__1Jrvk\",\"ant-table-tbody\":\"AddDestinationDialog_ant-table-tbody__3w_zs\",\"ant-table-thead\":\"AddDestinationDialog_ant-table-thead__2j49n\",\"ant-checkbox-inner\":\"AddDestinationDialog_ant-checkbox-inner__LYh5t\",\"ant-modal-header\":\"AddDestinationDialog_ant-modal-header__3W8z6\",\"ant-table\":\"AddDestinationDialog_ant-table__1sWfm\",\"ant-list-split\":\"AddDestinationDialog_ant-list-split__23rjk\",\"ant-list-header\":\"AddDestinationDialog_ant-list-header__3gQM6\",\"ant-tag\":\"AddDestinationDialog_ant-tag__1lm82\",\"ant-tooltip-inner\":\"AddDestinationDialog_ant-tooltip-inner__J6H4N\",\"ant-badge-status-processing\":\"AddDestinationDialog_ant-badge-status-processing__XKdL5\",\"ant-dropdown-menu-item-active\":\"AddDestinationDialog_ant-dropdown-menu-item-active__1edx3\",\"ant-dropdown\":\"AddDestinationDialog_ant-dropdown__3_iA_\",\"ant-popover-inner\":\"AddDestinationDialog_ant-popover-inner___UxNq\",\"ant-popover-arrow\":\"AddDestinationDialog_ant-popover-arrow__3Q7X9\",\"ant-popover-placement-rightTop\":\"AddDestinationDialog_ant-popover-placement-rightTop__2yyJy\",\"ant-popover-content\":\"AddDestinationDialog_ant-popover-content__1apO5\",\"ant-popover-placement-leftBottom\":\"AddDestinationDialog_ant-popover-placement-leftBottom__K0Qwt\",\"ant-popover-placement-bottomRight\":\"AddDestinationDialog_ant-popover-placement-bottomRight__VWVg3\",\"ant-popover-placement-top\":\"AddDestinationDialog_ant-popover-placement-top__1ewrG\",\"icon-size-base\":\"AddDestinationDialog_icon-size-base__2SskJ\",\"icon-size-lg\":\"AddDestinationDialog_icon-size-lg__2wTG0\",\"ant-tabs-card\":\"AddDestinationDialog_ant-tabs-card__2kHsH\",\"ant-tabs-tab-active\":\"AddDestinationDialog_ant-tabs-tab-active__2dsUq\",\"ant-skeleton\":\"AddDestinationDialog_ant-skeleton__IZaNq\",\"ant-skeleton-paragraph\":\"AddDestinationDialog_ant-skeleton-paragraph__2xpJL\",\"dialog\":\"AddDestinationDialog_dialog__1bKX9\",\"filter\":\"AddDestinationDialog_filter__gIdkE\",\"filterInput\":\"AddDestinationDialog_filterInput__2Hj0I\",\"list\":\"AddDestinationDialog_list__1kr6b\",\"item\":\"AddDestinationDialog_item__18oE6\",\"pic\":\"AddDestinationDialog_pic__1Xv19\",\"title\":\"AddDestinationDialog_title__27xjM\",\"airbyteLabel\":\"AddDestinationDialog_airbyteLabel__1es48\",\"star\":\"AddDestinationDialog_star__18oCk\",\"starIcon\":\"AddDestinationDialog_starIcon__2qp3z\",\"fillStar\":\"AddDestinationDialog_fillStar__33CAl\",\"strokeStar\":\"AddDestinationDialog_strokeStar__3hA13\",\"item__disabled\":\"AddDestinationDialog_item__disabled__1gTLI\"};","// @Libs\nimport { ReactElement, ReactNode, useCallback, useMemo } from \"react\"\nimport { Modal } from \"antd\"\nimport { flowResult } from \"mobx\"\nimport { observer } from \"mobx-react-lite\"\nimport { useHistory } from \"react-router-dom\"\n// @Components\nimport { EmptyListView } from \"./EmptyListView\"\n// @Commons\nimport { useServices } from \"hooks/useServices\"\nimport { destinationsStore } from \"stores/destinations\"\n\nexport interface Props {\n title: ReactNode\n list?: ReactElement\n handleAddClick?: () => void\n unit: string\n}\n\nconst EmptyListComponent = ({ title, list, handleAddClick, unit }: Props) => {\n const router = useHistory()\n const services = useServices()\n\n const needShowCreateDemoDatabase = useMemo(\n () => services.features.createDemoDatabase,\n [services.features.createDemoDatabase]\n )\n\n const handleCreateFreeDatabase = useCallback<() => Promise>(async () => {\n await flowResult(destinationsStore.createFreeDatabase())\n const modal = Modal.info({\n title: \"New destination has been created\",\n content: (\n <>\n We have created a Postgres database for you. Also we made sure that{\" \"}\n {\n modal.destroy()\n router.push(\"/api_keys\")\n }}\n >\n API key\n {\" \"}\n has been created and linked to current destination.\n
\n Read more on how to send data to Jitsu with{\" \"}\n \n JavaScript SDK\n {\" \"}\n or{\" \"}\n \n HTTP API\n \n \n ),\n onOk: () => modal.destroy(),\n })\n }, [router])\n\n return (\n \n )\n}\n\nconst EmptyList = observer(EmptyListComponent)\nEmptyList.displayName = \"EmptyList\"\n\nexport { EmptyList }\n","import { tuple } from './type';\nexport var PresetStatusColorTypes = tuple('success', 'processing', 'error', 'default', 'warning');\n// eslint-disable-next-line import/prefer-default-export\nexport var PresetColorTypes = tuple('pink', 'red', 'yellow', 'orange', 'cyan', 'green', 'blue', 'purple', 'geekblue', 'magenta', 'volcano', 'gold', 'lime');","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport { placements } from \"rc-tooltip/es/placements\";\nvar autoAdjustOverflowEnabled = {\n adjustX: 1,\n adjustY: 1\n};\nvar autoAdjustOverflowDisabled = {\n adjustX: 0,\n adjustY: 0\n};\nvar targetOffset = [0, 0];\nexport function getOverflowOptions(autoAdjustOverflow) {\n if (typeof autoAdjustOverflow === 'boolean') {\n return autoAdjustOverflow ? autoAdjustOverflowEnabled : autoAdjustOverflowDisabled;\n }\n return _extends(_extends({}, autoAdjustOverflowDisabled), autoAdjustOverflow);\n}\nexport default function getPlacements(config) {\n var _config$arrowWidth = config.arrowWidth,\n arrowWidth = _config$arrowWidth === void 0 ? 4 : _config$arrowWidth,\n _config$horizontalArr = config.horizontalArrowShift,\n horizontalArrowShift = _config$horizontalArr === void 0 ? 16 : _config$horizontalArr,\n _config$verticalArrow = config.verticalArrowShift,\n verticalArrowShift = _config$verticalArrow === void 0 ? 8 : _config$verticalArrow,\n autoAdjustOverflow = config.autoAdjustOverflow,\n arrowPointAtCenter = config.arrowPointAtCenter;\n var placementMap = {\n left: {\n points: ['cr', 'cl'],\n offset: [-4, 0]\n },\n right: {\n points: ['cl', 'cr'],\n offset: [4, 0]\n },\n top: {\n points: ['bc', 'tc'],\n offset: [0, -4]\n },\n bottom: {\n points: ['tc', 'bc'],\n offset: [0, 4]\n },\n topLeft: {\n points: ['bl', 'tc'],\n offset: [-(horizontalArrowShift + arrowWidth), -4]\n },\n leftTop: {\n points: ['tr', 'cl'],\n offset: [-4, -(verticalArrowShift + arrowWidth)]\n },\n topRight: {\n points: ['br', 'tc'],\n offset: [horizontalArrowShift + arrowWidth, -4]\n },\n rightTop: {\n points: ['tl', 'cr'],\n offset: [4, -(verticalArrowShift + arrowWidth)]\n },\n bottomRight: {\n points: ['tr', 'bc'],\n offset: [horizontalArrowShift + arrowWidth, 4]\n },\n rightBottom: {\n points: ['bl', 'cr'],\n offset: [4, verticalArrowShift + arrowWidth]\n },\n bottomLeft: {\n points: ['tl', 'bc'],\n offset: [-(horizontalArrowShift + arrowWidth), 4]\n },\n leftBottom: {\n points: ['br', 'cl'],\n offset: [-4, verticalArrowShift + arrowWidth]\n }\n };\n Object.keys(placementMap).forEach(function (key) {\n placementMap[key] = arrowPointAtCenter ? _extends(_extends({}, placementMap[key]), {\n overflow: getOverflowOptions(autoAdjustOverflow),\n targetOffset: targetOffset\n }) : _extends(_extends({}, placements[key]), {\n overflow: getOverflowOptions(autoAdjustOverflow)\n });\n placementMap[key].ignoreShake = true;\n });\n return placementMap;\n}","import _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport _slicedToArray from \"@babel/runtime/helpers/esm/slicedToArray\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nvar __rest = this && this.__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};\nimport classNames from 'classnames';\nimport RcTooltip from 'rc-tooltip';\nimport useMergedState from \"rc-util/es/hooks/useMergedState\";\nimport * as React from 'react';\nimport { ConfigContext } from '../config-provider';\nimport { PresetColorTypes } from '../_util/colors';\nimport { getTransitionName } from '../_util/motion';\nimport getPlacements from '../_util/placements';\nimport { cloneElement, isValidElement, isFragment } from '../_util/reactNode';\nimport warning from '../_util/warning';\nvar splitObject = function splitObject(obj, keys) {\n var picked = {};\n var omitted = _extends({}, obj);\n keys.forEach(function (key) {\n if (obj && key in obj) {\n picked[key] = obj[key];\n delete omitted[key];\n }\n });\n return {\n picked: picked,\n omitted: omitted\n };\n};\nvar PresetColorRegex = new RegExp(\"^(\".concat(PresetColorTypes.join('|'), \")(-inverse)?$\"));\n// Fix Tooltip won't hide at disabled button\n// mouse events don't trigger at disabled button in Chrome\n// https://github.com/react-component/tooltip/issues/18\nfunction getDisabledCompatibleChildren(element, prefixCls) {\n var elementType = element.type;\n if ((elementType.__ANT_BUTTON === true || element.type === 'button') && element.props.disabled || elementType.__ANT_SWITCH === true && (element.props.disabled || element.props.loading) || elementType.__ANT_RADIO === true && element.props.disabled) {\n // Pick some layout related style properties up to span\n // Prevent layout bugs like https://github.com/ant-design/ant-design/issues/5254\n var _splitObject = splitObject(element.props.style, ['position', 'left', 'right', 'top', 'bottom', 'float', 'display', 'zIndex']),\n picked = _splitObject.picked,\n omitted = _splitObject.omitted;\n var spanStyle = _extends(_extends({\n display: 'inline-block'\n }, picked), {\n cursor: 'not-allowed',\n width: element.props.block ? '100%' : undefined\n });\n var buttonStyle = _extends(_extends({}, omitted), {\n pointerEvents: 'none'\n });\n var child = cloneElement(element, {\n style: buttonStyle,\n className: null\n });\n return /*#__PURE__*/React.createElement(\"span\", {\n style: spanStyle,\n className: classNames(element.props.className, \"\".concat(prefixCls, \"-disabled-compatible-wrapper\"))\n }, child);\n }\n return element;\n}\nvar Tooltip = /*#__PURE__*/React.forwardRef(function (props, ref) {\n var _classNames2;\n var _React$useContext = React.useContext(ConfigContext),\n getContextPopupContainer = _React$useContext.getPopupContainer,\n getPrefixCls = _React$useContext.getPrefixCls,\n direction = _React$useContext.direction;\n // Warning for deprecated usage\n if (process.env.NODE_ENV !== 'production') {\n [['visible', 'open'], ['defaultVisible', 'defaultOpen'], ['onVisibleChange', 'onOpenChange'], ['afterVisibleChange', 'afterOpenChange']].forEach(function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n deprecatedName = _ref2[0],\n newName = _ref2[1];\n process.env.NODE_ENV !== \"production\" ? warning(!(deprecatedName in props), 'Tooltip', \"`\".concat(deprecatedName, \"` is deprecated which will be removed in next major version, please use `\").concat(newName, \"` instead.\")) : void 0;\n });\n }\n var _useMergedState = useMergedState(false, {\n value: props.open !== undefined ? props.open : props.visible,\n defaultValue: props.defaultOpen !== undefined ? props.defaultOpen : props.defaultVisible\n }),\n _useMergedState2 = _slicedToArray(_useMergedState, 2),\n open = _useMergedState2[0],\n setOpen = _useMergedState2[1];\n var isNoTitle = function isNoTitle() {\n var title = props.title,\n overlay = props.overlay;\n return !title && !overlay && title !== 0; // overlay for old version compatibility\n };\n\n var onOpenChange = function onOpenChange(vis) {\n var _a, _b;\n setOpen(isNoTitle() ? false : vis);\n if (!isNoTitle()) {\n (_a = props.onOpenChange) === null || _a === void 0 ? void 0 : _a.call(props, vis);\n (_b = props.onVisibleChange) === null || _b === void 0 ? void 0 : _b.call(props, vis);\n }\n };\n var getTooltipPlacements = function getTooltipPlacements() {\n var builtinPlacements = props.builtinPlacements,\n _props$arrowPointAtCe = props.arrowPointAtCenter,\n arrowPointAtCenter = _props$arrowPointAtCe === void 0 ? false : _props$arrowPointAtCe,\n _props$autoAdjustOver = props.autoAdjustOverflow,\n autoAdjustOverflow = _props$autoAdjustOver === void 0 ? true : _props$autoAdjustOver;\n return builtinPlacements || getPlacements({\n arrowPointAtCenter: arrowPointAtCenter,\n autoAdjustOverflow: autoAdjustOverflow\n });\n };\n // 动态设置动画点\n var onPopupAlign = function onPopupAlign(domNode, align) {\n var placements = getTooltipPlacements();\n // 当前返回的位置\n var placement = Object.keys(placements).find(function (key) {\n var _a, _b;\n return placements[key].points[0] === ((_a = align.points) === null || _a === void 0 ? void 0 : _a[0]) && placements[key].points[1] === ((_b = align.points) === null || _b === void 0 ? void 0 : _b[1]);\n });\n if (!placement) {\n return;\n }\n // 根据当前坐标设置动画点\n var rect = domNode.getBoundingClientRect();\n var transformOrigin = {\n top: '50%',\n left: '50%'\n };\n if (/top|Bottom/.test(placement)) {\n transformOrigin.top = \"\".concat(rect.height - align.offset[1], \"px\");\n } else if (/Top|bottom/.test(placement)) {\n transformOrigin.top = \"\".concat(-align.offset[1], \"px\");\n }\n if (/left|Right/.test(placement)) {\n transformOrigin.left = \"\".concat(rect.width - align.offset[0], \"px\");\n } else if (/right|Left/.test(placement)) {\n transformOrigin.left = \"\".concat(-align.offset[0], \"px\");\n }\n domNode.style.transformOrigin = \"\".concat(transformOrigin.left, \" \").concat(transformOrigin.top);\n };\n var getOverlay = function getOverlay() {\n var title = props.title,\n overlay = props.overlay;\n if (title === 0) {\n return title;\n }\n return overlay || title || '';\n };\n var getPopupContainer = props.getPopupContainer,\n _props$placement = props.placement,\n placement = _props$placement === void 0 ? 'top' : _props$placement,\n _props$mouseEnterDela = props.mouseEnterDelay,\n mouseEnterDelay = _props$mouseEnterDela === void 0 ? 0.1 : _props$mouseEnterDela,\n _props$mouseLeaveDela = props.mouseLeaveDelay,\n mouseLeaveDelay = _props$mouseLeaveDela === void 0 ? 0.1 : _props$mouseLeaveDela,\n otherProps = __rest(props, [\"getPopupContainer\", \"placement\", \"mouseEnterDelay\", \"mouseLeaveDelay\"]);\n var customizePrefixCls = props.prefixCls,\n openClassName = props.openClassName,\n getTooltipContainer = props.getTooltipContainer,\n overlayClassName = props.overlayClassName,\n color = props.color,\n overlayInnerStyle = props.overlayInnerStyle,\n children = props.children;\n var prefixCls = getPrefixCls('tooltip', customizePrefixCls);\n var rootPrefixCls = getPrefixCls();\n var tempOpen = open;\n // Hide tooltip when there is no title\n if (!('open' in props) && !('visible' in props) && isNoTitle()) {\n tempOpen = false;\n }\n var child = getDisabledCompatibleChildren(isValidElement(children) && !isFragment(children) ? children : /*#__PURE__*/React.createElement(\"span\", null, children), prefixCls);\n var childProps = child.props;\n var childCls = !childProps.className || typeof childProps.className === 'string' ? classNames(childProps.className, _defineProperty({}, openClassName || \"\".concat(prefixCls, \"-open\"), true)) : childProps.className;\n var customOverlayClassName = classNames(overlayClassName, (_classNames2 = {}, _defineProperty(_classNames2, \"\".concat(prefixCls, \"-rtl\"), direction === 'rtl'), _defineProperty(_classNames2, \"\".concat(prefixCls, \"-\").concat(color), color && PresetColorRegex.test(color)), _classNames2));\n var formattedOverlayInnerStyle = overlayInnerStyle;\n var arrowContentStyle = {};\n if (color && !PresetColorRegex.test(color)) {\n formattedOverlayInnerStyle = _extends(_extends({}, overlayInnerStyle), {\n background: color\n });\n // @ts-ignore\n arrowContentStyle = {\n '--antd-arrow-background-color': color\n };\n }\n return /*#__PURE__*/React.createElement(RcTooltip, _extends({}, otherProps, {\n placement: placement,\n mouseEnterDelay: mouseEnterDelay,\n mouseLeaveDelay: mouseLeaveDelay,\n prefixCls: prefixCls,\n overlayClassName: customOverlayClassName,\n getTooltipContainer: getPopupContainer || getTooltipContainer || getContextPopupContainer,\n ref: ref,\n builtinPlacements: getTooltipPlacements(),\n overlay: getOverlay(),\n visible: tempOpen,\n onVisibleChange: onOpenChange,\n onPopupAlign: onPopupAlign,\n overlayInnerStyle: formattedOverlayInnerStyle,\n arrowContent: /*#__PURE__*/React.createElement(\"span\", {\n className: \"\".concat(prefixCls, \"-arrow-content\"),\n style: arrowContentStyle\n }),\n motion: {\n motionName: getTransitionName(rootPrefixCls, 'zoom-big-fast', props.transitionName),\n motionDeadline: 1000\n }\n }), tempOpen ? cloneElement(child, {\n className: childCls\n }) : child);\n});\nif (process.env.NODE_ENV !== 'production') {\n Tooltip.displayName = 'Tooltip';\n}\nexport default Tooltip;","import { ConnectionCard } from \"../ConnectionCard/ConnectionCard\"\nimport { destinationsReferenceMap } from \"@jitsu/catalog\"\nimport { Badge, Menu, Modal } from \"antd\"\nimport { ExclamationCircleOutlined } from \"@ant-design/icons\"\nimport { destinationsStore } from \"../../../stores/destinations\"\nimport { handleError } from \"../../../lib/components/components\"\nimport { NavLink } from \"react-router-dom\"\nimport { destinationPageRoutes } from \"../../pages/DestinationsPage/DestinationsPage.routes\"\nimport Tooltip from \"antd/es/tooltip\"\nimport EditOutlined from \"@ant-design/icons/lib/icons/EditOutlined\"\nimport DeleteOutlined from \"@ant-design/icons/lib/icons/DeleteOutlined\"\nimport CodeOutlined from \"@ant-design/icons/lib/icons/CodeOutlined\"\nimport { flowResult } from \"mobx\"\nimport { DestinationsUtils } from \"../../../utils/destinations.utils\"\nimport { projectRoute } from \"../../../lib/components/ProjectLink/ProjectLink\"\nimport { connectionsHelper } from \"stores/helpers\"\nimport useProject from \"../../../hooks/useProject\"\nimport { allPermissions } from \"../../../lib/services/permissions\"\nimport { ProjectPermission } from \"../../../generated/conf-openapi\"\n\nexport type DestinationCardProps = {\n dst: DestinationData\n}\n\nexport function DestinationCard({ dst }: DestinationCardProps) {\n const project = useProject()\n const disableEdit = !(project.permissions || allPermissions).includes(ProjectPermission.MODIFY_CONFIG)\n\n const reference = destinationsReferenceMap[dst._type]\n const rename = async (newName: string) => {\n await flowResult(destinationsStore.patch(dst._uid, { displayName: newName }))\n }\n let deleteAction = () => {\n Modal.confirm({\n title: \"Please confirm deletion of destination\",\n icon: ,\n content: \"Are you sure you want to delete \" + dst._id + \" destination?\",\n okText: \"Delete\",\n cancelText: \"Cancel\",\n onOk: async () => {\n try {\n await flowResult(destinationsStore.delete(dst._uid))\n await connectionsHelper.unconnectDeletedDestination(dst._uid)\n } catch (errors) {\n handleError(errors, \"Unable to delete destination\")\n }\n },\n })\n }\n let editLink = projectRoute(destinationPageRoutes.editExact, { id: dst._id })\n const statLink = projectRoute(destinationPageRoutes.statisticsExact, { id: dst._id })\n return (\n \n {!disableEdit && (\n }>\n Edit\n \n )}\n {!disableEdit && (\n } onClick={deleteAction}>\n Delete\n \n )}\n }>\n Statistics\n \n \n }\n subtitle={dst._formData?.mode ? <>mode: {dst._formData?.mode} : <>{reference?.ui.title(dst)}}\n status={\n \n \n \n {dst._connectionTestOk ? \"Active\" : \"Connection test failed\"}\n \n {reference?.deprecated ? (Deprecated) : <>}\n \n }\n />\n \n }\n />\n )\n}\n","// @Libs\nimport { useCallback, useEffect } from \"react\"\nimport { useHistory } from \"react-router-dom\"\nimport { Button } from \"antd\"\nimport { observer } from \"mobx-react-lite\"\n// @Store\nimport { destinationsStore } from \"stores/destinations\"\n// @Components\nimport { EmptyList } from \"ui/components/EmptyList/EmptyList\"\n// @Icons\nimport PlusOutlined from \"@ant-design/icons/lib/icons/PlusOutlined\"\n// @Routes\nimport { destinationPageRoutes } from \"ui/pages/DestinationsPage/DestinationsPage.routes\"\n// @Types\nimport { useServices } from \"../../../../../hooks/useServices\"\nimport { DestinationCard } from \"../../../../components/DestinationCard/DestinationCard\"\nimport { currentPageHeaderStore } from \"../../../../../stores/currentPageHeader\"\nimport { projectRoute } from \"lib/components/ProjectLink/ProjectLink\"\nimport useProject from \"../../../../../hooks/useProject\"\nimport { allPermissions } from \"../../../../../lib/services/permissions\"\nimport { ProjectPermission } from \"../../../../../generated/conf-openapi\"\n\nconst DestinationsListComponent = () => {\n const history = useHistory()\n const subscription = useServices().currentSubscription\n const project = useProject()\n const disableEdit = !(project.permissions || allPermissions).includes(ProjectPermission.MODIFY_CONFIG)\n\n const handleAddClick = useCallback(() => {\n history.push(projectRoute(destinationPageRoutes.add))\n }, [history, subscription])\n\n useEffect(() => {\n currentPageHeaderStore.setBreadcrumbs(\"Destinations\")\n }, [])\n\n if (destinationsStore.list.length === 0) {\n return \n }\n\n return (\n <>\n
\n \n
\n\n
\n {destinationsStore.list.map((dst: DestinationData) => {\n return \n })}\n
\n \n )\n}\n\nexport const DestinationsList = observer(DestinationsListComponent)\n","// @Libs\nimport { useParams } from \"react-router-dom\"\n// @Store\nimport { destinationsStore } from \"stores/destinations\"\n// @Components\nimport { StatusPage } from \"lib/components/StatusPage/StatusPage\"\nimport { EntityNotFound } from \"ui/components/EntityNotFound/EntityNotFound\"\n// @Types\nimport { CommonDestinationPageProps } from \"../../DestinationsPage\"\nimport { destinationPageRoutes } from \"../../DestinationsPage.routes\"\nimport { projectRoute } from \"lib/components/ProjectLink/ProjectLink\"\n\ntype StatisticsPageParams = {\n id: string\n}\n\nexport const DestinationStatistics: React.FC = () => {\n const params = useParams()\n const destination = destinationsStore.list.find(d => d._id === params.id)\n const destinationId = destination?._uid\n\n return destination ? (\n \n ) : (\n \n )\n}\n","// @Libs\nimport React, { memo, useCallback, useEffect, useMemo, useState } from \"react\"\nimport { Link, generatePath, useHistory } from \"react-router-dom\"\nimport { Badge, Input, Modal, Switch } from \"antd\"\nimport cn from \"classnames\"\nimport debounce from \"lodash/debounce\"\n// @Catalog destinations\nimport { destinationsReferenceList, destinationsReferenceMap } from \"@jitsu/catalog\"\n// @Services\nimport ApplicationServices from \"lib/services/ApplicationServices\"\n// @Styles\nimport styles from \"./AddDestinationDialog.module.less\"\n// @Types\nimport { Destination } from \"@jitsu/catalog\"\n// @Icons\nimport { StarOutlined, StarFilled, ExclamationCircleOutlined } from \"@ant-design/icons\"\n// @Routes\nimport { useServices } from \"hooks/useServices\"\nimport Checkbox from \"antd/es/checkbox/Checkbox\"\nimport destinationsPage from \"../../DestinationsPage\"\nimport { destinationPageRoutes } from \"../../DestinationsPage.routes\"\nimport { projectRoute } from \"../../../../../lib/components/ProjectLink/ProjectLink\"\n\n/**\n * All not hidden destinations\n * Sort:\n * 1. native connectors\n * 4. deprecated(disabled)\n */\n\nconst allAvailableDestinations: Destination[] = destinationsReferenceList\n .filter(d => !d.hidden)\n .sort((a, b) => {\n if (a.deprecated && !b.deprecated) {\n return 1\n } else if (!a.deprecated && b.deprecated) {\n return -1\n }\n return a.displayName.localeCompare(b.displayName)\n })\n .map(d => d as Destination)\n\nconst destinations = {\n \"Data Warehouses\": allAvailableDestinations.filter(d => d.type === \"database\"),\n Services: allAvailableDestinations.filter(d => d.type === \"other\" && !d.community),\n \"Community Plugins\": allAvailableDestinations.filter(d => d.type === \"other\" && d.community),\n}\n\nconst AddDestinationDialogComponent = () => {\n const history = useHistory()\n\n const [filterParam, setFilterParam] = useState()\n const services = useServices()\n const [showDeprecatedDestinations, setShowDeprecatedDestinations] = useState(false)\n\n const handleClick = (dst: Destination) => (e: React.MouseEvent) => {\n if (dst.deprecated) {\n e.stopPropagation()\n e.preventDefault()\n services.analyticsService.track(\"deprecated_destination_attempt\", {\n app: services.features.appName,\n connector_id: dst.id,\n })\n\n Modal.confirm({\n title: (\n <>\n {dst.displayName} - deprecated version notice!\n \n ),\n icon: ,\n content: (\n <>\n {dst.deprecatedReplacement ? (\n \n This version is not recommended to use because newer version{\" \"}\n \n {destinationsReferenceMap[dst.deprecatedReplacement].displayName}\n {\" \"}\n is available. Please use it instead.\n \n ) : (\n \n {dst.displayName} is not recommended to use due to known stability or compatibility issues.\n \n )}\n
\n
\n Add deprecated version anyway?\n \n ),\n okText: \"Add\",\n cancelText: \"Cancel\",\n onOk: () => {\n services.analyticsService.track('\"deprecated_destination_added', {\n app: services.features.appName,\n connector_id: dst.id,\n })\n history.push(projectRoute(destinationPageRoutes.newExact, { type: dst.id }))\n },\n })\n }\n }\n\n const handleChange = debounce(\n useCallback((e: React.ChangeEvent) => {\n setFilterParam(e.target.value)\n }, []),\n 500\n )\n\n const filterDestinationList = useCallback(\n dsts =>\n (filterParam\n ? dsts.filter(\n (dst: Destination) =>\n dst.displayName.toLowerCase().includes(filterParam.toLowerCase()) ||\n dst.id.toLowerCase().includes(filterParam.toLowerCase())\n )\n : dsts\n ).filter(d => showDeprecatedDestinations || !d.deprecated),\n [filterParam, showDeprecatedDestinations]\n )\n\n useEffect(() => {\n document.body.classList.add(\"custom-scroll-body\")\n\n return () => document.body.classList.remove(\"custom-scroll-body\")\n }, [])\n\n return (\n
\n
\n
\n \n
\n
\n setShowDeprecatedDestinations(checked)} />\n
Show deprecated destinations
\n
\n
\n {Object.keys(destinations).map(type => (\n
\n

{type}:

\n
\n {filterDestinationList(destinations[type]).map((dst: Destination) => (\n \n {dst.ui.icon}\n {dst.displayName}\n {dst.deprecated ? : <>}\n \n ))}\n
\n
\n ))}\n
\n )\n}\n\nAddDestinationDialogComponent.displayName = \"AddDestinationDialog\"\n\nexport const AddDestinationDialog = memo(AddDestinationDialogComponent)\n","// @Libs\nimport { useCallback } from \"react\"\nimport { Route, Switch, useParams } from \"react-router-dom\"\nimport { observer } from \"mobx-react-lite\"\n// @Pages\nimport { DestinationsList } from \"./partials/DestinationsList/DestinationsList\"\nimport { DestinationEditor } from \"./partials/DestinationEditor/DestinationEditor\"\n// @Store\nimport { destinationsStore } from \"stores/destinations\"\nimport { sourcesStore } from \"stores/sources\"\n// @Routes\nimport { destinationPageRoutes } from \"./DestinationsPage.routes\"\n// @Components\nimport { CenteredError, CenteredSpin } from \"lib/components/components\"\n// @Hooks\nimport { useServices } from \"hooks/useServices\"\n// @Types\nimport { DestinationStatistics } from \"./partials/DestinationStatistics/DestinationStatistics\"\nimport { ErrorBoundary } from \"../../../lib/components/ErrorBoundary/ErrorBoundary\"\nimport { AddDestinationDialog } from \"./partials/AddDestinationDialog/AddDestinationDialog\"\nimport { CurrentSubscription } from \"lib/services/billing\"\nimport { BillingCheckRedirect } from \"lib/components/BillingCheckRedirect/BillingCheckRedirect\"\nimport { EntitiesStoreStatus } from \"stores/entitiesStore\"\nimport { projectRoute } from \"lib/components/ProjectLink/ProjectLink\"\nimport { PageNotFound } from \"ui/components/PageNotFound/PageNotFound\"\n\nexport interface CollectionDestinationData {\n destinations: DestinationData[]\n _lastUpdated?: string\n}\n\nexport interface CommonDestinationPageProps {\n editorMode?: \"edit\" | \"add\"\n}\n\nconst DestinationsPageComponent: React.FC = () => {\n const params = useParams()\n const services = useServices()\n\n const isDestinationsLimitReached = useCallback<(subscription?: CurrentSubscription) => boolean>(\n subscription => destinationsStore.list.length >= (subscription?.currentPlan.quota.destinations ?? 999),\n [destinationsStore.list.length]\n )\n\n if (destinationsStore.status === EntitiesStoreStatus.GLOBAL_ERROR) {\n return \n } else if (\n destinationsStore.status === EntitiesStoreStatus.GLOBAL_LOADING ||\n sourcesStore.status === EntitiesStoreStatus.GLOBAL_LOADING\n ) {\n return \n }\n\n return (\n \n \n \n \n \n \n \n \n \n \n \n\n \n \n You current plan allows to have only {services.currentSubscription.currentPlan.quota.destinations}{\" \"}\n destinations\n \n }\n isQuotaExceeded={isDestinationsLimitReached}\n >\n \n \n \n \n \n You current plan allows to have only {services.currentSubscription.currentPlan.quota.destinations}{\" \"}\n destinations\n \n }\n isQuotaExceeded={isDestinationsLimitReached}\n >\n \n \n \n \n \n \n \n \n )\n}\n\nconst DestinationsPage = observer(DestinationsPageComponent)\n\nDestinationsPage.displayName = \"DestinationsPage\"\n\nexport default DestinationsPage\n"],"sourceRoot":""}