@topvisor/ui 1.5.6-topSelectorReactive.2 → 1.5.6

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 (41) hide show
  1. package/.chunks/{api-DZQlrC2R.amd.js → api-DupNAJPm.amd.js} +2 -2
  2. package/.chunks/{api-DZQlrC2R.amd.js.map → api-DupNAJPm.amd.js.map} +1 -1
  3. package/.chunks/{api-DZQlrC2R.esm.js → api-DupNAJPm.esm.js} +2 -2
  4. package/.chunks/{api-DZQlrC2R.esm.js.map → api-DupNAJPm.esm.js.map} +1 -1
  5. package/.chunks/formsExt-DzXSTWaT.amd.js +2 -0
  6. package/.chunks/formsExt-DzXSTWaT.amd.js.map +1 -0
  7. package/.chunks/{formsExt-C9r4Gz9y.esm.js → formsExt-DzXSTWaT.esm.js} +126 -122
  8. package/.chunks/formsExt-DzXSTWaT.esm.js.map +1 -0
  9. package/.chunks/{mocker-Bl1SzAJY.amd.js → mocker-C9Dl3SwM.amd.js} +2 -2
  10. package/.chunks/mocker-C9Dl3SwM.amd.js.map +1 -0
  11. package/.chunks/{mocker-Bl1SzAJY.esm.js → mocker-C9Dl3SwM.esm.js} +2 -2
  12. package/.chunks/mocker-C9Dl3SwM.esm.js.map +1 -0
  13. package/api/index.amd.js +1 -1
  14. package/api/index.amd.js.map +1 -1
  15. package/api/index.js +1 -1
  16. package/assets/project.css +1 -1
  17. package/autoload-css-manifest.amd.json +1 -1
  18. package/autoload-css-manifest.json +1 -1
  19. package/formsExt/formsExt.amd.js +1 -1
  20. package/formsExt/formsExt.amd.js.map +1 -1
  21. package/formsExt/formsExt.js +1 -1
  22. package/package.json +6 -6
  23. package/project/project.amd.js +1 -1
  24. package/project/project.amd.js.map +1 -1
  25. package/project/project.js +432 -416
  26. package/project/project.js.map +1 -1
  27. package/src/api/api/types/mocker.d.ts +3 -2
  28. package/src/components/formsExt/selector2/types.d.ts +1 -1
  29. package/src/components/project/projectSelector/cache.d.ts +1 -1
  30. package/src/components/project/projectSelector/stories/mocks/index.d.ts +2 -2
  31. package/src/components/project/regionSelector/utils/consts.d.ts +1 -0
  32. package/src/core/utils/searchers.d.ts +1 -0
  33. package/utils/searchers.amd.js +1 -1
  34. package/utils/searchers.amd.js.map +1 -1
  35. package/utils/searchers.js +2 -0
  36. package/utils/searchers.js.map +1 -1
  37. package/.chunks/formsExt-C9r4Gz9y.amd.js +0 -2
  38. package/.chunks/formsExt-C9r4Gz9y.amd.js.map +0 -1
  39. package/.chunks/formsExt-C9r4Gz9y.esm.js.map +0 -1
  40. package/.chunks/mocker-Bl1SzAJY.amd.js.map +0 -1
  41. package/.chunks/mocker-Bl1SzAJY.esm.js.map +0 -1
@@ -68,9 +68,10 @@ declare global {
68
68
  /**
69
69
  * Шаблон генерации результата
70
70
  *
71
- * Если результат массив, то будут учтены параметры: `fields`, `limit` и настройка `useFilter()`
71
+ * Использует копии объектов
72
72
  *
73
- * Если результат объект, то будет учтен параметр: `fields`
73
+ * - Если результат массив, то будут учтены параметры: `fields`, `limit` и настройка `useFilter()`
74
+ * - Если результат объект, то будет учтен параметр: `fields`
74
75
  */
75
76
  result: Result;
76
77
  /**
@@ -41,7 +41,7 @@ export interface Props<T extends Item = Item> {
41
41
  * Тип поиска по элементам
42
42
  *
43
43
  * - none: без поиска
44
- * - inline: сам Selector является полем ввода, только для `multiselect = false`
44
+ * - inline: сам Selector является полем ввода, только для `multiselect = false`, нельзя использовать вместе с `props.buttonProps`
45
45
  * - popup: поиск будет в popup
46
46
  *
47
47
  * Для мобильной версии `inline` всегда заменяется на `popup`
@@ -3,7 +3,7 @@ import { Ref, ShallowRef } from 'vue';
3
3
  /**
4
4
  * Promise текущего выполняющегося запроса на получение проектов.
5
5
  *
6
- * Используется для дедупликации запросов: если запрос уже запущен, повторные вызовы будут ждать один и тот же Promise.
6
+ * Используется для дедупликации запросов между экземплярами: если запрос уже запущен, повторные вызовы будут ждать один и тот же Promise.
7
7
  */
8
8
  export declare const projectsRequest: Ref<{
9
9
  then: <TResult1 = Api.ResponseError<any> | Api.ResponseSuccess<any, "get">, TResult2 = never>(onfulfilled?: ((value: Api.ResponseError<any> | Api.ResponseSuccess<any, "get">) => TResult1 | PromiseLike<TResult1>) | null | undefined, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null | undefined) => Promise<TResult1 | TResult2>;
@@ -1,5 +1,5 @@
1
1
  import { Client } from '../../../../../api/api/client/client';
2
2
  import { paths } from 'topvisor-openapi/src/ts/Topvisor';
3
3
  export * from './projects';
4
- export declare const apiClientMocked: Client<paths, true>;
5
- export declare const apiClientMockedLarge: Client<paths, true>;
4
+ export declare const apiClientMocked: Client<paths, true>, resetApiClientMocked: () => void;
5
+ export declare const apiClientMockedLarge: Client<paths, true>, resetApiClientMockedLarge: () => void;
@@ -23,6 +23,7 @@ export declare const searchersNames: {
23
23
  9: string;
24
24
  20: string;
25
25
  21: string;
26
+ 22: string;
26
27
  };
27
28
  export declare const regionUndefined: Region;
28
29
  export declare const searcherUndefined: SearcherIndexed;
@@ -5,6 +5,7 @@ export declare const searchersNames: {
5
5
  0: string;
6
6
  20: string;
7
7
  21: string;
8
+ 22: string;
8
9
  1: string;
9
10
  4: string;
10
11
  5: string;
@@ -1,2 +1,2 @@
1
- define([`require`,`exports`,`../.chunks/app-DinkodXi.amd`],function(e,t){"use strict";if(n===void 0)var n=window.Vue;Object.defineProperty(t,"__esModule",{value:!0}),t.searchersNames=t.prepareVolumeType=t.getSearcherGIcon=t.getLangLabel=t.getDeviceGIcon=t.genVolumeLabel=void 0,t.searchersNames={0:`Yandex`,20:`Yandex.com`,21:`Yandex.com.tr`,1:`Google`,4:`YouTube`,5:`Bing`,7:`Seznam`,8:`AppStore`,9:`GooglePlay`,101:`VK`,102:`Facebook`,103:`Twitter`},t.getSearcherGIcon=e=>{let t=``;switch(typeof e==`string`&&(e=Number(e)),e){case 0:t=``;break;case 20:case 21:t=``;break;case 1:t=``;break;case 2:t=``;break;case 3:t=``;break;case 4:t=``;break;case 5:t=``;break;case 6:t=``;break;case 7:t=``;break;case 8:t=``;break;case 9:t=``;break;case null:t=``;break}return t},t.getDeviceGIcon=e=>{let t=``;switch(typeof e==`string`&&(e=Number(e)),e%10){case 0:t=``;break;case 1:t=``;break;case 2:t=``;break}return t},t.getLangLabel=(e,t)=>{switch(typeof e==`string`&&(e=Number(e)),e*1){case 1:case 4:case 5:case 6:case 8:case 9:return t}return``},t.genVolumeLabel=(e,t,n)=>{switch(t*1){case 0:switch(n*1){case 2:e=`"${e}"`;break;case 3:e=`"!${e}"`;break;case 5:e=`"[${e}]"`;break;case 6:e=`"[!${e}]"`;break}break;case 1:e=`[${e}]`;break}return e},t.prepareVolumeType=(e,t)=>{switch(t===null&&(t=6),e){case 1:t=3;break;case 2:t=2;break;case 5:t>1&&(t=1);break;default:[1,2,3,5,6].includes(t)||(t=3)}return t}});
1
+ define([`require`,`exports`,`../.chunks/app-DinkodXi.amd`],function(e,t){"use strict";if(n===void 0)var n=window.Vue;Object.defineProperty(t,"__esModule",{value:!0}),t.searchersNames=t.prepareVolumeType=t.getSearcherGIcon=t.getLangLabel=t.getDeviceGIcon=t.genVolumeLabel=void 0,t.searchersNames={0:`Yandex`,20:`Yandex.com`,21:`Yandex.com.tr`,22:`YandexLive`,1:`Google`,4:`YouTube`,5:`Bing`,7:`Seznam`,8:`AppStore`,9:`GooglePlay`,101:`VK`,102:`Facebook`,103:`Twitter`},t.getSearcherGIcon=e=>{let t=``;switch(typeof e==`string`&&(e=Number(e)),e){case 0:case 22:t=``;break;case 20:case 21:t=``;break;case 1:t=``;break;case 2:t=``;break;case 3:t=``;break;case 4:t=``;break;case 5:t=``;break;case 6:t=``;break;case 7:t=``;break;case 8:t=``;break;case 9:t=``;break;case null:t=``;break}return t},t.getDeviceGIcon=e=>{let t=``;switch(typeof e==`string`&&(e=Number(e)),e%10){case 0:t=``;break;case 1:t=``;break;case 2:t=``;break}return t},t.getLangLabel=(e,t)=>{switch(typeof e==`string`&&(e=Number(e)),e*1){case 1:case 4:case 5:case 6:case 8:case 9:return t}return``},t.genVolumeLabel=(e,t,n)=>{switch(t*1){case 0:switch(n*1){case 2:e=`"${e}"`;break;case 3:e=`"!${e}"`;break;case 5:e=`"[${e}]"`;break;case 6:e=`"[!${e}]"`;break}break;case 1:e=`[${e}]`;break}return e},t.prepareVolumeType=(e,t)=>{switch(t===null&&(t=6),e){case 1:t=3;break;case 2:t=2;break;case 5:t>1&&(t=1);break;default:[1,2,3,5,6].includes(t)||(t=3)}return t}});
2
2
  //# sourceMappingURL=searchers.amd.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["utils/searchers.js","../../src/core/utils/searchers.ts"],"names":["vue","exports"],"mappings":"AAAA,OAAO,CAAC,UAAW,UAAW,6BAAgC,EAAG,SAAU,EAAS,EAAS,CACzF,aAAA,GAAAA,IAAA,OAAA,IAAAA,EAAA,OAAA,ICIS,OAAiB,eAAAC,EAAA,aAAA,CAAA,MAAA,EAAA,CAAA,EAC1B,EAAA,eAAA,EAAA,kBAAA,EAAA,iBAAA,EAAA,aAAA,EAAA,eAAA,EAAA,eAAA,IAAA,GD0HA,EAAQ,eAAiB,CCvHzB,EAAA,SACA,GAAA,aACA,GAAA,gBACA,EAAA,SACA,EAAA,UACA,EAAA,OACE,EAAA,SACA,EAAA,WACA,EAAA,aAO2B,IAAA,KAC5B,IAAO,WAIX,IAFI,SDqGwB,EACzB,EAAQ,iBCnGL,GAAA,CACG,IAAA,EAAA,GAEP,OAAA,OAAA,GAAA,WAAA,EAAA,OAAA,CAAA,GAAA,EAAA,CACI,IAAA,GACA,EAAA,IACG,MAEP,IAAA,IACI,IAAA,IACG,EAAA,IAEP,MACI,IAAA,GACG,EAAA,IAEP,MACI,IAAA,GACG,EAAA,IAEP,MACI,IAAA,GACG,EAAA,IAEP,MACI,IAAA,GACG,EAAA,IAEP,MACI,IAAA,GACG,EAAA,IAEP,MACI,IAAA,GACG,EAAA,IAEP,MACI,IAAA,GACG,EAAA,IAEP,MACI,IAAA,GACG,EAAA,IAEP,MACI,IAAA,GACG,EAAA,IAEP,MACF,KAAA,KAEO,EAAA,IAM2D,KAC9D,CAIJ,OAFI,CAGH,EDqCE,EAAQ,eCrCL,GAAA,CACG,IAAA,EAAA,GAEP,OAAA,OAAA,GAAA,WAAA,EAAA,OAAA,CAAA,GAAA,EAAA,GAAA,CACI,IAAA,GACG,EAAA,IAEP,MACI,IAAA,GACG,EAAA,IAEP,MACF,IAAA,GAEO,EAAA,IAMmD,KAG1D,CACM,OAAA,CACL,EDaE,EAAQ,cCbL,EAAA,IAAA,CACA,OAAA,OAAA,GAAA,WAAA,EAAA,OAAA,CAAA,GAAA,EAAA,EAAA,CACA,IAAA,GACA,IAAA,GAEJ,IAAO,GACT,IAAA,GAEO,IAAA,GAMsC,IAAoB,GAA0C,OAAA,CAC3G,CAEM,MAAA,EACJ,EDJC,EAAQ,gBCID,EAAa,EAArB,IAAA,CACC,OAAK,EAAA,EAAL,CACS,IAAU,GAElB,OAAA,EAAA,EAAA,CACI,IAAA,GACe,EAAA,IAAA,EAAA,GAEnB,MACI,IAAA,GACe,EAAA,KAAA,EAAA,GAEnB,MACI,IAAA,GACgB,EAAA,KAAA,EAAA,IAEpB,MACF,IAAA,GACA,EAAA,MAAA,EAAA,IAEI,KACc,CAElB,MACF,IAAA,GAEO,EAAA,IAAA,EAAA,GAM+C,KAItD,CACM,OAAA,CACJ,EDzCC,EAAQ,mBCyCI,EAAA,IAAA,CAEb,OAAA,IAAA,OAAA,EAAA,GAAA,EAAA,CACI,IAAA,GACS,EAAA,EAEb,MACI,IAAA,GACgB,EAAa,EAEjC,MAEA,IAAA,GAAM,EAAA,IAAA,EAAA,GAAG,MAAG,QAAA,CAAG,EAAG,EAAsB,EAC1C,EAEO,CACR,CAAA,CAAA,SAAA,CAAA,IAAA,EAAA,EDjEQ,CACA,OAAO,CACX,CAOJ,CAAC","sourcesContent":["define([\"require\", \"exports\", \"../.chunks/app-DinkodXi.esm.js\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.searchersNames = exports.prepareVolumeType = exports.getSearcherGIcon = exports.getLangLabel = exports.getDeviceGIcon = exports.genVolumeLabel = void 0;\n //#region src/core/utils/searchers.ts\n var e = {\n 0: \"Yandex\",\n 20: \"Yandex.com\",\n 21: \"Yandex.com.tr\",\n 1: \"Google\",\n 4: \"YouTube\",\n 5: \"Bing\",\n 7: \"Seznam\",\n 8: \"AppStore\",\n 9: \"GooglePlay\",\n 101: \"VK\",\n 102: \"Facebook\",\n 103: \"Twitter\"\n }, t = (e) => {\n let t = \"\";\n switch (typeof e == \"string\" && (e = Number(e)), e) {\n case 0:\n t = \"\";\n break;\n case 20:\n case 21:\n t = \"\";\n break;\n case 1:\n t = \"\";\n break;\n case 2:\n t = \"\";\n break;\n case 3:\n t = \"\";\n break;\n case 4:\n t = \"\";\n break;\n case 5:\n t = \"\";\n break;\n case 6:\n t = \"\";\n break;\n case 7:\n t = \"\";\n break;\n case 8:\n t = \"\";\n break;\n case 9:\n t = \"\";\n break;\n case null:\n t = \"\";\n break;\n }\n return t;\n }, n = (e) => {\n let t = \"\";\n switch (typeof e == \"string\" && (e = Number(e)), e % 10) {\n case 0:\n t = \"\";\n break;\n case 1:\n t = \"\";\n break;\n case 2:\n t = \"\";\n break;\n }\n return t;\n }, r = (e, t) => {\n switch (typeof e == \"string\" && (e = Number(e)), e * 1) {\n case 1:\n case 4:\n case 5:\n case 6:\n case 8:\n case 9: return t;\n }\n return \"\";\n }, i = (e, t, n) => {\n switch (t * 1) {\n case 0:\n switch (n * 1) {\n case 2:\n e = `\"${e}\"`;\n break;\n case 3:\n e = `\"!${e}\"`;\n break;\n case 5:\n e = `\"[${e}]\"`;\n break;\n case 6:\n e = `\"[!${e}]\"`;\n break;\n }\n break;\n case 1:\n e = `[${e}]`;\n break;\n }\n return e;\n }, a = (e, t) => {\n switch (t === null && (t = 6), e) {\n case 1:\n t = 3;\n break;\n case 2:\n t = 2;\n break;\n case 5:\n t > 1 && (t = 1);\n break;\n default: [\n 1,\n 2,\n 3,\n 5,\n 6\n ].includes(t) || (t = 3);\n }\n return t;\n };\n exports.searchersNames = e;\n exports.getSearcherGIcon = t;\n exports.getDeviceGIcon = n;\n exports.getLangLabel = r;\n exports.genVolumeLabel = i;\n exports.prepareVolumeType = a;\n});\n//# sourceMappingURL=searchers.js.map\n","import { useI18nLang } from '@/core/app';\n\n/**\n * Вспомогательный класс для работы с разными Поисковиками\n */\nexport const searchersNames = {\n\t0: 'Yandex',\n\t20: 'Yandex.com',\n\t21: 'Yandex.com.tr',\n\t1: 'Google',\n\t4: 'YouTube',\n\t5: 'Bing',\n\t7: 'Seznam',\n\t8: 'AppStore',\n\t9: 'GooglePlay',\n\t101: 'VK',\n\t102: 'Facebook',\n\t103: 'Twitter',\n};\n\n/**\n * Получить иконку ПС\n * @param searcherKey - цифра или строка с цифрой обозначающая ПС. Если null вернется иконка с глобусом\n */\nexport const getSearcherGIcon = (searcherKey: number | string | undefined): string => {\n\tlet icon = '';\n\n\tif (typeof searcherKey === 'string') searcherKey = Number(searcherKey);\n\n\tswitch (searcherKey) {\n\t\tcase 0:\n\t\t\ticon = '';\n\n\t\t\tbreak;\n\t\tcase 20:\n\t\tcase 21:\n\t\t\ticon = '';\n\n\t\t\tbreak;\n\t\tcase 1:\n\t\t\ticon = '';\n\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\ticon = '';\n\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\ticon = '';\n\n\t\t\tbreak;\n\t\tcase 4:\n\t\t\ticon = '';\n\n\t\t\tbreak;\n\t\tcase 5:\n\t\t\ticon = '';\n\n\t\t\tbreak;\n\t\tcase 6:\n\t\t\ticon = '';\n\n\t\t\tbreak;\n\t\tcase 7:\n\t\t\ticon = '';\n\n\t\t\tbreak;\n\t\tcase 8:\n\t\t\ticon = '';\n\n\t\t\tbreak;\n\t\tcase 9:\n\t\t\ticon = '';\n\n\t\t\tbreak;\n\t\tcase null:\n\t\t\ticon = '';\n\n\t\t\tbreak;\n\t}\n\n\treturn icon;\n};\n\n/**\n * Получить иконку устройства (ПК, планшет, смартфон)\n */\nexport const getDeviceGIcon = (device: number | string): string => {\n\tlet icon = '';\n\n\tif (typeof device === 'string') device = Number(device);\n\n\tswitch (device % 10) {\n\t\tcase 0:\n\t\t\ticon = '';\n\n\t\t\tbreak;\n\t\tcase 1:\n\t\t\ticon = '';\n\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\ticon = '';\n\n\t\t\tbreak;\n\t}\n\n\treturn icon;\n};\n\n/**\n * Получить иконку языка\n */\nexport const getLangLabel = (searcherKey: number | string, lang: string) => {\n\tif (typeof searcherKey === 'string') searcherKey = Number(searcherKey);\n\n\tswitch (searcherKey * 1) {\n\t\tcase 1:\n\t\tcase 4:\n\t\tcase 5:\n\t\tcase 6:\n\t\tcase 8:\n\t\tcase 9:\n\t\t\treturn lang;\n\t}\n\n\treturn '';\n};\n\n/**\n * Сгенерировать заголовок типа частоты\n */\nexport const genVolumeLabel = (label: string, searcherKey: 0 | 1, volumeType: 1 | 2 | 3 | 5 | 6): string => {\n\tswitch (searcherKey * 1) {\n\t\t// Яндекс\n\t\tcase 0:\n\t\t\tswitch (volumeType * 1) {\n\t\t\t\tcase 2:\n\t\t\t\t\tlabel = `\"${label}\"`;\n\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3:\n\t\t\t\t\tlabel = `\"!${label}\"`;\n\n\t\t\t\t\tbreak;\n\t\t\t\tcase 5:\n\t\t\t\t\tlabel = `\"[${label}]\"`;\n\n\t\t\t\t\tbreak;\n\t\t\t\tcase 6:\n\t\t\t\t\tlabel = `\"[!${label}]\"`;\n\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\tbreak;\n\t\t// Google\n\t\tcase 1:\n\t\t\tlabel = `[${label}]`;\n\n\t\t\tbreak;\n\t}\n\n\treturn label;\n};\n\n/**\n * Проверить значение частоты, вернуть правильное значение частоты\n */\nexport const prepareVolumeType = (searcherKey: number, volumeType: number): number => {\n\t// по умолчанию выбрана сама точная частота\n\tif (volumeType === null) volumeType = 6;\n\n\tswitch (searcherKey) {\n\t\tcase 1:\n\t\t\tvolumeType = 3;\n\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tvolumeType = 2;\n\n\t\t\tbreak;\n\t\tcase 5:\n\t\t\tif (volumeType > 1) volumeType = 1;\n\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tif (![1, 2, 3, 5, 6].includes(volumeType)) volumeType = 3;\n\t}\n\n\treturn volumeType;\n};\n"]}
1
+ {"version":3,"sources":["utils/searchers.js","../../src/core/utils/searchers.ts"],"names":["vue","exports"],"mappings":"AAAA,OAAO,CAAC,UAAW,UAAW,6BAAgC,EAAG,SAAU,EAAS,EAAS,CACzF,aAAA,GAAAA,IAAA,OAAA,IAAAA,EAAA,OAAA,ICIS,OAAiB,eAAAC,EAAA,aAAA,CAAA,MAAA,EAAA,CAAA,EAC1B,EAAA,eAAA,EAAA,kBAAA,EAAA,iBAAA,EAAA,aAAA,EAAA,eAAA,EAAA,eAAA,IAAA,GD4HA,EAAQ,eAAiB,CCzHxB,EAAA,SACD,GAAA,aACA,GAAA,gBACA,GAAA,aACA,EAAA,SACA,EAAA,UACA,EAAA,OACE,EAAA,SACA,EAAA,WACA,EAAA,aAO2B,IAAA,KAC5B,IAAO,WAIX,IAFI,SDsGwB,EACzB,EAAQ,iBCpGL,GAAA,CACA,IAAA,EAAA,GACG,OAAA,OAAA,GAAA,WAAA,EAAA,OAAA,CAAA,GAAA,EAAA,CAEP,IAAA,GACI,IAAA,IACA,EAAA,IACG,MAEP,IAAA,IACI,IAAA,IACG,EAAA,IAEP,MACI,IAAA,GACG,EAAA,IAEP,MACI,IAAA,GACG,EAAA,IAEP,MACI,IAAA,GACG,EAAA,IAEP,MACI,IAAA,GACG,EAAA,IAEP,MACI,IAAA,GACG,EAAA,IAEP,MACI,IAAA,GACG,EAAA,IAEP,MACI,IAAA,GACG,EAAA,IAEP,MACI,IAAA,GACG,EAAA,IAEP,MACI,IAAA,GACG,EAAA,IAEP,MACF,KAAA,KAEO,EAAA,IAM2D,KAC9D,CAIJ,OAFI,CAGH,EDqCE,EAAQ,eCrCL,GAAA,CACG,IAAA,EAAA,GAEP,OAAA,OAAA,GAAA,WAAA,EAAA,OAAA,CAAA,GAAA,EAAA,GAAA,CACI,IAAA,GACG,EAAA,IAEP,MACI,IAAA,GACG,EAAA,IAEP,MACF,IAAA,GAEO,EAAA,IAMmD,KAG1D,CACM,OAAA,CACL,EDaE,EAAQ,cCbL,EAAA,IAAA,CACA,OAAA,OAAA,GAAA,WAAA,EAAA,OAAA,CAAA,GAAA,EAAA,EAAA,CACA,IAAA,GACA,IAAA,GAEJ,IAAO,GACT,IAAA,GAEO,IAAA,GAMsC,IAAoB,GAA0C,OAAA,CAC3G,CAEM,MAAA,EACJ,EDJC,EAAQ,gBCID,EAAa,EAArB,IAAA,CACC,OAAK,EAAA,EAAL,CACS,IAAU,GAElB,OAAA,EAAA,EAAA,CACI,IAAA,GACe,EAAA,IAAA,EAAA,GAEnB,MACI,IAAA,GACe,EAAA,KAAA,EAAA,GAEnB,MACI,IAAA,GACgB,EAAA,KAAA,EAAA,IAEpB,MACF,IAAA,GACA,EAAA,MAAA,EAAA,IAEI,KACc,CAElB,MACF,IAAA,GAEO,EAAA,IAAA,EAAA,GAM+C,KAItD,CACM,OAAA,CACJ,EDzCC,EAAQ,mBCyCI,EAAA,IAAA,CAEb,OAAA,IAAA,OAAA,EAAA,GAAA,EAAA,CACI,IAAA,GACS,EAAA,EAEb,MACI,IAAA,GACgB,EAAa,EAEjC,MAEA,IAAA,GAAM,EAAA,IAAA,EAAA,GAAG,MAAG,QAAA,CAAG,EAAG,EAAsB,EAC1C,EAEO,CACR,CAAA,CAAA,SAAA,CAAA,IAAA,EAAA,EDjEQ,CACA,OAAO,CACX,CAOJ,CAAC","sourcesContent":["define([\"require\", \"exports\", \"../.chunks/app-DinkodXi.esm.js\"], function (require, exports) {\n \"use strict\";\n Object.defineProperty(exports, \"__esModule\", { value: true });\n exports.searchersNames = exports.prepareVolumeType = exports.getSearcherGIcon = exports.getLangLabel = exports.getDeviceGIcon = exports.genVolumeLabel = void 0;\n //#region src/core/utils/searchers.ts\n var e = {\n 0: \"Yandex\",\n 20: \"Yandex.com\",\n 21: \"Yandex.com.tr\",\n 22: \"YandexLive\",\n 1: \"Google\",\n 4: \"YouTube\",\n 5: \"Bing\",\n 7: \"Seznam\",\n 8: \"AppStore\",\n 9: \"GooglePlay\",\n 101: \"VK\",\n 102: \"Facebook\",\n 103: \"Twitter\"\n }, t = (e) => {\n let t = \"\";\n switch (typeof e == \"string\" && (e = Number(e)), e) {\n case 0:\n case 22:\n t = \"\";\n break;\n case 20:\n case 21:\n t = \"\";\n break;\n case 1:\n t = \"\";\n break;\n case 2:\n t = \"\";\n break;\n case 3:\n t = \"\";\n break;\n case 4:\n t = \"\";\n break;\n case 5:\n t = \"\";\n break;\n case 6:\n t = \"\";\n break;\n case 7:\n t = \"\";\n break;\n case 8:\n t = \"\";\n break;\n case 9:\n t = \"\";\n break;\n case null:\n t = \"\";\n break;\n }\n return t;\n }, n = (e) => {\n let t = \"\";\n switch (typeof e == \"string\" && (e = Number(e)), e % 10) {\n case 0:\n t = \"\";\n break;\n case 1:\n t = \"\";\n break;\n case 2:\n t = \"\";\n break;\n }\n return t;\n }, r = (e, t) => {\n switch (typeof e == \"string\" && (e = Number(e)), e * 1) {\n case 1:\n case 4:\n case 5:\n case 6:\n case 8:\n case 9: return t;\n }\n return \"\";\n }, i = (e, t, n) => {\n switch (t * 1) {\n case 0:\n switch (n * 1) {\n case 2:\n e = `\"${e}\"`;\n break;\n case 3:\n e = `\"!${e}\"`;\n break;\n case 5:\n e = `\"[${e}]\"`;\n break;\n case 6:\n e = `\"[!${e}]\"`;\n break;\n }\n break;\n case 1:\n e = `[${e}]`;\n break;\n }\n return e;\n }, a = (e, t) => {\n switch (t === null && (t = 6), e) {\n case 1:\n t = 3;\n break;\n case 2:\n t = 2;\n break;\n case 5:\n t > 1 && (t = 1);\n break;\n default: [\n 1,\n 2,\n 3,\n 5,\n 6\n ].includes(t) || (t = 3);\n }\n return t;\n };\n exports.searchersNames = e;\n exports.getSearcherGIcon = t;\n exports.getDeviceGIcon = n;\n exports.getLangLabel = r;\n exports.genVolumeLabel = i;\n exports.prepareVolumeType = a;\n});\n//# sourceMappingURL=searchers.js.map\n","import { useI18nLang } from '@/core/app';\n\n/**\n * Вспомогательный класс для работы с разными Поисковиками\n */\nexport const searchersNames = {\n\t0: 'Yandex',\n\t20: 'Yandex.com',\n\t21: 'Yandex.com.tr',\n\t22: 'YandexLive',\n\t1: 'Google',\n\t4: 'YouTube',\n\t5: 'Bing',\n\t7: 'Seznam',\n\t8: 'AppStore',\n\t9: 'GooglePlay',\n\t101: 'VK',\n\t102: 'Facebook',\n\t103: 'Twitter',\n};\n\n/**\n * Получить иконку ПС\n * @param searcherKey - цифра или строка с цифрой обозначающая ПС. Если null вернется иконка с глобусом\n */\nexport const getSearcherGIcon = (searcherKey: number | string | undefined): string => {\n\tlet icon = '';\n\n\tif (typeof searcherKey === 'string') searcherKey = Number(searcherKey);\n\n\tswitch (searcherKey) {\n\t\tcase 0:\n\t\tcase 22:\n\t\t\ticon = '';\n\n\t\t\tbreak;\n\t\tcase 20:\n\t\tcase 21:\n\t\t\ticon = '';\n\n\t\t\tbreak;\n\t\tcase 1:\n\t\t\ticon = '';\n\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\ticon = '';\n\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\ticon = '';\n\n\t\t\tbreak;\n\t\tcase 4:\n\t\t\ticon = '';\n\n\t\t\tbreak;\n\t\tcase 5:\n\t\t\ticon = '';\n\n\t\t\tbreak;\n\t\tcase 6:\n\t\t\ticon = '';\n\n\t\t\tbreak;\n\t\tcase 7:\n\t\t\ticon = '';\n\n\t\t\tbreak;\n\t\tcase 8:\n\t\t\ticon = '';\n\n\t\t\tbreak;\n\t\tcase 9:\n\t\t\ticon = '';\n\n\t\t\tbreak;\n\t\tcase null:\n\t\t\ticon = '';\n\n\t\t\tbreak;\n\t}\n\n\treturn icon;\n};\n\n/**\n * Получить иконку устройства (ПК, планшет, смартфон)\n */\nexport const getDeviceGIcon = (device: number | string): string => {\n\tlet icon = '';\n\n\tif (typeof device === 'string') device = Number(device);\n\n\tswitch (device % 10) {\n\t\tcase 0:\n\t\t\ticon = '';\n\n\t\t\tbreak;\n\t\tcase 1:\n\t\t\ticon = '';\n\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\ticon = '';\n\n\t\t\tbreak;\n\t}\n\n\treturn icon;\n};\n\n/**\n * Получить иконку языка\n */\nexport const getLangLabel = (searcherKey: number | string, lang: string) => {\n\tif (typeof searcherKey === 'string') searcherKey = Number(searcherKey);\n\n\tswitch (searcherKey * 1) {\n\t\tcase 1:\n\t\tcase 4:\n\t\tcase 5:\n\t\tcase 6:\n\t\tcase 8:\n\t\tcase 9:\n\t\t\treturn lang;\n\t}\n\n\treturn '';\n};\n\n/**\n * Сгенерировать заголовок типа частоты\n */\nexport const genVolumeLabel = (label: string, searcherKey: 0 | 1, volumeType: 1 | 2 | 3 | 5 | 6): string => {\n\tswitch (searcherKey * 1) {\n\t\t// Яндекс\n\t\tcase 0:\n\t\t\tswitch (volumeType * 1) {\n\t\t\t\tcase 2:\n\t\t\t\t\tlabel = `\"${label}\"`;\n\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3:\n\t\t\t\t\tlabel = `\"!${label}\"`;\n\n\t\t\t\t\tbreak;\n\t\t\t\tcase 5:\n\t\t\t\t\tlabel = `\"[${label}]\"`;\n\n\t\t\t\t\tbreak;\n\t\t\t\tcase 6:\n\t\t\t\t\tlabel = `\"[!${label}]\"`;\n\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\tbreak;\n\t\t// Google\n\t\tcase 1:\n\t\t\tlabel = `[${label}]`;\n\n\t\t\tbreak;\n\t}\n\n\treturn label;\n};\n\n/**\n * Проверить значение частоты, вернуть правильное значение частоты\n */\nexport const prepareVolumeType = (searcherKey: number, volumeType: number): number => {\n\t// по умолчанию выбрана сама точная частота\n\tif (volumeType === null) volumeType = 6;\n\n\tswitch (searcherKey) {\n\t\tcase 1:\n\t\t\tvolumeType = 3;\n\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tvolumeType = 2;\n\n\t\t\tbreak;\n\t\tcase 5:\n\t\t\tif (volumeType > 1) volumeType = 1;\n\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tif (![1, 2, 3, 5, 6].includes(volumeType)) volumeType = 3;\n\t}\n\n\treturn volumeType;\n};\n"]}
@@ -4,6 +4,7 @@ var e = {
4
4
  0: "Yandex",
5
5
  20: "Yandex.com",
6
6
  21: "Yandex.com.tr",
7
+ 22: "YandexLive",
7
8
  1: "Google",
8
9
  4: "YouTube",
9
10
  5: "Bing",
@@ -17,6 +18,7 @@ var e = {
17
18
  let t = "";
18
19
  switch (typeof e == "string" && (e = Number(e)), e) {
19
20
  case 0:
21
+ case 22:
20
22
  t = "";
21
23
  break;
22
24
  case 20:
@@ -1 +1 @@
1
- {"version":3,"file":"searchers.js","names":[],"sources":["../../src/core/utils/searchers.ts"],"sourcesContent":["import { useI18nLang } from '@/core/app';\n\n/**\n * Вспомогательный класс для работы с разными Поисковиками\n */\nexport const searchersNames = {\n\t0: 'Yandex',\n\t20: 'Yandex.com',\n\t21: 'Yandex.com.tr',\n\t1: 'Google',\n\t4: 'YouTube',\n\t5: 'Bing',\n\t7: 'Seznam',\n\t8: 'AppStore',\n\t9: 'GooglePlay',\n\t101: 'VK',\n\t102: 'Facebook',\n\t103: 'Twitter',\n};\n\n/**\n * Получить иконку ПС\n * @param searcherKey - цифра или строка с цифрой обозначающая ПС. Если null вернется иконка с глобусом\n */\nexport const getSearcherGIcon = (searcherKey: number | string | undefined): string => {\n\tlet icon = '';\n\n\tif (typeof searcherKey === 'string') searcherKey = Number(searcherKey);\n\n\tswitch (searcherKey) {\n\t\tcase 0:\n\t\t\ticon = '';\n\n\t\t\tbreak;\n\t\tcase 20:\n\t\tcase 21:\n\t\t\ticon = '';\n\n\t\t\tbreak;\n\t\tcase 1:\n\t\t\ticon = '';\n\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\ticon = '';\n\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\ticon = '';\n\n\t\t\tbreak;\n\t\tcase 4:\n\t\t\ticon = '';\n\n\t\t\tbreak;\n\t\tcase 5:\n\t\t\ticon = '';\n\n\t\t\tbreak;\n\t\tcase 6:\n\t\t\ticon = '';\n\n\t\t\tbreak;\n\t\tcase 7:\n\t\t\ticon = '';\n\n\t\t\tbreak;\n\t\tcase 8:\n\t\t\ticon = '';\n\n\t\t\tbreak;\n\t\tcase 9:\n\t\t\ticon = '';\n\n\t\t\tbreak;\n\t\tcase null:\n\t\t\ticon = '';\n\n\t\t\tbreak;\n\t}\n\n\treturn icon;\n};\n\n/**\n * Получить иконку устройства (ПК, планшет, смартфон)\n */\nexport const getDeviceGIcon = (device: number | string): string => {\n\tlet icon = '';\n\n\tif (typeof device === 'string') device = Number(device);\n\n\tswitch (device % 10) {\n\t\tcase 0:\n\t\t\ticon = '';\n\n\t\t\tbreak;\n\t\tcase 1:\n\t\t\ticon = '';\n\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\ticon = '';\n\n\t\t\tbreak;\n\t}\n\n\treturn icon;\n};\n\n/**\n * Получить иконку языка\n */\nexport const getLangLabel = (searcherKey: number | string, lang: string) => {\n\tif (typeof searcherKey === 'string') searcherKey = Number(searcherKey);\n\n\tswitch (searcherKey * 1) {\n\t\tcase 1:\n\t\tcase 4:\n\t\tcase 5:\n\t\tcase 6:\n\t\tcase 8:\n\t\tcase 9:\n\t\t\treturn lang;\n\t}\n\n\treturn '';\n};\n\n/**\n * Сгенерировать заголовок типа частоты\n */\nexport const genVolumeLabel = (label: string, searcherKey: 0 | 1, volumeType: 1 | 2 | 3 | 5 | 6): string => {\n\tswitch (searcherKey * 1) {\n\t\t// Яндекс\n\t\tcase 0:\n\t\t\tswitch (volumeType * 1) {\n\t\t\t\tcase 2:\n\t\t\t\t\tlabel = `\"${label}\"`;\n\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3:\n\t\t\t\t\tlabel = `\"!${label}\"`;\n\n\t\t\t\t\tbreak;\n\t\t\t\tcase 5:\n\t\t\t\t\tlabel = `\"[${label}]\"`;\n\n\t\t\t\t\tbreak;\n\t\t\t\tcase 6:\n\t\t\t\t\tlabel = `\"[!${label}]\"`;\n\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\tbreak;\n\t\t// Google\n\t\tcase 1:\n\t\t\tlabel = `[${label}]`;\n\n\t\t\tbreak;\n\t}\n\n\treturn label;\n};\n\n/**\n * Проверить значение частоты, вернуть правильное значение частоты\n */\nexport const prepareVolumeType = (searcherKey: number, volumeType: number): number => {\n\t// по умолчанию выбрана сама точная частота\n\tif (volumeType === null) volumeType = 6;\n\n\tswitch (searcherKey) {\n\t\tcase 1:\n\t\t\tvolumeType = 3;\n\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tvolumeType = 2;\n\n\t\t\tbreak;\n\t\tcase 5:\n\t\t\tif (volumeType > 1) volumeType = 1;\n\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tif (![1, 2, 3, 5, 6].includes(volumeType)) volumeType = 3;\n\t}\n\n\treturn volumeType;\n};\n"],"mappings":";;AAKA,IAAa,IAAiB;CAC7B,GAAG;CACH,IAAI;CACJ,IAAI;CACJ,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,KAAK;CACL,KAAK;CACL,KAAK;AACN,GAMa,KAAoB,MAAqD;CACrF,IAAI,IAAO;CAIX,QAFI,OAAO,KAAgB,aAAU,IAAc,OAAO,CAAW,IAE7D,GAAR;EACC,KAAK;GACJ,IAAO;GAEP;EACD,KAAK;EACL,KAAK;GACJ,IAAO;GAEP;EACD,KAAK;GACJ,IAAO;GAEP;EACD,KAAK;GACJ,IAAO;GAEP;EACD,KAAK;GACJ,IAAO;GAEP;EACD,KAAK;GACJ,IAAO;GAEP;EACD,KAAK;GACJ,IAAO;GAEP;EACD,KAAK;GACJ,IAAO;GAEP;EACD,KAAK;GACJ,IAAO;GAEP;EACD,KAAK;GACJ,IAAO;GAEP;EACD,KAAK;GACJ,IAAO;GAEP;EACD,KAAK;GACJ,IAAO;GAEP;CACF;CAEA,OAAO;AACR,GAKa,KAAkB,MAAoC;CAClE,IAAI,IAAO;CAIX,QAFI,OAAO,KAAW,aAAU,IAAS,OAAO,CAAM,IAE9C,IAAS,IAAjB;EACC,KAAK;GACJ,IAAO;GAEP;EACD,KAAK;GACJ,IAAO;GAEP;EACD,KAAK;GACJ,IAAO;GAEP;CACF;CAEA,OAAO;AACR,GAKa,KAAgB,GAA8B,MAAiB;CAG3E,QAFI,OAAO,KAAgB,aAAU,IAAc,OAAO,CAAW,IAE7D,IAAc,GAAtB;EACC,KAAK;EACL,KAAK;EACL,KAAK;EACL,KAAK;EACL,KAAK;EACL,KAAK,GACJ,OAAO;CACT;CAEA,OAAO;AACR,GAKa,KAAkB,GAAe,GAAoB,MAA0C;CAC3G,QAAQ,IAAc,GAAtB;EAEC,KAAK;GACJ,QAAQ,IAAa,GAArB;IACC,KAAK;KACJ,IAAQ,IAAI,EAAM;KAElB;IACD,KAAK;KACJ,IAAQ,KAAK,EAAM;KAEnB;IACD,KAAK;KACJ,IAAQ,KAAK,EAAM;KAEnB;IACD,KAAK;KACJ,IAAQ,MAAM,EAAM;KAEpB;GACF;GACA;EAED,KAAK;GACJ,IAAQ,IAAI,EAAM;GAElB;CACF;CAEA,OAAO;AACR,GAKa,KAAqB,GAAqB,MAA+B;CAIrF,QAFI,MAAe,SAAM,IAAa,IAE9B,GAAR;EACC,KAAK;GACJ,IAAa;GAEb;EACD,KAAK;GACJ,IAAa;GAEb;EACD,KAAK;GACJ,AAAI,IAAa,MAAG,IAAa;GAEjC;EACD,SACC,AAAK;GAAC;GAAG;GAAG;GAAG;GAAG;EAAC,CAAC,CAAC,SAAS,CAAU,MAAG,IAAa;CAC1D;CAEA,OAAO;AACR"}
1
+ {"version":3,"file":"searchers.js","names":[],"sources":["../../src/core/utils/searchers.ts"],"sourcesContent":["import { useI18nLang } from '@/core/app';\n\n/**\n * Вспомогательный класс для работы с разными Поисковиками\n */\nexport const searchersNames = {\n\t0: 'Yandex',\n\t20: 'Yandex.com',\n\t21: 'Yandex.com.tr',\n\t22: 'YandexLive',\n\t1: 'Google',\n\t4: 'YouTube',\n\t5: 'Bing',\n\t7: 'Seznam',\n\t8: 'AppStore',\n\t9: 'GooglePlay',\n\t101: 'VK',\n\t102: 'Facebook',\n\t103: 'Twitter',\n};\n\n/**\n * Получить иконку ПС\n * @param searcherKey - цифра или строка с цифрой обозначающая ПС. Если null вернется иконка с глобусом\n */\nexport const getSearcherGIcon = (searcherKey: number | string | undefined): string => {\n\tlet icon = '';\n\n\tif (typeof searcherKey === 'string') searcherKey = Number(searcherKey);\n\n\tswitch (searcherKey) {\n\t\tcase 0:\n\t\tcase 22:\n\t\t\ticon = '';\n\n\t\t\tbreak;\n\t\tcase 20:\n\t\tcase 21:\n\t\t\ticon = '';\n\n\t\t\tbreak;\n\t\tcase 1:\n\t\t\ticon = '';\n\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\ticon = '';\n\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\ticon = '';\n\n\t\t\tbreak;\n\t\tcase 4:\n\t\t\ticon = '';\n\n\t\t\tbreak;\n\t\tcase 5:\n\t\t\ticon = '';\n\n\t\t\tbreak;\n\t\tcase 6:\n\t\t\ticon = '';\n\n\t\t\tbreak;\n\t\tcase 7:\n\t\t\ticon = '';\n\n\t\t\tbreak;\n\t\tcase 8:\n\t\t\ticon = '';\n\n\t\t\tbreak;\n\t\tcase 9:\n\t\t\ticon = '';\n\n\t\t\tbreak;\n\t\tcase null:\n\t\t\ticon = '';\n\n\t\t\tbreak;\n\t}\n\n\treturn icon;\n};\n\n/**\n * Получить иконку устройства (ПК, планшет, смартфон)\n */\nexport const getDeviceGIcon = (device: number | string): string => {\n\tlet icon = '';\n\n\tif (typeof device === 'string') device = Number(device);\n\n\tswitch (device % 10) {\n\t\tcase 0:\n\t\t\ticon = '';\n\n\t\t\tbreak;\n\t\tcase 1:\n\t\t\ticon = '';\n\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\ticon = '';\n\n\t\t\tbreak;\n\t}\n\n\treturn icon;\n};\n\n/**\n * Получить иконку языка\n */\nexport const getLangLabel = (searcherKey: number | string, lang: string) => {\n\tif (typeof searcherKey === 'string') searcherKey = Number(searcherKey);\n\n\tswitch (searcherKey * 1) {\n\t\tcase 1:\n\t\tcase 4:\n\t\tcase 5:\n\t\tcase 6:\n\t\tcase 8:\n\t\tcase 9:\n\t\t\treturn lang;\n\t}\n\n\treturn '';\n};\n\n/**\n * Сгенерировать заголовок типа частоты\n */\nexport const genVolumeLabel = (label: string, searcherKey: 0 | 1, volumeType: 1 | 2 | 3 | 5 | 6): string => {\n\tswitch (searcherKey * 1) {\n\t\t// Яндекс\n\t\tcase 0:\n\t\t\tswitch (volumeType * 1) {\n\t\t\t\tcase 2:\n\t\t\t\t\tlabel = `\"${label}\"`;\n\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3:\n\t\t\t\t\tlabel = `\"!${label}\"`;\n\n\t\t\t\t\tbreak;\n\t\t\t\tcase 5:\n\t\t\t\t\tlabel = `\"[${label}]\"`;\n\n\t\t\t\t\tbreak;\n\t\t\t\tcase 6:\n\t\t\t\t\tlabel = `\"[!${label}]\"`;\n\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\tbreak;\n\t\t// Google\n\t\tcase 1:\n\t\t\tlabel = `[${label}]`;\n\n\t\t\tbreak;\n\t}\n\n\treturn label;\n};\n\n/**\n * Проверить значение частоты, вернуть правильное значение частоты\n */\nexport const prepareVolumeType = (searcherKey: number, volumeType: number): number => {\n\t// по умолчанию выбрана сама точная частота\n\tif (volumeType === null) volumeType = 6;\n\n\tswitch (searcherKey) {\n\t\tcase 1:\n\t\t\tvolumeType = 3;\n\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tvolumeType = 2;\n\n\t\t\tbreak;\n\t\tcase 5:\n\t\t\tif (volumeType > 1) volumeType = 1;\n\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tif (![1, 2, 3, 5, 6].includes(volumeType)) volumeType = 3;\n\t}\n\n\treturn volumeType;\n};\n"],"mappings":";;AAKA,IAAa,IAAiB;CAC7B,GAAG;CACH,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,KAAK;CACL,KAAK;CACL,KAAK;AACN,GAMa,KAAoB,MAAqD;CACrF,IAAI,IAAO;CAIX,QAFI,OAAO,KAAgB,aAAU,IAAc,OAAO,CAAW,IAE7D,GAAR;EACC,KAAK;EACL,KAAK;GACJ,IAAO;GAEP;EACD,KAAK;EACL,KAAK;GACJ,IAAO;GAEP;EACD,KAAK;GACJ,IAAO;GAEP;EACD,KAAK;GACJ,IAAO;GAEP;EACD,KAAK;GACJ,IAAO;GAEP;EACD,KAAK;GACJ,IAAO;GAEP;EACD,KAAK;GACJ,IAAO;GAEP;EACD,KAAK;GACJ,IAAO;GAEP;EACD,KAAK;GACJ,IAAO;GAEP;EACD,KAAK;GACJ,IAAO;GAEP;EACD,KAAK;GACJ,IAAO;GAEP;EACD,KAAK;GACJ,IAAO;GAEP;CACF;CAEA,OAAO;AACR,GAKa,KAAkB,MAAoC;CAClE,IAAI,IAAO;CAIX,QAFI,OAAO,KAAW,aAAU,IAAS,OAAO,CAAM,IAE9C,IAAS,IAAjB;EACC,KAAK;GACJ,IAAO;GAEP;EACD,KAAK;GACJ,IAAO;GAEP;EACD,KAAK;GACJ,IAAO;GAEP;CACF;CAEA,OAAO;AACR,GAKa,KAAgB,GAA8B,MAAiB;CAG3E,QAFI,OAAO,KAAgB,aAAU,IAAc,OAAO,CAAW,IAE7D,IAAc,GAAtB;EACC,KAAK;EACL,KAAK;EACL,KAAK;EACL,KAAK;EACL,KAAK;EACL,KAAK,GACJ,OAAO;CACT;CAEA,OAAO;AACR,GAKa,KAAkB,GAAe,GAAoB,MAA0C;CAC3G,QAAQ,IAAc,GAAtB;EAEC,KAAK;GACJ,QAAQ,IAAa,GAArB;IACC,KAAK;KACJ,IAAQ,IAAI,EAAM;KAElB;IACD,KAAK;KACJ,IAAQ,KAAK,EAAM;KAEnB;IACD,KAAK;KACJ,IAAQ,KAAK,EAAM;KAEnB;IACD,KAAK;KACJ,IAAQ,MAAM,EAAM;KAEpB;GACF;GACA;EAED,KAAK;GACJ,IAAQ,IAAI,EAAM;GAElB;CACF;CAEA,OAAO;AACR,GAKa,KAAqB,GAAqB,MAA+B;CAIrF,QAFI,MAAe,SAAM,IAAa,IAE9B,GAAR;EACC,KAAK;GACJ,IAAa;GAEb;EACD,KAAK;GACJ,IAAa;GAEb;EACD,KAAK;GACJ,AAAI,IAAa,MAAG,IAAa;GAEjC;EACD,SACC,AAAK;GAAC;GAAG;GAAG;GAAG;GAAG;EAAC,CAAC,CAAC,SAAS,CAAU,MAAG,IAAa;CAC1D;CAEA,OAAO;AACR"}
@@ -1,2 +0,0 @@
1
- define([`require`,`exports`,`./forms-CY5MOh7a.amd`,`./field-DEusYVqS.amd`,`../utils/keyboard.amd`,`./popup-3cwJ8Hev.amd`,`vue`,`./api-DZQlrC2R.amd`,`../require/css.amd!../assets/formsExt.css`],function(e,t,n,r,i,a,o){"use strict";if(s===void 0)var s=window.Vue;Object.defineProperty(t,"__esModule",{value:!0}),t.u=t.t=t.s=t.r=t.o=t.n=t.l=t.i=t.f=t.d=t.c=t.a=void 0;var c={key:0,class:`top-menu_selectAll`},l=(0,o.defineComponent)({__name:`menu`,props:(0,o.mergeModels)({modelValue:{},items:{},isMultiple:{type:Boolean},canBeEmptyMultiple:{type:Boolean},styling:{default:`default`},selectAllItem:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=e,r=(0,o.useModel)(e,`modelValue`),i=(0,o.ref)();!t.isMultiple&&typeof r.value!=`string`&&typeof r.value!=`number`&&console.warn(`Type check failed for prop "modelValue". Expected String: `+typeof r.value),t.isMultiple&&!Array.isArray(r.value)&&console.warn(`Type check failed for prop "modelValue". Expected Array: `+typeof r.value),t.isMultiple&&!t.canBeEmptyMultiple&&Array.isArray(r.value)&&!r.value.length&&t.items[0]&&(r.value=[t.items[0]?.href??t.items[0]?.value]);let a=e=>Array.isArray(r.value)?r.value.includes(e.value):e.value===r.value,s=(e,n=!1)=>{if(Array.isArray(r.value)){let i=r.value.slice();if(n){i.length||(i=t.items.map(e=>e.value));let n=i.indexOf(e.value);n===-1?i.push(e.value):i.splice(n,1)}else i=i.length===1&&i[0]===e.value?[]:[e.value];!t.canBeEmptyMultiple&&!i.length&&(i=[e.value]),r.value=i;return}r.value=e.value},l=e=>{if(i.value.scrollWidth<=i.value.offsetWidth||e.shiftKey||Math.abs(e.deltaY)<50)return;e.preventDefault();let t=e.deltaY>0?30:-30;i.value.scrollLeft=i.value.scrollLeft+t},u=(e=!0)=>{let t=i.value.querySelector(`.top-active`);if(!t)return;let r=t.offsetLeft-i.value.offsetLeft-24,a=t.offsetLeft-i.value.offsetLeft+t.clientWidth+24,o=i.value.scrollLeft,s=i.value.clientWidth+i.value.scrollLeft,c;r<o&&(c=r),a>s&&(c=a-i.value.clientWidth),c!==void 0&&((0,n.G)()?n.O.$?.(i.value).animate({scrollLeft:c},e?200:0):i.value.scrollTo({left:c,behavior:e?`smooth`:`auto`}))},d=()=>{if(Array.isArray(r.value)){if(r.value.length===t.items.length){r.value=[t.items[0].href??t.items[0].value];return}r.value=t.items.map(e=>e.href??e.value)}};return(0,o.onMounted)(()=>u(!1)),(0,o.onUpdated)(()=>u(!0)),(t,u)=>((0,o.openBlock)(),(0,o.createElementBlock)(`div`,{ref_key:`el`,ref:i,class:(0,o.normalizeClass)({"top-menu":!0,[`top-style_`+e.styling]:!0}),onWheel:l},[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(e.items,e=>((0,o.openBlock)(),(0,o.createBlock)(n.h,(0,o.mergeProps)({ref_for:!0},e,{class:`top-menu_item`,color:`theme`,onClick:t=>s(e,t.ctrlKey||t.metaKey),isActive:a(e)}),(0,o.createSlots)({_:2},[e.content?{name:`default`,fn:(0,o.withCtx)(()=>[(0,o.createTextVNode)((0,o.toDisplayString)(e.content),1)]),key:`0`}:void 0]),1040,[`onClick`,`isActive`]))),256)),Array.isArray(r.value)&&e.selectAllItem?((0,o.openBlock)(),(0,o.createElementBlock)(`div`,c,[(0,o.createVNode)(n.h,(0,o.mergeProps)(e.selectAllItem,{class:`top-menu_item`,color:`theme`,styling:``,onClick:u[0]||=e=>d(),isActive:r.value.length===e.items.length}),(0,o.createSlots)({_:2},[e.selectAllItem.content?{name:`default`,fn:(0,o.withCtx)(()=>[(0,o.createTextVNode)((0,o.toDisplayString)(e.selectAllItem.content),1)]),key:`0`}:void 0]),1040,[`isActive`])])):(0,o.createCommentVNode)(``,!0)],34))}}),u={class:`top-selector2_itemMulti top-ellipsis`},d=(0,o.defineComponent)({__name:`itemMulti`,props:{id:{},name:{}},emits:[`delete`],setup(e){return(t,n)=>((0,o.openBlock)(),(0,o.createElementBlock)(`div`,u,[(0,o.createTextVNode)((0,o.toDisplayString)(e.name)+` `,1),(0,o.createElementVNode)(`span`,{class:`top-selector2_itemMultiDelete`,"data-top-icon":``,onClick:n[0]||=n=>t.$emit(`delete`,{id:e.id,name:e.name}),onMousedown:n[1]||=(0,o.withModifiers)(()=>{},[`stop`])},null,32)]))}}),f=new Map,p=new Map,m=new Map,h=e=>(m.has(e)||m.set(e,(0,o.ref)(0)),m.get(e)),g=e=>{h(e).value++},_=e=>{f.get(e)?.clear(),g(e)},v=(e,t)=>{f.get(e)?.forEach(e=>t(e))},y=(e,t)=>{p.get(e)?.forEach(e=>t(e))},b=(e,t,n)=>{y(e,e=>{let r=!1;if(Array.isArray(e.value))e.value.filter(e=>e.id===t).forEach(e=>{Object.assign(e,n),r=!0});else{if(e.value.id!==t)return;Object.assign(e.value,n),r=!0}r&&(0,o.triggerRef)(e)})},x=e=>{let t=window.mo?.user?.id;return JSON.stringify(e.params)+`:`+e.url+`:`+t},S=(e,t)=>{let n=f.get(t)?.get(e);if(n)return n.result=n.result.map(e=>({...e})),n},C=(e,t,n)=>{f.has(t)||f.set(t,new Map),f.get(t)?.set(e,n)},w=(e,t)=>{p.has(e)||p.set(e,new Set),p.get(e)?.add(t),(0,o.onUnmounted)(()=>p.get(e)?.delete(t))},T=(e,t,n)=>{v(e,e=>{let r=e.result.find(e=>e.id===t);r&&Object.assign(r,n)}),b(e,t,n),g(e)},E=(e,t)=>{v(e,e=>{let n=e.result.findIndex(e=>e.id===t);n!==-1&&(e.result.splice(n,1),e.nextOffset&&e.nextOffset--)}),b(e,t,{name:`--`}),g(e)},D=(e,t,r,i,a)=>{let s=(0,o.ref)([]),c=(0,o.ref)(!1),l=(0,o.ref)(0),u=``,d;e&&!e.params.limit&&(e.params.limit=100),e&&w(e.path,a);let f=()=>{if(!e)return;e.params.offset=0;let t=S(x(e),e.path);if(!t){s.value=[],d=void 0;return}s.value=t.result,d=t.nextOffset};e&&i&&(0,o.watch)(h(e.path),()=>{f()});let p=async()=>{if(!e)return;let t=i?x(e):void 0;if(t){let n=S(t,e.path);if(n)return e.abortByFingerprint(),n}let n=await e.call();if(n.errors)return;if(!Array.isArray(n.result)){console.warn("Array expected in `res.result`");return}let r=n.result.findIndex(e=>e.id===void 0||e.name===void 0);if(r!==-1){console.warn(`В result[${r}] нет id или name`);return}return t&&C(t,e.path,n),n},m=async n=>{if(!e)return;if(n){if(!d||c.value)return;e.params.offset=d}else e.params.offset=0;t?.(e,u),c.value=!0;let r=await p();c.value=!1,l.value++,r&&(d=r.nextOffset,n?s.value=s.value.concat(r.result):s.value=r.result)},g=(0,n.P)(()=>m(!1),200);return{apiRequest:e,items:s,isLoading:c,countLoading:l,load:m,setSearchTextAndLoad:(t,n=!0)=>{if(e){if(t.length<r){e.abortByFingerprint(),s.value=[];return}t===u&&s.value.length||(u=t,n?g():m(!1))}}}},O=0,k=null,A=(e,t,n=!0)=>n&&t.id===null?Array.isArray(e)?e.some(e=>e.id===t.id&&e.name===t.name):t.name===e.name:Array.isArray(e)?e.some(e=>e.id===t.id):t.id===e.id,j=(e,t,n)=>{let i=e.params.filters??[];i=i.filter(e=>e.name!==n),t&&i.push((0,r.t)(n,`CONTAINS`,[t])),e.changeParams({filters:i})},M=(e,t,r,a)=>{let s=(0,o.ref)(``),c={id:0,name:(0,n.E)().Common.All},l=()=>{s.value=``},u=()=>!(!a.apiRequest||s.value.length>=t.minLength),d=(0,o.computed)(()=>{let e=[];return!t.multiselect&&t.useAllItem&&(typeof t.useAllItem==`string`&&(c.name=t.useAllItem),e.push(c)),t.items?.forEach(t=>e.push(t)),e}),f=(0,o.ref)([]),p=()=>{f.value=m()},m=()=>{let n=s.value.toLowerCase(),r=(0,i.invertKeyboardLayout)(n),o=[],c,l=[],u=()=>{l.at(-1)?.listItemProps?.type===`delimiter`&&l.pop(),l.length&&=(c&&o.push(c),o.push(...l),0)},f=e=>{let i=t.searchFields?.includes(`id`),a=e.name.toLowerCase(),o=t.searchFields?.filter(e=>e!==`id`).map(t=>typeof e[t]==`string`||typeof e[t]==`number`?e[t]:``).join(`☼`).toLowerCase();(i&&e.id===Number(n)||o?.includes(n)||o?.includes(r))&&(a===n||a===r?l.unshift(e):l.push(e))};for(let e of d.value)switch(e.listItemProps?.type){case`title`:u(),c=e;break;case`delimiter`:if(l.length){let t=l.length;l.at(-1)?.listItemProps?.type===`delimiter`&&t--,l[t]=e}break;default:f(e)}if(u(),o.push(...a.items.value),t.appendSearchToResult&&s.value&&(!t.appendSearchToResultCond||t.appendSearchToResultCond(n))&&(t.appendSearchAllowDuplicate||!o.find(e=>e.name.toLowerCase()===n))){let e={id:null,name:s.value};t.appendWithoutSelect&&(e.listItemProps={closeByClick:!1}),o.push(e)}return t.multiselect&&(o=o.filter(t=>!A(e.value,t))),t.prepareItemsBeforeRender&&(o=t.prepareItemsBeforeRender(o)),o},h=n=>{n.listItemProps?.type===`title`||n.listItemProps?.type===`delimiter`||n.id===null&&(r(`appendItem`,n),t.appendWithoutSelect)||(t.multiselect&&Array.isArray(e.value)?A(e.value,n)||(e.value=[...e.value,n]):e.value=n,setTimeout(()=>{l()}))};if(a.apiRequest){let n=[()=>t.items,a.items];t.multiselect&&n.push(e),(0,o.watch)(n,()=>{p()},{deep:2})}else(0,o.watch)([e,()=>t.items,s],()=>{p()},{immediate:!0,deep:2}),(0,o.watch)([()=>t.items?.length??0,()=>t.items],(n,r)=>{(n[0]<r[0]||n[1]!==r[1])&&(Array.isArray(e.value)?e.value:[e.value]).forEach(e=>{e.id!==c.id&&(t.items?.find(t=>t.id===e.id)||(e.name=`--`))})});return{searchText:s,resetSearch:l,genIsShort:u,itemsForShow:f,selectItem:h,selectNextItem:()=>{if(Array.isArray(e.value))return;let t=f.value.filter(e=>![`title`,`delimiter`].includes(e.listItemProps?.type??``));e.value={...t[(t.findIndex(t=>t.id===e.value.id)+1)%t.length]}},deleteItemByItem:async t=>{Array.isArray(e.value)&&(e.value=e.value.filter(e=>e.id!==t.id||e.name!==t.name))}}},N={key:0,class:`top-selector2_activeItems`},P={key:1,class:`top-selector2_activeName top-ellipsis`},F={key:2,class:`top-selector2_placeholder top-ellipsis`},I={class:`top-selector2_searchWidget`},L=(0,o.defineComponent)({__name:`selector2`,props:(0,o.mergeModels)({modelValue:{},items:{default:()=>[]},itemsIsLoading:{type:Boolean},title:{},disabled:{type:Boolean},icon:{},modificator:{},size:{default:`s`},isError:{type:Boolean},openByFocusInput:{type:Boolean,default:void 0},searchType:{default:`popup`},searchFields:{default:()=>[`id`,`name`]},placeholder:{},hasCloserBtn:{type:Boolean},prepareItemsBeforeRender:{},api:{},apiSetSearchParams:{},minLength:{default:0},useCache:{type:Boolean},appendSearchToResult:{type:Boolean},appendSearchAllowDuplicate:{type:Boolean},appendSearchToResultCond:{},appendWithoutSelect:{type:Boolean},multiselect:{type:Boolean},useAllItem:{type:[Boolean,String]},addChanger:{type:Boolean},buttonProps:{},selectedAsPlaceholder:{type:Boolean},openerShortcut:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:(0,o.mergeModels)([`appendItem`,`open`],[`update:modelValue`]),setup(e,{expose:t,emit:r}){let i=e,s=(0,o.useModel)(e,`modelValue`),c=r,l=(0,o.computed)(()=>i.searchType===`inline`&&i.multiselect||i.searchType===`inline`&&n.O.state.isMobile?`popup`:i.searchType),u=D(i.api,i.apiSetSearchParams,i.minLength,i.useCache,s),f=M(s,i,c,u),p=(0,o.computed)(()=>i.buttonProps?`TopButton`:l.value===`inline`?`TopInput`:`div`),m=(0,o.ref)(null),h=()=>m.value?.popup;u.apiRequest&&(0,o.watch)(f.searchText,()=>{u.setSearchTextAndLoad(f.searchText.value)});let g=(0,o.computed)(()=>Array.isArray(s.value)||i.multiselect||!i.selectedAsPlaceholder&&l.value!==`inline`?i.placeholder:s.value?.name||i.placeholder),v=e=>{let t=!1;switch(e.key){case`Delete`:case`Backspace`:Array.isArray(s.value)&&(e.preventDefault(),e.stopPropagation(),s.value.pop());break;case`ArrowUp`:case`ArrowRight`:case`ArrowDown`:case`ArrowLeft`:case`Enter`:case` `:t=!0;break;case`Escape`:l.value===`inline`&&f.resetSearch();break}let n=e.key.length===1&&!e.ctrlKey&&!e.metaKey;(l.value===`popup`||l.value===`inline`)&&n&&(t=!0),h()?.elPopup&&(t=!1),t&&(l.value===`popup`&&(e.preventDefault(),e.stopPropagation(),n&&(f.searchText.value||(f.searchText.value=e.key))),e.currentTarget?.click())},y=e=>{e.preventDefault(),f.selectNextItem()},b=()=>{u.apiRequest&&u.setSearchTextAndLoad(f.searchText.value,!1),c(`open`)},x=()=>{l.value===`popup`&&f.searchText.value&&f.resetSearch()},S=e=>{let t=e.target;t.scrollTop/(t.scrollHeight-t.offsetHeight)>.8&&u.load(!0)};return t({getPopup:h,resetCache:(e=!1)=>{u.apiRequest&&(e&&_(u.apiRequest.path),u.items.value=[],u.countLoading.value=0,u.apiRequest.params.offset=0,requestAnimationFrame(()=>{f.itemsForShow.value=[]}),h()?.elPopup&&u.setSearchTextAndLoad(f.searchText.value))},updateCacheItemById:(e,t)=>{u.apiRequest&&T(u.apiRequest.path,e,t)},deleteCacheItemById:e=>{u.apiRequest&&E(u.apiRequest.path,e)}}),(t,r)=>{let i=(0,o.resolveComponent)(`TopButton`),c=(0,o.resolveComponent)(`TopLoadbar`),h=(0,o.resolveDirective)(`top-focus`),_=(0,o.resolveDirective)(`top-shortcut`);return(0,o.openBlock)(),(0,o.createBlock)((0,o.unref)(a.s),{ref_key:`popupRef`,ref:m,onOpen:r[3]||=e=>b(),onClose:r[4]||=e=>x(),onScrollContentList:r[5]||=e=>(0,o.unref)(u)?S(e):void 0,notch:!1,transitionDuration:0,openByFocusInput:l.value===`inline`&&(e.openByFocusInput??!0),disabled:l.value===`inline`&&(0,o.unref)(f).genIsShort()},(0,o.createSlots)({opener:(0,o.withCtx)(()=>[(0,o.withDirectives)(((0,o.openBlock)(),(0,o.createBlock)((0,o.resolveDynamicComponent)(p.value),(0,o.mergeProps)(e.buttonProps,{class:{"top-selector2":!0,"top-selector2-multiselect":e.multiselect,[`top-selector2-`+e.modificator]:!!e.modificator,"top-as-input":!e.buttonProps&&l.value!==`inline`,"top-as-selector":!0,[`top-size_`+e.size]:!0,"top-disabled":e.disabled,"top-forms-focusable":!e.disabled,"top-error":e.isError},icon:e.icon,tabindex:`0`,onKeydown:v,onBlur:r[0]||=e=>l.value===`inline`&&(0,o.unref)(f).resetSearch(),placeholder:g.value,title:e.title,captionType:l.value===`inline`&&e.title!==void 0?`top`:void 0,modelValue:(0,o.unref)(f).searchText.value,"onUpdate:modelValue":r[1]||=e=>(0,o.unref)(f).searchText.value=e}),{default:(0,o.withCtx)(()=>[e.multiselect?((0,o.openBlock)(),(0,o.createElementBlock)(`div`,N,[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(s.value,e=>((0,o.openBlock)(),(0,o.createBlock)(d,{key:e.id??void 0,id:e.id,name:e.name,onDelete:(0,o.unref)(f).deleteItemByItem},null,8,[`id`,`name`,`onDelete`]))),128))])):(0,o.createCommentVNode)(``,!0),l.value!==`inline`&&!e.multiselect?((0,o.openBlock)(),(0,o.createElementBlock)(`span`,P,(0,o.toDisplayString)(Array.isArray(s.value)?``:s.value.name),1)):(0,o.createCommentVNode)(``,!0),e.multiselect&&!s.value.length?((0,o.openBlock)(),(0,o.createElementBlock)(`span`,F,(0,o.toDisplayString)(g.value),1)):(0,o.createCommentVNode)(``,!0),e.addChanger&&!e.buttonProps&&!e.multiselect&&(0,o.unref)(f).itemsForShow.value.length>1&&!e.disabled?((0,o.openBlock)(),(0,o.createElementBlock)(`span`,{key:3,class:`top-changer top-changer-selector`,"data-top-popup-disabled":`true`,onClick:y})):(0,o.createCommentVNode)(``,!0)]),_:1},16,[`class`,`icon`,`placeholder`,`title`,`captionType`,`modelValue`])),[[h,e.isError,void 0,{onupdate:!0}],[_,e.openerShortcut]])]),contentList:(0,o.withCtx)(()=>[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)((0,o.unref)(f).itemsForShow.value,r=>((0,o.openBlock)(),(0,o.createBlock)((0,o.unref)(a.o),(0,o.mergeProps)({key:r.id??void 0,class:{"top-active":!Array.isArray(s.value)&&!e.multiselect&&s.value.id===r.id&&s.value.name===r.name,"top-selector2_item-all":r.id===(0,o.unref)(0),"top-selector2_item-new":r.id===(0,o.unref)(null)},closeByClick:!e.multiselect||(0,o.unref)(n.O).state.isMobile},{ref_for:!0},r.listItemProps,{onClick:e=>(0,o.unref)(f).selectItem(r)}),(0,o.createSlots)({default:(0,o.withCtx)(()=>[t.$slots.item?(0,o.renderSlot)(t.$slots,`item`,{key:0,item:r}):((0,o.openBlock)(),(0,o.createElementBlock)(o.Fragment,{key:1},[(0,o.createTextVNode)((0,o.toDisplayString)(r.name),1)],64))]),_:2},[t.$slots.actions?{name:`actions`,fn:(0,o.withCtx)(()=>[(0,o.renderSlot)(t.$slots,`actions`,{item:r})]),key:`0`}:void 0]),1040,[`class`,`closeByClick`,`onClick`]))),128)),!(0,o.unref)(f).itemsForShow.value.length&&!(0,o.unref)(f).genIsShort()?((0,o.openBlock)(),(0,o.createBlock)((0,o.unref)(a.o),{key:0,type:`regular`},{default:(0,o.withCtx)(()=>[(0,o.unref)(u).isLoading.value&&!(0,o.unref)(u).countLoading.value||e.itemsIsLoading?((0,o.openBlock)(),(0,o.createBlock)((0,o.unref)(n.t),{key:0,type:`circles`})):((0,o.openBlock)(),(0,o.createElementBlock)(o.Fragment,{key:1},[(0,o.createTextVNode)((0,o.toDisplayString)(t.$i18n.Common.No_results),1)],64))]),_:1})):(0,o.createCommentVNode)(``,!0),(0,o.unref)(u).countLoading.value&&(0,o.unref)(u).isLoading.value&&l.value===`inline`?((0,o.openBlock)(),(0,o.createBlock)(c,{key:1})):(0,o.createCommentVNode)(``,!0)]),_:2},[l.value===`popup`?{name:`widget`,fn:(0,o.withCtx)(()=>[(0,o.createElementVNode)(`div`,I,[(0,o.withDirectives)((0,o.createVNode)((0,o.unref)(a.a),{title:`Поиск`,icon:``,modelValue:(0,o.unref)(f).searchText.value,"onUpdate:modelValue":r[2]||=e=>(0,o.unref)(f).searchText.value=e,isLoading:!!(0,o.unref)(u).countLoading.value&&(0,o.unref)(u).isLoading.value,placeholder:g.value},null,8,[`modelValue`,`isLoading`,`placeholder`]),[[h,s.value,void 0,{onupdate:!0}]]),e.hasCloserBtn&&!t.$core.state.isMobile?((0,o.openBlock)(),(0,o.createBlock)(i,{key:0,class:`closer`,color:`theme`},{default:(0,o.withCtx)(()=>[(0,o.createTextVNode)((0,o.toDisplayString)(t.$i18n.Common.Cancel),1)]),_:1})):(0,o.createCommentVNode)(``,!0)])]),key:`0`}:void 0]),1032,[`openByFocusInput`,`disabled`])}}}),R={class:`top-editArea_footer`},z=(0,o.defineComponent)({__name:`editArea`,props:{defaultValue:{default:``},title:{},cancelText:{default:`Cancel`},submitText:{default:`Send`},closeText:{default:`Close`},isFocused:{type:Boolean},forceShowCloseBtn:{type:Boolean},attachToKeyboard:{type:Boolean},modelValue:{},name:{},placeholder:{},styling:{},rows:{},minHeight:{},expandable:{type:Boolean,default:!0},disabled:{type:Boolean},readonly:{type:Boolean},isError:{type:Boolean},hint:{},maxLength:{}},emits:[`submit`,`close`,`clickOnTitle`],setup(e,{emit:t}){let r=e,i=t,a=(0,o.ref)(r.defaultValue),s=(0,o.ref)(r.isFocused),c=(0,o.computed)(()=>a.value!==r.defaultValue),l=e=>{i(`submit`,e),a.value=r.defaultValue},u=()=>{if(r.forceShowCloseBtn&&!c.value){i(`close`);return}a.value=r.defaultValue},d=()=>{r.attachToKeyboard&&i(`clickOnTitle`)};return(t,r)=>((0,o.openBlock)(),(0,o.createElementBlock)(`div`,{class:(0,o.normalizeClass)({"top-editArea":!0,"top-editArea-attachedToKeyboard":e.attachToKeyboard})},[e.title||t.$slots.caption?((0,o.openBlock)(),(0,o.createElementBlock)(`div`,{key:0,class:`top-editArea_caption`,onClick:r[0]||=e=>d()},[(0,o.renderSlot)(t.$slots,`caption`,{},()=>[(0,o.createTextVNode)((0,o.toDisplayString)(e.title),1)])])):(0,o.createCommentVNode)(``,!0),(0,o.createElementVNode)(`div`,{class:(0,o.normalizeClass)({"top-editArea_form":!0,"top-forms-focusable":!0,"top-as-input":!0,"top-error":e.isError,"top-focus":s.value})},[(0,o.createVNode)(n.r,{modelValue:a.value,"onUpdate:modelValue":r[1]||=e=>a.value=e,name:e.name,placeholder:e.placeholder,rows:e.rows,minHeight:e.minHeight,expandable:e.expandable,disabled:e.disabled,readonly:e.readonly,isError:e.isError,hint:e.hint,class:`top-editArea_element`,onFocus:r[2]||=()=>s.value=!0,onBlur:r[3]||=()=>s.value=!1,onKeyup:[(0,o.withKeys)(u,[`esc`]),r[4]||=(0,o.withKeys)((0,o.withModifiers)(e=>l(a.value),[`ctrl`]),[`enter`])]},null,8,[`modelValue`,`name`,`placeholder`,`rows`,`minHeight`,`expandable`,`disabled`,`readonly`,`isError`,`hint`]),(0,o.createElementVNode)(`div`,R,[c.value||e.forceShowCloseBtn?((0,o.openBlock)(),(0,o.createBlock)(n.h,{key:0,icon:t.$core.state.isMobile?``:``,class:`top-editArea_button`,color:`theme`,styling:`soft`,onClick:u},(0,o.createSlots)({_:2},[t.$core.state.isMobile?void 0:{name:`default`,fn:(0,o.withCtx)(()=>[(0,o.createTextVNode)((0,o.toDisplayString)(e.cancelText),1)]),key:`0`}]),1032,[`icon`])):(0,o.createCommentVNode)(``,!0),c.value?((0,o.openBlock)(),(0,o.createBlock)(n.h,{key:1,class:`top-editArea_button`,icon:t.$core.state.isMobile?``:``,onClick:r[5]||=e=>l(a.value)},(0,o.createSlots)({_:2},[t.$core.state.isMobile?void 0:{name:`default`,fn:(0,o.withCtx)(()=>[(0,o.createTextVNode)((0,o.toDisplayString)(e.submitText),1)]),key:`0`}]),1032,[`icon`])):(0,o.createCommentVNode)(``,!0)])],2)],2))}}),B={class:`top-editInput`},V=(0,o.defineComponent)({__name:`editInput`,props:{modelValue:{},alwaysShowSubmitBtn:{type:Boolean},input:{},button:{}},emits:[`update:modelValue`],setup(e,{emit:t}){let r=e,i=(0,o.ref)(r.modelValue);(0,o.watch)(()=>r.modelValue,()=>{i.value=r.modelValue});let a=t,s=()=>{a(`update:modelValue`,i.value)};return(t,r)=>((0,o.openBlock)(),(0,o.createElementBlock)(`div`,B,[(0,o.createVNode)(n.c,(0,o.mergeProps)(e.input,{onKeydownCapture:r[0]||=(0,o.withKeys)((0,o.withModifiers)(t=>i.value=e.modelValue,[`stop`]),[`esc`]),onKeydown:(0,o.withKeys)((0,o.withModifiers)(s,[`stop`]),[`enter`]),modelValue:i.value,"onUpdate:modelValue":r[1]||=e=>i.value=e}),(0,o.createSlots)({_:2},[t.$slots.caption?{name:`caption`,fn:(0,o.withCtx)(()=>[(0,o.renderSlot)(t.$slots,`caption`)]),key:`0`}:void 0]),1040,[`onKeydown`,`modelValue`]),i.value!==e.modelValue||e.alwaysShowSubmitBtn?((0,o.openBlock)(),(0,o.createBlock)(n.h,(0,o.mergeProps)({key:0,icon:``,styling:`soft`},e.button,{onClick:s}),null,16)):(0,o.createCommentVNode)(``,!0)]))}}),H=(0,o.defineComponent)({__name:`optionGroup`,props:(0,o.mergeModels)({modelValue:{},items:{},size:{default:`s`},showIndicator:{type:Boolean},isError:{type:Boolean}},{modelValue:{required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=(0,o.useModel)(e,`modelValue`),r=e,i=(0,o.ref)(null);(0,o.watch)(t,()=>{let e=r.items.map(e=>e.value);Array.isArray(t.value)?t.value.find(t=>!e.includes(t))&&(t.value=t.value.filter(t=>e.includes(t))):e.includes(t.value)||(t.value=e[0]??``),i.value?.querySelector(`.radioGroup_item-selected`)?.scrollIntoView()},{immediate:!0});let a=`optionGroup-`+Math.random();return(r,s)=>((0,o.openBlock)(),(0,o.createElementBlock)(`div`,{ref_key:`elRef`,ref:i,class:(0,o.normalizeClass)({"top-optionGroup":!0,[`top-optionGroup-showIndicator_`+Number(e.showIndicator)]:!0,"top-scrollBarXHidding":!0,[`top-size_`+e.size]:!!e.size,"top-error":e.isError})},[Array.isArray(t.value)?((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,{key:0},(0,o.renderList)(e.items,r=>((0,o.openBlock)(),(0,o.createBlock)(n.f,{class:(0,o.normalizeClass)({"top-optionGroup_item-selected":t.value.includes(r.value),"top-optionGroup_item":!0}),modelValue:t.value,"onUpdate:modelValue":s[0]||=e=>t.value=e,value:r.value,title:r.title,disabled:r.disabled,isError:e.isError,"data-top-icon":r.icon},(0,o.createSlots)({_:2},[r.label?{name:`default`,fn:(0,o.withCtx)(()=>[(0,o.createTextVNode)((0,o.toDisplayString)(r.label),1)]),key:`0`}:void 0]),1032,[`class`,`modelValue`,`value`,`title`,`disabled`,`isError`,`data-top-icon`]))),256)):((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,{key:1},(0,o.renderList)(e.items,r=>((0,o.openBlock)(),(0,o.createBlock)(n.a,{class:(0,o.normalizeClass)({"top-optionGroup_item-selected":r.value===t.value,"top-optionGroup_item":!0}),modelValue:t.value,"onUpdate:modelValue":s[1]||=e=>t.value=e,name:a,value:r.value,title:r.title,disabled:r.disabled,isError:e.isError,"data-top-icon":r.icon},(0,o.createSlots)({_:2},[r.label?{name:`default`,fn:(0,o.withCtx)(()=>[(0,o.createTextVNode)((0,o.toDisplayString)(r.label),1)]),key:`0`}:void 0]),1032,[`class`,`modelValue`,`value`,`title`,`disabled`,`isError`,`data-top-icon`]))),256))],2))}}),U=(0,o.defineComponent)({__name:`radioGroup`,props:(0,o.mergeModels)({modelValue:{},items:{},size:{},showIndicator:{type:Boolean},isError:{type:Boolean}},{modelValue:{required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=(0,o.useModel)(e,`modelValue`);return(e,n)=>((0,o.openBlock)(),(0,o.createBlock)(H,{class:`top-radioGroup`,modelValue:t.value,"onUpdate:modelValue":n[0]||=e=>t.value=e,items:e.$props.items,size:e.$props.size,showIndicator:e.$props.showIndicator,isError:e.$props.isError},{default:(0,o.withCtx)(()=>[(0,o.renderSlot)(e.$slots,`default`)]),_:3},8,[`modelValue`,`items`,`size`,`showIndicator`,`isError`]))}}),W=(0,o.defineComponent)({__name:`checkboxGroup`,props:(0,o.mergeModels)({modelValue:{},items:{},size:{},showIndicator:{type:Boolean},isError:{type:Boolean}},{modelValue:{required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=(0,o.useModel)(e,`modelValue`);return(e,n)=>((0,o.openBlock)(),(0,o.createBlock)(H,{class:`top-checkboxGroup`,modelValue:t.value,"onUpdate:modelValue":n[0]||=e=>t.value=e,items:e.$props.items,size:e.$props.size,showIndicator:e.$props.showIndicator,isError:e.$props.isError},{default:(0,o.withCtx)(()=>[(0,o.renderSlot)(e.$slots,`default`)]),_:3},8,[`modelValue`,`items`,`size`,`showIndicator`,`isError`]))}}),G=[`data-top-icon`],K={class:`top-info_text`},q={key:0,class:`top-info_value`},J=(0,o.defineComponent)({__name:`info`,props:{icon:{},styling:{default:`default`},size:{default:`default`}},setup(e){return(t,n)=>((0,o.openBlock)(),(0,o.createElementBlock)(`div`,{class:(0,o.normalizeClass)({"top-info":!0,[`top-size_`+e.size]:!0,[`top-info-styling_`+e.styling]:!0}),"data-top-icon":e.icon},[(0,o.createElementVNode)(`div`,K,[(0,o.renderSlot)(t.$slots,`default`)]),t.$slots.additional?((0,o.openBlock)(),(0,o.createElementBlock)(`span`,q,[(0,o.renderSlot)(t.$slots,`additional`)])):(0,o.createCommentVNode)(``,!0)],10,G))}}),Y={key:0,class:`top-policy`},X={class:`top-policy_title`},Z=[`innerHTML`],Q=(0,o.defineComponent)({__name:`policy`,props:{title:{},description:{},acceptText:{}},emits:[`accept`],setup(e,{emit:t}){let r=t,i=(0,o.ref)(!0),a=()=>{i.value=!1,r(`accept`)};return(t,r)=>i.value?((0,o.openBlock)(),(0,o.createElementBlock)(`div`,Y,[(0,o.createElementVNode)(`div`,X,(0,o.toDisplayString)(e.title),1),(0,o.createElementVNode)(`div`,{class:`top-policy_description`,innerHTML:e.description},null,8,Z),(0,o.createVNode)((0,o.unref)(n.h),{size:`m`,onClick:a},{default:(0,o.withCtx)(()=>[(0,o.createTextVNode)((0,o.toDisplayString)(e.acceptText),1)]),_:1})])):(0,o.createCommentVNode)(``,!0)}});t.f=l,t.d=_,t.c=O,t.l=k,t.u=j,t.s=L,t.o=z,t.a=V,t.i=U,t.r=W,t.n=J,t.t=Q});
2
- //# sourceMappingURL=formsExt-C9r4Gz9y.amd.js.map