@feedmepos/mf-inventory-portal 1.8.0-dev.8 → 1.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{App-C8i7vBxz.js → App-BPdZMhM8.js} +515 -536
- package/dist/{ApprovalView-GHgTeCBV.js → ApprovalView-UzjSuZ2L.js} +26 -25
- package/dist/{BindingsDialog-C4-S2CWk.js → BindingsDialog-Cb6WRlKq.js} +2 -2
- package/dist/{BindingsPicker-C7YUArBj.js → BindingsPicker-CtD4U4lv.js} +2 -2
- package/dist/{BindingsTable-1Zoqi4ZS.js → BindingsTable-CX-3403K.js} +10 -10
- package/dist/BulkReceiveRequestPage-CUq1Lmww.js +2839 -0
- package/dist/{ChangeLocationComponent.vue_vue_type_script_setup_true_lang-DFSg0-gv.js → ChangeLocationComponent.vue_vue_type_script_setup_true_lang-C5cA-lGH.js} +1 -1
- package/dist/{ClosingDraftView-CnWFyWSE.js → ClosingDraftView-Ca_SvdWQ.js} +748 -746
- package/dist/{ClosingHistoryView-Bkm0voU6.js → ClosingHistoryView-DzkeJYoe.js} +7 -7
- package/dist/{ClosingTemplateView-Bz81JTsg.js → ClosingTemplateView-DSrelbso.js} +22 -21
- package/dist/{CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-6s-24euf.js → CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-BuOuXPy1.js} +1 -1
- package/dist/{DefaultView-1RRzbPB3.js → DefaultView-Dw-7Y8vD.js} +2 -2
- package/dist/{DeliveryOrderPrintPreview-KcLqjOj1.js → DeliveryOrderPrintPreview-C5qJsv_O.js} +15 -15
- package/dist/{EmailDialog.vue_vue_type_script_setup_true_lang-r0Q0qhoK.js → EmailDialog.vue_vue_type_script_setup_true_lang-D8od7aKT.js} +9847 -9723
- package/dist/{FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-Cwmk3NLS.js → FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-ChekXW32.js} +11 -10
- package/dist/FeatureCapabilityGate-C-IM5_7n.js +82 -0
- package/dist/FeaturePageGate.vue_vue_type_script_setup_true_lang-DEDU1XUC.js +189 -0
- package/dist/{FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-pzIzIWpX.js → FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-B861gqIJ.js} +1 -1
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-B6cFB4vX.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Ckli_nZx.js} +2 -2
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-D_o6pX9i.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BEjFoMJJ.js} +2 -2
- package/dist/{FmMultiselectDialog-CC_Na_p1.js → FmMultiselectDialog-CShFKSIW.js} +2 -2
- package/dist/{FmMultiselectDialog-D0GhmOQ9.js → FmMultiselectDialog-Ci-6NMsV.js} +2 -2
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-DQlSMRoB.js → FmUnitInput.vue_vue_type_script_setup_true_lang-Dkx5vVap.js} +105 -99
- package/dist/ImportView-7ij7RUHI.js +1540 -0
- package/dist/{IngredientsView-B2I2OPSb.js → IngredientsView-fIPtTyFD.js} +367 -365
- package/dist/{IntegrationExplorerView-WK1EmwLA.js → IntegrationExplorerView-DLYT4T-I.js} +1537 -1620
- package/dist/IntegrationPlatformView-CwywuK_y.js +13385 -0
- package/dist/{IntegrationView-CeaL92Yj.js → IntegrationView-DnyVHXge.js} +2380 -2340
- package/dist/{InventoryBindingForm-DgtaDM0I.js → InventoryBindingForm-BBs8v7CL.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-CqDN355J.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang--pI5wz_M.js} +134 -134
- package/dist/{InventoryBindingSummary-C_W456aj.js → InventoryBindingSummary-CwIrQ8lG.js} +1 -1
- package/dist/JsonViewer.vue_vue_type_script_setup_true_lang-C_hg75l0.js +25 -0
- package/dist/NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DJSbskyn.js +79 -0
- package/dist/PlanTierBadge.vue_vue_type_script_setup_true_lang-CM3gtYZo.js +19 -0
- package/dist/{PlanUpgradeDialog.vue_vue_type_script_setup_true_lang-D6-lo7iI.js → PlanUpgradeDialog.vue_vue_type_script_setup_true_lang-0F-yOcPC.js} +1 -1
- package/dist/PremiumUpgradePage.vue_vue_type_script_setup_true_lang-DGAxPOEh.js +58 -0
- package/dist/ProductionRunDetailPage-C_WC4qfP.js +2317 -0
- package/dist/{ProductionRunLifecycleDialogs.vue_vue_type_script_setup_true_lang-DwBY6gIb.js → ProductionRunLifecycleDialogs.vue_vue_type_script_setup_true_lang-BIkoMOM2.js} +3051 -3161
- package/dist/ProductionRunPage-DuzVrjbZ.js +954 -0
- package/dist/{PublishView-Dv-W6ntx.js → PublishView-BVg44yke.js} +3 -3
- package/dist/{PurchaseOrderPrintPreview-D1TAnJd_.js → PurchaseOrderPrintPreview-CNx6unyj.js} +17 -17
- package/dist/{ReceiveRequestView-Rc_uw_Ad.js → ReceiveRequestView-DeNrYOUt.js} +17 -16
- package/dist/RecipeView-De3pLsPR.js +3272 -0
- package/dist/{SettingsView-K5wAt8oo.js → SettingsView-B5ud0KtI.js} +398 -425
- package/dist/StockView-4N3NRjY8.js +3003 -0
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-CsRLy0xI.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DvlRRKdt.js} +1 -1
- package/dist/{SupplierView-CLVupRN0.js → SupplierView-fC9oe5nu.js} +21 -20
- package/dist/{SurchargeView-CToB_z5v.js → SurchargeView-H6rv7u8A.js} +7 -7
- package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-CvqIw9q6.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-DFdrmR2Z.js} +2 -2
- package/dist/TableActionableRow.vue_vue_type_script_setup_true_lang-gJQQKKAC.js +71 -0
- package/dist/TemplatePublishDialog.vue_vue_type_script_setup_true_lang-BivHE94R.js +332 -0
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-Df01LqHp.js +4953 -0
- package/dist/TransferTemplateView-CVUnofkI.js +2347 -0
- package/dist/{UnitCostHistoryView-BMB2MeTh.js → UnitCostHistoryView-DjD2WAFI.js} +4 -4
- package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-Dn8Y8zfp.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-CE0zHU6c.js} +4 -4
- package/dist/{UnitView-Bl8jws6R.js → UnitView-DCfsbE8e.js} +111 -106
- package/dist/{WarehouseView-BurSM1jg.js → WarehouseView-BCebmbcj.js} +12 -11
- package/dist/{WastageTemplateView-DRfJ9LGR.js → WastageTemplateView-BXYNMBun.js} +19 -18
- package/dist/api/bill.d.ts +4 -2
- package/dist/api/bill.spec.d.ts +1 -0
- package/dist/api/closing.d.ts +1 -0
- package/dist/api/feature-flags.d.ts +2 -0
- package/dist/api/integration-sync-log.d.ts +0 -13
- package/dist/api/inventory.d.ts +9 -9
- package/dist/api/license.d.ts +0 -1
- package/dist/api/netsuite-explorer.d.ts +1 -0
- package/dist/api/stock.d.ts +1 -1
- package/dist/{app-Duum3eHx.js → app-VtVYHCDF.js} +9785 -9546
- package/dist/app.d.ts +151 -14
- package/dist/app.js +1 -1
- package/dist/bulk-edit-simulation.helper-Nd6CtWGf.js +178 -0
- package/dist/{closing-template-BE41yfue.js → closing-template-LCe0U9w9.js} +4 -4
- package/dist/components/FeatureCapabilityGate.vue.d.ts +3 -0
- package/dist/components/FeatureGateLayout.vue.d.ts +11 -0
- package/dist/components/FeaturePageGate.spec.d.ts +1 -0
- package/dist/components/FeaturePageGate.vue.d.ts +34 -0
- package/dist/components/FmAdminCollapsiblePanel.vue.d.ts +1 -1
- package/dist/components/FmDroppableField.vue.d.ts +1 -1
- package/dist/components/FmInventoryTableToolbar.vue.d.ts +2 -2
- package/dist/components/FmUnitInputProps.d.ts +1 -0
- package/dist/components/FmUnitInputRules.d.ts +1 -1
- package/dist/components/HrmPermissionGuard.vue.d.ts +1 -1
- package/dist/components/MultiLocationSelector.vue.d.ts +6 -6
- package/dist/components/NumberPrecisionInput.spec.d.ts +1 -0
- package/dist/components/PremiumUpgradePage.vue.d.ts +2 -0
- package/dist/components/TemplatePublishDialog.d.ts +2 -0
- package/dist/components/TemplatePublishDialog.spec.d.ts +1 -0
- package/dist/composable/defineApi.d.ts +1 -1
- package/dist/{date2-DrhO3BxU.js → date2-Cfb6DXM4.js} +1 -1
- package/dist/{dayjs.min-CQp6EpOp.js → dayjs.min-BOndKK7B.js} +1 -1
- package/dist/{decimal-Cq0qUT4r.js → decimal-nbuisP61.js} +2 -2
- package/dist/{defineDeepModel-DRC39nJs.js → defineDeepModel-DKySrdwp.js} +5 -5
- package/dist/{duplicate-template-j2ymeDNH.js → duplicate-template-BxcKb3Jp.js} +1 -1
- package/dist/{feature-C0hQza5A.js → feature-VDUlSvM1.js} +435 -359
- package/dist/feature-flags/core.d.ts +1 -0
- package/dist/feature-flags/vue.d.ts +22 -1
- package/dist/{format-time-from-id-BmJoI3jT.js → format-time-from-id-CfVH4LZ_.js} +1 -1
- package/dist/{format-unit-display-CRgIMXsD.js → format-unit-display-BjTeAtgS.js} +209 -208
- package/dist/helper/country.spec.d.ts +1 -0
- package/dist/helper/menu-usage-module.d.ts +2 -1
- package/dist/helper/number.d.ts +5 -1
- package/dist/helper/rules.d.ts +1 -1
- package/dist/{id-to-date-CuFZDvIr.js → id-to-date-Jr9SlHLO.js} +1 -1
- package/dist/{import-export.helper-B43zbsbj.js → import-export.helper-FT9Wbigh.js} +17 -17
- package/dist/{index-BYDjs08n.js → index-BV9b3Ulp.js} +2234 -2163
- package/dist/{index-DXNYZeq3.js → index-By5-VjVg.js} +1 -1
- package/dist/{JsonViewer.vue_vue_type_script_setup_true_lang-ig2zSXAB.js → index-C25C1Dg7.js} +1074 -1066
- package/dist/{index-Cwvg7EHd.js → index-DXHVgUHU.js} +3 -3
- package/dist/index-eGvSlWMU.js +1892 -0
- package/dist/layout/SingleColumnLayout.vue.d.ts +1 -1
- package/dist/{lz-string-6DgW1cPF.js → lz-string-BAzqO9xf.js} +1 -1
- package/dist/menu-usage-module-Bq_KLsO4.js +74 -0
- package/dist/{netsuite-BSpmyaE1.js → netsuite-BhGuduqd.js} +254 -263
- package/dist/netsuite-explorer-9Qj7qAum.js +79 -0
- package/dist/{predefined-templates-C0jtb4T7.js → predefined-templates-BlRafgnc.js} +1 -1
- package/dist/production-run-list-DR1WsaBR.js +61 -0
- package/dist/{purchase-order-template-B5Pjddfi.js → purchase-order-template-By_Zxu1b.js} +1 -1
- package/dist/{recalculationUtils-DtJWwWSj.js → recalculationUtils-VsBar7jB.js} +1 -1
- package/dist/router/name.d.ts +2 -1
- package/dist/{row-action.enum-BDDJNSi0.js → row-action.enum-76yLYmPA.js} +1 -1
- package/dist/rules-fOcvgt4t.js +243 -0
- package/dist/{stock-BKMDvf5S.js → stock-C-dQaxY2.js} +1 -1
- package/dist/stock-Dh0KXA1P.js +78 -0
- package/dist/stores/feature.d.ts +26 -2
- package/dist/stores/feature.load-state.spec.d.ts +1 -0
- package/dist/stores/integration/netsuite.d.ts +2 -2
- package/dist/stores/inventory.no-location.spec.d.ts +1 -0
- package/dist/stores/location.d.ts +42 -42
- package/dist/stores/supplier.d.ts +48 -48
- package/dist/stores/warehouse.d.ts +2 -2
- package/dist/style.css +1 -1
- package/dist/{supplier-Cv8HRNou.js → supplier-XHHHN8vZ.js} +2 -2
- package/dist/{surcharge-ktE1pRyy.js → surcharge-0-oBiYoF.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{uom-rules-DCnXmEkb.js → uom-rules-DrRuSFgM.js} +1 -1
- package/dist/{use-ingredient-select-dialog-CYUUVrCI.js → use-ingredient-select-dialog-mQ7aQChK.js} +2 -2
- package/dist/{use-inventory-binding-dialog-Dugj9i-6.js → use-inventory-binding-dialog-5Wu0ItnH.js} +2 -2
- package/dist/{use-template-enabled-locations-BlZ7WAqX.js → use-template-enabled-locations-CgpPMl8g.js} +2 -2
- package/dist/{use-transfer-locations-CUDFnsVH.js → use-transfer-locations-DZ6B7eMT.js} +14 -14
- package/dist/{useHrmPermission-BOwmXi9H.js → useHrmPermission-BaGxz4EV.js} +1 -1
- package/dist/{useNavigationMenu-CbNKFBwx.js → useNavigationMenu-CyP39v3U.js} +39 -39
- package/dist/{useSseClient-CdyQh47h.js → useSseClient-CaD4MVg0.js} +1 -1
- package/dist/views/adjustment-template/wastage-template/actions.d.ts +36 -36
- package/dist/views/adjustment-template/wastage-template/table.d.ts +36 -36
- package/dist/views/changelog/composables/use-snapshot-diff.d.ts +2 -2
- package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftApprovalDialog.vue.d.ts +6 -6
- package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +12 -12
- package/dist/views/closing-draft/components/closing-draft-groups/ClosingGroupDetailSideSheet.vue.d.ts +6 -6
- package/dist/views/closing-draft/composables/use-closing-draft-import.d.ts +3 -3
- package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +19 -19
- package/dist/views/closing-draft/helpers/draft-status-to-class-name.helper.d.ts +1 -1
- package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +45 -45
- package/dist/views/closing-template/composables/use-closing-template-table.d.ts +36 -36
- package/dist/views/import/helper/submit-rows.d.ts +1 -1
- package/dist/views/ingredients/components/inventory-binding/recipe-amount-validation.spec.d.ts +1 -0
- package/dist/views/ingredients/helper/is-linked-ingredient-error.d.ts +3 -1
- package/dist/views/integration/IntegrationPlatformView.vue.d.ts +24 -0
- package/dist/views/integration/components/IntegrationCard.vue.d.ts +3 -3
- package/dist/views/integration/components/Synergy/importFn.spec.d.ts +1 -0
- package/dist/views/integration/components/Xilnex/importFn.spec.d.ts +1 -0
- package/dist/views/integration/components/netsuite/business/AddLocationDialog.vue.d.ts +36 -36
- package/dist/views/integration/components/netsuite/business/AddVendorDialog.vue.d.ts +24 -24
- package/dist/views/integration/helper/opening-balance.d.ts +22 -0
- package/dist/views/integration/helper/opening-balance.spec.d.ts +1 -0
- package/dist/views/production-run/ProductionRunDetailPage.spec.d.ts +1 -0
- package/dist/views/{integration/components/IntegrationSyncLogTab.vue.d.ts → production-run/ProductionRunDetailPage.vue.d.ts} +2 -2
- package/dist/views/production-run/ProductionRunPage.vue.d.ts +2 -0
- package/dist/views/production-run/features/detail/ProductionRunItemsTable.vue.d.ts +2 -2
- package/dist/views/production-run/features/detail/ProductionRunOverviewTab.vue.d.ts +4 -4
- package/dist/views/production-run/features/detail/use-production-run-detail.d.ts +19 -9
- package/dist/views/production-run/features/lifecycle/CancelRunDialog.vue.d.ts +4 -4
- package/dist/views/production-run/features/lifecycle/CloseRunDialog.vue.d.ts +4 -4
- package/dist/views/production-run/features/lifecycle/ProductionRunLifecycleDialogs.vue.d.ts +14 -14
- package/dist/views/production-run/features/lifecycle/TargetReachedDialog.vue.d.ts +4 -4
- package/dist/views/production-run/features/planning/ProductionRunFormDialog.vue.d.ts +4 -4
- package/dist/views/production-run/features/planning/ProductionRunPlanner.vue.d.ts +1 -1
- package/dist/views/production-run/features/planning/use-production-run-duplicate-sources.d.ts +6 -6
- package/dist/views/production-run/shared/helpers/production-run-navigation.d.ts +0 -1
- package/dist/views/production-run/shared/model/production-run-list.d.ts +1 -1
- package/dist/views/production-run/shared/ui/ProductionRunInfoBadge.vue.d.ts +1 -1
- package/dist/views/production-run/shared/ui/ProductionRunInfoText.vue.d.ts +1 -1
- package/dist/views/production-run/shared/ui/ProductionRunScrollHint.vue.d.ts +2 -2
- package/dist/views/production-run/shared/ui/ProductionRunTextarea.vue.d.ts +3 -3
- package/dist/views/receive-request/components/transfer-form/TransferFormWithController.vue.d.ts +5 -5
- package/dist/views/receive-request/composables/netsuite-order-label.d.ts +11 -0
- package/dist/views/receive-request/composables/netsuite-order-label.spec.d.ts +1 -0
- package/dist/views/receive-request/composables/use-process-purchase-order.d.ts +6 -6
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +48 -48
- package/dist/views/receive-request/composables/use-receive-request-form.spec.d.ts +1 -0
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +42 -42
- package/dist/views/receive-request/import/export.spec.d.ts +1 -0
- package/dist/views/receive-request-bulk/BulkReceiveRequestPage.vue.d.ts +2 -0
- package/dist/views/receive-request-bulk/components/CreateTransferWizard.spec.d.ts +1 -0
- package/dist/views/receive-request-bulk/composables/use-bulk-receive-request-form.d.ts +54 -54
- package/dist/views/receive-request-bulk/composables/use-bulk-receive-request-form.readiness.spec.d.ts +1 -0
- package/dist/views/receive-request-bulk/composables/use-bulk-receive-request-table.d.ts +8 -8
- package/dist/views/recipe/components/recipe-bulk-editor/components/ModificationCard.spec.d.ts +1 -0
- package/dist/views/recipe/helper/import-recipe.d.ts +30 -0
- package/dist/views/recipe/helper/import-recipe.spec.d.ts +1 -0
- package/dist/views/settings/PlanLicenseDisplay.vue.d.ts +1 -14
- package/dist/views/stock/components/StockRecordCard.spec.d.ts +1 -0
- package/dist/views/stock/components/StockRecordCard.vue.d.ts +19 -865
- package/dist/views/stock/components/dialog/AmendAdjustmentForm.spec.d.ts +1 -0
- package/dist/views/stock/components/dialog/BillInventoryInfoDialog.spec.d.ts +1 -0
- package/dist/views/stock/components/dialog/BillInventoryInfoDialog.vue.d.ts +36 -0
- package/dist/views/stock/components/dialog/ConvertSkuDialog.spec.d.ts +1 -0
- package/dist/views/stock/composables/use-last-closing-summary.d.ts +4 -0
- package/dist/views/stock/composables/use-last-closing-summary.spec.d.ts +1 -0
- package/dist/views/supplier/components/SupplierForm.vue.d.ts +4 -4
- package/dist/views/supplier/composables/use-supplier-table.d.ts +2 -2
- package/dist/views/transfer-template/components/transfer-template-dialog/TransferTemplateDialog.vue.d.ts +8 -8
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-locations.d.ts +4 -4
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.spec.d.ts +1 -0
- package/dist/views/transfer-template/composables/use-template-item-bulk-editor.d.ts +24 -24
- package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +48 -48
- package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +48 -48
- package/dist/views/transfer-template/helpers/template-item.error.helper.spec.d.ts +1 -0
- package/dist/views/unit/composables/use-unit-form.spec.d.ts +1 -0
- package/dist/views/warehouse/components/WarehouseForm.vue.d.ts +4 -4
- package/dist/{PlanTierBadge.vue_vue_type_script_setup_true_lang-BSR_nyHY.js → vue-KHCpiw_e.js} +101 -80
- package/dist/{vue-i18n-dSKy66Jh.js → vue-i18n-D6btLtve.js} +513 -513
- package/dist/{xlsx.util-pjzuMquw.js → xlsx.util-Dr5i_LBa.js} +2 -2
- package/package.json +71 -66
- package/dist/BulkReceiveRequestView-Lakk8011.js +0 -2656
- package/dist/FeatureCapabilityGate-C6t1VwKD.js +0 -74
- package/dist/ImportView-DCcdEvy4.js +0 -1291
- package/dist/NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BMDjCk9T.js +0 -72
- package/dist/ProductionRunDetailView-C9rxLBbL.js +0 -2312
- package/dist/ProductionRunView-DvMdVGz1.js +0 -930
- package/dist/RecipeView-ByUaGc4w.js +0 -3428
- package/dist/StockView-B3EjdjVx.js +0 -2615
- package/dist/TableActionableRow.vue_vue_type_script_setup_true_lang-DAMpuZ1X.js +0 -84
- package/dist/TemplatePublishDialog.vue_vue_type_script_setup_true_lang-BGPuaJlU.js +0 -299
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-8ydaQEw-.js +0 -4836
- package/dist/TransferTemplateView-BnfALwmw.js +0 -2326
- package/dist/menu-usage-module-BdjYEk3s.js +0 -57
- package/dist/number-5ZeFx-wN.js +0 -138
- package/dist/rules-CinZKpvV.js +0 -98
- package/dist/stock-1n-4iyqz.js +0 -75
- package/dist/views/integration/composables/use-integration-sync-log.d.ts +0 -45
|
@@ -1,136 +1,115 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { _ as
|
|
3
|
-
import {
|
|
1
|
+
import { ref as x, onUnmounted as mt, computed as V, defineComponent as ue, watch as Z, onMounted as Ie, resolveComponent as W, createElementBlock as m, openBlock as i, createBlock as ie, createCommentVNode as E, unref as D, createVNode as I, createElementVNode as w, toDisplayString as b, Fragment as J, renderList as oe, withKeys as Me, normalizeClass as ae, withModifiers as pt, withCtx as le, createTextVNode as ve, h as vt, onBeforeUnmount as gt, nextTick as yt, Teleport as ht, normalizeStyle as _t, mergeModels as Ue, useModel as bt } from "vue";
|
|
2
|
+
import { _ as xt } from "./empty-placeholder-B0QU467o.js";
|
|
3
|
+
import { _ as wt } from "./PremiumUpgradePage.vue_vue_type_script_setup_true_lang-DGAxPOEh.js";
|
|
4
|
+
import { u as He, a as Je, R as me, d as kt, S as St, b as $t } from "./app-VtVYHCDF.js";
|
|
4
5
|
import { useCoreStore as ge, useI18n as he } from "@feedmepos/mf-common";
|
|
5
|
-
import { useRouter as Ne, useRoute as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as Ye, n as
|
|
9
|
-
import { useBreakpoints as
|
|
6
|
+
import { useRouter as Ne, useRoute as Ct } from "vue-router";
|
|
7
|
+
import { u as Lt } from "./feature-VDUlSvM1.js";
|
|
8
|
+
import { u as Rt } from "./netsuite-BhGuduqd.js";
|
|
9
|
+
import { u as Ye, n as Dt, e as Vt } from "./useNavigationMenu-CyP39v3U.js";
|
|
10
|
+
import { useBreakpoints as It } from "@feedmepos/ui-library";
|
|
10
11
|
import { F as We } from "./FmAdminBadge-DlplQOHb.js";
|
|
11
|
-
import { i as
|
|
12
|
-
import { F as
|
|
13
|
-
import { t as
|
|
14
|
-
import { _ as
|
|
15
|
-
import { u as
|
|
16
|
-
import { _ as
|
|
17
|
-
import { D as Ut } from "./FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-
|
|
18
|
-
import { u as
|
|
19
|
-
import { u as
|
|
20
|
-
function
|
|
12
|
+
import { i as Nt, _ as Et } from "./FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-B861gqIJ.js";
|
|
13
|
+
import { F as Tt } from "./decimal-nbuisP61.js";
|
|
14
|
+
import { t as Pt, a as Bt } from "./date2-Cfb6DXM4.js";
|
|
15
|
+
import { _ as Ft } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
16
|
+
import { u as At } from "./useTabStorage-BkIVScW_.js";
|
|
17
|
+
import { _ as Mt } from "./PlanUpgradeDialog.vue_vue_type_script_setup_true_lang-0F-yOcPC.js";
|
|
18
|
+
import { D as Ut } from "./FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-ChekXW32.js";
|
|
19
|
+
import { u as Ot, g as Oe } from "./vue-KHCpiw_e.js";
|
|
20
|
+
import { u as Kt } from "./googlemap-D9vA7GsS.js";
|
|
21
|
+
function zt() {
|
|
21
22
|
return {
|
|
22
23
|
loadingHookInstalled: !1,
|
|
23
24
|
isLoading: !1
|
|
24
25
|
};
|
|
25
26
|
}
|
|
26
|
-
const
|
|
27
|
-
function
|
|
27
|
+
const fe = x(zt());
|
|
28
|
+
function jt() {
|
|
28
29
|
const o = Ne();
|
|
29
|
-
if (!
|
|
30
|
-
|
|
30
|
+
if (!fe.value.loadingHookInstalled) {
|
|
31
|
+
fe.value.loadingHookInstalled = !0;
|
|
31
32
|
const e = o.beforeEach(() => {
|
|
32
|
-
|
|
33
|
+
fe.value.isLoading = !0;
|
|
33
34
|
}), t = o.afterEach(() => {
|
|
34
|
-
|
|
35
|
+
fe.value.isLoading = !1;
|
|
35
36
|
});
|
|
36
37
|
mt(() => {
|
|
37
|
-
|
|
38
|
+
fe.value.loadingHookInstalled = !1, e(), t();
|
|
38
39
|
});
|
|
39
40
|
}
|
|
40
41
|
return {
|
|
41
42
|
get isLoading() {
|
|
42
|
-
return
|
|
43
|
+
return fe.value.isLoading;
|
|
43
44
|
}
|
|
44
45
|
};
|
|
45
46
|
}
|
|
46
|
-
function
|
|
47
|
+
function Gt() {
|
|
47
48
|
const { firstAccessibleRouteName: o } = Ye();
|
|
48
|
-
return { hasAnyAccessibleInventoryRoute:
|
|
49
|
+
return { hasAnyAccessibleInventoryRoute: V(() => o.value !== null) };
|
|
49
50
|
}
|
|
50
|
-
const
|
|
51
|
+
const Ht = {
|
|
51
52
|
key: 0,
|
|
52
53
|
class: "flex flex-col items-center w-full h-full gap-24"
|
|
53
|
-
},
|
|
54
|
+
}, Jt = {
|
|
54
55
|
key: 1,
|
|
55
56
|
class: "flex flex-col pt-[200px] gap-32 items-center"
|
|
56
|
-
},
|
|
57
|
-
key: 2,
|
|
58
|
-
class: "flex flex-col pt-[200px] gap-32 items-center"
|
|
59
|
-
}, qt = { class: "flex flex-col gap-12 items-center text-center px-24 max-w-[1000px]" }, Zt = { class: "fm-typo-en-title-lg-600" }, Qt = { class: "text-fm-color-typo-secondary fm-typo-en-body-md-400" }, en = { class: "flex gap-16" }, tn = { href: "https://feedme.ai/product/inventory/features?tab=plans_%26_prices" }, nn = { href: "https://feedme.ai/form" }, on = /* @__PURE__ */ ie({
|
|
57
|
+
}, Yt = { class: "flex flex-col gap-12 items-center text-center px-24 max-w-[600px]" }, Wt = { class: "fm-typo-en-title-lg-600" }, Xt = { class: "text-fm-color-typo-secondary fm-typo-en-body-md-400" }, qt = /* @__PURE__ */ ue({
|
|
60
58
|
__name: "InventoryView",
|
|
61
59
|
setup(o) {
|
|
62
|
-
const e = He(), t = Je(), l =
|
|
60
|
+
const e = He(), t = Je(), l = Rt(), s = ge(), a = Ne(), r = jt(), u = Lt(), { t: v } = he(), { hasAnyAccessibleInventoryRoute: p } = Gt();
|
|
63
61
|
Z(
|
|
64
62
|
[() => s.sessionUser.value, () => s.currentBusiness.value],
|
|
65
|
-
([
|
|
66
|
-
|
|
63
|
+
([U, $]) => {
|
|
64
|
+
L(U, $);
|
|
67
65
|
}
|
|
68
66
|
), Ie(async () => {
|
|
69
67
|
await u.init(), await s.readBusinesses();
|
|
70
|
-
const
|
|
71
|
-
|
|
68
|
+
const U = s.sessionUser.value, $ = s.currentBusiness.value;
|
|
69
|
+
L(U, $);
|
|
72
70
|
});
|
|
73
|
-
function
|
|
74
|
-
!
|
|
71
|
+
function L(U, $) {
|
|
72
|
+
!U || !$ || F();
|
|
75
73
|
}
|
|
76
74
|
async function F() {
|
|
77
|
-
return await e.init(), await l.readSetting().catch((
|
|
78
|
-
console.error("[all] error on reading netsuite store",
|
|
75
|
+
return await e.init(), await l.readSetting().catch((U) => {
|
|
76
|
+
console.error("[all] error on reading netsuite store", U);
|
|
79
77
|
}), await t.init();
|
|
80
78
|
}
|
|
81
|
-
const B =
|
|
82
|
-
() => a.currentRoute.value.matched.some((
|
|
83
|
-
var
|
|
84
|
-
const
|
|
85
|
-
return (((
|
|
79
|
+
const B = V(() => a.currentRoute.value.name === me.TRANSFER_TEMPLATE ? u.enablePoTemplate : !0), K = V(
|
|
80
|
+
() => a.currentRoute.value.matched.some((U) => {
|
|
81
|
+
var C;
|
|
82
|
+
const $ = U.meta, G = $ == null ? void 0 : $.validationManifest;
|
|
83
|
+
return (((C = G == null ? void 0 : G.requiredCaslPermissions) == null ? void 0 : C.length) ?? 0) > 0;
|
|
86
84
|
})
|
|
87
|
-
), Q =
|
|
85
|
+
), Q = V(() => {
|
|
88
86
|
if (!s.sessionUser.value) return !1;
|
|
89
87
|
if (e._locations !== null && e.locations.length === 0) return !0;
|
|
90
88
|
if (!u.isLoaded) return !1;
|
|
91
|
-
const G = a.currentRoute.value.name ===
|
|
89
|
+
const G = a.currentRoute.value.name === me.LOADING;
|
|
92
90
|
return !p.value && (G || K.value);
|
|
93
91
|
});
|
|
94
|
-
return (
|
|
95
|
-
const G =
|
|
96
|
-
return i(),
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
92
|
+
return (U, $) => {
|
|
93
|
+
const G = W("FmSpacer"), C = W("FmCircularProgress"), y = W("RouterView");
|
|
94
|
+
return i(), m("div", null, [
|
|
95
|
+
D(r).isLoading ? (i(), m("div", Ht, [
|
|
96
|
+
I(G),
|
|
97
|
+
w("div", null, [
|
|
98
|
+
I(C, { size: "xl" })
|
|
101
99
|
]),
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
])) : Q.value ? (i(),
|
|
105
|
-
|
|
106
|
-
src:
|
|
100
|
+
$[0] || ($[0] = w("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary pl-8" }, "Loading page...", -1)),
|
|
101
|
+
I(G)
|
|
102
|
+
])) : Q.value ? (i(), m("div", Jt, [
|
|
103
|
+
$[1] || ($[1] = w("img", {
|
|
104
|
+
src: xt,
|
|
107
105
|
alt: "No permission",
|
|
108
106
|
class: "w-[200px] h-[200px]"
|
|
109
107
|
}, null, -1)),
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
108
|
+
w("div", Yt, [
|
|
109
|
+
w("div", Wt, b(D(v)("inventory.common.noPermission.title")), 1),
|
|
110
|
+
w("div", Xt, b(D(v)("inventory.common.noPermission.description")), 1)
|
|
113
111
|
])
|
|
114
|
-
])) : B.value ?
|
|
115
|
-
y("div", qt, [
|
|
116
|
-
y("div", Zt, b($(v)("inventory.common.proPlan.title")), 1),
|
|
117
|
-
y("div", Qt, b($(v)("inventory.common.proPlan.subtitle")), 1)
|
|
118
|
-
]),
|
|
119
|
-
y("div", en, [
|
|
120
|
-
y("a", tn, [
|
|
121
|
-
V(h, {
|
|
122
|
-
label: $(v)("inventory.common.proPlan.comparePlans"),
|
|
123
|
-
variant: "secondary"
|
|
124
|
-
}, null, 8, ["label"])
|
|
125
|
-
]),
|
|
126
|
-
y("a", nn, [
|
|
127
|
-
V(h, {
|
|
128
|
-
label: $(v)("inventory.common.proPlan.callUs"),
|
|
129
|
-
"prepend-icon": "call"
|
|
130
|
-
}, null, 8, ["label"])
|
|
131
|
-
])
|
|
132
|
-
])
|
|
133
|
-
]))
|
|
112
|
+
])) : B.value ? D(s).sessionUser.value ? (i(), ie(y, { key: 3 })) : E("", !0) : (i(), ie(wt, { key: 2 }))
|
|
134
113
|
]);
|
|
135
114
|
};
|
|
136
115
|
}
|
|
@@ -207,10 +186,10 @@ const Gt = {
|
|
|
207
186
|
"contains.alternatives": "_id"
|
|
208
187
|
}
|
|
209
188
|
};
|
|
210
|
-
function
|
|
211
|
-
return o instanceof
|
|
189
|
+
function Zt(o) {
|
|
190
|
+
return o instanceof St && o.errorResponse.statusCode === 409;
|
|
212
191
|
}
|
|
213
|
-
const _e =
|
|
192
|
+
const _e = kt((o, e) => ({
|
|
214
193
|
/**
|
|
215
194
|
* Commits for one record. recordId is the changelog docId, `${dbName}/${id}`.
|
|
216
195
|
* The dbName scopes the (access-checked) backend route; only the bare id is
|
|
@@ -221,8 +200,8 @@ const _e = wt((o, e) => ({
|
|
|
221
200
|
if (r < 0) return [];
|
|
222
201
|
const u = t.slice(0, r), v = t.slice(r + 1), p = new URLSearchParams({ id: v });
|
|
223
202
|
l != null && p.set("limit", String(l)), a && p.set("before", a), s && (p.set("explain", "1"), p.set("schema", JSON.stringify(s)));
|
|
224
|
-
const
|
|
225
|
-
return await e.get(
|
|
203
|
+
const L = `${o.inventoryBackendUrl}/${u}/changelog?${p.toString()}`;
|
|
204
|
+
return await e.get(L);
|
|
226
205
|
},
|
|
227
206
|
/**
|
|
228
207
|
* Purchase orders in a date range, each with when it last changed. The
|
|
@@ -288,10 +267,10 @@ const _e = wt((o, e) => ({
|
|
|
288
267
|
return await e.get(s);
|
|
289
268
|
}
|
|
290
269
|
})), Se = 50;
|
|
291
|
-
function
|
|
292
|
-
const o = _e(), e =
|
|
270
|
+
function Qt() {
|
|
271
|
+
const o = _e(), e = x([]), t = x(!1), l = x(!1);
|
|
293
272
|
let s = null, a = 0;
|
|
294
|
-
async function r(v, p,
|
|
273
|
+
async function r(v, p, L) {
|
|
295
274
|
const F = ++a;
|
|
296
275
|
if (s = null, l.value = !1, !v) {
|
|
297
276
|
e.value = [];
|
|
@@ -299,9 +278,9 @@ function sn() {
|
|
|
299
278
|
}
|
|
300
279
|
t.value = !0;
|
|
301
280
|
try {
|
|
302
|
-
const B = p ?? Se, K = await o.getRecordChangelog(v, B,
|
|
281
|
+
const B = p ?? Se, K = await o.getRecordChangelog(v, B, L);
|
|
303
282
|
if (F !== a) return;
|
|
304
|
-
e.value = K, p == null && (s = { recordId: v, explain:
|
|
283
|
+
e.value = K, p == null && (s = { recordId: v, explain: L }, l.value = K.length === B);
|
|
305
284
|
} catch (B) {
|
|
306
285
|
throw F === a && (e.value = []), B;
|
|
307
286
|
} finally {
|
|
@@ -314,9 +293,9 @@ function sn() {
|
|
|
314
293
|
const p = a;
|
|
315
294
|
t.value = !0;
|
|
316
295
|
try {
|
|
317
|
-
const
|
|
296
|
+
const L = await o.getRecordChangelog(s.recordId, Se, s.explain, v.id);
|
|
318
297
|
if (p !== a) return;
|
|
319
|
-
e.value = [...e.value, ...
|
|
298
|
+
e.value = [...e.value, ...L], l.value = L.length === Se;
|
|
320
299
|
} finally {
|
|
321
300
|
p === a && (t.value = !1);
|
|
322
301
|
}
|
|
@@ -328,13 +307,13 @@ function Ke(o) {
|
|
|
328
307
|
const e = /^(\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2})(?:\.(\d+))?/.exec(o);
|
|
329
308
|
return e ? `${e[1]}.${(e[2] ?? "").padEnd(9, "0").slice(0, 9)}` : o;
|
|
330
309
|
}
|
|
331
|
-
function
|
|
310
|
+
function en(o, e) {
|
|
332
311
|
return [...o, ...e].sort(
|
|
333
312
|
(t, l) => Ke(l.at).localeCompare(Ke(t.at)) || l.id.localeCompare(t.id)
|
|
334
313
|
);
|
|
335
314
|
}
|
|
336
|
-
function
|
|
337
|
-
const o = _e(), e =
|
|
315
|
+
function tn() {
|
|
316
|
+
const o = _e(), e = x([]);
|
|
338
317
|
async function t(l) {
|
|
339
318
|
if (e.value = [], !!l)
|
|
340
319
|
try {
|
|
@@ -370,16 +349,16 @@ function De(o) {
|
|
|
370
349
|
const e = o.indexOf(Qe);
|
|
371
350
|
return e === -1 ? { raw: o, human: o } : { raw: o.slice(0, e), human: o.slice(e + 1) };
|
|
372
351
|
}
|
|
373
|
-
const
|
|
352
|
+
const nn = [
|
|
374
353
|
"inventory.changelog.label.recipe",
|
|
375
354
|
"inventory.changelog.label.sku",
|
|
376
355
|
"inventory.changelog.label.unit"
|
|
377
|
-
],
|
|
378
|
-
function
|
|
356
|
+
], on = [...nn, "Recipe", "Ingredient", "Unit"];
|
|
357
|
+
function an(o) {
|
|
379
358
|
const { human: e } = De(o);
|
|
380
359
|
if (!e) return { type: "Document", name: "", field: [] };
|
|
381
360
|
const t = e.split(" › ");
|
|
382
|
-
return t.length >= 2 &&
|
|
361
|
+
return t.length >= 2 && on.includes(t[0]) ? { type: t[0], name: t[1], field: t.slice(2) } : { type: "Document", name: "", field: t };
|
|
383
362
|
}
|
|
384
363
|
const ze = 800;
|
|
385
364
|
function et(o, e, t = 2) {
|
|
@@ -392,9 +371,9 @@ function et(o, e, t = 2) {
|
|
|
392
371
|
r++;
|
|
393
372
|
const u = l.slice(a, l.length - r), v = s.slice(a, s.length - r);
|
|
394
373
|
if (u.length > ze || v.length > ze) return null;
|
|
395
|
-
const p = (
|
|
396
|
-
return
|
|
397
|
-
[...l.slice(0, a).map(p), ...
|
|
374
|
+
const p = (L) => ({ type: "same", text: L });
|
|
375
|
+
return ln(
|
|
376
|
+
[...l.slice(0, a).map(p), ...sn(u, v), ...l.slice(l.length - r).map(p)],
|
|
398
377
|
t
|
|
399
378
|
);
|
|
400
379
|
}
|
|
@@ -407,7 +386,7 @@ function je(o) {
|
|
|
407
386
|
return null;
|
|
408
387
|
}
|
|
409
388
|
}
|
|
410
|
-
function
|
|
389
|
+
function sn(o, e) {
|
|
411
390
|
const t = o.length, l = e.length, s = Array.from({ length: t + 1 }, () => new Uint32Array(l + 1));
|
|
412
391
|
for (let v = t - 1; v >= 0; v--)
|
|
413
392
|
for (let p = l - 1; p >= 0; p--)
|
|
@@ -420,7 +399,7 @@ function fn(o, e) {
|
|
|
420
399
|
for (; u < l; ) a.push({ type: "add", text: e[u++] });
|
|
421
400
|
return a;
|
|
422
401
|
}
|
|
423
|
-
function
|
|
402
|
+
function ln(o, e) {
|
|
424
403
|
const t = o.map(() => !1);
|
|
425
404
|
o.forEach((a, r) => {
|
|
426
405
|
if (a.type !== "same")
|
|
@@ -433,7 +412,7 @@ function mn(o, e) {
|
|
|
433
412
|
t[r] ? (l.push(a), s = !1) : s || (l.push({ type: "skip", text: "⋯" }), s = !0);
|
|
434
413
|
}), l;
|
|
435
414
|
}
|
|
436
|
-
function
|
|
415
|
+
function rn(o, e) {
|
|
437
416
|
let t;
|
|
438
417
|
try {
|
|
439
418
|
t = JSON.parse(o);
|
|
@@ -450,25 +429,25 @@ function Ve(o, e, t = 0, l) {
|
|
|
450
429
|
// A bare array index says nothing a reader needs — a leaf list entry
|
|
451
430
|
// shows just its value. Branch nodes keep the index as their header.
|
|
452
431
|
label: s != null && r && /^\d+$/.test(s) ? void 0 : s,
|
|
453
|
-
text: r ?
|
|
432
|
+
text: r ? un(o, e, l) : void 0,
|
|
454
433
|
bookkeeping: !!o.bookkeeping
|
|
455
434
|
});
|
|
456
435
|
const v = a ? t + 1 : t;
|
|
457
|
-
for (const
|
|
458
|
-
u.push(...Ve(
|
|
436
|
+
for (const L of o.kids ?? [])
|
|
437
|
+
u.push(...Ve(L, e, v, l));
|
|
459
438
|
return u;
|
|
460
439
|
}
|
|
461
|
-
function
|
|
440
|
+
function un(o, e, t) {
|
|
462
441
|
if (o.value == null) return o.display || void 0;
|
|
463
|
-
const l =
|
|
442
|
+
const l = rn(o.value, e);
|
|
464
443
|
return (t == null ? void 0 : t(l)) ?? o.display ?? l;
|
|
465
444
|
}
|
|
466
445
|
function $e(o, e) {
|
|
467
446
|
return JSON.stringify(o, null, 2).split(`
|
|
468
447
|
`).map((t) => ({ type: e, text: t }));
|
|
469
448
|
}
|
|
470
|
-
function
|
|
471
|
-
const o = _e(), e = /* @__PURE__ */ new Map(), t =
|
|
449
|
+
function cn() {
|
|
450
|
+
const o = _e(), e = /* @__PURE__ */ new Map(), t = x(!1), l = x(null);
|
|
472
451
|
async function s(a) {
|
|
473
452
|
const r = e.get(a.id);
|
|
474
453
|
if (r) {
|
|
@@ -477,16 +456,16 @@ function gn() {
|
|
|
477
456
|
}
|
|
478
457
|
t.value = !0;
|
|
479
458
|
try {
|
|
480
|
-
const u = a.doc_id.indexOf("/"), v = a.doc_id.slice(0, u), p = a.doc_id.slice(u + 1), [
|
|
459
|
+
const u = a.doc_id.indexOf("/"), v = a.doc_id.slice(0, u), p = a.doc_id.slice(u + 1), [L, F] = await Promise.all([
|
|
481
460
|
a.parent ? o.getState(v, p, a.parent) : Promise.resolve({}),
|
|
482
461
|
o.getState(v, p, a.id)
|
|
483
|
-
]), K = { diff: a.parent ? et(JSON.stringify(
|
|
484
|
-
...$e(
|
|
462
|
+
]), K = { diff: a.parent ? et(JSON.stringify(L), JSON.stringify(F)) ?? [
|
|
463
|
+
...$e(L, "del"),
|
|
485
464
|
...$e(F, "add")
|
|
486
465
|
] : $e(F, "add"), conflict: !1 };
|
|
487
466
|
e.set(a.id, K), l.value = K;
|
|
488
467
|
} catch (u) {
|
|
489
|
-
if (!
|
|
468
|
+
if (!Zt(u))
|
|
490
469
|
throw l.value = null, u;
|
|
491
470
|
const v = { diff: null, conflict: !0 };
|
|
492
471
|
e.set(a.id, v), l.value = v;
|
|
@@ -496,67 +475,67 @@ function gn() {
|
|
|
496
475
|
}
|
|
497
476
|
return { isLoading: t, result: l, load: s };
|
|
498
477
|
}
|
|
499
|
-
const
|
|
478
|
+
const dn = {
|
|
500
479
|
key: 0,
|
|
501
480
|
class: "flex justify-center p-16"
|
|
502
|
-
},
|
|
481
|
+
}, fn = {
|
|
503
482
|
key: 1,
|
|
504
483
|
class: "p-16 text-center text-gray-500"
|
|
505
|
-
},
|
|
484
|
+
}, mn = {
|
|
506
485
|
key: 2,
|
|
507
486
|
class: "flex h-full min-h-0 gap-8"
|
|
508
|
-
},
|
|
487
|
+
}, pn = { class: "w-1/3 shrink-0 overflow-y-auto border-r border-gray-200 pr-4" }, vn = ["onClick", "onKeydown"], gn = { class: "fm-typo-en-body-md-600" }, yn = { class: "text-xs text-gray-500" }, hn = {
|
|
509
488
|
key: 0,
|
|
510
489
|
class: "flex-1 overflow-y-auto pl-4"
|
|
511
|
-
},
|
|
490
|
+
}, _n = { class: "mb-12 flex flex-col gap-2 border-b border-gray-200 pb-8" }, bn = { class: "flex flex-wrap items-center gap-8" }, xn = { class: "fm-typo-en-body-lg-600" }, wn = {
|
|
512
491
|
key: 0,
|
|
513
492
|
class: "rounded-full bg-gray-100 px-8 text-xs text-gray-500"
|
|
514
|
-
},
|
|
493
|
+
}, kn = { class: "text-xs text-gray-500" }, Sn = { class: "mb-12" }, $n = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary pl-8" }, Cn = {
|
|
515
494
|
key: 0,
|
|
516
495
|
class: "mb-12"
|
|
517
|
-
},
|
|
496
|
+
}, Ln = {
|
|
518
497
|
key: 1,
|
|
519
498
|
class: "text-sm text-gray-400"
|
|
520
|
-
},
|
|
499
|
+
}, Rn = {
|
|
521
500
|
key: 2,
|
|
522
501
|
class: "w-full overflow-x-auto rounded border border-gray-200 py-4 font-mono text-xs"
|
|
523
|
-
},
|
|
502
|
+
}, Dn = {
|
|
524
503
|
key: 0,
|
|
525
504
|
class: "text-xs text-gray-400"
|
|
526
|
-
},
|
|
505
|
+
}, Vn = { class: "fm-typo-en-body-md-600" }, In = { class: "flex flex-col gap-6" }, Nn = {
|
|
527
506
|
key: 0,
|
|
528
507
|
class: "text-gray-700"
|
|
529
|
-
},
|
|
508
|
+
}, En = { class: "min-w-[120px] shrink-0 text-gray-500" }, Tn = {
|
|
530
509
|
key: 0,
|
|
531
510
|
class: "flex w-full flex-col gap-4"
|
|
532
|
-
},
|
|
511
|
+
}, Pn = {
|
|
533
512
|
key: 0,
|
|
534
513
|
class: "w-full overflow-x-auto rounded border border-gray-200 py-4 font-mono text-xs"
|
|
535
|
-
},
|
|
514
|
+
}, Bn = { key: 0 }, Fn = { key: 1 }, An = {
|
|
536
515
|
key: 1,
|
|
537
516
|
class: "w-full overflow-x-auto rounded border border-gray-200 py-4 font-mono text-xs"
|
|
538
|
-
},
|
|
517
|
+
}, Mn = { key: 0 }, Un = { key: 1 }, On = {
|
|
539
518
|
key: 1,
|
|
540
519
|
class: "w-full overflow-x-auto rounded border border-gray-200 py-4 font-mono text-xs"
|
|
541
|
-
},
|
|
520
|
+
}, Kn = {
|
|
542
521
|
key: 2,
|
|
543
522
|
class: "flex w-full flex-wrap items-baseline gap-4"
|
|
544
|
-
},
|
|
523
|
+
}, zn = {
|
|
545
524
|
key: 0,
|
|
546
525
|
class: "rounded bg-red-50 px-4 text-red-700"
|
|
547
|
-
},
|
|
526
|
+
}, jn = {
|
|
548
527
|
key: 1,
|
|
549
528
|
class: "text-gray-400"
|
|
550
|
-
},
|
|
529
|
+
}, Gn = {
|
|
551
530
|
key: 2,
|
|
552
531
|
class: "rounded bg-green-50 px-4 text-green-700"
|
|
553
|
-
},
|
|
532
|
+
}, Hn = {
|
|
554
533
|
key: 1,
|
|
555
534
|
class: "text-sm text-gray-500"
|
|
556
|
-
},
|
|
535
|
+
}, Jn = {
|
|
557
536
|
key: 2,
|
|
558
537
|
class: "mt-16 break-all border-t border-gray-200 pt-8 font-mono text-xs text-gray-400"
|
|
559
|
-
},
|
|
538
|
+
}, Yn = { key: 0 }, Wn = "capture baseline", Xn = /* @__PURE__ */ ue({
|
|
560
539
|
__name: "ChangelogPanel",
|
|
561
540
|
props: {
|
|
562
541
|
commits: {},
|
|
@@ -564,27 +543,27 @@ const yn = {
|
|
|
564
543
|
resolveName: { type: Function }
|
|
565
544
|
},
|
|
566
545
|
setup(o) {
|
|
567
|
-
const e = o, { t } = he(), l =
|
|
546
|
+
const e = o, { t } = he(), l = x(null), s = V(
|
|
568
547
|
() => e.commits.find((d) => d.id === l.value)
|
|
569
|
-
), a = /* @__PURE__ */ new Set(["updatedAt", "createdAt", "updatedBy", "createdBy", "_rev"]), r =
|
|
570
|
-
var
|
|
571
|
-
return (((
|
|
572
|
-
const { raw: A } = De(
|
|
573
|
-
return A === "@payload" ||
|
|
548
|
+
), a = /* @__PURE__ */ new Set(["updatedAt", "createdAt", "updatedBy", "createdBy", "_rev"]), r = V(() => {
|
|
549
|
+
var h;
|
|
550
|
+
return (((h = s.value) == null ? void 0 : h.changes) ?? []).filter((M) => {
|
|
551
|
+
const { raw: A } = De(M.path);
|
|
552
|
+
return A === "@payload" || M.from == null && M.to == null ? !1 : !A.split(".").some((X) => a.has(X));
|
|
574
553
|
});
|
|
575
554
|
});
|
|
576
555
|
Z(
|
|
577
556
|
() => e.commits,
|
|
578
557
|
(d) => {
|
|
579
|
-
var
|
|
580
|
-
d.find((
|
|
558
|
+
var h;
|
|
559
|
+
d.find((M) => M.id === l.value) || (l.value = ((h = d[0]) == null ? void 0 : h.id) ?? null);
|
|
581
560
|
},
|
|
582
561
|
{ immediate: !0 }
|
|
583
562
|
);
|
|
584
|
-
const u =
|
|
585
|
-
Z([u, s], ([d,
|
|
586
|
-
p.value = null, !(!d || !
|
|
587
|
-
console.error("changelog snapshot load failed",
|
|
563
|
+
const u = x(!1), { isLoading: v, result: p, load: L } = cn();
|
|
564
|
+
Z([u, s], ([d, h]) => {
|
|
565
|
+
p.value = null, !(!d || !h) && L(h).catch((M) => {
|
|
566
|
+
console.error("changelog snapshot load failed", M), u.value = !1;
|
|
588
567
|
});
|
|
589
568
|
});
|
|
590
569
|
function F(d) {
|
|
@@ -595,353 +574,353 @@ const yn = {
|
|
|
595
574
|
}
|
|
596
575
|
function K(d) {
|
|
597
576
|
if (d == null) return "";
|
|
598
|
-
let
|
|
577
|
+
let h;
|
|
599
578
|
try {
|
|
600
|
-
|
|
579
|
+
h = JSON.parse(d);
|
|
601
580
|
} catch {
|
|
602
581
|
return d;
|
|
603
582
|
}
|
|
604
|
-
return
|
|
583
|
+
return h === null ? "—" : typeof h == "string" ? h : typeof h == "number" ? h.toLocaleString() : typeof h == "boolean" ? t(h ? "inventory.changelog.yes" : "inventory.changelog.no") : JSON.stringify(h, null, 2);
|
|
605
584
|
}
|
|
606
585
|
function Q(d) {
|
|
607
586
|
return (d.authors || []).join(", ") || t("inventory.changelog.unknownActor");
|
|
608
587
|
}
|
|
609
|
-
function
|
|
610
|
-
if (d.message ===
|
|
611
|
-
const
|
|
612
|
-
if (!
|
|
613
|
-
const
|
|
614
|
-
return
|
|
588
|
+
function U(d) {
|
|
589
|
+
if (d.message === Wn) return t("inventory.changelog.captureBaseline");
|
|
590
|
+
const h = qe(d.message);
|
|
591
|
+
if (!h) return d.message || t("inventory.changelog.noMessage");
|
|
592
|
+
const M = $(h.labelKey);
|
|
593
|
+
return h.name ? t(`inventory.changelog.message.${h.verb}`, { module: M, name: h.name }) : t(`inventory.changelog.message.${h.verb}NoName`, { module: M });
|
|
615
594
|
}
|
|
616
|
-
function
|
|
595
|
+
function $(d) {
|
|
617
596
|
return Ze(d) ? t(d) : d;
|
|
618
597
|
}
|
|
619
598
|
const G = (d) => /[^a-zA-Z]/.test(d);
|
|
620
|
-
function
|
|
621
|
-
return d == null ||
|
|
599
|
+
function C(d, h) {
|
|
600
|
+
return d == null || h == null ? null : et(d, h);
|
|
622
601
|
}
|
|
623
|
-
function
|
|
602
|
+
function y(d) {
|
|
624
603
|
if (!(!d.to_value && !d.from_value))
|
|
625
604
|
return {
|
|
626
605
|
toTree: d.to_value ? Ve(d.to_value, t, 0, e.resolveName) : void 0,
|
|
627
606
|
fromTree: d.from_value ? Ve(d.from_value, t, 0, e.resolveName) : void 0
|
|
628
607
|
};
|
|
629
608
|
}
|
|
630
|
-
function
|
|
609
|
+
function S(d) {
|
|
631
610
|
return d === "add" ? "bg-green-50 text-green-700" : d === "del" ? "bg-red-50 text-red-700" : d === "skip" ? "text-gray-400" : "text-gray-600";
|
|
632
611
|
}
|
|
633
|
-
function
|
|
612
|
+
function T(d) {
|
|
634
613
|
return d.type === "skip" ? d.text : (d.type === "add" ? "+ " : d.type === "del" ? "- " : " ") + d.text;
|
|
635
614
|
}
|
|
636
|
-
const O =
|
|
637
|
-
const d = /* @__PURE__ */ new Map(),
|
|
615
|
+
const O = V(() => {
|
|
616
|
+
const d = /* @__PURE__ */ new Map(), h = [], M = (g, f) => {
|
|
638
617
|
let N = d.get(g);
|
|
639
|
-
return N || (N =
|
|
640
|
-
}, A = () =>
|
|
641
|
-
var
|
|
642
|
-
if (g == null) return
|
|
618
|
+
return N || (N = f(), d.set(g, N), h.push(N)), N;
|
|
619
|
+
}, A = () => M("@doc", () => ({ header: "", lines: [] })), X = (g, f) => {
|
|
620
|
+
var P;
|
|
621
|
+
if (g == null) return f;
|
|
643
622
|
let N;
|
|
644
623
|
try {
|
|
645
624
|
N = JSON.parse(g);
|
|
646
625
|
} catch {
|
|
647
626
|
N = g;
|
|
648
627
|
}
|
|
649
|
-
return (typeof N == "string" ? (
|
|
650
|
-
}, H = (g,
|
|
651
|
-
var
|
|
652
|
-
const
|
|
653
|
-
|
|
628
|
+
return (typeof N == "string" ? (P = e.resolveName) == null ? void 0 : P.call(e, N) : void 0) ?? f;
|
|
629
|
+
}, H = (g, f, N) => {
|
|
630
|
+
var P, Y, ee, te;
|
|
631
|
+
const _ = y(f);
|
|
632
|
+
_ ? g.lines.push({ label: N, ..._ }) : f.from != null && f.to != null ? g.lines.push({
|
|
654
633
|
label: N,
|
|
655
|
-
from:
|
|
656
|
-
to:
|
|
657
|
-
diff:
|
|
658
|
-
fromDisplay: X(
|
|
659
|
-
toDisplay: X(
|
|
660
|
-
}) :
|
|
661
|
-
},
|
|
634
|
+
from: f.from,
|
|
635
|
+
to: f.to,
|
|
636
|
+
diff: C(f.from, f.to),
|
|
637
|
+
fromDisplay: X(f.from, (P = f.display) == null ? void 0 : P.from),
|
|
638
|
+
toDisplay: X(f.to, (Y = f.display) == null ? void 0 : Y.to)
|
|
639
|
+
}) : f.to != null ? g.lines.push({ label: N, to: f.to, toDisplay: X(f.to, (ee = f.display) == null ? void 0 : ee.to) }) : g.lines.push({ label: N, from: f.from, fromDisplay: X(f.from, (te = f.display) == null ? void 0 : te.from) });
|
|
640
|
+
}, R = (g) => {
|
|
662
641
|
var N;
|
|
663
|
-
const
|
|
664
|
-
if (
|
|
665
|
-
const
|
|
666
|
-
kind: (
|
|
667
|
-
header:
|
|
642
|
+
const f = g.element;
|
|
643
|
+
if (f) {
|
|
644
|
+
const _ = M(`kit:${(f.trail ?? []).join(".")}:${f.id ?? ""}`, () => ({
|
|
645
|
+
kind: (f.trail ?? []).map($).join(" › "),
|
|
646
|
+
header: f.name || f.id || "",
|
|
668
647
|
lines: []
|
|
669
648
|
}));
|
|
670
649
|
if ((N = g.field) != null && N.length)
|
|
671
|
-
H(
|
|
650
|
+
H(_, g, g.field.map($).join(" › "));
|
|
672
651
|
else {
|
|
673
|
-
|
|
674
|
-
const
|
|
675
|
-
|
|
652
|
+
_.badge = g.to != null ? "added" : "removed";
|
|
653
|
+
const P = y(g);
|
|
654
|
+
P && _.lines.push(P);
|
|
676
655
|
}
|
|
677
656
|
return;
|
|
678
657
|
}
|
|
679
|
-
H(A(), g, (g.field ?? []).map(
|
|
658
|
+
H(A(), g, (g.field ?? []).map($).join(" › "));
|
|
680
659
|
};
|
|
681
660
|
for (const g of r.value) {
|
|
682
|
-
const { raw:
|
|
683
|
-
if (g.kind === "create" && !
|
|
684
|
-
const ee =
|
|
661
|
+
const { raw: f, human: N } = De(g.path);
|
|
662
|
+
if (g.kind === "create" && !f) {
|
|
663
|
+
const ee = y(g);
|
|
685
664
|
A().lines.push(
|
|
686
665
|
ee ? { label: t("inventory.changelog.kind.created"), ...ee } : { text: t("inventory.changelog.kind.created") }
|
|
687
666
|
);
|
|
688
667
|
continue;
|
|
689
668
|
}
|
|
690
669
|
if (!g.path.includes(Qe) && (g.field || g.element)) {
|
|
691
|
-
|
|
670
|
+
R(g);
|
|
692
671
|
continue;
|
|
693
672
|
}
|
|
694
|
-
const
|
|
695
|
-
if (
|
|
696
|
-
const ee =
|
|
697
|
-
kind:
|
|
673
|
+
const _ = f ? f.split(".") : [], P = N ? N.split(" › ") : [], Y = _.findIndex((ee, te) => te > 0 && G(ee));
|
|
674
|
+
if (Y > 0 && P.length === _.length) {
|
|
675
|
+
const ee = P[Y], te = M(_.slice(0, Y + 1).join("."), () => ({
|
|
676
|
+
kind: P.slice(0, Y).map($).join(" › "),
|
|
698
677
|
header: ee,
|
|
699
678
|
lines: []
|
|
700
|
-
})), re =
|
|
679
|
+
})), re = P.slice(Y + 1).map($).join(" › ");
|
|
701
680
|
if (re) H(te, g, re);
|
|
702
681
|
else if (g.from != null && g.to != null) H(te, g, ee);
|
|
703
682
|
else {
|
|
704
683
|
te.badge = g.to != null ? "added" : "removed";
|
|
705
|
-
const
|
|
706
|
-
|
|
684
|
+
const ce = y(g);
|
|
685
|
+
ce && te.lines.push(ce);
|
|
707
686
|
}
|
|
708
687
|
continue;
|
|
709
688
|
}
|
|
710
|
-
H(A(), g,
|
|
689
|
+
H(A(), g, P.map($).join(" › "));
|
|
711
690
|
}
|
|
712
|
-
return
|
|
691
|
+
return h;
|
|
713
692
|
});
|
|
714
|
-
return (d,
|
|
693
|
+
return (d, h) => {
|
|
715
694
|
var X, H;
|
|
716
|
-
const
|
|
717
|
-
return d.isLoading ? (i(),
|
|
718
|
-
|
|
719
|
-
])) : d.commits.length ? (i(),
|
|
720
|
-
|
|
721
|
-
(i(!0),
|
|
722
|
-
key:
|
|
695
|
+
const M = W("FmCircularProgress"), A = W("FmSwitch");
|
|
696
|
+
return d.isLoading ? (i(), m("div", dn, [
|
|
697
|
+
I(M)
|
|
698
|
+
])) : d.commits.length ? (i(), m("div", mn, [
|
|
699
|
+
w("ol", pn, [
|
|
700
|
+
(i(!0), m(J, null, oe(d.commits, (R) => (i(), m("li", {
|
|
701
|
+
key: R.id,
|
|
723
702
|
role: "button",
|
|
724
703
|
tabindex: "0",
|
|
725
704
|
class: ae([
|
|
726
705
|
"cursor-pointer border-l-2 py-8 pl-12",
|
|
727
|
-
|
|
706
|
+
R.id === l.value ? "border-fm-color-primary bg-fm-color-primary-50" : "border-gray-200 hover:bg-gray-50"
|
|
728
707
|
]),
|
|
729
|
-
onClick: (g) => l.value =
|
|
708
|
+
onClick: (g) => l.value = R.id,
|
|
730
709
|
onKeydown: [
|
|
731
|
-
|
|
732
|
-
|
|
710
|
+
Me((g) => l.value = R.id, ["enter"]),
|
|
711
|
+
Me(pt((g) => l.value = R.id, ["prevent"]), ["space"])
|
|
733
712
|
]
|
|
734
713
|
}, [
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
], 42,
|
|
714
|
+
w("div", gn, b(U(R)), 1),
|
|
715
|
+
w("div", yn, b(Q(R)) + " · " + b(B(R.at)) + " · " + b(F(R.id)), 1)
|
|
716
|
+
], 42, vn))), 128))
|
|
738
717
|
]),
|
|
739
|
-
s.value ? (i(),
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
s.value.parent ?
|
|
718
|
+
s.value ? (i(), m("div", hn, [
|
|
719
|
+
w("div", _n, [
|
|
720
|
+
w("div", bn, [
|
|
721
|
+
w("div", xn, b(U(s.value)), 1),
|
|
722
|
+
s.value.parent ? E("", !0) : (i(), m("span", wn, b(D(t)("inventory.changelog.rootCommit")), 1))
|
|
744
723
|
]),
|
|
745
|
-
|
|
724
|
+
w("div", kn, b(Q(s.value)) + " · " + b(B(s.value.at)), 1)
|
|
746
725
|
]),
|
|
747
|
-
|
|
748
|
-
|
|
726
|
+
w("div", Sn, [
|
|
727
|
+
I(We, null, {
|
|
749
728
|
default: le(() => [
|
|
750
|
-
|
|
751
|
-
|
|
729
|
+
w("span", $n, b(D(t)("inventory.changelog.dataDiff")), 1),
|
|
730
|
+
I(A, {
|
|
752
731
|
modelValue: u.value,
|
|
753
|
-
"onUpdate:modelValue":
|
|
732
|
+
"onUpdate:modelValue": h[0] || (h[0] = (R) => u.value = R)
|
|
754
733
|
}, null, 8, ["modelValue"])
|
|
755
734
|
]),
|
|
756
735
|
_: 1
|
|
757
736
|
})
|
|
758
737
|
]),
|
|
759
|
-
u.value ? (i(),
|
|
760
|
-
|
|
761
|
-
(i(!0),
|
|
738
|
+
u.value ? (i(), m("div", Cn, [
|
|
739
|
+
D(v) ? (i(), ie(M, { key: 0 })) : (X = D(p)) != null && X.conflict ? (i(), m("div", Ln, b(D(t)("inventory.changelog.snapshotUnavailable")), 1)) : (H = D(p)) != null && H.diff ? (i(), m("div", Rn, [
|
|
740
|
+
(i(!0), m(J, null, oe(D(p).diff, (R, g) => (i(), m("div", {
|
|
762
741
|
key: g,
|
|
763
|
-
class: ae(["whitespace-pre px-4",
|
|
764
|
-
}, b(
|
|
765
|
-
])) :
|
|
766
|
-
])) :
|
|
767
|
-
(i(!0),
|
|
742
|
+
class: ae(["whitespace-pre px-4", S(R.type)])
|
|
743
|
+
}, b(T(R)), 3))), 128))
|
|
744
|
+
])) : E("", !0)
|
|
745
|
+
])) : E("", !0),
|
|
746
|
+
(i(!0), m(J, null, oe(O.value, (R, g) => (i(), m("div", {
|
|
768
747
|
key: g,
|
|
769
748
|
class: "mb-12 rounded-lg border border-gray-200 p-12"
|
|
770
749
|
}, [
|
|
771
|
-
|
|
750
|
+
R.kind || R.header || R.badge ? (i(), m("div", {
|
|
772
751
|
key: 0,
|
|
773
|
-
class: ae(["flex flex-wrap items-baseline gap-8",
|
|
752
|
+
class: ae(["flex flex-wrap items-baseline gap-8", R.lines.length ? "mb-8" : ""])
|
|
774
753
|
}, [
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
754
|
+
R.kind ? (i(), m("span", Dn, b(R.kind), 1)) : E("", !0),
|
|
755
|
+
w("span", Vn, b(R.header), 1),
|
|
756
|
+
R.badge ? (i(), m("span", {
|
|
778
757
|
key: 1,
|
|
779
|
-
class: ae(["rounded-full px-8 text-xs",
|
|
780
|
-
}, b(
|
|
781
|
-
], 2)) :
|
|
782
|
-
|
|
783
|
-
(i(!0),
|
|
758
|
+
class: ae(["rounded-full px-8 text-xs", R.badge === "added" ? "bg-green-100 text-green-700" : "bg-red-100 text-red-700"])
|
|
759
|
+
}, b(R.badge === "added" ? D(t)("inventory.changelog.added") : D(t)("inventory.changelog.kind.removed")), 3)) : E("", !0)
|
|
760
|
+
], 2)) : E("", !0),
|
|
761
|
+
w("ul", In, [
|
|
762
|
+
(i(!0), m(J, null, oe(R.lines, (f, N) => (i(), m("li", {
|
|
784
763
|
key: N,
|
|
785
764
|
class: "flex flex-wrap items-baseline gap-8 text-sm"
|
|
786
765
|
}, [
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
(i(!0),
|
|
792
|
-
key:
|
|
793
|
-
class: ae(["flex items-baseline gap-4 px-4",
|
|
766
|
+
f.text ? (i(), m("span", Nn, b(f.text), 1)) : (i(), m(J, { key: 1 }, [
|
|
767
|
+
w("span", En, b(f.label), 1),
|
|
768
|
+
f.toTree || f.fromTree ? (i(), m("div", Tn, [
|
|
769
|
+
f.fromTree ? (i(), m("div", Pn, [
|
|
770
|
+
(i(!0), m(J, null, oe(f.fromTree, (_, P) => (i(), m("div", {
|
|
771
|
+
key: P,
|
|
772
|
+
class: ae(["flex items-baseline gap-4 px-4", _.bookkeeping ? "text-gray-400" : "text-red-700"])
|
|
794
773
|
}, [
|
|
795
|
-
(i(!0),
|
|
796
|
-
key:
|
|
774
|
+
(i(!0), m(J, null, oe(_.depth, (Y) => (i(), m("span", {
|
|
775
|
+
key: Y,
|
|
797
776
|
class: "inline-block w-16"
|
|
798
777
|
}))), 128)),
|
|
799
|
-
|
|
800
|
-
ve(b(
|
|
801
|
-
|
|
778
|
+
_.label ? (i(), m("span", Bn, [
|
|
779
|
+
ve(b(_.label), 1),
|
|
780
|
+
_.text ? (i(), m(J, { key: 0 }, [
|
|
802
781
|
ve(":")
|
|
803
|
-
], 64)) :
|
|
804
|
-
])) :
|
|
805
|
-
|
|
782
|
+
], 64)) : E("", !0)
|
|
783
|
+
])) : E("", !0),
|
|
784
|
+
_.text ? (i(), m("span", Fn, b(_.text), 1)) : E("", !0)
|
|
806
785
|
], 2))), 128))
|
|
807
|
-
])) :
|
|
808
|
-
|
|
809
|
-
(i(!0),
|
|
810
|
-
key:
|
|
811
|
-
class: ae(["flex items-baseline gap-4 px-4",
|
|
786
|
+
])) : E("", !0),
|
|
787
|
+
f.toTree ? (i(), m("div", An, [
|
|
788
|
+
(i(!0), m(J, null, oe(f.toTree, (_, P) => (i(), m("div", {
|
|
789
|
+
key: P,
|
|
790
|
+
class: ae(["flex items-baseline gap-4 px-4", _.bookkeeping ? "text-gray-400" : "text-green-700"])
|
|
812
791
|
}, [
|
|
813
|
-
(i(!0),
|
|
814
|
-
key:
|
|
792
|
+
(i(!0), m(J, null, oe(_.depth, (Y) => (i(), m("span", {
|
|
793
|
+
key: Y,
|
|
815
794
|
class: "inline-block w-16"
|
|
816
795
|
}))), 128)),
|
|
817
|
-
|
|
818
|
-
ve(b(
|
|
819
|
-
|
|
796
|
+
_.label ? (i(), m("span", Mn, [
|
|
797
|
+
ve(b(_.label), 1),
|
|
798
|
+
_.text ? (i(), m(J, { key: 0 }, [
|
|
820
799
|
ve(":")
|
|
821
|
-
], 64)) :
|
|
822
|
-
])) :
|
|
823
|
-
|
|
800
|
+
], 64)) : E("", !0)
|
|
801
|
+
])) : E("", !0),
|
|
802
|
+
_.text ? (i(), m("span", Un, b(_.text), 1)) : E("", !0)
|
|
824
803
|
], 2))), 128))
|
|
825
|
-
])) :
|
|
826
|
-
])) :
|
|
827
|
-
(i(!0),
|
|
828
|
-
key:
|
|
829
|
-
class: ae(["whitespace-pre px-4",
|
|
830
|
-
}, b(
|
|
831
|
-
])) : (i(),
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
804
|
+
])) : E("", !0)
|
|
805
|
+
])) : f.diff ? (i(), m("div", On, [
|
|
806
|
+
(i(!0), m(J, null, oe(f.diff, (_, P) => (i(), m("div", {
|
|
807
|
+
key: P,
|
|
808
|
+
class: ae(["whitespace-pre px-4", S(_.type)])
|
|
809
|
+
}, b(T(_)), 3))), 128))
|
|
810
|
+
])) : (i(), m("span", Kn, [
|
|
811
|
+
f.from != null ? (i(), m("span", zn, b(f.fromDisplay ?? K(f.from)), 1)) : E("", !0),
|
|
812
|
+
f.from != null && f.to != null ? (i(), m("span", jn, "→")) : E("", !0),
|
|
813
|
+
f.to != null ? (i(), m("span", Gn, b(f.toDisplay ?? K(f.to)), 1)) : E("", !0)
|
|
835
814
|
]))
|
|
836
815
|
], 64))
|
|
837
816
|
]))), 128))
|
|
838
817
|
])
|
|
839
818
|
]))), 128)),
|
|
840
|
-
O.value.length ?
|
|
841
|
-
u.value ? (i(),
|
|
819
|
+
O.value.length ? E("", !0) : (i(), m("div", Hn, b(D(t)("inventory.changelog.empty")), 1)),
|
|
820
|
+
u.value ? (i(), m("div", Jn, [
|
|
842
821
|
ve(b(s.value.id) + " ", 1),
|
|
843
|
-
s.value.parent ? (i(),
|
|
844
|
-
])) :
|
|
845
|
-
])) :
|
|
846
|
-
])) : (i(),
|
|
822
|
+
s.value.parent ? (i(), m("span", Yn, "← " + b(s.value.parent), 1)) : E("", !0)
|
|
823
|
+
])) : E("", !0)
|
|
824
|
+
])) : E("", !0)
|
|
825
|
+
])) : (i(), m("div", fn, b(D(t)("inventory.changelog.empty")), 1));
|
|
847
826
|
};
|
|
848
827
|
}
|
|
849
|
-
}),
|
|
828
|
+
}), qn = { class: "flex flex-col gap-8" }, Zn = { class: "flex flex-wrap items-center gap-16" }, Qn = { class: "fm-typo-en-heading-lg-600" }, eo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, to = { class: "flex h-full min-h-0 flex-col gap-12 p-16" }, no = { class: "flex flex-wrap items-center gap-12" }, oo = { class: "flex shrink-0 items-center gap-8" }, ao = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, so = { class: "flex flex-wrap items-center gap-12" }, lo = {
|
|
850
829
|
key: 0,
|
|
851
830
|
class: "fm-typo-en-body-md-600"
|
|
852
|
-
},
|
|
831
|
+
}, ro = { class: "fm-typo-en-heading-md-600" }, io = {
|
|
853
832
|
key: 0,
|
|
854
833
|
class: "flex justify-center py-8"
|
|
855
|
-
}, Ce = "inventory.changelog.label.",
|
|
834
|
+
}, Ce = "inventory.changelog.label.", uo = /* @__PURE__ */ ue({
|
|
856
835
|
__name: "ChangelogDialog",
|
|
857
836
|
props: {
|
|
858
837
|
modelValue: { type: Boolean }
|
|
859
838
|
},
|
|
860
839
|
emits: ["update:modelValue"],
|
|
861
840
|
setup(o, { emit: e }) {
|
|
862
|
-
const t = o, l = e, s =
|
|
841
|
+
const t = o, l = e, s = V({
|
|
863
842
|
get: () => t.modelValue,
|
|
864
843
|
set: (n) => l("update:modelValue", n)
|
|
865
|
-
}), { t: a } = he(), r = ge(), u = Je(), v = He(), p = _e(), { breakpoints:
|
|
866
|
-
function
|
|
844
|
+
}), { t: a } = he(), r = ge(), u = Je(), v = He(), p = _e(), { breakpoints: L } = It(), F = V(() => L.value.xs || L.value.sm), B = V(() => F.value ? "98vw" : "72vw"), { commits: K, isLoading: Q, hasMore: U, load: $, loadMore: G } = Qt();
|
|
845
|
+
function C() {
|
|
867
846
|
G().catch((n) => console.error("changelog load more failed", n));
|
|
868
847
|
}
|
|
869
|
-
function
|
|
848
|
+
function y(n) {
|
|
870
849
|
return n ? new Date(n).toLocaleString() : "—";
|
|
871
850
|
}
|
|
872
|
-
function
|
|
873
|
-
return [...n].sort((c,
|
|
851
|
+
function S(n) {
|
|
852
|
+
return [...n].sort((c, k) => (k.lastUpdate ?? "").localeCompare(c.lastUpdate ?? ""));
|
|
874
853
|
}
|
|
875
|
-
function
|
|
876
|
-
|
|
854
|
+
function T(n, c, k) {
|
|
855
|
+
$(n, c, k).catch((z) => console.error("changelog load failed", z));
|
|
877
856
|
}
|
|
878
|
-
const O =
|
|
857
|
+
const O = x([]);
|
|
879
858
|
async function d() {
|
|
880
859
|
var c;
|
|
881
860
|
const n = (c = r.currentBusiness.value) == null ? void 0 : c._id;
|
|
882
861
|
if (n)
|
|
883
862
|
try {
|
|
884
863
|
O.value = await p.listDomains(n);
|
|
885
|
-
} catch (
|
|
886
|
-
console.error("changelog domain list load failed",
|
|
864
|
+
} catch (k) {
|
|
865
|
+
console.error("changelog domain list load failed", k), O.value = [];
|
|
887
866
|
}
|
|
888
867
|
}
|
|
889
|
-
const
|
|
868
|
+
const h = V(() => [
|
|
890
869
|
{ label: a("inventory.changelog.label.purchaseOrder"), value: "purchaseOrder" },
|
|
891
870
|
{ label: a("inventory.changelog.label.closingDraft"), value: "closingDraft" },
|
|
892
871
|
{ label: a("inventory.changelog.domainInventory"), value: "inventory" },
|
|
893
872
|
...O.value.map((n) => ({ label: a(n.labelKey), value: n.domain }))
|
|
894
|
-
]),
|
|
873
|
+
]), M = x(h.value[0]), A = V(() => {
|
|
895
874
|
var n;
|
|
896
|
-
return ((n =
|
|
897
|
-
}), X =
|
|
875
|
+
return ((n = M.value) == null ? void 0 : n.value) ?? "purchaseOrder";
|
|
876
|
+
}), X = V(
|
|
898
877
|
() => O.value.some((n) => n.domain === A.value)
|
|
899
|
-
), H =
|
|
878
|
+
), H = x(!1), R = V(
|
|
900
879
|
() => ["sku", "recipe", "unit"].map((n) => ({
|
|
901
880
|
label: a(Ce + n),
|
|
902
881
|
value: n
|
|
903
882
|
}))
|
|
904
|
-
), g =
|
|
883
|
+
), g = x(R.value[0]), f = V(() => {
|
|
905
884
|
var n;
|
|
906
885
|
return ((n = g.value) == null ? void 0 : n.value) ?? "sku";
|
|
907
|
-
}), N =
|
|
908
|
-
var
|
|
909
|
-
const n = (
|
|
886
|
+
}), N = x(""), _ = x(null), P = x(!1), Y = V(() => {
|
|
887
|
+
var k;
|
|
888
|
+
const n = (k = r.currentBusiness.value) == null ? void 0 : k._id, c = u.inventory._id;
|
|
910
889
|
return n && c ? `business_${n}/${c}` : "";
|
|
911
|
-
}), ee =
|
|
890
|
+
}), ee = V(() => {
|
|
912
891
|
const n = /* @__PURE__ */ new Map(), c = u.inventory;
|
|
913
|
-
for (const
|
|
914
|
-
for (const z of
|
|
892
|
+
for (const k of [c.sku, c.recipe, c.unit])
|
|
893
|
+
for (const z of k ?? [])
|
|
915
894
|
z._id && z.name && n.set(z._id, z.name);
|
|
916
|
-
for (const
|
|
917
|
-
for (const z of
|
|
895
|
+
for (const k of c.unit ?? [])
|
|
896
|
+
for (const z of k.measurements ?? []) {
|
|
918
897
|
if (!z.id) continue;
|
|
919
898
|
const q = z.abbrev || z.name;
|
|
920
899
|
if (!q) continue;
|
|
921
|
-
const ne =
|
|
922
|
-
n.set(z.id, ne ? `${q} (1 ${q} = ${ne} ${
|
|
900
|
+
const ne = Tt.toDouble(z.conversion);
|
|
901
|
+
n.set(z.id, ne ? `${q} (1 ${q} = ${ne} ${k.abbrev})` : q);
|
|
923
902
|
}
|
|
924
903
|
return n;
|
|
925
|
-
}), te = (n) => ee.value.get(n), re =
|
|
926
|
-
async function
|
|
904
|
+
}), te = (n) => ee.value.get(n), re = x([]), ce = x(!1);
|
|
905
|
+
async function Ee() {
|
|
927
906
|
var c;
|
|
928
907
|
const n = (c = r.currentBusiness.value) == null ? void 0 : c._id;
|
|
929
908
|
if (n) {
|
|
930
|
-
|
|
909
|
+
ce.value = !0;
|
|
931
910
|
try {
|
|
932
|
-
re.value =
|
|
933
|
-
await p.listInventory(n,
|
|
911
|
+
re.value = S(
|
|
912
|
+
await p.listInventory(n, f.value)
|
|
934
913
|
);
|
|
935
|
-
} catch (
|
|
936
|
-
console.error("changelog inventory list load failed",
|
|
914
|
+
} catch (k) {
|
|
915
|
+
console.error("changelog inventory list load failed", k), re.value = [];
|
|
937
916
|
} finally {
|
|
938
|
-
|
|
917
|
+
ce.value = !1;
|
|
939
918
|
}
|
|
940
919
|
}
|
|
941
920
|
}
|
|
942
|
-
const tt =
|
|
943
|
-
() =>
|
|
944
|
-
), nt =
|
|
921
|
+
const tt = V(
|
|
922
|
+
() => P.value ? re.value : re.value.filter((n) => !n.deleted)
|
|
923
|
+
), nt = V(() => [
|
|
945
924
|
{ accessorKey: "id", header: () => a("inventory.closing.draft.table.id"), size: 320 },
|
|
946
925
|
{
|
|
947
926
|
id: "name",
|
|
@@ -962,52 +941,52 @@ const yn = {
|
|
|
962
941
|
// Raw ISO is the sort key — clicking the header on formatted dates would
|
|
963
942
|
// order them lexicographically by locale string. Formatted only to display.
|
|
964
943
|
accessorFn: (n) => n.lastUpdate ?? "",
|
|
965
|
-
cell: ({ getValue: n }) =>
|
|
944
|
+
cell: ({ getValue: n }) => y(n() || void 0)
|
|
966
945
|
}
|
|
967
|
-
]), { commits: ot, load: at } =
|
|
946
|
+
]), { commits: ot, load: at } = tn();
|
|
968
947
|
function st(n) {
|
|
969
|
-
|
|
948
|
+
_.value = n, H.value = !0, T(Y.value, Xe, Re), n.id && at(`${Y.value}/${f.value}/${n.id}`).catch(
|
|
970
949
|
(c) => console.error("changelog per-entity load failed", c)
|
|
971
950
|
);
|
|
972
951
|
}
|
|
973
952
|
function lt(n, c) {
|
|
974
|
-
const
|
|
975
|
-
return
|
|
976
|
-
const q =
|
|
977
|
-
return q.type === Ce +
|
|
953
|
+
const k = qe(n.message);
|
|
954
|
+
return k && k.labelKey === Ce + f.value && k.name === c.name ? !0 : (n.changes ?? []).some((z) => {
|
|
955
|
+
const q = an(z.path);
|
|
956
|
+
return q.type === Ce + f.value && q.name === c.name;
|
|
978
957
|
});
|
|
979
958
|
}
|
|
980
|
-
const rt =
|
|
981
|
-
const n =
|
|
959
|
+
const rt = V(() => {
|
|
960
|
+
const n = _.value;
|
|
982
961
|
if (!n) return [];
|
|
983
|
-
const c = K.value.filter((
|
|
984
|
-
return
|
|
985
|
-
}),
|
|
962
|
+
const c = K.value.filter((k) => lt(k, n));
|
|
963
|
+
return en(c, ot.value);
|
|
964
|
+
}), be = x([]), xe = x(!1), we = x(null);
|
|
986
965
|
async function it() {
|
|
987
966
|
var c;
|
|
988
967
|
const n = (c = r.currentBusiness.value) == null ? void 0 : c._id;
|
|
989
968
|
if (n) {
|
|
990
|
-
|
|
969
|
+
xe.value = !0;
|
|
991
970
|
try {
|
|
992
|
-
|
|
971
|
+
be.value = S(
|
|
993
972
|
await p.listDomainRecords(n, A.value)
|
|
994
973
|
);
|
|
995
|
-
} catch (
|
|
996
|
-
console.error("changelog domain records load failed",
|
|
974
|
+
} catch (k) {
|
|
975
|
+
console.error("changelog domain records load failed", k), be.value = [];
|
|
997
976
|
} finally {
|
|
998
|
-
|
|
977
|
+
xe.value = !1;
|
|
999
978
|
}
|
|
1000
979
|
}
|
|
1001
980
|
}
|
|
1002
981
|
function ut(n) {
|
|
1003
|
-
var
|
|
1004
|
-
const c = (
|
|
1005
|
-
c && (we.value = n, H.value = !0,
|
|
982
|
+
var k;
|
|
983
|
+
const c = (k = r.currentBusiness.value) == null ? void 0 : k._id;
|
|
984
|
+
c && (we.value = n, H.value = !0, T(`business_${c}/${n.id}`, void 0, Le));
|
|
1006
985
|
}
|
|
1007
|
-
const pe =
|
|
986
|
+
const pe = x(Nt()), ye = x([]), ke = x(!1), de = x(null), Te = V(() => {
|
|
1008
987
|
const n = v._currentLocation;
|
|
1009
988
|
return n ? `${n.name} (${n.doc.profile.code ?? "--"})` : "";
|
|
1010
|
-
}),
|
|
989
|
+
}), Pe = V(() => [
|
|
1011
990
|
{ accessorKey: "id", header: () => a("inventory.closing.draft.table.id"), size: 320 },
|
|
1012
991
|
{
|
|
1013
992
|
accessorKey: "name",
|
|
@@ -1020,42 +999,42 @@ const yn = {
|
|
|
1020
999
|
size: 200,
|
|
1021
1000
|
// Raw ISO is the sort key; see the note on the inventory table.
|
|
1022
1001
|
accessorFn: (n) => n.lastUpdate ?? "",
|
|
1023
|
-
cell: ({ getValue: n }) =>
|
|
1002
|
+
cell: ({ getValue: n }) => y(n() || void 0)
|
|
1024
1003
|
}
|
|
1025
1004
|
]);
|
|
1026
1005
|
async function Be() {
|
|
1027
1006
|
var z;
|
|
1028
1007
|
const n = (z = v._currentLocation) == null ? void 0 : z.dbName;
|
|
1029
1008
|
if (!n) return;
|
|
1030
|
-
const c =
|
|
1009
|
+
const c = Pt(new Date(pe.value.startDate)).toISOString(), k = Bt(new Date(pe.value.endDate)).toISOString();
|
|
1031
1010
|
ke.value = !0;
|
|
1032
1011
|
try {
|
|
1033
|
-
ye.value =
|
|
1034
|
-
A.value === "purchaseOrder" ? await p.listPurchaseOrders(n, c,
|
|
1012
|
+
ye.value = S(
|
|
1013
|
+
A.value === "purchaseOrder" ? await p.listPurchaseOrders(n, c, k) : await p.listClosingDrafts(n, c, k)
|
|
1035
1014
|
);
|
|
1036
1015
|
} catch (q) {
|
|
1037
1016
|
console.error("changelog location list load failed", q), ye.value = [];
|
|
1038
1017
|
} finally {
|
|
1039
1018
|
ke.value = !1;
|
|
1040
1019
|
}
|
|
1041
|
-
|
|
1020
|
+
de.value && !ye.value.find((q) => {
|
|
1042
1021
|
var ne;
|
|
1043
|
-
return q.id === ((ne =
|
|
1044
|
-
}) && (
|
|
1022
|
+
return q.id === ((ne = de.value) == null ? void 0 : ne.id);
|
|
1023
|
+
}) && (de.value = null, T(""));
|
|
1045
1024
|
}
|
|
1046
1025
|
function ct(n) {
|
|
1047
|
-
|
|
1026
|
+
de.value = n, H.value = !0, T(`${v.currentLocationDBName}/${n.id}`, void 0, Le);
|
|
1048
1027
|
}
|
|
1049
|
-
const dt =
|
|
1050
|
-
var n, c,
|
|
1051
|
-
return A.value === "inventory" ? ((n =
|
|
1028
|
+
const dt = V(() => {
|
|
1029
|
+
var n, c, k;
|
|
1030
|
+
return A.value === "inventory" ? ((n = _.value) == null ? void 0 : n.name) ?? "" : X.value ? ((c = we.value) == null ? void 0 : c.name) ?? "" : ((k = de.value) == null ? void 0 : k.name) ?? "";
|
|
1052
1031
|
});
|
|
1053
1032
|
function Fe() {
|
|
1054
|
-
H.value = !1, A.value === "inventory" ? (
|
|
1033
|
+
H.value = !1, A.value === "inventory" ? (_.value = null, P.value = !1, T(""), Ee().catch(
|
|
1055
1034
|
(n) => console.error("changelog inventory list failed", n)
|
|
1056
|
-
)) : X.value ? (we.value = null,
|
|
1035
|
+
)) : X.value ? (we.value = null, T(""), it().catch(
|
|
1057
1036
|
(n) => console.error("changelog domain records failed", n)
|
|
1058
|
-
)) : (
|
|
1037
|
+
)) : (de.value = null, T(""), Be().catch((n) => console.error("changelog location list failed", n)));
|
|
1059
1038
|
}
|
|
1060
1039
|
return Z(s, (n) => {
|
|
1061
1040
|
n && (d().catch((c) => console.error("changelog domain list failed", c)), Fe());
|
|
@@ -1063,19 +1042,19 @@ const yn = {
|
|
|
1063
1042
|
s.value && Fe();
|
|
1064
1043
|
}), Z(pe, () => {
|
|
1065
1044
|
s.value && A.value !== "inventory" && !X.value && Be().catch((n) => console.error("changelog location list failed", n));
|
|
1066
|
-
}), Z(
|
|
1045
|
+
}), Z(P, (n) => {
|
|
1067
1046
|
var c;
|
|
1068
|
-
!n && ((c =
|
|
1069
|
-
}), Z(
|
|
1070
|
-
|
|
1047
|
+
!n && ((c = _.value) != null && c.deleted) && (_.value = null, H.value = !1);
|
|
1048
|
+
}), Z(f, () => {
|
|
1049
|
+
_.value = null, H.value = !1, s.value && A.value === "inventory" && Ee().catch(
|
|
1071
1050
|
(n) => console.error("changelog inventory list failed", n)
|
|
1072
1051
|
);
|
|
1073
|
-
}), Z(
|
|
1074
|
-
|
|
1052
|
+
}), Z(Y, (n) => {
|
|
1053
|
+
_.value = null, s.value && A.value === "inventory" && T(n, void 0, Re);
|
|
1075
1054
|
}), (n, c) => {
|
|
1076
|
-
const
|
|
1077
|
-
return i(),
|
|
1078
|
-
|
|
1055
|
+
const k = W("FmButtonGroup"), z = W("FmSearch"), q = W("FmSwitch"), ne = W("FmTable"), Ae = W("FmDialog"), ft = W("FmButton");
|
|
1056
|
+
return i(), m(J, null, [
|
|
1057
|
+
I(Ae, {
|
|
1079
1058
|
modelValue: s.value,
|
|
1080
1059
|
"onUpdate:modelValue": c[8] || (c[8] = (j) => s.value = j),
|
|
1081
1060
|
"close-button": "",
|
|
@@ -1086,70 +1065,70 @@ const yn = {
|
|
|
1086
1065
|
"content-class": "!p-0 h-[86vh]"
|
|
1087
1066
|
}, {
|
|
1088
1067
|
"dialog-header": le(() => [
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
modelValue:
|
|
1094
|
-
"onUpdate:modelValue": c[0] || (c[0] = (j) =>
|
|
1095
|
-
items:
|
|
1068
|
+
w("div", qn, [
|
|
1069
|
+
w("div", Zn, [
|
|
1070
|
+
w("div", Qn, b(D(a)("inventory.changelog.title")), 1),
|
|
1071
|
+
I(k, {
|
|
1072
|
+
modelValue: M.value,
|
|
1073
|
+
"onUpdate:modelValue": c[0] || (c[0] = (j) => M.value = j),
|
|
1074
|
+
items: h.value
|
|
1096
1075
|
}, null, 8, ["modelValue", "items"])
|
|
1097
1076
|
]),
|
|
1098
|
-
|
|
1077
|
+
w("div", eo, b(D(a)("inventory.changelog.scopeDescription")), 1)
|
|
1099
1078
|
])
|
|
1100
1079
|
]),
|
|
1101
1080
|
default: le(() => [
|
|
1102
|
-
|
|
1103
|
-
A.value === "inventory" ? (i(),
|
|
1104
|
-
|
|
1105
|
-
|
|
1081
|
+
w("div", to, [
|
|
1082
|
+
A.value === "inventory" ? (i(), m(J, { key: 0 }, [
|
|
1083
|
+
w("div", no, [
|
|
1084
|
+
I(k, {
|
|
1106
1085
|
modelValue: g.value,
|
|
1107
1086
|
"onUpdate:modelValue": c[1] || (c[1] = (j) => g.value = j),
|
|
1108
|
-
items:
|
|
1087
|
+
items: R.value
|
|
1109
1088
|
}, null, 8, ["modelValue", "items"]),
|
|
1110
|
-
|
|
1089
|
+
I(z, {
|
|
1111
1090
|
modelValue: N.value,
|
|
1112
1091
|
"onUpdate:modelValue": c[2] || (c[2] = (j) => N.value = j),
|
|
1113
1092
|
class: "flex-1",
|
|
1114
|
-
placeholder:
|
|
1093
|
+
placeholder: D(a)("inventory.changelog.searchInventory")
|
|
1115
1094
|
}, null, 8, ["modelValue", "placeholder"]),
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
modelValue:
|
|
1120
|
-
"onUpdate:modelValue": c[3] || (c[3] = (j) =>
|
|
1095
|
+
w("div", oo, [
|
|
1096
|
+
w("span", ao, b(D(a)("inventory.changelog.includeDeleted")), 1),
|
|
1097
|
+
I(q, {
|
|
1098
|
+
modelValue: P.value,
|
|
1099
|
+
"onUpdate:modelValue": c[3] || (c[3] = (j) => P.value = j)
|
|
1121
1100
|
}, null, 8, ["modelValue"])
|
|
1122
1101
|
])
|
|
1123
1102
|
]),
|
|
1124
|
-
|
|
1103
|
+
I(ne, {
|
|
1125
1104
|
class: "min-h-0 flex-1",
|
|
1126
1105
|
"row-data": tt.value,
|
|
1127
1106
|
"column-defs": nt.value,
|
|
1128
1107
|
"search-value": N.value,
|
|
1129
|
-
loading:
|
|
1108
|
+
loading: ce.value,
|
|
1130
1109
|
"page-size": 20,
|
|
1131
1110
|
onRowClick: c[4] || (c[4] = (j) => st(j.original))
|
|
1132
1111
|
}, null, 8, ["row-data", "column-defs", "search-value", "loading"])
|
|
1133
|
-
], 64)) : X.value ? (i(),
|
|
1112
|
+
], 64)) : X.value ? (i(), ie(ne, {
|
|
1134
1113
|
key: 1,
|
|
1135
1114
|
class: "min-h-0 flex-1",
|
|
1136
|
-
"row-data":
|
|
1137
|
-
"column-defs":
|
|
1138
|
-
loading:
|
|
1115
|
+
"row-data": be.value,
|
|
1116
|
+
"column-defs": Pe.value,
|
|
1117
|
+
loading: xe.value,
|
|
1139
1118
|
"page-size": 20,
|
|
1140
1119
|
onRowClick: c[5] || (c[5] = (j) => ut(j.original))
|
|
1141
|
-
}, null, 8, ["row-data", "column-defs", "loading"])) : (i(),
|
|
1142
|
-
|
|
1143
|
-
|
|
1120
|
+
}, null, 8, ["row-data", "column-defs", "loading"])) : (i(), m(J, { key: 2 }, [
|
|
1121
|
+
w("div", so, [
|
|
1122
|
+
I(Et, {
|
|
1144
1123
|
modelValue: pe.value,
|
|
1145
1124
|
"onUpdate:modelValue": c[6] || (c[6] = (j) => pe.value = j)
|
|
1146
1125
|
}, null, 8, ["modelValue"]),
|
|
1147
|
-
|
|
1126
|
+
Te.value ? (i(), m("span", lo, b(Te.value), 1)) : E("", !0)
|
|
1148
1127
|
]),
|
|
1149
|
-
|
|
1128
|
+
I(ne, {
|
|
1150
1129
|
class: "min-h-0 flex-1",
|
|
1151
1130
|
"row-data": ye.value,
|
|
1152
|
-
"column-defs":
|
|
1131
|
+
"column-defs": Pe.value,
|
|
1153
1132
|
loading: ke.value,
|
|
1154
1133
|
"page-size": 20,
|
|
1155
1134
|
onRowClick: c[7] || (c[7] = (j) => ct(j.original))
|
|
@@ -1159,7 +1138,7 @@ const yn = {
|
|
|
1159
1138
|
]),
|
|
1160
1139
|
_: 1
|
|
1161
1140
|
}, 8, ["modelValue"]),
|
|
1162
|
-
|
|
1141
|
+
I(Ae, {
|
|
1163
1142
|
modelValue: H.value,
|
|
1164
1143
|
"onUpdate:modelValue": c[9] || (c[9] = (j) => H.value = j),
|
|
1165
1144
|
"close-button": "",
|
|
@@ -1169,251 +1148,251 @@ const yn = {
|
|
|
1169
1148
|
"max-height": "86vh"
|
|
1170
1149
|
}, {
|
|
1171
1150
|
"dialog-header": le(() => [
|
|
1172
|
-
|
|
1151
|
+
w("div", ro, b(dt.value), 1)
|
|
1173
1152
|
]),
|
|
1174
1153
|
default: le(() => [
|
|
1175
|
-
|
|
1176
|
-
commits: A.value === "inventory" ? rt.value :
|
|
1177
|
-
"is-loading":
|
|
1154
|
+
I(Xn, {
|
|
1155
|
+
commits: A.value === "inventory" ? rt.value : D(K),
|
|
1156
|
+
"is-loading": D(Q),
|
|
1178
1157
|
"resolve-name": te
|
|
1179
1158
|
}, null, 8, ["commits", "is-loading"]),
|
|
1180
|
-
A.value !== "inventory" &&
|
|
1181
|
-
|
|
1182
|
-
label:
|
|
1159
|
+
A.value !== "inventory" && D(U) ? (i(), m("div", io, [
|
|
1160
|
+
I(ft, {
|
|
1161
|
+
label: D(a)("inventory.changelog.loadMore"),
|
|
1183
1162
|
variant: "secondary",
|
|
1184
|
-
disabled:
|
|
1185
|
-
onClick:
|
|
1163
|
+
disabled: D(Q),
|
|
1164
|
+
onClick: C
|
|
1186
1165
|
}, null, 8, ["label", "disabled"])
|
|
1187
|
-
])) :
|
|
1166
|
+
])) : E("", !0)
|
|
1188
1167
|
]),
|
|
1189
1168
|
_: 1
|
|
1190
1169
|
}, 8, ["modelValue", "min-width", "max-width"])
|
|
1191
1170
|
], 64);
|
|
1192
1171
|
};
|
|
1193
1172
|
}
|
|
1194
|
-
}),
|
|
1195
|
-
function
|
|
1173
|
+
}), co = /* @__PURE__ */ Ft(uo, [["__scopeId", "data-v-07c5a952"]]), se = 8;
|
|
1174
|
+
function fo(o, e) {
|
|
1196
1175
|
return { x: se, y: Math.max(se, e - o - se) };
|
|
1197
1176
|
}
|
|
1198
|
-
const
|
|
1177
|
+
const mo = ["title"], Ge = 48, po = 8, vo = /* @__PURE__ */ ue({
|
|
1199
1178
|
__name: "ChangelogFloatingButton",
|
|
1200
1179
|
setup(o) {
|
|
1201
|
-
const { t: e } = he(), t = ge(), l =
|
|
1202
|
-
var
|
|
1203
|
-
return !!((
|
|
1204
|
-
}), s =
|
|
1180
|
+
const { t: e } = he(), t = ge(), l = V(() => {
|
|
1181
|
+
var C;
|
|
1182
|
+
return !!((C = t.sessionUser.value) != null && C.role.isAdmin);
|
|
1183
|
+
}), s = x(!1), a = x(null);
|
|
1205
1184
|
function r() {
|
|
1206
|
-
var
|
|
1185
|
+
var C, y;
|
|
1207
1186
|
return {
|
|
1208
|
-
width: ((
|
|
1209
|
-
height: ((
|
|
1187
|
+
width: ((C = a.value) == null ? void 0 : C.offsetWidth) ?? Ge,
|
|
1188
|
+
height: ((y = a.value) == null ? void 0 : y.offsetHeight) ?? Ge
|
|
1210
1189
|
};
|
|
1211
1190
|
}
|
|
1212
|
-
const u =
|
|
1213
|
-
function v(
|
|
1214
|
-
return Math.min(Math.max(
|
|
1191
|
+
const u = x({ x: 0, y: 0 });
|
|
1192
|
+
function v(C, y, S) {
|
|
1193
|
+
return Math.min(Math.max(C, y), S);
|
|
1215
1194
|
}
|
|
1216
1195
|
function p() {
|
|
1217
|
-
const { width:
|
|
1196
|
+
const { width: C, height: y } = r(), S = Math.max(se, window.innerWidth - C - se - po), T = Math.max(se, window.innerHeight - y - se), O = u.value.x + C / 2;
|
|
1218
1197
|
u.value = {
|
|
1219
|
-
x: O < window.innerWidth / 2 ? se :
|
|
1220
|
-
y: v(u.value.y, se,
|
|
1198
|
+
x: O < window.innerWidth / 2 ? se : S,
|
|
1199
|
+
y: v(u.value.y, se, T)
|
|
1221
1200
|
};
|
|
1222
1201
|
}
|
|
1223
|
-
function
|
|
1224
|
-
u.value =
|
|
1202
|
+
function L() {
|
|
1203
|
+
u.value = fo(r().height, window.innerHeight);
|
|
1225
1204
|
}
|
|
1226
1205
|
Ie(() => {
|
|
1227
|
-
|
|
1206
|
+
L(), window.addEventListener("resize", p), window.addEventListener("orientationchange", p);
|
|
1228
1207
|
}), gt(() => {
|
|
1229
1208
|
window.removeEventListener("resize", p), window.removeEventListener("orientationchange", p);
|
|
1230
|
-
}), Z(l, async (
|
|
1231
|
-
|
|
1209
|
+
}), Z(l, async (C) => {
|
|
1210
|
+
C && (await yt(), L());
|
|
1232
1211
|
});
|
|
1233
|
-
const F =
|
|
1212
|
+
const F = x(!1);
|
|
1234
1213
|
let B = null, K = !1;
|
|
1235
|
-
function Q(
|
|
1236
|
-
B = { x:
|
|
1214
|
+
function Q(C) {
|
|
1215
|
+
B = { x: C.clientX, y: C.clientY, px: u.value.x, py: u.value.y }, F.value = !0, K = !1, C.currentTarget.setPointerCapture(C.pointerId);
|
|
1237
1216
|
}
|
|
1238
|
-
function
|
|
1217
|
+
function U(C) {
|
|
1239
1218
|
if (!B) return;
|
|
1240
|
-
const
|
|
1241
|
-
Math.abs(
|
|
1242
|
-
const { width:
|
|
1219
|
+
const y = C.clientX - B.x, S = C.clientY - B.y;
|
|
1220
|
+
Math.abs(y) + Math.abs(S) > 3 && (K = !0);
|
|
1221
|
+
const { width: T, height: O } = r();
|
|
1243
1222
|
u.value = {
|
|
1244
|
-
x: v(B.px +
|
|
1245
|
-
y: v(B.py +
|
|
1223
|
+
x: v(B.px + y, 0, window.innerWidth - T),
|
|
1224
|
+
y: v(B.py + S, 0, window.innerHeight - O)
|
|
1246
1225
|
};
|
|
1247
1226
|
}
|
|
1248
|
-
function
|
|
1227
|
+
function $() {
|
|
1249
1228
|
B = null, F.value = !1, p();
|
|
1250
1229
|
}
|
|
1251
1230
|
function G() {
|
|
1252
|
-
B && (
|
|
1231
|
+
B && ($(), K || (s.value = !0));
|
|
1253
1232
|
}
|
|
1254
|
-
return (
|
|
1255
|
-
const
|
|
1256
|
-
return i(),
|
|
1257
|
-
l.value ? (i(),
|
|
1258
|
-
|
|
1233
|
+
return (C, y) => {
|
|
1234
|
+
const S = W("FmIcon");
|
|
1235
|
+
return i(), ie(ht, { to: "body" }, [
|
|
1236
|
+
l.value ? (i(), m(J, { key: 0 }, [
|
|
1237
|
+
w("div", {
|
|
1259
1238
|
ref_key: "wrapperRef",
|
|
1260
1239
|
ref: a,
|
|
1261
1240
|
class: ae(["fixed z-50 cursor-grab touch-none", F.value ? "" : "transition-[left,top] duration-200 ease-out"]),
|
|
1262
1241
|
style: _t({ left: `${u.value.x}px`, top: `${u.value.y}px` })
|
|
1263
1242
|
}, [
|
|
1264
|
-
|
|
1243
|
+
I(We, null, {
|
|
1265
1244
|
default: le(() => [
|
|
1266
|
-
|
|
1245
|
+
w("button", {
|
|
1267
1246
|
type: "button",
|
|
1268
|
-
title:
|
|
1247
|
+
title: D(e)("inventory.changelog.title"),
|
|
1269
1248
|
class: ae(["fm-typo-en-body-sm-600 flex h-48 items-center gap-8 whitespace-nowrap rounded-full border border-gray-200 bg-white px-16 shadow-lg hover:bg-gray-50", F.value ? "cursor-grabbing" : "cursor-grab"]),
|
|
1270
1249
|
onPointerdown: Q,
|
|
1271
|
-
onPointermove:
|
|
1250
|
+
onPointermove: U,
|
|
1272
1251
|
onPointerup: G,
|
|
1273
|
-
onPointercancel:
|
|
1252
|
+
onPointercancel: $
|
|
1274
1253
|
}, [
|
|
1275
|
-
|
|
1254
|
+
I(S, {
|
|
1276
1255
|
name: "history",
|
|
1277
1256
|
size: "md",
|
|
1278
1257
|
outline: ""
|
|
1279
1258
|
}),
|
|
1280
|
-
|
|
1281
|
-
], 42,
|
|
1259
|
+
w("span", null, b(D(e)("inventory.changelog.fabLabel")), 1)
|
|
1260
|
+
], 42, mo)
|
|
1282
1261
|
]),
|
|
1283
1262
|
_: 1
|
|
1284
1263
|
})
|
|
1285
1264
|
], 6),
|
|
1286
|
-
|
|
1265
|
+
I(co, {
|
|
1287
1266
|
modelValue: s.value,
|
|
1288
|
-
"onUpdate:modelValue":
|
|
1267
|
+
"onUpdate:modelValue": y[0] || (y[0] = (T) => s.value = T)
|
|
1289
1268
|
}, null, 8, ["modelValue"])
|
|
1290
|
-
], 64)) :
|
|
1269
|
+
], 64)) : E("", !0)
|
|
1291
1270
|
]);
|
|
1292
1271
|
};
|
|
1293
1272
|
}
|
|
1294
|
-
}),
|
|
1273
|
+
}), go = { class: "flex items-center gap-8" }, yo = { class: "flex flex-col gap-8 text-fm-color-typo-secondary" }, ho = { class: "fm-typo-en-body-md-400 text-fm-color-typo-primary" }, _o = /* @__PURE__ */ ue({
|
|
1295
1274
|
__name: "DeprecateSoonWarningDialog",
|
|
1296
|
-
props: /* @__PURE__ */
|
|
1275
|
+
props: /* @__PURE__ */ Ue({
|
|
1297
1276
|
featureName: {}
|
|
1298
1277
|
}, {
|
|
1299
1278
|
modelValue: { type: Boolean, required: !0 },
|
|
1300
1279
|
modelModifiers: {}
|
|
1301
1280
|
}),
|
|
1302
|
-
emits: /* @__PURE__ */
|
|
1281
|
+
emits: /* @__PURE__ */ Ue(["proceed"], ["update:modelValue"]),
|
|
1303
1282
|
setup(o, { emit: e }) {
|
|
1304
|
-
const t =
|
|
1283
|
+
const t = bt(o, "modelValue"), l = e;
|
|
1305
1284
|
function s() {
|
|
1306
1285
|
t.value = !1, l("proceed");
|
|
1307
1286
|
}
|
|
1308
1287
|
return (a, r) => {
|
|
1309
|
-
const u =
|
|
1310
|
-
return i(),
|
|
1288
|
+
const u = W("FmSpacer"), v = W("FmButton"), p = W("FmDialog");
|
|
1289
|
+
return i(), ie(p, {
|
|
1311
1290
|
modelValue: t.value,
|
|
1312
|
-
"onUpdate:modelValue": r[1] || (r[1] = (
|
|
1291
|
+
"onUpdate:modelValue": r[1] || (r[1] = (L) => t.value = L),
|
|
1313
1292
|
overlay: !0,
|
|
1314
1293
|
"close-button": "",
|
|
1315
1294
|
dismissAway: "",
|
|
1316
1295
|
"max-width": "520px"
|
|
1317
1296
|
}, {
|
|
1318
1297
|
"dialog-header": le(() => [
|
|
1319
|
-
|
|
1320
|
-
r[2] || (r[2] =
|
|
1321
|
-
|
|
1298
|
+
w("div", go, [
|
|
1299
|
+
r[2] || (r[2] = w("span", null, "Feature removal notice", -1)),
|
|
1300
|
+
I(Ut)
|
|
1322
1301
|
])
|
|
1323
1302
|
]),
|
|
1324
1303
|
"dialog-footer": le(() => [
|
|
1325
|
-
|
|
1326
|
-
|
|
1304
|
+
I(u, { class: "sm:hidden xs:hidden" }),
|
|
1305
|
+
I(v, {
|
|
1327
1306
|
variant: "tertiary",
|
|
1328
1307
|
label: "Cancel",
|
|
1329
|
-
onClick: r[0] || (r[0] = (
|
|
1308
|
+
onClick: r[0] || (r[0] = (L) => t.value = !1)
|
|
1330
1309
|
}),
|
|
1331
|
-
|
|
1310
|
+
I(v, {
|
|
1332
1311
|
label: "Continue",
|
|
1333
1312
|
onClick: s
|
|
1334
1313
|
})
|
|
1335
1314
|
]),
|
|
1336
1315
|
default: le(() => [
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
r[3] || (r[3] =
|
|
1316
|
+
w("div", yo, [
|
|
1317
|
+
w("p", ho, b(a.featureName ?? "This feature") + " will be removed in a future release. ", 1),
|
|
1318
|
+
r[3] || (r[3] = w("p", { class: "fm-typo-en-body-sm-400" }, " You can continue to use it for now, but we recommend moving to the supported workflow. ", -1))
|
|
1340
1319
|
])
|
|
1341
1320
|
]),
|
|
1342
1321
|
_: 1
|
|
1343
1322
|
}, 8, ["modelValue"]);
|
|
1344
1323
|
};
|
|
1345
1324
|
}
|
|
1346
|
-
}),
|
|
1325
|
+
}), bo = { class: "h-full flex flex-col overflow-auto py-16 gap-2" }, xo = /* @__PURE__ */ ue({
|
|
1347
1326
|
__name: "NavigationTab",
|
|
1348
1327
|
setup(o) {
|
|
1349
|
-
const e =
|
|
1328
|
+
const e = Ct(), t = Ne(), l = ge(), s = Ot(), a = At(), r = x(!1), u = x(null), v = x(null), p = x(!1), L = x(null), F = x(null), B = V(
|
|
1350
1329
|
() => {
|
|
1351
|
-
var
|
|
1352
|
-
return (
|
|
1330
|
+
var y, S;
|
|
1331
|
+
return (S = Oe(((y = L.value) == null ? void 0 : y.featureKey) ?? "")) == null ? void 0 : S.label;
|
|
1353
1332
|
}
|
|
1354
1333
|
), { menuItems: K } = Ye();
|
|
1355
|
-
Z([() => l.currentBusiness.value, () => e.name], ([
|
|
1356
|
-
(
|
|
1334
|
+
Z([() => l.currentBusiness.value, () => e.name], ([y, S]) => {
|
|
1335
|
+
(y == null ? void 0 : y.menuVersion) === "v3" && (S === me.INGREDIENTS || S === me.RECIPE || S === me.UNIT) && t.push({ name: me.STOCK });
|
|
1357
1336
|
});
|
|
1358
|
-
const Q =
|
|
1337
|
+
const Q = V({
|
|
1359
1338
|
get() {
|
|
1360
1339
|
if (e.name)
|
|
1361
1340
|
return String(e.name);
|
|
1362
1341
|
},
|
|
1363
|
-
set(
|
|
1342
|
+
set(y) {
|
|
1364
1343
|
var d;
|
|
1365
|
-
if (!
|
|
1366
|
-
const
|
|
1367
|
-
if ((d = Oe((
|
|
1368
|
-
|
|
1344
|
+
if (!y) return;
|
|
1345
|
+
const S = String(y), T = Dt.find((h) => h.route === S), O = Vt(S, s.value);
|
|
1346
|
+
if ((d = Oe((T == null ? void 0 : T.featureKey) ?? "")) != null && d.deprecateSoon) {
|
|
1347
|
+
L.value = T ?? null, F.value = S, p.value = !0;
|
|
1369
1348
|
return;
|
|
1370
1349
|
}
|
|
1371
|
-
if (
|
|
1372
|
-
u.value =
|
|
1350
|
+
if (T && O.disabled) {
|
|
1351
|
+
u.value = T, v.value = O, r.value = !0;
|
|
1373
1352
|
return;
|
|
1374
1353
|
}
|
|
1375
|
-
t.push({ name:
|
|
1354
|
+
t.push({ name: S });
|
|
1376
1355
|
}
|
|
1377
1356
|
});
|
|
1378
|
-
function
|
|
1357
|
+
function U() {
|
|
1379
1358
|
F.value && (t.push({ name: F.value }), F.value = null);
|
|
1380
1359
|
}
|
|
1381
|
-
const
|
|
1360
|
+
const $ = V(
|
|
1382
1361
|
() => {
|
|
1383
|
-
var
|
|
1384
|
-
return `NavigationTab.${(
|
|
1362
|
+
var y;
|
|
1363
|
+
return `NavigationTab.${(y = l.currentBusiness.value) == null ? void 0 : y._id}`;
|
|
1385
1364
|
}
|
|
1386
|
-
), G =
|
|
1365
|
+
), G = x(!1), C = V({
|
|
1387
1366
|
get() {
|
|
1388
1367
|
return G.value;
|
|
1389
1368
|
},
|
|
1390
|
-
set(
|
|
1391
|
-
G.value =
|
|
1369
|
+
set(y) {
|
|
1370
|
+
G.value = y, y || a.setItem($.value, "true");
|
|
1392
1371
|
}
|
|
1393
1372
|
});
|
|
1394
|
-
return Z([() =>
|
|
1373
|
+
return Z([() => $.value], () => {
|
|
1395
1374
|
G.value = !1, setTimeout(() => {
|
|
1396
|
-
|
|
1375
|
+
C.value = !a.getItem($.value);
|
|
1397
1376
|
}, 2e3);
|
|
1398
|
-
}), (
|
|
1399
|
-
const
|
|
1400
|
-
return i(),
|
|
1401
|
-
|
|
1377
|
+
}), (y, S) => {
|
|
1378
|
+
const T = W("FmCollapsibleTabs");
|
|
1379
|
+
return i(), m("div", bo, [
|
|
1380
|
+
I(T, {
|
|
1402
1381
|
modelValue: Q.value,
|
|
1403
|
-
"onUpdate:modelValue":
|
|
1404
|
-
items:
|
|
1382
|
+
"onUpdate:modelValue": S[0] || (S[0] = (O) => Q.value = O),
|
|
1383
|
+
items: D(K)
|
|
1405
1384
|
}, null, 8, ["modelValue", "items"]),
|
|
1406
|
-
|
|
1385
|
+
I(Mt, {
|
|
1407
1386
|
modelValue: r.value,
|
|
1408
|
-
"onUpdate:modelValue":
|
|
1387
|
+
"onUpdate:modelValue": S[1] || (S[1] = (O) => r.value = O),
|
|
1409
1388
|
capability: u.value,
|
|
1410
1389
|
result: v.value
|
|
1411
1390
|
}, null, 8, ["modelValue", "capability", "result"]),
|
|
1412
|
-
|
|
1391
|
+
I(_o, {
|
|
1413
1392
|
modelValue: p.value,
|
|
1414
|
-
"onUpdate:modelValue":
|
|
1393
|
+
"onUpdate:modelValue": S[2] || (S[2] = (O) => p.value = O),
|
|
1415
1394
|
"feature-name": B.value,
|
|
1416
|
-
onProceed:
|
|
1395
|
+
onProceed: U
|
|
1417
1396
|
}, null, 8, ["modelValue", "feature-name"])
|
|
1418
1397
|
]);
|
|
1419
1398
|
};
|
|
@@ -1428,19 +1407,19 @@ typeof Promise.withResolvers > "u" && (Promise.withResolvers = () => {
|
|
|
1428
1407
|
typeof Promise.prototype.delayed > "u" && (Promise.prototype.delayed = async function(o) {
|
|
1429
1408
|
return await new Promise((e) => setTimeout(e, o)), Promise.resolve(this);
|
|
1430
1409
|
});
|
|
1431
|
-
const
|
|
1410
|
+
const wo = {
|
|
1432
1411
|
key: 0,
|
|
1433
1412
|
class: "flex h-5 items-center justify-center bg-amber-100 px-12 text-xs font-medium text-amber-800 shadow-sm"
|
|
1434
|
-
},
|
|
1413
|
+
}, zo = /* @__PURE__ */ ue({
|
|
1435
1414
|
__name: "App",
|
|
1436
1415
|
setup(o) {
|
|
1437
|
-
const e = ge(), t =
|
|
1416
|
+
const e = ge(), t = Kt(), l = $t(), s = window.location.href.includes("print-preview");
|
|
1438
1417
|
Ie(() => {
|
|
1439
1418
|
if (window.location.href.includes("print-preview")) {
|
|
1440
1419
|
e.setEmbedded(!0), document.body.classList.add("print-mode");
|
|
1441
1420
|
return;
|
|
1442
1421
|
}
|
|
1443
|
-
e.registerSidebarComponent(
|
|
1422
|
+
e.registerSidebarComponent(xo), t.initGoogleMap(l.appApi.googleMap).catch(() => {
|
|
1444
1423
|
console.error("Google map cannot be loaded");
|
|
1445
1424
|
});
|
|
1446
1425
|
}), Z([() => e.currentCountry.value], () => {
|
|
@@ -1454,13 +1433,13 @@ const Ro = {
|
|
|
1454
1433
|
console.error("error when trying to reset businesses:", u);
|
|
1455
1434
|
}
|
|
1456
1435
|
}
|
|
1457
|
-
return (r, u) => (i(),
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1436
|
+
return (r, u) => (i(), m(J, null, [
|
|
1437
|
+
D(l).isDev && !D(s) ? (i(), m("div", wo, " Non-production environment ")) : E("", !0),
|
|
1438
|
+
I(qt),
|
|
1439
|
+
D(s) ? E("", !0) : (i(), ie(vo, { key: 1 }))
|
|
1461
1440
|
], 64));
|
|
1462
1441
|
}
|
|
1463
1442
|
});
|
|
1464
1443
|
export {
|
|
1465
|
-
|
|
1444
|
+
zo as default
|
|
1466
1445
|
};
|