@snabcentr/common-lib 2.10.0 → 2.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (179) hide show
  1. package/dist/manifest.json +1 -1
  2. package/dist/release_notes.tmp +4 -2
  3. package/dist/sc-common-lib.js +997 -997
  4. package/dist/sc-common-lib.js.map +1 -1
  5. package/dist/sc-common-lib.umd.cjs +1 -1
  6. package/dist/sc-common-lib.umd.cjs.map +1 -1
  7. package/dist/src/cart/interfaces/i-base-cart-validation-result.d.ts +2 -1
  8. package/dist/src/cart/interfaces/i-base-cart-validation-result.d.ts.map +1 -1
  9. package/dist/src/cart/providers/cart-provider.d.ts +1 -1
  10. package/dist/src/cart/providers/cart-provider.d.ts.map +1 -1
  11. package/dist/src/catalog/classes/price-template.d.ts +1 -1
  12. package/dist/src/catalog/classes/price-template.d.ts.map +1 -1
  13. package/dist/src/catalog/interfaces/i-discount-short-info.d.ts +1 -1
  14. package/dist/src/catalog/interfaces/i-discount-short-info.d.ts.map +1 -1
  15. package/dist/src/catalog/interfaces/i-pricing-role-create-data.d.ts +1 -1
  16. package/dist/src/catalog/interfaces/i-pricing-role-create-data.d.ts.map +1 -1
  17. package/dist/src/catalog/interfaces/i-pricing-role.d.ts +1 -1
  18. package/dist/src/catalog/interfaces/i-pricing-role.d.ts.map +1 -1
  19. package/dist/src/catalog/interfaces/i-product-price-coefficient.d.ts +1 -1
  20. package/dist/src/catalog/interfaces/i-product-price-coefficient.d.ts.map +1 -1
  21. package/dist/src/catalog/interfaces/i-property-type.d.ts +1 -1
  22. package/dist/src/catalog/interfaces/i-property-type.d.ts.map +1 -1
  23. package/dist/src/catalog/providers/client-price-provider.d.ts +5 -1
  24. package/dist/src/catalog/providers/client-price-provider.d.ts.map +1 -1
  25. package/dist/src/catalog/providers/client-price-template-provider.d.ts +2 -1
  26. package/dist/src/catalog/providers/client-price-template-provider.d.ts.map +1 -1
  27. package/dist/src/catalog/providers/price-template-provider.d.ts +10 -3
  28. package/dist/src/catalog/providers/price-template-provider.d.ts.map +1 -1
  29. package/dist/src/catalog/providers/properties-provider.d.ts +11 -5
  30. package/dist/src/catalog/providers/properties-provider.d.ts.map +1 -1
  31. package/dist/src/clients/classes/bank-account.d.ts +3 -3
  32. package/dist/src/clients/classes/bank-account.d.ts.map +1 -1
  33. package/dist/src/clients/classes/contragent/contragent-person.d.ts +1 -1
  34. package/dist/src/clients/classes/contragent/contragent-person.d.ts.map +1 -1
  35. package/dist/src/clients/classes/contragent/contragent-ul-nr.d.ts +2 -2
  36. package/dist/src/clients/classes/contragent/contragent-ul-nr.d.ts.map +1 -1
  37. package/dist/src/clients/classes/contragent/contragent-ul-r.d.ts +1 -1
  38. package/dist/src/clients/classes/contragent/contragent-ul-r.d.ts.map +1 -1
  39. package/dist/src/clients/classes/delivery-address.d.ts +3 -3
  40. package/dist/src/clients/classes/delivery-address.d.ts.map +1 -1
  41. package/dist/src/clients/interfaces/contragent/i-contragent-base.d.ts +5 -3
  42. package/dist/src/clients/interfaces/contragent/i-contragent-base.d.ts.map +1 -1
  43. package/dist/src/clients/interfaces/contragent/i-contragent-ul-nr.d.ts +1 -1
  44. package/dist/src/clients/interfaces/contragent/i-contragent-ul-nr.d.ts.map +1 -1
  45. package/dist/src/clients/interfaces/i-bank-account.d.ts +2 -2
  46. package/dist/src/clients/interfaces/i-bank-account.d.ts.map +1 -1
  47. package/dist/src/clients/interfaces/i-client-short-info.d.ts +3 -2
  48. package/dist/src/clients/interfaces/i-client-short-info.d.ts.map +1 -1
  49. package/dist/src/clients/interfaces/i-clients-list-filters.d.ts +7 -1
  50. package/dist/src/clients/interfaces/i-clients-list-filters.d.ts.map +1 -1
  51. package/dist/src/clients/interfaces/i-delivery-address.d.ts +3 -3
  52. package/dist/src/clients/interfaces/i-delivery-address.d.ts.map +1 -1
  53. package/dist/src/clients/providers/client-data-provider.d.ts +8 -8
  54. package/dist/src/clients/providers/client-data-provider.d.ts.map +1 -1
  55. package/dist/src/clients/providers/unknown-client-data-provider.d.ts +1 -1
  56. package/dist/src/clients/providers/unknown-client-data-provider.d.ts.map +1 -1
  57. package/dist/src/configurator/providers/configurator-provider.d.ts.map +1 -1
  58. package/dist/src/contacts/interfaces/i-contact-person.d.ts +2 -1
  59. package/dist/src/contacts/interfaces/i-contact-person.d.ts.map +1 -1
  60. package/dist/src/contacts/interfaces/i-contact-relation.d.ts +1 -1
  61. package/dist/src/contacts/interfaces/i-contact-relation.d.ts.map +1 -1
  62. package/dist/src/contacts/interfaces/i-contact.d.ts +1 -1
  63. package/dist/src/contacts/interfaces/i-contact.d.ts.map +1 -1
  64. package/dist/src/index.d.ts +1 -1
  65. package/dist/src/managers/interfaces/i-manager-common.d.ts +3 -3
  66. package/dist/src/managers/interfaces/i-manager-common.d.ts.map +1 -1
  67. package/dist/src/offers/interfaces/i-offer-short-info.d.ts +1 -1
  68. package/dist/src/offers/interfaces/i-offer-short-info.d.ts.map +1 -1
  69. package/dist/src/offers/providers/offers-data-provider.d.ts +4 -4
  70. package/dist/src/offers/providers/offers-data-provider.d.ts.map +1 -1
  71. package/dist/src/orders/classes/order-editor-data.d.ts +1 -1
  72. package/dist/src/orders/classes/order-editor-data.d.ts.map +1 -1
  73. package/dist/src/orders/classes/orders-list-filters.d.ts +2 -1
  74. package/dist/src/orders/classes/orders-list-filters.d.ts.map +1 -1
  75. package/dist/src/orders/interfaces/i-order-short-info.d.ts +2 -2
  76. package/dist/src/orders/interfaces/i-order-short-info.d.ts.map +1 -1
  77. package/dist/src/orders/providers/orders-data-provider.d.ts +4 -4
  78. package/dist/src/orders/providers/orders-data-provider.d.ts.map +1 -1
  79. package/dist/src/pagination/filters/pagination-filters-base.d.ts.map +1 -1
  80. package/dist/src/pagination/providers/base-pagination-provider.d.ts +4 -4
  81. package/dist/src/pagination/providers/base-pagination-provider.d.ts.map +1 -1
  82. package/dist/src/price-analyze/interfaces/i-price-analyze.d.ts +1 -1
  83. package/dist/src/price-analyze/interfaces/i-price-analyze.d.ts.map +1 -1
  84. package/dist/src/references/classes/currency.d.ts +1 -1
  85. package/dist/src/references/classes/currency.d.ts.map +1 -1
  86. package/dist/src/references/classes/product-unit.d.ts +1 -1
  87. package/dist/src/references/classes/product-unit.d.ts.map +1 -1
  88. package/dist/src/references/interfaces/i-channel-primary-interest.d.ts +1 -1
  89. package/dist/src/references/interfaces/i-channel-primary-interest.d.ts.map +1 -1
  90. package/dist/src/references/interfaces/i-city-with-region-and-country.d.ts +1 -1
  91. package/dist/src/references/interfaces/i-city-with-region-and-country.d.ts.map +1 -1
  92. package/dist/src/references/interfaces/i-city.d.ts +1 -1
  93. package/dist/src/references/interfaces/i-city.d.ts.map +1 -1
  94. package/dist/src/references/interfaces/i-contact-position.d.ts +1 -1
  95. package/dist/src/references/interfaces/i-contact-position.d.ts.map +1 -1
  96. package/dist/src/references/interfaces/i-country.d.ts +1 -1
  97. package/dist/src/references/interfaces/i-country.d.ts.map +1 -1
  98. package/dist/src/references/interfaces/i-curated-direction.d.ts +1 -1
  99. package/dist/src/references/interfaces/i-curated-direction.d.ts.map +1 -1
  100. package/dist/src/references/interfaces/i-currency.d.ts +1 -1
  101. package/dist/src/references/interfaces/i-currency.d.ts.map +1 -1
  102. package/dist/src/references/interfaces/i-delivery-type.d.ts +1 -1
  103. package/dist/src/references/interfaces/i-delivery-type.d.ts.map +1 -1
  104. package/dist/src/references/interfaces/i-operator.d.ts +1 -1
  105. package/dist/src/references/interfaces/i-operator.d.ts.map +1 -1
  106. package/dist/src/references/interfaces/i-opf.d.ts +1 -1
  107. package/dist/src/references/interfaces/i-opf.d.ts.map +1 -1
  108. package/dist/src/references/interfaces/i-order-payment-status.d.ts +1 -1
  109. package/dist/src/references/interfaces/i-order-payment-status.d.ts.map +1 -1
  110. package/dist/src/references/interfaces/i-order-status.d.ts +1 -1
  111. package/dist/src/references/interfaces/i-order-status.d.ts.map +1 -1
  112. package/dist/src/references/interfaces/i-partner-group.d.ts +1 -1
  113. package/dist/src/references/interfaces/i-partner-group.d.ts.map +1 -1
  114. package/dist/src/references/interfaces/i-payment-type.d.ts +1 -1
  115. package/dist/src/references/interfaces/i-payment-type.d.ts.map +1 -1
  116. package/dist/src/references/interfaces/i-product-file-type.d.ts +1 -1
  117. package/dist/src/references/interfaces/i-product-file-type.d.ts.map +1 -1
  118. package/dist/src/references/interfaces/i-product-unit.d.ts +1 -1
  119. package/dist/src/references/interfaces/i-product-unit.d.ts.map +1 -1
  120. package/dist/src/references/interfaces/i-region.d.ts +1 -1
  121. package/dist/src/references/interfaces/i-region.d.ts.map +1 -1
  122. package/dist/src/references/interfaces/i-sales-direction.d.ts +1 -1
  123. package/dist/src/references/interfaces/i-sales-direction.d.ts.map +1 -1
  124. package/dist/src/references/interfaces/i-source-primary-interest.d.ts +1 -1
  125. package/dist/src/references/interfaces/i-source-primary-interest.d.ts.map +1 -1
  126. package/dist/src/seo/providers/seo-data-provider.d.ts +1 -1
  127. package/dist/src/seo/providers/seo-data-provider.d.ts.map +1 -1
  128. package/dist/src/suggestion/interfaces/i-address-suggestion.d.ts +2 -2
  129. package/dist/src/suggestion/interfaces/i-address-suggestion.d.ts.map +1 -1
  130. package/dist/src/suggestion/interfaces/i-bank-suggestion.d.ts +1 -1
  131. package/dist/src/suggestion/interfaces/i-bank-suggestion.d.ts.map +1 -1
  132. package/dist/src/suggestion/interfaces/i-organization-suggestion.d.ts +2 -2
  133. package/dist/src/suggestion/interfaces/i-organization-suggestion.d.ts.map +1 -1
  134. package/dist/src/suggestion/providers/data-suggestion-provider.d.ts +5 -3
  135. package/dist/src/suggestion/providers/data-suggestion-provider.d.ts.map +1 -1
  136. package/dist/src/{data-table → table-data}/classes/filter-group.d.ts.map +1 -1
  137. package/dist/src/{data-table → table-data}/classes/filter-item.d.ts +2 -2
  138. package/dist/src/table-data/classes/filter-item.d.ts.map +1 -0
  139. package/dist/src/table-data/classes/index.d.ts +6 -0
  140. package/dist/src/{data-table → table-data}/classes/index.d.ts.map +1 -1
  141. package/dist/src/{data-table/classes/data-table-pagination-request-params.d.ts → table-data/classes/table-data-pagination-request-params.d.ts} +3 -3
  142. package/dist/src/table-data/classes/table-data-pagination-request-params.d.ts.map +1 -0
  143. package/dist/src/{data-table/classes/data-table-pagination.d.ts → table-data/classes/table-data-pagination.d.ts} +4 -4
  144. package/dist/src/{data-table/classes/data-table-pagination.d.ts.map → table-data/classes/table-data-pagination.d.ts.map} +1 -1
  145. package/dist/src/{data-table/classes/data-table-sort-request-params.d.ts → table-data/classes/table-data-sort-request-params.d.ts} +2 -2
  146. package/dist/src/table-data/classes/table-data-sort-request-params.d.ts.map +1 -0
  147. package/dist/src/{data-table → table-data}/enums/filter-op-enum.d.ts.map +1 -1
  148. package/dist/src/table-data/enums/index.d.ts.map +1 -0
  149. package/dist/src/table-data/index.d.ts.map +1 -0
  150. package/dist/src/table-data/interfaces/i-filter-group.d.ts.map +1 -0
  151. package/dist/src/{data-table → table-data}/interfaces/i-filter-item.d.ts +2 -2
  152. package/dist/src/table-data/interfaces/i-filter-item.d.ts.map +1 -0
  153. package/dist/src/{data-table → table-data}/interfaces/i-pagination-request-params.d.ts.map +1 -1
  154. package/dist/src/{data-table → table-data}/interfaces/i-pagination.d.ts.map +1 -1
  155. package/dist/src/{data-table → table-data}/interfaces/i-sort-request-params.d.ts.map +1 -1
  156. package/dist/src/{data-table → table-data}/interfaces/index.d.ts +0 -1
  157. package/dist/src/table-data/interfaces/index.d.ts.map +1 -0
  158. package/dist/src/user/classes/user-short-info.d.ts +1 -1
  159. package/dist/src/user/classes/user-short-info.d.ts.map +1 -1
  160. package/package.json +1 -1
  161. package/dist/src/data-table/classes/data-table-pagination-request-params.d.ts.map +0 -1
  162. package/dist/src/data-table/classes/data-table-sort-request-params.d.ts.map +0 -1
  163. package/dist/src/data-table/classes/filter-item.d.ts.map +0 -1
  164. package/dist/src/data-table/classes/index.d.ts +0 -6
  165. package/dist/src/data-table/enums/index.d.ts.map +0 -1
  166. package/dist/src/data-table/index.d.ts.map +0 -1
  167. package/dist/src/data-table/interfaces/i-filter-group.d.ts.map +0 -1
  168. package/dist/src/data-table/interfaces/i-filter-item.d.ts.map +0 -1
  169. package/dist/src/data-table/interfaces/i-filter-range-value.d.ts +0 -17
  170. package/dist/src/data-table/interfaces/i-filter-range-value.d.ts.map +0 -1
  171. package/dist/src/data-table/interfaces/index.d.ts.map +0 -1
  172. /package/dist/src/{data-table → table-data}/classes/filter-group.d.ts +0 -0
  173. /package/dist/src/{data-table → table-data}/enums/filter-op-enum.d.ts +0 -0
  174. /package/dist/src/{data-table → table-data}/enums/index.d.ts +0 -0
  175. /package/dist/src/{data-table → table-data}/index.d.ts +0 -0
  176. /package/dist/src/{data-table → table-data}/interfaces/i-filter-group.d.ts +0 -0
  177. /package/dist/src/{data-table → table-data}/interfaces/i-pagination-request-params.d.ts +0 -0
  178. /package/dist/src/{data-table → table-data}/interfaces/i-pagination.d.ts +0 -0
  179. /package/dist/src/{data-table → table-data}/interfaces/i-sort-request-params.d.ts +0 -0
@@ -6,7 +6,7 @@ import { merge as he, isNil as $, isEmpty as re, noop as v, mapValues as ur, isA
6
6
  import { objectToCamel as je, objectToSnake as Qe } from "ts-case-convert";
7
7
  import { defineStore as W } from "pinia";
8
8
  import { ref as y, markRaw as zr, computed as R } from "vue";
9
- import { isAfter as Ye, parseISO as C, startOfToday as qe, format as L, addSeconds as Wr, addBusinessDays as Jr, endOfTomorrow as Er, startOfTomorrow as Vr, endOfYesterday as Kr, startOfYesterday as Qr, endOfToday as Yr, endOfDay as Xr, startOfDay as Zr } from "date-fns";
9
+ import { isAfter as Ye, parseISO as C, startOfToday as qe, format as L, addBusinessDays as Wr, endOfTomorrow as Jr, startOfTomorrow as Er, endOfYesterday as Vr, startOfYesterday as Kr, endOfToday as Qr, endOfDay as Yr, startOfDay as Xr, addSeconds as Zr } from "date-fns";
10
10
  import et, { CanceledError as rt } from "axios";
11
11
  class M {
12
12
  /**
@@ -631,161 +631,6 @@ class S extends J {
631
631
  this.name = (e == null ? void 0 : e.name) ?? "";
632
632
  }
633
633
  }
634
- class ge extends S {
635
- /**
636
- * Инициализирует экземпляр класса {@link NamedIdentity}.
637
- *
638
- * @param data Данные для первоначальной инициализации.
639
- */
640
- constructor(e) {
641
- super(e);
642
- /**
643
- * @inheritDoc
644
- */
645
- s(this, "code", "");
646
- this.code = (e == null ? void 0 : e.code) ?? "";
647
- }
648
- }
649
- class w extends S {
650
- /**
651
- * Инициализирует экземпляр класса {@link Reference}.
652
- *
653
- * @param data Данные для первоначальной инициализации.
654
- */
655
- constructor(e) {
656
- super(e);
657
- /**
658
- * Краткое название.
659
- */
660
- s(this, "slug");
661
- /**
662
- * Описание.
663
- */
664
- s(this, "description");
665
- this.description = e == null ? void 0 : e.description, this.slug = e == null ? void 0 : e.slug;
666
- }
667
- }
668
- class hr extends S {
669
- /**
670
- * Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
671
- *
672
- * @param data Данные для первоначальной инициализации.
673
- */
674
- constructor(e) {
675
- super(e);
676
- /**
677
- * Дата и время последнего изменения.
678
- */
679
- s(this, "updatedAt");
680
- this.updatedAt = a(e == null ? void 0 : e.updatedAt) ? C(e.updatedAt) : e == null ? void 0 : e.updatedAt;
681
- }
682
- }
683
- class gr extends hr {
684
- /**
685
- * Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
686
- *
687
- * @param data Данные для первоначальной инициализации.
688
- */
689
- constructor(e) {
690
- super(e);
691
- /**
692
- * Дата и время последнего удаления.
693
- */
694
- s(this, "deletedAt");
695
- this.deletedAt = a(e == null ? void 0 : e.deletedAt) ? C(e.deletedAt) : e == null ? void 0 : e.deletedAt;
696
- }
697
- }
698
- class ct {
699
- /**
700
- * Инициализирует экземпляр класса {@link Image}.
701
- *
702
- * @param data Данные для первоначальной инициализации.
703
- * @param mediaServer URL адрес медиа сервера.
704
- */
705
- constructor(r, e) {
706
- /**
707
- * Путь к основному изображению.
708
- */
709
- s(this, "image");
710
- /**
711
- * Путь к предпросмотру изображения.
712
- */
713
- s(this, "preview");
714
- /**
715
- * Признак того, что изображение является основным.
716
- */
717
- s(this, "isDefault");
718
- this.image = `${e ?? ""}${r.image}`, this.preview = `${e ?? ""}${r.preview}`, this.isDefault = r.isDefault;
719
- }
720
- }
721
- class mr extends ge {
722
- /**
723
- * Инициализирует экземпляр класса {@link CatalogableItem}.
724
- *
725
- * @param data Данные для первоначальной инициализации.
726
- */
727
- constructor(e) {
728
- super(e);
729
- /**
730
- * Символьное обозначение.
731
- */
732
- s(this, "slug");
733
- /**
734
- * Тип элемента.
735
- */
736
- s(this, "type");
737
- this.slug = (e == null ? void 0 : e.slug) ?? "";
738
- }
739
- }
740
- class lt extends mr {
741
- /**
742
- * Инициализирует экземпляр класса {@link HiddenCatalogableItem}.
743
- *
744
- * @param data Данные для первоначальной инициализации.
745
- */
746
- constructor(e) {
747
- super(e);
748
- /**
749
- * Признак того, что категория скрыта.
750
- */
751
- s(this, "isHidden");
752
- this.isHidden = (e == null ? void 0 : e.isHidden) ?? !1;
753
- }
754
- }
755
- class Ne extends mr {
756
- /**
757
- * Инициализирует экземпляр класса {@link PrimaryCatalogableItem}.
758
- *
759
- * @param data Данные для первоначальной инициализации.
760
- */
761
- constructor(e) {
762
- super(e);
763
- /**
764
- * Признак того, что категория является основной для продукта.
765
- */
766
- s(this, "isPrimary");
767
- this.isPrimary = (e == null ? void 0 : e.isPrimary) ?? !1;
768
- }
769
- }
770
- class Ge {
771
- /**
772
- * Инициализирует экземпляр указанного класса.
773
- *
774
- * @param type Тип класса, на основе которого необходимо создать экземпляр (тип возвращаемых данных).
775
- */
776
- static simpleInstanceInitializer(r) {
777
- return new r();
778
- }
779
- /**
780
- * Инициализирует экземпляр указанного класса.
781
- *
782
- * @param type Тип класса, на основе которого необходимо создать экземпляр (тип возвращаемых данных).
783
- * @param data Начальные данные для инициализации (параметры конструктора).
784
- */
785
- static instanceInitializer(r, e) {
786
- return new r(e);
787
- }
788
- }
789
634
  class _ extends S {
790
635
  /**
791
636
  * Инициализирует экземпляр класса {@link UserShortInfo}.
@@ -801,7 +646,7 @@ class _ extends S {
801
646
  this.type = e == null ? void 0 : e.type;
802
647
  }
803
648
  }
804
- class ut extends S {
649
+ class ct extends S {
805
650
  /**
806
651
  * Инициализирует экземпляр класса {@link DiscountShortInfo}.
807
652
  *
@@ -840,6 +685,21 @@ class ut extends S {
840
685
  this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.isLowPriceAllowed = (e == null ? void 0 : e.isLowPriceAllowed) ?? !1, this.publishedAt = a(e == null ? void 0 : e.publishedAt) ? C(e.publishedAt) : e == null ? void 0 : e.publishedAt, this.description = (e == null ? void 0 : e.description) ?? void 0, this.percent = (e == null ? void 0 : e.percent) ?? 0, this.owner = new _(e == null ? void 0 : e.owner), this.deletedAt = a(e == null ? void 0 : e.deletedAt) ? C(e.deletedAt) : e == null ? void 0 : e.deletedAt;
841
686
  }
842
687
  }
688
+ class hr extends S {
689
+ /**
690
+ * Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
691
+ *
692
+ * @param data Данные для первоначальной инициализации.
693
+ */
694
+ constructor(e) {
695
+ super(e);
696
+ /**
697
+ * Дата и время последнего изменения.
698
+ */
699
+ s(this, "updatedAt");
700
+ this.updatedAt = a(e == null ? void 0 : e.updatedAt) ? C(e.updatedAt) : e == null ? void 0 : e.updatedAt;
701
+ }
702
+ }
843
703
  class Z extends hr {
844
704
  /**
845
705
  * Инициализирует экземпляр класса {@link PriceTemplate}.
@@ -859,16 +719,35 @@ class Z extends hr {
859
719
  this.description = (e == null ? void 0 : e.description) ?? "", this.createdAt = a(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date();
860
720
  }
861
721
  }
862
- var fr = /* @__PURE__ */ ((n) => (n.K0 = "k0", n.K1 = "k1", n.K2 = "k2", n.K3 = "k3", n.K4 = "k4", n.Retail = "retail", n))(fr || {});
722
+ var gr = /* @__PURE__ */ ((n) => (n.K0 = "k0", n.K1 = "k1", n.K2 = "k2", n.K3 = "k3", n.K4 = "k4", n.Retail = "retail", n))(gr || {});
723
+ class w extends S {
724
+ /**
725
+ * Инициализирует экземпляр класса {@link Reference}.
726
+ *
727
+ * @param data Данные для первоначальной инициализации.
728
+ */
729
+ constructor(e) {
730
+ super(e);
731
+ /**
732
+ * Краткое название.
733
+ */
734
+ s(this, "slug");
735
+ /**
736
+ * Описание.
737
+ */
738
+ s(this, "description");
739
+ this.description = e == null ? void 0 : e.description, this.slug = e == null ? void 0 : e.slug;
740
+ }
741
+ }
863
742
  class Ae extends w {
864
743
  /**
865
744
  * Возвращает значение справочника коэффициента розничной цены.
866
745
  */
867
746
  static getRetailPriceCoefficient() {
868
- return { id: -2, slug: fr.Retail, name: "Розн. цена", guid: "", isNewRec: Hr(!0) };
747
+ return { id: -2, slug: gr.Retail, name: "Розн. цена", guid: "", isNewRec: Hr(!0) };
869
748
  }
870
749
  }
871
- class Be {
750
+ class Ge {
872
751
  /**
873
752
  * Инициализирует экземпляр класса {@link ProductPriceCoefficient}.
874
753
  *
@@ -898,7 +777,7 @@ class Be {
898
777
  this.coefficient = new Ae(r == null ? void 0 : r.coefficient), this.value = (r == null ? void 0 : r.value) ?? 0, this.cost = (r == null ? void 0 : r.cost) ?? 0, this.percent = (r == null ? void 0 : r.percent) ?? 0, this.readOnly = (r == null ? void 0 : r.readOnly) ?? !0;
899
778
  }
900
779
  }
901
- class yr {
780
+ class mr {
902
781
  /**
903
782
  * Инициализирует экземпляр класса {@link GeoCoordinates}.
904
783
  *
@@ -947,10 +826,10 @@ class we extends w {
947
826
  * Координаты склада.
948
827
  */
949
828
  s(this, "coordinates");
950
- this.address = (e == null ? void 0 : e.address) ?? "", this.isMain = (e == null ? void 0 : e.isMain) ?? !1, this.deliveryTypes = ((t = e == null ? void 0 : e.deliveryTypes) == null ? void 0 : t.map((i) => new F(i))) ?? [], this.regions = (e == null ? void 0 : e.regions) ?? [], this.coordinates = new yr(e == null ? void 0 : e.coordinates);
829
+ this.address = (e == null ? void 0 : e.address) ?? "", this.isMain = (e == null ? void 0 : e.isMain) ?? !1, this.deliveryTypes = ((t = e == null ? void 0 : e.deliveryTypes) == null ? void 0 : t.map((i) => new F(i))) ?? [], this.regions = (e == null ? void 0 : e.regions) ?? [], this.coordinates = new mr(e == null ? void 0 : e.coordinates);
951
830
  }
952
831
  }
953
- class pt {
832
+ class lt {
954
833
  /**
955
834
  * Инициализирует экземпляр класса {@link StockCount}.
956
835
  *
@@ -1022,51 +901,138 @@ class Ze extends S {
1022
901
  e && (this.slug = e.slug ?? "", this.description = e.description, this.isSquare = e.isSquare ?? !1, this.isLinear = e.isLinear ?? !1);
1023
902
  }
1024
903
  }
1025
- class I extends lt {
904
+ class ge extends S {
1026
905
  /**
1027
- * Инициализирует экземпляр класса {@link Product}.
906
+ * Инициализирует экземпляр класса {@link NamedIdentity}.
1028
907
  *
1029
908
  * @param data Данные для первоначальной инициализации.
1030
909
  */
1031
910
  constructor(e) {
1032
- var i, o, c, u;
1033
911
  super(e);
1034
912
  /**
1035
- * Артикул производителя/поставщика.
1036
- */
1037
- s(this, "supplierSku");
1038
- /**
1039
- * Единица измерения.
1040
- */
1041
- s(this, "unit");
1042
- /**
1043
- * Норма упаковки.
913
+ * @inheritDoc
1044
914
  */
1045
- s(this, "pack");
915
+ s(this, "code", "");
916
+ this.code = (e == null ? void 0 : e.code) ?? "";
917
+ }
918
+ }
919
+ class fr extends ge {
920
+ /**
921
+ * Инициализирует экземпляр класса {@link CatalogableItem}.
922
+ *
923
+ * @param data Данные для первоначальной инициализации.
924
+ */
925
+ constructor(e) {
926
+ super(e);
1046
927
  /**
1047
- * Минимальное количество товара для заказа.
928
+ * Символьное обозначение.
1048
929
  */
1049
- s(this, "minCount");
930
+ s(this, "slug");
1050
931
  /**
1051
- * Валюта товара или услуги.
932
+ * Тип элемента.
1052
933
  */
1053
- s(this, "currency");
934
+ s(this, "type");
935
+ this.slug = (e == null ? void 0 : e.slug) ?? "";
936
+ }
937
+ }
938
+ class ut extends fr {
939
+ /**
940
+ * Инициализирует экземпляр класса {@link HiddenCatalogableItem}.
941
+ *
942
+ * @param data Данные для первоначальной инициализации.
943
+ */
944
+ constructor(e) {
945
+ super(e);
1054
946
  /**
1055
- * Стоимость товара или услуги.
947
+ * Признак того, что категория скрыта.
1056
948
  */
1057
- s(this, "cost");
949
+ s(this, "isHidden");
950
+ this.isHidden = (e == null ? void 0 : e.isHidden) ?? !1;
951
+ }
952
+ }
953
+ class pt {
954
+ /**
955
+ * Инициализирует экземпляр класса {@link Image}.
956
+ *
957
+ * @param data Данные для первоначальной инициализации.
958
+ * @param mediaServer URL адрес медиа сервера.
959
+ */
960
+ constructor(r, e) {
1058
961
  /**
1059
- * Стоимость продукта в рублях.
962
+ * Путь к основному изображению.
1060
963
  */
1061
- s(this, "costRub");
964
+ s(this, "image");
1062
965
  /**
1063
- * Дата установки цены.
966
+ * Путь к предпросмотру изображения.
1064
967
  */
1065
- s(this, "costDate");
968
+ s(this, "preview");
1066
969
  /**
1067
- * Признак товара "Под заказ".
970
+ * Признак того, что изображение является основным.
1068
971
  */
1069
- s(this, "onOrder");
972
+ s(this, "isDefault");
973
+ this.image = `${e ?? ""}${r.image}`, this.preview = `${e ?? ""}${r.preview}`, this.isDefault = r.isDefault;
974
+ }
975
+ }
976
+ class Ne extends fr {
977
+ /**
978
+ * Инициализирует экземпляр класса {@link PrimaryCatalogableItem}.
979
+ *
980
+ * @param data Данные для первоначальной инициализации.
981
+ */
982
+ constructor(e) {
983
+ super(e);
984
+ /**
985
+ * Признак того, что категория является основной для продукта.
986
+ */
987
+ s(this, "isPrimary");
988
+ this.isPrimary = (e == null ? void 0 : e.isPrimary) ?? !1;
989
+ }
990
+ }
991
+ class I extends ut {
992
+ /**
993
+ * Инициализирует экземпляр класса {@link Product}.
994
+ *
995
+ * @param data Данные для первоначальной инициализации.
996
+ */
997
+ constructor(e) {
998
+ var i, o, c, u;
999
+ super(e);
1000
+ /**
1001
+ * Артикул производителя/поставщика.
1002
+ */
1003
+ s(this, "supplierSku");
1004
+ /**
1005
+ * Единица измерения.
1006
+ */
1007
+ s(this, "unit");
1008
+ /**
1009
+ * Норма упаковки.
1010
+ */
1011
+ s(this, "pack");
1012
+ /**
1013
+ * Минимальное количество товара для заказа.
1014
+ */
1015
+ s(this, "minCount");
1016
+ /**
1017
+ * Валюта товара или услуги.
1018
+ */
1019
+ s(this, "currency");
1020
+ /**
1021
+ * Стоимость товара или услуги.
1022
+ */
1023
+ s(this, "cost");
1024
+ /**
1025
+ * Стоимость продукта в рублях.
1026
+ */
1027
+ s(this, "costRub");
1028
+ /**
1029
+ * Дата установки цены.
1030
+ */
1031
+ s(this, "costDate");
1032
+ /**
1033
+ * Признак товара "Под заказ".
1034
+ */
1035
+ s(this, "onOrder");
1070
1036
  /**
1071
1037
  * Данные о количестве товара, доступном на складах.
1072
1038
  */
@@ -1099,9 +1065,9 @@ class I extends lt {
1099
1065
  * Список коэффициентов цен на продукт.
1100
1066
  */
1101
1067
  s(this, "priceCoefficients");
1102
- this.supplierSku = e == null ? void 0 : e.supplierSku, this.unit = e != null && e.unit ? new Ze(e.unit) : new Ze(), this.pack = e == null ? void 0 : e.pack, this.minCount = e == null ? void 0 : e.minCount, this.currency = e != null && e.currency ? new x(e.currency) : new x(), this.cost = (e == null ? void 0 : e.cost) ?? 0, this.costRub = (e == null ? void 0 : e.costRub) ?? 0, this.costDate = a(e == null ? void 0 : e.costDate) ? C(e.costDate) : e == null ? void 0 : e.costDate, this.onOrder = (e == null ? void 0 : e.onOrder) ?? !1, this.stockCount = ((i = e == null ? void 0 : e.stockCount) == null ? void 0 : i.map((p) => new pt(p))) ?? [], this.type = "product";
1068
+ this.supplierSku = e == null ? void 0 : e.supplierSku, this.unit = e != null && e.unit ? new Ze(e.unit) : new Ze(), this.pack = e == null ? void 0 : e.pack, this.minCount = e == null ? void 0 : e.minCount, this.currency = e != null && e.currency ? new x(e.currency) : new x(), this.cost = (e == null ? void 0 : e.cost) ?? 0, this.costRub = (e == null ? void 0 : e.costRub) ?? 0, this.costDate = a(e == null ? void 0 : e.costDate) ? C(e.costDate) : e == null ? void 0 : e.costDate, this.onOrder = (e == null ? void 0 : e.onOrder) ?? !1, this.stockCount = ((i = e == null ? void 0 : e.stockCount) == null ? void 0 : i.map((p) => new lt(p))) ?? [], this.type = "product";
1103
1069
  const t = (e == null ? void 0 : e.category) ?? ((o = e == null ? void 0 : e.categories) == null ? void 0 : o.find((p) => p.isPrimary));
1104
- t && (this.category = new Ne({ ...t, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((p) => new Ne(p))), this.images = ((c = e == null ? void 0 : e.images) == null ? void 0 : c.map((p) => new ct(p, k().config.http.mediaUrl))) ?? [], this.properties = (e == null ? void 0 : e.properties) ?? {}, this.retailCost = e == null ? void 0 : e.retailCost, this.retailCostRub = e == null ? void 0 : e.retailCostRub, this.priceCoefficients = ((u = e == null ? void 0 : e.priceCoefficients) == null ? void 0 : u.map((p) => new Be(p))) ?? [], e && "codeNumber" in e && !e.code && (this.code = e == null ? void 0 : e.codeNumber);
1070
+ t && (this.category = new Ne({ ...t, isPrimary: !0 }), this.categories = [this.category]), e != null && e.categories && (this.categories = e.categories.map((p) => new Ne(p))), this.images = ((c = e == null ? void 0 : e.images) == null ? void 0 : c.map((p) => new pt(p, k().config.http.mediaUrl))) ?? [], this.properties = (e == null ? void 0 : e.properties) ?? {}, this.retailCost = e == null ? void 0 : e.retailCost, this.retailCostRub = e == null ? void 0 : e.retailCostRub, this.priceCoefficients = ((u = e == null ? void 0 : e.priceCoefficients) == null ? void 0 : u.map((p) => new Ge(p))) ?? [], e && "codeNumber" in e && !e.code && (this.code = e == null ? void 0 : e.codeNumber);
1105
1071
  }
1106
1072
  /**
1107
1073
  * Возвращает признак, что это измеряемый товар.
@@ -1122,7 +1088,7 @@ class I extends lt {
1122
1088
  return this.retailCostRub ?? this.costRub;
1123
1089
  }
1124
1090
  }
1125
- var ze = /* @__PURE__ */ ((n) => (n.Discount = "discount", n.PriceTemplate = "price_template", n.ClientPrice = "client_price", n.Product = "product", n))(ze || {});
1091
+ var Be = /* @__PURE__ */ ((n) => (n.Discount = "discount", n.PriceTemplate = "price_template", n.ClientPrice = "client_price", n.Product = "product", n))(Be || {});
1126
1092
  class j extends I {
1127
1093
  /**
1128
1094
  * Инициализирует экземпляр класса {@link ClientProduct}.
@@ -1159,7 +1125,7 @@ class j extends I {
1159
1125
  * Признак того, что указанный продукт входит в список избранных продуктов клиента.
1160
1126
  */
1161
1127
  s(this, "isFavorite");
1162
- this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ?? ze.Product, this.discount = e != null && e.discount ? new ut(e.discount) : void 0, this.priceTemplate = e != null && e.priceTemplate ? new Z(e.priceTemplate) : void 0, this.isPreviouslyOrdered = e == null ? void 0 : e.isPreviouslyOrdered, this.isRequired = e == null ? void 0 : e.isRequired, this.isFavorite = e == null ? void 0 : e.isFavorite;
1128
+ this.costCoefficient = (e == null ? void 0 : e.costCoefficient) ?? 0, this.costSource = (e == null ? void 0 : e.costSource) ?? Be.Product, this.discount = e != null && e.discount ? new ct(e.discount) : void 0, this.priceTemplate = e != null && e.priceTemplate ? new Z(e.priceTemplate) : void 0, this.isPreviouslyOrdered = e == null ? void 0 : e.isPreviouslyOrdered, this.isRequired = e == null ? void 0 : e.isRequired, this.isFavorite = e == null ? void 0 : e.isFavorite;
1163
1129
  }
1164
1130
  }
1165
1131
  class ve extends Ne {
@@ -1189,7 +1155,7 @@ class ve extends Ne {
1189
1155
  this.isHidden = (e == null ? void 0 : e.isHidden) ?? !1, this.parentCategoryId = e == null ? void 0 : e.parentCategoryId, this.properties = e == null ? void 0 : e.properties, this.type = "category", this.currencyRates = e != null && e.currencyRates ? Object.fromEntries(Object.entries(e.currencyRates).map(([t, i]) => [Mr(t), i])) : void 0;
1190
1156
  }
1191
1157
  }
1192
- class wr extends J {
1158
+ class yr extends J {
1193
1159
  /**
1194
1160
  * Инициализирует экземпляр класса {@link OrderItemBase}.
1195
1161
  *
@@ -1268,7 +1234,7 @@ class wr extends J {
1268
1234
  this.product = new j(e.product), this.quantity = e.quantity ?? 0, this.marker = e.marker, this.category = e.category ?? new ve(), this.currency = e.currency ? new x(e.currency) : void 0, this.height = e.height, this.length = e.length, this.width = e.width, this.configurator = e.configurator, this.configuratorParams = e.configuratorParams && jr(e.configuratorParams), this.isAdditionalSale = e.isAdditionalSale, this.creator = e.creator && new _(e.creator), this.isRemoved = e.isRemoved, this.ord = e.ord, this.onOrder = e.onOrder, this.originalId = e.originalId, this.replacementId = e.replacementId;
1269
1235
  }
1270
1236
  }
1271
- let vr = class extends wr {
1237
+ let wr = class extends yr {
1272
1238
  /**
1273
1239
  * Инициализирует экземпляр класса {@link OrderItem}.
1274
1240
  *
@@ -1334,7 +1300,26 @@ class oe {
1334
1300
  * @inheritDoc
1335
1301
  */
1336
1302
  s(this, "directionsSum");
1337
- this.items = r.items.map((e) => new vr(e)), this.resultSum = r.resultSum, this.directionsSum = r.directionsSum;
1303
+ this.items = r.items.map((e) => new wr(e)), this.resultSum = r.resultSum, this.directionsSum = r.directionsSum;
1304
+ }
1305
+ }
1306
+ class ze {
1307
+ /**
1308
+ * Инициализирует экземпляр указанного класса.
1309
+ *
1310
+ * @param type Тип класса, на основе которого необходимо создать экземпляр (тип возвращаемых данных).
1311
+ */
1312
+ static simpleInstanceInitializer(r) {
1313
+ return new r();
1314
+ }
1315
+ /**
1316
+ * Инициализирует экземпляр указанного класса.
1317
+ *
1318
+ * @param type Тип класса, на основе которого необходимо создать экземпляр (тип возвращаемых данных).
1319
+ * @param data Начальные данные для инициализации (параметры конструктора).
1320
+ */
1321
+ static instanceInitializer(r, e) {
1322
+ return new r(e);
1338
1323
  }
1339
1324
  }
1340
1325
  const P = class P {
@@ -1492,7 +1477,7 @@ const P = class P {
1492
1477
  * @param type Тип данных, которыми оперирует метод.
1493
1478
  */
1494
1479
  static getInstance(r) {
1495
- return Object.prototype.hasOwnProperty.call(P.instances, r.name) || (P.instances[r.name] = Ge.simpleInstanceInitializer(r)), P.instances[r.name];
1480
+ return Object.prototype.hasOwnProperty.call(P.instances, r.name) || (P.instances[r.name] = ze.simpleInstanceInitializer(r)), P.instances[r.name];
1496
1481
  }
1497
1482
  /**
1498
1483
  * Конвертирует данные ошибки HTTP запроса в более упрощённую и часто используемую форму.
@@ -1741,7 +1726,7 @@ class N extends ve {
1741
1726
  this.categories = (t = e == null ? void 0 : e.categories) == null ? void 0 : t.map((o) => new N(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new I(o));
1742
1727
  }
1743
1728
  }
1744
- class ar {
1729
+ class vr {
1745
1730
  /**
1746
1731
  * Инициализирует экземпляр класса {@link ContactLinks}.
1747
1732
  *
@@ -1789,12 +1774,12 @@ class We extends S {
1789
1774
  * @inheritDoc
1790
1775
  */
1791
1776
  s(this, "isRegionalDirector");
1792
- this.salesDirection = e != null && e.salesDirection ? new q(e.salesDirection) : new q(), this.photo = e == null ? void 0 : e.photo, this.contacts = e != null && e.contacts ? new ar(e.contacts) : void 0, this.isDefault = (e == null ? void 0 : e.isDefault) ?? !1, this.isRegionalDirector = (e == null ? void 0 : e.isRegionalDirector) ?? !1;
1777
+ this.salesDirection = e != null && e.salesDirection ? new q(e.salesDirection) : new q(), this.photo = e == null ? void 0 : e.photo, this.contacts = e != null && e.contacts ? new vr(e.contacts) : void 0, this.isDefault = (e == null ? void 0 : e.isDefault) ?? !1, this.isRegionalDirector = (e == null ? void 0 : e.isRegionalDirector) ?? !1;
1793
1778
  }
1794
1779
  }
1795
1780
  class Je extends w {
1796
1781
  }
1797
- class Cr extends S {
1782
+ class ar extends S {
1798
1783
  /**
1799
1784
  * Инициализирует экземпляр класса {@link IUserPricingRole}.
1800
1785
  *
@@ -1854,7 +1839,7 @@ class ae extends We {
1854
1839
  * Список направлений кураторства.
1855
1840
  */
1856
1841
  s(this, "curatedDirections");
1857
- this.isActive = (e == null ? void 0 : e.isActive) ?? !1, this.isSupervisor = (e == null ? void 0 : e.isSupervisor) ?? !1, this.canDoReclamations = (e == null ? void 0 : e.canDoReclamations) ?? !1, this.createdAt = e == null ? void 0 : e.createdAt, this.supervisorId = e == null ? void 0 : e.supervisorId, this.pricingRole = e != null && e.pricingRole ? new Cr(e.pricingRole) : void 0, this.curatedDirections = ((t = e == null ? void 0 : e.curatedDirections) == null ? void 0 : t.map((i) => new Je(i))) ?? [];
1842
+ this.isActive = (e == null ? void 0 : e.isActive) ?? !1, this.isSupervisor = (e == null ? void 0 : e.isSupervisor) ?? !1, this.canDoReclamations = (e == null ? void 0 : e.canDoReclamations) ?? !1, this.createdAt = e == null ? void 0 : e.createdAt, this.supervisorId = e == null ? void 0 : e.supervisorId, this.pricingRole = e != null && e.pricingRole ? new ar(e.pricingRole) : void 0, this.curatedDirections = ((t = e == null ? void 0 : e.curatedDirections) == null ? void 0 : t.map((i) => new Je(i))) ?? [];
1858
1843
  }
1859
1844
  }
1860
1845
  class mt extends ve {
@@ -1908,7 +1893,7 @@ class Re extends mt {
1908
1893
  this.categories = (t = e == null ? void 0 : e.categories) == null ? void 0 : t.map((o) => new Re(o)), this.products = (i = e == null ? void 0 : e.products) == null ? void 0 : i.map((o) => new j(o));
1909
1894
  }
1910
1895
  }
1911
- class Pr {
1896
+ class Cr {
1912
1897
  /**
1913
1898
  * Инициализирует экземпляр класса {@link PriceTemplateICatalogableItem}.
1914
1899
  *
@@ -1926,7 +1911,7 @@ class Pr {
1926
1911
  this.priceCoefficient = (r == null ? void 0 : r.priceCoefficient) && new Ae(r.priceCoefficient), this.increasePercent = r == null ? void 0 : r.increasePercent;
1927
1912
  }
1928
1913
  }
1929
- class ke extends Pr {
1914
+ class ke extends Cr {
1930
1915
  /**
1931
1916
  * Инициализирует экземпляр класса {@link PriceTemplateProduct}.
1932
1917
  *
@@ -1961,7 +1946,7 @@ class Ee extends S {
1961
1946
  * @inheritDoc
1962
1947
  */
1963
1948
  s(this, "curatedDirection");
1964
- this.photo = e.photo, this.contacts = new ar(e.contacts), this.curatedDirection = new Je(e.curatedDirection);
1949
+ this.photo = e.photo, this.contacts = new vr(e.contacts), this.curatedDirection = new Je(e.curatedDirection);
1965
1950
  }
1966
1951
  }
1967
1952
  class te extends w {
@@ -1996,7 +1981,7 @@ class $e extends w {
1996
1981
  e && (this.region = new me(e.region));
1997
1982
  }
1998
1983
  }
1999
- class Rr extends S {
1984
+ class Pr extends S {
2000
1985
  /**
2001
1986
  * Инициализирует экземпляр класса {@link UserCommonInfo}.
2002
1987
  *
@@ -2035,7 +2020,7 @@ class Rr extends S {
2035
2020
  this.phone = /^\d+$/.test((e == null ? void 0 : e.phone) ?? "") ? `+${e == null ? void 0 : e.phone}` : (e == null ? void 0 : e.phone) ?? "", this.email = (e == null ? void 0 : e.email) ?? "", this.getNews = (e == null ? void 0 : e.getNews) ?? !1, this.salesDirection = e != null && e.salesDirection ? new q(e.salesDirection) : void 0, this.createdAt = a(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : e == null ? void 0 : e.createdAt, this.lastLoginAt = a(e == null ? void 0 : e.lastLoginAt) ? C(e.lastLoginAt) : e == null ? void 0 : e.lastLoginAt, this.isActive = (e == null ? void 0 : e.isActive) ?? !1;
2036
2021
  }
2037
2022
  }
2038
- class E extends Rr {
2023
+ class E extends Pr {
2039
2024
  /**
2040
2025
  * Инициализирует экземпляр класса {@link Client}.
2041
2026
  *
@@ -2111,7 +2096,7 @@ class ce extends J {
2111
2096
  this.createdAt = a(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.deletedAt = a(e == null ? void 0 : e.deletedAt) ? C(e.deletedAt) : e == null ? void 0 : e.deletedAt, this.client = new E(e == null ? void 0 : e.client), this.priceTemplate = new Z(e == null ? void 0 : e.priceTemplate);
2112
2097
  }
2113
2098
  }
2114
- class Le extends Pr {
2099
+ class Le extends Cr {
2115
2100
  /**
2116
2101
  * Инициализирует экземпляр класса {@link PriceTemplateProduct}.
2117
2102
  *
@@ -2126,7 +2111,7 @@ class Le extends Pr {
2126
2111
  this.product = new I(e == null ? void 0 : e.product);
2127
2112
  }
2128
2113
  }
2129
- class Dr extends w {
2114
+ class Rr extends w {
2130
2115
  }
2131
2116
  class le extends S {
2132
2117
  /**
@@ -2148,7 +2133,7 @@ class le extends S {
2148
2133
  * Дополнительные метаданные свойства.
2149
2134
  */
2150
2135
  s(this, "metadata");
2151
- this.type = new Dr(e == null ? void 0 : e.type), this.description = (e == null ? void 0 : e.description) ?? "", this.metadata = e == null ? void 0 : e.metadata;
2136
+ this.type = new Rr(e == null ? void 0 : e.type), this.description = (e == null ? void 0 : e.description) ?? "", this.metadata = e == null ? void 0 : e.metadata;
2152
2137
  }
2153
2138
  }
2154
2139
  class Y {
@@ -2704,7 +2689,7 @@ class Zt extends h {
2704
2689
  getCategoryProductsCoefficients(r) {
2705
2690
  return this.get(`/internal/catalog/categories/${r}/products/coefficients`, {}, (e) => {
2706
2691
  const { data: t } = e;
2707
- return Br(t, (i) => i.map((o) => new Be(o))), t;
2692
+ return Br(t, (i) => i.map((o) => new Ge(o))), t;
2708
2693
  });
2709
2694
  }
2710
2695
  /**
@@ -2754,7 +2739,7 @@ class es extends h {
2754
2739
  return this.get(
2755
2740
  `/internal/catalog/products/${r}/coefficients`,
2756
2741
  {},
2757
- (e) => ye(e.data, (t) => new Be(t))
2742
+ (e) => ye(e.data, (t) => new Ge(t))
2758
2743
  );
2759
2744
  }
2760
2745
  /**
@@ -3699,62 +3684,6 @@ function sr(n) {
3699
3684
  }), r;
3700
3685
  }
3701
3686
  var ft = /* @__PURE__ */ ((n) => (n.LastOrder = "last_order", n.Contacts = "contacts", n.PartnerGroups = "partner_groups", n.PreferredDeliveryType = "preferred_delivery_type", n.SalesDirection = "sales_direction", n.Managers = "managers", n.Curators = "curators", n))(ft || {}), U = /* @__PURE__ */ ((n) => (n.Person = "individual", n.Ic = "entrepreneur", n.UlR = "legal", n.UlNr = "non_resident_legal", n))(U || {});
3702
- class yt extends w {
3703
- }
3704
- class Ar extends w {
3705
- }
3706
- class cs extends w {
3707
- }
3708
- class wt extends w {
3709
- }
3710
- class B extends w {
3711
- /**
3712
- * Возвращает сгенерированную запись-описание физического лица.
3713
- */
3714
- static generatePersonItem() {
3715
- return new B({
3716
- id: 1,
3717
- guid: "",
3718
- slug: U.Person,
3719
- name: ""
3720
- });
3721
- }
3722
- }
3723
- class $r extends w {
3724
- }
3725
- class vt extends w {
3726
- }
3727
- class de extends w {
3728
- }
3729
- class se extends w {
3730
- }
3731
- class dr extends w {
3732
- }
3733
- class at extends w {
3734
- }
3735
- class ls {
3736
- /**
3737
- * Генерирует и возвращает данные-заглушку неопределённой записи справочника.
3738
- *
3739
- * @param Ctor Конструктор конкретного класса справочника.
3740
- * @param name Название записи.
3741
- */
3742
- static generateUndefinedInstance(r, e = "- Не определён -") {
3743
- return new r({ id: 0, name: e, slug: "-undefined-" });
3744
- }
3745
- /**
3746
- * Выполняет проверку, является ли указанная запись записью-заглушкой с данными о неопределённой записи справочника.
3747
- *
3748
- * @param reference Запись для проверки.
3749
- */
3750
- static isUndefinedInstance(r) {
3751
- return r.id === 0 && r.slug === "-undefined-";
3752
- }
3753
- }
3754
- class Tr extends w {
3755
- }
3756
- class br extends w {
3757
- }
3758
3687
  class Ue extends J {
3759
3688
  /**
3760
3689
  * Инициализирует экземпляр класса {@link BankAccount}.
@@ -3805,7 +3734,7 @@ class Fe extends S {
3805
3734
  this.email = e == null ? void 0 : e.email, this.phone = /^\d+$/.test((e == null ? void 0 : e.phone) ?? "") ? `+${e == null ? void 0 : e.phone}` : e == null ? void 0 : e.phone;
3806
3735
  }
3807
3736
  }
3808
- class z extends Fe {
3737
+ class B extends Fe {
3809
3738
  /**
3810
3739
  * Инициализирует экземпляр класса {@link ContactPerson}.
3811
3740
  *
@@ -3840,7 +3769,37 @@ class z extends Fe {
3840
3769
  this.isPrimary = (e == null ? void 0 : e.isPrimary) ?? !1, this.position = e == null ? void 0 : e.position, this.notDisturb = (e == null ? void 0 : e.notDisturb) ?? !1, this.comment = e == null ? void 0 : e.comment, this.updatedAt = e == null ? void 0 : e.updatedAt, this.deletedAt = a(e == null ? void 0 : e.deletedAt) ? C(e.deletedAt) : e == null ? void 0 : e.deletedAt;
3841
3770
  }
3842
3771
  }
3843
- class Sr extends gr {
3772
+ class z extends w {
3773
+ /**
3774
+ * Возвращает сгенерированную запись-описание физического лица.
3775
+ */
3776
+ static generatePersonItem() {
3777
+ return new z({
3778
+ id: 1,
3779
+ guid: "",
3780
+ slug: U.Person,
3781
+ name: ""
3782
+ });
3783
+ }
3784
+ }
3785
+ class se extends w {
3786
+ }
3787
+ class Dr extends hr {
3788
+ /**
3789
+ * Инициализирует экземпляр класса {@link UpdatableNamedIdentity}.
3790
+ *
3791
+ * @param data Данные для первоначальной инициализации.
3792
+ */
3793
+ constructor(e) {
3794
+ super(e);
3795
+ /**
3796
+ * Дата и время последнего удаления.
3797
+ */
3798
+ s(this, "deletedAt");
3799
+ this.deletedAt = a(e == null ? void 0 : e.deletedAt) ? C(e.deletedAt) : e == null ? void 0 : e.deletedAt;
3800
+ }
3801
+ }
3802
+ class Ar extends Dr {
3844
3803
  /**
3845
3804
  * Инициализирует экземпляр класса {@link ContragentBase}.
3846
3805
  *
@@ -3852,7 +3811,7 @@ class Sr extends gr {
3852
3811
  /**
3853
3812
  * Данные об организационно-правовой форме.
3854
3813
  */
3855
- s(this, "opf", B.generatePersonItem());
3814
+ s(this, "opf", z.generatePersonItem());
3856
3815
  /**
3857
3816
  * Группа партнеров (направление деятельности).
3858
3817
  */
@@ -3886,10 +3845,10 @@ class Sr extends gr {
3886
3845
  */
3887
3846
  s(this, "updater");
3888
3847
  if (e) {
3889
- if (this.opf = new B(e.opf), this.comment = e.comment, this.alternativeName = e.alternativeName, this.createdAt = a(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : e.createdAt, this.creator = e.creator ? new _(e.creator) : void 0, this.updater = e.updater ? new _(e.updater) : void 0, e.partnerGroup && (this.partnerGroup = new se(e.partnerGroup)), e.contacts) {
3848
+ if (this.opf = new z(e.opf), this.comment = e.comment, this.alternativeName = e.alternativeName, this.createdAt = a(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : e.createdAt, this.creator = e.creator ? new _(e.creator) : void 0, this.updater = e.updater ? new _(e.updater) : void 0, e.partnerGroup && (this.partnerGroup = new se(e.partnerGroup)), e.contacts) {
3890
3849
  const t = [];
3891
3850
  e.contacts.forEach((i) => {
3892
- t.push(new z(i));
3851
+ t.push(new B(i));
3893
3852
  }), this.contacts = t;
3894
3853
  }
3895
3854
  if (e.bankAccounts) {
@@ -3901,7 +3860,7 @@ class Sr extends gr {
3901
3860
  }
3902
3861
  }
3903
3862
  }
3904
- class Ct extends Sr {
3863
+ class yt extends Ar {
3905
3864
  /**
3906
3865
  * Инициализирует экземпляр класса {@link ContragentPerson}.
3907
3866
  *
@@ -3911,7 +3870,7 @@ class Ct extends Sr {
3911
3870
  super(r);
3912
3871
  }
3913
3872
  }
3914
- class kr extends Sr {
3873
+ class $r extends Ar {
3915
3874
  /**
3916
3875
  * Инициализирует экземпляр класса {@link ContragentIc}.
3917
3876
  *
@@ -3954,7 +3913,7 @@ class kr extends Sr {
3954
3913
  e && (this.inn = e.inn ?? "", this.okpo = e.okpo ?? "", this.directorName = e.directorName ?? "", this.directorPosition = e.directorPosition ?? "", this.directorActsOn = e.directorActsOn ?? "", this.legalAddress = e.legalAddress ?? "", this.postalAddress = e.postalAddress ?? "", this.actualAddress = e.actualAddress ?? "");
3955
3914
  }
3956
3915
  }
3957
- class Lr extends kr {
3916
+ class dr extends $r {
3958
3917
  /**
3959
3918
  * Инициализирует экземпляр класса {@link ContragentUlR}.
3960
3919
  *
@@ -3969,7 +3928,7 @@ class Lr extends kr {
3969
3928
  e && (this.kpp = e.kpp ?? "");
3970
3929
  }
3971
3930
  }
3972
- class Pt extends Lr {
3931
+ class wt extends dr {
3973
3932
  /**
3974
3933
  * Инициализирует экземпляр класса {@link ContragentUlNr}.
3975
3934
  *
@@ -4001,60 +3960,17 @@ class De {
4001
3960
  static createInstance(r) {
4002
3961
  switch (r.opf.slug) {
4003
3962
  case U.Ic:
4004
- return new kr(r);
3963
+ return new $r(r);
4005
3964
  case U.UlR:
4006
- return new Lr(r);
3965
+ return new dr(r);
4007
3966
  case U.UlNr:
4008
- return new Pt(r);
3967
+ return new wt(r);
4009
3968
  default:
4010
- return new Ct(r);
3969
+ return new yt(r);
4011
3970
  }
4012
3971
  }
4013
3972
  }
4014
- class Ie extends J {
4015
- /**
4016
- * Инициализирует экземпляр класса {@link ContactRelation}.
4017
- *
4018
- * @param data Данные для первоначальной инициализации.
4019
- */
4020
- constructor(e) {
4021
- super(e);
4022
- /**
4023
- * Признак того, что контакт является основным.
4024
- */
4025
- s(this, "isPrimary");
4026
- this.isPrimary = e.isPrimary;
4027
- }
4028
- }
4029
- class Rt extends z {
4030
- /**
4031
- * Инициализирует экземпляр класса {@link ContactPersonRelated}.
4032
- *
4033
- * @param data Данные для первоначальной инициализации.
4034
- */
4035
- constructor(e) {
4036
- super(e);
4037
- /**
4038
- * Список связей контактного лица с сущностями.
4039
- */
4040
- s(this, "relations", {
4041
- /**
4042
- * Список клиентов, с которыми связано контактное лицо.
4043
- */
4044
- clients: [],
4045
- /**
4046
- * Список контрагентов, с которыми связано контактное лицо.
4047
- */
4048
- contragents: [],
4049
- /**
4050
- * Список адресов доставки, с которыми связано контактное лицо.
4051
- */
4052
- addresses: []
4053
- });
4054
- e.relations && (e.relations.addresses && (this.relations.addresses = e.relations.addresses.map((t) => new Ie(t))), e.relations.clients && (this.relations.clients = e.relations.clients.map((t) => new Ie(t))), e.relations.contragents && (this.relations.contragents = e.relations.contragents.map((t) => new Ie(t))));
4055
- }
4056
- }
4057
- class pe extends gr {
3973
+ class pe extends Dr {
4058
3974
  /**
4059
3975
  * Инициализирует экземпляр класса {@link DeliveryAddress}.
4060
3976
  *
@@ -4091,9 +4007,13 @@ class pe extends gr {
4091
4007
  * Признак того, что указанный адрес является адресом транспортной компании.
4092
4008
  */
4093
4009
  s(this, "isTransportCompanyAddress");
4094
- this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new yr(e == null ? void 0 : e.coordinates), this.contacts = ((t = e == null ? void 0 : e.contacts) == null ? void 0 : t.map((i) => new z(i))) ?? [], this.comment = e == null ? void 0 : e.comment, this.operatingHours = e == null ? void 0 : e.operatingHours, this.isOneTime = e == null ? void 0 : e.isOneTime, this.isTransportCompanyAddress = e == null ? void 0 : e.isTransportCompanyAddress;
4010
+ this.address = (e == null ? void 0 : e.address) ?? "", this.coordinates = new mr(e == null ? void 0 : e.coordinates), this.contacts = ((t = e == null ? void 0 : e.contacts) == null ? void 0 : t.map((i) => new B(i))) ?? [], this.comment = e == null ? void 0 : e.comment, this.operatingHours = e == null ? void 0 : e.operatingHours, this.isOneTime = e == null ? void 0 : e.isOneTime, this.isTransportCompanyAddress = e == null ? void 0 : e.isTransportCompanyAddress;
4095
4011
  }
4096
4012
  }
4013
+ class Tr extends w {
4014
+ }
4015
+ class br extends w {
4016
+ }
4097
4017
  class ir extends E {
4098
4018
  /**
4099
4019
  * Инициализирует экземпляр класса {@link Client}.
@@ -4144,7 +4064,7 @@ class ir extends E {
4144
4064
  * @inheritDoc
4145
4065
  */
4146
4066
  s(this, "extraData");
4147
- this.contragents = ((t = e == null ? void 0 : e.contragents) == null ? void 0 : t.map((u) => De.createInstance(u))) ?? [], this.partnerGroups = ((i = e == null ? void 0 : e.partnerGroups) == null ? void 0 : i.map((u) => new se(u))) ?? [], this.contacts = ((o = e == null ? void 0 : e.contacts) == null ? void 0 : o.map((u) => new z(u))) ?? [], this.deliveryAddresses = ((c = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : c.map((u) => new pe(u))) ?? [], this.channelPrimaryInterest = new Ar(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new br(e == null ? void 0 : e.sourcePrimaryInterest), this.preferredDeliveryType = new F(e == null ? void 0 : e.preferredDeliveryType), this.primaryDemand = e == null ? void 0 : e.primaryDemand, this.preferredWarehouse = e != null && e.preferredWarehouse ? new we(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
4067
+ this.contragents = ((t = e == null ? void 0 : e.contragents) == null ? void 0 : t.map((u) => De.createInstance(u))) ?? [], this.partnerGroups = ((i = e == null ? void 0 : e.partnerGroups) == null ? void 0 : i.map((u) => new se(u))) ?? [], this.contacts = ((o = e == null ? void 0 : e.contacts) == null ? void 0 : o.map((u) => new B(u))) ?? [], this.deliveryAddresses = ((c = e == null ? void 0 : e.deliveryAddresses) == null ? void 0 : c.map((u) => new pe(u))) ?? [], this.channelPrimaryInterest = new Tr(e == null ? void 0 : e.channelPrimaryInterest), this.sourcePrimaryInterest = new br(e == null ? void 0 : e.sourcePrimaryInterest), this.preferredDeliveryType = new F(e == null ? void 0 : e.preferredDeliveryType), this.primaryDemand = e == null ? void 0 : e.primaryDemand, this.preferredWarehouse = e != null && e.preferredWarehouse ? new we(e.preferredWarehouse) : void 0, this.extraData = (e == null ? void 0 : e.extraData) ?? {};
4148
4068
  }
4149
4069
  }
4150
4070
  class Ke {
@@ -4161,7 +4081,7 @@ class Ke {
4161
4081
  }), r;
4162
4082
  }
4163
4083
  }
4164
- class us extends Ke {
4084
+ class cs extends Ke {
4165
4085
  /**
4166
4086
  * Инициализирует экземпляр класса {@link ClientsListFilters}.
4167
4087
  *
@@ -4270,7 +4190,7 @@ class us extends Ke {
4270
4190
  * @inheritDoc
4271
4191
  */
4272
4192
  s(this, "noOrdersPeriod", new A());
4273
- this.id = e == null ? void 0 : e.id, this.name = e == null ? void 0 : e.name, this.alternativeName = e == null ? void 0 : e.alternativeName, this.searchTerm = e == null ? void 0 : e.searchTerm, this.cities = (t = e == null ? void 0 : e.cities) == null ? void 0 : t.map((D) => new $e(D)), this.region = new me(e == null ? void 0 : e.region), this.country = new te(e == null ? void 0 : e.country), this.phone = e == null ? void 0 : e.phone, this.email = e == null ? void 0 : e.email, this.isActive = e && Object.prototype.hasOwnProperty.call(e, "isActive") ? e == null ? void 0 : e.isActive : !0, this.createdAt = new A(e == null ? void 0 : e.createdAt), this.lastLoginDate = new A(e == null ? void 0 : e.lastLoginDate), this.lastLoginDateHasOrder = (e == null ? void 0 : e.lastLoginDateHasOrder) ?? void 0, this.managers = ((i = e == null ? void 0 : e.managers) == null ? void 0 : i.map((D) => new ae(D))) ?? [], this.includeSubordinateManagers = (e == null ? void 0 : e.includeSubordinateManagers) ?? !0, this.curators = ((o = e == null ? void 0 : e.curators) == null ? void 0 : o.map((D) => new Ee(D))) ?? [], this.salesDirections = (c = e == null ? void 0 : e.salesDirections) == null ? void 0 : c.map((D) => new q(D)), this.contragentInn = e == null ? void 0 : e.contragentInn, this.contragentType = new B(e == null ? void 0 : e.contragentType), this.preferredDeliveryType = e != null && e.preferredDeliveryType ? new F(e == null ? void 0 : e.preferredDeliveryType) : void 0, this.partnerGroups = (u = e == null ? void 0 : e.partnerGroups) == null ? void 0 : u.map((D) => new se(D)), this.contact = new Fe(e == null ? void 0 : e.contact), this.lastOrder = {
4193
+ this.id = e == null ? void 0 : e.id, this.name = e == null ? void 0 : e.name, this.alternativeName = e == null ? void 0 : e.alternativeName, this.searchTerm = e == null ? void 0 : e.searchTerm, this.cities = (t = e == null ? void 0 : e.cities) == null ? void 0 : t.map((D) => new $e(D)), this.region = new me(e == null ? void 0 : e.region), this.country = new te(e == null ? void 0 : e.country), this.phone = e == null ? void 0 : e.phone, this.email = e == null ? void 0 : e.email, this.isActive = e && Object.prototype.hasOwnProperty.call(e, "isActive") ? e == null ? void 0 : e.isActive : !0, this.createdAt = new A(e == null ? void 0 : e.createdAt), this.lastLoginDate = new A(e == null ? void 0 : e.lastLoginDate), this.lastLoginDateHasOrder = (e == null ? void 0 : e.lastLoginDateHasOrder) ?? void 0, this.managers = ((i = e == null ? void 0 : e.managers) == null ? void 0 : i.map((D) => new ae(D))) ?? [], this.includeSubordinateManagers = (e == null ? void 0 : e.includeSubordinateManagers) ?? !0, this.curators = ((o = e == null ? void 0 : e.curators) == null ? void 0 : o.map((D) => new Ee(D))) ?? [], this.salesDirections = (c = e == null ? void 0 : e.salesDirections) == null ? void 0 : c.map((D) => new q(D)), this.contragentInn = e == null ? void 0 : e.contragentInn, this.contragentType = new z(e == null ? void 0 : e.contragentType), this.preferredDeliveryType = e != null && e.preferredDeliveryType ? new F(e == null ? void 0 : e.preferredDeliveryType) : void 0, this.partnerGroups = (u = e == null ? void 0 : e.partnerGroups) == null ? void 0 : u.map((D) => new se(D)), this.contact = new Fe(e == null ? void 0 : e.contact), this.lastOrder = {
4274
4194
  createdAt: new A((p = e == null ? void 0 : e.lastOrder) == null ? void 0 : p.createdAt),
4275
4195
  creator: (m = e == null ? void 0 : e.lastOrder) == null ? void 0 : m.creator,
4276
4196
  isApproved: (f = e == null ? void 0 : e.lastOrder) == null ? void 0 : f.isApproved
@@ -4312,7 +4232,7 @@ class us extends Ke {
4312
4232
  this.salesDirections = [];
4313
4233
  break;
4314
4234
  case "contragentType":
4315
- this.contragentType = new B();
4235
+ this.contragentType = new z();
4316
4236
  break;
4317
4237
  case "preferredDeliveryType":
4318
4238
  this.preferredDeliveryType = new F();
@@ -4338,7 +4258,7 @@ class us extends Ke {
4338
4258
  return !((t = e == null ? void 0 : e.createdAt) != null && t.from) && !((i = e == null ? void 0 : e.createdAt) != null && i.to) && delete e.createdAt, !((o = e == null ? void 0 : e.lastLoginDate) != null && o.from) && !((c = e == null ? void 0 : e.lastLoginDate) != null && c.to) && delete e.lastLoginDate, !((u = e == null ? void 0 : e.noOrdersPeriod) != null && u.from) && !((p = e == null ? void 0 : e.noOrdersPeriod) != null && p.to) && delete e.noOrdersPeriod, e;
4339
4259
  }
4340
4260
  }
4341
- class Ir extends J {
4261
+ class Sr extends J {
4342
4262
  /**
4343
4263
  * Инициализирует экземпляр класса {@link OrderShortInfo}.
4344
4264
  *
@@ -4357,7 +4277,7 @@ class Ir extends J {
4357
4277
  this.createdAt = a(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.creator = new _(e == null ? void 0 : e.creator);
4358
4278
  }
4359
4279
  }
4360
- class Dt extends S {
4280
+ class vt extends S {
4361
4281
  /**
4362
4282
  * Инициализирует экземпляр класса {@link ClientAdditionalData}.
4363
4283
  *
@@ -4394,81 +4314,57 @@ class Dt extends S {
4394
4314
  * @inheritDoc
4395
4315
  */
4396
4316
  s(this, "curators");
4397
- this.contacts = ((t = e.contacts) == null ? void 0 : t.map((u) => new z(u))) ?? void 0, this.lastOrder = e.lastOrder ? new Ir(e.lastOrder) : void 0, this.partnerGroups = ((i = e.partnerGroups) == null ? void 0 : i.map((u) => new se(u))) ?? void 0, this.preferredDeliveryType = e.preferredDeliveryType ? new F(e.preferredDeliveryType) : void 0, this.salesDirection = e.salesDirection ? new q(e.salesDirection) : void 0, this.managers = ((o = e.managers) == null ? void 0 : o.map((u) => new We(u))) ?? void 0, this.curators = ((c = e.curators) == null ? void 0 : c.map((u) => new Ee(u))) ?? void 0;
4317
+ this.contacts = ((t = e.contacts) == null ? void 0 : t.map((u) => new B(u))) ?? void 0, this.lastOrder = e.lastOrder ? new Sr(e.lastOrder) : void 0, this.partnerGroups = ((i = e.partnerGroups) == null ? void 0 : i.map((u) => new se(u))) ?? void 0, this.preferredDeliveryType = e.preferredDeliveryType ? new F(e.preferredDeliveryType) : void 0, this.salesDirection = e.salesDirection ? new q(e.salesDirection) : void 0, this.managers = ((o = e.managers) == null ? void 0 : o.map((u) => new We(u))) ?? void 0, this.curators = ((c = e.curators) == null ? void 0 : c.map((u) => new Ee(u))) ?? void 0;
4398
4318
  }
4399
4319
  }
4400
- class At {
4320
+ class Ie extends J {
4401
4321
  /**
4402
- * Инициализирует экземпляр класса {@link DataTablePaginationRequestParams}.
4322
+ * Инициализирует экземпляр класса {@link ContactRelation}.
4403
4323
  *
4404
4324
  * @param data Данные для первоначальной инициализации.
4405
4325
  */
4406
- constructor(r) {
4407
- /**
4408
- * Номер текущей страницы.
4409
- */
4410
- s(this, "page", 1);
4326
+ constructor(e) {
4327
+ super(e);
4411
4328
  /**
4412
- * Количество записей на странице.
4329
+ * Признак того, что контакт является основным.
4413
4330
  */
4414
- s(this, "pageSize", 50);
4415
- this.page = (r == null ? void 0 : r.page) ?? 1, this.pageSize = (r == null ? void 0 : r.pageSize) ?? 50;
4331
+ s(this, "isPrimary");
4332
+ this.isPrimary = e.isPrimary;
4416
4333
  }
4417
4334
  }
4418
- class ps extends At {
4335
+ class at extends B {
4419
4336
  /**
4420
- * Инициализирует экземпляр класса {@link DataTablePagination}.
4337
+ * Инициализирует экземпляр класса {@link ContactPersonRelated}.
4421
4338
  *
4422
4339
  * @param data Данные для первоначальной инициализации.
4423
4340
  */
4424
4341
  constructor(e) {
4425
4342
  super(e);
4426
4343
  /**
4427
- * Количество записей в таблице.
4428
- */
4429
- s(this, "itemCount", 0);
4430
- /**
4431
- * Число страниц с данными.
4432
- */
4433
- s(this, "pageCount", 1);
4434
- /**
4435
- * Число отображаемых номеров страниц.
4436
- */
4437
- s(this, "pageSlot", 5);
4438
- /**
4439
- * Значения для выпадающего списка "Количество записей на странице".
4440
- */
4441
- s(this, "pageSizes", [25, 50, 100]);
4442
- /**
4443
- * Признак необходимости отображать список выбора числа отображаемых записей.
4344
+ * Список связей контактного лица с сущностями.
4444
4345
  */
4445
- s(this, "showSizePicker", !0);
4446
- this.itemCount = (e == null ? void 0 : e.itemCount) ?? 0, this.pageCount = (e == null ? void 0 : e.pageCount) ?? 1, this.pageSlot = (e == null ? void 0 : e.pageSlot) ?? 5, this.pageSizes = (e == null ? void 0 : e.pageSizes) ?? [25, 50, 100], this.showSizePicker = (e == null ? void 0 : e.showSizePicker) ?? !0;
4346
+ s(this, "relations", {
4347
+ /**
4348
+ * Список клиентов, с которыми связано контактное лицо.
4349
+ */
4350
+ clients: [],
4351
+ /**
4352
+ * Список контрагентов, с которыми связано контактное лицо.
4353
+ */
4354
+ contragents: [],
4355
+ /**
4356
+ * Список адресов доставки, с которыми связано контактное лицо.
4357
+ */
4358
+ addresses: []
4359
+ });
4360
+ e.relations && (e.relations.addresses && (this.relations.addresses = e.relations.addresses.map((t) => new Ie(t))), e.relations.clients && (this.relations.clients = e.relations.clients.map((t) => new Ie(t))), e.relations.contragents && (this.relations.contragents = e.relations.contragents.map((t) => new Ie(t))));
4447
4361
  }
4448
4362
  }
4449
- class hs {
4363
+ class O extends Ce {
4450
4364
  /**
4451
- * Инициализирует экземпляр класса {@link ISortRequestParams}.
4365
+ * Преобразует данные о клиенте в данные требуемые для запроса.
4452
4366
  *
4453
- * @param data Данные для первоначальной инициализации.
4454
- */
4455
- constructor(r) {
4456
- /**
4457
- * Поле по которому необходимо выполнить сортировку
4458
- */
4459
- s(this, "field");
4460
- /**
4461
- * Направление сортировки.
4462
- */
4463
- s(this, "direction");
4464
- this.field = (r == null ? void 0 : r.field) ?? "", this.direction = (r == null ? void 0 : r.direction) ?? "asc";
4465
- }
4466
- }
4467
- class O extends Ce {
4468
- /**
4469
- * Преобразует данные о клиенте в данные требуемые для запроса.
4470
- *
4471
- * @param client Данные о клиенте.
4367
+ * @param client Данные о клиенте.
4472
4368
  */
4473
4369
  static transformClientDataToRequest(r) {
4474
4370
  var t;
@@ -4665,7 +4561,7 @@ class O extends Ce {
4665
4561
  const t = r.map((i) => i.id);
4666
4562
  return this.post("/internal/clients/additional-data", { clients: t, requested_data_types: e }, (i) => {
4667
4563
  let o = [];
4668
- return (i == null ? void 0 : i.data.length) > 0 && (o = i.data.map((c) => new Dt(c))), o;
4564
+ return (i == null ? void 0 : i.data.length) > 0 && (o = i.data.map((c) => new vt(c))), o;
4669
4565
  });
4670
4566
  }
4671
4567
  /**
@@ -4677,7 +4573,7 @@ class O extends Ce {
4677
4573
  getAllClientContacts(r) {
4678
4574
  return this.get(`/internal/clients/${r}/contacts/all`, {}, (e) => {
4679
4575
  let t = [];
4680
- return (e == null ? void 0 : e.data.length) > 0 && (t = e.data.map((i) => new Rt(i))), t;
4576
+ return (e == null ? void 0 : e.data.length) > 0 && (t = e.data.map((i) => new at(i))), t;
4681
4577
  });
4682
4578
  }
4683
4579
  /**
@@ -4999,7 +4895,7 @@ class O extends Ce {
4999
4895
  comment: e.comment,
5000
4896
  not_disturb: e.notDisturb
5001
4897
  },
5002
- (i) => new z(i.data),
4898
+ (i) => new B(i.data),
5003
4899
  t
5004
4900
  );
5005
4901
  }
@@ -5136,7 +5032,7 @@ class O extends Ce {
5136
5032
  comment: e.comment,
5137
5033
  ...t
5138
5034
  };
5139
- return (c = e.phone) != null && c.length && (o.phone = e.phone), (u = e.email) != null && u.length && (o.email = e.email), this.post(`/internal/clients/${r}/contacts`, o, (p) => new z(p.data), i);
5035
+ return (c = e.phone) != null && c.length && (o.phone = e.phone), (u = e.email) != null && u.length && (o.email = e.email), this.post(`/internal/clients/${r}/contacts`, o, (p) => new B(p.data), i);
5140
5036
  }
5141
5037
  /**
5142
5038
  * Устанавливает признак основного контактного лица.
@@ -5165,66 +5061,7 @@ class O extends Ce {
5165
5061
  return this.get(`/internal/clients/${r.id}/verification/email?email=${r.email}`);
5166
5062
  }
5167
5063
  }
5168
- const ee = class ee extends h {
5169
- /**
5170
- * Инициализирует экземпляр класса {@link HttpCachedRequester}.
5171
- */
5172
- constructor() {
5173
- super();
5174
- /**
5175
- * Время кэширования данных ответов на запросы (секунд).
5176
- */
5177
- s(this, "responseDataCacheTimeout");
5178
- this.responseDataCacheTimeout = k().config.http.responseDataCacheTimeout;
5179
- }
5180
- /**
5181
- * Возвращает кэшированные данные.
5182
- * Если кэшированные данные отсутствуют, то вернет undefined.
5183
- *
5184
- * @param key Ключ запроса.
5185
- */
5186
- // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
5187
- static getCachedResponse(e) {
5188
- const t = ee.responseDataCache.get(e);
5189
- if (t && t.validTo > /* @__PURE__ */ new Date())
5190
- return t.val;
5191
- }
5192
- /**
5193
- * Сохраняет указанные данные из запроса в кэш результатов.
5194
- *
5195
- * @param url URL запроса.
5196
- * @param data Данные для кэширования.
5197
- */
5198
- cacheResponse(e, t) {
5199
- ee.responseDataCache.set(e, {
5200
- validTo: Wr(/* @__PURE__ */ new Date(), this.responseDataCacheTimeout),
5201
- val: t
5202
- });
5203
- }
5204
- /**
5205
- * Возвращает {@link Promise} типизированного результата выполнения запроса.
5206
- *
5207
- * @param type Тип возвращаемых данных.
5208
- * @param url URL запроса для получения данных.
5209
- * @param useResponseDataCache Признак необходимости кэшировать данные ответов на запросы
5210
- * и использовать в случае аналогичных запросов.
5211
- * @param params Дополнительные параметры запроса.
5212
- */
5213
- // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
5214
- getTypedDataArrayRequester(e, t, i = !1, o = {}) {
5215
- const c = t + (re(o) ? "" : ` >>> ${JSON.stringify(o)}`), u = i ? ee.getCachedResponse(c) : void 0;
5216
- return u ? Promise.resolve(u) : this.get(t, o).then((p) => {
5217
- const m = p.map((f) => Ge.instanceInitializer(e, f));
5218
- return i && m && this.cacheResponse(t, m), m;
5219
- });
5220
- }
5221
- };
5222
- /**
5223
- * Кэш результатов запросов.
5224
- */
5225
- s(ee, "responseDataCache", /* @__PURE__ */ new Map());
5226
- let fe = ee;
5227
- class gs extends h {
5064
+ class ls extends h {
5228
5065
  /**
5229
5066
  * Выполняет проверку занят ли указанный номер телефона.
5230
5067
  *
@@ -5238,7 +5075,7 @@ class gs extends h {
5238
5075
  });
5239
5076
  }
5240
5077
  }
5241
- class ms {
5078
+ class us {
5242
5079
  /**
5243
5080
  * Инициализирует экземпляр класса {@link VersionConfig}.
5244
5081
  *
@@ -5260,8 +5097,8 @@ class ms {
5260
5097
  this.date = a(r == null ? void 0 : r.date) ? C(r.date) : (r == null ? void 0 : r.date) ?? /* @__PURE__ */ new Date(), this.name = (r == null ? void 0 : r.name) ?? "", this.version = (r == null ? void 0 : r.version) ?? "0.0.0";
5261
5098
  }
5262
5099
  }
5263
- var $t = /* @__PURE__ */ ((n) => (n.Kozyrek = "kozyrek", n.Mosquitto = "mosquitto", n.Strip = "strip", n.MetalForDoors = "metal_for_doors", n.Sandwich = "sandwich", n.SandwichM2 = "sandwich_m2", n))($t || {});
5264
- class fs extends h {
5100
+ var Ct = /* @__PURE__ */ ((n) => (n.Kozyrek = "kozyrek", n.Mosquitto = "mosquitto", n.Strip = "strip", n.MetalForDoors = "metal_for_doors", n.Sandwich = "sandwich", n.SandwichM2 = "sandwich_m2", n))(Ct || {});
5101
+ class ps extends h {
5265
5102
  /**
5266
5103
  * Возвращает настройки указанного конфигуратора для указанной категории.
5267
5104
  *
@@ -5352,22 +5189,89 @@ class fs extends h {
5352
5189
  });
5353
5190
  }
5354
5191
  }
5355
- class ys {
5192
+ class Pt {
5193
+ /**
5194
+ * Инициализирует экземпляр класса {@link TableDataPaginationRequestParams}.
5195
+ *
5196
+ * @param data Данные для первоначальной инициализации.
5197
+ */
5198
+ constructor(r) {
5199
+ /**
5200
+ * Номер текущей страницы.
5201
+ */
5202
+ s(this, "page", 1);
5203
+ /**
5204
+ * Количество записей на странице.
5205
+ */
5206
+ s(this, "pageSize", 50);
5207
+ this.page = (r == null ? void 0 : r.page) ?? 1, this.pageSize = (r == null ? void 0 : r.pageSize) ?? 50;
5208
+ }
5209
+ }
5210
+ class hs extends Pt {
5211
+ /**
5212
+ * Инициализирует экземпляр класса {@link TableDataPagination}.
5213
+ *
5214
+ * @param data Данные для первоначальной инициализации.
5215
+ */
5216
+ constructor(e) {
5217
+ super(e);
5218
+ /**
5219
+ * Количество записей в таблице.
5220
+ */
5221
+ s(this, "itemCount", 0);
5222
+ /**
5223
+ * Число страниц с данными.
5224
+ */
5225
+ s(this, "pageCount", 1);
5226
+ /**
5227
+ * Число отображаемых номеров страниц.
5228
+ */
5229
+ s(this, "pageSlot", 5);
5230
+ /**
5231
+ * Значения для выпадающего списка "Количество записей на странице".
5232
+ */
5233
+ s(this, "pageSizes", [25, 50, 100]);
5234
+ /**
5235
+ * Признак необходимости отображать список выбора числа отображаемых записей.
5236
+ */
5237
+ s(this, "showSizePicker", !0);
5238
+ this.itemCount = (e == null ? void 0 : e.itemCount) ?? 0, this.pageCount = (e == null ? void 0 : e.pageCount) ?? 1, this.pageSlot = (e == null ? void 0 : e.pageSlot) ?? 5, this.pageSizes = (e == null ? void 0 : e.pageSizes) ?? [25, 50, 100], this.showSizePicker = (e == null ? void 0 : e.showSizePicker) ?? !0;
5239
+ }
5240
+ }
5241
+ class gs {
5242
+ /**
5243
+ * Инициализирует экземпляр класса {@link ISortRequestParams}.
5244
+ *
5245
+ * @param data Данные для первоначальной инициализации.
5246
+ */
5247
+ constructor(r) {
5248
+ /**
5249
+ * Поле по которому необходимо выполнить сортировку
5250
+ */
5251
+ s(this, "field");
5252
+ /**
5253
+ * Направление сортировки.
5254
+ */
5255
+ s(this, "direction");
5256
+ this.field = (r == null ? void 0 : r.field) ?? "", this.direction = (r == null ? void 0 : r.direction) ?? "asc";
5257
+ }
5258
+ }
5259
+ class ms {
5356
5260
  /**
5357
5261
  * Возвращает диапазон дат по умолчанию.
5358
5262
  */
5359
5263
  static defaultDateRanges() {
5360
- const r = Jr(/* @__PURE__ */ new Date(), 1);
5264
+ const r = Wr(/* @__PURE__ */ new Date(), 1);
5361
5265
  return {
5362
5266
  // 'Следующий рабочий день' - это значение по-умолчанию
5363
- nextWorkingDay: { label: "Следующий рабочий день", from: Zr(r), to: Xr(r) },
5364
- today: { label: "Сегодня", from: qe(), to: Yr() },
5365
- yesterday: { label: "Вчера", from: Qr(), to: Kr() },
5366
- tomorrow: { label: "Завтра", from: Vr(), to: Er() }
5267
+ nextWorkingDay: { label: "Следующий рабочий день", from: Xr(r), to: Yr(r) },
5268
+ today: { label: "Сегодня", from: qe(), to: Qr() },
5269
+ yesterday: { label: "Вчера", from: Kr(), to: Vr() },
5270
+ tomorrow: { label: "Завтра", from: Er(), to: Jr() }
5367
5271
  };
5368
5272
  }
5369
5273
  }
5370
- class _r {
5274
+ class kr {
5371
5275
  /**
5372
5276
  * Возвращает признак, что указанный товар имеет линейную единицу измерения.
5373
5277
  *
@@ -5383,7 +5287,7 @@ class _r {
5383
5287
  */
5384
5288
  static getProductMultiplicity(r) {
5385
5289
  var e, t;
5386
- return !((e = r.properties) != null && e.ignoreMinCountCheck) && ((t = r.properties) != null && t.minCount) && !_r.productIsMeasurable(r) ? r.properties.minCount : 1;
5290
+ return !((e = r.properties) != null && e.ignoreMinCountCheck) && ((t = r.properties) != null && t.minCount) && !kr.productIsMeasurable(r) ? r.properties.minCount : 1;
5387
5291
  }
5388
5292
  /**
5389
5293
  * Возвращает кратность длины для указанного товара.
@@ -5395,11 +5299,70 @@ class _r {
5395
5299
  return (e = r.properties) != null && e.lengthStep ? r.properties.lengthStep : !((t = r.properties) != null && t.ignoreMinCountCheck) && ((i = r.properties) != null && i.minCount) ? r.properties.minCount : 0.01;
5396
5300
  }
5397
5301
  }
5398
- function ws(n, r) {
5302
+ const ee = class ee extends h {
5303
+ /**
5304
+ * Инициализирует экземпляр класса {@link HttpCachedRequester}.
5305
+ */
5306
+ constructor() {
5307
+ super();
5308
+ /**
5309
+ * Время кэширования данных ответов на запросы (секунд).
5310
+ */
5311
+ s(this, "responseDataCacheTimeout");
5312
+ this.responseDataCacheTimeout = k().config.http.responseDataCacheTimeout;
5313
+ }
5314
+ /**
5315
+ * Возвращает кэшированные данные.
5316
+ * Если кэшированные данные отсутствуют, то вернет undefined.
5317
+ *
5318
+ * @param key Ключ запроса.
5319
+ */
5320
+ // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
5321
+ static getCachedResponse(e) {
5322
+ const t = ee.responseDataCache.get(e);
5323
+ if (t && t.validTo > /* @__PURE__ */ new Date())
5324
+ return t.val;
5325
+ }
5326
+ /**
5327
+ * Сохраняет указанные данные из запроса в кэш результатов.
5328
+ *
5329
+ * @param url URL запроса.
5330
+ * @param data Данные для кэширования.
5331
+ */
5332
+ cacheResponse(e, t) {
5333
+ ee.responseDataCache.set(e, {
5334
+ validTo: Zr(/* @__PURE__ */ new Date(), this.responseDataCacheTimeout),
5335
+ val: t
5336
+ });
5337
+ }
5338
+ /**
5339
+ * Возвращает {@link Promise} типизированного результата выполнения запроса.
5340
+ *
5341
+ * @param type Тип возвращаемых данных.
5342
+ * @param url URL запроса для получения данных.
5343
+ * @param useResponseDataCache Признак необходимости кэшировать данные ответов на запросы
5344
+ * и использовать в случае аналогичных запросов.
5345
+ * @param params Дополнительные параметры запроса.
5346
+ */
5347
+ // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
5348
+ getTypedDataArrayRequester(e, t, i = !1, o = {}) {
5349
+ const c = t + (re(o) ? "" : ` >>> ${JSON.stringify(o)}`), u = i ? ee.getCachedResponse(c) : void 0;
5350
+ return u ? Promise.resolve(u) : this.get(t, o).then((p) => {
5351
+ const m = p.map((f) => ze.instanceInitializer(e, f));
5352
+ return i && m && this.cacheResponse(t, m), m;
5353
+ });
5354
+ }
5355
+ };
5356
+ /**
5357
+ * Кэш результатов запросов.
5358
+ */
5359
+ s(ee, "responseDataCache", /* @__PURE__ */ new Map());
5360
+ let fe = ee;
5361
+ function fs(n, r) {
5399
5362
  const e = [2, 0, 1, 1, 1, 2];
5400
5363
  return r[n % 100 > 4 && n % 100 < 20 ? 2 : e[Math.min(n % 10, 5)]];
5401
5364
  }
5402
- class vs {
5365
+ class ys {
5403
5366
  /**
5404
5367
  * Генерирует и возвращает данные-заглушку неопределённого менеджера.
5405
5368
  */
@@ -5415,7 +5378,7 @@ class vs {
5415
5378
  return r.id === 0 && r.guid === "-undefined-";
5416
5379
  }
5417
5380
  }
5418
- class dt extends fe {
5381
+ class Rt extends fe {
5419
5382
  /**
5420
5383
  * Возвращает {@link Promise} для получения справочника списка менеджеров.
5421
5384
  */
@@ -5423,11 +5386,11 @@ class dt extends fe {
5423
5386
  const r = "/internal/managers", e = fe.getCachedResponse(r);
5424
5387
  if (e)
5425
5388
  return e;
5426
- const i = (await this.get(r)).data.map((o) => Ge.instanceInitializer(ae, o));
5389
+ const i = (await this.get(r)).data.map((o) => ze.instanceInitializer(ae, o));
5427
5390
  return this.cacheResponse(r, i), i;
5428
5391
  }
5429
5392
  }
5430
- class Or extends J {
5393
+ class Lr extends J {
5431
5394
  /**
5432
5395
  * Инициализирует экземпляр класса {@link OfferShortInfo}.
5433
5396
  *
@@ -5454,7 +5417,7 @@ class Or extends J {
5454
5417
  this.name = e == null ? void 0 : e.name, this.createdAt = a(e == null ? void 0 : e.createdAt) ? C(e.createdAt) : (e == null ? void 0 : e.createdAt) ?? /* @__PURE__ */ new Date(), this.client = new E(e == null ? void 0 : e.client), this.sum = e == null ? void 0 : e.sum;
5455
5418
  }
5456
5419
  }
5457
- class X extends Or {
5420
+ class X extends Lr {
5458
5421
  /**
5459
5422
  * Инициализирует экземпляр класса {@link Offer}.
5460
5423
  *
@@ -5470,10 +5433,10 @@ class X extends Or {
5470
5433
  * @inheritDoc
5471
5434
  */
5472
5435
  s(this, "products");
5473
- this.sum = e.sum ?? 0, this.products = (e.products ?? []).map((t) => new vr(t));
5436
+ this.sum = e.sum ?? 0, this.products = (e.products ?? []).map((t) => new wr(t));
5474
5437
  }
5475
5438
  }
5476
- class as extends Ke {
5439
+ class ws extends Ke {
5477
5440
  /**
5478
5441
  * Инициализирует экземпляр класса {@link OffersListFilters}.
5479
5442
  *
@@ -5514,7 +5477,9 @@ class as extends Ke {
5514
5477
  return !((t = e == null ? void 0 : e.createdAt) != null && t.from) && !((i = e == null ? void 0 : e.createdAt) != null && i.to) && delete e.createdAt, e;
5515
5478
  }
5516
5479
  }
5517
- class xr extends Ir {
5480
+ class de extends w {
5481
+ }
5482
+ class Ir extends Sr {
5518
5483
  /**
5519
5484
  * Инициализирует экземпляр класса {@link OrderInfo}.
5520
5485
  *
@@ -5583,7 +5548,7 @@ class xr extends Ir {
5583
5548
  }, this.attachedUser = e != null && e.attachedUser ? new _(e == null ? void 0 : e.attachedUser) : void 0, this.status = new de(e == null ? void 0 : e.status), this.statusDetail = e != null && e.statusDetail ? new w(e.statusDetail) : void 0, this.salesDirection = new q(e == null ? void 0 : e.salesDirection), this.attachedAt = a(e == null ? void 0 : e.attachedAt) ? C(e.attachedAt) : e == null ? void 0 : e.attachedAt, this.isOnOrder = (e == null ? void 0 : e.isOnOrder) ?? !1, this.isNotInStock = (e == null ? void 0 : e.isNotInStock) ?? !1, this.sum = (e == null ? void 0 : e.sum) ?? 0, this.isLargeOrder = (e == null ? void 0 : e.isLargeOrder) ?? !1;
5584
5549
  }
5585
5550
  }
5586
- class Tt extends wr {
5551
+ class Dt extends yr {
5587
5552
  /**
5588
5553
  * Инициализирует экземпляр класса {@link OrderItem}.
5589
5554
  *
@@ -5643,7 +5608,7 @@ class Tt extends wr {
5643
5608
  this.product = new j(e.product), this.currency = new x(e.currency), this.cost = e.cost, this.costOne = e.costOne, this.costOneRub = e.costOneRub, this.costRub = e.costRub, this.logicGroupId = e.logicGroupId, this.salesDirection = e.salesDirection, this.specificationImgUrl = e.specificationImgUrl, this.sawing = e.sawing, t && (this.replacement = t, this.quantity !== t.quantity && this.changedFields.push("quantity"), this.length !== t.length && this.changedFields.push("length"));
5644
5609
  }
5645
5610
  }
5646
- class b extends xr {
5611
+ class b extends Ir {
5647
5612
  /**
5648
5613
  * Инициализирует экземпляр класса {@link Order}.
5649
5614
  *
@@ -5707,11 +5672,11 @@ class b extends xr {
5707
5672
  this.products = (e.products ?? []).map((i) => {
5708
5673
  var c;
5709
5674
  const o = i.replacementId ? (c = e.products) == null ? void 0 : c.find((u) => u.id === i.replacementId) : void 0;
5710
- return new Tt(i, o);
5675
+ return new Dt(i, o);
5711
5676
  }), this.invoices = e.invoices ?? [], this.comment = e.comment, this.image = e.image, this.contragent = e.contragent ? De.createInstance(e.contragent) : void 0, this.barcode = e.barcode, this.orderSource = e.orderSource ? new w(e.orderSource) : void 0, this.isAllowProcessingWithoutPayment = e.isAllowProcessingWithoutPayment, this.nextStatuses = (t = e.nextStatuses) == null ? void 0 : t.map((i) => new de(i)), this.actions = e.actions, this.operatorsComment = e.operatorsComment, this.operatorsForWarehouseComment = e.operatorsForWarehouseComment, this.erpOrderUrl = e.erpOrderUrl;
5712
5677
  }
5713
5678
  }
5714
- class Cs extends Ce {
5679
+ class vs extends Ce {
5715
5680
  /**
5716
5681
  * Возвращает список заказов-черновиков, удовлетворяющих указанным параметрам поиска.
5717
5682
  *
@@ -5731,7 +5696,7 @@ class Cs extends Ce {
5731
5696
  {},
5732
5697
  (o) => {
5733
5698
  const c = { ...o.data };
5734
- return c.data = c.data.map((u) => new Or(u)), c;
5699
+ return c.data = c.data.map((u) => new Lr(u)), c;
5735
5700
  },
5736
5701
  void 0,
5737
5702
  i
@@ -5910,8 +5875,8 @@ class Cs extends Ce {
5910
5875
  return this.post(`/internal/orders/offers/${r}/send`, e);
5911
5876
  }
5912
5877
  }
5913
- var bt = /* @__PURE__ */ ((n) => (n.View = "view", n.Share = "share", n.EditTags = "edit_tags", n.SaveOrderIgnoredProducts = "save_order_ignored_products", n.ChangeStatus = "change_status", n.ChangeProducts = "change_products", n.ChangeOrderParameters = "change_order_parameters", n.Recalculate = "recalculate", n.AttachOrder = "attach_order", n.DetachOrder = "detach_order", n.ChangeAttachedOperator = "change_attached_operator", n.SendOnlinePaymentLink = "send_online_payment_link", n.ConfirmOnlineFullPayment = "confirm_online_full_payment", n.MergeOrders = "merge_orders", n.GetHistory = "get_history", n.CloneOrder = "clone_order", n.DeleteAttachedFile = "delete_attached_file", n))(bt || {});
5914
- class Ps {
5878
+ var At = /* @__PURE__ */ ((n) => (n.View = "view", n.Share = "share", n.EditTags = "edit_tags", n.SaveOrderIgnoredProducts = "save_order_ignored_products", n.ChangeStatus = "change_status", n.ChangeProducts = "change_products", n.ChangeOrderParameters = "change_order_parameters", n.Recalculate = "recalculate", n.AttachOrder = "attach_order", n.DetachOrder = "detach_order", n.ChangeAttachedOperator = "change_attached_operator", n.SendOnlinePaymentLink = "send_online_payment_link", n.ConfirmOnlineFullPayment = "confirm_online_full_payment", n.MergeOrders = "merge_orders", n.GetHistory = "get_history", n.CloneOrder = "clone_order", n.DeleteAttachedFile = "delete_attached_file", n))(At || {});
5879
+ class as {
5915
5880
  /**
5916
5881
  * Инициализирует экземпляр класса {@link OrderEditorData}.
5917
5882
  *
@@ -5978,487 +5943,97 @@ class Ps {
5978
5943
  this.paymentType = r == null ? void 0 : r.payment.type, this.deliveryType = r == null ? void 0 : r.delivery.type, this.contragentId = (e = r == null ? void 0 : r.contragent) == null ? void 0 : e.id, this.deliveryDate = r != null && r.delivery.date ? new Date(r.delivery.date) : void 0, this.addressId = (t = r == null ? void 0 : r.delivery.address) == null ? void 0 : t.id, this.warehouseId = (i = r == null ? void 0 : r.delivery.warehouse) == null ? void 0 : i.id, this.comment = r == null ? void 0 : r.comment, this.barcode = r == null ? void 0 : r.barcode, this.operatorsComment = r == null ? void 0 : r.operatorsComment, this.operatorsForWarehouseComment = r == null ? void 0 : r.operatorsForWarehouseComment, this.isAllowProcessingWithoutPayment = r == null ? void 0 : r.isAllowProcessingWithoutPayment;
5979
5944
  }
5980
5945
  }
5981
- var St = /* @__PURE__ */ ((n) => (n.New = "new", n.Processing = "processing", n.AwaitingSupplyProducts = "awaiting_supply_products", n.InvoiceIssued = "invoice_issued", n.ProcessingOnStock = "processing_on_stock", n.Finished = "finished", n.OrderUpdated = "order_updated", n.Canceled = "canceled", n.Error = "error", n))(St || {}), kt = /* @__PURE__ */ ((n) => (n.WillWaiting = "will_waiting", n))(kt || {});
5982
- class T extends fe {
5946
+ class _r extends w {
5947
+ }
5948
+ class Or extends w {
5949
+ }
5950
+ class Cs extends Ke {
5983
5951
  /**
5984
- * Возвращает {@link Promise} для получения данных указанного справочника.
5952
+ * Инициализирует экземпляр класса {@link OrdersListFilters}.
5985
5953
  *
5986
- * @param referenceName Название справочника.
5987
- * @param useResponseDataCache Признак необходимости кэшировать данные ответов на запросы
5988
- * и использовать в случае аналогичных запросов.
5989
- */
5990
- getReference(r, e = !1) {
5991
- return this.getTypedDataArrayRequester(yt, `/internal/references/${r}`, e);
5992
- }
5993
- /**
5994
- * Возвращает {@link Promise} для получения справочника данных о канале
5995
- * первичного интереса.
5996
- */
5997
- getChannelPrimaryInterest() {
5998
- return this.getTypedDataArrayRequester(Ar, "/internal/references/channel-primary-interest", !0);
5999
- }
6000
- /**
6001
- * Возвращает {@link Promise} для получения справочника должностей контактных лиц.
6002
- */
6003
- getContactPositions() {
6004
- return this.getTypedDataArrayRequester(wt, "/internal/references/contact-position", !0);
6005
- }
6006
- /**
6007
- * Возвращает {@link Promise} для получения справочника списка направлений кураторства.
6008
- */
6009
- getCuratedDirection() {
6010
- return this.getTypedDataArrayRequester(Je, "/internal/references/curated-direction", !0);
6011
- }
6012
- /**
6013
- * Возвращает {@link Promise} для получения справочника списка валют.
6014
- */
6015
- getCurrency() {
6016
- return this.getTypedDataArrayRequester(x, "/public/references/currency", !0);
6017
- }
6018
- /**
6019
- * Возвращает {@link Promise} для получения справочника данных
6020
- * групп партнеров (направлений деятельности).
6021
- */
6022
- getPartnerGroup() {
6023
- return this.getTypedDataArrayRequester(se, "/internal/references/partner-group", !0);
6024
- }
6025
- /**
6026
- * Возвращает {@link Promise} для получения справочника данных организационно-правовых форм.
6027
- */
6028
- getOpf() {
6029
- return this.getTypedDataArrayRequester(B, "/public/references/opf", !0);
6030
- }
6031
- /**
6032
- * Возвращает {@link Promise} для получения справочника операторов.
6033
- */
6034
- getOperators() {
6035
- return this.getTypedDataArrayRequester($r, "/internal/references/operator", !0);
6036
- }
6037
- /**
6038
- * Возвращает {@link Promise} для получения справочника данных статусов оплаты заказов.
5954
+ * @param data Данные для первоначальной инициализации.
6039
5955
  */
6040
- getOrderPaymentStatuses() {
6041
- return this.getTypedDataArrayRequester(vt, "/public/references/order-payment-status", !0);
6042
- }
6043
- /**
6044
- * Возвращает {@link Promise} для получения справочника данных статусов заказов.
6045
- */
6046
- getOrderStatuses() {
6047
- return this.getTypedDataArrayRequester(de, "/internal/references/order-status", !0);
6048
- }
6049
- /**
6050
- * Возвращает {@link Promise} для получения справочника данных типов оплаты заказов.
6051
- */
6052
- getPaymentTypes() {
6053
- return this.getTypedDataArrayRequester(dr, "/public/references/payment-type", !0);
6054
- }
6055
- /**
6056
- * Возвращает {@link Promise} для получения справочника типов ресурсов.
6057
- */
6058
- getResourceTypes() {
6059
- return this.getTypedDataArrayRequester(Tr, "/internal/references/resource-type", !0);
6060
- }
6061
- /**
6062
- * Возвращает {@link Promise} для получения справочника данных направлений продаж.
6063
- */
6064
- getSalesDirections() {
6065
- return this.getTypedDataArrayRequester(q, "/public/references/sales-direction", !0);
6066
- }
6067
- /**
6068
- * Возвращает {@link Promise} для получения справочника данных об источнике первичного интереса.
6069
- */
6070
- getSourcePrimaryInterest() {
6071
- return this.getTypedDataArrayRequester(br, "/internal/references/source-primary-interest", !0);
6072
- }
6073
- /**
6074
- * Выполняет поиск данных о городах по терму в названии.
6075
- *
6076
- * @param term Терм поиска.
6077
- */
6078
- searchCity(r) {
6079
- return this.getTypedDataArrayRequester($e, `/internal/references/city-with-region-and-country/search?term=${r}`);
6080
- }
6081
- /**
6082
- * Выполняет поиск данных о регионах по терму в названии.
6083
- *
6084
- * @param term Терм поиска.
6085
- */
6086
- searchRegion(r) {
6087
- return this.getTypedDataArrayRequester(me, `/internal/references/region-with-country/search?term=${r}`);
6088
- }
6089
- /**
6090
- * Выполняет поиск данных о странах по терму в названии.
6091
- *
6092
- * @param term Терм поиска.
6093
- */
6094
- searchCountry(r) {
6095
- return this.getTypedDataArrayRequester(te, `/internal/references/country/search?term=${r}`);
6096
- }
6097
- /**
6098
- * Возвращает {@link Promise} для получения справочника типов доставки.
6099
- */
6100
- getDeliveryTypes() {
6101
- return this.getTypedDataArrayRequester(F, "/internal/references/delivery-type", !0);
6102
- }
6103
- /**
6104
- * Возвращает {@link Promise} для получения справочника складов.
6105
- */
6106
- getWarehouses() {
6107
- return this.getTypedDataArrayRequester(we, "/public/references/warehouse", !0);
6108
- }
6109
- /**
6110
- * Возвращает {@link Promise} для получения справочника типов свойств.
6111
- */
6112
- getPropertyTypes() {
6113
- return this.getTypedDataArrayRequester(Dr, "/internal/references/property-type", !0);
6114
- }
6115
- /**
6116
- * Возвращает {@link Promise} для получения справочника коэффициентов цен.
6117
- */
6118
- getPriceCoefficients() {
6119
- return this.getTypedDataArrayRequester(Ae, "/internal/references/price-coefficient", !0);
6120
- }
6121
- /**
6122
- * Возвращает {@link Promise} для получения справочника типов файлов продуктов/категорий.
6123
- */
6124
- getProductFileType() {
6125
- return this.getTypedDataArrayRequester(at, "/public/references/product-file-type", !0);
6126
- }
6127
- }
6128
- const d = W("common.references_private", () => {
6129
- const n = y({}), r = y(void 0), e = y(void 0), t = y(void 0), i = y(void 0), o = y(void 0), c = y(void 0), u = y(void 0), p = y(void 0), m = y(void 0), f = y(void 0), D = y(void 0), ie = y(void 0), ne = y(void 0), V = y(void 0), K = y(void 0), Te = y(void 0), be = y(void 0), l = y(void 0);
6130
- return {
5956
+ constructor(e) {
5957
+ var t, i, o, c;
5958
+ super();
6131
5959
  /**
6132
- * Список загружаемых/загруженных на данный момент значений.
5960
+ * @inheritDoc
6133
5961
  */
6134
- dataLoaderList: n,
5962
+ s(this, "attachedUsers");
6135
5963
  /**
6136
- * Справочник каналов первичного интереса.
5964
+ * @inheritDoc
6137
5965
  */
6138
- channelPrimaryInterestReference: r,
5966
+ s(this, "clientSearchTerm");
6139
5967
  /**
6140
- * Справочник должностей контактных лиц.
5968
+ * @inheritDoc
6141
5969
  */
6142
- contactPositionsReference: e,
5970
+ s(this, "client");
6143
5971
  /**
6144
- * Справочник валют.
5972
+ * @inheritDoc
6145
5973
  */
6146
- currencyReference: t,
5974
+ s(this, "contragent");
6147
5975
  /**
6148
- * Справочник типов доставки.
5976
+ * @inheritDoc
6149
5977
  */
6150
- deliveryTypeReference: i,
5978
+ s(this, "createdAt", new A());
6151
5979
  /**
6152
- * Список менеджеров.
5980
+ * @inheritDoc
6153
5981
  */
6154
- managersList: o,
5982
+ s(this, "creator");
6155
5983
  /**
6156
- * Справочник организационно-правовых форм.
5984
+ * @inheritDoc
6157
5985
  */
6158
- opfReference: c,
5986
+ s(this, "deliveryDate", new A());
6159
5987
  /**
6160
- * Справочник операторов.
5988
+ * @inheritDoc
6161
5989
  */
6162
- operatorReference: u,
5990
+ s(this, "deliveryAddressSearch");
6163
5991
  /**
6164
- * Справочник статусов оплаты заказа.
5992
+ * @inheritDoc
6165
5993
  */
6166
- orderPaymentStatusReference: p,
5994
+ s(this, "clientCities");
6167
5995
  /**
6168
- * Справочник статусов заказов.
5996
+ * @inheritDoc
6169
5997
  */
6170
- orderStatusReference: m,
5998
+ s(this, "id");
6171
5999
  /**
6172
- * Справочник типов оплаты заказов.
6000
+ * @inheritDoc
6173
6001
  */
6174
- paymentTypeReference: f,
6002
+ s(this, "isApproved");
6175
6003
  /**
6176
- * Справочник групп партнеров.
6004
+ * @inheritDoc
6177
6005
  */
6178
- partnerGroupReference: D,
6006
+ s(this, "isNotInStock");
6179
6007
  /**
6180
- * Справочник типов файлов продукктов/категорий.
6008
+ * @inheritDoc
6181
6009
  */
6182
- productFileTypeReference: ie,
6010
+ s(this, "isOnOrder");
6183
6011
  /**
6184
- * Справочник типов ресурсов.
6012
+ * @inheritDoc
6185
6013
  */
6186
- resourceTypesReference: ne,
6014
+ s(this, "attachedAt", new A());
6187
6015
  /**
6188
- * Справочник направлений продаж.
6016
+ * @inheritDoc
6189
6017
  */
6190
- salesDirectionsReference: V,
6018
+ s(this, "salesDirections");
6191
6019
  /**
6192
- * Справочник источников первичного интереса.
6020
+ * @inheritDoc
6193
6021
  */
6194
- sourcePrimaryInterestReference: K,
6022
+ s(this, "status");
6195
6023
  /**
6196
- * Справочник складов.
6024
+ * @inheritDoc
6197
6025
  */
6198
- warehousesReference: Te,
6026
+ s(this, "statusDetail");
6199
6027
  /**
6200
- * Справочник типов свойств.
6028
+ * @inheritDoc
6201
6029
  */
6202
- propertyTypesReference: be,
6030
+ s(this, "deliveryType");
6203
6031
  /**
6204
- * Справочник коэффициентов цен.
6032
+ * @inheritDoc
6205
6033
  */
6206
- priceCoefficientsReference: l
6207
- };
6208
- }), Rs = W("common.references", () => {
6209
- const n = R(() => {
6210
- const l = d();
6211
- return !l.channelPrimaryInterestReference && !l.dataLoaderList.channelPrimaryInterestReference && (l.dataLoaderList.channelPrimaryInterestReference = !0, h.getInstance(T).getChannelPrimaryInterest().then((g) => {
6212
- l.channelPrimaryInterestReference = g;
6213
- }).catch(v)), l.channelPrimaryInterestReference;
6214
- }), r = R(() => {
6215
- const l = d();
6216
- return !l.contactPositionsReference && !l.dataLoaderList.contactPositionsReference && (l.dataLoaderList.contactPositionsReference = !0, h.getInstance(T).getContactPositions().then((g) => {
6217
- l.contactPositionsReference = g;
6218
- }).catch(v)), l.contactPositionsReference;
6219
- }), e = R(() => {
6220
- const l = d();
6221
- return !l.currencyReference && !l.dataLoaderList.currencyReference && (l.dataLoaderList.currencyReference = !0, h.getInstance(T).getCurrency().then((g) => {
6222
- l.currencyReference = g;
6223
- }).catch(v)), l.currencyReference;
6224
- }), t = R(() => {
6225
- const l = d();
6226
- return !l.opfReference && !l.dataLoaderList.opfReference && (l.dataLoaderList.opfReference = !0, h.getInstance(T).getOpf().then((g) => {
6227
- l.opfReference = g;
6228
- }).catch(v)), l.opfReference;
6229
- }), i = R(() => {
6230
- const l = d();
6231
- return !l.operatorReference && !l.dataLoaderList.operatorReference && (l.dataLoaderList.operatorReference = !0, h.getInstance(T).getOperators().then((g) => {
6232
- l.operatorReference = g;
6233
- }).catch(v)), l.operatorReference;
6234
- }), o = R(() => {
6235
- const l = d();
6236
- return !l.orderPaymentStatusReference && !l.dataLoaderList.orderPaymentStatusReference && (l.dataLoaderList.orderPaymentStatusReference = !0, h.getInstance(T).getOrderPaymentStatuses().then((g) => {
6237
- l.orderPaymentStatusReference = g;
6238
- }).catch(v)), l.orderPaymentStatusReference;
6239
- }), c = R(() => {
6240
- const l = d();
6241
- return !l.orderStatusReference && !l.dataLoaderList.orderStatusReference && (l.dataLoaderList.orderStatusReference = !0, h.getInstance(T).getOrderStatuses().then((g) => {
6242
- l.orderStatusReference = g;
6243
- }).catch(v)), l.orderStatusReference;
6244
- }), u = R(() => {
6245
- const l = d();
6246
- return !l.paymentTypeReference && !l.dataLoaderList.paymentTypeReference && (l.dataLoaderList.paymentTypeReference = !0, h.getInstance(T).getPaymentTypes().then((g) => {
6247
- l.paymentTypeReference = g;
6248
- }).catch(v)), l.paymentTypeReference;
6249
- }), p = R(() => {
6250
- const l = d();
6251
- return !l.partnerGroupReference && !l.dataLoaderList.partnerGroupReference && (l.dataLoaderList.partnerGroupReference = !0, h.getInstance(T).getPartnerGroup().then((g) => {
6252
- l.partnerGroupReference = g;
6253
- }).catch(v)), l.partnerGroupReference;
6254
- }), m = R(() => {
6255
- const l = d();
6256
- return !l.productFileTypeReference && !l.dataLoaderList.productFileTypeReference && (l.dataLoaderList.productFileTypeReference = !0, h.getInstance(T).getProductFileType().then((g) => {
6257
- l.productFileTypeReference = g;
6258
- }).catch(v)), l.productFileTypeReference;
6259
- }), f = R(() => {
6260
- const l = d();
6261
- return !l.resourceTypesReference && !l.dataLoaderList.resourceTypesReference && (l.dataLoaderList.resourceTypesReference = !0, h.getInstance(T).getResourceTypes().then((g) => {
6262
- l.resourceTypesReference = g;
6263
- }).catch(v)), l.resourceTypesReference;
6264
- }), D = R(() => {
6265
- const l = d();
6266
- return !l.salesDirectionsReference && !l.dataLoaderList.salesDirectionsReference && (l.dataLoaderList.salesDirectionsReference = !0, h.getInstance(T).getSalesDirections().then((g) => {
6267
- l.salesDirectionsReference = g;
6268
- }).catch(v)), l.salesDirectionsReference;
6269
- }), ie = R(() => {
6270
- const l = d();
6271
- return !l.sourcePrimaryInterestReference && !l.dataLoaderList.sourcePrimaryInterestReference && (l.dataLoaderList.sourcePrimaryInterestReference = !0, h.getInstance(T).getSourcePrimaryInterest().then((g) => {
6272
- l.sourcePrimaryInterestReference = g;
6273
- }).catch(v)), l.sourcePrimaryInterestReference;
6274
- }), ne = R(() => {
6275
- const l = d();
6276
- return !l.deliveryTypeReference && !l.dataLoaderList.deliveryTypeReference && (l.dataLoaderList.deliveryTypeReference = !0, h.getInstance(T).getDeliveryTypes().then((g) => {
6277
- l.deliveryTypeReference = g;
6278
- }).catch(v)), l.deliveryTypeReference;
6279
- }), V = R(() => {
6280
- const l = d();
6281
- return !l.managersList && !l.dataLoaderList.managersList && (l.dataLoaderList.managersList = !0, h.getInstance(dt).getManagers().then((g) => {
6282
- l.managersList = g;
6283
- }).catch(v)), l.managersList;
6284
- }), K = R(() => {
6285
- const l = d();
6286
- return !l.warehousesReference && !l.dataLoaderList.warehousesReference && (l.dataLoaderList.warehousesReference = !0, h.getInstance(T).getWarehouses().then((g) => {
6287
- l.warehousesReference = g;
6288
- }).catch(v)), l.warehousesReference;
6289
- }), Te = R(() => {
6290
- const l = d();
6291
- return !l.propertyTypesReference && !l.dataLoaderList.propertyTypesReference && (l.dataLoaderList.propertyTypesReference = !0, h.getInstance(T).getPropertyTypes().then((g) => {
6292
- l.propertyTypesReference = g;
6293
- }).catch(v)), l.propertyTypesReference;
6294
- }), be = R(() => {
6295
- const l = d();
6296
- return !l.priceCoefficientsReference && !l.dataLoaderList.priceCoefficientsReference && (l.dataLoaderList.priceCoefficientsReference = !0, h.getInstance(T).getPriceCoefficients().then((g) => {
6297
- l.priceCoefficientsReference = g;
6298
- }).catch(v)), l.priceCoefficientsReference;
6299
- });
6300
- return {
6034
+ s(this, "paymentType");
6301
6035
  /**
6302
- * Справочник каналов первичного интереса.
6303
- */
6304
- channelPrimaryInterestsReference: n,
6305
- /**
6306
- * Справочник должностей контактных лиц.
6307
- */
6308
- contactPositionsReference: r,
6309
- /**
6310
- * Справочник валют.
6311
- */
6312
- currencyReference: e,
6313
- /**
6314
- * Справочник организационно-правовых форм.
6315
- */
6316
- opfReference: t,
6317
- /**
6318
- * Справочник операторов.
6319
- */
6320
- operatorReference: i,
6321
- /**
6322
- * Справочник статусов оплаты заказа.
6323
- */
6324
- orderPaymentStatusReference: o,
6325
- /**
6326
- * Справочник статусов заказов.
6327
- */
6328
- orderStatusReference: c,
6329
- /**
6330
- * Справочник типов оплаты заказов.
6331
- */
6332
- paymentTypeReference: u,
6333
- /**
6334
- * Справочник групп партнеров.
6335
- */
6336
- partnerGroupsReference: p,
6337
- /**
6338
- * Справочник типов файлов продуктов/категорий.
6339
- */
6340
- productFilesTypesReference: m,
6341
- /**
6342
- * Справочник типов ресурсов.
6343
- */
6344
- resourceTypesReference: f,
6345
- /**
6346
- * Справочник направлений продаж.
6347
- */
6348
- salesDirectionsReference: D,
6349
- /**
6350
- * Справочник каналов первичного интереса.
6351
- */
6352
- sourcePrimaryInterestsReference: ie,
6353
- /**
6354
- * Справочник типов доставки.
6355
- */
6356
- deliveryTypeReference: ne,
6357
- /**
6358
- * Список менеджеров.
6359
- */
6360
- managersList: V,
6361
- /**
6362
- * Справочник складов.
6363
- */
6364
- warehousesReference: K,
6365
- /**
6366
- * Справочник типов свойств.
6367
- */
6368
- propertyTypesReference: Te,
6369
- /**
6370
- * Справочник коэффициентов цен.
6371
- */
6372
- priceCoefficientsReference: be
6373
- };
6374
- });
6375
- class Ds extends Ke {
6376
- /**
6377
- * Инициализирует экземпляр класса {@link OrdersListFilters}.
6378
- *
6379
- * @param data Данные для первоначальной инициализации.
6380
- */
6381
- constructor(e) {
6382
- var t, i, o, c;
6383
- super();
6384
- /**
6385
- * @inheritDoc
6386
- */
6387
- s(this, "attachedUsers");
6388
- /**
6389
- * @inheritDoc
6390
- */
6391
- s(this, "clientSearchTerm");
6392
- /**
6393
- * @inheritDoc
6394
- */
6395
- s(this, "client");
6396
- /**
6397
- * @inheritDoc
6398
- */
6399
- s(this, "contragent");
6400
- /**
6401
- * @inheritDoc
6402
- */
6403
- s(this, "createdAt", new A());
6404
- /**
6405
- * @inheritDoc
6406
- */
6407
- s(this, "creator");
6408
- /**
6409
- * @inheritDoc
6410
- */
6411
- s(this, "deliveryDate", new A());
6412
- /**
6413
- * @inheritDoc
6414
- */
6415
- s(this, "deliveryAddressSearch");
6416
- /**
6417
- * @inheritDoc
6418
- */
6419
- s(this, "clientCities");
6420
- /**
6421
- * @inheritDoc
6422
- */
6423
- s(this, "id");
6424
- /**
6425
- * @inheritDoc
6426
- */
6427
- s(this, "isApproved");
6428
- /**
6429
- * @inheritDoc
6430
- */
6431
- s(this, "isNotInStock");
6432
- /**
6433
- * @inheritDoc
6434
- */
6435
- s(this, "isOnOrder");
6436
- /**
6437
- * @inheritDoc
6438
- */
6439
- s(this, "attachedAt", new A());
6440
- /**
6441
- * @inheritDoc
6442
- */
6443
- s(this, "salesDirections");
6444
- /**
6445
- * @inheritDoc
6446
- */
6447
- s(this, "status");
6448
- /**
6449
- * @inheritDoc
6450
- */
6451
- s(this, "statusDetail");
6452
- /**
6453
- * @inheritDoc
6454
- */
6455
- s(this, "deliveryType");
6456
- /**
6457
- * @inheritDoc
6458
- */
6459
- s(this, "paymentType");
6460
- /**
6461
- * @inheritDoc
6036
+ * @inheritDoc
6462
6037
  */
6463
6038
  s(this, "warehouses");
6464
6039
  /**
@@ -6473,7 +6048,7 @@ class Ds extends Ke {
6473
6048
  * @inheritDoc
6474
6049
  */
6475
6050
  s(this, "onlyMyRegions");
6476
- this.attachedUsers = (t = e == null ? void 0 : e.attachedUsers) == null ? void 0 : t.map((u) => "isActive" in u ? new ae(u) : new $r(u)), this.clientSearchTerm = e == null ? void 0 : e.clientSearchTerm, this.client = e != null && e.client ? new E(e.client) : void 0, this.contragent = e == null ? void 0 : e.contragent, this.createdAt = new A(e == null ? void 0 : e.createdAt), this.creator = e != null && e.creator ? new _(e.creator) : void 0, this.deliveryDate = new A(e == null ? void 0 : e.deliveryDate), this.deliveryAddressSearch = e == null ? void 0 : e.deliveryAddressSearch, this.clientCities = (i = e == null ? void 0 : e.clientCities) == null ? void 0 : i.map((u) => new $e(u)), this.id = e == null ? void 0 : e.id, this.isApproved = e == null ? void 0 : e.isApproved, this.isNotInStock = e == null ? void 0 : e.isNotInStock, this.isOnOrder = e == null ? void 0 : e.isOnOrder, this.isLargeOrder = e == null ? void 0 : e.isLargeOrder, this.attachedAt = new A(e == null ? void 0 : e.attachedAt), this.salesDirections = (o = e == null ? void 0 : e.salesDirections) == null ? void 0 : o.map((u) => new q(u)), this.status = e == null ? void 0 : e.status, this.statusDetail = e == null ? void 0 : e.statusDetail, this.deliveryType = e != null && e.deliveryType ? new F(e.deliveryType) : void 0, this.paymentType = e != null && e.paymentType ? new dr(e.paymentType) : void 0, this.warehouses = (c = e == null ? void 0 : e.warehouses) == null ? void 0 : c.map((u) => new we(u)), this.isToProcess = e == null ? void 0 : e.isToProcess;
6051
+ this.attachedUsers = (t = e == null ? void 0 : e.attachedUsers) == null ? void 0 : t.map((u) => "isActive" in u ? new ae(u) : new _r(u)), this.clientSearchTerm = e == null ? void 0 : e.clientSearchTerm, this.client = e != null && e.client ? new E(e.client) : void 0, this.contragent = e == null ? void 0 : e.contragent, this.createdAt = new A(e == null ? void 0 : e.createdAt), this.creator = e != null && e.creator ? new _(e.creator) : void 0, this.deliveryDate = new A(e == null ? void 0 : e.deliveryDate), this.deliveryAddressSearch = e == null ? void 0 : e.deliveryAddressSearch, this.clientCities = (i = e == null ? void 0 : e.clientCities) == null ? void 0 : i.map((u) => new $e(u)), this.id = e == null ? void 0 : e.id, this.isApproved = e == null ? void 0 : e.isApproved, this.isNotInStock = e == null ? void 0 : e.isNotInStock, this.isOnOrder = e == null ? void 0 : e.isOnOrder, this.isLargeOrder = e == null ? void 0 : e.isLargeOrder, this.attachedAt = new A(e == null ? void 0 : e.attachedAt), this.salesDirections = (o = e == null ? void 0 : e.salesDirections) == null ? void 0 : o.map((u) => new q(u)), this.status = e == null ? void 0 : e.status, this.statusDetail = e == null ? void 0 : e.statusDetail, this.deliveryType = e != null && e.deliveryType ? new F(e.deliveryType) : void 0, this.paymentType = e != null && e.paymentType ? new Or(e.paymentType) : void 0, this.warehouses = (c = e == null ? void 0 : e.warehouses) == null ? void 0 : c.map((u) => new we(u)), this.isToProcess = e == null ? void 0 : e.isToProcess;
6477
6052
  }
6478
6053
  /**
6479
6054
  * @inheritDoc
@@ -6522,7 +6097,7 @@ class Ds extends Ke {
6522
6097
  return !((t = e == null ? void 0 : e.createdAt) != null && t.from) && !((i = e == null ? void 0 : e.createdAt) != null && i.to) && delete e.createdAt, !((o = e == null ? void 0 : e.deliveryDate) != null && o.from) && !((c = e == null ? void 0 : e.deliveryDate) != null && c.to) && delete e.deliveryDate, !((u = e == null ? void 0 : e.attachedAt) != null && u.from) && !((p = e == null ? void 0 : e.attachedAt) != null && p.to) && delete e.attachedAt, e;
6523
6098
  }
6524
6099
  }
6525
- class Lt {
6100
+ class $t {
6526
6101
  /**
6527
6102
  * Инициализирует экземпляр класса {@link OrderStatusHistoryInfo}.
6528
6103
  *
@@ -6548,7 +6123,7 @@ class Lt {
6548
6123
  this.user = new _(r == null ? void 0 : r.user), this.status = new de(r == null ? void 0 : r.status), this.statusDetail = r != null && r.statusDetail ? new w(r.statusDetail) : void 0, this.createdAt = a(r == null ? void 0 : r.createdAt) ? C(r.createdAt) : (r == null ? void 0 : r.createdAt) ?? /* @__PURE__ */ new Date();
6549
6124
  }
6550
6125
  }
6551
- class As extends Ce {
6126
+ class Ps extends Ce {
6552
6127
  /**
6553
6128
  * Возвращает данные о заказах, удовлетворяющих указанным параметрам поиска.
6554
6129
  *
@@ -6568,7 +6143,7 @@ class As extends Ce {
6568
6143
  {},
6569
6144
  (o) => {
6570
6145
  const c = { ...o.data };
6571
- return c.data = c.data.map((u) => new xr(u)), c;
6146
+ return c.data = c.data.map((u) => new Ir(u)), c;
6572
6147
  },
6573
6148
  void 0,
6574
6149
  i
@@ -6788,7 +6363,7 @@ class As extends Ce {
6788
6363
  return this.get(
6789
6364
  `/internal/orders/${r}/history`,
6790
6365
  {},
6791
- (e) => e.data.map((t) => new Lt(t))
6366
+ (e) => e.data.map((t) => new $t(t))
6792
6367
  );
6793
6368
  }
6794
6369
  /**
@@ -6924,7 +6499,7 @@ class _e {
6924
6499
  * Источник клиентской цены.
6925
6500
  */
6926
6501
  s(this, "source");
6927
- this.client = new E(r == null ? void 0 : r.client), this.product = new I(r == null ? void 0 : r.product), this.cost = (r == null ? void 0 : r.cost) ?? 0, this.costCoefficient = (r == null ? void 0 : r.costCoefficient) ?? 0, this.source = (r == null ? void 0 : r.source) ?? ze.Product;
6502
+ this.client = new E(r == null ? void 0 : r.client), this.product = new I(r == null ? void 0 : r.product), this.cost = (r == null ? void 0 : r.cost) ?? 0, this.costCoefficient = (r == null ? void 0 : r.costCoefficient) ?? 0, this.source = (r == null ? void 0 : r.source) ?? Be.Product;
6928
6503
  }
6929
6504
  }
6930
6505
  const Oe = (n) => {
@@ -6944,7 +6519,7 @@ const Oe = (n) => {
6944
6519
  const r = {};
6945
6520
  return n.from && (n.from.coefficient || n.from.value) && (r.from = {}, n.from.coefficient && (r.from.priceCoefficientId = n.from.coefficient.id), n.from.value && (r.from.increasePercent = n.from.value)), n.to && (n.to.coefficient || n.to.value) && (r.to = {}, n.to.coefficient && (r.to.priceCoefficientId = n.to.coefficient.id), n.to.value && (r.to.increasePercent = n.to.value)), r;
6946
6521
  };
6947
- class $s extends h {
6522
+ class Rs extends h {
6948
6523
  /**
6949
6524
  * Возвращает список клиентских цен на продукты в указанном диапазоне цены.
6950
6525
  *
@@ -7005,7 +6580,7 @@ class $s extends h {
7005
6580
  );
7006
6581
  }
7007
6582
  }
7008
- class It {
6583
+ class dt {
7009
6584
  /**
7010
6585
  * Инициализирует экземпляр класса {@link PriceHistoryItem}.
7011
6586
  *
@@ -7055,7 +6630,7 @@ class It {
7055
6630
  this.cost = r.cost ?? 0, this.isLowCost = r.isLowCost ?? !1, this.isRetail = r.isRetail ?? !1, this.costDate = a(r.costDate) ? C(r.costDate) : r.costDate ?? /* @__PURE__ */ new Date(), this.discountName = r.discountName, this.priceTemplateName = r.priceTemplateName, this.product = r.product ? new ge(r.product) : void 0, this.client = r.client ? new _(r.client) : void 0, this.executor = r.executor ? new _(r.executor) : void 0, this.currency = r.currency ? new x(r.currency) : void 0;
7056
6631
  }
7057
6632
  }
7058
- class _t extends ge {
6633
+ class Tt extends ge {
7059
6634
  /**
7060
6635
  * Инициализирует экземпляр класса {@link ProductPriceHistory}.
7061
6636
  *
@@ -7067,10 +6642,10 @@ class _t extends ge {
7067
6642
  * @inheritDoc
7068
6643
  */
7069
6644
  s(this, "history");
7070
- this.history = ye(e.history, (t) => new It(t));
6645
+ this.history = ye(e.history, (t) => new dt(t));
7071
6646
  }
7072
6647
  }
7073
- class ds extends h {
6648
+ class Ds extends h {
7074
6649
  /**
7075
6650
  * Возвращает данные об истории изменения цен.
7076
6651
  *
@@ -7090,7 +6665,7 @@ class ds extends h {
7090
6665
  (f) => $(f) || (H(f) || Me(f)) && re(f)
7091
6666
  ), i = ((m = r.product) == null ? void 0 : m[0]) ?? 0;
7092
6667
  return delete t.product, this.get(`/internal/price/products/${i}/history`, t).then((f) => [
7093
- new _t(he(f[0], { history: f }))
6668
+ new Tt(he(f[0], { history: f }))
7094
6669
  ]);
7095
6670
  }
7096
6671
  }
@@ -7112,7 +6687,7 @@ class or {
7112
6687
  r != null && r.products && (this.products = r.products.map((e) => new ge(e))), r != null && r.productCategories && (this.productCategories = r.productCategories.map((e) => new ge(e)));
7113
6688
  }
7114
6689
  }
7115
- class Ts extends h {
6690
+ class As extends h {
7116
6691
  /**
7117
6692
  * Возвращает данные о рекомендациях указанной категории продуктов.
7118
6693
  *
@@ -7158,6 +6733,431 @@ class Ts extends h {
7158
6733
  });
7159
6734
  }
7160
6735
  }
6736
+ var bt = /* @__PURE__ */ ((n) => (n.New = "new", n.Processing = "processing", n.AwaitingSupplyProducts = "awaiting_supply_products", n.InvoiceIssued = "invoice_issued", n.ProcessingOnStock = "processing_on_stock", n.Finished = "finished", n.OrderUpdated = "order_updated", n.Canceled = "canceled", n.Error = "error", n))(bt || {}), St = /* @__PURE__ */ ((n) => (n.WillWaiting = "will_waiting", n))(St || {});
6737
+ class kt extends w {
6738
+ }
6739
+ class $s extends w {
6740
+ }
6741
+ class Lt extends w {
6742
+ }
6743
+ class It extends w {
6744
+ }
6745
+ class _t extends w {
6746
+ }
6747
+ class ds {
6748
+ /**
6749
+ * Генерирует и возвращает данные-заглушку неопределённой записи справочника.
6750
+ *
6751
+ * @param Ctor Конструктор конкретного класса справочника.
6752
+ * @param name Название записи.
6753
+ */
6754
+ static generateUndefinedInstance(r, e = "- Не определён -") {
6755
+ return new r({ id: 0, name: e, slug: "-undefined-" });
6756
+ }
6757
+ /**
6758
+ * Выполняет проверку, является ли указанная запись записью-заглушкой с данными о неопределённой записи справочника.
6759
+ *
6760
+ * @param reference Запись для проверки.
6761
+ */
6762
+ static isUndefinedInstance(r) {
6763
+ return r.id === 0 && r.slug === "-undefined-";
6764
+ }
6765
+ }
6766
+ class xr extends w {
6767
+ }
6768
+ class T extends fe {
6769
+ /**
6770
+ * Возвращает {@link Promise} для получения данных указанного справочника.
6771
+ *
6772
+ * @param referenceName Название справочника.
6773
+ * @param useResponseDataCache Признак необходимости кэшировать данные ответов на запросы
6774
+ * и использовать в случае аналогичных запросов.
6775
+ */
6776
+ getReference(r, e = !1) {
6777
+ return this.getTypedDataArrayRequester(kt, `/internal/references/${r}`, e);
6778
+ }
6779
+ /**
6780
+ * Возвращает {@link Promise} для получения справочника данных о канале
6781
+ * первичного интереса.
6782
+ */
6783
+ getChannelPrimaryInterest() {
6784
+ return this.getTypedDataArrayRequester(Tr, "/internal/references/channel-primary-interest", !0);
6785
+ }
6786
+ /**
6787
+ * Возвращает {@link Promise} для получения справочника должностей контактных лиц.
6788
+ */
6789
+ getContactPositions() {
6790
+ return this.getTypedDataArrayRequester(Lt, "/internal/references/contact-position", !0);
6791
+ }
6792
+ /**
6793
+ * Возвращает {@link Promise} для получения справочника списка направлений кураторства.
6794
+ */
6795
+ getCuratedDirection() {
6796
+ return this.getTypedDataArrayRequester(Je, "/internal/references/curated-direction", !0);
6797
+ }
6798
+ /**
6799
+ * Возвращает {@link Promise} для получения справочника списка валют.
6800
+ */
6801
+ getCurrency() {
6802
+ return this.getTypedDataArrayRequester(x, "/public/references/currency", !0);
6803
+ }
6804
+ /**
6805
+ * Возвращает {@link Promise} для получения справочника данных
6806
+ * групп партнеров (направлений деятельности).
6807
+ */
6808
+ getPartnerGroup() {
6809
+ return this.getTypedDataArrayRequester(se, "/internal/references/partner-group", !0);
6810
+ }
6811
+ /**
6812
+ * Возвращает {@link Promise} для получения справочника данных организационно-правовых форм.
6813
+ */
6814
+ getOpf() {
6815
+ return this.getTypedDataArrayRequester(z, "/public/references/opf", !0);
6816
+ }
6817
+ /**
6818
+ * Возвращает {@link Promise} для получения справочника операторов.
6819
+ */
6820
+ getOperators() {
6821
+ return this.getTypedDataArrayRequester(_r, "/internal/references/operator", !0);
6822
+ }
6823
+ /**
6824
+ * Возвращает {@link Promise} для получения справочника данных статусов оплаты заказов.
6825
+ */
6826
+ getOrderPaymentStatuses() {
6827
+ return this.getTypedDataArrayRequester(It, "/public/references/order-payment-status", !0);
6828
+ }
6829
+ /**
6830
+ * Возвращает {@link Promise} для получения справочника данных статусов заказов.
6831
+ */
6832
+ getOrderStatuses() {
6833
+ return this.getTypedDataArrayRequester(de, "/internal/references/order-status", !0);
6834
+ }
6835
+ /**
6836
+ * Возвращает {@link Promise} для получения справочника данных типов оплаты заказов.
6837
+ */
6838
+ getPaymentTypes() {
6839
+ return this.getTypedDataArrayRequester(Or, "/public/references/payment-type", !0);
6840
+ }
6841
+ /**
6842
+ * Возвращает {@link Promise} для получения справочника типов ресурсов.
6843
+ */
6844
+ getResourceTypes() {
6845
+ return this.getTypedDataArrayRequester(xr, "/internal/references/resource-type", !0);
6846
+ }
6847
+ /**
6848
+ * Возвращает {@link Promise} для получения справочника данных направлений продаж.
6849
+ */
6850
+ getSalesDirections() {
6851
+ return this.getTypedDataArrayRequester(q, "/public/references/sales-direction", !0);
6852
+ }
6853
+ /**
6854
+ * Возвращает {@link Promise} для получения справочника данных об источнике первичного интереса.
6855
+ */
6856
+ getSourcePrimaryInterest() {
6857
+ return this.getTypedDataArrayRequester(br, "/internal/references/source-primary-interest", !0);
6858
+ }
6859
+ /**
6860
+ * Выполняет поиск данных о городах по терму в названии.
6861
+ *
6862
+ * @param term Терм поиска.
6863
+ */
6864
+ searchCity(r) {
6865
+ return this.getTypedDataArrayRequester($e, `/internal/references/city-with-region-and-country/search?term=${r}`);
6866
+ }
6867
+ /**
6868
+ * Выполняет поиск данных о регионах по терму в названии.
6869
+ *
6870
+ * @param term Терм поиска.
6871
+ */
6872
+ searchRegion(r) {
6873
+ return this.getTypedDataArrayRequester(me, `/internal/references/region-with-country/search?term=${r}`);
6874
+ }
6875
+ /**
6876
+ * Выполняет поиск данных о странах по терму в названии.
6877
+ *
6878
+ * @param term Терм поиска.
6879
+ */
6880
+ searchCountry(r) {
6881
+ return this.getTypedDataArrayRequester(te, `/internal/references/country/search?term=${r}`);
6882
+ }
6883
+ /**
6884
+ * Возвращает {@link Promise} для получения справочника типов доставки.
6885
+ */
6886
+ getDeliveryTypes() {
6887
+ return this.getTypedDataArrayRequester(F, "/internal/references/delivery-type", !0);
6888
+ }
6889
+ /**
6890
+ * Возвращает {@link Promise} для получения справочника складов.
6891
+ */
6892
+ getWarehouses() {
6893
+ return this.getTypedDataArrayRequester(we, "/public/references/warehouse", !0);
6894
+ }
6895
+ /**
6896
+ * Возвращает {@link Promise} для получения справочника типов свойств.
6897
+ */
6898
+ getPropertyTypes() {
6899
+ return this.getTypedDataArrayRequester(Rr, "/internal/references/property-type", !0);
6900
+ }
6901
+ /**
6902
+ * Возвращает {@link Promise} для получения справочника коэффициентов цен.
6903
+ */
6904
+ getPriceCoefficients() {
6905
+ return this.getTypedDataArrayRequester(Ae, "/internal/references/price-coefficient", !0);
6906
+ }
6907
+ /**
6908
+ * Возвращает {@link Promise} для получения справочника типов файлов продуктов/категорий.
6909
+ */
6910
+ getProductFileType() {
6911
+ return this.getTypedDataArrayRequester(_t, "/public/references/product-file-type", !0);
6912
+ }
6913
+ }
6914
+ const d = W("common.references_private", () => {
6915
+ const n = y({}), r = y(void 0), e = y(void 0), t = y(void 0), i = y(void 0), o = y(void 0), c = y(void 0), u = y(void 0), p = y(void 0), m = y(void 0), f = y(void 0), D = y(void 0), ie = y(void 0), ne = y(void 0), V = y(void 0), K = y(void 0), Te = y(void 0), be = y(void 0), l = y(void 0);
6916
+ return {
6917
+ /**
6918
+ * Список загружаемых/загруженных на данный момент значений.
6919
+ */
6920
+ dataLoaderList: n,
6921
+ /**
6922
+ * Справочник каналов первичного интереса.
6923
+ */
6924
+ channelPrimaryInterestReference: r,
6925
+ /**
6926
+ * Справочник должностей контактных лиц.
6927
+ */
6928
+ contactPositionsReference: e,
6929
+ /**
6930
+ * Справочник валют.
6931
+ */
6932
+ currencyReference: t,
6933
+ /**
6934
+ * Справочник типов доставки.
6935
+ */
6936
+ deliveryTypeReference: i,
6937
+ /**
6938
+ * Список менеджеров.
6939
+ */
6940
+ managersList: o,
6941
+ /**
6942
+ * Справочник организационно-правовых форм.
6943
+ */
6944
+ opfReference: c,
6945
+ /**
6946
+ * Справочник операторов.
6947
+ */
6948
+ operatorReference: u,
6949
+ /**
6950
+ * Справочник статусов оплаты заказа.
6951
+ */
6952
+ orderPaymentStatusReference: p,
6953
+ /**
6954
+ * Справочник статусов заказов.
6955
+ */
6956
+ orderStatusReference: m,
6957
+ /**
6958
+ * Справочник типов оплаты заказов.
6959
+ */
6960
+ paymentTypeReference: f,
6961
+ /**
6962
+ * Справочник групп партнеров.
6963
+ */
6964
+ partnerGroupReference: D,
6965
+ /**
6966
+ * Справочник типов файлов продукктов/категорий.
6967
+ */
6968
+ productFileTypeReference: ie,
6969
+ /**
6970
+ * Справочник типов ресурсов.
6971
+ */
6972
+ resourceTypesReference: ne,
6973
+ /**
6974
+ * Справочник направлений продаж.
6975
+ */
6976
+ salesDirectionsReference: V,
6977
+ /**
6978
+ * Справочник источников первичного интереса.
6979
+ */
6980
+ sourcePrimaryInterestReference: K,
6981
+ /**
6982
+ * Справочник складов.
6983
+ */
6984
+ warehousesReference: Te,
6985
+ /**
6986
+ * Справочник типов свойств.
6987
+ */
6988
+ propertyTypesReference: be,
6989
+ /**
6990
+ * Справочник коэффициентов цен.
6991
+ */
6992
+ priceCoefficientsReference: l
6993
+ };
6994
+ }), Ts = W("common.references", () => {
6995
+ const n = R(() => {
6996
+ const l = d();
6997
+ return !l.channelPrimaryInterestReference && !l.dataLoaderList.channelPrimaryInterestReference && (l.dataLoaderList.channelPrimaryInterestReference = !0, h.getInstance(T).getChannelPrimaryInterest().then((g) => {
6998
+ l.channelPrimaryInterestReference = g;
6999
+ }).catch(v)), l.channelPrimaryInterestReference;
7000
+ }), r = R(() => {
7001
+ const l = d();
7002
+ return !l.contactPositionsReference && !l.dataLoaderList.contactPositionsReference && (l.dataLoaderList.contactPositionsReference = !0, h.getInstance(T).getContactPositions().then((g) => {
7003
+ l.contactPositionsReference = g;
7004
+ }).catch(v)), l.contactPositionsReference;
7005
+ }), e = R(() => {
7006
+ const l = d();
7007
+ return !l.currencyReference && !l.dataLoaderList.currencyReference && (l.dataLoaderList.currencyReference = !0, h.getInstance(T).getCurrency().then((g) => {
7008
+ l.currencyReference = g;
7009
+ }).catch(v)), l.currencyReference;
7010
+ }), t = R(() => {
7011
+ const l = d();
7012
+ return !l.opfReference && !l.dataLoaderList.opfReference && (l.dataLoaderList.opfReference = !0, h.getInstance(T).getOpf().then((g) => {
7013
+ l.opfReference = g;
7014
+ }).catch(v)), l.opfReference;
7015
+ }), i = R(() => {
7016
+ const l = d();
7017
+ return !l.operatorReference && !l.dataLoaderList.operatorReference && (l.dataLoaderList.operatorReference = !0, h.getInstance(T).getOperators().then((g) => {
7018
+ l.operatorReference = g;
7019
+ }).catch(v)), l.operatorReference;
7020
+ }), o = R(() => {
7021
+ const l = d();
7022
+ return !l.orderPaymentStatusReference && !l.dataLoaderList.orderPaymentStatusReference && (l.dataLoaderList.orderPaymentStatusReference = !0, h.getInstance(T).getOrderPaymentStatuses().then((g) => {
7023
+ l.orderPaymentStatusReference = g;
7024
+ }).catch(v)), l.orderPaymentStatusReference;
7025
+ }), c = R(() => {
7026
+ const l = d();
7027
+ return !l.orderStatusReference && !l.dataLoaderList.orderStatusReference && (l.dataLoaderList.orderStatusReference = !0, h.getInstance(T).getOrderStatuses().then((g) => {
7028
+ l.orderStatusReference = g;
7029
+ }).catch(v)), l.orderStatusReference;
7030
+ }), u = R(() => {
7031
+ const l = d();
7032
+ return !l.paymentTypeReference && !l.dataLoaderList.paymentTypeReference && (l.dataLoaderList.paymentTypeReference = !0, h.getInstance(T).getPaymentTypes().then((g) => {
7033
+ l.paymentTypeReference = g;
7034
+ }).catch(v)), l.paymentTypeReference;
7035
+ }), p = R(() => {
7036
+ const l = d();
7037
+ return !l.partnerGroupReference && !l.dataLoaderList.partnerGroupReference && (l.dataLoaderList.partnerGroupReference = !0, h.getInstance(T).getPartnerGroup().then((g) => {
7038
+ l.partnerGroupReference = g;
7039
+ }).catch(v)), l.partnerGroupReference;
7040
+ }), m = R(() => {
7041
+ const l = d();
7042
+ return !l.productFileTypeReference && !l.dataLoaderList.productFileTypeReference && (l.dataLoaderList.productFileTypeReference = !0, h.getInstance(T).getProductFileType().then((g) => {
7043
+ l.productFileTypeReference = g;
7044
+ }).catch(v)), l.productFileTypeReference;
7045
+ }), f = R(() => {
7046
+ const l = d();
7047
+ return !l.resourceTypesReference && !l.dataLoaderList.resourceTypesReference && (l.dataLoaderList.resourceTypesReference = !0, h.getInstance(T).getResourceTypes().then((g) => {
7048
+ l.resourceTypesReference = g;
7049
+ }).catch(v)), l.resourceTypesReference;
7050
+ }), D = R(() => {
7051
+ const l = d();
7052
+ return !l.salesDirectionsReference && !l.dataLoaderList.salesDirectionsReference && (l.dataLoaderList.salesDirectionsReference = !0, h.getInstance(T).getSalesDirections().then((g) => {
7053
+ l.salesDirectionsReference = g;
7054
+ }).catch(v)), l.salesDirectionsReference;
7055
+ }), ie = R(() => {
7056
+ const l = d();
7057
+ return !l.sourcePrimaryInterestReference && !l.dataLoaderList.sourcePrimaryInterestReference && (l.dataLoaderList.sourcePrimaryInterestReference = !0, h.getInstance(T).getSourcePrimaryInterest().then((g) => {
7058
+ l.sourcePrimaryInterestReference = g;
7059
+ }).catch(v)), l.sourcePrimaryInterestReference;
7060
+ }), ne = R(() => {
7061
+ const l = d();
7062
+ return !l.deliveryTypeReference && !l.dataLoaderList.deliveryTypeReference && (l.dataLoaderList.deliveryTypeReference = !0, h.getInstance(T).getDeliveryTypes().then((g) => {
7063
+ l.deliveryTypeReference = g;
7064
+ }).catch(v)), l.deliveryTypeReference;
7065
+ }), V = R(() => {
7066
+ const l = d();
7067
+ return !l.managersList && !l.dataLoaderList.managersList && (l.dataLoaderList.managersList = !0, h.getInstance(Rt).getManagers().then((g) => {
7068
+ l.managersList = g;
7069
+ }).catch(v)), l.managersList;
7070
+ }), K = R(() => {
7071
+ const l = d();
7072
+ return !l.warehousesReference && !l.dataLoaderList.warehousesReference && (l.dataLoaderList.warehousesReference = !0, h.getInstance(T).getWarehouses().then((g) => {
7073
+ l.warehousesReference = g;
7074
+ }).catch(v)), l.warehousesReference;
7075
+ }), Te = R(() => {
7076
+ const l = d();
7077
+ return !l.propertyTypesReference && !l.dataLoaderList.propertyTypesReference && (l.dataLoaderList.propertyTypesReference = !0, h.getInstance(T).getPropertyTypes().then((g) => {
7078
+ l.propertyTypesReference = g;
7079
+ }).catch(v)), l.propertyTypesReference;
7080
+ }), be = R(() => {
7081
+ const l = d();
7082
+ return !l.priceCoefficientsReference && !l.dataLoaderList.priceCoefficientsReference && (l.dataLoaderList.priceCoefficientsReference = !0, h.getInstance(T).getPriceCoefficients().then((g) => {
7083
+ l.priceCoefficientsReference = g;
7084
+ }).catch(v)), l.priceCoefficientsReference;
7085
+ });
7086
+ return {
7087
+ /**
7088
+ * Справочник каналов первичного интереса.
7089
+ */
7090
+ channelPrimaryInterestsReference: n,
7091
+ /**
7092
+ * Справочник должностей контактных лиц.
7093
+ */
7094
+ contactPositionsReference: r,
7095
+ /**
7096
+ * Справочник валют.
7097
+ */
7098
+ currencyReference: e,
7099
+ /**
7100
+ * Справочник организационно-правовых форм.
7101
+ */
7102
+ opfReference: t,
7103
+ /**
7104
+ * Справочник операторов.
7105
+ */
7106
+ operatorReference: i,
7107
+ /**
7108
+ * Справочник статусов оплаты заказа.
7109
+ */
7110
+ orderPaymentStatusReference: o,
7111
+ /**
7112
+ * Справочник статусов заказов.
7113
+ */
7114
+ orderStatusReference: c,
7115
+ /**
7116
+ * Справочник типов оплаты заказов.
7117
+ */
7118
+ paymentTypeReference: u,
7119
+ /**
7120
+ * Справочник групп партнеров.
7121
+ */
7122
+ partnerGroupsReference: p,
7123
+ /**
7124
+ * Справочник типов файлов продуктов/категорий.
7125
+ */
7126
+ productFilesTypesReference: m,
7127
+ /**
7128
+ * Справочник типов ресурсов.
7129
+ */
7130
+ resourceTypesReference: f,
7131
+ /**
7132
+ * Справочник направлений продаж.
7133
+ */
7134
+ salesDirectionsReference: D,
7135
+ /**
7136
+ * Справочник каналов первичного интереса.
7137
+ */
7138
+ sourcePrimaryInterestsReference: ie,
7139
+ /**
7140
+ * Справочник типов доставки.
7141
+ */
7142
+ deliveryTypeReference: ne,
7143
+ /**
7144
+ * Список менеджеров.
7145
+ */
7146
+ managersList: V,
7147
+ /**
7148
+ * Справочник складов.
7149
+ */
7150
+ warehousesReference: K,
7151
+ /**
7152
+ * Справочник типов свойств.
7153
+ */
7154
+ propertyTypesReference: Te,
7155
+ /**
7156
+ * Справочник коэффициентов цен.
7157
+ */
7158
+ priceCoefficientsReference: be
7159
+ };
7160
+ });
7161
7161
  class Ot {
7162
7162
  /**
7163
7163
  * Инициализирует экземпляр класса {@link MetaTagItem}.
@@ -7216,7 +7216,7 @@ class cr {
7216
7216
  */
7217
7217
  s(this, "tags");
7218
7218
  var e;
7219
- this.resourceType = new Tr(r == null ? void 0 : r.resourceType), this.resourceId = (r == null ? void 0 : r.resourceId) ?? "", this.h1 = r == null ? void 0 : r.h1, this.title = r == null ? void 0 : r.title, this.description = r == null ? void 0 : r.description, this.keywords = r == null ? void 0 : r.keywords, this.meta = ((e = r == null ? void 0 : r.meta) == null ? void 0 : e.map((t) => new Ot(t))) ?? [], this.tags = r == null ? void 0 : r.tags;
7219
+ this.resourceType = new xr(r == null ? void 0 : r.resourceType), this.resourceId = (r == null ? void 0 : r.resourceId) ?? "", this.h1 = r == null ? void 0 : r.h1, this.title = r == null ? void 0 : r.title, this.description = r == null ? void 0 : r.description, this.keywords = r == null ? void 0 : r.keywords, this.meta = ((e = r == null ? void 0 : r.meta) == null ? void 0 : e.map((t) => new Ot(t))) ?? [], this.tags = r == null ? void 0 : r.tags;
7220
7220
  }
7221
7221
  }
7222
7222
  class bs extends h {
@@ -7298,7 +7298,7 @@ class Ss extends h {
7298
7298
  }
7299
7299
  }
7300
7300
  var xt = /* @__PURE__ */ ((n) => (n.Admin = "admin", n.Manager = "manager", n.Operator = "operator", n.Client = "client", n.Guest = "guest", n))(xt || {});
7301
- class qt extends Rr {
7301
+ class qt extends Pr {
7302
7302
  /**
7303
7303
  * Инициализирует экземпляр класса {@link User}.
7304
7304
  *
@@ -7322,7 +7322,7 @@ class qt extends Rr {
7322
7322
  * Роль ценообразования текущего пользователя.
7323
7323
  */
7324
7324
  s(this, "pricingRole");
7325
- this.type = e == null ? void 0 : e.type, this.canDoReclamations = (e == null ? void 0 : e.canDoReclamations) ?? !1, this.photo = e == null ? void 0 : e.photo, this.pricingRole = e != null && e.pricingRole ? new Cr(e.pricingRole) : void 0;
7325
+ this.type = e == null ? void 0 : e.type, this.canDoReclamations = (e == null ? void 0 : e.canDoReclamations) ?? !1, this.photo = e == null ? void 0 : e.photo, this.pricingRole = e != null && e.pricingRole ? new ar(e.pricingRole) : void 0;
7326
7326
  }
7327
7327
  }
7328
7328
  class ks extends h {
@@ -7399,7 +7399,7 @@ class Is {
7399
7399
  }
7400
7400
  }
7401
7401
  export {
7402
- yt as AnyReference,
7402
+ kt as AnyReference,
7403
7403
  ot as AppBaseConfig,
7404
7404
  Ue as BankAccount,
7405
7405
  Ce as BasePaginationProvider,
@@ -7407,14 +7407,14 @@ export {
7407
7407
  oe as Cart,
7408
7408
  Vt as CartProvider,
7409
7409
  Qt as CatalogProvider,
7410
- mr as CatalogableItem,
7410
+ fr as CatalogableItem,
7411
7411
  N as Category,
7412
7412
  er as CategoryPricingRule,
7413
- Ar as ChannelPrimaryInterest,
7414
- cs as City,
7413
+ Tr as ChannelPrimaryInterest,
7414
+ $s as City,
7415
7415
  $e as CityWithRegionAndCountry,
7416
7416
  ir as Client,
7417
- Dt as ClientAdditionalData,
7417
+ vt as ClientAdditionalData,
7418
7418
  Re as ClientCategory,
7419
7419
  O as ClientDataProvider,
7420
7420
  Yt as ClientPriceProvider,
@@ -7424,91 +7424,88 @@ export {
7424
7424
  ts as ClientProductDataProvider,
7425
7425
  E as ClientShortInfo,
7426
7426
  ft as ClientsAdditionalDataRequestTypeEnum,
7427
- us as ClientsListFilters,
7427
+ cs as ClientsListFilters,
7428
7428
  ge as CodedIdentity,
7429
- fs as ConfiguratorProvider,
7430
- $t as ConfiguratorsEnum,
7429
+ ps as ConfiguratorProvider,
7430
+ Ct as ConfiguratorsEnum,
7431
7431
  Fe as Contact,
7432
- ar as ContactLinks,
7433
- z as ContactPerson,
7434
- Rt as ContactPersonRelated,
7435
- wt as ContactPosition,
7432
+ vr as ContactLinks,
7433
+ B as ContactPerson,
7434
+ at as ContactPersonRelated,
7435
+ Lt as ContactPosition,
7436
7436
  Ie as ContactRelation,
7437
- Sr as ContragentBase,
7437
+ Ar as ContragentBase,
7438
7438
  De as ContragentFactory,
7439
- kr as ContragentIc,
7440
- Ct as ContragentPerson,
7441
- Pt as ContragentUlNr,
7442
- Lr as ContragentUlR,
7443
- ze as CostSourceEnum,
7439
+ $r as ContragentIc,
7440
+ yt as ContragentPerson,
7441
+ wt as ContragentUlNr,
7442
+ dr as ContragentUlR,
7443
+ Be as CostSourceEnum,
7444
7444
  te as Country,
7445
7445
  Je as CuratedDirection,
7446
7446
  Ee as Curator,
7447
7447
  x as Currency,
7448
7448
  Ss as DataSuggestionProvider,
7449
- ps as DataTablePagination,
7450
- At as DataTablePaginationRequestParams,
7451
- hs as DataTableSortRequestParams,
7452
- ys as DateTimeProvider,
7453
- gr as DeletableNamedIdentity,
7449
+ ms as DateTimeProvider,
7450
+ Dr as DeletableNamedIdentity,
7454
7451
  pe as DeliveryAddress,
7455
7452
  F as DeliveryType,
7456
7453
  Jt as DetailedJwtPayload,
7457
7454
  tt as DeviceTypeResolutionConfig,
7458
- ut as DiscountShortInfo,
7455
+ ct as DiscountShortInfo,
7459
7456
  Is as FieldValidationResultData,
7460
7457
  G as FilterGroup,
7461
7458
  rr as FilterItem,
7462
7459
  Ve as FilterOpEnum,
7463
- yr as GeoCoordinates,
7464
- lt as HiddenCatalogableItem,
7460
+ mr as GeoCoordinates,
7461
+ ut as HiddenCatalogableItem,
7465
7462
  fe as HttpCachedRequester,
7466
7463
  st as HttpParamsConfig,
7467
7464
  h as HttpRequester,
7468
7465
  J as Identity,
7469
- ct as Image,
7466
+ pt as Image,
7470
7467
  M as JwtPayload,
7471
7468
  ae as Manager,
7472
7469
  We as ManagerCommon,
7473
- vs as ManagerDataFactory,
7474
- dt as ManagerDataProvider,
7470
+ ys as ManagerDataFactory,
7471
+ Rt as ManagerDataProvider,
7475
7472
  Ot as MetaTagItem,
7476
7473
  S as NamedIdentity,
7477
7474
  X as Offer,
7478
- Or as OfferShortInfo,
7479
- Cs as OffersDataProvider,
7480
- as as OffersListFilters,
7481
- $r as Operator,
7482
- B as Opf,
7475
+ Lr as OfferShortInfo,
7476
+ vs as OffersDataProvider,
7477
+ ws as OffersListFilters,
7478
+ _r as Operator,
7479
+ z as Opf,
7483
7480
  U as OpfEnum,
7484
7481
  b as Order,
7485
- bt as OrderAction,
7486
- Ps as OrderEditorData,
7487
- xr as OrderInfo,
7488
- Tt as OrderItem,
7489
- wr as OrderItemBase,
7490
- vt as OrderPaymentStatus,
7491
- Ir as OrderShortInfo,
7482
+ At as OrderAction,
7483
+ as as OrderEditorData,
7484
+ Ir as OrderInfo,
7485
+ Dt as OrderItem,
7486
+ yr as OrderItemBase,
7487
+ It as OrderPaymentStatus,
7488
+ Sr as OrderShortInfo,
7492
7489
  de as OrderStatus,
7493
- kt as OrderStatusDetailEnum,
7494
- St as OrderStatusEnum,
7495
- Lt as OrderStatusHistoryInfo,
7496
- As as OrdersDataProvider,
7497
- Ds as OrdersListFilters,
7490
+ St as OrderStatusDetailEnum,
7491
+ bt as OrderStatusEnum,
7492
+ $t as OrderStatusHistoryInfo,
7493
+ Ps as OrdersDataProvider,
7494
+ Cs as OrdersListFilters,
7498
7495
  Ke as PaginationFiltersBase,
7499
7496
  se as PartnerGroup,
7500
- dr as PaymentType,
7497
+ Or as PaymentType,
7501
7498
  Pe as PreferencesStorageProvider,
7502
7499
  _e as PriceAnalyze,
7503
- $s as PriceAnalyzeProvider,
7500
+ Rs as PriceAnalyzeProvider,
7504
7501
  Ae as PriceCoefficient,
7505
- fr as PriceCoefficientEnum,
7506
- ds as PriceHistoryDataProvider,
7507
- It as PriceHistoryItem,
7502
+ gr as PriceCoefficientEnum,
7503
+ Ds as PriceHistoryDataProvider,
7504
+ dt as PriceHistoryItem,
7508
7505
  Z as PriceTemplate,
7509
7506
  ke as PriceTemplateCategory,
7510
7507
  ce as PriceTemplateClient,
7511
- Pr as PriceTemplateICatalogableItem,
7508
+ Cr as PriceTemplateICatalogableItem,
7512
7509
  Le as PriceTemplateProduct,
7513
7510
  ss as PriceTemplateProvider,
7514
7511
  ue as PricingRole,
@@ -7517,49 +7514,52 @@ export {
7517
7514
  I as Product,
7518
7515
  Zt as ProductCategoryDataProvider,
7519
7516
  es as ProductDataProvider,
7520
- at as ProductFileType,
7521
- Be as ProductPriceCoefficient,
7522
- _t as ProductPriceHistory,
7517
+ _t as ProductFileType,
7518
+ Ge as ProductPriceCoefficient,
7519
+ Tt as ProductPriceHistory,
7523
7520
  Ze as ProductUnit,
7524
7521
  ns as PropertiesProvider,
7525
7522
  le as Property,
7526
- Dr as PropertyType,
7523
+ Rr as PropertyType,
7527
7524
  gt as PropertyTypeEnum,
7528
7525
  Y as PropertyValue,
7529
- Ts as RecommendationsDataProvider,
7526
+ As as RecommendationsDataProvider,
7530
7527
  or as RecommendationsList,
7531
7528
  w as Reference,
7532
- ls as ReferenceDataFactory,
7529
+ ds as ReferenceDataFactory,
7533
7530
  T as ReferenceDataProvider,
7534
7531
  me as Region,
7535
- Tr as ResourceType,
7532
+ xr as ResourceType,
7536
7533
  q as SalesDirection,
7537
7534
  it as SentryConfig,
7538
7535
  cr as Seo,
7539
7536
  bs as SeoDataProvider,
7540
7537
  br as SourcePrimaryInterest,
7541
- pt as StockCount,
7538
+ lt as StockCount,
7539
+ hs as TableDataPagination,
7540
+ Pt as TableDataPaginationRequestParams,
7541
+ gs as TableDataSortRequestParams,
7542
7542
  os as TemplateProductCategoryDataProvider,
7543
7543
  Kt as TemplatesListFilters,
7544
- Ge as TypedInstanceFactory,
7545
- _r as UnitsHelper,
7546
- gs as UnknownClientDataProvider,
7544
+ ze as TypedInstanceFactory,
7545
+ kr as UnitsHelper,
7546
+ ls as UnknownClientDataProvider,
7547
7547
  hr as UpdatableNamedIdentity,
7548
7548
  qt as User,
7549
7549
  ks as UserAuthDataProvider,
7550
- Rr as UserCommonInfo,
7550
+ Pr as UserCommonInfo,
7551
7551
  Nt as UserDataProvider,
7552
- Cr as UserPricingRole,
7552
+ ar as UserPricingRole,
7553
7553
  _ as UserShortInfo,
7554
7554
  xt as UserTypeEnum,
7555
- ms as VersionConfig,
7555
+ us as VersionConfig,
7556
7556
  we as Warehouse,
7557
7557
  nt as WebSocketConfig,
7558
7558
  tr as findCatalogItemByIdRecursive,
7559
7559
  sr as flattenCatalogItems,
7560
- ws as pluralize,
7560
+ fs as pluralize,
7561
7561
  Se as useAuthStateStore,
7562
7562
  k as useBaseConfigStateStore,
7563
- Rs as useReferencesStore,
7563
+ Ts as useReferencesStore,
7564
7564
  Ls as useUserStateStore
7565
7565
  };