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AA4Bf,EAAGC,GACtC,GAAID,EAAG,CACL,GAAI,iBAAmBA,EAAG,OAAO,OAAiBA,EAAGC,GACrD,IAAII,EAAI,CAAC,EAAE7pB,SAASslB,KAAKkE,GAAG7iB,MAAM,GAAI,GACtC,MAAO,WAAakjB,GAAKL,EAAEgB,cAAgBX,EAAIL,EAAEgB,YAAYxM,MAAO,QAAU6L,GAAK,QAAUA,EAAIzqB,MAAMqrB,KAAKjB,GAAK,cAAgBK,GAAK,2CAA2Ca,KAAKb,IAAK,OAAiBL,EAAGC,QAAK,CACtN,CACF,C","sources":["webpack:///./src/AddToCartButtonV2/commonFunction.ts","webpack:///./src/AddToQuote/internal/atom.ts","webpack:///./src/AddToQuote/internal/parseJSON.ts","webpack:///./src/AddToQuote/internal/TSProduct.utils.ts","webpack:///./src/AddToQuote/internal/CloudProduct.utils.ts","webpack:///./src/AddToQuote/hooks/use-add-to-quote.ts","webpack:///./src/hooks/use-quote-product-information.ts","webpack:///./src/hooks/use-add-quote-line-items.ts","webpack:///./src/AddToQuote/hooks/use-get-quote-summary.ts","webpack:///./src/AddToQuoteToast/AddToQuoteToast.tsx","webpack:///./src/AddToQuote/types/Button.type.ts","webpack:///./src/AddToQuote/TSAddToQuoteButton.tsx","webpack:///./src/AddToQuote/CloudAddToQuoteButton.tsx","webpack:///./src/CloudAddToCartButton/common/commonFunctions.ts","webpack:///./src/CloudAddToCartButton/internal/ValidationPopup.tsx","webpack:///./node_modules/@im/ui-lib/zenith/LoadingIndicator/LoadingIndicator.js","webpack:///./node_modules/@im/ui-lib/zenith/Toast/Toast.js","webpack:///./node_modules/@im/ui-lib/zenith/responsive/responsive.hooks.js","webpack:///./node_modules/@im/ui-lib/zenith/utils/useConvertToMobile.js","webpack:///./node_modules/@mui/icons-material/utils/createSvgIcon.js","webpack:///./node_modules/@mui/material/internal/svg-icons/SuccessOutlined.js","webpack:///./node_modules/@mui/material/internal/svg-icons/ReportProblemOutlined.js","webpack:///./node_modules/@mui/material/internal/svg-icons/ErrorOutline.js","webpack:///./node_modules/@mui/material/internal/svg-icons/InfoOutlined.js","webpack:///./node_modules/@mui/material/Alert/Alert.js","webpack:///./node_modules/@mui/material/Alert/alertClasses.js","webpack:///./node_modules/@mui/material/Divider/Divider.js","webpack:///./node_modules/@mui/material/Divider/dividerClasses.js","webpack:///./node_modules/@mui/material/SvgIcon/SvgIcon.js","webpack:///./node_modules/@mui/material/SvgIcon/svgIconClasses.js","webpack:///./node_modules/@mui/material/internal/svg-icons/Close.js","webpack:///./node_modules/@mui/material/node_modules/@mui/system/esm/useMediaQuery/useMediaQuery.js","webpack:///./node_modules/@mui/material/utils/createSvgIcon.js","webpack:///./node_modules/@mui/material/utils/useSlot.js","webpack:///./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js","webpack:///./node_modules/@babel/runtime/helpers/esm/slicedToArray.js","webpack:///./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js","webpack:///./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js","webpack:///./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js","webpack:///./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js"],"sourcesContent":["import { ObjectMap } from 'mf_core/query';\nimport { ButtonProps } from '@im/ui-lib/zenith/Button';\n\nexport function getWidthOfButton(\n buttonStyles?: ObjectMap,\n buttonProps?: ButtonProps\n) {\n if (buttonStyles?.width) return buttonStyles?.width;\n else if (buttonProps?.fullWidth) return buttonProps?.fullWidth;\n else return 'fit-content';\n}\n\nexport function getRecommendationRecordId(\n recommendationRecordId?: string,\n placementId?: string\n) {\n if (recommendationRecordId !== '' && placementId !== '')\n return `${placementId}||${recommendationRecordId ?? ''}`;\n else if (recommendationRecordId === '' && placementId !== '')\n return `${placementId}||Recommendation Id Not Available`;\n else return '';\n}\n","import { atom } from 'recoil';\n\nexport const DEFAULT_QUOTE_INFO = {\n branchNumber: '',\n endUserInformation: '',\n quoteGuid: '',\n quoteLinesItems: [],\n quoteNumber: '',\n};\n\nexport interface QuoteInformationAtom {\n branchNumber: string;\n endUserInformation: string;\n quoteGuid: string;\n quoteLinesItems: any[];\n quoteNumber: string;\n}\n\nexport const quoteInformationAtom = atom({\n default: DEFAULT_QUOTE_INFO,\n key: 'quoteInformationAtom',\n});\n","export const parseJSON = (input: string | null, fallback = '') => {\n if (input) {\n try {\n return JSON.parse(input);\n } catch (e) {\n return fallback;\n }\n } else {\n return fallback;\n }\n};\n","import { QuoteProductItem } from '../../interfaces';\nimport { parseJSON } from './parseJSON';\n\nimport { PricingEndUserInfo, Bundle } from '../../interfaces/QuoteItem.types';\nimport { QuoteInformationAtom } from './atom';\n\nexport const generateProductInformationPayload = (\n product?: QuoteProductItem | null,\n branchNumber?: string\n) => {\n const productItems: any = [];\n\n if (!product) {\n return productItems;\n }\n\n if (product.skuVpnNumber) {\n productItems.push({\n branchNumber: branchNumber,\n quantity: Number(product.quantity),\n skuVpnNumber: product.skuVpnNumber.trim(),\n });\n } else if (product.bundleSkus && product.bundleSkus.length > 0) {\n product.bundleSkus.forEach((sku: string) => {\n const bundleSkuQuantity = getSkuQuantity(sku, product.bundle);\n productItems.push({\n branchNumber: branchNumber,\n isKitComponent: true,\n quantity: bundleSkuQuantity,\n skuVpnNumber: sku?.slice(-7),\n });\n });\n }\n return productItems;\n};\n\nexport const generateProductLines = (\n products?: QuoteProductItem[],\n validSkuArray?: any[]\n) => {\n const quoteDetails: any = localStorage.getItem('entire_quote_values');\n const profitPriceData: any = JSON.parse(quoteDetails);\n const editQuotelineItems: any[] = [];\n\n if (!products) {\n return null;\n }\n\n products?.forEach((product) => {\n const filteredProducts = validSkuArray?.filter((validSku: any) => {\n const skuVPNNumber = product?.skuVpnNumber.toUpperCase().trim();\n return (\n skuVPNNumber === validSku?.productDetails[0]?.ingramPartNumber ||\n skuVPNNumber === validSku?.vendorPartNumber\n );\n });\n const bundleSkus: any[] = [];\n product?.bundleSkus?.forEach((bundleSKU: string) => {\n const sku = bundleSKU.slice(-7);\n validSkuArray?.forEach((validSku: any) => {\n const skuVPNNumber = sku.toUpperCase().trim();\n if (\n skuVPNNumber === validSku?.productDetails[0]?.ingramPartNumber ||\n skuVPNNumber === validSku?.vendorPartNumber\n ) {\n bundleSkus.push(validSku);\n }\n });\n });\n if (filteredProducts && filteredProducts.length > 0) {\n filteredProducts.forEach((element: any) => {\n editQuotelineItems.push({\n discountResponse: product?.discountResponse ?? null,\n duplicateselected: true,\n globalpartnumber: element?.productDetails[0]?.globalpartnumber,\n harmonizedCode: element?.productDetails[0]?.harmonizedCode,\n imageurl: element?.productDetails[0]?.productImage,\n isParentItem: bundleSkus?.length > 0,\n lineId: '',\n longdescription: element?.productDetails[0]?.longDescription,\n markUp: profitPriceData?.markupValue\n ? profitPriceData?.markupValue\n : '',\n markUpUnit: profitPriceData?.markupUnit\n ? profitPriceData?.markupUnit\n : '',\n quantity: product?.quantity?.toString(),\n shortDescription: element?.productDetails[0]?.shortDescription,\n skuvpn: element?.productDetails[0]?.ingramPartNumber,\n vendorNumber: element?.productDetails[0]?.vendorNumber,\n vpn: element?.productDetails[0]?.vendorPartNumber,\n });\n });\n const bundleQuantity: any =\n localStorage.getItem('bundleQuantity') || null;\n const newBundleRes = JSON.parse(bundleQuantity);\n bundleSkus.forEach((element: any) => {\n const bundleSkuQuantity = getSkuQuantity(\n newBundleRes,\n element?.productDetails[0]?.ingramPartNumber\n );\n editQuotelineItems.push({\n discountResponse: product?.discountResponse ?? null,\n duplicateselected: true,\n globalpartnumber: element?.productDetails[0]?.globalpartnumber,\n harmonizedCode: element?.productDetails[0]?.harmonizedCode,\n imageurl: element?.productDetails[0]?.productImage,\n isChildItem: true,\n lineId: '',\n longdescription: element?.productDetails[0]?.longDescription,\n markUp: profitPriceData?.markupValue\n ? profitPriceData?.markupValue\n : '',\n markUpUnit: profitPriceData?.markupUnit\n ? profitPriceData?.markupUnit\n : '',\n parentProduct: product?.skuVpnNumber,\n quantity: bundleSkuQuantity?.toString() || '1',\n shortDescription: element?.productDetails[0]?.shortDescription,\n skuvpn: element?.productDetails[0]?.ingramPartNumber,\n vendorNumber: element?.productDetails[0]?.vendorNumber,\n vpn: element?.productDetails[0]?.vendorPartNumber,\n });\n });\n }\n });\n\n return editQuotelineItems;\n};\n\nexport const generateQuoteLinesPayload = (\n quoteLines: any,\n requestType: string,\n quoteInfo: QuoteInformationAtom\n) => {\n const { branchNumber, quoteGuid, quoteNumber } = quoteInfo;\n const pricingDetails: any = localStorage.getItem('priceFilterOpt');\n const endUserString = localStorage.getItem(`endUserData:${quoteNumber}`);\n const endUserData = parseJSON(endUserString, '');\n\n const type = endUserData?.IndustrySegmentation;\n const endUserInformation = getPricingEndUserInfo(quoteNumber);\n const attValue = endUserAttIndustrySegmentation(type);\n let parameter = '';\n\n if (!pricingDetails) {\n parameter = attValue;\n } else if (pricingDetails && pricingDetails !== 'myPrice') {\n parameter = pricingDetails;\n }\n\n const quoteLinePayload: any = {\n action: requestType,\n attributeName: 'governmentprogramcode',\n attributeValue: parameter,\n branchNumber: branchNumber,\n cmptoken: '',\n discount: '',\n endUserInformation: endUserInformation,\n entire_markUp: '',\n entire_markUpUnit: '',\n isChangeTax: true,\n isEUEnabled: '',\n lineProfitSeleced: '',\n profitValue: '',\n quoteguid: quoteGuid,\n quotenumber: quoteNumber,\n shipping: '',\n tax: '',\n };\n if (requestType === 'Updatequantity') {\n quoteLinePayload.QuoteLinesItems = quoteLines;\n quoteLinePayload.action = requestType;\n } else {\n quoteLinePayload.quotelinesitems = quoteLines;\n }\n return quoteLinePayload;\n};\n\nexport const endUserAttIndustrySegmentation = (type?: string) => {\n let attValue = '';\n if (type === 'E') {\n attValue = 'PAE';\n } else if (type === 'F') {\n attValue = 'PAF';\n } else if (type === 'H') {\n attValue = 'EDH';\n } else if (type === 'K') {\n attValue = 'EDK';\n } else if (type === 'S') {\n attValue = 'PAS';\n }\n return attValue;\n};\n\nexport const getPricingEndUserInfo = (\n quoteNumber: string\n): PricingEndUserInfo | null => {\n if (!quoteNumber) return null;\n\n const endUserString = localStorage.getItem(`endUserData:${quoteNumber}`);\n const endUserLocalData: any = parseJSON(endUserString, '');\n\n if (!endUserLocalData) return null;\n\n const {\n AddressSequenceId,\n CmpAppUuid,\n ContactId,\n EndUserAcopId,\n IngramEndUserId,\n } = endUserLocalData;\n\n const endUserObj: PricingEndUserInfo = {\n CmpAppUuid: CmpAppUuid,\n endUserAcopId: EndUserAcopId,\n endUserAddressSeqId: AddressSequenceId,\n endUserContactId: ContactId,\n ingramEndUserId: IngramEndUserId,\n };\n\n return Object.values(endUserObj).some((value) => value) ? endUserObj : null;\n};\n\nexport const getSkuQuantity = (sku: string, bundledSkus?: Bundle[]) => {\n let bundleSkuQuantity = 1;\n if (\n bundledSkus &&\n Array.isArray(bundledSkus) &&\n bundledSkus?.length > 0 &&\n sku\n ) {\n const currentBundleSku = bundledSkus?.find(\n (bSku: Bundle) => bSku.bundledSku === sku\n );\n bundleSkuQuantity = currentBundleSku?.quantity ?? 1;\n }\n return bundleSkuQuantity;\n};\n\nexport function getRevisionNumber(quoteIdVal: string) {\n let revision;\n if (quoteIdVal !== null && quoteIdVal !== undefined) {\n const splitRevision = quoteIdVal.toString()?.split('_');\n if (splitRevision?.length > 1) {\n revision = splitRevision[1];\n } else {\n revision = '0';\n }\n }\n return revision;\n}\n","import {\n ProductSummaryTO,\n ResourceFees,\n SelectedOptionsTO,\n SubscriptionPlanTO,\n} from '../../CloudAddToCartButton/common/types';\nimport { Periods } from '../../interfaces/QuoteItem.types';\n\nfunction getSubscriptionOptions(\n allOptions: ProductSummaryTO[],\n selectedOptions: SelectedOptionsTO[]\n) {\n const response = selectedOptions.map((selectedOption) => {\n const option = allOptions?.find(\n (opt: any) =>\n opt.subscriptionOption?.resourceApsId ===\n selectedOption.option?.resourceApsId\n );\n if (!option) {\n return null;\n }\n const subscriptionOption = option?.subscriptionOption;\n const subscriptionOptionResource = subscriptionOption?.resources?.find(\n (resource) => resource.resourceId === selectedOption.option?.resourceApsId\n );\n const optionFees = subscriptionOptionResource?.fees?.map((fee) => {\n const newFee: ResourceFees = {\n code: fee.code,\n msrp: fee.msrp ? parseFloat(fee.msrp.toString()) : 0,\n price: fee.price ? parseFloat(fee.price.toString()) : 0,\n type: fee.type,\n };\n return newFee;\n });\n\n const recurringPriceModel = subscriptionOption?.setupFees\n ? 'FLAT - SETUP FEES'\n : subscriptionOptionResource?.recurringpricemodel;\n const recurringTiers = subscriptionOptionResource?.recurringTiers || [];\n const subscription = subscriptionOption?.parentSubscriptionPlan;\n return {\n billingPeriods: {\n Duration: subscription?.billingPeriod,\n unit: subscription?.billingPeriodUnit,\n } as Periods,\n duplicateselected: false,\n fees: optionFees || [],\n finSystemProfile: '0',\n harmonizedCode: option?.harmonizedCode,\n imageUrl:\n subscriptionOption?.parentSubscriptionPlan?.subscriptionGroupImage,\n isCloudProduct: true,\n lineId: '',\n longdescription:\n subscriptionOption?.description || subscriptionOption?.title,\n markUp: null,\n markUpUnit: null,\n planApsid: subscription?.planApsID,\n planId: subscription?.planId,\n planName: subscription?.title,\n pricingSource: subscriptionOption?.pricingSource,\n quantity: option.subscriptionOption?.minUnits?.toString(),\n recurringPriceModel,\n remainingQuantity: 0,\n resourceApsId: subscriptionOption?.resourceApsId,\n resourceId: subscriptionOption?.resourceId,\n shortDescription: subscriptionOption?.title,\n subscriptionPeriods: {\n Duration: subscription?.selectedSubscriptionPeriod?.split(' ')?.[0],\n unit: subscription?.selectedSubscriptionPeriod?.split(' ')?.[1],\n } as Periods,\n units: {\n included: option?.subscriptionOption?.includedUnits,\n max: option?.subscriptionOption?.maxUnits,\n min: option?.subscriptionOption?.minUnits,\n },\n vendorNumber: option?.subscriptionOption?.xVendorCode,\n vpn: subscriptionOption?.vpn,\n ...(recurringTiers &&\n recurringTiers?.length > 0 && {\n recurringTiers,\n }),\n };\n });\n return response.filter((option) => !!option);\n}\n\nexport function subscriptionAddtoQuoteBody(\n allOptions: any,\n subscriptionPlan: SubscriptionPlanTO,\n selectedOptions: SelectedOptionsTO[]\n) {\n const subscriptionPeriod =\n subscriptionPlan.selectedSubscriptionPeriod ||\n subscriptionPlan?.subscriptionPeriodSummary?.[0];\n const obj = {\n billingPeriods: {\n Duration: subscriptionPlan?.billingPeriod,\n unit: subscriptionPlan?.billingPeriodUnit,\n } as Periods,\n planApsid: subscriptionPlan?.planApsID,\n planId: subscriptionPlan?.planId,\n planName: subscriptionPlan?.title,\n remainingQuantity: 0,\n serviceTemplateId: subscriptionPlan.serviceTemplateId || '',\n subscriptionOptions: getSubscriptionOptions(allOptions, selectedOptions),\n subscriptionPeriods: {\n Duration: subscriptionPeriod?.split(' ')?.[0],\n unit: subscriptionPeriod?.split(' ')?.[1],\n } as Periods,\n };\n return obj;\n}\n\nexport function getCMPToken() {\n const jsonToken = localStorage.getItem('cmp-token-storage');\n if (jsonToken) {\n const cmpTokenData = JSON.parse(jsonToken);\n return cmpTokenData.access_token;\n }\n return undefined;\n}\n","import { useRecoilState } from 'recoil';\nimport { QuoteProductItem, SelectedQuoteItem } from '../../interfaces';\nimport { SelectedSubscriptionPlan } from '../../interfaces/QuoteItem.types';\nimport { useQuoteProductInformation } from '../../hooks/use-quote-product-information';\nimport { useAddLineItems } from '../../hooks/use-add-quote-line-items';\nimport {\n DEFAULT_QUOTE_INFO,\n generateProductInformationPayload,\n generateProductLines,\n generateQuoteLinesPayload,\n QuoteInformationAtom,\n quoteInformationAtom,\n getCMPToken,\n} from '../internal';\nimport { useLocation } from 'react-router-dom';\nimport { useCallback, useEffect } from 'react';\n\nexport const QUOTE_EDITOR_URL = 'my/quotemgmt/quoteitems';\n\nexport const useAddToQuote = () => {\n const location = useLocation();\n const { isPending, mutateAsync: getProductInformation } =\n useQuoteProductInformation();\n const { mutateAsync: addLineItems } = useAddLineItems();\n\n const [quoteInfo, setQuoteInfo] = useRecoilState(quoteInformationAtom);\n\n const showQuoteButton = Boolean(quoteInfo.quoteNumber);\n\n const setGlobalQuoteInfo = (quoteInfo: QuoteInformationAtom) => {\n setQuoteInfo(quoteInfo);\n };\n\n const addTSProducts = async (product: QuoteProductItem) => {\n const productItems = generateProductInformationPayload(\n product,\n quoteInfo.branchNumber\n );\n\n if (productItems.length === 0) return;\n\n const skus = await getProductInformation(productItems);\n const newQuoteLines = generateProductLines([product], skus?.validSkus);\n\n if (newQuoteLines && newQuoteLines.length > 0) {\n const quoteLinesPayload = generateQuoteLinesPayload(\n newQuoteLines,\n 'Addtoquote',\n quoteInfo\n );\n await addLineItems(quoteLinesPayload);\n }\n };\n\n const addCloudProducts = async (subscription: SelectedSubscriptionPlan) => {\n // eslint-disable-next-line no-console\n console.log('subscription', subscription);\n let quoteLinesPayload: any;\n const newPlanOptions: any[] = [];\n const updatedPlanOptions: any[] = [];\n subscription.subscriptionOptions?.forEach((option) => {\n const planOptionsExists: any =\n quoteInfo.quoteLinesItems?.find(\n (line: any) => line?.vpn && line?.vpn === option.vpn\n ) || {};\n if (planOptionsExists && Object.keys(planOptionsExists).length > 0) {\n updatedPlanOptions.push({\n ...planOptionsExists,\n quantity:\n (Number(planOptionsExists?.quantity) || 0) +\n (Number(option.quantity) || 0),\n });\n } else {\n newPlanOptions.push(option);\n }\n });\n\n if (newPlanOptions?.length > 0) {\n quoteLinesPayload = generateQuoteLinesPayload(\n newPlanOptions,\n 'Addtoquote',\n quoteInfo\n );\n // }\n }\n if (updatedPlanOptions?.length > 0) {\n const updatedSubscriptionOptions = updatedPlanOptions.map((option) => {\n return {\n duplicateselected: true,\n lineId: option?.lineNumber,\n markUp: option?.markUp,\n markUpUnit: option?.markupUnit,\n quantity: option?.quantity.toString(),\n sequenceNumber: option?.sequenceNumber,\n skuvpn: option?.pnaResponse?.ingramPartNumber,\n vendorNumber:\n option?.pnaResponse?.productAttributes?.[0]?.vendorNumber,\n vpn: option?.panResponse?.vendorPartNumber,\n };\n });\n\n if (updatedSubscriptionOptions?.length > 0) {\n quoteLinesPayload = generateQuoteLinesPayload(\n updatedSubscriptionOptions,\n 'Updatequantity',\n quoteInfo\n );\n }\n }\n if (quoteLinesPayload) {\n const response = await addLineItems({\n ...quoteLinesPayload,\n cmptoken: getCMPToken(),\n });\n return response;\n }\n return null;\n };\n\n const addToQuote = async (\n productType: keyof SelectedQuoteItem,\n product?: QuoteProductItem | null,\n subscription?: any\n ) => {\n if (productType === 'product') {\n await addTSProducts(product as QuoteProductItem);\n }\n if (productType === 'subscription') {\n await addCloudProducts(subscription as SelectedSubscriptionPlan);\n }\n };\n\n const clearQuote = useCallback(\n () => setQuoteInfo(DEFAULT_QUOTE_INFO),\n [setQuoteInfo]\n );\n\n useEffect(() => {\n if (showQuoteButton) {\n const path = location.pathname.split('/');\n if (!(path.includes('product') || path.includes('quotemgmt'))) {\n clearQuote();\n }\n }\n }, [clearQuote, location, showQuoteButton]);\n\n return {\n addToQuote,\n clearQuote,\n isLoading: isPending,\n quoteEditorURL: `/${QUOTE_EDITOR_URL}?quoteId=${quoteInfo.quoteNumber}"eGuid=${quoteInfo.quoteGuid}"eType=QMDraft`,\n quoteInfo,\n setGlobalQuoteInfo,\n showQuoteButton,\n };\n};\n","import { useMutation } from '@tanstack/react-query';\nimport { useApiPost } from 'mf_core/query';\n\nexport const useQuoteProductInformation = () => {\n const apiPost = useApiPost();\n return useMutation({\n mutationFn: (body: ProductInformationPayload[]) => {\n const data = apiPost('/quote-exp/v1/ProductInformation', body);\n return data;\n },\n });\n};\n\nexport interface ProductInformationPayload {\n branchNumber?: string;\n quantity?: number;\n skuVpnNumber?: string;\n}\n\nexport interface ProductInformationResponse {\n discontinuedSkus: string;\n discontinuedVpns: string;\n duplicateSkus: ValidSku[];\n invalidSkus: string;\n invalidVpns: string;\n isCMPProduct: boolean;\n maskedSkus: string;\n noDirectShipOrderableSkus: string;\n noDirectShipOrderableVpns: string;\n unAuthorizedSkus: string;\n unAuthorizedVpns: string;\n validSkus: ValidSku[];\n}\n\nexport interface ValidSku {\n productDetails: ProductDetail[];\n vendorPartNumber: string;\n}\n\nexport interface ProductDetail {\n bundle: any[];\n bundleSkus: any[];\n harmonizedCode: any;\n ingramPartNumber: string;\n longDescription: string;\n msrp: number;\n partOfBunddles: any[];\n productImage: string;\n shortDescription: string;\n totalAvailableQuantity: number;\n unitPrice: number;\n vendorName: string;\n vendorNumber: string;\n vendorPartNumber: string;\n}\n","import { useApiPost } from 'mf_core/query';\nimport { useMutation } from '@tanstack/react-query';\n\nexport function useAddLineItems() {\n const apiPost = useApiPost();\n\n return useMutation({\n mutationFn: async (body: AddLineItems) => {\n const data = await apiPost('/quote-exp/v1/quote-lines', body);\n return data;\n },\n });\n}\n\nexport interface QuoteResponse {\n serviceresponses: {\n createquoteresponse: {\n quoteguid: string;\n quotenumber: string;\n quoteurl: string;\n status: string;\n statusreason: string;\n };\n responsepreamble: {\n responsemessage: string;\n responsestatus: string;\n statuscode: string;\n };\n };\n}\n\nexport interface QuoteLinesItems {\n duplicateselected: boolean;\n ecPrice?: number;\n lineId: string;\n margin?: number;\n markUp?: string;\n markUpUnit?: string;\n quantity: string;\n sequenceNumber: any;\n skuvpn: string;\n vendorNumber: string;\n vpn: string;\n}\n\nexport interface CoTermLine {\n SubscriptionID?: number;\n alignmentType: string;\n cotermSubscriptionId?: string;\n endDate: string;\n lineId: string;\n originalEndDate?: string;\n startDate: string;\n}\n\nexport interface ResetExpirationLine {\n endDate: string;\n lineId: string;\n startDate: string;\n}\n\nexport interface QtyUpdateLine {\n duplicateselected: boolean;\n ecPrice: number;\n lineId: string;\n margin: number;\n quantity: string;\n sequenceNumber: number;\n skuvpn: string;\n vendorNumber: string;\n vpn: string;\n}\n\nexport enum AddLineAction {\n Addtoquote = 'Addtoquote',\n ApplyMarkupForEntireQuote = 'ApplyMarkupForEntireQuote',\n Delete = 'Delete',\n ResetCoTermEndDate = 'ResetCoTermEndDate',\n ResetCoTermStartDate = 'ResetCoTermStartDate',\n UpdateCoTermStartDate = 'UpdateCoTermStartDate',\n UpdateCoTermSubscription = 'UpdateCoTermSubscription',\n Updatequantity = 'Updatequantity',\n}\n\nexport interface AddLineItems {\n action: AddLineAction;\n attributeName: string;\n attributeValue: string;\n branchNumber: string;\n discount: string;\n endUserInformation?: any;\n entire_markUp: string;\n entire_markUpUnit: string;\n isChangeTax: boolean;\n isEUEnabled: string;\n lineProfitSeleced: string;\n profitValue: string;\n quoteguid: string;\n quotelinesitems: (\n | QuoteLinesItems\n | SubscriptionOptionLine\n | CoTermLine\n | ResetExpirationLine\n )[];\n quotenumber: string;\n shipping: string;\n tax: string;\n}\n\nexport interface RecurringTiers {\n code: string;\n lowerLimit: number;\n msrp: string;\n price: string;\n}\n\nexport interface SubscriptionOptionLine {\n billingPeriods?: any;\n duplicateselected?: boolean;\n fees?: any;\n finSystemProfile?: string;\n harmonizedCode?: string | number | null;\n imageurl?: string;\n isCloudProduct?: boolean;\n lineId?: string | null;\n longdescription?: string;\n markUp?: any;\n markUpUnit?: any;\n planApsid?: string;\n planId?: string;\n planName?: string;\n pricingSource?: string;\n quantity?: string | number;\n recurringPriceModel?: string;\n recurringTiers?: RecurringTiers[] | null;\n remainingQuantity?: number | null;\n resourceApsId?: string;\n resourceId?: string;\n serviceTemplateID?: string;\n shortDescription?: string;\n skuvpn?: string;\n subscriptionPeriods?: any;\n units?: any;\n vendorNumber?: string | number | null;\n vpn?: string;\n}\n","import { useMutation } from '@tanstack/react-query';\nimport { ObjectMap, useApiGet, useApiQuery } from 'mf_core/query';\nimport { getRevisionNumber } from '../internal/TSProduct.utils';\nimport {\n CartSummaryResponseTO,\n PlanLineTO,\n ProductSummaryTO,\n TotalTO,\n} from '../../CloudAddToCartButton/common/types';\n\nexport function useGetQuoteSummaryQuery() {\n let quoteDetails: any = sessionStorage.getItem('quoteDetails');\n quoteDetails = quoteDetails ? JSON.parse(quoteDetails) : null;\n const params = {\n quoteGuid: quoteDetails?.quoteguid,\n quoteName: quoteDetails?.quoteName,\n quoteNumber: quoteDetails?.quoteNumber,\n revisonNumber: getRevisionNumber(quoteDetails?.quoteNumber),\n };\n\n const productSummary = useProductSummaryMutate();\n\n const quoteDetailsAPI = useApiQuery(\n `/quote-exp/v1/getquoteplandetails`,\n params,\n {\n gcTime: 0,\n }\n );\n\n if (\n quoteDetailsAPI.isSuccess &&\n quoteDetailsAPI?.data &&\n quoteDetailsAPI?.data?.planLine?.length > 0 &&\n productSummary.isIdle\n ) {\n const skuIds = quoteDetailsAPI?.data?.planLine.map(\n (plan: PlanLineTO) => `{'partNumber':'${plan.planId}','quantity':'1'}`\n );\n productSummary.mutate(skuIds?.join(','));\n }\n\n const isLoading = productSummary.isPending || quoteDetailsAPI.isLoading;\n const data: ProductSummaryTO[] | undefined =\n productSummary.data?.productSummaries;\n const totalOptions: TotalTO | undefined = productSummary.data?.total;\n\n return {\n data: {\n quoteSummary: quoteDetailsAPI.data,\n subOptions: data,\n total: totalOptions,\n },\n isLoading,\n };\n}\n\nfunction useProductSummaryMutate() {\n const apiGet = useApiGet();\n return useMutation({\n mutationFn: (skulist: string) => {\n return apiGet(\n `/product/v1/productsummaries?q={'productIdentifiers':[${skulist}]}`\n );\n },\n });\n}\n","import React, { useCallback, useEffect } from 'react';\nimport { useTranslate } from '@im/react-localization';\nimport { useNavigate } from 'react-router-dom';\nimport { Toast } from '@im/ui-lib/zenith/Toast';\nimport { ToastIntent } from '@im/ui-lib/zenith/common';\n\nexport type AddToQuoteToastProps = {\n description: string;\n onHideToast: () => void;\n quoteEditorURL: string;\n show: boolean;\n toastIntent?: ToastIntent;\n};\n\nexport default function AddToQuoteToast(props: Readonly) {\n const {\n description,\n onHideToast,\n quoteEditorURL,\n show,\n toastIntent = 'success',\n } = props;\n\n const translate = useTranslate();\n const navigate = useNavigate();\n\n const handleGoToQuote = useCallback(() => {\n navigate(quoteEditorURL);\n }, [navigate, quoteEditorURL]);\n\n const body =\n toastIntent === 'success'\n ? description\n : translate('ProductConfig.SomethingWentwrongError');\n const icon = toastIntent === 'success' ? 'QuotePlus' : 'AlertCircle';\n const header =\n toastIntent === 'success' ? 'ProductConfig.Addedtoquote' : 'Error';\n\n useEffect(() => {\n if (show) {\n const timer = setTimeout(() => {\n onHideToast();\n }, 3000);\n return () => clearTimeout(timer);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [show]);\n\n return (\n \n );\n}\n","export enum ButtonType {\n icon = 'icon',\n iconwithcheckmark = 'iconwithcheckmark',\n text = 'text',\n textwithicon = 'textwithicon',\n}\n","import { useTranslate } from '@im/react-localization';\nimport {\n Button,\n ButtonProps as LibButtonProps,\n} from '@im/ui-lib/zenith/Button';\nimport { DataAttributes, ToastIntent } from '@im/ui-lib/zenith/common';\nimport { Icon } from '@im/ui-lib/zenith/Icon';\nimport { LoadingIndicator } from '@im/ui-lib/zenith/LoadingIndicator';\nimport { Tooltip, TooltipProps } from '@im/ui-lib/zenith/Tooltip';\nimport Box from '@mui/material/Box';\nimport { styled, useTheme } from '@mui/material/styles';\nimport React, { useCallback, useEffect, useState } from 'react';\nimport { getWidthOfButton } from '../AddToCartButtonV2/commonFunction';\nimport { ObjectMap } from 'mf_core/query';\nimport { AddToQuoteToast } from '../AddToQuoteToast';\nimport { ButtonType } from './types/Button.type';\nimport { useAddToQuote } from './hooks';\n\ntype AddToQuoteMessage = {\n show: boolean;\n toastIntent?: ToastIntent;\n};\n\ninterface TSAddToQuoteButtonProps {\n buttonProps?: LibButtonProps;\n buttonStyles?: ObjectMap;\n buttonType: ButtonType;\n dataAttributes?: DataAttributes;\n enableToast?: boolean;\n engineId: string;\n productDetails?: ObjectMap;\n quantity: number;\n tooltipProps?: Omit;\n}\n\ninterface ButtonProps {\n isAdding: boolean;\n isSuccessful: boolean;\n}\n\nconst TSAddToQuoteButton = (props: TSAddToQuoteButtonProps) => {\n const {\n buttonProps: buttonAddlProps,\n buttonStyles,\n buttonType,\n dataAttributes,\n enableToast,\n engineId,\n productDetails,\n quantity,\n } = props;\n\n const { addToQuote, quoteEditorURL } = useAddToQuote();\n const theme = useTheme();\n const translate = useTranslate();\n\n const [buttonProps, setButtonProps] = useState({\n isAdding: false,\n isSuccessful: false,\n });\n const [addToQuoteMessage, setAddToQuoteMessage] = useState(\n { show: false }\n );\n\n useEffect(() => {\n if (buttonProps.isSuccessful) {\n const timer = setTimeout(() => {\n setButtonProps({ isAdding: false, isSuccessful: false });\n }, 5000);\n return () => clearTimeout(timer);\n }\n }, [buttonProps.isSuccessful]);\n\n const handleAddToQuote = async () => {\n try {\n setButtonProps({ isAdding: true, isSuccessful: false });\n await addToQuote('product', {\n engineId: engineId,\n isNonTransactional: productDetails?.isNonTransactional,\n quantity,\n skuVpnNumber: productDetails?.partNumber || productDetails?.sku,\n vendorName: productDetails?.vendorname,\n vendorcode: productDetails?.vendorcode,\n });\n setButtonProps({ isAdding: false, isSuccessful: true });\n if (enableToast) {\n setAddToQuoteMessage({ show: true, toastIntent: 'success' });\n }\n } catch (e) {\n setButtonProps({ isAdding: false, isSuccessful: false });\n setAddToQuoteMessage({ show: true, toastIntent: 'error' });\n }\n };\n\n const onHideToast = () => setAddToQuoteMessage({ show: false });\n\n const getButtonText = useCallback(() => {\n if (buttonProps.isSuccessful) {\n if (buttonType === ButtonType.iconwithcheckmark) {\n return ;\n } else {\n return translate('Common.Added');\n }\n } else if (buttonProps.isAdding) {\n const showText = [ButtonType.textwithicon, ButtonType.text].includes(\n buttonType\n );\n return (\n \n \n {showText ? translate('Common.Adding') : null}\n \n );\n } else if (buttonType === ButtonType.icon) {\n return ;\n } else {\n return translate('ProductConfig.AddToQuote');\n }\n }, [buttonProps.isAdding, buttonProps.isSuccessful, buttonType, translate]);\n\n const description =\n productDetails?.additionalAttributes?.[0]?.longDescription ||\n productDetails?.longDescription;\n\n return (\n <>\n \n \n \n ) : null\n }\n sx={{\n ...buttonStyles,\n ...(buttonProps.isSuccessful\n ? {\n backgroundColor: theme.palette.success[700],\n }\n : undefined),\n }}\n variant=\"primary\"\n >\n {getButtonText()}\n \n \n \n {addToQuoteMessage.show && description && (\n \n )}\n \n );\n};\n\nexport default TSAddToQuoteButton;\n\nconst StyledButton = styled(Button)(({ theme }) => ({\n '&.MuiButton-containedSuccess': {\n '&:hover': {\n backgroundColor: theme.palette.success[700],\n },\n },\n minWidth: '100px',\n outline: 'none !important',\n p: 0,\n}));\n","import {\n Button,\n ButtonProps as LibButtonProps,\n} from '@im/ui-lib/zenith/Button';\nimport {\n CartOptionsTo,\n SelectedOptionsTO,\n SubscriptionPlanTO,\n SubsDataResponse,\n} from '../CloudAddToCartButton/common/types';\nimport { DataAttributes, ToastIntent } from '@im/ui-lib/zenith/common';\nimport React, { useCallback, useEffect, useMemo, useState } from 'react';\nimport { useAddToQuote } from './hooks';\nimport { useTranslate } from '@im/react-localization';\nimport { ButtonType } from './types/Button.type';\nimport { Icon } from '@im/ui-lib/zenith/Icon';\nimport Box from '@mui/material/Box';\nimport { LoadingIndicator } from '@im/ui-lib/zenith/LoadingIndicator';\nimport { SxProps, Theme, useTheme } from '@mui/material/styles';\nimport { AddToQuoteToast } from '../AddToQuoteToast';\nimport ValidationPopup from '../CloudAddToCartButton/internal/ValidationPopup';\nimport {\n checkResellerOnly,\n getExistingDependents,\n} from '../CloudAddToCartButton/common/commonFunctions';\nimport { useGetQuoteSummaryQuery } from './hooks/use-get-quote-summary';\nimport { subscriptionAddtoQuoteBody } from './internal';\n\ntype CloudAddToQuoteButtonProps = {\n allSubscriptionOptions?: SubsDataResponse;\n buttonProps?: LibButtonProps;\n buttonStyles?: SxProps;\n buttonText?: string;\n buttonType: ButtonType;\n cartRequest: CartOptionsTo[];\n dataAttributes?: DataAttributes;\n disabled?: boolean;\n iconButton?: boolean;\n isMandatoryPlan?: boolean;\n isPending?: boolean;\n isSuccess?: boolean;\n onClick?: () => void;\n planQty?: number;\n planTitle?: string;\n selectedOptions: SelectedOptionsTO[];\n title?: string;\n};\nconst CloudAddToQuoteButton = (props: CloudAddToQuoteButtonProps) => {\n const {\n allSubscriptionOptions,\n buttonProps: addlButtonProps,\n buttonStyles,\n buttonText,\n buttonType,\n cartRequest,\n dataAttributes,\n isMandatoryPlan,\n isPending,\n onClick,\n planQty,\n planTitle,\n selectedOptions,\n } = props;\n\n const { addToQuote, quoteEditorURL, quoteInfo } = useAddToQuote();\n const quoteSummary = useGetQuoteSummaryQuery();\n const translate = useTranslate();\n const theme = useTheme();\n\n const [buttonProps, setButtonProps] = useState({\n isAdding: false,\n isSuccessful: false,\n });\n const [addToQuoteMessage, setAddToQuoteMessage] =\n useState(null);\n const [validationOptions, setValidationOptions] = useState({\n option1: '',\n option2: '',\n result: '',\n });\n const [validationError, setValidationError] = useState('');\n const [cartValidationPopup, setCartValidationPopup] = useState(false);\n\n const subscriptionPlan: SubscriptionPlanTO | null =\n allSubscriptionOptions?.data?.subOptions?.[0]?.subscriptionOption\n ?.parentSubscriptionPlan || null;\n\n const exclusiveItemForReseller = translate(\n 'ProductDetailsResources.ExclusiveItemForReseller'\n );\n const disableCart =\n selectedOptions?.length === 0 ||\n buttonProps.isAdding ||\n addlButtonProps?.disabled ||\n isPending;\n\n useEffect(() => {\n if (buttonProps.isSuccessful) {\n const timer = setTimeout(() => {\n setButtonProps({ isAdding: false, isSuccessful: false });\n }, 5000);\n return () => clearTimeout(timer);\n }\n }, [buttonProps.isSuccessful]);\n\n const handleAddToQuote = async () => {\n try {\n if (onClick) {\n onClick();\n return;\n }\n const existingQuoteData = quoteSummary;\n\n if (cartRequest && cartRequest.length > 0) {\n setButtonProps({ isAdding: true, isSuccessful: false });\n const dependentExists = getExistingDependents(\n selectedOptions,\n existingQuoteData,\n allSubscriptionOptions\n );\n\n if (dependentExists && dependentExists?.result !== '') {\n setValidationOptions(dependentExists);\n setValidationError(dependentExists?.result);\n setCartValidationPopup(true);\n return false;\n } else if (\n checkResellerOnly(\n { data: { isEndUserSelected: !!quoteInfo.endUserInformation } },\n selectedOptions,\n existingQuoteData\n )\n ) {\n dependentExists.result = exclusiveItemForReseller;\n setValidationOptions(dependentExists);\n setValidationError(dependentExists.result);\n setCartValidationPopup(true);\n return false;\n } else if (allSubscriptionOptions && subscriptionPlan) {\n const obj = subscriptionAddtoQuoteBody(\n allSubscriptionOptions.data.subOptions,\n subscriptionPlan,\n selectedOptions\n );\n await addToQuote('subscription', null, obj);\n }\n setButtonProps({ isAdding: false, isSuccessful: true });\n }\n } catch (e) {\n setButtonProps({ isAdding: false, isSuccessful: false });\n setAddToQuoteMessage('error');\n }\n };\n\n const onHideToast = () => setAddToQuoteMessage(null);\n\n const description = useMemo(() => {\n const qty = isMandatoryPlan ? `${planQty} x ` : '';\n const title = planTitle ?? selectedOptions?.[0]?.option?.title;\n return `${qty}${title}`;\n }, [isMandatoryPlan, planQty, planTitle, selectedOptions]);\n\n const getButtonText = useCallback(() => {\n if (buttonProps.isSuccessful) {\n if (buttonType === ButtonType.iconwithcheckmark) {\n return ;\n } else {\n return translate('Common.Added');\n }\n } else if (buttonProps.isAdding || isPending) {\n const showText = [ButtonType.textwithicon, ButtonType.text].includes(\n buttonType\n );\n return (\n \n \n {showText ? translate('Common.Adding') : null}\n \n );\n } else if (buttonType === ButtonType.icon) {\n return ;\n } else {\n const text = buttonText\n ? buttonText.charAt(0).toUpperCase() + buttonText.slice(1).toLowerCase()\n : translate('ProductConfig.AddToQuote');\n return text;\n }\n }, [\n buttonProps.isAdding,\n buttonProps.isSuccessful,\n buttonText,\n buttonType,\n isPending,\n translate,\n ]);\n\n return (\n <>\n \n ) : null\n }\n sx={{\n ...buttonStyles,\n ...(buttonProps.isSuccessful\n ? {\n backgroundColor: theme.palette.success[700],\n }\n : undefined),\n }}\n variant=\"primary\"\n >\n {getButtonText()}\n \n {validationError !== '' && (\n \n )}\n {addToQuoteMessage && (\n \n )}\n \n );\n};\n\nexport default CloudAddToQuoteButton;\n","import {\n PlanLineTO,\n ProductSummaryTO,\n ResourceLineTO,\n SelectedOptionsTO,\n SubsDataResponse,\n} from './types';\n\nexport function checkResellerOnly(\n existingCartData: any,\n selectedOption: SelectedOptionsTO[],\n cartSummary: any\n) {\n let result = false;\n\n //1. check if any reselleronly exists in current plans\n if (selectedOption?.some((innerPTR) => innerPTR?.option?.resellerOnly)) {\n if (existingCartData?.data?.isEndUserSelected) {\n result = true;\n } else if (\n cartSummary?.data?.planLine?.some(\n (ptr: PlanLineTO) => !ptr.isResellerOnly\n )\n ) {\n result = true;\n }\n }\n if (selectedOption?.some((innerPTR) => !innerPTR?.option?.resellerOnly)) {\n if (\n cartSummary?.data?.planLine?.some((ptr: PlanLineTO) => ptr.isResellerOnly)\n ) {\n result = true;\n }\n }\n return result;\n}\n\nexport function getExistingDependents(\n selectedOption: SelectedOptionsTO[],\n existingCartData: any,\n subOptions?: SubsDataResponse\n) {\n let result = '';\n const dictionary = new Map();\n if (\n selectedOption &&\n selectedOption.length > 0 &&\n subOptions?.data?.subOptions\n ) {\n selectedOption.forEach((cartItem) => {\n //1. Check if depnds on exists.\n const found = subOptions?.data?.subOptions?.find(\n (innerPTR: ProductSummaryTO) =>\n innerPTR?.subscriptionOption?.resourceApsId ===\n cartItem?.option?.resourceApsId &&\n innerPTR?.subscriptionOption?.dependson !== null &&\n innerPTR?.subscriptionOption?.dependson !== undefined\n );\n //2. check if dependent exists in cart\n if (found != null && found !== undefined) {\n found?.subscriptionOption?.dependson.forEach((dependent: any) => {\n const dependentRef = dependent.resource as string;\n existingCartData?.data?.planLine?.forEach((innerPTR: PlanLineTO) => {\n if (innerPTR.planId === dependentRef) {\n if (!dictionary.has(cartItem?.option?.resourceApsId)) {\n dictionary.set(cartItem.option.resourceApsId, [dependentRef]);\n } else {\n const returnArray = dictionary.get(\n cartItem.option.resourceApsId\n ) as string[];\n if (!returnArray.includes(dependentRef)) {\n returnArray.push(dependentRef);\n dictionary.set(cartItem?.option?.resourceApsId, returnArray);\n }\n }\n } else if (\n innerPTR.resourceLine?.some(function (el: ResourceLineTO) {\n return el.resourceId === dependentRef;\n })\n ) {\n if (!dictionary.has(cartItem.option.resourceApsId)) {\n dictionary.set(cartItem.option.resourceApsId, [dependentRef]);\n } else {\n const returnArray = dictionary.get(\n cartItem.option.resourceApsId\n ) as string[];\n if (!returnArray.includes(dependentRef)) {\n returnArray.push(dependentRef);\n dictionary.set(cartItem.option.resourceApsId, returnArray);\n }\n }\n }\n });\n });\n }\n });\n }\n let optionA = '';\n let optionB = '';\n dictionary.forEach(function (value, key) {\n optionA =\n subOptions?.data?.subOptions?.find(\n (innerPTR) => innerPTR?.subscriptionOption?.resourceApsId === key\n )?.subscriptionOption?.title ?? '';\n const container = dictionary.get(key);\n container?.forEach((innerPTR) => {\n optionB =\n subOptions?.data?.subOptions?.find(\n (ptr) => ptr?.subscriptionOption?.resourceApsId === innerPTR\n )?.subscriptionOption?.title ?? '';\n result += `Option A ${optionA} & Option B ${optionB} cannot be combined in your shopping cart. Please remove Option A before you can add Option B.\\n`;\n });\n });\n\n return { option1: optionA, option2: optionB, result: result };\n}\n\nexport default function ValidateMinMaxQuantity(\n qtyToCompare: number,\n maxQty: number,\n minQty: number\n) {\n if (qtyToCompare === 999999999) return 'InValid';\n\n //for option with min qty of 1, and NO max qty\n if (maxQty === 999999999 && minQty === 1 && qtyToCompare < minQty) {\n return `Minimum quantity allowed: 1`;\n }\n //for option with max qty of 5000, and NO min qty\n if (\n (minQty === undefined || minQty === 0) &&\n maxQty !== 99999999 &&\n qtyToCompare > maxQty\n ) {\n return `Maximum quantity allowed: ${maxQty}`;\n }\n\n if (\n maxQty !== undefined &&\n maxQty > 0 &&\n maxQty !== 99999999 &&\n ((minQty !== undefined && qtyToCompare < minQty) ||\n (maxQty !== undefined && qtyToCompare > maxQty))\n ) {\n return `Quantity allowed: ${minQty} to ${maxQty}`;\n }\n return '';\n}\n","/* eslint-disable no-restricted-imports */\nimport { useTranslate } from '@im/react-localization';\nimport { Dialog } from '@im/ui-lib/zenith/Dialog';\nimport { Box, Typography, styled } from '@mui/material';\nimport React from 'react';\n\ntype Props = {\n mutuallyExclPopup?: boolean;\n setMutuallyExclPopup?: React.Dispatch>;\n validationResult?: string;\n};\nexport default function ValidationPopup(props: Props) {\n const translate = useTranslate();\n const { mutuallyExclPopup, setMutuallyExclPopup, validationResult } = props;\n\n const handlePrimaryButtonClick = () => {\n if (setMutuallyExclPopup) {\n setMutuallyExclPopup(false);\n }\n };\n\n return (\n \n \n {validationResult}\n \n \n );\n}\n\nconst StyledBox = styled(Box)(() => ({ paddingTop: '24px' }));\n","import _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nvar _excluded = [\"color\", \"loadingStyle\", \"spinnerSize\", \"supportingText\", \"supportingTextColor\", \"value\", \"variant\"];\nimport React from 'react';\nimport CircularProgress, { circularProgressClasses } from '@mui/material/CircularProgress';\nimport Box from '@mui/material/Box';\nimport Typography from '@mui/material/Typography';\n// import { LoadingDotCircle } from './LoadingDotCircle';\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nvar sizeMap = {\n lg: 56,\n md: 48,\n sm: 32,\n xl: 64\n};\nvar getGap = function getGap(size, controlledSize) {\n if (typeof controlledSize === 'number') {\n return size > sizeMap['xl'] ? '20px' : '16px';\n }\n return controlledSize === 'xl' ? '20px' : '16px';\n};\nvar getValue = function getValue(val) {\n if (!val) return 0;\n if (val > 100) return 100;\n return val;\n};\nexport function LoadingIndicator(props) {\n var _color = props.color,\n loadingStyle = props.loadingStyle,\n controlledSize = props.spinnerSize,\n supportingText = props.supportingText,\n supportingTextColor = props.supportingTextColor,\n value = props.value,\n _props$variant = props.variant,\n variant = _props$variant === void 0 ? 'indeterminate' : _props$variant,\n others = _objectWithoutProperties(props, _excluded);\n\n // if (loadingStyle === 'dot-circle') {\n // return (\n // \n // \n // {loadingText}\n // \n // );\n // }\n\n var size = typeof controlledSize === 'number' ? controlledSize : sizeMap[controlledSize != null ? controlledSize : 'md'];\n return /*#__PURE__*/_jsxs(Box, {\n sx: {\n display: 'grid',\n gap: getGap(size, controlledSize),\n justifyItems: 'center',\n overflow: 'hidden',\n position: 'relative'\n },\n \"data-element\": \"Box\",\n \"data-component\": \"LoadingIndicator\",\n \"data-source-file\": \"LoadingIndicator.tsx\",\n children: [/*#__PURE__*/_jsx(CircularProgress, _extends({\n size: size,\n sx: {\n color: function color(theme) {\n return loadingStyle === 'line-simple' ? 'transparent' : theme.palette.gray[100];\n },\n margin: 0\n },\n thickness: controlledSize === 'md' || controlledSize === 'sm' ? 4 : 5\n }, others, {\n value: 100,\n variant: \"determinate\",\n \"data-element\": \"CircularProgress\",\n \"data-source-file\": \"LoadingIndicator.tsx\"\n })), /*#__PURE__*/_jsx(CircularProgress, _extends({\n disableShrink: true,\n size: size,\n sx: _defineProperty({\n animationDuration: '1000ms',\n color: function color(theme) {\n return _color ? _color : theme.palette.primary[600];\n },\n margin: 0,\n position: 'absolute'\n }, \"& .\".concat(circularProgressClasses.circle), {\n strokeLinecap: 'round'\n }),\n thickness: controlledSize === 'md' || controlledSize === 'sm' ? 4 : 5,\n value: getValue(value),\n variant: variant\n }, others, {\n \"data-element\": \"CircularProgress\",\n \"data-source-file\": \"LoadingIndicator.tsx\"\n })), supportingText && /*#__PURE__*/_jsx(Typography, {\n align: \"center\",\n flexWrap: \"wrap\",\n sx: {\n color: function color(theme) {\n return supportingTextColor ? supportingTextColor : theme.palette.gray[700];\n },\n wordBreak: 'break-word'\n },\n variant: size < sizeMap['md'] ? 'text-sm-medium' : 'text-lg-medium',\n children: supportingText\n })]\n });\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _slicedToArray from \"@babel/runtime/helpers/esm/slicedToArray\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nvar _Icon;\nvar _excluded = [\"sx\"];\n/* eslint-disable max-lines */\nimport React, { useEffect, useMemo, useRef, useState } from 'react';\nimport Stack from '@mui/material/Stack';\nimport Snackbar from '@mui/material/Snackbar';\nimport Alert from '@mui/material/Alert';\nimport { Button } from '../Button';\nimport Typography from '@mui/material/Typography';\nimport { useTheme } from '@mui/material/styles';\nimport { SHADOWS } from '@im/im-theme/constants';\nimport { useConvertToMobile } from '../utils/useConvertToMobile';\nimport { Icon } from '../Icon';\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nvar TOAST_MAX_WIDTH = 480;\nvar TERTIARY_GRAY_BG_COLOR = 'F8FAFC';\nvar closeButtonHoverBgMap = {\n error: '30',\n information: '30',\n neutral: '',\n primary: '30',\n success: '30',\n warning: '40'\n};\nexport function Toast(props) {\n var _getTypographyColor;\n var _props$autoHideDurati = props.autoHideDuration,\n autoHideDuration = _props$autoHideDurati === void 0 ? 6000 : _props$autoHideDurati,\n _props$actionButtonPr = props.actionButtonProps,\n actionButtonProps = _props$actionButtonPr === void 0 ? {} : _props$actionButtonPr,\n supportingText = props.supportingText,\n actionButtonText = props.actionButtonText,\n _props$compact = props.compact,\n compact = _props$compact === void 0 ? false : _props$compact,\n onActionButtonClick = props.onActionButtonClick,\n onCloseButtonClick = props.onCloseButtonClick,\n header = props.header,\n iconId = props.icon,\n _props$intent = props.intent,\n intent = _props$intent === void 0 ? 'primary' : _props$intent,\n mobileBreakpoint = props.mobileBreakpoint,\n mobileBreakpointContainerRef = props.mobileBreakpointContainerRef,\n _props$mobilePosition = props.mobilePosition,\n mobilePosition = _props$mobilePosition === void 0 ? 'bottom-center' : _props$mobilePosition,\n open = props.open,\n _props$position = props.position,\n position = _props$position === void 0 ? 'bottom-right' : _props$position,\n sx = props.sx;\n var theme = useTheme();\n var isMobile = useConvertToMobile(mobileBreakpoint, mobileBreakpointContainerRef);\n var shouldCompact = compact || isMobile;\n var positionArray = isMobile ? mobilePosition.split('-') : position.split('-');\n var vertical = positionArray[0] === 'top' ? 'top' : 'bottom';\n var horizontal = positionArray[1];\n var alignItems = iconId && shouldCompact || iconId && supportingText ? 'flex-start' : 'center';\n var mobileSpacing = theme.spacing(4);\n var desktopSpacing = theme.spacing(6);\n var spacing = isMobile ? mobileSpacing : desktopSpacing;\n var positionStyleMap = {\n horizontal: {\n center: {\n left: '50%',\n padding: '0 8px',\n transform: 'translateX(-50%)',\n webkitTransform: 'translateX(-50%)',\n width: '100%'\n },\n left: {\n left: spacing,\n right: 'unset'\n },\n right: {\n left: 'unset',\n right: spacing\n }\n },\n vertical: {\n bottom: {\n bottom: spacing,\n top: 'unset'\n },\n center: {},\n top: {\n bottom: 'unset',\n top: spacing\n }\n }\n };\n var getBackgroundAndBorderColor = function getBackgroundAndBorderColor() {\n switch (intent) {\n case 'primary':\n return {\n backgroundColor: theme.palette.gray[950],\n borderColor: theme.palette.gray[950]\n };\n case 'neutral':\n return {\n backgroundColor: theme.palette.common.white,\n borderColor: theme.palette.gray[300]\n };\n case 'information':\n return {\n backgroundColor: theme.palette.primary[700],\n borderColor: theme.palette.primary[700]\n };\n case 'error':\n return {\n backgroundColor: theme.palette.error[700],\n borderColor: theme.palette.error[700]\n };\n case 'warning':\n return {\n backgroundColor: theme.palette.warning[300],\n borderColor: theme.palette.warning[300]\n };\n case 'success':\n return {\n backgroundColor: theme.palette.success[700],\n borderColor: theme.palette.success[700]\n };\n }\n };\n var getTypographyColor = function getTypographyColor() {\n switch (intent) {\n case 'primary':\n case 'information':\n case 'error':\n case 'success':\n return {\n color: theme.palette.common.white\n };\n case 'neutral':\n return {\n color: theme.palette.gray[700]\n };\n case 'warning':\n return {\n color: theme.palette.gray[900]\n };\n }\n };\n var getIconColor = function getIconColor() {\n switch (intent) {\n case 'primary':\n case 'information':\n case 'error':\n case 'success':\n return {\n color: theme.palette.common.white\n };\n case 'neutral':\n return {\n color: theme.palette.gray[700]\n };\n case 'warning':\n return {\n color: theme.palette.gray[700]\n };\n }\n };\n var actionSxProps = actionButtonProps.sx,\n otherActionButtonProps = _objectWithoutProperties(actionButtonProps, _excluded);\n var bodyPaddingL = iconId ? theme.spacing(3) : 0;\n var bodyPaddingR = useMemo(function () {\n if (!onActionButtonClick && !onCloseButtonClick) {\n return 0;\n }\n if (shouldCompact && !onCloseButtonClick) {\n return 0;\n }\n return isMobile ? theme.spacing(8) : theme.spacing(5);\n }, [shouldCompact, isMobile, onActionButtonClick, onCloseButtonClick, theme]);\n var _useState = useState(null),\n _useState2 = _slicedToArray(_useState, 2),\n iconWidth = _useState2[0],\n setIconWidth = _useState2[1];\n var iconRef = useRef(null);\n useEffect(function () {\n if (iconRef.current) {\n setIconWidth(iconRef.current.offsetWidth);\n }\n }, []);\n var ActionButton = useMemo(function () {\n return onActionButtonClick ? /*#__PURE__*/_jsx(Button, _extends({\n onClick: onActionButtonClick,\n size: \"small\",\n sx: _extends({\n borderRadius: '32px',\n marginBottom: isMobile ? theme.spacing(2) : 0,\n marginLeft: iconId && shouldCompact ? \"calc(\".concat(iconWidth, \"px + \").concat(bodyPaddingL, \")\") : 0,\n marginRight: onCloseButtonClick ? '8px' : 0,\n marginTop: shouldCompact ? theme.spacing(3) : 0,\n padding: '8px 14px',\n textTransform: 'unset'\n }, actionSxProps),\n variant: intent === 'neutral' ? 'secondary' : 'secondary-gray'\n }, otherActionButtonProps, {\n children: actionButtonText\n })) : null;\n }, [actionButtonText, actionSxProps, bodyPaddingL, iconId, iconWidth, intent, isMobile, onActionButtonClick, onCloseButtonClick, otherActionButtonProps, shouldCompact, theme]);\n var CloseButton = useMemo(function () {\n return onCloseButtonClick ? /*#__PURE__*/_jsx(Button, {\n onClick: onCloseButtonClick,\n size: \"small\",\n sx: {\n '&:hover': {\n backgroundColor: \"#\".concat(TERTIARY_GRAY_BG_COLOR).concat(closeButtonHoverBgMap[intent])\n }\n },\n variant: \"tertiary-gray\",\n children: _Icon || (_Icon = /*#__PURE__*/_jsx(Icon, {\n iconId: \"XClose\"\n }))\n }) : null;\n }, [intent, onCloseButtonClick]);\n return /*#__PURE__*/_jsx(Snackbar, {\n anchorOrigin: {\n horizontal: horizontal,\n vertical: vertical\n },\n autoHideDuration: autoHideDuration,\n onClose: onCloseButtonClick,\n open: open,\n sx: _extends({\n width: 'fit-content'\n }, positionStyleMap.horizontal[isMobile ? 'center' : horizontal], positionStyleMap.vertical[vertical], sx),\n \"data-element\": \"Snackbar\",\n \"data-component\": \"Toast\",\n \"data-source-file\": \"Toast.tsx\",\n children: /*#__PURE__*/_jsxs(Alert, {\n icon: false,\n sx: _extends({\n '.MuiAlert-icon': {\n alignItems: alignItems\n },\n '.MuiAlert-message': {\n padding: 0,\n width: '100%'\n },\n '.MuiSvgIcon-root': _extends({}, getIconColor()),\n borderRadius: '12px',\n boxShadow: theme.shadows[SHADOWS.xs],\n gap: '16px',\n maxWidth: TOAST_MAX_WIDTH,\n minHeight: '60px',\n padding: isMobile ? \"\".concat(theme.spacing(2), \" \").concat(theme.spacing(4)) : \"\".concat(theme.spacing(3), \" \").concat(theme.spacing(4)),\n width: '100%'\n }, getBackgroundAndBorderColor()),\n variant: \"filled\",\n \"data-element\": \"Alert\",\n \"data-source-file\": \"Toast.tsx\",\n children: [/*#__PURE__*/_jsxs(Stack, {\n alignItems: alignItems,\n direction: \"row\",\n sx: {\n width: '100%'\n },\n \"data-element\": \"Stack\",\n \"data-source-file\": \"Toast.tsx\",\n children: [iconId && /*#__PURE__*/_jsx(Icon, {\n iconId: iconId,\n ref: iconRef,\n size: 20,\n sx: {\n mt: supportingText || compact && !supportingText || isMobile ? 2 : 0\n }\n }), /*#__PURE__*/_jsxs(Stack, {\n spacing: 1,\n sx: {\n flex: 1,\n margin: \"0 \".concat(bodyPaddingR, \" 0 \").concat(bodyPaddingL, \"}\"),\n position: 'relative'\n },\n \"data-element\": \"Stack\",\n \"data-source-file\": \"Toast.tsx\",\n children: [/*#__PURE__*/_jsx(Typography, {\n className: \"header-message\",\n sx: _extends({}, getTypographyColor(), {\n pb: !supportingText ? theme.spacing(2) : 0,\n pt: theme.spacing(2)\n }),\n variant: \"text-sm-semibold\",\n \"data-element\": \"Typography\",\n \"data-source-file\": \"Toast.tsx\",\n children: header\n }), supportingText && /*#__PURE__*/_jsx(Typography, {\n className: \"body-message\",\n sx: {\n color: intent === 'neutral' ? theme.palette.gray[600] : (_getTypographyColor = getTypographyColor()) == null ? void 0 : _getTypographyColor.color,\n pb: !onActionButtonClick || !shouldCompact ? theme.spacing(2) : 0\n },\n variant: \"text-sm-regular\",\n children: supportingText\n })]\n }), !shouldCompact && ActionButton, CloseButton]\n }), shouldCompact && ActionButton]\n })\n });\n}","import { useTheme } from '@mui/material/styles';\nimport useMediaQuery from '@mui/material/useMediaQuery';\nexport function useIsDown(breakpoint) {\n var screenOnly = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n var theme = useTheme();\n var inputQuery = screenOnly ? \"@media screen and (max-width:\".concat(theme.breakpoints.values[breakpoint] - 0.05, \"px)\") : theme.breakpoints.down(breakpoint);\n return useMediaQuery(inputQuery);\n}\nexport function useIsUp(breakpoint) {\n var screenOnly = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n var theme = useTheme();\n var inputQuery = screenOnly ? \"@media screen and (min-width:\".concat(theme.breakpoints.values[breakpoint] - 0.05, \"px)\") : theme.breakpoints.up(breakpoint);\n return useMediaQuery(inputQuery);\n}\nexport function useIsResolution(resolution) {\n var max = resolution.max,\n min = resolution.min;\n var inputQuery = '@media screen and ';\n if (min) inputQuery = \"\".concat(inputQuery, \"(min-width: \").concat(min, \"px)\");\n if (min && max) inputQuery = \"\".concat(inputQuery, \" and \");\n if (max) inputQuery = \"\".concat(inputQuery, \"(max-width: \").concat(max, \"px)\");\n return useMediaQuery(inputQuery);\n}","import _slicedToArray from \"@babel/runtime/helpers/esm/slicedToArray\";\nimport { useEffect, useState } from 'react';\nimport { useIsDown } from '../responsive';\n\n/** Utility hook that keeps track of whether a component is in mobile view\n * wherever it is called based on window or containing element width.\n * @param mobileBreakpoint optional point at which to break to mobile\n * view. Defaults to the theme mobile breakpoint.\n *\n * @param mobileBreakpointContainerRef defaults to the browser window's inner\n * width, otherwise you can specify any ref element's width to check against.\n */\nexport function useConvertToMobile(mobileBreakpoint, mobileBreakpointContainerRef) {\n var _useState = useState(mobileBreakpoint === true),\n _useState2 = _slicedToArray(_useState, 2),\n isMobile = _useState2[0],\n setIsMobile = _useState2[1];\n var isMobileBp = useIsDown('sm');\n useEffect(function () {\n if (mobileBreakpoint !== true) {\n var convertToMobile = function convertToMobile() {\n var width = window.innerWidth;\n if (mobileBreakpointContainerRef != null && mobileBreakpointContainerRef.current) {\n width = mobileBreakpointContainerRef.current.offsetWidth;\n }\n if (mobileBreakpoint === undefined && isMobileBp || mobileBreakpoint !== undefined && width <= mobileBreakpoint) {\n setIsMobile(true);\n } else {\n setIsMobile(false);\n }\n };\n window.addEventListener('resize', convertToMobile);\n convertToMobile();\n return function () {\n window.removeEventListener('resize', convertToMobile);\n };\n }\n }, [mobileBreakpoint, isMobileBp, mobileBreakpointContainerRef]);\n return isMobile;\n}","\"use strict\";\n'use client';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"default\", {\n enumerable: true,\n get: function () {\n return _utils.createSvgIcon;\n }\n});\nvar _utils = require(\"@mui/material/utils\");","'use client';\n\nimport * as React from 'react';\nimport createSvgIcon from '../../utils/createSvgIcon';\n\n/**\n * @ignore - internal component.\n */\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon( /*#__PURE__*/_jsx(\"path\", {\n d: \"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z\"\n}), 'SuccessOutlined');","'use client';\n\nimport * as React from 'react';\nimport createSvgIcon from '../../utils/createSvgIcon';\n\n/**\n * @ignore - internal component.\n */\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon( /*#__PURE__*/_jsx(\"path\", {\n d: \"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z\"\n}), 'ReportProblemOutlined');","'use client';\n\nimport * as React from 'react';\nimport createSvgIcon from '../../utils/createSvgIcon';\n\n/**\n * @ignore - internal component.\n */\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon( /*#__PURE__*/_jsx(\"path\", {\n d: \"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z\"\n}), 'ErrorOutline');","'use client';\n\nimport * as React from 'react';\nimport createSvgIcon from '../../utils/createSvgIcon';\n\n/**\n * @ignore - internal component.\n */\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon( /*#__PURE__*/_jsx(\"path\", {\n d: \"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z\"\n}), 'InfoOutlined');","'use client';\n\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"action\", \"children\", \"className\", \"closeText\", \"color\", \"components\", \"componentsProps\", \"icon\", \"iconMapping\", \"onClose\", \"role\", \"severity\", \"slotProps\", \"slots\", \"variant\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { darken, lighten } from '@mui/system/colorManipulator';\nimport { styled, createUseThemeProps } from '../zero-styled';\nimport useSlot from '../utils/useSlot';\nimport capitalize from '../utils/capitalize';\nimport Paper from '../Paper';\nimport alertClasses, { getAlertUtilityClass } from './alertClasses';\nimport IconButton from '../IconButton';\nimport SuccessOutlinedIcon from '../internal/svg-icons/SuccessOutlined';\nimport ReportProblemOutlinedIcon from '../internal/svg-icons/ReportProblemOutlined';\nimport ErrorOutlineIcon from '../internal/svg-icons/ErrorOutline';\nimport InfoOutlinedIcon from '../internal/svg-icons/InfoOutlined';\nimport CloseIcon from '../internal/svg-icons/Close';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nconst useThemeProps = createUseThemeProps('MuiAlert');\nconst useUtilityClasses = ownerState => {\n const {\n variant,\n color,\n severity,\n classes\n } = ownerState;\n const slots = {\n root: ['root', `color${capitalize(color || severity)}`, `${variant}${capitalize(color || severity)}`, `${variant}`],\n icon: ['icon'],\n message: ['message'],\n action: ['action']\n };\n return composeClasses(slots, getAlertUtilityClass, classes);\n};\nconst AlertRoot = styled(Paper, {\n name: 'MuiAlert',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, styles[ownerState.variant], styles[`${ownerState.variant}${capitalize(ownerState.color || ownerState.severity)}`]];\n }\n})(({\n theme\n}) => {\n const getColor = theme.palette.mode === 'light' ? darken : lighten;\n const getBackgroundColor = theme.palette.mode === 'light' ? lighten : darken;\n return _extends({}, theme.typography.body2, {\n backgroundColor: 'transparent',\n display: 'flex',\n padding: '6px 16px',\n variants: [...Object.entries(theme.palette).filter(([, value]) => value.main && value.light).map(([color]) => ({\n props: {\n colorSeverity: color,\n variant: 'standard'\n },\n style: {\n color: theme.vars ? theme.vars.palette.Alert[`${color}Color`] : getColor(theme.palette[color].light, 0.6),\n backgroundColor: theme.vars ? theme.vars.palette.Alert[`${color}StandardBg`] : getBackgroundColor(theme.palette[color].light, 0.9),\n [`& .${alertClasses.icon}`]: theme.vars ? {\n color: theme.vars.palette.Alert[`${color}IconColor`]\n } : {\n color: theme.palette[color].main\n }\n }\n })), ...Object.entries(theme.palette).filter(([, value]) => value.main && value.light).map(([color]) => ({\n props: {\n colorSeverity: color,\n variant: 'outlined'\n },\n style: {\n color: theme.vars ? theme.vars.palette.Alert[`${color}Color`] : getColor(theme.palette[color].light, 0.6),\n border: `1px solid ${(theme.vars || theme).palette[color].light}`,\n [`& .${alertClasses.icon}`]: theme.vars ? {\n color: theme.vars.palette.Alert[`${color}IconColor`]\n } : {\n color: theme.palette[color].main\n }\n }\n })), ...Object.entries(theme.palette).filter(([, value]) => value.main && value.dark).map(([color]) => ({\n props: {\n colorSeverity: color,\n variant: 'filled'\n },\n style: _extends({\n fontWeight: theme.typography.fontWeightMedium\n }, theme.vars ? {\n color: theme.vars.palette.Alert[`${color}FilledColor`],\n backgroundColor: theme.vars.palette.Alert[`${color}FilledBg`]\n } : {\n backgroundColor: theme.palette.mode === 'dark' ? theme.palette[color].dark : theme.palette[color].main,\n color: theme.palette.getContrastText(theme.palette[color].main)\n })\n }))]\n });\n});\nconst AlertIcon = styled('div', {\n name: 'MuiAlert',\n slot: 'Icon',\n overridesResolver: (props, styles) => styles.icon\n})({\n marginRight: 12,\n padding: '7px 0',\n display: 'flex',\n fontSize: 22,\n opacity: 0.9\n});\nconst AlertMessage = styled('div', {\n name: 'MuiAlert',\n slot: 'Message',\n overridesResolver: (props, styles) => styles.message\n})({\n padding: '8px 0',\n minWidth: 0,\n overflow: 'auto'\n});\nconst AlertAction = styled('div', {\n name: 'MuiAlert',\n slot: 'Action',\n overridesResolver: (props, styles) => styles.action\n})({\n display: 'flex',\n alignItems: 'flex-start',\n padding: '4px 0 0 16px',\n marginLeft: 'auto',\n marginRight: -8\n});\nconst defaultIconMapping = {\n success: /*#__PURE__*/_jsx(SuccessOutlinedIcon, {\n fontSize: \"inherit\"\n }),\n warning: /*#__PURE__*/_jsx(ReportProblemOutlinedIcon, {\n fontSize: \"inherit\"\n }),\n error: /*#__PURE__*/_jsx(ErrorOutlineIcon, {\n fontSize: \"inherit\"\n }),\n info: /*#__PURE__*/_jsx(InfoOutlinedIcon, {\n fontSize: \"inherit\"\n })\n};\nconst Alert = /*#__PURE__*/React.forwardRef(function Alert(inProps, ref) {\n const props = useThemeProps({\n props: inProps,\n name: 'MuiAlert'\n });\n const {\n action,\n children,\n className,\n closeText = 'Close',\n color,\n components = {},\n componentsProps = {},\n icon,\n iconMapping = defaultIconMapping,\n onClose,\n role = 'alert',\n severity = 'success',\n slotProps = {},\n slots = {},\n variant = 'standard'\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const ownerState = _extends({}, props, {\n color,\n severity,\n variant,\n colorSeverity: color || severity\n });\n const classes = useUtilityClasses(ownerState);\n const externalForwardedProps = {\n slots: _extends({\n closeButton: components.CloseButton,\n closeIcon: components.CloseIcon\n }, slots),\n slotProps: _extends({}, componentsProps, slotProps)\n };\n const [CloseButtonSlot, closeButtonProps] = useSlot('closeButton', {\n elementType: IconButton,\n externalForwardedProps,\n ownerState\n });\n const [CloseIconSlot, closeIconProps] = useSlot('closeIcon', {\n elementType: CloseIcon,\n externalForwardedProps,\n ownerState\n });\n return /*#__PURE__*/_jsxs(AlertRoot, _extends({\n role: role,\n elevation: 0,\n ownerState: ownerState,\n className: clsx(classes.root, className),\n ref: ref\n }, other, {\n children: [icon !== false ? /*#__PURE__*/_jsx(AlertIcon, {\n ownerState: ownerState,\n className: classes.icon,\n children: icon || iconMapping[severity] || defaultIconMapping[severity]\n }) : null, /*#__PURE__*/_jsx(AlertMessage, {\n ownerState: ownerState,\n className: classes.message,\n children: children\n }), action != null ? /*#__PURE__*/_jsx(AlertAction, {\n ownerState: ownerState,\n className: classes.action,\n children: action\n }) : null, action == null && onClose ? /*#__PURE__*/_jsx(AlertAction, {\n ownerState: ownerState,\n className: classes.action,\n children: /*#__PURE__*/_jsx(CloseButtonSlot, _extends({\n size: \"small\",\n \"aria-label\": closeText,\n title: closeText,\n color: \"inherit\",\n onClick: onClose\n }, closeButtonProps, {\n children: /*#__PURE__*/_jsx(CloseIconSlot, _extends({\n fontSize: \"small\"\n }, closeIconProps))\n }))\n }) : null]\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? Alert.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * The action to display. It renders after the message, at the end of the alert.\n */\n action: PropTypes.node,\n /**\n * The content of the component.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * Override the default label for the *close popup* icon button.\n *\n * For localization purposes, you can use the provided [translations](/material-ui/guides/localization/).\n * @default 'Close'\n */\n closeText: PropTypes.string,\n /**\n * The color of the component. Unless provided, the value is taken from the `severity` prop.\n * It supports both default and custom theme colors, which can be added as shown in the\n * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).\n */\n color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['error', 'info', 'success', 'warning']), PropTypes.string]),\n /**\n * The components used for each slot inside.\n *\n * @deprecated use the `slots` prop instead. This prop will be removed in v7. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).\n *\n * @default {}\n */\n components: PropTypes.shape({\n CloseButton: PropTypes.elementType,\n CloseIcon: PropTypes.elementType\n }),\n /**\n * The extra props for the slot components.\n * You can override the existing props or add new ones.\n *\n * @deprecated use the `slotProps` prop instead. This prop will be removed in v7. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).\n *\n * @default {}\n */\n componentsProps: PropTypes.shape({\n closeButton: PropTypes.object,\n closeIcon: PropTypes.object\n }),\n /**\n * Override the icon displayed before the children.\n * Unless provided, the icon is mapped to the value of the `severity` prop.\n * Set to `false` to remove the `icon`.\n */\n icon: PropTypes.node,\n /**\n * The component maps the `severity` prop to a range of different icons,\n * for instance success to ``.\n * If you wish to change this mapping, you can provide your own.\n * Alternatively, you can use the `icon` prop to override the icon displayed.\n */\n iconMapping: PropTypes.shape({\n error: PropTypes.node,\n info: PropTypes.node,\n success: PropTypes.node,\n warning: PropTypes.node\n }),\n /**\n * Callback fired when the component requests to be closed.\n * When provided and no `action` prop is set, a close icon button is displayed that triggers the callback when clicked.\n * @param {React.SyntheticEvent} event The event source of the callback.\n */\n onClose: PropTypes.func,\n /**\n * The ARIA role attribute of the element.\n * @default 'alert'\n */\n role: PropTypes.string,\n /**\n * The severity of the alert. This defines the color and icon used.\n * @default 'success'\n */\n severity: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['error', 'info', 'success', 'warning']), PropTypes.string]),\n /**\n * The props used for each slot inside.\n * @default {}\n */\n slotProps: PropTypes.shape({\n closeButton: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n closeIcon: PropTypes.oneOfType([PropTypes.func, PropTypes.object])\n }),\n /**\n * The components used for each slot inside.\n * @default {}\n */\n slots: PropTypes.shape({\n closeButton: PropTypes.elementType,\n closeIcon: PropTypes.elementType\n }),\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * The variant to use.\n * @default 'standard'\n */\n variant: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['filled', 'outlined', 'standard']), PropTypes.string])\n} : void 0;\nexport default Alert;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getAlertUtilityClass(slot) {\n return generateUtilityClass('MuiAlert', slot);\n}\nconst alertClasses = generateUtilityClasses('MuiAlert', ['root', 'action', 'icon', 'message', 'filled', 'colorSuccess', 'colorInfo', 'colorWarning', 'colorError', 'filledSuccess', 'filledInfo', 'filledWarning', 'filledError', 'outlined', 'outlinedSuccess', 'outlinedInfo', 'outlinedWarning', 'outlinedError', 'standard', 'standardSuccess', 'standardInfo', 'standardWarning', 'standardError']);\nexport default alertClasses;","'use client';\n\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"absolute\", \"children\", \"className\", \"component\", \"flexItem\", \"light\", \"orientation\", \"role\", \"textAlign\", \"variant\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { alpha } from '@mui/system/colorManipulator';\nimport styled from '../styles/styled';\nimport useThemeProps from '../styles/useThemeProps';\nimport { getDividerUtilityClass } from './dividerClasses';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n absolute,\n children,\n classes,\n flexItem,\n light,\n orientation,\n textAlign,\n variant\n } = ownerState;\n const slots = {\n root: ['root', absolute && 'absolute', variant, light && 'light', orientation === 'vertical' && 'vertical', flexItem && 'flexItem', children && 'withChildren', children && orientation === 'vertical' && 'withChildrenVertical', textAlign === 'right' && orientation !== 'vertical' && 'textAlignRight', textAlign === 'left' && orientation !== 'vertical' && 'textAlignLeft'],\n wrapper: ['wrapper', orientation === 'vertical' && 'wrapperVertical']\n };\n return composeClasses(slots, getDividerUtilityClass, classes);\n};\nconst DividerRoot = styled('div', {\n name: 'MuiDivider',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, ownerState.absolute && styles.absolute, styles[ownerState.variant], ownerState.light && styles.light, ownerState.orientation === 'vertical' && styles.vertical, ownerState.flexItem && styles.flexItem, ownerState.children && styles.withChildren, ownerState.children && ownerState.orientation === 'vertical' && styles.withChildrenVertical, ownerState.textAlign === 'right' && ownerState.orientation !== 'vertical' && styles.textAlignRight, ownerState.textAlign === 'left' && ownerState.orientation !== 'vertical' && styles.textAlignLeft];\n }\n})(({\n theme,\n ownerState\n}) => _extends({\n margin: 0,\n // Reset browser default style.\n flexShrink: 0,\n borderWidth: 0,\n borderStyle: 'solid',\n borderColor: (theme.vars || theme).palette.divider,\n borderBottomWidth: 'thin'\n}, ownerState.absolute && {\n position: 'absolute',\n bottom: 0,\n left: 0,\n width: '100%'\n}, ownerState.light && {\n borderColor: theme.vars ? `rgba(${theme.vars.palette.dividerChannel} / 0.08)` : alpha(theme.palette.divider, 0.08)\n}, ownerState.variant === 'inset' && {\n marginLeft: 72\n}, ownerState.variant === 'middle' && ownerState.orientation === 'horizontal' && {\n marginLeft: theme.spacing(2),\n marginRight: theme.spacing(2)\n}, ownerState.variant === 'middle' && ownerState.orientation === 'vertical' && {\n marginTop: theme.spacing(1),\n marginBottom: theme.spacing(1)\n}, ownerState.orientation === 'vertical' && {\n height: '100%',\n borderBottomWidth: 0,\n borderRightWidth: 'thin'\n}, ownerState.flexItem && {\n alignSelf: 'stretch',\n height: 'auto'\n}), ({\n ownerState\n}) => _extends({}, ownerState.children && {\n display: 'flex',\n whiteSpace: 'nowrap',\n textAlign: 'center',\n border: 0,\n '&::before, &::after': {\n content: '\"\"',\n alignSelf: 'center'\n }\n}), ({\n theme,\n ownerState\n}) => _extends({}, ownerState.children && ownerState.orientation !== 'vertical' && {\n '&::before, &::after': {\n width: '100%',\n borderTop: `thin solid ${(theme.vars || theme).palette.divider}`\n }\n}), ({\n theme,\n ownerState\n}) => _extends({}, ownerState.children && ownerState.orientation === 'vertical' && {\n flexDirection: 'column',\n '&::before, &::after': {\n height: '100%',\n borderLeft: `thin solid ${(theme.vars || theme).palette.divider}`\n }\n}), ({\n ownerState\n}) => _extends({}, ownerState.textAlign === 'right' && ownerState.orientation !== 'vertical' && {\n '&::before': {\n width: '90%'\n },\n '&::after': {\n width: '10%'\n }\n}, ownerState.textAlign === 'left' && ownerState.orientation !== 'vertical' && {\n '&::before': {\n width: '10%'\n },\n '&::after': {\n width: '90%'\n }\n}));\nconst DividerWrapper = styled('span', {\n name: 'MuiDivider',\n slot: 'Wrapper',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.wrapper, ownerState.orientation === 'vertical' && styles.wrapperVertical];\n }\n})(({\n theme,\n ownerState\n}) => _extends({\n display: 'inline-block',\n paddingLeft: `calc(${theme.spacing(1)} * 1.2)`,\n paddingRight: `calc(${theme.spacing(1)} * 1.2)`\n}, ownerState.orientation === 'vertical' && {\n paddingTop: `calc(${theme.spacing(1)} * 1.2)`,\n paddingBottom: `calc(${theme.spacing(1)} * 1.2)`\n}));\nconst Divider = /*#__PURE__*/React.forwardRef(function Divider(inProps, ref) {\n const props = useThemeProps({\n props: inProps,\n name: 'MuiDivider'\n });\n const {\n absolute = false,\n children,\n className,\n component = children ? 'div' : 'hr',\n flexItem = false,\n light = false,\n orientation = 'horizontal',\n role = component !== 'hr' ? 'separator' : undefined,\n textAlign = 'center',\n variant = 'fullWidth'\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const ownerState = _extends({}, props, {\n absolute,\n component,\n flexItem,\n light,\n orientation,\n role,\n textAlign,\n variant\n });\n const classes = useUtilityClasses(ownerState);\n return /*#__PURE__*/_jsx(DividerRoot, _extends({\n as: component,\n className: clsx(classes.root, className),\n role: role,\n ref: ref,\n ownerState: ownerState\n }, other, {\n children: children ? /*#__PURE__*/_jsx(DividerWrapper, {\n className: classes.wrapper,\n ownerState: ownerState,\n children: children\n }) : null\n }));\n});\n\n/**\n * The following flag is used to ensure that this component isn't tabbable i.e.\n * does not get highlight/focus inside of MUI List.\n */\nDivider.muiSkipListHighlight = true;\nprocess.env.NODE_ENV !== \"production\" ? Divider.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * Absolutely position the element.\n * @default false\n */\n absolute: PropTypes.bool,\n /**\n * The content of the component.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: PropTypes.elementType,\n /**\n * If `true`, a vertical divider will have the correct height when used in flex container.\n * (By default, a vertical divider will have a calculated height of `0px` if it is the child of a flex container.)\n * @default false\n */\n flexItem: PropTypes.bool,\n /**\n * If `true`, the divider will have a lighter color.\n * @default false\n * @deprecated Use (or any opacity or color) instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)\n */\n light: PropTypes.bool,\n /**\n * The component orientation.\n * @default 'horizontal'\n */\n orientation: PropTypes.oneOf(['horizontal', 'vertical']),\n /**\n * @ignore\n */\n role: PropTypes /* @typescript-to-proptypes-ignore */.string,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * The text alignment.\n * @default 'center'\n */\n textAlign: PropTypes.oneOf(['center', 'left', 'right']),\n /**\n * The variant to use.\n * @default 'fullWidth'\n */\n variant: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['fullWidth', 'inset', 'middle']), PropTypes.string])\n} : void 0;\nexport default Divider;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getDividerUtilityClass(slot) {\n return generateUtilityClass('MuiDivider', slot);\n}\nconst dividerClasses = generateUtilityClasses('MuiDivider', ['root', 'absolute', 'fullWidth', 'inset', 'middle', 'flexItem', 'light', 'vertical', 'withChildren', 'withChildrenVertical', 'textAlignRight', 'textAlignLeft', 'wrapper', 'wrapperVertical']);\nexport default dividerClasses;","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"children\", \"className\", \"color\", \"component\", \"fontSize\", \"htmlColor\", \"inheritViewBox\", \"titleAccess\", \"viewBox\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport capitalize from '../utils/capitalize';\nimport useThemeProps from '../styles/useThemeProps';\nimport styled from '../styles/styled';\nimport { getSvgIconUtilityClass } from './svgIconClasses';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n color,\n fontSize,\n classes\n } = ownerState;\n const slots = {\n root: ['root', color !== 'inherit' && `color${capitalize(color)}`, `fontSize${capitalize(fontSize)}`]\n };\n return composeClasses(slots, getSvgIconUtilityClass, classes);\n};\nconst SvgIconRoot = styled('svg', {\n name: 'MuiSvgIcon',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, ownerState.color !== 'inherit' && styles[`color${capitalize(ownerState.color)}`], styles[`fontSize${capitalize(ownerState.fontSize)}`]];\n }\n})(({\n theme,\n ownerState\n}) => {\n var _theme$transitions, _theme$transitions$cr, _theme$transitions2, _theme$typography, _theme$typography$pxT, _theme$typography2, _theme$typography2$px, _theme$typography3, _theme$typography3$px, _palette$ownerState$c, _palette, _palette2, _palette3;\n return {\n userSelect: 'none',\n width: '1em',\n height: '1em',\n display: 'inline-block',\n // the will define the property that has `currentColor`\n // for example heroicons uses fill=\"none\" and stroke=\"currentColor\"\n fill: ownerState.hasSvgAsChild ? undefined : 'currentColor',\n flexShrink: 0,\n transition: (_theme$transitions = theme.transitions) == null || (_theme$transitions$cr = _theme$transitions.create) == null ? void 0 : _theme$transitions$cr.call(_theme$transitions, 'fill', {\n duration: (_theme$transitions2 = theme.transitions) == null || (_theme$transitions2 = _theme$transitions2.duration) == null ? void 0 : _theme$transitions2.shorter\n }),\n fontSize: {\n inherit: 'inherit',\n small: ((_theme$typography = theme.typography) == null || (_theme$typography$pxT = _theme$typography.pxToRem) == null ? void 0 : _theme$typography$pxT.call(_theme$typography, 20)) || '1.25rem',\n medium: ((_theme$typography2 = theme.typography) == null || (_theme$typography2$px = _theme$typography2.pxToRem) == null ? void 0 : _theme$typography2$px.call(_theme$typography2, 24)) || '1.5rem',\n large: ((_theme$typography3 = theme.typography) == null || (_theme$typography3$px = _theme$typography3.pxToRem) == null ? void 0 : _theme$typography3$px.call(_theme$typography3, 35)) || '2.1875rem'\n }[ownerState.fontSize],\n // TODO v5 deprecate, v6 remove for sx\n color: (_palette$ownerState$c = (_palette = (theme.vars || theme).palette) == null || (_palette = _palette[ownerState.color]) == null ? void 0 : _palette.main) != null ? _palette$ownerState$c : {\n action: (_palette2 = (theme.vars || theme).palette) == null || (_palette2 = _palette2.action) == null ? void 0 : _palette2.active,\n disabled: (_palette3 = (theme.vars || theme).palette) == null || (_palette3 = _palette3.action) == null ? void 0 : _palette3.disabled,\n inherit: undefined\n }[ownerState.color]\n };\n});\nconst SvgIcon = /*#__PURE__*/React.forwardRef(function SvgIcon(inProps, ref) {\n const props = useThemeProps({\n props: inProps,\n name: 'MuiSvgIcon'\n });\n const {\n children,\n className,\n color = 'inherit',\n component = 'svg',\n fontSize = 'medium',\n htmlColor,\n inheritViewBox = false,\n titleAccess,\n viewBox = '0 0 24 24'\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const hasSvgAsChild = /*#__PURE__*/React.isValidElement(children) && children.type === 'svg';\n const ownerState = _extends({}, props, {\n color,\n component,\n fontSize,\n instanceFontSize: inProps.fontSize,\n inheritViewBox,\n viewBox,\n hasSvgAsChild\n });\n const more = {};\n if (!inheritViewBox) {\n more.viewBox = viewBox;\n }\n const classes = useUtilityClasses(ownerState);\n return /*#__PURE__*/_jsxs(SvgIconRoot, _extends({\n as: component,\n className: clsx(classes.root, className),\n focusable: \"false\",\n color: htmlColor,\n \"aria-hidden\": titleAccess ? undefined : true,\n role: titleAccess ? 'img' : undefined,\n ref: ref\n }, more, other, hasSvgAsChild && children.props, {\n ownerState: ownerState,\n children: [hasSvgAsChild ? children.props.children : children, titleAccess ? /*#__PURE__*/_jsx(\"title\", {\n children: titleAccess\n }) : null]\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? SvgIcon.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * Node passed into the SVG element.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The color of the component.\n * It supports both default and custom theme colors, which can be added as shown in the\n * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).\n * You can use the `htmlColor` prop to apply a color attribute to the SVG element.\n * @default 'inherit'\n */\n color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['inherit', 'action', 'disabled', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), PropTypes.string]),\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: PropTypes.elementType,\n /**\n * The fontSize applied to the icon. Defaults to 24px, but can be configure to inherit font size.\n * @default 'medium'\n */\n fontSize: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['inherit', 'large', 'medium', 'small']), PropTypes.string]),\n /**\n * Applies a color attribute to the SVG element.\n */\n htmlColor: PropTypes.string,\n /**\n * If `true`, the root node will inherit the custom `component`'s viewBox and the `viewBox`\n * prop will be ignored.\n * Useful when you want to reference a custom `component` and have `SvgIcon` pass that\n * `component`'s viewBox to the root node.\n * @default false\n */\n inheritViewBox: PropTypes.bool,\n /**\n * The shape-rendering attribute. The behavior of the different options is described on the\n * [MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/shape-rendering).\n * If you are having issues with blurry icons you should investigate this prop.\n */\n shapeRendering: PropTypes.string,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * Provides a human-readable title for the element that contains it.\n * https://www.w3.org/TR/SVG-access/#Equivalent\n */\n titleAccess: PropTypes.string,\n /**\n * Allows you to redefine what the coordinates without units mean inside an SVG element.\n * For example, if the SVG element is 500 (width) by 200 (height),\n * and you pass viewBox=\"0 0 50 20\",\n * this means that the coordinates inside the SVG will go from the top left corner (0,0)\n * to bottom right (50,20) and each unit will be worth 10px.\n * @default '0 0 24 24'\n */\n viewBox: PropTypes.string\n} : void 0;\nSvgIcon.muiName = 'SvgIcon';\nexport default SvgIcon;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getSvgIconUtilityClass(slot) {\n return generateUtilityClass('MuiSvgIcon', slot);\n}\nconst svgIconClasses = generateUtilityClasses('MuiSvgIcon', ['root', 'colorPrimary', 'colorSecondary', 'colorAction', 'colorError', 'colorDisabled', 'fontSizeInherit', 'fontSizeSmall', 'fontSizeMedium', 'fontSizeLarge']);\nexport default svgIconClasses;","'use client';\n\nimport * as React from 'react';\nimport createSvgIcon from '../../utils/createSvgIcon';\n\n/**\n * @ignore - internal component.\n *\n * Alias to `Clear`.\n */\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon( /*#__PURE__*/_jsx(\"path\", {\n d: \"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z\"\n}), 'Close');","'use client';\n\nimport * as React from 'react';\nimport useEnhancedEffect from '@mui/utils/useEnhancedEffect';\nimport { getThemeProps } from '../useThemeProps';\nimport useTheme from '../useThemeWithoutDefault';\n\n/**\n * @deprecated Not used internally. Use `MediaQueryListEvent` from lib.dom.d.ts instead.\n */\n\n/**\n * @deprecated Not used internally. Use `MediaQueryList` from lib.dom.d.ts instead.\n */\n\n/**\n * @deprecated Not used internally. Use `(event: MediaQueryListEvent) => void` instead.\n */\n\nfunction useMediaQueryOld(query, defaultMatches, matchMedia, ssrMatchMedia, noSsr) {\n const [match, setMatch] = React.useState(() => {\n if (noSsr && matchMedia) {\n return matchMedia(query).matches;\n }\n if (ssrMatchMedia) {\n return ssrMatchMedia(query).matches;\n }\n\n // Once the component is mounted, we rely on the\n // event listeners to return the correct matches value.\n return defaultMatches;\n });\n useEnhancedEffect(() => {\n let active = true;\n if (!matchMedia) {\n return undefined;\n }\n const queryList = matchMedia(query);\n const updateMatch = () => {\n // Workaround Safari wrong implementation of matchMedia\n // TODO can we remove it?\n // https://github.com/mui/material-ui/pull/17315#issuecomment-528286677\n if (active) {\n setMatch(queryList.matches);\n }\n };\n updateMatch();\n // TODO: Use `addEventListener` once support for Safari < 14 is dropped\n queryList.addListener(updateMatch);\n return () => {\n active = false;\n queryList.removeListener(updateMatch);\n };\n }, [query, matchMedia]);\n return match;\n}\n\n// eslint-disable-next-line no-useless-concat -- Workaround for https://github.com/webpack/webpack/issues/14814\nconst maybeReactUseSyncExternalStore = React['useSyncExternalStore' + ''];\nfunction useMediaQueryNew(query, defaultMatches, matchMedia, ssrMatchMedia, noSsr) {\n const getDefaultSnapshot = React.useCallback(() => defaultMatches, [defaultMatches]);\n const getServerSnapshot = React.useMemo(() => {\n if (noSsr && matchMedia) {\n return () => matchMedia(query).matches;\n }\n if (ssrMatchMedia !== null) {\n const {\n matches\n } = ssrMatchMedia(query);\n return () => matches;\n }\n return getDefaultSnapshot;\n }, [getDefaultSnapshot, query, ssrMatchMedia, noSsr, matchMedia]);\n const [getSnapshot, subscribe] = React.useMemo(() => {\n if (matchMedia === null) {\n return [getDefaultSnapshot, () => () => {}];\n }\n const mediaQueryList = matchMedia(query);\n return [() => mediaQueryList.matches, notify => {\n // TODO: Use `addEventListener` once support for Safari < 14 is dropped\n mediaQueryList.addListener(notify);\n return () => {\n mediaQueryList.removeListener(notify);\n };\n }];\n }, [getDefaultSnapshot, matchMedia, query]);\n const match = maybeReactUseSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);\n return match;\n}\nexport default function useMediaQuery(queryInput, options = {}) {\n const theme = useTheme();\n // Wait for jsdom to support the match media feature.\n // All the browsers MUI support have this built-in.\n // This defensive check is here for simplicity.\n // Most of the time, the match media logic isn't central to people tests.\n const supportMatchMedia = typeof window !== 'undefined' && typeof window.matchMedia !== 'undefined';\n const {\n defaultMatches = false,\n matchMedia = supportMatchMedia ? window.matchMedia : null,\n ssrMatchMedia = null,\n noSsr = false\n } = getThemeProps({\n name: 'MuiUseMediaQuery',\n props: options,\n theme\n });\n if (process.env.NODE_ENV !== 'production') {\n if (typeof queryInput === 'function' && theme === null) {\n console.error(['MUI: The `query` argument provided is invalid.', 'You are providing a function without a theme in the context.', 'One of the parent elements needs to use a ThemeProvider.'].join('\\n'));\n }\n }\n let query = typeof queryInput === 'function' ? queryInput(theme) : queryInput;\n query = query.replace(/^@media( ?)/m, '');\n\n // TODO: Drop `useMediaQueryOld` and use `use-sync-external-store` shim in `useMediaQueryNew` once the package is stable\n const useMediaQueryImplementation = maybeReactUseSyncExternalStore !== undefined ? useMediaQueryNew : useMediaQueryOld;\n const match = useMediaQueryImplementation(query, defaultMatches, matchMedia, ssrMatchMedia, noSsr);\n if (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line react-hooks/rules-of-hooks\n React.useDebugValue({\n query,\n match\n });\n }\n return match;\n}","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport SvgIcon from '../SvgIcon';\n\n/**\n * Private module reserved for @mui packages.\n */\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default function createSvgIcon(path, displayName) {\n function Component(props, ref) {\n return /*#__PURE__*/_jsx(SvgIcon, _extends({\n \"data-testid\": `${displayName}Icon`,\n ref: ref\n }, props, {\n children: path\n }));\n }\n if (process.env.NODE_ENV !== 'production') {\n // Need to set `displayName` on the inner component for React.memo.\n // React prior to 16.14 ignores `displayName` on the wrapper.\n Component.displayName = `${displayName}Icon`;\n }\n Component.muiName = SvgIcon.muiName;\n return /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(Component));\n}","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"className\", \"elementType\", \"ownerState\", \"externalForwardedProps\", \"getSlotOwnerState\", \"internalForwardedProps\"],\n _excluded2 = [\"component\", \"slots\", \"slotProps\"],\n _excluded3 = [\"component\"];\nimport useForkRef from '@mui/utils/useForkRef';\nimport { appendOwnerState, resolveComponentProps, mergeSlotProps } from '@mui/base/utils';\n/**\n * An internal function to create a Material UI slot.\n *\n * This is an advanced version of Base UI `useSlotProps` because Material UI allows leaf component to be customized via `component` prop\n * while Base UI does not need to support leaf component customization.\n *\n * @param {string} name: name of the slot\n * @param {object} parameters\n * @returns {[Slot, slotProps]} The slot's React component and the slot's props\n *\n * Note: the returned slot's props\n * - will never contain `component` prop.\n * - might contain `as` prop.\n */\nexport default function useSlot(\n/**\n * The slot's name. All Material UI components should have `root` slot.\n *\n * If the name is `root`, the logic behaves differently from other slots,\n * e.g. the `externalForwardedProps` are spread to `root` slot but not other slots.\n */\nname, parameters) {\n const {\n className,\n elementType: initialElementType,\n ownerState,\n externalForwardedProps,\n getSlotOwnerState,\n internalForwardedProps\n } = parameters,\n useSlotPropsParams = _objectWithoutPropertiesLoose(parameters, _excluded);\n const {\n component: rootComponent,\n slots = {\n [name]: undefined\n },\n slotProps = {\n [name]: undefined\n }\n } = externalForwardedProps,\n other = _objectWithoutPropertiesLoose(externalForwardedProps, _excluded2);\n const elementType = slots[name] || initialElementType;\n\n // `slotProps[name]` can be a callback that receives the component's ownerState.\n // `resolvedComponentsProps` is always a plain object.\n const resolvedComponentsProps = resolveComponentProps(slotProps[name], ownerState);\n const _mergeSlotProps = mergeSlotProps(_extends({\n className\n }, useSlotPropsParams, {\n externalForwardedProps: name === 'root' ? other : undefined,\n externalSlotProps: resolvedComponentsProps\n })),\n {\n props: {\n component: slotComponent\n },\n internalRef\n } = _mergeSlotProps,\n mergedProps = _objectWithoutPropertiesLoose(_mergeSlotProps.props, _excluded3);\n const ref = useForkRef(internalRef, resolvedComponentsProps == null ? void 0 : resolvedComponentsProps.ref, parameters.ref);\n const slotOwnerState = getSlotOwnerState ? getSlotOwnerState(mergedProps) : {};\n const finalOwnerState = _extends({}, ownerState, slotOwnerState);\n const LeafComponent = name === 'root' ? slotComponent || rootComponent : slotComponent;\n const props = appendOwnerState(elementType, _extends({}, name === 'root' && !rootComponent && !slots[name] && internalForwardedProps, name !== 'root' && !slots[name] && internalForwardedProps, mergedProps, LeafComponent && {\n as: LeafComponent\n }, {\n ref\n }), finalOwnerState);\n Object.keys(slotOwnerState).forEach(propName => {\n delete props[propName];\n });\n return [elementType, props];\n}","function _arrayLikeToArray(r, a) {\n (null == a || a > r.length) && (a = r.length);\n for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];\n return n;\n}\nexport { _arrayLikeToArray as default };","import arrayWithHoles from \"./arrayWithHoles.js\";\nimport iterableToArrayLimit from \"./iterableToArrayLimit.js\";\nimport unsupportedIterableToArray from \"./unsupportedIterableToArray.js\";\nimport nonIterableRest from \"./nonIterableRest.js\";\nfunction _slicedToArray(r, e) {\n return arrayWithHoles(r) || iterableToArrayLimit(r, e) || unsupportedIterableToArray(r, e) || nonIterableRest();\n}\nexport { _slicedToArray as default };","function _arrayWithHoles(r) {\n if (Array.isArray(r)) return r;\n}\nexport { _arrayWithHoles as default };","function _iterableToArrayLimit(r, l) {\n var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"];\n if (null != t) {\n var e,\n n,\n i,\n u,\n a = [],\n f = !0,\n o = !1;\n try {\n if (i = (t = t.call(r)).next, 0 === l) {\n if (Object(t) !== t) return;\n f = !1;\n } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);\n } catch (r) {\n o = !0, n = r;\n } finally {\n try {\n if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return;\n } finally {\n if (o) throw n;\n }\n }\n return a;\n }\n}\nexport { _iterableToArrayLimit as default };","function _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\nexport { _nonIterableRest as default };","import arrayLikeToArray from \"./arrayLikeToArray.js\";\nfunction _unsupportedIterableToArray(r, a) {\n if (r) {\n if (\"string\" == typeof r) return arrayLikeToArray(r, a);\n var t = {}.toString.call(r).slice(8, -1);\n return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? arrayLikeToArray(r, a) : void 0;\n }\n}\nexport { _unsupportedIterableToArray as default };"],"names":["getWidthOfButton","buttonStyles","buttonProps","width","fullWidth","getRecommendationRecordId","recommendationRecordId","placementId","DEFAULT_QUOTE_INFO","branchNumber","endUserInformation","quoteGuid","quoteLinesItems","quoteNumber","quoteInformationAtom","atom","default","key","parseJSON","input","fallback","JSON","parse","e","generateQuoteLinesPayload","quoteLines","requestType","quoteInfo","pricingDetails","localStorage","getItem","endUserString","endUserData","type","IndustrySegmentation","getPricingEndUserInfo","attValue","endUserAttIndustrySegmentation","parameter","quoteLinePayload","action","attributeName","attributeValue","cmptoken","discount","entire_markUp","entire_markUpUnit","isChangeTax","isEUEnabled","lineProfitSeleced","profitValue","quoteguid","quotenumber","shipping","tax","QuoteLinesItems","quotelinesitems","endUserLocalData","AddressSequenceId","CmpAppUuid","ContactId","EndUserAcopId","IngramEndUserId","endUserObj","endUserAcopId","endUserAddressSeqId","endUserContactId","ingramEndUserId","Object","values","some","value","getSkuQuantity","sku","bundledSkus","bundleSkuQuantity","Array","isArray","length","currentBundleSku","find","bSku","bundledSku","quantity","getRevisionNumber","quoteIdVal","revision","splitRevision","toString","split","getSubscriptionOptions","allOptions","selectedOptions","map","selectedOption","option","opt","subscriptionOption","resourceApsId","subscriptionOptionResource","resources","resource","resourceId","optionFees","fees","fee","code","msrp","parseFloat","price","recurringPriceModel","setupFees","recurringpricemodel","recurringTiers","subscription","parentSubscriptionPlan","billingPeriods","Duration","billingPeriod","unit","billingPeriodUnit","duplicateselected","finSystemProfile","harmonizedCode","imageUrl","subscriptionGroupImage","isCloudProduct","lineId","longdescription","description","title","markUp","markUpUnit","planApsid","planApsID","planId","planName","pricingSource","minUnits","remainingQuantity","shortDescription","subscriptionPeriods","selectedSubscriptionPeriod","units","included","includedUnits","max","maxUnits","min","vendorNumber","xVendorCode","vpn","filter","getCMPToken","jsonToken","access_token","QUOTE_EDITOR_URL","useAddToQuote","location","useLocation","isPending","mutateAsync","getProductInformation","useQuoteProductInformation","apiPost","useApiPost","useMutation","mutationFn","body","addLineItems","async","useAddLineItems","setQuoteInfo","useRecoilState","showQuoteButton","Boolean","clearQuote","useCallback","useEffect","path","pathname","includes","addToQuote","productType","product","productItems","generateProductInformationPayload","skuVpnNumber","push","Number","trim","bundleSkus","forEach","bundle","isKitComponent","slice","skus","newQuoteLines","generateProductLines","products","validSkuArray","quoteDetails","profitPriceData","editQuotelineItems","filteredProducts","validSku","skuVPNNumber","toUpperCase","productDetails","ingramPartNumber","vendorPartNumber","bundleSKU","element","discountResponse","globalpartnumber","imageurl","productImage","isParentItem","longDescription","markupValue","markupUnit","skuvpn","bundleQuantity","newBundleRes","isChildItem","parentProduct","validSkus","quoteLinesPayload","addTSProducts","console","log","newPlanOptions","updatedPlanOptions","subscriptionOptions","planOptionsExists","line","keys","updatedSubscriptionOptions","lineNumber","sequenceNumber","pnaResponse","productAttributes","panResponse","addCloudProducts","isLoading","quoteEditorURL","setGlobalQuoteInfo","useGetQuoteSummaryQuery","sessionStorage","params","quoteName","revisonNumber","productSummary","apiGet","useApiGet","skulist","useProductSummaryMutate","quoteDetailsAPI","useApiQuery","gcTime","isSuccess","data","planLine","isIdle","skuIds","plan","mutate","join","productSummaries","totalOptions","total","quoteSummary","subOptions","AddToQuoteToast","props","onHideToast","show","toastIntent","translate","useTranslate","navigate","useNavigate","handleGoToQuote","icon","header","timer","setTimeout","clearTimeout","React","Toast","actionButtonText","intent","onActionButtonClick","onCloseButtonClick","open","position","supportingText","ButtonType","buttonAddlProps","buttonType","dataAttributes","enableToast","engineId","theme","useTheme","setButtonProps","useState","isAdding","isSuccessful","addToQuoteMessage","setAddToQuoteMessage","getButtonText","iconwithcheckmark","Icon","iconId","showText","textwithicon","text","Box","alignItems","display","gap","LoadingIndicator","color","loadingStyle","spinnerSize","variant","additionalAttributes","Tooltip","label","style","StyledButton","_extends","disabled","onClick","isNonTransactional","partNumber","vendorName","vendorname","vendorcode","size","startIcon","sx","backgroundColor","palette","success","undefined","styled","Button","minWidth","outline","p","allSubscriptionOptions","addlButtonProps","buttonText","cartRequest","isMandatoryPlan","planQty","planTitle","validationOptions","setValidationOptions","option1","option2","result","validationError","setValidationError","cartValidationPopup","setCartValidationPopup","subscriptionPlan","exclusiveItemForReseller","disableCart","useMemo","charAt","toLowerCase","existingQuoteData","dependentExists","getExistingDependents","checkResellerOnly","isEndUserSelected","obj","subscriptionPeriod","subscriptionPeriodSummary","serviceTemplateId","subscriptionAddtoQuoteBody","ValidationPopup","mutuallyExclPopup","setMutuallyExclPopup","validationResult","existingCartData","cartSummary","innerPTR","resellerOnly","ptr","isResellerOnly","dictionary","Map","cartItem","found","dependson","dependent","dependentRef","has","returnArray","get","set","resourceLine","el","optionA","optionB","container","handlePrimaryButtonClick","Dialog","backgroundBlur","backgroundType","checkbox","dialogFooterType","dialogHeaderText","handleClose","headerPaddingBottom","helpIcon","minHeight","onPrimaryButtonClick","padding","primaryButtonProps","id","primaryButtonText","secondaryButtonProps","showCloseButton","showDialogFooter","StyledBox","Typography","paddingTop","_excluded","sizeMap","lg","md","sm","xl","getGap","controlledSize","getValue","val","_color","supportingTextColor","_props$variant","others","justifyItems","overflow","children","gray","margin","thickness","disableShrink","animationDuration","primary","concat","circle","strokeLinecap","align","flexWrap","wordBreak","_Icon","TOAST_MAX_WIDTH","TERTIARY_GRAY_BG_COLOR","closeButtonHoverBgMap","error","information","neutral","warning","_getTypographyColor","_props$autoHideDurati","autoHideDuration","_props$actionButtonPr","actionButtonProps","_props$compact","compact","_props$intent","mobileBreakpoint","mobileBreakpointContainerRef","_props$mobilePosition","mobilePosition","_props$position","isMobile","useConvertToMobile","u","shouldCompact","positionArray","vertical","horizontal","mobileSpacing","spacing","desktopSpacing","positionStyleMap","center","left","transform","webkitTransform","right","bottom","top","getTypographyColor","common","white","actionSxProps","otherActionButtonProps","bodyPaddingL","bodyPaddingR","_useState","_useState2","iconWidth","setIconWidth","iconRef","useRef","current","offsetWidth","ActionButton","borderRadius","marginBottom","marginLeft","marginRight","marginTop","textTransform","CloseButton","I","Snackbar","anchorOrigin","onClose","Alert","A","getIconColor","boxShadow","shadows","SHADOWS","xs","maxWidth","borderColor","getBackgroundAndBorderColor","Stack","direction","ref","mt","flex","className","pb","pt","useIsDown","breakpoint","screenOnly","arguments","inputQuery","breakpoints","down","setIsMobile","isMobileBp","convertToMobile","window","innerWidth","addEventListener","removeEventListener","defineProperty","exports","enumerable","_utils","createSvgIcon","d","useThemeProps","AlertRoot","Paper","name","slot","overridesResolver","styles","ownerState","root","capitalize","severity","getColor","mode","getBackgroundColor","typography","body2","variants","entries","main","light","colorSeverity","vars","alertClasses","border","dark","fontWeight","fontWeightMedium","getContrastText","AlertIcon","fontSize","opacity","AlertMessage","message","AlertAction","defaultIconMapping","SuccessOutlined","ReportProblemOutlined","ErrorOutline","info","InfoOutlined","inProps","closeText","components","componentsProps","iconMapping","role","slotProps","slots","other","classes","composeClasses","useUtilityClasses","externalForwardedProps","closeButton","closeIcon","CloseIcon","CloseButtonSlot","closeButtonProps","useSlot","elementType","IconButton","CloseIconSlot","closeIconProps","Close","elevation","clsx","getAlertUtilityClass","DividerRoot","absolute","orientation","flexItem","withChildren","withChildrenVertical","textAlign","textAlignRight","textAlignLeft","flexShrink","borderWidth","borderStyle","divider","borderBottomWidth","dividerChannel","height","borderRightWidth","alignSelf","whiteSpace","content","borderTop","flexDirection","borderLeft","DividerWrapper","wrapper","wrapperVertical","paddingLeft","paddingRight","paddingBottom","Divider","component","as","muiSkipListHighlight","getDividerUtilityClass","SvgIconRoot","_theme$transitions","_theme$transitions$cr","_theme$transitions2","_theme$typography","_theme$typography$pxT","_theme$typography2","_theme$typography2$px","_theme$typography3","_theme$typography3$px","_palette$ownerState$c","_palette","_palette2","_palette3","userSelect","fill","hasSvgAsChild","transition","transitions","create","call","duration","shorter","inherit","small","pxToRem","medium","large","active","SvgIcon","htmlColor","inheritViewBox","titleAccess","viewBox","instanceFontSize","more","focusable","muiName","getSvgIconUtilityClass","useMediaQueryOld","query","defaultMatches","matchMedia","ssrMatchMedia","noSsr","match","setMatch","matches","queryList","updateMatch","addListener","removeListener","maybeReactUseSyncExternalStore","useMediaQueryNew","getDefaultSnapshot","getServerSnapshot","getSnapshot","subscribe","mediaQueryList","notify","useMediaQuery","queryInput","options","supportMatchMedia","replace","displayName","Component","_excluded2","_excluded3","parameters","initialElementType","getSlotOwnerState","internalForwardedProps","useSlotPropsParams","rootComponent","resolvedComponentsProps","_mergeSlotProps","externalSlotProps","slotComponent","internalRef","mergedProps","slotOwnerState","finalOwnerState","LeafComponent","propName","_arrayLikeToArray","r","a","n","_slicedToArray","l","t","Symbol","iterator","i","f","o","next","done","unsupportedIterableToArray","TypeError","_unsupportedIterableToArray","constructor","from","test"],"sourceRoot":""}