@ckbox/core 0.0.2-dev.4 → 0.0.2-dev.5
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/LICENSE.md +7 -0
- package/README.md +3 -0
- package/dist/index.d.ts +169 -0
- package/dist/index.js +4 -0
- package/dist/translations/de.js +1 -0
- package/dist/translations/en.js +1 -0
- package/dist/translations/es.js +1 -0
- package/dist/translations/pl.js +1 -0
- package/package.json +6 -5
package/LICENSE.md
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
**CKBox** (https://ckeditor.com/ckbox/)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2003-2022, [CKSource Holding sp. z o.o.](https://cksource.com/) All rights reserved.
|
|
4
|
+
**CKBox** is licensed under a commercial license and is protected by copyright law. For more details about available licensing options please contact us at [sales@cksource.com](mailto:sales@cksource.com).
|
|
5
|
+
|
|
6
|
+
Trademarks
|
|
7
|
+
**CKBox** is a trademark of [CKSource Holding sp. z o.o.](https://cksource.com/) All other brand and product names are trademarks, registered trademarks or service marks of their respective holders.
|
package/README.md
ADDED
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/**
|
|
3
|
+
* @license Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
4
|
+
*/
|
|
5
|
+
import * as React from 'react';
|
|
6
|
+
import { IconRenderProp } from '@ckbox/components';
|
|
7
|
+
|
|
8
|
+
interface ParsedAssetMetadata {
|
|
9
|
+
/**
|
|
10
|
+
* Asset blurhash.
|
|
11
|
+
*/
|
|
12
|
+
blurHash?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Asset description.
|
|
15
|
+
*/
|
|
16
|
+
description: string;
|
|
17
|
+
/**
|
|
18
|
+
* Asset width in px.
|
|
19
|
+
*/
|
|
20
|
+
width?: number;
|
|
21
|
+
/**
|
|
22
|
+
* Asset height in px.
|
|
23
|
+
*/
|
|
24
|
+
height?: number;
|
|
25
|
+
/**
|
|
26
|
+
* Set of custom attributes.
|
|
27
|
+
*/
|
|
28
|
+
customAttributes?: Record<string, unknown>;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
interface ParsedAsset {
|
|
32
|
+
/**
|
|
33
|
+
* Asset id.
|
|
34
|
+
*/
|
|
35
|
+
id: string;
|
|
36
|
+
/**
|
|
37
|
+
* Asset name.
|
|
38
|
+
*/
|
|
39
|
+
name: string;
|
|
40
|
+
/**
|
|
41
|
+
* Asset file extension.
|
|
42
|
+
*/
|
|
43
|
+
extension: string;
|
|
44
|
+
/**
|
|
45
|
+
* Converted asset size.
|
|
46
|
+
*/
|
|
47
|
+
size?: number;
|
|
48
|
+
/**
|
|
49
|
+
* Asset upload date.
|
|
50
|
+
*/
|
|
51
|
+
uploadedAt?: string;
|
|
52
|
+
/**
|
|
53
|
+
* Asset metadata.
|
|
54
|
+
*/
|
|
55
|
+
metadata: ParsedAssetMetadata;
|
|
56
|
+
/**
|
|
57
|
+
* Asset category id.
|
|
58
|
+
*/
|
|
59
|
+
categoryId: string;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
interface AssetExtraProps {
|
|
63
|
+
/**
|
|
64
|
+
* API origin.
|
|
65
|
+
*/
|
|
66
|
+
origin: string;
|
|
67
|
+
/**
|
|
68
|
+
* Callback that returns URL to the resource.
|
|
69
|
+
*/
|
|
70
|
+
getUrl: (forceDownload?: boolean) => string;
|
|
71
|
+
/**
|
|
72
|
+
* Callback that returns URL to image of specified dimensions. Resource at URL is cached on CDN.
|
|
73
|
+
* Returns `false` if there is no image available for the asset.
|
|
74
|
+
*/
|
|
75
|
+
getResponsiveImageUrl: (width: number, heightOrFormat?: number | string, format?: string) => string | false;
|
|
76
|
+
}
|
|
77
|
+
interface Asset$1 extends AssetExtraProps {
|
|
78
|
+
data: ParsedAsset;
|
|
79
|
+
}
|
|
80
|
+
declare type AssetsConfigOnChooseEnhanced = (assets: Asset$1[]) => void;
|
|
81
|
+
interface AssetsConfig {
|
|
82
|
+
/**
|
|
83
|
+
* Callback invoked upon clicking on `Choose` button.
|
|
84
|
+
* List of currently selected assets is passed as an argument.
|
|
85
|
+
*/
|
|
86
|
+
onChoose?: AssetsConfigOnChooseEnhanced;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
declare type CategoriesConfig = {
|
|
90
|
+
/**
|
|
91
|
+
* Maps category names to custom icons.
|
|
92
|
+
*/
|
|
93
|
+
icons?: Record<string, IconRenderProp>;
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
interface LanguageConfig {
|
|
97
|
+
/**
|
|
98
|
+
* Turns on debugging mode for simplifying translation process (info logged to JS console).
|
|
99
|
+
*/
|
|
100
|
+
debug?: boolean;
|
|
101
|
+
/**
|
|
102
|
+
* Defines language code in case if an object is passed, e.g. 'en'.
|
|
103
|
+
*/
|
|
104
|
+
ui?: string;
|
|
105
|
+
}
|
|
106
|
+
declare type LanguageConfigProp = string | LanguageConfig;
|
|
107
|
+
|
|
108
|
+
interface DialogModeProps {
|
|
109
|
+
/**
|
|
110
|
+
* Initial dialog height.
|
|
111
|
+
*/
|
|
112
|
+
height?: string | number;
|
|
113
|
+
/**
|
|
114
|
+
* Toggles dialog.
|
|
115
|
+
*/
|
|
116
|
+
open: boolean;
|
|
117
|
+
/**
|
|
118
|
+
* Callback invoked upon clicking on close button.
|
|
119
|
+
*/
|
|
120
|
+
onClose?: () => void;
|
|
121
|
+
/**
|
|
122
|
+
* Initial dialog width.
|
|
123
|
+
*/
|
|
124
|
+
width?: string | number;
|
|
125
|
+
}
|
|
126
|
+
declare type DialogProps = boolean | DialogModeProps;
|
|
127
|
+
|
|
128
|
+
declare type Asset = Asset$1;
|
|
129
|
+
interface CoreContext {
|
|
130
|
+
/**
|
|
131
|
+
* Configures assets options.
|
|
132
|
+
*/
|
|
133
|
+
assets?: AssetsConfig;
|
|
134
|
+
/**
|
|
135
|
+
* Configures categories options.
|
|
136
|
+
*/
|
|
137
|
+
categories?: CategoriesConfig;
|
|
138
|
+
/**
|
|
139
|
+
* Dialog mode options.
|
|
140
|
+
*/
|
|
141
|
+
dialog?: DialogProps;
|
|
142
|
+
/**
|
|
143
|
+
* Unique ID used to distinguish various app instances.
|
|
144
|
+
* If not set, app instances will share common user preferences.
|
|
145
|
+
*/
|
|
146
|
+
id?: string;
|
|
147
|
+
/**
|
|
148
|
+
* Language options.
|
|
149
|
+
*/
|
|
150
|
+
language?: LanguageConfigProp;
|
|
151
|
+
/**
|
|
152
|
+
* Origin of the backend API service.
|
|
153
|
+
*/
|
|
154
|
+
serviceOrigin: string;
|
|
155
|
+
/**
|
|
156
|
+
* Theme to use.
|
|
157
|
+
*/
|
|
158
|
+
theme?: string;
|
|
159
|
+
/**
|
|
160
|
+
* Token endpoint URL.
|
|
161
|
+
*/
|
|
162
|
+
tokenUrl: string;
|
|
163
|
+
}
|
|
164
|
+
declare const CoreContext: React.Context<CoreContext>;
|
|
165
|
+
|
|
166
|
+
declare const Core: React.FC<Props>;
|
|
167
|
+
declare type Props = CoreContext;
|
|
168
|
+
|
|
169
|
+
export { Asset, Core as CKBox, Props };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*/
|
|
4
|
+
const _0x519ca6=_0x1c8d;(function(_0x4fdaec,_0x21d182){const _0x587c3a=_0x1c8d,_0x231aa1=_0x4fdaec();while(!![]){try{const _0x585fd1=-parseInt(_0x587c3a(0xcd))/0x1*(parseInt(_0x587c3a(0x20c))/0x2)+-parseInt(_0x587c3a(0x109))/0x3+parseInt(_0x587c3a(0x22e))/0x4+-parseInt(_0x587c3a(0x132))/0x5*(parseInt(_0x587c3a(0x2a6))/0x6)+parseInt(_0x587c3a(0xec))/0x7*(-parseInt(_0x587c3a(0xfc))/0x8)+parseInt(_0x587c3a(0x232))/0x9+parseInt(_0x587c3a(0x1c1))/0xa;if(_0x585fd1===_0x21d182)break;else _0x231aa1['push'](_0x231aa1['shift']());}catch(_0x39fa4f){_0x231aa1['push'](_0x231aa1['shift']());}}}(_0x1d8b,0x9b353),!(function(){const _0x250ff8=_0x1c8d,_0x2863f7='undefined'!=typeof globalThis?globalThis:global||self;_0x2863f7[_0x250ff8(0x1fe)]||(_0x2863f7['CKBOX_TRANSLATIONS']={}),_0x2863f7['CKBOX_TRANSLATIONS']['en']={'Settings':'Settings','Asset\x20categories':_0x250ff8(0xa0),'Images':_0x250ff8(0xd8),'Category\x20name':'Category\x20name','Add\x20category':'Add\x20category','Category\x20ID':_0x250ff8(0xf5),'Allowed\x20extensions':_0x250ff8(0xda),'Add\x20an\x20extension':'Add\x20an\x20extension','This\x20extension\x20is\x20in\x20use':_0x250ff8(0x243),'Removing\x20an\x20extension\x20in\x20use\x20will\x20result\x20in\x20the\x20permanent\x20removal\x20of\x20files\x20with\x20this\x20extension.':'Removing\x20an\x20extension\x20in\x20use\x20will\x20result\x20in\x20the\x20permanent\x20removal\x20of\x20files\x20with\x20this\x20extension.','Remove\x20extensions\x20in\x20use':_0x250ff8(0x139),'This\x20operation\x20will\x20permanently\x20delete\x20assets\x20from\x20the\x20%s\x20category.\x20Are\x20you\x20sure\x20you\x20want\x20to\x20do\x20that?':_0x250ff8(0x253),'Assets\x20with\x20the\x20following\x20extensions\x20will\x20be\x20removed:':_0x250ff8(0x255),'Remove\x20%s\x20extension':'Remove\x20%s\x20extension','Use\x20the\x20slider\x20to\x20define\x20the\x20quality\x20of\x20responsive\x20images':_0x250ff8(0x259),'Responsive\x20images\x20quality':_0x250ff8(0x15d),'Image\x20quality:':_0x250ff8(0x172),'Low':'Low','Medium':'Medium','Good':_0x250ff8(0x239),'High':_0x250ff8(0x291),'Best':_0x250ff8(0x160),'Please\x20type\x20the\x20category\x20name\x20to\x20continue:':_0x250ff8(0x1ef),'This\x20operation\x20will\x20permanently\x20delete\x20the\x20%s\x20category\x20with\x20all\x20the\x20assets\x20in\x20it.\x20Are\x20you\x20sure\x20you\x20want\x20to\x20do\x20that?':_0x250ff8(0x25e),'Category\x20name\x20is\x20required.':_0x250ff8(0x230),'Category\x20name\x20cannot\x20exceed\x20256\x20characters.':_0x250ff8(0x196),'At\x20least\x20one\x20extension\x20must\x20be\x20specified.':_0x250ff8(0x215),'Extension\x20cannot\x20contain\x20a\x20dot.':_0x250ff8(0xdc),'Number\x20of\x20extensions\x20cannot\x20exceed\x20100.':_0x250ff8(0x1bc),'Extension\x20must\x20not\x20exceed\x209\x20characters.':_0x250ff8(0xc3),'Category\x20name\x20must\x20be\x20unique.':_0x250ff8(0xc9),'Remove\x20category':_0x250ff8(0x134),'You\x20are\x20about\x20to\x20permanently\x20delete\x20your\x20files!':_0x250ff8(0x161),'Category\x20created\x20successfully.':_0x250ff8(0xe0),'Category\x20position\x20updated.':_0x250ff8(0x283),'Category\x20updated\x20successfully.':_0x250ff8(0x1ab),'Category\x20deleted\x20successfully.':_0x250ff8(0xb1),'Images\x20quality\x20updated\x20successfully.':_0x250ff8(0x186),'Cancel':_0x250ff8(0x1c0),'Save':_0x250ff8(0x15c),'Delete':'Delete','Edit':_0x250ff8(0x2a1),'Copy':_0x250ff8(0x1bf),'Close':_0x250ff8(0x254),'Copied!':_0x250ff8(0x1aa),'Recent':'Recent','Download':_0x250ff8(0x10b),'Rename':_0x250ff8(0x188),'Upload':_0x250ff8(0x165),'Properties':_0x250ff8(0x1b0),'Choose':_0x250ff8(0x24b),'%d\x20file\x20selected':_0x250ff8(0x20d),'%d\x20file\x20selected_plural':_0x250ff8(0x1eb),'%d\x20file\x20deleted\x20successfully.':_0x250ff8(0x164),'%d\x20file\x20deleted\x20successfully._plural':'%d\x20files\x20deleted\x20successfully.','File\x20updated\x20successfully.':_0x250ff8(0x298),'File\x20name':_0x250ff8(0x11b),'Description':_0x250ff8(0x153),'Upload\x20date':_0x250ff8(0x167),'uploadedAt':_0x250ff8(0x167),'File\x20size':_0x250ff8(0xbe),'size':_0x250ff8(0x21c),'Width':_0x250ff8(0x290),'Height':'Height','URL':_0x250ff8(0x1fa),'of\x20%d':_0x250ff8(0xd3),'Enter\x20page\x20number':_0x250ff8(0x271),'Navigation':_0x250ff8(0x1ee),'There\x20are\x20no\x20assets\x20in\x20this\x20category':_0x250ff8(0x16e),'Description\x20cannot\x20exceed\x201024\x20characters.':_0x250ff8(0x28a),'File\x20name\x20is\x20required.':_0x250ff8(0x280),'File\x20extension\x20is\x20required.':_0x250ff8(0x2a0),'File\x20extension\x20is\x20not\x20allowed.':_0x250ff8(0x17a),'Remove\x20assets':_0x250ff8(0x294),'Are\x20you\x20sure\x20you\x20want\x20to\x20delete\x20%s\x20file?':_0x250ff8(0x105),'Are\x20you\x20sure\x20you\x20want\x20to\x20delete\x20%s\x20file?_plural':_0x250ff8(0xd7),'Resize\x20window':'Resize\x20window','Display\x20options':'Display\x20options','Assets':_0x250ff8(0x1c5),'Thumbnails':_0x250ff8(0x11d),'Size':_0x250ff8(0x21c),'Keep\x20aspect\x20ratio':_0x250ff8(0x1a5),'Display':'Display','Sort\x20by':_0x250ff8(0x181),'Order':'Order','Ascending':_0x250ff8(0xb3),'Descending':_0x250ff8(0x1b3),'name':_0x250ff8(0x1ea),'lastModifiedAt':_0x250ff8(0x1d1),'Pending':_0x250ff8(0x26a),'Aborted':_0x250ff8(0x1d2),'%s\x20left':_0x250ff8(0xeb),'More\x20than\x201\x20day\x20left':_0x250ff8(0x1cb),'%s\x20of\x20%s':_0x250ff8(0x15f),'File\x20extension\x20is\x20not\x20allowed\x20in\x20%s\x20category':'File\x20extension\x20is\x20not\x20allowed\x20in\x20<strong>%s</strong>\x20category','Maximum\x20file\x20size\x20allowed\x20is\x20%s':_0x250ff8(0xed),'Maximum\x20image\x20resolution\x20allowed\x20is\x20%s':_0x250ff8(0x276),'Storage\x20quota\x20exceeded':_0x250ff8(0x1ac),'An\x20error\x20has\x20occurred':_0x250ff8(0x162),'%d\x20error':_0x250ff8(0xc4),'%d\x20error_plural':_0x250ff8(0x151),'%d\x20of\x20%d\x20file\x20uploaded':'<strong>%d</strong>\x20of\x20<strong>%d</strong>\x20file\x20uploaded','%d\x20of\x20%d\x20file\x20uploaded_plural':'<strong>%d</strong>\x20of\x20<strong>%d</strong>\x20files\x20uploaded','Upload\x20aborted':'Upload\x20aborted','Upload\x20finished':_0x250ff8(0x193),'Abort\x20upload':'Abort\x20upload','Close\x20upload\x20dialog':'Close\x20upload\x20dialog','Open\x20upload\x20dialog':_0x250ff8(0x1a3),'Open\x20details':'Open\x20details','Close\x20details':_0x250ff8(0x22a),'Internal\x20server\x20error.':_0x250ff8(0x27a),'Unauthorized\x20operation.':_0x250ff8(0x210),'Category\x20not\x20found.':_0x250ff8(0x1a8),'An\x20unexpected\x20application\x20error\x20has\x20occurred.':_0x250ff8(0x1d5),'Unexpected\x20error.':_0x250ff8(0xf8),'Asset\x20not\x20found.':_0x250ff8(0x166),'Unknown\x20error.':_0x250ff8(0xe5),'Validation\x20failed.':_0x250ff8(0x14b),'Resource\x20not\x20found.':_0x250ff8(0x23a),'%d\x20h':_0x250ff8(0x1b6),'%d\x20h_plural':_0x250ff8(0xb5),'%d\x20min':_0x250ff8(0x274),'%d\x20min_plural':_0x250ff8(0x28e),'%d\x20s':_0x250ff8(0xc6),'%d\x20s_plural':_0x250ff8(0x12a)};}()));import*as _0x366a17 from'react';import _0x2f0597 from'react';import{__rest}from'tslib';import{hasOwnProperty,noOp,useIsMounted,useBatchUpdate,useResettableTimeout,UIProvider as _0x38c812,useDeferredUnmount,useDelay,Gallery,GalleryItem,ResponsiveImage,DocIcon,GalleryFigure,SelectionArea,validators,Dialog,DialogHeader,DialogRow,DialogColumn,DialogSection,Form,FormGroup,FormInputLabel,Input,FormFeedback,CopyableInput,PropertiesTable,PropertiesTableRow,DialogActions,Button,usePagination,Bottombar,Pagination,Fixed,Menu,MenuSection,MenuSubSection,SortButton,RangeSlider,SwitchInput,MenuItem,CircularLoader,Topbar,TopbarAction,useUIContext,useDownload,View,NotificationDetails,Notifications as _0x44cb99,Notification,formatTimeDistance,FileInputButton,DialogFooter,ProgressPanel,useFilesDrop,EmptyView,PanelActions,Panel,PanelTitle,PanelContent,PanelContentProp,PanelSkeleton,PanelList,useListDnd,PanelDragHandle,TagList,Tag,TagInput,SortableDndList,SortableDndListItem,Tabs,Tab,Navbar,NavbarItem,ViewWrapper,Switch,SwitchView}from'@ckbox/components';import{getTranslations,I18nProvider,useTranslation}from'@ckbox/i18n';import{QueryClient,QueryClientProvider,useQueryClient,useQuery as _0x4ae339,useMutation as _0x2b3e8b}from'react-query';import{ReactQueryDevtools}from'react-query/devtools';import{nanoid}from'nanoid';import{useForm,Controller}from'react-hook-form';import _0x1b080c from'lodash/throttle';const CoreContext=_0x366a17['createContext']({'serviceOrigin':'','tokenUrl':''}),useCoreContext=()=>_0x366a17[_0x519ca6(0x103)](CoreContext),ApiContext=_0x366a17['createContext']({'api':undefined}),useApi=()=>{const _0x34d3c9=_0x519ca6,_0x4c98d8=_0x366a17[_0x34d3c9(0x103)](ApiContext),_0x14621c=_0x4c98d8[_0x34d3c9(0x12c)];if(!_0x14621c)throw new Error(_0x34d3c9(0x1f9));return Object[_0x34d3c9(0x224)](Object[_0x34d3c9(0x224)]({},_0x4c98d8),{'api':_0x14621c});},getAssetDimensions=(_0x142efe,_0x11a530,_0x14a6e4)=>{const _0x684e4d=_0x519ca6;if(_0x11a530&&typeof _0x11a530===_0x684e4d(0x207))return _0x142efe+'x'+_0x11a530+(_0x14a6e4?'.'+_0x14a6e4:'');if(!_0x11a530&&_0x14a6e4)return _0x142efe+'.'+_0x14a6e4;if(_0x11a530&&typeof _0x11a530==='string')return _0x142efe+'.'+_0x11a530;return''+_0x142efe;},createApiAssets=_0x3d36be=>{return{'deleteAssets':_0x10d132=>{const _0x5f4c00=_0x1c8d;return _0x3d36be[_0x5f4c00(0x1d0)](_0x5f4c00(0x244),_0x10d132);},'getCategoryAssets':_0x2a1714=>{const _0x2aeda3=_0x1c8d;return _0x3d36be[_0x2aeda3(0x10a)](_0x2aeda3(0x17e),_0x2a1714);},'getRecentAssets':_0xa2d245=>{const _0xf4be14=_0x1c8d;return _0x3d36be[_0xf4be14(0x10a)](_0xf4be14(0xc7),_0xa2d245);},'updateAsset':(_0x1a0cd3,_0x1bf255)=>{const _0x572d4f=_0x1c8d;return _0x3d36be[_0x572d4f(0x236)]('/assets/'+_0x1a0cd3,_0x1bf255);},'uploadAsset':()=>{return _0x3d36be['createUploadRequest']('/assets');},'getAssetUrl':(_0x1eb469,_0x270011=![])=>{const _0x3c6607=_0x1c8d;return _0x3d36be[_0x3c6607(0x249)](_0x3c6607(0xb2)+_0x1eb469+'/file'+(_0x270011?'?download=true':''));},'getAsset':_0x39834d=>{const _0x4475de=_0x1c8d;return _0x3d36be[_0x4475de(0x10a)](_0x4475de(0xb2)+_0x39834d);},'updateAssetLastUse':_0x162899=>{const _0x4e9110=_0x1c8d;return _0x3d36be[_0x4e9110(0x1a9)](_0x4e9110(0xc7),_0x162899);},'getAssetThumbUrl':(_0x54f0a7,_0x199650,_0x432f33,_0x56ab42)=>{const _0x2cfe73=_0x1c8d;return _0x3d36be['getUrl'](_0x2cfe73(0xb2)+_0x54f0a7+_0x2cfe73(0x114)+getAssetDimensions(_0x199650,_0x432f33,_0x56ab42));},'getAssetResponsiveImageUrl':(_0x26b15c,_0x19b39d,_0x14d266,_0x273c1a)=>{const _0x3ccc63=_0x1c8d;return _0x3d36be[_0x3ccc63(0x249)](_0x3ccc63(0xb2)+_0x26b15c+_0x3ccc63(0x286)+getAssetDimensions(_0x19b39d,_0x14d266,_0x273c1a));}};},createApiCategories=_0x207891=>{return{'createCategory':_0x26a3eb=>{const _0x1cc550=_0x1c8d;return _0x207891[_0x1cc550(0x1d0)]('/admin/categories',_0x26a3eb);},'deleteCategory':_0x418b10=>{const _0x2b3b22=_0x1c8d;return _0x207891[_0x2b3b22(0x247)](_0x2b3b22(0x1c8)+_0x418b10);},'getAdminCategories':(_0x1f3409={'limit':0x1f4})=>{const _0x4ce90e=_0x1c8d;return _0x207891[_0x4ce90e(0x10a)](_0x4ce90e(0x1e2),_0x1f3409);},'getCategories':(_0x9cec4b={'limit':0x1f4})=>{const _0x27ac2e=_0x1c8d;return _0x207891['get'](_0x27ac2e(0x1a7),_0x9cec4b);},'getCategory':_0x241c8f=>{const _0x282281=_0x1c8d;return _0x207891[_0x282281(0x10a)](_0x282281(0x176)+_0x241c8f);},'updateCategory':(_0x5c0976,_0x34396a)=>{const _0x338027=_0x1c8d;return _0x207891[_0x338027(0x1a9)](_0x338027(0x1c8)+_0x5c0976,_0x34396a);},'updateCategoriesOrder':_0x265ab3=>{const _0x2e908c=_0x1c8d;return _0x207891[_0x2e908c(0x1a9)](_0x2e908c(0xe9),_0x265ab3);}};},createApiImages=_0x15987e=>{return{'getImagesConfig':()=>{const _0x221348=_0x1c8d;return _0x15987e[_0x221348(0x10a)](_0x221348(0x118));},'updateImageFormatConfig':(_0x469fe6,_0x313406)=>{const _0xe8c967=_0x1c8d;return _0x15987e[_0xe8c967(0x1a9)](_0xe8c967(0x175)+_0x469fe6,_0x313406);}};},createApi=_0xbf4537=>({'assets':createApiAssets(_0xbf4537),'categories':createApiCategories(_0xbf4537),'images':createApiImages(_0xbf4537),'config':_0xbf4537[_0x519ca6(0x11e)]}),stringifySearchParams=_0x228af9=>{const _0x4a082a=_0x519ca6,_0x50467c=Object[_0x4a082a(0xde)](_0x228af9)['reduce']((_0x32a8bf,[_0x53309e,_0x93bcda])=>{return _0x93bcda!==undefined&&(_0x32a8bf[_0x53309e]=String(_0x93bcda)),_0x32a8bf;},{});return new URLSearchParams(_0x50467c)[_0x4a082a(0x1b9)]();};var HTTPStatusCode;(function(_0x5e46c9){const _0x3d4ebc=_0x519ca6;_0x5e46c9[_0x5e46c9['OK']=0xc8]='OK',_0x5e46c9[_0x5e46c9['BAD_REQUEST']=0x190]='BAD_REQUEST',_0x5e46c9[_0x5e46c9[_0x3d4ebc(0x1e7)]=0x191]=_0x3d4ebc(0x1e7),_0x5e46c9[_0x5e46c9[_0x3d4ebc(0x178)]=0x193]=_0x3d4ebc(0x178),_0x5e46c9[_0x5e46c9[_0x3d4ebc(0xae)]=0x194]=_0x3d4ebc(0xae),_0x5e46c9[_0x5e46c9[_0x3d4ebc(0xb0)]=0x1f4]=_0x3d4ebc(0xb0),_0x5e46c9[_0x5e46c9['GATEWAY_TIMEOUT']=0x1f8]='GATEWAY_TIMEOUT';}(HTTPStatusCode||(HTTPStatusCode={})));class ApiClientError extends Error{constructor(_0x25de3f,_0x2b7b69){const _0x3d347c=_0x519ca6;super(),this[_0x3d347c(0x197)]=_0x25de3f,this[_0x3d347c(0x22b)]=_0x2b7b69;}[_0x519ca6(0x240)](){const _0x4bc365=_0x519ca6;return this[_0x4bc365(0x197)]===HTTPStatusCode['BAD_REQUEST'];}['isUnauthorizedError'](){const _0x2e0518=_0x519ca6;return this['statusCode']===HTTPStatusCode['UNAUTHORIZED']||this['statusCode']===HTTPStatusCode[_0x2e0518(0x178)];}[_0x519ca6(0x108)](){const _0x3aad4f=_0x519ca6;return this[_0x3aad4f(0x197)]===HTTPStatusCode[_0x3aad4f(0xae)];}[_0x519ca6(0xbc)](){const _0x1e113c=_0x519ca6;return this[_0x1e113c(0x197)]===HTTPStatusCode[_0x1e113c(0xb0)]||this[_0x1e113c(0x197)]===HTTPStatusCode[_0x1e113c(0xc8)];}['isUnknownError'](){const _0x2d133c=_0x519ca6;return!this[_0x2d133c(0x240)]()&&!this['isUnauthorizedError']()&&!this[_0x2d133c(0x108)]()&&!this[_0x2d133c(0xbc)]();}}const defaultConfig$1={'origin':''};class ApiClient{constructor(_0xa050,_0x21e5b6){const _0x3a0307=_0x519ca6;this['config']=Object[_0x3a0307(0x224)](Object['assign']({},defaultConfig$1),_0xa050),this[_0x3a0307(0x272)]=_0x21e5b6;}async[_0x519ca6(0x14d)](){const _0x128d22=_0x519ca6,_0x575c05=await this['_authClient'][_0x128d22(0x282)]();return _0x575c05!==null&&_0x575c05!==void 0x0?_0x575c05:'';}async[_0x519ca6(0x2a4)](_0x4582f4,{body:_0x4d9599,method:_0x418537,params:_0x53608f}){const _0x40f62e=_0x519ca6,_0x17fb15=await this[_0x40f62e(0x14d)](),_0x3ecba7=await fetch(this[_0x40f62e(0x249)](_0x4582f4,_0x53608f),{'body':_0x4d9599,'method':_0x418537,'headers':new Headers({'Authorization':_0x17fb15})});if(!_0x3ecba7['ok']){let _0x2135d8;try{_0x2135d8=await _0x3ecba7[_0x40f62e(0x285)]();}catch(_0x3f02b5){console[_0x40f62e(0x9c)](_0x3f02b5);}throw new ApiClientError(_0x3ecba7[_0x40f62e(0x192)],_0x2135d8);}if(_0x3ecba7[_0x40f62e(0x192)]===0xcc)return;const _0x57498b=await _0x3ecba7[_0x40f62e(0x285)]();return _0x57498b;}[_0x519ca6(0x10a)](_0x571a6f,_0x38cc55){const _0x366d3b=_0x519ca6;return this[_0x366d3b(0x2a4)](_0x571a6f,{'method':_0x366d3b(0xf3),'params':_0x38cc55});}[_0x519ca6(0x1d0)](_0x41af1a,_0x44895d){const _0x46e1ac=_0x519ca6;return this[_0x46e1ac(0x2a4)](_0x41af1a,{'method':_0x46e1ac(0x18a),'body':JSON[_0x46e1ac(0x252)](_0x44895d)});}[_0x519ca6(0x11f)](_0x4a7a72){const _0x173b71=new XMLHttpRequest(),_0x6a5729=async(_0x362a02,_0x49fd08)=>{const _0x216b62=_0x1c8d,_0x43ec35=await this[_0x216b62(0x14d)](),_0x3932fa=new FormData();return Object[_0x216b62(0xde)](_0x362a02)['forEach'](([_0x42a38a,_0x1fba42])=>_0x3932fa[_0x216b62(0x26d)](_0x42a38a,_0x1fba42)),_0x173b71[_0x216b62(0x112)]&&_0x49fd08&&_0x173b71['upload'][_0x216b62(0x19c)](_0x216b62(0x23d),_0x19cc28=>{const {loaded:_0x56759c,total:_0x35c785}=_0x19cc28;_0x49fd08(_0x56759c,_0x35c785);}),new Promise((_0x425b77,_0x5f3cd5)=>{const _0xf80a41=_0x216b62;_0x173b71[_0xf80a41(0x19c)](_0xf80a41(0xf6),()=>{const _0x3cafe8=_0xf80a41,_0x467d1f=JSON[_0x3cafe8(0x168)](_0x173b71[_0x3cafe8(0x22b)]);_0x425b77(_0x467d1f);}),_0x173b71[_0xf80a41(0x19c)](_0xf80a41(0x9c),_0x5f3cd5),_0x173b71[_0xf80a41(0x19c)](_0xf80a41(0x22d),_0x5f3cd5),_0x173b71[_0xf80a41(0x258)]('POST',this['getUrl'](_0x4a7a72)),_0x173b71[_0xf80a41(0xb6)]('Authorization',_0x43ec35),_0x173b71[_0xf80a41(0xfb)](_0x3932fa);});},_0x2ff739=()=>{const _0x503a04=_0x1c8d;_0x173b71[_0x503a04(0x22d)]();};return{'start':_0x6a5729,'abort':_0x2ff739};}[_0x519ca6(0x236)](_0x141377,_0x17b2d3){const _0x4e3ab1=_0x519ca6;return this[_0x4e3ab1(0x2a4)](_0x141377,{'method':_0x4e3ab1(0x273),'body':JSON[_0x4e3ab1(0x252)](_0x17b2d3)});}[_0x519ca6(0x1a9)](_0x3953fb,_0x5a06ea){const _0x5c64bc=_0x519ca6,_0xa35455={'method':_0x5c64bc(0x14e)};return _0x5a06ea&&(_0xa35455[_0x5c64bc(0x213)]=JSON[_0x5c64bc(0x252)](_0x5a06ea)),this[_0x5c64bc(0x2a4)](_0x3953fb,_0xa35455);}['delete'](_0x298b9f){const _0x161cbd=_0x519ca6;return this[_0x161cbd(0x2a4)](_0x298b9f,{'method':_0x161cbd(0x1d3)});}['getUrl'](_0x281e50,_0x3a8366){const _0x1b31c6=_0x519ca6,_0x215ed3=''+this[_0x1b31c6(0x11e)][_0x1b31c6(0xf2)]+_0x281e50;if(_0x3a8366)return _0x215ed3+'?'+stringifySearchParams(_0x3a8366);return _0x215ed3;}}var ApiSortingOrder;(function(_0x4211c6){const _0x3abcfa=_0x519ca6;_0x4211c6['ASCENDING']='asc',_0x4211c6['DESCENDING']=_0x3abcfa(0x1a1);}(ApiSortingOrder||(ApiSortingOrder={})));class ApiErrorHandler{constructor(){const _0x37633f=_0x519ca6;this[_0x37633f(0x1f7)]=new Map();}['next'](..._0x2ce992){const _0x3ee5e0=_0x519ca6;for(const _0x49edc7 of _0x2ce992){this[_0x3ee5e0(0x135)](_0x49edc7);}}[_0x519ca6(0x24e)](_0x26bdd3){const _0x15f37e=_0x519ca6;if(_0x26bdd3 instanceof ApiClientError)for(const _0x1bfa4a of this[_0x15f37e(0x1f7)][_0x15f37e(0x133)]()){_0x1bfa4a['handle'](_0x26bdd3);}}[_0x519ca6(0x135)](_0x17f24d){const _0x2fa4ed=_0x519ca6;this['_handlers']['set'](_0x17f24d['constructor'][_0x2fa4ed(0x28d)],_0x17f24d);}}class ValidationErrorHandler{constructor(_0x34d37e){const _0x1bd562=_0x519ca6;this[_0x1bd562(0xa6)]=_0x34d37e;}[_0x519ca6(0x24e)](_0x25a41d){const _0x27437b=_0x519ca6;_0x25a41d[_0x27437b(0x240)]()&&this[_0x27437b(0xa6)](_0x25a41d);}}class UnauthorizedErrorHandler{constructor(_0xb8be10){const _0x24f75d=_0x519ca6;this[_0x24f75d(0xa6)]=_0xb8be10;}[_0x519ca6(0x24e)](_0x545ce9){const _0x24d4a4=_0x519ca6;_0x545ce9[_0x24d4a4(0x2a3)]()&&this[_0x24d4a4(0xa6)](_0x545ce9);}}function _0x1d8b(){const _0x1c6a1b=['toString','updateAsset','find','Number\x20of\x20extensions\x20cannot\x20exceed\x20100.','recent','next','Copy','Cancel','26952570JfBnYM','OPEN_DIALOG','outline','boolean','Assets','CHANGE_SORT_BY','errors','/admin/categories/','tokenPayload','useEffect','More\x20than\x201\x20day\x20left','bottom-end','focus','TOGGLE_SIDEBAR','ref','post','Modification\x20date','Aborted','DELETE','Are\x20you\x20sure\x20you\x20want\x20to\x20delete\x20%s\x20file?','An\x20unexpected\x20application\x20error\x20has\x20occurred.','totalSize','File\x20extension\x20is\x20not\x20allowed\x20in\x20%s\x20category','endsWith','sqrt','blurHash','isArray','assetsPerPage','base','QUEUE_UPLOAD','chunksRecordedCount','getCategoryAssets','toFixed','/admin/categories','RIGHT','REJECTED','Txt','isDialogOpen','UNAUTHORIZED','forEach','OPEN_INDICATOR','Name','<strong>%d\x20files</strong>\x20selected','uploadBatch','max','Navigation','Please\x20type\x20the\x20category\x20name\x20to\x20continue:','fileName-','danger','forwardRef','jpeg','componentDidCatch','selectedAssets','DISABLE_ABORT','_handlers','CHANGE_VIEW','Initialize\x20`api`\x20in\x20order\x20to\x20use\x20`useApi`\x20hook','URL','onUploadConcluded','deleteAssets','TOGGLE_COVER_MODE','CKBOX_TRANSLATIONS','Category\x20name\x20must\x20be\x20unique.','loading-fallback','Add\x20an\x20extension','%d\x20of\x20%d\x20file\x20uploaded','ChevronDown','DESELECT_ALL','setQueryData','traceId','number','dialogDimensions','Trash','render','reset','2WhnopI','<strong>%d\x20file</strong>\x20selected','stage','files','Unauthorized\x20operation.','filter','getQueryData','body','LEFT','At\x20least\x20one\x20extension\x20must\x20be\x20specified.','pow','bottom','extensionsInUse','selectionHistory','refresh','ArrowUp','Size','preventDefault','keydown','%d\x20s','REJECT_UPLOAD','assets','category','onError','assign','concat','concluded','offsetTop','ABORTED','smooth','Close\x20details','response','maxLength','abort','371304jxmMnN','gif','Category\x20name\x20is\x20required.','function','7049583eubTpL','text','categories','_authConfig','patch','getBoundingClientRect','File\x20extension\x20is\x20not\x20allowed.','Good','Resource\x20not\x20found.','progressBatchInterval','_isReady','progress','children','CLEANUP_SELECTION','isValidationError','customAttributes','autoScroll','This\x20extension\x20is\x20in\x20use','/assets/delete','message','lastIndexOf','delete','authClient','getUrl','currentTarget','Choose','top','getAssetUrl','handle','IN_PROGRESS','lastSelectedRange','ArrowDown','stringify','This\x20operation\x20will\x20permanently\x20delete\x20assets\x20from\x20the\x20<strong>%s</strong>\x20category.\x20Are\x20you\x20sure\x20you\x20want\x20to\x20do\x20that?','Close','Assets\x20with\x20the\x20following\x20extensions\x20will\x20be\x20removed:','extension','items','open','Use\x20the\x20slider\x20to\x20define\x20the\x20quality\x20of\x20responsive\x20images','from','fill','div','getAsset','This\x20operation\x20will\x20permanently\x20delete\x20the\x20<strong>%s</strong>\x20category\x20with\x20all\x20the\x20assets\x20in\x20it.\x20Are\x20you\x20sure\x20you\x20want\x20to\x20do\x20that?','focusFileName','Excel','DISABLE_AUTO_FEATURES','map','uploadedAt','getItem','abortable','Unexpected\x20error','uploadSpeeds','uploaded','current','Pending','toLocaleDateString','0\x20B','append','keys','string','PLAN_EXCEEDED_MEGAPIXELS_KEY','Enter\x20page\x20number','_authClient','PATCH','%d\x20min','%d\x20error','Maximum\x20image\x20resolution\x20allowed\x20is\x20%s','getAdminCategories','Word','Docs','Internal\x20server\x20error.','endId','Resize\x20window','Clock','categoryName','invalidateQueries','File\x20name\x20is\x20required.','range','tokenValue','Category\x20position\x20updated.','left','json','/images/','form-','ERROR','_token','Description\x20cannot\x20exceed\x201024\x20characters.','debug','now','name','%d\x20mins','easydrive','Width','High','category-name','page','Remove\x20assets','nonDotValue','navbarWidth','toLowerCase','File\x20updated\x20successfully.','Archive','Music','Cog','reverse','CHANGE_THUMB_SIZE','memo','CHANGE_SIDEBAR_WIDTH','File\x20extension\x20is\x20required.','Edit','COMPLETE_UPLOAD','isUnauthorizedError','fetch','fetchToken','5824662stdHzR','image/webp','PENDING','isAllowed','min','error','navbarCollapsed','createContext','-edit-confirm','Asset\x20categories','value','CLOSE_DIALOG','CKBOX','SELECT_RANGE','_tokenTimeout','_handler','250','useCallback','%d\x20file\x20selected','-delete-confirm','Delete','Plus','defaultQuality','NOT_FOUND','ASCENDING','INTERNAL_SERVER_ERROR','Category\x20deleted\x20successfully.','/assets/','Ascending','Medium','%d\x20hs','setRequestHeader','PLAN_EXCEEDED_RESOLUTION','push','add','getRecentAssets','isIndicatorOpen','isServerError','missing-assets','File\x20size','auth','extensions','description-','Folder','Extension\x20must\x20not\x20exceed\x209\x20characters.','<strong>%d</strong>\x20error','80%','%d\x20sec','/assets/recent','GATEWAY_TIMEOUT','Category\x20with\x20this\x20name\x20already\x20exists.','lastModifiedAt','Ppt','createElement','629479kJgXar','call','ArrowLeft','length','PLAN_EXCEEDED_SIZE_KEY','RESET_UPLOAD_COMPONENTS','of\x20%d','Fragment','CHANGE_VIEW_PAGE','Movie','Are\x20you\x20sure\x20you\x20want\x20to\x20delete\x20%s\x20files?','Images','Component','Allowed\x20extensions','right','Extension\x20cannot\x20contain\x20a\x20dot.','currentView','entries','newlyAdded','Category\x20created\x20successfully.','DESCENDING','sizeLimit','useMemo','split','Unknown\x20error.','numeric','ceil','bmp','/admin/categories/order','CKBoxDefault','%s\x20left','7ueplUi','Maximum\x20file\x20size\x20allowed\x20is\x20%s','CLEAR_QUEUE','code','Initialize\x20`AuthClient`\x20in\x20order\x20to\x20use\x20`useAuth`\x20hook','TOGGLE_DIALOG','origin','GET','PLAN_EXCEEDED_SIZE','Category\x20ID','load','disableAutoHide','Unexpected\x20error.','description','sortBy','send','3094136QGapwj','displayName','Close\x20upload\x20dialog','scrollTop','props','Removing\x20an\x20extension\x20in\x20use\x20will\x20result\x20in\x20the\x20permanent\x20removal\x20of\x20files\x20with\x20this\x20extension.','updateCategory','useContext','messages','Are\x20you\x20sure\x20you\x20want\x20to\x20delete\x20<strong>%s</strong>\x20file?','\x20px','payload','isMissingResourceError','2845848vEsTFE','get','Download','Empty','RANGE_END','mutateAsync','url-','images','onChoose','upload','START_UPLOAD','/thumbs/','success','lang','nonEmpty','/admin/images','autoHide','sortOrder','File\x20name','currentPages','Thumbnails','config','createUploadRequest','nonEmptyArray','Provider','behavior','COMPLETED','This\x20operation\x20will\x20permanently\x20delete\x20the\x20%s\x20category\x20with\x20all\x20the\x20assets\x20in\x20it.\x20Are\x20you\x20sure\x20you\x20want\x20to\x20do\x20that?','queue','tiff','Check','category-name-','allowCover','%d\x20secs','some','api','chunksRecordingStartedAt','updateImageFormatConfig','getCategories','center','stopPropagation','5jVqFDu','values','Remove\x20category','_set','Order','Pdf','Settings','Remove\x20extensions\x20in\x20use','useRef','totalAbortedUploaded','round','Open\x20details','webp','SELECT_SINGLE','includes','action','type','every','Trace\x20ID:\x20','removeEventListener','categoryPanel','EXTENSION_NOT_ALLOWED','CHANGE_ASSETS_PER_PAGE','categoryId','admin','Validation\x20failed.','edit','getToken','PUT','sort','UPDATE_PROGRESS','<strong>%d</strong>\x20errors','uploadAsset','Description','getDerivedStateFromError','SELECT_MULTIPLE','Height','useReducer','resources','Add\x20category','Recent','setItem','Save','Responsive\x20images\x20quality','Display','%s\x20of\x20%s','Best','You\x20are\x20about\x20to\x20permanently\x20delete\x20your\x20files!','An\x20error\x20has\x20occurred','totalCount','%d\x20file\x20deleted\x20successfully.','Upload','Asset\x20not\x20found.','Upload\x20date','parse','height','keep-aspect-ratio','thumbSize','state','default','There\x20are\x20no\x20assets\x20in\x20this\x20category','data','setItems','DISABLE_AUTO_HIDE','Image\x20quality:','EXTEND_OR_DESELECT','scrollIntoView','/admin/images/','/categories/','deleteCategory','FORBIDDEN','substr','File\x20extension\x20is\x20not\x20allowed\x20in\x20current\x20category.','row','INIT_VIEW','unique','/assets','slice','useState','Sort\x20by','ADMIN','DOWN','TOGGLE_SORT_ORDER','msg','Images\x20quality\x20updated\x20successfully.','submit','Rename','cleanup','POST','Enter','role','onDialogDimensionsChange','Img','reduce','ENABLE_AUTO_HIDE','RECENT','status','Upload\x20finished','getAssetThumbUrl','size','Category\x20name\x20cannot\x20exceed\x20256\x20characters.','statusCode','Pencil','span','Info','getAssetResponsiveImageUrl','addEventListener','CHANGE_DIALOG_DIMENSIONS','title','category-','jpg','desc','BASIC','Open\x20upload\x20dialog','Image','Keep\x20aspect\x20ratio','100','/categories','Category\x20not\x20found.','put','Copied!','Category\x20updated\x20successfully.','Storage\x20quota\x20exceeded','png','uploadFile','assetsCount','Properties','Cabinet','findIndex','Descending','cacheInvalidationInterval','[data-gallery-item]','%d\x20h','Upload\x20aborted','log'];_0x1d8b=function(){return _0x1c6a1b;};return _0x1d8b();}class MissingResourceErrorHandler{constructor(_0x37a261){const _0x3db3bf=_0x519ca6;this[_0x3db3bf(0xa6)]=_0x37a261;}['handle'](_0x27ea3f){const _0x2f2aec=_0x519ca6;_0x27ea3f[_0x2f2aec(0x108)]()&&this[_0x2f2aec(0xa6)](_0x27ea3f);}}class ServerErrorHandler{constructor(_0x4bc9b3){const _0x202577=_0x519ca6;this[_0x202577(0xa6)]=_0x4bc9b3;}[_0x519ca6(0x24e)](_0xa2f0b5){const _0xdc52d8=_0x519ca6;_0xa2f0b5['isServerError']()&&this[_0xdc52d8(0xa6)](_0xa2f0b5);}}class UnknownErrorHandler{constructor(_0x1452e9){this['_handler']=_0x1452e9;}['handle'](_0x215090){_0x215090['isUnknownError']()&&this['_handler'](_0x215090);}}const DEFAULT_TOKEN_REFRESH_TIMEOUT_TIME=0x1b7740,getTokenPayload=_0x368a4b=>{const _0x50c2fb=_0x519ca6,[,_0x2f4868]=_0x368a4b[_0x50c2fb(0xe4)]('.');return JSON['parse'](atob(_0x2f4868));},getTokenTimeoutTime=_0x33f7e3=>{if(!_0x33f7e3)return DEFAULT_TOKEN_REFRESH_TIMEOUT_TIME;return getTokenPayload(_0x33f7e3),DEFAULT_TOKEN_REFRESH_TIMEOUT_TIME;},defaultConfig={'tokenUrl':''};class AuthClient{constructor(_0x8ff5af){const _0xdff384=_0x519ca6;this[_0xdff384(0x23c)]=![],this[_0xdff384(0x235)]=Object[_0xdff384(0x224)](Object[_0xdff384(0x224)]({},defaultConfig),_0x8ff5af);}async['fetchToken'](){const _0x5c7c32=_0x519ca6,_0xd99194=await fetch(this[_0x5c7c32(0x235)]['tokenUrl']);return _0xd99194[_0x5c7c32(0x233)]();}async[_0x519ca6(0x21a)](){const _0x339142=_0x519ca6;this[_0x339142(0x289)]=await this[_0x339142(0x2a5)](),this[_0x339142(0xa5)]=setTimeout(()=>this['refresh'](),getTokenTimeoutTime());}async['tokenValue'](){const _0x30ac6f=_0x519ca6;return!this[_0x30ac6f(0x23c)]&&(this['_tokenPromise']=this[_0x30ac6f(0x21a)](),this[_0x30ac6f(0x23c)]=!![]),await this['_tokenPromise'],this['_token'];}async[_0x519ca6(0x1c9)](){const _0xb51907=_0x519ca6,_0x5e86d9=await this[_0xb51907(0x282)]();if(_0x5e86d9)return getTokenPayload(_0x5e86d9);}[_0x519ca6(0x189)](){const _0x2cdd1f=_0x519ca6;clearTimeout(this[_0x2cdd1f(0xa5)]);}}const AuthContext=_0x366a17[_0x519ca6(0x9e)]({'authClient':undefined,'tokenPayload':undefined}),useAuth=()=>{const _0x1c06b0=_0x519ca6,_0x1fb080=_0x366a17['useContext'](AuthContext),_0x8e58c1=_0x1fb080[_0x1c06b0(0x248)];if(!_0x8e58c1)throw new Error(_0x1c06b0(0xf0));return Object[_0x1c06b0(0x224)](Object['assign']({},_0x1fb080),{'authClient':_0x8e58c1});},AuthProvider=({auth:_0x36ff90,children:_0x5ad620})=>{const _0x5188b6=_0x519ca6,_0xa2aa1f=_0x366a17['useRef'](![]),_0x55959c=_0x366a17[_0x5188b6(0x13a)](new AuthClient(_0x36ff90)),[_0x4cf19c,_0x168f0c]=_0x366a17[_0x5188b6(0x180)]();return _0x366a17[_0x5188b6(0x1ca)](()=>{const _0x1c1e32=_0x5188b6;return _0xa2aa1f[_0x1c1e32(0x269)]=!![],()=>{const _0x5c62bb=_0x1c1e32;_0xa2aa1f[_0x5c62bb(0x269)]=![];};},[]),_0x366a17['useEffect'](()=>{const _0x22b8f5=_0x5188b6,_0x2bd955=_0x55959c[_0x22b8f5(0x269)];return _0x2bd955['tokenPayload']()['then'](_0x58e326=>{_0xa2aa1f['current']&&_0x168f0c(_0x58e326);}),()=>{const _0x4eb2bc=_0x22b8f5;_0x2bd955[_0x4eb2bc(0x189)]();};},[]),_0x366a17[_0x5188b6(0xcc)](AuthContext['Provider'],{'value':{'tokenPayload':_0x4cf19c,'authClient':_0x55959c[_0x5188b6(0x269)]}},_0x5ad620);},ApiProvider=({api:_0x9cbf1f,children:_0x5929aa})=>{const _0x5c8310=_0x519ca6,_0x4ecd53=useAuth(),_0x266f91=_0x366a17[_0x5c8310(0x13a)](new ApiClient(_0x9cbf1f,_0x4ecd53[_0x5c8310(0x248)])),_0x8ff217=_0x366a17['useRef'](createApi(_0x266f91[_0x5c8310(0x269)]));return _0x366a17[_0x5c8310(0xcc)](ApiContext['Provider'],{'value':{'api':_0x8ff217[_0x5c8310(0x269)]}},_0x5929aa);},ASSET_PREVIEW_EXTENSIONS=[_0x519ca6(0x1a0),_0x519ca6(0x1f3),_0x519ca6(0x13e),_0x519ca6(0x1ad),_0x519ca6(0xe8),_0x519ca6(0x126),_0x519ca6(0x22f)],canAssetBePreviewed=_0x1bd8e4=>{return ASSET_PREVIEW_EXTENSIONS['includes'](_0x1bd8e4);},AssetsConfigContext=_0x366a17[_0x519ca6(0x9e)]({'onChoose':undefined}),useAssetsConfig=()=>{const _0x18d716=_0x519ca6;return _0x366a17[_0x18d716(0x103)](AssetsConfigContext);},AssetsConfigProvider=_0xc3018=>{const _0x1dbb4e=_0x519ca6;var {children:_0x53cf4b}=_0xc3018,_0x126c66=__rest(_0xc3018,['children']);const {api:_0x485628}=useApi(),_0x531305=_0x2aca02=>{const _0x179c01=_0x1c8d;var _0x5161d8;(_0x5161d8=_0x126c66[_0x179c01(0x111)])===null||_0x5161d8===void 0x0?void 0x0:_0x5161d8[_0x179c01(0xce)](_0x126c66,_0x2aca02[_0x179c01(0x262)](_0x2cb8e5=>({'data':_0x2cb8e5,'origin':_0x485628['config'][_0x179c01(0xf2)],'getUrl':_0x4f4991=>{return _0x485628['assets']['getAssetUrl'](_0x2cb8e5['id'],_0x4f4991);},'getResponsiveImageUrl':(_0x1a6512,_0x3a0a40,_0x3715d8)=>{const _0xe0aaf6=_0x179c01;if(canAssetBePreviewed(_0x2cb8e5['extension']))return _0x485628[_0xe0aaf6(0x221)][_0xe0aaf6(0x19b)](_0x2cb8e5['id'],_0x1a6512,_0x3a0a40,_0x3715d8);return![];}})));};return _0x366a17[_0x1dbb4e(0xcc)](AssetsConfigContext[_0x1dbb4e(0x121)],{'value':Object[_0x1dbb4e(0x224)](Object[_0x1dbb4e(0x224)]({},_0x126c66),{'onChoose':_0x126c66['onChoose']?_0x531305:undefined})},_0x53cf4b);},CategoriesConfigContext=_0x366a17['createContext']({'getCategoryIconProps':()=>({})}),useCategoriesConfig=()=>{const _0x5d1926=_0x519ca6;return _0x366a17[_0x5d1926(0x103)](CategoriesConfigContext);},predefinedCategoriesIcons={'Files':_0x519ca6(0x1b1),'Images':'Image','Documents':_0x519ca6(0x279),'Recent':_0x519ca6(0x27d)},FALLBACK_CATEGORY_KEY=_0x519ca6(0xea),FALLBACK_CATEGORY_ICON_NAME=_0x519ca6(0xc2),getCategoryIconProps=_0x214b68=>{const {categoryName:_0x4752de,categoryId:_0x5e4433,icons:_0x5eb271}=_0x214b68;if(_0x4752de&&hasOwnProperty(_0x5eb271,_0x4752de))return{'render':_0x5eb271[_0x4752de]};if(_0x5e4433&&hasOwnProperty(_0x5eb271,_0x5e4433))return{'render':_0x5eb271[_0x5e4433]};if(_0x4752de&&hasOwnProperty(predefinedCategoriesIcons,_0x4752de))return{'name':predefinedCategoriesIcons[_0x4752de]};if(_0x5eb271[FALLBACK_CATEGORY_KEY])return{'render':_0x5eb271[FALLBACK_CATEGORY_KEY]};return{'name':FALLBACK_CATEGORY_ICON_NAME};},CategoriesConfigProvider=({children:_0x4155b4,icons:icons={}})=>{const _0x40366f=_0x519ca6,_0x3a5409=_0x366a17[_0x40366f(0xa8)](_0x1ee68d=>getCategoryIconProps(Object[_0x40366f(0x224)](Object['assign']({},_0x1ee68d),{'icons':icons})),[icons]);return _0x366a17['createElement'](CategoriesConfigContext[_0x40366f(0x121)],{'value':{'getCategoryIconProps':_0x3a5409}},_0x4155b4);},DEFAULT_LOCALE='en',mapLangToI18n=_0x3b556a=>{const _0x746481=_0x519ca6;var _0x94baff;const _0x45daeb={'lang':'en'};if(typeof _0x3b556a===_0x746481(0x26f))_0x45daeb[_0x746481(0x116)]=_0x3b556a;else _0x3b556a?(_0x45daeb[_0x746481(0x28b)]=_0x3b556a[_0x746481(0x28b)],_0x45daeb[_0x746481(0x116)]=_0x3b556a['ui']):_0x45daeb['lang']=DEFAULT_LOCALE;const _0xab2239=(_0x94baff=_0x45daeb['lang'])!==null&&_0x94baff!==void 0x0?_0x94baff:DEFAULT_LOCALE;return _0x45daeb[_0x746481(0x158)]={[_0xab2239]:getTranslations(_0xab2239)},_0x45daeb;},LanguageProvider=({children:_0x1b64af,language:_0x355418})=>{const _0x4c1904=_0x519ca6;return _0x366a17[_0x4c1904(0xcc)](I18nProvider,Object[_0x4c1904(0x224)]({},mapLangToI18n(_0x355418)),_0x1b64af);},queryClient=new QueryClient(),QueryProvider=({children:_0x15e42a})=>{const _0x4d8c94=_0x519ca6;return _0x366a17[_0x4d8c94(0xcc)](QueryClientProvider,{'client':queryClient},_0x15e42a,_0x366a17['createElement'](ReactQueryDevtools,{'initialIsOpen':![],'position':'bottom-right'}));};var UploadActionType;(function(_0x1125c0){const _0x3cd9b8=_0x519ca6;_0x1125c0[_0x1125c0['ABORT_UPLOAD']=0x0]='ABORT_UPLOAD',_0x1125c0[_0x1125c0[_0x3cd9b8(0xee)]=0x1]=_0x3cd9b8(0xee),_0x1125c0[_0x1125c0['COMPLETE_UPLOAD']=0x2]='COMPLETE_UPLOAD',_0x1125c0[_0x1125c0['DISABLE_ABORT']=0x3]=_0x3cd9b8(0x1f6),_0x1125c0[_0x1125c0[_0x3cd9b8(0x1de)]=0x4]='QUEUE_UPLOAD',_0x1125c0[_0x1125c0[_0x3cd9b8(0x220)]=0x5]=_0x3cd9b8(0x220),_0x1125c0[_0x1125c0[_0x3cd9b8(0x113)]=0x6]=_0x3cd9b8(0x113),_0x1125c0[_0x1125c0[_0x3cd9b8(0x150)]=0x7]='UPDATE_PROGRESS';}(UploadActionType||(UploadActionType={})));var UploadErrorData;(function(_0x56917b){const _0x5b6291=_0x519ca6;_0x56917b['PLAN_EXCEEDED_MEGAPIXELS_KEY']='megapixelsLimit',_0x56917b['PLAN_EXCEEDED_SIZE_KEY']=_0x5b6291(0xe2);}(UploadErrorData||(UploadErrorData={})));var UploadErrorType;(function(_0xd20efb){const _0x35148f=_0x519ca6;_0xd20efb[_0xd20efb['EXTENSION_NOT_ALLOWED']=0x0]=_0x35148f(0x147),_0xd20efb[_0xd20efb[_0x35148f(0x1e4)]=0x1]=_0x35148f(0x1e4),_0xd20efb[_0xd20efb[_0x35148f(0xb7)]=0x2]=_0x35148f(0xb7),_0xd20efb[_0xd20efb['PLAN_EXCEEDED_SIZE']=0x3]=_0x35148f(0xf4);}(UploadErrorType||(UploadErrorType={})));var UploadStatus;(function(_0x37e495){const _0x1ea721=_0x519ca6;_0x37e495[_0x37e495['ABORTED']=0x0]=_0x1ea721(0x228),_0x37e495[_0x37e495['COMPLETED']=0x1]=_0x1ea721(0x123),_0x37e495[_0x37e495[_0x1ea721(0x288)]=0x2]=_0x1ea721(0x288),_0x37e495[_0x37e495[_0x1ea721(0x24f)]=0x3]='IN_PROGRESS',_0x37e495[_0x37e495['PENDING']=0x4]=_0x1ea721(0x99);}(UploadStatus||(UploadStatus={})));function _0x1c8d(_0x59669c,_0x6c6511){const _0x1d8b4a=_0x1d8b();return _0x1c8d=function(_0x1c8dcf,_0x129651){_0x1c8dcf=_0x1c8dcf-0x99;let _0x771c5b=_0x1d8b4a[_0x1c8dcf];return _0x771c5b;},_0x1c8d(_0x59669c,_0x6c6511);}var UploadComponentsActionType;(function(_0x45dae1){const _0x4a83bd=_0x519ca6;_0x45dae1[_0x45dae1[_0x4a83bd(0xa2)]=0x0]=_0x4a83bd(0xa2),_0x45dae1[_0x45dae1[_0x4a83bd(0x261)]=0x1]=_0x4a83bd(0x261),_0x45dae1[_0x45dae1[_0x4a83bd(0x171)]=0x2]=_0x4a83bd(0x171),_0x45dae1[_0x45dae1[_0x4a83bd(0x190)]=0x3]='ENABLE_AUTO_HIDE',_0x45dae1[_0x45dae1[_0x4a83bd(0x1c2)]=0x4]='OPEN_DIALOG',_0x45dae1[_0x45dae1[_0x4a83bd(0x1e9)]=0x5]=_0x4a83bd(0x1e9),_0x45dae1[_0x45dae1[_0x4a83bd(0xd2)]=0x6]=_0x4a83bd(0xd2),_0x45dae1[_0x45dae1[_0x4a83bd(0xf1)]=0x7]='TOGGLE_DIALOG';}(UploadComponentsActionType||(UploadComponentsActionType={})));const MAX_STANDARD_DEV=0.3,MIN_TIME_ELAPSED=0x3e8,MIN_PROGRESS_UPDATES=0xa,MIN_UPLOAD_SPEEDS=0x2,MAX_UPLOAD_SPEEDS=0xf,isQueueConcluded=_0x59aeab=>{const _0x162a59=_0x519ca6;return _0x59aeab[_0x162a59(0x143)](_0x5f0fa3=>_0x5f0fa3[_0x162a59(0x226)]);},getUploadErrorType=_0x2ba46b=>{const _0x318e5a=_0x519ca6;if(_0x2ba46b[_0x318e5a(0x16f)][UploadErrorData['PLAN_EXCEEDED_MEGAPIXELS_KEY']])return{'type':UploadErrorType[_0x318e5a(0xb7)],'msg':_0x2ba46b[_0x318e5a(0x16f)][UploadErrorData[_0x318e5a(0x270)]][_0x318e5a(0x1b9)]()};if(_0x2ba46b['data'][UploadErrorData[_0x318e5a(0xd1)]])return{'type':UploadErrorType[_0x318e5a(0xf4)],'msg':_0x2ba46b['data'][UploadErrorData[_0x318e5a(0xd1)]][_0x318e5a(0x1b9)]()};return{'type':UploadErrorType[_0x318e5a(0x1e4)]};},getUploadProgress=_0x552ba4=>{const _0x5323cd=_0x519ca6,{totalSize:_0x3f86a7,totalUploaded:_0x3211b2,totalAbortedSize:_0x4b6eb8,totalAbortedUploaded:_0x87dcce}=_0x552ba4[_0x5323cd(0x211)](_0x4a3a96=>_0x4a3a96[_0x5323cd(0x192)]!==UploadStatus[_0x5323cd(0x288)])[_0x5323cd(0x18f)]((_0x1cc775,_0x5d6971)=>{const _0x9087c1=_0x5323cd;var _0x55f4eb,_0x70ccba;return _0x5d6971['status']===UploadStatus[_0x9087c1(0x228)]?Object[_0x9087c1(0x224)](Object[_0x9087c1(0x224)]({},_0x1cc775),{'totalAbortedSize':_0x1cc775['totalAbortedSize']+_0x5d6971[_0x9087c1(0x195)]+((_0x55f4eb=_0x5d6971['overhead'])!==null&&_0x55f4eb!==void 0x0?_0x55f4eb:0x0),'totalAbortedUploaded':_0x1cc775[_0x9087c1(0x13b)]+_0x5d6971[_0x9087c1(0x268)]}):Object['assign'](Object[_0x9087c1(0x224)]({},_0x1cc775),{'totalSize':_0x1cc775[_0x9087c1(0x1d6)]+_0x5d6971[_0x9087c1(0x195)]+((_0x70ccba=_0x5d6971['overhead'])!==null&&_0x70ccba!==void 0x0?_0x70ccba:0x0),'totalUploaded':_0x1cc775['totalUploaded']+_0x5d6971[_0x9087c1(0x268)]});},{'totalSize':0x0,'totalUploaded':0x0,'totalAbortedSize':0x0,'totalAbortedUploaded':0x0});if(!_0x3f86a7&&!_0x4b6eb8)return{'totalSize':_0x3f86a7,'totalProgress':0x0,'totalUploaded':_0x3211b2,'totalLeft':_0x3f86a7-_0x3211b2};return{'totalSize':_0x3f86a7,'totalProgress':(_0x3211b2+_0x87dcce)*0x64/(_0x3f86a7+_0x4b6eb8),'totalUploaded':_0x3211b2,'totalLeft':_0x3f86a7-_0x3211b2};},getUploadedDiff=(_0x1f817a,_0x4dd8f7)=>{const _0x5e2dc7=_0x519ca6;return _0x1f817a[_0x5e2dc7(0x18f)]((_0x11afaa,_0x454e67)=>{const _0x49ffe9=_0x5e2dc7,_0x5b303d=_0x4dd8f7[_0x454e67['id']];if(_0x5b303d)return _0x11afaa+(_0x5b303d['uploaded']-_0x454e67[_0x49ffe9(0x268)]);return _0x11afaa;},0x0);},getUploadSpeeds=(_0x24e319,_0x197a92,_0x64e07)=>{const _0x598879=_0x519ca6;if(_0x64e07<=0x0)return _0x24e319;const _0x7564c5=_0x197a92/_0x64e07;if(_0x24e319[_0x598879(0xd0)]===MAX_UPLOAD_SPEEDS){const [,..._0x2f3fd9]=_0x24e319;return[..._0x2f3fd9,_0x7564c5];}return[..._0x24e319,_0x7564c5];},getAssetUploadProgress=(_0x43f705,_0x3ad17a)=>{return _0x43f705*0x64/_0x3ad17a;},getAvgUploadSpeed=_0x32dbf8=>{const _0x371bcb=_0x519ca6;if(_0x32dbf8['length']<MIN_UPLOAD_SPEEDS)return;const _0x359546=_0x32dbf8[_0x371bcb(0x18f)]((_0x30be02,_0x57874e)=>_0x30be02+_0x57874e,0x0);if(_0x32dbf8[_0x371bcb(0xd0)]>0x2){const _0x21e18f=Math[_0x371bcb(0x9b)](..._0x32dbf8),_0x18e8fb=Math[_0x371bcb(0x1ed)](..._0x32dbf8);return(_0x359546-_0x21e18f-_0x18e8fb)/(_0x32dbf8[_0x371bcb(0xd0)]-0x2);}else return _0x359546/_0x32dbf8[_0x371bcb(0xd0)];},getTimeLeft=(_0x57a5b6,_0x39a1d2)=>{if(!_0x39a1d2||_0x39a1d2<=0x0)return;return _0x57a5b6/_0x39a1d2;},getStandardDeviation=_0x1ab816=>{const _0x14b2f1=_0x519ca6,_0x482ae5=_0x1ab816[_0x14b2f1(0xd0)];if(_0x482ae5===0x0)return;const _0x172914=_0x1ab816[_0x14b2f1(0x18f)]((_0x1b397f,_0x4c8c37)=>_0x1b397f+_0x4c8c37)/_0x482ae5;return Math[_0x14b2f1(0x1d9)](_0x1ab816[_0x14b2f1(0x262)](_0x552a72=>Math['pow'](_0x552a72-_0x172914,0x2))[_0x14b2f1(0x18f)]((_0x3fb585,_0x2aa486)=>_0x3fb585+_0x2aa486)/_0x482ae5);},sortAssets=_0x1fe260=>{const _0x26dead=_0x519ca6;return[..._0x1fe260][_0x26dead(0x14f)]((_0xbded80,_0x5212cb)=>{const _0x392d9d=_0x26dead,_0x5cd09b=_0xbded80['status']===UploadStatus['ERROR'],_0x4a2692=_0x5212cb[_0x392d9d(0x192)]===UploadStatus[_0x392d9d(0x288)];if(_0x5cd09b===_0x4a2692)return 0x0;if(_0x5cd09b)return-0x1;return 0x1;});},mapAndValidate=(_0x4b26be,_0x265449)=>{const _0x26f5ab=_0x519ca6;return _0x4b26be[_0x26f5ab(0x262)](_0x524382=>{const _0x43ef04=_0x26f5ab,{name:_0x3809aa,category:_0xe1b976}=_0x524382,[_0x46a256]=_0x3809aa[_0x43ef04(0xe4)]('.')[_0x43ef04(0x29c)](),_0x13c140=_0xe1b976['extensions'][_0x43ef04(0x12b)](_0x244b5a=>_0x244b5a===_0x46a256);if(_0x13c140)return _0x265449(_0x524382);return Object[_0x43ef04(0x224)](Object[_0x43ef04(0x224)]({},_0x524382),{'abortable':![],'concluded':!![],'status':UploadStatus[_0x43ef04(0x288)],'error':{'type':UploadErrorType[_0x43ef04(0x147)]}});});},initQueuePartialProgressUpdates=()=>{return{'chunksRecordedCount':0x0,'chunksRecordedSize':0x0,'chunksRecordingStartedAt':undefined,'estimatedTimeLeft':undefined};},getFocusedAsset=_0x24c01c=>{const _0x5597b0=_0x519ca6,_0x346c43=_0x24c01c[_0x5597b0(0x1bb)](_0x545507=>_0x545507[_0x5597b0(0x192)]===UploadStatus['IN_PROGRESS']);if(_0x346c43)return _0x346c43;const _0x482edb=[..._0x24c01c][_0x5597b0(0x29c)](),_0x590c77=_0x482edb['find'](_0x59a9fa=>_0x59a9fa[_0x5597b0(0x192)]===UploadStatus['COMPLETED']);if(_0x590c77)return _0x590c77;},getQueuePartialUpdate=(_0x48b0e5,_0x3878a9)=>{const _0xb1f739=_0x519ca6,_0x3e2cd1=isQueueConcluded(_0x48b0e5),_0x32b343=getFocusedAsset(_0x48b0e5),{totalLeft:_0x491f0f,totalProgress:_0x203305}=getUploadProgress(_0x48b0e5);if(!_0x3e2cd1){const _0x214d6d=getAvgUploadSpeed(_0x3878a9),_0x1e8adf=getTimeLeft(_0x491f0f,_0x214d6d);return{'concluded':_0x3e2cd1,'estimatedTimeLeft':_0x1e8adf,'focusedAsset':_0x32b343,'totalProgress':_0x203305};}return Object[_0xb1f739(0x224)]({'concluded':_0x3e2cd1,'totalProgress':_0x203305,'focusedAsset':_0x32b343},initQueuePartialProgressUpdates());},initState=()=>Object[_0x519ca6(0x224)]({'concluded':![],'aborted':![],'queue':[],'totalProgress':0x0,'uploadSpeeds':[]},initQueuePartialProgressUpdates()),uploadStateReducer=(_0x25d9c7,_0x2b5663)=>{const _0x22fdfb=_0x519ca6;var _0x30c383,_0x533593,_0x1cac4f;switch(_0x2b5663['type']){case UploadActionType['ABORT_UPLOAD']:{const {ids:_0x34ad1b}=_0x2b5663[_0x22fdfb(0x107)],_0x395911=_0x25d9c7['queue'][_0x22fdfb(0x262)](_0x2a35aa=>{const _0x9f39d2=_0x22fdfb;if(_0x2a35aa['abortable']&&_0x34ad1b[_0x9f39d2(0x140)](_0x2a35aa['id']))return Object['assign'](Object[_0x9f39d2(0x224)]({},_0x2a35aa),{'abortable':![],'concluded':!![],'status':UploadStatus[_0x9f39d2(0x228)]});return _0x2a35aa;}),_0x3019f9=getQueuePartialUpdate(_0x395911,_0x25d9c7[_0x22fdfb(0x267)]);return Object['assign'](Object[_0x22fdfb(0x224)](Object[_0x22fdfb(0x224)]({},_0x25d9c7),_0x3019f9),{'queue':_0x395911,'aborted':!![]});}case UploadActionType['CLEAR_QUEUE']:{const _0x4c9465=_0x25d9c7[_0x22fdfb(0x125)]['filter'](_0x52f5dd=>!_0x52f5dd['concluded']);if(_0x4c9465[_0x22fdfb(0xd0)]===0x0)return Object[_0x22fdfb(0x224)](Object[_0x22fdfb(0x224)]({},initState()),{'uploadSpeeds':_0x25d9c7[_0x22fdfb(0x267)]});const _0x3fe318=getQueuePartialUpdate(_0x4c9465,_0x25d9c7[_0x22fdfb(0x267)]);return Object[_0x22fdfb(0x224)](Object[_0x22fdfb(0x224)](Object[_0x22fdfb(0x224)]({},_0x25d9c7),_0x3fe318),{'queue':_0x4c9465});}case UploadActionType[_0x22fdfb(0x2a2)]:{const {id:_0x219c2f}=_0x2b5663[_0x22fdfb(0x107)],_0x4c7288=_0x25d9c7[_0x22fdfb(0x125)][_0x22fdfb(0x262)](_0x50fbca=>{const _0x3a53fa=_0x22fdfb;if(_0x50fbca['id']===_0x219c2f)return Object['assign'](Object[_0x3a53fa(0x224)]({},_0x50fbca),{'abortable':![],'concluded':!![],'status':UploadStatus[_0x3a53fa(0x123)]});return _0x50fbca;}),_0x16cf42=getQueuePartialUpdate(_0x4c7288,_0x25d9c7['uploadSpeeds']);return Object['assign'](Object[_0x22fdfb(0x224)](Object[_0x22fdfb(0x224)]({},_0x25d9c7),_0x16cf42),{'queue':_0x4c7288});}case UploadActionType[_0x22fdfb(0x1f6)]:{const {id:_0x375d88}=_0x2b5663[_0x22fdfb(0x107)];return Object[_0x22fdfb(0x224)](Object[_0x22fdfb(0x224)]({},_0x25d9c7),{'queue':_0x25d9c7[_0x22fdfb(0x125)][_0x22fdfb(0x262)](_0x1c567f=>{const _0x5b6ab3=_0x22fdfb;if(_0x1c567f['id']===_0x375d88)return Object[_0x5b6ab3(0x224)](Object['assign']({},_0x1c567f),{'abortable':![]});return _0x1c567f;})});}case UploadActionType[_0x22fdfb(0x1de)]:{const _0x49bd96=sortAssets([..._0x25d9c7['queue'],...mapAndValidate(_0x2b5663[_0x22fdfb(0x107)],_0x493a79=>Object[_0x22fdfb(0x224)](Object[_0x22fdfb(0x224)]({},_0x493a79),{'abortable':!![],'concluded':![],'status':UploadStatus[_0x22fdfb(0x99)]}))]),_0x49da44=getQueuePartialUpdate(_0x49bd96,_0x25d9c7[_0x22fdfb(0x267)]);return Object['assign'](Object[_0x22fdfb(0x224)](Object['assign']({},_0x25d9c7),_0x49da44),{'queue':_0x49bd96});}case UploadActionType[_0x22fdfb(0x220)]:{const {id:_0xcf9a77,error:_0x2d9ea4}=_0x2b5663['payload'],_0x5278a0=sortAssets(_0x25d9c7[_0x22fdfb(0x125)][_0x22fdfb(0x262)](_0x5134fe=>{const _0x51520a=_0x22fdfb;if(_0xcf9a77===_0x5134fe['id'])return Object[_0x51520a(0x224)](Object[_0x51520a(0x224)]({},_0x5134fe),{'abortable':![],'concluded':!![],'error':_0x2d9ea4,'status':UploadStatus[_0x51520a(0x288)]});return _0x5134fe;})),_0x474959=getQueuePartialUpdate(_0x5278a0,_0x25d9c7[_0x22fdfb(0x267)]);return Object[_0x22fdfb(0x224)](Object[_0x22fdfb(0x224)](Object[_0x22fdfb(0x224)]({},_0x25d9c7),_0x474959),{'queue':_0x5278a0});}case UploadActionType[_0x22fdfb(0x113)]:{const {id:_0x47e620}=_0x2b5663['payload'],_0x45076c=_0x25d9c7[_0x22fdfb(0x125)]['map'](_0x251927=>{const _0x7c5802=_0x22fdfb;if(_0x251927['id']===_0x47e620)return Object[_0x7c5802(0x224)](Object[_0x7c5802(0x224)]({},_0x251927),{'abortable':!![],'status':UploadStatus['IN_PROGRESS']});return _0x251927;}),_0x2fe309=getQueuePartialUpdate(_0x45076c,_0x25d9c7[_0x22fdfb(0x267)]);return Object[_0x22fdfb(0x224)](Object['assign'](Object[_0x22fdfb(0x224)]({},_0x25d9c7),_0x2fe309),{'queue':_0x45076c,'chunksRecordingStartedAt':_0x25d9c7[_0x22fdfb(0x12d)]?_0x25d9c7[_0x22fdfb(0x12d)]:Date[_0x22fdfb(0x28c)]()});}case UploadActionType[_0x22fdfb(0x150)]:{const {data:_0x2a7f28,count:_0x28a112}=_0x2b5663[_0x22fdfb(0x107)],_0x549707=_0x25d9c7[_0x22fdfb(0x125)][_0x22fdfb(0x262)](_0x4f0bee=>{const _0xc6d937=_0x22fdfb,_0x2b078e=_0x2a7f28[_0x4f0bee['id']];if(_0x2b078e){const {uploaded:_0x27f658,total:_0x3c3151}=_0x2b078e;return Object[_0xc6d937(0x224)](Object[_0xc6d937(0x224)]({},_0x4f0bee),{'progress':getAssetUploadProgress(_0x27f658,_0x3c3151),'overhead':_0x3c3151-_0x4f0bee[_0xc6d937(0x195)],'uploaded':_0x27f658});}return _0x4f0bee;}),_0x2a8340=Date[_0x22fdfb(0x28c)](),{totalProgress:_0x1009ec,totalLeft:_0x4e527b}=getUploadProgress(_0x549707),_0x53b4e6=getUploadedDiff(_0x25d9c7[_0x22fdfb(0x125)],_0x2a7f28),_0xb04f6f=(_0x30c383=_0x25d9c7['chunksRecordingStartedAt'])!==null&&_0x30c383!==void 0x0?_0x30c383:_0x2a8340,_0xa75753=((_0x533593=_0x25d9c7[_0x22fdfb(0x1df)])!==null&&_0x533593!==void 0x0?_0x533593:0x0)+_0x28a112,_0x369ed5=((_0x1cac4f=_0x25d9c7['chunksRecordedSize'])!==null&&_0x1cac4f!==void 0x0?_0x1cac4f:0x0)+_0x53b4e6,_0x4fa079=_0x2a8340-_0xb04f6f,_0x331d7f=Object[_0x22fdfb(0x224)](Object[_0x22fdfb(0x224)]({},_0x25d9c7),{'totalProgress':_0x1009ec,'queue':_0x549707});if(_0x4fa079>=MIN_TIME_ELAPSED&&_0xa75753>=MIN_PROGRESS_UPDATES){const _0xd78a74=getUploadSpeeds(_0x25d9c7['uploadSpeeds'],_0x369ed5,_0x4fa079),_0x2795a8=getAvgUploadSpeed(_0xd78a74),_0x50c7e3=getStandardDeviation(_0xd78a74);if(_0x2795a8&&_0x50c7e3&&_0x50c7e3/_0x2795a8>=MAX_STANDARD_DEV)return Object[_0x22fdfb(0x224)](Object[_0x22fdfb(0x224)](Object[_0x22fdfb(0x224)]({},_0x331d7f),initQueuePartialProgressUpdates()),{'chunksRecordingStartedAt':_0x2a8340,'uploadSpeeds':[]});const _0x5ca899=getTimeLeft(_0x4e527b,_0x2795a8);return Object[_0x22fdfb(0x224)](Object[_0x22fdfb(0x224)](Object['assign']({},_0x331d7f),initQueuePartialProgressUpdates()),{'chunksRecordingStartedAt':_0x2a8340,'estimatedTimeLeft':_0x5ca899,'uploadSpeeds':_0xd78a74});}return Object[_0x22fdfb(0x224)](Object[_0x22fdfb(0x224)]({},_0x331d7f),{'chunksRecordedCount':_0xa75753,'chunksRecordedSize':_0x369ed5,'chunksRecordingStartedAt':_0xb04f6f});}default:return _0x25d9c7;}},UploadComponentsContext=_0x366a17[_0x519ca6(0x9e)]({'autoScroll':![],'isDialogOpen':![],'isIndicatorOpen':![],'closeDialog':noOp,'disableAutoFeats':noOp,'disableAutoHide':noOp,'onUploadConcluded':noOp,'openDialog':noOp,'openIndicator':noOp,'toggleDialog':noOp}),UploadStateContext=_0x366a17[_0x519ca6(0x9e)](initState()),UploadUpdaterContext=_0x366a17[_0x519ca6(0x9e)]({'abortUpload':noOp,'processFiles':noOp}),useUploadComponents$1=()=>{const _0x47e264=_0x519ca6;return _0x366a17[_0x47e264(0x103)](UploadComponentsContext);},useUploadState=()=>{const _0x47ec0c=_0x519ca6;return _0x366a17[_0x47ec0c(0x103)](UploadStateContext);},useUploadUpdater=()=>{const _0x55734a=_0x519ca6;return _0x366a17[_0x55734a(0x103)](UploadUpdaterContext);},useStartUpload=_0x56409f=>{const {processFiles:_0x3548b6}=useUploadUpdater(),{openDialog:_0x412dfa,openIndicator:_0x727d27}=useUploadComponents$1(),_0x305e23=_0x10ffa5=>{_0x3548b6(_0x56409f,_0x10ffa5),_0x412dfa(),_0x727d27();};return{'startUpload':_0x305e23};},uploadInitState=initState(),useUpload=_0x368713=>{const _0x382157=_0x519ca6,_0x30a3fd=_0x366a17[_0x382157(0x13a)](Object[_0x382157(0x224)]({'uploadBatch':0x5},_0x368713)),_0x4e9928=useIsMounted(),[_0x4b865f,_0x3396bf]=_0x366a17[_0x382157(0x157)](uploadStateReducer,uploadInitState),_0x18cc24=_0x366a17[_0x382157(0x13a)]((..._0x467571)=>{_0x4e9928()&&_0x3396bf(..._0x467571);}),_0x5594e1=_0x366a17[_0x382157(0x13a)](_0x4b865f['queue']);_0x5594e1[_0x382157(0x269)]=_0x4b865f['queue'],_0x366a17[_0x382157(0x1ca)](()=>{const _0x12cd23=_0x382157;var _0x5e6ede,_0x482bc4;_0x4b865f[_0x12cd23(0x226)]&&((_0x482bc4=(_0x5e6ede=_0x30a3fd['current'])[_0x12cd23(0x1fb)])===null||_0x482bc4===void 0x0?void 0x0:_0x482bc4[_0x12cd23(0xce)](_0x5e6ede,_0x5594e1[_0x12cd23(0x269)]));},[_0x4b865f[_0x382157(0x226)]]);const {pushUpdate:_0x599eef}=useBatchUpdate(_0x19c949=>{const _0x5f4f1e=_0x382157;_0x18cc24[_0x5f4f1e(0x269)]({'type':UploadActionType[_0x5f4f1e(0x150)],'payload':_0x19c949});},_0x30a3fd[_0x382157(0x269)][_0x382157(0x23b)]),_0xda93ad=useQueryClient(),{pushUpdate:_0x3430c4}=useBatchUpdate(_0x614c6d=>{const _0x95f17e=_0x382157,_0x36378a=Object[_0x95f17e(0x26e)](_0x614c6d['data']);_0x36378a['length']>0x0&&(_0x36378a[_0x95f17e(0x1e8)](_0x58c729=>{const _0x354b93=_0x95f17e;_0xda93ad[_0x354b93(0x27f)](['category',_0x58c729]);}),_0xda93ad[_0x95f17e(0x27f)]('recent'));},_0x30a3fd['current'][_0x382157(0x1b4)]),{api:_0x183574}=useApi(),_0xd90fd0=_0x183574[_0x382157(0x221)][_0x382157(0x152)],_0x4f1e09=_0x366a17[_0x382157(0xa8)](_0x2ff8ba=>{const _0x348ff5=_0x382157;_0x18cc24[_0x348ff5(0x269)]({'type':UploadActionType['ABORT_UPLOAD'],'payload':{'ids':_0x2ff8ba[_0x348ff5(0x211)](_0x444125=>_0x444125[_0x348ff5(0x192)]===UploadStatus['PENDING'])[_0x348ff5(0x262)](({id:_0xf5343a})=>_0xf5343a)}}),_0x2ff8ba[_0x348ff5(0x211)](_0x295825=>_0x295825[_0x348ff5(0x265)])[_0x348ff5(0x1e8)](_0x1eb143=>{const _0x9aab57=_0x348ff5;_0x1eb143[_0x9aab57(0x22d)]();});},[]);_0x366a17[_0x382157(0x1ca)](()=>{return()=>{const _0x4c8a92=_0x1c8d;_0x4f1e09(_0x5594e1[_0x4c8a92(0x269)]);};},[]);const _0xdac044=_0x366a17[_0x382157(0xa8)](async({id:_0x5b5af5,categoryId:_0x3bccf5,file:_0x169241,startUpload:_0x50dbde})=>{const _0x1c783c=_0x382157;try{_0x18cc24[_0x1c783c(0x269)]({'type':UploadActionType[_0x1c783c(0x113)],'payload':{'id':_0x5b5af5}});const _0x61a474=(_0x5e05d4,_0x1f226f)=>{const _0x4468ef=_0x1c783c;_0x5e05d4>=_0x1f226f&&_0x18cc24[_0x4468ef(0x269)]({'type':UploadActionType[_0x4468ef(0x1f6)],'payload':{'id':_0x5b5af5}}),_0x599eef({'id':_0x5b5af5,'total':_0x1f226f,'uploaded':_0x5e05d4});},_0x5507fd=await _0x50dbde({'categoryId':_0x3bccf5,'file':_0x169241},_0x61a474);_0x3430c4({'id':_0x3bccf5}),(_0x5507fd===null||_0x5507fd===void 0x0?void 0x0:_0x5507fd[_0x1c783c(0x197)])&&_0x5507fd[_0x1c783c(0x197)]!==HTTPStatusCode['OK']?_0x18cc24[_0x1c783c(0x269)]({'type':UploadActionType['REJECT_UPLOAD'],'payload':{'id':_0x5b5af5,'error':getUploadErrorType(_0x5507fd)}}):_0x18cc24['current']({'type':UploadActionType[_0x1c783c(0x2a2)],'payload':{'id':_0x5b5af5}});}catch(_0x3fb321){if((_0x3fb321===null||_0x3fb321===void 0x0?void 0x0:_0x3fb321[_0x1c783c(0x142)])===_0x1c783c(0x22d))return _0x18cc24['current']({'type':UploadActionType['ABORT_UPLOAD'],'payload':{'ids':[_0x5b5af5]}});_0x18cc24['current']({'type':UploadActionType[_0x1c783c(0x220)],'payload':{'id':_0x5b5af5,'error':{'type':UploadErrorType[_0x1c783c(0x1e4)],'msg':_0x3fb321===null||_0x3fb321===void 0x0?void 0x0:_0x3fb321[_0x1c783c(0x245)]}}});}},[_0x599eef,_0x3430c4]);_0x366a17[_0x382157(0x1ca)](()=>{const _0x4e0ffe=_0x382157,_0x126def=_0x4b865f[_0x4e0ffe(0x125)]['filter'](_0x3105a1=>_0x3105a1[_0x4e0ffe(0x192)]===UploadStatus[_0x4e0ffe(0x24f)]),_0x30d4d8=_0x30a3fd['current'][_0x4e0ffe(0x1ec)]-_0x126def['length'];_0x30d4d8>0x0&&_0x4b865f[_0x4e0ffe(0x125)][_0x4e0ffe(0x211)](_0x41e63b=>_0x41e63b[_0x4e0ffe(0x192)]===UploadStatus['PENDING'])['slice'](0x0,_0x30d4d8)[_0x4e0ffe(0x1e8)](_0x3d2221=>{const _0x8b59a8=_0x4e0ffe;_0x3d2221[_0x8b59a8(0x1ae)]();});},[_0x4b865f[_0x382157(0x125)]]);const _0x2efd6f=_0x366a17[_0x382157(0xa8)]((_0x19d69c,_0x2dbdc0)=>{const _0xfe8643=_0x382157;var _0x6de556,_0x5e0a69;_0x18cc24[_0xfe8643(0x269)]({'type':UploadActionType[_0xfe8643(0xee)]});const _0x4173ce=_0x2dbdc0[_0xfe8643(0x262)](_0x4a4ca8=>{const _0x4172a2=_0xfe8643,_0x1ff72c=nanoid(),{start:_0x4aa182,abort:_0x327d7f}=_0xd90fd0();return{'abort':_0x327d7f,'abortable':![],'category':_0x19d69c,'concluded':![],'id':_0x1ff72c,'name':_0x4a4ca8[_0x4172a2(0x28d)],'size':_0x4a4ca8[_0x4172a2(0x195)],'uploadFile':()=>{return _0xdac044({'id':_0x1ff72c,'categoryId':_0x19d69c['id'],'file':_0x4a4ca8,'startUpload':_0x4aa182});},'uploaded':0x0};});(_0x5e0a69=(_0x6de556=_0x30a3fd['current'])['onFilesProcessed'])===null||_0x5e0a69===void 0x0?void 0x0:_0x5e0a69[_0xfe8643(0xce)](_0x6de556,_0x2dbdc0),_0x18cc24['current']({'type':UploadActionType[_0xfe8643(0x1de)],'payload':_0x4173ce});},[_0xd90fd0,_0xdac044]),_0x48a935=_0x366a17[_0x382157(0xe3)](()=>({'abortUpload':_0x4f1e09,'processFiles':_0x2efd6f}),[_0x4f1e09,_0x2efd6f]);return{'state':_0x4b865f,'actions':_0x48a935};},initialState$1={'autoHide':![],'autoScroll':![],'isDialogOpen':![],'isIndicatorOpen':![]},uploadComponentsReducer=(_0x3cbdc7,_0x58d4e9)=>{const _0x20b429=_0x519ca6;switch(_0x58d4e9[_0x20b429(0x142)]){case UploadComponentsActionType[_0x20b429(0xa2)]:{const _0x33929e=_0x58d4e9['payload'];return Object[_0x20b429(0x224)](Object[_0x20b429(0x224)]({},_0x3cbdc7),{'autoHide':_0x33929e,'autoScroll':![],'isDialogOpen':![]});}case UploadComponentsActionType[_0x20b429(0x261)]:{return Object[_0x20b429(0x224)](Object['assign']({},_0x3cbdc7),{'autoHide':![],'autoScroll':![]});}case UploadComponentsActionType[_0x20b429(0x171)]:{return Object[_0x20b429(0x224)](Object[_0x20b429(0x224)]({},_0x3cbdc7),{'autoHide':![]});}case UploadComponentsActionType['ENABLE_AUTO_HIDE']:{return Object['assign'](Object[_0x20b429(0x224)]({},_0x3cbdc7),{'autoHide':!![]});}case UploadComponentsActionType[_0x20b429(0x1c2)]:{return Object['assign'](Object[_0x20b429(0x224)]({},_0x3cbdc7),{'autoHide':_0x3cbdc7['isDialogOpen']?_0x3cbdc7[_0x20b429(0x119)]:![],'autoScroll':_0x3cbdc7[_0x20b429(0x1e6)]?_0x3cbdc7[_0x20b429(0x242)]:!![],'isDialogOpen':!![]});}case UploadComponentsActionType[_0x20b429(0x1e9)]:{return Object[_0x20b429(0x224)](Object[_0x20b429(0x224)]({},_0x3cbdc7),{'isIndicatorOpen':!![]});}case UploadComponentsActionType[_0x20b429(0xd2)]:{return Object[_0x20b429(0x224)]({},initialState$1);}case UploadComponentsActionType['TOGGLE_DIALOG']:{return Object[_0x20b429(0x224)](Object[_0x20b429(0x224)]({},_0x3cbdc7),{'autoHide':_0x3cbdc7['isDialogOpen']?![]:_0x3cbdc7[_0x20b429(0x119)],'autoScroll':!_0x3cbdc7[_0x20b429(0x1e6)],'isDialogOpen':!_0x3cbdc7['isDialogOpen']});}default:return _0x3cbdc7;}},useUploadComponents=(_0x268c6c=0x3e8)=>{const _0x4bc218=_0x519ca6,[_0x5babfd,_0x2fed74]=_0x366a17[_0x4bc218(0x157)](uploadComponentsReducer,initialState$1),_0x296ba8=_0x366a17[_0x4bc218(0xa8)](()=>{const _0x3a460b=_0x4bc218;_0x2fed74({'type':UploadComponentsActionType[_0x3a460b(0xd2)]});},[]),{initTimeout:_0x3d9ac1,removeTimeout:_0x483675}=useResettableTimeout(_0x296ba8,_0x268c6c),_0x2e287f=_0x366a17['useCallback'](()=>{_0x2fed74({'type':UploadComponentsActionType['TOGGLE_DIALOG']});},[]),_0x30660a=_0x366a17[_0x4bc218(0xa8)](()=>{const _0x2778a4=_0x4bc218;_0x2fed74({'type':UploadComponentsActionType[_0x2778a4(0x1c2)]});},[]),_0x553dac=_0x366a17[_0x4bc218(0xa8)]((_0x56dc9a=![])=>{_0x2fed74({'type':UploadComponentsActionType['CLOSE_DIALOG'],'payload':_0x56dc9a});},[]),_0x207653=_0x366a17['useCallback'](()=>{_0x2fed74({'type':UploadComponentsActionType['OPEN_INDICATOR']});},[]),_0x4b765d=_0x366a17[_0x4bc218(0xa8)](_0x18a665=>{const _0x23b882=_0x4bc218,_0x1b682f=_0x18a665[_0x23b882(0x143)](_0x42e588=>_0x42e588['status']===UploadStatus['COMPLETED']);_0x1b682f&&_0x2fed74({'type':UploadComponentsActionType[_0x23b882(0x190)]});},[]),_0xf8a96a=_0x366a17['useCallback'](()=>{_0x2fed74({'type':UploadComponentsActionType['DISABLE_AUTO_HIDE']});},[]),_0x4c03ac=_0x366a17[_0x4bc218(0xa8)](()=>{const _0x246861=_0x4bc218;_0x2fed74({'type':UploadComponentsActionType[_0x246861(0x261)]});},[]);return _0x366a17[_0x4bc218(0x1ca)](()=>{const _0x57f83b=_0x4bc218;_0x5babfd[_0x57f83b(0x119)]?_0x3d9ac1():_0x483675();},[_0x3d9ac1,_0x483675,_0x5babfd[_0x4bc218(0x119)]]),_0x366a17[_0x4bc218(0xe3)](()=>({'autoScroll':_0x5babfd[_0x4bc218(0x242)],'isDialogOpen':_0x5babfd[_0x4bc218(0x1e6)],'isIndicatorOpen':_0x5babfd[_0x4bc218(0xbb)],'closeDialog':_0x553dac,'disableAutoHide':_0xf8a96a,'disableAutoFeats':_0x4c03ac,'onUploadConcluded':_0x4b765d,'openDialog':_0x30660a,'openIndicator':_0x207653,'toggleDialog':_0x2e287f}),[_0x5babfd['autoScroll'],_0x5babfd['isDialogOpen'],_0x5babfd['isIndicatorOpen'],_0x553dac,_0xf8a96a,_0x4c03ac,_0x4b765d,_0x30660a,_0x207653,_0x2e287f]);},defaultUploadConfig={'cacheInvalidationInterval':0x7d0,'componentsInteractionTimeout':0x2710,'progressBatchInterval':0x1f4},UploadProvider=({children:_0x438a14,upload:_0x585084})=>{const _0x4beadb=_0x519ca6,{cacheInvalidationInterval:_0x24c554,componentsInteractionTimeout:_0x39ac45,progressBatchInterval:_0x2a80d8}=Object[_0x4beadb(0x224)](Object[_0x4beadb(0x224)]({},defaultUploadConfig),_0x585084),_0x55a75a=useUploadComponents(_0x39ac45),{state:_0x175af5,actions:_0x6c51ab}=useUpload({'cacheInvalidationInterval':_0x24c554,'onFilesProcessed':_0x55a75a[_0x4beadb(0xf7)],'onUploadConcluded':_0x55a75a[_0x4beadb(0x1fb)],'progressBatchInterval':_0x2a80d8});return _0x366a17['createElement'](UploadUpdaterContext[_0x4beadb(0x121)],{'value':_0x6c51ab},_0x366a17[_0x4beadb(0xcc)](UploadStateContext[_0x4beadb(0x121)],{'value':_0x175af5},_0x366a17['createElement'](UploadComponentsContext[_0x4beadb(0x121)],{'value':_0x55a75a},_0x438a14)));};var UserDataActionType;(function(_0x2bbcc3){const _0x2c5cd9=_0x519ca6;_0x2bbcc3[_0x2bbcc3[_0x2c5cd9(0x148)]=0x0]=_0x2c5cd9(0x148),_0x2bbcc3[_0x2bbcc3['CHANGE_SORT_BY']=0x1]=_0x2c5cd9(0x1c6),_0x2bbcc3[_0x2bbcc3[_0x2c5cd9(0x29d)]=0x2]=_0x2c5cd9(0x29d),_0x2bbcc3[_0x2bbcc3[_0x2c5cd9(0xd5)]=0x3]=_0x2c5cd9(0xd5),_0x2bbcc3[_0x2bbcc3[_0x2c5cd9(0x1f8)]=0x4]='CHANGE_VIEW',_0x2bbcc3[_0x2bbcc3['CHANGE_SIDEBAR_WIDTH']=0x5]='CHANGE_SIDEBAR_WIDTH',_0x2bbcc3[_0x2bbcc3[_0x2c5cd9(0x19d)]=0x6]=_0x2c5cd9(0x19d),_0x2bbcc3[_0x2bbcc3[_0x2c5cd9(0x17c)]=0x7]=_0x2c5cd9(0x17c),_0x2bbcc3[_0x2bbcc3[_0x2c5cd9(0x1ce)]=0x8]=_0x2c5cd9(0x1ce),_0x2bbcc3[_0x2bbcc3[_0x2c5cd9(0x1fd)]=0x9]=_0x2c5cd9(0x1fd),_0x2bbcc3[_0x2bbcc3[_0x2c5cd9(0x184)]=0xa]=_0x2c5cd9(0x184);}(UserDataActionType||(UserDataActionType={})));const INIT_DATA={'assetsPerPage':0x32,'allowCover':![],'currentPages':{},'navbarCollapsed':![],'sortBy':'uploadedAt','sortOrder':ApiSortingOrder[_0x519ca6(0xe1)],'thumbSize':0x0},UserDataContext=_0x366a17[_0x519ca6(0x9e)](Object[_0x519ca6(0x224)]({'onAssetsPerPageChange':noOp,'onSortByChange':noOp,'onSortOrderToggle':noOp,'onCoverModeToggle':noOp,'onDialogDimensionsChange':noOp,'onThumbSizeChange':noOp,'onViewChange':noOp,'onViewPageChange':noOp,'onViewInit':noOp,'onNavbarToggle':noOp,'onNavbarWidthChange':noOp,'isAdmin':![]},INIT_DATA)),useUserData$1=()=>{const _0x18b714=_0x519ca6;return _0x366a17[_0x18b714(0x103)](UserDataContext);};var FixedViews;(function(_0xe518ef){const _0x480b00=_0x519ca6;_0xe518ef['ADMIN']=_0x480b00(0x14a),_0xe518ef['RECENT']=_0x480b00(0x1bd);}(FixedViews||(FixedViews={})));const PRODUCT_PREFIX=_0x519ca6(0xa3);let lsAvailable=!![];const getStorageKey=_0x417939=>_0x417939?PRODUCT_PREFIX+'_'+_0x417939:PRODUCT_PREFIX,loadData=_0x51e301=>{const _0x59f237=_0x519ca6;var _0x48e193,_0x3c801a,_0x2ec854,_0x26fe60,_0xd74f8f,_0x45b586,_0x2fd4ba;if(!lsAvailable)return INIT_DATA;try{const _0x1a3617=getStorageKey(_0x51e301),_0x2cac0f=localStorage[_0x59f237(0x264)](_0x1a3617),_0x373a18=JSON[_0x59f237(0x168)](_0x2cac0f!==null&&_0x2cac0f!==void 0x0?_0x2cac0f:'{}');return{'assetsPerPage':(_0x48e193=_0x373a18['assetsPerPage'])!==null&&_0x48e193!==void 0x0?_0x48e193:INIT_DATA[_0x59f237(0x1dc)],'allowCover':(_0x3c801a=_0x373a18[_0x59f237(0x129)])!==null&&_0x3c801a!==void 0x0?_0x3c801a:INIT_DATA[_0x59f237(0x129)],'sortBy':(_0x2ec854=_0x373a18[_0x59f237(0xfa)])!==null&&_0x2ec854!==void 0x0?_0x2ec854:INIT_DATA[_0x59f237(0xfa)],'sortOrder':(_0x26fe60=_0x373a18[_0x59f237(0x11a)])!==null&&_0x26fe60!==void 0x0?_0x26fe60:INIT_DATA[_0x59f237(0x11a)],'currentView':_0x373a18[_0x59f237(0xdd)],'currentPages':INIT_DATA[_0x59f237(0x11c)],'dialogDimensions':_0x373a18[_0x59f237(0x208)],'thumbSize':(_0xd74f8f=_0x373a18[_0x59f237(0x16b)])!==null&&_0xd74f8f!==void 0x0?_0xd74f8f:INIT_DATA[_0x59f237(0x16b)],'navbarCollapsed':(_0x45b586=_0x373a18['navbarCollapsed'])!==null&&_0x45b586!==void 0x0?_0x45b586:INIT_DATA[_0x59f237(0x9d)],'navbarWidth':(_0x2fd4ba=_0x373a18[_0x59f237(0x296)])!==null&&_0x2fd4ba!==void 0x0?_0x2fd4ba:INIT_DATA['navbarWidth']};}catch(_0xf62a79){return lsAvailable=![],console[_0x59f237(0x9c)](_0xf62a79),INIT_DATA;}},persistData=({allowCover:_0x1a1a69,assetsPerPage:_0x743ab8,currentView:_0x5d3f5a,dialogDimensions:_0x4eded0,navbarCollapsed:_0x3e986c,navbarWidth:_0x2ed7ba,sortBy:_0x212f91,sortOrder:_0x25c2f5,thumbSize:_0x409a49},_0x5a3761)=>{const _0x36e779=_0x519ca6;if(!lsAvailable)return;const _0x56e653={'allowCover':_0x1a1a69,'assetsPerPage':_0x743ab8,'currentView':_0x5d3f5a,'dialogDimensions':_0x4eded0,'navbarCollapsed':_0x3e986c,'navbarWidth':_0x2ed7ba,'sortBy':_0x212f91,'sortOrder':_0x25c2f5,'thumbSize':_0x409a49};try{const _0x339548=getStorageKey(_0x5a3761);localStorage[_0x36e779(0x15b)](_0x339548,JSON[_0x36e779(0x252)](_0x56e653));}catch(_0x24a797){lsAvailable=![],console['error'](_0x24a797);}},userReducer=(_0x3702cc,_0x6e3bcb)=>{const _0x176486=_0x519ca6;switch(_0x6e3bcb[_0x176486(0x142)]){case UserDataActionType[_0x176486(0x148)]:{return Object[_0x176486(0x224)](Object['assign']({},_0x3702cc),{'currentPages':{},'assetsPerPage':_0x6e3bcb[_0x176486(0x107)]});}case UserDataActionType[_0x176486(0x29f)]:{return Object[_0x176486(0x224)](Object['assign']({},_0x3702cc),{'navbarWidth':_0x6e3bcb[_0x176486(0x107)]});}case UserDataActionType['CHANGE_SORT_BY']:{return Object[_0x176486(0x224)](Object[_0x176486(0x224)]({},_0x3702cc),{'sortBy':_0x6e3bcb[_0x176486(0x107)][_0x176486(0xfa)]});}case UserDataActionType[_0x176486(0x184)]:{return Object['assign'](Object['assign']({},_0x3702cc),{'sortOrder':_0x3702cc[_0x176486(0x11a)]==ApiSortingOrder[_0x176486(0xe1)]?ApiSortingOrder[_0x176486(0xaf)]:ApiSortingOrder[_0x176486(0xe1)]});}case UserDataActionType['CHANGE_THUMB_SIZE']:{return Object[_0x176486(0x224)](Object[_0x176486(0x224)]({},_0x3702cc),{'thumbSize':_0x6e3bcb[_0x176486(0x107)]});}case UserDataActionType[_0x176486(0x1f8)]:{return Object[_0x176486(0x224)](Object['assign']({},_0x3702cc),{'currentView':_0x6e3bcb[_0x176486(0x107)]});}case UserDataActionType['CHANGE_VIEW_PAGE']:{return Object['assign'](Object[_0x176486(0x224)]({},_0x3702cc),{'currentPages':Object[_0x176486(0x224)](Object['assign']({},_0x3702cc[_0x176486(0x11c)]),{[_0x6e3bcb[_0x176486(0x107)]['id']]:_0x6e3bcb[_0x176486(0x107)][_0x176486(0x293)]})});}case UserDataActionType[_0x176486(0x19d)]:{return Object['assign'](Object[_0x176486(0x224)]({},_0x3702cc),{'dialogDimensions':_0x6e3bcb['payload']});}case UserDataActionType[_0x176486(0x17c)]:{const {categories:_0x27ba7f,hasRecentAssets:_0x99c41f,isAdmin:_0x92c46b}=_0x6e3bcb['payload'],_0x21b23b=_0x27ba7f[_0x176486(0x262)](_0x34f3e0=>_0x34f3e0['id']);_0x92c46b&&_0x21b23b['push'](FixedViews[_0x176486(0x182)]);_0x99c41f&&_0x21b23b['unshift'](FixedViews[_0x176486(0x191)]);if(_0x3702cc[_0x176486(0xdd)]&&_0x21b23b['includes'](_0x3702cc[_0x176486(0xdd)]))return _0x3702cc;return Object['assign'](Object[_0x176486(0x224)]({},_0x3702cc),{'currentView':_0x21b23b[0x0]});}case UserDataActionType[_0x176486(0x1fd)]:{return Object[_0x176486(0x224)](Object[_0x176486(0x224)]({},_0x3702cc),{'allowCover':!_0x3702cc['allowCover']});}case UserDataActionType['TOGGLE_SIDEBAR']:{return Object[_0x176486(0x224)](Object[_0x176486(0x224)]({},_0x3702cc),{'navbarCollapsed':!_0x3702cc[_0x176486(0x9d)]});}default:return _0x3702cc;}},useUserData=_0x54f349=>{const _0x226758=_0x519ca6,{tokenPayload:_0x4a11fc}=useAuth(),_0x104a62=_0x2f0597[_0x226758(0x13a)](_0x54f349),[_0x3d1499,_0xfbbd81]=_0x2f0597['useReducer'](userReducer,loadData(_0x104a62[_0x226758(0x269)])),_0x3b302f=_0x4a11fc===null||_0x4a11fc===void 0x0?void 0x0:_0x4a11fc[_0x226758(0xbf)][_0x226758(0x28f)][_0x226758(0x18c)],_0x438f80=_0x3b302f===_0x226758(0x14a),_0x48742f=_0x2f0597[_0x226758(0xa8)](_0x1c0a36=>{const _0x3f1f5d=_0x226758;_0xfbbd81({'type':UserDataActionType[_0x3f1f5d(0x148)],'payload':_0x1c0a36});},[]),_0xfc384c=_0x2f0597[_0x226758(0xa8)](_0x2387fc=>{const _0x2005e6=_0x226758;_0xfbbd81({'type':UserDataActionType[_0x2005e6(0x1c6)],'payload':{'sortBy':_0x2387fc}});},[]),_0x52efa1=_0x2f0597['useCallback'](()=>{const _0xe1b735=_0x226758;_0xfbbd81({'type':UserDataActionType[_0xe1b735(0x184)]});},[]),_0x196d6a=_0x2f0597[_0x226758(0xa8)](_0x14caa1=>{const _0x96421e=_0x226758;_0xfbbd81({'type':UserDataActionType[_0x96421e(0x29d)],'payload':_0x14caa1});},[]),_0x58b97c=_0x2f0597[_0x226758(0xa8)](_0x1cd441=>{_0xfbbd81({'type':UserDataActionType['CHANGE_VIEW'],'payload':_0x1cd441});},[]),_0x3bc3f2=_0x2f0597[_0x226758(0xa8)]((_0x446df0,_0x17f88b)=>{const _0x138448=_0x226758;_0xfbbd81({'type':UserDataActionType[_0x138448(0xd5)],'payload':{'id':_0x446df0,'page':_0x17f88b}});},[]),_0x53b92a=_0x2f0597[_0x226758(0xa8)]((_0x136a2c,_0x543bf9)=>{const _0x519f35=_0x226758;_0xfbbd81({'type':UserDataActionType[_0x519f35(0x17c)],'payload':{'categories':_0x136a2c,'hasRecentAssets':_0x543bf9,'isAdmin':_0x438f80}});},[_0x438f80]),_0x5db81e=_0x2f0597[_0x226758(0xa8)](_0x40c8b5=>{const _0xc114da=_0x226758;_0xfbbd81({'type':UserDataActionType[_0xc114da(0x19d)],'payload':_0x40c8b5});},[]),_0x22a137=_0x2f0597[_0x226758(0xa8)](()=>{const _0xb43a8=_0x226758;_0xfbbd81({'type':UserDataActionType[_0xb43a8(0x1fd)]});},[]),_0x15429a=_0x2f0597[_0x226758(0xa8)](()=>{const _0x193032=_0x226758;_0xfbbd81({'type':UserDataActionType[_0x193032(0x1ce)]});},[]),_0xaaf6ac=_0x2f0597[_0x226758(0xa8)](_0x3d3893=>{const _0xe34c5c=_0x226758;_0xfbbd81({'type':UserDataActionType[_0xe34c5c(0x29f)],'payload':_0x3d3893});},[]);return _0x2f0597[_0x226758(0x1ca)](()=>{const _0x1db8a4=_0x226758;persistData(_0x3d1499,_0x104a62[_0x1db8a4(0x269)]);},[_0x3d1499]),Object['assign'](Object[_0x226758(0x224)]({},_0x3d1499),{'isAdmin':_0x438f80,'onAssetsPerPageChange':_0x48742f,'onCoverModeToggle':_0x22a137,'onDialogDimensionsChange':_0x5db81e,'onNavbarToggle':_0x15429a,'onNavbarWidthChange':_0xaaf6ac,'onSortByChange':_0xfc384c,'onSortOrderToggle':_0x52efa1,'onThumbSizeChange':_0x196d6a,'onViewChange':_0x58b97c,'onViewInit':_0x53b92a,'onViewPageChange':_0x3bc3f2});},UserProvider=({children:_0x3622c4,id:_0x38496f})=>{const _0x293787=_0x519ca6,_0x29aff1=useUserData(_0x38496f);return _0x366a17[_0x293787(0xcc)](UserDataContext[_0x293787(0x121)],{'value':_0x29aff1},_0x3622c4);},NotificationsContext=_0x366a17[_0x519ca6(0x9e)]({'bottomOffsetEl':null,'dismissNotification':noOp,'notifications':[],'pushNotification':noOp,'setBottomOffsetEl':noOp}),useNotifications=()=>{const _0x2edbd9=_0x519ca6;return _0x366a17[_0x2edbd9(0x103)](NotificationsContext);},MAX_NOTIFICATIONS=0x3,TIMEOUT_MULTIPLIER=0x64,TIMEOUT_AUTO_HIDE=0x1f4,NotificationsProvider=({children:_0x1dd0b9})=>{const _0x9b0ff2=_0x519ca6,[_0x4a758a,_0xe37131]=_0x366a17[_0x9b0ff2(0x180)]([]),[_0x2c2549,_0x1a9e44]=_0x366a17[_0x9b0ff2(0x180)](null),_0x214611=_0x366a17[_0x9b0ff2(0x13a)]({}),_0x143834=_0x149a00=>{const _0x37cf6e=_0x9b0ff2;_0xe37131(_0xbd757b=>_0xbd757b[_0x37cf6e(0x211)](_0x4191d1=>_0x4191d1['id']!==_0x149a00));},_0x5212b5=_0x366a17[_0x9b0ff2(0xa8)]((_0x4a6c9f,_0x3c5d9e)=>{const _0x2a6684=_0x9b0ff2;_0x214611[_0x2a6684(0x269)][_0x4a6c9f]=setTimeout(()=>{const _0x4af7f3=_0x2a6684;_0x143834(_0x4a6c9f),delete _0x214611[_0x4af7f3(0x269)][_0x4a6c9f];},_0x3c5d9e);},[]),_0x259408=_0x7921fe=>{const _0x222d2d=_0x9b0ff2,_0x369b3b=nanoid();_0xe37131(_0x18e7be=>[..._0x18e7be,Object[_0x222d2d(0x224)](Object[_0x222d2d(0x224)]({},_0x7921fe),{'id':_0x369b3b})]);if(_0x7921fe[_0x222d2d(0x142)]===_0x222d2d(0x9c))return;_0x5212b5(_0x369b3b,_0x7921fe[_0x222d2d(0x19e)]['length']*TIMEOUT_MULTIPLIER);};return _0x366a17[_0x9b0ff2(0x1ca)](()=>{if(_0x4a758a['length']>MAX_NOTIFICATIONS){const {id:_0x457087}=_0x4a758a[0x0];_0x5212b5(_0x457087,TIMEOUT_AUTO_HIDE);}},[_0x4a758a,_0x5212b5]),_0x366a17[_0x9b0ff2(0x1ca)](()=>{return()=>{const _0x10250c=_0x1c8d;Object[_0x10250c(0x133)](_0x214611[_0x10250c(0x269)])[_0x10250c(0x1e8)](_0xabcb19=>{clearTimeout(_0xabcb19);});};},[]),_0x366a17[_0x9b0ff2(0xcc)](NotificationsContext[_0x9b0ff2(0x121)],{'value':{'bottomOffsetEl':_0x2c2549,'dismissNotification':_0x143834,'notifications':_0x4a758a,'pushNotification':_0x259408,'setBottomOffsetEl':_0x1a9e44}},_0x1dd0b9);},UIProviderDialogMode=_0x9b6486=>{const _0x4183f0=_0x519ca6;var {children:_0x29f177,dialog:_0x168820,dialogDimensions:_0x1e409c,onDialogDimensionsChange:_0x11c53e}=_0x9b6486,_0x2bd23f=__rest(_0x9b6486,[_0x4183f0(0x23e),'dialog',_0x4183f0(0x208),_0x4183f0(0x18d)]);const {t:_0x1f5030}=useTranslation();return _0x366a17[_0x4183f0(0xcc)](_0x38c812,Object[_0x4183f0(0x224)]({'dialog':Object[_0x4183f0(0x224)](Object[_0x4183f0(0x224)]({'closeLabel':_0x1f5030(_0x4183f0(0x254)),'height':_0x4183f0(0xc5),'minHeight':0x1f4,'minWidth':0x2bc,'onDragEnd':_0x11c53e,'onResizeEnd':_0x11c53e,'resizeSELabel':_0x1f5030(_0x4183f0(0x27c)),'resizeSWLabel':_0x1f5030(_0x4183f0(0x27c)),'width':_0x4183f0(0xc5)},typeof _0x168820===_0x4183f0(0x1c4)?{'open':!![]}:_0x168820),_0x1e409c)},_0x2bd23f),_0x29f177);},UIProviderContainerMode=_0x2615fd=>{const _0x44e037=_0x519ca6;return _0x366a17[_0x44e037(0xcc)](_0x38c812,Object['assign']({},_0x2615fd));},UIProvider=({children:_0x3df6f3,dialog:_0x21a292,theme:_0x1e3045})=>{const _0x3edbcd=_0x519ca6,{dialogDimensions:_0xaeb25,onDialogDimensionsChange:_0x4b918d,onNavbarToggle:_0x3b5b7b,onNavbarWidthChange:_0x4cd288,navbarCollapsed:_0x1a3198,navbarWidth:_0x458cf9}=useUserData$1(),_0x26c37b={'children':_0x3df6f3,'theme':_0x1e3045,'onNavbarCollapse':_0x3b5b7b,'onNavbarWidthChange':_0x4cd288,'navbarCollapsed':_0x1a3198,'navbarWidth':_0x458cf9};if(_0x21a292)return _0x366a17['createElement'](UIProviderDialogMode,Object[_0x3edbcd(0x224)]({'dialog':_0x21a292,'dialogDimensions':_0xaeb25,'onDialogDimensionsChange':_0x4b918d},_0x26c37b));return _0x366a17['createElement'](UIProviderContainerMode,Object[_0x3edbcd(0x224)]({},_0x26c37b));},MIN_LOADER_SHOWING_TIME=0xfa,DELAY_BEFORE_SHOWING_LOADER=0xc8,useLoader=(_0x93e668,_0x2b0372)=>{const _0x49cd49=useDeferredUnmount(_0x93e668,MIN_LOADER_SHOWING_TIME),_0x4c0a48=useDelay(_0x2b0372,DELAY_BEFORE_SHOWING_LOADER),_0x40bf8a=useDeferredUnmount(_0x4c0a48,MIN_LOADER_SHOWING_TIME);return{'showPrimaryLoader':_0x49cd49,'showSecondaryLoader':_0x40bf8a};},GalleryLoader=({assetsPerPage:_0x4fc509,estimatedTotalAssetsCount:_0x5a8ec4,pageNumber:_0x4027e0,fallbackContent:_0xb67547,thumbSize:_0xd36fbf})=>{const _0x339060=_0x519ca6,_0x242ec3=Math[_0x339060(0xe7)](_0x5a8ec4/_0x4fc509);let _0x145690=0x0;if(_0x242ec3===0x1&&_0x4027e0===0x1)_0x145690=_0x5a8ec4;else{if(_0x4027e0===_0x242ec3){const _0x192097=_0x4fc509*(_0x4027e0-0x1);_0x145690=_0x5a8ec4%_0x192097;}else _0x4027e0<_0x242ec3&&(_0x145690=_0x4fc509);}if(_0x145690===0x0)return _0x366a17[_0x339060(0xcc)](_0x366a17[_0x339060(0xd4)],null,_0xb67547,_0x366a17[_0x339060(0xcc)](_0x339060(0x25c),{'data-testid':_0x339060(0x200)}));return _0x366a17['createElement'](Gallery,{'zoom':_0xd36fbf},Array[_0x339060(0x25a)]({'length':_0x145690})[_0x339060(0x262)]((_0x18d3c6,_0x16bf70)=>{const _0x53f30e=_0x339060;return _0x366a17[_0x53f30e(0xcc)](GalleryItem,{'active':![],'name':'','key':_0x16bf70,'loading':!![]});}));},THUMBNAIL_BREAKPOINTS=[0x8c,0x118,0x230,0x460],DOC_ICONS={'xls':'Excel','xlsx':_0x519ca6(0x260),'psd':_0x519ca6(0x18e),'avi':'Movie','mp4':'Movie','mov':_0x519ca6(0xd6),'webm':'Movie','mp3':'Music','aac':_0x519ca6(0x29a),'flac':_0x519ca6(0x29a),'ogg':_0x519ca6(0x29a),'wav':_0x519ca6(0x29a),'weba':_0x519ca6(0x29a),'pdf':_0x519ca6(0x137),'ppt':_0x519ca6(0xcb),'pptx':_0x519ca6(0xcb),'txt':_0x519ca6(0x1e5),'doc':'Word','docx':_0x519ca6(0x278),'7z':'Archive','zip':_0x519ca6(0x299),'rar':_0x519ca6(0x299)},MAX_COVER_RATIO=0x4,defaultSrcSet={'optional':[],'default':[]},useSrcSet=(_0x48ecc9,{id:_0x5ef00b,originalHeight:_0x2e83d4,originalWidth:_0x2a06e9})=>{const _0xf76fdb=_0x519ca6,{api:_0x2662a0}=useApi();if(!_0x2e83d4||!_0x2a06e9)return{'srcSet':defaultSrcSet};const _0xc85fbd=(_0x4078d4,_0x16339c)=>({'defaultSrc':_0x2662a0[_0xf76fdb(0x221)][_0xf76fdb(0x194)](_0x5ef00b,_0x4078d4,_0x16339c),'optionalSrc':_0x2662a0[_0xf76fdb(0x221)][_0xf76fdb(0x194)](_0x5ef00b,_0x4078d4,_0x16339c,'webp')}),_0x2cfaf8=_0x2a06e9/_0x2e83d4,_0x2229e2=_0x48ecc9[_0xf76fdb(0x262)](_0x40371d=>{const _0x5e57cd=_0xf76fdb;if(_0x2cfaf8>=0x1/MAX_COVER_RATIO&&_0x2cfaf8<=MAX_COVER_RATIO){if(_0x2cfaf8>=0x1){const _0x3142bf=_0x2e83d4/_0x40371d;if(_0x3142bf>=0x1)return Object[_0x5e57cd(0x224)]({'breakpoint':_0x40371d,'cover':!![]},_0xc85fbd(Math[_0x5e57cd(0x13c)](_0x2a06e9/_0x3142bf),_0x40371d));}else{const _0x593927=_0x2a06e9/_0x40371d;if(_0x593927>=0x1)return Object[_0x5e57cd(0x224)]({'breakpoint':_0x40371d,'cover':!![]},_0xc85fbd(_0x40371d,Math['round'](_0x2e83d4/_0x593927)));}}return Object[_0x5e57cd(0x224)]({'breakpoint':_0x40371d,'cover':![]},_0xc85fbd(_0x40371d,_0x40371d));}),_0x15a48b=_0x2229e2[_0xf76fdb(0x18f)]((_0x163856,{breakpoint:_0x235aae,defaultSrc:_0x533b35,optionalSrc:_0x6cfc51})=>({'optional':[..._0x163856['optional'],_0x6cfc51+'\x20'+_0x235aae+'w'],'default':[..._0x163856[_0xf76fdb(0x16d)],_0x533b35+'\x20'+_0x235aae+'w']}),{'optional':[],'default':[]}),_0x1b12c1=_0x2229e2[_0xf76fdb(0x18f)]((_0x94ea8d,{breakpoint:_0x1f24ef,cover:_0x3bf316})=>Object[_0xf76fdb(0x224)](Object[_0xf76fdb(0x224)]({},_0x94ea8d),{[_0x1f24ef]:_0x3bf316}),{});return{'srcSet':_0x15a48b,'cover':_0x1b12c1};},AssetPreview=({allowCover:_0x13658d,blurHash:_0x5529a2,containerRef:_0x1f63cf,height:_0x14f749,id:_0x49366a,name:_0x100c16,description:_0x233f6f,width:_0x4faa33,onError:_0x28424f})=>{const _0x283da5=_0x519ca6,{cover:_0x440e1c,srcSet:_0x3d541d}=useSrcSet(THUMBNAIL_BREAKPOINTS,{'id':_0x49366a,'originalHeight':_0x14f749,'originalWidth':_0x4faa33});return _0x366a17[_0x283da5(0xcc)](ResponsiveImage,{'alt':_0x233f6f||_0x100c16,'blurHash':_0x5529a2,'breakpoints':THUMBNAIL_BREAKPOINTS,'cover':_0x13658d?_0x440e1c:undefined,'container':_0x1f63cf,'height':_0x14f749,'srcSet':_0x3d541d,'optionalSrcMimeType':_0x283da5(0x2a7),'width':_0x4faa33,'onError':_0x28424f});},Asset=({allowCover:_0xa7d439,blurHash:_0x4debd9,containerRef:_0x33bf0f,extension:_0x324638,height:_0x233f3a,id:_0x1873da,name:_0x30abeb,description:_0x157cba,width:_0x4f6eb5})=>{const _0x2ccabc=_0x519ca6,[_0x20bf53,_0x1c59b9]=_0x366a17['useState'](canAssetBePreviewed(_0x324638));if(_0x20bf53)return _0x366a17['createElement'](AssetPreview,{'allowCover':_0xa7d439,'blurHash':_0x4debd9,'containerRef':_0x33bf0f,'height':_0x233f3a,'id':_0x1873da,'name':_0x30abeb,'description':_0x157cba,'width':_0x4f6eb5,'onError':()=>_0x1c59b9(![])});const _0x5ea0b4=DOC_ICONS[_0x324638];if(_0x5ea0b4)return _0x366a17[_0x2ccabc(0xcc)](DocIcon,{'name':_0x5ea0b4});return _0x366a17[_0x2ccabc(0xcc)](DocIcon,{'name':_0x2ccabc(0x10c)});},AssetGalleryItem=({active:_0x7be812,allowCover:_0x29e446,blurHash:_0x215efc,containerRef:_0x370889,extension:_0x188a49,height:_0x4fbb43,id:_0x272b4f,name:_0x47c1d1,description:_0x32c243,onKeyDown:_0x3d59ca,onMouseDown:_0x4e3b22,setAssetRef:_0x2776af,width:_0x392069})=>{const _0x476552=_0x519ca6,_0x599e42={'active':_0x7be812,'name':_0x47c1d1,'onKeyDown':_0x3d59ca(_0x272b4f),'onMouseDown':_0x4e3b22(_0x272b4f),'ref':_0x2776af(_0x272b4f)};return _0x366a17['createElement'](GalleryItem,Object[_0x476552(0x224)]({},_0x599e42),_0x366a17[_0x476552(0xcc)](GalleryFigure,{'caption':_0x188a49},_0x366a17[_0x476552(0xcc)](Asset,{'allowCover':_0x29e446,'blurHash':_0x215efc,'containerRef':_0x370889,'extension':_0x188a49,'height':_0x4fbb43,'id':_0x272b4f,'name':_0x47c1d1,'description':_0x32c243,'width':_0x392069})));};var AssetGalleryItem$1=_0x366a17[_0x519ca6(0x29e)](AssetGalleryItem);const AssetsContent=({allowCover:_0x2ea08e,assetsPerPage:_0x3e620e,assets:_0x9607b8,containerRef:_0xc2aad6,estimatedTotalAssetsCount:_0x2e0570,fallbackContent:_0x48d2f0,isLoading:_0x21b8b2,onAssetKeyDown:_0x214087,onAssetMouseDown:_0x46f0db,onSelectionAreaChange:_0x5010e1,pageNumber:_0x23f5b1,selectedAssets:_0x13971,setAssetRef:_0x53fa4f,thumbSize:_0x5d76dc})=>{const _0x162faf=_0x519ca6;if(_0x21b8b2)return _0x366a17[_0x162faf(0xcc)](GalleryLoader,{'assetsPerPage':_0x3e620e,'estimatedTotalAssetsCount':_0x2e0570,'fallbackContent':_0x48d2f0,'pageNumber':_0x23f5b1,'thumbSize':_0x5d76dc});if(_0x9607b8[_0x162faf(0xd0)]===0x0&&!_0x21b8b2)return _0x366a17[_0x162faf(0xcc)](_0x366a17[_0x162faf(0xd4)],null,_0x48d2f0);return _0x366a17['createElement'](Gallery,{'zoom':_0x5d76dc},_0x9607b8['map'](({name:_0x12d6e7,id:_0x6be141,extension:_0x2e1de0,metadata:_0x45ba06})=>_0x366a17['createElement'](AssetGalleryItem$1,{'active':!!_0x13971[_0x6be141],'allowCover':_0x2ea08e,'blurHash':_0x45ba06['blurHash'],'containerRef':_0xc2aad6,'extension':_0x2e1de0,'height':_0x45ba06['height'],'id':_0x6be141,'key':_0x6be141,'name':_0x12d6e7,'description':_0x45ba06[_0x162faf(0xf9)],'onKeyDown':_0x214087,'onMouseDown':_0x46f0db,'setAssetRef':_0x53fa4f,'width':_0x45ba06['width']})),_0x366a17['createElement'](SelectionArea,{'container':_0xc2aad6,'onSelectionChange':_0x5010e1,'ignoredSelector':_0x162faf(0x1b5)}));},parseAssetMetadata=_0x8e78c6=>{const _0x5ef3aa=_0x519ca6;var _0x34386a,_0x4e6d13,_0x3a4fa8,_0x31ebac,_0x3666b9;return{'blurHash':(_0x34386a=_0x8e78c6===null||_0x8e78c6===void 0x0?void 0x0:_0x8e78c6[_0x5ef3aa(0x1da)])!==null&&_0x34386a!==void 0x0?_0x34386a:undefined,'description':(_0x4e6d13=_0x8e78c6===null||_0x8e78c6===void 0x0?void 0x0:_0x8e78c6[_0x5ef3aa(0xf9)])!==null&&_0x4e6d13!==void 0x0?_0x4e6d13:'','width':(_0x3a4fa8=_0x8e78c6===null||_0x8e78c6===void 0x0?void 0x0:_0x8e78c6['width'])!==null&&_0x3a4fa8!==void 0x0?_0x3a4fa8:undefined,'height':(_0x31ebac=_0x8e78c6===null||_0x8e78c6===void 0x0?void 0x0:_0x8e78c6['height'])!==null&&_0x31ebac!==void 0x0?_0x31ebac:undefined,'customAttributes':(_0x3666b9=_0x8e78c6===null||_0x8e78c6===void 0x0?void 0x0:_0x8e78c6[_0x5ef3aa(0x241)])!==null&&_0x3666b9!==void 0x0?_0x3666b9:undefined};},parseAsset=_0x464930=>{const _0x1d0448=_0x519ca6;var _0x3649f8,_0x376c5e,_0x28bf3f,_0x21dc1b,_0x157cbe,_0x6b053c,_0x2317db;return{'id':(_0x3649f8=_0x464930===null||_0x464930===void 0x0?void 0x0:_0x464930['id'])!==null&&_0x3649f8!==void 0x0?_0x3649f8:'','name':(_0x376c5e=_0x464930===null||_0x464930===void 0x0?void 0x0:_0x464930[_0x1d0448(0x28d)])!==null&&_0x376c5e!==void 0x0?_0x376c5e:'','extension':(_0x28bf3f=_0x464930===null||_0x464930===void 0x0?void 0x0:_0x464930[_0x1d0448(0x256)])!==null&&_0x28bf3f!==void 0x0?_0x28bf3f:'','size':(_0x21dc1b=_0x464930===null||_0x464930===void 0x0?void 0x0:_0x464930[_0x1d0448(0x195)])!==null&&_0x21dc1b!==void 0x0?_0x21dc1b:undefined,'uploadedAt':(_0x157cbe=_0x464930===null||_0x464930===void 0x0?void 0x0:_0x464930['uploadedAt'])!==null&&_0x157cbe!==void 0x0?_0x157cbe:undefined,'metadata':parseAssetMetadata((_0x6b053c=_0x464930===null||_0x464930===void 0x0?void 0x0:_0x464930['metadata'])!==null&&_0x6b053c!==void 0x0?_0x6b053c:undefined),'categoryId':(_0x2317db=_0x464930===null||_0x464930===void 0x0?void 0x0:_0x464930[_0x1d0448(0x149)])!==null&&_0x2317db!==void 0x0?_0x2317db:''};},parseAssets=_0x51fa28=>{const _0x2ed810=_0x519ca6;return(_0x51fa28!==null&&_0x51fa28!==void 0x0?_0x51fa28:[])[_0x2ed810(0x262)](parseAsset);},parseCategory=_0x56beda=>{const _0x1f2fa6=_0x519ca6;var _0x10e2df,_0x197bf1,_0x4afc56,_0x537fcc;return{'id':(_0x10e2df=_0x56beda===null||_0x56beda===void 0x0?void 0x0:_0x56beda['id'])!==null&&_0x10e2df!==void 0x0?_0x10e2df:'','assetsCount':(_0x197bf1=_0x56beda===null||_0x56beda===void 0x0?void 0x0:_0x56beda[_0x1f2fa6(0x1af)])!==null&&_0x197bf1!==void 0x0?_0x197bf1:0x0,'name':(_0x4afc56=_0x56beda===null||_0x56beda===void 0x0?void 0x0:_0x56beda[_0x1f2fa6(0x28d)])!==null&&_0x4afc56!==void 0x0?_0x4afc56:'','extensions':(_0x537fcc=_0x56beda===null||_0x56beda===void 0x0?void 0x0:_0x56beda[_0x1f2fa6(0xc0)])!==null&&_0x537fcc!==void 0x0?_0x537fcc:[]};},parseAdminCategories=(_0x928eec,_0x8f4b88=[])=>{const _0x11798a=_0x519ca6;var _0x4322d7;const _0x1d66ea=(_0x4322d7=_0x928eec===null||_0x928eec===void 0x0?void 0x0:_0x928eec[_0x11798a(0x257)])!==null&&_0x4322d7!==void 0x0?_0x4322d7:[],_0x5bd1bd=_0x8f4b88[_0x11798a(0x211)](_0x5ad0c1=>{const _0x186c33=_0x11798a;var _0x2ae031;return!!((_0x2ae031=_0x5ad0c1===null||_0x5ad0c1===void 0x0?void 0x0:_0x5ad0c1[_0x186c33(0x20e)])===null||_0x2ae031===void 0x0?void 0x0:_0x2ae031[_0x186c33(0xdf)]);}),_0x41747c=_0x1d66ea[_0x11798a(0x262)](_0xb9346e=>{const _0x48071d=_0x11798a;var _0x47df85;const _0x1b24b5=_0x8f4b88[_0x48071d(0x1bb)](_0x581dd3=>_0x581dd3['id']===_0xb9346e['id']),_0x4ca525=Object[_0x48071d(0x224)](Object[_0x48071d(0x224)]({},parseCategory(_0xb9346e)),{'extensionsInUse':(_0x47df85=_0xb9346e[_0x48071d(0x218)])!==null&&_0x47df85!==void 0x0?_0x47df85:[]});if(_0xb9346e['id']&&_0x1b24b5)return Object[_0x48071d(0x224)](Object[_0x48071d(0x224)]({},_0x4ca525),{'stage':_0x1b24b5[_0x48071d(0x20e)]});return _0x4ca525;});return _0x5bd1bd[_0x11798a(0x225)](_0x41747c);},parseCategories=_0x42dbde=>{const _0x3c9f88=_0x519ca6;return(_0x42dbde!==null&&_0x42dbde!==void 0x0?_0x42dbde:[])[_0x3c9f88(0x262)](parseCategory);},useApiErrors=()=>{const _0x800fc7=_0x519ca6,{pushNotification:_0x4cb3ab}=useNotifications(),{t:_0x1a88ac}=useTranslation(),_0xebb572=_0x28f821=>_0x800fc7(0x144)+_0x28f821,_0xc91768=(_0x1f7dff,_0x571e23)=>{const _0x2da1ba=_0x800fc7,_0x2ea4f5=new ApiErrorHandler();_0x2ea4f5[_0x2da1ba(0x1be)](new ValidationErrorHandler(_0x416bf4=>{const _0x442688=_0x2da1ba;var _0xfe96c5,_0x1e83c6,_0x57c937;const _0x1ca75b=((_0x1e83c6=(_0xfe96c5=_0x416bf4[_0x442688(0x22b)])===null||_0xfe96c5===void 0x0?void 0x0:_0xfe96c5[_0x442688(0x16f)])===null||_0x1e83c6===void 0x0?void 0x0:_0x1e83c6[_0x442688(0x104)])[0x0];_0x4cb3ab({'type':_0x442688(0x9c),'title':_0x1a88ac(_0x442688(0x14b)),'details':[_0x1ca75b[_0x442688(0x1d8)]('.')?_0x1ca75b:_0x1ca75b+'.',((_0x57c937=_0x416bf4[_0x442688(0x22b)])===null||_0x57c937===void 0x0?void 0x0:_0x57c937[_0x442688(0x206)])?_0xebb572(_0x416bf4[_0x442688(0x22b)][_0x442688(0x206)]):'']});}),new UnauthorizedErrorHandler(_0x67376e=>{const _0x5dbd92=_0x2da1ba;var _0xc21326;_0x4cb3ab({'type':_0x5dbd92(0x9c),'title':_0x1a88ac(_0x5dbd92(0x210)),'details':((_0xc21326=_0x67376e[_0x5dbd92(0x22b)])===null||_0xc21326===void 0x0?void 0x0:_0xc21326[_0x5dbd92(0x206)])?_0xebb572(_0x67376e['response']['traceId']):''});}),new ServerErrorHandler(_0xc9a9a5=>{const _0x4097c1=_0x2da1ba;var _0x55629e;_0x4cb3ab({'type':_0x4097c1(0x9c),'title':_0x1a88ac(_0x4097c1(0x27a)),'details':((_0x55629e=_0xc9a9a5[_0x4097c1(0x22b)])===null||_0x55629e===void 0x0?void 0x0:_0x55629e[_0x4097c1(0x206)])?_0xebb572(_0xc9a9a5['response'][_0x4097c1(0x206)]):''});}),new MissingResourceErrorHandler(_0x1a0735=>{const _0x50bf2c=_0x2da1ba;var _0x45146b;_0x4cb3ab({'type':_0x50bf2c(0x9c),'title':_0x1a88ac(_0x50bf2c(0x23a)),'details':((_0x45146b=_0x1a0735['response'])===null||_0x45146b===void 0x0?void 0x0:_0x45146b[_0x50bf2c(0x206)])?_0xebb572(_0x1a0735[_0x50bf2c(0x22b)][_0x50bf2c(0x206)]):''});}),new UnknownErrorHandler(_0x49f746=>{const _0x5c0c78=_0x2da1ba;var _0x22a19d;_0x4cb3ab({'type':_0x5c0c78(0x9c),'title':_0x1a88ac(_0x5c0c78(0xe5)),'details':((_0x22a19d=_0x49f746[_0x5c0c78(0x22b)])===null||_0x22a19d===void 0x0?void 0x0:_0x22a19d[_0x5c0c78(0x206)])?_0xebb572(_0x49f746[_0x5c0c78(0x22b)][_0x5c0c78(0x206)]):''});})),_0x571e23&&(Array[_0x2da1ba(0x1db)](_0x571e23)?_0x2ea4f5[_0x2da1ba(0x1be)](..._0x571e23):_0x2ea4f5[_0x2da1ba(0x1be)](_0x571e23)),_0x2ea4f5[_0x2da1ba(0x24e)](_0x1f7dff);};return{'handleApiError':_0xc91768};},useAssetErrors=()=>{const {pushNotification:_0x3682c3}=useNotifications(),{t:_0xf96452}=useTranslation(),_0x467be8=()=>{const _0x2fdcfb=_0x1c8d;_0x3682c3({'type':'error','title':_0xf96452(_0x2fdcfb(0x166))});};return{'pushMissingAssetErrorNotification':_0x467be8};},useCategoryErrors=()=>{const {pushNotification:_0x480b54}=useNotifications(),{t:_0x1521df}=useTranslation(),_0x583cea=()=>{const _0x16fdf7=_0x1c8d;_0x480b54({'type':_0x16fdf7(0x9c),'title':_0x1521df('Category\x20not\x20found.')});};return{'pushMissingCategoryErrorNotification':_0x583cea};},useQuery=(_0x4d572b,_0xd4b92f,_0x5ccf48)=>{const _0x43d350=_0x519ca6,{handleApiError:_0x357d16}=useApiErrors();return _0x4ae339(_0x4d572b,_0xd4b92f,Object[_0x43d350(0x224)](Object[_0x43d350(0x224)]({},_0x5ccf48),{'onError':_0x159a84=>{const _0x3a4ad3=_0x43d350;var _0x8855e8;const _0x3bd426=(_0x8855e8=_0x5ccf48===null||_0x5ccf48===void 0x0?void 0x0:_0x5ccf48[_0x3a4ad3(0x223)])===null||_0x8855e8===void 0x0?void 0x0:_0x8855e8['call'](_0x5ccf48,_0x159a84);_0x357d16(_0x159a84,_0x3bd426);}}));},useGetCategoryAssets=(_0x4d4aa1,_0x48d812=!![])=>{const _0x3cf468=_0x519ca6,{api:_0x362946}=useApi(),{categoryId:_0x1d0161,limit:_0xc89130,offset:_0xb7fa11,sort_by:_0x342bd9,order:_0x4db996}=_0x4d4aa1,{pushMissingCategoryErrorNotification:_0x1b9702}=useCategoryErrors(),_0x32d4fa=useQueryClient();return useQuery([_0x3cf468(0x222),_0x1d0161,_0xc89130,_0xb7fa11,_0x342bd9,_0x4db996],async()=>{const _0x4164e4=_0x3cf468;var _0xc3b794;const _0x27733a=await _0x362946[_0x4164e4(0x221)][_0x4164e4(0x1e0)](_0x4d4aa1);return{'totalCount':_0x27733a===null||_0x27733a===void 0x0?void 0x0:_0x27733a[_0x4164e4(0x163)],'items':parseAssets((_0xc3b794=_0x27733a===null||_0x27733a===void 0x0?void 0x0:_0x27733a[_0x4164e4(0x257)])!==null&&_0xc3b794!==void 0x0?_0xc3b794:[])};},{'keepPreviousData':!![],'enabled':_0x48d812,'retry':![],'onError':()=>new MissingResourceErrorHandler(()=>{const _0x55486e=_0x3cf468;_0x32d4fa['invalidateQueries'](_0x55486e(0x234)),_0x32d4fa[_0x55486e(0x27f)](_0x55486e(0x1bd)),_0x1b9702();})});},useMutation=(_0x37b784,_0x4c9923)=>{const _0x4d2523=_0x519ca6,{handleApiError:_0xd3dfdb}=useApiErrors(),_0x3146de=_0x2b3e8b(_0x37b784,Object[_0x4d2523(0x224)](Object[_0x4d2523(0x224)]({},_0x4c9923),{'onError':(_0x43fd1a,_0x1dc793,_0x2c9d98)=>{const _0x4378cc=_0x4d2523;var _0x1358f0;const _0x21ed97=(_0x1358f0=_0x4c9923===null||_0x4c9923===void 0x0?void 0x0:_0x4c9923[_0x4378cc(0x223)])===null||_0x1358f0===void 0x0?void 0x0:_0x1358f0[_0x4378cc(0xce)](_0x4c9923,_0x43fd1a,_0x1dc793,_0x2c9d98);_0xd3dfdb(_0x43fd1a,_0x21ed97);}})),{mutateAsync:_0x3362e4}=_0x3146de,_0x2bd6a1=__rest(_0x3146de,[_0x4d2523(0x10e)]),_0x2d6be7=async(_0x43998b,_0x507913)=>{try{const _0x19528c=await _0x3362e4(_0x43998b,_0x507913);return{'data':_0x19528c};}catch(_0x4570c5){return{'data':undefined,'isError':!![]};}};return Object['assign'](Object['assign']({},_0x2bd6a1),{'mutateAsync':_0x2d6be7});},useDeleteAssets=()=>{const {api:_0x2d5cf5}=useApi(),_0x5a0f32=useQueryClient(),{pushNotification:_0x44351a}=useNotifications(),{t:_0x36fd89}=useTranslation();return useMutation(_0x1bb36e=>{const _0xf77eb5=_0x1c8d,_0x428f8c=Object['keys'](_0x1bb36e);return _0x2d5cf5[_0xf77eb5(0x221)][_0xf77eb5(0x1fc)](_0x428f8c);},{'onSuccess':(_0x5decb2,_0xa0dc8d)=>{const _0x417991=_0x1c8d,_0x722444=new Set(),_0x50b4fe=Object[_0x417991(0x26e)](_0xa0dc8d)[_0x417991(0xd0)];for(const {categoryId:_0x34b608}of Object[_0x417991(0x133)](_0xa0dc8d)){if(_0x722444['has'](_0x34b608))continue;_0x722444[_0x417991(0xb9)](_0x34b608),_0x5a0f32['invalidateQueries']([_0x417991(0x222),_0x34b608]),_0x5a0f32[_0x417991(0x27f)]('recent');}_0x44351a({'type':_0x417991(0x115),'title':_0x36fd89(_0x417991(0x164),{'plural':_0x50b4fe,'values':[_0x50b4fe]})});}});},useGetRecentAssets=(_0x2ba985,_0x22ad8d=!![])=>{const _0x4219be=_0x519ca6,{api:_0x1ac111}=useApi(),{limit:_0x1e1670,offset:_0x505367}=_0x2ba985;return useQuery([_0x4219be(0x1bd),_0x1e1670,_0x505367,ApiSortingOrder[_0x4219be(0xe1)]],async()=>{const _0x17378a=_0x4219be;var _0x487a26;const _0x1404a4=await _0x1ac111[_0x17378a(0x221)][_0x17378a(0xba)](_0x2ba985);return{'totalCount':_0x1404a4===null||_0x1404a4===void 0x0?void 0x0:_0x1404a4['totalCount'],'items':parseAssets((_0x487a26=_0x1404a4===null||_0x1404a4===void 0x0?void 0x0:_0x1404a4[_0x17378a(0x257)])!==null&&_0x487a26!==void 0x0?_0x487a26:[])};},{'keepPreviousData':!![],'enabled':_0x22ad8d});},useUpdateAsset=()=>{const _0x50dd97=_0x519ca6,{api:_0x3f4f80}=useApi(),_0x3b93a3=useQueryClient(),{pushMissingAssetErrorNotification:_0x17fcf3}=useAssetErrors(),{pushNotification:_0x513607}=useNotifications(),{t:_0x5cd265}=useTranslation();return useMutation(({assetId:_0x411025,payload:_0x59ce17})=>_0x3f4f80['assets'][_0x50dd97(0x1ba)](_0x411025,_0x59ce17),{'onSuccess':(_0x27c9f9,{categoryId:_0x2350ed})=>{const _0x1d5094=_0x50dd97;_0x3b93a3[_0x1d5094(0x27f)]([_0x1d5094(0x222),_0x2350ed]),_0x3b93a3[_0x1d5094(0x27f)](_0x1d5094(0x1bd)),_0x513607({'type':_0x1d5094(0x115),'title':_0x5cd265(_0x1d5094(0x298))});},'onError':(_0x2a0cc2,_0x2251fd)=>new MissingResourceErrorHandler(()=>{const _0x4e4aa0=_0x50dd97;_0x3b93a3['invalidateQueries'](['category',_0x2251fd[_0x4e4aa0(0x149)]]),_0x3b93a3[_0x4e4aa0(0x27f)](_0x4e4aa0(0x1bd)),_0x17fcf3();})});},useUpdateAssetLastUse=()=>{const {api:_0x45b843}=useApi(),_0x1e9512=useQueryClient(),{pushMissingAssetErrorNotification:_0x50fd85}=useAssetErrors();return useMutation(_0x2b9661=>_0x45b843['assets']['updateAssetLastUse'](_0x2b9661),{'onSuccess':()=>{const _0x31f0fa=_0x1c8d;_0x1e9512[_0x31f0fa(0x27f)]('recent');},'onError':()=>new MissingResourceErrorHandler(()=>{const _0xcdc7a6=_0x1c8d;_0x1e9512['invalidateQueries'](_0xcdc7a6(0x1bd)),_0x50fd85();})});},useLazyGetAsset=()=>{const {api:_0x74a96b}=useApi(),{handleApiError:_0x4ace9c}=useApiErrors(),_0x1aef68=useQueryClient(),_0x145c53=async _0x5f2733=>{const _0x533a38=_0x1c8d;if(!_0x5f2733)return;try{return await _0x74a96b[_0x533a38(0x221)][_0x533a38(0x25d)](_0x5f2733['id']);}catch(_0x3a670b){await _0x1aef68['invalidateQueries']([_0x533a38(0x222),_0x5f2733[_0x533a38(0x149)]]),_0x4ace9c(_0x3a670b);}};return{'fetchAsset':_0x145c53};},useStageCategory=()=>{const _0x410925=useQueryClient(),_0x30a528=_0x57c47c=>{const _0x46254d=_0x1c8d;_0x410925['setQueryData']([_0x46254d(0x14a),_0x46254d(0x234)],_0x8900bd=>{const _0x538cba=_0x46254d,_0x2dfde5=Object[_0x538cba(0x224)](Object[_0x538cba(0x224)]({'id':nanoid()},_0x57c47c),{'stage':{'edit':!![],'newlyAdded':!![]}});return[_0x2dfde5]['concat'](_0x8900bd!==null&&_0x8900bd!==void 0x0?_0x8900bd:[]);});},_0x5dcb44=_0x3ea758=>{const _0x23f4c5=_0x1c8d;_0x410925[_0x23f4c5(0x205)]([_0x23f4c5(0x14a),'categories'],_0x57e925=>{const _0x4ca570=_0x23f4c5;return(_0x57e925!==null&&_0x57e925!==void 0x0?_0x57e925:[])[_0x4ca570(0x262)](_0x14e9c2=>_0x14e9c2['id']===_0x3ea758?Object[_0x4ca570(0x224)](Object[_0x4ca570(0x224)]({},_0x14e9c2),{'stage':Object[_0x4ca570(0x224)](Object[_0x4ca570(0x224)]({},_0x14e9c2[_0x4ca570(0x20e)]),{'edit':!![]})}):_0x14e9c2);});},_0x28da05=_0x13c429=>{const _0x4417ab=_0x1c8d;_0x410925['setQueryData']([_0x4417ab(0x14a),'categories'],_0x3e38ef=>{const _0x159208=_0x4417ab;return(_0x3e38ef!==null&&_0x3e38ef!==void 0x0?_0x3e38ef:[])[_0x159208(0x211)](_0x44734d=>{const _0x275588=_0x159208;var _0x3e2e6a;return!(((_0x3e2e6a=_0x44734d[_0x275588(0x20e)])===null||_0x3e2e6a===void 0x0?void 0x0:_0x3e2e6a[_0x275588(0xdf)])&&_0x44734d['id']===_0x13c429);});});},_0x22c7e3=_0x1c4f73=>{const _0x514def=_0x1c8d;_0x410925[_0x514def(0x205)]([_0x514def(0x14a),_0x514def(0x234)],_0x16a167=>{const _0x26a920=_0x514def;return(_0x16a167!==null&&_0x16a167!==void 0x0?_0x16a167:[])[_0x26a920(0x262)](_0x123cae=>_0x123cae['id']===_0x1c4f73?Object[_0x26a920(0x224)](Object['assign']({},_0x123cae),{'stage':undefined}):_0x123cae);});};return{'stageCategory':_0x30a528,'deleteCategory':_0x28da05,'editCategory':_0x5dcb44,'unstageCategory':_0x22c7e3};},useCreateCategory=()=>{const _0x4755c5=_0x519ca6,{api:_0x3b34f8}=useApi(),_0x1dec74=useQueryClient(),{deleteCategory:_0x4c5eb6}=useStageCategory(),{pushNotification:_0x2f9cec}=useNotifications(),{t:_0x2ebc6e}=useTranslation();return useMutation(_0x230db8=>_0x3b34f8[_0x4755c5(0x234)]['createCategory'](_0x230db8),{'onSuccess':(_0x472f3d,_0x222dc3)=>{const _0x162dd3=_0x4755c5;_0x1dec74[_0x162dd3(0x27f)](_0x162dd3(0x234)),_0x1dec74[_0x162dd3(0x27f)]([_0x162dd3(0x14a),_0x162dd3(0x234)]);if(_0x222dc3[_0x162dd3(0x149)])_0x4c5eb6(_0x222dc3['categoryId']);_0x2f9cec({'type':_0x162dd3(0x115),'title':_0x2ebc6e('Category\x20created\x20successfully.')});}});},useDeleteCategory=()=>{const _0x375781=_0x519ca6,{api:_0x2eeaae}=useApi(),_0x25e126=useQueryClient(),{pushMissingCategoryErrorNotification:_0x3c7a62}=useCategoryErrors(),{pushNotification:_0x1fc470}=useNotifications(),{t:_0x6e64e5}=useTranslation();return useMutation(({categoryId:_0x5f4de9})=>_0x2eeaae[_0x375781(0x234)][_0x375781(0x177)](_0x5f4de9),{'onSuccess':(_0x11ff3b,{categoryId:_0x30d16b})=>{const _0x3854ed=_0x375781;_0x25e126['invalidateQueries'](_0x3854ed(0x234)),_0x25e126['invalidateQueries']([_0x3854ed(0x14a),'categories']),_0x25e126[_0x3854ed(0x27f)](['category',_0x30d16b]),_0x1fc470({'type':_0x3854ed(0x115),'title':_0x6e64e5(_0x3854ed(0xb1))});},'onError':()=>new MissingResourceErrorHandler(()=>_0x3c7a62())});},useGetAdminCategories=()=>{const _0x3330f4=_0x519ca6,{api:_0x34fde5}=useApi(),_0x39cf4a=useQueryClient();return useQuery(['admin',_0x3330f4(0x234)],async()=>{const _0x4708b2=_0x3330f4,_0x214d70=await _0x34fde5[_0x4708b2(0x234)][_0x4708b2(0x277)]();return parseAdminCategories(_0x214d70,_0x39cf4a[_0x4708b2(0x212)]([_0x4708b2(0x14a),'categories']));});},useGetCategories=()=>{const _0x1d27f1=_0x519ca6,{api:_0x3e800c}=useApi();return useQuery(_0x1d27f1(0x234),async()=>{const _0x174875=_0x1d27f1,_0x4016f2=await _0x3e800c[_0x174875(0x234)][_0x174875(0x12f)]();return parseCategories(_0x4016f2===null||_0x4016f2===void 0x0?void 0x0:_0x4016f2['items']);});},useGetCategory=_0xfaf3bb=>{const _0x443e77=_0x519ca6,{api:_0x3f1fd7}=useApi(),{pushMissingCategoryErrorNotification:_0x2d8cfe}=useCategoryErrors();return useQuery([_0x443e77(0x234),_0xfaf3bb],async()=>{const _0x16a632=_0x443e77,_0x210e5e=await _0x3f1fd7[_0x16a632(0x234)]['getCategory'](_0xfaf3bb);return parseCategory(_0x210e5e);},{'onError':()=>new MissingResourceErrorHandler(()=>_0x2d8cfe())});},useUpdateCategory=()=>{const _0x1a7ed7=_0x519ca6,{api:_0x34c6e2}=useApi(),_0x1503c1=useQueryClient(),{pushMissingCategoryErrorNotification:_0x401b03}=useCategoryErrors(),{unstageCategory:_0x414b56}=useStageCategory(),{pushNotification:_0x149e17}=useNotifications(),{t:_0x326dfc}=useTranslation();return useMutation(({categoryId:_0x5b4b3b,payload:_0x2cdcb5})=>_0x34c6e2['categories'][_0x1a7ed7(0x102)](_0x5b4b3b,_0x2cdcb5),{'onSuccess':(_0x5d5ae7,{categoryId:_0xfe1e2f})=>{const _0x1d6e5b=_0x1a7ed7;_0x1503c1[_0x1d6e5b(0x27f)](_0x1d6e5b(0x234)),_0x1503c1[_0x1d6e5b(0x27f)]([_0x1d6e5b(0x14a),_0x1d6e5b(0x234)]),_0x414b56(_0xfe1e2f),_0x149e17({'type':_0x1d6e5b(0x115),'title':_0x326dfc(_0x1d6e5b(0x1ab))});},'onError':(_0x432fe4,_0x3c5967)=>new MissingResourceErrorHandler(()=>{const _0x19fc71=_0x1a7ed7;_0x1503c1[_0x19fc71(0x27f)](['admin',_0x19fc71(0x234)]),_0x414b56(_0x3c5967[_0x19fc71(0x149)]),_0x401b03();})});},useUpdateCategoriesOrder=()=>{const {api:_0x43aaa2}=useApi(),_0x293d6b=useQueryClient(),{pushMissingCategoryErrorNotification:_0x5cb45b}=useCategoryErrors(),{pushNotification:_0x13bc72}=useNotifications(),{t:_0xcd829a}=useTranslation();return useMutation(_0x21466d=>_0x43aaa2['categories']['updateCategoriesOrder'](_0x21466d),{'onSuccess':()=>{const _0x494c8a=_0x1c8d;_0x293d6b[_0x494c8a(0x27f)]('categories'),_0x293d6b[_0x494c8a(0x27f)]([_0x494c8a(0x14a),_0x494c8a(0x234)]),_0x13bc72({'type':'success','title':_0xcd829a(_0x494c8a(0x283))});},'onError':()=>new MissingResourceErrorHandler(()=>_0x5cb45b())});},useGetImagesConfig=()=>{const _0x4c766f=_0x519ca6,{api:_0x88c061}=useApi();return useQuery(_0x4c766f(0x110),async()=>{const _0x874d67=_0x4c766f,_0x1c5a68=await _0x88c061[_0x874d67(0x110)]['getImagesConfig']();return _0x1c5a68!==null&&_0x1c5a68!==void 0x0?_0x1c5a68:{};});},useUpdateImageFormatConfig=()=>{const _0x4b62d0=_0x519ca6,{api:_0x500f57}=useApi(),_0x275468=useQueryClient(),{pushNotification:_0x3e3627}=useNotifications(),{t:_0xa7b65b}=useTranslation();return useMutation(({format:_0x5dc525,payload:_0x342bb7})=>_0x500f57[_0x4b62d0(0x110)][_0x4b62d0(0x12e)](_0x5dc525,_0x342bb7),{'onSuccess':()=>{const _0x3a572e=_0x4b62d0;_0x275468[_0x3a572e(0x27f)]('images'),_0x3e3627({'type':_0x3a572e(0x115),'title':_0xa7b65b('Images\x20quality\x20updated\x20successfully.')});}});},DateComponent=({isoValue:_0x3a228a})=>{const _0x454a4a=_0x519ca6,{lang:_0x174e2a}=useTranslation();if(!_0x3a228a)return null;const _0x1ae677=new Date(Date['parse'](_0x3a228a))[_0x454a4a(0x26b)](_0x174e2a,{'year':_0x454a4a(0xe6),'month':_0x454a4a(0xe6),'day':'numeric'});return _0x366a17['createElement'](_0x454a4a(0x199),null,_0x1ae677);},getAssetSize=_0x486cda=>{const _0x3bf250=_0x519ca6;var _0x7c092d;if(_0x486cda===0x0)return _0x3bf250(0x26c);const _0x2fe8ed=0x400,_0x29a86b=['B','KB','MB','GB'],_0x31db6f=Math['floor'](Math[_0x3bf250(0x1b8)](_0x486cda)/Math['log'](_0x2fe8ed)),_0x4eac85=parseFloat((_0x486cda/Math[_0x3bf250(0x216)](_0x2fe8ed,_0x31db6f))[_0x3bf250(0x1e1)](0x1));return _0x4eac85+'\x20'+((_0x7c092d=_0x29a86b[_0x31db6f])!==null&&_0x7c092d!==void 0x0?_0x7c092d:'');},AssetSize=({size:_0x20d5a8})=>{const _0x1a716e=_0x519ca6;if(_0x20d5a8===undefined)return null;return _0x366a17[_0x1a716e(0xcc)](_0x1a716e(0x199),null,getAssetSize(_0x20d5a8));},useFormValidation$1=_0x1f3f58=>{const _0x2107ca=_0x519ca6,{t:_0x199a25}=useTranslation(),_0x5d8001=_0x199a25(_0x2107ca(0x28a)),_0x4ba5ec=_0x199a25(_0x2107ca(0x238)),_0x369655=_0x199a25(_0x2107ca(0x2a0)),_0x504bc7=_0x199a25(_0x2107ca(0x280));return{'description':{'maxLength':{'value':0x400,'message':_0x5d8001}},'extension':{'validate':{'nonEmpty':validators['nonEmpty'](_0x369655),'isAllowed':validators[_0x2107ca(0x9a)](_0x4ba5ec,_0x1f3f58)}},'name':{'validate':{'nonEmpty':validators[_0x2107ca(0x117)](_0x504bc7)}}};},AssetPropertiesDialog=({assetData:{id:_0x61fe7f,name:_0x5833d8,size:_0x477520,metadata:{description:_0x12cf87,width:_0x2b46a4,height:_0x218eaf,blurHash:_0x5d2868},uploadedAt:_0x258465,categoryId:_0xbd758e,extension:_0x4da413},focusFileName:_0x604247,onClose:_0xec6891,onSave:_0x6c8b07})=>{const _0x58a12e=_0x519ca6;var _0x546fbd,_0x218d8f;const [_0x49d18b,_0x60f5ed]=_0x366a17[_0x58a12e(0x180)](null),{t:_0x958230}=useTranslation(),{data:_0x5f26d5,isFetched:_0x628ad1}=useGetCategory(_0xbd758e),_0x1322de=useFormValidation$1((_0x546fbd=_0x5f26d5===null||_0x5f26d5===void 0x0?void 0x0:_0x5f26d5[_0x58a12e(0xc0)])!==null&&_0x546fbd!==void 0x0?_0x546fbd:[]),[_0x37cb8d,_0x51b3db]=_0x366a17['useState'](null),{handleSubmit:_0x51381c,register:_0x5cc071,formState:{errors:_0x4cf8f8},setValue:_0x57d31f}=useForm({'defaultValues':{'name':_0x5833d8,'extension':_0x4da413,'fileName':_0x5833d8+'.'+_0x4da413,'description':_0x12cf87}});_0x5cc071(_0x58a12e(0x28d),_0x1322de[_0x58a12e(0x28d)]),_0x5cc071('extension',_0x1322de[_0x58a12e(0x256)]);const _0x4bbb43=_0x318556=>{const _0x50fed0=_0x58a12e,_0x49dc57=_0x318556[_0x50fed0(0x24a)][_0x50fed0(0xa1)],_0x3f5f93=_0x49dc57[_0x50fed0(0x246)]('.');_0x3f5f93!==-0x1?(_0x57d31f(_0x50fed0(0x28d),_0x49dc57[_0x50fed0(0x179)](0x0,_0x3f5f93)),_0x57d31f(_0x50fed0(0x256),_0x49dc57[_0x50fed0(0x179)](_0x3f5f93+0x1))):(_0x57d31f('name',_0x49dc57),_0x57d31f('extension',''));},_0x194f6a=_0x5cc071('fileName',{'onChange':_0x4bbb43}),{ref:_0x1b0525}=_0x194f6a,_0x9ad727=__rest(_0x194f6a,[_0x58a12e(0x1cf)]);_0x366a17[_0x58a12e(0x1ca)](()=>{const _0x562363=_0x58a12e;if(_0x604247&&_0x37cb8d){const _0x5e4c8b=_0x5833d8['length'];_0x37cb8d[_0x562363(0x1cd)](),_0x37cb8d['setSelectionRange'](0x0,_0x5e4c8b);}},[_0x604247,_0x37cb8d,_0x5833d8]);const _0x3c17d4=!_0x628ad1;_0x366a17[_0x58a12e(0x1ca)](()=>{const _0x258ab8=_0x58a12e;_0x49d18b&&!_0x3c17d4&&!_0x604247&&_0x49d18b[_0x258ab8(0x1cd)]();},[_0x49d18b,_0x3c17d4,_0x604247]);const {api:_0x3d7e66}=useApi(),_0x40356c=_0x3d7e66[_0x58a12e(0x221)][_0x58a12e(0x24d)](_0x61fe7f),_0x159e2c=_0x51381c(({name:_0x3b7d29,extension:_0x47d421,description:_0x24a4ab})=>{_0x6c8b07(_0x61fe7f,_0xbd758e,{'name':_0x3b7d29,'extension':_0x47d421,'description':_0x24a4ab});}),_0x196e78=_0x58a12e(0x287)+_0x61fe7f,_0x373959=_0x58a12e(0x1f0)+_0x61fe7f,_0x40fd44=_0x58a12e(0xc1)+_0x61fe7f,_0x2522f6=_0x58a12e(0x10f)+_0x61fe7f,[_0x3ff9fd,_0x39511f]=_0x366a17[_0x58a12e(0x180)](null);return _0x366a17[_0x58a12e(0xcc)](Dialog,{'size':'lg','modal':!![],'onClose':_0xec6891},_0x366a17['createElement'](DialogHeader,{'closeLabel':_0x958230('Close')}),_0x366a17[_0x58a12e(0xcc)](DialogRow,null,_0x366a17[_0x58a12e(0xcc)](DialogColumn,null,_0x366a17[_0x58a12e(0xcc)](DialogSection,{'ref':_0x39511f,'accent':!![],'fullHeight':!![],'spacing':canAssetBePreviewed(_0x4da413)},_0x366a17[_0x58a12e(0xcc)](Asset,{'blurHash':_0x5d2868,'containerRef':_0x3ff9fd,'extension':_0x4da413,'height':_0x218eaf,'id':_0x61fe7f,'name':_0x5833d8,'description':_0x12cf87,'width':_0x2b46a4}))),_0x366a17[_0x58a12e(0xcc)](DialogColumn,null,_0x366a17[_0x58a12e(0xcc)](DialogSection,null,_0x366a17[_0x58a12e(0xcc)](Form,{'onSubmit':_0x159e2c,'id':_0x196e78},_0x366a17['createElement'](FormGroup,null,_0x366a17[_0x58a12e(0xcc)](FormInputLabel,{'htmlFor':_0x373959},_0x958230(_0x58a12e(0x11b))),_0x366a17[_0x58a12e(0xcc)](Input,Object[_0x58a12e(0x224)]({'error':!!(_0x4cf8f8['name']||_0x4cf8f8[_0x58a12e(0x256)]),'id':_0x373959,'ref':_0x1e18a5=>{_0x1b0525(_0x1e18a5),_0x51b3db(_0x1e18a5);}},_0x9ad727)),_0x4cf8f8[_0x58a12e(0x28d)]&&_0x366a17[_0x58a12e(0xcc)](FormFeedback,{'error':!![]},_0x4cf8f8[_0x58a12e(0x28d)][_0x58a12e(0x245)]),_0x4cf8f8[_0x58a12e(0x256)]&&_0x366a17['createElement'](FormFeedback,{'error':!![]},_0x4cf8f8['extension'][_0x58a12e(0x245)])),_0x366a17[_0x58a12e(0xcc)](FormGroup,{'offset':'md'},_0x366a17[_0x58a12e(0xcc)](FormInputLabel,{'htmlFor':_0x40fd44},_0x958230('Description')),_0x366a17[_0x58a12e(0xcc)](Input,Object[_0x58a12e(0x224)]({'error':!!_0x4cf8f8['description'],'id':_0x40fd44},_0x5cc071(_0x58a12e(0xf9),_0x1322de[_0x58a12e(0xf9)]))),_0x4cf8f8[_0x58a12e(0xf9)]&&_0x366a17[_0x58a12e(0xcc)](FormFeedback,{'error':!![]},(_0x218d8f=_0x4cf8f8[_0x58a12e(0xf9)])===null||_0x218d8f===void 0x0?void 0x0:_0x218d8f[_0x58a12e(0x245)]))),_0x366a17['createElement'](FormGroup,{'offset':'md'},_0x366a17['createElement'](FormInputLabel,{'htmlFor':_0x2522f6},_0x958230(_0x58a12e(0x1fa))),_0x366a17[_0x58a12e(0xcc)](CopyableInput,{'labelCopy':_0x958230(_0x58a12e(0x1bf)),'labelCopied':_0x958230('Copied!'),'id':_0x2522f6,'value':_0x40356c})),_0x366a17['createElement'](PropertiesTable,null,_0x366a17[_0x58a12e(0xcc)](PropertiesTableRow,{'label':_0x958230(_0x58a12e(0x167)),'value':_0x366a17['createElement'](DateComponent,{'isoValue':_0x258465})}),_0x366a17[_0x58a12e(0xcc)](PropertiesTableRow,{'label':_0x958230(_0x58a12e(0xbe)),'value':_0x366a17[_0x58a12e(0xcc)](AssetSize,{'size':_0x477520})}),_0x218eaf&&_0x2b46a4&&_0x366a17[_0x58a12e(0xcc)](_0x366a17[_0x58a12e(0xd4)],null,_0x366a17[_0x58a12e(0xcc)](PropertiesTableRow,{'label':_0x958230('Width'),'value':_0x2b46a4+'\x20px'}),_0x366a17['createElement'](PropertiesTableRow,{'label':_0x958230(_0x58a12e(0x156)),'value':_0x218eaf+_0x58a12e(0x106)})))),_0x366a17[_0x58a12e(0xcc)](DialogActions,null,_0x366a17[_0x58a12e(0xcc)](Button,{'onClick':_0xec6891,'type':_0x58a12e(0x1c3)},_0x958230(_0x58a12e(0x1c0))),_0x366a17[_0x58a12e(0xcc)](Button,{'color':'action','type':_0x58a12e(0x25b),'disabled':_0x3c17d4,'form':_0x196e78,'htmlType':_0x58a12e(0x187),'ref':_0x60f5ed},_0x958230(_0x58a12e(0x15c)))))));},AssetsBottombar=({assetsPerPage:_0x4cbe69,isLoading:_0xde1c16,onChoose:_0x4998f7,onPageChange:_0x31bc1d,pageNumber:_0x1f9ce6,selectedAssetsNum:_0x419f93,totalAssetsCount:_0x5578c4})=>{const _0x598065=_0x519ca6,{t:_0x32a79a}=useTranslation(),{setBottomOffsetEl:_0x2029b8}=useNotifications(),_0x426e06=Math[_0x598065(0xe7)](_0x5578c4/_0x4cbe69),_0x5aed2a=usePagination(_0x1f9ce6,_0x31bc1d,_0x426e06);return _0x366a17[_0x598065(0x1ca)](()=>{_0x426e06&&_0x426e06<_0x1f9ce6&&_0x31bc1d(_0x426e06);},[_0x1f9ce6,_0x426e06,_0x31bc1d]),_0x366a17['createElement'](Bottombar,{'ref':_0x2029b8,'sideContent':_0x4998f7&&_0x366a17[_0x598065(0xcc)](Button,{'icon':_0x598065(0x127),'color':_0x598065(0x141),'type':_0x598065(0x25b),'fullWidth':!![],'onClick':_0x4998f7,'disabled':_0xde1c16||_0x419f93===0x0},_0x32a79a(_0x598065(0x24b))),'statusContent':_0x419f93&&_0x366a17[_0x598065(0xcc)]('span',null,_0x32a79a(_0x598065(0xa9),{'plural':_0x419f93,'values':[_0x419f93],'processTags':!![]}))},_0x366a17[_0x598065(0xcc)](Pagination,Object[_0x598065(0x224)]({'disabled':_0xde1c16,'enterPageLabel':_0x32a79a(_0x598065(0x271)),'totalPagesLabel':_0x32a79a('of\x20%d',{'values':[_0x426e06]}),'totalPages':_0x426e06,'page':_0x1f9ce6},_0x5aed2a)));},DisplayOptions=({allowCover:_0x10fc5d,assetsPerPage:_0x4026ba,assetsPerPageOptions:_0x7e0d2,onCoverModeToggle:_0x539d9e,onThumbSizeChange:_0x317f1c,sort:_0x363f43,sortOrder:_0x4441b7,onSortOrderToggle:_0x49e350,sortOptions:_0x1c862b,thumbSize:_0x498d15})=>{const _0x1a7bb6=_0x519ca6,{t:_0x2adce5}=useTranslation(),[_0x2e012c,_0xc433ee]=_0x366a17[_0x1a7bb6(0x180)](null),[_0x4e551,_0x5936ae]=_0x366a17[_0x1a7bb6(0x180)](null),[_0x5b7e8b,_0x5d8c1]=_0x366a17[_0x1a7bb6(0x180)](null),_0x2d015f=()=>{_0xc433ee(null),_0x5936ae(null),_0x5d8c1(null);},_0x2695b0=_0x40c6b7=>{const _0x158bd5=_0x1a7bb6,_0x3cace2=_0x40c6b7[_0x158bd5(0x24a)];_0xc433ee(_0x2fcecb=>_0x2fcecb?null:_0x3cace2);},_0x4c6ca7=()=>{_0x5936ae(null);},_0x19576d=_0x419474=>{const _0x23a9f5=_0x1a7bb6,_0x4d1075=_0x419474[_0x23a9f5(0x24a)];_0x5936ae(_0x5674f0=>_0x5674f0?null:_0x4d1075);},_0x1b5158=()=>{_0x5d8c1(null);},_0x21dbbc=_0x9aff27=>{const _0xcccaf3=_0x9aff27['currentTarget'];_0x5d8c1(_0x2e3f1e=>_0x2e3f1e?null:_0xcccaf3);};return _0x366a17[_0x1a7bb6(0xcc)](_0x366a17[_0x1a7bb6(0xd4)],null,_0x366a17[_0x1a7bb6(0xcc)](Button,{'icon':'Settings','color':'action','type':_0x1a7bb6(0x1c3),'label':_0x2adce5('Display\x20options'),'onClick':_0x2695b0}),_0x366a17[_0x1a7bb6(0xcc)](Fixed,null,_0x366a17[_0x1a7bb6(0xcc)](Menu,{'anchorEl':_0x2e012c,'arrow':!![],'placement':_0x1a7bb6(0x1cc),'offset':['xl','xl'],'spacing':![],'onClose':_0x2d015f},_0x366a17['createElement'](MenuSection,{'borderBottom':!![],'title':_0x2adce5('Assets')},_0x1c862b&&_0x49e350&&_0x4441b7&&_0x366a17[_0x1a7bb6(0xcc)](MenuSubSection,{'title':_0x2adce5('Sort\x20by'),'alignChildren':_0x1a7bb6(0x17b)},_0x366a17['createElement'](Button,{'type':_0x1a7bb6(0x1c3),'color':_0x1a7bb6(0x141),'icon':_0x1a7bb6(0x203),'iconPlacement':_0x1a7bb6(0xdb),'fullWidth':!![],'label':_0x2adce5(_0x1a7bb6(0x181)),'onClick':_0x19576d},_0x363f43),_0x366a17[_0x1a7bb6(0xcc)](SortButton,{'onClick':_0x49e350,'order':_0x4441b7,'label':_0x2adce5(_0x1a7bb6(0x136)),'tooltip':_0x4441b7===ApiSortingOrder[_0x1a7bb6(0xaf)]?_0x2adce5(_0x1a7bb6(0xb3)):_0x2adce5(_0x1a7bb6(0x1b3))})),_0x366a17[_0x1a7bb6(0xcc)](MenuSubSection,{'title':_0x2adce5(_0x1a7bb6(0x15e))},_0x366a17[_0x1a7bb6(0xcc)](Button,{'color':_0x1a7bb6(0x141),'type':'outline','icon':_0x1a7bb6(0x203),'iconPlacement':'right','fullWidth':!![],'label':_0x2adce5(_0x1a7bb6(0x15e)),'onClick':_0x21dbbc},_0x4026ba))),_0x366a17[_0x1a7bb6(0xcc)](MenuSection,{'title':_0x2adce5('Thumbnails')},_0x366a17[_0x1a7bb6(0xcc)](MenuSubSection,{'title':_0x2adce5(_0x1a7bb6(0x21c))},_0x366a17[_0x1a7bb6(0xcc)](RangeSlider,{'min':0x0,'max':0x1,'onChange':_0x317f1c,'value':_0x498d15,'step':0.025})),_0x366a17[_0x1a7bb6(0xcc)](MenuSubSection,{'align':'row','label':!![],'labelFor':_0x1a7bb6(0x16a),'title':_0x2adce5(_0x1a7bb6(0x1a5))},_0x366a17['createElement'](SwitchInput,{'checked':_0x10fc5d,'id':_0x1a7bb6(0x16a),'name':'keep-aspect-ratio','onChange':_0x539d9e}))),_0x1c862b&&_0x366a17['createElement'](Menu,{'anchorEl':_0x4e551,'placement':_0x1a7bb6(0x217),'sameWidth':!![],'onClose':_0x4c6ca7},_0x1c862b[_0x1a7bb6(0x262)](({onSelect:_0x506823,label:_0x1dfab6},_0x4cb3a3)=>_0x366a17[_0x1a7bb6(0xcc)](MenuItem,{'key':_0x4cb3a3,'onClick':_0x506823,'label':_0x1dfab6}))),_0x366a17[_0x1a7bb6(0xcc)](Menu,{'anchorEl':_0x5b7e8b,'placement':_0x1a7bb6(0x217),'sameWidth':!![],'onClose':_0x1b5158},_0x7e0d2[_0x1a7bb6(0x262)](({label:_0x4523a4,onSelect:_0x19a84f},_0x1f744b)=>_0x366a17['createElement'](MenuItem,{'key':_0x1f744b,'onClick':_0x19a84f,'label':_0x4523a4}))))));},UploadIndicator=()=>{const _0x44d8a8=_0x519ca6,{t:_0x3d3a6e}=useTranslation(),{isDialogOpen:_0x55d339,isIndicatorOpen:_0x52f8eb,toggleDialog:_0x28a9ab}=useUploadComponents$1(),{totalProgress:_0x95683c,queue:_0x54aa31}=useUploadState();if(!_0x52f8eb)return null;const _0x5ab2a0=_0x54aa31[_0x44d8a8(0x12b)](_0x4ce610=>!!_0x4ce610['error']),_0x2f4fcc=()=>{_0x28a9ab();};return _0x366a17['createElement'](CircularLoader,{'label':_0x55d339?_0x3d3a6e(_0x44d8a8(0xfe)):_0x3d3a6e(_0x44d8a8(0x1a3)),'onClick':_0x2f4fcc,'value':Math[_0x44d8a8(0x13c)](_0x95683c!==null&&_0x95683c!==void 0x0?_0x95683c:0x0),'error':_0x5ab2a0});},AssetsTopbar=({displayOptions:_0x342c95,isDeleteActive:_0x10abca,isDownloadActive:_0x2ad747,isPropertiesActive:_0x4b4413,onDelete:_0x4913d5,onDownload:_0x1ecd3a,onProperties:_0x43c5ec,onRename:_0xbb09f,uploadButton:_0x212b34})=>{const _0x670399=_0x519ca6,{t:_0x3ac92b}=useTranslation();return _0x366a17['createElement'](Topbar,{'sideContent':_0x366a17[_0x670399(0xcc)](_0x366a17['Fragment'],null,_0x366a17[_0x670399(0xcc)](UploadIndicator,null),_0x366a17['createElement'](DisplayOptions,Object[_0x670399(0x224)]({},_0x342c95)),_0x212b34)},_0x366a17[_0x670399(0xcc)](TopbarAction,{'disabled':!_0x2ad747,'icon':_0x670399(0x10b),'label':_0x3ac92b(_0x670399(0x10b)),'onClick':_0x1ecd3a}),_0x366a17[_0x670399(0xcc)](TopbarAction,{'disabled':!_0x10abca,'icon':_0x670399(0x209),'label':_0x3ac92b(_0x670399(0xab)),'onClick':_0x4913d5}),_0x366a17[_0x670399(0xcc)](TopbarAction,{'disabled':!_0x4b4413,'icon':_0x670399(0x19a),'label':_0x3ac92b(_0x670399(0x1b0)),'onClick':_0x43c5ec}),_0x366a17[_0x670399(0xcc)](TopbarAction,{'disabled':!_0x4b4413,'icon':'Pencil','label':_0x3ac92b(_0x670399(0x188)),'onClick':_0xbb09f}));},AssetsDeleteDialog=({assetsToDelete:_0x37fdb1,onCancel:_0x1aae60,onConfirm:_0x35ad41})=>{const _0x5701b3=_0x519ca6,[_0xc90412,_0x673d1c]=_0x366a17[_0x5701b3(0x180)](null),{t:_0x3a6d1b}=useTranslation(),_0x1877e0=_0x37fdb1[_0x5701b3(0xd0)];_0x366a17[_0x5701b3(0x1ca)](()=>{const _0x54fa97=_0x5701b3;_0xc90412&&_0xc90412[_0x54fa97(0x1cd)]();},[_0xc90412]);if(!_0x1877e0)return null;let _0x23669a;if(_0x1877e0===0x1){const _0x1864d6=_0x37fdb1[0x0];_0x23669a={'values':[(_0x1864d6===null||_0x1864d6===void 0x0?void 0x0:_0x1864d6[_0x5701b3(0x28d)])+'.'+(_0x1864d6===null||_0x1864d6===void 0x0?void 0x0:_0x1864d6[_0x5701b3(0x256)])],'processTags':!![]};}else _0x23669a={'values':[_0x1877e0],'processTags':!![],'plural':_0x1877e0};return _0x366a17[_0x5701b3(0xcc)](Dialog,{'modal':!![],'onClose':_0x1aae60,'size':'sm'},_0x366a17[_0x5701b3(0xcc)](DialogHeader,{'closeLabel':_0x3a6d1b(_0x5701b3(0x254))}),_0x366a17['createElement'](DialogColumn,null,_0x366a17[_0x5701b3(0xcc)](DialogSection,{'header':!![]},_0x3a6d1b(_0x5701b3(0x294))),_0x366a17[_0x5701b3(0xcc)](DialogSection,{'collapse':!![]},_0x3a6d1b(_0x5701b3(0x1d4),_0x23669a)),_0x366a17[_0x5701b3(0xcc)](DialogActions,null,_0x366a17[_0x5701b3(0xcc)](Button,{'onClick':_0x1aae60,'type':'outline'},_0x3a6d1b(_0x5701b3(0x1c0))),_0x366a17[_0x5701b3(0xcc)](Button,{'ref':_0x673d1c,'color':_0x5701b3(0x1f1),'type':_0x5701b3(0x25b),'onClick':_0x35ad41},_0x3a6d1b('Delete')))));},SELECT_ALL_EVENT_KEY='a';var ActionType;(function(_0xba1105){const _0x24f824=_0x519ca6;_0xba1105[_0xba1105[_0x24f824(0x23f)]=0x0]=_0x24f824(0x23f),_0xba1105[_0xba1105[_0x24f824(0x173)]=0x1]='EXTEND_OR_DESELECT',_0xba1105[_0xba1105[_0x24f824(0x13f)]=0x2]=_0x24f824(0x13f),_0xba1105[_0xba1105[_0x24f824(0xa4)]=0x3]='SELECT_RANGE',_0xba1105[_0xba1105[_0x24f824(0x155)]=0x4]='SELECT_MULTIPLE',_0xba1105[_0xba1105[_0x24f824(0x204)]=0x5]='DESELECT_ALL';}(ActionType||(ActionType={})));var HistoryEntryType;(function(_0x277212){const _0x33959b=_0x519ca6;_0x277212[_0x277212[_0x33959b(0x1a2)]=0x0]=_0x33959b(0x1a2),_0x277212[_0x277212[_0x33959b(0x10d)]=0x1]=_0x33959b(0x10d);}(HistoryEntryType||(HistoryEntryType={})));var ArrowKey;(function(_0x244232){const _0x196397=_0x519ca6;_0x244232['UP']=_0x196397(0x21b),_0x244232[_0x196397(0x183)]=_0x196397(0x251),_0x244232[_0x196397(0x1e3)]='ArrowRight',_0x244232[_0x196397(0x214)]=_0x196397(0xcf);}(ArrowKey||(ArrowKey={})));const initialState={'selectedAssets':{},'selectionHistory':[],'lastSelectedRange':undefined},getRangeAssetsIds=(_0x8d8e89,[_0x1c4ce4,_0x275ce5])=>{const _0x232496=_0x519ca6,_0x3a3b86=_0x8d8e89[_0x232496(0x1b2)](_0x377dc0=>_0x377dc0===_0x1c4ce4),_0x392dec=_0x8d8e89[_0x232496(0x1b2)](_0x1ce595=>_0x1ce595===_0x275ce5);return _0x3a3b86<=_0x392dec?_0x8d8e89[_0x232496(0x17f)](_0x3a3b86,_0x392dec+0x1):_0x8d8e89[_0x232496(0x17f)](_0x392dec,_0x3a3b86+0x1);},getLastActivatedAssetId=(_0x200840,_0x3a5dfb)=>{const _0x145e57=_0x519ca6,_0x2eaaba=[..._0x3a5dfb]['reverse']()[_0x145e57(0x1bb)](({type:_0x573fbd})=>_0x573fbd===HistoryEntryType['BASIC']);if(_0x2eaaba)return _0x2eaaba['id'];return _0x200840[0x0];},extendSelectedAssets=(_0x51f7e8,{id:_0x2f5126})=>{const _0x35f707=_0x519ca6;return{'selectedAssets':Object[_0x35f707(0x224)](Object['assign']({},_0x51f7e8[_0x35f707(0x1f5)]),{[_0x2f5126]:!![]}),'selectionHistory':[..._0x51f7e8[_0x35f707(0x219)],{'id':_0x2f5126,'type':HistoryEntryType[_0x35f707(0x1a2)]}]};},selectAsset=({id:_0x11718b})=>{const _0x4aad2e=_0x519ca6;return{'selectedAssets':{[_0x11718b]:!![]},'selectionHistory':[{'id':_0x11718b,'type':HistoryEntryType[_0x4aad2e(0x1a2)]}],'lastSelectedRange':undefined};},selectAssetsRange=(_0x519294,{assetIds:_0x54a660,id:_0x52436e})=>{const _0x54c3de=_0x519ca6;var _0x42a68c;const _0x549483=getLastActivatedAssetId(_0x54a660,_0x519294['selectionHistory']),_0x2e62c7=getRangeAssetsIds(_0x54a660,[_0x549483,_0x52436e]),_0x1d2a60=Object[_0x54c3de(0x224)]({},_0x519294[_0x54c3de(0x1f5)]);let _0x50c00b=[..._0x519294['selectionHistory']];((_0x42a68c=_0x519294[_0x54c3de(0x250)])===null||_0x42a68c===void 0x0?void 0x0:_0x42a68c['startId'])===_0x549483&&(_0x519294['lastSelectedRange'][_0x54c3de(0x281)][_0x54c3de(0x1e8)](_0x46496f=>{delete _0x1d2a60[_0x46496f];}),_0x50c00b=_0x50c00b[_0x54c3de(0x211)](({id:_0x423760})=>{const _0x276424=_0x54c3de;var _0x11cb34;return _0x423760!==((_0x11cb34=_0x519294[_0x276424(0x250)])===null||_0x11cb34===void 0x0?void 0x0:_0x11cb34[_0x276424(0x27b)]);}));_0x2e62c7['forEach'](_0x3c9303=>{_0x1d2a60[_0x3c9303]=!![];});const _0x3684a4={'startId':_0x549483,'range':_0x2e62c7,'endId':_0x52436e};return _0x50c00b['push']({'id':_0x52436e,'type':HistoryEntryType['RANGE_END']}),{'selectedAssets':_0x1d2a60,'selectionHistory':_0x50c00b,'lastSelectedRange':_0x3684a4};},selectAssets=(_0x391a3f,{ids:_0xc656b0})=>{const _0x414d41=_0x519ca6;if(_0xc656b0[_0x414d41(0xd0)]===Object[_0x414d41(0x26e)](_0x391a3f[_0x414d41(0x1f5)])[_0x414d41(0xd0)]&&_0xc656b0[_0x414d41(0x143)](_0x1cb1cc=>_0x391a3f[_0x414d41(0x1f5)][_0x1cb1cc]))return _0x391a3f;const _0x295e2f=_0xc656b0[_0x414d41(0x18f)]((_0x2dbfb3,_0x619912)=>{const _0x2cf62b=_0x414d41;return Object[_0x2cf62b(0x224)](Object[_0x2cf62b(0x224)]({},_0x2dbfb3),{[_0x619912]:!![]});},{});return{'selectedAssets':_0x295e2f,'selectionHistory':[]};},deselectAssets=(_0xd1262e,{ids:_0x1c9715})=>{const _0x2a7700=_0x519ca6,_0x44de4b=_0x1c9715[_0x2a7700(0x18f)]((_0x55c535,_0xb09088)=>{const _0x359997=_0x2a7700;if(_0x55c535[_0xb09088]){const _0x57bddb=Object[_0x359997(0x224)]({},_0x55c535);return delete _0x57bddb[_0xb09088],_0x57bddb;}return _0x55c535;},Object[_0x2a7700(0x224)]({},_0xd1262e['selectedAssets'])),_0x4a36c3=_0xd1262e[_0x2a7700(0x219)][_0x2a7700(0x211)](({id:_0x236b0b})=>!_0x1c9715[_0x2a7700(0x140)](_0x236b0b));return Object[_0x2a7700(0x224)](Object['assign']({},_0xd1262e),{'selectedAssets':_0x44de4b,'selectionHistory':_0x4a36c3});},deselectAll=()=>{return initialState;},cleanupAssetsSelection=(_0x17b79d,{ids:_0x420c18})=>{const _0x4e4069=_0x519ca6,_0x87ec60=Object['keys'](_0x17b79d['selectedAssets'])['reduce']((_0x832db,_0x586307)=>{if(!_0x420c18['includes'](_0x586307))return[..._0x832db,_0x586307];return _0x832db;},[]);if(!_0x87ec60[_0x4e4069(0xd0)])return _0x17b79d;return deselectAssets(_0x17b79d,{'ids':_0x87ec60});},assetsSelectionReducer=(_0x280ee7,_0xc74640)=>{const _0x381f72=_0x519ca6;switch(_0xc74640[_0x381f72(0x142)]){case ActionType['CLEANUP_SELECTION']:{return cleanupAssetsSelection(_0x280ee7,_0xc74640['payload']);}case ActionType[_0x381f72(0x173)]:{const _0x6c77bf=_0xc74640[_0x381f72(0x107)]['id'],_0x442d18=!!_0x280ee7[_0x381f72(0x1f5)][_0x6c77bf];if(_0x442d18)return deselectAssets(_0x280ee7,{'ids':[_0x6c77bf]});return extendSelectedAssets(_0x280ee7,_0xc74640['payload']);}case ActionType['SELECT_SINGLE']:{return selectAsset(_0xc74640[_0x381f72(0x107)]);}case ActionType['SELECT_RANGE']:{return selectAssetsRange(_0x280ee7,_0xc74640['payload']);}case ActionType[_0x381f72(0x155)]:{return selectAssets(_0x280ee7,_0xc74640[_0x381f72(0x107)]);}case ActionType['DESELECT_ALL']:{return deselectAll();}default:return _0x280ee7;}},useAssetsSelectionState=()=>{const _0x3074cb=_0x519ca6,[_0x169a65,_0x1f972a]=_0x366a17[_0x3074cb(0x157)](assetsSelectionReducer,initialState),_0x180065=_0x366a17[_0x3074cb(0xa8)](_0x4beeac=>{const _0x53a4f1=_0x3074cb;_0x1f972a({'type':ActionType[_0x53a4f1(0x13f)],'payload':{'id':_0x4beeac}});},[]),_0x3ef1e4=_0x366a17[_0x3074cb(0xa8)](_0x27ae87=>{const _0x47e0f8=_0x3074cb;_0x1f972a({'type':ActionType[_0x47e0f8(0x173)],'payload':{'id':_0x27ae87}});},[]),_0x28cc87=_0x366a17['useCallback']((_0x30ad97,_0x582ccf)=>{const _0x12585b=_0x3074cb;_0x1f972a({'type':ActionType[_0x12585b(0xa4)],'payload':{'assetIds':_0x582ccf,'id':_0x30ad97}});},[]),_0x5a4fb0=_0x366a17[_0x3074cb(0xa8)](_0x1f302b=>{const _0x1b25c9=_0x3074cb;_0x1f972a({'type':ActionType[_0x1b25c9(0x155)],'payload':{'ids':_0x1f302b}});},[]),_0x37ed19=_0x366a17[_0x3074cb(0xa8)](_0x518662=>{const _0x48e9cc=_0x3074cb;_0x1f972a({'type':ActionType[_0x48e9cc(0x23f)],'payload':{'ids':_0x518662}});},[]),_0x53ad3c=_0x366a17[_0x3074cb(0xa8)](()=>{const _0x5e015a=_0x3074cb;_0x1f972a({'type':ActionType[_0x5e015a(0x204)]});},[]);return{'cleanupSelection':_0x37ed19,'deselectAll':_0x53ad3c,'extendOrDeselect':_0x3ef1e4,'selectRange':_0x28cc87,'selectSingle':_0x180065,'selectSome':_0x5a4fb0,'state':_0x169a65};},getSelectionAreaIds=(_0x1d9f86,_0x5c59dd,_0x38f901,_0x3c662a)=>{const _0x3379c5=_0x519ca6,_0xb4dbb7=_0x3c662a[_0x3379c5(0x237)](),_0x5b5581=_0x3c662a[_0x3379c5(0xff)];return _0x5c59dd['reduce']((_0x29ba80,_0x1c7085)=>{const _0xff26c=_0x3379c5,_0x2e8b06=_0x38f901[_0x1c7085],_0x55d722=_0x2e8b06[_0xff26c(0x237)](),_0x472d2f=_0x55d722['x']-_0xb4dbb7[_0xff26c(0x284)],_0x2be6a5=_0x55d722['y']+_0x5b5581-_0xb4dbb7[_0xff26c(0x24c)],{width:_0x56eda3,height:_0x54da77}=_0x55d722;if(_0x472d2f<_0x1d9f86['x']+_0x1d9f86['width']&&_0x472d2f+_0x56eda3>_0x1d9f86['x']&&_0x2be6a5<_0x1d9f86['y']+_0x1d9f86[_0xff26c(0x169)]&&_0x2be6a5+_0x54da77>_0x1d9f86['y'])return[..._0x29ba80,_0x1c7085];return _0x29ba80;},[]);},getTilesInRow=(_0x8fb027,_0x3467a1)=>{const _0x24a5e8=_0x519ca6;let _0x226134=0x1;const {offsetTop:_0x498ddc}=_0x3467a1[_0x8fb027[0x0]];for(let _0x1790f9=0x1;_0x1790f9<_0x8fb027[_0x24a5e8(0xd0)];_0x1790f9++){const _0x1010df=_0x8fb027[_0x1790f9];if(_0x498ddc!==_0x3467a1[_0x1010df][_0x24a5e8(0x227)])return _0x226134;_0x226134++;}return _0x226134;},getKeyboardNavigationStep=(_0x160a3d,_0x521d45,_0x6e0bea)=>{const _0x24a5e3=_0x519ca6;if(_0x6e0bea===ArrowKey[_0x24a5e3(0x1e3)])return 0x1;if(_0x6e0bea===ArrowKey[_0x24a5e3(0x214)])return-0x1;const _0x5755c0=getTilesInRow(_0x160a3d,_0x521d45);if(_0x6e0bea===ArrowKey[_0x24a5e3(0x183)])return _0x5755c0;return-_0x5755c0;},useAssetsSelection=(_0x2813b9,_0x5cd6da)=>{const _0x2d6cfd=_0x519ca6;var _0x5eb6e0;const {cleanupSelection:_0x279f36,deselectAll:_0x129914,extendOrDeselect:_0x378bfb,selectRange:_0x44cea8,selectSingle:_0x5eed52,selectSome:_0x2ec236,state:_0x564fb8}=useAssetsSelectionState(),_0x4411ab=_0x366a17[_0x2d6cfd(0x13a)]({}),[_0x58bce0,_0x24f4e9]=_0x366a17['useState'](null),{rootEl:_0x5c0ac9}=useUIContext(),_0x586e2b=(_0x5eb6e0=_0x564fb8[_0x2d6cfd(0x219)][_0x564fb8[_0x2d6cfd(0x219)][_0x2d6cfd(0xd0)]-0x1])===null||_0x5eb6e0===void 0x0?void 0x0:_0x5eb6e0['id'],_0xda9f53=_0x366a17[_0x2d6cfd(0xe3)](()=>_0x2813b9[_0x2d6cfd(0x262)](({id:_0x436662})=>_0x436662),[_0x2813b9]),_0xdde9c6=_0x366a17['useCallback']((_0x485c94,_0xa43b59,_0x3d31e3,_0x48b23a)=>{if(_0xa43b59||_0x3d31e3){_0x378bfb(_0x485c94);return;}if(_0x48b23a){_0x44cea8(_0x485c94,_0xda9f53);return;}_0x5eed52(_0x485c94);},[_0xda9f53,_0x378bfb,_0x44cea8,_0x5eed52]),_0x4ef716=_0x366a17[_0x2d6cfd(0xa8)](_0x5d623d=>{return _0x2a6785=>{const _0x20015e=_0x1c8d;_0x2a6785[_0x20015e(0x131)]();const {ctrlKey:_0x4bc24c,shiftKey:_0x5e331f,metaKey:_0x516455}=_0x2a6785;_0xdde9c6(_0x5d623d,_0x4bc24c,_0x516455,_0x5e331f);};},[_0xdde9c6]),_0x10bb42=_0x366a17[_0x2d6cfd(0xa8)](_0x26e30a=>{return _0x197200=>{const _0x2da820=_0x1c8d;if(_0x197200[_0x2da820(0xef)]!==_0x2da820(0x18b))return;_0x197200[_0x2da820(0x21d)]();const {ctrlKey:_0x3bab36,metaKey:_0x148a64,shiftKey:_0x5ea2fe}=_0x197200;_0xdde9c6(_0x26e30a,_0x3bab36,_0x148a64,_0x5ea2fe);};},[_0xdde9c6]),_0x5a67c9=_0x366a17[_0x2d6cfd(0xa8)]((_0x531592,_0xe85a78)=>{const _0x41b0a4=_0x2d6cfd;if(_0x586e2b===undefined){if(_0x531592===ArrowKey[_0x41b0a4(0x183)]||_0x531592===ArrowKey[_0x41b0a4(0x1e3)]){const _0x5bdcf1=_0xda9f53[0x0];_0x5eed52(_0x5bdcf1),_0x4411ab['current'][_0x5bdcf1][_0x41b0a4(0x1cd)]();}if(_0x531592===ArrowKey['UP']||_0x531592===ArrowKey[_0x41b0a4(0x214)]){const _0x194a51=_0xda9f53[_0xda9f53['length']-0x1];_0x5eed52(_0x194a51),_0x4411ab[_0x41b0a4(0x269)][_0x194a51]['focus']();}return;}const _0x1336b3=_0xda9f53[_0x41b0a4(0x1b2)](_0x473bde=>_0x473bde===_0x586e2b),_0x2ff226=getKeyboardNavigationStep(_0xda9f53,_0x4411ab[_0x41b0a4(0x269)],_0x531592);if(!_0xda9f53[_0x1336b3+_0x2ff226])return;const _0x2a6443=_0xda9f53[_0x1336b3+_0x2ff226];_0xe85a78?_0x44cea8(_0x2a6443,_0xda9f53):_0x5eed52(_0x2a6443),_0x4411ab['current'][_0x2a6443][_0x41b0a4(0x1cd)]();},[_0xda9f53,_0x44cea8,_0x5eed52,_0x586e2b]),_0x5dab86=_0x366a17[_0x2d6cfd(0xa8)](_0x287c9f=>{const _0x30d467=_0x2d6cfd,{ctrlKey:_0x4fe2a5,metaKey:_0x5023e8,key:_0x4a604f,shiftKey:_0x1841f8}=_0x287c9f;if(_0x4a604f===ArrowKey[_0x30d467(0x183)]||_0x4a604f===ArrowKey['UP']||_0x4a604f===ArrowKey[_0x30d467(0x214)]||_0x4a604f===ArrowKey[_0x30d467(0x1e3)]){_0x287c9f['preventDefault'](),_0x5a67c9(_0x4a604f,_0x1841f8);return;}(_0x4fe2a5||_0x5023e8)&&_0x4a604f[_0x30d467(0x297)]()===SELECT_ALL_EVENT_KEY&&(_0x287c9f[_0x30d467(0x21d)](),_0x2ec236(_0xda9f53));},[_0xda9f53,_0x5a67c9,_0x2ec236]),_0x15a600=_0x366a17[_0x2d6cfd(0xa8)](_0x3e7eb3=>{const _0x40e57c=_0x2d6cfd;if(!_0x58bce0)return;const _0x12336b=getSelectionAreaIds(_0x3e7eb3,_0xda9f53,_0x4411ab[_0x40e57c(0x269)],_0x58bce0),_0x27e65a=_0x12336b['length']&&document['activeElement']!==_0x4411ab[_0x40e57c(0x269)][_0x12336b[0x0]];_0x2ec236(_0x12336b),_0x27e65a&&_0x4411ab[_0x40e57c(0x269)][_0x12336b[0x0]][_0x40e57c(0x1cd)]({'preventScroll':!![]});},[_0xda9f53,_0x58bce0,_0x2ec236]),_0x349e17=_0x366a17[_0x2d6cfd(0xa8)](_0x5a416f=>_0x120463=>{const _0xf612d2=_0x2d6cfd;_0x120463&&(_0x4411ab[_0xf612d2(0x269)][_0x5a416f]=_0x120463);},[]);return _0x366a17[_0x2d6cfd(0x1ca)](()=>{const _0x164e33=_0x2d6cfd;if(_0x5cd6da||!_0x5c0ac9)return;return _0x5c0ac9[_0x164e33(0x19c)](_0x164e33(0x21e),_0x5dab86),()=>{const _0x49687f=_0x164e33;_0x5c0ac9['removeEventListener'](_0x49687f(0x21e),_0x5dab86);};},[_0x2813b9,_0x5dab86,_0x5cd6da,_0x5c0ac9]),_0x366a17[_0x2d6cfd(0x1ca)](()=>{const _0x348581=_0x2d6cfd,_0x2452d6=_0x2813b9[_0x348581(0x262)](({id:_0x4d9b94})=>_0x4d9b94);_0x279f36(_0x2452d6),Object[_0x348581(0x26e)](_0x4411ab[_0x348581(0x269)])[_0x348581(0x1e8)](_0x4e87e7=>{!_0x2452d6['includes'](_0x4e87e7)&&delete _0x4411ab['current'][_0x4e87e7];});},[_0x2813b9,_0x279f36]),{'containerRef':_0x58bce0,'onAssetKeyDown':_0x10bb42,'onAssetMouseDown':_0x4ef716,'onContainerMouseDown':_0x129914,'onSelectionAreaChange':_0x15a600,'selectedAssets':_0x564fb8['selectedAssets'],'setContainerRef':_0x24f4e9,'setAssetRef':_0x349e17};},useAssetsActions=(_0x7c0040,_0x1ee5eb,_0x15b117,_0xb66fa=!![])=>{const _0x5d6170=_0x519ca6,{mutateAsync:_0x2a2beb}=useDeleteAssets(),{mutateAsync:_0x34e2c1}=useUpdateAsset(),{mutateAsync:_0x2f2c7e}=useUpdateAssetLastUse(),{fetchAsset:_0x2a0a75}=useLazyGetAsset(),{api:_0x2be5a0}=useApi(),{rootEl:_0x45cf7a}=useUIContext(),{downloadFile:_0x1c26d5}=useDownload(_0x45cf7a),[_0x521d90,_0x20333e]=_0x366a17[_0x5d6170(0x180)]([]),_0x7cc69a=()=>{_0x15b117({'id':Object['keys'](_0x1ee5eb)[0x0]});},_0x470ebb=()=>{_0x15b117({'id':undefined});},_0x2fe0ab=()=>{const _0x52a62f=_0x5d6170;_0x15b117({'id':Object[_0x52a62f(0x26e)](_0x1ee5eb)[0x0],'focusFileName':!![]});},_0x3445db=_0x366a17[_0x5d6170(0xa8)](()=>{_0x20333e([]);},[]),_0x47ab3f=_0x366a17[_0x5d6170(0xa8)](async()=>{const _0xaec8ed=_0x5d6170;await _0x2a2beb(_0x521d90[_0xaec8ed(0x18f)]((_0x528de6,{id:_0x5c7c8d,categoryId:_0x30884b})=>{const _0x3c22fd=_0xaec8ed;return Object[_0x3c22fd(0x224)](Object[_0x3c22fd(0x224)]({},_0x528de6),{[_0x5c7c8d]:{'categoryId':_0x30884b}});},{})),_0x20333e([]);},[_0x521d90,_0x2a2beb]),_0xa83f2a=_0x366a17['useCallback'](()=>{const _0x1e78fd=_0x5d6170;if(!_0xb66fa)return;_0x20333e(_0x7c0040[_0x1e78fd(0x211)](_0x30a19f=>!!_0x1ee5eb[_0x30a19f['id']]));},[_0x7c0040,_0xb66fa,_0x1ee5eb]),_0x451aca=async(_0x512d96,_0x56fe4d,{name:_0x5ca42a,extension:_0x49e45f,description:_0x4514be})=>{const _0xf9c740={'name':_0x5ca42a,'extension':_0x49e45f,'metadata':{'description':_0x4514be!==null&&_0x4514be!==void 0x0?_0x4514be:''}};await _0x34e2c1({'assetId':_0x512d96,'categoryId':_0x56fe4d,'payload':_0xf9c740}),_0x15b117({'id':undefined});},_0x333546=async()=>{const _0x1c3c72=_0x5d6170,_0x364a7a=Object[_0x1c3c72(0x26e)](_0x1ee5eb)[0x0],_0x264344=_0x2be5a0[_0x1c3c72(0x221)][_0x1c3c72(0x24d)](_0x364a7a,!![]),_0x34c1d7=_0x7c0040[_0x1c3c72(0x1bb)](({id:_0x1069ba})=>_0x1069ba===_0x364a7a),_0x4c3aea=await _0x2a0a75(_0x34c1d7);_0x4c3aea&&_0x1c26d5(_0x264344);},_0x5a731e=_0x564509=>{const _0x3e065f=_0x5d6170;_0x2f2c7e(_0x564509[_0x3e065f(0x262)](({id:_0x2f333c})=>_0x2f333c));};return _0x366a17[_0x5d6170(0x1ca)](()=>{const _0x179bc7=_0x7c0040['map'](({id:_0xc34416})=>_0xc34416);_0x15b117(_0x4571c4=>{const _0x2ee709=_0x1c8d;var {id:_0x2e1b3d}=_0x4571c4,_0x3acaca=__rest(_0x4571c4,['id']);return Object[_0x2ee709(0x224)]({'id':_0x2e1b3d&&_0x179bc7['includes'](_0x2e1b3d)?_0x2e1b3d:undefined},_0x3acaca);});},[_0x7c0040,_0x15b117]),_0x366a17[_0x5d6170(0x1ca)](()=>{const _0x4bc50f=_0x5d6170;if(!_0x45cf7a)return;const _0x2d344d=_0x560400=>{const _0x4916bf=_0x1c8d;_0x560400['key']===_0x4916bf(0xab)&&_0xa83f2a();};return _0x45cf7a['addEventListener'](_0x4bc50f(0x21e),_0x2d344d),()=>{const _0x5785d3=_0x4bc50f;_0x45cf7a[_0x5785d3(0x145)]('keydown',_0x2d344d);};},[_0xa83f2a,_0x45cf7a,_0x1ee5eb]),{'assetsToDelete':_0x521d90,'handleAssetUpdate':_0x451aca,'handleDeleteCancel':_0x3445db,'handleDeleteConfirm':_0x47ab3f,'handleDelete':_0xa83f2a,'handleDownload':_0x333546,'handleUpdateLastChooseDate':_0x5a731e,'handlePropertiesClose':_0x470ebb,'handlePropertiesOpen':_0x7cc69a,'handleRename':_0x2fe0ab};},Assets=_0x366a17['forwardRef'](({assets:_0x32ce9c,displayOptions:_0x2adede,estimatedTotalAssetsCount:_0x54c909,isFilesDropActive:_0x102a7b,totalAssetsCount:_0x508287,pageNumber:_0x4a411b,onChoose:_0x645a2,onPageChange:_0x278e6b,fallbackContent:_0x154259,isInitDataLoading:_0x41f04d,isNextDataLoading:_0x27e7b5,uploadButton:_0x1678e2},_0x3a8eb4)=>{const _0x4627cc=_0x519ca6,{showPrimaryLoader:_0x26e5e5,showSecondaryLoader:_0x57c71a}=useLoader(_0x41f04d,_0x27e7b5),[_0x4539b4,_0x41379f]=_0x366a17[_0x4627cc(0x180)]({'id':undefined,'focusFileName':![]}),{containerRef:_0x39f14d,onAssetKeyDown:_0x3de6a9,onAssetMouseDown:_0x5eb629,onContainerMouseDown:_0x51a0dc,onSelectionAreaChange:_0x20e4a7,selectedAssets:_0x222bbe,setContainerRef:_0x17c1fd,setAssetRef:_0x25ee5d}=useAssetsSelection(_0x32ce9c,!!_0x4539b4['id']),{assetsToDelete:_0x3d9bc2,handleAssetUpdate:_0x187043,handleDeleteCancel:_0x1de4e1,handleDeleteConfirm:_0x453341,handleDelete:_0x3821eb,handleDownload:_0x507ea4,handleUpdateLastChooseDate:_0x48bc27,handlePropertiesClose:_0x76d3d1,handlePropertiesOpen:_0x586fd5,handleRename:_0x54b738}=useAssetsActions(_0x32ce9c,_0x222bbe,_0x41379f,!_0x4539b4['id']),_0xd3dc8f=Object[_0x4627cc(0x26e)](_0x222bbe),_0x3bd61b=_0xd3dc8f['length'],_0x4a5db0=_0x3bd61b>0x0,_0x939027=_0x3bd61b===0x1,_0x3a76cf=_0x32ce9c[_0x4627cc(0x1bb)](({id:_0x3ee76c})=>_0xd3dc8f[0x0]===_0x3ee76c),_0x42030e=()=>{const _0x660ef5=_0x4627cc,_0x38e235=_0x32ce9c[_0x660ef5(0x211)](({id:_0x5ee101})=>!!_0x222bbe[_0x5ee101]);_0x645a2===null||_0x645a2===void 0x0?void 0x0:_0x645a2(_0x38e235),_0x48bc27(_0x38e235);},_0x1f052d=_0x366a17[_0x4627cc(0x13a)](_0x26d7e1=>{const _0x4b728c=_0x4627cc;_0x17c1fd(_0x26d7e1);if(typeof _0x3a8eb4===_0x4b728c(0x231))_0x3a8eb4(_0x26d7e1);else _0x3a8eb4&&(_0x3a8eb4[_0x4b728c(0x269)]=_0x26d7e1);});return _0x366a17[_0x4627cc(0xcc)](_0x366a17[_0x4627cc(0xd4)],null,_0x366a17[_0x4627cc(0xcc)](View,{'bottombar':!_0x26e5e5&&_0x508287>0x0&&_0x366a17[_0x4627cc(0xcc)](AssetsBottombar,{'assetsPerPage':_0x2adede['assetsPerPage'],'isLoading':_0x57c71a,'onChoose':_0x645a2?_0x42030e:undefined,'onPageChange':_0x278e6b,'pageNumber':_0x4a411b,'selectedAssetsNum':_0x3bd61b,'totalAssetsCount':_0x508287}),'topbar':_0x366a17[_0x4627cc(0xcc)](AssetsTopbar,{'displayOptions':_0x2adede,'isDeleteActive':_0x4a5db0,'isDownloadActive':_0x939027,'isPropertiesActive':_0x939027,'onDelete':_0x3821eb,'onDownload':_0x507ea4,'onProperties':_0x586fd5,'onRename':_0x54b738,'uploadButton':_0x1678e2}),'ref':_0x1f052d[_0x4627cc(0x269)],'isContentActive':_0x102a7b,'onContentMouseDown':_0x51a0dc},_0x366a17[_0x4627cc(0xcc)](AssetsContent,{'assetsPerPage':_0x2adede[_0x4627cc(0x1dc)],'allowCover':!_0x2adede[_0x4627cc(0x129)],'assets':_0x32ce9c,'estimatedTotalAssetsCount':_0x54c909,'containerRef':_0x39f14d,'fallbackContent':_0x154259,'onAssetKeyDown':_0x3de6a9,'onAssetMouseDown':_0x5eb629,'onSelectionAreaChange':_0x20e4a7,'pageNumber':_0x4a411b,'selectedAssets':_0x222bbe,'isLoading':_0x26e5e5||_0x57c71a,'thumbSize':_0x2adede[_0x4627cc(0x16b)],'setAssetRef':_0x25ee5d})),_0x3a76cf&&_0x4539b4['id']&&_0x366a17[_0x4627cc(0xcc)](AssetPropertiesDialog,{'assetData':_0x3a76cf,'focusFileName':_0x4539b4[_0x4627cc(0x25f)],'onClose':_0x76d3d1,'onSave':_0x187043}),_0x366a17[_0x4627cc(0xcc)](AssetsDeleteDialog,{'assetsToDelete':_0x3d9bc2,'onConfirm':_0x453341,'onCancel':_0x1de4e1}));});Assets[_0x519ca6(0xfd)]=_0x519ca6(0x1c5);const ErrorContainer=({error:_0x111d31})=>{const _0x49cca4=_0x519ca6,{t:_0x3696ba}=useTranslation();return _0x366a17[_0x49cca4(0xcc)](NotificationDetails,{'type':_0x49cca4(0x9c),'title':_0x3696ba(_0x49cca4(0x266))},_0x366a17[_0x49cca4(0xcc)]('div',null,_0x366a17[_0x49cca4(0xcc)]('strong',null,_0x3696ba(_0x49cca4(0x1d5)))),_0x111d31&&_0x366a17[_0x49cca4(0xcc)](_0x49cca4(0x25c),null,_0x111d31[_0x49cca4(0x28d)]+':\x20'+_0x111d31[_0x49cca4(0x245)]));},Notifications=()=>{const _0x19fd58=_0x519ca6,{t:_0x2a15b2}=useTranslation(),{bottomOffsetEl:_0x2eab57,notifications:_0x3d7af9,dismissNotification:_0x530183}=useNotifications(),_0x5c30f2=_0x5552d5=>()=>{_0x530183(_0x5552d5);};return _0x366a17[_0x19fd58(0xcc)](_0x44cb99,{'bottomOffsetEl':_0x2eab57},_0x3d7af9[_0x19fd58(0x262)](({title:_0x1df80d,type:_0xdaf664,details:_0x175314,id:_0x4af493})=>_0x366a17[_0x19fd58(0xcc)](Notification,{'closeLabel':_0x2a15b2(_0x19fd58(0x254)),'closeDetailsLabel':_0x2a15b2(_0x19fd58(0x22a)),'details':_0x175314,'key':_0x4af493,'onClose':_0x5c30f2(_0x4af493),'title':_0x1df80d,'openDetailsLabel':_0x2a15b2(_0x19fd58(0x13d)),'type':_0xdaf664})));},TimeLeft=({time:_0x23fec5})=>{const _0x26d424=_0x519ca6,{t:_0x3cc7c3}=useTranslation(),{h:_0x1e8dfc,m:_0x3607ca,s:_0x1a393f}=formatTimeDistance(_0x23fec5);if(_0x1e8dfc>0x18)return _0x366a17[_0x26d424(0xcc)](_0x26d424(0x199),null,_0x3cc7c3(_0x26d424(0x1cb)));else{if(_0x1e8dfc&&_0x3607ca){const _0x50bbf6=_0x3cc7c3(_0x26d424(0x1b6),{'values':[_0x1e8dfc],'plural':_0x1e8dfc}),_0x4f9b2e=_0x3cc7c3(_0x26d424(0x274),{'values':[_0x3607ca],'plural':_0x3607ca});return _0x366a17['createElement'](_0x26d424(0x199),null,_0x3cc7c3(_0x26d424(0xeb),{'values':[_0x50bbf6+'\x20'+_0x4f9b2e]}));}else{if(_0x1e8dfc){const _0x4195da=_0x3cc7c3('%d\x20h',{'values':[_0x1e8dfc],'plural':_0x1e8dfc});return _0x366a17['createElement'](_0x26d424(0x199),null,_0x3cc7c3(_0x26d424(0xeb),{'values':[_0x4195da]}));}else{if(_0x3607ca&&_0x1a393f){const _0x36aaf8=_0x3cc7c3(_0x26d424(0x274),{'values':[_0x3607ca],'plural':_0x3607ca}),_0x4ced07=_0x3cc7c3(_0x26d424(0x21f),{'values':[_0x1a393f],'plural':_0x1a393f});return _0x366a17[_0x26d424(0xcc)](_0x26d424(0x199),null,_0x3cc7c3('%s\x20left',{'values':[_0x36aaf8+'\x20'+_0x4ced07]}));}else{if(_0x3607ca){const _0x412cee=_0x3cc7c3(_0x26d424(0x274),{'values':[_0x3607ca],'plural':_0x3607ca});return _0x366a17[_0x26d424(0xcc)]('span',null,_0x3cc7c3(_0x26d424(0xeb),{'values':[_0x412cee]}));}else{if(_0x1a393f){const _0x1d788a=_0x3cc7c3(_0x26d424(0x21f),{'values':[_0x1a393f],'plural':_0x1a393f});return _0x366a17[_0x26d424(0xcc)](_0x26d424(0x199),null,_0x3cc7c3('%s\x20left',{'values':[_0x1d788a]}));}else return null;}}}}}},UploadButton=({category:_0x2a3420})=>{const _0x26daee=_0x519ca6,{t:_0x4bed6a}=useTranslation(),{register:_0x6c78b7,handleSubmit:_0x3db7e9,reset:_0x38dbad}=useForm(),{startUpload:_0x4e00e5}=useStartUpload(_0x2a3420),_0x9b17cb=_0x3db7e9(_0x2f3fcb=>{const _0x2afb2f=_0x1c8d,_0x541fc5=Array[_0x2afb2f(0x25a)](_0x2f3fcb[_0x2afb2f(0x20f)]);_0x38dbad(),_0x4e00e5(_0x541fc5);}),_0x37cec4=_0x6c78b7(_0x26daee(0x20f)),{onChange:_0x31bc8e}=_0x37cec4,_0x39f0f1=__rest(_0x37cec4,['onChange']),_0xc6b1ed=async _0x2a61c0=>{await _0x31bc8e(_0x2a61c0),await _0x9b17cb();};return _0x366a17[_0x26daee(0xcc)](Form,{'onSubmit':_0x9b17cb},_0x366a17[_0x26daee(0xcc)](FileInputButton,Object[_0x26daee(0x224)]({'id':_0x26daee(0x20f),'color':_0x26daee(0x141),'type':_0x26daee(0x25b),'icon':_0x26daee(0x165)},_0x39f0f1,{'onChange':_0xc6b1ed,'accept':_0x2a3420[_0x26daee(0xc0)][_0x26daee(0x262)](_0x1d371f=>'.'+_0x1d371f)['join'](',')}),_0x4bed6a(_0x26daee(0x165))));},UploadDialogFooter=({onAbortClick:_0x559135,onErrorClick:_0x3d4bfe,queue:_0x58d0c1})=>{const _0x4869f9=_0x519ca6,{t:_0x224558}=useTranslation(),_0x5d2072=[],_0x3f61ca=_0x58d0c1[_0x4869f9(0xd0)],{abortable:_0x3277eb,errors:_0x20df6e,uploaded:_0x63d95}=_0x58d0c1[_0x4869f9(0x18f)]((_0x155e80,{abortable:_0x4c1e36,error:_0x32e711,status:_0x58a8eb})=>{const _0x32e825=_0x4869f9,_0x299501=_0x58a8eb===UploadStatus[_0x32e825(0x123)];return{'abortable':_0x155e80[_0x32e825(0x265)]||!!_0x4c1e36,'errors':_0x32e711?_0x155e80[_0x32e825(0x1c7)]+0x1:_0x155e80[_0x32e825(0x1c7)],'uploaded':_0x299501?_0x155e80['uploaded']+0x1:_0x155e80[_0x32e825(0x268)]};},{'abortable':![],'errors':0x0,'uploaded':0x0});return _0x20df6e>0x0&&_0x5d2072[_0x4869f9(0xb8)]({'label':_0x224558(_0x4869f9(0x275),{'plural':_0x20df6e,'values':[_0x20df6e],'processTags':!![]}),'error':!![],'onClick':_0x3d4bfe}),_0x3f61ca>0x0&&_0x5d2072[_0x4869f9(0xb8)]({'label':_0x224558(_0x4869f9(0x202),{'plural':_0x3f61ca,'values':[_0x63d95,_0x3f61ca],'processTags':!![]})}),_0x366a17[_0x4869f9(0xcc)](DialogFooter,{'sideContent':_0x5d2072},!!_0x3277eb&&_0x366a17[_0x4869f9(0xcc)](Button,{'color':_0x4869f9(0x1f1),'onClick':_0x559135},_0x224558('Abort\x20upload')));},getErrorMsg=(_0x1f3797,_0x42ceb9,_0x318473)=>{const _0x5043d0=_0x519ca6;switch(_0x318473===null||_0x318473===void 0x0?void 0x0:_0x318473[_0x5043d0(0x142)]){case UploadErrorType[_0x5043d0(0x147)]:return _0x1f3797(_0x5043d0(0x1d7),{'values':[_0x42ceb9],'processTags':!![]});case UploadErrorType[_0x5043d0(0xb7)]:return _0x1f3797(_0x5043d0(0x276),{'values':[(_0x318473===null||_0x318473===void 0x0?void 0x0:_0x318473[_0x5043d0(0x185)])+'MP']});case UploadErrorType[_0x5043d0(0xf4)]:return _0x1f3797('Maximum\x20file\x20size\x20allowed\x20is\x20%s',{'values':[getAssetSize(parseInt((_0x318473===null||_0x318473===void 0x0?void 0x0:_0x318473[_0x5043d0(0x185)])||'0'))]});default:return _0x1f3797('An\x20error\x20has\x20occurred');}},getHelpTextMsg=(_0x25c335,_0x2307b0,_0x400c6d,_0x3cc877)=>{const _0x127e44=_0x519ca6;switch(_0x2307b0){case UploadStatus[_0x127e44(0x228)]:return _0x25c335(_0x127e44(0x1d2));case UploadStatus[_0x127e44(0x288)]:return getErrorMsg(_0x25c335,_0x400c6d,_0x3cc877);case UploadStatus[_0x127e44(0x99)]:return _0x25c335(_0x127e44(0x26a));default:return undefined;}},getProgress=(_0x2a95dd,_0x5cceb1)=>{const _0x2a14ac=_0x519ca6;switch(_0x2a95dd){case UploadStatus['COMPLETED']:case UploadStatus[_0x2a14ac(0x24f)]:return Math[_0x2a14ac(0x13c)](_0x5cceb1!==null&&_0x5cceb1!==void 0x0?_0x5cceb1:0x0);default:return 0x0;}},UploadProgressPanel=_0x366a17[_0x519ca6(0x1f2)](({categoryName:_0x5560c1,errorData:_0xce6a40,id:_0x2e4bb0,name:_0xbd8dc,overhead:_0x207eac,progress:_0x550d4e,size:_0x343aa8,status:_0xaa2e5f,uploaded:_0x5e9490},_0x4e7cad)=>{const _0x45d5d2=_0x519ca6,{t:_0x427312}=useTranslation(),_0x5f2ee5=_0xaa2e5f===UploadStatus['COMPLETED']||_0xaa2e5f===UploadStatus[_0x45d5d2(0x24f)];return _0x366a17['createElement'](ProgressPanel,{'ref':_0x4e7cad,'additionalInfo':_0x207eac?_0x427312(_0x45d5d2(0x15f),{'values':[getAssetSize(_0x5f2ee5?_0x5e9490-_0x207eac:0x0),getAssetSize(_0x343aa8)]}):null,'error':_0xce6a40!==undefined,'completed':_0xaa2e5f===UploadStatus[_0x45d5d2(0x123)],'helpText':getHelpTextMsg(_0x427312,_0xaa2e5f,_0x5560c1,_0xce6a40),'id':_0x2e4bb0,'title':_0xbd8dc,'value':getProgress(_0xaa2e5f,_0x550d4e)});});UploadProgressPanel['displayName']='UploadProgressPanel';var UploadProgressPanel$1=_0x366a17[_0x519ca6(0x29e)](UploadProgressPanel);const AUTO_SCROLL_TIMEOUT=0x3e8,UploadQueue=({queue:_0x1dc3c3,scrollTo:_0x185dcb})=>{const _0x2c6d3d=_0x519ca6,_0x5cc1f0=_0x366a17[_0x2c6d3d(0x13a)](!![]),[_0xed178e,_0x813052]=_0x366a17[_0x2c6d3d(0x180)](null),_0xef92ce=_0x366a17[_0x2c6d3d(0x13a)](_0x1b080c(_0x559938=>{const _0x2a5974=_0x2c6d3d,_0x636307={'block':_0x2a5974(0x130)};_0x5cc1f0[_0x2a5974(0x269)]?_0x5cc1f0[_0x2a5974(0x269)]=![]:_0x636307[_0x2a5974(0x122)]=_0x2a5974(0x229),_0x559938[_0x2a5974(0x174)](_0x636307);},AUTO_SCROLL_TIMEOUT,{'leading':!![]}));return _0x366a17[_0x2c6d3d(0x1ca)](()=>{const _0x3ffc20=_0x2c6d3d;if(!_0xed178e)return;_0xef92ce[_0x3ffc20(0x269)](_0xed178e);},[_0xed178e]),_0x366a17[_0x2c6d3d(0xcc)](_0x2c6d3d(0x25c),null,_0x1dc3c3[_0x2c6d3d(0x262)](({category:_0x1d9b5f,error:_0x4e0078,id:_0x78cebd,name:_0x58dc49,progress:_0x5a0276,size:_0x4b103e,status:_0x570db7,overhead:_0x41b147,uploaded:_0x56e1bd})=>_0x366a17['createElement'](UploadProgressPanel$1,{'ref':_0x185dcb&&_0x185dcb['id']===_0x78cebd?_0x813052:undefined,'key':_0x78cebd,'categoryName':_0x1d9b5f[_0x2c6d3d(0x28d)],'errorData':_0x4e0078,'id':_0x78cebd,'name':_0x58dc49,'overhead':_0x41b147,'size':_0x4b103e,'status':_0x570db7,'progress':_0x5a0276,'uploaded':_0x56e1bd})));};var UploadQueue$1=_0x366a17[_0x519ca6(0x29e)](UploadQueue);const opts={},getSubTitle=(_0x34e44a,_0x23be52,_0x7a2332)=>{const _0x3346ad=_0x519ca6;return _0x23be52?_0x34e44a(_0x3346ad(0x1b7),opts):_0x7a2332?_0x34e44a('Upload\x20finished',opts):undefined;},DRAG_TIMEOUT=0x3e8,UploadDialog=()=>{const _0x5c54ee=_0x519ca6,{t:_0x59e78e}=useTranslation(),{autoScroll:_0x44ce2d,closeDialog:_0x29818a,disableAutoFeats:_0x599b8a,disableAutoHide:_0x4b09d7,isDialogOpen:_0x264ffd}=useUploadComponents$1(),{abortUpload:_0x54d289}=useUploadUpdater(),{estimatedTimeLeft:_0x41644c,totalProgress:_0x12a5b6,queue:_0x1638d2,concluded:_0x3af640,aborted:_0x28b535,focusedAsset:_0x50d791}=useUploadState(),_0x3f7b1e=_0x366a17[_0x5c54ee(0x13a)](null),_0x3fd57e=_0x366a17[_0x5c54ee(0x13a)](_0x1b080c(_0x4b09d7,DRAG_TIMEOUT,{'leading':!![]}));if(!_0x264ffd)return null;const _0x182c41=()=>{_0x54d289(_0x1638d2);},_0x4f3d66=()=>{_0x29818a(_0x3af640);},_0x3a30e4=()=>{const _0x170ca0=_0x5c54ee;var _0x1d76bf;_0x599b8a(),(_0x1d76bf=_0x3f7b1e[_0x170ca0(0x269)])===null||_0x1d76bf===void 0x0?void 0x0:_0x1d76bf['scrollTo']({'top':0x0,'behavior':_0x170ca0(0x229)});},_0x37fb9e=Math[_0x5c54ee(0x13c)](_0x12a5b6!==null&&_0x12a5b6!==void 0x0?_0x12a5b6:0x0);return _0x366a17[_0x5c54ee(0xcc)](Dialog,{'draggable':!![],'height':'md','onDrag':_0x3fd57e[_0x5c54ee(0x269)],'onClose':_0x4f3d66},_0x366a17[_0x5c54ee(0xcc)](DialogHeader,{'autofocus':!![],'closeLabel':_0x59e78e(_0x5c54ee(0xfe)),'subTitle':_0x41644c?_0x366a17[_0x5c54ee(0xcc)](TimeLeft,{'time':Math[_0x5c54ee(0x13c)](_0x41644c/0x3e8)}):getSubTitle(_0x59e78e,_0x28b535,_0x3af640),'title':_0x37fb9e+'%','inProgress':!_0x3af640,'progress':!![],'progressValue':_0x37fb9e}),_0x366a17[_0x5c54ee(0xcc)](DialogColumn,{'ref':_0x3f7b1e,'overflow':!![],'onKeyDown':_0x599b8a,'onMouseDown':_0x599b8a,'onTouchStart':_0x599b8a,'onWheel':_0x599b8a},_0x366a17[_0x5c54ee(0xcc)](UploadQueue$1,{'scrollTo':_0x44ce2d?_0x50d791:undefined,'queue':_0x1638d2})),_0x366a17[_0x5c54ee(0xcc)](UploadDialogFooter,{'onAbortClick':_0x182c41,'onErrorClick':_0x3a30e4,'queue':_0x1638d2}));},CoreFallbackProviders=({error:_0x5bfed8})=>{const _0x43f3ad=_0x519ca6,{language:_0x15cc79,dialog:_0x1bd960,theme:_0x14acaa}=useCoreContext();return _0x366a17[_0x43f3ad(0xcc)](LanguageProvider,{'language':_0x15cc79},_0x366a17['createElement'](UIProvider,{'dialog':_0x1bd960,'theme':_0x14acaa},_0x366a17[_0x43f3ad(0xcc)](ErrorContainer,{'error':_0x5bfed8})));};class CoreErrorBoundary extends _0x366a17[_0x519ca6(0xd9)]{constructor(_0x593a5){const _0x15a46c=_0x519ca6;super(_0x593a5),this[_0x15a46c(0x16c)]={'hasError':![]};}static[_0x519ca6(0x154)](_0x213f64){return{'error':_0x213f64,'hasError':!![]};}[_0x519ca6(0x1f4)](_0x32347a){console['error'](_0x32347a);}[_0x519ca6(0x20a)](){const _0x1478a3=_0x519ca6;if(this['state']['hasError'])return _0x366a17[_0x1478a3(0xcc)](CoreFallbackProviders,{'error':this[_0x1478a3(0x16c)][_0x1478a3(0x9c)]});return this[_0x1478a3(0x100)][_0x1478a3(0x23e)];}}const Category=({category:_0x4d46c9,onChoose:_0x33a76d,suspendAssetsFetch:_0x12d95a})=>{const _0x1b3fc1=_0x519ca6;var _0x4df3a3,_0x538bc1;const {t:_0x5b2c12}=useTranslation(),{allowCover:_0x195f5e,assetsPerPage:_0x4bff67,currentPages:_0x203249,onCoverModeToggle:_0x321545,onAssetsPerPageChange:_0x6eb99c,onSortByChange:_0x334004,onSortOrderToggle:_0x902d6f,onThumbSizeChange:_0x246190,onViewPageChange:_0x34410e,sortBy:_0x2cb4d9,sortOrder:_0x5f4334,thumbSize:_0x106624}=useUserData$1(),{startUpload:_0x29ab04}=useStartUpload(_0x4d46c9),{drop:_0x5e640f,isActive:_0x5d6a7d}=useFilesDrop({'onDrop':_0x29ab04}),_0x38bc17=(_0x4df3a3=_0x203249[_0x4d46c9['id']])!==null&&_0x4df3a3!==void 0x0?_0x4df3a3:0x1,{data:_0x4ec76a,isLoading:_0x282caa,isPreviousData:_0x33ac42}=useGetCategoryAssets({'categoryId':_0x4d46c9['id'],'offset':(_0x38bc17-0x1)*_0x4bff67,'limit':_0x4bff67,'sort_by':_0x2cb4d9,'order':_0x5f4334},!_0x12d95a),_0x7f56f0=_0x25102f=>{_0x34410e(_0x4d46c9['id'],_0x25102f);};return _0x366a17[_0x1b3fc1(0xcc)](Assets,{'ref':_0x5e640f,'assets':(_0x538bc1=_0x4ec76a===null||_0x4ec76a===void 0x0?void 0x0:_0x4ec76a[_0x1b3fc1(0x257)])!==null&&_0x538bc1!==void 0x0?_0x538bc1:[],'displayOptions':{'allowCover':_0x195f5e,'assetsPerPage':_0x4bff67,'assetsPerPageOptions':[{'label':'50','onSelect':()=>{_0x6eb99c(0x32);}},{'label':_0x1b3fc1(0x1a6),'onSelect':()=>{_0x6eb99c(0x64);}},{'label':_0x1b3fc1(0xa7),'onSelect':()=>{_0x6eb99c(0xfa);}}],'onCoverModeToggle':_0x321545,'onThumbSizeChange':_0x246190,'thumbSize':_0x106624,'sort':_0x5b2c12(_0x2cb4d9),'sortOrder':_0x5f4334,'onSortOrderToggle':_0x902d6f,'sortOptions':[{'label':_0x5b2c12(_0x1b3fc1(0x28d)),'onSelect':()=>{const _0x22874e=_0x1b3fc1;_0x334004(_0x22874e(0x28d));}},{'label':_0x5b2c12(_0x1b3fc1(0x195)),'onSelect':()=>{const _0x4c1894=_0x1b3fc1;_0x334004(_0x4c1894(0x195));}},{'label':_0x5b2c12(_0x1b3fc1(0x263)),'onSelect':()=>{_0x334004('uploadedAt');}},{'label':_0x5b2c12(_0x1b3fc1(0xca)),'onSelect':()=>{const _0x2a6d2b=_0x1b3fc1;_0x334004(_0x2a6d2b(0xca));}}]},'estimatedTotalAssetsCount':_0x4d46c9[_0x1b3fc1(0x1af)],'totalAssetsCount':(_0x4ec76a===null||_0x4ec76a===void 0x0?void 0x0:_0x4ec76a[_0x1b3fc1(0x163)])||0x0,'pageNumber':_0x38bc17,'onChoose':_0x33a76d,'onPageChange':_0x7f56f0,'fallbackContent':_0x366a17[_0x1b3fc1(0xcc)](EmptyView,{'icon':_0x1b3fc1(0xc2),'label':_0x5b2c12(_0x1b3fc1(0x16e)),'active':_0x5d6a7d,'actionContainer':_0x366a17[_0x1b3fc1(0xcc)](UploadButton,{'category':_0x4d46c9})}),'isInitDataLoading':_0x282caa||_0x12d95a,'isNextDataLoading':_0x33ac42,'uploadButton':_0x366a17['createElement'](UploadButton,{'category':_0x4d46c9}),'isFilesDropActive':_0x5d6a7d});},IMAGES_QUALITIES_TRANSLATION_KEYS={0x14:'Low',0x28:_0x519ca6(0xb4),0x3c:'Good',0x50:_0x519ca6(0x291),0x64:_0x519ca6(0x160)},DEFAULT_IMAGES_CONFIG_FORMAT=_0x519ca6(0x16d),ImageFormatSettingsPanel=({initValues:_0x2ccab8,onSave:_0x32aaaf,onEdit:_0x50173d,onCancel:_0x11ca17})=>{const _0x2259e8=_0x519ca6,{t:_0x204bc8}=useTranslation(),{defaultQuality:_0x36aaff,editing:_0x20210f}=_0x2ccab8,_0x59c0cf={'defaultQuality':_0x36aaff},{reset:_0xbed866,handleSubmit:_0x284e40,setValue:_0x471511,watch:_0x26936a}=useForm({'defaultValues':_0x59c0cf}),_0x46ea06=_0x26936a(_0x2259e8(0xad)),_0x492a5b=_0x1ccfbd=>{_0x471511('defaultQuality',_0x1ccfbd);},_0xcc3873=_0x284e40(async _0x4e6c94=>{await _0x32aaaf(_0x4e6c94);}),_0x24f8e8=()=>{_0xbed866(),_0x11ca17();},_0x270e1a=_0x366a17[_0x2259e8(0xcc)](PanelActions,null,_0x366a17[_0x2259e8(0xcc)](Button,{'icon':_0x2259e8(0x198),'onClick':_0x50173d,'color':'action','type':_0x2259e8(0x1c3)},_0x204bc8(_0x2259e8(0x2a1)))),_0x2de9a0=_0x366a17['createElement'](PanelActions,null,_0x366a17[_0x2259e8(0xcc)](Button,{'htmlType':_0x2259e8(0x20b),'onClick':_0x24f8e8,'type':_0x2259e8(0x1c3)},_0x204bc8(_0x2259e8(0x1c0))),_0x366a17['createElement'](Button,{'htmlType':_0x2259e8(0x187),'color':_0x2259e8(0x141),'type':_0x2259e8(0x25b)},_0x204bc8(_0x2259e8(0x15c)))),_0x5ac770=Object[_0x2259e8(0xde)](IMAGES_QUALITIES_TRANSLATION_KEYS)[_0x2259e8(0x18f)]((_0x4a8fb3,[_0x427cc1,_0x116451])=>{const _0x51f7e6=_0x2259e8;return Object[_0x51f7e6(0x224)](Object[_0x51f7e6(0x224)]({},_0x4a8fb3),{[_0x427cc1]:_0x204bc8(_0x116451)});},{});return _0x366a17[_0x2259e8(0xcc)](Panel,{'icon':_0x2259e8(0x1a4),'edit':_0x20210f,'onSubmit':_0xcc3873},_0x366a17[_0x2259e8(0xcc)](PanelTitle,{'title':_0x204bc8(_0x2259e8(0x15d))}),_0x366a17[_0x2259e8(0xcc)](PanelContent,{'editHeader':_0x204bc8(_0x2259e8(0x259)),'editComponent':_0x366a17['createElement'](FormGroup,null,_0x366a17['createElement'](RangeSlider,{'animated':!![],'halfWidth':!![],'min':0x14,'max':0x64,'onChange':_0x492a5b,'value':_0x46ea06,'step':0x14,'textValues':_0x5ac770,'showLabels':!![]}))},_0x366a17['createElement'](PanelContentProp,{'label':_0x204bc8('Image\x20quality:'),'value':_0x204bc8(IMAGES_QUALITIES_TRANSLATION_KEYS[_0x36aaff],{})})),_0x20210f?_0x2de9a0:_0x270e1a);},useImageSettings=()=>{const _0x27b0dd=_0x519ca6,{data:data={},isLoading:_0x1635f6}=useGetImagesConfig(),{mutateAsync:_0x3b0174}=useUpdateImageFormatConfig(),[_0x5be116,_0x1c8d46]=_0x366a17[_0x27b0dd(0x180)](![]),_0x51f848=async({defaultQuality:_0x4d035b})=>{const _0x47c126={'defaultQuality':_0x4d035b};await _0x3b0174({'format':DEFAULT_IMAGES_CONFIG_FORMAT,'payload':_0x47c126}),_0x1c8d46(![]);},_0x110c16=()=>{_0x1c8d46(!![]);},_0x533d18=()=>{_0x1c8d46(![]);};return{'imagesConfig':data[DEFAULT_IMAGES_CONFIG_FORMAT],'imagesConfigLoading':_0x1635f6,'onSave':_0x51f848,'onEdit':_0x110c16,'onCancel':_0x533d18,'editing':_0x5be116};},ImageFormatSettingsPanelLoader=()=>{const _0x487535=_0x519ca6;return _0x366a17[_0x487535(0xcc)](Panel,null,_0x366a17[_0x487535(0xcc)](PanelContent,null,_0x366a17[_0x487535(0xcc)](PanelSkeleton,{'size':'md','blocks':0x1})),_0x366a17[_0x487535(0xcc)](PanelContent,null,_0x366a17['createElement'](PanelSkeleton,{'size':'lg','blocks':0x1})),_0x366a17[_0x487535(0xcc)](PanelActions,null,_0x366a17['createElement'](PanelSkeleton,{'size':'md','blocks':0x2})));},ImagesSettings=()=>{const _0x58d9e8=_0x519ca6,{imagesConfig:_0x198796,imagesConfigLoading:_0x3557de,editing:_0xe59548,onSave:_0xdd4ea8,onCancel:_0xd876bf,onEdit:_0x19dfcf}=useImageSettings(),_0x3753fe=useDeferredUnmount(_0x3557de,0xfa);if(_0x3753fe)return _0x366a17[_0x58d9e8(0xcc)](PanelList,null,_0x366a17[_0x58d9e8(0xcc)](ImageFormatSettingsPanelLoader,null));if(!(_0x198796===null||_0x198796===void 0x0?void 0x0:_0x198796[_0x58d9e8(0xad)]))return null;return _0x366a17[_0x58d9e8(0xcc)](PanelList,null,_0x366a17[_0x58d9e8(0xcc)](ImageFormatSettingsPanel,{'initValues':{'defaultQuality':_0x198796[_0x58d9e8(0xad)],'editing':_0xe59548},'onSave':_0xdd4ea8,'onCancel':_0xd876bf,'onEdit':_0x19dfcf}));},useAssetCategories=()=>{const _0x349d12=_0x519ca6,{data:data=[],isLoading:_0x422565,isSuccess:_0x8cc78}=useGetAdminCategories(),{data:_0x3cb2fc=[]}=useGetCategories(),{stageCategory:_0x1fadb0,deleteCategory:_0x505de9,unstageCategory:_0xe2717e,editCategory:_0x5db5bd}=useStageCategory(),{mutateAsync:_0x1f2717}=useDeleteCategory(),{mutateAsync:_0x4c7e97}=useUpdateCategory(),{mutateAsync:_0x5edd64}=useCreateCategory(),{mutateAsync:_0x9ae8fd}=useUpdateCategoriesOrder(),_0x339d4a=useListDnd([]),_0x4236e0=_0x339d4a[_0x349d12(0x170)],_0x52b1eb=data[_0x349d12(0x12b)](_0x3a263d=>!!_0x3a263d[_0x349d12(0x20e)]),_0x4fbcd3=data[_0x349d12(0x18f)]((_0x281270,_0x4be20a)=>{return _0x281270[_0x4be20a['id']]=_0x4be20a,_0x281270;},{}),_0x198082=_0x339d4a['items']['filter'](({id:_0x520427})=>!!_0x4fbcd3[_0x520427]);_0x2f0597['useEffect'](()=>{const _0x426e84=_0x349d12;_0x8cc78&&_0x4236e0(data[_0x426e84(0x262)](({id:_0x1d717a})=>({'id':_0x1d717a})));},[data,_0x8cc78,_0x4236e0]);const _0x439ff5=()=>{_0x1fadb0({'name':'','assetsCount':0x0,'extensions':[],'extensionsInUse':[]});},_0x381888=_0x2a8ebb=>()=>{const _0x35bf93=_0x349d12;var _0x4bc168;const _0x2082f4=_0x4fbcd3[_0x2a8ebb];((_0x4bc168=_0x2082f4['stage'])===null||_0x4bc168===void 0x0?void 0x0:_0x4bc168[_0x35bf93(0xdf)])?_0x505de9(_0x2a8ebb):_0xe2717e(_0x2a8ebb);},_0x57b672=_0x2ecaca=>async()=>{await _0x1f2717({'categoryId':_0x2ecaca});},_0x3f05d1=async()=>{const _0x38f4b4=_0x349d12;await _0x9ae8fd(_0x339d4a[_0x38f4b4(0x257)][_0x38f4b4(0x262)](({id:_0x11be10})=>_0x11be10));},_0x3ec61e=_0x522392=>()=>{_0x5db5bd(_0x522392);},_0x54999c=_0x56a433=>{return async _0x360d13=>{const _0xc0baca=_0x1c8d;var _0x22b946;const _0x2fcaae=_0x4fbcd3[_0x56a433];if(!_0x2fcaae)return;((_0x22b946=_0x2fcaae[_0xc0baca(0x20e)])===null||_0x22b946===void 0x0?void 0x0:_0x22b946['newlyAdded'])?await _0x5edd64(Object[_0xc0baca(0x224)](Object[_0xc0baca(0x224)]({},_0x360d13),{'categoryId':_0x56a433,'position':0x1})):await _0x4c7e97({'categoryId':_0x56a433,'payload':_0x360d13});};};return{'categories':_0x4fbcd3,'categoriesLoading':_0x422565,'estimatedCategoriesCount':_0x3cb2fc[_0x349d12(0xd0)],'dnd':_0x339d4a,'hasStagedCategory':_0x52b1eb,'items':_0x198082,'onAdd':_0x439ff5,'onCancel':_0x381888,'onDelete':_0x57b672,'onEdit':_0x3ec61e,'onSave':_0x54999c,'onUpdatePosition':_0x3f05d1};},ConfirmCategoryDialog=({categoryName:_0x5cb4d2,content:_0x556710,formId:_0x480579,headerLabel:_0x414688,onClose:_0x1414d7,onConfirm:_0x4dfc30})=>{const _0x63e940=_0x519ca6,[_0x1167a7,_0x155232]=_0x366a17['useState'](null),{t:_0x473ed6}=useTranslation(),{handleSubmit:_0x51d190,register:_0x5b217f,watch:_0x47fa0a}=useForm({'defaultValues':{'categoryName':''}}),_0x1990b8=_0x47fa0a('categoryName'),_0x3fdc0a=_0x1990b8===_0x5cb4d2,_0x50f4f4=_0x51d190(()=>{_0x3fdc0a&&_0x4dfc30();});_0x366a17['useEffect'](()=>{const _0x3277f7=_0x1c8d;_0x1167a7&&_0x1167a7[_0x3277f7(0x1cd)]();},[_0x1167a7]);const _0x4811c2=_0x5b217f(_0x63e940(0x27e)),{ref:_0x3b7ec8}=_0x4811c2,_0x51bbd0=__rest(_0x4811c2,[_0x63e940(0x1cf)]);return _0x366a17['createElement'](Dialog,{'modal':!![],'onClose':_0x1414d7,'size':'sm'},_0x366a17[_0x63e940(0xcc)](DialogHeader,{'closeLabel':_0x473ed6(_0x63e940(0x254))}),_0x366a17[_0x63e940(0xcc)](DialogColumn,null,_0x366a17[_0x63e940(0xcc)](DialogSection,{'header':!![]},_0x414688),_0x366a17[_0x63e940(0xcc)](DialogSection,{'error':!![]},_0x473ed6(_0x63e940(0x161))),_0x556710,_0x366a17[_0x63e940(0xcc)](DialogSection,{'collapse':!![]},_0x366a17[_0x63e940(0xcc)](_0x63e940(0x199),null,_0x473ed6(_0x63e940(0x1ef))),_0x366a17[_0x63e940(0xcc)](Form,{'onSubmit':_0x50f4f4,'id':_0x480579},_0x366a17['createElement'](FormGroup,{'offset':_0x63e940(0x1dd)},_0x366a17[_0x63e940(0xcc)](FormInputLabel,{'htmlFor':_0x63e940(0x292)},_0x473ed6('Category\x20name')),_0x366a17['createElement'](Input,Object[_0x63e940(0x224)]({'id':_0x63e940(0x292),'ref':_0x146d43=>{_0x3b7ec8(_0x146d43),_0x155232(_0x146d43);}},_0x51bbd0))))),_0x366a17[_0x63e940(0xcc)](DialogActions,null,_0x366a17[_0x63e940(0xcc)](Button,{'onClick':_0x1414d7,'type':_0x63e940(0x1c3)},_0x473ed6(_0x63e940(0x1c0))),_0x366a17[_0x63e940(0xcc)](Button,{'color':_0x63e940(0x1f1),'type':'fill','form':_0x480579,'htmlType':'submit','disabled':!_0x3fdc0a},_0x473ed6(_0x63e940(0xab))))));},AssetCategoryPanel=({initValues:_0x256783,isLast:_0x3ed320,onDelete:_0x1e2ce9,onEdit:_0x171bcf,setDragHandle:_0x4abb53,setItemRoot:_0x104692,isDragging:_0x2a8ec9,isDraggable:_0x575d52,isPreview:_0x5124a2})=>{const _0x2d7f10=_0x519ca6,{t:_0x33a108}=useTranslation(),{getCategoryIconProps:_0x5349fe}=useCategoriesConfig(),[_0x41d993,_0x320ede]=_0x366a17['useState'](![]),{id:_0xa93fce,name:_0x21c46d,extensions:_0x1c06c1}=_0x256783,_0x510f97=()=>{_0x320ede(!![]);},_0x3c64b9=()=>{_0x320ede(![]);},_0x2cb0f6=async()=>{await _0x1e2ce9(),_0x320ede(![]);},_0x2ad612=_0x5349fe({'categoryName':_0x21c46d,'categoryId':_0xa93fce});return _0x366a17[_0x2d7f10(0xcc)](_0x366a17[_0x2d7f10(0xd4)],null,_0x366a17[_0x2d7f10(0xcc)](Panel,{'ref':_0x104692,'icon':_0x2ad612[_0x2d7f10(0x28d)],'iconRender':_0x2ad612['render'],'border':!_0x3ed320,'opaque':_0x2a8ec9,'elevated':_0x5124a2},_0x575d52&&_0x366a17[_0x2d7f10(0xcc)](PanelDragHandle,{'ref':_0x4abb53}),_0x366a17[_0x2d7f10(0xcc)](PanelTitle,{'title':_0x21c46d,'description':_0xa93fce,'descriptionTooltip':_0x33a108(_0x2d7f10(0xf5))}),_0x366a17['createElement'](PanelContent,{'header':_0x33a108(_0x2d7f10(0xda))},_0x366a17[_0x2d7f10(0xcc)](TagList,null,_0x1c06c1[_0x2d7f10(0x262)]((_0x47cacf,_0x145ee2)=>_0x366a17[_0x2d7f10(0xcc)](Tag,{'key':_0x47cacf+'_'+_0x145ee2,'label':_0x47cacf})))),_0x366a17[_0x2d7f10(0xcc)](PanelActions,null,_0x366a17[_0x2d7f10(0xcc)](Button,{'icon':_0x2d7f10(0x209),'onClick':_0x510f97,'color':_0x2d7f10(0x1f1)},_0x33a108(_0x2d7f10(0xab))),_0x366a17['createElement'](Button,{'icon':'Pencil','onClick':_0x171bcf,'color':_0x2d7f10(0x141),'type':_0x2d7f10(0x1c3)},_0x33a108('Edit')))),_0x41d993&&_0x366a17['createElement'](ConfirmCategoryDialog,{'categoryName':_0x21c46d,'content':_0x366a17[_0x2d7f10(0xcc)](DialogSection,null,_0x33a108(_0x2d7f10(0x124),{'values':[_0x21c46d],'processTags':!![]})),'formId':_0x2d7f10(0x19f)+_0xa93fce+_0x2d7f10(0xaa),'headerLabel':_0x33a108('Remove\x20category'),'onClose':_0x3c64b9,'onConfirm':_0x2cb0f6}));},AssetCategoryPanelLoader=({isLast:_0x148be9})=>{const _0x57f3dd=_0x519ca6;return _0x366a17['createElement'](Panel,{'border':!_0x148be9},_0x366a17[_0x57f3dd(0xcc)](PanelContent,null,_0x366a17[_0x57f3dd(0xcc)](PanelSkeleton,{'size':'md','blocks':0x1})),_0x366a17[_0x57f3dd(0xcc)](PanelContent,null,_0x366a17[_0x57f3dd(0xcc)](PanelSkeleton,{'size':'sm','blocks':0x6})),_0x366a17[_0x57f3dd(0xcc)](PanelActions,null,_0x366a17[_0x57f3dd(0xcc)](PanelSkeleton,{'size':'md','blocks':0x2})));},useFormValidation=(_0x211991,_0x5384d2)=>{const _0x13ede4=_0x519ca6,{t:_0x12593b}=useTranslation(),_0x3fc567=_0x12593b(_0x13ede4(0x215)),_0x2f763a=_0x12593b('Number\x20of\x20extensions\x20cannot\x20exceed\x20100.'),_0x39c5ae=_0x12593b(_0x13ede4(0x196)),_0xa52238=_0x12593b(_0x13ede4(0x230)),_0x2351b9=_0x12593b(_0x13ede4(0x1ff)),_0x6f1a7c=_0x12593b(_0x13ede4(0xdc)),_0xcec394=_0x12593b('Extension\x20must\x20not\x20exceed\x209\x20characters.'),_0x4b7289=Object['values'](_0x5384d2)[_0x13ede4(0x211)](_0x3742c0=>_0x3742c0['id']!==_0x211991)[_0x13ede4(0x262)](_0x4668b4=>_0x4668b4[_0x13ede4(0x28d)]);return{'name':{'maxLength':{'value':0x100,'message':_0x39c5ae},'validate':{'nonEmpty':validators[_0x13ede4(0x117)](_0xa52238),'unique':validators[_0x13ede4(0x17d)](_0x2351b9,_0x4b7289)}},'extensions':{'validate':{'nonEmptyArray':validators[_0x13ede4(0x120)](_0x3fc567),'nonDotExtension':validators[_0x13ede4(0x295)](_0x6f1a7c),'maxItems':validators['maxItems'](_0x2f763a,0x64),'maxLength':validators[_0x13ede4(0x22c)](_0xcec394,0x9)}}};},AssetCategoryPanelEdit=({categories:_0x111ec0,initValues:{id:_0x2f8802,name:_0x23f22e,extensions:_0xc65f59,extensionsInUse:_0x4c2ccd},isLast:_0x58b2f8,onCancel:_0x8cea44,onSave:_0x22456e})=>{const _0x4d91e7=_0x519ca6;var _0x4736e6;const {t:_0xf28e48}=useTranslation(),{getCategoryIconProps:_0x57cd2e}=useCategoriesConfig(),_0x145c46=useFormValidation(_0x2f8802,_0x111ec0),[_0x503c92,_0x58f66a]=_0x366a17[_0x4d91e7(0x180)](![]),[_0x32ad52,_0x325b9e]=_0x366a17[_0x4d91e7(0x180)](undefined),{handleSubmit:_0x550777,register:_0x4e6597,watch:_0x55338c,control:_0x4972ae,formState:{errors:_0x438580,isSubmitted:_0x592ed5,isDirty:_0x42e81d}}=useForm({'defaultValues':{'name':_0x23f22e,'extensions':_0xc65f59}}),_0x34c867=_0x55338c('extensions'),_0x270fc6=_0x4c2ccd['filter'](_0x4ae7d6=>!_0x34c867[_0x4d91e7(0x140)](_0x4ae7d6)),_0x48e542=_0x270fc6['length']>0x0,_0x18a1dd=()=>{_0x8cea44();},_0x2cf8c9=()=>{_0x58f66a(![]);},_0x2e448c=async()=>{_0x32ad52&&await _0x22456e(_0x32ad52);},_0x13ee10=_0x550777(async _0x31dbf4=>{_0x48e542?(_0x58f66a(!![]),_0x325b9e(_0x31dbf4)):await _0x22456e(Object['assign'](Object['assign']({},_0x31dbf4),{'extensions':[...new Set(_0x31dbf4['extensions'])]}));}),_0x1c7808=_0x4d91e7(0x128)+_0x2f8802,_0x40710e='extensions-'+_0x2f8802,_0x4f5328=_0x36f70d=>{const _0x1d79ca=_0x4d91e7;return _0x36f70d[_0x1d79ca(0x262)](_0x4ae131=>{const _0xc397d0=_0x1d79ca,_0x217a71={'label':_0x4ae131,'removeLabel':_0xf28e48('Remove\x20%s\x20extension',{'values':[_0x4ae131]})};if(_0x4c2ccd[_0xc397d0(0x140)](_0x4ae131))return Object[_0xc397d0(0x224)](Object[_0xc397d0(0x224)]({},_0x217a71),{'bold':!![],'title':_0xf28e48(_0xc397d0(0x243))});return _0x217a71;});},_0x2ba7d8=_0x57cd2e({'categoryName':_0x23f22e,'categoryId':_0x2f8802});return _0x366a17[_0x4d91e7(0xcc)](_0x366a17[_0x4d91e7(0xd4)],null,_0x366a17['createElement'](Panel,{'border':!_0x58b2f8,'edit':!![],'icon':_0x2ba7d8[_0x4d91e7(0x28d)],'iconRender':_0x2ba7d8['render'],'onSubmit':_0x13ee10},_0x366a17[_0x4d91e7(0xcc)](PanelTitle,{'title':_0x23f22e,'editComponent':_0x366a17[_0x4d91e7(0xcc)](FormGroup,null,_0x366a17[_0x4d91e7(0xcc)](FormInputLabel,{'htmlFor':_0x1c7808},_0xf28e48('Category\x20name')),_0x366a17['createElement'](Input,Object['assign']({'id':_0x1c7808,'size':'md','error':!!(_0x592ed5&&_0x438580[_0x4d91e7(0x28d)])},_0x4e6597(_0x4d91e7(0x28d),_0x145c46[_0x4d91e7(0x28d)]))),_0x366a17[_0x4d91e7(0xcc)](FormFeedback,{'error':!![]},(_0x4736e6=_0x438580[_0x4d91e7(0x28d)])===null||_0x4736e6===void 0x0?void 0x0:_0x4736e6[_0x4d91e7(0x245)]))}),_0x366a17[_0x4d91e7(0xcc)](PanelContent,{'editComponent':_0x366a17['createElement'](FormGroup,null,_0x366a17[_0x4d91e7(0xcc)](FormInputLabel,{'htmlFor':_0x40710e},_0xf28e48(_0x4d91e7(0xda))),_0x366a17[_0x4d91e7(0xcc)](Controller,{'name':_0x4d91e7(0xc0),'control':_0x4972ae,'rules':_0x145c46[_0x4d91e7(0xc0)],'render':({field:{onChange:_0x5d2e68,onBlur:_0x241822,value:_0x119a4a}})=>_0x366a17[_0x4d91e7(0xcc)](TagInput,{'copyBtnLabel':_0xf28e48(_0x4d91e7(0x1bf)),'copyBtnLabelCopied':_0xf28e48(_0x4d91e7(0x1aa)),'id':_0x40710e,'tags':_0x4f5328(_0x119a4a),'onChange':_0x5d2e68,'onBlur':_0x241822,'placeholder':_0xf28e48(_0x4d91e7(0x201)),'error':!!(_0x592ed5&&_0x438580[_0x4d91e7(0xc0)])})}),_0x592ed5&&_0x438580['extensions']&&_0x366a17['createElement'](FormFeedback,{'error':!![]},_0x438580[_0x4d91e7(0xc0)][_0x4d91e7(0x245)]),_0x48e542&&_0x42e81d&&_0x366a17['createElement'](FormFeedback,{'warning':!![]},_0xf28e48(_0x4d91e7(0x101))))}),_0x366a17['createElement'](PanelActions,null,_0x366a17[_0x4d91e7(0xcc)](Button,{'htmlType':_0x4d91e7(0x20b),'type':_0x4d91e7(0x1c3),'onClick':_0x18a1dd},_0xf28e48(_0x4d91e7(0x1c0))),_0x366a17[_0x4d91e7(0xcc)](Button,{'htmlType':_0x4d91e7(0x187),'color':'action','type':_0x4d91e7(0x25b)},_0xf28e48(_0x4d91e7(0x15c))))),_0x503c92&&_0x366a17[_0x4d91e7(0xcc)](ConfirmCategoryDialog,{'categoryName':_0x23f22e,'content':_0x366a17[_0x4d91e7(0xcc)](_0x366a17[_0x4d91e7(0xd4)],null,_0x366a17['createElement'](DialogSection,null,_0xf28e48('This\x20operation\x20will\x20permanently\x20delete\x20assets\x20from\x20the\x20%s\x20category.\x20Are\x20you\x20sure\x20you\x20want\x20to\x20do\x20that?',{'values':[_0x23f22e],'processTags':!![]})),_0x366a17[_0x4d91e7(0xcc)](DialogSection,{'collapse':!![]},_0xf28e48(_0x4d91e7(0x255)),_0x366a17['createElement'](TagList,null,_0x270fc6[_0x4d91e7(0x262)]((_0x29aaed,_0x1d8de7)=>_0x366a17[_0x4d91e7(0xcc)](Tag,{'key':_0x29aaed+'_'+_0x1d8de7,'label':_0x29aaed}))))),'formId':'category-'+_0x2f8802+_0x4d91e7(0x9f),'headerLabel':_0xf28e48(_0x4d91e7(0x139)),'onClose':_0x2cf8c9,'onConfirm':_0x2e448c}));},AssetCategories=({container:_0x5a8f4})=>{const _0x1c01a8=_0x519ca6,{t:_0xf9a377}=useTranslation(),{categories:_0x2c1cb1,categoriesLoading:_0x51c0c8,estimatedCategoriesCount:_0x5e68fb,dnd:_0x4cc660,hasStagedCategory:_0xc05c37,items:_0x5029d1,onAdd:_0x5d5628,onCancel:_0x7a820,onDelete:_0x270351,onEdit:_0x13aef6,onSave:_0x9091cd,onUpdatePosition:_0x24240d}=useAssetCategories(),_0x32426b=useDeferredUnmount(_0x51c0c8,0xfa);if(_0x32426b)return _0x366a17[_0x1c01a8(0xcc)](PanelList,{'toolbarLoading':!![]},Array[_0x1c01a8(0x25a)]({'length':_0x5e68fb})[_0x1c01a8(0x262)]((_0x4fb80f,_0x47968f)=>{const _0x2333bb=_0x1c01a8;return _0x366a17[_0x2333bb(0xcc)](AssetCategoryPanelLoader,{'key':_0x47968f,'isLast':_0x47968f===_0x5029d1[_0x2333bb(0xd0)]-0x1});}));let _0x132514;return _0xc05c37?_0x132514=_0x5029d1[_0x1c01a8(0x262)](({id:_0x55027e},_0x485e26)=>{const _0x1a004c=_0x1c01a8;var _0x10e04b;const _0x37c284=(_0x10e04b=_0x2c1cb1[_0x55027e][_0x1a004c(0x20e)])===null||_0x10e04b===void 0x0?void 0x0:_0x10e04b[_0x1a004c(0x14c)];if(_0x37c284)return _0x366a17[_0x1a004c(0xcc)](AssetCategoryPanelEdit,{'key':_0x55027e,'categories':_0x2c1cb1,'initValues':_0x2c1cb1[_0x55027e],'isLast':_0x485e26===_0x5029d1[_0x1a004c(0xd0)]-0x1,'onCancel':_0x7a820(_0x55027e),'onSave':_0x9091cd(_0x55027e)});return _0x366a17[_0x1a004c(0xcc)](AssetCategoryPanel,{'key':_0x55027e,'initValues':_0x2c1cb1[_0x55027e],'isLast':_0x485e26===_0x5029d1[_0x1a004c(0xd0)]-0x1,'onDelete':_0x270351(_0x55027e),'onEdit':_0x13aef6(_0x55027e)});}):_0x132514=_0x366a17[_0x1c01a8(0xcc)](SortableDndList,Object[_0x1c01a8(0x224)]({},_0x4cc660,{'scrollableContainer':_0x5a8f4,'type':_0x1c01a8(0x146),'onDragEnd':_0x24240d}),_0x5029d1[_0x1c01a8(0x262)](({id:_0x37b047},_0x274786)=>{const _0x18dc4a=_0x1c01a8;return _0x366a17['createElement'](SortableDndListItem,{'key':_0x37b047,'id':_0x37b047,'index':_0x274786,'isDraggable':!![]},_0x366a17[_0x18dc4a(0xcc)](AssetCategoryPanel,{'initValues':_0x2c1cb1[_0x37b047],'isLast':_0x274786===_0x5029d1[_0x18dc4a(0xd0)]-0x1,'onDelete':_0x270351(_0x37b047),'onEdit':_0x13aef6(_0x37b047)}));})),_0x366a17[_0x1c01a8(0xcc)](PanelList,{'toolbar':_0x366a17['createElement'](Button,{'icon':_0x1c01a8(0xac),'color':_0x1c01a8(0x141),'type':_0x1c01a8(0x25b),'onClick':_0x5d5628,'label':_0xf9a377(_0x1c01a8(0x159))})},_0x132514);},AdminPanel=()=>{const _0x18413f=_0x519ca6,{t:_0x7e9f7d}=useTranslation(),[_0x1f124d,_0x10dd43]=_0x366a17['useState'](null),[_0x19db7e,_0x10cd01]=_0x366a17[_0x18413f(0x180)](_0x18413f(0x234)),_0x84bd9=_0x442227=>{_0x10cd01(_0x442227);};return _0x366a17[_0x18413f(0xcc)](View,{'ref':_0x10dd43},_0x366a17['createElement'](Tabs,{'activeTab':_0x19db7e,'onTabSelect':_0x84bd9},_0x366a17['createElement'](Tab,{'id':_0x18413f(0x234),'label':_0x7e9f7d('Asset\x20categories')},_0x366a17[_0x18413f(0xcc)](AssetCategories,{'container':_0x1f124d})),_0x366a17[_0x18413f(0xcc)](Tab,{'id':_0x18413f(0x110),'label':_0x7e9f7d(_0x18413f(0xd8))},_0x366a17['createElement'](ImagesSettings,null))));},RecentAssets=({estimatedTotalAssetsCount:_0xbf792a,onChoose:_0x23537b,suspendAssetsFetch:_0x38d611})=>{const _0x24d3d6=_0x519ca6;var _0x52e03e,_0x1ab553;const {allowCover:_0x12fdee,assetsPerPage:_0xefe43c,currentPages:_0x20b3c6,onCoverModeToggle:_0x24731e,onAssetsPerPageChange:_0x4e9fe2,onThumbSizeChange:_0x1a91ff,onViewPageChange:_0x8167ba,thumbSize:_0x183cd4}=useUserData$1(),_0x3043ef=(_0x52e03e=_0x20b3c6[_0x24d3d6(0x1bd)])!==null&&_0x52e03e!==void 0x0?_0x52e03e:0x1,{data:_0x45dc8b,isLoading:_0x540e9a,isPreviousData:_0x2129e4}=useGetRecentAssets({'limit':_0xefe43c,'offset':(_0x3043ef-0x1)*_0xefe43c},!_0x38d611),_0x15d4e2=_0x5a282d=>{_0x8167ba('recent',_0x5a282d);};return _0x366a17[_0x24d3d6(0xcc)](Assets,{'assets':(_0x1ab553=_0x45dc8b===null||_0x45dc8b===void 0x0?void 0x0:_0x45dc8b[_0x24d3d6(0x257)])!==null&&_0x1ab553!==void 0x0?_0x1ab553:[],'displayOptions':{'allowCover':_0x12fdee,'assetsPerPage':_0xefe43c,'assetsPerPageOptions':[{'label':'50','onSelect':()=>{_0x4e9fe2(0x32);}},{'label':_0x24d3d6(0x1a6),'onSelect':()=>{_0x4e9fe2(0x64);}},{'label':_0x24d3d6(0xa7),'onSelect':()=>{_0x4e9fe2(0xfa);}}],'onCoverModeToggle':_0x24731e,'onThumbSizeChange':_0x1a91ff,'thumbSize':_0x183cd4},'estimatedTotalAssetsCount':_0xbf792a,'totalAssetsCount':(_0x45dc8b===null||_0x45dc8b===void 0x0?void 0x0:_0x45dc8b[_0x24d3d6(0x163)])||0x0,'pageNumber':_0x3043ef,'onChoose':_0x23537b,'onPageChange':_0x15d4e2,'fallbackContent':_0x366a17['createElement']('div',{'data-testid':_0x24d3d6(0xbd)}),'isInitDataLoading':_0x540e9a||_0x38d611,'isNextDataLoading':_0x2129e4});},NavbarCmp=({categories:_0x279902,isAdmin:_0xa83019,isLoading:_0x238b73,isRecentDisabled:_0x212177,onViewChange:_0x3b01f8,view:_0x1c6f44})=>{const _0x23220b=_0x519ca6,{getCategoryIconProps:_0x5e2745}=useCategoriesConfig(),_0x3ca336=useDeferredUnmount(_0x238b73,0xfa),{t:_0x5cd26d}=useTranslation();if(_0x3ca336)return _0x366a17[_0x23220b(0xcc)](Navbar,{'ariaLabel':_0x5cd26d(_0x23220b(0x1ee))},Array[_0x23220b(0x25a)]({'length':0x4})[_0x23220b(0x262)]((_0x5f21ad,_0x42cee5)=>_0x366a17[_0x23220b(0xcc)](NavbarItem,{'key':_0x42cee5,'loading':!![],'label':''})));const _0x52db57=_0x5e2745({'categoryName':_0x23220b(0x15a)});return _0x366a17['createElement'](Navbar,{'ariaLabel':_0x5cd26d(_0x23220b(0x1ee))},_0x279902[_0x23220b(0x262)](({id:_0x19065f,name:_0x9a7934})=>{const _0x19f648=_0x23220b,_0x41fb82=_0x5e2745({'categoryName':_0x9a7934,'categoryId':_0x19065f});return _0x366a17[_0x19f648(0xcc)](NavbarItem,{'active':_0x1c6f44===_0x19065f,'icon':_0x41fb82[_0x19f648(0x28d)],'iconRender':_0x41fb82['render'],'key':_0x19065f,'label':_0x9a7934,'onClick':()=>_0x3b01f8(_0x19065f)});}),_0x366a17[_0x23220b(0xcc)](NavbarItem,{'active':_0x1c6f44===FixedViews[_0x23220b(0x191)],'disabled':_0x212177,'icon':_0x52db57[_0x23220b(0x28d)],'iconRender':_0x52db57['render'],'label':_0x5cd26d('Recent'),'onClick':()=>_0x3b01f8(_0x23220b(0x1bd)),'separated':_0x279902['length']>0x0}),_0xa83019&&_0x366a17[_0x23220b(0xcc)](NavbarItem,{'active':_0x1c6f44===FixedViews[_0x23220b(0x182)],'animateIcon':!![],'bottomFixed':!![],'icon':_0x23220b(0x29b),'label':_0x5cd26d(_0x23220b(0x138)),'onClick':()=>_0x3b01f8(_0x23220b(0x14a))}));},Views=()=>{const _0x24d616=_0x519ca6;var _0x5041fd;const {onChoose:_0x54d143}=useAssetsConfig(),{data:_0x5c8fea=[],isLoading:_0x50bf66}=useGetCategories(),{data:_0x5eb809,isLoading:_0x53c60e}=useGetRecentAssets({'limit':0x1}),{isAdmin:_0x2c1488,currentView:_0x146e37,onViewChange:_0x25aca4,onViewInit:_0x88e82c}=useUserData$1(),_0x25d1ef=_0x50bf66||_0x53c60e,_0x5864ad=(_0x5041fd=_0x5eb809===null||_0x5eb809===void 0x0?void 0x0:_0x5eb809[_0x24d616(0x163)])!==null&&_0x5041fd!==void 0x0?_0x5041fd:0x0;return _0x366a17['useEffect'](()=>{!_0x50bf66&&!_0x53c60e&&_0x88e82c(_0x5c8fea,_0x5864ad>0x0);},[_0x5c8fea,_0x50bf66,_0x5864ad,_0x53c60e,_0x88e82c]),_0x366a17[_0x24d616(0xcc)](ViewWrapper,{'navbar':_0x366a17[_0x24d616(0xcc)](NavbarCmp,{'categories':_0x5c8fea,'isAdmin':_0x2c1488,'isLoading':_0x25d1ef,'isRecentDisabled':_0x5864ad===0x0,'onViewChange':_0x25aca4,'view':_0x146e37})},_0x366a17[_0x24d616(0xcc)](Switch,{'match':_0x146e37},_0x5c8fea[_0x24d616(0x262)](_0x573e95=>_0x366a17[_0x24d616(0xcc)](SwitchView,{'key':_0x573e95['id'],'id':_0x573e95['id']},_0x366a17[_0x24d616(0xcc)](Category,{'category':_0x573e95,'onChoose':_0x54d143,'suspendAssetsFetch':_0x25d1ef}))),_0x366a17[_0x24d616(0xcc)](SwitchView,{'id':FixedViews['RECENT']},_0x366a17[_0x24d616(0xcc)](RecentAssets,{'estimatedTotalAssetsCount':_0x5864ad,'onChoose':_0x54d143,'suspendAssetsFetch':_0x25d1ef})),_0x2c1488&&_0x366a17[_0x24d616(0xcc)](SwitchView,{'id':FixedViews[_0x24d616(0x182)]},_0x366a17[_0x24d616(0xcc)](AdminPanel,null))),_0x366a17[_0x24d616(0xcc)](UploadDialog,null),_0x366a17[_0x24d616(0xcc)](Notifications,null));},CoreProviders=()=>{const _0x2b1f74=_0x519ca6,{assets:_0x46e218,categories:_0x59ad38,dialog:_0x543a1f,id:_0x4d197e,language:_0x24c06c,serviceOrigin:_0x375271,theme:_0x1e711d,tokenUrl:_0x11545b}=useCoreContext();return _0x366a17[_0x2b1f74(0xcc)](AuthProvider,{'auth':{'tokenUrl':_0x11545b}},_0x366a17[_0x2b1f74(0xcc)](ApiProvider,{'api':{'origin':_0x375271}},_0x366a17[_0x2b1f74(0xcc)](QueryProvider,null,_0x366a17[_0x2b1f74(0xcc)](LanguageProvider,{'language':_0x24c06c},_0x366a17['createElement'](CategoriesConfigProvider,Object[_0x2b1f74(0x224)]({},_0x59ad38),_0x366a17[_0x2b1f74(0xcc)](AssetsConfigProvider,Object[_0x2b1f74(0x224)]({},_0x46e218),_0x366a17[_0x2b1f74(0xcc)](UploadProvider,null,_0x366a17[_0x2b1f74(0xcc)](UserProvider,{'id':_0x4d197e},_0x366a17[_0x2b1f74(0xcc)](NotificationsProvider,null,_0x366a17[_0x2b1f74(0xcc)](UIProvider,{'dialog':_0x543a1f,'theme':_0x1e711d},_0x366a17[_0x2b1f74(0xcc)](Views,null)))))))))));},Core=_0x5e674b=>{const _0x44d3f8=_0x519ca6;return _0x366a17['createElement'](CoreContext['Provider'],{'value':_0x5e674b},_0x366a17[_0x44d3f8(0xcc)](CoreErrorBoundary,null,_0x366a17[_0x44d3f8(0xcc)](CoreProviders,null)));};export{Core as CKBox};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(){const e="undefined"!=typeof globalThis?globalThis:global||self;e.CKBOX_TRANSLATIONS||(e.CKBOX_TRANSLATIONS={}),e.CKBOX_TRANSLATIONS.de={Settings:"Einstellungen","Asset categories":"Elementkategorien",Images:"Bilder","Category name":"Kategoriename","Add category":"Kategorie hinzufügen","Category ID":"Kategorie-ID","Allowed extensions":"Zulässige Erweiterungen","Add an extension":"Erweiterung hinzufügen","This extension is in use":"Diese Erweiterung wird verwendet","Removing an extension in use will result in the permanent removal of files with this extension.":"Das Entfernen einer verwendeten Erweiterung führt zum dauerhaften Löschen von Dateien mit dieser Erweiterung.","Remove extensions in use":"Verwendete Erweiterungen entfernen","This operation will permanently delete assets from the %s category. Are you sure you want to do that?":"Durch diesen Vorgang werden Elemente aus der Kategorie <strong>%s</strong> dauerhaft gelöscht. Möchten Sie das wirklich tun?","Assets with the following extensions will be removed:":"Elemente mit den folgenden Erweiterungen werden entfernt:","Remove %s extension":"%s Erweiterung entfernen","Use the slider to define the quality of responsive images":"Verwenden Sie den Schieberegler, um die Qualität der responsiven Bilder festzulegen.","Responsive images quality":"Qualität responsiver Bilder","Image quality:":"Bildqualität:",Low:"Niedrig",Medium:"Mittel",Good:"Gut",High:"Hoch",Best:"Am besten","Please type the category name to continue:":"Bitte geben Sie den Kategorienamen ein, um fortzufahren:","This operation will permanently delete the %s category with all the assets in it. Are you sure you want to do that?":"Durch diesen Vorgang wird die Kategorie <strong>%s</strong> mit allen darin enthaltenen Elementen dauerhaft gelöscht. Möchten Sie das wirklich tun?","Category name is required.":"Der Kategoriename wird benötigt.","Category name cannot exceed 256 characters.":"Der Kategoriename darf maximal 256 Zeichen lang sein.","At least one extension must be specified.":"Es muss mindestens eine Erweiterung angegeben sein.","Extension cannot contain a dot.":"Die Erweiterung darf keinen Punkt enthalten.","Number of extensions cannot exceed 100.":"Die Anzahl der Erweiterungen darf maximal 100 betragen.","Extension must not exceed 9 characters.":"Die Erweiterung darf maximal 9 Zeichen lang sein.","Category name must be unique.":"Es gibt bereits eine Kategorie mit diesem Namen.","Remove category":"Kategorie entfernen","You are about to permanently delete your files!":"Ihre Dateien werden dauerhaft gelöscht!","Category created successfully.":"Kategorie erfolgreich erstellt.","Category position updated.":"Kategorieposition aktualisiert.","Category updated successfully.":"Kategorie erfolgreich aktualisiert.","Category deleted successfully.":"Kategorie erfolgreich gelöscht.","Images quality updated successfully.":"Bildqualität erfolgreich aktualisiert.",Cancel:"Abbrechen",Save:"Speichern",Delete:"Löschen",Edit:"Bearbeiten",Copy:"Kopieren",Close:"Schließen","Copied!":"Kopiert!",Recent:"Kürzlich",Download:"Herunterladen",Rename:"Umbenennen",Upload:"Hochladen",Properties:"Eigenschaften",Choose:"Auswählen","%d file selected":"<strong>%d Datei</strong> ausgewählt","%d file selected_plural":"<strong>%d Dateien</strong> ausgewählt","%d file deleted successfully.":"%d Datei erfolgreich gelöscht.","%d file deleted successfully._plural":"%d Dateien erfolgreich gelöscht.","File updated successfully.":"Datei erfolgreich aktualisiert.","File name":"Dateiname",Description:"Beschreibung","Upload date":"Upload-Datum",uploadedAt:"Upload-Datum","File size":"Dateigröße",size:"Größe",Width:"Breite",Height:"Höhe",URL:"URL","of %d":"von %d","Enter page number":"Seitenzahl eingeben",Navigation:"Navigation","There are no assets in this category":"In dieser Kategorie sind keine Elemente","Description cannot exceed 1024 characters.":"Die Beschreibung darf maximal 1024 Zeichen lang sein.","File name is required.":"Dateiname wird benötigt.","File extension is required.":"Dateierweiterung wird benötigt.","File extension is not allowed.":"Die Dateierweiterung ist in der aktuellen Kategorie nicht zulässig.","Remove assets":"Elemente entfernen","Are you sure you want to delete %s file?":"Möchten Sie wirklich <strong>%s</strong> Datei löschen?","Are you sure you want to delete %s file?_plural":"Möchten Sie wirklich <strong>%s</strong> Dateien löschen?","Resize window":"Fenstergröße ändern","Display options":"Anzeigeoptionen",Assets:"Elemente",Thumbnails:"Thumbnails",Size:"Größe","Keep aspect ratio":"Seitenverhältnis beibehalten",Display:"Anzeige","Sort by":"Sortieren nach",Order:"Reihenfolge",Ascending:"Aufsteigend",Descending:"Absteigend",name:"Name",lastModifiedAt:"Änderungsdatum",Pending:"Ausstehend",Aborted:"Abgebrochen","%s left":"%s verbleibend","More than 1 day left":"Mehr als 1 Tag verbleibend","%s of %s":"%s von %s","File extension is not allowed in %s category":"Die Dateierweiterung ist in der Kategorie <strong>%s</strong> nicht zulässig.","Maximum file size allowed is %s":"Die maximal zulässige Dateigröße beträgt %s","Maximum image resolution allowed is %s":"Die maximal zulässige Bildauflösung beträgt %s","Storage quota exceeded":"Speicherkontingent überschritten","An error has occurred":"Es ist ein Fehler aufgetreten","%d error":"<strong>%d</strong> Fehler","%d error_plural":"<strong>%d</strong> Fehler","%d of %d file uploaded":"<strong>%d</strong> von <strong>%d</strong> Datei hochgeladen","%d of %d file uploaded_plural":"<strong>%d</strong> von <strong>%d</strong> Dateien hochgeladen","Upload aborted":"Upload abgebrochen","Upload finished":"Upload abgeschlossen","Abort upload":"Upload abbrechen","Close upload dialog":"Upload-Dialog schließen","Open upload dialog":"Upload-Dialog öffnen","Open details":"Details öffnen","Close details":"Details schließen","Internal server error.":"Interner Serverfehler.","Unauthorized operation.":"Nicht autorisierter Vorgang.","Category not found.":"Kategorie nicht gefunden.","An unexpected application error has occurred.":"Es ist ein unerwarteter Anwendungsfehler aufgetreten.","Unexpected error.":"Unerwarteter Fehler.","Asset not found.":"Element nicht gefunden.","Unknown error.":"Unbekannter Fehler.","Validation failed.":"Validierung fehlgeschlagen.","Resource not found.":"Ressource nicht gefunden.","%d h":"%d h","%d h_plural":"%d h","%d min":"%d min","%d min_plural":"%d min","%d s":"%d s","%d s_plural":"%d s"}}();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(){const e="undefined"!=typeof globalThis?globalThis:global||self;e.CKBOX_TRANSLATIONS||(e.CKBOX_TRANSLATIONS={}),e.CKBOX_TRANSLATIONS.en={Settings:"Settings","Asset categories":"Asset categories",Images:"Images","Category name":"Category name","Add category":"Add category","Category ID":"Category ID","Allowed extensions":"Allowed extensions","Add an extension":"Add an extension","This extension is in use":"This extension is in use","Removing an extension in use will result in the permanent removal of files with this extension.":"Removing an extension in use will result in the permanent removal of files with this extension.","Remove extensions in use":"Remove extensions in use","This operation will permanently delete assets from the %s category. Are you sure you want to do that?":"This operation will permanently delete assets from the <strong>%s</strong> category. Are you sure you want to do that?","Assets with the following extensions will be removed:":"Assets with the following extensions will be removed:","Remove %s extension":"Remove %s extension","Use the slider to define the quality of responsive images":"Use the slider to define the quality of responsive images","Responsive images quality":"Responsive images quality","Image quality:":"Image quality:",Low:"Low",Medium:"Medium",Good:"Good",High:"High",Best:"Best","Please type the category name to continue:":"Please type the category name to continue:","This operation will permanently delete the %s category with all the assets in it. Are you sure you want to do that?":"This operation will permanently delete the <strong>%s</strong> category with all the assets in it. Are you sure you want to do that?","Category name is required.":"Category name is required.","Category name cannot exceed 256 characters.":"Category name cannot exceed 256 characters.","At least one extension must be specified.":"At least one extension must be specified.","Extension cannot contain a dot.":"Extension cannot contain a dot.","Number of extensions cannot exceed 100.":"Number of extensions cannot exceed 100.","Extension must not exceed 9 characters.":"Extension must not exceed 9 characters.","Category name must be unique.":"Category with this name already exists.","Remove category":"Remove category","You are about to permanently delete your files!":"You are about to permanently delete your files!","Category created successfully.":"Category created successfully.","Category position updated.":"Category position updated.","Category updated successfully.":"Category updated successfully.","Category deleted successfully.":"Category deleted successfully.","Images quality updated successfully.":"Images quality updated successfully.",Cancel:"Cancel",Save:"Save",Delete:"Delete",Edit:"Edit",Copy:"Copy",Close:"Close","Copied!":"Copied!",Recent:"Recent",Download:"Download",Rename:"Rename",Upload:"Upload",Properties:"Properties",Choose:"Choose","%d file selected":"<strong>%d file</strong> selected","%d file selected_plural":"<strong>%d files</strong> selected","%d file deleted successfully.":"%d file deleted successfully.","%d file deleted successfully._plural":"%d files deleted successfully.","File updated successfully.":"File updated successfully.","File name":"File name",Description:"Description","Upload date":"Upload date",uploadedAt:"Upload date","File size":"File size",size:"Size",Width:"Width",Height:"Height",URL:"URL","of %d":"of %d","Enter page number":"Enter page number",Navigation:"Navigation","There are no assets in this category":"There are no assets in this category","Description cannot exceed 1024 characters.":"Description cannot exceed 1024 characters.","File name is required.":"File name is required.","File extension is required.":"File extension is required.","File extension is not allowed.":"File extension is not allowed in current category.","Remove assets":"Remove assets","Are you sure you want to delete %s file?":"Are you sure you want to delete <strong>%s</strong> file?","Are you sure you want to delete %s file?_plural":"Are you sure you want to delete %s files?","Resize window":"Resize window","Display options":"Display options",Assets:"Assets",Thumbnails:"Thumbnails",Size:"Size","Keep aspect ratio":"Keep aspect ratio",Display:"Display","Sort by":"Sort by",Order:"Order",Ascending:"Ascending",Descending:"Descending",name:"Name",lastModifiedAt:"Modification date",Pending:"Pending",Aborted:"Aborted","%s left":"%s left","More than 1 day left":"More than 1 day left","%s of %s":"%s of %s","File extension is not allowed in %s category":"File extension is not allowed in <strong>%s</strong> category","Maximum file size allowed is %s":"Maximum file size allowed is %s","Maximum image resolution allowed is %s":"Maximum image resolution allowed is %s","Storage quota exceeded":"Storage quota exceeded","An error has occurred":"An error has occurred","%d error":"<strong>%d</strong> error","%d error_plural":"<strong>%d</strong> errors","%d of %d file uploaded":"<strong>%d</strong> of <strong>%d</strong> file uploaded","%d of %d file uploaded_plural":"<strong>%d</strong> of <strong>%d</strong> files uploaded","Upload aborted":"Upload aborted","Upload finished":"Upload finished","Abort upload":"Abort upload","Close upload dialog":"Close upload dialog","Open upload dialog":"Open upload dialog","Open details":"Open details","Close details":"Close details","Internal server error.":"Internal server error.","Unauthorized operation.":"Unauthorized operation.","Category not found.":"Category not found.","An unexpected application error has occurred.":"An unexpected application error has occurred.","Unexpected error.":"Unexpected error.","Asset not found.":"Asset not found.","Unknown error.":"Unknown error.","Validation failed.":"Validation failed.","Resource not found.":"Resource not found.","%d h":"%d h","%d h_plural":"%d hs","%d min":"%d min","%d min_plural":"%d mins","%d s":"%d sec","%d s_plural":"%d secs"}}();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(){const e="undefined"!=typeof globalThis?globalThis:global||self;e.CKBOX_TRANSLATIONS||(e.CKBOX_TRANSLATIONS={}),e.CKBOX_TRANSLATIONS.es={Settings:"Ajustes","Asset categories":"Categorías de activos",Images:"Imágenes","Category name":"Nombre de la categoría","Add category":"Añadir categoría","Category ID":"ID de la categoría","Allowed extensions":"Extensiones permitidas","Add an extension":"Añadir una extensión","This extension is in use":"Esta extensión está en uso","Removing an extension in use will result in the permanent removal of files with this extension.":"Eliminar una extensión en uso dará como resultado la eliminación permanente de los archivos con esta extensión.","Remove extensions in use":"Eliminar extensiones en uso","This operation will permanently delete assets from the %s category. Are you sure you want to do that?":"Esta operación eliminará de forma permanente los activos de la categoría <strong>%s</strong>. ¿Estás seguro de que quieres hacer eso?","Assets with the following extensions will be removed:":"Se eliminarán los activos con las siguientes extensiones:","Remove %s extension":"Eliminar la extensión %s","Use the slider to define the quality of responsive images":"Utiliza el control deslizante para definir la calidad de las imágenes receptivas","Responsive images quality":"Calidad de las imágenes receptivas","Image quality:":"Calidad de la imagen:",Low:"Baja",Medium:"Media",Good:"Buena",High:"Alta",Best:"La mejor","Please type the category name to continue:":"Escribe el nombre de la categoría para continuar:","This operation will permanently delete the %s category with all the assets in it. Are you sure you want to do that?":"Esta operación eliminará de forma permanente la categoría <strong>%s</strong> con todos los activos que contiene. ¿Estás seguro de que quieres hacer eso?","Category name is required.":"El nombre de la categoría es obligatorio.","Category name cannot exceed 256 characters.":"El nombre de la categoría no puede superar los 256 caracteres.","At least one extension must be specified.":"Debe especificarse al menos una extensión.","Extension cannot contain a dot.":"La extensión no puede contener un punto.","Number of extensions cannot exceed 100.":"El número de extensiones no puede ser superior a 100.","Extension must not exceed 9 characters.":"La extensión no puede superar los 9 caracteres.","Category name must be unique.":"Ya existe una categoría con este nombre.","Remove category":"Eliminar categoría","You are about to permanently delete your files!":"¡Estás a punto de eliminar tus archivos de forma permanente!","Category created successfully.":"Categoría creada con éxito.","Category position updated.":"Posición de categoría actualizada.","Category updated successfully.":"Categoría actualizada con éxito.","Category deleted successfully.":"Categoría eliminada con éxito.","Images quality updated successfully.":"La calidad de las imágenes se ha actualizado con éxito.",Cancel:"Cancelar",Save:"Guardar",Delete:"Eliminar",Edit:"Editar",Copy:"Copiar",Close:"Cerrar","Copied!":"¡Copiado!",Recent:"Reciente",Download:"Descargar",Rename:"Cambiar nombre",Upload:"Subir",Properties:"Propiedades",Choose:"Elegir","%d file selected":"<strong>%d archivo</strong> seleccionado","%d file selected_plural":"<strong>%d archivos</strong> seleccionados","%d file deleted successfully.":"%d archivo eliminado con éxito.","%d file deleted successfully._plural":"%d archivos eliminados con éxito.","File updated successfully.":"Archivo actualizado con éxito.","File name":"Nombre del archivo",Description:"Descripción","Upload date":"Fecha de subida",uploadedAt:"Fecha de subida","File size":"Tamaño del archivo",size:"Tamaño",Width:"Ancho",Height:"Alto",URL:"URL","of %d":"de %d","Enter page number":"Introduce el número de la página",Navigation:"Navegación","There are no assets in this category":"No hay activos en esta categoría","Description cannot exceed 1024 characters.":"La descripción no puede superar los 1024 caracteres.","File name is required.":"El nombre del archivo es obligatorio.","File extension is required.":"La extensión del archivo es obligatoria.","File extension is not allowed.":"La extensión del archivo no está permitida en la categoría actual.","Remove assets":"Eliminar activos","Are you sure you want to delete %s file?":"¿Estás seguro de que deseas eliminar <strong>%s</strong> archivo?","Are you sure you want to delete %s file?_plural":"¿Estás seguro de que desea eliminar <strong>%s</strong> archivos?","Resize window":"Cambiar el tamaño de la ventana","Display options":"Opciones de visualización",Assets:"Activos",Thumbnails:"Miniaturas",Size:"Tamaño","Keep aspect ratio":"Mantener la relación de aspecto",Display:"Mostrar","Sort by":"Ordenar por",Order:"Ordenar",Ascending:"Ascendente",Descending:"Descendente",name:"Nombre",lastModifiedAt:"Fecha de modificación",Pending:"Pendiente",Aborted:"Cancelado","%s left":"%s restantes","More than 1 day left":"Falta más de 1 día","%s of %s":"%s de %s","File extension is not allowed in %s category":"La extensión del archivo no está permitida en la categoría <strong>%s</strong>","Maximum file size allowed is %s":"El tamaño de archivo máximo permitido es %s","Maximum image resolution allowed is %s":"La resolución de imagen máxima permitida es %s","Storage quota exceeded":"Cuota de almacenamiento superada","An error has occurred":"Se ha producido un error","%d error":"<strong>%d</strong> error","%d error_plural":"<strong>%d</strong> errores","%d of %d file uploaded":"<strong>%d</strong> de <strong>%d</strong> archivo subido","%d of %d file uploaded_plural":"<strong>%d</strong> de <strong>%d</strong> archivos subidos","Upload aborted":"Subida cancelada","Upload finished":"Subida finalizada","Abort upload":"Cancelar subida","Close upload dialog":"Cerrar el cuadro de diálogo de la subida","Open upload dialog":"Abrir el cuadro de diálogo de la subida","Open details":"Abrir detalles","Close details":"Cerrar detalles","Internal server error.":"Error de servidor interno.","Unauthorized operation.":"Operación no autorizada.","Category not found.":"Categoría no encontrada.","An unexpected application error has occurred.":"Se ha producido un error inesperado en la aplicación.","Unexpected error.":"Error inesperado.","Asset not found.":"Activo no encontrado.","Unknown error.":"Error desconocido.","Validation failed.":"Validación fallida.","Resource not found.":"Recurso no encontrado.","%d h":"%d h","%d h_plural":"%d h","%d min":"%d min","%d min_plural":"%d min","%d s":"%d s","%d s_plural":"%d s"}}();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(){const e="undefined"!=typeof globalThis?globalThis:global||self;e.CKBOX_TRANSLATIONS||(e.CKBOX_TRANSLATIONS={}),e.CKBOX_TRANSLATIONS.pl={Settings:"Ustawienia","Asset categories":"Kategorie",Images:"Obrazy","Category name":"Nazwa kategorii","Add category":"Dodaj kategorię","Category ID":"ID kategorii","Allowed extensions":"Dozwolone rozszerzenia","Add an extension":"Dodaj rozszerzenie","This extension is in use":"To rozszerzenie jest używane","Removing an extension in use will result in the permanent removal of files with this extension.":"Usunięcie używanego rozszerzenia spowoduje trwałe usunięcie plików z tym rozszerzeniem.","Remove extensions in use":"Usuń używane rozszerzenia","This operation will permanently delete assets from the %s category. Are you sure you want to do that?":"Ta operacja spowoduje trwałe usunięcie zasobów z kategorii <strong>%s</strong>. Czy na pewno chcesz to zrobić?","Assets with the following extensions will be removed:":"Zostaną usunięte pliki z następującymi rozszerzeniami:","Remove %s extension":"Usuń rozszerzenie %s","Use the slider to define the quality of responsive images":"Użyj suwaka, aby określić jakość responsywnych obrazów","Responsive images quality":"Jakość responsywnych obrazów","Image quality:":"Jakość obrazów:",Low:"Niska",Medium:"Średnia",Good:"Dobra",High:"Wysoka",Best:"Najlepsza","Please type the category name to continue:":"Wpisz nazwę kategorii, aby kontynuować:","This operation will permanently delete the %s category with all the assets in it. Are you sure you want to do that?":"Ta operacja spowoduje trwałe usunięcie kategorii <strong>%s</strong> ze wszystkimi zawartymi w niej plikami. Czy na pewno chcesz to zrobić?","Category name is required.":"Nazwa kategorii jest wymagana.","Category name cannot exceed 256 characters.":"Nazwa kategorii nie może zawierać więcej niż 256 znaków.","At least one extension must be specified.":"Wymagane jest co najmniej jedno rozszerzenie.","Extension cannot contain a dot.":"Rozszerzenie nie może zawierać kropki.","Number of extensions cannot exceed 100.":"Liczba rozszerzeń nie może przekraczać 100.","Extension must not exceed 9 characters.":"Rozszerzenie nie może zawierać więcej niż 9 znaków.","Category name must be unique.":"Kategoria o tej nazwie już istnieje.","Remove category":"Usuń kategorię","You are about to permanently delete your files!":"Ta operacja trwale usunie twoje pliki!","Category created successfully.":"Utworzono kategorię.","Category position updated.":"Zaktualizowano pozycję kategorii.","Category updated successfully.":"Zaktualizowano kategorię.","Category deleted successfully.":"Usunięto kategorię.","Images quality updated successfully.":"Zaktualizowano jakość obrazów.",Cancel:"Anuluj",Save:"Zapisz",Delete:"Usuń",Edit:"Edytuj",Copy:"Kopiuj",Close:"Zamknij","Copied!":"Skopiowano!",Recent:"Ostatnie",Download:"Pobierz",Rename:"Zmień nazwę",Upload:"Prześlij",Properties:"Właściwości",Choose:"Wybierz","%d file selected_0":"Wybrano <strong>%d plik</strong>","%d file selected_1":"Wybrano <strong>%d pliki</strong>","%d file selected_2":"Wybrano <strong>%d plików</strong>","%d file deleted successfully._0":"%d plik został usunięty.","%d file deleted successfully._1":"%d pliki zostały usunięte.","%d file deleted successfully._2":"%d plików zostało usuniętych.","File updated successfully.":"Przesłano plik.","File name":"Nazwa pliku",Description:"Opis","Upload date":"Data przesłania",uploadedAt:"Data przesłania","File size":"Rozmiar pliku",size:"Wielkość",Width:"Szerokość",Height:"Wysokość",URL:"URL","of %d":"z %d","Enter page number":"Wprowadź numer strony",Navigation:"Nawigacja","There are no assets in this category":"W tej kategorii nie ma zasobów","Description cannot exceed 1024 characters.":"Opis nie może zawierać więcej niż 1024 znaków.","File name is required.":"Nazwa pliku jest wymagana.","File extension is required.":"Rozszerzenie pliku jest wymagane.","File extension is not allowed.":"Rozszerzenie pliku nie jest dozwolone w bieżącej kategorii.","Remove assets":"Usuń zasoby","Are you sure you want to delete %s file?_0":"Czy na pewno chcesz usunąć plik <strong>%s</strong>?","Are you sure you want to delete %s file?_1":"Czy na pewno chcesz usunąć <strong>%s</strong> pliki?","Are you sure you want to delete %s file?_2":"Czy na pewno chcesz usunąć <strong>%s</strong> plików?","Resize window":"Zmień wielkość okna","Display options":"Opcje wyświetlania",Assets:"Zasoby",Thumbnails:"Miniaturki",Size:"Wielkość","Keep aspect ratio":"Zachowaj proporcje",Display:"Wyświetl","Sort by":"Sortuj według",Order:"Uporządkuj",Ascending:"Rosnąco",Descending:"Malejąco",name:"Nazwa",lastModifiedAt:"Data modyfikacji",Pending:"Oczekuje",Aborted:"Przerwane","%s left":"Pozostało %s","More than 1 day left":"Pozostał więcej niż 1 dzień","%s of %s":"%s z %s","File extension is not allowed in %s category":"Rozszerzenie pliku nie jest dozwolone w kategorii <strong>%s</strong>","Maximum file size allowed is %s":"Maksymalny dozwolony rozmiar pliku wynosi %s","Maximum image resolution allowed is %s":"Maksymalna dozwolona rozdzielczość obrazu wynosi %s","Storage quota exceeded":"Przekroczono limit miejsca","An error has occurred":"Wystąpił błąd","%d error_0":"<strong>%d</strong> błąd","%d error_1":"<strong>%d</strong> błędy","%d error_2":"<strong>%d</strong> błędów","%d of %d file uploaded_0":"Przesłano <strong>%d</strong> z <strong>%d</strong> pliku","%d of %d file uploaded_1":"Przesłano <strong>%d</strong> z <strong>%d</strong> plików","%d of %d file uploaded_2":"Przesłano <strong>%d</strong> z <strong>%d</strong> plików","Upload aborted":"Przesyłanie przerwane","Upload finished":"Przesyłanie ukończone","Abort upload":"Przerwij przesyłanie","Close upload dialog":"Zamknij okno przesyłania","Open upload dialog":"Otwórz okno przesyłania","Open details":"Otwórz szczegóły","Close details":"Zamknij szczegóły","Internal server error.":"Wewnętrzny błąd serwera.","Unauthorized operation.":"Nieuprawniona operacja.","Category not found.":"Nie znaleziono kategorii.","An unexpected application error has occurred.":"Wystąpił nieoczekiwany błąd aplikacji.","Unexpected error.":"Nieoczekiwany błąd.","Asset not found.":"Nie znaleziono zasobu.","Unknown error.":"Nieznany błąd.","Validation failed.":"Walidacja nieudana.","Resource not found.":"Nie znaleziono źródła.","%d h_0":"%d godz.","%d h_1":"%d godz.","%d h_2":"%d godz.","%d min_0":"%d min","%d min_1":"%d min","%d min_2":"%d min","%d s_0":"%d sek.","%d s_1":"%d sek.","%d s_2":"%d sek."}}();
|
package/package.json
CHANGED
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckbox/core",
|
|
3
|
-
"version": "0.0.2-dev.
|
|
3
|
+
"version": "0.0.2-dev.5",
|
|
4
4
|
"description": "Core functionality",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
|
-
"license": "
|
|
7
|
+
"license": "SEE LICENSE IN LICENSE.md",
|
|
8
8
|
"peerDependencies": {
|
|
9
9
|
"react": "^18"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@ckbox/components": "0.0.2-dev.
|
|
13
|
-
"@ckbox/i18n": "0.0.2-dev.
|
|
12
|
+
"@ckbox/components": "0.0.2-dev.5",
|
|
13
|
+
"@ckbox/i18n": "0.0.2-dev.5",
|
|
14
14
|
"lodash": "^4.17.21",
|
|
15
15
|
"nanoid": "^3.3.4",
|
|
16
16
|
"react-hook-form": "^7.32.1",
|
|
17
17
|
"react-query": "^3.39.1",
|
|
18
18
|
"tslib": "^2.4.0"
|
|
19
|
-
}
|
|
19
|
+
},
|
|
20
|
+
"readme": "## @ckbox/core\n\nTo be filled in.\n"
|
|
20
21
|
}
|