medusa-invoice 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (81) hide show
  1. package/dist/admin/_virtual_entry.js +387 -226
  2. package/dist/api/admin/document-invoice-settings/forced-number/route.js +5 -16
  3. package/dist/api/admin/document-invoice-settings/format-number/route.js +5 -16
  4. package/dist/api/admin/document-invoice-settings/invoice-template/route.js +5 -16
  5. package/dist/api/admin/document-invoice-settings/route.js +1 -12
  6. package/dist/api/admin/document-packing-slip-settings/route.js +1 -12
  7. package/dist/api/admin/document-packing-slip-settings/template/route.js +5 -16
  8. package/dist/api/admin/document-settings/document-address/route.js +6 -17
  9. package/dist/api/admin/document-settings/logo/route.js +9 -20
  10. package/dist/api/admin/document-settings/route.js +1 -12
  11. package/dist/api/admin/invoice/display-number/route.js +4 -15
  12. package/dist/api/admin/invoice/generate/route.js +3 -14
  13. package/dist/api/admin/invoice/route.js +5 -16
  14. package/dist/api/admin/packing-slip/preview/route.js +3 -14
  15. package/dist/api/admin/packing-slip/route.js +5 -16
  16. package/dist/index.d.ts +1 -1
  17. package/dist/index.js +1 -12
  18. package/dist/migrations/1711700828113-DocumentSettings.js +43 -28
  19. package/dist/migrations/1711701185935-Invoice.js +29 -30
  20. package/dist/models/document-invoice-settings.js +1 -12
  21. package/dist/models/document-packing-slip-settings.js +1 -12
  22. package/dist/models/document-settings.js +2 -13
  23. package/dist/models/invoice.js +4 -15
  24. package/dist/models/packing-slip.js +4 -15
  25. package/dist/services/document-invoice-settings.js +7 -16
  26. package/dist/services/document-packing-slip-settings.js +7 -16
  27. package/dist/services/generators/invoice-generator.d.ts +1 -1
  28. package/dist/services/generators/invoice-generator.js +3 -15
  29. package/dist/services/generators/packing-slip-generator.d.ts +1 -1
  30. package/dist/services/generators/packing-slip-generator.js +3 -15
  31. package/dist/services/invoice.js +59 -51
  32. package/dist/services/packing-slip.js +51 -38
  33. package/dist/services/templates/invoices/basic/basic-logo.js +1 -12
  34. package/dist/services/templates/invoices/basic/basic.js +1 -12
  35. package/dist/services/templates/invoices/basic/parts/customer-info.js +4 -16
  36. package/dist/services/templates/invoices/basic/parts/header-for-logo.js +13 -18
  37. package/dist/services/templates/invoices/basic/parts/header-logo.js +6 -16
  38. package/dist/services/templates/invoices/basic/parts/header.js +10 -18
  39. package/dist/services/templates/invoices/basic/parts/hr.js +2 -18
  40. package/dist/services/templates/invoices/basic/parts/invoice-info.js +4 -16
  41. package/dist/services/templates/invoices/basic/parts/table.js +5 -17
  42. package/dist/services/templates/packing-slips/basic/basic.js +1 -12
  43. package/dist/services/templates/packing-slips/basic/parts/customer-info-small.js +6 -15
  44. package/dist/services/templates/packing-slips/basic/parts/customer-info.js +3 -15
  45. package/dist/services/templates/packing-slips/basic/parts/header-small.js +6 -20
  46. package/dist/services/templates/packing-slips/basic/parts/header.js +6 -20
  47. package/dist/services/templates/packing-slips/basic/parts/hr.js +2 -18
  48. package/dist/services/templates/packing-slips/basic/parts/table-items-small.js +3 -15
  49. package/dist/services/templates/packing-slips/basic/parts/table-items.js +3 -15
  50. package/dist/services/templates/packing-slips/basic/parts/table-order-info-small.js +2 -14
  51. package/dist/services/templates/packing-slips/basic/parts/table-order-info.js +2 -14
  52. package/dist/services/templates/packing-slips/basic/small.js +1 -12
  53. package/dist/services/types/api.d.ts +1 -1
  54. package/dist/services/types/api.js +1 -12
  55. package/dist/services/types/constants.js +1 -12
  56. package/dist/services/types/template-kind.js +1 -12
  57. package/dist/ui-components/actions-dropdown/invoice/button-generate-invoice.js +9 -18
  58. package/dist/ui-components/actions-dropdown/invoice/button-view-invoice.js +10 -19
  59. package/dist/ui-components/actions-dropdown/packing-slip/button-generate-packing-slip.js +9 -18
  60. package/dist/ui-components/actions-dropdown/packing-slip/button-view-packing-slip.js +11 -20
  61. package/dist/ui-components/index.d.ts +3 -3
  62. package/dist/ui-components/index.js +1 -12
  63. package/dist/ui-components/orders/order-table/invoice-number-from-order.js +4 -16
  64. package/dist/ui-components/orders/order-table/packing-slip-number.js +4 -16
  65. package/dist/ui-components/settings/settings-address.js +11 -22
  66. package/dist/ui-components/settings/settings-invoice-display-number.d.ts +1 -1
  67. package/dist/ui-components/settings/settings-invoice-display-number.js +3 -14
  68. package/dist/ui-components/settings/settings-invoice.js +25 -26
  69. package/dist/ui-components/settings/settings-logo.js +19 -23
  70. package/dist/ui-components/tabs/orders-tab.js +1 -12
  71. package/dist/ui-components/tabs/pro-tab.js +2 -13
  72. package/dist/ui-components/tabs/settings-tab.js +2 -13
  73. package/dist/ui-components/tabs/templates-tab/templates-invoice-tab.js +25 -30
  74. package/dist/ui-components/tabs/templates-tab/templates-packing-slip-tab.js +25 -30
  75. package/dist/ui-components/tabs/templates-tab/templates-tab.js +2 -13
  76. package/dist/ui-components/types/api.d.ts +1 -1
  77. package/dist/ui-components/types/api.js +1 -12
  78. package/dist/ui-components/types/invoice.js +1 -12
  79. package/dist/ui-components/types/packing-slip.js +1 -12
  80. package/dist/ui-components/types/template-kind.js +1 -12
  81. package/package.json +1 -2
@@ -5804,10 +5804,7 @@ const currencies = {
5804
5804
  };
5805
5805
 
5806
5806
  const GenerateInvoiceDropdownButton = ({ order }) => {
5807
- const { mutate } = useAdminCustomPost(
5808
- `/invoice`,
5809
- ["invoice"]
5810
- );
5807
+ const { mutate } = useAdminCustomPost(`/invoice`, ["invoice"]);
5811
5808
  const generate = () => {
5812
5809
  toast.loading("Invoice", {
5813
5810
  description: "Generating invoice...",
@@ -5821,7 +5818,9 @@ const GenerateInvoiceDropdownButton = ({ order }) => {
5821
5818
  onSuccess: ({ response, buffer }) => {
5822
5819
  if (response.status == 201 && buffer) {
5823
5820
  const anyBuffer = buffer;
5824
- const blob = new Blob([new Uint8Array(anyBuffer.data)], { type: "application/pdf" });
5821
+ const blob = new Blob([new Uint8Array(anyBuffer.data)], {
5822
+ type: "application/pdf"
5823
+ });
5825
5824
  toast.dismiss();
5826
5825
  const pdfURL = URL.createObjectURL(blob);
5827
5826
  window.open(pdfURL, "_blank");
@@ -5889,7 +5888,9 @@ const ViewInvoiceDropdownButton = ({ order }) => {
5889
5888
  const openPdf = (invoiceResult) => {
5890
5889
  if (invoiceResult && invoiceResult.buffer) {
5891
5890
  const anyBuffer = invoiceResult.buffer;
5892
- const blob = new Blob([new Uint8Array(anyBuffer.data)], { type: "application/pdf" });
5891
+ const blob = new Blob([new Uint8Array(anyBuffer.data)], {
5892
+ type: "application/pdf"
5893
+ });
5893
5894
  const pdfURL = URL.createObjectURL(blob);
5894
5895
  window.open(pdfURL, "_blank");
5895
5896
  }
@@ -5948,7 +5949,9 @@ const ViewPackingSlipDropdownButton = ({ order }) => {
5948
5949
  const openPdf = (packingSlipResult) => {
5949
5950
  if (packingSlipResult && packingSlipResult.buffer) {
5950
5951
  const anyBuffer = packingSlipResult.buffer;
5951
- const blob = new Blob([new Uint8Array(anyBuffer.data)], { type: "application/pdf" });
5952
+ const blob = new Blob([new Uint8Array(anyBuffer.data)], {
5953
+ type: "application/pdf"
5954
+ });
5952
5955
  const pdfURL = URL.createObjectURL(blob);
5953
5956
  window.open(pdfURL, "_blank");
5954
5957
  }
@@ -5968,10 +5971,7 @@ const ViewPackingSlipDropdownButton = ({ order }) => {
5968
5971
  };
5969
5972
 
5970
5973
  const GeneratePackingSlipDropdownButton = ({ order }) => {
5971
- const { mutate } = useAdminCustomPost(
5972
- `/packing-slip`,
5973
- ["packing-slip"]
5974
- );
5974
+ const { mutate } = useAdminCustomPost(`/packing-slip`, ["packing-slip"]);
5975
5975
  const generate = () => {
5976
5976
  toast.loading("Packing slip", {
5977
5977
  description: "Generating packing slip...",
@@ -5985,7 +5985,9 @@ const GeneratePackingSlipDropdownButton = ({ order }) => {
5985
5985
  onSuccess: ({ response, buffer }) => {
5986
5986
  if (response.status == 201 && buffer) {
5987
5987
  const anyBuffer = buffer;
5988
- const blob = new Blob([new Uint8Array(anyBuffer.data)], { type: "application/pdf" });
5988
+ const blob = new Blob([new Uint8Array(anyBuffer.data)], {
5989
+ type: "application/pdf"
5990
+ });
5989
5991
  toast.dismiss();
5990
5992
  const pdfURL = URL.createObjectURL(blob);
5991
5993
  window.open(pdfURL, "_blank");
@@ -6027,13 +6029,9 @@ function ActionsDropdown({ order }) {
6027
6029
  }
6028
6030
 
6029
6031
  const InvoiceNumberFromOrder = ({ invoiceId }) => {
6030
- const { data, isLoading } = useAdminCustomQuery(
6031
- "/invoice",
6032
- [""],
6033
- {
6034
- invoiceId
6035
- }
6036
- );
6032
+ const { data, isLoading } = useAdminCustomQuery("/invoice", [""], {
6033
+ invoiceId
6034
+ });
6037
6035
  if (isLoading) {
6038
6036
  return /* @__PURE__ */ jsx(CircularProgress, { size: 8 });
6039
6037
  }
@@ -6043,13 +6041,9 @@ const InvoiceNumberFromOrder = ({ invoiceId }) => {
6043
6041
  };
6044
6042
 
6045
6043
  const PackingSlipNumber = ({ packingSlipId }) => {
6046
- const { data, isLoading } = useAdminCustomQuery(
6047
- "/packing-slip",
6048
- [""],
6049
- {
6050
- id: packingSlipId
6051
- }
6052
- );
6044
+ const { data, isLoading } = useAdminCustomQuery("/packing-slip", [""], {
6045
+ id: packingSlipId
6046
+ });
6053
6047
  if (isLoading) {
6054
6048
  return /* @__PURE__ */ jsx(CircularProgress, { size: 8 });
6055
6049
  }
@@ -14417,13 +14411,9 @@ var PackingSlipTemplateKind = /* @__PURE__ */ ((PackingSlipTemplateKind2) => {
14417
14411
 
14418
14412
  const ViewExampleInvoice = ({ kind }) => {
14419
14413
  var _a, _b;
14420
- const { data, isLoading, isError, error } = useAdminCustomQuery(
14421
- `/invoice/generate`,
14422
- [],
14423
- {
14424
- template: kind
14425
- }
14426
- );
14414
+ const { data, isLoading, isError, error } = useAdminCustomQuery(`/invoice/generate`, [], {
14415
+ template: kind
14416
+ });
14427
14417
  if (isLoading) {
14428
14418
  return /* @__PURE__ */ jsx(Grid, { container: true, justifyContent: "center", children: /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(CircularProgress, { size: 12 }) }) });
14429
14419
  }
@@ -14437,7 +14427,9 @@ const ViewExampleInvoice = ({ kind }) => {
14437
14427
  }
14438
14428
  if (data && data.buffer) {
14439
14429
  const anyBuffer = data.buffer;
14440
- const blob = new Blob([new Uint8Array(anyBuffer.data)], { type: "application/pdf" });
14430
+ const blob = new Blob([new Uint8Array(anyBuffer.data)], {
14431
+ type: "application/pdf"
14432
+ });
14441
14433
  const pdfURL = URL.createObjectURL(blob);
14442
14434
  return /* @__PURE__ */ jsx("iframe", { src: pdfURL, width: 660, height: 1e3 });
14443
14435
  } else {
@@ -14448,23 +14440,45 @@ const ChooseTemplate$1 = (props) => {
14448
14440
  const handleChange = (checked) => {
14449
14441
  props.setKind(checked);
14450
14442
  };
14451
- return /* @__PURE__ */ jsxs(RadioGroup, { onValueChange: handleChange, defaultValue: props.lastKind.toString(), children: [
14452
- /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-x-3", children: [
14453
- /* @__PURE__ */ jsx(RadioGroup.Item, { value: InvoiceTemplateKind.BASIC.toString(), id: InvoiceTemplateKind.BASIC.toString() }),
14454
- /* @__PURE__ */ jsx(Label, { htmlFor: "radio_1", weight: "plus", children: "Basic" })
14455
- ] }),
14456
- /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-x-3", children: [
14457
- /* @__PURE__ */ jsx(RadioGroup.Item, { value: InvoiceTemplateKind.BASIC_LOGO.toString(), id: InvoiceTemplateKind.BASIC_LOGO.toString() }),
14458
- /* @__PURE__ */ jsx(Label, { htmlFor: "radio_1", weight: "plus", children: "Basic with logo" })
14459
- ] })
14460
- ] });
14443
+ return /* @__PURE__ */ jsxs(
14444
+ RadioGroup,
14445
+ {
14446
+ onValueChange: handleChange,
14447
+ defaultValue: props.lastKind.toString(),
14448
+ children: [
14449
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-x-3", children: [
14450
+ /* @__PURE__ */ jsx(
14451
+ RadioGroup.Item,
14452
+ {
14453
+ value: InvoiceTemplateKind.BASIC.toString(),
14454
+ id: InvoiceTemplateKind.BASIC.toString()
14455
+ }
14456
+ ),
14457
+ /* @__PURE__ */ jsx(Label, { htmlFor: "radio_1", weight: "plus", children: "Basic" })
14458
+ ] }),
14459
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-x-3", children: [
14460
+ /* @__PURE__ */ jsx(
14461
+ RadioGroup.Item,
14462
+ {
14463
+ value: InvoiceTemplateKind.BASIC_LOGO.toString(),
14464
+ id: InvoiceTemplateKind.BASIC_LOGO.toString()
14465
+ }
14466
+ ),
14467
+ /* @__PURE__ */ jsx(Label, { htmlFor: "radio_1", weight: "plus", children: "Basic with logo" })
14468
+ ] })
14469
+ ]
14470
+ }
14471
+ );
14461
14472
  };
14462
- const TemplatesTabContent$1 = ({ lastKind }) => {
14463
- const [templateKind, setTemplateKind] = useState(lastKind !== void 0 && lastKind !== null ? lastKind : InvoiceTemplateKind.BASIC);
14464
- const { mutate } = useAdminCustomPost(
14465
- `/document-invoice-settings/invoice-template`,
14466
- ["document-invoice-settings"]
14473
+ const TemplatesTabContent$1 = ({
14474
+ lastKind
14475
+ }) => {
14476
+ const [templateKind, setTemplateKind] = useState(
14477
+ lastKind !== void 0 && lastKind !== null ? lastKind : InvoiceTemplateKind.BASIC
14467
14478
  );
14479
+ const { mutate } = useAdminCustomPost(`/document-invoice-settings/invoice-template`, [
14480
+ "document-invoice-settings"
14481
+ ]);
14468
14482
  const onSubmit = () => {
14469
14483
  return mutate(
14470
14484
  {
@@ -14495,7 +14509,13 @@ const TemplatesTabContent$1 = ({ lastKind }) => {
14495
14509
  /* @__PURE__ */ jsx(Grid, { item: true, xs: 12, md: 12, xl: 12, children: /* @__PURE__ */ jsx(Alert, { children: "Preview is based on the last order" }) }),
14496
14510
  /* @__PURE__ */ jsx(Grid, { item: true, xs: 12, md: 12, xl: 12, children: /* @__PURE__ */ jsx(Container, { children: /* @__PURE__ */ jsxs(Grid, { container: true, rowSpacing: 3, direction: "column", children: [
14497
14511
  /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(Heading, { level: "h1", children: "Choose template" }) }),
14498
- /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(ChooseTemplate$1, { lastKind: templateKind, setKind: setTemplateKind }) }),
14512
+ /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(
14513
+ ChooseTemplate$1,
14514
+ {
14515
+ lastKind: templateKind,
14516
+ setKind: setTemplateKind
14517
+ }
14518
+ ) }),
14499
14519
  /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(Button, { variant: "primary", onClick: onSubmit, children: "Save" }) })
14500
14520
  ] }) }) })
14501
14521
  ] }) }),
@@ -14504,11 +14524,7 @@ const TemplatesTabContent$1 = ({ lastKind }) => {
14504
14524
  };
14505
14525
  const InvoiceTemplatesTab = () => {
14506
14526
  var _a;
14507
- const { data, isLoading } = useAdminCustomQuery(
14508
- "/document-invoice-settings",
14509
- [""],
14510
- {}
14511
- );
14527
+ const { data, isLoading } = useAdminCustomQuery("/document-invoice-settings", [""], {});
14512
14528
  if (isLoading) {
14513
14529
  return /* @__PURE__ */ jsx(CircularProgress, { size: 12 });
14514
14530
  }
@@ -14517,13 +14533,9 @@ const InvoiceTemplatesTab = () => {
14517
14533
 
14518
14534
  const ViewExample = ({ kind }) => {
14519
14535
  var _a, _b;
14520
- const { data, isLoading, isError, error } = useAdminCustomQuery(
14521
- `/packing-slip/preview`,
14522
- [],
14523
- {
14524
- template: kind
14525
- }
14526
- );
14536
+ const { data, isLoading, isError, error } = useAdminCustomQuery(`/packing-slip/preview`, [], {
14537
+ template: kind
14538
+ });
14527
14539
  if (isLoading) {
14528
14540
  return /* @__PURE__ */ jsx(Grid, { container: true, justifyContent: "center", children: /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(CircularProgress, { size: 12 }) }) });
14529
14541
  }
@@ -14537,7 +14549,9 @@ const ViewExample = ({ kind }) => {
14537
14549
  }
14538
14550
  if (data && data.buffer) {
14539
14551
  const anyBuffer = data.buffer;
14540
- const blob = new Blob([new Uint8Array(anyBuffer.data)], { type: "application/pdf" });
14552
+ const blob = new Blob([new Uint8Array(anyBuffer.data)], {
14553
+ type: "application/pdf"
14554
+ });
14541
14555
  const pdfURL = URL.createObjectURL(blob);
14542
14556
  return /* @__PURE__ */ jsx("iframe", { src: pdfURL, width: 660, height: 1e3 });
14543
14557
  } else {
@@ -14548,23 +14562,45 @@ const ChooseTemplate = (props) => {
14548
14562
  const handleChange = (checked) => {
14549
14563
  props.setKind(checked);
14550
14564
  };
14551
- return /* @__PURE__ */ jsxs(RadioGroup, { onValueChange: handleChange, defaultValue: props.lastKind.toString(), children: [
14552
- /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-x-3", children: [
14553
- /* @__PURE__ */ jsx(RadioGroup.Item, { value: PackingSlipTemplateKind.BASIC.toString(), id: PackingSlipTemplateKind.BASIC.toString() }),
14554
- /* @__PURE__ */ jsx(Label, { htmlFor: "radio_1", weight: "plus", children: "Basic" })
14555
- ] }),
14556
- /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-x-3", children: [
14557
- /* @__PURE__ */ jsx(RadioGroup.Item, { value: PackingSlipTemplateKind.BASIC_SMALL.toString(), id: PackingSlipTemplateKind.BASIC_SMALL.toString() }),
14558
- /* @__PURE__ */ jsx(Label, { htmlFor: "radio_1", weight: "plus", children: "Basic A7" })
14559
- ] })
14560
- ] });
14565
+ return /* @__PURE__ */ jsxs(
14566
+ RadioGroup,
14567
+ {
14568
+ onValueChange: handleChange,
14569
+ defaultValue: props.lastKind.toString(),
14570
+ children: [
14571
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-x-3", children: [
14572
+ /* @__PURE__ */ jsx(
14573
+ RadioGroup.Item,
14574
+ {
14575
+ value: PackingSlipTemplateKind.BASIC.toString(),
14576
+ id: PackingSlipTemplateKind.BASIC.toString()
14577
+ }
14578
+ ),
14579
+ /* @__PURE__ */ jsx(Label, { htmlFor: "radio_1", weight: "plus", children: "Basic" })
14580
+ ] }),
14581
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-x-3", children: [
14582
+ /* @__PURE__ */ jsx(
14583
+ RadioGroup.Item,
14584
+ {
14585
+ value: PackingSlipTemplateKind.BASIC_SMALL.toString(),
14586
+ id: PackingSlipTemplateKind.BASIC_SMALL.toString()
14587
+ }
14588
+ ),
14589
+ /* @__PURE__ */ jsx(Label, { htmlFor: "radio_1", weight: "plus", children: "Basic A7" })
14590
+ ] })
14591
+ ]
14592
+ }
14593
+ );
14561
14594
  };
14562
- const TemplatesTabContent = ({ lastKind }) => {
14563
- const [templateKind, setTemplateKind] = useState(lastKind !== void 0 && lastKind !== null ? lastKind : PackingSlipTemplateKind.BASIC);
14564
- const { mutate } = useAdminCustomPost(
14565
- `/document-packing-slip-settings/template`,
14566
- ["document-packing-slip-settings"]
14595
+ const TemplatesTabContent = ({
14596
+ lastKind
14597
+ }) => {
14598
+ const [templateKind, setTemplateKind] = useState(
14599
+ lastKind !== void 0 && lastKind !== null ? lastKind : PackingSlipTemplateKind.BASIC
14567
14600
  );
14601
+ const { mutate } = useAdminCustomPost(`/document-packing-slip-settings/template`, [
14602
+ "document-packing-slip-settings"
14603
+ ]);
14568
14604
  const onSubmit = () => {
14569
14605
  return mutate(
14570
14606
  {
@@ -14595,7 +14631,13 @@ const TemplatesTabContent = ({ lastKind }) => {
14595
14631
  /* @__PURE__ */ jsx(Grid, { item: true, xs: 12, md: 12, xl: 12, children: /* @__PURE__ */ jsx(Alert, { children: "Preview is based on the last order" }) }),
14596
14632
  /* @__PURE__ */ jsx(Grid, { item: true, xs: 12, md: 12, xl: 12, children: /* @__PURE__ */ jsx(Container, { children: /* @__PURE__ */ jsxs(Grid, { container: true, rowSpacing: 3, direction: "column", children: [
14597
14633
  /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(Heading, { level: "h1", children: "Choose template" }) }),
14598
- /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(ChooseTemplate, { lastKind: templateKind, setKind: setTemplateKind }) }),
14634
+ /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(
14635
+ ChooseTemplate,
14636
+ {
14637
+ lastKind: templateKind,
14638
+ setKind: setTemplateKind
14639
+ }
14640
+ ) }),
14599
14641
  /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(Button, { variant: "primary", onClick: onSubmit, children: "Save" }) })
14600
14642
  ] }) }) })
14601
14643
  ] }) }),
@@ -14604,11 +14646,7 @@ const TemplatesTabContent = ({ lastKind }) => {
14604
14646
  };
14605
14647
  const PackingSlipTemplatesTab = () => {
14606
14648
  var _a;
14607
- const { data, isLoading } = useAdminCustomQuery(
14608
- "/document-packing-slip-settings",
14609
- [""],
14610
- {}
14611
- );
14649
+ const { data, isLoading } = useAdminCustomQuery("/document-packing-slip-settings", [""], {});
14612
14650
  if (isLoading) {
14613
14651
  return /* @__PURE__ */ jsx(CircularProgress, { size: 12 });
14614
14652
  }
@@ -14651,7 +14689,12 @@ var __spreadValues$2 = (a, b) => {
14651
14689
  return a;
14652
14690
  };
14653
14691
  var __spreadProps$1 = (a, b) => __defProps$1(a, __getOwnPropDescs$1(b));
14654
- const AddressField = ({ name, placeholder, initValue, register }) => {
14692
+ const AddressField = ({
14693
+ name,
14694
+ placeholder,
14695
+ initValue,
14696
+ register
14697
+ }) => {
14655
14698
  return /* @__PURE__ */ jsxs(Grid, { container: true, direction: "column", spacing: 1, marginTop: 2, children: [
14656
14699
  /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(Label, { size: "small", children: name }) }),
14657
14700
  /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(
@@ -14664,12 +14707,12 @@ const AddressField = ({ name, placeholder, initValue, register }) => {
14664
14707
  ) })
14665
14708
  ] });
14666
14709
  };
14667
- const AddressForm = ({ address, setOpenModal }) => {
14710
+ const AddressForm = ({
14711
+ address,
14712
+ setOpenModal
14713
+ }) => {
14668
14714
  const { register, handleSubmit } = useForm();
14669
- const { mutate } = useAdminCustomPost(
14670
- `/document-settings/document-address`,
14671
- ["document-settings"]
14672
- );
14715
+ const { mutate } = useAdminCustomPost(`/document-settings/document-address`, ["document-settings"]);
14673
14716
  const onSubmit = (data) => {
14674
14717
  return mutate(
14675
14718
  {
@@ -14764,37 +14807,41 @@ const AddressForm = ({ address, setOpenModal }) => {
14764
14807
  };
14765
14808
  const AddressModalDetails = ({ setOpenModal }) => {
14766
14809
  var _a;
14767
- const { data, isLoading } = useAdminCustomQuery(
14768
- "/document-settings",
14769
- [""],
14770
- {}
14771
- );
14810
+ const { data, isLoading } = useAdminCustomQuery("/document-settings", [""], {});
14772
14811
  if (isLoading) {
14773
14812
  return /* @__PURE__ */ jsx(FocusModal.Body, { children: /* @__PURE__ */ jsx(CircularProgress, {}) });
14774
14813
  }
14775
- return /* @__PURE__ */ jsx(FocusModal.Body, { children: /* @__PURE__ */ jsxs(Grid, { container: true, direction: "column", alignContent: "center", paddingTop: 8, children: [
14776
- /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(Heading, { children: "Store address" }) }),
14777
- /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(Text, { children: "This address will be used on your documents." }) }),
14778
- /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(Text, { children: "Presence of field on document depends on template." }) }),
14779
- /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(AddressForm, { address: (_a = data == null ? void 0 : data.settings) == null ? void 0 : _a.store_address, setOpenModal }) })
14780
- ] }) });
14781
- };
14782
- const AddressChangeModal = () => {
14783
- const [open, setOpen] = useState(false);
14784
- return /* @__PURE__ */ jsxs(
14785
- FocusModal,
14814
+ return /* @__PURE__ */ jsx(FocusModal.Body, { children: /* @__PURE__ */ jsxs(
14815
+ Grid,
14786
14816
  {
14787
- open,
14788
- onOpenChange: setOpen,
14817
+ container: true,
14818
+ direction: "column",
14819
+ alignContent: "center",
14820
+ paddingTop: 8,
14789
14821
  children: [
14790
- /* @__PURE__ */ jsx(FocusModal.Trigger, { asChild: true, children: /* @__PURE__ */ jsx(Button, { children: "Change address" }) }),
14791
- /* @__PURE__ */ jsxs(FocusModal.Content, { children: [
14792
- /* @__PURE__ */ jsx(FocusModal.Header, {}),
14793
- /* @__PURE__ */ jsx(AddressModalDetails, { setOpenModal: setOpen })
14794
- ] })
14822
+ /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(Heading, { children: "Store address" }) }),
14823
+ /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(Text, { children: "This address will be used on your documents." }) }),
14824
+ /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(Text, { children: "Presence of field on document depends on template." }) }),
14825
+ /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(
14826
+ AddressForm,
14827
+ {
14828
+ address: (_a = data == null ? void 0 : data.settings) == null ? void 0 : _a.store_address,
14829
+ setOpenModal
14830
+ }
14831
+ ) })
14795
14832
  ]
14796
14833
  }
14797
- );
14834
+ ) });
14835
+ };
14836
+ const AddressChangeModal = () => {
14837
+ const [open, setOpen] = useState(false);
14838
+ return /* @__PURE__ */ jsxs(FocusModal, { open, onOpenChange: setOpen, children: [
14839
+ /* @__PURE__ */ jsx(FocusModal.Trigger, { asChild: true, children: /* @__PURE__ */ jsx(Button, { children: "Change address" }) }),
14840
+ /* @__PURE__ */ jsxs(FocusModal.Content, { children: [
14841
+ /* @__PURE__ */ jsx(FocusModal.Header, {}),
14842
+ /* @__PURE__ */ jsx(AddressModalDetails, { setOpenModal: setOpen })
14843
+ ] })
14844
+ ] });
14798
14845
  };
14799
14846
 
14800
14847
  var __defProp$1 = Object.defineProperty;
@@ -14816,7 +14863,10 @@ var __spreadValues$1 = (a, b) => {
14816
14863
  return a;
14817
14864
  };
14818
14865
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
14819
- const LogoFields = ({ logoSource, register }) => {
14866
+ const LogoFields = ({
14867
+ logoSource,
14868
+ register
14869
+ }) => {
14820
14870
  const [logoUrl, setLogoUrl] = useState(logoSource);
14821
14871
  const [isValidUrl, setIsValidUrl] = useState(true);
14822
14872
  const [imgLoaded, setIsImageLoaded] = useState(false);
@@ -14842,15 +14892,44 @@ const LogoFields = ({ logoSource, register }) => {
14842
14892
  onChange: handleInputChange
14843
14893
  })
14844
14894
  ) }),
14845
- /* @__PURE__ */ jsx(Grid, { container: true, justifyContent: "center", alignContent: "center", marginTop: 5, children: /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx("div", { style: { height: "200px", width: "300px", overflow: "hidden", border: imgLoaded ? void 0 : "1px solid rgba(0, 0, 0, 0.12)" }, children: logoUrl && isValidUrl && /* @__PURE__ */ jsx(Grid, { item: true, textAlign: "center", children: /* @__PURE__ */ jsx("img", { src: logoUrl, alt: "Preview", style: { maxWidth: 300, maxHeight: 200 }, onLoad: handleOnLoad, onError: handleImageError }) }) }) }) })
14895
+ /* @__PURE__ */ jsx(
14896
+ Grid,
14897
+ {
14898
+ container: true,
14899
+ justifyContent: "center",
14900
+ alignContent: "center",
14901
+ marginTop: 5,
14902
+ children: /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(
14903
+ "div",
14904
+ {
14905
+ style: {
14906
+ height: "200px",
14907
+ width: "300px",
14908
+ overflow: "hidden",
14909
+ border: imgLoaded ? void 0 : "1px solid rgba(0, 0, 0, 0.12)"
14910
+ },
14911
+ children: logoUrl && isValidUrl && /* @__PURE__ */ jsx(Grid, { item: true, textAlign: "center", children: /* @__PURE__ */ jsx(
14912
+ "img",
14913
+ {
14914
+ src: logoUrl,
14915
+ alt: "Preview",
14916
+ style: { maxWidth: 300, maxHeight: 200 },
14917
+ onLoad: handleOnLoad,
14918
+ onError: handleImageError
14919
+ }
14920
+ ) })
14921
+ }
14922
+ ) })
14923
+ }
14924
+ )
14846
14925
  ] });
14847
14926
  };
14848
- const LogoForm = ({ logoSource, setOpenModal }) => {
14927
+ const LogoForm = ({
14928
+ logoSource,
14929
+ setOpenModal
14930
+ }) => {
14849
14931
  const { register, handleSubmit } = useForm();
14850
- const { mutate } = useAdminCustomPost(
14851
- `/document-settings/logo`,
14852
- ["logo"]
14853
- );
14932
+ const { mutate } = useAdminCustomPost(`/document-settings/logo`, ["logo"]);
14854
14933
  const onSubmit = (data) => {
14855
14934
  return mutate(
14856
14935
  {
@@ -14897,55 +14976,53 @@ const LogoForm = ({ logoSource, setOpenModal }) => {
14897
14976
  ] }) });
14898
14977
  };
14899
14978
  const LogoModalDetails = ({ setOpenModal }) => {
14900
- const { data, isLoading } = useAdminCustomQuery(
14901
- "/document-settings",
14902
- [""],
14903
- {}
14904
- );
14979
+ const { data, isLoading } = useAdminCustomQuery("/document-settings", [""], {});
14905
14980
  if (isLoading) {
14906
14981
  return /* @__PURE__ */ jsx(FocusModal.Body, { children: /* @__PURE__ */ jsx(CircularProgress, {}) });
14907
14982
  }
14908
- return /* @__PURE__ */ jsx(FocusModal.Body, { children: /* @__PURE__ */ jsxs(Grid, { container: true, direction: "column", alignContent: "center", paddingTop: 8, children: [
14909
- /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(Heading, { children: "Store logo" }) }),
14910
- /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(Text, { children: "This logo will be used on your documents." }) }),
14911
- /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(Text, { children: "Presence of logo on document depends on template." }) }),
14912
- /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(LogoForm, { logoSource: data.settings && data.settings.store_logo_source ? data.settings.store_logo_source : void 0, setOpenModal }) })
14913
- ] }) });
14914
- };
14915
- const LogoChangeModal = () => {
14916
- const [open, setOpen] = useState(false);
14917
- return /* @__PURE__ */ jsxs(
14918
- FocusModal,
14983
+ return /* @__PURE__ */ jsx(FocusModal.Body, { children: /* @__PURE__ */ jsxs(
14984
+ Grid,
14919
14985
  {
14920
- open,
14921
- onOpenChange: setOpen,
14986
+ container: true,
14987
+ direction: "column",
14988
+ alignContent: "center",
14989
+ paddingTop: 8,
14922
14990
  children: [
14923
- /* @__PURE__ */ jsx(FocusModal.Trigger, { asChild: true, children: /* @__PURE__ */ jsx(Button, { children: "Change logo" }) }),
14924
- /* @__PURE__ */ jsxs(FocusModal.Content, { children: [
14925
- /* @__PURE__ */ jsx(FocusModal.Header, {}),
14926
- /* @__PURE__ */ jsx(LogoModalDetails, { setOpenModal: setOpen })
14927
- ] })
14991
+ /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(Heading, { children: "Store logo" }) }),
14992
+ /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(Text, { children: "This logo will be used on your documents." }) }),
14993
+ /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(Text, { children: "Presence of logo on document depends on template." }) }),
14994
+ /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(
14995
+ LogoForm,
14996
+ {
14997
+ logoSource: data.settings && data.settings.store_logo_source ? data.settings.store_logo_source : void 0,
14998
+ setOpenModal
14999
+ }
15000
+ ) })
14928
15001
  ]
14929
15002
  }
14930
- );
15003
+ ) });
15004
+ };
15005
+ const LogoChangeModal = () => {
15006
+ const [open, setOpen] = useState(false);
15007
+ return /* @__PURE__ */ jsxs(FocusModal, { open, onOpenChange: setOpen, children: [
15008
+ /* @__PURE__ */ jsx(FocusModal.Trigger, { asChild: true, children: /* @__PURE__ */ jsx(Button, { children: "Change logo" }) }),
15009
+ /* @__PURE__ */ jsxs(FocusModal.Content, { children: [
15010
+ /* @__PURE__ */ jsx(FocusModal.Header, {}),
15011
+ /* @__PURE__ */ jsx(LogoModalDetails, { setOpenModal: setOpen })
15012
+ ] })
15013
+ ] });
14931
15014
  };
14932
15015
 
14933
- const InvoiceSettingsDisplayNumber = ({ formatNumber, forcedNumber }) => {
14934
- const { data, isLoading } = useAdminCustomQuery(
14935
- "/invoice/display-number",
14936
- [formatNumber, forcedNumber],
14937
- {
14938
- formatNumber,
14939
- forcedNumber
14940
- }
14941
- );
15016
+ const InvoiceSettingsDisplayNumber = ({
15017
+ formatNumber,
15018
+ forcedNumber
15019
+ }) => {
15020
+ const { data, isLoading } = useAdminCustomQuery("/invoice/display-number", [formatNumber, forcedNumber], {
15021
+ formatNumber,
15022
+ forcedNumber
15023
+ });
14942
15024
  if (isLoading) {
14943
- return /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(
14944
- Input,
14945
- {
14946
- readOnly: true
14947
- }
14948
- ) });
15025
+ return /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(Input, { readOnly: true }) });
14949
15026
  }
14950
15027
  return /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(
14951
15028
  Input,
@@ -14973,15 +15050,23 @@ var __spreadValues = (a, b) => {
14973
15050
  }
14974
15051
  return a;
14975
15052
  };
14976
- const InvoiceSettingsForm = ({ invoiceSettings, setOpenModal }) => {
14977
- const { register, handleSubmit, formState: { errors } } = useForm();
14978
- const [formatNumber, setFormatNumber] = useState(invoiceSettings == null ? void 0 : invoiceSettings.invoice_number_format);
14979
- const [forcedNumber, setForcedNumber] = useState(invoiceSettings == null ? void 0 : invoiceSettings.invoice_forced_number);
14980
- const [error, setError] = useState(void 0);
14981
- const { mutate } = useAdminCustomPost(
14982
- `/document-invoice-settings`,
14983
- ["document-invoice-settings"]
15053
+ const InvoiceSettingsForm = ({
15054
+ invoiceSettings,
15055
+ setOpenModal
15056
+ }) => {
15057
+ const {
15058
+ register,
15059
+ handleSubmit,
15060
+ formState: { errors }
15061
+ } = useForm();
15062
+ const [formatNumber, setFormatNumber] = useState(
15063
+ invoiceSettings == null ? void 0 : invoiceSettings.invoice_number_format
15064
+ );
15065
+ const [forcedNumber, setForcedNumber] = useState(
15066
+ invoiceSettings == null ? void 0 : invoiceSettings.invoice_forced_number
14984
15067
  );
15068
+ const [error, setError] = useState(void 0);
15069
+ const { mutate } = useAdminCustomPost(`/document-invoice-settings`, ["document-invoice-settings"]);
14985
15070
  const onSubmit = (data) => {
14986
15071
  return mutate(
14987
15072
  {
@@ -15077,7 +15162,13 @@ const InvoiceSettingsForm = ({ invoiceSettings, setOpenModal }) => {
15077
15162
  ] }),
15078
15163
  /* @__PURE__ */ jsxs(Grid, { container: true, direction: "column", spacing: 1, marginTop: 2, children: [
15079
15164
  /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(Label, { size: "small", children: "Your next invoice number will be:" }) }),
15080
- errors.formatNumber == void 0 && errors.forcedNumber == void 0 && error == void 0 && /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(InvoiceSettingsDisplayNumber, { formatNumber, forcedNumber: forcedNumber !== void 0 && forcedNumber !== null ? parseInt(forcedNumber) : void 0 }) })
15165
+ errors.formatNumber == void 0 && errors.forcedNumber == void 0 && error == void 0 && /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(
15166
+ InvoiceSettingsDisplayNumber,
15167
+ {
15168
+ formatNumber,
15169
+ forcedNumber: forcedNumber !== void 0 && forcedNumber !== null ? parseInt(forcedNumber) : void 0
15170
+ }
15171
+ ) })
15081
15172
  ] }),
15082
15173
  /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(
15083
15174
  Button,
@@ -15105,28 +15196,36 @@ const InvoiceSettingsModalDetails = ({ setOpenModal }) => {
15105
15196
  if (isLoading) {
15106
15197
  return /* @__PURE__ */ jsx(FocusModal.Body, { children: /* @__PURE__ */ jsx(CircularProgress, {}) });
15107
15198
  }
15108
- return /* @__PURE__ */ jsx(FocusModal.Body, { children: /* @__PURE__ */ jsxs(Grid, { container: true, direction: "column", alignContent: "center", paddingTop: 8, children: [
15109
- /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(Heading, { children: "Invoice settings" }) }),
15110
- /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(Text, { children: "These settings will be applied for newly generated invoices." }) }),
15111
- /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(InvoiceSettingsForm, { invoiceSettings: data == null ? void 0 : data.settings, setOpenModal }) })
15112
- ] }) });
15113
- };
15114
- const InvoiceSettingsModal = () => {
15115
- const [open, setOpen] = useState(false);
15116
- return /* @__PURE__ */ jsxs(
15117
- FocusModal,
15199
+ return /* @__PURE__ */ jsx(FocusModal.Body, { children: /* @__PURE__ */ jsxs(
15200
+ Grid,
15118
15201
  {
15119
- open,
15120
- onOpenChange: setOpen,
15202
+ container: true,
15203
+ direction: "column",
15204
+ alignContent: "center",
15205
+ paddingTop: 8,
15121
15206
  children: [
15122
- /* @__PURE__ */ jsx(FocusModal.Trigger, { asChild: true, children: /* @__PURE__ */ jsx(Button, { children: "Change settings" }) }),
15123
- /* @__PURE__ */ jsxs(FocusModal.Content, { children: [
15124
- /* @__PURE__ */ jsx(FocusModal.Header, {}),
15125
- /* @__PURE__ */ jsx(InvoiceSettingsModalDetails, { setOpenModal: setOpen })
15126
- ] })
15207
+ /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(Heading, { children: "Invoice settings" }) }),
15208
+ /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(Text, { children: "These settings will be applied for newly generated invoices." }) }),
15209
+ /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(
15210
+ InvoiceSettingsForm,
15211
+ {
15212
+ invoiceSettings: data == null ? void 0 : data.settings,
15213
+ setOpenModal
15214
+ }
15215
+ ) })
15127
15216
  ]
15128
15217
  }
15129
- );
15218
+ ) });
15219
+ };
15220
+ const InvoiceSettingsModal = () => {
15221
+ const [open, setOpen] = useState(false);
15222
+ return /* @__PURE__ */ jsxs(FocusModal, { open, onOpenChange: setOpen, children: [
15223
+ /* @__PURE__ */ jsx(FocusModal.Trigger, { asChild: true, children: /* @__PURE__ */ jsx(Button, { children: "Change settings" }) }),
15224
+ /* @__PURE__ */ jsxs(FocusModal.Content, { children: [
15225
+ /* @__PURE__ */ jsx(FocusModal.Header, {}),
15226
+ /* @__PURE__ */ jsx(InvoiceSettingsModalDetails, { setOpenModal: setOpen })
15227
+ ] })
15228
+ ] });
15130
15229
  };
15131
15230
 
15132
15231
  const SettingsTab = () => {
@@ -15156,46 +15255,108 @@ const ProTab = () => {
15156
15255
  return /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 2, justifyContent: "center", children: [
15157
15256
  /* @__PURE__ */ jsx(Grid, { container: true, justifyContent: "center", marginTop: 6, children: /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(Heading, { level: "h1", style: { color: "purple" }, children: "Manage documents on the next level" }) }) }),
15158
15257
  /* @__PURE__ */ jsxs(Grid, { container: true, justifyContent: "center", marginTop: 1, spacing: 5, children: [
15159
- /* @__PURE__ */ jsx(Grid, { item: true, xs: 3, md: 3, xl: 3, children: /* @__PURE__ */ jsx(Container, { style: { borderColor: "purple", borderWidth: 1, height: HEIGHT }, children: /* @__PURE__ */ jsxs(Grid, { container: true, rowSpacing: 3, children: [
15160
- /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(Heading, { level: "h1", children: "Automation" }) }),
15161
- /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsxs("ul", { style: { listStyleType: "circle" }, children: [
15162
- /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(Text, { children: "Automatically send invoices to customers" }) }),
15163
- /* @__PURE__ */ jsx("li", { style: { marginTop: 3 }, children: /* @__PURE__ */ jsx(Text, { children: "Automatically send packing slips to fulfillment providers" }) }),
15164
- /* @__PURE__ */ jsx("li", { style: { marginTop: 3 }, children: /* @__PURE__ */ jsx(Text, { children: "Automatically detect the language of your customer" }) })
15165
- ] }) })
15166
- ] }) }) }),
15167
- /* @__PURE__ */ jsx(Grid, { item: true, xs: 3, md: 3, xl: 3, children: /* @__PURE__ */ jsx(Container, { style: { borderColor: "purple", borderWidth: 1, height: HEIGHT }, children: /* @__PURE__ */ jsxs(Grid, { container: true, rowSpacing: 3, children: [
15168
- /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(Heading, { level: "h1", children: "New templates" }) }),
15169
- /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsxs("ul", { style: { listStyleType: "circle" }, children: [
15170
- /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(Text, { children: "Access new premium templates for invoices and other documents" }) }),
15171
- /* @__PURE__ */ jsx("li", { style: { marginTop: 3 }, children: /* @__PURE__ */ jsx(Text, { children: "Send us your custom template, and we will create it for you" }) })
15172
- ] }) })
15173
- ] }) }) }),
15174
- /* @__PURE__ */ jsx(Grid, { item: true, xs: 3, md: 3, xl: 3, children: /* @__PURE__ */ jsx(Container, { style: { borderColor: "purple", borderWidth: 1, height: HEIGHT }, children: /* @__PURE__ */ jsxs(Grid, { container: true, rowSpacing: 3, children: [
15175
- /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(Heading, { level: "h1", children: "Advanced configuration" }) }),
15176
- /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsxs("ul", { style: { listStyleType: "circle" }, children: [
15177
- /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(Text, { children: "Set different addresses for various document types" }) }),
15178
- /* @__PURE__ */ jsx("li", { style: { marginTop: 3 }, children: /* @__PURE__ */ jsx(Text, { children: "Customize settings for sending invoices to customers" }) }),
15179
- /* @__PURE__ */ jsx("li", { style: { marginTop: 3 }, children: /* @__PURE__ */ jsx(Text, { children: "Tailor settings for sending packing slips to fulfillment providers" }) })
15180
- ] }) })
15181
- ] }) }) }),
15182
- /* @__PURE__ */ jsx(Grid, { item: true, xs: 3, md: 3, xl: 3, children: /* @__PURE__ */ jsx(Container, { style: { borderColor: "purple", borderWidth: 1, height: HEIGHT }, children: /* @__PURE__ */ jsxs(Grid, { container: true, rowSpacing: 3, children: [
15183
- /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(Heading, { level: "h1", children: "Professional support" }) }),
15184
- /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsxs("ul", { style: { listStyleType: "circle" }, children: [
15185
- /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(Text, { children: "Priority bug resolution" }) }),
15186
- /* @__PURE__ */ jsx("li", { style: { marginTop: 3 }, children: /* @__PURE__ */ jsx(Text, { children: "Dedicated channel for evaluating your feature requests" }) }),
15187
- /* @__PURE__ */ jsx("li", { style: { marginTop: 3 }, children: /* @__PURE__ */ jsx(Text, { children: "Long-term cooperation, including support for other plugins" }) })
15188
- ] }) })
15189
- ] }) }) })
15258
+ /* @__PURE__ */ jsx(Grid, { item: true, xs: 3, md: 3, xl: 3, children: /* @__PURE__ */ jsx(
15259
+ Container,
15260
+ {
15261
+ style: { borderColor: "purple", borderWidth: 1, height: HEIGHT },
15262
+ children: /* @__PURE__ */ jsxs(Grid, { container: true, rowSpacing: 3, children: [
15263
+ /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(Heading, { level: "h1", children: "Automation" }) }),
15264
+ /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsxs("ul", { style: { listStyleType: "circle" }, children: [
15265
+ /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(Text, { children: "Automatically send invoices to customers" }) }),
15266
+ /* @__PURE__ */ jsx("li", { style: { marginTop: 3 }, children: /* @__PURE__ */ jsx(Text, { children: "Automatically send packing slips to fulfillment providers" }) }),
15267
+ /* @__PURE__ */ jsx("li", { style: { marginTop: 3 }, children: /* @__PURE__ */ jsx(Text, { children: "Automatically detect the language of your customer" }) })
15268
+ ] }) })
15269
+ ] })
15270
+ }
15271
+ ) }),
15272
+ /* @__PURE__ */ jsx(Grid, { item: true, xs: 3, md: 3, xl: 3, children: /* @__PURE__ */ jsx(
15273
+ Container,
15274
+ {
15275
+ style: { borderColor: "purple", borderWidth: 1, height: HEIGHT },
15276
+ children: /* @__PURE__ */ jsxs(Grid, { container: true, rowSpacing: 3, children: [
15277
+ /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(Heading, { level: "h1", children: "New templates" }) }),
15278
+ /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsxs("ul", { style: { listStyleType: "circle" }, children: [
15279
+ /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(Text, { children: "Access new premium templates for invoices and other documents" }) }),
15280
+ /* @__PURE__ */ jsx("li", { style: { marginTop: 3 }, children: /* @__PURE__ */ jsx(Text, { children: "Send us your custom template, and we will create it for you" }) })
15281
+ ] }) })
15282
+ ] })
15283
+ }
15284
+ ) }),
15285
+ /* @__PURE__ */ jsx(Grid, { item: true, xs: 3, md: 3, xl: 3, children: /* @__PURE__ */ jsx(
15286
+ Container,
15287
+ {
15288
+ style: { borderColor: "purple", borderWidth: 1, height: HEIGHT },
15289
+ children: /* @__PURE__ */ jsxs(Grid, { container: true, rowSpacing: 3, children: [
15290
+ /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(Heading, { level: "h1", children: "Advanced configuration" }) }),
15291
+ /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsxs("ul", { style: { listStyleType: "circle" }, children: [
15292
+ /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(Text, { children: "Set different addresses for various document types" }) }),
15293
+ /* @__PURE__ */ jsx("li", { style: { marginTop: 3 }, children: /* @__PURE__ */ jsx(Text, { children: "Customize settings for sending invoices to customers" }) }),
15294
+ /* @__PURE__ */ jsx("li", { style: { marginTop: 3 }, children: /* @__PURE__ */ jsx(Text, { children: "Tailor settings for sending packing slips to fulfillment providers" }) })
15295
+ ] }) })
15296
+ ] })
15297
+ }
15298
+ ) }),
15299
+ /* @__PURE__ */ jsx(Grid, { item: true, xs: 3, md: 3, xl: 3, children: /* @__PURE__ */ jsx(
15300
+ Container,
15301
+ {
15302
+ style: { borderColor: "purple", borderWidth: 1, height: HEIGHT },
15303
+ children: /* @__PURE__ */ jsxs(Grid, { container: true, rowSpacing: 3, children: [
15304
+ /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(Heading, { level: "h1", children: "Professional support" }) }),
15305
+ /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsxs("ul", { style: { listStyleType: "circle" }, children: [
15306
+ /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(Text, { children: "Priority bug resolution" }) }),
15307
+ /* @__PURE__ */ jsx("li", { style: { marginTop: 3 }, children: /* @__PURE__ */ jsx(Text, { children: "Dedicated channel for evaluating your feature requests" }) }),
15308
+ /* @__PURE__ */ jsx("li", { style: { marginTop: 3 }, children: /* @__PURE__ */ jsx(Text, { children: "Long-term cooperation, including support for other plugins" }) })
15309
+ ] }) })
15310
+ ] })
15311
+ }
15312
+ ) })
15190
15313
  ] }),
15191
- /* @__PURE__ */ jsx(Grid, { container: true, spacing: 3, direction: "column", alignContent: "center", marginTop: 6, children: /* @__PURE__ */ jsxs(Grid, { container: true, direction: "row", justifyContent: "center", columnSpacing: 1, children: [
15192
- /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(Heading, { level: "h1", color: "purple", children: "Contact:" }) }),
15193
- /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(Link$2, { href: "mailto:labs@rsoftcon.com", children: /* @__PURE__ */ jsx(Heading, { level: "h1", color: "purple", children: "labs@rsoftcon.com" }) }) })
15194
- ] }) }),
15195
- /* @__PURE__ */ jsx(Grid, { container: true, spacing: 3, direction: "column", alignContent: "center", marginTop: 6, children: /* @__PURE__ */ jsxs(Grid, { container: true, direction: "row", justifyContent: "center", columnSpacing: 1, children: [
15196
- /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(Text, { children: "You can hide this tab if you feel it is intruisive. See:" }) }),
15197
- /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(Link$2, { href: "https://github.com/RSC-Labs/medusa-documents?tab=readme-ov-file#hide-pro-version-tab", children: /* @__PURE__ */ jsx(Text, { children: "How to hide this tab?" }) }) })
15198
- ] }) })
15314
+ /* @__PURE__ */ jsx(
15315
+ Grid,
15316
+ {
15317
+ container: true,
15318
+ spacing: 3,
15319
+ direction: "column",
15320
+ alignContent: "center",
15321
+ marginTop: 6,
15322
+ children: /* @__PURE__ */ jsxs(
15323
+ Grid,
15324
+ {
15325
+ container: true,
15326
+ direction: "row",
15327
+ justifyContent: "center",
15328
+ columnSpacing: 1,
15329
+ children: [
15330
+ /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(Heading, { level: "h1", color: "purple", children: "Contact:" }) }),
15331
+ /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(Link$2, { href: "mailto:labs@rsoftcon.com", children: /* @__PURE__ */ jsx(Heading, { level: "h1", color: "purple", children: "labs@rsoftcon.com" }) }) })
15332
+ ]
15333
+ }
15334
+ )
15335
+ }
15336
+ ),
15337
+ /* @__PURE__ */ jsx(
15338
+ Grid,
15339
+ {
15340
+ container: true,
15341
+ spacing: 3,
15342
+ direction: "column",
15343
+ alignContent: "center",
15344
+ marginTop: 6,
15345
+ children: /* @__PURE__ */ jsxs(
15346
+ Grid,
15347
+ {
15348
+ container: true,
15349
+ direction: "row",
15350
+ justifyContent: "center",
15351
+ columnSpacing: 1,
15352
+ children: [
15353
+ /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(Text, { children: "You can hide this tab if you feel it is intruisive. See:" }) }),
15354
+ /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(Link$2, { href: "https://github.com/RSC-Labs/medusa-documents?tab=readme-ov-file#hide-pro-version-tab", children: /* @__PURE__ */ jsx(Text, { children: "How to hide this tab?" }) }) })
15355
+ ]
15356
+ }
15357
+ )
15358
+ }
15359
+ )
15199
15360
  ] });
15200
15361
  };
15201
15362