@dropins/storefront-quote-management 0.0.1-alpha22 → 0.0.1-alpha24

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.
Files changed (106) hide show
  1. package/api/index.d.ts +1 -1
  2. package/api/initialize/initialize.d.ts +1 -0
  3. package/{data/transforms/__fixtures__/customerData.d.ts → api/removeNegotiableQuoteItems/graphql/RemoveNegotiableQuoteItemsMutation.d.ts} +2 -2
  4. package/api/{getCustomerData → removeNegotiableQuoteItems}/index.d.ts +1 -1
  5. package/api/removeNegotiableQuoteItems/removeNegotiableQuoteItems.d.ts +8 -0
  6. package/api.js +16 -41
  7. package/api.js.map +1 -1
  8. package/chunks/ItemsQuoted.js +1 -1
  9. package/chunks/ItemsQuoted.js.map +1 -1
  10. package/chunks/ItemsQuotedTemplate.js +4 -0
  11. package/chunks/ItemsQuotedTemplate.js.map +1 -0
  12. package/chunks/OrderSummaryLine.js +1 -1
  13. package/chunks/OrderSummaryLine.js.map +1 -1
  14. package/chunks/QuoteCommentsList.js +1 -1
  15. package/chunks/QuoteCommentsList.js.map +1 -1
  16. package/chunks/QuoteCommentsList3.js +4 -0
  17. package/chunks/QuoteCommentsList3.js.map +1 -0
  18. package/chunks/QuoteHistoryLog.js +1 -1
  19. package/chunks/QuoteHistoryLog.js.map +1 -1
  20. package/chunks/QuoteHistoryLog3.js +4 -0
  21. package/chunks/QuoteHistoryLog3.js.map +1 -0
  22. package/chunks/QuotePricesSummary.js +4 -0
  23. package/chunks/QuotePricesSummary.js.map +1 -0
  24. package/chunks/QuoteTemplateCommentsList.js +4 -0
  25. package/chunks/QuoteTemplateCommentsList.js.map +1 -0
  26. package/chunks/QuoteTemplateHistoryLog.js +4 -0
  27. package/chunks/QuoteTemplateHistoryLog.js.map +1 -0
  28. package/chunks/TabbedContent.js +4 -0
  29. package/chunks/TabbedContent.js.map +1 -0
  30. package/chunks/dateUtils.js +1 -1
  31. package/chunks/getQuoteTemplates.js +2 -2
  32. package/chunks/getQuoteTemplates.js.map +1 -1
  33. package/chunks/negotiableQuotes.js +1 -1
  34. package/chunks/removeNegotiableQuoteItems.js +38 -0
  35. package/chunks/removeNegotiableQuoteItems.js.map +1 -0
  36. package/chunks/renameNegotiableQuote.js +1 -1
  37. package/chunks/state.js +1 -1
  38. package/chunks/state.js.map +1 -1
  39. package/chunks/transform-quote.js +1 -1
  40. package/chunks/transform-quote.js.map +1 -1
  41. package/chunks/uploadFile.js +3 -3
  42. package/components/ActionsBar/ActionsBar.d.ts +1 -0
  43. package/components/ConfirmationModal/ConfirmationModal.d.ts +1 -0
  44. package/components/ManageNegotiableQuoteTemplate/ManageNegotiableQuoteTemplate.d.ts +22 -0
  45. package/components/ManageNegotiableQuoteTemplate/__fixtures__/ManageNegotiableQuoteTemplateProps.d.ts +4 -0
  46. package/{data/models/customer-model.d.ts → components/ManageNegotiableQuoteTemplate/index.d.ts} +3 -10
  47. package/components/ProductListTable/ProductListTable.d.ts +43 -5
  48. package/components/QuoteHistoryLog/QuoteHistoryLog.d.ts +70 -2
  49. package/components/index.d.ts +1 -0
  50. package/containers/ItemsQuoted/ItemsQuoted.d.ts +5 -0
  51. package/containers/ItemsQuoted.js +1 -1
  52. package/containers/ItemsQuotedTemplate/ItemsQuotedTemplate.d.ts +19 -0
  53. package/{api/getCustomerData/getCustomerData.d.ts → containers/ItemsQuotedTemplate/index.d.ts} +3 -2
  54. package/containers/ItemsQuotedTemplate.d.ts +3 -0
  55. package/containers/ItemsQuotedTemplate.js +4 -0
  56. package/containers/ItemsQuotedTemplate.js.map +1 -0
  57. package/containers/ManageNegotiableQuote/ManageNegotiableQuote.d.ts +1 -0
  58. package/containers/ManageNegotiableQuote.js +1 -1
  59. package/containers/ManageNegotiableQuote.js.map +1 -1
  60. package/containers/ManageNegotiableQuoteTemplate/ManageNegotiableQuoteTemplate.d.ts +54 -0
  61. package/containers/ManageNegotiableQuoteTemplate/index.d.ts +11 -0
  62. package/containers/ManageNegotiableQuoteTemplate.d.ts +3 -0
  63. package/containers/ManageNegotiableQuoteTemplate.js +4 -0
  64. package/containers/ManageNegotiableQuoteTemplate.js.map +1 -0
  65. package/containers/OrderSummary.js +1 -1
  66. package/containers/OrderSummary.js.map +1 -1
  67. package/containers/OrderSummaryLine.js +1 -1
  68. package/containers/QuoteCommentsList.js +1 -1
  69. package/containers/QuoteHistoryLog.js +1 -1
  70. package/containers/QuoteSummaryList.js +1 -1
  71. package/containers/QuoteSummaryList.js.map +1 -1
  72. package/containers/QuoteTemplateCommentsList/QuoteTemplateCommentsList.d.ts +9 -0
  73. package/containers/QuoteTemplateCommentsList/index.d.ts +11 -0
  74. package/containers/QuoteTemplateCommentsList.d.ts +3 -0
  75. package/containers/QuoteTemplateCommentsList.js +4 -0
  76. package/containers/QuoteTemplateCommentsList.js.map +1 -0
  77. package/containers/QuoteTemplateHistoryLog/QuoteTemplateHistoryLog.d.ts +9 -0
  78. package/containers/QuoteTemplateHistoryLog/index.d.ts +11 -0
  79. package/containers/QuoteTemplateHistoryLog.d.ts +3 -0
  80. package/containers/QuoteTemplateHistoryLog.js +4 -0
  81. package/containers/QuoteTemplateHistoryLog.js.map +1 -0
  82. package/containers/QuoteTemplatesListTable/QuoteTemplatesListTable.d.ts +2 -0
  83. package/containers/QuoteTemplatesListTable.js +1 -1
  84. package/containers/QuoteTemplatesListTable.js.map +1 -1
  85. package/containers/QuotesListTable.js +1 -1
  86. package/containers/QuotesListTable.js.map +1 -1
  87. package/containers/RequestNegotiableQuoteForm.js +1 -1
  88. package/containers/index.d.ts +4 -0
  89. package/data/models/__fixtures__/negotiableQuoteTemplateModel.d.ts +4 -0
  90. package/data/models/index.d.ts +0 -1
  91. package/data/models/negotiable-quote-model.d.ts +1 -0
  92. package/data/models/negotiable-quote-template-model.d.ts +1 -1
  93. package/data/transforms/index.d.ts +0 -1
  94. package/i18n/en_US.json.d.ts +48 -1
  95. package/lib/state.d.ts +3 -0
  96. package/package.json +1 -1
  97. package/render.js +2 -3
  98. package/render.js.map +1 -1
  99. package/types/state.types.d.ts +6 -0
  100. package/utils/mapAuthPermissions.d.ts +39 -0
  101. package/api/getCustomerData/graphql/CustomerQuery.d.ts +0 -2
  102. package/api/graphql/CustomerFragment.d.ts +0 -2
  103. package/chunks/updateQuantities.js +0 -21
  104. package/chunks/updateQuantities.js.map +0 -1
  105. package/data/models/__fixtures__/customerModel.d.ts +0 -4
  106. package/data/transforms/transform-customer.d.ts +0 -15
@@ -7,6 +7,7 @@ export interface ActionsBarProps extends HTMLAttributes<HTMLDivElement> {
7
7
  label: string;
8
8
  value: string;
9
9
  }[];
10
+ dropdownValue?: string;
10
11
  handleDropdownChange?: (event: Event) => void;
11
12
  buttons?: VNode[];
12
13
  }
@@ -9,6 +9,7 @@ export interface ConfirmationModalProps extends Omit<HTMLAttributes<HTMLDivEleme
9
9
  confirmLabel?: VNode | string;
10
10
  onCancel?: () => void;
11
11
  onConfirm?: () => void;
12
+ onClose?: () => void;
12
13
  showCloseButton?: boolean;
13
14
  confirmationBanner?: VNode | null;
14
15
  }
@@ -0,0 +1,22 @@
1
+ import { FunctionComponent, VNode } from 'preact';
2
+ import { HTMLAttributes } from 'preact/compat';
3
+
4
+ export interface ManageNegotiableQuoteTemplateProps extends Omit<HTMLAttributes<HTMLDivElement>, 'loading'> {
5
+ loading?: boolean;
6
+ templateName: VNode;
7
+ templateId: VNode;
8
+ banner?: VNode;
9
+ details: VNode;
10
+ actionBar?: VNode;
11
+ referenceDocuments?: VNode;
12
+ referenceDocumentsTitle?: VNode;
13
+ itemsTable: VNode;
14
+ commentsTitle: VNode;
15
+ comments: VNode;
16
+ historyLogTitle: VNode;
17
+ historyLog: VNode;
18
+ footer?: VNode;
19
+ }
20
+ export declare const ManageNegotiableQuoteTemplate: FunctionComponent<ManageNegotiableQuoteTemplateProps>;
21
+ export declare const ManageNegotiableQuoteTemplateSkeleton: FunctionComponent;
22
+ //# sourceMappingURL=ManageNegotiableQuoteTemplate.d.ts.map
@@ -0,0 +1,4 @@
1
+ import { ManageNegotiableQuoteTemplateProps } from '../ManageNegotiableQuoteTemplate';
2
+
3
+ export declare const baseProps: ManageNegotiableQuoteTemplateProps;
4
+ //# sourceMappingURL=ManageNegotiableQuoteTemplateProps.d.ts.map
@@ -6,13 +6,6 @@
6
6
  * file in accordance with the terms of the Adobe license agreement
7
7
  * accompanying it.
8
8
  *******************************************************************/
9
- export interface CustomerModel {
10
- permissions: CustomerPermissions;
11
- }
12
- export interface CustomerPermissions {
13
- canRequestQuote: boolean;
14
- canEditQuote: boolean;
15
- canDeleteQuote: boolean;
16
- canCheckoutQuote: boolean;
17
- }
18
- //# sourceMappingURL=customer-model.d.ts.map
9
+ export * from './ManageNegotiableQuoteTemplate';
10
+ export { ManageNegotiableQuoteTemplate as default } from './ManageNegotiableQuoteTemplate';
11
+ //# sourceMappingURL=index.d.ts.map
@@ -1,14 +1,52 @@
1
1
  import { FunctionComponent } from 'preact';
2
2
  import { HTMLAttributes } from 'preact/compat';
3
- import { NegotiableQuoteCartItem } from '../../data/models/negotiable-quote-model';
4
3
 
4
+ export interface ProductListTableItem {
5
+ uid: string;
6
+ product: {
7
+ name: string;
8
+ sku: string;
9
+ };
10
+ prices: {
11
+ originalItemPrice: {
12
+ value: number;
13
+ currency: string;
14
+ };
15
+ rowTotal: {
16
+ value: number;
17
+ currency: string;
18
+ };
19
+ };
20
+ quantity: number;
21
+ catalogDiscount?: {
22
+ amountOff: number;
23
+ percentOff: number;
24
+ };
25
+ configurableOptions?: Array<{
26
+ optionLabel: string;
27
+ valueLabel: string;
28
+ }>;
29
+ bundleOptions?: Array<{
30
+ label: string;
31
+ values: Array<{
32
+ label: string;
33
+ quantity: number;
34
+ originalPrice: {
35
+ value: number;
36
+ currency: string;
37
+ };
38
+ }>;
39
+ }>;
40
+ }
5
41
  export interface ProductListTableProps extends HTMLAttributes<HTMLDivElement | HTMLFormElement> {
6
- items: NegotiableQuoteCartItem[];
42
+ items: ProductListTableItem[];
7
43
  canEdit: boolean;
8
- onItemCheckboxChange?: (item: NegotiableQuoteCartItem, isSelected: boolean) => void;
9
- onItemDropdownChange?: (item: NegotiableQuoteCartItem, action: string) => void;
10
- onQuantityChange?: (item: NegotiableQuoteCartItem, newQuantity: number) => void;
44
+ readOnly?: boolean;
45
+ onItemCheckboxChange?: (item: ProductListTableItem, isSelected: boolean) => void;
46
+ onItemDropdownChange?: (item: ProductListTableItem, action: string) => void;
47
+ onQuantityChange?: (item: ProductListTableItem, newQuantity: number) => void;
11
48
  onUpdate?: (e: SubmitEvent) => void;
49
+ dropdownSelections?: Record<string, string | undefined>;
12
50
  }
13
51
  export declare const ProductListTable: FunctionComponent<ProductListTableProps>;
14
52
  //# sourceMappingURL=ProductListTable.d.ts.map
@@ -1,9 +1,77 @@
1
1
  import { FunctionComponent } from 'preact';
2
2
  import { HTMLAttributes } from 'preact/compat';
3
- import { NegotiableQuoteModel } from '../../data/models/negotiable-quote-model';
4
3
 
4
+ export interface HistoryEntry {
5
+ uid: string;
6
+ createdAt: string;
7
+ author: {
8
+ firstname: string;
9
+ lastname: string;
10
+ };
11
+ changeType: string;
12
+ changes: {
13
+ commentAdded?: {
14
+ comment: string;
15
+ };
16
+ statuses?: {
17
+ changes: Array<{
18
+ oldStatus?: string;
19
+ newStatus?: string;
20
+ }>;
21
+ };
22
+ expiration?: {
23
+ oldExpiration?: string;
24
+ newExpiration?: string;
25
+ };
26
+ total?: {
27
+ oldPrice?: {
28
+ value: number;
29
+ currency: string;
30
+ };
31
+ newPrice?: {
32
+ value: number;
33
+ currency: string;
34
+ };
35
+ };
36
+ customChanges?: {
37
+ title: string;
38
+ old_value: string;
39
+ new_value: string;
40
+ };
41
+ productsRemoved?: {
42
+ productsRemovedFromCatalog?: string[];
43
+ productsRemovedFromQuote?: Array<{
44
+ name?: string;
45
+ sku?: string;
46
+ uid: string;
47
+ }>;
48
+ };
49
+ };
50
+ }
51
+ export interface ItemNote {
52
+ createdAt: string;
53
+ creatorId: number;
54
+ creatorType: number;
55
+ negotiableQuoteItemUid: string;
56
+ note: string;
57
+ noteUid: string;
58
+ }
59
+ export interface QuoteItem {
60
+ product: {
61
+ name: string;
62
+ sku: string;
63
+ };
64
+ noteFromBuyer?: ItemNote[];
65
+ noteFromSeller?: ItemNote[];
66
+ }
5
67
  export interface QuoteHistoryLogProps extends HTMLAttributes<HTMLDivElement> {
6
- quoteData?: NegotiableQuoteModel;
68
+ history?: HistoryEntry[];
69
+ items?: QuoteItem[];
70
+ buyer: {
71
+ firstname: string;
72
+ lastname: string;
73
+ };
74
+ salesRepName: string;
7
75
  }
8
76
  export declare const QuoteHistoryLog: FunctionComponent<QuoteHistoryLogProps>;
9
77
  //# sourceMappingURL=QuoteHistoryLog.d.ts.map
@@ -24,4 +24,5 @@ export * from './TabbedContent';
24
24
  export * from './QuoteCommentsList';
25
25
  export * from './ConfirmationModal';
26
26
  export * from './RenameQuoteModal';
27
+ export * from './ManageNegotiableQuoteTemplate';
27
28
  //# sourceMappingURL=index.d.ts.map
@@ -6,14 +6,19 @@ export interface ItemsQuotedProps extends HTMLAttributes<HTMLDivElement> {
6
6
  quoteData?: NegotiableQuoteModel;
7
7
  onItemCheckboxChange?: (item: NegotiableQuoteCartItem, isSelected: boolean) => void;
8
8
  onItemDropdownChange?: (item: NegotiableQuoteCartItem, action: string) => void;
9
+ onUpdate?: (e: SubmitEvent) => void;
10
+ onRemoveItemsRef?: (handler: (items: NegotiableQuoteCartItem[]) => void) => void;
11
+ onRemoveModalStateChange?: (isOpen: boolean) => void;
9
12
  slots?: {
10
13
  ProductListTable?: SlotProps<{
11
14
  items: NegotiableQuoteModel['items'];
12
15
  canEdit: boolean;
16
+ readOnly?: boolean;
13
17
  onItemCheckboxChange?: (item: NegotiableQuoteCartItem, isSelected: boolean) => void;
14
18
  onItemDropdownChange?: (item: NegotiableQuoteCartItem, action: string) => void;
15
19
  onQuantityChange?: (item: NegotiableQuoteCartItem, newQuantity: number) => void;
16
20
  onUpdate?: (e: SubmitEvent) => void;
21
+ dropdownSelections?: Record<string, string>;
17
22
  }>;
18
23
  QuotePricesSummary?: SlotProps<{
19
24
  items: NegotiableQuoteModel['items'];
@@ -1,4 +1,4 @@
1
1
  /*! Copyright 2025 Adobe
2
2
  All Rights Reserved. */
3
- import{I as c,I as g}from"../chunks/ItemsQuoted.js";import"@dropins/tools/preact-jsx-runtime.js";import"@dropins/tools/preact-compat.js";import"@dropins/tools/lib.js";import"@dropins/tools/preact.js";import"@dropins/tools/preact-hooks.js";import"@dropins/tools/components.js";/* empty css */import"@dropins/tools/i18n.js";import"@dropins/tools/event-bus.js";import"../chunks/updateQuantities.js";import"../chunks/transform-quote.js";import"@dropins/tools/fetch-graphql.js";import"../chunks/state.js";import"../chunks/NegotiableQuoteFragment.js";import"../chunks/WarningFilled.js";export{c as ItemsQuoted,g as default};
3
+ import{I as k,I as n}from"../chunks/ItemsQuoted.js";import"@dropins/tools/preact-jsx-runtime.js";import"@dropins/tools/preact-compat.js";import"@dropins/tools/lib.js";import"@dropins/tools/event-bus.js";import"@dropins/tools/components.js";/* empty css */import"../chunks/QuotePricesSummary.js";import"@dropins/tools/preact.js";import"@dropins/tools/preact-hooks.js";import"@dropins/tools/i18n.js";/* empty css *//* empty css *//* empty css */import"../chunks/removeNegotiableQuoteItems.js";import"../chunks/transform-quote.js";import"@dropins/tools/fetch-graphql.js";import"../chunks/state.js";import"../chunks/NegotiableQuoteFragment.js";import"../chunks/WarningFilled.js";export{k as ItemsQuoted,n as default};
4
4
  //# sourceMappingURL=ItemsQuoted.js.map
@@ -0,0 +1,19 @@
1
+ import { HTMLAttributes } from 'preact/compat';
2
+ import { Container, SlotProps } from '@dropins/tools/types/elsie/src/lib';
3
+ import { NegotiableQuoteTemplateModel } from '../../data/models/negotiable-quote-template-model';
4
+
5
+ export interface ItemsQuotedTemplateProps extends HTMLAttributes<HTMLDivElement> {
6
+ templateData?: NegotiableQuoteTemplateModel;
7
+ slots?: {
8
+ ProductListTable?: SlotProps<{
9
+ items: NegotiableQuoteTemplateModel['items'];
10
+ canEdit: boolean;
11
+ }>;
12
+ QuotePricesSummary?: SlotProps<{
13
+ items: NegotiableQuoteTemplateModel['items'];
14
+ prices: NegotiableQuoteTemplateModel['prices'];
15
+ }>;
16
+ };
17
+ }
18
+ export declare const ItemsQuotedTemplate: Container<ItemsQuotedTemplateProps>;
19
+ //# sourceMappingURL=ItemsQuotedTemplate.d.ts.map
@@ -6,5 +6,6 @@
6
6
  * file in accordance with the terms of the Adobe license agreement
7
7
  * accompanying it.
8
8
  *******************************************************************/
9
- export declare const getCustomerData: () => Promise<import('../../data/models/customer-model').CustomerModel>;
10
- //# sourceMappingURL=getCustomerData.d.ts.map
9
+ export * from './ItemsQuotedTemplate';
10
+ export { ItemsQuotedTemplate as default } from './ItemsQuotedTemplate';
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,3 @@
1
+ export * from './ItemsQuotedTemplate/index'
2
+ import _default from './ItemsQuotedTemplate/index'
3
+ export default _default
@@ -0,0 +1,4 @@
1
+ /*! Copyright 2025 Adobe
2
+ All Rights Reserved. */
3
+ import{I as Q,I as T}from"../chunks/ItemsQuotedTemplate.js";import"@dropins/tools/preact-jsx-runtime.js";import"@dropins/tools/preact-compat.js";import"@dropins/tools/lib.js";import"@dropins/tools/event-bus.js";import"@dropins/tools/components.js";/* empty css */import"../chunks/QuotePricesSummary.js";import"@dropins/tools/preact.js";import"@dropins/tools/preact-hooks.js";import"@dropins/tools/i18n.js";/* empty css *//* empty css *//* empty css */export{Q as ItemsQuotedTemplate,T as default};
4
+ //# sourceMappingURL=ItemsQuotedTemplate.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ItemsQuotedTemplate.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -26,6 +26,7 @@ export interface ManageNegotiableQuoteProps extends HTMLAttributes<HTMLDivElemen
26
26
  }>;
27
27
  ActionBar?: SlotProps<{
28
28
  quoteData?: NegotiableQuoteModel;
29
+ actionsBarDropdownValue?: string;
29
30
  }>;
30
31
  QuoteContent?: SlotProps<{
31
32
  quoteData?: NegotiableQuoteModel;
@@ -1,4 +1,4 @@
1
1
  /*! Copyright 2025 Adobe
2
2
  All Rights Reserved. */
3
- import{jsx as t,jsxs as d,Fragment as pe}from"@dropins/tools/preact-jsx-runtime.js";import*as be from"@dropins/tools/preact-compat.js";import{useState as s,useMemo as h,useEffect as w,useCallback as q,createPortal as ee}from"@dropins/tools/preact-compat.js";import{classes as m,VComponent as v,Slot as p,getGlobalLocale as Ge}from"@dropins/tools/lib.js";/* empty css */import{Picker as Oe,Skeleton as $e,SkeletonRow as E,Modal as Ve,Input as Xe,TextArea as he,Button as U,InLineAlert as T}from"@dropins/tools/components.js";import{events as R}from"@dropins/tools/event-bus.js";/* empty css */import"@dropins/tools/preact.js";import"@dropins/tools/preact-hooks.js";import{I as Je,C as fe}from"../chunks/ItemsQuoted.js";/* empty css *//* empty css *//* empty css */import{useText as Me}from"@dropins/tools/i18n.js";import{S as Ke}from"../chunks/ShippingAddressDisplay.js";import{Q as Ye}from"../chunks/QuoteHistoryLog.js";import"../chunks/state.js";import{g as Ze,r as Ae,c as ea,s as aa,d as ta}from"../chunks/renameNegotiableQuote.js";import{Q as na}from"../chunks/QuoteCommentsList.js";import{a as W,S as ae}from"../chunks/WarningFilled.js";import"../chunks/updateQuantities.js";import"../chunks/transform-quote.js";import"@dropins/tools/fetch-graphql.js";import"../chunks/NegotiableQuoteFragment.js";import"../chunks/dateUtils.js";const oa=b=>be.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"feather feather-edit-2",...b},be.createElement("path",{d:"M17 3a2.828 2.828 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5L17 3z"})),ra=({className:b,dropdownPlaceholder:a,dropdownOptions:i,handleDropdownChange:_,buttons:u,...e})=>{const g=i&&i.length>0,M=u&&u.length>0,f=(i==null?void 0:i.map(c=>({text:c.label,value:c.value})))||[];return f.unshift({text:a||"",value:""}),t("div",{className:"quote-management-actions-bar__container","data-testid":"actions-bar-container",children:d("div",{className:m(["quote-management-actions-bar",b]),"data-testid":"actions-bar",...e,children:[g&&t(Oe,{name:"dropdown",id:"dropdown",onInput:_,className:"quote-management-actions-bar__dropdown","data-testid":"dropdown",options:f}),M&&t("div",{className:"quote-management-actions-bar__buttons","data-testid":"buttons-container",children:u==null?void 0:u.map((c,Q)=>t(v,{node:c,className:m(["quote-management-actions-bar__button"])},Q))})]})})},ia=({className:b,loading:a,quoteName:i,quoteStatus:_,banner:u,details:e,actionBar:g,quoteContent:M,shippingInformationTitle:f,shippingInformation:c,quoteCommentsTitle:Q,quoteComments:S,footer:N,...y})=>a?t(ma,{}):d("div",{...y,className:m(["quote-management-manage-negotiable-quote",b]),children:[d("div",{className:m(["quote-management-manage-negotiable-quote__header"]),children:[i&&t(v,{node:i,className:m(["quote-management-manage-negotiable-quote__quote-name"])}),_&&t(v,{node:_,className:m(["quote-management-manage-negotiable-quote__quote-status"])})]}),u&&t(v,{node:u,className:m(["quote-management-manage-negotiable-quote__banner"])}),e&&t(v,{node:e,className:m(["quote-management-manage-negotiable-quote__details"])}),g&&t(v,{node:g,className:m(["quote-management-manage-negotiable-quote__action-bar"])}),M&&t(v,{node:M,className:m(["quote-management-manage-negotiable-quote__quote-content"])}),d("div",{"data-testid":"quote-shipping-information-container",className:m(["quote-management-manage-negotiable-quote__shipping-information-container"]),children:[f&&t(v,{node:f,className:m(["quote-management-manage-negotiable-quote__shipping-information-title"])}),c&&t(v,{node:c,className:m(["quote-management-manage-negotiable-quote__shipping-information"])})]}),d("div",{"data-testid":"quote-comments-container",className:m(["quote-management-manage-negotiable-quote__quote-comments-container"]),children:[Q&&t(v,{node:Q,className:m(["quote-management-manage-negotiable-quote__quote-comments-title"])}),S&&t(v,{node:S,className:m(["quote-management-manage-negotiable-quote__quote-comments"])})]}),t(v,{node:N,className:m(["quote-management-manage-negotiable-quote__footer"])})]}),ma=()=>d($e,{"data-testid":"manage-negotiable-quote-skeleton",children:[t(E,{variant:"heading",fullWidth:!0,size:"large"}),t(E,{variant:"row",fullWidth:!1,size:"small"}),t(E,{variant:"row",fullWidth:!1,size:"small"}),t(E,{variant:"row",fullWidth:!0}),t(E,{variant:"row",fullWidth:!0,size:"xlarge",lines:2}),t(E,{variant:"row",fullWidth:!1,size:"small"})]}),la=({className:b,tabs:a,tabsContent:i,defaultActiveTab:_,...u})=>{const[e,g]=s(_||Array.from(a.keys())[0]),M=c=>{g(c)},f=h(()=>i.get(e),[e,i]);return d("div",{...u,className:m(["quote-management-tabbed-content",b]),children:[a&&t("div",{"data-testid":"tabbed-content-tabs",className:m(["quote-management-tabbed-content__tabs"]),children:Array.from(a.entries()).map(([c,Q])=>t("button",{className:m(["quote-management-tabbed-content__tab",["quote-management-tabbed-content__tab--active",c===e]]),onClick:()=>M(c),children:Q},c))}),f&&t("div",{className:m(["quote-management-tabbed-content__active-tab-content"]),children:t(v,{node:f})})]})},ca=({className:b,open:a,quoteName:i,renameReason:_,quoteNameError:u,errorBanner:e,successBanner:g,showCloseButton:M=!0,onQuoteNameChange:f,onRenameReasonChange:c,onSave:Q,onClose:S})=>{const N=Me({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 a?d(Ve,{open:a,size:"medium",title:t(pe,{children:N.title}),onClose:S,clickToDismiss:!0,escapeToDismiss:!0,showCloseButton:M,className:m(["quote-management-rename-quote-modal",b]),"data-testid":"rename-quote-modal",children:[e&&t("div",{className:m(["quote-management-rename-quote-modal__error-banner"]),"data-testid":"rename-quote-modal-error-banner",children:e}),g&&t("div",{className:m(["quote-management-rename-quote-modal__success-banner"]),"data-testid":"rename-quote-modal-success-banner",children:g}),d("div",{className:m(["quote-management-rename-quote-modal__content"]),children:[d("div",{children:[t(Xe,{name:"quoteName",type:"text",value:i,onInput:y=>f(y.target.value),floatingLabel:N.quoteNameLabel,required:!0,error:!!u}),u&&t("span",{className:m(["quote-management-rename-quote-modal__error-text"]),children:u})]}),t(he,{name:"quoteComment",value:_,onInput:y=>c(y.target.value),label:N.reasonLabel,rows:3})]}),d("div",{className:m(["quote-management-rename-quote-modal__actions"]),children:[t(U,{variant:"secondary",size:"medium",onClick:S,className:m(["quote-management-rename-quote-modal__cancel-button"]),children:N.cancelButton}),t(U,{variant:"primary",size:"medium",onClick:Q,className:m(["quote-management-rename-quote-modal__save-button"]),children:N.renameButton})]})]}):null},ka=({onActionsDropdownChange:b,slots:a,onActionsButtonClick:i,onSendForReview:_,...u})=>{const[e,g]=s(void 0),[M,f]=s(!0),[c,Q]=s(!1),[S,N]=s(null),[y,H]=s(!1),[C,te]=s(""),[I,j]=s(!1),[ne,G]=s(!1),[oe,O]=s(!1),[re,L]=s(""),[ie,D]=s(""),[me,$]=s(!1),[k,B]=s(""),[V,P]=s(""),[X,F]=s(""),[Ne,x]=s(""),[J,z]=s(""),n=Me({createdLabel:"NegotiableQuote.Manage.createdLabel",salesRepLabel:"NegotiableQuote.Manage.salesRepLabel",expiresLabel:"NegotiableQuote.Manage.expiresLabel",actionsLabel:"NegotiableQuote.Manage.actionsLabel",remove:"NegotiableQuote.Manage.actions.remove",close:"NegotiableQuote.Manage.actionButtons.close",delete:"NegotiableQuote.Manage.actionButtons.delete",print:"NegotiableQuote.Manage.actionButtons.print",createTemplate:"NegotiableQuote.Manage.actionButtons.createTemplate",createCopy:"NegotiableQuote.Manage.actionButtons.createCopy",shippingInformationTitle:"NegotiableQuote.Manage.shippingInformation.title",quoteCommentsTitle:"NegotiableQuote.Manage.quoteComments.title",quoteCommentsPlaceholder:"NegotiableQuote.Manage.quoteComments.placeholder",sendForReview:"NegotiableQuote.Manage.actionButtons.sendForReview",bannerTitle:"NegotiableQuote.Manage.bannerTitle",statusSubmitted:"NegotiableQuote.Manage.bannerStatusMessages.submitted",statusPending:"NegotiableQuote.Manage.bannerStatusMessages.pending",statusExpired:"NegotiableQuote.Manage.bannerStatusMessages.expired",errorFallback:"NegotiableQuote.Manage.confirmationModal.delete.errorFallback",closeSuccessMessage:"NegotiableQuote.Manage.confirmationModal.close.successDescription",closeModalTitle:"NegotiableQuote.Manage.actionButtons.close",closeModalMessage:"NegotiableQuote.Manage.confirmationModal.close.message",closeModalCancel:"NegotiableQuote.Manage.confirmationModal.cancel",closeModalConfirm:"NegotiableQuote.Manage.confirmationModal.close.confirm",closeModalConfirmLoading:"NegotiableQuote.Manage.confirmationModal.close.confirmLoading",closeModalSuccessHeading:"NegotiableQuote.Manage.confirmationModal.close.successHeading",renameErrorHeading:"NegotiableQuote.Manage.rename.errorHeading",renameQuoteNameRequired:"NegotiableQuote.Manage.rename.quoteNameRequired",renameErrorDefault:"NegotiableQuote.Manage.rename.errorDefault",renameSuccessHeading:"NegotiableQuote.Manage.rename.successHeading",renameSuccessMessage:"NegotiableQuote.Manage.rename.successMessage",confirmationModalCancel:"NegotiableQuote.Manage.confirmationModal.cancel",confirmationModalDeleteTitle:"NegotiableQuote.Manage.confirmationModal.delete.title",confirmationModalDeleteMessage:"NegotiableQuote.Manage.confirmationModal.delete.message",confirmationModalDeleteConfirm:"NegotiableQuote.Manage.confirmationModal.delete.confirm",confirmationModalDeleteErrorHeading:"NegotiableQuote.Manage.confirmationModal.delete.errorHeading",confirmationModalDeleteErrorFallback:"NegotiableQuote.Manage.confirmationModal.delete.errorFallback",confirmationModalDeleteSuccessHeading:"NegotiableQuote.Manage.confirmationModal.delete.successHeading",confirmationModalDeleteSuccessDescription:"NegotiableQuote.Manage.confirmationModal.delete.successDescription"});w(()=>{const o=R.on("quote-management/quote-data",l=>{const{quote:r}=l;r&&(g(r),f(!1))},{eager:!0});return()=>o==null?void 0:o.off()},[]),w(()=>{const o=R.on("quote-management/shipping-address-set",l=>{const{quote:r}=l;r&&g(r)},{eager:!0});return()=>o==null?void 0:o.off()},[]),w(()=>{const o=R.on("quote-management/quote-sent-for-review",l=>{const{quote:r}=l;g(r),te(""),j(!1)},{eager:!0});return()=>o==null?void 0:o.off()},[]),w(()=>{const o=R.on("quote-management/negotiable-quote-closed",async l=>{O(!1),D(""),L(n.closeSuccessMessage),g(r=>{var Z;return r!=null&&r.uid&&((Z=l.closedQuoteUids)!=null&&Z.includes(r.uid))&&Ze(r.uid).then(A=>{g(A)}).catch(A=>{console.warn("Failed to refresh quote data after closure:",A)}),r}),setTimeout(()=>{G(!1),L("")},2e3)},{eager:!0});return()=>o==null?void 0:o.off()},[n.closeSuccessMessage]),w(()=>{const o=R.on("quote-management/negotiable-quote-close-error",l=>{console.log("Close error event received:",l),O(!1),L("");const r=l.error.message||n.errorFallback;D(r)},{eager:!0});return()=>o==null?void 0:o.off()},[n.errorFallback]),w(()=>{const o=R.on("quote-management/quote-renamed",l=>{const{quote:r}=l;g(r),F(""),x(""),z(n.renameSuccessMessage),setTimeout(()=>{$(!1),B(""),P(""),z("")},2e3)},{eager:!0});return()=>o==null?void 0:o.off()},[n.renameSuccessMessage]);const le=q(()=>{B((e==null?void 0:e.name)||""),P(""),F(""),x(""),z(""),$(!0)},[e]),qe=q(()=>{$(!1),B(""),P(""),F(""),x(""),z("")},[]),ve=q(o=>{B(o),o.trim()&&x("")},[]),_e=q(async()=>{if(!k.trim()){x(n.renameQuoteNameRequired);return}try{F(""),x(""),await Ae({quoteUid:e.uid,quoteName:k,quoteComment:V.trim()||void 0})}catch(o){F(o.message||n.renameErrorDefault)}},[e,k,V,n.renameQuoteNameRequired,n.renameErrorDefault]),Qe=h(()=>{const o=e&&(e.lockedForEditing===!0||e.lockedForEditing===void 0&&(e.status==="SUBMITTED"||e.status==="PENDING"||e.status==="ORDERED"||e.status==="CLOSED"));return t(p,{name:"QuoteName",slot:a==null?void 0:a.QuoteName,context:{quoteName:e==null?void 0:e.name,quoteData:e},children:d("div",{className:"quote-management-manage-negotiable-quote__quote-name-wrapper",children:[t("h1",{"data-testid":"quote-name",className:"quote-management-manage-negotiable-quote__quote-name-title",children:e==null?void 0:e.name}),t("button",{onClick:le,disabled:o,"data-testid":"rename-quote-button",className:"quote-management-manage-negotiable-quote__rename-button","aria-label":"Rename quote",children:t(oa,{})})]})})},[a==null?void 0:a.QuoteName,e,le]),Se=h(()=>t(p,{name:"QuoteStatus",slot:a==null?void 0:a.QuoteStatus,context:{quoteStatus:e==null?void 0:e.status,quoteData:e},children:t("div",{"data-testid":"quote-status",children:e==null?void 0:e.status})}),[a==null?void 0:a.QuoteStatus,e]),ce=q(o=>{switch(o){case"SUBMITTED":return n.statusSubmitted;case"PENDING":return n.statusPending;case"EXPIRED":return n.statusExpired;default:return null}},[n])(e==null?void 0:e.status),se=ce&&t(T,{type:"warning",variant:"secondary",icon:t(W,{}),heading:n.bannerTitle,description:ce}),ye=se&&t(p,{name:"Banner","data-testid":"banner",slot:a==null?void 0:a.Banner,context:{quoteData:e},children:se}),Ce=h(()=>{if(!e)return null;const o=Ge()||"en-US",l=new Intl.DateTimeFormat(o,{year:"numeric",month:"long",day:"numeric"});let r;try{r=l.format(new Date(e.expirationDate))}catch{r=e.expirationDate}return d(p,{name:"Details",slot:a==null?void 0:a.Details,context:{quoteData:e},children:[d("div",{className:"quote-management-manage-negotiable-quote__detail",children:[t("span",{className:"quote-management-manage-negotiable-quote__detail-title","data-testid":"created-label",children:n.createdLabel}),d("span",{className:"quote-management-manage-negotiable-quote__detail-content","data-testid":"created-value",children:[l.format(new Date(e.createdAt))," (",e.buyer.firstname," ",e.buyer.lastname,")"]})]}),d("div",{className:"quote-management-manage-negotiable-quote__detail",children:[t("span",{className:"quote-management-manage-negotiable-quote__detail-title","data-testid":"sales-rep-label",children:n.salesRepLabel}),t("span",{className:"quote-management-manage-negotiable-quote__detail-content","data-testid":"sales-rep-value",children:e.salesRepName})]}),d("div",{className:"quote-management-manage-negotiable-quote__detail",children:[t("span",{className:"quote-management-manage-negotiable-quote__detail-title","data-testid":"expires-label",children:n.expiresLabel}),t("span",{className:"quote-management-manage-negotiable-quote__detail-content","data-testid":"expires-value",children:r})]})]})},[a==null?void 0:a.Details,n,e]),de=h(()=>[{label:n.close,value:"close",disabled:!(e!=null&&e.canClose)},{label:n.delete,value:"delete",disabled:!(e!=null&&e.canDelete)},{label:n.print,value:"print"},{label:n.createTemplate,value:"createTemplate"},{label:n.createCopy,value:"createCopy"}],[n,e==null?void 0:e.canDelete,e==null?void 0:e.canClose]),Te=h(()=>{const o=r=>{b==null||b(r)},l=r=>{switch(r){case"close":G(!0),D(""),L(""),i==null||i(r);break;case"delete":Q(!0),i==null||i(r);break;case"print":i==null||i(r);break;case"createTemplate":i==null||i(r);break;case"createCopy":i==null||i(r);break}};return t(p,{name:"ActionBar",slot:a==null?void 0:a.ActionBar,context:{quoteData:e},children:t(ra,{dropdownPlaceholder:n.actionsLabel,dropdownOptions:[{label:n.remove,value:"remove"}],handleDropdownChange:o,buttons:de.map(r=>t(U,{variant:"tertiary",onClick:()=>l(r.value),"data-testid":`actions-bar-${r.value}-button`,"data-action":r.value,disabled:r.disabled,children:r.label},r.value))})})},[de,n,a==null?void 0:a.ActionBar,e,b,i]),Le=h(()=>t(p,{name:"QuoteContent",slot:a==null?void 0:a.QuoteContent,context:{quoteData:e},children:t(la,{tabs:new Map([["items-quoted","Items Quoted"],["comments","Comments"],["history-log","History Log"]]),tabsContent:new Map([["items-quoted",t(p,{name:"ItemsQuotedTab",slot:a==null?void 0:a.ItemsQuotedTab,context:{quoteData:e},children:t(Je,{quoteData:e})},"items-quoted")],["comments",t(p,{name:"CommentsTab",slot:a==null?void 0:a.CommentsTab,context:{quoteData:e},children:t(na,{quoteData:e})},"comments")],["history-log",t(p,{name:"HistoryLogTab",slot:a==null?void 0:a.HistoryLogTab,context:{quoteData:e},children:t(Ye,{quoteData:e})},"history-log")]])})}),[a==null?void 0:a.QuoteContent,a==null?void 0:a.HistoryLogTab,a==null?void 0:a.CommentsTab,a==null?void 0:a.ItemsQuotedTab,e]),xe=h(()=>t(p,{name:"ShippingInformationTitle",slot:a==null?void 0:a.ShippingInformationTitle,context:{quoteData:e},children:t("h2",{children:n.shippingInformationTitle})}),[a==null?void 0:a.ShippingInformationTitle,e,n]),we=h(()=>t(p,{name:"ShippingInformation",slot:a==null?void 0:a.ShippingInformation,context:{quoteData:e,loading:M,setLoading:f},children:t(Ke,{quoteData:e,loading:M,"data-testid":"manage-quote-shipping-address"})}),[a==null?void 0:a.ShippingInformation,e,M,f]),Ee=h(()=>t(p,{name:"QuoteCommentsTitle",slot:a==null?void 0:a.QuoteCommentsTitle,context:{quoteData:e},children:t("h2",{children:n.quoteCommentsTitle})}),[a==null?void 0:a.QuoteCommentsTitle,n,e]),Re=h(()=>t(p,{name:"QuoteComments",slot:a==null?void 0:a.QuoteComments,context:{quoteData:e},children:t(he,{name:"quoteComments",placeholder:n.quoteCommentsPlaceholder,rows:3,value:C,onInput:o=>{te(o.target.value)},disabled:I})}),[a==null?void 0:a.QuoteComments,n,e,C,I]),Ie=q(async()=>{if(e!=null&&e.uid){O(!0),D(""),L("");try{await ea({quoteUids:[e.uid]})}catch(o){console.error("Failed to close quote:",o)}}},[e]),De=q(()=>{G(!1),D(""),L("")},[]),ue=q(async()=>{if(_){_({quoteData:e,comment:C.trim()||void 0});return}j(!0);try{await aa({quoteUid:e.uid,comment:C.trim()||void 0})}catch(o){console.error("Failed to send quote for review:",o),j(!1)}},[e,_,C]),Fe=h(()=>t(p,{name:"Footer",slot:a==null?void 0:a.Footer,context:{quoteData:e,comment:C,isSubmitting:I},children:t(U,{variant:"primary",onClick:ue,"data-testid":"send-for-review-button",disabled:!(e!=null&&e.canSendForReview)||I||!e,children:n.sendForReview})}),[a==null?void 0:a.Footer,n,e,C,I,ue]),He=h(()=>X?t(T,{type:"error",variant:"primary",icon:t(W,{color:"var(--color-error)"}),heading:n.renameErrorHeading,description:X}):void 0,[X,n.renameErrorHeading]),ke=h(()=>J?t(T,{type:"success",variant:"primary",icon:t(ae,{}),heading:n.renameSuccessHeading,description:J}):void 0,[J,n.renameSuccessHeading]),K=q(o=>o.errors&&Array.isArray(o.errors)&&o.errors.length>0?o.errors[0].message||n.confirmationModalDeleteErrorFallback:(o==null?void 0:o.message)||n.confirmationModalDeleteErrorFallback,[n.confirmationModalDeleteErrorFallback]),Be=q(()=>{Q(!1),N(null),H(!1)},[]),Pe=q(async()=>{if(e!=null&&e.uid){N(null),H(!1);try{const{operationResults:o}=await ta(e.uid),l=o.find(r=>r.__typename==="DeleteNegotiableQuoteOperationFailure");if(l){const r=K(l);N(r);return}H(!0)}catch(o){const l=K(o);N(l)}}},[e,K]),ze=q(()=>{N(null)},[]),We=q(()=>{H(!1)},[]),Ue=S?t(T,{type:"error",variant:"primary",icon:t(W,{}),heading:n.confirmationModalDeleteErrorHeading,description:S,onDismiss:ze,"data-testid":"confirmation-modal-error-banner"}):null,ge=(y?t(T,{type:"success",variant:"primary",icon:t(ae,{}),heading:n.confirmationModalDeleteSuccessHeading,description:n.confirmationModalDeleteSuccessDescription,onDismiss:We,"data-testid":"confirmation-modal-success-banner"}):null)||Ue,je={...u,loading:M,quoteName:Qe,quoteStatus:Se,banner:ye||void 0,details:Ce,actionBar:Te,quoteContent:Le,shippingInformationTitle:xe,shippingInformation:we,quoteCommentsTitle:Ee,quoteComments:Re,footer:Fe};let Y=null;return re?Y=t(T,{type:"success",variant:"primary",icon:t(ae,{}),heading:n.closeModalSuccessHeading,description:re,"data-testid":"close-quote-success-banner"}):ie&&(Y=t(T,{type:"error",variant:"primary",icon:t(W,{}),heading:n.confirmationModalDeleteErrorHeading,description:ie,"data-testid":"close-quote-error-banner"})),d(pe,{children:[t(ia,{...je}),me&&ee(t(ca,{open:me,quoteName:k,renameReason:V,quoteNameError:Ne,errorBanner:He,successBanner:ke,onQuoteNameChange:ve,onRenameReasonChange:P,onSave:_e,onClose:qe}),document.body),c&&ee(t(fe,{open:c,title:n.confirmationModalDeleteTitle,message:n.confirmationModalDeleteMessage,cancelLabel:n.confirmationModalCancel,confirmLabel:n.confirmationModalDeleteConfirm,onCancel:Be,onConfirm:Pe,showCloseButton:!ge,confirmationBanner:ge}),document.body),ne&&ee(t(fe,{open:ne,title:n.closeModalTitle,message:n.closeModalMessage,cancelLabel:n.closeModalCancel,confirmLabel:oe?n.closeModalConfirmLoading:n.closeModalConfirm,onCancel:De,onConfirm:oe?void 0:Ie,showCloseButton:!0,confirmationBanner:Y,"data-testid":"close-quote-confirmation-modal"}),document.body)]})};export{ka as ManageNegotiableQuote,ka as default};
3
+ import{jsx as t,jsxs as s,Fragment as Le}from"@dropins/tools/preact-jsx-runtime.js";import*as we from"@dropins/tools/preact-compat.js";import{useState as c,useRef as ie,useEffect as y,useCallback as d,useMemo as f,createPortal as j}from"@dropins/tools/preact-compat.js";import{classes as l,VComponent as N,Slot as g,getGlobalLocale as ra}from"@dropins/tools/lib.js";/* empty css */import{Picker as ia,Skeleton as ma,SkeletonRow as F,Modal as la,Input as ca,TextArea as xe,Button as $,InLineAlert as L}from"@dropins/tools/components.js";import{events as x}from"@dropins/tools/event-bus.js";import"@dropins/tools/preact.js";import"@dropins/tools/preact-hooks.js";import{I as sa,C as me}from"../chunks/ItemsQuoted.js";/* empty css *//* empty css */import{T as da}from"../chunks/TabbedContent.js";/* empty css */import{useText as Re}from"@dropins/tools/i18n.js";import{S as ua}from"../chunks/ShippingAddressDisplay.js";import{Q as ga}from"../chunks/QuoteHistoryLog3.js";import{g as ba,r as fa,c as pa,s as Ma,d as ha}from"../chunks/renameNegotiableQuote.js";import"../chunks/state.js";import{Q as Na}from"../chunks/QuoteCommentsList3.js";import{a as G,S as le}from"../chunks/WarningFilled.js";import"../chunks/QuotePricesSummary.js";import"../chunks/removeNegotiableQuoteItems.js";import"../chunks/transform-quote.js";import"@dropins/tools/fetch-graphql.js";import"../chunks/NegotiableQuoteFragment.js";import"../chunks/QuoteHistoryLog.js";import"../chunks/dateUtils.js";import"../chunks/QuoteCommentsList.js";const qa=p=>we.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"feather feather-edit-2",...p},we.createElement("path",{d:"M17 3a2.828 2.828 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5L17 3z"})),va=({className:p,dropdownPlaceholder:a,dropdownOptions:m,dropdownValue:q,handleDropdownChange:Q,buttons:e,...u})=>{const v=m&&m.length>0,S=e&&e.length>0,_=(m==null?void 0:m.map(M=>({text:M.label,value:M.value})))||[];return _.unshift({text:a||"",value:""}),t("div",{className:"quote-management-actions-bar__container","data-testid":"actions-bar-container",children:s("div",{className:l(["quote-management-actions-bar",p]),"data-testid":"actions-bar",...u,children:[v&&t(ia,{name:"dropdown",id:"dropdown",handleSelect:Q,className:"quote-management-actions-bar__dropdown","data-testid":"dropdown",options:_,value:q||""},`actions-bar-picker-${q||"empty"}`),S&&t("div",{className:"quote-management-actions-bar__buttons","data-testid":"buttons-container",children:e==null?void 0:e.map((M,C)=>t(N,{node:M,className:l(["quote-management-actions-bar__button"])},C))})]})})},Qa=({className:p,loading:a,quoteName:m,quoteStatus:q,banner:Q,details:e,actionBar:u,quoteContent:v,shippingInformationTitle:S,shippingInformation:_,quoteCommentsTitle:M,quoteComments:C,footer:b,...I})=>a?t(Sa,{}):s("div",{...I,className:l(["quote-management-manage-negotiable-quote",p]),children:[s("div",{className:l(["quote-management-manage-negotiable-quote__header"]),children:[m&&t(N,{node:m,className:l(["quote-management-manage-negotiable-quote__quote-name"])}),q&&t(N,{node:q,className:l(["quote-management-manage-negotiable-quote__quote-status"])})]}),Q&&t(N,{node:Q,className:l(["quote-management-manage-negotiable-quote__banner"])}),e&&t(N,{node:e,className:l(["quote-management-manage-negotiable-quote__details"])}),u&&t(N,{node:u,className:l(["quote-management-manage-negotiable-quote__action-bar"])}),v&&t(N,{node:v,className:l(["quote-management-manage-negotiable-quote__quote-content"])}),s("div",{"data-testid":"quote-shipping-information-container",className:l(["quote-management-manage-negotiable-quote__shipping-information-container"]),children:[S&&t(N,{node:S,className:l(["quote-management-manage-negotiable-quote__shipping-information-title"])}),_&&t(N,{node:_,className:l(["quote-management-manage-negotiable-quote__shipping-information"])})]}),s("div",{"data-testid":"quote-comments-container",className:l(["quote-management-manage-negotiable-quote__quote-comments-container"]),children:[M&&t(N,{node:M,className:l(["quote-management-manage-negotiable-quote__quote-comments-title"])}),C&&t(N,{node:C,className:l(["quote-management-manage-negotiable-quote__quote-comments"])})]}),t(N,{node:b,className:l(["quote-management-manage-negotiable-quote__footer"])})]}),Sa=()=>s(ma,{"data-testid":"manage-negotiable-quote-skeleton",children:[t(F,{variant:"heading",fullWidth:!0,size:"large"}),t(F,{variant:"row",fullWidth:!1,size:"small"}),t(F,{variant:"row",fullWidth:!1,size:"small"}),t(F,{variant:"row",fullWidth:!0}),t(F,{variant:"row",fullWidth:!0,size:"xlarge",lines:2}),t(F,{variant:"row",fullWidth:!1,size:"small"})]}),_a=({className:p,open:a,quoteName:m,renameReason:q,quoteNameError:Q,errorBanner:e,successBanner:u,showCloseButton:v=!0,onQuoteNameChange:S,onRenameReasonChange:_,onSave:M,onClose:C})=>{const b=Re({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 a?s(la,{open:a,size:"medium",title:t(Le,{children:b.title}),onClose:C,clickToDismiss:!0,escapeToDismiss:!0,showCloseButton:v,className:l(["quote-management-rename-quote-modal",p]),"data-testid":"rename-quote-modal",children:[e&&t("div",{className:l(["quote-management-rename-quote-modal__error-banner"]),"data-testid":"rename-quote-modal-error-banner",children:e}),u&&t("div",{className:l(["quote-management-rename-quote-modal__success-banner"]),"data-testid":"rename-quote-modal-success-banner",children:u}),s("div",{className:l(["quote-management-rename-quote-modal__content"]),children:[s("div",{children:[t(ca,{name:"quoteName",type:"text",value:m,onInput:I=>S(I.target.value),floatingLabel:b.quoteNameLabel,required:!0,error:!!Q}),Q&&t("span",{className:l(["quote-management-rename-quote-modal__error-text"]),children:Q})]}),t(xe,{name:"quoteComment",value:q,onInput:I=>_(I.target.value),label:b.reasonLabel,rows:3})]}),s("div",{className:l(["quote-management-rename-quote-modal__actions"]),children:[t($,{variant:"secondary",size:"medium",onClick:C,className:l(["quote-management-rename-quote-modal__cancel-button"]),children:b.cancelButton}),t($,{variant:"primary",size:"medium",onClick:M,className:l(["quote-management-rename-quote-modal__save-button"]),children:b.renameButton})]})]}):null},at=({onActionsDropdownChange:p,slots:a,onActionsButtonClick:m,onSendForReview:q,...Q})=>{const[e,u]=c(void 0),[v,S]=c(!0),[_,M]=c(!1),[C,b]=c(null),[I,U]=c(!1),[T,ce]=c(""),[H,X]=c(!1),[se,J]=c(!1),[de,K]=c(!1),[ue,R]=c(""),[ge,B]=c(""),[be,Y]=c(!1),[P,z]=c(""),[Z,W]=c(""),[A,k]=c(""),[Ee,E]=c(""),[ee,O]=c(""),[ae,fe]=c(new Set),pe=ie(ae),te=ie(null),[D,ne]=c(""),V=ie(D),[Me,he]=c(!1);y(()=>{pe.current=ae},[ae]),y(()=>{V.current=D},[D]);const o=Re({createdLabel:"NegotiableQuote.Manage.createdLabel",salesRepLabel:"NegotiableQuote.Manage.salesRepLabel",expiresLabel:"NegotiableQuote.Manage.expiresLabel",actionsLabel:"NegotiableQuote.Manage.actionsLabel",remove:"NegotiableQuote.Manage.actions.remove",close:"NegotiableQuote.Manage.actionButtons.close",delete:"NegotiableQuote.Manage.actionButtons.delete",print:"NegotiableQuote.Manage.actionButtons.print",createTemplate:"NegotiableQuote.Manage.actionButtons.createTemplate",createCopy:"NegotiableQuote.Manage.actionButtons.createCopy",shippingInformationTitle:"NegotiableQuote.Manage.shippingInformation.title",quoteCommentsTitle:"NegotiableQuote.Manage.quoteComments.title",quoteCommentsPlaceholder:"NegotiableQuote.Manage.quoteComments.placeholder",sendForReview:"NegotiableQuote.Manage.actionButtons.sendForReview",bannerTitle:"NegotiableQuote.Manage.bannerTitle",statusSubmitted:"NegotiableQuote.Manage.bannerStatusMessages.submitted",statusPending:"NegotiableQuote.Manage.bannerStatusMessages.pending",statusExpired:"NegotiableQuote.Manage.bannerStatusMessages.expired",errorFallback:"NegotiableQuote.Manage.confirmationModal.delete.errorFallback",closeSuccessMessage:"NegotiableQuote.Manage.confirmationModal.close.successDescription",closeModalTitle:"NegotiableQuote.Manage.actionButtons.close",closeModalMessage:"NegotiableQuote.Manage.confirmationModal.close.message",closeModalCancel:"NegotiableQuote.Manage.confirmationModal.cancel",closeModalConfirm:"NegotiableQuote.Manage.confirmationModal.close.confirm",closeModalConfirmLoading:"NegotiableQuote.Manage.confirmationModal.close.confirmLoading",closeModalSuccessHeading:"NegotiableQuote.Manage.confirmationModal.close.successHeading",renameErrorHeading:"NegotiableQuote.Manage.rename.errorHeading",renameQuoteNameRequired:"NegotiableQuote.Manage.rename.quoteNameRequired",renameErrorDefault:"NegotiableQuote.Manage.rename.errorDefault",renameSuccessHeading:"NegotiableQuote.Manage.rename.successHeading",renameSuccessMessage:"NegotiableQuote.Manage.rename.successMessage",confirmationModalCancel:"NegotiableQuote.Manage.confirmationModal.cancel",confirmationModalDeleteTitle:"NegotiableQuote.Manage.confirmationModal.delete.title",confirmationModalDeleteMessage:"NegotiableQuote.Manage.confirmationModal.delete.message",confirmationModalDeleteConfirm:"NegotiableQuote.Manage.confirmationModal.delete.confirm",confirmationModalDeleteErrorHeading:"NegotiableQuote.Manage.confirmationModal.delete.errorHeading",confirmationModalDeleteErrorFallback:"NegotiableQuote.Manage.confirmationModal.delete.errorFallback",noItemsSelectedModalTitle:"NegotiableQuote.Manage.confirmationModal.noItemsSelected.title",noItemsSelectedModalMessage:"NegotiableQuote.Manage.confirmationModal.noItemsSelected.message",noItemsSelectedModalConfirm:"NegotiableQuote.Manage.confirmationModal.noItemsSelected.confirm",confirmationModalDeleteSuccessHeading:"NegotiableQuote.Manage.confirmationModal.delete.successHeading",confirmationModalDeleteSuccessDescription:"NegotiableQuote.Manage.confirmationModal.delete.successDescription"});y(()=>{const n=x.on("quote-management/quote-data",r=>{const{quote:i}=r;i&&(u(i),S(!1))},{eager:!0});return()=>n==null?void 0:n.off()},[]),y(()=>{const n=x.on("quote-management/shipping-address-set",r=>{const{quote:i}=r;i&&u(i)},{eager:!0});return()=>n==null?void 0:n.off()},[]),y(()=>{const n=x.on("quote-management/quote-sent-for-review",r=>{const{quote:i}=r;u(i),ce(""),X(!1)},{eager:!0});return()=>n==null?void 0:n.off()},[]),y(()=>{const n=x.on("quote-management/quote-items-removed",r=>{const{quote:i,removedItemUids:h}=r;i&&u(i),h&&fe(w=>{const Te=new Set(w);return h.forEach(oa=>Te.delete(oa)),Te})},{eager:!0});return()=>n==null?void 0:n.off()},[]);const Ne=d((n,r)=>{fe(i=>{const h=new Set(i);return r?h.add(n.uid):h.delete(n.uid),h})},[]),qe=d(n=>{const r=n.target.value,i=pe.current;if(r==="remove"){if(ne(r),V.current=r,i.size===0)he(!0);else if(e&&te.current){const h=e.items.filter(w=>i.has(w.uid));te.current(h)}}p==null||p(n)},[p,e]),ve=d(()=>{he(!1),ne(""),V.current=""},[]);y(()=>{const n=x.on("quote-management/negotiable-quote-closed",async r=>{K(!1),B(""),R(o.closeSuccessMessage),u(i=>{var h;return i!=null&&i.uid&&((h=r.closedQuoteUids)!=null&&h.includes(i.uid))&&ba(i.uid).then(w=>{u(w)}).catch(w=>{console.warn("Failed to refresh quote data after closure:",w)}),i}),setTimeout(()=>{J(!1),R("")},2e3)},{eager:!0});return()=>n==null?void 0:n.off()},[o.closeSuccessMessage]),y(()=>{const n=x.on("quote-management/negotiable-quote-close-error",r=>{console.log("Close error event received:",r),K(!1),R("");const i=r.error.message||o.errorFallback;B(i)},{eager:!0});return()=>n==null?void 0:n.off()},[o.errorFallback]),y(()=>{const n=x.on("quote-management/quote-renamed",r=>{const{quote:i}=r;u(i),k(""),E(""),O(o.renameSuccessMessage),setTimeout(()=>{Y(!1),z(""),W(""),O("")},2e3)},{eager:!0});return()=>n==null?void 0:n.off()},[o.renameSuccessMessage]);const Qe=d(()=>{z((e==null?void 0:e.name)||""),W(""),k(""),E(""),O(""),Y(!0)},[e]),De=d(()=>{Y(!1),z(""),W(""),k(""),E(""),O("")},[]),Fe=d(n=>{z(n),n.trim()&&E("")},[]),He=d(async()=>{if(!P.trim()){E(o.renameQuoteNameRequired);return}try{k(""),E(""),await fa({quoteUid:e.uid,quoteName:P,quoteComment:Z.trim()||void 0})}catch(n){k(n.message||o.renameErrorDefault)}},[e,P,Z,o.renameQuoteNameRequired,o.renameErrorDefault]),Be=f(()=>{const n=e&&(e.lockedForEditing===!0||e.lockedForEditing===void 0&&(e.status==="SUBMITTED"||e.status==="PENDING"||e.status==="ORDERED"||e.status==="CLOSED"));return t(g,{name:"QuoteName",slot:a==null?void 0:a.QuoteName,context:{quoteName:e==null?void 0:e.name,quoteData:e},children:s("div",{className:"quote-management-manage-negotiable-quote__quote-name-wrapper",children:[t("h1",{"data-testid":"quote-name",className:"quote-management-manage-negotiable-quote__quote-name-title",children:e==null?void 0:e.name}),t("button",{onClick:Qe,disabled:n,"data-testid":"rename-quote-button",className:"quote-management-manage-negotiable-quote__rename-button","aria-label":"Rename quote",children:t(qa,{})})]})})},[a==null?void 0:a.QuoteName,e,Qe]),ke=f(()=>t(g,{name:"QuoteStatus",slot:a==null?void 0:a.QuoteStatus,context:{quoteStatus:e==null?void 0:e.status,quoteData:e},children:t("div",{"data-testid":"quote-status",children:e==null?void 0:e.status})}),[a==null?void 0:a.QuoteStatus,e]),Se=d(n=>{switch(n){case"SUBMITTED":return o.statusSubmitted;case"PENDING":return o.statusPending;case"EXPIRED":return o.statusExpired;default:return null}},[o])(e==null?void 0:e.status),_e=Se&&t(L,{type:"warning",variant:"secondary",icon:t(G,{}),heading:o.bannerTitle,description:Se}),Ue=_e&&t(g,{name:"Banner","data-testid":"banner",slot:a==null?void 0:a.Banner,context:{quoteData:e},children:_e}),Pe=f(()=>{if(!e)return null;const n=ra()||"en-US",r=new Intl.DateTimeFormat(n,{year:"numeric",month:"long",day:"numeric"});let i;try{i=r.format(new Date(e.expirationDate))}catch{i=e.expirationDate}return s(g,{name:"Details",slot:a==null?void 0:a.Details,context:{quoteData:e},children:[s("div",{className:"quote-management-manage-negotiable-quote__detail",children:[t("span",{className:"quote-management-manage-negotiable-quote__detail-title","data-testid":"created-label",children:o.createdLabel}),s("span",{className:"quote-management-manage-negotiable-quote__detail-content","data-testid":"created-value",children:[r.format(new Date(e.createdAt))," (",e.buyer.firstname," ",e.buyer.lastname,")"]})]}),s("div",{className:"quote-management-manage-negotiable-quote__detail",children:[t("span",{className:"quote-management-manage-negotiable-quote__detail-title","data-testid":"sales-rep-label",children:o.salesRepLabel}),t("span",{className:"quote-management-manage-negotiable-quote__detail-content","data-testid":"sales-rep-value",children:e.salesRepName})]}),s("div",{className:"quote-management-manage-negotiable-quote__detail",children:[t("span",{className:"quote-management-manage-negotiable-quote__detail-title","data-testid":"expires-label",children:o.expiresLabel}),t("span",{className:"quote-management-manage-negotiable-quote__detail-content","data-testid":"expires-value",children:i})]})]})},[a==null?void 0:a.Details,o,e]),Ce=f(()=>[{label:o.close,value:"close",disabled:!(e!=null&&e.canClose)},{label:o.delete,value:"delete",disabled:!(e!=null&&e.canDelete)},{label:o.print,value:"print"},{label:o.createTemplate,value:"createTemplate"},{label:o.createCopy,value:"createCopy"}],[o,e==null?void 0:e.canDelete,e==null?void 0:e.canClose]),ze=f(()=>{const n=r=>{switch(r){case"close":J(!0),B(""),R(""),m==null||m(r);break;case"delete":M(!0),m==null||m(r);break;case"print":m==null||m(r);break;case"createTemplate":m==null||m(r);break;case"createCopy":m==null||m(r);break}};return t(g,{name:"ActionBar",slot:a==null?void 0:a.ActionBar,context:{quoteData:e,actionsBarDropdownValue:D},children:t(va,{dropdownPlaceholder:o.actionsLabel,dropdownOptions:[{label:o.remove,value:"remove"}],dropdownValue:D,handleDropdownChange:qe,buttons:Ce.map(r=>t($,{variant:"tertiary",onClick:()=>n(r.value),"data-testid":`actions-bar-${r.value}-button`,"data-action":r.value,disabled:r.disabled,children:r.label},r.value))})})},[Ce,o,a==null?void 0:a.ActionBar,e,qe,m,D]),We=f(()=>t(g,{name:"QuoteContent",slot:a==null?void 0:a.QuoteContent,context:{quoteData:e},children:t(da,{tabs:new Map([["items-quoted","Items Quoted"],["comments","Comments"],["history-log","History Log"]]),tabsContent:new Map([["items-quoted",t(g,{name:"ItemsQuotedTab",slot:a==null?void 0:a.ItemsQuotedTab,context:{quoteData:e},children:t(sa,{quoteData:e,onItemCheckboxChange:Ne,onRemoveItemsRef:n=>{te.current=n},onRemoveModalStateChange:n=>{!n&&V.current==="remove"&&ne("")}})},"items-quoted")],["comments",t(g,{name:"CommentsTab",slot:a==null?void 0:a.CommentsTab,context:{quoteData:e},children:t(Na,{quoteData:e})},"comments")],["history-log",t(g,{name:"HistoryLogTab",slot:a==null?void 0:a.HistoryLogTab,context:{quoteData:e},children:t(ga,{quoteData:e})},"history-log")]])})}),[a==null?void 0:a.QuoteContent,a==null?void 0:a.HistoryLogTab,a==null?void 0:a.CommentsTab,a==null?void 0:a.ItemsQuotedTab,e,Ne]),Oe=f(()=>t(g,{name:"ShippingInformationTitle",slot:a==null?void 0:a.ShippingInformationTitle,context:{quoteData:e},children:t("h2",{children:o.shippingInformationTitle})}),[a==null?void 0:a.ShippingInformationTitle,e,o]),Ve=f(()=>t(g,{name:"ShippingInformation",slot:a==null?void 0:a.ShippingInformation,context:{quoteData:e,loading:v,setLoading:S},children:t(ua,{quoteData:e,loading:v,"data-testid":"manage-quote-shipping-address"})}),[a==null?void 0:a.ShippingInformation,e,v,S]),je=f(()=>t(g,{name:"QuoteCommentsTitle",slot:a==null?void 0:a.QuoteCommentsTitle,context:{quoteData:e},children:t("h2",{children:o.quoteCommentsTitle})}),[a==null?void 0:a.QuoteCommentsTitle,o,e]),Ge=f(()=>t(g,{name:"QuoteComments",slot:a==null?void 0:a.QuoteComments,context:{quoteData:e},children:t(xe,{name:"quoteComments",placeholder:o.quoteCommentsPlaceholder,rows:3,value:T,onInput:n=>{ce(n.target.value)},disabled:H})}),[a==null?void 0:a.QuoteComments,o,e,T,H]),$e=d(async()=>{if(e!=null&&e.uid){K(!0),B(""),R("");try{await pa({quoteUids:[e.uid]})}catch(n){console.error("Failed to close quote:",n)}}},[e]),Xe=d(()=>{J(!1),B(""),R("")},[]),ye=d(async()=>{if(q){q({quoteData:e,comment:T.trim()||void 0});return}X(!0);try{await Ma({quoteUid:e.uid,comment:T.trim()||void 0})}catch(n){console.error("Failed to send quote for review:",n),X(!1)}},[e,q,T]),Je=f(()=>t(g,{name:"Footer",slot:a==null?void 0:a.Footer,context:{quoteData:e,comment:T,isSubmitting:H},children:t($,{variant:"primary",onClick:ye,"data-testid":"send-for-review-button",disabled:!(e!=null&&e.canSendForReview)||H||!e,children:o.sendForReview})}),[a==null?void 0:a.Footer,o,e,T,H,ye]),Ke=f(()=>A?t(L,{type:"error",variant:"primary",icon:t(G,{color:"var(--color-error)"}),heading:o.renameErrorHeading,description:A}):void 0,[A,o.renameErrorHeading]),Ye=f(()=>ee?t(L,{type:"success",variant:"primary",icon:t(le,{}),heading:o.renameSuccessHeading,description:ee}):void 0,[ee,o.renameSuccessHeading]),oe=d(n=>n.errors&&Array.isArray(n.errors)&&n.errors.length>0?n.errors[0].message||o.confirmationModalDeleteErrorFallback:(n==null?void 0:n.message)||o.confirmationModalDeleteErrorFallback,[o.confirmationModalDeleteErrorFallback]),Ze=d(()=>{M(!1),b(null),U(!1)},[]),Ae=d(async()=>{if(e!=null&&e.uid){b(null),U(!1);try{const{operationResults:n}=await ha(e.uid),r=n.find(i=>i.__typename==="DeleteNegotiableQuoteOperationFailure");if(r){const i=oe(r);b(i);return}U(!0)}catch(n){const r=oe(n);b(r)}}},[e,oe]),ea=d(()=>{b(null)},[]),aa=d(()=>{U(!1)},[]),ta=C?t(L,{type:"error",variant:"primary",icon:t(G,{}),heading:o.confirmationModalDeleteErrorHeading,description:C,onDismiss:ea,"data-testid":"confirmation-modal-error-banner"}):null,Ie=(I?t(L,{type:"success",variant:"primary",icon:t(le,{}),heading:o.confirmationModalDeleteSuccessHeading,description:o.confirmationModalDeleteSuccessDescription,onDismiss:aa,"data-testid":"confirmation-modal-success-banner"}):null)||ta,na={...Q,loading:v,quoteName:Be,quoteStatus:ke,banner:Ue||void 0,details:Pe,actionBar:ze,quoteContent:We,shippingInformationTitle:Oe,shippingInformation:Ve,quoteCommentsTitle:je,quoteComments:Ge,footer:Je};let re=null;return ue?re=t(L,{type:"success",variant:"primary",icon:t(le,{}),heading:o.closeModalSuccessHeading,description:ue,"data-testid":"close-quote-success-banner"}):ge&&(re=t(L,{type:"error",variant:"primary",icon:t(G,{}),heading:o.confirmationModalDeleteErrorHeading,description:ge,"data-testid":"close-quote-error-banner"})),s(Le,{children:[t(Qa,{...na}),be&&j(t(_a,{open:be,quoteName:P,renameReason:Z,quoteNameError:Ee,errorBanner:Ke,successBanner:Ye,onQuoteNameChange:Fe,onRenameReasonChange:W,onSave:He,onClose:De}),document.body),_&&j(t(me,{open:_,title:o.confirmationModalDeleteTitle,message:o.confirmationModalDeleteMessage,cancelLabel:o.confirmationModalCancel,confirmLabel:o.confirmationModalDeleteConfirm,onCancel:Ze,onConfirm:Ae,showCloseButton:!Ie,confirmationBanner:Ie}),document.body),se&&j(t(me,{open:se,title:o.closeModalTitle,message:o.closeModalMessage,cancelLabel:o.closeModalCancel,confirmLabel:de?o.closeModalConfirmLoading:o.closeModalConfirm,onCancel:Xe,onConfirm:de?void 0:$e,showCloseButton:!0,confirmationBanner:re,"data-testid":"close-quote-confirmation-modal"}),document.body),Me&&j(t(me,{open:Me,title:o.noItemsSelectedModalTitle,message:o.noItemsSelectedModalMessage,confirmLabel:o.noItemsSelectedModalConfirm,onConfirm:ve,onClose:ve,showCloseButton:!0,"data-testid":"no-items-selected-modal"}),document.body)]})};export{at as ManageNegotiableQuote,at as default};
4
4
  //# sourceMappingURL=ManageNegotiableQuote.js.map