@nextblock-cms/ecom 0.18.8 → 0.19.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.cjs.js +1 -1
- package/index.es.js +26 -25
- package/lib/CurrencyProvider.cjs.js +1 -1
- package/lib/CurrencyProvider.es.js +41 -45
- package/lib/PaymentReadinessProvider.cjs.js +1 -1
- package/lib/PaymentReadinessProvider.es.js +15 -19
- package/lib/cart-store.cjs.js +1 -1
- package/lib/cart-store.d.ts +4 -0
- package/lib/cart-store.es.js +77 -69
- package/lib/components/AccountNavigationMenu.cjs.js +1 -1
- package/lib/components/AccountNavigationMenu.es.js +44 -62
- package/lib/components/AddToCartButton.cjs.js +1 -1
- package/lib/components/AddToCartButton.es.js +50 -78
- package/lib/components/Cart.cjs.js +1 -1
- package/lib/components/Cart.es.js +154 -381
- package/lib/components/CartDrawer.cjs.js +1 -1
- package/lib/components/CartDrawer.es.js +143 -297
- package/lib/components/CartIcon.cjs.js +1 -1
- package/lib/components/CartIcon.es.js +21 -47
- package/lib/components/Checkout.cjs.js +1 -1
- package/lib/components/Checkout.es.js +814 -1614
- package/lib/components/CouponForm.cjs.js +1 -1
- package/lib/components/CouponForm.es.js +104 -155
- package/lib/components/CurrencySwitcher.cjs.js +1 -1
- package/lib/components/CurrencySwitcher.es.js +14 -33
- package/lib/components/CustomerProfileForm.cjs.js +1 -1
- package/lib/components/CustomerProfileForm.es.js +264 -672
- package/lib/components/FeaturedProduct.cjs.js +1 -1
- package/lib/components/FeaturedProduct.es.js +46 -125
- package/lib/components/FreemiusLicensePanel.cjs.js +1 -1
- package/lib/components/FreemiusLicensePanel.es.js +45 -125
- package/lib/components/InvoiceDocument.cjs.js +1 -1
- package/lib/components/InvoiceDocument.es.js +148 -487
- package/lib/components/InvoiceViewerShell.cjs.js +2 -2
- package/lib/components/InvoiceViewerShell.d.ts +4 -1
- package/lib/components/InvoiceViewerShell.es.js +59 -142
- package/lib/components/ProductCard.cjs.js +1 -1
- package/lib/components/ProductCard.d.ts +3 -1
- package/lib/components/ProductCard.es.js +128 -242
- package/lib/components/ProductDetailsLayout.cjs.js +1 -1
- package/lib/components/ProductDetailsLayout.es.js +311 -652
- package/lib/components/ProductGallery.cjs.js +1 -1
- package/lib/components/ProductGallery.d.ts +2 -0
- package/lib/components/ProductGallery.es.js +37 -66
- package/lib/components/ProductGrid.cjs.js +1 -1
- package/lib/components/ProductGrid.es.js +23 -32
- package/lib/components/ShippingEstimator.cjs.js +1 -1
- package/lib/components/ShippingEstimator.es.js +118 -231
- package/lib/components/SimpleTiptapRenderer.cjs.js +1 -1
- package/lib/components/SimpleTiptapRenderer.es.js +111 -294
- package/lib/components/SubscriptionSelector.cjs.js +1 -1
- package/lib/components/SubscriptionSelector.es.js +120 -181
- package/lib/freemius-trial-provision.cjs.js +1 -0
- package/lib/freemius-trial-provision.d.ts +85 -0
- package/lib/freemius-trial-provision.es.js +136 -0
- package/lib/invoice.cjs.js +1 -1
- package/lib/invoice.d.ts +1 -1
- package/lib/invoice.es.js +6 -5
- package/lib/pages/cms/coupons/CouponEditorForm.cjs.js +1 -1
- package/lib/pages/cms/coupons/CouponEditorForm.es.js +115 -375
- package/lib/pages/cms/coupons/CouponsPage.cjs.js +2 -2
- package/lib/pages/cms/coupons/CouponsPage.es.js +116 -368
- package/lib/pages/cms/coupons/CreateCouponDialog.cjs.js +1 -1
- package/lib/pages/cms/coupons/CreateCouponDialog.es.js +26 -62
- package/lib/pages/cms/coupons/EditCouponPage.cjs.js +1 -1
- package/lib/pages/cms/coupons/EditCouponPage.es.js +35 -71
- package/lib/pages/cms/coupons/ProductScopePicker.cjs.js +1 -1
- package/lib/pages/cms/coupons/ProductScopePicker.es.js +72 -167
- package/lib/pages/cms/orders/ExportReportsDialog.cjs.js +1 -1
- package/lib/pages/cms/orders/ExportReportsDialog.es.js +87 -247
- package/lib/pages/cms/orders/OrderDetailPage.cjs.js +1 -1
- package/lib/pages/cms/orders/OrderDetailPage.es.js +95 -283
- package/lib/pages/cms/orders/OrderPrintButton.cjs.js +1 -1
- package/lib/pages/cms/orders/OrderPrintButton.es.js +9 -21
- package/lib/pages/cms/orders/OrderStatusForm.cjs.js +1 -1
- package/lib/pages/cms/orders/OrderStatusForm.es.js +46 -106
- package/lib/pages/cms/orders/OrdersPage.cjs.js +1 -1
- package/lib/pages/cms/orders/OrdersPage.es.js +78 -257
- package/lib/pages/cms/payments/PaymentsClient.cjs.js +1 -1
- package/lib/pages/cms/payments/PaymentsClient.es.js +192 -580
- package/lib/pages/cms/payments/PaymentsPage.cjs.js +1 -1
- package/lib/pages/cms/payments/PaymentsPage.es.js +14 -22
- package/lib/pages/cms/products/ProductsPage.cjs.js +1 -1
- package/lib/pages/cms/products/ProductsPage.es.js +47 -87
- package/lib/pages/cms/products/_id_/edit/EditProductPage.cjs.js +1 -1
- package/lib/pages/cms/products/_id_/edit/EditProductPage.es.js +97 -177
- package/lib/pages/cms/products/attributes/AttributeManagementPage.cjs.js +1 -1
- package/lib/pages/cms/products/attributes/AttributeManagementPage.es.js +40 -84
- package/lib/pages/cms/products/attributes/components/AttributeManager.cjs.js +1 -1
- package/lib/pages/cms/products/attributes/components/AttributeManager.es.js +192 -455
- package/lib/pages/cms/products/categories/CategoryManagementPage.cjs.js +1 -1
- package/lib/pages/cms/products/categories/CategoryManagementPage.es.js +28 -72
- package/lib/pages/cms/products/categories/components/CategoryManager.cjs.js +1 -1
- package/lib/pages/cms/products/categories/components/CategoryManager.es.js +183 -490
- package/lib/pages/cms/products/components/CopyProductFromLanguage.cjs.js +1 -1
- package/lib/pages/cms/products/components/CopyProductFromLanguage.es.js +69 -177
- package/lib/pages/cms/products/components/CurrencyPriceFields.cjs.js +1 -1
- package/lib/pages/cms/products/components/CurrencyPriceFields.es.js +102 -213
- package/lib/pages/cms/products/components/DeleteProductButton.cjs.js +1 -1
- package/lib/pages/cms/products/components/DeleteProductButton.es.js +25 -45
- package/lib/pages/cms/products/components/FreemiusPricingDashboard.cjs.js +1 -1
- package/lib/pages/cms/products/components/FreemiusPricingDashboard.es.js +58 -202
- package/lib/pages/cms/products/components/ProductCategorySelector.cjs.js +1 -1
- package/lib/pages/cms/products/components/ProductCategorySelector.es.js +89 -235
- package/lib/pages/cms/products/components/ProductForm.cjs.js +1 -1
- package/lib/pages/cms/products/components/ProductForm.es.js +526 -1110
- package/lib/pages/cms/products/components/ProductMediaManager.cjs.js +1 -1
- package/lib/pages/cms/products/components/ProductMediaManager.es.js +63 -154
- package/lib/pages/cms/products/components/ProductsBulkTable.cjs.js +1 -1
- package/lib/pages/cms/products/components/ProductsBulkTable.es.js +213 -544
- package/lib/pages/cms/products/components/SaleScheduleFields.cjs.js +1 -1
- package/lib/pages/cms/products/components/SaleScheduleFields.es.js +91 -207
- package/lib/pages/cms/products/components/SyncFreemiusButton.cjs.js +1 -1
- package/lib/pages/cms/products/components/SyncFreemiusButton.es.js +16 -28
- package/lib/pages/cms/products/components/SyncFreemiusPricingButton.cjs.js +2 -2
- package/lib/pages/cms/products/components/SyncFreemiusPricingButton.es.js +25 -37
- package/lib/pages/cms/products/components/VariationsEditor.cjs.js +1 -1
- package/lib/pages/cms/products/components/VariationsEditor.es.js +261 -492
- package/lib/pages/cms/products/inventory/InventoryPage.cjs.js +1 -1
- package/lib/pages/cms/products/inventory/InventoryPage.es.js +12 -32
- package/lib/pages/cms/products/inventory/InventoryTableClient.cjs.js +2 -2
- package/lib/pages/cms/products/inventory/InventoryTableClient.es.js +145 -365
- package/lib/pages/cms/products/new/NewProductPage.cjs.js +1 -1
- package/lib/pages/cms/products/new/NewProductPage.es.js +30 -42
- package/lib/pages/cms/shipping/ShippingPage.cjs.js +2 -2
- package/lib/pages/cms/shipping/ShippingPage.es.js +155 -507
- package/lib/pages/cms/shipping/components/RateForm.cjs.js +1 -1
- package/lib/pages/cms/shipping/components/RateForm.es.js +334 -717
- package/lib/pages/cms/shipping/components/ZoneForm.cjs.js +1 -1
- package/lib/pages/cms/shipping/components/ZoneForm.es.js +158 -392
- package/lib/pages/cms/taxes/TaxesPage.cjs.js +1 -1
- package/lib/pages/cms/taxes/TaxesPage.es.js +119 -447
- package/lib/pages/cms/taxes/components/TaxRateForm.cjs.js +1 -1
- package/lib/pages/cms/taxes/components/TaxRateForm.es.js +52 -156
- package/lib/product-context.cjs.js +1 -1
- package/lib/product-context.es.js +10 -14
- package/lib/trials.cjs.js +1 -1
- package/lib/trials.d.ts +10 -3
- package/lib/trials.es.js +28 -21
- package/lib/types.d.ts +2 -0
- package/lib/use-price-formatter.cjs.js +1 -0
- package/lib/use-price-formatter.d.ts +11 -0
- package/lib/use-price-formatter.es.js +13 -0
- package/lib/variation-utils.cjs.js +1 -1
- package/lib/variation-utils.d.ts +10 -0
- package/lib/variation-utils.es.js +139 -123
- package/package.json +4 -4
- package/server.cjs.js +1 -1
- package/server.d.ts +1 -0
- package/server.es.js +180 -172
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react/jsx-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react/jsx-runtime"),n=require("./actions.cjs.js"),s=require("./queries.cjs.js"),c=require("../../../payment-config.cjs.js"),l=require("./PaymentsClient.cjs.js");async function y(){const[i,e,a]=await Promise.all([s.getEnabledPaymentProviders(),s.getStoreConfigStatus(),c.getPaymentCredentialsView()]);async function r(t){"use server";const o={stripe:t.get("stripe_enabled")==="true"&&e.stripe.hasKeys,freemius:t.get("freemius_enabled")==="true"&&e.freemius.hasKeys};await n.updatePaymentSettings(o)}return u.jsx(l.PaymentsClient,{initialEnabledProviders:i,configStatus:e,credentials:a,saveAction:r,saveCredentialsAction:n.savePaymentProviderCredentials})}exports.PaymentsPage=y;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { savePaymentProviderCredentials as
|
|
3
|
-
import { getEnabledPaymentProviders as
|
|
4
|
-
import { getPaymentCredentialsView as
|
|
5
|
-
import { PaymentsClient as
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { savePaymentProviderCredentials as o, updatePaymentSettings as m } from "./actions.es.js";
|
|
3
|
+
import { getEnabledPaymentProviders as d, getStoreConfigStatus as l } from "./queries.es.js";
|
|
4
|
+
import { getPaymentCredentialsView as u } from "../../../payment-config.es.js";
|
|
5
|
+
import { PaymentsClient as P } from "./PaymentsClient.es.js";
|
|
6
6
|
async function v() {
|
|
7
|
-
const [
|
|
7
|
+
const [i, e, s] = await Promise.all([
|
|
8
|
+
d(),
|
|
8
9
|
l(),
|
|
9
|
-
|
|
10
|
-
d()
|
|
10
|
+
u()
|
|
11
11
|
]);
|
|
12
12
|
async function n(t) {
|
|
13
13
|
"use server";
|
|
@@ -15,25 +15,17 @@ async function v() {
|
|
|
15
15
|
stripe: t.get("stripe_enabled") === "true" && e.stripe.hasKeys,
|
|
16
16
|
freemius: t.get("freemius_enabled") === "true" && e.freemius.hasKeys
|
|
17
17
|
};
|
|
18
|
-
await
|
|
18
|
+
await m(r);
|
|
19
19
|
}
|
|
20
20
|
return /* @__PURE__ */ a(
|
|
21
|
-
|
|
21
|
+
P,
|
|
22
22
|
{
|
|
23
|
-
initialEnabledProviders:
|
|
23
|
+
initialEnabledProviders: i,
|
|
24
24
|
configStatus: e,
|
|
25
|
-
credentials:
|
|
25
|
+
credentials: s,
|
|
26
26
|
saveAction: n,
|
|
27
|
-
saveCredentialsAction:
|
|
28
|
-
}
|
|
29
|
-
void 0,
|
|
30
|
-
!1,
|
|
31
|
-
{
|
|
32
|
-
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/libs/ecommerce/src/lib/pages/cms/payments/PaymentsPage.tsx",
|
|
33
|
-
lineNumber: 31,
|
|
34
|
-
columnNumber: 5
|
|
35
|
-
},
|
|
36
|
-
this
|
|
27
|
+
saveCredentialsAction: o
|
|
28
|
+
}
|
|
37
29
|
);
|
|
38
30
|
}
|
|
39
31
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),_=require("@nextblock-cms/ui"),h=require("next/link"),y=require("./actions.cjs.js"),q=require("./components/ProductsBulkTable.cjs.js"),w=require("./components/SyncFreemiusButton.cjs.js"),o=require("./server-actions.cjs.js"),u=require("@nextblock-cms/db/server"),l=require("@nextblock-cms/utils/seo");async function A({searchParams:r,languageFilterNode:p,transferControlsNode:g}){const n=u.getServiceRoleSupabaseClient(),[m,{data:i}]=await Promise.all([u.getActiveLanguagesServerSide(),n.from("currencies").select("code, is_default").eq("is_active",!0).order("is_default",{ascending:!1}).order("code",{ascending:!0})]),b=r?.lang?parseInt(r.lang,10):void 0,{data:f}=await y.getProducts({languageId:b}),d=f||[],a=d.map(e=>e.id),{data:P}=a.length>0?await n.from("blocks").select("id, product_id, block_type, content, order").in("product_id",a).order("order",{ascending:!0}):{data:[]},c=new Map;for(const e of P||[]){if(!e.product_id)continue;const s=c.get(e.product_id)||[];s.push(e),c.set(e.product_id,s)}const x=d.map(e=>{const s=c.get(e.id)||[],v=l.buildPageSeoDocument(s,{documentTitle:e.title,documentType:"product"}),j=l.auditSeo({document:v,metaTitle:e.meta_title??void 0,metaDescription:e.meta_description??void 0,scope:"page"});return{...e,seo_score:j.score}}),k=Object.fromEntries(m.map(e=>[String(e.id),e.code.toUpperCase()])),S=i?.find(e=>e.is_default)?.code||i?.[0]?.code||"USD";return t.jsxs("div",{className:"p-8 space-y-6",children:[t.jsxs("div",{className:"flex justify-between items-center",children:[t.jsx("h1",{className:"text-3xl font-bold",children:"Products"}),t.jsxs("div",{className:"flex flex-wrap items-center gap-4",children:[t.jsx("div",{className:"h-10 w-[1px] bg-slate-200 dark:bg-slate-800 mx-2 hidden sm:block"}),g,p,t.jsx(w.SyncFreemiusButton,{title:"Sync Full Store"}),t.jsx(h,{href:"/cms/products/new",children:t.jsx(_.Button,{children:"New Product"})})]})]}),t.jsx(q.ProductsBulkTable,{products:x,languageLabels:k,defaultCurrencyCode:S,deleteProductAction:o.deleteProductAction,bulkDeleteProductsAction:o.bulkDeleteProductsAction,bulkDraftProductsAction:o.bulkDraftProductsAction})]})}exports.ProductsPage=A;
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Button as
|
|
3
|
-
import
|
|
4
|
-
import { getProducts as
|
|
5
|
-
import { ProductsBulkTable as
|
|
6
|
-
import { SyncFreemiusButton as
|
|
7
|
-
import { bulkDraftProductsAction as
|
|
8
|
-
import { getServiceRoleSupabaseClient as
|
|
9
|
-
import { buildPageSeoDocument as
|
|
10
|
-
async function
|
|
11
|
-
searchParams:
|
|
12
|
-
languageFilterNode:
|
|
13
|
-
transferControlsNode:
|
|
1
|
+
import { jsxs as r, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { Button as S } from "@nextblock-cms/ui";
|
|
3
|
+
import v from "next/link";
|
|
4
|
+
import { getProducts as w } from "./actions.es.js";
|
|
5
|
+
import { ProductsBulkTable as x } from "./components/ProductsBulkTable.es.js";
|
|
6
|
+
import { SyncFreemiusButton as y } from "./components/SyncFreemiusButton.es.js";
|
|
7
|
+
import { bulkDraftProductsAction as D, bulkDeleteProductsAction as N, deleteProductAction as I } from "./server-actions.es.js";
|
|
8
|
+
import { getServiceRoleSupabaseClient as L, getActiveLanguagesServerSide as j } from "@nextblock-cms/db/server";
|
|
9
|
+
import { buildPageSeoDocument as A, auditSeo as B } from "@nextblock-cms/utils/seo";
|
|
10
|
+
async function W({
|
|
11
|
+
searchParams: s,
|
|
12
|
+
languageFilterNode: l,
|
|
13
|
+
transferControlsNode: u
|
|
14
14
|
}) {
|
|
15
|
-
const
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
]),
|
|
19
|
-
for (const e of
|
|
15
|
+
const d = L(), [m, { data: i }] = await Promise.all([
|
|
16
|
+
j(),
|
|
17
|
+
d.from("currencies").select("code, is_default").eq("is_active", !0).order("is_default", { ascending: !1 }).order("code", { ascending: !0 })
|
|
18
|
+
]), p = s?.lang ? parseInt(s.lang, 10) : void 0, { data: f } = await w({ languageId: p }), n = f || [], a = n.map((e) => e.id), { data: g } = a.length > 0 ? await d.from("blocks").select("id, product_id, block_type, content, order").in("product_id", a).order("order", { ascending: !0 }) : { data: [] }, c = /* @__PURE__ */ new Map();
|
|
19
|
+
for (const e of g || []) {
|
|
20
20
|
if (!e.product_id) continue;
|
|
21
|
-
const
|
|
22
|
-
|
|
21
|
+
const o = c.get(e.product_id) || [];
|
|
22
|
+
o.push(e), c.set(e.product_id, o);
|
|
23
23
|
}
|
|
24
|
-
const
|
|
25
|
-
const
|
|
24
|
+
const b = n.map((e) => {
|
|
25
|
+
const o = c.get(e.id) || [], k = A(o, {
|
|
26
26
|
documentTitle: e.title,
|
|
27
27
|
documentType: "product"
|
|
28
|
-
}), P =
|
|
28
|
+
}), P = B({
|
|
29
29
|
document: k,
|
|
30
30
|
metaTitle: e.meta_title ?? void 0,
|
|
31
31
|
metaDescription: e.meta_description ?? void 0,
|
|
@@ -35,73 +35,33 @@ async function M({
|
|
|
35
35
|
...e,
|
|
36
36
|
seo_score: P.score
|
|
37
37
|
};
|
|
38
|
-
}),
|
|
38
|
+
}), _ = Object.fromEntries(
|
|
39
39
|
m.map((e) => [String(e.id), e.code.toUpperCase()])
|
|
40
|
-
),
|
|
41
|
-
return /* @__PURE__ */
|
|
42
|
-
/* @__PURE__ */
|
|
43
|
-
/* @__PURE__ */
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
/* @__PURE__ */
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
n,
|
|
55
|
-
a,
|
|
56
|
-
/* @__PURE__ */ s(B, { title: "Sync Full Store" }, void 0, !1, {
|
|
57
|
-
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/libs/ecommerce/src/lib/pages/cms/products/ProductsPage.tsx",
|
|
58
|
-
lineNumber: 88,
|
|
59
|
-
columnNumber: 11
|
|
60
|
-
}, this),
|
|
61
|
-
/* @__PURE__ */ s(h, { href: "/cms/products/new", children: /* @__PURE__ */ s(x, { children: "New Product" }, void 0, !1, {
|
|
62
|
-
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/libs/ecommerce/src/lib/pages/cms/products/ProductsPage.tsx",
|
|
63
|
-
lineNumber: 90,
|
|
64
|
-
columnNumber: 13
|
|
65
|
-
}, this) }, void 0, !1, {
|
|
66
|
-
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/libs/ecommerce/src/lib/pages/cms/products/ProductsPage.tsx",
|
|
67
|
-
lineNumber: 89,
|
|
68
|
-
columnNumber: 11
|
|
69
|
-
}, this)
|
|
70
|
-
] }, void 0, !0, {
|
|
71
|
-
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/libs/ecommerce/src/lib/pages/cms/products/ProductsPage.tsx",
|
|
72
|
-
lineNumber: 84,
|
|
73
|
-
columnNumber: 9
|
|
74
|
-
}, this)
|
|
75
|
-
] }, void 0, !0, {
|
|
76
|
-
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/libs/ecommerce/src/lib/pages/cms/products/ProductsPage.tsx",
|
|
77
|
-
lineNumber: 82,
|
|
78
|
-
columnNumber: 7
|
|
79
|
-
}, this),
|
|
80
|
-
/* @__PURE__ */ s(
|
|
81
|
-
D,
|
|
40
|
+
), h = i?.find((e) => e.is_default)?.code || i?.[0]?.code || "USD";
|
|
41
|
+
return /* @__PURE__ */ r("div", { className: "p-8 space-y-6", children: [
|
|
42
|
+
/* @__PURE__ */ r("div", { className: "flex justify-between items-center", children: [
|
|
43
|
+
/* @__PURE__ */ t("h1", { className: "text-3xl font-bold", children: "Products" }),
|
|
44
|
+
/* @__PURE__ */ r("div", { className: "flex flex-wrap items-center gap-4", children: [
|
|
45
|
+
/* @__PURE__ */ t("div", { className: "h-10 w-[1px] bg-slate-200 dark:bg-slate-800 mx-2 hidden sm:block" }),
|
|
46
|
+
u,
|
|
47
|
+
l,
|
|
48
|
+
/* @__PURE__ */ t(y, { title: "Sync Full Store" }),
|
|
49
|
+
/* @__PURE__ */ t(v, { href: "/cms/products/new", children: /* @__PURE__ */ t(S, { children: "New Product" }) })
|
|
50
|
+
] })
|
|
51
|
+
] }),
|
|
52
|
+
/* @__PURE__ */ t(
|
|
53
|
+
x,
|
|
82
54
|
{
|
|
83
|
-
products:
|
|
84
|
-
languageLabels:
|
|
85
|
-
defaultCurrencyCode:
|
|
86
|
-
deleteProductAction:
|
|
87
|
-
bulkDeleteProductsAction:
|
|
88
|
-
bulkDraftProductsAction:
|
|
89
|
-
}
|
|
90
|
-
void 0,
|
|
91
|
-
!1,
|
|
92
|
-
{
|
|
93
|
-
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/libs/ecommerce/src/lib/pages/cms/products/ProductsPage.tsx",
|
|
94
|
-
lineNumber: 95,
|
|
95
|
-
columnNumber: 7
|
|
96
|
-
},
|
|
97
|
-
this
|
|
55
|
+
products: b,
|
|
56
|
+
languageLabels: _,
|
|
57
|
+
defaultCurrencyCode: h,
|
|
58
|
+
deleteProductAction: I,
|
|
59
|
+
bulkDeleteProductsAction: N,
|
|
60
|
+
bulkDraftProductsAction: D
|
|
61
|
+
}
|
|
98
62
|
)
|
|
99
|
-
] }
|
|
100
|
-
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/libs/ecommerce/src/lib/pages/cms/products/ProductsPage.tsx",
|
|
101
|
-
lineNumber: 81,
|
|
102
|
-
columnNumber: 5
|
|
103
|
-
}, this);
|
|
63
|
+
] });
|
|
104
64
|
}
|
|
105
65
|
export {
|
|
106
|
-
|
|
66
|
+
W as ProductsPage
|
|
107
67
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),S=require("../../components/ProductForm.cjs.js"),a=require("../../actions.cjs.js"),E=require("../../components/FreemiusPricingDashboard.cjs.js"),T=require("../../components/DeleteProductButton.cjs.js"),M=require("next/navigation"),_=require("lucide-react"),m=require("next/link"),g=require("@nextblock-cms/ui"),O=require("../../../../../variation-utils.cjs.js"),x=require("../../server-actions.cjs.js"),b=require("../../../payments/queries.cjs.js"),U=require("@nextblock-cms/db/server"),o=require("@nextblock-cms/utils"),C=require("../../../../../currency.cjs.js");async function I({params:f,mediaPickerNode:h,availableLanguagesProp:u,languageSwitcherNode:j,copyContentNode:P,translationCtaNode:v}){const{id:y}=await f,e=await a.getProduct(y);e||M.notFound();const c=e.product_type==="digital"||e.payment_provider==="freemius",[q,w,d,A,N]=await Promise.all([b.getEnabledPaymentProviders(),b.getStoreConfigStatus(),c&&e.freemius_product_id?a.getFreemiusPricingByProductId(e.id):Promise.resolve(null),a.getGlobalProductAttributes(),U.getServiceRoleSupabaseClient().from("currencies").select("code, symbol, exchange_rate, is_default, is_active, auto_sync_product_prices, auto_update_exchange_rate, exchange_rate_source, exchange_rate_updated_at, rounding_mode, rounding_increment, rounding_charm_amount").eq("is_active",!0).order("code",{ascending:!0}).then(t=>t.data||[])]),D=(N||[]).map(t=>C.normalizeCurrencyRecord(t)),k=u.find(t=>t.id===e.language_id)?.code,{attributes:R,variants:B}=O.mapRawVariantRelations(e.product_variants||[],k),F=(A||[]).map(t=>({id:t.id,name:t.name,name_translations:t.name_translations||{},slug:t.slug,terms:(t.product_attribute_terms||[]).map(r=>({...r,value_translations:r.value_translations||{}}))})),l=T.DeleteProductButton,p=E.FreemiusPricingDashboard;return i.jsxs("div",{className:"space-y-8 w-full max-w-[1400px] mx-auto px-6 py-8",children:[i.jsxs("div",{className:"flex justify-between items-center flex-wrap gap-4 w-full",children:[i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsx(g.Button,{variant:"outline",size:"icon","aria-label":"Back to products",asChild:!0,children:i.jsx(m,{href:"/cms/products",children:i.jsx(_.ArrowLeft,{className:"h-4 w-4"})})}),i.jsxs("div",{children:[i.jsx("h1",{className:"text-2xl font-bold",children:"Edit Product"}),i.jsx("p",{className:"text-sm text-muted-foreground truncate max-w-md",title:e.title,children:e.title})]})]}),i.jsxs("div",{className:"flex items-center gap-3 flex-wrap",children:[j,P,v,l?i.jsx(l,{productName:e.title,redirectTo:"/cms/products",className:"border-red-200 hover:bg-red-50 hover:text-red-700",deleteAction:x.deleteProductAction.bind(null,e.id)}):null,e.slug&&e.status==="active"&&i.jsx(g.Button,{variant:"outline",asChild:!0,children:i.jsxs(m,{href:`/product/${e.slug}`,target:"_blank",children:[i.jsx(_.ExternalLink,{className:"w-4 h-4 mr-2"}),"View"]})})]})]}),i.jsx(S.ProductForm,{initialData:{id:e.id,title:e.title,slug:e.slug,sku:e.sku,upc:e.upc??void 0,stock:e.stock||0,price:e.price||0,prices:Object.entries(e.prices||{}).reduce((t,[r,s])=>(t[r]=o.minorUnitAmountToMajor(s,r),t),{}),is_taxable:typeof e.is_taxable=="boolean"?e.is_taxable:!0,product_type:e.product_type,payment_provider:e.payment_provider,status:e.status,short_description:e.short_description??void 0,description_json:e.description_json,sale_price:typeof e.sale_price=="number"?e.sale_price:void 0,sale_prices:Object.entries(e.sale_prices||{}).reduce((t,[r,s])=>(t[r]=typeof s=="number"?o.minorUnitAmountToMajor(s,r):null,t),{}),freemius_plan_id:e.freemius_plan_id??void 0,freemius_product_id:e.freemius_product_id??void 0,trial_period_days:e.trial_period_days??0,trial_requires_payment_method:e.trial_requires_payment_method??!1,language_id:e.language_id,translation_group_id:e.translation_group_id,product_media:e.product_media,variation_attributes:R.map(t=>({attribute_id:t.id,term_ids:t.terms.map(r=>r.id)})),variants:B.map(t=>({...t,upc:t.upc??null,price:t.price/100,prices:Object.entries(t.prices||{}).reduce((r,[s,n])=>(r[s]=o.minorUnitAmountToMajor(n,s),r),{}),sale_price:typeof t.sale_price=="number"?t.sale_price/100:null,sale_prices:Object.entries(t.sale_prices||{}).reduce((r,[s,n])=>(r[s]=typeof n=="number"?o.minorUnitAmountToMajor(n,s):null,r),{}),main_media_id:t.main_media_id??null,main_image_url:t.image_url??null}))},isEdit:!0,mediaPickerNode:h,availableLanguagesProp:u,globalAttributesProp:F,currenciesProp:D,enabledProviders:q,configStatus:w,updateAction:x.updateProductAction.bind(null,e.id),freemiusDashboardNode:c&&e.freemius_product_id&&d&&p?i.jsx(p,{productId:e.id,freemiusProductId:e.freemius_product_id,plans:d}):void 0})]})}exports.EditProductPage=I;
|
|
@@ -1,150 +1,90 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ProductForm as
|
|
3
|
-
import { getProduct as
|
|
4
|
-
import { FreemiusPricingDashboard as
|
|
5
|
-
import { DeleteProductButton as
|
|
6
|
-
import { notFound as
|
|
7
|
-
import { ArrowLeft as
|
|
8
|
-
import
|
|
9
|
-
import { Button as
|
|
10
|
-
import { mapRawVariantRelations as
|
|
11
|
-
import { deleteProductAction as
|
|
12
|
-
import { getEnabledPaymentProviders as
|
|
13
|
-
import { getServiceRoleSupabaseClient as
|
|
1
|
+
import { jsxs as s, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { ProductForm as B } from "../../components/ProductForm.es.js";
|
|
3
|
+
import { getProduct as E, getFreemiusPricingByProductId as F, getGlobalProductAttributes as S } from "../../actions.es.js";
|
|
4
|
+
import { FreemiusPricingDashboard as C } from "../../components/FreemiusPricingDashboard.es.js";
|
|
5
|
+
import { DeleteProductButton as O } from "../../components/DeleteProductButton.es.js";
|
|
6
|
+
import { notFound as q } from "next/navigation";
|
|
7
|
+
import { ArrowLeft as I, ExternalLink as L } from "lucide-react";
|
|
8
|
+
import m from "next/link";
|
|
9
|
+
import { Button as _ } from "@nextblock-cms/ui";
|
|
10
|
+
import { mapRawVariantRelations as z } from "../../../../../variation-utils.es.js";
|
|
11
|
+
import { deleteProductAction as T, updateProductAction as V } from "../../server-actions.es.js";
|
|
12
|
+
import { getEnabledPaymentProviders as G, getStoreConfigStatus as M } from "../../../payments/queries.es.js";
|
|
13
|
+
import { getServiceRoleSupabaseClient as U } from "@nextblock-cms/db/server";
|
|
14
14
|
import { minorUnitAmountToMajor as d } from "@nextblock-cms/utils";
|
|
15
|
-
import { normalizeCurrencyRecord as
|
|
15
|
+
import { normalizeCurrencyRecord as $ } from "../../../../../currency.es.js";
|
|
16
16
|
async function de({
|
|
17
|
-
params:
|
|
18
|
-
mediaPickerNode:
|
|
19
|
-
availableLanguagesProp:
|
|
20
|
-
languageSwitcherNode:
|
|
21
|
-
copyContentNode:
|
|
22
|
-
translationCtaNode:
|
|
17
|
+
params: f,
|
|
18
|
+
mediaPickerNode: g,
|
|
19
|
+
availableLanguagesProp: n,
|
|
20
|
+
languageSwitcherNode: b,
|
|
21
|
+
copyContentNode: h,
|
|
22
|
+
translationCtaNode: x
|
|
23
23
|
}) {
|
|
24
|
-
const { id:
|
|
25
|
-
e ||
|
|
26
|
-
const
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
24
|
+
const { id: P } = await f, e = await E(P);
|
|
25
|
+
e || q();
|
|
26
|
+
const c = e.product_type === "digital" || e.payment_provider === "freemius", [v, y, l, w, A] = await Promise.all([
|
|
27
|
+
G(),
|
|
28
|
+
M(),
|
|
29
|
+
c && e.freemius_product_id ? F(e.id) : Promise.resolve(null),
|
|
30
|
+
S(),
|
|
31
|
+
U().from("currencies").select(
|
|
32
32
|
"code, symbol, exchange_rate, is_default, is_active, auto_sync_product_prices, auto_update_exchange_rate, exchange_rate_source, exchange_rate_updated_at, rounding_mode, rounding_increment, rounding_charm_amount"
|
|
33
|
-
).eq("is_active", !0).order("code", { ascending: !0 }).then((
|
|
34
|
-
]),
|
|
35
|
-
(
|
|
36
|
-
),
|
|
33
|
+
).eq("is_active", !0).order("code", { ascending: !0 }).then((t) => t.data || [])
|
|
34
|
+
]), N = (A || []).map(
|
|
35
|
+
(t) => $(t)
|
|
36
|
+
), j = n.find((t) => t.id === e.language_id)?.code, { attributes: k, variants: D } = z(
|
|
37
37
|
e.product_variants || [],
|
|
38
|
-
|
|
39
|
-
),
|
|
40
|
-
id:
|
|
41
|
-
name:
|
|
42
|
-
name_translations:
|
|
43
|
-
slug:
|
|
44
|
-
terms: (
|
|
45
|
-
...
|
|
46
|
-
value_translations:
|
|
38
|
+
j
|
|
39
|
+
), R = (w || []).map((t) => ({
|
|
40
|
+
id: t.id,
|
|
41
|
+
name: t.name,
|
|
42
|
+
name_translations: t.name_translations || {},
|
|
43
|
+
slug: t.slug,
|
|
44
|
+
terms: (t.product_attribute_terms || []).map((r) => ({
|
|
45
|
+
...r,
|
|
46
|
+
value_translations: r.value_translations || {}
|
|
47
47
|
}))
|
|
48
|
-
})),
|
|
49
|
-
return /* @__PURE__ */
|
|
50
|
-
/* @__PURE__ */
|
|
51
|
-
/* @__PURE__ */
|
|
52
|
-
/* @__PURE__ */
|
|
53
|
-
|
|
48
|
+
})), u = O, p = C;
|
|
49
|
+
return /* @__PURE__ */ s("div", { className: "space-y-8 w-full max-w-[1400px] mx-auto px-6 py-8", children: [
|
|
50
|
+
/* @__PURE__ */ s("div", { className: "flex justify-between items-center flex-wrap gap-4 w-full", children: [
|
|
51
|
+
/* @__PURE__ */ s("div", { className: "flex items-center gap-3", children: [
|
|
52
|
+
/* @__PURE__ */ o(
|
|
53
|
+
_,
|
|
54
54
|
{
|
|
55
55
|
variant: "outline",
|
|
56
56
|
size: "icon",
|
|
57
57
|
"aria-label": "Back to products",
|
|
58
58
|
asChild: !0,
|
|
59
|
-
children: /* @__PURE__ */
|
|
60
|
-
|
|
61
|
-
lineNumber: 100,
|
|
62
|
-
columnNumber: 15
|
|
63
|
-
}, this) }, void 0, !1, {
|
|
64
|
-
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/libs/ecommerce/src/lib/pages/cms/products/[id]/edit/EditProductPage.tsx",
|
|
65
|
-
lineNumber: 99,
|
|
66
|
-
columnNumber: 13
|
|
67
|
-
}, this)
|
|
68
|
-
},
|
|
69
|
-
void 0,
|
|
70
|
-
!1,
|
|
71
|
-
{
|
|
72
|
-
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/libs/ecommerce/src/lib/pages/cms/products/[id]/edit/EditProductPage.tsx",
|
|
73
|
-
lineNumber: 93,
|
|
74
|
-
columnNumber: 11
|
|
75
|
-
},
|
|
76
|
-
this
|
|
59
|
+
children: /* @__PURE__ */ o(m, { href: "/cms/products", children: /* @__PURE__ */ o(I, { className: "h-4 w-4" }) })
|
|
60
|
+
}
|
|
77
61
|
),
|
|
78
|
-
/* @__PURE__ */
|
|
79
|
-
/* @__PURE__ */
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
] }, void 0, !0, {
|
|
90
|
-
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/libs/ecommerce/src/lib/pages/cms/products/[id]/edit/EditProductPage.tsx",
|
|
91
|
-
lineNumber: 103,
|
|
92
|
-
columnNumber: 11
|
|
93
|
-
}, this)
|
|
94
|
-
] }, void 0, !0, {
|
|
95
|
-
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/libs/ecommerce/src/lib/pages/cms/products/[id]/edit/EditProductPage.tsx",
|
|
96
|
-
lineNumber: 92,
|
|
97
|
-
columnNumber: 9
|
|
98
|
-
}, this),
|
|
99
|
-
/* @__PURE__ */ r("div", { className: "flex items-center gap-3 flex-wrap", children: [
|
|
100
|
-
N,
|
|
101
|
-
g,
|
|
102
|
-
f,
|
|
103
|
-
m ? /* @__PURE__ */ r(
|
|
104
|
-
m,
|
|
62
|
+
/* @__PURE__ */ s("div", { children: [
|
|
63
|
+
/* @__PURE__ */ o("h1", { className: "text-2xl font-bold", children: "Edit Product" }),
|
|
64
|
+
/* @__PURE__ */ o("p", { className: "text-sm text-muted-foreground truncate max-w-md", title: e.title, children: e.title })
|
|
65
|
+
] })
|
|
66
|
+
] }),
|
|
67
|
+
/* @__PURE__ */ s("div", { className: "flex items-center gap-3 flex-wrap", children: [
|
|
68
|
+
b,
|
|
69
|
+
h,
|
|
70
|
+
x,
|
|
71
|
+
u ? /* @__PURE__ */ o(
|
|
72
|
+
u,
|
|
105
73
|
{
|
|
106
74
|
productName: e.title,
|
|
107
75
|
redirectTo: "/cms/products",
|
|
108
76
|
className: "border-red-200 hover:bg-red-50 hover:text-red-700",
|
|
109
|
-
deleteAction:
|
|
110
|
-
}
|
|
111
|
-
void 0,
|
|
112
|
-
!1,
|
|
113
|
-
{
|
|
114
|
-
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/libs/ecommerce/src/lib/pages/cms/products/[id]/edit/EditProductPage.tsx",
|
|
115
|
-
lineNumber: 115,
|
|
116
|
-
columnNumber: 14
|
|
117
|
-
},
|
|
118
|
-
this
|
|
77
|
+
deleteAction: T.bind(null, e.id)
|
|
78
|
+
}
|
|
119
79
|
) : null,
|
|
120
|
-
e.slug && e.status === "active" && /* @__PURE__ */
|
|
121
|
-
/* @__PURE__ */
|
|
122
|
-
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/libs/ecommerce/src/lib/pages/cms/products/[id]/edit/EditProductPage.tsx",
|
|
123
|
-
lineNumber: 125,
|
|
124
|
-
columnNumber: 25
|
|
125
|
-
}, this),
|
|
80
|
+
e.slug && e.status === "active" && /* @__PURE__ */ o(_, { variant: "outline", asChild: !0, children: /* @__PURE__ */ s(m, { href: `/product/${e.slug}`, target: "_blank", children: [
|
|
81
|
+
/* @__PURE__ */ o(L, { className: "w-4 h-4 mr-2" }),
|
|
126
82
|
"View"
|
|
127
|
-
] }
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/libs/ecommerce/src/lib/pages/cms/products/[id]/edit/EditProductPage.tsx",
|
|
133
|
-
lineNumber: 123,
|
|
134
|
-
columnNumber: 18
|
|
135
|
-
}, this)
|
|
136
|
-
] }, void 0, !0, {
|
|
137
|
-
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/libs/ecommerce/src/lib/pages/cms/products/[id]/edit/EditProductPage.tsx",
|
|
138
|
-
lineNumber: 110,
|
|
139
|
-
columnNumber: 9
|
|
140
|
-
}, this)
|
|
141
|
-
] }, void 0, !0, {
|
|
142
|
-
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/libs/ecommerce/src/lib/pages/cms/products/[id]/edit/EditProductPage.tsx",
|
|
143
|
-
lineNumber: 91,
|
|
144
|
-
columnNumber: 7
|
|
145
|
-
}, this),
|
|
146
|
-
/* @__PURE__ */ r(
|
|
147
|
-
y,
|
|
83
|
+
] }) })
|
|
84
|
+
] })
|
|
85
|
+
] }),
|
|
86
|
+
/* @__PURE__ */ o(
|
|
87
|
+
B,
|
|
148
88
|
{
|
|
149
89
|
initialData: {
|
|
150
90
|
id: e.id,
|
|
@@ -155,7 +95,7 @@ async function de({
|
|
|
155
95
|
stock: e.stock || 0,
|
|
156
96
|
price: e.price || 0,
|
|
157
97
|
prices: Object.entries(e.prices || {}).reduce(
|
|
158
|
-
(
|
|
98
|
+
(t, [r, i]) => (t[r] = d(i, r), t),
|
|
159
99
|
{}
|
|
160
100
|
),
|
|
161
101
|
is_taxable: typeof e.is_taxable == "boolean" ? e.is_taxable : !0,
|
|
@@ -165,7 +105,7 @@ async function de({
|
|
|
165
105
|
short_description: e.short_description ?? void 0,
|
|
166
106
|
description_json: e.description_json,
|
|
167
107
|
sale_price: typeof e.sale_price == "number" ? e.sale_price : void 0,
|
|
168
|
-
sale_prices: Object.entries(e.sale_prices || {}).reduce((
|
|
108
|
+
sale_prices: Object.entries(e.sale_prices || {}).reduce((t, [r, i]) => (t[r] = typeof i == "number" ? d(i, r) : null, t), {}),
|
|
169
109
|
freemius_plan_id: e.freemius_plan_id ?? void 0,
|
|
170
110
|
freemius_product_id: e.freemius_product_id ?? void 0,
|
|
171
111
|
trial_period_days: e.trial_period_days ?? 0,
|
|
@@ -173,63 +113,43 @@ async function de({
|
|
|
173
113
|
language_id: e.language_id,
|
|
174
114
|
translation_group_id: e.translation_group_id,
|
|
175
115
|
product_media: e.product_media,
|
|
176
|
-
variation_attributes:
|
|
177
|
-
attribute_id:
|
|
178
|
-
term_ids:
|
|
116
|
+
variation_attributes: k.map((t) => ({
|
|
117
|
+
attribute_id: t.id,
|
|
118
|
+
term_ids: t.terms.map((r) => r.id)
|
|
179
119
|
})),
|
|
180
|
-
variants:
|
|
181
|
-
...
|
|
182
|
-
upc:
|
|
183
|
-
price:
|
|
184
|
-
prices: Object.entries(
|
|
185
|
-
(
|
|
120
|
+
variants: D.map((t) => ({
|
|
121
|
+
...t,
|
|
122
|
+
upc: t.upc ?? null,
|
|
123
|
+
price: t.price / 100,
|
|
124
|
+
prices: Object.entries(t.prices || {}).reduce(
|
|
125
|
+
(r, [i, a]) => (r[i] = d(a, i), r),
|
|
186
126
|
{}
|
|
187
127
|
),
|
|
188
|
-
sale_price: typeof
|
|
189
|
-
sale_prices: Object.entries(
|
|
190
|
-
main_media_id:
|
|
191
|
-
main_image_url:
|
|
128
|
+
sale_price: typeof t.sale_price == "number" ? t.sale_price / 100 : null,
|
|
129
|
+
sale_prices: Object.entries(t.sale_prices || {}).reduce((r, [i, a]) => (r[i] = typeof a == "number" ? d(a, i) : null, r), {}),
|
|
130
|
+
main_media_id: t.main_media_id ?? null,
|
|
131
|
+
main_image_url: t.image_url ?? null
|
|
192
132
|
}))
|
|
193
133
|
},
|
|
194
134
|
isEdit: !0,
|
|
195
|
-
mediaPickerNode:
|
|
196
|
-
availableLanguagesProp:
|
|
197
|
-
globalAttributesProp:
|
|
198
|
-
currenciesProp:
|
|
199
|
-
enabledProviders:
|
|
200
|
-
configStatus:
|
|
201
|
-
updateAction:
|
|
202
|
-
freemiusDashboardNode:
|
|
203
|
-
|
|
135
|
+
mediaPickerNode: g,
|
|
136
|
+
availableLanguagesProp: n,
|
|
137
|
+
globalAttributesProp: R,
|
|
138
|
+
currenciesProp: N,
|
|
139
|
+
enabledProviders: v,
|
|
140
|
+
configStatus: y,
|
|
141
|
+
updateAction: V.bind(null, e.id),
|
|
142
|
+
freemiusDashboardNode: c && e.freemius_product_id && l && p ? /* @__PURE__ */ o(
|
|
143
|
+
p,
|
|
204
144
|
{
|
|
205
145
|
productId: e.id,
|
|
206
146
|
freemiusProductId: e.freemius_product_id,
|
|
207
|
-
plans:
|
|
208
|
-
}
|
|
209
|
-
void 0,
|
|
210
|
-
!1,
|
|
211
|
-
{
|
|
212
|
-
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/libs/ecommerce/src/lib/pages/cms/products/[id]/edit/EditProductPage.tsx",
|
|
213
|
-
lineNumber: 216,
|
|
214
|
-
columnNumber: 13
|
|
215
|
-
},
|
|
216
|
-
this
|
|
147
|
+
plans: l
|
|
148
|
+
}
|
|
217
149
|
) : void 0
|
|
218
|
-
}
|
|
219
|
-
void 0,
|
|
220
|
-
!1,
|
|
221
|
-
{
|
|
222
|
-
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/libs/ecommerce/src/lib/pages/cms/products/[id]/edit/EditProductPage.tsx",
|
|
223
|
-
lineNumber: 133,
|
|
224
|
-
columnNumber: 8
|
|
225
|
-
},
|
|
226
|
-
this
|
|
150
|
+
}
|
|
227
151
|
)
|
|
228
|
-
] }
|
|
229
|
-
fileName: "C:/Users/desjardinsn/Desktop/NRH-NextBlock/libs/ecommerce/src/lib/pages/cms/products/[id]/edit/EditProductPage.tsx",
|
|
230
|
-
lineNumber: 90,
|
|
231
|
-
columnNumber: 5
|
|
232
|
-
}, this);
|
|
152
|
+
] });
|
|
233
153
|
}
|
|
234
154
|
export {
|
|
235
155
|
de as EditProductPage
|