r3ui-lib 1.2.3 → 1.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +145 -0
- package/README.md +66 -2
- package/assets/animal_icons/arctic-fox.svg +3 -0
- package/assets/animal_icons/bee.svg +9 -0
- package/assets/animal_icons/bison.svg +10 -0
- package/assets/animal_icons/buffalo.svg +5 -0
- package/assets/animal_icons/camel.svg +4 -0
- package/assets/animal_icons/cat.svg +3 -0
- package/assets/animal_icons/chicken.svg +6 -0
- package/assets/animal_icons/cow.svg +11 -0
- package/assets/animal_icons/deer.svg +10 -0
- package/assets/animal_icons/dog.svg +4 -0
- package/assets/animal_icons/donkey.svg +3 -0
- package/assets/animal_icons/duck.svg +3 -0
- package/assets/animal_icons/ferret.svg +3 -0
- package/assets/animal_icons/fish.svg +3 -0
- package/assets/animal_icons/fox.svg +3 -0
- package/assets/animal_icons/goose.svg +5 -0
- package/assets/animal_icons/gost.svg +3 -0
- package/assets/animal_icons/grunting-ox.svg +11 -0
- package/assets/animal_icons/guinea-fowl.svg +3 -0
- package/assets/animal_icons/horse.svg +10 -0
- package/assets/animal_icons/loshak.svg +10 -0
- package/assets/animal_icons/maral.svg +3 -0
- package/assets/animal_icons/mink.svg +3 -0
- package/assets/animal_icons/mule.svg +10 -0
- package/assets/animal_icons/nutria.svg +5 -0
- package/assets/animal_icons/ostrich.svg +10 -0
- package/assets/animal_icons/peacok.svg +3 -0
- package/assets/animal_icons/phasan.svg +3 -0
- package/assets/animal_icons/pig.svg +3 -0
- package/assets/animal_icons/quail.svg +10 -0
- package/assets/animal_icons/rabbit.svg +10 -0
- package/assets/animal_icons/raccoon-dog.svg +11 -0
- package/assets/animal_icons/racoon.svg +3 -0
- package/assets/animal_icons/sable.svg +13 -0
- package/assets/animal_icons/sheep.svg +3 -0
- package/assets/animal_icons/turkey.svg +3 -0
- package/assets/animal_icons/zebu.svg +11 -0
- package/dist/r3ui-lib.css +1 -1
- package/dist/r3ui-lib.es.js +8785 -8284
- package/dist/r3ui-lib.umd.js +32 -32
- package/dist/types/components/cards/PageCard.vue.d.ts +56 -3
- package/dist/types/components/cards/PageCard.vue.d.ts.map +1 -1
- package/dist/types/components/dropdowns/DefaultDropDown.vue.d.ts.map +1 -1
- package/dist/types/components/form/CustomInput.vue.d.ts.map +1 -1
- package/dist/types/components/form/PasswordInput.vue.d.ts.map +1 -1
- package/dist/types/components/forms/AddressForm.stories.d.ts +1 -0
- package/dist/types/components/forms/AddressForm.stories.d.ts.map +1 -1
- package/dist/types/components/forms/AddressForm.vue.d.ts +10 -0
- package/dist/types/components/forms/AddressForm.vue.d.ts.map +1 -1
- package/dist/types/components/forms/AgeFromAgeTo.stories.d.ts +1 -0
- package/dist/types/components/forms/AgeFromAgeTo.stories.d.ts.map +1 -1
- package/dist/types/components/forms/AgeFromAgeTo.vue.d.ts +7 -5
- package/dist/types/components/forms/AgeFromAgeTo.vue.d.ts.map +1 -1
- package/dist/types/components/forms/BooleanCheckbox.vue.d.ts +1 -1
- package/dist/types/components/forms/BooleanCheckbox.vue.d.ts.map +1 -1
- package/dist/types/components/forms/Flatpickr.vue.d.ts +2 -2
- package/dist/types/components/forms/Flatpickr.vue.d.ts.map +1 -1
- package/dist/types/components/layout/LanguageSelector.vue.d.ts +16 -0
- package/dist/types/components/layout/LanguageSelector.vue.d.ts.map +1 -0
- package/dist/types/components/modals/ConfirmationModal.vue.d.ts.map +1 -1
- package/dist/types/components/modals/DefaultModal.vue.d.ts.map +1 -1
- package/dist/types/components/notifications/Toast.vue.d.ts.map +1 -1
- package/dist/types/components/sidebar/CollapsedSidebarLink.vue.d.ts.map +1 -1
- package/dist/types/components/sidebar/SidebarLink.vue.d.ts.map +1 -1
- package/dist/types/components/tables/Table.vue.d.ts.map +1 -1
- package/dist/types/components/tables/TableColumnsButton.vue.d.ts.map +1 -1
- package/dist/types/components/tables/TableColumnsModal.vue.d.ts.map +1 -1
- package/dist/types/components/utilities/FilterValuesPanel.vue.d.ts.map +1 -1
- package/dist/types/composables/forms/useAddressForm.d.ts +27 -4
- package/dist/types/composables/forms/useAddressForm.d.ts.map +1 -1
- package/dist/types/composables/main/useMain.d.ts.map +1 -1
- package/dist/types/composables/sidebar/useSidebar.d.ts +2 -0
- package/dist/types/composables/sidebar/useSidebar.d.ts.map +1 -1
- package/dist/types/composables/table/useTableDefault.d.ts.map +1 -1
- package/dist/types/main.d.ts +13 -3
- package/dist/types/main.d.ts.map +1 -1
- package/dist/types/services/AddressService.d.ts +11 -0
- package/dist/types/services/AddressService.d.ts.map +1 -0
- package/dist/types/utils/accordionLocalization.d.ts +19 -0
- package/dist/types/utils/accordionLocalization.d.ts.map +1 -0
- package/dist/types/utils/addressFormTranslations.d.ts +32 -0
- package/dist/types/utils/addressFormTranslations.d.ts.map +1 -0
- package/dist/types/utils/auth/logout.d.ts +11 -0
- package/dist/types/utils/auth/logout.d.ts.map +1 -0
- package/dist/types/utils/constants.d.ts +4 -0
- package/dist/types/utils/constants.d.ts.map +1 -1
- package/dist/types/utils/helpers.d.ts +9 -3
- package/dist/types/utils/helpers.d.ts.map +1 -1
- package/dist/types/utils/pkce.d.ts +8 -0
- package/dist/types/utils/pkce.d.ts.map +1 -0
- package/package.json +9 -5
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Константы ключей переводов для локализации аккордеона
|
|
3
|
+
* Используются для обеспечения единообразия текста во всех проектах
|
|
4
|
+
*/
|
|
5
|
+
export declare const ACCORDION_LOCALIZATION_KEYS: {
|
|
6
|
+
readonly expandAll: "accordion.expand_all";
|
|
7
|
+
readonly collapseAll: "accordion.collapse_all";
|
|
8
|
+
};
|
|
9
|
+
export type AccordionLocalizationKey = keyof typeof ACCORDION_LOCALIZATION_KEYS;
|
|
10
|
+
export type AccordionLocalizationLabels = {
|
|
11
|
+
expandText: string;
|
|
12
|
+
collapseText: string;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Возвращает переведённые лейблы для элементов управления аккордеоном
|
|
16
|
+
* @param t - функция перевода из i18n
|
|
17
|
+
*/
|
|
18
|
+
export declare function getAccordionLocalization(t: (key: string) => string): AccordionLocalizationLabels;
|
|
19
|
+
//# sourceMappingURL=accordionLocalization.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accordionLocalization.d.ts","sourceRoot":"","sources":["../../../src/utils/accordionLocalization.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,2BAA2B;;;CAG9B,CAAC;AAEX,MAAM,MAAM,wBAAwB,GAChC,MAAM,OAAO,2BAA2B,CAAC;AAE7C,MAAM,MAAM,2BAA2B,GAAG;IACtC,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF;;;GAGG;AACH,wBAAgB,wBAAwB,CACpC,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,GAC3B,2BAA2B,CAK7B"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Константы переводов для компонента AddressForm
|
|
3
|
+
* Используются для переиспользования переводов в разных приложениях
|
|
4
|
+
*/
|
|
5
|
+
export declare const ADDRESS_FORM_TRANSLATIONS: {
|
|
6
|
+
readonly country: "country";
|
|
7
|
+
readonly region: "region";
|
|
8
|
+
readonly district: "district";
|
|
9
|
+
readonly locality: "locality";
|
|
10
|
+
readonly street: "street";
|
|
11
|
+
readonly house: "house";
|
|
12
|
+
readonly building: "building";
|
|
13
|
+
readonly apartment: "apartment";
|
|
14
|
+
};
|
|
15
|
+
export type AddressFormTranslationKey = keyof typeof ADDRESS_FORM_TRANSLATIONS;
|
|
16
|
+
export type AddressFormLabels = {
|
|
17
|
+
countryLabel: string;
|
|
18
|
+
regionLabel: string;
|
|
19
|
+
districtLabel: string;
|
|
20
|
+
localityLabel: string;
|
|
21
|
+
streetLabel: string;
|
|
22
|
+
houseLabel: string;
|
|
23
|
+
buildingLabel: string;
|
|
24
|
+
apartmentLabel: string;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Функция для получения переведённых лейблов адресной формы
|
|
28
|
+
* @param t - функция перевода из i18n
|
|
29
|
+
* @returns объект с переведёнными лейблами
|
|
30
|
+
*/
|
|
31
|
+
export declare function getAddressFormLabels(t: (key: string) => string): AddressFormLabels;
|
|
32
|
+
//# sourceMappingURL=addressFormTranslations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"addressFormTranslations.d.ts","sourceRoot":"","sources":["../../../src/utils/addressFormTranslations.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,yBAAyB;;;;;;;;;CAS5B,CAAC;AAEX,MAAM,MAAM,yBAAyB,GAAG,MAAM,OAAO,yBAAyB,CAAC;AAE/E,MAAM,MAAM,iBAAiB,GAAG;IAC9B,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,GAAG,iBAAiB,CAWlF"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export type LogoutFlowOptions = {
|
|
2
|
+
logOutSSO?: () => Promise<unknown>;
|
|
3
|
+
nextTick: (cb: () => void) => Promise<void> | void;
|
|
4
|
+
navigateTo: (path: string) => Promise<void> | void;
|
|
5
|
+
redirect?: (path: string) => Promise<void> | void;
|
|
6
|
+
onReset: () => void;
|
|
7
|
+
redirectPath?: string;
|
|
8
|
+
onError?: (error: unknown) => void;
|
|
9
|
+
};
|
|
10
|
+
export declare function runLogoutFlow(options: LogoutFlowOptions): Promise<void>;
|
|
11
|
+
//# sourceMappingURL=logout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logout.d.ts","sourceRoot":"","sources":["../../../../src/utils/auth/logout.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,iBAAiB,GAAG;IAC9B,SAAS,CAAC,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,CAAC;IACnC,QAAQ,EAAE,CAAC,EAAE,EAAE,MAAM,IAAI,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IACnD,UAAU,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IACnD,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IAClD,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;CACpC,CAAC;AAEF,wBAAsB,aAAa,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,CA8B7E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/utils/constants.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/utils/constants.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;CA6Bd,CAAA;AAGD,eAAe,SAAS,CAAA"}
|
|
@@ -48,7 +48,7 @@ export declare function getValueFromObjectItem(i: {
|
|
|
48
48
|
export declare function getValueFromArr(arr: any[]): any[];
|
|
49
49
|
export declare function sumOfArrayNumbers(arr: number[]): number;
|
|
50
50
|
export declare const initEmailMask: () => MaskConfig;
|
|
51
|
-
export declare const initPhoneMask: (
|
|
51
|
+
export declare const initPhoneMask: () => MaskConfig;
|
|
52
52
|
export declare const initInnMask: () => MaskConfig;
|
|
53
53
|
export declare const initKppMask: () => MaskConfig;
|
|
54
54
|
export declare const initSnilsMask: () => MaskConfig;
|
|
@@ -79,7 +79,7 @@ export declare function unique<T>(arr: T[]): T[];
|
|
|
79
79
|
export declare function groupBy<T>(arr: T[], key: keyof T): {
|
|
80
80
|
[key: string]: T[];
|
|
81
81
|
};
|
|
82
|
-
export declare function sortBy<T>(arr: T[], key: keyof T, direction?:
|
|
82
|
+
export declare function sortBy<T>(arr: T[], key: keyof T, direction?: "asc" | "desc"): T[];
|
|
83
83
|
export declare function chunk<T>(arr: T[], size: number): T[][];
|
|
84
84
|
export declare function isObject(obj: any): boolean;
|
|
85
85
|
export declare function getDeepCopyObject<T>(obj: T): T;
|
|
@@ -117,6 +117,9 @@ export declare function clamp(value: number, min: number, max: number): number;
|
|
|
117
117
|
export declare function lerp(start: number, end: number, factor: number): number;
|
|
118
118
|
export declare function random(min: number, max: number): number;
|
|
119
119
|
export declare function roundToDecimals(value: number, decimals: number): number;
|
|
120
|
+
export declare function hasRole(roles: string[], userRole: string): boolean;
|
|
121
|
+
export declare function hasMatch(roles: string[], userRoles: string[]): boolean;
|
|
122
|
+
export declare function prepareResponse(response: any): any;
|
|
120
123
|
declare const _default: {
|
|
121
124
|
prepareSelectOptions: typeof prepareSelectOptions;
|
|
122
125
|
scrollToError: typeof scrollToError;
|
|
@@ -130,7 +133,7 @@ declare const _default: {
|
|
|
130
133
|
getValueFromArr: typeof getValueFromArr;
|
|
131
134
|
sumOfArrayNumbers: typeof sumOfArrayNumbers;
|
|
132
135
|
initEmailMask: () => MaskConfig;
|
|
133
|
-
initPhoneMask: (
|
|
136
|
+
initPhoneMask: () => MaskConfig;
|
|
134
137
|
initInnMask: () => MaskConfig;
|
|
135
138
|
initKppMask: () => MaskConfig;
|
|
136
139
|
initSnilsMask: () => MaskConfig;
|
|
@@ -194,6 +197,9 @@ declare const _default: {
|
|
|
194
197
|
lerp: typeof lerp;
|
|
195
198
|
random: typeof random;
|
|
196
199
|
roundToDecimals: typeof roundToDecimals;
|
|
200
|
+
hasRole: typeof hasRole;
|
|
201
|
+
hasMatch: typeof hasMatch;
|
|
202
|
+
prepareResponse: typeof prepareResponse;
|
|
197
203
|
};
|
|
198
204
|
export default _default;
|
|
199
205
|
//# sourceMappingURL=helpers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../src/utils/helpers.ts"],"names":[],"mappings":"AACA,OAAO,EAAa,KAAK,SAAS,EAAE,MAAM,KAAK,CAAC;AAOhD,UAAU,YAAY;IACpB,EAAE,EAAE,GAAG,CAAC;IACR,IAAI,EAAE,MAAM,CAAC;IACb,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED,UAAU,UAAU;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,UAAU,aAAa;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAMD;;;;;GAKG;AACH,eAAO,MAAM,OAAO,GAAI,UAAU,MAAM,EAAE,EAAE,KAAK,MAAM,EAAE,KAAG,OAE3D,
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../src/utils/helpers.ts"],"names":[],"mappings":"AACA,OAAO,EAAa,KAAK,SAAS,EAAE,MAAM,KAAK,CAAC;AAOhD,UAAU,YAAY;IACpB,EAAE,EAAE,GAAG,CAAC;IACR,IAAI,EAAE,MAAM,CAAC;IACb,CAAC,GA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G,EAAE,MAAM,GAAG,GAAG,CAAC;KACpB,KAAG;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE;;;;;;;;;;;;;;;;;;;;;;;;;;AAiO1B,wBAuGE"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare function generateCodeVerifier(length?: number): string;
|
|
2
|
+
export declare function generateCodeChallenge(codeVerifier: string): Promise<string>;
|
|
3
|
+
export declare function generatePkcePair(length?: number): Promise<{
|
|
4
|
+
codeVerifier: string;
|
|
5
|
+
codeChallenge: string;
|
|
6
|
+
}>;
|
|
7
|
+
export declare function generateState(length?: number): string;
|
|
8
|
+
//# sourceMappingURL=pkce.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pkce.d.ts","sourceRoot":"","sources":["../../../src/utils/pkce.ts"],"names":[],"mappings":"AAqCA,wBAAgB,oBAAoB,CAAC,MAAM,SAAK,UAK/C;AAED,wBAAsB,qBAAqB,CAAC,YAAY,EAAE,MAAM,mBAM/D;AAED,wBAAsB,gBAAgB,CAAC,MAAM,SAAK;;;GAIjD;AAED,wBAAgB,aAAa,CAAC,MAAM,SAAK,UAKxC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "r3ui-lib",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.2.
|
|
4
|
+
"version": "1.2.4",
|
|
5
5
|
"description": "Modern Vue 3 UI component library with TypeScript support",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"vue",
|
|
@@ -37,8 +37,10 @@
|
|
|
37
37
|
},
|
|
38
38
|
"files": [
|
|
39
39
|
"dist",
|
|
40
|
+
"assets",
|
|
40
41
|
"README.md",
|
|
41
|
-
"LICENSE"
|
|
42
|
+
"LICENSE",
|
|
43
|
+
"CHANGELOG.md"
|
|
42
44
|
],
|
|
43
45
|
"scripts": {
|
|
44
46
|
"dev": "vite",
|
|
@@ -51,7 +53,8 @@
|
|
|
51
53
|
"build-storybook": "storybook build",
|
|
52
54
|
"docs:split": "node scripts/split-docs.cjs",
|
|
53
55
|
"docs:update": "node scripts/update-docs.cjs",
|
|
54
|
-
"docs:serve": "echo 'Документация доступна в папке docs/'"
|
|
56
|
+
"docs:serve": "echo 'Документация доступна в папке docs/'",
|
|
57
|
+
"postinstall": "patch-package"
|
|
55
58
|
},
|
|
56
59
|
"dependencies": {
|
|
57
60
|
"@popperjs/core": "^2.11.8",
|
|
@@ -72,7 +75,6 @@
|
|
|
72
75
|
},
|
|
73
76
|
"devDependencies": {
|
|
74
77
|
"@chromatic-com/storybook": "^4.1.1",
|
|
75
|
-
"@types/node": "^22.0.0",
|
|
76
78
|
"@storybook/addon-a11y": "^9.1.5",
|
|
77
79
|
"@storybook/addon-docs": "^9.1.5",
|
|
78
80
|
"@storybook/addon-onboarding": "^9.1.5",
|
|
@@ -80,6 +82,7 @@
|
|
|
80
82
|
"@storybook/vue3-vite": "^9.1.5",
|
|
81
83
|
"@types/inputmask": "^5.0.7",
|
|
82
84
|
"@types/js-cookie": "^3.0.6",
|
|
85
|
+
"@types/node": "^22.0.0",
|
|
83
86
|
"@types/tabulator-tables": "^6.2.0",
|
|
84
87
|
"@types/vue-select": "^3.16.8",
|
|
85
88
|
"@vitejs/plugin-vue": "^6.0.1",
|
|
@@ -89,6 +92,7 @@
|
|
|
89
92
|
"bootstrap": "^5.3.7",
|
|
90
93
|
"bootstrap-icons": "^1.11.3",
|
|
91
94
|
"jsdom": "^27.0.0",
|
|
95
|
+
"patch-package": "^8.0.1",
|
|
92
96
|
"playwright": "^1.55.0",
|
|
93
97
|
"sass-embedded": "^1.92.1",
|
|
94
98
|
"storybook": "^9.1.5",
|
|
@@ -97,4 +101,4 @@
|
|
|
97
101
|
"vitest": "^3.2.4",
|
|
98
102
|
"vue-tsc": "^3.0.5"
|
|
99
103
|
}
|
|
100
|
-
}
|
|
104
|
+
}
|