@dropins/storefront-quote-management 1.2.0 → 1.2.1-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/api/acceptQuoteTemplate/acceptQuoteTemplate.d.ts +1 -2
- package/api/acceptQuoteTemplate/graphql/acceptQuoteTemplate.d.ts +0 -1
- package/api/acceptQuoteTemplate/index.d.ts +0 -1
- package/api/addQuoteTemplateLineItemNote/addQuoteTemplateLineItemNote.d.ts +1 -2
- package/api/addQuoteTemplateLineItemNote/graphql/setQuoteTemplateLineItemNote.d.ts +0 -1
- package/api/addQuoteTemplateLineItemNote/index.d.ts +0 -1
- package/api/addQuoteTemplateShippingAddress/addQuoteTemplateShippingAddress.d.ts +1 -2
- package/api/addQuoteTemplateShippingAddress/graphql/setNegotiableQuoteTemplateShippingAddress.d.ts +0 -1
- package/api/addQuoteTemplateShippingAddress/index.d.ts +0 -1
- package/api/cancelQuoteTemplate/cancelQuoteTemplate.d.ts +1 -2
- package/api/cancelQuoteTemplate/graphql/cancelQuoteTemplate.d.ts +0 -1
- package/api/cancelQuoteTemplate/index.d.ts +0 -1
- package/api/closeNegotiableQuote/closeNegotiableQuote.d.ts +0 -1
- package/api/closeNegotiableQuote/graphql/CloseNegotiableQuoteMutation.d.ts +0 -1
- package/api/closeNegotiableQuote/index.d.ts +0 -1
- package/api/createQuoteTemplate/createQuoteTemplate.d.ts +8 -2
- package/api/createQuoteTemplate/graphql/createQuoteTemplate.d.ts +0 -1
- package/api/createQuoteTemplate/index.d.ts +0 -1
- package/api/deleteQuote/deleteQuote.d.ts +0 -1
- package/api/deleteQuote/graphql/DeleteQuoteMutation.d.ts +0 -1
- package/api/deleteQuote/index.d.ts +0 -1
- package/api/deleteQuoteTemplate/deleteQuoteTemplate.d.ts +0 -1
- package/api/deleteQuoteTemplate/graphql/deleteQuoteTemplate.d.ts +0 -1
- package/api/deleteQuoteTemplate/index.d.ts +0 -1
- package/api/duplicateNegotiableQuote/duplicateNegotiableQuote.d.ts +8 -2
- package/api/duplicateNegotiableQuote/graphql/duplicateNegotiableQuoteMutation.d.ts +0 -1
- package/api/duplicateNegotiableQuote/index.d.ts +0 -1
- package/api/fetch-graphql/fetch-graphql.d.ts +3 -4
- package/api/fetch-graphql/index.d.ts +0 -1
- package/api/generateQuoteFromTemplate/generateQuoteFromTemplate.d.ts +0 -1
- package/api/generateQuoteFromTemplate/graphql/generateNegotiableQuoteFromTemplate.d.ts +0 -1
- package/api/generateQuoteFromTemplate/index.d.ts +0 -1
- package/api/getQuoteData/getQuoteData.d.ts +1 -2
- package/api/getQuoteData/graphql/QuoteDataQuery.d.ts +0 -1
- package/api/getQuoteData/index.d.ts +0 -1
- package/api/getQuoteTemplateData/getQuoteTemplateData.d.ts +8 -2
- package/api/getQuoteTemplateData/graphql/getQuoteTemplateData.d.ts +0 -1
- package/api/getQuoteTemplateData/index.d.ts +0 -1
- package/api/getQuoteTemplates/getQuoteTemplates.d.ts +8 -2
- package/api/getQuoteTemplates/graphql/getQuoteTemplates.d.ts +0 -1
- package/api/getQuoteTemplates/index.d.ts +0 -1
- package/api/getStoreConfig/getStoreConfig.d.ts +8 -2
- package/api/getStoreConfig/graphql/StoreConfigQuery.d.ts +0 -1
- package/api/getStoreConfig/index.d.ts +0 -1
- package/api/graphql/NegotiableQuoteAddressFragment.d.ts +0 -1
- package/api/graphql/NegotiableQuoteFragment.d.ts +0 -1
- package/api/graphql/NegotiableQuoteListFragment.d.ts +0 -1
- package/api/graphql/NegotiableQuoteTemplateFragment.d.ts +0 -1
- package/api/graphql/SearchResultPageInfoFragment.d.ts +0 -1
- package/api/graphql/ShippingMethodFragment.d.ts +0 -1
- package/api/graphql/SortFieldsFragment.d.ts +0 -1
- package/api/index.d.ts +0 -1
- package/api/initialize/index.d.ts +0 -1
- package/api/initialize/initialize.d.ts +10 -12
- package/api/negotiableQuotes/graphql/NegotiableQuotesQuery.d.ts +0 -1
- package/api/negotiableQuotes/index.d.ts +0 -1
- package/api/negotiableQuotes/negotiableQuotes.d.ts +8 -2
- package/api/openQuoteTemplate/graphql/openQuoteTemplate.d.ts +0 -1
- package/api/openQuoteTemplate/index.d.ts +0 -1
- package/api/openQuoteTemplate/openQuoteTemplate.d.ts +1 -2
- package/api/removeNegotiableQuoteItems/graphql/RemoveNegotiableQuoteItemsMutation.d.ts +0 -1
- package/api/removeNegotiableQuoteItems/index.d.ts +0 -1
- package/api/removeNegotiableQuoteItems/removeNegotiableQuoteItems.d.ts +8 -2
- package/api/removeQuoteTemplateItems/graphql/removeNegotiableQuoteTemplateItems.d.ts +0 -1
- package/api/removeQuoteTemplateItems/index.d.ts +0 -1
- package/api/removeQuoteTemplateItems/removeQuoteTemplateItems.d.ts +1 -2
- package/api/renameNegotiableQuote/graphql/RenameNegotiableQuoteMutation.d.ts +0 -1
- package/api/renameNegotiableQuote/index.d.ts +0 -1
- package/api/renameNegotiableQuote/renameNegotiableQuote.d.ts +8 -2
- package/api/requestNegotiableQuote/graphql/RequestNegotiableQuoteMutation.d.ts +0 -1
- package/api/requestNegotiableQuote/index.d.ts +0 -1
- package/api/requestNegotiableQuote/requestNegotiableQuote.d.ts +8 -2
- package/api/sendForReview/graphql/SendNegotiableQuoteForReviewMutation.d.ts +0 -1
- package/api/sendForReview/index.d.ts +0 -1
- package/api/sendForReview/sendForReview.d.ts +8 -2
- package/api/sendQuoteTemplateForReview/graphql/sendQuoteTemplateForReview.d.ts +0 -1
- package/api/sendQuoteTemplateForReview/index.d.ts +0 -1
- package/api/sendQuoteTemplateForReview/sendQuoteTemplateForReview.d.ts +1 -2
- package/api/setLineItemNote/graphql/SetLineItemNoteMutation.d.ts +0 -1
- package/api/setLineItemNote/index.d.ts +0 -1
- package/api/setLineItemNote/setLineItemNote.d.ts +8 -2
- package/api/setQuoteTemplateExpirationDate/graphql/setQuoteTemplateExpirationDate.d.ts +0 -1
- package/api/setQuoteTemplateExpirationDate/index.d.ts +0 -1
- package/api/setQuoteTemplateExpirationDate/setQuoteTemplateExpirationDate.d.ts +8 -2
- package/api/setShippingAddress/graphql/SetNegotiableQuoteShippingAddressMutation.d.ts +0 -1
- package/api/setShippingAddress/index.d.ts +0 -1
- package/api/setShippingAddress/setShippingAddress.d.ts +8 -2
- package/api/updateQuantities/graphql/UpdateNegotiableQuoteQuantitiesMutation.d.ts +0 -1
- package/api/updateQuantities/index.d.ts +0 -1
- package/api/updateQuantities/updateQuantities.d.ts +8 -2
- package/api/updateQuoteTemplateItemQuantities/graphql/updateNegotiableQuoteTemplateQuantities.d.ts +0 -1
- package/api/updateQuoteTemplateItemQuantities/index.d.ts +0 -1
- package/api/updateQuoteTemplateItemQuantities/updateQuoteTemplateItemQuantities.d.ts +1 -2
- package/api/uploadFile/graphql/FinishUploadMutation.d.ts +0 -1
- package/api/uploadFile/graphql/InitiateUploadMutation.d.ts +0 -1
- package/api/uploadFile/index.d.ts +0 -1
- package/api/uploadFile/uploadFile.d.ts +0 -1
- package/api.d.ts +1 -1
- package/api.js +1 -1
- package/api.js.map +1 -1
- package/chunks/ShippingAddressDisplay.js +1 -1
- package/chunks/components.js +1 -1
- package/components/ActionsBar/ActionsBar.d.ts +8 -2
- package/components/ActionsBar/index.d.ts +0 -1
- package/components/AttachedFilesList/AttachedFilesList.d.ts +8 -2
- package/components/AttachedFilesList/index.d.ts +0 -1
- package/components/ConfirmationModal/ConfirmationModal.d.ts +8 -2
- package/components/ConfirmationModal/index.d.ts +0 -1
- package/components/ExpirationDateModal/ExpirationDateModal.d.ts +8 -2
- package/components/ExpirationDateModal/index.d.ts +0 -1
- package/components/ItemsQuoted/ItemsQuoted.d.ts +8 -2
- package/components/ItemsQuoted/index.d.ts +0 -1
- package/components/LineItemNoteModal/LineItemNoteModal.d.ts +8 -2
- package/components/LineItemNoteModal/index.d.ts +0 -1
- package/components/ManageNegotiableQuote/ManageNegotiableQuote.d.ts +8 -2
- package/components/ManageNegotiableQuote/__fixtures__/ManageNegotiableQuoteProps.d.ts +1 -3
- package/components/ManageNegotiableQuote/index.d.ts +0 -1
- package/components/ManageNegotiableQuoteTemplate/ManageNegotiableQuoteTemplate.d.ts +8 -2
- package/components/ManageNegotiableQuoteTemplate/__fixtures__/ManageNegotiableQuoteTemplateProps.d.ts +1 -3
- package/components/ManageNegotiableQuoteTemplate/index.d.ts +0 -1
- package/components/OrderSummary/OrderSummary.d.ts +8 -2
- package/components/OrderSummary/index.d.ts +0 -1
- package/components/OrderSummaryLine/OrderSummaryLine.d.ts +8 -2
- package/components/OrderSummaryLine/index.d.ts +0 -1
- package/components/ProductListTable/ProductListTable.d.ts +8 -2
- package/components/ProductListTable/index.d.ts +0 -1
- package/components/QuoteCommentsList/QuoteCommentsList.d.ts +8 -2
- package/components/QuoteCommentsList/index.d.ts +0 -1
- package/components/QuoteHistoryLog/QuoteHistoryLog.d.ts +8 -2
- package/components/QuoteHistoryLog/index.d.ts +0 -1
- package/components/QuotePricesSummary/QuotePricesSummary.d.ts +8 -2
- package/components/QuotePricesSummary/index.d.ts +0 -1
- package/components/QuoteSummaryList/QuoteSummaryList.d.ts +8 -2
- package/components/QuoteSummaryList/index.d.ts +0 -1
- package/components/QuoteTemplatesListTable/QuoteTemplatesListTable.d.ts +8 -2
- package/components/QuoteTemplatesListTable/index.d.ts +0 -1
- package/components/QuotesListTable/QuotesListTable.d.ts +8 -2
- package/components/QuotesListTable/index.d.ts +0 -1
- package/components/ReferenceDocumentFormModal/ReferenceDocumentFormModal.d.ts +8 -2
- package/components/ReferenceDocumentFormModal/index.d.ts +0 -1
- package/components/ReferenceDocumentsList/ReferenceDocumentsList.d.ts +8 -2
- package/components/ReferenceDocumentsList/index.d.ts +0 -1
- package/components/RenameQuoteModal/RenameQuoteModal.d.ts +8 -2
- package/components/RenameQuoteModal/index.d.ts +0 -1
- package/components/RequestNegotiableQuoteForm/RequestNegotiableQuoteForm.d.ts +8 -2
- package/components/RequestNegotiableQuoteForm/index.d.ts +0 -1
- package/components/ShippingAddressDisplay/ShippingAddressDisplay.d.ts +8 -2
- package/components/ShippingAddressDisplay/index.d.ts +0 -1
- package/components/TabbedContent/TabbedContent.d.ts +8 -2
- package/components/TabbedContent/index.d.ts +0 -1
- package/components/index.d.ts +0 -1
- package/containers/ItemsQuoted/ItemsQuoted.d.ts +9 -3
- package/containers/ItemsQuoted/index.d.ts +0 -1
- package/containers/ItemsQuoted.d.ts +1 -3
- package/containers/ItemsQuoted.js +1 -1
- package/containers/ItemsQuoted.js.map +1 -1
- package/containers/ItemsQuotedTemplate/ItemsQuotedTemplate.d.ts +9 -3
- package/containers/ItemsQuotedTemplate/index.d.ts +0 -1
- package/containers/ItemsQuotedTemplate.d.ts +1 -3
- package/containers/ItemsQuotedTemplate.js +1 -1
- package/containers/ItemsQuotedTemplate.js.map +1 -1
- package/containers/ManageNegotiableQuote/ManageNegotiableQuote.d.ts +9 -3
- package/containers/ManageNegotiableQuote/index.d.ts +0 -1
- package/containers/ManageNegotiableQuote.d.ts +1 -3
- package/containers/ManageNegotiableQuote.js +3 -1
- package/containers/ManageNegotiableQuote.js.map +1 -1
- package/containers/ManageNegotiableQuoteTemplate/ManageNegotiableQuoteTemplate.d.ts +9 -3
- package/containers/ManageNegotiableQuoteTemplate/index.d.ts +0 -1
- package/containers/ManageNegotiableQuoteTemplate.d.ts +1 -3
- package/containers/ManageNegotiableQuoteTemplate.js +1 -3
- package/containers/ManageNegotiableQuoteTemplate.js.map +1 -1
- package/containers/OrderSummary/OrderSummary.d.ts +9 -3
- package/containers/OrderSummary/index.d.ts +0 -1
- package/containers/OrderSummary.d.ts +1 -3
- package/containers/OrderSummary.js +1 -1
- package/containers/OrderSummaryLine/OrderSummaryLine.d.ts +9 -3
- package/containers/OrderSummaryLine/index.d.ts +0 -1
- package/containers/OrderSummaryLine.d.ts +1 -3
- package/containers/OrderSummaryLine.js +1 -1
- package/containers/QuoteCommentsList/QuoteCommentsList.d.ts +9 -3
- package/containers/QuoteCommentsList/index.d.ts +0 -1
- package/containers/QuoteCommentsList.d.ts +1 -3
- package/containers/QuoteCommentsList.js +1 -1
- package/containers/QuoteCommentsList.js.map +1 -1
- package/containers/QuoteHistoryLog/QuoteHistoryLog.d.ts +9 -3
- package/containers/QuoteHistoryLog/index.d.ts +0 -1
- package/containers/QuoteHistoryLog.d.ts +1 -3
- package/containers/QuoteHistoryLog.js +1 -1
- package/containers/QuoteHistoryLog.js.map +1 -1
- package/containers/QuoteSummaryList/QuoteSummaryList.d.ts +10 -4
- package/containers/QuoteSummaryList/index.d.ts +0 -1
- package/containers/QuoteSummaryList.d.ts +1 -3
- package/containers/QuoteSummaryList.js +1 -1
- package/containers/QuoteSummaryList.js.map +1 -1
- package/containers/QuoteTemplateCommentsList/QuoteTemplateCommentsList.d.ts +9 -3
- package/containers/QuoteTemplateCommentsList/index.d.ts +0 -1
- package/containers/QuoteTemplateCommentsList.d.ts +1 -3
- package/containers/QuoteTemplateCommentsList.js +1 -1
- package/containers/QuoteTemplateCommentsList.js.map +1 -1
- package/containers/QuoteTemplateHistoryLog/QuoteTemplateHistoryLog.d.ts +9 -3
- package/containers/QuoteTemplateHistoryLog/index.d.ts +0 -1
- package/containers/QuoteTemplateHistoryLog.d.ts +1 -3
- package/containers/QuoteTemplateHistoryLog.js +1 -1
- package/containers/QuoteTemplateHistoryLog.js.map +1 -1
- package/containers/QuoteTemplatesListTable/QuoteTemplatesListTable.d.ts +9 -3
- package/containers/QuoteTemplatesListTable/index.d.ts +0 -1
- package/containers/QuoteTemplatesListTable.d.ts +1 -3
- package/containers/QuoteTemplatesListTable.js +1 -1
- package/containers/QuotesListTable/QuotesListTable.d.ts +9 -3
- package/containers/QuotesListTable/index.d.ts +0 -1
- package/containers/QuotesListTable.d.ts +1 -3
- package/containers/QuotesListTable.js +1 -1
- package/containers/QuotesListTable.js.map +1 -1
- package/containers/RequestNegotiableQuoteForm/RequestNegotiableQuoteForm.d.ts +9 -3
- package/containers/RequestNegotiableQuoteForm/index.d.ts +0 -1
- package/containers/RequestNegotiableQuoteForm.d.ts +1 -3
- package/containers/RequestNegotiableQuoteForm.js +1 -1
- package/containers/ShippingAddressDisplay/ShippingAddressDisplay.d.ts +9 -3
- package/containers/ShippingAddressDisplay/index.d.ts +0 -1
- package/containers/ShippingAddressDisplay.d.ts +1 -1
- package/containers/index.d.ts +0 -1
- package/data/models/__fixtures__/negotiableQuoteModel.d.ts +8 -2
- package/data/models/__fixtures__/negotiableQuoteTemplateModel.d.ts +8 -2
- package/data/models/__fixtures__/negotiableQuoteTemplatesListModel.d.ts +8 -2
- package/data/models/__fixtures__/negotiableQuotesListModel.d.ts +8 -2
- package/data/models/__fixtures__/storeConfigModel.d.ts +8 -2
- package/data/models/index.d.ts +0 -1
- package/data/models/negotiable-quote-model.d.ts +1 -2
- package/data/models/negotiable-quote-template-model.d.ts +8 -2
- package/data/models/store-config-model.d.ts +0 -1
- package/data/transforms/__fixtures__/negotiableQuoteData.d.ts +9 -4
- package/data/transforms/__fixtures__/negotiableQuoteTemplateData.d.ts +0 -1
- package/data/transforms/__fixtures__/storeConfigData.d.ts +0 -1
- package/data/transforms/index.d.ts +0 -1
- package/data/transforms/transform-history.d.ts +8 -2
- package/data/transforms/transform-quote-items.d.ts +8 -2
- package/data/transforms/transform-quote-template.d.ts +8 -2
- package/data/transforms/transform-quote.d.ts +8 -2
- package/data/transforms/transform-store-config.d.ts +8 -2
- package/hooks/useExpirationDate.d.ts +0 -1
- package/hooks/useItemsQuotedTemplate.d.ts +8 -2
- package/hooks/useQuoteSummaryData.d.ts +9 -4
- package/hooks/useReferenceDocumentLinks.d.ts +8 -2
- package/hooks/useRemoveTemplateItems.d.ts +8 -2
- package/hooks/useRenameTemplate.d.ts +0 -1
- package/hooks/useUpdateTemplateQuantities.d.ts +8 -2
- package/lib/configurationTransformers.d.ts +0 -1
- package/lib/itemFormatters.d.ts +11 -7
- package/lib/priceCalculators.d.ts +14 -13
- package/lib/state.d.ts +8 -3
- package/package.json +1 -1
- package/render/Provider.d.ts +8 -2
- package/render/index.d.ts +0 -1
- package/render/render.d.ts +9 -4
- package/render.d.ts +1 -1
- package/types/state.types.d.ts +8 -2
- package/utils/dateUtils.d.ts +0 -1
- package/utils/fileUtils.d.ts +0 -1
- package/utils/mapAuthPermissions.d.ts +8 -2
- package/chunks/ItemsQuoted.js +0 -4
- package/chunks/ItemsQuoted.js.map +0 -1
- package/chunks/ItemsQuotedTemplate.js +0 -4
- package/chunks/ItemsQuotedTemplate.js.map +0 -1
- package/chunks/QuoteCommentsList.js +0 -4
- package/chunks/QuoteCommentsList.js.map +0 -1
- package/chunks/QuoteHistoryLog.js +0 -4
- package/chunks/QuoteHistoryLog.js.map +0 -1
- package/chunks/QuoteTemplateCommentsList.js +0 -4
- package/chunks/QuoteTemplateCommentsList.js.map +0 -1
- package/chunks/QuoteTemplateHistoryLog.js +0 -4
- package/chunks/QuoteTemplateHistoryLog.js.map +0 -1
- package/i18n/en_US.json.d.ts +0 -485
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! Copyright 2026 Adobe
|
|
2
2
|
All Rights Reserved. */
|
|
3
|
-
import{jsx as g}from"@dropins/tools/preact-jsx-runtime.js";import{useState as c,useEffect as p}from"@dropins/tools/preact-compat.js";import{
|
|
3
|
+
import{jsx as g}from"@dropins/tools/preact-jsx-runtime.js";import{useState as c,useEffect as p}from"@dropins/tools/preact-compat.js";import{S as i}from"./components.js";import{events as a}from"@dropins/tools/event-bus.js";const y=({shippingAddress:n,loading:m,...u})=>{const[f,d]=c(n);return p(()=>{n!==void 0&&d(n)},[n]),p(()=>{const e=a.on("quote-management/quote-data",o=>{var s,r;const t=(r=(s=o.quote)==null?void 0:s.shippingAddresses)==null?void 0:r[0];d(t)},{eager:!0});return()=>e==null?void 0:e.off()},[]),p(()=>{const e=a.on("quote-management/shipping-address-set",o=>{var s,r;const t=(r=(s=o.quote)==null?void 0:s.shippingAddresses)==null?void 0:r[0];d(t)},{eager:!0});return()=>e==null?void 0:e.off()},[]),p(()=>{const e=a.on("quote-management/quote-template-data",o=>{var s,r;const t=(r=(s=o.quoteTemplate)==null?void 0:s.shippingAddresses)==null?void 0:r[0];d(t)},{eager:!0});return()=>e==null?void 0:e.off()},[]),g(i,{shippingAddress:f,loading:m,...u})};export{y as S};
|
|
4
4
|
//# sourceMappingURL=ShippingAddressDisplay.js.map
|
package/chunks/components.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! Copyright 2026 Adobe
|
|
2
2
|
All Rights Reserved. */
|
|
3
|
-
import{classes as o,VComponent as _,getGlobalLocale as _e}from"@dropins/tools/lib.js";import{useText as $}from"@dropins/tools/i18n.js";import*as T from"@dropins/tools/preact-compat.js";import{useState as F,useMemo as qe,useEffect as de,useCallback as K}from"@dropins/tools/preact-compat.js";import{jsx as e,jsxs as i,Fragment as R}from"@dropins/tools/preact-jsx-runtime.js";import{InLineAlert as ie,Skeleton as X,SkeletonRow as E,Picker as ue,Button as H,Accordion as ne,AccordionSection as oe,Divider as re,Input as j,Price as O,Checkbox as fe,Table as te,Modal as J,TextArea as ge,InputDate as Ne}from"@dropins/tools/components.js";import{h as le}from"@dropins/tools/preact.js";import{useState as se,useEffect as ve}from"@dropins/tools/preact-hooks.js";const Ae=l=>T.createElement("svg",{id:"Icon_Add_Base","data-name":"Icon \\u2013 Add \\u2013 Base",xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",...l},T.createElement("g",{id:"Large"},T.createElement("rect",{id:"Placement_area","data-name":"Placement area",width:24,height:24,fill:"#fff",opacity:0}),T.createElement("g",{id:"Add_icon","data-name":"Add icon",transform:"translate(9.734 9.737)"},T.createElement("line",{vectorEffect:"non-scaling-stroke",id:"Line_579","data-name":"Line 579",y2:12.7,transform:"translate(2.216 -4.087)",fill:"none",stroke:"currentColor"}),T.createElement("line",{vectorEffect:"non-scaling-stroke",id:"Line_580","data-name":"Line 580",x2:12.7,transform:"translate(-4.079 2.263)",fill:"none",stroke:"currentColor"})))),ye=l=>T.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...l},T.createElement("path",{vectorEffect:"non-scaling-stroke",d:"M0.75 12C0.75 5.78421 5.78421 0.75 12 0.75C18.2158 0.75 23.25 5.78421 23.25 12C23.25 18.2158 18.2158 23.25 12 23.25C5.78421 23.25 0.75 18.2158 0.75 12Z",stroke:"currentColor"}),T.createElement("path",{vectorEffect:"non-scaling-stroke",d:"M6.75 12.762L10.2385 15.75L17.25 9",stroke:"currentColor"})),me=l=>T.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...l},T.createElement("path",{vectorEffect:"non-scaling-stroke",d:"M7.74512 9.87701L12.0001 14.132L16.2551 9.87701",stroke:"currentColor",strokeWidth:1,strokeLinecap:"square",strokeLinejoin:"round"})),Ue=l=>T.createElement("svg",{id:"Icon_Chevron_right_Base","data-name":"Icon \\u2013 Chevron right \\u2013 Base",xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",...l},T.createElement("g",{id:"Large"},T.createElement("rect",{id:"Placement_area","data-name":"Placement area",width:24,height:24,fill:"#fff",opacity:0}),T.createElement("g",{id:"Chevron_right_icon","data-name":"Chevron right icon"},T.createElement("path",{vectorEffect:"non-scaling-stroke",id:"chevron",d:"M199.75,367.5l4.255,-4.255-4.255,-4.255",transform:"translate(-189.25 -351.0)",fill:"none",stroke:"currentColor"})))),ce=l=>T.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...l},T.createElement("path",{d:"M7.74512 14.132L12.0001 9.87701L16.2551 14.132",stroke:"currentColor",strokeWidth:1,strokeLinecap:"square",strokeLinejoin:"round"})),Le=l=>T.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...l},T.createElement("path",{vectorEffect:"non-scaling-stroke",d:"M18.3599 5.64001L5.62988 18.37",stroke:"currentColor"}),T.createElement("path",{vectorEffect:"non-scaling-stroke",d:"M18.3599 18.37L5.62988 5.64001",stroke:"currentColor"})),ze=l=>T.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...l},T.createElement("path",{vectorEffect:"non-scaling-stroke",d:"M22 6.25H22.75C22.75 5.83579 22.4142 5.5 22 5.5V6.25ZM22 9.27L22.2514 9.97663C22.5503 9.87029 22.75 9.58731 22.75 9.27H22ZM20.26 12.92L19.5534 13.1714L19.5539 13.1728L20.26 12.92ZM22 14.66H22.75C22.75 14.3433 22.551 14.0607 22.2528 13.9539L22 14.66ZM22 17.68V18.43C22.4142 18.43 22.75 18.0942 22.75 17.68H22ZM2 17.68H1.25C1.25 18.0942 1.58579 18.43 2 18.43V17.68ZM2 14.66L1.74865 13.9534C1.44969 14.0597 1.25 14.3427 1.25 14.66H2ZM3.74 11.01L4.44663 10.7586L4.44611 10.7572L3.74 11.01ZM2 9.27H1.25C1.25 9.58675 1.44899 9.86934 1.7472 9.97611L2 9.27ZM2 6.25V5.5C1.58579 5.5 1.25 5.83579 1.25 6.25H2ZM21.25 6.25V9.27H22.75V6.25H21.25ZM21.7486 8.56337C19.8706 9.23141 18.8838 11.2889 19.5534 13.1714L20.9666 12.6686C20.5762 11.5711 21.1494 10.3686 22.2514 9.97663L21.7486 8.56337ZM19.5539 13.1728C19.9195 14.1941 20.7259 15.0005 21.7472 15.3661L22.2528 13.9539C21.6541 13.7395 21.1805 13.2659 20.9661 12.6672L19.5539 13.1728ZM21.25 14.66V17.68H22.75V14.66H21.25ZM22 16.93H2V18.43H22V16.93ZM2.75 17.68V14.66H1.25V17.68H2.75ZM2.25135 15.3666C4.12941 14.6986 5.11623 12.6411 4.44663 10.7586L3.03337 11.2614C3.42377 12.3589 2.85059 13.5614 1.74865 13.9534L2.25135 15.3666ZM4.44611 10.7572C4.08045 9.73588 3.27412 8.92955 2.2528 8.56389L1.7472 9.97611C2.34588 10.1905 2.81955 10.6641 3.03389 11.2628L4.44611 10.7572ZM2.75 9.27V6.25H1.25V9.27H2.75ZM2 7H22V5.5H2V7ZM7.31 6.74V18.17H8.81V6.74H7.31ZM17.0997 8.39967L11.0397 14.4597L12.1003 15.5203L18.1603 9.46033L17.0997 8.39967ZM12.57 9.67C12.57 9.87231 12.4159 10 12.27 10V11.5C13.2839 11.5 14.07 10.6606 14.07 9.67H12.57ZM12.27 10C12.1241 10 11.97 9.87231 11.97 9.67H10.47C10.47 10.6606 11.2561 11.5 12.27 11.5V10ZM11.97 9.67C11.97 9.46769 12.1241 9.34 12.27 9.34V7.84C11.2561 7.84 10.47 8.67938 10.47 9.67H11.97ZM12.27 9.34C12.4159 9.34 12.57 9.46769 12.57 9.67H14.07C14.07 8.67938 13.2839 7.84 12.27 7.84V9.34ZM17.22 14.32C17.22 14.5223 17.0659 14.65 16.92 14.65V16.15C17.9339 16.15 18.72 15.3106 18.72 14.32H17.22ZM16.92 14.65C16.7741 14.65 16.62 14.5223 16.62 14.32H15.12C15.12 15.3106 15.9061 16.15 16.92 16.15V14.65ZM16.62 14.32C16.62 14.1177 16.7741 13.99 16.92 13.99V12.49C15.9061 12.49 15.12 13.3294 15.12 14.32H16.62ZM16.92 13.99C17.0659 13.99 17.22 14.1177 17.22 14.32H18.72C18.72 13.3294 17.9339 12.49 16.92 12.49V13.99Z",fill:"currentColor"})),Fe=l=>T.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1,strokeLinecap:"round",strokeLinejoin:"round",className:"feather feather-edit-2",...l},T.createElement("path",{d:"M17 3a2.828 2.828 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5L17 3z"})),ae=l=>T.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...l},T.createElement("path",{vectorEffect:"non-scaling-stroke",fillRule:"evenodd",clipRule:"evenodd",d:"M1 20.8953L12.1922 1.5L23.395 20.8953H1ZM13.0278 13.9638L13.25 10.0377V9H11.25V10.0377L11.4722 13.9638H13.0278ZM11.2994 16V17.7509H13.2253V16H11.2994Z",fill:"currentColor"})),We=({className:l,shippingAddress:r,loading:n,noAddressMessage:c,...a})=>{const s=$({noAddressHeading:"NegotiableQuote.Manage.shippingAddress.noAddressHeading",noAddressDescription:"NegotiableQuote.Manage.shippingAddress.noAddressDescription"});return n?e(ke,{}):r?i("div",{className:o(["quote-management-shipping-address-display",l]),"data-testid":"shipping-address-display",...a,children:[e("div",{className:"quote-management-shipping-address-display__field","data-testid":"address-name",children:i("span",{className:"quote-management-shipping-address-display__name",children:[r.firstname," ",r.lastname]})}),r.company&&e("div",{className:"quote-management-shipping-address-display__field","data-testid":"address-company",children:r.company}),r.street.map((g,m)=>e("div",{className:"quote-management-shipping-address-display__field","data-testid":`address-street-${m}`,children:g},m)),i("div",{className:"quote-management-shipping-address-display__field","data-testid":"address-city-region",children:[r.city,r.region&&`, ${r.region.label}`," ",r.postcode]}),e("div",{className:"quote-management-shipping-address-display__field","data-testid":"address-country",children:r.country.label}),e("div",{className:"quote-management-shipping-address-display__field","data-testid":"address-telephone",children:r.telephone})]}):e("div",{className:o(["quote-management-shipping-address-display","quote-management-shipping-address-display--empty",l]),"data-testid":"shipping-address-display-empty",...a,children:e(ie,{type:"warning",variant:"primary","data-testid":"shipping-address-display-empty-alert",icon:e(ae,{}),heading:s.noAddressHeading,description:c||s.noAddressDescription})})},ke=()=>e(X,{"data-testid":"shipping-address-display-skeleton",children:e(E,{variant:"row",fullWidth:!0,size:"small",lines:5,multilineGap:"xsmall"})}),Ze=({className:l,title:r,banner:n,commentField:c,quoteNameField:a,attachFile:s,attachedFilesList:g,requestButton:m,saveButton:q,onSubmit:p,...u})=>i("form",{...u,className:o(["request-negotiable-quote-form",l]),onSubmit:p,children:[n&&e(_,{node:n,className:o(["request-negotiable-quote-form__banner"])}),r&&e(_,{node:r,className:o(["request-negotiable-quote-form__title"])}),c&&e(_,{node:c,className:o(["request-negotiable-quote-form__comment-field"])}),a&&e(_,{node:a,className:o(["request-negotiable-quote-form__quote-name-field"])}),s&&e(_,{node:s,className:o(["request-negotiable-quote-form__attach-file-field"])}),g&&e(_,{node:g,className:o(["request-negotiable-quote-form__attached-files-list"])}),i("div",{className:o(["request-negotiable-quote-form__actions"]),children:[m&&e(_,{node:m,className:o(["request-negotiable-quote-form__request-button"])}),q&&e(_,{node:q,className:o(["request-negotiable-quote-form__save-button"])})]})]}),Ve=({className:l,dropdownPlaceholder:r,dropdownOptions:n,dropdownValue:c,handleDropdownChange:a,buttons:s,...g})=>{const m=n&&n.length>0,q=s&&s.length>0,p=(n==null?void 0:n.map(u=>({text:u.label,value:u.value})))||[];return p.unshift({text:r||"",value:""}),e("div",{className:"quote-management-actions-bar__container","data-testid":"actions-bar-container",children:i("div",{className:o(["quote-management-actions-bar",l]),"data-testid":"actions-bar",...g,children:[m&&e(ue,{name:"dropdown",id:"dropdown",handleSelect:a,className:"quote-management-actions-bar__dropdown","data-testid":"dropdown",options:p,value:c||""},`actions-bar-picker-${c||"empty"}`),q&&e("div",{className:"quote-management-actions-bar__buttons","data-testid":"buttons-container",children:s==null?void 0:s.map((u,b)=>e(_,{node:u,className:o(["quote-management-actions-bar__button"])},b))})]})})},Te=l=>{if(l===0)return"0 Bytes";const r=1024,n=["Bytes","KB","MB","GB"],c=Math.floor(Math.log(l)/Math.log(r)),a=Math.min(c,n.length-1),s=l/Math.pow(r,a);return`${Math.round(s*100)/100} ${n[a]}`},Oe=(l,r)=>!r||r.length===0?!0:r.includes(l),je=(l,r)=>r==null?!0:l<=r,Ge=({files:l,onRemove:r,disabled:n=!1})=>{const c=$({removeFile:"NegotiableQuote.Manage.removeFile",uploading:"NegotiableQuote.Manage.uploading",uploadSuccess:"NegotiableQuote.Manage.uploadSuccess",uploadError:"NegotiableQuote.Manage.uploadError"});return!l||l.length===0?null:e("div",{className:"attached-files-list","data-testid":"attached-files-list",children:l.map(a=>{const s=a.status==="uploading",g=a.status==="error",m=a.status==="success",q=!n&&!s;return i("div",{className:`attached-files-list__item attached-files-list__item--${a.status}`,"data-testid":`attached-file-${a.key}`,children:[i("div",{className:"attached-files-list__item-main",children:[i("div",{className:"attached-files-list__item-icon",children:[s&&e("div",{className:"attached-files-list__spinner","data-testid":"file-uploading-spinner","aria-label":c.uploading}),m&&e(ye,{"data-testid":"file-success-icon","aria-label":c.uploadSuccess,className:"attached-files-list__success-icon"}),g&&e(ae,{"data-testid":"file-error-icon","aria-label":c.uploadError,color:"var(--color-error)",className:"attached-files-list__error-icon"})]}),i("div",{className:"attached-files-list__item-info",children:[e("div",{className:"attached-files-list__item-name","data-testid":"file-name",children:a.name}),i("div",{className:"attached-files-list__item-size","data-testid":"file-size",children:[Te(a.size),s&&` - ${c.uploading}`]})]}),e(H,{variant:"tertiary",onClick:()=>r(a.key),disabled:!q,type:"button","aria-label":`${c.removeFile}: ${a.name}`,"data-testid":`remove-file-${a.key}`,className:"attached-files-list__remove-button",children:e(Le,{})})]}),g&&a.error&&e("div",{className:"attached-files-list__item-error","data-testid":"file-error-message",children:a.error})]},a.key)})})},Ke=({className:l,loading:r,table:n,pricesSummary:c,...a})=>r?e(xe,{}):i("div",{className:o(["quote-management-items-quoted",l]),...a,children:[n&&e(_,{node:n,className:o(["quote-management-items-quoted__table"]),"data-testid":"quote-management-items-quoted__table"}),c&&e(_,{node:c,className:o(["quote-management-items-quoted__prices-summary"]),"data-testid":"quote-management-items-quoted__prices-summary"})]}),xe=()=>e(X,{"data-testid":"items-quoted-skeleton",children:e(E,{variant:"row",fullWidth:!0,size:"medium",lines:4,multilineGap:"xsmall"})}),Xe=({className:l,loading:r,quoteName:n,quoteStatus:c,banner:a,details:s,actionBar:g,quoteContent:m,shippingInformationTitle:q,shippingInformation:p,quoteCommentsTitle:u,quoteComments:b,attachFilesField:v,attachedFilesList:f,footer:y,...t})=>r?e(we,{}):i("div",{...t,className:o(["quote-management-manage-negotiable-quote",l]),children:[i("div",{className:o(["quote-management-manage-negotiable-quote__header"]),children:[n&&e(_,{node:n,className:o(["quote-management-manage-negotiable-quote__quote-name"])}),c&&e(_,{node:c,className:o(["quote-management-manage-negotiable-quote__quote-status"])})]}),a&&e(_,{node:a,className:o(["quote-management-manage-negotiable-quote__banner"])}),s&&e(_,{node:s,className:o(["quote-management-manage-negotiable-quote__details"])}),g&&e(_,{node:g,className:o(["quote-management-manage-negotiable-quote__action-bar"])}),m&&e(_,{node:m,className:o(["quote-management-manage-negotiable-quote__quote-content"])}),i("div",{"data-testid":"quote-shipping-information-container",className:o(["quote-management-manage-negotiable-quote__shipping-information-container"]),children:[q&&e(_,{node:q,className:o(["quote-management-manage-negotiable-quote__shipping-information-title"])}),p&&e(_,{node:p,className:o(["quote-management-manage-negotiable-quote__shipping-information"])})]}),i("div",{"data-testid":"quote-comments-container",className:o(["quote-management-manage-negotiable-quote__quote-comments-container"]),children:[u&&e(_,{node:u,className:o(["quote-management-manage-negotiable-quote__quote-comments-title"])}),b&&e(_,{node:b,className:o(["quote-management-manage-negotiable-quote__quote-comments"])}),v&&e(_,{node:v,className:o(["quote-management-manage-negotiable-quote__attach-files-field"])}),f&&e(_,{node:f,className:o(["quote-management-manage-negotiable-quote__attached-files-list"])})]}),e(_,{node:y,className:o(["quote-management-manage-negotiable-quote__footer"])})]}),we=()=>i(X,{"data-testid":"manage-negotiable-quote-skeleton",children:[e(E,{variant:"heading",fullWidth:!0,size:"large"}),e(E,{variant:"row",fullWidth:!1,size:"small"}),e(E,{variant:"row",fullWidth:!1,size:"small"}),e(E,{variant:"row",fullWidth:!0}),e(E,{variant:"row",fullWidth:!0,size:"xlarge",lines:2}),e(E,{variant:"row",fullWidth:!1,size:"small"})]}),z=({label:l,price:r,classSuffixes:n=[],labelClassSuffix:c,testId:a,children:s,...g})=>e(Qe,{...g,label:l,price:r,classSuffixes:n,labelClassSuffix:c,testId:a,children:s}),Je=({className:l,children:r,variant:n="primary",heading:c,subTotal:a,shipping:s,discounts:g,taxTotal:m,taxesApplied:q,total:p,totalSaved:u,updateLineItems:b=f=>f,...v})=>{const[f,y]=F(!1),t=$({taxesBreakdownTitle:"NegotiableQuote.PriceSummary.taxes.breakdown",taxTotal:"NegotiableQuote.PriceSummary.taxes.total",taxTotalOnly:"NegotiableQuote.PriceSummary.taxes.totalOnly",showTaxBreakdown:"NegotiableQuote.PriceSummary.taxes.showBreakdown",hideTaxBreakdown:"NegotiableQuote.PriceSummary.taxes.hideBreakdown",subtotalLabel:"NegotiableQuote.PriceSummary.subTotal.label",subtotalWithTaxes:"NegotiableQuote.PriceSummary.subTotal.withTaxes",subtotalWithoutTaxes:"NegotiableQuote.PriceSummary.subTotal.withoutTaxes",shippingLabel:"NegotiableQuote.PriceSummary.shipping.label",shippingWithTaxes:"NegotiableQuote.PriceSummary.shipping.withTaxes",shippingWithoutTaxes:"NegotiableQuote.PriceSummary.shipping.withoutTaxes",totalLabel:"NegotiableQuote.PriceSummary.total.label",totalWithoutTax:"NegotiableQuote.PriceSummary.total.withoutTax",totalSaved:"NegotiableQuote.PriceSummary.total.saved"}),d=a&&i(z,{label:t.subtotalLabel,price:a.price,classSuffixes:["subTotal"],children:[a.taxIncluded&&e("div",{"data-testid":"sub-total-tax-caption",className:"quote-order-summary__caption",children:e("span",{children:t.subtotalWithTaxes})}),a.taxExcluded?e("div",{"data-testid":"sub-total-tax-caption-excluded",className:"quote-order-summary__caption",children:i("span",{children:[a.priceExcludingTax," ",t.subtotalWithoutTaxes]})}):void 0]},t.subtotalLabel),N=s&&i(z,{label:t.shippingLabel,price:s.price,classSuffixes:["shipping"],children:[s.taxIncluded&&e("div",{"data-testid":"shipping-tax-caption",className:"quote-order-summary__caption",children:e("span",{children:t.shippingWithTaxes})}),s.taxExcluded?e("div",{"data-testid":"shipping-tax-caption-excluded",className:"quote-order-summary__caption",children:i("span",{children:[s.priceExcludingTax," ",t.shippingWithoutTaxes]})}):void 0]},t.shippingLabel),L=g&&g.length>0&&e(R,{children:g.map(k=>i(z,{label:k.label,price:k.price,classSuffixes:["discount"],children:[k.coupon&&e(_,{node:k.coupon,className:"quote-order-summary__coupon__code"}),k.caption&&e(_,{node:k.caption,className:"quote-order-summary__caption"})]},k.label))}),P=q&&q.length>0?e(ne,{"data-testid":"tax-breakdown",className:"quote-order-summary__taxes",iconOpen:me,iconClose:ce,children:i(oe,{ariaLabelTitle:t.taxesBreakdownTitle,title:t.taxesBreakdownTitle,secondaryText:!f&&m?e(_,{node:m.price,className:"quote-order-summary__price"}):void 0,renderContentWhenClosed:!1,onStateChange:y,children:[e("div",{className:"quote-order-summary__appliedTaxes",children:q.map(k=>e(z,{label:k.label,price:k.price,classSuffixes:["taxEntry"],labelClassSuffix:"muted"},k.label))}),m&&e(z,{label:t.taxTotal,price:m.price,classSuffixes:["taxTotal"],labelClassSuffix:"muted"})]})}):m&&e(z,{label:t.taxTotalOnly,price:m.price,classSuffixes:["taxTotal"],testId:"tax-total-only"}),B=[{key:"subTotalContent",sortOrder:100,content:d},{key:"shippingContent",sortOrder:200,content:N},{key:"discountsContent",sortOrder:600,content:L},{key:"taxContent",sortOrder:800,content:P},...p?[{key:"totalContent",sortOrder:900,content:e(z,{label:t.totalLabel,price:p.price,classSuffixes:["total","total--padded"],testId:"total-content",labelClassSuffix:"bold"})}]:[],...p!=null&&p.priceWithoutTax?[{key:"totalWithoutTaxContent",sortOrder:1e3,content:e(z,{label:t.totalWithoutTax,price:p.priceWithoutTax,classSuffixes:["totalWithoutTax"],testId:"total-without-tax",labelClassSuffix:"muted"})}]:[],...u?[{key:"totalSavedContent",sortOrder:1100,content:e(z,{label:t.totalSaved,price:u,classSuffixes:["saved"],testId:"total-saved",labelClassSuffix:"muted"})}]:[]],C=b(B).sort((k,x)=>k.sortOrder-x.sortOrder);return i("div",{...v,className:o(["quote-order-summary",[`quote-order-summary__${n}`,n],l]),children:[i("div",{className:"quote-order-summary__heading",children:[c&&e(_,{node:c,className:"quote-order-summary__heading-text"}),e(re,{variant:"primary",className:"quote-order-summary__divider-primary"})]}),e("div",{className:"quote-order-summary__content",children:C.map(k=>Array.isArray(k.content)?e(ne,{className:k.className,actionIconPosition:"right",iconOpen:me,iconClose:ce,children:e(oe,{defaultOpen:!1,title:k.title,renderContentWhenClosed:!1,children:k.content.map(x=>x.content)})},k.key):k.content)})]})},Qe=({label:l,price:r,classSuffixes:n=[],labelClassSuffix:c,testId:a,children:s,...g})=>{const m="quote-order-summary__label",q="quote-order-summary__price";return i("div",{...g,...a?{"data-testid":a}:{},className:o(["quote-order-summary__entry",...n.map(p=>`quote-order-summary__${p}`)]),children:[e("span",{className:o([m,...c?[`${m}--${c}`]:[]]),children:l}),e(_,{node:r,className:o([q,...c?[`${q}--${c}`]:[]])}),s]})};function Me(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch(l){return console.warn("Failed to detect user timezone, falling back to UTC:",l),"UTC"}}function Ce(l){const r=new Date(l);return!isNaN(r.getTime())}function ee(l,r="short"){if(!Ce(l))return"–";const n=_e()||"en-US";let c;if(/^\d{4}-\d{2}-\d{2}$/.test(l)){const[a,s,g]=l.split("-").map(Number);c=new Date(a,s-1,g)}else c=new Date(l);return r==="short"?c.toLocaleDateString(n,{year:"numeric",month:"numeric",day:"numeric"}):c.toLocaleDateString(n,{year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!0})}const Ye=({className:l,items:r,canEdit:n,readOnly:c=!1,showActions:a,onItemCheckboxChange:s,onItemDropdownChange:g,onQuantityChange:m,onUpdate:q,dropdownSelections:p,...u})=>{const[b,v]=se({}),[f,y]=se({});ve(()=>{const h={};r.forEach(M=>{h[M.uid]=M.quantity}),v(h),y(h)},[r]);const t=Object.keys(f).some(h=>f[h]!==b[h]),d=$({updateButton:"NegotiableQuote.Manage.productListTable.submitButton",productNameHeader:"NegotiableQuote.Manage.productListTable.headers.productName",skuHeader:"NegotiableQuote.Manage.productListTable.headers.sku",priceHeader:"NegotiableQuote.Manage.productListTable.headers.price",quantityHeader:"NegotiableQuote.Manage.productListTable.headers.quantity",discountHeader:"NegotiableQuote.Manage.productListTable.headers.discount",subtotalHeader:"NegotiableQuote.Manage.productListTable.headers.subtotal",actionsHeader:"NegotiableQuote.Manage.productListTable.headers.actions",editNoteToSeller:"NegotiableQuote.Manage.productListTable.actions.editNoteToSeller",remove:"NegotiableQuote.Manage.productListTable.actions.remove",notesHeader:"NegotiableQuote.Manage.productListTable.notes.header",leftANote:"NegotiableQuote.Manage.productListTable.notes.leftANote",buyer:"NegotiableQuote.Manage.productListTable.notes.buyer",seller:"NegotiableQuote.Manage.productListTable.notes.seller",outOfStock:"NegotiableQuote.Manage.productListTable.outOfStock",outOfStockMessage:"NegotiableQuote.Manage.productListTable.outOfStockMessage"}),N=[{label:d.productNameHeader,key:"productName"},{label:d.skuHeader,key:"sku"},{label:d.priceHeader,key:"price"},{label:d.quantityHeader,key:"quantity"},{label:d.discountHeader,key:"discount"},{label:d.subtotalHeader,key:"subtotal"}];n&&!c&&N.unshift({label:"",key:"checkbox"}),(a??n)&&!c&&N.push({label:d.actionsHeader,key:"actions"});const P=(h,M)=>{const D=h.target.checked;s==null||s(M,D)},B=(h,M)=>{const D=h.target.value;g==null||g(M,D)},C=(h,M)=>{const D=parseInt(h.target.value,10);!isNaN(D)&&D>0&&(y(U=>({...U,[M.uid]:D})),m==null||m(M,D))},k=h=>{h.preventDefault(),q==null||q(h)},x=(h,M)=>h>0?i("div",{className:"quote-management-product-list-table__discount-container",children:[i("span",{className:"quote-management-product-list-table__discount-percent",children:[M,"%"]}),i("span",{className:"quote-management-product-list-table__discount-price",children:["(",e(O,{amount:h}),")"]})]}):void 0,w=h=>{var U,V;const M=(U=h.configurableOptions)==null?void 0:U.map(I=>i("div",{className:"quote-management-product-list-table__configurable-option",children:[i("span",{className:"quote-management-product-list-table__configurable-option-label",children:[I.optionLabel,":"]}),e("span",{className:"quote-management-product-list-table__configurable-option-value",children:I.valueLabel})]},I.optionLabel)),D=(V=h.bundleOptions)==null?void 0:V.map(I=>i("div",{className:"quote-management-product-list-table__bundle-option",children:[e("span",{className:"quote-management-product-list-table__bundle-option-label",children:I.label}),e("div",{className:"quote-management-product-list-table__bundle-option-values",children:I.values.map(Q=>i("span",{className:"quote-management-product-list-table__bundle-option-value",children:[i("span",{className:"quote-management-product-list-table__bundle-option-value-quantity",children:[Q.quantity," x"]}),e("span",{className:"quote-management-product-list-table__bundle-option-value-label",children:Q.label}),e(O,{className:"quote-management-product-list-table__bundle-option-value-original-price",amount:Q.originalPrice.value,currency:Q.originalPrice.currency,weight:"normal"})]},Q.label))})]},I.label));return i("div",{className:"quote-management-product-list-table__product-name-container",children:[e("span",{className:"quote-management-product-list-table__product-name",children:h.product.name}),M,D]})},Z=h=>new Date(h).toLocaleString("en-US",{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit",hour12:!0,timeZone:Me()}),W=h=>{var V,I;const M=((V=h.noteFromBuyer)==null?void 0:V.filter(Q=>Q&&Q.note&&Q.note.trim()!==""))||[],D=((I=h.noteFromSeller)==null?void 0:I.filter(Q=>Q&&Q.note&&Q.note.trim()!==""))||[],U=[...M,...D];return U.length===0?null:i("div",{className:"quote-management-product-list-table__notes-container","data-testid":`item-notes-${h.product.sku}`,children:[e("div",{className:"quote-management-product-list-table__notes-header",children:d.notesHeader}),e("div",{className:"quote-management-product-list-table__notes-list",children:U.map((Q,be)=>i("div",{className:"quote-management-product-list-table__note-item",children:[i("div",{className:"quote-management-product-list-table__note-content",children:[i("strong",{className:"quote-management-product-list-table__note-meta",children:[Z(Q.createdAt)," (",M.includes(Q)?d.buyer:d.seller,")"]})," ",d.leftANote]}),i("div",{className:"quote-management-product-list-table__note-text",children:[Q.note," "]})]},Q.noteUid||be))})]})},G=new Set,Y=r.flatMap((h,M)=>{var I;const D=W(h);(D||h.outOfStock)&&G.add(M);const U=n?e(j,{className:"quote-management-product-list-table__quantity-input",type:"number",min:"1",value:((I=f[h.uid])==null?void 0:I.toString())||h.quantity.toString(),onChange:Q=>C(Q,h),disabled:c||!n,"data-testid":`quantity-input-${h.product.sku}`}):e("span",{className:"quote-management-product-list-table__quantity",children:h.quantity});return[{checkbox:e(fe,{className:"quote-management-product-list-table__checkbox",name:"itemSelected","data-testid":`item-checkbox-${h.product.sku}`,onChange:Q=>P(Q,h),value:h.product.sku}),productName:w(h),sku:e("span",{className:"quote-management-product-list-table__sku",children:h.product.sku}),price:e(O,{className:"quote-management-product-list-table__price",amount:h.prices.originalItemPrice.value,currency:h.prices.originalItemPrice.currency}),quantity:U,discount:h.rowCatalogDiscount?x(h.rowCatalogDiscount.amountOff,h.rowCatalogDiscount.percentOff):void 0,subtotal:e(O,{className:"quote-management-product-list-table__subtotal",amount:h.prices.rowTotal.value,currency:h.prices.rowTotal.currency}),actions:e(ue,{className:"quote-management-product-list-table__actions","data-testid":`item-dropdown-${h.product.sku}`,name:`item-dropdown-${h.product.sku}`,handleSelect:Q=>B(Q,h),placeholder:"Select",value:(p==null?void 0:p[h.uid])??"",options:[{text:d.editNoteToSeller,value:"edit"},{text:d.remove,value:"remove"}]}),_rowDetails:i(R,{children:[h.outOfStock&&e("div",{className:"quote-management-product-list-table__out-of-stock-message",children:e(ie,{type:"warning",variant:"primary",icon:e(ae,{}),heading:d.outOfStock,description:d.outOfStockMessage})}),D&&e("div",{className:"quote-management-product-list-table__notes-row-wrapper",children:D})]})}]}),S=e(te,{columns:N,rowData:Y,"data-testid":"product-list-table",mobileLayout:"stacked",expandedRows:G}),A=n?le("form",{}):le("div",{}),pe=n?{onSubmit:k,...u}:u,he=e(H,{type:"submit",disabled:c||!n||!t,"data-testid":"product-list-table-submit-button",children:d.updateButton});return i(_,{node:A,className:o(["quote-management-product-list-table-container",l]),"data-testid":"product-list-table-container",...pe,children:[S,e("div",{className:"quote-management-product-list-table-container__submit-container",children:he})]})},et=({className:l,entries:r,...n})=>{const c=a=>{var g;const s=(g=a.children)==null?void 0:g.map(c);return e("div",{className:"quote-management-quote-prices-summary__entry","data-testid":`quote-prices-summary-entry-${a.id}`,children:s?e(ne,{className:"quote-management-quote-prices-summary__accordion","data-testid":`quote-prices-summary-entry-accordion-${a.id}`,children:e(oe,{className:"quote-management-quote-prices-summary__accordion-section",title:a.label,ariaLabelTitle:a.label,secondaryText:a.value,children:s})}):i(R,{children:[e("span",{className:o(["quote-management-quote-prices-summary__label",["quote-management-quote-prices-summary__label--strong",a.strong]]),"data-testid":`quote-prices-summary-entry-label-${a.id}`,children:a.label}),e("span",{className:"quote-management-quote-prices-summary__value","data-testid":`quote-prices-summary-entry-value-${a.id}`,children:a.value})]})},a.id)};return e("div",{className:o(["quote-management-quote-prices-summary",l]),"data-testid":"quote-prices-summary",...n,children:r==null?void 0:r.map(c)})},tt=({className:l,children:r,heading:n,footer:c,products:a,outOfStockMessage:s,loading:g=!0,variant:m="primary",...q})=>e("div",{...q,className:o(["quote-management-quote-summary-list",l,`quote-management-quote-summary-list__background--${m}`]),children:g?e(Se,{}):i(R,{children:[(n||s)&&i("div",{"data-testid":"quote-summary-list-heading-wrapper",className:o(["quote-management-quote-summary-list__heading",["quote-management-quote-summary-list__heading--full-width",!a]]),children:[n&&i(R,{children:[e(_,{node:n,className:"quote-management-quote-summary-list__heading-text"}),e(re,{variant:"primary",className:o(["quote-management-quote-summary-list__heading-divider"])})]}),s&&e(_,{node:s,className:"quote-management-quote-summary-list__out-of-stock-message"})]}),e("div",{className:o(["quote-management-quote-summary-list__content"]),children:a}),c&&i(R,{children:[e(re,{variant:"primary",className:o(["quote-management-quote-summary-list__footer-divider"])}),e(_,{node:c,className:"quote-management-quote-summary-list__footer-text"})]})]})}),Se=()=>e(X,{"data-testid":"quote-summary-list-skeleton",className:"quote-management-quote-summary-list__skeleton",rowGap:"medium",children:e(E,{variant:"row",size:"xlarge",fullWidth:!0,lines:3,multilineGap:"small"})}),at=({rowData:l=[],loading:r=!1,className:n,emptyStateMessage:c,showItemRange:a=!0,itemRangeMessage:s,showPageSizePicker:g=!0,pageSizePickerMessage:m,showPagination:q=!0,paginationMessage:p,...u})=>{const b=$({quoteName:"QuoteManagement.QuotesListTable.quoteName",created:"QuoteManagement.QuotesListTable.created",createdBy:"QuoteManagement.QuotesListTable.createdBy",status:"QuoteManagement.QuotesListTable.status",lastUpdated:"QuoteManagement.QuotesListTable.lastUpdated",quoteTemplate:"QuoteManagement.QuotesListTable.quoteTemplate",quoteTotal:"QuoteManagement.QuotesListTable.quoteTotal",actions:"QuoteManagement.QuotesListTable.actions"}),v=[{key:"quoteName",label:b.quoteName},{key:"created",label:b.created},{key:"createdBy",label:b.createdBy},{key:"status",label:b.status},{key:"lastUpdated",label:b.lastUpdated},{key:"quoteTemplate",label:b.quoteTemplate},{key:"quoteTotal",label:b.quoteTotal},{key:"actions",label:b.actions}],f=r||l.length>0,y=!r&&l.length===0&&c,t=a&&s,d=g&&m,N=q&&p,L=t||d||N;return i("div",{...u,className:o(["quote-management-quotes-list-table",n]),children:[f&&e(te,{columns:v,rowData:l,loading:r,mobileLayout:"none",className:"quote-management-quotes-list-table__table"}),y&&e("div",{className:"quotes-list-table__empty-state",children:c}),L&&i("div",{className:"quotes-list-table__footer",children:[e("div",{className:"quotes-list-table__item-range",children:t&&s}),e("div",{className:"quotes-list-table__pagination",children:N&&p}),e("div",{className:"quotes-list-table__page-size-picker",children:d&&m})]})]})},nt=({rowData:l=[],loading:r=!1,className:n,emptyStateMessage:c,showItemRange:a=!0,itemRangeMessage:s,showPageSizePicker:g=!0,pageSizePickerMessage:m,showPagination:q=!0,paginationMessage:p,...u})=>{const b=$({name:"QuoteManagement.QuoteTemplatesListTable.name",state:"QuoteManagement.QuoteTemplatesListTable.state",status:"QuoteManagement.QuoteTemplatesListTable.status",validUntil:"QuoteManagement.QuoteTemplatesListTable.validUntil",minQuoteTotal:"QuoteManagement.QuoteTemplatesListTable.minQuoteTotal",ordersPlaced:"QuoteManagement.QuoteTemplatesListTable.ordersPlaced",lastOrdered:"QuoteManagement.QuoteTemplatesListTable.lastOrdered",actions:"QuoteManagement.QuoteTemplatesListTable.actions"}),v=[{key:"name",label:b.name},{key:"state",label:b.state},{key:"status",label:b.status},{key:"validUntil",label:b.validUntil},{key:"minQuoteTotal",label:b.minQuoteTotal},{key:"ordersPlaced",label:b.ordersPlaced},{key:"lastOrdered",label:b.lastOrdered},{key:"actions",label:b.actions}],f=r||l.length>0,y=!r&&l.length===0&&c,t=a&&s,d=g&&m,N=q&&p,L=t||d||N;return i("div",{...u,className:o(["quote-management-quote-templates-list-table",n]),children:[f&&e(te,{columns:v,rowData:l,loading:r,mobileLayout:"none",className:"quote-management-quote-templates-list-table__table"}),y&&e("div",{className:"quote-templates-list-table__empty-state",children:c}),L&&i("div",{className:"quote-templates-list-table__footer",children:[e("div",{className:"quote-templates-list-table__item-range",children:t&&s}),e("div",{className:"quote-templates-list-table__pagination",children:N&&p}),e("div",{className:"quote-templates-list-table__page-size-picker",children:d&&m})]})]})},ot=({open:l=!1,title:r,message:n,cancelLabel:c,confirmLabel:a,onCancel:s,onConfirm:g,onClose:m,showCloseButton:q,confirmationBanner:p,...u})=>{const b=$({cancel:"ConfirmationModal.cancel",confirm:"ConfirmationModal.confirm"});if(!l)return null;const{className:v,...f}=u;return e(J,{...f,size:"medium",onClose:m||s,clickToDismiss:!0,escapeToDismiss:!0,showCloseButton:q,"data-testid":"confirmation-modal",className:v,children:i("div",{className:"confirmation-modal__content",children:[p&&e("div",{className:"confirmation-modal__banner","data-testid":"confirmation-modal-banner",children:p}),r&&e("div",{className:"confirmation-modal__title","data-testid":"confirmation-modal-title",children:r}),n&&e("div",{className:"confirmation-modal__message","data-testid":"confirmation-modal-message",children:n}),i("div",{className:"confirmation-modal__actions","data-testid":"confirmation-modal-actions",children:[s&&e(H,{variant:"secondary",onClick:s,"data-testid":"confirmation-modal-cancel",children:c??b.cancel}),e(H,{variant:"primary",onClick:g,"data-testid":"confirmation-modal-confirm",children:a??b.confirm})]})]})})},rt=({className:l,children:r,history:n,items:c,buyer:a,salesRepName:s,...g})=>{const m=$({quoteCreated:"historyLog.changeTypes.created",quoteUpdated:"historyLog.changeTypes.updated",statusChanged:"historyLog.changeTypes.statusChanged",commentAdded:"historyLog.changeTypes.commentAdded",expirationChanged:"historyLog.changeTypes.expirationChanged",buyerNoteAdded:"historyLog.noteTypes.buyerNoteAdded",sellerNoteAdded:"historyLog.noteTypes.sellerNoteAdded",buyerLabel:"historyLog.authorLabels.buyer",sellerLabel:"historyLog.authorLabels.seller",commentDetail:"historyLog.changeDetails.comment",statusChangedFromTo:"historyLog.changeDetails.statusChangedFromTo",statusSetTo:"historyLog.changeDetails.statusSetTo",expirationChangedFromTo:"historyLog.changeDetails.expirationChangedFromTo",expirationSetTo:"historyLog.changeDetails.expirationSetTo",totalChangedFromTo:"historyLog.changeDetails.totalChangedFromTo",customChange:"historyLog.changeDetails.customChange",productsRemovedFromCatalog:"historyLog.changeDetails.productsRemovedFromCatalog",productsRemovedFromQuote:"historyLog.changeDetails.productsRemovedFromQuote",noDetailsAvailable:"historyLog.changeDetails.noDetailsAvailable",emptyState:"historyLog.emptyState",never:"dateUtils.never"}),q=t=>{switch(t){case"CREATED":return m.quoteCreated;case"UPDATED":return m.quoteUpdated;case"STATUS_CHANGED":return m.statusChanged;case"COMMENT_ADDED":return m.commentAdded;case"EXPIRATION_CHANGED":return m.expirationChanged;default:return t.replace(/_/g," ").toLowerCase().replace(/\b\w/g,d=>d.toUpperCase())}},p=t=>{var N,L,P,B,C,k,x,w,Z,W,G,Y;const d=[];if((N=t==null?void 0:t.commentAdded)!=null&&N.comment&&d.push(m.commentDetail.replace("{comment}",t.commentAdded.comment)),(L=t==null?void 0:t.statuses)!=null&&L.changes&&t.statuses.changes.forEach(S=>{S.oldStatus&&S.newStatus?d.push(m.statusChangedFromTo.replace("{oldStatus}",S.oldStatus).replace("{newStatus}",S.newStatus)):S.newStatus&&d.push(m.statusSetTo.replace("{newStatus}",S.newStatus))}),(P=t==null?void 0:t.expiration)!=null&&P.newExpiration&&((B=t==null?void 0:t.expiration)!=null&&B.oldExpiration)){const S=ee(t.expiration.newExpiration),A=ee(t.expiration.oldExpiration);d.push(m.expirationChangedFromTo.replace("{oldExpiration}",A).replace("{newExpiration}",S))}else if((C=t==null?void 0:t.expiration)!=null&&C.newExpiration){const S=ee(t.expiration.newExpiration);d.push(m.expirationSetTo.replace("{newExpiration}",S))}if((k=t==null?void 0:t.total)!=null&&k.newPrice&&((x=t==null?void 0:t.total)!=null&&x.oldPrice)){const S=`${t.total.newPrice.currency} ${t.total.newPrice.value}`,A=`${t.total.oldPrice.currency} ${t.total.oldPrice.value}`;d.push(m.totalChangedFromTo.replace("{oldTotal}",A).replace("{newTotal}",S))}if((w=t==null?void 0:t.customChanges)!=null&&w.title&&((Z=t==null?void 0:t.customChanges)!=null&&Z.old_value)&&((W=t==null?void 0:t.customChanges)!=null&&W.new_value)&&d.push(m.customChange.replace("{title}",t.customChanges.title).replace("{oldValue}",t.customChanges.old_value).replace("{newValue}",t.customChanges.new_value)),(G=t==null?void 0:t.productsRemoved)!=null&&G.productsRemovedFromCatalog&&t.productsRemoved.productsRemovedFromCatalog.length>0&&d.push(m.productsRemovedFromCatalog.replace("{products}",t.productsRemoved.productsRemovedFromCatalog.join(", "))),(Y=t==null?void 0:t.productsRemoved)!=null&&Y.productsRemovedFromQuote&&t.productsRemoved.productsRemovedFromQuote.length>0){const S=t.productsRemoved.productsRemovedFromQuote.map(A=>A.name||A.sku||A.uid).join(", ");d.push(m.productsRemovedFromQuote.replace("{products}",S))}return d.length>0?d:[m.noDetailsAvailable]},b=(()=>{const t=[],d=(N,L,P,B)=>{N&&Array.isArray(N)&&N.forEach(C=>{C&&C.note&&C.note.trim()&&t.push({...C,type:L,productName:B.product.name,productSku:B.product.sku,authorName:P})})};return c&&c.forEach(N=>{d(N.noteFromBuyer,"buyer",`${a.firstname} ${a.lastname} ${m.buyerLabel}`,N),d(N.noteFromSeller,"seller",`${s} ${m.sellerLabel}`,N)}),t})(),v=(n||[]).map(t=>({...t,entryType:"history"})),f=b.map(t=>({...t,entryType:"note"})),y=[...v,...f];return i("div",{...g,className:o(["quote-management-quote-history-log",l]),children:[y.length>0?e("div",{className:"quote-management-quote-history-log__entries",children:y.map((t,d)=>i("div",{className:"quote-management-quote-history-log__entry",children:[i("div",{className:"quote-management-quote-history-log__entry-header",children:[i("div",{className:"quote-management-quote-history-log__entry-meta",children:[e("span",{className:"quote-management-quote-history-log__entry-date",children:ee(t.createdAt,"long")}),e("span",{className:"quote-management-quote-history-log__entry-author",children:t.entryType==="history"?`by ${t.author.firstname} ${t.author.lastname} ${t.author.firstname===a.firstname&&t.author.lastname===a.lastname?m.buyerLabel:m.sellerLabel}`:`by ${t.authorName}`})]}),e("div",{className:"quote-management-quote-history-log__entry-type",children:t.entryType==="history"?q(t.changeType):t.type==="buyer"?m.buyerNoteAdded:m.sellerNoteAdded})]}),e("div",{className:"quote-management-quote-history-log__entry-changes",children:t.entryType==="history"?p(t.changes).map((N,L)=>e("div",{className:"quote-management-quote-history-log__entry-change",children:N},L)):i("div",{className:"quote-management-quote-history-log__entry-change",children:[i("div",{children:[t.productName,"(",t.productSku,")"]}),i("div",{children:['"',t.note,'"']})]})})]},t.entryType==="history"?t.uid:`${t.noteUid}-${d}`))}):e("div",{className:"quote-management-quote-history-log__empty",children:m.emptyState}),r]})},it=({className:l,tabs:r,tabsContent:n,defaultActiveTab:c,...a})=>{const[s,g]=F(c||Array.from(r.keys())[0]),m=p=>{g(p)},q=qe(()=>n.get(s),[s,n]);return i("div",{...a,className:o(["quote-management-tabbed-content",l]),children:[r&&e("div",{"data-testid":"tabbed-content-tabs",className:o(["quote-management-tabbed-content__tabs"]),children:Array.from(r.entries()).map(([p,u])=>e("button",{className:o(["quote-management-tabbed-content__tab",["quote-management-tabbed-content__tab--active",p===s]]),onClick:()=>m(p),children:u},p))}),q&&e("div",{className:o(["quote-management-tabbed-content__active-tab-content"]),children:e(_,{node:q})})]})},lt=({className:l,comments:r,...n})=>{const c=$({emptyState:"NegotiableQuote.Manage.quoteComments.emptyState",by:"NegotiableQuote.Manage.quoteComments.by",attachments:"NegotiableQuote.Manage.quoteComments.attachments"});return!r||r.length===0?e("ul",{...n,className:o(["quote-management-quote-comments-list","quote-management-quote-comments-list--empty",l]),"data-testid":"quote-comments-list",children:e("li",{className:"quote-management-quote-comments-list__empty-state","data-testid":"quote-comments-empty-state",children:c.emptyState})}):e("ul",{...n,className:o(["quote-management-quote-comments-list",l]),"data-testid":"quote-comments-list",children:r.map(a=>i("li",{className:"quote-management-quote-comments-list__item","data-testid":`quote-comment-${a.uid}`,children:[i("div",{className:"quote-management-quote-comments-list__header",children:[e(_,{className:"quote-management-quote-comments-list__date",node:a.createdAt,"data-testid":`quote-comment-date-${a.uid}`}),e("span",{className:"quote-management-quote-comments-list__by",children:c.by}),e(_,{className:"quote-management-quote-comments-list__author",node:a.author,"data-testid":`quote-comment-author-${a.uid}`})]}),e(_,{className:"quote-management-quote-comments-list__text",node:a.text,"data-testid":`quote-comment-text-${a.uid}`}),a.attachments&&a.attachments.length>0&&i("div",{className:"quote-management-quote-comments-list__attachments","data-testid":`quote-comment-attachments-${a.uid}`,children:[e("span",{className:"quote-management-quote-comments-list__attachments-label",children:c.attachments}),a.attachments.map((s,g)=>e("a",{href:s.url,target:"_blank",rel:"noopener noreferrer",className:"quote-management-quote-comments-list__attachment-link","data-testid":`quote-comment-attachment-${a.uid}-${g}`,children:s.name},`${a.uid}-attachment-${g}`))]})]},a.uid))})},st=({className:l,open:r,quoteName:n,renameReason:c,quoteNameError:a,errorBanner:s,successBanner:g,showCloseButton:m=!0,onQuoteNameChange:q,onRenameReasonChange:p,onSave:u,onClose:b})=>{const v=$({title:"NegotiableQuote.Manage.rename.title",quoteNameLabel:"NegotiableQuote.Manage.rename.quoteNameLabel",reasonLabel:"NegotiableQuote.Manage.rename.reasonLabel",renameButton:"NegotiableQuote.Manage.rename.renameButton",cancelButton:"NegotiableQuote.Manage.rename.cancelButton"});return r?i(J,{open:r,size:"medium",title:e(R,{children:v.title}),onClose:b,clickToDismiss:!0,escapeToDismiss:!0,showCloseButton:m,className:o(["quote-management-rename-quote-modal",l]),"data-testid":"rename-quote-modal",children:[s&&e("div",{className:o(["quote-management-rename-quote-modal__error-banner"]),"data-testid":"rename-quote-modal-error-banner",children:s}),g&&e("div",{className:o(["quote-management-rename-quote-modal__success-banner"]),"data-testid":"rename-quote-modal-success-banner",children:g}),i("div",{className:o(["quote-management-rename-quote-modal__content"]),children:[i("div",{children:[e(j,{name:"quoteName",type:"text",value:n,onInput:f=>q(f.target.value),floatingLabel:v.quoteNameLabel,required:!0,error:!!a}),a&&e("span",{className:o(["quote-management-rename-quote-modal__error-text"]),children:a})]}),e(ge,{name:"quoteComment",value:c,onInput:f=>p(f.target.value),label:v.reasonLabel,rows:3})]}),i("div",{className:o(["quote-management-rename-quote-modal__actions"]),children:[e(H,{variant:"secondary",size:"medium",onClick:b,className:o(["quote-management-rename-quote-modal__cancel-button"]),children:v.cancelButton}),e(H,{variant:"primary",size:"medium",onClick:u,className:o(["quote-management-rename-quote-modal__save-button"]),children:v.renameButton})]})]}):null},mt=({className:l,open:r,expirationDate:n,expirationDateError:c,errorBanner:a,successBanner:s,showCloseButton:g=!0,onExpirationDateChange:m,onSave:q,onClose:p})=>{const u=$({title:"NegotiableQuoteTemplate.Manage.expirationDate.title",expirationDateLabel:"NegotiableQuoteTemplate.Manage.expirationDate.expirationDateLabel",saveButton:"NegotiableQuoteTemplate.Manage.expirationDate.saveButton",cancelButton:"NegotiableQuoteTemplate.Manage.expirationDate.cancelButton"});return r?i(J,{open:r,size:"medium",title:e(R,{children:u.title}),onClose:p,clickToDismiss:!0,escapeToDismiss:!0,showCloseButton:g,className:o(["quote-management-expiration-date-modal",l]),"data-testid":"expiration-date-modal",children:[a&&e("div",{className:o(["quote-management-expiration-date-modal__error-banner"]),"data-testid":"expiration-date-modal-error-banner",children:a}),s&&e("div",{className:o(["quote-management-expiration-date-modal__success-banner"]),"data-testid":"expiration-date-modal-success-banner",children:s}),e("div",{className:o(["quote-management-expiration-date-modal__content"]),children:e("div",{children:e(Ne,{name:"expirationDate",value:n,onChange:b=>m(b.target.value),floatingLabel:u.expirationDateLabel,required:!0,error:c,"data-testid":"expiration-date-input"})})}),i("div",{className:o(["quote-management-expiration-date-modal__actions"]),children:[e(H,{variant:"secondary",size:"medium",onClick:p,className:o(["quote-management-expiration-date-modal__cancel-button"]),children:u.cancelButton}),e(H,{variant:"primary",size:"medium",onClick:q,className:o(["quote-management-expiration-date-modal__save-button"]),children:u.saveButton})]})]}):null},ct=({className:l,loading:r,templateName:n,templateStatus:c,banner:a,details:s,actionBar:g,referenceDocuments:m,itemsTable:q,shippingInformationTitle:p,shippingInformation:u,commentsTitle:b,comments:v,attachFilesField:f,attachedFilesList:y,footer:t,...d})=>r?e(De,{}):i("div",{...d,className:o(["quote-management-manage-negotiable-quote-template",l]),children:[i("div",{className:o(["quote-management-manage-negotiable-quote-template__header"]),children:[n&&e(_,{node:n,className:o(["quote-management-manage-negotiable-quote-template__template-name"])}),c&&e(_,{node:c,className:o(["quote-management-manage-negotiable-quote-template__template-status"])})]}),a&&e(_,{node:a,className:o(["quote-management-manage-negotiable-quote-template__banner"])}),s&&e(_,{node:s,className:o(["quote-management-manage-negotiable-quote-template__details"])}),g&&e(_,{node:g,className:o(["quote-management-manage-negotiable-quote-template__action-bar"])}),m&&e("div",{"data-testid":"reference-documents-container",className:o(["quote-management-manage-negotiable-quote-template__reference-documents-container"]),children:e(_,{node:m,className:o(["quote-management-manage-negotiable-quote-template__reference-documents"])})}),q&&e(_,{node:q,className:o(["quote-management-manage-negotiable-quote-template__items-table"])}),i("div",{"data-testid":"template-shipping-information-container",className:o(["quote-management-manage-negotiable-quote-template__shipping-information-container"]),children:[p&&e(_,{node:p,className:o(["quote-management-manage-negotiable-quote-template__shipping-information-title"])}),u&&e(_,{node:u,className:o(["quote-management-manage-negotiable-quote-template__shipping-information"])})]}),i("div",{"data-testid":"comments-container",className:o(["quote-management-manage-negotiable-quote-template__comments-container"]),children:[b&&e(_,{node:b,className:o(["quote-management-manage-negotiable-quote-template__comments-title"])}),v&&e(_,{node:v,className:o(["quote-management-manage-negotiable-quote-template__comments"])}),f&&e(_,{node:f,className:o(["quote-management-manage-negotiable-quote-template__attach-files-field"])}),y&&e(_,{node:y,className:o(["quote-management-manage-negotiable-quote-template__attached-files-list"])})]}),t&&e(_,{node:t,className:o(["quote-management-manage-negotiable-quote-template__footer"])})]}),De=()=>i(X,{"data-testid":"manage-negotiable-quote-template-skeleton",children:[e(E,{variant:"heading",fullWidth:!0,size:"large"}),e(E,{variant:"row",fullWidth:!1,size:"small"}),e(E,{variant:"row",fullWidth:!1,size:"small"}),e(E,{variant:"row",fullWidth:!0}),e(E,{variant:"row",fullWidth:!0,size:"xlarge",lines:2}),e(E,{variant:"row",fullWidth:!1,size:"small"})]}),dt=({className:l,open:r,item:n,onClose:c,onConfirm:a,isSubmitting:s=!1,errorBanner:g,successBanner:m,showCloseButton:q=!0,readOnlyQuantity:p=!1})=>{const[u,b]=F(""),[v,f]=F(n.quantity),[y,t]=F({}),d=$({title:"NegotiableQuote.Manage.lineItemNote.title",productLabel:"NegotiableQuote.Manage.lineItemNote.productLabel",skuLabel:"NegotiableQuote.Manage.lineItemNote.skuLabel",priceLabel:"NegotiableQuote.Manage.lineItemNote.priceLabel",stockLabel:"NegotiableQuote.Manage.lineItemNote.stockLabel",quantityLabel:"NegotiableQuote.Manage.lineItemNote.quantityLabel",discountLabel:"NegotiableQuote.Manage.lineItemNote.discountLabel",subtotalLabel:"NegotiableQuote.Manage.lineItemNote.subtotalLabel",noteLabel:"NegotiableQuote.Manage.lineItemNote.noteLabel",notePlaceholder:"NegotiableQuote.Manage.lineItemNote.notePlaceholder",noteHelper:"NegotiableQuote.Manage.lineItemNote.noteHelper",confirmButton:"NegotiableQuote.Manage.lineItemNote.confirmButton",cancelButton:"NegotiableQuote.Manage.lineItemNote.cancelButton",noteError:"NegotiableQuote.Manage.lineItemNote.noteError",quantityError:"NegotiableQuote.Manage.lineItemNote.quantityError"});de(()=>{var x;if(r){const w=((x=n.noteFromBuyer)==null?void 0:x.filter(W=>W&&W.note))||[],Z=w.length>0?w[0].note:"";b(Z||""),f(n.quantity),t({})}},[r,n.quantity,n.noteFromBuyer]);const N=K(()=>{const x={};if(u.trim()||(x.note=d.noteError),!p&&v<=0&&(x.quantity=d.quantityError),Object.keys(x).length>0){t(x);return}a(u.trim(),v)},[u,v,a,d,p]),L=K(()=>{b(""),f(n.quantity),t({}),c==null||c()},[c,n.quantity]);if(!r)return null;const B=n.discounts&&n.discounts.length>0?n.discounts.map(x=>x.label).join(", "):"-",C=[{label:d.productLabel,key:"productName"},{label:d.priceLabel,key:"price"},{label:d.stockLabel,key:"stock"},{label:d.quantityLabel,key:"quantity"},{label:d.discountLabel,key:"discount"},{label:d.subtotalLabel,key:"subtotal"}],k=[{productName:i("div",{className:"quote-management-line-item-note-modal__product-info",children:[e("div",{className:"quote-management-line-item-note-modal__product-name",children:n.product.name}),i("div",{className:"quote-management-line-item-note-modal__product-sku",children:[d.skuLabel,": ",n.product.sku]})]}),price:e(O,{amount:n.prices.originalItemPrice.value,currency:n.prices.originalItemPrice.currency}),stock:e("span",{className:"quote-management-line-item-note-modal__stock",children:n.stockStatus}),quantity:p?e("span",{className:"quote-management-line-item-note-modal__quantity-readonly",children:n.quantity}):e(j,{name:"quantity",type:"number",min:"1",value:v.toString(),onInput:x=>{const w=parseInt(x.target.value,10)||0;f(w),t({...y,quantity:void 0})},disabled:s,error:!!y.quantity,required:!0,"data-testid":"line-item-note-quantity-input",className:"quote-management-line-item-note-modal__quantity-input"}),discount:e("span",{className:"quote-management-line-item-note-modal__discount",children:B}),subtotal:e(O,{amount:n.prices.rowTotal.value,currency:n.prices.rowTotal.currency})}];return i(J,{open:r,size:"medium",title:e(R,{children:d.title}),onClose:L,clickToDismiss:!0,escapeToDismiss:!0,showCloseButton:q,className:o(["quote-management-line-item-note-modal",l]),"data-testid":"line-item-note-modal",children:[g&&e("div",{className:"quote-management-line-item-note-modal__error-banner","data-testid":"line-item-note-modal-error-banner",children:g}),m&&e("div",{className:"quote-management-line-item-note-modal__success-banner","data-testid":"line-item-note-modal-success-banner",children:m}),i("div",{className:"quote-management-line-item-note-modal__content",children:[i("div",{className:"quote-management-line-item-note-modal__details",children:[e(te,{columns:C,rowData:k,"data-testid":"line-item-note-table",mobileLayout:"stacked",className:"quote-management-line-item-note-modal__details-table"}),y.quantity&&e("div",{className:"quote-management-line-item-note-modal__table-error",children:y.quantity})]}),i("div",{className:"quote-management-line-item-note-modal__form-field",children:[e(ge,{name:"note",placeholder:d.notePlaceholder,rows:4,value:u,onInput:x=>{b(x.target.value),t({...y,note:void 0})},label:d.noteLabel,disabled:s,"data-testid":"line-item-note-textarea"}),!y.note&&e("span",{className:"quote-management-line-item-note-modal__helper-text",children:d.noteHelper}),y.note&&e("span",{className:"quote-management-line-item-note-modal__error-text",children:y.note})]})]}),i("div",{className:"quote-management-line-item-note-modal__actions",children:[e(H,{variant:"secondary",size:"medium",onClick:L,disabled:s,className:"quote-management-line-item-note-modal__cancel-button","data-testid":"line-item-note-cancel-button",children:d.cancelButton}),e(H,{variant:"primary",size:"medium",onClick:N,disabled:s,className:"quote-management-line-item-note-modal__confirm-button","data-testid":"line-item-note-confirm-button",children:d.confirmButton})]})]})},ut=({className:l,open:r,document:n,errorMessage:c,errorBanner:a,successBanner:s,showCloseButton:g=!0,isSubmitting:m=!1,onSave:q,onClose:p})=>{const[u,b]=F(""),[v,f]=F(""),[y,t]=F(""),[d,N]=F({}),L=$({title:"NegotiableQuoteTemplate.Manage.referenceDocuments.form.title",documentNameLabel:"NegotiableQuoteTemplate.Manage.referenceDocuments.form.documentNameLabel",documentIdentifierLabel:"NegotiableQuoteTemplate.Manage.referenceDocuments.form.documentIdentifierLabel",referenceUrlLabel:"NegotiableQuoteTemplate.Manage.referenceDocuments.form.referenceUrlLabel",addButton:"NegotiableQuoteTemplate.Manage.referenceDocuments.form.addButton",updateButton:"NegotiableQuoteTemplate.Manage.referenceDocuments.form.updateButton",cancelButton:"NegotiableQuoteTemplate.Manage.referenceDocuments.form.cancelButton",documentNameRequired:"NegotiableQuoteTemplate.Manage.referenceDocuments.form.documentNameRequired",documentIdentifierRequired:"NegotiableQuoteTemplate.Manage.referenceDocuments.form.documentIdentifierRequired",referenceUrlRequired:"NegotiableQuoteTemplate.Manage.referenceDocuments.form.referenceUrlRequired",invalidUrl:"NegotiableQuoteTemplate.Manage.referenceDocuments.form.invalidUrl",errorHeading:"NegotiableQuoteTemplate.Manage.referenceDocuments.form.errorHeading"}),P=a||(c?e(ie,{type:"error",variant:"primary",icon:e(ae,{}),heading:L.errorHeading,description:c,"data-testid":"reference-document-form-modal-error-banner-inline"}):null),B=!!n;de(()=>{r&&(n?(b(n.name||""),f(n.identifier||""),t(n.url||"")):(b(""),f(""),t("")),N({}))},[r,n]);const C=K(w=>{if(!w.trim())return!1;try{return new URL(w),!0}catch{return!1}},[]),k=K(()=>{const w={};if(u.trim()||(w.documentName=L.documentNameRequired),y.trim()?C(y.trim())||(w.referenceUrl=L.invalidUrl):w.referenceUrl=L.referenceUrlRequired,v.trim()||(w.documentIdentifier=L.documentIdentifierRequired),Object.keys(w).length>0){N(w);return}q({uid:n==null?void 0:n.uid,name:u.trim(),identifier:v.trim(),url:y.trim()})},[u,v,y,n,L,C,q]),x=K(()=>{b(""),f(""),t(""),N({}),p==null||p()},[p]);return r?i(J,{open:r,size:"medium",title:e(R,{children:L.title}),onClose:x,clickToDismiss:!0,escapeToDismiss:!0,showCloseButton:g,className:o(["quote-management-reference-document-form-modal",l]),"data-testid":"reference-document-form-modal",children:[P&&e("div",{className:o(["quote-management-reference-document-form-modal__error-banner"]),"data-testid":"reference-document-form-modal-error-banner",children:P}),s&&e("div",{className:o(["quote-management-reference-document-form-modal__success-banner"]),"data-testid":"reference-document-form-modal-success-banner",children:s}),i("div",{className:o(["quote-management-reference-document-form-modal__content"]),children:[i("div",{children:[e(j,{name:"documentName",type:"text",value:u,onInput:w=>{b(w.target.value),N({...d,documentName:void 0})},floatingLabel:L.documentNameLabel,required:!0,error:!!d.documentName,disabled:m,"data-testid":"reference-document-name-input"}),d.documentName&&e("span",{className:o(["quote-management-reference-document-form-modal__error-text"]),"data-testid":"reference-document-name-error",children:d.documentName})]}),i("div",{children:[e(j,{name:"documentIdentifier",type:"text",value:v,onInput:w=>{f(w.target.value),N({...d,documentIdentifier:void 0})},floatingLabel:L.documentIdentifierLabel,error:!!d.documentIdentifier,disabled:m,"data-testid":"reference-document-identifier-input"}),d.documentIdentifier&&e("span",{className:o(["quote-management-reference-document-form-modal__error-text"]),"data-testid":"reference-document-identifier-error",children:d.documentIdentifier})]}),i("div",{children:[e(j,{name:"referenceUrl",type:"url",value:y,onInput:w=>{t(w.target.value),N({...d,referenceUrl:void 0})},floatingLabel:L.referenceUrlLabel,required:!0,error:!!d.referenceUrl,disabled:m,"data-testid":"reference-document-url-input"}),d.referenceUrl&&e("span",{className:o(["quote-management-reference-document-form-modal__error-text"]),"data-testid":"reference-document-url-error",children:d.referenceUrl})]})]}),i("div",{className:o(["quote-management-reference-document-form-modal__actions"]),children:[e(H,{variant:"secondary",size:"medium",onClick:x,disabled:m,className:o(["quote-management-reference-document-form-modal__cancel-button"]),"data-testid":"reference-document-form-cancel-button",children:L.cancelButton}),e(H,{variant:"primary",size:"medium",onClick:k,disabled:m,className:o(["quote-management-reference-document-form-modal__save-button"]),"data-testid":"reference-document-form-save-button",children:B?L.updateButton:L.addButton})]})]}):null},gt=({className:l,documents:r,isEditable:n=!1,onAdd:c,onEdit:a,onRemove:s,...g})=>{const m=$({add:"NegotiableQuoteTemplate.Manage.referenceDocuments.add",edit:"NegotiableQuoteTemplate.Manage.referenceDocuments.edit",remove:"NegotiableQuoteTemplate.Manage.referenceDocuments.remove",noReferenceDocuments:"NegotiableQuoteTemplate.Manage.referenceDocuments.noReferenceDocuments"}),q=u=>u.identifier?`${u.name}, ${u.identifier}`:`${u.name} ${u.url}`,p=(u,b)=>{u.preventDefault(),window.open(b,"_blank","noopener,noreferrer")};return e("div",{className:o(["quote-management-reference-documents-list",l]),"data-testid":"reference-documents-list",...g,children:i("div",{className:"quote-management-reference-documents-list__content",children:[r.map(u=>i("div",{className:"quote-management-reference-documents-list__document","data-testid":`reference-document-${u.uid||u.url}`,children:[e("a",{href:u.url,onClick:b=>p(b,u.url),className:"quote-management-reference-documents-list__document-link",target:"_blank",rel:"noopener noreferrer","data-testid":`reference-document-link-${u.uid||u.url}`,children:q(u)}),n&&i("div",{className:"quote-management-reference-documents-list__document-actions",children:[e(H,{variant:"tertiary",onClick:()=>a==null?void 0:a(u),className:"quote-management-reference-documents-list__edit-button","data-testid":`reference-document-edit-${u.uid||u.url}`,children:m.edit}),e("span",{className:"quote-management-reference-documents-list__separator",children:"|"}),e(H,{variant:"tertiary",onClick:()=>s==null?void 0:s(u),className:"quote-management-reference-documents-list__remove-button","data-testid":`reference-document-remove-${u.uid||u.url}`,children:m.remove})]})]},u.uid||u.url)),n&&i(H,{variant:"tertiary",onClick:c,className:"quote-management-reference-documents-list__add-button","data-testid":"reference-documents-add-button",children:["+ ",m.add]}),r.length===0&&!n&&e("div",{className:"quote-management-reference-documents-list__empty",children:m.noReferenceDocuments})]})})};export{Ge as A,ot as C,mt as E,Ke as I,dt as L,Xe as M,z as O,Ye as P,at as Q,Ze as R,Ae as S,it as T,Oe as a,ye as b,ae as c,ee as d,nt as e,Te as f,Je as g,ze as h,rt as i,lt as j,Fe as k,Ve as l,st as m,We as n,et as o,gt as p,ct as q,ut as r,me as s,Ue as t,tt as u,je as v};
|
|
3
|
+
import{classes as o,VComponent as _,getGlobalLocale as _e}from"@dropins/tools/lib.js";import{useText as $}from"@dropins/tools/i18n.js";import*as T from"@dropins/tools/preact-compat.js";import{useState as F,useMemo as qe,useEffect as de,useCallback as K}from"@dropins/tools/preact-compat.js";import{jsx as e,jsxs as i,Fragment as R}from"@dropins/tools/preact-jsx-runtime.js";import{InLineAlert as ie,Skeleton as X,SkeletonRow as E,Picker as ue,Button as H,Accordion as ne,AccordionSection as oe,Divider as re,Input as j,Price as O,Checkbox as fe,Table as te,Modal as J,TextArea as ge,InputDate as Ne}from"@dropins/tools/components.js";import{h as le}from"@dropins/tools/preact.js";import{useState as se,useEffect as ve}from"@dropins/tools/preact-hooks.js";const Ae=l=>T.createElement("svg",{id:"Icon_Add_Base","data-name":"Icon \\u2013 Add \\u2013 Base",xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",...l},T.createElement("g",{id:"Large"},T.createElement("rect",{id:"Placement_area","data-name":"Placement area",width:24,height:24,fill:"#fff",opacity:0}),T.createElement("g",{id:"Add_icon","data-name":"Add icon",transform:"translate(9.734 9.737)"},T.createElement("line",{vectorEffect:"non-scaling-stroke",id:"Line_579","data-name":"Line 579",y2:12.7,transform:"translate(2.216 -4.087)",fill:"none",stroke:"currentColor"}),T.createElement("line",{vectorEffect:"non-scaling-stroke",id:"Line_580","data-name":"Line 580",x2:12.7,transform:"translate(-4.079 2.263)",fill:"none",stroke:"currentColor"})))),ye=l=>T.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...l},T.createElement("path",{vectorEffect:"non-scaling-stroke",d:"M0.75 12C0.75 5.78421 5.78421 0.75 12 0.75C18.2158 0.75 23.25 5.78421 23.25 12C23.25 18.2158 18.2158 23.25 12 23.25C5.78421 23.25 0.75 18.2158 0.75 12Z",stroke:"currentColor"}),T.createElement("path",{vectorEffect:"non-scaling-stroke",d:"M6.75 12.762L10.2385 15.75L17.25 9",stroke:"currentColor"})),me=l=>T.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...l},T.createElement("path",{vectorEffect:"non-scaling-stroke",d:"M7.74512 9.87701L12.0001 14.132L16.2551 9.87701",stroke:"currentColor",strokeWidth:1,strokeLinecap:"square",strokeLinejoin:"round"})),Ue=l=>T.createElement("svg",{id:"Icon_Chevron_right_Base","data-name":"Icon \\u2013 Chevron right \\u2013 Base",xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",...l},T.createElement("g",{id:"Large"},T.createElement("rect",{id:"Placement_area","data-name":"Placement area",width:24,height:24,fill:"#fff",opacity:0}),T.createElement("g",{id:"Chevron_right_icon","data-name":"Chevron right icon"},T.createElement("path",{vectorEffect:"non-scaling-stroke",id:"chevron",d:"M199.75,367.5l4.255,-4.255-4.255,-4.255",transform:"translate(-189.25 -351.0)",fill:"none",stroke:"currentColor"})))),ce=l=>T.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...l},T.createElement("path",{d:"M7.74512 14.132L12.0001 9.87701L16.2551 14.132",stroke:"currentColor",strokeWidth:1,strokeLinecap:"square",strokeLinejoin:"round"})),Le=l=>T.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...l},T.createElement("path",{vectorEffect:"non-scaling-stroke",d:"M18.3599 5.64001L5.62988 18.37",stroke:"currentColor"}),T.createElement("path",{vectorEffect:"non-scaling-stroke",d:"M18.3599 18.37L5.62988 5.64001",stroke:"currentColor"})),ze=l=>T.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...l},T.createElement("path",{vectorEffect:"non-scaling-stroke",d:"M22 6.25H22.75C22.75 5.83579 22.4142 5.5 22 5.5V6.25ZM22 9.27L22.2514 9.97663C22.5503 9.87029 22.75 9.58731 22.75 9.27H22ZM20.26 12.92L19.5534 13.1714L19.5539 13.1728L20.26 12.92ZM22 14.66H22.75C22.75 14.3433 22.551 14.0607 22.2528 13.9539L22 14.66ZM22 17.68V18.43C22.4142 18.43 22.75 18.0942 22.75 17.68H22ZM2 17.68H1.25C1.25 18.0942 1.58579 18.43 2 18.43V17.68ZM2 14.66L1.74865 13.9534C1.44969 14.0597 1.25 14.3427 1.25 14.66H2ZM3.74 11.01L4.44663 10.7586L4.44611 10.7572L3.74 11.01ZM2 9.27H1.25C1.25 9.58675 1.44899 9.86934 1.7472 9.97611L2 9.27ZM2 6.25V5.5C1.58579 5.5 1.25 5.83579 1.25 6.25H2ZM21.25 6.25V9.27H22.75V6.25H21.25ZM21.7486 8.56337C19.8706 9.23141 18.8838 11.2889 19.5534 13.1714L20.9666 12.6686C20.5762 11.5711 21.1494 10.3686 22.2514 9.97663L21.7486 8.56337ZM19.5539 13.1728C19.9195 14.1941 20.7259 15.0005 21.7472 15.3661L22.2528 13.9539C21.6541 13.7395 21.1805 13.2659 20.9661 12.6672L19.5539 13.1728ZM21.25 14.66V17.68H22.75V14.66H21.25ZM22 16.93H2V18.43H22V16.93ZM2.75 17.68V14.66H1.25V17.68H2.75ZM2.25135 15.3666C4.12941 14.6986 5.11623 12.6411 4.44663 10.7586L3.03337 11.2614C3.42377 12.3589 2.85059 13.5614 1.74865 13.9534L2.25135 15.3666ZM4.44611 10.7572C4.08045 9.73588 3.27412 8.92955 2.2528 8.56389L1.7472 9.97611C2.34588 10.1905 2.81955 10.6641 3.03389 11.2628L4.44611 10.7572ZM2.75 9.27V6.25H1.25V9.27H2.75ZM2 7H22V5.5H2V7ZM7.31 6.74V18.17H8.81V6.74H7.31ZM17.0997 8.39967L11.0397 14.4597L12.1003 15.5203L18.1603 9.46033L17.0997 8.39967ZM12.57 9.67C12.57 9.87231 12.4159 10 12.27 10V11.5C13.2839 11.5 14.07 10.6606 14.07 9.67H12.57ZM12.27 10C12.1241 10 11.97 9.87231 11.97 9.67H10.47C10.47 10.6606 11.2561 11.5 12.27 11.5V10ZM11.97 9.67C11.97 9.46769 12.1241 9.34 12.27 9.34V7.84C11.2561 7.84 10.47 8.67938 10.47 9.67H11.97ZM12.27 9.34C12.4159 9.34 12.57 9.46769 12.57 9.67H14.07C14.07 8.67938 13.2839 7.84 12.27 7.84V9.34ZM17.22 14.32C17.22 14.5223 17.0659 14.65 16.92 14.65V16.15C17.9339 16.15 18.72 15.3106 18.72 14.32H17.22ZM16.92 14.65C16.7741 14.65 16.62 14.5223 16.62 14.32H15.12C15.12 15.3106 15.9061 16.15 16.92 16.15V14.65ZM16.62 14.32C16.62 14.1177 16.7741 13.99 16.92 13.99V12.49C15.9061 12.49 15.12 13.3294 15.12 14.32H16.62ZM16.92 13.99C17.0659 13.99 17.22 14.1177 17.22 14.32H18.72C18.72 13.3294 17.9339 12.49 16.92 12.49V13.99Z",fill:"currentColor"})),Fe=l=>T.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1,strokeLinecap:"round",strokeLinejoin:"round",className:"feather feather-edit-2",...l},T.createElement("path",{d:"M17 3a2.828 2.828 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5L17 3z"})),ae=l=>T.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...l},T.createElement("path",{vectorEffect:"non-scaling-stroke",fillRule:"evenodd",clipRule:"evenodd",d:"M1 20.8953L12.1922 1.5L23.395 20.8953H1ZM13.0278 13.9638L13.25 10.0377V9H11.25V10.0377L11.4722 13.9638H13.0278ZM11.2994 16V17.7509H13.2253V16H11.2994Z",fill:"currentColor"})),We=({className:l,shippingAddress:r,loading:n,noAddressMessage:c,...a})=>{const s=$({noAddressHeading:"NegotiableQuote.Manage.shippingAddress.noAddressHeading",noAddressDescription:"NegotiableQuote.Manage.shippingAddress.noAddressDescription"});return n?e(ke,{}):r?i("div",{className:o(["quote-management-shipping-address-display",l]),"data-testid":"shipping-address-display",...a,children:[e("div",{className:"quote-management-shipping-address-display__field","data-testid":"address-name",children:i("span",{className:"quote-management-shipping-address-display__name",children:[r.firstname," ",r.lastname]})}),r.company&&e("div",{className:"quote-management-shipping-address-display__field","data-testid":"address-company",children:r.company}),r.street.map((g,m)=>e("div",{className:"quote-management-shipping-address-display__field","data-testid":`address-street-${m}`,children:g},m)),i("div",{className:"quote-management-shipping-address-display__field","data-testid":"address-city-region",children:[r.city,r.region&&`, ${r.region.label}`," ",r.postcode]}),e("div",{className:"quote-management-shipping-address-display__field","data-testid":"address-country",children:r.country.label}),e("div",{className:"quote-management-shipping-address-display__field","data-testid":"address-telephone",children:r.telephone})]}):e("div",{className:o(["quote-management-shipping-address-display","quote-management-shipping-address-display--empty",l]),"data-testid":"shipping-address-display-empty",...a,children:e(ie,{type:"warning",variant:"primary","data-testid":"shipping-address-display-empty-alert",icon:e(ae,{}),heading:s.noAddressHeading,description:c||s.noAddressDescription})})},ke=()=>e(X,{"data-testid":"shipping-address-display-skeleton",children:e(E,{variant:"row",fullWidth:!0,size:"small",lines:5,multilineGap:"xsmall"})}),Ze=({className:l,title:r,banner:n,commentField:c,quoteNameField:a,attachFile:s,attachedFilesList:g,requestButton:m,saveButton:q,onSubmit:p,...u})=>i("form",{...u,className:o(["request-negotiable-quote-form",l]),onSubmit:p,children:[n&&e(_,{node:n,className:o(["request-negotiable-quote-form__banner"])}),r&&e(_,{node:r,className:o(["request-negotiable-quote-form__title"])}),c&&e(_,{node:c,className:o(["request-negotiable-quote-form__comment-field"])}),a&&e(_,{node:a,className:o(["request-negotiable-quote-form__quote-name-field"])}),s&&e(_,{node:s,className:o(["request-negotiable-quote-form__attach-file-field"])}),g&&e(_,{node:g,className:o(["request-negotiable-quote-form__attached-files-list"])}),i("div",{className:o(["request-negotiable-quote-form__actions"]),children:[m&&e(_,{node:m,className:o(["request-negotiable-quote-form__request-button"])}),q&&e(_,{node:q,className:o(["request-negotiable-quote-form__save-button"])})]})]}),Ve=({className:l,dropdownPlaceholder:r,dropdownOptions:n,dropdownValue:c,handleDropdownChange:a,buttons:s,...g})=>{const m=n&&n.length>0,q=s&&s.length>0,p=(n==null?void 0:n.map(u=>({text:u.label,value:u.value})))||[];return p.unshift({text:r||"",value:""}),e("div",{className:"quote-management-actions-bar__container","data-testid":"actions-bar-container",children:i("div",{className:o(["quote-management-actions-bar",l]),"data-testid":"actions-bar",...g,children:[m&&e(ue,{name:"dropdown",id:"dropdown",handleSelect:a,className:"quote-management-actions-bar__dropdown","data-testid":"dropdown",options:p,value:c||""},`actions-bar-picker-${c||"empty"}`),q&&e("div",{className:"quote-management-actions-bar__buttons","data-testid":"buttons-container",children:s==null?void 0:s.map((u,b)=>e(_,{node:u,className:o(["quote-management-actions-bar__button"])},b))})]})})},Te=l=>{if(l===0)return"0 Bytes";const r=1024,n=["Bytes","KB","MB","GB"],c=Math.floor(Math.log(l)/Math.log(r)),a=Math.min(c,n.length-1),s=l/Math.pow(r,a);return`${Math.round(s*100)/100} ${n[a]}`},Oe=(l,r)=>!r||r.length===0?!0:r.includes(l),je=(l,r)=>r==null?!0:l<=r,Ge=({files:l,onRemove:r,disabled:n=!1})=>{const c=$({removeFile:"NegotiableQuote.Manage.removeFile",uploading:"NegotiableQuote.Manage.uploading",uploadSuccess:"NegotiableQuote.Manage.uploadSuccess",uploadError:"NegotiableQuote.Manage.uploadError"});return!l||l.length===0?null:e("div",{className:"attached-files-list","data-testid":"attached-files-list",children:l.map(a=>{const s=a.status==="uploading",g=a.status==="error",m=a.status==="success",q=!n&&!s;return i("div",{className:`attached-files-list__item attached-files-list__item--${a.status}`,"data-testid":`attached-file-${a.key}`,children:[i("div",{className:"attached-files-list__item-main",children:[i("div",{className:"attached-files-list__item-icon",children:[s&&e("div",{className:"attached-files-list__spinner","data-testid":"file-uploading-spinner","aria-label":c.uploading}),m&&e(ye,{"data-testid":"file-success-icon","aria-label":c.uploadSuccess,className:"attached-files-list__success-icon"}),g&&e(ae,{"data-testid":"file-error-icon","aria-label":c.uploadError,color:"var(--color-error)",className:"attached-files-list__error-icon"})]}),i("div",{className:"attached-files-list__item-info",children:[e("div",{className:"attached-files-list__item-name","data-testid":"file-name",children:a.name}),i("div",{className:"attached-files-list__item-size","data-testid":"file-size",children:[Te(a.size),s&&` - ${c.uploading}`]})]}),e(H,{variant:"tertiary",onClick:()=>r(a.key),disabled:!q,type:"button","aria-label":`${c.removeFile}: ${a.name}`,"data-testid":`remove-file-${a.key}`,className:"attached-files-list__remove-button",children:e(Le,{})})]}),g&&a.error&&e("div",{className:"attached-files-list__item-error","data-testid":"file-error-message",children:a.error})]},a.key)})})},Ke=({className:l,loading:r,table:n,pricesSummary:c,...a})=>r?e(xe,{}):i("div",{className:o(["quote-management-items-quoted",l]),...a,children:[n&&e(_,{node:n,className:o(["quote-management-items-quoted__table"]),"data-testid":"quote-management-items-quoted__table"}),c&&e(_,{node:c,className:o(["quote-management-items-quoted__prices-summary"]),"data-testid":"quote-management-items-quoted__prices-summary"})]}),xe=()=>e(X,{"data-testid":"items-quoted-skeleton",children:e(E,{variant:"row",fullWidth:!0,size:"medium",lines:4,multilineGap:"xsmall"})}),Xe=({className:l,loading:r,quoteName:n,quoteStatus:c,banner:a,details:s,actionBar:g,quoteContent:m,shippingInformationTitle:q,shippingInformation:p,quoteCommentsTitle:u,quoteComments:b,attachFilesField:v,attachedFilesList:f,footer:y,...t})=>r?e(we,{}):i("div",{...t,className:o(["quote-management-manage-negotiable-quote",l]),children:[i("div",{className:o(["quote-management-manage-negotiable-quote__header"]),children:[n&&e(_,{node:n,className:o(["quote-management-manage-negotiable-quote__quote-name"])}),c&&e(_,{node:c,className:o(["quote-management-manage-negotiable-quote__quote-status"])})]}),a&&e(_,{node:a,className:o(["quote-management-manage-negotiable-quote__banner"])}),s&&e(_,{node:s,className:o(["quote-management-manage-negotiable-quote__details"])}),g&&e(_,{node:g,className:o(["quote-management-manage-negotiable-quote__action-bar"])}),m&&e(_,{node:m,className:o(["quote-management-manage-negotiable-quote__quote-content"])}),i("div",{"data-testid":"quote-shipping-information-container",className:o(["quote-management-manage-negotiable-quote__shipping-information-container"]),children:[q&&e(_,{node:q,className:o(["quote-management-manage-negotiable-quote__shipping-information-title"])}),p&&e(_,{node:p,className:o(["quote-management-manage-negotiable-quote__shipping-information"])})]}),i("div",{"data-testid":"quote-comments-container",className:o(["quote-management-manage-negotiable-quote__quote-comments-container"]),children:[u&&e(_,{node:u,className:o(["quote-management-manage-negotiable-quote__quote-comments-title"])}),b&&e(_,{node:b,className:o(["quote-management-manage-negotiable-quote__quote-comments"])}),v&&e(_,{node:v,className:o(["quote-management-manage-negotiable-quote__attach-files-field"])}),f&&e(_,{node:f,className:o(["quote-management-manage-negotiable-quote__attached-files-list"])})]}),e(_,{node:y,className:o(["quote-management-manage-negotiable-quote__footer"])})]}),we=()=>i(X,{"data-testid":"manage-negotiable-quote-skeleton",children:[e(E,{variant:"heading",fullWidth:!0,size:"large"}),e(E,{variant:"row",fullWidth:!1,size:"small"}),e(E,{variant:"row",fullWidth:!1,size:"small"}),e(E,{variant:"row",fullWidth:!0}),e(E,{variant:"row",fullWidth:!0,size:"xlarge",lines:2}),e(E,{variant:"row",fullWidth:!1,size:"small"})]}),z=({label:l,price:r,classSuffixes:n=[],labelClassSuffix:c,testId:a,children:s,...g})=>e(Qe,{...g,label:l,price:r,classSuffixes:n,labelClassSuffix:c,testId:a,children:s}),Je=({className:l,children:r,variant:n="primary",heading:c,subTotal:a,shipping:s,discounts:g,taxTotal:m,taxesApplied:q,total:p,totalSaved:u,updateLineItems:b=f=>f,...v})=>{const[f,y]=F(!1),t=$({taxesBreakdownTitle:"NegotiableQuote.PriceSummary.taxes.breakdown",taxTotal:"NegotiableQuote.PriceSummary.taxes.total",taxTotalOnly:"NegotiableQuote.PriceSummary.taxes.totalOnly",showTaxBreakdown:"NegotiableQuote.PriceSummary.taxes.showBreakdown",hideTaxBreakdown:"NegotiableQuote.PriceSummary.taxes.hideBreakdown",subtotalLabel:"NegotiableQuote.PriceSummary.subTotal.label",subtotalWithTaxes:"NegotiableQuote.PriceSummary.subTotal.withTaxes",subtotalWithoutTaxes:"NegotiableQuote.PriceSummary.subTotal.withoutTaxes",shippingLabel:"NegotiableQuote.PriceSummary.shipping.label",shippingWithTaxes:"NegotiableQuote.PriceSummary.shipping.withTaxes",shippingWithoutTaxes:"NegotiableQuote.PriceSummary.shipping.withoutTaxes",totalLabel:"NegotiableQuote.PriceSummary.total.label",totalWithoutTax:"NegotiableQuote.PriceSummary.total.withoutTax",totalSaved:"NegotiableQuote.PriceSummary.total.saved"}),d=a&&i(z,{label:t.subtotalLabel,price:a.price,classSuffixes:["subTotal"],children:[a.taxIncluded&&e("div",{"data-testid":"sub-total-tax-caption",className:"quote-order-summary__caption",children:e("span",{children:t.subtotalWithTaxes})}),a.taxExcluded?e("div",{"data-testid":"sub-total-tax-caption-excluded",className:"quote-order-summary__caption",children:i("span",{children:[a.priceExcludingTax," ",t.subtotalWithoutTaxes]})}):void 0]},t.subtotalLabel),N=s&&i(z,{label:t.shippingLabel,price:s.price,classSuffixes:["shipping"],children:[s.taxIncluded&&e("div",{"data-testid":"shipping-tax-caption",className:"quote-order-summary__caption",children:e("span",{children:t.shippingWithTaxes})}),s.taxExcluded?e("div",{"data-testid":"shipping-tax-caption-excluded",className:"quote-order-summary__caption",children:i("span",{children:[s.priceExcludingTax," ",t.shippingWithoutTaxes]})}):void 0]},t.shippingLabel),L=g&&g.length>0&&e(R,{children:g.map(k=>i(z,{label:k.label,price:k.price,classSuffixes:["discount"],children:[k.coupon&&e(_,{node:k.coupon,className:"quote-order-summary__coupon__code"}),k.caption&&e(_,{node:k.caption,className:"quote-order-summary__caption"})]},k.label))}),P=q&&q.length>0?e(ne,{"data-testid":"tax-breakdown",className:"quote-order-summary__taxes",iconOpen:me,iconClose:ce,children:i(oe,{ariaLabelTitle:t.taxesBreakdownTitle,title:t.taxesBreakdownTitle,secondaryText:!f&&m?e(_,{node:m.price,className:"quote-order-summary__price"}):void 0,renderContentWhenClosed:!1,onStateChange:y,children:[e("div",{className:"quote-order-summary__appliedTaxes",children:q.map(k=>e(z,{label:k.label,price:k.price,classSuffixes:["taxEntry"],labelClassSuffix:"muted"},k.label))}),m&&e(z,{label:t.taxTotal,price:m.price,classSuffixes:["taxTotal"],labelClassSuffix:"muted"})]})}):m&&e(z,{label:t.taxTotalOnly,price:m.price,classSuffixes:["taxTotal"],testId:"tax-total-only"}),B=[{key:"subTotalContent",sortOrder:100,content:d},{key:"shippingContent",sortOrder:200,content:N},{key:"discountsContent",sortOrder:600,content:L},{key:"taxContent",sortOrder:800,content:P},...p?[{key:"totalContent",sortOrder:900,content:e(z,{label:t.totalLabel,price:p.price,classSuffixes:["total","total--padded"],testId:"total-content",labelClassSuffix:"bold"})}]:[],...p!=null&&p.priceWithoutTax?[{key:"totalWithoutTaxContent",sortOrder:1e3,content:e(z,{label:t.totalWithoutTax,price:p.priceWithoutTax,classSuffixes:["totalWithoutTax"],testId:"total-without-tax",labelClassSuffix:"muted"})}]:[],...u?[{key:"totalSavedContent",sortOrder:1100,content:e(z,{label:t.totalSaved,price:u,classSuffixes:["saved"],testId:"total-saved",labelClassSuffix:"muted"})}]:[]],C=b(B).sort((k,x)=>k.sortOrder-x.sortOrder);return i("div",{...v,className:o(["quote-order-summary",[`quote-order-summary__${n}`,n],l]),children:[i("div",{className:"quote-order-summary__heading",children:[c&&e(_,{node:c,className:"quote-order-summary__heading-text"}),e(re,{variant:"primary",className:"quote-order-summary__divider-primary"})]}),e("div",{className:"quote-order-summary__content",children:C.map(k=>Array.isArray(k.content)?e(ne,{className:k.className,actionIconPosition:"right",iconOpen:me,iconClose:ce,children:e(oe,{defaultOpen:!1,title:k.title,renderContentWhenClosed:!1,children:k.content.map(x=>x.content)})},k.key):k.content)})]})},Qe=({label:l,price:r,classSuffixes:n=[],labelClassSuffix:c,testId:a,children:s,...g})=>{const m="quote-order-summary__label",q="quote-order-summary__price";return i("div",{...g,...a?{"data-testid":a}:{},className:o(["quote-order-summary__entry",...n.map(p=>`quote-order-summary__${p}`)]),children:[e("span",{className:o([m,...c?[`${m}--${c}`]:[]]),children:l}),e(_,{node:r,className:o([q,...c?[`${q}--${c}`]:[]])}),s]})};function Me(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch(l){return console.warn("Failed to detect user timezone, falling back to UTC:",l),"UTC"}}function Ce(l){const r=new Date(l);return!isNaN(r.getTime())}function ee(l,r="short"){if(!Ce(l))return"–";const n=_e()||"en-US";let c;if(/^\d{4}-\d{2}-\d{2}$/.test(l)){const[a,s,g]=l.split("-").map(Number);c=new Date(a,s-1,g)}else c=new Date(l);return r==="short"?c.toLocaleDateString(n,{year:"numeric",month:"numeric",day:"numeric"}):c.toLocaleDateString(n,{year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!0})}const Ye=({className:l,items:r,canEdit:n,readOnly:c=!1,showActions:a,onItemCheckboxChange:s,onItemDropdownChange:g,onQuantityChange:m,onUpdate:q,dropdownSelections:p,...u})=>{const[b,v]=se({}),[f,y]=se({});ve(()=>{const h={};r.forEach(M=>{h[M.uid]=M.quantity}),v(h),y(h)},[r]);const t=Object.keys(f).some(h=>f[h]!==b[h]),d=$({updateButton:"NegotiableQuote.Manage.productListTable.submitButton",productNameHeader:"NegotiableQuote.Manage.productListTable.headers.productName",skuHeader:"NegotiableQuote.Manage.productListTable.headers.sku",priceHeader:"NegotiableQuote.Manage.productListTable.headers.price",quantityHeader:"NegotiableQuote.Manage.productListTable.headers.quantity",discountHeader:"NegotiableQuote.Manage.productListTable.headers.discount",subtotalHeader:"NegotiableQuote.Manage.productListTable.headers.subtotal",actionsHeader:"NegotiableQuote.Manage.productListTable.headers.actions",editNoteToSeller:"NegotiableQuote.Manage.productListTable.actions.editNoteToSeller",remove:"NegotiableQuote.Manage.productListTable.actions.remove",notesHeader:"NegotiableQuote.Manage.productListTable.notes.header",leftANote:"NegotiableQuote.Manage.productListTable.notes.leftANote",buyer:"NegotiableQuote.Manage.productListTable.notes.buyer",seller:"NegotiableQuote.Manage.productListTable.notes.seller",outOfStock:"NegotiableQuote.Manage.productListTable.outOfStock",outOfStockMessage:"NegotiableQuote.Manage.productListTable.outOfStockMessage"}),N=[{label:d.productNameHeader,key:"productName"},{label:d.skuHeader,key:"sku"},{label:d.priceHeader,key:"price"},{label:d.quantityHeader,key:"quantity"},{label:d.discountHeader,key:"discount"},{label:d.subtotalHeader,key:"subtotal"}];n&&!c&&N.unshift({label:"",key:"checkbox"}),(a??n)&&!c&&N.push({label:d.actionsHeader,key:"actions"});const P=(h,M)=>{const D=h.target.checked;s==null||s(M,D)},B=(h,M)=>{const D=h.target.value;g==null||g(M,D)},C=(h,M)=>{const D=parseInt(h.target.value,10);!isNaN(D)&&D>0&&(y(U=>({...U,[M.uid]:D})),m==null||m(M,D))},k=h=>{h.preventDefault(),q==null||q(h)},x=(h,M)=>h>0?i("div",{className:"quote-management-product-list-table__discount-container",children:[i("span",{className:"quote-management-product-list-table__discount-percent",children:[M,"%"]}),i("span",{className:"quote-management-product-list-table__discount-price",children:["(",e(O,{amount:h}),")"]})]}):void 0,w=h=>{var U,V;const M=(U=h.configurableOptions)==null?void 0:U.map(I=>i("div",{className:"quote-management-product-list-table__configurable-option",children:[i("span",{className:"quote-management-product-list-table__configurable-option-label",children:[I.optionLabel,":"]}),e("span",{className:"quote-management-product-list-table__configurable-option-value",children:I.valueLabel})]},I.optionLabel)),D=(V=h.bundleOptions)==null?void 0:V.map(I=>i("div",{className:"quote-management-product-list-table__bundle-option",children:[e("span",{className:"quote-management-product-list-table__bundle-option-label",children:I.label}),e("div",{className:"quote-management-product-list-table__bundle-option-values",children:I.values.map(Q=>i("span",{className:"quote-management-product-list-table__bundle-option-value",children:[i("span",{className:"quote-management-product-list-table__bundle-option-value-quantity",children:[Q.quantity," x"]}),e("span",{className:"quote-management-product-list-table__bundle-option-value-label",children:Q.label}),e(O,{className:"quote-management-product-list-table__bundle-option-value-original-price",amount:Q.originalPrice.value,currency:Q.originalPrice.currency,weight:"normal"})]},Q.label))})]},I.label));return i("div",{className:"quote-management-product-list-table__product-name-container",children:[e("span",{className:"quote-management-product-list-table__product-name",children:h.product.name}),M,D]})},Z=h=>new Date(h).toLocaleString("en-US",{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit",hour12:!0,timeZone:Me()}),W=h=>{var V,I;const M=((V=h.noteFromBuyer)==null?void 0:V.filter(Q=>Q&&Q.note&&Q.note.trim()!==""))||[],D=((I=h.noteFromSeller)==null?void 0:I.filter(Q=>Q&&Q.note&&Q.note.trim()!==""))||[],U=[...M,...D];return U.length===0?null:i("div",{className:"quote-management-product-list-table__notes-container","data-testid":`item-notes-${h.product.sku}`,children:[e("div",{className:"quote-management-product-list-table__notes-header",children:d.notesHeader}),e("div",{className:"quote-management-product-list-table__notes-list",children:U.map((Q,be)=>i("div",{className:"quote-management-product-list-table__note-item",children:[i("div",{className:"quote-management-product-list-table__note-content",children:[i("strong",{className:"quote-management-product-list-table__note-meta",children:[Z(Q.createdAt)," (",M.includes(Q)?d.buyer:d.seller,")"]})," ",d.leftANote]}),i("div",{className:"quote-management-product-list-table__note-text",children:[Q.note," "]})]},Q.noteUid||be))})]})},G=new Set,Y=r.flatMap((h,M)=>{var I;const D=W(h);(D||h.outOfStock)&&G.add(M);const U=n?e(j,{className:"quote-management-product-list-table__quantity-input",type:"number",min:"1",value:((I=f[h.uid])==null?void 0:I.toString())||h.quantity.toString(),onChange:Q=>C(Q,h),disabled:c||!n,"data-testid":`quantity-input-${h.product.sku}`}):e("span",{className:"quote-management-product-list-table__quantity",children:h.quantity});return[{checkbox:e(fe,{className:"quote-management-product-list-table__checkbox",name:"itemSelected","data-testid":`item-checkbox-${h.product.sku}`,onChange:Q=>P(Q,h),value:h.product.sku}),productName:w(h),sku:e("span",{className:"quote-management-product-list-table__sku",children:h.product.sku}),price:e(O,{className:"quote-management-product-list-table__price",amount:h.prices.originalItemPrice.value,currency:h.prices.originalItemPrice.currency}),quantity:U,discount:h.rowCatalogDiscount?x(h.rowCatalogDiscount.amountOff,h.rowCatalogDiscount.percentOff):void 0,subtotal:e(O,{className:"quote-management-product-list-table__subtotal",amount:h.prices.rowTotal.value,currency:h.prices.rowTotal.currency}),actions:e(ue,{className:"quote-management-product-list-table__actions","data-testid":`item-dropdown-${h.product.sku}`,name:`item-dropdown-${h.product.sku}`,handleSelect:Q=>B(Q,h),placeholder:"Select",value:(p==null?void 0:p[h.uid])??"",options:[{text:d.editNoteToSeller,value:"edit"},{text:d.remove,value:"remove"}]}),_rowDetails:i(R,{children:[h.outOfStock&&e("div",{className:"quote-management-product-list-table__out-of-stock-message",children:e(ie,{type:"warning",variant:"primary",icon:e(ae,{}),heading:d.outOfStock,description:d.outOfStockMessage})}),D&&e("div",{className:"quote-management-product-list-table__notes-row-wrapper",children:D})]})}]}),S=e(te,{columns:N,rowData:Y,"data-testid":"product-list-table",mobileLayout:"stacked",expandedRows:G}),A=n?le("form",{}):le("div",{}),pe=n?{onSubmit:k,...u}:u,he=e(H,{type:"submit",disabled:c||!n||!t,"data-testid":"product-list-table-submit-button",children:d.updateButton});return i(_,{node:A,className:o(["quote-management-product-list-table-container",l]),"data-testid":"product-list-table-container",...pe,children:[S,e("div",{className:"quote-management-product-list-table-container__submit-container",children:he})]})},et=({className:l,entries:r,...n})=>{const c=a=>{var g;const s=(g=a.children)==null?void 0:g.map(c);return e("div",{className:"quote-management-quote-prices-summary__entry","data-testid":`quote-prices-summary-entry-${a.id}`,children:s?e(ne,{className:"quote-management-quote-prices-summary__accordion","data-testid":`quote-prices-summary-entry-accordion-${a.id}`,children:e(oe,{className:"quote-management-quote-prices-summary__accordion-section",title:a.label,ariaLabelTitle:a.label,secondaryText:a.value,children:s})}):i(R,{children:[e("span",{className:o(["quote-management-quote-prices-summary__label",["quote-management-quote-prices-summary__label--strong",a.strong]]),"data-testid":`quote-prices-summary-entry-label-${a.id}`,children:a.label}),e("span",{className:"quote-management-quote-prices-summary__value","data-testid":`quote-prices-summary-entry-value-${a.id}`,children:a.value})]})},a.id)};return e("div",{className:o(["quote-management-quote-prices-summary",l]),"data-testid":"quote-prices-summary",...n,children:r==null?void 0:r.map(c)})},tt=({className:l,children:r,heading:n,footer:c,products:a,outOfStockMessage:s,loading:g=!0,variant:m="primary",...q})=>e("div",{...q,className:o(["quote-management-quote-summary-list",l,`quote-management-quote-summary-list__background--${m}`]),children:g?e(Se,{}):i(R,{children:[(n||s)&&i("div",{"data-testid":"quote-summary-list-heading-wrapper",className:o(["quote-management-quote-summary-list__heading",["quote-management-quote-summary-list__heading--full-width",!a]]),children:[n&&i(R,{children:[e(_,{node:n,className:"quote-management-quote-summary-list__heading-text"}),e(re,{variant:"primary",className:o(["quote-management-quote-summary-list__heading-divider"])})]}),s&&e(_,{node:s,className:"quote-management-quote-summary-list__out-of-stock-message"})]}),e("div",{className:o(["quote-management-quote-summary-list__content"]),children:a}),c&&i(R,{children:[e(re,{variant:"primary",className:o(["quote-management-quote-summary-list__footer-divider"])}),e(_,{node:c,className:"quote-management-quote-summary-list__footer-text"})]})]})}),Se=()=>e(X,{"data-testid":"quote-summary-list-skeleton",className:"quote-management-quote-summary-list__skeleton",rowGap:"medium",children:e(E,{variant:"row",size:"xlarge",fullWidth:!0,lines:3,multilineGap:"small"})}),at=({rowData:l=[],loading:r=!1,className:n,emptyStateMessage:c,showItemRange:a=!0,itemRangeMessage:s,showPageSizePicker:g=!0,pageSizePickerMessage:m,showPagination:q=!0,paginationMessage:p,...u})=>{const b=$({quoteName:"QuoteManagement.QuotesListTable.quoteName",created:"QuoteManagement.QuotesListTable.created",createdBy:"QuoteManagement.QuotesListTable.createdBy",status:"QuoteManagement.QuotesListTable.status",lastUpdated:"QuoteManagement.QuotesListTable.lastUpdated",quoteTemplate:"QuoteManagement.QuotesListTable.quoteTemplate",quoteTotal:"QuoteManagement.QuotesListTable.quoteTotal",actions:"QuoteManagement.QuotesListTable.actions"}),v=[{key:"quoteName",label:b.quoteName},{key:"created",label:b.created},{key:"createdBy",label:b.createdBy},{key:"status",label:b.status},{key:"lastUpdated",label:b.lastUpdated},{key:"quoteTemplate",label:b.quoteTemplate},{key:"quoteTotal",label:b.quoteTotal},{key:"actions",label:b.actions}],f=r||l.length>0,y=!r&&l.length===0&&c,t=a&&s,d=g&&m,N=q&&p,L=t||d||N;return i("div",{...u,className:o(["quote-management-quotes-list-table",n]),children:[f&&e(te,{columns:v,rowData:l,loading:r,mobileLayout:"none",className:"quote-management-quotes-list-table__table"}),y&&e("div",{className:"quotes-list-table__empty-state",children:c}),L&&i("div",{className:"quotes-list-table__footer",children:[e("div",{className:"quotes-list-table__item-range",children:t&&s}),e("div",{className:"quotes-list-table__pagination",children:N&&p}),e("div",{className:"quotes-list-table__page-size-picker",children:d&&m})]})]})},nt=({rowData:l=[],loading:r=!1,className:n,emptyStateMessage:c,showItemRange:a=!0,itemRangeMessage:s,showPageSizePicker:g=!0,pageSizePickerMessage:m,showPagination:q=!0,paginationMessage:p,...u})=>{const b=$({name:"QuoteManagement.QuoteTemplatesListTable.name",state:"QuoteManagement.QuoteTemplatesListTable.state",status:"QuoteManagement.QuoteTemplatesListTable.status",validUntil:"QuoteManagement.QuoteTemplatesListTable.validUntil",minQuoteTotal:"QuoteManagement.QuoteTemplatesListTable.minQuoteTotal",ordersPlaced:"QuoteManagement.QuoteTemplatesListTable.ordersPlaced",lastOrdered:"QuoteManagement.QuoteTemplatesListTable.lastOrdered",actions:"QuoteManagement.QuoteTemplatesListTable.actions"}),v=[{key:"name",label:b.name},{key:"state",label:b.state},{key:"status",label:b.status},{key:"validUntil",label:b.validUntil},{key:"minQuoteTotal",label:b.minQuoteTotal},{key:"ordersPlaced",label:b.ordersPlaced},{key:"lastOrdered",label:b.lastOrdered},{key:"actions",label:b.actions}],f=r||l.length>0,y=!r&&l.length===0&&c,t=a&&s,d=g&&m,N=q&&p,L=t||d||N;return i("div",{...u,className:o(["quote-management-quote-templates-list-table",n]),children:[f&&e(te,{columns:v,rowData:l,loading:r,mobileLayout:"none",className:"quote-management-quote-templates-list-table__table"}),y&&e("div",{className:"quote-templates-list-table__empty-state",children:c}),L&&i("div",{className:"quote-templates-list-table__footer",children:[e("div",{className:"quote-templates-list-table__item-range",children:t&&s}),e("div",{className:"quote-templates-list-table__pagination",children:N&&p}),e("div",{className:"quote-templates-list-table__page-size-picker",children:d&&m})]})]})},ot=({open:l=!1,title:r,message:n,cancelLabel:c,confirmLabel:a,onCancel:s,onConfirm:g,onClose:m,showCloseButton:q,confirmationBanner:p,...u})=>{const b=$({cancel:"ConfirmationModal.cancel",confirm:"ConfirmationModal.confirm"});if(!l)return null;const{className:v,...f}=u;return e(J,{...f,size:"medium",onClose:m||s,clickToDismiss:!0,escapeToDismiss:!0,showCloseButton:q,"data-testid":"confirmation-modal",className:v,children:i("div",{className:"confirmation-modal__content",children:[p&&e("div",{className:"confirmation-modal__banner","data-testid":"confirmation-modal-banner",children:p}),r&&e("div",{className:"confirmation-modal__title","data-testid":"confirmation-modal-title",children:r}),n&&e("div",{className:"confirmation-modal__message","data-testid":"confirmation-modal-message",children:n}),i("div",{className:"confirmation-modal__actions","data-testid":"confirmation-modal-actions",children:[s&&e(H,{variant:"secondary",onClick:s,"data-testid":"confirmation-modal-cancel",children:c??b.cancel}),e(H,{variant:"primary",onClick:g,"data-testid":"confirmation-modal-confirm",children:a??b.confirm})]})]})})},rt=({className:l,children:r,history:n,items:c,buyer:a,salesRepName:s,...g})=>{const m=$({quoteCreated:"historyLog.changeTypes.created",quoteUpdated:"historyLog.changeTypes.updated",statusChanged:"historyLog.changeTypes.statusChanged",commentAdded:"historyLog.changeTypes.commentAdded",expirationChanged:"historyLog.changeTypes.expirationChanged",buyerNoteAdded:"historyLog.noteTypes.buyerNoteAdded",sellerNoteAdded:"historyLog.noteTypes.sellerNoteAdded",buyerLabel:"historyLog.authorLabels.buyer",sellerLabel:"historyLog.authorLabels.seller",commentDetail:"historyLog.changeDetails.comment",statusChangedFromTo:"historyLog.changeDetails.statusChangedFromTo",statusSetTo:"historyLog.changeDetails.statusSetTo",expirationChangedFromTo:"historyLog.changeDetails.expirationChangedFromTo",expirationSetTo:"historyLog.changeDetails.expirationSetTo",totalChangedFromTo:"historyLog.changeDetails.totalChangedFromTo",customChange:"historyLog.changeDetails.customChange",productsRemovedFromCatalog:"historyLog.changeDetails.productsRemovedFromCatalog",productsRemovedFromQuote:"historyLog.changeDetails.productsRemovedFromQuote",noDetailsAvailable:"historyLog.changeDetails.noDetailsAvailable",emptyState:"historyLog.emptyState",never:"dateUtils.never"}),q=t=>{switch(t){case"CREATED":return m.quoteCreated;case"UPDATED":return m.quoteUpdated;case"STATUS_CHANGED":return m.statusChanged;case"COMMENT_ADDED":return m.commentAdded;case"EXPIRATION_CHANGED":return m.expirationChanged;default:return t.replace(/_/g," ").toLowerCase().replace(/\b\w/g,d=>d.toUpperCase())}},p=t=>{var N,L,P,B,C,k,x,w,Z,W,G,Y;const d=[];if((N=t==null?void 0:t.commentAdded)!=null&&N.comment&&d.push(m.commentDetail.replace("{comment}",t.commentAdded.comment)),(L=t==null?void 0:t.statuses)!=null&&L.changes&&t.statuses.changes.forEach(S=>{S.oldStatus&&S.newStatus?d.push(m.statusChangedFromTo.replace("{oldStatus}",S.oldStatus).replace("{newStatus}",S.newStatus)):S.newStatus&&d.push(m.statusSetTo.replace("{newStatus}",S.newStatus))}),(P=t==null?void 0:t.expiration)!=null&&P.newExpiration&&((B=t==null?void 0:t.expiration)!=null&&B.oldExpiration)){const S=ee(t.expiration.newExpiration),A=ee(t.expiration.oldExpiration);d.push(m.expirationChangedFromTo.replace("{oldExpiration}",A).replace("{newExpiration}",S))}else if((C=t==null?void 0:t.expiration)!=null&&C.newExpiration){const S=ee(t.expiration.newExpiration);d.push(m.expirationSetTo.replace("{newExpiration}",S))}if((k=t==null?void 0:t.total)!=null&&k.newPrice&&((x=t==null?void 0:t.total)!=null&&x.oldPrice)){const S=`${t.total.newPrice.currency} ${t.total.newPrice.value}`,A=`${t.total.oldPrice.currency} ${t.total.oldPrice.value}`;d.push(m.totalChangedFromTo.replace("{oldTotal}",A).replace("{newTotal}",S))}if((w=t==null?void 0:t.customChanges)!=null&&w.title&&((Z=t==null?void 0:t.customChanges)!=null&&Z.old_value)&&((W=t==null?void 0:t.customChanges)!=null&&W.new_value)&&d.push(m.customChange.replace("{title}",t.customChanges.title).replace("{oldValue}",t.customChanges.old_value).replace("{newValue}",t.customChanges.new_value)),(G=t==null?void 0:t.productsRemoved)!=null&&G.productsRemovedFromCatalog&&t.productsRemoved.productsRemovedFromCatalog.length>0&&d.push(m.productsRemovedFromCatalog.replace("{products}",t.productsRemoved.productsRemovedFromCatalog.join(", "))),(Y=t==null?void 0:t.productsRemoved)!=null&&Y.productsRemovedFromQuote&&t.productsRemoved.productsRemovedFromQuote.length>0){const S=t.productsRemoved.productsRemovedFromQuote.map(A=>A.name||A.sku||A.uid).join(", ");d.push(m.productsRemovedFromQuote.replace("{products}",S))}return d.length>0?d:[m.noDetailsAvailable]},b=(()=>{const t=[],d=(N,L,P,B)=>{N&&Array.isArray(N)&&N.forEach(C=>{C&&C.note&&C.note.trim()&&t.push({...C,type:L,productName:B.product.name,productSku:B.product.sku,authorName:P})})};return c&&c.forEach(N=>{d(N.noteFromBuyer,"buyer",`${a.firstname} ${a.lastname} ${m.buyerLabel}`,N),d(N.noteFromSeller,"seller",`${s} ${m.sellerLabel}`,N)}),t})(),v=(n||[]).map(t=>({...t,entryType:"history"})),f=b.map(t=>({...t,entryType:"note"})),y=[...v,...f];return i("div",{...g,className:o(["quote-management-quote-history-log",l]),children:[y.length>0?e("div",{className:"quote-management-quote-history-log__entries",children:y.map((t,d)=>i("div",{className:"quote-management-quote-history-log__entry",children:[i("div",{className:"quote-management-quote-history-log__entry-header",children:[i("div",{className:"quote-management-quote-history-log__entry-meta",children:[e("span",{className:"quote-management-quote-history-log__entry-date",children:ee(t.createdAt,"long")}),e("span",{className:"quote-management-quote-history-log__entry-author",children:t.entryType==="history"?`by ${t.author.firstname} ${t.author.lastname} ${t.author.firstname===a.firstname&&t.author.lastname===a.lastname?m.buyerLabel:m.sellerLabel}`:`by ${t.authorName}`})]}),e("div",{className:"quote-management-quote-history-log__entry-type",children:t.entryType==="history"?q(t.changeType):t.type==="buyer"?m.buyerNoteAdded:m.sellerNoteAdded})]}),e("div",{className:"quote-management-quote-history-log__entry-changes",children:t.entryType==="history"?p(t.changes).map((N,L)=>e("div",{className:"quote-management-quote-history-log__entry-change",children:N},L)):i("div",{className:"quote-management-quote-history-log__entry-change",children:[i("div",{children:[t.productName,"(",t.productSku,")"]}),i("div",{children:['"',t.note,'"']})]})})]},t.entryType==="history"?t.uid:`${t.noteUid}-${d}`))}):e("div",{className:"quote-management-quote-history-log__empty",children:m.emptyState}),r]})},it=({className:l,tabs:r,tabsContent:n,defaultActiveTab:c,...a})=>{const[s,g]=F(c||Array.from(r.keys())[0]),m=p=>{g(p)},q=qe(()=>n.get(s),[s,n]);return i("div",{...a,className:o(["quote-management-tabbed-content",l]),children:[r&&e("div",{"data-testid":"tabbed-content-tabs",className:o(["quote-management-tabbed-content__tabs"]),children:Array.from(r.entries()).map(([p,u])=>e("button",{className:o(["quote-management-tabbed-content__tab",["quote-management-tabbed-content__tab--active",p===s]]),onClick:()=>m(p),children:u},p))}),q&&e("div",{className:o(["quote-management-tabbed-content__active-tab-content"]),children:e(_,{node:q})})]})},lt=({className:l,comments:r,...n})=>{const c=$({emptyState:"NegotiableQuote.Manage.quoteComments.emptyState",by:"NegotiableQuote.Manage.quoteComments.by",attachments:"NegotiableQuote.Manage.quoteComments.attachments"});return!r||r.length===0?e("ul",{...n,className:o(["quote-management-quote-comments-list","quote-management-quote-comments-list--empty",l]),"data-testid":"quote-comments-list",children:e("li",{className:"quote-management-quote-comments-list__empty-state","data-testid":"quote-comments-empty-state",children:c.emptyState})}):e("ul",{...n,className:o(["quote-management-quote-comments-list",l]),"data-testid":"quote-comments-list",children:r.map(a=>i("li",{className:"quote-management-quote-comments-list__item","data-testid":`quote-comment-${a.uid}`,children:[i("div",{className:"quote-management-quote-comments-list__header",children:[e(_,{className:"quote-management-quote-comments-list__date",node:a.createdAt,"data-testid":`quote-comment-date-${a.uid}`}),e("span",{className:"quote-management-quote-comments-list__by",children:c.by}),e(_,{className:"quote-management-quote-comments-list__author",node:a.author,"data-testid":`quote-comment-author-${a.uid}`})]}),e(_,{className:"quote-management-quote-comments-list__text",node:a.text,"data-testid":`quote-comment-text-${a.uid}`}),a.attachments&&a.attachments.length>0&&i("div",{className:"quote-management-quote-comments-list__attachments","data-testid":`quote-comment-attachments-${a.uid}`,children:[e("span",{className:"quote-management-quote-comments-list__attachments-label",children:c.attachments}),a.attachments.map((s,g)=>e("a",{href:s.url,target:"_blank",rel:"noopener noreferrer",className:"quote-management-quote-comments-list__attachment-link","data-testid":`quote-comment-attachment-${a.uid}-${g}`,children:s.name},`${a.uid}-attachment-${g}`))]})]},a.uid))})},st=({className:l,open:r,quoteName:n,renameReason:c,quoteNameError:a,errorBanner:s,successBanner:g,showCloseButton:m=!0,onQuoteNameChange:q,onRenameReasonChange:p,onSave:u,onClose:b})=>{const v=$({title:"NegotiableQuote.Manage.rename.title",quoteNameLabel:"NegotiableQuote.Manage.rename.quoteNameLabel",reasonLabel:"NegotiableQuote.Manage.rename.reasonLabel",renameButton:"NegotiableQuote.Manage.rename.renameButton",cancelButton:"NegotiableQuote.Manage.rename.cancelButton"});return r?i(J,{open:r,size:"medium",title:e(R,{children:v.title}),onClose:b,clickToDismiss:!0,escapeToDismiss:!0,showCloseButton:m,className:o(["quote-management-rename-quote-modal",l]),"data-testid":"rename-quote-modal",children:[s&&e("div",{className:o(["quote-management-rename-quote-modal__error-banner"]),"data-testid":"rename-quote-modal-error-banner",children:s}),g&&e("div",{className:o(["quote-management-rename-quote-modal__success-banner"]),"data-testid":"rename-quote-modal-success-banner",children:g}),i("div",{className:o(["quote-management-rename-quote-modal__content"]),children:[i("div",{children:[e(j,{name:"quoteName",type:"text",value:n,onInput:f=>q(f.target.value),floatingLabel:v.quoteNameLabel,required:!0,error:!!a}),a&&e("span",{className:o(["quote-management-rename-quote-modal__error-text"]),children:a})]}),e(ge,{name:"quoteComment",value:c,onInput:f=>p(f.target.value),label:v.reasonLabel,rows:3})]}),i("div",{className:o(["quote-management-rename-quote-modal__actions"]),children:[e(H,{variant:"secondary",size:"medium",onClick:b,className:o(["quote-management-rename-quote-modal__cancel-button"]),children:v.cancelButton}),e(H,{variant:"primary",size:"medium",onClick:u,className:o(["quote-management-rename-quote-modal__save-button"]),children:v.renameButton})]})]}):null},mt=({className:l,open:r,expirationDate:n,expirationDateError:c,errorBanner:a,successBanner:s,showCloseButton:g=!0,onExpirationDateChange:m,onSave:q,onClose:p})=>{const u=$({title:"NegotiableQuoteTemplate.Manage.expirationDate.title",expirationDateLabel:"NegotiableQuoteTemplate.Manage.expirationDate.expirationDateLabel",saveButton:"NegotiableQuoteTemplate.Manage.expirationDate.saveButton",cancelButton:"NegotiableQuoteTemplate.Manage.expirationDate.cancelButton"});return r?i(J,{open:r,size:"medium",title:e(R,{children:u.title}),onClose:p,clickToDismiss:!0,escapeToDismiss:!0,showCloseButton:g,className:o(["quote-management-expiration-date-modal",l]),"data-testid":"expiration-date-modal",children:[a&&e("div",{className:o(["quote-management-expiration-date-modal__error-banner"]),"data-testid":"expiration-date-modal-error-banner",children:a}),s&&e("div",{className:o(["quote-management-expiration-date-modal__success-banner"]),"data-testid":"expiration-date-modal-success-banner",children:s}),e("div",{className:o(["quote-management-expiration-date-modal__content"]),children:e("div",{children:e(Ne,{name:"expirationDate",value:n,onChange:b=>m(b.target.value),floatingLabel:u.expirationDateLabel,required:!0,error:c,"data-testid":"expiration-date-input"})})}),i("div",{className:o(["quote-management-expiration-date-modal__actions"]),children:[e(H,{variant:"secondary",size:"medium",onClick:p,className:o(["quote-management-expiration-date-modal__cancel-button"]),children:u.cancelButton}),e(H,{variant:"primary",size:"medium",onClick:q,className:o(["quote-management-expiration-date-modal__save-button"]),children:u.saveButton})]})]}):null},ct=({className:l,loading:r,templateName:n,templateStatus:c,banner:a,details:s,actionBar:g,referenceDocuments:m,itemsTable:q,shippingInformationTitle:p,shippingInformation:u,commentsTitle:b,comments:v,attachFilesField:f,attachedFilesList:y,footer:t,...d})=>r?e(De,{}):i("div",{...d,className:o(["quote-management-manage-negotiable-quote-template",l]),children:[i("div",{className:o(["quote-management-manage-negotiable-quote-template__header"]),children:[n&&e(_,{node:n,className:o(["quote-management-manage-negotiable-quote-template__template-name"])}),c&&e(_,{node:c,className:o(["quote-management-manage-negotiable-quote-template__template-status"])})]}),a&&e(_,{node:a,className:o(["quote-management-manage-negotiable-quote-template__banner"])}),s&&e(_,{node:s,className:o(["quote-management-manage-negotiable-quote-template__details"])}),g&&e(_,{node:g,className:o(["quote-management-manage-negotiable-quote-template__action-bar"])}),m&&e("div",{"data-testid":"reference-documents-container",className:o(["quote-management-manage-negotiable-quote-template__reference-documents-container"]),children:e(_,{node:m,className:o(["quote-management-manage-negotiable-quote-template__reference-documents"])})}),q&&e(_,{node:q,className:o(["quote-management-manage-negotiable-quote-template__items-table"])}),i("div",{"data-testid":"template-shipping-information-container",className:o(["quote-management-manage-negotiable-quote-template__shipping-information-container"]),children:[p&&e(_,{node:p,className:o(["quote-management-manage-negotiable-quote-template__shipping-information-title"])}),u&&e(_,{node:u,className:o(["quote-management-manage-negotiable-quote-template__shipping-information"])})]}),i("div",{"data-testid":"comments-container",className:o(["quote-management-manage-negotiable-quote-template__comments-container"]),children:[b&&e(_,{node:b,className:o(["quote-management-manage-negotiable-quote-template__comments-title"])}),v&&e(_,{node:v,className:o(["quote-management-manage-negotiable-quote-template__comments"])}),f&&e(_,{node:f,className:o(["quote-management-manage-negotiable-quote-template__attach-files-field"])}),y&&e(_,{node:y,className:o(["quote-management-manage-negotiable-quote-template__attached-files-list"])})]}),t&&e(_,{node:t,className:o(["quote-management-manage-negotiable-quote-template__footer"])})]}),De=()=>i(X,{"data-testid":"manage-negotiable-quote-template-skeleton",children:[e(E,{variant:"heading",fullWidth:!0,size:"large"}),e(E,{variant:"row",fullWidth:!1,size:"small"}),e(E,{variant:"row",fullWidth:!1,size:"small"}),e(E,{variant:"row",fullWidth:!0}),e(E,{variant:"row",fullWidth:!0,size:"xlarge",lines:2}),e(E,{variant:"row",fullWidth:!1,size:"small"})]}),dt=({className:l,open:r,item:n,onClose:c,onConfirm:a,isSubmitting:s=!1,errorBanner:g,successBanner:m,showCloseButton:q=!0,readOnlyQuantity:p=!1})=>{const[u,b]=F(""),[v,f]=F(n.quantity),[y,t]=F({}),d=$({title:"NegotiableQuote.Manage.lineItemNote.title",productLabel:"NegotiableQuote.Manage.lineItemNote.productLabel",skuLabel:"NegotiableQuote.Manage.lineItemNote.skuLabel",priceLabel:"NegotiableQuote.Manage.lineItemNote.priceLabel",stockLabel:"NegotiableQuote.Manage.lineItemNote.stockLabel",quantityLabel:"NegotiableQuote.Manage.lineItemNote.quantityLabel",discountLabel:"NegotiableQuote.Manage.lineItemNote.discountLabel",subtotalLabel:"NegotiableQuote.Manage.lineItemNote.subtotalLabel",noteLabel:"NegotiableQuote.Manage.lineItemNote.noteLabel",notePlaceholder:"NegotiableQuote.Manage.lineItemNote.notePlaceholder",noteHelper:"NegotiableQuote.Manage.lineItemNote.noteHelper",confirmButton:"NegotiableQuote.Manage.lineItemNote.confirmButton",cancelButton:"NegotiableQuote.Manage.lineItemNote.cancelButton",noteError:"NegotiableQuote.Manage.lineItemNote.noteError",quantityError:"NegotiableQuote.Manage.lineItemNote.quantityError"});de(()=>{var x;if(r){const w=((x=n.noteFromBuyer)==null?void 0:x.filter(W=>W&&W.note))||[],Z=w.length>0?w[0].note:"";b(Z||""),f(n.quantity),t({})}},[r,n.quantity,n.noteFromBuyer]);const N=K(()=>{const x={};if(u.trim()||(x.note=d.noteError),!p&&v<=0&&(x.quantity=d.quantityError),Object.keys(x).length>0){t(x);return}a(u.trim(),v)},[u,v,a,d,p]),L=K(()=>{b(""),f(n.quantity),t({}),c==null||c()},[c,n.quantity]);if(!r)return null;const B=n.discounts&&n.discounts.length>0?n.discounts.map(x=>x.label).join(", "):"-",C=[{label:d.productLabel,key:"productName"},{label:d.priceLabel,key:"price"},{label:d.stockLabel,key:"stock"},{label:d.quantityLabel,key:"quantity"},{label:d.discountLabel,key:"discount"},{label:d.subtotalLabel,key:"subtotal"}],k=[{productName:i("div",{className:"quote-management-line-item-note-modal__product-info",children:[e("div",{className:"quote-management-line-item-note-modal__product-name",children:n.product.name}),i("div",{className:"quote-management-line-item-note-modal__product-sku",children:[d.skuLabel,": ",n.product.sku]})]}),price:e(O,{amount:n.prices.originalItemPrice.value,currency:n.prices.originalItemPrice.currency}),stock:e("span",{className:"quote-management-line-item-note-modal__stock",children:n.stockStatus}),quantity:p?e("span",{className:"quote-management-line-item-note-modal__quantity-readonly",children:n.quantity}):e(j,{name:"quantity",type:"number",min:"1",value:v.toString(),onInput:x=>{const w=parseInt(x.target.value,10)||0;f(w),t({...y,quantity:void 0})},disabled:s,error:!!y.quantity,required:!0,"data-testid":"line-item-note-quantity-input",className:"quote-management-line-item-note-modal__quantity-input"}),discount:e("span",{className:"quote-management-line-item-note-modal__discount",children:B}),subtotal:e(O,{amount:n.prices.rowTotal.value,currency:n.prices.rowTotal.currency})}];return i(J,{open:r,size:"medium",title:e(R,{children:d.title}),onClose:L,clickToDismiss:!0,escapeToDismiss:!0,showCloseButton:q,className:o(["quote-management-line-item-note-modal",l]),"data-testid":"line-item-note-modal",children:[g&&e("div",{className:"quote-management-line-item-note-modal__error-banner","data-testid":"line-item-note-modal-error-banner",children:g}),m&&e("div",{className:"quote-management-line-item-note-modal__success-banner","data-testid":"line-item-note-modal-success-banner",children:m}),i("div",{className:"quote-management-line-item-note-modal__content",children:[i("div",{className:"quote-management-line-item-note-modal__details",children:[e(te,{columns:C,rowData:k,"data-testid":"line-item-note-table",mobileLayout:"stacked",className:"quote-management-line-item-note-modal__details-table"}),y.quantity&&e("div",{className:"quote-management-line-item-note-modal__table-error",children:y.quantity})]}),i("div",{className:"quote-management-line-item-note-modal__form-field",children:[e(ge,{name:"note",placeholder:d.notePlaceholder,rows:4,value:u,onInput:x=>{b(x.target.value),t({...y,note:void 0})},label:d.noteLabel,disabled:s,"data-testid":"line-item-note-textarea"}),!y.note&&e("span",{className:"quote-management-line-item-note-modal__helper-text",children:d.noteHelper}),y.note&&e("span",{className:"quote-management-line-item-note-modal__error-text",children:y.note})]})]}),i("div",{className:"quote-management-line-item-note-modal__actions",children:[e(H,{variant:"secondary",size:"medium",onClick:L,disabled:s,className:"quote-management-line-item-note-modal__cancel-button","data-testid":"line-item-note-cancel-button",children:d.cancelButton}),e(H,{variant:"primary",size:"medium",onClick:N,disabled:s,className:"quote-management-line-item-note-modal__confirm-button","data-testid":"line-item-note-confirm-button",children:d.confirmButton})]})]})},ut=({className:l,open:r,document:n,errorMessage:c,errorBanner:a,successBanner:s,showCloseButton:g=!0,isSubmitting:m=!1,onSave:q,onClose:p})=>{const[u,b]=F(""),[v,f]=F(""),[y,t]=F(""),[d,N]=F({}),L=$({title:"NegotiableQuoteTemplate.Manage.referenceDocuments.form.title",documentNameLabel:"NegotiableQuoteTemplate.Manage.referenceDocuments.form.documentNameLabel",documentIdentifierLabel:"NegotiableQuoteTemplate.Manage.referenceDocuments.form.documentIdentifierLabel",referenceUrlLabel:"NegotiableQuoteTemplate.Manage.referenceDocuments.form.referenceUrlLabel",addButton:"NegotiableQuoteTemplate.Manage.referenceDocuments.form.addButton",updateButton:"NegotiableQuoteTemplate.Manage.referenceDocuments.form.updateButton",cancelButton:"NegotiableQuoteTemplate.Manage.referenceDocuments.form.cancelButton",documentNameRequired:"NegotiableQuoteTemplate.Manage.referenceDocuments.form.documentNameRequired",documentIdentifierRequired:"NegotiableQuoteTemplate.Manage.referenceDocuments.form.documentIdentifierRequired",referenceUrlRequired:"NegotiableQuoteTemplate.Manage.referenceDocuments.form.referenceUrlRequired",invalidUrl:"NegotiableQuoteTemplate.Manage.referenceDocuments.form.invalidUrl",errorHeading:"NegotiableQuoteTemplate.Manage.referenceDocuments.form.errorHeading"}),P=a||(c?e(ie,{type:"error",variant:"primary",icon:e(ae,{}),heading:L.errorHeading,description:c,"data-testid":"reference-document-form-modal-error-banner-inline"}):null),B=!!n;de(()=>{r&&(n?(b(n.name||""),f(n.identifier||""),t(n.url||"")):(b(""),f(""),t("")),N({}))},[r,n]);const C=K(w=>{if(!w.trim())return!1;try{return new URL(w),!0}catch{return!1}},[]),k=K(()=>{const w={};if(u.trim()||(w.documentName=L.documentNameRequired),y.trim()?C(y.trim())||(w.referenceUrl=L.invalidUrl):w.referenceUrl=L.referenceUrlRequired,v.trim()||(w.documentIdentifier=L.documentIdentifierRequired),Object.keys(w).length>0){N(w);return}q({uid:n==null?void 0:n.uid,name:u.trim(),identifier:v.trim(),url:y.trim()})},[u,v,y,n,L,C,q]),x=K(()=>{b(""),f(""),t(""),N({}),p==null||p()},[p]);return r?i(J,{open:r,size:"medium",title:e(R,{children:L.title}),onClose:x,clickToDismiss:!0,escapeToDismiss:!0,showCloseButton:g,className:o(["quote-management-reference-document-form-modal",l]),"data-testid":"reference-document-form-modal",children:[P&&e("div",{className:o(["quote-management-reference-document-form-modal__error-banner"]),"data-testid":"reference-document-form-modal-error-banner",children:P}),s&&e("div",{className:o(["quote-management-reference-document-form-modal__success-banner"]),"data-testid":"reference-document-form-modal-success-banner",children:s}),i("div",{className:o(["quote-management-reference-document-form-modal__content"]),children:[i("div",{children:[e(j,{name:"documentName",type:"text",value:u,onInput:w=>{b(w.target.value),N({...d,documentName:void 0})},floatingLabel:L.documentNameLabel,required:!0,error:!!d.documentName,disabled:m,"data-testid":"reference-document-name-input"}),d.documentName&&e("span",{className:o(["quote-management-reference-document-form-modal__error-text"]),"data-testid":"reference-document-name-error",children:d.documentName})]}),i("div",{children:[e(j,{name:"documentIdentifier",type:"text",value:v,onInput:w=>{f(w.target.value),N({...d,documentIdentifier:void 0})},floatingLabel:L.documentIdentifierLabel,error:!!d.documentIdentifier,disabled:m,"data-testid":"reference-document-identifier-input"}),d.documentIdentifier&&e("span",{className:o(["quote-management-reference-document-form-modal__error-text"]),"data-testid":"reference-document-identifier-error",children:d.documentIdentifier})]}),i("div",{children:[e(j,{name:"referenceUrl",type:"url",value:y,onInput:w=>{t(w.target.value),N({...d,referenceUrl:void 0})},floatingLabel:L.referenceUrlLabel,required:!0,error:!!d.referenceUrl,disabled:m,"data-testid":"reference-document-url-input"}),d.referenceUrl&&e("span",{className:o(["quote-management-reference-document-form-modal__error-text"]),"data-testid":"reference-document-url-error",children:d.referenceUrl})]})]}),i("div",{className:o(["quote-management-reference-document-form-modal__actions"]),children:[e(H,{variant:"secondary",size:"medium",onClick:x,disabled:m,className:o(["quote-management-reference-document-form-modal__cancel-button"]),"data-testid":"reference-document-form-cancel-button",children:L.cancelButton}),e(H,{variant:"primary",size:"medium",onClick:k,disabled:m,className:o(["quote-management-reference-document-form-modal__save-button"]),"data-testid":"reference-document-form-save-button",children:B?L.updateButton:L.addButton})]})]}):null},gt=({className:l,documents:r,isEditable:n=!1,onAdd:c,onEdit:a,onRemove:s,...g})=>{const m=$({add:"NegotiableQuoteTemplate.Manage.referenceDocuments.add",edit:"NegotiableQuoteTemplate.Manage.referenceDocuments.edit",remove:"NegotiableQuoteTemplate.Manage.referenceDocuments.remove",noReferenceDocuments:"NegotiableQuoteTemplate.Manage.referenceDocuments.noReferenceDocuments"}),q=u=>u.identifier?`${u.name}, ${u.identifier}`:`${u.name} ${u.url}`,p=(u,b)=>{u.preventDefault(),window.open(b,"_blank","noopener,noreferrer")};return e("div",{className:o(["quote-management-reference-documents-list",l]),"data-testid":"reference-documents-list",...g,children:i("div",{className:"quote-management-reference-documents-list__content",children:[r.map(u=>i("div",{className:"quote-management-reference-documents-list__document","data-testid":`reference-document-${u.uid||u.url}`,children:[e("a",{href:u.url,onClick:b=>p(b,u.url),className:"quote-management-reference-documents-list__document-link",target:"_blank",rel:"noopener noreferrer","data-testid":`reference-document-link-${u.uid||u.url}`,children:q(u)}),n&&i("div",{className:"quote-management-reference-documents-list__document-actions",children:[e(H,{variant:"tertiary",onClick:()=>a==null?void 0:a(u),className:"quote-management-reference-documents-list__edit-button","data-testid":`reference-document-edit-${u.uid||u.url}`,children:m.edit}),e("span",{className:"quote-management-reference-documents-list__separator",children:"|"}),e(H,{variant:"tertiary",onClick:()=>s==null?void 0:s(u),className:"quote-management-reference-documents-list__remove-button","data-testid":`reference-document-remove-${u.uid||u.url}`,children:m.remove})]})]},u.uid||u.url)),n&&i(H,{variant:"tertiary",onClick:c,className:"quote-management-reference-documents-list__add-button","data-testid":"reference-documents-add-button",children:["+ ",m.add]}),r.length===0&&!n&&e("div",{className:"quote-management-reference-documents-list__empty",children:m.noReferenceDocuments})]})})};export{Ge as A,ot as C,mt as E,Ke as I,dt as L,Xe as M,z as O,Ye as P,at as Q,Ze as R,We as S,it as T,Oe as a,Ae as b,ye as c,ae as d,ee as e,Te as f,nt as g,rt as h,lt as i,Je as j,ze as k,et as l,me as m,Ue as n,tt as o,Fe as p,Ve as q,st as r,gt as s,ct as t,ut as u,je as v};
|
|
4
4
|
//# sourceMappingURL=components.js.map
|
|
@@ -1,6 +1,13 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* Copyright 2025 Adobe
|
|
3
|
+
* All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* NOTICE: Adobe permits you to use, modify, and distribute this
|
|
6
|
+
* file in accordance with the terms of the Adobe license agreement
|
|
7
|
+
* accompanying it.
|
|
8
|
+
*******************************************************************/
|
|
1
9
|
import { FunctionComponent, VNode } from 'preact';
|
|
2
10
|
import { HTMLAttributes } from 'preact/compat';
|
|
3
|
-
|
|
4
11
|
export interface ActionsBarProps extends HTMLAttributes<HTMLDivElement> {
|
|
5
12
|
dropdownPlaceholder?: string;
|
|
6
13
|
dropdownOptions?: {
|
|
@@ -12,4 +19,3 @@ export interface ActionsBarProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
12
19
|
buttons?: VNode[];
|
|
13
20
|
}
|
|
14
21
|
export declare const ActionsBar: FunctionComponent<ActionsBarProps>;
|
|
15
|
-
//# sourceMappingURL=ActionsBar.d.ts.map
|
|
@@ -1,5 +1,12 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* Copyright 2025 Adobe
|
|
3
|
+
* All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* NOTICE: Adobe permits you to use, modify, and distribute this
|
|
6
|
+
* file in accordance with the terms of the Adobe license agreement
|
|
7
|
+
* accompanying it.
|
|
8
|
+
*******************************************************************/
|
|
1
9
|
import { FunctionComponent } from 'preact';
|
|
2
|
-
|
|
3
10
|
export interface AttachedFile {
|
|
4
11
|
key: string;
|
|
5
12
|
name: string;
|
|
@@ -13,4 +20,3 @@ export interface AttachedFilesListProps {
|
|
|
13
20
|
disabled?: boolean;
|
|
14
21
|
}
|
|
15
22
|
export declare const AttachedFilesList: FunctionComponent<AttachedFilesListProps>;
|
|
16
|
-
//# sourceMappingURL=AttachedFilesList.d.ts.map
|
|
@@ -1,6 +1,13 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* Copyright 2025 Adobe
|
|
3
|
+
* All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* NOTICE: Adobe permits you to use, modify, and distribute this
|
|
6
|
+
* file in accordance with the terms of the Adobe license agreement
|
|
7
|
+
* accompanying it.
|
|
8
|
+
*******************************************************************/
|
|
1
9
|
import { FunctionComponent, VNode } from 'preact';
|
|
2
10
|
import { HTMLAttributes } from 'preact/compat';
|
|
3
|
-
|
|
4
11
|
export interface ConfirmationModalProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title'> {
|
|
5
12
|
open?: boolean;
|
|
6
13
|
title?: VNode | string;
|
|
@@ -14,4 +21,3 @@ export interface ConfirmationModalProps extends Omit<HTMLAttributes<HTMLDivEleme
|
|
|
14
21
|
confirmationBanner?: VNode | null;
|
|
15
22
|
}
|
|
16
23
|
export declare const ConfirmationModal: FunctionComponent<ConfirmationModalProps>;
|
|
17
|
-
//# sourceMappingURL=ConfirmationModal.d.ts.map
|
|
@@ -1,6 +1,13 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* Copyright 2025 Adobe
|
|
3
|
+
* All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* NOTICE: Adobe permits you to use, modify, and distribute this
|
|
6
|
+
* file in accordance with the terms of the Adobe license agreement
|
|
7
|
+
* accompanying it.
|
|
8
|
+
*******************************************************************/
|
|
1
9
|
import { FunctionComponent, VNode } from 'preact';
|
|
2
10
|
import { HTMLAttributes } from 'preact/compat';
|
|
3
|
-
|
|
4
11
|
export interface ExpirationDateModalProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title'> {
|
|
5
12
|
open: boolean;
|
|
6
13
|
expirationDate: string;
|
|
@@ -13,4 +20,3 @@ export interface ExpirationDateModalProps extends Omit<HTMLAttributes<HTMLDivEle
|
|
|
13
20
|
onClose?: () => void;
|
|
14
21
|
}
|
|
15
22
|
export declare const ExpirationDateModal: FunctionComponent<ExpirationDateModalProps>;
|
|
16
|
-
//# sourceMappingURL=ExpirationDateModal.d.ts.map
|
|
@@ -1,6 +1,13 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* Copyright 2025 Adobe
|
|
3
|
+
* All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* NOTICE: Adobe permits you to use, modify, and distribute this
|
|
6
|
+
* file in accordance with the terms of the Adobe license agreement
|
|
7
|
+
* accompanying it.
|
|
8
|
+
*******************************************************************/
|
|
1
9
|
import { FunctionComponent, VNode } from 'preact';
|
|
2
10
|
import { HTMLAttributes } from 'preact/compat';
|
|
3
|
-
|
|
4
11
|
export interface ItemsQuotedProps extends Omit<HTMLAttributes<HTMLDivElement>, 'loading'> {
|
|
5
12
|
loading?: boolean;
|
|
6
13
|
table?: VNode;
|
|
@@ -8,4 +15,3 @@ export interface ItemsQuotedProps extends Omit<HTMLAttributes<HTMLDivElement>, '
|
|
|
8
15
|
}
|
|
9
16
|
export declare const ItemsQuoted: FunctionComponent<ItemsQuotedProps>;
|
|
10
17
|
export declare const ItemsQuotedSkeleton: FunctionComponent;
|
|
11
|
-
//# sourceMappingURL=ItemsQuoted.d.ts.map
|
|
@@ -1,7 +1,14 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* Copyright 2025 Adobe
|
|
3
|
+
* All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* NOTICE: Adobe permits you to use, modify, and distribute this
|
|
6
|
+
* file in accordance with the terms of the Adobe license agreement
|
|
7
|
+
* accompanying it.
|
|
8
|
+
*******************************************************************/
|
|
1
9
|
import { FunctionComponent, VNode } from 'preact';
|
|
2
10
|
import { HTMLAttributes } from 'preact/compat';
|
|
3
11
|
import { CartItemModel } from '../../data/models/negotiable-quote-model';
|
|
4
|
-
|
|
5
12
|
export interface LineItemNoteModalProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title'> {
|
|
6
13
|
open: boolean;
|
|
7
14
|
item: CartItemModel;
|
|
@@ -14,4 +21,3 @@ export interface LineItemNoteModalProps extends Omit<HTMLAttributes<HTMLDivEleme
|
|
|
14
21
|
readOnlyQuantity?: boolean;
|
|
15
22
|
}
|
|
16
23
|
export declare const LineItemNoteModal: FunctionComponent<LineItemNoteModalProps>;
|
|
17
|
-
//# sourceMappingURL=LineItemNoteModal.d.ts.map
|
|
@@ -1,6 +1,13 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* Copyright 2025 Adobe
|
|
3
|
+
* All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* NOTICE: Adobe permits you to use, modify, and distribute this
|
|
6
|
+
* file in accordance with the terms of the Adobe license agreement
|
|
7
|
+
* accompanying it.
|
|
8
|
+
*******************************************************************/
|
|
1
9
|
import { FunctionComponent, VNode } from 'preact';
|
|
2
10
|
import { HTMLAttributes } from 'preact/compat';
|
|
3
|
-
|
|
4
11
|
export interface ManageNegotiableQuoteProps extends Omit<HTMLAttributes<HTMLDivElement>, 'loading'> {
|
|
5
12
|
loading?: boolean;
|
|
6
13
|
quoteName: VNode;
|
|
@@ -19,4 +26,3 @@ export interface ManageNegotiableQuoteProps extends Omit<HTMLAttributes<HTMLDivE
|
|
|
19
26
|
}
|
|
20
27
|
export declare const ManageNegotiableQuote: FunctionComponent<ManageNegotiableQuoteProps>;
|
|
21
28
|
export declare const ManageNegotiableQuoteSkeleton: FunctionComponent;
|
|
22
|
-
//# sourceMappingURL=ManageNegotiableQuote.d.ts.map
|
|
@@ -1,6 +1,13 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* Copyright 2025 Adobe
|
|
3
|
+
* All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* NOTICE: Adobe permits you to use, modify, and distribute this
|
|
6
|
+
* file in accordance with the terms of the Adobe license agreement
|
|
7
|
+
* accompanying it.
|
|
8
|
+
*******************************************************************/
|
|
1
9
|
import { FunctionComponent, VNode } from 'preact';
|
|
2
10
|
import { HTMLAttributes } from 'preact/compat';
|
|
3
|
-
|
|
4
11
|
export interface ManageNegotiableQuoteTemplateProps extends Omit<HTMLAttributes<HTMLDivElement>, 'loading'> {
|
|
5
12
|
loading?: boolean;
|
|
6
13
|
templateName: VNode;
|
|
@@ -20,4 +27,3 @@ export interface ManageNegotiableQuoteTemplateProps extends Omit<HTMLAttributes<
|
|
|
20
27
|
}
|
|
21
28
|
export declare const ManageNegotiableQuoteTemplate: FunctionComponent<ManageNegotiableQuoteTemplateProps>;
|
|
22
29
|
export declare const ManageNegotiableQuoteTemplateSkeleton: FunctionComponent;
|
|
23
|
-
//# sourceMappingURL=ManageNegotiableQuoteTemplate.d.ts.map
|
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
import { ManageNegotiableQuoteTemplateProps } from
|
|
2
|
-
|
|
1
|
+
import { ManageNegotiableQuoteTemplateProps } from "../ManageNegotiableQuoteTemplate";
|
|
3
2
|
export declare const baseProps: ManageNegotiableQuoteTemplateProps;
|
|
4
|
-
//# sourceMappingURL=ManageNegotiableQuoteTemplateProps.d.ts.map
|
|
@@ -1,7 +1,14 @@
|
|
|
1
|
+
/********************************************************************
|
|
2
|
+
* Copyright 2025 Adobe
|
|
3
|
+
* All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* NOTICE: Adobe permits you to use, modify, and distribute this
|
|
6
|
+
* file in accordance with the terms of the Adobe license agreement
|
|
7
|
+
* accompanying it.
|
|
8
|
+
*******************************************************************/
|
|
1
9
|
import { FunctionComponent, VNode } from 'preact';
|
|
2
10
|
import { HTMLAttributes } from 'preact/compat';
|
|
3
11
|
import { JSXInternal } from 'preact/src/jsx';
|
|
4
|
-
|
|
5
12
|
export interface OrderSummaryLineItem {
|
|
6
13
|
key: string;
|
|
7
14
|
title?: string;
|
|
@@ -45,4 +52,3 @@ export interface OrderSummaryProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
45
52
|
updateLineItems?: (lineItems: Array<OrderSummaryLineItem>) => Array<OrderSummaryLineItem>;
|
|
46
53
|
}
|
|
47
54
|
export declare const OrderSummary: FunctionComponent<OrderSummaryProps>;
|
|
48
|
-
//# sourceMappingURL=OrderSummary.d.ts.map
|