@ckbox/core 0.0.2-dev.3 → 0.0.2
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 _0x3d1493=_0x2ffc;(function(_0x2aff3c,_0x19cbc2){const _0x62e287=_0x2ffc,_0x542f19=_0x2aff3c();while(!![]){try{const _0x4b16f9=parseInt(_0x62e287(0x1a4))/0x1+parseInt(_0x62e287(0x176))/0x2+parseInt(_0x62e287(0x16c))/0x3+-parseInt(_0x62e287(0xfa))/0x4+-parseInt(_0x62e287(0x2f4))/0x5+-parseInt(_0x62e287(0x152))/0x6*(parseInt(_0x62e287(0x16a))/0x7)+-parseInt(_0x62e287(0x25e))/0x8*(parseInt(_0x62e287(0x2ef))/0x9);if(_0x4b16f9===_0x19cbc2)break;else _0x542f19['push'](_0x542f19['shift']());}catch(_0x404001){_0x542f19['push'](_0x542f19['shift']());}}}(_0x12ed,0xe4217),!(function(){const _0x30897f=_0x2ffc,_0x52ad05=_0x30897f(0x2e6)!=typeof globalThis?globalThis:global||self;_0x52ad05[_0x30897f(0xf3)]||(_0x52ad05[_0x30897f(0xf3)]={}),_0x52ad05[_0x30897f(0xf3)]['en']={'Settings':'Settings','Asset\x20categories':_0x30897f(0x211),'Images':'Images','Category\x20name':_0x30897f(0x10e),'Add\x20category':_0x30897f(0x1fd),'Category\x20ID':_0x30897f(0x2e0),'Allowed\x20extensions':'Allowed\x20extensions','Add\x20an\x20extension':'Add\x20an\x20extension','This\x20extension\x20is\x20in\x20use':'This\x20extension\x20is\x20in\x20use','Removing\x20an\x20extension\x20in\x20use\x20will\x20result\x20in\x20the\x20permanent\x20removal\x20of\x20files\x20with\x20this\x20extension.':_0x30897f(0x15c),'Remove\x20extensions\x20in\x20use':_0x30897f(0x10c),'This\x20operation\x20will\x20permanently\x20delete\x20assets\x20from\x20the\x20%s\x20category.\x20Are\x20you\x20sure\x20you\x20want\x20to\x20do\x20that?':'This\x20operation\x20will\x20permanently\x20delete\x20assets\x20from\x20the\x20<strong>%s</strong>\x20category.\x20Are\x20you\x20sure\x20you\x20want\x20to\x20do\x20that?','Assets\x20with\x20the\x20following\x20extensions\x20will\x20be\x20removed:':_0x30897f(0x270),'Remove\x20%s\x20extension':_0x30897f(0x1bf),'Use\x20the\x20slider\x20to\x20define\x20the\x20quality\x20of\x20responsive\x20images':'Use\x20the\x20slider\x20to\x20define\x20the\x20quality\x20of\x20responsive\x20images','Responsive\x20images\x20quality':_0x30897f(0x14e),'Image\x20quality:':_0x30897f(0x177),'Low':'Low','Medium':_0x30897f(0x2b8),'Good':_0x30897f(0x10a),'High':_0x30897f(0x1d2),'Best':_0x30897f(0x290),'Please\x20type\x20the\x20category\x20name\x20to\x20continue:':_0x30897f(0x1ee),'This\x20operation\x20will\x20permanently\x20delete\x20the\x20%s\x20category\x20with\x20all\x20the\x20assets\x20in\x20it.\x20Are\x20you\x20sure\x20you\x20want\x20to\x20do\x20that?':'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?','Category\x20name\x20is\x20required.':_0x30897f(0x282),'Category\x20name\x20cannot\x20exceed\x20256\x20characters.':'Category\x20name\x20cannot\x20exceed\x20256\x20characters.','At\x20least\x20one\x20extension\x20must\x20be\x20specified.':_0x30897f(0x1ea),'Extension\x20cannot\x20contain\x20a\x20dot.':_0x30897f(0x164),'Number\x20of\x20extensions\x20cannot\x20exceed\x20100.':_0x30897f(0x29c),'Extension\x20must\x20not\x20exceed\x209\x20characters.':_0x30897f(0x107),'Category\x20name\x20must\x20be\x20unique.':_0x30897f(0x17c),'Remove\x20category':_0x30897f(0x184),'You\x20are\x20about\x20to\x20permanently\x20delete\x20your\x20files!':'You\x20are\x20about\x20to\x20permanently\x20delete\x20your\x20files!','Category\x20created\x20successfully.':'Category\x20created\x20successfully.','Category\x20position\x20updated.':'Category\x20position\x20updated.','Category\x20updated\x20successfully.':'Category\x20updated\x20successfully.','Category\x20deleted\x20successfully.':'Category\x20deleted\x20successfully.','Images\x20quality\x20updated\x20successfully.':'Images\x20quality\x20updated\x20successfully.','Cancel':_0x30897f(0x2d2),'Save':_0x30897f(0x1dc),'Delete':'Delete','Edit':_0x30897f(0x187),'Copy':_0x30897f(0x2ae),'Close':_0x30897f(0x276),'Copied!':_0x30897f(0x1fa),'Recent':'Recent','Download':_0x30897f(0x1b6),'Rename':'Rename','Upload':_0x30897f(0x253),'Properties':_0x30897f(0x210),'Choose':'Choose','%d\x20file\x20selected':_0x30897f(0x1d3),'%d\x20file\x20selected_plural':_0x30897f(0xf1),'%d\x20file\x20deleted\x20successfully.':_0x30897f(0x2f3),'%d\x20file\x20deleted\x20successfully._plural':_0x30897f(0x28b),'File\x20updated\x20successfully.':_0x30897f(0x24f),'File\x20name':_0x30897f(0x13e),'Description':_0x30897f(0x1a2),'Upload\x20date':'Upload\x20date','uploadedAt':_0x30897f(0x1d5),'File\x20size':_0x30897f(0x204),'size':_0x30897f(0x27f),'Width':_0x30897f(0x102),'Height':'Height','URL':'URL','of\x20%d':_0x30897f(0x1e9),'Enter\x20page\x20number':'Enter\x20page\x20number','Navigation':'Navigation','There\x20are\x20no\x20assets\x20in\x20this\x20category':_0x30897f(0x2ee),'Description\x20cannot\x20exceed\x201024\x20characters.':_0x30897f(0x189),'File\x20name\x20is\x20required.':_0x30897f(0x2c8),'File\x20extension\x20is\x20required.':_0x30897f(0x151),'File\x20extension\x20is\x20not\x20allowed.':_0x30897f(0x1f5),'Remove\x20assets':_0x30897f(0x17e),'Are\x20you\x20sure\x20you\x20want\x20to\x20delete\x20%s\x20file?':_0x30897f(0x2d8),'Are\x20you\x20sure\x20you\x20want\x20to\x20delete\x20%s\x20file?_plural':_0x30897f(0xfd),'Resize\x20window':_0x30897f(0x2da),'Display\x20options':_0x30897f(0x233),'Assets':'Assets','Thumbnails':_0x30897f(0xfe),'Size':'Size','Keep\x20aspect\x20ratio':_0x30897f(0x19a),'Display':_0x30897f(0x13c),'Sort\x20by':_0x30897f(0x10d),'Order':'Order','Ascending':'Ascending','Descending':_0x30897f(0x296),'name':_0x30897f(0x15a),'lastModifiedAt':_0x30897f(0x23b),'Pending':_0x30897f(0x24b),'Aborted':_0x30897f(0x174),'%s\x20left':_0x30897f(0x2e4),'More\x20than\x201\x20day\x20left':_0x30897f(0x2d1),'%s\x20of\x20%s':_0x30897f(0x181),'File\x20extension\x20is\x20not\x20allowed\x20in\x20%s\x20category':_0x30897f(0xf5),'Maximum\x20file\x20size\x20allowed\x20is\x20%s':_0x30897f(0x295),'Maximum\x20image\x20resolution\x20allowed\x20is\x20%s':_0x30897f(0x2a9),'Storage\x20quota\x20exceeded':_0x30897f(0x242),'An\x20error\x20has\x20occurred':_0x30897f(0x222),'%d\x20error':'<strong>%d</strong>\x20error','%d\x20error_plural':_0x30897f(0x104),'%d\x20of\x20%d\x20file\x20uploaded':_0x30897f(0x224),'%d\x20of\x20%d\x20file\x20uploaded_plural':_0x30897f(0x228),'Upload\x20aborted':'Upload\x20aborted','Upload\x20finished':_0x30897f(0x2ce),'Abort\x20upload':'Abort\x20upload','Close\x20upload\x20dialog':_0x30897f(0x12c),'Open\x20upload\x20dialog':_0x30897f(0x200),'Open\x20details':_0x30897f(0x2f2),'Close\x20details':_0x30897f(0x19e),'Internal\x20server\x20error.':_0x30897f(0xfc),'Unauthorized\x20operation.':_0x30897f(0x236),'Category\x20not\x20found.':_0x30897f(0x2d5),'An\x20unexpected\x20application\x20error\x20has\x20occurred.':'An\x20unexpected\x20application\x20error\x20has\x20occurred.','Unexpected\x20error.':_0x30897f(0x285),'Asset\x20not\x20found.':_0x30897f(0x148),'Unknown\x20error.':_0x30897f(0x154),'Validation\x20failed.':_0x30897f(0x1a3),'Resource\x20not\x20found.':_0x30897f(0xf8),'%d\x20h':'%d\x20h','%d\x20h_plural':'%d\x20hs','%d\x20min':_0x30897f(0x1a8),'%d\x20min_plural':'%d\x20mins','%d\x20s':_0x30897f(0x250),'%d\x20s_plural':_0x30897f(0x2e5)};}()));import*as _0x5a5522 from'react';import _0xfe073b from'react';import{__rest}from'tslib';import{hasOwnProperty,noOp,useIsMounted,useBatchUpdate,useResettableTimeout,UIProvider as _0x2ec76f,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 _0x4c5fdf,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 _0x388aa7,useMutation as _0x35055a}from'react-query';import{ReactQueryDevtools}from'react-query/devtools';import{nanoid}from'nanoid';import{useForm,Controller}from'react-hook-form';import _0x464534 from'lodash/throttle';const CoreContext=_0x5a5522[_0x3d1493(0x105)]({'serviceOrigin':'','tokenUrl':''}),useCoreContext=()=>_0x5a5522[_0x3d1493(0x21c)](CoreContext),ApiContext=_0x5a5522[_0x3d1493(0x105)]({'api':undefined}),useApi=()=>{const _0x5a6fa=_0x3d1493,_0x50662e=_0x5a5522[_0x5a6fa(0x21c)](ApiContext),_0x296c98=_0x50662e[_0x5a6fa(0x214)];if(!_0x296c98)throw new Error('Initialize\x20`api`\x20in\x20order\x20to\x20use\x20`useApi`\x20hook');return Object['assign'](Object[_0x5a6fa(0x2b3)]({},_0x50662e),{'api':_0x296c98});},getAssetDimensions=(_0x2ec14c,_0x5767eb,_0x23e863)=>{const _0x2dc6f6=_0x3d1493;if(_0x5767eb&&typeof _0x5767eb===_0x2dc6f6(0xf2))return _0x2ec14c+'x'+_0x5767eb+(_0x23e863?'.'+_0x23e863:'');if(!_0x5767eb&&_0x23e863)return _0x2ec14c+'.'+_0x23e863;if(_0x5767eb&&typeof _0x5767eb===_0x2dc6f6(0x13a))return _0x2ec14c+'.'+_0x5767eb;return''+_0x2ec14c;},createApiAssets=_0x998495=>{return{'deleteAssets':_0x41ffe9=>{const _0x4d1dc6=_0x2ffc;return _0x998495['post'](_0x4d1dc6(0xf7),_0x41ffe9);},'getCategoryAssets':_0x41e196=>{const _0x260e7d=_0x2ffc;return _0x998495[_0x260e7d(0x118)](_0x260e7d(0x289),_0x41e196);},'getRecentAssets':_0x3cfdfe=>{const _0xdda5ee=_0x2ffc;return _0x998495[_0xdda5ee(0x118)]('/assets/recent',_0x3cfdfe);},'updateAsset':(_0x27b91b,_0x474149)=>{const _0x207fcd=_0x2ffc;return _0x998495[_0x207fcd(0x114)]('/assets/'+_0x27b91b,_0x474149);},'uploadAsset':()=>{const _0x4f8f2f=_0x2ffc;return _0x998495[_0x4f8f2f(0x2fb)](_0x4f8f2f(0x289));},'getAssetUrl':(_0x3f3de5,_0x639dc2=![])=>{const _0x55637b=_0x2ffc;return _0x998495[_0x55637b(0x13b)]('/assets/'+_0x3f3de5+_0x55637b(0x286)+(_0x639dc2?_0x55637b(0x1a5):''));},'getAsset':_0x43de32=>{const _0x170ce1=_0x2ffc;return _0x998495['get'](_0x170ce1(0x110)+_0x43de32);},'updateAssetLastUse':_0x2b54ae=>{const _0x475284=_0x2ffc;return _0x998495[_0x475284(0x16b)](_0x475284(0x235),_0x2b54ae);},'getAssetThumbUrl':(_0x57da01,_0x2b7473,_0x365736,_0x620008)=>{const _0x587e04=_0x2ffc;return _0x998495[_0x587e04(0x13b)](_0x587e04(0x110)+_0x57da01+'/thumbs/'+getAssetDimensions(_0x2b7473,_0x365736,_0x620008));},'getAssetResponsiveImageUrl':(_0x5e56af,_0x339162,_0x436ca7,_0x197103)=>{const _0x1dc58e=_0x2ffc;return _0x998495[_0x1dc58e(0x13b)]('/assets/'+_0x5e56af+_0x1dc58e(0x20e)+getAssetDimensions(_0x339162,_0x436ca7,_0x197103));}};},createApiCategories=_0x2303e1=>{return{'createCategory':_0x107020=>{const _0x43921e=_0x2ffc;return _0x2303e1[_0x43921e(0x21e)](_0x43921e(0x1ba),_0x107020);},'deleteCategory':_0x399b2a=>{const _0x5982bd=_0x2ffc;return _0x2303e1[_0x5982bd(0x1be)](_0x5982bd(0x20a)+_0x399b2a);},'getAdminCategories':(_0x4933ff={'limit':0x1f4})=>{return _0x2303e1['get']('/admin/categories',_0x4933ff);},'getCategories':(_0xbddff7={'limit':0x1f4})=>{const _0x1a992e=_0x2ffc;return _0x2303e1[_0x1a992e(0x118)](_0x1a992e(0x2df),_0xbddff7);},'getCategory':_0x59eca3=>{const _0x174ff4=_0x2ffc;return _0x2303e1[_0x174ff4(0x118)]('/categories/'+_0x59eca3);},'updateCategory':(_0x3d31f8,_0x1b0ad2)=>{const _0x56845e=_0x2ffc;return _0x2303e1['put'](_0x56845e(0x20a)+_0x3d31f8,_0x1b0ad2);},'updateCategoriesOrder':_0x433c91=>{const _0x462dcc=_0x2ffc;return _0x2303e1[_0x462dcc(0x16b)](_0x462dcc(0x2ad),_0x433c91);}};},createApiImages=_0x53feec=>{return{'getImagesConfig':()=>{const _0x40a0fd=_0x2ffc;return _0x53feec[_0x40a0fd(0x118)]('/admin/images');},'updateImageFormatConfig':(_0x3875fd,_0x2568dd)=>{const _0x2c68d8=_0x2ffc;return _0x53feec[_0x2c68d8(0x16b)](_0x2c68d8(0x167)+_0x3875fd,_0x2568dd);}};},createApi=_0x338ef1=>({'assets':createApiAssets(_0x338ef1),'categories':createApiCategories(_0x338ef1),'images':createApiImages(_0x338ef1),'config':_0x338ef1[_0x3d1493(0x25b)]}),stringifySearchParams=_0x4159f7=>{const _0x1d8e51=_0x3d1493,_0x5ebe47=Object[_0x1d8e51(0x28e)](_0x4159f7)[_0x1d8e51(0x2c5)]((_0x9677d7,[_0x50ecd2,_0x11c5b9])=>{return _0x11c5b9!==undefined&&(_0x9677d7[_0x50ecd2]=String(_0x11c5b9)),_0x9677d7;},{});return new URLSearchParams(_0x5ebe47)[_0x1d8e51(0x251)]();};var HTTPStatusCode;(function(_0x453f68){const _0x5c6173=_0x3d1493;_0x453f68[_0x453f68['OK']=0xc8]='OK',_0x453f68[_0x453f68[_0x5c6173(0x2c6)]=0x190]=_0x5c6173(0x2c6),_0x453f68[_0x453f68[_0x5c6173(0x147)]=0x191]='UNAUTHORIZED',_0x453f68[_0x453f68[_0x5c6173(0x23c)]=0x193]=_0x5c6173(0x23c),_0x453f68[_0x453f68['NOT_FOUND']=0x194]=_0x5c6173(0x2bf),_0x453f68[_0x453f68[_0x5c6173(0x1a0)]=0x1f4]=_0x5c6173(0x1a0),_0x453f68[_0x453f68[_0x5c6173(0x299)]=0x1f8]='GATEWAY_TIMEOUT';}(HTTPStatusCode||(HTTPStatusCode={})));class ApiClientError extends Error{constructor(_0x4193cb,_0x3d2cc6){const _0x2a3457=_0x3d1493;super(),this['statusCode']=_0x4193cb,this[_0x2a3457(0x209)]=_0x3d2cc6;}[_0x3d1493(0x252)](){return this['statusCode']===HTTPStatusCode['BAD_REQUEST'];}[_0x3d1493(0x22a)](){const _0x252f0d=_0x3d1493;return this[_0x252f0d(0x127)]===HTTPStatusCode[_0x252f0d(0x147)]||this[_0x252f0d(0x127)]===HTTPStatusCode[_0x252f0d(0x23c)];}['isMissingResourceError'](){const _0x1630fa=_0x3d1493;return this[_0x1630fa(0x127)]===HTTPStatusCode[_0x1630fa(0x2bf)];}[_0x3d1493(0x173)](){const _0x5a7146=_0x3d1493;return this['statusCode']===HTTPStatusCode[_0x5a7146(0x1a0)]||this[_0x5a7146(0x127)]===HTTPStatusCode[_0x5a7146(0x299)];}[_0x3d1493(0x121)](){const _0x290f6a=_0x3d1493;return!this[_0x290f6a(0x252)]()&&!this[_0x290f6a(0x22a)]()&&!this['isMissingResourceError']()&&!this[_0x290f6a(0x173)]();}}const defaultConfig$1={'origin':''};class ApiClient{constructor(_0x1963cd,_0x22f7f3){const _0x1bdf09=_0x3d1493;this['config']=Object[_0x1bdf09(0x2b3)](Object[_0x1bdf09(0x2b3)]({},defaultConfig$1),_0x1963cd),this[_0x1bdf09(0x1f2)]=_0x22f7f3;}async[_0x3d1493(0x1bb)](){const _0x527a3e=_0x3d1493,_0x43a5a3=await this[_0x527a3e(0x1f2)]['tokenValue']();return _0x43a5a3!==null&&_0x43a5a3!==void 0x0?_0x43a5a3:'';}async[_0x3d1493(0x125)](_0x13d35f,{body:_0x301802,method:_0x3c448c,params:_0x23c25b}){const _0x24dd19=_0x3d1493,_0x1a4eaf=await this['getToken'](),_0x373b6e=await fetch(this['getUrl'](_0x13d35f,_0x23c25b),{'body':_0x301802,'method':_0x3c448c,'headers':new Headers({'Authorization':_0x1a4eaf})});if(!_0x373b6e['ok']){let _0x3b4048;try{_0x3b4048=await _0x373b6e[_0x24dd19(0x1c6)]();}catch(_0x43db40){console[_0x24dd19(0x27d)](_0x43db40);}throw new ApiClientError(_0x373b6e[_0x24dd19(0x26c)],_0x3b4048);}if(_0x373b6e[_0x24dd19(0x26c)]===0xcc)return;const _0x57ed30=await _0x373b6e[_0x24dd19(0x1c6)]();return _0x57ed30;}[_0x3d1493(0x118)](_0x3c7780,_0x1b67ca){const _0x536f61=_0x3d1493;return this[_0x536f61(0x125)](_0x3c7780,{'method':_0x536f61(0x1e6),'params':_0x1b67ca});}[_0x3d1493(0x21e)](_0x49850f,_0x3cc5d2){const _0x91114=_0x3d1493;return this['fetch'](_0x49850f,{'method':_0x91114(0x2e7),'body':JSON['stringify'](_0x3cc5d2)});}['createUploadRequest'](_0x279a56){const _0x158595=new XMLHttpRequest(),_0x4266da=async(_0x3a7702,_0x578f65)=>{const _0x5b1bf2=_0x2ffc,_0x462262=await this[_0x5b1bf2(0x1bb)](),_0x92cf4c=new FormData();return Object[_0x5b1bf2(0x28e)](_0x3a7702)['forEach'](([_0x36c51b,_0x464b58])=>_0x92cf4c[_0x5b1bf2(0x139)](_0x36c51b,_0x464b58)),_0x158595['upload']&&_0x578f65&&_0x158595[_0x5b1bf2(0x271)][_0x5b1bf2(0x109)](_0x5b1bf2(0x229),_0x53b0aa=>{const {loaded:_0x567831,total:_0x59550c}=_0x53b0aa;_0x578f65(_0x567831,_0x59550c);}),new Promise((_0x4edd31,_0x475117)=>{const _0x47837e=_0x5b1bf2;_0x158595['addEventListener'](_0x47837e(0x116),()=>{const _0x450741=_0x47837e,_0x5f1722=JSON[_0x450741(0x11c)](_0x158595[_0x450741(0x209)]);_0x4edd31(_0x5f1722);}),_0x158595[_0x47837e(0x109)](_0x47837e(0x27d),_0x475117),_0x158595['addEventListener'](_0x47837e(0x213),_0x475117),_0x158595[_0x47837e(0x1fc)](_0x47837e(0x2e7),this['getUrl'](_0x279a56)),_0x158595[_0x47837e(0x1ca)](_0x47837e(0x25d),_0x462262),_0x158595[_0x47837e(0x1de)](_0x92cf4c);});},_0x26e0fa=()=>{const _0x1833b3=_0x2ffc;_0x158595[_0x1833b3(0x213)]();};return{'start':_0x4266da,'abort':_0x26e0fa};}['patch'](_0x41db88,_0x26fcd0){const _0x4545d9=_0x3d1493;return this[_0x4545d9(0x125)](_0x41db88,{'method':_0x4545d9(0x22e),'body':JSON[_0x4545d9(0x221)](_0x26fcd0)});}[_0x3d1493(0x16b)](_0x15f1a8,_0x1d4eb7){const _0x5889a2=_0x3d1493,_0x65c669={'method':_0x5889a2(0x1f7)};return _0x1d4eb7&&(_0x65c669[_0x5889a2(0x134)]=JSON[_0x5889a2(0x221)](_0x1d4eb7)),this[_0x5889a2(0x125)](_0x15f1a8,_0x65c669);}[_0x3d1493(0x1be)](_0x4f9618){const _0x2f1c51=_0x3d1493;return this[_0x2f1c51(0x125)](_0x4f9618,{'method':_0x2f1c51(0x191)});}['getUrl'](_0x137b06,_0x4e3669){const _0x56bc7e=_0x3d1493,_0xc0766a=''+this['config'][_0x56bc7e(0x18d)]+_0x137b06;if(_0x4e3669)return _0xc0766a+'?'+stringifySearchParams(_0x4e3669);return _0xc0766a;}}var ApiSortingOrder;(function(_0x54ccab){const _0x172544=_0x3d1493;_0x54ccab[_0x172544(0x217)]=_0x172544(0x19d),_0x54ccab[_0x172544(0x1aa)]=_0x172544(0x2f8);}(ApiSortingOrder||(ApiSortingOrder={})));class ApiErrorHandler{constructor(){this['_handlers']=new Map();}[_0x3d1493(0x1d1)](..._0x382865){for(const _0x32859d of _0x382865){this['_set'](_0x32859d);}}[_0x3d1493(0x2ea)](_0x540fc5){const _0x296484=_0x3d1493;if(_0x540fc5 instanceof ApiClientError)for(const _0x14dcf7 of this[_0x296484(0x237)]['values']()){_0x14dcf7[_0x296484(0x2ea)](_0x540fc5);}}['_set'](_0x39bd00){const _0x2c149f=_0x3d1493;this['_handlers'][_0x2c149f(0x23f)](_0x39bd00['constructor']['name'],_0x39bd00);}}function _0x2ffc(_0x10230f,_0x9da91f){const _0x12ed30=_0x12ed();return _0x2ffc=function(_0x2ffc84,_0x180747){_0x2ffc84=_0x2ffc84-0xf0;let _0x3617be=_0x12ed30[_0x2ffc84];return _0x3617be;},_0x2ffc(_0x10230f,_0x9da91f);}class ValidationErrorHandler{constructor(_0x596f4b){const _0x759a04=_0x3d1493;this[_0x759a04(0x2b1)]=_0x596f4b;}[_0x3d1493(0x2ea)](_0x4c5043){const _0x3b2e9b=_0x3d1493;_0x4c5043[_0x3b2e9b(0x252)]()&&this['_handler'](_0x4c5043);}}class UnauthorizedErrorHandler{constructor(_0x1d3aea){const _0x2c04a5=_0x3d1493;this[_0x2c04a5(0x2b1)]=_0x1d3aea;}[_0x3d1493(0x2ea)](_0x188889){const _0x1800e3=_0x3d1493;_0x188889[_0x1800e3(0x22a)]()&&this['_handler'](_0x188889);}}class MissingResourceErrorHandler{constructor(_0x5c1e79){const _0x546b8f=_0x3d1493;this[_0x546b8f(0x2b1)]=_0x5c1e79;}[_0x3d1493(0x2ea)](_0x3394e8){const _0x445132=_0x3d1493;_0x3394e8['isMissingResourceError']()&&this[_0x445132(0x2b1)](_0x3394e8);}}class ServerErrorHandler{constructor(_0x36cdc9){const _0x30f13d=_0x3d1493;this[_0x30f13d(0x2b1)]=_0x36cdc9;}[_0x3d1493(0x2ea)](_0x2572bf){const _0x48a25f=_0x3d1493;_0x2572bf['isServerError']()&&this[_0x48a25f(0x2b1)](_0x2572bf);}}class UnknownErrorHandler{constructor(_0x50c177){const _0xd177ff=_0x3d1493;this[_0xd177ff(0x2b1)]=_0x50c177;}[_0x3d1493(0x2ea)](_0x5d9b10){const _0x33ab89=_0x3d1493;_0x5d9b10['isUnknownError']()&&this[_0x33ab89(0x2b1)](_0x5d9b10);}}const DEFAULT_TOKEN_REFRESH_TIMEOUT_TIME=0x1b7740,getTokenPayload=_0x45af52=>{const _0x45c525=_0x3d1493,[,_0xa10f43]=_0x45af52['split']('.');return JSON[_0x45c525(0x11c)](atob(_0xa10f43));},getTokenTimeoutTime=_0x4af27a=>{if(!_0x4af27a)return DEFAULT_TOKEN_REFRESH_TIMEOUT_TIME;return getTokenPayload(_0x4af27a),DEFAULT_TOKEN_REFRESH_TIMEOUT_TIME;},defaultConfig={'tokenUrl':''};class AuthClient{constructor(_0x196884){const _0x4589e2=_0x3d1493;this[_0x4589e2(0x2ca)]=![],this[_0x4589e2(0x2e8)]=Object[_0x4589e2(0x2b3)](Object[_0x4589e2(0x2b3)]({},defaultConfig),_0x196884);}async[_0x3d1493(0x2fc)](){const _0x27a4bc=_0x3d1493,_0x46dede=await fetch(this[_0x27a4bc(0x2e8)][_0x27a4bc(0x14b)]);return _0x46dede['text']();}async[_0x3d1493(0x108)](){const _0x3b052c=_0x3d1493;this[_0x3b052c(0x2cc)]=await this['fetchToken'](),this[_0x3b052c(0x19f)]=setTimeout(()=>this[_0x3b052c(0x108)](),getTokenTimeoutTime());}async[_0x3d1493(0x11b)](){const _0x1c765a=_0x3d1493;return!this[_0x1c765a(0x2ca)]&&(this[_0x1c765a(0x2c9)]=this[_0x1c765a(0x108)](),this[_0x1c765a(0x2ca)]=!![]),await this[_0x1c765a(0x2c9)],this[_0x1c765a(0x2cc)];}async['tokenPayload'](){const _0x296e14=await this['tokenValue']();if(_0x296e14)return getTokenPayload(_0x296e14);}['cleanup'](){const _0x1f7d36=_0x3d1493;clearTimeout(this[_0x1f7d36(0x19f)]);}}const AuthContext=_0x5a5522[_0x3d1493(0x105)]({'authClient':undefined,'tokenPayload':undefined}),useAuth=()=>{const _0x38bfa1=_0x3d1493,_0x37b6c1=_0x5a5522['useContext'](AuthContext),_0x4d3e35=_0x37b6c1[_0x38bfa1(0x26f)];if(!_0x4d3e35)throw new Error(_0x38bfa1(0x2d0));return Object[_0x38bfa1(0x2b3)](Object[_0x38bfa1(0x2b3)]({},_0x37b6c1),{'authClient':_0x4d3e35});},AuthProvider=({auth:_0x32d7f7,children:_0x496651})=>{const _0x4c483f=_0x3d1493,_0x4e7bbc=_0x5a5522[_0x4c483f(0x2a0)](![]),_0x20c91f=_0x5a5522[_0x4c483f(0x2a0)](new AuthClient(_0x32d7f7)),[_0x10f720,_0xc1b8c]=_0x5a5522[_0x4c483f(0x1e4)]();return _0x5a5522[_0x4c483f(0x124)](()=>{const _0x233d69=_0x4c483f;return _0x4e7bbc[_0x233d69(0x1c8)]=!![],()=>{_0x4e7bbc['current']=![];};},[]),_0x5a5522[_0x4c483f(0x124)](()=>{const _0x45d961=_0x4c483f,_0x1a7dc2=_0x20c91f[_0x45d961(0x1c8)];return _0x1a7dc2[_0x45d961(0x1ed)]()[_0x45d961(0x15e)](_0x266a38=>{_0x4e7bbc['current']&&_0xc1b8c(_0x266a38);}),()=>{const _0x45ef22=_0x45d961;_0x1a7dc2[_0x45ef22(0x129)]();};},[]),_0x5a5522[_0x4c483f(0x1a9)](AuthContext['Provider'],{'value':{'tokenPayload':_0x10f720,'authClient':_0x20c91f[_0x4c483f(0x1c8)]}},_0x496651);},ApiProvider=({api:_0x31fcd9,children:_0x245e63})=>{const _0x145e6b=_0x3d1493,_0x384126=useAuth(),_0x39202b=_0x5a5522[_0x145e6b(0x2a0)](new ApiClient(_0x31fcd9,_0x384126[_0x145e6b(0x26f)])),_0xecdda0=_0x5a5522['useRef'](createApi(_0x39202b[_0x145e6b(0x1c8)]));return _0x5a5522[_0x145e6b(0x1a9)](ApiContext[_0x145e6b(0xf6)],{'value':{'api':_0xecdda0[_0x145e6b(0x1c8)]}},_0x245e63);},ASSET_PREVIEW_EXTENSIONS=['jpg','jpeg','webp',_0x3d1493(0x26e),_0x3d1493(0x141),_0x3d1493(0x297),_0x3d1493(0x115)],canAssetBePreviewed=_0x409f56=>{return ASSET_PREVIEW_EXTENSIONS['includes'](_0x409f56);},AssetsConfigContext=_0x5a5522[_0x3d1493(0x105)]({'onChoose':undefined}),useAssetsConfig=()=>{return _0x5a5522['useContext'](AssetsConfigContext);},AssetsConfigProvider=_0x5759b6=>{const _0x54e257=_0x3d1493;var {children:_0x175c9a}=_0x5759b6,_0x41a7a8=__rest(_0x5759b6,[_0x54e257(0x1b5)]);const {api:_0x45f5c1}=useApi(),_0x1eb24f=_0x5959ae=>{const _0x99f701=_0x54e257;var _0x24dd45;(_0x24dd45=_0x41a7a8[_0x99f701(0x183)])===null||_0x24dd45===void 0x0?void 0x0:_0x24dd45[_0x99f701(0x249)](_0x41a7a8,_0x5959ae[_0x99f701(0x1a7)](_0x364a91=>({'data':_0x364a91,'origin':_0x45f5c1['config']['origin'],'getUrl':_0x50cdb7=>{const _0x37c1cb=_0x99f701;return _0x45f5c1['assets'][_0x37c1cb(0x272)](_0x364a91['id'],_0x50cdb7);},'getResponsiveImageUrl':(_0x141999,_0x4cc9f4,_0x563827)=>{const _0x2f5da4=_0x99f701;if(canAssetBePreviewed(_0x364a91['extension']))return _0x45f5c1[_0x2f5da4(0x29e)][_0x2f5da4(0x126)](_0x364a91['id'],_0x141999,_0x4cc9f4,_0x563827);return![];}})));};return _0x5a5522[_0x54e257(0x1a9)](AssetsConfigContext[_0x54e257(0xf6)],{'value':Object[_0x54e257(0x2b3)](Object['assign']({},_0x41a7a8),{'onChoose':_0x41a7a8[_0x54e257(0x183)]?_0x1eb24f:undefined})},_0x175c9a);},CategoriesConfigContext=_0x5a5522[_0x3d1493(0x105)]({'getCategoryIconProps':()=>({})}),useCategoriesConfig=()=>{const _0x389bce=_0x3d1493;return _0x5a5522[_0x389bce(0x21c)](CategoriesConfigContext);},predefinedCategoriesIcons={'Files':_0x3d1493(0x259),'Images':'Image','Documents':_0x3d1493(0x2ec),'Recent':_0x3d1493(0x1d7)},FALLBACK_CATEGORY_KEY=_0x3d1493(0x258),FALLBACK_CATEGORY_ICON_NAME=_0x3d1493(0x248),getCategoryIconProps=_0x135c1f=>{const {categoryName:_0x1fa71c,categoryId:_0x87c230,icons:_0x56cc1b}=_0x135c1f;if(_0x1fa71c&&hasOwnProperty(_0x56cc1b,_0x1fa71c))return{'render':_0x56cc1b[_0x1fa71c]};if(_0x87c230&&hasOwnProperty(_0x56cc1b,_0x87c230))return{'render':_0x56cc1b[_0x87c230]};if(_0x1fa71c&&hasOwnProperty(predefinedCategoriesIcons,_0x1fa71c))return{'name':predefinedCategoriesIcons[_0x1fa71c]};if(_0x56cc1b[FALLBACK_CATEGORY_KEY])return{'render':_0x56cc1b[FALLBACK_CATEGORY_KEY]};return{'name':FALLBACK_CATEGORY_ICON_NAME};},CategoriesConfigProvider=({children:_0x5efa26,icons:icons={}})=>{const _0x4523cf=_0x3d1493,_0x171312=_0x5a5522['useCallback'](_0x5cd8b3=>getCategoryIconProps(Object[_0x4523cf(0x2b3)](Object[_0x4523cf(0x2b3)]({},_0x5cd8b3),{'icons':icons})),[icons]);return _0x5a5522[_0x4523cf(0x1a9)](CategoriesConfigContext['Provider'],{'value':{'getCategoryIconProps':_0x171312}},_0x5efa26);},DEFAULT_LOCALE='en',mapLangToI18n=_0x43de48=>{const _0x77bdb0=_0x3d1493;var _0x1901b8;const _0x4fd5f3={'lang':'en'};if(typeof _0x43de48==='string')_0x4fd5f3[_0x77bdb0(0x21b)]=_0x43de48;else _0x43de48?(_0x4fd5f3['debug']=_0x43de48[_0x77bdb0(0x2ac)],_0x4fd5f3['lang']=_0x43de48['ui']):_0x4fd5f3[_0x77bdb0(0x21b)]=DEFAULT_LOCALE;const _0x1b13b6=(_0x1901b8=_0x4fd5f3[_0x77bdb0(0x21b)])!==null&&_0x1901b8!==void 0x0?_0x1901b8:DEFAULT_LOCALE;return _0x4fd5f3['resources']={[_0x1b13b6]:getTranslations(_0x1b13b6)},_0x4fd5f3;},LanguageProvider=({children:_0x583a29,language:_0x338927})=>{const _0x2ed019=_0x3d1493;return _0x5a5522[_0x2ed019(0x1a9)](I18nProvider,Object[_0x2ed019(0x2b3)]({},mapLangToI18n(_0x338927)),_0x583a29);},queryClient=new QueryClient(),QueryProvider=({children:_0x1a19e7})=>{const _0x450faa=_0x3d1493;return _0x5a5522['createElement'](QueryClientProvider,{'client':queryClient},_0x1a19e7,_0x5a5522[_0x450faa(0x1a9)](ReactQueryDevtools,{'initialIsOpen':![],'position':'bottom-right'}));};var UploadActionType;(function(_0x36e065){const _0x5a2bd6=_0x3d1493;_0x36e065[_0x36e065['ABORT_UPLOAD']=0x0]='ABORT_UPLOAD',_0x36e065[_0x36e065[_0x5a2bd6(0x246)]=0x1]=_0x5a2bd6(0x246),_0x36e065[_0x36e065[_0x5a2bd6(0x20b)]=0x2]=_0x5a2bd6(0x20b),_0x36e065[_0x36e065[_0x5a2bd6(0x1bd)]=0x3]=_0x5a2bd6(0x1bd),_0x36e065[_0x36e065[_0x5a2bd6(0x106)]=0x4]=_0x5a2bd6(0x106),_0x36e065[_0x36e065[_0x5a2bd6(0x2a6)]=0x5]=_0x5a2bd6(0x2a6),_0x36e065[_0x36e065[_0x5a2bd6(0x2a5)]=0x6]=_0x5a2bd6(0x2a5),_0x36e065[_0x36e065[_0x5a2bd6(0x18f)]=0x7]='UPDATE_PROGRESS';}(UploadActionType||(UploadActionType={})));var UploadErrorData;(function(_0x5d4f32){const _0x3f3737=_0x3d1493;_0x5d4f32[_0x3f3737(0x1e7)]=_0x3f3737(0x2eb),_0x5d4f32['PLAN_EXCEEDED_SIZE_KEY']=_0x3f3737(0x2e2);}(UploadErrorData||(UploadErrorData={})));var UploadErrorType;(function(_0x52b24e){const _0x22cc6e=_0x3d1493;_0x52b24e[_0x52b24e[_0x22cc6e(0x17f)]=0x0]=_0x22cc6e(0x17f),_0x52b24e[_0x52b24e[_0x22cc6e(0x201)]=0x1]=_0x22cc6e(0x201),_0x52b24e[_0x52b24e[_0x22cc6e(0x11f)]=0x2]='PLAN_EXCEEDED_RESOLUTION',_0x52b24e[_0x52b24e[_0x22cc6e(0x27c)]=0x3]=_0x22cc6e(0x27c);}(UploadErrorType||(UploadErrorType={})));var UploadStatus;(function(_0x1b517b){const _0x1aa323=_0x3d1493;_0x1b517b[_0x1b517b['ABORTED']=0x0]=_0x1aa323(0x14a),_0x1b517b[_0x1b517b[_0x1aa323(0x29d)]=0x1]=_0x1aa323(0x29d),_0x1b517b[_0x1b517b[_0x1aa323(0x261)]=0x2]=_0x1aa323(0x261),_0x1b517b[_0x1b517b[_0x1aa323(0x22d)]=0x3]=_0x1aa323(0x22d),_0x1b517b[_0x1b517b['PENDING']=0x4]='PENDING';}(UploadStatus||(UploadStatus={})));var UploadComponentsActionType;(function(_0x54451c){const _0x2983cd=_0x3d1493;_0x54451c[_0x54451c[_0x2983cd(0x19c)]=0x0]=_0x2983cd(0x19c),_0x54451c[_0x54451c[_0x2983cd(0x220)]=0x1]=_0x2983cd(0x220),_0x54451c[_0x54451c[_0x2983cd(0x20f)]=0x2]=_0x2983cd(0x20f),_0x54451c[_0x54451c[_0x2983cd(0x2b7)]=0x3]=_0x2983cd(0x2b7),_0x54451c[_0x54451c[_0x2983cd(0x2f7)]=0x4]=_0x2983cd(0x2f7),_0x54451c[_0x54451c['OPEN_INDICATOR']=0x5]=_0x2983cd(0x294),_0x54451c[_0x54451c['RESET_UPLOAD_COMPONENTS']=0x6]='RESET_UPLOAD_COMPONENTS',_0x54451c[_0x54451c['TOGGLE_DIALOG']=0x7]=_0x2983cd(0x25c);}(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=_0x3051c7=>{const _0x50b2d0=_0x3d1493;return _0x3051c7[_0x50b2d0(0x2c2)](_0x339198=>_0x339198[_0x50b2d0(0x143)]);},getUploadErrorType=_0x409f19=>{const _0x4ece81=_0x3d1493;if(_0x409f19[_0x4ece81(0x1d8)][UploadErrorData[_0x4ece81(0x1e7)]])return{'type':UploadErrorType[_0x4ece81(0x11f)],'msg':_0x409f19[_0x4ece81(0x1d8)][UploadErrorData[_0x4ece81(0x1e7)]]['toString']()};if(_0x409f19[_0x4ece81(0x1d8)][UploadErrorData['PLAN_EXCEEDED_SIZE_KEY']])return{'type':UploadErrorType[_0x4ece81(0x27c)],'msg':_0x409f19['data'][UploadErrorData[_0x4ece81(0x26d)]]['toString']()};return{'type':UploadErrorType['REJECTED']};},getUploadProgress=_0x33d2a3=>{const _0x1aca4d=_0x3d1493,{totalSize:_0x2c64dc,totalUploaded:_0x48ef20,totalAbortedSize:_0x1cb17e,totalAbortedUploaded:_0x190d26}=_0x33d2a3[_0x1aca4d(0x185)](_0x4a21f5=>_0x4a21f5[_0x1aca4d(0x26c)]!==UploadStatus[_0x1aca4d(0x261)])[_0x1aca4d(0x2c5)]((_0x15ebaf,_0x4cbba6)=>{const _0x2e0d68=_0x1aca4d;var _0x2e2d79,_0x324355;return _0x4cbba6['status']===UploadStatus['ABORTED']?Object[_0x2e0d68(0x2b3)](Object[_0x2e0d68(0x2b3)]({},_0x15ebaf),{'totalAbortedSize':_0x15ebaf[_0x2e0d68(0x1b9)]+_0x4cbba6['size']+((_0x2e2d79=_0x4cbba6[_0x2e0d68(0x12d)])!==null&&_0x2e2d79!==void 0x0?_0x2e2d79:0x0),'totalAbortedUploaded':_0x15ebaf[_0x2e0d68(0x112)]+_0x4cbba6[_0x2e0d68(0x161)]}):Object[_0x2e0d68(0x2b3)](Object['assign']({},_0x15ebaf),{'totalSize':_0x15ebaf[_0x2e0d68(0x158)]+_0x4cbba6[_0x2e0d68(0xfb)]+((_0x324355=_0x4cbba6[_0x2e0d68(0x12d)])!==null&&_0x324355!==void 0x0?_0x324355:0x0),'totalUploaded':_0x15ebaf[_0x2e0d68(0x1ac)]+_0x4cbba6[_0x2e0d68(0x161)]});},{'totalSize':0x0,'totalUploaded':0x0,'totalAbortedSize':0x0,'totalAbortedUploaded':0x0});if(!_0x2c64dc&&!_0x1cb17e)return{'totalSize':_0x2c64dc,'totalProgress':0x0,'totalUploaded':_0x48ef20,'totalLeft':_0x2c64dc-_0x48ef20};return{'totalSize':_0x2c64dc,'totalProgress':(_0x48ef20+_0x190d26)*0x64/(_0x2c64dc+_0x1cb17e),'totalUploaded':_0x48ef20,'totalLeft':_0x2c64dc-_0x48ef20};},getUploadedDiff=(_0x48c8d2,_0x4f6ee9)=>{const _0x6cac6a=_0x3d1493;return _0x48c8d2[_0x6cac6a(0x2c5)]((_0x2ba189,_0x2d0dfb)=>{const _0x6a2830=_0x6cac6a,_0x8a5970=_0x4f6ee9[_0x2d0dfb['id']];if(_0x8a5970)return _0x2ba189+(_0x8a5970[_0x6a2830(0x161)]-_0x2d0dfb['uploaded']);return _0x2ba189;},0x0);},getUploadSpeeds=(_0x16deca,_0x604ba,_0x1dd99c)=>{const _0x302efa=_0x3d1493;if(_0x1dd99c<=0x0)return _0x16deca;const _0x50be2b=_0x604ba/_0x1dd99c;if(_0x16deca[_0x302efa(0x24a)]===MAX_UPLOAD_SPEEDS){const [,..._0x258a1f]=_0x16deca;return[..._0x258a1f,_0x50be2b];}return[..._0x16deca,_0x50be2b];},getAssetUploadProgress=(_0x6666f,_0x8fbd5a)=>{return _0x6666f*0x64/_0x8fbd5a;},getAvgUploadSpeed=_0x37a9fe=>{const _0x190b41=_0x3d1493;if(_0x37a9fe['length']<MIN_UPLOAD_SPEEDS)return;const _0x177dbd=_0x37a9fe[_0x190b41(0x2c5)]((_0x306da4,_0x5af73b)=>_0x306da4+_0x5af73b,0x0);if(_0x37a9fe[_0x190b41(0x24a)]>0x2){const _0x180ba3=Math[_0x190b41(0x150)](..._0x37a9fe),_0xbd48a0=Math[_0x190b41(0x27b)](..._0x37a9fe);return(_0x177dbd-_0x180ba3-_0xbd48a0)/(_0x37a9fe[_0x190b41(0x24a)]-0x2);}else return _0x177dbd/_0x37a9fe[_0x190b41(0x24a)];},getTimeLeft=(_0x35849b,_0x1af8b6)=>{if(!_0x1af8b6||_0x1af8b6<=0x0)return;return _0x35849b/_0x1af8b6;},getStandardDeviation=_0x2b43d8=>{const _0x310960=_0x3d1493,_0x5461c9=_0x2b43d8['length'];if(_0x5461c9===0x0)return;const _0x1d7151=_0x2b43d8[_0x310960(0x2c5)]((_0x36c1c0,_0x48c766)=>_0x36c1c0+_0x48c766)/_0x5461c9;return Math[_0x310960(0x11a)](_0x2b43d8['map'](_0x11e846=>Math[_0x310960(0x287)](_0x11e846-_0x1d7151,0x2))[_0x310960(0x2c5)]((_0x50e90b,_0x72774d)=>_0x50e90b+_0x72774d)/_0x5461c9);},sortAssets=_0x364cb6=>{const _0x5772e2=_0x3d1493;return[..._0x364cb6][_0x5772e2(0x1c2)]((_0x3f58d1,_0xb37353)=>{const _0x4d730e=_0x5772e2,_0x2ddb44=_0x3f58d1[_0x4d730e(0x26c)]===UploadStatus['ERROR'],_0x5d3a53=_0xb37353[_0x4d730e(0x26c)]===UploadStatus[_0x4d730e(0x261)];if(_0x2ddb44===_0x5d3a53)return 0x0;if(_0x2ddb44)return-0x1;return 0x1;});},mapAndValidate=(_0x4a3ecf,_0x4b4b5e)=>{const _0x35f074=_0x3d1493;return _0x4a3ecf[_0x35f074(0x1a7)](_0x21e867=>{const _0x42d1bc=_0x35f074,{name:_0x5492f6,category:_0x5055d1}=_0x21e867,[_0x1ce496]=_0x5492f6['split']('.')[_0x42d1bc(0x149)](),_0x2634d0=_0x5055d1[_0x42d1bc(0x29a)]['some'](_0x24c85d=>_0x24c85d===_0x1ce496);if(_0x2634d0)return _0x4b4b5e(_0x21e867);return Object[_0x42d1bc(0x2b3)](Object[_0x42d1bc(0x2b3)]({},_0x21e867),{'abortable':![],'concluded':!![],'status':UploadStatus[_0x42d1bc(0x261)],'error':{'type':UploadErrorType['EXTENSION_NOT_ALLOWED']}});});},initQueuePartialProgressUpdates=()=>{return{'chunksRecordedCount':0x0,'chunksRecordedSize':0x0,'chunksRecordingStartedAt':undefined,'estimatedTimeLeft':undefined};},getFocusedAsset=_0x276000=>{const _0x5565fd=_0x3d1493,_0x1a6183=_0x276000['find'](_0x5335c2=>_0x5335c2[_0x5565fd(0x26c)]===UploadStatus['IN_PROGRESS']);if(_0x1a6183)return _0x1a6183;const _0x4c5d00=[..._0x276000][_0x5565fd(0x149)](),_0x73c961=_0x4c5d00[_0x5565fd(0x273)](_0x3610f0=>_0x3610f0[_0x5565fd(0x26c)]===UploadStatus['COMPLETED']);if(_0x73c961)return _0x73c961;},getQueuePartialUpdate=(_0x38006a,_0x5a8394)=>{const _0x37c5a9=_0x3d1493,_0x38f0f3=isQueueConcluded(_0x38006a),_0x2301f8=getFocusedAsset(_0x38006a),{totalLeft:_0x2ef269,totalProgress:_0x3bacfb}=getUploadProgress(_0x38006a);if(!_0x38f0f3){const _0x962143=getAvgUploadSpeed(_0x5a8394),_0x355f6e=getTimeLeft(_0x2ef269,_0x962143);return{'concluded':_0x38f0f3,'estimatedTimeLeft':_0x355f6e,'focusedAsset':_0x2301f8,'totalProgress':_0x3bacfb};}return Object[_0x37c5a9(0x2b3)]({'concluded':_0x38f0f3,'totalProgress':_0x3bacfb,'focusedAsset':_0x2301f8},initQueuePartialProgressUpdates());},initState=()=>Object[_0x3d1493(0x2b3)]({'concluded':![],'aborted':![],'queue':[],'totalProgress':0x0,'uploadSpeeds':[]},initQueuePartialProgressUpdates()),uploadStateReducer=(_0x21fc8c,_0x24ce85)=>{const _0x1d3070=_0x3d1493;var _0x176ed6,_0x1bf849,_0xa8dd7c;switch(_0x24ce85[_0x1d3070(0x231)]){case UploadActionType[_0x1d3070(0x1e1)]:{const {ids:_0xb15cb2}=_0x24ce85['payload'],_0x4d7243=_0x21fc8c[_0x1d3070(0x1ae)][_0x1d3070(0x1a7)](_0x49636f=>{const _0x488fdc=_0x1d3070;if(_0x49636f[_0x488fdc(0x11e)]&&_0xb15cb2[_0x488fdc(0x12e)](_0x49636f['id']))return Object['assign'](Object['assign']({},_0x49636f),{'abortable':![],'concluded':!![],'status':UploadStatus[_0x488fdc(0x14a)]});return _0x49636f;}),_0x4eddfe=getQueuePartialUpdate(_0x4d7243,_0x21fc8c[_0x1d3070(0x219)]);return Object[_0x1d3070(0x2b3)](Object[_0x1d3070(0x2b3)](Object[_0x1d3070(0x2b3)]({},_0x21fc8c),_0x4eddfe),{'queue':_0x4d7243,'aborted':!![]});}case UploadActionType[_0x1d3070(0x246)]:{const _0x22c0bb=_0x21fc8c[_0x1d3070(0x1ae)][_0x1d3070(0x185)](_0x54ae5c=>!_0x54ae5c['concluded']);if(_0x22c0bb[_0x1d3070(0x24a)]===0x0)return Object[_0x1d3070(0x2b3)](Object[_0x1d3070(0x2b3)]({},initState()),{'uploadSpeeds':_0x21fc8c[_0x1d3070(0x219)]});const _0x235402=getQueuePartialUpdate(_0x22c0bb,_0x21fc8c['uploadSpeeds']);return Object[_0x1d3070(0x2b3)](Object[_0x1d3070(0x2b3)](Object[_0x1d3070(0x2b3)]({},_0x21fc8c),_0x235402),{'queue':_0x22c0bb});}case UploadActionType['COMPLETE_UPLOAD']:{const {id:_0x59a3f7}=_0x24ce85[_0x1d3070(0x2a4)],_0x1c0e2d=_0x21fc8c[_0x1d3070(0x1ae)]['map'](_0x4f5d72=>{const _0x5a4fe4=_0x1d3070;if(_0x4f5d72['id']===_0x59a3f7)return Object['assign'](Object[_0x5a4fe4(0x2b3)]({},_0x4f5d72),{'abortable':![],'concluded':!![],'status':UploadStatus[_0x5a4fe4(0x29d)]});return _0x4f5d72;}),_0x5df2a4=getQueuePartialUpdate(_0x1c0e2d,_0x21fc8c[_0x1d3070(0x219)]);return Object[_0x1d3070(0x2b3)](Object['assign'](Object[_0x1d3070(0x2b3)]({},_0x21fc8c),_0x5df2a4),{'queue':_0x1c0e2d});}case UploadActionType[_0x1d3070(0x1bd)]:{const {id:_0x334adb}=_0x24ce85[_0x1d3070(0x2a4)];return Object[_0x1d3070(0x2b3)](Object[_0x1d3070(0x2b3)]({},_0x21fc8c),{'queue':_0x21fc8c[_0x1d3070(0x1ae)][_0x1d3070(0x1a7)](_0x5413db=>{const _0x305603=_0x1d3070;if(_0x5413db['id']===_0x334adb)return Object[_0x305603(0x2b3)](Object[_0x305603(0x2b3)]({},_0x5413db),{'abortable':![]});return _0x5413db;})});}case UploadActionType[_0x1d3070(0x106)]:{const _0x35fb0d=sortAssets([..._0x21fc8c[_0x1d3070(0x1ae)],...mapAndValidate(_0x24ce85[_0x1d3070(0x2a4)],_0x4fb07e=>Object['assign'](Object[_0x1d3070(0x2b3)]({},_0x4fb07e),{'abortable':!![],'concluded':![],'status':UploadStatus[_0x1d3070(0x2e1)]}))]),_0x35d1c4=getQueuePartialUpdate(_0x35fb0d,_0x21fc8c['uploadSpeeds']);return Object[_0x1d3070(0x2b3)](Object[_0x1d3070(0x2b3)](Object['assign']({},_0x21fc8c),_0x35d1c4),{'queue':_0x35fb0d});}case UploadActionType[_0x1d3070(0x2a6)]:{const {id:_0x35ce06,error:_0x1eec6f}=_0x24ce85[_0x1d3070(0x2a4)],_0x9b2762=sortAssets(_0x21fc8c['queue'][_0x1d3070(0x1a7)](_0x3f137f=>{const _0x5d0817=_0x1d3070;if(_0x35ce06===_0x3f137f['id'])return Object[_0x5d0817(0x2b3)](Object[_0x5d0817(0x2b3)]({},_0x3f137f),{'abortable':![],'concluded':!![],'error':_0x1eec6f,'status':UploadStatus['ERROR']});return _0x3f137f;})),_0x2f5ca0=getQueuePartialUpdate(_0x9b2762,_0x21fc8c[_0x1d3070(0x219)]);return Object[_0x1d3070(0x2b3)](Object['assign'](Object['assign']({},_0x21fc8c),_0x2f5ca0),{'queue':_0x9b2762});}case UploadActionType[_0x1d3070(0x2a5)]:{const {id:_0x3dd18c}=_0x24ce85[_0x1d3070(0x2a4)],_0x419405=_0x21fc8c[_0x1d3070(0x1ae)][_0x1d3070(0x1a7)](_0x5ab5b9=>{const _0x1caea9=_0x1d3070;if(_0x5ab5b9['id']===_0x3dd18c)return Object[_0x1caea9(0x2b3)](Object['assign']({},_0x5ab5b9),{'abortable':!![],'status':UploadStatus[_0x1caea9(0x22d)]});return _0x5ab5b9;}),_0x5cae94=getQueuePartialUpdate(_0x419405,_0x21fc8c[_0x1d3070(0x219)]);return Object[_0x1d3070(0x2b3)](Object['assign'](Object['assign']({},_0x21fc8c),_0x5cae94),{'queue':_0x419405,'chunksRecordingStartedAt':_0x21fc8c['chunksRecordingStartedAt']?_0x21fc8c['chunksRecordingStartedAt']:Date[_0x1d3070(0x14c)]()});}case UploadActionType['UPDATE_PROGRESS']:{const {data:_0x15fe05,count:_0x2c1f07}=_0x24ce85[_0x1d3070(0x2a4)],_0x3992ff=_0x21fc8c[_0x1d3070(0x1ae)][_0x1d3070(0x1a7)](_0xfedf0a=>{const _0x56bade=_0x1d3070,_0x1ca236=_0x15fe05[_0xfedf0a['id']];if(_0x1ca236){const {uploaded:_0x5bdbb4,total:_0x1fa02c}=_0x1ca236;return Object[_0x56bade(0x2b3)](Object['assign']({},_0xfedf0a),{'progress':getAssetUploadProgress(_0x5bdbb4,_0x1fa02c),'overhead':_0x1fa02c-_0xfedf0a[_0x56bade(0xfb)],'uploaded':_0x5bdbb4});}return _0xfedf0a;}),_0x1dba04=Date[_0x1d3070(0x14c)](),{totalProgress:_0xeb226a,totalLeft:_0x3fa586}=getUploadProgress(_0x3992ff),_0x44bc21=getUploadedDiff(_0x21fc8c[_0x1d3070(0x1ae)],_0x15fe05),_0x2f51e9=(_0x176ed6=_0x21fc8c['chunksRecordingStartedAt'])!==null&&_0x176ed6!==void 0x0?_0x176ed6:_0x1dba04,_0x142343=((_0x1bf849=_0x21fc8c[_0x1d3070(0x18e)])!==null&&_0x1bf849!==void 0x0?_0x1bf849:0x0)+_0x2c1f07,_0x57a02f=((_0xa8dd7c=_0x21fc8c[_0x1d3070(0x199)])!==null&&_0xa8dd7c!==void 0x0?_0xa8dd7c:0x0)+_0x44bc21,_0x2b0e16=_0x1dba04-_0x2f51e9,_0x3ac0f7=Object[_0x1d3070(0x2b3)](Object[_0x1d3070(0x2b3)]({},_0x21fc8c),{'totalProgress':_0xeb226a,'queue':_0x3992ff});if(_0x2b0e16>=MIN_TIME_ELAPSED&&_0x142343>=MIN_PROGRESS_UPDATES){const _0x5c1129=getUploadSpeeds(_0x21fc8c['uploadSpeeds'],_0x57a02f,_0x2b0e16),_0x266884=getAvgUploadSpeed(_0x5c1129),_0x295e2f=getStandardDeviation(_0x5c1129);if(_0x266884&&_0x295e2f&&_0x295e2f/_0x266884>=MAX_STANDARD_DEV)return Object[_0x1d3070(0x2b3)](Object[_0x1d3070(0x2b3)](Object[_0x1d3070(0x2b3)]({},_0x3ac0f7),initQueuePartialProgressUpdates()),{'chunksRecordingStartedAt':_0x1dba04,'uploadSpeeds':[]});const _0x47fea2=getTimeLeft(_0x3fa586,_0x266884);return Object['assign'](Object['assign'](Object[_0x1d3070(0x2b3)]({},_0x3ac0f7),initQueuePartialProgressUpdates()),{'chunksRecordingStartedAt':_0x1dba04,'estimatedTimeLeft':_0x47fea2,'uploadSpeeds':_0x5c1129});}return Object[_0x1d3070(0x2b3)](Object[_0x1d3070(0x2b3)]({},_0x3ac0f7),{'chunksRecordedCount':_0x142343,'chunksRecordedSize':_0x57a02f,'chunksRecordingStartedAt':_0x2f51e9});}default:return _0x21fc8c;}},UploadComponentsContext=_0x5a5522['createContext']({'autoScroll':![],'isDialogOpen':![],'isIndicatorOpen':![],'closeDialog':noOp,'disableAutoFeats':noOp,'disableAutoHide':noOp,'onUploadConcluded':noOp,'openDialog':noOp,'openIndicator':noOp,'toggleDialog':noOp}),UploadStateContext=_0x5a5522[_0x3d1493(0x105)](initState()),UploadUpdaterContext=_0x5a5522['createContext']({'abortUpload':noOp,'processFiles':noOp}),useUploadComponents$1=()=>{const _0x397adb=_0x3d1493;return _0x5a5522[_0x397adb(0x21c)](UploadComponentsContext);},useUploadState=()=>{return _0x5a5522['useContext'](UploadStateContext);},useUploadUpdater=()=>{const _0x26f346=_0x3d1493;return _0x5a5522[_0x26f346(0x21c)](UploadUpdaterContext);},useStartUpload=_0x218d7d=>{const {processFiles:_0xe3506d}=useUploadUpdater(),{openDialog:_0x2472e5,openIndicator:_0x5e6fc8}=useUploadComponents$1(),_0x3d3b47=_0x496e1b=>{_0xe3506d(_0x218d7d,_0x496e1b),_0x2472e5(),_0x5e6fc8();};return{'startUpload':_0x3d3b47};},uploadInitState=initState(),useUpload=_0x39ac12=>{const _0x23ec8e=_0x3d1493,_0xc866c0=_0x5a5522['useRef'](Object[_0x23ec8e(0x2b3)]({'uploadBatch':0x5},_0x39ac12)),_0x295893=useIsMounted(),[_0xf6c84b,_0x2cf9a7]=_0x5a5522[_0x23ec8e(0x122)](uploadStateReducer,uploadInitState),_0x38e9dd=_0x5a5522[_0x23ec8e(0x2a0)]((..._0x3d69cc)=>{_0x295893()&&_0x2cf9a7(..._0x3d69cc);}),_0x2ca3ee=_0x5a5522['useRef'](_0xf6c84b[_0x23ec8e(0x1ae)]);_0x2ca3ee['current']=_0xf6c84b['queue'],_0x5a5522['useEffect'](()=>{const _0x5c45b5=_0x23ec8e;var _0xd45a55,_0x296114;_0xf6c84b[_0x5c45b5(0x143)]&&((_0x296114=(_0xd45a55=_0xc866c0['current'])[_0x5c45b5(0x2b4)])===null||_0x296114===void 0x0?void 0x0:_0x296114[_0x5c45b5(0x249)](_0xd45a55,_0x2ca3ee[_0x5c45b5(0x1c8)]));},[_0xf6c84b[_0x23ec8e(0x143)]]);const {pushUpdate:_0x1fd857}=useBatchUpdate(_0x36f679=>{const _0x4e8e89=_0x23ec8e;_0x38e9dd[_0x4e8e89(0x1c8)]({'type':UploadActionType[_0x4e8e89(0x18f)],'payload':_0x36f679});},_0xc866c0['current'][_0x23ec8e(0x215)]),_0x6a78ea=useQueryClient(),{pushUpdate:_0xe27975}=useBatchUpdate(_0x21b4c3=>{const _0x24e88a=_0x23ec8e,_0x3784c0=Object[_0x24e88a(0x216)](_0x21b4c3['data']);_0x3784c0['length']>0x0&&(_0x3784c0[_0x24e88a(0x25f)](_0x3dba3a=>{const _0x413b6e=_0x24e88a;_0x6a78ea[_0x413b6e(0x279)]([_0x413b6e(0x132),_0x3dba3a]);}),_0x6a78ea['invalidateQueries'](_0x24e88a(0x2d4)));},_0xc866c0['current'][_0x23ec8e(0x117)]),{api:_0x4a8762}=useApi(),_0xd26ebc=_0x4a8762[_0x23ec8e(0x29e)]['uploadAsset'],_0x2d03=_0x5a5522[_0x23ec8e(0x2db)](_0xef3faa=>{const _0x66a350=_0x23ec8e;_0x38e9dd[_0x66a350(0x1c8)]({'type':UploadActionType['ABORT_UPLOAD'],'payload':{'ids':_0xef3faa[_0x66a350(0x185)](_0x1683d5=>_0x1683d5['status']===UploadStatus['PENDING'])['map'](({id:_0x1aac2c})=>_0x1aac2c)}}),_0xef3faa[_0x66a350(0x185)](_0x51f5d9=>_0x51f5d9[_0x66a350(0x11e)])[_0x66a350(0x25f)](_0x249620=>{const _0x23ff56=_0x66a350;_0x249620[_0x23ff56(0x213)]();});},[]);_0x5a5522['useEffect'](()=>{return()=>{const _0x42369d=_0x2ffc;_0x2d03(_0x2ca3ee[_0x42369d(0x1c8)]);};},[]);const _0x18b88e=_0x5a5522[_0x23ec8e(0x2db)](async({id:_0x1fc12e,categoryId:_0x19082c,file:_0x1d67d7,startUpload:_0x4fe309})=>{const _0x3df84b=_0x23ec8e;try{_0x38e9dd[_0x3df84b(0x1c8)]({'type':UploadActionType['START_UPLOAD'],'payload':{'id':_0x1fc12e}});const _0xb2fe=(_0x2d8609,_0x198dbe)=>{const _0xc88811=_0x3df84b;_0x2d8609>=_0x198dbe&&_0x38e9dd[_0xc88811(0x1c8)]({'type':UploadActionType[_0xc88811(0x1bd)],'payload':{'id':_0x1fc12e}}),_0x1fd857({'id':_0x1fc12e,'total':_0x198dbe,'uploaded':_0x2d8609});},_0x3fbcba=await _0x4fe309({'categoryId':_0x19082c,'file':_0x1d67d7},_0xb2fe);_0xe27975({'id':_0x19082c}),(_0x3fbcba===null||_0x3fbcba===void 0x0?void 0x0:_0x3fbcba['statusCode'])&&_0x3fbcba[_0x3df84b(0x127)]!==HTTPStatusCode['OK']?_0x38e9dd[_0x3df84b(0x1c8)]({'type':UploadActionType['REJECT_UPLOAD'],'payload':{'id':_0x1fc12e,'error':getUploadErrorType(_0x3fbcba)}}):_0x38e9dd[_0x3df84b(0x1c8)]({'type':UploadActionType[_0x3df84b(0x20b)],'payload':{'id':_0x1fc12e}});}catch(_0x6c4b61){if((_0x6c4b61===null||_0x6c4b61===void 0x0?void 0x0:_0x6c4b61[_0x3df84b(0x231)])===_0x3df84b(0x213))return _0x38e9dd[_0x3df84b(0x1c8)]({'type':UploadActionType[_0x3df84b(0x1e1)],'payload':{'ids':[_0x1fc12e]}});_0x38e9dd[_0x3df84b(0x1c8)]({'type':UploadActionType[_0x3df84b(0x2a6)],'payload':{'id':_0x1fc12e,'error':{'type':UploadErrorType['REJECTED'],'msg':_0x6c4b61===null||_0x6c4b61===void 0x0?void 0x0:_0x6c4b61['message']}}});}},[_0x1fd857,_0xe27975]);_0x5a5522['useEffect'](()=>{const _0x5190c0=_0x23ec8e,_0x32d391=_0xf6c84b[_0x5190c0(0x1ae)][_0x5190c0(0x185)](_0x5ab005=>_0x5ab005['status']===UploadStatus[_0x5190c0(0x22d)]),_0x245b6d=_0xc866c0['current'][_0x5190c0(0x153)]-_0x32d391[_0x5190c0(0x24a)];_0x245b6d>0x0&&_0xf6c84b[_0x5190c0(0x1ae)][_0x5190c0(0x185)](_0x264f0d=>_0x264f0d[_0x5190c0(0x26c)]===UploadStatus[_0x5190c0(0x2e1)])[_0x5190c0(0x113)](0x0,_0x245b6d)[_0x5190c0(0x25f)](_0x56d568=>{const _0x2b84c8=_0x5190c0;_0x56d568[_0x2b84c8(0x21f)]();});},[_0xf6c84b[_0x23ec8e(0x1ae)]]);const _0x38e95c=_0x5a5522[_0x23ec8e(0x2db)]((_0x42a0d1,_0x432334)=>{const _0x210ad8=_0x23ec8e;var _0x41601f,_0x4845f1;_0x38e9dd[_0x210ad8(0x1c8)]({'type':UploadActionType[_0x210ad8(0x246)]});const _0x1aa46b=_0x432334[_0x210ad8(0x1a7)](_0x4eb626=>{const _0x571a9a=_0x210ad8,_0x7a2029=nanoid(),{start:_0x565955,abort:_0xa53f9e}=_0xd26ebc();return{'abort':_0xa53f9e,'abortable':![],'category':_0x42a0d1,'concluded':![],'id':_0x7a2029,'name':_0x4eb626['name'],'size':_0x4eb626[_0x571a9a(0xfb)],'uploadFile':()=>{return _0x18b88e({'id':_0x7a2029,'categoryId':_0x42a0d1['id'],'file':_0x4eb626,'startUpload':_0x565955});},'uploaded':0x0};});(_0x4845f1=(_0x41601f=_0xc866c0['current'])[_0x210ad8(0x269)])===null||_0x4845f1===void 0x0?void 0x0:_0x4845f1[_0x210ad8(0x249)](_0x41601f,_0x432334),_0x38e9dd[_0x210ad8(0x1c8)]({'type':UploadActionType[_0x210ad8(0x106)],'payload':_0x1aa46b});},[_0xd26ebc,_0x18b88e]),_0x4a3159=_0x5a5522[_0x23ec8e(0x190)](()=>({'abortUpload':_0x2d03,'processFiles':_0x38e95c}),[_0x2d03,_0x38e95c]);return{'state':_0xf6c84b,'actions':_0x4a3159};},initialState$1={'autoHide':![],'autoScroll':![],'isDialogOpen':![],'isIndicatorOpen':![]},uploadComponentsReducer=(_0x134637,_0x27bfd1)=>{const _0x501f30=_0x3d1493;switch(_0x27bfd1[_0x501f30(0x231)]){case UploadComponentsActionType[_0x501f30(0x19c)]:{const _0x534d70=_0x27bfd1['payload'];return Object[_0x501f30(0x2b3)](Object[_0x501f30(0x2b3)]({},_0x134637),{'autoHide':_0x534d70,'autoScroll':![],'isDialogOpen':![]});}case UploadComponentsActionType[_0x501f30(0x220)]:{return Object[_0x501f30(0x2b3)](Object[_0x501f30(0x2b3)]({},_0x134637),{'autoHide':![],'autoScroll':![]});}case UploadComponentsActionType['DISABLE_AUTO_HIDE']:{return Object[_0x501f30(0x2b3)](Object[_0x501f30(0x2b3)]({},_0x134637),{'autoHide':![]});}case UploadComponentsActionType['ENABLE_AUTO_HIDE']:{return Object[_0x501f30(0x2b3)](Object['assign']({},_0x134637),{'autoHide':!![]});}case UploadComponentsActionType[_0x501f30(0x2f7)]:{return Object[_0x501f30(0x2b3)](Object[_0x501f30(0x2b3)]({},_0x134637),{'autoHide':_0x134637[_0x501f30(0x2cf)]?_0x134637[_0x501f30(0x16f)]:![],'autoScroll':_0x134637[_0x501f30(0x2cf)]?_0x134637['autoScroll']:!![],'isDialogOpen':!![]});}case UploadComponentsActionType[_0x501f30(0x294)]:{return Object[_0x501f30(0x2b3)](Object[_0x501f30(0x2b3)]({},_0x134637),{'isIndicatorOpen':!![]});}case UploadComponentsActionType['RESET_UPLOAD_COMPONENTS']:{return Object[_0x501f30(0x2b3)]({},initialState$1);}case UploadComponentsActionType[_0x501f30(0x25c)]:{return Object[_0x501f30(0x2b3)](Object[_0x501f30(0x2b3)]({},_0x134637),{'autoHide':_0x134637[_0x501f30(0x2cf)]?![]:_0x134637['autoHide'],'autoScroll':!_0x134637[_0x501f30(0x2cf)],'isDialogOpen':!_0x134637[_0x501f30(0x2cf)]});}default:return _0x134637;}},useUploadComponents=(_0x3afe09=0x3e8)=>{const _0x523c49=_0x3d1493,[_0x44ee31,_0x136811]=_0x5a5522[_0x523c49(0x122)](uploadComponentsReducer,initialState$1),_0x5f0d8e=_0x5a5522[_0x523c49(0x2db)](()=>{const _0x5b6e4c=_0x523c49;_0x136811({'type':UploadComponentsActionType[_0x5b6e4c(0x2d6)]});},[]),{initTimeout:_0x7ebee1,removeTimeout:_0x201ba8}=useResettableTimeout(_0x5f0d8e,_0x3afe09),_0x5bdeea=_0x5a5522[_0x523c49(0x2db)](()=>{const _0x3b3893=_0x523c49;_0x136811({'type':UploadComponentsActionType[_0x3b3893(0x25c)]});},[]),_0x49e062=_0x5a5522['useCallback'](()=>{_0x136811({'type':UploadComponentsActionType['OPEN_DIALOG']});},[]),_0x41defb=_0x5a5522[_0x523c49(0x2db)]((_0x48533b=![])=>{const _0x117890=_0x523c49;_0x136811({'type':UploadComponentsActionType[_0x117890(0x19c)],'payload':_0x48533b});},[]),_0x1078a7=_0x5a5522['useCallback'](()=>{const _0x35cb45=_0x523c49;_0x136811({'type':UploadComponentsActionType[_0x35cb45(0x294)]});},[]),_0x2e29b1=_0x5a5522['useCallback'](_0x365d55=>{const _0x5124eb=_0x523c49,_0x3979c6=_0x365d55[_0x5124eb(0x2c2)](_0xaa7b6e=>_0xaa7b6e[_0x5124eb(0x26c)]===UploadStatus['COMPLETED']);_0x3979c6&&_0x136811({'type':UploadComponentsActionType[_0x5124eb(0x2b7)]});},[]),_0xca34ff=_0x5a5522[_0x523c49(0x2db)](()=>{const _0x1da620=_0x523c49;_0x136811({'type':UploadComponentsActionType[_0x1da620(0x20f)]});},[]),_0x15b24e=_0x5a5522[_0x523c49(0x2db)](()=>{const _0x5c225c=_0x523c49;_0x136811({'type':UploadComponentsActionType[_0x5c225c(0x220)]});},[]);return _0x5a5522['useEffect'](()=>{_0x44ee31['autoHide']?_0x7ebee1():_0x201ba8();},[_0x7ebee1,_0x201ba8,_0x44ee31[_0x523c49(0x16f)]]),_0x5a5522[_0x523c49(0x190)](()=>({'autoScroll':_0x44ee31[_0x523c49(0x1ff)],'isDialogOpen':_0x44ee31[_0x523c49(0x2cf)],'isIndicatorOpen':_0x44ee31[_0x523c49(0x260)],'closeDialog':_0x41defb,'disableAutoHide':_0xca34ff,'disableAutoFeats':_0x15b24e,'onUploadConcluded':_0x2e29b1,'openDialog':_0x49e062,'openIndicator':_0x1078a7,'toggleDialog':_0x5bdeea}),[_0x44ee31[_0x523c49(0x1ff)],_0x44ee31[_0x523c49(0x2cf)],_0x44ee31[_0x523c49(0x260)],_0x41defb,_0xca34ff,_0x15b24e,_0x2e29b1,_0x49e062,_0x1078a7,_0x5bdeea]);},defaultUploadConfig={'cacheInvalidationInterval':0x7d0,'componentsInteractionTimeout':0x2710,'progressBatchInterval':0x1f4},UploadProvider=({children:_0x5abcaa,upload:_0x1eddd3})=>{const _0x329007=_0x3d1493,{cacheInvalidationInterval:_0x2db9da,componentsInteractionTimeout:_0xd644f3,progressBatchInterval:_0x2dcece}=Object[_0x329007(0x2b3)](Object[_0x329007(0x2b3)]({},defaultUploadConfig),_0x1eddd3),_0xede7f2=useUploadComponents(_0xd644f3),{state:_0x1b59ed,actions:_0x5ee3fa}=useUpload({'cacheInvalidationInterval':_0x2db9da,'onFilesProcessed':_0xede7f2[_0x329007(0x159)],'onUploadConcluded':_0xede7f2['onUploadConcluded'],'progressBatchInterval':_0x2dcece});return _0x5a5522[_0x329007(0x1a9)](UploadUpdaterContext[_0x329007(0xf6)],{'value':_0x5ee3fa},_0x5a5522[_0x329007(0x1a9)](UploadStateContext[_0x329007(0xf6)],{'value':_0x1b59ed},_0x5a5522[_0x329007(0x1a9)](UploadComponentsContext[_0x329007(0xf6)],{'value':_0xede7f2},_0x5abcaa)));};var UserDataActionType;(function(_0x2fcc33){const _0x52157a=_0x3d1493;_0x2fcc33[_0x2fcc33[_0x52157a(0x1ef)]=0x0]='CHANGE_ASSETS_PER_PAGE',_0x2fcc33[_0x2fcc33['CHANGE_SORT_BY']=0x1]=_0x52157a(0x136),_0x2fcc33[_0x2fcc33[_0x52157a(0x1e2)]=0x2]=_0x52157a(0x1e2),_0x2fcc33[_0x2fcc33[_0x52157a(0x21d)]=0x3]=_0x52157a(0x21d),_0x2fcc33[_0x2fcc33[_0x52157a(0x21a)]=0x4]=_0x52157a(0x21a),_0x2fcc33[_0x2fcc33[_0x52157a(0x123)]=0x5]='CHANGE_SIDEBAR_WIDTH',_0x2fcc33[_0x2fcc33[_0x52157a(0x226)]=0x6]='CHANGE_DIALOG_DIMENSIONS',_0x2fcc33[_0x2fcc33[_0x52157a(0x17d)]=0x7]=_0x52157a(0x17d),_0x2fcc33[_0x2fcc33[_0x52157a(0x198)]=0x8]='TOGGLE_SIDEBAR',_0x2fcc33[_0x2fcc33[_0x52157a(0x197)]=0x9]=_0x52157a(0x197),_0x2fcc33[_0x2fcc33['TOGGLE_SORT_ORDER']=0xa]=_0x52157a(0x162);}(UserDataActionType||(UserDataActionType={})));const INIT_DATA={'assetsPerPage':0x32,'allowCover':![],'currentPages':{},'navbarCollapsed':![],'sortBy':_0x3d1493(0x292),'sortOrder':ApiSortingOrder[_0x3d1493(0x1aa)],'thumbSize':0x0},UserDataContext=_0x5a5522[_0x3d1493(0x105)](Object[_0x3d1493(0x2b3)]({'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 _0xc6340f=_0x3d1493;return _0x5a5522[_0xc6340f(0x21c)](UserDataContext);};var FixedViews;(function(_0x59c8fb){const _0x4e0950=_0x3d1493;_0x59c8fb['ADMIN']=_0x4e0950(0x1e3),_0x59c8fb[_0x4e0950(0x1f4)]=_0x4e0950(0x2d4);}(FixedViews||(FixedViews={})));const PRODUCT_PREFIX=_0x3d1493(0x29b);let lsAvailable=!![];const getStorageKey=_0x302106=>_0x302106?PRODUCT_PREFIX+'_'+_0x302106:PRODUCT_PREFIX,loadData=_0x12ab0c=>{const _0x46652d=_0x3d1493;var _0x4f6074,_0x1cc8f2,_0x23027e,_0x35a44d,_0x479dc1,_0x3ed478,_0x3058e9;if(!lsAvailable)return INIT_DATA;try{const _0x53282c=getStorageKey(_0x12ab0c),_0x4770db=localStorage[_0x46652d(0x18c)](_0x53282c),_0x21f294=JSON[_0x46652d(0x11c)](_0x4770db!==null&&_0x4770db!==void 0x0?_0x4770db:'{}');return{'assetsPerPage':(_0x4f6074=_0x21f294['assetsPerPage'])!==null&&_0x4f6074!==void 0x0?_0x4f6074:INIT_DATA['assetsPerPage'],'allowCover':(_0x1cc8f2=_0x21f294['allowCover'])!==null&&_0x1cc8f2!==void 0x0?_0x1cc8f2:INIT_DATA[_0x46652d(0x1f1)],'sortBy':(_0x23027e=_0x21f294[_0x46652d(0x265)])!==null&&_0x23027e!==void 0x0?_0x23027e:INIT_DATA[_0x46652d(0x265)],'sortOrder':(_0x35a44d=_0x21f294[_0x46652d(0x291)])!==null&&_0x35a44d!==void 0x0?_0x35a44d:INIT_DATA[_0x46652d(0x291)],'currentView':_0x21f294['currentView'],'currentPages':INIT_DATA[_0x46652d(0x165)],'dialogDimensions':_0x21f294[_0x46652d(0x2ba)],'thumbSize':(_0x479dc1=_0x21f294[_0x46652d(0x194)])!==null&&_0x479dc1!==void 0x0?_0x479dc1:INIT_DATA['thumbSize'],'navbarCollapsed':(_0x3ed478=_0x21f294['navbarCollapsed'])!==null&&_0x3ed478!==void 0x0?_0x3ed478:INIT_DATA['navbarCollapsed'],'navbarWidth':(_0x3058e9=_0x21f294['navbarWidth'])!==null&&_0x3058e9!==void 0x0?_0x3058e9:INIT_DATA[_0x46652d(0x100)]};}catch(_0x57c992){return lsAvailable=![],console[_0x46652d(0x27d)](_0x57c992),INIT_DATA;}},persistData=({allowCover:_0x1c6675,assetsPerPage:_0x24bc0c,currentView:_0x35bcfe,dialogDimensions:_0x3a8687,navbarCollapsed:_0x5f0fca,navbarWidth:_0x245b9c,sortBy:_0x130cbc,sortOrder:_0x3c6962,thumbSize:_0x5f96a1},_0x4a7740)=>{const _0x115841=_0x3d1493;if(!lsAvailable)return;const _0x4cccd7={'allowCover':_0x1c6675,'assetsPerPage':_0x24bc0c,'currentView':_0x35bcfe,'dialogDimensions':_0x3a8687,'navbarCollapsed':_0x5f0fca,'navbarWidth':_0x245b9c,'sortBy':_0x130cbc,'sortOrder':_0x3c6962,'thumbSize':_0x5f96a1};try{const _0x369635=getStorageKey(_0x4a7740);localStorage[_0x115841(0x1f0)](_0x369635,JSON[_0x115841(0x221)](_0x4cccd7));}catch(_0x2585ee){lsAvailable=![],console['error'](_0x2585ee);}},userReducer=(_0x34eac4,_0x2c99ec)=>{const _0x16e1fa=_0x3d1493;switch(_0x2c99ec[_0x16e1fa(0x231)]){case UserDataActionType[_0x16e1fa(0x1ef)]:{return Object[_0x16e1fa(0x2b3)](Object[_0x16e1fa(0x2b3)]({},_0x34eac4),{'currentPages':{},'assetsPerPage':_0x2c99ec[_0x16e1fa(0x2a4)]});}case UserDataActionType['CHANGE_SIDEBAR_WIDTH']:{return Object['assign'](Object[_0x16e1fa(0x2b3)]({},_0x34eac4),{'navbarWidth':_0x2c99ec[_0x16e1fa(0x2a4)]});}case UserDataActionType[_0x16e1fa(0x136)]:{return Object['assign'](Object[_0x16e1fa(0x2b3)]({},_0x34eac4),{'sortBy':_0x2c99ec['payload'][_0x16e1fa(0x265)]});}case UserDataActionType['TOGGLE_SORT_ORDER']:{return Object[_0x16e1fa(0x2b3)](Object['assign']({},_0x34eac4),{'sortOrder':_0x34eac4['sortOrder']==ApiSortingOrder[_0x16e1fa(0x1aa)]?ApiSortingOrder[_0x16e1fa(0x217)]:ApiSortingOrder[_0x16e1fa(0x1aa)]});}case UserDataActionType[_0x16e1fa(0x1e2)]:{return Object[_0x16e1fa(0x2b3)](Object[_0x16e1fa(0x2b3)]({},_0x34eac4),{'thumbSize':_0x2c99ec['payload']});}case UserDataActionType['CHANGE_VIEW']:{return Object['assign'](Object[_0x16e1fa(0x2b3)]({},_0x34eac4),{'currentView':_0x2c99ec[_0x16e1fa(0x2a4)]});}case UserDataActionType[_0x16e1fa(0x21d)]:{return Object[_0x16e1fa(0x2b3)](Object[_0x16e1fa(0x2b3)]({},_0x34eac4),{'currentPages':Object[_0x16e1fa(0x2b3)](Object[_0x16e1fa(0x2b3)]({},_0x34eac4[_0x16e1fa(0x165)]),{[_0x2c99ec['payload']['id']]:_0x2c99ec[_0x16e1fa(0x2a4)][_0x16e1fa(0x238)]})});}case UserDataActionType[_0x16e1fa(0x226)]:{return Object['assign'](Object[_0x16e1fa(0x2b3)]({},_0x34eac4),{'dialogDimensions':_0x2c99ec[_0x16e1fa(0x2a4)]});}case UserDataActionType[_0x16e1fa(0x17d)]:{const {categories:_0x283d5c,hasRecentAssets:_0x26afc0,isAdmin:_0x5f493c}=_0x2c99ec[_0x16e1fa(0x2a4)],_0x274773=_0x283d5c['map'](_0x5913b0=>_0x5913b0['id']);_0x5f493c&&_0x274773[_0x16e1fa(0x239)](FixedViews[_0x16e1fa(0x24e)]);_0x26afc0&&_0x274773['unshift'](FixedViews[_0x16e1fa(0x1f4)]);if(_0x34eac4['currentView']&&_0x274773[_0x16e1fa(0x12e)](_0x34eac4['currentView']))return _0x34eac4;return Object[_0x16e1fa(0x2b3)](Object[_0x16e1fa(0x2b3)]({},_0x34eac4),{'currentView':_0x274773[0x0]});}case UserDataActionType[_0x16e1fa(0x197)]:{return Object['assign'](Object[_0x16e1fa(0x2b3)]({},_0x34eac4),{'allowCover':!_0x34eac4['allowCover']});}case UserDataActionType[_0x16e1fa(0x198)]:{return Object[_0x16e1fa(0x2b3)](Object[_0x16e1fa(0x2b3)]({},_0x34eac4),{'navbarCollapsed':!_0x34eac4['navbarCollapsed']});}default:return _0x34eac4;}},useUserData=_0x15b283=>{const _0x1ac042=_0x3d1493,{tokenPayload:_0x558ebc}=useAuth(),_0x344034=_0xfe073b[_0x1ac042(0x2a0)](_0x15b283),[_0x695fc,_0x1fa785]=_0xfe073b[_0x1ac042(0x122)](userReducer,loadData(_0x344034[_0x1ac042(0x1c8)])),_0x4cb7ee=_0x558ebc===null||_0x558ebc===void 0x0?void 0x0:_0x558ebc[_0x1ac042(0x277)][_0x1ac042(0x2f5)][_0x1ac042(0x2fe)],_0x4f41e6=_0x4cb7ee==='admin',_0x38c723=_0xfe073b[_0x1ac042(0x2db)](_0x5ef141=>{_0x1fa785({'type':UserDataActionType['CHANGE_ASSETS_PER_PAGE'],'payload':_0x5ef141});},[]),_0x1bc286=_0xfe073b['useCallback'](_0x4071a0=>{const _0x4bd4bb=_0x1ac042;_0x1fa785({'type':UserDataActionType[_0x4bd4bb(0x136)],'payload':{'sortBy':_0x4071a0}});},[]),_0x5cfc45=_0xfe073b['useCallback'](()=>{const _0x13915c=_0x1ac042;_0x1fa785({'type':UserDataActionType[_0x13915c(0x162)]});},[]),_0x1d0845=_0xfe073b[_0x1ac042(0x2db)](_0x2688e0=>{_0x1fa785({'type':UserDataActionType['CHANGE_THUMB_SIZE'],'payload':_0x2688e0});},[]),_0x479ff1=_0xfe073b[_0x1ac042(0x2db)](_0x495be3=>{_0x1fa785({'type':UserDataActionType['CHANGE_VIEW'],'payload':_0x495be3});},[]),_0x1192bf=_0xfe073b[_0x1ac042(0x2db)]((_0x179fab,_0x1e7065)=>{const _0x2f2ad9=_0x1ac042;_0x1fa785({'type':UserDataActionType[_0x2f2ad9(0x21d)],'payload':{'id':_0x179fab,'page':_0x1e7065}});},[]),_0x82c1=_0xfe073b[_0x1ac042(0x2db)]((_0x2e0f64,_0x98790a)=>{_0x1fa785({'type':UserDataActionType['INIT_VIEW'],'payload':{'categories':_0x2e0f64,'hasRecentAssets':_0x98790a,'isAdmin':_0x4f41e6}});},[_0x4f41e6]),_0x526277=_0xfe073b[_0x1ac042(0x2db)](_0x559183=>{_0x1fa785({'type':UserDataActionType['CHANGE_DIALOG_DIMENSIONS'],'payload':_0x559183});},[]),_0x310999=_0xfe073b[_0x1ac042(0x2db)](()=>{const _0x455e7e=_0x1ac042;_0x1fa785({'type':UserDataActionType[_0x455e7e(0x197)]});},[]),_0x4da9e6=_0xfe073b[_0x1ac042(0x2db)](()=>{const _0x302afb=_0x1ac042;_0x1fa785({'type':UserDataActionType[_0x302afb(0x198)]});},[]),_0x4b579b=_0xfe073b[_0x1ac042(0x2db)](_0x254f46=>{const _0x2b4e64=_0x1ac042;_0x1fa785({'type':UserDataActionType[_0x2b4e64(0x123)],'payload':_0x254f46});},[]);return _0xfe073b['useEffect'](()=>{persistData(_0x695fc,_0x344034['current']);},[_0x695fc]),Object[_0x1ac042(0x2b3)](Object[_0x1ac042(0x2b3)]({},_0x695fc),{'isAdmin':_0x4f41e6,'onAssetsPerPageChange':_0x38c723,'onCoverModeToggle':_0x310999,'onDialogDimensionsChange':_0x526277,'onNavbarToggle':_0x4da9e6,'onNavbarWidthChange':_0x4b579b,'onSortByChange':_0x1bc286,'onSortOrderToggle':_0x5cfc45,'onThumbSizeChange':_0x1d0845,'onViewChange':_0x479ff1,'onViewInit':_0x82c1,'onViewPageChange':_0x1192bf});},UserProvider=({children:_0x3227d7,id:_0x437185})=>{const _0x3cbcfa=_0x3d1493,_0x203869=useUserData(_0x437185);return _0x5a5522[_0x3cbcfa(0x1a9)](UserDataContext['Provider'],{'value':_0x203869},_0x3227d7);},NotificationsContext=_0x5a5522[_0x3d1493(0x105)]({'bottomOffsetEl':null,'dismissNotification':noOp,'notifications':[],'pushNotification':noOp,'setBottomOffsetEl':noOp}),useNotifications=()=>{return _0x5a5522['useContext'](NotificationsContext);},MAX_NOTIFICATIONS=0x3,TIMEOUT_MULTIPLIER=0x64,TIMEOUT_AUTO_HIDE=0x1f4,NotificationsProvider=({children:_0x33422c})=>{const _0x740fa0=_0x3d1493,[_0x4e9099,_0x2dd77f]=_0x5a5522[_0x740fa0(0x1e4)]([]),[_0x2a1be0,_0xe8ade8]=_0x5a5522[_0x740fa0(0x1e4)](null),_0x28618e=_0x5a5522['useRef']({}),_0x577fdd=_0x497ad4=>{_0x2dd77f(_0xa86273=>_0xa86273['filter'](_0x386b97=>_0x386b97['id']!==_0x497ad4));},_0x21cc04=_0x5a5522['useCallback']((_0x284618,_0x3662bb)=>{const _0x8cab0a=_0x740fa0;_0x28618e[_0x8cab0a(0x1c8)][_0x284618]=setTimeout(()=>{const _0x5ec8f8=_0x8cab0a;_0x577fdd(_0x284618),delete _0x28618e[_0x5ec8f8(0x1c8)][_0x284618];},_0x3662bb);},[]),_0x4360ae=_0x54e881=>{const _0x22587d=_0x740fa0,_0x3829d7=nanoid();_0x2dd77f(_0x83d63e=>[..._0x83d63e,Object[_0x22587d(0x2b3)](Object['assign']({},_0x54e881),{'id':_0x3829d7})]);if(_0x54e881[_0x22587d(0x231)]===_0x22587d(0x27d))return;_0x21cc04(_0x3829d7,_0x54e881[_0x22587d(0x1db)][_0x22587d(0x24a)]*TIMEOUT_MULTIPLIER);};return _0x5a5522[_0x740fa0(0x124)](()=>{const _0x3a83d8=_0x740fa0;if(_0x4e9099[_0x3a83d8(0x24a)]>MAX_NOTIFICATIONS){const {id:_0x975b5a}=_0x4e9099[0x0];_0x21cc04(_0x975b5a,TIMEOUT_AUTO_HIDE);}},[_0x4e9099,_0x21cc04]),_0x5a5522[_0x740fa0(0x124)](()=>{return()=>{const _0x26abee=_0x2ffc;Object['values'](_0x28618e[_0x26abee(0x1c8)])[_0x26abee(0x25f)](_0x5a8143=>{clearTimeout(_0x5a8143);});};},[]),_0x5a5522['createElement'](NotificationsContext[_0x740fa0(0xf6)],{'value':{'bottomOffsetEl':_0x2a1be0,'dismissNotification':_0x577fdd,'notifications':_0x4e9099,'pushNotification':_0x4360ae,'setBottomOffsetEl':_0xe8ade8}},_0x33422c);},UIProviderDialogMode=_0xd53c34=>{const _0x8630d7=_0x3d1493;var {children:_0x1ecc2e,dialog:_0x4a8698,dialogDimensions:_0x21e66a,onDialogDimensionsChange:_0x4a173e}=_0xd53c34,_0x4cbbdb=__rest(_0xd53c34,['children',_0x8630d7(0x254),'dialogDimensions',_0x8630d7(0x175)]);const {t:_0x1dbb73}=useTranslation();return _0x5a5522['createElement'](_0x2ec76f,Object[_0x8630d7(0x2b3)]({'dialog':Object[_0x8630d7(0x2b3)](Object[_0x8630d7(0x2b3)]({'closeLabel':_0x1dbb73(_0x8630d7(0x276)),'height':'80%','minHeight':0x1f4,'minWidth':0x2bc,'onDragEnd':_0x4a173e,'onResizeEnd':_0x4a173e,'resizeSELabel':_0x1dbb73(_0x8630d7(0x2da)),'resizeSWLabel':_0x1dbb73(_0x8630d7(0x2da)),'width':_0x8630d7(0x1ad)},typeof _0x4a8698===_0x8630d7(0x2aa)?{'open':!![]}:_0x4a8698),_0x21e66a)},_0x4cbbdb),_0x1ecc2e);},UIProviderContainerMode=_0x8443e9=>{const _0x300191=_0x3d1493;return _0x5a5522[_0x300191(0x1a9)](_0x2ec76f,Object['assign']({},_0x8443e9));},UIProvider=({children:_0x3e1883,dialog:_0x5f0826,theme:_0x19deab})=>{const _0x1f6084=_0x3d1493,{dialogDimensions:_0x1a08cc,onDialogDimensionsChange:_0xcff5e4,onNavbarToggle:_0x30d99f,onNavbarWidthChange:_0x23a687,navbarCollapsed:_0x13ac8a,navbarWidth:_0x9c852a}=useUserData$1(),_0x4a76c9={'children':_0x3e1883,'theme':_0x19deab,'onNavbarCollapse':_0x30d99f,'onNavbarWidthChange':_0x23a687,'navbarCollapsed':_0x13ac8a,'navbarWidth':_0x9c852a};if(_0x5f0826)return _0x5a5522[_0x1f6084(0x1a9)](UIProviderDialogMode,Object[_0x1f6084(0x2b3)]({'dialog':_0x5f0826,'dialogDimensions':_0x1a08cc,'onDialogDimensionsChange':_0xcff5e4},_0x4a76c9));return _0x5a5522[_0x1f6084(0x1a9)](UIProviderContainerMode,Object['assign']({},_0x4a76c9));},MIN_LOADER_SHOWING_TIME=0xfa,DELAY_BEFORE_SHOWING_LOADER=0xc8,useLoader=(_0x8d850c,_0x3f6a58)=>{const _0x289af9=useDeferredUnmount(_0x8d850c,MIN_LOADER_SHOWING_TIME),_0x9bf46b=useDelay(_0x3f6a58,DELAY_BEFORE_SHOWING_LOADER),_0x3748c1=useDeferredUnmount(_0x9bf46b,MIN_LOADER_SHOWING_TIME);return{'showPrimaryLoader':_0x289af9,'showSecondaryLoader':_0x3748c1};},GalleryLoader=({assetsPerPage:_0x772bc4,estimatedTotalAssetsCount:_0x53fe35,pageNumber:_0x47c998,fallbackContent:_0x5783be,thumbSize:_0x2d5441})=>{const _0x324b14=_0x3d1493,_0x4bf621=Math[_0x324b14(0x262)](_0x53fe35/_0x772bc4);let _0x29b0ed=0x0;if(_0x4bf621===0x1&&_0x47c998===0x1)_0x29b0ed=_0x53fe35;else{if(_0x47c998===_0x4bf621){const _0x129441=_0x772bc4*(_0x47c998-0x1);_0x29b0ed=_0x53fe35%_0x129441;}else _0x47c998<_0x4bf621&&(_0x29b0ed=_0x772bc4);}if(_0x29b0ed===0x0)return _0x5a5522[_0x324b14(0x1a9)](_0x5a5522[_0x324b14(0x2fa)],null,_0x5783be,_0x5a5522[_0x324b14(0x1a9)](_0x324b14(0xf0),{'data-testid':_0x324b14(0x245)}));return _0x5a5522[_0x324b14(0x1a9)](Gallery,{'zoom':_0x2d5441},Array[_0x324b14(0x2c4)]({'length':_0x29b0ed})[_0x324b14(0x1a7)]((_0x5173ec,_0x2bb422)=>{const _0x1976cd=_0x324b14;return _0x5a5522[_0x1976cd(0x1a9)](GalleryItem,{'active':![],'name':'','key':_0x2bb422,'loading':!![]});}));},THUMBNAIL_BREAKPOINTS=[0x8c,0x118,0x230,0x460],DOC_ICONS={'xls':'Excel','xlsx':_0x3d1493(0x137),'psd':_0x3d1493(0x144),'avi':_0x3d1493(0x1b3),'mp4':'Movie','mov':'Movie','webm':_0x3d1493(0x1b3),'mp3':_0x3d1493(0x2cb),'aac':_0x3d1493(0x2cb),'flac':_0x3d1493(0x2cb),'ogg':_0x3d1493(0x2cb),'wav':_0x3d1493(0x2cb),'weba':_0x3d1493(0x2cb),'pdf':'Pdf','ppt':_0x3d1493(0x1b2),'pptx':'Ppt','txt':'Txt','doc':'Word','docx':_0x3d1493(0x26b),'7z':_0x3d1493(0x283),'zip':_0x3d1493(0x283),'rar':_0x3d1493(0x283)},MAX_COVER_RATIO=0x4,defaultSrcSet={'optional':[],'default':[]},useSrcSet=(_0x2dd652,{id:_0x53a26b,originalHeight:_0x32fae3,originalWidth:_0x494c97})=>{const _0x2a6817=_0x3d1493,{api:_0x44145d}=useApi();if(!_0x32fae3||!_0x494c97)return{'srcSet':defaultSrcSet};const _0x230738=(_0xcf0d46,_0x3ddb3e)=>({'defaultSrc':_0x44145d['assets'][_0x2a6817(0x20d)](_0x53a26b,_0xcf0d46,_0x3ddb3e),'optionalSrc':_0x44145d[_0x2a6817(0x29e)][_0x2a6817(0x20d)](_0x53a26b,_0xcf0d46,_0x3ddb3e,'webp')}),_0x41be4e=_0x494c97/_0x32fae3,_0x30e8cd=_0x2dd652['map'](_0x51e211=>{const _0x1a390b=_0x2a6817;if(_0x41be4e>=0x1/MAX_COVER_RATIO&&_0x41be4e<=MAX_COVER_RATIO){if(_0x41be4e>=0x1){const _0x2c2866=_0x32fae3/_0x51e211;if(_0x2c2866>=0x1)return Object[_0x1a390b(0x2b3)]({'breakpoint':_0x51e211,'cover':!![]},_0x230738(Math[_0x1a390b(0x119)](_0x494c97/_0x2c2866),_0x51e211));}else{const _0xca6aa7=_0x494c97/_0x51e211;if(_0xca6aa7>=0x1)return Object[_0x1a390b(0x2b3)]({'breakpoint':_0x51e211,'cover':!![]},_0x230738(_0x51e211,Math[_0x1a390b(0x119)](_0x32fae3/_0xca6aa7)));}}return Object['assign']({'breakpoint':_0x51e211,'cover':![]},_0x230738(_0x51e211,_0x51e211));}),_0x30a5cc=_0x30e8cd[_0x2a6817(0x2c5)]((_0x1d4bde,{breakpoint:_0x59a2f9,defaultSrc:_0x3ca4e2,optionalSrc:_0xccac6f})=>({'optional':[..._0x1d4bde[_0x2a6817(0x2af)],_0xccac6f+'\x20'+_0x59a2f9+'w'],'default':[..._0x1d4bde[_0x2a6817(0x179)],_0x3ca4e2+'\x20'+_0x59a2f9+'w']}),{'optional':[],'default':[]}),_0x15e28f=_0x30e8cd[_0x2a6817(0x2c5)]((_0x17d081,{breakpoint:_0x1cae0b,cover:_0x5b1eb2})=>Object[_0x2a6817(0x2b3)](Object[_0x2a6817(0x2b3)]({},_0x17d081),{[_0x1cae0b]:_0x5b1eb2}),{});return{'srcSet':_0x30a5cc,'cover':_0x15e28f};},AssetPreview=({allowCover:_0x2b29a3,blurHash:_0x13a991,containerRef:_0x4dec3f,height:_0x3bcc1b,id:_0x1b126b,name:_0x1e6f29,description:_0x330e8d,width:_0x2105cb,onError:_0x78480c})=>{const _0x2001f4=_0x3d1493,{cover:_0x597c66,srcSet:_0x435290}=useSrcSet(THUMBNAIL_BREAKPOINTS,{'id':_0x1b126b,'originalHeight':_0x3bcc1b,'originalWidth':_0x2105cb});return _0x5a5522[_0x2001f4(0x1a9)](ResponsiveImage,{'alt':_0x330e8d||_0x1e6f29,'blurHash':_0x13a991,'breakpoints':THUMBNAIL_BREAKPOINTS,'cover':_0x2b29a3?_0x597c66:undefined,'container':_0x4dec3f,'height':_0x3bcc1b,'srcSet':_0x435290,'optionalSrcMimeType':'image/webp','width':_0x2105cb,'onError':_0x78480c});},Asset=({allowCover:_0x5cb0fc,blurHash:_0x4deff7,containerRef:_0x242339,extension:_0x3b98e8,height:_0x386414,id:_0x3dfc44,name:_0x15578f,description:_0x38fdab,width:_0x639aea})=>{const _0x14d6bd=_0x3d1493,[_0x326485,_0x549176]=_0x5a5522['useState'](canAssetBePreviewed(_0x3b98e8));if(_0x326485)return _0x5a5522[_0x14d6bd(0x1a9)](AssetPreview,{'allowCover':_0x5cb0fc,'blurHash':_0x4deff7,'containerRef':_0x242339,'height':_0x386414,'id':_0x3dfc44,'name':_0x15578f,'description':_0x38fdab,'width':_0x639aea,'onError':()=>_0x549176(![])});const _0x204dce=DOC_ICONS[_0x3b98e8];if(_0x204dce)return _0x5a5522[_0x14d6bd(0x1a9)](DocIcon,{'name':_0x204dce});return _0x5a5522[_0x14d6bd(0x1a9)](DocIcon,{'name':_0x14d6bd(0x243)});},AssetGalleryItem=({active:_0x18c76e,allowCover:_0x1e597f,blurHash:_0x4b7e70,containerRef:_0x2963c4,extension:_0x1b9a0f,height:_0x4b47b9,id:_0xf4d889,name:_0x125d8f,description:_0x4ec772,onKeyDown:_0x548d23,onMouseDown:_0x4119bf,setAssetRef:_0x2f4ad0,width:_0x5d8fd8})=>{const _0x139d75=_0x3d1493,_0x55559d={'active':_0x18c76e,'name':_0x125d8f,'onKeyDown':_0x548d23(_0xf4d889),'onMouseDown':_0x4119bf(_0xf4d889),'ref':_0x2f4ad0(_0xf4d889)};return _0x5a5522[_0x139d75(0x1a9)](GalleryItem,Object['assign']({},_0x55559d),_0x5a5522[_0x139d75(0x1a9)](GalleryFigure,{'caption':_0x1b9a0f},_0x5a5522['createElement'](Asset,{'allowCover':_0x1e597f,'blurHash':_0x4b7e70,'containerRef':_0x2963c4,'extension':_0x1b9a0f,'height':_0x4b47b9,'id':_0xf4d889,'name':_0x125d8f,'description':_0x4ec772,'width':_0x5d8fd8})));};var AssetGalleryItem$1=_0x5a5522[_0x3d1493(0x1c7)](AssetGalleryItem);const AssetsContent=({allowCover:_0xf1cc46,assetsPerPage:_0x52c878,assets:_0x21dbff,containerRef:_0xcd0c1,estimatedTotalAssetsCount:_0x25b695,fallbackContent:_0x322cc4,isLoading:_0x15f912,onAssetKeyDown:_0x34d33e,onAssetMouseDown:_0x4e6c28,onSelectionAreaChange:_0x5bfe54,pageNumber:_0x28b100,selectedAssets:_0x44baab,setAssetRef:_0x4f0233,thumbSize:_0x1f83ee})=>{const _0x340a9e=_0x3d1493;if(_0x15f912)return _0x5a5522[_0x340a9e(0x1a9)](GalleryLoader,{'assetsPerPage':_0x52c878,'estimatedTotalAssetsCount':_0x25b695,'fallbackContent':_0x322cc4,'pageNumber':_0x28b100,'thumbSize':_0x1f83ee});if(_0x21dbff[_0x340a9e(0x24a)]===0x0&&!_0x15f912)return _0x5a5522['createElement'](_0x5a5522[_0x340a9e(0x2fa)],null,_0x322cc4);return _0x5a5522['createElement'](Gallery,{'zoom':_0x1f83ee},_0x21dbff[_0x340a9e(0x1a7)](({name:_0x1fff4f,id:_0x1a205a,extension:_0x28d0d1,metadata:_0x40314d})=>_0x5a5522[_0x340a9e(0x1a9)](AssetGalleryItem$1,{'active':!!_0x44baab[_0x1a205a],'allowCover':_0xf1cc46,'blurHash':_0x40314d[_0x340a9e(0x170)],'containerRef':_0xcd0c1,'extension':_0x28d0d1,'height':_0x40314d[_0x340a9e(0x268)],'id':_0x1a205a,'key':_0x1a205a,'name':_0x1fff4f,'description':_0x40314d[_0x340a9e(0x1c9)],'onKeyDown':_0x34d33e,'onMouseDown':_0x4e6c28,'setAssetRef':_0x4f0233,'width':_0x40314d[_0x340a9e(0x160)]})),_0x5a5522['createElement'](SelectionArea,{'container':_0xcd0c1,'onSelectionChange':_0x5bfe54,'ignoredSelector':_0x340a9e(0x27a)}));},parseAssetMetadata=_0x59cd58=>{const _0x5d3242=_0x3d1493;var _0x4edd82,_0x4ce60f,_0x825ca3,_0x51d7a5,_0x31ebf3;return{'blurHash':(_0x4edd82=_0x59cd58===null||_0x59cd58===void 0x0?void 0x0:_0x59cd58[_0x5d3242(0x170)])!==null&&_0x4edd82!==void 0x0?_0x4edd82:undefined,'description':(_0x4ce60f=_0x59cd58===null||_0x59cd58===void 0x0?void 0x0:_0x59cd58[_0x5d3242(0x1c9)])!==null&&_0x4ce60f!==void 0x0?_0x4ce60f:'','width':(_0x825ca3=_0x59cd58===null||_0x59cd58===void 0x0?void 0x0:_0x59cd58[_0x5d3242(0x160)])!==null&&_0x825ca3!==void 0x0?_0x825ca3:undefined,'height':(_0x51d7a5=_0x59cd58===null||_0x59cd58===void 0x0?void 0x0:_0x59cd58[_0x5d3242(0x268)])!==null&&_0x51d7a5!==void 0x0?_0x51d7a5:undefined,'customAttributes':(_0x31ebf3=_0x59cd58===null||_0x59cd58===void 0x0?void 0x0:_0x59cd58[_0x5d3242(0x1d9)])!==null&&_0x31ebf3!==void 0x0?_0x31ebf3:undefined};},parseAsset=_0x4f6372=>{const _0x2dfb53=_0x3d1493;var _0x4f7932,_0x3209c1,_0x373d61,_0x4d5dfb,_0xf46689,_0x3396ac,_0x4cfe8e;return{'id':(_0x4f7932=_0x4f6372===null||_0x4f6372===void 0x0?void 0x0:_0x4f6372['id'])!==null&&_0x4f7932!==void 0x0?_0x4f7932:'','name':(_0x3209c1=_0x4f6372===null||_0x4f6372===void 0x0?void 0x0:_0x4f6372[_0x2dfb53(0x16e)])!==null&&_0x3209c1!==void 0x0?_0x3209c1:'','extension':(_0x373d61=_0x4f6372===null||_0x4f6372===void 0x0?void 0x0:_0x4f6372[_0x2dfb53(0x1c3)])!==null&&_0x373d61!==void 0x0?_0x373d61:'','size':(_0x4d5dfb=_0x4f6372===null||_0x4f6372===void 0x0?void 0x0:_0x4f6372[_0x2dfb53(0xfb)])!==null&&_0x4d5dfb!==void 0x0?_0x4d5dfb:undefined,'uploadedAt':(_0xf46689=_0x4f6372===null||_0x4f6372===void 0x0?void 0x0:_0x4f6372[_0x2dfb53(0x292)])!==null&&_0xf46689!==void 0x0?_0xf46689:undefined,'metadata':parseAssetMetadata((_0x3396ac=_0x4f6372===null||_0x4f6372===void 0x0?void 0x0:_0x4f6372[_0x2dfb53(0x2c0)])!==null&&_0x3396ac!==void 0x0?_0x3396ac:undefined),'categoryId':(_0x4cfe8e=_0x4f6372===null||_0x4f6372===void 0x0?void 0x0:_0x4f6372[_0x2dfb53(0xf4)])!==null&&_0x4cfe8e!==void 0x0?_0x4cfe8e:''};},parseAssets=_0x3f5376=>{return(_0x3f5376!==null&&_0x3f5376!==void 0x0?_0x3f5376:[])['map'](parseAsset);},parseCategory=_0x1f649e=>{const _0x4f7f9e=_0x3d1493;var _0x349cf3,_0x5de8b8,_0x5ba71c,_0x321577;return{'id':(_0x349cf3=_0x1f649e===null||_0x1f649e===void 0x0?void 0x0:_0x1f649e['id'])!==null&&_0x349cf3!==void 0x0?_0x349cf3:'','assetsCount':(_0x5de8b8=_0x1f649e===null||_0x1f649e===void 0x0?void 0x0:_0x1f649e[_0x4f7f9e(0x1f9)])!==null&&_0x5de8b8!==void 0x0?_0x5de8b8:0x0,'name':(_0x5ba71c=_0x1f649e===null||_0x1f649e===void 0x0?void 0x0:_0x1f649e[_0x4f7f9e(0x16e)])!==null&&_0x5ba71c!==void 0x0?_0x5ba71c:'','extensions':(_0x321577=_0x1f649e===null||_0x1f649e===void 0x0?void 0x0:_0x1f649e[_0x4f7f9e(0x29a)])!==null&&_0x321577!==void 0x0?_0x321577:[]};},parseAdminCategories=(_0xd9325a,_0x29dadb=[])=>{const _0x31bed9=_0x3d1493;var _0x440c36;const _0x12cb56=(_0x440c36=_0xd9325a===null||_0xd9325a===void 0x0?void 0x0:_0xd9325a[_0x31bed9(0x26a)])!==null&&_0x440c36!==void 0x0?_0x440c36:[],_0x4bda5c=_0x29dadb[_0x31bed9(0x185)](_0x480fbf=>{const _0x1ec2a4=_0x31bed9;var _0x517c0a;return!!((_0x517c0a=_0x480fbf===null||_0x480fbf===void 0x0?void 0x0:_0x480fbf[_0x1ec2a4(0x193)])===null||_0x517c0a===void 0x0?void 0x0:_0x517c0a['newlyAdded']);}),_0xf9cab6=_0x12cb56['map'](_0x32cc2c=>{const _0x53d607=_0x31bed9;var _0x4cdf0f;const _0x21d9ad=_0x29dadb[_0x53d607(0x273)](_0x30d329=>_0x30d329['id']===_0x32cc2c['id']),_0x46ecf2=Object[_0x53d607(0x2b3)](Object[_0x53d607(0x2b3)]({},parseCategory(_0x32cc2c)),{'extensionsInUse':(_0x4cdf0f=_0x32cc2c[_0x53d607(0x135)])!==null&&_0x4cdf0f!==void 0x0?_0x4cdf0f:[]});if(_0x32cc2c['id']&&_0x21d9ad)return Object['assign'](Object[_0x53d607(0x2b3)]({},_0x46ecf2),{'stage':_0x21d9ad[_0x53d607(0x193)]});return _0x46ecf2;});return _0x4bda5c[_0x31bed9(0x12a)](_0xf9cab6);},parseCategories=_0x30bdcd=>{return(_0x30bdcd!==null&&_0x30bdcd!==void 0x0?_0x30bdcd:[])['map'](parseCategory);},useApiErrors=()=>{const _0x3b3989=_0x3d1493,{pushNotification:_0x34a62a}=useNotifications(),{t:_0x382776}=useTranslation(),_0x18df69=_0x1fb214=>_0x3b3989(0x2d9)+_0x1fb214,_0x2f96ea=(_0x36a4e7,_0x57ab37)=>{const _0x1d0d10=_0x3b3989,_0xbf10bd=new ApiErrorHandler();_0xbf10bd[_0x1d0d10(0x1d1)](new ValidationErrorHandler(_0x24fb3a=>{const _0x1fdea7=_0x1d0d10;var _0x2662d0,_0x35aa3b,_0x271deb;const _0x29357e=((_0x35aa3b=(_0x2662d0=_0x24fb3a[_0x1fdea7(0x209)])===null||_0x2662d0===void 0x0?void 0x0:_0x2662d0['data'])===null||_0x35aa3b===void 0x0?void 0x0:_0x35aa3b[_0x1fdea7(0x2b2)])[0x0];_0x34a62a({'type':_0x1fdea7(0x27d),'title':_0x382776(_0x1fdea7(0x1a3)),'details':[_0x29357e[_0x1fdea7(0x255)]('.')?_0x29357e:_0x29357e+'.',((_0x271deb=_0x24fb3a[_0x1fdea7(0x209)])===null||_0x271deb===void 0x0?void 0x0:_0x271deb['traceId'])?_0x18df69(_0x24fb3a[_0x1fdea7(0x209)][_0x1fdea7(0x13d)]):'']});}),new UnauthorizedErrorHandler(_0x28562d=>{const _0x73fe62=_0x1d0d10;var _0x54bae0;_0x34a62a({'type':_0x73fe62(0x27d),'title':_0x382776(_0x73fe62(0x236)),'details':((_0x54bae0=_0x28562d[_0x73fe62(0x209)])===null||_0x54bae0===void 0x0?void 0x0:_0x54bae0[_0x73fe62(0x13d)])?_0x18df69(_0x28562d[_0x73fe62(0x209)][_0x73fe62(0x13d)]):''});}),new ServerErrorHandler(_0x5f126b=>{const _0x5ab7d5=_0x1d0d10;var _0x144a54;_0x34a62a({'type':'error','title':_0x382776(_0x5ab7d5(0xfc)),'details':((_0x144a54=_0x5f126b[_0x5ab7d5(0x209)])===null||_0x144a54===void 0x0?void 0x0:_0x144a54[_0x5ab7d5(0x13d)])?_0x18df69(_0x5f126b[_0x5ab7d5(0x209)][_0x5ab7d5(0x13d)]):''});}),new MissingResourceErrorHandler(_0x561b5e=>{const _0x53020e=_0x1d0d10;var _0x3f3f4f;_0x34a62a({'type':_0x53020e(0x27d),'title':_0x382776('Resource\x20not\x20found.'),'details':((_0x3f3f4f=_0x561b5e[_0x53020e(0x209)])===null||_0x3f3f4f===void 0x0?void 0x0:_0x3f3f4f[_0x53020e(0x13d)])?_0x18df69(_0x561b5e[_0x53020e(0x209)]['traceId']):''});}),new UnknownErrorHandler(_0x21db8b=>{const _0x1fadb4=_0x1d0d10;var _0x48ec05;_0x34a62a({'type':_0x1fadb4(0x27d),'title':_0x382776('Unknown\x20error.'),'details':((_0x48ec05=_0x21db8b['response'])===null||_0x48ec05===void 0x0?void 0x0:_0x48ec05[_0x1fadb4(0x13d)])?_0x18df69(_0x21db8b[_0x1fadb4(0x209)]['traceId']):''});})),_0x57ab37&&(Array['isArray'](_0x57ab37)?_0xbf10bd[_0x1d0d10(0x1d1)](..._0x57ab37):_0xbf10bd[_0x1d0d10(0x1d1)](_0x57ab37)),_0xbf10bd['handle'](_0x36a4e7);};return{'handleApiError':_0x2f96ea};},useAssetErrors=()=>{const {pushNotification:_0x5d4d39}=useNotifications(),{t:_0x28cd4e}=useTranslation(),_0x202a96=()=>{const _0x1ffbc1=_0x2ffc;_0x5d4d39({'type':_0x1ffbc1(0x27d),'title':_0x28cd4e(_0x1ffbc1(0x148))});};return{'pushMissingAssetErrorNotification':_0x202a96};},useCategoryErrors=()=>{const {pushNotification:_0x2899bb}=useNotifications(),{t:_0x2b8178}=useTranslation(),_0x1d5109=()=>{const _0x2eea35=_0x2ffc;_0x2899bb({'type':_0x2eea35(0x27d),'title':_0x2b8178(_0x2eea35(0x2d5))});};return{'pushMissingCategoryErrorNotification':_0x1d5109};},useQuery=(_0x27b7a9,_0x38be44,_0x5046ca)=>{const _0x574077=_0x3d1493,{handleApiError:_0x23fd89}=useApiErrors();return _0x388aa7(_0x27b7a9,_0x38be44,Object[_0x574077(0x2b3)](Object['assign']({},_0x5046ca),{'onError':_0xfeae95=>{const _0x445523=_0x574077;var _0x18418b;const _0x14b1d1=(_0x18418b=_0x5046ca===null||_0x5046ca===void 0x0?void 0x0:_0x5046ca[_0x445523(0x23e)])===null||_0x18418b===void 0x0?void 0x0:_0x18418b[_0x445523(0x249)](_0x5046ca,_0xfeae95);_0x23fd89(_0xfeae95,_0x14b1d1);}}));},useGetCategoryAssets=(_0x5a100f,_0x1e74bf=!![])=>{const _0x863571=_0x3d1493,{api:_0x219875}=useApi(),{categoryId:_0x512a1a,limit:_0xf10e31,offset:_0x13ecb1,sort_by:_0x40c8c1,order:_0x7f0284}=_0x5a100f,{pushMissingCategoryErrorNotification:_0x2ad0d2}=useCategoryErrors(),_0x276eb9=useQueryClient();return useQuery([_0x863571(0x132),_0x512a1a,_0xf10e31,_0x13ecb1,_0x40c8c1,_0x7f0284],async()=>{const _0x316070=_0x863571;var _0x48e4f5;const _0xd87613=await _0x219875[_0x316070(0x29e)][_0x316070(0x2d7)](_0x5a100f);return{'totalCount':_0xd87613===null||_0xd87613===void 0x0?void 0x0:_0xd87613[_0x316070(0x180)],'items':parseAssets((_0x48e4f5=_0xd87613===null||_0xd87613===void 0x0?void 0x0:_0xd87613['items'])!==null&&_0x48e4f5!==void 0x0?_0x48e4f5:[])};},{'keepPreviousData':!![],'enabled':_0x1e74bf,'retry':![],'onError':()=>new MissingResourceErrorHandler(()=>{const _0x3cf131=_0x863571;_0x276eb9[_0x3cf131(0x279)](_0x3cf131(0x247)),_0x276eb9[_0x3cf131(0x279)](_0x3cf131(0x2d4)),_0x2ad0d2();})});},useMutation=(_0x58a35a,_0x519623)=>{const _0x4ab579=_0x3d1493,{handleApiError:_0x270e68}=useApiErrors(),_0x344ee6=_0x35055a(_0x58a35a,Object[_0x4ab579(0x2b3)](Object[_0x4ab579(0x2b3)]({},_0x519623),{'onError':(_0x57e643,_0x5aac2c,_0xcf6f7d)=>{const _0x37dc1f=_0x4ab579;var _0x4696c5;const _0x5ed701=(_0x4696c5=_0x519623===null||_0x519623===void 0x0?void 0x0:_0x519623[_0x37dc1f(0x23e)])===null||_0x4696c5===void 0x0?void 0x0:_0x4696c5[_0x37dc1f(0x249)](_0x519623,_0x57e643,_0x5aac2c,_0xcf6f7d);_0x270e68(_0x57e643,_0x5ed701);}})),{mutateAsync:_0x9323b2}=_0x344ee6,_0x5dc042=__rest(_0x344ee6,[_0x4ab579(0x2be)]),_0xa9e7e6=async(_0x4f9167,_0x4d412b)=>{try{const _0x21a4a5=await _0x9323b2(_0x4f9167,_0x4d412b);return{'data':_0x21a4a5};}catch(_0x516c46){return{'data':undefined,'isError':!![]};}};return Object[_0x4ab579(0x2b3)](Object[_0x4ab579(0x2b3)]({},_0x5dc042),{'mutateAsync':_0xa9e7e6});},useDeleteAssets=()=>{const {api:_0x2d1b0d}=useApi(),_0x3bb405=useQueryClient(),{pushNotification:_0x5095c6}=useNotifications(),{t:_0x12b262}=useTranslation();return useMutation(_0x5cb382=>{const _0x36473f=_0x2ffc,_0x2efc41=Object[_0x36473f(0x216)](_0x5cb382);return _0x2d1b0d[_0x36473f(0x29e)][_0x36473f(0x146)](_0x2efc41);},{'onSuccess':(_0x419cab,_0x4981d6)=>{const _0x580ce1=_0x2ffc,_0x28548d=new Set(),_0x5b1218=Object[_0x580ce1(0x216)](_0x4981d6)[_0x580ce1(0x24a)];for(const {categoryId:_0x274113}of Object['values'](_0x4981d6)){if(_0x28548d[_0x580ce1(0x278)](_0x274113))continue;_0x28548d[_0x580ce1(0x17b)](_0x274113),_0x3bb405[_0x580ce1(0x279)](['category',_0x274113]),_0x3bb405[_0x580ce1(0x279)](_0x580ce1(0x2d4));}_0x5095c6({'type':_0x580ce1(0x14d),'title':_0x12b262('%d\x20file\x20deleted\x20successfully.',{'plural':_0x5b1218,'values':[_0x5b1218]})});}});},useGetRecentAssets=(_0x69f9d,_0x4a790a=!![])=>{const _0x7cb780=_0x3d1493,{api:_0x1f98a6}=useApi(),{limit:_0x2cce28,offset:_0x949ec6}=_0x69f9d;return useQuery([_0x7cb780(0x2d4),_0x2cce28,_0x949ec6,ApiSortingOrder['DESCENDING']],async()=>{const _0x68252=_0x7cb780;var _0x13f7eb;const _0x1e26a0=await _0x1f98a6['assets'][_0x68252(0x2b9)](_0x69f9d);return{'totalCount':_0x1e26a0===null||_0x1e26a0===void 0x0?void 0x0:_0x1e26a0[_0x68252(0x180)],'items':parseAssets((_0x13f7eb=_0x1e26a0===null||_0x1e26a0===void 0x0?void 0x0:_0x1e26a0['items'])!==null&&_0x13f7eb!==void 0x0?_0x13f7eb:[])};},{'keepPreviousData':!![],'enabled':_0x4a790a});},useUpdateAsset=()=>{const _0x52bc75=_0x3d1493,{api:_0x4143bb}=useApi(),_0x4fefbd=useQueryClient(),{pushMissingAssetErrorNotification:_0x7fab7b}=useAssetErrors(),{pushNotification:_0x103bdc}=useNotifications(),{t:_0x469515}=useTranslation();return useMutation(({assetId:_0x59e608,payload:_0x2f64d1})=>_0x4143bb[_0x52bc75(0x29e)][_0x52bc75(0x169)](_0x59e608,_0x2f64d1),{'onSuccess':(_0x81ab06,{categoryId:_0x5e5b01})=>{const _0x3daee6=_0x52bc75;_0x4fefbd[_0x3daee6(0x279)]([_0x3daee6(0x132),_0x5e5b01]),_0x4fefbd['invalidateQueries']('recent'),_0x103bdc({'type':_0x3daee6(0x14d),'title':_0x469515(_0x3daee6(0x24f))});},'onError':(_0x3f5259,_0x1c3d21)=>new MissingResourceErrorHandler(()=>{const _0x162a7f=_0x52bc75;_0x4fefbd[_0x162a7f(0x279)]([_0x162a7f(0x132),_0x1c3d21[_0x162a7f(0xf4)]]),_0x4fefbd[_0x162a7f(0x279)](_0x162a7f(0x2d4)),_0x7fab7b();})});},useUpdateAssetLastUse=()=>{const _0x6bc536=_0x3d1493,{api:_0x15fd6f}=useApi(),_0x294f1f=useQueryClient(),{pushMissingAssetErrorNotification:_0x948a49}=useAssetErrors();return useMutation(_0x571ae7=>_0x15fd6f[_0x6bc536(0x29e)]['updateAssetLastUse'](_0x571ae7),{'onSuccess':()=>{const _0x4781f1=_0x6bc536;_0x294f1f[_0x4781f1(0x279)](_0x4781f1(0x2d4));},'onError':()=>new MissingResourceErrorHandler(()=>{const _0xc54a84=_0x6bc536;_0x294f1f[_0xc54a84(0x279)](_0xc54a84(0x2d4)),_0x948a49();})});},useLazyGetAsset=()=>{const {api:_0x138d72}=useApi(),{handleApiError:_0x480fd5}=useApiErrors(),_0x2d90dd=useQueryClient(),_0x28c915=async _0x482ee2=>{const _0x4f0d8e=_0x2ffc;if(!_0x482ee2)return;try{return await _0x138d72[_0x4f0d8e(0x29e)][_0x4f0d8e(0x256)](_0x482ee2['id']);}catch(_0x3e3400){await _0x2d90dd[_0x4f0d8e(0x279)]([_0x4f0d8e(0x132),_0x482ee2[_0x4f0d8e(0xf4)]]),_0x480fd5(_0x3e3400);}};return{'fetchAsset':_0x28c915};},useStageCategory=()=>{const _0x301442=useQueryClient(),_0x22a5a1=_0x162ca1=>{const _0x1d6acf=_0x2ffc;_0x301442[_0x1d6acf(0x2bd)](['admin','categories'],_0x3ed302=>{const _0x1b6a76=_0x1d6acf,_0x1930f4=Object[_0x1b6a76(0x2b3)](Object[_0x1b6a76(0x2b3)]({'id':nanoid()},_0x162ca1),{'stage':{'edit':!![],'newlyAdded':!![]}});return[_0x1930f4][_0x1b6a76(0x12a)](_0x3ed302!==null&&_0x3ed302!==void 0x0?_0x3ed302:[]);});},_0x344a95=_0x980fc3=>{const _0xe98f=_0x2ffc;_0x301442['setQueryData']([_0xe98f(0x1e3),_0xe98f(0x247)],_0x4969cf=>{const _0x115e62=_0xe98f;return(_0x4969cf!==null&&_0x4969cf!==void 0x0?_0x4969cf:[])[_0x115e62(0x1a7)](_0x4bb732=>_0x4bb732['id']===_0x980fc3?Object[_0x115e62(0x2b3)](Object[_0x115e62(0x2b3)]({},_0x4bb732),{'stage':Object[_0x115e62(0x2b3)](Object[_0x115e62(0x2b3)]({},_0x4bb732['stage']),{'edit':!![]})}):_0x4bb732);});},_0x285aaf=_0x40c02e=>{const _0x41f4a1=_0x2ffc;_0x301442['setQueryData']([_0x41f4a1(0x1e3),_0x41f4a1(0x247)],_0x2d9df9=>{return(_0x2d9df9!==null&&_0x2d9df9!==void 0x0?_0x2d9df9:[])['filter'](_0x376634=>{const _0x528f1a=_0x2ffc;var _0x25ba5d;return!(((_0x25ba5d=_0x376634[_0x528f1a(0x193)])===null||_0x25ba5d===void 0x0?void 0x0:_0x25ba5d['newlyAdded'])&&_0x376634['id']===_0x40c02e);});});},_0x3e1c54=_0x31402e=>{const _0x4ddae5=_0x2ffc;_0x301442[_0x4ddae5(0x2bd)]([_0x4ddae5(0x1e3),_0x4ddae5(0x247)],_0x43204e=>{const _0x1ca7c4=_0x4ddae5;return(_0x43204e!==null&&_0x43204e!==void 0x0?_0x43204e:[])['map'](_0x49addd=>_0x49addd['id']===_0x31402e?Object[_0x1ca7c4(0x2b3)](Object[_0x1ca7c4(0x2b3)]({},_0x49addd),{'stage':undefined}):_0x49addd);});};return{'stageCategory':_0x22a5a1,'deleteCategory':_0x285aaf,'editCategory':_0x344a95,'unstageCategory':_0x3e1c54};},useCreateCategory=()=>{const _0x4bb710=_0x3d1493,{api:_0x59442b}=useApi(),_0xdf4c4c=useQueryClient(),{deleteCategory:_0x185cdc}=useStageCategory(),{pushNotification:_0xf9d3b8}=useNotifications(),{t:_0x5afacb}=useTranslation();return useMutation(_0x30228f=>_0x59442b[_0x4bb710(0x247)][_0x4bb710(0x1b4)](_0x30228f),{'onSuccess':(_0x161ca,_0x2d0cea)=>{const _0x397e3f=_0x4bb710;_0xdf4c4c['invalidateQueries']('categories'),_0xdf4c4c[_0x397e3f(0x279)](['admin',_0x397e3f(0x247)]);if(_0x2d0cea['categoryId'])_0x185cdc(_0x2d0cea[_0x397e3f(0xf4)]);_0xf9d3b8({'type':_0x397e3f(0x14d),'title':_0x5afacb('Category\x20created\x20successfully.')});}});},useDeleteCategory=()=>{const _0x34f90b=_0x3d1493,{api:_0x553f2d}=useApi(),_0x2df070=useQueryClient(),{pushMissingCategoryErrorNotification:_0x446dbf}=useCategoryErrors(),{pushNotification:_0x31c996}=useNotifications(),{t:_0x5e1b13}=useTranslation();return useMutation(({categoryId:_0xa9c7ff})=>_0x553f2d[_0x34f90b(0x247)][_0x34f90b(0x1e8)](_0xa9c7ff),{'onSuccess':(_0x33d957,{categoryId:_0x574c23})=>{const _0x30006a=_0x34f90b;_0x2df070[_0x30006a(0x279)](_0x30006a(0x247)),_0x2df070[_0x30006a(0x279)]([_0x30006a(0x1e3),_0x30006a(0x247)]),_0x2df070[_0x30006a(0x279)]([_0x30006a(0x132),_0x574c23]),_0x31c996({'type':'success','title':_0x5e1b13('Category\x20deleted\x20successfully.')});},'onError':()=>new MissingResourceErrorHandler(()=>_0x446dbf())});},useGetAdminCategories=()=>{const _0x27d1c8=_0x3d1493,{api:_0x28299f}=useApi(),_0x79a79f=useQueryClient();return useQuery([_0x27d1c8(0x1e3),_0x27d1c8(0x247)],async()=>{const _0xb7a69e=_0x27d1c8,_0x4bdf5a=await _0x28299f[_0xb7a69e(0x247)][_0xb7a69e(0x28d)]();return parseAdminCategories(_0x4bdf5a,_0x79a79f[_0xb7a69e(0x2c7)]([_0xb7a69e(0x1e3),_0xb7a69e(0x247)]));});},useGetCategories=()=>{const _0x212f53=_0x3d1493,{api:_0x1cf8d1}=useApi();return useQuery(_0x212f53(0x247),async()=>{const _0x2b0efe=_0x212f53,_0x36feca=await _0x1cf8d1['categories']['getCategories']();return parseCategories(_0x36feca===null||_0x36feca===void 0x0?void 0x0:_0x36feca[_0x2b0efe(0x26a)]);});},useGetCategory=_0x1b6275=>{const _0x43841b=_0x3d1493,{api:_0x4ce4f1}=useApi(),{pushMissingCategoryErrorNotification:_0x395643}=useCategoryErrors();return useQuery([_0x43841b(0x247),_0x1b6275],async()=>{const _0x19016a=_0x43841b,_0x100d37=await _0x4ce4f1[_0x19016a(0x247)][_0x19016a(0x202)](_0x1b6275);return parseCategory(_0x100d37);},{'onError':()=>new MissingResourceErrorHandler(()=>_0x395643())});},useUpdateCategory=()=>{const _0x32b42c=_0x3d1493,{api:_0xe73674}=useApi(),_0xe0aefd=useQueryClient(),{pushMissingCategoryErrorNotification:_0x331c04}=useCategoryErrors(),{unstageCategory:_0x42564d}=useStageCategory(),{pushNotification:_0x5986e5}=useNotifications(),{t:_0x4744fe}=useTranslation();return useMutation(({categoryId:_0x153192,payload:_0x446559})=>_0xe73674[_0x32b42c(0x247)][_0x32b42c(0x1d0)](_0x153192,_0x446559),{'onSuccess':(_0x58ed41,{categoryId:_0x568412})=>{const _0x307092=_0x32b42c;_0xe0aefd[_0x307092(0x279)](_0x307092(0x247)),_0xe0aefd['invalidateQueries']([_0x307092(0x1e3),_0x307092(0x247)]),_0x42564d(_0x568412),_0x5986e5({'type':_0x307092(0x14d),'title':_0x4744fe(_0x307092(0x227))});},'onError':(_0x54dc0f,_0x3df29c)=>new MissingResourceErrorHandler(()=>{const _0x27743e=_0x32b42c;_0xe0aefd[_0x27743e(0x279)]([_0x27743e(0x1e3),_0x27743e(0x247)]),_0x42564d(_0x3df29c[_0x27743e(0xf4)]),_0x331c04();})});},useUpdateCategoriesOrder=()=>{const _0x4034aa=_0x3d1493,{api:_0x152b5f}=useApi(),_0x5c27b6=useQueryClient(),{pushMissingCategoryErrorNotification:_0x222a04}=useCategoryErrors(),{pushNotification:_0x24afeb}=useNotifications(),{t:_0x2567c6}=useTranslation();return useMutation(_0xc8dc94=>_0x152b5f[_0x4034aa(0x247)]['updateCategoriesOrder'](_0xc8dc94),{'onSuccess':()=>{const _0x4690d8=_0x4034aa;_0x5c27b6[_0x4690d8(0x279)](_0x4690d8(0x247)),_0x5c27b6['invalidateQueries']([_0x4690d8(0x1e3),_0x4690d8(0x247)]),_0x24afeb({'type':_0x4690d8(0x14d),'title':_0x2567c6(_0x4690d8(0x223))});},'onError':()=>new MissingResourceErrorHandler(()=>_0x222a04())});},useGetImagesConfig=()=>{const _0x3c636c=_0x3d1493,{api:_0x1158b3}=useApi();return useQuery(_0x3c636c(0x128),async()=>{const _0x546fba=_0x3c636c,_0x97c1e9=await _0x1158b3[_0x546fba(0x128)][_0x546fba(0x1a1)]();return _0x97c1e9!==null&&_0x97c1e9!==void 0x0?_0x97c1e9:{};});},useUpdateImageFormatConfig=()=>{const _0x614bbf=_0x3d1493,{api:_0x2045c3}=useApi(),_0x50cdd8=useQueryClient(),{pushNotification:_0x101dc3}=useNotifications(),{t:_0x14431d}=useTranslation();return useMutation(({format:_0x4d211c,payload:_0x5c9d5d})=>_0x2045c3[_0x614bbf(0x128)][_0x614bbf(0x208)](_0x4d211c,_0x5c9d5d),{'onSuccess':()=>{const _0x197071=_0x614bbf;_0x50cdd8[_0x197071(0x279)](_0x197071(0x128)),_0x101dc3({'type':_0x197071(0x14d),'title':_0x14431d('Images\x20quality\x20updated\x20successfully.')});}});},DateComponent=({isoValue:_0x48a486})=>{const _0x454946=_0x3d1493,{lang:_0xe44b10}=useTranslation();if(!_0x48a486)return null;const _0x2e4123=new Date(Date[_0x454946(0x11c)](_0x48a486))[_0x454946(0x166)](_0xe44b10,{'year':_0x454946(0x203),'month':_0x454946(0x203),'day':_0x454946(0x203)});return _0x5a5522['createElement']('span',null,_0x2e4123);},getAssetSize=_0x517896=>{const _0x4a625b=_0x3d1493;var _0x2acafe;if(_0x517896===0x0)return _0x4a625b(0x1cf);const _0xef676a=0x400,_0x31dc14=['B','KB','MB','GB'],_0x362a2a=Math[_0x4a625b(0x157)](Math[_0x4a625b(0x207)](_0x517896)/Math[_0x4a625b(0x207)](_0xef676a)),_0x47c893=parseFloat((_0x517896/Math[_0x4a625b(0x287)](_0xef676a,_0x362a2a))[_0x4a625b(0x244)](0x1));return _0x47c893+'\x20'+((_0x2acafe=_0x31dc14[_0x362a2a])!==null&&_0x2acafe!==void 0x0?_0x2acafe:'');},AssetSize=({size:_0x629536})=>{const _0x2a82f=_0x3d1493;if(_0x629536===undefined)return null;return _0x5a5522[_0x2a82f(0x1a9)]('span',null,getAssetSize(_0x629536));},useFormValidation$1=_0x5edc72=>{const _0x355108=_0x3d1493,{t:_0x3d6f9e}=useTranslation(),_0x325dac=_0x3d6f9e(_0x355108(0x189)),_0x5efe62=_0x3d6f9e(_0x355108(0x1c4)),_0x1f0c6c=_0x3d6f9e(_0x355108(0x151)),_0x401704=_0x3d6f9e(_0x355108(0x2c8));return{'description':{'maxLength':{'value':0x400,'message':_0x325dac}},'extension':{'validate':{'nonEmpty':validators['nonEmpty'](_0x1f0c6c),'isAllowed':validators[_0x355108(0x2f0)](_0x5efe62,_0x5edc72)}},'name':{'validate':{'nonEmpty':validators[_0x355108(0x1cd)](_0x401704)}}};},AssetPropertiesDialog=({assetData:{id:_0x7ccda1,name:_0x8e72d4,size:_0x48ee09,metadata:{description:_0x27368f,width:_0x2d53be,height:_0x2ad832,blurHash:_0x23fe71},uploadedAt:_0x2a2cf2,categoryId:_0x33f76d,extension:_0x1d92fa},focusFileName:_0x4d6f43,onClose:_0x44c943,onSave:_0x519255})=>{const _0x1f35d=_0x3d1493;var _0x544ae2,_0x4ca34d;const [_0x16dd1f,_0x1279d6]=_0x5a5522[_0x1f35d(0x1e4)](null),{t:_0x107acd}=useTranslation(),{data:_0x40e63e,isFetched:_0x17c1cf}=useGetCategory(_0x33f76d),_0x119dcb=useFormValidation$1((_0x544ae2=_0x40e63e===null||_0x40e63e===void 0x0?void 0x0:_0x40e63e['extensions'])!==null&&_0x544ae2!==void 0x0?_0x544ae2:[]),[_0x1a50a1,_0x112807]=_0x5a5522[_0x1f35d(0x1e4)](null),{handleSubmit:_0x1fb5a1,register:_0x25e222,formState:{errors:_0x24a11f},setValue:_0x446a29}=useForm({'defaultValues':{'name':_0x8e72d4,'extension':_0x1d92fa,'fileName':_0x8e72d4+'.'+_0x1d92fa,'description':_0x27368f}});_0x25e222(_0x1f35d(0x16e),_0x119dcb['name']),_0x25e222('extension',_0x119dcb[_0x1f35d(0x1c3)]);const _0x85cb08=_0x5ed32a=>{const _0x356420=_0x1f35d,_0x4cbbce=_0x5ed32a[_0x356420(0x2b0)]['value'],_0x848cc1=_0x4cbbce['lastIndexOf']('.');_0x848cc1!==-0x1?(_0x446a29(_0x356420(0x16e),_0x4cbbce['substr'](0x0,_0x848cc1)),_0x446a29(_0x356420(0x1c3),_0x4cbbce[_0x356420(0x2b6)](_0x848cc1+0x1))):(_0x446a29('name',_0x4cbbce),_0x446a29(_0x356420(0x1c3),''));},_0x2d9215=_0x25e222('fileName',{'onChange':_0x85cb08}),{ref:_0x5235a8}=_0x2d9215,_0x1de057=__rest(_0x2d9215,[_0x1f35d(0x2e3)]);_0x5a5522[_0x1f35d(0x124)](()=>{const _0x5914fe=_0x1f35d;if(_0x4d6f43&&_0x1a50a1){const _0x5c32a9=_0x8e72d4[_0x5914fe(0x24a)];_0x1a50a1[_0x5914fe(0x23a)](),_0x1a50a1['setSelectionRange'](0x0,_0x5c32a9);}},[_0x4d6f43,_0x1a50a1,_0x8e72d4]);const _0x5300bf=!_0x17c1cf;_0x5a5522['useEffect'](()=>{const _0x537532=_0x1f35d;_0x16dd1f&&!_0x5300bf&&!_0x4d6f43&&_0x16dd1f[_0x537532(0x23a)]();},[_0x16dd1f,_0x5300bf,_0x4d6f43]);const {api:_0xd1fb}=useApi(),_0x366f86=_0xd1fb[_0x1f35d(0x29e)][_0x1f35d(0x272)](_0x7ccda1),_0x223969=_0x1fb5a1(({name:_0x1e8240,extension:_0x2da602,description:_0xc355d6})=>{_0x519255(_0x7ccda1,_0x33f76d,{'name':_0x1e8240,'extension':_0x2da602,'description':_0xc355d6});}),_0x470a29=_0x1f35d(0x28c)+_0x7ccda1,_0x46697c='fileName-'+_0x7ccda1,_0x5f7819='description-'+_0x7ccda1,_0x11e259=_0x1f35d(0x195)+_0x7ccda1,[_0x1973e3,_0x4a3606]=_0x5a5522['useState'](null);return _0x5a5522['createElement'](Dialog,{'size':'lg','modal':!![],'onClose':_0x44c943},_0x5a5522['createElement'](DialogHeader,{'closeLabel':_0x107acd(_0x1f35d(0x276))}),_0x5a5522[_0x1f35d(0x1a9)](DialogRow,null,_0x5a5522[_0x1f35d(0x1a9)](DialogColumn,null,_0x5a5522[_0x1f35d(0x1a9)](DialogSection,{'ref':_0x4a3606,'accent':!![],'fullHeight':!![],'spacing':canAssetBePreviewed(_0x1d92fa)},_0x5a5522[_0x1f35d(0x1a9)](Asset,{'blurHash':_0x23fe71,'containerRef':_0x1973e3,'extension':_0x1d92fa,'height':_0x2ad832,'id':_0x7ccda1,'name':_0x8e72d4,'description':_0x27368f,'width':_0x2d53be}))),_0x5a5522[_0x1f35d(0x1a9)](DialogColumn,null,_0x5a5522[_0x1f35d(0x1a9)](DialogSection,null,_0x5a5522[_0x1f35d(0x1a9)](Form,{'onSubmit':_0x223969,'id':_0x470a29},_0x5a5522[_0x1f35d(0x1a9)](FormGroup,null,_0x5a5522['createElement'](FormInputLabel,{'htmlFor':_0x46697c},_0x107acd('File\x20name')),_0x5a5522[_0x1f35d(0x1a9)](Input,Object[_0x1f35d(0x2b3)]({'error':!!(_0x24a11f[_0x1f35d(0x16e)]||_0x24a11f['extension']),'id':_0x46697c,'ref':_0x36cbd4=>{_0x5235a8(_0x36cbd4),_0x112807(_0x36cbd4);}},_0x1de057)),_0x24a11f['name']&&_0x5a5522[_0x1f35d(0x1a9)](FormFeedback,{'error':!![]},_0x24a11f[_0x1f35d(0x16e)][_0x1f35d(0x12f)]),_0x24a11f[_0x1f35d(0x1c3)]&&_0x5a5522['createElement'](FormFeedback,{'error':!![]},_0x24a11f[_0x1f35d(0x1c3)]['message'])),_0x5a5522[_0x1f35d(0x1a9)](FormGroup,{'offset':'md'},_0x5a5522['createElement'](FormInputLabel,{'htmlFor':_0x5f7819},_0x107acd(_0x1f35d(0x1a2))),_0x5a5522[_0x1f35d(0x1a9)](Input,Object['assign']({'error':!!_0x24a11f[_0x1f35d(0x1c9)],'id':_0x5f7819},_0x25e222(_0x1f35d(0x1c9),_0x119dcb['description']))),_0x24a11f[_0x1f35d(0x1c9)]&&_0x5a5522[_0x1f35d(0x1a9)](FormFeedback,{'error':!![]},(_0x4ca34d=_0x24a11f['description'])===null||_0x4ca34d===void 0x0?void 0x0:_0x4ca34d[_0x1f35d(0x12f)]))),_0x5a5522[_0x1f35d(0x1a9)](FormGroup,{'offset':'md'},_0x5a5522[_0x1f35d(0x1a9)](FormInputLabel,{'htmlFor':_0x11e259},_0x107acd(_0x1f35d(0x131))),_0x5a5522[_0x1f35d(0x1a9)](CopyableInput,{'labelCopy':_0x107acd('Copy'),'labelCopied':_0x107acd('Copied!'),'id':_0x11e259,'value':_0x366f86})),_0x5a5522[_0x1f35d(0x1a9)](PropertiesTable,null,_0x5a5522['createElement'](PropertiesTableRow,{'label':_0x107acd(_0x1f35d(0x1d5)),'value':_0x5a5522['createElement'](DateComponent,{'isoValue':_0x2a2cf2})}),_0x5a5522['createElement'](PropertiesTableRow,{'label':_0x107acd(_0x1f35d(0x204)),'value':_0x5a5522['createElement'](AssetSize,{'size':_0x48ee09})}),_0x2ad832&&_0x2d53be&&_0x5a5522[_0x1f35d(0x1a9)](_0x5a5522[_0x1f35d(0x2fa)],null,_0x5a5522[_0x1f35d(0x1a9)](PropertiesTableRow,{'label':_0x107acd(_0x1f35d(0x102)),'value':_0x2d53be+_0x1f35d(0x130)}),_0x5a5522[_0x1f35d(0x1a9)](PropertiesTableRow,{'label':_0x107acd(_0x1f35d(0x24d)),'value':_0x2ad832+'\x20px'})))),_0x5a5522[_0x1f35d(0x1a9)](DialogActions,null,_0x5a5522[_0x1f35d(0x1a9)](Button,{'onClick':_0x44c943,'type':_0x1f35d(0x2e9)},_0x107acd(_0x1f35d(0x2d2))),_0x5a5522[_0x1f35d(0x1a9)](Button,{'color':_0x1f35d(0x2c3),'type':_0x1f35d(0x18b),'disabled':_0x5300bf,'form':_0x470a29,'htmlType':'submit','ref':_0x1279d6},_0x107acd(_0x1f35d(0x1dc)))))));},AssetsBottombar=({assetsPerPage:_0x3934c3,isLoading:_0x68a0d,onChoose:_0x37b1fe,onPageChange:_0x49ad71,pageNumber:_0x527867,selectedAssetsNum:_0x2141a3,totalAssetsCount:_0x359bf7})=>{const _0x10c54f=_0x3d1493,{t:_0x5483ac}=useTranslation(),{setBottomOffsetEl:_0x59dcf4}=useNotifications(),_0x367bb4=Math[_0x10c54f(0x262)](_0x359bf7/_0x3934c3),_0x2bf0dd=usePagination(_0x527867,_0x49ad71,_0x367bb4);return _0x5a5522[_0x10c54f(0x124)](()=>{_0x367bb4&&_0x367bb4<_0x527867&&_0x49ad71(_0x367bb4);},[_0x527867,_0x367bb4,_0x49ad71]),_0x5a5522[_0x10c54f(0x1a9)](Bottombar,{'ref':_0x59dcf4,'sideContent':_0x37b1fe&&_0x5a5522[_0x10c54f(0x1a9)](Button,{'icon':_0x10c54f(0x241),'color':_0x10c54f(0x2c3),'type':_0x10c54f(0x18b),'fullWidth':!![],'onClick':_0x37b1fe,'disabled':_0x68a0d||_0x2141a3===0x0},_0x5483ac(_0x10c54f(0x2f6))),'statusContent':_0x2141a3&&_0x5a5522['createElement'](_0x10c54f(0x2a7),null,_0x5483ac('%d\x20file\x20selected',{'plural':_0x2141a3,'values':[_0x2141a3],'processTags':!![]}))},_0x5a5522['createElement'](Pagination,Object[_0x10c54f(0x2b3)]({'disabled':_0x68a0d,'enterPageLabel':_0x5483ac(_0x10c54f(0x111)),'totalPagesLabel':_0x5483ac(_0x10c54f(0x1e9),{'values':[_0x367bb4]}),'totalPages':_0x367bb4,'page':_0x527867},_0x2bf0dd)));},DisplayOptions=({allowCover:_0x5e71b9,assetsPerPage:_0x184e96,assetsPerPageOptions:_0x1644a6,onCoverModeToggle:_0x345744,onThumbSizeChange:_0xab2074,sort:_0x13464a,sortOrder:_0x33c9e3,onSortOrderToggle:_0x1d217a,sortOptions:_0x6056c6,thumbSize:_0x3deb0c})=>{const _0x3a9b8f=_0x3d1493,{t:_0x53a712}=useTranslation(),[_0x444b79,_0x1e2db2]=_0x5a5522[_0x3a9b8f(0x1e4)](null),[_0x2ff1ce,_0x35b30a]=_0x5a5522[_0x3a9b8f(0x1e4)](null),[_0x8499b4,_0x5da7f2]=_0x5a5522['useState'](null),_0x2fa65d=()=>{_0x1e2db2(null),_0x35b30a(null),_0x5da7f2(null);},_0xf3c5f4=_0x5c2348=>{const _0x50022a=_0x3a9b8f,_0x269135=_0x5c2348[_0x50022a(0x2b0)];_0x1e2db2(_0x50e58c=>_0x50e58c?null:_0x269135);},_0x52c15e=()=>{_0x35b30a(null);},_0x53c7fb=_0x51a517=>{const _0x97b319=_0x51a517['currentTarget'];_0x35b30a(_0x59188a=>_0x59188a?null:_0x97b319);},_0x111c4b=()=>{_0x5da7f2(null);},_0x5e643e=_0x5c9e9f=>{const _0x5d24cf=_0x3a9b8f,_0x3ee797=_0x5c9e9f[_0x5d24cf(0x2b0)];_0x5da7f2(_0x50afd1=>_0x50afd1?null:_0x3ee797);};return _0x5a5522[_0x3a9b8f(0x1a9)](_0x5a5522[_0x3a9b8f(0x2fa)],null,_0x5a5522[_0x3a9b8f(0x1a9)](Button,{'icon':_0x3a9b8f(0x24c),'color':_0x3a9b8f(0x2c3),'type':_0x3a9b8f(0x2e9),'label':_0x53a712(_0x3a9b8f(0x233)),'onClick':_0xf3c5f4}),_0x5a5522[_0x3a9b8f(0x1a9)](Fixed,null,_0x5a5522[_0x3a9b8f(0x1a9)](Menu,{'anchorEl':_0x444b79,'arrow':!![],'placement':_0x3a9b8f(0x1b0),'offset':['xl','xl'],'spacing':![],'onClose':_0x2fa65d},_0x5a5522[_0x3a9b8f(0x1a9)](MenuSection,{'borderBottom':!![],'title':_0x53a712('Assets')},_0x6056c6&&_0x1d217a&&_0x33c9e3&&_0x5a5522[_0x3a9b8f(0x1a9)](MenuSubSection,{'title':_0x53a712(_0x3a9b8f(0x10d)),'alignChildren':_0x3a9b8f(0x298)},_0x5a5522[_0x3a9b8f(0x1a9)](Button,{'type':_0x3a9b8f(0x2e9),'color':_0x3a9b8f(0x2c3),'icon':_0x3a9b8f(0x2b5),'iconPlacement':_0x3a9b8f(0x1e0),'fullWidth':!![],'label':_0x53a712(_0x3a9b8f(0x10d)),'onClick':_0x53c7fb},_0x13464a),_0x5a5522[_0x3a9b8f(0x1a9)](SortButton,{'onClick':_0x1d217a,'order':_0x33c9e3,'label':_0x53a712('Order'),'tooltip':_0x33c9e3===ApiSortingOrder[_0x3a9b8f(0x217)]?_0x53a712(_0x3a9b8f(0x1b8)):_0x53a712('Descending')})),_0x5a5522[_0x3a9b8f(0x1a9)](MenuSubSection,{'title':_0x53a712(_0x3a9b8f(0x13c))},_0x5a5522['createElement'](Button,{'color':_0x3a9b8f(0x2c3),'type':_0x3a9b8f(0x2e9),'icon':_0x3a9b8f(0x2b5),'iconPlacement':'right','fullWidth':!![],'label':_0x53a712('Display'),'onClick':_0x5e643e},_0x184e96))),_0x5a5522['createElement'](MenuSection,{'title':_0x53a712(_0x3a9b8f(0xfe))},_0x5a5522[_0x3a9b8f(0x1a9)](MenuSubSection,{'title':_0x53a712('Size')},_0x5a5522['createElement'](RangeSlider,{'min':0x0,'max':0x1,'onChange':_0xab2074,'value':_0x3deb0c,'step':0.025})),_0x5a5522[_0x3a9b8f(0x1a9)](MenuSubSection,{'align':_0x3a9b8f(0x298),'label':!![],'labelFor':_0x3a9b8f(0x16d),'title':_0x53a712('Keep\x20aspect\x20ratio')},_0x5a5522[_0x3a9b8f(0x1a9)](SwitchInput,{'checked':_0x5e71b9,'id':_0x3a9b8f(0x16d),'name':_0x3a9b8f(0x16d),'onChange':_0x345744}))),_0x6056c6&&_0x5a5522[_0x3a9b8f(0x1a9)](Menu,{'anchorEl':_0x2ff1ce,'placement':'bottom','sameWidth':!![],'onClose':_0x52c15e},_0x6056c6[_0x3a9b8f(0x1a7)](({onSelect:_0x3657d8,label:_0x433166},_0x5e90f7)=>_0x5a5522[_0x3a9b8f(0x1a9)](MenuItem,{'key':_0x5e90f7,'onClick':_0x3657d8,'label':_0x433166}))),_0x5a5522[_0x3a9b8f(0x1a9)](Menu,{'anchorEl':_0x8499b4,'placement':_0x3a9b8f(0x205),'sameWidth':!![],'onClose':_0x111c4b},_0x1644a6['map'](({label:_0x537722,onSelect:_0x12c01b},_0x593b48)=>_0x5a5522['createElement'](MenuItem,{'key':_0x593b48,'onClick':_0x12c01b,'label':_0x537722}))))));},UploadIndicator=()=>{const _0x423a7d=_0x3d1493,{t:_0x1762e1}=useTranslation(),{isDialogOpen:_0x21ec4b,isIndicatorOpen:_0x54cc65,toggleDialog:_0x4bb84b}=useUploadComponents$1(),{totalProgress:_0x298f9a,queue:_0x85894f}=useUploadState();if(!_0x54cc65)return null;const _0x5c12ce=_0x85894f['some'](_0x27cd77=>!!_0x27cd77['error']),_0x468e77=()=>{_0x4bb84b();};return _0x5a5522[_0x423a7d(0x1a9)](CircularLoader,{'label':_0x21ec4b?_0x1762e1(_0x423a7d(0x12c)):_0x1762e1('Open\x20upload\x20dialog'),'onClick':_0x468e77,'value':Math['round'](_0x298f9a!==null&&_0x298f9a!==void 0x0?_0x298f9a:0x0),'error':_0x5c12ce});},AssetsTopbar=({displayOptions:_0xb41ea,isDeleteActive:_0x500bd0,isDownloadActive:_0xb49c6c,isPropertiesActive:_0x254232,onDelete:_0x147a31,onDownload:_0x4c21ff,onProperties:_0x5d4ba1,onRename:_0x271189,uploadButton:_0x3cf15e})=>{const _0x185100=_0x3d1493,{t:_0xa91dec}=useTranslation();return _0x5a5522[_0x185100(0x1a9)](Topbar,{'sideContent':_0x5a5522[_0x185100(0x1a9)](_0x5a5522[_0x185100(0x2fa)],null,_0x5a5522[_0x185100(0x1a9)](UploadIndicator,null),_0x5a5522[_0x185100(0x1a9)](DisplayOptions,Object[_0x185100(0x2b3)]({},_0xb41ea)),_0x3cf15e)},_0x5a5522[_0x185100(0x1a9)](TopbarAction,{'disabled':!_0xb49c6c,'icon':_0x185100(0x1b6),'label':_0xa91dec(_0x185100(0x1b6)),'onClick':_0x4c21ff}),_0x5a5522[_0x185100(0x1a9)](TopbarAction,{'disabled':!_0x500bd0,'icon':_0x185100(0x22b),'label':_0xa91dec('Delete'),'onClick':_0x147a31}),_0x5a5522[_0x185100(0x1a9)](TopbarAction,{'disabled':!_0x254232,'icon':_0x185100(0x182),'label':_0xa91dec(_0x185100(0x210)),'onClick':_0x5d4ba1}),_0x5a5522[_0x185100(0x1a9)](TopbarAction,{'disabled':!_0x254232,'icon':'Pencil','label':_0xa91dec('Rename'),'onClick':_0x271189}));},AssetsDeleteDialog=({assetsToDelete:_0x318ea1,onCancel:_0x4f83b5,onConfirm:_0x5752f7})=>{const _0x12b095=_0x3d1493,[_0x503eab,_0x1095e]=_0x5a5522['useState'](null),{t:_0x17c9be}=useTranslation(),_0x41e7e3=_0x318ea1[_0x12b095(0x24a)];_0x5a5522['useEffect'](()=>{const _0x6ea868=_0x12b095;_0x503eab&&_0x503eab[_0x6ea868(0x23a)]();},[_0x503eab]);if(!_0x41e7e3)return null;let _0x294b1b;if(_0x41e7e3===0x1){const _0x1a56c5=_0x318ea1[0x0];_0x294b1b={'values':[(_0x1a56c5===null||_0x1a56c5===void 0x0?void 0x0:_0x1a56c5['name'])+'.'+(_0x1a56c5===null||_0x1a56c5===void 0x0?void 0x0:_0x1a56c5[_0x12b095(0x1c3)])],'processTags':!![]};}else _0x294b1b={'values':[_0x41e7e3],'processTags':!![],'plural':_0x41e7e3};return _0x5a5522['createElement'](Dialog,{'modal':!![],'onClose':_0x4f83b5,'size':'sm'},_0x5a5522[_0x12b095(0x1a9)](DialogHeader,{'closeLabel':_0x17c9be(_0x12b095(0x276))}),_0x5a5522['createElement'](DialogColumn,null,_0x5a5522[_0x12b095(0x1a9)](DialogSection,{'header':!![]},_0x17c9be('Remove\x20assets')),_0x5a5522[_0x12b095(0x1a9)](DialogSection,{'collapse':!![]},_0x17c9be(_0x12b095(0x1ec),_0x294b1b)),_0x5a5522[_0x12b095(0x1a9)](DialogActions,null,_0x5a5522[_0x12b095(0x1a9)](Button,{'onClick':_0x4f83b5,'type':'outline'},_0x17c9be(_0x12b095(0x2d2))),_0x5a5522['createElement'](Button,{'ref':_0x1095e,'color':'danger','type':'fill','onClick':_0x5752f7},_0x17c9be(_0x12b095(0x1ce))))));},SELECT_ALL_EVENT_KEY='a';var ActionType;(function(_0x2ec8fa){const _0x49b193=_0x3d1493;_0x2ec8fa[_0x2ec8fa[_0x49b193(0x1f3)]=0x0]=_0x49b193(0x1f3),_0x2ec8fa[_0x2ec8fa[_0x49b193(0x1bc)]=0x1]=_0x49b193(0x1bc),_0x2ec8fa[_0x2ec8fa['SELECT_SINGLE']=0x2]=_0x49b193(0x2ab),_0x2ec8fa[_0x2ec8fa[_0x49b193(0x240)]=0x3]=_0x49b193(0x240),_0x2ec8fa[_0x2ec8fa[_0x49b193(0x20c)]=0x4]=_0x49b193(0x20c),_0x2ec8fa[_0x2ec8fa['DESELECT_ALL']=0x5]=_0x49b193(0x120);}(ActionType||(ActionType={})));var HistoryEntryType;(function(_0x2343dc){const _0xa80412=_0x3d1493;_0x2343dc[_0x2343dc[_0xa80412(0x2a2)]=0x0]=_0xa80412(0x2a2),_0x2343dc[_0x2343dc[_0xa80412(0x1cb)]=0x1]=_0xa80412(0x1cb);}(HistoryEntryType||(HistoryEntryType={})));var ArrowKey;(function(_0x5a72ea){const _0x1d7f3d=_0x3d1493;_0x5a72ea['UP']=_0x1d7f3d(0x2a8),_0x5a72ea[_0x1d7f3d(0x1fb)]=_0x1d7f3d(0x15f),_0x5a72ea['RIGHT']=_0x1d7f3d(0x257),_0x5a72ea['LEFT']=_0x1d7f3d(0x103);}(ArrowKey||(ArrowKey={})));const initialState={'selectedAssets':{},'selectionHistory':[],'lastSelectedRange':undefined},getRangeAssetsIds=(_0x4c1e30,[_0x345d94,_0x3e72f6])=>{const _0x89ad34=_0x3d1493,_0x605aca=_0x4c1e30[_0x89ad34(0x1e5)](_0x37857f=>_0x37857f===_0x345d94),_0xd6197a=_0x4c1e30[_0x89ad34(0x1e5)](_0x1e13d5=>_0x1e13d5===_0x3e72f6);return _0x605aca<=_0xd6197a?_0x4c1e30['slice'](_0x605aca,_0xd6197a+0x1):_0x4c1e30['slice'](_0xd6197a,_0x605aca+0x1);},getLastActivatedAssetId=(_0x3cd01b,_0x224fd0)=>{const _0x179fe4=_0x3d1493,_0x5c1863=[..._0x224fd0][_0x179fe4(0x149)]()[_0x179fe4(0x273)](({type:_0xc81a9e})=>_0xc81a9e===HistoryEntryType['BASIC']);if(_0x5c1863)return _0x5c1863['id'];return _0x3cd01b[0x0];},extendSelectedAssets=(_0x32ff46,{id:_0x5dc5e8})=>{const _0x443c58=_0x3d1493;return{'selectedAssets':Object[_0x443c58(0x2b3)](Object[_0x443c58(0x2b3)]({},_0x32ff46[_0x443c58(0x1c1)]),{[_0x5dc5e8]:!![]}),'selectionHistory':[..._0x32ff46[_0x443c58(0x267)],{'id':_0x5dc5e8,'type':HistoryEntryType[_0x443c58(0x2a2)]}]};},selectAsset=({id:_0x50bd5c})=>{const _0x41083b=_0x3d1493;return{'selectedAssets':{[_0x50bd5c]:!![]},'selectionHistory':[{'id':_0x50bd5c,'type':HistoryEntryType[_0x41083b(0x2a2)]}],'lastSelectedRange':undefined};},selectAssetsRange=(_0x515340,{assetIds:_0x123a33,id:_0xe6d5a4})=>{const _0x2b5934=_0x3d1493;var _0x2dcd58;const _0x2d32f4=getLastActivatedAssetId(_0x123a33,_0x515340['selectionHistory']),_0x163ac0=getRangeAssetsIds(_0x123a33,[_0x2d32f4,_0xe6d5a4]),_0x1924dd=Object[_0x2b5934(0x2b3)]({},_0x515340[_0x2b5934(0x1c1)]);let _0x2a4dfe=[..._0x515340[_0x2b5934(0x267)]];((_0x2dcd58=_0x515340[_0x2b5934(0x145)])===null||_0x2dcd58===void 0x0?void 0x0:_0x2dcd58[_0x2b5934(0x22c)])===_0x2d32f4&&(_0x515340[_0x2b5934(0x145)][_0x2b5934(0x1c0)]['forEach'](_0xcb93b3=>{delete _0x1924dd[_0xcb93b3];}),_0x2a4dfe=_0x2a4dfe[_0x2b5934(0x185)](({id:_0x501b71})=>{const _0x3c8a80=_0x2b5934;var _0x21fe8e;return _0x501b71!==((_0x21fe8e=_0x515340[_0x3c8a80(0x145)])===null||_0x21fe8e===void 0x0?void 0x0:_0x21fe8e[_0x3c8a80(0x18a)]);}));_0x163ac0[_0x2b5934(0x25f)](_0x4296bc=>{_0x1924dd[_0x4296bc]=!![];});const _0x2911f3={'startId':_0x2d32f4,'range':_0x163ac0,'endId':_0xe6d5a4};return _0x2a4dfe[_0x2b5934(0x239)]({'id':_0xe6d5a4,'type':HistoryEntryType[_0x2b5934(0x1cb)]}),{'selectedAssets':_0x1924dd,'selectionHistory':_0x2a4dfe,'lastSelectedRange':_0x2911f3};},selectAssets=(_0xdbb515,{ids:_0x242dab})=>{const _0x33cce2=_0x3d1493;if(_0x242dab['length']===Object[_0x33cce2(0x216)](_0xdbb515[_0x33cce2(0x1c1)])[_0x33cce2(0x24a)]&&_0x242dab[_0x33cce2(0x2c2)](_0x189a16=>_0xdbb515[_0x33cce2(0x1c1)][_0x189a16]))return _0xdbb515;const _0x545b90=_0x242dab[_0x33cce2(0x2c5)]((_0x3c66d9,_0x1def50)=>{const _0x4cf814=_0x33cce2;return Object[_0x4cf814(0x2b3)](Object[_0x4cf814(0x2b3)]({},_0x3c66d9),{[_0x1def50]:!![]});},{});return{'selectedAssets':_0x545b90,'selectionHistory':[]};},deselectAssets=(_0x566ab6,{ids:_0x72ff19})=>{const _0x5727d1=_0x3d1493,_0x3732bc=_0x72ff19['reduce']((_0x188ff0,_0x590ecb)=>{const _0x111835=_0x2ffc;if(_0x188ff0[_0x590ecb]){const _0x44cd11=Object[_0x111835(0x2b3)]({},_0x188ff0);return delete _0x44cd11[_0x590ecb],_0x44cd11;}return _0x188ff0;},Object[_0x5727d1(0x2b3)]({},_0x566ab6[_0x5727d1(0x1c1)])),_0x5e68de=_0x566ab6[_0x5727d1(0x267)][_0x5727d1(0x185)](({id:_0x9a9144})=>!_0x72ff19[_0x5727d1(0x12e)](_0x9a9144));return Object[_0x5727d1(0x2b3)](Object[_0x5727d1(0x2b3)]({},_0x566ab6),{'selectedAssets':_0x3732bc,'selectionHistory':_0x5e68de});},deselectAll=()=>{return initialState;},cleanupAssetsSelection=(_0x4a4486,{ids:_0x542598})=>{const _0x503497=_0x3d1493,_0x11fded=Object[_0x503497(0x216)](_0x4a4486[_0x503497(0x1c1)])[_0x503497(0x2c5)]((_0x4070c8,_0x23863d)=>{const _0x1d9443=_0x503497;if(!_0x542598[_0x1d9443(0x12e)](_0x23863d))return[..._0x4070c8,_0x23863d];return _0x4070c8;},[]);if(!_0x11fded[_0x503497(0x24a)])return _0x4a4486;return deselectAssets(_0x4a4486,{'ids':_0x11fded});},assetsSelectionReducer=(_0x31dc36,_0x44c5dd)=>{const _0x1cc5da=_0x3d1493;switch(_0x44c5dd['type']){case ActionType[_0x1cc5da(0x1f3)]:{return cleanupAssetsSelection(_0x31dc36,_0x44c5dd[_0x1cc5da(0x2a4)]);}case ActionType[_0x1cc5da(0x1bc)]:{const _0x95869c=_0x44c5dd[_0x1cc5da(0x2a4)]['id'],_0x5a7638=!!_0x31dc36['selectedAssets'][_0x95869c];if(_0x5a7638)return deselectAssets(_0x31dc36,{'ids':[_0x95869c]});return extendSelectedAssets(_0x31dc36,_0x44c5dd['payload']);}case ActionType[_0x1cc5da(0x2ab)]:{return selectAsset(_0x44c5dd['payload']);}case ActionType[_0x1cc5da(0x240)]:{return selectAssetsRange(_0x31dc36,_0x44c5dd[_0x1cc5da(0x2a4)]);}case ActionType['SELECT_MULTIPLE']:{return selectAssets(_0x31dc36,_0x44c5dd[_0x1cc5da(0x2a4)]);}case ActionType[_0x1cc5da(0x120)]:{return deselectAll();}default:return _0x31dc36;}},useAssetsSelectionState=()=>{const _0x5113a1=_0x3d1493,[_0x1ee021,_0x2866ac]=_0x5a5522[_0x5113a1(0x122)](assetsSelectionReducer,initialState),_0x1b736a=_0x5a5522[_0x5113a1(0x2db)](_0x11b7df=>{const _0x598288=_0x5113a1;_0x2866ac({'type':ActionType[_0x598288(0x2ab)],'payload':{'id':_0x11b7df}});},[]),_0x49446c=_0x5a5522[_0x5113a1(0x2db)](_0x2689fa=>{const _0x2eb3d8=_0x5113a1;_0x2866ac({'type':ActionType[_0x2eb3d8(0x1bc)],'payload':{'id':_0x2689fa}});},[]),_0x1b912b=_0x5a5522[_0x5113a1(0x2db)]((_0x5945e7,_0x3aa8ca)=>{const _0x3cec32=_0x5113a1;_0x2866ac({'type':ActionType[_0x3cec32(0x240)],'payload':{'assetIds':_0x3aa8ca,'id':_0x5945e7}});},[]),_0x22075a=_0x5a5522['useCallback'](_0x101e2c=>{const _0x387d09=_0x5113a1;_0x2866ac({'type':ActionType[_0x387d09(0x20c)],'payload':{'ids':_0x101e2c}});},[]),_0xd79b95=_0x5a5522['useCallback'](_0x32f96b=>{const _0x1ae638=_0x5113a1;_0x2866ac({'type':ActionType[_0x1ae638(0x1f3)],'payload':{'ids':_0x32f96b}});},[]),_0x1baa06=_0x5a5522['useCallback'](()=>{_0x2866ac({'type':ActionType['DESELECT_ALL']});},[]);return{'cleanupSelection':_0xd79b95,'deselectAll':_0x1baa06,'extendOrDeselect':_0x49446c,'selectRange':_0x1b912b,'selectSingle':_0x1b736a,'selectSome':_0x22075a,'state':_0x1ee021};},getSelectionAreaIds=(_0x1c2f0e,_0x528efb,_0x48e033,_0x9741d5)=>{const _0x34b82d=_0x3d1493,_0x4abcbe=_0x9741d5[_0x34b82d(0x2dd)](),_0x102257=_0x9741d5[_0x34b82d(0x274)];return _0x528efb[_0x34b82d(0x2c5)]((_0x151265,_0xa35bfd)=>{const _0x3d6e71=_0x34b82d,_0x18f694=_0x48e033[_0xa35bfd],_0x5c84fe=_0x18f694[_0x3d6e71(0x2dd)](),_0x45c442=_0x5c84fe['x']-_0x4abcbe['left'],_0x446cf6=_0x5c84fe['y']+_0x102257-_0x4abcbe[_0x3d6e71(0x288)],{width:_0x29b47d,height:_0x4aed8b}=_0x5c84fe;if(_0x45c442<_0x1c2f0e['x']+_0x1c2f0e[_0x3d6e71(0x160)]&&_0x45c442+_0x29b47d>_0x1c2f0e['x']&&_0x446cf6<_0x1c2f0e['y']+_0x1c2f0e['height']&&_0x446cf6+_0x4aed8b>_0x1c2f0e['y'])return[..._0x151265,_0xa35bfd];return _0x151265;},[]);},getTilesInRow=(_0x8b7aa2,_0x5d7457)=>{const _0x110a39=_0x3d1493;let _0x54f5b0=0x1;const {offsetTop:_0x36568b}=_0x5d7457[_0x8b7aa2[0x0]];for(let _0x1b6e15=0x1;_0x1b6e15<_0x8b7aa2[_0x110a39(0x24a)];_0x1b6e15++){const _0x3e9923=_0x8b7aa2[_0x1b6e15];if(_0x36568b!==_0x5d7457[_0x3e9923][_0x110a39(0x218)])return _0x54f5b0;_0x54f5b0++;}return _0x54f5b0;},getKeyboardNavigationStep=(_0x2da1d1,_0x235858,_0x472230)=>{const _0x5a9e62=_0x3d1493;if(_0x472230===ArrowKey['RIGHT'])return 0x1;if(_0x472230===ArrowKey[_0x5a9e62(0x1fe)])return-0x1;const _0x57cb6d=getTilesInRow(_0x2da1d1,_0x235858);if(_0x472230===ArrowKey[_0x5a9e62(0x1fb)])return _0x57cb6d;return-_0x57cb6d;},useAssetsSelection=(_0x4a3d54,_0x4e9db0)=>{const _0x3357ed=_0x3d1493;var _0x1e9180;const {cleanupSelection:_0x586487,deselectAll:_0x320213,extendOrDeselect:_0x48a832,selectRange:_0x6cc325,selectSingle:_0x9ad71d,selectSome:_0x329319,state:_0x4df097}=useAssetsSelectionState(),_0x2c122b=_0x5a5522['useRef']({}),[_0x712618,_0x199bb5]=_0x5a5522[_0x3357ed(0x1e4)](null),{rootEl:_0x1ed5fb}=useUIContext(),_0x46c9d1=(_0x1e9180=_0x4df097[_0x3357ed(0x267)][_0x4df097['selectionHistory'][_0x3357ed(0x24a)]-0x1])===null||_0x1e9180===void 0x0?void 0x0:_0x1e9180['id'],_0x27d11a=_0x5a5522[_0x3357ed(0x190)](()=>_0x4a3d54['map'](({id:_0x1eef54})=>_0x1eef54),[_0x4a3d54]),_0x119630=_0x5a5522['useCallback']((_0x2578a4,_0x5d1e88,_0x58dee2,_0x4f6afa)=>{if(_0x5d1e88||_0x58dee2){_0x48a832(_0x2578a4);return;}if(_0x4f6afa){_0x6cc325(_0x2578a4,_0x27d11a);return;}_0x9ad71d(_0x2578a4);},[_0x27d11a,_0x48a832,_0x6cc325,_0x9ad71d]),_0x4c41a0=_0x5a5522['useCallback'](_0x196636=>{return _0x240856=>{const _0x3f45b8=_0x2ffc;_0x240856[_0x3f45b8(0x1eb)]();const {ctrlKey:_0x125fed,shiftKey:_0x3dcdfa,metaKey:_0x9be93c}=_0x240856;_0x119630(_0x196636,_0x125fed,_0x9be93c,_0x3dcdfa);};},[_0x119630]),_0x3cbb9f=_0x5a5522[_0x3357ed(0x2db)](_0x14b58c=>{return _0x45a430=>{const _0x3f5d8c=_0x2ffc;if(_0x45a430[_0x3f5d8c(0x138)]!==_0x3f5d8c(0x172))return;_0x45a430[_0x3f5d8c(0x1a6)]();const {ctrlKey:_0x1cd4d6,metaKey:_0x1ad7ee,shiftKey:_0x49a248}=_0x45a430;_0x119630(_0x14b58c,_0x1cd4d6,_0x1ad7ee,_0x49a248);};},[_0x119630]),_0x1ead87=_0x5a5522[_0x3357ed(0x2db)]((_0x1f8212,_0x115dac)=>{const _0x29a6c6=_0x3357ed;if(_0x46c9d1===undefined){if(_0x1f8212===ArrowKey[_0x29a6c6(0x1fb)]||_0x1f8212===ArrowKey[_0x29a6c6(0x232)]){const _0x415920=_0x27d11a[0x0];_0x9ad71d(_0x415920),_0x2c122b[_0x29a6c6(0x1c8)][_0x415920][_0x29a6c6(0x23a)]();}if(_0x1f8212===ArrowKey['UP']||_0x1f8212===ArrowKey[_0x29a6c6(0x1fe)]){const _0xd8534c=_0x27d11a[_0x27d11a['length']-0x1];_0x9ad71d(_0xd8534c),_0x2c122b[_0x29a6c6(0x1c8)][_0xd8534c]['focus']();}return;}const _0x59ecb8=_0x27d11a[_0x29a6c6(0x1e5)](_0x1659e3=>_0x1659e3===_0x46c9d1),_0x227766=getKeyboardNavigationStep(_0x27d11a,_0x2c122b[_0x29a6c6(0x1c8)],_0x1f8212);if(!_0x27d11a[_0x59ecb8+_0x227766])return;const _0x484e4f=_0x27d11a[_0x59ecb8+_0x227766];_0x115dac?_0x6cc325(_0x484e4f,_0x27d11a):_0x9ad71d(_0x484e4f),_0x2c122b['current'][_0x484e4f][_0x29a6c6(0x23a)]();},[_0x27d11a,_0x6cc325,_0x9ad71d,_0x46c9d1]),_0x3e5e44=_0x5a5522[_0x3357ed(0x2db)](_0x186fa1=>{const _0x508b0e=_0x3357ed,{ctrlKey:_0x2fb65b,metaKey:_0x54c0c7,key:_0x444ca5,shiftKey:_0x3f89ad}=_0x186fa1;if(_0x444ca5===ArrowKey['DOWN']||_0x444ca5===ArrowKey['UP']||_0x444ca5===ArrowKey[_0x508b0e(0x1fe)]||_0x444ca5===ArrowKey[_0x508b0e(0x232)]){_0x186fa1[_0x508b0e(0x1a6)](),_0x1ead87(_0x444ca5,_0x3f89ad);return;}(_0x2fb65b||_0x54c0c7)&&_0x444ca5[_0x508b0e(0x263)]()===SELECT_ALL_EVENT_KEY&&(_0x186fa1[_0x508b0e(0x1a6)](),_0x329319(_0x27d11a));},[_0x27d11a,_0x1ead87,_0x329319]),_0xde0b0a=_0x5a5522[_0x3357ed(0x2db)](_0x1ea10b=>{const _0x3d798a=_0x3357ed;if(!_0x712618)return;const _0x4abbb7=getSelectionAreaIds(_0x1ea10b,_0x27d11a,_0x2c122b['current'],_0x712618),_0x470019=_0x4abbb7[_0x3d798a(0x24a)]&&document[_0x3d798a(0x2bc)]!==_0x2c122b[_0x3d798a(0x1c8)][_0x4abbb7[0x0]];_0x329319(_0x4abbb7),_0x470019&&_0x2c122b[_0x3d798a(0x1c8)][_0x4abbb7[0x0]][_0x3d798a(0x23a)]({'preventScroll':!![]});},[_0x27d11a,_0x712618,_0x329319]),_0x340dad=_0x5a5522[_0x3357ed(0x2db)](_0x34f06e=>_0x3eab75=>{_0x3eab75&&(_0x2c122b['current'][_0x34f06e]=_0x3eab75);},[]);return _0x5a5522[_0x3357ed(0x124)](()=>{const _0x45a463=_0x3357ed;if(_0x4e9db0||!_0x1ed5fb)return;return _0x1ed5fb['addEventListener'](_0x45a463(0x2dc),_0x3e5e44),()=>{const _0xf3bdc9=_0x45a463;_0x1ed5fb[_0xf3bdc9(0x19b)]('keydown',_0x3e5e44);};},[_0x4a3d54,_0x3e5e44,_0x4e9db0,_0x1ed5fb]),_0x5a5522[_0x3357ed(0x124)](()=>{const _0x208a58=_0x3357ed,_0x25f103=_0x4a3d54[_0x208a58(0x1a7)](({id:_0xdbe04b})=>_0xdbe04b);_0x586487(_0x25f103),Object['keys'](_0x2c122b[_0x208a58(0x1c8)])['forEach'](_0x524ea8=>{const _0x59fb8d=_0x208a58;!_0x25f103['includes'](_0x524ea8)&&delete _0x2c122b[_0x59fb8d(0x1c8)][_0x524ea8];});},[_0x4a3d54,_0x586487]),{'containerRef':_0x712618,'onAssetKeyDown':_0x3cbb9f,'onAssetMouseDown':_0x4c41a0,'onContainerMouseDown':_0x320213,'onSelectionAreaChange':_0xde0b0a,'selectedAssets':_0x4df097['selectedAssets'],'setContainerRef':_0x199bb5,'setAssetRef':_0x340dad};},useAssetsActions=(_0x464aa3,_0x3e5ed7,_0x20c7ea,_0x295d18=!![])=>{const _0x1c9332=_0x3d1493,{mutateAsync:_0x59fdf8}=useDeleteAssets(),{mutateAsync:_0x23fd52}=useUpdateAsset(),{mutateAsync:_0x3a63a6}=useUpdateAssetLastUse(),{fetchAsset:_0x1824fe}=useLazyGetAsset(),{api:_0x1640be}=useApi(),{rootEl:_0x672aaf}=useUIContext(),{downloadFile:_0x38cd7f}=useDownload(_0x672aaf),[_0x505f5b,_0x108882]=_0x5a5522[_0x1c9332(0x1e4)]([]),_0x372d83=()=>{const _0x1ad4a5=_0x1c9332;_0x20c7ea({'id':Object[_0x1ad4a5(0x216)](_0x3e5ed7)[0x0]});},_0x190198=()=>{_0x20c7ea({'id':undefined});},_0x32f983=()=>{_0x20c7ea({'id':Object['keys'](_0x3e5ed7)[0x0],'focusFileName':!![]});},_0x716210=_0x5a5522[_0x1c9332(0x2db)](()=>{_0x108882([]);},[]),_0x23dc01=_0x5a5522['useCallback'](async()=>{const _0x4933ba=_0x1c9332;await _0x59fdf8(_0x505f5b[_0x4933ba(0x2c5)]((_0x23cb6c,{id:_0x2fb950,categoryId:_0x20cc69})=>{const _0xba0962=_0x4933ba;return Object[_0xba0962(0x2b3)](Object['assign']({},_0x23cb6c),{[_0x2fb950]:{'categoryId':_0x20cc69}});},{})),_0x108882([]);},[_0x505f5b,_0x59fdf8]),_0x147677=_0x5a5522['useCallback'](()=>{const _0x2b4090=_0x1c9332;if(!_0x295d18)return;_0x108882(_0x464aa3[_0x2b4090(0x185)](_0x55b666=>!!_0x3e5ed7[_0x55b666['id']]));},[_0x464aa3,_0x295d18,_0x3e5ed7]),_0x24d33e=async(_0x2c0f52,_0x5d68a3,{name:_0x5a2bb9,extension:_0x20441b,description:_0x4a7247})=>{const _0x54ff1c={'name':_0x5a2bb9,'extension':_0x20441b,'metadata':{'description':_0x4a7247!==null&&_0x4a7247!==void 0x0?_0x4a7247:''}};await _0x23fd52({'assetId':_0x2c0f52,'categoryId':_0x5d68a3,'payload':_0x54ff1c}),_0x20c7ea({'id':undefined});},_0x59c90e=async()=>{const _0x4104c5=_0x1c9332,_0x331cb5=Object['keys'](_0x3e5ed7)[0x0],_0x3c4564=_0x1640be[_0x4104c5(0x29e)][_0x4104c5(0x272)](_0x331cb5,!![]),_0x4b946e=_0x464aa3['find'](({id:_0x1e28db})=>_0x1e28db===_0x331cb5),_0x34115b=await _0x1824fe(_0x4b946e);_0x34115b&&_0x38cd7f(_0x3c4564);},_0x3c3e5d=_0x4af42a=>{const _0x198373=_0x1c9332;_0x3a63a6(_0x4af42a[_0x198373(0x1a7)](({id:_0x3e688a})=>_0x3e688a));};return _0x5a5522[_0x1c9332(0x124)](()=>{const _0x1fbf19=_0x464aa3['map'](({id:_0xc4cf36})=>_0xc4cf36);_0x20c7ea(_0x5185cb=>{const _0x325f55=_0x2ffc;var {id:_0x58c384}=_0x5185cb,_0x1d7745=__rest(_0x5185cb,['id']);return Object[_0x325f55(0x2b3)]({'id':_0x58c384&&_0x1fbf19[_0x325f55(0x12e)](_0x58c384)?_0x58c384:undefined},_0x1d7745);});},[_0x464aa3,_0x20c7ea]),_0x5a5522[_0x1c9332(0x124)](()=>{const _0x288c09=_0x1c9332;if(!_0x672aaf)return;const _0x43316e=_0x29ea27=>{const _0xd2e70=_0x2ffc;_0x29ea27[_0xd2e70(0x284)]===_0xd2e70(0x1ce)&&_0x147677();};return _0x672aaf[_0x288c09(0x109)](_0x288c09(0x2dc),_0x43316e),()=>{const _0x57b69d=_0x288c09;_0x672aaf[_0x57b69d(0x19b)](_0x57b69d(0x2dc),_0x43316e);};},[_0x147677,_0x672aaf,_0x3e5ed7]),{'assetsToDelete':_0x505f5b,'handleAssetUpdate':_0x24d33e,'handleDeleteCancel':_0x716210,'handleDeleteConfirm':_0x23dc01,'handleDelete':_0x147677,'handleDownload':_0x59c90e,'handleUpdateLastChooseDate':_0x3c3e5d,'handlePropertiesClose':_0x190198,'handlePropertiesOpen':_0x372d83,'handleRename':_0x32f983};},Assets=_0x5a5522[_0x3d1493(0x142)](({assets:_0x59a4a4,displayOptions:_0x5bc8e6,estimatedTotalAssetsCount:_0x4f8036,isFilesDropActive:_0x27c7f8,totalAssetsCount:_0x23ea28,pageNumber:_0x4d9149,onChoose:_0x2d526c,onPageChange:_0x528f80,fallbackContent:_0x28a485,isInitDataLoading:_0x4eb936,isNextDataLoading:_0x36572f,uploadButton:_0x4caa48},_0x3e33c3)=>{const _0x599b1f=_0x3d1493,{showPrimaryLoader:_0x3891d8,showSecondaryLoader:_0x2bfb91}=useLoader(_0x4eb936,_0x36572f),[_0x986366,_0xdeece0]=_0x5a5522['useState']({'id':undefined,'focusFileName':![]}),{containerRef:_0x1d8dc5,onAssetKeyDown:_0x506139,onAssetMouseDown:_0x72237e,onContainerMouseDown:_0x1b1cb7,onSelectionAreaChange:_0x515978,selectedAssets:_0x417ab2,setContainerRef:_0x50234a,setAssetRef:_0x147929}=useAssetsSelection(_0x59a4a4,!!_0x986366['id']),{assetsToDelete:_0x22e38d,handleAssetUpdate:_0x40b9d6,handleDeleteCancel:_0x1b9fab,handleDeleteConfirm:_0xe31267,handleDelete:_0x138af6,handleDownload:_0x10a175,handleUpdateLastChooseDate:_0x44116f,handlePropertiesClose:_0x485b89,handlePropertiesOpen:_0x3a3c34,handleRename:_0x31e566}=useAssetsActions(_0x59a4a4,_0x417ab2,_0xdeece0,!_0x986366['id']),_0x59089d=Object[_0x599b1f(0x216)](_0x417ab2),_0x4169d1=_0x59089d[_0x599b1f(0x24a)],_0x2ae259=_0x4169d1>0x0,_0x22251a=_0x4169d1===0x1,_0x4c3a61=_0x59a4a4[_0x599b1f(0x273)](({id:_0x5f157a})=>_0x59089d[0x0]===_0x5f157a),_0x5bfc57=()=>{const _0x55ea92=_0x59a4a4['filter'](({id:_0x5031a9})=>!!_0x417ab2[_0x5031a9]);_0x2d526c===null||_0x2d526c===void 0x0?void 0x0:_0x2d526c(_0x55ea92),_0x44116f(_0x55ea92);},_0x27899a=_0x5a5522['useRef'](_0x1ee350=>{_0x50234a(_0x1ee350);if(typeof _0x3e33c3==='function')_0x3e33c3(_0x1ee350);else _0x3e33c3&&(_0x3e33c3['current']=_0x1ee350);});return _0x5a5522[_0x599b1f(0x1a9)](_0x5a5522[_0x599b1f(0x2fa)],null,_0x5a5522[_0x599b1f(0x1a9)](View,{'bottombar':!_0x3891d8&&_0x23ea28>0x0&&_0x5a5522[_0x599b1f(0x1a9)](AssetsBottombar,{'assetsPerPage':_0x5bc8e6[_0x599b1f(0x196)],'isLoading':_0x2bfb91,'onChoose':_0x2d526c?_0x5bfc57:undefined,'onPageChange':_0x528f80,'pageNumber':_0x4d9149,'selectedAssetsNum':_0x4169d1,'totalAssetsCount':_0x23ea28}),'topbar':_0x5a5522['createElement'](AssetsTopbar,{'displayOptions':_0x5bc8e6,'isDeleteActive':_0x2ae259,'isDownloadActive':_0x22251a,'isPropertiesActive':_0x22251a,'onDelete':_0x138af6,'onDownload':_0x10a175,'onProperties':_0x3a3c34,'onRename':_0x31e566,'uploadButton':_0x4caa48}),'ref':_0x27899a[_0x599b1f(0x1c8)],'isContentActive':_0x27c7f8,'onContentMouseDown':_0x1b1cb7},_0x5a5522['createElement'](AssetsContent,{'assetsPerPage':_0x5bc8e6['assetsPerPage'],'allowCover':!_0x5bc8e6[_0x599b1f(0x1f1)],'assets':_0x59a4a4,'estimatedTotalAssetsCount':_0x4f8036,'containerRef':_0x1d8dc5,'fallbackContent':_0x28a485,'onAssetKeyDown':_0x506139,'onAssetMouseDown':_0x72237e,'onSelectionAreaChange':_0x515978,'pageNumber':_0x4d9149,'selectedAssets':_0x417ab2,'isLoading':_0x3891d8||_0x2bfb91,'thumbSize':_0x5bc8e6['thumbSize'],'setAssetRef':_0x147929})),_0x4c3a61&&_0x986366['id']&&_0x5a5522[_0x599b1f(0x1a9)](AssetPropertiesDialog,{'assetData':_0x4c3a61,'focusFileName':_0x986366[_0x599b1f(0x266)],'onClose':_0x485b89,'onSave':_0x40b9d6}),_0x5a5522['createElement'](AssetsDeleteDialog,{'assetsToDelete':_0x22e38d,'onConfirm':_0xe31267,'onCancel':_0x1b9fab}));});Assets['displayName']='Assets';const ErrorContainer=({error:_0xc203b5})=>{const _0xa45999=_0x3d1493,{t:_0x5e0be9}=useTranslation();return _0x5a5522[_0xa45999(0x1a9)](NotificationDetails,{'type':'error','title':_0x5e0be9(_0xa45999(0x275))},_0x5a5522[_0xa45999(0x1a9)](_0xa45999(0xf0),null,_0x5a5522[_0xa45999(0x1a9)](_0xa45999(0xff),null,_0x5e0be9(_0xa45999(0x234)))),_0xc203b5&&_0x5a5522[_0xa45999(0x1a9)](_0xa45999(0xf0),null,_0xc203b5['name']+':\x20'+_0xc203b5[_0xa45999(0x12f)]));},Notifications=()=>{const _0x37ff4b=_0x3d1493,{t:_0x13f19b}=useTranslation(),{bottomOffsetEl:_0x5cb479,notifications:_0x1bb6f9,dismissNotification:_0x19d860}=useNotifications(),_0x373402=_0x3e9488=>()=>{_0x19d860(_0x3e9488);};return _0x5a5522[_0x37ff4b(0x1a9)](_0x4c5fdf,{'bottomOffsetEl':_0x5cb479},_0x1bb6f9['map'](({title:_0x2cdcd0,type:_0x62d0ca,details:_0xce7f44,id:_0x1ed7e0})=>_0x5a5522['createElement'](Notification,{'closeLabel':_0x13f19b('Close'),'closeDetailsLabel':_0x13f19b('Close\x20details'),'details':_0xce7f44,'key':_0x1ed7e0,'onClose':_0x373402(_0x1ed7e0),'title':_0x2cdcd0,'openDetailsLabel':_0x13f19b(_0x37ff4b(0x2f2)),'type':_0x62d0ca})));},TimeLeft=({time:_0x308d0d})=>{const _0x37bf7e=_0x3d1493,{t:_0x552a5f}=useTranslation(),{h:_0x13efbe,m:_0x29543d,s:_0x38c158}=formatTimeDistance(_0x308d0d);if(_0x13efbe>0x18)return _0x5a5522[_0x37bf7e(0x1a9)](_0x37bf7e(0x2a7),null,_0x552a5f(_0x37bf7e(0x2d1)));else{if(_0x13efbe&&_0x29543d){const _0xf3eaae=_0x552a5f('%d\x20h',{'values':[_0x13efbe],'plural':_0x13efbe}),_0x1243e4=_0x552a5f('%d\x20min',{'values':[_0x29543d],'plural':_0x29543d});return _0x5a5522[_0x37bf7e(0x1a9)](_0x37bf7e(0x2a7),null,_0x552a5f('%s\x20left',{'values':[_0xf3eaae+'\x20'+_0x1243e4]}));}else{if(_0x13efbe){const _0x301f52=_0x552a5f(_0x37bf7e(0x156),{'values':[_0x13efbe],'plural':_0x13efbe});return _0x5a5522[_0x37bf7e(0x1a9)](_0x37bf7e(0x2a7),null,_0x552a5f(_0x37bf7e(0x2e4),{'values':[_0x301f52]}));}else{if(_0x29543d&&_0x38c158){const _0x283848=_0x552a5f(_0x37bf7e(0x1a8),{'values':[_0x29543d],'plural':_0x29543d}),_0x54e0e4=_0x552a5f('%d\x20s',{'values':[_0x38c158],'plural':_0x38c158});return _0x5a5522[_0x37bf7e(0x1a9)](_0x37bf7e(0x2a7),null,_0x552a5f('%s\x20left',{'values':[_0x283848+'\x20'+_0x54e0e4]}));}else{if(_0x29543d){const _0x3e6f47=_0x552a5f(_0x37bf7e(0x1a8),{'values':[_0x29543d],'plural':_0x29543d});return _0x5a5522[_0x37bf7e(0x1a9)](_0x37bf7e(0x2a7),null,_0x552a5f(_0x37bf7e(0x2e4),{'values':[_0x3e6f47]}));}else{if(_0x38c158){const _0x48ba00=_0x552a5f('%d\x20s',{'values':[_0x38c158],'plural':_0x38c158});return _0x5a5522['createElement'](_0x37bf7e(0x2a7),null,_0x552a5f(_0x37bf7e(0x2e4),{'values':[_0x48ba00]}));}else return null;}}}}}},UploadButton=({category:_0xdf1c24})=>{const _0x342737=_0x3d1493,{t:_0xc45a90}=useTranslation(),{register:_0x304939,handleSubmit:_0x58917e,reset:_0x416920}=useForm(),{startUpload:_0x52894c}=useStartUpload(_0xdf1c24),_0x32419b=_0x58917e(_0x1b495d=>{const _0x4eaa2b=_0x2ffc,_0x2ff55e=Array[_0x4eaa2b(0x2c4)](_0x1b495d[_0x4eaa2b(0x28a)]);_0x416920(),_0x52894c(_0x2ff55e);}),_0x5685d8=_0x304939(_0x342737(0x28a)),{onChange:_0x137780}=_0x5685d8,_0x3dd8f0=__rest(_0x5685d8,[_0x342737(0x27e)]),_0x15e52d=async _0x5a9f7a=>{await _0x137780(_0x5a9f7a),await _0x32419b();};return _0x5a5522[_0x342737(0x1a9)](Form,{'onSubmit':_0x32419b},_0x5a5522[_0x342737(0x1a9)](FileInputButton,Object[_0x342737(0x2b3)]({'id':_0x342737(0x28a),'color':_0x342737(0x2c3),'type':_0x342737(0x18b),'icon':_0x342737(0x253)},_0x3dd8f0,{'onChange':_0x15e52d,'accept':_0xdf1c24[_0x342737(0x29a)][_0x342737(0x1a7)](_0x36bd2d=>'.'+_0x36bd2d)[_0x342737(0x212)](',')}),_0xc45a90(_0x342737(0x253))));},UploadDialogFooter=({onAbortClick:_0x46b06b,onErrorClick:_0x1ec01a,queue:_0x5da62e})=>{const _0x3683a9=_0x3d1493,{t:_0x25b11a}=useTranslation(),_0x4b9631=[],_0x5543d0=_0x5da62e['length'],{abortable:_0x2c4884,errors:_0x40cd50,uploaded:_0x35b934}=_0x5da62e['reduce']((_0xbe079f,{abortable:_0x3a3cfe,error:_0x1a3700,status:_0x6ef1a})=>{const _0x13668e=_0x2ffc,_0x1d3019=_0x6ef1a===UploadStatus[_0x13668e(0x29d)];return{'abortable':_0xbe079f[_0x13668e(0x11e)]||!!_0x3a3cfe,'errors':_0x1a3700?_0xbe079f[_0x13668e(0x178)]+0x1:_0xbe079f[_0x13668e(0x178)],'uploaded':_0x1d3019?_0xbe079f[_0x13668e(0x161)]+0x1:_0xbe079f[_0x13668e(0x161)]};},{'abortable':![],'errors':0x0,'uploaded':0x0});return _0x40cd50>0x0&&_0x4b9631[_0x3683a9(0x239)]({'label':_0x25b11a(_0x3683a9(0x10b),{'plural':_0x40cd50,'values':[_0x40cd50],'processTags':!![]}),'error':!![],'onClick':_0x1ec01a}),_0x5543d0>0x0&&_0x4b9631[_0x3683a9(0x239)]({'label':_0x25b11a(_0x3683a9(0x101),{'plural':_0x5543d0,'values':[_0x35b934,_0x5543d0],'processTags':!![]})}),_0x5a5522[_0x3683a9(0x1a9)](DialogFooter,{'sideContent':_0x4b9631},!!_0x2c4884&&_0x5a5522[_0x3683a9(0x1a9)](Button,{'color':_0x3683a9(0x1f6),'onClick':_0x46b06b},_0x25b11a(_0x3683a9(0x293))));},getErrorMsg=(_0x13970d,_0x25ed0a,_0x54a4dc)=>{const _0x19cd18=_0x3d1493;switch(_0x54a4dc===null||_0x54a4dc===void 0x0?void 0x0:_0x54a4dc['type']){case UploadErrorType[_0x19cd18(0x17f)]:return _0x13970d(_0x19cd18(0x188),{'values':[_0x25ed0a],'processTags':!![]});case UploadErrorType['PLAN_EXCEEDED_RESOLUTION']:return _0x13970d('Maximum\x20image\x20resolution\x20allowed\x20is\x20%s',{'values':[(_0x54a4dc===null||_0x54a4dc===void 0x0?void 0x0:_0x54a4dc['msg'])+'MP']});case UploadErrorType[_0x19cd18(0x27c)]:return _0x13970d(_0x19cd18(0x295),{'values':[getAssetSize(parseInt((_0x54a4dc===null||_0x54a4dc===void 0x0?void 0x0:_0x54a4dc[_0x19cd18(0x1b1)])||'0'))]});default:return _0x13970d('An\x20error\x20has\x20occurred');}},getHelpTextMsg=(_0x4f79f1,_0x5ef354,_0x1c7391,_0x344577)=>{const _0x12f290=_0x3d1493;switch(_0x5ef354){case UploadStatus[_0x12f290(0x14a)]:return _0x4f79f1(_0x12f290(0x174));case UploadStatus[_0x12f290(0x261)]:return getErrorMsg(_0x4f79f1,_0x1c7391,_0x344577);case UploadStatus[_0x12f290(0x2e1)]:return _0x4f79f1(_0x12f290(0x24b));default:return undefined;}},getProgress=(_0x1b59aa,_0x127364)=>{const _0x5a11dd=_0x3d1493;switch(_0x1b59aa){case UploadStatus[_0x5a11dd(0x29d)]:case UploadStatus[_0x5a11dd(0x22d)]:return Math[_0x5a11dd(0x119)](_0x127364!==null&&_0x127364!==void 0x0?_0x127364:0x0);default:return 0x0;}},UploadProgressPanel=_0x5a5522['forwardRef'](({categoryName:_0x4e65dc,errorData:_0x36f58e,id:_0xd97abb,name:_0x2bc5a9,overhead:_0x3c017e,progress:_0x1bb02d,size:_0x1a1cf4,status:_0x3f8db1,uploaded:_0x31ce6d},_0x590959)=>{const _0x23fbb6=_0x3d1493,{t:_0x2c9959}=useTranslation(),_0x9206ac=_0x3f8db1===UploadStatus['COMPLETED']||_0x3f8db1===UploadStatus[_0x23fbb6(0x22d)];return _0x5a5522[_0x23fbb6(0x1a9)](ProgressPanel,{'ref':_0x590959,'additionalInfo':_0x3c017e?_0x2c9959(_0x23fbb6(0x181),{'values':[getAssetSize(_0x9206ac?_0x31ce6d-_0x3c017e:0x0),getAssetSize(_0x1a1cf4)]}):null,'error':_0x36f58e!==undefined,'completed':_0x3f8db1===UploadStatus[_0x23fbb6(0x29d)],'helpText':getHelpTextMsg(_0x2c9959,_0x3f8db1,_0x4e65dc,_0x36f58e),'id':_0xd97abb,'title':_0x2bc5a9,'value':getProgress(_0x3f8db1,_0x1bb02d)});});UploadProgressPanel[_0x3d1493(0x2f9)]=_0x3d1493(0x168);var UploadProgressPanel$1=_0x5a5522[_0x3d1493(0x1c7)](UploadProgressPanel);const AUTO_SCROLL_TIMEOUT=0x3e8,UploadQueue=({queue:_0x5e1a51,scrollTo:_0x472a55})=>{const _0x201331=_0x3d1493,_0x47a230=_0x5a5522[_0x201331(0x2a0)](!![]),[_0x34ccb3,_0x6355b2]=_0x5a5522[_0x201331(0x1e4)](null),_0x36965a=_0x5a5522[_0x201331(0x2a0)](_0x464534(_0x4f86aa=>{const _0x1344fd=_0x201331,_0x4d23a2={'block':_0x1344fd(0x1d4)};_0x47a230[_0x1344fd(0x1c8)]?_0x47a230['current']=![]:_0x4d23a2['behavior']='smooth',_0x4f86aa[_0x1344fd(0x1ab)](_0x4d23a2);},AUTO_SCROLL_TIMEOUT,{'leading':!![]}));return _0x5a5522[_0x201331(0x124)](()=>{if(!_0x34ccb3)return;_0x36965a['current'](_0x34ccb3);},[_0x34ccb3]),_0x5a5522['createElement'](_0x201331(0xf0),null,_0x5e1a51[_0x201331(0x1a7)](({category:_0xe98cc,error:_0x5f2e58,id:_0x1bfa55,name:_0x1d9ea6,progress:_0x17babb,size:_0x196a9b,status:_0x4f4bbe,overhead:_0x1312f5,uploaded:_0x498a26})=>_0x5a5522['createElement'](UploadProgressPanel$1,{'ref':_0x472a55&&_0x472a55['id']===_0x1bfa55?_0x6355b2:undefined,'key':_0x1bfa55,'categoryName':_0xe98cc['name'],'errorData':_0x5f2e58,'id':_0x1bfa55,'name':_0x1d9ea6,'overhead':_0x1312f5,'size':_0x196a9b,'status':_0x4f4bbe,'progress':_0x17babb,'uploaded':_0x498a26})));};var UploadQueue$1=_0x5a5522[_0x3d1493(0x1c7)](UploadQueue);const opts={},getSubTitle=(_0x16e33c,_0x1615a6,_0x15c29f)=>{const _0x359e73=_0x3d1493;return _0x1615a6?_0x16e33c(_0x359e73(0x163),opts):_0x15c29f?_0x16e33c('Upload\x20finished',opts):undefined;},DRAG_TIMEOUT=0x3e8,UploadDialog=()=>{const _0x4fda63=_0x3d1493,{t:_0x44d469}=useTranslation(),{autoScroll:_0x10821b,closeDialog:_0x31e7c9,disableAutoFeats:_0x701130,disableAutoHide:_0x37bc9f,isDialogOpen:_0x52ce39}=useUploadComponents$1(),{abortUpload:_0x3b4982}=useUploadUpdater(),{estimatedTimeLeft:_0x87e236,totalProgress:_0x6f9329,queue:_0x44ff21,concluded:_0x2b4484,aborted:_0x26fd03,focusedAsset:_0x5b82ad}=useUploadState(),_0x3620d8=_0x5a5522[_0x4fda63(0x2a0)](null),_0x50357e=_0x5a5522[_0x4fda63(0x2a0)](_0x464534(_0x37bc9f,DRAG_TIMEOUT,{'leading':!![]}));if(!_0x52ce39)return null;const _0x4d4baa=()=>{_0x3b4982(_0x44ff21);},_0x5e0eba=()=>{_0x31e7c9(_0x2b4484);},_0x3d0187=()=>{const _0x16dddc=_0x4fda63;var _0x31708c;_0x701130(),(_0x31708c=_0x3620d8[_0x16dddc(0x1c8)])===null||_0x31708c===void 0x0?void 0x0:_0x31708c[_0x16dddc(0x140)]({'top':0x0,'behavior':_0x16dddc(0x15d)});},_0x295ec0=Math[_0x4fda63(0x119)](_0x6f9329!==null&&_0x6f9329!==void 0x0?_0x6f9329:0x0);return _0x5a5522[_0x4fda63(0x1a9)](Dialog,{'draggable':!![],'height':'md','onDrag':_0x50357e[_0x4fda63(0x1c8)],'onClose':_0x5e0eba},_0x5a5522[_0x4fda63(0x1a9)](DialogHeader,{'autofocus':!![],'closeLabel':_0x44d469('Close\x20upload\x20dialog'),'subTitle':_0x87e236?_0x5a5522['createElement'](TimeLeft,{'time':Math['round'](_0x87e236/0x3e8)}):getSubTitle(_0x44d469,_0x26fd03,_0x2b4484),'title':_0x295ec0+'%','inProgress':!_0x2b4484,'progress':!![],'progressValue':_0x295ec0}),_0x5a5522[_0x4fda63(0x1a9)](DialogColumn,{'ref':_0x3620d8,'overflow':!![],'onKeyDown':_0x701130,'onMouseDown':_0x701130,'onTouchStart':_0x701130,'onWheel':_0x701130},_0x5a5522[_0x4fda63(0x1a9)](UploadQueue$1,{'scrollTo':_0x10821b?_0x5b82ad:undefined,'queue':_0x44ff21})),_0x5a5522['createElement'](UploadDialogFooter,{'onAbortClick':_0x4d4baa,'onErrorClick':_0x3d0187,'queue':_0x44ff21}));},CoreFallbackProviders=({error:_0x2c773e})=>{const _0x25ab42=_0x3d1493,{language:_0x11cb99,dialog:_0x46475f,theme:_0xc5ad3b}=useCoreContext();return _0x5a5522['createElement'](LanguageProvider,{'language':_0x11cb99},_0x5a5522[_0x25ab42(0x1a9)](UIProvider,{'dialog':_0x46475f,'theme':_0xc5ad3b},_0x5a5522[_0x25ab42(0x1a9)](ErrorContainer,{'error':_0x2c773e})));};function _0x12ed(){const _0x4c4571=['join','abort','api','progressBatchInterval','keys','ASCENDING','offsetTop','uploadSpeeds','CHANGE_VIEW','lang','useContext','CHANGE_VIEW_PAGE','post','uploadFile','DISABLE_AUTO_FEATURES','stringify','An\x20error\x20has\x20occurred','Category\x20position\x20updated.','<strong>%d</strong>\x20of\x20<strong>%d</strong>\x20file\x20uploaded','Low','CHANGE_DIALOG_DIMENSIONS','Category\x20updated\x20successfully.','<strong>%d</strong>\x20of\x20<strong>%d</strong>\x20files\x20uploaded','progress','isUnauthorizedError','Trash','startId','IN_PROGRESS','PATCH','edit','Component','type','RIGHT','Display\x20options','An\x20unexpected\x20application\x20error\x20has\x20occurred.','/assets/recent','Unauthorized\x20operation.','_handlers','page','push','focus','Modification\x20date','FORBIDDEN','Image','onError','set','SELECT_RANGE','Check','Storage\x20quota\x20exceeded','Empty','toFixed','loading-fallback','CLEAR_QUEUE','categories','Folder','call','length','Pending','Settings','Height','ADMIN','File\x20updated\x20successfully.','%d\x20sec','toString','isValidationError','Upload','dialog','endsWith','getAsset','ArrowRight','CKBoxDefault','Cabinet','categoryPanel','config','TOGGLE_DIALOG','Authorization','37200yGMaOA','forEach','isIndicatorOpen','ERROR','ceil','toLowerCase','getDerivedStateFromError','sortBy','focusFileName','selectionHistory','height','onFilesProcessed','items','Word','status','PLAN_EXCEEDED_SIZE_KEY','png','authClient','Assets\x20with\x20the\x20following\x20extensions\x20will\x20be\x20removed:','upload','getAssetUrl','find','scrollTop','Unexpected\x20error','Close','auth','has','invalidateQueries','[data-gallery-item]','max','PLAN_EXCEEDED_SIZE','error','onChange','Size','submit','reset','Category\x20name\x20is\x20required.','Archive','key','Unexpected\x20error.','/file','pow','top','/assets','files','%d\x20files\x20deleted\x20successfully.','form-','getAdminCategories','entries','This\x20operation\x20will\x20permanently\x20delete\x20assets\x20from\x20the\x20%s\x20category.\x20Are\x20you\x20sure\x20you\x20want\x20to\x20do\x20that?','Best','sortOrder','uploadedAt','Abort\x20upload','OPEN_INDICATOR','Maximum\x20file\x20size\x20allowed\x20is\x20%s','Descending','tiff','row','GATEWAY_TIMEOUT','extensions','CKBOX','Number\x20of\x20extensions\x20cannot\x20exceed\x20100.','COMPLETED','assets','category-','useRef','250','BASIC','category-name-','payload','START_UPLOAD','REJECT_UPLOAD','span','ArrowUp','Maximum\x20image\x20resolution\x20allowed\x20is\x20%s','boolean','SELECT_SINGLE','debug','/admin/categories/order','Copy','optional','currentTarget','_handler','messages','assign','onUploadConcluded','ChevronDown','substr','ENABLE_AUTO_HIDE','Medium','getRecentAssets','dialogDimensions','Pencil','activeElement','setQueryData','mutateAsync','NOT_FOUND','metadata','missing-assets','every','action','from','reduce','BAD_REQUEST','getQueryData','File\x20name\x20is\x20required.','_tokenPromise','_isReady','Music','_token','Allowed\x20extensions','Upload\x20finished','isDialogOpen','Initialize\x20`AuthClient`\x20in\x20order\x20to\x20use\x20`useAuth`\x20hook','More\x20than\x201\x20day\x20left','Cancel','-edit-confirm','recent','Category\x20not\x20found.','RESET_UPLOAD_COMPONENTS','getCategoryAssets','Are\x20you\x20sure\x20you\x20want\x20to\x20delete\x20<strong>%s</strong>\x20file?','Trace\x20ID:\x20','Resize\x20window','useCallback','keydown','getBoundingClientRect','Navigation','/categories','Category\x20ID','PENDING','sizeLimit','ref','%s\x20left','%d\x20secs','undefined','POST','_authConfig','outline','handle','megapixelsLimit','Docs','nonEmptyArray','There\x20are\x20no\x20assets\x20in\x20this\x20category','882JOqjyx','isAllowed','Cog','Open\x20details','%d\x20file\x20deleted\x20successfully.','8902310MovEUx','easydrive','Choose','OPEN_DIALOG','desc','displayName','Fragment','createUploadRequest','fetchToken','-delete-confirm','role','div','<strong>%d\x20files</strong>\x20selected','number','CKBOX_TRANSLATIONS','categoryId','File\x20extension\x20is\x20not\x20allowed\x20in\x20<strong>%s</strong>\x20category','Provider','/assets/delete','Resource\x20not\x20found.','unique','1788072asTUAO','size','Internal\x20server\x20error.','Are\x20you\x20sure\x20you\x20want\x20to\x20delete\x20%s\x20files?','Thumbnails','strong','navbarWidth','%d\x20of\x20%d\x20file\x20uploaded','Width','ArrowLeft','<strong>%d</strong>\x20errors','createContext','QUEUE_UPLOAD','Extension\x20must\x20not\x20exceed\x209\x20characters.','refresh','addEventListener','Good','%d\x20error','Remove\x20extensions\x20in\x20use','Sort\x20by','Category\x20name','nonDotValue','/assets/','Enter\x20page\x20number','totalAbortedUploaded','slice','patch','gif','load','cacheInvalidationInterval','get','round','sqrt','tokenValue','parse','maxLength','abortable','PLAN_EXCEEDED_RESOLUTION','DESELECT_ALL','isUnknownError','useReducer','CHANGE_SIDEBAR_WIDTH','useEffect','fetch','getAssetResponsiveImageUrl','statusCode','images','cleanup','concat','100','Close\x20upload\x20dialog','overhead','includes','message','\x20px','URL','category','Images','body','extensionsInUse','CHANGE_SORT_BY','Excel','code','append','string','getUrl','Display','traceId','File\x20name','defaultQuality','scrollTo','bmp','forwardRef','concluded','Img','lastSelectedRange','deleteAssets','UNAUTHORIZED','Asset\x20not\x20found.','reverse','ABORTED','tokenUrl','now','success','Responsive\x20images\x20quality','extensions-','min','File\x20extension\x20is\x20required.','324060QyKLlj','uploadBatch','Unknown\x20error.','Recent','%d\x20h','floor','totalSize','disableAutoHide','Name','You\x20are\x20about\x20to\x20permanently\x20delete\x20your\x20files!','Removing\x20an\x20extension\x20in\x20use\x20will\x20result\x20in\x20the\x20permanent\x20removal\x20of\x20files\x20with\x20this\x20extension.','smooth','then','ArrowDown','width','uploaded','TOGGLE_SORT_ORDER','Upload\x20aborted','Extension\x20cannot\x20contain\x20a\x20dot.','currentPages','toLocaleDateString','/admin/images/','UploadProgressPanel','updateAsset','77xggwvS','put','3852666chiHor','keep-aspect-ratio','name','autoHide','blurHash','state','Enter','isServerError','Aborted','onDialogDimensionsChange','3518708CHmfND','Image\x20quality:','errors','default','props','add','Category\x20with\x20this\x20name\x20already\x20exists.','INIT_VIEW','Remove\x20assets','EXTENSION_NOT_ALLOWED','totalCount','%s\x20of\x20%s','Info','onChoose','Remove\x20category','filter','componentDidCatch','Edit','File\x20extension\x20is\x20not\x20allowed\x20in\x20%s\x20category','Description\x20cannot\x20exceed\x201024\x20characters.','endId','fill','getItem','origin','chunksRecordedCount','UPDATE_PROGRESS','useMemo','DELETE','lastModifiedAt','stage','thumbSize','url-','assetsPerPage','TOGGLE_COVER_MODE','TOGGLE_SIDEBAR','chunksRecordedSize','Keep\x20aspect\x20ratio','removeEventListener','CLOSE_DIALOG','asc','Close\x20details','_tokenTimeout','INTERNAL_SERVER_ERROR','getImagesConfig','Description','Validation\x20failed.','1168137gUYxcP','?download=true','preventDefault','map','%d\x20min','createElement','DESCENDING','scrollIntoView','totalUploaded','80%','queue','category-name','bottom-end','msg','Ppt','Movie','createCategory','children','Download','setItems','Ascending','totalAbortedSize','/admin/categories','getToken','EXTEND_OR_DESELECT','DISABLE_ABORT','delete','Remove\x20%s\x20extension','range','selectedAssets','sort','extension','File\x20extension\x20is\x20not\x20allowed.','This\x20operation\x20will\x20permanently\x20delete\x20the\x20%s\x20category\x20with\x20all\x20the\x20assets\x20in\x20it.\x20Are\x20you\x20sure\x20you\x20want\x20to\x20do\x20that?','json','memo','current','description','setRequestHeader','RANGE_END','Category\x20name\x20cannot\x20exceed\x20256\x20characters.','nonEmpty','Delete','0\x20B','updateCategory','next','High','<strong>%d\x20file</strong>\x20selected','center','Upload\x20date','maxItems','Clock','data','customAttributes','newlyAdded','title','Save','categoryName','send','some','right','ABORT_UPLOAD','CHANGE_THUMB_SIZE','admin','useState','findIndex','GET','PLAN_EXCEEDED_MEGAPIXELS_KEY','deleteCategory','of\x20%d','At\x20least\x20one\x20extension\x20must\x20be\x20specified.','stopPropagation','Are\x20you\x20sure\x20you\x20want\x20to\x20delete\x20%s\x20file?','tokenPayload','Please\x20type\x20the\x20category\x20name\x20to\x20continue:','CHANGE_ASSETS_PER_PAGE','setItem','allowCover','_authClient','CLEANUP_SELECTION','RECENT','File\x20extension\x20is\x20not\x20allowed\x20in\x20current\x20category.','danger','PUT','base','assetsCount','Copied!','DOWN','open','Add\x20category','LEFT','autoScroll','Open\x20upload\x20dialog','REJECTED','getCategory','numeric','File\x20size','bottom','values','log','updateImageFormatConfig','response','/admin/categories/','COMPLETE_UPLOAD','SELECT_MULTIPLE','getAssetThumbUrl','/images/','DISABLE_AUTO_HIDE','Properties','Asset\x20categories'];_0x12ed=function(){return _0x4c4571;};return _0x12ed();}class CoreErrorBoundary extends _0x5a5522[_0x3d1493(0x230)]{constructor(_0x1ba3f2){super(_0x1ba3f2),this['state']={'hasError':![]};}static[_0x3d1493(0x264)](_0x3f2fa7){return{'error':_0x3f2fa7,'hasError':!![]};}[_0x3d1493(0x186)](_0x556e03){const _0x546a57=_0x3d1493;console[_0x546a57(0x27d)](_0x556e03);}['render'](){const _0x4db5ac=_0x3d1493;if(this[_0x4db5ac(0x171)]['hasError'])return _0x5a5522['createElement'](CoreFallbackProviders,{'error':this['state'][_0x4db5ac(0x27d)]});return this[_0x4db5ac(0x17a)][_0x4db5ac(0x1b5)];}}const Category=({category:_0x33ff19,onChoose:_0x2f703f,suspendAssetsFetch:_0x161e8e})=>{const _0x1a91e0=_0x3d1493;var _0x1636d6,_0x40242e;const {t:_0xeb3c9b}=useTranslation(),{allowCover:_0x146d01,assetsPerPage:_0x1f1271,currentPages:_0x3beb0e,onCoverModeToggle:_0x12e1bb,onAssetsPerPageChange:_0x3e804a,onSortByChange:_0x4f40a7,onSortOrderToggle:_0x420451,onThumbSizeChange:_0x52f8df,onViewPageChange:_0x10e524,sortBy:_0x2d5c9d,sortOrder:_0x26d6b5,thumbSize:_0x5d3bf4}=useUserData$1(),{startUpload:_0x434966}=useStartUpload(_0x33ff19),{drop:_0x2494cd,isActive:_0x37a57d}=useFilesDrop({'onDrop':_0x434966}),_0x15b137=(_0x1636d6=_0x3beb0e[_0x33ff19['id']])!==null&&_0x1636d6!==void 0x0?_0x1636d6:0x1,{data:_0x2687da,isLoading:_0x488842,isPreviousData:_0x2b4110}=useGetCategoryAssets({'categoryId':_0x33ff19['id'],'offset':(_0x15b137-0x1)*_0x1f1271,'limit':_0x1f1271,'sort_by':_0x2d5c9d,'order':_0x26d6b5},!_0x161e8e),_0x5552be=_0xd8576b=>{_0x10e524(_0x33ff19['id'],_0xd8576b);};return _0x5a5522[_0x1a91e0(0x1a9)](Assets,{'ref':_0x2494cd,'assets':(_0x40242e=_0x2687da===null||_0x2687da===void 0x0?void 0x0:_0x2687da[_0x1a91e0(0x26a)])!==null&&_0x40242e!==void 0x0?_0x40242e:[],'displayOptions':{'allowCover':_0x146d01,'assetsPerPage':_0x1f1271,'assetsPerPageOptions':[{'label':'50','onSelect':()=>{_0x3e804a(0x32);}},{'label':_0x1a91e0(0x12b),'onSelect':()=>{_0x3e804a(0x64);}},{'label':'250','onSelect':()=>{_0x3e804a(0xfa);}}],'onCoverModeToggle':_0x12e1bb,'onThumbSizeChange':_0x52f8df,'thumbSize':_0x5d3bf4,'sort':_0xeb3c9b(_0x2d5c9d),'sortOrder':_0x26d6b5,'onSortOrderToggle':_0x420451,'sortOptions':[{'label':_0xeb3c9b(_0x1a91e0(0x16e)),'onSelect':()=>{_0x4f40a7('name');}},{'label':_0xeb3c9b(_0x1a91e0(0xfb)),'onSelect':()=>{const _0x2a90b0=_0x1a91e0;_0x4f40a7(_0x2a90b0(0xfb));}},{'label':_0xeb3c9b(_0x1a91e0(0x292)),'onSelect':()=>{const _0x5a5b0b=_0x1a91e0;_0x4f40a7(_0x5a5b0b(0x292));}},{'label':_0xeb3c9b(_0x1a91e0(0x192)),'onSelect':()=>{const _0xcd0d55=_0x1a91e0;_0x4f40a7(_0xcd0d55(0x192));}}]},'estimatedTotalAssetsCount':_0x33ff19[_0x1a91e0(0x1f9)],'totalAssetsCount':(_0x2687da===null||_0x2687da===void 0x0?void 0x0:_0x2687da[_0x1a91e0(0x180)])||0x0,'pageNumber':_0x15b137,'onChoose':_0x2f703f,'onPageChange':_0x5552be,'fallbackContent':_0x5a5522['createElement'](EmptyView,{'icon':_0x1a91e0(0x248),'label':_0xeb3c9b(_0x1a91e0(0x2ee)),'active':_0x37a57d,'actionContainer':_0x5a5522[_0x1a91e0(0x1a9)](UploadButton,{'category':_0x33ff19})}),'isInitDataLoading':_0x488842||_0x161e8e,'isNextDataLoading':_0x2b4110,'uploadButton':_0x5a5522[_0x1a91e0(0x1a9)](UploadButton,{'category':_0x33ff19}),'isFilesDropActive':_0x37a57d});},IMAGES_QUALITIES_TRANSLATION_KEYS={0x14:_0x3d1493(0x225),0x28:_0x3d1493(0x2b8),0x3c:_0x3d1493(0x10a),0x50:_0x3d1493(0x1d2),0x64:'Best'},DEFAULT_IMAGES_CONFIG_FORMAT=_0x3d1493(0x179),ImageFormatSettingsPanel=({initValues:_0x1e61bf,onSave:_0x2e6764,onEdit:_0x23414d,onCancel:_0x558855})=>{const _0x28c836=_0x3d1493,{t:_0x30f578}=useTranslation(),{defaultQuality:_0x73e839,editing:_0x25a6ca}=_0x1e61bf,_0x1ff554={'defaultQuality':_0x73e839},{reset:_0x59ec66,handleSubmit:_0x10385a,setValue:_0x387928,watch:_0x464199}=useForm({'defaultValues':_0x1ff554}),_0x2ae4bf=_0x464199(_0x28c836(0x13f)),_0x34280f=_0x3a6fd8=>{const _0x1c7ac4=_0x28c836;_0x387928(_0x1c7ac4(0x13f),_0x3a6fd8);},_0x5a6847=_0x10385a(async _0x40d1f6=>{await _0x2e6764(_0x40d1f6);}),_0x2a6df5=()=>{_0x59ec66(),_0x558855();},_0x314e29=_0x5a5522[_0x28c836(0x1a9)](PanelActions,null,_0x5a5522[_0x28c836(0x1a9)](Button,{'icon':_0x28c836(0x2bb),'onClick':_0x23414d,'color':_0x28c836(0x2c3),'type':_0x28c836(0x2e9)},_0x30f578(_0x28c836(0x187)))),_0x575b46=_0x5a5522[_0x28c836(0x1a9)](PanelActions,null,_0x5a5522[_0x28c836(0x1a9)](Button,{'htmlType':_0x28c836(0x281),'onClick':_0x2a6df5,'type':'outline'},_0x30f578(_0x28c836(0x2d2))),_0x5a5522[_0x28c836(0x1a9)](Button,{'htmlType':_0x28c836(0x280),'color':_0x28c836(0x2c3),'type':_0x28c836(0x18b)},_0x30f578(_0x28c836(0x1dc)))),_0x4a78d0=Object['entries'](IMAGES_QUALITIES_TRANSLATION_KEYS)[_0x28c836(0x2c5)]((_0x1e874a,[_0x31fd06,_0x46727c])=>{const _0xed4a6f=_0x28c836;return Object['assign'](Object[_0xed4a6f(0x2b3)]({},_0x1e874a),{[_0x31fd06]:_0x30f578(_0x46727c)});},{});return _0x5a5522[_0x28c836(0x1a9)](Panel,{'icon':_0x28c836(0x23d),'edit':_0x25a6ca,'onSubmit':_0x5a6847},_0x5a5522['createElement'](PanelTitle,{'title':_0x30f578(_0x28c836(0x14e))}),_0x5a5522[_0x28c836(0x1a9)](PanelContent,{'editHeader':_0x30f578('Use\x20the\x20slider\x20to\x20define\x20the\x20quality\x20of\x20responsive\x20images'),'editComponent':_0x5a5522[_0x28c836(0x1a9)](FormGroup,null,_0x5a5522[_0x28c836(0x1a9)](RangeSlider,{'animated':!![],'halfWidth':!![],'min':0x14,'max':0x64,'onChange':_0x34280f,'value':_0x2ae4bf,'step':0x14,'textValues':_0x4a78d0,'showLabels':!![]}))},_0x5a5522[_0x28c836(0x1a9)](PanelContentProp,{'label':_0x30f578(_0x28c836(0x177)),'value':_0x30f578(IMAGES_QUALITIES_TRANSLATION_KEYS[_0x73e839],{})})),_0x25a6ca?_0x575b46:_0x314e29);},useImageSettings=()=>{const _0x56a0eb=_0x3d1493,{data:data={},isLoading:_0x1497a5}=useGetImagesConfig(),{mutateAsync:_0xcaccf}=useUpdateImageFormatConfig(),[_0x3489b8,_0xeab2a0]=_0x5a5522[_0x56a0eb(0x1e4)](![]),_0x19a348=async({defaultQuality:_0x99c6a9})=>{const _0x2397e2={'defaultQuality':_0x99c6a9};await _0xcaccf({'format':DEFAULT_IMAGES_CONFIG_FORMAT,'payload':_0x2397e2}),_0xeab2a0(![]);},_0x302517=()=>{_0xeab2a0(!![]);},_0x550131=()=>{_0xeab2a0(![]);};return{'imagesConfig':data[DEFAULT_IMAGES_CONFIG_FORMAT],'imagesConfigLoading':_0x1497a5,'onSave':_0x19a348,'onEdit':_0x302517,'onCancel':_0x550131,'editing':_0x3489b8};},ImageFormatSettingsPanelLoader=()=>{const _0x480cf5=_0x3d1493;return _0x5a5522['createElement'](Panel,null,_0x5a5522['createElement'](PanelContent,null,_0x5a5522[_0x480cf5(0x1a9)](PanelSkeleton,{'size':'md','blocks':0x1})),_0x5a5522[_0x480cf5(0x1a9)](PanelContent,null,_0x5a5522[_0x480cf5(0x1a9)](PanelSkeleton,{'size':'lg','blocks':0x1})),_0x5a5522[_0x480cf5(0x1a9)](PanelActions,null,_0x5a5522['createElement'](PanelSkeleton,{'size':'md','blocks':0x2})));},ImagesSettings=()=>{const _0x30f87b=_0x3d1493,{imagesConfig:_0x1e7ec5,imagesConfigLoading:_0x3d73b7,editing:_0x35f308,onSave:_0x13413b,onCancel:_0x5f334f,onEdit:_0x1ff7bd}=useImageSettings(),_0x2f271c=useDeferredUnmount(_0x3d73b7,0xfa);if(_0x2f271c)return _0x5a5522[_0x30f87b(0x1a9)](PanelList,null,_0x5a5522['createElement'](ImageFormatSettingsPanelLoader,null));if(!(_0x1e7ec5===null||_0x1e7ec5===void 0x0?void 0x0:_0x1e7ec5[_0x30f87b(0x13f)]))return null;return _0x5a5522['createElement'](PanelList,null,_0x5a5522[_0x30f87b(0x1a9)](ImageFormatSettingsPanel,{'initValues':{'defaultQuality':_0x1e7ec5['defaultQuality'],'editing':_0x35f308},'onSave':_0x13413b,'onCancel':_0x5f334f,'onEdit':_0x1ff7bd}));},useAssetCategories=()=>{const _0x11bf78=_0x3d1493,{data:data=[],isLoading:_0x1e4bd6,isSuccess:_0x7e67c4}=useGetAdminCategories(),{data:_0x3854a1=[]}=useGetCategories(),{stageCategory:_0xc20a04,deleteCategory:_0x46c353,unstageCategory:_0x2ceaba,editCategory:_0x3cbe47}=useStageCategory(),{mutateAsync:_0x2eb564}=useDeleteCategory(),{mutateAsync:_0xe2539e}=useUpdateCategory(),{mutateAsync:_0x1e0cff}=useCreateCategory(),{mutateAsync:_0x51ac74}=useUpdateCategoriesOrder(),_0x478051=useListDnd([]),_0x123820=_0x478051[_0x11bf78(0x1b7)],_0x219be9=data[_0x11bf78(0x1df)](_0x784533=>!!_0x784533[_0x11bf78(0x193)]),_0xea67ce=data[_0x11bf78(0x2c5)]((_0x1ba0e2,_0xa2c4b3)=>{return _0x1ba0e2[_0xa2c4b3['id']]=_0xa2c4b3,_0x1ba0e2;},{}),_0x46a118=_0x478051[_0x11bf78(0x26a)][_0x11bf78(0x185)](({id:_0x1cce3c})=>!!_0xea67ce[_0x1cce3c]);_0xfe073b['useEffect'](()=>{const _0x3fda45=_0x11bf78;_0x7e67c4&&_0x123820(data[_0x3fda45(0x1a7)](({id:_0x3af109})=>({'id':_0x3af109})));},[data,_0x7e67c4,_0x123820]);const _0x6368d1=()=>{_0xc20a04({'name':'','assetsCount':0x0,'extensions':[],'extensionsInUse':[]});},_0x53bb90=_0x2aac3e=>()=>{const _0x334590=_0x11bf78;var _0x181ee4;const _0x43c765=_0xea67ce[_0x2aac3e];((_0x181ee4=_0x43c765[_0x334590(0x193)])===null||_0x181ee4===void 0x0?void 0x0:_0x181ee4[_0x334590(0x1da)])?_0x46c353(_0x2aac3e):_0x2ceaba(_0x2aac3e);},_0x102426=_0x5da092=>async()=>{await _0x2eb564({'categoryId':_0x5da092});},_0x5aa7e4=async()=>{const _0x3b82f6=_0x11bf78;await _0x51ac74(_0x478051[_0x3b82f6(0x26a)]['map'](({id:_0xb49114})=>_0xb49114));},_0x387f3d=_0x4e6e23=>()=>{_0x3cbe47(_0x4e6e23);},_0x5d8687=_0x4564aa=>{return async _0x2c7e55=>{const _0x173dbf=_0x2ffc;var _0x2dc5a5;const _0x150bad=_0xea67ce[_0x4564aa];if(!_0x150bad)return;((_0x2dc5a5=_0x150bad[_0x173dbf(0x193)])===null||_0x2dc5a5===void 0x0?void 0x0:_0x2dc5a5[_0x173dbf(0x1da)])?await _0x1e0cff(Object[_0x173dbf(0x2b3)](Object[_0x173dbf(0x2b3)]({},_0x2c7e55),{'categoryId':_0x4564aa,'position':0x1})):await _0xe2539e({'categoryId':_0x4564aa,'payload':_0x2c7e55});};};return{'categories':_0xea67ce,'categoriesLoading':_0x1e4bd6,'estimatedCategoriesCount':_0x3854a1[_0x11bf78(0x24a)],'dnd':_0x478051,'hasStagedCategory':_0x219be9,'items':_0x46a118,'onAdd':_0x6368d1,'onCancel':_0x53bb90,'onDelete':_0x102426,'onEdit':_0x387f3d,'onSave':_0x5d8687,'onUpdatePosition':_0x5aa7e4};},ConfirmCategoryDialog=({categoryName:_0x1831f9,content:_0xe27e43,formId:_0x5afc0a,headerLabel:_0x1f1ee2,onClose:_0x3a3cbe,onConfirm:_0x5239e4})=>{const _0x1d638c=_0x3d1493,[_0x751f4c,_0x27d029]=_0x5a5522[_0x1d638c(0x1e4)](null),{t:_0x294981}=useTranslation(),{handleSubmit:_0x3ec369,register:_0x487786,watch:_0x574ab1}=useForm({'defaultValues':{'categoryName':''}}),_0x531f0f=_0x574ab1(_0x1d638c(0x1dd)),_0x43d402=_0x531f0f===_0x1831f9,_0x5b8166=_0x3ec369(()=>{_0x43d402&&_0x5239e4();});_0x5a5522[_0x1d638c(0x124)](()=>{_0x751f4c&&_0x751f4c['focus']();},[_0x751f4c]);const _0xb621c4=_0x487786(_0x1d638c(0x1dd)),{ref:_0x552283}=_0xb621c4,_0x48956b=__rest(_0xb621c4,[_0x1d638c(0x2e3)]);return _0x5a5522[_0x1d638c(0x1a9)](Dialog,{'modal':!![],'onClose':_0x3a3cbe,'size':'sm'},_0x5a5522[_0x1d638c(0x1a9)](DialogHeader,{'closeLabel':_0x294981(_0x1d638c(0x276))}),_0x5a5522['createElement'](DialogColumn,null,_0x5a5522['createElement'](DialogSection,{'header':!![]},_0x1f1ee2),_0x5a5522[_0x1d638c(0x1a9)](DialogSection,{'error':!![]},_0x294981(_0x1d638c(0x15b))),_0xe27e43,_0x5a5522['createElement'](DialogSection,{'collapse':!![]},_0x5a5522[_0x1d638c(0x1a9)](_0x1d638c(0x2a7),null,_0x294981(_0x1d638c(0x1ee))),_0x5a5522['createElement'](Form,{'onSubmit':_0x5b8166,'id':_0x5afc0a},_0x5a5522['createElement'](FormGroup,{'offset':_0x1d638c(0x1f8)},_0x5a5522[_0x1d638c(0x1a9)](FormInputLabel,{'htmlFor':'category-name'},_0x294981(_0x1d638c(0x10e))),_0x5a5522['createElement'](Input,Object[_0x1d638c(0x2b3)]({'id':_0x1d638c(0x1af),'ref':_0x54909e=>{_0x552283(_0x54909e),_0x27d029(_0x54909e);}},_0x48956b))))),_0x5a5522[_0x1d638c(0x1a9)](DialogActions,null,_0x5a5522['createElement'](Button,{'onClick':_0x3a3cbe,'type':_0x1d638c(0x2e9)},_0x294981(_0x1d638c(0x2d2))),_0x5a5522[_0x1d638c(0x1a9)](Button,{'color':_0x1d638c(0x1f6),'type':'fill','form':_0x5afc0a,'htmlType':_0x1d638c(0x280),'disabled':!_0x43d402},_0x294981(_0x1d638c(0x1ce))))));},AssetCategoryPanel=({initValues:_0x4e794c,isLast:_0x21f74e,onDelete:_0x190a24,onEdit:_0x627a4,setDragHandle:_0x22235e,setItemRoot:_0x2ccbe8,isDragging:_0x33509a,isDraggable:_0x462d9e,isPreview:_0x549c65})=>{const _0x310c24=_0x3d1493,{t:_0x16fbde}=useTranslation(),{getCategoryIconProps:_0x48d11a}=useCategoriesConfig(),[_0x584aee,_0x11ba6a]=_0x5a5522[_0x310c24(0x1e4)](![]),{id:_0x37faf5,name:_0x188118,extensions:_0x4341ef}=_0x4e794c,_0x3f0135=()=>{_0x11ba6a(!![]);},_0x2f98fd=()=>{_0x11ba6a(![]);},_0x3eec0e=async()=>{await _0x190a24(),_0x11ba6a(![]);},_0x2d7324=_0x48d11a({'categoryName':_0x188118,'categoryId':_0x37faf5});return _0x5a5522[_0x310c24(0x1a9)](_0x5a5522[_0x310c24(0x2fa)],null,_0x5a5522['createElement'](Panel,{'ref':_0x2ccbe8,'icon':_0x2d7324[_0x310c24(0x16e)],'iconRender':_0x2d7324['render'],'border':!_0x21f74e,'opaque':_0x33509a,'elevated':_0x549c65},_0x462d9e&&_0x5a5522[_0x310c24(0x1a9)](PanelDragHandle,{'ref':_0x22235e}),_0x5a5522[_0x310c24(0x1a9)](PanelTitle,{'title':_0x188118,'description':_0x37faf5,'descriptionTooltip':_0x16fbde('Category\x20ID')}),_0x5a5522[_0x310c24(0x1a9)](PanelContent,{'header':_0x16fbde(_0x310c24(0x2cd))},_0x5a5522[_0x310c24(0x1a9)](TagList,null,_0x4341ef[_0x310c24(0x1a7)]((_0x1e1a23,_0x248eb9)=>_0x5a5522[_0x310c24(0x1a9)](Tag,{'key':_0x1e1a23+'_'+_0x248eb9,'label':_0x1e1a23})))),_0x5a5522[_0x310c24(0x1a9)](PanelActions,null,_0x5a5522[_0x310c24(0x1a9)](Button,{'icon':'Trash','onClick':_0x3f0135,'color':_0x310c24(0x1f6)},_0x16fbde(_0x310c24(0x1ce))),_0x5a5522[_0x310c24(0x1a9)](Button,{'icon':_0x310c24(0x2bb),'onClick':_0x627a4,'color':_0x310c24(0x2c3),'type':_0x310c24(0x2e9)},_0x16fbde('Edit')))),_0x584aee&&_0x5a5522[_0x310c24(0x1a9)](ConfirmCategoryDialog,{'categoryName':_0x188118,'content':_0x5a5522['createElement'](DialogSection,null,_0x16fbde(_0x310c24(0x1c5),{'values':[_0x188118],'processTags':!![]})),'formId':_0x310c24(0x29f)+_0x37faf5+_0x310c24(0x2fd),'headerLabel':_0x16fbde(_0x310c24(0x184)),'onClose':_0x2f98fd,'onConfirm':_0x3eec0e}));},AssetCategoryPanelLoader=({isLast:_0x356412})=>{const _0xa50294=_0x3d1493;return _0x5a5522[_0xa50294(0x1a9)](Panel,{'border':!_0x356412},_0x5a5522[_0xa50294(0x1a9)](PanelContent,null,_0x5a5522['createElement'](PanelSkeleton,{'size':'md','blocks':0x1})),_0x5a5522['createElement'](PanelContent,null,_0x5a5522[_0xa50294(0x1a9)](PanelSkeleton,{'size':'sm','blocks':0x6})),_0x5a5522[_0xa50294(0x1a9)](PanelActions,null,_0x5a5522['createElement'](PanelSkeleton,{'size':'md','blocks':0x2})));},useFormValidation=(_0x554b48,_0x2b0929)=>{const _0x25fa92=_0x3d1493,{t:_0x39ef11}=useTranslation(),_0x372938=_0x39ef11(_0x25fa92(0x1ea)),_0x1e5a9b=_0x39ef11(_0x25fa92(0x29c)),_0xd9cb10=_0x39ef11(_0x25fa92(0x1cc)),_0xdd0ba3=_0x39ef11(_0x25fa92(0x282)),_0x5613be=_0x39ef11('Category\x20name\x20must\x20be\x20unique.'),_0xa6b6e9=_0x39ef11(_0x25fa92(0x164)),_0x467ad9=_0x39ef11(_0x25fa92(0x107)),_0x49b232=Object[_0x25fa92(0x206)](_0x2b0929)[_0x25fa92(0x185)](_0x382988=>_0x382988['id']!==_0x554b48)['map'](_0x1c616a=>_0x1c616a[_0x25fa92(0x16e)]);return{'name':{'maxLength':{'value':0x100,'message':_0xd9cb10},'validate':{'nonEmpty':validators[_0x25fa92(0x1cd)](_0xdd0ba3),'unique':validators[_0x25fa92(0xf9)](_0x5613be,_0x49b232)}},'extensions':{'validate':{'nonEmptyArray':validators[_0x25fa92(0x2ed)](_0x372938),'nonDotExtension':validators[_0x25fa92(0x10f)](_0xa6b6e9),'maxItems':validators[_0x25fa92(0x1d6)](_0x1e5a9b,0x64),'maxLength':validators[_0x25fa92(0x11d)](_0x467ad9,0x9)}}};},AssetCategoryPanelEdit=({categories:_0x517cd7,initValues:{id:_0x1066d3,name:_0x102090,extensions:_0x2cd71b,extensionsInUse:_0x26f175},isLast:_0x2292b5,onCancel:_0x1e3d80,onSave:_0x143465})=>{const _0xdcc860=_0x3d1493;var _0x137539;const {t:_0x50756d}=useTranslation(),{getCategoryIconProps:_0x466817}=useCategoriesConfig(),_0x26e790=useFormValidation(_0x1066d3,_0x517cd7),[_0x174364,_0x2dc918]=_0x5a5522[_0xdcc860(0x1e4)](![]),[_0xf05cc3,_0x5b69f9]=_0x5a5522[_0xdcc860(0x1e4)](undefined),{handleSubmit:_0x551ac1,register:_0xef0631,watch:_0x563bf4,control:_0x3bfcf8,formState:{errors:_0x2149eb,isSubmitted:_0x208549,isDirty:_0x1e0dc1}}=useForm({'defaultValues':{'name':_0x102090,'extensions':_0x2cd71b}}),_0x1c42ae=_0x563bf4(_0xdcc860(0x29a)),_0x10b09a=_0x26f175[_0xdcc860(0x185)](_0x5546d6=>!_0x1c42ae[_0xdcc860(0x12e)](_0x5546d6)),_0x4df3b2=_0x10b09a[_0xdcc860(0x24a)]>0x0,_0x44d57a=()=>{_0x1e3d80();},_0x3113a7=()=>{_0x2dc918(![]);},_0x527ee4=async()=>{_0xf05cc3&&await _0x143465(_0xf05cc3);},_0x5669af=_0x551ac1(async _0x51521d=>{const _0xac5752=_0xdcc860;_0x4df3b2?(_0x2dc918(!![]),_0x5b69f9(_0x51521d)):await _0x143465(Object['assign'](Object[_0xac5752(0x2b3)]({},_0x51521d),{'extensions':[...new Set(_0x51521d[_0xac5752(0x29a)])]}));}),_0x31c0dd=_0xdcc860(0x2a3)+_0x1066d3,_0x14c4b0=_0xdcc860(0x14f)+_0x1066d3,_0x2d36ae=_0x54e7cf=>{return _0x54e7cf['map'](_0xc584b5=>{const _0x42e1e9=_0x2ffc,_0x4f5afd={'label':_0xc584b5,'removeLabel':_0x50756d(_0x42e1e9(0x1bf),{'values':[_0xc584b5]})};if(_0x26f175[_0x42e1e9(0x12e)](_0xc584b5))return Object[_0x42e1e9(0x2b3)](Object[_0x42e1e9(0x2b3)]({},_0x4f5afd),{'bold':!![],'title':_0x50756d('This\x20extension\x20is\x20in\x20use')});return _0x4f5afd;});},_0x235eeb=_0x466817({'categoryName':_0x102090,'categoryId':_0x1066d3});return _0x5a5522[_0xdcc860(0x1a9)](_0x5a5522[_0xdcc860(0x2fa)],null,_0x5a5522[_0xdcc860(0x1a9)](Panel,{'border':!_0x2292b5,'edit':!![],'icon':_0x235eeb['name'],'iconRender':_0x235eeb['render'],'onSubmit':_0x5669af},_0x5a5522[_0xdcc860(0x1a9)](PanelTitle,{'title':_0x102090,'editComponent':_0x5a5522[_0xdcc860(0x1a9)](FormGroup,null,_0x5a5522[_0xdcc860(0x1a9)](FormInputLabel,{'htmlFor':_0x31c0dd},_0x50756d(_0xdcc860(0x10e))),_0x5a5522[_0xdcc860(0x1a9)](Input,Object[_0xdcc860(0x2b3)]({'id':_0x31c0dd,'size':'md','error':!!(_0x208549&&_0x2149eb[_0xdcc860(0x16e)])},_0xef0631(_0xdcc860(0x16e),_0x26e790[_0xdcc860(0x16e)]))),_0x5a5522[_0xdcc860(0x1a9)](FormFeedback,{'error':!![]},(_0x137539=_0x2149eb[_0xdcc860(0x16e)])===null||_0x137539===void 0x0?void 0x0:_0x137539['message']))}),_0x5a5522[_0xdcc860(0x1a9)](PanelContent,{'editComponent':_0x5a5522[_0xdcc860(0x1a9)](FormGroup,null,_0x5a5522[_0xdcc860(0x1a9)](FormInputLabel,{'htmlFor':_0x14c4b0},_0x50756d(_0xdcc860(0x2cd))),_0x5a5522['createElement'](Controller,{'name':_0xdcc860(0x29a),'control':_0x3bfcf8,'rules':_0x26e790[_0xdcc860(0x29a)],'render':({field:{onChange:_0x4d6cb6,onBlur:_0x4f8d23,value:_0x48bba8}})=>_0x5a5522[_0xdcc860(0x1a9)](TagInput,{'copyBtnLabel':_0x50756d(_0xdcc860(0x2ae)),'copyBtnLabelCopied':_0x50756d('Copied!'),'id':_0x14c4b0,'tags':_0x2d36ae(_0x48bba8),'onChange':_0x4d6cb6,'onBlur':_0x4f8d23,'placeholder':_0x50756d('Add\x20an\x20extension'),'error':!!(_0x208549&&_0x2149eb['extensions'])})}),_0x208549&&_0x2149eb['extensions']&&_0x5a5522['createElement'](FormFeedback,{'error':!![]},_0x2149eb[_0xdcc860(0x29a)]['message']),_0x4df3b2&&_0x1e0dc1&&_0x5a5522[_0xdcc860(0x1a9)](FormFeedback,{'warning':!![]},_0x50756d(_0xdcc860(0x15c))))}),_0x5a5522[_0xdcc860(0x1a9)](PanelActions,null,_0x5a5522['createElement'](Button,{'htmlType':_0xdcc860(0x281),'type':_0xdcc860(0x2e9),'onClick':_0x44d57a},_0x50756d(_0xdcc860(0x2d2))),_0x5a5522[_0xdcc860(0x1a9)](Button,{'htmlType':_0xdcc860(0x280),'color':_0xdcc860(0x2c3),'type':_0xdcc860(0x18b)},_0x50756d(_0xdcc860(0x1dc))))),_0x174364&&_0x5a5522[_0xdcc860(0x1a9)](ConfirmCategoryDialog,{'categoryName':_0x102090,'content':_0x5a5522[_0xdcc860(0x1a9)](_0x5a5522[_0xdcc860(0x2fa)],null,_0x5a5522[_0xdcc860(0x1a9)](DialogSection,null,_0x50756d(_0xdcc860(0x28f),{'values':[_0x102090],'processTags':!![]})),_0x5a5522['createElement'](DialogSection,{'collapse':!![]},_0x50756d('Assets\x20with\x20the\x20following\x20extensions\x20will\x20be\x20removed:'),_0x5a5522[_0xdcc860(0x1a9)](TagList,null,_0x10b09a[_0xdcc860(0x1a7)]((_0x230ba0,_0x2aad9b)=>_0x5a5522[_0xdcc860(0x1a9)](Tag,{'key':_0x230ba0+'_'+_0x2aad9b,'label':_0x230ba0}))))),'formId':_0xdcc860(0x29f)+_0x1066d3+_0xdcc860(0x2d3),'headerLabel':_0x50756d('Remove\x20extensions\x20in\x20use'),'onClose':_0x3113a7,'onConfirm':_0x527ee4}));},AssetCategories=({container:_0x35ec89})=>{const _0x432679=_0x3d1493,{t:_0x257d81}=useTranslation(),{categories:_0x3d4d00,categoriesLoading:_0x4d2dc3,estimatedCategoriesCount:_0x476c6c,dnd:_0x3d916e,hasStagedCategory:_0x4fe839,items:_0x434e65,onAdd:_0x3411aa,onCancel:_0x517888,onDelete:_0x5636b7,onEdit:_0x1f4ad5,onSave:_0x6d9fcd,onUpdatePosition:_0x3848e2}=useAssetCategories(),_0x3b6f03=useDeferredUnmount(_0x4d2dc3,0xfa);if(_0x3b6f03)return _0x5a5522['createElement'](PanelList,{'toolbarLoading':!![]},Array[_0x432679(0x2c4)]({'length':_0x476c6c})['map']((_0x578377,_0x435902)=>{const _0x1609a2=_0x432679;return _0x5a5522['createElement'](AssetCategoryPanelLoader,{'key':_0x435902,'isLast':_0x435902===_0x434e65[_0x1609a2(0x24a)]-0x1});}));let _0x16abea;return _0x4fe839?_0x16abea=_0x434e65[_0x432679(0x1a7)](({id:_0x16ee4a},_0x3898b6)=>{const _0x57c445=_0x432679;var _0x48a45f;const _0x491338=(_0x48a45f=_0x3d4d00[_0x16ee4a][_0x57c445(0x193)])===null||_0x48a45f===void 0x0?void 0x0:_0x48a45f[_0x57c445(0x22f)];if(_0x491338)return _0x5a5522[_0x57c445(0x1a9)](AssetCategoryPanelEdit,{'key':_0x16ee4a,'categories':_0x3d4d00,'initValues':_0x3d4d00[_0x16ee4a],'isLast':_0x3898b6===_0x434e65[_0x57c445(0x24a)]-0x1,'onCancel':_0x517888(_0x16ee4a),'onSave':_0x6d9fcd(_0x16ee4a)});return _0x5a5522['createElement'](AssetCategoryPanel,{'key':_0x16ee4a,'initValues':_0x3d4d00[_0x16ee4a],'isLast':_0x3898b6===_0x434e65[_0x57c445(0x24a)]-0x1,'onDelete':_0x5636b7(_0x16ee4a),'onEdit':_0x1f4ad5(_0x16ee4a)});}):_0x16abea=_0x5a5522['createElement'](SortableDndList,Object[_0x432679(0x2b3)]({},_0x3d916e,{'scrollableContainer':_0x35ec89,'type':_0x432679(0x25a),'onDragEnd':_0x3848e2}),_0x434e65[_0x432679(0x1a7)](({id:_0x28d4df},_0x326944)=>{const _0x31bd96=_0x432679;return _0x5a5522[_0x31bd96(0x1a9)](SortableDndListItem,{'key':_0x28d4df,'id':_0x28d4df,'index':_0x326944,'isDraggable':!![]},_0x5a5522[_0x31bd96(0x1a9)](AssetCategoryPanel,{'initValues':_0x3d4d00[_0x28d4df],'isLast':_0x326944===_0x434e65['length']-0x1,'onDelete':_0x5636b7(_0x28d4df),'onEdit':_0x1f4ad5(_0x28d4df)}));})),_0x5a5522['createElement'](PanelList,{'toolbar':_0x5a5522[_0x432679(0x1a9)](Button,{'icon':'Plus','color':'action','type':_0x432679(0x18b),'onClick':_0x3411aa,'label':_0x257d81(_0x432679(0x1fd))})},_0x16abea);},AdminPanel=()=>{const _0x1bfa2a=_0x3d1493,{t:_0x486a25}=useTranslation(),[_0x5d0e86,_0x52c28a]=_0x5a5522[_0x1bfa2a(0x1e4)](null),[_0x110bf8,_0x373303]=_0x5a5522[_0x1bfa2a(0x1e4)](_0x1bfa2a(0x247)),_0x592a0=_0x88f6e=>{_0x373303(_0x88f6e);};return _0x5a5522[_0x1bfa2a(0x1a9)](View,{'ref':_0x52c28a},_0x5a5522[_0x1bfa2a(0x1a9)](Tabs,{'activeTab':_0x110bf8,'onTabSelect':_0x592a0},_0x5a5522[_0x1bfa2a(0x1a9)](Tab,{'id':_0x1bfa2a(0x247),'label':_0x486a25(_0x1bfa2a(0x211))},_0x5a5522[_0x1bfa2a(0x1a9)](AssetCategories,{'container':_0x5d0e86})),_0x5a5522[_0x1bfa2a(0x1a9)](Tab,{'id':_0x1bfa2a(0x128),'label':_0x486a25(_0x1bfa2a(0x133))},_0x5a5522['createElement'](ImagesSettings,null))));},RecentAssets=({estimatedTotalAssetsCount:_0x2d683c,onChoose:_0x4d3ab8,suspendAssetsFetch:_0x40fa97})=>{const _0x294dee=_0x3d1493;var _0x461916,_0x301f17;const {allowCover:_0xb4bbb1,assetsPerPage:_0x4fd670,currentPages:_0x7b6634,onCoverModeToggle:_0x1c3b08,onAssetsPerPageChange:_0x267221,onThumbSizeChange:_0x4ba6d9,onViewPageChange:_0x40593d,thumbSize:_0x4f087a}=useUserData$1(),_0x294936=(_0x461916=_0x7b6634[_0x294dee(0x2d4)])!==null&&_0x461916!==void 0x0?_0x461916:0x1,{data:_0x2cec91,isLoading:_0x171fda,isPreviousData:_0x352035}=useGetRecentAssets({'limit':_0x4fd670,'offset':(_0x294936-0x1)*_0x4fd670},!_0x40fa97),_0x405f6b=_0xfccd0c=>{const _0x4f1468=_0x294dee;_0x40593d(_0x4f1468(0x2d4),_0xfccd0c);};return _0x5a5522[_0x294dee(0x1a9)](Assets,{'assets':(_0x301f17=_0x2cec91===null||_0x2cec91===void 0x0?void 0x0:_0x2cec91[_0x294dee(0x26a)])!==null&&_0x301f17!==void 0x0?_0x301f17:[],'displayOptions':{'allowCover':_0xb4bbb1,'assetsPerPage':_0x4fd670,'assetsPerPageOptions':[{'label':'50','onSelect':()=>{_0x267221(0x32);}},{'label':_0x294dee(0x12b),'onSelect':()=>{_0x267221(0x64);}},{'label':_0x294dee(0x2a1),'onSelect':()=>{_0x267221(0xfa);}}],'onCoverModeToggle':_0x1c3b08,'onThumbSizeChange':_0x4ba6d9,'thumbSize':_0x4f087a},'estimatedTotalAssetsCount':_0x2d683c,'totalAssetsCount':(_0x2cec91===null||_0x2cec91===void 0x0?void 0x0:_0x2cec91[_0x294dee(0x180)])||0x0,'pageNumber':_0x294936,'onChoose':_0x4d3ab8,'onPageChange':_0x405f6b,'fallbackContent':_0x5a5522[_0x294dee(0x1a9)]('div',{'data-testid':_0x294dee(0x2c1)}),'isInitDataLoading':_0x171fda||_0x40fa97,'isNextDataLoading':_0x352035});},NavbarCmp=({categories:_0x5ebc8b,isAdmin:_0x400216,isLoading:_0x34a805,isRecentDisabled:_0x4f5f04,onViewChange:_0x316363,view:_0x4cc730})=>{const _0x15febb=_0x3d1493,{getCategoryIconProps:_0x1afd50}=useCategoriesConfig(),_0x251855=useDeferredUnmount(_0x34a805,0xfa),{t:_0x4ed24a}=useTranslation();if(_0x251855)return _0x5a5522['createElement'](Navbar,{'ariaLabel':_0x4ed24a(_0x15febb(0x2de))},Array['from']({'length':0x4})[_0x15febb(0x1a7)]((_0x55921,_0x1b338c)=>_0x5a5522[_0x15febb(0x1a9)](NavbarItem,{'key':_0x1b338c,'loading':!![],'label':''})));const _0x5421c2=_0x1afd50({'categoryName':'Recent'});return _0x5a5522[_0x15febb(0x1a9)](Navbar,{'ariaLabel':_0x4ed24a(_0x15febb(0x2de))},_0x5ebc8b['map'](({id:_0xa770e6,name:_0x2ea727})=>{const _0x246518=_0x15febb,_0x271550=_0x1afd50({'categoryName':_0x2ea727,'categoryId':_0xa770e6});return _0x5a5522[_0x246518(0x1a9)](NavbarItem,{'active':_0x4cc730===_0xa770e6,'icon':_0x271550[_0x246518(0x16e)],'iconRender':_0x271550['render'],'key':_0xa770e6,'label':_0x2ea727,'onClick':()=>_0x316363(_0xa770e6)});}),_0x5a5522['createElement'](NavbarItem,{'active':_0x4cc730===FixedViews['RECENT'],'disabled':_0x4f5f04,'icon':_0x5421c2[_0x15febb(0x16e)],'iconRender':_0x5421c2['render'],'label':_0x4ed24a(_0x15febb(0x155)),'onClick':()=>_0x316363(_0x15febb(0x2d4)),'separated':_0x5ebc8b[_0x15febb(0x24a)]>0x0}),_0x400216&&_0x5a5522['createElement'](NavbarItem,{'active':_0x4cc730===FixedViews[_0x15febb(0x24e)],'animateIcon':!![],'bottomFixed':!![],'icon':_0x15febb(0x2f1),'label':_0x4ed24a(_0x15febb(0x24c)),'onClick':()=>_0x316363(_0x15febb(0x1e3))}));},Views=()=>{const _0x517d18=_0x3d1493;var _0x4b4790;const {onChoose:_0x558630}=useAssetsConfig(),{data:_0x4d0989=[],isLoading:_0x17b6d9}=useGetCategories(),{data:_0x24ae1b,isLoading:_0xe74a5b}=useGetRecentAssets({'limit':0x1}),{isAdmin:_0x4dcb3f,currentView:_0x3cad0d,onViewChange:_0x1308fa,onViewInit:_0xf026c6}=useUserData$1(),_0xa4cbeb=_0x17b6d9||_0xe74a5b,_0x4903de=(_0x4b4790=_0x24ae1b===null||_0x24ae1b===void 0x0?void 0x0:_0x24ae1b['totalCount'])!==null&&_0x4b4790!==void 0x0?_0x4b4790:0x0;return _0x5a5522['useEffect'](()=>{!_0x17b6d9&&!_0xe74a5b&&_0xf026c6(_0x4d0989,_0x4903de>0x0);},[_0x4d0989,_0x17b6d9,_0x4903de,_0xe74a5b,_0xf026c6]),_0x5a5522['createElement'](ViewWrapper,{'navbar':_0x5a5522[_0x517d18(0x1a9)](NavbarCmp,{'categories':_0x4d0989,'isAdmin':_0x4dcb3f,'isLoading':_0xa4cbeb,'isRecentDisabled':_0x4903de===0x0,'onViewChange':_0x1308fa,'view':_0x3cad0d})},_0x5a5522[_0x517d18(0x1a9)](Switch,{'match':_0x3cad0d},_0x4d0989[_0x517d18(0x1a7)](_0x583d49=>_0x5a5522[_0x517d18(0x1a9)](SwitchView,{'key':_0x583d49['id'],'id':_0x583d49['id']},_0x5a5522[_0x517d18(0x1a9)](Category,{'category':_0x583d49,'onChoose':_0x558630,'suspendAssetsFetch':_0xa4cbeb}))),_0x5a5522[_0x517d18(0x1a9)](SwitchView,{'id':FixedViews[_0x517d18(0x1f4)]},_0x5a5522['createElement'](RecentAssets,{'estimatedTotalAssetsCount':_0x4903de,'onChoose':_0x558630,'suspendAssetsFetch':_0xa4cbeb})),_0x4dcb3f&&_0x5a5522[_0x517d18(0x1a9)](SwitchView,{'id':FixedViews[_0x517d18(0x24e)]},_0x5a5522['createElement'](AdminPanel,null))),_0x5a5522[_0x517d18(0x1a9)](UploadDialog,null),_0x5a5522[_0x517d18(0x1a9)](Notifications,null));},CoreProviders=()=>{const _0x24d6d4=_0x3d1493,{assets:_0xceded6,categories:_0x5a2b46,dialog:_0x49f04e,id:_0x5c4c30,language:_0x27019e,serviceOrigin:_0x5c6bed,theme:_0x34b5a9,tokenUrl:_0xcae839}=useCoreContext();return _0x5a5522['createElement'](AuthProvider,{'auth':{'tokenUrl':_0xcae839}},_0x5a5522[_0x24d6d4(0x1a9)](ApiProvider,{'api':{'origin':_0x5c6bed}},_0x5a5522[_0x24d6d4(0x1a9)](QueryProvider,null,_0x5a5522[_0x24d6d4(0x1a9)](LanguageProvider,{'language':_0x27019e},_0x5a5522[_0x24d6d4(0x1a9)](CategoriesConfigProvider,Object[_0x24d6d4(0x2b3)]({},_0x5a2b46),_0x5a5522[_0x24d6d4(0x1a9)](AssetsConfigProvider,Object[_0x24d6d4(0x2b3)]({},_0xceded6),_0x5a5522[_0x24d6d4(0x1a9)](UploadProvider,null,_0x5a5522[_0x24d6d4(0x1a9)](UserProvider,{'id':_0x5c4c30},_0x5a5522[_0x24d6d4(0x1a9)](NotificationsProvider,null,_0x5a5522[_0x24d6d4(0x1a9)](UIProvider,{'dialog':_0x49f04e,'theme':_0x34b5a9},_0x5a5522[_0x24d6d4(0x1a9)](Views,null)))))))))));},Core=_0x49807b=>{const _0x141b59=_0x3d1493;return _0x5a5522[_0x141b59(0x1a9)](CoreContext[_0x141b59(0xf6)],{'value':_0x49807b},_0x5a5522['createElement'](CoreErrorBoundary,null,_0x5a5522[_0x141b59(0x1a9)](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
|
|
3
|
+
"version": "0.0.2",
|
|
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
|
|
13
|
-
"@ckbox/i18n": "0.0.2
|
|
12
|
+
"@ckbox/components": "0.0.2",
|
|
13
|
+
"@ckbox/i18n": "0.0.2",
|
|
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
|
}
|