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WAAW,CAI1B3C,EAAAA,CAAgBA,CAAC2E,KAAK,CACtB3E,EAAAA,CAAgBA,CAAC4E,sBAAsB,CACvC5E,EAAAA,CAAgBA,CAAC6E,sBAAsB,CACvC7E,EAAAA,CAAgBA,CAAC8E,WAAW,CAGC9G,EAAewE,KAAK,CAAC7B,KAAK","sources":["webpack://_N_E/./node_modules/antd/es/flex/utils.js","webpack://_N_E/./node_modules/antd/es/flex/style/index.js","webpack://_N_E/./node_modules/antd/es/flex/index.js","webpack://_N_E/./src/components/appContext/AppContext.tsx","webpack://_N_E/./src/components/errorScreens/InternalErrorPageLayout.tsx","webpack://_N_E/./src/pattern-library/Typography.tsx","webpack://_N_E/./src/actions/enums.ts","webpack://_N_E/./src/components/appContext/useAppContext.ts","webpack://_N_E/./src/components/errorScreens/useRedirectToHome.ts","webpack://_N_E/./src/constants/routes.ts"],"sourcesContent":["import classNames from 'classnames';\nexport const flexWrapValues = ['wrap', 'nowrap', 'wrap-reverse'];\nexport const justifyContentValues = ['flex-start', 'flex-end', 'start', 'end', 'center', 'space-between', 'space-around', 'space-evenly', 'stretch', 'normal', 'left', 'right'];\nexport const alignItemsValues = ['center', 'start', 'end', 'flex-start', 'flex-end', 'self-start', 'self-end', 'baseline', 'normal', 'stretch'];\nconst genClsWrap = (prefixCls, props) => {\n const wrap = props.wrap === true ? 'wrap' : props.wrap;\n return {\n [`${prefixCls}-wrap-${wrap}`]: wrap && flexWrapValues.includes(wrap)\n };\n};\nconst genClsAlign = (prefixCls, props) => {\n const alignCls = {};\n alignItemsValues.forEach(cssKey => {\n alignCls[`${prefixCls}-align-${cssKey}`] = props.align === cssKey;\n });\n alignCls[`${prefixCls}-align-stretch`] = !props.align && !!props.vertical;\n return alignCls;\n};\nconst genClsJustify = (prefixCls, props) => {\n const justifyCls = {};\n justifyContentValues.forEach(cssKey => {\n justifyCls[`${prefixCls}-justify-${cssKey}`] = props.justify === cssKey;\n });\n return justifyCls;\n};\nfunction createFlexClassNames(prefixCls, props) {\n return classNames(Object.assign(Object.assign(Object.assign({}, genClsWrap(prefixCls, props)), genClsAlign(prefixCls, props)), genClsJustify(prefixCls, props)));\n}\nexport default createFlexClassNames;","import { genStyleHooks, mergeToken } from '../../theme/internal';\nimport { alignItemsValues, flexWrapValues, justifyContentValues } from '../utils';\nconst genFlexStyle = token => {\n const {\n componentCls\n } = token;\n return {\n [componentCls]: {\n display: 'flex',\n '&-vertical': {\n flexDirection: 'column'\n },\n '&-rtl': {\n direction: 'rtl'\n },\n '&:empty': {\n display: 'none'\n }\n }\n };\n};\nconst genFlexGapStyle = token => {\n const {\n componentCls\n } = token;\n return {\n [componentCls]: {\n '&-gap-small': {\n gap: token.flexGapSM\n },\n '&-gap-middle': {\n gap: token.flexGap\n },\n '&-gap-large': {\n gap: token.flexGapLG\n }\n }\n };\n};\nconst genFlexWrapStyle = token => {\n const {\n componentCls\n } = token;\n const wrapStyle = {};\n flexWrapValues.forEach(value => {\n wrapStyle[`${componentCls}-wrap-${value}`] = {\n flexWrap: value\n };\n });\n return wrapStyle;\n};\nconst genAlignItemsStyle = token => {\n const {\n componentCls\n } = token;\n const alignStyle = {};\n alignItemsValues.forEach(value => {\n alignStyle[`${componentCls}-align-${value}`] = {\n alignItems: value\n };\n });\n return alignStyle;\n};\nconst genJustifyContentStyle = token => {\n const {\n componentCls\n } = token;\n const justifyStyle = {};\n justifyContentValues.forEach(value => {\n justifyStyle[`${componentCls}-justify-${value}`] = {\n justifyContent: value\n };\n });\n return justifyStyle;\n};\nexport const prepareComponentToken = () => ({});\nexport default genStyleHooks('Flex', token => {\n const {\n paddingXS,\n padding,\n paddingLG\n } = token;\n const flexToken = mergeToken(token, {\n flexGapSM: paddingXS,\n flexGap: padding,\n flexGapLG: paddingLG\n });\n return [genFlexStyle(flexToken), genFlexGapStyle(flexToken), genFlexWrapStyle(flexToken), genAlignItemsStyle(flexToken), genJustifyContentStyle(flexToken)];\n}, prepareComponentToken, {\n // Flex component don't apply extra font style\n // https://github.com/ant-design/ant-design/issues/46403\n resetStyle: false\n});","\"use client\";\n\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 React from 'react';\nimport classNames from 'classnames';\nimport omit from \"rc-util/es/omit\";\nimport { isPresetSize } from '../_util/gapSize';\nimport { ConfigContext } from '../config-provider';\nimport useStyle from './style';\nimport createFlexClassNames from './utils';\nconst Flex = /*#__PURE__*/React.forwardRef((props, ref) => {\n const {\n prefixCls: customizePrefixCls,\n rootClassName,\n className,\n style,\n flex,\n gap,\n children,\n vertical = false,\n component: Component = 'div'\n } = props,\n othersProps = __rest(props, [\"prefixCls\", \"rootClassName\", \"className\", \"style\", \"flex\", \"gap\", \"children\", \"vertical\", \"component\"]);\n const {\n flex: ctxFlex,\n direction: ctxDirection,\n getPrefixCls\n } = React.useContext(ConfigContext);\n const prefixCls = getPrefixCls('flex', customizePrefixCls);\n const [wrapCSSVar, hashId, cssVarCls] = useStyle(prefixCls);\n const mergedVertical = vertical !== null && vertical !== void 0 ? vertical : ctxFlex === null || ctxFlex === void 0 ? void 0 : ctxFlex.vertical;\n const mergedCls = classNames(className, rootClassName, ctxFlex === null || ctxFlex === void 0 ? void 0 : ctxFlex.className, prefixCls, hashId, cssVarCls, createFlexClassNames(prefixCls, props), {\n [`${prefixCls}-rtl`]: ctxDirection === 'rtl',\n [`${prefixCls}-gap-${gap}`]: isPresetSize(gap),\n [`${prefixCls}-vertical`]: mergedVertical\n });\n const mergedStyle = Object.assign(Object.assign({}, ctxFlex === null || ctxFlex === void 0 ? void 0 : ctxFlex.style), style);\n if (flex) {\n mergedStyle.flex = flex;\n }\n if (gap && !isPresetSize(gap)) {\n mergedStyle.gap = gap;\n }\n return wrapCSSVar( /*#__PURE__*/React.createElement(Component, Object.assign({\n ref: ref,\n className: mergedCls,\n style: mergedStyle\n }, omit(othersProps, ['justify', 'wrap', 'align'])), children));\n});\nif (process.env.NODE_ENV !== 'production') {\n Flex.displayName = 'Flex';\n}\nexport default Flex;","\"use client\";\n\nimport React, { createContext, Dispatch } from \"react\";\nimport { AppContextType } from \"./types\";\ninterface AppContextProps {\n ctx: AppContextType;\n setContext: Dispatch>;\n}\nexport const AppContext = createContext(undefined);","\"use client\";\n\nimport { supplierRoutes } from \"@/src/constants/routes\";\nimport { Flex } from \"@/src/pattern-library/Flex\";\nimport { Title, Text } from \"@/src/pattern-library/Typography\";\nimport { theme } from \"@/src/pattern-library/theme\";\nimport Link from \"next/link\";\nimport Image from \"next/image\";\nimport { useRedirectToHome } from \"./useRedirectToHome\";\nconst HEADER_HEIGHT = 64;\nexport function InternalErrorPageLayout({\n title,\n description\n}: {\n title: string;\n description: string;\n}) {\n const {\n token: {\n sizeXS,\n colorBorderSecondary\n }\n } = theme.useToken();\n useRedirectToHome();\n return
\n \n \n \"Trustana\n \n \n \n \n {title}\n \n {description}\n \n
;\n}","\"use client\";\n\nimport { Typography, theme } from \"antd\";\nimport { TextProps } from \"antd/es/typography/Text\";\nimport { CSSProperties } from \"react\";\nimport Title from \"antd/es/typography/Title\";\nconst {\n Paragraph,\n Link\n} = Typography;\ntype Size = \"XL\" | \"LG\" | \"MD\" | \"SM\" | \"XS\";\ntype Variant = \"default\" | \"description\";\ninterface TextSizeProps extends TextProps {\n children: React.ReactNode;\n size?: Size;\n variant?: Variant;\n}\nexport const Text = ({\n size = \"MD\",\n variant = \"default\",\n children,\n ...props\n}: TextSizeProps) => {\n const {\n token: {\n fontSizeSM,\n lineHeightSM,\n fontSizeLG,\n lineHeightLG,\n fontSizeXL,\n colorTextDescription\n }\n } = theme.useToken();\n const sizeStyle: Record = {\n XL: {\n fontSize: fontSizeXL,\n lineHeight: lineHeightLG\n },\n LG: {\n fontSize: fontSizeLG,\n lineHeight: lineHeightLG\n },\n MD: {},\n SM: {\n fontSize: fontSizeSM,\n lineHeight: lineHeightSM\n },\n XS: {\n fontSize: 10,\n lineHeight: lineHeightSM\n }\n };\n const variantStyle: Record = {\n default: {},\n description: {\n color: colorTextDescription\n }\n };\n return \n {children}\n ;\n};\nexport { Paragraph, Link, Title };","export enum ServerActionName {\n // Account\n CreateUserAccounts = \"createUserAccounts\",\n DeleteUser = \"deleteUser\",\n GetUserById = \"getUserById\",\n ListUserAccount = \"listUserAccount\",\n SendUserVerification = \"sendUserVerification\",\n UpdateUserAccount = \"updateUserAccount\",\n GetSupplierConfig = \"getSupplierConfig\",\n\n // Attribute\n AddLibraryAttribute = \"addLibraryAttribute\",\n BulkUpsertCategoryToAttributes = \"bulkUpsertCategoryToAttributes\",\n CreateCustomAttribute = \"createCustomAttribute\",\n DeleteAttribute = \"deleteAttribute\",\n GetAttributeInUseCount = \"getAttributeInUseCount\",\n GetLibraryAttributes = \"getLibraryAttributes\",\n GetSupplierAttributeList = \"getSupplierAttributeList\",\n UpdateAttribute = \"updateAttribute\",\n GetAttributesForEnrichment = \"getAttributesForEnrichment\",\n\n // Authentication\n Login = \"login\",\n ResendVerificationLink = \"resendVerificationLink\",\n SendResetPasswordEmail = \"sendResetPasswordEmail\",\n SetPassword = \"setPassword\",\n UpdateEmailAddress = \"updateEmailAddress\",\n UpdatePassword = \"updatePassword\",\n VerifyEmailAddress = \"verifyEmailAddress\",\n\n // Channel\n GetChannelCategories = \"getChannelCategories\",\n GetChannelConfigurationList = \"getChannelConfigurationList\",\n GetChannelList = \"getChannelList\",\n UpdateChannelSettings = \"updateChannelSettings\",\n UpdateProductChannels = \"updateProductChannels\",\n\n // Common\n GetCurrencyList = \"getCurrencyList\",\n GetGoogleCategoriesList = \"getGoogleCategoriesList\",\n GetLocaleCountries = \"getLocaleCountries\",\n\n // Category Tree\n GetTaxonomyTree = \"getTaxonomyTree\",\n GetTaxonomyTreeNode = \"getTaxonomyTreeNode\",\n UpdateTaxonomyTreeNode = \"updateTaxonomyTreeNode\",\n GetTaxonomyTreeMaxDepth = \"getTaxonomyTreeMaxDepth\",\n\n // DAM\n CreateDamTask = \"createDamTask\",\n GetDamList = \"getDamList\",\n GetDamTaskList = \"getDamTaskList\",\n GetFileDetail = \"getFileDetail\",\n\n // Enrichment\n ApproveEnrichImages = \"approveEnrichImages\",\n CancelEnrichImageTasks = \"cancelEnrichImageTasks\",\n GetEnrichImagesReviewProducts = \"getEnrichImagesReviewProducts\",\n GetEnrichmentStatus = \"getEnrichmentStatus\",\n GetEnrichmentTaskList = \"getEnrichmentTaskList\",\n StartEnrichment = \"startEnrichment\",\n\n // Chat\n CreateEnrichmentReview = \"createEnrichmentReview\",\n GetEnrichmentReviewDetail = \"getEnrichmentReviewDetail\",\n CreateAiProductSearch = \"createAiProductSearch\",\n GetAiProductSearchDetail = \"getAiProductSearchDetail\",\n CreateImageOcr = \"createImageOcr\",\n GetImageOcrDetail = \"getImageOcrDetail\",\n\n // Export\n CreateExportTemplate = \"createExportTemplate\",\n CreateExportTask = \"createExportTask\",\n DeleteExportTemplate = \"deleteExportTemplate\",\n DuplicateExportTemplate = \"duplicateExportTemplate\",\n GetAvailableFixedExportTemplateList = \"getAvailableFixedExportTemplateList\",\n GetAvailableCustomExportTemplateList = \"getAvailableCustomExportTemplateList\",\n GetCustomTemplate = \"getCustomTemplate\",\n GetCustomTemplateList = \"getCustomTemplateList\",\n GetExportTask = \"getExportTask\",\n GetExportTaskList = \"getExportTaskList\",\n UpdateCustomTemplate = \"updateCustomTemplate\",\n CreateExportImageTask = \"createExportImageTask\",\n\n // Feature\n GetFeatureToggles = \"getFeatureToggles\",\n SetFeatureToggle = \"setFeatureToggle\",\n\n // File\n DeleteFiles = \"deleteFiles\",\n GetFilesList = \"getFilesList\",\n RetrieveDownloadUrl = \"retrieveDownloadUrl\",\n UploadFileFromUrl = \"uploadFileFromUrl\",\n ReferenceFileToProduct = \"referenceFileToProduct\",\n\n // Localization\n CreateLocalizationTask = \"createLocalizationTask\",\n CreateBatchLocalizationTask = \"createBatchLocalizationTask\",\n GetLocalizationTaskList = \"getLocalizationTaskList\",\n GetMasterProductLocalizationStatus = \"getMasterProductLocalizationStatus\",\n\n // Product\n AddFileToGallery = \"addFileToGallery\",\n CreateProduct = \"createProduct\",\n CreateVariantProduct = \"createVariantProduct\",\n DeleteProduct = \"deleteProduct\",\n DuplicateProduct = \"duplicateProduct\",\n GetVariantDisplayAttributes = \"getVariantDisplayAttributes\",\n GetBasicProduct = \"getBasicProduct\",\n GetCreateProductTemplate = \"getCreateProductTemplate\",\n GetProduct = \"getProduct\",\n GetProductList = \"getProductList\",\n GetProductListCount = \"getProductListCount\",\n GetVariantProducts = \"getVariantProducts\",\n InitializeExportAuditLog = \"initializeExportAuditLog\",\n RemoveFileFromGalleryAction = \"removeFileFromGalleryAction\",\n UpdateAttributeBlame = \"updateAttributeBlame\",\n UpdateProduct = \"updateProduct\",\n DeleteFileAndProductReferences = \"deleteFileAndProductReferences\",\n GetEnrichedAttributesSources = \"getEnrichedAttributeSources\",\n GetEnrichedAttributesSourcesCount = \"getEnrichedAttributeSourcesCount\",\n GetProductEnrichmentStatus = \"getProductEnrichmentStatus\",\n RelinkVariants = \"relinkVariants\",\n // Feedback\n CreateEnrichmentFeedback = \"createEnrichmentFeedback\",\n UpdateEnrichmentFeedback = \"updateEnrichmentFeedback\",\n GetLatestEnrichmentFeedback = \"getLatestEnrichmentFeedback\",\n\n // Smart Upload\n ArchiveTask = \"archiveTask\",\n FieldMapping = \"fieldMapping\",\n GenerateS3Url = \"generateS3Url\",\n GetActiveTasks = \"getActiveTasks\",\n ImportTasks = \"importTasks\",\n ListAttributes = \"listAttributes\",\n}\n","\"use client\";\n\nimport { useContext } from \"react\";\nimport { AppContext } from \"./AppContext\";\n\nexport default function useAppContext() {\n const context = useContext(AppContext);\n if (context === undefined) {\n throw new Error(\"useAppContext must be used within AppProvider\");\n }\n return context;\n}\n","\"use client\";\n\nimport { supplierRoutes } from \"@/src/constants/routes\";\nimport { useRouter } from \"next/navigation\";\nimport { useEffect } from \"react\";\n\nconst REDIRECT_HOME_TIMEOUT = 10000;\n\nexport function useRedirectToHome() {\n const router = useRouter();\n\n useEffect(() => {\n setTimeout(() => {\n router.push(supplierRoutes.root);\n }, REDIRECT_HOME_TIMEOUT);\n }, []);\n}\n","import { ServerActionName } from \"../actions/enums\";\n\nexport const supplierRoutes = {\n root: \"/\",\n home: \"/home\",\n products: {\n index: \"/product\",\n upload: \"/product/upload\",\n edit: {\n index: \"/product/edit\",\n id: (id: string) => `/product/edit/${id}`,\n },\n view: (id: string) => `/product/${id}`,\n create: \"/product/create\",\n },\n dam: {\n tools: {\n index: \"/dam/tools\",\n imageResizer: \"/dam/tools/image-resizer\",\n imageUpscaler: \"/dam/tools/image-upscaler\",\n watermarkRemoval: \"/dam/tools/watermark-removal\",\n backgroundGenerator: \"/dam/tools/ai-generate-background\",\n backgroundRemover: \"/dam/tools/background-remover\",\n attributesGenerator: \"/dam/tools/attributes-generator\",\n },\n library: {\n index: \"/dam/image-library\",\n },\n task: { index: \"/dam/task\" },\n image: {\n view: (id: string) => `/dam/image/${id}/view`,\n },\n },\n localization: {\n index: \"/localization\",\n task: \"/localization/task\",\n edit: {\n index: \"/localization/edit\",\n id: (id: string) => `/localization/edit/${id}`,\n },\n view: (id: string) => `/localization/${id}`,\n create: \"/localization/create\",\n },\n enrichment: {\n create: \"/enrichment/create\",\n index: \"/enrichment\",\n imageReview: \"/enrichment/image-review\",\n },\n distribution: {\n index: \"/distribution\",\n },\n companyProfile: {\n index: \"/company-profile\",\n edit: \"/company-profile/edit\",\n },\n accountManagement: {\n index: \"/account-management\",\n id: (id: string) => `/account-management/${id}`,\n },\n catalog: {\n index: \"/catalog\",\n create: \"/catalog/create\",\n edit: (id: string) => `/catalog/edit/${id}`,\n editIndex: \"/catalog/edit/[id]\",\n addProducts: (id: string) => `/catalog/edit/${id}?tab=product-selection`,\n },\n variant: {\n edit: (id: string) => `/variant/edit/${id}`,\n },\n saleOpportunity: {\n index: \"/sale-opportunity\",\n subscribe: \"/sale-opportunity/subscribe\",\n },\n gettingStarted: {\n index: \"/product\",\n },\n login: {\n index: \"/login\",\n forgotPassword: \"/login/forgot-password\",\n terms: \"/terms\",\n },\n verifyEmail: \"/update-email\",\n logout: \"/logout\",\n export: {\n templates: {\n index: \"/export/templates\",\n create: \"/export/templates/create\",\n edit: (templateId: string) => `/export/templates/${templateId}`,\n },\n settings: \"/export/settings\",\n history: \"/export/history\",\n },\n settings: {\n index: \"/settings\",\n updateEmail: \"/settings/edit/email\",\n updatePassword: \"/settings/edit/password\",\n apiKey: \"/settings/api-key\",\n },\n quotationRequests: {\n index: \"/enquiry\",\n view: (id: string) => `/enquiry/${id}`,\n },\n attribute: {\n index: \"/attributes\",\n add: \"/attributes/add\",\n },\n channels: {\n index: \"/export/channels\",\n settings: (settings: string, channel: string) =>\n `/export/channels/${settings}/${channel}`,\n },\n category: {\n index: \"/category\",\n attribute: (categoryId: string) => `/category/${categoryId}/attributes`,\n },\n smartUpload: {\n upload: \"/smart-upload/upload-file\",\n setHeader: (taskId: string) => `/smart-upload/set-header/${taskId}`,\n mapFields: (taskId: string) => `/smart-upload/map-fields/${taskId}`,\n setData: (taskId: string) => `/smart-upload/set-data/${taskId}`,\n confirm: (taskId: string) => `/smart-upload/confirm/${taskId}`,\n pending: (taskId: string) => `/smart-upload/pending/${taskId}`,\n uploadImages: `/smart-upload/upload-images`,\n },\n template: {\n download: \"/template/download\",\n },\n featureToggles: \"/feature\",\n helpCenter: \"https://help.trustana.com/en/\",\n support: \"https://www.trustana.com/support\",\n bookDemo: \"https://www.trustana.com/book-demo\",\n privacyAndTerms: \"https://www.trustana.com/privacy-and-terms\",\n};\n\nexport const BASE_BACKEND_RESTFUL_URL = `${process.env.NEXT_PUBLIC_BACKEND_URL}/restful/v1`;\n\nexport const ACCESS_CONTROL_REDIRECT_URL = supplierRoutes.bookDemo;\n\nexport const BASE_FILE_UPLOAD_RESTFUL_URL = `${process.env.NEXT_PUBLIC_FILE_BACKEND_URL}/files`;\n\nexport const PUBLIC_FUNCTION_URL = process.env.NEXT_PUBLIC_FUNCTION_URL;\n\nexport const NON_AUTHENTICATED_PREFIXES = [\n supplierRoutes.login.index,\n supplierRoutes.logout,\n supplierRoutes.featureToggles,\n supplierRoutes.verifyEmail,\n];\n\nexport const NON_AUTHENTICATED_ACTIONS = [\n ServerActionName.Login,\n ServerActionName.ResendVerificationLink,\n ServerActionName.SendResetPasswordEmail,\n ServerActionName.SetPassword,\n];\n\nexport const LOGIN_PREFIXES = [supplierRoutes.login.index];\n"],"names":["flexWrapValues","justifyContentValues","alignItemsValues","genClsWrap","prefixCls","props","wrap","concat","includes","genClsAlign","alignCls","forEach","cssKey","align","vertical","genClsJustify","justifyCls","justify","genFlexStyle","token","componentCls","display","flexDirection","direction","genFlexGapStyle","gap","flexGapSM","flexGap","flexGapLG","genFlexWrapStyle","wrapStyle","value","flexWrap","genAlignItemsStyle","alignStyle","alignItems","genJustifyContentStyle","justifyStyle","justifyContent","flex_style","genStyleHooks","paddingXS","padding","paddingLG","flexToken","mergeToken","resetStyle","__rest","s","e","t","p","Object","prototype","hasOwnProperty","call","indexOf","getOwnPropertySymbols","i","length","propertyIsEnumerable","flex","React","ref","customizePrefixCls","rootClassName","className","style","children","component","Component","othersProps","ctxFlex","ctxDirection","getPrefixCls","ConfigContext","wrapCSSVar","hashId","cssVarCls","useStyle","mergedVertical","mergedCls","classNames","assign","isPresetSize","mergedStyle","omit","AppContext","createContext","undefined","InternalErrorPageLayout","param","title","description","sizeXS","colorBorderSecondary","theme","useToken","useRedirectToHome","react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__","jsxs","div","data-sentry-component","data-sentry-source-file","jsx","Flex","height","background","borderBottom","data-sentry-element","Link","href","supplierRoutes","root","Image","src","alt","width","top","Title","margin","level","Text","size","Paragraph","Typography","variant","fontSizeSM","lineHeightSM","fontSizeLG","lineHeightLG","fontSizeXL","colorTextDescription","sizeStyle","XL","fontSize","lineHeight","LG","MD","SM","XS","variantStyle","default","color","ServerActionName","useAppContext","context","useContext","router","useRouter","useEffect","setTimeout","push","home","products","index","upload","edit","id","view","create","dam","tools","imageResizer","imageUpscaler","watermarkRemoval","backgroundGenerator","backgroundRemover","attributesGenerator","library","task","image","localization","enrichment","imageReview","distribution","companyProfile","accountManagement","catalog","editIndex","addProducts","saleOpportunity","subscribe","gettingStarted","login","forgotPassword","terms","verifyEmail","logout","export","templates","templateId","settings","history","updateEmail","updatePassword","apiKey","quotationRequests","attribute","add","channels","channel","category","categoryId","smartUpload","setHeader","taskId","mapFields","setData","confirm","pending","uploadImages","template","download","featureToggles","helpCenter","support","bookDemo","privacyAndTerms","Login","ResendVerificationLink","SendResetPasswordEmail","SetPassword"],"sourceRoot":""}