(()=>{(self.webpackChunktalk=self.webpackChunktalk||[]).push([["files-sidebar-tab-chunk"],{96999:(h,y,o)=>{"use strict";o.d(y,{Z:()=>F});var C=o(87537),m=o.n(C),g=o(23645),v=o.n(g),A=v()(m());A.push([h.id,".chatView[data-v-65d6d494]{width:100%;height:100%;display:flex;flex-direction:column;flex-grow:1;min-height:0}.dragover[data-v-65d6d494]{position:absolute;top:10%;left:10%;width:80%;height:80%;background:var(--color-primary-element-light);z-index:11;display:flex;box-shadow:0 0 36px var(--color-box-shadow);border-radius:var(--border-radius);opacity:90%;pointer-events:none}.drop-hint[data-v-65d6d494]{margin:auto}.drop-hint__icon[data-v-65d6d494]{background-size:48px;height:48px;margin-bottom:16px}.scroll-to-bottom[data-v-65d6d494]{position:relative;height:0}.scroll-to-bottom__button[data-v-65d6d494]{position:absolute !important;bottom:8px;right:24px;z-index:2}","",{version:3,sources:["webpack://./src/components/ChatView.vue"],names:[],mappings:"AACA,2BACC,UAAA,CACA,WAAA,CACA,YAAA,CACA,qBAAA,CACA,WAAA,CACA,YAAA,CAGD,2BACC,iBAAA,CACA,OAAA,CACA,QAAA,CACA,SAAA,CACA,UAAA,CACA,6CAAA,CACA,UAAA,CACA,YAAA,CACA,2CAAA,CACA,kCAAA,CACA,WAAA,CACA,mBAAA,CAGD,4BACC,WAAA,CACA,kCACC,oBAAA,CACA,WAAA,CACA,kBAAA,CAIF,mCACC,iBAAA,CACA,QAAA,CAEA,2CACC,4BAAA,CACA,UAAA,CACA,UAAA,CACA,SAAA",sourcesContent:[`
.chatView {
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	min-height: 0;
}

.dragover {
	position: absolute;
	top: 10%;
	left: 10%;
	width: 80%;
	height: 80%;
	background: var(--color-primary-element-light);
	z-index: 11;
	display: flex;
	box-shadow: 0 0 36px var(--color-box-shadow);
	border-radius: var(--border-radius);
	opacity: 90%;
	pointer-events: none;
}

.drop-hint {
	margin: auto;
	&__icon {
		background-size: 48px;
		height: 48px;
		margin-bottom: 16px;
	}
}

.scroll-to-bottom {
	position: relative;
	height: 0;

	&__button {
		position: absolute !important;
		bottom: 8px;
		right: 24px;
		z-index: 2;
	}
}
`],sourceRoot:""}]);const F=A},16963:(h,y,o)=>{"use strict";o.d(y,{Z:()=>F});var C=o(87537),m=o.n(C),g=o(23645),v=o.n(g),A=v()(m());A.push([h.id,".modal__content[data-v-525010ac]{padding:calc(var(--default-grid-baseline)*4);background-color:var(--color-main-background);margin:0px 12px}.conversation-information[data-v-525010ac]{margin-top:5px;display:flex;flex-direction:column;align-items:center}.description[data-v-525010ac]{margin-bottom:12px}.username-form__input[data-v-525010ac]{margin-bottom:20px}.submit-button[data-v-525010ac]{margin:0 auto}","",{version:3,sources:["webpack://./src/components/GuestWelcomeWindow.vue"],names:[],mappings:"AACA,iCACC,4CAAA,CACA,6CAAA,CACA,eAAA,CAGD,2CACC,cAAA,CACA,YAAA,CACA,qBAAA,CACA,kBAAA,CAGD,8BACC,kBAAA,CAGD,uCACC,kBAAA,CAGD,gCACC,aAAA",sourcesContent:[`
.modal__content {
	padding: calc(var(--default-grid-baseline) * 4);
	background-color: var(--color-main-background);
	margin: 0px 12px;
}

.conversation-information {
	margin-top: 5px;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.description {
	margin-bottom: 12px;
}

.username-form__input {
	margin-bottom: 20px;
}

.submit-button {
	margin: 0 auto;
}
`],sourceRoot:""}]);const F=A},81174:(h,y,o)=>{"use strict";o.d(y,{Z:()=>F});var C=o(87537),m=o.n(C),g=o(23645),v=o.n(g),A=v()(m());A.push([h.id,".placeholder-list[data-v-7fd79106]{width:100%;transform:translateZ(0)}.placeholder-item[data-v-7fd79106]{display:flex;gap:8px;width:100%}.placeholder-item__avatar[data-v-7fd79106]{flex-shrink:0}.placeholder-item__avatar-circle[data-v-7fd79106]{height:var(--default-clickable-area);width:var(--default-clickable-area);border-radius:var(--default-clickable-area)}.placeholder-item__content[data-v-7fd79106]{display:flex;flex-direction:column;width:100%}.placeholder-item__content-line[data-v-7fd79106]{margin:5px 0 4px;width:100%;height:15px}.placeholder-item__content-line[data-v-7fd79106]:last-child{width:var(--last-line-width)}.placeholder-list--conversations .placeholder-item[data-v-7fd79106]{margin:2px 0;padding:8px 10px}.placeholder-list--conversations .placeholder-item__content[data-v-7fd79106]{width:70%}.placeholder-list--messages[data-v-7fd79106]{max-width:800px;margin:auto}.placeholder-list--messages .placeholder-item[data-v-7fd79106]{padding-right:8px}.placeholder-list--messages .placeholder-item__avatar[data-v-7fd79106]{width:52px;padding:18px 10px 0}.placeholder-list--messages .placeholder-item__avatar-circle[data-v-7fd79106]{height:32px;width:32px;border-radius:32px}.placeholder-list--messages .placeholder-item__content[data-v-7fd79106]{max-width:600px;padding:12px 0}.placeholder-list--messages .placeholder-item__content-line[data-v-7fd79106]{margin:4px 0 3px}.placeholder-list--messages .placeholder-item__content-line[data-v-7fd79106]:first-child{margin-bottom:9px;width:20%}.placeholder-list--messages .placeholder-item__info[data-v-7fd79106]{width:100px;height:15px;margin:var(--default-clickable-area) var(--default-clickable-area) 0 8px;animation-delay:.8s}.placeholder-list--participants .placeholder-item[data-v-7fd79106]{gap:12px;margin:4px 0;padding:0 4px;height:56px;align-items:center}.placeholder-list--participants .placeholder-item__avatar[data-v-7fd79106]{margin:auto}.placeholder-item__avatar-circle[data-v-7fd79106],.placeholder-item__content-line[data-v-7fd79106],.placeholder-item__info[data-v-7fd79106]{background-size:200vw;background-image:linear-gradient(90deg, var(--colorPlaceholderDark) 65%, var(--colorPlaceholderLight) 70%, var(--colorPlaceholderDark) 75%);animation:loading-animation-7fd79106 3s forwards infinite linear;will-change:background-position}@keyframes loading-animation-7fd79106{0%{background-position:0}100%{background-position:140vw}}","",{version:3,sources:["webpack://./src/components/LoadingPlaceholder.vue"],names:[],mappings:"AACA,mCACC,UAAA,CACA,uBAAA,CAGD,mCACC,YAAA,CACA,OAAA,CACA,UAAA,CAEA,2CACC,aAAA,CACA,kDACC,oCAAA,CACA,mCAAA,CACA,2CAAA,CAIF,4CACC,YAAA,CACA,qBAAA,CACA,UAAA,CAEA,iDACC,gBAAA,CACA,UAAA,CACA,WAAA,CAEA,4DACC,4BAAA,CAQH,oEACC,YAAA,CACA,gBAAA,CAEA,6EACC,SAAA,CAMH,6CACC,eAAA,CACA,WAAA,CAEA,+DACC,iBAAA,CACA,uEACC,UAAA,CACA,mBAAA,CAEA,8EACC,WAAA,CACA,UAAA,CACA,kBAAA,CAIF,wEACC,eAAA,CACA,cAAA,CAEA,6EACC,gBAAA,CAEA,yFACC,iBAAA,CACA,SAAA,CAKH,qEACC,WAAA,CACA,WAAA,CACA,wEAAA,CACA,mBAAA,CAOF,mEACC,QAAA,CACA,YAAA,CACA,aAAA,CACA,WAAA,CACA,kBAAA,CAEA,2EACC,WAAA,CAMH,4IAGC,qBAAA,CACA,2IAAA,CACA,gEAAA,CACA,+BAAA,CAGD,sCACC,GACC,qBAAA,CAED,KACC,yBAAA,CAAA",sourcesContent:[`
.placeholder-list {
	width: 100%;
	transform: translateZ(0); // enable hardware acceleration
}

.placeholder-item {
	display: flex;
	gap: 8px;
	width: 100%;

	&__avatar {
		flex-shrink: 0;
		&-circle {
			height: var(--default-clickable-area);
			width: var(--default-clickable-area);
			border-radius: var(--default-clickable-area);
		}
	}

	&__content {
		display: flex;
		flex-direction: column;
		width: 100%;

		&-line {
			margin: 5px 0 4px;
			width: 100%;
			height: 15px;

			&:last-child {
				width: var(--last-line-width);
			}
		}
	}
}

// Conversations placeholder ruleset
.placeholder-list--conversations {
	.placeholder-item {
		margin: 2px 0;
		padding: 8px 10px;

		&__content {
			width: 70%;
		}
	}
}

// Messages placeholder ruleset
.placeholder-list--messages {
	max-width: 800px;
	margin: auto;

	.placeholder-item {
		padding-right: 8px;
		&__avatar {
			width: 52px;
			padding: 18px 10px 0;

			&-circle {
				height: 32px;
				width: 32px;
				border-radius: 32px;
			}
		}

		&__content {
			max-width: 600px;
			padding: 12px 0;

			&-line {
				margin: 4px 0 3px;

				&:first-child {
					margin-bottom: 9px;
					width: 20%;
				}
			}
		}

		&__info {
			width: 100px;
			height: 15px;
			margin: var(--default-clickable-area) var(--default-clickable-area) 0 8px;
			animation-delay: 0.8s;
		}
	}
}

// Participants placeholder ruleset
.placeholder-list--participants {
	.placeholder-item {
		gap: 12px;
		margin: 4px 0;
		padding: 0 4px;
		height: 56px;
		align-items: center;

		&__avatar {
			margin: auto;
		}
	}
}

// Animation
.placeholder-item__avatar-circle,
.placeholder-item__content-line,
.placeholder-item__info {
	background-size: 200vw;
	background-image: linear-gradient(90deg, var(--colorPlaceholderDark) 65%, var(--colorPlaceholderLight) 70%, var(--colorPlaceholderDark) 75%);
	animation: loading-animation 3s forwards infinite linear;
	will-change: background-position;
}

@keyframes loading-animation {
	0% {
		background-position: 0;
	}
	100% {
		background-position: 140vw;
	}
}
`],sourceRoot:""}]);const F=A},91507:(h,y,o)=>{"use strict";o.d(y,{Z:()=>F});var C=o(87537),m=o.n(C),g=o(23645),v=o.n(g),A=v()(m());A.push([h.id,".media-devices-selector[data-v-015279f2]{display:flex;margin:16px 0}.media-devices-selector__icon[data-v-015279f2]{display:flex;justify-content:flex-start;align-items:center;width:36px}.media-devices-selector__heading[data-v-015279f2]{font-weight:bold}.media-devices-selector[data-v-015279f2] .v-select.select{width:100%}","",{version:3,sources:["webpack://./src/components/MediaDevicesSelector.vue"],names:[],mappings:"AACA,yCACC,YAAA,CACA,aAAA,CACA,+CACC,YAAA,CACA,0BAAA,CACA,kBAAA,CACA,UAAA,CAED,kDACC,gBAAA,CAGD,0DACC,UAAA",sourcesContent:[`
.media-devices-selector {
	display: flex;
	margin: 16px 0;
	&__icon {
		display: flex;
		justify-content: flex-start;
		align-items: center;
		width: 36px;
	}
	&__heading {
		font-weight: bold;
	}

	:deep(.v-select.select) {
		width: 100%;
	}
}
`],sourceRoot:""}]);const F=A},93083:(h,y,o)=>{"use strict";o.d(y,{Z:()=>F});var C=o(87537),m=o.n(C),g=o(23645),v=o.n(g),A=v()(m());A.push([h.id,".media-settings[data-v-dfd998c4]{padding:calc(var(--default-grid-baseline)*5)}.media-settings__title[data-v-dfd998c4]{text-align:center}.media-settings__preview[data-v-dfd998c4]{position:relative;margin:0 auto calc(var(--default-grid-baseline)*3);display:flex;align-items:center;justify-content:center;overflow:hidden;border-radius:calc(var(--default-grid-baseline)*3);background-color:var(--color-loading-dark);width:100%;aspect-ratio:4/3}.media-settings__toggles-wrapper[data-v-dfd998c4]{width:100%;display:flex;justify-content:center;position:relative;height:calc(var(--default-grid-baseline)*4)}.media-settings__toggles[data-v-dfd998c4]{display:flex;position:absolute;top:calc(var(--default-grid-baseline)*-9);background:var(--color-main-background);border-radius:var(--border-radius-pill);box-shadow:0 0 var(--default-grid-baseline) var(--color-box-shadow)}.media-settings__device-selection[data-v-dfd998c4]{width:100%}.media-settings__call-preferences[data-v-dfd998c4]{height:var(--default-clickable-area);display:flex;justify-content:center;align-items:center;gap:calc(var(--default-grid-baseline)*2)}.media-settings__call-buttons[data-v-dfd998c4]{display:flex;align-items:center;justify-content:center;gap:var(--default-grid-baseline)}.preview__video[data-v-dfd998c4]{max-width:100%;object-fit:contain;max-height:100%}.preview__novideo[data-v-dfd998c4]{display:flex;align-items:center;justify-content:center;overflow:hidden;width:100%}.call-button[data-v-dfd998c4]{display:flex;justify-content:center;align-items:center}.checkbox[data-v-dfd998c4]{display:flex;justify-content:center;margin:calc(var(--default-grid-baseline)*2)}.checkbox--warning[data-v-dfd998c4]:focus-within .checkbox-radio-switch__label,.checkbox--warning[data-v-dfd998c4] .checkbox-radio-switch__label:hover{background-color:var(--note-background) !important}[data-v-dfd998c4] .modal-container{display:flex !important;max-width:500px !important}","",{version:3,sources:["webpack://./src/components/MediaSettings/MediaSettings.vue"],names:[],mappings:"AACA,iCACC,4CAAA,CAEA,wCACC,iBAAA,CAGD,0CACC,iBAAA,CACA,kDAAA,CACA,YAAA,CACA,kBAAA,CACA,sBAAA,CACA,eAAA,CACA,kDAAA,CACA,0CAAA,CACA,UAAA,CACA,gBAAA,CAGD,kDACC,UAAA,CACA,YAAA,CACA,sBAAA,CACA,iBAAA,CACA,2CAAA,CAGD,0CACC,YAAA,CACA,iBAAA,CACA,yCAAA,CACA,uCAAA,CACA,uCAAA,CACA,mEAAA,CAGD,mDACC,UAAA,CAGD,mDACC,oCAAA,CACA,YAAA,CACA,sBAAA,CACA,kBAAA,CACA,wCAAA,CAGD,+CACC,YAAA,CACA,kBAAA,CACA,sBAAA,CACA,gCAAA,CAKD,iCACC,cAAA,CACA,kBAAA,CACA,eAAA,CAGD,mCACC,YAAA,CACA,kBAAA,CACA,sBAAA,CACA,eAAA,CACA,UAAA,CAIF,8BACC,YAAA,CACA,sBAAA,CACA,kBAAA,CAGD,2BACC,YAAA,CACA,sBAAA,CACA,2CAAA,CAGC,uJAEC,kDAAA,CAKH,mCACC,uBAAA,CACA,0BAAA",sourcesContent:[`
.media-settings {
	padding: calc(var(--default-grid-baseline) * 5);

	&__title {
		text-align: center;
	}

	&__preview {
		position: relative;
		margin: 0 auto calc(var(--default-grid-baseline) * 3);
		display: flex;
		align-items: center;
		justify-content: center;
		overflow: hidden;
		border-radius: calc(var(--default-grid-baseline) * 3);
		background-color: var(--color-loading-dark);
		width: 100%;
		aspect-ratio: 4/3;
	}

	&__toggles-wrapper {
		width: 100%;
		display: flex;
		justify-content: center;
		position: relative;
		height: calc(var(--default-grid-baseline) * 4);
	}

	&__toggles {
		display: flex;
		position: absolute;
		top: calc(var(--default-grid-baseline) * -9);
		background: var(--color-main-background);
		border-radius: var(--border-radius-pill);
		box-shadow: 0 0 var(--default-grid-baseline) var(--color-box-shadow);
	}

	&__device-selection {
		width: 100%;
	}

	&__call-preferences {
		height: var(--default-clickable-area);
		display: flex;
		justify-content: center;
		align-items: center;
		gap: calc(var(--default-grid-baseline) * 2);
	}

	&__call-buttons {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: var(--default-grid-baseline);
	}
}

.preview {
	&__video {
		max-width: 100%;
		object-fit: contain;
		max-height: 100%;
	}

	&__novideo {
		display: flex;
		align-items: center;
		justify-content: center;
		overflow: hidden;
		width: 100%;
	}
}

.call-button {
	display: flex;
	justify-content: center;
	align-items: center;
}

.checkbox {
	display: flex;
	justify-content: center;
	margin: calc(var(--default-grid-baseline) * 2);

	&--warning {
		&:focus-within :deep(.checkbox-radio-switch__label),
		& :deep(.checkbox-radio-switch__label:hover) {
			background-color: var(--note-background) !important;
		}
	}
}

:deep(.modal-container) {
	display: flex !important;
	max-width: 500px !important;
}
`],sourceRoot:""}]);const F=A},23773:(h,y,o)=>{"use strict";o.d(y,{Z:()=>F});var C=o(87537),m=o.n(C),g=o(23645),v=o.n(g),A=v()(m());A.push([h.id,".background-editor[data-v-bc0ebcb0]{display:grid;grid-template-columns:repeat(4, 1fr);gap:calc(var(--default-grid-baseline)*2);margin-top:calc(var(--default-grid-baseline)*2)}.background-editor__element[data-v-bc0ebcb0]{border:none;margin:0 !important;border-radius:calc(var(--border-radius-large)*1.5);height:calc(var(--default-grid-baseline)*16);display:flex;flex-direction:column;justify-content:center;align-items:center;background-color:rgba(28,175,255,.1803921569);background-size:cover;background-position:center;flex:1 0 108px}.background-editor__element--selected[data-v-bc0ebcb0]{box-shadow:inset 0 0 0 var(--default-grid-baseline) var(--color-primary-element)}","",{version:3,sources:["webpack://./src/components/MediaSettings/VideoBackgroundEditor.vue"],names:[],mappings:"AACA,oCACC,YAAA,CACA,oCAAA,CACA,wCAAA,CACA,+CAAA,CAEA,6CACC,WAAA,CACA,mBAAA,CACA,kDAAA,CACA,4CAAA,CACA,YAAA,CACA,qBAAA,CACA,sBAAA,CACA,kBAAA,CACA,6CAAA,CACA,qBAAA,CACA,0BAAA,CACA,cAAA,CAEA,uDACC,gFAAA",sourcesContent:[`
.background-editor {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: calc(var(--default-grid-baseline) * 2);
	margin-top: calc(var(--default-grid-baseline) * 2);

	&__element {
		border: none;
		margin: 0 !important;
		border-radius: calc(var(--border-radius-large) * 1.5);
		height: calc(var(--default-grid-baseline) * 16);
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		background-color: #1cafff2e;
		background-size: cover;
		background-position: center;
		flex: 1 0 108px;

		&--selected {
			box-shadow: inset 0 0 0 var(--default-grid-baseline) var(--color-primary-element);
		}
	}
}

`],sourceRoot:""}]);const F=A},7181:(h,y,o)=>{"use strict";o.d(y,{Z:()=>F});var C=o(87537),m=o.n(C),g=o(23645),v=o.n(g),A=v()(m());A.push([h.id,".message[data-v-703a9d4d]{position:relative}.message:hover .normal-message-body[data-v-703a9d4d],.message:hover .combined-system[data-v-703a9d4d]{border-radius:8px;background-color:var(--color-background-hover)}.message-body[data-v-703a9d4d]{padding:4px;font-size:var(--default-font-size);line-height:var(--default-line-height);position:relative}.message-body__main[data-v-703a9d4d]{display:flex;justify-content:space-between;align-items:flex-start;min-width:100%}.message-body__main__text[data-v-703a9d4d]{flex:0 1 600px;width:100%;min-width:0;max-width:600px;color:var(--color-text-light)}.message-body__main__text .single-emoji[data-v-703a9d4d]{font-size:250%;line-height:100%}.message-body__main__text.call-started[data-v-703a9d4d]{background-color:var(--color-primary-element-light);padding:10px;border-radius:var(--border-radius-large);text-align:center}.message-body__main__text.system-message[data-v-703a9d4d]{color:var(--color-text-maxcontrast);text-align:center;padding:0 20px;width:100%}.message-body__main__text.deleted-message[data-v-703a9d4d]{color:var(--color-text-lighter);display:flex;border-radius:var(--border-radius-large);align-items:center}.message-body__main__text.deleted-message[data-v-703a9d4d] .rich-text--wrapper{flex-grow:1;text-align:start}.message-body__main__text--quote[data-v-703a9d4d]{border-left:4px solid var(--color-primary-element);padding:4px 0 0 8px}.message-body__main__right[data-v-703a9d4d]{justify-self:flex-start;justify-content:flex-end;position:relative;user-select:none;display:flex;color:var(--color-text-maxcontrast);font-size:var(--default-font-size);flex:1 0 auto;padding:0 8px 0 8px}.message-body__scroll[data-v-703a9d4d]{position:absolute;top:0;right:0;width:fit-content;height:100%;padding:8px 8px 0 0}.message-body__reactions[data-v-703a9d4d]{display:flex;flex-wrap:wrap;margin:4px 175px 4px -2px}.date[data-v-703a9d4d]{margin-right:var(--default-clickable-area)}.date--self[data-v-703a9d4d]{margin-right:0}.message-body[data-v-703a9d4d]:not(.system){padding:4px 4px 4px 8px}.message--highlighted[data-v-703a9d4d]{animation:highlight-animation-703a9d4d 5s 1;border-radius:8px}@keyframes highlight-animation-703a9d4d{0%{background-color:var(--color-background-hover)}50%{background-color:var(--color-background-hover)}100%{background-color:rgba(var(--color-background-hover), 0)}}.new-message-marker[data-v-703a9d4d]{position:relative;margin:20px 15px;border-top:1px solid var(--color-border)}.new-message-marker span[data-v-703a9d4d]{position:absolute;top:0;left:50%;transform:translateX(-50%) translateY(-50%);padding:0 7px 0 7px;text-align:center;white-space:nowrap;color:var(--color-text-light);border-radius:var(--border-radius);background-color:var(--color-main-background)}.message-status[data-v-703a9d4d]{width:var(--default-clickable-area);height:24px;display:flex;justify-content:center;align-items:center}.message-status.retry-option[data-v-703a9d4d]{cursor:pointer}.reaction-button[data-v-703a9d4d]{min-height:0 !important;margin:2px;height:26px;padding:0 6px !important}.reaction-button[data-v-703a9d4d] .button-vue__text{font-weight:normal !important}.reaction-button__emoji[data-v-703a9d4d]{margin:0 4px 0 0}.reaction-details[data-v-703a9d4d]{padding:8px}.message-buttons-bar[data-v-703a9d4d]{display:flex;right:14px;top:8px;position:sticky;background-color:var(--color-main-background);border-radius:calc(var(--default-clickable-area)/2);box-shadow:0 0 4px 0 var(--color-box-shadow);height:44px;z-index:1}.message-buttons-bar h6[data-v-703a9d4d]{margin-left:auto}.message-body__main__text--markdown[data-v-703a9d4d]{position:relative}.message-body__main__text--markdown .message-copy-code[data-v-703a9d4d]{position:absolute;top:0;right:4px;margin-top:4px;background-color:var(--color-background-dark)}.message-body__main__text--markdown[data-v-703a9d4d] .rich-text--wrapper{text-align:start}.message-body__main__text--markdown[data-v-703a9d4d] .rich-text--wrapper h4{font-size:100%}.message-body__main__text--markdown[data-v-703a9d4d] .rich-text--wrapper em{font-style:italic}.message-body__main__text--markdown[data-v-703a9d4d] .rich-text--wrapper ul,.message-body__main__text--markdown[data-v-703a9d4d] .rich-text--wrapper ol{padding-left:0;padding-inline-start:15px}.message-body__main__text--markdown[data-v-703a9d4d] .rich-text--wrapper pre{padding:4px;margin:2px 0;border-radius:var(--border-radius);background-color:var(--color-background-dark);overflow-x:auto}.message-body__main__text--markdown[data-v-703a9d4d] .rich-text--wrapper pre code{margin:0;padding:0}.message-body__main__text--markdown[data-v-703a9d4d] .rich-text--wrapper code{display:inline-block;padding:2px 4px;margin:2px 0;border-radius:var(--border-radius);background-color:var(--color-background-dark)}.message-body__main__text--markdown[data-v-703a9d4d] .rich-text--wrapper blockquote{padding-left:0;padding-inline-start:13px;border-left:none;border-inline-start:4px solid var(--color-border)}[data-v-703a9d4d] .rich-text--component{direction:ltr}","",{version:3,sources:["webpack://./src/components/MessagesList/MessagesGroup/Message/Message.vue"],names:[],mappings:"AACA,0BACC,iBAAA,CAEA,sGAEC,iBAAA,CACA,8CAAA,CAIF,+BACC,WAAA,CACA,kCAAA,CACA,sCAAA,CACA,iBAAA,CACA,qCACC,YAAA,CACA,6BAAA,CACA,sBAAA,CACA,cAAA,CACA,2CACC,cAAA,CACA,UAAA,CACA,WAAA,CACA,eAAA,CACA,6BAAA,CACA,yDACC,cAAA,CACA,gBAAA,CAGD,wDACC,mDAAA,CACA,YAAA,CACA,wCAAA,CACA,iBAAA,CAGD,0DACC,mCAAA,CACA,iBAAA,CACA,cAAA,CACA,UAAA,CAGD,2DACC,+BAAA,CACA,YAAA,CACA,wCAAA,CACA,kBAAA,CACA,+EACC,WAAA,CACA,gBAAA,CAIF,kDACC,kDAAA,CACA,mBAAA,CAGF,4CACC,uBAAA,CACA,wBAAA,CACA,iBAAA,CACA,gBAAA,CACA,YAAA,CACA,mCAAA,CACA,kCAAA,CACA,aAAA,CACA,mBAAA,CAIF,uCACC,iBAAA,CACA,KAAA,CACA,OAAA,CACA,iBAAA,CACA,WAAA,CACA,mBAAA,CAGD,0CACC,YAAA,CACA,cAAA,CACA,yBAAA,CAIF,uBACC,0CAAA,CACA,6BACC,cAAA,CAMF,4CACC,uBAAA,CAGD,uCACC,2CAAA,CACA,iBAAA,CAGD,wCACC,GAAA,8CAAA,CACA,IAAA,8CAAA,CACA,KAAA,uDAAA,CAAA,CAGD,qCACC,iBAAA,CACA,gBAAA,CACA,wCAAA,CAEA,0CACC,iBAAA,CACA,KAAA,CACA,QAAA,CACA,2CAAA,CACA,mBAAA,CACA,iBAAA,CACA,kBAAA,CACA,6BAAA,CACA,kCAAA,CACA,6CAAA,CAIF,iCACC,mCAAA,CACA,WAAA,CACA,YAAA,CACA,sBAAA,CACA,kBAAA,CAEA,8CACC,cAAA,CAIF,kCAEC,uBAAA,CAKA,UAAA,CACA,WAAA,CACA,wBAAA,CANA,oDACC,6BAAA,CAOD,yCACC,gBAAA,CAIF,mCACC,WAAA,CAGD,sCACC,YAAA,CACA,UAAA,CACA,OAAA,CACA,eAAA,CACA,6CAAA,CACA,mDAAA,CACA,4CAAA,CACA,WAAA,CACA,SAAA,CAEA,yCACC,gBAAA,CAIF,qDACC,iBAAA,CAEA,wEACC,iBAAA,CACA,KAAA,CACA,SAAA,CACA,cAAA,CACA,6CAAA,CAGD,yEACC,gBAAA,CAGA,4EACC,cAAA,CAGD,4EACC,iBAAA,CAGD,wJAEC,cAAA,CACA,yBAAA,CAGD,6EACC,WAAA,CACA,YAAA,CACA,kCAAA,CACA,6CAAA,CACA,eAAA,CAEA,kFACC,QAAA,CACA,SAAA,CAIF,8EACC,oBAAA,CACA,eAAA,CACA,YAAA,CACA,kCAAA,CACA,6CAAA,CAGD,oFACC,cAAA,CACA,yBAAA,CACA,gBAAA,CACA,iDAAA,CAMH,wCACC,aAAA",sourcesContent:[`
.message {
	position: relative;

	&:hover .normal-message-body,
	&:hover .combined-system {
		border-radius: 8px;
		background-color: var(--color-background-hover);
	}
}

.message-body {
	padding: 4px;
	font-size: var(--default-font-size);
	line-height: var(--default-line-height);
	position: relative;
	&__main {
		display: flex;
		justify-content: space-between;
		align-items: flex-start;
		min-width: 100%;
		&__text {
			flex: 0 1 600px;
			width: 100%;
			min-width: 0;
			max-width: 600px;
			color: var(--color-text-light);
			.single-emoji {
				font-size: 250%;
				line-height: 100%;
			}

			&.call-started {
				background-color: var(--color-primary-element-light);
				padding: 10px;
				border-radius: var(--border-radius-large);
				text-align: center;
			}

			&.system-message {
				color: var(--color-text-maxcontrast);
				text-align: center;
				padding: 0 20px;
				width: 100%;
			}

			&.deleted-message {
				color: var(--color-text-lighter);
				display: flex;
				border-radius: var(--border-radius-large);
				align-items: center;
				:deep(.rich-text--wrapper) {
					flex-grow: 1;
					text-align: start;
				}
			}

			&--quote {
				border-left: 4px solid var(--color-primary-element);
				padding: 4px 0 0 8px;
			}
		}
		&__right {
			justify-self: flex-start;
			justify-content: flex-end;
			position: relative;
			user-select: none;
			display: flex;
			color: var(--color-text-maxcontrast);
			font-size: var(--default-font-size);
			flex: 1 0 auto;
			padding: 0 8px 0 8px;
		}
	}

	&__scroll {
		position: absolute;
		top: 0;
		right: 0;
		width: fit-content;
		height: 100%;
		padding: 8px 8px 0 0;
	}

	&__reactions {
		display: flex;
		flex-wrap: wrap;
		margin: 4px 175px 4px -2px;
	}
}

.date {
	margin-right: var(--default-clickable-area);
	&--self {
		margin-right: 0;
	}
}

// Increase the padding for regular messages to improve readability and
// allow some space for the reply button
.message-body:not(.system) {
	padding: 4px 4px 4px 8px;
}

.message--highlighted {
	animation: highlight-animation 5s 1;
	border-radius: 8px;
}

@keyframes highlight-animation {
	0% { background-color: var(--color-background-hover); }
	50% { background-color: var(--color-background-hover); }
	100% { background-color: rgba(var(--color-background-hover), 0); }
}

.new-message-marker {
	position: relative;
	margin: 20px 15px;
	border-top: 1px solid var(--color-border);

	span {
		position: absolute;
		top: 0;
		left: 50%;
		transform: translateX(-50%) translateY(-50%);
		padding: 0 7px 0 7px;
		text-align: center;
		white-space: nowrap;
		color: var(--color-text-light);
		border-radius: var(--border-radius);
		background-color: var(--color-main-background);
	}
}

.message-status {
	width: var(--default-clickable-area);
	height: 24px;
	display: flex;
	justify-content: center;
	align-items: center;

	&.retry-option {
		cursor: pointer;
	}
}

.reaction-button {
	// Clear server rules
	min-height: 0 !important;
	:deep(.button-vue__text) {
		font-weight: normal !important;
	}

	margin: 2px;
	height: 26px;
	padding: 0 6px !important;

	&__emoji {
		margin: 0 4px 0 0;
	}
}

.reaction-details {
	padding: 8px;
}

.message-buttons-bar {
	display: flex;
	right: 14px;
	top: 8px;
	position: sticky;
	background-color: var(--color-main-background);
	border-radius: calc(var(--default-clickable-area) / 2);
	box-shadow: 0 0 4px 0 var(--color-box-shadow);
	height: 44px;
	z-index: 1;

	& h6 {
		margin-left: auto;
	}
}

.message-body__main__text--markdown {
	position: relative;

	.message-copy-code {
		position: absolute;
		top: 0;
		right: 4px;
		margin-top: 4px;
		background-color: var(--color-background-dark);
	}

	:deep(.rich-text--wrapper) {
		text-align: start;

		// Overwrite core styles, otherwise h4 is lesser than default font-size
		h4 {
			font-size: 100%;
		}

		em {
			font-style: italic;
		}

		ul,
		ol {
			padding-left: 0;
			padding-inline-start: 15px;
		}

		pre {
			padding: 4px;
			margin: 2px 0;
			border-radius: var(--border-radius);
			background-color: var(--color-background-dark);
			overflow-x: auto;

			& code {
				margin: 0;
				padding: 0;
			}
		}

		code {
			display: inline-block;
			padding: 2px 4px;
			margin: 2px 0;
			border-radius: var(--border-radius);
			background-color: var(--color-background-dark);
		}

		blockquote {
			padding-left: 0;
			padding-inline-start: 13px;
			border-left: none;
			border-inline-start: 4px solid var(--color-border);
		}
	}
}

// Hardcode to prevent RTL affecting on user mentions
:deep(.rich-text--component) {
	direction: ltr;
}
`],sourceRoot:""}]);const F=A},93451:(h,y,o)=>{"use strict";o.d(y,{Z:()=>F});var C=o(87537),m=o.n(C),g=o(23645),v=o.n(g),A=v()(m());A.push([h.id,'.action--nested[data-v-9ef8f72a] .action-button::after{content:" ";width:20px;height:44px;margin-left:auto;background:no-repeat center var(--icon-triangle-e-dark)}',"",{version:3,sources:["webpack://./src/components/MessagesList/MessagesGroup/Message/MessageButtonsBar/MessageButtonsBar.vue"],names:[],mappings:"AAEC,uDACC,WAAA,CACA,UAAA,CACA,WAAA,CACA,gBAAA,CACA,uDAAA",sourcesContent:[`
.action--nested {
	:deep(.action-button::after) {
		content: " ";
		width: 20px;
		height: 44px;
		margin-left: auto;
		background: no-repeat center var(--icon-triangle-e-dark);
	}
}
`],sourceRoot:""}]);const F=A},58848:(h,y,o)=>{"use strict";o.d(y,{Z:()=>F});var C=o(87537),m=o.n(C),g=o(23645),v=o.n(g),A=v()(m());A.push([h.id,"[data-v-d3d6075c] .empty-content{padding:20px}[data-v-d3d6075c] .empty-content__action{gap:10px}","",{version:3,sources:["webpack://./src/components/MessagesList/MessagesGroup/Message/MessageButtonsBar/MessageForwarder.vue"],names:[],mappings:"AAEA,iCACC,YAAA,CAED,yCACC,QAAA",sourcesContent:[`

:deep(.empty-content) {
	padding: 20px;
}
:deep(.empty-content__action) {
	gap: 10px;
}
`],sourceRoot:""}]);const F=A},33830:(h,y,o)=>{"use strict";o.d(y,{Z:()=>F});var C=o(87537),m=o.n(C),g=o(23645),v=o.n(g),A=v()(m());A.push([h.id,".translate-dialog[data-v-07bfcbbc]{position:relative;display:flex;flex-direction:column;min-height:400px;padding:calc(var(--default-grid-baseline)*3);background-color:var(--color-main-background)}.translate-dialog__wrapper[data-v-07bfcbbc]{display:flex;align-items:center;gap:calc(var(--default-grid-baseline)*4);padding:calc(var(--default-grid-baseline)*2)}.translate-dialog .translate-dialog__select[data-v-07bfcbbc]{width:50%}.translate-dialog__button[data-v-07bfcbbc]{flex-shrink:0;margin-left:auto}.translate-dialog__message[data-v-07bfcbbc]{padding:calc(var(--default-grid-baseline)*2);flex-grow:1;border-radius:var(--border-radius-large)}.translate-dialog__message-source[data-v-07bfcbbc]{color:var(--color-text-lighter);margin-bottom:calc(var(--default-grid-baseline)*2);border:2px solid var(--color-border)}.translate-dialog__message-translation[data-v-07bfcbbc]{border:2px solid var(--color-primary-element)}.translate-dialog .translate-dialog__copy-button[data-v-07bfcbbc]{margin-top:calc(var(--default-grid-baseline)*2);align-self:end}","",{version:3,sources:["webpack://./src/components/MessagesList/MessagesGroup/Message/MessageButtonsBar/MessageTranslateDialog.vue"],names:[],mappings:"AACA,mCACC,iBAAA,CACA,YAAA,CACA,qBAAA,CACA,gBAAA,CACA,4CAAA,CACA,6CAAA,CAEA,4CACC,YAAA,CACA,kBAAA,CACA,wCAAA,CACA,4CAAA,CAGD,6DACC,SAAA,CAGD,2CACC,aAAA,CACA,gBAAA,CAGD,4CACC,4CAAA,CACA,WAAA,CACA,wCAAA,CAEA,mDACC,+BAAA,CACA,kDAAA,CACA,oCAAA,CAGD,wDACC,6CAAA,CAIF,kEACC,+CAAA,CACA,cAAA",sourcesContent:[`
.translate-dialog {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 400px;
	padding: calc(var(--default-grid-baseline) * 3);
	background-color: var(--color-main-background);

	&__wrapper {
		display: flex;
		align-items: center;
		gap: calc(var(--default-grid-baseline) * 4);
		padding: calc(var(--default-grid-baseline) * 2);
	}

	& &__select {
		width: 50%;
	}

	&__button {
		flex-shrink: 0;
		margin-left: auto;
	}

	&__message {
		padding: calc(var(--default-grid-baseline) * 2);
		flex-grow: 1;
		border-radius: var(--border-radius-large);

		&-source {
			color: var(--color-text-lighter);
			margin-bottom: calc(var(--default-grid-baseline) * 2);
			border: 2px solid var(--color-border);
		}

		&-translation {
			border: 2px solid var(--color-primary-element);
		}
	}

	& &__copy-button {
		margin-top: calc(var(--default-grid-baseline) * 2);
		align-self: end;
	}
}
`],sourceRoot:""}]);const F=A},45685:(h,y,o)=>{"use strict";o.d(y,{Z:()=>F});var C=o(87537),m=o.n(C),g=o(23645),v=o.n(g),A=v()(m());A.push([h.id,".contact[data-v-ffa9d302]{display:flex;transition:box-shadow .1s ease-in-out;border:1px solid var(--color-border);box-shadow:0 0 2px 0 var(--color-box-shadow);border-radius:var(--border-radius-large);font-size:100%;background-color:var(--color-main-background);margin:12px 0;max-width:300px;padding:12px;white-space:nowrap;align-items:center}.contact[data-v-ffa9d302]:hover,.contact[data-v-ffa9d302]:focus{box-shadow:0 0 5px 0 var(--color-box-shadow)}.contact__image[data-v-ffa9d302]{display:inline-block;border-radius:50%;max-width:44px;max-height:44px}.contact__icon[data-v-ffa9d302]{display:inline-block;width:44px;height:44px}.contact__lineone[data-v-ffa9d302]{height:30px;display:flex;justify-content:flex-start;align-items:center;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.contact__lineone .title[data-v-ffa9d302]{margin-left:12px}.icon-contacts[data-v-ffa9d302]{opacity:.8}","",{version:3,sources:["webpack://./src/components/MessagesList/MessagesGroup/Message/MessagePart/Contact.vue"],names:[],mappings:"AACA,0BACC,YAAA,CACA,qCAAA,CACA,oCAAA,CACA,4CAAA,CACA,wCAAA,CACA,cAAA,CACA,6CAAA,CACA,aAAA,CACA,eAAA,CACA,YAAA,CACA,kBAAA,CACA,kBAAA,CACA,gEAEC,4CAAA,CAED,iCACC,oBAAA,CACA,iBAAA,CACA,cAAA,CACA,eAAA,CAED,gCACC,oBAAA,CACA,UAAA,CACA,WAAA,CAED,mCACC,WAAA,CACA,YAAA,CACA,0BAAA,CACA,kBAAA,CACA,eAAA,CACA,kBAAA,CACA,sBAAA,CAEA,0CACC,gBAAA,CAKH,gCACC,UAAA",sourcesContent:[`
.contact {
	display: flex;
	transition: box-shadow 0.1s ease-in-out;
	border: 1px solid var(--color-border);
	box-shadow: 0 0 2px 0 var(--color-box-shadow);
	border-radius: var(--border-radius-large);
	font-size: 100%;
	background-color: var(--color-main-background);
	margin: 12px 0;
	max-width: 300px;
	padding: 12px;
	white-space: nowrap;
	align-items: center;
	&:hover,
	&:focus{
		box-shadow: 0 0 5px 0 var(--color-box-shadow);
	}
	&__image {
		display: inline-block;
		border-radius: 50%;
		max-width: 44px;
		max-height: 44px;
	}
	&__icon {
		display: inline-block;
		width: 44px;
		height: 44px;
	}
	&__lineone {
		height: 30px;
		display: flex;
		justify-content: flex-start;
		align-items: center;
		overflow: hidden;
		white-space: nowrap;
		text-overflow: ellipsis;

		.title {
			margin-left: 12px;
		}
	}
}

.icon-contacts {
	opacity: .8;
}

`],sourceRoot:""}]);const F=A},72296:(h,y,o)=>{"use strict";o.d(y,{Z:()=>F});var C=o(87537),m=o.n(C),g=o(23645),v=o.n(g),A=v()(m());A.push([h.id,".deck-card[data-v-03d8d8e8]{display:flex;border:2px solid var(--color-border);border-radius:var(--border-radius-large);font-size:100%;background-color:var(--color-main-background);max-width:300px;padding:8px 16px;flex-direction:column;white-space:nowrap;transition:border-color .1s ease-in-out}.deck-card[data-v-03d8d8e8]:hover,.deck-card[data-v-03d8d8e8]:focus,.deck-card[data-v-03d8d8e8]:focus-visible{border-color:var(--color-primary-element);outline:none}.deck-card__lineone[data-v-03d8d8e8]{height:30px;display:flex;justify-content:flex-start;align-items:center;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.deck-card__lineone .title[data-v-03d8d8e8]{margin-left:8px}.deck-card__linetwo[data-v-03d8d8e8]{height:30px;color:var(--color-text-lighter);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.icon-deck[data-v-03d8d8e8]{opacity:.8}.wide[data-v-03d8d8e8]{max-width:400px;width:100%}","",{version:3,sources:["webpack://./src/components/MessagesList/MessagesGroup/Message/MessagePart/DeckCard.vue"],names:[],mappings:"AACA,4BACC,YAAA,CACA,oCAAA,CACA,wCAAA,CACA,cAAA,CACA,6CAAA,CACA,eAAA,CACA,gBAAA,CACA,qBAAA,CACA,kBAAA,CACA,uCAAA,CAEA,8GAGC,yCAAA,CACA,YAAA,CAGD,qCACC,WAAA,CACA,YAAA,CACA,0BAAA,CACA,kBAAA,CACA,eAAA,CACA,kBAAA,CACA,sBAAA,CAEA,4CACC,eAAA,CAIF,qCACC,WAAA,CACA,+BAAA,CACA,eAAA,CACA,kBAAA,CACA,sBAAA,CAIF,4BACC,UAAA,CAGD,uBACC,eAAA,CACA,UAAA",sourcesContent:[`
.deck-card {
	display: flex;
	border: 2px solid var(--color-border);
	border-radius: var(--border-radius-large);
	font-size: 100%;
	background-color: var(--color-main-background);
	max-width: 300px;
	padding: 8px 16px;
	flex-direction: column;
	white-space: nowrap;
	transition: border-color 0.1s ease-in-out;

	&:hover,
	&:focus,
	&:focus-visible {
		border-color: var(--color-primary-element);
		outline: none;
	}

	&__lineone {
		height: 30px;
		display: flex;
		justify-content: flex-start;
		align-items: center;
		overflow: hidden;
		white-space: nowrap;
		text-overflow: ellipsis;

		.title {
			margin-left: 8px;
		}
	}

	&__linetwo {
		height: 30px;
		color: var(--color-text-lighter);
		overflow: hidden;
		white-space: nowrap;
		text-overflow: ellipsis;
	}
}

.icon-deck {
	opacity: .8;
}

.wide {
	max-width: 400px;
	width: 100%;
}

`],sourceRoot:""}]);const F=A},7981:(h,y,o)=>{"use strict";o.d(y,{Z:()=>F});var C=o(87537),m=o.n(C),g=o(23645),v=o.n(g),A=v()(m());A.push([h.id,".location[data-v-eab1e434]{display:flex;flex-direction:column;position:relative;z-index:1;white-space:initial;overflow:hidden;border-radius:var(--border-radius-large);height:300px;max-height:30vh;margin:4px;transition:outline .1s ease-in-out}.location[data-v-eab1e434]:hover,.location[data-v-eab1e434]:focus,.location[data-v-eab1e434]:focus-visible{outline:2px solid var(--color-primary-element)}.location.wide[data-v-eab1e434]{width:100%;height:100%;margin:0}","",{version:3,sources:["webpack://./src/components/MessagesList/MessagesGroup/Message/MessagePart/Location.vue"],names:[],mappings:"AACA,2BACC,YAAA,CACA,qBAAA,CACA,iBAAA,CACA,SAAA,CACA,mBAAA,CACA,eAAA,CACA,wCAAA,CACA,YAAA,CACA,eAAA,CACA,UAAA,CACA,kCAAA,CAEA,2GAGC,8CAAA,CAGD,gCACC,UAAA,CACA,WAAA,CACA,QAAA",sourcesContent:[`
.location {
	display: flex;
	flex-direction: column;
	position: relative;
	z-index: 1;
	white-space: initial;
	overflow: hidden;
	border-radius: var(--border-radius-large);
	height: 300px;
	max-height: 30vh;
	margin: 4px;
	transition: outline 0.1s ease-in-out;

	&:hover,
	&:focus,
	&:focus-visible {
		outline: 2px solid var(--color-primary-element);
	}

	&.wide {
		width: 100%;
		height: 100%;
		margin: 0;
	}
}
`],sourceRoot:""}]);const F=A},73902:(h,y,o)=>{"use strict";o.d(y,{Z:()=>F});var C=o(87537),m=o.n(C),g=o(23645),v=o.n(g),A=v()(m());A.push([h.id,".mention[data-v-76a461bb]{display:contents;white-space:nowrap}","",{version:3,sources:["webpack://./src/components/MessagesList/MessagesGroup/Message/MessagePart/Mention.vue"],names:[],mappings:"AACA,0BACC,gBAAA,CACA,kBAAA",sourcesContent:[`
.mention {
	display: contents;
	white-space: nowrap;
}
`],sourceRoot:""}]);const F=A},49897:(h,y,o)=>{"use strict";o.d(y,{Z:()=>F});var C=o(87537),m=o.n(C),g=o(23645),v=o.n(g),A=v()(m());A.push([h.id,".wrapper[data-v-d33bb6d8]{display:contents}.poll[data-v-d33bb6d8]{display:flex;border:2px solid var(--color-border);max-width:300px;padding:0 16px 16px 16px;flex-direction:column;background:var(--color-main-background);border-radius:var(--border-radius-large);justify-content:space-between;transition:border-color .1s ease-in-out}.poll[data-v-d33bb6d8]:hover,.poll[data-v-d33bb6d8]:focus,.poll[data-v-d33bb6d8]:focus-visible{border-color:var(--color-primary-element);outline:none}.poll__header[data-v-d33bb6d8]{display:flex;font-weight:bold;gap:8px;white-space:normal;align-items:flex-start;top:0;padding:20px 0 8px;word-wrap:anywhere}.poll__header span[data-v-d33bb6d8]{margin-bottom:auto}.poll__footer[data-v-d33bb6d8]{color:var(--color-text-lighter);white-space:normal;margin-top:8px}.poll__modal[data-v-d33bb6d8]{position:relative;padding:20px}.poll__modal-title[data-v-d33bb6d8]{margin:0;font-size:18px;font-weight:bold}.poll__modal-options[data-v-d33bb6d8]{word-wrap:anywhere;margin-top:8px}.poll__modal-actions[data-v-d33bb6d8]{position:sticky;bottom:0;display:flex;justify-content:center;gap:8px;padding:8px 0 0;background-color:var(--color-main-background)}.poll__summary[data-v-d33bb6d8]{color:var(--color-text-maxcontrast);margin-bottom:16px}.poll__option[data-v-d33bb6d8]{margin-bottom:4px}.results__options[data-v-d33bb6d8]{display:flex;flex-direction:column;gap:24px;word-wrap:anywhere;margin:8px 0 20px 0}.results__option[data-v-d33bb6d8]{display:flex;flex-direction:column}.results__option__details[data-v-d33bb6d8]{display:flex;margin-bottom:8px}.results__option-subtitle[data-v-d33bb6d8]{color:var(--color-text-maxcontrast)}.results__option-progress[data-v-d33bb6d8]{margin-top:4px}.results__option-title[data-v-d33bb6d8]{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:4px}.results__option-title .percentage[data-v-d33bb6d8]{white-space:nowrap;margin-left:16px}.poll-closed[data-v-d33bb6d8]{display:flex;justify-content:center;margin-top:4px}.critical[data-v-d33bb6d8] .action-button{color:var(--color-error) !important}","",{version:3,sources:["webpack://./src/components/MessagesList/MessagesGroup/Message/MessagePart/Poll.vue"],names:[],mappings:"AACA,0BACC,gBAAA,CAGD,uBACC,YAAA,CACA,oCAAA,CACA,eAAA,CACA,wBAAA,CACA,qBAAA,CACA,uCAAA,CACA,wCAAA,CACA,6BAAA,CACA,uCAAA,CAEA,+FAGC,yCAAA,CACA,YAAA,CAGD,+BACC,YAAA,CACA,gBAAA,CACA,OAAA,CACA,kBAAA,CACA,sBAAA,CACA,KAAA,CACA,kBAAA,CACA,kBAAA,CAEA,oCACC,kBAAA,CAKF,+BACC,+BAAA,CACA,kBAAA,CACA,cAAA,CAGD,8BACC,iBAAA,CACA,YAAA,CAGD,oCACC,QAAA,CACA,cAAA,CACA,gBAAA,CAGD,sCACC,kBAAA,CACA,cAAA,CAGD,sCACC,eAAA,CACA,QAAA,CACA,YAAA,CACA,sBAAA,CACA,OAAA,CACA,eAAA,CACA,6CAAA,CAGD,gCACC,mCAAA,CACA,kBAAA,CAGD,+BACC,iBAAA,CAIF,mCACC,YAAA,CACA,qBAAA,CACA,QAAA,CACA,kBAAA,CACA,mBAAA,CAGD,kCACC,YAAA,CACA,qBAAA,CAEA,2CACC,YAAA,CACA,iBAAA,CAGD,2CACC,mCAAA,CAGD,2CACC,cAAA,CAIF,wCACC,YAAA,CACA,6BAAA,CACA,sBAAA,CACA,iBAAA,CAEA,oDACC,kBAAA,CACA,gBAAA,CAIF,8BACC,YAAA,CACA,sBAAA,CACA,cAAA,CAIA,0CACC,mCAAA",sourcesContent:[`
.wrapper {
	display: contents;
}

.poll {
	display: flex;
	border: 2px solid var(--color-border);
	max-width: 300px;
	padding: 0 16px 16px 16px;
	flex-direction: column;
	background: var(--color-main-background);
	border-radius: var(--border-radius-large);
	justify-content: space-between;
	transition: border-color 0.1s ease-in-out;

	&:hover,
	&:focus,
	&:focus-visible {
		border-color: var(--color-primary-element);
		outline: none;
	}

	&__header {
		display: flex;
		font-weight: bold;
		gap: 8px;
		white-space: normal;
		align-items: flex-start;
		top: 0;
		padding: 20px 0 8px;
		word-wrap: anywhere;

		span {
			margin-bottom: auto;
		}

	}

	&__footer {
		color: var(--color-text-lighter);
		white-space: normal;
		margin-top: 8px;
	}

	&__modal {
		position: relative;
		padding: 20px;
	}

	&__modal-title {
		margin: 0;
		font-size: 18px;
		font-weight: bold;
	}

	&__modal-options {
		word-wrap: anywhere;
		margin-top: 8px;
	}

	&__modal-actions {
		position: sticky;
		bottom: 0;
		display: flex;
		justify-content: center;
		gap: 8px;
		padding: 8px 0 0;
		background-color: var(--color-main-background);
	}

	&__summary {
		color: var(--color-text-maxcontrast);
		margin-bottom: 16px;
	}

	&__option {
		margin-bottom: 4px;
	}
}

.results__options {
	display: flex;
	flex-direction: column;
	gap: 24px;
	word-wrap: anywhere;
	margin: 8px 0 20px 0;
}

.results__option {
	display: flex;
	flex-direction: column;

	&__details {
		display: flex;
		margin-bottom: 8px;
	}

	&-subtitle {
		color: var(--color-text-maxcontrast);
	}

	&-progress {
		margin-top: 4px;
	}
}

.results__option-title {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 4px;

	.percentage {
		white-space: nowrap;
		margin-left: 16px;
	}
}

.poll-closed {
	display: flex;
	justify-content: center;
	margin-top: 4px;
}

.critical {
	:deep(.action-button) {
		color: var(--color-error) !important;
	}
}
`],sourceRoot:""}]);const F=A},34317:(h,y,o)=>{"use strict";o.d(y,{Z:()=>F});var C=o(87537),m=o.n(C),g=o(23645),v=o.n(g),A=v()(m());A.push([h.id,".poll-voters-details[data-v-36590a64]{max-width:30%;margin-right:8px}.poll-voters-details .poll-voters-details__button[data-v-36590a64],.poll-voters-details__button[data-v-36590a64] .button-vue__icon{min-height:auto;height:auto;min-width:auto;width:auto !important;flex-wrap:wrap;justify-content:flex-start;border-radius:0;overflow:visible}.poll-voters-details__popover[data-v-36590a64]{padding:8px;max-height:400px;overflow-y:scroll}.poll-voters-details__display-name[data-v-36590a64]{margin-left:4px}.poll-voters-details__list-item[data-v-36590a64]{display:flex;justify-content:flex-start;align-items:center;min-width:150px;height:32px;margin-bottom:var(--margin-small)}","",{version:3,sources:["webpack://./src/components/MessagesList/MessagesGroup/Message/MessagePart/PollVotersDetails.vue"],names:[],mappings:"AAEA,sCACC,aAAA,CACA,gBAAA,CAEA,mIAEC,eAAA,CACA,WAAA,CACA,cAAA,CACA,qBAAA,CACA,cAAA,CACA,0BAAA,CACA,eAAA,CACA,gBAAA,CAGD,+CACC,WAAA,CACA,gBAAA,CACA,iBAAA,CAGD,oDACE,eAAA,CAGF,iDACC,YAAA,CACA,0BAAA,CACA,kBAAA,CACA,eAAA,CACA,WAAA,CACA,iCAAA",sourcesContent:[`

.poll-voters-details {
	max-width: 30%;
	margin-right: 8px;

	& &__button,
	&__button :deep(.button-vue__icon) {
		min-height: auto;
		height: auto;
		min-width: auto;
		width: auto !important;
		flex-wrap: wrap;
		justify-content: flex-start;
		border-radius: 0;
		overflow: visible;
	}

	&__popover {
		padding: 8px;
		max-height: 400px;
		overflow-y: scroll;
	}

	&__display-name {
			margin-left: 4px;
		}

	&__list-item {
		display: flex;
		justify-content: flex-start;
		align-items: center;
		min-width: 150px;
		height: 32px;
		margin-bottom: var(--margin-small);
	}
}

`],sourceRoot:""}]);const F=A},18333:(h,y,o)=>{"use strict";o.d(y,{Z:()=>F});var C=o(87537),m=o.n(C),g=o(23645),v=o.n(g),A=v()(m());A.push([h.id,".wrapper[data-v-728df249]{max-width:800px;display:flex;margin:auto;padding:0}.wrapper[data-v-728df249]:focus{background-color:rgba(47,47,47,.068)}.messages[data-v-728df249]{flex:auto;display:flex;padding:8px 0 8px 0;flex-direction:column;width:100%;min-width:0}.messages__avatar[data-v-728df249]{position:sticky;top:0;height:52px;width:52px;padding:18px 10px 10px 10px}.messages__author[data-v-728df249]{padding:4px 0 0 8px;color:var(--color-text-maxcontrast)}","",{version:3,sources:["webpack://./src/components/MessagesList/MessagesGroup/MessagesGroup.vue","webpack://./src/assets/variables.scss"],names:[],mappings:"AAGA,0BACC,eCmByB,CDlBzB,YAAA,CACA,WAAA,CACA,SAAA,CAEA,gCACC,oCAAA,CAIF,2BACC,SAAA,CACA,YAAA,CACA,mBAAA,CACA,qBAAA,CACA,UAAA,CACA,WAAA,CAEA,mCACC,eAAA,CACA,KAAA,CACA,WAAA,CACA,UAAA,CACA,2BAAA,CAGD,mCACC,mBAAA,CACA,mCAAA",sourcesContent:[`
@import '../../../assets/variables';

.wrapper {
	max-width: $messages-list-max-width;
	display: flex;
	margin: auto;
	padding: 0;

	&:focus {
		background-color: rgba(47, 47, 47, 0.068);
	}
}

.messages {
	flex: auto;
	display: flex;
	padding: 8px 0 8px 0;
	flex-direction: column;
	width: 100%;
	min-width: 0;

	&__avatar {
		position: sticky;
		top: 0;
		height: 52px;
		width: 52px;
		padding: 18px 10px 10px 10px;
	}

	&__author {
		padding: 4px 0 0 8px;
		color: var(--color-text-maxcontrast);
	}
}
`,`/**
 * @copyright Copyright (c) 2019 John Molakvo\xE6 <skjnldsv@protonmail.com>
 *
 * @author John Molakvo\xE6 <skjnldsv@protonmail.com>
 *
 * @license GNU AGPL version 3 or any later version
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 *
 */

//messages list max width
$messages-list-max-width: 800px;

//message utils width
$message-utils-width: 100px;

// background color of call container
$color-call-background: rgba(34, 34, 34, 0.8);

// transition
$transition-duration-quick: var(--animation-quick, 100ms);
$transition-duration-slow: var(--animation-slow, 300ms);

$transition: all $transition-duration-quick ease-in-out;
$transition-slow: all $transition-duration-slow ease-in-out;
`],sourceRoot:""}]);const F=A},32317:(h,y,o)=>{"use strict";o.d(y,{Z:()=>F});var C=o(87537),m=o.n(C),g=o(23645),v=o.n(g),A=v()(m());A.push([h.id,".messages-group__system[data-v-ce3d7186]{display:flex;flex-direction:column}.wrapper[data-v-ce3d7186]{max-width:800px;display:flex;margin:auto;padding:0}.wrapper--system[data-v-ce3d7186]{flex-direction:column;padding-left:calc(var(--default-clickable-area) + 8px)}.wrapper[data-v-ce3d7186]:focus{background-color:rgba(47,47,47,.068)}.messages[data-v-ce3d7186]{flex:auto;display:flex;flex-direction:column;width:100%;min-width:0}.messages--collapsed[data-v-ce3d7186]{border-radius:var(--border-radius-large);background-color:var(--color-background-hover)}","",{version:3,sources:["webpack://./src/components/MessagesList/MessagesGroup/MessagesSystemGroup.vue","webpack://./src/assets/variables.scss"],names:[],mappings:"AAGA,yCACC,YAAA,CACA,qBAAA,CAGD,0BACC,eCcyB,CDbzB,YAAA,CACA,WAAA,CACA,SAAA,CACA,kCACC,qBAAA,CACA,sDAAA,CAED,gCACC,oCAAA,CAIF,2BACC,SAAA,CACA,YAAA,CACA,qBAAA,CACA,UAAA,CACA,WAAA,CAIA,sCACC,wCAAA,CACA,8CAAA",sourcesContent:[`
@import '../../../assets/variables';

.messages-group__system {
	display: flex;
	flex-direction: column;
}

.wrapper {
	max-width: $messages-list-max-width;
	display: flex;
	margin: auto;
	padding: 0;
	&--system {
		flex-direction: column;
		padding-left: calc(var(--default-clickable-area) + 8px);
	}
	&:focus {
		background-color: rgba(47, 47, 47, 0.068);
	}
}

.messages {
	flex: auto;
	display: flex;
	flex-direction: column;
	width: 100%;
	min-width: 0;

	&--header {
	}
	&--collapsed {
		border-radius: var(--border-radius-large);
		background-color: var(--color-background-hover);
	}
}
`,`/**
 * @copyright Copyright (c) 2019 John Molakvo\xE6 <skjnldsv@protonmail.com>
 *
 * @author John Molakvo\xE6 <skjnldsv@protonmail.com>
 *
 * @license GNU AGPL version 3 or any later version
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 *
 */

//messages list max width
$messages-list-max-width: 800px;

//message utils width
$message-utils-width: 100px;

// background color of call container
$color-call-background: rgba(34, 34, 34, 0.8);

// transition
$transition-duration-quick: var(--animation-quick, 100ms);
$transition-duration-slow: var(--animation-slow, 300ms);

$transition: all $transition-duration-quick ease-in-out;
$transition-slow: all $transition-duration-slow ease-in-out;
`],sourceRoot:""}]);const F=A},85570:(h,y,o)=>{"use strict";o.d(y,{Z:()=>F});var C=o(87537),m=o.n(C),g=o(23645),v=o.n(g),A=v()(m());A.push([h.id,".scroller[data-v-08fab243]{position:relative;flex:1 0;padding-top:20px;overflow-y:scroll;overflow-x:hidden;border-bottom:1px solid var(--color-border);transition:all var(--animation-quick, 100ms) ease-in-out}.scroller--chatScrolledToBottom[data-v-08fab243]{border-bottom-color:rgba(0,0,0,0)}.scroller__loading[data-v-08fab243]{position:absolute;top:10px;left:50%;height:40px;width:40px;transform:translatex(-64px)}.messages-list__empty-content[data-v-08fab243]{height:100%}.messages-group__date[data-v-08fab243]{display:block;text-align:center;padding-top:20px;position:relative;margin:20px 0}.messages-group__date-text[data-v-08fab243]{margin-right:calc(var(--default-clickable-area)*2);content:attr(data-date);padding:4px 12px;left:50%;color:var(--color-text-maxcontrast);background-color:var(--color-background-dark);border-radius:var(--border-radius-pill)}.messages-group[data-v-08fab243]:last-child{margin-bottom:16px}","",{version:3,sources:["webpack://./src/components/MessagesList/MessagesList.vue","webpack://./src/assets/variables.scss"],names:[],mappings:"AAGA,2BACC,iBAAA,CACA,QAAA,CACA,gBAAA,CACA,iBAAA,CACA,iBAAA,CACA,2CAAA,CACA,wDCyBY,CDvBZ,iDACC,iCAAA,CAGD,oCACC,iBAAA,CACA,QAAA,CACA,QAAA,CACA,WAAA,CACA,UAAA,CACA,2BAAA,CAKA,+CACE,WAAA,CAKH,uCACC,aAAA,CACA,iBAAA,CACA,gBAAA,CACA,iBAAA,CACA,aAAA,CAGD,4CACC,kDAAA,CACA,uBAAA,CACA,gBAAA,CACA,QAAA,CACA,mCAAA,CACA,6CAAA,CACA,uCAAA,CAGD,4CACC,kBAAA",sourcesContent:[`
@import '../../assets/variables';

.scroller {
	position: relative;
	flex: 1 0;
	padding-top: 20px;
	overflow-y: scroll;
	overflow-x: hidden;
	border-bottom: 1px solid var(--color-border);
	transition: $transition;

	&--chatScrolledToBottom {
		border-bottom-color: transparent;
	}

	&__loading {
		position: absolute;
		top: 10px;
		left: 50%;
		height: 40px;
		width: 40px;
		transform: translatex(-64px);
	}
}

.messages-list {
  &__empty-content {
    height: 100%;
  }
}

.messages-group {
	&__date {
		display: block;
		text-align: center;
		padding-top: 20px;
		position: relative;
		margin: 20px 0;
	}

	&__date-text {
		margin-right: calc(var(--default-clickable-area) * 2);
		content: attr(data-date);
		padding: 4px 12px;
		left: 50%;
		color: var(--color-text-maxcontrast);
		background-color: var(--color-background-dark);
		border-radius: var(--border-radius-pill);
	}

	&:last-child {
		margin-bottom: 16px;
	}
}
`,`/**
 * @copyright Copyright (c) 2019 John Molakvo\xE6 <skjnldsv@protonmail.com>
 *
 * @author John Molakvo\xE6 <skjnldsv@protonmail.com>
 *
 * @license GNU AGPL version 3 or any later version
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 *
 */

//messages list max width
$messages-list-max-width: 800px;

//message utils width
$message-utils-width: 100px;

// background color of call container
$color-call-background: rgba(34, 34, 34, 0.8);

// transition
$transition-duration-quick: var(--animation-quick, 100ms);
$transition-duration-slow: var(--animation-slow, 300ms);

$transition: all $transition-duration-quick ease-in-out;
$transition-slow: all $transition-duration-slow ease-in-out;
`],sourceRoot:""}]);const F=A},26447:(h,y,o)=>{"use strict";o.d(y,{Z:()=>F});var C=o(87537),m=o.n(C),g=o(23645),v=o.n(g),A=v()(m());A.push([h.id,".upload-editor[data-v-11996d14]{height:100%;display:flex;flex-direction:column;justify-content:space-between;padding:16px}.upload-editor__previews[data-v-11996d14]{display:flex;position:relative;overflow:auto;flex-wrap:wrap}.upload-editor__previews.dragging-over[data-v-11996d14]{outline:3px dashed var(--color-primary-element);border-radius:var(--border-radius-large)}.upload-editor__actions[data-v-11996d14]{display:flex;justify-content:flex-end;gap:4px;padding:12px 0}.add-more[data-v-11996d14]{width:180px;height:180px;display:flex;margin:10px}.add-more__button[data-v-11996d14]{margin:auto}","",{version:3,sources:["webpack://./src/components/NewMessage/NewMessageUploadEditor.vue"],names:[],mappings:"AACA,gCACC,WAAA,CACA,YAAA,CACA,qBAAA,CACA,6BAAA,CACA,YAAA,CAEA,0CACC,YAAA,CACA,iBAAA,CACA,aAAA,CACA,cAAA,CAEA,wDACC,+CAAA,CACA,wCAAA,CAGF,yCACC,YAAA,CACA,wBAAA,CACA,OAAA,CACA,cAAA,CAIF,2BACC,WAAA,CACA,YAAA,CACA,YAAA,CACA,WAAA,CACA,mCACC,WAAA",sourcesContent:[`
.upload-editor {
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 16px;

	&__previews {
		display: flex;
		position: relative;
		overflow: auto;
		flex-wrap: wrap;

		&.dragging-over {
			outline: 3px dashed var(--color-primary-element);
			border-radius: var(--border-radius-large);
		}
	}
	&__actions {
		display: flex;
		justify-content: flex-end;
		gap: 4px;
		padding: 12px 0;
	}
}

.add-more {
	width: 180px;
	height: 180px;
	display: flex;
	margin: 10px;
	&__button {
		margin: auto;
	}
}
`],sourceRoot:""}]);const F=A},62376:(h,y,o)=>{"use strict";o.d(y,{Z:()=>F});var C=o(87537),m=o.n(C),g=o(23645),v=o.n(g),A=v()(m());A.push([h.id,"[data-v-3247a422] .modal-container{height:700px}[data-v-3247a422] .modal-container__close{z-index:1}.talk-modal[data-v-3247a422]{height:80vh}#modal-inner[data-v-3247a422]{width:100%;padding:16px;margin:0 auto;position:relative;display:flex;align-items:center;justify-content:center;height:100%;box-sizing:border-box}#modal-inner h2[data-v-3247a422]{margin-bottom:4px}#modal-content[data-v-3247a422]{position:absolute;width:calc(100% - 40px);height:calc(100% - 40px);display:flex;flex-direction:column}#room-list[data-v-3247a422]{overflow-y:auto;flex:0 1 auto;height:100%}.no-match-message[data-v-3247a422]{padding:40px 0;text-align:center}.no-match-title[data-v-3247a422]{font-weight:normal}li[data-v-3247a422]{padding:6px;border:1px solid rgba(0,0,0,0);display:flex}li[data-v-3247a422]:hover,li[data-v-3247a422]:focus{background-color:var(--color-background-dark);border-radius:var(--border-radius-pill)}li.selected[data-v-3247a422]{background-color:var(--color-primary-element-light);border-radius:var(--border-radius-pill)}li>span[data-v-3247a422]{padding:8px 5px 8px 10px;vertical-align:middle;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}#modal-buttons[data-v-3247a422]{overflow:hidden;flex-shrink:0;margin-left:auto}.subtitle[data-v-3247a422]{color:var(--color-text-maxcontrast);margin-bottom:8px}.search-form[data-v-3247a422]{margin-bottom:10px}","",{version:3,sources:["webpack://./src/components/RoomSelector.vue"],names:[],mappings:"AAEA,mCACC,YAAA,CAKD,0CACC,SAAA,CAGD,6BACC,WAAA,CAGD,8BACC,UAAA,CACA,YAAA,CACA,aAAA,CACA,iBAAA,CACA,YAAA,CACA,kBAAA,CACA,sBAAA,CACA,WAAA,CACA,qBAAA,CAEA,iCACC,iBAAA,CAIF,gCACC,iBAAA,CACA,uBAAA,CACA,wBAAA,CACA,YAAA,CACA,qBAAA,CAGD,4BACC,eAAA,CACA,aAAA,CACA,WAAA,CAGD,mCACC,cAAA,CACA,iBAAA,CAID,iCACC,kBAAA,CAGD,oBACC,WAAA,CACA,8BAAA,CACA,YAAA,CAEA,oDAEC,6CAAA,CACA,uCAAA,CAGD,6BACC,mDAAA,CACA,uCAAA,CAGD,yBACC,wBAAA,CACA,qBAAA,CACA,sBAAA,CACA,kBAAA,CACA,eAAA,CAIF,gCACC,eAAA,CACA,aAAA,CACA,gBAAA,CAGD,2BACC,mCAAA,CACA,iBAAA,CAGD,8BACC,kBAAA",sourcesContent:[`

:deep(.modal-container) {
	height: 700px;
}

/* FIXME: remove after https://github.com/nextcloud-libraries/nextcloud-vue/pull/4350 regression is solved */
/* Force modal close button to be above modal content */
:deep(.modal-container__close) {
	z-index: 1;
}

.talk-modal {
	height: 80vh;
}

#modal-inner {
	width: 100%;
	padding: 16px;
	margin: 0 auto;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	box-sizing: border-box;

	h2 {
		margin-bottom: 4px;
	}
}

#modal-content {
	position: absolute;
	width: calc(100% - 40px);
	height: calc(100% - 40px);
	display: flex;
	flex-direction: column;
}

#room-list {
	overflow-y: auto;
	flex: 0 1 auto;
	height: 100%;
}

.no-match-message {
	padding: 40px 0;
	text-align: center;

}

.no-match-title {
	font-weight: normal;
}

li {
	padding: 6px;
	border: 1px solid transparent;
	display: flex;

	&:hover,
	&:focus {
		background-color: var(--color-background-dark);
		border-radius: var(--border-radius-pill);
	}

	&.selected {
		background-color: var(--color-primary-element-light);
		border-radius: var(--border-radius-pill);
	}

	& > span {
		padding: 8px 5px 8px 10px;
		vertical-align: middle;
		text-overflow: ellipsis;
		white-space: nowrap;
		overflow: hidden;
	}
}

#modal-buttons {
	overflow: hidden;
	flex-shrink: 0;
	margin-left: auto;
}

.subtitle {
	color: var(--color-text-maxcontrast);
	margin-bottom: 8px;
}

.search-form {
	margin-bottom: 10px;
}
`],sourceRoot:""}]);const F=A},72462:(h,y,o)=>{"use strict";o.d(y,{Z:()=>F});var C=o(87537),m=o.n(C),g=o(23645),v=o.n(g),A=v()(m());A.push([h.id,`
.talk-tab__wrapper[data-v-0c508622]{
	height: 100%;
}
.call-button[data-v-0c508622] {
	/* Center button horizontally. */
	margin-left: auto;
	margin-right: auto;

	margin-top: 10px;
	margin-bottom: 10px;
}
.chatView[data-v-0c508622] {
	overflow: hidden;
	/* Considering the call button height (44px + 10px * 2) */
	height: calc(100% - 64px);
}
`,"",{version:3,sources:["webpack://./src/views/FilesSidebarChatView.vue"],names:[],mappings:";AAsDA;CACA,YAAA;AACA;AAEA;CACA,gCAAA;CACA,iBAAA;CACA,kBAAA;;CAEA,gBAAA;CACA,mBAAA;AACA;AAEA;CACA,gBAAA;CACA,yDAAA;CACA,yBAAA;AACA",sourcesContent:[`<!--
  - @copyright Copyright (c) 2023 Dorra Jaouad <dorra.jaoued1@gmail.com>
  -
  - @author Dorra Jaouad <dorra.jaoued1@gmail.com>
  -
  - @license AGPL-3.0-or-later
  -
  - This program is free software: you can redistribute it and/or modify
  - it under the terms of the GNU Affero General Public License as
  - published by the Free Software Foundation, either version 3 of the
  - License, or (at your option) any later version.
  -
  - This program is distributed in the hope that it will be useful,
  - but WITHOUT ANY WARRANTY; without even the implied warranty of
  - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  - GNU Affero General Public License for more details.
  -
  - You should have received a copy of the GNU Affero General Public License
  - along with this program. If not, see <http://www.gnu.org/licenses/>.
-->

<template>
	<div class="talk-tab__wrapper">
		<CallButton class="call-button" />
		<ChatView />
		<MediaSettings :initialize-on-mounted="false" :recording-consent-given.sync="recordingConsentGiven" />
	</div>
</template>
<script>

import ChatView from '../components/ChatView.vue'
import MediaSettings from '../components/MediaSettings/MediaSettings.vue'
import CallButton from '../components/TopBar/CallButton.vue'

export default {

	name: 'FilesSidebarChatView',

	components: {
		CallButton,
		ChatView,
		MediaSettings,
	},

	data() {
		return {
			recordingConsentGiven: false,
		}
	},
}

<\/script>

<style scoped>
.talk-tab__wrapper{
	height: 100%;
}

.call-button {
	/* Center button horizontally. */
	margin-left: auto;
	margin-right: auto;

	margin-top: 10px;
	margin-bottom: 10px;
}

.chatView {
	overflow: hidden;
	/* Considering the call button height (44px + 10px * 2) */
	height: calc(100% - 64px);
}
</style>
`],sourceRoot:""}]);const F=A},60809:h=>{h.exports=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g},29932:h=>{function y(o,C){for(var m=-1,g=o==null?0:o.length,v=Array(g);++m<g;)v[m]=C(o[m],m,o);return v}h.exports=y},80531:(h,y,o)=>{var C=o(62705),m=o(29932),g=o(1469),v=o(33448),A=1/0,F=C?C.prototype:void 0,Ue=F?F.toString:void 0;function ge(f){if(typeof f=="string")return f;if(g(f))return m(f,ge)+"";if(v(f))return Ue?Ue.call(f):"";var he=f+"";return he=="0"&&1/f==-A?"-0":he}h.exports=ge},33448:(h,y,o)=>{var C=o(44239),m=o(37005),g="[object Symbol]";function v(A){return typeof A=="symbol"||m(A)&&C(A)==g}h.exports=v},79833:(h,y,o)=>{var C=o(80531);function m(g){return g==null?"":C(g)}h.exports=m},73955:(h,y,o)=>{var C=o(79833),m=0;function g(v){var A=++m;return C(v)+A}h.exports=g},5576:(h,y,o)=>{"use strict";o.r(y),o.d(y,{default:()=>kl});var C=function(){var e=this,s=e._self._c;return s("div",{staticClass:"talk-tab__wrapper"},[s("CallButton",{staticClass:"call-button"}),e._v(" "),s("ChatView"),e._v(" "),s("MediaSettings",{attrs:{"initialize-on-mounted":!1,"recording-consent-given":e.recordingConsentGiven},on:{"update:recordingConsentGiven":function(i){e.recordingConsentGiven=i},"update:recording-consent-given":function(i){e.recordingConsentGiven=i}}})],1)},m=[],g=function(){var e=this,s=e._self._c;return s("div",{staticClass:"chatView",on:{dragover:function(i){return i.preventDefault(),e.handleDragOver.apply(null,arguments)},dragleave:function(i){return i.preventDefault(),e.handleDragLeave.apply(null,arguments)},drop:function(i){return i.preventDefault(),e.handleDropFiles.apply(null,arguments)}}},[e.isGuestWithoutDisplayName?s("GuestWelcomeWindow",{attrs:{token:e.token}}):e._e(),e._v(" "),s("TransitionWrapper",{attrs:{name:"slide-up",mode:"out-in"}},[s("div",{directives:[{name:"show",rawName:"v-show",value:e.isDraggingOver,expression:"isDraggingOver"}],staticClass:"dragover"},[s("div",{staticClass:"drop-hint"},[s("div",{staticClass:"drop-hint__icon",class:{"icon-upload":!e.isGuest&&!e.isReadOnly,"icon-user":e.isGuest,"icon-error":e.isReadOnly}}),e._v(" "),s("h2",{staticClass:"drop-hint__text"},[e._v(`
					`+e._s(e.dropHintText)+`
				`)])])])]),e._v(" "),s("MessagesList",{attrs:{role:"region","aria-label":e.t("spreed","Conversation messages"),token:e.token,"is-chat-scrolled-to-bottom":e.isChatScrolledToBottom,"is-visible":e.isVisible},on:{"update:isChatScrolledToBottom":function(i){e.isChatScrolledToBottom=i},"update:is-chat-scrolled-to-bottom":function(i){e.isChatScrolledToBottom=i}}}),e._v(" "),s("div",{staticClass:"scroll-to-bottom"},[s("TransitionWrapper",{attrs:{name:"fade"}},[s("NcButton",{directives:[{name:"show",rawName:"v-show",value:!e.isChatScrolledToBottom,expression:"!isChatScrolledToBottom"}],staticClass:"scroll-to-bottom__button",attrs:{type:"secondary","aria-label":e.t("spreed","Scroll to bottom")},on:{click:e.smoothScrollToBottom},scopedSlots:e._u([{key:"icon",fn:function(){return[s("ChevronDoubleDown",{attrs:{size:20}})]},proxy:!0}])})],1)],1),e._v(" "),e.containerId?s("NewMessage",{key:e.containerId,attrs:{role:"region",token:e.token,container:e.containerId,"has-typing-indicator":"","aria-label":e.t("spreed","Post message")}}):e._e(),e._v(" "),s("NewMessageUploadEditor")],1)},v=[],A=function(){var e=this,s=e._self._c;return s("span",e._b({staticClass:"material-design-icon chevron-double-down-icon",attrs:{"aria-hidden":!e.title,"aria-label":e.title,role:"img"},on:{click:function(i){return e.$emit("click",i)}}},"span",e.$attrs,!1),[s("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[s("path",{attrs:{d:"M16.59,5.59L18,7L12,13L6,7L7.41,5.59L12,10.17L16.59,5.59M16.59,11.59L18,13L12,19L6,13L7.41,11.59L12,16.17L16.59,11.59Z"}},[e.title?s("title",[e._v(e._s(e.title))]):e._e()])])])},F=[];const ge={name:"ChevronDoubleDownIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var f=o(51900),he=(0,f.Z)(ge,A,F,!1,null,null,null);const It=he.exports;var Z=o(928),Rt=function(){var e=this,s=e._self._c;return s("NcModal",{attrs:{container:e.container,"can-close":!1,"close-on-click-outside":!1,size:"small"}},[s("div",{staticClass:"modal__content"},[s("div",{staticClass:"conversation-information"},[s("ConversationIcon",{attrs:{item:e.conversation,"hide-user-status":""}}),e._v(" "),s("h2",[e._v(e._s(e.conversationDisplayName))])],1),e._v(" "),s("p",{staticClass:"description"},[e._v(`
			`+e._s(e.conversationDescription)+`
		`)]),e._v(" "),s("label",{attrs:{for:"textField"}},[e._v(e._s(e.t("spreed","Enter your name")))]),e._v(" "),s("NcTextField",{staticClass:"username-form__input",attrs:{id:"textField",value:e.guestUserName,placeholder:e.t("spreed","Guest"),"show-trailing-button":!1,"label-outside":""},on:{"update:value":function(i){e.guestUserName=i},keydown:function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"enter",13,i.key,"Enter")?null:e.handleChooseUserName.apply(null,arguments)}}}),e._v(" "),s("NcButton",{staticClass:"submit-button",attrs:{type:"primary",disabled:e.invalidGuestUsername},on:{click:e.handleChooseUserName},scopedSlots:e._u([{key:"icon",fn:function(){return[s("Check",{attrs:{size:20}})]},proxy:!0}])},[e._v(`
			`+e._s(e.t("spreed","Submit name and join"))+`
			`)])],1)])},Pt=[],Nt=function(){var e=this,s=e._self._c;return s("span",e._b({staticClass:"material-design-icon check-bold-icon",attrs:{"aria-hidden":!e.title,"aria-label":e.title,role:"img"},on:{click:function(i){return e.$emit("click",i)}}},"span",e.$attrs,!1),[s("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[s("path",{attrs:{d:"M9,20.42L2.79,14.21L5.62,11.38L9,14.77L18.88,4.88L21.71,7.71L9,20.42Z"}},[e.title?s("title",[e._v(e._s(e.title))]):e._e()])])])},jt=[];const $t={name:"CheckBoldIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var Ut=(0,f.Z)($t,Nt,jt,!1,null,null,null);const Qe=Ut.exports;var W=o(94504),qe=o(49368),et=o(41673),Ce=o(70012);const Zt={name:"GuestWelcomeWindow",components:{NcModal:W.Z,NcTextField:qe.Z,ConversationIcon:et.Z,NcButton:Z.Z,Check:Qe},props:{token:{type:String,required:!0}},setup(){return{guestNameStore:(0,Ce.t)()}},data(){return{guestUserName:""}},computed:{container(){return this.$store.getters.getMainContainerSelector()},conversation(){return this.$store.getters.conversation(this.token)},conversationDisplayName(){return this.conversation?.displayName},conversationDescription(){return this.conversation?.description},invalidGuestUsername(){return this.guestUserName.trim()===""}},methods:{handleChooseUserName(){this.guestNameStore.submitGuestUsername(this.token,this.guestUserName)}}};var Vt=o(93379),x=o.n(Vt),Gt=o(7795),k=o.n(Gt),zt=o(90569),T=o.n(zt),Wt=o(3565),w=o.n(Wt),Yt=o(19216),S=o.n(Yt),Ht=o(44589),L=o.n(Ht),fe=o(16963),Y={};Y.styleTagTransform=L(),Y.setAttributes=w(),Y.insert=T().bind(null,"head"),Y.domAPI=k(),Y.insertStyleElement=S();var Sl=x()(fe.Z,Y);const Ll=fe.Z&&fe.Z.locals?fe.Z.locals:void 0;var Kt=(0,f.Z)(Zt,Rt,Pt,!1,null,"525010ac",null);const Xt=Kt.exports;var Jt=function(){var e=this,s=e._self._c;return s("div",{ref:"scroller",staticClass:"scroller messages-list__scroller",class:{"scroller--chatScrolledToBottom":e.isChatScrolledToBottom},on:{scroll:e.debounceHandleScroll}},[e.displayMessagesLoader?s("div",{staticClass:"scroller__loading icon-loading"}):e._e(),e._v(" "),e._l(e.messagesGroupedByAuthor,function(i){return[i.dateSeparator?s("div",{key:`date_${i.id}`,staticClass:"messages-group__date"},[s("span",{staticClass:"messages-group__date-text",attrs:{role:"heading","aria-level":"3"}},[e._v(`
				`+e._s(i.dateSeparator)+`
			`)])]):e._e(),e._v(" "),s(e.messagesGroupComponent(i),e._b({key:i.id,ref:"messagesGroup",refInFor:!0,tag:"component",staticClass:"messages-group",attrs:{token:e.token,messages:i.messages,"previous-message-id":i.previousMessageId,"next-message-id":i.nextMessageId}},"component",i.messages,!1))]}),e._v(" "),e.showLoadingAnimation?[s("LoadingPlaceholder",{attrs:{type:"messages",count:15}})]:e.showEmptyContent?s("NcEmptyContent",{staticClass:"messages-list__empty-content",attrs:{name:e.t("spreed","No messages"),description:e.t("spreed","All messages have expired or have been deleted.")},scopedSlots:e._u([{key:"icon",fn:function(){return[s("Message",{attrs:{size:64}})]},proxy:!0}])}):e._e()],2)},Qt=[],qt=o(20296),tt=o.n(qt),es=o(73955),ts=o.n(es),ss=o(20144),as=function(){var e=this,s=e._self._c;return s("span",e._b({staticClass:"material-design-icon message-icon",attrs:{"aria-hidden":!e.title,"aria-label":e.title,role:"img"},on:{click:function(i){return e.$emit("click",i)}}},"span",e.$attrs,!1),[s("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[s("path",{attrs:{d:"M20,2H4A2,2 0 0,0 2,4V22L6,18H20A2,2 0 0,0 22,16V4C22,2.89 21.1,2 20,2Z"}},[e.title?s("title",[e._v(e._s(e.title))]):e._e()])])])},ns=[];const is={name:"MessageIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var os=(0,f.Z)(is,as,ns,!1,null,null,null);const rs=os.exports;var H=o(93664),V=o(42515),G=o(69183),ls=o(80351),j=o.n(ls),st=o(50451),ds=function(){var e=this,s=e._self._c;return s("div",{staticClass:"wrapper"},[s("div",{staticClass:"messages__avatar"},[s("AvatarWrapper",{attrs:{id:e.actorId,name:e.actorDisplayName,source:e.actorType,size:e.AVATAR.SIZE.SMALL,"disable-menu":e.disableMenu,"disable-tooltip":""}})],1),e._v(" "),s("ul",{staticClass:"messages"},[s("li",{staticClass:"messages__author",attrs:{"aria-level":"4"}},[e._v(`
			`+e._s(e.actorDisplayName)+`
		`)]),e._v(" "),e._l(e.messages,function(i,r){return s("Message",e._b({key:i.id,ref:"message",refInFor:!0,attrs:{"is-temporary":i.timestamp===0,"next-message-id":e.messages[r+1]&&e.messages[r+1].id||e.nextMessageId,"previous-message-id":r>0&&e.messages[r-1].id||e.previousMessageId,"actor-type":e.actorType,"actor-id":e.actorId}},"Message",i,!1))})],2)])},us=[],cs=function(){var e=this,s=e._self._c;return s("li",{ref:"message",staticClass:"message",class:{"message--highlighted":e.isHighlighted},attrs:{id:`message_${e.id}`,"data-message-id":e.id,"data-seen":e.seen,"data-next-message-id":e.nextMessageId,"data-previous-message-id":e.previousMessageId,tabindex:"0"},on:{animationend:function(i){e.isHighlighted=!1},mouseover:e.handleMouseover,mouseleave:e.handleMouseleave}},[s("div",{staticClass:"message-body",class:{"normal-message-body":!e.isSystemMessage&&!e.isDeletedMessage,system:e.isSystemMessage,"combined-system":e.isCombinedSystemMessage}},[s("div",{ref:"messageMain",staticClass:"message-body__main"},[e.isSingleEmoji?s("div",{staticClass:"message-body__main__text"},[e.parent?s("Quote",e._b({},"Quote",e.parent,!1)):e._e(),e._v(" "),s("div",{staticClass:"single-emoji"},[e._v(`
					`+e._s(e.renderedMessage)+`
				`)])],1):e.showJoinCallButton?s("div",{staticClass:"message-body__main__text call-started"},[s("NcRichText",{attrs:{text:e.renderedMessage,arguments:e.richParameters,autolink:"",dir:"auto","reference-limit":0}}),e._v(" "),s("CallButton")],1):e.showResultsButton||e.isSystemMessage?s("div",{staticClass:"message-body__main__text system-message"},[s("NcRichText",{attrs:{text:e.renderedMessage,arguments:e.richParameters,autolink:"",dir:"auto","reference-limit":0}}),e._v(" "),e.showResultsButton?s("Poll",{attrs:{id:e.messageParameters.poll.id,"poll-name":e.messageParameters.poll.name,token:e.token,"show-as-button":""}}):e._e()],1):e.isDeletedMessage?s("div",{staticClass:"message-body__main__text deleted-message"},[s("NcRichText",{attrs:{text:e.renderedMessage,arguments:e.richParameters,autolink:"",dir:"auto","reference-limit":0}})],1):s("div",{staticClass:"message-body__main__text message-body__main__text--markdown",on:{mouseover:e.handleMarkdownMouseOver,mouseleave:e.handleMarkdownMouseLeave}},[e.parent?s("Quote",e._b({},"Quote",e.parent,!1)):e._e(),e._v(" "),s("NcRichText",{attrs:{text:e.renderedMessage,arguments:e.richParameters,autolink:"",dir:"auto","use-markdown":e.markdown,"reference-limit":1}}),e._v(" "),e.containsCodeBlocks?s("NcButton",{directives:[{name:"show",rawName:"v-show",value:e.currentCodeBlock!==null,expression:"currentCodeBlock !== null"}],staticClass:"message-copy-code",style:{top:e.copyButtonOffset},attrs:{type:"tertiary","aria-label":e.t("spreed","Copy code block"),title:e.t("spreed","Copy code block")},on:{click:e.copyCodeBlock},scopedSlots:e._u([{key:"icon",fn:function(){return[s("ContentCopy",{attrs:{size:16}})]},proxy:!0}],null,!1,3668429697)}):e._e()],1),e._v(" "),e.isDeletedMessage?e._e():s("div",{staticClass:"message-body__main__right"},[s("span",{staticClass:"date",class:{"date--self":e.showSentIcon},style:{visibility:e.hasDate?"visible":"hidden"},attrs:{title:e.messageDate}},[e._v(e._s(e.messageTime))]),e._v(" "),e.sendingFailure?s("div",{staticClass:"message-status sending-failed",class:{"retry-option":e.sendingErrorCanRetry},attrs:{title:e.sendingErrorIconTooltip,"aria-label":e.sendingErrorIconTooltip,tabindex:"0"},on:{mouseover:function(i){e.showReloadButton=!0},focus:function(i){e.showReloadButton=!0},mouseleave:function(i){e.showReloadButton=!1},blur:function(i){e.showReloadButton=!1}}},[e.sendingErrorCanRetry&&e.showReloadButton?s("NcButton",{attrs:{"aria-label":e.sendingErrorIconTooltip},on:{click:e.handleRetry},scopedSlots:e._u([{key:"icon",fn:function(){return[s("Reload",{attrs:{size:16}})]},proxy:!0}],null,!1,1384425820)}):s("AlertCircle",{attrs:{size:16}})],1):e.isTemporary&&!e.isTemporaryUpload||e.isDeleting?s("div",{staticClass:"icon-loading-small message-status",attrs:{title:e.loadingIconTooltip,"aria-label":e.loadingIconTooltip}}):e.showCommonReadIcon?s("div",{staticClass:"message-status",attrs:{title:e.commonReadIconTooltip,"aria-label":e.commonReadIconTooltip}},[s("CheckAll",{attrs:{size:16}})],1):e.showSentIcon?s("div",{staticClass:"message-status",attrs:{title:e.sentIconTooltip,"aria-label":e.sentIconTooltip}},[s("Check",{attrs:{size:16}})],1):e._e()])]),e._v(" "),e.hasReactions?s("div",{staticClass:"message-body__reactions",on:{mouseover:e.handleReactionsMouseOver}},[e._l(Object.keys(e.reactions),function(i){return s("NcPopover",{key:i,attrs:{delay:200,"focus-trap":!1,triggers:["hover"]},scopedSlots:e._u([{key:"trigger",fn:function(){return[e.reactions[i]!==0?s("NcButton",{staticClass:"reaction-button",attrs:{type:e.userHasReacted(i)?"primary":"secondary"},on:{click:function(r){return e.handleReactionClick(i)}}},[e._v(`
						`+e._s(i)+" "+e._s(e.reactions[i])+`
					`)]):e._e()]},proxy:!0}],null,!0)},[e._v(" "),e.detailedReactions?s("div",{staticClass:"reaction-details"},[s("span",[e._v(e._s(e.getReactionSummary(i)))])]):e._e()])}),e._v(" "),e.canReact&&e.showMessageButtonsBar?s("NcEmojiPicker",{attrs:{"per-line":5,container:`#message_${e.id}`},on:{select:e.handleReactionClick,"after-show":e.onEmojiPickerOpen,"after-hide":e.onEmojiPickerClose}},[s("NcButton",{staticClass:"reaction-button",attrs:{"aria-label":e.t("spreed","Add more reactions")},scopedSlots:e._u([{key:"icon",fn:function(){return[s("EmoticonOutline",{attrs:{size:15}})]},proxy:!0}],null,!1,3156913046)})],1):e.canReact?s("NcButton",{staticClass:"reaction-button",attrs:{"aria-label":e.t("spreed","Add more reactions")},scopedSlots:e._u([{key:"icon",fn:function(){return[s("EmoticonOutline",{attrs:{size:15}})]},proxy:!0}],null,!1,3156913046)}):e._e()],2):e._e()]),e._v(" "),s("div",{staticClass:"message-body__scroll"},[e.showMessageButtonsBar?s("MessageButtonsBar",e._b({ref:"messageButtonsBar",staticClass:"message-buttons-bar",attrs:{"is-translation-available":e.isTranslationAvailable,"is-action-menu-open":e.isActionMenuOpen,"is-emoji-picker-open":e.isEmojiPickerOpen,"is-reactions-menu-open":e.isReactionsMenuOpen,"is-forwarder-open":e.isForwarderOpen,"message-api-data":e.messageApiData,"message-object":e.messageObject,"can-react":e.canReact,"previous-message-id":e.previousMessageId,"show-common-read-icon":e.showCommonReadIcon,"common-read-icon-tooltip":e.commonReadIconTooltip,"show-sent-icon":e.showSentIcon,"sent-icon-tooltip":e.sentIconTooltip},on:{"update:isActionMenuOpen":function(i){e.isActionMenuOpen=i},"update:is-action-menu-open":function(i){e.isActionMenuOpen=i},"update:isEmojiPickerOpen":function(i){e.isEmojiPickerOpen=i},"update:is-emoji-picker-open":function(i){e.isEmojiPickerOpen=i},"update:isReactionsMenuOpen":function(i){e.isReactionsMenuOpen=i},"update:is-reactions-menu-open":function(i){e.isReactionsMenuOpen=i},"update:isForwarderOpen":function(i){e.isForwarderOpen=i},"update:is-forwarder-open":function(i){e.isForwarderOpen=i},"show-translate-dialog":function(i){e.isTranslateDialogOpen=!0},reply:e.handleReply,delete:e.handleDelete}},"MessageButtonsBar",e.$props,!1)):e.showCombinedSystemMessageToggle?s("div",{staticClass:"message-buttons-bar"},[s("NcButton",{attrs:{type:"tertiary","aria-label":e.t("spreed","Show or collapse system messages"),title:e.t("spreed","Show or collapse system messages")},on:{click:e.toggleCombinedSystemMessage},scopedSlots:e._u([{key:"icon",fn:function(){return[e.isCombinedSystemMessageCollapsed?s("UnfoldMore"):s("UnfoldLess")]},proxy:!0}])})],1):e._e()],1),e._v(" "),e.isTranslationAvailable&&e.isTranslateDialogOpen?s("MessageTranslateDialog",{attrs:{message:e.message,"rich-parameters":e.richParameters},on:{close:function(i){e.isTranslateDialogOpen=!1}}}):e._e(),e._v(" "),e.isLastReadMessage?s("div",{directives:[{name:"observe-visibility",rawName:"v-observe-visibility",value:e.lastReadMessageVisibilityChanged,expression:"lastReadMessageVisibilityChanged"}],staticClass:"new-message-marker"},[s("span",[e._v(e._s(e.t("spreed","Unread messages")))])]):e._e()],1)},ps=[],_s=o(60809),As=o.n(_s),ms=o(92098),Ze=o(58441),gs=function(){var e=this,s=e._self._c;return s("span",e._b({staticClass:"material-design-icon check-all-icon",attrs:{"aria-hidden":!e.title,"aria-label":e.title,role:"img"},on:{click:function(i){return e.$emit("click",i)}}},"span",e.$attrs,!1),[s("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[s("path",{attrs:{d:"M0.41,13.41L6,19L7.41,17.58L1.83,12M22.24,5.58L11.66,16.17L7.5,12L6.07,13.41L11.66,19L23.66,7M18,7L16.59,5.58L10.24,11.93L11.66,13.34L18,7Z"}},[e.title?s("title",[e._v(e._s(e.title))]):e._e()])])])},hs=[];const Cs={name:"CheckAllIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var fs=(0,f.Z)(Cs,gs,hs,!1,null,null,null);const at=fs.exports;var vs=function(){var e=this,s=e._self._c;return s("span",e._b({staticClass:"material-design-icon content-copy-icon",attrs:{"aria-hidden":!e.title,"aria-label":e.title,role:"img"},on:{click:function(i){return e.$emit("click",i)}}},"span",e.$attrs,!1),[s("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[s("path",{attrs:{d:"M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"}},[e.title?s("title",[e._v(e._s(e.title))]):e._e()])])])},Ds=[];const ys={name:"ContentCopyIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var bs=(0,f.Z)(ys,vs,Ds,!1,null,null,null);const Ve=bs.exports;var nt=o(18849),Fs=o(77842),Es=function(){var e=this,s=e._self._c;return s("span",e._b({staticClass:"material-design-icon unfold-less-horizontal-icon",attrs:{"aria-hidden":!e.title,"aria-label":e.title,role:"img"},on:{click:function(i){return e.$emit("click",i)}}},"span",e.$attrs,!1),[s("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[s("path",{attrs:{d:"M16.59,5.41L15.17,4L12,7.17L8.83,4L7.41,5.41L12,10M7.41,18.59L8.83,20L12,16.83L15.17,20L16.58,18.59L12,14L7.41,18.59Z"}},[e.title?s("title",[e._v(e._s(e.title))]):e._e()])])])},Ms=[];const Bs={name:"UnfoldLessHorizontalIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var xs=(0,f.Z)(Bs,Es,Ms,!1,null,null,null);const ks=xs.exports;var Ts=function(){var e=this,s=e._self._c;return s("span",e._b({staticClass:"material-design-icon unfold-more-horizontal-icon",attrs:{"aria-hidden":!e.title,"aria-label":e.title,role:"img"},on:{click:function(i){return e.$emit("click",i)}}},"span",e.$attrs,!1),[s("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[s("path",{attrs:{d:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z"}},[e.title?s("title",[e._v(e._s(e.title))]):e._e()])])])},ws=[];const Ss={name:"UnfoldMoreHorizontalIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var Ls=(0,f.Z)(Ss,Ts,ws,!1,null,null,null);const Os=Ls.exports;var O=o(64024),it=o(56288),ot=o(14714),rt=o(78652),Is=function(){var e=this,s=e._self._c;return s("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:e.handleClickOutside,expression:"handleClickOutside"}]},[e.isReactionsMenuOpen?[s("NcButton",{attrs:{type:"tertiary","aria-label":e.t("spreed","Close reactions menu")},on:{click:e.closeReactionsMenu},scopedSlots:e._u([{key:"icon",fn:function(){return[s("ArrowLeft",{attrs:{size:20}})]},proxy:!0}])}),e._v(" "),e._l(e.frequentlyUsedEmojis,function(i){return s("NcButton",{key:i,attrs:{type:"tertiary","aria-label":e.t("spreed","React with {emoji}",{emoji:i})},on:{click:function(r){return e.handleReactionClick(i)}},scopedSlots:e._u([{key:"icon",fn:function(){return[s("span",[e._v(e._s(i))])]},proxy:!0}],null,!0)})}),e._v(" "),s("NcEmojiPicker",{attrs:{container:`${e.messageContainer} .message-buttons-bar`,boundary:e.boundariesElement,placement:"auto"},on:{select:e.handleReactionClick,"after-show":e.onEmojiPickerOpen,"after-hide":e.onEmojiPickerClose}},[s("NcButton",{attrs:{type:"tertiary","aria-label":e.t("spreed","React with another emoji")},scopedSlots:e._u([{key:"icon",fn:function(){return[s("Plus",{attrs:{size:20}})]},proxy:!0}])})],1)]:[e.canReact?s("NcButton",{attrs:{type:"tertiary","aria-label":e.t("spreed","Add a reaction to this message"),title:e.t("spreed","Add a reaction to this message")},on:{click:e.openReactionsMenu},scopedSlots:e._u([{key:"icon",fn:function(){return[s("EmoticonOutline",{attrs:{size:20}})]},proxy:!0}],null,!1,1267396848)}):e._e(),e._v(" "),e.isReplyable&&!e.isConversationReadOnly?s("NcButton",{attrs:{type:"tertiary","aria-label":e.t("spreed","Reply"),title:e.t("spreed","Reply")},on:{click:e.handleReply},scopedSlots:e._u([{key:"icon",fn:function(){return[s("Reply",{attrs:{size:16}})]},proxy:!0}],null,!1,2449574943)}):e._e(),e._v(" "),s("NcActions",{attrs:{"force-menu":!0,placement:"bottom-end",container:e.messageContainer,"boundaries-element":e.boundariesElement},on:{open:e.onMenuOpen,close:e.onMenuClose}},[e.submenu===null?[s("NcActionButton",{scopedSlots:e._u([{key:"icon",fn:function(){return[e.showCommonReadIcon?s("span",{attrs:{title:e.commonReadIconTooltip,"aria-label":e.commonReadIconTooltip}},[s("CheckAll",{attrs:{size:16}})],1):e.showSentIcon?s("span",{attrs:{title:e.sentIconTooltip,"aria-label":e.sentIconTooltip}},[s("Check",{attrs:{size:16}})],1):s("ClockOutline",{attrs:{size:16}})]},proxy:!0}],null,!1,788874519)},[e._v(`
					`+e._s(e.messageDateTime)+`
				`)]),e._v(" "),e.supportReminders?s("NcActionButton",{staticClass:"action--nested",on:{click:function(i){i.stopPropagation(),e.submenu="reminder"}},scopedSlots:e._u([{key:"icon",fn:function(){return[s("AlarmIcon",{attrs:{size:20}})]},proxy:!0}],null,!1,1813317200)},[e._v(`
					`+e._s(e.t("spreed","Set reminder"))+`
				`)]):e._e(),e._v(" "),s("NcActionSeparator"),e._v(" "),e.isPrivateReplyable?s("NcActionButton",{attrs:{"close-after-click":""},on:{click:function(i){return i.stopPropagation(),e.handlePrivateReply.apply(null,arguments)}},scopedSlots:e._u([{key:"icon",fn:function(){return[s("AccountIcon",{attrs:{size:20}})]},proxy:!0}],null,!1,2066712834)},[e._v(`
					`+e._s(e.t("spreed","Reply privately"))+`
				`)]):e._e(),e._v(" "),e.isFileShareOnly?e._e():s("NcActionButton",{attrs:{"close-after-click":""},on:{click:function(i){return i.stopPropagation(),e.handleCopyMessageText.apply(null,arguments)}},scopedSlots:e._u([{key:"icon",fn:function(){return[s("ContentCopy",{attrs:{size:20}})]},proxy:!0}],null,!1,1478045380)},[e._v(`
					`+e._s(e.t("spreed","Copy formatted message"))+`
				`)]),e._v(" "),s("NcActionButton",{attrs:{"close-after-click":""},on:{click:function(i){return i.stopPropagation(),e.handleCopyMessageLink.apply(null,arguments)}},scopedSlots:e._u([{key:"icon",fn:function(){return[s("OpenInNewIcon",{attrs:{size:20}})]},proxy:!0}],null,!1,1266168172)},[e._v(`
					`+e._s(e.t("spreed","Copy message link"))+`
				`)]),e._v(" "),s("NcActionButton",{attrs:{"close-after-click":""},on:{click:function(i){return i.stopPropagation(),e.handleMarkAsUnread.apply(null,arguments)}},scopedSlots:e._u([{key:"icon",fn:function(){return[s("EyeOffOutline",{attrs:{size:16}})]},proxy:!0}],null,!1,3681331803)},[e._v(`
					`+e._s(e.t("spreed","Mark as unread"))+`
				`)]),e._v(" "),e.linkToFile?s("NcActionLink",{attrs:{href:e.linkToFile},scopedSlots:e._u([{key:"icon",fn:function(){return[s("File",{attrs:{size:20}})]},proxy:!0}],null,!1,395998446)},[e._v(`
					`+e._s(e.t("spreed","Go to file"))+`
				`)]):e._e(),e._v(" "),e.canForwardMessage&&!e.isInNoteToSelf?s("NcActionButton",{attrs:{"close-after-click":""},on:{click:e.forwardToNote},scopedSlots:e._u([{key:"icon",fn:function(){return[s("Note",{attrs:{size:16}})]},proxy:!0}],null,!1,4139916445)},[e._v(`
					`+e._s(e.t("spreed","Note to self"))+`
				`)]):e._e(),e._v(" "),e.canForwardMessage?s("NcActionButton",{attrs:{"close-after-click":""},on:{click:function(i){return i.stopPropagation(),e.openForwarder.apply(null,arguments)}},scopedSlots:e._u([{key:"icon",fn:function(){return[s("Share",{attrs:{size:16}})]},proxy:!0}],null,!1,4243449760)},[e._v(`
					`+e._s(e.t("spreed","Forward message"))+`
				`)]):e._e(),e._v(" "),e.messageActions.length>0?s("NcActionSeparator"):e._e(),e._v(" "),e._l(e.messageActions,function(i){return s("NcActionButton",{key:i.label,attrs:{icon:i.icon,"close-after-click":""},on:{click:function(r){return i.callback(e.messageApiData)}}},[e._v(`
					`+e._s(i.label)+`
				`)])}),e._v(" "),e.isTranslationAvailable?s("NcActionButton",{attrs:{"close-after-click":""},on:{click:function(i){return i.stopPropagation(),e.$emit("show-translate-dialog",!0)},close:function(i){return e.$emit("show-translate-dialog",!1)}},scopedSlots:e._u([{key:"icon",fn:function(){return[s("Translate",{attrs:{size:16}})]},proxy:!0}],null,!1,3658990123)},[e._v(`
					`+e._s(e.t("spreed","Translate"))+`
				`)]):e._e(),e._v(" "),e.isDeleteable?[s("NcActionSeparator"),e._v(" "),s("NcActionButton",{attrs:{"close-after-click":""},on:{click:function(i){return i.stopPropagation(),e.handleDelete.apply(null,arguments)}},scopedSlots:e._u([{key:"icon",fn:function(){return[s("DeleteIcon",{attrs:{size:16}})]},proxy:!0}],null,!1,4498431)},[e._v(`
						`+e._s(e.t("spreed","Delete"))+`
					`)])]:e._e()]:e.supportReminders&&e.submenu==="reminder"?[s("NcActionButton",{attrs:{"aria-label":e.t("spreed","Back")},on:{click:function(i){i.stopPropagation(),e.submenu=null}},scopedSlots:e._u([{key:"icon",fn:function(){return[s("ArrowLeft")]},proxy:!0}],null,!1,378723937)},[e._v(`
					`+e._s(e.t("spreed","Back"))+`
				`)]),e._v(" "),e.currentReminder?s("NcActionButton",{attrs:{"close-after-click":""},on:{click:function(i){return i.stopPropagation(),e.removeReminder.apply(null,arguments)}},scopedSlots:e._u([{key:"icon",fn:function(){return[s("CloseCircleOutline",{attrs:{size:20}})]},proxy:!0}],null,!1,3165582732)},[e._v(`
					`+e._s(e.clearReminderLabel)+`
				`)]):e._e(),e._v(" "),s("NcActionSeparator"),e._v(" "),e._l(e.reminderOptions,function(i){return s("NcActionButton",{key:i.key,attrs:{"aria-label":i.ariaLabel,"close-after-click":""},on:{click:function(r){return r.stopPropagation(),e.setReminder(i.timestamp)}}},[e._v(`
					`+e._s(i.label)+`
				`)])}),e._v(" "),s("NcActionSeparator"),e._v(" "),s("NcActionInput",{attrs:{type:"datetime-local","is-native-picker":"",value:e.customReminderDateTime,min:new Date},on:{change:e.setCustomReminderDateTime},scopedSlots:e._u([{key:"icon",fn:function(){return[s("CalendarClock",{attrs:{size:20}})]},proxy:!0}],null,!1,1325980530)}),e._v(" "),s("NcActionButton",{attrs:{"aria-label":e.t("spreed","Set custom reminder"),"close-after-click":""},on:{click:function(i){return i.stopPropagation(),e.setCustomReminder(e.customReminderDateTime)}},scopedSlots:e._u([{key:"icon",fn:function(){return[s("Check",{attrs:{size:20}})]},proxy:!0}],null,!1,4226377742)},[e._v(`
					`+e._s(e.t("spreed","Set custom reminder"))+`
				`)])]:e._e()],2)],e._v(" "),e.isForwarderOpen?s("MessageForwarder",{attrs:{"message-object":e.messageObject},on:{close:e.closeForwarder}}):e._e()],2)},Rs=[],lt=o(59673),Ps=o(32859),Ns=function(){var e=this,s=e._self._c;return s("span",e._b({staticClass:"material-design-icon account-icon",attrs:{"aria-hidden":!e.title,"aria-label":e.title,role:"img"},on:{click:function(i){return e.$emit("click",i)}}},"span",e.$attrs,!1),[s("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[s("path",{attrs:{d:"M12,4A4,4 0 0,1 16,8A4,4 0 0,1 12,12A4,4 0 0,1 8,8A4,4 0 0,1 12,4M12,14C16.42,14 20,15.79 20,18V20H4V18C4,15.79 7.58,14 12,14Z"}},[e.title?s("title",[e._v(e._s(e.title))]):e._e()])])])},js=[];const $s={name:"AccountIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var Us=(0,f.Z)($s,Ns,js,!1,null,null,null);const Zs=Us.exports;var Vs=function(){var e=this,s=e._self._c;return s("span",e._b({staticClass:"material-design-icon alarm-icon",attrs:{"aria-hidden":!e.title,"aria-label":e.title,role:"img"},on:{click:function(i){return e.$emit("click",i)}}},"span",e.$attrs,!1),[s("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[s("path",{attrs:{d:"M12,20A7,7 0 0,1 5,13A7,7 0 0,1 12,6A7,7 0 0,1 19,13A7,7 0 0,1 12,20M12,4A9,9 0 0,0 3,13A9,9 0 0,0 12,22A9,9 0 0,0 21,13A9,9 0 0,0 12,4M12.5,8H11V14L15.75,16.85L16.5,15.62L12.5,13.25V8M7.88,3.39L6.6,1.86L2,5.71L3.29,7.24L7.88,3.39M22,5.72L17.4,1.86L16.11,3.39L20.71,7.25L22,5.72Z"}},[e.title?s("title",[e._v(e._s(e.title))]):e._e()])])])},Gs=[];const zs={name:"AlarmIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var Ws=(0,f.Z)(zs,Vs,Gs,!1,null,null,null);const Ys=Ws.exports;var Hs=o(33687),Ks=function(){var e=this,s=e._self._c;return s("span",e._b({staticClass:"material-design-icon calendar-clock-icon",attrs:{"aria-hidden":!e.title,"aria-label":e.title,role:"img"},on:{click:function(i){return e.$emit("click",i)}}},"span",e.$attrs,!1),[s("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[s("path",{attrs:{d:"M15,13H16.5V15.82L18.94,17.23L18.19,18.53L15,16.69V13M19,8H5V19H9.67C9.24,18.09 9,17.07 9,16A7,7 0 0,1 16,9C17.07,9 18.09,9.24 19,9.67V8M5,21C3.89,21 3,20.1 3,19V5C3,3.89 3.89,3 5,3H6V1H8V3H16V1H18V3H19A2,2 0 0,1 21,5V11.1C22.24,12.36 23,14.09 23,16A7,7 0 0,1 16,23C14.09,23 12.36,22.24 11.1,21H5M16,11.15A4.85,4.85 0 0,0 11.15,16C11.15,18.68 13.32,20.85 16,20.85A4.85,4.85 0 0,0 20.85,16C20.85,13.32 18.68,11.15 16,11.15Z"}},[e.title?s("title",[e._v(e._s(e.title))]):e._e()])])])},Xs=[];const Js={name:"CalendarClockIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var Qs=(0,f.Z)(Js,Ks,Xs,!1,null,null,null);const qs=Qs.exports;var ea=function(){var e=this,s=e._self._c;return s("span",e._b({staticClass:"material-design-icon clock-outline-icon",attrs:{"aria-hidden":!e.title,"aria-label":e.title,role:"img"},on:{click:function(i){return e.$emit("click",i)}}},"span",e.$attrs,!1),[s("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[s("path",{attrs:{d:"M12,20A8,8 0 0,0 20,12A8,8 0 0,0 12,4A8,8 0 0,0 4,12A8,8 0 0,0 12,20M12,2A10,10 0 0,1 22,12A10,10 0 0,1 12,22C6.47,22 2,17.5 2,12A10,10 0 0,1 12,2M12.5,7V12.25L17,14.92L16.25,16.15L11,13V7H12.5Z"}},[e.title?s("title",[e._v(e._s(e.title))]):e._e()])])])},ta=[];const sa={name:"ClockOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var aa=(0,f.Z)(sa,ea,ta,!1,null,null,null);const na=aa.exports;var ia=function(){var e=this,s=e._self._c;return s("span",e._b({staticClass:"material-design-icon close-circle-outline-icon",attrs:{"aria-hidden":!e.title,"aria-label":e.title,role:"img"},on:{click:function(i){return e.$emit("click",i)}}},"span",e.$attrs,!1),[s("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[s("path",{attrs:{d:"M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2C6.47,2 2,6.47 2,12C2,17.53 6.47,22 12,22C17.53,22 22,17.53 22,12C22,6.47 17.53,2 12,2M14.59,8L12,10.59L9.41,8L8,9.41L10.59,12L8,14.59L9.41,16L12,13.41L14.59,16L16,14.59L13.41,12L16,9.41L14.59,8Z"}},[e.title?s("title",[e._v(e._s(e.title))]):e._e()])])])},oa=[];const ra={name:"CloseCircleOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var la=(0,f.Z)(ra,ia,oa,!1,null,null,null);const da=la.exports;var ua=o(76188),ca=function(){var e=this,s=e._self._c;return s("span",e._b({staticClass:"material-design-icon eye-off-outline-icon",attrs:{"aria-hidden":!e.title,"aria-label":e.title,role:"img"},on:{click:function(i){return e.$emit("click",i)}}},"span",e.$attrs,!1),[s("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[s("path",{attrs:{d:"M2,5.27L3.28,4L20,20.72L18.73,22L15.65,18.92C14.5,19.3 13.28,19.5 12,19.5C7,19.5 2.73,16.39 1,12C1.69,10.24 2.79,8.69 4.19,7.46L2,5.27M12,9A3,3 0 0,1 15,12C15,12.35 14.94,12.69 14.83,13L11,9.17C11.31,9.06 11.65,9 12,9M12,4.5C17,4.5 21.27,7.61 23,12C22.18,14.08 20.79,15.88 19,17.19L17.58,15.76C18.94,14.82 20.06,13.54 20.82,12C19.17,8.64 15.76,6.5 12,6.5C10.91,6.5 9.84,6.68 8.84,7L7.3,5.47C8.74,4.85 10.33,4.5 12,4.5M3.18,12C4.83,15.36 8.24,17.5 12,17.5C12.69,17.5 13.37,17.43 14,17.29L11.72,15C10.29,14.85 9.15,13.71 9,12.28L5.6,8.87C4.61,9.72 3.78,10.78 3.18,12Z"}},[e.title?s("title",[e._v(e._s(e.title))]):e._e()])])])},pa=[];const _a={name:"EyeOffOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var Aa=(0,f.Z)(_a,ca,pa,!1,null,null,null);const ma=Aa.exports;var ga=function(){var e=this,s=e._self._c;return s("span",e._b({staticClass:"material-design-icon file-icon",attrs:{"aria-hidden":!e.title,"aria-label":e.title,role:"img"},on:{click:function(i){return e.$emit("click",i)}}},"span",e.$attrs,!1),[s("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[s("path",{attrs:{d:"M13,9V3.5L18.5,9M6,2C4.89,2 4,2.89 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V8L14,2H6Z"}},[e.title?s("title",[e._v(e._s(e.title))]):e._e()])])])},ha=[];const Ca={name:"FileIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var fa=(0,f.Z)(Ca,ga,ha,!1,null,null,null);const va=fa.exports;var Da=function(){var e=this,s=e._self._c;return s("span",e._b({staticClass:"material-design-icon note-edit-outline-icon",attrs:{"aria-hidden":!e.title,"aria-label":e.title,role:"img"},on:{click:function(i){return e.$emit("click",i)}}},"span",e.$attrs,!1),[s("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[s("path",{attrs:{d:"M18.13 12L19.39 10.74C19.83 10.3 20.39 10.06 21 10V9L15 3H5C3.89 3 3 3.89 3 5V19C3 20.1 3.89 21 5 21H11V19.13L11.13 19H5V5H12V12H18.13M14 4.5L19.5 10H14V4.5M19.13 13.83L21.17 15.87L15.04 22H13V19.96L19.13 13.83M22.85 14.19L21.87 15.17L19.83 13.13L20.81 12.15C21 11.95 21.33 11.95 21.53 12.15L22.85 13.47C23.05 13.67 23.05 14 22.85 14.19Z"}},[e.title?s("title",[e._v(e._s(e.title))]):e._e()])])])},ya=[];const ba={name:"NoteEditOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var Fa=(0,f.Z)(ba,Da,ya,!1,null,null,null);const Ea=Fa.exports;var Ma=function(){var e=this,s=e._self._c;return s("span",e._b({staticClass:"material-design-icon open-in-new-icon",attrs:{"aria-hidden":!e.title,"aria-label":e.title,role:"img"},on:{click:function(i){return e.$emit("click",i)}}},"span",e.$attrs,!1),[s("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[s("path",{attrs:{d:"M14,3V5H17.59L7.76,14.83L9.17,16.24L19,6.41V10H21V3M19,19H5V5H12V3H5C3.89,3 3,3.9 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V12H19V19Z"}},[e.title?s("title",[e._v(e._s(e.title))]):e._e()])])])},Ba=[];const xa={name:"OpenInNewIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var ka=(0,f.Z)(xa,Ma,Ba,!1,null,null,null);const Ta=ka.exports;var dt=o(99270),wa=function(){var e=this,s=e._self._c;return s("span",e._b({staticClass:"material-design-icon reply-icon",attrs:{"aria-hidden":!e.title,"aria-label":e.title,role:"img"},on:{click:function(i){return e.$emit("click",i)}}},"span",e.$attrs,!1),[s("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[s("path",{attrs:{d:"M10,9V5L3,12L10,19V14.9C15,14.9 18.5,16.5 21,20C20,15 17,10 10,9Z"}},[e.title?s("title",[e._v(e._s(e.title))]):e._e()])])])},Sa=[];const La={name:"ReplyIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var Oa=(0,f.Z)(La,wa,Sa,!1,null,null,null);const Ia=Oa.exports;var Ra=function(){var e=this,s=e._self._c;return s("span",e._b({staticClass:"material-design-icon share-icon",attrs:{"aria-hidden":!e.title,"aria-label":e.title,role:"img"},on:{click:function(i){return e.$emit("click",i)}}},"span",e.$attrs,!1),[s("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[s("path",{attrs:{d:"M21,12L14,5V9C7,10 4,15 3,20C5.5,16.5 9,14.9 14,14.9V19L21,12Z"}},[e.title?s("title",[e._v(e._s(e.title))]):e._e()])])])},Pa=[];const Na={name:"ShareIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var ja=(0,f.Z)(Na,Ra,Pa,!1,null,null,null);const $a=ja.exports;var Ua=function(){var e=this,s=e._self._c;return s("span",e._b({staticClass:"material-design-icon translate-icon",attrs:{"aria-hidden":!e.title,"aria-label":e.title,role:"img"},on:{click:function(i){return e.$emit("click",i)}}},"span",e.$attrs,!1),[s("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[s("path",{attrs:{d:"M12.87,15.07L10.33,12.56L10.36,12.53C12.1,10.59 13.34,8.36 14.07,6H17V4H10V2H8V4H1V6H12.17C11.5,7.92 10.44,9.75 9,11.35C8.07,10.32 7.3,9.19 6.69,8H4.69C5.42,9.63 6.42,11.17 7.67,12.56L2.58,17.58L4,19L9,14L12.11,17.11L12.87,15.07M18.5,10H16.5L12,22H14L15.12,19H19.87L21,22H23L18.5,10M15.88,17L17.5,12.67L19.12,17H15.88Z"}},[e.title?s("title",[e._v(e._s(e.title))]):e._e()])])])},Za=[];const Va={name:"TranslateIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var Ga=(0,f.Z)(Va,Ua,Za,!1,null,null,null);const za=Ga.exports;var Ge=o(72979),Wa=o(34111),Ya=o(78043),ze=o(61057),Ha=o(81243),Ka=function(){var e=this,s=e._self._c;return s("div",{staticClass:"message-forwarder"},[e.showForwardedConfirmation?s("NcModal",{attrs:{container:e.container},on:{close:e.handleClose}},[s("NcEmptyContent",{attrs:{description:e.t("spreed","The message has been forwarded to {selectedConversationName}",{selectedConversationName:e.selectedConversationName})},scopedSlots:e._u([{key:"icon",fn:function(){return[s("Check",{attrs:{size:64}})]},proxy:!0},{key:"action",fn:function(){return[s("NcButton",{attrs:{type:"tertiary"},on:{click:e.handleClose}},[e._v(`
					`+e._s(e.t("spreed","Dismiss"))+`
				`)]),e._v(" "),s("NcButton",{attrs:{type:"primary"},on:{click:e.openConversation}},[e._v(`
					`+e._s(e.t("spreed","Go to conversation"))+`
				`)])]},proxy:!0}])})],1):s("RoomSelector",{attrs:{container:e.container,"show-postable-only":"","dialog-title":e.dialogTitle,"dialog-subtitle":e.dialogSubtitle},on:{select:e.setSelectedConversationToken,close:e.handleClose}})],1)},Xa=[],z=o(79753),Ja=function(){var e=this,s=e._self._c;return s("NcModal",{attrs:{size:"normal",container:e.container},on:{close:e.close}},[s("div",{staticClass:"talk-modal",class:{"icon-loading":e.loading},attrs:{id:"modal-inner"}},[s("div",{attrs:{id:"modal-content"}},[s("h2",[e._v(`
				`+e._s(e.dialogTitle)+`
			`)]),e._v(" "),e.dialogSubtitle?s("p",{staticClass:"subtitle"},[e._v(`
				`+e._s(e.dialogSubtitle)+`
			`)]):e._e(),e._v(" "),s("NcTextField",{staticClass:"search-form",attrs:{value:e.searchText,"trailing-button-icon":"close",label:e.t("spreed","Search conversations or users"),"show-trailing-button":e.searchText!==""},on:{"update:value":function(i){e.searchText=i},"trailing-button-click":e.clearText}},[s("Magnify",{attrs:{size:16}})],1),e._v(" "),s("div",{attrs:{id:"room-list"}},[!e.loading&&e.availableRooms.length>0?s("ul",e._l(e.availableRooms,function(i){return s("li",{key:i.token,class:{selected:e.selectedRoom?.token===i.token},on:{click:function(r){e.selectedRoom=i}}},[s("ConversationIcon",{attrs:{item:i,"hide-favorite":!1}}),e._v(" "),s("span",[e._v(e._s(i.displayName))])],1)}),0):e.loading?e._e():s("div",{staticClass:"no-match-message"},[s("h2",{staticClass:"no-match-title"},[e._v(`
						`+e._s(e.noMatchFoundTitle)+`
					`)]),e._v(" "),e.noMatchFoundSubtitle?s("p",{staticClass:"subtitle"},[e._v(`
						`+e._s(e.noMatchFoundSubtitle)+`
					`)]):e._e()])]),e._v(" "),s("div",{attrs:{id:"modal-buttons"}},[!e.loading&&e.availableRooms.length>0?s("NcButton",{attrs:{type:"primary",disabled:!e.selectedRoom},on:{click:e.select}},[e._v(`
					`+e._s(e.t("spreed","Select conversation"))+`
				`)]):e._e()],1)],1)])])},Qa=[],qa=function(){var e=this,s=e._self._c;return s("span",e._b({staticClass:"material-design-icon magnify-icon",attrs:{"aria-hidden":!e.title,"aria-label":e.title,role:"img"},on:{click:function(i){return e.$emit("click",i)}}},"span",e.$attrs,!1),[s("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[s("path",{attrs:{d:"M9.5,3A6.5,6.5 0 0,1 16,9.5C16,11.11 15.41,12.59 14.44,13.73L14.71,14H15.5L20.5,19L19,20.5L14,15.5V14.71L13.73,14.44C12.59,15.41 11.11,16 9.5,16A6.5,6.5 0 0,1 3,9.5A6.5,6.5 0 0,1 9.5,3M9.5,5C7,5 5,7 5,9.5C5,12 7,14 9.5,14C12,14 14,12 14,9.5C14,7 12,5 9.5,5Z"}},[e.title?s("title",[e._v(e._s(e.title))]):e._e()])])])},en=[];const tn={name:"MagnifyIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var sn=(0,f.Z)(tn,qa,en,!1,null,null,null);const an=sn.exports;var D=o(94418),ut=o(34786);const nn={name:"RoomSelector",components:{ConversationIcon:et.Z,NcModal:W.Z,NcButton:Z.Z,NcTextField:qe.Z,Magnify:an},props:{container:{type:String,default:void 0},dialogTitle:{type:String,default:t("spreed","Link to a conversation")},dialogSubtitle:{type:String,default:""},showPostableOnly:{type:Boolean,default:!1},listOpenConversations:{type:Boolean,default:!1}},emits:["close","select"],data(){return{rooms:[],selectedRoom:null,currentRoom:null,searchText:"",loading:!0}},computed:{availableRooms(){const a=this.rooms.filter(e=>e.type!==D.Sl.TYPE.CHANGELOG&&(!this.currentRoom||this.currentRoom!==e.token)&&(!this.showPostableOnly||e.readOnly===D.Sl.STATE.READ_WRITE)&&e.objectType!==D.Sl.OBJECT_TYPE.FILE&&e.objectType!==D.Sl.OBJECT_TYPE.VIDEO_VERIFICATION);return this.searchText?a.filter(e=>e.displayName.toLowerCase().includes(this.searchText.toLowerCase())):a},noMatchFoundTitle(){return this.listOpenConversations?t("spreed","No open conversations found"):t("spreed","No conversations found")},noMatchFoundSubtitle(){return this.listOpenConversations?t("spreed","Either there are no open conversations or you joined all of them."):t("spreed","Check spelling or use complete words.")}},beforeMount(){this.fetchRooms();const a=OCA.Talk?.instance?.$store;a&&(this.currentRoom=a.getters.getToken())},methods:{async fetchRooms(){const a=this.listOpenConversations?await(0,ut.J6)({searchText:""},{}):await(0,ut.ku)({});this.rooms=a.data.ocs.data.sort(this.sortConversations),this.loading=!1},sortConversations(a,e){return a.isFavorite!==e.isFavorite?a.isFavorite?-1:1:e.lastActivity-a.lastActivity},clearText(){this.searchText=""},close(){this.$root.$emit("close"),this.$emit("close")},select(){this.$root.$emit("select",this.selectedRoom),this.$emit("select",this.selectedRoom)}}};var ve=o(62376),K={};K.styleTagTransform=L(),K.setAttributes=w(),K.insert=T().bind(null,"head"),K.domAPI=k(),K.insertStyleElement=S();var ql=x()(ve.Z,K);const ed=ve.Z&&ve.Z.locals?ve.Z.locals:void 0;var on=(0,f.Z)(nn,Ja,Qa,!1,null,"3247a422",null);const rn={name:"MessageForwarder",components:{RoomSelector:on.exports,NcEmptyContent:st.Z,NcModal:W.Z,NcButton:Z.Z,Check:Ze.default},props:{messageObject:{type:Object,required:!0}},emits:["close"],data(){return{selectedConversationToken:null,selectedConversationName:null,showForwardedConfirmation:!1,forwardedMessageID:""}},computed:{container(){return this.$store.getters.getMainContainerSelector()},dialogTitle(){return t("spreed","Forward message")},dialogSubtitle(){return t("spreed","Choose a conversation to forward the selected message.")}},methods:{async setSelectedConversationToken(a){this.selectedConversationToken=a.token,this.selectedConversationName=a.displayName;try{const e=await this.$store.dispatch("forwardMessage",{targetToken:this.selectedConversationToken,messageToBeForwarded:this.messageObject});this.forwardedMessageID=e.data.ocs.data.id,this.showForwardedConfirmation=!0}catch(e){console.error("Error while forwarding message",e),(0,O.x2)(t("spreed","Error while forwarding message"))}},openConversation(){if(window.location.pathname.includes("/apps/spreed")||window.location.pathname.includes("/call/"))this.$router.push({name:"conversation",hash:`#message_${this.forwardedMessageID}`,params:{token:`${this.selectedConversationToken}`}}).catch(e=>console.debug(`Error while pushing the new conversation's route: ${e}`));else{const e=(0,z.generateUrl)("/call/{token}#message_{messageId}",{token:this.selectedConversationToken,messageId:this.forwardedMessageID});window.open(e,"_blank").focus()}this.showForwardedConfirmation=!1,this.forwardedMessageID="",this.$emit("close")},handleClose(){this.$emit("close")}}};var De=o(58848),X={};X.styleTagTransform=L(),X.setAttributes=w(),X.insert=T().bind(null,"head"),X.domAPI=k(),X.insertStyleElement=S();var ad=x()(De.Z,X);const nd=De.Z&&De.Z.locals?De.Z.locals:void 0;var ln=(0,f.Z)(rn,Ka,Xa,!1,null,"d3d6075c",null);const dn=ln.exports;/**
 * @copyright Copyright (c) 2023 Maksim Sukharev <antreesy.web@gmail.com>
 *
 * @author Maksim Sukharev <antreesy.web@gmail.com>
 *
 * @license AGPL-3.0-or-later
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 *
 */const un=async function(a,e){return H.Z.get((0,z.generateOcsUrl)("apps/spreed/api/v1/chat/{token}/{messageId}/reminder",{token:a,messageId:e}))},cn=async function(a,e,s){return H.Z.post((0,z.generateOcsUrl)("apps/spreed/api/v1/chat/{token}/{messageId}/reminder",{token:a,messageId:e}),{timestamp:s})},pn=async function(a,e){return H.Z.delete((0,z.generateOcsUrl)("apps/spreed/api/v1/chat/{token}/{messageId}/reminder",{token:a,messageId:e}))};var _n=o(51498);const An=new lt.EmojiIndex(Ps),mn=(0,V.getCapabilities)()?.spreed?.features?.includes("remind-me-later"),gn={name:"MessageButtonsBar",components:{MessageForwarder:dn,NcActionButton:Ge.Z,NcActionInput:Wa.N,NcActionLink:Ya.Z,NcActionSeparator:Ha.Z,NcActions:ze.Z,NcButton:Z.Z,NcEmojiPicker:it.Z,AccountIcon:Zs,AlarmIcon:Ys,ArrowLeft:Hs.default,CalendarClock:qs,CloseCircleOutline:da,Check:Ze.default,CheckAll:at,ClockOutline:na,ContentCopy:Ve,DeleteIcon:ua.Z,EmoticonOutline:nt.Z,EyeOffOutline:ma,File:va,Note:Ea,OpenInNewIcon:Ta,Plus:dt.Z,Reply:Ia,Share:$a,Translate:za},inject:["getMessagesListScroller"],props:{token:{type:String,required:!0},previousMessageId:{type:[String,Number],required:!0},isReplyable:{type:Boolean,required:!0},messageObject:{type:Object,required:!0},actorId:{type:String,required:!0},actorType:{type:String,required:!0},messageParameters:{type:[Array,Object],required:!0},timestamp:{type:Number,default:0},id:{type:[String,Number],required:!0},message:{type:String,required:!0},messageType:{type:String,required:!0},messageApiData:{type:Object,required:!0},isReactionsMenuOpen:{type:Boolean,required:!0},isForwarderOpen:{type:Boolean,required:!0},canReact:{type:Boolean,required:!0},showCommonReadIcon:{type:Boolean,required:!0},showSentIcon:{type:Boolean,required:!0},commonReadIconTooltip:{type:String,required:!0},sentIconTooltip:{type:String,required:!0},isTranslationAvailable:{type:Boolean,required:!0}},emits:["delete","update:isActionMenuOpen","update:isEmojiPickerOpen","update:isReactionsMenuOpen","update:isForwarderOpen","show-translate-dialog","reply"],setup(){return{supportReminders:mn}},data(){return{frequentlyUsedEmojis:[],submenu:null,currentReminder:null,customReminderDateTime:new Date(j()().add(2,"hours").minute(0).second(0).valueOf())}},computed:{conversation(){return this.$store.getters.conversation(this.token)},messageContainer(){return`#message_${this.id}`},boundariesElement(){return this.getMessagesListScroller()},isDeleteable(){return this.isConversationReadOnly||this.conversation.participantType===D.oM.TYPE.GUEST?!1:j()(this.timestamp*1e3).add(6,"h")>j()()&&(this.messageType==="comment"||this.messageType==="voice-message")&&!this.isDeleting&&(this.isMyMsg||this.conversation.type!==D.Sl.TYPE.ONE_TO_ONE&&this.conversation.type!==D.Sl.TYPE.ONE_TO_ONE_FORMER&&(this.conversation.participantType===D.oM.TYPE.OWNER||this.conversation.participantType===D.oM.TYPE.MODERATOR))},isPrivateReplyable(){return this.isReplyable&&(this.conversation.type===D.Sl.TYPE.PUBLIC||this.conversation.type===D.Sl.TYPE.GROUP)&&!this.isMyMsg&&this.actorType===D.DM.ACTOR_TYPE.USERS&&this.$store.getters.getActorType()===D.DM.ACTOR_TYPE.USERS},messageActions(){return this.$store.getters.messageActions},linkToFile(){if(this.isFileShare){const a=Object.keys(this.messageParameters).find(e=>e.startsWith("file"));return this.messageParameters?.[a]?.link}else return""},isFileShare(){return Object.keys(Object(this.messageParameters)).some(a=>a.startsWith("file"))},isFileShareOnly(){return this.isFileShare&&this.message==="{file}"},isCurrentGuest(){return this.$store.getters.getActorType()==="guests"},isMyMsg(){return this.actorId===this.$store.getters.getActorId()&&this.actorType===this.$store.getters.getActorType()},isConversationReadOnly(){return this.conversation.readOnly===D.Sl.STATE.READ_ONLY},isDeletedMessage(){return this.messageType==="comment_deleted"},isPollMessage(){return this.messageType==="comment"&&this.messageParameters?.object?.type==="talk-poll"},isInNoteToSelf(){return this.conversation.type===D.Sl.TYPE.NOTE_TO_SELF},canForwardMessage(){return!this.isCurrentGuest&&!this.isFileShare&&!this.isDeletedMessage&&!this.isPollMessage},messageDateTime(){return j()(this.timestamp*1e3).format("lll")},reminderOptions(){const a=j()(),e=a.hour()<17?j()().hour(18):null,s=j()().add(1,"days").hour(8),i=a.day()>0&&a.day()<5?j()().day(6).hour(8):null,r=a.day()!==0?j()().add(1,"weeks").day(1).hour(8):null;return[{key:"laterToday",timestamp:this.getTimestamp(e),label:t("spreed","Later today \u2013 {timeLocale}",{timeLocale:e?.format("LT")}),ariaLabel:t("spreed","Set reminder for later today")},{key:"tomorrow",timestamp:this.getTimestamp(s),label:t("spreed","Tomorrow \u2013 {timeLocale}",{timeLocale:s?.format("ddd LT")}),ariaLabel:t("spreed","Set reminder for tomorrow")},{key:"thisWeekend",timestamp:this.getTimestamp(i),label:t("spreed","This weekend \u2013 {timeLocale}",{timeLocale:i?.format("ddd LT")}),ariaLabel:t("spreed","Set reminder for this weekend")},{key:"nextWeek",timestamp:this.getTimestamp(r),label:t("spreed","Next week \u2013 {timeLocale}",{timeLocale:r?.format("ddd LT")}),ariaLabel:t("spreed","Set reminder for next week")}].filter(l=>l.timestamp!==null)},clearReminderLabel(){return t("spreed","Clear reminder \u2013 {timeLocale}",{timeLocale:j()(this.currentReminder.timestamp*1e3).format("ddd LT")})}},watch:{submenu(a){a==="reminder"&&this.getReminder()}},methods:{handleReply(){this.$emit("reply")},async handlePrivateReply(){const a=await this.$store.dispatch("createOneToOneConversation",this.actorId);this.$router.push({name:"conversation",params:{token:a.token}}).catch(e=>console.debug(`Error while pushing the new conversation's route: ${e}`))},async handleCopyMessageText(){let a=this.messageObject.message;for(const[e,s]of Object.entries(this.messageObject.messageParameters))s?.type==="call"?a=a.replace(new RegExp(`{${e}}`,"g"),"@all"):s?.type==="user"&&(a=a.replace(new RegExp(`{${e}}`,"g"),`@${s.id}`));try{await navigator.clipboard.writeText(a),(0,O.s$)(t("spreed","Message text copied to clipboard"))}catch{(0,O.x2)(t("spreed","Message text could not be copied"))}},handleCopyMessageLink(){(0,_n.aY)(this.token,this.id)},async handleMarkAsUnread(){await this.$store.dispatch("updateLastReadMessage",{token:this.token,id:this.previousMessageId,updateVisually:!0}),await this.$store.dispatch("fetchConversation",{token:this.token})},handleReactionClick(a){this.messageObject.reactionsSelf?.includes(a)?(console.debug("user has already reacted, removing reaction"),this.$store.dispatch("removeReactionFromMessage",{token:this.token,messageId:this.id,selectedEmoji:a,actorId:this.actorId})):this.$store.dispatch("addReactionToMessage",{token:this.token,messageId:this.messageObject.id,selectedEmoji:a,actorId:this.actorId}),this.closeReactionsMenu()},handleDelete(){this.$emit("delete")},onMenuOpen(){this.$emit("update:isActionMenuOpen",!0)},onMenuClose(){this.$emit("update:isActionMenuOpen",!1)},onEmojiPickerOpen(){this.updateFrequentlyUsedEmojis(),this.$emit("update:isEmojiPickerOpen",!0)},onEmojiPickerClose(){this.$emit("update:isEmojiPickerOpen",!1)},openReactionsMenu(){this.updateFrequentlyUsedEmojis(),this.$emit("update:isReactionsMenuOpen",!0)},async forwardToNote(){try{await this.$store.dispatch("forwardMessage",{messageToBeForwarded:this.messageObject}),(0,O.s$)(t("spreed",'Message forwarded to "Note to self"'))}catch(a){console.error('Error while forwarding message to "Note to self"',a),(0,O.x2)(t("spreed",'Error while forwarding message to "Note to self"'))}},openForwarder(){this.$emit("update:isForwarderOpen",!0)},closeForwarder(){this.$emit("update:isForwarderOpen",!1)},handleClickOutside(a){a.composedPath().includes(this.$el)||this.closeReactionsMenu()},closeReactionsMenu(){this.$emit("update:isReactionsMenuOpen",!1)},updateFrequentlyUsedEmojis(){this.frequentlyUsedEmojis=lt.frequently.get(5).map(a=>An.emoji(a).native)},getTimestamp(a){return a?.minute(0).second(0).millisecond(0).valueOf()||null},async getReminder(){try{const a=await un(this.token,this.id);this.currentReminder=a.data.ocs.data}catch(a){console.debug(a)}},async removeReminder(){try{await pn(this.token,this.id),(0,O.s$)(t("spreed","A reminder was successfully removed"))}catch(a){console.error(a),(0,O.x2)(t("spreed","Error occurred when removing a reminder"))}},async setReminder(a){try{await cn(this.token,this.id,a/1e3),(0,O.s$)(t("spreed","A reminder was successfully set at {datetime}",{datetime:j()(a).format("LLL")}))}catch(e){console.error(e),(0,O.x2)(t("spreed","Error occurred when creating a reminder"))}},setCustomReminderDateTime(a){this.customReminderDateTime=new Date(a.target.value)},setCustomReminder(){this.setReminder(this.customReminderDateTime.valueOf())}}};var ye=o(93451),J={};J.styleTagTransform=L(),J.setAttributes=w(),J.insert=T().bind(null,"head"),J.domAPI=k(),J.insertStyleElement=S();var od=x()(ye.Z,J);const rd=ye.Z&&ye.Z.locals?ye.Z.locals:void 0;var hn=(0,f.Z)(gn,Is,Rs,!1,null,"9ef8f72a",null);const Cn=hn.exports;var fn=function(){var e=this,s=e._self._c;return s("NcModal",{ref:"translate-modal",attrs:{size:"large",container:e.container},on:{close:function(i){return e.$emit("close")}}},[e.isMounted?s("div",{staticClass:"translate-dialog"},[s("h2",[e._v(" "+e._s(e.t("spreed","Translate message"))+" ")]),e._v(" "),s("div",{staticClass:"translate-dialog__wrapper"},[s("NcSelect",{staticClass:"translate-dialog__select",attrs:{"input-id":"from","aria-label-combobox":e.t("spreed","Source language to translate from"),placeholder:e.t("spreed","Translate from"),options:e.optionsFrom,"no-wrap":""},model:{value:e.selectedFrom,callback:function(i){e.selectedFrom=i},expression:"selectedFrom"}}),e._v(" "),s("ArrowRight"),e._v(" "),s("NcSelect",{staticClass:"translate-dialog__select",attrs:{"input-id":"to","aria-label-combobox":e.t("spreed","Target language to translate into"),placeholder:e.t("spreed","Translate to"),options:e.optionsTo,"no-wrap":""},model:{value:e.selectedTo,callback:function(i){e.selectedTo=i},expression:"selectedTo"}}),e._v(" "),s("NcButton",{staticClass:"translate-dialog__button",attrs:{type:"primary",disabled:e.isLoading},on:{click:e.handleTranslate},scopedSlots:e._u([e.isLoading?{key:"icon",fn:function(){return[s("NcLoadingIcon")]},proxy:!0}:null],null,!0)},[e._v(`
				`+e._s(e.isLoading?e.t("spreed","Translating"):e.t("spreed","Translate"))+`
			`)])],1),e._v(" "),s("NcRichText",{staticClass:"translate-dialog__message translate-dialog__message-source",attrs:{text:e.message,arguments:e.richParameters,"reference-limit":0}}),e._v(" "),e.translatedMessage?[s("NcRichText",{staticClass:"translate-dialog__message translate-dialog__message-translation",attrs:{text:e.translatedMessage,arguments:e.richParameters,"reference-limit":0}}),e._v(" "),s("NcButton",{staticClass:"translate-dialog__copy-button",on:{click:e.handleCopyTranslation},scopedSlots:e._u([{key:"icon",fn:function(){return[s("ContentCopy")]},proxy:!0}],null,!1,1967269327)},[e._v(`
				`+e._s(e.t("spreed","Copy translated text"))+`
			`)])]:e._e()],2):e._e()])},vn=[],Dn=function(){var e=this,s=e._self._c;return s("span",e._b({staticClass:"material-design-icon arrow-right-icon",attrs:{"aria-hidden":!e.title,"aria-label":e.title,role:"img"},on:{click:function(i){return e.$emit("click",i)}}},"span",e.$attrs,!1),[s("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[s("path",{attrs:{d:"M4,11V13H16L10.5,18.5L11.92,19.92L19.84,12L11.92,4.08L10.5,5.5L16,11H4Z"}},[e.title?s("title",[e._v(e._s(e.title))]):e._e()])])])},yn=[];const bn={name:"ArrowRightIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var Fn=(0,f.Z)(bn,Dn,yn,!1,null,null,null);const En=Fn.exports;var Mn=o(40515),ct=o(54641),pt=o(62373);const Bn={name:"MessageTranslateDialog",components:{ArrowRight:En,ContentCopy:Ve,NcRichText:rt.ZP,NcModal:W.Z,NcSelect:ct.N,NcButton:Z.Z,NcLoadingIcon:Mn.Z},props:{message:{type:String,required:!0},richParameters:{type:Object,required:!0}},emits:["close"],data(){return{isMounted:!1,availableLanguages:null,selectedFrom:null,selectedTo:null,isLoading:!1,translatedMessage:""}},computed:{container(){return this.$store.getters.getMainContainerSelector()},userLanguage(){return navigator.language.substring(0,2)},sourceTree(){const a={};return Array.from(new Set(this.availableLanguages?.map(s=>s.from))).forEach(s=>{a[s]={id:s,label:this.availableLanguages?.find(i=>i.from===s)?.fromLabel,translations:this.availableLanguages?.filter(i=>i.from===s).map(i=>({id:i.to,label:i.toLabel}))}}),a},translationTree(){const a={};return Array.from(new Set(this.availableLanguages?.map(s=>s.to))).forEach(s=>{a[s]={id:s,label:this.availableLanguages?.find(i=>i.to===s)?.toLabel,sources:this.availableLanguages?.filter(i=>i.to===s).map(i=>({id:i.from,label:i.fromLabel}))}}),a},optionsFrom(){return this.selectedTo?.id?this.translationTree[this.selectedTo?.id]?.sources:Object.values(this.sourceTree).map(a=>({id:a.id,label:a.label}))},optionsTo(){return this.selectedFrom?.id?this.sourceTree[this.selectedFrom?.id]?.translations:Object.values(this.translationTree).map(a=>({id:a.id,label:a.label}))}},watch:{selectedTo(){this.translatedMessage=""},selectedFrom(){this.translatedMessage=""}},async created(){const a=await(0,pt.x5)();this.availableLanguages=a.data.ocs.data.languages},mounted(){this.selectedTo=this.optionsTo.find(a=>a.id===this.userLanguage)||null,this.selectedTo&&this.translateMessage(),this.$nextTick(()=>{this.isMounted=!!this.$refs["translate-modal"].randId})},methods:{handleTranslate(){this.translateMessage(this.selectedFrom?.id)},async translateMessage(a=null){try{this.isLoading=!0;const e=await(0,pt.O9)(this.message,a,this.selectedTo?.id);this.translatedMessage=e.data.ocs.data.text}catch(e){console.error(e),(0,O.x2)(e.response?.data?.ocs?.data?.message??t("spreed","The message could not be translated"))}finally{this.isLoading=!1}},async handleCopyTranslation(){try{await navigator.clipboard.writeText(this.translatedMessage),(0,O.s$)(t("spreed","Translation copied to clipboard"))}catch{(0,O.x2)(t("spreed","Translation could not be copied"))}}}};var be=o(33830),Q={};Q.styleTagTransform=L(),Q.setAttributes=w(),Q.insert=T().bind(null,"head"),Q.domAPI=k(),Q.insertStyleElement=S();var ud=x()(be.Z,Q);const cd=be.Z&&be.Z.locals?be.Z.locals:void 0;var xn=(0,f.Z)(Bn,fn,vn,!1,null,"07bfcbbc",null);const kn=xn.exports;var Tn=function(){var e=this,s=e._self._c;return s("a",{staticClass:"contact",attrs:{href:e.link,"aria-label":e.contactAriaLabel,target:"_blank"}},[e.contactPhotoFromBase64?s("img",{class:{contact__image:e.contactHasPhoto,contact__icon:!e.contactHasPhoto},attrs:{alt:"",src:e.contactPhotoFromBase64}}):e._e(),e._v(" "),s("div",{staticClass:"contact__lineone"},[s("div",{staticClass:"title"},[e._v(`
			`+e._s(e.displayName)+`
		`)])])])},wn=[],We=o(53211);const Sn={name:"Contact",directives:{tooltip:We.Z},props:{name:{type:String,required:!0},link:{type:String,required:!0},contactName:{type:String,default:""},contactPhoto:{type:String,default:""},contactPhotoMimetype:{type:String,default:""}},computed:{contactHasPhoto(){return this.contactPhotoMimetype&&this.contactPhoto},contactPhotoFromBase64(){return this.contactHasPhoto?"data:"+this.contactPhotoMimetype+";base64,"+this.contactPhoto:OC.MimeType.getIconUrl("text/vcard")},displayName(){return this.contactName||this.name},contactAriaLabel(){return t("spreed","Contact")}}};var Fe=o(45685),q={};q.styleTagTransform=L(),q.setAttributes=w(),q.insert=T().bind(null,"head"),q.domAPI=k(),q.insertStyleElement=S();var _d=x()(Fe.Z,q);const Ad=Fe.Z&&Fe.Z.locals?Fe.Z.locals:void 0;var Ln=(0,f.Z)(Sn,Tn,wn,!1,null,"ffa9d302",null);const On=Ln.exports;var In=function(){var e=this,s=e._self._c;return s("a",{staticClass:"deck-card",class:{wide:e.wide},attrs:{href:e.link,"aria-label":e.deckCardAriaLabel,target:"_blank"}},[s("div",{staticClass:"deck-card__lineone"},[s("div",{staticClass:"icon-deck"}),e._v(" "),s("div",{staticClass:"title"},[e._v(`
			`+e._s(e.name)+`
		`)])]),e._v(" "),s("div",{staticClass:"deck-card__linetwo"},[s("div",[e._v(`
			`+e._s(e.deckLocation)+`
		`)])])])},Rn=[];const Pn={name:"DeckCard",directives:{tooltip:We.Z},props:{type:{type:String,required:!0},id:{type:String,required:!0},name:{type:String,required:!0},boardname:{type:String,required:!0},stackname:{type:String,required:!0},link:{type:String,required:!0},wide:{type:Boolean,default:!1}},computed:{deckLocation(){return t("spreed","{stack} in {board}",{stack:this.stackname,board:this.boardname})},deckCardAriaLabel(){return t("spreed","Deck Card")}}};var Ee=o(72296),ee={};ee.styleTagTransform=L(),ee.setAttributes=w(),ee.insert=T().bind(null,"head"),ee.domAPI=k(),ee.insertStyleElement=S();var gd=x()(Ee.Z,ee);const hd=Ee.Z&&Ee.Z.locals?Ee.Z.locals:void 0;var Nn=(0,f.Z)(Pn,In,Rn,!1,null,"03d8d8e8",null);const jn=Nn.exports;var $n=o(40962),_t=o(29763),Un=function(){var e=this,s=e._self._c;return s("a",{staticClass:"location",class:{wide:e.wide},attrs:{href:e.mapLink,target:"_blank",rel:"noopener noreferrer","aria-label":e.linkAriaLabel}},[s("LMap",{attrs:{zoom:e.previewZoom,center:e.center,options:{scrollWheelZoom:!1,zoomControl:!1,dragging:!1,attributionControl:!1}},on:{scroll:function(i){i.preventDefault()}}},[s("LTileLayer",{attrs:{url:e.url}}),e._v(" "),s("LControlAttribution",{attrs:{position:"bottomright",prefix:e.attribution}}),e._v(" "),s("LMarker",{attrs:{"lat-lng":e.center}},[s("LTooltip",{attrs:{options:{direction:"top",permanent:"true",offset:[-16,-14]}}},[e._v(`
				`+e._s(e.name)+`
			`)])],1)],1)],1)},Zn=[],I=o(45243),Vn=function(a){return!a||typeof a.charAt!="function"?a:a.charAt(0).toUpperCase()+a.slice(1)},Gn=function(a,e,s,i){var r=function(d){var u="set"+Vn(d),M=s[d].type===Object||s[d].type===Array||Array.isArray(s[d].type);s[d].custom&&a[u]?a.$watch(d,function(p,c){a[u](p,c)},{deep:M}):u==="setOptions"?a.$watch(d,function(p,c){(0,I.setOptions)(e,p)},{deep:M}):e[u]&&a.$watch(d,function(p,c){e[u](p)},{deep:M})};for(var l in s)r(l)},At=function(a){var e={};for(var s in a){var i=a[s];i!=null&&(e[s]=i)}return e},zn=function(a,e){var s=e.options&&e.options.constructor===Object?e.options:{};a=a&&a.constructor===Object?a:{};var i=At(s);a=At(a);var r=e.$options.props;for(var l in a){var d=r[l]?r[l].default&&typeof r[l].default=="function"?r[l].default.call():r[l].default:Symbol("unique"),u=!1;Array.isArray(d)?u=JSON.stringify(d)===JSON.stringify(a[l]):u=d===a[l],i[l]&&!u?(console.warn(l+" props is overriding the value passed in the options props"),i[l]=a[l]):i[l]||(i[l]=a[l])}return i},Wn={props:{position:{type:String,default:"topright"}},mounted:function(){this.controlOptions={position:this.position}},beforeDestroy:function(){this.mapObject&&this.mapObject.remove()}},Yn={props:{options:{type:Object,default:function(){return{}}}}},Hn={name:"LControlAttribution",mixins:[Wn,Yn],props:{prefix:{type:[String,Boolean],default:null}},mounted:function(){var e=this,s=zn(Object.assign({},this.controlOptions,{prefix:this.prefix}),this);this.mapObject=I.control.attribution(s),Gn(this,this.mapObject,this.$options.props),this.mapObject.addTo(this.$parent.mapObject),this.$nextTick(function(){e.$emit("ready",e.mapObject)})},render:function(){return null}};function Kn(a,e,s,i,r,l,d,u,M,p){typeof d!="boolean"&&(M=u,u=d,d=!1);var c=typeof s=="function"?s.options:s;a&&a.render&&(c.render=a.render,c.staticRenderFns=a.staticRenderFns,c._compiled=!0,r&&(c.functional=!0)),i&&(c._scopeId=i);var b;if(l?(b=function(_){_=_||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!_&&typeof __VUE_SSR_CONTEXT__<"u"&&(_=__VUE_SSR_CONTEXT__),e&&e.call(this,M(_)),_&&_._registeredComponents&&_._registeredComponents.add(l)},c._ssrRegister=b):e&&(b=d?function(_){e.call(this,p(_,this.$root.$options.shadowRoot))}:function(_){e.call(this,u(_))}),b)if(c.functional){var E=c.render;c.render=function(P,N){return b.call(N),E(P,N)}}else{var B=c.beforeCreate;c.beforeCreate=B?[].concat(B,b):[b]}return s}var Xn=Hn,Jn=void 0,Qn=void 0,qn=void 0,ei=void 0,ti=Kn({},Jn,Xn,Qn,ei,qn,!1,void 0,void 0,void 0);const si=ti;var ai=function(a){return!a||typeof a.charAt!="function"?a:a.charAt(0).toUpperCase()+a.slice(1)},ni=function(a,e,s,i){var r=function(d){var u="set"+ai(d),M=s[d].type===Object||s[d].type===Array||Array.isArray(s[d].type);s[d].custom&&a[u]?a.$watch(d,function(p,c){a[u](p,c)},{deep:M}):u==="setOptions"?a.$watch(d,function(p,c){(0,I.setOptions)(e,p)},{deep:M}):e[u]&&a.$watch(d,function(p,c){e[u](p)},{deep:M})};for(var l in s)r(l)},mt=function(a){var e={};for(var s in a){var i=a[s];i!=null&&(e[s]=i)}return e},ii=function(a,e){var s=e.options&&e.options.constructor===Object?e.options:{};a=a&&a.constructor===Object?a:{};var i=mt(s);a=mt(a);var r=e.$options.props;for(var l in a){var d=r[l]?r[l].default&&typeof r[l].default=="function"?r[l].default.call():r[l].default:Symbol("unique"),u=!1;Array.isArray(d)?u=JSON.stringify(d)===JSON.stringify(a[l]):u=d===a[l],i[l]&&!u?(console.warn(l+" props is overriding the value passed in the options props"),i[l]=a[l]):i[l]||(i[l]=a[l])}return i},oi=function(a){for(var e=!1;a&&!e;)a.mapObject===void 0?a=a.$parent:e=!0;return a},ri={props:{pane:{type:String,default:"overlayPane"},attribution:{type:String,default:null,custom:!0},name:{type:String,custom:!0,default:void 0},layerType:{type:String,custom:!0,default:void 0},visible:{type:Boolean,custom:!0,default:!0}},mounted:function(){this.layerOptions={attribution:this.attribution,pane:this.pane}},beforeDestroy:function(){this.unbindPopup(),this.unbindTooltip(),this.parentContainer.removeLayer(this)},methods:{setAttribution:function(e,s){var i=this.$parent.mapObject.attributionControl;i.removeAttribution(s).addAttribution(e)},setName:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setLayerType:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setVisible:function(e){this.mapObject&&(e?this.parentContainer.addLayer(this):this.parentContainer.hideLayer?this.parentContainer.hideLayer(this):this.parentContainer.removeLayer(this))},unbindTooltip:function(){var e=this.mapObject?this.mapObject.getTooltip():null;e&&e.unbindTooltip()},unbindPopup:function(){var e=this.mapObject?this.mapObject.getPopup():null;e&&e.unbindPopup()},updateVisibleProp:function(e){this.$emit("update:visible",e)}}},li={mixins:[ri],props:{pane:{type:String,default:"tilePane"},opacity:{type:Number,custom:!1,default:1},zIndex:{type:Number,default:1},tileSize:{type:Number,default:256},noWrap:{type:Boolean,default:!1}},mounted:function(){this.gridLayerOptions=Object.assign({},this.layerOptions,{pane:this.pane,opacity:this.opacity,zIndex:this.zIndex,tileSize:this.tileSize,noWrap:this.noWrap})}},di={mixins:[li],props:{tms:{type:Boolean,default:!1},subdomains:{type:[String,Array],default:"abc",validator:function(a){return typeof a=="string"?!0:Array.isArray(a)?a.every(function(e){return typeof e=="string"}):!1}},detectRetina:{type:Boolean,default:!1}},mounted:function(){this.tileLayerOptions=Object.assign({},this.gridLayerOptions,{tms:this.tms,subdomains:this.subdomains,detectRetina:this.detectRetina})},render:function(){return null}},ui={props:{options:{type:Object,default:function(){return{}}}}},ci={name:"LTileLayer",mixins:[di,ui],props:{url:{type:String,default:null},tileLayerClass:{type:Function,default:I.tileLayer}},mounted:function(){var e=this,s=ii(this.tileLayerOptions,this);this.mapObject=this.tileLayerClass(this.url,s),I.DomEvent.on(this.mapObject,this.$listeners),ni(this,this.mapObject,this.$options.props),this.parentContainer=oi(this.$parent),this.parentContainer.addLayer(this,!this.visible),this.$nextTick(function(){e.$emit("ready",e.mapObject)})}};function pi(a,e,s,i,r,l,d,u,M,p){typeof d!="boolean"&&(M=u,u=d,d=!1);var c=typeof s=="function"?s.options:s;a&&a.render&&(c.render=a.render,c.staticRenderFns=a.staticRenderFns,c._compiled=!0,r&&(c.functional=!0)),i&&(c._scopeId=i);var b;if(l?(b=function(_){_=_||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!_&&typeof __VUE_SSR_CONTEXT__<"u"&&(_=__VUE_SSR_CONTEXT__),e&&e.call(this,M(_)),_&&_._registeredComponents&&_._registeredComponents.add(l)},c._ssrRegister=b):e&&(b=d?function(_){e.call(this,p(_,this.$root.$options.shadowRoot))}:function(_){e.call(this,u(_))}),b)if(c.functional){var E=c.render;c.render=function(P,N){return b.call(N),E(P,N)}}else{var B=c.beforeCreate;c.beforeCreate=B?[].concat(B,b):[b]}return s}var _i=ci,Ai=function(){var a=this,e=a.$createElement,s=a._self._c||e;return s("div")},mi=[],gi=void 0,hi=void 0,Ci=void 0,fi=!1,vi=pi({render:Ai,staticRenderFns:mi},gi,_i,hi,fi,Ci,!1,void 0,void 0,void 0);const Di=vi;var yi=function(a,e){var s,i=function(){for(var r=[],l=arguments.length;l--;)r[l]=arguments[l];var d=this;s&&clearTimeout(s),s=setTimeout(function(){a.apply(d,r),s=null},e)};return i.cancel=function(){s&&clearTimeout(s)},i},bi=function(a){return!a||typeof a.charAt!="function"?a:a.charAt(0).toUpperCase()+a.slice(1)},Fi=function(a,e,s,i){var r=function(d){var u="set"+bi(d),M=s[d].type===Object||s[d].type===Array||Array.isArray(s[d].type);s[d].custom&&a[u]?a.$watch(d,function(p,c){a[u](p,c)},{deep:M}):u==="setOptions"?a.$watch(d,function(p,c){(0,I.setOptions)(e,p)},{deep:M}):e[u]&&a.$watch(d,function(p,c){e[u](p)},{deep:M})};for(var l in s)r(l)},gt=function(a){var e={};for(var s in a){var i=a[s];i!=null&&(e[s]=i)}return e},Ei=function(a,e){var s=e.options&&e.options.constructor===Object?e.options:{};a=a&&a.constructor===Object?a:{};var i=gt(s);a=gt(a);var r=e.$options.props;for(var l in a){var d=r[l]?r[l].default&&typeof r[l].default=="function"?r[l].default.call():r[l].default:Symbol("unique"),u=!1;Array.isArray(d)?u=JSON.stringify(d)===JSON.stringify(a[l]):u=d===a[l],i[l]&&!u?(console.warn(l+" props is overriding the value passed in the options props"),i[l]=a[l]):i[l]||(i[l]=a[l])}return i},Mi={props:{options:{type:Object,default:function(){return{}}}}},Bi={name:"LMap",mixins:[Mi],props:{center:{type:[Object,Array],custom:!0,default:function(){return[0,0]}},bounds:{type:[Array,Object],custom:!0,default:null},maxBounds:{type:[Array,Object],default:null},zoom:{type:Number,custom:!0,default:0},minZoom:{type:Number,default:null},maxZoom:{type:Number,default:null},paddingBottomRight:{type:Array,custom:!0,default:null},paddingTopLeft:{type:Array,custom:!0,default:null},padding:{type:Array,custom:!0,default:null},worldCopyJump:{type:Boolean,default:!1},crs:{type:Object,custom:!0,default:function(){return I.CRS.EPSG3857}},maxBoundsViscosity:{type:Number,default:null},inertia:{type:Boolean,default:null},inertiaDeceleration:{type:Number,default:null},inertiaMaxSpeed:{type:Number,default:null},easeLinearity:{type:Number,default:null},zoomAnimation:{type:Boolean,default:null},zoomAnimationThreshold:{type:Number,default:null},fadeAnimation:{type:Boolean,default:null},markerZoomAnimation:{type:Boolean,default:null},noBlockingAnimations:{type:Boolean,default:!1}},data:function(){return{ready:!1,lastSetCenter:this.center?(0,I.latLng)(this.center):null,lastSetBounds:this.bounds?(0,I.latLngBounds)(this.bounds):null,layerControl:void 0,layersToAdd:[],layersInControl:[]}},computed:{fitBoundsOptions:function(){var e={animate:this.noBlockingAnimations?!1:null};return this.padding?e.padding=this.padding:(this.paddingBottomRight&&(e.paddingBottomRight=this.paddingBottomRight),this.paddingTopLeft&&(e.paddingTopLeft=this.paddingTopLeft)),e}},beforeDestroy:function(){this.debouncedMoveEndHandler&&this.debouncedMoveEndHandler.cancel(),this.mapObject&&this.mapObject.remove()},mounted:function(){var e=this,s=Ei({minZoom:this.minZoom,maxZoom:this.maxZoom,maxBounds:this.maxBounds,maxBoundsViscosity:this.maxBoundsViscosity,worldCopyJump:this.worldCopyJump,crs:this.crs,center:this.center,zoom:this.zoom,inertia:this.inertia,inertiaDeceleration:this.inertiaDeceleration,inertiaMaxSpeed:this.inertiaMaxSpeed,easeLinearity:this.easeLinearity,zoomAnimation:this.zoomAnimation,zoomAnimationThreshold:this.zoomAnimationThreshold,fadeAnimation:this.fadeAnimation,markerZoomAnimation:this.markerZoomAnimation},this);this.mapObject=(0,I.map)(this.$el,s),this.bounds&&this.fitBounds(this.bounds),this.debouncedMoveEndHandler=yi(this.moveEndHandler,100),this.mapObject.on("moveend",this.debouncedMoveEndHandler),this.mapObject.on("overlayadd",this.overlayAddHandler),this.mapObject.on("overlayremove",this.overlayRemoveHandler),I.DomEvent.on(this.mapObject,this.$listeners),Fi(this,this.mapObject,this.$options.props),this.ready=!0,this.$emit("leaflet:load"),this.$nextTick(function(){e.$emit("ready",e.mapObject)})},methods:{registerLayerControl:function(e){var s=this;this.layerControl=e,this.mapObject.addControl(e.mapObject),this.layersToAdd.forEach(function(i){s.layerControl.addLayer(i)}),this.layersToAdd=[]},addLayer:function(e,s){if(e.layerType!==void 0)if(this.layerControl===void 0)this.layersToAdd.push(e);else{var i=this.layersInControl.find(function(r){return r.mapObject._leaflet_id===e.mapObject._leaflet_id});i||(this.layerControl.addLayer(e),this.layersInControl.push(e))}!s&&e.visible!==!1&&this.mapObject.addLayer(e.mapObject)},hideLayer:function(e){this.mapObject.removeLayer(e.mapObject)},removeLayer:function(e,s){e.layerType!==void 0&&(this.layerControl===void 0?this.layersToAdd=this.layersToAdd.filter(function(i){return i.name!==e.name}):(this.layerControl.removeLayer(e),this.layersInControl=this.layersInControl.filter(function(i){return i.mapObject._leaflet_id!==e.mapObject._leaflet_id}))),s||this.mapObject.removeLayer(e.mapObject)},setZoom:function(e,s){e!=null&&(this.mapObject.setZoom(e,{animate:this.noBlockingAnimations?!1:null}),this.cacheMapView())},setCenter:function(e,s){if(e!=null){var i=(0,I.latLng)(e),r=this.lastSetCenter||this.mapObject.getCenter();(r.lat!==i.lat||r.lng!==i.lng)&&(this.lastSetCenter=i,this.mapObject.panTo(i,{animate:this.noBlockingAnimations?!1:null}),this.cacheMapView(void 0,i))}},setBounds:function(e,s){if(e){var i=(0,I.latLngBounds)(e);if(i.isValid()){var r=this.lastSetBounds||this.mapObject.getBounds(),l=!r.equals(i,0);l&&(this.fitBounds(i),this.cacheMapView(i))}}},setPaddingBottomRight:function(e,s){this.paddingBottomRight=e},setPaddingTopLeft:function(e,s){this.paddingTopLeft=e},setPadding:function(e,s){this.padding=e},setCrs:function(e,s){var i=this.mapObject,r=i.getBounds();i.options.crs=e,this.fitBounds(r,{animate:!1})},fitBounds:function(e,s){this.mapObject.fitBounds(e,Object.assign({},this.fitBoundsOptions,s))},moveEndHandler:function(){this.$emit("update:zoom",this.mapObject.getZoom());var e=this.mapObject.getCenter();this.$emit("update:center",e);var s=this.mapObject.getBounds();this.$emit("update:bounds",s)},overlayAddHandler:function(e){var s=this.layersInControl.find(function(i){return i.name===e.name});s&&s.updateVisibleProp(!0)},overlayRemoveHandler:function(e){var s=this.layersInControl.find(function(i){return i.name===e.name});s&&s.updateVisibleProp(!1)},cacheMapView:function(e,s){this.lastSetBounds=e||this.mapObject.getBounds(),this.lastSetCenter=s||this.lastSetBounds.getCenter()}}};function xi(a,e,s,i,r,l,d,u,M,p){typeof d!="boolean"&&(M=u,u=d,d=!1);var c=typeof s=="function"?s.options:s;a&&a.render&&(c.render=a.render,c.staticRenderFns=a.staticRenderFns,c._compiled=!0,r&&(c.functional=!0)),i&&(c._scopeId=i);var b;if(l?(b=function(_){_=_||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!_&&typeof __VUE_SSR_CONTEXT__<"u"&&(_=__VUE_SSR_CONTEXT__),e&&e.call(this,M(_)),_&&_._registeredComponents&&_._registeredComponents.add(l)},c._ssrRegister=b):e&&(b=d?function(_){e.call(this,p(_,this.$root.$options.shadowRoot))}:function(_){e.call(this,u(_))}),b)if(c.functional){var E=c.render;c.render=function(P,N){return b.call(N),E(P,N)}}else{var B=c.beforeCreate;c.beforeCreate=B?[].concat(B,b):[b]}return s}var ki=typeof navigator<"u"&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());function Ti(a){return function(e,s){return wi(e,s)}}var Ye,ht={};function wi(a,e){var s=ki?e.media||"default":a,i=ht[s]||(ht[s]={ids:new Set,styles:[]});if(!i.ids.has(a)){i.ids.add(a);var r=e.source;if(e.map&&(r+=`
/*# sourceURL=`+e.map.sources[0]+" */",r+=`
/*# sourceMappingURL=data:application/json;base64,`+btoa(unescape(encodeURIComponent(JSON.stringify(e.map))))+" */"),i.element||(i.element=document.createElement("style"),i.element.type="text/css",e.media&&i.element.setAttribute("media",e.media),Ye===void 0&&(Ye=document.head||document.getElementsByTagName("head")[0]),Ye.appendChild(i.element)),"styleSheet"in i.element)i.styles.push(r),i.element.styleSheet.cssText=i.styles.filter(Boolean).join(`
`);else{var l=i.ids.size-1,d=document.createTextNode(r),u=i.element.childNodes;u[l]&&i.element.removeChild(u[l]),u.length?i.element.insertBefore(d,u[l]):i.element.appendChild(d)}}}var Si=Bi,Li=function(){var a=this,e=a.$createElement,s=a._self._c||e;return s("div",{staticClass:"vue2leaflet-map"},[a.ready?a._t("default"):a._e()],2)},Oi=[],Ii=function(a){a&&a("data-v-09f270aa_0",{source:".vue2leaflet-map{height:100%;width:100%}",map:void 0,media:void 0})},Ri=void 0,Pi=void 0,Ni=!1,ji=xi({render:Li,staticRenderFns:Oi},Ii,Si,Ri,Ni,Pi,!1,Ti,void 0,void 0);const $i=ji;var Ui=function(a,e){var s,i=function(){for(var r=[],l=arguments.length;l--;)r[l]=arguments[l];var d=this;s&&clearTimeout(s),s=setTimeout(function(){a.apply(d,r),s=null},e)};return i.cancel=function(){s&&clearTimeout(s)},i},Zi=function(a){return!a||typeof a.charAt!="function"?a:a.charAt(0).toUpperCase()+a.slice(1)},Vi=function(a,e,s,i){var r=function(d){var u="set"+Zi(d),M=s[d].type===Object||s[d].type===Array||Array.isArray(s[d].type);s[d].custom&&a[u]?a.$watch(d,function(p,c){a[u](p,c)},{deep:M}):u==="setOptions"?a.$watch(d,function(p,c){(0,I.setOptions)(e,p)},{deep:M}):e[u]&&a.$watch(d,function(p,c){e[u](p)},{deep:M})};for(var l in s)r(l)},Ct=function(a){var e={};for(var s in a){var i=a[s];i!=null&&(e[s]=i)}return e},Gi=function(a,e){var s=e.options&&e.options.constructor===Object?e.options:{};a=a&&a.constructor===Object?a:{};var i=Ct(s);a=Ct(a);var r=e.$options.props;for(var l in a){var d=r[l]?r[l].default&&typeof r[l].default=="function"?r[l].default.call():r[l].default:Symbol("unique"),u=!1;Array.isArray(d)?u=JSON.stringify(d)===JSON.stringify(a[l]):u=d===a[l],i[l]&&!u?(console.warn(l+" props is overriding the value passed in the options props"),i[l]=a[l]):i[l]||(i[l]=a[l])}return i},zi=function(a){for(var e=!1;a&&!e;)a.mapObject===void 0?a=a.$parent:e=!0;return a},Wi={props:{pane:{type:String,default:"overlayPane"},attribution:{type:String,default:null,custom:!0},name:{type:String,custom:!0,default:void 0},layerType:{type:String,custom:!0,default:void 0},visible:{type:Boolean,custom:!0,default:!0}},mounted:function(){this.layerOptions={attribution:this.attribution,pane:this.pane}},beforeDestroy:function(){this.unbindPopup(),this.unbindTooltip(),this.parentContainer.removeLayer(this)},methods:{setAttribution:function(e,s){var i=this.$parent.mapObject.attributionControl;i.removeAttribution(s).addAttribution(e)},setName:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setLayerType:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setVisible:function(e){this.mapObject&&(e?this.parentContainer.addLayer(this):this.parentContainer.hideLayer?this.parentContainer.hideLayer(this):this.parentContainer.removeLayer(this))},unbindTooltip:function(){var e=this.mapObject?this.mapObject.getTooltip():null;e&&e.unbindTooltip()},unbindPopup:function(){var e=this.mapObject?this.mapObject.getPopup():null;e&&e.unbindPopup()},updateVisibleProp:function(e){this.$emit("update:visible",e)}}},Yi={props:{options:{type:Object,default:function(){return{}}}}},Hi={name:"LMarker",mixins:[Wi,Yi],props:{pane:{type:String,default:"markerPane"},draggable:{type:Boolean,custom:!0,default:!1},latLng:{type:[Object,Array],custom:!0,default:null},icon:{type:[Object],custom:!1,default:function(){return new I.Icon.Default}},opacity:{type:Number,custom:!1,default:1},zIndexOffset:{type:Number,custom:!1,default:null}},data:function(){return{ready:!1}},beforeDestroy:function(){this.debouncedLatLngSync&&this.debouncedLatLngSync.cancel()},mounted:function(){var e=this,s=Gi(Object.assign({},this.layerOptions,{icon:this.icon,zIndexOffset:this.zIndexOffset,draggable:this.draggable,opacity:this.opacity}),this);this.mapObject=(0,I.marker)(this.latLng,s),I.DomEvent.on(this.mapObject,this.$listeners),this.debouncedLatLngSync=Ui(this.latLngSync,100),this.mapObject.on("move",this.debouncedLatLngSync),Vi(this,this.mapObject,this.$options.props),this.parentContainer=zi(this.$parent),this.parentContainer.addLayer(this,!this.visible),this.ready=!0,this.$nextTick(function(){e.$emit("ready",e.mapObject)})},methods:{setDraggable:function(e,s){this.mapObject.dragging&&(e?this.mapObject.dragging.enable():this.mapObject.dragging.disable())},setLatLng:function(e){if(e!=null&&this.mapObject){var s=this.mapObject.getLatLng(),i=(0,I.latLng)(e);(i.lat!==s.lat||i.lng!==s.lng)&&this.mapObject.setLatLng(i)}},latLngSync:function(e){this.$emit("update:latLng",e.latlng),this.$emit("update:lat-lng",e.latlng)}},render:function(a){return this.ready&&this.$slots.default?a("div",{style:{display:"none"}},this.$slots.default):null}};function Ki(a,e,s,i,r,l,d,u,M,p){typeof d!="boolean"&&(M=u,u=d,d=!1);var c=typeof s=="function"?s.options:s;a&&a.render&&(c.render=a.render,c.staticRenderFns=a.staticRenderFns,c._compiled=!0,r&&(c.functional=!0)),i&&(c._scopeId=i);var b;if(l?(b=function(_){_=_||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!_&&typeof __VUE_SSR_CONTEXT__<"u"&&(_=__VUE_SSR_CONTEXT__),e&&e.call(this,M(_)),_&&_._registeredComponents&&_._registeredComponents.add(l)},c._ssrRegister=b):e&&(b=d?function(_){e.call(this,p(_,this.$root.$options.shadowRoot))}:function(_){e.call(this,u(_))}),b)if(c.functional){var E=c.render;c.render=function(P,N){return b.call(N),E(P,N)}}else{var B=c.beforeCreate;c.beforeCreate=B?[].concat(B,b):[b]}return s}var Xi=Hi,Ji=void 0,Qi=void 0,qi=void 0,eo=void 0,to=Ki({},Ji,Xi,Qi,eo,qi,!1,void 0,void 0,void 0);const so=to;var ao=function(a){return!a||typeof a.charAt!="function"?a:a.charAt(0).toUpperCase()+a.slice(1)},no=function(a,e,s,i){var r=function(d){var u="set"+ao(d),M=s[d].type===Object||s[d].type===Array||Array.isArray(s[d].type);s[d].custom&&a[u]?a.$watch(d,function(p,c){a[u](p,c)},{deep:M}):u==="setOptions"?a.$watch(d,function(p,c){(0,I.setOptions)(e,p)},{deep:M}):e[u]&&a.$watch(d,function(p,c){e[u](p)},{deep:M})};for(var l in s)r(l)},ft=function(a){var e={};for(var s in a){var i=a[s];i!=null&&(e[s]=i)}return e},io=function(a,e){var s=e.options&&e.options.constructor===Object?e.options:{};a=a&&a.constructor===Object?a:{};var i=ft(s);a=ft(a);var r=e.$options.props;for(var l in a){var d=r[l]?r[l].default&&typeof r[l].default=="function"?r[l].default.call():r[l].default:Symbol("unique"),u=!1;Array.isArray(d)?u=JSON.stringify(d)===JSON.stringify(a[l]):u=d===a[l],i[l]&&!u?(console.warn(l+" props is overriding the value passed in the options props"),i[l]=a[l]):i[l]||(i[l]=a[l])}return i},oo=function(a){for(var e=!1;a&&!e;)a.mapObject===void 0?a=a.$parent:e=!0;return a},ro={props:{content:{type:String,default:null,custom:!0}},mounted:function(){this.popperOptions={}},methods:{setContent:function(e){this.mapObject&&e!==null&&e!==void 0&&this.mapObject.setContent(e)}},render:function(e){return this.$slots.default?e("div",this.$slots.default):null}},lo={props:{options:{type:Object,default:function(){return{}}}}},uo={name:"LTooltip",mixins:[ro,lo],mounted:function(){var e=this,s=io(this.popperOptions,this);this.mapObject=(0,I.tooltip)(s),I.DomEvent.on(this.mapObject,this.$listeners),no(this,this.mapObject,this.$options.props),this.mapObject.setContent(this.content||this.$el),this.parentContainer=oo(this.$parent),this.parentContainer.mapObject.bindTooltip(this.mapObject),this.$nextTick(function(){e.$emit("ready",e.mapObject)})},beforeDestroy:function(){this.parentContainer&&(this.parentContainer.unbindTooltip?this.parentContainer.unbindTooltip():this.parentContainer.mapObject&&this.parentContainer.mapObject.unbindTooltip&&this.parentContainer.mapObject.unbindTooltip())}};function co(a,e,s,i,r,l,d,u,M,p){typeof d!="boolean"&&(M=u,u=d,d=!1);var c=typeof s=="function"?s.options:s;a&&a.render&&(c.render=a.render,c.staticRenderFns=a.staticRenderFns,c._compiled=!0,r&&(c.functional=!0)),i&&(c._scopeId=i);var b;if(l?(b=function(_){_=_||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!_&&typeof __VUE_SSR_CONTEXT__<"u"&&(_=__VUE_SSR_CONTEXT__),e&&e.call(this,M(_)),_&&_._registeredComponents&&_._registeredComponents.add(l)},c._ssrRegister=b):e&&(b=d?function(_){e.call(this,p(_,this.$root.$options.shadowRoot))}:function(_){e.call(this,u(_))}),b)if(c.functional){var E=c.render;c.render=function(P,N){return b.call(N),E(P,N)}}else{var B=c.beforeCreate;c.beforeCreate=B?[].concat(B,b):[b]}return s}var po=uo,_o=void 0,Ao=void 0,mo=void 0,go=void 0,ho=co({},_o,po,Ao,go,mo,!1,void 0,void 0,void 0);const Co={name:"Location",components:{LControlAttribution:si,LTileLayer:Di,LMap:$i,LMarker:so,LTooltip:ho},props:{latitude:{type:Number,required:!0},longitude:{type:Number,required:!0},name:{type:String,default:""},wide:{type:Boolean,default:!1}},data(){return{url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",previewZoom:13,linkZoom:18,attribution:'&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'}},computed:{center(){return[this.latitude,this.longitude]},mapLink(){return`https://www.openstreetmap.org/?mlat=${this.latitude}&mlon=${this.longitude}#map=${this.linkZoom}/${this.latitude}/${this.longitude}`},linkAriaLabel(){return t("spreed","Open this location in OpenStreetMap")}}};var Me=o(7981),te={};te.styleTagTransform=L(),te.setAttributes=w(),te.insert=T().bind(null,"head"),te.domAPI=k(),te.insertStyleElement=S();var vd=x()(Me.Z,te);const Dd=Me.Z&&Me.Z.locals?Me.Z.locals:void 0;var fo=(0,f.Z)(Co,Un,Zn,!1,null,"eab1e434",null);const vo=fo.exports;var Do=function(){var e=this,s=e._self._c;return s("span",{ref:"mention",staticClass:"mention"},[e.size?s("NcUserBubble",{attrs:{"display-name":e.name,"avatar-image":e.avatarUrl,user:e.id,size:e.size,primary:e.primary}}):e._e()],1)},yo=[],bo=o(43554),Fo=o(71808),Eo=o(29093);const Mo={name:"Mention",components:{NcUserBubble:Fo.N},props:{type:{type:String,required:!0},id:{type:String,required:!0},name:{type:String,required:!0},server:{type:String,default:""}},data(){return{size:null}},computed:{isMentionToAll(){return this.type==="call"},isGroupMention(){return this.type==="user-group"||this.type==="group"},isMentionToGuest(){return this.type==="guest"},isRemoteUser(){return this.type==="user"&&this.server!==""},isCurrentGuest(){return this.$store.getters.getActorType()==="guests"&&this.id==="guest/"+this.$store.getters.getActorId()},isCurrentUser(){return this.isRemoteUser?!1:this.$store.getters.getActorType()==="users"&&this.id===this.$store.getters.getUserId()},isCurrentUserGroup(){return this.isGroupMention&&(0,bo.j)("spreed","user_group_ids",[]).includes(this.id)},primary(){return this.isMentionToAll||this.isCurrentUser||this.isGroupMention&&this.isCurrentUserGroup||this.isMentionToGuest&&this.isCurrentGuest},avatarUrl(){return this.isGroupMention?"icon-group-forced-white":this.isMentionToGuest||this.isRemoteUser?"icon-user-forced-white":this.isMentionToAll?(0,z.generateOcsUrl)("apps/spreed/api/v1/room/{token}/avatar"+(Eo.$?"/dark":""),{token:this.id}):void 0}},mounted(){this.size=parseInt(window.getComputedStyle(this.$refs.mention).fontSize,10)*4/3}};var Be=o(73902),se={};se.styleTagTransform=L(),se.setAttributes=w(),se.insert=T().bind(null,"head"),se.domAPI=k(),se.insertStyleElement=S();var bd=x()(Be.Z,se);const Fd=Be.Z&&Be.Z.locals?Be.Z.locals:void 0;var Bo=(0,f.Z)(Mo,Do,yo,!1,null,"76a461bb",null);const xo=Bo.exports;var ko=function(){var e=this,s=e._self._c;return s("div",{staticClass:"wrapper"},[e.showAsButton?s("div",{staticClass:"poll-closed"},[s("NcButton",{attrs:{type:"secondary"},on:{click:e.openPoll}},[e._v(`
			`+e._s(e.t("spreed","See results"))+`
		`)])],1):s("a",{directives:[{name:"observe-visibility",rawName:"v-observe-visibility",value:e.getPollData,expression:"getPollData"}],staticClass:"poll",attrs:{"aria-label":e.t("spreed","Poll"),role:"button"},on:{click:e.openPoll}},[s("div",{staticClass:"poll__header"},[s("PollIcon",{attrs:{size:20}}),e._v(" "),s("p",[e._v(`
				`+e._s(e.pollName)+`
			`)])],1),e._v(" "),s("div",{staticClass:"poll__footer"},[e._v(`
			`+e._s(e.pollFooterText)+`
		`)])]),e._v(" "),e.vote!==void 0&&e.showModal?s("NcModal",{attrs:{size:"small",container:e.container},on:{close:e.dismissModal}},[s("div",{staticClass:"poll__modal"},[s("div",{staticClass:"poll__header"},[s("PollIcon",{attrs:{size:20}}),e._v(" "),s("h2",{staticClass:"poll__modal-title"},[e._v(`
					`+e._s(e.pollName)+`
				`)])],1),e._v(" "),s("p",{staticClass:"poll__summary"},[e._v(`
				`+e._s(e.pollSummaryText)+`
			`)]),e._v(" "),e.modalPage==="voting"?s("div",{staticClass:"poll__modal-options"},[e.checkboxRadioSwitchType?e._l(e.options,function(i,r){return s("NcCheckboxRadioSwitch",{key:e.checkboxRadioSwitchType+r,staticClass:"poll__option",attrs:{checked:e.vote,value:r.toString(),type:e.checkboxRadioSwitchType,name:"answerType"},on:{"update:checked":function(l){e.vote=l}}},[e._v(`
						`+e._s(i)+`
					`)])}):e._e()],2):e.modalPage==="results"?s("div",{staticClass:"results__options"},e._l(e.options,function(i,r){return s("div",{key:r,staticClass:"results__option"},[s("div",{staticClass:"results__option-title"},[s("p",[e._v(e._s(i))]),e._v(" "),s("p",{staticClass:"percentage"},[e._v(`
							`+e._s(e.getVotePercentage(r)+"%")+`
						`)])]),e._v(" "),e.getFilteredDetails(r).length>0||e.selfHasVotedOption(r)?s("div",{staticClass:"results__option__details"},[e.details?s("PollVotersDetails",{attrs:{container:e.container,details:e.getFilteredDetails(r)}}):e._e(),e._v(" "),e.selfHasVotedOption(r)?s("p",{staticClass:"results__option-subtitle"},[e._v(`
							`+e._s(e.t("spreed","You voted for this option"))+`
						`)]):e._e()],1):e._e(),e._v(" "),s("NcProgressBar",{staticClass:"results__option-progress",attrs:{value:e.getVotePercentage(r),size:"medium"}})],1)}),0):e._e(),e._v(" "),e.isPollOpen?s("div",{staticClass:"poll__modal-actions"},[e.modalPage==="voting"?s("NcButton",{attrs:{type:"primary",disabled:!e.canSubmitVote},on:{click:e.submitVote}},[e._v(`
					`+e._s(e.t("spreed","Submit vote"))+`
				`)]):s("NcButton",{attrs:{type:"secondary"},on:{click:function(i){e.modalPage="voting"}}},[e._v(`
					`+e._s(e.t("spreed","Change your vote"))+`
				`)]),e._v(" "),e.canEndPoll?s("NcActions",{attrs:{"force-menu":"",container:e.container}},[s("NcActionButton",{staticClass:"critical",on:{click:e.endPoll},scopedSlots:e._u([{key:"icon",fn:function(){return[s("FileLock",{attrs:{size:20}})]},proxy:!0}],null,!1,1793525573)},[e._v(`
						`+e._s(e.t("spreed","End poll"))+`
						`)])],1):e._e()],1):e._e()])]):e._e()],1)},To=[],wo=function(){var e=this,s=e._self._c;return s("span",e._b({staticClass:"material-design-icon file-lock-icon",attrs:{"aria-hidden":!e.title,"aria-label":e.title,role:"img"},on:{click:function(i){return e.$emit("click",i)}}},"span",e.$attrs,!1),[s("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[s("path",{attrs:{d:"M18 13C16.6 13 15.2 14.1 15.2 15.5V17C14.6 17 14 17.6 14 18.2V21.7C14 22.4 14.6 23 15.2 23H20.7C21.4 23 22 22.4 22 21.8V18.3C22 17.6 21.4 17 20.8 17V15.5C20.8 14.1 19.4 13 18 13M18 14.2C18.8 14.2 19.5 14.7 19.5 15.5V17H16.5V15.5C16.5 14.7 17.2 14.2 18 14.2M6 2C4.9 2 4 2.9 4 4V20C4 21.1 4.9 22 6 22H12V18.2C12 17.2 12.4 16.5 13 16C13.1 15.9 13.2 15.9 13.2 15.8V15.5C13.2 12.8 15.6 11 18 11C18.7 11 19.4 11.2 20 11.4V8L14 2H6M13 3.5L18.5 9H13V3.5Z"}},[e.title?s("title",[e._v(e._s(e.title))]):e._e()])])])},So=[];const Lo={name:"FileLockIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var Oo=(0,f.Z)(Lo,wo,So,!1,null,null,null);const Io=Oo.exports;var Ro=o(20332),vt=o(9359),Po=o(29094),No=function(){var e=this,s=e._self._c;return s("NcPopover",{staticClass:"poll-voters-details",attrs:{trigger:"hover",container:e.container},scopedSlots:e._u([{key:"trigger",fn:function(){return[s("NcButton",{staticClass:"poll-voters-details__button",attrs:{type:"tertiary-no-background","aria-label":e.t("spreed","Voted participants")},scopedSlots:e._u([{key:"icon",fn:function(){return e._l(e.details.slice(0,8),function(i,r){return s("AvatarWrapper",{key:r,attrs:{id:i.actorId,name:e.getDisplayName(i),source:i.actorType,size:e.AVATAR.SIZE.EXTRA_SMALL,condensed:"","disable-menu":"","disable-tooltip":""}})})},proxy:!0}])})]},proxy:!0}])},[e._v(" "),s("div",{staticClass:"poll-voters-details__popover",attrs:{tabindex:"0"}},e._l(e.details,function(i,r){return s("div",{key:r,staticClass:"poll-voters-details__list-item"},[s("AvatarWrapper",{attrs:{id:i.actorId,name:e.getDisplayName(i),source:i.actorType,size:e.AVATAR.SIZE.EXTRA_SMALL,"disable-menu":""}}),e._v(" "),s("p",{staticClass:"poll-voters-details__display-name"},[e._v(`
				`+e._s(e.getDisplayName(i))+`
			`)])],1)}),0)])},jo=[],He=o(67311);const $o={name:"PollVotersDetails",components:{AvatarWrapper:He.Z,NcButton:Z.Z,NcPopover:ot.Z},props:{details:{type:Array,required:!0},container:{type:String,required:!0}},setup(){return{AVATAR:D.pA}},methods:{getDisplayName(a){return a.actorDisplayName===""&&a.actorType===D.DM.ACTOR_TYPE.GUESTS?t("spreed","Guest"):a.actorType==="deleted_users"?t("spreed","Deleted user"):a.actorDisplayName}}};var xe=o(34317),ae={};ae.styleTagTransform=L(),ae.setAttributes=w(),ae.insert=T().bind(null,"head"),ae.domAPI=k(),ae.insertStyleElement=S();var Bd=x()(xe.Z,ae);const xd=xe.Z&&xe.Z.locals?xe.Z.locals:void 0;var Uo=(0,f.Z)($o,No,jo,!1,null,"36590a64",null);const Zo=Uo.exports,Vo={name:"Poll",components:{NcActions:ze.Z,NcActionButton:Ge.Z,NcCheckboxRadioSwitch:vt.Z,NcModal:W.Z,NcButton:Z.Z,NcProgressBar:Po.Z,PollVotersDetails:Zo,FileLock:Io,PollIcon:Ro.Z},props:{pollName:{type:String,required:!0},id:{type:String,required:!0},token:{type:String,required:!0},showAsButton:{type:Boolean,default:!1}},data(){return{vote:void 0,showModal:!1,modalPage:""}},computed:{container(){return this.$store.getters.getMainContainerSelector()},poll(){return this.$store.getters.getPoll(this.token,this.id)},pollLoaded(){return!!this.poll},numVoters(){return this.pollLoaded?this.poll.numVoters:void 0},question(){return this.pollLoaded?this.poll.question:void 0},options(){return this.pollLoaded?this.poll.options:void 0},votes(){return this.pollLoaded?this.poll.votes:void 0},selfHasVoted(){if(this.pollLoaded)return typeof this.votedSelf=="object"?this.votedSelf.length>0:!!this.votedSelf},votedSelf(){return this.pollLoaded?this.poll.votedSelf:void 0},resultMode(){return this.pollLoaded?this.poll.resultMode:void 0},isPollPublic(){return this.resultMode===0},status(){return this.pollLoaded?this.poll.status:void 0},isPollOpen(){return this.status===0},isPollClosed(){return this.status===1},details(){if(!(!this.pollLoaded||this.isPollOpen))return this.poll.details},checkboxRadioSwitchType(){if(this.pollLoaded)return this.poll.maxVotes===0?"checkbox":"radio"},canSubmitVote(){return typeof this.vote=="object"?this.vote.length>0:this.vote!==void 0&&this.vote!==""},participantType(){return this.$store.getters.conversation(this.token).participantType},selfIsOwnerOrModerator(){return this.poll.actorType===this.$store.getters.getActorType()&&this.poll.actorId===this.$store.getters.getActorId()||[D.oM.TYPE.OWNER,D.oM.TYPE.MODERATOR,D.oM.TYPE.GUEST_MODERATOR].includes(this.participantType)},pollSummaryText(){return this.isPollClosed?n("spreed","Poll results \u2022 %n vote","Poll results \u2022 %n votes",this.numVoters):this.selfIsOwnerOrModerator||this.isPollPublic&&this.selfHasVoted?n("spreed","Open poll \u2022 %n vote","Open poll \u2022 %n votes",this.numVoters):!this.isPollPublic&&this.selfHasVoted?t("spreed","Open poll \u2022 You voted already"):t("spreed","Open poll")},canEndPoll(){return this.isPollOpen&&this.selfIsOwnerOrModerator},pollFooterText(){return this.isPollOpen?this.selfHasVoted?t("spreed","Open poll \u2022 You voted already"):t("spreed","Open poll \u2022 Click to vote"):this.isPollClosed?t("spreed","Poll \u2022 Ended"):t("spreed","Poll")}},watch:{pollLoaded(){this.setVoteData()},modalPage(a){a==="voting"&&this.setVoteData()}},mounted(){this.setVoteData()},methods:{getPollData(){this.pollLoaded||this.$store.dispatch("getPollData",{token:this.token,pollId:this.id})},setVoteData(){this.checkboxRadioSwitchType==="radio"?(this.vote="",this.selfHasVoted&&(this.vote=this.votedSelf[0].toString())):(this.vote=[],this.selfHasVoted&&(this.vote=this.votedSelf.map(a=>a.toString())))},openPoll(){this.selfHasVoted||this.isPollClosed?this.modalPage="results":this.modalPage="voting",this.showModal=!0},dismissModal(){this.showModal=!1,typeof this.vote=="string"?this.vote="":this.vote=[]},submitVote(){let a=this.vote;Array.isArray(this.vote)||(a=[this.vote]),this.$store.dispatch("submitVote",{token:this.token,pollId:this.id,vote:a.map(e=>parseInt(e))}),this.modalPage="results"},endPoll(){this.$store.dispatch("endPoll",{token:this.token,pollId:this.id}),this.modalPage="results"},selfHasVotedOption(a){return this.votedSelf.includes(a)},getFilteredDetails(a){return this.details?this.details.filter(e=>e.optionId===a):[]},getVotePercentage(a){return this.votes[`option-${a}`]===void 0?0:parseInt(this.votes[`option-${a}`]/this.numVoters*100)}}};var ke=o(49897),ne={};ne.styleTagTransform=L(),ne.setAttributes=w(),ne.insert=T().bind(null,"head"),ne.domAPI=k(),ne.insertStyleElement=S();var Td=x()(ke.Z,ne);const wd=ke.Z&&ke.Z.locals?ke.Z.locals:void 0;var Go=(0,f.Z)(Vo,ko,To,!1,null,"d33bb6d8",null);const Dt=Go.exports;var zo=o(661),Ke=o(77013),Xe=o(84749),$=o(1036),Wo=o(81451),Yo=o(2516);const Ho=(0,V.getCapabilities)()?.spreed?.config?.chat?.["has-translation-providers"]??(0,V.getCapabilities)()?.spreed?.config?.chat?.translations?.length>0,Ko={name:"Message",components:{MessageTranslateDialog:kn,CallButton:Ke.Z,MessageButtonsBar:Cn,NcButton:Z.Z,NcEmojiPicker:it.Z,NcPopover:ot.Z,NcRichText:rt.ZP,Poll:Dt,Quote:zo.Z,AlertCircle:ms.Z,Check:Ze.default,CheckAll:at,ContentCopy:Ve,EmoticonOutline:nt.Z,Reload:Fs.Z,UnfoldLess:ks,UnfoldMore:Os},inject:["scrollerBoundingClientRect"],inheritAttrs:!1,props:{actorType:{type:String,required:!0},actorId:{type:String,required:!0},message:{type:String,required:!0},messageParameters:{type:[Array,Object],required:!0},timestamp:{type:Number,default:0},id:{type:[String,Number],required:!0},isTemporary:{type:Boolean,default:!1},isReplyable:{type:Boolean,required:!0},token:{type:String,required:!0},systemMessage:{type:String,required:!0},isCombinedSystemMessage:{type:Boolean,default:!1},isCombinedSystemMessageCollapsed:{type:Boolean,default:void 0},messageType:{type:String,required:!0},parent:{type:Object,default:void 0},markdown:{type:Boolean,default:!0},sendingFailure:{type:String,default:""},previousMessageId:{type:[String,Number],default:0},nextMessageId:{type:[String,Number],default:0},reactions:{type:[Array,Object],default:()=>({})},reactionsSelf:{type:Array,default:()=>[]},referenceId:{type:String,default:""}},emits:["toggle-combined-system-message"],setup(){const a=(0,Xe.E)(),e=(0,Wo.a)(),s=(0,Ce.t)();return{isInCall:a,isTranslationAvailable:Ho,chatExtrasStore:e,guestNameStore:s}},expose:["highlightMessage"],data(){return{isHovered:!1,showReloadButton:!1,isDeleting:!1,isHighlighted:!1,seen:!1,isActionMenuOpen:!1,isEmojiPickerOpen:!1,isFollowUpEmojiPickerOpen:!1,isReactionsMenuOpen:!1,isForwarderOpen:!1,detailedReactionsLoading:!1,isTranslateDialogOpen:!1,codeBlocks:null,currentCodeBlock:null,copyButtonOffset:0}},computed:{isLastMessage(){return!this.nextMessageId||this.id===this.conversation?.lastMessage?.id},isLastReadMessage(){return!this.isLastMessage&&this.id===this.$store.getters.getVisualLastReadMessageId(this.token)},renderedMessage(){return this.messageParameters?.file&&this.message!=="{file}"?`{file}

`+this.message:this.message},messageObject(){return this.$store.getters.message(this.token,this.id)},isSystemMessage(){return this.systemMessage!==""},isDeletedMessage(){return this.messageType==="comment_deleted"},messageTime(){return j()(this.timestamp*1e3).format("LT")},messageDate(){return j()(this.timestamp*1e3).format("LL")},conversation(){return this.$store.getters.conversation(this.token)},showCommonReadIcon(){return this.conversation.lastCommonReadMessage>=this.id&&this.showSentIcon&&!this.isDeletedMessage},showSentIcon(){return!this.isSystemMessage&&!this.isTemporary&&!this.isDeleting&&this.actorType===this.$store.getters.getActorType()&&this.actorId===this.$store.getters.getActorId()&&!this.isDeletedMessage},messagesList(){return this.$store.getters.messagesList(this.token)},isLastCallStartedMessage(){const e=this.messagesList.reverse().find(s=>s.systemMessage==="call_started");return e?this.id===e.id:!1},showJoinCallButton(){return this.systemMessage==="call_started"&&this.conversation.hasCall&&this.isLastCallStartedMessage&&!this.isInCall},showResultsButton(){return this.systemMessage==="poll_closed"},isSingleEmoji(){const a=As()();let e,s="",i=0;const r=this.renderedMessage.trim();for(;e=a.exec(r);){if(i>2)return!1;s+=e[0],i++}return s===r},richParameters(){const a={};return Object.keys(this.messageParameters).forEach(function(e){const s=this.messageParameters[e].type,i=this.messageParameters[e].mimetype,r=(0,Yo.F)(this.messageObject);if(s==="user"||s==="call"||s==="guest"||s==="user-group"||s==="group")a[e]={component:xo,props:this.messageParameters[e]};else if(s==="file"&&i!=="text/vcard")a[e]={component:_t.Z,props:Object.assign({token:this.token,itemType:r,referenceId:this.referenceId},this.messageParameters[e])};else if(s==="deck-card")a[e]={component:jn,props:this.messageParameters[e]};else if(s==="geo-location")a[e]={component:vo,props:this.messageParameters[e]};else if(s==="talk-poll"&&this.systemMessage!=="poll_closed"){const l=Object.assign({},this.messageParameters[e]);l.token=this.token,l.pollName=this.messageParameters[e].name,a[e]={component:Dt,props:l}}else i==="text/vcard"?a[e]={component:On,props:this.messageParameters[e]}:a[e]={component:$n.Z,props:this.messageParameters[e]}}.bind(this)),a},hasDate(){return!this.isTemporary&&!this.isDeleting&&!this.sendingFailure},showMessageButtonsBar(){return!this.isSystemMessage&&!this.isDeletedMessage&&!this.isTemporary&&(this.isHovered||this.isActionMenuOpen||this.isEmojiPickerOpen||this.isFollowUpEmojiPickerOpen||this.isReactionsMenuOpen||this.isForwarderOpen||this.isTranslateDialogOpen)},showCombinedSystemMessageToggle(){return this.isSystemMessage&&!this.isDeletedMessage&&!this.isTemporary&&this.isCombinedSystemMessage&&(this.isHovered||!this.isCombinedSystemMessageCollapsed)},isTemporaryUpload(){return this.isTemporary&&this.messageParameters.file},loadingIconTooltip(){return t("spreed","Sending message")},sentIconTooltip(){return t("spreed","Message sent")},commonReadIconTooltip(){return t("spreed","Message read by everyone who shares their reading status")},sendingErrorCanRetry(){return this.sendingFailure==="timeout"||this.sendingFailure==="other"||this.sendingFailure==="failed-upload"},sendingErrorIconTooltip(){return this.sendingErrorCanRetry?t("spreed","Failed to send the message. Click to try again"):this.sendingFailure==="quota"?t("spreed","Not enough free space to upload file"):this.sendingFailure==="failed-share"?t("spreed","You are not allowed to share files"):t("spreed","You cannot send messages to this conversation at the moment")},messageActions(){return this.$store.getters.messageActions},messageApiData(){return{message:this.messageObject,metadata:this.conversation,apiVersion:"v3"}},hasReactions(){return Object.keys(this.reactions).length!==0},canReact(){return this.conversation.readOnly!==D.Sl.STATE.READ_ONLY&&(this.conversation.permissions&D.oM.PERMISSIONS.CHAT)!==0&&this.messageObject.messageType!=="command"&&this.messageObject.messageType!=="comment_deleted"},detailedReactions(){return this.$store.getters.reactions(this.token,this.id)},detailedReactionsLoaded(){return this.$store.getters.reactionsLoaded(this.token,this.id)},containsCodeBlocks(){return this.message.includes("```")}},watch:{showJoinCallButton(){$.N.$emit("scroll-chat-to-bottom")},reactions(){$.N.$emit("scroll-chat-to-bottom-if-sticky")}},mounted(){this.containsCodeBlocks&&(this.codeBlocks=Array.from(this.$refs.message?.querySelectorAll("pre")))},methods:{handleMarkdownMouseOver(a){if(!this.containsCodeBlocks)return;const e=this.codeBlocks.findIndex(s=>s.contains(a.target));if(e!==-1){this.currentCodeBlock=e;const s=this.codeBlocks[e];this.copyButtonOffset=`${s.offsetTop}px`}},handleMarkdownMouseLeave(){this.currentCodeBlock=null,this.copyButtonOffset=0},async copyCodeBlock(){const a=this.codeBlocks[this.currentCodeBlock].textContent;try{await navigator.clipboard.writeText(a),(0,O.s$)(t("spreed","Code block copied to clipboard"))}catch{(0,O.x2)(t("spreed","Code block could not be copied"))}},userHasReacted(a){return this.reactionsSelf?.includes(a)},lastReadMessageVisibilityChanged(a){a&&(this.seen=!0)},highlightMessage(){this.isHighlighted=!0},handleRetry(){if(this.sendingErrorCanRetry)if(this.sendingFailure==="failed-upload"){const a=this.renderedMessage!==this.message?this.message:void 0;this.$store.dispatch("retryUploadFiles",{uploadId:this.messageObject.uploadId,caption:a})}else $.N.$emit("retry-message",this.id),$.N.$emit("focus-chat-input")},handleMouseover(){this.isHovered||(this.isHovered=!0)},handleReactionsMouseOver(){this.hasReactions&&!this.detailedReactionsLoaded&&this.getReactions()},handleMouseleave(){this.isHovered&&(this.isHovered=!1)},async getReactions(){if(!this.detailedReactionsLoading)try{this.detailedReactionsLoading=!0,await this.$store.dispatch("getReactions",{token:this.token,messageId:this.id}),this.detailedReactionsLoading=!1}catch{this.detailedReactionsLoading=!1}},onEmojiPickerOpen(){this.isFollowUpEmojiPickerOpen=!0},onEmojiPickerClose(){this.isFollowUpEmojiPickerOpen=!1},async handleReactionClick(a){if(!this.canReact){(0,O.x2)(t("spreed","No permission to post reactions in this conversation"));return}this.userHasReacted(a)?this.$store.dispatch("removeReactionFromMessage",{token:this.token,messageId:this.id,selectedEmoji:a,actorId:this.actorId}):this.$store.dispatch("addReactionToMessage",{token:this.token,messageId:this.id,selectedEmoji:a,actorId:this.actorId})},handleReply(){this.chatExtrasStore.setParentIdToReply({token:this.token,id:this.id}),$.N.$emit("focus-chat-input")},async handleDelete(){this.isDeleting=!0;try{const a=await this.$store.dispatch("deleteMessage",{message:{token:this.token,id:this.id},placeholder:t("spreed","Deleting message")});a===202?(0,O.K2)(t("spreed","Message deleted successfully, but Matterbridge is configured and the message might already be distributed to other services"),{timeout:O.TN*2}):a===200&&(0,O.s$)(t("spreed","Message deleted successfully"))}catch(a){a?.response?.status===400?(0,O.x2)(t("spreed","Message could not be deleted because it is too old")):a?.response?.status===405?(0,O.x2)(t("spreed","Only normal chat messages can be deleted")):((0,O.x2)(t("spreed","An error occurred while deleting the message")),console.error(a)),this.isDeleting=!1;return}this.isDeleting=!1},getReactionSummary(a){const e=this.detailedReactions[a],s=[];for(const i in e)e[i].actorType===this.$store.getters.getActorType()&&e[i].actorId===this.$store.getters.getActorId()?s.unshift(t("spreed","You")):s.push(this.getDisplayNameForReaction(e[i]));return s.join(", ")},getDisplayNameForReaction(a){const e=a.actorDisplayName.trim();return a.actorType===D.DM.ACTOR_TYPE.GUESTS?this.guestNameStore.getGuestNameWithGuestSuffix(this.token,a.actorId):e===""?t("spreed","Deleted user"):e},toggleCombinedSystemMessage(){this.$emit("toggle-combined-system-message")}}};var Te=o(7181),ie={};ie.styleTagTransform=L(),ie.setAttributes=w(),ie.insert=T().bind(null,"head"),ie.domAPI=k(),ie.insertStyleElement=S();var Ld=x()(Te.Z,ie);const Od=Te.Z&&Te.Z.locals?Te.Z.locals:void 0;var Xo=o(95413),yt=o.n(Xo),bt=(0,f.Z)(Ko,cs,ps,!1,null,"703a9d4d",null);typeof yt()=="function"&&yt()(bt);const Ft=bt.exports,Jo={name:"MessagesGroup",components:{AvatarWrapper:He.Z,Message:Ft},inheritAttrs:!1,props:{token:{type:String,required:!0},messages:{type:Array,required:!0},previousMessageId:{type:[String,Number],default:0},nextMessageId:{type:[String,Number],default:0}},setup(){const a=(0,Ce.t)();return{AVATAR:D.pA,guestNameStore:a}},expose:["highlightMessage"],computed:{actorType(){return this.messages[0].actorType},actorId(){return this.messages[0].actorId},actorDisplayName(){const a=this.messages[0].actorDisplayName.trim();return this.actorType===D.DM.ACTOR_TYPE.GUESTS?this.guestNameStore.getGuestName(this.token,this.actorId):a===""?t("spreed","Deleted user"):a},disableMenu(){return this.$store.getters.getActorType()==="guests"||this.actorType===D.DM.ACTOR_TYPE.BRIDGED}},methods:{highlightMessage(a){for(const e of this.$refs.message)if(e.id===a){e.highlightMessage();break}}}};var we=o(18333),oe={};oe.styleTagTransform=L(),oe.setAttributes=w(),oe.insert=T().bind(null,"head"),oe.domAPI=k(),oe.insertStyleElement=S();var Rd=x()(we.Z,oe);const Pd=we.Z&&we.Z.locals?we.Z.locals:void 0;var Qo=(0,f.Z)(Jo,ds,us,!1,null,"728df249",null);const qo=Qo.exports;var er=function(){var e=this,s=e._self._c;return s("div",{staticClass:"wrapper wrapper--system"},e._l(e.messagesGroupedBySystemMessage,function(i){return s("div",{key:i.id,staticClass:"messages-group__system"},[i.messages?.length>1?s("ul",{staticClass:"messages messages--header"},[s("Message",e._b({attrs:{"is-combined-system-message":"","is-combined-system-message-collapsed":i.collapsed,"next-message-id":e.getNextMessageId(i.messages.at(-1)),"previous-message-id":e.getPrevMessageId(i.messages.at(0))},on:{"toggle-combined-system-message":function(r){return e.toggleCollapsed(i)}}},"Message",e.createCombinedSystemMessage(i),!1))],1):e._e(),e._v(" "),s("ul",{directives:[{name:"show",rawName:"v-show",value:i.messages?.length===1||!i.collapsed,expression:"messagesCollapsed.messages?.length === 1 || !messagesCollapsed.collapsed"}],staticClass:"messages",class:{"messages--collapsed":i.messages?.length>1}},e._l(i.messages,function(r){return s("Message",e._b({key:r.id,attrs:{"next-message-id":e.getNextMessageId(r),"previous-message-id":e.getPrevMessageId(r)}},"Message",r,!1))}),1)])}),0)},tr=[],sr=o(50361),ar=o.n(sr),nr=o(43656);/*
 * @copyright Copyright (c) 2023 Maksim Sukharev <antreesy.web@gmail.com>
 *
 * @author Maksim Sukharev <antreesy.web@gmail.com>
 *
 * @license AGPL-3.0-or-later
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 */function ir(){const a=(0,nr.o)();function e(l){return l.actorId===a.getters.getActorId()&&l.actorType===a.getters.getActorType()}function s(l){return l.messageParameters.actor.id===a.getters.getActorId()&&l.messageParameters.actor.type+"s"===a.getters.getActorType()}function i(l){return l.messageParameters.user.id===a.getters.getActorId()&&l.messageParameters.user.type+"s"===a.getters.getActorType()}function r({id:l,messages:d,type:u,collapsed:M}){const p=ar()(d[0]);if(p.id=d[0].id+"_combined",u==="call_reconnected")return s(p)?p.message=t("spreed","You reconnected to the call"):p.message=t("spreed","{actor} reconnected to the call"),p;const c=d[0].messageParameters.actor;p.messageParameters={actor:c};const b=c.id==="guest/cli"&&c.type==="guest";let E=0,B=!1,_=0;if(u==="user_added"&&(d.forEach(P=>{i(P)?B=!0:(p.messageParameters[`user${_}`]=P.messageParameters.user,_++),E++}),e(p)?E===2?p.message=t("spreed","You added {user0} and {user1}"):p.message=n("spreed","You added {user0}, {user1} and %n more participant","You added {user0}, {user1} and %n more participants",E-2):B?E===2?p.message=b?t("spreed","An administrator added you and {user0}"):t("spreed","{actor} added you and {user0}"):p.message=b?n("spreed","An administrator added you, {user0} and %n more participant","An administrator added you, {user0} and %n more participants",E-2):n("spreed","{actor} added you, {user0} and %n more participant","{actor} added you, {user0} and %n more participants",E-2):E===2?p.message=b?t("spreed","An administrator added {user0} and {user1}"):t("spreed","{actor} added {user0} and {user1}"):p.message=b?n("spreed","An administrator added {user0}, {user1} and %n more participant","An administrator added {user0}, {user1} and %n more participants",E-2):n("spreed","{actor} added {user0}, {user1} and %n more participant","{actor} added {user0}, {user1} and %n more participants",E-2)),u==="call_joined"||u==="call_left"){const P=[];if(d.forEach(N=>{const Ot=`${N.messageParameters.actor.id}_${N.messageParameters.actor.type}`;P.includes(Ot)||(s(N)?B=!0:(p.messageParameters[`user${_}`]=N.messageParameters.actor,_++),P.push(Ot),E++)}),E===1)return p.message=d[0].message,p;u==="call_joined"?B?E===2?p.message=t("spreed","You and {user0} joined the call"):p.message=n("spreed","You, {user0} and %n more participant joined the call","You, {user0} and %n more participants joined the call",E-2):E===2?p.message=t("spreed","{user0} and {user1} joined the call"):p.message=n("spreed","{user0}, {user1} and %n more participant joined the call","{user0}, {user1} and %n more participants joined the call",E-2):u==="call_left"&&(B?E===2?p.message=t("spreed","You and {user0} left the call"):p.message=n("spreed","You, {user0} and %n more participant left the call","You, {user0} and %n more participants left the call",E-2):E===2?p.message=t("spreed","{user0} and {user1} left the call"):p.message=n("spreed","{user0}, {user1} and %n more participant left the call","{user0}, {user1} and %n more participants left the call",E-2))}return u==="moderator_promoted"&&(d.forEach(P=>{i(P)?B=!0:(p.messageParameters[`user${_}`]=P.messageParameters.user,_++),E++}),e(p)?E===2?p.message=t("spreed","You promoted {user0} and {user1} to moderators"):p.message=n("spreed","You promoted {user0}, {user1} and %n more participant to moderators","You promoted {user0}, {user1} and %n more participants to moderators",E-2):B?E===2?p.message=b?t("spreed","An administrator promoted you and {user0} to moderators"):t("spreed","{actor} promoted you and {user0} to moderators"):p.message=b?n("spreed","An administrator promoted you, {user0} and %n more participant to moderators","An administrator promoted you, {user0} and %n more participants to moderators",E-2):n("spreed","{actor} promoted you, {user0} and %n more participant to moderators","{actor} promoted you, {user0} and %n more participants to moderators",E-2):E===2?p.message=b?t("spreed","An administrator promoted {user0} and {user1} to moderators"):t("spreed","{actor} promoted {user0} and {user1} to moderators"):p.message=b?n("spreed","An administrator promoted {user0}, {user1} and %n more participant to moderators","An administrator promoted {user0}, {user1} and %n more participants to moderators",E-2):n("spreed","{actor} promoted {user0}, {user1} and %n more participant to moderators","{actor} promoted {user0}, {user1} and %n more participants to moderators",E-2)),u==="moderator_demoted"&&(d.forEach(P=>{i(P)?B=!0:(p.messageParameters[`user${_}`]=P.messageParameters.user,_++),E++}),e(p)?E===2?p.message=t("spreed","You demoted {user0} and {user1} from moderators"):p.message=n("spreed","You demoted {user0}, {user1} and %n more participant from moderators","You demoted {user0}, {user1} and %n more participants from moderators",E-2):B?E===2?p.message=b?t("spreed","An administrator demoted you and {user0} from moderators"):t("spreed","{actor} demoted you and {user0} from moderators"):p.message=b?n("spreed","An administrator demoted you, {user0} and %n more participant from moderators","An administrator demoted you, {user0} and %n more participants from moderators",E-2):n("spreed","{actor} demoted you, {user0} and %n more participant from moderators","{actor} demoted you, {user0} and %n more participants from moderators",E-2):E===2?p.message=b?t("spreed","An administrator demoted {user0} and {user1} from moderators"):t("spreed","{actor} demoted {user0} and {user1} from moderators"):p.message=b?n("spreed","An administrator demoted {user0}, {user1} and %n more participant from moderators","An administrator demoted {user0}, {user1} and %n more participants from moderators",E-2):n("spreed","{actor} demoted {user0}, {user1} and %n more participant from moderators","{actor} demoted {user0}, {user1} and %n more participants from moderators",E-2)),p}return{createCombinedSystemMessage:r}}const or={name:"MessagesSystemGroup",components:{Message:Ft},inheritAttrs:!1,props:{token:{type:String,required:!0},messages:{type:Array,required:!0},previousMessageId:{type:[String,Number],default:0},nextMessageId:{type:[String,Number],default:0}},expose:["highlightMessage"],setup(){const{createCombinedSystemMessage:a}=ir();return{createCombinedSystemMessage:a}},data(){return{groupIsCollapsed:{},messagesGroupedBySystemMessage:[]}},computed:{lastReadMessageId(){return this.$store.getters.conversation(this.token)?.lastReadMessage}},watch:{messages:{deep:!0,immediate:!0,handler(a){this.messagesGroupedBySystemMessage=this.groupMessages(a)}}},methods:{messagesShouldBeGrouped(a,e){return e?a.systemMessage==="user_added"&&a.systemMessage===e.systemMessage&&a.actorId===e.actorId&&a.actorType===e.actorType?"user_added":a.systemMessage==="call_joined"&&e.systemMessage==="call_left"&&a.timestamp-e.timestamp<60*1e3&&a.actorId===e.actorId&&a.actorType===e.actorType?"call_reconnected":a.systemMessage==="call_joined"&&a.systemMessage===e.systemMessage?"call_joined":a.systemMessage==="call_left"&&a.systemMessage===e.systemMessage?"call_left":(a.systemMessage==="moderator_promoted"||a.systemMessage==="guest_moderator_promoted")&&(e.systemMessage==="moderator_promoted"||e.systemMessage==="guest_moderator_promoted")?"moderator_promoted":(a.systemMessage==="moderator_demoted"||a.systemMessage==="guest_moderator_demoted")&&(e.systemMessage==="moderator_demoted"||e.systemMessage==="guest_moderator_demoted")?"moderator_demoted":"":""},groupMessages(a){const e=[];let s=null,i=!1;for(const r of a){const l=r.id===this.lastReadMessageId,d=this.messagesShouldBeGrouped(r,s);!d||i?(e.push({id:r.id,messages:[r],type:"",collapsed:this.groupIsCollapsed[r.id]??!l}),i=!1):(d==="call_reconnected"&&(e.push({id:r.id,messages:[e.at(-1).messages.pop()],type:"",collapsed:this.groupIsCollapsed[r.id]??!l}),i=!0),e.at(-1).messages.push(r),e.at(-1).type=d,l&&(e.at(-1).collapsed=!1)),s=r}return e.forEach(r=>{this.groupIsCollapsed[r.id]===void 0&&(this.groupIsCollapsed[r.id]=r.collapsed)}),e},toggleCollapsed(a){this.$set(a,"collapsed",!a.collapsed),this.groupIsCollapsed[a.id]=!this.groupIsCollapsed[a.id]},getNextMessageId(a){return this.messages[this.messages.findIndex(s=>s.id===a.id)+1]?.id||this.nextMessageId},getPrevMessageId(a){return this.messages[this.messages.findIndex(s=>s.id===a.id)-1]?.id||this.previousMessageId},highlightMessage(a){for(const e of this.$refs.message)if(e.id===a){e.highlightMessage();break}}}};var Se=o(32317),re={};re.styleTagTransform=L(),re.setAttributes=w(),re.insert=T().bind(null,"head"),re.domAPI=k(),re.insertStyleElement=S();var jd=x()(Se.Z,re);const $d=Se.Z&&Se.Z.locals?Se.Z.locals:void 0;var rr=(0,f.Z)(or,er,tr,!1,null,"ce3d7186",null);const lr=rr.exports;var dr=function(){var e=this,s=e._self._c;return s("ul",{class:"placeholder-list placeholder-list--"+e.type,style:{"--colorPlaceholderLight":e.colorPlaceholderLight,"--colorPlaceholderDark":e.colorPlaceholderDark}},e._l(e.placeholderData,function(i,r){return s("li",{key:r,staticClass:"placeholder-item"},[e._m(0,!0),e._v(" "),s("div",{staticClass:"placeholder-item__content",style:{"--last-line-width":i.width}},e._l(i.amount,function(l){return s("div",{key:l,staticClass:"placeholder-item__content-line"})}),0),e._v(" "),e.type==="messages"?s("div",{staticClass:"placeholder-item__info"}):e._e()])}),0)},ur=[function(){var a=this,e=a._self._c;return e("div",{staticClass:"placeholder-item__avatar"},[e("div",{staticClass:"placeholder-item__avatar-circle"})])}];const Et=window.getComputedStyle(document.body),cr=Et.getPropertyValue("--color-placeholder-dark"),pr=Et.getPropertyValue("--color-placeholder-light"),_r={name:"LoadingPlaceholder",props:{type:{type:String,required:!0,validator(a){return["conversations","messages","participants"].includes(a)}},count:{type:Number,default:5}},setup(){return{colorPlaceholderDark:cr,colorPlaceholderLight:pr}},computed:{placeholderData(){const a=[];for(let e=0;e<this.count;e++)a.push({amount:this.type==="messages"?4:this.type==="conversations"?2:1,width:this.type==="participants"?"60%":Math.floor(Math.random()*40)+30+"%"});return a}}};var Le=o(81174),le={};le.styleTagTransform=L(),le.setAttributes=w(),le.insert=T().bind(null,"head"),le.domAPI=k(),le.insertStyleElement=S();var Zd=x()(Le.Z,le);const Vd=Le.Z&&Le.Z.locals?Le.Z.locals:void 0;var Ar=(0,f.Z)(_r,dr,ur,!1,null,"7fd79106",null);const mr=Ar.exports;var Mt=o(51481);const gr={name:"MessagesList",components:{LoadingPlaceholder:mr,Message:rs,NcEmptyContent:st.Z},mixins:[Mt.Z],provide(){return{scrollerBoundingClientRect:(0,ss.computed)(()=>this.$refs.scroller.getBoundingClientRect()),getMessagesListScroller:()=>this.$refs.scroller}},props:{token:{type:String,required:!0},isChatScrolledToBottom:{type:Boolean,default:!0},isVisible:{type:Boolean,default:!0}},emits:["update:is-chat-scrolled-to-bottom"],setup(){return{isInCall:(0,Xe.E)()}},data(){return{messagesGroupedByAuthor:[],viewId:null,displayMessagesLoader:!1,previousScrollTopValue:null,pollingErrorTimeout:1,loadingOldMessages:!1,isInitialisingMessages:!1,isFocusingMessage:!1,loadChatInLegacyMode:(0,V.getCapabilities)()?.spreed?.config?.chat?.legacy||!1,destroying:!1,expirationInterval:null}},computed:{isWindowVisible(){return this.$store.getters.windowIsVisible()&&this.isVisible},visualLastReadMessageId(){return this.$store.getters.getVisualLastReadMessageId(this.token)},messagesList(){return this.$store.getters.messagesList(this.token)},showLoadingAnimation(){return!this.$store.getters.isMessageListPopulated(this.token)&&!this.messagesGroupedByAuthor.length},showEmptyContent(){return!this.messagesGroupedByAuthor.length},isSticky(){return this.isChatScrolledToBottom&&!this.isInitialisingMessages},hasMoreMessagesToLoad(){return this.$store.getters.hasMoreMessagesToLoad(this.token)},isParticipant(){return this.conversation?!!this.$store.getters.findParticipant(this.token,this.$store.getters.getParticipantIdentifier()):!1},conversation(){return this.$store.getters.conversation(this.token)},chatIdentifier(){return this.token+":"+this.isParticipant+":"+this.isInLobby+":"+this.viewId}},watch:{isWindowVisible(a){a&&this.onWindowFocus()},chatIdentifier:{immediate:!0,handler(a,e){e&&this.$store.dispatch("cancelLookForNewMessages",{requestId:e}),this.$emit("update:is-chat-scrolled-to-bottom",!0),this.handleStartGettingMessagesPreconditions(),this.removeExpiredMessagesFromStore()}},token(a,e){this.$store.dispatch("easeMessageList",{token:e})},messagesList:{immediate:!0,handler(a){const e=this.prepareMessagesGroups(a);this.messagesGroupedByAuthor=this.softUpdateMessagesGroups(this.messagesGroupedByAuthor,e)}}},mounted(){this.viewId=ts()("messagesList"),this.scrollToBottom(),$.N.$on("scroll-chat-to-bottom",this.handleScrollChatToBottomEvent),$.N.$on("smooth-scroll-chat-to-bottom",this.smoothScrollToBottom),$.N.$on("scroll-chat-to-bottom-if-sticky",this.scrollToBottomIfSticky),$.N.$on("focus-message",this.focusMessage),$.N.$on("route-change",this.onRouteChange),(0,G.Ld)("networkOffline",this.handleNetworkOffline),(0,G.Ld)("networkOnline",this.handleNetworkOnline),window.addEventListener("focus",this.onWindowFocus),this.expirationInterval=window.setInterval(()=>{this.removeExpiredMessagesFromStore()},3e4)},beforeDestroy(){window.removeEventListener("focus",this.onWindowFocus),$.N.$off("scroll-chat-to-bottom",this.handleScrollChatToBottomEvent),$.N.$off("smooth-scroll-chat-to-bottom",this.smoothScrollToBottom),$.N.$on("scroll-chat-to-bottom-if-sticky",this.scrollToBottomIfSticky),$.N.$off("focus-message",this.focusMessage),$.N.$off("route-change",this.onRouteChange),this.$store.dispatch("cancelLookForNewMessages",{requestId:this.chatIdentifier}),this.destroying=!0,(0,G.r1)("networkOffline",this.handleNetworkOffline),(0,G.r1)("networkOnline",this.handleNetworkOnline),this.expirationInterval&&(clearInterval(this.expirationInterval),this.expirationInterval=null)},methods:{prepareMessagesGroups(a){const e=[];let s=null;for(const i of a)this.messagesShouldBeGrouped(i,s)?e.at(-1).messages.push(i):(e.at(-1)&&(e.at(-1).nextMessageId=i.id),e.push({id:i.id,messages:[i],dateSeparator:this.generateDateSeparator(i,s),previousMessageId:e.at(-1)?.messages.at(-1).id??0,nextMessageId:0,isSystemMessagesGroup:i.systemMessage.length!==0})),s=i;return e},softUpdateMessagesGroups(a,e){const s=new Map(a.map(i=>[i.id,i]));return e.map(i=>s.has(i.id)&&this.areGroupsIdentical(i,s.get(i.id))?s.get(i.id):i).sort((i,r)=>i.id-r.id)},areGroupsIdentical(a,e){return a.messages.length!==e.messages.length||a.dateSeparator!==e.dateSeparator||a.previousMessageId!==e.previousMessageId||a.nextMessageId!==e.nextMessageId?!1:a.messages.every((s,i)=>e.messages[i].id===s.id)},removeExpiredMessagesFromStore(){this.$store.dispatch("removeExpiredMessages",{token:this.token})},messagesShouldBeGrouped(a,e){if(!e||a.actorType===D.DM.ACTOR_TYPE.BOTS&&a.actorId!==D.DM.CHANGELOG_BOT_ID)return!1;const s=a.systemMessage.length!==0,i=e.systemMessage.length!==0;return s!==i||!s&&(a.actorType!==e.actorType||a.actorId!==e.actorId||a.actorType===D.DM.ACTOR_TYPE.BRIDGED&&a.actorDisplayName!==e.actorDisplayName)||this.messagesHaveDifferentDate(a,e)?!1:this.getDateOfMessage(a).diff(this.getDateOfMessage(e))<300*1e3},messagesHaveDifferentDate(a,e){return!e||this.getDateOfMessage(a).format("YYYY-MM-DD")!==this.getDateOfMessage(e).format("YYYY-MM-DD")},generateDateSeparator(a,e){if(!this.messagesHaveDifferentDate(a,e))return"";const s=this.getDateOfMessage(a),i=s.format("YYYY-DDD");let r=s.fromNow();const l=j()().format("YYYY-DDD");if(i===l)r=t("spreed","Today");else{const d=j()().subtract(1,"days").format("YYYY-DDD");i===d&&(r=t("spreed","Yesterday"))}return t("spreed","{relativeDate}, {absoluteDate}",{relativeDate:r,absoluteDate:s.format("LL")},void 0,{escape:!1})},getDateOfMessage(a){return a.id.toString().startsWith("temp-")?j()():j().unix(a.timestamp)},getMessageIdFromHash(a=void 0){return a?parseInt(a.slice(9),10):this.$route?.hash?.startsWith("#message_")?parseInt(this.$route.hash.slice(9),10):null},scrollToFocusedMessage(){const a=this.getMessageIdFromHash();let e=null;a&&(e=this.focusMessage(a,!1)),!e&&this.visualLastReadMessageId&&(e=this.focusMessage(this.visualLastReadMessageId,!1,!1)),e||this.scrollToBottom(),(this.visualLastReadMessageId===0||this.$refs.scroller&&this.$refs.scroller.scrollHeight<=this.$refs.scroller.offsetHeight)&&this.debounceUpdateReadMarkerPosition()},async handleStartGettingMessagesPreconditions(){if(this.token&&this.isParticipant&&!this.isInLobby){this.isInitialisingMessages=!0;const a=this.getMessageIdFromHash();if(this.$store.dispatch("setVisualLastReadMessageId",{token:this.token,id:this.conversation.lastReadMessage}),this.$store.getters.getFirstKnownMessageId(this.token)===null)if(this.loadChatInLegacyMode||a===null?(this.$store.dispatch("setFirstKnownMessageId",{token:this.token,id:this.conversation.lastReadMessage}),this.$store.dispatch("setLastKnownMessageId",{token:this.token,id:this.conversation.lastReadMessage})):(this.$store.dispatch("setFirstKnownMessageId",{token:this.token,id:a}),this.$store.dispatch("setLastKnownMessageId",{token:this.token,id:a})),this.loadChatInLegacyMode)await this.getOldMessages(!0);else{const s=this.$store.getters.getFirstKnownMessageId(this.token);if(await this.getMessageContext(s),!this.focusMessage(s,!1,a!==null)){const r=this.$store.getters.getFirstDisplayableMessageIdBeforeReadMarker(this.token,s);this.$store.dispatch("setVisualLastReadMessageId",{token:this.token,id:r}),this.focusMessage(r,!1,!1)}}let e=!1;(this.loadChatInLegacyMode||a===null)&&(this.hasMoreMessagesToLoad||(e=!0,this.$nextTick(()=>{this.scrollToFocusedMessage()}))),this.isInitialisingMessages=!1,await this.lookForNewMessages(),(this.loadChatInLegacyMode||a===null)&&(e||this.scrollToFocusedMessage())}else this.$store.dispatch("cancelLookForNewMessages",{requestId:this.chatIdentifier})},async lookForNewMessages(){if(this._isBeingDestroyed||this._isDestroyed){console.debug("Prevent getting new messages on a destroyed MessagesList");return}const a=this.conversation.lastMessage&&this.conversation.lastReadMessage===this.conversation.lastMessage.id;await this.getNewMessages(a)},async getMessageContext(a){this.loadingOldMessages=!0;try{await this.$store.dispatch("getMessageContext",{token:this.token,messageId:a,minimumVisible:D.J2.MINIMUM_VISIBLE})}catch(e){H.Z.isCancel(e)&&console.debug("The request has been canceled",e)}this.loadingOldMessages=!1},async getOldMessages(a){this.loadingOldMessages=!0;try{await this.$store.dispatch("fetchMessages",{token:this.token,lastKnownMessageId:this.$store.getters.getFirstKnownMessageId(this.token),includeLastKnown:a,minimumVisible:D.J2.MINIMUM_VISIBLE})}catch(e){H.Z.isCancel(e)&&console.debug("The request has been canceled",e)}this.loadingOldMessages=!1},async getNewMessages(a=!0){if(!this.destroying){try{this.pollingErrorTimeout=1,await this.$store.dispatch("lookForNewMessages",{token:this.token,lastKnownMessageId:this.$store.getters.getLastKnownMessageId(this.token),requestId:this.chatIdentifier}),a&&this.isSticky&&this.smoothScrollToBottom()}catch(e){if(H.Z.isCancel(e)){console.debug("The request has been canceled",e);return}if(e?.response?.status===304){this.pollingErrorTimeout=1,setTimeout(()=>{this.getNewMessages()},500);return}this.pollingErrorTimeout<30&&(this.pollingErrorTimeout+=5),console.debug("Error happened while getting chat messages. Trying again in ",this.pollingErrorTimeout,e),setTimeout(()=>{this.getNewMessages()},this.pollingErrorTimeout*1e3);return}setTimeout(()=>{this.getNewMessages()},500)}},debounceHandleScroll:tt()(function(){this.handleScroll()},50),async handleScroll(){if(!this.$refs.scroller)return;if(!this.$store.getters.getFirstKnownMessageId(this.token)){console.debug("Ignoring handleScroll as the messages history is empty");return}if(!this.loadChatInLegacyMode){if(this.isInitialisingMessages){console.debug("Ignore handleScroll as we are initialising the message history");return}if(this.isFocusingMessage){console.debug("Ignore handleScroll as we are programmatically scrolling to focus a message");return}}const{scrollHeight:a,scrollTop:e,clientHeight:s}=this.$refs.scroller,i=a-e,r=10;if(i<s+r&&i>s-r&&!this.hasMoreMessagesToLoad){this.setChatScrolledToBottom(!0),this.displayMessagesLoader=!1,this.previousScrollTopValue=e,this.debounceUpdateReadMarkerPosition();return}if(this.setChatScrolledToBottom(!1),a>s&&e<800&&e<this.previousScrollTopValue){if(this.loadingOldMessages)return;this.displayMessagesLoader=!0,await this.getOldMessages(!1),this.displayMessagesLoader=!1,this.$refs.scroller.scrollHeight!==a&&this.$refs.scroller.scrollTo({top:e+(this.$refs.scroller.scrollHeight-a)})}this.previousScrollTopValue=this.$refs.scroller.scrollTop,this.debounceUpdateReadMarkerPosition()},findFirstVisibleMessage(a){if(!this.$refs.scroller)return;let e=a;if(!e){const r=this.$store.getters.getFirstDisplayableMessageIdAfterReadMarker(this.token,this.conversation.lastReadMessage);e=document.getElementById("message_"+r)}let s=e;const{scrollTop:i}=this.$refs.scroller;for(;e;){if(e.offsetTop-i>=0)return s;s=e,e=document.getElementById("message_"+e.getAttribute("data-next-message-id"))}return s},refreshReadMarkerPosition(){this.conversation&&(console.debug("setVisualLastReadMessageId token="+this.token+" id="+this.conversation.lastReadMessage),this.$store.dispatch("setVisualLastReadMessageId",{token:this.token,id:this.conversation.lastReadMessage}))},debounceUpdateReadMarkerPosition:tt()(function(){this.updateReadMarkerPosition()},1e3),getVisualLastReadMessageElement(){let a=document.getElementById("message_"+this.visualLastReadMessageId);return a&&(a=a.closest(".message")),a},updateReadMarkerPosition(){if(!this.conversation)return;if(this.conversation.lastReadMessage===0){console.debug("clearLastReadMessage because lastReadMessage was 0 token="+this.token),this.$store.dispatch("clearLastReadMessage",{token:this.token,updateVisually:!0});return}if(this.conversation.lastReadMessage===this.conversation.lastMessage?.id)return;const a=this.getVisualLastReadMessageElement();if(a&&a.getAttribute("data-seen")!=="true")return;if(this.isSticky&&!this.hasMoreMessagesToLoad){console.debug("clearLastReadMessage because of isSticky token="+this.token),this.$store.dispatch("clearLastReadMessage",{token:this.token});return}if(a&&this.$refs.scroller&&a.offsetTop-this.$refs.scroller.scrollTop>0)return;const e=this.findFirstVisibleMessage(a);if(!e){console.warn("First visible message not found: ",e);return}const s=parseInt(e.getAttribute("data-message-id"),10);s<=this.conversation.lastReadMessage||(console.debug("updateLastReadMessage token="+this.token+" messageId="+s),this.$store.dispatch("updateLastReadMessage",{token:this.token,id:s,updateVisually:!1}))},handleScrollChatToBottomEvent(a){(a&&a.force||this.isChatScrolledToBottom)&&this.scrollToBottom()},scrollToBottomIfSticky(){this.isSticky&&this.scrollToBottom()},smoothScrollToBottom(){this.$nextTick(()=>{this.$refs.scroller&&(this.isWindowVisible&&(document.hasFocus()||this.isInCall)?(this.$refs.scroller.scrollTo({top:this.$refs.scroller.scrollHeight,behavior:"smooth"}),this.setChatScrolledToBottom(!0)):(this.$refs.scroller.scrollHeight-this.$refs.scroller.scrollTop-this.$refs.scroller.offsetHeight<40?this.$refs.scroller.scrollTop+=10:this.$refs.scroller.scrollTop+=40,this.setChatScrolledToBottom(!1)))})},scrollToBottom(){this.$nextTick(()=>{this.$refs.scroller&&(this.$refs.scroller.scrollTop=this.$refs.scroller.scrollHeight,this.setChatScrolledToBottom(!0))})},focusMessage(a,e=!0,s=!0){const i=document.getElementById(`message_${a}`);return i?(console.debug("Scrolling to a focused message programmatically"),this.isFocusingMessage=!0,this.$nextTick(async()=>{if(await i.scrollIntoView({behavior:e?"smooth":"auto",block:"center",inline:"nearest"}),this.$refs.scroller&&!e&&(this.$refs.scroller.scrollTop+=this.$refs.scroller.offsetHeight/4),s){for(const r of this.$refs.messagesGroup)if(r.messages.some(l=>l.id===a)){r.highlightMessage(a);break}}this.isFocusingMessage=!1,await this.handleScroll()}),!0):(console.warn("Message to focus not found in DOM",a),!1)},getLastKnownMessageId(){let a=this.messagesList.length-1;for(;a>=0;){if(!this.messagesList[a].id.toString().startsWith("temp-"))return this.messagesList[a].id;a--}return"0"},getFirstKnownMessageId(){return this.messagesList[0].id.toString()},handleNetworkOffline(){console.debug("Canceling message request as we are offline"),this.cancelLookForNewMessages&&this.$store.dispatch("cancelLookForNewMessages",{requestId:this.chatIdentifier})},handleNetworkOnline(){console.debug("Restarting polling of new chat messages"),this.getNewMessages()},async onRouteChange({from:a,to:e}){if(a.name==="conversation"&&e.name==="conversation"&&a.token===e.token&&a.hash!==e.hash&&e.hash&&e.hash.startsWith("#message_")){const s=this.getMessageIdFromHash(e.hash);this.messagesList.find(i=>i.id===s)?window.setTimeout(()=>{this.focusMessage(s,!0)},2):(this.$store.dispatch("setFirstKnownMessageId",{token:this.token,id:s}),this.$store.dispatch("setLastKnownMessageId",{token:this.token,id:s}),await this.getMessageContext(s),this.focusMessage(s,!0))}},setChatScrolledToBottom(a){this.$emit("update:is-chat-scrolled-to-bottom",a),a&&this.debounceUpdateReadMarkerPosition()},onWindowFocus(){this.refreshReadMarkerPosition()},messagesGroupComponent(a){return a.isSystemMessagesGroup?lr:qo}}};var Oe=o(85570),de={};de.styleTagTransform=L(),de.setAttributes=w(),de.insert=T().bind(null,"head"),de.domAPI=k(),de.insertStyleElement=S();var zd=x()(Oe.Z,de);const Wd=Oe.Z&&Oe.Z.locals?Oe.Z.locals:void 0;var hr=o(75415),Bt=o.n(hr),xt=(0,f.Z)(gr,Jt,Qt,!1,null,"08fab243",null);typeof Bt()=="function"&&Bt()(xt);const Cr=xt.exports;var kt=o(17834),fr=function(){var e=this,s=e._self._c;return e.showModal?s("NcModal",{ref:"modal",staticClass:"upload-editor",attrs:{size:e.isVoiceMessage?"small":"normal",container:e.container},on:{close:e.handleDismiss}},[s("div",{staticClass:"upload-editor",on:{dragover:function(i){return i.preventDefault(),e.handleDragOver.apply(null,arguments)},dragleave:function(i){return i.preventDefault(),e.handleDragLeave.apply(null,arguments)},drop:function(i){return i.preventDefault(),e.handleDropFiles.apply(null,arguments)}}},[e.isVoiceMessage?[s("AudioPlayer",{attrs:{name:e.voiceMessageName,"local-url":e.voiceMessageLocalURL}})]:[s("input",{ref:"fileUploadInput",staticClass:"hidden-visually",attrs:{id:"file-upload",multiple:"",type:"file"},on:{change:e.handleFileInput}}),e._v(" "),s("TransitionWrapper",{staticClass:"upload-editor__previews",class:{"dragging-over":e.isDraggingOver},attrs:{name:"fade",tag:"div",group:""}},[e._l(e.files,function(i){return[s("FilePreview",e._b({key:i[1].temporaryMessage.id,attrs:{token:e.token,"is-upload-editor":!0},on:{"remove-file":e.handleRemoveFileFromSelection}},"FilePreview",i[1].temporaryMessage.messageParameters.file,!1))]}),e._v(" "),s("div",{key:"addMore",staticClass:"add-more"},[s("NcButton",{staticClass:"add-more__button",attrs:{"aria-label":e.addMoreAriaLabel,type:"primary"},on:{click:e.clickImportInput},scopedSlots:e._u([{key:"icon",fn:function(){return[s("Plus",{attrs:{size:48}})]},proxy:!0}],null,!1,1550548444)})],1)],2)],e._v(" "),e.supportMediaCaption?e.modalContainerId?s("NewMessage",{key:e.modalContainerId,ref:"newMessage",attrs:{role:"region",upload:"",token:e.token,container:e.modalContainerId,"aria-label":e.t("spreed","Post message")},on:{upload:e.handleUpload,sent:e.handleDismiss,failure:e.handleDismiss}}):e._e():s("div",{staticClass:"upload-editor__actions"},[s("NcButton",{attrs:{type:"tertiary"},on:{click:e.handleDismiss}},[e._v(`
				`+e._s(e.t("spreed","Dismiss"))+`
			`)]),e._v(" "),s("NcButton",{attrs:{type:"primary"},on:{click:function(i){return e.handleUpload({caption:null,options:null})}}},[e._v(`
				`+e._s(e.t("spreed","Send"))+`
			`)])],1)],2)]):e._e()},vr=[],Dr=o(28830),Tt=o(33046);const yr=(0,V.getCapabilities)()?.spreed?.features?.includes("media-caption"),br={name:"NewMessageUploadEditor",components:{NcModal:W.Z,FilePreview:_t.Z,Plus:dt.Z,AudioPlayer:Dr.Z,NcButton:Z.Z,NewMessage:kt.Z,TransitionWrapper:Tt.Z},setup(){return{supportMediaCaption:yr}},data(){return{modalContainerId:null,isDraggingOver:!1}},computed:{token(){return this.$store.getters.getToken()},currentUploadId(){return this.$store.getters.currentUploadId},files(){return this.$store.getters.getInitialisedUploads(this.currentUploadId)},showModal(){return!!this.currentUploadId},container(){return this.$store.getters.getMainContainerSelector()},addMoreAriaLabel(){return t("spreed","Add more files")},firstFile(){return this.files?.at(0)?.at(1)},isVoiceMessage(){return this.firstFile?this.firstFile.temporaryMessage.messageType==="voice-message":!1},voiceMessageName(){return this.firstFile?.file?.name?this.firstFile.file.name:""},voiceMessageLocalURL(){return this.firstFile?.file?.localURL?this.firstFile.file.localURL:""}},watch:{async showModal(a){a&&this.supportMediaCaption&&(await this.getContainerId(),this.$nextTick(()=>{this.$refs.newMessage?.focusInput()}))}},methods:{async getContainerId(){this.$nextTick(()=>{this.modalContainerId=`#modal-description-${this.$refs.modal.randId}`})},handleDismiss(){this.$store.dispatch("discardUpload",this.currentUploadId)},handleUpload({caption:a,options:e}){this.$store.dispatch("uploadFiles",{uploadId:this.currentUploadId,caption:a,options:e})},clickImportInput(){this.$refs.fileUploadInput.click()},async handleFileInput(a){const e=Object.values(a.target.files);await this.$store.dispatch("initialiseUpload",{files:e,token:this.token,uploadId:this.currentUploadId}),this.$refs.fileUploadInput.value=null},handleRemoveFileFromSelection(a){this.$store.dispatch("removeFileFromSelection",a)},handleDragOver(a){a.dataTransfer.types.includes("Files")&&(this.isDraggingOver=!0)},handleDragLeave(a){a.currentTarget.contains(a.relatedTarget)||(this.isDraggingOver=!1)},handleDropFiles(a){if(!this.isDraggingOver)return;this.isDraggingOver=!1;const e=Object.values(a.dataTransfer.files);this.$store.dispatch("initialiseUpload",{files:e,token:this.token,uploadId:this.currentUploadId})}}};var Ie=o(26447),ue={};ue.styleTagTransform=L(),ue.setAttributes=w(),ue.insert=T().bind(null,"head"),ue.domAPI=k(),ue.insertStyleElement=S();var Hd=x()(Ie.Z,ue);const Kd=Ie.Z&&Ie.Z.locals?Ie.Z.locals:void 0;var Fr=(0,f.Z)(br,fr,vr,!1,null,"11996d14",null);const Er=Fr.exports,Mr={name:"ChatView",components:{NcButton:Z.Z,ChevronDoubleDown:It,MessagesList:Cr,NewMessage:kt.Z,NewMessageUploadEditor:Er,TransitionWrapper:Tt.Z,GuestWelcomeWindow:Xt},props:{isVisible:{type:Boolean,default:!0}},data(){return{isChatScrolledToBottom:!0,isDraggingOver:!1,containerId:void 0}},computed:{isGuest(){return this.$store.getters.getActorType()==="guests"},isGuestWithoutDisplayName(){return!this.$store.getters.getDisplayName()&&this.isGuest},dropHintText(){return this.isGuest?t("spreed","You need to be logged in to upload files"):this.isReadOnly?t("spreed","This conversation is read-only"):t("spreed","Drop your files to upload")},isReadOnly(){if(this.$store.getters.conversation(this.token))return this.$store.getters.conversation(this.token).readOnly===D.Sl.STATE.READ_ONLY},token(){return this.$store.getters.getToken()},container(){return this.$store.getters.getMainContainerSelector()}},watch:{container(a){this.containerId=a}},mounted(){this.containerId=this.container},methods:{handleDragOver(a){a.dataTransfer.types.includes("Files")&&(this.isDraggingOver=!0)},handleDragLeave(a){a.currentTarget.contains(a.relatedTarget)||(this.isDraggingOver=!1)},handleDropFiles(a){if(!this.isDraggingOver||(this.isDraggingOver=!1,this.isGuest||this.isReadOnly))return;const e=Object.values(a.dataTransfer.files),s=new Date().getTime();this.$store.dispatch("initialiseUpload",{files:e,token:this.token,uploadId:s})},smoothScrollToBottom(){$.N.$emit("smooth-scroll-chat-to-bottom")}}};var Re=o(96999),ce={};ce.styleTagTransform=L(),ce.setAttributes=w(),ce.insert=T().bind(null,"head"),ce.domAPI=k(),ce.insertStyleElement=S();var Jd=x()(Re.Z,ce);const Qd=Re.Z&&Re.Z.locals?Re.Z.locals:void 0;var Br=(0,f.Z)(Mr,g,v,!1,null,"65d6d494",null);const xr=Br.exports;var kr=function(){var e=this,s=e._self._c;return e.modal?s("NcModal",{staticClass:"talk-modal",attrs:{container:e.container},on:{close:e.closeModal}},[s("div",{staticClass:"media-settings"},[s("h2",{staticClass:"media-settings__title"},[e._v(`
			`+e._s(e.t("spreed","Media settings"))+`
		`)]),e._v(" "),s("div",{staticClass:"media-settings__preview"},[s("video",{directives:[{name:"show",rawName:"v-show",value:e.showVideo,expression:"showVideo"}],ref:"video",staticClass:"preview__video",attrs:{"disable-picture-in-picture":"true",tabindex:"-1"}}),e._v(" "),s("div",{directives:[{name:"show",rawName:"v-show",value:!e.showVideo,expression:"!showVideo"}],staticClass:"preview__novideo"},[s("VideoBackground",{attrs:{"display-name":e.displayName,user:e.userId}}),e._v(" "),s("AvatarWrapper",{attrs:{id:e.userId,name:e.displayName,source:e.actorType,size:e.AVATAR.SIZE.EXTRA_LARGE,"disable-menu":"","disable-tooltip":""}})],1)]),e._v(" "),s("div",{staticClass:"media-settings__toggles-wrapper"},[s("div",{staticClass:"media-settings__toggles"},[s("NcButton",{directives:[{name:"tooltip",rawName:"v-tooltip",value:e.audioButtonTooltip,expression:"audioButtonTooltip"}],attrs:{type:"tertiary","aria-label":e.audioButtonTooltip,disabled:!e.audioPreviewAvailable},on:{click:e.toggleAudio},scopedSlots:e._u([{key:"icon",fn:function(){return[s("VolumeIndicator",{attrs:{"audio-preview-available":e.audioPreviewAvailable,"audio-enabled":e.audioOn,"current-volume":e.currentVolume,"volume-threshold":e.volumeThreshold,"overlay-muted-color":"#888888"}})]},proxy:!0}],null,!1,1862444422)}),e._v(" "),s("NcButton",{directives:[{name:"tooltip",rawName:"v-tooltip",value:e.videoButtonTooltip,expression:"videoButtonTooltip"}],attrs:{type:"tertiary","aria-label":e.videoButtonTooltip,disabled:!e.videoPreviewAvailable},on:{click:e.toggleVideo},scopedSlots:e._u([{key:"icon",fn:function(){return[e.videoOn?s("VideoIcon",{attrs:{size:20}}):s("VideoOff",{attrs:{size:20}})]},proxy:!0}],null,!1,2111044622)})],1)]),e._v(" "),s("div",{staticClass:"media-settings__call-preferences"},[s("NcButton",{attrs:{type:e.showDeviceSelection?"secondary":"tertiary"},on:{click:function(i){return e.toggleTab("devices")}},scopedSlots:e._u([{key:"icon",fn:function(){return[s("Cog",{attrs:{size:20}})]},proxy:!0}],null,!1,3604109635)},[e._v(`
				`+e._s(e.t("spreed","Devices"))+`
			`)]),e._v(" "),e.isVirtualBackgroundAvailable?s("NcButton",{attrs:{type:e.showBackgroundEditor?"secondary":"tertiary"},on:{click:function(i){return e.toggleTab("backgrounds")}},scopedSlots:e._u([{key:"icon",fn:function(){return[s("Creation",{attrs:{size:20}})]},proxy:!0}],null,!1,676199201)},[e._v(`
				`+e._s(e.t("spreed","Backgrounds"))+`
			`)]):e._e()],1),e._v(" "),e.showDeviceSelection?s("div",{staticClass:"media-settings__device-selection"},[s("MediaDevicesSelector",{attrs:{kind:"audioinput",devices:e.devices,"device-id":e.audioInputId},on:{"update:deviceId":function(i){e.audioInputId=i}}}),e._v(" "),s("MediaDevicesSelector",{attrs:{kind:"videoinput",devices:e.devices,"device-id":e.videoInputId},on:{"update:deviceId":function(i){e.videoInputId=i}}})],1):e._e(),e._v(" "),e.showBackgroundEditor?s("VideoBackgroundEditor",{attrs:{token:e.token},on:{"update-background":e.handleUpdateVirtualBackground}}):e._e(),e._v(" "),e.isPublicShareAuthSidebar?e._e():s("NcCheckboxRadioSwitch",{staticClass:"checkbox",attrs:{checked:e.showMediaSettings||e.showRecordingWarning,disabled:e.showRecordingWarning},on:{"update:checked":e.setShowMediaSettings}},[e._v(`
			`+e._s(e.t("spreed","Always show preview for this conversation"))+`
		`)]),e._v(" "),!e.hasCall&&e.canModerateRecording?s("NcCheckboxRadioSwitch",{staticClass:"checkbox",attrs:{checked:e.isRecordingFromStart},on:{"update:checked":function(i){e.isRecordingFromStart=i}}},[e._v(`
			`+e._s(e.t("spreed","Start recording immediately with the call"))+`
		`)]):e._e(),e._v(" "),e.showRecordingWarning?s("NcNoteCard",{attrs:{type:"warning"}},[e.isCurrentlyRecording?s("p",[s("strong",[e._v(e._s(e.t("spreed","The call is being recorded.")))])]):s("p",[s("strong",[e._v(e._s(e.t("spreed","The call might be recorded.")))])]),e._v(" "),e.isRecordingConsentRequired?[s("p",[e._v(`
					`+e._s(e.t("spreed","The recording might include your voice, video from camera, and screen share. Your consent is required before joining the call."))+`
				`)]),e._v(" "),s("NcCheckboxRadioSwitch",{staticClass:"checkbox--warning",attrs:{checked:e.recordingConsentGiven},on:{"update:checked":e.setRecordingConsentGiven}},[e._v(`
					`+e._s(e.t("spreed","Give consent to the recording of this call"))+`
				`)])]:e._e()],2):e._e(),e._v(" "),s("div",{staticClass:"media-settings__call-buttons"},[e.showSilentCallOption?s("NcActions",{attrs:{container:e.container,"force-menu":!0}},[e.silentCall?[s("NcActionButton",{attrs:{"close-after-click":!0,icon:"icon-upload",name:e.t("spreed","Normal call")},on:{click:function(i){e.silentCall=!1}},scopedSlots:e._u([{key:"icon",fn:function(){return[s("Bell",{attrs:{size:16}})]},proxy:!0}],null,!1,3167554474)},[e._v(`
						`+e._s(e.t("spreed","The conversation participants will be notified about this call"))+`
						`)])]:[s("NcActionButton",{attrs:{"close-after-click":!0,icon:"icon-upload",name:e.t("spreed","Call without notification")},on:{click:function(i){e.silentCall=!0}},scopedSlots:e._u([{key:"icon",fn:function(){return[s("BellOff",{attrs:{size:16}})]},proxy:!0}],null,!1,1302578213)},[e._v(`
						`+e._s(e.t("spreed","The conversation participants will not be notified about this call"))+`
						`)])]],2):e._e(),e._v(" "),e.isInCall?e.showUpdateChangesButton?s("NcButton",{on:{click:e.closeModalAndApplySettings}},[e._v(`
				`+e._s(e.t("spreed","Apply settings"))+`
			`)]):e._e():s("CallButton",{staticClass:"call-button",attrs:{"is-media-settings":"","is-recording-from-start":e.isRecordingFromStart,disabled:e.isRecordingConsentRequired&&!e.recordingConsentGiven,"recording-consent-given":e.recordingConsentGiven,"silent-call":e.silentCall}})],1)],1)]):e._e()},Tr=[],wr=function(){var e=this,s=e._self._c;return s("span",e._b({staticClass:"material-design-icon bell-icon",attrs:{"aria-hidden":!e.title,"aria-label":e.title,role:"img"},on:{click:function(i){return e.$emit("click",i)}}},"span",e.$attrs,!1),[s("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[s("path",{attrs:{d:"M21,19V20H3V19L5,17V11C5,7.9 7.03,5.17 10,4.29C10,4.19 10,4.1 10,4A2,2 0 0,1 12,2A2,2 0 0,1 14,4C14,4.1 14,4.19 14,4.29C16.97,5.17 19,7.9 19,11V17L21,19M14,21A2,2 0 0,1 12,23A2,2 0 0,1 10,21"}},[e.title?s("title",[e._v(e._s(e.title))]):e._e()])])])},Sr=[];const Lr={name:"BellIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var Or=(0,f.Z)(Lr,wr,Sr,!1,null,null,null);const Ir=Or.exports;var Rr=o(84201),Pr=o(46703),Nr=function(){var e=this,s=e._self._c;return s("span",e._b({staticClass:"material-design-icon creation-icon",attrs:{"aria-hidden":!e.title,"aria-label":e.title,role:"img"},on:{click:function(i){return e.$emit("click",i)}}},"span",e.$attrs,!1),[s("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[s("path",{attrs:{d:"M19,1L17.74,3.75L15,5L17.74,6.26L19,9L20.25,6.26L23,5L20.25,3.75M9,4L6.5,9.5L1,12L6.5,14.5L9,20L11.5,14.5L17,12L11.5,9.5M19,15L17.74,17.74L15,19L17.74,20.25L19,23L20.25,20.25L23,19L20.25,17.74"}},[e.title?s("title",[e._v(e._s(e.title))]):e._e()])])])},jr=[];const $r={name:"CreationIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var Ur=(0,f.Z)($r,Nr,jr,!1,null,null,null);const Zr=Ur.exports;var wt=o(97167),Vr=o(8803),Gr=o(50323),zr=function(){var e=this,s=e._self._c;return s("div",{staticClass:"background-editor"},[s("button",{key:"clear",staticClass:"background-editor__element",class:{"background-editor__element--selected":e.selectedBackground==="none"},on:{click:function(i){return e.handleSelectBackground("none")}}},[s("Cancel",{attrs:{size:20}}),e._v(`
		`+e._s(e.t("spreed","None"))+`
	`)],1),e._v(" "),s("button",{key:"blur",staticClass:"background-editor__element",class:{"background-editor__element--selected":e.selectedBackground==="blur"},on:{click:function(i){return e.handleSelectBackground("blur")}}},[s("Blur",{attrs:{size:20}}),e._v(`
		`+e._s(e.t("spreed","Blur"))+`
	`)],1),e._v(" "),e.predefinedBackgrounds?.length?[e.canUploadBackgrounds?[s("button",{staticClass:"background-editor__element",on:{click:e.clickImportInput}},[s("Upload",{attrs:{size:20}}),e._v(`
				`+e._s(e.t("spreed","Upload"))+`
			`)],1),e._v(" "),s("button",{staticClass:"background-editor__element",class:{"background-editor__element--selected":e.isCustomBackground},on:{click:function(i){e.showFilePicker=!0}}},[s("Folder",{attrs:{size:20}}),e._v(`
				`+e._s(e.t("spreed","Files"))+`
			`)],1)]:e._e(),e._v(" "),e._l(e.predefinedBackgroundsURLs,function(i){return s("button",{key:i,staticClass:"background-editor__element",class:{"background-editor__element--selected":e.selectedBackground===i},style:{"background-image":"url("+i+")"},attrs:{"aria-label":e.ariaLabelForPredefinedBackground(i),title:e.ariaLabelForPredefinedBackground(i)},on:{click:function(r){return e.handleSelectBackground(i)}}},[e.selectedBackground===i?s("CheckBold",{attrs:{size:40,"fill-color":"#fff"}}):e._e()],1)})]:e._e(),e._v(" "),s("input",{ref:"fileUploadInput",staticClass:"hidden-visually",attrs:{id:"custom-background-file",multiple:"",type:"file",tabindex:"-1","aria-hidden":"true"},on:{change:e.handleFileInput}}),e._v(" "),e.showFilePicker?s("FilePickerVue",{attrs:{name:e.t("spreed","File to share"),path:e.relativeBackgroundsFolderPath,container:e.container,buttons:e.filePickerButtons,multiselect:!1},on:{close:function(i){e.showFilePicker=!1}}}):e._e()],2)},Wr=[],Yr=o(98362),Hr=function(){var e=this,s=e._self._c;return s("span",e._b({staticClass:"material-design-icon cancel-icon",attrs:{"aria-hidden":!e.title,"aria-label":e.title,role:"img"},on:{click:function(i){return e.$emit("click",i)}}},"span",e.$attrs,!1),[s("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[s("path",{attrs:{d:"M12 2C17.5 2 22 6.5 22 12S17.5 22 12 22 2 17.5 2 12 6.5 2 12 2M12 4C10.1 4 8.4 4.6 7.1 5.7L18.3 16.9C19.3 15.5 20 13.8 20 12C20 7.6 16.4 4 12 4M16.9 18.3L5.7 7.1C4.6 8.4 4 10.1 4 12C4 16.4 7.6 20 12 20C13.9 20 15.6 19.4 16.9 18.3Z"}},[e.title?s("title",[e._v(e._s(e.title))]):e._e()])])])},Kr=[];const Xr={name:"CancelIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var Jr=(0,f.Z)(Xr,Hr,Kr,!1,null,null,null);const Qr=Jr.exports;var qr=o(71875),el=o(86119),tl=o(4558),R=o(19914),St=o(63413),sl=o(97586);const al=(0,V.getCapabilities)()?.spreed?.config?.call?.["can-upload-background"],Je=(0,V.getCapabilities)()?.spreed?.config?.call?.["predefined-backgrounds"],nl={"1_office":t("spreed","Select virtual office background"),"2_home":t("spreed","Select virtual home background"),"3_abstract":t("spreed","Select virtual abstract background"),"4_beach":t("spreed","Select virtual beach background"),"5_park":t("spreed","Select virtual park background"),"6_theater":t("spreed","Select virtual theater background"),"7_library":t("spreed","Select virtual library background"),"8_space_station":t("spreed","Select virtual space station background")},il={name:"VideoBackgroundEditor",components:{Blur:Yr.Z,Cancel:Qr,CheckBold:Qe,FilePickerVue:tl.J,Folder:qr.default,Upload:el.Z},props:{token:{type:String,required:!0}},emits:["update-background"],setup(){return{canUploadBackgrounds:al,predefinedBackgrounds:Je}},data(){return{selectedBackground:void 0,getCapabilities:V.getCapabilities,showFilePicker:!1}},computed:{container(){return this.$store.getters.getMainContainerSelector()},isCustomBackground(){return this.selectedBackground!=="none"&&this.selectedBackground!=="blur"&&!this.predefinedBackgroundsURLs.includes(this.selectedBackground)},predefinedBackgroundsURLs(){return Je.map(a=>(0,z.imagePath)("spreed","backgrounds/"+a))},hasBackgroundsCapability(){return!!Je},relativeBackgroundsFolderPath(){return this.$store.getters.getAttachmentFolder()+"/Backgrounds"},filePickerButtons(){return[{label:t("spreed","Choose"),callback:a=>this.handleFileChoose(a),type:"primary"}]}},async mounted(){if(this.loadBackground(),this.$store.getters.getUserId()===null){console.debug("Skip Talk backgrounds folder check and setup for participants that are not logged in");return}const e="/files/"+this.$store.getters.getUserId()+this.relativeBackgroundsFolderPath;try{const s=(0,St.E)();await s.exists(e)===!1&&await s.createDirectory(e)}catch(s){console.debug(s)}},methods:{handleSelectBackground(a){this.$emit("update-background",a),this.selectedBackground=a},clickImportInput(){this.$refs.fileUploadInput.click()},async handleFileInput(a){const e=a.target.files[0];a.target.value="";const s="/files/"+this.$store.getters.getUserId(),i=this.$store.getters.getAttachmentFolder()+"/Backgrounds/"+e.name,r=(0,St.E)(),{uniquePath:l}=await(0,sl.Ng)(r,s,i);try{const d=await new Blob([e]).arrayBuffer();await r.putFileContents(s+l,d,{contentLength:e.size});const u=await(0,z.generateUrl)("/core/preview.png?file={path}&x=-1&y={height}&a=1",{path:i,height:1080});this.handleSelectBackground(u)}catch(d){console.debug(d),(0,O.x2)(t("spreed","Error while uploading the file"))}},handleFileChoose(a){const e=a[0]?.path;if(!e)return;if(!e.startsWith("/"))throw new Error(t("files","Invalid path selected"));const s=(0,z.generateUrl)("/core/preview.png?file={path}&x=-1&y={height}&a=1",{path:e,height:1080});this.handleSelectBackground(s)},loadBackground(){R.Z.getItem("virtualBackgroundEnabled_"+this.token)==="true"?R.Z.getItem("virtualBackgroundType_"+this.token)===D.m7.BACKGROUND_TYPE.BLUR?this.selectedBackground="blur":R.Z.getItem("virtualBackgroundType_"+this.token)===D.m7.BACKGROUND_TYPE.IMAGE?this.selectedBackground=R.Z.getItem("virtualBackgroundUrl_"+this.token):this.selectedBackground="none":this.selectedBackground="none"},ariaLabelForPredefinedBackground(a){const e=a.split("/").pop().split(".").shift();return nl[e]??t("spreed","Select virtual background from file {fileName}",{fileName:e})}}};var Pe=o(23773),pe={};pe.styleTagTransform=L(),pe.setAttributes=w(),pe.insert=T().bind(null,"head"),pe.domAPI=k(),pe.insertStyleElement=S();var au=x()(Pe.Z,pe);const nu=Pe.Z&&Pe.Z.locals?Pe.Z.locals:void 0;var ol=(0,f.Z)(il,zr,Wr,!1,null,"bc0ebcb0",null);const rl=ol.exports;var ll=o(18173),dl=function(){var e=this,s=e._self._c;return s("div",{staticClass:"media-devices-selector"},[s("div",{staticClass:"media-devices-selector__icon"},[e.deviceIcon==="microphone"?s("Microphone",{attrs:{title:"",size:16}}):e._e(),e._v(" "),e.deviceIcon==="camera"?s("VideoIcon",{attrs:{title:"",size:16}}):e._e()],1),e._v(" "),s("NcSelect",{attrs:{"input-id":e.deviceSelectorId,options:e.deviceOptions,label:"label","aria-label-combobox":e.t("spreed","Select a device"),clearable:!1,placeholder:e.deviceSelectorPlaceholder,disabled:!e.enabled||!e.deviceOptionsAvailable},model:{value:e.deviceSelectedOption,callback:function(i){e.deviceSelectedOption=i},expression:"deviceSelectedOption"}})],1)},ul=[],cl=o(56758);const pl={name:"MediaDevicesSelector",components:{NcSelect:ct.N,Microphone:cl.Z,VideoIcon:wt.Z},props:{kind:{validator(a){return["audioinput","videoinput"].includes(a)},required:!0},devices:{type:Array,required:!0},deviceId:{type:String,default:void 0},enabled:{type:Boolean,default:!0}},emits:["update:deviceId"],data(){return{deviceSelectedOption:null}},computed:{deviceSelectorId(){return"device-selector-"+this.kind},deviceIcon(){return this.kind==="audioinput"?"microphone":this.kind==="videoinput"?"camera":null},deviceOptionsAvailable(){return this.deviceOptions.length>1},deviceSelectorPlaceholder(){return this.kind==="audioinput"?this.audioInputSelectorPlaceholder:this.kind==="videoinput"?this.videoInputSelectorPlaceholder:null},audioInputSelectorPlaceholder(){return this.deviceOptionsAvailable?t("spreed","Select microphone"):t("spreed","No microphone available")},videoInputSelectorPlaceholder(){return this.deviceOptionsAvailable?t("spreed","Select camera"):t("spreed","No camera available")},deviceOptions(){const a=this.devices.filter(e=>e.kind===this.kind).map(e=>({id:e.deviceId,label:e.label?e.label:e.fallbackLabel}));return a.push({id:null,label:t("spreed","None")}),a},deviceSelectedOptionFromDeviceId(){return this.deviceOptions.find(a=>a.id===this.deviceId)}},watch:{deviceSelectedOptionFromDeviceId:{handler(a){this.deviceSelectedOption=a},immediate:!0},deviceSelectedOption(a,e){if(!(a&&e&&a.id===e.id)&&!(e&&e.id&&!this.deviceOptions.find(s=>s.id===e.id))&&!(typeof e?.id>"u")){if(a&&a.id===null){this.$emit("update:deviceId",null);return}this.$emit("update:deviceId",a?a.id:void 0)}}}};var Ne=o(91507),_e={};_e.styleTagTransform=L(),_e.setAttributes=w(),_e.insert=T().bind(null,"head"),_e.domAPI=k(),_e.insertStyleElement=S();var ou=x()(Ne.Z,_e);const ru=Ne.Z&&Ne.Z.locals?Ne.Z.locals:void 0;var _l=(0,f.Z)(pl,dl,ul,!1,null,"015279f2",null);const Al=_l.exports;var ml=o(52694),gl=o(58233),hl=o.n(gl),Cl=o(43e3),fl=o(64540),vl=o(12741),U=o(31341);/**
 * @copyright Copyright (c) 2021 Marco Ambrosini <marcoambrosini@icloud.com>
 *
 * @author Marco Ambrosini <marcoambrosini@icloud.com>
 *
 * @license AGPL-3.0-or-later
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 *
 */const Dl={data(){return{mediaDevicesManager:U._o,pendingGetUserMediaAudioCount:0,pendingGetUserMediaVideoCount:0,audioStream:null,audioStreamError:null,videoStream:null,videoStreamError:null,hark:null,initialized:!1,currentVolume:-100,volumeThreshold:-100,virtualBackground:null,videoTrackToStream:null}},props:{initializeOnMounted:{type:Boolean,default:!0}},methods:{initializeDevicesMixin(){this.initialized=!0,this.mediaDevicesManager.isSupported()||(this.audioStreamError={message:"MediaDevicesManager is not supported",name:"NotSupportedError"},this.videoStreamError={message:"MediaDevicesManager is not supported",name:"NotSupportedError"}),this.mediaDevicesManager.enableDeviceEvents(),this.updateAudioStream(),this.updateVideoStream()},stopDevicesMixin(){this.initialized=!1,this.stopAudioStream(),this.stopVideoStream(),this.mediaDevicesManager.disableDeviceEvents()},updateAudioStream(){if(!this.mediaDevicesManager.isSupported()||this.audioStreamInputId&&this.audioStreamInputId===this.audioInputId)return;if(this.pendingGetUserMediaAudioCount){this.pendingGetUserMediaAudioCount++;return}if(this.stopAudioStream(),this.audioStreamError=null,this.audioInputId===null||this.audioInputId===void 0)return;this.pendingGetUserMediaAudioCount=1;const a=()=>{const e=this.pendingGetUserMediaAudioCount>1;this.pendingGetUserMediaAudioCount=0,e&&this.updateAudioStream()};this.mediaDevicesManager.getUserMedia({audio:!0}).then(e=>{this.initialized?this.setAudioStream(e):e.getTracks().forEach(s=>{s.stop()}),a()}).catch(e=>{console.error("Error getting audio stream: "+e.name+": "+e.message),this.audioStreamError=e,this.setAudioStream(null),a()})},updateVideoStream(){if(!this.mediaDevicesManager.isSupported()||this.videoStreamInputId&&this.videoStreamInputId===this.videoInputId)return;if(this.pendingGetUserMediaVideoCount){this.pendingGetUserMediaVideoCount++;return}if(this.stopVideoStream(),this.videoStreamError=null,this.videoInputId===null||this.videoInputId===void 0)return;this.pendingGetUserMediaVideoCount=1;const a=()=>{const e=this.pendingGetUserMediaVideoCount>1;this.pendingGetUserMediaVideoCount=0,e&&this.updateVideoStream()};this.mediaDevicesManager.getUserMedia({video:!0}).then(e=>{this.initialized?this.setVideoStream(e):e.getTracks().forEach(s=>{s.stop()}),a()}).catch(e=>{console.error("Error getting video stream: "+e.name+": "+e.message),this.videoStreamError=e,this.setVideoStream(null),a()})},setAudioStream(a){this.audioStream=a,a&&(this.hark=hl()(this.audioStream),this.hark.on("volume_change",(e,s)=>{this.currentVolume=e,this.volumeThreshold=s}))},setVideoStream(a){if(this.videoStream=a,!this.$refs.video)return;if(!a){this.virtualBackground._setInputTrack("default",null);return}this.virtualBackground._setInputTrack("default",this.videoStream.getVideoTracks()[0]);const e={autoplay:!0,mirror:!0,muted:!0};(0,Cl.Z)(this.videoTrackToStream.getStream(),this.$refs.video,e)},stopAudioStream(){this.audioStream&&(this.audioStream.getTracks().forEach(function(a){a.stop()}),this.audioStream=null,this.hark&&(this.hark.stop(),this.hark.off("volume_change"),this.hark=null))},stopVideoStream(){this.virtualBackground._setInputTrack("default",null),this.videoStream&&(this.videoStream.getTracks().forEach(function(a){a.stop()}),this.videoStream=null,this.$refs.video&&(this.$refs.video.srcObject=null))}},mounted(){this.virtualBackground=new vl.Z,this.virtualBackground.setEnabled(!1),this.videoTrackToStream=new fl.Z,this.videoTrackToStream.addInputTrackSlot("video"),this.virtualBackground.connectTrackSink("default",this.videoTrackToStream,"video"),this.initializeOnMounted&&this.initializeDevicesMixin()},destroyed(){this.stopDevicesMixin()},watch:{audioInputId(a){this.initialized&&this.updateAudioStream()},videoInputId(a){this.initialized&&this.updateVideoStream()}},computed:{devices(){return U._o.attributes.devices},audioInputId:{get(){return U._o.attributes.audioInputId},set(a){U._o.set("audioInputId",a)}},videoInputId:{get(){return U._o.attributes.videoInputId},set(a){U._o.set("videoInputId",a)}},audioStreamInputId(){if(!this.audioStream)return null;const a=this.audioStream.getAudioTracks();return a.length<1?null:a[0].getSettings().deviceId},videoStreamInputId(){if(!this.videoStream)return null;const a=this.videoStream.getVideoTracks();return a.length<1?null:a[0].getSettings().deviceId},audioPreviewAvailable(){return!!this.audioInputId&&!!this.audioStream},audioStreamErrorMessage(){if(!this.audioStreamError)return null;if(this.audioStreamError.name==="NotSupportedError"&&!window.RTCPeerConnection)return t("spreed","Calls are not supported in your browser");const a="isSecureContext"in window&&!window.isSecureContext,e=this.audioStreamError.message&&this.audioStreamError.message.includes("Only secure origins");return this.audioStreamError.name==="NotSupportedError"&&a||this.audioStreamError.name==="NotAllowedError"&&e?t("spreed","Access to microphone is only possible with HTTPS"):this.audioStreamError.name==="NotAllowedError"?t("spreed","Access to microphone was denied"):t("spreed","Error while accessing microphone")},videoStreamErrorMessage(){if(!this.videoStreamError)return null;if(this.videoStreamError.name==="NotSupportedError"&&!window.RTCPeerConnection)return t("spreed","Calls are not supported in your browser");const a="isSecureContext"in window&&!window.isSecureContext,e=this.videoStreamError.message&&this.videoStreamError.message.includes("Only secure origins");return this.videoStreamError.name==="NotSupportedError"&&a||this.videoStreamError.name==="NotAllowedError"&&e?t("spreed","Access to camera is only possible with HTTPS"):this.videoStreamError.name==="NotAllowedError"?t("spreed","Access to camera was denied"):t("spreed","Error while accessing camera")},videoPreviewAvailable(){return!!this.videoInputId&&!!this.videoStream}}};var yl=o(49059);const bl=(0,V.getCapabilities)()?.spreed?.config?.call?.recording||!1,Lt=(0,V.getCapabilities)()?.spreed?.config?.call?.["recording-consent"],Fl={name:"MediaSettings",directives:{Tooltip:We.Z},components:{AvatarWrapper:He.Z,Bell:Ir,BellOff:Rr.Z,CallButton:Ke.Z,Cog:Pr.default,Creation:Zr,NcActionButton:Ge.Z,NcActions:ze.Z,NcButton:Z.Z,NcCheckboxRadioSwitch:vt.Z,NcModal:W.Z,NcNoteCard:Gr.Z,MediaDevicesSelector:Al,VideoBackground:ll.Z,VideoIcon:wt.Z,VideoOff:Vr.Z,VolumeIndicator:ml.Z,VideoBackgroundEditor:rl},mixins:[Dl,Mt.Z],props:{recordingConsentGiven:{type:Boolean,default:!1}},emits:["update:recording-consent-given"],setup(){const a=(0,Xe.E)(),e=(0,Ce.t)(),s=(0,yl.F)();return{AVATAR:D.pA,isInCall:a,guestNameStore:e,settingsStore:s}},data(){return{model:U.kL,modal:!1,tabContent:"none",audioOn:void 0,videoOn:void 0,silentCall:!1,updatedBackground:void 0,deviceIdChanged:!1,audioDeviceStateChanged:!1,videoDeviceStateChanged:!1,isRecordingFromStart:!1,isPublicShareAuthSidebar:!1}},computed:{container(){return this.$store.getters.getMainContainerSelector()},displayName(){return this.$store.getters.getDisplayName()},guestName(){return this.guestNameStore.getGuestName(this.$store.getters.getToken(),this.$store.getters.getActorId())},userId(){return this.$store.getters.getUserId()},actorType(){return this.$store.getters.getActorType()},token(){return this.$store.getters.getToken()},showMediaSettings(){return this.settingsStore.getShowMediaSettings(this.token)},showVideo(){return this.videoPreviewAvailable&&this.videoOn},audioButtonTooltip(){return this.audioPreviewAvailable?this.audioOn?t("spreed","Mute audio"):t("spreed","Unmute audio"):t("spreed","No audio")},videoButtonTooltip(){return this.videoPreviewAvailable?this.videoOn?t("spreed","Disable video"):t("spreed","Enable video"):t("spreed","No camera")},conversation(){return this.$store.getters.conversation(this.token)||this.$store.getters.dummyConversation},hasCall(){return this.conversation.hasCall||this.conversation.hasCallOverwrittenByChat},isCurrentlyRecording(){return[D.D0.RECORDING.VIDEO_STARTING,D.D0.RECORDING.AUDIO_STARTING,D.D0.RECORDING.VIDEO,D.D0.RECORDING.AUDIO].includes(this.conversation.callRecording)},canFullModerate(){return this.conversation.participantType===D.oM.TYPE.OWNER||this.conversation.participantType===D.oM.TYPE.MODERATOR},canModerateRecording(){return this.canFullModerate&&bl},isRecordingConsentRequired(){return Lt===D.D0.RECORDING_CONSENT.REQUIRED||Lt===D.D0.RECORDING_CONSENT.OPTIONAL&&this.conversation.recordingConsent===D.D0.RECORDING_CONSENT.REQUIRED},showRecordingWarning(){return!this.isInCall&&(this.isCurrentlyRecording||this.isRecordingConsentRequired)},showSilentCallOption(){return!(this.hasCall&&!this.isInLobby)&&!this.isPublicShareAuthSidebar},showDeviceSelection(){return this.tabContent==="devices"},showBackgroundEditor(){return this.tabContent==="backgrounds"},isVirtualBackgroundAvailable(){return this.virtualBackground.isAvailable()},showUpdateChangesButton(){return this.updatedBackground||this.deviceIdChanged||this.audioDeviceStateChanged||this.videoDeviceStateChanged}},watch:{modal(a){a?(this.audioOn=!R.Z.getItem("audioDisabled_"+this.token),this.videoOn=!R.Z.getItem("videoDisabled_"+this.token),R.Z.getItem("virtualBackgroundEnabled_"+this.token)==="true"&&(R.Z.getItem("virtualBackgroundType_"+this.token)===D.m7.BACKGROUND_TYPE.BLUR?this.blurVirtualBackground():R.Z.getItem("virtualBackgroundType_"+this.token)===D.m7.BACKGROUND_TYPE.IMAGE&&this.setVirtualBackgroundImage(R.Z.getItem("virtualBackgroundUrl_"+this.token))),this.initializeDevicesMixin()):this.stopDevicesMixin()},audioInputId(a){this.deviceIdChanged=!0,this.showDeviceSelection&&a&&!this.audioOn&&this.toggleAudio()},videoInputId(a){this.deviceIdChanged=!0,this.showDeviceSelection&&a&&!this.videoOn&&this.toggleVideo()},isRecordingFromStart(a){this.setRecordingConsentGiven(a)}},mounted(){(0,G.Ld)("talk:media-settings:show",this.showModal),(0,G.Ld)("talk:media-settings:hide",this.closeModalAndApplySettings)},beforeDestroy(){(0,G.r1)("talk:media-settings:show",this.showModal),(0,G.r1)("talk:media-settings:hide",this.closeModalAndApplySettings)},methods:{showModal(a){this.modal=!0,a==="video-verification"&&(this.isPublicShareAuthSidebar=!0)},closeModal(){this.modal=!1,this.updatedBackground=void 0,this.deviceIdChanged=!1,this.audioDeviceStateChanged=!1,this.videoDeviceStateChanged=!1,this.isPublicShareAuthSidebar=!1,this.isRecordingFromStart=!1},toggleAudio(){this.audioOn?(R.Z.setItem("audioDisabled_"+this.token,"true"),this.audioOn=!1):(R.Z.removeItem("audioDisabled_"+this.token),this.audioOn=!0),this.audioDeviceStateChanged=!this.audioDeviceStateChanged},toggleVideo(){this.videoOn?(R.Z.setItem("videoDisabled_"+this.token,"true"),this.videoOn=!1):(R.Z.removeItem("videoDisabled_"+this.token),this.videoOn=!0),this.videoDeviceStateChanged=!this.videoDeviceStateChanged},closeModalAndApplySettings(){this.updatedBackground&&this.handleUpdateBackground(this.updatedBackground),this.audioDeviceStateChanged&&(0,G.j8)("local-audio-control-button:toggle-audio"),this.videoDeviceStateChanged&&(0,G.j8)("local-video-control-button:toggle-video"),this.closeModal()},handleUpdateBackground(a){a==="none"?this.clearBackground():a==="blur"?this.blurBackground():this.setBackgroundImage(a)},handleUpdateVirtualBackground(a){this.updatedBackground=a,a==="none"?this.clearVirtualBackground():a==="blur"?this.blurVirtualBackground():this.setVirtualBackgroundImage(a)},clearVirtualBackground(){this.virtualBackground.setEnabled(!1)},clearBackground(){this.isInCall?U.kL.disableVirtualBackground():R.Z.removeItem("virtualBackgroundEnabled_"+this.token)},blurVirtualBackground(){this.virtualBackground.setEnabled(!0),this.virtualBackground.setVirtualBackground({backgroundType:D.m7.BACKGROUND_TYPE.BLUR,blurValue:D.m7.BLUR_STRENGTH.DEFAULT})},blurBackground(){this.isInCall?(U.kL.enableVirtualBackground(),U.kL.setVirtualBackgroundBlur(D.m7.BLUR_STRENGTH.DEFAULT)):(R.Z.setItem("virtualBackgroundEnabled_"+this.token,"true"),R.Z.setItem("virtualBackgroundType_"+this.token,D.m7.BACKGROUND_TYPE.BLUR),R.Z.setItem("virtualBackgroundBlurStrength_"+this.token,D.m7.BLUR_STRENGTH.DEFAULT))},setVirtualBackgroundImage(a){this.virtualBackground.setEnabled(!0),this.virtualBackground.setVirtualBackground({backgroundType:D.m7.BACKGROUND_TYPE.IMAGE,virtualSource:a})},setBackgroundImage(a){this.isInCall?(U.kL.enableVirtualBackground(),U.kL.setVirtualBackgroundImage(a)):(R.Z.setItem("virtualBackgroundEnabled_"+this.token,"true"),R.Z.setItem("virtualBackgroundType_"+this.token,D.m7.BACKGROUND_TYPE.IMAGE),R.Z.setItem("virtualBackgroundUrl_"+this.token,a))},toggleTab(a){this.tabContent!==a?this.tabContent=a:this.tabContent="none"},setShowMediaSettings(a){this.settingsStore.setShowMediaSettings(this.token,a)},setRecordingConsentGiven(a){this.$emit("update:recording-consent-given",a)}}};var je=o(93083),Ae={};Ae.styleTagTransform=L(),Ae.setAttributes=w(),Ae.insert=T().bind(null,"head"),Ae.domAPI=k(),Ae.insertStyleElement=S();var du=x()(je.Z,Ae);const uu=je.Z&&je.Z.locals?je.Z.locals:void 0;var El=(0,f.Z)(Fl,kr,Tr,!1,null,"dfd998c4",null);const Ml=El.exports,Bl={name:"FilesSidebarChatView",components:{CallButton:Ke.Z,ChatView:xr,MediaSettings:Ml},data(){return{recordingConsentGiven:!1}}};var $e=o(72462),me={};me.styleTagTransform=L(),me.setAttributes=w(),me.insert=T().bind(null,"head"),me.domAPI=k(),me.insertStyleElement=S();var pu=x()($e.Z,me);const _u=$e.Z&&$e.Z.locals?$e.Z.locals:void 0;var xl=(0,f.Z)(Bl,C,m,!1,null,"0c508622",null);const kl=xl.exports},95413:()=>{},75415:()=>{}}]);})();

//# sourceMappingURL=talk-files-sidebar-tab-chunk.js.map?v=f4b2b29ea06a7ce07024