@haus-storefront-react/vendure-plugin-configs 1.0.4-next.6 → 1.0.4-next.8

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 (46) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/badge.js +1 -1
  3. package/badge.mjs +439 -424
  4. package/campaign.js +1 -1
  5. package/campaign.mjs +50 -106
  6. package/elastic.js +1 -1
  7. package/elastic.mjs +10 -26
  8. package/index.js +1 -1
  9. package/index.mjs +2 -4
  10. package/lib/configs/vendure-badge-plugin.d.ts +9 -1
  11. package/lib/configs/vendure-badge-plugin.types.d.ts +0 -1
  12. package/lib/configs/vendure-products-by-sku-plugin.d.ts +11 -0
  13. package/lib/configs/vendure-products-by-sku-plugin.types.d.ts +13 -0
  14. package/lib/configs/vendure-related-products-plugin.d.ts +39 -0
  15. package/lib/configs/vendure-related-products-plugin.types.d.ts +16 -0
  16. package/lib/exports/products-by-sku.d.ts +3 -0
  17. package/lib/exports/related-products.d.ts +3 -0
  18. package/lib/hooks/use-related-products.d.ts +2 -0
  19. package/lib/plugin-config.d.ts +1 -1
  20. package/lib/strategies/quick-order-variant-sku-validation-strategy.d.ts +6 -0
  21. package/package.json +19 -5
  22. package/packagesize.js +1 -1
  23. package/packagesize.mjs +15 -59
  24. package/plugin-config-DrQQb9Ry.js +1 -0
  25. package/plugin-config-DywohMgp.mjs +903 -0
  26. package/product-popularity.js +1 -1
  27. package/product-popularity.mjs +12 -22
  28. package/product-variant-specifications.js +1 -1
  29. package/product-variant-specifications.mjs +8 -18
  30. package/purchase-order-payment.js +5 -5
  31. package/purchase-order-payment.mjs +207 -631
  32. package/related-products.d.ts +2 -0
  33. package/related-products.js +1 -0
  34. package/related-products.mjs +36 -0
  35. package/src-BCHcjT-q.mjs +455 -0
  36. package/src-BqcrcEUL.mjs +2718 -0
  37. package/src-Cj3iGasO.js +6 -0
  38. package/src-CvZOxNaX.js +21 -0
  39. package/compiler-runtime-oPPev21o.js +0 -10
  40. package/compiler-runtime-qHgugrLy.mjs +0 -296
  41. package/index-BRlTlK6a.mjs +0 -3768
  42. package/index-BgBC_k8M.js +0 -1
  43. package/index-C0E-40z0.mjs +0 -19
  44. package/index-CgxqXyHf.js +0 -20
  45. package/useSdk-DOrZRSHz.mjs +0 -2634
  46. package/useSdk-YXpk8Wsi.js +0 -21
package/campaign.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index-CgxqXyHf.js"),e=require("./index-BgBC_k8M.js"),d=new c.VendurePluginConfig({name:"campaign",enableFeatures:{ordinaryPrice:({variant:i,orderLine:r,searchResult:n,product:a})=>{if(r){const t=r.productVariant;return t?.ordinaryPrice?e.getPrice(t?.ordinaryPrice)*r.quantity:r.discountedLinePriceWithTax}return i?e.getPrice(i.ordinaryPrice||0):n?e.getPrice(n.ordinaryPrice||0):a?e.getProductPriceFromVariants(a.variants):0}},queryUpdates:{}});d.setQueryUpdates({search:{fields:[{items:[{ordinaryPrice:[{operation:"PriceRange",fields:["min, max"],fragment:!0},{operation:"SinglePrice",fields:["value"],fragment:!0}]}]}]},product:{fields:[{ordinaryPrice:[{operation:"PriceRange",fields:["min, max"],fragment:!0},{operation:"SinglePrice",fields:["value"],fragment:!0}]},{variants:["ordinaryPrice"]}]},briefProducts:{fields:[{items:[{ordinaryPrice:[{operation:"PriceRange",fields:["min, max"],fragment:!0},{operation:"SinglePrice",fields:["value"],fragment:!0}]},{variants:["ordinaryPrice"]}]}]},activeOrder:{fields:[{lines:[{productVariant:["ordinaryPrice"]}]}]},orderByCode:{fields:[{lines:[{productVariant:["ordinaryPrice"]}]}]},adjustOrderLine:{fields:[{fields:[{lines:[{productVariant:["ordinaryPrice"]}]}]}]},addItemToOrder:{fields:[{fields:[{lines:[{productVariant:["ordinaryPrice"]}]}]}]}});const o=(i,r)=>{const n=e.getPrice(i),a=e.getPrice(r);return e.getPrice(i)===0?!1:a!==n};exports.VendureCampaignPlugin=d;exports.isCampaign=o;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./src-Cj3iGasO.js`);var t=new(require(`./plugin-config-DrQQb9Ry.js`)).t({name:`campaign`,enableFeatures:{ordinaryPrice:({variant:t,orderLine:n,searchResult:r,product:i})=>{if(n){let t=n.productVariant;return t?.ordinaryPrice?e.t(t?.ordinaryPrice)*n.quantity:n.discountedLinePriceWithTax}return t?e.t(t.ordinaryPrice||0):r?e.t(r.ordinaryPrice||0):i?e.n(i.variants):0}},queryUpdates:{}});t.setQueryUpdates({search:{fields:[{items:[{ordinaryPrice:[{operation:`PriceRange`,fields:[`min, max`],fragment:!0},{operation:`SinglePrice`,fields:[`value`],fragment:!0}]}]}]},product:{fields:[{ordinaryPrice:[{operation:`PriceRange`,fields:[`min, max`],fragment:!0},{operation:`SinglePrice`,fields:[`value`],fragment:!0}]},{variants:[`ordinaryPrice`]}]},briefProducts:{fields:[{items:[{ordinaryPrice:[{operation:`PriceRange`,fields:[`min, max`],fragment:!0},{operation:`SinglePrice`,fields:[`value`],fragment:!0}]},{variants:[`ordinaryPrice`]}]}]},activeOrder:{fields:[{lines:[{productVariant:[`ordinaryPrice`]}]}]},orderByCode:{fields:[{lines:[{productVariant:[`ordinaryPrice`]}]}]},adjustOrderLine:{fields:[{fields:[{lines:[{productVariant:[`ordinaryPrice`]}]}]}]},addItemToOrder:{fields:[{fields:[{lines:[{productVariant:[`ordinaryPrice`]}]}]}]}});var n=(t,n)=>{let r=e.t(t),i=e.t(n);return e.t(t)===0?!1:i!==r};exports.VendureCampaignPlugin=t,exports.isCampaign=n;
package/campaign.mjs CHANGED
@@ -1,109 +1,53 @@
1
- import { V as d } from "./index-BRlTlK6a.mjs";
2
- import { g as e, a as o } from "./index-C0E-40z0.mjs";
3
- const s = new d({
4
- name: "campaign",
5
- enableFeatures: {
6
- ordinaryPrice: ({
7
- variant: i,
8
- orderLine: r,
9
- searchResult: a,
10
- product: n
11
- }) => {
12
- if (r) {
13
- const t = r.productVariant;
14
- return t?.ordinaryPrice ? e(t?.ordinaryPrice) * r.quantity : r.discountedLinePriceWithTax;
15
- }
16
- return i ? e(i.ordinaryPrice || 0) : a ? e(a.ordinaryPrice || 0) : n ? o(n.variants) : 0;
17
- }
18
- },
19
- queryUpdates: {}
1
+ import { n as e, t } from "./src-BCHcjT-q.mjs";
2
+ import { t as n } from "./plugin-config-DywohMgp.mjs";
3
+ //#region src/lib/configs/vendure-campaign-plugin.ts
4
+ var r = new n({
5
+ name: "campaign",
6
+ enableFeatures: { ordinaryPrice: ({ variant: n, orderLine: r, searchResult: i, product: a }) => {
7
+ if (r) {
8
+ let e = r.productVariant;
9
+ return e?.ordinaryPrice ? t(e?.ordinaryPrice) * r.quantity : r.discountedLinePriceWithTax;
10
+ }
11
+ return n ? t(n.ordinaryPrice || 0) : i ? t(i.ordinaryPrice || 0) : a ? e(a.variants) : 0;
12
+ } },
13
+ queryUpdates: {}
20
14
  });
21
- s.setQueryUpdates({
22
- search: {
23
- fields: [{
24
- items: [{
25
- ordinaryPrice: [{
26
- operation: "PriceRange",
27
- fields: ["min, max"],
28
- fragment: !0
29
- }, {
30
- operation: "SinglePrice",
31
- fields: ["value"],
32
- fragment: !0
33
- }]
34
- }]
35
- }]
36
- },
37
- product: {
38
- fields: [{
39
- ordinaryPrice: [{
40
- operation: "PriceRange",
41
- fields: ["min, max"],
42
- fragment: !0
43
- }, {
44
- operation: "SinglePrice",
45
- fields: ["value"],
46
- fragment: !0
47
- }]
48
- }, {
49
- variants: ["ordinaryPrice"]
50
- }]
51
- },
52
- briefProducts: {
53
- fields: [{
54
- items: [{
55
- ordinaryPrice: [{
56
- operation: "PriceRange",
57
- fields: ["min, max"],
58
- fragment: !0
59
- }, {
60
- operation: "SinglePrice",
61
- fields: ["value"],
62
- fragment: !0
63
- }]
64
- }, {
65
- variants: ["ordinaryPrice"]
66
- }]
67
- }]
68
- },
69
- activeOrder: {
70
- fields: [{
71
- lines: [{
72
- productVariant: ["ordinaryPrice"]
73
- }]
74
- }]
75
- },
76
- orderByCode: {
77
- fields: [{
78
- lines: [{
79
- productVariant: ["ordinaryPrice"]
80
- }]
81
- }]
82
- },
83
- adjustOrderLine: {
84
- fields: [{
85
- fields: [{
86
- lines: [{
87
- productVariant: ["ordinaryPrice"]
88
- }]
89
- }]
90
- }]
91
- },
92
- addItemToOrder: {
93
- fields: [{
94
- fields: [{
95
- lines: [{
96
- productVariant: ["ordinaryPrice"]
97
- }]
98
- }]
99
- }]
100
- }
15
+ r.setQueryUpdates({
16
+ search: { fields: [{ items: [{ ordinaryPrice: [{
17
+ operation: "PriceRange",
18
+ fields: ["min, max"],
19
+ fragment: !0
20
+ }, {
21
+ operation: "SinglePrice",
22
+ fields: ["value"],
23
+ fragment: !0
24
+ }] }] }] },
25
+ product: { fields: [{ ordinaryPrice: [{
26
+ operation: "PriceRange",
27
+ fields: ["min, max"],
28
+ fragment: !0
29
+ }, {
30
+ operation: "SinglePrice",
31
+ fields: ["value"],
32
+ fragment: !0
33
+ }] }, { variants: ["ordinaryPrice"] }] },
34
+ briefProducts: { fields: [{ items: [{ ordinaryPrice: [{
35
+ operation: "PriceRange",
36
+ fields: ["min, max"],
37
+ fragment: !0
38
+ }, {
39
+ operation: "SinglePrice",
40
+ fields: ["value"],
41
+ fragment: !0
42
+ }] }, { variants: ["ordinaryPrice"] }] }] },
43
+ activeOrder: { fields: [{ lines: [{ productVariant: ["ordinaryPrice"] }] }] },
44
+ orderByCode: { fields: [{ lines: [{ productVariant: ["ordinaryPrice"] }] }] },
45
+ adjustOrderLine: { fields: [{ fields: [{ lines: [{ productVariant: ["ordinaryPrice"] }] }] }] },
46
+ addItemToOrder: { fields: [{ fields: [{ lines: [{ productVariant: ["ordinaryPrice"] }] }] }] }
101
47
  });
102
- const f = (i, r) => {
103
- const a = e(i), n = e(r);
104
- return e(i) === 0 ? !1 : n !== a;
105
- };
106
- export {
107
- s as VendureCampaignPlugin,
108
- f as isCampaign
48
+ var i = (e, n) => {
49
+ let r = t(e), i = t(n);
50
+ return t(e) === 0 ? !1 : i !== r;
109
51
  };
52
+ //#endregion
53
+ export { r as VendureCampaignPlugin, i as isCampaign };
package/elastic.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-CgxqXyHf.js"),i=new e.VendurePluginConfig({name:"vendure-elastic-search",queryUpdates:{search:{fields:[{prices:[{range:["min","max"]},{rangeWithTax:["min","max"]}]}]},searchField:{fields:[{prices:[{range:["min","max"]},{rangeWithTax:["min","max"]}]}]}}});exports.VendureElasticSearchPlugin=i;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=new(require(`./plugin-config-DrQQb9Ry.js`)).t({name:`vendure-elastic-search`,queryUpdates:{search:{fields:[{prices:[{range:[`min`,`max`]},{rangeWithTax:[`min`,`max`]}]}]},searchField:{fields:[{prices:[{range:[`min`,`max`]},{rangeWithTax:[`min`,`max`]}]}]}}});exports.VendureElasticSearchPlugin=e;
package/elastic.mjs CHANGED
@@ -1,27 +1,11 @@
1
- import { V as e } from "./index-BRlTlK6a.mjs";
2
- const i = new e({
3
- name: "vendure-elastic-search",
4
- queryUpdates: {
5
- search: {
6
- fields: [{
7
- prices: [{
8
- range: ["min", "max"]
9
- }, {
10
- rangeWithTax: ["min", "max"]
11
- }]
12
- }]
13
- },
14
- searchField: {
15
- fields: [{
16
- prices: [{
17
- range: ["min", "max"]
18
- }, {
19
- rangeWithTax: ["min", "max"]
20
- }]
21
- }]
22
- }
23
- }
1
+ import { t as e } from "./plugin-config-DywohMgp.mjs";
2
+ //#region src/lib/configs/vendure-elastic-search-plugin.ts
3
+ var t = new e({
4
+ name: "vendure-elastic-search",
5
+ queryUpdates: {
6
+ search: { fields: [{ prices: [{ range: ["min", "max"] }, { rangeWithTax: ["min", "max"] }] }] },
7
+ searchField: { fields: [{ prices: [{ range: ["min", "max"] }, { rangeWithTax: ["min", "max"] }] }] }
8
+ }
24
9
  });
25
- export {
26
- i as VendureElasticSearchPlugin
27
- };
10
+ //#endregion
11
+ export { t as VendureElasticSearchPlugin };
package/index.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-CgxqXyHf.js");exports.VendurePluginConfig=e.VendurePluginConfig;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./plugin-config-DrQQb9Ry.js`);exports.VendurePluginConfig=e.t;
package/index.mjs CHANGED
@@ -1,4 +1,2 @@
1
- import { V as o } from "./index-BRlTlK6a.mjs";
2
- export {
3
- o as VendurePluginConfig
4
- };
1
+ import { t as e } from "./plugin-config-DywohMgp.mjs";
2
+ export { e as VendurePluginConfig };
@@ -1,4 +1,4 @@
1
- import { Asset, Collection } from '@haus-storefront-react/shared-types';
1
+ import { Asset, Collection, ErrorResult, PaginatedList } from '@haus-storefront-react/shared-types';
2
2
  import { VendurePluginConfig } from '../plugin-config';
3
3
  import { BadgeFeatures, BadgePluginRequests, BadgePluginSettings } from './vendure-badge-plugin.types';
4
4
  declare module '@haus-storefront-react/shared-types' {
@@ -15,6 +15,14 @@ declare module '@haus-storefront-react/shared-types' {
15
15
  showBadges: BadgeFeatures['showBadges'];
16
16
  }
17
17
  }
18
+ declare module '../../../../../providers/src/vendure/index.ts' {
19
+ interface VendureSDK {
20
+ /** Added by VendureBadgePlugin when enabled */
21
+ badges: (options: {
22
+ collectionId: string;
23
+ }) => Promise<PaginatedList<Badge> | ErrorResult>;
24
+ }
25
+ }
18
26
  export declare const VendureBadgePlugin: VendurePluginConfig<BadgeFeatures, BadgePluginRequests, BadgePluginSettings, import('../../../../../providers/src/vendure/index.ts').VendureSDK>;
19
27
  export type Badge = {
20
28
  id: string;
@@ -1,6 +1,5 @@
1
1
  import { Badge, ErrorResult, Maybe, PaginatedList, Product, ProductVariant, SearchResult } from '@haus-storefront-react/shared-types';
2
2
  export interface BadgePluginRequests {
3
- [key: string]: (...args: unknown[]) => unknown;
4
3
  getBadges: () => Promise<PaginatedList<Badge> | ErrorResult>;
5
4
  }
6
5
  export interface BadgeFeatures {
@@ -0,0 +1,11 @@
1
+ import { VendurePluginConfig } from '../plugin-config';
2
+ import { ProductVariantBySkuResult, ProductsBySkuPluginRequests } from './vendure-products-by-sku-plugin.types';
3
+ declare module '@haus-storefront-react/core' {
4
+ interface VendureSDK {
5
+ /** Added by VendureProductsBySkuPlugin when enabled */
6
+ productVariantsBySkus?: (skus: string[]) => Promise<ProductVariantBySkuResult>;
7
+ }
8
+ }
9
+ export declare const VendureProductsBySkuPlugin: VendurePluginConfig<Record<string, never>, ProductsBySkuPluginRequests, {
10
+ [x: string]: any;
11
+ }, import('../../../../../providers/src/vendure/index.ts').VendureSDK>;
@@ -0,0 +1,13 @@
1
+ import { ErrorResult } from '@haus-storefront-react/shared-types';
2
+ interface ProductVariantBySku {
3
+ sku: string;
4
+ variantId: string | null;
5
+ }
6
+ export interface ProductVariantBySkuResult {
7
+ variantIdsBySku: Array<ProductVariantBySku>;
8
+ errorResults: Array<ErrorResult>;
9
+ }
10
+ export interface ProductsBySkuPluginRequests {
11
+ productVariantsBySkus: (skus: string[]) => Promise<ProductVariantBySkuResult | ErrorResult>;
12
+ }
13
+ export {};
@@ -0,0 +1,39 @@
1
+ import { Product } from '@haus-storefront-react/shared-types';
2
+ import { VendurePluginConfig } from '../plugin-config';
3
+ export declare const VendureRelatedProductsPlugin: VendurePluginConfig<Partial<{
4
+ showBadges: (props: {
5
+ product?: Product | import('@haus-storefront-react/shared-types').SearchResult;
6
+ variant?: import('@haus-storefront-react/shared-types').ProductVariant;
7
+ parentComponent?: keyof import('./vendure-badge-plugin.types').BadgePluginSettings["availablePositions"];
8
+ badges: import('@haus-storefront-react/shared-types').Maybe<import('@haus-storefront-react/shared-types').Badge[]>;
9
+ }) => {
10
+ badges: import('@haus-storefront-react/shared-types').Badge[];
11
+ availablePositions?: string[];
12
+ };
13
+ showCampaignPrices: boolean;
14
+ ordinaryPrice: (props: {
15
+ product?: Product;
16
+ searchResult?: import('@haus-storefront-react/shared-types').SearchResult;
17
+ variant?: import('@haus-storefront-react/shared-types').ProductVariant;
18
+ orderLine?: import('@haus-storefront-react/shared-types').OrderLine;
19
+ identifier?: string;
20
+ }) => import('@haus-storefront-react/shared-types').Price;
21
+ changeQuantityByPackageSize: (props: {
22
+ product?: Product | import('@haus-storefront-react/shared-types').SearchResult;
23
+ variant?: import('@haus-storefront-react/shared-types').ProductVariant;
24
+ identifier: string;
25
+ }) => boolean;
26
+ showPackageSize: (props: {
27
+ product?: Product | import('@haus-storefront-react/shared-types').SearchResult;
28
+ variant?: import('@haus-storefront-react/shared-types').ProductVariant;
29
+ identifier: string;
30
+ }) => boolean;
31
+ showCostPerPackage: (props: {
32
+ product?: Product | import('@haus-storefront-react/shared-types').SearchResult;
33
+ variant?: import('@haus-storefront-react/shared-types').ProductVariant;
34
+ identifier: string;
35
+ }) => boolean;
36
+ sortByPopularity: boolean;
37
+ }>, Record<string, (...args: any[]) => any>, {
38
+ [x: string]: any;
39
+ }, import('../../../../../providers/src/vendure/index.ts').VendureSDK>;
@@ -0,0 +1,16 @@
1
+ import { ErrorResult, Product } from '@haus-storefront-react/shared-types';
2
+ declare module '@haus-storefront-react/shared-types' {
3
+ interface Product {
4
+ relatedProductIds?: string[];
5
+ }
6
+ }
7
+ declare module '../../../../../providers/src/vendure/index.ts' {
8
+ interface VendureSDK {
9
+ relatedProducts: (input: RelatedProductsInput) => Promise<Product[] | ErrorResult>;
10
+ }
11
+ }
12
+ export interface RelatedProductsInput {
13
+ id: string;
14
+ take?: number;
15
+ facetIds?: string[];
16
+ }
@@ -0,0 +1,3 @@
1
+ export * from '../configs/vendure-products-by-sku-plugin';
2
+ export * from '../configs/vendure-products-by-sku-plugin.types';
3
+ export { quickOrderVariantSkuValidationStrategy } from '../strategies/quick-order-variant-sku-validation-strategy';
@@ -0,0 +1,3 @@
1
+ export * from '../configs/vendure-related-products-plugin';
2
+ export * from '../configs/vendure-related-products-plugin.types';
3
+ export * from '../hooks/use-related-products';
@@ -0,0 +1,2 @@
1
+ import { RelatedProductsInput } from '../configs/vendure-related-products-plugin.types';
2
+ export declare const useRelatedProducts: (input: RelatedProductsInput) => import('@tanstack/react-query').UseQueryResult<import('@haus-storefront-react/shared-types').ErrorResult | import('@haus-storefront-react/shared-types').Product[], Error>;
@@ -11,7 +11,7 @@ export type VendurePluginConfigInput<Features, R, S, T extends IGraphQLSDK = IGr
11
11
  settings?: S;
12
12
  onSdkReady?: (sdk: T) => void | Promise<void>;
13
13
  };
14
- export declare class VendurePluginConfig<Features extends PluginFeatures = PluginFeatures, R extends Record<string, (...args: any[]) => any> = Record<string, (...args: any[]) => any>, S extends PluginSettings = PluginSettings, T extends VendureSDK = VendureSDK> implements IVendurePluginConfig<Features, R, S, T> {
14
+ export declare class VendurePluginConfig<Features extends PluginFeatures = PluginFeatures, R extends object = Record<string, (...args: any[]) => any>, S extends PluginSettings = PluginSettings, T extends VendureSDK = VendureSDK> implements IVendurePluginConfig<Features, R, S, T> {
15
15
  sdk: T;
16
16
  name: IVendurePluginConfig<Features, R, S, T>['name'];
17
17
  enabled: boolean;
@@ -0,0 +1,6 @@
1
+ import { QuickOrderVariantValidationStrategy } from '@haus-storefront-react/strategies';
2
+ /**
3
+ * Creates a validation strategy that resolves SKUs to variant IDs using productVariantsBySkus.
4
+ * Use with QuickOrder.Root validationStrategy prop when VendureProductsBySkuPlugin is enabled.
5
+ */
6
+ export declare function quickOrderVariantSkuValidationStrategy(): QuickOrderVariantValidationStrategy;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@haus-storefront-react/vendure-plugin-configs",
3
- "version": "1.0.4-next.6",
3
+ "version": "1.0.4-next.8",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {
@@ -45,6 +45,18 @@
45
45
  "require": "./product-popularity.js",
46
46
  "default": "./product-popularity"
47
47
  },
48
+ "./related-products": {
49
+ "types": "./lib/exports/related-products.d.ts",
50
+ "import": "./related-products.mjs",
51
+ "require": "./related-products.js",
52
+ "default": "./related-products"
53
+ },
54
+ "./products-by-sku": {
55
+ "types": "./lib/exports/products-by-sku.d.ts",
56
+ "import": "./products-by-sku.mjs",
57
+ "require": "./products-by-sku.js",
58
+ "default": "./products-by-sku"
59
+ },
48
60
  "./product-variant-specifications": {
49
61
  "types": "./lib/exports/product-variant-specifications.d.ts",
50
62
  "import": "./product-variant-specifications.mjs",
@@ -53,10 +65,12 @@
53
65
  }
54
66
  },
55
67
  "dependencies": {
56
- "@haus-storefront-react/common-utils": "1.0.4-next.6",
57
- "@haus-storefront-react/core": "1.0.4-next.6",
58
- "@haus-storefront-react/providers": "1.0.4-next.6",
59
- "@haus-storefront-react/shared-types": "1.0.4-next.6"
68
+ "@haus-storefront-react/common-utils": "1.0.4-next.8",
69
+ "@haus-storefront-react/core": "1.0.4-next.8",
70
+ "@haus-storefront-react/providers": "1.0.4-next.8",
71
+ "@haus-storefront-react/quick-order": "1.0.0-next.2",
72
+ "@haus-storefront-react/shared-types": "1.0.4-next.8",
73
+ "@haus-storefront-react/strategies": "1.0.4-next.8"
60
74
  },
61
75
  "publishConfig": {
62
76
  "access": "restricted"
package/packagesize.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index-CgxqXyHf.js"),e=new a.VendurePluginConfig({name:"packageSize",enableFeatures:{},queryUpdates:{}});e.setQueryUpdates({activeOrder:{fields:[{lines:[{productVariant:["packageSize"]}]}]},orderByCode:{fields:[{lines:[{productVariant:["packageSize"]}]}]},product:{fields:[{variants:["packageSize"]}]},briefProducts:{fields:[{items:[{variants:["packageSize"]}]}]},adjustOrderLine:{fields:[{fields:[{lines:[{productVariant:["packageSize"]}]}]}]},addItemToOrder:{fields:[{fields:[{lines:[{productVariant:["packageSize"]}]}]}]}});exports.VendurePackageSizePlugin=e;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=new(require(`./plugin-config-DrQQb9Ry.js`)).t({name:`packageSize`,enableFeatures:{},queryUpdates:{}});e.setQueryUpdates({activeOrder:{fields:[{lines:[{productVariant:[`packageSize`]}]}]},orderByCode:{fields:[{lines:[{productVariant:[`packageSize`]}]}]},product:{fields:[{variants:[`packageSize`]}]},briefProducts:{fields:[{items:[{variants:[`packageSize`]}]}]},adjustOrderLine:{fields:[{fields:[{lines:[{productVariant:[`packageSize`]}]}]}]},addItemToOrder:{fields:[{fields:[{lines:[{productVariant:[`packageSize`]}]}]}]}}),exports.VendurePackageSizePlugin=e;
package/packagesize.mjs CHANGED
@@ -1,61 +1,17 @@
1
- import { V as e } from "./index-BRlTlK6a.mjs";
2
- const a = new e({
3
- name: "packageSize",
4
- enableFeatures: {},
5
- queryUpdates: {}
1
+ import { t as e } from "./plugin-config-DywohMgp.mjs";
2
+ //#region src/lib/configs/vendure-packagesize-plugin.ts
3
+ var t = new e({
4
+ name: "packageSize",
5
+ enableFeatures: {},
6
+ queryUpdates: {}
6
7
  });
7
- a.setQueryUpdates({
8
- activeOrder: {
9
- fields: [{
10
- lines: [{
11
- productVariant: ["packageSize"]
12
- // TODO: add packageSizeUnit
13
- }]
14
- }]
15
- },
16
- orderByCode: {
17
- fields: [{
18
- lines: [{
19
- productVariant: ["packageSize"]
20
- // TODO: add packageSizeUnit
21
- }]
22
- }]
23
- },
24
- product: {
25
- fields: [{
26
- variants: ["packageSize"]
27
- // TODO: add packageSizeUnit
28
- }]
29
- },
30
- briefProducts: {
31
- fields: [{
32
- items: [{
33
- variants: ["packageSize"]
34
- // TODO: add packageSizeUnit
35
- }]
36
- }]
37
- },
38
- adjustOrderLine: {
39
- fields: [{
40
- fields: [{
41
- lines: [{
42
- productVariant: ["packageSize"]
43
- // TODO: add packageSizeUnit
44
- }]
45
- }]
46
- }]
47
- },
48
- addItemToOrder: {
49
- fields: [{
50
- fields: [{
51
- lines: [{
52
- productVariant: ["packageSize"]
53
- // TODO: add packageSizeUnit
54
- }]
55
- }]
56
- }]
57
- }
8
+ t.setQueryUpdates({
9
+ activeOrder: { fields: [{ lines: [{ productVariant: ["packageSize"] }] }] },
10
+ orderByCode: { fields: [{ lines: [{ productVariant: ["packageSize"] }] }] },
11
+ product: { fields: [{ variants: ["packageSize"] }] },
12
+ briefProducts: { fields: [{ items: [{ variants: ["packageSize"] }] }] },
13
+ adjustOrderLine: { fields: [{ fields: [{ lines: [{ productVariant: ["packageSize"] }] }] }] },
14
+ addItemToOrder: { fields: [{ fields: [{ lines: [{ productVariant: ["packageSize"] }] }] }] }
58
15
  });
59
- export {
60
- a as VendurePackageSizePlugin
61
- };
16
+ //#endregion
17
+ export { t as VendurePackageSizePlugin };
@@ -0,0 +1 @@
1
+ var e=typeof global==`object`&&global&&global.Object===Object&&global,t=typeof self==`object`&&self&&self.Object===Object&&self,n=e||t||Function(`return this`)(),r=n.Symbol,i=Object.prototype,a=i.hasOwnProperty,o=i.toString,s=r?r.toStringTag:void 0;function c(e){var t=a.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch{}var i=o.call(e);return r&&(t?e[s]=n:delete e[s]),i}var l=Object.prototype.toString;function u(e){return l.call(e)}var d=`[object Null]`,ee=`[object Undefined]`,f=r?r.toStringTag:void 0;function p(e){return e==null?e===void 0?ee:d:f&&f in Object(e)?c(e):u(e)}function m(e){return typeof e==`object`&&!!e}var te=`[object Symbol]`;function ne(e){return typeof e==`symbol`||m(e)&&p(e)==te}function re(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var h=Array.isArray,ie=1/0,ae=r?r.prototype:void 0,oe=ae?ae.toString:void 0;function se(e){if(typeof e==`string`)return e;if(h(e))return re(e,se)+``;if(ne(e))return oe?oe.call(e):``;var t=e+``;return t==`0`&&1/e==-ie?`-0`:t}function g(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}function ce(e){return e}var le=`[object AsyncFunction]`,ue=`[object Function]`,de=`[object GeneratorFunction]`,fe=`[object Proxy]`;function pe(e){if(!g(e))return!1;var t=p(e);return t==ue||t==de||t==le||t==fe}var _=n[`__core-js_shared__`],me=function(){var e=/[^.]+$/.exec(_&&_.keys&&_.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}();function he(e){return!!me&&me in e}var ge=Function.prototype.toString;function v(e){if(e!=null){try{return ge.call(e)}catch{}try{return e+``}catch{}}return``}var _e=/[\\^$.*+?()[\]{}|]/g,ve=/^\[object .+?Constructor\]$/,ye=Function.prototype,be=Object.prototype,xe=ye.toString,Se=be.hasOwnProperty,Ce=RegExp(`^`+xe.call(Se).replace(_e,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`);function we(e){return!g(e)||he(e)?!1:(pe(e)?Ce:ve).test(v(e))}function Te(e,t){return e?.[t]}function y(e,t){var n=Te(e,t);return we(n)?n:void 0}var Ee=y(n,`WeakMap`),De=Object.create,Oe=function(){function e(){}return function(t){if(!g(t))return{};if(De)return De(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function ke(e,t){var n=-1,r=e.length;for(t||=Array(r);++n<r;)t[n]=e[n];return t}var Ae=function(){try{var e=y(Object,`defineProperty`);return e({},``,{}),e}catch{}}();function je(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var Me=9007199254740991,Ne=/^(?:0|[1-9]\d*)$/;function b(e,t){var n=typeof e;return t??=Me,!!t&&(n==`number`||n!=`symbol`&&Ne.test(e))&&e>-1&&e%1==0&&e<t}function Pe(e,t,n){t==`__proto__`&&Ae?Ae(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function x(e,t){return e===t||e!==e&&t!==t}var Fe=Object.prototype.hasOwnProperty;function S(e,t,n){var r=e[t];(!(Fe.call(e,t)&&x(r,n))||n===void 0&&!(t in e))&&Pe(e,t,n)}function C(e,t,n,r){var i=!n;n||={};for(var a=-1,o=t.length;++a<o;){var s=t[a],c=r?r(n[s],e[s],s,n,e):void 0;c===void 0&&(c=e[s]),i?Pe(n,s,c):S(n,s,c)}return n}var Ie=9007199254740991;function w(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=Ie}function T(e){return e!=null&&w(e.length)&&!pe(e)}var Le=Object.prototype;function E(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||Le)}function Re(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var ze=`[object Arguments]`;function Be(e){return m(e)&&p(e)==ze}var Ve=Object.prototype,He=Ve.hasOwnProperty,Ue=Ve.propertyIsEnumerable,We=Be(function(){return arguments}())?Be:function(e){return m(e)&&He.call(e,`callee`)&&!Ue.call(e,`callee`)};function Ge(){return!1}var Ke=typeof exports==`object`&&exports&&!exports.nodeType&&exports,qe=Ke&&typeof module==`object`&&module&&!module.nodeType&&module,Je=qe&&qe.exports===Ke?n.Buffer:void 0,D=(Je?Je.isBuffer:void 0)||Ge,Ye=`[object Arguments]`,Xe=`[object Array]`,Ze=`[object Boolean]`,Qe=`[object Date]`,$e=`[object Error]`,et=`[object Function]`,tt=`[object Map]`,nt=`[object Number]`,rt=`[object Object]`,it=`[object RegExp]`,at=`[object Set]`,ot=`[object String]`,st=`[object WeakMap]`,ct=`[object ArrayBuffer]`,lt=`[object DataView]`,ut=`[object Float32Array]`,dt=`[object Float64Array]`,ft=`[object Int8Array]`,pt=`[object Int16Array]`,mt=`[object Int32Array]`,ht=`[object Uint8Array]`,gt=`[object Uint8ClampedArray]`,_t=`[object Uint16Array]`,vt=`[object Uint32Array]`,O={};O[ut]=O[dt]=O[ft]=O[pt]=O[mt]=O[ht]=O[gt]=O[_t]=O[vt]=!0,O[Ye]=O[Xe]=O[ct]=O[Ze]=O[lt]=O[Qe]=O[$e]=O[et]=O[tt]=O[nt]=O[rt]=O[it]=O[at]=O[ot]=O[st]=!1;function yt(e){return m(e)&&w(e.length)&&!!O[p(e)]}function k(e){return function(t){return e(t)}}var bt=typeof exports==`object`&&exports&&!exports.nodeType&&exports,A=bt&&typeof module==`object`&&module&&!module.nodeType&&module,j=A&&A.exports===bt&&e.process,M=function(){try{return A&&A.require&&A.require(`util`).types||j&&j.binding&&j.binding(`util`)}catch{}}(),xt=M&&M.isTypedArray,St=xt?k(xt):yt,Ct=Object.prototype.hasOwnProperty;function wt(e,t){var n=h(e),r=!n&&We(e),i=!n&&!r&&D(e),a=!n&&!r&&!i&&St(e),o=n||r||i||a,s=o?Re(e.length,String):[],c=s.length;for(var l in e)(t||Ct.call(e,l))&&!(o&&(l==`length`||i&&(l==`offset`||l==`parent`)||a&&(l==`buffer`||l==`byteLength`||l==`byteOffset`)||b(l,c)))&&s.push(l);return s}function Tt(e,t){return function(n){return e(t(n))}}var Et=Tt(Object.keys,Object),Dt=Object.prototype.hasOwnProperty;function Ot(e){if(!E(e))return Et(e);var t=[];for(var n in Object(e))Dt.call(e,n)&&n!=`constructor`&&t.push(n);return t}function N(e){return T(e)?wt(e):Ot(e)}function kt(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var At=Object.prototype.hasOwnProperty;function jt(e){if(!g(e))return kt(e);var t=E(e),n=[];for(var r in e)r==`constructor`&&(t||!At.call(e,r))||n.push(r);return n}function P(e){return T(e)?wt(e,!0):jt(e)}var Mt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Nt=/^\w*$/;function Pt(e,t){if(h(e))return!1;var n=typeof e;return n==`number`||n==`symbol`||n==`boolean`||e==null||ne(e)?!0:Nt.test(e)||!Mt.test(e)||t!=null&&e in Object(t)}var F=y(Object,`create`);function Ft(){this.__data__=F?F(null):{},this.size=0}function It(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Lt=`__lodash_hash_undefined__`,Rt=Object.prototype.hasOwnProperty;function zt(e){var t=this.__data__;if(F){var n=t[e];return n===Lt?void 0:n}return Rt.call(t,e)?t[e]:void 0}var Bt=Object.prototype.hasOwnProperty;function Vt(e){var t=this.__data__;return F?t[e]!==void 0:Bt.call(t,e)}var Ht=`__lodash_hash_undefined__`;function Ut(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=F&&t===void 0?Ht:t,this}function I(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}I.prototype.clear=Ft,I.prototype.delete=It,I.prototype.get=zt,I.prototype.has=Vt,I.prototype.set=Ut;function Wt(){this.__data__=[],this.size=0}function L(e,t){for(var n=e.length;n--;)if(x(e[n][0],t))return n;return-1}var Gt=Array.prototype.splice;function Kt(e){var t=this.__data__,n=L(t,e);return n<0?!1:(n==t.length-1?t.pop():Gt.call(t,n,1),--this.size,!0)}function qt(e){var t=this.__data__,n=L(t,e);return n<0?void 0:t[n][1]}function Jt(e){return L(this.__data__,e)>-1}function Yt(e,t){var n=this.__data__,r=L(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function R(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}R.prototype.clear=Wt,R.prototype.delete=Kt,R.prototype.get=qt,R.prototype.has=Jt,R.prototype.set=Yt;var z=y(n,`Map`);function Xt(){this.size=0,this.__data__={hash:new I,map:new(z||R),string:new I}}function Zt(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}function B(e,t){var n=e.__data__;return Zt(t)?n[typeof t==`string`?`string`:`hash`]:n.map}function Qt(e){var t=B(this,e).delete(e);return this.size-=t?1:0,t}function $t(e){return B(this,e).get(e)}function en(e){return B(this,e).has(e)}function tn(e,t){var n=B(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function V(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}V.prototype.clear=Xt,V.prototype.delete=Qt,V.prototype.get=$t,V.prototype.has=en,V.prototype.set=tn;var nn=`Expected a function`;function H(e,t){if(typeof e!=`function`||t!=null&&typeof t!=`function`)throw TypeError(nn);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(H.Cache||V),n}H.Cache=V;var rn=500;function an(e){var t=H(e,function(e){return n.size===rn&&n.clear(),e}),n=t.cache;return t}var on=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,sn=/\\(\\)?/g,cn=an(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(on,function(e,n,r,i){t.push(r?i.replace(sn,`$1`):n||e)}),t});function ln(e){return e==null?``:se(e)}function U(e,t){return h(e)?e:Pt(e,t)?[e]:cn(ln(e))}var un=1/0;function W(e){if(typeof e==`string`||ne(e))return e;var t=e+``;return t==`0`&&1/e==-un?`-0`:t}function dn(e,t){t=U(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[W(t[n++])];return n&&n==r?e:void 0}function fn(e,t,n){var r=e==null?void 0:dn(e,t);return r===void 0?n:r}function pn(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var mn=Tt(Object.getPrototypeOf,Object);function hn(){this.__data__=new R,this.size=0}function gn(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function _n(e){return this.__data__.get(e)}function vn(e){return this.__data__.has(e)}var yn=200;function bn(e,t){var n=this.__data__;if(n instanceof R){var r=n.__data__;if(!z||r.length<yn-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new V(r)}return n.set(e,t),this.size=n.size,this}function G(e){this.size=(this.__data__=new R(e)).size}G.prototype.clear=hn,G.prototype.delete=gn,G.prototype.get=_n,G.prototype.has=vn,G.prototype.set=bn;function xn(e,t){return e&&C(t,N(t),e)}function Sn(e,t){return e&&C(t,P(t),e)}var Cn=typeof exports==`object`&&exports&&!exports.nodeType&&exports,wn=Cn&&typeof module==`object`&&module&&!module.nodeType&&module,Tn=wn&&wn.exports===Cn?n.Buffer:void 0,En=Tn?Tn.allocUnsafe:void 0;function Dn(e,t){if(t)return e.slice();var n=e.length,r=En?En(n):new e.constructor(n);return e.copy(r),r}function On(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}function kn(){return[]}var An=Object.prototype.propertyIsEnumerable,jn=Object.getOwnPropertySymbols,K=jn?function(e){return e==null?[]:(e=Object(e),On(jn(e),function(t){return An.call(e,t)}))}:kn;function Mn(e,t){return C(e,K(e),t)}var Nn=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)pn(t,K(e)),e=mn(e);return t}:kn;function Pn(e,t){return C(e,Nn(e),t)}function Fn(e,t,n){var r=t(e);return h(e)?r:pn(r,n(e))}function In(e){return Fn(e,N,K)}function Ln(e){return Fn(e,P,Nn)}var q=y(n,`DataView`),J=y(n,`Promise`),Rn=y(n,`Set`),zn=`[object Map]`,Bn=`[object Object]`,Vn=`[object Promise]`,Hn=`[object Set]`,Un=`[object WeakMap]`,Wn=`[object DataView]`,Gn=v(q),Kn=v(z),qn=v(J),Jn=v(Rn),Yn=v(Ee),Y=p;(q&&Y(new q(new ArrayBuffer(1)))!=Wn||z&&Y(new z)!=zn||J&&Y(J.resolve())!=Vn||Rn&&Y(new Rn)!=Hn||Ee&&Y(new Ee)!=Un)&&(Y=function(e){var t=p(e),n=t==Bn?e.constructor:void 0,r=n?v(n):``;if(r)switch(r){case Gn:return Wn;case Kn:return zn;case qn:return Vn;case Jn:return Hn;case Yn:return Un}return t});var X=Y,Xn=Object.prototype.hasOwnProperty;function Zn(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]==`string`&&Xn.call(e,`index`)&&(n.index=e.index,n.input=e.input),n}var Qn=n.Uint8Array;function $n(e){var t=new e.constructor(e.byteLength);return new Qn(t).set(new Qn(e)),t}function er(e,t){var n=t?$n(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var tr=/\w*$/;function nr(e){var t=new e.constructor(e.source,tr.exec(e));return t.lastIndex=e.lastIndex,t}var rr=r?r.prototype:void 0,ir=rr?rr.valueOf:void 0;function ar(e){return ir?Object(ir.call(e)):{}}function or(e,t){var n=t?$n(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var sr=`[object Boolean]`,cr=`[object Date]`,lr=`[object Map]`,ur=`[object Number]`,dr=`[object RegExp]`,fr=`[object Set]`,pr=`[object String]`,mr=`[object Symbol]`,hr=`[object ArrayBuffer]`,gr=`[object DataView]`,_r=`[object Float32Array]`,vr=`[object Float64Array]`,yr=`[object Int8Array]`,br=`[object Int16Array]`,xr=`[object Int32Array]`,Sr=`[object Uint8Array]`,Cr=`[object Uint8ClampedArray]`,wr=`[object Uint16Array]`,Tr=`[object Uint32Array]`;function Er(e,t,n){var r=e.constructor;switch(t){case hr:return $n(e);case sr:case cr:return new r(+e);case gr:return er(e,n);case _r:case vr:case yr:case br:case xr:case Sr:case Cr:case wr:case Tr:return or(e,n);case lr:return new r;case ur:case pr:return new r(e);case dr:return nr(e);case fr:return new r;case mr:return ar(e)}}function Dr(e){return typeof e.constructor==`function`&&!E(e)?Oe(mn(e)):{}}var Or=`[object Map]`;function kr(e){return m(e)&&X(e)==Or}var Ar=M&&M.isMap,jr=Ar?k(Ar):kr,Mr=`[object Set]`;function Nr(e){return m(e)&&X(e)==Mr}var Pr=M&&M.isSet,Fr=Pr?k(Pr):Nr,Ir=1,Lr=2,Rr=4,zr=`[object Arguments]`,Br=`[object Array]`,Vr=`[object Boolean]`,Hr=`[object Date]`,Ur=`[object Error]`,Wr=`[object Function]`,Gr=`[object GeneratorFunction]`,Kr=`[object Map]`,qr=`[object Number]`,Jr=`[object Object]`,Yr=`[object RegExp]`,Xr=`[object Set]`,Zr=`[object String]`,Qr=`[object Symbol]`,$r=`[object WeakMap]`,ei=`[object ArrayBuffer]`,ti=`[object DataView]`,ni=`[object Float32Array]`,ri=`[object Float64Array]`,ii=`[object Int8Array]`,ai=`[object Int16Array]`,oi=`[object Int32Array]`,si=`[object Uint8Array]`,ci=`[object Uint8ClampedArray]`,li=`[object Uint16Array]`,ui=`[object Uint32Array]`,Z={};Z[zr]=Z[Br]=Z[ei]=Z[ti]=Z[Vr]=Z[Hr]=Z[ni]=Z[ri]=Z[ii]=Z[ai]=Z[oi]=Z[Kr]=Z[qr]=Z[Jr]=Z[Yr]=Z[Xr]=Z[Zr]=Z[Qr]=Z[si]=Z[ci]=Z[li]=Z[ui]=!0,Z[Ur]=Z[Wr]=Z[$r]=!1;function Q(e,t,n,r,i,a){var o,s=t&Ir,c=t&Lr,l=t&Rr;if(n&&(o=i?n(e,r,i,a):n(e)),o!==void 0)return o;if(!g(e))return e;var u=h(e);if(u){if(o=Zn(e),!s)return ke(e,o)}else{var d=X(e),ee=d==Wr||d==Gr;if(D(e))return Dn(e,s);if(d==Jr||d==zr||ee&&!i){if(o=c||ee?{}:Dr(e),!s)return c?Pn(e,Sn(o,e)):Mn(e,xn(o,e))}else{if(!Z[d])return i?e:{};o=Er(e,d,s)}}a||=new G;var f=a.get(e);if(f)return f;a.set(e,o),Fr(e)?e.forEach(function(r){o.add(Q(r,t,n,r,e,a))}):jr(e)&&e.forEach(function(r,i){o.set(i,Q(r,t,n,i,e,a))});var p=u?void 0:(l?c?Ln:In:c?P:N)(e);return je(p||e,function(r,i){p&&(i=r,r=e[i]),S(o,i,Q(r,t,n,i,e,a))}),o}var di=1,fi=4;function pi(e){return Q(e,di|fi)}function mi(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var c=o[e?s:++i];if(n(a[c],c,a)===!1)break}return t}}var hi=mi();function gi(e,t){return e&&hi(e,t,N)}function _i(e,t){return function(n,r){if(n==null)return n;if(!T(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=Object(n);(t?a--:++a<i)&&r(o[a],a,o)!==!1;);return n}}var vi=_i(gi);function yi(e){return typeof e==`function`?e:ce}function bi(e,t){return(h(e)?je:vi)(e,yi(t))}function xi(e,t,n,r){if(!g(e))return e;t=U(t,e);for(var i=-1,a=t.length,o=a-1,s=e;s!=null&&++i<a;){var c=W(t[i]),l=n;if(c===`__proto__`||c===`constructor`||c===`prototype`)return e;if(i!=o){var u=s[c];l=r?r(u,c,s):void 0,l===void 0&&(l=g(u)?u:b(t[i+1])?[]:{})}S(s,c,l),s=s[c]}return e}function $(e,t,n){return e==null?e:xi(e,t,n)}var Si=class{constructor(e){this.sdk={},this.enabled=!0,this.providers=[],this.name=e.name,this.enabled=e.enabled??!0,this.enableFeatures=e.enableFeatures,this.queryUpdates=e.queryUpdates,this.requests=e.requests,this.settings=e.settings,this.providers=e.providers??[],this.onSdkReady=e.onSdkReady}init(e){let t={};return Array.isArray(e.enableFeatures)?bi(e.enableFeatures,e=>{$(t??={},e,!0)}):t=pi(e.enableFeatures),bi(t,(e,t)=>{typeof e==`function`?$(this.enableFeatures??={},t,e):typeof e==`boolean`?(e===!0&&fn(this.enableFeatures,t)===void 0||e===!1)&&$(this.enableFeatures??={},t,e):$(this.enableFeatures??={},t,e)}),this.settings=e.settings||this.settings,this}setSdk(e){if(this.sdk=e,this.onSdkReady)try{let t=this.onSdkReady(e);t&&typeof t.then==`function`&&t.catch(e=>{console.error(`[VendurePluginConfig] onSdkReady error for plugin "${this.name}":`,e)})}catch(e){console.error(`[VendurePluginConfig] onSdkReady error for plugin "${this.name}":`,e)}}getSdk(){return this.sdk}getName(){return this.name}isEnabled(){return this.enabled}setEnabled(e){this.enabled=e}setQueryUpdates(e){this.queryUpdates=e}getQueryUpdates(){return this.queryUpdates}setRequests(e){this.requests=e}getRequests(){return this.requests}setProviders(e){this.providers=e}getProviders(){return this.providers||[]}setSettings(e){this.settings=e}getSettings(){return this.settings}setEnableFeatures(e){this.enableFeatures=e}getEnabled(){return this.enabled}getEnabledFeatures(){return this.enableFeatures||{}}};Object.defineProperty(exports,`C`,{enumerable:!0,get:function(){return h}}),Object.defineProperty(exports,`S`,{enumerable:!0,get:function(){return g}}),Object.defineProperty(exports,`T`,{enumerable:!0,get:function(){return r}}),Object.defineProperty(exports,`_`,{enumerable:!0,get:function(){return We}}),Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return In}}),Object.defineProperty(exports,`b`,{enumerable:!0,get:function(){return b}}),Object.defineProperty(exports,`c`,{enumerable:!0,get:function(){return fn}}),Object.defineProperty(exports,`d`,{enumerable:!0,get:function(){return U}}),Object.defineProperty(exports,`f`,{enumerable:!0,get:function(){return V}}),Object.defineProperty(exports,`g`,{enumerable:!0,get:function(){return D}}),Object.defineProperty(exports,`h`,{enumerable:!0,get:function(){return St}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return X}}),Object.defineProperty(exports,`l`,{enumerable:!0,get:function(){return dn}}),Object.defineProperty(exports,`m`,{enumerable:!0,get:function(){return N}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return vi}}),Object.defineProperty(exports,`o`,{enumerable:!0,get:function(){return On}}),Object.defineProperty(exports,`p`,{enumerable:!0,get:function(){return Pt}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return Qn}}),Object.defineProperty(exports,`s`,{enumerable:!0,get:function(){return G}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return Si}}),Object.defineProperty(exports,`u`,{enumerable:!0,get:function(){return W}}),Object.defineProperty(exports,`v`,{enumerable:!0,get:function(){return w}}),Object.defineProperty(exports,`w`,{enumerable:!0,get:function(){return m}}),Object.defineProperty(exports,`x`,{enumerable:!0,get:function(){return ce}}),Object.defineProperty(exports,`y`,{enumerable:!0,get:function(){return x}});