{"version":3,"file":"knowledges-57d1ca67.js","sources":["../../../node_modules/void-elements/index.js","../../../node_modules/html-parse-stringify/dist/html-parse-stringify.module.js","../../../node_modules/react-i18next/dist/es/TransWithoutContext.js","../../../node_modules/react-i18next/dist/es/Trans.js","../../../node_modules/react-lifecycles-compat/react-lifecycles-compat.es.js","../../../app/javascript/components/common/Loaders/Loader.tsx","../../../node_modules/@rails/actioncable/app/assets/javascripts/action_cable.js","../../../app/javascript/channels/consumer.ts","../../../app/javascript/commons/dateFormatter.ts","../../../node_modules/file-saver/dist/FileSaver.min.js","../../../app/javascript/components/templates/knowledges/CsvExportDetailModal.tsx","../../../app/javascript/components/templates/knowledges/KnowledgeBase.tsx","../../../app/javascript/components/templates/knowledges/SearchInput.tsx","../../../app/javascript/components/templates/knowledges/conversation/ConversationRelatedKnowledgeList.tsx","../../../app/javascript/constants/constants.ts","../../../app/javascript/components/templates/knowledges/RelatedKnowledgeList.tsx","../../../app/javascript/components/templates/knowledges/QaResponseField.tsx","../../../app/javascript/components/templates/knowledges/KnowledgeDetailModal.tsx","../../../app/javascript/components/templates/knowledges/KnowledgeCreateModal.tsx","../../../app/javascript/components/templates/knowledges/KnowledgeEditModal.tsx","../../../app/javascript/components/templates/knowledges/KnowledgeMailDataSourceThreads.tsx","../../../app/javascript/components/templates/knowledges/conversation/ConversationSearchInput.tsx","../../../app/javascript/components/templates/knowledges/SearchForm.tsx","../../../app/javascript/components/templates/knowledges/AddMemberModal.tsx","../../../app/javascript/components/templates/knowledges/EditMemberModal.tsx","../../../app/javascript/components/templates/knowledges/MemberListModal.tsx","../../../app/javascript/components/templates/knowledges/KnowledgeLicenseChangeModal.tsx","../../../app/javascript/components/templates/knowledges/MyAppModal.tsx","../../../app/javascript/components/templates/knowledges/CommonSettingModal.tsx","../../../app/javascript/components/templates/knowledges/ConnectIdModal.tsx","../../../app/javascript/components/templates/knowledges/KnowledgeLicenseRequestModal.tsx","../../../app/javascript/components/templates/knowledges/MemberDeleteConfirmationModal.tsx","../../../app/javascript/components/templates/knowledges/MemberTwoFactorAuthRecoveryCodeModal.tsx","../../../app/javascript/components/common/LoadBtn/LoadBtn.tsx","../../../app/javascript/components/templates/knowledges/MemberTwoFactorAuthModal.tsx","../../../app/javascript/components/templates/knowledges/IpRestrictionModal.tsx","../../../app/javascript/components/templates/knowledges/SecuritySettingModal.tsx","../../../app/javascript/components/common/Knowledges/Payment/DashBoardCurrentPlan.tsx","../../../app/javascript/components/common/Knowledges/Payment/Button/SecondaryBtn.tsx","../../../app/javascript/components/common/Knowledges/Payment/Card/InfoCard.tsx","../../../app/javascript/components/common/Knowledges/Payment/DashBoardPaymentInfo.tsx","../../../app/javascript/components/templates/knowledges/payment/ChangePlan.tsx","../../../app/javascript/components/templates/knowledges/payment/DashboardView.tsx","../../../app/javascript/components/templates/knowledges/payment/PlanUpdateModal.tsx","../../../app/javascript/components/templates/knowledges/payment/PlanCancelModal.tsx","../../../app/javascript/components/templates/knowledges/LlmModelSettingModal.tsx","../../../app/javascript/components/templates/knowledges/SettingModal.tsx","../../../app/javascript/components/templates/knowledges/KnowledgeBaseShareForm.tsx","../../../app/javascript/components/templates/knowledges/KnowledgeBaseShareView.tsx","../../../app/javascript/hooks/useDebounce.ts","../../../app/javascript/components/templates/knowledges/KnowledgeBaseSearchLogView.tsx","../../../app/javascript/components/templates/knowledges/KnowledgeBaseSearchLogDetailView.tsx","../../../__vite-browser-external","../../../node_modules/pdfjs-dist/build/pdf.js","../../../node_modules/react-pdf/dist/esm/pdfjs.js","../../../node_modules/react-pdf/node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../node_modules/react-pdf/node_modules/prop-types/factoryWithThrowingShims.js","../../../node_modules/react-pdf/node_modules/prop-types/index.js","../../../node_modules/make-event-props/dist/esm/index.js","../../../node_modules/make-cancellable-promise/dist/esm/index.js","../../../node_modules/clsx/dist/clsx.mjs","../../../node_modules/tiny-invariant/dist/esm/tiny-invariant.js","../../../node_modules/tiny-warning/dist/tiny-warning.esm.js","../../../node_modules/react-pdf/dist/esm/DocumentContext.js","../../../node_modules/react-pdf/dist/esm/Message.js","../../../node_modules/react-pdf/dist/esm/LinkService.js","../../../node_modules/react-pdf/dist/esm/PasswordResponses.js","../../../node_modules/react-pdf/dist/esm/shared/utils.js","../../../node_modules/react-pdf/dist/esm/shared/hooks/useResolver.js","../../../node_modules/react-pdf/dist/esm/shared/propTypes.js","../../../node_modules/react-pdf/dist/esm/Document.js","../../../node_modules/react-pdf/dist/esm/shared/hooks/useDocumentContext.js","../../../node_modules/merge-refs/dist/esm/index.js","../../../node_modules/react-pdf/dist/esm/PageContext.js","../../../node_modules/react-pdf/dist/esm/shared/constants.js","../../../node_modules/react-pdf/dist/esm/shared/structTreeUtils.js","../../../node_modules/react-pdf/dist/esm/StructTreeItem.js","../../../node_modules/react-pdf/dist/esm/shared/hooks/usePageContext.js","../../../node_modules/react-pdf/dist/esm/StructTree.js","../../../node_modules/react-pdf/dist/esm/Page/PageCanvas.js","../../../node_modules/react-pdf/dist/esm/Page/PageSVG.js","../../../node_modules/react-pdf/dist/esm/Page/TextLayer.js","../../../node_modules/react-pdf/dist/esm/Page/AnnotationLayer.js","../../../node_modules/react-pdf/dist/esm/Page.js","../../../node_modules/react-pdf/dist/esm/index.js","../../../node_modules/react-virtualized/node_modules/@babel/runtime/helpers/esm/classCallCheck.js","../../../node_modules/react-virtualized/node_modules/@babel/runtime/helpers/esm/typeof.js","../../../node_modules/react-virtualized/node_modules/@babel/runtime/helpers/esm/toPrimitive.js","../../../node_modules/react-virtualized/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js","../../../node_modules/react-virtualized/node_modules/@babel/runtime/helpers/esm/createClass.js","../../../node_modules/react-virtualized/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js","../../../node_modules/react-virtualized/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js","../../../node_modules/react-virtualized/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js","../../../node_modules/react-virtualized/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js","../../../node_modules/react-virtualized/node_modules/@babel/runtime/helpers/esm/inherits.js","../../../node_modules/react-virtualized/node_modules/@babel/runtime/helpers/esm/defineProperty.js","../../../node_modules/react-virtualized/node_modules/@babel/runtime/helpers/esm/extends.js","../../../node_modules/react-virtualized/node_modules/clsx/dist/clsx.m.js","../../../node_modules/react-virtualized/dist/es/Grid/utils/calculateSizeAndPositionDataAndUpdateScrollOffset.js","../../../node_modules/react-virtualized/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js","../../../node_modules/react-virtualized/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js","../../../node_modules/react-virtualized/dist/es/Grid/utils/CellSizeAndPositionManager.js","../../../node_modules/react-virtualized/dist/es/Grid/utils/maxElementSize.js","../../../node_modules/react-virtualized/dist/es/Grid/utils/ScalingCellSizeAndPositionManager.js","../../../node_modules/react-virtualized/dist/es/utils/createCallbackMemoizer.js","../../../node_modules/react-virtualized/dist/es/Grid/defaultOverscanIndicesGetter.js","../../../node_modules/react-virtualized/dist/es/Grid/utils/updateScrollIndexHelper.js","../../../node_modules/react-virtualized/dist/es/Grid/defaultCellRangeRenderer.js","../../../node_modules/react-virtualized/dist/es/utils/animationFrame.js","../../../node_modules/react-virtualized/dist/es/utils/requestAnimationTimeout.js","../../../node_modules/react-virtualized/dist/es/Grid/Grid.js","../../../node_modules/react-virtualized/dist/es/Grid/accessibilityOverscanIndicesGetter.js","../../../node_modules/react-virtualized/dist/es/ArrowKeyStepper/ArrowKeyStepper.js","../../../node_modules/react-virtualized/dist/es/vendor/detectElementResize.js","../../../node_modules/react-virtualized/dist/es/AutoSizer/AutoSizer.js","../../../node_modules/react-virtualized/dist/es/CellMeasurer/CellMeasurer.js","../../../node_modules/react-virtualized/dist/es/Collection/CollectionView.js","../../../node_modules/react-virtualized/dist/es/Collection/Section.js","../../../node_modules/react-virtualized/dist/es/Collection/SectionManager.js","../../../node_modules/react-virtualized/dist/es/Collection/utils/calculateSizeAndPositionData.js","../../../node_modules/react-virtualized/dist/es/utils/getUpdatedOffsetForIndex.js","../../../node_modules/react-virtualized/dist/es/Collection/Collection.js","../../../node_modules/react-virtualized/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js","../../../node_modules/react-virtualized/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js","../../../node_modules/react-virtualized/node_modules/@babel/runtime/helpers/esm/iterableToArray.js","../../../node_modules/react-virtualized/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js","../../../node_modules/react-virtualized/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js","../../../node_modules/react-virtualized/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js","../../../node_modules/react-virtualized/dist/es/InfiniteLoader/InfiniteLoader.js","../../../node_modules/react-virtualized/dist/es/List/List.js","../../../node_modules/react-virtualized/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js","../../../node_modules/react-virtualized/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js","../../../node_modules/react-virtualized/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js","../../../node_modules/react-virtualized/node_modules/@babel/runtime/helpers/esm/slicedToArray.js","../../../node_modules/react-virtualized/dist/es/vendor/binarySearchBounds.js","../../../node_modules/react-virtualized/dist/es/vendor/intervalTree.js","../../../node_modules/react-virtualized/dist/es/Masonry/PositionCache.js","../../../node_modules/react-virtualized/dist/es/Masonry/Masonry.js","../../../node_modules/react-virtualized/dist/es/MultiGrid/CellMeasurerCacheDecorator.js","../../../node_modules/react-virtualized/dist/es/MultiGrid/MultiGrid.js","../../../node_modules/react-virtualized/dist/es/Table/defaultCellDataGetter.js","../../../node_modules/react-virtualized/dist/es/Table/defaultCellRenderer.js","../../../node_modules/react-virtualized/dist/es/Table/defaultHeaderRowRenderer.js","../../../node_modules/react-virtualized/dist/es/Table/SortDirection.js","../../../node_modules/react-virtualized/dist/es/Table/SortIndicator.js","../../../node_modules/react-virtualized/dist/es/Table/defaultHeaderRenderer.js","../../../node_modules/react-virtualized/dist/es/Table/defaultRowRenderer.js","../../../node_modules/react-virtualized/dist/es/Table/Column.js","../../../node_modules/react-virtualized/dist/es/Table/Table.js","../../../node_modules/react-virtualized/dist/es/WindowScroller/utils/onScroll.js","../../../node_modules/react-virtualized/dist/es/WindowScroller/utils/dimensions.js","../../../node_modules/react-virtualized/dist/es/WindowScroller/WindowScroller.js","../../../app/javascript/components/templates/knowledges/KnowledgeSourceReadView.tsx","../../../app/javascript/components/templates/knowledges/ProcedurePopup.tsx","../../../app/javascript/components/templates/knowledges/IntegrationComponent.tsx","../../../app/javascript/components/templates/knowledges/KnowledgeBaseIntegrationView.tsx","../../../app/javascript/entries/reactEntries/knowledges.ts"],"sourcesContent":["/**\n * This file automatically generated from `pre-publish.js`.\n * Do not manually edit.\n */\n\nmodule.exports = {\n \"area\": true,\n \"base\": true,\n \"br\": true,\n \"col\": true,\n \"embed\": true,\n \"hr\": true,\n \"img\": true,\n \"input\": true,\n \"link\": true,\n \"meta\": true,\n \"param\": true,\n \"source\": true,\n \"track\": true,\n \"wbr\": true\n};\n","import e from\"void-elements\";var t=/\\s([^'\"/\\s><]+?)[\\s/>]|([^\\s=]+)=\\s?(\".*?\"|'.*?')/g;function n(n){var r={type:\"tag\",name:\"\",voidElement:!1,attrs:{},children:[]},i=n.match(/<\\/?([^\\s]+?)[/\\s>]/);if(i&&(r.name=i[1],(e[i[1]]||\"/\"===n.charAt(n.length-2))&&(r.voidElement=!0),r.name.startsWith(\"!--\"))){var s=n.indexOf(\"--\\x3e\");return{type:\"comment\",comment:-1!==s?n.slice(4,s):\"\"}}for(var a=new RegExp(t),c=null;null!==(c=a.exec(n));)if(c[0].trim())if(c[1]){var o=c[1].trim(),l=[o,\"\"];o.indexOf(\"=\")>-1&&(l=o.split(\"=\")),r.attrs[l[0]]=l[1],a.lastIndex--}else c[2]&&(r.attrs[c[2]]=c[3].trim().substring(1,c[3].length-1));return r}var r=/<[a-zA-Z0-9\\-\\!\\/](?:\"[^\"]*\"|'[^']*'|[^'\">])*>/g,i=/^\\s*$/,s=Object.create(null);function a(e,t){switch(t.type){case\"text\":return e+t.content;case\"tag\":return e+=\"<\"+t.name+(t.attrs?function(e){var t=[];for(var n in e)t.push(n+'=\"'+e[n]+'\"');return t.length?\" \"+t.join(\" \"):\"\"}(t.attrs):\"\")+(t.voidElement?\"/>\":\">\"),t.voidElement?e:e+t.children.reduce(a,\"\")+\"\"+t.name+\">\";case\"comment\":return e+\"\\x3c!--\"+t.comment+\"--\\x3e\"}}var c={parse:function(e,t){t||(t={}),t.components||(t.components=s);var a,c=[],o=[],l=-1,m=!1;if(0!==e.indexOf(\"<\")){var u=e.indexOf(\"<\");c.push({type:\"text\",content:-1===u?e:e.substring(0,u)})}return e.replace(r,function(r,s){if(m){if(r!==\"\"+a.name+\">\")return;m=!1}var u,f=\"/\"!==r.charAt(1),h=r.startsWith(\"\\x3c!--\"),p=s+r.length,d=e.charAt(p);if(h){var v=n(r);return l<0?(c.push(v),c):((u=o[l]).children.push(v),c)}if(f&&(l++,\"tag\"===(a=n(r)).type&&t.components[a.name]&&(a.type=\"component\",m=!0),a.voidElement||m||!d||\"<\"===d||a.children.push({type:\"text\",content:e.slice(p,e.indexOf(\"<\",p))}),0===l&&c.push(a),(u=o[l-1])&&u.children.push(a),o[l]=a),(!f||a.voidElement)&&(l>-1&&(a.voidElement||a.name===r.slice(2,-1))&&(l--,a=-1===l?c:o[l]),!m&&\"<\"!==d&&d)){u=-1===l?c:o[l].children;var x=e.indexOf(\"<\",p),g=e.slice(p,-1===x?void 0:x);i.test(g)&&(g=\" \"),(x>-1&&l+u.length>=0||\" \"!==g)&&u.push({type:\"text\",content:g})}}),c},stringify:function(e){return e.reduce(function(e,t){return e+a(\"\",t)},\"\")}};export default c;\n//# sourceMappingURL=html-parse-stringify.module.js.map\n","import { Fragment, isValidElement, cloneElement, createElement, Children } from 'react';\nimport HTML from 'html-parse-stringify';\nimport { warn, warnOnce } from './utils.js';\nimport { getDefaults } from './defaults.js';\nimport { getI18n } from './i18nInstance.js';\nfunction hasChildren(node, checkLength) {\n if (!node) return false;\n const base = node.props ? node.props.children : node.children;\n if (checkLength) return base.length > 0;\n return !!base;\n}\nfunction getChildren(node) {\n if (!node) return [];\n const children = node.props ? node.props.children : node.children;\n return node.props && node.props.i18nIsDynamicList ? getAsArray(children) : children;\n}\nfunction hasValidReactChildren(children) {\n if (Object.prototype.toString.call(children) !== '[object Array]') return false;\n return children.every(child => isValidElement(child));\n}\nfunction getAsArray(data) {\n return Array.isArray(data) ? data : [data];\n}\nfunction mergeProps(source, target) {\n const newTarget = {\n ...target\n };\n newTarget.props = Object.assign(source.props, target.props);\n return newTarget;\n}\nexport function nodesToString(children, i18nOptions) {\n if (!children) return '';\n let stringNode = '';\n const childrenArray = getAsArray(children);\n const keepArray = i18nOptions.transSupportBasicHtmlNodes && i18nOptions.transKeepBasicHtmlNodesFor ? i18nOptions.transKeepBasicHtmlNodesFor : [];\n childrenArray.forEach((child, childIndex) => {\n if (typeof child === 'string') {\n stringNode += `${child}`;\n } else if (isValidElement(child)) {\n const childPropsCount = Object.keys(child.props).length;\n const shouldKeepChild = keepArray.indexOf(child.type) > -1;\n const childChildren = child.props.children;\n if (!childChildren && shouldKeepChild && childPropsCount === 0) {\n stringNode += `<${child.type}/>`;\n } else if (!childChildren && (!shouldKeepChild || childPropsCount !== 0)) {\n stringNode += `<${childIndex}>${childIndex}>`;\n } else if (child.props.i18nIsDynamicList) {\n stringNode += `<${childIndex}>${childIndex}>`;\n } else if (shouldKeepChild && childPropsCount === 1 && typeof childChildren === 'string') {\n stringNode += `<${child.type}>${childChildren}${child.type}>`;\n } else {\n const content = nodesToString(childChildren, i18nOptions);\n stringNode += `<${childIndex}>${content}${childIndex}>`;\n }\n } else if (child === null) {\n warn(`Trans: the passed in value is invalid - seems you passed in a null child.`);\n } else if (typeof child === 'object') {\n const {\n format,\n ...clone\n } = child;\n const keys = Object.keys(clone);\n if (keys.length === 1) {\n const value = format ? `${keys[0]}, ${format}` : keys[0];\n stringNode += `{{${value}}}`;\n } else {\n warn(`react-i18next: the passed in object contained more than one variable - the object should look like {{ value, format }} where format is optional.`, child);\n }\n } else {\n warn(`Trans: the passed in value is invalid - seems you passed in a variable like {number} - please pass in variables for interpolation as full objects like {{number}}.`, child);\n }\n });\n return stringNode;\n}\nfunction renderNodes(children, targetString, i18n, i18nOptions, combinedTOpts, shouldUnescape) {\n if (targetString === '') return [];\n const keepArray = i18nOptions.transKeepBasicHtmlNodesFor || [];\n const emptyChildrenButNeedsHandling = targetString && new RegExp(keepArray.map(keep => `<${keep}`).join('|')).test(targetString);\n if (!children && !emptyChildrenButNeedsHandling && !shouldUnescape) return [targetString];\n const data = {};\n function getData(childs) {\n const childrenArray = getAsArray(childs);\n childrenArray.forEach(child => {\n if (typeof child === 'string') return;\n if (hasChildren(child)) getData(getChildren(child));else if (typeof child === 'object' && !isValidElement(child)) Object.assign(data, child);\n });\n }\n getData(children);\n const ast = HTML.parse(`<0>${targetString}0>`);\n const opts = {\n ...data,\n ...combinedTOpts\n };\n function renderInner(child, node, rootReactNode) {\n const childs = getChildren(child);\n const mappedChildren = mapAST(childs, node.children, rootReactNode);\n return hasValidReactChildren(childs) && mappedChildren.length === 0 || child.props && child.props.i18nIsDynamicList ? childs : mappedChildren;\n }\n function pushTranslatedJSX(child, inner, mem, i, isVoid) {\n if (child.dummy) {\n child.children = inner;\n mem.push(cloneElement(child, {\n key: i\n }, isVoid ? undefined : inner));\n } else {\n mem.push(...Children.map([child], c => {\n const props = {\n ...c.props\n };\n delete props.i18nIsDynamicList;\n return createElement(c.type, {\n ...props,\n key: i,\n ref: c.ref\n }, isVoid ? null : inner);\n }));\n }\n }\n function mapAST(reactNode, astNode, rootReactNode) {\n const reactNodes = getAsArray(reactNode);\n const astNodes = getAsArray(astNode);\n return astNodes.reduce((mem, node, i) => {\n const translationContent = node.children && node.children[0] && node.children[0].content && i18n.services.interpolator.interpolate(node.children[0].content, opts, i18n.language);\n if (node.type === 'tag') {\n let tmp = reactNodes[parseInt(node.name, 10)];\n if (rootReactNode.length === 1 && !tmp) tmp = rootReactNode[0][node.name];\n if (!tmp) tmp = {};\n const child = Object.keys(node.attrs).length !== 0 ? mergeProps({\n props: node.attrs\n }, tmp) : tmp;\n const isElement = isValidElement(child);\n const isValidTranslationWithChildren = isElement && hasChildren(node, true) && !node.voidElement;\n const isEmptyTransWithHTML = emptyChildrenButNeedsHandling && typeof child === 'object' && child.dummy && !isElement;\n const isKnownComponent = typeof children === 'object' && children !== null && Object.hasOwnProperty.call(children, node.name);\n if (typeof child === 'string') {\n const value = i18n.services.interpolator.interpolate(child, opts, i18n.language);\n mem.push(value);\n } else if (hasChildren(child) || isValidTranslationWithChildren) {\n const inner = renderInner(child, node, rootReactNode);\n pushTranslatedJSX(child, inner, mem, i);\n } else if (isEmptyTransWithHTML) {\n const inner = mapAST(reactNodes, node.children, rootReactNode);\n pushTranslatedJSX(child, inner, mem, i);\n } else if (Number.isNaN(parseFloat(node.name))) {\n if (isKnownComponent) {\n const inner = renderInner(child, node, rootReactNode);\n pushTranslatedJSX(child, inner, mem, i, node.voidElement);\n } else if (i18nOptions.transSupportBasicHtmlNodes && keepArray.indexOf(node.name) > -1) {\n if (node.voidElement) {\n mem.push(createElement(node.name, {\n key: `${node.name}-${i}`\n }));\n } else {\n const inner = mapAST(reactNodes, node.children, rootReactNode);\n mem.push(createElement(node.name, {\n key: `${node.name}-${i}`\n }, inner));\n }\n } else if (node.voidElement) {\n mem.push(`<${node.name} />`);\n } else {\n const inner = mapAST(reactNodes, node.children, rootReactNode);\n mem.push(`<${node.name}>${inner}${node.name}>`);\n }\n } else if (typeof child === 'object' && !isElement) {\n const content = node.children[0] ? translationContent : null;\n if (content) mem.push(content);\n } else {\n pushTranslatedJSX(child, translationContent, mem, i, node.children.length !== 1 || !translationContent);\n }\n } else if (node.type === 'text') {\n const wrapTextNodes = i18nOptions.transWrapTextNodes;\n const content = shouldUnescape ? i18nOptions.unescape(i18n.services.interpolator.interpolate(node.content, opts, i18n.language)) : i18n.services.interpolator.interpolate(node.content, opts, i18n.language);\n if (wrapTextNodes) {\n mem.push(createElement(wrapTextNodes, {\n key: `${node.name}-${i}`\n }, content));\n } else {\n mem.push(content);\n }\n }\n return mem;\n }, []);\n }\n const result = mapAST([{\n dummy: true,\n children: children || []\n }], ast, getAsArray(children || []));\n return getChildren(result[0]);\n}\nexport function Trans(_ref) {\n let {\n children,\n count,\n parent,\n i18nKey,\n context,\n tOptions = {},\n values,\n defaults,\n components,\n ns,\n i18n: i18nFromProps,\n t: tFromProps,\n shouldUnescape,\n ...additionalProps\n } = _ref;\n const i18n = i18nFromProps || getI18n();\n if (!i18n) {\n warnOnce('You will need to pass in an i18next instance by using i18nextReactModule');\n return children;\n }\n const t = tFromProps || i18n.t.bind(i18n) || (k => k);\n if (context) tOptions.context = context;\n const reactI18nextOptions = {\n ...getDefaults(),\n ...(i18n.options && i18n.options.react)\n };\n let namespaces = ns || t.ns || i18n.options && i18n.options.defaultNS;\n namespaces = typeof namespaces === 'string' ? [namespaces] : namespaces || ['translation'];\n const nodeAsString = nodesToString(children, reactI18nextOptions);\n const defaultValue = defaults || nodeAsString || reactI18nextOptions.transEmptyNodeValue || i18nKey;\n const {\n hashTransKey\n } = reactI18nextOptions;\n const key = i18nKey || (hashTransKey ? hashTransKey(nodeAsString || defaultValue) : nodeAsString || defaultValue);\n if (i18n.options && i18n.options.interpolation && i18n.options.interpolation.defaultVariables) {\n values = values && Object.keys(values).length > 0 ? {\n ...values,\n ...i18n.options.interpolation.defaultVariables\n } : {\n ...i18n.options.interpolation.defaultVariables\n };\n }\n const interpolationOverride = values || count !== undefined ? tOptions.interpolation : {\n interpolation: {\n ...tOptions.interpolation,\n prefix: '#$?',\n suffix: '?$#'\n }\n };\n const combinedTOpts = {\n ...tOptions,\n count,\n ...values,\n ...interpolationOverride,\n defaultValue,\n ns: namespaces\n };\n const translation = key ? t(key, combinedTOpts) : defaultValue;\n if (components) {\n Object.keys(components).forEach(c => {\n const comp = components[c];\n if (typeof comp.type === 'function' || !comp.props || !comp.props.children || translation.indexOf(`${c}/>`) < 0 && translation.indexOf(`${c} />`) < 0) return;\n function Componentized() {\n return createElement(Fragment, null, comp);\n }\n components[c] = createElement(Componentized);\n });\n }\n const content = renderNodes(components || children, translation, i18n, reactI18nextOptions, combinedTOpts, shouldUnescape);\n const useAsParent = parent !== undefined ? parent : reactI18nextOptions.defaultTransParent;\n return useAsParent ? createElement(useAsParent, additionalProps, content) : content;\n}","import { useContext } from 'react';\nimport { nodesToString, Trans as TransWithoutContext } from './TransWithoutContext.js';\nimport { getI18n, I18nContext } from './context.js';\nexport { nodesToString };\nexport function Trans(_ref) {\n let {\n children,\n count,\n parent,\n i18nKey,\n context,\n tOptions = {},\n values,\n defaults,\n components,\n ns,\n i18n: i18nFromProps,\n t: tFromProps,\n shouldUnescape,\n ...additionalProps\n } = _ref;\n const {\n i18n: i18nFromContext,\n defaultNS: defaultNSFromContext\n } = useContext(I18nContext) || {};\n const i18n = i18nFromProps || i18nFromContext || getI18n();\n const t = tFromProps || i18n && i18n.t.bind(i18n);\n return TransWithoutContext({\n children,\n count,\n parent,\n i18nKey,\n context,\n tOptions,\n values,\n defaults,\n components,\n ns: ns || t && t.ns || defaultNSFromContext || i18n && i18n.options && i18n.options.defaultNS,\n i18n,\n t: tFromProps,\n shouldUnescape,\n ...additionalProps\n });\n}","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nfunction componentWillMount() {\n // Call this.constructor.gDSFP to support sub-classes.\n var state = this.constructor.getDerivedStateFromProps(this.props, this.state);\n if (state !== null && state !== undefined) {\n this.setState(state);\n }\n}\n\nfunction componentWillReceiveProps(nextProps) {\n // Call this.constructor.gDSFP to support sub-classes.\n // Use the setState() updater to ensure state isn't stale in certain edge cases.\n function updater(prevState) {\n var state = this.constructor.getDerivedStateFromProps(nextProps, prevState);\n return state !== null && state !== undefined ? state : null;\n }\n // Binding \"this\" is important for shallow renderer support.\n this.setState(updater.bind(this));\n}\n\nfunction componentWillUpdate(nextProps, nextState) {\n try {\n var prevProps = this.props;\n var prevState = this.state;\n this.props = nextProps;\n this.state = nextState;\n this.__reactInternalSnapshotFlag = true;\n this.__reactInternalSnapshot = this.getSnapshotBeforeUpdate(\n prevProps,\n prevState\n );\n } finally {\n this.props = prevProps;\n this.state = prevState;\n }\n}\n\n// React may warn about cWM/cWRP/cWU methods being deprecated.\n// Add a flag to suppress these warnings for this special case.\ncomponentWillMount.__suppressDeprecationWarning = true;\ncomponentWillReceiveProps.__suppressDeprecationWarning = true;\ncomponentWillUpdate.__suppressDeprecationWarning = true;\n\nfunction polyfill(Component) {\n var prototype = Component.prototype;\n\n if (!prototype || !prototype.isReactComponent) {\n throw new Error('Can only polyfill class components');\n }\n\n if (\n typeof Component.getDerivedStateFromProps !== 'function' &&\n typeof prototype.getSnapshotBeforeUpdate !== 'function'\n ) {\n return Component;\n }\n\n // If new component APIs are defined, \"unsafe\" lifecycles won't be called.\n // Error if any of these lifecycles are present,\n // Because they would work differently between older and newer (16.3+) versions of React.\n var foundWillMountName = null;\n var foundWillReceivePropsName = null;\n var foundWillUpdateName = null;\n if (typeof prototype.componentWillMount === 'function') {\n foundWillMountName = 'componentWillMount';\n } else if (typeof prototype.UNSAFE_componentWillMount === 'function') {\n foundWillMountName = 'UNSAFE_componentWillMount';\n }\n if (typeof prototype.componentWillReceiveProps === 'function') {\n foundWillReceivePropsName = 'componentWillReceiveProps';\n } else if (typeof prototype.UNSAFE_componentWillReceiveProps === 'function') {\n foundWillReceivePropsName = 'UNSAFE_componentWillReceiveProps';\n }\n if (typeof prototype.componentWillUpdate === 'function') {\n foundWillUpdateName = 'componentWillUpdate';\n } else if (typeof prototype.UNSAFE_componentWillUpdate === 'function') {\n foundWillUpdateName = 'UNSAFE_componentWillUpdate';\n }\n if (\n foundWillMountName !== null ||\n foundWillReceivePropsName !== null ||\n foundWillUpdateName !== null\n ) {\n var componentName = Component.displayName || Component.name;\n var newApiName =\n typeof Component.getDerivedStateFromProps === 'function'\n ? 'getDerivedStateFromProps()'\n : 'getSnapshotBeforeUpdate()';\n\n throw Error(\n 'Unsafe legacy lifecycles will not be called for components using new component APIs.\\n\\n' +\n componentName +\n ' uses ' +\n newApiName +\n ' but also contains the following legacy lifecycles:' +\n (foundWillMountName !== null ? '\\n ' + foundWillMountName : '') +\n (foundWillReceivePropsName !== null\n ? '\\n ' + foundWillReceivePropsName\n : '') +\n (foundWillUpdateName !== null ? '\\n ' + foundWillUpdateName : '') +\n '\\n\\nThe above lifecycles should be removed. Learn more about this warning here:\\n' +\n 'https://fb.me/react-async-component-lifecycle-hooks'\n );\n }\n\n // React <= 16.2 does not support static getDerivedStateFromProps.\n // As a workaround, use cWM and cWRP to invoke the new static lifecycle.\n // Newer versions of React will ignore these lifecycles if gDSFP exists.\n if (typeof Component.getDerivedStateFromProps === 'function') {\n prototype.componentWillMount = componentWillMount;\n prototype.componentWillReceiveProps = componentWillReceiveProps;\n }\n\n // React <= 16.2 does not support getSnapshotBeforeUpdate.\n // As a workaround, use cWU to invoke the new lifecycle.\n // Newer versions of React will ignore that lifecycle if gSBU exists.\n if (typeof prototype.getSnapshotBeforeUpdate === 'function') {\n if (typeof prototype.componentDidUpdate !== 'function') {\n throw new Error(\n 'Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype'\n );\n }\n\n prototype.componentWillUpdate = componentWillUpdate;\n\n var componentDidUpdate = prototype.componentDidUpdate;\n\n prototype.componentDidUpdate = function componentDidUpdatePolyfill(\n prevProps,\n prevState,\n maybeSnapshot\n ) {\n // 16.3+ will not execute our will-update method;\n // It will pass a snapshot value to did-update though.\n // Older versions will require our polyfilled will-update value.\n // We need to handle both cases, but can't just check for the presence of \"maybeSnapshot\",\n // Because for <= 15.x versions this might be a \"prevContext\" object.\n // We also can't just check \"__reactInternalSnapshot\",\n // Because get-snapshot might return a falsy value.\n // So check for the explicit __reactInternalSnapshotFlag flag to determine behavior.\n var snapshot = this.__reactInternalSnapshotFlag\n ? this.__reactInternalSnapshot\n : maybeSnapshot;\n\n componentDidUpdate.call(this, prevProps, prevState, snapshot);\n };\n }\n\n return Component;\n}\n\nexport { polyfill };\n","import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport classStyle from \"./Loader.module.scss\";\n\nexport const Loader = ({ loaderColor = \"white\", loaderSize = 35 }) => {\n const styleColor = () => {\n switch (loaderColor) {\n case \"yoom-green\":\n return \"#32cdc8\";\n case \"main-green\":\n return \"#0a6982\";\n case \"main-blue\":\n return \"#2D6295\";\n case \"white\":\n return \"#fff\";\n case \"gray\":\n return \"#7777777\";\n default:\n return loaderColor;\n }\n };\n const style = {\n width: `${Math.trunc(loaderSize / 4.2)}px`,\n height: `${Math.trunc(loaderSize / 4.2)}px`,\n };\n return (\n
\n {csvExportErrorMessage}\n
\n >\n ) : (\n <>\n{t(\"csvExporting\")}
\n >\n )}\n\n | {t(\"table.columns.name\")} | \n{t(\"table.columns.role\")} | \n\n |
---|---|---|---|
{i + 1} | \n\n {member.name} \n {member.email} \n | \n {member.role_name} | \n\n {!member.is_current_member && (\n <>\n \n
| \n
\n {\n readMore();\n }}\n >\n {t(\"readMore\")}\n \n | \n )}\n
{t(\"form.ip.label\")} | \n\n | {t(\"form.cidr.label\")} | \n{t(\"form.description.label\")} | \n\n |
---|---|---|---|---|
\n handleChange(idx, event)}\n disabled\n />\n | \n/ | \n\n handleChange(idx, event)}\n disabled\n />\n | \n\n handleChange(idx, event)}\n disabled\n />\n | \n\n | \n
\n handleChange(idx, event)}\n placeholder={t(\"form.ip.placeholder\")}\n />\n | \n/ | \n\n handleChange(idx, event)}\n placeholder={t(\"form.cidr.placeholder\")}\n />\n | \n\n handleChange(idx, event)}\n placeholder={t(\"form.description.placeholder\")}\n />\n | \n\n | \n
{t(\"changedPlanContents\")}
\n{t(\"llmModel\")}
\n{t(\"licenseCount\")}
\n{t(\"learningQuantity\")}
\n{nextSchedule?.llm_model_name}
\n{nextSchedule?.license_count}
\n\n {nextSchedule?.learning_quantity.toLocaleString()}\n {t(\"learningQuantityUnit\")}\n
\n{t(\"description\")}
\n{t(\"disconnectConfirm\")}
\n{t(\"subtitle\")}
\n