quickblox-react-ui-kit 0.5.0-beta.9 → 0.5.0
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/CommonTypes/CommonTypes.d.ts +12 -0
- package/dist/CommonTypes/CommonTypes.d.ts.map +1 -1
- package/dist/Data/Creator.d.ts.map +1 -1
- package/dist/Data/DefaultConfigurations.d.ts.map +1 -1
- package/dist/Data/source/remote/Mapper/DialogDTOMapper.d.ts.map +1 -1
- package/dist/Data/source/remote/Mapper/MessageDTOMapper.d.ts.map +1 -1
- package/dist/Data/source/remote/RemoteDataSource.d.ts +8 -2
- package/dist/Data/source/remote/RemoteDataSource.d.ts.map +1 -1
- package/dist/Domain/use_cases/CreateDialogUseCase.d.ts.map +1 -1
- package/dist/Domain/use_cases/ForwardMessagesUseCase.d.ts.map +1 -1
- package/dist/Domain/use_cases/GetAllDialogsUseCase.d.ts.map +1 -1
- package/dist/Domain/use_cases/GetAllDialogsUseCaseWithMock.d.ts.map +1 -1
- package/dist/Domain/use_cases/GetAllMessagesForDialog.d.ts.map +1 -1
- package/dist/Domain/use_cases/GetAllUsersUseCase.d.ts.map +1 -1
- package/dist/Domain/use_cases/GetDialogByIdUseCase.d.ts.map +1 -1
- package/dist/Domain/use_cases/GetUsersByIdsUseCase.d.ts.map +1 -1
- package/dist/Domain/use_cases/LeaveDialogUseCase.d.ts.map +1 -1
- package/dist/Domain/use_cases/RemoveUsersFromTheDialogUseCase.d.ts.map +1 -1
- package/dist/Domain/use_cases/ReplyMessagesUseCase.d.ts.map +1 -1
- package/dist/Domain/use_cases/SendTextMessageUseCase.d.ts.map +1 -1
- package/dist/Domain/use_cases/SubscribeToDialogEventsUseCase.d.ts.map +1 -1
- package/dist/Domain/use_cases/SubscribeToDialogsUpdatesUseCase.d.ts.map +1 -1
- package/dist/Domain/use_cases/SyncDialogsUseCase.d.ts.map +1 -1
- package/dist/Domain/use_cases/UpdateCurrentDialogInDataSourceUseCase.d.ts.map +1 -1
- package/dist/Domain/use_cases/UpdateDialogUseCase.d.ts.map +1 -1
- package/dist/Domain/use_cases/UploadFileUseCase.d.ts.map +1 -1
- package/dist/Domain/use_cases/UserTypingMessageUseCase.d.ts.map +1 -1
- package/dist/Domain/use_cases/ai/AIAnswerAssistUseCase.d.ts.map +1 -1
- package/dist/Domain/use_cases/ai/AIAnswerAssistWithProxyUseCase.d.ts.map +1 -1
- package/dist/Domain/use_cases/ai/AIAnswerAssistWithSDKUseCase.d.ts.map +1 -1
- package/dist/Domain/use_cases/ai/AIRephraseUseCase.d.ts.map +1 -1
- package/dist/Domain/use_cases/ai/AIRephraseWithProxyUseCase.d.ts.map +1 -1
- package/dist/Domain/use_cases/ai/AITranslateUseCase.d.ts.map +1 -1
- package/dist/Domain/use_cases/ai/AITranslateWithProxyUseCase.d.ts.map +1 -1
- package/dist/Domain/use_cases/ai/AITranslateWithSDKUseCase.d.ts.map +1 -1
- package/dist/Domain/use_cases/base/Subscribable/SubscriptionPerformer.d.ts.map +1 -1
- package/dist/Presentation/Views/Dialog/MessageItem/MessageItem.d.ts +3 -2
- package/dist/Presentation/Views/Dialog/MessageItem/MessageItem.d.ts.map +1 -1
- package/dist/Presentation/Views/Dialog/useDialogViewModel.d.ts.map +1 -1
- package/dist/Presentation/Views/DialogInfo/UsersList/useUsersListViewModel.d.ts.map +1 -1
- package/dist/Presentation/Views/DialogList/useDialogListViewModel.d.ts.map +1 -1
- package/dist/Presentation/Views/Flow/CreateDialog/CreateDialog.d.ts +2 -1
- package/dist/Presentation/Views/Flow/CreateDialog/CreateDialog.d.ts.map +1 -1
- package/dist/Presentation/Views/Flow/CreateDialogFlow/CreateNewDialogFlow.d.ts.map +1 -1
- package/dist/Presentation/layouts/Desktop/QuickBloxUIKitDesktopLayout.d.ts.map +1 -1
- package/dist/Presentation/providers/QuickBloxUIKitProvider/QuickBloxUIKitProvider.d.ts.map +1 -1
- package/dist/Presentation/ui-components/Badge/Badge.d.ts.map +1 -1
- package/dist/QBconfig.d.ts.map +1 -1
- package/dist/index-ui.d.ts +58 -5
- package/dist/index-ui.d.ts.map +1 -1
- package/dist/index-ui.js +3634 -194
- package/dist/qb-api-calls/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/App.tsx +5 -0
- package/src/CommonTypes/CommonTypes.ts +13 -0
- package/src/Data/Creator.ts +4 -2
- package/src/Data/DefaultConfigurations.ts +4 -0
- package/src/Data/source/remote/Mapper/DialogDTOMapper.ts +0 -2
- package/src/Data/source/remote/Mapper/MessageDTOMapper.ts +9 -1
- package/src/Data/source/remote/RemoteDataSource.ts +344 -104
- package/src/Domain/use_cases/CreateDialogUseCase.ts +0 -1
- package/src/Domain/use_cases/ForwardMessagesUseCase.ts +0 -1
- package/src/Domain/use_cases/GetAllDialogsUseCase.ts +0 -1
- package/src/Domain/use_cases/GetAllDialogsUseCaseWithMock.ts +0 -2
- package/src/Domain/use_cases/GetAllMessagesForDialog.ts +10 -6
- package/src/Domain/use_cases/GetAllUsersUseCase.ts +0 -1
- package/src/Domain/use_cases/GetDialogByIdUseCase.ts +0 -2
- package/src/Domain/use_cases/GetUsersByIdsUseCase.ts +6 -4
- package/src/Domain/use_cases/LeaveDialogUseCase.ts +0 -1
- package/src/Domain/use_cases/RemoveUsersFromTheDialogUseCase.ts +0 -1
- package/src/Domain/use_cases/ReplyMessagesUseCase.ts +0 -2
- package/src/Domain/use_cases/SendTextMessageUseCase.ts +0 -3
- package/src/Domain/use_cases/SubscribeToDialogEventsUseCase.ts +0 -26
- package/src/Domain/use_cases/SubscribeToDialogsUpdatesUseCase.ts +0 -1
- package/src/Domain/use_cases/SyncDialogsUseCase.ts +0 -1
- package/src/Domain/use_cases/UpdateCurrentDialogInDataSourceUseCase.ts +0 -2
- package/src/Domain/use_cases/UpdateDialogUseCase.ts +0 -2
- package/src/Domain/use_cases/UploadFileUseCase.ts +0 -2
- package/src/Domain/use_cases/UserTypingMessageUseCase.ts +0 -2
- package/src/Domain/use_cases/ai/AIAnswerAssistUseCase.ts +0 -2
- package/src/Domain/use_cases/ai/AIAnswerAssistWithProxyUseCase.ts +0 -3
- package/src/Domain/use_cases/ai/AIAnswerAssistWithSDKUseCase.ts +0 -2
- package/src/Domain/use_cases/ai/AIRephraseUseCase.ts +0 -2
- package/src/Domain/use_cases/ai/AIRephraseWithProxyUseCase.ts +0 -3
- package/src/Domain/use_cases/ai/AITranslateUseCase.ts +0 -2
- package/src/Domain/use_cases/ai/AITranslateWithProxyUseCase.ts +0 -3
- package/src/Domain/use_cases/ai/AITranslateWithSDKUseCase.ts +0 -3
- package/src/Domain/use_cases/base/Subscribable/SubscriptionPerformer.ts +0 -1
- package/src/Presentation/Views/Dialog/MessageItem/MessageItem.tsx +6 -3
- package/src/Presentation/Views/Dialog/useDialogViewModel.ts +2 -7
- package/src/Presentation/Views/DialogInfo/UsersList/useUsersListViewModel.ts +1 -4
- package/src/Presentation/Views/DialogList/useDialogListViewModel.ts +0 -1
- package/src/Presentation/Views/Flow/CreateDialog/CreateDialog.tsx +4 -0
- package/src/Presentation/Views/Flow/CreateDialogFlow/CreateNewDialogFlow.tsx +3 -0
- package/src/Presentation/components/UI/Placeholders/LoaderComponent/LoaderComponent.scss +1 -1
- package/src/Presentation/components/UI/Placeholders/LoaderComponent/LoaderComponent.tsx +3 -3
- package/src/Presentation/layouts/Desktop/QuickBloxUIKitDesktopLayout.tsx +6 -1
- package/src/Presentation/providers/QuickBloxUIKitProvider/QuickBloxUIKitProvider.tsx +3 -35
- package/src/Presentation/ui-components/Avatar/Avatar.scss +1 -1
- package/src/Presentation/ui-components/Avatar/Avatar.tsx +3 -3
- package/src/Presentation/ui-components/Badge/Badge.scss +1 -1
- package/src/Presentation/ui-components/Badge/Badge.tsx +2 -1
- package/src/Presentation/ui-components/Button/Button.scss +5 -5
- package/src/Presentation/ui-components/Button/Button.tsx +4 -4
- package/src/Presentation/ui-components/CheckBox/CheckBox.scss +1 -6
- package/src/Presentation/ui-components/Dropdown/Dropdown.scss +1 -1
- package/src/Presentation/ui-components/Dropdown/Dropdown.tsx +4 -4
- package/src/Presentation/ui-components/Dropdown/DropdownOption.tsx +3 -3
- package/src/Presentation/ui-components/Loader/Loader.scss +1 -1
- package/src/Presentation/ui-components/Loader/Loader.tsx +1 -1
- package/src/Presentation/ui-components/TextField/TextField.scss +1 -1
- package/src/Presentation/ui-components/TextField/TextField.tsx +8 -8
- package/src/Presentation/ui-components/Toast/Toast.scss +2 -2
- package/src/Presentation/ui-components/Toast/ToastProvider.tsx +3 -3
- package/src/QBconfig.ts +2 -0
- package/src/hooks/useQuickBloxUIKit.ts +1 -1
- package/src/index-ui.ts +135 -15
- package/src/qb-api-calls/index.ts +34 -1
- package/storybook-static/161.53da4e03.iframe.bundle.js +2 -0
- package/storybook-static/{756.92971caf.iframe.bundle.js.LICENSE.txt → 161.53da4e03.iframe.bundle.js.LICENSE.txt} +0 -10
- package/storybook-static/217.07d5c7a3.iframe.bundle.js +405 -0
- package/storybook-static/217.07d5c7a3.iframe.bundle.js.LICENSE.txt +9 -0
- package/storybook-static/{756.92971caf.iframe.bundle.js.map → 217.07d5c7a3.iframe.bundle.js.map} +1 -1
- package/storybook-static/735.6ee62079.iframe.bundle.js +2 -0
- package/storybook-static/844.e8bfd664.iframe.bundle.js +95 -0
- package/storybook-static/844.e8bfd664.iframe.bundle.js.map +1 -0
- package/storybook-static/{961.c94da456.iframe.bundle.js → 961.d47fc2bc.iframe.bundle.js} +2 -2
- package/storybook-static/Presentation-ui-components-Avatar-avatar-stories.a5ba7608.iframe.bundle.js +2 -0
- package/storybook-static/Presentation-ui-components-Badge-Badge-stories.c8824861.iframe.bundle.js +2 -0
- package/storybook-static/Presentation-ui-components-Button-Button-stories.fa2aa72c.iframe.bundle.js +2 -0
- package/storybook-static/Presentation-ui-components-DialogItemPreview-DialogItemPreview-stories.b6998344.iframe.bundle.js +2 -0
- package/storybook-static/Presentation-ui-components-DialogWindow-DialogWindow-stories.a724643f.iframe.bundle.js +2 -0
- package/storybook-static/Presentation-ui-components-Dropdown-Dropdown-stories.a03feb06.iframe.bundle.js +2 -0
- package/storybook-static/Presentation-ui-components-Header-Header-stories.978f0af5.iframe.bundle.js +2 -0
- package/storybook-static/Presentation-ui-components-Loader-Loader-stories.4e80520d.iframe.bundle.js +2 -0
- package/storybook-static/Presentation-ui-components-Message-Message-stories.213a90f6.iframe.bundle.js +2 -0
- package/storybook-static/Presentation-ui-components-MessageInput-MessageInput-stories.729e41fc.iframe.bundle.js +1 -0
- package/storybook-static/Presentation-ui-components-SettingsItem-SettingsItem-stories.e7f5a274.iframe.bundle.js +2 -0
- package/storybook-static/Presentation-ui-components-TextField-TextField-stories.969cfe2e.iframe.bundle.js +2 -0
- package/storybook-static/Presentation-ui-components-Toast-Toast-stories.4f00432b.iframe.bundle.js +1 -0
- package/storybook-static/Presentation-ui-components-UserListItem-UserListItem-stories.1713eab7.iframe.bundle.js +2 -0
- package/storybook-static/iframe.html +3 -3
- package/storybook-static/{main.c2fb2ab0.iframe.bundle.js → main.59f682e8.iframe.bundle.js} +1 -1
- package/storybook-static/project.json +1 -1
- package/storybook-static/runtime~main.7d4dacf8.iframe.bundle.js +1 -0
- package/storybook-static/sb-addons/chromatic-com-storybook-10/manager-bundle.js +24 -24
- package/storybook-static/sb-addons/essentials-backgrounds-5/manager-bundle.js +1 -1
- package/storybook-static/sb-addons/essentials-controls-2/manager-bundle.js +8 -8
- package/storybook-static/sb-addons/essentials-docs-4/manager-bundle.js +5 -5
- package/storybook-static/sb-addons/essentials-measure-8/manager-bundle.js +1 -1
- package/storybook-static/sb-addons/essentials-outline-9/manager-bundle.js +1 -1
- package/storybook-static/sb-addons/essentials-viewport-6/manager-bundle.js +1 -1
- package/storybook-static/sb-addons/interactions-11/manager-bundle.js +20 -20
- package/storybook-static/sb-addons/onboarding-1/manager-bundle.js +1 -1
- package/storybook-static/sb-manager/globals-module-info.js +5 -0
- package/storybook-static/sb-manager/globals-runtime.js +11936 -11584
- package/storybook-static/sb-manager/runtime.js +144 -144
- package/storybook-static/sb-preview/runtime.js +3 -5
- package/.env +0 -1
- package/storybook-static/735.82f96f8a.iframe.bundle.js +0 -2
- package/storybook-static/756.92971caf.iframe.bundle.js +0 -405
- package/storybook-static/844.642791cb.iframe.bundle.js +0 -95
- package/storybook-static/844.642791cb.iframe.bundle.js.map +0 -1
- package/storybook-static/Presentation-ui-components-Avatar-avatar-stories.b363e9a1.iframe.bundle.js +0 -2
- package/storybook-static/Presentation-ui-components-Badge-Badge-stories.85dd97b0.iframe.bundle.js +0 -2
- package/storybook-static/Presentation-ui-components-Button-Button-stories.1e4ae2b4.iframe.bundle.js +0 -2
- package/storybook-static/Presentation-ui-components-DialogItemPreview-DialogItemPreview-stories.4e25a94d.iframe.bundle.js +0 -2
- package/storybook-static/Presentation-ui-components-DialogWindow-DialogWindow-stories.e22e8be5.iframe.bundle.js +0 -2
- package/storybook-static/Presentation-ui-components-Dropdown-Dropdown-stories.8321872b.iframe.bundle.js +0 -2
- package/storybook-static/Presentation-ui-components-Header-Header-stories.1cff200a.iframe.bundle.js +0 -2
- package/storybook-static/Presentation-ui-components-Loader-Loader-stories.7391dde4.iframe.bundle.js +0 -2
- package/storybook-static/Presentation-ui-components-Message-Message-stories.49f0dbbf.iframe.bundle.js +0 -2
- package/storybook-static/Presentation-ui-components-MessageInput-MessageInput-stories.de6fb2f3.iframe.bundle.js +0 -1
- package/storybook-static/Presentation-ui-components-SettingsItem-SettingsItem-stories.d74853ab.iframe.bundle.js +0 -2
- package/storybook-static/Presentation-ui-components-TextField-TextField-stories.19812f7d.iframe.bundle.js +0 -2
- package/storybook-static/Presentation-ui-components-Toast-Toast-stories.5e19f10e.iframe.bundle.js +0 -1
- package/storybook-static/Presentation-ui-components-UserListItem-UserListItem-stories.d2f60e13.iframe.bundle.js +0 -2
- package/storybook-static/runtime~main.2530bea6.iframe.bundle.js +0 -1
- /package/storybook-static/{735.82f96f8a.iframe.bundle.js.LICENSE.txt → 735.6ee62079.iframe.bundle.js.LICENSE.txt} +0 -0
- /package/storybook-static/{844.642791cb.iframe.bundle.js.LICENSE.txt → 844.e8bfd664.iframe.bundle.js.LICENSE.txt} +0 -0
- /package/storybook-static/{961.c94da456.iframe.bundle.js.LICENSE.txt → 961.d47fc2bc.iframe.bundle.js.LICENSE.txt} +0 -0
- /package/storybook-static/{Presentation-ui-components-Avatar-avatar-stories.b363e9a1.iframe.bundle.js.LICENSE.txt → Presentation-ui-components-Avatar-avatar-stories.a5ba7608.iframe.bundle.js.LICENSE.txt} +0 -0
- /package/storybook-static/{Presentation-ui-components-Badge-Badge-stories.85dd97b0.iframe.bundle.js.LICENSE.txt → Presentation-ui-components-Badge-Badge-stories.c8824861.iframe.bundle.js.LICENSE.txt} +0 -0
- /package/storybook-static/{Presentation-ui-components-Button-Button-stories.1e4ae2b4.iframe.bundle.js.LICENSE.txt → Presentation-ui-components-Button-Button-stories.fa2aa72c.iframe.bundle.js.LICENSE.txt} +0 -0
- /package/storybook-static/{Presentation-ui-components-DialogItemPreview-DialogItemPreview-stories.4e25a94d.iframe.bundle.js.LICENSE.txt → Presentation-ui-components-DialogItemPreview-DialogItemPreview-stories.b6998344.iframe.bundle.js.LICENSE.txt} +0 -0
- /package/storybook-static/{Presentation-ui-components-DialogWindow-DialogWindow-stories.e22e8be5.iframe.bundle.js.LICENSE.txt → Presentation-ui-components-DialogWindow-DialogWindow-stories.a724643f.iframe.bundle.js.LICENSE.txt} +0 -0
- /package/storybook-static/{Presentation-ui-components-Dropdown-Dropdown-stories.8321872b.iframe.bundle.js.LICENSE.txt → Presentation-ui-components-Dropdown-Dropdown-stories.a03feb06.iframe.bundle.js.LICENSE.txt} +0 -0
- /package/storybook-static/{Presentation-ui-components-Header-Header-stories.1cff200a.iframe.bundle.js.LICENSE.txt → Presentation-ui-components-Header-Header-stories.978f0af5.iframe.bundle.js.LICENSE.txt} +0 -0
- /package/storybook-static/{Presentation-ui-components-Loader-Loader-stories.7391dde4.iframe.bundle.js.LICENSE.txt → Presentation-ui-components-Loader-Loader-stories.4e80520d.iframe.bundle.js.LICENSE.txt} +0 -0
- /package/storybook-static/{Presentation-ui-components-Message-Message-stories.49f0dbbf.iframe.bundle.js.LICENSE.txt → Presentation-ui-components-Message-Message-stories.213a90f6.iframe.bundle.js.LICENSE.txt} +0 -0
- /package/storybook-static/{Presentation-ui-components-SettingsItem-SettingsItem-stories.d74853ab.iframe.bundle.js.LICENSE.txt → Presentation-ui-components-SettingsItem-SettingsItem-stories.e7f5a274.iframe.bundle.js.LICENSE.txt} +0 -0
- /package/storybook-static/{Presentation-ui-components-TextField-TextField-stories.19812f7d.iframe.bundle.js.LICENSE.txt → Presentation-ui-components-TextField-TextField-stories.969cfe2e.iframe.bundle.js.LICENSE.txt} +0 -0
- /package/storybook-static/{Presentation-ui-components-UserListItem-UserListItem-stories.d2f60e13.iframe.bundle.js.LICENSE.txt → Presentation-ui-components-UserListItem-UserListItem-stories.1713eab7.iframe.bundle.js.LICENSE.txt} +0 -0
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see Presentation-ui-components-Message-Message-stories.49f0dbbf.iframe.bundle.js.LICENSE.txt */
|
|
2
|
-
(self.webpackChunkquickblox_react_ui_kit=self.webpackChunkquickblox_react_ui_kit||[]).push([[515],{"./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/Views/Dialog/Message/HighLightLink/HighLightLink.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,'.high-light-link-container{display:flex;flex-direction:column;align-items:flex-start;padding:0px;width:240px;height:70px;background:#e4e6e8;border-radius:8px;flex:none;order:0;flex-grow:0}.high-light-link-container--header-wrapper{display:flex;flex-direction:row;align-items:center;padding:6px 16px;width:240px;height:32px;flex:none;order:0;align-self:stretch;flex-grow:0}.high-light-link-container--header-wrapper__link_url{width:208px;height:20px;text-decoration:none;cursor:pointer;font-family:"Roboto";font-style:normal;font-weight:400;font-size:14px;line-height:20px;display:flex;align-items:center;letter-spacing:.25px;color:#636d78;flex:none;order:0;flex-grow:1}.high-light-link-container--footer-wrapper{display:flex;flex-direction:row;align-items:center;padding:8px 16px;width:240px;height:32px;flex:none;order:4;align-self:stretch;flex-grow:0}.high-light-link-container--footer-wrapper__content{width:208px;height:16px;font-family:"Roboto";font-style:normal;font-weight:500;font-size:11px;line-height:16px;display:flex;align-items:center;letter-spacing:.5px;color:#636d78;flex:none;order:0;flex-grow:1}.message-urls{max-width:calc(var(--max-width-message-bubble) - 20px);overflow-wrap:break-word}',"",{version:3,sources:["webpack://./src/Presentation/Views/Dialog/Message/HighLightLink/HighLightLink.scss"],names:[],mappings:"AAAA,2BACE,YAAA,CACA,qBAAA,CACA,sBAAA,CACA,WAAA,CAEA,WAAA,CACA,WAAA,CAEA,kBAAA,CACA,iBAAA,CAEA,SAAA,CACA,OAAA,CACA,WAAA,CAEA,2CACE,YAAA,CACA,kBAAA,CACA,kBAAA,CACA,gBAAA,CAEA,WAAA,CACA,WAAA,CAEA,SAAA,CACA,OAAA,CACA,kBAAA,CACA,WAAA,CAEA,qDACE,WAAA,CACA,WAAA,CAEA,oBAAA,CACA,cAAA,CAEA,oBAAA,CACA,iBAAA,CACA,eAAA,CACA,cAAA,CACA,gBAAA,CAEA,YAAA,CACA,kBAAA,CACA,oBAAA,CAEA,aAAA,CAEA,SAAA,CACA,OAAA,CACA,WAAA,CAIJ,2CACE,YAAA,CACA,kBAAA,CACA,kBAAA,CACA,gBAAA,CAEA,WAAA,CACA,WAAA,CAEA,SAAA,CACA,OAAA,CACA,kBAAA,CACA,WAAA,CAEA,oDACE,WAAA,CACA,WAAA,CAEA,oBAAA,CACA,iBAAA,CACA,eAAA,CACA,cAAA,CACA,gBAAA,CAEA,YAAA,CACA,kBAAA,CACA,mBAAA,CAEA,aAAA,CAEA,SAAA,CACA,OAAA,CACA,WAAA,CAKN,cACE,sDAAA,CACA,wBAAA",sourcesContent:[".high-light-link-container {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n padding: 0px;\n\n width: 240px;\n height: 70px;\n\n background: #E4E6E8;\n border-radius: 8px;\n\n flex: none;\n order: 0;\n flex-grow: 0;\n\n &--header-wrapper{\n display: flex;\n flex-direction: row;\n align-items: center;\n padding: 6px 16px;\n\n width: 240px;\n height: 32px;\n\n flex: none;\n order: 0;\n align-self: stretch;\n flex-grow: 0;\n\n &__link_url{\n width: 208px;\n height: 20px;\n\n text-decoration: none;\n cursor: pointer;\n\n font-family: 'Roboto';\n font-style: normal;\n font-weight: 400;\n font-size: 14px;\n line-height: 20px;\n\n display: flex;\n align-items: center;\n letter-spacing: 0.25px;\n\n color: #636D78;\n\n flex: none;\n order: 0;\n flex-grow: 1;\n }\n }\n\n &--footer-wrapper{\n display: flex;\n flex-direction: row;\n align-items: center;\n padding: 8px 16px;\n\n width: 240px;\n height: 32px;\n\n flex: none;\n order: 4;\n align-self: stretch;\n flex-grow: 0;\n\n &__content{\n width: 208px;\n height: 16px;\n\n font-family: 'Roboto';\n font-style: normal;\n font-weight: 500;\n font-size: 11px;\n line-height: 16px;\n\n display: flex;\n align-items: center;\n letter-spacing: 0.5px;\n\n color: #636D78;\n\n flex: none;\n order: 0;\n flex-grow: 1;\n }\n }\n}\n\n.message-urls {\n max-width: calc(var(--max-width-message-bubble) - 20px);\n overflow-wrap: break-word;\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/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/CheckBox/CheckBox.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,".checkbox,.checkbox-field{display:flex;align-items:center;flex-shrink:0;border-radius:4px;padding:4px;justify-content:center}.checkbox-field>input{z-index:-1;opacity:0}.checkbox-field .icon-checkmark{width:18px;height:18px;fill:var(--main-elements)}.checkbox-field .icon-check{width:18px;height:18px;fill:var(--secondary-elements)}.checkbox-field.disabled .icon-check{fill:var(--disabled-elements);cursor:not-allowed}","",{version:3,sources:["webpack://./src/Presentation/ui-components/CheckBox/CheckBox.scss"],names:[],mappings:"AAAA,0BACE,YAAA,CACA,kBAAA,CACA,aAAA,CACA,iBAAA,CACA,WAAA,CACA,sBAAA,CAKF,sBAEE,UAAA,CACA,SAAA,CAGF,gCAEE,UAAA,CACA,WAAA,CACA,yBAAA,CAIF,4BAEE,UAAA,CACA,WAAA,CACA,8BAAA,CAGF,qCACE,6BAAA,CACA,kBAAA",sourcesContent:[".checkbox, .checkbox-field {\n display: flex;\n align-items: center;\n flex-shrink: 0;\n border-radius: 4px;\n padding: 4px;\n justify-content: center;\n //width: 18px;\n //height: 18px;\n}\n\n.checkbox-field > input {\n //position: fixed;\n z-index: -1;\n opacity: 0;\n}\n\n.checkbox-field .icon-checkmark {\n //position: fixed;\n width: 18px;\n height: 18px;\n fill: var(--main-elements);\n\n}\n\n.checkbox-field .icon-check {\n //position: fixed;\n width: 18px;\n height: 18px;\n fill: var(--secondary-elements);\n}\n\n.checkbox-field.disabled .icon-check{\n fill: var(--disabled-elements);\n cursor: not-allowed;\n}\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/Message/Bubble/AudioBubble/AudioBubble.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,".audio-player{display:flex;gap:5px;flex-direction:row;align-items:center}.audio-player__equalizer-time{display:flex;flex-direction:column;gap:2px}.audio-body{padding:5px;border-radius:4px;display:none;width:var(--max-width-audio-message)}.audio-body__controls{display:flex;flex-flow:row;align-items:center;gap:5px;width:24px;height:24px}.audio-body__controls--color{fill:var(--main-elements);width:24px;height:24px}.equalizer{display:flex;flex-direction:row;gap:2px;align-items:flex-end;justify-content:flex-start;position:relative;height:12px}.equalizer__rectangle{background:var(--main-elements, #636d78);flex-shrink:0;width:2px;position:relative}.time-play{color:var(--secondary-text, #636d78);text-align:left;font:var(--label-label-small);height:16px}.audio-bubble-background__incoming{background:var(--incoming-background, #e4e6e8);border-radius:22px 22px 22px 0px;padding:8px 12px 8px 12px;display:flex;flex-direction:row;gap:10px;align-items:flex-start;justify-content:flex-start;flex-shrink:0;position:relative}.audio-bubble-background__outgoing{background:var(--outgoing-background, #E7EFFF);border-radius:22px 22px 0px 22px;padding:8px 12px 8px 12px;display:flex;flex-direction:row;gap:10px;align-items:flex-start;justify-content:flex-start;flex-shrink:0;position:relative}","",{version:3,sources:["webpack://./src/Presentation/ui-components/Message/Bubble/AudioBubble/AudioBubble.scss"],names:[],mappings:"AAAA,cACE,YAAA,CACA,OAAA,CACA,kBAAA,CACA,kBAAA,CAEA,8BACE,YAAA,CACA,qBAAA,CACA,OAAA,CAGJ,YACE,WAAA,CACA,iBAAA,CACA,YAAA,CACA,oCAAA,CAEA,sBACE,YAAA,CACA,aAAA,CACA,kBAAA,CACA,OAAA,CACA,UAAA,CACA,WAAA,CAEA,6BACE,yBAAA,CACA,UAAA,CACA,WAAA,CAKN,WACE,YAAA,CACA,kBAAA,CACA,OAAA,CACA,oBAAA,CACA,0BAAA,CACA,iBAAA,CACA,WAAA,CAEA,sBACE,wCAAA,CACA,aAAA,CACA,SAAA,CACA,iBAAA,CAIJ,WACE,oCAAA,CACA,eAAA,CACA,6BAAA,CACA,WAAA,CAKA,mCACE,8CAAA,CACA,gCAAA,CACA,yBAAA,CACA,YAAA,CACA,kBAAA,CACA,QAAA,CACA,sBAAA,CACA,0BAAA,CACA,aAAA,CACA,iBAAA,CAGF,mCACE,8CAAA,CACA,gCAAA,CACA,yBAAA,CACA,YAAA,CACA,kBAAA,CACA,QAAA,CACA,sBAAA,CACA,0BAAA,CACA,aAAA,CACA,iBAAA",sourcesContent:[".audio-player {\n display: flex;\n gap: 5px;\n flex-direction: row;\n align-items: center;\n\n &__equalizer-time {\n display: flex;\n flex-direction: column;\n gap: 2px;\n }\n}\n.audio-body{\n padding: 5px;\n border-radius: 4px;\n display: none;\n width: var(--max-width-audio-message);\n\n &__controls {\n display: flex;\n flex-flow: row;\n align-items: center;\n gap: 5px;\n width: 24px;\n height: 24px;\n\n &--color{\n fill: var(--main-elements);\n width: 24px;\n height: 24px;\n }\n }\n}\n\n.equalizer {\n display: flex;\n flex-direction: row;\n gap: 2px;\n align-items: flex-end;\n justify-content: flex-start;\n position: relative;\n height: 12px;\n\n &__rectangle {\n background: var(--main-elements, #636d78);\n flex-shrink: 0;\n width: 2px;\n position: relative;\n }\n}\n\n.time-play {\n color: var(--secondary-text, #636d78);\n text-align: left;\n font: var(--label-label-small);\n height: 16px;\n}\n\n.audio-bubble-background {\n\n &__incoming {\n background: var(--incoming-background, #e4e6e8);\n border-radius: 22px 22px 22px 0px;\n padding: 8px 12px 8px 12px;\n display: flex;\n flex-direction: row;\n gap: 10px;\n align-items: flex-start;\n justify-content: flex-start;\n flex-shrink: 0;\n position: relative;\n }\n\n &__outgoing {\n background: var(--outgoing-background, #E7EFFF);\n border-radius: 22px 22px 0px 22px;\n padding: 8px 12px 8px 12px;\n display: flex;\n flex-direction: row;\n gap: 10px;\n align-items: flex-start;\n justify-content: flex-start;\n flex-shrink: 0;\n position: relative;\n }\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/Message/Bubble/FileBubble/FileBubble.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,".file-bubble-background__incoming{background:var(--incoming-background, #e4e6e8);border-radius:22px 22px 22px 0px;padding:8px 12px 8px 12px;display:flex;flex-direction:row;gap:10px;align-items:flex-start;justify-content:flex-start;flex-shrink:0;position:relative}.file-bubble-background__outgoing{background:var(--outgoing-background, #E7EFFF);border-radius:22px 22px 0px 22px;padding:8px 12px 8px 12px;display:flex;flex-direction:row;gap:10px;align-items:flex-start;justify-content:flex-start;flex-shrink:0;position:relative}","",{version:3,sources:["webpack://./src/Presentation/ui-components/Message/Bubble/FileBubble/FileBubble.scss"],names:[],mappings:"AAEE,kCACE,8CAAA,CACA,gCAAA,CACA,yBAAA,CACA,YAAA,CACA,kBAAA,CACA,QAAA,CACA,sBAAA,CACA,0BAAA,CACA,aAAA,CACA,iBAAA,CAGF,kCACE,8CAAA,CACA,gCAAA,CACA,yBAAA,CACA,YAAA,CACA,kBAAA,CACA,QAAA,CACA,sBAAA,CACA,0BAAA,CACA,aAAA,CACA,iBAAA",sourcesContent:[".file-bubble-background {\n\n &__incoming {\n background: var(--incoming-background, #e4e6e8);\n border-radius: 22px 22px 22px 0px;\n padding: 8px 12px 8px 12px;\n display: flex;\n flex-direction: row;\n gap: 10px;\n align-items: flex-start;\n justify-content: flex-start;\n flex-shrink: 0;\n position: relative;\n }\n\n &__outgoing {\n background: var(--outgoing-background, #E7EFFF);\n border-radius: 22px 22px 0px 22px;\n padding: 8px 12px 8px 12px;\n display: flex;\n flex-direction: row;\n gap: 10px;\n align-items: flex-start;\n justify-content: flex-start;\n flex-shrink: 0;\n position: relative;\n }\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/Message/Bubble/ImageBubble/ImageBubble.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,'.message-attachment-image-body{max-width:var(--max-width-image-message);max-height:160px;padding:0;border-radius:4px}.message-attachment-image{display:flex;justify-content:center;flex-flow:row;max-width:var(--max-width-image-message);max-height:160px;font:var(--body-body-medium, 400 14px/20px "Roboto-Regular", sans-serif);color:var(--main-tex, #0b1b0f)}',"",{version:3,sources:["webpack://./src/Presentation/ui-components/Message/Bubble/ImageBubble/ImageBubble.scss"],names:[],mappings:"AAAA,+BACE,wCAAA,CACA,gBAAA,CACA,SAAA,CACA,iBAAA,CAGF,0BACE,YAAA,CACA,sBAAA,CACA,aAAA,CACA,wCAAA,CACA,gBAAA,CACA,wEAAA,CACA,8BAAA",sourcesContent:['.message-attachment-image-body{\n max-width: var(--max-width-image-message);\n max-height: 160px;\n padding: 0;\n border-radius: 4px;\n}\n\n.message-attachment-image {\n display: flex;\n justify-content: center;\n flex-flow: row;\n max-width: var(--max-width-image-message);\n max-height: 160px;\n font: var(--body-body-medium, 400 14px / 20px "Roboto-Regular", sans-serif);\n color: var(--main-tex, #0b1b0f);\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/Message/Bubble/TextBubble/TextBubble.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,'.bubble-content-text{overflow-wrap:break-word;max-width:calc(var(--max-width-message-bubble) - 20px);padding:0 12px 0 12px;color:var(--main-text, #0b1b0f);text-align:left;font:var(--body-body-medium, 400 14px/20px "Roboto-Regular", sans-serif)}.reply-forward-message .bubble-content-text{color:var(--secondary-text)}.text-bubble-background__incoming{background:var(--incoming-background, #e4e6e8);color:var(--main-text);border-radius:22px 22px 22px 0;padding:8px 0 8px 0;display:flex;flex-direction:row;gap:10px;align-items:flex-start;justify-content:flex-start;flex-shrink:0;position:relative;width:100%}.text-bubble-background__outgoing{background:var(--outgoing-background, #E7EFFF);color:var(--main-text);border-radius:22px 22px 0px 22px;padding:8px 12px 8px 12px;display:flex;flex-direction:row;gap:10px;align-items:flex-start;justify-content:flex-start;flex-shrink:0;position:relative;width:100%}',"",{version:3,sources:["webpack://./src/Presentation/ui-components/Message/Bubble/TextBubble/TextBubble.scss"],names:[],mappings:"AAAA,qBACE,wBAAA,CACA,sDAAA,CACA,qBAAA,CAEA,+BAAA,CACA,eAAA,CACA,wEAAA,CAIA,4CACE,2BAAA,CAMF,kCACE,8CAAA,CACA,sBAAA,CACA,8BAAA,CACA,mBAAA,CACA,YAAA,CACA,kBAAA,CACA,QAAA,CACA,sBAAA,CACA,0BAAA,CACA,aAAA,CACA,iBAAA,CACA,UAAA,CAGF,kCACE,8CAAA,CACA,sBAAA,CACA,gCAAA,CACA,yBAAA,CACA,YAAA,CACA,kBAAA,CACA,QAAA,CACA,sBAAA,CACA,0BAAA,CACA,aAAA,CACA,iBAAA,CACA,UAAA",sourcesContent:['.bubble-content-text {\n overflow-wrap: break-word;\n max-width: calc(var(--max-width-message-bubble) - 20px);\n padding: 0 12px 0 12px;\n\n color: var(--main-text, #0b1b0f);\n text-align: left;\n font: var(--body-body-medium, 400 14px/20px "Roboto-Regular", sans-serif);\n}\n\n.reply-forward-message {\n .bubble-content-text {\n color: var(--secondary-text);\n }\n}\n\n.text-bubble-background {\n\n &__incoming {\n background: var(--incoming-background, #e4e6e8);\n color: var(--main-text);\n border-radius: 22px 22px 22px 0;\n padding: 8px 0 8px 0;\n display: flex;\n flex-direction: row;\n gap: 10px;\n align-items: flex-start;\n justify-content: flex-start;\n flex-shrink: 0;\n position: relative;\n width: 100%;\n }\n\n &__outgoing {\n background: var(--outgoing-background, #E7EFFF);\n color: var(--main-text);\n border-radius: 22px 22px 0px 22px;\n padding: 8px 12px 8px 12px;\n display: flex;\n flex-direction: row;\n gap: 10px;\n align-items: flex-start;\n justify-content: flex-start;\n flex-shrink: 0;\n position: relative;\n width: 100%;\n }\n\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/Message/Bubble/VideoBubble/VideoBubble.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,".message-attachment-video-body{max-height:130px;max-width:var(--max-width-audio-message);width:var(--max-width-audio-message);padding:0;border-radius:4px}.message-attachment-video-body__link{color:var(--secondary-text, #636d78);text-align:left;font:var(--label-label-small);height:16px}.message-attachment-video{display:flex;justify-content:center;align-items:center;flex-flow:column;max-width:var(--max-width-audio-message);width:var(--max-width-audio-message);max-height:160px}","",{version:3,sources:["webpack://./src/Presentation/ui-components/Message/Bubble/VideoBubble/VideoBubble.scss"],names:[],mappings:"AAAA,+BACE,gBAAA,CACA,wCAAA,CACA,oCAAA,CACA,SAAA,CACA,iBAAA,CAEA,qCACE,oCAAA,CACA,eAAA,CACA,6BAAA,CACA,WAAA,CAIJ,0BACE,YAAA,CACA,sBAAA,CACA,kBAAA,CACA,gBAAA,CAEA,wCAAA,CACA,oCAAA,CACA,gBAAA",sourcesContent:[".message-attachment-video-body{\n max-height: 130px;\n max-width: var(--max-width-audio-message);\n width: var(--max-width-audio-message);\n padding: 0;\n border-radius: 4px;\n\n &__link {\n color: var(--secondary-text, #636d78);\n text-align: left;\n font: var(--label-label-small);\n height: 16px;\n }\n}\n\n.message-attachment-video {\n display: flex;\n justify-content: center;\n align-items: center;\n flex-flow: column;\n //max-width: 300px;\n max-width: var(--max-width-audio-message);\n width: var(--max-width-audio-message);\n max-height: 160px;\n}\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/Message/FileUrl/FileUrl.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,".file-attachment{display:flex;flex-direction:row;gap:8px;align-items:center;justify-content:flex-start;align-self:stretch;flex-shrink:0;position:relative}.file-attachment__placeholder{flex-shrink:0;width:32px;height:32px;position:static}.file-attachment__placeholder__bg{background:var(--tertiary-elements, #636d78);border-radius:8px;width:32px;height:32px;position:absolute;left:0px;top:0px}.file-attachment__placeholder__bg__icon{border-radius:4px;padding:4px;display:flex;flex-direction:row;gap:0px;align-items:center;justify-content:center;width:24px;height:24px}.file-attachment__file-name{color:var(--secondary-text, #636d78);text-align:left;font:var(--body-body-medium);position:relative}.message-icon-file{align-self:stretch;flex:1;height:auto;position:relative;overflow:visible;fill:var(--color-media-icon, #ffffff)}","",{version:3,sources:["webpack://./src/Presentation/ui-components/Message/FileUrl/FileUrl.scss"],names:[],mappings:"AAAA,iBACE,YAAA,CACA,kBAAA,CACA,OAAA,CACA,kBAAA,CACA,0BAAA,CACA,kBAAA,CACA,aAAA,CACA,iBAAA,CAEA,8BACE,aAAA,CACA,UAAA,CACA,WAAA,CACA,eAAA,CAEA,kCACE,4CAAA,CACA,iBAAA,CACA,UAAA,CACA,WAAA,CACA,iBAAA,CACA,QAAA,CACA,OAAA,CAEA,wCACE,iBAAA,CACA,WAAA,CACA,YAAA,CACA,kBAAA,CACA,OAAA,CACA,kBAAA,CACA,sBAAA,CACA,UAAA,CACA,WAAA,CAKN,4BACE,oCAAA,CACA,eAAA,CACA,4BAAA,CACA,iBAAA,CAIJ,mBACE,kBAAA,CACA,MAAA,CACA,WAAA,CACA,iBAAA,CACA,gBAAA,CACA,qCAAA",sourcesContent:[".file-attachment {\n display: flex;\n flex-direction: row;\n gap: 8px;\n align-items: center;\n justify-content: flex-start;\n align-self: stretch;\n flex-shrink: 0;\n position: relative;\n\n &__placeholder {\n flex-shrink: 0;\n width: 32px;\n height: 32px;\n position: static;\n\n &__bg {\n background: var(--tertiary-elements, #636d78);\n border-radius: 8px;\n width: 32px;\n height: 32px;\n position: absolute;\n left: 0px;\n top: 0px;\n\n &__icon {\n border-radius: 4px;\n padding: 4px;\n display: flex;\n flex-direction: row;\n gap: 0px;\n align-items: center;\n justify-content: center;\n width: 24px;\n height: 24px;\n }\n }\n }\n\n &__file-name {\n color: var(--secondary-text, #636d78);\n text-align: left;\n font: var(--body-body-medium);\n position: relative;\n }\n}\n\n.message-icon-file {\n align-self: stretch;\n flex: 1;\n height: auto;\n position: relative;\n overflow: visible;\n fill: var(--color-media-icon, #ffffff);\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/Message/Message.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,".message-item{display:flex;flex-direction:row;gap:0px;align-items:center;justify-content:flex-start;align-self:stretch;flex-shrink:0;position:relative}.message-item__right{display:flex;flex-direction:row;align-items:flex-end;justify-content:flex-end;width:100%}.message-item__more{display:flex;flex-direction:row;gap:10px;align-items:center;justify-content:center;align-self:stretch;flex-shrink:0;position:relative;cursor:pointer}.message-item__more__icon{border-radius:4px;display:flex;flex-direction:row;gap:0px;align-items:center;justify-content:center;flex-shrink:0;width:24px;height:24px;position:relative}.message-item__more__icon__actions{fill:var(--tertiary-elements, #636D78);path:var(--tertiary-elements, #636D78)}.message-item__outgoing{padding:0px 8px 8px 16px;display:flex;flex-direction:row;gap:8px;justify-content:flex-end;align-self:stretch;flex-shrink:0;width:320px;position:relative}.message-item__outgoing__chat{display:flex;flex-direction:column;gap:2px;align-items:flex-start;justify-content:flex-start;flex-shrink:0;position:relative}.message-item__outgoing__chat__bubble-background{background:var(--outgoing-background, #E7EFFF);border-radius:22px 22px 0px 22px;padding:8px 12px 8px 12px;display:flex;flex-direction:row;gap:10px;align-items:flex-start;justify-content:flex-start;flex-shrink:0;position:relative;width:100%}.message-item__outgoing__chat .reply-forward-message{color:var(--secondary-text);width:100%}.message-item__incoming-mes{background:var(--secondary-background, #ffffff);padding:0px 16px 8px 8px;display:flex;flex-direction:row;gap:8px;align-items:flex-end;justify-content:flex-start;align-self:stretch;flex-shrink:0;width:320px;position:relative}.message-item__incoming{display:flex;flex-direction:column;gap:2px;align-items:flex-start;justify-content:flex-end}.message-item__incoming__chat{display:flex;flex-direction:row;gap:8px}.message-item__incoming__chat__bubble{display:flex;flex-direction:column;gap:4px;align-items:flex-end;justify-content:flex-end;flex-shrink:0;position:relative}.message-item__incoming__chat__bubble__background{background:var(--incoming-background, #e4e6e8);border-radius:22px 22px 22px 0px;padding:8px 12px 8px 12px;display:flex;flex-direction:row;gap:10px;align-items:flex-start;justify-content:flex-start;flex-shrink:0;position:relative}","",{version:3,sources:["webpack://./src/Presentation/ui-components/Message/Message.scss"],names:[],mappings:"AAAA,cACE,YAAA,CACA,kBAAA,CACA,OAAA,CACA,kBAAA,CACA,0BAAA,CACA,kBAAA,CACA,aAAA,CACA,iBAAA,CAEA,qBACE,YAAA,CACA,kBAAA,CACA,oBAAA,CACA,wBAAA,CACA,UAAA,CAGF,oBACE,YAAA,CACA,kBAAA,CACA,QAAA,CACA,kBAAA,CACA,sBAAA,CACA,kBAAA,CACA,aAAA,CACA,iBAAA,CACA,cAAA,CAEA,0BACE,iBAAA,CACA,YAAA,CACA,kBAAA,CACA,OAAA,CACA,kBAAA,CACA,sBAAA,CACA,aAAA,CACA,UAAA,CACA,WAAA,CACA,iBAAA,CAGA,mCACE,sCAAA,CACA,sCAAA,CAKN,wBACE,wBAAA,CACA,YAAA,CACA,kBAAA,CACA,OAAA,CACA,wBAAA,CACA,kBAAA,CACA,aAAA,CACA,WAAA,CACA,iBAAA,CAEA,8BACE,YAAA,CACA,qBAAA,CACA,OAAA,CACA,sBAAA,CACA,0BAAA,CACA,aAAA,CACA,iBAAA,CAEA,iDACE,8CAAA,CACA,gCAAA,CACA,yBAAA,CACA,YAAA,CACA,kBAAA,CACA,QAAA,CACA,sBAAA,CACA,0BAAA,CACA,aAAA,CACA,iBAAA,CACA,UAAA,CAEF,qDACE,2BAAA,CACA,UAAA,CAKN,4BACE,+CAAA,CACA,wBAAA,CACA,YAAA,CACA,kBAAA,CACA,OAAA,CACA,oBAAA,CACA,0BAAA,CACA,kBAAA,CACA,aAAA,CACA,WAAA,CACA,iBAAA,CAGF,wBACE,YAAA,CACA,qBAAA,CACA,OAAA,CACA,sBAAA,CACA,wBAAA,CAEA,8BACE,YAAA,CACA,kBAAA,CACA,OAAA,CAEA,sCACE,YAAA,CACA,qBAAA,CACA,OAAA,CACA,oBAAA,CACA,wBAAA,CACA,aAAA,CACA,iBAAA,CAEA,kDACE,8CAAA,CACA,gCAAA,CACA,yBAAA,CACA,YAAA,CACA,kBAAA,CACA,QAAA,CACA,sBAAA,CACA,0BAAA,CACA,aAAA,CACA,iBAAA",sourcesContent:[".message-item {\n display: flex;\n flex-direction: row;\n gap: 0px;\n align-items: center;\n justify-content: flex-start;\n align-self: stretch;\n flex-shrink: 0;\n position: relative;\n\n &__right {\n display: flex;\n flex-direction: row;\n align-items: flex-end;\n justify-content: flex-end;\n width: 100%;\n }\n\n &__more {\n display: flex;\n flex-direction: row;\n gap: 10px;\n align-items: center;\n justify-content: center;\n align-self: stretch;\n flex-shrink: 0;\n position: relative;\n cursor: pointer;\n\n &__icon {\n border-radius: 4px;\n display: flex;\n flex-direction: row;\n gap: 0px;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n width: 24px;\n height: 24px;\n position: relative;\n //padding-bottom: 10px;\n\n &__actions {\n fill: var(--tertiary-elements, #636D78);\n path: var(--tertiary-elements, #636D78);\n }\n }\n }\n\n &__outgoing {\n padding: 0px 8px 8px 16px;\n display: flex;\n flex-direction: row;\n gap: 8px;\n justify-content: flex-end;\n align-self: stretch;\n flex-shrink: 0;\n width: 320px;\n position: relative;\n\n &__chat {\n display: flex;\n flex-direction: column;\n gap: 2px;\n align-items: flex-start;\n justify-content: flex-start;\n flex-shrink: 0;\n position: relative;\n\n &__bubble-background {\n background: var(--outgoing-background, #E7EFFF);\n border-radius: 22px 22px 0px 22px;\n padding: 8px 12px 8px 12px;\n display: flex;\n flex-direction: row;\n gap: 10px;\n align-items: flex-start;\n justify-content: flex-start;\n flex-shrink: 0;\n position: relative;\n width: 100%;\n }\n .reply-forward-message {\n color: var(--secondary-text);\n width: 100%;\n }\n }\n }\n\n &__incoming-mes {\n background: var(--secondary-background, #ffffff);\n padding: 0px 16px 8px 8px;\n display: flex;\n flex-direction: row;\n gap: 8px;\n align-items: flex-end;\n justify-content: flex-start;\n align-self: stretch;\n flex-shrink: 0;\n width: 320px;\n position: relative;\n }\n\n &__incoming {\n display: flex;\n flex-direction: column;\n gap: 2px;\n align-items: flex-start;\n justify-content: flex-end;\n\n &__chat {\n display: flex;\n flex-direction: row;\n gap: 8px;\n\n &__bubble {\n display: flex;\n flex-direction: column;\n gap: 4px;\n align-items: flex-end;\n justify-content: flex-end;\n flex-shrink: 0;\n position: relative;\n\n &__background {\n background: var(--incoming-background, #e4e6e8);\n border-radius: 22px 22px 22px 0px;\n padding: 8px 12px 8px 12px;\n display: flex;\n flex-direction: row;\n gap: 10px;\n align-items: flex-start;\n justify-content: flex-start;\n flex-shrink: 0;\n position: relative;\n }\n }\n }\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/Message/MessageCaption/MessageCaption.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,".message-caption__user{padding:0px 16px 0px 16px;display:flex;flex-direction:row;gap:8px;align-items:flex-start;justify-content:flex-start;flex-shrink:0;position:relative}.message-caption__user__caption{display:flex;flex-direction:row;gap:2px;align-items:center;justify-content:flex-start;flex-shrink:0;position:relative}.message-caption__user__caption__name{color:var(--secondary-text, #636d78);text-align:left;font:var(--label-label-medium);position:relative}.message-caption__forward-reply{display:flex;flex-direction:row;gap:2px;align-items:center;justify-content:flex-start;flex-shrink:0;position:relative}.message-caption__forward-reply--reply{width:16px;height:16px;align-self:stretch;flex:1;position:relative;overflow:visible;fill:var(--tertiary-elements, #636d78)}.message-caption__forward-reply--forward{width:16px;height:16px;align-self:stretch;flex:1;position:relative;overflow:visible;fill:var(--tertiary-elements, #636d78)}.message-caption__forward-reply__icon{border-radius:4px;display:flex;flex-direction:row;gap:0px;align-items:center;justify-content:center;flex-shrink:0;width:16px;height:16px;position:relative}.message-caption__forward-reply__icon--filled{align-self:stretch;flex:1;height:auto;position:relative;overflow:visible;fill:var(--tertiary-elements, #636d78)}.message-caption__forward-reply__from{color:var(--tertiary-elements, #636d78);text-align:left;font:var(--label-label-medium);position:relative}","",{version:3,sources:["webpack://./src/Presentation/ui-components/Message/MessageCaption/MessageCaption.scss"],names:[],mappings:"AAEE,uBACE,yBAAA,CACA,YAAA,CACA,kBAAA,CACA,OAAA,CACA,sBAAA,CACA,0BAAA,CACA,aAAA,CACA,iBAAA,CAEA,gCACE,YAAA,CACA,kBAAA,CACA,OAAA,CACA,kBAAA,CACA,0BAAA,CACA,aAAA,CACA,iBAAA,CAEA,sCACE,oCAAA,CACA,eAAA,CACA,8BAAA,CACA,iBAAA,CAKN,gCACE,YAAA,CACA,kBAAA,CACA,OAAA,CACA,kBAAA,CACA,0BAAA,CACA,aAAA,CACA,iBAAA,CAEA,uCACE,UAAA,CACA,WAAA,CACA,kBAAA,CACA,MAAA,CACA,iBAAA,CACA,gBAAA,CACA,sCAAA,CAGF,yCACE,UAAA,CACA,WAAA,CACA,kBAAA,CACA,MAAA,CACA,iBAAA,CACA,gBAAA,CACA,sCAAA,CAGF,sCACE,iBAAA,CACA,YAAA,CACA,kBAAA,CACA,OAAA,CACA,kBAAA,CACA,sBAAA,CACA,aAAA,CACA,UAAA,CACA,WAAA,CACA,iBAAA,CAEA,8CACE,kBAAA,CACA,MAAA,CACA,WAAA,CACA,iBAAA,CACA,gBAAA,CACA,sCAAA,CAIJ,sCACE,uCAAA,CACA,eAAA,CACA,8BAAA,CACA,iBAAA",sourcesContent:[".message-caption {\n\n &__user {\n padding: 0px 16px 0px 16px;\n display: flex;\n flex-direction: row;\n gap: 8px;\n align-items: flex-start;\n justify-content: flex-start;\n flex-shrink: 0;\n position: relative;\n\n &__caption {\n display: flex;\n flex-direction: row;\n gap: 2px;\n align-items: center;\n justify-content: flex-start;\n flex-shrink: 0;\n position: relative;\n\n &__name {\n color: var(--secondary-text, #636d78);\n text-align: left;\n font: var(--label-label-medium);\n position: relative;\n }\n }\n }\n\n &__forward-reply {\n display: flex;\n flex-direction: row;\n gap: 2px;\n align-items: center;\n justify-content: flex-start;\n flex-shrink: 0;\n position: relative;\n\n &--reply {\n width: 16px;\n height: 16px;\n align-self: stretch;\n flex: 1;\n position: relative;\n overflow: visible;\n fill: var(--tertiary-elements, #636d78);\n }\n\n &--forward {\n width: 16px;\n height: 16px;\n align-self: stretch;\n flex: 1;\n position: relative;\n overflow: visible;\n fill: var(--tertiary-elements, #636d78);\n }\n\n &__icon {\n border-radius: 4px;\n display: flex;\n flex-direction: row;\n gap: 0px;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n width: 16px;\n height: 16px;\n position: relative;\n\n &--filled {\n align-self: stretch;\n flex: 1;\n height: auto;\n position: relative;\n overflow: visible;\n fill: var(--tertiary-elements, #636d78);\n }\n }\n\n &__from {\n color: var(--tertiary-elements, #636d78);\n text-align: left;\n font: var(--label-label-medium);\n position: relative;\n }\n }\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/Message/TimeAndStatus/TimeAndStatus.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,".time-status{background:var(--main-background, #ffffff);padding:0px 8px 8px 16px;display:flex;flex-direction:row;gap:8px;align-items:flex-end;justify-content:flex-end;align-self:stretch;flex-shrink:0;width:320px;position:relative}.time-status__caption{display:flex;gap:2px;align-items:flex-end;flex-shrink:0}.time-status__caption__status{width:13px;height:13px}.time-status__time{color:var(--tertiary-elements, #636d78);text-align:left;font:var(--label-label-small);position:relative}.status-message--sent{fill:var(--tertiary-elements, #636D78)}.status-message--delivered{fill:var(--tertiary-elements, #636D78)}.status-message--viewed{fill:var(--main-elements, #3978fc)}.status-message--error{fill:var(--error, #FF3B30)}","",{version:3,sources:["webpack://./src/Presentation/ui-components/Message/TimeAndStatus/TimeAndStatus.scss"],names:[],mappings:"AAAA,aACE,0CAAA,CACA,wBAAA,CACA,YAAA,CACA,kBAAA,CACA,OAAA,CACA,oBAAA,CACA,wBAAA,CACA,kBAAA,CACA,aAAA,CACA,WAAA,CACA,iBAAA,CAEA,sBACE,YAAA,CACA,OAAA,CACA,oBAAA,CACA,aAAA,CAEA,8BACE,UAAA,CACA,WAAA,CAGJ,mBACE,uCAAA,CACA,eAAA,CACA,6BAAA,CACA,iBAAA,CAMF,sBACE,sCAAA,CAGF,2BACE,sCAAA,CAGF,wBACE,kCAAA,CAGF,uBACE,0BAAA",sourcesContent:[".time-status {\n background: var(--main-background, #ffffff);\n padding: 0px 8px 8px 16px;\n display: flex;\n flex-direction: row;\n gap: 8px;\n align-items: flex-end;\n justify-content: flex-end;\n align-self: stretch;\n flex-shrink: 0;\n width: 320px;\n position: relative;\n\n &__caption {\n display: flex;\n gap: 2px;\n align-items: flex-end;\n flex-shrink: 0;\n\n &__status {\n width: 13px;\n height: 13px;\n }\n }\n &__time {\n color: var(--tertiary-elements, #636d78);\n text-align: left;\n font: var(--label-label-small);\n position: relative;\n // padding-bottom: 10px;\n }\n}\n\n.status-message {\n &--sent {\n fill: var(--tertiary-elements, #636D78);\n }\n\n &--delivered {\n fill: var(--tertiary-elements, #636D78);\n }\n\n &--viewed {\n fill: var(--main-elements, #3978fc);\n }\n\n &--error {\n fill: var(--error, #FF3B30);\n }\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/CheckBox/CheckBox.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>CheckBox_CheckBox_CheckBox});var react=__webpack_require__("./node_modules/react/index.js"),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),CheckBox=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/Presentation/ui-components/CheckBox/CheckBox.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()(CheckBox.A,options);CheckBox.A&&CheckBox.A.locals&&CheckBox.A.locals;var classnames=__webpack_require__("./node_modules/classnames/index.js"),classnames_default=__webpack_require__.n(classnames),icons=__webpack_require__("./src/Presentation/icons/index.ts");function CheckBox_CheckBox_CheckBox(_ref){let{disabled,checked,onChange}=_ref;return react.createElement("label",{className:classnames_default()("checkbox-field",{disabled})},checked?react.createElement(icons.uM,{className:"icon-checkmark"}):react.createElement(icons.av,{className:"icon-check"}),react.createElement("input",{type:"checkbox",onChange:()=>onChange?.(!checked),disabled}))}CheckBox_CheckBox_CheckBox.__docgenInfo={description:"",methods:[],displayName:"CheckBox",props:{disabled:{required:!0,tsType:{name:"boolean"},description:""},checked:{required:!0,tsType:{name:"boolean"},description:""},onChange:{required:!1,tsType:{name:"signature",type:"function",raw:"(isSelected: boolean) => void",signature:{arguments:[{type:{name:"boolean"},name:"isSelected"}],return:{name:"void"}}},description:""}}}},"./src/Presentation/ui-components/Message/Message.stories.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{MessageFile:()=>MessageFile,MessageImage:()=>MessageImage,MessageText:()=>MessageText,__namedExportsOrder:()=>__namedExportsOrder,default:()=>Message_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),Avatar=__webpack_require__("./src/Presentation/ui-components/Avatar/Avatar.tsx"),CheckBox=__webpack_require__("./src/Presentation/ui-components/CheckBox/CheckBox.tsx"),forward_filledreact=__webpack_require__("./src/Presentation/icons/actions/forward-filled.svg?react"),reply_filledreact=__webpack_require__("./src/Presentation/icons/actions/reply-filled.svg?react"),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),MessageCaption=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/Presentation/ui-components/Message/MessageCaption/MessageCaption.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()(MessageCaption.A,options);MessageCaption.A&&MessageCaption.A.locals&&MessageCaption.A.locals;const subtypeIconDictionary={forward:forward_filledreact.A,reply:reply_filledreact.A};function MessageCaption_MessageCaption_MessageCaption(_ref){let{type,subtype,userName}=_ref;return react.createElement("div",{className:"message-caption__user__caption"},react.createElement("div",{className:"message-caption__forward-reply"},subtype&&(subtype=>{const SubTypeIcon=subtypeIconDictionary[subtype];return react.createElement(SubTypeIcon,{className:`message-caption__forward-reply--${subtype}`})})(subtype),react.createElement("span",{className:"message-caption__forward-reply__from"},"forward"===subtype&&"Forwarded from ","reply"===subtype&&"Replied to ")),("incoming"===type||"reply"===subtype||"forward"===subtype)&&react.createElement("div",{className:"message-caption__user__caption__name"},userName))}MessageCaption_MessageCaption_MessageCaption.__docgenInfo={description:"",methods:[],displayName:"MessageCaption",props:{type:{required:!0,tsType:{name:"union",raw:"'outgoing' | 'incoming'",elements:[{name:"literal",value:"'outgoing'"},{name:"literal",value:"'incoming'"}]},description:""},subtype:{required:!1,tsType:{name:"union",raw:"'reply' | 'forward'",elements:[{name:"literal",value:"'reply'"},{name:"literal",value:"'forward'"}]},description:""},userName:{required:!0,tsType:{name:"string"},description:""}}};var sentreact=__webpack_require__("./src/Presentation/icons/status/sent.svg?react"),viewed_deliveredreact=__webpack_require__("./src/Presentation/icons/status/viewed-delivered.svg?react"),errorreact=__webpack_require__("./src/Presentation/icons/status/error.svg?react"),TimeAndStatus=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/Presentation/ui-components/Message/TimeAndStatus/TimeAndStatus.scss"),TimeAndStatus_options={};TimeAndStatus_options.styleTagTransform=styleTagTransform_default(),TimeAndStatus_options.setAttributes=setAttributesWithoutAttributes_default(),TimeAndStatus_options.insert=insertBySelector_default().bind(null,"head"),TimeAndStatus_options.domAPI=styleDomAPI_default(),TimeAndStatus_options.insertStyleElement=insertStyleElement_default();injectStylesIntoStyleTag_default()(TimeAndStatus.A,TimeAndStatus_options);TimeAndStatus.A&&TimeAndStatus.A.locals&&TimeAndStatus.A.locals;const statusIconDictionary={sent:sentreact.A,delivered:viewed_deliveredreact.A,viewed:viewed_deliveredreact.A,error:errorreact.A};function TimeAndStatus_TimeAndStatus_TimeAndStatus(_ref){let{status,time}=_ref;const StatusIcon=statusIconDictionary[status];return react.createElement("div",{className:"time-status__caption"},status&&react.createElement("div",{className:"time-status__caption__status"},react.createElement(StatusIcon,{className:`status-message--${status}`})),react.createElement("div",{className:"time-status__time"},time))}TimeAndStatus_TimeAndStatus_TimeAndStatus.__docgenInfo={description:"",methods:[],displayName:"TimeAndStatus",props:{status:{required:!1,tsType:{name:"union",raw:"'sent' | 'delivered' | 'viewed' | 'error'",elements:[{name:"literal",value:"'sent'"},{name:"literal",value:"'delivered'"},{name:"literal",value:"'viewed'"},{name:"literal",value:"'error'"}]},description:""},time:{required:!0,tsType:{name:"string"},description:""}}};var Message=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/Presentation/ui-components/Message/Message.scss"),Message_options={};Message_options.styleTagTransform=styleTagTransform_default(),Message_options.setAttributes=setAttributesWithoutAttributes_default(),Message_options.insert=insertBySelector_default().bind(null,"head"),Message_options.domAPI=styleDomAPI_default(),Message_options.insertStyleElement=insertStyleElement_default();injectStylesIntoStyleTag_default()(Message.A,Message_options);Message.A&&Message.A.locals&&Message.A.locals;function Message_Message_Message(_ref){let{userName,avatar=react.createElement(Avatar.A,null),time,type,status,subtype,enableSelect=!1,isSelect=!1,disabled=!1,onSelect,bottomPart,additionalPart,children}=_ref;return react.createElement("div",{className:"message-item"},enableSelect&&react.createElement(CheckBox.A,{disabled,checked:isSelect,onChange:onSelect}),"outgoing"===type?react.createElement("div",{className:"message-item__right"},react.createElement("div",{className:"message-item__outgoing"},react.createElement(TimeAndStatus_TimeAndStatus_TimeAndStatus,{status,time}),additionalPart,react.createElement("div",{className:"message-item__outgoing__chat"},react.createElement(MessageCaption_MessageCaption_MessageCaption,{type,subtype,userName}),react.createElement("div",{className:classnames_default()(null,{"reply-forward-message":"reply"===subtype||"forward"===subtype})},children)))):react.createElement(react.Fragment,null,react.createElement("div",{className:"message-item__incoming-mes"},avatar,react.createElement("div",{className:"message-item__incoming"},react.createElement(MessageCaption_MessageCaption_MessageCaption,{type,subtype,userName}),react.createElement("div",{className:"message-item__incoming__chat"},react.createElement("div",{className:"message-item__incoming__chat__bubble"},"reply"===subtype||"forward"===subtype?react.createElement("div",{className:"reply-forward-message"},children):children,bottomPart),additionalPart,react.createElement(TimeAndStatus_TimeAndStatus_TimeAndStatus,{time}))))))}Message_Message_Message.__docgenInfo={description:"",methods:[],displayName:"Message",props:{userName:{required:!0,tsType:{name:"string"},description:""},avatar:{required:!1,tsType:{name:"ReactElement"},description:"",defaultValue:{value:"<Avatar />",computed:!1}},time:{required:!0,tsType:{name:"string"},description:""},type:{required:!0,tsType:{name:"union",raw:"'outgoing' | 'incoming'",elements:[{name:"literal",value:"'outgoing'"},{name:"literal",value:"'incoming'"}]},description:""},subtype:{required:!1,tsType:{name:"union",raw:"'reply' | 'forward'",elements:[{name:"literal",value:"'reply'"},{name:"literal",value:"'forward'"}]},description:""},status:{required:!1,tsType:{name:"union",raw:"'sent' | 'delivered' | 'viewed' | 'error'",elements:[{name:"literal",value:"'sent'"},{name:"literal",value:"'delivered'"},{name:"literal",value:"'viewed'"},{name:"literal",value:"'error'"}]},description:""},enableSelect:{required:!1,tsType:{name:"boolean"},description:"",defaultValue:{value:"false",computed:!1}},isSelect:{required:!1,tsType:{name:"boolean"},description:"",defaultValue:{value:"false",computed:!1}},disabled:{required:!1,tsType:{name:"boolean"},description:"",defaultValue:{value:"false",computed:!1}},onSelect:{required:!1,tsType:{name:"signature",type:"function",raw:"(isSelected: boolean) => void",signature:{arguments:[{type:{name:"boolean"},name:"isSelected"}],return:{name:"void"}}},description:""},bottomPart:{required:!1,tsType:{name:"ReactElement"},description:""},additionalPart:{required:!1,tsType:{name:"ReactElement"},description:""},children:{required:!1,tsType:{name:"ReactElement"},description:""}}};var HighLightLink=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/Presentation/Views/Dialog/Message/HighLightLink/HighLightLink.scss"),HighLightLink_options={};HighLightLink_options.styleTagTransform=styleTagTransform_default(),HighLightLink_options.setAttributes=setAttributesWithoutAttributes_default(),HighLightLink_options.insert=insertBySelector_default().bind(null,"head"),HighLightLink_options.domAPI=styleDomAPI_default(),HighLightLink_options.insertStyleElement=insertStyleElement_default();injectStylesIntoStyleTag_default()(HighLightLink.A,HighLightLink_options);HighLightLink.A&&HighLightLink.A.locals&&HighLightLink.A.locals;const pattern=/(https?:\/\/)?([\p{L}\p{N}_-]+(?:(?:\.[\p{L}\p{N}_-]+)+)[\p{L}\p{N}.,@?^=%&:/~+#-]*[\p{L}\p{N}@?^=%&/~+#-])/gu;function removeLastPunctuation(str){const punctuationRegex=/[!;%:?*_.,:-]/,decimalSeparatorRegex=/[.,]/;if(str.length>0){const lastChar=str.charAt(str.length-1);if(punctuationRegex.test(lastChar)||decimalSeparatorRegex.test(lastChar))return str.slice(0,-1)}return str}const getRuleUrl=url=>{const uriParts=(url=>{const matches=url.match(/^(\w+?:\/\/)?([\w-\\.]+(?=\/?))?:?(\d*)?([^:]*)/);return{scheme:matches?matches[1]:void 0,host:matches?matches[2]:"",port:matches?matches[3]:void 0,pathname:matches?matches[4]:""}})(url);let result=url;return void 0===uriParts.scheme&&(result=`http://${url}`),result},HighLightLink_HighLightLink_HighLightLink=_ref=>{let{messageText}=_ref;const elements=messageText.split(/\n| /).map(((item,index)=>(str=>{const regex=new RegExp(pattern);return regex.test(str)||regex.test(removeLastPunctuation(str))})(item)?react.createElement("div",{className:"message-urls"},react.createElement("span",null,react.createElement("a",{key:index,href:`${getRuleUrl(item)}`,target:"_blank",rel:"noreferrer"},item)," ")):react.createElement("span",null,item," ")));return react.createElement("div",null,elements)};HighLightLink_HighLightLink_HighLightLink.__docgenInfo={description:"",methods:[],displayName:"HighLightLink",props:{messageText:{required:!0,tsType:{name:"string"},description:""}}};var TextBubble=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/Presentation/ui-components/Message/Bubble/TextBubble/TextBubble.scss"),TextBubble_options={};TextBubble_options.styleTagTransform=styleTagTransform_default(),TextBubble_options.setAttributes=setAttributesWithoutAttributes_default(),TextBubble_options.insert=insertBySelector_default().bind(null,"head"),TextBubble_options.domAPI=styleDomAPI_default(),TextBubble_options.insertStyleElement=insertStyleElement_default();injectStylesIntoStyleTag_default()(TextBubble.A,TextBubble_options);TextBubble.A&&TextBubble.A.locals&&TextBubble.A.locals;function TextBubble_TextBubble_TextBubble(_ref){let{text,type}=_ref;return react.createElement("div",{className:`text-bubble-background__${type}`},react.createElement("div",{className:"bubble-content-text"},(message=>{let result=0;return message.split(/\n| /).forEach((s=>{(s.match(pattern)||removeLastPunctuation(s).match(pattern))&&(result+=1)})),result>0})(text)?react.createElement(HighLightLink_HighLightLink_HighLightLink,{messageText:text}):text))}TextBubble_TextBubble_TextBubble.__docgenInfo={description:"",methods:[],displayName:"TextBubble",props:{text:{required:!0,tsType:{name:"string"},description:""},type:{required:!0,tsType:{name:"union",raw:"'outgoing' | 'incoming'",elements:[{name:"literal",value:"'outgoing'"},{name:"literal",value:"'incoming'"}]},description:""}}};var FileBubble=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/Presentation/ui-components/Message/Bubble/FileBubble/FileBubble.scss"),FileBubble_options={};FileBubble_options.styleTagTransform=styleTagTransform_default(),FileBubble_options.setAttributes=setAttributesWithoutAttributes_default(),FileBubble_options.insert=insertBySelector_default().bind(null,"head"),FileBubble_options.domAPI=styleDomAPI_default(),FileBubble_options.insertStyleElement=insertStyleElement_default();injectStylesIntoStyleTag_default()(FileBubble.A,FileBubble_options);FileBubble.A&&FileBubble.A.locals&&FileBubble.A.locals;var filereact=__webpack_require__("./src/Presentation/icons/media/file.svg?react"),FileUrl=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/Presentation/ui-components/Message/FileUrl/FileUrl.scss"),FileUrl_options={};FileUrl_options.styleTagTransform=styleTagTransform_default(),FileUrl_options.setAttributes=setAttributesWithoutAttributes_default(),FileUrl_options.insert=insertBySelector_default().bind(null,"head"),FileUrl_options.domAPI=styleDomAPI_default(),FileUrl_options.insertStyleElement=insertStyleElement_default();injectStylesIntoStyleTag_default()(FileUrl.A,FileUrl_options);FileUrl.A&&FileUrl.A.locals&&FileUrl.A.locals;function FileUrl_FileUrl_FileUrl(_ref){let{title,href}=_ref;return react.createElement("div",{className:"file-attachment"},react.createElement("div",{className:"file-attachment__placeholder"},react.createElement("div",{className:"file-attachment__placeholder__bg"}),href?react.createElement("a",{href,target:"_blank",download:!0,rel:"noreferrer",className:"file-attachment__placeholder__bg__icon"},react.createElement(filereact.A,{className:"message-icon-file"})):react.createElement("div",{className:"file-attachment__placeholder__bg__icon"},react.createElement(filereact.A,{className:"message-icon-file"}))),react.createElement("div",{className:"file-attachment__file-name"},(fileName=title).length>10?`${fileName.substring(0,9)}... .${fileName.slice((Math.max(0,fileName.lastIndexOf("."))||1/0)+1)}`:fileName));var fileName}function FileBubble_FileBubble_FileBubble(_ref){let{type,title,href}=_ref;return react.createElement("div",{className:`file-bubble-background__${type}`},react.createElement(FileUrl_FileUrl_FileUrl,{title,href}))}FileUrl_FileUrl_FileUrl.__docgenInfo={description:"",methods:[],displayName:"FileUrl",props:{title:{required:!0,tsType:{name:"string"},description:""},href:{required:!1,tsType:{name:"string"},description:""}}},FileBubble_FileBubble_FileBubble.__docgenInfo={description:"",methods:[],displayName:"FileBubble",props:{type:{required:!0,tsType:{name:"union",raw:"'outgoing' | 'incoming'",elements:[{name:"literal",value:"'outgoing'"},{name:"literal",value:"'incoming'"}]},description:""},title:{required:!0,tsType:{name:"string"},description:""},href:{required:!1,tsType:{name:"string"},description:""}}};var ImageBubble=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/Presentation/ui-components/Message/Bubble/ImageBubble/ImageBubble.scss"),ImageBubble_options={};ImageBubble_options.styleTagTransform=styleTagTransform_default(),ImageBubble_options.setAttributes=setAttributesWithoutAttributes_default(),ImageBubble_options.insert=insertBySelector_default().bind(null,"head"),ImageBubble_options.domAPI=styleDomAPI_default(),ImageBubble_options.insertStyleElement=insertStyleElement_default();injectStylesIntoStyleTag_default()(ImageBubble.A,ImageBubble_options);ImageBubble.A&&ImageBubble.A.locals&&ImageBubble.A.locals;function ImageBubble_ImageBubble_ImageBubble(_ref){let{title,href}=_ref;return react.createElement("a",{href,download:"file",target:"_blank",rel:"noreferrer",className:"message-attachment-image"},react.createElement("img",{className:"message-attachment-image-body",key:href,src:href,alt:title||"attached image"}))}ImageBubble_ImageBubble_ImageBubble.__docgenInfo={description:"",methods:[],displayName:"ImageBubble",props:{title:{required:!0,tsType:{name:"string"},description:""},href:{required:!1,tsType:{name:"string"},description:""}}};var playreact=__webpack_require__("./src/Presentation/icons/toggle/play.svg?react"),pausereact=__webpack_require__("./src/Presentation/icons/toggle/pause.svg?react"),AudioBubble=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/Presentation/ui-components/Message/Bubble/AudioBubble/AudioBubble.scss"),AudioBubble_options={};AudioBubble_options.styleTagTransform=styleTagTransform_default(),AudioBubble_options.setAttributes=setAttributesWithoutAttributes_default(),AudioBubble_options.insert=insertBySelector_default().bind(null,"head"),AudioBubble_options.domAPI=styleDomAPI_default(),AudioBubble_options.insertStyleElement=insertStyleElement_default();injectStylesIntoStyleTag_default()(AudioBubble.A,AudioBubble_options);AudioBubble.A&&AudioBubble.A.locals&&AudioBubble.A.locals;function AudioBubble_AudioBubble_AudioBubble(_ref){let{type,title,href,fileUid,audioFileType}=_ref;const[isPlaying,setIsPlaying]=(0,react.useState)(!1),audioRef=(0,react.useRef)(null),[secondsElapsed,setSecondsElapsed]=(0,react.useState)(0),handleAudioEnd=()=>{setIsPlaying(!1),setSecondsElapsed(0)};(0,react.useEffect)((()=>{const audio=audioRef.current;if(audio)return audio.addEventListener("ended",handleAudioEnd),()=>{audio.removeEventListener("ended",handleAudioEnd)}}),[]),(0,react.useEffect)((()=>{let intervalId;return isPlaying&&(intervalId=setInterval((()=>{setSecondsElapsed((prevSeconds=>prevSeconds+1))}),100)),()=>{clearInterval(intervalId)}}),[isPlaying]);return react.createElement("div",{className:`audio-bubble-background__${type}`},react.createElement("audio",{ref:audioRef,className:"audio-body",preload:"auto"},react.createElement("source",{src:href,type:audioFileType}),react.createElement("source",{src:href,type:"audio/mpeg"}),react.createElement("source",{src:href,type:"audio/ogg"}),"Your browser does not support the audio element."),react.createElement("div",{className:"audio-player"},react.createElement("div",{className:"audio-body__controls",onClick:()=>{const audio=audioRef.current;audio?(isPlaying?audio.pause():audio.play(),setIsPlaying(!isPlaying)):console.error("Audio element not found")}},isPlaying?react.createElement(pausereact.A,{className:"audio-body__controls--color"}):react.createElement(playreact.A,{className:"audio-body__controls--color"})),react.createElement("div",{className:"audio-player__equalizer-time"},react.createElement("div",{className:"equalizer"},isPlaying?(()=>{const divElements=[];for(let i=0;i<30;i+=1){const divStyle={height:`${Math.floor(12*Math.random())+1}px`};divElements.push(react.createElement("div",{className:"equalizer__rectangle",key:i,style:divStyle}))}return divElements})():(uid=>{const divElements=[],nums=((inputString,count)=>{const uniqueNumbers=[];for(let i=0;i<count;i+=1)uniqueNumbers.push(Math.abs(inputString.charCodeAt(i)%11)+2);return uniqueNumbers})(uid,30);for(let i=0;i<30;i+=1){const divStyle={height:`${nums[i]}px`};divElements.push(react.createElement("div",{className:"equalizer__rectangle",key:i,style:divStyle}))}return divElements})(fileUid)),react.createElement("div",{className:"time-play"},(time=>{const minutes=Math.floor(time%3600/60),seconds=Math.floor(time%60);return`${minutes.toString().padStart(2,"0")}:${seconds.toString().padStart(2,"0")}`})(secondsElapsed)))))}AudioBubble_AudioBubble_AudioBubble.__docgenInfo={description:"",methods:[],displayName:"AudioBubble",props:{type:{required:!0,tsType:{name:"union",raw:"'outgoing' | 'incoming'",elements:[{name:"literal",value:"'outgoing'"},{name:"literal",value:"'incoming'"}]},description:""},title:{required:!1,tsType:{name:"string"},description:""},href:{required:!1,tsType:{name:"string"},description:""},fileUid:{required:!1,tsType:{name:"string"},description:""},audioFileType:{required:!1,tsType:{name:"string"},description:""}}};var VideoBubble=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/Presentation/ui-components/Message/Bubble/VideoBubble/VideoBubble.scss"),VideoBubble_options={};VideoBubble_options.styleTagTransform=styleTagTransform_default(),VideoBubble_options.setAttributes=setAttributesWithoutAttributes_default(),VideoBubble_options.insert=insertBySelector_default().bind(null,"head"),VideoBubble_options.domAPI=styleDomAPI_default(),VideoBubble_options.insertStyleElement=insertStyleElement_default();injectStylesIntoStyleTag_default()(VideoBubble.A,VideoBubble_options);VideoBubble.A&&VideoBubble.A.locals&&VideoBubble.A.locals;function VideoBubble_VideoBubble_VideoBubble(_ref){let{title,href,className}=_ref;return react.createElement("div",{className},react.createElement("div",{className:"message-attachment-video"},react.createElement("video",{className:"message-attachment-video-body",controls:!0,key:title,playsInline:!0,src:href},react.createElement("a",{href,download:!0},"Download"))),react.createElement("a",{href,download:!0,className:"message-attachment-video-body__link"},"Download"))}function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},_extends.apply(null,arguments)}function getChildrenByType(type,children){if(("incoming"===type||"outgoing"===type)&&children)return function createBubbleByType(type,children){const isTextBubbleType=children?.type===TextBubble_TextBubble_TextBubble,isFileBubbleType=children?.type===FileBubble_FileBubble_FileBubble,isImageBubbleType=children?.type===ImageBubble_ImageBubble_ImageBubble,isAudioBubbleType=children?.type===AudioBubble_AudioBubble_AudioBubble,isVideoBubbleType=children?.type===VideoBubble_VideoBubble_VideoBubble;return isTextBubbleType?react.createElement(TextBubble_TextBubble_TextBubble,{text:"The QuickBlox UIKit for React is a comprehensive user interface kit specifically designed for building chat applications. It provides a collection of pre-built components, modules, and utilities that simplify the process of creating chat applications.",type}):isFileBubbleType?react.createElement(FileBubble_FileBubble_FileBubble,{title:"00b5563-small-qb-logo-docs-white-9px.png",href:"https://files.readme.io/00b5563-small-qb-logo-docs-white-9px.png",type}):isImageBubbleType?react.createElement(ImageBubble_ImageBubble_ImageBubble,{title:"QuickBlox",href:"https://files.readme.io/00b5563-small-qb-logo-docs-white-9px.png"}):isAudioBubbleType?react.createElement(AudioBubble_AudioBubble_AudioBubble,{title:"1.mp3",href:"//samplelib.com/lib/preview/mp3/sample-3s.mp3",audioFileType:"mp3",fileUid:"12345678901234544",type}):isVideoBubbleType?react.createElement(VideoBubble_VideoBubble_VideoBubble,{title:"QuickBlox",href:"https://www.youtube.com/watch?v=0QFqNjhP-wM"}):void 0}(type,children)}VideoBubble_VideoBubble_VideoBubble.__docgenInfo={description:"",methods:[],displayName:"VideoBubble",props:{title:{required:!0,tsType:{name:"string"},description:""},href:{required:!1,tsType:{name:"string"},description:""},className:{required:!1,tsType:{name:"string"},description:""}}};const Message_stories={tags:["autodocs"],title:"@quickblox-react-ui-kit/Presentation/ui-components/Message",component:Message_Message_Message,decorators:[(StoryFn,context)=>{const{type,children}=context.args,modifiedArgs={...context.args,children:getChildrenByType(type,children)};return react.createElement(StoryFn,_extends({},context,{args:modifiedArgs}))}],parameters:{viewport:{viewports:dist.Lq}},args:{userName:"Nate",time:"16:58",type:"incoming",status:void 0,enableSelect:!0,isSelect:!1,disabled:!1},argTypes:{userName:{table:{type:{summary:"string"},defaultValue:{summary:""}},description:"User name"},avatar:{control:!1,table:{type:{summary:"ReactElement"}},description:"Message sender avatar"},time:{table:{type:{summary:"string"},defaultValue:{summary:""}},description:"Time of sending the message"},type:{table:{type:{summary:"outgoing | incoming"},defaultValue:{summary:"incoming"}},control:"radio",options:["incoming","outgoing"],description:"The type of message can be either outgoing or incoming"},enableSelect:{description:"Enables the option to select a message"},isSelect:{description:"The status of message selection"},disabled:{description:"Active"},status:{table:{type:{summary:"sent | delivered | viewed | error"},defaultValue:{summary:""}},control:"select",options:["sent","delivered","viewed","error"],description:"The status of the message"},children:{table:{type:{summary:"ReactElement"}},description:"Message bubble",control:"select",options:["TextMessage","FileMessage","ImageMessage","AudioMessage","VideoMessage"],mapping:{TextMessage:react.createElement(TextBubble_TextBubble_TextBubble,{text:"The QuickBlox UIKit for React is a comprehensive user interface kit specifically designed for building chat applications. It provides a collection of pre-built components, modules, and utilities that simplify the process of creating chat applications.",type:"incoming"}),FileMessage:react.createElement(FileBubble_FileBubble_FileBubble,{title:"00b5563-small-qb-logo-docs-white-9px.png",href:"https://files.readme.io/00b5563-small-qb-logo-docs-white-9px.png",type:"incoming"}),ImageMessage:react.createElement(ImageBubble_ImageBubble_ImageBubble,{title:"QuickBlox",href:"https://files.readme.io/00b5563-small-qb-logo-docs-white-9px.png"}),AudioMessage:react.createElement(AudioBubble_AudioBubble_AudioBubble,{title:"1.mp3",href:"//samplelib.com/lib/preview/mp3/sample-3s.mp3",audioFileType:"mp3",fileUid:"12345678901234544",type:"incoming"}),VideoMessage:react.createElement(VideoBubble_VideoBubble_VideoBubble,{title:"QuickBlox",href:"https://www.youtube.com/watch?v=0QFqNjhP-wM"})}},subtype:{description:"Additional message subtype"},onSelect:{table:{type:{summary:"function"}},description:"The function responsible for message selection"},bottomPart:{table:{type:{summary:"ReactElement"}},control:!1,description:"The bottom part of the message layout"},additionalPart:{table:{type:{summary:"ReactElement"}},control:!1,description:"Additional section of the message layout"}}},MessageText={args:{children:react.createElement(TextBubble_TextBubble_TextBubble,{text:"Test Message",type:"incoming"})}},MessageImage={args:{children:react.createElement(ImageBubble_ImageBubble_ImageBubble,{title:"QuickBlox",href:"https://files.readme.io/0a66fe7-SreenModulesDialogList.png"})}},MessageFile={args:{children:react.createElement(FileBubble_FileBubble_FileBubble,{type:"incoming",title:"QuickBlox",href:"https://raw.githubusercontent.com/QuickBlox/react-ui-kit/main/README.md"})}},__namedExportsOrder=["MessageText","MessageImage","MessageFile"];MessageText.parameters={...MessageText.parameters,docs:{...MessageText.parameters?.docs,source:{originalSource:'{\n args: {\n children: <TextBubble text="Test Message" type="incoming" />\n }\n}',...MessageText.parameters?.docs?.source}}},MessageImage.parameters={...MessageImage.parameters,docs:{...MessageImage.parameters?.docs,source:{originalSource:'{\n args: {\n children: <ImageBubble title="QuickBlox" href="https://files.readme.io/0a66fe7-SreenModulesDialogList.png" />\n }\n}',...MessageImage.parameters?.docs?.source}}},MessageFile.parameters={...MessageFile.parameters,docs:{...MessageFile.parameters?.docs,source:{originalSource:'{\n args: {\n children: <FileBubble type="incoming" title="QuickBlox" href="https://raw.githubusercontent.com/QuickBlox/react-ui-kit/main/README.md" />\n }\n}',...MessageFile.parameters?.docs?.source}}}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunkquickblox_react_ui_kit=self.webpackChunkquickblox_react_ui_kit||[]).push([[491],{"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/Presentation/ui-components/Loader/Loader.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,".loader--sm{width:24px;height:24px}.loader--md{width:48px;height:48px}.loader--lg{width:52px;height:52px}@keyframes rotate{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.loader{animation:rotate 1s infinite linear}","",{version:3,sources:["webpack://./src/Presentation/ui-components/Loader/Loader.scss"],names:[],mappings:"AACE,YACE,UAAA,CACA,WAAA,CAGF,YACE,UAAA,CACA,WAAA,CAGF,YACE,UAAA,CACA,WAAA,CAGF,kBACE,KACE,sBAAA,CAEF,GACE,wBAAA,CAAA,CAIJ,QACE,mCAAA",sourcesContent:[".loader {\n &--sm {\n width: 24px;\n height: 24px;\n }\n\n &--md {\n width: 48px;\n height: 48px;\n }\n\n &--lg {\n width: 52px;\n height: 52px;\n }\n\n @keyframes rotate {\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(360deg);\n }\n }\n\n & {\n animation: rotate 1s infinite linear;\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/MessageInput/MessageInput.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,".chat-container{width:100%}.chat-container__send-icon{display:flex;align-items:center}.chat-container__icon{width:24px;height:24px;cursor:pointer;fill:var(--secondary-elements)}.chat-container__icon__send{width:24px;height:24px;cursor:pointer;fill:var(--main-elements)}.chat-container__icon svg path{fill:var(--main-elements)}.chat-container__icon--mute{fill:var(--disabled-elements)}.chat-container__icon--mute svg path{fill:var(--disabled-elements)}.chat-container__icon--disable{fill:var(--disabled-elements);cursor:default}.chat-container__icon--disable svg path{fill:var(--disabled-elements)}.chat-container__icon--red{fill:var(--error)}.chat-container__icon--red svg path{fill:var(--error)}.chat-container__loader{fill:var(--color-background-info)}.chat-container__loader svg path{fill:var(--color-background-info)}.chat-input{min-height:54px;max-height:182px;height:54px;width:100%;display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between;align-items:center;margin:0 auto;padding-left:12px;padding-right:12px;padding-bottom:2px;gap:6px}.chat-input:disabled{background-color:dimgray;color:linen;opacity:1;cursor:not-allowed}.chat-input textarea{width:100%;height:44px;min-Height:44px;max-Height:128px;background-Color:var(--chat-input);border-Radius:4px;padding-left:16px;padding-top:8px;line-height:24px;font-size:16px;margin:0 auto;resize:none}.input-text-message *{box-sizing:border-box}.input-text-message{background:var(--chat-input);border-radius:4px;display:flex;flex-direction:row;gap:8px;align-items:flex-end;justify-content:flex-start;flex:1;position:relative}.type-message{color:var(--field-border);text-align:left;font:var(--body-body-large);position:relative;flex:1;display:flex;align-items:center;justify-content:flex-start}.type-message textarea{color:var(--main-text);font:var(--body-body-large);border:none;outline:none}.right{display:flex;flex-direction:row;gap:10px;align-items:center;justify-content:flex-end;flex-shrink:0;position:relative;margin-bottom:5px}","",{version:3,sources:["webpack://./src/Presentation/ui-components/MessageInput/MessageInput.scss"],names:[],mappings:"AAEA,gBACE,UAAA,CACA,2BACE,YAAA,CACA,kBAAA,CAEF,sBACE,UAAA,CACA,WAAA,CACA,cAAA,CACA,8BAAA,CACA,4BACE,UAAA,CACA,WAAA,CACA,cAAA,CACA,yBAAA,CAGF,+BACE,yBAAA,CAGJ,4BACE,6BAAA,CACA,qCACE,6BAAA,CAGJ,+BACE,6BAAA,CACA,cAAA,CACA,wCACE,6BAAA,CAGJ,2BACE,iBAAA,CACA,oCACE,iBAAA,CAGJ,wBACE,iCAAA,CAEA,iCACE,iCAAA,CAIN,YAUE,eA5D6C,CA6D7C,gBAAA,CACA,WA9D6C,CAgE7C,UAAA,CACA,YAAA,CAEA,kBAAA,CACA,gBAAA,CAEA,6BAAA,CACA,kBAAA,CACA,aAAA,CACA,iBAAA,CACA,kBAAA,CACA,kBAAA,CAEA,OAAA,CA1BA,qBACE,wBAAA,CACA,WAAA,CACA,SAAA,CACA,kBAAA,CAwBF,qBAEE,UAAA,CACA,WAAA,CACA,eAAA,CACA,gBAAA,CACA,kCAAA,CACA,iBAAA,CACA,iBAAA,CACA,eAAA,CAIA,gBAAA,CACA,cAAA,CACA,aAAA,CACA,WAAA,CAIJ,sBACE,qBAAA,CAEF,oBACE,4BAAA,CACA,iBAAA,CAEA,YAAA,CACA,kBAAA,CACA,OAAA,CACA,oBAAA,CACA,0BAAA,CACA,MAAA,CACA,iBAAA,CAEF,cACE,yBAAA,CACA,eAAA,CACA,2BAAA,CACA,iBAAA,CACA,MAAA,CACA,YAAA,CACA,kBAAA,CACA,0BAAA,CAEF,uBACE,sBAAA,CACA,2BAAA,CACA,WAAA,CACA,YAAA,CAEF,OACE,YAAA,CACA,kBAAA,CACA,QAAA,CACA,kBAAA,CACA,wBAAA,CACA,aAAA,CACA,iBAAA,CACA,iBAAA",sourcesContent:["$message-view-container-header-min-height: 64px;\n$message-view-container-chat-input-min-height: 54px;\n.chat-container{\n width: 100%;\n &__send-icon {\n display: flex;\n align-items: center;\n }\n &__icon{\n width: 24px;\n height: 24px;\n cursor: pointer;\n fill: var(--secondary-elements);\n &__send {\n width: 24px;\n height: 24px;\n cursor: pointer;\n fill: var(--main-elements);\n }\n\n svg path{\n fill: var(--main-elements);\n }\n }\n &__icon--mute{\n fill: var(--disabled-elements);\n svg path{\n fill: var(--disabled-elements);\n }\n }\n &__icon--disable{\n fill: var(--disabled-elements);\n cursor: default;\n svg path{\n fill: var(--disabled-elements);\n }\n }\n &__icon--red{\n fill: var(--error);\n svg path{\n fill: var(--error);\n }\n }\n &__loader{\n fill: var(--color-background-info);\n\n svg path{\n fill: var(--color-background-info);\n }\n }\n}\n.chat-input{\n &:disabled{\n background-color: dimgrey;\n color: linen;\n opacity: 1;\n cursor: not-allowed;\n }\n // border: 1px solid red;\n //border-top: 1px solid var(--divider);\n // flex: 1 1 $message-view-container-wrapper-min-width;\n min-height: $message-view-container-chat-input-min-height;\n max-height: calc(2 * $message-view-container-header-min-height + $message-view-container-chat-input-min-height);\n height: $message-view-container-chat-input-min-height;\n\n width: 100%;\n display: flex;\n //\n flex-direction: row;\n flex-wrap: nowrap;\n\n justify-content: space-between;\n align-items: center;\n margin: 0 auto;\n padding-left: 12px;\n padding-right: 12px;\n padding-bottom: 2px;\n\n gap: 6px;\n\n textarea{\n // border: 3px solid blue;\n width: 100%;\n height: 44px;\n min-Height: 44px;\n max-Height: calc(2 * $message-view-container-header-min-height);\n background-Color: var(--chat-input);\n border-Radius: 4px;\n padding-left: 16px;\n padding-top: 8px;\n // padding: 5px 5px;\n // text-align: center;\n //vertical-align: middle;\n line-height: 24px;\n font-size: 16px;\n margin: 0 auto;\n resize: none;\n }\n\n}\n.input-text-message * {\n box-sizing: border-box;\n}\n.input-text-message {\n background: var(--chat-input);\n border-radius: 4px;\n //padding: 10px 8px 10px 16px;\n display: flex;\n flex-direction: row;\n gap: 8px;\n align-items: flex-end;\n justify-content: flex-start;\n flex: 1;\n position: relative;\n}\n.type-message {\n color: var(--field-border);\n text-align: left;\n font: var(--body-body-large);\n position: relative;\n flex: 1;\n display: flex;\n align-items: center;\n justify-content: flex-start;\n}\n.type-message textarea{\n color: var(--main-text);\n font: var(--body-body-large);\n border: none;\n outline: none;\n}\n.right {\n display: flex;\n flex-direction: row;\n gap: 10px;\n align-items: center;\n justify-content: flex-end;\n flex-shrink: 0;\n position: relative;\n margin-bottom: 5px;\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/MessageInput/ReplyMessagePreview/ReplyImagePreviewAttachment/ReplyImagePreviewAttachment.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,".reply-preview-image-body{border-radius:8px;flex-shrink:0;width:44px;height:44px;position:relative}","",{version:3,sources:["webpack://./src/Presentation/ui-components/MessageInput/ReplyMessagePreview/ReplyImagePreviewAttachment/ReplyImagePreviewAttachment.scss"],names:[],mappings:"AAAA,0BAUE,iBAAA,CACA,aAAA,CACA,UAAA,CACA,WAAA,CACA,iBAAA",sourcesContent:[".reply-preview-image-body{\n // border: 1px solid red;\n //max-width: 44px;\n //max-height: 44px;\n //min-width: 44px;\n //min-height: 44px;\n //width: 44px;\n //height: 44px;\n //padding: 0;\n //border-radius: 8px;\n border-radius: 8px;\n flex-shrink: 0;\n width: 44px;\n height: 44px;\n position: relative;\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/MessageInput/ReplyMessagePreview/ReplyMessagePreview.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,'.reply-message-preview-row,.reply-message-preview-row *{box-sizing:border-box}.reply-message-preview-row{padding:10px 12px 10px 12px;display:flex;flex-direction:row;align-items:center;justify-content:space-between;align-self:stretch;flex-shrink:0;position:relative}.reply-message-preview-row-card{display:flex;flex-direction:row;gap:8px;align-items:center;justify-content:flex-start;flex-shrink:0;position:relative}.reply-message-preview-placeholder{background:var(--incoming-background, #e4e6e8);border-radius:8px;padding:6px;display:flex;flex-direction:row;gap:10px;align-items:flex-start;justify-content:flex-start;flex-shrink:0;position:relative}.reply-message-preview-placeholder-icon{border-radius:4px;padding:4px;display:flex;flex-direction:row;gap:0px;align-items:center;justify-content:center;flex-shrink:0;width:32px;height:32px;position:relative}.reply-message-media-text-document{align-self:stretch;flex:1;position:relative;overflow:visible}.reply-message-preview-message{display:flex;flex-direction:column;gap:4px;align-items:flex-start;justify-content:center;flex-shrink:0;position:relative}.reply-message-preview-message-caption{display:flex;flex-direction:row;gap:0px;align-items:flex-start;justify-content:flex-start;flex-shrink:0;position:relative}.reply-message-preview-message-caption-info{display:flex;flex-direction:row;gap:2px;align-items:center;justify-content:flex-start;flex-shrink:0;position:relative}.reply-message-preview-message-caption-info-icon{border-radius:4px;display:flex;flex-direction:row;gap:0px;align-items:center;justify-content:center;flex-shrink:0;width:16px;height:16px;position:relative}.actions-reply-filled{align-self:stretch;flex:1;position:relative;overflow:visible}.reply-message-preview-message-caption-info-replied-to-name{color:var(--tertiary-elements, #636d78);text-align:left;font:var(--label-label-medium, 500 12px/16px "Roboto", sans-serif);position:relative}.reply-message-preview-message-caption-info-file{color:var(--caption, #90979f);text-align:center;font:var(--body-body-small, 400 12px/16px "Roboto", sans-serif);position:relative;display:flex;align-items:center;justify-content:center}.reply-message-preview-message-caption-info-text{color:var(--main-text, #0b1b0f);text-align:center;font:var(--body-body-large, 400 16px/24px "Roboto", sans-serif);position:relative;display:flex;align-items:center;justify-content:center}.reply-message-preview-message-navigation-close{align-self:stretch;position:relative;overflow:visible}.reply-message-icon{width:24px;height:24px;cursor:pointer;fill:var(--secondary-elements)}.reply-message-icon svg path{fill:var(--secondary-elements)}',"",{version:3,sources:["webpack://./src/Presentation/ui-components/MessageInput/ReplyMessagePreview/ReplyMessagePreview.scss"],names:[],mappings:"AAAA,wDAEE,qBAAA,CAEF,2BACE,2BAAA,CACA,YAAA,CACA,kBAAA,CACA,kBAAA,CACA,6BAAA,CACA,kBAAA,CACA,aAAA,CACA,iBAAA,CAEF,gCACE,YAAA,CACA,kBAAA,CACA,OAAA,CACA,kBAAA,CACA,0BAAA,CACA,aAAA,CACA,iBAAA,CAEF,mCACE,8CAAA,CACA,iBAAA,CACA,WAAA,CACA,YAAA,CACA,kBAAA,CACA,QAAA,CACA,sBAAA,CACA,0BAAA,CACA,aAAA,CACA,iBAAA,CAEF,wCACE,iBAAA,CACA,WAAA,CACA,YAAA,CACA,kBAAA,CACA,OAAA,CACA,kBAAA,CACA,sBAAA,CACA,aAAA,CACA,UAAA,CACA,WAAA,CACA,iBAAA,CAEF,mCACE,kBAAA,CACA,MAAA,CACA,iBAAA,CACA,gBAAA,CAEF,+BACE,YAAA,CACA,qBAAA,CACA,OAAA,CACA,sBAAA,CACA,sBAAA,CACA,aAAA,CACA,iBAAA,CAEF,uCACE,YAAA,CACA,kBAAA,CACA,OAAA,CACA,sBAAA,CACA,0BAAA,CACA,aAAA,CACA,iBAAA,CAEF,4CACE,YAAA,CACA,kBAAA,CACA,OAAA,CACA,kBAAA,CACA,0BAAA,CACA,aAAA,CACA,iBAAA,CAEF,iDACE,iBAAA,CACA,YAAA,CACA,kBAAA,CACA,OAAA,CACA,kBAAA,CACA,sBAAA,CACA,aAAA,CACA,UAAA,CACA,WAAA,CACA,iBAAA,CAEF,sBACE,kBAAA,CACA,MAAA,CACA,iBAAA,CACA,gBAAA,CAEF,4DACE,uCAAA,CACA,eAAA,CACA,kEAAA,CACA,iBAAA,CAEF,iDACE,6BAAA,CACA,iBAAA,CACA,+DAAA,CACA,iBAAA,CACA,YAAA,CACA,kBAAA,CACA,sBAAA,CAEF,iDACE,+BAAA,CACA,iBAAA,CACA,+DAAA,CACA,iBAAA,CACA,YAAA,CACA,kBAAA,CACA,sBAAA,CAGF,gDACE,kBAAA,CAEA,iBAAA,CACA,gBAAA,CAEF,oBACE,UAAA,CACA,WAAA,CACA,cAAA,CACA,8BAAA,CAEA,6BACE,8BAAA",sourcesContent:['.reply-message-preview-row,\n.reply-message-preview-row * {\n box-sizing: border-box;\n}\n.reply-message-preview-row {\n padding: 10px 12px 10px 12px;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n align-self: stretch;\n flex-shrink: 0;\n position: relative;\n}\n.reply-message-preview-row-card {\n display: flex;\n flex-direction: row;\n gap: 8px;\n align-items: center;\n justify-content: flex-start;\n flex-shrink: 0;\n position: relative;\n}\n.reply-message-preview-placeholder {\n background: var(--incoming-background, #e4e6e8);\n border-radius: 8px;\n padding: 6px;\n display: flex;\n flex-direction: row;\n gap: 10px;\n align-items: flex-start;\n justify-content: flex-start;\n flex-shrink: 0;\n position: relative;\n}\n.reply-message-preview-placeholder-icon {\n border-radius: 4px;\n padding: 4px;\n display: flex;\n flex-direction: row;\n gap: 0px;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n width: 32px;\n height: 32px;\n position: relative;\n}\n.reply-message-media-text-document {\n align-self: stretch;\n flex: 1;\n position: relative;\n overflow: visible;\n}\n.reply-message-preview-message {\n display: flex;\n flex-direction: column;\n gap: 4px;\n align-items: flex-start;\n justify-content: center;\n flex-shrink: 0;\n position: relative;\n}\n.reply-message-preview-message-caption {\n display: flex;\n flex-direction: row;\n gap: 0px;\n align-items: flex-start;\n justify-content: flex-start;\n flex-shrink: 0;\n position: relative;\n}\n.reply-message-preview-message-caption-info {\n display: flex;\n flex-direction: row;\n gap: 2px;\n align-items: center;\n justify-content: flex-start;\n flex-shrink: 0;\n position: relative;\n}\n.reply-message-preview-message-caption-info-icon {\n border-radius: 4px;\n display: flex;\n flex-direction: row;\n gap: 0px;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n width: 16px;\n height: 16px;\n position: relative;\n}\n.actions-reply-filled {\n align-self: stretch;\n flex: 1;\n position: relative;\n overflow: visible;\n}\n.reply-message-preview-message-caption-info-replied-to-name {\n color: var(--tertiary-elements, #636d78);\n text-align: left;\n font: var(--label-label-medium, 500 12px/16px "Roboto", sans-serif);\n position: relative;\n}\n.reply-message-preview-message-caption-info-file {\n color: var(--caption, #90979f);\n text-align: center;\n font: var(--body-body-small, 400 12px/16px "Roboto", sans-serif);\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.reply-message-preview-message-caption-info-text {\n color: var(--main-text, #0b1b0f);\n text-align: center;\n font: var(--body-body-large, 400 16px/24px "Roboto", sans-serif);\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.reply-message-preview-message-navigation-close {\n align-self: stretch;\n // flex: 1;\n position: relative;\n overflow: visible;\n}\n.reply-message-icon{\n width: 24px;\n height: 24px;\n cursor: pointer;\n fill: var(--secondary-elements);\n\n svg path{\n fill: var(--secondary-elements);\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/MessageInput/VoiceRecordingProgress/VoiceRecordingProgress.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,".chat-message-text-container{width:100%;height:44px;min-Height:44px;max-Height:64px;background-Color:var(--chat-input);border-Radius:4px;padding-left:16px;padding-top:8px;line-height:24px;font-size:16px;margin:0 auto;resize:none;display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:flex-start;align-items:center;gap:12px}.chat-message-text-container__stop_record_button{cursor:pointer;border-radius:50%;background:var(--error);min-height:24px;max-height:24px;height:24px;width:24px}","",{version:3,sources:["webpack://./src/Presentation/ui-components/MessageInput/VoiceRecordingProgress/VoiceRecordingProgress.scss"],names:[],mappings:"AACA,6BAEE,UAAA,CACA,WAAA,CACA,eAAA,CACA,eAN6B,CAO7B,kCAAA,CACA,iBAAA,CACA,iBAAA,CACA,eAAA,CACA,gBAAA,CACA,cAAA,CACA,aAAA,CACA,WAAA,CAGA,YAAA,CACA,kBAAA,CACA,gBAAA,CAEA,0BAAA,CACA,kBAAA,CAEA,QAAA,CACA,iDACE,cAAA,CACA,iBAAA,CACA,uBAAA,CACA,eAAA,CACA,eAAA,CACA,WAAA,CACA,UAAA",sourcesContent:["$chat-message-text-min-height: 64px;\n.chat-message-text-container{\n // border: 3px solid blue;\n width: 100%;\n height: 44px;\n min-Height: 44px;\n max-Height: $chat-message-text-min-height;\n background-Color: var(--chat-input);\n border-Radius: 4px;\n padding-left: 16px;\n padding-top: 8px;\n line-height: 24px;\n font-size: 16px;\n margin: 0 auto;\n resize: none;\n\n //\n display: flex;\n flex-direction: row;\n flex-wrap: nowrap;\n\n justify-content: flex-start;\n align-items: center;\n\n gap: 12px;\n &__stop_record_button{\n cursor: pointer;\n border-radius: 50%;\n background: var(--error);\n min-height: 24px;\n max-height: 24px;\n height: 24px;\n width: 24px;\n }\n}\n"],sourceRoot:""}]);const __WEBPACK_DEFAULT_EXPORT__=___CSS_LOADER_EXPORT___},"./node_modules/quickblox sync recursive":module=>{function webpackEmptyContext(req){var e=new Error("Cannot find module '"+req+"'");throw e.code="MODULE_NOT_FOUND",e}webpackEmptyContext.keys=()=>[],webpackEmptyContext.resolve=webpackEmptyContext,webpackEmptyContext.id="./node_modules/quickblox sync recursive",module.exports=webpackEmptyContext},"./src/Presentation/ui-components/Loader/Loader.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>Loader_Loader_Loader});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),Loader=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/Presentation/ui-components/Loader/Loader.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()(Loader.A,options);Loader.A&&Loader.A.locals&&Loader.A.locals;function Loader_Loader_Loader(_ref){let{className,size="md"}=_ref;return react.createElement(icons.iO,{className:classnames_default()("loader",size&&`loader--${size}`,className)})}Loader_Loader_Loader.__docgenInfo={description:"",methods:[],displayName:"Loader",props:{size:{required:!1,tsType:{name:"union",raw:"'sm' | 'md' | 'lg'",elements:[{name:"literal",value:"'sm'"},{name:"literal",value:"'md'"},{name:"literal",value:"'lg'"}]},description:"",defaultValue:{value:"'md'",computed:!1}},className:{required:!1,tsType:{name:"string"},description:""}}}},"./src/Presentation/ui-components/MessageInput/MessageInput.stories.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{MessageInputDefault:()=>MessageInputDefault,MessageInputLoadingState:()=>MessageInputLoadingState,MessageInputWithPreview:()=>MessageInputWithPreview,MessageInputWithVoiceMessage:()=>MessageInputWithVoiceMessage,__namedExportsOrder:()=>__namedExportsOrder,default:()=>MessageInput_stories});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),VoiceRecordingProgress=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/Presentation/ui-components/MessageInput/VoiceRecordingProgress/VoiceRecordingProgress.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()(VoiceRecordingProgress.A,options);VoiceRecordingProgress.A&&VoiceRecordingProgress.A.locals&&VoiceRecordingProgress.A.locals;const VoiceRecordingProgress_VoiceRecordingProgress_VoiceRecordingProgress=_ref=>{let{startStatus,longRecInSec,onClick,onTouch}=_ref,timerId=null;const[currentTime,setCurrentTime]=(0,react.useState)(Date.now()),[timeString,setTimeString]=(0,react.useState)("00:00:00"),[startTime]=(0,react.useState)(Date.now());(0,react.useEffect)((()=>{const valueToCalc=Math.round((currentTime-(startTime||0))/1e3),sec=valueToCalc%60,min=Math.round(valueToCalc/60),secStr=sec<=9?`0${sec.toString()}`:sec,minStr=min<=9?`0${min.toString()}`:min;setTimeString(`00:${minStr}:${secStr}`)}),[currentTime]);const stopTimer=()=>{timerId&&(clearInterval(timerId),timerId=null),onClick&&onClick(),onTouch&&onTouch()};return(0,react.useEffect)((()=>{startStatus&&(setTimeout((()=>{stopTimer()}),1e3*(longRecInSec<=60&&longRecInSec>0?longRecInSec:10)),timerId||(timerId=setInterval((()=>{setCurrentTime(Date.now())}),1e3)))}),[startStatus]),react.createElement("div",{className:"chat-message-text-container"},react.createElement("div",{onClick:()=>{stopTimer()},onTouchStart:()=>{stopTimer()},className:"chat-message-text-container__stop_record_button"}),react.createElement("div",null,timeString))},MessageInput_VoiceRecordingProgress_VoiceRecordingProgress=VoiceRecordingProgress_VoiceRecordingProgress_VoiceRecordingProgress;VoiceRecordingProgress_VoiceRecordingProgress_VoiceRecordingProgress.__docgenInfo={description:"",methods:[],displayName:"VoiceRecordingProgress",props:{startStatus:{required:!0,tsType:{name:"boolean"},description:""},longRecInSec:{required:!0,tsType:{name:"number"},description:""},onClick:{required:!1,tsType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""},onTouch:{required:!1,tsType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""}}};const AttachmentUploader=_ref=>{let{icon,onChangeFile,disableAction}=_ref;return react.createElement("label",{htmlFor:"btnUploadAttachment",style:{cursor:"pointer"}},react.createElement("div",null,icon),react.createElement("input",{id:"btnUploadAttachment",type:"file",accept:"image/*, audio/*, video/*, .pdf, .txt, .apk, .zip, .ipa, .ppt, .pptx, .doc, .docx, .xls, .xlsx, .json, .log",style:{display:"none"},onChange:event=>{onChangeFile(event),event.target.value=""},disabled:disableAction}))},AttachmentUploader_AttachmentUploader=AttachmentUploader;AttachmentUploader.__docgenInfo={description:"",methods:[],displayName:"AttachmentUploader",props:{icon:{required:!0,tsType:{name:"ReactReactNode",raw:"React.ReactNode"},description:""},onChangeFile:{required:!0,tsType:{name:"signature",type:"function",raw:"(event: React.ChangeEvent<HTMLInputElement>) => void",signature:{arguments:[{type:{name:"ReactChangeEvent",raw:"React.ChangeEvent<HTMLInputElement>",elements:[{name:"HTMLInputElement"}]},name:"event"}],return:{name:"void"}}},description:""},disableAction:{required:!0,tsType:{name:"boolean"},description:""}}};var MessageInput=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/Presentation/ui-components/MessageInput/MessageInput.scss"),MessageInput_options={};MessageInput_options.styleTagTransform=styleTagTransform_default(),MessageInput_options.setAttributes=setAttributesWithoutAttributes_default(),MessageInput_options.insert=insertBySelector_default().bind(null,"head"),MessageInput_options.domAPI=styleDomAPI_default(),MessageInput_options.insertStyleElement=insertStyleElement_default();injectStylesIntoStyleTag_default()(MessageInput.A,MessageInput_options);MessageInput.A&&MessageInput.A.locals&&MessageInput.A.locals;var icons=__webpack_require__("./src/Presentation/icons/index.ts"),Loader=__webpack_require__("./src/Presentation/ui-components/Loader/Loader.tsx");const MessageInput_MessageInput_MessageInput=_ref=>{let{value,onChange,onChanging,onSend,enableVoice,onVoice,disableAttachment,onAttachment,previewMessage,rephrase,loading,placeholder,disableActions=!1,className}=_ref;const[isVoiceMessage,setVoiceMessage]=(0,react.useState)(!0);function sendTextMessageActions(){value&&onSend&&(onSend(value),onChange&&!disableActions&&onChange(""))}return react.createElement("div",{className:classnames_default()("chat-container",className)},previewMessage,react.createElement("div",{onBlur:()=>{value&&value.length>0||setVoiceMessage(!0)},className:"chat-input"},react.createElement(AttachmentUploader_AttachmentUploader,{disableAction:disableActions,icon:react.createElement(icons.ci,{className:classnames_default()("chat-container__icon",{"chat-container__icon--mute":disableAttachment||loading,"chat-container__icon--disable":disableActions})}),onChangeFile:onAttachment}),!enableVoice&&react.createElement("div",{className:"input-text-message type-message"},react.createElement("textarea",{disabled:loading,value,onFocus:()=>{setVoiceMessage(!1)},onChange:event=>{onChange&&onChange(event.target.value)},onInput:event=>{onChanging&&onChanging(event.target.value)},onKeyDown:e=>{"Enter"!==e.key||e.shiftKey||e.ctrlKey||sendTextMessageActions()},placeholder:placeholder||"Type message"}),rephrase),enableVoice&&react.createElement(MessageInput_VoiceRecordingProgress_VoiceRecordingProgress,{startStatus:enableVoice,longRecInSec:60,onClick:()=>{onVoice&&onVoice()}}),!isVoiceMessage&&!loading&&react.createElement("div",{className:"chat-container__send-icon"},react.createElement(icons.Fx,{className:classnames_default()("chat-container__icon__send",{"chat-container__icon--mute":loading,"chat-container__icon--disable":disableActions}),onClick:()=>{sendTextMessageActions()}})),loading?react.createElement(Loader.A,{size:"sm",className:"chat-container__loader"}):isVoiceMessage&&react.createElement(icons.NG,{className:classnames_default()("chat-container__icon",{"chat-container__icon--red":enableVoice,"chat-container__icon--disable":disableActions}),onClick:()=>{onVoice&&onVoice()}})))},ui_components_MessageInput_MessageInput=MessageInput_MessageInput_MessageInput;function ReplyField(){let theme=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;return react.createElement("svg",{width:theme&&theme.width?theme.width:"44",height:theme&&theme.height?theme.height:"44",viewBox:"0 0 44 44",fill:"none",xmlns:"http://www.w3.org/2000/svg"},react.createElement("path",{d:"M18.3333 15.5833V8.25L5.5 21.0833L18.3333 33.9167V26.4C27.5 26.4 33.9167 29.3333 38.5 35.75C36.6667 26.5833 31.1667 17.4167 18.3333 15.5833Z",id:"ReplyField",fill:theme&&theme.color?theme.color:"var(--color-icon)"}))}MessageInput_MessageInput_MessageInput.__docgenInfo={description:"",methods:[],displayName:"MessageInput",props:{value:{required:!0,tsType:{name:"string"},description:""},onChange:{required:!1,tsType:{name:"signature",type:"function",raw:"(value: string) => void",signature:{arguments:[{type:{name:"string"},name:"value"}],return:{name:"void"}}},description:""},onChanging:{required:!1,tsType:{name:"signature",type:"function",raw:"(value: string) => void",signature:{arguments:[{type:{name:"string"},name:"value"}],return:{name:"void"}}},description:""},onSend:{required:!1,tsType:{name:"signature",type:"function",raw:"(value: string) => void",signature:{arguments:[{type:{name:"string"},name:"value"}],return:{name:"void"}}},description:""},enableVoice:{required:!1,tsType:{name:"boolean"},description:""},onVoice:{required:!1,tsType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""},disableAttachment:{required:!1,tsType:{name:"boolean"},description:""},onAttachment:{required:!0,tsType:{name:"signature",type:"function",raw:"(event: React.ChangeEvent<HTMLInputElement>) => void",signature:{arguments:[{type:{name:"ReactChangeEvent",raw:"React.ChangeEvent<HTMLInputElement>",elements:[{name:"HTMLInputElement"}]},name:"event"}],return:{name:"void"}}},description:""},previewMessage:{required:!1,tsType:{name:"ReactElement"},description:""},rephrase:{required:!1,tsType:{name:"ReactElement"},description:""},loading:{required:!1,tsType:{name:"boolean"},description:""},placeholder:{required:!1,tsType:{name:"string"},description:""},disableActions:{required:!1,tsType:{name:"boolean"},description:"",defaultValue:{value:"false",computed:!1}},className:{required:!1,tsType:{name:"string"},description:""}}};const ReplyFilled=ReplyField;ReplyField.__docgenInfo={description:"",methods:[],displayName:"ReplyField"};class FileType{static audio="audio";static video="video";static image="image";static text="text"}var ReplyImagePreviewAttachment=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/Presentation/ui-components/MessageInput/ReplyMessagePreview/ReplyImagePreviewAttachment/ReplyImagePreviewAttachment.scss"),ReplyImagePreviewAttachment_options={};ReplyImagePreviewAttachment_options.styleTagTransform=styleTagTransform_default(),ReplyImagePreviewAttachment_options.setAttributes=setAttributesWithoutAttributes_default(),ReplyImagePreviewAttachment_options.insert=insertBySelector_default().bind(null,"head"),ReplyImagePreviewAttachment_options.domAPI=styleDomAPI_default(),ReplyImagePreviewAttachment_options.insertStyleElement=insertStyleElement_default();injectStylesIntoStyleTag_default()(ReplyImagePreviewAttachment.A,ReplyImagePreviewAttachment_options);ReplyImagePreviewAttachment.A&&ReplyImagePreviewAttachment.A.locals&&ReplyImagePreviewAttachment.A.locals;const ReplyImagePreviewAttachment_ReplyImagePreviewAttachment_ReplyImagePreviewAttachment=_ref=>{let{imageFile}=_ref;return react.createElement("div",null,react.createElement("a",{href:imageFile.url,download:"file",target:"_blank",rel:"noreferrer"},react.createElement("img",{className:"reply-preview-image-body",key:imageFile.id,src:imageFile.url,alt:imageFile.name||"attached image"})))},ReplyMessagePreview_ReplyImagePreviewAttachment_ReplyImagePreviewAttachment=ReplyImagePreviewAttachment_ReplyImagePreviewAttachment_ReplyImagePreviewAttachment;function TextDocument(){let theme=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;return react.createElement("svg",{width:theme&&theme.width?theme.width:"44",height:theme&&theme.height?theme.height:"44",viewBox:"0 0 44 44",fill:"none",xmlns:"http://www.w3.org/2000/svg"},react.createElement("path",{d:"M25.6668 3.66675H11.0002C8.9835 3.66675 7.35183 5.31675 7.35183 7.33341L7.3335 36.6667C7.3335 38.6834 8.96516 40.3334 10.9818 40.3334H33.0002C35.0168 40.3334 36.6668 38.6834 36.6668 36.6667V14.6667L25.6668 3.66675ZM29.3335 33.0001H14.6668V29.3334H29.3335V33.0001ZM29.3335 25.6667H14.6668V22.0001H29.3335V25.6667ZM23.8335 16.5001V6.41675L33.9168 16.5001H23.8335Z",id:"TextDocument",fill:theme&&theme.color?theme.color:"var(--color-icon)"}))}ReplyImagePreviewAttachment_ReplyImagePreviewAttachment_ReplyImagePreviewAttachment.__docgenInfo={description:"",methods:[],displayName:"ReplyImagePreviewAttachment",props:{imageFile:{required:!0,tsType:{name:"FileEntity"},description:""}}};const Media_TextDocument=TextDocument;TextDocument.__docgenInfo={description:"",methods:[],displayName:"TextDocument"};class RemoteMessageDTO{constructor(){this.id=(new Date).getTime().toString(),this.dialogId="",this.message="",this.created_at=(new Date).toString(),this.date_sent=(new Date).getTime(),this.delivered_ids=new Array,this.read_ids=new Array,this.recipient_id=0,this.read=0,this.sender_id=0,this.updated_at=(new Date).toString(),this.notification_type="",this.attachments=[]}}class RepositoryException extends Error{constructor(message,code){super(message),this.message=message,this.code=code}}const INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE="Error. Mapper DTO Incorrect data exception .";class MapperDTOException extends RepositoryException{constructor(message,code){let description=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";super(message,code),this._description=description,this._description&&(this.message+=` ${this._description}`)}}var quickblox=__webpack_require__("./node_modules/quickblox/quickblox.js"),quickblox_default=__webpack_require__.n(quickblox);let qbSDK;function getQB(){return qbSDK||(qbSDK=quickblox_default()),qbSDK}class MessageDTOMapper{fromDTO(dto){const messageDTO=dto;MessageDTOMapper.validateDTO(messageDTO);return Promise.resolve({_id:"",attachments:[],chat_dialog_id:"",created_at:"",date_sent:0,delivered_ids:[],message:"",read:0,read_ids:[],recipient_id:0,sender_id:0,updated_at:""})}static transformAttachment(qbMessage,qbAtts){return qbAtts.map((item=>{const QB=getQB(),newItem={id:item.id,name:item.name,size:item.size,type:item.type,uid:item.uid,url:item.uid&&QB.content.privateUrl(item.uid),file:{id:item.id,name:item.name,size:item.size,type:item.type,uid:item.uid||"",url:item.uid&&QB.content.privateUrl(item.uid)}},messageParts=MessageDTOMapper.getMessageParts(qbMessage);return messageParts&&messageParts.length>3&&(newItem.uid=messageParts[2],newItem.name=messageParts[1],newItem.type=messageParts[3],newItem.url=newItem.uid&&QB.content.privateUrl(newItem.uid),newItem.file&&(newItem.file.uid=newItem.uid,newItem.file.name=newItem.name,newItem.file.url=newItem.uid&&QB.content.privateUrl(newItem.uid),newItem.file.type=newItem.type)),newItem}))}toTDO(entity){const qbMessage=entity,dto=this.QBChatMessageToRemoteMessageDTO(qbMessage);let operationResult=!0;return dto.qb_original_messages=MessageDTOMapper.translateJSONToOriginalData(qbMessage.qb_original_messages)?.map((item=>{let result;try{result=this.QBChatMessageToRemoteMessageDTO(item,!0)}catch(e){operationResult=!1,console.log(e)}return result})),dto.qb_message_action=qbMessage.qb_message_action,dto.origin_sender_name=qbMessage.origin_sender_name,operationResult||(dto.qb_original_messages=void 0,dto.qb_message_action=void 0,dto.origin_sender_name=void 0),Promise.resolve(dto)}QBChatMessageToRemoteMessageDTO(qbMessage){let offValidate=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const dto=new RemoteMessageDTO;return offValidate?(dto.id=qbMessage._id,dto.dialogId=qbMessage.chat_dialog_id,dto.message=qbMessage.message,dto.created_at=qbMessage.created_at||Date.now().toString(),dto.date_sent=qbMessage.date_sent||1e3*Date.now(),dto.delivered_ids=qbMessage.delivered_ids||[],dto.read_ids=qbMessage.read_ids||[],dto.recipient_id=qbMessage.recipient_id||0,dto.attachments=MessageDTOMapper.transformAttachment(qbMessage.message||"",qbMessage.attachments||[]),dto.read=qbMessage.read||1,dto.sender_id=qbMessage.sender_id,dto.updated_at=qbMessage.updated_at||Date.now().toString(),dto.notification_type=qbMessage.notification_type||"",dto.markable=qbMessage.notification_type||""):(MessageDTOMapper.validateQBMessage(qbMessage),dto.id=qbMessage._id,dto.dialogId=qbMessage.chat_dialog_id,dto.message=qbMessage.message,dto.created_at=qbMessage.created_at,dto.date_sent=1e3*qbMessage.date_sent,dto.delivered_ids=qbMessage.delivered_ids||[],dto.read_ids=qbMessage.read_ids||[],dto.recipient_id=qbMessage.recipient_id||0,dto.attachments=MessageDTOMapper.transformAttachment(qbMessage.message||"",qbMessage.attachments||[]),dto.read=qbMessage.read,dto.sender_id=qbMessage.sender_id,dto.updated_at=qbMessage.updated_at,dto.notification_type=qbMessage.notification_type||"",dto.markable=qbMessage.notification_type||""),dto}static convertAttachment(attachment){return{id:attachment.id.toString(),uid:attachment.uid||"",type:attachment.type.toString(),url:attachment.url||"",name:attachment.name||"",size:attachment.size||0}}static convertToQBChatNewMessage(messages){return messages.map((message=>({_id:message.id,attachments:message.attachments?.map((attachment=>MessageDTOMapper.convertAttachment(attachment)))||[],chat_dialog_id:message.dialogId,created_at:message.created_at,date_sent:message.date_sent,delivered_ids:message.delivered_ids,message:message.message,read_ids:message.read_ids,read:message.read,recipient_id:message.recipient_id,sender_id:message.sender_id,updated_at:message.updated_at,notification_type:message.notification_type,qb_message_action:message.qb_message_action,origin_sender_name:message.origin_sender_name,qb_original_messages:message.qb_original_messages?MessageDTOMapper.translateOriginalDataToJSON(MessageDTOMapper.convertToQBChatNewMessage(message.qb_original_messages||[])||[]):void 0})))}static translateOriginalDataToJSON(qb_original_message){return qb_original_message&&qb_original_message.length>0?JSON.stringify(qb_original_message):""}static translateJSONToOriginalData(json_data){if(json_data)try{const originalData=JSON.parse(json_data);if(Array.isArray(originalData)&&originalData.every((item=>item instanceof Object)))return originalData}catch(error){console.error("Error parsing JSON:",error)}}static FORWARD_MESSAGE_PREFIX="[Forwarded_Message]";static REPLY_MESSAGE_PREFIX="[Replied_Message]";static ATTACHMENT_PREFIX="[Attachment]";static MEDIA_CONTENT_ENTITY_PREFIX="MediaContentEntity";static isForwardedOrRepliedMessage(qbMessage){return qbMessage.includes(MessageDTOMapper.FORWARD_MESSAGE_PREFIX)||qbMessage.includes(MessageDTOMapper.REPLY_MESSAGE_PREFIX)}static isMediaOrAttachmentMessage(message){return message.includes(MessageDTOMapper.MEDIA_CONTENT_ENTITY_PREFIX)||message.includes(MessageDTOMapper.ATTACHMENT_PREFIX)}static formatMessage(qbMessage){return MessageDTOMapper.isMediaOrAttachmentMessage(qbMessage)?this.splitMessageParts(qbMessage)[1]||"":MessageDTOMapper.isForwardedOrRepliedMessage(qbMessage)?"":qbMessage}static getMessageParts(qbMessage){return MessageDTOMapper.isMediaOrAttachmentMessage(qbMessage)?MessageDTOMapper.splitMessageParts(qbMessage):[]}static splitMessageParts(message){return message.split("|")}static validateDTO(messageDTO){const messageDTOValidator={created_at(v){const{created_at}=v;return null!=created_at&&created_at.length>0},date_sent(v){const{date_sent}=v;return null!=date_sent},delivered_ids(v){const{delivered_ids}=v;return null!=delivered_ids},dialogId(v){const{dialogId}=v;return null!=dialogId&&dialogId.length>0},id(v){const{id}=v;return null!=id},message(v){const{message}=v;return null!=message&&message.length>0},read(v){const{read}=v;return null!=read},read_ids(v){const{read_ids}=v;return null!=read_ids},recipient_id(v){const{recipient_id}=v;return null!=recipient_id},sender_id(v){const{sender_id}=v;return null!=sender_id},updated_at(v){const{updated_at}=v;return null!=updated_at&&updated_at.length>0},attachments(v){const{attachments}=v;return null!=attachments}};if(!messageDTOValidator.created_at(messageDTO))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {created_at} does not exist or empty");if(!messageDTOValidator.date_sent(messageDTO))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {date_sent} does not exist or empty");if(!messageDTOValidator.delivered_ids(messageDTO))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {delivered_ids} does not exist or empty");if(!messageDTOValidator.dialogId(messageDTO))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {dialogId} does not exist or empty");if(!messageDTOValidator.id(messageDTO))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {id} does not exist or empty");if(!messageDTOValidator.message(messageDTO))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {message} does not exist or empty");if(!messageDTOValidator.read(messageDTO))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {read} does not exist or empty");if(!messageDTOValidator.read_ids(messageDTO))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {read_ids} does not exist or empty");if(!messageDTOValidator.recipient_id(messageDTO))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {recipient_id} does not exist or empty");if(!messageDTOValidator.sender_id(messageDTO))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {sender_id} does not exist or empty");if(!messageDTOValidator.updated_at(messageDTO))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {updated_at} does not exist or empty")}static validateQBMessage(qbMessage){const qbMessageValidator={delivered_ids(v){const{delivered_ids}=v;return null!=delivered_ids},read_ids(v){const{read_ids}=v;return null!=read_ids},_id(v){const{_id}=v;return null!=_id&&_id.length>0},attachments(v){const{attachments}=v;return null!=attachments},chat_dialog_id(v){const{chat_dialog_id}=v;return null!=chat_dialog_id&&chat_dialog_id.length>0},created_at(v){const{created_at}=v;return null!=created_at&&created_at.length>0},date_sent(v){const{date_sent}=v;return null!=date_sent},message(v){const{message}=v;return null!=message&&message.length>0},read(v){const{read}=v;return null!=read},recipient_id(v){const{recipient_id}=v;return null!=recipient_id},sender_id(v){const{sender_id}=v;return null!=sender_id},updated_at(v){const{updated_at}=v;return null!=updated_at&&updated_at.length>0}};if(!qbMessageValidator._id(qbMessage))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {_id} does not exist or empty");if(!qbMessageValidator.chat_dialog_id(qbMessage))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {chat_dialog_id} does not exist or empty");if(!qbMessageValidator.created_at(qbMessage))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {created_at} does not exist or empty");if(!qbMessageValidator.date_sent(qbMessage))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {date_sent} does not exist or empty");if(!qbMessageValidator.message(qbMessage))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {message} does not exist or empty");if(!qbMessageValidator.read(qbMessage))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {read} does not exist or empty");if(!qbMessageValidator.recipient_id(qbMessage))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {recipient_id} does not exist or empty");if(!qbMessageValidator.sender_id(qbMessage))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {sender_id} does not exist or empty");if(!qbMessageValidator.updated_at(qbMessage))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {updated_at} does not exist or empty")}}var ReplyMessagePreview=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/Presentation/ui-components/MessageInput/ReplyMessagePreview/ReplyMessagePreview.scss"),ReplyMessagePreview_options={};ReplyMessagePreview_options.styleTagTransform=styleTagTransform_default(),ReplyMessagePreview_options.setAttributes=setAttributesWithoutAttributes_default(),ReplyMessagePreview_options.insert=insertBySelector_default().bind(null,"head"),ReplyMessagePreview_options.domAPI=styleDomAPI_default(),ReplyMessagePreview_options.insertStyleElement=insertStyleElement_default();injectStylesIntoStyleTag_default()(ReplyMessagePreview.A,ReplyMessagePreview_options);ReplyMessagePreview.A&&ReplyMessagePreview.A.locals&&ReplyMessagePreview.A.locals;function trimMessage(messageText){return`${messageText.substring(0,39)} ...`}const ReplyMessagePreview_ReplyMessagePreview_ReplyMessagePreview=_ref=>{let{messages,userNameSentMessage,onClose}=_ref;const[messageTextValue,setMessageTextValue]=react.useState("");return(0,react.useEffect)((()=>{const value=MessageDTOMapper.formatMessage(messages[0].message);setMessageTextValue(value)}),[messages[0]?.message]),react.createElement("div",{className:"reply-message-preview-row"},react.createElement("div",{className:"reply-message-preview-row-card"},messages.length>0&&messages[0].attachments&&messages[0].attachments.length>0?react.createElement("div",{className:"reply-message-preview-placeholder"},react.createElement("div",{className:"reply-message-preview-placeholder-icon"},messages&&messages[0].attachments&&messages[0].attachments.length>0&&messages[0].attachments[0].type.toString().includes(FileType.image)&&messages[0].attachments[0].file?react.createElement(ReplyMessagePreview_ReplyImagePreviewAttachment_ReplyImagePreviewAttachment,{imageFile:messages[0].attachments[0].file}):react.createElement(Media_TextDocument,{width:"24",height:"24",color:"var(--caption)"}))):null,react.createElement("div",{className:"reply-message-preview-message"},react.createElement("div",{className:"reply-message-preview-message-caption"},react.createElement("div",{className:"reply-message-preview-message-caption-info"},react.createElement("div",{className:"reply-message-preview-message-caption-info-icon"},react.createElement(ReplyFilled,{width:"16",height:"16",color:"var(--caption)"})),react.createElement("div",{className:"reply-message-preview-message-caption-info-replied-to-name"},"Reply to ",userNameSentMessage))),messages.length>0&&(!messages[0].attachments||messages[0].attachments&&0===messages[0].attachments.length)?react.createElement("div",{className:"reply-message-preview-message-caption-info-text"},messages.length>1?"2 messages":trimMessage(messageTextValue)):react.createElement("div",{className:"reply-message-preview-message-caption-info-file"},messages.length>1?"2 messages":trimMessage(messageTextValue)))),react.createElement("div",{className:"reply-message-preview-message-navigation-close",onClick:onClose},react.createElement(icons.X6,{className:"reply-message-icon"})))},MessageInput_ReplyMessagePreview_ReplyMessagePreview=ReplyMessagePreview_ReplyMessagePreview_ReplyMessagePreview;ReplyMessagePreview_ReplyMessagePreview_ReplyMessagePreview.__docgenInfo={description:"",methods:[],displayName:"ReplyMessagePreview",props:{messages:{required:!0,tsType:{name:"Array",elements:[{name:"MessageEntity"}],raw:"MessageEntity[]"},description:""},userNameSentMessage:{required:!0,tsType:{name:"string"},description:""},onClose:{required:!0,tsType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""}}};class DialogType{static private=3;static public=1;static group=2}class PublicDialogEntity{constructor(customData,id,lastMessage,ownerId,type,unreadMessageCount,updatedAt,name,photo){this.customData=customData,this.id=id,this.lastMessage=lastMessage,this.ownerId=ownerId,this.type=type,this.unreadMessageCount=unreadMessageCount,this.updatedAt=updatedAt,this.name=name,this.photo=photo}static getParticipants=d=>d.type===DialogType.group?d.participantIds:d.type===DialogType.private&&d.participantIds&&d.participantIds.length>0?[d.participantIds[0]]:d.type===DialogType.private&&d.participantId?[d.participantId]:[];static getNewParticipants=d=>{if(d.type===DialogType.group){return d.newParticipantIds||[]}return[]}}class PrivateDialogEntity{constructor(customData,id,name,lastMessage,ownerId,type,unreadMessageCount,updatedAt,participantId){this.customData=customData,this.id=id,this.name=name,this.lastMessage=lastMessage,this.ownerId=ownerId,this.type=type,this.unreadMessageCount=unreadMessageCount,this.updatedAt=updatedAt,this.participantId=participantId}}class GroupDialogEntity{constructor(customData,id,lastMessage,ownerId,type,unreadMessageCount,updatedAt,participantIds,name,photo){this.customData=customData,this.id=id,this.lastMessage=lastMessage,this.ownerId=ownerId,this.type=type,this.unreadMessageCount=unreadMessageCount,this.updatedAt=updatedAt,this.participantIds=participantIds,this.name=name,this.photo=photo}}class RemoteDialogDTO{constructor(){this.id="",this.type=0,this.ownerId="",this.participantId="",this.participantsIds=[],this.updatedAt="",this.lastMessageText="",this.lastMessageUserId=0,this.lastMessageDateSent=0,this.lastMessageId="",this.unreadMessageCount=0,this.name="",this.photo=""}}class RemoteUserDTO{constructor(){this.id="",this.name="",this.full_name="",this.email="",this.login="",this.created_at="",this.updated_at="",this.last_request_at="",this.custom_data="",this.user_tags="",this.blob_id=0}}class Creator{static createPhotoByBlob=async blob_id=>{const QB=getQB(),fileId=blob_id||0,file_uid=await Creator.getInfoPromise(fileId),imageSrc=QB.content.privateUrl(file_uid),{imgSrc,blobFile}=await Creator.createBlobFromUrl(imageSrc);return blobFile?URL.createObjectURL(blobFile):imgSrc||""};static async createBlobFromUrl(imageSrc){let imgSrc="";const blobFile=await fetch(imageSrc).catch((async function(){const response=await fetch(imageSrc);response.ok&&await async function(response){const blob=await(response?.blob());imgSrc=URL.createObjectURL(blob)}(response)})).then((function(response){return response?.blob()}));return{imgSrc,blobFile}}static async getInfoPromise(fileId){return new Promise(((resolve,reject)=>{getQB().content.getInfo(fileId,(function(error,result){error?reject(error):resolve(result.blob.uid)}))}))}static createMessageEntity(params){return{id:params.id||"",dialogId:params.dialogId,message:params.message,created_at:params.created_at||(new Date).toISOString(),date_sent:params.date_sent||Date.now(),updated_at:params.updated_at||(new Date).toISOString(),delivered_ids:params.delivered_ids||[],read_ids:params.read_ids||[],read:params.read||1,sender_id:params.sender_id,recipient_id:params.recipient_id,attachments:params.attachments,notification_type:params.notification_type,dialogType:params.dialog_type}}static createFileEntity(){return{id:"0",uid:"",url:"",name:"",size:0,type:FileType.image}}}class UserRemoteDTOMapper{fromEntity(entity){const userEntity=entity;if(null==userEntity)throw new MapperDTOException("Error. Mapper DTO Unexpected exception .",131,"entity is null or undefined");const userDTO=new RemoteUserDTO;return UserRemoteDTOMapper.validateEntity(userEntity),userDTO.id=userEntity.id.toString(),userDTO.full_name=userEntity.full_name,userDTO.email=userEntity.email,userDTO.login=userEntity.login,userDTO.created_at=userEntity.created_at,userDTO.updated_at=userEntity.updated_at,userDTO.last_request_at=userEntity.last_request_at,userDTO.custom_data=userEntity.custom_data,userDTO.user_tags=userEntity.user_tags,Promise.resolve(userDTO)}async toEntity(data){const userDTO=data;if(null==userDTO)throw new MapperDTOException("Error. Mapper DTO Unexpected exception .",131,"userDTO is null or undefined");UserRemoteDTOMapper.validateDTO(userDTO);const userEntity=UserRemoteDTOMapper.createDefaultUserEntity();return userEntity.id=parseInt(userDTO.id,10),userEntity.full_name=userDTO.full_name,userEntity.email=userDTO.email,userEntity.login=userDTO.login,userEntity.created_at=userDTO.created_at,userEntity.updated_at=userDTO.updated_at,userEntity.last_request_at=userDTO.last_request_at,userEntity.custom_data=userDTO.custom_data,userEntity.user_tags=userDTO.user_tags,userDTO.blob_id&&(userEntity.photo=await Creator.createPhotoByBlob(userDTO.blob_id)),Promise.resolve(userEntity)}static validateEntity(userEntity){const userEntityValidator={blob_id(v){const{blob_id}=v;return(blob_id||"").length>=0},photo(v){const{photo}=v;return null!=photo&&photo.length>0},created_at(v){const{created_at}=v;return null!=created_at&&created_at.length>0},custom_data(v){const{custom_data}=v;return custom_data||!0},email(v){const{email}=v;return null!=email&&email.length>0},full_name(v){const{full_name}=v;return null!=full_name&&full_name.length>0},id(v){const{id}=v;return null!=id},last_request_at(v){const{last_request_at}=v;return null!=last_request_at&&last_request_at.length>0},login(v){const{login}=v;return null!=login&&login.length>0},updated_at(v){const{updated_at}=v;return null!=updated_at&&updated_at.length>0},user_tags(v){const{user_tags}=v;return user_tags||!0}};if(!userEntityValidator.blob_id(userEntity))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {blob_id} does not exists or empty");if(!userEntityValidator.created_at(userEntity))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {created_at} does not exist or empty");if(!userEntityValidator.custom_data(userEntity))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {custom_data} does not exist or empty");if(!userEntityValidator.email(userEntity))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {email} does not exist or empty");if(!userEntityValidator.full_name(userEntity))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {full_name} does not exist or empty");if(!userEntityValidator.id(userEntity))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {id} does not exist or empty");if(!userEntityValidator.last_request_at(userEntity))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {last_request_at} does not exist or empty");if(!userEntityValidator.id(userEntity))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {id} does not exist or empty");if(!userEntityValidator.updated_at(userEntity))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {updated_at} does not exist or empty");if(!userEntityValidator.user_tags(userEntity))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {user_tags} does not exist or empty")}static validateDTO(userDTO){const dtoValidator={blob_id(v){const{blob_id}=v,result=blob_id||"";return result&&result.length&&result.length>=0||!0},created_at(v){const{created_at}=v;return void 0!==created_at},custom_data(v){const{created_at}=v;return void 0!==created_at},email(v){const{email}=v;return void 0!==email},full_name(v){const{full_name}=v;return void 0!==full_name},id(v){const{id}=v;return void 0!==id},last_request_at(v){const{last_request_at}=v;return void 0!==last_request_at},login(v){const{login}=v;return void 0!==login},name(v){const{name}=v;return void 0!==name},updated_at(v){const{updated_at}=v;return void 0!==updated_at},user_tags(v){const{user_tags}=v;return void 0!==user_tags}};if(!dtoValidator.blob_id(userDTO))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {blob_id} does not exists or empty in DTO");if(!dtoValidator.created_at(userDTO))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {created_at} does not exist or empty in DTO");if(!dtoValidator.custom_data(userDTO))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {custom_data} does not exist or empty in DTO");if(!dtoValidator.email(userDTO))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {email} does not exist or empty in DTO");if(!dtoValidator.full_name(userDTO))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {full_name} does not exist or empty in DTO");if(!dtoValidator.id(userDTO))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {id} does not exist or empty in DTO");if(!dtoValidator.last_request_at(userDTO))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {last_request_at} does not exist or empty in DTO");if(!dtoValidator.login(userDTO))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {login} does not exist or empty in DTO");if(!dtoValidator.name(userDTO))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {name} does not exist or empty in DTO");if(!dtoValidator.updated_at(userDTO))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {updated_at} does not exist or empty in DTO");if(!dtoValidator.user_tags(userDTO))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {user_tags} does not exist or empty in DTO")}static createDefaultUserEntity(){return{created_at:"",custom_data:"",email:"",full_name:"",id:0,last_request_at:"",login:"",updated_at:"",user_tags:"",blob_id:"",photo:""}}}class LocalDialogDTO{constructor(){this.id="",this.type=0,this.ownerId="",this.participantId="",this.participantsIds=[],this.updatedAt="",this.lastMessageText="",this.lastMessageDateSent=0,this.lastMessageUserId="",this.unreadMessageCount=0,this.name="",this.photo=""}}class DialogLocalDTOMapper{fromEntity(entity){const dialog=new LocalDialogDTO,dialogEntity=this.defineType(entity);return DialogLocalDTOMapper.validateEntity(dialogEntity),dialog.id=dialogEntity.id,dialog.type=dialogEntity.type,dialog.ownerId=dialogEntity.ownerId,dialog.participantsIds=DialogLocalDTOMapper.getParticipantsIds(dialogEntity),dialog.participantId=DialogLocalDTOMapper.getParticipantId(dialogEntity),dialog.updatedAt=dialogEntity.updatedAt,dialog.lastMessageText=dialogEntity.lastMessage.text,dialog.lastMessageUserId=dialogEntity.lastMessage.userId.toString(),dialog.lastMessageDateSent=dialogEntity.lastMessage.dateSent,dialog.unreadMessageCount=dialogEntity.unreadMessageCount,dialog.name=DialogLocalDTOMapper.getDialogName(dialogEntity),dialog.photo=DialogLocalDTOMapper.getPhoto(dialogEntity),Promise.resolve(dialog)}toEntity(data){const dialog=data;DialogLocalDTOMapper.validateLocalDTO(dialog);let entity=DialogLocalDTOMapper.createDefaultDialogEntity(dialog.ownerId);switch(dialog.type){case DialogType.private:entity=new PrivateDialogEntity({todo:""},dialog.id,dialog.name,{dateSent:dialog.lastMessageDateSent,text:dialog.lastMessageText?dialog.lastMessageText:"",userId:parseInt(dialog.lastMessageUserId,10)},dialog.ownerId,dialog.type,dialog.unreadMessageCount,dialog.updatedAt,parseInt(dialog.participantId,10));break;case DialogType.public:entity=new PublicDialogEntity({todo:""},dialog.id,{dateSent:dialog.lastMessageDateSent,text:dialog.lastMessageText?dialog.lastMessageText:"",userId:parseInt(dialog.lastMessageUserId,10)},dialog.ownerId,dialog.type,dialog.unreadMessageCount,dialog.updatedAt,dialog.name,dialog.photo);break;case DialogType.group:entity=new GroupDialogEntity({todo:""},dialog.id,{dateSent:dialog.lastMessageDateSent,text:dialog.lastMessageText?dialog.lastMessageText:"",userId:parseInt(dialog.lastMessageUserId,10)},dialog.ownerId,dialog.type,dialog.unreadMessageCount,dialog.updatedAt,dialog.participantsIds,dialog.name,dialog.photo);break;default:return Promise.reject(new MapperDTOException("Error. Mapper DTO Unexpected exception .",131,"undefinded type dialog in DTO"))}return Promise.resolve(entity)}defineType(entity){let dialogEntity=entity;switch(dialogEntity.type){case DialogType.private:dialogEntity=entity instanceof PrivateDialogEntity?entity:null;break;case DialogType.public:dialogEntity=entity instanceof PublicDialogEntity?entity:null;break;case DialogType.group:dialogEntity=entity instanceof GroupDialogEntity?entity:null;break;default:dialogEntity=null}if(!dialogEntity)throw new MapperDTOException("Error. Mapper DTO Unexpected exception .",131,"wrong type");return dialogEntity}static getPhoto(dialogEntity){return(dialogEntity instanceof GroupDialogEntity||dialogEntity instanceof PublicDialogEntity)&&dialogEntity.photo||""}static getDialogName(dialogEntity){return dialogEntity instanceof GroupDialogEntity||dialogEntity instanceof PublicDialogEntity||dialogEntity instanceof PrivateDialogEntity?dialogEntity.name:""}static getParticipantId(dialogEntity){return dialogEntity instanceof PrivateDialogEntity?dialogEntity.participantId.toString():""}static getParticipantsIds(dialogEntity){return dialogEntity instanceof GroupDialogEntity?dialogEntity.participantIds:[]}static validateEntity(dialogEntity){return dialogEntity instanceof PrivateDialogEntity?DialogLocalDTOMapper.validateIsPrivateDialogCorrect(dialogEntity):dialogEntity instanceof PublicDialogEntity?DialogLocalDTOMapper.validateIsPublicDialogCorrect(dialogEntity):dialogEntity instanceof GroupDialogEntity?DialogLocalDTOMapper.validateIsGroupDialogCorrect(dialogEntity):Promise.resolve()}static validateIsPrivateDialogCorrect(dialogEntity){const privateDialogEntityValidator={name(v){const{name}=v;return null!=name&&name.length>0},customData(v){const{customData}=v;return void 0!==customData&&void 0!==customData.todo},id(v){const{id}=v;return null!=id},lastMessage(v){const{lastMessage}=v;return null!=lastMessage&&void 0!==lastMessage.dateSent&&void 0!==lastMessage.text&&void 0!==lastMessage.userId},ownerId(v){const{ownerId}=v;return null!=ownerId},participantId(v){const{participantId}=v;return null!=participantId},type(v){const{type}=v;return null!=type},unreadMessageCount(v){const{unreadMessageCount}=v;return null!=unreadMessageCount},updatedAt(v){const{updatedAt}=v;return null!=updatedAt}};if(!privateDialogEntityValidator.id(dialogEntity))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {id} does not exist or empty");if(!privateDialogEntityValidator.name(dialogEntity))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {name} does not exist or empty");if(!privateDialogEntityValidator.customData(dialogEntity))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {customData} does not exist or empty");if(!privateDialogEntityValidator.lastMessage(dialogEntity))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {lastMessage} does not exist or empty");if(!privateDialogEntityValidator.ownerId(dialogEntity))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {ownerId} does not exist or empty");if(!privateDialogEntityValidator.participantId(dialogEntity))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {participantId} does not exist or empty");if(!privateDialogEntityValidator.type(dialogEntity))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {type} does not exist or empty");if(!privateDialogEntityValidator.unreadMessageCount(dialogEntity))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {unreadMessageCount} does not exist or empty");if(!privateDialogEntityValidator.updatedAt(dialogEntity))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {updatedAt} does not exist or empty")}static validateIsPublicDialogCorrect(dialogEntity){const publicDialogEntityValidator={customData(v){const{customData}=v;return void 0!==customData&&void 0!==customData.todo},id(v){const{id}=v;return null!=id},lastMessage(v){const{lastMessage}=v;return null!=lastMessage&&void 0!==lastMessage.dateSent&&void 0!==lastMessage.text&&void 0!==lastMessage.userId},ownerId(v){const{ownerId}=v;return null!=ownerId},type(v){const{type}=v;return null!=type},unreadMessageCount(v){const{unreadMessageCount}=v;return null!=unreadMessageCount},updatedAt(v){const{updatedAt}=v;return null!=updatedAt},name(v){const{name}=v;return null!=name&&name.length>0},photo(v){const{photo}=v;return null!=photo}};if(!publicDialogEntityValidator.id(dialogEntity))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {id} does not exist or empty");if(!publicDialogEntityValidator.customData(dialogEntity))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {customData} does not exist or empty");if(!publicDialogEntityValidator.lastMessage(dialogEntity))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {lastMessage} does not exist or empty");if(!publicDialogEntityValidator.ownerId(dialogEntity))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {ownerId} does not exist or empty");if(!publicDialogEntityValidator.type(dialogEntity))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {type} does not exist or empty");if(!publicDialogEntityValidator.unreadMessageCount(dialogEntity))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {unreadMessageCount} does not exist or empty");if(!publicDialogEntityValidator.updatedAt(dialogEntity))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {updatedAt} does not exist or empty");if(!publicDialogEntityValidator.name(dialogEntity))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {name} does not exist or empty");if(!publicDialogEntityValidator.photo(dialogEntity))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {photo} does not exist or empty")}static validateIsGroupDialogCorrect(dialogEntity){const groupDialogEntityValidator={customData(v){const{customData}=v;return void 0!==customData&&void 0!==customData.todo},id(v){const{id}=v;return null!=id},lastMessage(v){const{lastMessage}=v;return null!=lastMessage&&void 0!==lastMessage.dateSent&&void 0!==lastMessage.text&&void 0!==lastMessage.userId},ownerId(v){const{ownerId}=v;return null!=ownerId},type(v){const{type}=v;return null!=type},unreadMessageCount(v){const{unreadMessageCount}=v;return null!=unreadMessageCount},updatedAt(v){const{updatedAt}=v;return null!=updatedAt},name(v){const{name}=v;return null!=name},photo(v){const{photo}=v;return null!=photo},participantIds(v){const{participantIds}=v;return null!=participantIds}};if(!groupDialogEntityValidator.id(dialogEntity))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {id} does not exist or empty");if(!groupDialogEntityValidator.customData(dialogEntity))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {customData} does not exist or empty");if(!groupDialogEntityValidator.lastMessage(dialogEntity))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {lastMessage} does not exist or empty");if(!groupDialogEntityValidator.ownerId(dialogEntity))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {ownerId} does not exist or empty");if(!groupDialogEntityValidator.type(dialogEntity))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {type} does not exist or empty");if(!groupDialogEntityValidator.unreadMessageCount(dialogEntity))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {unreadMessageCount} does not exist or empty");if(!groupDialogEntityValidator.updatedAt(dialogEntity))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {updatedAt} does not exist or empty");if(!groupDialogEntityValidator.name(dialogEntity))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {name} does not exist or empty");if(!groupDialogEntityValidator.photo(dialogEntity))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {photo} does not exist or empty");if(!groupDialogEntityValidator.participantIds(dialogEntity))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {participantIds} does not exist or empty")}static validateLocalDTO(data){const dtoValidator={id(v){const{id}=v;return void 0!==id},lastMessageDateSent(v){const{lastMessageDateSent}=v;return void 0!==lastMessageDateSent},lastMessageText(v){const{lastMessageText}=v;return void 0!==lastMessageText},lastMessageUserId(v){const{lastMessageUserId}=v;return void 0!==lastMessageUserId},name(v){const{name}=v;return void 0!==name},ownerId(v){const{ownerId}=v;return void 0!==ownerId},participantId(v){const{participantId}=v;return void 0!==participantId},participantsIds(v){const{participantsIds}=v;return void 0!==participantsIds},photo(v){const{photo}=v;return void 0!==photo},type(v){const{type}=v;return void 0!==type},unreadMessageCount(v){const{unreadMessageCount}=v;return void 0!==unreadMessageCount},updatedAt(v){const{updatedAt}=v;return void 0!==updatedAt}};if(!dtoValidator.id(data))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {id} does not exist or empty in DTO");if(!dtoValidator.lastMessageDateSent(data))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {lastMessageDateSent} does not exist or empty in DTO");if(!dtoValidator.lastMessageText(data))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {lastMessageText} does not exist or empty in DTO");if(!dtoValidator.name(data))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {name} does not exist or empty in DTO");if(!dtoValidator.ownerId(data))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {ownerId} does not exist or empty in DTO");if(!dtoValidator.participantId(data))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {participantId} does not exist or empty in DTO");if(!dtoValidator.participantsIds(data))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {participantsIds} does not exist or empty in DTO");if(!dtoValidator.photo(data))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {photo} does not exist or empty in DTO");if(!dtoValidator.type(data))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {type} does not exist or empty in DTO");if(!dtoValidator.unreadMessageCount(data))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {unreadMessageCount} does not exist or empty in DTO");if(!dtoValidator.updatedAt(data))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {updatedAt} does not exist or empty in DTO")}static createDefaultDialogEntity(owner_id){return{customData:{todo:""},lastMessage:{dateSent:0,text:"",userId:0},ownerId:owner_id,type:DialogType.public,unreadMessageCount:0,updatedAt:"",id:"",name:"_"}}}class LocalMessageDTO{constructor(){this.id="",this.dialogId="",this.message="",this.created_at="",this.date_sent=0,this.delivered_ids=new Array,this.read_ids=new Array,this.recipient_id=0,this.read=0,this.sender_id=0,this.updated_at="",this.attachments=[]}}class MessageLocalDTOMapper{fromEntity(entity){const messageDTO=new LocalMessageDTO,messageEntity=entity;if(null==messageEntity)throw new MapperDTOException("Error. Mapper DTO Unexpected exception .",131,"entity is null or undefined");return MessageLocalDTOMapper.validateEntity(messageEntity),messageDTO.id=messageEntity.id.toString(),messageDTO.dialogId=messageEntity.dialogId,messageDTO.created_at=messageEntity.created_at,messageDTO.date_sent=messageEntity.date_sent,messageDTO.delivered_ids=messageEntity.delivered_ids,messageDTO.message=messageEntity.message,messageDTO.read_ids=messageEntity.read_ids,messageDTO.read=messageEntity.read?1:0,null!==messageEntity.recipient_id&&(messageDTO.recipient_id=messageEntity.recipient_id),messageDTO.notification_type=messageEntity.notification_type,messageDTO.dialog_type=messageEntity.dialogType,messageDTO.sender_id=messageEntity.sender_id,messageDTO.updated_at=messageEntity.updated_at,messageEntity.attachments&&messageEntity.attachments.length&&messageEntity.attachments.forEach((att=>{const newAtt={...att};messageDTO.attachments.push(newAtt)})),Promise.resolve(messageDTO)}toEntity(data){const messageDTO=data;MessageLocalDTOMapper.validateLocalDTO(messageDTO);const messageEntity=MessageLocalDTOMapper.createDefaultMessageEntity();return messageEntity.id=messageDTO.id,messageEntity.dialogId=messageDTO.dialogId,messageEntity.created_at=messageDTO.created_at,messageEntity.date_sent=messageDTO.date_sent,messageEntity.delivered_ids=messageDTO.delivered_ids,messageEntity.message=messageDTO.message,messageEntity.read_ids=messageDTO.read_ids,messageEntity.read=messageDTO.read,messageEntity.recipient_id=messageDTO.recipient_id,messageEntity.sender_id=messageDTO.sender_id,messageEntity.updated_at=messageDTO.updated_at,messageDTO.attachments&&messageDTO.attachments.length&&(messageEntity.attachments=[],messageDTO.attachments.forEach((att=>{const newAtt={...att};messageEntity.attachments?.push(newAtt)}))),messageEntity.notification_type=messageDTO?.notification_type?messageDTO?.notification_type:"",messageEntity.markable=messageDTO?.markable?messageDTO?.markable:"",Promise.resolve(messageEntity)}static validateEntity(messageEntity){const messageEntityValidator={created_at(v){const{created_at}=v;return null!=created_at&&created_at.length>0},date_sent(v){const{date_sent}=v;return null!=date_sent},delivered_ids(v){const{delivered_ids}=v;return null!=delivered_ids},dialogId(v){const{dialogId}=v;return null!=dialogId&&dialogId.length>0},id(v){const{id}=v;return null!=id},message(v){const{message}=v;return null!=message&&message.length>0},read(v){const{read}=v;return null!=read},read_ids(v){const{read_ids}=v;return null!=read_ids},recipient_id(v){const{recipient_id}=v;return null!=recipient_id},sender_id(v){const{sender_id}=v;return null!=sender_id},updated_at(v){const{updated_at}=v;return null!=updated_at&&updated_at.length>0}};if(!messageEntityValidator.created_at(messageEntity))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {created_at} does not exist or empty");if(!messageEntityValidator.date_sent(messageEntity))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {date_sent} does not exist or empty");if(!messageEntityValidator.delivered_ids(messageEntity))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {delivered_ids} does not exist or empty");if(!messageEntityValidator.dialogId(messageEntity))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {dialogId} does not exist or empty");if(!messageEntityValidator.id(messageEntity))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {id} does not exist or empty");if(!messageEntityValidator.message(messageEntity))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {message} does not exist or empty");if(!messageEntityValidator.read(messageEntity))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {read} does not exist or empty");if(!messageEntityValidator.read_ids(messageEntity))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {read_ids} does not exist or empty");if(!messageEntityValidator.recipient_id(messageEntity))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {recipient_id} does not exist or empty");if(!messageEntityValidator.sender_id(messageEntity))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {sender_id} does not exist or empty");if(!messageEntityValidator.updated_at(messageEntity))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {updated_at} does not exist or empty");return Promise.resolve()}static validateLocalDTO(messageDTO){const dtoValidator={created_at(v){const{created_at}=v;return null!=created_at&&created_at.length>0},date_sent(v){const{date_sent}=v;return null!=date_sent},delivered_ids(v){const{delivered_ids}=v;return null!=delivered_ids},dialogId(v){const{dialogId}=v;return null!=dialogId&&dialogId.length>0},id(v){const{id}=v;return null!=id},message(v){const{message}=v;return null!=message&&message.length>0},read(v){const{read}=v;return null!=read},read_ids(v){const{read_ids}=v;return null!=read_ids},recipient_id(v){const{recipient_id}=v;return null!=recipient_id},sender_id(v){const{sender_id}=v;return null!=sender_id},updated_at(v){const{updated_at}=v;return null!=updated_at&&updated_at.length>0},attachments(v){const{attachments}=v;return null!=attachments}};if(!dtoValidator.created_at(messageDTO))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {created_at} does not exist or empty");if(!dtoValidator.date_sent(messageDTO))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {date_sent} does not exist or empty");if(!dtoValidator.delivered_ids(messageDTO))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {delivered_ids} does not exist or empty");if(!dtoValidator.dialogId(messageDTO))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {dialogId} does not exist or empty");if(!dtoValidator.id(messageDTO))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {id} does not exist or empty");if(!dtoValidator.message(messageDTO))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {message} does not exist or empty");if(!dtoValidator.read(messageDTO))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {read} does not exist or empty");if(!dtoValidator.read_ids(messageDTO))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {read_ids} does not exist or empty");if(!dtoValidator.recipient_id(messageDTO))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {recipient_id} does not exist or empty");if(!dtoValidator.sender_id(messageDTO))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {sender_id} does not exist or empty");if(!dtoValidator.updated_at(messageDTO))throw new MapperDTOException(INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,132,"field {updated_at} does not exist or empty")}static createDefaultMessageEntity(){return{id:"",dialogId:"",created_at:"",date_sent:0,delivered_ids:Array(),message:"",read_ids:Array(),read:0,recipient_id:0,sender_id:0,updated_at:""}}}class Stubs{static createMessageEntityWithParams(id,dialogId,message,created_at,date_sent,updated_at,delivered_ids,read_ids,read,sender_id,recipient_id,attachments,notification_type,dialog_type){return{created_at,date_sent,delivered_ids,dialogId,id,message,read,read_ids,recipient_id,sender_id,updated_at,attachments,notification_type,dialogType:dialog_type}}static createFileEntityWithDefaultValues(){return{id:"0",uid:"",url:"",name:"",size:0,type:FileType.image}}static async initializeWithUsersMockData(ds){console.log("local datasource sync status: ",ds.isLocalSynced());const userEntities=Stubs.createUsersForTest(),userEntityToDTOMapper=new UserRemoteDTOMapper;for(const entity of userEntities)try{const userDTO=await userEntityToDTOMapper.fromEntity(entity);await ds.saveUser(userDTO)}catch(e){console.log("EXCEPTION UserEntity perform: ",JSON.stringify(entity)),console.log(e.message),console.log(e._description)}}static async initializeWithDialogsMockData(ds){console.log("local datasource sync status: ",ds.isLocalSynced());const dialogsDTOtoEntityMapper=new DialogLocalDTOMapper,dialogsEntities=Stubs.createDialogsForTest();for(const item of dialogsEntities){const dialogDTO=await dialogsDTOtoEntityMapper.fromEntity(item);ds.saveDialog(dialogDTO).then((_=>{console.log(`added mock item ${JSON.stringify(dialogDTO)}`)})).catch((e=>{console.log("EXCEPTION:",e.message)}))}}static async initializeWithMessagesMockData(ds){console.log("call initializeWithMessagesMockData");const initFirstPageMessages=new Array,photoAttachments=[{id:"10231",type:FileType.image,uid:"10231",url:"https://files.readme.io/00b5563-small-qb-logo-docs-white-9px.png",file:{id:"10231",uid:"",type:FileType.image,url:"https://files.readme.io/00b5563-small-qb-logo-docs-white-9px.png"}}],videoAttachments=[{id:"10232",type:FileType.video,uid:"10232",url:"https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/WhatCarCanYouGetForAGrand.mp4",file:{id:"10232",uid:"",type:FileType.video,url:"https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/WhatCarCanYouGetForAGrand.mp4"}}],textAttachments=[{id:"10233",type:FileType.text,uid:"10233",url:"https://www.learningcontainer.com/wp-content/uploads/2020/04/sample-text-file.txt",file:{id:"10233",uid:"",type:FileType.text,url:"https://www.learningcontainer.com/wp-content/uploads/2020/04/sample-text-file.txt"},name:"textFile.txt"}];for(let i=0;i<47;i+=1){const newMessageEntity=Stubs.createMessageEntityWithParams(i.toString(),"103",i%9==0?`${i+1} very very very long test text message for dialog 103. The text message with huge text: bla-bla-bla long long long long, bla-bla-bla, very very very long test text message for dialog 103. very very very long test text message for dialog 103. etc`:`${i+1} test message for dialog 103`,"31.03.2023",Date.now(),"31.03.2023",[134885168,12,13],[134885168,12,13],1,i%2==0?134885168:12,i%2==0?12:134885168,4===i?photoAttachments:5===i?videoAttachments:void 0,i%7==0?"3":void 0);initFirstPageMessages.push(newMessageEntity)}for(let i=47;i<100;i+=1){const newMessageEntity=Stubs.createMessageEntityWithParams(i.toString(),"103",`${i+1} test message for dialog 103`,"31.03.2023",Date.now(),"31.03.2023",[134885168,12,13],[134885168,12,13],1,134885168,12,textAttachments);initFirstPageMessages.push(newMessageEntity)}const messageEntityToDTOMapper=new MessageLocalDTOMapper;for(const entity of initFirstPageMessages)try{const messageDTO=await messageEntityToDTOMapper.fromEntity(entity);await ds.saveMessage(messageDTO)}catch(e){console.log("EXCEPTION MessageEntity perform: ",JSON.stringify(entity)),console.log(e.message),console.log(e._description)}}static initializeMessagesWithMockData(){const initFirstPageMessages=new Array,photoAttachments=[{id:"10231",type:FileType.image,uid:"10231",url:"https://cdn-ikpjoif.nitrocdn.com/WZsqFPiehrtwFaaeJNQAQZrkRMgaTuyL/assets/images/optimized/rev-83f47e6/quickblox.com/wp-content/themes/QuickbloxTheme2021/img/chat-api-feature-rich-sdk.jpg",file:{id:"10231",uid:"",type:FileType.image,url:"https://cdn-ikpjoif.nitrocdn.com/WZsqFPiehrtwFaaeJNQAQZrkRMgaTuyL/assets/images/optimized/rev-83f47e6/quickblox.com/wp-content/themes/QuickbloxTheme2021/img/chat-api-feature-rich-sdk.jpg"}}],videoAttachments=[{id:"10232",type:FileType.video,uid:"10232",url:"https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/WhatCarCanYouGetForAGrand.mp4",file:{id:"10232",uid:"",type:FileType.video,url:"https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/WhatCarCanYouGetForAGrand.mp4"}}],audioAttachments=[{id:"10233",type:FileType.audio,uid:"10233",url:"https://cdn.freesound.org/previews/681/681715_1648170-lq.mp3",file:{id:"10233",uid:"",type:FileType.audio,url:"https://cdn.freesound.org/previews/681/681715_1648170-lq.mp3"}}],textAttachments=[{id:"10233",type:FileType.text,uid:"10233",url:"https://www.learningcontainer.com/wp-content/uploads/2020/04/sample-text-file.txt",file:{id:"10233",uid:"",type:FileType.text,url:"https://www.learningcontainer.com/wp-content/uploads/2020/04/sample-text-file.txt"},name:"textFile.txt"}],createAttachment=i=>{switch(i){case 1:return photoAttachments;case 2:return videoAttachments;case 3:return audioAttachments;case 4:return textAttachments;default:return[]}};for(let i=1;i<=4;i+=1){const newMessageEntity=Stubs.createMessageEntityWithParams(i.toString(),"103",i%3==0?`${i+1} very very very long test text message for dialog 103. The text message with huge text: bla-bla-bla long long long long, bla-bla-bla, very very very long test text message for dialog 103. very very very long test text message for dialog 103. etc`:`${i+1} test message for dialog 103`,"31.03.2023",Date.now(),"31.03.2023",[134885168,12,13],[134885168,12,13],1,i%2==0?134885168:12,i%2==0?12:134885168,createAttachment(i),i%7==0?"3":void 0);initFirstPageMessages.push(newMessageEntity)}return initFirstPageMessages}static createDialogEntityByTypeWithEmptyValues(dialogType){let dialogEntity;switch(dialogType){case DialogType.private:dialogEntity=new PrivateDialogEntity({todo:""},"","_",{dateSent:0,text:"",userId:0},"",DialogType.private,0,"",0);break;case DialogType.public:dialogEntity=new PublicDialogEntity({todo:""},"",{dateSent:0,text:"",userId:0},"",DialogType.public,0,"","","");break;case DialogType.group:dialogEntity=new GroupDialogEntity({todo:""},"",{dateSent:0,text:"",userId:0},"",DialogType.group,0,"",[],"","");break;default:dialogEntity={customData:{todo:""},id:"",name:"_",lastMessage:{dateSent:0,text:"",userId:0},ownerId:"",type:-1,unreadMessageCount:0,updatedAt:""}}return dialogEntity}static createDialogEntityWithError(){return Stubs.createDialogEntityByTypeWithEmptyValues(-1)}static createDialogEntityByTypeWithDefaultValues(dialogType){let dialogEntity;switch(dialogType){case DialogType.private:dialogEntity=new PrivateDialogEntity({todo:""},"111","_111",{dateSent:0,text:"text test",userId:777},"999",DialogType.private,555,"02.02.2023",333);break;case DialogType.public:dialogEntity=new PublicDialogEntity({todo:""},"111",{dateSent:0,text:"text test",userId:777},"999",DialogType.public,555,"02.02.2023","test public dialog","no photo public dialog");break;case DialogType.group:dialogEntity=new GroupDialogEntity({todo:""},"111",{dateSent:0,text:"text test",userId:777},"999",DialogType.group,555,"02.02.2023",[],"test group dialog","no photo group dialog");break;default:dialogEntity={customData:{todo:""},id:"111",name:"_111",lastMessage:{dateSent:0,text:"text test",userId:777},ownerId:"999",type:-1,unreadMessageCount:555,updatedAt:"03.02.2023"}}return dialogEntity}static createDialogDTOByTypeWithDefaultValues(dialogType){const dto=new RemoteDialogDTO;switch(dialogType){case DialogType.private:dto.id="111",dto.lastMessageDateSent=0,dto.lastMessageText="text test",dto.lastMessageUserId=777,dto.ownerId="999",dto.type=dialogType,dto.unreadMessageCount=555,dto.updatedAt="02.02.2023",dto.participantId="333";break;case DialogType.public:dto.id="111",dto.lastMessageDateSent=0,dto.lastMessageText="text test",dto.lastMessageUserId=777,dto.ownerId="999",dto.type=dialogType,dto.unreadMessageCount=555,dto.updatedAt="02.02.2023",dto.name="test public dialog",dto.photo="no photo public dialog";break;case DialogType.group:dto.id="111",dto.lastMessageDateSent=0,dto.lastMessageText="text test",dto.lastMessageUserId=777,dto.ownerId="999",dto.type=dialogType,dto.unreadMessageCount=555,dto.updatedAt="02.02.2023",dto.participantsIds=[],dto.name="test group dialog",dto.photo="no photo group dialog"}return dto}static createArrayDialogDTOByTypeWithDefaultValues(count,dialogType){const arrayDialogs=[];for(let i=0;i<count;i+=1){Stubs.createDialogDTOByTypeWithDefaultValues(dialogType).id=(1e3+i).toString(),arrayDialogs.push()}return arrayDialogs}static createArrayPublicDialogDTO(){console.log("call createArrayPublicDialogDTO");return[{id:"1",name:"Cash Chat 1",ownerId:"1",photo:"",type:DialogType.public,participantId:"",participantsIds:[],lastMessageText:"",lastMessageDateSent:0,lastMessageUserId:0,lastMessageId:"",unreadMessageCount:0,updatedAt:""},{id:"2",name:"Cash Chat 2",ownerId:"2",photo:"",type:DialogType.public,participantId:"",participantsIds:[],lastMessageText:"",lastMessageDateSent:0,lastMessageUserId:0,lastMessageId:"",unreadMessageCount:0,updatedAt:""},{id:"3",name:"Chat 3 from Cash",ownerId:"3",photo:"",type:DialogType.public,participantId:"",participantsIds:[],lastMessageText:"",lastMessageDateSent:0,lastMessageUserId:0,lastMessageId:"",unreadMessageCount:0,updatedAt:""},{id:"4",name:"Chat 4 from Cash",ownerId:"4",photo:"",type:DialogType.public,participantId:"",participantsIds:[],lastMessageText:"",lastMessageDateSent:0,lastMessageUserId:0,lastMessageId:"",unreadMessageCount:0,updatedAt:""},{id:"5",name:"Chat 5 from Cash",ownerId:"5",photo:"",type:DialogType.public,participantId:"",participantsIds:[],lastMessageText:"",lastMessageDateSent:0,lastMessageUserId:0,lastMessageId:"",unreadMessageCount:0,updatedAt:""},{id:"6",name:"Chat 6 from Cash",ownerId:"6",photo:"",type:DialogType.public,participantId:"",participantsIds:[],lastMessageText:"",lastMessageDateSent:0,lastMessageUserId:0,lastMessageId:"",unreadMessageCount:0,updatedAt:""},{id:"7",name:"Chat 7 Lucky Room",ownerId:"7",photo:"",type:DialogType.public,participantId:"",participantsIds:[],lastMessageText:"",lastMessageDateSent:0,lastMessageUserId:0,lastMessageId:"",unreadMessageCount:0,updatedAt:""}]}static createPublicDialogQBWithEmptyValues(){return{_id:"111",created_at:"01.03.2023",last_message:"test message",last_message_date_sent:0,last_message_id:"100",last_message_user_id:112,name:"",occupants_ids:[],new_occupants_ids:[],photo:null,type:DialogType.public,unread_messages_count:0,updated_at:"02.03.2023",user_id:0,xmpp_room_jid:null}}static createPrivateDialogQBWithEmptyValues(){return{_id:"111",created_at:"01.03.2023",last_message:"test message",last_message_date_sent:0,last_message_id:"100",last_message_user_id:112,name:"",occupants_ids:[],new_occupants_ids:[],photo:null,type:DialogType.private,unread_messages_count:0,updated_at:"02.03.2023",user_id:0,xmpp_room_jid:null}}static createGroupDialogQBWithEmptyValues(){return{_id:"111",created_at:"01.03.2023",last_message:"test message",last_message_date_sent:0,last_message_id:"100",last_message_user_id:112,name:"",occupants_ids:[],new_occupants_ids:[],photo:null,type:DialogType.group,unread_messages_count:0,updated_at:"02.03.2023",user_id:0,xmpp_room_jid:null}}static createDialogEntityWithParams(dialogType,id,name,dateSentLastMessage,textLastMessage,userIdLastMessage,ownerId,unreadMessageCount,updatedAt,participantId){let dialogEntity,photo=arguments.length>10&&void 0!==arguments[10]?arguments[10]:"",participantIds=arguments.length>11&&void 0!==arguments[11]?arguments[11]:[];switch(dialogType){case DialogType.private:dialogEntity=new PrivateDialogEntity({todo:""},id,name,{dateSent:dateSentLastMessage,text:textLastMessage,userId:userIdLastMessage},ownerId,DialogType.private,unreadMessageCount,updatedAt,participantId);break;case DialogType.public:dialogEntity=new PublicDialogEntity({todo:""},id,{dateSent:dateSentLastMessage,text:textLastMessage,userId:userIdLastMessage},ownerId,DialogType.public,unreadMessageCount,updatedAt,name,photo);break;case DialogType.group:dialogEntity=new GroupDialogEntity({todo:""},id,{dateSent:dateSentLastMessage,text:textLastMessage,userId:userIdLastMessage},ownerId,DialogType.group,unreadMessageCount,updatedAt,participantIds,name,photo);break;default:dialogEntity={customData:{todo:""},id:"012345",name:"error dialog",lastMessage:{dateSent:0,text:"text test",userId:12345},ownerId:"12345",type:-1,unreadMessageCount:0,updatedAt:"31.03.2023"}}return dialogEntity}static createUserEntityWithParams(id,full_name,email,login,created_at,updated_at,last_request_at){return{id,full_name,email,login,created_at,updated_at,last_request_at,blob_id:arguments.length>9&&void 0!==arguments[9]?arguments[9]:"",photo:arguments.length>10&&void 0!==arguments[10]?arguments[10]:"",custom_data:arguments.length>7&&void 0!==arguments[7]?arguments[7]:null,user_tags:arguments.length>8&&void 0!==arguments[8]?arguments[8]:null}}static createDialogsForTest(){const dialogs=new Array,privateDialog=Stubs.createDialogEntityWithParams(DialogType.private,"101","Stub1 Private Dialog",0,"Test text message for private dialog",11,"11",1,"31.03.20223",12);dialogs.push(privateDialog);const publicDialog=Stubs.createDialogEntityWithParams(DialogType.public,"102","Stub2 Public Dialog",0,"Test text message for public dialog",12,"12",1,"31.03.20223",12,"no photo",[11,12,13]);dialogs.push(publicDialog);const groupDialog=Stubs.createDialogEntityWithParams(DialogType.group,"103","Stub 3 Group Dialog",0,"Test text message for group dialog",13,"13",1,"31.03.20223",13,"no photo",[11,12,13]);return dialogs.push(groupDialog),dialogs}static createUsersForTest(){const users=new Array,user11=Stubs.createUserEntityWithParams(11,"fl_user11","fl_user11@q.ua","login_user11","31.03.2023","31.03.2023",""),user12=Stubs.createUserEntityWithParams(12,"fl_user12","fl_user12@q.ua","login_user12","31.03.2023","31.03.2023",""),user13=Stubs.createUserEntityWithParams(13,"fl_user13","fl_user13@q.ua","login_user13","31.03.2023","31.03.2023","");return users.push(user11),users.push(user12),users.push(user13),users}static createMessagesForTest(){const messages=new Array,message102_1=Stubs.createMessageEntityWithParams("1021","102","1 test message for dialog 102","31.03.2023",Date.now(),"31.03.2023",[11,12,13],[11,12,13],1,11,12),message102_2=Stubs.createMessageEntityWithParams("1022","102","2 test message for dialog 102","31.03.2023",Date.now(),"31.03.2023",[11,12,13],[11,12,13],1,11,12),photoAttachments=[{id:"10231",type:FileType.image,uid:"10231",url:"https://files.readme.io/00b5563-small-qb-logo-docs-white-9px.png",file:{id:"10231",uid:"",type:FileType.image,url:"https://files.readme.io/00b5563-small-qb-logo-docs-white-9px.png"}}],message102_3=Stubs.createMessageEntityWithParams("1023","102","3 test message for dialog 102","31.03.2023",Date.now(),"31.03.2023",[11,12,13],[11,12,13],1,11,12,photoAttachments),videoAttachments=[{id:"10232",type:FileType.video,uid:"10232",url:"https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/WhatCarCanYouGetForAGrand.mp4",file:{id:"10232",uid:"",type:FileType.video,url:"https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/WhatCarCanYouGetForAGrand.mp4"}}],message102_4=Stubs.createMessageEntityWithParams("1024","102","3 test message for dialog 102","31.03.2023",Date.now(),"31.03.2023",[11,12,13],[11,12,13],1,11,12,videoAttachments),audioAttachments=[{id:"10233",type:FileType.audio,uid:"10233",url:"https://cdn.freesound.org/previews/681/681715_1648170-lq.mp3",file:{id:"10233",uid:"",type:FileType.audio,url:"https://cdn.freesound.org/previews/681/681715_1648170-lq.mp3"}}],message102_5=Stubs.createMessageEntityWithParams("1025","102","3 test message for dialog 102","31.03.2023",Date.now(),"31.03.2023",[11,12,13],[11,12,13],1,11,12,audioAttachments),textAttachments=[{id:"10233",type:FileType.text,uid:"10233",url:"https://www.learningcontainer.com/wp-content/uploads/2020/04/sample-text-file.txt",file:{id:"10233",uid:"",type:FileType.text,url:"https://www.learningcontainer.com/wp-content/uploads/2020/04/sample-text-file.txt"}}],message102_6=Stubs.createMessageEntityWithParams("1026","102","3 test message for dialog 102","31.03.2023",Date.now(),"31.03.2023",[11,12,13],[11,12,13],1,11,12,textAttachments);messages.push(message102_1),messages.push(message102_2),messages.push(message102_3),messages.push(message102_4),messages.push(message102_5),messages.push(message102_6);const message112_1=Stubs.createMessageEntityWithParams("1121","112","1 test message for dialog 112","31.03.2023",Date.now(),"31.03.2023",[11,12,13],[11,12,13],1,11,12),message112_2=Stubs.createMessageEntityWithParams("1122","112","2 test message for dialog 112","31.03.2023",Date.now(),"31.03.2023",[11,12,13],[11,12,13],1,11,12),message112_3=Stubs.createMessageEntityWithParams("1123","112","3 test message for dialog 112","31.03.2023",Date.now(),"31.03.2023",[11,12,13],[11,12,13],1,11,12);messages.push(message112_1),messages.push(message112_2),messages.push(message112_3);const message113_1=Stubs.createMessageEntityWithParams("1131","113","1 test message for dialog 113","31.03.2023",Date.now(),"31.03.2023",[11,12,13],[11,12,13],1,11,12),message113_2=Stubs.createMessageEntityWithParams("1132","113","2 test message for dialog 113","31.03.2023",Date.now(),"31.03.2023",[11,12,13],[11,12,13],1,11,12),message113_3=Stubs.createMessageEntityWithParams("1133","113","3 test message for dialog 113","31.03.2023",Date.now(),"31.03.2023",[11,12,13],[11,12,13],1,11,12);return messages.push(message113_1),messages.push(message113_2),messages.push(message113_3),messages}}const MessageInput_stories={title:"@quickblox-react-ui-kit/Presentation/ui-components/MessageInput",component:ui_components_MessageInput_MessageInput,tags:["autodocs"],parameters:{layout:"centered"},argTypes:{rephrase:{control:!1},value:{control:"text",description:"Input value"},onChange:{action:"changed",description:"Change event handler"},onSend:{action:"sent",description:"Send event handler"},enableVoice:{control:"boolean",description:"Enable voice message option"},onVoice:{action:"voice activated",description:"Voice event handler"},disableAttachment:{control:"boolean",description:"Disable attachment option"},onAttachment:{action:"attachment added",description:"Attachment event handler"},loading:{control:"boolean",description:"Enable loading state"},previewMessage:{description:"Last message by type",control:"select",options:["Text","Image","Video","Audio","None"],mapping:{Text:react.createElement(MessageInput_ReplyMessagePreview_ReplyMessagePreview,{messages:[Stubs.initializeMessagesWithMockData()[3]],userNameSentMessage:"",onClose:()=>{console.log("closed")}}),Image:react.createElement(MessageInput_ReplyMessagePreview_ReplyMessagePreview,{messages:[Stubs.initializeMessagesWithMockData()[0]],userNameSentMessage:"",onClose:()=>{console.log("closed")}}),Video:react.createElement(MessageInput_ReplyMessagePreview_ReplyMessagePreview,{messages:[Stubs.initializeMessagesWithMockData()[1]],userNameSentMessage:"",onClose:()=>{console.log("closed")}}),Audio:react.createElement(MessageInput_ReplyMessagePreview_ReplyMessagePreview,{messages:[Stubs.initializeMessagesWithMockData()[2]],userNameSentMessage:"",onClose:()=>{console.log("closed")}}),None:void 0}},className:{control:"text",description:"CSS class"}}},MessageInputDefault={name:"MessageInput Default",args:{value:"",enableVoice:!0,disableAttachment:!1,loading:!1}},MessageInputWithVoiceMessage={name:"MessageInput With Voice Message",args:{...MessageInputDefault.args,enableVoice:!0,onVoice:()=>{}}},MessageInputWithPreview={name:"MessageInput With Preview",args:{...MessageInputDefault.args,previewMessage:react.createElement(MessageInput_ReplyMessagePreview_ReplyMessagePreview,{messages:[Stubs.initializeMessagesWithMockData()[0]],userNameSentMessage:"",onClose:()=>{console.log("closed")}})}},MessageInputLoadingState={name:"MessageInput Loading State",args:{...MessageInputDefault.args,loading:!0}},__namedExportsOrder=["MessageInputDefault","MessageInputWithVoiceMessage","MessageInputWithPreview","MessageInputLoadingState"];MessageInputDefault.parameters={...MessageInputDefault.parameters,docs:{...MessageInputDefault.parameters?.docs,source:{originalSource:"{\n name: 'MessageInput Default',\n args: {\n value: '',\n enableVoice: true,\n disableAttachment: false,\n loading: false\n }\n}",...MessageInputDefault.parameters?.docs?.source}}},MessageInputWithVoiceMessage.parameters={...MessageInputWithVoiceMessage.parameters,docs:{...MessageInputWithVoiceMessage.parameters?.docs,source:{originalSource:"{\n name: 'MessageInput With Voice Message',\n args: {\n ...MessageInputDefault.args,\n enableVoice: true,\n onVoice: () => {}\n }\n}",...MessageInputWithVoiceMessage.parameters?.docs?.source}}},MessageInputWithPreview.parameters={...MessageInputWithPreview.parameters,docs:{...MessageInputWithPreview.parameters?.docs,source:{originalSource:"{\n name: 'MessageInput With Preview',\n args: {\n ...MessageInputDefault.args,\n previewMessage: <ReplyMessagePreview messages={[Stubs.initializeMessagesWithMockData()[0]]} userNameSentMessage=\"\" onClose={() => {\n console.log('closed');\n }} />\n }\n}",...MessageInputWithPreview.parameters?.docs?.source}}},MessageInputLoadingState.parameters={...MessageInputLoadingState.parameters,docs:{...MessageInputLoadingState.parameters?.docs,source:{originalSource:"{\n name: 'MessageInput Loading State',\n args: {\n ...MessageInputDefault.args,\n loading: true\n }\n}",...MessageInputLoadingState.parameters?.docs?.source}}}}}]);
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see Presentation-ui-components-SettingsItem-SettingsItem-stories.d74853ab.iframe.bundle.js.LICENSE.txt */
|
|
2
|
-
(self.webpackChunkquickblox_react_ui_kit=self.webpackChunkquickblox_react_ui_kit||[]).push([[853],{"./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/SettingsItem/SettingsItem.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,'.settings-item__body{display:flex;justify-content:space-between;align-items:center;width:100%;height:56px;gap:16px;padding:16px}.settings-item__left-section{display:flex;align-items:center;cursor:pointer;font-family:"Roboto";font-weight:400;font-size:16px;line-height:24px;letter-spacing:.15px}.settings-item__title{margin-left:16px}.settings-item__right-section{display:flex;align-items:center;gap:4px}.settings-item__arrow{width:24px;height:24px;fill:var(--secondary-elements);cursor:pointer;transform:rotate(270deg);transition:transform .3s ease-in-out}.settings-item__arrow--opened{transform:rotate(360deg)}.settings-item__children{height:0;overflow:auto;transition:height .2s ease-in}.settings-item__children--opened{height:100%}.settings-item__icon{width:24px;height:24px}.settings-item__icon svg{width:24px;height:24px}.settings-item,.settings-item *{box-sizing:border-box}',"",{version:3,sources:["webpack://./src/Presentation/ui-components/SettingsItem/SettingsItem.scss","webpack://./src/Presentation/themes/styles/_mixins.scss"],names:[],mappings:"AAIE,qBACE,YAAA,CACA,6BAAA,CACA,kBAAA,CAEA,UAAA,CACA,WAAA,CACA,QAAA,CAEA,YAAA,CAGF,6BACE,YAAA,CACA,kBAAA,CACA,cAAA,CAEA,oBAAA,CACA,eAAA,CACA,cAAA,CACA,gBAAA,CACA,oBAAA,CAGF,sBACE,gBAAA,CAGF,8BACE,YAAA,CACA,kBAAA,CACA,OAAA,CAGF,sBACE,UAAA,CACA,WAAA,CACA,8BAAA,CACA,cAAA,CACA,wBAAA,CACA,oCAAA,CAEA,8BACE,wBAAA,CAIJ,yBACE,QAAA,CACA,aAAA,CAEA,6BAAA,CAEA,iCACE,WAAA,CAIJ,qBACE,UAAA,CACA,WAAA,CAEA,yBACE,UAAA,CACA,WAAA,CCnEJ,gCAEE,qBAAA",sourcesContent:["@use '../../themes/styles/mixins' as *;\n\n.settings-item {\n\n &__body {\n display: flex;\n justify-content: space-between;\n align-items: center;\n\n width: 100%;\n height: 56px;\n gap: 16px;\n\n padding: 16px;\n }\n\n &__left-section {\n display: flex;\n align-items: center;\n cursor: pointer;\n\n font-family: 'Roboto';\n font-weight: 400;\n font-size: 16px;\n line-height: 24px;\n letter-spacing: 0.15px;\n }\n\n &__title {\n margin-left: 16px;\n }\n\n &__right-section {\n display: flex;\n align-items: center;\n gap: 4px;\n }\n\n &__arrow {\n width: 24px;\n height: 24px;\n fill: var(--secondary-elements);\n cursor: pointer;\n transform: rotate(270deg);\n transition: transform 0.3s ease-in-out;\n\n &--opened {\n transform: rotate(360deg);\n }\n }\n\n &__children {\n height: 0;\n overflow: auto;\n\n transition: height 0.2s ease-in;\n\n &--opened {\n height: 100%;\n }\n }\n\n &__icon {\n width: 24px;\n height: 24px;\n\n svg {\n width: 24px;\n height: 24px;\n }\n }\n\n @include applyBorderBox;\n}\n","@mixin applyBorderBox {\n &,\n * {\n box-sizing: border-box;\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/SettingsItem/SettingsItem.stories.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{SettingsItemDefault:()=>SettingsItemDefault,SettingsItemMembers:()=>SettingsItemMembers,SettingsItemNotification:()=>SettingsItemNotification,__namedExportsOrder:()=>__namedExportsOrder,default:()=>SettingsItem_stories});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),SettingsItem=__webpack_require__("./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/Presentation/ui-components/SettingsItem/SettingsItem.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()(SettingsItem.A,options);SettingsItem.A&&SettingsItem.A.locals&&SettingsItem.A.locals;function SettingsItem_SettingsItem_SettingsItem(_ref){let{icon,title,rightSection,children,className,onClick}=_ref;const[isShow,setIsShow]=(0,react.useState)(!1);return react.createElement("div",{onClick,className:classnames_default()("settings-item",className)},react.createElement("div",{className:"settings-item__body"},react.createElement("div",{className:"settings-item__left-section"},react.createElement("span",{className:"settings-item__icon"},icon),react.createElement("span",{className:"settings-item__title"},title)),react.createElement("div",{className:"settings-item__right-section"},rightSection,children&&react.createElement(icons.Lf,{className:classnames_default()("settings-item__arrow",{"settings-item__arrow--opened":isShow}),onClick:()=>setIsShow(!isShow)}))),children&&react.createElement("div",{className:classnames_default()("settings-item__children",{"settings-item__children--opened":isShow})},children))}SettingsItem_SettingsItem_SettingsItem.__docgenInfo={description:"",methods:[],displayName:"SettingsItem",props:{icon:{required:!0,tsType:{name:"ReactElement"},description:""},title:{required:!0,tsType:{name:"string"},description:""},rightSection:{required:!1,tsType:{name:"union",raw:"ReactElement | ReactElement[]",elements:[{name:"ReactElement"},{name:"Array",elements:[{name:"ReactElement"}],raw:"ReactElement[]"}]},description:""},children:{required:!1,tsType:{name:"union",raw:"ReactElement | ReactElement[]",elements:[{name:"ReactElement"},{name:"Array",elements:[{name:"ReactElement"}],raw:"ReactElement[]"}]},description:""},className:{required:!1,tsType:{name:"string"},description:""},onClick:{required:!1,tsType:{name:"VoidFunction"},description:""}}};var Badge=__webpack_require__("./src/Presentation/ui-components/Badge/Badge.tsx"),Avatar=__webpack_require__("./src/Presentation/ui-components/Avatar/Avatar.tsx");const SettingsItem_stories={title:"@quickblox-react-ui-kit/Presentation/ui-components/SettingsItem",component:SettingsItem_SettingsItem_SettingsItem,tags:["autodocs"],parameters:{layout:"centered"},argTypes:{title:{table:{defaultValue:{summary:""},type:{summary:"string"}},description:"Name Setting item "},className:{table:{defaultValue:{summary:""},type:{summary:"string"}},description:"Additional classes"},icon:{control:!1,table:{defaultValue:{summary:"svg | ReactElement"},type:{summary:"svg | ReactElement"}},description:"Format plug svg or React element "},rightSection:{control:!1,table:{defaultValue:{summary:"ReactElement | ReactElement[]"},type:{summary:"ReactElement | ReactElement[]"}},description:"Elements for the right section"},onClick:{control:!1,table:{defaultValue:{summary:"VoidFunction"},type:{summary:"VoidFunction"}},description:"function onClick for icon"},children:{control:!1,table:{defaultValue:{summary:"ReactElement | ReactElement[]"},type:{summary:"ReactElement | ReactElement[]"}},description:"Elements that will be contained in the additional section"}}},SettingsItemDefault={name:"SettingsItem Default",args:{title:"Search in dialog",icon:react.createElement(icons.p8,{style:{fill:"#3978FC"}})}},SettingsItemNotification={name:"SettingsItem Notification",args:{title:"Notification",icon:react.createElement(icons.BD,{style:{fill:"#3978FC"}})}},SettingsItemMembers={name:"SettingsItem Members",args:{title:"Notification",icon:react.createElement(icons.C_,{style:{fill:"#3978FC"}}),rightSection:react.createElement(Badge.A,{count:10,limit:99,mute:!0}),children:react.createElement("ul",{style:{listStyle:"none",overflow:"hidden",margin:"0",padding:"0"}},react.createElement("li",{style:{display:"flex",alignItems:"center",padding:"8px 16px",gap:"16px"}},react.createElement(Avatar.A,{size:"sm"})," Name"),react.createElement("li",{style:{display:"flex",alignItems:"center",padding:"8px 16px",gap:"16px"}},react.createElement(Avatar.A,{size:"sm"})," Name"),react.createElement("li",{style:{display:"flex",alignItems:"center",padding:"8px 16px",gap:"16px"}},react.createElement(Avatar.A,{size:"sm"})," Name"),react.createElement("li",{style:{display:"flex",alignItems:"center",padding:"8px 16px",gap:"16px"}},react.createElement(Avatar.A,{size:"sm"})," Name"))}},__namedExportsOrder=["SettingsItemDefault","SettingsItemNotification","SettingsItemMembers"];SettingsItemDefault.parameters={...SettingsItemDefault.parameters,docs:{...SettingsItemDefault.parameters?.docs,source:{originalSource:"{\n name: 'SettingsItem Default',\n args: {\n title: 'Search in dialog',\n icon: <SearchSvg style={{\n fill: '#3978FC'\n }} />\n }\n}",...SettingsItemDefault.parameters?.docs?.source}}},SettingsItemNotification.parameters={...SettingsItemNotification.parameters,docs:{...SettingsItemNotification.parameters?.docs,source:{originalSource:"{\n name: 'SettingsItem Notification',\n args: {\n title: 'Notification',\n icon: <NotificationsSvg style={{\n fill: '#3978FC'\n }} />\n // rightSection: (\n // <CloseSvg\n // style={{\n // cursor: 'pointer',\n // }}\n // />\n // ),\n }\n}",...SettingsItemNotification.parameters?.docs?.source}}},SettingsItemMembers.parameters={...SettingsItemMembers.parameters,docs:{...SettingsItemMembers.parameters?.docs,source:{originalSource:"{\n name: 'SettingsItem Members',\n args: {\n title: 'Notification',\n icon: <GroupChatSvg style={{\n fill: '#3978FC'\n }} />,\n rightSection: <Badge count={10} limit={99} mute />,\n children: <ul style={{\n listStyle: 'none',\n overflow: 'hidden',\n margin: '0',\n padding: '0'\n }}>\n <li style={{\n display: 'flex',\n alignItems: 'center',\n padding: '8px 16px',\n gap: '16px'\n }}>\n <Avatar size=\"sm\" /> Name\n </li>\n <li style={{\n display: 'flex',\n alignItems: 'center',\n padding: '8px 16px',\n gap: '16px'\n }}>\n <Avatar size=\"sm\" /> Name\n </li>\n <li style={{\n display: 'flex',\n alignItems: 'center',\n padding: '8px 16px',\n gap: '16px'\n }}>\n <Avatar size=\"sm\" /> Name\n </li>\n <li style={{\n display: 'flex',\n alignItems: 'center',\n padding: '8px 16px',\n gap: '16px'\n }}>\n <Avatar size=\"sm\" /> Name\n </li>\n </ul>\n }\n}",...SettingsItemMembers.parameters?.docs?.source}}}}}]);
|