quickblox-react-ui-kit 0.5.0-beta.5 → 0.5.0-beta.7
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/dist/App.d.ts.map +1 -1
- package/dist/Data/source/remote/Mapper/DialogDTOMapper.d.ts.map +1 -1
- package/dist/Data/source/remote/RemoteDataSource.d.ts +5 -0
- package/dist/Data/source/remote/RemoteDataSource.d.ts.map +1 -1
- package/dist/Presentation/ui-components/DialogItemPreview/DialogItemPreview.d.ts +2 -2
- package/dist/Presentation/ui-components/DialogItemPreview/DialogItemPreview.d.ts.map +1 -1
- package/dist/Presentation/ui-components/Message/Message.d.ts.map +1 -1
- package/dist/Presentation/ui-components/MessageInput/MessageInput.d.ts.map +1 -1
- package/dist/hooks/useQuickBloxUIKit.d.ts.map +1 -1
- package/dist/index-ui.js +223 -84
- package/global.d.ts +4 -0
- package/package.json +1 -1
- package/src/Data/source/remote/Mapper/DialogDTOMapper.ts +26 -7
- package/src/Data/source/remote/RemoteDataSource.ts +157 -76
- package/src/Presentation/Views/Dialog/AIWidgets/AIWidgetActions/AIWidgetActions.scss +6 -0
- package/src/Presentation/Views/Dialog/AIWidgets/AIWidgetActions/AIWidgetActions.tsx +2 -2
- package/src/Presentation/Views/Dialog/Dialog.scss +7 -1
- package/src/Presentation/Views/DialogInfo/DialogInfo.scss +1 -1
- package/src/Presentation/layouts/Desktop/QuickBloxUIKitDesktopLayout.tsx +1 -1
- package/src/Presentation/themes/styles/_theme_dark.scss +1 -1
- package/src/Presentation/themes/styles/_theme_light.scss +1 -1
- package/src/Presentation/ui-components/DialogItemPreview/DialogItemPreview.stories.tsx +3 -1
- package/src/Presentation/ui-components/DialogItemPreview/DialogItemPreview.tsx +2 -2
- package/src/Presentation/ui-components/Message/Bubble/TextBubble/TextBubble.scss +7 -0
- package/src/Presentation/ui-components/Message/Message.scss +4 -0
- package/src/Presentation/ui-components/Message/Message.tsx +12 -2
- package/src/Presentation/ui-components/MessageInput/MessageInput.scss +4 -0
- package/src/Presentation/ui-components/MessageInput/MessageInput.tsx +64 -63
- package/src/Presentation/ui-components/TextField/TextField.scss +3 -0
- package/src/Presentation/ui-components/UserListItem/UserListItem.scss +5 -0
- package/src/hooks/useQuickBloxUIKit.ts +50 -6
- package/storybook-static/{Presentation-ui-components-DialogItemPreview-DialogItemPreview-stories.0d762d0d.iframe.bundle.js → Presentation-ui-components-DialogItemPreview-DialogItemPreview-stories.4e25a94d.iframe.bundle.js} +2 -2
- package/storybook-static/Presentation-ui-components-Message-Message-stories.b63e0d9f.iframe.bundle.js +2 -0
- package/storybook-static/Presentation-ui-components-MessageInput-MessageInput-stories.4015ee79.iframe.bundle.js +1 -0
- package/storybook-static/Presentation-ui-components-TextField-TextField-stories.19812f7d.iframe.bundle.js +2 -0
- package/storybook-static/Presentation-ui-components-UserListItem-UserListItem-stories.d2f60e13.iframe.bundle.js +2 -0
- package/storybook-static/iframe.html +2 -2
- package/storybook-static/main.c2fb2ab0.iframe.bundle.js +1 -0
- package/storybook-static/project.json +1 -1
- package/storybook-static/{runtime~main.764e618f.iframe.bundle.js → runtime~main.edd70ea8.iframe.bundle.js} +1 -1
- package/storybook-static/Presentation-ui-components-Message-Message-stories.83658a4d.iframe.bundle.js +0 -2
- package/storybook-static/Presentation-ui-components-MessageInput-MessageInput-stories.777e8a38.iframe.bundle.js +0 -1
- package/storybook-static/Presentation-ui-components-TextField-TextField-stories.db85d4ac.iframe.bundle.js +0 -2
- package/storybook-static/Presentation-ui-components-UserListItem-UserListItem-stories.019c5688.iframe.bundle.js +0 -2
- package/storybook-static/main.4f17bc46.iframe.bundle.js +0 -1
- /package/storybook-static/{Presentation-ui-components-DialogItemPreview-DialogItemPreview-stories.0d762d0d.iframe.bundle.js.LICENSE.txt → Presentation-ui-components-DialogItemPreview-DialogItemPreview-stories.4e25a94d.iframe.bundle.js.LICENSE.txt} +0 -0
- /package/storybook-static/{Presentation-ui-components-Message-Message-stories.83658a4d.iframe.bundle.js.LICENSE.txt → Presentation-ui-components-Message-Message-stories.b63e0d9f.iframe.bundle.js.LICENSE.txt} +0 -0
- /package/storybook-static/{Presentation-ui-components-TextField-TextField-stories.db85d4ac.iframe.bundle.js.LICENSE.txt → Presentation-ui-components-TextField-TextField-stories.19812f7d.iframe.bundle.js.LICENSE.txt} +0 -0
- /package/storybook-static/{Presentation-ui-components-UserListItem-UserListItem-stories.019c5688.iframe.bundle.js.LICENSE.txt → Presentation-ui-components-UserListItem-UserListItem-stories.d2f60e13.iframe.bundle.js.LICENSE.txt} +0 -0
|
@@ -69,30 +69,30 @@ const MessageInput = ({
|
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
return (
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
72
|
+
<div className={cn('chat-container', className)}>
|
|
73
|
+
{previewMessage}
|
|
74
|
+
<div
|
|
75
|
+
onBlur={() => {
|
|
76
|
+
if (!(value && value.length > 0)) {
|
|
77
|
+
setVoiceMessage(true);
|
|
78
|
+
}
|
|
79
|
+
}}
|
|
80
|
+
className="chat-input"
|
|
81
|
+
>
|
|
82
|
+
<AttachmentUploader
|
|
83
|
+
disableAction={disableActions}
|
|
84
|
+
icon={
|
|
85
|
+
<AttachmentSvg
|
|
86
|
+
className={cn('chat-container__icon', {
|
|
87
|
+
'chat-container__icon--mute': disableAttachment || loading,
|
|
88
|
+
'chat-container__icon--disable': disableActions,
|
|
89
|
+
})}
|
|
90
|
+
/>
|
|
91
|
+
}
|
|
92
|
+
onChangeFile={onAttachment}
|
|
93
|
+
/>
|
|
94
|
+
{!enableVoice && (
|
|
95
|
+
<div className="input-text-message type-message">
|
|
96
96
|
<textarea
|
|
97
97
|
disabled={loading}
|
|
98
98
|
value={value}
|
|
@@ -108,53 +108,54 @@ const MessageInput = ({
|
|
|
108
108
|
}}
|
|
109
109
|
placeholder={placeholder || 'Type message'}
|
|
110
110
|
/>
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
111
|
+
{rephrase}
|
|
112
|
+
</div>
|
|
113
|
+
)}
|
|
114
114
|
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
onClick={() => {
|
|
120
|
-
if (onVoice) {
|
|
121
|
-
onVoice();
|
|
122
|
-
}
|
|
123
|
-
}}
|
|
124
|
-
/>
|
|
125
|
-
)}
|
|
126
|
-
{!isVoiceMessage && !loading && (
|
|
127
|
-
<div>
|
|
128
|
-
<SendSvg
|
|
129
|
-
className={cn('chat-container__icon__send', {
|
|
130
|
-
'chat-container__icon--mute': loading,
|
|
131
|
-
'chat-container__icon--disable': disableActions,
|
|
132
|
-
})}
|
|
133
|
-
onClick={() => {
|
|
134
|
-
sendTextMessageActions();
|
|
135
|
-
}}
|
|
136
|
-
/>
|
|
137
|
-
</div>
|
|
138
|
-
)}
|
|
139
|
-
{loading ? (
|
|
140
|
-
<Loader size="sm" className="chat-container__loader" />
|
|
141
|
-
) : (
|
|
142
|
-
isVoiceMessage && (
|
|
143
|
-
<VoiceSvg
|
|
144
|
-
className={cn('chat-container__icon', {
|
|
145
|
-
'chat-container__icon--red': enableVoice,
|
|
146
|
-
'chat-container__icon--disable': disableActions,
|
|
147
|
-
})}
|
|
115
|
+
{enableVoice && (
|
|
116
|
+
<VoiceRecordingProgress
|
|
117
|
+
startStatus={enableVoice}
|
|
118
|
+
longRecInSec={60}
|
|
148
119
|
onClick={() => {
|
|
149
120
|
if (onVoice) {
|
|
150
121
|
onVoice();
|
|
151
122
|
}
|
|
152
123
|
}}
|
|
153
124
|
/>
|
|
154
|
-
)
|
|
155
|
-
|
|
125
|
+
)}
|
|
126
|
+
{!isVoiceMessage && !loading && (
|
|
127
|
+
<div className="chat-container__send-icon">
|
|
128
|
+
<SendSvg
|
|
129
|
+
className={cn('chat-container__icon__send', {
|
|
130
|
+
'chat-container__icon--mute': loading,
|
|
131
|
+
'chat-container__icon--disable': disableActions,
|
|
132
|
+
})}
|
|
133
|
+
onClick={() => {
|
|
134
|
+
sendTextMessageActions();
|
|
135
|
+
}}
|
|
136
|
+
/>
|
|
137
|
+
</div>
|
|
138
|
+
)}
|
|
139
|
+
{loading ? (
|
|
140
|
+
<Loader size="sm" className="chat-container__loader" />
|
|
141
|
+
) : (
|
|
142
|
+
isVoiceMessage && (
|
|
143
|
+
<VoiceSvg
|
|
144
|
+
className={cn('chat-container__icon', {
|
|
145
|
+
'chat-container__icon--red': enableVoice,
|
|
146
|
+
'chat-container__icon--disable': disableActions,
|
|
147
|
+
})}
|
|
148
|
+
onClick={() => {
|
|
149
|
+
if (onVoice) {
|
|
150
|
+
onVoice();
|
|
151
|
+
}
|
|
152
|
+
}}
|
|
153
|
+
/>
|
|
154
|
+
)
|
|
155
|
+
)}
|
|
156
|
+
</div>
|
|
156
157
|
</div>
|
|
157
|
-
|
|
158
|
+
|
|
158
159
|
);
|
|
159
160
|
};
|
|
160
161
|
|
|
@@ -459,7 +459,7 @@ export default function useQuickBloxUIKit({
|
|
|
459
459
|
setWarningErrorText(errorMessage);
|
|
460
460
|
setTimeout(() => {
|
|
461
461
|
setWarningErrorText('');
|
|
462
|
-
},
|
|
462
|
+
}, 4500);
|
|
463
463
|
};
|
|
464
464
|
|
|
465
465
|
const closeReplyMessageFlowHandler = () => {
|
|
@@ -544,18 +544,38 @@ export default function useQuickBloxUIKit({
|
|
|
544
544
|
};
|
|
545
545
|
|
|
546
546
|
// Request microphone access and setup WebRTC
|
|
547
|
+
const activateSilentAudioHack = () => {
|
|
548
|
+
const audioContext = new (window.AudioContext || window.webkitAudioContext)();
|
|
549
|
+
const oscillator = audioContext.createOscillator();
|
|
550
|
+
const gainNode = audioContext.createGain();
|
|
551
|
+
|
|
552
|
+
oscillator.connect(gainNode);
|
|
553
|
+
gainNode.connect(audioContext.destination);
|
|
554
|
+
|
|
555
|
+
oscillator.start();
|
|
556
|
+
gainNode.gain.value = 0.001; // Неслышный звук поддерживает аудиосессию активной
|
|
557
|
+
};
|
|
558
|
+
|
|
547
559
|
const getMicrophonePermission = async () => {
|
|
548
560
|
if (!window) {
|
|
549
561
|
showErrorMessage(
|
|
550
|
-
'The MediaRecorder API is not supported
|
|
562
|
+
'The MediaRecorder API is not supported on your platform.',
|
|
551
563
|
);
|
|
552
564
|
|
|
553
565
|
return;
|
|
554
566
|
}
|
|
555
567
|
|
|
568
|
+
// if (!navigator.mediaDevices || !navigator.mediaDevices.getUserMedia) {
|
|
569
|
+
// showErrorMessage(
|
|
570
|
+
// 'Your browser does not support microphone recording. Please update your browser or check permissions.'
|
|
571
|
+
// );
|
|
572
|
+
// return;
|
|
573
|
+
// }
|
|
574
|
+
|
|
556
575
|
try {
|
|
557
576
|
const mediaStream = await navigator.mediaDevices.getUserMedia({
|
|
558
577
|
audio: true,
|
|
578
|
+
video: false,
|
|
559
579
|
});
|
|
560
580
|
|
|
561
581
|
// Create WebRTC peer connection
|
|
@@ -574,16 +594,40 @@ export default function useQuickBloxUIKit({
|
|
|
574
594
|
setPermission(true);
|
|
575
595
|
console.log('Microphone access granted, WebRTC connection established.');
|
|
576
596
|
} catch (err) {
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
);
|
|
597
|
+
console.error('Error accessing microphone:', err);
|
|
598
|
+
|
|
599
|
+
const isIOS = /iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase());
|
|
600
|
+
if (isIOS) activateSilentAudioHack();
|
|
601
|
+
|
|
602
|
+
// Retry for iOS browsers
|
|
603
|
+
if (isIOS) {
|
|
604
|
+
setTimeout(async () => {
|
|
605
|
+
try {
|
|
606
|
+
const mediaStream = await navigator.mediaDevices.getUserMedia({
|
|
607
|
+
audio: true,
|
|
608
|
+
video: false,
|
|
609
|
+
});
|
|
610
|
+
setPermission(true);
|
|
611
|
+
setStream(mediaStream);
|
|
612
|
+
} catch (retryError) {
|
|
613
|
+
showErrorMessage(
|
|
614
|
+
'Microphone access is not available. Please check your iOS settings.'
|
|
615
|
+
);
|
|
616
|
+
}
|
|
617
|
+
}, 1500); // Retry after 1 second for iOS
|
|
618
|
+
} else {
|
|
619
|
+
showErrorMessage(
|
|
620
|
+
'Microphone access is not available. Please check your browser settings.'
|
|
621
|
+
);
|
|
622
|
+
}
|
|
580
623
|
}
|
|
581
624
|
};
|
|
582
625
|
|
|
583
626
|
// Start recording using QBMediaRecorder
|
|
584
627
|
const startWebRTCRecording = async () => {
|
|
585
628
|
try {
|
|
586
|
-
const audioContext = new AudioContext();
|
|
629
|
+
// const audioContext = new AudioContext();
|
|
630
|
+
const audioContext = new (window.AudioContext || window.webkitAudioContext)();
|
|
587
631
|
const source = audioContext.createMediaStreamSource(stream!);
|
|
588
632
|
const destination = audioContext.createMediaStreamDestination();
|
|
589
633
|
source.connect(destination);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! For license information please see Presentation-ui-components-DialogItemPreview-DialogItemPreview-stories.
|
|
2
|
-
(self.webpackChunkquickblox_react_ui_kit=self.webpackChunkquickblox_react_ui_kit||[]).push([[275],{"./node_modules/@storybook/addon-viewport/dist/index.mjs":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Lq:()=>INITIAL_VIEWPORTS});__webpack_require__("storybook/internal/preview-api");var __defProp=Object.defineProperty,preview_exports={};((target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0})})(preview_exports,{initialGlobals:()=>initialGlobals});var PARAM_KEY="viewport",modern={[PARAM_KEY]:{value:void 0,isRotated:!1}},initialGlobals=globalThis.FEATURES?.viewportStoryGlobals?modern:{viewport:"reset",viewportRotated:!1},INITIAL_VIEWPORTS={iphone5:{name:"iPhone 5",styles:{height:"568px",width:"320px"},type:"mobile"},iphone6:{name:"iPhone 6",styles:{height:"667px",width:"375px"},type:"mobile"},iphone6p:{name:"iPhone 6 Plus",styles:{height:"736px",width:"414px"},type:"mobile"},iphone8p:{name:"iPhone 8 Plus",styles:{height:"736px",width:"414px"},type:"mobile"},iphonex:{name:"iPhone X",styles:{height:"812px",width:"375px"},type:"mobile"},iphonexr:{name:"iPhone XR",styles:{height:"896px",width:"414px"},type:"mobile"},iphonexsmax:{name:"iPhone XS Max",styles:{height:"896px",width:"414px"},type:"mobile"},iphonese2:{name:"iPhone SE (2nd generation)",styles:{height:"667px",width:"375px"},type:"mobile"},iphone12mini:{name:"iPhone 12 mini",styles:{height:"812px",width:"375px"},type:"mobile"},iphone12:{name:"iPhone 12",styles:{height:"844px",width:"390px"},type:"mobile"},iphone12promax:{name:"iPhone 12 Pro Max",styles:{height:"926px",width:"428px"},type:"mobile"},iphoneSE3:{name:"iPhone SE 3rd generation",styles:{height:"667px",width:"375px"},type:"mobile"},iphone13:{name:"iPhone 13",styles:{height:"844px",width:"390px"},type:"mobile"},iphone13pro:{name:"iPhone 13 Pro",styles:{height:"844px",width:"390px"},type:"mobile"},iphone13promax:{name:"iPhone 13 Pro Max",styles:{height:"926px",width:"428px"},type:"mobile"},iphone14:{name:"iPhone 14",styles:{height:"844px",width:"390px"},type:"mobile"},iphone14pro:{name:"iPhone 14 Pro",styles:{height:"852px",width:"393px"},type:"mobile"},iphone14promax:{name:"iPhone 14 Pro Max",styles:{height:"932px",width:"430px"},type:"mobile"},ipad:{name:"iPad",styles:{height:"1024px",width:"768px"},type:"tablet"},ipad10p:{name:"iPad Pro 10.5-in",styles:{height:"1112px",width:"834px"},type:"tablet"},ipad11p:{name:"iPad Pro 11-in",styles:{height:"1194px",width:"834px"},type:"tablet"},ipad12p:{name:"iPad Pro 12.9-in",styles:{height:"1366px",width:"1024px"},type:"tablet"},galaxys5:{name:"Galaxy S5",styles:{height:"640px",width:"360px"},type:"mobile"},galaxys9:{name:"Galaxy S9",styles:{height:"740px",width:"360px"},type:"mobile"},nexus5x:{name:"Nexus 5X",styles:{height:"660px",width:"412px"},type:"mobile"},nexus6p:{name:"Nexus 6P",styles:{height:"732px",width:"412px"},type:"mobile"},pixel:{name:"Pixel",styles:{height:"960px",width:"540px"},type:"mobile"},pixelxl:{name:"Pixel XL",styles:{height:"1280px",width:"720px"},type:"mobile"}}},"./node_modules/classnames/index.js":(module,exports)=>{var __WEBPACK_AMD_DEFINE_RESULT__;!function(){"use strict";var hasOwn={}.hasOwnProperty;function classNames(){for(var classes="",i=0;i<arguments.length;i++){var arg=arguments[i];arg&&(classes=appendClass(classes,parseValue(arg)))}return classes}function parseValue(arg){if("string"==typeof arg||"number"==typeof arg)return arg;if("object"!=typeof arg)return"";if(Array.isArray(arg))return classNames.apply(null,arg);if(arg.toString!==Object.prototype.toString&&!arg.toString.toString().includes("[native code]"))return arg.toString();var classes="";for(var key in arg)hasOwn.call(arg,key)&&arg[key]&&(classes=appendClass(classes,key));return classes}function appendClass(value,newClass){return newClass?value?value+" "+newClass:value+newClass:value}module.exports?(classNames.default=classNames,module.exports=classNames):void 0===(__WEBPACK_AMD_DEFINE_RESULT__=function(){return classNames}.apply(exports,[]))||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)}()},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/Presentation/ui-components/Avatar/Avatar.scss":(module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/css-loader/dist/runtime/sourceMaps.js"),_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__),_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js"),___CSS_LOADER_EXPORT___=__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__)()(_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default());___CSS_LOADER_EXPORT___.push([module.id,".avatar{display:flex;flex-shrink:0;align-items:center;justify-content:center;overflow:hidden;border-radius:50%;background-color:var(--disabled-elements);color:var(--secondary-text)}.avatar,.avatar *{box-sizing:border-box}.avatar svg{height:26px;width:26px;fill:var(--tertiary-elements)}.avatar__image{object-fit:cover;width:100%;height:100%}.avatar--xs{width:32px;height:32px}.avatar--sm{width:36px;height:36px}.avatar--md{width:40px;height:40px}.avatar--lg{width:56px;height:56px}.avatar--lg svg{height:33px;width:33px}.avatar--xl{width:64px;height:64px}.avatar--xxl{width:80px;height:80px}","",{version:3,sources:["webpack://./src/Presentation/ui-components/Avatar/Avatar.scss","webpack://./src/Presentation/themes/styles/_mixins.scss"],names:[],mappings:"AAEA,QACE,YAAA,CACA,aAAA,CACA,kBAAA,CACA,sBAAA,CAEA,eAAA,CACA,iBAAA,CACA,yCAAA,CACA,2BAAA,CCVA,kBAEE,qBAAA,CDYF,YACE,WAAA,CACA,UAAA,CACA,6BAAA,CAGF,eACE,gBAAA,CACA,UAAA,CACA,WAAA,CAGF,YACE,UAAA,CACA,WAAA,CAGF,YACE,UAAA,CACA,WAAA,CAGF,YACE,UAAA,CACA,WAAA,CAGF,YACE,UAAA,CACA,WAAA,CAEA,gBACE,WAAA,CACA,UAAA,CAIJ,YACE,UAAA,CACA,WAAA,CAGF,aACE,UAAA,CACA,WAAA",sourcesContent:["@use '../../themes/styles/mixins' as *;\n\n.avatar {\n display: flex;\n flex-shrink: 0;\n align-items: center;\n justify-content: center;\n\n overflow: hidden;\n border-radius: 50%;\n background-color: var(--disabled-elements);\n color: var(--secondary-text);\n\n @include applyBorderBox;\n\n svg {\n height: 26px;\n width: 26px;\n fill: var(--tertiary-elements);\n }\n\n &__image {\n object-fit: cover;\n width: 100%;\n height: 100%;\n }\n\n &--xs {\n width: 32px;\n height: 32px;\n }\n\n &--sm {\n width: 36px;\n height: 36px;\n }\n\n &--md {\n width: 40px;\n height: 40px;\n }\n\n &--lg {\n width: 56px;\n height: 56px;\n\n svg {\n height: 33px;\n width: 33px;\n }\n }\n\n &--xl {\n width: 64px;\n height: 64px;\n }\n\n &--xxl {\n width: 80px;\n height: 80px;\n }\n}\n","@mixin applyBorderBox {\n &,\n * {\n box-sizing: border-box;\n }\n}\n"],sourceRoot:""}]);const __WEBPACK_DEFAULT_EXPORT__=___CSS_LOADER_EXPORT___},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/Presentation/ui-components/Badge/Badge.scss":(module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/css-loader/dist/runtime/sourceMaps.js"),_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__),_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js"),___CSS_LOADER_EXPORT___=__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__)()(_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default());___CSS_LOADER_EXPORT___.push([module.id,'.badge{display:flex;justify-content:center;align-items:center;height:20px;border-radius:30px;padding:2px 6px;font-family:"Roboto";font-weight:500;font-size:12px;line-height:16px;letter-spacing:.5px;background-color:var(--main-elements);color:var(--secondary-background)}.badge--mute{background-color:var(--disabled-elements);color:var(--secondary-background)}',"",{version:3,sources:["webpack://./src/Presentation/ui-components/Badge/Badge.scss"],names:[],mappings:"AAAA,OACE,YAAA,CACA,sBAAA,CACA,kBAAA,CAEA,WAAA,CACA,kBAAA,CACA,eAAA,CAEA,oBAAA,CACA,eAAA,CACA,cAAA,CACA,gBAAA,CACA,mBAAA,CAEA,qCAAA,CACA,iCAAA,CAEA,aACE,yCAAA,CACA,iCAAA",sourcesContent:[".badge {\n display: flex;\n justify-content: center;\n align-items: center;\n\n height: 20px;\n border-radius: 30px;\n padding: 2px 6px;\n\n font-family: 'Roboto';\n font-weight: 500;\n font-size: 12px;\n line-height: 16px;\n letter-spacing: 0.5px;\n\n background-color: var(--main-elements);\n color: var(--secondary-background);\n\n &--mute {\n background-color: var(--disabled-elements);\n color: var(--secondary-background);\n }\n}\n"],sourceRoot:""}]);const __WEBPACK_DEFAULT_EXPORT__=___CSS_LOADER_EXPORT___},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/Presentation/ui-components/DialogItemPreview/DialogItemPreview.scss":(module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/css-loader/dist/runtime/sourceMaps.js"),_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__),_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js"),___CSS_LOADER_EXPORT___=__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__)()(_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default());___CSS_LOADER_EXPORT___.push([module.id,".dialog-item-preview{display:flex;align-items:center;padding:8px 16px;gap:16px}.dialog-item-preview,.dialog-item-preview *{box-sizing:border-box}.dialog-item-preview:hover{background:var(--divider)}.dialog-item-preview--active{box-shadow:4px 0px 0px 0px var(--primary) inset;background:var(--divider)}.dialog-item-preview__content{width:calc(100% - 72px);display:flex;flex-direction:column;gap:2px}.dialog-item-preview__content-top{display:flex;justify-content:space-between}.dialog-item-preview__content-top-title{font:var(--label-label-medium);color:var(--main-text, #0b1b0f);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.dialog-item-preview__content-top-date{color:var(--tertiary-elements, #636d78);font:var(--label-label-small)}.dialog-item-preview__content-bottom{display:flex;justify-content:space-between;gap:5px;height:32px}.dialog-item-preview__content-bottom-message{color:var(--secondary-text, #636d78);text-align:left;font:var(--body-body-small);overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.dialog-item-preview__content-bottom-controls{display:flex;align-items:center;gap:5px}.dialog-item-preview__content-bottom-controls-menu{width:24px;height:24px}","",{version:3,sources:["webpack://./src/Presentation/ui-components/DialogItemPreview/DialogItemPreview.scss","webpack://./src/Presentation/themes/styles/_mixins.scss"],names:[],mappings:"AAEA,qBACE,YAAA,CACA,kBAAA,CACA,gBAAA,CACA,QAAA,CCLA,4CAEE,qBAAA,CDOF,2BACE,yBAAA,CAGF,6BACE,+CAAA,CACA,yBAAA,CAGF,8BACE,uBAAA,CACA,YAAA,CACA,qBAAA,CACA,OAAA,CAEA,kCACE,YAAA,CACA,6BAAA,CAEA,wCACE,8BAAA,CACA,+BAAA,CACA,eAAA,CACA,kBAAA,CACA,sBAAA,CAGF,uCACE,uCAAA,CACA,6BAAA,CAIJ,qCACE,YAAA,CACA,6BAAA,CACA,OAAA,CACA,WAAA,CAEA,6CACE,oCAAA,CACA,eAAA,CACA,2BAAA,CACA,eAAA,CACA,mBAAA,CACA,oBAAA,CACA,2BAAA,CAGF,8CACE,YAAA,CACA,kBAAA,CACA,OAAA,CAEA,mDACE,UAAA,CACA,WAAA",sourcesContent:["@use '../../themes/styles/mixins' as *;\n\n.dialog-item-preview {\n display: flex;\n align-items: center;\n padding: 8px 16px;\n gap: 16px;\n\n @include applyBorderBox; // Переместил после основных свойств\n\n &:hover {\n background: var(--divider);\n }\n\n &--active {\n box-shadow: 4px 0px 0px 0px var(--primary) inset;\n background: var(--divider);\n }\n\n &__content {\n width: calc(100% - 72px);\n display: flex;\n flex-direction: column;\n gap: 2px;\n\n &-top {\n display: flex;\n justify-content: space-between;\n\n &-title {\n font: var(--label-label-medium);\n color: var(--main-text, #0b1b0f);\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n }\n\n &-date {\n color: var(--tertiary-elements, #636d78);\n font: var(--label-label-small);\n }\n }\n\n &-bottom {\n display: flex;\n justify-content: space-between;\n gap: 5px;\n height: 32px;\n\n &-message {\n color: var(--secondary-text, #636d78);\n text-align: left;\n font: var(--body-body-small);\n overflow: hidden;\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n }\n\n &-controls {\n display: flex;\n align-items: center;\n gap: 5px;\n\n &-menu {\n width: 24px;\n height: 24px;\n }\n }\n }\n }\n}\n","@mixin applyBorderBox {\n &,\n * {\n box-sizing: border-box;\n }\n}\n"],sourceRoot:""}]);const __WEBPACK_DEFAULT_EXPORT__=___CSS_LOADER_EXPORT___},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/Presentation/ui-components/Dropdown/Dropdown.scss":(module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/css-loader/dist/runtime/sourceMaps.js"),_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__),_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js"),___CSS_LOADER_EXPORT___=__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__)()(_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default());___CSS_LOADER_EXPORT___.push([module.id,'.dropdown{width:100%;height:100%;position:relative}.dropdown,.dropdown *{box-sizing:border-box}.dropdown__toggle{width:100%;height:100%;background:none;border:none;color:inherit;font:inherit;line-height:normal;overflow:visible;padding:0;margin:0;cursor:pointer;outline:none}.dropdown__menu{background-color:var(--main-background);box-shadow:0 3px 5px 0 rgba(0,0,0,.04),0 3px 14px 0 rgba(0,0,0,.08);border-radius:4px;padding:8px 0px;margin:0;z-index:100;position:absolute;overflow:hidden;list-style-type:none;display:none}.dropdown__menu--topRight{bottom:100%}.dropdown__menu--left{top:50%;transform:translateY(-50%);right:100%}.dropdown__menu--opened{display:block}.dropdown__option{display:flex;justify-content:space-between;align-items:center;font-family:"Roboto";font-weight:400;font-size:14px;line-height:20px;letter-spacing:.25px;height:32px;width:135px;padding:4px 16px;cursor:pointer}.dropdown__option--disabled{color:var(--caption)}.dropdown__label{width:100%;display:flex;align-items:center;gap:3px}',"",{version:3,sources:["webpack://./src/Presentation/ui-components/Dropdown/Dropdown.scss","webpack://./src/Presentation/themes/styles/_mixins.scss"],names:[],mappings:"AAEA,UACE,UAAA,CACA,WAAA,CACA,iBAAA,CCJA,sBAEE,qBAAA,CDMF,kBACE,UAAA,CACA,WAAA,CACA,eAAA,CACA,WAAA,CACA,aAAA,CACA,YAAA,CACA,kBAAA,CACA,gBAAA,CACA,SAAA,CACA,QAAA,CACA,cAAA,CACA,YAAA,CAGF,gBACE,uCAAA,CACA,mEAAA,CAEA,iBAAA,CAEA,eAAA,CACA,QAAA,CACA,WAAA,CACA,iBAAA,CACA,eAAA,CACA,oBAAA,CACA,YAAA,CAEA,0BACE,WAAA,CAGF,sBACE,OAAA,CACA,0BAAA,CACA,UAAA,CAGF,wBACE,aAAA,CAIJ,kBACE,YAAA,CACA,6BAAA,CACA,kBAAA,CAEA,oBAAA,CACA,eAAA,CACA,cAAA,CACA,gBAAA,CACA,oBAAA,CAEA,WAAA,CACA,WAAA,CACA,gBAAA,CAEA,cAAA,CAEA,4BACE,oBAAA,CAIJ,iBACE,UAAA,CACA,YAAA,CACA,kBAAA,CACA,OAAA",sourcesContent:["@use '../../themes/styles/mixins' as *;\n\n.dropdown {\n width: 100%;\n height: 100%;\n position: relative;\n\n @include applyBorderBox;\n\n &__toggle {\n width: 100%;\n height: 100%;\n background: none;\n border: none;\n color: inherit;\n font: inherit;\n line-height: normal;\n overflow: visible;\n padding: 0;\n margin: 0;\n cursor: pointer;\n outline: none;\n }\n\n &__menu {\n background-color: var(--main-background);\n box-shadow: 0 3px 5px 0 rgba(0, 0, 0, 0.04),\n 0 3px 14px 0 rgba(0, 0, 0, 0.08);\n border-radius: 4px;\n\n padding: 8px 0px;\n margin: 0;\n z-index: 100;\n position: absolute;\n overflow: hidden;\n list-style-type: none;\n display: none;\n\n &--topRight {\n bottom: 100%;\n }\n\n &--left {\n top: 50%;\n transform: translateY(-50%);\n right: 100%;\n }\n\n &--opened {\n display: block;\n }\n }\n\n &__option {\n display: flex;\n justify-content: space-between;\n align-items: center;\n\n font-family: 'Roboto';\n font-weight: 400;\n font-size: 14px;\n line-height: 20px;\n letter-spacing: 0.25px;\n\n height: 32px;\n width: 135px;\n padding: 4px 16px;\n\n cursor: pointer;\n\n &--disabled {\n color: var(--caption);\n }\n }\n\n &__label {\n width: 100%;\n display: flex;\n align-items: center;\n gap: 3px;\n }\n}\n","@mixin applyBorderBox {\n &,\n * {\n box-sizing: border-box;\n }\n}\n"],sourceRoot:""}]);const __WEBPACK_DEFAULT_EXPORT__=___CSS_LOADER_EXPORT___},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/Presentation/ui-components/PreviewFileMessage/PreviewFileMessage.scss":(module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/css-loader/dist/runtime/sourceMaps.js"),_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__),_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js"),___CSS_LOADER_EXPORT___=__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__)()(_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default());___CSS_LOADER_EXPORT___.push([module.id,'.preview-file-message{display:flex;gap:8px;align-items:center}.preview-file-message__image{object-fit:cover;display:flex;width:32px;height:32px;background:var(--incoming-background, #e4e6e8);border-radius:8px;flex-shrink:0;justify-content:center;align-items:center}.preview-file-message__icon{fill:var(--caption);width:16px;height:16px}.preview-file-message__name{color:var(--secondary-text);text-align:left;font:400 12px/16px "Roboto",sans-serif;letter-spacing:.4px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}',"",{version:3,sources:["webpack://./src/Presentation/ui-components/PreviewFileMessage/PreviewFileMessage.scss"],names:[],mappings:"AAAA,sBACE,YAAA,CACA,OAAA,CACA,kBAAA,CAEA,6BACE,gBAAA,CACA,YAAA,CACA,UAAA,CACA,WAAA,CACA,8CAAA,CACA,iBAAA,CACA,aAAA,CACA,sBAAA,CACA,kBAAA,CAGF,4BACE,mBAAA,CACA,UAAA,CACA,WAAA,CAGF,4BACE,2BAAA,CACA,eAAA,CACA,sCAAA,CACA,mBAAA,CACA,eAAA,CACA,kBAAA,CACA,sBAAA",sourcesContent:['.preview-file-message {\n display: flex;\n gap: 8px;\n align-items: center;\n\n &__image {\n object-fit: cover;\n display: flex;\n width: 32px;\n height: 32px;\n background: var(--incoming-background, #e4e6e8);\n border-radius: 8px;\n flex-shrink: 0;\n justify-content: center;\n align-items: center;\n }\n\n &__icon {\n fill: var(--caption);\n width: 16px;\n height: 16px;\n }\n\n &__name {\n color: var(--secondary-text);\n text-align: left;\n font: 400 12px/16px "Roboto", sans-serif;\n letter-spacing: 0.4px;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n }\n}\n'],sourceRoot:""}]);const __WEBPACK_DEFAULT_EXPORT__=___CSS_LOADER_EXPORT___},"./src/Presentation/ui-components/Avatar/Avatar.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>Avatar_Avatar_Avatar});var react=__webpack_require__("./node_modules/react/index.js"),classnames=__webpack_require__("./node_modules/classnames/index.js"),classnames_default=__webpack_require__.n(classnames),icons=__webpack_require__("./src/Presentation/icons/index.ts"),injectStylesIntoStyleTag=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),injectStylesIntoStyleTag_default=__webpack_require__.n(injectStylesIntoStyleTag),styleDomAPI=__webpack_require__("./node_modules/style-loader/dist/runtime/styleDomAPI.js"),styleDomAPI_default=__webpack_require__.n(styleDomAPI),insertBySelector=__webpack_require__("./node_modules/style-loader/dist/runtime/insertBySelector.js"),insertBySelector_default=__webpack_require__.n(insertBySelector),setAttributesWithoutAttributes=__webpack_require__("./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js"),setAttributesWithoutAttributes_default=__webpack_require__.n(setAttributesWithoutAttributes),insertStyleElement=__webpack_require__("./node_modules/style-loader/dist/runtime/insertStyleElement.js"),insertStyleElement_default=__webpack_require__.n(insertStyleElement),styleTagTransform=__webpack_require__("./node_modules/style-loader/dist/runtime/styleTagTransform.js"),styleTagTransform_default=__webpack_require__.n(styleTagTransform),Avatar=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/Presentation/ui-components/Avatar/Avatar.scss"),options={};options.styleTagTransform=styleTagTransform_default(),options.setAttributes=setAttributesWithoutAttributes_default(),options.insert=insertBySelector_default().bind(null,"head"),options.domAPI=styleDomAPI_default(),options.insertStyleElement=insertStyleElement_default();injectStylesIntoStyleTag_default()(Avatar.A,options);Avatar.A&&Avatar.A.locals&&Avatar.A.locals;function Avatar_Avatar_Avatar(_ref){let{icon=react.createElement(icons.Uh,null),size="md",className,src}=_ref;return src?react.createElement("div",{className:classnames_default()("avatar",`avatar--${size}`,className)},react.createElement("img",{src,className:"avatar__image",alt:"Avatar"})):react.createElement("div",{className:classnames_default()("avatar",`avatar--${size}`,className)},icon)}Avatar_Avatar_Avatar.__docgenInfo={description:"",methods:[],displayName:"Avatar",props:{size:{required:!1,tsType:{name:"union",raw:"'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl'",elements:[{name:"literal",value:"'xs'"},{name:"literal",value:"'sm'"},{name:"literal",value:"'md'"},{name:"literal",value:"'lg'"},{name:"literal",value:"'xl'"},{name:"literal",value:"'xxl'"}]},description:"",defaultValue:{value:"'md'",computed:!1}},icon:{required:!1,tsType:{name:"ReactElement"},description:"",defaultValue:{value:"<UserSvg />",computed:!1}},className:{required:!1,tsType:{name:"string"},description:""},src:{required:!1,tsType:{name:"string"},description:""}}}},"./src/Presentation/ui-components/Badge/Badge.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>Badge_Badge_Badge});var react=__webpack_require__("./node_modules/react/index.js"),classnames=__webpack_require__("./node_modules/classnames/index.js"),classnames_default=__webpack_require__.n(classnames),injectStylesIntoStyleTag=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),injectStylesIntoStyleTag_default=__webpack_require__.n(injectStylesIntoStyleTag),styleDomAPI=__webpack_require__("./node_modules/style-loader/dist/runtime/styleDomAPI.js"),styleDomAPI_default=__webpack_require__.n(styleDomAPI),insertBySelector=__webpack_require__("./node_modules/style-loader/dist/runtime/insertBySelector.js"),insertBySelector_default=__webpack_require__.n(insertBySelector),setAttributesWithoutAttributes=__webpack_require__("./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js"),setAttributesWithoutAttributes_default=__webpack_require__.n(setAttributesWithoutAttributes),insertStyleElement=__webpack_require__("./node_modules/style-loader/dist/runtime/insertStyleElement.js"),insertStyleElement_default=__webpack_require__.n(insertStyleElement),styleTagTransform=__webpack_require__("./node_modules/style-loader/dist/runtime/styleTagTransform.js"),styleTagTransform_default=__webpack_require__.n(styleTagTransform),Badge=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/Presentation/ui-components/Badge/Badge.scss"),options={};options.styleTagTransform=styleTagTransform_default(),options.setAttributes=setAttributesWithoutAttributes_default(),options.insert=insertBySelector_default().bind(null,"head"),options.domAPI=styleDomAPI_default(),options.insertStyleElement=insertStyleElement_default();injectStylesIntoStyleTag_default()(Badge.A,options);Badge.A&&Badge.A.locals&&Badge.A.locals;function Badge_Badge_Badge(_ref){let{count,limit,mute=!1,classNames}=_ref;return react.createElement("div",{className:classnames_default()("badge",{"badge--mute":mute},classNames)},limit&&count>limit?`${limit}+`:count)}Badge_Badge_Badge.__docgenInfo={description:"",methods:[],displayName:"Badge",props:{count:{required:!0,tsType:{name:"number"},description:""},limit:{required:!1,tsType:{name:"number"},description:""},mute:{required:!1,tsType:{name:"boolean"},description:"",defaultValue:{value:"false",computed:!1}},classNames:{required:!1,tsType:{name:"string"},description:""}}}},"./src/Presentation/ui-components/DialogItemPreview/DialogItemPreview.stories.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{DialogItemPreviewDefault:()=>DialogItemPreviewDefault,DialogItemPreviewFullScreen:()=>DialogItemPreviewFullScreen,DialogItemPreviewMobileScreen:()=>DialogItemPreviewMobileScreen,DialogItemPreviewMobileScreenIPad:()=>DialogItemPreviewMobileScreenIPad,__namedExportsOrder:()=>__namedExportsOrder,default:()=>DialogItemPreview_stories});var react=__webpack_require__("./node_modules/react/index.js"),dist=__webpack_require__("./node_modules/@storybook/addon-viewport/dist/index.mjs"),classnames=__webpack_require__("./node_modules/classnames/index.js"),classnames_default=__webpack_require__.n(classnames),injectStylesIntoStyleTag=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),injectStylesIntoStyleTag_default=__webpack_require__.n(injectStylesIntoStyleTag),styleDomAPI=__webpack_require__("./node_modules/style-loader/dist/runtime/styleDomAPI.js"),styleDomAPI_default=__webpack_require__.n(styleDomAPI),insertBySelector=__webpack_require__("./node_modules/style-loader/dist/runtime/insertBySelector.js"),insertBySelector_default=__webpack_require__.n(insertBySelector),setAttributesWithoutAttributes=__webpack_require__("./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js"),setAttributesWithoutAttributes_default=__webpack_require__.n(setAttributesWithoutAttributes),insertStyleElement=__webpack_require__("./node_modules/style-loader/dist/runtime/insertStyleElement.js"),insertStyleElement_default=__webpack_require__.n(insertStyleElement),styleTagTransform=__webpack_require__("./node_modules/style-loader/dist/runtime/styleTagTransform.js"),styleTagTransform_default=__webpack_require__.n(styleTagTransform),DialogItemPreview=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/Presentation/ui-components/DialogItemPreview/DialogItemPreview.scss"),options={};options.styleTagTransform=styleTagTransform_default(),options.setAttributes=setAttributesWithoutAttributes_default(),options.insert=insertBySelector_default().bind(null,"head"),options.domAPI=styleDomAPI_default(),options.insertStyleElement=insertStyleElement_default();injectStylesIntoStyleTag_default()(DialogItemPreview.A,options);DialogItemPreview.A&&DialogItemPreview.A.locals&&DialogItemPreview.A.locals;const DialogItemPreview_DialogItemPreview_DialogItemPreview=_ref=>{let{avatar,title,date,active,lastMessage,badge,contextMenu,onClick,className}=_ref;return react.createElement("div",{className:classnames_default()("dialog-item-preview",{"dialog-item-preview--active":active},className),onClick},avatar,react.createElement("div",{className:"dialog-item-preview__content"},react.createElement("div",{className:"dialog-item-preview__content-top"},react.createElement("span",{className:"dialog-item-preview__content-top-title"},title),date&&react.createElement("span",{className:"dialog-item-preview__content-top-date"},date)),react.createElement("div",{className:"dialog-item-preview__content-bottom"},react.createElement("div",{className:"dialog-item-preview__content-bottom-message"},lastMessage),react.createElement("div",{onClick:event=>event.stopPropagation(),className:"dialog-item-preview__content-bottom-controls"},badge,contextMenu&&react.createElement("div",{className:"dialog-item-preview__content-bottom-controls-menu"},contextMenu)))))},ui_components_DialogItemPreview_DialogItemPreview=DialogItemPreview_DialogItemPreview_DialogItemPreview;DialogItemPreview_DialogItemPreview_DialogItemPreview.__docgenInfo={description:"",methods:[],displayName:"DialogItemPreview",props:{avatar:{required:!0,tsType:{name:"ReactElement"},description:""},title:{required:!0,tsType:{name:"string"},description:""},active:{required:!1,tsType:{name:"boolean"},description:""},date:{required:!1,tsType:{name:"string"},description:""},lastMessage:{required:!1,tsType:{name:"union",raw:"ReactElement | string",elements:[{name:"ReactElement"},{name:"string"}]},description:""},badge:{required:!1,tsType:{name:"ReactElement"},description:""},contextMenu:{required:!1,tsType:{name:"ReactElement"},description:""},onClick:{required:!1,tsType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""},className:{required:!1,tsType:{name:"string"},description:""}}};var Badge=__webpack_require__("./src/Presentation/ui-components/Badge/Badge.tsx"),Avatar=__webpack_require__("./src/Presentation/ui-components/Avatar/Avatar.tsx"),icons=__webpack_require__("./src/Presentation/icons/index.ts"),PreviewFileMessage=__webpack_require__("./src/Presentation/ui-components/PreviewFileMessage/PreviewFileMessage.tsx"),Dropdown=__webpack_require__("./src/Presentation/ui-components/Dropdown/Dropdown.tsx");const DialogItemPreview_stories={title:"@quickblox-react-ui-kit/Presentation/ui-components/DialogItemPreview",tags:["autodocs"],component:ui_components_DialogItemPreview_DialogItemPreview,decorators:[],parameters:{viewport:{viewports:dist.Lq}},argTypes:{avatar:{description:"Avatar or Icon",control:"select",options:["User","Group","Conference","Public","Photo"],mapping:{User:react.createElement(Avatar.A,{size:"lg",icon:react.createElement(icons.Uh,null)}),Group:react.createElement(Avatar.A,{size:"lg",icon:react.createElement(icons.C_,null)}),Conference:react.createElement(Avatar.A,{size:"lg",icon:react.createElement(icons.os,null)}),Public:react.createElement(Avatar.A,{size:"lg",icon:react.createElement(icons.vq,null)}),Photo:react.createElement(Avatar.A,{size:"lg",src:"https://quickblox.com/wp-content/themes/QuickbloxTheme2021/img/chat-messaging.svg"})}},lastMessage:{description:"Last message by type",control:"select",options:["ShortText","LongText","Image","File","None"],mapping:{ShortText:"Hello, world!How are you?",LongText:"Hello, dear Mr. User. Thank you for choosing us. I'm here to assist with your order's delivery. Please provide your preferred address and any specific instructions. We offer standard, express, and same-day delivery in select areas. Let us know your convenience, and we'll ensure a smooth process.",Image:react.createElement(PreviewFileMessage.A,{name:"My avatar.png",src:"https://quickblox.com/wp-content/themes/QuickbloxTheme2021/img/chat-messaging.svg"}),File:react.createElement(PreviewFileMessage.A,{name:"My Document.txt"}),None:void 0}},badge:{description:"Badge",control:"select",options:["Default","OverCount","None"],mapping:{Default:react.createElement(Badge.A,{count:5}),OverCount:react.createElement(Badge.A,{count:15,limit:9}),None:void 0}},active:{table:{defaultValue:{summary:"false"},type:{summary:"boolean"}},description:"Active"},contextMenu:{description:"Context action icon",control:"select",options:["Default","Leave","None"],mapping:{Default:react.createElement(icons.ur,null),Leave:react.createElement(Dropdown.A,{placement:"left",options:[{value:"Leave",label:"Leave"}],onSelect:value=>{console.log(value)}},react.createElement(icons.ur,null)),None:void 0}}}},DialogItemPreviewDefault={name:"DialogItemPreview Default",args:{title:"Name",avatar:react.createElement(Avatar.A,{size:"lg",icon:react.createElement(icons.Uh,null)})},render:args=>(args.date=args.date?new Date(args.date).toLocaleDateString():(new Date).toLocaleDateString(),react.createElement(ui_components_DialogItemPreview_DialogItemPreview,args))},DialogItemPreviewFullScreen={name:"DialogItemPreview FullScreen",args:{title:"Name",avatar:react.createElement(Avatar.A,{size:"lg",icon:react.createElement(icons.Uh,null)}),lastMessage:"Hello, dear Mr. User. Thank you for choosing us. I'm here to assist with your order's delivery. Please provide your preferred address and any specific instructions. We offer standard, express, and same-day delivery in select areas. Let us know your convenience, and we'll ensure a smooth process.",badge:react.createElement(Badge.A,{count:5}),contextMenu:react.createElement(icons.ur,null)},parameters:{viewport:{defaultViewport:"responsive"}},render:args=>(args.date=(new Date).toLocaleDateString(),react.createElement(ui_components_DialogItemPreview_DialogItemPreview,args))},DialogItemPreviewMobileScreen={name:"DialogItemPreview MobileScreen",args:{title:"Name",avatar:react.createElement(Avatar.A,{size:"lg",icon:react.createElement(icons.Uh,null)}),lastMessage:"Hello, dear Mr. User. Thank you for choosing us. I'm here to assist with your order's delivery. Please provide your preferred address and any specific instructions. We offer standard, express, and same-day delivery in select areas. Let us know your convenience, and we'll ensure a smooth process.",badge:react.createElement(Badge.A,{count:5}),contextMenu:react.createElement(icons.ur,null)},parameters:{viewport:{defaultViewport:"iphonese2"}},render:args=>(args.date=args.date?new Date(args.date).toLocaleDateString():(new Date).toLocaleDateString(),react.createElement(ui_components_DialogItemPreview_DialogItemPreview,args))},DialogItemPreviewMobileScreenIPad={name:"DialogItemPreview MobileScreen IPad",args:{title:"Name",avatar:react.createElement(Avatar.A,{size:"lg",icon:react.createElement(icons.Uh,null)}),lastMessage:"Hello, dear Mr. User. Thank you for choosing us. I'm here to assist with your order's delivery. Please provide your preferred address and any specific instructions. We offer standard, express, and same-day delivery in select areas. Let us know your convenience, and we'll ensure a smooth process.",badge:react.createElement(Badge.A,{count:5}),contextMenu:react.createElement(icons.ur,null)},parameters:{viewport:{defaultViewport:"ipad"}},render:args=>(args.date=args.date?new Date(args.date).toLocaleDateString():(new Date).toLocaleDateString(),react.createElement(ui_components_DialogItemPreview_DialogItemPreview,args))},__namedExportsOrder=["DialogItemPreviewDefault","DialogItemPreviewFullScreen","DialogItemPreviewMobileScreen","DialogItemPreviewMobileScreenIPad"];DialogItemPreviewDefault.parameters={...DialogItemPreviewDefault.parameters,docs:{...DialogItemPreviewDefault.parameters?.docs,source:{originalSource:"{\n name: 'DialogItemPreview Default',\n args: {\n title: 'Name',\n avatar: <Avatar size=\"lg\" icon={<UserSvg />} />\n },\n render: args => {\n // eslint-disable-next-line no-param-reassign\n args.date = args.date ? new Date(args.date!).toLocaleDateString() : new Date().toLocaleDateString();\n return <DialogItemPreview {...args} />;\n }\n}",...DialogItemPreviewDefault.parameters?.docs?.source}}},DialogItemPreviewFullScreen.parameters={...DialogItemPreviewFullScreen.parameters,docs:{...DialogItemPreviewFullScreen.parameters?.docs,source:{originalSource:"{\n name: 'DialogItemPreview FullScreen',\n args: {\n title: 'Name',\n avatar: <Avatar size=\"lg\" icon={<UserSvg />} />,\n lastMessage: \"Hello, dear Mr. User. Thank you for choosing us. I'm here to assist with your order's delivery. Please provide your preferred address and any specific instructions. We offer standard, express, and same-day delivery in select areas. Let us know your convenience, and we'll ensure a smooth process.\",\n badge: <Badge count={5} />,\n contextMenu: <MoreSvg />\n },\n parameters: {\n viewport: {\n defaultViewport: 'responsive'\n }\n },\n render: args => {\n // eslint-disable-next-line no-param-reassign\n args.date = new Date().toLocaleDateString();\n return <DialogItemPreview {...args} />;\n }\n}",...DialogItemPreviewFullScreen.parameters?.docs?.source}}},DialogItemPreviewMobileScreen.parameters={...DialogItemPreviewMobileScreen.parameters,docs:{...DialogItemPreviewMobileScreen.parameters?.docs,source:{originalSource:"{\n name: 'DialogItemPreview MobileScreen',\n args: {\n title: 'Name',\n avatar: <Avatar size=\"lg\" icon={<UserSvg />} />,\n lastMessage: \"Hello, dear Mr. User. Thank you for choosing us. I'm here to assist with your order's delivery. Please provide your preferred address and any specific instructions. We offer standard, express, and same-day delivery in select areas. Let us know your convenience, and we'll ensure a smooth process.\",\n badge: <Badge count={5} />,\n contextMenu: <MoreSvg />\n },\n parameters: {\n viewport: {\n defaultViewport: 'iphonese2'\n }\n },\n render: args => {\n // eslint-disable-next-line no-param-reassign\n args.date = args.date ? new Date(args.date!).toLocaleDateString() : new Date().toLocaleDateString();\n return <DialogItemPreview {...args} />;\n }\n}",...DialogItemPreviewMobileScreen.parameters?.docs?.source}}},DialogItemPreviewMobileScreenIPad.parameters={...DialogItemPreviewMobileScreenIPad.parameters,docs:{...DialogItemPreviewMobileScreenIPad.parameters?.docs,source:{originalSource:"{\n name: 'DialogItemPreview MobileScreen IPad',\n args: {\n title: 'Name',\n avatar: <Avatar size=\"lg\" icon={<UserSvg />} />,\n lastMessage: \"Hello, dear Mr. User. Thank you for choosing us. I'm here to assist with your order's delivery. Please provide your preferred address and any specific instructions. We offer standard, express, and same-day delivery in select areas. Let us know your convenience, and we'll ensure a smooth process.\",\n badge: <Badge count={5} />,\n contextMenu: <MoreSvg />\n },\n parameters: {\n viewport: {\n defaultViewport: 'ipad'\n }\n },\n render: args => {\n // eslint-disable-next-line no-param-reassign\n args.date = args.date ? new Date(args.date!).toLocaleDateString() : new Date().toLocaleDateString();\n return <DialogItemPreview {...args} />;\n }\n}",...DialogItemPreviewMobileScreenIPad.parameters?.docs?.source}}}},"./src/Presentation/ui-components/Dropdown/Dropdown.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>Dropdown_Dropdown_Dropdown});var react=__webpack_require__("./node_modules/react/index.js"),classnames=__webpack_require__("./node_modules/classnames/index.js"),classnames_default=__webpack_require__.n(classnames);function DropdownOption(_ref){let{label,value,disabled,leftIcon,rightIcon,onSelect}=_ref;return react.createElement("li",{className:classnames_default()("dropdown__option",{"dropdown__option--disabled":disabled}),onClick:()=>!disabled&&onSelect(value)},react.createElement("span",{className:"dropdown__label"},leftIcon,label),rightIcon)}DropdownOption.__docgenInfo={description:"",methods:[],displayName:"DropdownOption",props:{value:{required:!0,tsType:{name:"string"},description:""},label:{required:!0,tsType:{name:"string"},description:""},disabled:{required:!1,tsType:{name:"boolean"},description:""},leftIcon:{required:!1,tsType:{name:"ReactElement"},description:""},rightIcon:{required:!1,tsType:{name:"ReactElement"},description:""},onSelect:{required:!0,tsType:{name:"signature",type:"function",raw:"(value: string) => void",signature:{arguments:[{type:{name:"string"},name:"value"}],return:{name:"void"}}},description:""}}};var injectStylesIntoStyleTag=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),injectStylesIntoStyleTag_default=__webpack_require__.n(injectStylesIntoStyleTag),styleDomAPI=__webpack_require__("./node_modules/style-loader/dist/runtime/styleDomAPI.js"),styleDomAPI_default=__webpack_require__.n(styleDomAPI),insertBySelector=__webpack_require__("./node_modules/style-loader/dist/runtime/insertBySelector.js"),insertBySelector_default=__webpack_require__.n(insertBySelector),setAttributesWithoutAttributes=__webpack_require__("./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js"),setAttributesWithoutAttributes_default=__webpack_require__.n(setAttributesWithoutAttributes),insertStyleElement=__webpack_require__("./node_modules/style-loader/dist/runtime/insertStyleElement.js"),insertStyleElement_default=__webpack_require__.n(insertStyleElement),styleTagTransform=__webpack_require__("./node_modules/style-loader/dist/runtime/styleTagTransform.js"),styleTagTransform_default=__webpack_require__.n(styleTagTransform),Dropdown=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/Presentation/ui-components/Dropdown/Dropdown.scss"),options={};options.styleTagTransform=styleTagTransform_default(),options.setAttributes=setAttributesWithoutAttributes_default(),options.insert=insertBySelector_default().bind(null,"head"),options.domAPI=styleDomAPI_default(),options.insertStyleElement=insertStyleElement_default();injectStylesIntoStyleTag_default()(Dropdown.A,options);Dropdown.A&&Dropdown.A.locals&&Dropdown.A.locals;function Dropdown_Dropdown_Dropdown(_ref){let{options,disabled=!1,onSelect,className,children,placement="bottomRight"}=_ref;const[isOpen,setIsOpen]=(0,react.useState)(!1),dropdownRef=(0,react.useRef)(null),handleSelect=value=>{onSelect(value),setIsOpen(!1)};return(0,react.useEffect)((()=>{const handleBlur=e=>{dropdownRef.current&&e.target instanceof Node&&!dropdownRef.current.contains(e.target)&&setIsOpen(!1)};return isOpen&&document.addEventListener("click",handleBlur,{capture:!0}),()=>document.removeEventListener("click",handleBlur)}),[isOpen]),react.createElement("div",{ref:dropdownRef,className:classnames_default()("dropdown",className)},react.createElement("button",{type:"button",className:"dropdown__toggle",onClick:e=>{e.stopPropagation(),setIsOpen((state=>!state))}},children),react.createElement("ul",{className:classnames_default()("dropdown__menu",`dropdown__menu--${placement}`,{"dropdown__menu--opened":isOpen})},options.map((_ref2=>{let{label,value,leftIcon,rightIcon}=_ref2;return react.createElement(DropdownOption,{label,value,disabled,onSelect:handleSelect,leftIcon,rightIcon,key:value})}))))}Dropdown_Dropdown_Dropdown.__docgenInfo={description:"",methods:[],displayName:"Dropdown",props:{options:{required:!0,tsType:{name:"Array",elements:[{name:"Option"}],raw:"Option[]"},description:""},disabled:{required:!1,tsType:{name:"boolean"},description:"",defaultValue:{value:"false",computed:!1}},children:{required:!1,tsType:{name:"union",raw:"ReactElement | string | number",elements:[{name:"ReactElement"},{name:"string"},{name:"number"}]},description:""},onSelect:{required:!0,tsType:{name:"signature",type:"function",raw:"(value: string) => void",signature:{arguments:[{type:{name:"string"},name:"value"}],return:{name:"void"}}},description:""},className:{required:!1,tsType:{name:"string"},description:""},placement:{required:!1,tsType:{name:"union",raw:"'topRight' | 'bottomRight' | 'left'",elements:[{name:"literal",value:"'topRight'"},{name:"literal",value:"'bottomRight'"},{name:"literal",value:"'left'"}]},description:"",defaultValue:{value:"'bottomRight'",computed:!1}}}}},"./src/Presentation/ui-components/PreviewFileMessage/PreviewFileMessage.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>PreviewFileMessage_PreviewFileMessage_PreviewFileMessage});var react=__webpack_require__("./node_modules/react/index.js"),classnames=__webpack_require__("./node_modules/classnames/index.js"),classnames_default=__webpack_require__.n(classnames),icons=__webpack_require__("./src/Presentation/icons/index.ts"),injectStylesIntoStyleTag=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),injectStylesIntoStyleTag_default=__webpack_require__.n(injectStylesIntoStyleTag),styleDomAPI=__webpack_require__("./node_modules/style-loader/dist/runtime/styleDomAPI.js"),styleDomAPI_default=__webpack_require__.n(styleDomAPI),insertBySelector=__webpack_require__("./node_modules/style-loader/dist/runtime/insertBySelector.js"),insertBySelector_default=__webpack_require__.n(insertBySelector),setAttributesWithoutAttributes=__webpack_require__("./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js"),setAttributesWithoutAttributes_default=__webpack_require__.n(setAttributesWithoutAttributes),insertStyleElement=__webpack_require__("./node_modules/style-loader/dist/runtime/insertStyleElement.js"),insertStyleElement_default=__webpack_require__.n(insertStyleElement),styleTagTransform=__webpack_require__("./node_modules/style-loader/dist/runtime/styleTagTransform.js"),styleTagTransform_default=__webpack_require__.n(styleTagTransform),PreviewFileMessage=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/Presentation/ui-components/PreviewFileMessage/PreviewFileMessage.scss"),options={};options.styleTagTransform=styleTagTransform_default(),options.setAttributes=setAttributesWithoutAttributes_default(),options.insert=insertBySelector_default().bind(null,"head"),options.domAPI=styleDomAPI_default(),options.insertStyleElement=insertStyleElement_default();injectStylesIntoStyleTag_default()(PreviewFileMessage.A,options);PreviewFileMessage.A&&PreviewFileMessage.A.locals&&PreviewFileMessage.A.locals;const iconDictionary={document:icons.jw,audio:icons.Lg,video:icons.BR};function PreviewFileMessage_PreviewFileMessage_PreviewFileMessage(_ref){let{type="document",name,src,className}=_ref;const Icon=iconDictionary[type];return react.createElement("div",{className:classnames_default()("preview-file-message",className)},src?react.createElement("img",{src,alt:"",className:"preview-file-message__image"}):react.createElement("span",{className:"preview-file-message__image"},react.createElement(Icon,{className:"preview-file-message__icon"})),react.createElement("span",{className:"preview-file-message__name"},name))}PreviewFileMessage_PreviewFileMessage_PreviewFileMessage.__docgenInfo={description:"",methods:[],displayName:"PreviewFileMessage",props:{type:{required:!1,tsType:{name:"union",raw:"'document' | 'audio' | 'video'",elements:[{name:"literal",value:"'document'"},{name:"literal",value:"'audio'"},{name:"literal",value:"'video'"}]},description:"",defaultValue:{value:"'document'",computed:!1}},name:{required:!0,tsType:{name:"string"},description:""},src:{required:!1,tsType:{name:"string"},description:""},className:{required:!1,tsType:{name:"string"},description:""}}}}}]);
|
|
1
|
+
/*! For license information please see Presentation-ui-components-DialogItemPreview-DialogItemPreview-stories.4e25a94d.iframe.bundle.js.LICENSE.txt */
|
|
2
|
+
(self.webpackChunkquickblox_react_ui_kit=self.webpackChunkquickblox_react_ui_kit||[]).push([[275],{"./node_modules/@storybook/addon-viewport/dist/index.mjs":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Lq:()=>INITIAL_VIEWPORTS});__webpack_require__("storybook/internal/preview-api");var __defProp=Object.defineProperty,preview_exports={};((target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0})})(preview_exports,{initialGlobals:()=>initialGlobals});var PARAM_KEY="viewport",modern={[PARAM_KEY]:{value:void 0,isRotated:!1}},initialGlobals=globalThis.FEATURES?.viewportStoryGlobals?modern:{viewport:"reset",viewportRotated:!1},INITIAL_VIEWPORTS={iphone5:{name:"iPhone 5",styles:{height:"568px",width:"320px"},type:"mobile"},iphone6:{name:"iPhone 6",styles:{height:"667px",width:"375px"},type:"mobile"},iphone6p:{name:"iPhone 6 Plus",styles:{height:"736px",width:"414px"},type:"mobile"},iphone8p:{name:"iPhone 8 Plus",styles:{height:"736px",width:"414px"},type:"mobile"},iphonex:{name:"iPhone X",styles:{height:"812px",width:"375px"},type:"mobile"},iphonexr:{name:"iPhone XR",styles:{height:"896px",width:"414px"},type:"mobile"},iphonexsmax:{name:"iPhone XS Max",styles:{height:"896px",width:"414px"},type:"mobile"},iphonese2:{name:"iPhone SE (2nd generation)",styles:{height:"667px",width:"375px"},type:"mobile"},iphone12mini:{name:"iPhone 12 mini",styles:{height:"812px",width:"375px"},type:"mobile"},iphone12:{name:"iPhone 12",styles:{height:"844px",width:"390px"},type:"mobile"},iphone12promax:{name:"iPhone 12 Pro Max",styles:{height:"926px",width:"428px"},type:"mobile"},iphoneSE3:{name:"iPhone SE 3rd generation",styles:{height:"667px",width:"375px"},type:"mobile"},iphone13:{name:"iPhone 13",styles:{height:"844px",width:"390px"},type:"mobile"},iphone13pro:{name:"iPhone 13 Pro",styles:{height:"844px",width:"390px"},type:"mobile"},iphone13promax:{name:"iPhone 13 Pro Max",styles:{height:"926px",width:"428px"},type:"mobile"},iphone14:{name:"iPhone 14",styles:{height:"844px",width:"390px"},type:"mobile"},iphone14pro:{name:"iPhone 14 Pro",styles:{height:"852px",width:"393px"},type:"mobile"},iphone14promax:{name:"iPhone 14 Pro Max",styles:{height:"932px",width:"430px"},type:"mobile"},ipad:{name:"iPad",styles:{height:"1024px",width:"768px"},type:"tablet"},ipad10p:{name:"iPad Pro 10.5-in",styles:{height:"1112px",width:"834px"},type:"tablet"},ipad11p:{name:"iPad Pro 11-in",styles:{height:"1194px",width:"834px"},type:"tablet"},ipad12p:{name:"iPad Pro 12.9-in",styles:{height:"1366px",width:"1024px"},type:"tablet"},galaxys5:{name:"Galaxy S5",styles:{height:"640px",width:"360px"},type:"mobile"},galaxys9:{name:"Galaxy S9",styles:{height:"740px",width:"360px"},type:"mobile"},nexus5x:{name:"Nexus 5X",styles:{height:"660px",width:"412px"},type:"mobile"},nexus6p:{name:"Nexus 6P",styles:{height:"732px",width:"412px"},type:"mobile"},pixel:{name:"Pixel",styles:{height:"960px",width:"540px"},type:"mobile"},pixelxl:{name:"Pixel XL",styles:{height:"1280px",width:"720px"},type:"mobile"}}},"./node_modules/classnames/index.js":(module,exports)=>{var __WEBPACK_AMD_DEFINE_RESULT__;!function(){"use strict";var hasOwn={}.hasOwnProperty;function classNames(){for(var classes="",i=0;i<arguments.length;i++){var arg=arguments[i];arg&&(classes=appendClass(classes,parseValue(arg)))}return classes}function parseValue(arg){if("string"==typeof arg||"number"==typeof arg)return arg;if("object"!=typeof arg)return"";if(Array.isArray(arg))return classNames.apply(null,arg);if(arg.toString!==Object.prototype.toString&&!arg.toString.toString().includes("[native code]"))return arg.toString();var classes="";for(var key in arg)hasOwn.call(arg,key)&&arg[key]&&(classes=appendClass(classes,key));return classes}function appendClass(value,newClass){return newClass?value?value+" "+newClass:value+newClass:value}module.exports?(classNames.default=classNames,module.exports=classNames):void 0===(__WEBPACK_AMD_DEFINE_RESULT__=function(){return classNames}.apply(exports,[]))||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)}()},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/Presentation/ui-components/Avatar/Avatar.scss":(module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/css-loader/dist/runtime/sourceMaps.js"),_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__),_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js"),___CSS_LOADER_EXPORT___=__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__)()(_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default());___CSS_LOADER_EXPORT___.push([module.id,".avatar{display:flex;flex-shrink:0;align-items:center;justify-content:center;overflow:hidden;border-radius:50%;background-color:var(--disabled-elements);color:var(--secondary-text)}.avatar,.avatar *{box-sizing:border-box}.avatar svg{height:26px;width:26px;fill:var(--tertiary-elements)}.avatar__image{object-fit:cover;width:100%;height:100%}.avatar--xs{width:32px;height:32px}.avatar--sm{width:36px;height:36px}.avatar--md{width:40px;height:40px}.avatar--lg{width:56px;height:56px}.avatar--lg svg{height:33px;width:33px}.avatar--xl{width:64px;height:64px}.avatar--xxl{width:80px;height:80px}","",{version:3,sources:["webpack://./src/Presentation/ui-components/Avatar/Avatar.scss","webpack://./src/Presentation/themes/styles/_mixins.scss"],names:[],mappings:"AAEA,QACE,YAAA,CACA,aAAA,CACA,kBAAA,CACA,sBAAA,CAEA,eAAA,CACA,iBAAA,CACA,yCAAA,CACA,2BAAA,CCVA,kBAEE,qBAAA,CDYF,YACE,WAAA,CACA,UAAA,CACA,6BAAA,CAGF,eACE,gBAAA,CACA,UAAA,CACA,WAAA,CAGF,YACE,UAAA,CACA,WAAA,CAGF,YACE,UAAA,CACA,WAAA,CAGF,YACE,UAAA,CACA,WAAA,CAGF,YACE,UAAA,CACA,WAAA,CAEA,gBACE,WAAA,CACA,UAAA,CAIJ,YACE,UAAA,CACA,WAAA,CAGF,aACE,UAAA,CACA,WAAA",sourcesContent:["@use '../../themes/styles/mixins' as *;\n\n.avatar {\n display: flex;\n flex-shrink: 0;\n align-items: center;\n justify-content: center;\n\n overflow: hidden;\n border-radius: 50%;\n background-color: var(--disabled-elements);\n color: var(--secondary-text);\n\n @include applyBorderBox;\n\n svg {\n height: 26px;\n width: 26px;\n fill: var(--tertiary-elements);\n }\n\n &__image {\n object-fit: cover;\n width: 100%;\n height: 100%;\n }\n\n &--xs {\n width: 32px;\n height: 32px;\n }\n\n &--sm {\n width: 36px;\n height: 36px;\n }\n\n &--md {\n width: 40px;\n height: 40px;\n }\n\n &--lg {\n width: 56px;\n height: 56px;\n\n svg {\n height: 33px;\n width: 33px;\n }\n }\n\n &--xl {\n width: 64px;\n height: 64px;\n }\n\n &--xxl {\n width: 80px;\n height: 80px;\n }\n}\n","@mixin applyBorderBox {\n &,\n * {\n box-sizing: border-box;\n }\n}\n"],sourceRoot:""}]);const __WEBPACK_DEFAULT_EXPORT__=___CSS_LOADER_EXPORT___},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/Presentation/ui-components/Badge/Badge.scss":(module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/css-loader/dist/runtime/sourceMaps.js"),_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__),_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js"),___CSS_LOADER_EXPORT___=__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__)()(_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default());___CSS_LOADER_EXPORT___.push([module.id,'.badge{display:flex;justify-content:center;align-items:center;height:20px;border-radius:30px;padding:2px 6px;font-family:"Roboto";font-weight:500;font-size:12px;line-height:16px;letter-spacing:.5px;background-color:var(--main-elements);color:var(--secondary-background)}.badge--mute{background-color:var(--disabled-elements);color:var(--secondary-background)}',"",{version:3,sources:["webpack://./src/Presentation/ui-components/Badge/Badge.scss"],names:[],mappings:"AAAA,OACE,YAAA,CACA,sBAAA,CACA,kBAAA,CAEA,WAAA,CACA,kBAAA,CACA,eAAA,CAEA,oBAAA,CACA,eAAA,CACA,cAAA,CACA,gBAAA,CACA,mBAAA,CAEA,qCAAA,CACA,iCAAA,CAEA,aACE,yCAAA,CACA,iCAAA",sourcesContent:[".badge {\n display: flex;\n justify-content: center;\n align-items: center;\n\n height: 20px;\n border-radius: 30px;\n padding: 2px 6px;\n\n font-family: 'Roboto';\n font-weight: 500;\n font-size: 12px;\n line-height: 16px;\n letter-spacing: 0.5px;\n\n background-color: var(--main-elements);\n color: var(--secondary-background);\n\n &--mute {\n background-color: var(--disabled-elements);\n color: var(--secondary-background);\n }\n}\n"],sourceRoot:""}]);const __WEBPACK_DEFAULT_EXPORT__=___CSS_LOADER_EXPORT___},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/Presentation/ui-components/DialogItemPreview/DialogItemPreview.scss":(module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/css-loader/dist/runtime/sourceMaps.js"),_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__),_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js"),___CSS_LOADER_EXPORT___=__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__)()(_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default());___CSS_LOADER_EXPORT___.push([module.id,".dialog-item-preview{display:flex;align-items:center;padding:8px 16px;gap:16px}.dialog-item-preview,.dialog-item-preview *{box-sizing:border-box}.dialog-item-preview:hover{background:var(--divider)}.dialog-item-preview--active{box-shadow:4px 0px 0px 0px var(--primary) inset;background:var(--divider)}.dialog-item-preview__content{width:calc(100% - 72px);display:flex;flex-direction:column;gap:2px}.dialog-item-preview__content-top{display:flex;justify-content:space-between}.dialog-item-preview__content-top-title{font:var(--label-label-medium);color:var(--main-text, #0b1b0f);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.dialog-item-preview__content-top-date{color:var(--tertiary-elements, #636d78);font:var(--label-label-small)}.dialog-item-preview__content-bottom{display:flex;justify-content:space-between;gap:5px;height:32px}.dialog-item-preview__content-bottom-message{color:var(--secondary-text, #636d78);text-align:left;font:var(--body-body-small);overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.dialog-item-preview__content-bottom-controls{display:flex;align-items:center;gap:5px}.dialog-item-preview__content-bottom-controls-menu{width:24px;height:24px}","",{version:3,sources:["webpack://./src/Presentation/ui-components/DialogItemPreview/DialogItemPreview.scss","webpack://./src/Presentation/themes/styles/_mixins.scss"],names:[],mappings:"AAEA,qBACE,YAAA,CACA,kBAAA,CACA,gBAAA,CACA,QAAA,CCLA,4CAEE,qBAAA,CDOF,2BACE,yBAAA,CAGF,6BACE,+CAAA,CACA,yBAAA,CAGF,8BACE,uBAAA,CACA,YAAA,CACA,qBAAA,CACA,OAAA,CAEA,kCACE,YAAA,CACA,6BAAA,CAEA,wCACE,8BAAA,CACA,+BAAA,CACA,eAAA,CACA,kBAAA,CACA,sBAAA,CAGF,uCACE,uCAAA,CACA,6BAAA,CAIJ,qCACE,YAAA,CACA,6BAAA,CACA,OAAA,CACA,WAAA,CAEA,6CACE,oCAAA,CACA,eAAA,CACA,2BAAA,CACA,eAAA,CACA,mBAAA,CACA,oBAAA,CACA,2BAAA,CAGF,8CACE,YAAA,CACA,kBAAA,CACA,OAAA,CAEA,mDACE,UAAA,CACA,WAAA",sourcesContent:["@use '../../themes/styles/mixins' as *;\n\n.dialog-item-preview {\n display: flex;\n align-items: center;\n padding: 8px 16px;\n gap: 16px;\n\n @include applyBorderBox; // Переместил после основных свойств\n\n &:hover {\n background: var(--divider);\n }\n\n &--active {\n box-shadow: 4px 0px 0px 0px var(--primary) inset;\n background: var(--divider);\n }\n\n &__content {\n width: calc(100% - 72px);\n display: flex;\n flex-direction: column;\n gap: 2px;\n\n &-top {\n display: flex;\n justify-content: space-between;\n\n &-title {\n font: var(--label-label-medium);\n color: var(--main-text, #0b1b0f);\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n }\n\n &-date {\n color: var(--tertiary-elements, #636d78);\n font: var(--label-label-small);\n }\n }\n\n &-bottom {\n display: flex;\n justify-content: space-between;\n gap: 5px;\n height: 32px;\n\n &-message {\n color: var(--secondary-text, #636d78);\n text-align: left;\n font: var(--body-body-small);\n overflow: hidden;\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n }\n\n &-controls {\n display: flex;\n align-items: center;\n gap: 5px;\n\n &-menu {\n width: 24px;\n height: 24px;\n }\n }\n }\n }\n}\n","@mixin applyBorderBox {\n &,\n * {\n box-sizing: border-box;\n }\n}\n"],sourceRoot:""}]);const __WEBPACK_DEFAULT_EXPORT__=___CSS_LOADER_EXPORT___},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/Presentation/ui-components/Dropdown/Dropdown.scss":(module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/css-loader/dist/runtime/sourceMaps.js"),_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__),_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js"),___CSS_LOADER_EXPORT___=__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__)()(_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default());___CSS_LOADER_EXPORT___.push([module.id,'.dropdown{width:100%;height:100%;position:relative}.dropdown,.dropdown *{box-sizing:border-box}.dropdown__toggle{width:100%;height:100%;background:none;border:none;color:inherit;font:inherit;line-height:normal;overflow:visible;padding:0;margin:0;cursor:pointer;outline:none}.dropdown__menu{background-color:var(--main-background);box-shadow:0 3px 5px 0 rgba(0,0,0,.04),0 3px 14px 0 rgba(0,0,0,.08);border-radius:4px;padding:8px 0px;margin:0;z-index:100;position:absolute;overflow:hidden;list-style-type:none;display:none}.dropdown__menu--topRight{bottom:100%}.dropdown__menu--left{top:50%;transform:translateY(-50%);right:100%}.dropdown__menu--opened{display:block}.dropdown__option{display:flex;justify-content:space-between;align-items:center;font-family:"Roboto";font-weight:400;font-size:14px;line-height:20px;letter-spacing:.25px;height:32px;width:135px;padding:4px 16px;cursor:pointer}.dropdown__option--disabled{color:var(--caption)}.dropdown__label{width:100%;display:flex;align-items:center;gap:3px}',"",{version:3,sources:["webpack://./src/Presentation/ui-components/Dropdown/Dropdown.scss","webpack://./src/Presentation/themes/styles/_mixins.scss"],names:[],mappings:"AAEA,UACE,UAAA,CACA,WAAA,CACA,iBAAA,CCJA,sBAEE,qBAAA,CDMF,kBACE,UAAA,CACA,WAAA,CACA,eAAA,CACA,WAAA,CACA,aAAA,CACA,YAAA,CACA,kBAAA,CACA,gBAAA,CACA,SAAA,CACA,QAAA,CACA,cAAA,CACA,YAAA,CAGF,gBACE,uCAAA,CACA,mEAAA,CAEA,iBAAA,CAEA,eAAA,CACA,QAAA,CACA,WAAA,CACA,iBAAA,CACA,eAAA,CACA,oBAAA,CACA,YAAA,CAEA,0BACE,WAAA,CAGF,sBACE,OAAA,CACA,0BAAA,CACA,UAAA,CAGF,wBACE,aAAA,CAIJ,kBACE,YAAA,CACA,6BAAA,CACA,kBAAA,CAEA,oBAAA,CACA,eAAA,CACA,cAAA,CACA,gBAAA,CACA,oBAAA,CAEA,WAAA,CACA,WAAA,CACA,gBAAA,CAEA,cAAA,CAEA,4BACE,oBAAA,CAIJ,iBACE,UAAA,CACA,YAAA,CACA,kBAAA,CACA,OAAA",sourcesContent:["@use '../../themes/styles/mixins' as *;\n\n.dropdown {\n width: 100%;\n height: 100%;\n position: relative;\n\n @include applyBorderBox;\n\n &__toggle {\n width: 100%;\n height: 100%;\n background: none;\n border: none;\n color: inherit;\n font: inherit;\n line-height: normal;\n overflow: visible;\n padding: 0;\n margin: 0;\n cursor: pointer;\n outline: none;\n }\n\n &__menu {\n background-color: var(--main-background);\n box-shadow: 0 3px 5px 0 rgba(0, 0, 0, 0.04),\n 0 3px 14px 0 rgba(0, 0, 0, 0.08);\n border-radius: 4px;\n\n padding: 8px 0px;\n margin: 0;\n z-index: 100;\n position: absolute;\n overflow: hidden;\n list-style-type: none;\n display: none;\n\n &--topRight {\n bottom: 100%;\n }\n\n &--left {\n top: 50%;\n transform: translateY(-50%);\n right: 100%;\n }\n\n &--opened {\n display: block;\n }\n }\n\n &__option {\n display: flex;\n justify-content: space-between;\n align-items: center;\n\n font-family: 'Roboto';\n font-weight: 400;\n font-size: 14px;\n line-height: 20px;\n letter-spacing: 0.25px;\n\n height: 32px;\n width: 135px;\n padding: 4px 16px;\n\n cursor: pointer;\n\n &--disabled {\n color: var(--caption);\n }\n }\n\n &__label {\n width: 100%;\n display: flex;\n align-items: center;\n gap: 3px;\n }\n}\n","@mixin applyBorderBox {\n &,\n * {\n box-sizing: border-box;\n }\n}\n"],sourceRoot:""}]);const __WEBPACK_DEFAULT_EXPORT__=___CSS_LOADER_EXPORT___},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/Presentation/ui-components/PreviewFileMessage/PreviewFileMessage.scss":(module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/css-loader/dist/runtime/sourceMaps.js"),_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__),_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js"),___CSS_LOADER_EXPORT___=__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__)()(_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default());___CSS_LOADER_EXPORT___.push([module.id,'.preview-file-message{display:flex;gap:8px;align-items:center}.preview-file-message__image{object-fit:cover;display:flex;width:32px;height:32px;background:var(--incoming-background, #e4e6e8);border-radius:8px;flex-shrink:0;justify-content:center;align-items:center}.preview-file-message__icon{fill:var(--caption);width:16px;height:16px}.preview-file-message__name{color:var(--secondary-text);text-align:left;font:400 12px/16px "Roboto",sans-serif;letter-spacing:.4px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}',"",{version:3,sources:["webpack://./src/Presentation/ui-components/PreviewFileMessage/PreviewFileMessage.scss"],names:[],mappings:"AAAA,sBACE,YAAA,CACA,OAAA,CACA,kBAAA,CAEA,6BACE,gBAAA,CACA,YAAA,CACA,UAAA,CACA,WAAA,CACA,8CAAA,CACA,iBAAA,CACA,aAAA,CACA,sBAAA,CACA,kBAAA,CAGF,4BACE,mBAAA,CACA,UAAA,CACA,WAAA,CAGF,4BACE,2BAAA,CACA,eAAA,CACA,sCAAA,CACA,mBAAA,CACA,eAAA,CACA,kBAAA,CACA,sBAAA",sourcesContent:['.preview-file-message {\n display: flex;\n gap: 8px;\n align-items: center;\n\n &__image {\n object-fit: cover;\n display: flex;\n width: 32px;\n height: 32px;\n background: var(--incoming-background, #e4e6e8);\n border-radius: 8px;\n flex-shrink: 0;\n justify-content: center;\n align-items: center;\n }\n\n &__icon {\n fill: var(--caption);\n width: 16px;\n height: 16px;\n }\n\n &__name {\n color: var(--secondary-text);\n text-align: left;\n font: 400 12px/16px "Roboto", sans-serif;\n letter-spacing: 0.4px;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n }\n}\n'],sourceRoot:""}]);const __WEBPACK_DEFAULT_EXPORT__=___CSS_LOADER_EXPORT___},"./src/Presentation/ui-components/Avatar/Avatar.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>Avatar_Avatar_Avatar});var react=__webpack_require__("./node_modules/react/index.js"),classnames=__webpack_require__("./node_modules/classnames/index.js"),classnames_default=__webpack_require__.n(classnames),icons=__webpack_require__("./src/Presentation/icons/index.ts"),injectStylesIntoStyleTag=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),injectStylesIntoStyleTag_default=__webpack_require__.n(injectStylesIntoStyleTag),styleDomAPI=__webpack_require__("./node_modules/style-loader/dist/runtime/styleDomAPI.js"),styleDomAPI_default=__webpack_require__.n(styleDomAPI),insertBySelector=__webpack_require__("./node_modules/style-loader/dist/runtime/insertBySelector.js"),insertBySelector_default=__webpack_require__.n(insertBySelector),setAttributesWithoutAttributes=__webpack_require__("./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js"),setAttributesWithoutAttributes_default=__webpack_require__.n(setAttributesWithoutAttributes),insertStyleElement=__webpack_require__("./node_modules/style-loader/dist/runtime/insertStyleElement.js"),insertStyleElement_default=__webpack_require__.n(insertStyleElement),styleTagTransform=__webpack_require__("./node_modules/style-loader/dist/runtime/styleTagTransform.js"),styleTagTransform_default=__webpack_require__.n(styleTagTransform),Avatar=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/Presentation/ui-components/Avatar/Avatar.scss"),options={};options.styleTagTransform=styleTagTransform_default(),options.setAttributes=setAttributesWithoutAttributes_default(),options.insert=insertBySelector_default().bind(null,"head"),options.domAPI=styleDomAPI_default(),options.insertStyleElement=insertStyleElement_default();injectStylesIntoStyleTag_default()(Avatar.A,options);Avatar.A&&Avatar.A.locals&&Avatar.A.locals;function Avatar_Avatar_Avatar(_ref){let{icon=react.createElement(icons.Uh,null),size="md",className,src}=_ref;return src?react.createElement("div",{className:classnames_default()("avatar",`avatar--${size}`,className)},react.createElement("img",{src,className:"avatar__image",alt:"Avatar"})):react.createElement("div",{className:classnames_default()("avatar",`avatar--${size}`,className)},icon)}Avatar_Avatar_Avatar.__docgenInfo={description:"",methods:[],displayName:"Avatar",props:{size:{required:!1,tsType:{name:"union",raw:"'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl'",elements:[{name:"literal",value:"'xs'"},{name:"literal",value:"'sm'"},{name:"literal",value:"'md'"},{name:"literal",value:"'lg'"},{name:"literal",value:"'xl'"},{name:"literal",value:"'xxl'"}]},description:"",defaultValue:{value:"'md'",computed:!1}},icon:{required:!1,tsType:{name:"ReactElement"},description:"",defaultValue:{value:"<UserSvg />",computed:!1}},className:{required:!1,tsType:{name:"string"},description:""},src:{required:!1,tsType:{name:"string"},description:""}}}},"./src/Presentation/ui-components/Badge/Badge.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>Badge_Badge_Badge});var react=__webpack_require__("./node_modules/react/index.js"),classnames=__webpack_require__("./node_modules/classnames/index.js"),classnames_default=__webpack_require__.n(classnames),injectStylesIntoStyleTag=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),injectStylesIntoStyleTag_default=__webpack_require__.n(injectStylesIntoStyleTag),styleDomAPI=__webpack_require__("./node_modules/style-loader/dist/runtime/styleDomAPI.js"),styleDomAPI_default=__webpack_require__.n(styleDomAPI),insertBySelector=__webpack_require__("./node_modules/style-loader/dist/runtime/insertBySelector.js"),insertBySelector_default=__webpack_require__.n(insertBySelector),setAttributesWithoutAttributes=__webpack_require__("./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js"),setAttributesWithoutAttributes_default=__webpack_require__.n(setAttributesWithoutAttributes),insertStyleElement=__webpack_require__("./node_modules/style-loader/dist/runtime/insertStyleElement.js"),insertStyleElement_default=__webpack_require__.n(insertStyleElement),styleTagTransform=__webpack_require__("./node_modules/style-loader/dist/runtime/styleTagTransform.js"),styleTagTransform_default=__webpack_require__.n(styleTagTransform),Badge=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/Presentation/ui-components/Badge/Badge.scss"),options={};options.styleTagTransform=styleTagTransform_default(),options.setAttributes=setAttributesWithoutAttributes_default(),options.insert=insertBySelector_default().bind(null,"head"),options.domAPI=styleDomAPI_default(),options.insertStyleElement=insertStyleElement_default();injectStylesIntoStyleTag_default()(Badge.A,options);Badge.A&&Badge.A.locals&&Badge.A.locals;function Badge_Badge_Badge(_ref){let{count,limit,mute=!1,classNames}=_ref;return react.createElement("div",{className:classnames_default()("badge",{"badge--mute":mute},classNames)},limit&&count>limit?`${limit}+`:count)}Badge_Badge_Badge.__docgenInfo={description:"",methods:[],displayName:"Badge",props:{count:{required:!0,tsType:{name:"number"},description:""},limit:{required:!1,tsType:{name:"number"},description:""},mute:{required:!1,tsType:{name:"boolean"},description:"",defaultValue:{value:"false",computed:!1}},classNames:{required:!1,tsType:{name:"string"},description:""}}}},"./src/Presentation/ui-components/DialogItemPreview/DialogItemPreview.stories.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{DialogItemPreviewDefault:()=>DialogItemPreviewDefault,DialogItemPreviewFullScreen:()=>DialogItemPreviewFullScreen,DialogItemPreviewMobileScreen:()=>DialogItemPreviewMobileScreen,DialogItemPreviewMobileScreenIPad:()=>DialogItemPreviewMobileScreenIPad,__namedExportsOrder:()=>__namedExportsOrder,default:()=>DialogItemPreview_stories});var react=__webpack_require__("./node_modules/react/index.js"),dist=__webpack_require__("./node_modules/@storybook/addon-viewport/dist/index.mjs"),classnames=__webpack_require__("./node_modules/classnames/index.js"),classnames_default=__webpack_require__.n(classnames),injectStylesIntoStyleTag=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),injectStylesIntoStyleTag_default=__webpack_require__.n(injectStylesIntoStyleTag),styleDomAPI=__webpack_require__("./node_modules/style-loader/dist/runtime/styleDomAPI.js"),styleDomAPI_default=__webpack_require__.n(styleDomAPI),insertBySelector=__webpack_require__("./node_modules/style-loader/dist/runtime/insertBySelector.js"),insertBySelector_default=__webpack_require__.n(insertBySelector),setAttributesWithoutAttributes=__webpack_require__("./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js"),setAttributesWithoutAttributes_default=__webpack_require__.n(setAttributesWithoutAttributes),insertStyleElement=__webpack_require__("./node_modules/style-loader/dist/runtime/insertStyleElement.js"),insertStyleElement_default=__webpack_require__.n(insertStyleElement),styleTagTransform=__webpack_require__("./node_modules/style-loader/dist/runtime/styleTagTransform.js"),styleTagTransform_default=__webpack_require__.n(styleTagTransform),DialogItemPreview=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/Presentation/ui-components/DialogItemPreview/DialogItemPreview.scss"),options={};options.styleTagTransform=styleTagTransform_default(),options.setAttributes=setAttributesWithoutAttributes_default(),options.insert=insertBySelector_default().bind(null,"head"),options.domAPI=styleDomAPI_default(),options.insertStyleElement=insertStyleElement_default();injectStylesIntoStyleTag_default()(DialogItemPreview.A,options);DialogItemPreview.A&&DialogItemPreview.A.locals&&DialogItemPreview.A.locals;const DialogItemPreview_DialogItemPreview_DialogItemPreview=_ref=>{let{avatar,title,date,active,lastMessage,badge,contextMenu,onClick,className}=_ref;return react.createElement("div",{className:classnames_default()("dialog-item-preview",{"dialog-item-preview--active":active},className),onClick},avatar,react.createElement("div",{className:"dialog-item-preview__content"},react.createElement("div",{className:"dialog-item-preview__content-top"},react.createElement("span",{className:"dialog-item-preview__content-top-title"},title),date&&react.createElement("span",{className:"dialog-item-preview__content-top-date"},date)),react.createElement("div",{className:"dialog-item-preview__content-bottom"},react.createElement("div",{className:"dialog-item-preview__content-bottom-message"},lastMessage),react.createElement("div",{onClick:event=>event.stopPropagation(),className:"dialog-item-preview__content-bottom-controls"},badge,contextMenu&&react.createElement("div",{className:"dialog-item-preview__content-bottom-controls-menu"},contextMenu)))))},ui_components_DialogItemPreview_DialogItemPreview=DialogItemPreview_DialogItemPreview_DialogItemPreview;DialogItemPreview_DialogItemPreview_DialogItemPreview.__docgenInfo={description:"",methods:[],displayName:"DialogItemPreview",props:{avatar:{required:!1,tsType:{name:"ReactElement"},description:""},title:{required:!1,tsType:{name:"string"},description:""},active:{required:!1,tsType:{name:"boolean"},description:""},date:{required:!1,tsType:{name:"string"},description:""},lastMessage:{required:!1,tsType:{name:"union",raw:"ReactElement | string",elements:[{name:"ReactElement"},{name:"string"}]},description:""},badge:{required:!1,tsType:{name:"ReactElement"},description:""},contextMenu:{required:!1,tsType:{name:"ReactElement"},description:""},onClick:{required:!1,tsType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""},className:{required:!1,tsType:{name:"string"},description:""}}};var Badge=__webpack_require__("./src/Presentation/ui-components/Badge/Badge.tsx"),Avatar=__webpack_require__("./src/Presentation/ui-components/Avatar/Avatar.tsx"),icons=__webpack_require__("./src/Presentation/icons/index.ts"),PreviewFileMessage=__webpack_require__("./src/Presentation/ui-components/PreviewFileMessage/PreviewFileMessage.tsx"),Dropdown=__webpack_require__("./src/Presentation/ui-components/Dropdown/Dropdown.tsx");const DialogItemPreview_stories={title:"@quickblox-react-ui-kit/Presentation/ui-components/DialogItemPreview",tags:["autodocs"],component:ui_components_DialogItemPreview_DialogItemPreview,decorators:[],parameters:{viewport:{viewports:dist.Lq}},argTypes:{avatar:{description:"Avatar or Icon",control:"select",options:["User","Group","Conference","Public","Photo"],mapping:{User:react.createElement(Avatar.A,{size:"lg",icon:react.createElement(icons.Uh,null)}),Group:react.createElement(Avatar.A,{size:"lg",icon:react.createElement(icons.C_,null)}),Conference:react.createElement(Avatar.A,{size:"lg",icon:react.createElement(icons.os,null)}),Public:react.createElement(Avatar.A,{size:"lg",icon:react.createElement(icons.vq,null)}),Photo:react.createElement(Avatar.A,{size:"lg",src:"https://quickblox.com/wp-content/themes/QuickbloxTheme2021/img/chat-messaging.svg"})}},lastMessage:{description:"Last message by type",control:"select",options:["ShortText","LongText","Image","File","None"],mapping:{ShortText:"Hello, world!How are you?",LongText:"Hello, dear Mr. User. Thank you for choosing us. I'm here to assist with your order's delivery. Please provide your preferred address and any specific instructions. We offer standard, express, and same-day delivery in select areas. Let us know your convenience, and we'll ensure a smooth process.",Image:react.createElement(PreviewFileMessage.A,{name:"My avatar.png",src:"https://quickblox.com/wp-content/themes/QuickbloxTheme2021/img/chat-messaging.svg"}),File:react.createElement(PreviewFileMessage.A,{name:"My Document.txt"}),None:void 0}},badge:{description:"Badge",control:"select",options:["Default","OverCount","None"],mapping:{Default:react.createElement(Badge.A,{count:5}),OverCount:react.createElement(Badge.A,{count:15,limit:9}),None:void 0}},active:{table:{defaultValue:{summary:"false"},type:{summary:"boolean"}},description:"Active"},contextMenu:{description:"Context action icon",control:"select",options:["Default","Leave","None"],mapping:{Default:react.createElement(icons.ur,null),Leave:react.createElement(Dropdown.A,{placement:"left",options:[{value:"Leave",label:"Leave"}],onSelect:value=>{console.log(value)}},react.createElement(icons.ur,null)),None:void 0}}}},DialogItemPreviewDefault={name:"DialogItemPreview Default",args:{title:"Name",avatar:react.createElement(Avatar.A,{size:"lg",icon:react.createElement(icons.Uh,null)})},render:args=>(args.date=args.date?new Date(args.date).toLocaleDateString():(new Date).toLocaleDateString(),react.createElement(ui_components_DialogItemPreview_DialogItemPreview,args))},DialogItemPreviewFullScreen={name:"DialogItemPreview FullScreen",args:{title:"Name",avatar:react.createElement(Avatar.A,{size:"lg",icon:react.createElement(icons.Uh,null)}),lastMessage:"Hello, dear Mr. User. Thank you for choosing us. I'm here to assist with your order's delivery. Please provide your preferred address and any specific instructions. We offer standard, express, and same-day delivery in select areas. Let us know your convenience, and we'll ensure a smooth process.",badge:react.createElement(Badge.A,{count:5}),contextMenu:react.createElement(icons.ur,null)},parameters:{viewport:{defaultViewport:"responsive"}},render:args=>(args.date=(new Date).toLocaleDateString(),react.createElement(ui_components_DialogItemPreview_DialogItemPreview,args))},DialogItemPreviewMobileScreen={name:"DialogItemPreview MobileScreen",args:{title:"Name",avatar:react.createElement(Avatar.A,{size:"lg",icon:react.createElement(icons.Uh,null)}),lastMessage:"Hello, dear Mr. User. Thank you for choosing us. I'm here to assist with your order's delivery. Please provide your preferred address and any specific instructions. We offer standard, express, and same-day delivery in select areas. Let us know your convenience, and we'll ensure a smooth process.",badge:react.createElement(Badge.A,{count:5}),contextMenu:react.createElement(icons.ur,null)},parameters:{viewport:{defaultViewport:"iphonese2"}},render:args=>(args.date=args.date?new Date(args.date).toLocaleDateString():(new Date).toLocaleDateString(),react.createElement(ui_components_DialogItemPreview_DialogItemPreview,args))},DialogItemPreviewMobileScreenIPad={name:"DialogItemPreview MobileScreen IPad",args:{title:"Name",avatar:react.createElement(Avatar.A,{size:"lg",icon:react.createElement(icons.Uh,null)}),lastMessage:"Hello, dear Mr. User. Thank you for choosing us. I'm here to assist with your order's delivery. Please provide your preferred address and any specific instructions. We offer standard, express, and same-day delivery in select areas. Let us know your convenience, and we'll ensure a smooth process.",badge:react.createElement(Badge.A,{count:5}),contextMenu:react.createElement(icons.ur,null)},parameters:{viewport:{defaultViewport:"ipad"}},render:args=>(args.date=args.date?new Date(args.date).toLocaleDateString():(new Date).toLocaleDateString(),react.createElement(ui_components_DialogItemPreview_DialogItemPreview,args))},__namedExportsOrder=["DialogItemPreviewDefault","DialogItemPreviewFullScreen","DialogItemPreviewMobileScreen","DialogItemPreviewMobileScreenIPad"];DialogItemPreviewDefault.parameters={...DialogItemPreviewDefault.parameters,docs:{...DialogItemPreviewDefault.parameters?.docs,source:{originalSource:"{\n name: 'DialogItemPreview Default',\n args: {\n title: 'Name',\n avatar: <Avatar size=\"lg\" icon={<UserSvg />} />\n },\n render: args => {\n // eslint-disable-next-line no-param-reassign\n args.date = args.date ? new Date(args.date!).toLocaleDateString() : new Date().toLocaleDateString();\n return <DialogItemPreview {...args} />;\n }\n}",...DialogItemPreviewDefault.parameters?.docs?.source}}},DialogItemPreviewFullScreen.parameters={...DialogItemPreviewFullScreen.parameters,docs:{...DialogItemPreviewFullScreen.parameters?.docs,source:{originalSource:"{\n name: 'DialogItemPreview FullScreen',\n args: {\n title: 'Name',\n avatar: <Avatar size=\"lg\" icon={<UserSvg />} />,\n lastMessage: \"Hello, dear Mr. User. Thank you for choosing us. I'm here to assist with your order's delivery. Please provide your preferred address and any specific instructions. We offer standard, express, and same-day delivery in select areas. Let us know your convenience, and we'll ensure a smooth process.\",\n badge: <Badge count={5} />,\n contextMenu: <MoreSvg />\n },\n parameters: {\n viewport: {\n defaultViewport: 'responsive'\n }\n },\n render: args => {\n // eslint-disable-next-line no-param-reassign\n args.date = new Date().toLocaleDateString();\n return <DialogItemPreview {...args} />;\n }\n}",...DialogItemPreviewFullScreen.parameters?.docs?.source}}},DialogItemPreviewMobileScreen.parameters={...DialogItemPreviewMobileScreen.parameters,docs:{...DialogItemPreviewMobileScreen.parameters?.docs,source:{originalSource:"{\n name: 'DialogItemPreview MobileScreen',\n args: {\n title: 'Name',\n avatar: <Avatar size=\"lg\" icon={<UserSvg />} />,\n lastMessage: \"Hello, dear Mr. User. Thank you for choosing us. I'm here to assist with your order's delivery. Please provide your preferred address and any specific instructions. We offer standard, express, and same-day delivery in select areas. Let us know your convenience, and we'll ensure a smooth process.\",\n badge: <Badge count={5} />,\n contextMenu: <MoreSvg />\n },\n parameters: {\n viewport: {\n defaultViewport: 'iphonese2'\n }\n },\n render: args => {\n // eslint-disable-next-line no-param-reassign\n args.date = args.date ? new Date(args.date!).toLocaleDateString() : new Date().toLocaleDateString();\n return <DialogItemPreview {...args} />;\n }\n}",...DialogItemPreviewMobileScreen.parameters?.docs?.source}}},DialogItemPreviewMobileScreenIPad.parameters={...DialogItemPreviewMobileScreenIPad.parameters,docs:{...DialogItemPreviewMobileScreenIPad.parameters?.docs,source:{originalSource:"{\n name: 'DialogItemPreview MobileScreen IPad',\n args: {\n title: 'Name',\n avatar: <Avatar size=\"lg\" icon={<UserSvg />} />,\n lastMessage: \"Hello, dear Mr. User. Thank you for choosing us. I'm here to assist with your order's delivery. Please provide your preferred address and any specific instructions. We offer standard, express, and same-day delivery in select areas. Let us know your convenience, and we'll ensure a smooth process.\",\n badge: <Badge count={5} />,\n contextMenu: <MoreSvg />\n },\n parameters: {\n viewport: {\n defaultViewport: 'ipad'\n }\n },\n render: args => {\n // eslint-disable-next-line no-param-reassign\n args.date = args.date ? new Date(args.date!).toLocaleDateString() : new Date().toLocaleDateString();\n return <DialogItemPreview {...args} />;\n }\n}",...DialogItemPreviewMobileScreenIPad.parameters?.docs?.source}}}},"./src/Presentation/ui-components/Dropdown/Dropdown.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>Dropdown_Dropdown_Dropdown});var react=__webpack_require__("./node_modules/react/index.js"),classnames=__webpack_require__("./node_modules/classnames/index.js"),classnames_default=__webpack_require__.n(classnames);function DropdownOption(_ref){let{label,value,disabled,leftIcon,rightIcon,onSelect}=_ref;return react.createElement("li",{className:classnames_default()("dropdown__option",{"dropdown__option--disabled":disabled}),onClick:()=>!disabled&&onSelect(value)},react.createElement("span",{className:"dropdown__label"},leftIcon,label),rightIcon)}DropdownOption.__docgenInfo={description:"",methods:[],displayName:"DropdownOption",props:{value:{required:!0,tsType:{name:"string"},description:""},label:{required:!0,tsType:{name:"string"},description:""},disabled:{required:!1,tsType:{name:"boolean"},description:""},leftIcon:{required:!1,tsType:{name:"ReactElement"},description:""},rightIcon:{required:!1,tsType:{name:"ReactElement"},description:""},onSelect:{required:!0,tsType:{name:"signature",type:"function",raw:"(value: string) => void",signature:{arguments:[{type:{name:"string"},name:"value"}],return:{name:"void"}}},description:""}}};var injectStylesIntoStyleTag=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),injectStylesIntoStyleTag_default=__webpack_require__.n(injectStylesIntoStyleTag),styleDomAPI=__webpack_require__("./node_modules/style-loader/dist/runtime/styleDomAPI.js"),styleDomAPI_default=__webpack_require__.n(styleDomAPI),insertBySelector=__webpack_require__("./node_modules/style-loader/dist/runtime/insertBySelector.js"),insertBySelector_default=__webpack_require__.n(insertBySelector),setAttributesWithoutAttributes=__webpack_require__("./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js"),setAttributesWithoutAttributes_default=__webpack_require__.n(setAttributesWithoutAttributes),insertStyleElement=__webpack_require__("./node_modules/style-loader/dist/runtime/insertStyleElement.js"),insertStyleElement_default=__webpack_require__.n(insertStyleElement),styleTagTransform=__webpack_require__("./node_modules/style-loader/dist/runtime/styleTagTransform.js"),styleTagTransform_default=__webpack_require__.n(styleTagTransform),Dropdown=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/Presentation/ui-components/Dropdown/Dropdown.scss"),options={};options.styleTagTransform=styleTagTransform_default(),options.setAttributes=setAttributesWithoutAttributes_default(),options.insert=insertBySelector_default().bind(null,"head"),options.domAPI=styleDomAPI_default(),options.insertStyleElement=insertStyleElement_default();injectStylesIntoStyleTag_default()(Dropdown.A,options);Dropdown.A&&Dropdown.A.locals&&Dropdown.A.locals;function Dropdown_Dropdown_Dropdown(_ref){let{options,disabled=!1,onSelect,className,children,placement="bottomRight"}=_ref;const[isOpen,setIsOpen]=(0,react.useState)(!1),dropdownRef=(0,react.useRef)(null),handleSelect=value=>{onSelect(value),setIsOpen(!1)};return(0,react.useEffect)((()=>{const handleBlur=e=>{dropdownRef.current&&e.target instanceof Node&&!dropdownRef.current.contains(e.target)&&setIsOpen(!1)};return isOpen&&document.addEventListener("click",handleBlur,{capture:!0}),()=>document.removeEventListener("click",handleBlur)}),[isOpen]),react.createElement("div",{ref:dropdownRef,className:classnames_default()("dropdown",className)},react.createElement("button",{type:"button",className:"dropdown__toggle",onClick:e=>{e.stopPropagation(),setIsOpen((state=>!state))}},children),react.createElement("ul",{className:classnames_default()("dropdown__menu",`dropdown__menu--${placement}`,{"dropdown__menu--opened":isOpen})},options.map((_ref2=>{let{label,value,leftIcon,rightIcon}=_ref2;return react.createElement(DropdownOption,{label,value,disabled,onSelect:handleSelect,leftIcon,rightIcon,key:value})}))))}Dropdown_Dropdown_Dropdown.__docgenInfo={description:"",methods:[],displayName:"Dropdown",props:{options:{required:!0,tsType:{name:"Array",elements:[{name:"Option"}],raw:"Option[]"},description:""},disabled:{required:!1,tsType:{name:"boolean"},description:"",defaultValue:{value:"false",computed:!1}},children:{required:!1,tsType:{name:"union",raw:"ReactElement | string | number",elements:[{name:"ReactElement"},{name:"string"},{name:"number"}]},description:""},onSelect:{required:!0,tsType:{name:"signature",type:"function",raw:"(value: string) => void",signature:{arguments:[{type:{name:"string"},name:"value"}],return:{name:"void"}}},description:""},className:{required:!1,tsType:{name:"string"},description:""},placement:{required:!1,tsType:{name:"union",raw:"'topRight' | 'bottomRight' | 'left'",elements:[{name:"literal",value:"'topRight'"},{name:"literal",value:"'bottomRight'"},{name:"literal",value:"'left'"}]},description:"",defaultValue:{value:"'bottomRight'",computed:!1}}}}},"./src/Presentation/ui-components/PreviewFileMessage/PreviewFileMessage.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>PreviewFileMessage_PreviewFileMessage_PreviewFileMessage});var react=__webpack_require__("./node_modules/react/index.js"),classnames=__webpack_require__("./node_modules/classnames/index.js"),classnames_default=__webpack_require__.n(classnames),icons=__webpack_require__("./src/Presentation/icons/index.ts"),injectStylesIntoStyleTag=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),injectStylesIntoStyleTag_default=__webpack_require__.n(injectStylesIntoStyleTag),styleDomAPI=__webpack_require__("./node_modules/style-loader/dist/runtime/styleDomAPI.js"),styleDomAPI_default=__webpack_require__.n(styleDomAPI),insertBySelector=__webpack_require__("./node_modules/style-loader/dist/runtime/insertBySelector.js"),insertBySelector_default=__webpack_require__.n(insertBySelector),setAttributesWithoutAttributes=__webpack_require__("./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js"),setAttributesWithoutAttributes_default=__webpack_require__.n(setAttributesWithoutAttributes),insertStyleElement=__webpack_require__("./node_modules/style-loader/dist/runtime/insertStyleElement.js"),insertStyleElement_default=__webpack_require__.n(insertStyleElement),styleTagTransform=__webpack_require__("./node_modules/style-loader/dist/runtime/styleTagTransform.js"),styleTagTransform_default=__webpack_require__.n(styleTagTransform),PreviewFileMessage=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/Presentation/ui-components/PreviewFileMessage/PreviewFileMessage.scss"),options={};options.styleTagTransform=styleTagTransform_default(),options.setAttributes=setAttributesWithoutAttributes_default(),options.insert=insertBySelector_default().bind(null,"head"),options.domAPI=styleDomAPI_default(),options.insertStyleElement=insertStyleElement_default();injectStylesIntoStyleTag_default()(PreviewFileMessage.A,options);PreviewFileMessage.A&&PreviewFileMessage.A.locals&&PreviewFileMessage.A.locals;const iconDictionary={document:icons.jw,audio:icons.Lg,video:icons.BR};function PreviewFileMessage_PreviewFileMessage_PreviewFileMessage(_ref){let{type="document",name,src,className}=_ref;const Icon=iconDictionary[type];return react.createElement("div",{className:classnames_default()("preview-file-message",className)},src?react.createElement("img",{src,alt:"",className:"preview-file-message__image"}):react.createElement("span",{className:"preview-file-message__image"},react.createElement(Icon,{className:"preview-file-message__icon"})),react.createElement("span",{className:"preview-file-message__name"},name))}PreviewFileMessage_PreviewFileMessage_PreviewFileMessage.__docgenInfo={description:"",methods:[],displayName:"PreviewFileMessage",props:{type:{required:!1,tsType:{name:"union",raw:"'document' | 'audio' | 'video'",elements:[{name:"literal",value:"'document'"},{name:"literal",value:"'audio'"},{name:"literal",value:"'video'"}]},description:"",defaultValue:{value:"'document'",computed:!1}},name:{required:!0,tsType:{name:"string"},description:""},src:{required:!1,tsType:{name:"string"},description:""},className:{required:!1,tsType:{name:"string"},description:""}}}}}]);
|