@crystaldesign/diva-backoffice 25.8.0-beta.9 → 25.8.0-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/build/esm/index.js +1461 -505
  2. package/build/types/backoffice/src/layout/Toolbar/Tools/WYSIWYG_Configurator/ArticleSelection/index.d.ts +1 -1
  3. package/build/types/backoffice/src/layout/Toolbar/Tools/WYSIWYG_Configurator/ArticleSelection/index.d.ts.map +1 -1
  4. package/build/types/backoffice/src/layout/Toolbar/Tools/WYSIWYG_Configurator/CatalogSelection/index.d.ts +1 -1
  5. package/build/types/backoffice/src/layout/Toolbar/Tools/WYSIWYG_Configurator/CatalogSelection/index.d.ts.map +1 -1
  6. package/build/types/backoffice/src/layout/Toolbar/Tools/WYSIWYG_Configurator/index.d.ts.map +1 -1
  7. package/build/types/backoffice/src/layout/Toolbar/Tools/WYSIWYG_Configurator/useWysiwygConfigurator.d.ts +8 -6
  8. package/build/types/backoffice/src/layout/Toolbar/Tools/WYSIWYG_Configurator/useWysiwygConfigurator.d.ts.map +1 -1
  9. package/build/types/backoffice/src/ui/Form/elements.d.ts.map +1 -1
  10. package/build/types/backoffice/src/ui/Form/index.d.ts.map +1 -1
  11. package/build/types/backoffice/src/ui/Form/types.d.ts +7 -1
  12. package/build/types/backoffice/src/ui/Form/types.d.ts.map +1 -1
  13. package/build/types/backoffice/src/ui/IDMCatalogEditor/components/PrefilterSelectors/SeriesSelector.d.ts.map +1 -1
  14. package/build/types/backoffice/src/ui/IDMCatalogEditor/hooks/useCatalogContext.d.ts +4 -4
  15. package/build/types/backoffice/src/ui/IDMCatalogEditor/hooks/useCatalogContext.d.ts.map +1 -1
  16. package/build/types/backoffice/src/ui/IDMCommonComponents/SpreadsheetWrapper/index.d.ts +2 -2
  17. package/build/types/backoffice/src/ui/IDMCommonComponents/SpreadsheetWrapper/index.d.ts.map +1 -1
  18. package/build/types/backoffice/src/ui/IDMCommonComponents/createTranslatedColumnConfig.d.ts +1 -1
  19. package/build/types/backoffice/src/ui/IDMCommonComponents/createTranslatedColumnConfig.d.ts.map +1 -1
  20. package/build/types/backoffice/src/ui/IDMCommonComponents/useTools.d.ts.map +1 -1
  21. package/build/types/backoffice/src/ui/IDMEnricherEditor/Tables/Prices/PriceFactorHeaderComponent.d.ts +37 -0
  22. package/build/types/backoffice/src/ui/IDMEnricherEditor/Tables/Prices/PriceFactorHeaderComponent.d.ts.map +1 -0
  23. package/build/types/backoffice/src/ui/IDMEnricherEditor/Tables/Prices/PriceFactorInput/index.d.ts +2 -2
  24. package/build/types/backoffice/src/ui/IDMEnricherEditor/Tables/Prices/PriceFactorInput/index.d.ts.map +1 -1
  25. package/build/types/backoffice/src/ui/IDMEnricherEditor/Tables/Prices/Setting/index.d.ts +8 -0
  26. package/build/types/backoffice/src/ui/IDMEnricherEditor/Tables/Prices/Setting/index.d.ts.map +1 -0
  27. package/build/types/backoffice/src/ui/IDMEnricherEditor/Tables/Prices/index.d.ts +2 -1
  28. package/build/types/backoffice/src/ui/IDMEnricherEditor/Tables/Prices/index.d.ts.map +1 -1
  29. package/build/types/backoffice/src/ui/IDMEnricherEditor/components/PrefilterSelectors/PackageSelector.d.ts.map +1 -1
  30. package/build/types/backoffice/src/ui/IDMEnricherEditor/hooks/useEnricherContext.d.ts +6 -0
  31. package/build/types/backoffice/src/ui/IDMEnricherEditor/hooks/useEnricherContext.d.ts.map +1 -1
  32. package/build/types/backoffice/src/ui/IDMEnricherEditor/hooks/useModule.d.ts +4 -0
  33. package/build/types/backoffice/src/ui/IDMEnricherEditor/hooks/useModule.d.ts.map +1 -1
  34. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TablePackages/PublishCustomCell.d.ts +2 -1
  35. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TablePackages/PublishCustomCell.d.ts.map +1 -1
  36. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TablePackages/index.d.ts.map +1 -1
  37. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TablePriceList/index.d.ts.map +1 -1
  38. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/index.d.ts.map +1 -1
  39. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/catalogConfig.d.ts +3 -3
  40. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/catalogConfig.d.ts.map +1 -1
  41. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/detailInfosConfig.d.ts +4 -3
  42. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/detailInfosConfig.d.ts.map +1 -1
  43. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/featureConfig.d.ts +4 -3
  44. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/featureConfig.d.ts.map +1 -1
  45. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/itemConfig.d.ts +4 -3
  46. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/itemConfig.d.ts.map +1 -1
  47. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/optionsConfig.d.ts +4 -3
  48. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/optionsConfig.d.ts.map +1 -1
  49. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/seriesConfig.d.ts +4 -3
  50. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/seriesConfig.d.ts.map +1 -1
  51. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableTabGroups/index.d.ts.map +1 -1
  52. package/build/types/backoffice/src/ui/SelectSimple/useSelectSimpleData.d.ts.map +1 -1
  53. package/package.json +9 -9
@@ -1,7 +1,7 @@
1
1
  import _defineProperty from '@babel/runtime/helpers/defineProperty';
2
2
  import React, { createElement, createContext, useState, useEffect, useRef, useMemo, forwardRef, useImperativeHandle, useCallback, createRef, useReducer, useContext, memo, useDeferredValue } from 'react';
3
3
  import 'antd/dist/reset.css';
4
- import { Form as Form$1, Button, Input, Popover, Typography, Divider, Progress, Select as Select$1, Avatar, Spin, Radio, Space, Dropdown, DatePicker, Checkbox, InputNumber, Modal as Modal$2, Cascader, Descriptions, Row, Col, Tooltip as Tooltip$1, Collapse, List as List$1, Skeleton, Alert, Card, Upload as Upload$2, Table as Table$1, Switch, Popconfirm, Tabs, Image, Slider, Breadcrumb, Result as Result$1, message, Layout, Drawer, ConfigProvider, theme } from 'antd';
4
+ import { Form as Form$1, Button, Input, Popover, Typography, Divider, Progress, Select as Select$1, Avatar, Spin, Radio, Space, Dropdown, DatePicker, Checkbox, InputNumber, Modal as Modal$2, Tabs, Cascader, Descriptions, Row, Col, Tooltip as Tooltip$1, Collapse, List as List$1, Skeleton, Alert, Card, Upload as Upload$2, Table as Table$1, Switch, Popconfirm, Image, Slider, Breadcrumb, Result as Result$1, message, Layout, Drawer, ConfigProvider, theme } from 'antd';
5
5
  import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
6
6
  import { observer } from 'mobx-react-lite';
7
7
  import { getLogger, DivaError, useTranslation, useDivaCore, DivaUtils } from '@crystaldesign/diva-core';
@@ -119,9 +119,11 @@ import Descriptions$1 from 'antd/es/descriptions';
119
119
  import { Spreadsheet as Spreadsheet$1 } from '@crystaldesign/spreadsheet';
120
120
  import EditOutlined from '@ant-design/icons/lib/icons/EditOutlined';
121
121
  import Checkbox$1 from 'antd/es/checkbox/Checkbox';
122
+ import WarningOutlined from '@ant-design/icons/lib/icons/WarningOutlined';
122
123
  import Modal$3 from 'antd/es/modal';
123
124
  import Spin$1 from 'antd/es/spin';
124
125
  import Flex from 'antd/es/flex';
126
+ import { useTranslation as useTranslation$1 } from 'react-i18next';
125
127
  import JSZip from 'jszip';
126
128
  import { DropzoneAreaBase } from 'react-mui-dropzone';
127
129
  import Switch$1 from 'antd/es/switch';
@@ -5482,6 +5484,11 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
5482
5484
  field: 'pos',
5483
5485
  sorter: 3,
5484
5486
  filter: 'advanced'
5487
+ }, {
5488
+ title: t('backoffice.form.renderjob.items.functionType'),
5489
+ field: 'functionType',
5490
+ sorter: 3,
5491
+ filter: 'advanced'
5485
5492
  }, {
5486
5493
  title: t('backoffice.table.viewpoints.columns.title.rot'),
5487
5494
  field: 'rot',
@@ -7648,10 +7655,12 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
7648
7655
  create: '${authService}/v2/organizations/${parentId}'
7649
7656
  },
7650
7657
  triggerRerender: true,
7658
+ enableSearch: true,
7651
7659
  items: [{
7652
7660
  name: 'type',
7653
7661
  label: t('backoffice.form.organizationdetails.items.type'),
7654
7662
  type: 'radio',
7663
+ showInAllTabs: true,
7655
7664
  options: [{
7656
7665
  value: undefined,
7657
7666
  label: t('backoffice.form.SHELL'),
@@ -7739,6 +7748,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
7739
7748
  permission: 'backoffice_admin_organizations'
7740
7749
  }, {
7741
7750
  name: t('backoffice.subtitle.generally'),
7751
+ tabgroup: t('backoffice.subtitle.generally'),
7742
7752
  type: 'subTitle',
7743
7753
  orientation: 'left',
7744
7754
  style: {
@@ -7746,11 +7756,13 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
7746
7756
  }
7747
7757
  }, {
7748
7758
  name: '_id',
7759
+ tabgroup: t('backoffice.subtitle.generally'),
7749
7760
  label: 'ID',
7750
7761
  type: 'input',
7751
7762
  readonly: true
7752
7763
  }, {
7753
7764
  name: 'displayName',
7765
+ tabgroup: t('backoffice.subtitle.generally'),
7754
7766
  label: t('backoffice.form.organizationdetails.items.displayName'),
7755
7767
  required: true,
7756
7768
  type: 'input',
@@ -7762,6 +7774,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
7762
7774
  }, {
7763
7775
  label: t('backoffice.form.organizationdetails.items.internalId'),
7764
7776
  name: 'internalId',
7777
+ tabgroup: t('backoffice.subtitle.generally'),
7765
7778
  type: 'input',
7766
7779
  hidden: function hidden(data) {
7767
7780
  return (data === null || data === void 0 ? void 0 : data.type) === 'ASSOCIATION' || (data === null || data === void 0 ? void 0 : data.type) === 'SUPPLIER' || (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER';
@@ -7769,6 +7782,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
7769
7782
  }, {
7770
7783
  name: 'description',
7771
7784
  label: t('backoffice.form.organizationdetails.items.description'),
7785
+ tabgroup: t('backoffice.subtitle.generally'),
7772
7786
  type: 'textarea'
7773
7787
  }, {
7774
7788
  name: 'street',
@@ -7776,6 +7790,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
7776
7790
  required: function required(data) {
7777
7791
  return !((data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER' && (data === null || data === void 0 ? void 0 : data.type) === undefined);
7778
7792
  },
7793
+ tabgroup: t('backoffice.subtitle.generally'),
7779
7794
  type: 'input',
7780
7795
  hidden: function hidden(data) {
7781
7796
  return (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER' && (data === null || data === void 0 ? void 0 : data.type) === undefined;
@@ -7786,6 +7801,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
7786
7801
  required: function required(data) {
7787
7802
  return !((data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER' && (data === null || data === void 0 ? void 0 : data.type) === undefined);
7788
7803
  },
7804
+ tabgroup: t('backoffice.subtitle.generally'),
7789
7805
  type: 'input',
7790
7806
  hidden: function hidden(data) {
7791
7807
  return (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER' && (data === null || data === void 0 ? void 0 : data.type) === undefined;
@@ -7796,6 +7812,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
7796
7812
  required: function required(data) {
7797
7813
  return !((data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER' && (data === null || data === void 0 ? void 0 : data.type) === undefined);
7798
7814
  },
7815
+ tabgroup: t('backoffice.subtitle.generally'),
7799
7816
  type: 'input',
7800
7817
  hidden: function hidden(data) {
7801
7818
  return (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER' && (data === null || data === void 0 ? void 0 : data.type) === undefined;
@@ -7803,6 +7820,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
7803
7820
  }, {
7804
7821
  label: t('backoffice.form.organizationdetails.items.region'),
7805
7822
  name: 'region',
7823
+ tabgroup: t('backoffice.subtitle.generally'),
7806
7824
  type: 'input',
7807
7825
  hidden: function hidden(data) {
7808
7826
  return (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER' && (data === null || data === void 0 ? void 0 : data.type) === undefined;
@@ -7810,6 +7828,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
7810
7828
  }, {
7811
7829
  name: 'countryCode',
7812
7830
  label: t('backoffice.form.organizationdetails.items.countryCode'),
7831
+ tabgroup: t('backoffice.subtitle.generally'),
7813
7832
  type: 'selectSimple',
7814
7833
  apiInterface: {
7815
7834
  read: {
@@ -7828,6 +7847,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
7828
7847
  }, {
7829
7848
  name: 'contact',
7830
7849
  label: 'backoffice.organization.contact',
7850
+ tabgroup: t('backoffice.subtitle.generally'),
7831
7851
  type: 'select',
7832
7852
  mode: 'single',
7833
7853
  selectMapping: {
@@ -7869,6 +7889,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
7869
7889
  }, {
7870
7890
  name: 'email',
7871
7891
  label: t('backoffice.form.organizationdetails.items.email'),
7892
+ tabgroup: t('backoffice.subtitle.generally'),
7872
7893
  type: 'input',
7873
7894
  hidden: function hidden(data) {
7874
7895
  return (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER' && (data === null || data === void 0 ? void 0 : data.type) === undefined;
@@ -7876,6 +7897,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
7876
7897
  }, {
7877
7898
  name: 'phone',
7878
7899
  label: t('backoffice.form.organizationdetails.items.phone'),
7900
+ tabgroup: t('backoffice.subtitle.generally'),
7879
7901
  type: 'input',
7880
7902
  hidden: function hidden(data) {
7881
7903
  return (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER' && (data === null || data === void 0 ? void 0 : data.type) === undefined;
@@ -7883,6 +7905,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
7883
7905
  }, {
7884
7906
  name: 'fax',
7885
7907
  label: t('backoffice.form.organizationdetails.items.fax'),
7908
+ tabgroup: t('backoffice.subtitle.generally'),
7886
7909
  type: 'input',
7887
7910
  hidden: function hidden(data) {
7888
7911
  return (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER' && (data === null || data === void 0 ? void 0 : data.type) === undefined;
@@ -7890,20 +7913,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
7890
7913
  }, {
7891
7914
  name: 'homepage',
7892
7915
  label: t('backoffice.form.organizationdetails.items.homepage'),
7893
- type: 'input',
7894
- hidden: function hidden(data) {
7895
- return (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER' && (data === null || data === void 0 ? void 0 : data.type) === undefined;
7896
- }
7897
- }, {
7898
- name: 'privacyPolicyUrl',
7899
- label: t('backoffice.form.organizationdetails.items.privacyPolicyUrl'),
7900
- type: 'input',
7901
- hidden: function hidden(data) {
7902
- return (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER' && (data === null || data === void 0 ? void 0 : data.type) === undefined;
7903
- }
7904
- }, {
7905
- name: 'termsAndConditionsUrl',
7906
- label: t('backoffice.form.organizationdetails.items.termsAndConditionsUrl'),
7916
+ tabgroup: t('backoffice.subtitle.generally'),
7907
7917
  type: 'input',
7908
7918
  hidden: function hidden(data) {
7909
7919
  return (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER' && (data === null || data === void 0 ? void 0 : data.type) === undefined;
@@ -7914,6 +7924,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
7914
7924
  catalogCodex: ['defaultCatalog', 'catalogCodex'],
7915
7925
  label: t('backoffice.form.organizationdetails.items.selectClientRelationCatalog'),
7916
7926
  type: 'selectClientRelationCatalog',
7927
+ tabgroup: t('backoffice.subtitle.generally'),
7917
7928
  apiInterface: {
7918
7929
  read: '${authService}/v2/organizations/${organizationId}'
7919
7930
  },
@@ -7922,15 +7933,18 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
7922
7933
  }
7923
7934
  }, {
7924
7935
  name: ['defaultCatalog', 'accountId'],
7925
- hidden: true
7936
+ hidden: true,
7937
+ tabgroup: t('backoffice.subtitle.generally')
7926
7938
  },
7927
7939
  // these fields are needed otherwise they dont get saved
7928
7940
  {
7929
7941
  name: ['defaultCatalog', 'catalogCodex'],
7930
- hidden: true
7942
+ hidden: true,
7943
+ tabgroup: t('backoffice.subtitle.generally')
7931
7944
  }, {
7932
7945
  name: ['settings', 'sendOrders'],
7933
7946
  label: t('backoffice.form.organizationdetails.items.settings.sendOrders'),
7947
+ tabgroup: t('backoffice.subtitle.generally'),
7934
7948
  type: 'radio',
7935
7949
  optionType: 'button',
7936
7950
  options: [{
@@ -7947,11 +7961,13 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
7947
7961
  }, {
7948
7962
  name: ['settings', 'sendOrdersEmail'],
7949
7963
  label: t('backoffice.form.organizationdetails.items.settings.sendOrdersEmail'),
7964
+ tabgroup: t('backoffice.subtitle.generally'),
7950
7965
  type: 'input',
7951
7966
  permission: 'backoffice_admin_organizations'
7952
7967
  }, {
7953
7968
  name: 'iwofurn',
7954
7969
  label: t('backoffice.form.organizationdetails.items.iwofurn'),
7970
+ tabgroup: t('backoffice.subtitle.generally'),
7955
7971
  type: 'checkbox',
7956
7972
  hidden: function hidden(data) {
7957
7973
  return (data === null || data === void 0 ? void 0 : data.type) !== 'RETAILER' && (data === null || data === void 0 ? void 0 : data.parentType) !== 'RETAILER';
@@ -7969,6 +7985,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
7969
7985
  }
7970
7986
  }, {
7971
7987
  name: t('backoffice.subtitle.iwofurn'),
7988
+ tabgroup: t('backoffice.subtitle.generally'),
7972
7989
  type: 'subTitle',
7973
7990
  orientation: 'left',
7974
7991
  style: {
@@ -7981,6 +7998,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
7981
7998
  }, {
7982
7999
  name: ['iwoFurnOptions', 'iwofurnUsername'],
7983
8000
  label: t('backoffice.form.organizationdetails.items.iwoFurnOptions.iwofurnUsername'),
8001
+ tabgroup: t('backoffice.subtitle.generally'),
7984
8002
  type: 'input',
7985
8003
  syncDataWithUserInput: true,
7986
8004
  required: function required(data) {
@@ -7992,6 +8010,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
7992
8010
  }, {
7993
8011
  name: ['iwoFurnOptions', 'pwdHash'],
7994
8012
  label: t('backoffice.form.organizationdetails.items.iwoFurnOptions.pwdHash'),
8013
+ tabgroup: t('backoffice.subtitle.generally'),
7995
8014
  type: 'password',
7996
8015
  syncDataWithUserInput: true,
7997
8016
  required: function required(data) {
@@ -8003,6 +8022,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
8003
8022
  }, {
8004
8023
  name: ['iwoFurnOptions', 'iwofurnSenderGLN'],
8005
8024
  label: t('backoffice.form.organizationdetails.items.iwofurnSenderGLN'),
8025
+ tabgroup: t('backoffice.subtitle.generally'),
8006
8026
  type: 'input',
8007
8027
  required: function required(data) {
8008
8028
  return data === null || data === void 0 ? void 0 : data.iwofurn;
@@ -8013,6 +8033,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
8013
8033
  }, {
8014
8034
  name: ['iwoFurnOptions', 'iwofurnRecipientGLN'],
8015
8035
  label: t('backoffice.form.organizationdetails.items.iwofurnRecipientGLN'),
8036
+ tabgroup: t('backoffice.subtitle.generally'),
8016
8037
  type: 'input',
8017
8038
  required: function required(data) {
8018
8039
  return data === null || data === void 0 ? void 0 : data.iwofurn;
@@ -8023,6 +8044,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
8023
8044
  }, {
8024
8045
  name: ['iwoFurnOptions', 'sendIWOBasketEKPriceType'],
8025
8046
  label: t('backoffice.form.organizationdetails.items.sendIWOBasketEKPriceType'),
8047
+ tabgroup: t('backoffice.subtitle.generally'),
8026
8048
  type: 'input',
8027
8049
  hidden: function hidden(data) {
8028
8050
  return !(data !== null && data !== void 0 && data.iwofurn) || (data === null || data === void 0 ? void 0 : data.type) !== 'RETAILER' && (data === null || data === void 0 ? void 0 : data.parentType) !== 'RETAILER';
@@ -8042,6 +8064,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
8042
8064
  }
8043
8065
  }, {
8044
8066
  name: t('backoffice.form.organizationdetails.items.licenses'),
8067
+ tabgroup: t('backoffice.form.organizationdetails.items.licenses'),
8045
8068
  type: 'subTitle',
8046
8069
  orientation: 'left',
8047
8070
  style: {
@@ -8051,6 +8074,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
8051
8074
  }, {
8052
8075
  name: 'Info',
8053
8076
  type: 'text',
8077
+ tabgroup: t('backoffice.form.organizationdetails.items.licenses'),
8054
8078
  style: {
8055
8079
  marginBottom: '30px'
8056
8080
  },
@@ -8059,6 +8083,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
8059
8083
  }, {
8060
8084
  name: ['settings', 'enable3DExport'],
8061
8085
  label: t('backoffice.form.organizationdetails.items.settings.enable3DExport'),
8086
+ tabgroup: t('backoffice.form.organizationdetails.items.licenses'),
8062
8087
  type: 'radio',
8063
8088
  optionType: 'button',
8064
8089
  options: [{
@@ -8076,6 +8101,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
8076
8101
  name: ['settings', 'renderjobSeparateMaterials'],
8077
8102
  label: t('backoffice.form.organizationdetails.items.settings.renderjobSeparateMaterials'),
8078
8103
  permission: 'backoffice_admin_organizations',
8104
+ tabgroup: t('backoffice.form.organizationdetails.items.licenses'),
8079
8105
  type: 'radio',
8080
8106
  optionType: 'button',
8081
8107
  options: [{
@@ -8092,6 +8118,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
8092
8118
  name: ['settings', 'enableAR'],
8093
8119
  label: t('backoffice.form.organizationdetails.items.settings.enableAR'),
8094
8120
  permission: 'backoffice_admin_organizations',
8121
+ tabgroup: t('backoffice.form.organizationdetails.items.licenses'),
8095
8122
  type: 'radio',
8096
8123
  optionType: 'button',
8097
8124
  options: [{
@@ -8108,6 +8135,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
8108
8135
  name: ['settings', 'enableRTV'],
8109
8136
  label: t('backoffice.form.organizationdetails.items.settings.enableRTV'),
8110
8137
  permission: 'backoffice_admin_organizations',
8138
+ tabgroup: t('backoffice.form.organizationdetails.items.licenses'),
8111
8139
  type: 'radio',
8112
8140
  optionType: 'button',
8113
8141
  options: [{
@@ -8125,6 +8153,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
8125
8153
  label: t('backoffice.form.organizationdetails.items.settings.forceRTV'),
8126
8154
  permission: 'backoffice_admin_organizations',
8127
8155
  type: 'radio',
8156
+ tabgroup: t('backoffice.form.organizationdetails.items.licenses'),
8128
8157
  optionType: 'button',
8129
8158
  options: [{
8130
8159
  label: t('backoffice.form.organizationdetails.items.vererbt'),
@@ -8139,6 +8168,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
8139
8168
  }, {
8140
8169
  name: ['settings', 'enableVKMarketing'],
8141
8170
  label: t('backoffice.form.organizationdetails.items.settings.enableVKMarketing'),
8171
+ tabgroup: t('backoffice.form.organizationdetails.items.licenses'),
8142
8172
  permission: 'backoffice_admin_organizations',
8143
8173
  type: 'radio',
8144
8174
  hidden: function hidden(data) {
@@ -8159,6 +8189,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
8159
8189
  name: ['settings', 'pricePreview'],
8160
8190
  label: t('backoffice.form.organizationdetails.items.settings.pricePreview'),
8161
8191
  permission: 'backoffice_admin_organizations',
8192
+ tabgroup: t('backoffice.form.organizationdetails.items.licenses'),
8162
8193
  type: 'radio',
8163
8194
  optionType: 'button',
8164
8195
  options: [{
@@ -8177,6 +8208,31 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
8177
8208
  label: t('backoffice.form.organizationdetails.items.fromCurrentPriceHideCurrent'),
8178
8209
  value: 'fromCurrentPriceHideCurrent'
8179
8210
  }]
8211
+ }, {
8212
+ name: t('backoffice.subtitle.configurator'),
8213
+ type: 'subTitle',
8214
+ orientation: 'left',
8215
+ style: {
8216
+ marginBottom: '40px'
8217
+ },
8218
+ permission: 'backoffice_admin_organizations',
8219
+ hidden: function hidden(data) {
8220
+ return (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER' && (data === null || data === void 0 ? void 0 : data.type) === undefined;
8221
+ }
8222
+ }, {
8223
+ name: 'privacyPolicyUrl',
8224
+ label: t('backoffice.form.organizationdetails.items.privacyPolicyUrl'),
8225
+ type: 'input',
8226
+ hidden: function hidden(data) {
8227
+ return (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER' && (data === null || data === void 0 ? void 0 : data.type) === undefined;
8228
+ }
8229
+ }, {
8230
+ name: 'termsAndConditionsUrl',
8231
+ label: t('backoffice.form.organizationdetails.items.termsAndConditionsUrl'),
8232
+ type: 'input',
8233
+ hidden: function hidden(data) {
8234
+ return (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER' && (data === null || data === void 0 ? void 0 : data.type) === undefined;
8235
+ }
8180
8236
  }, {
8181
8237
  name: t('backoffice.subtitle.advanced'),
8182
8238
  type: 'subTitle',
@@ -8568,6 +8624,131 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
8568
8624
  label: t('backoffice.currentorg.items.shopType.store'),
8569
8625
  value: 'store'
8570
8626
  }]
8627
+ }, {
8628
+ type: 'subTitle',
8629
+ name: t('backoffice.form.organizationdetails.socialUrls'),
8630
+ tabgroup: t('backoffice.form.organizationdetails.additionalContactData')
8631
+ }, {
8632
+ name: ['socialUrls', 'facebook'],
8633
+ label: t('backoffice.form.organizationdetails.items.facebookUrl'),
8634
+ tabgroup: t('backoffice.form.organizationdetails.additionalContactData'),
8635
+ type: 'input',
8636
+ hidden: function hidden(data) {
8637
+ return (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER' && (data === null || data === void 0 ? void 0 : data.type) === undefined;
8638
+ }
8639
+ }, {
8640
+ name: ['socialUrls', 'instagram'],
8641
+ label: t('backoffice.form.organizationdetails.items.instagramUrl'),
8642
+ tabgroup: t('backoffice.form.organizationdetails.additionalContactData'),
8643
+ type: 'input',
8644
+ hidden: function hidden(data) {
8645
+ return (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER' && (data === null || data === void 0 ? void 0 : data.type) === undefined;
8646
+ }
8647
+ }, {
8648
+ name: ['socialUrls', 'x'],
8649
+ label: t('backoffice.form.organizationdetails.items.xUrl'),
8650
+ tabgroup: t('backoffice.form.organizationdetails.additionalContactData'),
8651
+ type: 'input',
8652
+ hidden: function hidden(data) {
8653
+ return (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER' && (data === null || data === void 0 ? void 0 : data.type) === undefined;
8654
+ }
8655
+ }, {
8656
+ name: ['socialUrls', 'linkedin'],
8657
+ label: t('backoffice.form.organizationdetails.items.linkedinUrl'),
8658
+ tabgroup: t('backoffice.form.organizationdetails.additionalContactData'),
8659
+ type: 'input',
8660
+ hidden: function hidden(data) {
8661
+ return (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER' && (data === null || data === void 0 ? void 0 : data.type) === undefined;
8662
+ }
8663
+ }, {
8664
+ name: ['socialUrls', 'youtube'],
8665
+ label: t('backoffice.form.organizationdetails.items.youtubeUrl'),
8666
+ tabgroup: t('backoffice.form.organizationdetails.additionalContactData'),
8667
+ type: 'input',
8668
+ hidden: function hidden(data) {
8669
+ return (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER' && (data === null || data === void 0 ? void 0 : data.type) === undefined;
8670
+ }
8671
+ }, {
8672
+ type: 'subTitle',
8673
+ name: t('backoffice.form.organizationdetails.additionalContactData'),
8674
+ tabgroup: t('backoffice.form.organizationdetails.additionalContactData')
8675
+ }, {
8676
+ name: ['additionalContactData'],
8677
+ label: t('Zusätzliche Kontaktdaten'),
8678
+ tabgroup: t('backoffice.form.organizationdetails.additionalContactData'),
8679
+ type: 'array',
8680
+ items: [{
8681
+ name: 'description',
8682
+ label: t('backoffice.form.organizationdetails.items.description'),
8683
+ type: 'input',
8684
+ hidden: function hidden(data) {
8685
+ return (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER' && (data === null || data === void 0 ? void 0 : data.type) === undefined;
8686
+ }
8687
+ }, {
8688
+ name: 'street',
8689
+ label: t('backoffice.form.organizationdetails.items.street'),
8690
+ type: 'input',
8691
+ hidden: function hidden(data) {
8692
+ return (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER' && (data === null || data === void 0 ? void 0 : data.type) === undefined;
8693
+ }
8694
+ }, {
8695
+ label: t('backoffice.form.organizationdetails.items.zipCode'),
8696
+ name: 'zipCode',
8697
+ type: 'input',
8698
+ hidden: function hidden(data) {
8699
+ return (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER' && (data === null || data === void 0 ? void 0 : data.type) === undefined;
8700
+ }
8701
+ }, {
8702
+ label: t('backoffice.form.organizationdetails.items.city'),
8703
+ name: 'city',
8704
+ type: 'input',
8705
+ hidden: function hidden(data) {
8706
+ return (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER' && (data === null || data === void 0 ? void 0 : data.type) === undefined;
8707
+ }
8708
+ }, {
8709
+ name: 'countryCode',
8710
+ label: t('backoffice.form.organizationdetails.items.countryCode'),
8711
+ type: 'selectSimple',
8712
+ apiInterface: {
8713
+ read: {
8714
+ list: '/country_codes.json',
8715
+ "public": true
8716
+ }
8717
+ },
8718
+ selectMapping: {
8719
+ label: "${".concat(lang, "}"),
8720
+ value: '${code}',
8721
+ externalValue: 'value'
8722
+ },
8723
+ placeholder: t('backoffice.form.organizationdetails.items.selectCountryCode'),
8724
+ allowClear: true,
8725
+ search: true
8726
+ }, {
8727
+ name: 'email',
8728
+ label: t('backoffice.form.organizationdetails.items.email'),
8729
+ type: 'input',
8730
+ hidden: function hidden(data) {
8731
+ return (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER' && (data === null || data === void 0 ? void 0 : data.type) === undefined;
8732
+ }
8733
+ }, {
8734
+ name: 'phone',
8735
+ label: t('backoffice.form.organizationdetails.items.phone'),
8736
+ type: 'input',
8737
+ hidden: function hidden(data) {
8738
+ return (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER' && (data === null || data === void 0 ? void 0 : data.type) === undefined;
8739
+ }
8740
+ }, {
8741
+ name: 'info',
8742
+ label: t('backoffice.form.organizationdetails.items.info'),
8743
+ type: 'textarea',
8744
+ hidden: function hidden(data) {
8745
+ return (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER' && (data === null || data === void 0 ? void 0 : data.type) === undefined;
8746
+ }
8747
+ }, {
8748
+ type: 'divider',
8749
+ name: ''
8750
+ }],
8751
+ initialValue: []
8571
8752
  }]
8572
8753
  },
8573
8754
  FromAffilateOrganizationDetails: {
@@ -9336,6 +9517,13 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
9336
9517
  name: 'divaNr',
9337
9518
  label: t('backoffice.form.createorupdateviewpoints.items.divaNr'),
9338
9519
  type: 'input'
9520
+ }, {
9521
+ name: 'functionType',
9522
+ label: t('backoffice.form.createorupdateviewpoints.items.functionType'),
9523
+ type: 'select',
9524
+ required: true,
9525
+ values: functionTypeValues,
9526
+ mode: 'single'
9339
9527
  }]
9340
9528
  },
9341
9529
  FormCreateOrUpdateRenderPackages: {
@@ -9424,6 +9612,9 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
9424
9612
  label: t('Presets'),
9425
9613
  type: 'array',
9426
9614
  items: [{
9615
+ type: 'divider',
9616
+ name: ''
9617
+ }, {
9427
9618
  type: 'radio',
9428
9619
  name: 'job',
9429
9620
  label: t('Job'),
@@ -9474,6 +9665,13 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
9474
9665
  }
9475
9666
  return hidden;
9476
9667
  }
9668
+ }, {
9669
+ name: 'functionType',
9670
+ label: 'FunctionType',
9671
+ type: 'select',
9672
+ required: true,
9673
+ values: functionTypeValues,
9674
+ mode: 'single'
9477
9675
  }, {
9478
9676
  name: 'preset',
9479
9677
  label: t('Preset'),
@@ -9681,7 +9879,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
9681
9879
  op: 'gt',
9682
9880
  value: 3
9683
9881
  },
9684
- values: ['PROD', 'PROD_SEC', 'PROD_CLOSE', 'PROD_MILIEU', 'SHO', 'CONFIG_INFO', 'AR_INFO', 'PROD_DETAIL', 'CAT', 'PLN', 'LOG', 'FUNC', 'COMMERCIAL', 'TPL', 'ASI', 'PLT', 'CAI', 'BAN', 'INF', 'OTH', 'ART', 'OPV']
9882
+ values: functionTypeValues
9685
9883
  }, {
9686
9884
  name: 'priority',
9687
9885
  label: t('backoffice.form.renderjob.items.priority'),
@@ -9941,7 +10139,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
9941
10139
  value: 3
9942
10140
  },
9943
10141
  allowClear: true,
9944
- values: ['PROD', 'PROD_SEC', 'PROD_CLOSE', 'PROD_MILIEU', 'SHO', 'CONFIG_INFO', 'AR_INFO', 'PROD_DETAIL', 'CAT', 'PLN', 'LOG', 'FUNC', 'COMMERCIAL', 'TPL', 'ASI', 'PLT', 'CAI', 'BAN', 'INF', 'OTH', 'ART', 'OPV']
10142
+ values: functionTypeValues
9945
10143
  }, {
9946
10144
  name: 'priority',
9947
10145
  label: t('backoffice.form.renderjob.items.priority'),
@@ -10116,7 +10314,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
10116
10314
  value: 3
10117
10315
  },
10118
10316
  allowClear: true,
10119
- values: ['PROD', 'PROD_SEC', 'PROD_CLOSE', 'PROD_MILIEU', 'SHO', 'CONFIG_INFO', 'AR_INFO', 'PROD_DETAIL', 'CAT', 'PLN', 'LOG', 'FUNC', 'COMMERCIAL', 'TPL', 'ASI', 'PLT', 'CAI', 'BAN', 'INF', 'OTH', 'ART', 'OPV']
10317
+ values: functionTypeValues
10120
10318
  }, {
10121
10319
  name: 'priority',
10122
10320
  label: t('backoffice.form.renderjob.items.priority'),
@@ -10258,7 +10456,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
10258
10456
  value: 3
10259
10457
  },
10260
10458
  allowClear: true,
10261
- values: ['PROD', 'PROD_SEC', 'PROD_CLOSE', 'PROD_MILIEU', 'SHO', 'CONFIG_INFO', 'AR_INFO', 'PROD_DETAIL', 'CAT', 'PLN', 'LOG', 'FUNC', 'COMMERCIAL', 'TPL', 'ASI', 'PLT', 'CAI', 'BAN', 'INF', 'OTH', 'ART', 'OPV']
10459
+ values: functionTypeValues
10262
10460
  }, {
10263
10461
  name: 'priority',
10264
10462
  label: t('backoffice.form.renderjob.items.priority'),
@@ -10417,7 +10615,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
10417
10615
  type: 'select',
10418
10616
  mode: 'single',
10419
10617
  allowClear: true,
10420
- values: ['PROD', 'PROD_SEC', 'PROD_CLOSE', 'PROD_MILIEU', 'SHO', 'CONFIG_INFO', 'AR_INFO', 'PROD_DETAIL', 'CAT', 'PLN', 'LOG', 'FUNC', 'COMMERCIAL', 'TPL', 'ASI', 'PLT', 'CAI', 'BAN', 'INF', 'OTH', 'ART', 'OPV']
10618
+ values: functionTypeValues
10421
10619
  }, {
10422
10620
  name: 'priority',
10423
10621
  label: t('backoffice.form.renderjob.items.priority'),
@@ -13280,6 +13478,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
13280
13478
  }
13281
13479
  };
13282
13480
  }
13481
+ var functionTypeValues = ['PROD', 'PROD_SEC', 'PROD_CLOSE', 'PROD_MILIEU', 'SHO', 'CONFIG_INFO', 'AR_INFO', 'PROD_DETAIL', 'CAT', 'PLN', 'LOG', 'FUNC', 'COMMERCIAL', 'TPL', 'ASI', 'PLT', 'CAI', 'BAN', 'INF', 'OTH', 'ART', 'OPV'];
13283
13482
 
13284
13483
  function styleInject(css, ref) {
13285
13484
  if ( ref === void 0 ) ref = {};
@@ -13314,8 +13513,8 @@ var navMinified = "nav-minified-tSt-a";
13314
13513
  var navOverlay = "nav-overlay-rKJNC";
13315
13514
  var navSettings = "nav-settings-82cjv";
13316
13515
  var menuLabel = "menu-label-4dXQk";
13317
- var css_248z$x = ".nav-minify-button-ZX7dm {\n color: rgba(255, 255, 255, 0.65);\n background: #001529;\n cursor: pointer;\n padding: 10px;\n height: 40px;\n}\n\n.nav-minify-button-ZX7dm:hover {\n color: #fff;\n background-color: rgba(0, 0, 0, 0.06);\n}\n\n.nav-minify-button-ZX7dm .anticon {\n float: right;\n}\n\n.nav-container-JCR24 {\n display: flex;\n min-width: 30px;\n overflow: visible;\n z-index: 10001;\n}\n\n.nav-container-JCR24 .ant-layout-sider-children {\n display: flex;\n flex-direction: column;\n}\n\n.nav-minified-tSt-a {\n flex: 0 0 30px !important;\n max-width: 30px !important;\n min-width: 30px !important;\n width: 30px !important;\n}\n\n.nav-minified-tSt-a {\n /* position: absolute !important; */\n height: 100%;\n z-index: 1;\n}\n\n.nav-overlay-rKJNC {\n max-width: 200px !important;\n min-width: 200px !important;\n width: 200px !important;\n}\n\n.nav-minified-tSt-a .ant-menu-root {\n display: none;\n}\n\n.nav-overlay-rKJNC .ant-menu-root {\n display: inline !important;\n display: initial !important;\n}\n\n.nav-settings-82cjv {\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin: auto 18px 55px;\n}\n\n.nav-container-JCR24 .ant-menu-title-content {\n overflow: visible;\n}\n\n.menu-label-4dXQk {\n display: flex;\n}\n\n.ant-menu .ant-menu-item .menu-label-4dXQk .anticon {\n margin-left: auto;\n margin-right: -6px;\n font-size: 10px;\n}\n\n.menu-label-4dXQk span:first-child {\n width: 120px;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n";
13318
- styleInject(css_248z$x);
13516
+ var css_248z$y = ".nav-minify-button-ZX7dm {\n color: rgba(255, 255, 255, 0.65);\n background: #001529;\n cursor: pointer;\n padding: 10px;\n height: 40px;\n}\n\n.nav-minify-button-ZX7dm:hover {\n color: #fff;\n background-color: rgba(0, 0, 0, 0.06);\n}\n\n.nav-minify-button-ZX7dm .anticon {\n float: right;\n}\n\n.nav-container-JCR24 {\n display: flex;\n min-width: 30px;\n overflow: visible;\n z-index: 10001;\n}\n\n.nav-container-JCR24 .ant-layout-sider-children {\n display: flex;\n flex-direction: column;\n}\n\n.nav-minified-tSt-a {\n flex: 0 0 30px !important;\n max-width: 30px !important;\n min-width: 30px !important;\n width: 30px !important;\n}\n\n.nav-minified-tSt-a {\n /* position: absolute !important; */\n height: 100%;\n z-index: 1;\n}\n\n.nav-overlay-rKJNC {\n max-width: 200px !important;\n min-width: 200px !important;\n width: 200px !important;\n}\n\n.nav-minified-tSt-a .ant-menu-root {\n display: none;\n}\n\n.nav-overlay-rKJNC .ant-menu-root {\n display: inline !important;\n display: initial !important;\n}\n\n.nav-settings-82cjv {\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin: auto 18px 55px;\n}\n\n.nav-container-JCR24 .ant-menu-title-content {\n overflow: visible;\n}\n\n.menu-label-4dXQk {\n display: flex;\n}\n\n.ant-menu .ant-menu-item .menu-label-4dXQk .anticon {\n margin-left: auto;\n margin-right: -6px;\n font-size: 10px;\n}\n\n.menu-label-4dXQk span:first-child {\n width: 120px;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n";
13517
+ styleInject(css_248z$y);
13319
13518
 
13320
13519
  function MenuLabel (_ref) {
13321
13520
  var disabled = _ref.disabled,
@@ -17038,7 +17237,7 @@ var JsonEditor$2 = function JsonEditor(_ref) {
17038
17237
  });
17039
17238
  };
17040
17239
 
17041
- var _excluded$3 = ["key", "name"];
17240
+ var _excluded$4 = ["key", "name"];
17042
17241
  function ownKeys$U(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
17043
17242
  function _objectSpread$U(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$U(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$U(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
17044
17243
  var FormList$2 = function FormList(_ref) {
@@ -17074,7 +17273,7 @@ var FormList$2 = function FormList(_ref) {
17074
17273
  children: [fields.map(function (_ref3) {
17075
17274
  var key = _ref3.key,
17076
17275
  name = _ref3.name,
17077
- restField = _objectWithoutProperties(_ref3, _excluded$3);
17276
+ restField = _objectWithoutProperties(_ref3, _excluded$4);
17078
17277
  return /*#__PURE__*/jsxs("div", {
17079
17278
  id: key.toString(),
17080
17279
  style: {
@@ -17270,8 +17469,8 @@ var Result = function Result(_ref) {
17270
17469
 
17271
17470
  var success = "success-tRJ7j";
17272
17471
  var error = "error-MtAFB";
17273
- var css_248z$w = ".success-tRJ7j {\n color: #fff !important;\n background-color: #449d44 !important;\n border-color: #398439 !important;\n}\n\n.error-MtAFB {\n color: #fff !important;\n background-color: #c9302c !important;\n border-color: #ac2925 !important;\n}\n";
17274
- styleInject(css_248z$w);
17472
+ var css_248z$x = ".success-tRJ7j {\n color: #fff !important;\n background-color: #449d44 !important;\n border-color: #398439 !important;\n}\n\n.error-MtAFB {\n color: #fff !important;\n background-color: #c9302c !important;\n border-color: #ac2925 !important;\n}\n";
17473
+ styleInject(css_248z$x);
17275
17474
 
17276
17475
  var azureIcon = "data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2048%2048%22%20width%3D%2248px%22%20height%3D%2248px%22%3E%20%3ClinearGradient%20id%3D%22k8yl7~hDat~FaoWq8WjN6a%22%20x1%3D%22-1254.397%22%20x2%3D%22-1261.911%22%20y1%3D%22877.268%22%20y2%3D%22899.466%22%20gradientTransform%3D%22translate%281981.75%20-1362.063%29%20scale%281.5625%29%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%20%20%3Cstop%20offset%3D%220%22%20stop-color%3D%22%23114a8b%22%2F%3E%20%20%3Cstop%20offset%3D%221%22%20stop-color%3D%22%230669bc%22%2F%3E%20%3C%2FlinearGradient%3E%20%3Cpath%20fill%3D%22url%28%23k8yl7~hDat~FaoWq8WjN6a%29%22%20d%3D%22M17.634%2C6h11.305L17.203%2C40.773c-0.247%2C0.733-0.934%2C1.226-1.708%2C1.226H6.697%20c-0.994%2C0-1.8-0.806-1.8-1.8c0-0.196%2C0.032-0.39%2C0.094-0.576L15.926%2C7.227C16.173%2C6.494%2C16.86%2C6%2C17.634%2C6L17.634%2C6z%22%2F%3E%20%3Cpath%20fill%3D%22%230078d4%22%20d%3D%22M34.062%2C29.324H16.135c-0.458-0.001-0.83%2C0.371-0.831%2C0.829c0%2C0.231%2C0.095%2C0.451%2C0.264%2C0.608%20l11.52%2C10.752C27.423%2C41.826%2C27.865%2C42%2C28.324%2C42h10.151L34.062%2C29.324z%22%2F%3E%20%3ClinearGradient%20id%3D%22k8yl7~hDat~FaoWq8WjN6b%22%20x1%3D%22-1252.05%22%20x2%3D%22-1253.788%22%20y1%3D%22887.612%22%20y2%3D%22888.2%22%20gradientTransform%3D%22translate%281981.75%20-1362.063%29%20scale%281.5625%29%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%20%20%3Cstop%20offset%3D%220%22%20stop-opacity%3D%22.3%22%2F%3E%20%20%3Cstop%20offset%3D%22.071%22%20stop-opacity%3D%22.2%22%2F%3E%20%20%3Cstop%20offset%3D%22.321%22%20stop-opacity%3D%22.1%22%2F%3E%20%20%3Cstop%20offset%3D%22.623%22%20stop-opacity%3D%22.05%22%2F%3E%20%20%3Cstop%20offset%3D%221%22%20stop-opacity%3D%220%22%2F%3E%20%3C%2FlinearGradient%3E%20%3Cpath%20fill%3D%22url%28%23k8yl7~hDat~FaoWq8WjN6b%29%22%20d%3D%22M17.634%2C6c-0.783-0.003-1.476%2C0.504-1.712%2C1.25L5.005%2C39.595%20c-0.335%2C0.934%2C0.151%2C1.964%2C1.085%2C2.299C6.286%2C41.964%2C6.493%2C42%2C6.702%2C42h9.026c0.684-0.122%2C1.25-0.603%2C1.481-1.259l2.177-6.416%20l7.776%2C7.253c0.326%2C0.27%2C0.735%2C0.419%2C1.158%2C0.422h10.114l-4.436-12.676l-12.931%2C0.003L28.98%2C6H17.634z%22%2F%3E%20%3ClinearGradient%20id%3D%22k8yl7~hDat~FaoWq8WjN6c%22%20x1%3D%22-1252.952%22%20x2%3D%22-1244.704%22%20y1%3D%22876.6%22%20y2%3D%22898.575%22%20gradientTransform%3D%22translate%281981.75%20-1362.063%29%20scale%281.5625%29%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%20%20%3Cstop%20offset%3D%220%22%20stop-color%3D%22%233ccbf4%22%2F%3E%20%20%3Cstop%20offset%3D%221%22%20stop-color%3D%22%232892df%22%2F%3E%20%3C%2FlinearGradient%3E%20%3Cpath%20fill%3D%22url%28%23k8yl7~hDat~FaoWq8WjN6c%29%22%20d%3D%22M32.074%2C7.225C31.827%2C6.493%2C31.141%2C6%2C30.368%2C6h-12.6c0.772%2C0%2C1.459%2C0.493%2C1.705%2C1.224%20l10.935%2C32.399c0.318%2C0.942-0.188%2C1.963-1.13%2C2.281C29.093%2C41.968%2C28.899%2C42%2C28.703%2C42h12.6c0.994%2C0%2C1.8-0.806%2C1.8-1.801%20c0-0.196-0.032-0.39-0.095-0.575L32.074%2C7.225z%22%2F%3E%3C%2Fsvg%3E";
17277
17476
 
@@ -17333,10 +17532,10 @@ var CustomButton = function CustomButton(_ref) {
17333
17532
  };
17334
17533
  var CustomButton$1 = observer(CustomButton);
17335
17534
 
17336
- var wrapper$7 = "wrapper-GVe2h";
17535
+ var wrapper$6 = "wrapper-GVe2h";
17337
17536
  var buttonGroup = "button-group-GYt-T";
17338
- var css_248z$v = ".wrapper-GVe2h {\n display: flex;\n flex-direction: row;\n gap: 12px;\n}\n\n.button-group-GYt-T {\n display: flex;\n flex-direction: row;\n gap: 12px;\n margin: 0 12px;\n}\n";
17339
- styleInject(css_248z$v);
17537
+ var css_248z$w = ".wrapper-GVe2h {\n display: flex;\n flex-direction: row;\n gap: 12px;\n}\n\n.button-group-GYt-T {\n display: flex;\n flex-direction: row;\n gap: 12px;\n margin: 0 12px;\n}\n";
17538
+ styleInject(css_248z$w);
17340
17539
 
17341
17540
  function ownKeys$T(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
17342
17541
  function _objectSpread$T(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$T(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$T(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -17350,7 +17549,7 @@ var SubTitle = function SubTitle(_ref) {
17350
17549
  orientation: (_item$orientation = item.orientation) !== null && _item$orientation !== void 0 ? _item$orientation : 'left',
17351
17550
  style: _objectSpread$T({}, item.style),
17352
17551
  children: /*#__PURE__*/jsxs("div", {
17353
- className: wrapper$7,
17552
+ className: wrapper$6,
17354
17553
  children: [Array.isArray(item.name) ? t(item.name[0].toString()) : t(item.name), ((_item$buttonIds = item.buttonIds) === null || _item$buttonIds === void 0 ? void 0 : _item$buttonIds.length) && item.buttonIds.map(function (b) {
17355
17554
  return /*#__PURE__*/jsx("div", {
17356
17555
  className: buttonGroup,
@@ -17509,14 +17708,29 @@ function useSelectSimpleData (_ref) {
17509
17708
  });
17510
17709
  return selected.value;
17511
17710
  }, [selected]);
17711
+ var setLoadedOptions = function setLoadedOptions(options) {
17712
+ var _options$;
17713
+ setOptions(options);
17714
+ if (value && options) {
17715
+ LOG$a.debug('value changed', toJS(value), toJS(options));
17716
+ var _selected = findByValue(value, options, selectMapping);
17717
+ var selectedValues = Array.isArray(_selected) ? _selected.map(function (item) {
17718
+ return item.value;
17719
+ }) : _selected === null || _selected === void 0 ? void 0 : _selected.value;
17720
+ onSelectionChanged(selectedValues, _selected);
17721
+ } else if (options !== null && options !== void 0 && (_options$ = options[0]) !== null && _options$ !== void 0 && _options$.value && autoSelectFirst) {
17722
+ onSelectionChanged(options[0].value, options[0]);
17723
+ }
17724
+ };
17512
17725
  useEffect(function () {
17513
17726
  if (configuredOptions) {
17514
17727
  if (apiHandler.canReadList) LOG$a.warn('If options are provided, apiInterface will not be used');
17515
- setOptions(configuredOptions);
17728
+ setLoadedOptions(configuredOptions);
17516
17729
  setLoading(false);
17517
17730
  return;
17518
17731
  }
17519
- if (options) {
17732
+ if (sharedState !== null && sharedState !== void 0 && sharedState.options) {
17733
+ setLoadedOptions(sharedState.options);
17520
17734
  setLoading(false);
17521
17735
  return;
17522
17736
  }
@@ -17528,25 +17742,11 @@ function useSelectSimpleData (_ref) {
17528
17742
  var options = data.data.map(function (item) {
17529
17743
  return parseDataEntry(item, selectMapping);
17530
17744
  });
17531
- setOptions(options);
17745
+ setLoadedOptions(options);
17532
17746
  })["finally"](function () {
17533
17747
  setLoading(false);
17534
17748
  });
17535
17749
  }, []);
17536
- useEffect(function () {
17537
- var _options$;
17538
- // set the selected option only after the options are loaded
17539
- if (value && options) {
17540
- LOG$a.debug('value changed', value);
17541
- var _selected = findByValue(value, options, selectMapping);
17542
- var selectedValues = Array.isArray(_selected) ? _selected.map(function (item) {
17543
- return item.value;
17544
- }) : _selected === null || _selected === void 0 ? void 0 : _selected.value;
17545
- onSelectionChanged(selectedValues, _selected);
17546
- } else if (options !== null && options !== void 0 && (_options$ = options[0]) !== null && _options$ !== void 0 && _options$.value && autoSelectFirst) {
17547
- onSelectionChanged(options[0].value, options[0]);
17548
- }
17549
- }, [value, options]);
17550
17750
  var onSelectionChanged = function onSelectionChanged(value, option) {
17551
17751
  setSelected(option);
17552
17752
  onChange === null || onChange === void 0 || onChange(parseReturnData(option, selectMapping));
@@ -17611,11 +17811,11 @@ function parseReturnData(options, selectMapping) {
17611
17811
  return (selectMapping === null || selectMapping === void 0 ? void 0 : selectMapping.externalValue) == 'value' ? options.value : options.data;
17612
17812
  }
17613
17813
 
17614
- var wrapper$6 = "wrapper-4xyke";
17615
- var css_248z$u = ".wrapper-4xyke {\n display: flex;\n flex-direction: column;\n min-height: 50px;\n justify-content: flex-end;\n font-size: 12px;\n}\n";
17616
- styleInject(css_248z$u);
17814
+ var wrapper$5 = "wrapper-4xyke";
17815
+ var css_248z$v = ".wrapper-4xyke {\n display: flex;\n flex-direction: column;\n min-height: 50px;\n justify-content: flex-end;\n font-size: 12px;\n}\n";
17816
+ styleInject(css_248z$v);
17617
17817
 
17618
- var _excluded$2 = ["apiInterface", "selectMapping", "apiMapping", "onChange", "value", "search", "options", "autoSelectFirst", "title", "sharedState"];
17818
+ var _excluded$3 = ["apiInterface", "selectMapping", "apiMapping", "onChange", "value", "search", "options", "autoSelectFirst", "title", "sharedState"];
17619
17819
  function ownKeys$S(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
17620
17820
  function _objectSpread$S(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$S(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$S(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
17621
17821
  var SelectWrapper$1 = function SelectWrapper(_ref, ref) {
@@ -17629,7 +17829,7 @@ var SelectWrapper$1 = function SelectWrapper(_ref, ref) {
17629
17829
  autoSelectFirst = _ref.autoSelectFirst,
17630
17830
  title = _ref.title,
17631
17831
  sharedState = _ref.sharedState,
17632
- selectProps = _objectWithoutProperties(_ref, _excluded$2);
17832
+ selectProps = _objectWithoutProperties(_ref, _excluded$3);
17633
17833
  var state = useSelectSimpleData({
17634
17834
  apiInterface: apiInterface,
17635
17835
  selectMapping: selectMapping,
@@ -17643,7 +17843,7 @@ var SelectWrapper$1 = function SelectWrapper(_ref, ref) {
17643
17843
  });
17644
17844
  return /*#__PURE__*/jsxs("div", {
17645
17845
  ref: ref,
17646
- className: classnames(title ? wrapper$6 : undefined),
17846
+ className: classnames(title ? wrapper$5 : undefined),
17647
17847
  children: [title, /*#__PURE__*/jsx(Select$1, _objectSpread$S(_objectSpread$S({}, selectProps), {}, {
17648
17848
  showSearch: search,
17649
17849
  loading: state.loading,
@@ -18497,8 +18697,8 @@ var customSelect = "custom-select-ESUJX";
18497
18697
  var customSelectOption = "custom-select-option-dUA7N";
18498
18698
  var avatarWrapper = "avatar-wrapper-Vg-xe";
18499
18699
  var selectTextWrapper = "select-text-wrapper-hPSZW";
18500
- var css_248z$t = ".custom-select-ESUJX {\n width: 300px;\n}\n\n.custom-select-option-dUA7N.ant-select-item {\n margin: 0px 12px;\n padding: 0px;\n border-bottom: 1px solid #ddd;\n}\n\n.custom-select-option-dUA7N .ant-select-item-option-content {\n display: flex;\n align-items: center;\n}\n\n.avatar-wrapper-Vg-xe {\n margin-right: 5px;\n height: 30px;\n width: 24px;\n float: left;\n position: relative;\n}\n\n.avatar-wrapper-Vg-xe > span {\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n}\n\n.select-text-wrapper-hPSZW {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: normal;\n width: calc(100% - 29px);\n}\n";
18501
- styleInject(css_248z$t);
18700
+ var css_248z$u = ".custom-select-ESUJX {\n width: 300px;\n}\n\n.custom-select-option-dUA7N.ant-select-item {\n margin: 0px 12px;\n padding: 0px;\n border-bottom: 1px solid #ddd;\n}\n\n.custom-select-option-dUA7N .ant-select-item-option-content {\n display: flex;\n align-items: center;\n}\n\n.avatar-wrapper-Vg-xe {\n margin-right: 5px;\n height: 30px;\n width: 24px;\n float: left;\n position: relative;\n}\n\n.avatar-wrapper-Vg-xe > span {\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n}\n\n.select-text-wrapper-hPSZW {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: normal;\n width: calc(100% - 29px);\n}\n";
18701
+ styleInject(css_248z$u);
18502
18702
 
18503
18703
  var Selector = function Selector(_ref) {
18504
18704
  var items = _ref.items,
@@ -19042,8 +19242,8 @@ function useSelectData (_ref) {
19042
19242
  };
19043
19243
  }
19044
19244
 
19045
- var css_248z$s = ".darkmode .ant-select-selection-search-input {\n color: #fff;\n}\n";
19046
- styleInject(css_248z$s);
19245
+ var css_248z$t = ".darkmode .ant-select-selection-search-input {\n color: #fff;\n}\n";
19246
+ styleInject(css_248z$t);
19047
19247
 
19048
19248
  var SelectWrapper = function SelectWrapper(_ref) {
19049
19249
  var onChange = _ref.onChange,
@@ -19122,11 +19322,11 @@ var SelectWrapper = function SelectWrapper(_ref) {
19122
19322
  };
19123
19323
  var Select = observer(SelectWrapper);
19124
19324
 
19125
- var wrapper$5 = "wrapper-WStAk";
19325
+ var wrapper$4 = "wrapper-WStAk";
19126
19326
  var headerWrapper = "header-wrapper-gWQuH";
19127
19327
  var buttonsWrapper$1 = "buttons-wrapper-7ebR9";
19128
- var css_248z$r = ".wrapper-WStAk {\n display: flex;\n flex-direction: column;\n}\n.header-wrapper-gWQuH {\n display: flex;\n align-items: center;\n gap: 6px;\n margin-left: 64px;\n}\n\n.buttons-wrapper-7ebR9 {\n display: flex;\n align-items: center;\n justify-content: space-between;\n flex-grow: 1;\n}\n";
19129
- styleInject(css_248z$r);
19328
+ var css_248z$s = ".wrapper-WStAk {\n display: flex;\n flex-direction: column;\n}\n.header-wrapper-gWQuH {\n display: flex;\n align-items: center;\n gap: 6px;\n margin-left: 64px;\n}\n\n.buttons-wrapper-7ebR9 {\n display: flex;\n align-items: center;\n justify-content: space-between;\n flex-grow: 1;\n}\n";
19329
+ styleInject(css_248z$s);
19130
19330
 
19131
19331
  function ownKeys$P(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
19132
19332
  function _objectSpread$P(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$P(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$P(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -19330,7 +19530,7 @@ var Translation = function Translation(_ref) {
19330
19530
  _onChange = _useTranslationHook.onChange,
19331
19531
  autoTranslate = _useTranslationHook.autoTranslate;
19332
19532
  return /*#__PURE__*/jsxs("div", {
19333
- className: wrapper$5,
19533
+ className: wrapper$4,
19334
19534
  children: [/*#__PURE__*/jsxs("div", {
19335
19535
  className: headerWrapper,
19336
19536
  children: [/*#__PURE__*/jsx("div", {
@@ -19909,6 +20109,8 @@ function getElement(item, setCanSave, state, absoluteName, _onChange, _onError,
19909
20109
  item: item,
19910
20110
  data: state.data
19911
20111
  });
20112
+ case 'divider':
20113
+ return /*#__PURE__*/jsx(Divider, {});
19912
20114
  case 'apiKey':
19913
20115
  return /*#__PURE__*/jsx(ApiKey, {
19914
20116
  value: item.value,
@@ -20204,7 +20406,6 @@ function ModalProgressBar(_ref) {
20204
20406
 
20205
20407
  var LOG$7 = getLogger('Backoffice', 'Form');
20206
20408
  var FormWrapper$1 = function FormWrapper(_ref, ref) {
20207
- var _state$selectedItems2;
20208
20409
  var id = _ref.id,
20209
20410
  data = _ref.data,
20210
20411
  onChange = _ref.onChange,
@@ -20217,6 +20418,10 @@ var FormWrapper$1 = function FormWrapper(_ref, ref) {
20217
20418
  var _Form$useForm = Form$1.useForm(),
20218
20419
  _Form$useForm2 = _slicedToArray(_Form$useForm, 1),
20219
20420
  form = _Form$useForm2[0];
20421
+ var _useState = useState('0'),
20422
+ _useState2 = _slicedToArray(_useState, 2),
20423
+ activeTabKey = _useState2[0],
20424
+ setActiveTabKey = _useState2[1];
20220
20425
  var _useTranslation = useTranslation(),
20221
20426
  t = _useTranslation.t;
20222
20427
  var root = useStore();
@@ -20333,6 +20538,29 @@ var FormWrapper$1 = function FormWrapper(_ref, ref) {
20333
20538
  onError === null || onError === void 0 || onError(errorText !== null && errorText !== void 0 ? errorText : 'Es konnte nicht gespeichert werden, versuchen Sie es später nochmal.');
20334
20539
  }
20335
20540
  };
20541
+ var handleSearchChange = function handleSearchChange(e) {
20542
+ var searchValue = e.target.value.toLowerCase();
20543
+ if (searchValue.length <= 2) {
20544
+ return;
20545
+ }
20546
+ // Filter items based on search value
20547
+ var filteredItems = tabGroups.filter(function (group) {
20548
+ return group.items.some(function (item) {
20549
+ return (item.label || item.name.toString()).toLowerCase().includes(searchValue);
20550
+ });
20551
+ });
20552
+
20553
+ // If we find matches in a different tab, switch to that tab
20554
+ if (filteredItems.length > 0) {
20555
+ var targetTabIndex = tabGroups.findIndex(function (g) {
20556
+ return g === filteredItems[0];
20557
+ });
20558
+ if (targetTabIndex >= 0) {
20559
+ var targetTabKey = tabGroups[targetTabIndex].tabGroup === 'default' ? '99' : targetTabIndex.toString();
20560
+ setActiveTabKey(targetTabKey);
20561
+ }
20562
+ }
20563
+ };
20336
20564
  var onFinishFailed = function onFinishFailed(data) {
20337
20565
  if (data.errorFields.length) {
20338
20566
  onError === null || onError === void 0 || onError("Folgende Felder wurden nicht korrekt bef\xFCllt: ".concat(data.errorFields.map(function (f) {
@@ -20347,18 +20575,69 @@ var FormWrapper$1 = function FormWrapper(_ref, ref) {
20347
20575
  onErrorInternal('An unexpected error prevented finishing');
20348
20576
  }
20349
20577
  };
20350
- return /*#__PURE__*/jsxs(Fragment, {
20351
- children: [/*#__PURE__*/jsxs(Spin, {
20352
- spinning: state.loading,
20353
- children: [state.configuration.presetApiInterface && /*#__PURE__*/jsx(Presets, {
20354
- state: state,
20355
- apiHandler: state.presetApiHandler,
20356
- form: form,
20357
- root: state.root,
20358
- setUsedPreset: state.setUsedPreset,
20359
- presets: state.preset.presets,
20360
- setPresets: state.preset.setPresets
20361
- }), /*#__PURE__*/jsxs(Form$1, {
20578
+
20579
+ // Group items by tabgroup
20580
+ var groupItemsByTabGroup = function groupItemsByTabGroup() {
20581
+ if (!state.selectedItems) return [];
20582
+ var groups = {};
20583
+ state.selectedItems.forEach(function (item) {
20584
+ if (item.showInAllTabs) return;
20585
+ var tabGroup = item.tabgroup || 'default';
20586
+ if (!groups[tabGroup]) {
20587
+ groups[tabGroup] = [];
20588
+ }
20589
+ groups[tabGroup].push(item);
20590
+ });
20591
+ return Object.entries(groups).map(function (_ref7) {
20592
+ var _ref8 = _slicedToArray(_ref7, 2),
20593
+ tabGroup = _ref8[0],
20594
+ items = _ref8[1];
20595
+ return {
20596
+ tabGroup: tabGroup,
20597
+ items: items
20598
+ };
20599
+ });
20600
+ };
20601
+ var getGeneralItems = function getGeneralItems() {
20602
+ var _state$selectedItems2;
20603
+ return (_state$selectedItems2 = state.selectedItems) === null || _state$selectedItems2 === void 0 ? void 0 : _state$selectedItems2.filter(function (item) {
20604
+ return item.showInAllTabs;
20605
+ });
20606
+ };
20607
+ var renderFormItems = function renderFormItems(items) {
20608
+ return /*#__PURE__*/jsx(Fragment, {
20609
+ children: items.map(function (item) {
20610
+ var _state$hiddenRequired, _state$hiddenRequired2, _state$hiddenRequired3;
20611
+ return /*#__PURE__*/jsxs("div", {
20612
+ children: [item.marker && /*#__PURE__*/jsx(InfoCircleOutlined, {}), ['subTitle', 'array', 'text'].includes(item.type) ? getElement(item, setCanSave, state, item.name, state.onInputChanged, onErrorInternal, undefined, undefined, (_state$hiddenRequired = state.hiddenRequiredDisabled[typeof item.name == 'string' ? item.name : item.name.join('.')]) === null || _state$hiddenRequired === void 0 ? void 0 : _state$hiddenRequired.hidden) : /*#__PURE__*/jsx(Form$1.Item, {
20613
+ name: item.name,
20614
+ rules: state.getRules(item, state.data),
20615
+ label: getLabel(item, t),
20616
+ valuePropName: item.type == 'checkbox' ? 'checked' : 'value',
20617
+ initialValue: item === null || item === void 0 ? void 0 : item.defaultValue,
20618
+ hasFeedback: !!state.fieldErrors[item.name.toString()],
20619
+ validateStatus: !!state.fieldErrors[item.name.toString()] ? 'error' : undefined,
20620
+ help: state.fieldErrors[item.name.toString()],
20621
+ hidden: (_state$hiddenRequired2 = state.hiddenRequiredDisabled[typeof item.name == 'string' ? item.name : item.name.join('.')]) === null || _state$hiddenRequired2 === void 0 ? void 0 : _state$hiddenRequired2.hidden,
20622
+ children: getElement(item, setCanSave, state, item.name, state.onInputChanged, onErrorInternal, root, form, (_state$hiddenRequired3 = state.hiddenRequiredDisabled[typeof item.name == 'string' ? item.name : item.name.join('.')]) === null || _state$hiddenRequired3 === void 0 ? void 0 : _state$hiddenRequired3.hidden)
20623
+ }, Array.isArray(item.name) ? item.name.join('.') : item.name)]
20624
+ }, item.name.toString());
20625
+ })
20626
+ });
20627
+ };
20628
+ var tabGroups = useMemo(function () {
20629
+ return groupItemsByTabGroup();
20630
+ }, [state.selectedItems]);
20631
+ var generalItems = useMemo(function () {
20632
+ return getGeneralItems();
20633
+ }, [state.selectedItems]);
20634
+
20635
+ // Create tab items dynamically
20636
+ var tabItems = tabGroups.map(function (group, index) {
20637
+ return {
20638
+ key: group.tabGroup === 'default' ? '99' : index.toString(),
20639
+ label: group.tabGroup === 'default' ? t('backoffice.menu.items.label.systemOther') : group.tabGroup,
20640
+ children: /*#__PURE__*/jsxs(Form$1, {
20362
20641
  autoComplete: "off",
20363
20642
  form: form,
20364
20643
  onFinish: onFinish,
@@ -20374,30 +20653,96 @@ var FormWrapper$1 = function FormWrapper(_ref, ref) {
20374
20653
  if (changedFields[0] === undefined) return;
20375
20654
  state.changedFields.current.push(changedFields[0]);
20376
20655
  },
20377
- children: [state.configuration.itemSelector && /*#__PURE__*/jsx(Form$1.Item, {
20656
+ children: [generalItems && renderFormItems(generalItems), generalItems && /*#__PURE__*/jsx(Divider, {}), state.configuration.itemSelector && index === 0 && /*#__PURE__*/jsx(Form$1.Item, {
20378
20657
  name: state.configuration.itemSelector.name,
20379
20658
  rules: state.getRules(state.configuration.itemSelector, state.data),
20380
20659
  label: state.configuration.itemSelector.label ? t(state.configuration.itemSelector.label, state.configuration.itemSelector.label) : state.configuration.itemSelector.name,
20381
20660
  valuePropName: state.configuration.itemSelector.type == 'checkbox' ? 'checked' : 'value',
20382
20661
  children: getElement(state.configuration.itemSelector, setCanSave, state, state.configuration.itemSelector.name, state.onItemSelectorChanged, onErrorInternal)
20383
- }, state.configuration.itemSelector.name.toString()), (_state$selectedItems2 = state.selectedItems) === null || _state$selectedItems2 === void 0 ? void 0 : _state$selectedItems2.map(function (item) {
20384
- var _state$hiddenRequired, _state$hiddenRequired2, _state$hiddenRequired3;
20385
- return /*#__PURE__*/jsxs("div", {
20386
- children: [item.marker && /*#__PURE__*/jsx(InfoCircleOutlined, {}), ['subTitle', 'array', 'text'].includes(item.type) ? getElement(item, setCanSave, state, item.name, state.onInputChanged, onErrorInternal, undefined, undefined, (_state$hiddenRequired = state.hiddenRequiredDisabled[typeof item.name == 'string' ? item.name : item.name.join('.')]) === null || _state$hiddenRequired === void 0 ? void 0 : _state$hiddenRequired.hidden) : /*#__PURE__*/jsx(Form$1.Item, {
20387
- name: item.name,
20388
- rules: state.getRules(item, state.data),
20389
- label: getLabel(item, t),
20390
- valuePropName: item.type == 'checkbox' ? 'checked' : 'value',
20391
- initialValue: item === null || item === void 0 ? void 0 : item.defaultValue,
20392
- hasFeedback: !!state.fieldErrors[item.name.toString()],
20393
- validateStatus: !!state.fieldErrors[item.name.toString()] ? 'error' : undefined,
20394
- help: state.fieldErrors[item.name.toString()],
20395
- hidden: (_state$hiddenRequired2 = state.hiddenRequiredDisabled[typeof item.name == 'string' ? item.name : item.name.join('.')]) === null || _state$hiddenRequired2 === void 0 ? void 0 : _state$hiddenRequired2.hidden,
20396
- children: getElement(item, setCanSave, state, item.name, state.onInputChanged, onErrorInternal, root, form, (_state$hiddenRequired3 = state.hiddenRequiredDisabled[typeof item.name == 'string' ? item.name : item.name.join('.')]) === null || _state$hiddenRequired3 === void 0 ? void 0 : _state$hiddenRequired3.hidden)
20397
- }, Array.isArray(item.name) ? item.name.join('.') : item.name)]
20398
- }, item.name.toString());
20399
- })]
20400
- }, state.selectedItemsIndex.toString())]
20662
+ }, state.configuration.itemSelector.name.toString()), renderFormItems(group.items)]
20663
+ }, "".concat(state.selectedItemsIndex.toString(), "-").concat(index))
20664
+ };
20665
+ });
20666
+
20667
+ // If no tabgroups are defined, fall back to single form
20668
+ var hasTabGroups = tabGroups.length > 1 || tabGroups.length === 1 && tabGroups[0].tabGroup !== 'default';
20669
+ if (!hasTabGroups) {
20670
+ var singleForm = /*#__PURE__*/jsxs(Form$1, {
20671
+ autoComplete: "off",
20672
+ form: form,
20673
+ onFinish: onFinish,
20674
+ onFinishFailed: onFinishFailed,
20675
+ layout: "horizontal",
20676
+ onValuesChange: function onValuesChange(a, data) {
20677
+ state.updateHiddenRequiredDisabled(data, a);
20678
+ },
20679
+ labelCol: {
20680
+ span: 4
20681
+ },
20682
+ onFieldsChange: function onFieldsChange(changedFields) {
20683
+ if (changedFields[0] === undefined) return;
20684
+ state.changedFields.current.push(changedFields[0]);
20685
+ },
20686
+ children: [state.configuration.itemSelector && /*#__PURE__*/jsx(Form$1.Item, {
20687
+ name: state.configuration.itemSelector.name,
20688
+ rules: state.getRules(state.configuration.itemSelector, state.data),
20689
+ label: state.configuration.itemSelector.label ? t(state.configuration.itemSelector.label, state.configuration.itemSelector.label) : state.configuration.itemSelector.name,
20690
+ valuePropName: state.configuration.itemSelector.type == 'checkbox' ? 'checked' : 'value',
20691
+ children: getElement(state.configuration.itemSelector, setCanSave, state, state.configuration.itemSelector.name, state.onItemSelectorChanged, onErrorInternal)
20692
+ }, state.configuration.itemSelector.name.toString()), renderFormItems(state.selectedItems || [])]
20693
+ }, state.selectedItemsIndex.toString());
20694
+ return /*#__PURE__*/jsxs(Fragment, {
20695
+ children: [/*#__PURE__*/jsxs(Spin, {
20696
+ spinning: state.loading,
20697
+ children: [state.configuration.presetApiInterface && /*#__PURE__*/jsx(Presets, {
20698
+ state: state,
20699
+ apiHandler: state.presetApiHandler,
20700
+ form: form,
20701
+ root: state.root,
20702
+ setUsedPreset: state.setUsedPreset,
20703
+ presets: state.preset.presets,
20704
+ setPresets: state.preset.setPresets
20705
+ }), singleForm]
20706
+ }), state.configuration.showProgressBar && /*#__PURE__*/jsx(ModalProgressBar, {
20707
+ isOpen: state.progressBarOpen,
20708
+ percent: state.progressBarPercentage
20709
+ })]
20710
+ });
20711
+ }
20712
+ return /*#__PURE__*/jsxs(Fragment, {
20713
+ children: [/*#__PURE__*/jsxs(Spin, {
20714
+ spinning: state.loading,
20715
+ children: [state.configuration.presetApiInterface && /*#__PURE__*/jsx(Presets, {
20716
+ state: state,
20717
+ apiHandler: state.presetApiHandler,
20718
+ form: form,
20719
+ root: state.root,
20720
+ setUsedPreset: state.setUsedPreset,
20721
+ presets: state.preset.presets,
20722
+ setPresets: state.preset.setPresets
20723
+ }), state.configuration.enableSearch && /*#__PURE__*/jsxs(Fragment, {
20724
+ children: [/*#__PURE__*/jsx(Form$1.Item, {
20725
+ name: "iconSearch",
20726
+ label: t('backoffice.form.organizationdetails.searchitems'),
20727
+ labelCol: {
20728
+ span: 4
20729
+ },
20730
+ children: /*#__PURE__*/jsx(Input.Search, {
20731
+ placeholder: t('backoffice.form.organizationdetails.searchitems'),
20732
+ onChange: handleSearchChange,
20733
+ style: {
20734
+ width: '100%'
20735
+ },
20736
+ allowClear: true
20737
+ })
20738
+ }), /*#__PURE__*/jsx(Divider, {})]
20739
+ }), /*#__PURE__*/jsx(Tabs, {
20740
+ activeKey: activeTabKey,
20741
+ onChange: setActiveTabKey,
20742
+ items: _toConsumableArray(tabItems).sort(function (a, b) {
20743
+ return a.key.localeCompare(b.key);
20744
+ })
20745
+ })]
20401
20746
  }), state.configuration.showProgressBar && /*#__PURE__*/jsx(ModalProgressBar, {
20402
20747
  isOpen: state.progressBarOpen,
20403
20748
  percent: state.progressBarPercentage
@@ -21172,8 +21517,8 @@ var skeleton = "skeleton--xCI0";
21172
21517
  var filterField = "filterField-1kU1O";
21173
21518
  var parentScroll = "parent-scroll-GmaL9";
21174
21519
  var parent = "parent-NZJ3S";
21175
- var css_248z$q = ".permission-Button-XctsZ {\n position: relative;\n top: 25px;\n left: -30px;\n float: right;\n height: 20px;\n z-index: 1000;\n}\n.select-lzft- {\n width: 100%;\n}\n.loadingOption-qCkRw {\n margin-top: 11px;\n padding-left: 500px;\n}\n.scroller-lrdk9 {\n overflow: auto;\n height: 100%;\n}\n\n.skeleton--xCI0 {\n padding-left: 25px;\n padding-bottom: 10px;\n}\n.filterField-1kU1O {\n display: flex;\n gap: 10px;\n}\n.filterField-1kU1O button {\n height: 32px;\n}\n.filterField-1kU1O div {\n height: 32px;\n}\n\n.parent-scroll-GmaL9 {\n overflow: auto;\n padding: 24px;\n flex: 1;\n display: flex;\n flex-direction: column;\n}\n.parent-NZJ3S {\n overflow: auto;\n padding: 24px;\n height: 100%;\n}\n\n.parent-scroll-GmaL9 .ant-spin-container {\n height: 100%;\n}\n.parent-scroll-GmaL9 .infinite-scroll-component__outerdiv {\n height: 100%;\n}\n.parent-scroll-GmaL9 .infinite-scroll-component {\n height: 100% !important;\n}\n";
21176
- styleInject(css_248z$q);
21520
+ var css_248z$r = ".permission-Button-XctsZ {\n position: relative;\n top: 25px;\n left: -30px;\n float: right;\n height: 20px;\n z-index: 1000;\n}\n.select-lzft- {\n width: 100%;\n}\n.loadingOption-qCkRw {\n margin-top: 11px;\n padding-left: 500px;\n}\n.scroller-lrdk9 {\n overflow: auto;\n height: 100%;\n}\n\n.skeleton--xCI0 {\n padding-left: 25px;\n padding-bottom: 10px;\n}\n.filterField-1kU1O {\n display: flex;\n gap: 10px;\n}\n.filterField-1kU1O button {\n height: 32px;\n}\n.filterField-1kU1O div {\n height: 32px;\n}\n\n.parent-scroll-GmaL9 {\n overflow: auto;\n padding: 24px;\n flex: 1;\n display: flex;\n flex-direction: column;\n}\n.parent-NZJ3S {\n overflow: auto;\n padding: 24px;\n height: 100%;\n}\n\n.parent-scroll-GmaL9 .ant-spin-container {\n height: 100%;\n}\n.parent-scroll-GmaL9 .infinite-scroll-component__outerdiv {\n height: 100%;\n}\n.parent-scroll-GmaL9 .infinite-scroll-component {\n height: 100% !important;\n}\n";
21521
+ styleInject(css_248z$r);
21177
21522
 
21178
21523
  function ownKeys$K(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
21179
21524
  function _objectSpread$K(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$K(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$K(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -22418,8 +22763,8 @@ var newscroller = "newscroller-INKeD";
22418
22763
  var antCollapseHeader = "ant-collapse-header--6FgU";
22419
22764
  var itemTitle = "item-title--BTvC";
22420
22765
  var itemDesc = "item-desc-DBiiF";
22421
- var css_248z$p = ".diva-component-DIVA_BACKOFFICE_NEW .title-cl-ZAj2y {\n color: black;\n}\n.diva-component-DIVA_BACKOFFICE_NEW .description-m3mNY {\n color: grey;\n flex: 1 1 100%;\n margin-left: 25px;\n margin-top: -25px;\n}\n.diva-component-DIVA_BACKOFFICE_NEW .item-group-xWnj- {\n /* border-bottom: 1px solid black; */\n margin-bottom: 40px;\n}\n.diva-component-DIVA_BACKOFFICE_NEW .delete-item-otdSr {\n cursor: pointer;\n position: relative;\n float: right;\n top: 13px;\n margin-right: 20px;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .newscroller-INKeD {\n overflow: auto;\n height: 400px;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .ant-collapse-header--6FgU div {\n flex-wrap: wrap !important;\n}\n.diva-component-DIVA_BACKOFFICE_NEW a .item-title--BTvC {\n padding: 0 0 0 30px;\n color: rgba(0, 0, 0, 0.85);\n}\n.diva-component-DIVA_BACKOFFICE_NEW .item-desc-DBiiF {\n padding: 0 0 0 30px;\n color: rgba(0, 0, 0, 0.45);\n}\n";
22422
- styleInject(css_248z$p);
22766
+ var css_248z$q = ".diva-component-DIVA_BACKOFFICE_NEW .title-cl-ZAj2y {\n color: black;\n}\n.diva-component-DIVA_BACKOFFICE_NEW .description-m3mNY {\n color: grey;\n flex: 1 1 100%;\n margin-left: 25px;\n margin-top: -25px;\n}\n.diva-component-DIVA_BACKOFFICE_NEW .item-group-xWnj- {\n /* border-bottom: 1px solid black; */\n margin-bottom: 40px;\n}\n.diva-component-DIVA_BACKOFFICE_NEW .delete-item-otdSr {\n cursor: pointer;\n position: relative;\n float: right;\n top: 13px;\n margin-right: 20px;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .newscroller-INKeD {\n overflow: auto;\n height: 400px;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .ant-collapse-header--6FgU div {\n flex-wrap: wrap !important;\n}\n.diva-component-DIVA_BACKOFFICE_NEW a .item-title--BTvC {\n padding: 0 0 0 30px;\n color: rgba(0, 0, 0, 0.85);\n}\n.diva-component-DIVA_BACKOFFICE_NEW .item-desc-DBiiF {\n padding: 0 0 0 30px;\n color: rgba(0, 0, 0, 0.45);\n}\n";
22767
+ styleInject(css_248z$q);
22423
22768
 
22424
22769
  function ownKeys$H(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
22425
22770
  function _objectSpread$H(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$H(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$H(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -23831,8 +24176,8 @@ var jsoneditor = "jsoneditor-WMs15";
23831
24176
  var preview = "preview-9wK81";
23832
24177
  var previewButton = "preview-button-vupuG";
23833
24178
  var editButton = "edit-button-m6r3M";
23834
- var css_248z$o = ".jsoneditor-WMs15 .jsoneditor-menu .jsoneditor-transform {\n display: none;\n}\n.jsoneditor-WMs15 .jsoneditor-menu .jsoneditor-repair {\n display: none;\n}\n.jsoneditor-WMs15 .jsoneditor-menu .jsoneditor-poweredBy {\n display: none;\n}\n.jsoneditor-WMs15 .preview-9wK81 {\n background-color: #f19e34;\n}\n\n.jsoneditor-WMs15 .preview-button-vupuG {\n background-image: url(\"data:image/svg+xml,%3C%3Fxml version%3D%221.0%22 encoding%3D%22iso-8859-1%22%3F%3E%3C!-- Generator%3A Adobe Illustrator 19.0.0%2C SVG Export Plug-In . SVG Version%3A 6.00 Build 0) --%3E%3Csvg version%3D%221.1%22 id%3D%22Layer_1%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22 x%3D%220px%22 y%3D%220px%22%09 viewBox%3D%220 0 502 502%22 style%3D%22enable-background%3Anew 0 0 502 502%3B%22 xml%3Aspace%3D%22preserve%22 fill%3D%22%23fff%22%3E%3Cg%3E%09%3Cg%3E%09%09%3Cg%3E%09%09%09%3Cpath d%3D%22M478.482%2C448.601l-101.6-101.599c8.089-15.262%2C12.339-32.29%2C12.339-49.717c0-35.689-18.182-69.164-47.804-88.743V92.53%09%09%09%09c0-2.652-1.054-5.196-2.929-7.071l-82.529-82.53C254.083%2C1.054%2C251.54%2C0%2C248.888%2C0H24.371c-5.522%2C0-10%2C4.477-10%2C10v427.735%09%09%09%09c0%2C5.523%2C4.478%2C10%2C10%2C10h307.046c5.522%2C0%2C10-4.477%2C10-10v-37.722l92.825%2C92.825c5.908%2C5.908%2C13.764%2C9.162%2C22.119%2C9.162%09%09%09%09c8.356%2C0%2C16.212-3.254%2C22.12-9.162C490.678%2C480.642%2C490.678%2C460.797%2C478.482%2C448.601z M307.276%2C82.53h-48.387V34.143%09%09%09%09l24.193%2C24.193L307.276%2C82.53z M321.417%2C396.377v31.358H34.371V20h204.517v72.53c0%2C5.523%2C4.478%2C10%2C10%2C10h72.529v95.662%09%09%09%09l0.009%2C0.014c-12.214-4.741-25.275-7.215-38.499-7.215c-58.61%2C0-106.294%2C47.683-106.294%2C106.293s47.684%2C106.293%2C106.294%2C106.293%09%09%09%09c13.224%2C0%2C26.285-2.474%2C38.499-7.215L321.417%2C396.377z M328.948%2C370.291c-0.848%2C0.536-1.706%2C1.057-2.574%2C1.563%09%09%09%09c-13.131%2C7.67-28.154%2C11.724-43.446%2C11.724c-47.583%2C0-86.294-38.711-86.294-86.293c0-47.582%2C38.711-86.293%2C86.294-86.293%09%09%09%09c15.291%2C0%2C30.315%2C4.054%2C43.447%2C11.724c26.428%2C15.435%2C42.846%2C44.008%2C42.846%2C74.569c0%2C16.35-4.595%2C32.264-13.289%2C46.022%09%09%09%09C349.097%2C354.125%2C339.766%2C363.455%2C328.948%2C370.291z M464.339%2C478.696c-2.131%2C2.131-4.964%2C3.304-7.978%2C3.304%09%09%09%09c-3.014%2C0-5.847-1.173-7.977-3.304l-98.706-98.706l-0.008-0.001c5.856-4.74%2C11.221-10.104%2C15.961-15.96l0.001%2C0.008%09%09%09%09l98.707%2C98.707C468.737%2C467.142%2C468.737%2C474.298%2C464.339%2C478.696z%22%2F%3E%09%09%09%3Cpath d%3D%22M246.838%2C238.403c-20.641%2C12.674-32.964%2C34.686-32.964%2C58.882c0%2C5.523%2C4.478%2C10%2C10%2C10c5.522%2C0%2C10-4.477%2C10-10%09%09%09%09c0-17.19%2C8.759-32.83%2C23.429-41.838c4.707-2.89%2C6.179-9.048%2C3.289-13.754C257.702%2C236.986%2C251.544%2C235.513%2C246.838%2C238.403z%22%2F%3E%09%09%09%3Cpath d%3D%22M317.708%2C237.624c-10.52-6.145-22.547-9.392-34.781-9.392c-5.522%2C0-10%2C4.477-10%2C10s4.478%2C10%2C10%2C10%09%09%09%09c8.693%2C0%2C17.232%2C2.304%2C24.693%2C6.662c1.586%2C0.926%2C3.321%2C1.367%2C5.034%2C1.367c3.438%2C0%2C6.785-1.775%2C8.645-4.958%09%09%09%09C324.085%2C246.533%2C322.477%2C240.409%2C317.708%2C237.624z%22%2F%3E%09%09%3C%2Fg%3E%09%3C%2Fg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3C%2Fsvg%3E\");\n background-size: 20px;\n background-repeat: no-repeat;\n background-position: center;\n}\n.jsoneditor-WMs15 .preview-button-vupuG:hover {\n border: 0;\n}\n.jsoneditor-WMs15 .preview-button-vupuG:disabled {\n opacity: 0.3;\n}\n\n.jsoneditor-WMs15 .edit-button-m6r3M {\n background-image: url(\"data:image/svg+xml,%3C%3Fxml version%3D%221.0%22 encoding%3D%22iso-8859-1%22%3F%3E%3C!-- Generator%3A Adobe Illustrator 16.0.0%2C SVG Export Plug-In . SVG Version%3A 6.00 Build 0) --%3E%3C!DOCTYPE svg PUBLIC %22-%2F%2FW3C%2F%2FDTD SVG 1.1%2F%2FEN%22 %22http%3A%2F%2Fwww.w3.org%2FGraphics%2FSVG%2F1.1%2FDTD%2Fsvg11.dtd%22%3E%3Csvg version%3D%221.1%22 id%3D%22Capa_1%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22 x%3D%220px%22 y%3D%220px%22%09 width%3D%22494.936px%22 height%3D%22494.936px%22 viewBox%3D%220 0 494.936 494.936%22 style%3D%22enable-background%3Anew 0 0 494.936 494.936%3B%22%09 xml%3Aspace%3D%22preserve%22 fill%3D%22%23fff%22%3E%3Cg%3E%09%3Cg%3E%09%09%3Cpath d%3D%22M389.844%2C182.85c-6.743%2C0-12.21%2C5.467-12.21%2C12.21v222.968c0%2C23.562-19.174%2C42.735-42.736%2C42.735H67.157%09%09%09c-23.562%2C0-42.736-19.174-42.736-42.735V150.285c0-23.562%2C19.174-42.735%2C42.736-42.735h267.741c6.743%2C0%2C12.21-5.467%2C12.21-12.21%09%09%09s-5.467-12.21-12.21-12.21H67.157C30.126%2C83.13%2C0%2C113.255%2C0%2C150.285v267.743c0%2C37.029%2C30.126%2C67.155%2C67.157%2C67.155h267.741%09%09%09c37.03%2C0%2C67.156-30.126%2C67.156-67.155V195.061C402.054%2C188.318%2C396.587%2C182.85%2C389.844%2C182.85z%22%2F%3E%09%09%3Cpath d%3D%22M483.876%2C20.791c-14.72-14.72-38.669-14.714-53.377%2C0L221.352%2C229.944c-0.28%2C0.28-3.434%2C3.559-4.251%2C5.396l-28.963%2C65.069%09%09%09c-2.057%2C4.619-1.056%2C10.027%2C2.521%2C13.6c2.337%2C2.336%2C5.461%2C3.576%2C8.639%2C3.576c1.675%2C0%2C3.362-0.346%2C4.96-1.057l65.07-28.963%09%09%09c1.83-0.815%2C5.114-3.97%2C5.396-4.25L483.876%2C74.169c7.131-7.131%2C11.06-16.61%2C11.06-26.692%09%09%09C494.936%2C37.396%2C491.007%2C27.915%2C483.876%2C20.791z M466.61%2C56.897L257.457%2C266.05c-0.035%2C0.036-0.055%2C0.078-0.089%2C0.107%09%09%09l-33.989%2C15.131L238.51%2C247.3c0.03-0.036%2C0.071-0.055%2C0.107-0.09L447.765%2C38.058c5.038-5.039%2C13.819-5.033%2C18.846%2C0.005%09%09%09c2.518%2C2.51%2C3.905%2C5.855%2C3.905%2C9.414C470.516%2C51.036%2C469.127%2C54.38%2C466.61%2C56.897z%22%2F%3E%09%3C%2Fg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3C%2Fsvg%3E\");\n}\n";
23835
- styleInject(css_248z$o);
24179
+ var css_248z$p = ".jsoneditor-WMs15 .jsoneditor-menu .jsoneditor-transform {\n display: none;\n}\n.jsoneditor-WMs15 .jsoneditor-menu .jsoneditor-repair {\n display: none;\n}\n.jsoneditor-WMs15 .jsoneditor-menu .jsoneditor-poweredBy {\n display: none;\n}\n.jsoneditor-WMs15 .preview-9wK81 {\n background-color: #f19e34;\n}\n\n.jsoneditor-WMs15 .preview-button-vupuG {\n background-image: url(\"data:image/svg+xml,%3C%3Fxml version%3D%221.0%22 encoding%3D%22iso-8859-1%22%3F%3E%3C!-- Generator%3A Adobe Illustrator 19.0.0%2C SVG Export Plug-In . SVG Version%3A 6.00 Build 0) --%3E%3Csvg version%3D%221.1%22 id%3D%22Layer_1%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22 x%3D%220px%22 y%3D%220px%22%09 viewBox%3D%220 0 502 502%22 style%3D%22enable-background%3Anew 0 0 502 502%3B%22 xml%3Aspace%3D%22preserve%22 fill%3D%22%23fff%22%3E%3Cg%3E%09%3Cg%3E%09%09%3Cg%3E%09%09%09%3Cpath d%3D%22M478.482%2C448.601l-101.6-101.599c8.089-15.262%2C12.339-32.29%2C12.339-49.717c0-35.689-18.182-69.164-47.804-88.743V92.53%09%09%09%09c0-2.652-1.054-5.196-2.929-7.071l-82.529-82.53C254.083%2C1.054%2C251.54%2C0%2C248.888%2C0H24.371c-5.522%2C0-10%2C4.477-10%2C10v427.735%09%09%09%09c0%2C5.523%2C4.478%2C10%2C10%2C10h307.046c5.522%2C0%2C10-4.477%2C10-10v-37.722l92.825%2C92.825c5.908%2C5.908%2C13.764%2C9.162%2C22.119%2C9.162%09%09%09%09c8.356%2C0%2C16.212-3.254%2C22.12-9.162C490.678%2C480.642%2C490.678%2C460.797%2C478.482%2C448.601z M307.276%2C82.53h-48.387V34.143%09%09%09%09l24.193%2C24.193L307.276%2C82.53z M321.417%2C396.377v31.358H34.371V20h204.517v72.53c0%2C5.523%2C4.478%2C10%2C10%2C10h72.529v95.662%09%09%09%09l0.009%2C0.014c-12.214-4.741-25.275-7.215-38.499-7.215c-58.61%2C0-106.294%2C47.683-106.294%2C106.293s47.684%2C106.293%2C106.294%2C106.293%09%09%09%09c13.224%2C0%2C26.285-2.474%2C38.499-7.215L321.417%2C396.377z M328.948%2C370.291c-0.848%2C0.536-1.706%2C1.057-2.574%2C1.563%09%09%09%09c-13.131%2C7.67-28.154%2C11.724-43.446%2C11.724c-47.583%2C0-86.294-38.711-86.294-86.293c0-47.582%2C38.711-86.293%2C86.294-86.293%09%09%09%09c15.291%2C0%2C30.315%2C4.054%2C43.447%2C11.724c26.428%2C15.435%2C42.846%2C44.008%2C42.846%2C74.569c0%2C16.35-4.595%2C32.264-13.289%2C46.022%09%09%09%09C349.097%2C354.125%2C339.766%2C363.455%2C328.948%2C370.291z M464.339%2C478.696c-2.131%2C2.131-4.964%2C3.304-7.978%2C3.304%09%09%09%09c-3.014%2C0-5.847-1.173-7.977-3.304l-98.706-98.706l-0.008-0.001c5.856-4.74%2C11.221-10.104%2C15.961-15.96l0.001%2C0.008%09%09%09%09l98.707%2C98.707C468.737%2C467.142%2C468.737%2C474.298%2C464.339%2C478.696z%22%2F%3E%09%09%09%3Cpath d%3D%22M246.838%2C238.403c-20.641%2C12.674-32.964%2C34.686-32.964%2C58.882c0%2C5.523%2C4.478%2C10%2C10%2C10c5.522%2C0%2C10-4.477%2C10-10%09%09%09%09c0-17.19%2C8.759-32.83%2C23.429-41.838c4.707-2.89%2C6.179-9.048%2C3.289-13.754C257.702%2C236.986%2C251.544%2C235.513%2C246.838%2C238.403z%22%2F%3E%09%09%09%3Cpath d%3D%22M317.708%2C237.624c-10.52-6.145-22.547-9.392-34.781-9.392c-5.522%2C0-10%2C4.477-10%2C10s4.478%2C10%2C10%2C10%09%09%09%09c8.693%2C0%2C17.232%2C2.304%2C24.693%2C6.662c1.586%2C0.926%2C3.321%2C1.367%2C5.034%2C1.367c3.438%2C0%2C6.785-1.775%2C8.645-4.958%09%09%09%09C324.085%2C246.533%2C322.477%2C240.409%2C317.708%2C237.624z%22%2F%3E%09%09%3C%2Fg%3E%09%3C%2Fg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3C%2Fsvg%3E\");\n background-size: 20px;\n background-repeat: no-repeat;\n background-position: center;\n}\n.jsoneditor-WMs15 .preview-button-vupuG:hover {\n border: 0;\n}\n.jsoneditor-WMs15 .preview-button-vupuG:disabled {\n opacity: 0.3;\n}\n\n.jsoneditor-WMs15 .edit-button-m6r3M {\n background-image: url(\"data:image/svg+xml,%3C%3Fxml version%3D%221.0%22 encoding%3D%22iso-8859-1%22%3F%3E%3C!-- Generator%3A Adobe Illustrator 16.0.0%2C SVG Export Plug-In . SVG Version%3A 6.00 Build 0) --%3E%3C!DOCTYPE svg PUBLIC %22-%2F%2FW3C%2F%2FDTD SVG 1.1%2F%2FEN%22 %22http%3A%2F%2Fwww.w3.org%2FGraphics%2FSVG%2F1.1%2FDTD%2Fsvg11.dtd%22%3E%3Csvg version%3D%221.1%22 id%3D%22Capa_1%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22 x%3D%220px%22 y%3D%220px%22%09 width%3D%22494.936px%22 height%3D%22494.936px%22 viewBox%3D%220 0 494.936 494.936%22 style%3D%22enable-background%3Anew 0 0 494.936 494.936%3B%22%09 xml%3Aspace%3D%22preserve%22 fill%3D%22%23fff%22%3E%3Cg%3E%09%3Cg%3E%09%09%3Cpath d%3D%22M389.844%2C182.85c-6.743%2C0-12.21%2C5.467-12.21%2C12.21v222.968c0%2C23.562-19.174%2C42.735-42.736%2C42.735H67.157%09%09%09c-23.562%2C0-42.736-19.174-42.736-42.735V150.285c0-23.562%2C19.174-42.735%2C42.736-42.735h267.741c6.743%2C0%2C12.21-5.467%2C12.21-12.21%09%09%09s-5.467-12.21-12.21-12.21H67.157C30.126%2C83.13%2C0%2C113.255%2C0%2C150.285v267.743c0%2C37.029%2C30.126%2C67.155%2C67.157%2C67.155h267.741%09%09%09c37.03%2C0%2C67.156-30.126%2C67.156-67.155V195.061C402.054%2C188.318%2C396.587%2C182.85%2C389.844%2C182.85z%22%2F%3E%09%09%3Cpath d%3D%22M483.876%2C20.791c-14.72-14.72-38.669-14.714-53.377%2C0L221.352%2C229.944c-0.28%2C0.28-3.434%2C3.559-4.251%2C5.396l-28.963%2C65.069%09%09%09c-2.057%2C4.619-1.056%2C10.027%2C2.521%2C13.6c2.337%2C2.336%2C5.461%2C3.576%2C8.639%2C3.576c1.675%2C0%2C3.362-0.346%2C4.96-1.057l65.07-28.963%09%09%09c1.83-0.815%2C5.114-3.97%2C5.396-4.25L483.876%2C74.169c7.131-7.131%2C11.06-16.61%2C11.06-26.692%09%09%09C494.936%2C37.396%2C491.007%2C27.915%2C483.876%2C20.791z M466.61%2C56.897L257.457%2C266.05c-0.035%2C0.036-0.055%2C0.078-0.089%2C0.107%09%09%09l-33.989%2C15.131L238.51%2C247.3c0.03-0.036%2C0.071-0.055%2C0.107-0.09L447.765%2C38.058c5.038-5.039%2C13.819-5.033%2C18.846%2C0.005%09%09%09c2.518%2C2.51%2C3.905%2C5.855%2C3.905%2C9.414C470.516%2C51.036%2C469.127%2C54.38%2C466.61%2C56.897z%22%2F%3E%09%3C%2Fg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3C%2Fsvg%3E\");\n}\n";
24180
+ styleInject(css_248z$p);
23836
24181
 
23837
24182
  var JsonEditor = function JsonEditor(_ref, ref) {
23838
24183
  var id = _ref.id,
@@ -24611,19 +24956,19 @@ function reducer(state, action) {
24611
24956
 
24612
24957
  var grid = "grid-sGemi";
24613
24958
  var textWrapper = "text-wrapper-xsPXE";
24614
- var css_248z$n = ".grid-sGemi {\n display: grid;\n grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));\n grid-auto-rows: min-content;\n grid-gap: 10px;\n}\n\n.text-wrapper-xsPXE {\n display: flex;\n justify-content: space-around;\n align-items: center;\n}\n";
24615
- styleInject(css_248z$n);
24959
+ var css_248z$o = ".grid-sGemi {\n display: grid;\n grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));\n grid-auto-rows: min-content;\n grid-gap: 10px;\n}\n\n.text-wrapper-xsPXE {\n display: flex;\n justify-content: space-around;\n align-items: center;\n}\n";
24960
+ styleInject(css_248z$o);
24616
24961
 
24617
- var wrapper$4 = "wrapper-p-gR3";
24962
+ var wrapper$3 = "wrapper-p-gR3";
24618
24963
  var container$6 = "container-DoZqe";
24619
- var css_248z$m = ".wrapper-p-gR3 {\n background: #ececec;\n}\n\n.container-DoZqe {\n display: flex;\n justify-content: space-between;\n}\n";
24620
- styleInject(css_248z$m);
24964
+ var css_248z$n = ".wrapper-p-gR3 {\n background: #ececec;\n}\n\n.container-DoZqe {\n display: flex;\n justify-content: space-between;\n}\n";
24965
+ styleInject(css_248z$n);
24621
24966
 
24622
24967
  var ToolTipInfo = function ToolTipInfo(props) {
24623
24968
  var _useTranslation = useTranslation(),
24624
24969
  t = _useTranslation.t;
24625
24970
  return /*#__PURE__*/jsx("div", {
24626
- className: wrapper$4,
24971
+ className: wrapper$3,
24627
24972
  children: /*#__PURE__*/jsx(Card, {
24628
24973
  title: t('backoffice.tooltipinfo.useroverview'),
24629
24974
  styles: {
@@ -24820,8 +25165,8 @@ var useMediaUpload = function useMediaUpload(_ref) {
24820
25165
  var small = "small-NY1-k";
24821
25166
  var medium = "medium---QcO";
24822
25167
  var big = "big--E39S";
24823
- var css_248z$l = ".diva-component-DIVA_BACKOFFICE_NEW .ant-upload-wrapper {\n width: 100%;\n height: 100%;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .ant-spin-nested-loading {\n width: 100%;\n height: 100%;\n}\n.diva-component-DIVA_BACKOFFICE_NEW .ant-table-wrapper, .diva-component-DIVA_BACKOFFICE_NEW .ant-table {\n height: inherit;\n overflow: auto;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .ant-drawer-body .ant-spin-nested-loading {\n width: 100%;\n height: 80%;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .ant-spin-container {\n width: 100%;\n height: 100%;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .andt-table .ant-spin-container {\n display: flex;\n flex-direction: column;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .ant-space-item .andt-table .ant-spin-container {\n height: calc(60vh - 90px);\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .andt-table .ant-table-container {\n height: calc(100% - 80px);\n}\n.diva-component-DIVA_BACKOFFICE_NEW .ant-upload-list {\n width: 100%;\n height: 100%;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .ant-upload-list-item-container {\n width: 100% !important;\n height: 100% !important;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .ant-upload-select {\n width: 100% !important;\n height: 100% !important;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .small-NY1-k {\n width: 104px;\n height: 104px;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .medium---QcO {\n width: 200px;\n height: 200px;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .big--E39S {\n width: 400px;\n height: 400px;\n}\n";
24824
- styleInject(css_248z$l);
25168
+ var css_248z$m = ".diva-component-DIVA_BACKOFFICE_NEW .ant-upload-wrapper {\n width: 100%;\n height: 100%;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .ant-spin-nested-loading {\n width: 100%;\n height: 100%;\n}\n.diva-component-DIVA_BACKOFFICE_NEW .ant-table-wrapper, .diva-component-DIVA_BACKOFFICE_NEW .ant-table {\n height: inherit;\n overflow: auto;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .ant-drawer-body .ant-spin-nested-loading {\n width: 100%;\n height: 80%;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .ant-spin-container {\n width: 100%;\n height: 100%;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .andt-table .ant-spin-container {\n display: flex;\n flex-direction: column;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .ant-space-item .andt-table .ant-spin-container {\n height: calc(60vh - 90px);\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .andt-table .ant-table-container {\n height: calc(100% - 80px);\n}\n.diva-component-DIVA_BACKOFFICE_NEW .ant-upload-list {\n width: 100%;\n height: 100%;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .ant-upload-list-item-container {\n width: 100% !important;\n height: 100% !important;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .ant-upload-select {\n width: 100% !important;\n height: 100% !important;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .small-NY1-k {\n width: 104px;\n height: 104px;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .medium---QcO {\n width: 200px;\n height: 200px;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .big--E39S {\n width: 400px;\n height: 400px;\n}\n";
25169
+ styleInject(css_248z$m);
24825
25170
 
24826
25171
  var MediaUpload = observer(function (_ref) {
24827
25172
  var id = _ref.id;
@@ -24947,8 +25292,8 @@ var editableRow = "editable-row-9BEHi";
24947
25292
  var checkbox = "checkbox-H7R-w";
24948
25293
  var editableCellValueWrap = "editable-cell-value-wrap-ugTs4";
24949
25294
  var contentWidth = "content-width-hGyVI";
24950
- var css_248z$k = ".checkbox-readonly-0-bzT {\n cursor: default;\n}\n\n.checkbox-readonly-0-bzT .ant-checkbox-input {\n cursor: default;\n}\n\n.checkbox-readonly-0-bzT .ant-checkbox {\n cursor: default;\n}\n\n.editable-row-9BEHi:hover .checkbox-H7R-w .ant-checkbox {\n box-shadow: 0 0 5px rgba(0, 0, 0, 0.6);\n}\n\n.editable-cell-value-wrap-ugTs4 {\n padding: 5px 12px;\n cursor: pointer;\n}\n\n.editable-row-9BEHi:hover .editable-cell-value-wrap-ugTs4 {\n padding: 4px 11px;\n border: 1px solid #d9d9d9;\n border-radius: 4px;\n}\n\n.content-width-hGyVI .ant-modal-confirm-content {\n width: 100%;\n}\n";
24951
- styleInject(css_248z$k);
25295
+ var css_248z$l = ".checkbox-readonly-0-bzT {\n cursor: default;\n}\n\n.checkbox-readonly-0-bzT .ant-checkbox-input {\n cursor: default;\n}\n\n.checkbox-readonly-0-bzT .ant-checkbox {\n cursor: default;\n}\n\n.editable-row-9BEHi:hover .checkbox-H7R-w .ant-checkbox {\n box-shadow: 0 0 5px rgba(0, 0, 0, 0.6);\n}\n\n.editable-cell-value-wrap-ugTs4 {\n padding: 5px 12px;\n cursor: pointer;\n}\n\n.editable-row-9BEHi:hover .editable-cell-value-wrap-ugTs4 {\n padding: 4px 11px;\n border: 1px solid #d9d9d9;\n border-radius: 4px;\n}\n\n.content-width-hGyVI .ant-modal-confirm-content {\n width: 100%;\n}\n";
25296
+ styleInject(css_248z$l);
24952
25297
 
24953
25298
  function BooleanCell (_ref) {
24954
25299
  var children = _ref.children,
@@ -25629,7 +25974,7 @@ function LinkCell (_ref) {
25629
25974
  }
25630
25975
  }
25631
25976
 
25632
- var _excluded$1 = ["index"],
25977
+ var _excluded$2 = ["index"],
25633
25978
  _excluded2 = ["children", "dataIndex", "record", "handleSave", "column"];
25634
25979
  function ownKeys$y(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
25635
25980
  function _objectSpread$y(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$y(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$y(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -25637,7 +25982,7 @@ var LOG$4 = getLogger('Backoffice', 'CellRenderer');
25637
25982
  var EditableContext = /*#__PURE__*/React.createContext(null);
25638
25983
  var CustomRow = function CustomRow(_ref) {
25639
25984
  _ref.index;
25640
- var props = _objectWithoutProperties(_ref, _excluded$1);
25985
+ var props = _objectWithoutProperties(_ref, _excluded$2);
25641
25986
  var _Form$useForm = Form$1.useForm(),
25642
25987
  _Form$useForm2 = _slicedToArray(_Form$useForm, 1),
25643
25988
  form = _Form$useForm2[0];
@@ -25937,8 +26282,8 @@ function useAGHistogram (_ref) {
25937
26282
  var container$5 = "container-2r-OJ";
25938
26283
  var column1 = "column1-9viTK";
25939
26284
  var spinner = "spinner-00VcK";
25940
- var css_248z$j = ".container-2r-OJ {\n display: flex;\n gap: 40px; /* Distribute the columns evenly */\n}\n\n.column-yZ2Qc {\n padding: 10px;\n}\n\n.column1-9viTK .column-yZ2Qc {\n flex: 8;\n}\n\n.column2-pCnEz .column-yZ2Qc {\n flex: 1;\n}\n\n.column3-QZDVv .column-yZ2Qc {\n flex: 3;\n}\n\n.spinner-00VcK {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n";
25941
- styleInject(css_248z$j);
26285
+ var css_248z$k = ".container-2r-OJ {\n display: flex;\n gap: 40px; /* Distribute the columns evenly */\n}\n\n.column-yZ2Qc {\n padding: 10px;\n}\n\n.column1-9viTK .column-yZ2Qc {\n flex: 8;\n}\n\n.column2-pCnEz .column-yZ2Qc {\n flex: 1;\n}\n\n.column3-QZDVv .column-yZ2Qc {\n flex: 3;\n}\n\n.spinner-00VcK {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n";
26286
+ styleInject(css_248z$k);
25942
26287
 
25943
26288
  var Panel = Collapse.Panel;
25944
26289
  function AGHistogram (_ref) {
@@ -27526,7 +27871,7 @@ function filter(f, data) {
27526
27871
  }) : result;
27527
27872
  }
27528
27873
 
27529
- var _excluded = ["_id"];
27874
+ var _excluded$1 = ["_id"];
27530
27875
  function ownKeys$t(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
27531
27876
  function _objectSpread$t(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$t(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$t(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
27532
27877
  function useTableData$1 (_ref) {
@@ -27610,7 +27955,7 @@ function useTableData$1 (_ref) {
27610
27955
  setState(newState);
27611
27956
  var formData = new FormData();
27612
27957
  processedDataRow._id;
27613
- var value = _objectWithoutProperties(processedDataRow, _excluded);
27958
+ var value = _objectWithoutProperties(processedDataRow, _excluded$1);
27614
27959
  apiHandler.create(undefined, (_configuration$create = configuration.createMapping) !== null && _configuration$create !== void 0 ? _configuration$create : configuration.mapping, _objectSpread$t(_objectSpread$t({}, catalogItem), {}, {
27615
27960
  filterContex: filterContex,
27616
27961
  value: JSON.stringify([value])
@@ -28916,8 +29261,8 @@ var loader = "loader-LaXZy";
28916
29261
  var flex = "flex-yQdda";
28917
29262
  var bar = "bar-Y663f";
28918
29263
  var value = "value-FCA-6";
28919
- var css_248z$i = ".overlay-lm0tm {\n position: absolute;\n z-index: 1;\n background-color: rgba(247,247,247,0.45882);\n height: 60vh;\n width: 100%;\n}\n.loader-LaXZy {\n position: absolute;\n top: 50%;\n left: 50%;\n width: 50px;\n height: 50px;\n border: 3px solid rgba(0, 0, 0, 0.3);\n border-radius: 50%;\n border-top-color: #fff;\n animation: spin-qUdpu 1s ease-in-out infinite;\n -webkit-animation: spin-qUdpu 1s ease-in-out infinite;\n}\n.flex-yQdda {\n display: flex;\n}\n\n.bar-Y663f {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n width: 100%;\n margin-top: 7%;\n}\n\n.value-FCA-6 {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n width: -moz-fit-content;\n width: fit-content;\n}\n@keyframes spin-qUdpu {\n to {\n -webkit-transform: rotate(360deg);\n }\n}\n";
28920
- styleInject(css_248z$i);
29264
+ var css_248z$j = ".overlay-lm0tm {\n position: absolute;\n z-index: 1;\n background-color: rgba(247,247,247,0.45882);\n height: 60vh;\n width: 100%;\n}\n.loader-LaXZy {\n position: absolute;\n top: 50%;\n left: 50%;\n width: 50px;\n height: 50px;\n border: 3px solid rgba(0, 0, 0, 0.3);\n border-radius: 50%;\n border-top-color: #fff;\n animation: spin-qUdpu 1s ease-in-out infinite;\n -webkit-animation: spin-qUdpu 1s ease-in-out infinite;\n}\n.flex-yQdda {\n display: flex;\n}\n\n.bar-Y663f {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n width: 100%;\n margin-top: 7%;\n}\n\n.value-FCA-6 {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n width: -moz-fit-content;\n width: fit-content;\n}\n@keyframes spin-qUdpu {\n to {\n -webkit-transform: rotate(360deg);\n }\n}\n";
29265
+ styleInject(css_248z$j);
28921
29266
 
28922
29267
  function ownKeys$p(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
28923
29268
  function _objectSpread$p(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$p(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$p(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -29862,8 +30207,8 @@ var retailerChild = "retailer-child-5ll0K";
29862
30207
  var supplier = "supplier-8sm0I";
29863
30208
  var dealer = "dealer-xgnku";
29864
30209
  var association = "association-b8uVW";
29865
- var css_248z$h = ".label-rYNbb {\n width: 225px;\n background-color: #fff;\n cursor: pointer;\n padding: 10px 15px;\n border-radius: 5px;\n display: flex;\n gap: 12px;\n flex-direction: column;\n font-weight: 500;\n}\n\n.not-clickable-wHc5V {\n cursor: inherit;\n color: grey;\n}\n\n.selected-34dYg {\n font-weight: 630;\n}\n\n.description-iFui2 {\n font-weight: 300;\n font-size: small;\n margin-top: -8px;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .org-tree-node-label .org-tree-node-label-inner {\n padding: 0;\n padding: initial;\n}\n\n.darkmode .org-tree-container {\n background-color: rgb(20, 20, 20);\n}\n\n.org-tree-container .org-tree-node-label .ant-btn-default:disabled, .org-tree-container .org-tree-node-label .ant-btn-primary:disabled {\n border-color: #d9d9d9;\n color: rgba(0, 0, 0, 0.25);\n background-color: rgba(0, 0, 0, 0.04);\n}\n\n.retailer-YNzAh {\n border-bottom: #81c784 solid 5px;\n}\n\n.retailer-child-5ll0K {\n border-bottom: #c8e6c9 solid 5px;\n}\n\n.supplier-8sm0I {\n border-bottom: #ba68c8 solid 5px;\n}\n\n.dealer-xgnku {\n border-bottom: #e1bee7 solid 5px;\n}\n\n.association-b8uVW {\n border-bottom: #fff176 solid 5px;\n}\n";
29866
- styleInject(css_248z$h);
30210
+ var css_248z$i = ".label-rYNbb {\n width: 225px;\n background-color: #fff;\n cursor: pointer;\n padding: 10px 15px;\n border-radius: 5px;\n display: flex;\n gap: 12px;\n flex-direction: column;\n font-weight: 500;\n}\n\n.not-clickable-wHc5V {\n cursor: inherit;\n color: grey;\n}\n\n.selected-34dYg {\n font-weight: 630;\n}\n\n.description-iFui2 {\n font-weight: 300;\n font-size: small;\n margin-top: -8px;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .org-tree-node-label .org-tree-node-label-inner {\n padding: 0;\n padding: initial;\n}\n\n.darkmode .org-tree-container {\n background-color: rgb(20, 20, 20);\n}\n\n.org-tree-container .org-tree-node-label .ant-btn-default:disabled, .org-tree-container .org-tree-node-label .ant-btn-primary:disabled {\n border-color: #d9d9d9;\n color: rgba(0, 0, 0, 0.25);\n background-color: rgba(0, 0, 0, 0.04);\n}\n\n.retailer-YNzAh {\n border-bottom: #81c784 solid 5px;\n}\n\n.retailer-child-5ll0K {\n border-bottom: #c8e6c9 solid 5px;\n}\n\n.supplier-8sm0I {\n border-bottom: #ba68c8 solid 5px;\n}\n\n.dealer-xgnku {\n border-bottom: #e1bee7 solid 5px;\n}\n\n.association-b8uVW {\n border-bottom: #fff176 solid 5px;\n}\n";
30211
+ styleInject(css_248z$i);
29867
30212
 
29868
30213
  function getColorClass(data) {
29869
30214
  switch (data.type) {
@@ -30096,8 +30441,8 @@ var openClass = "open-class--gGXs";
30096
30441
  var breadcrumb = "breadcrumb-Z0VvH";
30097
30442
  var selected = "selected-w-sfW";
30098
30443
  var disabled$2 = "disabled-0nado";
30099
- var css_248z$g = ".trigger-wrapper-OkPRc {\n width: 100%;\n padding: 12px 0px;\n display: flex;\n gap: 32px;\n}\n\n.arrow-Rd0hp {\n background-image: url(\"data:image/svg+xml,%3Csvg width%3D%228%22 height%3D%2213%22 viewBox%3D%220 0 8 13%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E %3Cpath d%3D%22M0.947266 1.14893L6.94727 6.29178L0.947266 11.9489%22 stroke%3D%22%236F6F6F%22 stroke-linecap%3D%22round%22 stroke-linejoin%3D%22round%22%2F%3E %3C%2Fsvg%3E\");\n background-repeat: no-repeat;\n background-position: center;\n background-size: contain;\n transform: rotateZ(0deg);\n transition: all 0.35s ease;\n width: 20.8px;\n height: 22.4px;\n cursor: pointer;\n}\n\n.open-class--gGXs {\n transform: rotateZ(90deg);\n}\n\n.breadcrumb-Z0VvH {\n transition: color 0.3s;\n}\n.breadcrumb-Z0VvH:hover:not(.selected-w-sfW) {\n cursor: pointer;\n color: #000;\n}\n\n.selected-w-sfW {\n color: #000;\n font-weight: 400;\n}\n\n.selected-w-sfW {\n color: #000;\n font-weight: 400;\n}\n\n.disabled-0nado {\n pointer-events: none;\n color: lightgray;\n}\n\n.darkmode .selected-w-sfW {\n color: #fff;\n font-weight: 400;\n}\n";
30100
- styleInject(css_248z$g);
30444
+ var css_248z$h = ".trigger-wrapper-OkPRc {\n width: 100%;\n padding: 12px 0px;\n display: flex;\n gap: 32px;\n}\n\n.arrow-Rd0hp {\n background-image: url(\"data:image/svg+xml,%3Csvg width%3D%228%22 height%3D%2213%22 viewBox%3D%220 0 8 13%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E %3Cpath d%3D%22M0.947266 1.14893L6.94727 6.29178L0.947266 11.9489%22 stroke%3D%22%236F6F6F%22 stroke-linecap%3D%22round%22 stroke-linejoin%3D%22round%22%2F%3E %3C%2Fsvg%3E\");\n background-repeat: no-repeat;\n background-position: center;\n background-size: contain;\n transform: rotateZ(0deg);\n transition: all 0.35s ease;\n width: 20.8px;\n height: 22.4px;\n cursor: pointer;\n}\n\n.open-class--gGXs {\n transform: rotateZ(90deg);\n}\n\n.breadcrumb-Z0VvH {\n transition: color 0.3s;\n}\n.breadcrumb-Z0VvH:hover:not(.selected-w-sfW) {\n cursor: pointer;\n color: #000;\n}\n\n.selected-w-sfW {\n color: #000;\n font-weight: 400;\n}\n\n.selected-w-sfW {\n color: #000;\n font-weight: 400;\n}\n\n.disabled-0nado {\n pointer-events: none;\n color: lightgray;\n}\n\n.darkmode .selected-w-sfW {\n color: #fff;\n font-weight: 400;\n}\n";
30445
+ styleInject(css_248z$h);
30101
30446
 
30102
30447
  var BreadCrumbsTrigger = function BreadCrumbsTrigger(_ref) {
30103
30448
  var open = _ref.open,
@@ -30130,8 +30475,8 @@ var BreadCrumbsTrigger = function BreadCrumbsTrigger(_ref) {
30130
30475
 
30131
30476
  var collapsibleInner = "collapsible-inner-rI8kI";
30132
30477
  var toolbarLeft = "toolbar-left-X9WRo";
30133
- var css_248z$f = ".collapsible-inner-rI8kI {\n overflow: auto;\n padding: 32px 0;\n position: relative;\n}\n\n.toolbar-left-X9WRo {\n position: absolute;\n right: 22px;\n top: 10px;\n display: flex;\n gap: 10px;\n}\n";
30134
- styleInject(css_248z$f);
30478
+ var css_248z$g = ".collapsible-inner-rI8kI {\n overflow: auto;\n padding: 32px 0;\n position: relative;\n}\n\n.toolbar-left-X9WRo {\n position: absolute;\n right: 22px;\n top: 10px;\n display: flex;\n gap: 10px;\n}\n";
30479
+ styleInject(css_248z$g);
30135
30480
 
30136
30481
  var Legend = function Legend(props) {
30137
30482
  return /*#__PURE__*/jsx(List$1, {
@@ -30185,8 +30530,8 @@ var Legend = function Legend(props) {
30185
30530
  var buttonsWrapper = "buttons-wrapper-Bubkr";
30186
30531
  var mask = "mask-ssagp";
30187
30532
  var transformWrapper = "transform-wrapper--8t0v";
30188
- var css_248z$e = ".buttons-wrapper-Bubkr {\n display: flex;\n gap: 6px;\n}\n\n.buttons-wrapper-Bubkr button {\n min-width: 24px;\n}\n\n.mask-ssagp {\n position: absolute;\n top: 0;\n bottom: 0;\n z-index: 1;\n height: 100%;\n background-color: rgba(0, 0, 0, 0.45);\n width: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n -webkit-backdrop-filter: blur(3px);\n backdrop-filter: blur(3px);\n}\n.mask-ssagp p {\n font-size: 18px;\n font-weight: bold;\n background: rgba(255, 255, 255, 0.4);\n padding: 10px;\n border-radius: 5px;\n}\n\n.transform-wrapper--8t0v .ant-modal-mask,\n.transform-wrapper--8t0v .ant-modal-wrap {\n position: absolute;\n}\n";
30189
- styleInject(css_248z$e);
30533
+ var css_248z$f = ".buttons-wrapper-Bubkr {\n display: flex;\n gap: 6px;\n}\n\n.buttons-wrapper-Bubkr button {\n min-width: 24px;\n}\n\n.mask-ssagp {\n position: absolute;\n top: 0;\n bottom: 0;\n z-index: 1;\n height: 100%;\n background-color: rgba(0, 0, 0, 0.45);\n width: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n -webkit-backdrop-filter: blur(3px);\n backdrop-filter: blur(3px);\n}\n.mask-ssagp p {\n font-size: 18px;\n font-weight: bold;\n background: rgba(255, 255, 255, 0.4);\n padding: 10px;\n border-radius: 5px;\n}\n\n.transform-wrapper--8t0v .ant-modal-mask,\n.transform-wrapper--8t0v .ant-modal-wrap {\n position: absolute;\n}\n";
30534
+ styleInject(css_248z$f);
30190
30535
 
30191
30536
  var ZoomWrapper = function ZoomWrapper(_ref) {
30192
30537
  var _children = _ref.children,
@@ -31092,6 +31437,7 @@ var useEnricherContext = function useEnricherContext() {
31092
31437
  exclusivitiesSeriesSelectorState: createDefaultSelectState('exclusivitiesSeriesSelectorState'),
31093
31438
  exclusivitiesFeatureSelectorState: createDefaultSelectState('exclusivitiesFeatureSelectorState'),
31094
31439
  selectedSerie: undefined,
31440
+ selectedItem: undefined,
31095
31441
  selectedFeature: undefined
31096
31442
  };
31097
31443
  return root.contextStore.getContext('enricher', initialState);
@@ -31103,6 +31449,11 @@ var useEnricherContext = function useEnricherContext() {
31103
31449
  selectedSerie: serie
31104
31450
  });
31105
31451
  }, [root.contextStore]);
31452
+ var setSelectedItem = useCallback(function (item) {
31453
+ root.contextStore.updateContext('enricher', {
31454
+ selectedItem: item
31455
+ });
31456
+ }, [root.contextStore]);
31106
31457
  var setSelectedFeature = useCallback(function (feature) {
31107
31458
  root.contextStore.updateContext('enricher', {
31108
31459
  selectedFeature: feature
@@ -31138,7 +31489,10 @@ var useEnricherContext = function useEnricherContext() {
31138
31489
  root.contextStore.updateContext('enricher', {
31139
31490
  selectedPackage: newPackage,
31140
31491
  packageId: newPackage._id,
31492
+ viewOnly: newPackage.organizationId !== root.dataStore.organizationId,
31493
+ //if the package is not created in the current organization, it can only be viewed
31141
31494
  selectedSerie: undefined,
31495
+ selectedItem: undefined,
31142
31496
  selectedFeature: undefined,
31143
31497
  lookupSeriesSelectorState: createDefaultSelectState('lookupSeriesSelectorState'),
31144
31498
  lookupFeatureSelectorState: createDefaultSelectState('lookupFeatureSelectorState'),
@@ -31166,6 +31520,7 @@ var useEnricherContext = function useEnricherContext() {
31166
31520
  // Return context + handlers
31167
31521
  return _objectSpread$g(_objectSpread$g({}, getContext()), {}, {
31168
31522
  setSelectedSerie: setSelectedSerie,
31523
+ setSelectedItem: setSelectedItem,
31169
31524
  setSelectedFeature: setSelectedFeature,
31170
31525
  setSelectedPackage: setSelectedPackage
31171
31526
  });
@@ -31184,14 +31539,7 @@ var PackageSelector = function PackageSelector(_ref) {
31184
31539
  return /*#__PURE__*/jsx(SimpleSelect, {
31185
31540
  sharedState: packageSelectorState,
31186
31541
  apiInterface: {
31187
- read: "".concat(enricherService, "/packages?fields=name;_id;isoLanguageIds;isApi&filter=organizationId==\"").concat(organizationId, "\"")
31188
- },
31189
- apiMapping: {
31190
- type: 'query',
31191
- map: [{
31192
- globalValue: 'organizationId',
31193
- targetField: 'organizationId'
31194
- }]
31542
+ read: "".concat(enricherService, "/packages?fields=name;_id;isoLanguageIds;isApi;organizationId&organizationId=").concat(organizationId)
31195
31543
  },
31196
31544
  selectMapping: {
31197
31545
  label: '${name}',
@@ -31221,7 +31569,11 @@ function useModule$1 (currentModules) {
31221
31569
  setSelectedPackage = _useEnricherContext.setSelectedPackage,
31222
31570
  organizationId = _useEnricherContext.organizationId,
31223
31571
  selectedSerie = _useEnricherContext.selectedSerie,
31224
- selectedFeature = _useEnricherContext.selectedFeature;
31572
+ selectedFeature = _useEnricherContext.selectedFeature,
31573
+ selectedItem = _useEnricherContext.selectedItem,
31574
+ setSelectedSerie = _useEnricherContext.setSelectedSerie,
31575
+ setSelectedItem = _useEnricherContext.setSelectedItem,
31576
+ viewOnly = _useEnricherContext.viewOnly;
31225
31577
  var location = useLocation();
31226
31578
  var _useSearchParams = useSearchParams(),
31227
31579
  _useSearchParams2 = _slicedToArray(_useSearchParams, 1),
@@ -31431,8 +31783,12 @@ function useModule$1 (currentModules) {
31431
31783
  organizationId: organizationId,
31432
31784
  apiConfig: root.configurationStore.apiConfig,
31433
31785
  setSelectedPackage: setSelectedPackage,
31786
+ setSelectedSerie: setSelectedSerie,
31787
+ setSelectedItem: setSelectedItem,
31434
31788
  selectedSerie: selectedSerie,
31435
- selectedFeature: selectedFeature
31789
+ selectedFeature: selectedFeature,
31790
+ selectedItem: selectedItem,
31791
+ viewOnly: viewOnly
31436
31792
  };
31437
31793
  }
31438
31794
 
@@ -31560,14 +31916,12 @@ var useTools = function useTools(_ref) {
31560
31916
  initItem: item === null || item === void 0 ? void 0 : item.typeNo,
31561
31917
  setSerie: setSerie,
31562
31918
  setArticle: setArticle
31563
- }, serie ? {
31564
- initSerie: {
31565
- serieNo: serie.serieNo,
31566
- serieId: serie._id
31567
- }
31919
+ }, initSerie ? {
31920
+ initSerie: initSerie
31568
31921
  } : {}) : isApi2 ? {
31569
31922
  // open configurator for api2 package (configurator light)
31570
- loadMask: true
31923
+ loadMask: true,
31924
+ initItem: item === null || item === void 0 ? void 0 : item.typeNo
31571
31925
  } : _objectSpread$f({
31572
31926
  // open configurator for idm package
31573
31927
  useEnricherService: true,
@@ -31577,14 +31931,20 @@ var useTools = function useTools(_ref) {
31577
31931
  initItem: item === null || item === void 0 ? void 0 : item.typeNo,
31578
31932
  setSerie: setSerie,
31579
31933
  setArticle: setArticle
31580
- }, serie ? {
31581
- initSerie: {
31582
- serieNo: serie.serieNo,
31583
- serieId: serie._id
31584
- }
31934
+ }, initSerie ? {
31935
+ initSerie: initSerie
31585
31936
  } : {})
31586
31937
  });
31587
31938
  }, [catalogId, packageId, isApi2, serie, item, setSerie, setArticle]);
31939
+ var initSerie = useMemo(function () {
31940
+ if (serie) {
31941
+ return {
31942
+ serieNo: serie.serieNo,
31943
+ serieId: serie._id
31944
+ };
31945
+ }
31946
+ return undefined;
31947
+ }, [serie]);
31588
31948
  useEffect(function () {
31589
31949
  var _root$contentStore$ri;
31590
31950
  var tools = [];
@@ -31626,7 +31986,8 @@ var TableGroups = observer(function () {
31626
31986
  packageId = _useModule.packageId,
31627
31987
  organizationId = _useModule.organizationId,
31628
31988
  apiConfig = _useModule.apiConfig,
31629
- selectedPackage = _useModule.selectedPackage;
31989
+ selectedPackage = _useModule.selectedPackage,
31990
+ viewOnly = _useModule.viewOnly;
31630
31991
  useTools({
31631
31992
  packageId: packageId,
31632
31993
  isApi2: selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isApi
@@ -31640,10 +32001,10 @@ var TableGroups = observer(function () {
31640
32001
  var apiInterface = useMemo(function () {
31641
32002
  return {
31642
32003
  read: apiConfig.enricherService + '/packages/${packageId}/groups',
31643
- create: apiConfig.enricherService + '/packages/${packageId}/groups',
31644
- restore: apiConfig.enricherService + '/packages/${packageId}/groups/${_id}',
31645
- "delete": apiConfig.enricherService + '/packages/${packageId}/groups/${_id}',
31646
- update: apiConfig.enricherService + '/packages/${packageId}/groups/${_id}',
32004
+ create: viewOnly ? undefined : apiConfig.enricherService + '/packages/${packageId}/groups',
32005
+ restore: viewOnly ? undefined : apiConfig.enricherService + '/packages/${packageId}/groups/${_id}',
32006
+ "delete": viewOnly ? undefined : apiConfig.enricherService + '/packages/${packageId}/groups/${_id}',
32007
+ update: viewOnly ? undefined : apiConfig.enricherService + '/packages/${packageId}/groups/${_id}',
31647
32008
  bulk: apiConfig.enricherService + '/packages/${packageId}/groups/bulk'
31648
32009
  };
31649
32010
  }, []);
@@ -31657,7 +32018,7 @@ var TableGroups = observer(function () {
31657
32018
  field: 'serieNos',
31658
32019
  headerName: 'backoffice.idmEnricher.groups.label.serieNos',
31659
32020
  cellDataType: 'lookup',
31660
- editable: true,
32021
+ editable: !viewOnly,
31661
32022
  customParams: {
31662
32023
  filterCellType: 'number',
31663
32024
  nameField: 'serieNosDisplayTexts',
@@ -31680,7 +32041,7 @@ var TableGroups = observer(function () {
31680
32041
  field: 'typeNos',
31681
32042
  headerName: 'backoffice.idmEnricher.groups.label.typeNos',
31682
32043
  cellDataType: 'lookup',
31683
- editable: true,
32044
+ editable: !viewOnly,
31684
32045
  customParams: {
31685
32046
  nameField: 'typeNosDisplayTexts',
31686
32047
  displayLabelTemplate: '${name} (${value})',
@@ -31735,7 +32096,7 @@ var TableGroups = observer(function () {
31735
32096
  cellDataType: 'objectId'
31736
32097
  }]
31737
32098
  };
31738
- }, [apiInterface, t, selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isoLanguageIds]);
32099
+ }, [apiInterface, t, selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isoLanguageIds, viewOnly]);
31739
32100
  return /*#__PURE__*/jsxs(Fragment, {
31740
32101
  children: [/*#__PURE__*/jsx(Descriptions$1, {
31741
32102
  title: /*#__PURE__*/jsxs("div", {
@@ -31757,22 +32118,28 @@ var TableGroups = observer(function () {
31757
32118
  });
31758
32119
 
31759
32120
  function PublishCustomCell (_ref) {
32121
+ var _data$published, _data$removedOrganiza;
31760
32122
  var data = _ref.data,
31761
32123
  apiConfig = _ref.apiConfig,
31762
32124
  context = _ref.context,
31763
32125
  api = _ref.api,
31764
- modalState = _ref.modalState;
32126
+ modalState = _ref.modalState,
32127
+ organizationId = _ref.organizationId;
31765
32128
  var _useTranslation = useTranslation(),
31766
32129
  t = _useTranslation.t;
31767
32130
  var _React$useState = React.useState(false),
31768
32131
  _React$useState2 = _slicedToArray(_React$useState, 2),
31769
32132
  loading = _React$useState2[0],
31770
32133
  isLoading = _React$useState2[1];
31771
- var unpublishedChanges = hasUnpublishedChanges(data.publishDate, data.lastUpdatedDate);
31772
- var disabled = !data.basedCatalogId && !data.basedPackageId || !data.name;
32134
+ var publishedData = (_data$published = data.published) === null || _data$published === void 0 ? void 0 : _data$published[organizationId];
32135
+ var isReleaseWithdrawn = !!((_data$removedOrganiza = data.removedOrganizationIds) !== null && _data$removedOrganiza !== void 0 && _data$removedOrganiza.find(function (id) {
32136
+ return id === organizationId;
32137
+ }));
32138
+ var unpublishedChanges = hasUnpublishedChanges(publishedData === null || publishedData === void 0 ? void 0 : publishedData.publishDate, publishedData === null || publishedData === void 0 ? void 0 : publishedData.lastUpdatedDate);
32139
+ var disabled = !(data !== null && data !== void 0 && data.basedCatalogId) && !(data !== null && data !== void 0 && data.basedPackageId) || !(data !== null && data !== void 0 && data.name);
31773
32140
  var _onChange = /*#__PURE__*/function () {
31774
32141
  var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(publish) {
31775
- var loadingTimeout, response;
32142
+ var loadingTimeout, response, _errorText, errorText, json;
31776
32143
  return _regeneratorRuntime.wrap(function _callee$(_context) {
31777
32144
  while (1) switch (_context.prev = _context.next) {
31778
32145
  case 0:
@@ -31787,7 +32154,7 @@ function PublishCustomCell (_ref) {
31787
32154
  }
31788
32155
  _context.next = 6;
31789
32156
  return context === null || context === void 0 ? void 0 : context.updateServerData(data, {
31790
- update: apiConfig.enricherService + '/packages/${_id}/publish',
32157
+ update: apiConfig.enricherService + '/packages/${_id}/publish?organizationId=' + organizationId,
31791
32158
  usePut: true
31792
32159
  }, undefined, true);
31793
32160
  case 6:
@@ -31797,7 +32164,7 @@ function PublishCustomCell (_ref) {
31797
32164
  case 9:
31798
32165
  _context.next = 11;
31799
32166
  return context === null || context === void 0 ? void 0 : context.updateServerData(data, {
31800
- update: apiConfig.enricherService + '/packages/${_id}/unpublish',
32167
+ update: apiConfig.enricherService + '/packages/${_id}/unpublish?organizationId=' + organizationId,
31801
32168
  usePut: true
31802
32169
  }, undefined, true);
31803
32170
  case 11:
@@ -31809,7 +32176,7 @@ function PublishCustomCell (_ref) {
31809
32176
  break;
31810
32177
  }
31811
32178
  modalState.showWarningModal(t("backoffice.idmEnricher.packages.label.warning.".concat(publish ? 'publishing' : 'unpublishing')));
31812
- _context.next = 22;
32179
+ _context.next = 34;
31813
32180
  break;
31814
32181
  case 17:
31815
32182
  if (!(response.status == 200)) {
@@ -31817,30 +32184,46 @@ function PublishCustomCell (_ref) {
31817
32184
  break;
31818
32185
  }
31819
32186
  modalState.closeModal();
31820
- _context.next = 22;
32187
+ _context.next = 34;
31821
32188
  break;
31822
32189
  case 21:
31823
- throw new Error("Server errror: ".concat(response.statusText, " (").concat(response.status, ")"));
31824
- case 22:
32190
+ _context.prev = 21;
32191
+ _context.next = 24;
32192
+ return response.json();
32193
+ case 24:
32194
+ json = _context.sent;
32195
+ errorText = json.error;
32196
+ _context.next = 33;
32197
+ break;
32198
+ case 28:
32199
+ _context.prev = 28;
32200
+ _context.t0 = _context["catch"](21);
32201
+ _context.next = 32;
32202
+ return response.text();
32203
+ case 32:
32204
+ errorText = _context.sent;
32205
+ case 33:
32206
+ throw new Error((_errorText = errorText) !== null && _errorText !== void 0 ? _errorText : "Server error (".concat(response.status, ")"));
32207
+ case 34:
31825
32208
  context === null || context === void 0 || context.reset({
31826
32209
  context: context,
31827
32210
  api: api
31828
32211
  });
31829
- _context.next = 28;
32212
+ _context.next = 40;
31830
32213
  break;
31831
- case 25:
31832
- _context.prev = 25;
31833
- _context.t0 = _context["catch"](2);
31834
- modalState.showErrorModal("Error on ".concat(publish ? 'publish' : 'unpublish', ": ").concat(_context.t0 instanceof Error ? _context.t0.message : String(_context.t0)));
31835
- case 28:
31836
- _context.prev = 28;
32214
+ case 37:
32215
+ _context.prev = 37;
32216
+ _context.t1 = _context["catch"](2);
32217
+ modalState.showErrorModal("Error on ".concat(publish ? 'publish' : 'unpublish', ": ").concat(_context.t1 instanceof Error ? _context.t1.message : String(_context.t1)));
32218
+ case 40:
32219
+ _context.prev = 40;
31837
32220
  isLoading(false);
31838
- return _context.finish(28);
31839
- case 31:
32221
+ return _context.finish(40);
32222
+ case 43:
31840
32223
  case "end":
31841
32224
  return _context.stop();
31842
32225
  }
31843
- }, _callee, null, [[2, 25, 28, 31]]);
32226
+ }, _callee, null, [[2, 37, 40, 43], [21, 28]]);
31844
32227
  }));
31845
32228
  return function onChange(_x) {
31846
32229
  return _ref2.apply(this, arguments);
@@ -31852,9 +32235,9 @@ function PublishCustomCell (_ref) {
31852
32235
  children: /*#__PURE__*/jsxs(Space$1, {
31853
32236
  size: "middle",
31854
32237
  children: [/*#__PURE__*/jsx(Tooltip, {
31855
- title: !!data.isPublished ? t('backoffice.idmEnricher.packages.label.unpublish') : t('backoffice.idmEnricher.packages.label.publish'),
32238
+ title: !!publishedData ? t('backoffice.idmEnricher.packages.label.unpublish') : t('backoffice.idmEnricher.packages.label.publish'),
31856
32239
  children: /*#__PURE__*/jsx(Checkbox$1, {
31857
- checked: !!data.isPublished,
32240
+ checked: !!publishedData,
31858
32241
  disabled: disabled,
31859
32242
  indeterminate: unpublishedChanges,
31860
32243
  onChange: function onChange(e) {
@@ -31870,6 +32253,12 @@ function PublishCustomCell (_ref) {
31870
32253
  return _onChange(true);
31871
32254
  }
31872
32255
  })
32256
+ }), isReleaseWithdrawn && /*#__PURE__*/jsx(Tooltip, {
32257
+ title: t('backoffice.idmEnricher.packages.label.releaseWithdrawn'),
32258
+ children: /*#__PURE__*/jsx(Button$1, {
32259
+ shape: "circle",
32260
+ icon: /*#__PURE__*/jsx(WarningOutlined, {})
32261
+ })
31873
32262
  })]
31874
32263
  })
31875
32264
  });
@@ -32191,6 +32580,7 @@ var useLoadingModal = function useLoadingModal() {
32191
32580
  };
32192
32581
 
32193
32582
  var TablePackages = observer(function () {
32583
+ var _root$dataStore$curre;
32194
32584
  var root = useStore();
32195
32585
  var _useTranslation = useTranslation(),
32196
32586
  t = _useTranslation.t,
@@ -32207,20 +32597,14 @@ var TablePackages = observer(function () {
32207
32597
  isApi2: selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isApi
32208
32598
  });
32209
32599
  var organizationId = root.dataStore.organizationId;
32600
+ var organizationDisplayText = (_root$dataStore$curre = root.dataStore.currentOrganization) === null || _root$dataStore$curre === void 0 ? void 0 : _root$dataStore$curre.displayName;
32210
32601
  var apiConfig = root.configurationStore.apiConfig;
32211
32602
  var applicationData = useMemo(function () {
32212
32603
  return {
32213
- organizationId: organizationId
32214
- };
32215
- }, [organizationId]);
32216
- var preFilter = useMemo(function () {
32217
- return {
32218
- colId: 'organizationId',
32219
- filterType: 'text',
32220
- type: 'equals',
32221
- filter: organizationId
32604
+ organizationId: organizationId,
32605
+ organizationDisplayText: organizationDisplayText
32222
32606
  };
32223
- }, [organizationId]);
32607
+ }, [organizationId, organizationDisplayText]);
32224
32608
  var rowActions = useMemo(function () {
32225
32609
  return [{
32226
32610
  icon: /*#__PURE__*/jsx(EditOutlined, {}),
@@ -32235,8 +32619,9 @@ var TablePackages = observer(function () {
32235
32619
  }, {
32236
32620
  icon: /*#__PURE__*/jsx(DownloadOutlined, {}),
32237
32621
  disabled: function disabled(_ref3) {
32622
+ var _selectedNodes$0$data;
32238
32623
  var selectedNodes = _ref3.selectedNodes;
32239
- return !selectedNodes[0].data.isPublished;
32624
+ return !((_selectedNodes$0$data = selectedNodes[0].data.published) !== null && _selectedNodes$0$data !== void 0 && _selectedNodes$0$data[organizationId]);
32240
32625
  },
32241
32626
  action: function () {
32242
32627
  var _action = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(_ref4) {
@@ -32280,14 +32665,18 @@ var TablePackages = observer(function () {
32280
32665
  }, [apiConfig.enricherService, root.dataStore.jwt]);
32281
32666
  var apiInterface = useMemo(function () {
32282
32667
  return {
32283
- read: apiConfig.enricherService + '/packages?organizationId=${organizationId}',
32668
+ read: apiConfig.enricherService + '/packages?organizationId=' + organizationId,
32284
32669
  create: apiConfig.enricherService + '/packages',
32285
32670
  restore: apiConfig.enricherService + '/packages/${_id}',
32286
32671
  "delete": apiConfig.enricherService + '/packages/${_id}',
32287
32672
  update: apiConfig.enricherService + '/packages/${_id}',
32288
- bulk: apiConfig.enricherService + '/packages/bulk?organizationId=${organizationId}'
32673
+ bulk: apiConfig.enricherService + '/packages/bulk?organizationId=' + organizationId
32289
32674
  };
32290
- }, [apiConfig.enricherService]);
32675
+ }, [apiConfig.enricherService, organizationId]);
32676
+ var isEditable = useCallback(function (params) {
32677
+ var _params$data, _params$data2;
32678
+ return ((_params$data = params.data) === null || _params$data === void 0 ? void 0 : _params$data.organizationId) === organizationId || !((_params$data2 = params.data) !== null && _params$data2 !== void 0 && _params$data2._id);
32679
+ }, [organizationId]);
32291
32680
  var configuration = useMemo(function () {
32292
32681
  return {
32293
32682
  type: 'dotnetSSM',
@@ -32295,15 +32684,15 @@ var TablePackages = observer(function () {
32295
32684
  dateFormat: 'DD.MM.YYYY, HH:mm:ss',
32296
32685
  floatingFilter: true,
32297
32686
  colDef: [{
32298
- field: 'isPublished',
32687
+ field: "published.".concat(organizationId),
32299
32688
  //the cell should refresh on changes of this fields
32300
32689
  valueGetter: function valueGetter(_ref5) {
32690
+ var _data$published, _data$published2;
32301
32691
  var data = _ref5.data;
32302
32692
  return {
32303
- isPublished: data === null || data === void 0 ? void 0 : data.isPublished,
32304
32693
  name: data === null || data === void 0 ? void 0 : data.name,
32305
- basedCatalogId: data === null || data === void 0 ? void 0 : data.basedCatalogId,
32306
- basedPackageId: data === null || data === void 0 ? void 0 : data.basedPackageId
32694
+ basedCatalogId: data === null || data === void 0 || (_data$published = data.published) === null || _data$published === void 0 || (_data$published = _data$published[organizationId]) === null || _data$published === void 0 ? void 0 : _data$published.basedCatalogId,
32695
+ basedPackageId: data === null || data === void 0 || (_data$published2 = data.published) === null || _data$published2 === void 0 || (_data$published2 = _data$published2[organizationId]) === null || _data$published2 === void 0 ? void 0 : _data$published2.basedPackageId
32307
32696
  };
32308
32697
  },
32309
32698
  headerName: 'backoffice.idmEnricher.packages.label.published',
@@ -32314,19 +32703,22 @@ var TablePackages = observer(function () {
32314
32703
  lockPinned: true,
32315
32704
  cellRendererParams: {
32316
32705
  apiConfig: apiConfig,
32317
- modalState: modalState
32318
- }
32706
+ modalState: modalState,
32707
+ organizationId: organizationId
32708
+ },
32709
+ isDictionary: true
32319
32710
  }, {
32320
32711
  headerName: 'backoffice.idmEnricher.packages.label.name',
32321
32712
  field: 'name',
32322
- required: true
32713
+ required: true,
32714
+ editable: isEditable
32323
32715
  }, {
32324
32716
  headerName: 'backoffice.idmEnricher.packages.label.catalogId',
32325
32717
  field: 'basedCatalogId',
32326
32718
  cellDataType: 'lookup',
32327
32719
  editable: function editable(_ref6) {
32328
32720
  var data = _ref6.data;
32329
- return !data.basedCatalogId && !data.basedPackageId;
32721
+ return isEditable(data) && !data.basedCatalogId && !data.basedPackageId;
32330
32722
  },
32331
32723
  customParams: {
32332
32724
  filterCellType: 'objectId',
@@ -32354,7 +32746,7 @@ var TablePackages = observer(function () {
32354
32746
  cellDataType: 'lookup',
32355
32747
  editable: function editable(_ref7) {
32356
32748
  var data = _ref7.data;
32357
- return !data.basedCatalogId && !data.basedPackageId;
32749
+ return isEditable(data) && !data.basedCatalogId && !data.basedPackageId;
32358
32750
  },
32359
32751
  customParams: {
32360
32752
  filterCellType: 'objectId',
@@ -32383,13 +32775,43 @@ var TablePackages = observer(function () {
32383
32775
  field: 'isoLanguageIds',
32384
32776
  headerName: 'backoffice.idmCatalog.general.label.isoLanguageIds',
32385
32777
  cellDataType: 'enum',
32386
- editable: true,
32778
+ editable: isEditable,
32387
32779
  required: true,
32388
32780
  customParams: {
32389
32781
  enumData: getLanguageKey(t),
32390
32782
  multiple: true
32391
32783
  },
32392
32784
  defaultValue: ['DE']
32785
+ }, {
32786
+ field: 'allowedOrganizationIds',
32787
+ headerName: 'backoffice.idmEnricher.packages.label.allowedOrganizationIds',
32788
+ cellDataType: 'lookup',
32789
+ editable: isEditable,
32790
+ cellRendererSelector: function cellRendererSelector(params) {
32791
+ var _params$data3, _params$data4;
32792
+ if (((_params$data3 = params.data) === null || _params$data3 === void 0 ? void 0 : _params$data3.organizationId) === organizationId || !((_params$data4 = params.data) !== null && _params$data4 !== void 0 && _params$data4._id)) {
32793
+ return undefined;
32794
+ }
32795
+ return {
32796
+ component: function component() {
32797
+ var _params$data$organiza, _params$data5, _params$data6;
32798
+ return /*#__PURE__*/jsxs("p", {
32799
+ children: ["Freigegeben durch ", (_params$data$organiza = (_params$data5 = params.data) === null || _params$data5 === void 0 ? void 0 : _params$data5.organizationDisplayText) !== null && _params$data$organiza !== void 0 ? _params$data$organiza : (_params$data6 = params.data) === null || _params$data6 === void 0 ? void 0 : _params$data6.organizationId]
32800
+ });
32801
+ }
32802
+ };
32803
+ },
32804
+ customParams: {
32805
+ nameField: 'allowedOrganizationsDisplayTexts',
32806
+ apiInterface: {
32807
+ read: apiConfig.authService + "/clientrelationtargets/organization/".concat(organizationId, "/organizations")
32808
+ },
32809
+ lookupValue: 'displayName',
32810
+ lookupKey: '_id',
32811
+ serverType: 'nodejs',
32812
+ multiple: true
32813
+ },
32814
+ additionalFields: ['allowedOrganizationsDisplayTexts']
32393
32815
  }, {
32394
32816
  headerName: 'backoffice.idmEnricher.packages.label.isApi2',
32395
32817
  field: 'isApi',
@@ -32407,9 +32829,10 @@ var TablePackages = observer(function () {
32407
32829
  editable: false
32408
32830
  }, {
32409
32831
  headerName: 'backoffice.idmEnricher.packages.label.publishDate',
32410
- field: 'publishDate',
32832
+ field: "published.".concat(organizationId, ".publishDate"),
32411
32833
  cellDataType: 'dateString',
32412
- editable: false
32834
+ editable: false,
32835
+ isDictionary: true
32413
32836
  }, {
32414
32837
  headerName: 'backoffice.idmEnricher.general.label.createdBy',
32415
32838
  field: 'createdByDisplayText',
@@ -32420,8 +32843,9 @@ var TablePackages = observer(function () {
32420
32843
  editable: false
32421
32844
  }, {
32422
32845
  headerName: 'backoffice.idmEnricher.packages.label.publishedBy',
32423
- field: 'publishedByDisplayText',
32424
- editable: false
32846
+ field: "published.".concat(organizationId, ".publishedByDisplayText"),
32847
+ editable: false,
32848
+ isDictionary: true
32425
32849
  }, {
32426
32850
  headerName: 'backoffice.idmEnricher.general.label._id',
32427
32851
  field: '_id',
@@ -32434,9 +32858,26 @@ var TablePackages = observer(function () {
32434
32858
  lockVisible: true,
32435
32859
  suppressColumnsToolPanel: true,
32436
32860
  defaultValue: '${organizationId}'
32861
+ }, {
32862
+ field: 'organizationDisplayText',
32863
+ editable: false,
32864
+ hide: true,
32865
+ lockVisible: true,
32866
+ suppressColumnsToolPanel: true,
32867
+ defaultValue: '${organizationDisplayText}'
32868
+ }, {
32869
+ field: 'removedOrganizationIds',
32870
+ editable: false,
32871
+ hide: true,
32872
+ lockVisible: true,
32873
+ suppressColumnsToolPanel: true
32437
32874
  }]
32438
32875
  };
32439
- }, [apiInterface, apiConfig, i18n.language]);
32876
+ }, [apiInterface, apiConfig, i18n.language, organizationId]);
32877
+ var isRowEditable = useCallback(function (node) {
32878
+ var _node$data, _node$data2;
32879
+ return ((_node$data = node.data) === null || _node$data === void 0 ? void 0 : _node$data.organizationId) === organizationId || !((_node$data2 = node.data) !== null && _node$data2 !== void 0 && _node$data2._id);
32880
+ }, [organizationId]);
32440
32881
  return /*#__PURE__*/jsxs(Fragment, {
32441
32882
  children: [/*#__PURE__*/jsx(Descriptions$1, {
32442
32883
  title: t('backoffice.menu.items.label.IDMEnricherTablePackages')
@@ -32444,8 +32885,8 @@ var TablePackages = observer(function () {
32444
32885
  gridId: 'packages-grid',
32445
32886
  applicationData: applicationData,
32446
32887
  rowActions: rowActions,
32447
- preFilter: preFilter,
32448
- configuration: configuration
32888
+ configuration: configuration,
32889
+ isRowEditable: isRowEditable
32449
32890
  }), contextHolder]
32450
32891
  });
32451
32892
  });
@@ -32457,7 +32898,8 @@ var TableProperties = observer(function () {
32457
32898
  packageId = _useModule.packageId,
32458
32899
  organizationId = _useModule.organizationId,
32459
32900
  apiConfig = _useModule.apiConfig,
32460
- selectedPackage = _useModule.selectedPackage;
32901
+ selectedPackage = _useModule.selectedPackage,
32902
+ viewOnly = _useModule.viewOnly;
32461
32903
  useTools({
32462
32904
  packageId: packageId,
32463
32905
  isApi2: selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isApi
@@ -32471,10 +32913,10 @@ var TableProperties = observer(function () {
32471
32913
  var apiInterface = useMemo(function () {
32472
32914
  return {
32473
32915
  read: apiConfig.enricherService + '/packages/${packageId}/properties',
32474
- create: apiConfig.enricherService + '/packages/${packageId}/properties',
32475
- restore: apiConfig.enricherService + '/packages/${packageId}/properties/${_id}',
32476
- "delete": apiConfig.enricherService + '/packages/${packageId}/properties/${_id}',
32477
- update: apiConfig.enricherService + '/packages/${packageId}/properties/${_id}',
32916
+ create: viewOnly ? undefined : apiConfig.enricherService + '/packages/${packageId}/properties',
32917
+ restore: viewOnly ? undefined : apiConfig.enricherService + '/packages/${packageId}/properties/${_id}',
32918
+ "delete": viewOnly ? undefined : apiConfig.enricherService + '/packages/${packageId}/properties/${_id}',
32919
+ update: viewOnly ? undefined : apiConfig.enricherService + '/packages/${packageId}/properties/${_id}',
32478
32920
  bulk: apiConfig.enricherService + '/packages/${packageId}/properties/bulk'
32479
32921
  };
32480
32922
  }, []);
@@ -32492,7 +32934,7 @@ var TableProperties = observer(function () {
32492
32934
  field: 'featureNos',
32493
32935
  headerName: 'backoffice.idmEnricher.renaming.label.featureNr',
32494
32936
  cellDataType: 'lookup',
32495
- editable: true,
32937
+ editable: !viewOnly,
32496
32938
  customParams: {
32497
32939
  nameField: 'featureNosDisplayTexts',
32498
32940
  displayLabelTemplate: '${name} (${value})',
@@ -32510,7 +32952,7 @@ var TableProperties = observer(function () {
32510
32952
  field: 'optionKeys',
32511
32953
  headerName: 'backoffice.idmEnricher.renaming.label.optionKeys',
32512
32954
  cellDataType: 'lookup',
32513
- editable: true,
32955
+ editable: !viewOnly,
32514
32956
  customParams: {
32515
32957
  nameField: 'optionKeysDisplayTexts',
32516
32958
  displayLabelTemplate: '${name} (${value})',
@@ -32534,7 +32976,7 @@ var TableProperties = observer(function () {
32534
32976
  field: 'serieNos',
32535
32977
  headerName: 'backoffice.idmEnricher.renaming.label.serieNos',
32536
32978
  cellDataType: 'lookup',
32537
- editable: true,
32979
+ editable: !viewOnly,
32538
32980
  customParams: {
32539
32981
  filterCellType: 'number',
32540
32982
  nameField: 'serieNosDisplayTexts',
@@ -32557,7 +32999,7 @@ var TableProperties = observer(function () {
32557
32999
  field: 'typeNos',
32558
33000
  headerName: 'backoffice.idmEnricher.properties.label.typeNos',
32559
33001
  cellDataType: 'lookup',
32560
- editable: true,
33002
+ editable: !viewOnly,
32561
33003
  customParams: {
32562
33004
  nameField: 'typeNosDisplayTexts',
32563
33005
  displayLabelTemplate: '${name} (${value})',
@@ -32612,7 +33054,7 @@ var TableProperties = observer(function () {
32612
33054
  cellDataType: 'objectId'
32613
33055
  }]
32614
33056
  };
32615
- }, [apiInterface, t, selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isoLanguageIds]);
33057
+ }, [apiInterface, t, selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isoLanguageIds, viewOnly]);
32616
33058
  return /*#__PURE__*/jsxs(Fragment, {
32617
33059
  children: [/*#__PURE__*/jsx(Descriptions$1, {
32618
33060
  title: /*#__PURE__*/jsxs("div", {
@@ -32633,7 +33075,7 @@ var TableProperties = observer(function () {
32633
33075
  });
32634
33076
  });
32635
33077
 
32636
- var getConfig$6 = function getConfig(isoLanguageIds, t) {
33078
+ var getConfig$6 = function getConfig(isoLanguageIds, t, viewOnly) {
32637
33079
  return {
32638
33080
  colDef: [{
32639
33081
  field: 'translatedName',
@@ -32643,7 +33085,8 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32643
33085
  placeHolderField: 'origName',
32644
33086
  combinedField: 'name'
32645
33087
  },
32646
- additionalFields: ['origName', 'name']
33088
+ additionalFields: ['origName', 'name'],
33089
+ editable: !viewOnly
32647
33090
  }, {
32648
33091
  field: 'translatedComment',
32649
33092
  cellDataType: 'withPlaceholder',
@@ -32652,14 +33095,15 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32652
33095
  placeHolderField: 'origComment',
32653
33096
  combinedField: 'comment'
32654
33097
  },
32655
- additionalFields: ['origComment', 'comment']
33098
+ additionalFields: ['origComment', 'comment'],
33099
+ editable: !viewOnly
32656
33100
  }, createTranslatedColumnConfig('translatedCatalogName', 'backoffice.idmEnricher.renaming.label.catalogName', isoLanguageIds, false, 'withPlaceholder', {
32657
33101
  placeHolderField: 'origCatalogName',
32658
33102
  combinedField: 'catalogName'
32659
- }, ['origCatalogName', 'catalogName']), createTranslatedColumnConfig('translatedCatalogInfo', 'backoffice.idmEnricher.renaming.label.catalogInfo', isoLanguageIds, false, 'withPlaceholder', {
33103
+ }, ['origCatalogName', 'catalogName'], !viewOnly), createTranslatedColumnConfig('translatedCatalogInfo', 'backoffice.idmEnricher.renaming.label.catalogInfo', isoLanguageIds, false, 'withPlaceholder', {
32660
33104
  placeHolderField: 'origCatalogInfo',
32661
33105
  combinedField: 'catalogInfo'
32662
- }, ['origCatalogInfo', 'catalogInfo']), {
33106
+ }, ['origCatalogInfo', 'catalogInfo'], !viewOnly), {
32663
33107
  headerName: 'backoffice.idmEnricher.renaming.label.contactperson',
32664
33108
  field: 'translatedContactPersonNo1',
32665
33109
  cellDataType: 'withPlaceholder',
@@ -32667,7 +33111,8 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32667
33111
  placeHolderField: 'origContactPersonNo1',
32668
33112
  combinedField: 'contactPersonNo1'
32669
33113
  },
32670
- additionalFields: ['origContactPersonNo1', 'contactPersonNo1']
33114
+ additionalFields: ['origContactPersonNo1', 'contactPersonNo1'],
33115
+ editable: !viewOnly
32671
33116
  }, {
32672
33117
  headerName: 'backoffice.idmEnricher.renaming.label.contactrole',
32673
33118
  field: 'translatedContactRole1',
@@ -32676,7 +33121,8 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32676
33121
  placeHolderField: 'origContactRole1',
32677
33122
  combinedField: 'contactRole1'
32678
33123
  },
32679
- additionalFields: ['origContactRole1', 'contactRole1']
33124
+ additionalFields: ['origContactRole1', 'contactRole1'],
33125
+ editable: !viewOnly
32680
33126
  }, {
32681
33127
  headerName: 'backoffice.idmEnricher.renaming.label.translated.contactname',
32682
33128
  field: 'translatedContactName1',
@@ -32685,7 +33131,8 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32685
33131
  placeHolderField: 'origContactName1',
32686
33132
  combinedField: 'contactName1'
32687
33133
  },
32688
- additionalFields: ['origContactName1', 'contactName1']
33134
+ additionalFields: ['origContactName1', 'contactName1'],
33135
+ editable: !viewOnly
32689
33136
  }, {
32690
33137
  headerName: 'backoffice.idmEnricher.renaming.label.translated.firstname',
32691
33138
  field: 'translatedFirstName1',
@@ -32694,7 +33141,8 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32694
33141
  placeHolderField: 'origFirstName1',
32695
33142
  combinedField: 'firstName1'
32696
33143
  },
32697
- additionalFields: ['origFirstName1', 'firstName1']
33144
+ additionalFields: ['origFirstName1', 'firstName1'],
33145
+ editable: !viewOnly
32698
33146
  }, {
32699
33147
  headerName: 'backoffice.idmEnricher.renaming.label.translated.form_of_address',
32700
33148
  field: 'translatedFormOfAddress1',
@@ -32706,7 +33154,8 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32706
33154
  enumData: getFormOfAddressKey(t),
32707
33155
  displayLabelTemplate: '${name} (${value})'
32708
33156
  },
32709
- additionalFields: ['origFormOfAddress1', 'formOfAddress1']
33157
+ additionalFields: ['origFormOfAddress1', 'formOfAddress1'],
33158
+ editable: !viewOnly
32710
33159
  }, {
32711
33160
  headerName: 'backoffice.idmEnricher.renaming.label.translated.department',
32712
33161
  field: 'translatedDepartment1',
@@ -32715,7 +33164,8 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32715
33164
  placeHolderField: 'origDepartment1',
32716
33165
  combinedField: 'department1'
32717
33166
  },
32718
- additionalFields: ['origDepartment1', 'department1']
33167
+ additionalFields: ['origDepartment1', 'department1'],
33168
+ editable: !viewOnly
32719
33169
  }, {
32720
33170
  headerName: 'backoffice.idmEnricher.renaming.label.translated.telephone',
32721
33171
  field: 'translatedTelephone1',
@@ -32724,7 +33174,8 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32724
33174
  placeHolderField: 'origTelephone1',
32725
33175
  combinedField: 'telephone1'
32726
33176
  },
32727
- additionalFields: ['origTelephone1', 'telephone1']
33177
+ additionalFields: ['origTelephone1', 'telephone1'],
33178
+ editable: !viewOnly
32728
33179
  }, {
32729
33180
  headerName: 'backoffice.idmEnricher.renaming.label.translated.fax',
32730
33181
  field: 'translatedFax1',
@@ -32733,7 +33184,8 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32733
33184
  placeHolderField: 'origFax1',
32734
33185
  combinedField: 'fax1'
32735
33186
  },
32736
- additionalFields: ['origFax1', 'fax1']
33187
+ additionalFields: ['origFax1', 'fax1'],
33188
+ editable: !viewOnly
32737
33189
  }, {
32738
33190
  field: 'translatedEmail1',
32739
33191
  headerName: 'backoffice.idmEnricher.renaming.label.translated.email',
@@ -32742,7 +33194,8 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32742
33194
  placeHolderField: 'origEmail1',
32743
33195
  combinedField: 'email1'
32744
33196
  },
32745
- additionalFields: ['origEmail1', 'email1']
33197
+ additionalFields: ['origEmail1', 'email1'],
33198
+ editable: !viewOnly
32746
33199
  }, {
32747
33200
  headerName: 'backoffice.idmEnricher.renaming.label.translated.street',
32748
33201
  field: 'translatedStreet1',
@@ -32751,7 +33204,8 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32751
33204
  placeHolderField: 'origStreet1',
32752
33205
  combinedField: 'street1'
32753
33206
  },
32754
- additionalFields: ['origStreet1', 'street1']
33207
+ additionalFields: ['origStreet1', 'street1'],
33208
+ editable: !viewOnly
32755
33209
  }, {
32756
33210
  headerName: 'backoffice.idmEnricher.renaming.label.translated.zip',
32757
33211
  field: 'translatedZipCodeStreet1',
@@ -32760,7 +33214,8 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32760
33214
  placeHolderField: 'origZipCodeStreet1',
32761
33215
  combinedField: 'zipCodeStreet1'
32762
33216
  },
32763
- additionalFields: ['origZipCodeStreet1', 'zipCodeStreet1']
33217
+ additionalFields: ['origZipCodeStreet1', 'zipCodeStreet1'],
33218
+ editable: !viewOnly
32764
33219
  }, {
32765
33220
  field: 'translatedCity1',
32766
33221
  headerName: 'backoffice.idmEnricher.renaming.label.translated.city',
@@ -32769,7 +33224,8 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32769
33224
  placeHolderField: 'origCity1',
32770
33225
  combinedField: 'city1'
32771
33226
  },
32772
- additionalFields: ['origCity1', 'city1']
33227
+ additionalFields: ['origCity1', 'city1'],
33228
+ editable: !viewOnly
32773
33229
  }, {
32774
33230
  field: 'translatedIsoCountryId1',
32775
33231
  headerName: 'backoffice.idmEnricher.renaming.label.translated.country',
@@ -32780,7 +33236,8 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32780
33236
  combinedField: 'isoCountryId1',
32781
33237
  enumData: getCountryKey(t)
32782
33238
  },
32783
- additionalFields: ['origIsoCountryId1', 'isoCountryId1']
33239
+ additionalFields: ['origIsoCountryId1', 'isoCountryId1'],
33240
+ editable: !viewOnly
32784
33241
  }, {
32785
33242
  field: 'translatedContactPersonNo2',
32786
33243
  headerName: 'backoffice.idmEnricher.renaming.label.contactperson2',
@@ -32789,7 +33246,8 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32789
33246
  placeHolderField: 'origContactPersonNo2',
32790
33247
  combinedField: 'contactPersonNo2'
32791
33248
  },
32792
- additionalFields: ['origContactPersonNo2', 'contactPersonNo2']
33249
+ additionalFields: ['origContactPersonNo2', 'contactPersonNo2'],
33250
+ editable: !viewOnly
32793
33251
  }, {
32794
33252
  headerName: 'backoffice.idmEnricher.renaming.label.contactrole2',
32795
33253
  field: 'translatedContactRole2',
@@ -32798,7 +33256,8 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32798
33256
  placeHolderField: 'origContactRole2',
32799
33257
  combinedField: 'contactRole2'
32800
33258
  },
32801
- additionalFields: ['origContactRole2', 'contactRole2']
33259
+ additionalFields: ['origContactRole2', 'contactRole2'],
33260
+ editable: !viewOnly
32802
33261
  }, {
32803
33262
  headerName: 'backoffice.idmEnricher.renaming.label.translated.contactname2',
32804
33263
  field: 'translatedContactName2',
@@ -32807,7 +33266,8 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32807
33266
  placeHolderField: 'origContactName2',
32808
33267
  combinedField: 'contactName2'
32809
33268
  },
32810
- additionalFields: ['origContactName2', 'contactName2']
33269
+ additionalFields: ['origContactName2', 'contactName2'],
33270
+ editable: !viewOnly
32811
33271
  }, {
32812
33272
  headerName: 'backoffice.idmEnricher.renaming.label.translated.firstname2',
32813
33273
  field: 'translatedFirstName2',
@@ -32816,7 +33276,8 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32816
33276
  placeHolderField: 'origFirstName2',
32817
33277
  combinedField: 'firstName2'
32818
33278
  },
32819
- additionalFields: ['origFirstName2', 'firstName2']
33279
+ additionalFields: ['origFirstName2', 'firstName2'],
33280
+ editable: !viewOnly
32820
33281
  }, {
32821
33282
  headerName: 'backoffice.idmEnricher.renaming.label.translated.form_of_address2',
32822
33283
  field: 'translatedFormOfAddress2',
@@ -32828,7 +33289,8 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32828
33289
  enumData: getFormOfAddressKey(t),
32829
33290
  displayLabelTemplate: '${name} (${value})'
32830
33291
  },
32831
- additionalFields: ['origFormOfAddress2', 'formOfAddress2']
33292
+ additionalFields: ['origFormOfAddress2', 'formOfAddress2'],
33293
+ editable: !viewOnly
32832
33294
  }, {
32833
33295
  headerName: 'backoffice.idmEnricher.renaming.label.translated.department2',
32834
33296
  field: 'translatedDepartment2',
@@ -32837,7 +33299,8 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32837
33299
  placeHolderField: 'origDepartment2',
32838
33300
  combinedField: 'department2'
32839
33301
  },
32840
- additionalFields: ['origDepartment2', 'department2']
33302
+ additionalFields: ['origDepartment2', 'department2'],
33303
+ editable: !viewOnly
32841
33304
  }, {
32842
33305
  headerName: 'backoffice.idmEnricher.renaming.label.translated.telephone2',
32843
33306
  field: 'translatedTelephone2',
@@ -32846,7 +33309,8 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32846
33309
  placeHolderField: 'origTelephone2',
32847
33310
  combinedField: 'telephone2'
32848
33311
  },
32849
- additionalFields: ['origTelephone2', 'telephone2']
33312
+ additionalFields: ['origTelephone2', 'telephone2'],
33313
+ editable: !viewOnly
32850
33314
  }, {
32851
33315
  headerName: 'backoffice.idmEnricher.renaming.label.translated.fax2',
32852
33316
  field: 'translatedFax2',
@@ -32855,7 +33319,8 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32855
33319
  placeHolderField: 'origFax2',
32856
33320
  combinedField: 'fax2'
32857
33321
  },
32858
- additionalFields: ['origFax2', 'fax2']
33322
+ additionalFields: ['origFax2', 'fax2'],
33323
+ editable: !viewOnly
32859
33324
  }, {
32860
33325
  headerName: 'backoffice.idmEnricher.renaming.label.translated.email2',
32861
33326
  field: 'translatedEmail2',
@@ -32864,7 +33329,8 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32864
33329
  placeHolderField: 'origEmail2',
32865
33330
  combinedField: 'email2'
32866
33331
  },
32867
- additionalFields: ['origEmail2', 'email2']
33332
+ additionalFields: ['origEmail2', 'email2'],
33333
+ editable: !viewOnly
32868
33334
  }, {
32869
33335
  headerName: 'backoffice.idmEnricher.renaming.label.translated.street2',
32870
33336
  field: 'translatedStreet2',
@@ -32873,7 +33339,8 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32873
33339
  placeHolderField: 'origStreet2',
32874
33340
  combinedField: 'street2'
32875
33341
  },
32876
- additionalFields: ['origStreet2', 'street2']
33342
+ additionalFields: ['origStreet2', 'street2'],
33343
+ editable: !viewOnly
32877
33344
  }, {
32878
33345
  headerName: 'backoffice.idmEnricher.renaming.label.translated.zip2',
32879
33346
  field: 'translatedZipCodeStreet2',
@@ -32882,7 +33349,8 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32882
33349
  placeHolderField: 'origZipCodeStreet2',
32883
33350
  combinedField: 'zipCodeStreet2'
32884
33351
  },
32885
- additionalFields: ['origZipCodeStreet2', 'zipCodeStreet2']
33352
+ additionalFields: ['origZipCodeStreet2', 'zipCodeStreet2'],
33353
+ editable: !viewOnly
32886
33354
  }, {
32887
33355
  headerName: 'backoffice.idmEnricher.renaming.label.translated.city2',
32888
33356
  field: 'translatedCity2',
@@ -32891,11 +33359,11 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32891
33359
  placeHolderField: 'origCity2',
32892
33360
  combinedField: 'city2'
32893
33361
  },
32894
- additionalFields: ['origCity2', 'city2']
33362
+ additionalFields: ['origCity2', 'city2'],
33363
+ editable: !viewOnly
32895
33364
  }, {
32896
33365
  headerName: 'backoffice.idmEnricher.renaming.label.translated.country2',
32897
33366
  field: 'translatedIsoCountryId2',
32898
- editable: true,
32899
33367
  cellDataType: 'withPlaceholder',
32900
33368
  type: ['withPlaceholderEnum'],
32901
33369
  customParams: {
@@ -32903,7 +33371,8 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32903
33371
  combinedField: 'isoCountryId2',
32904
33372
  enumData: getCountryKey(t)
32905
33373
  },
32906
- additionalFields: ['origIsoCountryId2', 'isoCountryId2']
33374
+ additionalFields: ['origIsoCountryId2', 'isoCountryId2'],
33375
+ editable: !viewOnly
32907
33376
  }, {
32908
33377
  headerName: 'backoffice.idmEnricher.renaming.label.translated.manufacturename',
32909
33378
  field: 'translatedManufactureName1',
@@ -32912,7 +33381,8 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32912
33381
  placeHolderField: 'origManufactureName1',
32913
33382
  combinedField: 'manufactureName1'
32914
33383
  },
32915
- additionalFields: ['origManufactureName1', 'manufactureName1']
33384
+ additionalFields: ['origManufactureName1', 'manufactureName1'],
33385
+ editable: !viewOnly
32916
33386
  }, {
32917
33387
  headerName: 'backoffice.idmEnricher.renaming.label.translated.manufacturename2',
32918
33388
  field: 'translatedManufactureName2',
@@ -32921,7 +33391,8 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32921
33391
  placeHolderField: 'origManufactureName2',
32922
33392
  combinedField: 'manufactureName2'
32923
33393
  },
32924
- additionalFields: ['origManufactureName2', 'manufactureName2']
33394
+ additionalFields: ['origManufactureName2', 'manufactureName2'],
33395
+ editable: !viewOnly
32925
33396
  }, {
32926
33397
  headerName: 'backoffice.idmEnricher.renaming.label.translated.email',
32927
33398
  field: 'translatedEmail',
@@ -32930,7 +33401,8 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32930
33401
  placeHolderField: 'origEmail',
32931
33402
  combinedField: 'email'
32932
33403
  },
32933
- additionalFields: ['origEmail', 'email']
33404
+ additionalFields: ['origEmail', 'email'],
33405
+ editable: !viewOnly
32934
33406
  }, {
32935
33407
  headerName: 'backoffice.idmEnricher.renaming.label.translated.internetaddress',
32936
33408
  field: 'translatedInternetAddress',
@@ -32939,7 +33411,8 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32939
33411
  placeHolderField: 'origInternetAddress',
32940
33412
  combinedField: 'internetAddress'
32941
33413
  },
32942
- additionalFields: ['origInternetAddress', 'internetAddress']
33414
+ additionalFields: ['origInternetAddress', 'internetAddress'],
33415
+ editable: !viewOnly
32943
33416
  }, {
32944
33417
  headerName: 'backoffice.idmEnricher.renaming.label.translated.street',
32945
33418
  field: 'translatedStreet',
@@ -32948,7 +33421,8 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32948
33421
  placeHolderField: 'origStreet',
32949
33422
  combinedField: 'street'
32950
33423
  },
32951
- additionalFields: ['origStreet', 'street']
33424
+ additionalFields: ['origStreet', 'street'],
33425
+ editable: !viewOnly
32952
33426
  }, {
32953
33427
  headerName: 'backoffice.idmEnricher.renaming.label.translated.zip',
32954
33428
  field: 'translatedZipCodeStreet',
@@ -32957,7 +33431,8 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32957
33431
  placeHolderField: 'origZipCodeStreet',
32958
33432
  combinedField: 'zipCodeStreet'
32959
33433
  },
32960
- additionalFields: ['origZipCodeStreet', 'zipCodeStreet']
33434
+ additionalFields: ['origZipCodeStreet', 'zipCodeStreet'],
33435
+ editable: !viewOnly
32961
33436
  }, {
32962
33437
  headerName: 'backoffice.idmEnricher.renaming.label.translated.city',
32963
33438
  field: 'translatedCity',
@@ -32966,11 +33441,11 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32966
33441
  placeHolderField: 'origCity',
32967
33442
  combinedField: 'city'
32968
33443
  },
32969
- additionalFields: ['origCity', 'city']
33444
+ additionalFields: ['origCity', 'city'],
33445
+ editable: !viewOnly
32970
33446
  }, {
32971
33447
  headerName: 'backoffice.idmEnricher.renaming.label.translated.country',
32972
33448
  field: 'translatedContactSupplierIsoCountryId',
32973
- editable: true,
32974
33449
  cellDataType: 'withPlaceholder',
32975
33450
  type: ['withPlaceholderEnum'],
32976
33451
  customParams: {
@@ -32978,7 +33453,8 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32978
33453
  combinedField: 'contactSupplierIsoCountryId',
32979
33454
  enumData: getCountryKey(t)
32980
33455
  },
32981
- additionalFields: ['origContactSupplierIsoCountryId', 'contactSupplierIsoCountryId']
33456
+ additionalFields: ['origContactSupplierIsoCountryId', 'contactSupplierIsoCountryId'],
33457
+ editable: !viewOnly
32982
33458
  }, {
32983
33459
  headerName: 'backoffice.idmEnricher.renaming.label.translated.zippostbox',
32984
33460
  field: 'translatedZipCodePostBox',
@@ -32987,7 +33463,8 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32987
33463
  placeHolderField: 'origZipCodePostBox',
32988
33464
  combinedField: 'zipCodePostBox'
32989
33465
  },
32990
- additionalFields: ['origZipCodePostBox', 'zipCodePostBox']
33466
+ additionalFields: ['origZipCodePostBox', 'zipCodePostBox'],
33467
+ editable: !viewOnly
32991
33468
  }, {
32992
33469
  headerName: 'backoffice.idmEnricher.renaming.label.translated.postbox',
32993
33470
  field: 'translatedPostBox',
@@ -32996,7 +33473,8 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
32996
33473
  placeHolderField: 'origPostBox',
32997
33474
  combinedField: 'postBox'
32998
33475
  },
32999
- additionalFields: ['origPostBox', 'postBox']
33476
+ additionalFields: ['origPostBox', 'postBox'],
33477
+ editable: !viewOnly
33000
33478
  }, {
33001
33479
  headerName: 'backoffice.idmEnricher.renaming.label.translated.telephoneswitchboard',
33002
33480
  field: 'translatedTelephoneSwitchboard',
@@ -33005,7 +33483,8 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
33005
33483
  placeHolderField: 'origTelephoneSwitchboard',
33006
33484
  combinedField: 'telephoneSwitchboard'
33007
33485
  },
33008
- additionalFields: ['origTelephoneSwitchboard', 'telephoneSwitchboard']
33486
+ additionalFields: ['origTelephoneSwitchboard', 'telephoneSwitchboard'],
33487
+ editable: !viewOnly
33009
33488
  }, {
33010
33489
  headerName: 'backoffice.idmEnricher.renaming.label.translated.faxswitchboard',
33011
33490
  field: 'translatedFaxSwitchboard',
@@ -33014,12 +33493,13 @@ var getConfig$6 = function getConfig(isoLanguageIds, t) {
33014
33493
  placeHolderField: 'origFaxSwitchboard',
33015
33494
  combinedField: 'faxSwitchboard'
33016
33495
  },
33017
- additionalFields: ['origFaxSwitchboard', 'faxSwitchboard']
33496
+ additionalFields: ['origFaxSwitchboard', 'faxSwitchboard'],
33497
+ editable: !viewOnly
33018
33498
  }]
33019
33499
  };
33020
33500
  };
33021
33501
 
33022
- var getConfig$5 = function getConfig(isoLanguageIds) {
33502
+ var getConfig$5 = function getConfig(isoLanguageIds, t, viewOnly) {
33023
33503
  return {
33024
33504
  colDef: [{
33025
33505
  headerName: 'backoffice.idmEnricher.renaming.label.detailinfo_nr',
@@ -33028,17 +33508,17 @@ var getConfig$5 = function getConfig(isoLanguageIds) {
33028
33508
  }, createTranslatedColumnConfig('translatedExternalName', 'backoffice.idmEnricher.renaming.label.externalName', isoLanguageIds, false, 'withPlaceholder', {
33029
33509
  placeHolderField: 'origExternalName',
33030
33510
  combinedField: 'externalName'
33031
- }, ['origExternalName', 'externalName']), createTranslatedColumnConfig('translatedInternalName', 'backoffice.idmEnricher.renaming.label.internalName', isoLanguageIds, false, 'withPlaceholder', {
33511
+ }, ['origExternalName', 'externalName'], !viewOnly), createTranslatedColumnConfig('translatedInternalName', 'backoffice.idmEnricher.renaming.label.internalName', isoLanguageIds, false, 'withPlaceholder', {
33032
33512
  placeHolderField: 'origInternalName',
33033
33513
  combinedField: 'internalName'
33034
- }, ['origInternalName', 'internalName']), createTranslatedColumnConfig('translatedToolTip', 'backoffice.idmEnricher.renaming.label.tooltip', isoLanguageIds, false, 'withPlaceholder', {
33514
+ }, ['origInternalName', 'internalName'], !viewOnly), createTranslatedColumnConfig('translatedToolTip', 'backoffice.idmEnricher.renaming.label.tooltip', isoLanguageIds, false, 'withPlaceholder', {
33035
33515
  placeHolderField: 'origToolTip',
33036
33516
  combinedField: 'toolTip'
33037
- }, ['origToolTip', 'toolTip'])]
33517
+ }, ['origToolTip', 'toolTip'], !viewOnly)]
33038
33518
  };
33039
33519
  };
33040
33520
 
33041
- var getConfig$4 = function getConfig(isoLanguageIds) {
33521
+ var getConfig$4 = function getConfig(isoLanguageIds, t, viewOnly) {
33042
33522
  return {
33043
33523
  colDef: [{
33044
33524
  headerName: 'backoffice.idmEnricher.renaming.label.featureNr',
@@ -33049,11 +33529,11 @@ var getConfig$4 = function getConfig(isoLanguageIds) {
33049
33529
  }, createTranslatedColumnConfig('translatedFeatureText', 'backoffice.idmEnricher.renaming.label.featuretext', isoLanguageIds, false, 'withPlaceholder', {
33050
33530
  placeHolderField: 'origFeatureText',
33051
33531
  combinedField: 'featureText'
33052
- }, ['origFeatureText', 'featureText'])]
33532
+ }, ['origFeatureText', 'featureText'], !viewOnly)]
33053
33533
  };
33054
33534
  };
33055
33535
 
33056
- var getConfig$3 = function getConfig(isoLanguageIds) {
33536
+ var getConfig$3 = function getConfig(isoLanguageIds, t, viewOnly) {
33057
33537
  return {
33058
33538
  colDef: [{
33059
33539
  headerName: 'backoffice.idmEnricher.renaming.label.typeNo',
@@ -33064,13 +33544,13 @@ var getConfig$3 = function getConfig(isoLanguageIds) {
33064
33544
  }, createTranslatedColumnConfig('translatedShortText', 'backoffice.idmEnricher.renaming.label.shortText', isoLanguageIds, false, 'withPlaceholder', {
33065
33545
  placeHolderField: 'origShortText',
33066
33546
  combinedField: 'shortText'
33067
- }, ['origShortText', 'shortText']), createTranslatedColumnConfig('translatedFullText', 'backoffice.idmEnricher.renaming.label.fullText', isoLanguageIds, false, 'withPlaceholder', {
33547
+ }, ['origShortText', 'shortText'], !viewOnly), createTranslatedColumnConfig('translatedFullText', 'backoffice.idmEnricher.renaming.label.fullText', isoLanguageIds, false, 'withPlaceholder', {
33068
33548
  placeHolderField: 'origFullText',
33069
33549
  combinedField: 'fullText'
33070
- }, ['origFullText', 'fullText']), createTranslatedColumnConfig('translatedPlanningAdvice', 'backoffice.idmEnricher.renaming.label.planningAdvice', isoLanguageIds, false, 'withPlaceholder', {
33550
+ }, ['origFullText', 'fullText'], !viewOnly), createTranslatedColumnConfig('translatedPlanningAdvice', 'backoffice.idmEnricher.renaming.label.planningAdvice', isoLanguageIds, false, 'withPlaceholder', {
33071
33551
  placeHolderField: 'origPlanningAdvice',
33072
33552
  combinedField: 'planningAdvice'
33073
- }, ['origPlanningAdvice', 'planningAdvice']), {
33553
+ }, ['origPlanningAdvice', 'planningAdvice'], !viewOnly), {
33074
33554
  headerName: 'backoffice.idmEnricher.renaming.label.translatedSalesNumber',
33075
33555
  field: 'translatedSalesNumber',
33076
33556
  cellDataType: 'withPlaceholder',
@@ -33078,7 +33558,8 @@ var getConfig$3 = function getConfig(isoLanguageIds) {
33078
33558
  placeHolderField: 'origSalesNumber',
33079
33559
  combinedField: 'salesNumber'
33080
33560
  },
33081
- additionalFields: ['origSalesNumber', 'salesNumber']
33561
+ additionalFields: ['origSalesNumber', 'salesNumber'],
33562
+ editable: !viewOnly
33082
33563
  }, {
33083
33564
  field: 'sequenceNo',
33084
33565
  headerName: 'backoffice.idmEnricher.renaming.label.sequenceNo',
@@ -33092,7 +33573,8 @@ var getConfig$3 = function getConfig(isoLanguageIds) {
33092
33573
  placeHolderField: 'origEdpNumber',
33093
33574
  combinedField: 'edpNumber'
33094
33575
  },
33095
- additionalFields: ['origEdpNumber', 'edpNumber']
33576
+ additionalFields: ['origEdpNumber', 'edpNumber'],
33577
+ editable: !viewOnly
33096
33578
  }, {
33097
33579
  headerName: 'backoffice.idmEnricher.renaming.label.eannummer',
33098
33580
  field: 'translatedEanNumber',
@@ -33101,12 +33583,13 @@ var getConfig$3 = function getConfig(isoLanguageIds) {
33101
33583
  placeHolderField: 'origEanNumber',
33102
33584
  combinedField: 'eanNumber'
33103
33585
  },
33104
- additionalFields: ['origEanNumber', 'eanNumber']
33586
+ additionalFields: ['origEanNumber', 'eanNumber'],
33587
+ editable: !viewOnly
33105
33588
  }]
33106
33589
  };
33107
33590
  };
33108
33591
 
33109
- var getConfig$2 = function getConfig(isoLanguageIds) {
33592
+ var getConfig$2 = function getConfig(isoLanguageIds, t, viewOnly) {
33110
33593
  return {
33111
33594
  colDef: [{
33112
33595
  headerName: 'backoffice.idmEnricher.renaming.label.optionKey',
@@ -33117,10 +33600,10 @@ var getConfig$2 = function getConfig(isoLanguageIds) {
33117
33600
  }, createTranslatedColumnConfig('translatedOptionText', 'backoffice.idmEnricher.renaming.label.optionText', isoLanguageIds, false, 'withPlaceholder', {
33118
33601
  placeHolderField: 'origOptionText',
33119
33602
  combinedField: 'optionText'
33120
- }, ['origOptionText', 'optionText']), createTranslatedColumnConfig('translatedOptionCommentText', 'backoffice.idmEnricher.renaming.label.optionCommentText', isoLanguageIds, false, 'withPlaceholder', {
33603
+ }, ['origOptionText', 'optionText'], !viewOnly), createTranslatedColumnConfig('translatedOptionCommentText', 'backoffice.idmEnricher.renaming.label.optionCommentText', isoLanguageIds, false, 'withPlaceholder', {
33121
33604
  placeHolderField: 'origOptionCommentText',
33122
33605
  combinedField: 'optionCommentText'
33123
- }, ['origOptionCommentText', 'optionCommentText']), {
33606
+ }, ['origOptionCommentText', 'optionCommentText'], !viewOnly), {
33124
33607
  field: 'featureNos',
33125
33608
  headerName: 'backoffice.idmCatalogEditor.catalogoptions.label.featureIds',
33126
33609
  cellDataType: 'lookup',
@@ -33145,7 +33628,7 @@ var getConfig$2 = function getConfig(isoLanguageIds) {
33145
33628
  };
33146
33629
  };
33147
33630
 
33148
- var getConfig$1 = function getConfig(isoLanguageIds) {
33631
+ var getConfig$1 = function getConfig(isoLanguageIds, t, viewOnly) {
33149
33632
  return {
33150
33633
  colDef: [{
33151
33634
  headerName: 'backoffice.idmEnricher.renaming.label.serieNo',
@@ -33156,10 +33639,10 @@ var getConfig$1 = function getConfig(isoLanguageIds) {
33156
33639
  }, createTranslatedColumnConfig('translatedSeriesName', 'backoffice.idmEnricher.renaming.label.serieName', isoLanguageIds, false, 'withPlaceholder', {
33157
33640
  placeHolderField: 'origSeriesName',
33158
33641
  combinedField: 'seriesName'
33159
- }, ['origSeriesName', 'seriesName']), createTranslatedColumnConfig('translatedSeriesFullText', 'backoffice.idmEnricher.renaming.label.serieFullText', isoLanguageIds, false, 'withPlaceholder', {
33642
+ }, ['origSeriesName', 'seriesName'], !viewOnly), createTranslatedColumnConfig('translatedSeriesFullText', 'backoffice.idmEnricher.renaming.label.serieFullText', isoLanguageIds, false, 'withPlaceholder', {
33160
33643
  placeHolderField: 'origSeriesFullText',
33161
33644
  combinedField: 'seriesFullText'
33162
- }, ['origSeriesFullText', 'seriesFullText'])]
33645
+ }, ['origSeriesFullText', 'seriesFullText'], !viewOnly)]
33163
33646
  };
33164
33647
  };
33165
33648
 
@@ -33247,11 +33730,20 @@ var RenamingTable = observer(function (_ref) {
33247
33730
  packageId = _useModule.packageId,
33248
33731
  apiConfig = _useModule.apiConfig,
33249
33732
  selectedPackage = _useModule.selectedPackage,
33250
- selectedSerie = _useModule.selectedSerie;
33251
- useTools({
33252
- packageId: packageId,
33253
- isApi2: selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isApi
33254
- });
33733
+ selectedItem = _useModule.selectedItem,
33734
+ setSelectedItem = _useModule.setSelectedItem,
33735
+ selectedSerie = _useModule.selectedSerie,
33736
+ setSelectedSerie = _useModule.setSelectedSerie,
33737
+ viewOnly = _useModule.viewOnly;
33738
+ var _useTools = useTools({
33739
+ packageId: packageId,
33740
+ isApi2: selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isApi,
33741
+ setArticle: setSelectedItem,
33742
+ setSerie: setSelectedSerie,
33743
+ serie: selectedSerie,
33744
+ item: selectedItem
33745
+ }),
33746
+ updateConfigurator = _useTools.updateConfigurator;
33255
33747
  var baseConfiguration = useMemo(function () {
33256
33748
  return getConfig((selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isoLanguageIds) || ['DE'], t);
33257
33749
  }, [selectedPackage, i18n.language]);
@@ -33260,6 +33752,31 @@ var RenamingTable = observer(function (_ref) {
33260
33752
  packageId: packageId
33261
33753
  };
33262
33754
  }, [packageId]);
33755
+ var hooks = useMemo(function () {
33756
+ return {
33757
+ onCellSelectionChanged: function onCellSelectionChanged(event) {
33758
+ var _event$selection$, _event$selection$2, _event$selection$3, _event$selection$4;
33759
+ switch (type) {
33760
+ case 'features':
33761
+ updateConfigurator({
33762
+ opt: (_event$selection$ = event.selection[0]) === null || _event$selection$ === void 0 || (_event$selection$ = _event$selection$.node) === null || _event$selection$ === void 0 || (_event$selection$ = _event$selection$.data) === null || _event$selection$ === void 0 ? void 0 : _event$selection$.featureNo
33763
+ });
33764
+ break;
33765
+ case 'options':
33766
+ updateConfigurator({
33767
+ opv: (_event$selection$2 = event.selection[0]) === null || _event$selection$2 === void 0 || (_event$selection$2 = _event$selection$2.node) === null || _event$selection$2 === void 0 || (_event$selection$2 = _event$selection$2.data) === null || _event$selection$2 === void 0 ? void 0 : _event$selection$2.optionKey
33768
+ });
33769
+ break;
33770
+ case 'items':
33771
+ setSelectedItem((_event$selection$3 = event.selection[0]) === null || _event$selection$3 === void 0 || (_event$selection$3 = _event$selection$3.node) === null || _event$selection$3 === void 0 ? void 0 : _event$selection$3.data);
33772
+ break;
33773
+ case 'series':
33774
+ setSelectedSerie((_event$selection$4 = event.selection[0]) === null || _event$selection$4 === void 0 || (_event$selection$4 = _event$selection$4.node) === null || _event$selection$4 === void 0 ? void 0 : _event$selection$4.data);
33775
+ break;
33776
+ }
33777
+ }
33778
+ };
33779
+ }, [updateConfigurator, type]);
33263
33780
  var prevPreFilter = useRef();
33264
33781
  var preFilter = useMemo(function () {
33265
33782
  if (type === 'items' && selectedSerie) {
@@ -33280,7 +33797,7 @@ var RenamingTable = observer(function (_ref) {
33280
33797
  var apiInterface = useMemo(function () {
33281
33798
  return {
33282
33799
  read: apiConfig.enricherService + '/packages/${packageId}/renamings/' + type,
33283
- update: apiConfig.enricherService + '/packages/${packageId}/renamings/' + type + '/${_id}',
33800
+ update: viewOnly ? undefined : apiConfig.enricherService + '/packages/${packageId}/renamings/' + type + '/${_id}',
33284
33801
  bulk: apiConfig.enricherService + '/packages/${packageId}/renamings/' + type + '/bulk'
33285
33802
  };
33286
33803
  }, [type]);
@@ -33306,7 +33823,7 @@ var RenamingTable = observer(function (_ref) {
33306
33823
  cellDataType: 'objectId'
33307
33824
  }])
33308
33825
  };
33309
- }, [apiInterface, baseConfiguration.colDef]);
33826
+ }, [apiInterface, baseConfiguration.colDef, viewOnly]);
33310
33827
  var showTable = useMemo(function () {
33311
33828
  return selectedPackage && (!['items'].includes(type) || type === 'items' && preFilter);
33312
33829
  }, [type, preFilter, selectedPackage]);
@@ -33329,7 +33846,8 @@ var RenamingTable = observer(function (_ref) {
33329
33846
  gridId: 'renaming-grid_' + type,
33330
33847
  applicationData: applicationData,
33331
33848
  preFilter: preFilter,
33332
- configuration: configuration
33849
+ configuration: configuration,
33850
+ hooks: hooks
33333
33851
  })]
33334
33852
  });
33335
33853
  });
@@ -33811,11 +34329,45 @@ var ExclusivityTable = observer(function (_ref) {
33811
34329
  apiConfig = _useModule.apiConfig,
33812
34330
  organizationId = _useModule.organizationId,
33813
34331
  selectedPackage = _useModule.selectedPackage,
33814
- selectedSerie = _useModule.selectedSerie;
33815
- useTools({
33816
- packageId: packageId,
33817
- isApi2: selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isApi
33818
- });
34332
+ selectedSerie = _useModule.selectedSerie,
34333
+ setSelectedSerie = _useModule.setSelectedSerie,
34334
+ setSelectedItem = _useModule.setSelectedItem,
34335
+ selectedItem = _useModule.selectedItem,
34336
+ viewOnly = _useModule.viewOnly;
34337
+ var _useTools = useTools({
34338
+ packageId: packageId,
34339
+ isApi2: selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isApi,
34340
+ setArticle: setSelectedItem,
34341
+ setSerie: setSelectedSerie,
34342
+ serie: selectedSerie,
34343
+ item: selectedItem
34344
+ }),
34345
+ updateConfigurator = _useTools.updateConfigurator;
34346
+ var hooks = useMemo(function () {
34347
+ return {
34348
+ onCellSelectionChanged: function onCellSelectionChanged(event) {
34349
+ var _event$selection$, _event$selection$2, _event$selection$3, _event$selection$4;
34350
+ switch (type) {
34351
+ case 'efeatures':
34352
+ updateConfigurator({
34353
+ opt: (_event$selection$ = event.selection[0]) === null || _event$selection$ === void 0 || (_event$selection$ = _event$selection$.node) === null || _event$selection$ === void 0 || (_event$selection$ = _event$selection$.data) === null || _event$selection$ === void 0 ? void 0 : _event$selection$.featureNo
34354
+ });
34355
+ break;
34356
+ case 'eoptions':
34357
+ updateConfigurator({
34358
+ opv: (_event$selection$2 = event.selection[0]) === null || _event$selection$2 === void 0 || (_event$selection$2 = _event$selection$2.node) === null || _event$selection$2 === void 0 || (_event$selection$2 = _event$selection$2.data) === null || _event$selection$2 === void 0 ? void 0 : _event$selection$2.optionKey
34359
+ });
34360
+ break;
34361
+ case 'eitems':
34362
+ setSelectedItem((_event$selection$3 = event.selection[0]) === null || _event$selection$3 === void 0 || (_event$selection$3 = _event$selection$3.node) === null || _event$selection$3 === void 0 ? void 0 : _event$selection$3.data);
34363
+ break;
34364
+ case 'eseries':
34365
+ setSelectedSerie((_event$selection$4 = event.selection[0]) === null || _event$selection$4 === void 0 || (_event$selection$4 = _event$selection$4.node) === null || _event$selection$4 === void 0 ? void 0 : _event$selection$4.data);
34366
+ break;
34367
+ }
34368
+ }
34369
+ };
34370
+ }, [updateConfigurator, type]);
33819
34371
  var apiInterface = useMemo(function () {
33820
34372
  var patchId = '${_id}';
33821
34373
  if (type === 'eitems') patchId = '${typeNo}';
@@ -33829,7 +34381,7 @@ var ExclusivityTable = observer(function (_ref) {
33829
34381
  var listType = type === 'eitems' ? 'items' : 'options';
33830
34382
  return {
33831
34383
  read: !['eitems'].includes(type) ? apiConfig.enricherService + '/packages/${packageId}/exclusivities/' + subType : apiConfig.enricherService + '/packages/${packageId}/exclusivities/' + subType + '/${subTypeId}/' + listType,
33832
- update: !['eitems', 'eoptions'].includes(type) ? apiConfig.enricherService + '/packages/${packageId}/exclusivities/' + subType + '/' + patchId : type === 'eoptions' ? apiConfig.enricherService + '/packages/${packageId}/exclusivities/' + subType + '/' + patchId + '?featureNos=' + patchId2 : apiConfig.enricherService + '/packages/${packageId}/exclusivities/' + subType + '/${subTypeId}/' + listType + '/' + patchId
34384
+ update: viewOnly ? undefined : !['eitems', 'eoptions'].includes(type) ? apiConfig.enricherService + '/packages/${packageId}/exclusivities/' + subType + '/' + patchId : type === 'eoptions' ? apiConfig.enricherService + '/packages/${packageId}/exclusivities/' + subType + '/' + patchId + '?featureNos=' + patchId2 : apiConfig.enricherService + '/packages/${packageId}/exclusivities/' + subType + '/${subTypeId}/' + listType + '/' + patchId
33833
34385
  };
33834
34386
  }, [type]);
33835
34387
  var oldDataRef = useRef();
@@ -33858,7 +34410,7 @@ var ExclusivityTable = observer(function (_ref) {
33858
34410
  floatingFilter: true,
33859
34411
  colDef: [{
33860
34412
  field: 'active',
33861
- editable: true,
34413
+ editable: !viewOnly,
33862
34414
  cellDataType: 'boolean',
33863
34415
  pinned: 'left',
33864
34416
  lockPinned: true
@@ -33874,11 +34426,11 @@ var ExclusivityTable = observer(function (_ref) {
33874
34426
  }, {
33875
34427
  headerName: 'backoffice.idmEnricher.general.label._id',
33876
34428
  field: '_id',
33877
- editable: true,
34429
+ editable: false,
33878
34430
  cellDataType: 'objectId'
33879
34431
  }])
33880
34432
  };
33881
- }, [apiInterface, selectedSerie, config.colDef]);
34433
+ }, [apiInterface, selectedSerie, config.colDef, viewOnly]);
33882
34434
  return /*#__PURE__*/jsxs(Fragment, {
33883
34435
  children: [/*#__PURE__*/jsx(Descriptions$1, {
33884
34436
  title: /*#__PURE__*/jsxs("div", {
@@ -33897,7 +34449,8 @@ var ExclusivityTable = observer(function (_ref) {
33897
34449
  }), showTable && /*#__PURE__*/jsx(Spreadsheet, {
33898
34450
  gridId: 'crud-grid_exclusivity_' + type,
33899
34451
  applicationData: applicationData,
33900
- configuration: configuration
34452
+ configuration: configuration,
34453
+ hooks: hooks
33901
34454
  })]
33902
34455
  });
33903
34456
  });
@@ -33909,7 +34462,8 @@ var TableTabGroups = observer(function () {
33909
34462
  packageId = _useModule.packageId,
33910
34463
  organizationId = _useModule.organizationId,
33911
34464
  apiConfig = _useModule.apiConfig,
33912
- selectedPackage = _useModule.selectedPackage;
34465
+ selectedPackage = _useModule.selectedPackage,
34466
+ viewOnly = _useModule.viewOnly;
33913
34467
  useTools({
33914
34468
  packageId: packageId,
33915
34469
  isApi2: selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isApi
@@ -33924,10 +34478,10 @@ var TableTabGroups = observer(function () {
33924
34478
  return {
33925
34479
  //TODO: Es gibt globale Tabgroups, die vordefiniert sind und pro Enricher Paket nochmals angepasst werden können -endpoint anpassen?
33926
34480
  read: apiConfig.enricherService + '/packages/${packageId}/tabgroups',
33927
- create: apiConfig.enricherService + '/packages/${packageId}/tabgroups',
33928
- restore: apiConfig.enricherService + '/packages/${packageId}/tabgroups/${_id}',
33929
- "delete": apiConfig.enricherService + '/packages/${packageId}/tabgroups/${_id}',
33930
- update: apiConfig.enricherService + '/packages/${packageId}/tabgroups/${_id}',
34481
+ create: viewOnly ? undefined : apiConfig.enricherService + '/packages/${packageId}/tabgroups',
34482
+ restore: viewOnly ? undefined : apiConfig.enricherService + '/packages/${packageId}/tabgroups/${_id}',
34483
+ "delete": viewOnly ? undefined : apiConfig.enricherService + '/packages/${packageId}/tabgroups/${_id}',
34484
+ update: viewOnly ? undefined : apiConfig.enricherService + '/packages/${packageId}/tabgroups/${_id}',
33931
34485
  bulk: apiConfig.enricherService + '/packages/${packageId}/tabgroups/bulk'
33932
34486
  };
33933
34487
  }, []);
@@ -33941,7 +34495,7 @@ var TableTabGroups = observer(function () {
33941
34495
  field: 'featureNos',
33942
34496
  headerName: 'backoffice.idmEnricher.renaming.label.featureNr',
33943
34497
  cellDataType: 'lookup',
33944
- editable: true,
34498
+ editable: !viewOnly,
33945
34499
  customParams: {
33946
34500
  nameField: 'featureNosDisplayTexts',
33947
34501
  displayLabelTemplate: '${name} (${value})',
@@ -33955,7 +34509,7 @@ var TableTabGroups = observer(function () {
33955
34509
  },
33956
34510
  additionalFields: ['featureNosDisplayTexts'],
33957
34511
  isDictionary: true
33958
- }, createTranslatedColumnConfig('name', 'backoffice.idmEnricher.tabgroups.label.name', selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isoLanguageIds, true), {
34512
+ }, createTranslatedColumnConfig('name', 'backoffice.idmEnricher.tabgroups.label.name', selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isoLanguageIds, !viewOnly), {
33959
34513
  field: 'organizationId',
33960
34514
  editable: false,
33961
34515
  hide: true,
@@ -33985,7 +34539,7 @@ var TableTabGroups = observer(function () {
33985
34539
  cellDataType: 'objectId'
33986
34540
  }]
33987
34541
  };
33988
- }, [apiInterface, selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isoLanguageIds]);
34542
+ }, [apiInterface, selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isoLanguageIds, viewOnly]);
33989
34543
  return /*#__PURE__*/jsxs(Fragment, {
33990
34544
  children: [/*#__PURE__*/jsx(Descriptions$1, {
33991
34545
  title: /*#__PURE__*/jsxs("div", {
@@ -34013,7 +34567,8 @@ var TablePartlistPos = observer(function () {
34013
34567
  packageId = _useModule.packageId,
34014
34568
  organizationId = _useModule.organizationId,
34015
34569
  apiConfig = _useModule.apiConfig,
34016
- selectedPackage = _useModule.selectedPackage;
34570
+ selectedPackage = _useModule.selectedPackage,
34571
+ viewOnly = _useModule.viewOnly;
34017
34572
  useTools({
34018
34573
  packageId: packageId,
34019
34574
  isApi2: selectedPackage === null || selectedPackage === void 0 ? void 0 : selectedPackage.isApi
@@ -34039,10 +34594,10 @@ var TablePartlistPos = observer(function () {
34039
34594
  var apiInterface = useMemo(function () {
34040
34595
  return {
34041
34596
  read: apiConfig.enricherService + '/packages/${packageId}/partlistpos',
34042
- create: apiConfig.enricherService + '/packages/${packageId}/partlistpos',
34043
- restore: apiConfig.enricherService + '/packages/${packageId}/partlistpos/${_id}',
34044
- "delete": apiConfig.enricherService + '/packages/${packageId}/partlistpos/${_id}',
34045
- update: apiConfig.enricherService + '/packages/${packageId}/partlistpos/${_id}',
34597
+ create: viewOnly ? undefined : apiConfig.enricherService + '/packages/${packageId}/partlistpos',
34598
+ restore: viewOnly ? undefined : apiConfig.enricherService + '/packages/${packageId}/partlistpos/${_id}',
34599
+ "delete": viewOnly ? undefined : apiConfig.enricherService + '/packages/${packageId}/partlistpos/${_id}',
34600
+ update: viewOnly ? undefined : apiConfig.enricherService + '/packages/${packageId}/partlistpos/${_id}',
34046
34601
  bulk: apiConfig.enricherService + '/packages/${packageId}/partlistpos/bulk'
34047
34602
  };
34048
34603
  }, []);
@@ -34055,12 +34610,12 @@ var TablePartlistPos = observer(function () {
34055
34610
  colDef: [{
34056
34611
  headerName: 'backoffice.idmEnricher.partlistpos.label.retailPrefix',
34057
34612
  field: 'retailPrefix',
34058
- editable: true,
34613
+ editable: !viewOnly,
34059
34614
  pinned: 'left'
34060
34615
  }, {
34061
34616
  headerName: 'backoffice.idmEnricher.partlistpos.label.retailArtilceNumber',
34062
34617
  field: 'retailArtilceNumber',
34063
- editable: true,
34618
+ editable: !viewOnly,
34064
34619
  pinned: 'left'
34065
34620
  }, {
34066
34621
  headerName: 'backoffice.idmEnricher.partlistpos.label.partlistKey',
@@ -34162,7 +34717,7 @@ var TablePartlistPos = observer(function () {
34162
34717
  cellDataType: 'objectId'
34163
34718
  }]
34164
34719
  };
34165
- }, [apiInterface, posInvisibility]);
34720
+ }, [apiInterface, posInvisibility, viewOnly]);
34166
34721
  return /*#__PURE__*/jsxs(Fragment, {
34167
34722
  children: [/*#__PURE__*/jsx(Descriptions$1, {
34168
34723
  title: /*#__PURE__*/jsxs("div", {
@@ -34463,8 +35018,8 @@ var space = "space-T5Mkd";
34463
35018
  var input$1 = "input-SK-Fo";
34464
35019
  var addButton$1 = "addButton-AVN8Y";
34465
35020
  var helpText = "helpText-QYQQF";
34466
- var css_248z$d = ".cell-Noc7s {\n min-width: 50px;\n height: 100%;\n}\n\n.typeSelector-Y8Yly {\n margin-bottom: 16px;\n}\n\n.space-T5Mkd {\n width: 100%;\n}\n\n.input-SK-Fo {\n width: 120px;\n}\n\n.addButton-AVN8Y {\n margin-top: 16px;\n text-align: right;\n}\n\n.helpText-QYQQF {\n margin-top: 8px;\n font-size: 12px;\n color: #666;\n}\n";
34467
- styleInject(css_248z$d);
35021
+ var css_248z$e = ".cell-Noc7s {\n min-width: 50px;\n height: 100%;\n}\n\n.typeSelector-Y8Yly {\n margin-bottom: 16px;\n}\n\n.space-T5Mkd {\n width: 100%;\n}\n\n.input-SK-Fo {\n width: 120px;\n}\n\n.addButton-AVN8Y {\n margin-top: 16px;\n text-align: right;\n}\n\n.helpText-QYQQF {\n margin-top: 8px;\n font-size: 12px;\n color: #666;\n}\n";
35022
+ styleInject(css_248z$e);
34468
35023
 
34469
35024
  function PriceFactorCellRenderer(props) {
34470
35025
  var data = props.data,
@@ -34680,8 +35235,8 @@ var difference = "difference-xT9ZP";
34680
35235
  var differencePositive = "differencePositive-hGhZO";
34681
35236
  var differenceNegative = "differenceNegative-3CEZA";
34682
35237
  var differenceNeutral = "differenceNeutral-wx8oE";
34683
- var css_248z$c = ".container-T4Tzz {\n display: flex;\n align-items: center;\n}\n\n.price-NjOOy {\n font-weight: normal;\n}\n\n.priceManual-i7wtQ {\n font-weight: bold;\n}\n\n.originalPrice-V8MP5 {\n color: #8c8c8c;\n margin: 0 8px;\n}\n\n.difference-xT9ZP {\n margin-left: 8px;\n}\n\n.differencePositive-hGhZO {\n color: #52c41a;\n}\n\n.differenceNegative-3CEZA {\n color: #ff4d4f;\n}\n\n.differenceNeutral-wx8oE {\n color: inherit;\n}\n";
34684
- styleInject(css_248z$c);
35238
+ var css_248z$d = ".container-T4Tzz {\n display: flex;\n align-items: center;\n}\n\n.price-NjOOy {\n font-weight: normal;\n}\n\n.priceManual-i7wtQ {\n font-weight: bold;\n}\n\n.originalPrice-V8MP5 {\n color: #8c8c8c;\n margin: 0 8px;\n}\n\n.difference-xT9ZP {\n margin-left: 8px;\n}\n\n.differencePositive-hGhZO {\n color: #52c41a;\n}\n\n.differenceNegative-3CEZA {\n color: #ff4d4f;\n}\n\n.differenceNeutral-wx8oE {\n color: inherit;\n}\n";
35239
+ styleInject(css_248z$d);
34685
35240
 
34686
35241
  function PriceDisplayCellRenderer(props) {
34687
35242
  var _data$origPrices, _data$manualPrices, _currentPrice$toFixed, _origPrice$toFixed;
@@ -34747,59 +35302,129 @@ function getPriceFeatureGroups(selectedSerie, language) {
34747
35302
  if (!(selectedSerie !== null && selectedSerie !== void 0 && selectedSerie.pricefeaturegroups)) {
34748
35303
  return [];
34749
35304
  }
34750
- var priceFeatureGroups = (_selectedSerie$pricef = selectedSerie.pricefeaturegroups) === null || _selectedSerie$pricef === void 0 ? void 0 : _selectedSerie$pricef.map(function (priceFeatureGroups, i) {
35305
+ var priceFeatureGroups = (_selectedSerie$pricef = selectedSerie.pricefeaturegroups) === null || _selectedSerie$pricef === void 0 ? void 0 : _selectedSerie$pricef.map(function (priceFeatureGroupKey, i) {
34751
35306
  var _selectedSerie$pricef2, _selectedSerie$pricef3;
34752
35307
  return {
34753
- id: priceFeatureGroups,
34754
- displayText: (_selectedSerie$pricef2 = (_selectedSerie$pricef3 = selectedSerie.pricefeaturegroupsDisplayTexts) === null || _selectedSerie$pricef3 === void 0 || (_selectedSerie$pricef3 = _selectedSerie$pricef3[i]) === null || _selectedSerie$pricef3 === void 0 ? void 0 : _selectedSerie$pricef3[language.toUpperCase()]) !== null && _selectedSerie$pricef2 !== void 0 ? _selectedSerie$pricef2 : priceFeatureGroups,
35308
+ id: 'PRFG' + priceFeatureGroupKey,
35309
+ displayText: (_selectedSerie$pricef2 = (_selectedSerie$pricef3 = selectedSerie.pricefeaturegroupsDisplayTexts) === null || _selectedSerie$pricef3 === void 0 || (_selectedSerie$pricef3 = _selectedSerie$pricef3[i]) === null || _selectedSerie$pricef3 === void 0 ? void 0 : _selectedSerie$pricef3[language.toUpperCase()]) !== null && _selectedSerie$pricef2 !== void 0 ? _selectedSerie$pricef2 : priceFeatureGroupKey,
34755
35310
  keys: [],
34756
35311
  keysDisplayTexts: []
34757
35312
  };
34758
35313
  });
34759
- (_selectedSerie$pricef4 = selectedSerie.pricefeaturegroupsKeys) === null || _selectedSerie$pricef4 === void 0 || _selectedSerie$pricef4.forEach(function (priceFeatureGroupKey, i) {
34760
- var pfgSplit = priceFeatureGroupKey.split('_');
34761
- var pfgId = pfgSplit[0].replace('PRFG', '');
35314
+ (_selectedSerie$pricef4 = selectedSerie.pricefeaturegroupsKeys) === null || _selectedSerie$pricef4 === void 0 || _selectedSerie$pricef4.forEach(function (priceGroupKey, i) {
35315
+ var pfgSplit = priceGroupKey.split('_');
35316
+ var pfgId = pfgSplit[0];
34762
35317
  var pfg = priceFeatureGroups.find(function (pfg) {
34763
35318
  return pfg.id == pfgId;
34764
35319
  });
34765
35320
  if (pfg) {
34766
35321
  var _selectedSerie$pricef5;
34767
- pfg.keys.push(priceFeatureGroupKey);
35322
+ pfg.keys.push(priceGroupKey);
34768
35323
  pfg.keysDisplayTexts.push((_selectedSerie$pricef5 = selectedSerie.pricefeaturegroupsKeysDisplayTexts) === null || _selectedSerie$pricef5 === void 0 || (_selectedSerie$pricef5 = _selectedSerie$pricef5[i]) === null || _selectedSerie$pricef5 === void 0 ? void 0 : _selectedSerie$pricef5[language.toUpperCase()]);
34769
35324
  }
34770
35325
  });
34771
35326
  return priceFeatureGroups;
34772
35327
  }
34773
35328
 
34774
- var wrapper$3 = "wrapper-5t6RT";
34775
35329
  var input = "input-leHam";
34776
35330
  var disabled$1 = "disabled-Llkqu";
34777
- var css_248z$b = ".wrapper-5t6RT {\n display: flex;\n flex-direction: column;\n min-height: 50px;\n justify-content: flex-end;\n font-size: 12px;\n}\n\n.input-leHam {\n position: relative;\n width: 200px;\n height: 32px;\n border: 1px solid #d9d9d9;\n background: #ffffff;\n padding: 0 11px;\n border-radius: 6px;\n font-size: 14px;\n line-height: 30px;\n cursor: pointer;\n}\n\n.darkmode .input-leHam {\n background: #141414;\n border: 1px solid #424242;\n}\n\n.input-leHam.disabled-Llkqu {\n cursor: default;\n color: rgba(0, 0, 0, 0.25);\n}\n\n.darkmode .input-leHam.disabled-Llkqu {\n color: rgba(255, 255, 255, 0.25);\n}\n\n.input-leHam:hover {\n border-color: #4096ff;\n}\n";
34778
- styleInject(css_248z$b);
35331
+ var css_248z$c = ".input-leHam {\n position: relative;\n width: 200px;\n height: 32px;\n border: 1px solid #d9d9d9;\n background: #ffffff;\n padding: 0 11px;\n border-radius: 6px;\n font-size: 14px;\n line-height: 30px;\n cursor: pointer;\n}\n\n.darkmode .input-leHam {\n background: #141414;\n border: 1px solid #424242;\n}\n\n.input-leHam.disabled-Llkqu {\n cursor: default;\n color: rgba(0, 0, 0, 0.25);\n}\n\n.darkmode .input-leHam.disabled-Llkqu {\n color: rgba(255, 255, 255, 0.25);\n}\n\n.input-leHam:hover {\n border-color: #4096ff;\n}\n";
35332
+ styleInject(css_248z$c);
34779
35333
 
35334
+ var _excluded = ["onSave", "value"];
34780
35335
  function ownKeys$d(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
34781
35336
  function _objectSpread$d(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$d(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$d(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
34782
- function PriceFactorInput(props) {
34783
- return /*#__PURE__*/jsxs("div", {
34784
- className: classnames(wrapper$3, props.className),
34785
- children: [props.title, /*#__PURE__*/jsx(Tooltip$1, {
34786
- title: props.tooltip,
34787
- children: /*#__PURE__*/jsx("div", {
34788
- id: "price-factor-input",
34789
- className: classnames(input, _defineProperty({}, disabled$1, props.disabled)),
34790
- children: /*#__PURE__*/jsx(PriceFactorCellRenderer, _objectSpread$d(_objectSpread$d({}, props), {}, {
34791
- isNotInAGGrid: true
34792
- }))
34793
- })
34794
- })]
35337
+ function PriceFactorInput(_ref) {
35338
+ var _onSave = _ref.onSave,
35339
+ value = _ref.value,
35340
+ props = _objectWithoutProperties(_ref, _excluded);
35341
+ var _useState = useState(value),
35342
+ _useState2 = _slicedToArray(_useState, 2),
35343
+ innerValue = _useState2[0],
35344
+ setInnerValue = _useState2[1];
35345
+ useEffect(function () {
35346
+ setInnerValue(value);
35347
+ }, [value]);
35348
+ return /*#__PURE__*/jsx(Tooltip$1, {
35349
+ title: props.tooltip,
35350
+ children: /*#__PURE__*/jsx("div", {
35351
+ className: classnames(input, 'price-factor-input', props.className, _defineProperty({}, disabled$1, props.disabled)),
35352
+ children: /*#__PURE__*/jsx(PriceFactorCellRenderer, _objectSpread$d(_objectSpread$d({}, props), {}, {
35353
+ isNotInAGGrid: true,
35354
+ value: innerValue,
35355
+ onSave: function onSave(data, value) {
35356
+ setInnerValue(value);
35357
+ return _onSave(data, value);
35358
+ }
35359
+ }))
35360
+ })
34795
35361
  });
34796
35362
  }
34797
35363
 
34798
35364
  var inputHeader = "input-header--4KDP";
34799
35365
  var factorInput = "factor-input-MX85Z";
34800
- var css_248z$a = ".input-header--4KDP .ag-header-cell-text {\n width: 100%;\n}\n\n.factor-input-MX85Z {\n min-height: 0;\n flex: 1;\n}\n\n.factor-input-MX85Z #price-factor-input {\n width: 100%;\n background-color: var(--ag-input-background-color);\n border: var(--ag-input-border);\n border-radius: var(--ag-input-border-radius);\n color: var(--ag-input-text-color);\n height: var(--ag-input-height);\n line-height: var(--ag-input-height);\n font-size: var(--ag-font-size);\n}\n\n.factor-input-MX85Z #price-factor-input:hover {\n border-color: #4096ff;\n}\n";
35366
+ var css_248z$b = ".input-header--4KDP .ag-header-cell-text {\n width: 100%;\n}\n\n.input-header--4KDP .ag-header-group-cell-label {\n width: 100%;\n max-width: 250px;\n}\n\n.input-header--4KDP .ag-header-group-text {\n width: 100%;\n}\n\n.factor-input-MX85Z {\n min-height: 0;\n flex: 1;\n}\n\n.factor-input-MX85Z .price-factor-input {\n width: 100%;\n background-color: var(--ag-input-background-color);\n border: var(--ag-input-border);\n border-radius: var(--ag-input-border-radius);\n color: var(--ag-input-text-color);\n height: var(--ag-input-height);\n line-height: var(--ag-input-height);\n font-size: var(--ag-font-size);\n}\n\n.factor-input-MX85Z .price-factor-input:hover {\n border-color: #4096ff;\n}\n";
35367
+ styleInject(css_248z$b);
35368
+
35369
+ function PriceFactorHeaderComponent(_ref) {
35370
+ var onSave = _ref.onSave,
35371
+ onPriorityChange = _ref.onPriorityChange,
35372
+ priority = _ref.priority,
35373
+ priorityForced = _ref.priorityForced,
35374
+ value = _ref.value,
35375
+ inputTooltip = _ref.inputTooltip,
35376
+ checkboxTooltip = _ref.checkboxTooltip;
35377
+ var _useTranslation = useTranslation$1(),
35378
+ t = _useTranslation.t;
35379
+ var _useState = useState(priority || priorityForced),
35380
+ _useState2 = _slicedToArray(_useState, 2),
35381
+ innerChecked = _useState2[0],
35382
+ setInnerChecked = _useState2[1];
35383
+ useEffect(function () {
35384
+ setInnerChecked(priority || priorityForced);
35385
+ }, [priority, priorityForced]);
35386
+ return /*#__PURE__*/jsxs(Fragment, {
35387
+ children: [/*#__PURE__*/jsx(PriceFactorInput, {
35388
+ onSave: onSave,
35389
+ value: value,
35390
+ className: factorInput,
35391
+ tooltip: t(inputTooltip)
35392
+ }), /*#__PURE__*/jsx(Tooltip$1, {
35393
+ title: t("".concat(checkboxTooltip, ".").concat(priorityForced ? 'forced' : priority ? 'true' : 'false')),
35394
+ children: /*#__PURE__*/jsx(Checkbox, {
35395
+ checked: innerChecked,
35396
+ disabled: priorityForced,
35397
+ onChange: function onChange(e) {
35398
+ setInnerChecked(e.target.checked);
35399
+ onPriorityChange(e.target.checked);
35400
+ }
35401
+ })
35402
+ })]
35403
+ });
35404
+ }
35405
+
35406
+ var root = "root-WJLKp";
35407
+ var contentWrapper$1 = "content-wrapper-Ki4Pt";
35408
+ var css_248z$a = ".root-WJLKp {\n display: flex;\n flex-direction: column;\n height: 50px;\n justify-content: flex-end;\n font-size: 12px;\n}\n\n.content-wrapper-Ki4Pt {\n height: 34px;\n display: flex;\n align-items: center;\n}\n";
34801
35409
  styleInject(css_248z$a);
34802
35410
 
35411
+ function Setting(_ref) {
35412
+ var title = _ref.title,
35413
+ tooltip = _ref.tooltip,
35414
+ className = _ref.className,
35415
+ children = _ref.children;
35416
+ return /*#__PURE__*/jsxs("div", {
35417
+ className: classnames(root, className),
35418
+ children: [title, /*#__PURE__*/jsx(Tooltip$1, {
35419
+ title: tooltip,
35420
+ children: /*#__PURE__*/jsx("div", {
35421
+ className: contentWrapper$1,
35422
+ children: children
35423
+ })
35424
+ })]
35425
+ });
35426
+ }
35427
+
34803
35428
  function ownKeys$c(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
34804
35429
  function _objectSpread$c(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$c(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$c(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
34805
35430
  var Prices = observer(function (_ref) {
@@ -34808,11 +35433,89 @@ var Prices = observer(function (_ref) {
34808
35433
  packageId = _ref.packageId,
34809
35434
  apiConfig = _ref.apiConfig,
34810
35435
  pricelist = _ref.pricelist,
34811
- setNodeDataValue = _ref.setNodeDataValue;
35436
+ setNodeDataValue = _ref.setNodeDataValue,
35437
+ viewOnly = _ref.viewOnly;
34812
35438
  var _useTranslation = useTranslation(),
34813
35439
  t = _useTranslation.t;
35440
+ var root = useStore();
35441
+ var spreadsheetRef = useRef(null);
34814
35442
  var _useEnricherContext = useEnricherContext(['pricelists']),
34815
35443
  selectedSerie = _useEnricherContext.selectedSerie;
35444
+ var _useState = useState(false),
35445
+ _useState2 = _slicedToArray(_useState, 2),
35446
+ onlyManual = _useState2[0],
35447
+ setOnlyManual = _useState2[1];
35448
+ var updatePfgPriceFactor = useCallback(function (priceFeatureGroupItem, value) {
35449
+ if (!selectedSerie) return;
35450
+
35451
+ // Create copies of the objects to modify
35452
+ var newFactors = _objectSpread$c({}, pricelist.pfgPricefactors);
35453
+ var serieFactors = _objectSpread$c({}, newFactors[selectedSerie.serieNo]);
35454
+ if (value.length === 0) {
35455
+ // Remove the empty price feature group
35456
+ delete serieFactors[priceFeatureGroupItem];
35457
+
35458
+ // If serie factors is now empty, remove the entire serie entry
35459
+ if (Object.keys(serieFactors).length === 0) {
35460
+ delete newFactors[selectedSerie.serieNo];
35461
+ } else {
35462
+ newFactors[selectedSerie.serieNo] = serieFactors;
35463
+ }
35464
+
35465
+ // If no more series exist, set pfgPricefactors to undefined
35466
+ if (Object.keys(newFactors).length === 0) {
35467
+ setNodeDataValue({
35468
+ pfgPricefactors: undefined
35469
+ });
35470
+ return;
35471
+ }
35472
+ } else {
35473
+ // Add/update the value
35474
+ serieFactors[priceFeatureGroupItem] = value;
35475
+ newFactors[selectedSerie.serieNo] = serieFactors;
35476
+ }
35477
+ setNodeDataValue({
35478
+ pfgPricefactors: newFactors
35479
+ });
35480
+ }, [selectedSerie]);
35481
+ var updatePfgPriority = useCallback(function (priceFeatureGroupItem, value) {
35482
+ var _newPriority$selected;
35483
+ if (!selectedSerie) return;
35484
+ var newPriority = _objectSpread$c({}, pricelist.pfgPricefactorsPriority);
35485
+ var seriesPriority = new Set((_newPriority$selected = newPriority[selectedSerie.serieNo]) !== null && _newPriority$selected !== void 0 ? _newPriority$selected : []);
35486
+ if (value === true) {
35487
+ seriesPriority.add(priceFeatureGroupItem);
35488
+ } else {
35489
+ seriesPriority["delete"](priceFeatureGroupItem);
35490
+ }
35491
+ if (seriesPriority.size === 0) {
35492
+ delete newPriority[selectedSerie.serieNo];
35493
+ } else {
35494
+ newPriority[selectedSerie.serieNo] = Array.from(seriesPriority);
35495
+ }
35496
+ setNodeDataValue({
35497
+ pfgPricefactorsPriority: newPriority
35498
+ });
35499
+ }, [selectedSerie]);
35500
+ var updatePgPriority = useCallback(function (priceFeatureGroupItem, value) {
35501
+ var _newPriority$selected2;
35502
+ if (!selectedSerie) return;
35503
+ var newPriority = _objectSpread$c({}, pricelist.pgPricefactorsPriority);
35504
+ var seriesPriority = new Set((_newPriority$selected2 = newPriority[selectedSerie.serieNo]) !== null && _newPriority$selected2 !== void 0 ? _newPriority$selected2 : []);
35505
+ if (value === true) {
35506
+ seriesPriority.add(priceFeatureGroupItem);
35507
+ } else {
35508
+ seriesPriority["delete"](priceFeatureGroupItem);
35509
+ }
35510
+ if (seriesPriority.size === 0) {
35511
+ delete newPriority[selectedSerie.serieNo];
35512
+ } else {
35513
+ newPriority[selectedSerie.serieNo] = Array.from(seriesPriority);
35514
+ }
35515
+ setNodeDataValue({
35516
+ pgPricefactorsPriority: newPriority
35517
+ });
35518
+ }, [selectedSerie]);
34816
35519
  var updatePgPriceFactor = useCallback(function (priceFeatureGroupItem, value) {
34817
35520
  if (!selectedSerie) return;
34818
35521
 
@@ -34936,6 +35639,34 @@ var Prices = observer(function (_ref) {
34936
35639
  seriePricefactors: newFactors
34937
35640
  });
34938
35641
  }, [pricelist, selectedSerie, setNodeDataValue]);
35642
+ function deleteManualPrices() {
35643
+ return _deleteManualPrices.apply(this, arguments);
35644
+ }
35645
+ function _deleteManualPrices() {
35646
+ _deleteManualPrices = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee8() {
35647
+ var _spreadsheetRef$curre;
35648
+ var api;
35649
+ return _regeneratorRuntime.wrap(function _callee8$(_context8) {
35650
+ while (1) switch (_context8.prev = _context8.next) {
35651
+ case 0:
35652
+ api = new _default$d({
35653
+ type: 'AGGrid',
35654
+ apiInterface: {
35655
+ "delete": apiConfig.enricherService + "/packages/".concat(packageId, "/pricelists/").concat(pricelist._id, "/serie/").concat(selectedSerie === null || selectedSerie === void 0 ? void 0 : selectedSerie.serieNo, "/prices/manual")
35656
+ }
35657
+ }, root);
35658
+ _context8.next = 3;
35659
+ return api["delete"]();
35660
+ case 3:
35661
+ (_spreadsheetRef$curre = spreadsheetRef.current) === null || _spreadsheetRef$curre === void 0 || _spreadsheetRef$curre.refresh();
35662
+ case 4:
35663
+ case "end":
35664
+ return _context8.stop();
35665
+ }
35666
+ }, _callee8);
35667
+ }));
35668
+ return _deleteManualPrices.apply(this, arguments);
35669
+ }
34939
35670
  var applicationData = useMemo(function () {
34940
35671
  return {
34941
35672
  organizationId: organizationId,
@@ -34946,10 +35677,10 @@ var Prices = observer(function (_ref) {
34946
35677
  }, [organizationId, packageId, selectedSerie, pricelist]);
34947
35678
  var apiInterface = useMemo(function () {
34948
35679
  return {
34949
- read: apiConfig.enricherService + '/packages/${packageId}/pricelists/${pricelistId}/serie/${serieNo}/prices',
34950
- update: apiConfig.enricherService + '/packages/${packageId}/pricelists/${pricelistId}/serie/${serieNo}/prices/${_id}'
35680
+ read: apiConfig.enricherService + '/packages/${packageId}/pricelists/${pricelistId}/serie/${serieNo}/prices' + (onlyManual ? '?onlyManual=true' : ''),
35681
+ update: viewOnly ? undefined : apiConfig.enricherService + '/packages/${packageId}/pricelists/${pricelistId}/serie/${serieNo}/prices/${_id}'
34951
35682
  };
34952
- }, []);
35683
+ }, [onlyManual]);
34953
35684
  var priceFeatureGroups = usePriceFeatureGroupsFromSerie(selectedSerie);
34954
35685
  var configuration = useMemo(function () {
34955
35686
  var _priceFeatureGroups$m;
@@ -35047,16 +35778,57 @@ var Prices = observer(function (_ref) {
35047
35778
  sortable: false,
35048
35779
  editable: false
35049
35780
  }].concat(_toConsumableArray((_priceFeatureGroups$m = priceFeatureGroups === null || priceFeatureGroups === void 0 ? void 0 : priceFeatureGroups.map(function (priceFeatureGroup) {
35050
- var _priceFeatureGroup$ke, _priceFeatureGroup$ke2;
35781
+ var _pricelist$pfgPricefa, _pricelist$pfgPricefa2, _priceFeatureGroup$ke, _priceFeatureGroup$ke2;
35051
35782
  return {
35052
35783
  headerName: priceFeatureGroup.displayText,
35784
+ headerClass: inputHeader,
35785
+ headerGroupComponentParams: {
35786
+ additionalElement: /*#__PURE__*/jsx(PriceFactorHeaderComponent, {
35787
+ onSave: (/*#__PURE__*/function () {
35788
+ var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3(data, value) {
35789
+ return _regeneratorRuntime.wrap(function _callee3$(_context3) {
35790
+ while (1) switch (_context3.prev = _context3.next) {
35791
+ case 0:
35792
+ updatePfgPriceFactor(priceFeatureGroup.id, value);
35793
+ case 1:
35794
+ case "end":
35795
+ return _context3.stop();
35796
+ }
35797
+ }, _callee3);
35798
+ }));
35799
+ return function (_x5, _x6) {
35800
+ return _ref4.apply(this, arguments);
35801
+ };
35802
+ }()),
35803
+ value: (_pricelist$pfgPricefa = pricelist.pfgPricefactors) === null || _pricelist$pfgPricefa === void 0 || (_pricelist$pfgPricefa = _pricelist$pfgPricefa[selectedSerie === null || selectedSerie === void 0 ? void 0 : selectedSerie.serieNo]) === null || _pricelist$pfgPricefa === void 0 ? void 0 : _pricelist$pfgPricefa[priceFeatureGroup.id],
35804
+ onPriorityChange: (/*#__PURE__*/function () {
35805
+ var _ref5 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee4(value) {
35806
+ return _regeneratorRuntime.wrap(function _callee4$(_context4) {
35807
+ while (1) switch (_context4.prev = _context4.next) {
35808
+ case 0:
35809
+ updatePfgPriority(priceFeatureGroup.id, value);
35810
+ case 1:
35811
+ case "end":
35812
+ return _context4.stop();
35813
+ }
35814
+ }, _callee4);
35815
+ }));
35816
+ return function (_x7) {
35817
+ return _ref5.apply(this, arguments);
35818
+ };
35819
+ }()),
35820
+ priority: !!((_pricelist$pfgPricefa2 = pricelist.pfgPricefactorsPriority) !== null && _pricelist$pfgPricefa2 !== void 0 && (_pricelist$pfgPricefa2 = _pricelist$pfgPricefa2[selectedSerie === null || selectedSerie === void 0 ? void 0 : selectedSerie.serieNo]) !== null && _pricelist$pfgPricefa2 !== void 0 && _pricelist$pfgPricefa2.includes(priceFeatureGroup.id)),
35821
+ inputTooltip: 'backoffice.idmCatalog.prices.priceFactor.label.pfg',
35822
+ checkboxTooltip: 'backoffice.idmCatalog.prices.priceFactor.label.pfgPriority'
35823
+ })
35824
+ },
35053
35825
  marryChildren: true,
35054
- children: _toConsumableArray((_priceFeatureGroup$ke = (_priceFeatureGroup$ke2 = priceFeatureGroup.keys) === null || _priceFeatureGroup$ke2 === void 0 ? void 0 : _priceFeatureGroup$ke2.map(function (priceFeatureGroupItem, j) {
35055
- var _priceFeatureGroup$ke3, _pricelist$pgPricefac;
35826
+ children: _toConsumableArray((_priceFeatureGroup$ke = (_priceFeatureGroup$ke2 = priceFeatureGroup.keys) === null || _priceFeatureGroup$ke2 === void 0 ? void 0 : _priceFeatureGroup$ke2.map(function (priceGroup, j) {
35827
+ var _priceFeatureGroup$ke3, _pricelist$pgPricefac, _pricelist$pgPricefac2, _pricelist$pfgPricefa3;
35056
35828
  return {
35057
- headerName: priceFeatureGroupItem,
35058
- field: "prices.".concat(priceFeatureGroupItem),
35059
- editable: true,
35829
+ headerName: priceGroup,
35830
+ field: "prices.".concat(priceGroup),
35831
+ editable: !viewOnly,
35060
35832
  filter: false,
35061
35833
  sortable: false,
35062
35834
  isDictionary: true,
@@ -35065,31 +35837,49 @@ var Prices = observer(function (_ref) {
35065
35837
  cellRenderer: PriceDisplayCellRenderer,
35066
35838
  cellRendererParams: {
35067
35839
  commas: pricelist.commas,
35068
- item: priceFeatureGroupItem
35840
+ item: priceGroup
35069
35841
  },
35070
- additionalFields: ["origPrices.".concat(priceFeatureGroupItem)],
35842
+ additionalFields: ["origPrices.".concat(priceGroup)],
35071
35843
  headerClass: inputHeader,
35072
35844
  headerComponentParams: {
35073
- additionalElement: /*#__PURE__*/jsx(PriceFactorInput, {
35845
+ additionalElement: /*#__PURE__*/jsx(PriceFactorHeaderComponent, {
35074
35846
  onSave: (/*#__PURE__*/function () {
35075
- var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3(data, value) {
35076
- return _regeneratorRuntime.wrap(function _callee3$(_context3) {
35077
- while (1) switch (_context3.prev = _context3.next) {
35847
+ var _ref6 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee5(data, value) {
35848
+ return _regeneratorRuntime.wrap(function _callee5$(_context5) {
35849
+ while (1) switch (_context5.prev = _context5.next) {
35850
+ case 0:
35851
+ updatePgPriceFactor(priceGroup, value);
35852
+ case 1:
35853
+ case "end":
35854
+ return _context5.stop();
35855
+ }
35856
+ }, _callee5);
35857
+ }));
35858
+ return function (_x8, _x9) {
35859
+ return _ref6.apply(this, arguments);
35860
+ };
35861
+ }()),
35862
+ value: (_pricelist$pgPricefac = pricelist.pgPricefactors) === null || _pricelist$pgPricefac === void 0 || (_pricelist$pgPricefac = _pricelist$pgPricefac[selectedSerie === null || selectedSerie === void 0 ? void 0 : selectedSerie.serieNo]) === null || _pricelist$pgPricefac === void 0 ? void 0 : _pricelist$pgPricefac[priceGroup],
35863
+ onPriorityChange: (/*#__PURE__*/function () {
35864
+ var _ref7 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee6(value) {
35865
+ return _regeneratorRuntime.wrap(function _callee6$(_context6) {
35866
+ while (1) switch (_context6.prev = _context6.next) {
35078
35867
  case 0:
35079
- updatePgPriceFactor(priceFeatureGroupItem, value);
35868
+ updatePgPriority(priceGroup, value);
35080
35869
  case 1:
35081
35870
  case "end":
35082
- return _context3.stop();
35871
+ return _context6.stop();
35083
35872
  }
35084
- }, _callee3);
35873
+ }, _callee6);
35085
35874
  }));
35086
- return function (_x5, _x6) {
35087
- return _ref4.apply(this, arguments);
35875
+ return function (_x10) {
35876
+ return _ref7.apply(this, arguments);
35088
35877
  };
35089
35878
  }()),
35090
- value: (_pricelist$pgPricefac = pricelist.pgPricefactors) === null || _pricelist$pgPricefac === void 0 || (_pricelist$pgPricefac = _pricelist$pgPricefac[selectedSerie === null || selectedSerie === void 0 ? void 0 : selectedSerie.serieNo]) === null || _pricelist$pgPricefac === void 0 ? void 0 : _pricelist$pgPricefac[priceFeatureGroupItem],
35091
- className: factorInput,
35092
- tooltip: t('backoffice.idmCatalog.prices.priceFactor.label.pfg')
35879
+ priority: !!((_pricelist$pgPricefac2 = pricelist.pgPricefactorsPriority) !== null && _pricelist$pgPricefac2 !== void 0 && (_pricelist$pgPricefac2 = _pricelist$pgPricefac2[selectedSerie === null || selectedSerie === void 0 ? void 0 : selectedSerie.serieNo]) !== null && _pricelist$pgPricefac2 !== void 0 && _pricelist$pgPricefac2.includes(priceGroup)),
35880
+ priorityForced: !!((_pricelist$pfgPricefa3 = pricelist.pfgPricefactorsPriority) !== null && _pricelist$pfgPricefa3 !== void 0 && (_pricelist$pfgPricefa3 = _pricelist$pfgPricefa3[selectedSerie === null || selectedSerie === void 0 ? void 0 : selectedSerie.serieNo]) !== null && _pricelist$pfgPricefa3 !== void 0 && _pricelist$pfgPricefa3.includes(priceFeatureGroup.id)),
35881
+ inputTooltip: 'backoffice.idmCatalog.prices.priceFactor.label.pg',
35882
+ checkboxTooltip: 'backoffice.idmCatalog.prices.priceFactor.label.pgPriority'
35093
35883
  })
35094
35884
  }
35095
35885
  };
@@ -35140,7 +35930,7 @@ var Prices = observer(function (_ref) {
35140
35930
  cellDataType: 'objectId'
35141
35931
  }])
35142
35932
  };
35143
- }, [apiInterface, selectedSerie, pricelist, priceFeatureGroups]);
35933
+ }, [apiInterface, selectedSerie, pricelist, priceFeatureGroups, viewOnly]);
35144
35934
  return /*#__PURE__*/jsxs(Fragment, {
35145
35935
  children: [/*#__PURE__*/jsx(Descriptions$1, {
35146
35936
  title: /*#__PURE__*/jsx("div", {
@@ -35148,26 +35938,55 @@ var Prices = observer(function (_ref) {
35148
35938
  style: {
35149
35939
  "float": 'right'
35150
35940
  },
35151
- children: [/*#__PURE__*/jsx(PriceFactorInput, {
35152
- value: (_pricelist$seriePrice = pricelist.seriePricefactors) === null || _pricelist$seriePrice === void 0 ? void 0 : _pricelist$seriePrice[selectedSerie === null || selectedSerie === void 0 ? void 0 : selectedSerie.serieNo],
35941
+ children: [/*#__PURE__*/jsx(Setting, {
35942
+ title: t('backoffice.idmCatalog.prices.manual.title'),
35943
+ tooltip: t('backoffice.idmCatalog.prices.manual.tooltip'),
35944
+ children: /*#__PURE__*/jsx(Switch, {
35945
+ checked: onlyManual,
35946
+ onChange: function onChange(e) {
35947
+ return setOnlyManual(e);
35948
+ },
35949
+ disabled: !selectedSerie,
35950
+ checkedChildren: 'Manuelle',
35951
+ unCheckedChildren: 'Alle'
35952
+ })
35953
+ }), /*#__PURE__*/jsx(Setting, {
35954
+ tooltip: t('backoffice.idmCatalog.prices.manual.delete.tooltip'),
35955
+ children: /*#__PURE__*/jsx(Popconfirm, {
35956
+ rootClassName: "ag-custom-component-popup",
35957
+ title: t('backoffice.idmCatalog.prices.manual.delete.title'),
35958
+ description: t('backoffice.idmCatalog.prices.manual.delete.tooltip'),
35959
+ onConfirm: deleteManualPrices,
35960
+ okText: t('action.delete'),
35961
+ cancelText: t('backoffice.cancel'),
35962
+ children: /*#__PURE__*/jsx(Button, {
35963
+ danger: true,
35964
+ children: t('backoffice.idmCatalog.prices.manual.delete.title')
35965
+ })
35966
+ })
35967
+ }), /*#__PURE__*/jsx(Setting, {
35153
35968
  title: t('backoffice.idmCatalog.prices.priceFactor.label.series'),
35154
- onSave: (/*#__PURE__*/function () {
35155
- var _ref5 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee4(_, value) {
35156
- return _regeneratorRuntime.wrap(function _callee4$(_context4) {
35157
- while (1) switch (_context4.prev = _context4.next) {
35158
- case 0:
35159
- updateSeriePriceFactor(value);
35160
- case 1:
35161
- case "end":
35162
- return _context4.stop();
35163
- }
35164
- }, _callee4);
35165
- }));
35166
- return function (_x7, _x8) {
35167
- return _ref5.apply(this, arguments);
35168
- };
35169
- }()),
35170
- disabled: !selectedSerie
35969
+ tooltip: t('backoffice.idmCatalog.prices.priceFactor.tooltip.series'),
35970
+ children: /*#__PURE__*/jsx(PriceFactorInput, {
35971
+ value: (_pricelist$seriePrice = pricelist.seriePricefactors) === null || _pricelist$seriePrice === void 0 ? void 0 : _pricelist$seriePrice[selectedSerie === null || selectedSerie === void 0 ? void 0 : selectedSerie.serieNo],
35972
+ onSave: (/*#__PURE__*/function () {
35973
+ var _ref8 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee7(_, value) {
35974
+ return _regeneratorRuntime.wrap(function _callee7$(_context7) {
35975
+ while (1) switch (_context7.prev = _context7.next) {
35976
+ case 0:
35977
+ updateSeriePriceFactor(value);
35978
+ case 1:
35979
+ case "end":
35980
+ return _context7.stop();
35981
+ }
35982
+ }, _callee7);
35983
+ }));
35984
+ return function (_x11, _x12) {
35985
+ return _ref8.apply(this, arguments);
35986
+ };
35987
+ }()),
35988
+ disabled: !selectedSerie
35989
+ })
35171
35990
  }), /*#__PURE__*/jsx(SeriesSelector$3, {
35172
35991
  modules: ['pricelists'],
35173
35992
  dataSet: "lookup"
@@ -35175,6 +35994,7 @@ var Prices = observer(function (_ref) {
35175
35994
  })
35176
35995
  })
35177
35996
  }), selectedSerie && /*#__PURE__*/jsx(Spreadsheet, {
35997
+ ref: spreadsheetRef,
35178
35998
  gridId: 'crud-grid_enricherprices',
35179
35999
  applicationData: applicationData,
35180
36000
  configuration: configuration
@@ -35192,7 +36012,8 @@ var TablePriceList = observer(function () {
35192
36012
  packageId = _useModule.packageId,
35193
36013
  organizationId = _useModule.organizationId,
35194
36014
  apiConfig = _useModule.apiConfig,
35195
- selectedPackage = _useModule.selectedPackage;
36015
+ selectedPackage = _useModule.selectedPackage,
36016
+ viewOnly = _useModule.viewOnly;
35196
36017
  var _React$useState = React.useState(),
35197
36018
  _React$useState2 = _slicedToArray(_React$useState, 2),
35198
36019
  selectedPriceList = _React$useState2[0],
@@ -35220,7 +36041,8 @@ var TablePriceList = observer(function () {
35220
36041
  packageId: packageId,
35221
36042
  apiConfig: apiConfig,
35222
36043
  pricelist: selectedPriceList,
35223
- setNodeDataValue: setNodeDataValue
36044
+ setNodeDataValue: setNodeDataValue,
36045
+ viewOnly: viewOnly
35224
36046
  },
35225
36047
  startWidth: 300,
35226
36048
  defaultPinned: false,
@@ -35244,10 +36066,10 @@ var TablePriceList = observer(function () {
35244
36066
  var apiInterface = useMemo(function () {
35245
36067
  return {
35246
36068
  read: apiConfig.enricherService + '/packages/${packageId}/pricelists',
35247
- create: apiConfig.enricherService + '/packages/${packageId}/pricelists',
35248
- restore: apiConfig.enricherService + '/packages/${packageId}/pricelists/${_id}',
35249
- "delete": apiConfig.enricherService + '/packages/${packageId}/pricelists/${_id}',
35250
- update: apiConfig.enricherService + '/packages/${packageId}/pricelists/${_id}'
36069
+ create: viewOnly ? undefined : apiConfig.enricherService + '/packages/${packageId}/pricelists',
36070
+ restore: viewOnly ? undefined : apiConfig.enricherService + '/packages/${packageId}/pricelists/${_id}',
36071
+ "delete": viewOnly ? undefined : apiConfig.enricherService + '/packages/${packageId}/pricelists/${_id}',
36072
+ update: viewOnly ? undefined : apiConfig.enricherService + '/packages/${packageId}/pricelists/${_id}'
35251
36073
  };
35252
36074
  }, []);
35253
36075
  var hooks = useMemo(function () {
@@ -35292,11 +36114,11 @@ var TablePriceList = observer(function () {
35292
36114
  colDef: [{
35293
36115
  headerName: 'backoffice.idmEnricher.pricelists.label.name',
35294
36116
  field: 'name',
35295
- editable: true
36117
+ editable: !viewOnly
35296
36118
  }, {
35297
36119
  headerName: 'backoffice.idmEnricher.pricelists.label.basedPricelistId',
35298
36120
  field: 'basedPricelistId',
35299
- editable: true,
36121
+ editable: !viewOnly,
35300
36122
  cellDataType: 'lookup',
35301
36123
  customParams: {
35302
36124
  filterCellType: 'id',
@@ -35326,7 +36148,7 @@ var TablePriceList = observer(function () {
35326
36148
  }, {
35327
36149
  headerName: 'backoffice.idmEnricher.pricelists.label.rounding',
35328
36150
  field: 'rounding',
35329
- editable: true,
36151
+ editable: !viewOnly,
35330
36152
  cellDataType: 'enum',
35331
36153
  customParams: {
35332
36154
  enumData: roundingOptions,
@@ -35335,25 +36157,25 @@ var TablePriceList = observer(function () {
35335
36157
  }, {
35336
36158
  headerName: 'backoffice.idmEnricher.pricelists.label.commas',
35337
36159
  field: 'commas',
35338
- editable: true,
36160
+ editable: !viewOnly,
35339
36161
  cellDataType: 'number'
35340
36162
  }, {
35341
36163
  headerName: 'backoffice.idmEnricher.pricelists.label.currency',
35342
36164
  field: 'currency',
35343
36165
  cellDataType: 'enum',
35344
- editable: true,
36166
+ editable: !viewOnly,
35345
36167
  customParams: {
35346
36168
  enumData: getCurrencyKey(t)
35347
36169
  }
35348
36170
  }, {
35349
36171
  headerName: 'backoffice.idmEnricher.pricelists.label.forPublishing',
35350
36172
  field: 'forPublishing',
35351
- editable: true,
36173
+ editable: !viewOnly,
35352
36174
  cellDataType: 'boolean'
35353
36175
  }, {
35354
36176
  headerName: 'backoffice.idmEnricher.pricelists.label.validFrom',
35355
36177
  field: 'validFrom',
35356
- editable: true,
36178
+ editable: !viewOnly,
35357
36179
  cellDataType: 'dateString',
35358
36180
  customParams: {
35359
36181
  dateFormat: 'DD.MM.YYYY'
@@ -35361,7 +36183,7 @@ var TablePriceList = observer(function () {
35361
36183
  }, {
35362
36184
  headerName: 'backoffice.idmEnricher.pricelists.label.validTo',
35363
36185
  field: 'validTo',
35364
- editable: true,
36186
+ editable: !viewOnly,
35365
36187
  cellDataType: 'dateString',
35366
36188
  customParams: {
35367
36189
  dateFormat: 'DD.MM.YYYY'
@@ -35419,9 +36241,24 @@ var TablePriceList = observer(function () {
35419
36241
  cellDataType: 'object',
35420
36242
  editable: false,
35421
36243
  hide: true
36244
+ }, {
36245
+ field: 'pfgPricefactors',
36246
+ cellDataType: 'object',
36247
+ editable: false,
36248
+ hide: true
36249
+ }, {
36250
+ field: 'pgPricefactorsPriority',
36251
+ cellDataType: 'object',
36252
+ editable: false,
36253
+ hide: true
36254
+ }, {
36255
+ field: 'pfgPricefactorsPriority',
36256
+ cellDataType: 'object',
36257
+ editable: false,
36258
+ hide: true
35422
36259
  }]
35423
36260
  };
35424
- }, [apiInterface, i18n.language]);
36261
+ }, [apiInterface, i18n.language, viewOnly]);
35425
36262
  return /*#__PURE__*/jsxs(Fragment, {
35426
36263
  children: [/*#__PURE__*/jsx(Descriptions$1, {
35427
36264
  title: /*#__PURE__*/jsxs("div", {
@@ -35910,24 +36747,34 @@ var useCatalogContext = function useCatalogContext() {
35910
36747
  root.contextStore.clearContext('catalog');
35911
36748
  }
35912
36749
 
35913
- // Only update if catalog changed
35914
- // initally ony the id is set so we need to update it again if we get the full catalog form the selector, so only checking for id is not enough
36750
+ // initally only the id is set so we need to update it again if we get the full catalog form the selector
35915
36751
  var currentCatalog = getContext().selectedCatalog;
35916
- if (currentCatalog._id === newCatalog._id && currentCatalog.name === newCatalog.name && JSON.stringify(currentCatalog.isoLanguageIds) === JSON.stringify(newCatalog.isoLanguageIds)) {
35917
- return; // No changes detected
36752
+ var catalogChanged = currentCatalog._id !== newCatalog._id;
36753
+ var catalogDataOnlyChanged = currentCatalog.name === newCatalog.name && JSON.stringify(currentCatalog.isoLanguageIds) === JSON.stringify(newCatalog.isoLanguageIds);
36754
+ if (!catalogChanged && !catalogDataOnlyChanged) {
36755
+ // No changes detected
36756
+ return;
35918
36757
  }
36758
+ if (!catalogChanged && catalogDataOnlyChanged) {
36759
+ // Only the data changed, so we only need to update the context of the catalog
36760
+ root.contextStore.updateContext('catalog', {
36761
+ selectedCatalog: newCatalog,
36762
+ catalogId: newCatalog._id
36763
+ });
36764
+ return;
36765
+ }
36766
+ if (catalogChanged) {
36767
+ // The catalog changed, so we need to rest the full context
36768
+ root.contextStore.updateContext('catalog', {
36769
+ selectedCatalog: newCatalog,
36770
+ catalogId: newCatalog._id,
36771
+ selectedSerie: undefined,
36772
+ selectedItem: undefined,
36773
+ selectedFeature: undefined,
36774
+ seriesSelectorState: createDefaultSelectState('seriesSelectorState'),
36775
+ featureSelectorState: createDefaultSelectState('featureSelectorState')
36776
+ });
35919
36777
 
35920
- // Update any field catalog changed
35921
- root.contextStore.updateContext('catalog', {
35922
- selectedCatalog: newCatalog,
35923
- catalogId: newCatalog._id,
35924
- selectedSerie: undefined,
35925
- selectedItem: undefined,
35926
- selectedFeature: undefined,
35927
- seriesSelectorState: createDefaultSelectState('seriesSelectorState'),
35928
- featureSelectorState: createDefaultSelectState('featureSelectorState')
35929
- });
35930
- if (currentCatalog._id !== newCatalog._id) {
35931
36778
  // Update URL only if the id changed
35932
36779
  navigate(path + newCatalog._id + (modules.length ? '/' + modules.join('/') : '') + (searchParams ? '?' + searchParams.toString() : ''));
35933
36780
  }
@@ -36756,27 +37603,22 @@ var CatalogSelector$1 = observer(CatalogSelector);
36756
37603
  var SeriesSelector = function SeriesSelector(_ref) {
36757
37604
  var modules = _ref.modules;
36758
37605
  var _useTranslation = useTranslation(),
36759
- t = _useTranslation.t,
36760
- i18n = _useTranslation.i18n;
36761
- var _useCatalogContext = useCatalogContext(modules),
36762
- catalogId = _useCatalogContext.catalogId,
36763
- idmService = _useCatalogContext.idmService,
36764
- selectedSerie = _useCatalogContext.selectedSerie,
36765
- setSelectedSerie = _useCatalogContext.setSelectedSerie,
36766
- seriesSelectorState = _useCatalogContext.seriesSelectorState;
37606
+ t = _useTranslation.t;
37607
+ var _useSeriesSelector = useSeriesSelector(modules),
37608
+ catalogId = _useSeriesSelector.catalogId,
37609
+ seriesSelectorState = _useSeriesSelector.seriesSelectorState,
37610
+ apiInterface = _useSeriesSelector.apiInterface,
37611
+ selectedSerie = _useSeriesSelector.selectedSerie,
37612
+ onChange = _useSeriesSelector.onChange,
37613
+ selectMapping = _useSeriesSelector.selectMapping;
36767
37614
  return /*#__PURE__*/jsx(SimpleSelect, {
36768
37615
  sharedState: seriesSelectorState,
36769
- apiInterface: {
36770
- read: idmService + '/v3.0/catalogs/' + catalogId + "/series?fields=seriesName[".concat(i18n.language.toLocaleUpperCase(), "];_id;serieNo;pricefeaturegroups;pricefeaturegroupsDisplayTexts;pricefeaturegroupsKeys;pricefeaturegroupsKeysDisplayTexts")
36771
- },
36772
- selectMapping: {
36773
- label: "${seriesName.".concat(i18n.language.toLocaleUpperCase(), "}"),
36774
- value: '${_id}'
36775
- },
37616
+ apiInterface: apiInterface,
37617
+ selectMapping: selectMapping,
36776
37618
  autoSelectFirst: true,
36777
37619
  title: t('backoffice.menu.items.label.IDMCatalogEditorTableSeries'),
36778
37620
  value: selectedSerie,
36779
- onChange: setSelectedSerie,
37621
+ onChange: onChange,
36780
37622
  search: true,
36781
37623
  style: {
36782
37624
  width: 200
@@ -36785,6 +37627,95 @@ var SeriesSelector = function SeriesSelector(_ref) {
36785
37627
  }, catalogId);
36786
37628
  };
36787
37629
  var SeriesSelector$1 = observer(SeriesSelector);
37630
+ var useSeriesSelector = function useSeriesSelector(modules) {
37631
+ var _useTranslation2 = useTranslation(),
37632
+ i18n = _useTranslation2.i18n;
37633
+ var root = useStore();
37634
+ var _useCatalogContext = useCatalogContext(modules),
37635
+ catalogId = _useCatalogContext.catalogId,
37636
+ idmService = _useCatalogContext.idmService,
37637
+ selectedSerie = _useCatalogContext.selectedSerie,
37638
+ setSelectedSerie = _useCatalogContext.setSelectedSerie,
37639
+ seriesSelectorState = _useCatalogContext.seriesSelectorState;
37640
+ var _useState = useState(selectedSerie),
37641
+ _useState2 = _slicedToArray(_useState, 2),
37642
+ selected = _useState2[0],
37643
+ setSelected = _useState2[1];
37644
+ var apiInterface = {
37645
+ read: idmService + "/v3.0/catalogs/".concat(catalogId, "/series?fields=seriesName[").concat(i18n.language.toLocaleUpperCase(), "];_id")
37646
+ };
37647
+ var selectMapping = {
37648
+ label: "${seriesName.".concat(i18n.language.toLocaleUpperCase(), "}"),
37649
+ value: '${_id}'
37650
+ };
37651
+ var fetchSerie = /*#__PURE__*/function () {
37652
+ var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(newSerie) {
37653
+ var _seriesSelectorState$, _seriesSelectorState$2;
37654
+ var isLoaded, api, serie, option;
37655
+ return _regeneratorRuntime.wrap(function _callee$(_context) {
37656
+ while (1) switch (_context.prev = _context.next) {
37657
+ case 0:
37658
+ if (newSerie) {
37659
+ _context.next = 2;
37660
+ break;
37661
+ }
37662
+ return _context.abrupt("return");
37663
+ case 2:
37664
+ // if the extend series data is already loaded, use it
37665
+ isLoaded = !!((_seriesSelectorState$ = seriesSelectorState.options) !== null && _seriesSelectorState$ !== void 0 && (_seriesSelectorState$ = _seriesSelectorState$.find(function (option) {
37666
+ return option.value === (newSerie === null || newSerie === void 0 ? void 0 : newSerie._id);
37667
+ })) !== null && _seriesSelectorState$ !== void 0 && (_seriesSelectorState$ = _seriesSelectorState$.data) !== null && _seriesSelectorState$ !== void 0 && _seriesSelectorState$.serieNo);
37668
+ if (!isLoaded) {
37669
+ _context.next = 6;
37670
+ break;
37671
+ }
37672
+ setSelectedSerie(newSerie);
37673
+ return _context.abrupt("return");
37674
+ case 6:
37675
+ //fetching of pricefeatruegroups is slow, so we can't fetch it in the list, but only for the selected serie
37676
+ seriesSelectorState.setLoading(true);
37677
+ api = new _default$d({
37678
+ type: 'SelectSimple',
37679
+ apiInterface: {
37680
+ read: idmService + "/v3.0/catalogs/".concat(catalogId, "/series/").concat(newSerie._id, "?fields=seriesName[").concat(i18n.language.toLocaleUpperCase(), "];_id;serieNo;pricefeaturegroups;pricefeaturegroupsDisplayTexts;pricefeaturegroupsKeys;pricefeaturegroupsKeysDisplayTexts")
37681
+ }
37682
+ }, root);
37683
+ _context.next = 10;
37684
+ return api.read();
37685
+ case 10:
37686
+ serie = _context.sent;
37687
+ //save the extended series data in the options, without triggering state change
37688
+ option = (_seriesSelectorState$2 = seriesSelectorState.options) === null || _seriesSelectorState$2 === void 0 ? void 0 : _seriesSelectorState$2.find(function (option) {
37689
+ return option.value === newSerie._id;
37690
+ });
37691
+ if (option) {
37692
+ option.data = serie;
37693
+ }
37694
+ setSelectedSerie(serie);
37695
+ seriesSelectorState.setLoading(false);
37696
+ case 15:
37697
+ case "end":
37698
+ return _context.stop();
37699
+ }
37700
+ }, _callee);
37701
+ }));
37702
+ return function fetchSerie(_x) {
37703
+ return _ref2.apply(this, arguments);
37704
+ };
37705
+ }();
37706
+ var onChange = function onChange(value) {
37707
+ setSelected(value);
37708
+ fetchSerie(value);
37709
+ };
37710
+ return {
37711
+ catalogId: catalogId,
37712
+ seriesSelectorState: seriesSelectorState,
37713
+ apiInterface: apiInterface,
37714
+ selectMapping: selectMapping,
37715
+ selectedSerie: selected,
37716
+ onChange: onChange
37717
+ };
37718
+ };
36788
37719
 
36789
37720
  function useModule (currentModules) {
36790
37721
  var root = useStore();
@@ -37234,18 +38165,19 @@ var TableItems = observer(function () {
37234
38165
  apiConfig = _useModule.apiConfig,
37235
38166
  organizationId = _useModule.organizationId;
37236
38167
  useTools({
37237
- catalogId: catalogId,
37238
- serie: selectedSerie,
37239
- setSerie: setSelectedSerie,
37240
- setArticle: setSelectedItem,
37241
- item: selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.typeNo
37242
- });
38168
+ catalogId: catalogId,
38169
+ serie: selectedSerie,
38170
+ setSerie: setSelectedSerie,
38171
+ setArticle: setSelectedItem,
38172
+ item: selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.typeNo
38173
+ });
37243
38174
  var hooks = useMemo(function () {
37244
38175
  return {
37245
38176
  onCellSelectionChanged: function onCellSelectionChanged(event) {
37246
38177
  // Check if all selections are from the same node
37247
38178
  if (event.selection.length == 1) {
37248
- setSelectedItem(event.selection[0].node.data);
38179
+ var _event$selection$;
38180
+ setSelectedItem((_event$selection$ = event.selection[0]) === null || _event$selection$ === void 0 || (_event$selection$ = _event$selection$.node) === null || _event$selection$ === void 0 ? void 0 : _event$selection$.data);
37249
38181
  }
37250
38182
  }
37251
38183
  };
@@ -37278,9 +38210,9 @@ var TableSeries = observer(function () {
37278
38210
  var _useTranslation = useTranslation(),
37279
38211
  t = _useTranslation.t;
37280
38212
  var _useModule = useModule(['series']),
37281
- setGlobalSelectedSerie = _useModule.setSelectedSerie,
37282
38213
  selectedCatalog = _useModule.selectedCatalog,
37283
38214
  selectedGlobalSerie = _useModule.selectedSerie,
38215
+ setGlobalSelectedSerie = _useModule.setSelectedSerie,
37284
38216
  catalogId = _useModule.catalogId,
37285
38217
  organizationId = _useModule.organizationId,
37286
38218
  apiConfig = _useModule.apiConfig;
@@ -37324,8 +38256,9 @@ var TableSeries = observer(function () {
37324
38256
  return {
37325
38257
  onCellSelectionChanged: function onCellSelectionChanged(event) {
37326
38258
  if (event.selection.length == 1) {
37327
- setGlobalSelectedSerie(event.selection[0].node.data);
37328
- setSelectedSerie(event.selection[0].node.data);
38259
+ var _event$selection$, _event$selection$2;
38260
+ setGlobalSelectedSerie((_event$selection$ = event.selection[0]) === null || _event$selection$ === void 0 || (_event$selection$ = _event$selection$.node) === null || _event$selection$ === void 0 ? void 0 : _event$selection$.data);
38261
+ setSelectedSerie((_event$selection$2 = event.selection[0]) === null || _event$selection$2 === void 0 || (_event$selection$2 = _event$selection$2.node) === null || _event$selection$2 === void 0 ? void 0 : _event$selection$2.data);
37329
38262
  } else {
37330
38263
  setSelectedSerie(null);
37331
38264
  }
@@ -37661,8 +38594,9 @@ var TableFeatures = observer(function () {
37661
38594
  onCellSelectionChanged: function onCellSelectionChanged(event) {
37662
38595
  // Check if all selections are from the same node
37663
38596
  if (event.selection.length == 1) {
38597
+ var _event$selection$;
37664
38598
  updateConfigurator({
37665
- opt: event.selection[0].node.data.featureNo
38599
+ opt: (_event$selection$ = event.selection[0]) === null || _event$selection$ === void 0 || (_event$selection$ = _event$selection$.node) === null || _event$selection$ === void 0 || (_event$selection$ = _event$selection$.data) === null || _event$selection$ === void 0 ? void 0 : _event$selection$.featureNo
37666
38600
  });
37667
38601
  }
37668
38602
  }
@@ -37869,8 +38803,9 @@ var TableOptions = observer(function () {
37869
38803
  onCellSelectionChanged: function onCellSelectionChanged(event) {
37870
38804
  // Check if all selections are from the same node
37871
38805
  if (event.selection.length == 1) {
38806
+ var _event$selection$;
37872
38807
  updateConfigurator({
37873
- opv: event.selection[0].node.data.optionKey
38808
+ opv: (_event$selection$ = event.selection[0]) === null || _event$selection$ === void 0 || (_event$selection$ = _event$selection$.node) === null || _event$selection$ === void 0 || (_event$selection$ = _event$selection$.data) === null || _event$selection$ === void 0 ? void 0 : _event$selection$.optionKey
37874
38809
  });
37875
38810
  }
37876
38811
  }
@@ -41502,7 +42437,7 @@ function ownKeys$5(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymb
41502
42437
  function _objectSpread$5(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$5(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$5(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
41503
42438
  var ArticleSelection = function ArticleSelection(_ref) {
41504
42439
  var _ref$state = _ref.state,
41505
- articleList = _ref$state.articleList,
42440
+ itemList = _ref$state.itemList,
41506
42441
  articleCodex = _ref$state.articleCodex,
41507
42442
  setArticleCodex = _ref$state.setArticleCodex,
41508
42443
  setDoReset = _ref$state.setDoReset,
@@ -41514,7 +42449,7 @@ var ArticleSelection = function ArticleSelection(_ref) {
41514
42449
  var groups = [];
41515
42450
  var _loop = function _loop() {
41516
42451
  var _mask$articles;
41517
- var article = articleList[i];
42452
+ var article = itemList[i];
41518
42453
  if (mask !== null && mask !== void 0 && (_mask$articles = mask.articles) !== null && _mask$articles !== void 0 && _mask$articles[article.value].hidden) return 1; // continue
41519
42454
  if (!article.groupName) article.groupName = 'NONE';
41520
42455
  var group = groups.find(function (g) {
@@ -41530,7 +42465,7 @@ var ArticleSelection = function ArticleSelection(_ref) {
41530
42465
  });
41531
42466
  }
41532
42467
  };
41533
- for (var i = 0; i < articleList.length; i++) {
42468
+ for (var i = 0; i < itemList.length; i++) {
41534
42469
  if (_loop()) continue;
41535
42470
  }
41536
42471
  return groups.map(function (g) {
@@ -41538,7 +42473,7 @@ var ArticleSelection = function ArticleSelection(_ref) {
41538
42473
  label: t('configuration.group.' + g.label, g.label)
41539
42474
  });
41540
42475
  });
41541
- }, [articleList]);
42476
+ }, [itemList]);
41542
42477
  return /*#__PURE__*/jsxs("div", {
41543
42478
  className: wrapper$1,
41544
42479
  children: [/*#__PURE__*/jsx(Select$1, {
@@ -41585,26 +42520,30 @@ function useWysiwyg$1(_ref) {
41585
42520
  setArticleCodex = _useState6[1];
41586
42521
  var _useState7 = useState([]),
41587
42522
  _useState8 = _slicedToArray(_useState7, 2),
41588
- articleList = _useState8[0],
41589
- setArticleList = _useState8[1];
42523
+ itemList = _useState8[0],
42524
+ setItemList = _useState8[1];
41590
42525
  var _useState9 = useState({
41591
42526
  catalogCodex: (_tool$parameters = tool.parameters) === null || _tool$parameters === void 0 ? void 0 : _tool$parameters.catalogCodex
41592
42527
  }),
41593
42528
  _useState10 = _slicedToArray(_useState9, 2),
41594
- catalog = _useState10[0],
41595
- setCatalog = _useState10[1];
42529
+ serie = _useState10[0],
42530
+ setSerie = _useState10[1];
41596
42531
  var _useState11 = useState([]),
41597
42532
  _useState12 = _slicedToArray(_useState11, 2),
41598
- catalogList = _useState12[0],
41599
- setCatalogList = _useState12[1];
41600
- var _useState13 = useState(),
42533
+ serieList = _useState12[0],
42534
+ setSerieList = _useState12[1];
42535
+ var _useState13 = useState(tool.parameters.catalogId),
41601
42536
  _useState14 = _slicedToArray(_useState13, 2),
41602
- currentNav = _useState14[0],
41603
- setCurrentNav = _useState14[1];
42537
+ catalogId = _useState14[0],
42538
+ setCatalogId = _useState14[1];
41604
42539
  var _useState15 = useState(),
41605
42540
  _useState16 = _slicedToArray(_useState15, 2),
41606
- doNavigate = _useState16[0],
41607
- setDoNavigate = _useState16[1];
42541
+ currentNav = _useState16[0],
42542
+ setCurrentNav = _useState16[1];
42543
+ var _useState17 = useState(),
42544
+ _useState18 = _slicedToArray(_useState17, 2),
42545
+ doNavigate = _useState18[0],
42546
+ setDoNavigate = _useState18[1];
41608
42547
  useEffect(function () {
41609
42548
  if (!toolbar.hidden) setDoReset(true);
41610
42549
  }, [toolbar.hidden]);
@@ -41667,7 +42606,8 @@ function useWysiwyg$1(_ref) {
41667
42606
  });
41668
42607
  case 3:
41669
42608
  d = _context2.sent;
41670
- _context2.next = 6;
42609
+ setCatalogId(d._id);
42610
+ _context2.next = 7;
41671
42611
  return fetch(root.configurationStore.apiConfig.enricherService + '/wysiwyg/v3.0/' + id + '/catalogs/' + d._id + '/series', {
41672
42612
  method: 'GET',
41673
42613
  headers: _objectSpread$4({}, jwt ? {
@@ -41682,10 +42622,10 @@ function useWysiwyg$1(_ref) {
41682
42622
  return undefined;
41683
42623
  }
41684
42624
  });
41685
- case 6:
42625
+ case 7:
41686
42626
  s = _context2.sent;
41687
- setCatalogList(s.data);
41688
- case 8:
42627
+ setSerieList(s.data);
42628
+ case 9:
41689
42629
  case "end":
41690
42630
  return _context2.stop();
41691
42631
  }
@@ -41719,7 +42659,7 @@ function useWysiwyg$1(_ref) {
41719
42659
  });
41720
42660
  case 3:
41721
42661
  l = _context3.sent;
41722
- setCatalogList(l.data);
42662
+ setSerieList(l.data);
41723
42663
  case 5:
41724
42664
  case "end":
41725
42665
  return _context3.stop();
@@ -41734,7 +42674,7 @@ function useWysiwyg$1(_ref) {
41734
42674
  if (doReset) {
41735
42675
  var _tool$elementProps, _tool$elementProps3;
41736
42676
  if (currentNav) setDoNavigate(currentNav);
41737
- if ((_tool$elementProps = tool.elementProps) !== null && _tool$elementProps !== void 0 && _tool$elementProps.showCatalogSelection && !catalogList.length) {
42677
+ if ((_tool$elementProps = tool.elementProps) !== null && _tool$elementProps !== void 0 && _tool$elementProps.showCatalogSelection && !serieList.length) {
41738
42678
  var _tool$elementProps2;
41739
42679
  if ((_tool$elementProps2 = tool.elementProps) !== null && _tool$elementProps2 !== void 0 && _tool$elementProps2.loadPackage) {
41740
42680
  loadPackage(tool.parameters.packageId);
@@ -41753,20 +42693,20 @@ function useWysiwyg$1(_ref) {
41753
42693
  }, [doReset]);
41754
42694
  useEffect(function () {
41755
42695
  setArticleCodex(undefined);
41756
- if (catalog !== null && catalog !== void 0 && catalog.catalogCodex) {
42696
+ if (serie !== null && serie !== void 0 && serie.catalogCodex) {
41757
42697
  var _tool$parameters$pack;
41758
42698
  setMask({
41759
- catalogCodex: catalog.catalogCodex,
42699
+ catalogCodex: serie.catalogCodex,
41760
42700
  accountId: (_tool$parameters$pack = tool.parameters.packageId) !== null && _tool$parameters$pack !== void 0 ? _tool$parameters$pack : tool.parameters.catalogId
41761
42701
  });
41762
42702
  }
41763
- }, [catalog]);
42703
+ }, [serie]);
41764
42704
  useEffect(function () {
41765
42705
  setDoReset(true);
41766
42706
  setArticleCodex(undefined);
41767
- setCatalog(undefined);
41768
- setArticleList([]);
41769
- setCatalogList([]);
42707
+ setSerie(undefined);
42708
+ setItemList([]);
42709
+ setSerieList([]);
41770
42710
  }, [tool.parameters.catalogId, tool.parameters.packageId]);
41771
42711
  var onEventCalled = /*#__PURE__*/function () {
41772
42712
  var _ref5 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee4(e) {
@@ -41785,7 +42725,7 @@ function useWysiwyg$1(_ref) {
41785
42725
  groupName: article.groupName
41786
42726
  });
41787
42727
  }
41788
- setArticleList(articles);
42728
+ setItemList(articles);
41789
42729
  if (articleCodex === undefined && articles !== null && articles !== void 0 && (_articles$ = articles[0]) !== null && _articles$ !== void 0 && _articles$.value) setArticleCodex(articles[0].value);
41790
42730
  }
41791
42731
  if (e.type === 'navigatedToOption') {
@@ -41892,20 +42832,21 @@ function useWysiwyg$1(_ref) {
41892
42832
  };
41893
42833
  }, []);
41894
42834
  return {
41895
- articleList: articleList,
41896
- setArticleList: setArticleList,
42835
+ itemList: itemList,
42836
+ setItemList: setItemList,
41897
42837
  articleCodex: articleCodex,
41898
42838
  setArticleCodex: setArticleCodex,
41899
- catalogList: catalogList,
41900
- setCatalogList: setCatalogList,
41901
- catalog: catalog,
41902
- setCatalog: setCatalog,
42839
+ serieList: serieList,
42840
+ setSerieList: setSerieList,
42841
+ serie: serie,
42842
+ setSerie: setSerie,
41903
42843
  settings: settings,
41904
42844
  mask: mask,
41905
42845
  doReset: doReset,
41906
42846
  setDoReset: setDoReset,
41907
42847
  doNavigate: doNavigate,
41908
- setDoNavigate: setDoNavigate
42848
+ setDoNavigate: setDoNavigate,
42849
+ catalogId: catalogId
41909
42850
  };
41910
42851
  }
41911
42852
 
@@ -41957,27 +42898,27 @@ styleInject(css_248z$2);
41957
42898
 
41958
42899
  var CatalogSelection = function CatalogSelection(_ref) {
41959
42900
  var _ref$state = _ref.state,
41960
- catalogList = _ref$state.catalogList,
41961
- catalog = _ref$state.catalog,
41962
- setCatalog = _ref$state.setCatalog,
42901
+ serieList = _ref$state.serieList,
42902
+ serie = _ref$state.serie,
42903
+ setSerie = _ref$state.setSerie,
41963
42904
  setArticleCodex = _ref$state.setArticleCodex,
41964
- setSerie = _ref.setSerie;
42905
+ setSerieProp = _ref.setSerie;
41965
42906
  var _useTranslation = useTranslation(),
41966
42907
  t = _useTranslation.t,
41967
42908
  language = _useTranslation.i18n.language;
41968
42909
  var options = useMemo(function () {
41969
42910
  var groups = [];
41970
- for (var i = 0; i < catalogList.length; i++) {
41971
- var c = catalogList[i];
42911
+ for (var i = 0; i < serieList.length; i++) {
42912
+ var c = serieList[i];
41972
42913
  groups.push({
41973
42914
  value: c.serieNo.toString(),
41974
42915
  label: c.seriesName[language.toUpperCase()]
41975
42916
  });
41976
42917
  }
41977
42918
  return groups;
41978
- }, [catalogList]);
42919
+ }, [serieList]);
41979
42920
  var onChange = function onChange(val) {
41980
- var cat = catalogList.find(function (c) {
42921
+ var cat = serieList.find(function (c) {
41981
42922
  return c.serieNo.toString() == val;
41982
42923
  });
41983
42924
  var catalog = cat ? {
@@ -41985,15 +42926,15 @@ var CatalogSelection = function CatalogSelection(_ref) {
41985
42926
  serieId: cat._id,
41986
42927
  accountId: cat.catalogId
41987
42928
  } : undefined;
41988
- setCatalog(catalog);
42929
+ setSerie(catalog);
41989
42930
  setArticleCodex(undefined);
41990
- setSerie === null || setSerie === void 0 || setSerie(cat);
42931
+ setSerieProp === null || setSerieProp === void 0 || setSerieProp(cat);
41991
42932
  };
41992
42933
  return /*#__PURE__*/jsx("div", {
41993
42934
  className: wrapper,
41994
42935
  children: /*#__PURE__*/jsx(Select$1, {
41995
42936
  placeholder: t('backoffice.configurator.serie.placeholder'),
41996
- value: catalog === null || catalog === void 0 ? void 0 : catalog.catalogCodex,
42937
+ value: serie === null || serie === void 0 ? void 0 : serie.catalogCodex,
41997
42938
  options: options,
41998
42939
  onChange: onChange,
41999
42940
  className: select
@@ -42005,7 +42946,7 @@ var CatalogSelection$1 = observer(CatalogSelection);
42005
42946
  function ownKeys$3(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
42006
42947
  function _objectSpread$3(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$3(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$3(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
42007
42948
  var Wsyiwyg = function Wsyiwyg(_ref) {
42008
- var _state$catalog, _tool$parameters, _state$articleCodex, _state$catalog$catalo, _state$catalog2, _state$mask2, _state$catalog3, _state$catalog$accoun, _state$catalog4, _state$mask3;
42949
+ var _state$serie, _tool$parameters, _state$articleCodex, _state$serie$catalogC, _state$serie2, _state$mask2, _state$serie3, _state$serie$accountI, _state$serie4, _state$mask3;
42009
42950
  var tool = _ref.tool,
42010
42951
  toolbar = _ref.toolbar;
42011
42952
  var _useDivaCore = useDivaCore(),
@@ -42024,17 +42965,32 @@ var Wsyiwyg = function Wsyiwyg(_ref) {
42024
42965
  }, [tool.parameters]);
42025
42966
  useEffect(function () {
42026
42967
  if (tool.elementProps.initSerie) {
42027
- state.setCatalog({
42028
- serieId: tool.elementProps.initSerie.serieId,
42029
- catalogCodex: tool.elementProps.initSerie.serieNo.toString()
42030
- });
42031
- state.setArticleCodex(undefined);
42968
+ if (tool.elementProps.useEnricherService) {
42969
+ var _state$serieList$find;
42970
+ var serie = {
42971
+ serieId: (_state$serieList$find = state.serieList.find(function (s) {
42972
+ return s.serieNo == tool.elementProps.initSerie.serieNo;
42973
+ })) === null || _state$serieList$find === void 0 ? void 0 : _state$serieList$find._id,
42974
+ catalogCodex: tool.elementProps.initSerie.serieNo.toString(),
42975
+ accountId: state.catalogId
42976
+ };
42977
+ if (JSON.stringify(state.serie) !== JSON.stringify(serie)) {
42978
+ state.setSerie(serie);
42979
+ state.setArticleCodex(undefined);
42980
+ }
42981
+ } else {
42982
+ state.setSerie({
42983
+ serieId: tool.elementProps.initSerie.serieId,
42984
+ catalogCodex: tool.elementProps.initSerie.serieNo.toString()
42985
+ });
42986
+ state.setArticleCodex(undefined);
42987
+ }
42032
42988
  }
42033
42989
  if (tool.elementProps.initItem) {
42034
42990
  state.setArticleCodex(tool.elementProps.initItem);
42035
42991
  }
42036
- }, [tool.elementProps.initItem, tool.elementProps.initSerie]);
42037
- if (!((_state$catalog = state.catalog) !== null && _state$catalog !== void 0 && _state$catalog.catalogCodex)) {
42992
+ }, [tool.elementProps.initItem, tool.elementProps.initSerie, state.serieList]);
42993
+ if (!((_state$serie = state.serie) !== null && _state$serie !== void 0 && _state$serie.catalogCodex)) {
42038
42994
  if (tool.elementProps.showCatalogSelection) {
42039
42995
  return /*#__PURE__*/jsx(CatalogSelection$1, {
42040
42996
  state: state,
@@ -42072,11 +43028,11 @@ var Wsyiwyg = function Wsyiwyg(_ref) {
42072
43028
  resetArticle: '',
42073
43029
  disableToggle: '1',
42074
43030
  startDivaNr: 'DIVA-000000',
42075
- catalogCodex: (_state$catalog$catalo = (_state$catalog2 = state.catalog) === null || _state$catalog2 === void 0 ? void 0 : _state$catalog2.catalogCodex) !== null && _state$catalog$catalo !== void 0 ? _state$catalog$catalo : (_state$mask2 = state.mask) === null || _state$mask2 === void 0 ? void 0 : _state$mask2.catalogCodex
42076
- }, (_state$catalog3 = state.catalog) !== null && _state$catalog3 !== void 0 && _state$catalog3.serieId ? {
42077
- serieId: state.catalog.serieId
43031
+ catalogCodex: (_state$serie$catalogC = (_state$serie2 = state.serie) === null || _state$serie2 === void 0 ? void 0 : _state$serie2.catalogCodex) !== null && _state$serie$catalogC !== void 0 ? _state$serie$catalogC : (_state$mask2 = state.mask) === null || _state$mask2 === void 0 ? void 0 : _state$mask2.catalogCodex
43032
+ }, (_state$serie3 = state.serie) !== null && _state$serie3 !== void 0 && _state$serie3.serieId ? {
43033
+ serieId: state.serie.serieId
42078
43034
  } : {}), {}, {
42079
- accountGuid: (_state$catalog$accoun = (_state$catalog4 = state.catalog) === null || _state$catalog4 === void 0 ? void 0 : _state$catalog4.accountId) !== null && _state$catalog$accoun !== void 0 ? _state$catalog$accoun : (_state$mask3 = state.mask) === null || _state$mask3 === void 0 ? void 0 : _state$mask3.accountId,
43035
+ accountGuid: (_state$serie$accountI = (_state$serie4 = state.serie) === null || _state$serie4 === void 0 ? void 0 : _state$serie4.accountId) !== null && _state$serie$accountI !== void 0 ? _state$serie$accountI : (_state$mask3 = state.mask) === null || _state$mask3 === void 0 ? void 0 : _state$mask3.accountId,
42080
43036
  returnTo: 'DONT_SAVE_BASKET',
42081
43037
  organizationId: organizationId,
42082
43038
  no3DConnection: 'true'