YetiForceCompany/YetiForceCRM

View on GitHub
public_html/layouts/basic/modules/Chat/Chat.vue.js.map

Summary

Maintainability
Test Coverage
{"version":3,"file":"Chat.vue.js","sources":["../../../../src/node_modules/vue-drag-resize/src/components/vue-drag-resize.js","../../../../src/node_modules/vue-runtime-helpers/dist/normalize-component.mjs","../../../../src/node_modules/vue-runtime-helpers/dist/inject-style/browser.mjs","../../../../src/node_modules/vue-drag-resize/src/components/vue-drag-resize.vue","../../../../src/mixins/DragResize.js","../../../../src/components/YfDrag.vue?rollup-plugin-vue=script.js","../../../../src/node_modules/lodash.isequal/index.js","../../../../src/node_modules/rollup-plugin-node-globals/src/global.js","../../../../src/node_modules/process-es6/browser.js","../../../../src/node_modules/vuex/dist/vuex.esm.js","../../../../src/layouts/basic/modules/Chat/components/ChatButtonDialog.vue?rollup-plugin-vue=script.js","../../../../src/layouts/basic/modules/Chat/components/ChatButtonDialog.vue","../../../../src/layouts/basic/modules/Chat/components/Rooms/RoomPrivateUserSelect.vue?rollup-plugin-vue=script.js","../../../../src/layouts/basic/modules/Chat/components/Rooms/RoomPrivateUserSelect.vue","../../../../src/layouts/basic/modules/Chat/components/Rooms/RoomPrivateInput.vue?rollup-plugin-vue=script.js","../../../../src/layouts/basic/modules/Chat/components/Rooms/RoomPrivateInput.vue","../../../../src/layouts/basic/modules/Chat/components/Rooms/RoomSelect.vue?rollup-plugin-vue=script.js","../../../../src/layouts/basic/modules/Chat/components/Rooms/RoomSelectAsync.vue?rollup-plugin-vue=script.js","../../../../src/layouts/basic/modules/Chat/components/Rooms/RoomSelectAsync.vue","../../../../src/layouts/basic/modules/Chat/components/Rooms/RoomUnpinButton.vue?rollup-plugin-vue=script.js","../../../../src/layouts/basic/modules/Chat/utils/utils.js","../../../../src/layouts/basic/modules/Chat/components/Rooms/RoomList.vue?rollup-plugin-vue=script.js","../../../../src/layouts/basic/modules/Chat/components/Rooms/RoomList.vue","../../../../src/layouts/basic/modules/Chat/components/Rooms/RoomPrivate.vue?rollup-plugin-vue=script.js","../../../../src/layouts/basic/modules/Chat/components/Rooms/RoomGroup.vue?rollup-plugin-vue=script.js","../../../../src/layouts/basic/modules/Chat/components/Rooms/RoomGlobal.vue?rollup-plugin-vue=script.js","../../../../src/layouts/basic/modules/Chat/components/Rooms/RoomCrm.vue?rollup-plugin-vue=script.js","../../../../src/layouts/basic/modules/Chat/components/Rooms/RoomCrm.vue","../../../../src/layouts/basic/modules/Chat/components/Rooms/RoomUser.vue?rollup-plugin-vue=script.js","../../../../src/layouts/basic/modules/Chat/components/ChatPanelLeft.vue?rollup-plugin-vue=script.js","../../../../src/layouts/basic/modules/Chat/components/ChatPanelLeft.vue","../../../../src/layouts/basic/modules/Chat/components/ChatPanelRight.vue?rollup-plugin-vue=script.js","../../../../src/layouts/basic/modules/Chat/components/ChatButtonEnter.vue?rollup-plugin-vue=script.js","../../../../libraries/emoji-mart-vue-fast/dist/emoji-mart.js","../../../../src/layouts/basic/modules/Chat/components/Tabs/TabChatInput.vue?rollup-plugin-vue=script.js","../../../../src/components/NoResults.vue?rollup-plugin-vue=script.js","../../../../src/layouts/basic/modules/Chat/components/Tabs/TabMessages.vue?rollup-plugin-vue=script.js","../../../../src/layouts/basic/modules/Chat/components/ChatContent.vue?rollup-plugin-vue=script.js","../../../../src/layouts/basic/modules/Chat/components/ChatContent.vue","../../../../src/layouts/basic/modules/Chat/components/Tabs/TabChatNoRoom.vue?rollup-plugin-vue=script.js","../../../../src/layouts/basic/modules/Chat/components/Tabs/TabChat.vue?rollup-plugin-vue=script.js","../../../../src/layouts/basic/modules/Chat/components/Tabs/TabUnread.vue?rollup-plugin-vue=script.js","../../../../src/layouts/basic/modules/Chat/components/Tabs/TabUnread.vue","../../../../src/layouts/basic/modules/Chat/components/Tabs/TabHistory.vue?rollup-plugin-vue=script.js","../../../../src/layouts/basic/modules/Chat/components/ChatPanelMain.vue?rollup-plugin-vue=script.js","../../../../src/layouts/basic/modules/Chat/components/ChatButtonNotify.vue?rollup-plugin-vue=script.js","../../../../src/components/ButtonGrab.vue?rollup-plugin-vue=script.js","../../../../src/layouts/basic/modules/Chat/components/ChatHeader.vue?rollup-plugin-vue=script.js","../../../../src/layouts/basic/modules/Chat/components/ChatFooter.vue?rollup-plugin-vue=script.js","../../../../src/layouts/basic/modules/Chat/components/ChatFooter.vue","../../../../src/components/YfBackdrop.vue?rollup-plugin-vue=script.js","../../../../src/layouts/basic/modules/Chat/components/ChatContainer.vue?rollup-plugin-vue=script.js","../../../../src/components/DragResize.vue?rollup-plugin-vue=script.js","../../../../src/layouts/basic/modules/Chat/views/Dialog.vue?rollup-plugin-vue=script.js","../../../../src/layouts/basic/modules/Chat/views/RecordRoom.vue?rollup-plugin-vue=script.js","../../../../src/components/YfIcon.vue?rollup-plugin-vue=script.js","../../../../src/store/index.js","../../../../src/node_modules/lodash.get/index.js","../../../../src/layouts/basic/modules/Chat/store/getters.js","../../../../src/node_modules/lodash.unionby/index.js","../../../../src/layouts/basic/modules/Chat/store/mutations.js","../../../../src/node_modules/lodash.difference/index.js","../../../../src/layouts/basic/modules/Chat/store/actions.js","../../../../src/layouts/basic/modules/Chat/store/index.js","../../../../src/layouts/basic/modules/Chat/store/state.js","../../../../src/layouts/basic/modules/Chat/Chat.js"],"sourcesContent":["const styleMapping = {\r\n    y: {\r\n        t: 'top',\r\n        m: 'marginTop',\r\n        b: 'bottom',\r\n    },\r\n    x: {\r\n        l: 'left',\r\n        m: 'marginLeft',\r\n        r: 'right',\r\n    },\r\n};\r\n\r\nfunction addEvents(events) {\r\n    events.forEach((cb, eventName) => {\r\n        document.documentElement.addEventListener(eventName, cb);\r\n    });\r\n}\r\n\r\nfunction removeEvents(events) {\r\n    events.forEach((cb, eventName) => {\r\n        document.documentElement.removeEventListener(eventName, cb);\r\n    });\r\n}\r\n\r\nexport default {\r\n    name: 'vue-drag-resize',\r\n\r\n    emits: ['clicked', 'dragging', 'dragstop', 'resizing', 'resizestop', 'activated', 'deactivated'],\r\n\r\n    props: {\r\n        stickSize: {\r\n            type: Number, default: 8,\r\n        },\r\n        parentScaleX: {\r\n            type: Number, default: 1,\r\n        },\r\n        parentScaleY: {\r\n            type: Number, default: 1,\r\n        },\r\n        isActive: {\r\n            type: Boolean, default: false,\r\n        },\r\n        preventActiveBehavior: {\r\n            type: Boolean, default: false,\r\n        },\r\n        isDraggable: {\r\n            type: Boolean, default: true,\r\n        },\r\n        isResizable: {\r\n            type: Boolean, default: true,\r\n        },\r\n        aspectRatio: {\r\n            type: Boolean, default: false,\r\n        },\r\n        parentLimitation: {\r\n            type: Boolean, default: false,\r\n        },\r\n        snapToGrid: {\r\n            type: Boolean, default: false,\r\n        },\r\n        gridX: {\r\n            type: Number,\r\n            default: 50,\r\n            validator(val) {\r\n                return val >= 0;\r\n            },\r\n        },\r\n        gridY: {\r\n            type: Number,\r\n            default: 50,\r\n            validator(val) {\r\n                return val >= 0;\r\n            },\r\n        },\r\n        parentW: {\r\n            type: Number,\r\n            default: 0,\r\n            validator(val) {\r\n                return val >= 0;\r\n            },\r\n        },\r\n        parentH: {\r\n            type: Number,\r\n            default: 0,\r\n            validator(val) {\r\n                return val >= 0;\r\n            },\r\n        },\r\n        w: {\r\n            type: [String, Number],\r\n            default: 200,\r\n            validator(val) {\r\n                return (typeof val === 'string') ? val === 'auto' : val >= 0;\r\n            },\r\n        },\r\n        h: {\r\n            type: [String, Number],\r\n            default: 200,\r\n            validator(val) {\r\n                return (typeof val === 'string') ? val === 'auto' : val >= 0;\r\n            },\r\n        },\r\n        minw: {\r\n            type: Number,\r\n            default: 50,\r\n            validator(val) {\r\n                return val >= 0;\r\n            },\r\n        },\r\n        minh: {\r\n            type: Number,\r\n            default: 50,\r\n            validator(val) {\r\n                return val >= 0;\r\n            },\r\n        },\r\n        x: {\r\n            type: Number,\r\n            default: 0,\r\n            validator(val) {\r\n                return typeof val === 'number';\r\n            },\r\n        },\r\n        y: {\r\n            type: Number,\r\n            default: 0,\r\n            validator(val) {\r\n                return typeof val === 'number';\r\n            },\r\n        },\r\n        z: {\r\n            type: [String, Number],\r\n            default: 'auto',\r\n            validator(val) {\r\n                return (typeof val === 'string') ? val === 'auto' : val >= 0;\r\n            },\r\n        },\r\n        dragHandle: {\r\n            type: String,\r\n            default: null,\r\n        },\r\n        dragCancel: {\r\n            type: String,\r\n            default: null,\r\n        },\r\n        sticks: {\r\n            type: Array,\r\n            default() {\r\n                return ['tl', 'tm', 'tr', 'mr', 'br', 'bm', 'bl', 'ml'];\r\n            },\r\n        },\r\n        axis: {\r\n            type: String,\r\n            default: 'both',\r\n            validator(val) {\r\n                return ['x', 'y', 'both', 'none'].indexOf(val) !== -1;\r\n            },\r\n        },\r\n        contentClass: {\r\n            type: String,\r\n            required: false,\r\n            default: '',\r\n        },\r\n    },\r\n\r\n    data() {\r\n        return {\r\n            fixAspectRatio: null,\r\n            active: null,\r\n            zIndex: null,\r\n            parentWidth: null,\r\n            parentHeight: null,\r\n            left: null,\r\n            top: null,\r\n            right: null,\r\n            bottom: null,\r\n            minHeight: null,\r\n        };\r\n    },\r\n\r\n    beforeCreate() {\r\n        this.stickDrag = false;\r\n        this.bodyDrag = false;\r\n        this.dimensionsBeforeMove = { pointerX: 0, pointerY: 0, x: 0, y: 0, w: 0, h: 0 };\r\n        this.limits = {\r\n            left: { min: null, max: null },\r\n            right: { min: null, max: null },\r\n            top: { min: null, max: null },\r\n            bottom: { min: null, max: null },\r\n        };\r\n\r\n        this.currentStick = null;\r\n    },\r\n\r\n    mounted() {\r\n        this.parentElement = this.$el.parentNode;\r\n        this.parentWidth = this.parentW ? this.parentW : this.parentElement.clientWidth;\r\n        this.parentHeight = this.parentH ? this.parentH : this.parentElement.clientHeight;\r\n\r\n        this.left = this.x;\r\n        this.top = this.y;\r\n        this.right = this.parentWidth - (this.w === 'auto' ? this.$refs.container.scrollWidth : this.w) - this.left;\r\n        this.bottom = this.parentHeight - (this.h === 'auto' ? this.$refs.container.scrollHeight : this.h) - this.top;\r\n\r\n        this.domEvents = new Map([\r\n            ['mousemove', this.move],\r\n            ['mouseup', this.up],\r\n            ['mouseleave', this.up],\r\n            ['mousedown', this.deselect],\r\n            ['touchmove', this.move],\r\n            ['touchend', this.up],\r\n            ['touchcancel', this.up],\r\n            ['touchstart', this.up],\r\n        ]);\r\n\r\n        addEvents(this.domEvents);\r\n\r\n        if (this.dragHandle) {\r\n            [...this.$el.querySelectorAll(this.dragHandle)].forEach((dragHandle) => {\r\n                dragHandle.setAttribute('data-drag-handle', this._uid);\r\n            });\r\n        }\r\n\r\n        if (this.dragCancel) {\r\n            [...this.$el.querySelectorAll(this.dragCancel)].forEach((cancelHandle) => {\r\n                cancelHandle.setAttribute('data-drag-cancel', this._uid);\r\n            });\r\n        }\r\n    },\r\n\r\n    beforeDestroy() {\r\n        removeEvents(this.domEvents);\r\n    },\r\n\r\n    methods: {\r\n        deselect() {\r\n            if (this.preventActiveBehavior) {\r\n                return;\r\n            }\r\n            this.active = false;\r\n        },\r\n\r\n        move(ev) {\r\n            if (!this.stickDrag && !this.bodyDrag) {\r\n                return;\r\n            }\r\n\r\n            ev.stopPropagation();\r\n\r\n            const pageX = typeof ev.pageX !== 'undefined' ? ev.pageX : ev.touches[0].pageX;\r\n            const pageY = typeof ev.pageY !== 'undefined' ? ev.pageY : ev.touches[0].pageY;\r\n\r\n            const { dimensionsBeforeMove } = this;\r\n\r\n            const delta = {\r\n                x: (dimensionsBeforeMove.pointerX - pageX) / this.parentScaleX,\r\n                y: (dimensionsBeforeMove.pointerY - pageY) / this.parentScaleY,\r\n            };\r\n\r\n            if (this.stickDrag) {\r\n                this.stickMove(delta);\r\n            }\r\n\r\n            if (this.bodyDrag) {\r\n                if (this.axis === 'x') {\r\n                    delta.y = 0;\r\n                } else if (this.axis === 'y') {\r\n                    delta.x = 0;\r\n                } else if (this.axis === 'none') {\r\n                    return;\r\n                }\r\n                this.bodyMove(delta);\r\n            }\r\n        },\r\n\r\n        up(ev) {\r\n            if (this.stickDrag) {\r\n                this.stickUp(ev);\r\n            } else if (this.bodyDrag) {\r\n                this.bodyUp(ev);\r\n            }\r\n        },\r\n\r\n        bodyDown(ev) {\r\n            const { target, button } = ev;\r\n\r\n            if (!this.preventActiveBehavior) {\r\n                this.active = true;\r\n            }\r\n\r\n            if (button && button !== 0) {\r\n                return;\r\n            }\r\n\r\n            this.$emit('clicked', ev);\r\n\r\n            if (!this.active) {\r\n                return;\r\n            }\r\n\r\n            if (this.dragHandle && target.getAttribute('data-drag-handle') !== this._uid.toString()) {\r\n                return;\r\n            }\r\n\r\n            if (this.dragCancel && target.getAttribute('data-drag-cancel') === this._uid.toString()) {\r\n                return;\r\n            }\r\n\r\n            if (typeof ev.stopPropagation !== 'undefined') {\r\n                ev.stopPropagation();\r\n            }\r\n\r\n            if (typeof ev.preventDefault !== 'undefined') {\r\n                ev.preventDefault();\r\n            }\r\n\r\n            if (this.isDraggable) {\r\n                this.bodyDrag = true;\r\n            }\r\n\r\n            const pointerX = typeof ev.pageX !== 'undefined' ? ev.pageX : ev.touches[0].pageX;\r\n            const pointerY = typeof ev.pageY !== 'undefined' ? ev.pageY : ev.touches[0].pageY;\r\n\r\n            this.saveDimensionsBeforeMove({ pointerX, pointerY });\r\n\r\n            if (this.parentLimitation) {\r\n                this.limits = this.calcDragLimitation();\r\n            }\r\n        },\r\n\r\n        bodyMove(delta) {\r\n            const { dimensionsBeforeMove, parentWidth, parentHeight, gridX, gridY, width, height } = this;\r\n\r\n            let newTop = dimensionsBeforeMove.top - delta.y;\r\n            let newBottom = dimensionsBeforeMove.bottom + delta.y;\r\n            let newLeft = dimensionsBeforeMove.left - delta.x;\r\n            let newRight = dimensionsBeforeMove.right + delta.x;\r\n\r\n            if (this.snapToGrid) {\r\n                let alignTop = true;\r\n                let alignLeft = true;\r\n\r\n                let diffT = newTop - Math.floor(newTop / gridY) * gridY;\r\n                let diffB = (parentHeight - newBottom) - Math.floor((parentHeight - newBottom) / gridY) * gridY;\r\n                let diffL = newLeft - Math.floor(newLeft / gridX) * gridX;\r\n                let diffR = (parentWidth - newRight) - Math.floor((parentWidth - newRight) / gridX) * gridX;\r\n\r\n                if (diffT > (gridY / 2)) {\r\n                    diffT -= gridY;\r\n                }\r\n                if (diffB > (gridY / 2)) {\r\n                    diffB -= gridY;\r\n                }\r\n                if (diffL > (gridX / 2)) {\r\n                    diffL -= gridX;\r\n                }\r\n                if (diffR > (gridX / 2)) {\r\n                    diffR -= gridX;\r\n                }\r\n\r\n                if (Math.abs(diffB) < Math.abs(diffT)) {\r\n                    alignTop = false;\r\n                }\r\n                if (Math.abs(diffR) < Math.abs(diffL)) {\r\n                    alignLeft = false;\r\n                }\r\n\r\n                newTop -= (alignTop ? diffT : diffB);\r\n                newBottom = parentHeight - height - newTop;\r\n                newLeft -= (alignLeft ? diffL : diffR);\r\n                newRight = parentWidth - width - newLeft;\r\n            }\r\n\r\n            ({\r\n                newLeft: this.left,\r\n                newRight: this.right,\r\n                newTop: this.top,\r\n                newBottom: this.bottom,\r\n            } = this.rectCorrectionByLimit({ newLeft, newRight, newTop, newBottom }));\r\n\r\n            this.$emit('dragging', this.rect);\r\n        },\r\n\r\n        bodyUp() {\r\n            this.bodyDrag = false;\r\n            this.$emit('dragging', this.rect);\r\n            this.$emit('dragstop', this.rect);\r\n\r\n            this.dimensionsBeforeMove = { pointerX: 0, pointerY: 0, x: 0, y: 0, w: 0, h: 0 };\r\n\r\n            this.limits = {\r\n                left: { min: null, max: null },\r\n                right: { min: null, max: null },\r\n                top: { min: null, max: null },\r\n                bottom: { min: null, max: null },\r\n            };\r\n        },\r\n\r\n        stickDown(stick, ev, force = false) {\r\n            if ((!this.isResizable || !this.active) && !force) {\r\n                return;\r\n            }\r\n\r\n            this.stickDrag = true;\r\n\r\n            const pointerX = typeof ev.pageX !== 'undefined' ? ev.pageX : ev.touches[0].pageX;\r\n            const pointerY = typeof ev.pageY !== 'undefined' ? ev.pageY : ev.touches[0].pageY;\r\n\r\n            this.saveDimensionsBeforeMove({ pointerX, pointerY });\r\n\r\n            this.currentStick = stick;\r\n\r\n            this.limits = this.calcResizeLimits();\r\n        },\r\n\r\n        saveDimensionsBeforeMove({ pointerX, pointerY }) {\r\n            this.dimensionsBeforeMove.pointerX = pointerX;\r\n            this.dimensionsBeforeMove.pointerY = pointerY;\r\n\r\n            this.dimensionsBeforeMove.left = this.left;\r\n            this.dimensionsBeforeMove.right = this.right;\r\n            this.dimensionsBeforeMove.top = this.top;\r\n            this.dimensionsBeforeMove.bottom = this.bottom;\r\n\r\n            this.dimensionsBeforeMove.width = this.width;\r\n            this.dimensionsBeforeMove.height = this.height;\r\n\r\n            this.aspectFactor = this.width / this.height;\r\n        },\r\n\r\n        stickMove(delta) {\r\n            const {\r\n                currentStick,\r\n                dimensionsBeforeMove,\r\n                gridY,\r\n                gridX,\r\n                snapToGrid,\r\n                parentHeight,\r\n                parentWidth,\r\n            } = this;\r\n\r\n            let newTop = dimensionsBeforeMove.top;\r\n            let newBottom = dimensionsBeforeMove.bottom;\r\n            let newLeft = dimensionsBeforeMove.left;\r\n            let newRight = dimensionsBeforeMove.right;\r\n            switch(currentStick[0]) {\r\n                case 'b':\r\n                    newBottom = dimensionsBeforeMove.bottom + delta.y;\r\n\r\n                    if (snapToGrid) {\r\n                        newBottom = parentHeight - Math.round((parentHeight - newBottom) / gridY) * gridY;\r\n                    }\r\n\r\n                    break;\r\n\r\n                case 't':\r\n                    newTop = dimensionsBeforeMove.top - delta.y;\r\n\r\n                    if (snapToGrid) {\r\n                        newTop = Math.round(newTop / gridY) * gridY;\r\n                    }\r\n\r\n                    break;\r\n                default:\r\n                    break;\r\n            }\r\n\r\n            switch(currentStick[1]) {\r\n                case 'r':\r\n                    newRight = dimensionsBeforeMove.right + delta.x;\r\n\r\n                    if (snapToGrid) {\r\n                        newRight = parentWidth - Math.round((parentWidth - newRight) / gridX) * gridX;\r\n                    }\r\n\r\n                    break;\r\n\r\n                case 'l':\r\n                    newLeft = dimensionsBeforeMove.left - delta.x;\r\n\r\n                    if (snapToGrid) {\r\n                        newLeft = Math.round(newLeft / gridX) * gridX;\r\n                    }\r\n\r\n                    break;\r\n                default:\r\n                    break;\r\n            }\r\n\r\n            ({\r\n                newLeft,\r\n                newRight,\r\n                newTop,\r\n                newBottom,\r\n            } = this.rectCorrectionByLimit({ newLeft, newRight, newTop, newBottom }));\r\n\r\n            if (this.aspectRatio) {\r\n                ({\r\n                    newLeft,\r\n                    newRight,\r\n                    newTop,\r\n                    newBottom,\r\n                } = this.rectCorrectionByAspectRatio({ newLeft, newRight, newTop, newBottom }));\r\n            }\r\n\r\n            this.left = newLeft;\r\n            this.right = newRight;\r\n            this.top = newTop;\r\n            this.bottom = newBottom;\r\n\r\n            this.$emit('resizing', this.rect);\r\n        },\r\n\r\n        stickUp() {\r\n            this.stickDrag = false;\r\n            this.dimensionsBeforeMove = {\r\n                pointerX: 0,\r\n                pointerY: 0,\r\n                x: 0,\r\n                y: 0,\r\n                w: 0,\r\n                h: 0,\r\n            };\r\n            this.limits = {\r\n                left: { min: null, max: null },\r\n                right: { min: null, max: null },\r\n                top: { min: null, max: null },\r\n                bottom: { min: null, max: null },\r\n            };\r\n\r\n            this.$emit('resizing', this.rect);\r\n            this.$emit('resizestop', this.rect);\r\n        },\r\n\r\n        calcDragLimitation() {\r\n            const { parentWidth, parentHeight } = this;\r\n\r\n            return {\r\n                left: { min: 0, max: parentWidth - this.width },\r\n                right: { min: 0, max: parentWidth - this.width },\r\n                top: { min: 0, max: parentHeight - this.height },\r\n                bottom: { min: 0, max: parentHeight - this.height },\r\n            };\r\n        },\r\n\r\n        calcResizeLimits() {\r\n            const { aspectFactor, width, height, bottom, top, left, right } = this;\r\n            let { minh: minHeight, minw: minWidth } = this;\r\n\r\n            const parentLim = this.parentLimitation ? 0 : null;\r\n\r\n            if (this.aspectRatio) {\r\n                if (minWidth / minHeight > aspectFactor) {\r\n                    minHeight = minWidth / aspectFactor;\r\n                } else {\r\n                    minWidth = aspectFactor * minHeight;\r\n                }\r\n            }\r\n\r\n            const limits = {\r\n                left: { min: parentLim, max: left + (width - minWidth) },\r\n                right: { min: parentLim, max: right + (width - minWidth) },\r\n                top: { min: parentLim, max: top + (height - minHeight) },\r\n                bottom: { min: parentLim, max: bottom + (height - minHeight) },\r\n            };\r\n\r\n            if (this.aspectRatio) {\r\n                const aspectLimits = {\r\n                    left: {\r\n                        min: left - (Math.min(top, bottom) * aspectFactor) * 2,\r\n                        max: left + ((((height - minHeight) / 2) * aspectFactor) * 2),\r\n                    },\r\n                    right: {\r\n                        min: right - (Math.min(top, bottom) * aspectFactor) * 2,\r\n                        max: right + ((((height - minHeight) / 2) * aspectFactor) * 2),\r\n                    },\r\n                    top: {\r\n                        min: top - (Math.min(left, right) / aspectFactor) * 2,\r\n                        max: top + ((((width - minWidth) / 2) / aspectFactor) * 2),\r\n                    },\r\n                    bottom: {\r\n                        min: bottom - (Math.min(left, right) / aspectFactor) * 2,\r\n                        max: bottom + ((((width - minWidth) / 2) / aspectFactor) * 2),\r\n                    },\r\n                };\r\n\r\n                if (this.currentStick[0] === 'm') {\r\n                    limits.left = {\r\n                        min: Math.max(limits.left.min, aspectLimits.left.min),\r\n                        max: Math.min(limits.left.max, aspectLimits.left.max),\r\n                    };\r\n                    limits.right = {\r\n                        min: Math.max(limits.right.min, aspectLimits.right.min),\r\n                        max: Math.min(limits.right.max, aspectLimits.right.max),\r\n                    };\r\n\r\n                } else if (this.currentStick[1] === 'm') {\r\n                    limits.top = {\r\n                        min: Math.max(limits.top.min, aspectLimits.top.min),\r\n                        max: Math.min(limits.top.max, aspectLimits.top.max),\r\n                    };\r\n                    limits.bottom = {\r\n                        min: Math.max(limits.bottom.min, aspectLimits.bottom.min),\r\n                        max: Math.min(limits.bottom.max, aspectLimits.bottom.max),\r\n                    };\r\n                }\r\n            }\r\n\r\n            return limits;\r\n        },\r\n\r\n        sideCorrectionByLimit(limit, current) {\r\n            let value = current;\r\n\r\n            if (limit.min !== null && current < limit.min) {\r\n                value = limit.min;\r\n            } else if (limit.max !== null && limit.max < current) {\r\n                value = limit.max;\r\n            }\r\n\r\n            return value;\r\n        },\r\n\r\n        rectCorrectionByLimit(rect) {\r\n            const { limits } = this;\r\n            let { newRight, newLeft, newBottom, newTop } = rect;\r\n\r\n            newLeft = this.sideCorrectionByLimit(limits.left, newLeft);\r\n            newRight = this.sideCorrectionByLimit(limits.right, newRight);\r\n            newTop = this.sideCorrectionByLimit(limits.top, newTop);\r\n            newBottom = this.sideCorrectionByLimit(limits.bottom, newBottom);\r\n\r\n            return {\r\n                newLeft,\r\n                newRight,\r\n                newTop,\r\n                newBottom,\r\n            };\r\n        },\r\n\r\n        rectCorrectionByAspectRatio(rect) {\r\n            let { newLeft, newRight, newTop, newBottom } = rect;\r\n            const { parentWidth, parentHeight, currentStick, aspectFactor, dimensionsBeforeMove } = this;\r\n\r\n            let newWidth = parentWidth - newLeft - newRight;\r\n            let newHeight = parentHeight - newTop - newBottom;\r\n\r\n            if (currentStick[1] === 'm') {\r\n                const deltaHeight = newHeight - dimensionsBeforeMove.height;\r\n\r\n                newLeft -= (deltaHeight * aspectFactor) / 2;\r\n                newRight -= (deltaHeight * aspectFactor) / 2;\r\n            } else if (currentStick[0] === 'm') {\r\n                const deltaWidth = newWidth - dimensionsBeforeMove.width;\r\n\r\n                newTop -= (deltaWidth / aspectFactor) / 2;\r\n                newBottom -= (deltaWidth / aspectFactor) / 2;\r\n            } else if (newWidth / newHeight > aspectFactor) {\r\n                newWidth = aspectFactor * newHeight;\r\n\r\n                if (currentStick[1] === 'l') {\r\n                    newLeft = parentWidth - newRight - newWidth;\r\n                } else {\r\n                    newRight = parentWidth - newLeft - newWidth;\r\n                }\r\n            } else {\r\n                newHeight = newWidth / aspectFactor;\r\n\r\n                if (currentStick[0] === 't') {\r\n                    newTop = parentHeight - newBottom - newHeight;\r\n                } else {\r\n                    newBottom = parentHeight - newTop - newHeight;\r\n                }\r\n            }\r\n\r\n            return { newLeft, newRight, newTop, newBottom };\r\n        },\r\n    },\r\n\r\n    computed: {\r\n        positionStyle() {\r\n            return {\r\n                top: this.top + 'px',\r\n                left: this.left + 'px',\r\n                zIndex: this.zIndex,\r\n            };\r\n        },\r\n\r\n        sizeStyle(){\r\n            return {\r\n                width: this.w == 'auto' ? 'auto' : this.width + 'px',\r\n                height: this.h == 'auto' ? 'auto' : this.height + 'px'\r\n            };\r\n        },\r\n\r\n        vdrStick() {\r\n            return (stick) => {\r\n                const stickStyle = {\r\n                    width: `${this.stickSize / this.parentScaleX}px`,\r\n                    height: `${this.stickSize / this.parentScaleY}px`,\r\n                };\r\n                stickStyle[styleMapping.y[stick[0]]] = `${this.stickSize / this.parentScaleX / -2}px`;\r\n                stickStyle[styleMapping.x[stick[1]]] = `${this.stickSize / this.parentScaleX / -2}px`;\r\n                return stickStyle;\r\n            };\r\n        },\r\n\r\n        width() {\r\n            return this.parentWidth - this.left - this.right;\r\n        },\r\n\r\n        height() {\r\n            return this.parentHeight - this.top - this.bottom;\r\n        },\r\n\r\n        rect() {\r\n            return {\r\n                left: Math.round(this.left),\r\n                top: Math.round(this.top),\r\n                width: Math.round(this.width),\r\n                height: Math.round(this.height),\r\n            };\r\n        },\r\n    },\r\n\r\n    watch: {\r\n        active(isActive) {\r\n            if (isActive) {\r\n                this.$emit('activated');\r\n            } else {\r\n                this.$emit('deactivated');\r\n            }\r\n        },\r\n\r\n        isActive: {\r\n            immediate: true,\r\n            handler(val) {\r\n                this.active = val;\r\n            },\r\n        },\r\n\r\n        z: {\r\n            immediate: true,\r\n            handler(val) {\r\n                if (val >= 0 || val === 'auto') {\r\n                    this.zIndex = val;\r\n                }\r\n            },\r\n        },\r\n\r\n        x: {\r\n            handler(newVal, oldVal) {\r\n                if (this.stickDrag || this.bodyDrag || (newVal === this.left)) {\r\n                    return;\r\n                }\r\n\r\n                const delta = oldVal - newVal;\r\n\r\n                this.bodyDown({ pageX: this.left, pageY: this.top });\r\n                this.bodyMove({ x: delta, y: 0 });\r\n\r\n                this.$nextTick(() => {\r\n                    this.bodyUp();\r\n                });\r\n            },\r\n        },\r\n\r\n        y: {\r\n            handler(newVal, oldVal) {\r\n                if (this.stickDrag || this.bodyDrag || (newVal === this.top)) {\r\n                    return;\r\n                }\r\n\r\n                const delta = oldVal - newVal;\r\n\r\n                this.bodyDown({ pageX: this.left, pageY: this.top });\r\n                this.bodyMove({ x: 0, y: delta });\r\n\r\n                this.$nextTick(() => {\r\n                    this.bodyUp();\r\n                });\r\n            },\r\n        },\r\n\r\n        w: {\r\n            handler(newVal, oldVal) {\r\n                if (this.stickDrag || this.bodyDrag || (newVal === this.width)) {\r\n                    return;\r\n                }\r\n\r\n                const stick = 'mr';\r\n                const delta = oldVal - newVal;\r\n\r\n                this.stickDown(stick, { pageX: this.right, pageY: this.top + (this.height / 2) }, true);\r\n                this.stickMove({ x: delta, y: 0 });\r\n\r\n                this.$nextTick(() => {\r\n                    this.stickUp();\r\n                });\r\n            },\r\n        },\r\n\r\n        h: {\r\n            handler(newVal, oldVal) {\r\n                if (this.stickDrag || this.bodyDrag || (newVal === this.height)) {\r\n                    return;\r\n                }\r\n\r\n                const stick = 'bm';\r\n                const delta = oldVal - newVal;\r\n\r\n                this.stickDown(stick, { pageX: this.left + (this.width / 2), pageY: this.bottom }, true);\r\n                this.stickMove({ x: 0, y: delta });\r\n\r\n                this.$nextTick(() => {\r\n                    this.stickUp();\r\n                });\r\n            },\r\n        },\r\n\r\n        parentW(val) {\r\n            this.right = val - this.width - this.left;\r\n            this.parentWidth = val;\r\n        },\r\n\r\n        parentH(val) {\r\n            this.bottom = val - this.height - this.top;\r\n            this.parentHeight = val;\r\n        },\r\n    },\r\n};\r\n","function normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier /* server only */, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {\r\n    if (typeof shadowMode !== 'boolean') {\r\n        createInjectorSSR = createInjector;\r\n        createInjector = shadowMode;\r\n        shadowMode = false;\r\n    }\r\n    // Vue.extend constructor export interop.\r\n    const options = typeof script === 'function' ? script.options : script;\r\n    // render functions\r\n    if (template && template.render) {\r\n        options.render = template.render;\r\n        options.staticRenderFns = template.staticRenderFns;\r\n        options._compiled = true;\r\n        // functional template\r\n        if (isFunctionalTemplate) {\r\n            options.functional = true;\r\n        }\r\n    }\r\n    // scopedId\r\n    if (scopeId) {\r\n        options._scopeId = scopeId;\r\n    }\r\n    let hook;\r\n    if (moduleIdentifier) {\r\n        // server build\r\n        hook = function (context) {\r\n            // 2.3 injection\r\n            context =\r\n                context || // cached call\r\n                    (this.$vnode && this.$vnode.ssrContext) || // stateful\r\n                    (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext); // functional\r\n            // 2.2 with runInNewContext: true\r\n            if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\r\n                context = __VUE_SSR_CONTEXT__;\r\n            }\r\n            // inject component styles\r\n            if (style) {\r\n                style.call(this, createInjectorSSR(context));\r\n            }\r\n            // register component module identifier for async chunk inference\r\n            if (context && context._registeredComponents) {\r\n                context._registeredComponents.add(moduleIdentifier);\r\n            }\r\n        };\r\n        // used by ssr in case component is cached and beforeCreate\r\n        // never gets called\r\n        options._ssrRegister = hook;\r\n    }\r\n    else if (style) {\r\n        hook = shadowMode\r\n            ? function (context) {\r\n                style.call(this, createInjectorShadow(context, this.$root.$options.shadowRoot));\r\n            }\r\n            : function (context) {\r\n                style.call(this, createInjector(context));\r\n            };\r\n    }\r\n    if (hook) {\r\n        if (options.functional) {\r\n            // register for functional component in vue file\r\n            const originalRender = options.render;\r\n            options.render = function renderWithStyleInjection(h, context) {\r\n                hook.call(context);\r\n                return originalRender(h, context);\r\n            };\r\n        }\r\n        else {\r\n            // inject component registration as beforeCreate hook\r\n            const existing = options.beforeCreate;\r\n            options.beforeCreate = existing ? [].concat(existing, hook) : [hook];\r\n        }\r\n    }\r\n    return script;\r\n}\n\nexport default normalizeComponent;\n//# sourceMappingURL=normalize-component.mjs.map\n","const isOldIE = typeof navigator !== 'undefined' &&\r\n    /msie [6-9]\\\\b/.test(navigator.userAgent.toLowerCase());\r\nfunction createInjector(context) {\r\n    return (id, style) => addStyle(id, style);\r\n}\r\nlet HEAD;\r\nconst styles = {};\r\nfunction addStyle(id, css) {\r\n    const group = isOldIE ? css.media || 'default' : id;\r\n    const style = styles[group] || (styles[group] = { ids: new Set(), styles: [] });\r\n    if (!style.ids.has(id)) {\r\n        style.ids.add(id);\r\n        let code = css.source;\r\n        if (css.map) {\r\n            // https://developer.chrome.com/devtools/docs/javascript-debugging\r\n            // this makes source maps inside style tags work properly in Chrome\r\n            code += '\\n/*# sourceURL=' + css.map.sources[0] + ' */';\r\n            // http://stackoverflow.com/a/26603875\r\n            code +=\r\n                '\\n/*# sourceMappingURL=data:application/json;base64,' +\r\n                    btoa(unescape(encodeURIComponent(JSON.stringify(css.map)))) +\r\n                    ' */';\r\n        }\r\n        if (!style.element) {\r\n            style.element = document.createElement('style');\r\n            style.element.type = 'text/css';\r\n            if (css.media)\r\n                style.element.setAttribute('media', css.media);\r\n            if (HEAD === undefined) {\r\n                HEAD = document.head || document.getElementsByTagName('head')[0];\r\n            }\r\n            HEAD.appendChild(style.element);\r\n        }\r\n        if ('styleSheet' in style.element) {\r\n            style.styles.push(code);\r\n            style.element.styleSheet.cssText = style.styles\r\n                .filter(Boolean)\r\n                .join('\\n');\r\n        }\r\n        else {\r\n            const index = style.ids.size - 1;\r\n            const textNode = document.createTextNode(code);\r\n            const nodes = style.element.childNodes;\r\n            if (nodes[index])\r\n                style.element.removeChild(nodes[index]);\r\n            if (nodes.length)\r\n                style.element.insertBefore(textNode, nodes[index]);\r\n            else\r\n                style.element.appendChild(textNode);\r\n        }\r\n    }\r\n}\n\nexport default createInjector;\n//# sourceMappingURL=browser.mjs.map\n","<template src=\"./vue-drag-resize.html\"></template>\r\n<script src=\"./vue-drag-resize.js\"></script>\r\n<style src=\"./vue-drag-resize.css\"></style>","/**\n * DragResize mixins\n *\n * @description Mixins for drag-resize components\n * @license YetiForce Public License 6.5\n * @author Tomasz Poradzewski <t.poradzewski@yetiforce.com>\n */\nexport const keepElementInWindow = {\n\tmethods: {\n\t\tkeepElementInWindow() {\n\t\t\tthis.correctCoordinates(this.coordinates)\n\t\t},\n\t},\n\tmounted() {\n\t\tthis.keepElementInWindow(this.coordinates)\n\t\twindow.addEventListener('resize', this.keepElementInWindow)\n\t},\n}\n","//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\r\nimport VueDragResize from '~/node_modules/vue-drag-resize/src/components/vue-drag-resize.vue'\r\nimport { keepElementInWindow } from '~/mixins/DragResize'\r\nexport default {\r\n\tname: 'YfDrag',\r\n\tmixins: [keepElementInWindow],\r\n\tcomponents: { VueDragResize },\r\n\tprops: {\r\n\t\tactive: {\r\n\t\t\ttype: Boolean,\r\n\t\t\trequired: false,\r\n\t\t\tdefault: true,\r\n\t\t},\r\n\t\tcoordinates: {\r\n\t\t\ttype: Object,\r\n\t\t\trequired: true,\r\n\t\t},\r\n\t\twidth: {\r\n\t\t\ttype: Number,\r\n\t\t\tdefault: 45,\r\n\t\t},\r\n\t\theight: {\r\n\t\t\ttype: Number,\r\n\t\t\tdefault: 42,\r\n\t\t},\r\n\t\tdragHandleClass: {\r\n\t\t\ttype: String,\r\n\t\t\trequired: false,\r\n\t\t},\r\n\t},\r\n\tmethods: {\r\n\t\tdrag(newRect, e) {\r\n\t\t\tthis.$emit('update:coordinates', {\r\n\t\t\t\ttop: newRect.top,\r\n\t\t\t\tleft: newRect.left,\r\n\t\t\t})\r\n\t\t},\r\n\t\tcorrectCoordinates(rect) {\r\n\t\t\tlet computedRect = Object.assign({}, rect)\r\n\t\t\tif (rect.left + this.width - this.width < 0) {\r\n\t\t\t\tcomputedRect.left = this.width - this.width\r\n\t\t\t} else if (this.width + rect.left > window.innerWidth) {\r\n\t\t\t\tcomputedRect.left = window.innerWidth - this.width\r\n\t\t\t}\r\n\t\t\tif (rect.top < 0) {\r\n\t\t\t\tcomputedRect.top = 0\r\n\t\t\t} else if (rect.top > window.innerHeight - this.height) {\r\n\t\t\t\tcomputedRect.top = window.innerHeight - this.height\r\n\t\t\t}\r\n\t\t\tthis.$emit('update:coordinates', computedRect)\r\n\t\t\tthis.$emit('dragstop', true)\r\n\t\t},\r\n\t},\r\n}\r\n","/**\n * Lodash (Custom Build) <https://lodash.com/>\n * Build: `lodash modularize exports=\"npm\" -o ./`\n * Copyright JS Foundation and other contributors <https://js.foundation/>\n * Released under MIT license <https://lodash.com/license>\n * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>\n * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n */\n\n/** Used as the size to enable large array optimizations. */\nvar LARGE_ARRAY_SIZE = 200;\n\n/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1,\n    COMPARE_UNORDERED_FLAG = 2;\n\n/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n    arrayTag = '[object Array]',\n    asyncTag = '[object AsyncFunction]',\n    boolTag = '[object Boolean]',\n    dateTag = '[object Date]',\n    errorTag = '[object Error]',\n    funcTag = '[object Function]',\n    genTag = '[object GeneratorFunction]',\n    mapTag = '[object Map]',\n    numberTag = '[object Number]',\n    nullTag = '[object Null]',\n    objectTag = '[object Object]',\n    promiseTag = '[object Promise]',\n    proxyTag = '[object Proxy]',\n    regexpTag = '[object RegExp]',\n    setTag = '[object Set]',\n    stringTag = '[object String]',\n    symbolTag = '[object Symbol]',\n    undefinedTag = '[object Undefined]',\n    weakMapTag = '[object WeakMap]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n    dataViewTag = '[object DataView]',\n    float32Tag = '[object Float32Array]',\n    float64Tag = '[object Float64Array]',\n    int8Tag = '[object Int8Array]',\n    int16Tag = '[object Int16Array]',\n    int32Tag = '[object Int32Array]',\n    uint8Tag = '[object Uint8Array]',\n    uint8ClampedTag = '[object Uint8ClampedArray]',\n    uint16Tag = '[object Uint16Array]',\n    uint32Tag = '[object Uint32Array]';\n\n/**\n * Used to match `RegExp`\n * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).\n */\nvar reRegExpChar = /[\\\\^$.*+?()[\\]{}|]/g;\n\n/** Used to detect host constructors (Safari). */\nvar reIsHostCtor = /^\\[object .+?Constructor\\]$/;\n\n/** Used to detect unsigned integer values. */\nvar reIsUint = /^(?:0|[1-9]\\d*)$/;\n\n/** Used to identify `toStringTag` values of typed arrays. */\nvar typedArrayTags = {};\ntypedArrayTags[float32Tag] = typedArrayTags[float64Tag] =\ntypedArrayTags[int8Tag] = typedArrayTags[int16Tag] =\ntypedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =\ntypedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =\ntypedArrayTags[uint32Tag] = true;\ntypedArrayTags[argsTag] = typedArrayTags[arrayTag] =\ntypedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =\ntypedArrayTags[dataViewTag] = typedArrayTags[dateTag] =\ntypedArrayTags[errorTag] = typedArrayTags[funcTag] =\ntypedArrayTags[mapTag] = typedArrayTags[numberTag] =\ntypedArrayTags[objectTag] = typedArrayTags[regexpTag] =\ntypedArrayTags[setTag] = typedArrayTags[stringTag] =\ntypedArrayTags[weakMapTag] = false;\n\n/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\n/** Detect free variable `exports`. */\nvar freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n/** Detect free variable `module`. */\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n\n/** Detect free variable `process` from Node.js. */\nvar freeProcess = moduleExports && freeGlobal.process;\n\n/** Used to access faster Node.js helpers. */\nvar nodeUtil = (function() {\n  try {\n    return freeProcess && freeProcess.binding && freeProcess.binding('util');\n  } catch (e) {}\n}());\n\n/* Node.js helper references. */\nvar nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;\n\n/**\n * A specialized version of `_.filter` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n */\nfunction arrayFilter(array, predicate) {\n  var index = -1,\n      length = array == null ? 0 : array.length,\n      resIndex = 0,\n      result = [];\n\n  while (++index < length) {\n    var value = array[index];\n    if (predicate(value, index, array)) {\n      result[resIndex++] = value;\n    }\n  }\n  return result;\n}\n\n/**\n * Appends the elements of `values` to `array`.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {Array} values The values to append.\n * @returns {Array} Returns `array`.\n */\nfunction arrayPush(array, values) {\n  var index = -1,\n      length = values.length,\n      offset = array.length;\n\n  while (++index < length) {\n    array[offset + index] = values[index];\n  }\n  return array;\n}\n\n/**\n * A specialized version of `_.some` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {boolean} Returns `true` if any element passes the predicate check,\n *  else `false`.\n */\nfunction arraySome(array, predicate) {\n  var index = -1,\n      length = array == null ? 0 : array.length;\n\n  while (++index < length) {\n    if (predicate(array[index], index, array)) {\n      return true;\n    }\n  }\n  return false;\n}\n\n/**\n * The base implementation of `_.times` without support for iteratee shorthands\n * or max array length checks.\n *\n * @private\n * @param {number} n The number of times to invoke `iteratee`.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the array of results.\n */\nfunction baseTimes(n, iteratee) {\n  var index = -1,\n      result = Array(n);\n\n  while (++index < n) {\n    result[index] = iteratee(index);\n  }\n  return result;\n}\n\n/**\n * The base implementation of `_.unary` without support for storing metadata.\n *\n * @private\n * @param {Function} func The function to cap arguments for.\n * @returns {Function} Returns the new capped function.\n */\nfunction baseUnary(func) {\n  return function(value) {\n    return func(value);\n  };\n}\n\n/**\n * Checks if a `cache` value for `key` exists.\n *\n * @private\n * @param {Object} cache The cache to query.\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction cacheHas(cache, key) {\n  return cache.has(key);\n}\n\n/**\n * Gets the value at `key` of `object`.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\nfunction getValue(object, key) {\n  return object == null ? undefined : object[key];\n}\n\n/**\n * Converts `map` to its key-value pairs.\n *\n * @private\n * @param {Object} map The map to convert.\n * @returns {Array} Returns the key-value pairs.\n */\nfunction mapToArray(map) {\n  var index = -1,\n      result = Array(map.size);\n\n  map.forEach(function(value, key) {\n    result[++index] = [key, value];\n  });\n  return result;\n}\n\n/**\n * Creates a unary function that invokes `func` with its argument transformed.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {Function} transform The argument transform.\n * @returns {Function} Returns the new function.\n */\nfunction overArg(func, transform) {\n  return function(arg) {\n    return func(transform(arg));\n  };\n}\n\n/**\n * Converts `set` to an array of its values.\n *\n * @private\n * @param {Object} set The set to convert.\n * @returns {Array} Returns the values.\n */\nfunction setToArray(set) {\n  var index = -1,\n      result = Array(set.size);\n\n  set.forEach(function(value) {\n    result[++index] = value;\n  });\n  return result;\n}\n\n/** Used for built-in method references. */\nvar arrayProto = Array.prototype,\n    funcProto = Function.prototype,\n    objectProto = Object.prototype;\n\n/** Used to detect overreaching core-js shims. */\nvar coreJsData = root['__core-js_shared__'];\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Used to detect methods masquerading as native. */\nvar maskSrcKey = (function() {\n  var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');\n  return uid ? ('Symbol(src)_1.' + uid) : '';\n}());\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/** Used to detect if a method is native. */\nvar reIsNative = RegExp('^' +\n  funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\\\$&')\n  .replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, '$1.*?') + '$'\n);\n\n/** Built-in value references. */\nvar Buffer = moduleExports ? root.Buffer : undefined,\n    Symbol = root.Symbol,\n    Uint8Array = root.Uint8Array,\n    propertyIsEnumerable = objectProto.propertyIsEnumerable,\n    splice = arrayProto.splice,\n    symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeGetSymbols = Object.getOwnPropertySymbols,\n    nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined,\n    nativeKeys = overArg(Object.keys, Object);\n\n/* Built-in method references that are verified to be native. */\nvar DataView = getNative(root, 'DataView'),\n    Map = getNative(root, 'Map'),\n    Promise = getNative(root, 'Promise'),\n    Set = getNative(root, 'Set'),\n    WeakMap = getNative(root, 'WeakMap'),\n    nativeCreate = getNative(Object, 'create');\n\n/** Used to detect maps, sets, and weakmaps. */\nvar dataViewCtorString = toSource(DataView),\n    mapCtorString = toSource(Map),\n    promiseCtorString = toSource(Promise),\n    setCtorString = toSource(Set),\n    weakMapCtorString = toSource(WeakMap);\n\n/** Used to convert symbols to primitives and strings. */\nvar symbolProto = Symbol ? Symbol.prototype : undefined,\n    symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;\n\n/**\n * Creates a hash object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction Hash(entries) {\n  var index = -1,\n      length = entries == null ? 0 : entries.length;\n\n  this.clear();\n  while (++index < length) {\n    var entry = entries[index];\n    this.set(entry[0], entry[1]);\n  }\n}\n\n/**\n * Removes all key-value entries from the hash.\n *\n * @private\n * @name clear\n * @memberOf Hash\n */\nfunction hashClear() {\n  this.__data__ = nativeCreate ? nativeCreate(null) : {};\n  this.size = 0;\n}\n\n/**\n * Removes `key` and its value from the hash.\n *\n * @private\n * @name delete\n * @memberOf Hash\n * @param {Object} hash The hash to modify.\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction hashDelete(key) {\n  var result = this.has(key) && delete this.__data__[key];\n  this.size -= result ? 1 : 0;\n  return result;\n}\n\n/**\n * Gets the hash value for `key`.\n *\n * @private\n * @name get\n * @memberOf Hash\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction hashGet(key) {\n  var data = this.__data__;\n  if (nativeCreate) {\n    var result = data[key];\n    return result === HASH_UNDEFINED ? undefined : result;\n  }\n  return hasOwnProperty.call(data, key) ? data[key] : undefined;\n}\n\n/**\n * Checks if a hash value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Hash\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction hashHas(key) {\n  var data = this.__data__;\n  return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);\n}\n\n/**\n * Sets the hash `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Hash\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the hash instance.\n */\nfunction hashSet(key, value) {\n  var data = this.__data__;\n  this.size += this.has(key) ? 0 : 1;\n  data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;\n  return this;\n}\n\n// Add methods to `Hash`.\nHash.prototype.clear = hashClear;\nHash.prototype['delete'] = hashDelete;\nHash.prototype.get = hashGet;\nHash.prototype.has = hashHas;\nHash.prototype.set = hashSet;\n\n/**\n * Creates an list cache object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction ListCache(entries) {\n  var index = -1,\n      length = entries == null ? 0 : entries.length;\n\n  this.clear();\n  while (++index < length) {\n    var entry = entries[index];\n    this.set(entry[0], entry[1]);\n  }\n}\n\n/**\n * Removes all key-value entries from the list cache.\n *\n * @private\n * @name clear\n * @memberOf ListCache\n */\nfunction listCacheClear() {\n  this.__data__ = [];\n  this.size = 0;\n}\n\n/**\n * Removes `key` and its value from the list cache.\n *\n * @private\n * @name delete\n * @memberOf ListCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction listCacheDelete(key) {\n  var data = this.__data__,\n      index = assocIndexOf(data, key);\n\n  if (index < 0) {\n    return false;\n  }\n  var lastIndex = data.length - 1;\n  if (index == lastIndex) {\n    data.pop();\n  } else {\n    splice.call(data, index, 1);\n  }\n  --this.size;\n  return true;\n}\n\n/**\n * Gets the list cache value for `key`.\n *\n * @private\n * @name get\n * @memberOf ListCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction listCacheGet(key) {\n  var data = this.__data__,\n      index = assocIndexOf(data, key);\n\n  return index < 0 ? undefined : data[index][1];\n}\n\n/**\n * Checks if a list cache value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf ListCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction listCacheHas(key) {\n  return assocIndexOf(this.__data__, key) > -1;\n}\n\n/**\n * Sets the list cache `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf ListCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the list cache instance.\n */\nfunction listCacheSet(key, value) {\n  var data = this.__data__,\n      index = assocIndexOf(data, key);\n\n  if (index < 0) {\n    ++this.size;\n    data.push([key, value]);\n  } else {\n    data[index][1] = value;\n  }\n  return this;\n}\n\n// Add methods to `ListCache`.\nListCache.prototype.clear = listCacheClear;\nListCache.prototype['delete'] = listCacheDelete;\nListCache.prototype.get = listCacheGet;\nListCache.prototype.has = listCacheHas;\nListCache.prototype.set = listCacheSet;\n\n/**\n * Creates a map cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction MapCache(entries) {\n  var index = -1,\n      length = entries == null ? 0 : entries.length;\n\n  this.clear();\n  while (++index < length) {\n    var entry = entries[index];\n    this.set(entry[0], entry[1]);\n  }\n}\n\n/**\n * Removes all key-value entries from the map.\n *\n * @private\n * @name clear\n * @memberOf MapCache\n */\nfunction mapCacheClear() {\n  this.size = 0;\n  this.__data__ = {\n    'hash': new Hash,\n    'map': new (Map || ListCache),\n    'string': new Hash\n  };\n}\n\n/**\n * Removes `key` and its value from the map.\n *\n * @private\n * @name delete\n * @memberOf MapCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction mapCacheDelete(key) {\n  var result = getMapData(this, key)['delete'](key);\n  this.size -= result ? 1 : 0;\n  return result;\n}\n\n/**\n * Gets the map value for `key`.\n *\n * @private\n * @name get\n * @memberOf MapCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction mapCacheGet(key) {\n  return getMapData(this, key).get(key);\n}\n\n/**\n * Checks if a map value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf MapCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction mapCacheHas(key) {\n  return getMapData(this, key).has(key);\n}\n\n/**\n * Sets the map `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf MapCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the map cache instance.\n */\nfunction mapCacheSet(key, value) {\n  var data = getMapData(this, key),\n      size = data.size;\n\n  data.set(key, value);\n  this.size += data.size == size ? 0 : 1;\n  return this;\n}\n\n// Add methods to `MapCache`.\nMapCache.prototype.clear = mapCacheClear;\nMapCache.prototype['delete'] = mapCacheDelete;\nMapCache.prototype.get = mapCacheGet;\nMapCache.prototype.has = mapCacheHas;\nMapCache.prototype.set = mapCacheSet;\n\n/**\n *\n * Creates an array cache object to store unique values.\n *\n * @private\n * @constructor\n * @param {Array} [values] The values to cache.\n */\nfunction SetCache(values) {\n  var index = -1,\n      length = values == null ? 0 : values.length;\n\n  this.__data__ = new MapCache;\n  while (++index < length) {\n    this.add(values[index]);\n  }\n}\n\n/**\n * Adds `value` to the array cache.\n *\n * @private\n * @name add\n * @memberOf SetCache\n * @alias push\n * @param {*} value The value to cache.\n * @returns {Object} Returns the cache instance.\n */\nfunction setCacheAdd(value) {\n  this.__data__.set(value, HASH_UNDEFINED);\n  return this;\n}\n\n/**\n * Checks if `value` is in the array cache.\n *\n * @private\n * @name has\n * @memberOf SetCache\n * @param {*} value The value to search for.\n * @returns {number} Returns `true` if `value` is found, else `false`.\n */\nfunction setCacheHas(value) {\n  return this.__data__.has(value);\n}\n\n// Add methods to `SetCache`.\nSetCache.prototype.add = SetCache.prototype.push = setCacheAdd;\nSetCache.prototype.has = setCacheHas;\n\n/**\n * Creates a stack cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction Stack(entries) {\n  var data = this.__data__ = new ListCache(entries);\n  this.size = data.size;\n}\n\n/**\n * Removes all key-value entries from the stack.\n *\n * @private\n * @name clear\n * @memberOf Stack\n */\nfunction stackClear() {\n  this.__data__ = new ListCache;\n  this.size = 0;\n}\n\n/**\n * Removes `key` and its value from the stack.\n *\n * @private\n * @name delete\n * @memberOf Stack\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction stackDelete(key) {\n  var data = this.__data__,\n      result = data['delete'](key);\n\n  this.size = data.size;\n  return result;\n}\n\n/**\n * Gets the stack value for `key`.\n *\n * @private\n * @name get\n * @memberOf Stack\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction stackGet(key) {\n  return this.__data__.get(key);\n}\n\n/**\n * Checks if a stack value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Stack\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction stackHas(key) {\n  return this.__data__.has(key);\n}\n\n/**\n * Sets the stack `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Stack\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the stack cache instance.\n */\nfunction stackSet(key, value) {\n  var data = this.__data__;\n  if (data instanceof ListCache) {\n    var pairs = data.__data__;\n    if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {\n      pairs.push([key, value]);\n      this.size = ++data.size;\n      return this;\n    }\n    data = this.__data__ = new MapCache(pairs);\n  }\n  data.set(key, value);\n  this.size = data.size;\n  return this;\n}\n\n// Add methods to `Stack`.\nStack.prototype.clear = stackClear;\nStack.prototype['delete'] = stackDelete;\nStack.prototype.get = stackGet;\nStack.prototype.has = stackHas;\nStack.prototype.set = stackSet;\n\n/**\n * Creates an array of the enumerable property names of the array-like `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @param {boolean} inherited Specify returning inherited property names.\n * @returns {Array} Returns the array of property names.\n */\nfunction arrayLikeKeys(value, inherited) {\n  var isArr = isArray(value),\n      isArg = !isArr && isArguments(value),\n      isBuff = !isArr && !isArg && isBuffer(value),\n      isType = !isArr && !isArg && !isBuff && isTypedArray(value),\n      skipIndexes = isArr || isArg || isBuff || isType,\n      result = skipIndexes ? baseTimes(value.length, String) : [],\n      length = result.length;\n\n  for (var key in value) {\n    if ((inherited || hasOwnProperty.call(value, key)) &&\n        !(skipIndexes && (\n           // Safari 9 has enumerable `arguments.length` in strict mode.\n           key == 'length' ||\n           // Node.js 0.10 has enumerable non-index properties on buffers.\n           (isBuff && (key == 'offset' || key == 'parent')) ||\n           // PhantomJS 2 has enumerable non-index properties on typed arrays.\n           (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||\n           // Skip index properties.\n           isIndex(key, length)\n        ))) {\n      result.push(key);\n    }\n  }\n  return result;\n}\n\n/**\n * Gets the index at which the `key` is found in `array` of key-value pairs.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} key The key to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction assocIndexOf(array, key) {\n  var length = array.length;\n  while (length--) {\n    if (eq(array[length][0], key)) {\n      return length;\n    }\n  }\n  return -1;\n}\n\n/**\n * The base implementation of `getAllKeys` and `getAllKeysIn` which uses\n * `keysFunc` and `symbolsFunc` to get the enumerable property names and\n * symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @param {Function} symbolsFunc The function to get the symbols of `object`.\n * @returns {Array} Returns the array of property names and symbols.\n */\nfunction baseGetAllKeys(object, keysFunc, symbolsFunc) {\n  var result = keysFunc(object);\n  return isArray(object) ? result : arrayPush(result, symbolsFunc(object));\n}\n\n/**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nfunction baseGetTag(value) {\n  if (value == null) {\n    return value === undefined ? undefinedTag : nullTag;\n  }\n  return (symToStringTag && symToStringTag in Object(value))\n    ? getRawTag(value)\n    : objectToString(value);\n}\n\n/**\n * The base implementation of `_.isArguments`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n */\nfunction baseIsArguments(value) {\n  return isObjectLike(value) && baseGetTag(value) == argsTag;\n}\n\n/**\n * The base implementation of `_.isEqual` which supports partial comparisons\n * and tracks traversed objects.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @param {boolean} bitmask The bitmask flags.\n *  1 - Unordered comparison\n *  2 - Partial comparison\n * @param {Function} [customizer] The function to customize comparisons.\n * @param {Object} [stack] Tracks traversed `value` and `other` objects.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n */\nfunction baseIsEqual(value, other, bitmask, customizer, stack) {\n  if (value === other) {\n    return true;\n  }\n  if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {\n    return value !== value && other !== other;\n  }\n  return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);\n}\n\n/**\n * A specialized version of `baseIsEqual` for arrays and objects which performs\n * deep comparisons and tracks traversed objects enabling objects with circular\n * references to be compared.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} [stack] Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\nfunction baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {\n  var objIsArr = isArray(object),\n      othIsArr = isArray(other),\n      objTag = objIsArr ? arrayTag : getTag(object),\n      othTag = othIsArr ? arrayTag : getTag(other);\n\n  objTag = objTag == argsTag ? objectTag : objTag;\n  othTag = othTag == argsTag ? objectTag : othTag;\n\n  var objIsObj = objTag == objectTag,\n      othIsObj = othTag == objectTag,\n      isSameTag = objTag == othTag;\n\n  if (isSameTag && isBuffer(object)) {\n    if (!isBuffer(other)) {\n      return false;\n    }\n    objIsArr = true;\n    objIsObj = false;\n  }\n  if (isSameTag && !objIsObj) {\n    stack || (stack = new Stack);\n    return (objIsArr || isTypedArray(object))\n      ? equalArrays(object, other, bitmask, customizer, equalFunc, stack)\n      : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);\n  }\n  if (!(bitmask & COMPARE_PARTIAL_FLAG)) {\n    var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),\n        othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');\n\n    if (objIsWrapped || othIsWrapped) {\n      var objUnwrapped = objIsWrapped ? object.value() : object,\n          othUnwrapped = othIsWrapped ? other.value() : other;\n\n      stack || (stack = new Stack);\n      return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);\n    }\n  }\n  if (!isSameTag) {\n    return false;\n  }\n  stack || (stack = new Stack);\n  return equalObjects(object, other, bitmask, customizer, equalFunc, stack);\n}\n\n/**\n * The base implementation of `_.isNative` without bad shim checks.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function,\n *  else `false`.\n */\nfunction baseIsNative(value) {\n  if (!isObject(value) || isMasked(value)) {\n    return false;\n  }\n  var pattern = isFunction(value) ? reIsNative : reIsHostCtor;\n  return pattern.test(toSource(value));\n}\n\n/**\n * The base implementation of `_.isTypedArray` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n */\nfunction baseIsTypedArray(value) {\n  return isObjectLike(value) &&\n    isLength(value.length) && !!typedArrayTags[baseGetTag(value)];\n}\n\n/**\n * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction baseKeys(object) {\n  if (!isPrototype(object)) {\n    return nativeKeys(object);\n  }\n  var result = [];\n  for (var key in Object(object)) {\n    if (hasOwnProperty.call(object, key) && key != 'constructor') {\n      result.push(key);\n    }\n  }\n  return result;\n}\n\n/**\n * A specialized version of `baseIsEqualDeep` for arrays with support for\n * partial deep comparisons.\n *\n * @private\n * @param {Array} array The array to compare.\n * @param {Array} other The other array to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `array` and `other` objects.\n * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.\n */\nfunction equalArrays(array, other, bitmask, customizer, equalFunc, stack) {\n  var isPartial = bitmask & COMPARE_PARTIAL_FLAG,\n      arrLength = array.length,\n      othLength = other.length;\n\n  if (arrLength != othLength && !(isPartial && othLength > arrLength)) {\n    return false;\n  }\n  // Assume cyclic values are equal.\n  var stacked = stack.get(array);\n  if (stacked && stack.get(other)) {\n    return stacked == other;\n  }\n  var index = -1,\n      result = true,\n      seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined;\n\n  stack.set(array, other);\n  stack.set(other, array);\n\n  // Ignore non-index properties.\n  while (++index < arrLength) {\n    var arrValue = array[index],\n        othValue = other[index];\n\n    if (customizer) {\n      var compared = isPartial\n        ? customizer(othValue, arrValue, index, other, array, stack)\n        : customizer(arrValue, othValue, index, array, other, stack);\n    }\n    if (compared !== undefined) {\n      if (compared) {\n        continue;\n      }\n      result = false;\n      break;\n    }\n    // Recursively compare arrays (susceptible to call stack limits).\n    if (seen) {\n      if (!arraySome(other, function(othValue, othIndex) {\n            if (!cacheHas(seen, othIndex) &&\n                (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {\n              return seen.push(othIndex);\n            }\n          })) {\n        result = false;\n        break;\n      }\n    } else if (!(\n          arrValue === othValue ||\n            equalFunc(arrValue, othValue, bitmask, customizer, stack)\n        )) {\n      result = false;\n      break;\n    }\n  }\n  stack['delete'](array);\n  stack['delete'](other);\n  return result;\n}\n\n/**\n * A specialized version of `baseIsEqualDeep` for comparing objects of\n * the same `toStringTag`.\n *\n * **Note:** This function only supports comparing values with tags of\n * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {string} tag The `toStringTag` of the objects to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\nfunction equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {\n  switch (tag) {\n    case dataViewTag:\n      if ((object.byteLength != other.byteLength) ||\n          (object.byteOffset != other.byteOffset)) {\n        return false;\n      }\n      object = object.buffer;\n      other = other.buffer;\n\n    case arrayBufferTag:\n      if ((object.byteLength != other.byteLength) ||\n          !equalFunc(new Uint8Array(object), new Uint8Array(other))) {\n        return false;\n      }\n      return true;\n\n    case boolTag:\n    case dateTag:\n    case numberTag:\n      // Coerce booleans to `1` or `0` and dates to milliseconds.\n      // Invalid dates are coerced to `NaN`.\n      return eq(+object, +other);\n\n    case errorTag:\n      return object.name == other.name && object.message == other.message;\n\n    case regexpTag:\n    case stringTag:\n      // Coerce regexes to strings and treat strings, primitives and objects,\n      // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring\n      // for more details.\n      return object == (other + '');\n\n    case mapTag:\n      var convert = mapToArray;\n\n    case setTag:\n      var isPartial = bitmask & COMPARE_PARTIAL_FLAG;\n      convert || (convert = setToArray);\n\n      if (object.size != other.size && !isPartial) {\n        return false;\n      }\n      // Assume cyclic values are equal.\n      var stacked = stack.get(object);\n      if (stacked) {\n        return stacked == other;\n      }\n      bitmask |= COMPARE_UNORDERED_FLAG;\n\n      // Recursively compare objects (susceptible to call stack limits).\n      stack.set(object, other);\n      var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);\n      stack['delete'](object);\n      return result;\n\n    case symbolTag:\n      if (symbolValueOf) {\n        return symbolValueOf.call(object) == symbolValueOf.call(other);\n      }\n  }\n  return false;\n}\n\n/**\n * A specialized version of `baseIsEqualDeep` for objects with support for\n * partial deep comparisons.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\nfunction equalObjects(object, other, bitmask, customizer, equalFunc, stack) {\n  var isPartial = bitmask & COMPARE_PARTIAL_FLAG,\n      objProps = getAllKeys(object),\n      objLength = objProps.length,\n      othProps = getAllKeys(other),\n      othLength = othProps.length;\n\n  if (objLength != othLength && !isPartial) {\n    return false;\n  }\n  var index = objLength;\n  while (index--) {\n    var key = objProps[index];\n    if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {\n      return false;\n    }\n  }\n  // Assume cyclic values are equal.\n  var stacked = stack.get(object);\n  if (stacked && stack.get(other)) {\n    return stacked == other;\n  }\n  var result = true;\n  stack.set(object, other);\n  stack.set(other, object);\n\n  var skipCtor = isPartial;\n  while (++index < objLength) {\n    key = objProps[index];\n    var objValue = object[key],\n        othValue = other[key];\n\n    if (customizer) {\n      var compared = isPartial\n        ? customizer(othValue, objValue, key, other, object, stack)\n        : customizer(objValue, othValue, key, object, other, stack);\n    }\n    // Recursively compare objects (susceptible to call stack limits).\n    if (!(compared === undefined\n          ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))\n          : compared\n        )) {\n      result = false;\n      break;\n    }\n    skipCtor || (skipCtor = key == 'constructor');\n  }\n  if (result && !skipCtor) {\n    var objCtor = object.constructor,\n        othCtor = other.constructor;\n\n    // Non `Object` object instances with different constructors are not equal.\n    if (objCtor != othCtor &&\n        ('constructor' in object && 'constructor' in other) &&\n        !(typeof objCtor == 'function' && objCtor instanceof objCtor &&\n          typeof othCtor == 'function' && othCtor instanceof othCtor)) {\n      result = false;\n    }\n  }\n  stack['delete'](object);\n  stack['delete'](other);\n  return result;\n}\n\n/**\n * Creates an array of own enumerable property names and symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names and symbols.\n */\nfunction getAllKeys(object) {\n  return baseGetAllKeys(object, keys, getSymbols);\n}\n\n/**\n * Gets the data for `map`.\n *\n * @private\n * @param {Object} map The map to query.\n * @param {string} key The reference key.\n * @returns {*} Returns the map data.\n */\nfunction getMapData(map, key) {\n  var data = map.__data__;\n  return isKeyable(key)\n    ? data[typeof key == 'string' ? 'string' : 'hash']\n    : data.map;\n}\n\n/**\n * Gets the native function at `key` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the method to get.\n * @returns {*} Returns the function if it's native, else `undefined`.\n */\nfunction getNative(object, key) {\n  var value = getValue(object, key);\n  return baseIsNative(value) ? value : undefined;\n}\n\n/**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\nfunction getRawTag(value) {\n  var isOwn = hasOwnProperty.call(value, symToStringTag),\n      tag = value[symToStringTag];\n\n  try {\n    value[symToStringTag] = undefined;\n    var unmasked = true;\n  } catch (e) {}\n\n  var result = nativeObjectToString.call(value);\n  if (unmasked) {\n    if (isOwn) {\n      value[symToStringTag] = tag;\n    } else {\n      delete value[symToStringTag];\n    }\n  }\n  return result;\n}\n\n/**\n * Creates an array of the own enumerable symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of symbols.\n */\nvar getSymbols = !nativeGetSymbols ? stubArray : function(object) {\n  if (object == null) {\n    return [];\n  }\n  object = Object(object);\n  return arrayFilter(nativeGetSymbols(object), function(symbol) {\n    return propertyIsEnumerable.call(object, symbol);\n  });\n};\n\n/**\n * Gets the `toStringTag` of `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nvar getTag = baseGetTag;\n\n// Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.\nif ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||\n    (Map && getTag(new Map) != mapTag) ||\n    (Promise && getTag(Promise.resolve()) != promiseTag) ||\n    (Set && getTag(new Set) != setTag) ||\n    (WeakMap && getTag(new WeakMap) != weakMapTag)) {\n  getTag = function(value) {\n    var result = baseGetTag(value),\n        Ctor = result == objectTag ? value.constructor : undefined,\n        ctorString = Ctor ? toSource(Ctor) : '';\n\n    if (ctorString) {\n      switch (ctorString) {\n        case dataViewCtorString: return dataViewTag;\n        case mapCtorString: return mapTag;\n        case promiseCtorString: return promiseTag;\n        case setCtorString: return setTag;\n        case weakMapCtorString: return weakMapTag;\n      }\n    }\n    return result;\n  };\n}\n\n/**\n * Checks if `value` is a valid array-like index.\n *\n * @private\n * @param {*} value The value to check.\n * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.\n * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.\n */\nfunction isIndex(value, length) {\n  length = length == null ? MAX_SAFE_INTEGER : length;\n  return !!length &&\n    (typeof value == 'number' || reIsUint.test(value)) &&\n    (value > -1 && value % 1 == 0 && value < length);\n}\n\n/**\n * Checks if `value` is suitable for use as unique object key.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is suitable, else `false`.\n */\nfunction isKeyable(value) {\n  var type = typeof value;\n  return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')\n    ? (value !== '__proto__')\n    : (value === null);\n}\n\n/**\n * Checks if `func` has its source masked.\n *\n * @private\n * @param {Function} func The function to check.\n * @returns {boolean} Returns `true` if `func` is masked, else `false`.\n */\nfunction isMasked(func) {\n  return !!maskSrcKey && (maskSrcKey in func);\n}\n\n/**\n * Checks if `value` is likely a prototype object.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.\n */\nfunction isPrototype(value) {\n  var Ctor = value && value.constructor,\n      proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;\n\n  return value === proto;\n}\n\n/**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\nfunction objectToString(value) {\n  return nativeObjectToString.call(value);\n}\n\n/**\n * Converts `func` to its source code.\n *\n * @private\n * @param {Function} func The function to convert.\n * @returns {string} Returns the source code.\n */\nfunction toSource(func) {\n  if (func != null) {\n    try {\n      return funcToString.call(func);\n    } catch (e) {}\n    try {\n      return (func + '');\n    } catch (e) {}\n  }\n  return '';\n}\n\n/**\n * Performs a\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * comparison between two values to determine if they are equivalent.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.eq(object, object);\n * // => true\n *\n * _.eq(object, other);\n * // => false\n *\n * _.eq('a', 'a');\n * // => true\n *\n * _.eq('a', Object('a'));\n * // => false\n *\n * _.eq(NaN, NaN);\n * // => true\n */\nfunction eq(value, other) {\n  return value === other || (value !== value && other !== other);\n}\n\n/**\n * Checks if `value` is likely an `arguments` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n *  else `false`.\n * @example\n *\n * _.isArguments(function() { return arguments; }());\n * // => true\n *\n * _.isArguments([1, 2, 3]);\n * // => false\n */\nvar isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {\n  return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&\n    !propertyIsEnumerable.call(value, 'callee');\n};\n\n/**\n * Checks if `value` is classified as an `Array` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array, else `false`.\n * @example\n *\n * _.isArray([1, 2, 3]);\n * // => true\n *\n * _.isArray(document.body.children);\n * // => false\n *\n * _.isArray('abc');\n * // => false\n *\n * _.isArray(_.noop);\n * // => false\n */\nvar isArray = Array.isArray;\n\n/**\n * Checks if `value` is array-like. A value is considered array-like if it's\n * not a function and has a `value.length` that's an integer greater than or\n * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is array-like, else `false`.\n * @example\n *\n * _.isArrayLike([1, 2, 3]);\n * // => true\n *\n * _.isArrayLike(document.body.children);\n * // => true\n *\n * _.isArrayLike('abc');\n * // => true\n *\n * _.isArrayLike(_.noop);\n * // => false\n */\nfunction isArrayLike(value) {\n  return value != null && isLength(value.length) && !isFunction(value);\n}\n\n/**\n * Checks if `value` is a buffer.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.\n * @example\n *\n * _.isBuffer(new Buffer(2));\n * // => true\n *\n * _.isBuffer(new Uint8Array(2));\n * // => false\n */\nvar isBuffer = nativeIsBuffer || stubFalse;\n\n/**\n * Performs a deep comparison between two values to determine if they are\n * equivalent.\n *\n * **Note:** This method supports comparing arrays, array buffers, booleans,\n * date objects, error objects, maps, numbers, `Object` objects, regexes,\n * sets, strings, symbols, and typed arrays. `Object` objects are compared\n * by their own, not inherited, enumerable properties. Functions and DOM\n * nodes are compared by strict equality, i.e. `===`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.isEqual(object, other);\n * // => true\n *\n * object === other;\n * // => false\n */\nfunction isEqual(value, other) {\n  return baseIsEqual(value, other);\n}\n\n/**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a function, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\nfunction isFunction(value) {\n  if (!isObject(value)) {\n    return false;\n  }\n  // The use of `Object#toString` avoids issues with the `typeof` operator\n  // in Safari 9 which returns 'object' for typed arrays and other constructors.\n  var tag = baseGetTag(value);\n  return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;\n}\n\n/**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This method is loosely based on\n * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n * @example\n *\n * _.isLength(3);\n * // => true\n *\n * _.isLength(Number.MIN_VALUE);\n * // => false\n *\n * _.isLength(Infinity);\n * // => false\n *\n * _.isLength('3');\n * // => false\n */\nfunction isLength(value) {\n  return typeof value == 'number' &&\n    value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n}\n\n/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n  var type = typeof value;\n  return value != null && (type == 'object' || type == 'function');\n}\n\n/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n  return value != null && typeof value == 'object';\n}\n\n/**\n * Checks if `value` is classified as a typed array.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n * @example\n *\n * _.isTypedArray(new Uint8Array);\n * // => true\n *\n * _.isTypedArray([]);\n * // => false\n */\nvar isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;\n\n/**\n * Creates an array of the own enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects. See the\n * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * for more details.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n *   this.a = 1;\n *   this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keys(new Foo);\n * // => ['a', 'b'] (iteration order is not guaranteed)\n *\n * _.keys('hi');\n * // => ['0', '1']\n */\nfunction keys(object) {\n  return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);\n}\n\n/**\n * This method returns a new empty array.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {Array} Returns the new empty array.\n * @example\n *\n * var arrays = _.times(2, _.stubArray);\n *\n * console.log(arrays);\n * // => [[], []]\n *\n * console.log(arrays[0] === arrays[1]);\n * // => false\n */\nfunction stubArray() {\n  return [];\n}\n\n/**\n * This method returns `false`.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {boolean} Returns `false`.\n * @example\n *\n * _.times(2, _.stubFalse);\n * // => [false, false]\n */\nfunction stubFalse() {\n  return false;\n}\n\nmodule.exports = isEqual;\n","export default (typeof global !== \"undefined\" ? global :\n            typeof self !== \"undefined\" ? self :\n            typeof window !== \"undefined\" ? window : {});\n","// shim for using process in browser\n// based off https://github.com/defunctzombie/node-process/blob/master/browser.js\n\nfunction defaultSetTimout() {\n    throw new Error('setTimeout has not been defined');\n}\nfunction defaultClearTimeout () {\n    throw new Error('clearTimeout has not been defined');\n}\nvar cachedSetTimeout = defaultSetTimout;\nvar cachedClearTimeout = defaultClearTimeout;\nif (typeof global.setTimeout === 'function') {\n    cachedSetTimeout = setTimeout;\n}\nif (typeof global.clearTimeout === 'function') {\n    cachedClearTimeout = clearTimeout;\n}\n\nfunction runTimeout(fun) {\n    if (cachedSetTimeout === setTimeout) {\n        //normal enviroments in sane situations\n        return setTimeout(fun, 0);\n    }\n    // if setTimeout wasn't available but was latter defined\n    if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {\n        cachedSetTimeout = setTimeout;\n        return setTimeout(fun, 0);\n    }\n    try {\n        // when when somebody has screwed with setTimeout but no I.E. maddness\n        return cachedSetTimeout(fun, 0);\n    } catch(e){\n        try {\n            // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n            return cachedSetTimeout.call(null, fun, 0);\n        } catch(e){\n            // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error\n            return cachedSetTimeout.call(this, fun, 0);\n        }\n    }\n\n\n}\nfunction runClearTimeout(marker) {\n    if (cachedClearTimeout === clearTimeout) {\n        //normal enviroments in sane situations\n        return clearTimeout(marker);\n    }\n    // if clearTimeout wasn't available but was latter defined\n    if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {\n        cachedClearTimeout = clearTimeout;\n        return clearTimeout(marker);\n    }\n    try {\n        // when when somebody has screwed with setTimeout but no I.E. maddness\n        return cachedClearTimeout(marker);\n    } catch (e){\n        try {\n            // When we are in I.E. but the script has been evaled so I.E. doesn't  trust the global object when called normally\n            return cachedClearTimeout.call(null, marker);\n        } catch (e){\n            // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.\n            // Some versions of I.E. have different rules for clearTimeout vs setTimeout\n            return cachedClearTimeout.call(this, marker);\n        }\n    }\n\n\n\n}\nvar queue = [];\nvar draining = false;\nvar currentQueue;\nvar queueIndex = -1;\n\nfunction cleanUpNextTick() {\n    if (!draining || !currentQueue) {\n        return;\n    }\n    draining = false;\n    if (currentQueue.length) {\n        queue = currentQueue.concat(queue);\n    } else {\n        queueIndex = -1;\n    }\n    if (queue.length) {\n        drainQueue();\n    }\n}\n\nfunction drainQueue() {\n    if (draining) {\n        return;\n    }\n    var timeout = runTimeout(cleanUpNextTick);\n    draining = true;\n\n    var len = queue.length;\n    while(len) {\n        currentQueue = queue;\n        queue = [];\n        while (++queueIndex < len) {\n            if (currentQueue) {\n                currentQueue[queueIndex].run();\n            }\n        }\n        queueIndex = -1;\n        len = queue.length;\n    }\n    currentQueue = null;\n    draining = false;\n    runClearTimeout(timeout);\n}\nexport function nextTick(fun) {\n    var args = new Array(arguments.length - 1);\n    if (arguments.length > 1) {\n        for (var i = 1; i < arguments.length; i++) {\n            args[i - 1] = arguments[i];\n        }\n    }\n    queue.push(new Item(fun, args));\n    if (queue.length === 1 && !draining) {\n        runTimeout(drainQueue);\n    }\n}\n// v8 likes predictible objects\nfunction Item(fun, array) {\n    this.fun = fun;\n    this.array = array;\n}\nItem.prototype.run = function () {\n    this.fun.apply(null, this.array);\n};\nexport var title = 'browser';\nexport var platform = 'browser';\nexport var browser = true;\nexport var env = {};\nexport var argv = [];\nexport var version = ''; // empty string to avoid regexp issues\nexport var versions = {};\nexport var release = {};\nexport var config = {};\n\nfunction noop() {}\n\nexport var on = noop;\nexport var addListener = noop;\nexport var once = noop;\nexport var off = noop;\nexport var removeListener = noop;\nexport var removeAllListeners = noop;\nexport var emit = noop;\n\nexport function binding(name) {\n    throw new Error('process.binding is not supported');\n}\n\nexport function cwd () { return '/' }\nexport function chdir (dir) {\n    throw new Error('process.chdir is not supported');\n};\nexport function umask() { return 0; }\n\n// from https://github.com/kumavis/browser-process-hrtime/blob/master/index.js\nvar performance = global.performance || {}\nvar performanceNow =\n  performance.now        ||\n  performance.mozNow     ||\n  performance.msNow      ||\n  performance.oNow       ||\n  performance.webkitNow  ||\n  function(){ return (new Date()).getTime() }\n\n// generate timestamp or delta\n// see http://nodejs.org/api/process.html#process_process_hrtime\nexport function hrtime(previousTimestamp){\n  var clocktime = performanceNow.call(performance)*1e-3\n  var seconds = Math.floor(clocktime)\n  var nanoseconds = Math.floor((clocktime%1)*1e9)\n  if (previousTimestamp) {\n    seconds = seconds - previousTimestamp[0]\n    nanoseconds = nanoseconds - previousTimestamp[1]\n    if (nanoseconds<0) {\n      seconds--\n      nanoseconds += 1e9\n    }\n  }\n  return [seconds,nanoseconds]\n}\n\nvar startTime = new Date();\nexport function uptime() {\n  var currentTime = new Date();\n  var dif = currentTime - startTime;\n  return dif / 1000;\n}\n\nexport default {\n  nextTick: nextTick,\n  title: title,\n  browser: browser,\n  env: env,\n  argv: argv,\n  version: version,\n  versions: versions,\n  on: on,\n  addListener: addListener,\n  once: once,\n  off: off,\n  removeListener: removeListener,\n  removeAllListeners: removeAllListeners,\n  emit: emit,\n  binding: binding,\n  cwd: cwd,\n  chdir: chdir,\n  umask: umask,\n  hrtime: hrtime,\n  platform: platform,\n  release: release,\n  config: config,\n  uptime: uptime\n};\n","/*!\n * vuex v3.6.2\n * (c) 2021 Evan You\n * @license MIT\n */\nfunction applyMixin (Vue) {\n  var version = Number(Vue.version.split('.')[0]);\n\n  if (version >= 2) {\n    Vue.mixin({ beforeCreate: vuexInit });\n  } else {\n    // override init and inject vuex init procedure\n    // for 1.x backwards compatibility.\n    var _init = Vue.prototype._init;\n    Vue.prototype._init = function (options) {\n      if ( options === void 0 ) options = {};\n\n      options.init = options.init\n        ? [vuexInit].concat(options.init)\n        : vuexInit;\n      _init.call(this, options);\n    };\n  }\n\n  /**\n   * Vuex init hook, injected into each instances init hooks list.\n   */\n\n  function vuexInit () {\n    var options = this.$options;\n    // store injection\n    if (options.store) {\n      this.$store = typeof options.store === 'function'\n        ? options.store()\n        : options.store;\n    } else if (options.parent && options.parent.$store) {\n      this.$store = options.parent.$store;\n    }\n  }\n}\n\nvar target = typeof window !== 'undefined'\n  ? window\n  : typeof global !== 'undefined'\n    ? global\n    : {};\nvar devtoolHook = target.__VUE_DEVTOOLS_GLOBAL_HOOK__;\n\nfunction devtoolPlugin (store) {\n  if (!devtoolHook) { return }\n\n  store._devtoolHook = devtoolHook;\n\n  devtoolHook.emit('vuex:init', store);\n\n  devtoolHook.on('vuex:travel-to-state', function (targetState) {\n    store.replaceState(targetState);\n  });\n\n  store.subscribe(function (mutation, state) {\n    devtoolHook.emit('vuex:mutation', mutation, state);\n  }, { prepend: true });\n\n  store.subscribeAction(function (action, state) {\n    devtoolHook.emit('vuex:action', action, state);\n  }, { prepend: true });\n}\n\n/**\n * Get the first item that pass the test\n * by second argument function\n *\n * @param {Array} list\n * @param {Function} f\n * @return {*}\n */\nfunction find (list, f) {\n  return list.filter(f)[0]\n}\n\n/**\n * Deep copy the given object considering circular structure.\n * This function caches all nested objects and its copies.\n * If it detects circular structure, use cached copy to avoid infinite loop.\n *\n * @param {*} obj\n * @param {Array<Object>} cache\n * @return {*}\n */\nfunction deepCopy (obj, cache) {\n  if ( cache === void 0 ) cache = [];\n\n  // just return if obj is immutable value\n  if (obj === null || typeof obj !== 'object') {\n    return obj\n  }\n\n  // if obj is hit, it is in circular structure\n  var hit = find(cache, function (c) { return c.original === obj; });\n  if (hit) {\n    return hit.copy\n  }\n\n  var copy = Array.isArray(obj) ? [] : {};\n  // put the copy into cache at first\n  // because we want to refer it in recursive deepCopy\n  cache.push({\n    original: obj,\n    copy: copy\n  });\n\n  Object.keys(obj).forEach(function (key) {\n    copy[key] = deepCopy(obj[key], cache);\n  });\n\n  return copy\n}\n\n/**\n * forEach for object\n */\nfunction forEachValue (obj, fn) {\n  Object.keys(obj).forEach(function (key) { return fn(obj[key], key); });\n}\n\nfunction isObject (obj) {\n  return obj !== null && typeof obj === 'object'\n}\n\nfunction isPromise (val) {\n  return val && typeof val.then === 'function'\n}\n\nfunction assert (condition, msg) {\n  if (!condition) { throw new Error((\"[vuex] \" + msg)) }\n}\n\nfunction partial (fn, arg) {\n  return function () {\n    return fn(arg)\n  }\n}\n\n// Base data struct for store's module, package with some attribute and method\nvar Module = function Module (rawModule, runtime) {\n  this.runtime = runtime;\n  // Store some children item\n  this._children = Object.create(null);\n  // Store the origin module object which passed by programmer\n  this._rawModule = rawModule;\n  var rawState = rawModule.state;\n\n  // Store the origin module's state\n  this.state = (typeof rawState === 'function' ? rawState() : rawState) || {};\n};\n\nvar prototypeAccessors = { namespaced: { configurable: true } };\n\nprototypeAccessors.namespaced.get = function () {\n  return !!this._rawModule.namespaced\n};\n\nModule.prototype.addChild = function addChild (key, module) {\n  this._children[key] = module;\n};\n\nModule.prototype.removeChild = function removeChild (key) {\n  delete this._children[key];\n};\n\nModule.prototype.getChild = function getChild (key) {\n  return this._children[key]\n};\n\nModule.prototype.hasChild = function hasChild (key) {\n  return key in this._children\n};\n\nModule.prototype.update = function update (rawModule) {\n  this._rawModule.namespaced = rawModule.namespaced;\n  if (rawModule.actions) {\n    this._rawModule.actions = rawModule.actions;\n  }\n  if (rawModule.mutations) {\n    this._rawModule.mutations = rawModule.mutations;\n  }\n  if (rawModule.getters) {\n    this._rawModule.getters = rawModule.getters;\n  }\n};\n\nModule.prototype.forEachChild = function forEachChild (fn) {\n  forEachValue(this._children, fn);\n};\n\nModule.prototype.forEachGetter = function forEachGetter (fn) {\n  if (this._rawModule.getters) {\n    forEachValue(this._rawModule.getters, fn);\n  }\n};\n\nModule.prototype.forEachAction = function forEachAction (fn) {\n  if (this._rawModule.actions) {\n    forEachValue(this._rawModule.actions, fn);\n  }\n};\n\nModule.prototype.forEachMutation = function forEachMutation (fn) {\n  if (this._rawModule.mutations) {\n    forEachValue(this._rawModule.mutations, fn);\n  }\n};\n\nObject.defineProperties( Module.prototype, prototypeAccessors );\n\nvar ModuleCollection = function ModuleCollection (rawRootModule) {\n  // register root module (Vuex.Store options)\n  this.register([], rawRootModule, false);\n};\n\nModuleCollection.prototype.get = function get (path) {\n  return path.reduce(function (module, key) {\n    return module.getChild(key)\n  }, this.root)\n};\n\nModuleCollection.prototype.getNamespace = function getNamespace (path) {\n  var module = this.root;\n  return path.reduce(function (namespace, key) {\n    module = module.getChild(key);\n    return namespace + (module.namespaced ? key + '/' : '')\n  }, '')\n};\n\nModuleCollection.prototype.update = function update$1 (rawRootModule) {\n  update([], this.root, rawRootModule);\n};\n\nModuleCollection.prototype.register = function register (path, rawModule, runtime) {\n    var this$1 = this;\n    if ( runtime === void 0 ) runtime = true;\n\n  if ((process.env.NODE_ENV !== 'production')) {\n    assertRawModule(path, rawModule);\n  }\n\n  var newModule = new Module(rawModule, runtime);\n  if (path.length === 0) {\n    this.root = newModule;\n  } else {\n    var parent = this.get(path.slice(0, -1));\n    parent.addChild(path[path.length - 1], newModule);\n  }\n\n  // register nested modules\n  if (rawModule.modules) {\n    forEachValue(rawModule.modules, function (rawChildModule, key) {\n      this$1.register(path.concat(key), rawChildModule, runtime);\n    });\n  }\n};\n\nModuleCollection.prototype.unregister = function unregister (path) {\n  var parent = this.get(path.slice(0, -1));\n  var key = path[path.length - 1];\n  var child = parent.getChild(key);\n\n  if (!child) {\n    if ((process.env.NODE_ENV !== 'production')) {\n      console.warn(\n        \"[vuex] trying to unregister module '\" + key + \"', which is \" +\n        \"not registered\"\n      );\n    }\n    return\n  }\n\n  if (!child.runtime) {\n    return\n  }\n\n  parent.removeChild(key);\n};\n\nModuleCollection.prototype.isRegistered = function isRegistered (path) {\n  var parent = this.get(path.slice(0, -1));\n  var key = path[path.length - 1];\n\n  if (parent) {\n    return parent.hasChild(key)\n  }\n\n  return false\n};\n\nfunction update (path, targetModule, newModule) {\n  if ((process.env.NODE_ENV !== 'production')) {\n    assertRawModule(path, newModule);\n  }\n\n  // update target module\n  targetModule.update(newModule);\n\n  // update nested modules\n  if (newModule.modules) {\n    for (var key in newModule.modules) {\n      if (!targetModule.getChild(key)) {\n        if ((process.env.NODE_ENV !== 'production')) {\n          console.warn(\n            \"[vuex] trying to add a new module '\" + key + \"' on hot reloading, \" +\n            'manual reload is needed'\n          );\n        }\n        return\n      }\n      update(\n        path.concat(key),\n        targetModule.getChild(key),\n        newModule.modules[key]\n      );\n    }\n  }\n}\n\nvar functionAssert = {\n  assert: function (value) { return typeof value === 'function'; },\n  expected: 'function'\n};\n\nvar objectAssert = {\n  assert: function (value) { return typeof value === 'function' ||\n    (typeof value === 'object' && typeof value.handler === 'function'); },\n  expected: 'function or object with \"handler\" function'\n};\n\nvar assertTypes = {\n  getters: functionAssert,\n  mutations: functionAssert,\n  actions: objectAssert\n};\n\nfunction assertRawModule (path, rawModule) {\n  Object.keys(assertTypes).forEach(function (key) {\n    if (!rawModule[key]) { return }\n\n    var assertOptions = assertTypes[key];\n\n    forEachValue(rawModule[key], function (value, type) {\n      assert(\n        assertOptions.assert(value),\n        makeAssertionMessage(path, key, type, value, assertOptions.expected)\n      );\n    });\n  });\n}\n\nfunction makeAssertionMessage (path, key, type, value, expected) {\n  var buf = key + \" should be \" + expected + \" but \\\"\" + key + \".\" + type + \"\\\"\";\n  if (path.length > 0) {\n    buf += \" in module \\\"\" + (path.join('.')) + \"\\\"\";\n  }\n  buf += \" is \" + (JSON.stringify(value)) + \".\";\n  return buf\n}\n\nvar Vue; // bind on install\n\nvar Store = function Store (options) {\n  var this$1 = this;\n  if ( options === void 0 ) options = {};\n\n  // Auto install if it is not done yet and `window` has `Vue`.\n  // To allow users to avoid auto-installation in some cases,\n  // this code should be placed here. See #731\n  if (!Vue && typeof window !== 'undefined' && window.Vue) {\n    install(window.Vue);\n  }\n\n  if ((process.env.NODE_ENV !== 'production')) {\n    assert(Vue, \"must call Vue.use(Vuex) before creating a store instance.\");\n    assert(typeof Promise !== 'undefined', \"vuex requires a Promise polyfill in this browser.\");\n    assert(this instanceof Store, \"store must be called with the new operator.\");\n  }\n\n  var plugins = options.plugins; if ( plugins === void 0 ) plugins = [];\n  var strict = options.strict; if ( strict === void 0 ) strict = false;\n\n  // store internal state\n  this._committing = false;\n  this._actions = Object.create(null);\n  this._actionSubscribers = [];\n  this._mutations = Object.create(null);\n  this._wrappedGetters = Object.create(null);\n  this._modules = new ModuleCollection(options);\n  this._modulesNamespaceMap = Object.create(null);\n  this._subscribers = [];\n  this._watcherVM = new Vue();\n  this._makeLocalGettersCache = Object.create(null);\n\n  // bind commit and dispatch to self\n  var store = this;\n  var ref = this;\n  var dispatch = ref.dispatch;\n  var commit = ref.commit;\n  this.dispatch = function boundDispatch (type, payload) {\n    return dispatch.call(store, type, payload)\n  };\n  this.commit = function boundCommit (type, payload, options) {\n    return commit.call(store, type, payload, options)\n  };\n\n  // strict mode\n  this.strict = strict;\n\n  var state = this._modules.root.state;\n\n  // init root module.\n  // this also recursively registers all sub-modules\n  // and collects all module getters inside this._wrappedGetters\n  installModule(this, state, [], this._modules.root);\n\n  // initialize the store vm, which is responsible for the reactivity\n  // (also registers _wrappedGetters as computed properties)\n  resetStoreVM(this, state);\n\n  // apply plugins\n  plugins.forEach(function (plugin) { return plugin(this$1); });\n\n  var useDevtools = options.devtools !== undefined ? options.devtools : Vue.config.devtools;\n  if (useDevtools) {\n    devtoolPlugin(this);\n  }\n};\n\nvar prototypeAccessors$1 = { state: { configurable: true } };\n\nprototypeAccessors$1.state.get = function () {\n  return this._vm._data.$$state\n};\n\nprototypeAccessors$1.state.set = function (v) {\n  if ((process.env.NODE_ENV !== 'production')) {\n    assert(false, \"use store.replaceState() to explicit replace store state.\");\n  }\n};\n\nStore.prototype.commit = function commit (_type, _payload, _options) {\n    var this$1 = this;\n\n  // check object-style commit\n  var ref = unifyObjectStyle(_type, _payload, _options);\n    var type = ref.type;\n    var payload = ref.payload;\n    var options = ref.options;\n\n  var mutation = { type: type, payload: payload };\n  var entry = this._mutations[type];\n  if (!entry) {\n    if ((process.env.NODE_ENV !== 'production')) {\n      console.error((\"[vuex] unknown mutation type: \" + type));\n    }\n    return\n  }\n  this._withCommit(function () {\n    entry.forEach(function commitIterator (handler) {\n      handler(payload);\n    });\n  });\n\n  this._subscribers\n    .slice() // shallow copy to prevent iterator invalidation if subscriber synchronously calls unsubscribe\n    .forEach(function (sub) { return sub(mutation, this$1.state); });\n\n  if (\n    (process.env.NODE_ENV !== 'production') &&\n    options && options.silent\n  ) {\n    console.warn(\n      \"[vuex] mutation type: \" + type + \". Silent option has been removed. \" +\n      'Use the filter functionality in the vue-devtools'\n    );\n  }\n};\n\nStore.prototype.dispatch = function dispatch (_type, _payload) {\n    var this$1 = this;\n\n  // check object-style dispatch\n  var ref = unifyObjectStyle(_type, _payload);\n    var type = ref.type;\n    var payload = ref.payload;\n\n  var action = { type: type, payload: payload };\n  var entry = this._actions[type];\n  if (!entry) {\n    if ((process.env.NODE_ENV !== 'production')) {\n      console.error((\"[vuex] unknown action type: \" + type));\n    }\n    return\n  }\n\n  try {\n    this._actionSubscribers\n      .slice() // shallow copy to prevent iterator invalidation if subscriber synchronously calls unsubscribe\n      .filter(function (sub) { return sub.before; })\n      .forEach(function (sub) { return sub.before(action, this$1.state); });\n  } catch (e) {\n    if ((process.env.NODE_ENV !== 'production')) {\n      console.warn(\"[vuex] error in before action subscribers: \");\n      console.error(e);\n    }\n  }\n\n  var result = entry.length > 1\n    ? Promise.all(entry.map(function (handler) { return handler(payload); }))\n    : entry[0](payload);\n\n  return new Promise(function (resolve, reject) {\n    result.then(function (res) {\n      try {\n        this$1._actionSubscribers\n          .filter(function (sub) { return sub.after; })\n          .forEach(function (sub) { return sub.after(action, this$1.state); });\n      } catch (e) {\n        if ((process.env.NODE_ENV !== 'production')) {\n          console.warn(\"[vuex] error in after action subscribers: \");\n          console.error(e);\n        }\n      }\n      resolve(res);\n    }, function (error) {\n      try {\n        this$1._actionSubscribers\n          .filter(function (sub) { return sub.error; })\n          .forEach(function (sub) { return sub.error(action, this$1.state, error); });\n      } catch (e) {\n        if ((process.env.NODE_ENV !== 'production')) {\n          console.warn(\"[vuex] error in error action subscribers: \");\n          console.error(e);\n        }\n      }\n      reject(error);\n    });\n  })\n};\n\nStore.prototype.subscribe = function subscribe (fn, options) {\n  return genericSubscribe(fn, this._subscribers, options)\n};\n\nStore.prototype.subscribeAction = function subscribeAction (fn, options) {\n  var subs = typeof fn === 'function' ? { before: fn } : fn;\n  return genericSubscribe(subs, this._actionSubscribers, options)\n};\n\nStore.prototype.watch = function watch (getter, cb, options) {\n    var this$1 = this;\n\n  if ((process.env.NODE_ENV !== 'production')) {\n    assert(typeof getter === 'function', \"store.watch only accepts a function.\");\n  }\n  return this._watcherVM.$watch(function () { return getter(this$1.state, this$1.getters); }, cb, options)\n};\n\nStore.prototype.replaceState = function replaceState (state) {\n    var this$1 = this;\n\n  this._withCommit(function () {\n    this$1._vm._data.$$state = state;\n  });\n};\n\nStore.prototype.registerModule = function registerModule (path, rawModule, options) {\n    if ( options === void 0 ) options = {};\n\n  if (typeof path === 'string') { path = [path]; }\n\n  if ((process.env.NODE_ENV !== 'production')) {\n    assert(Array.isArray(path), \"module path must be a string or an Array.\");\n    assert(path.length > 0, 'cannot register the root module by using registerModule.');\n  }\n\n  this._modules.register(path, rawModule);\n  installModule(this, this.state, path, this._modules.get(path), options.preserveState);\n  // reset store to update getters...\n  resetStoreVM(this, this.state);\n};\n\nStore.prototype.unregisterModule = function unregisterModule (path) {\n    var this$1 = this;\n\n  if (typeof path === 'string') { path = [path]; }\n\n  if ((process.env.NODE_ENV !== 'production')) {\n    assert(Array.isArray(path), \"module path must be a string or an Array.\");\n  }\n\n  this._modules.unregister(path);\n  this._withCommit(function () {\n    var parentState = getNestedState(this$1.state, path.slice(0, -1));\n    Vue.delete(parentState, path[path.length - 1]);\n  });\n  resetStore(this);\n};\n\nStore.prototype.hasModule = function hasModule (path) {\n  if (typeof path === 'string') { path = [path]; }\n\n  if ((process.env.NODE_ENV !== 'production')) {\n    assert(Array.isArray(path), \"module path must be a string or an Array.\");\n  }\n\n  return this._modules.isRegistered(path)\n};\n\nStore.prototype.hotUpdate = function hotUpdate (newOptions) {\n  this._modules.update(newOptions);\n  resetStore(this, true);\n};\n\nStore.prototype._withCommit = function _withCommit (fn) {\n  var committing = this._committing;\n  this._committing = true;\n  fn();\n  this._committing = committing;\n};\n\nObject.defineProperties( Store.prototype, prototypeAccessors$1 );\n\nfunction genericSubscribe (fn, subs, options) {\n  if (subs.indexOf(fn) < 0) {\n    options && options.prepend\n      ? subs.unshift(fn)\n      : subs.push(fn);\n  }\n  return function () {\n    var i = subs.indexOf(fn);\n    if (i > -1) {\n      subs.splice(i, 1);\n    }\n  }\n}\n\nfunction resetStore (store, hot) {\n  store._actions = Object.create(null);\n  store._mutations = Object.create(null);\n  store._wrappedGetters = Object.create(null);\n  store._modulesNamespaceMap = Object.create(null);\n  var state = store.state;\n  // init all modules\n  installModule(store, state, [], store._modules.root, true);\n  // reset vm\n  resetStoreVM(store, state, hot);\n}\n\nfunction resetStoreVM (store, state, hot) {\n  var oldVm = store._vm;\n\n  // bind store public getters\n  store.getters = {};\n  // reset local getters cache\n  store._makeLocalGettersCache = Object.create(null);\n  var wrappedGetters = store._wrappedGetters;\n  var computed = {};\n  forEachValue(wrappedGetters, function (fn, key) {\n    // use computed to leverage its lazy-caching mechanism\n    // direct inline function use will lead to closure preserving oldVm.\n    // using partial to return function with only arguments preserved in closure environment.\n    computed[key] = partial(fn, store);\n    Object.defineProperty(store.getters, key, {\n      get: function () { return store._vm[key]; },\n      enumerable: true // for local getters\n    });\n  });\n\n  // use a Vue instance to store the state tree\n  // suppress warnings just in case the user has added\n  // some funky global mixins\n  var silent = Vue.config.silent;\n  Vue.config.silent = true;\n  store._vm = new Vue({\n    data: {\n      $$state: state\n    },\n    computed: computed\n  });\n  Vue.config.silent = silent;\n\n  // enable strict mode for new vm\n  if (store.strict) {\n    enableStrictMode(store);\n  }\n\n  if (oldVm) {\n    if (hot) {\n      // dispatch changes in all subscribed watchers\n      // to force getter re-evaluation for hot reloading.\n      store._withCommit(function () {\n        oldVm._data.$$state = null;\n      });\n    }\n    Vue.nextTick(function () { return oldVm.$destroy(); });\n  }\n}\n\nfunction installModule (store, rootState, path, module, hot) {\n  var isRoot = !path.length;\n  var namespace = store._modules.getNamespace(path);\n\n  // register in namespace map\n  if (module.namespaced) {\n    if (store._modulesNamespaceMap[namespace] && (process.env.NODE_ENV !== 'production')) {\n      console.error((\"[vuex] duplicate namespace \" + namespace + \" for the namespaced module \" + (path.join('/'))));\n    }\n    store._modulesNamespaceMap[namespace] = module;\n  }\n\n  // set state\n  if (!isRoot && !hot) {\n    var parentState = getNestedState(rootState, path.slice(0, -1));\n    var moduleName = path[path.length - 1];\n    store._withCommit(function () {\n      if ((process.env.NODE_ENV !== 'production')) {\n        if (moduleName in parentState) {\n          console.warn(\n            (\"[vuex] state field \\\"\" + moduleName + \"\\\" was overridden by a module with the same name at \\\"\" + (path.join('.')) + \"\\\"\")\n          );\n        }\n      }\n      Vue.set(parentState, moduleName, module.state);\n    });\n  }\n\n  var local = module.context = makeLocalContext(store, namespace, path);\n\n  module.forEachMutation(function (mutation, key) {\n    var namespacedType = namespace + key;\n    registerMutation(store, namespacedType, mutation, local);\n  });\n\n  module.forEachAction(function (action, key) {\n    var type = action.root ? key : namespace + key;\n    var handler = action.handler || action;\n    registerAction(store, type, handler, local);\n  });\n\n  module.forEachGetter(function (getter, key) {\n    var namespacedType = namespace + key;\n    registerGetter(store, namespacedType, getter, local);\n  });\n\n  module.forEachChild(function (child, key) {\n    installModule(store, rootState, path.concat(key), child, hot);\n  });\n}\n\n/**\n * make localized dispatch, commit, getters and state\n * if there is no namespace, just use root ones\n */\nfunction makeLocalContext (store, namespace, path) {\n  var noNamespace = namespace === '';\n\n  var local = {\n    dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {\n      var args = unifyObjectStyle(_type, _payload, _options);\n      var payload = args.payload;\n      var options = args.options;\n      var type = args.type;\n\n      if (!options || !options.root) {\n        type = namespace + type;\n        if ((process.env.NODE_ENV !== 'production') && !store._actions[type]) {\n          console.error((\"[vuex] unknown local action type: \" + (args.type) + \", global type: \" + type));\n          return\n        }\n      }\n\n      return store.dispatch(type, payload)\n    },\n\n    commit: noNamespace ? store.commit : function (_type, _payload, _options) {\n      var args = unifyObjectStyle(_type, _payload, _options);\n      var payload = args.payload;\n      var options = args.options;\n      var type = args.type;\n\n      if (!options || !options.root) {\n        type = namespace + type;\n        if ((process.env.NODE_ENV !== 'production') && !store._mutations[type]) {\n          console.error((\"[vuex] unknown local mutation type: \" + (args.type) + \", global type: \" + type));\n          return\n        }\n      }\n\n      store.commit(type, payload, options);\n    }\n  };\n\n  // getters and state object must be gotten lazily\n  // because they will be changed by vm update\n  Object.defineProperties(local, {\n    getters: {\n      get: noNamespace\n        ? function () { return store.getters; }\n        : function () { return makeLocalGetters(store, namespace); }\n    },\n    state: {\n      get: function () { return getNestedState(store.state, path); }\n    }\n  });\n\n  return local\n}\n\nfunction makeLocalGetters (store, namespace) {\n  if (!store._makeLocalGettersCache[namespace]) {\n    var gettersProxy = {};\n    var splitPos = namespace.length;\n    Object.keys(store.getters).forEach(function (type) {\n      // skip if the target getter is not match this namespace\n      if (type.slice(0, splitPos) !== namespace) { return }\n\n      // extract local getter type\n      var localType = type.slice(splitPos);\n\n      // Add a port to the getters proxy.\n      // Define as getter property because\n      // we do not want to evaluate the getters in this time.\n      Object.defineProperty(gettersProxy, localType, {\n        get: function () { return store.getters[type]; },\n        enumerable: true\n      });\n    });\n    store._makeLocalGettersCache[namespace] = gettersProxy;\n  }\n\n  return store._makeLocalGettersCache[namespace]\n}\n\nfunction registerMutation (store, type, handler, local) {\n  var entry = store._mutations[type] || (store._mutations[type] = []);\n  entry.push(function wrappedMutationHandler (payload) {\n    handler.call(store, local.state, payload);\n  });\n}\n\nfunction registerAction (store, type, handler, local) {\n  var entry = store._actions[type] || (store._actions[type] = []);\n  entry.push(function wrappedActionHandler (payload) {\n    var res = handler.call(store, {\n      dispatch: local.dispatch,\n      commit: local.commit,\n      getters: local.getters,\n      state: local.state,\n      rootGetters: store.getters,\n      rootState: store.state\n    }, payload);\n    if (!isPromise(res)) {\n      res = Promise.resolve(res);\n    }\n    if (store._devtoolHook) {\n      return res.catch(function (err) {\n        store._devtoolHook.emit('vuex:error', err);\n        throw err\n      })\n    } else {\n      return res\n    }\n  });\n}\n\nfunction registerGetter (store, type, rawGetter, local) {\n  if (store._wrappedGetters[type]) {\n    if ((process.env.NODE_ENV !== 'production')) {\n      console.error((\"[vuex] duplicate getter key: \" + type));\n    }\n    return\n  }\n  store._wrappedGetters[type] = function wrappedGetter (store) {\n    return rawGetter(\n      local.state, // local state\n      local.getters, // local getters\n      store.state, // root state\n      store.getters // root getters\n    )\n  };\n}\n\nfunction enableStrictMode (store) {\n  store._vm.$watch(function () { return this._data.$$state }, function () {\n    if ((process.env.NODE_ENV !== 'production')) {\n      assert(store._committing, \"do not mutate vuex store state outside mutation handlers.\");\n    }\n  }, { deep: true, sync: true });\n}\n\nfunction getNestedState (state, path) {\n  return path.reduce(function (state, key) { return state[key]; }, state)\n}\n\nfunction unifyObjectStyle (type, payload, options) {\n  if (isObject(type) && type.type) {\n    options = payload;\n    payload = type;\n    type = type.type;\n  }\n\n  if ((process.env.NODE_ENV !== 'production')) {\n    assert(typeof type === 'string', (\"expects string as the type, but found \" + (typeof type) + \".\"));\n  }\n\n  return { type: type, payload: payload, options: options }\n}\n\nfunction install (_Vue) {\n  if (Vue && _Vue === Vue) {\n    if ((process.env.NODE_ENV !== 'production')) {\n      console.error(\n        '[vuex] already installed. Vue.use(Vuex) should be called only once.'\n      );\n    }\n    return\n  }\n  Vue = _Vue;\n  applyMixin(Vue);\n}\n\n/**\n * Reduce the code which written in Vue.js for getting the state.\n * @param {String} [namespace] - Module's namespace\n * @param {Object|Array} states # Object's item can be a function which accept state and getters for param, you can do something for state and getters in it.\n * @param {Object}\n */\nvar mapState = normalizeNamespace(function (namespace, states) {\n  var res = {};\n  if ((process.env.NODE_ENV !== 'production') && !isValidMap(states)) {\n    console.error('[vuex] mapState: mapper parameter must be either an Array or an Object');\n  }\n  normalizeMap(states).forEach(function (ref) {\n    var key = ref.key;\n    var val = ref.val;\n\n    res[key] = function mappedState () {\n      var state = this.$store.state;\n      var getters = this.$store.getters;\n      if (namespace) {\n        var module = getModuleByNamespace(this.$store, 'mapState', namespace);\n        if (!module) {\n          return\n        }\n        state = module.context.state;\n        getters = module.context.getters;\n      }\n      return typeof val === 'function'\n        ? val.call(this, state, getters)\n        : state[val]\n    };\n    // mark vuex getter for devtools\n    res[key].vuex = true;\n  });\n  return res\n});\n\n/**\n * Reduce the code which written in Vue.js for committing the mutation\n * @param {String} [namespace] - Module's namespace\n * @param {Object|Array} mutations # Object's item can be a function which accept `commit` function as the first param, it can accept another params. You can commit mutation and do any other things in this function. specially, You need to pass anthor params from the mapped function.\n * @return {Object}\n */\nvar mapMutations = normalizeNamespace(function (namespace, mutations) {\n  var res = {};\n  if ((process.env.NODE_ENV !== 'production') && !isValidMap(mutations)) {\n    console.error('[vuex] mapMutations: mapper parameter must be either an Array or an Object');\n  }\n  normalizeMap(mutations).forEach(function (ref) {\n    var key = ref.key;\n    var val = ref.val;\n\n    res[key] = function mappedMutation () {\n      var args = [], len = arguments.length;\n      while ( len-- ) args[ len ] = arguments[ len ];\n\n      // Get the commit method from store\n      var commit = this.$store.commit;\n      if (namespace) {\n        var module = getModuleByNamespace(this.$store, 'mapMutations', namespace);\n        if (!module) {\n          return\n        }\n        commit = module.context.commit;\n      }\n      return typeof val === 'function'\n        ? val.apply(this, [commit].concat(args))\n        : commit.apply(this.$store, [val].concat(args))\n    };\n  });\n  return res\n});\n\n/**\n * Reduce the code which written in Vue.js for getting the getters\n * @param {String} [namespace] - Module's namespace\n * @param {Object|Array} getters\n * @return {Object}\n */\nvar mapGetters = normalizeNamespace(function (namespace, getters) {\n  var res = {};\n  if ((process.env.NODE_ENV !== 'production') && !isValidMap(getters)) {\n    console.error('[vuex] mapGetters: mapper parameter must be either an Array or an Object');\n  }\n  normalizeMap(getters).forEach(function (ref) {\n    var key = ref.key;\n    var val = ref.val;\n\n    // The namespace has been mutated by normalizeNamespace\n    val = namespace + val;\n    res[key] = function mappedGetter () {\n      if (namespace && !getModuleByNamespace(this.$store, 'mapGetters', namespace)) {\n        return\n      }\n      if ((process.env.NODE_ENV !== 'production') && !(val in this.$store.getters)) {\n        console.error((\"[vuex] unknown getter: \" + val));\n        return\n      }\n      return this.$store.getters[val]\n    };\n    // mark vuex getter for devtools\n    res[key].vuex = true;\n  });\n  return res\n});\n\n/**\n * Reduce the code which written in Vue.js for dispatch the action\n * @param {String} [namespace] - Module's namespace\n * @param {Object|Array} actions # Object's item can be a function which accept `dispatch` function as the first param, it can accept anthor params. You can dispatch action and do any other things in this function. specially, You need to pass anthor params from the mapped function.\n * @return {Object}\n */\nvar mapActions = normalizeNamespace(function (namespace, actions) {\n  var res = {};\n  if ((process.env.NODE_ENV !== 'production') && !isValidMap(actions)) {\n    console.error('[vuex] mapActions: mapper parameter must be either an Array or an Object');\n  }\n  normalizeMap(actions).forEach(function (ref) {\n    var key = ref.key;\n    var val = ref.val;\n\n    res[key] = function mappedAction () {\n      var args = [], len = arguments.length;\n      while ( len-- ) args[ len ] = arguments[ len ];\n\n      // get dispatch function from store\n      var dispatch = this.$store.dispatch;\n      if (namespace) {\n        var module = getModuleByNamespace(this.$store, 'mapActions', namespace);\n        if (!module) {\n          return\n        }\n        dispatch = module.context.dispatch;\n      }\n      return typeof val === 'function'\n        ? val.apply(this, [dispatch].concat(args))\n        : dispatch.apply(this.$store, [val].concat(args))\n    };\n  });\n  return res\n});\n\n/**\n * Rebinding namespace param for mapXXX function in special scoped, and return them by simple object\n * @param {String} namespace\n * @return {Object}\n */\nvar createNamespacedHelpers = function (namespace) { return ({\n  mapState: mapState.bind(null, namespace),\n  mapGetters: mapGetters.bind(null, namespace),\n  mapMutations: mapMutations.bind(null, namespace),\n  mapActions: mapActions.bind(null, namespace)\n}); };\n\n/**\n * Normalize the map\n * normalizeMap([1, 2, 3]) => [ { key: 1, val: 1 }, { key: 2, val: 2 }, { key: 3, val: 3 } ]\n * normalizeMap({a: 1, b: 2, c: 3}) => [ { key: 'a', val: 1 }, { key: 'b', val: 2 }, { key: 'c', val: 3 } ]\n * @param {Array|Object} map\n * @return {Object}\n */\nfunction normalizeMap (map) {\n  if (!isValidMap(map)) {\n    return []\n  }\n  return Array.isArray(map)\n    ? map.map(function (key) { return ({ key: key, val: key }); })\n    : Object.keys(map).map(function (key) { return ({ key: key, val: map[key] }); })\n}\n\n/**\n * Validate whether given map is valid or not\n * @param {*} map\n * @return {Boolean}\n */\nfunction isValidMap (map) {\n  return Array.isArray(map) || isObject(map)\n}\n\n/**\n * Return a function expect two param contains namespace and map. it will normalize the namespace and then the param's function will handle the new namespace and the map.\n * @param {Function} fn\n * @return {Function}\n */\nfunction normalizeNamespace (fn) {\n  return function (namespace, map) {\n    if (typeof namespace !== 'string') {\n      map = namespace;\n      namespace = '';\n    } else if (namespace.charAt(namespace.length - 1) !== '/') {\n      namespace += '/';\n    }\n    return fn(namespace, map)\n  }\n}\n\n/**\n * Search a special module from store by namespace. if module not exist, print error message.\n * @param {Object} store\n * @param {String} helper\n * @param {String} namespace\n * @return {Object}\n */\nfunction getModuleByNamespace (store, helper, namespace) {\n  var module = store._modulesNamespaceMap[namespace];\n  if ((process.env.NODE_ENV !== 'production') && !module) {\n    console.error((\"[vuex] module namespace not found in \" + helper + \"(): \" + namespace));\n  }\n  return module\n}\n\n// Credits: borrowed code from fcomb/redux-logger\n\nfunction createLogger (ref) {\n  if ( ref === void 0 ) ref = {};\n  var collapsed = ref.collapsed; if ( collapsed === void 0 ) collapsed = true;\n  var filter = ref.filter; if ( filter === void 0 ) filter = function (mutation, stateBefore, stateAfter) { return true; };\n  var transformer = ref.transformer; if ( transformer === void 0 ) transformer = function (state) { return state; };\n  var mutationTransformer = ref.mutationTransformer; if ( mutationTransformer === void 0 ) mutationTransformer = function (mut) { return mut; };\n  var actionFilter = ref.actionFilter; if ( actionFilter === void 0 ) actionFilter = function (action, state) { return true; };\n  var actionTransformer = ref.actionTransformer; if ( actionTransformer === void 0 ) actionTransformer = function (act) { return act; };\n  var logMutations = ref.logMutations; if ( logMutations === void 0 ) logMutations = true;\n  var logActions = ref.logActions; if ( logActions === void 0 ) logActions = true;\n  var logger = ref.logger; if ( logger === void 0 ) logger = console;\n\n  return function (store) {\n    var prevState = deepCopy(store.state);\n\n    if (typeof logger === 'undefined') {\n      return\n    }\n\n    if (logMutations) {\n      store.subscribe(function (mutation, state) {\n        var nextState = deepCopy(state);\n\n        if (filter(mutation, prevState, nextState)) {\n          var formattedTime = getFormattedTime();\n          var formattedMutation = mutationTransformer(mutation);\n          var message = \"mutation \" + (mutation.type) + formattedTime;\n\n          startMessage(logger, message, collapsed);\n          logger.log('%c prev state', 'color: #9E9E9E; font-weight: bold', transformer(prevState));\n          logger.log('%c mutation', 'color: #03A9F4; font-weight: bold', formattedMutation);\n          logger.log('%c next state', 'color: #4CAF50; font-weight: bold', transformer(nextState));\n          endMessage(logger);\n        }\n\n        prevState = nextState;\n      });\n    }\n\n    if (logActions) {\n      store.subscribeAction(function (action, state) {\n        if (actionFilter(action, state)) {\n          var formattedTime = getFormattedTime();\n          var formattedAction = actionTransformer(action);\n          var message = \"action \" + (action.type) + formattedTime;\n\n          startMessage(logger, message, collapsed);\n          logger.log('%c action', 'color: #03A9F4; font-weight: bold', formattedAction);\n          endMessage(logger);\n        }\n      });\n    }\n  }\n}\n\nfunction startMessage (logger, message, collapsed) {\n  var startMessage = collapsed\n    ? logger.groupCollapsed\n    : logger.group;\n\n  // render\n  try {\n    startMessage.call(logger, message);\n  } catch (e) {\n    logger.log(message);\n  }\n}\n\nfunction endMessage (logger) {\n  try {\n    logger.groupEnd();\n  } catch (e) {\n    logger.log('—— log end ——');\n  }\n}\n\nfunction getFormattedTime () {\n  var time = new Date();\n  return (\" @ \" + (pad(time.getHours(), 2)) + \":\" + (pad(time.getMinutes(), 2)) + \":\" + (pad(time.getSeconds(), 2)) + \".\" + (pad(time.getMilliseconds(), 3)))\n}\n\nfunction repeat (str, times) {\n  return (new Array(times + 1)).join(str)\n}\n\nfunction pad (num, maxLength) {\n  return repeat('0', maxLength - num.toString().length) + num\n}\n\nvar index = {\n  Store: Store,\n  install: install,\n  version: '3.6.2',\n  mapState: mapState,\n  mapMutations: mapMutations,\n  mapGetters: mapGetters,\n  mapActions: mapActions,\n  createNamespacedHelpers: createNamespacedHelpers,\n  createLogger: createLogger\n};\n\nexport default index;\nexport { Store, createLogger, createNamespacedHelpers, install, mapActions, mapGetters, mapMutations, mapState };\n","//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\r\nimport YfDrag from 'components/YfDrag.vue'\r\nimport isEqual from 'lodash.isequal'\r\nimport { createNamespacedHelpers } from 'vuex'\r\nconst { mapGetters, mapMutations, mapActions } = createNamespacedHelpers('Chat')\r\nexport default {\r\n\tname: 'ChatButtonDialog',\r\n\tcomponents: { YfDrag },\r\n\tdata() {\r\n\t\treturn {\r\n\t\t\tdragging: false,\r\n\t\t\twindowConfig: CONFIG,\r\n\t\t\taddingRoom: false,\r\n\t\t\tdragTimeout: 300,\r\n\t\t}\r\n\t},\r\n\tprops: {\r\n\t\tdialogLoading: {\r\n\t\t\ttype: Boolean,\r\n\t\t\trequired: true,\r\n\t\t},\r\n\t},\r\n\tcomputed: {\r\n\t\t...mapGetters(['miniMode', 'data', 'config', 'getDetailPreview']),\r\n\t\tbuttonClass() {\r\n\t\t\treturn ['glossy animation-duration', this.config.draggableButton ? 'btn-absolute' : 'q-px-sm']\r\n\t\t},\r\n\t\tbuttonSize() {\r\n\t\t\treturn this.config.draggableButton ? '' : '0.826rem'\r\n\t\t},\r\n\t\taddBadgeClass() {\r\n\t\t\treturn ['shadow-3 text-primary btn-badge', this.config.draggableButton ? 'btn-badge--left-top' : 'q-mr-xs']\r\n\t\t},\r\n\t\tdialog: {\r\n\t\t\tget() {\r\n\t\t\t\treturn this.$store.getters['Chat/dialog']\r\n\t\t\t},\r\n\t\t\tset(isOpen) {\r\n\t\t\t\tthis.setDialog(isOpen)\r\n\t\t\t},\r\n\t\t},\r\n\t\tbuttonCoordinates: {\r\n\t\t\tget() {\r\n\t\t\t\treturn this.$store.getters['Chat/buttonCoordinates']\r\n\t\t\t},\r\n\t\t\tset(coords) {\r\n\t\t\t\tif (!isEqual({ left: coords.left, top: coords.top }, { ...this.$store.getters['Chat/buttonCoordinates'] })) {\r\n\t\t\t\t\tthis.setDragState()\r\n\t\t\t\t\tthis.setButtonCoordinates(coords)\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t},\r\n\t\tbuttonAnimationClasses() {\r\n\t\t\treturn this.data.amountOfNewMessages ? 'animate__animated animate__shakeX' : ''\r\n\t\t},\r\n\t\thasCurrentRecordChat() {\r\n\t\t\tif (!this.config.activeRoomTypes.includes('crm')) {\r\n\t\t\t\treturn false\r\n\t\t\t}\r\n\t\t\tlet id = false\r\n\t\t\tif (this.isDetail) {\r\n\t\t\t\tid = app.getRecordId()\r\n\t\t\t}\r\n\t\t\tif (this.getDetailPreview && this.config.chatModules.some((el) => el.id === this.getDetailPreview.module)) {\r\n\t\t\t\tid = this.getDetailPreview.id\r\n\t\t\t}\r\n\t\t\tif (id && !this.data.roomList.crm[id]) {\r\n\t\t\t\treturn true\r\n\t\t\t} else {\r\n\t\t\t\treturn false\r\n\t\t\t}\r\n\t\t},\r\n\t\tisDetail() {\r\n\t\t\treturn this.windowConfig.view === 'Detail' && this.config.chatModules.some((el) => el.id === this.windowConfig.module)\r\n\t\t},\r\n\t},\r\n\tmethods: {\r\n\t\t...mapMutations(['setDialog', 'setButtonCoordinates', 'updateRooms', 'setTab']),\r\n\t\t...mapActions(['fetchRoom']),\r\n\t\tshowDialog() {\r\n\t\t\tthis.dragging = false\r\n\t\t\tsetTimeout((_) => {\r\n\t\t\t\tif (!this.dragging && !this.addingRoom) {\r\n\t\t\t\t\tthis.dialog = !this.dialog\r\n\t\t\t\t}\r\n\t\t\t}, this.dragTimeout)\r\n\t\t},\r\n\t\taddRecordRoomToChat() {\r\n\t\t\tsetTimeout((_) => {\r\n\t\t\t\tthis.addingRoom = true\r\n\t\t\t\tAppConnector.request({\r\n\t\t\t\t\tmodule: 'Chat',\r\n\t\t\t\t\taction: 'Room',\r\n\t\t\t\t\tmode: 'addToFavorites',\r\n\t\t\t\t\troomType: 'crm',\r\n\t\t\t\t\trecordId: this.isDetail ? app.getRecordId() : this.getDetailPreview.id,\r\n\t\t\t\t}).done(({ result }) => {\r\n\t\t\t\t\tthis.addingRoom = false\r\n\t\t\t\t\tthis.updateRooms(result)\r\n\t\t\t\t\tthis.$q.notify({\r\n\t\t\t\t\t\tposition: 'top',\r\n\t\t\t\t\t\tcolor: 'success',\r\n\t\t\t\t\t\tmessage: this.translate('JS_CHAT_ROOM_ADDED'),\r\n\t\t\t\t\t\ticon: 'mdi-check',\r\n\t\t\t\t\t})\r\n\t\t\t\t\tthis.fetchRoom({ id: result.record_id, roomType: 'crm' }, false).then((_) => {\r\n\t\t\t\t\t\tthis.dialog = true\r\n\t\t\t\t\t\tthis.setTab('chat')\r\n\t\t\t\t\t})\r\n\t\t\t\t})\r\n\t\t\t}, this.dragTimeout)\r\n\t\t},\r\n\t\tsetDragState() {\r\n\t\t\tthis.dragging = true\r\n\t\t},\r\n\t},\r\n}\r\n","<!--\r\n/**\r\n * ChatButtonDialog component\r\n *\r\n * @description Chat button for toggling chat window.\r\n * @license YetiForce Public License 6.5\r\n * @author Tomasz Poradzewski <t.poradzewski@yetiforce.com>\r\n * @author Radosław Skrzypczak <r.skrzypczak@yetiforce.com>\r\n */\r\n-->\r\n<template>\r\n\t<YfDrag :active=\"config.draggableButton\" :coordinates.sync=\"buttonCoordinates\">\r\n\t\t<transition :enter-active-class=\"buttonAnimationClasses\" mode=\"out-in\">\r\n\t\t\t<q-btn\r\n\t\t\t\tref=\"chatBtn\"\r\n\t\t\t\tunelevated\r\n\t\t\t\t:key=\"parseInt(data.amountOfNewMessages)\"\r\n\t\t\t\t:loading=\"dialogLoading\"\r\n\t\t\t\tcolor=\"primary\"\r\n\t\t\t\t:class=\"buttonClass\"\r\n\t\t\t\tstyle=\"z-index: 99999999999\"\r\n\t\t\t\t@mouseup=\"showDialog\"\r\n\t\t\t\t:round=\"config.draggableButton\"\r\n\t\t\t\t:size=\"buttonSize\"\r\n\t\t\t>\r\n\t\t\t\t<q-badge v-if=\"hasCurrentRecordChat\" :class=\"addBadgeClass\" color=\"white\" :floating=\"config.draggableButton\" @mouseup=\"addRecordRoomToChat()\">\r\n\t\t\t\t\t<q-icon name=\"mdi-plus\" size=\"1rem\" />\r\n\t\t\t\t\t<q-tooltip>{{ translate('JS_CHAT_ROOM_ADD_CURRENT') }}</q-tooltip>\r\n\t\t\t\t</q-badge>\r\n\t\t\t\t<YfIcon icon=\"yfi-branding-chat\" />\r\n\t\t\t\t<q-badge v-if=\"config.showNumberOfNewMessages\" v-show=\"data.amountOfNewMessages > 0\" color=\"danger\" floating>\r\n\t\t\t\t\t<div>{{ data.amountOfNewMessages }}</div>\r\n\t\t\t\t</q-badge>\r\n\t\t\t</q-btn>\r\n\t\t</transition>\r\n\t</YfDrag>\r\n</template>\r\n<script>\r\nimport YfDrag from 'components/YfDrag.vue'\r\nimport isEqual from 'lodash.isequal'\r\nimport { createNamespacedHelpers } from 'vuex'\r\nconst { mapGetters, mapMutations, mapActions } = createNamespacedHelpers('Chat')\r\nexport default {\r\n\tname: 'ChatButtonDialog',\r\n\tcomponents: { YfDrag },\r\n\tdata() {\r\n\t\treturn {\r\n\t\t\tdragging: false,\r\n\t\t\twindowConfig: CONFIG,\r\n\t\t\taddingRoom: false,\r\n\t\t\tdragTimeout: 300,\r\n\t\t}\r\n\t},\r\n\tprops: {\r\n\t\tdialogLoading: {\r\n\t\t\ttype: Boolean,\r\n\t\t\trequired: true,\r\n\t\t},\r\n\t},\r\n\tcomputed: {\r\n\t\t...mapGetters(['miniMode', 'data', 'config', 'getDetailPreview']),\r\n\t\tbuttonClass() {\r\n\t\t\treturn ['glossy animation-duration', this.config.draggableButton ? 'btn-absolute' : 'q-px-sm']\r\n\t\t},\r\n\t\tbuttonSize() {\r\n\t\t\treturn this.config.draggableButton ? '' : '0.826rem'\r\n\t\t},\r\n\t\taddBadgeClass() {\r\n\t\t\treturn ['shadow-3 text-primary btn-badge', this.config.draggableButton ? 'btn-badge--left-top' : 'q-mr-xs']\r\n\t\t},\r\n\t\tdialog: {\r\n\t\t\tget() {\r\n\t\t\t\treturn this.$store.getters['Chat/dialog']\r\n\t\t\t},\r\n\t\t\tset(isOpen) {\r\n\t\t\t\tthis.setDialog(isOpen)\r\n\t\t\t},\r\n\t\t},\r\n\t\tbuttonCoordinates: {\r\n\t\t\tget() {\r\n\t\t\t\treturn this.$store.getters['Chat/buttonCoordinates']\r\n\t\t\t},\r\n\t\t\tset(coords) {\r\n\t\t\t\tif (!isEqual({ left: coords.left, top: coords.top }, { ...this.$store.getters['Chat/buttonCoordinates'] })) {\r\n\t\t\t\t\tthis.setDragState()\r\n\t\t\t\t\tthis.setButtonCoordinates(coords)\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t},\r\n\t\tbuttonAnimationClasses() {\r\n\t\t\treturn this.data.amountOfNewMessages ? 'animate__animated animate__shakeX' : ''\r\n\t\t},\r\n\t\thasCurrentRecordChat() {\r\n\t\t\tif (!this.config.activeRoomTypes.includes('crm')) {\r\n\t\t\t\treturn false\r\n\t\t\t}\r\n\t\t\tlet id = false\r\n\t\t\tif (this.isDetail) {\r\n\t\t\t\tid = app.getRecordId()\r\n\t\t\t}\r\n\t\t\tif (this.getDetailPreview && this.config.chatModules.some((el) => el.id === this.getDetailPreview.module)) {\r\n\t\t\t\tid = this.getDetailPreview.id\r\n\t\t\t}\r\n\t\t\tif (id && !this.data.roomList.crm[id]) {\r\n\t\t\t\treturn true\r\n\t\t\t} else {\r\n\t\t\t\treturn false\r\n\t\t\t}\r\n\t\t},\r\n\t\tisDetail() {\r\n\t\t\treturn this.windowConfig.view === 'Detail' && this.config.chatModules.some((el) => el.id === this.windowConfig.module)\r\n\t\t},\r\n\t},\r\n\tmethods: {\r\n\t\t...mapMutations(['setDialog', 'setButtonCoordinates', 'updateRooms', 'setTab']),\r\n\t\t...mapActions(['fetchRoom']),\r\n\t\tshowDialog() {\r\n\t\t\tthis.dragging = false\r\n\t\t\tsetTimeout((_) => {\r\n\t\t\t\tif (!this.dragging && !this.addingRoom) {\r\n\t\t\t\t\tthis.dialog = !this.dialog\r\n\t\t\t\t}\r\n\t\t\t}, this.dragTimeout)\r\n\t\t},\r\n\t\taddRecordRoomToChat() {\r\n\t\t\tsetTimeout((_) => {\r\n\t\t\t\tthis.addingRoom = true\r\n\t\t\t\tAppConnector.request({\r\n\t\t\t\t\tmodule: 'Chat',\r\n\t\t\t\t\taction: 'Room',\r\n\t\t\t\t\tmode: 'addToFavorites',\r\n\t\t\t\t\troomType: 'crm',\r\n\t\t\t\t\trecordId: this.isDetail ? app.getRecordId() : this.getDetailPreview.id,\r\n\t\t\t\t}).done(({ result }) => {\r\n\t\t\t\t\tthis.addingRoom = false\r\n\t\t\t\t\tthis.updateRooms(result)\r\n\t\t\t\t\tthis.$q.notify({\r\n\t\t\t\t\t\tposition: 'top',\r\n\t\t\t\t\t\tcolor: 'success',\r\n\t\t\t\t\t\tmessage: this.translate('JS_CHAT_ROOM_ADDED'),\r\n\t\t\t\t\t\ticon: 'mdi-check',\r\n\t\t\t\t\t})\r\n\t\t\t\t\tthis.fetchRoom({ id: result.record_id, roomType: 'crm' }, false).then((_) => {\r\n\t\t\t\t\t\tthis.dialog = true\r\n\t\t\t\t\t\tthis.setTab('chat')\r\n\t\t\t\t\t})\r\n\t\t\t\t})\r\n\t\t\t}, this.dragTimeout)\r\n\t\t},\r\n\t\tsetDragState() {\r\n\t\t\tthis.dragging = true\r\n\t\t},\r\n\t},\r\n}\r\n</script>\r\n<style scoped lang=\"scss\">\r\n$btn-badge-size: 23px;\r\n\r\n.btn-absolute {\r\n\twidth: 100%;\r\n\theight: 100%;\r\n\tposition: absolute;\r\n\ttop: 0;\r\n\tleft: 0;\r\n}\r\n\r\n.btn-badge {\r\n\tpointer-events: all;\r\n\tjustify-content: center;\r\n\talign-items: center;\r\n\twidth: $btn-badge-size;\r\n\theight: $btn-badge-size;\r\n\tborder-radius: 100%;\r\n\ttransition: all 0.2s ease-in-out;\r\n\r\n\t&:hover {\r\n\t\ttransform: scale(1.5);\r\n\t}\r\n\r\n\t&--left-top {\r\n\t\ttop: -8px;\r\n\t\tleft: -7px;\r\n\t}\r\n}\r\n\r\n.animation-duration {\r\n\tanimation-duration: 0.8s;\r\n}\r\n</style>\r\n","//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\r\nimport { createNamespacedHelpers } from 'vuex'\r\nconst { mapGetters, mapActions, mapMutations } = createNamespacedHelpers('Chat')\r\nconst roomType = 'private'\r\nexport default {\r\n\tname: 'RoomPrivateUserSelect',\r\n\tprops: {\r\n\t\troomId: {\r\n\t\t\ttype: Number,\r\n\t\t\trequired: true,\r\n\t\t},\r\n\t\tisVisible: {\r\n\t\t\ttype: Boolean,\r\n\t\t\tdefault: false,\r\n\t\t},\r\n\t\tdialog: {\r\n\t\t\ttype: Boolean,\r\n\t\t\tdefault: false,\r\n\t\t},\r\n\t},\r\n\tdata() {\r\n\t\treturn {\r\n\t\t\tselectUser: null,\r\n\t\t\tusers: [],\r\n\t\t\tsearchUsers: [],\r\n\t\t\tisValid: true,\r\n\t\t\terrorMessage: '',\r\n\t\t\taddedUsers: [],\r\n\t\t}\r\n\t},\r\n\twatch: {\r\n\t\tisVisible(val) {\r\n\t\t\tif (val) {\r\n\t\t\t\tsetTimeout(() => {\r\n\t\t\t\t\tthis.$refs.selectUser.showPopup()\r\n\t\t\t\t}, 100)\r\n\t\t\t} else {\r\n\t\t\t\tthis.$refs.selectUser.hidePopup()\r\n\t\t\t}\r\n\t\t},\r\n\t},\r\n\tcomputed: {\r\n\t\t...mapGetters(['layout']),\r\n\t\ttooltipAnchor() {\r\n\t\t\treturn `${this.dialog ? 'bottom' : 'top'} middle`\r\n\t\t},\r\n\t},\r\n\tmethods: {\r\n\t\t...mapActions(['fetchPrivateRoomUnpinnedUsers', 'addParticipant', 'removeUserFromRoom']),\r\n\t\t...mapMutations(['updateParticipants']),\r\n\t\tunpinUser({ value }) {\r\n\t\t\tlet userId = value.pop()\r\n\t\t\tlet recordId = this.roomId\r\n\t\t\tthis.removeUserFromRoom({ roomType, recordId, userId })\r\n\t\t},\r\n\t\tvalidateParticipant({ value }) {\r\n\t\t\tthis.addParticipant({\r\n\t\t\t\trecordId: this.roomId,\r\n\t\t\t\tuserId: value,\r\n\t\t\t}).then(({ result }) => {\r\n\t\t\t\tif (result.message) {\r\n\t\t\t\t\tthis.errorMessage = this.translate(result.message)\r\n\t\t\t\t\tthis.isValid = false\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.isValid = true\r\n\t\t\t\t\tthis.updateParticipants({\r\n\t\t\t\t\t\trecordId: this.roomId,\r\n\t\t\t\t\t\troomType,\r\n\t\t\t\t\t\tdata: result,\r\n\t\t\t\t\t})\r\n\t\t\t\t\tthis.$q.notify({\r\n\t\t\t\t\t\tposition: 'top',\r\n\t\t\t\t\t\tcolor: 'success',\r\n\t\t\t\t\t\tmessage: this.translate('JS_CHAT_PARTICIPANT_ADDED'),\r\n\t\t\t\t\t\ticon: 'mdi-check',\r\n\t\t\t\t\t})\r\n\t\t\t\t}\r\n\t\t\t})\r\n\t\t},\r\n\t\tasyncFilter(val, update) {\r\n\t\t\tif (val === '') {\r\n\t\t\t\tthis.fetchPrivateRoomUnpinnedUsers(this.roomId).then((users) => {\r\n\t\t\t\t\tupdate(() => {\r\n\t\t\t\t\t\tthis.users = this.searchUsers = users\r\n\t\t\t\t\t})\r\n\t\t\t\t})\r\n\t\t\t} else {\r\n\t\t\t\tupdate(() => {\r\n\t\t\t\t\tconst needle = val.toLowerCase()\r\n\t\t\t\t\tthis.searchUsers = this.users.filter((v) => v.label.toLowerCase().indexOf(needle) > -1)\r\n\t\t\t\t})\r\n\t\t\t}\r\n\t\t},\r\n\t},\r\n}\r\n","<!-- /* {[The file is published on the basis of YetiForce Public License 6.5 that can be found in the following directory: licenses/LicenseEN.txt or yetiforce.com]} */ -->\r\n<template>\r\n\t<div class=\"full-width\">\r\n\t\t<q-select\r\n\t\t\tv-model=\"selectUser\"\r\n\t\t\tref=\"selectUser\"\r\n\t\t\tclass=\"full-width\"\r\n\t\t\tdense\r\n\t\t\tuse-input\r\n\t\t\tfill-input\r\n\t\t\thide-selected\r\n\t\t\tmultiple\r\n\t\t\tinput-debounce=\"0\"\r\n\t\t\thide-bottom-space\r\n\t\t\temit-value\r\n\t\t\tmap-options\r\n\t\t\tpopup-content-class=\"quasar-reset\"\r\n\t\t\toption-value=\"id\"\r\n\t\t\toption-label=\"label\"\r\n\t\t\toption-img=\"img\"\r\n\t\t\t:options=\"searchUsers\"\r\n\t\t\t:label=\"translate('JS_CHAT_FILTER_USERS')\"\r\n\t\t\t:hint=\"translate('JS_CHAT_ADD_USERS_TO_NEW_ROOM')\"\r\n\t\t\t:error=\"!isValid\"\r\n\t\t\t:behavior=\"dialog ? 'dialog' : 'default'\"\r\n\t\t\t@filter=\"asyncFilter\"\r\n\t\t\t@add=\"validateParticipant\"\r\n\t\t\t@remove=\"unpinUser\"\r\n\t\t\t@popup-hide=\"selectUser = null\"\r\n\t\t>\r\n\t\t\t<template #no-option>\r\n\t\t\t\t<q-item>\r\n\t\t\t\t\t<q-item-section class=\"text-grey\"> {{ translate('JS_NO_RESULTS_FOUND') }} </q-item-section>\r\n\t\t\t\t</q-item>\r\n\t\t\t</template>\r\n\t\t\t<template #append>\r\n\t\t\t\t<q-icon name=\"mdi-close\" @click.prevent=\"$emit('update:isVisible', false), (isValid = true)\" class=\"cursor-pointer\" />\r\n\t\t\t\t<q-tooltip :anchor=\"tooltipAnchor\">{{ translate('JS_CHAT_HIDE_ADD_PANEL') }}</q-tooltip>\r\n\t\t\t</template>\r\n\t\t\t<template #option=\"scope\">\r\n\t\t\t\t<q-item dense v-bind=\"scope.itemProps\" v-on=\"scope.itemEvents\">\r\n\t\t\t\t\t<q-item-section avatar>\r\n\t\t\t\t\t\t<img v-if=\"scope.opt.img\" :src=\"scope.opt.img\" :alt=\"scope.opt.label\" style=\"height: 1.7rem\" />\r\n\t\t\t\t\t\t<q-icon v-else name=\"mdi-account\" />\r\n\t\t\t\t\t</q-item-section>\r\n\t\t\t\t\t<q-item-section>\r\n\t\t\t\t\t\t{{ scope.opt.label }}\r\n\t\t\t\t\t</q-item-section>\r\n\t\t\t\t</q-item>\r\n\t\t\t</template>\r\n\t\t\t<template #error>\r\n\t\t\t\t{{ errorMessage }}\r\n\t\t\t</template>\r\n\t\t</q-select>\r\n\t</div>\r\n</template>\r\n<script>\r\nimport { createNamespacedHelpers } from 'vuex'\r\nconst { mapGetters, mapActions, mapMutations } = createNamespacedHelpers('Chat')\r\nconst roomType = 'private'\r\nexport default {\r\n\tname: 'RoomPrivateUserSelect',\r\n\tprops: {\r\n\t\troomId: {\r\n\t\t\ttype: Number,\r\n\t\t\trequired: true,\r\n\t\t},\r\n\t\tisVisible: {\r\n\t\t\ttype: Boolean,\r\n\t\t\tdefault: false,\r\n\t\t},\r\n\t\tdialog: {\r\n\t\t\ttype: Boolean,\r\n\t\t\tdefault: false,\r\n\t\t},\r\n\t},\r\n\tdata() {\r\n\t\treturn {\r\n\t\t\tselectUser: null,\r\n\t\t\tusers: [],\r\n\t\t\tsearchUsers: [],\r\n\t\t\tisValid: true,\r\n\t\t\terrorMessage: '',\r\n\t\t\taddedUsers: [],\r\n\t\t}\r\n\t},\r\n\twatch: {\r\n\t\tisVisible(val) {\r\n\t\t\tif (val) {\r\n\t\t\t\tsetTimeout(() => {\r\n\t\t\t\t\tthis.$refs.selectUser.showPopup()\r\n\t\t\t\t}, 100)\r\n\t\t\t} else {\r\n\t\t\t\tthis.$refs.selectUser.hidePopup()\r\n\t\t\t}\r\n\t\t},\r\n\t},\r\n\tcomputed: {\r\n\t\t...mapGetters(['layout']),\r\n\t\ttooltipAnchor() {\r\n\t\t\treturn `${this.dialog ? 'bottom' : 'top'} middle`\r\n\t\t},\r\n\t},\r\n\tmethods: {\r\n\t\t...mapActions(['fetchPrivateRoomUnpinnedUsers', 'addParticipant', 'removeUserFromRoom']),\r\n\t\t...mapMutations(['updateParticipants']),\r\n\t\tunpinUser({ value }) {\r\n\t\t\tlet userId = value.pop()\r\n\t\t\tlet recordId = this.roomId\r\n\t\t\tthis.removeUserFromRoom({ roomType, recordId, userId })\r\n\t\t},\r\n\t\tvalidateParticipant({ value }) {\r\n\t\t\tthis.addParticipant({\r\n\t\t\t\trecordId: this.roomId,\r\n\t\t\t\tuserId: value,\r\n\t\t\t}).then(({ result }) => {\r\n\t\t\t\tif (result.message) {\r\n\t\t\t\t\tthis.errorMessage = this.translate(result.message)\r\n\t\t\t\t\tthis.isValid = false\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.isValid = true\r\n\t\t\t\t\tthis.updateParticipants({\r\n\t\t\t\t\t\trecordId: this.roomId,\r\n\t\t\t\t\t\troomType,\r\n\t\t\t\t\t\tdata: result,\r\n\t\t\t\t\t})\r\n\t\t\t\t\tthis.$q.notify({\r\n\t\t\t\t\t\tposition: 'top',\r\n\t\t\t\t\t\tcolor: 'success',\r\n\t\t\t\t\t\tmessage: this.translate('JS_CHAT_PARTICIPANT_ADDED'),\r\n\t\t\t\t\t\ticon: 'mdi-check',\r\n\t\t\t\t\t})\r\n\t\t\t\t}\r\n\t\t\t})\r\n\t\t},\r\n\t\tasyncFilter(val, update) {\r\n\t\t\tif (val === '') {\r\n\t\t\t\tthis.fetchPrivateRoomUnpinnedUsers(this.roomId).then((users) => {\r\n\t\t\t\t\tupdate(() => {\r\n\t\t\t\t\t\tthis.users = this.searchUsers = users\r\n\t\t\t\t\t})\r\n\t\t\t\t})\r\n\t\t\t} else {\r\n\t\t\t\tupdate(() => {\r\n\t\t\t\t\tconst needle = val.toLowerCase()\r\n\t\t\t\t\tthis.searchUsers = this.users.filter((v) => v.label.toLowerCase().indexOf(needle) > -1)\r\n\t\t\t\t})\r\n\t\t\t}\r\n\t\t},\r\n\t},\r\n}\r\n</script>\r\n<style lang=\"sass\" scoped>\r\n.select-dense\r\n\t.q-item\r\n\t\tmin-height: 32px\r\n\t\tpadding: 2px 16px\r\n</style>\r\n","//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\r\nimport RoomPrivateUserSelect from './RoomPrivateUserSelect.vue'\r\n\r\nimport { createNamespacedHelpers } from 'vuex'\r\nconst { mapGetters, mapActions, mapMutations } = createNamespacedHelpers('Chat')\r\n\r\nexport default {\r\n\tname: 'RoomPrivateInput',\r\n\tcomponents: { RoomPrivateUserSelect },\r\n\tprops: {\r\n\t\tshowAddPrivateRoom: {\r\n\t\t\ttype: Boolean,\r\n\t\t},\r\n\t},\r\n\tdata() {\r\n\t\treturn {\r\n\t\t\taddRoom: '',\r\n\t\t\tisValid: true,\r\n\t\t\terrorMessage: '',\r\n\t\t\tisValidating: false,\r\n\t\t\tnewRoomId: 0,\r\n\t\t}\r\n\t},\r\n\twatch: {\r\n\t\tshowAddPrivateRoom() {\r\n\t\t\tif (this.showAddPrivateRoom) {\r\n\t\t\t\tthis.$refs.addRoomInput.focus()\r\n\t\t\t}\r\n\t\t},\r\n\t},\r\n\tcomputed: {\r\n\t\t...mapGetters(['data']),\r\n\t},\r\n\tmethods: {\r\n\t\t...mapActions(['addPrivateRoom']),\r\n\t\t...mapMutations(['updateRooms']),\r\n\t\tvalidateRoomName() {\r\n\t\t\tif (this.addRoom.length && !this.isValidating) {\r\n\t\t\t\tthis.isValidating = true\r\n\t\t\t\tlet roomExist = false\r\n\t\t\t\tfor (let room in this.data.roomList.private) {\r\n\t\t\t\t\tif (this.data.roomList.private[room].name === this.addRoom) {\r\n\t\t\t\t\t\troomExist = true\r\n\t\t\t\t\t\tbreak\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif (!roomExist) {\r\n\t\t\t\t\tthis.addPrivateRoom({ name: this.addRoom }).then(({ result }) => {\r\n\t\t\t\t\t\tthis.showUserSelect(Object.keys(result.private).pop())\r\n\t\t\t\t\t\tthis.addRoom = ''\r\n\t\t\t\t\t\tthis.updateRooms(result)\r\n\t\t\t\t\t\tthis.isValidating = false\r\n\t\t\t\t\t\tthis.$q.notify({\r\n\t\t\t\t\t\t\tposition: 'top',\r\n\t\t\t\t\t\t\tcolor: 'success',\r\n\t\t\t\t\t\t\tmessage: this.translate('JS_CHAT_ROOM_ADDED'),\r\n\t\t\t\t\t\t\ticon: 'mdi-check',\r\n\t\t\t\t\t\t})\r\n\t\t\t\t\t})\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.errorMessage = this.translate('JS_CHAT_ROOM_EXISTS')\r\n\t\t\t\t\tthis.isValid = false\r\n\t\t\t\t\tthis.isValidating = false\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tthis.errorMessage = this.translate('JS_CHAT_ROOM_NAME_EMPTY')\r\n\t\t\t\tthis.isValid = false\r\n\t\t\t}\r\n\t\t},\r\n\t\tshowUserSelect(user) {\r\n\t\t\tthis.newRoomId = parseInt(user)\r\n\t\t\tsetTimeout(() => {\r\n\t\t\t\tthis.$refs.select.$refs.selectUser.showPopup()\r\n\t\t\t}, 100)\r\n\t\t},\r\n\t},\r\n}\r\n","<!-- /* {[The file is published on the basis of YetiForce Public License 6.5 that can be found in the following directory: licenses/LicenseEN.txt or yetiforce.com]} */ -->\r\n<template>\r\n\t<div class=\"full-width\">\r\n\t\t<q-input\r\n\t\t\tref=\"addRoomInput\"\r\n\t\t\tv-model=\"addRoom\"\r\n\t\t\t:placeholder=\"translate('JS_CHAT_ADD_PRIVATE_ROOM')\"\r\n\t\t\t:error=\"!isValid\"\r\n\t\t\t:loading=\"isValidating\"\r\n\t\t\t@input=\"isValid = true\"\r\n\t\t\tdense\r\n\t\t\t@keydown.enter=\"validateRoomName()\"\r\n\t\t>\r\n\t\t\t<template #prepend>\r\n\t\t\t\t<q-btn color=\"primary\" flat dense icon=\"mdi-plus\" @click=\"validateRoomName()\">\r\n\t\t\t\t\t<q-tooltip anchor=\"top middle\">{{ translate('JS_ADD') }}</q-tooltip>\r\n\t\t\t\t</q-btn>\r\n\t\t\t</template>\r\n\t\t\t<template #append>\r\n\t\t\t\t<q-icon class=\"cursor-pointer\" name=\"mdi-close\" @click=\"$emit('update:showAddPrivateRoom', false)\" />\r\n\t\t\t\t<q-tooltip anchor=\"top middle\">{{ translate('JS_CHAT_HIDE_ADD_PANEL') }}</q-tooltip>\r\n\t\t\t</template>\r\n\t\t\t<template #error>\r\n\t\t\t\t{{ errorMessage }}\r\n\t\t\t</template>\r\n\t\t</q-input>\r\n\t\t<RoomPrivateUserSelect\r\n\t\t\tv-show=\"false\"\r\n\t\t\tref=\"select\"\r\n\t\t\tclass=\"q-pb-xs\"\r\n\t\t\t:roomId=\"newRoomId\"\r\n\t\t\t@update:isVisible=\"$refs.select.$refs.selectUser.hidePopup()\"\r\n\t\t\t:dialog=\"true\"\r\n\t\t/>\r\n\t</div>\r\n</template>\r\n<script>\r\nimport RoomPrivateUserSelect from './RoomPrivateUserSelect.vue'\r\n\r\nimport { createNamespacedHelpers } from 'vuex'\r\nconst { mapGetters, mapActions, mapMutations } = createNamespacedHelpers('Chat')\r\n\r\nexport default {\r\n\tname: 'RoomPrivateInput',\r\n\tcomponents: { RoomPrivateUserSelect },\r\n\tprops: {\r\n\t\tshowAddPrivateRoom: {\r\n\t\t\ttype: Boolean,\r\n\t\t},\r\n\t},\r\n\tdata() {\r\n\t\treturn {\r\n\t\t\taddRoom: '',\r\n\t\t\tisValid: true,\r\n\t\t\terrorMessage: '',\r\n\t\t\tisValidating: false,\r\n\t\t\tnewRoomId: 0,\r\n\t\t}\r\n\t},\r\n\twatch: {\r\n\t\tshowAddPrivateRoom() {\r\n\t\t\tif (this.showAddPrivateRoom) {\r\n\t\t\t\tthis.$refs.addRoomInput.focus()\r\n\t\t\t}\r\n\t\t},\r\n\t},\r\n\tcomputed: {\r\n\t\t...mapGetters(['data']),\r\n\t},\r\n\tmethods: {\r\n\t\t...mapActions(['addPrivateRoom']),\r\n\t\t...mapMutations(['updateRooms']),\r\n\t\tvalidateRoomName() {\r\n\t\t\tif (this.addRoom.length && !this.isValidating) {\r\n\t\t\t\tthis.isValidating = true\r\n\t\t\t\tlet roomExist = false\r\n\t\t\t\tfor (let room in this.data.roomList.private) {\r\n\t\t\t\t\tif (this.data.roomList.private[room].name === this.addRoom) {\r\n\t\t\t\t\t\troomExist = true\r\n\t\t\t\t\t\tbreak\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif (!roomExist) {\r\n\t\t\t\t\tthis.addPrivateRoom({ name: this.addRoom }).then(({ result }) => {\r\n\t\t\t\t\t\tthis.showUserSelect(Object.keys(result.private).pop())\r\n\t\t\t\t\t\tthis.addRoom = ''\r\n\t\t\t\t\t\tthis.updateRooms(result)\r\n\t\t\t\t\t\tthis.isValidating = false\r\n\t\t\t\t\t\tthis.$q.notify({\r\n\t\t\t\t\t\t\tposition: 'top',\r\n\t\t\t\t\t\t\tcolor: 'success',\r\n\t\t\t\t\t\t\tmessage: this.translate('JS_CHAT_ROOM_ADDED'),\r\n\t\t\t\t\t\t\ticon: 'mdi-check',\r\n\t\t\t\t\t\t})\r\n\t\t\t\t\t})\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.errorMessage = this.translate('JS_CHAT_ROOM_EXISTS')\r\n\t\t\t\t\tthis.isValid = false\r\n\t\t\t\t\tthis.isValidating = false\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tthis.errorMessage = this.translate('JS_CHAT_ROOM_NAME_EMPTY')\r\n\t\t\t\tthis.isValid = false\r\n\t\t\t}\r\n\t\t},\r\n\t\tshowUserSelect(user) {\r\n\t\t\tthis.newRoomId = parseInt(user)\r\n\t\t\tsetTimeout(() => {\r\n\t\t\t\tthis.$refs.select.$refs.selectUser.showPopup()\r\n\t\t\t}, 100)\r\n\t\t},\r\n\t},\r\n}\r\n</script>\r\n<style lang=\"sass\"></style>\r\n","//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\r\nimport { createNamespacedHelpers } from 'vuex'\r\nconst { mapGetters, mapMutations } = createNamespacedHelpers('Chat')\r\n\r\nexport default {\r\n\tname: 'RoomSelect',\r\n\tprops: {\r\n\t\tisVisible: {\r\n\t\t\ttype: Boolean,\r\n\t\t},\r\n\t\toptions: {\r\n\t\t\ttype: Array,\r\n\t\t},\r\n\t\tfilter: {\r\n\t\t\ttype: Function,\r\n\t\t\trequired: false,\r\n\t\t},\r\n\t\toptionValue: {\r\n\t\t\ttype: String,\r\n\t\t\tdefault: 'id',\r\n\t\t},\r\n\t\toptionLabel: {\r\n\t\t\ttype: String,\r\n\t\t\tdefault: 'label',\r\n\t\t},\r\n\t\tdebounce: {\r\n\t\t\ttype: Number,\r\n\t\t\tdefault: 0,\r\n\t\t},\r\n\t},\r\n\tdata() {\r\n\t\treturn {\r\n\t\t\tselectedOption: null,\r\n\t\t\tcomputedOptions: [],\r\n\t\t}\r\n\t},\r\n\tcomputed: {\r\n\t\thasOptionSlot() {\r\n\t\t\treturn !!this.$scopedSlots.option\r\n\t\t},\r\n\t},\r\n\twatch: {\r\n\t\tisVisible(val) {\r\n\t\t\tif (val) {\r\n\t\t\t\tsetTimeout(() => {\r\n\t\t\t\t\tthis.$refs.selectedOption.showPopup()\r\n\t\t\t\t}, 100)\r\n\t\t\t} else {\r\n\t\t\t\tthis.selectedOption = null\r\n\t\t\t\tthis.$refs.selectedOption.hidePopup()\r\n\t\t\t}\r\n\t\t},\r\n\t},\r\n\tmethods: {\r\n\t\tcallbackInput(e) {\r\n\t\t\tthis.$emit('input', e)\r\n\t\t},\r\n\t\thideSelect() {\r\n\t\t\tthis.$emit('update:isVisible', false)\r\n\t\t},\r\n\t},\r\n}\r\n","//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\r\nimport RoomSelect from './RoomSelect.vue'\r\nimport { createNamespacedHelpers } from 'vuex'\r\nconst { mapGetters, mapMutations, mapActions } = createNamespacedHelpers('Chat')\r\nexport default {\r\n\tname: 'RoomSelectAsync',\r\n\tcomponents: { RoomSelect },\r\n\tprops: {\r\n\t\tisVisible: {\r\n\t\t\ttype: Boolean,\r\n\t\t},\r\n\t\troomType: {\r\n\t\t\ttype: String,\r\n\t\t\trequired: true,\r\n\t\t},\r\n\t},\r\n\tdata() {\r\n\t\treturn {\r\n\t\t\tasyncOptions: [],\r\n\t\t\tallOptions: [],\r\n\t\t\tsearchDebounce: 0,\r\n\t\t}\r\n\t},\r\n\tcomputed: {\r\n\t\tgetIsVisible: {\r\n\t\t\tget() {\r\n\t\t\t\treturn this.isVisible\r\n\t\t\t},\r\n\t\t\tset(isVisible) {\r\n\t\t\t\tthis.$emit('update:isVisible', isVisible)\r\n\t\t\t},\r\n\t\t},\r\n\t},\r\n\tmethods: {\r\n\t\t...mapActions(['fetchRoomsUnpinned', 'pinRoom']),\r\n\t\tasyncFilter(val, update) {\r\n\t\t\tif (val === '') {\r\n\t\t\t\tthis.fetchRoomsUnpinned({ roomType: this.roomType }).then((data) => {\r\n\t\t\t\t\tlet result = data ? Object.values(data) : []\r\n\t\t\t\t\tupdate(() => {\r\n\t\t\t\t\t\tthis.allOptions = this.asyncOptions = result\r\n\t\t\t\t\t})\r\n\t\t\t\t})\r\n\t\t\t} else {\r\n\t\t\t\tupdate(() => {\r\n\t\t\t\t\tconst needle = val.toLowerCase()\r\n\t\t\t\t\tthis.asyncOptions = this.allOptions.filter((v) => v.name.toLowerCase().indexOf(needle) > -1)\r\n\t\t\t\t})\r\n\t\t\t}\r\n\t\t},\r\n\t},\r\n}\r\n","<!-- /* {[The file is published on the basis of YetiForce Public License 6.5 that can be found in the following directory: licenses/LicenseEN.txt or yetiforce.com]} */ -->\r\n<template>\r\n\t<RoomSelect\r\n\t\tclass=\"q-pb-xs\"\r\n\t\t:options=\"asyncOptions\"\r\n\t\t:filter=\"asyncFilter\"\r\n\t\t:isVisible.sync=\"getIsVisible\"\r\n\t\t:debounce=\"searchDebounce\"\r\n\t\toption-value=\"recordid\"\r\n\t\toption-label=\"name\"\r\n\t\t@input=\"pinRoom({ recordId: $event, roomType })\"\r\n\t>\r\n\t\t<template #option=\"{ scope }\">\r\n\t\t\t<q-item dense v-bind=\"scope.itemProps\" v-on=\"scope.itemEvents\">\r\n\t\t\t\t<q-item-section>\r\n\t\t\t\t\t{{ scope.opt.name }}\r\n\t\t\t\t</q-item-section>\r\n\t\t\t</q-item>\r\n\t\t</template>\r\n\t</RoomSelect>\r\n</template>\r\n<script>\r\nimport RoomSelect from './RoomSelect.vue'\r\nimport { createNamespacedHelpers } from 'vuex'\r\nconst { mapGetters, mapMutations, mapActions } = createNamespacedHelpers('Chat')\r\nexport default {\r\n\tname: 'RoomSelectAsync',\r\n\tcomponents: { RoomSelect },\r\n\tprops: {\r\n\t\tisVisible: {\r\n\t\t\ttype: Boolean,\r\n\t\t},\r\n\t\troomType: {\r\n\t\t\ttype: String,\r\n\t\t\trequired: true,\r\n\t\t},\r\n\t},\r\n\tdata() {\r\n\t\treturn {\r\n\t\t\tasyncOptions: [],\r\n\t\t\tallOptions: [],\r\n\t\t\tsearchDebounce: 0,\r\n\t\t}\r\n\t},\r\n\tcomputed: {\r\n\t\tgetIsVisible: {\r\n\t\t\tget() {\r\n\t\t\t\treturn this.isVisible\r\n\t\t\t},\r\n\t\t\tset(isVisible) {\r\n\t\t\t\tthis.$emit('update:isVisible', isVisible)\r\n\t\t\t},\r\n\t\t},\r\n\t},\r\n\tmethods: {\r\n\t\t...mapActions(['fetchRoomsUnpinned', 'pinRoom']),\r\n\t\tasyncFilter(val, update) {\r\n\t\t\tif (val === '') {\r\n\t\t\t\tthis.fetchRoomsUnpinned({ roomType: this.roomType }).then((data) => {\r\n\t\t\t\t\tlet result = data ? Object.values(data) : []\r\n\t\t\t\t\tupdate(() => {\r\n\t\t\t\t\t\tthis.allOptions = this.asyncOptions = result\r\n\t\t\t\t\t})\r\n\t\t\t\t})\r\n\t\t\t} else {\r\n\t\t\t\tupdate(() => {\r\n\t\t\t\t\tconst needle = val.toLowerCase()\r\n\t\t\t\t\tthis.asyncOptions = this.allOptions.filter((v) => v.name.toLowerCase().indexOf(needle) > -1)\r\n\t\t\t\t})\r\n\t\t\t}\r\n\t\t},\r\n\t},\r\n}\r\n</script>\r\n<style lang=\"sass\" scoped></style>\r\n","//\n//\n//\n//\n//\n//\n\r\nimport { createNamespacedHelpers } from 'vuex'\r\nconst { mapActions } = createNamespacedHelpers('Chat')\r\nexport default {\r\n\tname: 'RoomUnpinButton',\r\n\tprops: {\r\n\t\troomType: {\r\n\t\t\ttype: String,\r\n\t\t\trequired: true,\r\n\t\t},\r\n\t\trecordId: {\r\n\t\t\ttype: Number,\r\n\t\t\trequired: true,\r\n\t\t},\r\n\t},\r\n\tmethods: {\r\n\t\t...mapActions(['unpinRoom']),\r\n\t},\r\n}\r\n","/**\n * Helper methods\n *\n * @description Helper methods\n * @license YetiForce Public License 6.5\n * @author Tomasz Poradzewski <t.poradzewski@yetiforce.com>\n */\nexport function getGroupIcon(roomType) {\n\tswitch (roomType) {\n\t\tcase 'crm':\n\t\t\treturn 'mdi-vector-link'\n\t\tcase 'group':\n\t\t\treturn 'yfi-groups'\n\t\tcase 'global':\n\t\t\treturn 'yfi-global-room'\n\t\tcase 'private':\n\t\t\treturn 'yfi-group-room'\n\t\tcase 'user':\n\t\t\treturn 'yfi-user'\n\t}\n}\n\n/**\n * Helper function to merge multiple objects with reactivity enabled\n *\n * @param   {object}  target target object\n * @param   {object[]}  source objects\n *\n * @return  {object}  merged object\n */\nexport function mergeDeepReactive(target, ...sources) {\n\tif (!sources.length) {\n\t\treturn Vue.observable(target)\n\t}\n\tconst isObject = (item) => {\n\t\treturn item && typeof item === 'object' && !Array.isArray(item)\n\t}\n\tconst source = sources.shift()\n\tif (isObject(target) && isObject(source)) {\n\t\tfor (const key in source) {\n\t\t\tif (isObject(source[key])) {\n\t\t\t\tif (typeof target[key] === 'undefined') {\n\t\t\t\t\tVue.set(target, key, {})\n\t\t\t\t}\n\t\t\t\tmergeDeepReactive(target[key], source[key])\n\t\t\t} else if (Array.isArray(source[key]) && !source[key].length && isObject(target[key])) {\n\t\t\t\tVue.set(target, key, target[key])\n\t\t\t} else {\n\t\t\t\tVue.set(target, key, source[key])\n\t\t\t}\n\t\t}\n\t}\n\treturn mergeDeepReactive(target, ...sources)\n}\n","//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\r\nimport RoomSelectAsync from './RoomSelectAsync.vue'\r\nimport RoomUnpinButton from './RoomUnpinButton.vue'\r\nimport { getGroupIcon } from '../../utils/utils.js'\r\nimport { createNamespacedHelpers } from 'vuex'\r\nconst { mapGetters, mapMutations, mapActions } = createNamespacedHelpers('Chat')\r\nexport default {\r\n\tname: 'RoomList',\r\n\tcomponents: { RoomSelectAsync, RoomUnpinButton },\r\n\tprops: {\r\n\t\troomType: {\r\n\t\t\ttype: String,\r\n\t\t\trequired: true,\r\n\t\t},\r\n\t\troomData: {\r\n\t\t\ttype: Array,\r\n\t\t\trequired: true,\r\n\t\t},\r\n\t\tisVisible: {\r\n\t\t\ttype: Boolean,\r\n\t\t\tdefault: true,\r\n\t\t},\r\n\t\tselectRoom: {\r\n\t\t\ttype: Boolean,\r\n\t\t\tdefault: true,\r\n\t\t},\r\n\t},\r\n\tdata() {\r\n\t\treturn {\r\n\t\t\tshowAllRooms: true,\r\n\t\t\tisSelectRoomVisible: false,\r\n\t\t}\r\n\t},\r\n\tcomputed: {\r\n\t\t...mapGetters(['data', 'isSoundNotification', 'roomSoundNotificationsOff', 'layout', 'roomsExpanded']),\r\n\t\titemAvatarClass() {\r\n\t\t\treturn [this.showAllRoomsButton ? 'flex-row items-center q-pr-none' : '']\r\n\t\t},\r\n\t\tshowAllRoomsButton() {\r\n\t\t\treturn this.roomData.length\r\n\t\t},\r\n\t\tisRoomExpanded() {\r\n\t\t\treturn this.roomsExpanded.includes(this.roomType)\r\n\t\t},\r\n\t},\r\n\twatch: {\r\n\t\tisSelectRoomVisible(value) {\r\n\t\t\tthis.$emit('toggleSelectRoom', value)\r\n\t\t},\r\n\t},\r\n\tmethods: {\r\n\t\t...mapActions(['fetchRoom', 'toggleRoomSoundNotification', 'toggleRoomExpanded', 'mobileMode']),\r\n\t\t...mapMutations(['setLeftPanelMobile']),\r\n\t\tgetGroupIcon,\r\n\t\tisSoundActive(roomType, id) {\r\n\t\t\treturn this.isSoundNotification && !this.roomSoundNotificationsOff[roomType].includes(id)\r\n\t\t},\r\n\t\tonRoomClick({ id, roomType }) {\r\n\t\t\tthis.fetchRoom({ id, roomType })\r\n\t\t\tif (this.mobileMode) {\r\n\t\t\t\tthis.setLeftPanelMobile(false)\r\n\t\t\t}\r\n\t\t},\r\n\t\ttoggleRoomSelect() {\r\n\t\t\tthis.isSelectRoomVisible = !this.isSelectRoomVisible\r\n\t\t},\r\n\t},\r\n}\r\n","<!-- /* {[The file is published on the basis of YetiForce Public License 6.5 that can be found in the following directory: licenses/LicenseEN.txt or yetiforce.com]} */ -->\r\n<template>\r\n\t<q-list v-if=\"isVisible\" class=\"q-mb-none\" dense>\r\n\t\t<q-item-label class=\"flex items-center text-bold text-muted q-py-sm q-px-md\" @click=\"showAllRoomsButton ? toggleRoomExpanded(roomType) : ''\">\r\n\t\t\t<q-item-section avatar :class=\"itemAvatarClass\">\r\n\t\t\t\t<YfIcon :icon=\"getGroupIcon(roomType)\" :size=\"layout.drawer.fs\" :style=\"roomType === 'user' ? { 'margin-left': '-2px', 'margin-right': '2px' } : {}\" />\r\n\t\t\t\t<q-btn v-show=\"showAllRoomsButton\" :icon=\"isRoomExpanded ? 'mdi-chevron-up' : 'mdi-chevron-down'\" dense flat round color=\"primary\" class=\"q-mx-xs\">\r\n\t\t\t\t\t<q-tooltip>{{ translate(isRoomExpanded ? 'JS_CHAT_HIDE_ROOMS' : 'JS_CHAT_SHOW_ROOMS') }}</q-tooltip>\r\n\t\t\t\t</q-btn>\r\n\t\t\t</q-item-section>\r\n\t\t\t{{ translate(`JS_CHAT_ROOM_${roomType.toUpperCase()}`) }}\r\n\t\t\t<div class=\"q-ml-auto\" @click.stop>\r\n\t\t\t\t<slot name=\"labelRight\"> </slot>\r\n\t\t\t\t<slot v-if=\"selectRoom\" name=\"selectRoomButton\">\r\n\t\t\t\t\t<q-btn dense flat round size=\"sm\" color=\"primary\" icon=\"mdi-magnify\" @click=\"toggleRoomSelect()\">\r\n\t\t\t\t\t\t<q-tooltip>{{ translate(`JS_CHAT_ADD_ROOM_${roomType.toUpperCase()}`) }}</q-tooltip>\r\n\t\t\t\t\t</q-btn>\r\n\t\t\t\t</slot>\r\n\t\t\t\t<q-icon class=\"q-pr-xs\" :size=\"layout.drawer.fs\" name=\"mdi-information\">\r\n\t\t\t\t\t<q-tooltip>{{ translate(`JS_CHAT_ROOM_DESCRIPTION_${roomType.toUpperCase()}`) }}</q-tooltip>\r\n\t\t\t\t</q-icon>\r\n\t\t\t</div>\r\n\t\t</q-item-label>\r\n\t\t<slot name=\"aboveItems\"> </slot>\r\n\t\t<slot v-if=\"selectRoom\" name=\"selectRoom\">\r\n\t\t\t<q-item v-show=\"isSelectRoomVisible\">\r\n\t\t\t\t<RoomSelectAsync class=\"q-pb-xs\" :roomType=\"roomType\" :isVisible.sync=\"isSelectRoomVisible\" />\r\n\t\t\t</q-item>\r\n\t\t</slot>\r\n\t\t<template v-for=\"(room, roomId) of roomData\">\r\n\t\t\t<q-item\r\n\t\t\t\tv-show=\"isRoomExpanded && room.name !== undefined\"\r\n\t\t\t\tclass=\"q-pl-sm u-hover-container\"\r\n\t\t\t\tclickable\r\n\t\t\t\tv-ripple\r\n\t\t\t\t:key=\"roomId\"\r\n\t\t\t\t:active=\"data.currentRoom.recordId === room.recordid && data.currentRoom.roomType === roomType\"\r\n\t\t\t\tactive-class=\"bg-teal-1 text-grey-8\"\r\n\t\t\t\t@click=\"onRoomClick({ id: room.recordid, roomType })\"\r\n\t\t\t>\r\n\t\t\t\t<div class=\"full-width flex items-center justify-between no-wrap\">\r\n\t\t\t\t\t<div class=\"ellipsis-2-lines\">\r\n\t\t\t\t\t\t<slot name=\"itemAvatar\" :room=\"room\" />\r\n\t\t\t\t\t\t{{ room.name }}\r\n\t\t\t\t\t</div>\r\n\t\t\t\t\t<div class=\"flex items-center justify-end no-wrap\">\r\n\t\t\t\t\t\t<div class=\"text-no-wrap\">\r\n\t\t\t\t\t\t\t<transition appear enter-active-class=\"animate__animated animate__flash\" mode=\"out-in\">\r\n\t\t\t\t\t\t\t\t<q-badge\r\n\t\t\t\t\t\t\t\t\tv-if=\"room.cnt_new_message !== undefined && room.cnt_new_message > 0\"\r\n\t\t\t\t\t\t\t\t\tcolor=\"danger\"\r\n\t\t\t\t\t\t\t\t\t:label=\"room.cnt_new_message\"\r\n\t\t\t\t\t\t\t\t\t:key=\"room.cnt_new_message\"\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t</transition>\r\n\t\t\t\t\t\t\t<slot name=\"itemRight\" :room=\"room\"></slot>\r\n\t\t\t\t\t\t\t<RoomUnpinButton v-if=\"selectRoom\" :roomType=\"roomType\" :recordId=\"room.recordid\" />\r\n\t\t\t\t\t\t\t<q-btn\r\n\t\t\t\t\t\t\t\t@click.stop=\"toggleRoomSoundNotification({ roomType, id: room.recordid })\"\r\n\t\t\t\t\t\t\t\tdense\r\n\t\t\t\t\t\t\t\tround\r\n\t\t\t\t\t\t\t\tflat\r\n\t\t\t\t\t\t\t\tsize=\"xs\"\r\n\t\t\t\t\t\t\t\t:icon=\"isSoundActive(roomType, room.recordid) ? 'mdi-volume-high' : 'mdi-volume-off'\"\r\n\t\t\t\t\t\t\t\t:color=\"isSoundActive(roomType, room.recordid) ? 'primary' : ''\"\r\n\t\t\t\t\t\t\t\t:disable=\"!isSoundNotification\"\r\n\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t<q-tooltip>{{ translate(isSoundActive(roomType, room.recordid) ? 'JS_CHAT_SOUND_ON' : 'JS_CHAT_SOUND_OFF') }}</q-tooltip>\r\n\t\t\t\t\t\t\t</q-btn>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\t\t\t</q-item>\r\n\t\t</template>\r\n\t\t<slot name=\"belowItems\"></slot>\r\n\t</q-list>\r\n</template>\r\n<script>\r\nimport RoomSelectAsync from './RoomSelectAsync.vue'\r\nimport RoomUnpinButton from './RoomUnpinButton.vue'\r\nimport { getGroupIcon } from '../../utils/utils.js'\r\nimport { createNamespacedHelpers } from 'vuex'\r\nconst { mapGetters, mapMutations, mapActions } = createNamespacedHelpers('Chat')\r\nexport default {\r\n\tname: 'RoomList',\r\n\tcomponents: { RoomSelectAsync, RoomUnpinButton },\r\n\tprops: {\r\n\t\troomType: {\r\n\t\t\ttype: String,\r\n\t\t\trequired: true,\r\n\t\t},\r\n\t\troomData: {\r\n\t\t\ttype: Array,\r\n\t\t\trequired: true,\r\n\t\t},\r\n\t\tisVisible: {\r\n\t\t\ttype: Boolean,\r\n\t\t\tdefault: true,\r\n\t\t},\r\n\t\tselectRoom: {\r\n\t\t\ttype: Boolean,\r\n\t\t\tdefault: true,\r\n\t\t},\r\n\t},\r\n\tdata() {\r\n\t\treturn {\r\n\t\t\tshowAllRooms: true,\r\n\t\t\tisSelectRoomVisible: false,\r\n\t\t}\r\n\t},\r\n\tcomputed: {\r\n\t\t...mapGetters(['data', 'isSoundNotification', 'roomSoundNotificationsOff', 'layout', 'roomsExpanded']),\r\n\t\titemAvatarClass() {\r\n\t\t\treturn [this.showAllRoomsButton ? 'flex-row items-center q-pr-none' : '']\r\n\t\t},\r\n\t\tshowAllRoomsButton() {\r\n\t\t\treturn this.roomData.length\r\n\t\t},\r\n\t\tisRoomExpanded() {\r\n\t\t\treturn this.roomsExpanded.includes(this.roomType)\r\n\t\t},\r\n\t},\r\n\twatch: {\r\n\t\tisSelectRoomVisible(value) {\r\n\t\t\tthis.$emit('toggleSelectRoom', value)\r\n\t\t},\r\n\t},\r\n\tmethods: {\r\n\t\t...mapActions(['fetchRoom', 'toggleRoomSoundNotification', 'toggleRoomExpanded', 'mobileMode']),\r\n\t\t...mapMutations(['setLeftPanelMobile']),\r\n\t\tgetGroupIcon,\r\n\t\tisSoundActive(roomType, id) {\r\n\t\t\treturn this.isSoundNotification && !this.roomSoundNotificationsOff[roomType].includes(id)\r\n\t\t},\r\n\t\tonRoomClick({ id, roomType }) {\r\n\t\t\tthis.fetchRoom({ id, roomType })\r\n\t\t\tif (this.mobileMode) {\r\n\t\t\t\tthis.setLeftPanelMobile(false)\r\n\t\t\t}\r\n\t\t},\r\n\t\ttoggleRoomSelect() {\r\n\t\t\tthis.isSelectRoomVisible = !this.isSelectRoomVisible\r\n\t\t},\r\n\t},\r\n}\r\n</script>\r\n<style lang=\"sass\" scoped></style>\r\n","//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\r\nimport RoomPrivateInput from './RoomPrivateInput.vue'\r\nimport RoomList from './RoomList.vue'\r\nimport { createNamespacedHelpers } from 'vuex'\r\nconst { mapGetters, mapMutations, mapActions } = createNamespacedHelpers('Chat')\r\nexport default {\r\n\tname: 'RoomPrivate',\r\n\tcomponents: { RoomPrivateInput, RoomList },\r\n\tprops: {\r\n\t\troomData: {\r\n\t\t\ttype: Array,\r\n\t\t\trequired: true,\r\n\t\t},\r\n\t\troomType: {\r\n\t\t\ttype: String,\r\n\t\t\trequired: true,\r\n\t\t},\r\n\t\tfilterRooms: {\r\n\t\t\ttype: String,\r\n\t\t\trequired: true,\r\n\t\t},\r\n\t},\r\n\tdata() {\r\n\t\treturn {\r\n\t\t\tconfirm: false,\r\n\t\t\tisArchiving: false,\r\n\t\t\tisAddInputVisible: false,\r\n\t\t\troomToArchive: {},\r\n\t\t}\r\n\t},\r\n\tcomputed: {\r\n\t\t...mapGetters(['data', 'config']),\r\n\t\tarePrivateRooms() {\r\n\t\t\treturn Object.keys(this.data.roomList.private).length\r\n\t\t},\r\n\t\tisUserModerator() {\r\n\t\t\treturn (room) => {\r\n\t\t\t\treturn room.creatorid === CONFIG.userId || this.config.isAdmin\r\n\t\t\t}\r\n\t\t},\r\n\t\tisHiddenOnHover() {\r\n\t\t\treturn (roomName) => {\r\n\t\t\t\treturn this.$q.platform.is.desktop && (!this.isArchiving || this.roomToArchive.name !== roomName)\r\n\t\t\t}\r\n\t\t},\r\n\t},\r\n\tmethods: {\r\n\t\t...mapActions(['archivePrivateRoom']),\r\n\t\tshowArchiveDialog(room) {\r\n\t\t\tthis.isArchiving = true\r\n\t\t\tthis.confirm = true\r\n\t\t\tthis.roomToArchive = room\r\n\t\t},\r\n\t\tarchive(roomToArchive) {\r\n\t\t\tthis.archivePrivateRoom({ recordId: roomToArchive.recordid }).then((e) => {\r\n\t\t\t\tthis.isArchiving = false\r\n\t\t\t})\r\n\t\t},\r\n\t\ttoggleAddInput() {\r\n\t\t\tthis.isAddInputVisible = !this.isAddInputVisible\r\n\t\t},\r\n\t},\r\n}\r\n","//\n//\n//\n//\n\r\nimport RoomList from './RoomList.vue'\r\nimport { createNamespacedHelpers } from 'vuex'\r\nconst { mapGetters, mapMutations, mapActions } = createNamespacedHelpers('Chat')\r\nexport default {\r\n\tname: 'RoomGroup',\r\n\tcomponents: { RoomList },\r\n\tprops: {\r\n\t\troomData: {\r\n\t\t\ttype: Array,\r\n\t\t\trequired: true,\r\n\t\t},\r\n\t\troomType: {\r\n\t\t\ttype: String,\r\n\t\t\trequired: true,\r\n\t\t},\r\n\t\tfilterRooms: {\r\n\t\t\ttype: String,\r\n\t\t\trequired: true,\r\n\t\t},\r\n\t},\r\n}\r\n","//\n//\n//\n//\n\r\nimport RoomList from './RoomList.vue'\r\nimport { createNamespacedHelpers } from 'vuex'\r\nconst { mapGetters, mapMutations, mapActions } = createNamespacedHelpers('Chat')\r\nexport default {\r\n\tname: 'RoomGlobal',\r\n\tcomponents: { RoomList },\r\n\tprops: {\r\n\t\troomData: {\r\n\t\t\ttype: Array,\r\n\t\t\trequired: true,\r\n\t\t},\r\n\t\troomType: {\r\n\t\t\ttype: String,\r\n\t\t\trequired: true,\r\n\t\t},\r\n\t\tfilterRooms: {\r\n\t\t\ttype: String,\r\n\t\t\trequired: true,\r\n\t\t},\r\n\t},\r\n}\r\n","//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\r\nimport RoomSelect from './RoomSelect.vue'\r\nimport RoomList from './RoomList.vue'\r\nimport { createNamespacedHelpers } from 'vuex'\r\nconst { mapGetters, mapActions } = createNamespacedHelpers('Chat')\r\nexport default {\r\n\tname: 'RoomCrm',\r\n\tcomponents: { RoomSelect, RoomList },\r\n\tprops: {\r\n\t\troomData: {\r\n\t\t\ttype: Array,\r\n\t\t\trequired: true,\r\n\t\t},\r\n\t\troomType: {\r\n\t\t\ttype: String,\r\n\t\t\trequired: true,\r\n\t\t},\r\n\t\tfilterRooms: {\r\n\t\t\ttype: String,\r\n\t\t\trequired: true,\r\n\t\t},\r\n\t},\r\n\tdata() {\r\n\t\treturn {\r\n\t\t\tshowAddRoomPanel: false,\r\n\t\t\tisSelectVisible: false,\r\n\t\t\tmodulesList: [],\r\n\t\t}\r\n\t},\r\n\tcomputed: {\r\n\t\t...mapGetters(['config']),\r\n\t},\r\n\tcreated() {\r\n\t\tthis.modulesList = this.config.chatModules\r\n\t},\r\n\tmethods: {\r\n\t\tupdateRoomListSelect(val) {\r\n\t\t\tthis.$refs.roomList.toggleRoomSelect()\r\n\t\t},\r\n\t\t...mapActions(['fetchRoomList']),\r\n\t\tshowRecordsModal(val) {\r\n\t\t\tapp.showRecordsList({ module: val, src_module: val }, (_modal, instance) => {\r\n\t\t\t\tinstance.setSelectEvent((responseData) => {\r\n\t\t\t\t\tAppConnector.request({\r\n\t\t\t\t\t\tmodule: 'Chat',\r\n\t\t\t\t\t\taction: 'Room',\r\n\t\t\t\t\t\tmode: 'addToFavorites',\r\n\t\t\t\t\t\troomType: 'crm',\r\n\t\t\t\t\t\trecordId: responseData.id,\r\n\t\t\t\t\t}).done(({ result }) => {\r\n\t\t\t\t\t\tthis.fetchRoomList()\r\n\t\t\t\t\t})\r\n\t\t\t\t})\r\n\t\t\t})\r\n\t\t},\r\n\t\tfilter(val, update) {\r\n\t\t\tif (val === '') {\r\n\t\t\t\tupdate(() => {\r\n\t\t\t\t\tthis.modulesList = this.config.chatModules\r\n\t\t\t\t})\r\n\t\t\t\treturn\r\n\t\t\t}\r\n\t\t\tupdate(() => {\r\n\t\t\t\tconst needle = val.toLowerCase()\r\n\t\t\t\tthis.modulesList = this.config.chatModules.filter((v) => v.label.toLowerCase().indexOf(needle) > -1)\r\n\t\t\t})\r\n\t\t},\r\n\t\tonToggleSelectRoom(val) {\r\n\t\t\tthis.isSelectVisible = val\r\n\t\t},\r\n\t},\r\n}\r\n","<!-- /* {[The file is published on the basis of YetiForce Public License 6.5 that can be found in the following directory: licenses/LicenseEN.txt or yetiforce.com]} */ -->\r\n<template>\r\n\t<RoomList\r\n\t\tref=\"roomList\"\r\n\t\t:isVisible=\"config.dynamicAddingRooms\"\r\n\t\t:roomData=\"roomData\"\r\n\t\t:roomType=\"roomType\"\r\n\t\t:hideUnpinned=\"false\"\r\n\t\t:filterRooms=\"filterRooms\"\r\n\t\t@toggleSelectRoom=\"onToggleSelectRoom\"\r\n\t>\r\n\t\t<template #itemRight=\"{ room }\">\r\n\t\t\t<q-btn\r\n\t\t\t\tsize=\"xs\"\r\n\t\t\t\tdense\r\n\t\t\t\tround\r\n\t\t\t\tflat\r\n\t\t\t\tcolor=\"primary\"\r\n\t\t\t\t:class=\"[room && room.moduleName && room.recordid ? 'js-popover-tooltip--record' : '', 'ellipsis']\"\r\n\t\t\t\t@click.stop\r\n\t\t\t\ticon=\"mdi-link-variant\"\r\n\t\t\t\t:href=\"`index.php?module=${room.moduleName}&view=Detail&record=${room.recordid}`\"\r\n\t\t\t/>\r\n\t\t</template>\r\n\t\t<template #itemAvatar=\"{ room }\">\r\n\t\t\t<YfIcon class=\"inline-block\" :icon=\"'yfm-' + room.moduleName\" style=\"vertical-align: text-bottom\" size=\"inherit\" />\r\n\t\t</template>\r\n\t\t<template #selectRoom>\r\n\t\t\t<q-item v-if=\"config.dynamicAddingRooms\" v-show=\"isSelectVisible\">\r\n\t\t\t\t<RoomSelect\r\n\t\t\t\t\tclass=\"q-pb-xs\"\r\n\t\t\t\t\t:options=\"modulesList\"\r\n\t\t\t\t\t:isVisible.sync=\"isSelectVisible\"\r\n\t\t\t\t\t:filter=\"filter\"\r\n\t\t\t\t\t@input=\"showRecordsModal\"\r\n\t\t\t\t\t@update:isVisible=\"updateRoomListSelect\"\r\n\t\t\t\t>\r\n\t\t\t\t\t<template #prepend=\"{ selected }\">\r\n\t\t\t\t\t\t<q-icon class=\"cursor-pointer\" name=\"mdi-magnify\" @click.prevent=\"showRecordsModal(selected)\" />\r\n\t\t\t\t\t\t<q-tooltip anchor=\"top middle\">{{ translate('JS_CHAT_SEARCH_RECORDS_OF_THE_SELECTED_MODULE') }}</q-tooltip>\r\n\t\t\t\t\t</template>\r\n\t\t\t\t\t<template #option=\"{ scope }\">\r\n\t\t\t\t\t\t<q-item dense v-bind=\"scope.itemProps\" v-on=\"scope.itemEvents\">\r\n\t\t\t\t\t\t\t<q-item-section avatar>\r\n\t\t\t\t\t\t\t\t<YfIcon :icon=\"`yfm-${scope.opt.id}`\" />\r\n\t\t\t\t\t\t\t</q-item-section>\r\n\t\t\t\t\t\t\t<q-item-section>\r\n\t\t\t\t\t\t\t\t{{ scope.opt.label }}\r\n\t\t\t\t\t\t\t</q-item-section>\r\n\t\t\t\t\t\t</q-item>\r\n\t\t\t\t\t</template>\r\n\t\t\t\t</RoomSelect>\r\n\t\t\t</q-item>\r\n\t\t</template>\r\n\t</RoomList>\r\n</template>\r\n<script>\r\nimport RoomSelect from './RoomSelect.vue'\r\nimport RoomList from './RoomList.vue'\r\nimport { createNamespacedHelpers } from 'vuex'\r\nconst { mapGetters, mapActions } = createNamespacedHelpers('Chat')\r\nexport default {\r\n\tname: 'RoomCrm',\r\n\tcomponents: { RoomSelect, RoomList },\r\n\tprops: {\r\n\t\troomData: {\r\n\t\t\ttype: Array,\r\n\t\t\trequired: true,\r\n\t\t},\r\n\t\troomType: {\r\n\t\t\ttype: String,\r\n\t\t\trequired: true,\r\n\t\t},\r\n\t\tfilterRooms: {\r\n\t\t\ttype: String,\r\n\t\t\trequired: true,\r\n\t\t},\r\n\t},\r\n\tdata() {\r\n\t\treturn {\r\n\t\t\tshowAddRoomPanel: false,\r\n\t\t\tisSelectVisible: false,\r\n\t\t\tmodulesList: [],\r\n\t\t}\r\n\t},\r\n\tcomputed: {\r\n\t\t...mapGetters(['config']),\r\n\t},\r\n\tcreated() {\r\n\t\tthis.modulesList = this.config.chatModules\r\n\t},\r\n\tmethods: {\r\n\t\tupdateRoomListSelect(val) {\r\n\t\t\tthis.$refs.roomList.toggleRoomSelect()\r\n\t\t},\r\n\t\t...mapActions(['fetchRoomList']),\r\n\t\tshowRecordsModal(val) {\r\n\t\t\tapp.showRecordsList({ module: val, src_module: val }, (_modal, instance) => {\r\n\t\t\t\tinstance.setSelectEvent((responseData) => {\r\n\t\t\t\t\tAppConnector.request({\r\n\t\t\t\t\t\tmodule: 'Chat',\r\n\t\t\t\t\t\taction: 'Room',\r\n\t\t\t\t\t\tmode: 'addToFavorites',\r\n\t\t\t\t\t\troomType: 'crm',\r\n\t\t\t\t\t\trecordId: responseData.id,\r\n\t\t\t\t\t}).done(({ result }) => {\r\n\t\t\t\t\t\tthis.fetchRoomList()\r\n\t\t\t\t\t})\r\n\t\t\t\t})\r\n\t\t\t})\r\n\t\t},\r\n\t\tfilter(val, update) {\r\n\t\t\tif (val === '') {\r\n\t\t\t\tupdate(() => {\r\n\t\t\t\t\tthis.modulesList = this.config.chatModules\r\n\t\t\t\t})\r\n\t\t\t\treturn\r\n\t\t\t}\r\n\t\t\tupdate(() => {\r\n\t\t\t\tconst needle = val.toLowerCase()\r\n\t\t\t\tthis.modulesList = this.config.chatModules.filter((v) => v.label.toLowerCase().indexOf(needle) > -1)\r\n\t\t\t})\r\n\t\t},\r\n\t\tonToggleSelectRoom(val) {\r\n\t\t\tthis.isSelectVisible = val\r\n\t\t},\r\n\t},\r\n}\r\n</script>\r\n<style lang=\"sass\" scoped></style>\r\n","//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\r\nimport RoomList from './RoomList.vue'\r\nimport { createNamespacedHelpers } from 'vuex'\r\nconst { mapGetters } = createNamespacedHelpers('Chat')\r\nexport default {\r\n\tname: 'RoomUser',\r\n\tcomponents: { RoomList },\r\n\tprops: {\r\n\t\troomData: {\r\n\t\t\ttype: Array,\r\n\t\t\trequired: true,\r\n\t\t},\r\n\t\troomType: {\r\n\t\t\ttype: String,\r\n\t\t\trequired: true,\r\n\t\t},\r\n\t\tfilterRooms: {\r\n\t\t\ttype: String,\r\n\t\t\trequired: true,\r\n\t\t},\r\n\t},\r\n\tcomputed: {\r\n\t\t...mapGetters(['config']),\r\n\t},\r\n}\r\n","//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\r\nimport RoomPrivate from './Rooms/RoomPrivate.vue'\r\nimport RoomGroup from './Rooms/RoomGroup.vue'\r\nimport RoomGlobal from './Rooms/RoomGlobal.vue'\r\nimport RoomCrm from './Rooms/RoomCrm.vue'\r\nimport RoomUser from './Rooms/RoomUser.vue'\r\nimport { createNamespacedHelpers } from 'vuex'\r\nconst { mapGetters, mapMutations } = createNamespacedHelpers('Chat')\r\nexport default {\r\n\tname: 'ChatPanelLeft',\r\n\tcomponents: { RoomPrivate, RoomGroup, RoomGlobal, RoomCrm, RoomUser },\r\n\tdata() {\r\n\t\treturn {\r\n\t\t\tfilterRooms: '',\r\n\t\t\troomsMap: {\r\n\t\t\t\tprivate: 'RoomPrivate',\r\n\t\t\t\tgroup: 'RoomGroup',\r\n\t\t\t\tglobal: 'RoomGlobal',\r\n\t\t\t\tcrm: 'RoomCrm',\r\n\t\t\t\tuser: 'RoomUser',\r\n\t\t\t},\r\n\t\t}\r\n\t},\r\n\tcomputed: {\r\n\t\t...mapGetters(['data', 'layout', 'miniMode', 'mobileMode', 'leftPanel', 'leftPanelMobile', 'activeRoomTypes']),\r\n\t\troomComponent() {\r\n\t\t\treturn (roomType) => `Room${roomType.charAt(0).toUpperCase() + roomType.slice(1)}`\r\n\t\t},\r\n\t\tcomputedModel: {\r\n\t\t\tget() {\r\n\t\t\t\treturn this.mobileMode ? this.leftPanelMobile : this.leftPanel\r\n\t\t\t},\r\n\t\t\tset(isOpen) {\r\n\t\t\t\tif (this.mobileMode) {\r\n\t\t\t\t\tthis.setLeftPanelMobile(isOpen)\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t},\r\n\t\troomList() {\r\n\t\t\tlet roomList = {}\r\n\t\t\tif (this.filterRooms === '') {\r\n\t\t\t\tthis.activeRoomTypes.forEach((roomName) => {\r\n\t\t\t\t\troomList[roomName] = Object.values(this.data.roomList[roomName]).sort(this.sortByRoomName)\r\n\t\t\t\t})\r\n\t\t\t} else {\r\n\t\t\t\tthis.activeRoomTypes.forEach((roomName) => {\r\n\t\t\t\t\troomList[roomName] = Object.values(this.data.roomList[roomName]).filter(this.filterRoomByName)\r\n\t\t\t\t})\r\n\t\t\t}\r\n\t\t\treturn roomList\r\n\t\t},\r\n\t},\r\n\tmethods: {\r\n\t\t...mapMutations(['setLeftPanelMobile']),\r\n\t\tfilterRoomByName(room) {\r\n\t\t\treturn room.name.toLowerCase().includes(this.filterRooms.toLowerCase())\r\n\t\t},\r\n\t\tsortByRoomName(a, b) {\r\n\t\t\treturn a.name > b.name ? 1 : -1\r\n\t\t},\r\n\t},\r\n}\r\n","<!-- /* {[The file is published on the basis of YetiForce Public License 6.5 that can be found in the following directory: licenses/LicenseEN.txt or yetiforce.com]} */ -->\r\n<template>\r\n\t<q-drawer\r\n\t\tv-model=\"computedModel\"\r\n\t\t:class=\"{ 'backdrop-fix': mobileMode && !computedModel }\"\r\n\t\t:breakpoint=\"layout.drawer.breakpoint\"\r\n\t\t:show-if-above=\"false\"\r\n\t\tno-swipe-close\r\n\t\tno-swipe-open\r\n\t\tbordered\r\n\t\tside=\"left\"\r\n\t>\r\n\t\t<div class=\"fit bg-grey-11\">\r\n\t\t\t<slot name=\"top\"></slot>\r\n\t\t\t<div class=\"bg-grey-11\">\r\n\t\t\t\t<q-input v-model=\"filterRooms\" class=\"q-px-sm\" :placeholder=\"translate('JS_CHAT_FILTER_ROOMS')\" dense>\r\n\t\t\t\t\t<template #prepend>\r\n\t\t\t\t\t\t<q-icon name=\"mdi-magnify\" />\r\n\t\t\t\t\t</template>\r\n\t\t\t\t\t<template #append>\r\n\t\t\t\t\t\t<q-icon v-show=\"filterRooms.length > 0\" class=\"cursor-pointer\" name=\"mdi-close\" @click=\"filterRooms = ''\" />\r\n\t\t\t\t\t</template>\r\n\t\t\t\t</q-input>\r\n\t\t\t\t<div v-for=\"(roomGroup, roomType) of roomList\" :key=\"roomType\" :style=\"{ fontSize: layout.drawer.fs }\">\r\n\t\t\t\t\t<component :is=\"roomComponent(roomType)\" :roomType=\"roomType\" :roomData=\"roomList[roomType]\" :filterRooms=\"filterRooms\" />\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\t\t</div>\r\n\t</q-drawer>\r\n</template>\r\n<script>\r\nimport RoomPrivate from './Rooms/RoomPrivate.vue'\r\nimport RoomGroup from './Rooms/RoomGroup.vue'\r\nimport RoomGlobal from './Rooms/RoomGlobal.vue'\r\nimport RoomCrm from './Rooms/RoomCrm.vue'\r\nimport RoomUser from './Rooms/RoomUser.vue'\r\nimport { createNamespacedHelpers } from 'vuex'\r\nconst { mapGetters, mapMutations } = createNamespacedHelpers('Chat')\r\nexport default {\r\n\tname: 'ChatPanelLeft',\r\n\tcomponents: { RoomPrivate, RoomGroup, RoomGlobal, RoomCrm, RoomUser },\r\n\tdata() {\r\n\t\treturn {\r\n\t\t\tfilterRooms: '',\r\n\t\t\troomsMap: {\r\n\t\t\t\tprivate: 'RoomPrivate',\r\n\t\t\t\tgroup: 'RoomGroup',\r\n\t\t\t\tglobal: 'RoomGlobal',\r\n\t\t\t\tcrm: 'RoomCrm',\r\n\t\t\t\tuser: 'RoomUser',\r\n\t\t\t},\r\n\t\t}\r\n\t},\r\n\tcomputed: {\r\n\t\t...mapGetters(['data', 'layout', 'miniMode', 'mobileMode', 'leftPanel', 'leftPanelMobile', 'activeRoomTypes']),\r\n\t\troomComponent() {\r\n\t\t\treturn (roomType) => `Room${roomType.charAt(0).toUpperCase() + roomType.slice(1)}`\r\n\t\t},\r\n\t\tcomputedModel: {\r\n\t\t\tget() {\r\n\t\t\t\treturn this.mobileMode ? this.leftPanelMobile : this.leftPanel\r\n\t\t\t},\r\n\t\t\tset(isOpen) {\r\n\t\t\t\tif (this.mobileMode) {\r\n\t\t\t\t\tthis.setLeftPanelMobile(isOpen)\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t},\r\n\t\troomList() {\r\n\t\t\tlet roomList = {}\r\n\t\t\tif (this.filterRooms === '') {\r\n\t\t\t\tthis.activeRoomTypes.forEach((roomName) => {\r\n\t\t\t\t\troomList[roomName] = Object.values(this.data.roomList[roomName]).sort(this.sortByRoomName)\r\n\t\t\t\t})\r\n\t\t\t} else {\r\n\t\t\t\tthis.activeRoomTypes.forEach((roomName) => {\r\n\t\t\t\t\troomList[roomName] = Object.values(this.data.roomList[roomName]).filter(this.filterRoomByName)\r\n\t\t\t\t})\r\n\t\t\t}\r\n\t\t\treturn roomList\r\n\t\t},\r\n\t},\r\n\tmethods: {\r\n\t\t...mapMutations(['setLeftPanelMobile']),\r\n\t\tfilterRoomByName(room) {\r\n\t\t\treturn room.name.toLowerCase().includes(this.filterRooms.toLowerCase())\r\n\t\t},\r\n\t\tsortByRoomName(a, b) {\r\n\t\t\treturn a.name > b.name ? 1 : -1\r\n\t\t},\r\n\t},\r\n}\r\n</script>\r\n<style lang=\"scss\" scoped></style>\r\n","//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\r\nimport RoomPrivateUserSelect from './Rooms/RoomPrivateUserSelect.vue'\r\nimport { createNamespacedHelpers } from 'vuex'\r\nconst { mapGetters, mapMutations, mapActions } = createNamespacedHelpers('Chat')\r\nexport default {\r\n\tname: 'ChatPanelRight',\r\n\tcomponents: { RoomPrivateUserSelect },\r\n\tprops: {\r\n\t\tparticipants: {\r\n\t\t\ttype: Array,\r\n\t\t\trequired: true,\r\n\t\t},\r\n\t},\r\n\tdata() {\r\n\t\treturn {\r\n\t\t\tfilterParticipants: '',\r\n\t\t\tuserId: CONFIG.userId,\r\n\t\t\tshowAddPanel: false,\r\n\t\t\titemActionsIconSize: 'xs',\r\n\t\t}\r\n\t},\r\n\tcomputed: {\r\n\t\t...mapGetters(['currentRoomData', 'config', 'layout']),\r\n\t\tisUserModerator() {\r\n\t\t\treturn this.currentRoomData.roomType === 'private' && (this.currentRoomData.creatorid === this.userId || this.config.isAdmin)\r\n\t\t},\r\n\t\tparticipantsList() {\r\n\t\t\tif (this.filterParticipants === '') {\r\n\t\t\t\treturn this.participants.length ? this.participants.concat().sort(this.sortByCurrentUserMessagesName) : []\r\n\t\t\t} else {\r\n\t\t\t\treturn this.participants.filter((participant) => {\r\n\t\t\t\t\treturn (\r\n\t\t\t\t\t\tparticipant.user_name.toLowerCase().includes(this.filterParticipants.toLowerCase()) ||\r\n\t\t\t\t\t\tparticipant.role_name.toLowerCase().includes(this.filterParticipants.toLowerCase())\r\n\t\t\t\t\t)\r\n\t\t\t\t})\r\n\t\t\t}\r\n\t\t},\r\n\t},\r\n\tmethods: {\r\n\t\t...mapActions(['removeUserFromRoom']),\r\n\t\tsortByCurrentUserMessagesName(a, b) {\r\n\t\t\tif (a.user_id === this.userId) {\r\n\t\t\t\treturn -1\r\n\t\t\t}\r\n\t\t\tif (!a.message && b.message) {\r\n\t\t\t\treturn 1\r\n\t\t\t} else if (a.message && !b.message) {\r\n\t\t\t\treturn -1\r\n\t\t\t}\r\n\t\t\tif (a.user_name > b.user_name) {\r\n\t\t\t\treturn 1\r\n\t\t\t} else {\r\n\t\t\t\treturn -1\r\n\t\t\t}\r\n\t\t},\r\n\t\tstripHtml(html) {\r\n\t\t\treturn app.stripHtml(html)\r\n\t\t},\r\n\t},\r\n}\r\n","//\n//\n//\n//\n//\n//\n//\n\r\nimport { createNamespacedHelpers } from 'vuex'\r\nconst { mapGetters, mapMutations } = createNamespacedHelpers('Chat')\r\n\r\nexport default {\r\n\tname: 'ChatButtonEnter',\r\n\tcomputed: {\r\n\t\t...mapGetters(['sendByEnter']),\r\n\t},\r\n\tmethods: {\r\n\t\t...mapMutations(['setSendByEnter']),\r\n\t\ttoggleEnter() {\r\n\t\t\tthis.setSendByEnter(!this.sendByEnter)\r\n\t\t},\r\n\t},\r\n}\r\n","!function(e,t){\"object\"==typeof exports&&\"object\"==typeof module?module.exports=t():\"function\"==typeof define&&define.amd?define([],t):\"object\"==typeof exports?exports.EmojiMart=t():e.EmojiMart=t()}(\"undefined\"!=typeof self?self:this,(function(){return function(){var e={661:function(){\"undefined\"!=typeof window&&function(){for(var e=0,t=[\"ms\",\"moz\",\"webkit\",\"o\"],i=0;i<t.length&&!window.requestAnimationFrame;++i)window.requestAnimationFrame=window[t[i]+\"RequestAnimationFrame\"],window.cancelAnimationFrame=window[t[i]+\"CancelAnimationFrame\"]||window[t[i]+\"CancelRequestAnimationFrame\"];window.requestAnimationFrame||(window.requestAnimationFrame=function(t,i){var n=(new Date).getTime(),r=Math.max(0,16-(n-e)),o=window.setTimeout((function(){t(n+r)}),r);return e=n+r,o}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(e){clearTimeout(e)})}()}},t={};function i(n){var r=t[n];if(void 0!==r)return r.exports;var o=t[n]={exports:{}};return e[n](o,o.exports,i),o.exports}i.d=function(e,t){for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.r=function(e){\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(e,\"__esModule\",{value:!0})};var n={};return function(){\"use strict\";i.r(n),i.d(n,{Anchors:function(){return k},Category:function(){return J},Emoji:function(){return W},EmojiData:function(){return $},EmojiIndex:function(){return q},EmojiView:function(){return R},Picker:function(){return oe},Preview:function(){return Z},Search:function(){return K},Skins:function(){return X},frequently:function(){return w},sanitize:function(){return N},store:function(){return c},uncompress:function(){return v}});var e,t,r=\"emoji-mart\",o=JSON,s=\"undefined\"!=typeof window&&\"localStorage\"in window;function a(e,i){if(t)t(e,i);else{if(!s)return;try{window.localStorage[\"\".concat(r,\".\").concat(e)]=o.stringify(i)}catch(e){}}}var c={update:function(e){for(var t in e)a(t,e[t])},set:a,get:function(t){if(e)return e(t);if(s){try{var i=window.localStorage[\"\".concat(r,\".\").concat(t)]}catch(e){return}return i?JSON.parse(i):void 0}},setNamespace:function(e){r=e},setHandlers:function(i){i||(i={}),e=i.getter,t=i.setter}};function u(e){return u=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},u(e)}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}var h={name:\"a\",unified:\"b\",non_qualified:\"c\",has_img_apple:\"d\",has_img_google:\"e\",has_img_twitter:\"f\",has_img_facebook:\"h\",keywords:\"j\",sheet:\"k\",emoticons:\"l\",text:\"m\",short_names:\"n\",added_in:\"o\"},m=function(e){var t=[],i=function(e,i){e&&(Array.isArray(e)?e:[e]).forEach((function(e){(i?e.split(/[-|_|\\s]+/):[e]).forEach((function(e){e=e.toLowerCase(),-1==t.indexOf(e)&&t.push(e)}))}))};return i(e.short_names,!0),i(e.name,!0),i(e.keywords,!1),i(e.emoticons,!1),t.join(\",\")};function d(e){var t,i=function(e,t){var i=\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(!i){if(Array.isArray(e)||(i=function(e,t){if(e){if(\"string\"==typeof e)return l(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return\"Object\"===i&&e.constructor&&(i=e.constructor.name),\"Map\"===i||\"Set\"===i?Array.from(e):\"Arguments\"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?l(e,t):void 0}}(e))||t&&e&&\"number\"==typeof e.length){i&&(e=i);var n=0,r=function(){};return{s:r,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}var o,s=!0,a=!1;return{s:function(){i=i.call(e)},n:function(){var e=i.next();return s=e.done,e},e:function(e){a=!0,o=e},f:function(){try{s||null==i.return||i.return()}finally{if(a)throw o}}}}(Object.getOwnPropertyNames(e));try{for(i.s();!(t=i.n()).done;){var n=t.value,r=e[n];e[n]=r&&\"object\"===u(r)?d(r):r}}catch(e){i.e(e)}finally{i.f()}return Object.freeze(e)}var f,p,v=function(e){if(!e.compressed)return e;for(var t in e.compressed=!1,e.emojis){var i=e.emojis[t];for(var n in h)i[n]=i[h[n]],delete i[h[n]];i.short_names||(i.short_names=[]),i.short_names.unshift(t),i.sheet_x=i.sheet[0],i.sheet_y=i.sheet[1],delete i.sheet,i.text||(i.text=\"\"),i.added_in||(i.added_in=6),i.added_in=i.added_in.toFixed(1),i.search=m(i)}return d(e)},j=[\"+1\",\"grinning\",\"kissing_heart\",\"heart_eyes\",\"laughing\",\"stuck_out_tongue_winking_eye\",\"sweat_smile\",\"joy\",\"scream\",\"disappointed\",\"unamused\",\"weary\",\"sob\",\"sunglasses\",\"heart\",\"hankey\"],y={};function g(){p=!0,f=c.get(\"frequently\")}var w={add:function(e){p||g();var t=e.id;f||(f=y),f[t]||(f[t]=0),f[t]+=1,c.set(\"last\",t),c.set(\"frequently\",f)},get:function(e){if(p||g(),!f){y={};for(var t=[],i=Math.min(e,j.length),n=0;n<i;n++)y[j[n]]=parseInt((i-n)/4,10)+1,t.push(j[n]);return t}var r=e,o=[];for(var s in f)f.hasOwnProperty(s)&&o.push(s);var a=o.sort((function(e,t){return f[e]-f[t]})).reverse().slice(0,r),u=c.get(\"last\");return u&&-1==a.indexOf(u)&&(a.pop(),a.push(u)),a}},_={activity:'<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\"><path d=\"M12 0C5.373 0 0 5.372 0 12c0 6.627 5.373 12 12 12 6.628 0 12-5.373 12-12 0-6.628-5.372-12-12-12m9.949 11H17.05c.224-2.527 1.232-4.773 1.968-6.113A9.966 9.966 0 0 1 21.949 11M13 11V2.051a9.945 9.945 0 0 1 4.432 1.564c-.858 1.491-2.156 4.22-2.392 7.385H13zm-2 0H8.961c-.238-3.165-1.536-5.894-2.393-7.385A9.95 9.95 0 0 1 11 2.051V11zm0 2v8.949a9.937 9.937 0 0 1-4.432-1.564c.857-1.492 2.155-4.221 2.393-7.385H11zm4.04 0c.236 3.164 1.534 5.893 2.392 7.385A9.92 9.92 0 0 1 13 21.949V13h2.04zM4.982 4.887C5.718 6.227 6.726 8.473 6.951 11h-4.9a9.977 9.977 0 0 1 2.931-6.113M2.051 13h4.9c-.226 2.527-1.233 4.771-1.969 6.113A9.972 9.972 0 0 1 2.051 13m16.967 6.113c-.735-1.342-1.744-3.586-1.968-6.113h4.899a9.961 9.961 0 0 1-2.931 6.113\"/></svg>',custom:'<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\"><g transform=\"translate(2.000000, 1.000000)\"><rect id=\"Rectangle\" x=\"8\" y=\"0\" width=\"3\" height=\"21\" rx=\"1.5\"></rect><rect id=\"Rectangle\" transform=\"translate(9.843, 10.549) rotate(60) translate(-9.843, -10.549) \" x=\"8.343\" y=\"0.049\" width=\"3\" height=\"21\" rx=\"1.5\"></rect><rect id=\"Rectangle\" transform=\"translate(9.843, 10.549) rotate(-60) translate(-9.843, -10.549) \" x=\"8.343\" y=\"0.049\" width=\"3\" height=\"21\" rx=\"1.5\"></rect></g></svg>',flags:'<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\"><path d=\"M0 0l6.084 24H8L1.916 0zM21 5h-4l-1-4H4l3 12h3l1 4h13L21 5zM6.563 3h7.875l2 8H8.563l-2-8zm8.832 10l-2.856 1.904L12.063 13h3.332zM19 13l-1.5-6h1.938l2 8H16l3-2z\"/></svg>',foods:'<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\"><path d=\"M17 4.978c-1.838 0-2.876.396-3.68.934.513-1.172 1.768-2.934 4.68-2.934a1 1 0 0 0 0-2c-2.921 0-4.629 1.365-5.547 2.512-.064.078-.119.162-.18.244C11.73 1.838 10.798.023 9.207.023 8.579.022 7.85.306 7 .978 5.027 2.54 5.329 3.902 6.492 4.999 3.609 5.222 0 7.352 0 12.969c0 4.582 4.961 11.009 9 11.009 1.975 0 2.371-.486 3-1 .629.514 1.025 1 3 1 4.039 0 9-6.418 9-11 0-5.953-4.055-8-7-8M8.242 2.546c.641-.508.943-.523.965-.523.426.169.975 1.405 1.357 3.055-1.527-.629-2.741-1.352-2.98-1.846.059-.112.241-.356.658-.686M15 21.978c-1.08 0-1.21-.109-1.559-.402l-.176-.146c-.367-.302-.816-.452-1.266-.452s-.898.15-1.266.452l-.176.146c-.347.292-.477.402-1.557.402-2.813 0-7-5.389-7-9.009 0-5.823 4.488-5.991 5-5.991 1.939 0 2.484.471 3.387 1.251l.323.276a1.995 1.995 0 0 0 2.58 0l.323-.276c.902-.78 1.447-1.251 3.387-1.251.512 0 5 .168 5 6 0 3.617-4.187 9-7 9\"/></svg>',nature:'<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\"><path d=\"M15.5 8a1.5 1.5 0 1 0 .001 3.001A1.5 1.5 0 0 0 15.5 8M8.5 8a1.5 1.5 0 1 0 .001 3.001A1.5 1.5 0 0 0 8.5 8\"/><path d=\"M18.933 0h-.027c-.97 0-2.138.787-3.018 1.497-1.274-.374-2.612-.51-3.887-.51-1.285 0-2.616.133-3.874.517C7.245.79 6.069 0 5.093 0h-.027C3.352 0 .07 2.67.002 7.026c-.039 2.479.276 4.238 1.04 5.013.254.258.882.677 1.295.882.191 3.177.922 5.238 2.536 6.38.897.637 2.187.949 3.2 1.102C8.04 20.6 8 20.795 8 21c0 1.773 2.35 3 4 3 1.648 0 4-1.227 4-3 0-.201-.038-.393-.072-.586 2.573-.385 5.435-1.877 5.925-7.587.396-.22.887-.568 1.104-.788.763-.774 1.079-2.534 1.04-5.013C23.929 2.67 20.646 0 18.933 0M3.223 9.135c-.237.281-.837 1.155-.884 1.238-.15-.41-.368-1.349-.337-3.291.051-3.281 2.478-4.972 3.091-5.031.256.015.731.27 1.265.646-1.11 1.171-2.275 2.915-2.352 5.125-.133.546-.398.858-.783 1.313M12 22c-.901 0-1.954-.693-2-1 0-.654.475-1.236 1-1.602V20a1 1 0 1 0 2 0v-.602c.524.365 1 .947 1 1.602-.046.307-1.099 1-2 1m3-3.48v.02a4.752 4.752 0 0 0-1.262-1.02c1.092-.516 2.239-1.334 2.239-2.217 0-1.842-1.781-2.195-3.977-2.195-2.196 0-3.978.354-3.978 2.195 0 .883 1.148 1.701 2.238 2.217A4.8 4.8 0 0 0 9 18.539v-.025c-1-.076-2.182-.281-2.973-.842-1.301-.92-1.838-3.045-1.853-6.478l.023-.041c.496-.826 1.49-1.45 1.804-3.102 0-2.047 1.357-3.631 2.362-4.522C9.37 3.178 10.555 3 11.948 3c1.447 0 2.685.192 3.733.57 1 .9 2.316 2.465 2.316 4.48.313 1.651 1.307 2.275 1.803 3.102.035.058.068.117.102.178-.059 5.967-1.949 7.01-4.902 7.19m6.628-8.202c-.037-.065-.074-.13-.113-.195a7.587 7.587 0 0 0-.739-.987c-.385-.455-.648-.768-.782-1.313-.076-2.209-1.241-3.954-2.353-5.124.531-.376 1.004-.63 1.261-.647.636.071 3.044 1.764 3.096 5.031.027 1.81-.347 3.218-.37 3.235\"/></svg>',objects:'<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\"><path d=\"M12 0a9 9 0 0 0-5 16.482V21s2.035 3 5 3 5-3 5-3v-4.518A9 9 0 0 0 12 0zm0 2c3.86 0 7 3.141 7 7s-3.14 7-7 7-7-3.141-7-7 3.14-7 7-7zM9 17.477c.94.332 1.946.523 3 .523s2.06-.19 3-.523v.834c-.91.436-1.925.689-3 .689a6.924 6.924 0 0 1-3-.69v-.833zm.236 3.07A8.854 8.854 0 0 0 12 21c.965 0 1.888-.167 2.758-.451C14.155 21.173 13.153 22 12 22c-1.102 0-2.117-.789-2.764-1.453z\"/><path d=\"M14.745 12.449h-.004c-.852-.024-1.188-.858-1.577-1.824-.421-1.061-.703-1.561-1.182-1.566h-.009c-.481 0-.783.497-1.235 1.537-.436.982-.801 1.811-1.636 1.791l-.276-.043c-.565-.171-.853-.691-1.284-1.794-.125-.313-.202-.632-.27-.913-.051-.213-.127-.53-.195-.634C7.067 9.004 7.039 9 6.99 9A1 1 0 0 1 7 7h.01c1.662.017 2.015 1.373 2.198 2.134.486-.981 1.304-2.058 2.797-2.075 1.531.018 2.28 1.153 2.731 2.141l.002-.008C14.944 8.424 15.327 7 16.979 7h.032A1 1 0 1 1 17 9h-.011c-.149.076-.256.474-.319.709a6.484 6.484 0 0 1-.311.951c-.429.973-.79 1.789-1.614 1.789\"/></svg>',smileys:'<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\"><path d=\"M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0m0 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10\"/><path d=\"M8 7a2 2 0 1 0-.001 3.999A2 2 0 0 0 8 7M16 7a2 2 0 1 0-.001 3.999A2 2 0 0 0 16 7M15.232 15c-.693 1.195-1.87 2-3.349 2-1.477 0-2.655-.805-3.347-2H15m3-2H6a6 6 0 1 0 12 0\"/></svg>',people:'<svg xmlns:svg=\"http://www.w3.org/2000/svg\" height=\"24\" width=\"24\" viewBox=\"0 0 24 24\"> <path id=\"path3814\" d=\"m 3.3591089,21.17726 c 0.172036,0.09385 4.265994,2.29837 8.8144451,2.29837 4.927767,0 8.670894,-2.211883 8.82782,-2.306019 0.113079,-0.06785 0.182268,-0.190051 0.182267,-0.321923 0,-3.03119 -0.929494,-5.804936 -2.617196,-7.810712 -1.180603,-1.403134 -2.661918,-2.359516 -4.295699,-2.799791 4.699118,-2.236258 3.102306,-9.28617162 -2.097191,-9.28617162 -5.1994978,0 -6.7963103,7.04991362 -2.097192,9.28617162 -1.6337821,0.440275 -3.1150971,1.396798 -4.2956991,2.799791 -1.687703,2.005776 -2.617196,4.779522 -2.617196,7.810712 1.2e-6,0.137378 0.075039,0.263785 0.195641,0.329572 z M 8.0439319,5.8308783 C 8.0439309,2.151521 12.492107,0.30955811 15.093491,2.9109411 17.694874,5.5123241 15.852911,9.9605006 12.173554,9.9605 9.8938991,9.9579135 8.0465186,8.1105332 8.0439319,5.8308783 Z m -1.688782,7.6894977 c 1.524535,-1.811449 3.5906601,-2.809035 5.8184041,-2.809035 2.227744,0 4.293869,0.997586 5.818404,2.809035 1.533639,1.822571 2.395932,4.339858 2.439152,7.108301 -0.803352,0.434877 -4.141636,2.096112 -8.257556,2.096112 -3.8062921,0 -7.3910861,-1.671043 -8.2573681,-2.104981 0.04505,-2.765017 0.906968,-5.278785 2.438964,-7.099432 z\" /> <path id=\"path3816\" d=\"M 12.173828 0.38867188 C 9.3198513 0.38867187 7.3770988 2.3672285 6.8652344 4.6308594 C 6.4218608 6.5916015 7.1153562 8.7676117 8.9648438 10.126953 C 7.6141249 10.677376 6.3550511 11.480944 5.3496094 12.675781 C 3.5629317 14.799185 2.6015625 17.701475 2.6015625 20.847656 C 2.6015654 21.189861 2.7894276 21.508002 3.0898438 21.671875 C 3.3044068 21.788925 7.4436239 24.039062 12.173828 24.039062 C 17.269918 24.039062 21.083568 21.776786 21.291016 21.652344 C 21.57281 21.483266 21.746097 21.176282 21.746094 20.847656 C 21.746094 17.701475 20.78277 14.799185 18.996094 12.675781 C 17.990455 11.480591 16.733818 10.675362 15.382812 10.125 C 17.231132 8.7655552 17.925675 6.5910701 17.482422 4.6308594 C 16.970557 2.3672285 15.027805 0.38867188 12.173828 0.38867188 z M 12.792969 2.3007812 C 13.466253 2.4161792 14.125113 2.7383941 14.695312 3.3085938 C 15.835712 4.4489931 15.985604 5.9473549 15.46875 7.1953125 C 14.951896 8.4432701 13.786828 9.3984378 12.173828 9.3984375 C 10.197719 9.3961954 8.607711 7.806187 8.6054688 5.8300781 C 8.6054683 4.2170785 9.5606362 3.0520102 10.808594 2.5351562 C 11.432573 2.2767293 12.119685 2.1853833 12.792969 2.3007812 z M 12.173828 11.273438 C 14.233647 11.273438 16.133674 12.185084 17.5625 13.882812 C 18.93069 15.508765 19.698347 17.776969 19.808594 20.283203 C 18.807395 20.800235 15.886157 22.162109 12.173828 22.162109 C 8.7614632 22.162109 5.6245754 20.787069 4.5390625 20.265625 C 4.6525896 17.766717 5.4203315 15.504791 6.7851562 13.882812 C 8.2139827 12.185084 10.11401 11.273438 12.173828 11.273438 z \" /> </svg>',places:'<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\"><path d=\"M6.5 12C5.122 12 4 13.121 4 14.5S5.122 17 6.5 17 9 15.879 9 14.5 7.878 12 6.5 12m0 3c-.275 0-.5-.225-.5-.5s.225-.5.5-.5.5.225.5.5-.225.5-.5.5M17.5 12c-1.378 0-2.5 1.121-2.5 2.5s1.122 2.5 2.5 2.5 2.5-1.121 2.5-2.5-1.122-2.5-2.5-2.5m0 3c-.275 0-.5-.225-.5-.5s.225-.5.5-.5.5.225.5.5-.225.5-.5.5\"/><path d=\"M22.482 9.494l-1.039-.346L21.4 9h.6c.552 0 1-.439 1-.992 0-.006-.003-.008-.003-.008H23c0-1-.889-2-1.984-2h-.642l-.731-1.717C19.262 3.012 18.091 2 16.764 2H7.236C5.909 2 4.738 3.012 4.357 4.283L3.626 6h-.642C1.889 6 1 7 1 8h.003S1 8.002 1 8.008C1 8.561 1.448 9 2 9h.6l-.043.148-1.039.346a2.001 2.001 0 0 0-1.359 2.097l.751 7.508a1 1 0 0 0 .994.901H3v1c0 1.103.896 2 2 2h2c1.104 0 2-.897 2-2v-1h6v1c0 1.103.896 2 2 2h2c1.104 0 2-.897 2-2v-1h1.096a.999.999 0 0 0 .994-.901l.751-7.508a2.001 2.001 0 0 0-1.359-2.097M6.273 4.857C6.402 4.43 6.788 4 7.236 4h9.527c.448 0 .834.43.963.857L19.313 9H4.688l1.585-4.143zM7 21H5v-1h2v1zm12 0h-2v-1h2v1zm2.189-3H2.811l-.662-6.607L3 11h18l.852.393L21.189 18z\"/></svg>',recent:'<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\"><path d=\"M13 4h-2l-.001 7H9v2h2v2h2v-2h4v-2h-4z\"/><path d=\"M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0m0 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10\"/></svg>',symbols:'<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\"><path d=\"M0 0h11v2H0zM4 11h3V6h4V4H0v2h4zM15.5 17c1.381 0 2.5-1.116 2.5-2.493s-1.119-2.493-2.5-2.493S13 13.13 13 14.507 14.119 17 15.5 17m0-2.986c.276 0 .5.222.5.493 0 .272-.224.493-.5.493s-.5-.221-.5-.493.224-.493.5-.493M21.5 19.014c-1.381 0-2.5 1.116-2.5 2.493S20.119 24 21.5 24s2.5-1.116 2.5-2.493-1.119-2.493-2.5-2.493m0 2.986a.497.497 0 0 1-.5-.493c0-.271.224-.493.5-.493s.5.222.5.493a.497.497 0 0 1-.5.493M22 13l-9 9 1.513 1.5 8.99-9.009zM17 11c2.209 0 4-1.119 4-2.5V2s.985-.161 1.498.949C23.01 4.055 23 6 23 6s1-1.119 1-3.135C24-.02 21 0 21 0h-2v6.347A5.853 5.853 0 0 0 17 6c-2.209 0-4 1.119-4 2.5s1.791 2.5 4 2.5M10.297 20.482l-1.475-1.585a47.54 47.54 0 0 1-1.442 1.129c-.307-.288-.989-1.016-2.045-2.183.902-.836 1.479-1.466 1.729-1.892s.376-.871.376-1.336c0-.592-.273-1.178-.818-1.759-.546-.581-1.329-.871-2.349-.871-1.008 0-1.79.293-2.344.879-.556.587-.832 1.181-.832 1.784 0 .813.419 1.748 1.256 2.805-.847.614-1.444 1.208-1.794 1.784a3.465 3.465 0 0 0-.523 1.833c0 .857.308 1.56.924 2.107.616.549 1.423.823 2.42.823 1.173 0 2.444-.379 3.813-1.137L8.235 24h2.819l-2.09-2.383 1.333-1.135zm-6.736-6.389a1.02 1.02 0 0 1 .73-.286c.31 0 .559.085.747.254a.849.849 0 0 1 .283.659c0 .518-.419 1.112-1.257 1.784-.536-.651-.805-1.231-.805-1.742a.901.901 0 0 1 .302-.669M3.74 22c-.427 0-.778-.116-1.057-.349-.279-.232-.418-.487-.418-.766 0-.594.509-1.288 1.527-2.083.968 1.134 1.717 1.946 2.248 2.438-.921.507-1.686.76-2.3.76\"/></svg>'};function C(e,t,i,n,r,o,s,a){var c,u=\"function\"==typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=i,u._compiled=!0),n&&(u.functional=!0),o&&(u._scopeId=\"data-v-\"+o),s?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||\"undefined\"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},u._ssrRegister=c):r&&(c=a?function(){r.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:r),c)if(u.functional){u._injectStyles=c;var l=u.render;u.render=function(e,t){return c.call(t),l(e,t)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,c):[c]}return{exports:e,options:u}}var b=C({props:{i18n:{type:Object,required:!0},color:{type:String},categories:{type:Array,required:!0},activeCategory:{type:Object,default:function(){return{}}}},created:function(){this.svgs=_}},(function(){var e=this,t=e.$createElement,i=e._self._c||t;return i(\"div\",{staticClass:\"emoji-mart-anchors\",attrs:{role:\"tablist\"}},e._l(e.categories,(function(t){return i(\"button\",{key:t.id,class:{\"emoji-mart-anchor\":!0,\"emoji-mart-anchor-selected\":t.id==e.activeCategory.id},style:{color:t.id==e.activeCategory.id?e.color:\"\"},attrs:{role:\"tab\",type:\"button\",\"aria-label\":t.name,\"aria-selected\":t.id==e.activeCategory.id,\"data-title\":e.i18n.categories[t.id]},on:{click:function(i){return e.$emit(\"click\",t)}}},[i(\"div\",{attrs:{\"aria-hidden\":\"true\"},domProps:{innerHTML:e._s(e.svgs[t.id])}}),e._v(\" \"),i(\"span\",{staticClass:\"emoji-mart-anchor-bar\",style:{backgroundColor:e.color},attrs:{\"aria-hidden\":\"true\"}})])})),0)}),[],!1,null,null,null),k=b.exports;function E(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}function S(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,\"value\"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function x(e,t,i){return t&&S(e.prototype,t),i&&S(e,i),Object.defineProperty(e,\"prototype\",{writable:!1}),e}var O=String.fromCodePoint||function(){var e,t,i=16384,n=[],r=-1,o=arguments.length;if(!o)return\"\";for(var s=\"\";++r<o;){var a=Number(arguments[r]);if(!isFinite(a)||a<0||a>1114111||Math.floor(a)!=a)throw RangeError(\"Invalid code point: \"+a);a<=65535?n.push(a):(e=55296+((a-=65536)>>10),t=a%1024+56320,n.push(e,t)),(r+1===o||n.length>i)&&(s+=String.fromCharCode.apply(null,n),n.length=0)}return s};function P(e){var t=e.split(\"-\").map((function(e){return\"0x\".concat(e)}));return O.apply(null,t)}function A(e){return e.reduce((function(e,t){return-1===e.indexOf(t)&&e.push(t),e}),[])}function M(e,t){var i=A(e),n=A(t);return i.filter((function(e){return n.indexOf(e)>=0}))}function I(e,t){var i={};for(var n in e){var r=e[n],o=r;t.hasOwnProperty(n)&&(o=t[n]),\"object\"===u(o)&&(o=I(r,o)),i[n]=o}return i}function F(e,t){var i=\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(!i){if(Array.isArray(e)||(i=function(e,t){if(e){if(\"string\"==typeof e)return z(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return\"Object\"===i&&e.constructor&&(i=e.constructor.name),\"Map\"===i||\"Set\"===i?Array.from(e):\"Arguments\"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?z(e,t):void 0}}(e))||t&&e&&\"number\"==typeof e.length){i&&(e=i);var n=0,r=function(){};return{s:r,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}var o,s=!0,a=!1;return{s:function(){i=i.call(e)},n:function(){var e=i.next();return s=e.done,e},e:function(e){a=!0,o=e},f:function(){try{s||null==i.return||i.return()}finally{if(a)throw o}}}}function z(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}var L=/^(?:\\:([^\\:]+)\\:)(?:\\:skin-tone-(\\d)\\:)?$/,T=[\"1F3FA\",\"1F3FB\",\"1F3FC\",\"1F3FD\",\"1F3FE\",\"1F3FF\"],q=function(){function e(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=i.emojisToShowFilter,r=i.include,o=i.exclude,s=i.custom,a=i.recent,c=i.recentLength,u=void 0===c?20:c;E(this,e),this._data=v(t),this._emojisFilter=n||null,this._include=r||null,this._exclude=o||null,this._custom=s||[],this._recent=a||w.get(u),this._emojis={},this._nativeEmojis={},this._emoticons={},this._categories=[],this._recentCategory={id:\"recent\",name:\"Recent\",emojis:[]},this._customCategory={id:\"custom\",name:\"Custom\",emojis:[]},this._searchIndex={},this.buildIndex(),Object.freeze(this)}return x(e,[{key:\"buildIndex\",value:function(){var e=this,t=this._data.categories;if(this._include&&(t=(t=t.filter((function(t){return e._include.includes(t.id)}))).sort((function(t,i){var n=e._include.indexOf(t.id),r=e._include.indexOf(i.id);return n<r?-1:n>r?1:0}))),t.forEach((function(t){if(e.isCategoryNeeded(t.id)){var i={id:t.id,name:t.name,emojis:[]};t.emojis.forEach((function(t){var n=e.addEmoji(t);n&&i.emojis.push(n)})),i.emojis.length&&e._categories.push(i)}})),this.isCategoryNeeded(\"custom\")){if(this._custom.length>0){var i,n=F(this._custom);try{for(n.s();!(i=n.n()).done;){var r=i.value;this.addCustomEmoji(r)}}catch(e){n.e(e)}finally{n.f()}}this._customCategory.emojis.length&&this._categories.push(this._customCategory)}this.isCategoryNeeded(\"recent\")&&(this._recent.length&&this._recent.map((function(t){var i,n=F(e._customCategory.emojis);try{for(n.s();!(i=n.n()).done;){var r=i.value;if(r.id===t)return void e._recentCategory.emojis.push(r)}}catch(e){n.e(e)}finally{n.f()}e.hasEmoji(t)&&e._recentCategory.emojis.push(e.emoji(t))})),this._recentCategory.emojis.length&&this._categories.unshift(this._recentCategory))}},{key:\"findEmoji\",value:function(e,t){var i=e.match(L);if(i&&(e=i[1],i[2]&&(t=parseInt(i[2],10))),this._data.aliases.hasOwnProperty(e)&&(e=this._data.aliases[e]),this._emojis.hasOwnProperty(e)){var n=this._emojis[e];return t?n.getSkin(t):n}return this._nativeEmojis.hasOwnProperty(e)?this._nativeEmojis[e]:null}},{key:\"categories\",value:function(){return this._categories}},{key:\"emoji\",value:function(e){this._data.aliases.hasOwnProperty(e)&&(e=this._data.aliases[e]);var t=this._emojis[e];if(!t)throw new Error(\"Can not find emoji by id: \"+e);return t}},{key:\"firstEmoji\",value:function(){var e=this._emojis[Object.keys(this._emojis)[0]];if(!e)throw new Error(\"Can not get first emoji\");return e}},{key:\"hasEmoji\",value:function(e){return this._data.aliases.hasOwnProperty(e)&&(e=this._data.aliases[e]),!!this._emojis[e]}},{key:\"nativeEmoji\",value:function(e){return this._nativeEmojis.hasOwnProperty(e)?this._nativeEmojis[e]:null}},{key:\"search\",value:function(e,t){var i=this;if(t||(t=75),!e.length)return null;if(\"-\"==e||\"-1\"==e)return[this.emoji(\"-1\")];var n,r=e.toLowerCase().split(/[\\s|,|\\-|_]+/);r.length>2&&(r=[r[0],r[1]]),n=r.map((function(e){for(var t=i._emojis,n=i._searchIndex,r=0,o=0;o<e.length;o++){var s=e[o];r++,n[s]||(n[s]={}),(n=n[s]).results||function(){var i={};for(var o in n.results=[],n.emojis={},t){var s=t[o],a=s._data.search,c=e.substr(0,r),u=a.indexOf(c);if(-1!=u){var l=u+1;c==o&&(l=0),n.results.push(s),n.emojis[o]=s,i[o]=l}}n.results.sort((function(e,t){return i[e.id]-i[t.id]}))}(),t=n.emojis}return n.results})).filter((function(e){return e}));var o=null;return(o=n.length>1?M.apply(null,n):n.length?n[0]:[])&&o.length>t&&(o=o.slice(0,t)),o}},{key:\"addCustomEmoji\",value:function(e){var t=Object.assign({},e,{id:e.short_names[0],custom:!0});t.search||(t.search=m(t));var i=new $(t);return this._emojis[i.id]=i,this._customCategory.emojis.push(i),i}},{key:\"addEmoji\",value:function(e){var t=this,i=this._data.emojis[e];if(!this.isEmojiNeeded(i))return!1;var n=new $(i);if(this._emojis[e]=n,n.native&&(this._nativeEmojis[n.native]=n),n._skins)for(var r in n._skins){var o=n._skins[r];o.native&&(this._nativeEmojis[o.native]=o)}return n.emoticons&&n.emoticons.forEach((function(i){t._emoticons[i]||(t._emoticons[i]=e)})),n}},{key:\"isCategoryNeeded\",value:function(e){var t=!this._include||!this._include.length||this._include.indexOf(e)>-1,i=!(!this._exclude||!this._exclude.length)&&this._exclude.indexOf(e)>-1;return!(!t||i)}},{key:\"isEmojiNeeded\",value:function(e){return!this._emojisFilter||this._emojisFilter(e)}}]),e}(),$=function(){function e(t){if(E(this,e),this._data=Object.assign({},t),this._skins=null,this._data.skin_variations)for(var i in this._skins=[],T){var n=T[i],r=this._data.skin_variations[n],o=Object.assign({},t);for(var s in r)o[s]=r[s];delete o.skin_variations,o.skin_tone=parseInt(i)+1,this._skins.push(new e(o))}for(var a in this._sanitized=N(this._data),this._sanitized)this[a]=this._sanitized[a];this.short_names=this._data.short_names,this.short_name=this._data.short_names[0],Object.freeze(this)}return x(e,[{key:\"getSkin\",value:function(e){return e&&\"native\"!=e&&this._skins?this._skins[e-1]:this}},{key:\"getPosition\",value:function(){var e=+(100/60*this._data.sheet_x).toFixed(2),t=+(100/60*this._data.sheet_y).toFixed(2);return\"\".concat(e,\"% \").concat(t,\"%\")}},{key:\"ariaLabel\",value:function(){return[this.native].concat(this.short_names).filter(Boolean).join(\", \")}}]),e}(),R=function(){function e(t,i,n,r,o,s,a){E(this,e),this._emoji=t,this._native=r,this._skin=i,this._set=n,this._fallback=o,this.canRender=this._canRender(),this.cssClass=this._cssClass(),this.cssStyle=this._cssStyle(a),this.content=this._content(),this.title=!0===s?t.short_name:null,this.ariaLabel=t.ariaLabel(),Object.freeze(this)}return x(e,[{key:\"getEmoji\",value:function(){return this._emoji.getSkin(this._skin)}},{key:\"_canRender\",value:function(){return this._isCustom()||this._isNative()||this._hasEmoji()||this._fallback}},{key:\"_cssClass\",value:function(){return[\"emoji-set-\"+this._set,\"emoji-type-\"+this._emojiType()]}},{key:\"_cssStyle\",value:function(e){var t={};return this._isCustom()?t={backgroundImage:\"url(\"+this.getEmoji()._data.imageUrl+\")\",backgroundSize:\"100%\",width:e+\"px\",height:e+\"px\"}:this._hasEmoji()&&!this._isNative()&&(t={backgroundPosition:this.getEmoji().getPosition()}),e&&(t=this._isNative()?Object.assign(t,{fontSize:Math.round(.95*e*10)/10+\"px\"}):Object.assign(t,{width:e+\"px\",height:e+\"px\"})),t}},{key:\"_content\",value:function(){return this._isCustom()?\"\":this._isNative()?this.getEmoji().native:this._hasEmoji()?\"\":this._fallback?this._fallback(this.getEmoji()):null}},{key:\"_isNative\",value:function(){return this._native}},{key:\"_isCustom\",value:function(){return this.getEmoji().custom}},{key:\"_hasEmoji\",value:function(){if(!this.getEmoji()._data)return!1;var e=this.getEmoji()._data[\"has_img_\"+this._set];return void 0===e||e}},{key:\"_emojiType\",value:function(){return this._isCustom()?\"custom\":this._isNative()?\"native\":this._hasEmoji()?\"image\":\"fallback\"}}]),e}();function N(e){var t=e.name,i=e.short_names,n=e.skin_tone,r=e.skin_variations,o=e.emoticons,s=e.unified,a=e.custom,c=e.imageUrl,u=e.id||i[0],l=\":\".concat(u,\":\");return a?{id:u,name:t,colons:l,emoticons:o,custom:a,imageUrl:c}:(n&&(l+=\":skin-tone-\".concat(n,\":\")),{id:u,name:t,colons:l,emoticons:o,unified:s.toLowerCase(),skin:n||(r?1:null),native:P(s)})}function D(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var B={native:{type:Boolean,default:!1},tooltip:{type:Boolean,default:!1},fallback:{type:Function},skin:{type:Number,default:1},set:{type:String,default:\"apple\"},emoji:{type:[String,Object],required:!0},size:{type:Number,default:null},tag:{type:String,default:\"span\"}},H={perLine:{type:Number,default:9},maxSearchResults:{type:Number,default:75},emojiSize:{type:Number,default:24},title:{type:String,default:\"Emoji Mart™\"},emoji:{type:String,default:\"department_store\"},color:{type:String,default:\"#ae65c5\"},set:{type:String,default:\"apple\"},skin:{type:Number,default:null},defaultSkin:{type:Number,default:1},native:{type:Boolean,default:!1},emojiTooltip:{type:Boolean,default:!1},autoFocus:{type:Boolean,default:!1},i18n:{type:Object,default:function(){return{}}},showPreview:{type:Boolean,default:!0},showSearch:{type:Boolean,default:!0},showCategories:{type:Boolean,default:!0},showSkinTones:{type:Boolean,default:!0},infiniteScroll:{type:Boolean,default:!0},pickerStyles:{type:Object,default:function(){return{}}}};function U(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function V(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?U(Object(i),!0).forEach((function(t){D(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):U(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var W=C({props:V(V({},B),{},{data:{type:Object,required:!0}}),computed:{view:function(){return new R(this.emojiObject,this.skin,this.set,this.native,this.fallback,this.tooltip,this.size)},sanitizedData:function(){return this.emojiObject._sanitized},title:function(){return this.tooltip?this.emojiObject.short_name:null},emojiObject:function(){return\"string\"==typeof this.emoji?this.data.findEmoji(this.emoji):this.emoji}},created:function(){},methods:{onClick:function(){this.$emit(\"click\",this.emojiObject)},onMouseEnter:function(){this.$emit(\"mouseenter\",this.emojiObject)},onMouseLeave:function(){this.$emit(\"mouseleave\",this.emojiObject)}}},(function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.view.canRender?i(e.tag,{tag:\"component\",staticClass:\"emoji-mart-emoji\",attrs:{title:e.view.title,\"aria-label\":e.view.ariaLabel,\"data-title\":e.title},on:{mouseenter:e.onMouseEnter,mouseleave:e.onMouseLeave,click:e.onClick}},[i(\"span\",{class:e.view.cssClass,style:e.view.cssStyle},[e._v(e._s(e.view.content))])]):e._e()}),[],!1,null,null,null).exports,J=C({props:{data:{type:Object,required:!0},i18n:{type:Object,required:!0},id:{type:String,required:!0},name:{type:String,required:!0},emojis:{type:Array},emojiProps:{type:Object,required:!0}},methods:{activeClass:function(e){return this.emojiProps.selectedEmoji&&this.emojiProps.selectedEmojiCategory&&this.emojiProps.selectedEmoji.id==e.id&&this.emojiProps.selectedEmojiCategory.id==this.id?\"emoji-mart-emoji-selected\":\"\"}},computed:{isVisible:function(){return!!this.emojis},isSearch:function(){return\"Search\"==this.name},hasResults:function(){return this.emojis.length>0},emojiObjects:function(){var e=this;return this.emojis.map((function(t){return{emojiObject:t,emojiView:new R(t,e.emojiProps.skin,e.emojiProps.set,e.emojiProps.native,e.emojiProps.fallback,e.emojiProps.emojiTooltip,e.emojiProps.emojiSize)}}))}},components:{Emoji:W}},(function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.isVisible&&(e.isSearch||e.hasResults)?i(\"section\",{class:{\"emoji-mart-category\":!0,\"emoji-mart-no-results\":!e.hasResults},attrs:{\"aria-label\":e.i18n.categories[e.id]}},[i(\"div\",{staticClass:\"emoji-mart-category-label\"},[i(\"h3\",{staticClass:\"emoji-mart-category-label\"},[e._v(e._s(e.i18n.categories[e.id]))])]),e._v(\" \"),e._l(e.emojiObjects,(function(t){var n=t.emojiObject,r=t.emojiView;return[r.canRender?i(\"button\",{key:n.id,staticClass:\"emoji-mart-emoji\",class:e.activeClass(n),attrs:{\"aria-label\":r.ariaLabel,role:\"option\",\"aria-selected\":\"false\",\"aria-posinset\":\"1\",\"aria-setsize\":\"1812\",type:\"button\",\"data-title\":n.short_name,title:r.title},on:{mouseenter:function(t){e.emojiProps.onEnter(r.getEmoji())},mouseleave:function(t){e.emojiProps.onLeave(r.getEmoji())},click:function(t){e.emojiProps.onClick(r.getEmoji())}}},[i(\"span\",{class:r.cssClass,style:r.cssStyle},[e._v(e._s(r.content))])]):e._e()]})),e._v(\" \"),e.hasResults?e._e():i(\"div\",[i(\"emoji\",{attrs:{data:e.data,emoji:\"sleuth_or_spy\",native:e.emojiProps.native,skin:e.emojiProps.skin,set:e.emojiProps.set}}),e._v(\" \"),i(\"div\",{staticClass:\"emoji-mart-no-results-label\"},[e._v(e._s(e.i18n.notfound))])],1)],2):e._e()}),[],!1,null,null,null).exports,X=C({props:{skin:{type:Number,required:!0}},data:function(){return{opened:!1}},methods:{onClick:function(e){this.opened&&e!=this.skin&&this.$emit(\"change\",e),this.opened=!this.opened}}},(function(){var e=this,t=e.$createElement,i=e._self._c||t;return i(\"div\",{class:{\"emoji-mart-skin-swatches\":!0,\"emoji-mart-skin-swatches-opened\":e.opened}},e._l(6,(function(t){return i(\"span\",{key:t,class:{\"emoji-mart-skin-swatch\":!0,\"emoji-mart-skin-swatch-selected\":e.skin==t}},[i(\"span\",{class:\"emoji-mart-skin emoji-mart-skin-tone-\"+t,on:{click:function(i){return e.onClick(t)}}})])})),0)}),[],!1,null,null,null).exports,Z=C({props:{data:{type:Object,required:!0},title:{type:String,required:!0},emoji:{type:[String,Object]},idleEmoji:{type:[String,Object],required:!0},showSkinTones:{type:Boolean,default:!0},emojiProps:{type:Object,required:!0},skinProps:{type:Object,required:!0},onSkinChange:{type:Function,required:!0}},computed:{emojiData:function(){return this.emoji?this.emoji:{}},emojiShortNames:function(){return this.emojiData.short_names},emojiEmoticons:function(){return this.emojiData.emoticons}},components:{Emoji:W,Skins:X}},(function(){var e=this,t=e.$createElement,i=e._self._c||t;return i(\"div\",{staticClass:\"emoji-mart-preview\"},[e.emoji?[i(\"div\",{staticClass:\"emoji-mart-preview-emoji\"},[i(\"emoji\",{attrs:{data:e.data,emoji:e.emoji,native:e.emojiProps.native,skin:e.emojiProps.skin,set:e.emojiProps.set}})],1),e._v(\" \"),i(\"div\",{staticClass:\"emoji-mart-preview-data\"},[i(\"div\",{staticClass:\"emoji-mart-preview-name\"},[e._v(e._s(e.emoji.name))]),e._v(\" \"),i(\"div\",{staticClass:\"emoji-mart-preview-shortnames\"},e._l(e.emojiShortNames,(function(t){return i(\"span\",{key:t,staticClass:\"emoji-mart-preview-shortname\"},[e._v(\":\"+e._s(t)+\":\")])})),0),e._v(\" \"),i(\"div\",{staticClass:\"emoji-mart-preview-emoticons\"},e._l(e.emojiEmoticons,(function(t){return i(\"span\",{key:t,staticClass:\"emoji-mart-preview-emoticon\"},[e._v(e._s(t))])})),0)])]:[i(\"div\",{staticClass:\"emoji-mart-preview-emoji\"},[i(\"emoji\",{attrs:{data:e.data,emoji:e.idleEmoji,native:e.emojiProps.native,skin:e.emojiProps.skin,set:e.emojiProps.set}})],1),e._v(\" \"),i(\"div\",{staticClass:\"emoji-mart-preview-data\"},[i(\"span\",{staticClass:\"emoji-mart-title-label\"},[e._v(e._s(e.title))])]),e._v(\" \"),e.showSkinTones?i(\"div\",{staticClass:\"emoji-mart-preview-skins\"},[i(\"skins\",{attrs:{skin:e.skinProps.skin},on:{change:function(t){return e.onSkinChange(t)}}})],1):e._e()]],2)}),[],!1,null,null,null).exports,G=C({props:{data:{type:Object,required:!0},i18n:{type:Object,required:!0},autoFocus:{type:Boolean,default:!1},onSearch:{type:Function,required:!0},onArrowLeft:{type:Function,required:!1},onArrowRight:{type:Function,required:!1},onArrowDown:{type:Function,required:!1},onArrowUp:{type:Function,required:!1},onEnter:{type:Function,required:!1}},data:function(){return{value:\"\"}},computed:{emojiIndex:function(){return this.data}},watch:{value:function(){this.$emit(\"search\",this.value)}},methods:{clear:function(){this.value=\"\"}},mounted:function(){var e=this.$el.querySelector(\"input\");this.autoFocus&&e.focus()}},(function(){var e=this,t=e.$createElement,i=e._self._c||t;return i(\"div\",{staticClass:\"emoji-mart-search\"},[i(\"input\",{directives:[{name:\"model\",rawName:\"v-model\",value:e.value,expression:\"value\"}],attrs:{type:\"text\",placeholder:e.i18n.search,role:\"textbox\",\"aria-autocomplete\":\"list\",\"aria-owns\":\"emoji-mart-list\",\"aria-label\":\"Search for an emoji\",\"aria-describedby\":\"emoji-mart-search-description\"},domProps:{value:e.value},on:{keydown:[function(t){return!t.type.indexOf(\"key\")&&e._k(t.keyCode,\"left\",37,t.key,[\"Left\",\"ArrowLeft\"])||\"button\"in t&&0!==t.button?null:function(t){return e.$emit(\"arrowLeft\",t)}.apply(null,arguments)},function(t){return!t.type.indexOf(\"key\")&&e._k(t.keyCode,\"right\",39,t.key,[\"Right\",\"ArrowRight\"])||\"button\"in t&&2!==t.button?null:function(){return e.$emit(\"arrowRight\")}.apply(null,arguments)},function(t){return!t.type.indexOf(\"key\")&&e._k(t.keyCode,\"down\",40,t.key,[\"Down\",\"ArrowDown\"])?null:function(){return e.$emit(\"arrowDown\")}.apply(null,arguments)},function(t){return!t.type.indexOf(\"key\")&&e._k(t.keyCode,\"up\",38,t.key,[\"Up\",\"ArrowUp\"])?null:function(t){return e.$emit(\"arrowUp\",t)}.apply(null,arguments)},function(t){return!t.type.indexOf(\"key\")&&e._k(t.keyCode,\"enter\",13,t.key,\"Enter\")?null:function(){return e.$emit(\"enter\")}.apply(null,arguments)}],input:function(t){t.target.composing||(e.value=t.target.value)}}}),e._v(\" \"),i(\"span\",{staticClass:\"hidden\",attrs:{id:\"emoji-picker-search-description\"}},[e._v(\"Use the left, right, up and down arrow keys to navigate the emoji search\\n    results.\")])])}),[],!1,null,null,null),K=G.exports;function Q(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}i(661);var Y=function(){function e(t){var i,n;E(this,e),this._vm=t,this._data=t.data,this._perLine=t.perLine,this._categories=[],(i=this._categories).push.apply(i,function(e){if(Array.isArray(e))return Q(e)}(n=this._data.categories())||function(e){if(\"undefined\"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e[\"@@iterator\"])return Array.from(e)}(n)||function(e,t){if(e){if(\"string\"==typeof e)return Q(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return\"Object\"===i&&e.constructor&&(i=e.constructor.name),\"Map\"===i||\"Set\"===i?Array.from(e):\"Arguments\"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Q(e,t):void 0}}(n)||function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()),this._categories=this._categories.filter((function(e){return e.emojis.length>0})),this._categories[0].first=!0,Object.freeze(this._categories),this.activeCategory=this._categories[0],this.searchEmojis=null,this.previewEmoji=null,this.previewEmojiCategoryIdx=0,this.previewEmojiIdx=-1}return x(e,[{key:\"onScroll\",value:function(){for(var e=this._vm.$refs.scroll.scrollTop,t=this.filteredCategories[0],i=0,n=this.filteredCategories.length;i<n;i++){var r=this.filteredCategories[i],o=this._vm.getCategoryComponent(i);if(o&&o.$el.offsetTop-50>e)break;t=r}this.activeCategory=t}},{key:\"allCategories\",get:function(){return this._categories}},{key:\"filteredCategories\",get:function(){return this.searchEmojis?[{id:\"search\",name:\"Search\",emojis:this.searchEmojis}]:this._categories.filter((function(e){return e.emojis.length>0}))}},{key:\"previewEmojiCategory\",get:function(){return this.previewEmojiCategoryIdx>=0?this.filteredCategories[this.previewEmojiCategoryIdx]:null}},{key:\"onAnchorClick\",value:function(e){var t=this;if(!this.searchEmojis){var i=this.filteredCategories.indexOf(e),n=this._vm.getCategoryComponent(i);this._vm.infiniteScroll?function(){if(n){var i=n.$el.offsetTop;e.first&&(i=0),t._vm.$refs.scroll.scrollTop=i}}():this.activeCategory=this.filteredCategories[i]}}},{key:\"onSearch\",value:function(e){var t=this._data.search(e,this.maxSearchResults);this.searchEmojis=t,this.previewEmojiCategoryIdx=0,this.previewEmojiIdx=0,this.updatePreviewEmoji()}},{key:\"onEmojiEnter\",value:function(e){this.previewEmoji=e,this.previewEmojiIdx=-1,this.previewEmojiCategoryIdx=-1}},{key:\"onEmojiLeave\",value:function(e){this.previewEmoji=null}},{key:\"onArrowLeft\",value:function(){this.previewEmojiIdx>0?this.previewEmojiIdx-=1:(this.previewEmojiCategoryIdx-=1,this.previewEmojiCategoryIdx<0?this.previewEmojiCategoryIdx=0:this.previewEmojiIdx=this.filteredCategories[this.previewEmojiCategoryIdx].emojis.length-1),this.updatePreviewEmoji()}},{key:\"onArrowRight\",value:function(){this.previewEmojiIdx<this.emojisLength(this.previewEmojiCategoryIdx)-1?this.previewEmojiIdx+=1:(this.previewEmojiCategoryIdx+=1,this.previewEmojiCategoryIdx>=this.filteredCategories.length?this.previewEmojiCategoryIdx=this.filteredCategories.length-1:this.previewEmojiIdx=0),this.updatePreviewEmoji()}},{key:\"onArrowDown\",value:function(){if(-1==this.previewEmojiIdx)return this.onArrowRight();var e=this.filteredCategories[this.previewEmojiCategoryIdx].emojis.length,t=this._perLine;this.previewEmojiIdx+t>e&&(t=e%this._perLine);for(var i=0;i<t;i++)this.onArrowRight();this.updatePreviewEmoji()}},{key:\"onArrowUp\",value:function(){var e=this._perLine;this.previewEmojiIdx-e<0&&(e=this.previewEmojiCategoryIdx>0?this.filteredCategories[this.previewEmojiCategoryIdx-1].emojis.length%this._perLine:0);for(var t=0;t<e;t++)this.onArrowLeft();this.updatePreviewEmoji()}},{key:\"updatePreviewEmoji\",value:function(){var e=this;this.previewEmoji=this.filteredCategories[this.previewEmojiCategoryIdx].emojis[this.previewEmojiIdx],this._vm.$nextTick((function(){var t=e._vm.$refs.scroll,i=t.querySelector(\".emoji-mart-emoji-selected\"),n=t.offsetTop-t.offsetHeight;i&&i.offsetTop+i.offsetHeight>n+t.scrollTop&&(t.scrollTop+=i.offsetHeight),i&&i.offsetTop<t.scrollTop&&(t.scrollTop-=i.offsetHeight)}))}},{key:\"emojisLength\",value:function(e){return-1==e?0:this.filteredCategories[e].emojis.length}}]),e}();function ee(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function te(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?ee(Object(i),!0).forEach((function(t){D(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):ee(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var ie={search:\"Search\",notfound:\"No Emoji Found\",categories:{search:\"Search Results\",recent:\"Frequently Used\",smileys:\"Smileys & Emotion\",people:\"People & Body\",nature:\"Animals & Nature\",foods:\"Food & Drink\",activity:\"Activity\",places:\"Travel & Places\",objects:\"Objects\",symbols:\"Symbols\",flags:\"Flags\",custom:\"Custom\"}},ne={props:te(te({},H),{},{data:{type:Object,required:!0}}),data:function(){return{activeSkin:this.skin||c.get(\"skin\")||this.defaultSkin,view:new Y(this)}},computed:{customStyles:function(){return te({width:this.calculateWidth+\"px\"},this.pickerStyles)},emojiProps:function(){return{native:this.native,skin:this.activeSkin,set:this.set,emojiTooltip:this.emojiTooltip,emojiSize:this.emojiSize,selectedEmoji:this.view.previewEmoji,selectedEmojiCategory:this.view.previewEmojiCategory,onEnter:this.onEmojiEnter.bind(this),onLeave:this.onEmojiLeave.bind(this),onClick:this.onEmojiClick.bind(this)}},skinProps:function(){return{skin:this.activeSkin}},calculateWidth:function(){return this.perLine*(this.emojiSize+12)+12+2+function(){if(\"undefined\"==typeof document)return 0;var e=document.createElement(\"div\");e.style.width=\"100px\",e.style.height=\"100px\",e.style.overflow=\"scroll\",e.style.position=\"absolute\",e.style.top=\"-9999px\",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}()},filteredCategories:function(){return this.view.filteredCategories},mergedI18n:function(){return Object.freeze(I(ie,this.i18n))},idleEmoji:function(){try{return this.data.emoji(this.emoji)}catch(e){return console.error(\"Default preview emoji `\"+this.emoji+\"` is not available, check the Picker `emoji` property\"),console.error(e),this.data.firstEmoji()}}},methods:{onScroll:function(){this.infiniteScroll&&!this.waitingForPaint&&(this.waitingForPaint=!0,window.requestAnimationFrame(this.onScrollPaint.bind(this)))},onScrollPaint:function(){this.waitingForPaint=!1,this.view.onScroll()},onAnchorClick:function(e){this.view.onAnchorClick(e)},onSearch:function(e){this.view.onSearch(e)},onEmojiEnter:function(e){this.view.onEmojiEnter(e)},onEmojiLeave:function(e){this.view.onEmojiLeave(e)},onArrowLeft:function(e){var t=this.view.previewEmojiIdx;this.view.onArrowLeft(),e&&this.view.previewEmojiIdx!==t&&e.preventDefault()},onArrowRight:function(){this.view.onArrowRight()},onArrowDown:function(){this.view.onArrowDown()},onArrowUp:function(e){this.view.onArrowUp(),e.preventDefault()},onEnter:function(e){this.$emit(\"select\",this.view.previewEmoji),w.add(this.view.previewEmoji)},onEmojiClick:function(e){this.$emit(\"select\",e),w.add(e)},onSkinChange:function(e){this.activeSkin=e,c.update({skin:e}),this.$emit(\"skin-change\",e)},getCategoryComponent:function(e){var t=this.$refs[\"categories_\"+e];return t&&\"0\"in t?t[0]:t}},components:{Anchors:k,Category:J,Preview:Z,Search:K}},re=C(ne,(function(){var e=this,t=e.$createElement,i=e._self._c||t;return i(\"section\",{staticClass:\"emoji-mart emoji-mart-static\",style:e.customStyles},[e.showCategories?i(\"div\",{staticClass:\"emoji-mart-bar emoji-mart-bar-anchors\"},[i(\"anchors\",{attrs:{data:e.data,i18n:e.mergedI18n,color:e.color,categories:e.view.allCategories,\"active-category\":e.view.activeCategory},on:{click:e.onAnchorClick}})],1):e._e(),e._v(\" \"),e._t(\"searchTemplate\",(function(){return[e.showSearch?i(\"search\",{ref:\"search\",attrs:{data:e.data,i18n:e.mergedI18n,\"auto-focus\":e.autoFocus,\"on-search\":e.onSearch},on:{search:e.onSearch,arrowLeft:e.onArrowLeft,arrowRight:e.onArrowRight,arrowDown:e.onArrowDown,arrowUp:e.onArrowUp,enter:e.onEnter}}):e._e()]}),{data:e.data,i18n:e.i18n,autoFocus:e.autoFocus,onSearch:e.onSearch}),e._v(\" \"),i(\"div\",{ref:\"scroll\",staticClass:\"emoji-mart-scroll\",attrs:{role:\"tabpanel\"},on:{scroll:e.onScroll}},[i(\"div\",{ref:\"scrollContent\",attrs:{id:\"emoji-mart-list\",role:\"listbox\",\"aria-expanded\":\"true\"}},e._l(e.view.filteredCategories,(function(t,n){return i(\"category\",{directives:[{name:\"show\",rawName:\"v-show\",value:e.infiniteScroll||t==e.view.activeCategory,expression:\"infiniteScroll || category == view.activeCategory\"}],key:t.id,ref:\"categories_\"+n,refInFor:!0,attrs:{data:e.data,i18n:e.mergedI18n,id:t.id,name:t.name,emojis:t.emojis,\"emoji-props\":e.emojiProps}})})),1)]),e._v(\" \"),e._t(\"previewTemplate\",(function(){return[e.showPreview?i(\"div\",{staticClass:\"emoji-mart-bar emoji-mart-bar-preview\"},[i(\"preview\",{attrs:{data:e.data,title:e.title,emoji:e.view.previewEmoji,\"idle-emoji\":e.idleEmoji,\"show-skin-tones\":e.showSkinTones,\"emoji-props\":e.emojiProps,\"skin-props\":e.skinProps,\"on-skin-change\":e.onSkinChange}})],1):e._e()]}),{data:e.data,title:e.title,emoji:e.view.previewEmoji,idleEmoji:e.idleEmoji,showSkinTones:e.showSkinTones,emojiProps:e.emojiProps,skinProps:e.skinProps,onSkinChange:e.onSkinChange})],2)}),[],!1,null,null,null),oe=re.exports}(),n}()}));","//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\r\nimport ChatButtonEnter from '../ChatButtonEnter.vue'\r\nimport Emoji from '~/../libraries/emoji-mart-vue-fast/dist/emoji-mart'\r\nimport data from '~/../libraries/emoji-mart-vue-fast/data/all'\r\nimport { createNamespacedHelpers } from 'vuex'\r\nconst Picker = Emoji.Picker\r\nconst EmojiIndex = Emoji.EmojiIndex\r\nconst { mapGetters, mapActions } = createNamespacedHelpers('Chat')\r\nlet emojiIndex = new EmojiIndex(data)\r\nexport default {\r\n\tname: 'TabChatInput',\r\n\tcomponents: { Picker, ChatButtonEnter },\r\n\tprops: {\r\n\t\troomData: {\r\n\t\t\ttype: Object,\r\n\t\t\trequired: true\r\n\t\t}\r\n\t},\r\n\tdata() {\r\n\t\treturn {\r\n\t\t\tsending: false,\r\n\t\t\temojiPanel: false,\r\n\t\t\temojiTranslations: {\r\n\t\t\t\tsearch: this.translate('JS_EMOJI_SEARCH'),\r\n\t\t\t\tnotfound: this.translate('JS_EMOJI_NOTFOUND'),\r\n\t\t\t\tcategories: {\r\n\t\t\t\t\tsearch: this.translate('JS_EMOJI_SEARCHRESULT'),\r\n\t\t\t\t\trecent: this.translate('JS_EMOJI_RECENT'),\r\n\t\t\t\t\tpeople: this.translate('JS_EMOJI_PEOPLE'),\r\n\t\t\t\t\tnature: this.translate('JS_EMOJI_NATURE'),\r\n\t\t\t\t\tfoods: this.translate('JS_EMOJI_FOODS'),\r\n\t\t\t\t\tactivity: this.translate('JS_EMOJI_ACTIVITY'),\r\n\t\t\t\t\tplaces: this.translate('JS_EMOJI_PLACES'),\r\n\t\t\t\t\tobjects: this.translate('JS_EMOJI_OBJECTS'),\r\n\t\t\t\t\tsymbols: this.translate('JS_EMOJI_SYMBOLS'),\r\n\t\t\t\t\tflags: this.translate('JS_EMOJI_FLAGS'),\r\n\t\t\t\t\tcustom: this.translate('JS_EMOJI_CUSTOM')\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\temojiIndex: emojiIndex\r\n\t\t}\r\n\t},\r\n\tcomputed: {\r\n\t\t...mapGetters(['config', 'sendByEnter', 'currentRoomData']),\r\n\t\tcontainerHeight() {\r\n\t\t\tif (this.$refs.textContainer !== undefined) return this.$refs.textContainer.clientHeight + 'px'\r\n\t\t}\r\n\t},\r\n\twatch: {\r\n\t\tcurrentRoomData() {\r\n\t\t\tthis.focusInput()\r\n\t\t}\r\n\t},\r\n\tmounted() {\r\n\t\tthis.$nextTick(() => {\r\n\t\t\tnew App.Fields.Text.Completions(this.$refs.input)\r\n\t\t\tthis.registerEmojiPanelClickOutside()\r\n\t\t})\r\n\t},\r\n\tmethods: {\r\n\t\t...mapActions(['sendMessage']),\r\n\t\tsend(e) {\r\n\t\t\te.preventDefault()\r\n\t\t\tif (this.sending || !this.$refs.input.innerText.length) return\r\n\t\t\tif (this.$refs.input.innerText.length < this.config.maxLengthMessage) {\r\n\t\t\t\tthis.sending = true\r\n\t\t\t\tthis.sendMessage({\r\n\t\t\t\t\ttext: this.$refs.input.innerHTML,\r\n\t\t\t\t\troomType: this.roomData.roomType,\r\n\t\t\t\t\trecordId: this.roomData.recordid\r\n\t\t\t\t}).then(e => {\r\n\t\t\t\t\tthis.$refs.input.innerText = ''\r\n\t\t\t\t\tthis.sending = false\r\n\t\t\t\t\tthis.$emit('onSended')\r\n\t\t\t\t})\r\n\t\t\t} else {\r\n\t\t\t\tapp.showNotify({\r\n\t\t\t\t\ttext: app.vtranslate('JS_MESSAGE_TOO_LONG'),\r\n\t\t\t\t\ttype: 'error',\r\n\t\t\t\t\tanimation: 'show'\r\n\t\t\t\t})\r\n\t\t\t}\r\n\t\t},\r\n\t\taddEmoji(emoji) {\r\n\t\t\tthis.$refs.input.insertAdjacentHTML('beforeend', emoji.native)\r\n\t\t},\r\n\t\tonEnter(e) {\r\n\t\t\tif (this.sendByEnter && !e.shiftKey) {\r\n\t\t\t\te.preventDefault()\r\n\t\t\t\tthis.send(e)\r\n\t\t\t}\r\n\t\t},\r\n\t\tfocusInput() {\r\n\t\t\tthis.$refs.input.focus()\r\n\t\t},\r\n\t\tregisterEmojiPanelClickOutside() {\r\n\t\t\tdocument.addEventListener('click', e => {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tif (\r\n\t\t\t\t\t\tthis.emojiPanel &&\r\n\t\t\t\t\t\t!e.target.parentNode.className.split(' ').some(c => /emoji-mart.*/.test(c)) &&\r\n\t\t\t\t\t\t!e.target.className.split(' ').some(c => /emoji-mart.*/.test(c)) &&\r\n\t\t\t\t\t\t!e.target.classList.contains('js-emoji-trigger')\r\n\t\t\t\t\t) {\r\n\t\t\t\t\t\tthis.emojiPanel = false\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (error) {}\r\n\t\t\t})\r\n\t\t}\r\n\t}\r\n}\r\n","//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\r\nexport default {\r\n\tname: 'NoResults',\r\n}\r\n","//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\r\nimport NoResults from 'components/NoResults.vue'\r\nimport { createNamespacedHelpers } from 'vuex'\r\nconst { mapGetters, mapActions, mapMutations } = createNamespacedHelpers('Chat')\r\n\r\nexport default {\r\n\tname: 'TabMessages',\r\n\tcomponents: { NoResults },\r\n\tprops: {\r\n\t\tfetchingEarlier: {\r\n\t\t\ttype: Boolean,\r\n\t\t\tdefault: false,\r\n\t\t},\r\n\t\theader: {\r\n\t\t\ttype: Function,\r\n\t\t},\r\n\t\tmessageOnClick: {\r\n\t\t\ttype: Function,\r\n\t\t},\r\n\t\troomData: {\r\n\t\t\ttype: Object,\r\n\t\t\trequired: true,\r\n\t\t},\r\n\t},\r\n\tdata() {\r\n\t\treturn {\r\n\t\t\tuserId: CONFIG.userId,\r\n\t\t}\r\n\t},\r\n\tcomputed: {\r\n\t\tareEntries() {\r\n\t\t\treturn this.roomData.chatEntries === undefined ? true : this.roomData.chatEntries.length\r\n\t\t},\r\n\t},\r\n}\r\n","//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\r\nimport TabChatInput from './Tabs/TabChatInput.vue'\r\nimport TabMessages from './Tabs/TabMessages.vue'\r\n\r\nimport { createNamespacedHelpers } from 'vuex'\r\nconst { mapGetters, mapActions } = createNamespacedHelpers('Chat')\r\nexport default {\r\n\tname: 'ChatContent',\r\n\tcomponents: { TabChatInput, TabMessages },\r\n\tprops: {\r\n\t\troomData: {\r\n\t\t\ttype: Object,\r\n\t\t\trequired: true,\r\n\t\t},\r\n\t\tisVisible: {\r\n\t\t\ttype: Boolean,\r\n\t\t\tdefault: true,\r\n\t\t},\r\n\t},\r\n\tdata() {\r\n\t\treturn {\r\n\t\t\tinputSearch: '',\r\n\t\t\tisSearchActive: false,\r\n\t\t\tsearching: false,\r\n\t\t\tfetchingEarlier: false,\r\n\t\t\tscrollbarHidden: false,\r\n\t\t\tscrollButton: false,\r\n\t\t\tisNewMessages: false,\r\n\t\t\tscrollButtonSkip: false,\r\n\t\t\tcountMessages: 0,\r\n\t\t}\r\n\t},\r\n\tcomputed: {\r\n\t\t...mapGetters(['miniMode', 'config', 'dialog']),\r\n\t\troomChange() {\r\n\t\t\treturn this.roomData.recordid\r\n\t\t},\r\n\t\troomMessages() {\r\n\t\t\treturn this.roomData.chatEntries\r\n\t\t},\r\n\t},\r\n\twatch: {\r\n\t\troomChange() {\r\n\t\t\tthis.clearScrollButton()\r\n\t\t},\r\n\t\troomMessages() {\r\n\t\t\tthis.scrollbarHidden = true\r\n\t\t\tif (this.$refs.scrollContainer !== 'undefined') {\r\n\t\t\t\tthis.onScroll(this.$refs.scrollContainer.scrollPosition)\r\n\t\t\t}\r\n\t\t\tlet forceScrollDown = !this.fetchingEarlier && !this.scrollButton\r\n\t\t\tif (!this.fetchingEarlier) {\r\n\t\t\t\tthis.isNewMessages = this.isNewMessages || (this.roomData.chatEntries && this.roomData.chatEntries.length > this.countMessages)\r\n\t\t\t}\r\n\t\t\tthis.countMessages = this.roomData.chatEntries ? this.roomData.chatEntries.length : 0\r\n\t\t\tif (forceScrollDown) {\r\n\t\t\t\tthis.$nextTick(function () {\r\n\t\t\t\t\tthis.scrollDown()\r\n\t\t\t\t})\r\n\t\t\t} else {\r\n\t\t\t\tthis.fetchingEarlier = false\r\n\t\t\t}\r\n\t\t\tthis.$nextTick(function () {\r\n\t\t\t\tsetTimeout(() => {\r\n\t\t\t\t\tthis.scrollbarHidden = false\r\n\t\t\t\t}, 1800)\r\n\t\t\t})\r\n\t\t},\r\n\t},\r\n\tmounted() {\r\n\t\tthis.registerMountedEvents()\r\n\t},\r\n\tmethods: {\r\n\t\t...mapActions(['fetchEarlierEntries', 'fetchSearchData']),\r\n\t\tonResize({ height }) {\r\n\t\t\tif (!this.isVisible) return\r\n\t\t\tQuasar.utils.dom.css(this.$refs.scrollContainer.$el, {\r\n\t\t\t\theight: height + 'px',\r\n\t\t\t})\r\n\t\t},\r\n\t\tearlierClick() {\r\n\t\t\tthis.fetchingEarlier = true\r\n\t\t\tif (!this.isSearchActive) {\r\n\t\t\t\tthis.fetchEarlierEntries({\r\n\t\t\t\t\tchatEntries: this.roomData.chatEntries,\r\n\t\t\t\t\troomType: this.roomData.roomType,\r\n\t\t\t\t\trecordId: this.roomData.recordid,\r\n\t\t\t\t})\r\n\t\t\t} else {\r\n\t\t\t\tthis.fetchSearchData({\r\n\t\t\t\t\tvalue: this.inputSearch,\r\n\t\t\t\t\troomData: this.roomData,\r\n\t\t\t\t\tshowMore: true,\r\n\t\t\t\t})\r\n\t\t\t}\r\n\t\t},\r\n\t\tclearSearch() {\r\n\t\t\tthis.isSearchActive = false\r\n\t\t\tthis.inputSearch = ''\r\n\t\t\tthis.$nextTick(function () {\r\n\t\t\t\tthis.scrollDown()\r\n\t\t\t})\r\n\t\t},\r\n\t\tsearch() {\r\n\t\t\tthis.searching = true\r\n\t\t\tthis.fetchSearchData({\r\n\t\t\t\tvalue: this.inputSearch,\r\n\t\t\t\troomData: this.roomData,\r\n\t\t\t\tshowMore: false,\r\n\t\t\t}).then((e) => {\r\n\t\t\t\tthis.isSearchActive = true\r\n\t\t\t\tthis.searching = false\r\n\t\t\t\tthis.clearScrollButton()\r\n\t\t\t})\r\n\t\t},\r\n\t\tscrollDown() {\r\n\t\t\tif (!this.isVisible) return\r\n\t\t\tthis.scrollbarHidden = true\r\n\t\t\tthis.$refs.scrollContainer.setScrollPosition(this.$refs.messagesContainer.$el.clientHeight)\r\n\t\t\tthis.isNewMessages = false\r\n\t\t\tthis.scrollButton = false\r\n\t\t\tsetTimeout(() => {\r\n\t\t\t\tthis.scrollbarHidden = false\r\n\t\t\t}, 1800)\r\n\t\t},\r\n\t\tregisterMountedEvents() {\r\n\t\t\tthis.scrollDown()\r\n\t\t\tthis.$emit('onContentLoaded', true)\r\n\t\t},\r\n\t\tonScroll(e) {\r\n\t\t\tif (typeof window === 'undefined') return\r\n\t\t\tif (this.scrollButtonSkip) {\r\n\t\t\t\tsetTimeout(() => {\r\n\t\t\t\t\tthis.scrollButtonSkip = false\r\n\t\t\t\t}, 200)\r\n\t\t\t} else {\r\n\t\t\t\tthis.scrollButton = e + this.$refs.scrollContainer.containerHeight < this.$refs.scrollContainer.scrollSize - 90\r\n\t\t\t\tif (!this.scrollButton) {\r\n\t\t\t\t\tthis.isNewMessages = false\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\tclearScrollButton() {\r\n\t\t\tthis.scrollButton = false\r\n\t\t\tthis.isNewMessages = false\r\n\t\t\tthis.countMessages = 0\r\n\t\t\tthis.scrollButtonSkip = true\r\n\t\t\tthis.$nextTick(function () {\r\n\t\t\t\tthis.scrollDown()\r\n\t\t\t})\r\n\t\t},\r\n\t},\r\n}\r\n","<!-- /* {[The file is published on the basis of YetiForce Public License 6.5 that can be found in the following directory: licenses/LicenseEN.txt or yetiforce.com]} */ -->\r\n<template>\r\n\t<div style=\"min-height: inherit\">\r\n\t\t<div v-if=\"isVisible\" :key=\"isVisible\" class=\"flex column justify-between\" style=\"min-height: inherit\">\r\n\t\t\t<div class=\"flex no-wrap items-center q-px-sm\">\r\n\t\t\t\t<slot name=\"searchPrepend\" />\r\n\t\t\t\t<q-input\r\n\t\t\t\t\tv-model=\"inputSearch\"\r\n\t\t\t\t\tclass=\"full-width q-px-sm\"\r\n\t\t\t\t\tdense\r\n\t\t\t\t\t:loading=\"searching\"\r\n\t\t\t\t\t:placeholder=\"translate('JS_CHAT_SEARCH_MESSAGES')\"\r\n\t\t\t\t\t@keydown.enter=\"search()\"\r\n\t\t\t\t>\r\n\t\t\t\t\t<template #prepend>\r\n\t\t\t\t\t\t<q-icon @click=\"search()\" class=\"cursor-pointer\" name=\"mdi-magnify\" />\r\n\t\t\t\t\t</template>\r\n\t\t\t\t\t<template #append>\r\n\t\t\t\t\t\t<q-icon v-show=\"inputSearch.length > 0\" class=\"cursor-pointer\" name=\"mdi-close\" @click=\"inputSearch = ''\" />\r\n\t\t\t\t\t\t<q-btn v-show=\"isSearchActive\" :label=\"translate('JS_LBL_CANCEL')\" color=\"danger\" flat dense @click=\"clearSearch()\" />\r\n\t\t\t\t\t</template>\r\n\t\t\t\t</q-input>\r\n\t\t\t\t<slot name=\"searchAppend\" />\r\n\t\t\t</div>\r\n\t\t\t<div class=\"flex-grow-1\" style=\"min-height: 100%; height: 0; overflow: hidden\">\r\n\t\t\t\t<q-scroll-area ref=\"scrollContainer\" :class=\"[scrollbarHidden ? 'scrollbarHidden' : '']\">\r\n\t\t\t\t\t<TabMessages\r\n\t\t\t\t\t\tref=\"messagesContainer\"\r\n\t\t\t\t\t\t:roomData=\"isSearchActive ? roomData.searchData : roomData\"\r\n\t\t\t\t\t\t:fetchingEarlier=\"fetchingEarlier\"\r\n\t\t\t\t\t\t@earlierClick=\"earlierClick()\"\r\n\t\t\t\t\t/>\r\n\t\t\t\t\t<q-btn\r\n\t\t\t\t\t\tround\r\n\t\t\t\t\t\tsize=\"sm\"\r\n\t\t\t\t\t\t:color=\"isNewMessages ? 'danger' : 'primary'\"\r\n\t\t\t\t\t\t@click=\"scrollDown\"\r\n\t\t\t\t\t\tv-scroll=\"onScroll\"\r\n\t\t\t\t\t\tv-show=\"roomData.chatEntries && roomData.chatEntries.length && scrollButton\"\r\n\t\t\t\t\t\ticon=\"mdi-chevron-down\"\r\n\t\t\t\t\t\t:class=\"isNewMessages ? 'animate__animated animate__shakeX animate__faster animate-pop' : 'animate-pop'\"\r\n\t\t\t\t\t\tstyle=\"position: sticky; bottom: 10px; left: 10px\"\r\n\t\t\t\t\t></q-btn>\r\n\t\t\t\t</q-scroll-area>\r\n\t\t\t\t<q-resize-observer @resize=\"onResize\" />\r\n\t\t\t</div>\r\n\t\t\t<TabChatInput :roomData=\"roomData\" @onSended=\"scrollDown()\" />\r\n\t\t</div>\r\n\t\t<div v-else :key=\"isVisible\">\r\n\t\t\t<slot name=\"noRoom\"></slot>\r\n\t\t</div>\r\n\t</div>\r\n</template>\r\n<script>\r\nimport TabChatInput from './Tabs/TabChatInput.vue'\r\nimport TabMessages from './Tabs/TabMessages.vue'\r\n\r\nimport { createNamespacedHelpers } from 'vuex'\r\nconst { mapGetters, mapActions } = createNamespacedHelpers('Chat')\r\nexport default {\r\n\tname: 'ChatContent',\r\n\tcomponents: { TabChatInput, TabMessages },\r\n\tprops: {\r\n\t\troomData: {\r\n\t\t\ttype: Object,\r\n\t\t\trequired: true,\r\n\t\t},\r\n\t\tisVisible: {\r\n\t\t\ttype: Boolean,\r\n\t\t\tdefault: true,\r\n\t\t},\r\n\t},\r\n\tdata() {\r\n\t\treturn {\r\n\t\t\tinputSearch: '',\r\n\t\t\tisSearchActive: false,\r\n\t\t\tsearching: false,\r\n\t\t\tfetchingEarlier: false,\r\n\t\t\tscrollbarHidden: false,\r\n\t\t\tscrollButton: false,\r\n\t\t\tisNewMessages: false,\r\n\t\t\tscrollButtonSkip: false,\r\n\t\t\tcountMessages: 0,\r\n\t\t}\r\n\t},\r\n\tcomputed: {\r\n\t\t...mapGetters(['miniMode', 'config', 'dialog']),\r\n\t\troomChange() {\r\n\t\t\treturn this.roomData.recordid\r\n\t\t},\r\n\t\troomMessages() {\r\n\t\t\treturn this.roomData.chatEntries\r\n\t\t},\r\n\t},\r\n\twatch: {\r\n\t\troomChange() {\r\n\t\t\tthis.clearScrollButton()\r\n\t\t},\r\n\t\troomMessages() {\r\n\t\t\tthis.scrollbarHidden = true\r\n\t\t\tif (this.$refs.scrollContainer !== 'undefined') {\r\n\t\t\t\tthis.onScroll(this.$refs.scrollContainer.scrollPosition)\r\n\t\t\t}\r\n\t\t\tlet forceScrollDown = !this.fetchingEarlier && !this.scrollButton\r\n\t\t\tif (!this.fetchingEarlier) {\r\n\t\t\t\tthis.isNewMessages = this.isNewMessages || (this.roomData.chatEntries && this.roomData.chatEntries.length > this.countMessages)\r\n\t\t\t}\r\n\t\t\tthis.countMessages = this.roomData.chatEntries ? this.roomData.chatEntries.length : 0\r\n\t\t\tif (forceScrollDown) {\r\n\t\t\t\tthis.$nextTick(function () {\r\n\t\t\t\t\tthis.scrollDown()\r\n\t\t\t\t})\r\n\t\t\t} else {\r\n\t\t\t\tthis.fetchingEarlier = false\r\n\t\t\t}\r\n\t\t\tthis.$nextTick(function () {\r\n\t\t\t\tsetTimeout(() => {\r\n\t\t\t\t\tthis.scrollbarHidden = false\r\n\t\t\t\t}, 1800)\r\n\t\t\t})\r\n\t\t},\r\n\t},\r\n\tmounted() {\r\n\t\tthis.registerMountedEvents()\r\n\t},\r\n\tmethods: {\r\n\t\t...mapActions(['fetchEarlierEntries', 'fetchSearchData']),\r\n\t\tonResize({ height }) {\r\n\t\t\tif (!this.isVisible) return\r\n\t\t\tQuasar.utils.dom.css(this.$refs.scrollContainer.$el, {\r\n\t\t\t\theight: height + 'px',\r\n\t\t\t})\r\n\t\t},\r\n\t\tearlierClick() {\r\n\t\t\tthis.fetchingEarlier = true\r\n\t\t\tif (!this.isSearchActive) {\r\n\t\t\t\tthis.fetchEarlierEntries({\r\n\t\t\t\t\tchatEntries: this.roomData.chatEntries,\r\n\t\t\t\t\troomType: this.roomData.roomType,\r\n\t\t\t\t\trecordId: this.roomData.recordid,\r\n\t\t\t\t})\r\n\t\t\t} else {\r\n\t\t\t\tthis.fetchSearchData({\r\n\t\t\t\t\tvalue: this.inputSearch,\r\n\t\t\t\t\troomData: this.roomData,\r\n\t\t\t\t\tshowMore: true,\r\n\t\t\t\t})\r\n\t\t\t}\r\n\t\t},\r\n\t\tclearSearch() {\r\n\t\t\tthis.isSearchActive = false\r\n\t\t\tthis.inputSearch = ''\r\n\t\t\tthis.$nextTick(function () {\r\n\t\t\t\tthis.scrollDown()\r\n\t\t\t})\r\n\t\t},\r\n\t\tsearch() {\r\n\t\t\tthis.searching = true\r\n\t\t\tthis.fetchSearchData({\r\n\t\t\t\tvalue: this.inputSearch,\r\n\t\t\t\troomData: this.roomData,\r\n\t\t\t\tshowMore: false,\r\n\t\t\t}).then((e) => {\r\n\t\t\t\tthis.isSearchActive = true\r\n\t\t\t\tthis.searching = false\r\n\t\t\t\tthis.clearScrollButton()\r\n\t\t\t})\r\n\t\t},\r\n\t\tscrollDown() {\r\n\t\t\tif (!this.isVisible) return\r\n\t\t\tthis.scrollbarHidden = true\r\n\t\t\tthis.$refs.scrollContainer.setScrollPosition(this.$refs.messagesContainer.$el.clientHeight)\r\n\t\t\tthis.isNewMessages = false\r\n\t\t\tthis.scrollButton = false\r\n\t\t\tsetTimeout(() => {\r\n\t\t\t\tthis.scrollbarHidden = false\r\n\t\t\t}, 1800)\r\n\t\t},\r\n\t\tregisterMountedEvents() {\r\n\t\t\tthis.scrollDown()\r\n\t\t\tthis.$emit('onContentLoaded', true)\r\n\t\t},\r\n\t\tonScroll(e) {\r\n\t\t\tif (typeof window === 'undefined') return\r\n\t\t\tif (this.scrollButtonSkip) {\r\n\t\t\t\tsetTimeout(() => {\r\n\t\t\t\t\tthis.scrollButtonSkip = false\r\n\t\t\t\t}, 200)\r\n\t\t\t} else {\r\n\t\t\t\tthis.scrollButton = e + this.$refs.scrollContainer.containerHeight < this.$refs.scrollContainer.scrollSize - 90\r\n\t\t\t\tif (!this.scrollButton) {\r\n\t\t\t\t\tthis.isNewMessages = false\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\tclearScrollButton() {\r\n\t\t\tthis.scrollButton = false\r\n\t\t\tthis.isNewMessages = false\r\n\t\t\tthis.countMessages = 0\r\n\t\t\tthis.scrollButtonSkip = true\r\n\t\t\tthis.$nextTick(function () {\r\n\t\t\t\tthis.scrollDown()\r\n\t\t\t})\r\n\t\t},\r\n\t},\r\n}\r\n</script>\r\n<style lang=\"sass\">\r\n.scrollbarHidden\r\n\t.q-scrollarea__thumb\r\n\t\tvisibility: hidden\r\n</style>\r\n","//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\r\nimport { createNamespacedHelpers } from 'vuex'\r\nconst { mapGetters, mapActions } = createNamespacedHelpers('Chat')\r\nexport default {\r\n\tname: 'TabChatNoRoom',\r\n\tdata() {\r\n\t\treturn {\r\n\t\t\tinputSearch: '',\r\n\t\t\tisSearchActive: false,\r\n\t\t\tsearching: false,\r\n\t\t\tfetchingEarlier: false,\r\n\t\t\tscrollbarHidden: false,\r\n\t\t\tdataReady: false,\r\n\t\t\troomId: null,\r\n\t\t\troomType: null,\r\n\t\t}\r\n\t},\r\n\tcomputed: {\r\n\t\t...mapGetters(['leftPanel', 'rightPanel']),\r\n\t},\r\n\tmethods: {\r\n\t\t...mapActions(['toggleLeftPanel', 'toggleRightPanel']),\r\n\t},\r\n}\r\n","//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\r\nimport ChatContent from '../ChatContent.vue'\r\nimport TabChatNoRoom from './TabChatNoRoom.vue'\r\n\r\nimport { createNamespacedHelpers } from 'vuex'\r\nconst { mapGetters, mapActions, mapMutations } = createNamespacedHelpers('Chat')\r\nexport default {\r\n\tname: 'TabChat',\r\n\tcomponents: { ChatContent, TabChatNoRoom },\r\n\tprops: {\r\n\t\troomData: {\r\n\t\t\ttype: Object,\r\n\t\t\trequired: true,\r\n\t\t},\r\n\t},\r\n\tdata() {\r\n\t\treturn {\r\n\t\t\troomId: null,\r\n\t\t\troomType: null,\r\n\t\t\tdataReady: false,\r\n\t\t}\r\n\t},\r\n\tcomputed: {\r\n\t\t...mapGetters(['data', 'currentRoomData', 'dialog', 'leftPanel', 'rightPanel']),\r\n\t\tisSetCurrentRoom() {\r\n\t\t\treturn !!Object.keys(this.currentRoomData).length\r\n\t\t},\r\n\t},\r\n\twatch: {\r\n\t\troomData() {\r\n\t\t\tif (this.isSetCurrentRoom && this.dataReady && (this.roomData.recordid !== this.roomId || this.roomData.roomType !== this.roomType)) {\r\n\t\t\t\tthis.disableNewMessagesListener()\r\n\t\t\t\tthis.updateComponentsRoom()\r\n\t\t\t\tthis.enableNewMessagesListener()\r\n\t\t\t}\r\n\t\t},\r\n\t\tdialog() {\r\n\t\t\tif (this.dialog) {\r\n\t\t\t\tthis.onShowTabChatEvent()\r\n\t\t\t} else {\r\n\t\t\t\tthis.disableNewMessagesListener()\r\n\t\t\t}\r\n\t\t},\r\n\t},\r\n\tmounted() {\r\n\t\tif (this.dialog && this.isSetCurrentRoom) {\r\n\t\t\tthis.onShowTabChatEvent()\r\n\t\t}\r\n\t\tthis.updateComponentsRoom()\r\n\t\tthis.dataReady = true\r\n\t},\r\n\tbeforeDestroy() {\r\n\t\tthis.disableNewMessagesListener()\r\n\t},\r\n\tmethods: {\r\n\t\t...mapActions(['fetchRoom', 'addActiveRoom', 'toggleLeftPanel', 'toggleRightPanel', 'removeActiveRoom']),\r\n\t\tregisterPostLoadEvents() {\r\n\t\t\tthis.$refs.chat.registerMountedEvents()\r\n\t\t\tthis.enableNewMessagesListener()\r\n\t\t},\r\n\t\tupdateComponentsRoom() {\r\n\t\t\tthis.roomId = this.roomData.recordid\r\n\t\t\tthis.roomType = this.roomData.roomType\r\n\t\t},\r\n\t\tenableNewMessagesListener() {\r\n\t\t\tthis.addActiveRoom({ recordId: this.roomId, roomType: this.roomType })\r\n\t\t},\r\n\t\tonShowTabChatEvent() {\r\n\t\t\tif (this.currentRoomData.recordid) {\r\n\t\t\t\tthis.fetchRoom({\r\n\t\t\t\t\tid: this.roomData.recordid,\r\n\t\t\t\t\troomType: this.roomData.roomType,\r\n\t\t\t\t}).then((result) => {\r\n\t\t\t\t\tif (result) {\r\n\t\t\t\t\t\tthis.registerPostLoadEvents()\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tthis.$emit('onContentLoaded', true)\r\n\t\t\t\t\t}\r\n\t\t\t\t})\r\n\t\t\t} else {\r\n\t\t\t\tthis.registerPostLoadEvents()\r\n\t\t\t}\r\n\t\t},\r\n\t\tdisableNewMessagesListener() {\r\n\t\t\tif (this.data.roomList[this.roomType] && this.data.roomList[this.roomType][this.roomId]) {\r\n\t\t\t\tthis.removeActiveRoom({\r\n\t\t\t\t\trecordId: this.roomId,\r\n\t\t\t\t\troomType: this.roomType,\r\n\t\t\t\t})\r\n\t\t\t}\r\n\t\t},\r\n\t},\r\n}\r\n","//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\r\nimport NoResults from 'components/NoResults.vue'\r\nimport { createNamespacedHelpers } from 'vuex'\r\nconst { mapActions, mapMutations } = createNamespacedHelpers('Chat')\r\n\r\nexport default {\r\n\tname: 'TabUnread',\r\n\tcomponents: { NoResults },\r\n\tdata() {\r\n\t\treturn {\r\n\t\t\tuserId: CONFIG.userId,\r\n\t\t\tunreadMessages: {\r\n\t\t\t\tcrm: [],\r\n\t\t\t\tglobal: [],\r\n\t\t\t\tgroup: [],\r\n\t\t\t\tprivate: [],\r\n\t\t\t\tuser: [],\r\n\t\t\t},\r\n\t\t}\r\n\t},\r\n\tcomputed: {\r\n\t\tareUnread() {\r\n\t\t\tlet areUnread = false\r\n\t\t\tObject.keys(this.unreadMessages).forEach((roomType) => {\r\n\t\t\t\tif (this.unreadMessages[roomType].length) {\r\n\t\t\t\t\tareUnread = true\r\n\t\t\t\t}\r\n\t\t\t})\r\n\t\t\treturn areUnread\r\n\t\t},\r\n\t\tunread() {\r\n\t\t\tlet unread = {\r\n\t\t\t\tcrm: {},\r\n\t\t\t\tglobal: {},\r\n\t\t\t\tgroup: {},\r\n\t\t\t\tprivate: {},\r\n\t\t\t\tuser: {},\r\n\t\t\t}\r\n\t\t\tif (this.areUnread) {\r\n\t\t\t\tlet tempRoomName = ''\r\n\t\t\t\tObject.keys(this.unreadMessages).forEach((roomType) => {\r\n\t\t\t\t\tif (this.unreadMessages[roomType].length) {\r\n\t\t\t\t\t\tthis.unreadMessages[roomType].forEach((el) => {\r\n\t\t\t\t\t\t\tif (el.room_name !== tempRoomName) {\r\n\t\t\t\t\t\t\t\ttempRoomName = el.room_name\r\n\t\t\t\t\t\t\t\tunread[roomType][tempRoomName] = []\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tunread[roomType][tempRoomName].push(el)\r\n\t\t\t\t\t\t})\r\n\t\t\t\t\t}\r\n\t\t\t\t})\r\n\t\t\t}\r\n\t\t\treturn unread\r\n\t\t},\r\n\t},\r\n\tmethods: {\r\n\t\t...mapActions(['fetchUnread', 'fetchRoom']),\r\n\t\t...mapMutations(['setTab']),\r\n\t\tshowChatRoom(recordid, roomType) {\r\n\t\t\tthis.fetchRoom({\r\n\t\t\t\tid: recordid,\r\n\t\t\t\troomType: roomType,\r\n\t\t\t}).then((_) => {\r\n\t\t\t\tthis.setTab('chat')\r\n\t\t\t})\r\n\t\t},\r\n\t},\r\n\tmounted() {\r\n\t\tthis.fetchUnread().then((result) => {\r\n\t\t\tthis.unreadMessages = result\r\n\t\t\tthis.$emit('onContentLoaded', true)\r\n\t\t})\r\n\t},\r\n}\r\n","<!-- /* {[The file is published on the basis of YetiForce Public License 6.5 that can be found in the following directory: licenses/LicenseEN.txt or yetiforce.com]} */ -->\r\n<template>\r\n\t<div>\r\n\t\t<template v-for=\"(rooms, roomType) in unread\">\r\n\t\t\t<div v-if=\"Object.entries(rooms).length\" :key=\"roomType\">\r\n\t\t\t\t<div class=\"text-uppercase text-primary full-width flex justify-center\">\r\n\t\t\t\t\t{{ translate(`JS_CHAT_ROOM_${roomType.toUpperCase()}`) }}\r\n\t\t\t\t</div>\r\n\t\t\t\t<div v-for=\"(room, roomName) in rooms\" :key=\"roomName\">\r\n\t\t\t\t\t<a class=\"text-info full-width flex\" href=\"#\" @click=\"showChatRoom(room[0].recordid, roomType)\">\r\n\t\t\t\t\t\t{{ roomName }}\r\n\t\t\t\t\t</a>\r\n\t\t\t\t\t<q-chat-message\r\n\t\t\t\t\t\tv-for=\"message in room\"\r\n\t\t\t\t\t\t:key=\"message.id\"\r\n\t\t\t\t\t\t:name=\"message.user_name\"\r\n\t\t\t\t\t\t:stamp=\"message.created\"\r\n\t\t\t\t\t\t:avatar=\"message.image\"\r\n\t\t\t\t\t\t:text=\"[message.messages]\"\r\n\t\t\t\t\t\t:bg-color=\"message.color\"\r\n\t\t\t\t\t\tsize=\"8\"\r\n\t\t\t\t\t\t:sent=\"message.userid === userId\"\r\n\t\t\t\t\t/>\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\t\t</template>\r\n\t\t<no-results v-show=\"!areUnread\" />\r\n\t</div>\r\n</template>\r\n<script>\r\nimport NoResults from 'components/NoResults.vue'\r\nimport { createNamespacedHelpers } from 'vuex'\r\nconst { mapActions, mapMutations } = createNamespacedHelpers('Chat')\r\n\r\nexport default {\r\n\tname: 'TabUnread',\r\n\tcomponents: { NoResults },\r\n\tdata() {\r\n\t\treturn {\r\n\t\t\tuserId: CONFIG.userId,\r\n\t\t\tunreadMessages: {\r\n\t\t\t\tcrm: [],\r\n\t\t\t\tglobal: [],\r\n\t\t\t\tgroup: [],\r\n\t\t\t\tprivate: [],\r\n\t\t\t\tuser: [],\r\n\t\t\t},\r\n\t\t}\r\n\t},\r\n\tcomputed: {\r\n\t\tareUnread() {\r\n\t\t\tlet areUnread = false\r\n\t\t\tObject.keys(this.unreadMessages).forEach((roomType) => {\r\n\t\t\t\tif (this.unreadMessages[roomType].length) {\r\n\t\t\t\t\tareUnread = true\r\n\t\t\t\t}\r\n\t\t\t})\r\n\t\t\treturn areUnread\r\n\t\t},\r\n\t\tunread() {\r\n\t\t\tlet unread = {\r\n\t\t\t\tcrm: {},\r\n\t\t\t\tglobal: {},\r\n\t\t\t\tgroup: {},\r\n\t\t\t\tprivate: {},\r\n\t\t\t\tuser: {},\r\n\t\t\t}\r\n\t\t\tif (this.areUnread) {\r\n\t\t\t\tlet tempRoomName = ''\r\n\t\t\t\tObject.keys(this.unreadMessages).forEach((roomType) => {\r\n\t\t\t\t\tif (this.unreadMessages[roomType].length) {\r\n\t\t\t\t\t\tthis.unreadMessages[roomType].forEach((el) => {\r\n\t\t\t\t\t\t\tif (el.room_name !== tempRoomName) {\r\n\t\t\t\t\t\t\t\ttempRoomName = el.room_name\r\n\t\t\t\t\t\t\t\tunread[roomType][tempRoomName] = []\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tunread[roomType][tempRoomName].push(el)\r\n\t\t\t\t\t\t})\r\n\t\t\t\t\t}\r\n\t\t\t\t})\r\n\t\t\t}\r\n\t\t\treturn unread\r\n\t\t},\r\n\t},\r\n\tmethods: {\r\n\t\t...mapActions(['fetchUnread', 'fetchRoom']),\r\n\t\t...mapMutations(['setTab']),\r\n\t\tshowChatRoom(recordid, roomType) {\r\n\t\t\tthis.fetchRoom({\r\n\t\t\t\tid: recordid,\r\n\t\t\t\troomType: roomType,\r\n\t\t\t}).then((_) => {\r\n\t\t\t\tthis.setTab('chat')\r\n\t\t\t})\r\n\t\t},\r\n\t},\r\n\tmounted() {\r\n\t\tthis.fetchUnread().then((result) => {\r\n\t\t\tthis.unreadMessages = result\r\n\t\t\tthis.$emit('onContentLoaded', true)\r\n\t\t})\r\n\t},\r\n}\r\n</script>\r\n<style lang=\"sass\"></style>\r\n","//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\r\nimport TabMessages from './TabMessages.vue'\r\nimport { getGroupIcon } from '../../utils/utils.js'\r\nimport { createNamespacedHelpers } from 'vuex'\r\nconst { mapGetters, mapActions, mapMutations } = createNamespacedHelpers('Chat')\r\n\r\nexport default {\r\n\tname: 'TabHistory',\r\n\tcomponents: { TabMessages },\r\n\tdata() {\r\n\t\treturn {\r\n\t\t\tuserId: CONFIG.userId,\r\n\t\t\tfetchingEarlier: false,\r\n\t\t}\r\n\t},\r\n\tcomputed: {\r\n\t\t...mapGetters(['data', 'tab', 'allRooms']),\r\n\t\thistoryTab: {\r\n\t\t\tget() {\r\n\t\t\t\treturn this.$store.getters['Chat/historyTab']\r\n\t\t\t},\r\n\t\t\tset(tab) {\r\n\t\t\t\tthis.$store.commit('Chat/setHistoryTab', tab)\r\n\t\t\t},\r\n\t\t},\r\n\t},\r\n\tmethods: {\r\n\t\t...mapActions(['fetchHistory', 'fetchRoom']),\r\n\t\t...mapMutations(['setTab']),\r\n\t\tgetGroupIcon,\r\n\t\ttabChange(val) {\r\n\t\t\tthis.fetchHistory({ groupHistory: val, showMoreClicked: false })\r\n\t\t},\r\n\t\tearlierClick() {\r\n\t\t\tthis.fetchingEarlier = true\r\n\t\t\tthis.fetchHistory({ groupHistory: this.historyTab, showMoreClicked: true }).then((e) => {\r\n\t\t\t\tthis.fetchingEarlier = false\r\n\t\t\t})\r\n\t\t},\r\n\t\tshowChatRoom(row, e) {\r\n\t\t\tif (e.target.dataset.showChatRoom) {\r\n\t\t\t\tthis.fetchRoom({\r\n\t\t\t\t\tid: row.recordid,\r\n\t\t\t\t\troomType: this.historyTab,\r\n\t\t\t\t}).then((_) => {\r\n\t\t\t\t\tthis.setTab('chat')\r\n\t\t\t\t})\r\n\t\t\t}\r\n\t\t},\r\n\t\tmessageHeader(row) {\r\n\t\t\tconst isRoomActive = this.allRooms.some((e) => e.recordid === row.recordid && e.roomType === row.roomType)\r\n\t\t\tlet template = `\r\n\t\t\t\t<div class=\"row justify-between${row.userid === this.userId ? ' reverse' : ''}\">\r\n\t\t\t\t\t<div>${row.user_name}</div>`\r\n\t\t\tif (isRoomActive) {\r\n\t\t\t\ttemplate += `<a class=\"text-teal\" href=\"#\" data-show-chat-room=\"true\">${row.room_name}</a></div>`\r\n\t\t\t} else {\r\n\t\t\t\ttemplate += `<div class=\"text-teal\" href=\"#\">${row.room_name}</div></div>`\r\n\t\t\t}\r\n\t\t\treturn template\r\n\t\t},\r\n\t},\r\n\tmounted() {\r\n\t\tthis.fetchHistory({ groupHistory: this.historyTab, showMoreClicked: false }).then(() => {\r\n\t\t\tthis.$emit('onContentLoaded', true)\r\n\t\t})\r\n\t},\r\n}\r\n","//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\r\nimport TabChat from './Tabs/TabChat.vue'\r\nimport TabUnread from './Tabs/TabUnread.vue'\r\nimport TabHistory from './Tabs/TabHistory.vue'\r\nimport { createNamespacedHelpers } from 'vuex'\r\nconst { mapGetters, mapActions } = createNamespacedHelpers('Chat')\r\n\r\nexport default {\r\n\tname: 'ChatPanelMain',\r\n\tcomponents: { TabUnread, TabHistory, TabChat },\r\n\tdata() {\r\n\t\treturn {\r\n\t\t\tisLoading: true,\r\n\t\t}\r\n\t},\r\n\tcomputed: {\r\n\t\t...mapGetters(['tab', 'currentRoomData']),\r\n\t},\r\n\twatch: {\r\n\t\ttab() {\r\n\t\t\tthis.isLoading = true\r\n\t\t},\r\n\t},\r\n}\r\n","//\n//\n//\n//\n//\n//\n//\n\r\nimport { createNamespacedHelpers } from 'vuex'\r\nconst { mapGetters, mapMutations } = createNamespacedHelpers('Chat')\r\n\r\nexport default {\r\n\tname: 'ChatButtonNotify',\r\n\tprops: {\r\n\t\tsize: {\r\n\t\t\ttype: String,\r\n\t\t},\r\n\t\tstyles: {\r\n\t\t\ttype: Object,\r\n\t\t},\r\n\t},\r\n\tdata() {\r\n\t\treturn {\r\n\t\t\tisWaitingForPermission: false,\r\n\t\t}\r\n\t},\r\n\tcomputed: {\r\n\t\t...mapGetters(['isDesktopNotification', 'config']),\r\n\t},\r\n\tmethods: {\r\n\t\t...mapMutations(['setDesktopNotification']),\r\n\t\tisNotificationPermitted() {\r\n\t\t\treturn typeof Notification !== 'undefined' && Notification.permission === 'granted'\r\n\t\t},\r\n\t\ttoggleDesktopNotification() {\r\n\t\t\tif (!this.isDesktopNotification && !this.isNotificationPermitted()) {\r\n\t\t\t\tthis.isWaitingForPermission = true\r\n\t\t\t\tPNotifyDesktop.permission()\r\n\t\t\t\tsetTimeout(() => {\r\n\t\t\t\t\tif (!this.isNotificationPermitted()) {\r\n\t\t\t\t\t\tapp.showNotify({\r\n\t\t\t\t\t\t\ttext: app.vtranslate('JS_NO_DESKTOP_PERMISSION'),\r\n\t\t\t\t\t\t\ttype: 'info',\r\n\t\t\t\t\t\t\tanimation: 'show',\r\n\t\t\t\t\t\t})\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tthis.setDesktopNotification(!this.isDesktopNotification)\r\n\t\t\t\t\t}\r\n\t\t\t\t\tthis.isWaitingForPermission = false\r\n\t\t\t\t}, 3000)\r\n\t\t\t} else if (this.isNotificationPermitted()) {\r\n\t\t\t\tthis.setDesktopNotification(!this.isDesktopNotification)\r\n\t\t\t}\r\n\t\t},\r\n\t},\r\n\tcreated() {\r\n\t\tif (this.isDesktopNotification && !this.isNotificationPermitted()) {\r\n\t\t\tthis.setDesktopNotification(false)\r\n\t\t}\r\n\t},\r\n}\r\n","//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\r\nexport default {\r\n\tname: 'ButtonGrab',\r\n\tprops: {\r\n\t\tgrabClass: {\r\n\t\t\ttype: String,\r\n\t\t},\r\n\t\tsize: {\r\n\t\t\ttype: String,\r\n\t\t\trequired: false,\r\n\t\t},\r\n\t\tlinkClass: {\r\n\t\t\ttype: String,\r\n\t\t\tdefault: 'q-px-xs',\r\n\t\t},\r\n\t},\r\n}\r\n","//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\r\nimport ChatButtonNotify from './ChatButtonNotify.vue'\r\nimport ButtonGrab from 'components/ButtonGrab.vue'\r\nimport { createNamespacedHelpers } from 'vuex'\r\nconst { mapActions, mapMutations, mapGetters } = createNamespacedHelpers('Chat')\r\n\r\nexport default {\r\n\tname: 'ChatHeader',\r\n\tcomponents: { ChatButtonNotify, ButtonGrab },\r\n\tprops: {\r\n\t\tinputSearchVisible: { type: Boolean, required: false },\r\n\t\ttabHistoryShow: { type: Boolean, required: false },\r\n\t\tright: { type: Boolean, required: false },\r\n\t\tleft: { type: Boolean, required: false },\r\n\t},\r\n\tdata() {\r\n\t\treturn {\r\n\t\t\tmoduleName: 'Chat',\r\n\t\t\ttimerRoom: false,\r\n\t\t}\r\n\t},\r\n\tcomputed: {\r\n\t\t...mapGetters(['config', 'isSoundNotification', 'leftPanel', 'rightPanel']),\r\n\t\tminiMode: {\r\n\t\t\tget() {\r\n\t\t\t\treturn this.$store.getters['Chat/miniMode']\r\n\t\t\t},\r\n\t\t\tset(isMini) {\r\n\t\t\t\tthis.maximize(isMini)\r\n\t\t\t},\r\n\t\t},\r\n\t\ttab: {\r\n\t\t\tget() {\r\n\t\t\t\treturn this.$store.getters['Chat/tab']\r\n\t\t\t},\r\n\t\t\tset(tab) {\r\n\t\t\t\tthis.$store.commit('Chat/setTab', tab)\r\n\t\t\t},\r\n\t\t},\r\n\t\tisSmall() {\r\n\t\t\treturn this.miniMode || !this.$q.platform.is.desktop\r\n\t\t},\r\n\t},\r\n\tmethods: {\r\n\t\t...mapActions(['maximize']),\r\n\t\t...mapMutations(['setDialog', 'setSoundNotification']),\r\n\t\tshowTabHistory: function (value) {\r\n\t\t\tthis.$emit('showTabHistory', value)\r\n\t\t},\r\n\t\ttoggleSize() {\r\n\t\t\tlet classList = this.$parent.$el.parentElement.parentElement.classList\r\n\t\t\tthis.miniMode ? classList.add('fit') : classList.remove('fit')\r\n\t\t\tthis.miniMode = !this.miniMode\r\n\t\t},\r\n\t\ttoggleSoundNotification() {\r\n\t\t\tthis.setSoundNotification(!this.isSoundNotification)\r\n\t\t},\r\n\t},\r\n\tbeforeDestroy() {\r\n\t\tclearTimeout(this.timerRoom)\r\n\t},\r\n}\r\n","//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\r\nimport { getGroupIcon } from '../utils/utils.js'\r\nimport { createNamespacedHelpers } from 'vuex'\r\nconst { mapGetters } = createNamespacedHelpers('Chat')\r\nexport default {\r\n\tname: 'ChatFooter',\r\n\tcomputed: {\r\n\t\t...mapGetters(['currentRoomData', 'tab', 'historyTab']),\r\n\t\tcurrentTab() {\r\n\t\t\tswitch (this.tab) {\r\n\t\t\t\tcase 'chat':\r\n\t\t\t\t\treturn {\r\n\t\t\t\t\t\tlabel: this.translate('JS_CHAT'),\r\n\t\t\t\t\t\ticon: 'yfi-branding-chat',\r\n\t\t\t\t\t}\r\n\t\t\t\tcase 'unread':\r\n\t\t\t\t\treturn {\r\n\t\t\t\t\t\tlabel: this.translate('JS_CHAT_UNREAD'),\r\n\t\t\t\t\t\ticon: 'yfi-unread-messages',\r\n\t\t\t\t\t}\r\n\t\t\t\tcase 'history':\r\n\t\t\t\t\treturn {\r\n\t\t\t\t\t\tlabel: this.translate('JS_CHAT_HISTORY'),\r\n\t\t\t\t\t\ticon: 'mdi-history',\r\n\t\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\troomType() {\r\n\t\t\tif (this.tab !== 'unread' && this.currentRoomData.roomType !== undefined) {\r\n\t\t\t\tconst roomType = this.tab === 'chat' ? this.currentRoomData.roomType : this.historyTab\r\n\t\t\t\treturn {\r\n\t\t\t\t\tlabel: this.translate(`JS_CHAT_ROOM_${roomType.toUpperCase()}`),\r\n\t\t\t\t\ticon: this.getGroupIcon(roomType),\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\treturn { label: '', icon: '' }\r\n\t\t\t}\r\n\t\t},\r\n\t\ttabChatRoomName() {\r\n\t\t\treturn this.currentRoomData.name\r\n\t\t},\r\n\t\tisChatTabRoomName() {\r\n\t\t\treturn this.tab === 'chat' && this.currentRoomData.name\r\n\t\t},\r\n\t},\r\n\tmethods: {\r\n\t\tgetGroupIcon,\r\n\t},\r\n}\r\n","<!-- /* {[The file is published on the basis of YetiForce Public License 6.5 that can be found in the following directory: licenses/LicenseEN.txt or yetiforce.com]} */ -->\r\n<template>\r\n\t<q-footer class=\"bg-blue-grey-10 text-white\">\r\n\t\t<q-bar class=\"q-bar--fit justify-between\">\r\n\t\t\t<q-breadcrumbs gutter=\"none\">\r\n\t\t\t\t<q-breadcrumbs-el class=\"text-white\">\r\n\t\t\t\t\t<YfIcon\r\n\t\t\t\t\t\tclass=\"q-breadcrumbs__el-icon q-breadcrumbs__el-icon--with-label q-icon\"\r\n\t\t\t\t\t\t:icon=\"currentTab.icon\"\r\n\t\t\t\t\t\t:size=\"currentTab.icon.startsWith('yfi') ? '16px' : ''\"\r\n\t\t\t\t\t/>\r\n\t\t\t\t\t{{ currentTab.label }}\r\n\t\t\t\t</q-breadcrumbs-el>\r\n\t\t\t\t<q-breadcrumbs-el v-if=\"tab !== 'unread'\" class=\"text-white\">\r\n\t\t\t\t\t<YfIcon class=\"q-breadcrumbs__el-icon q-breadcrumbs__el-icon--with-label q-icon\" :icon=\"roomType.icon\" size=\"16px\" />\r\n\t\t\t\t\t{{ roomType.label }}\r\n\t\t\t\t</q-breadcrumbs-el>\r\n\t\t\t\t<q-breadcrumbs-el v-if=\"isChatTabRoomName\" class=\"text-white text-cyan-9 text-bold u-ellipsis-2-lines\" :label=\"tabChatRoomName\" />\r\n\t\t\t\t<template #separator>\r\n\t\t\t\t\t<div class=\"q-breadcrumbs__separator q-mx-sm\">/</div>\r\n\t\t\t\t</template>\r\n\t\t\t</q-breadcrumbs>\r\n\t\t</q-bar>\r\n\t</q-footer>\r\n</template>\r\n<script>\r\nimport { getGroupIcon } from '../utils/utils.js'\r\nimport { createNamespacedHelpers } from 'vuex'\r\nconst { mapGetters } = createNamespacedHelpers('Chat')\r\nexport default {\r\n\tname: 'ChatFooter',\r\n\tcomputed: {\r\n\t\t...mapGetters(['currentRoomData', 'tab', 'historyTab']),\r\n\t\tcurrentTab() {\r\n\t\t\tswitch (this.tab) {\r\n\t\t\t\tcase 'chat':\r\n\t\t\t\t\treturn {\r\n\t\t\t\t\t\tlabel: this.translate('JS_CHAT'),\r\n\t\t\t\t\t\ticon: 'yfi-branding-chat',\r\n\t\t\t\t\t}\r\n\t\t\t\tcase 'unread':\r\n\t\t\t\t\treturn {\r\n\t\t\t\t\t\tlabel: this.translate('JS_CHAT_UNREAD'),\r\n\t\t\t\t\t\ticon: 'yfi-unread-messages',\r\n\t\t\t\t\t}\r\n\t\t\t\tcase 'history':\r\n\t\t\t\t\treturn {\r\n\t\t\t\t\t\tlabel: this.translate('JS_CHAT_HISTORY'),\r\n\t\t\t\t\t\ticon: 'mdi-history',\r\n\t\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\troomType() {\r\n\t\t\tif (this.tab !== 'unread' && this.currentRoomData.roomType !== undefined) {\r\n\t\t\t\tconst roomType = this.tab === 'chat' ? this.currentRoomData.roomType : this.historyTab\r\n\t\t\t\treturn {\r\n\t\t\t\t\tlabel: this.translate(`JS_CHAT_ROOM_${roomType.toUpperCase()}`),\r\n\t\t\t\t\ticon: this.getGroupIcon(roomType),\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\treturn { label: '', icon: '' }\r\n\t\t\t}\r\n\t\t},\r\n\t\ttabChatRoomName() {\r\n\t\t\treturn this.currentRoomData.name\r\n\t\t},\r\n\t\tisChatTabRoomName() {\r\n\t\t\treturn this.tab === 'chat' && this.currentRoomData.name\r\n\t\t},\r\n\t},\r\n\tmethods: {\r\n\t\tgetGroupIcon,\r\n\t},\r\n}\r\n</script>\r\n<style scoped>\r\n.q-bar--fit {\r\n\theight: auto;\r\n\tmin-height: 32px;\r\n}\r\n</style>\r\n","//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\r\nexport default {\r\n\tname: 'YfBackdrop',\r\n}\r\n","//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\r\nimport ChatPanelLeft from './ChatPanelLeft.vue'\r\nimport ChatPanelRight from './ChatPanelRight.vue'\r\nimport ChatPanelMain from './ChatPanelMain.vue'\r\nimport ChatHeader from './ChatHeader.vue'\r\nimport ChatFooter from './ChatFooter.vue'\r\nimport YfBackdrop from 'components/YfBackdrop.vue'\r\n\r\nimport { createNamespacedHelpers } from 'vuex'\r\nconst { mapGetters, mapMutations } = createNamespacedHelpers('Chat')\r\nexport default {\r\n\tname: 'ChatContainer',\r\n\tcomponents: { ChatPanelLeft, ChatPanelRight, ChatPanelMain, ChatHeader, ChatFooter, YfBackdrop },\r\n\tprops: {\r\n\t\tparentRefs: { type: Object, required: true },\r\n\t},\r\n\tcomputed: {\r\n\t\t...mapGetters(['data', 'miniMode', 'mobileMode', 'tab', 'currentRoomData', 'layout', 'rightPanel', 'rightPanelMobile']),\r\n\t\tcomputedModel: {\r\n\t\t\tget() {\r\n\t\t\t\treturn this.mobileMode ? this.rightPanelMobile : this.rightPanel\r\n\t\t\t},\r\n\t\t\tset(isOpen) {\r\n\t\t\t\tif (this.mobileMode) {\r\n\t\t\t\t\tthis.setRightPanelMobile(isOpen)\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t},\r\n\t},\r\n\tmethods: {\r\n\t\t...mapMutations(['setRightPanelMobile']),\r\n\t},\r\n}\r\n","//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\r\nimport VueDragResize from '~/node_modules/vue-drag-resize/src/components/vue-drag-resize.vue'\r\nimport { keepElementInWindow } from '~/mixins/DragResize'\r\nexport default {\r\n\tname: 'DragResize',\r\n\tmixins: [keepElementInWindow],\r\n\tcomponents: { VueDragResize },\r\n\tprops: {\r\n\t\tmaximized: {\r\n\t\t\ttype: Boolean,\r\n\t\t\trequired: true,\r\n\t\t},\r\n\t\tcoordinates: {\r\n\t\t\ttype: Object,\r\n\t\t\trequired: true,\r\n\t\t},\r\n\t\tsticks: {\r\n\t\t\ttype: Array,\r\n\t\t\tdefault: function () {\r\n\t\t\t\treturn ['br', 'bl', 'tr', 'tl']\r\n\t\t\t},\r\n\t\t},\r\n\t\tstickStyle: {\r\n\t\t\ttype: Object,\r\n\t\t\tdefault: function () {\r\n\t\t\t\treturn {\r\n\t\t\t\t\theight: '15px',\r\n\t\t\t\t\twidth: '15px',\r\n\t\t\t\t\tborder: 'none',\r\n\t\t\t\t\t'box-shadow': 'none',\r\n\t\t\t\t\t'background-color': 'transparent',\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t},\r\n\t},\r\n\tdata() {\r\n\t\treturn {\r\n\t\t\tactive: false,\r\n\t\t\tminHeight: 300,\r\n\t\t\tminWidth: 300,\r\n\t\t\tminVisibleHeight: 32,\r\n\t\t\tminVisibleWidth: 120,\r\n\t\t}\r\n\t},\r\n\tmethods: {\r\n\t\tresize(newRect, e) {\r\n\t\t\tthis.$emit('update:coordinates', {\r\n\t\t\t\twidth: newRect.width,\r\n\t\t\t\theight: newRect.height,\r\n\t\t\t\ttop: newRect.top,\r\n\t\t\t\tleft: newRect.left,\r\n\t\t\t})\r\n\t\t},\r\n\t\tcorrectCoordinates(rect) {\r\n\t\t\tlet computedRect = Object.assign({}, rect)\r\n\r\n\t\t\tif (rect.width > window.innerWidth) {\r\n\t\t\t\tcomputedRect.width = window.innerWidth\r\n\t\t\t\tcomputedRect.left = 0\r\n\t\t\t} else if (rect.left + rect.width - this.minVisibleWidth < 0) {\r\n\t\t\t\tcomputedRect.left = this.minVisibleWidth - rect.width\r\n\t\t\t} else if (rect.width + rect.left > window.innerWidth) {\r\n\t\t\t\tcomputedRect.left = window.innerWidth - rect.width\r\n\t\t\t}\r\n\r\n\t\t\tif (rect.height > window.innerHeight) {\r\n\t\t\t\tcomputedRect.height = window.innerHeight\r\n\t\t\t\tcomputedRect.top = 0\r\n\t\t\t} else if (rect.top < 0) {\r\n\t\t\t\tcomputedRect.top = 0\r\n\t\t\t} else if (rect.top > window.innerHeight - this.minVisibleHeight) {\r\n\t\t\t\tcomputedRect.top = window.innerHeight - this.minVisibleHeight\r\n\t\t\t}\r\n\t\t\tthis.$emit('update:coordinates', computedRect)\r\n\t\t\tthis.$emit('dragstop', true)\r\n\t\t},\r\n\t\tonActivated() {\r\n\t\t\tconst sticks = this.$refs.resize.$el.querySelectorAll('.vdr-stick')\r\n\t\t\tArray.prototype.map.call(sticks, (element) => {\r\n\t\t\t\tfor (let prop in this.stickStyle) {\r\n\t\t\t\t\telement.style[prop] = this.stickStyle[prop]\r\n\t\t\t\t}\r\n\t\t\t})\r\n\t\t},\r\n\t\tgetWindowWidth() {\r\n\t\t\treturn window.screen.availWidth - (window.outerWidth - window.innerWidth)\r\n\t\t},\r\n\t\tgetWindowHeight() {\r\n\t\t\treturn window.screen.availHeight - (window.outerHeight - window.innerHeight)\r\n\t\t},\r\n\t},\r\n\tmounted() {\r\n\t\tthis.active = true\r\n\t},\r\n}\r\n","//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\r\nimport ChatButtonDialog from '../components/ChatButtonDialog.vue'\r\nimport ChatContainer from '../components/ChatContainer.vue'\r\nimport DragResize from 'components/DragResize.vue'\r\nimport { createNamespacedHelpers } from 'vuex'\r\nconst { mapGetters, mapMutations, mapActions } = createNamespacedHelpers('Chat')\r\nexport default {\r\n\tname: 'Dialog',\r\n\tcomponents: { ChatButtonDialog, ChatContainer, DragResize },\r\n\tdata() {\r\n\t\treturn {\r\n\t\t\tdragStopped: true,\r\n\t\t\taddingRoom: false,\r\n\t\t\tdialogLoading: false,\r\n\t\t\tdialogModel: false,\r\n\t\t}\r\n\t},\r\n\tcomputed: {\r\n\t\t...mapGetters(['miniMode', 'data', 'config', 'dialog']),\r\n\t\tcoordinates: {\r\n\t\t\tget() {\r\n\t\t\t\treturn this.$store.getters['Chat/coordinates']\r\n\t\t\t},\r\n\t\t\tset(coords) {\r\n\t\t\t\tthis.setDragState()\r\n\t\t\t\tthis.setCoordinates(coords)\r\n\t\t\t},\r\n\t\t},\r\n\t\tcomputedMiniMode() {\r\n\t\t\treturn this.$q.platform.is.desktop ? this.miniMode : false\r\n\t\t},\r\n\t\tdialogClasses() {\r\n\t\t\treturn {\r\n\t\t\t\t'quasar-reset': true,\r\n\t\t\t\tanimated: true,\r\n\t\t\t\tanimate__slideOutDown: !this.dialog,\r\n\t\t\t\tanimate__slideInUp: this.dialog,\r\n\t\t\t\t'all-pointer-events': !this.dragStopped,\r\n\t\t\t}\r\n\t\t},\r\n\t},\r\n\tcreated() {\r\n\t\tthis.startUpdatesListener()\r\n\t},\r\n\tupdated() {\r\n\t\tthis.initDialogModel()\r\n\t},\r\n\tmethods: {\r\n\t\t...mapMutations(['setCoordinates']),\r\n\t\t...mapActions(['startUpdatesListener']),\r\n\t\tinitDialogModel() {\r\n\t\t\tif (!this.dialogModel && this.dialog) {\r\n\t\t\t\tthis.dialogModel = true\r\n\t\t\t}\r\n\t\t},\r\n\t\tsetDragState() {\r\n\t\t\tthis.dragStopped = false\r\n\t\t},\r\n\t\tonDragstop(e) {\r\n\t\t\tthis.dragStopped = true\r\n\t\t},\r\n\t},\r\n}\r\n","//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\r\nimport ChatContent from '../components/ChatContent.vue'\r\nimport ChatPanelRight from '../components/ChatPanelRight.vue'\r\n\r\nimport { createNamespacedHelpers } from 'vuex'\r\nconst { mapGetters, mapActions } = createNamespacedHelpers('Chat')\r\nexport default {\r\n\tname: 'RecordRoom',\r\n\tcomponents: { ChatContent, ChatPanelRight },\r\n\tdata() {\r\n\t\treturn {\r\n\t\t\tisLoading: true,\r\n\t\t}\r\n\t},\r\n\tcomputed: {\r\n\t\t...mapGetters(['data']),\r\n\t\troomData() {\r\n\t\t\tif (this.data.roomList.crm !== undefined) {\r\n\t\t\t\treturn this.data.roomList.crm[this.$parent.$options.recordId]\r\n\t\t\t}\r\n\t\t\treturn {}\r\n\t\t},\r\n\t\tparticipants() {\r\n\t\t\treturn this.roomData ? this.roomData.participants || [] : []\r\n\t\t},\r\n\t},\r\n\tmethods: {\r\n\t\t...mapActions(['removeActiveRoom']),\r\n\t},\r\n\tbeforeDestroy() {\r\n\t\tthis.removeActiveRoom({\r\n\t\t\trecordId: this.roomData.recordid,\r\n\t\t\troomType: this.roomData.roomType,\r\n\t\t})\r\n\t},\r\n}\r\n","//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\r\nexport default {\r\n\tname: 'YfIcon',\r\n\tprops: {\r\n\t\ticon: {\r\n\t\t\ttype: String,\r\n\t\t\trequired: true,\r\n\t\t},\r\n\t\tsize: {\r\n\t\t\ttype: String,\r\n\t\t\trequired: false,\r\n\t\t},\r\n\t},\r\n}\r\n","/**\n * Vuex store\n *\n * @description Vuex store initialization\n * @license YetiForce Public License 6.5\n * @author Tomasz Poradzewski <t.poradzewski@yetiforce.com>\n */\n\nimport Vuex from 'vuex'\n\nVue.use(Vuex)\n\nconst debug = process.env.NODE_ENV !== 'production'\nif (window.vuexStore === undefined) {\n\twindow.vuexStore = new Vuex.Store({\n\t\tstrict: debug,\n\t})\n}\nexport default window.vuexStore\n","/**\n * lodash (Custom Build) <https://lodash.com/>\n * Build: `lodash modularize exports=\"npm\" -o ./`\n * Copyright jQuery Foundation and other contributors <https://jquery.org/>\n * Released under MIT license <https://lodash.com/license>\n * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>\n * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n */\n\n/** Used as the `TypeError` message for \"Functions\" methods. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0;\n\n/** `Object#toString` result references. */\nvar funcTag = '[object Function]',\n    genTag = '[object GeneratorFunction]',\n    symbolTag = '[object Symbol]';\n\n/** Used to match property names within property paths. */\nvar reIsDeepProp = /\\.|\\[(?:[^[\\]]*|([\"'])(?:(?!\\1)[^\\\\]|\\\\.)*?\\1)\\]/,\n    reIsPlainProp = /^\\w*$/,\n    reLeadingDot = /^\\./,\n    rePropName = /[^.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))/g;\n\n/**\n * Used to match `RegExp`\n * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).\n */\nvar reRegExpChar = /[\\\\^$.*+?()[\\]{}|]/g;\n\n/** Used to match backslashes in property paths. */\nvar reEscapeChar = /\\\\(\\\\)?/g;\n\n/** Used to detect host constructors (Safari). */\nvar reIsHostCtor = /^\\[object .+?Constructor\\]$/;\n\n/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\n/**\n * Gets the value at `key` of `object`.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\nfunction getValue(object, key) {\n  return object == null ? undefined : object[key];\n}\n\n/**\n * Checks if `value` is a host object in IE < 9.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a host object, else `false`.\n */\nfunction isHostObject(value) {\n  // Many host objects are `Object` objects that can coerce to strings\n  // despite having improperly defined `toString` methods.\n  var result = false;\n  if (value != null && typeof value.toString != 'function') {\n    try {\n      result = !!(value + '');\n    } catch (e) {}\n  }\n  return result;\n}\n\n/** Used for built-in method references. */\nvar arrayProto = Array.prototype,\n    funcProto = Function.prototype,\n    objectProto = Object.prototype;\n\n/** Used to detect overreaching core-js shims. */\nvar coreJsData = root['__core-js_shared__'];\n\n/** Used to detect methods masquerading as native. */\nvar maskSrcKey = (function() {\n  var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');\n  return uid ? ('Symbol(src)_1.' + uid) : '';\n}());\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar objectToString = objectProto.toString;\n\n/** Used to detect if a method is native. */\nvar reIsNative = RegExp('^' +\n  funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\\\$&')\n  .replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, '$1.*?') + '$'\n);\n\n/** Built-in value references. */\nvar Symbol = root.Symbol,\n    splice = arrayProto.splice;\n\n/* Built-in method references that are verified to be native. */\nvar Map = getNative(root, 'Map'),\n    nativeCreate = getNative(Object, 'create');\n\n/** Used to convert symbols to primitives and strings. */\nvar symbolProto = Symbol ? Symbol.prototype : undefined,\n    symbolToString = symbolProto ? symbolProto.toString : undefined;\n\n/**\n * Creates a hash object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction Hash(entries) {\n  var index = -1,\n      length = entries ? entries.length : 0;\n\n  this.clear();\n  while (++index < length) {\n    var entry = entries[index];\n    this.set(entry[0], entry[1]);\n  }\n}\n\n/**\n * Removes all key-value entries from the hash.\n *\n * @private\n * @name clear\n * @memberOf Hash\n */\nfunction hashClear() {\n  this.__data__ = nativeCreate ? nativeCreate(null) : {};\n}\n\n/**\n * Removes `key` and its value from the hash.\n *\n * @private\n * @name delete\n * @memberOf Hash\n * @param {Object} hash The hash to modify.\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction hashDelete(key) {\n  return this.has(key) && delete this.__data__[key];\n}\n\n/**\n * Gets the hash value for `key`.\n *\n * @private\n * @name get\n * @memberOf Hash\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction hashGet(key) {\n  var data = this.__data__;\n  if (nativeCreate) {\n    var result = data[key];\n    return result === HASH_UNDEFINED ? undefined : result;\n  }\n  return hasOwnProperty.call(data, key) ? data[key] : undefined;\n}\n\n/**\n * Checks if a hash value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Hash\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction hashHas(key) {\n  var data = this.__data__;\n  return nativeCreate ? data[key] !== undefined : hasOwnProperty.call(data, key);\n}\n\n/**\n * Sets the hash `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Hash\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the hash instance.\n */\nfunction hashSet(key, value) {\n  var data = this.__data__;\n  data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;\n  return this;\n}\n\n// Add methods to `Hash`.\nHash.prototype.clear = hashClear;\nHash.prototype['delete'] = hashDelete;\nHash.prototype.get = hashGet;\nHash.prototype.has = hashHas;\nHash.prototype.set = hashSet;\n\n/**\n * Creates an list cache object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction ListCache(entries) {\n  var index = -1,\n      length = entries ? entries.length : 0;\n\n  this.clear();\n  while (++index < length) {\n    var entry = entries[index];\n    this.set(entry[0], entry[1]);\n  }\n}\n\n/**\n * Removes all key-value entries from the list cache.\n *\n * @private\n * @name clear\n * @memberOf ListCache\n */\nfunction listCacheClear() {\n  this.__data__ = [];\n}\n\n/**\n * Removes `key` and its value from the list cache.\n *\n * @private\n * @name delete\n * @memberOf ListCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction listCacheDelete(key) {\n  var data = this.__data__,\n      index = assocIndexOf(data, key);\n\n  if (index < 0) {\n    return false;\n  }\n  var lastIndex = data.length - 1;\n  if (index == lastIndex) {\n    data.pop();\n  } else {\n    splice.call(data, index, 1);\n  }\n  return true;\n}\n\n/**\n * Gets the list cache value for `key`.\n *\n * @private\n * @name get\n * @memberOf ListCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction listCacheGet(key) {\n  var data = this.__data__,\n      index = assocIndexOf(data, key);\n\n  return index < 0 ? undefined : data[index][1];\n}\n\n/**\n * Checks if a list cache value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf ListCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction listCacheHas(key) {\n  return assocIndexOf(this.__data__, key) > -1;\n}\n\n/**\n * Sets the list cache `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf ListCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the list cache instance.\n */\nfunction listCacheSet(key, value) {\n  var data = this.__data__,\n      index = assocIndexOf(data, key);\n\n  if (index < 0) {\n    data.push([key, value]);\n  } else {\n    data[index][1] = value;\n  }\n  return this;\n}\n\n// Add methods to `ListCache`.\nListCache.prototype.clear = listCacheClear;\nListCache.prototype['delete'] = listCacheDelete;\nListCache.prototype.get = listCacheGet;\nListCache.prototype.has = listCacheHas;\nListCache.prototype.set = listCacheSet;\n\n/**\n * Creates a map cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction MapCache(entries) {\n  var index = -1,\n      length = entries ? entries.length : 0;\n\n  this.clear();\n  while (++index < length) {\n    var entry = entries[index];\n    this.set(entry[0], entry[1]);\n  }\n}\n\n/**\n * Removes all key-value entries from the map.\n *\n * @private\n * @name clear\n * @memberOf MapCache\n */\nfunction mapCacheClear() {\n  this.__data__ = {\n    'hash': new Hash,\n    'map': new (Map || ListCache),\n    'string': new Hash\n  };\n}\n\n/**\n * Removes `key` and its value from the map.\n *\n * @private\n * @name delete\n * @memberOf MapCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction mapCacheDelete(key) {\n  return getMapData(this, key)['delete'](key);\n}\n\n/**\n * Gets the map value for `key`.\n *\n * @private\n * @name get\n * @memberOf MapCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction mapCacheGet(key) {\n  return getMapData(this, key).get(key);\n}\n\n/**\n * Checks if a map value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf MapCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction mapCacheHas(key) {\n  return getMapData(this, key).has(key);\n}\n\n/**\n * Sets the map `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf MapCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the map cache instance.\n */\nfunction mapCacheSet(key, value) {\n  getMapData(this, key).set(key, value);\n  return this;\n}\n\n// Add methods to `MapCache`.\nMapCache.prototype.clear = mapCacheClear;\nMapCache.prototype['delete'] = mapCacheDelete;\nMapCache.prototype.get = mapCacheGet;\nMapCache.prototype.has = mapCacheHas;\nMapCache.prototype.set = mapCacheSet;\n\n/**\n * Gets the index at which the `key` is found in `array` of key-value pairs.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} key The key to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction assocIndexOf(array, key) {\n  var length = array.length;\n  while (length--) {\n    if (eq(array[length][0], key)) {\n      return length;\n    }\n  }\n  return -1;\n}\n\n/**\n * The base implementation of `_.get` without support for default values.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the property to get.\n * @returns {*} Returns the resolved value.\n */\nfunction baseGet(object, path) {\n  path = isKey(path, object) ? [path] : castPath(path);\n\n  var index = 0,\n      length = path.length;\n\n  while (object != null && index < length) {\n    object = object[toKey(path[index++])];\n  }\n  return (index && index == length) ? object : undefined;\n}\n\n/**\n * The base implementation of `_.isNative` without bad shim checks.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function,\n *  else `false`.\n */\nfunction baseIsNative(value) {\n  if (!isObject(value) || isMasked(value)) {\n    return false;\n  }\n  var pattern = (isFunction(value) || isHostObject(value)) ? reIsNative : reIsHostCtor;\n  return pattern.test(toSource(value));\n}\n\n/**\n * The base implementation of `_.toString` which doesn't convert nullish\n * values to empty strings.\n *\n * @private\n * @param {*} value The value to process.\n * @returns {string} Returns the string.\n */\nfunction baseToString(value) {\n  // Exit early for strings to avoid a performance hit in some environments.\n  if (typeof value == 'string') {\n    return value;\n  }\n  if (isSymbol(value)) {\n    return symbolToString ? symbolToString.call(value) : '';\n  }\n  var result = (value + '');\n  return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n}\n\n/**\n * Casts `value` to a path array if it's not one.\n *\n * @private\n * @param {*} value The value to inspect.\n * @returns {Array} Returns the cast property path array.\n */\nfunction castPath(value) {\n  return isArray(value) ? value : stringToPath(value);\n}\n\n/**\n * Gets the data for `map`.\n *\n * @private\n * @param {Object} map The map to query.\n * @param {string} key The reference key.\n * @returns {*} Returns the map data.\n */\nfunction getMapData(map, key) {\n  var data = map.__data__;\n  return isKeyable(key)\n    ? data[typeof key == 'string' ? 'string' : 'hash']\n    : data.map;\n}\n\n/**\n * Gets the native function at `key` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the method to get.\n * @returns {*} Returns the function if it's native, else `undefined`.\n */\nfunction getNative(object, key) {\n  var value = getValue(object, key);\n  return baseIsNative(value) ? value : undefined;\n}\n\n/**\n * Checks if `value` is a property name and not a property path.\n *\n * @private\n * @param {*} value The value to check.\n * @param {Object} [object] The object to query keys on.\n * @returns {boolean} Returns `true` if `value` is a property name, else `false`.\n */\nfunction isKey(value, object) {\n  if (isArray(value)) {\n    return false;\n  }\n  var type = typeof value;\n  if (type == 'number' || type == 'symbol' || type == 'boolean' ||\n      value == null || isSymbol(value)) {\n    return true;\n  }\n  return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||\n    (object != null && value in Object(object));\n}\n\n/**\n * Checks if `value` is suitable for use as unique object key.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is suitable, else `false`.\n */\nfunction isKeyable(value) {\n  var type = typeof value;\n  return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')\n    ? (value !== '__proto__')\n    : (value === null);\n}\n\n/**\n * Checks if `func` has its source masked.\n *\n * @private\n * @param {Function} func The function to check.\n * @returns {boolean} Returns `true` if `func` is masked, else `false`.\n */\nfunction isMasked(func) {\n  return !!maskSrcKey && (maskSrcKey in func);\n}\n\n/**\n * Converts `string` to a property path array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the property path array.\n */\nvar stringToPath = memoize(function(string) {\n  string = toString(string);\n\n  var result = [];\n  if (reLeadingDot.test(string)) {\n    result.push('');\n  }\n  string.replace(rePropName, function(match, number, quote, string) {\n    result.push(quote ? string.replace(reEscapeChar, '$1') : (number || match));\n  });\n  return result;\n});\n\n/**\n * Converts `value` to a string key if it's not a string or symbol.\n *\n * @private\n * @param {*} value The value to inspect.\n * @returns {string|symbol} Returns the key.\n */\nfunction toKey(value) {\n  if (typeof value == 'string' || isSymbol(value)) {\n    return value;\n  }\n  var result = (value + '');\n  return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n}\n\n/**\n * Converts `func` to its source code.\n *\n * @private\n * @param {Function} func The function to process.\n * @returns {string} Returns the source code.\n */\nfunction toSource(func) {\n  if (func != null) {\n    try {\n      return funcToString.call(func);\n    } catch (e) {}\n    try {\n      return (func + '');\n    } catch (e) {}\n  }\n  return '';\n}\n\n/**\n * Creates a function that memoizes the result of `func`. If `resolver` is\n * provided, it determines the cache key for storing the result based on the\n * arguments provided to the memoized function. By default, the first argument\n * provided to the memoized function is used as the map cache key. The `func`\n * is invoked with the `this` binding of the memoized function.\n *\n * **Note:** The cache is exposed as the `cache` property on the memoized\n * function. Its creation may be customized by replacing the `_.memoize.Cache`\n * constructor with one whose instances implement the\n * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)\n * method interface of `delete`, `get`, `has`, and `set`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to have its output memoized.\n * @param {Function} [resolver] The function to resolve the cache key.\n * @returns {Function} Returns the new memoized function.\n * @example\n *\n * var object = { 'a': 1, 'b': 2 };\n * var other = { 'c': 3, 'd': 4 };\n *\n * var values = _.memoize(_.values);\n * values(object);\n * // => [1, 2]\n *\n * values(other);\n * // => [3, 4]\n *\n * object.a = 2;\n * values(object);\n * // => [1, 2]\n *\n * // Modify the result cache.\n * values.cache.set(object, ['a', 'b']);\n * values(object);\n * // => ['a', 'b']\n *\n * // Replace `_.memoize.Cache`.\n * _.memoize.Cache = WeakMap;\n */\nfunction memoize(func, resolver) {\n  if (typeof func != 'function' || (resolver && typeof resolver != 'function')) {\n    throw new TypeError(FUNC_ERROR_TEXT);\n  }\n  var memoized = function() {\n    var args = arguments,\n        key = resolver ? resolver.apply(this, args) : args[0],\n        cache = memoized.cache;\n\n    if (cache.has(key)) {\n      return cache.get(key);\n    }\n    var result = func.apply(this, args);\n    memoized.cache = cache.set(key, result);\n    return result;\n  };\n  memoized.cache = new (memoize.Cache || MapCache);\n  return memoized;\n}\n\n// Assign cache to `_.memoize`.\nmemoize.Cache = MapCache;\n\n/**\n * Performs a\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * comparison between two values to determine if they are equivalent.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.eq(object, object);\n * // => true\n *\n * _.eq(object, other);\n * // => false\n *\n * _.eq('a', 'a');\n * // => true\n *\n * _.eq('a', Object('a'));\n * // => false\n *\n * _.eq(NaN, NaN);\n * // => true\n */\nfunction eq(value, other) {\n  return value === other || (value !== value && other !== other);\n}\n\n/**\n * Checks if `value` is classified as an `Array` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array, else `false`.\n * @example\n *\n * _.isArray([1, 2, 3]);\n * // => true\n *\n * _.isArray(document.body.children);\n * // => false\n *\n * _.isArray('abc');\n * // => false\n *\n * _.isArray(_.noop);\n * // => false\n */\nvar isArray = Array.isArray;\n\n/**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a function, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\nfunction isFunction(value) {\n  // The use of `Object#toString` avoids issues with the `typeof` operator\n  // in Safari 8-9 which returns 'object' for typed array and other constructors.\n  var tag = isObject(value) ? objectToString.call(value) : '';\n  return tag == funcTag || tag == genTag;\n}\n\n/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n  var type = typeof value;\n  return !!value && (type == 'object' || type == 'function');\n}\n\n/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n  return !!value && typeof value == 'object';\n}\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n  return typeof value == 'symbol' ||\n    (isObjectLike(value) && objectToString.call(value) == symbolTag);\n}\n\n/**\n * Converts `value` to a string. An empty string is returned for `null`\n * and `undefined` values. The sign of `-0` is preserved.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {string} Returns the string.\n * @example\n *\n * _.toString(null);\n * // => ''\n *\n * _.toString(-0);\n * // => '-0'\n *\n * _.toString([1, 2, 3]);\n * // => '1,2,3'\n */\nfunction toString(value) {\n  return value == null ? '' : baseToString(value);\n}\n\n/**\n * Gets the value at `path` of `object`. If the resolved value is\n * `undefined`, the `defaultValue` is returned in its place.\n *\n * @static\n * @memberOf _\n * @since 3.7.0\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the property to get.\n * @param {*} [defaultValue] The value returned for `undefined` resolved values.\n * @returns {*} Returns the resolved value.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }] };\n *\n * _.get(object, 'a[0].b.c');\n * // => 3\n *\n * _.get(object, ['a', '0', 'b', 'c']);\n * // => 3\n *\n * _.get(object, 'a.b.c', 'default');\n * // => 'default'\n */\nfunction get(object, path, defaultValue) {\n  var result = object == null ? undefined : baseGet(object, path);\n  return result === undefined ? defaultValue : result;\n}\n\nmodule.exports = get;\n","/* {[The file is published on the basis of YetiForce Public License 6.5 that can be found in the following directory: licenses/LicenseEN.txt or yetiforce.com]} */\nimport get from 'lodash.get'\n\nexport default {\n\tlayout(state) {\n\t\treturn state.layout\n\t},\n\tdialog(state) {\n\t\treturn state.session.dialog\n\t},\n\tminiMode(state) {\n\t\treturn state.session.miniMode\n\t},\n\tmobileMode(state, getters) {\n\t\treturn getters.coordinates.width < getters.layout.drawer.breakpoint && getters.miniMode\n\t},\n\tleftPanel(state) {\n\t\treturn state.session.leftPanel\n\t},\n\tleftPanelMobile(state) {\n\t\treturn state.session.leftPanelMobile\n\t},\n\trightPanel(state) {\n\t\treturn state.session.rightPanel\n\t},\n\trightPanelMobile(state) {\n\t\treturn state.session.rightPanelMobile\n\t},\n\thistoryTab(state) {\n\t\treturn state.session.historyTab\n\t},\n\tisSearchActive(state) {\n\t\treturn state.session.isSearchActive\n\t},\n\ttab(state) {\n\t\treturn state.session.tab\n\t},\n\tcoordinates(state) {\n\t\treturn state.session.coordinates\n\t},\n\tbuttonCoordinates(state) {\n\t\treturn state.session.buttonCoordinates\n\t},\n\tisSoundNotification(state) {\n\t\treturn state.local.isSoundNotification === null ? state.config.isDefaultSoundNotification : state.local.isSoundNotification\n\t},\n\troomSoundNotificationsOff(state) {\n\t\treturn state.local.roomSoundNotificationsOff\n\t},\n\tsendByEnter(state) {\n\t\treturn state.local.sendByEnter\n\t},\n\n\tisDesktopNotification(state) {\n\t\treturn state.local.isDesktopNotification\n\t},\n\troomsExpanded(state) {\n\t\treturn state.local.roomsExpanded\n\t},\n\tdata(state) {\n\t\treturn state.data\n\t},\n\tallRooms(state) {\n\t\treturn Object.values(get(state, 'data.roomList.crm', {})).concat(\n\t\t\tObject.values(get(state, 'data.roomList.group', {})),\n\t\t\tObject.values(get(state, 'data.roomList.global', {})),\n\t\t\tObject.values(get(state, 'data.roomList.private', {})),\n\t\t\tObject.values(get(state, 'data.roomList.user', {}))\n\t\t)\n\t},\n\tcurrentRoomData(state, getters) {\n\t\tconst currentRoom = getters.data.currentRoom\n\t\tif (state.data.roomList === undefined || !currentRoom.roomType) {\n\t\t\treturn {}\n\t\t}\n\t\treturn state.data.roomList[currentRoom.roomType][currentRoom.recordId] || {}\n\t},\n\tconfig(state) {\n\t\treturn state.config\n\t},\n\tactiveRoomTypes(state, getters) {\n\t\treturn getters.config.activeRoomTypes\n\t},\n\tgetDetailPreview(state) {\n\t\treturn state.config.detailPreview\n\t},\n\tgetInterval(state, getters) {\n\t\treturn getters.dialog ? getters.config.refreshMessageTime : getters.config.refreshTimeGlobal\n\t},\n}\n","/**\n * lodash (Custom Build) <https://lodash.com/>\n * Build: `lodash modularize exports=\"npm\" -o ./`\n * Copyright jQuery Foundation and other contributors <https://jquery.org/>\n * Released under MIT license <https://lodash.com/license>\n * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>\n * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n */\n\n/** Used as the size to enable large array optimizations. */\nvar LARGE_ARRAY_SIZE = 200;\n\n/** Used as the `TypeError` message for \"Functions\" methods. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/** Used to compose bitmasks for comparison styles. */\nvar UNORDERED_COMPARE_FLAG = 1,\n    PARTIAL_COMPARE_FLAG = 2;\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0,\n    MAX_SAFE_INTEGER = 9007199254740991;\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n    arrayTag = '[object Array]',\n    boolTag = '[object Boolean]',\n    dateTag = '[object Date]',\n    errorTag = '[object Error]',\n    funcTag = '[object Function]',\n    genTag = '[object GeneratorFunction]',\n    mapTag = '[object Map]',\n    numberTag = '[object Number]',\n    objectTag = '[object Object]',\n    promiseTag = '[object Promise]',\n    regexpTag = '[object RegExp]',\n    setTag = '[object Set]',\n    stringTag = '[object String]',\n    symbolTag = '[object Symbol]',\n    weakMapTag = '[object WeakMap]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n    dataViewTag = '[object DataView]',\n    float32Tag = '[object Float32Array]',\n    float64Tag = '[object Float64Array]',\n    int8Tag = '[object Int8Array]',\n    int16Tag = '[object Int16Array]',\n    int32Tag = '[object Int32Array]',\n    uint8Tag = '[object Uint8Array]',\n    uint8ClampedTag = '[object Uint8ClampedArray]',\n    uint16Tag = '[object Uint16Array]',\n    uint32Tag = '[object Uint32Array]';\n\n/** Used to match property names within property paths. */\nvar reIsDeepProp = /\\.|\\[(?:[^[\\]]*|([\"'])(?:(?!\\1)[^\\\\]|\\\\.)*?\\1)\\]/,\n    reIsPlainProp = /^\\w*$/,\n    reLeadingDot = /^\\./,\n    rePropName = /[^.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))/g;\n\n/**\n * Used to match `RegExp`\n * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).\n */\nvar reRegExpChar = /[\\\\^$.*+?()[\\]{}|]/g;\n\n/** Used to match backslashes in property paths. */\nvar reEscapeChar = /\\\\(\\\\)?/g;\n\n/** Used to detect host constructors (Safari). */\nvar reIsHostCtor = /^\\[object .+?Constructor\\]$/;\n\n/** Used to detect unsigned integer values. */\nvar reIsUint = /^(?:0|[1-9]\\d*)$/;\n\n/** Used to identify `toStringTag` values of typed arrays. */\nvar typedArrayTags = {};\ntypedArrayTags[float32Tag] = typedArrayTags[float64Tag] =\ntypedArrayTags[int8Tag] = typedArrayTags[int16Tag] =\ntypedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =\ntypedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =\ntypedArrayTags[uint32Tag] = true;\ntypedArrayTags[argsTag] = typedArrayTags[arrayTag] =\ntypedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =\ntypedArrayTags[dataViewTag] = typedArrayTags[dateTag] =\ntypedArrayTags[errorTag] = typedArrayTags[funcTag] =\ntypedArrayTags[mapTag] = typedArrayTags[numberTag] =\ntypedArrayTags[objectTag] = typedArrayTags[regexpTag] =\ntypedArrayTags[setTag] = typedArrayTags[stringTag] =\ntypedArrayTags[weakMapTag] = false;\n\n/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\n/** Detect free variable `exports`. */\nvar freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n/** Detect free variable `module`. */\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n\n/** Detect free variable `process` from Node.js. */\nvar freeProcess = moduleExports && freeGlobal.process;\n\n/** Used to access faster Node.js helpers. */\nvar nodeUtil = (function() {\n  try {\n    return freeProcess && freeProcess.binding('util');\n  } catch (e) {}\n}());\n\n/* Node.js helper references. */\nvar nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;\n\n/**\n * A faster alternative to `Function#apply`, this function invokes `func`\n * with the `this` binding of `thisArg` and the arguments of `args`.\n *\n * @private\n * @param {Function} func The function to invoke.\n * @param {*} thisArg The `this` binding of `func`.\n * @param {Array} args The arguments to invoke `func` with.\n * @returns {*} Returns the result of `func`.\n */\nfunction apply(func, thisArg, args) {\n  switch (args.length) {\n    case 0: return func.call(thisArg);\n    case 1: return func.call(thisArg, args[0]);\n    case 2: return func.call(thisArg, args[0], args[1]);\n    case 3: return func.call(thisArg, args[0], args[1], args[2]);\n  }\n  return func.apply(thisArg, args);\n}\n\n/**\n * A specialized version of `_.includes` for arrays without support for\n * specifying an index to search from.\n *\n * @private\n * @param {Array} [array] The array to inspect.\n * @param {*} target The value to search for.\n * @returns {boolean} Returns `true` if `target` is found, else `false`.\n */\nfunction arrayIncludes(array, value) {\n  var length = array ? array.length : 0;\n  return !!length && baseIndexOf(array, value, 0) > -1;\n}\n\n/**\n * This function is like `arrayIncludes` except that it accepts a comparator.\n *\n * @private\n * @param {Array} [array] The array to inspect.\n * @param {*} target The value to search for.\n * @param {Function} comparator The comparator invoked per element.\n * @returns {boolean} Returns `true` if `target` is found, else `false`.\n */\nfunction arrayIncludesWith(array, value, comparator) {\n  var index = -1,\n      length = array ? array.length : 0;\n\n  while (++index < length) {\n    if (comparator(value, array[index])) {\n      return true;\n    }\n  }\n  return false;\n}\n\n/**\n * Appends the elements of `values` to `array`.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {Array} values The values to append.\n * @returns {Array} Returns `array`.\n */\nfunction arrayPush(array, values) {\n  var index = -1,\n      length = values.length,\n      offset = array.length;\n\n  while (++index < length) {\n    array[offset + index] = values[index];\n  }\n  return array;\n}\n\n/**\n * A specialized version of `_.some` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {boolean} Returns `true` if any element passes the predicate check,\n *  else `false`.\n */\nfunction arraySome(array, predicate) {\n  var index = -1,\n      length = array ? array.length : 0;\n\n  while (++index < length) {\n    if (predicate(array[index], index, array)) {\n      return true;\n    }\n  }\n  return false;\n}\n\n/**\n * The base implementation of `_.findIndex` and `_.findLastIndex` without\n * support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Function} predicate The function invoked per iteration.\n * @param {number} fromIndex The index to search from.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction baseFindIndex(array, predicate, fromIndex, fromRight) {\n  var length = array.length,\n      index = fromIndex + (fromRight ? 1 : -1);\n\n  while ((fromRight ? index-- : ++index < length)) {\n    if (predicate(array[index], index, array)) {\n      return index;\n    }\n  }\n  return -1;\n}\n\n/**\n * The base implementation of `_.indexOf` without `fromIndex` bounds checks.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} fromIndex The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction baseIndexOf(array, value, fromIndex) {\n  if (value !== value) {\n    return baseFindIndex(array, baseIsNaN, fromIndex);\n  }\n  var index = fromIndex - 1,\n      length = array.length;\n\n  while (++index < length) {\n    if (array[index] === value) {\n      return index;\n    }\n  }\n  return -1;\n}\n\n/**\n * The base implementation of `_.isNaN` without support for number objects.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.\n */\nfunction baseIsNaN(value) {\n  return value !== value;\n}\n\n/**\n * The base implementation of `_.property` without support for deep paths.\n *\n * @private\n * @param {string} key The key of the property to get.\n * @returns {Function} Returns the new accessor function.\n */\nfunction baseProperty(key) {\n  return function(object) {\n    return object == null ? undefined : object[key];\n  };\n}\n\n/**\n * The base implementation of `_.times` without support for iteratee shorthands\n * or max array length checks.\n *\n * @private\n * @param {number} n The number of times to invoke `iteratee`.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the array of results.\n */\nfunction baseTimes(n, iteratee) {\n  var index = -1,\n      result = Array(n);\n\n  while (++index < n) {\n    result[index] = iteratee(index);\n  }\n  return result;\n}\n\n/**\n * The base implementation of `_.unary` without support for storing metadata.\n *\n * @private\n * @param {Function} func The function to cap arguments for.\n * @returns {Function} Returns the new capped function.\n */\nfunction baseUnary(func) {\n  return function(value) {\n    return func(value);\n  };\n}\n\n/**\n * Checks if a cache value for `key` exists.\n *\n * @private\n * @param {Object} cache The cache to query.\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction cacheHas(cache, key) {\n  return cache.has(key);\n}\n\n/**\n * Gets the value at `key` of `object`.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\nfunction getValue(object, key) {\n  return object == null ? undefined : object[key];\n}\n\n/**\n * Checks if `value` is a host object in IE < 9.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a host object, else `false`.\n */\nfunction isHostObject(value) {\n  // Many host objects are `Object` objects that can coerce to strings\n  // despite having improperly defined `toString` methods.\n  var result = false;\n  if (value != null && typeof value.toString != 'function') {\n    try {\n      result = !!(value + '');\n    } catch (e) {}\n  }\n  return result;\n}\n\n/**\n * Converts `map` to its key-value pairs.\n *\n * @private\n * @param {Object} map The map to convert.\n * @returns {Array} Returns the key-value pairs.\n */\nfunction mapToArray(map) {\n  var index = -1,\n      result = Array(map.size);\n\n  map.forEach(function(value, key) {\n    result[++index] = [key, value];\n  });\n  return result;\n}\n\n/**\n * Creates a unary function that invokes `func` with its argument transformed.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {Function} transform The argument transform.\n * @returns {Function} Returns the new function.\n */\nfunction overArg(func, transform) {\n  return function(arg) {\n    return func(transform(arg));\n  };\n}\n\n/**\n * Converts `set` to an array of its values.\n *\n * @private\n * @param {Object} set The set to convert.\n * @returns {Array} Returns the values.\n */\nfunction setToArray(set) {\n  var index = -1,\n      result = Array(set.size);\n\n  set.forEach(function(value) {\n    result[++index] = value;\n  });\n  return result;\n}\n\n/** Used for built-in method references. */\nvar arrayProto = Array.prototype,\n    funcProto = Function.prototype,\n    objectProto = Object.prototype;\n\n/** Used to detect overreaching core-js shims. */\nvar coreJsData = root['__core-js_shared__'];\n\n/** Used to detect methods masquerading as native. */\nvar maskSrcKey = (function() {\n  var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');\n  return uid ? ('Symbol(src)_1.' + uid) : '';\n}());\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar objectToString = objectProto.toString;\n\n/** Used to detect if a method is native. */\nvar reIsNative = RegExp('^' +\n  funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\\\$&')\n  .replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, '$1.*?') + '$'\n);\n\n/** Built-in value references. */\nvar Symbol = root.Symbol,\n    Uint8Array = root.Uint8Array,\n    propertyIsEnumerable = objectProto.propertyIsEnumerable,\n    splice = arrayProto.splice,\n    spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeKeys = overArg(Object.keys, Object),\n    nativeMax = Math.max;\n\n/* Built-in method references that are verified to be native. */\nvar DataView = getNative(root, 'DataView'),\n    Map = getNative(root, 'Map'),\n    Promise = getNative(root, 'Promise'),\n    Set = getNative(root, 'Set'),\n    WeakMap = getNative(root, 'WeakMap'),\n    nativeCreate = getNative(Object, 'create');\n\n/** Used to detect maps, sets, and weakmaps. */\nvar dataViewCtorString = toSource(DataView),\n    mapCtorString = toSource(Map),\n    promiseCtorString = toSource(Promise),\n    setCtorString = toSource(Set),\n    weakMapCtorString = toSource(WeakMap);\n\n/** Used to convert symbols to primitives and strings. */\nvar symbolProto = Symbol ? Symbol.prototype : undefined,\n    symbolValueOf = symbolProto ? symbolProto.valueOf : undefined,\n    symbolToString = symbolProto ? symbolProto.toString : undefined;\n\n/**\n * Creates a hash object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction Hash(entries) {\n  var index = -1,\n      length = entries ? entries.length : 0;\n\n  this.clear();\n  while (++index < length) {\n    var entry = entries[index];\n    this.set(entry[0], entry[1]);\n  }\n}\n\n/**\n * Removes all key-value entries from the hash.\n *\n * @private\n * @name clear\n * @memberOf Hash\n */\nfunction hashClear() {\n  this.__data__ = nativeCreate ? nativeCreate(null) : {};\n}\n\n/**\n * Removes `key` and its value from the hash.\n *\n * @private\n * @name delete\n * @memberOf Hash\n * @param {Object} hash The hash to modify.\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction hashDelete(key) {\n  return this.has(key) && delete this.__data__[key];\n}\n\n/**\n * Gets the hash value for `key`.\n *\n * @private\n * @name get\n * @memberOf Hash\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction hashGet(key) {\n  var data = this.__data__;\n  if (nativeCreate) {\n    var result = data[key];\n    return result === HASH_UNDEFINED ? undefined : result;\n  }\n  return hasOwnProperty.call(data, key) ? data[key] : undefined;\n}\n\n/**\n * Checks if a hash value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Hash\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction hashHas(key) {\n  var data = this.__data__;\n  return nativeCreate ? data[key] !== undefined : hasOwnProperty.call(data, key);\n}\n\n/**\n * Sets the hash `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Hash\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the hash instance.\n */\nfunction hashSet(key, value) {\n  var data = this.__data__;\n  data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;\n  return this;\n}\n\n// Add methods to `Hash`.\nHash.prototype.clear = hashClear;\nHash.prototype['delete'] = hashDelete;\nHash.prototype.get = hashGet;\nHash.prototype.has = hashHas;\nHash.prototype.set = hashSet;\n\n/**\n * Creates an list cache object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction ListCache(entries) {\n  var index = -1,\n      length = entries ? entries.length : 0;\n\n  this.clear();\n  while (++index < length) {\n    var entry = entries[index];\n    this.set(entry[0], entry[1]);\n  }\n}\n\n/**\n * Removes all key-value entries from the list cache.\n *\n * @private\n * @name clear\n * @memberOf ListCache\n */\nfunction listCacheClear() {\n  this.__data__ = [];\n}\n\n/**\n * Removes `key` and its value from the list cache.\n *\n * @private\n * @name delete\n * @memberOf ListCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction listCacheDelete(key) {\n  var data = this.__data__,\n      index = assocIndexOf(data, key);\n\n  if (index < 0) {\n    return false;\n  }\n  var lastIndex = data.length - 1;\n  if (index == lastIndex) {\n    data.pop();\n  } else {\n    splice.call(data, index, 1);\n  }\n  return true;\n}\n\n/**\n * Gets the list cache value for `key`.\n *\n * @private\n * @name get\n * @memberOf ListCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction listCacheGet(key) {\n  var data = this.__data__,\n      index = assocIndexOf(data, key);\n\n  return index < 0 ? undefined : data[index][1];\n}\n\n/**\n * Checks if a list cache value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf ListCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction listCacheHas(key) {\n  return assocIndexOf(this.__data__, key) > -1;\n}\n\n/**\n * Sets the list cache `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf ListCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the list cache instance.\n */\nfunction listCacheSet(key, value) {\n  var data = this.__data__,\n      index = assocIndexOf(data, key);\n\n  if (index < 0) {\n    data.push([key, value]);\n  } else {\n    data[index][1] = value;\n  }\n  return this;\n}\n\n// Add methods to `ListCache`.\nListCache.prototype.clear = listCacheClear;\nListCache.prototype['delete'] = listCacheDelete;\nListCache.prototype.get = listCacheGet;\nListCache.prototype.has = listCacheHas;\nListCache.prototype.set = listCacheSet;\n\n/**\n * Creates a map cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction MapCache(entries) {\n  var index = -1,\n      length = entries ? entries.length : 0;\n\n  this.clear();\n  while (++index < length) {\n    var entry = entries[index];\n    this.set(entry[0], entry[1]);\n  }\n}\n\n/**\n * Removes all key-value entries from the map.\n *\n * @private\n * @name clear\n * @memberOf MapCache\n */\nfunction mapCacheClear() {\n  this.__data__ = {\n    'hash': new Hash,\n    'map': new (Map || ListCache),\n    'string': new Hash\n  };\n}\n\n/**\n * Removes `key` and its value from the map.\n *\n * @private\n * @name delete\n * @memberOf MapCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction mapCacheDelete(key) {\n  return getMapData(this, key)['delete'](key);\n}\n\n/**\n * Gets the map value for `key`.\n *\n * @private\n * @name get\n * @memberOf MapCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction mapCacheGet(key) {\n  return getMapData(this, key).get(key);\n}\n\n/**\n * Checks if a map value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf MapCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction mapCacheHas(key) {\n  return getMapData(this, key).has(key);\n}\n\n/**\n * Sets the map `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf MapCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the map cache instance.\n */\nfunction mapCacheSet(key, value) {\n  getMapData(this, key).set(key, value);\n  return this;\n}\n\n// Add methods to `MapCache`.\nMapCache.prototype.clear = mapCacheClear;\nMapCache.prototype['delete'] = mapCacheDelete;\nMapCache.prototype.get = mapCacheGet;\nMapCache.prototype.has = mapCacheHas;\nMapCache.prototype.set = mapCacheSet;\n\n/**\n *\n * Creates an array cache object to store unique values.\n *\n * @private\n * @constructor\n * @param {Array} [values] The values to cache.\n */\nfunction SetCache(values) {\n  var index = -1,\n      length = values ? values.length : 0;\n\n  this.__data__ = new MapCache;\n  while (++index < length) {\n    this.add(values[index]);\n  }\n}\n\n/**\n * Adds `value` to the array cache.\n *\n * @private\n * @name add\n * @memberOf SetCache\n * @alias push\n * @param {*} value The value to cache.\n * @returns {Object} Returns the cache instance.\n */\nfunction setCacheAdd(value) {\n  this.__data__.set(value, HASH_UNDEFINED);\n  return this;\n}\n\n/**\n * Checks if `value` is in the array cache.\n *\n * @private\n * @name has\n * @memberOf SetCache\n * @param {*} value The value to search for.\n * @returns {number} Returns `true` if `value` is found, else `false`.\n */\nfunction setCacheHas(value) {\n  return this.__data__.has(value);\n}\n\n// Add methods to `SetCache`.\nSetCache.prototype.add = SetCache.prototype.push = setCacheAdd;\nSetCache.prototype.has = setCacheHas;\n\n/**\n * Creates a stack cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction Stack(entries) {\n  this.__data__ = new ListCache(entries);\n}\n\n/**\n * Removes all key-value entries from the stack.\n *\n * @private\n * @name clear\n * @memberOf Stack\n */\nfunction stackClear() {\n  this.__data__ = new ListCache;\n}\n\n/**\n * Removes `key` and its value from the stack.\n *\n * @private\n * @name delete\n * @memberOf Stack\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction stackDelete(key) {\n  return this.__data__['delete'](key);\n}\n\n/**\n * Gets the stack value for `key`.\n *\n * @private\n * @name get\n * @memberOf Stack\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction stackGet(key) {\n  return this.__data__.get(key);\n}\n\n/**\n * Checks if a stack value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Stack\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction stackHas(key) {\n  return this.__data__.has(key);\n}\n\n/**\n * Sets the stack `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Stack\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the stack cache instance.\n */\nfunction stackSet(key, value) {\n  var cache = this.__data__;\n  if (cache instanceof ListCache) {\n    var pairs = cache.__data__;\n    if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {\n      pairs.push([key, value]);\n      return this;\n    }\n    cache = this.__data__ = new MapCache(pairs);\n  }\n  cache.set(key, value);\n  return this;\n}\n\n// Add methods to `Stack`.\nStack.prototype.clear = stackClear;\nStack.prototype['delete'] = stackDelete;\nStack.prototype.get = stackGet;\nStack.prototype.has = stackHas;\nStack.prototype.set = stackSet;\n\n/**\n * Creates an array of the enumerable property names of the array-like `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @param {boolean} inherited Specify returning inherited property names.\n * @returns {Array} Returns the array of property names.\n */\nfunction arrayLikeKeys(value, inherited) {\n  // Safari 8.1 makes `arguments.callee` enumerable in strict mode.\n  // Safari 9 makes `arguments.length` enumerable in strict mode.\n  var result = (isArray(value) || isArguments(value))\n    ? baseTimes(value.length, String)\n    : [];\n\n  var length = result.length,\n      skipIndexes = !!length;\n\n  for (var key in value) {\n    if ((inherited || hasOwnProperty.call(value, key)) &&\n        !(skipIndexes && (key == 'length' || isIndex(key, length)))) {\n      result.push(key);\n    }\n  }\n  return result;\n}\n\n/**\n * Gets the index at which the `key` is found in `array` of key-value pairs.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} key The key to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction assocIndexOf(array, key) {\n  var length = array.length;\n  while (length--) {\n    if (eq(array[length][0], key)) {\n      return length;\n    }\n  }\n  return -1;\n}\n\n/**\n * The base implementation of `_.flatten` with support for restricting flattening.\n *\n * @private\n * @param {Array} array The array to flatten.\n * @param {number} depth The maximum recursion depth.\n * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.\n * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.\n * @param {Array} [result=[]] The initial result value.\n * @returns {Array} Returns the new flattened array.\n */\nfunction baseFlatten(array, depth, predicate, isStrict, result) {\n  var index = -1,\n      length = array.length;\n\n  predicate || (predicate = isFlattenable);\n  result || (result = []);\n\n  while (++index < length) {\n    var value = array[index];\n    if (depth > 0 && predicate(value)) {\n      if (depth > 1) {\n        // Recursively flatten arrays (susceptible to call stack limits).\n        baseFlatten(value, depth - 1, predicate, isStrict, result);\n      } else {\n        arrayPush(result, value);\n      }\n    } else if (!isStrict) {\n      result[result.length] = value;\n    }\n  }\n  return result;\n}\n\n/**\n * The base implementation of `_.get` without support for default values.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the property to get.\n * @returns {*} Returns the resolved value.\n */\nfunction baseGet(object, path) {\n  path = isKey(path, object) ? [path] : castPath(path);\n\n  var index = 0,\n      length = path.length;\n\n  while (object != null && index < length) {\n    object = object[toKey(path[index++])];\n  }\n  return (index && index == length) ? object : undefined;\n}\n\n/**\n * The base implementation of `getTag`.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nfunction baseGetTag(value) {\n  return objectToString.call(value);\n}\n\n/**\n * The base implementation of `_.hasIn` without support for deep paths.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {Array|string} key The key to check.\n * @returns {boolean} Returns `true` if `key` exists, else `false`.\n */\nfunction baseHasIn(object, key) {\n  return object != null && key in Object(object);\n}\n\n/**\n * The base implementation of `_.isEqual` which supports partial comparisons\n * and tracks traversed objects.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @param {Function} [customizer] The function to customize comparisons.\n * @param {boolean} [bitmask] The bitmask of comparison flags.\n *  The bitmask may be composed of the following flags:\n *     1 - Unordered comparison\n *     2 - Partial comparison\n * @param {Object} [stack] Tracks traversed `value` and `other` objects.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n */\nfunction baseIsEqual(value, other, customizer, bitmask, stack) {\n  if (value === other) {\n    return true;\n  }\n  if (value == null || other == null || (!isObject(value) && !isObjectLike(other))) {\n    return value !== value && other !== other;\n  }\n  return baseIsEqualDeep(value, other, baseIsEqual, customizer, bitmask, stack);\n}\n\n/**\n * A specialized version of `baseIsEqual` for arrays and objects which performs\n * deep comparisons and tracks traversed objects enabling objects with circular\n * references to be compared.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Function} [customizer] The function to customize comparisons.\n * @param {number} [bitmask] The bitmask of comparison flags. See `baseIsEqual`\n *  for more details.\n * @param {Object} [stack] Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\nfunction baseIsEqualDeep(object, other, equalFunc, customizer, bitmask, stack) {\n  var objIsArr = isArray(object),\n      othIsArr = isArray(other),\n      objTag = arrayTag,\n      othTag = arrayTag;\n\n  if (!objIsArr) {\n    objTag = getTag(object);\n    objTag = objTag == argsTag ? objectTag : objTag;\n  }\n  if (!othIsArr) {\n    othTag = getTag(other);\n    othTag = othTag == argsTag ? objectTag : othTag;\n  }\n  var objIsObj = objTag == objectTag && !isHostObject(object),\n      othIsObj = othTag == objectTag && !isHostObject(other),\n      isSameTag = objTag == othTag;\n\n  if (isSameTag && !objIsObj) {\n    stack || (stack = new Stack);\n    return (objIsArr || isTypedArray(object))\n      ? equalArrays(object, other, equalFunc, customizer, bitmask, stack)\n      : equalByTag(object, other, objTag, equalFunc, customizer, bitmask, stack);\n  }\n  if (!(bitmask & PARTIAL_COMPARE_FLAG)) {\n    var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),\n        othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');\n\n    if (objIsWrapped || othIsWrapped) {\n      var objUnwrapped = objIsWrapped ? object.value() : object,\n          othUnwrapped = othIsWrapped ? other.value() : other;\n\n      stack || (stack = new Stack);\n      return equalFunc(objUnwrapped, othUnwrapped, customizer, bitmask, stack);\n    }\n  }\n  if (!isSameTag) {\n    return false;\n  }\n  stack || (stack = new Stack);\n  return equalObjects(object, other, equalFunc, customizer, bitmask, stack);\n}\n\n/**\n * The base implementation of `_.isMatch` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The object to inspect.\n * @param {Object} source The object of property values to match.\n * @param {Array} matchData The property names, values, and compare flags to match.\n * @param {Function} [customizer] The function to customize comparisons.\n * @returns {boolean} Returns `true` if `object` is a match, else `false`.\n */\nfunction baseIsMatch(object, source, matchData, customizer) {\n  var index = matchData.length,\n      length = index,\n      noCustomizer = !customizer;\n\n  if (object == null) {\n    return !length;\n  }\n  object = Object(object);\n  while (index--) {\n    var data = matchData[index];\n    if ((noCustomizer && data[2])\n          ? data[1] !== object[data[0]]\n          : !(data[0] in object)\n        ) {\n      return false;\n    }\n  }\n  while (++index < length) {\n    data = matchData[index];\n    var key = data[0],\n        objValue = object[key],\n        srcValue = data[1];\n\n    if (noCustomizer && data[2]) {\n      if (objValue === undefined && !(key in object)) {\n        return false;\n      }\n    } else {\n      var stack = new Stack;\n      if (customizer) {\n        var result = customizer(objValue, srcValue, key, object, source, stack);\n      }\n      if (!(result === undefined\n            ? baseIsEqual(srcValue, objValue, customizer, UNORDERED_COMPARE_FLAG | PARTIAL_COMPARE_FLAG, stack)\n            : result\n          )) {\n        return false;\n      }\n    }\n  }\n  return true;\n}\n\n/**\n * The base implementation of `_.isNative` without bad shim checks.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function,\n *  else `false`.\n */\nfunction baseIsNative(value) {\n  if (!isObject(value) || isMasked(value)) {\n    return false;\n  }\n  var pattern = (isFunction(value) || isHostObject(value)) ? reIsNative : reIsHostCtor;\n  return pattern.test(toSource(value));\n}\n\n/**\n * The base implementation of `_.isTypedArray` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n */\nfunction baseIsTypedArray(value) {\n  return isObjectLike(value) &&\n    isLength(value.length) && !!typedArrayTags[objectToString.call(value)];\n}\n\n/**\n * The base implementation of `_.iteratee`.\n *\n * @private\n * @param {*} [value=_.identity] The value to convert to an iteratee.\n * @returns {Function} Returns the iteratee.\n */\nfunction baseIteratee(value) {\n  // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.\n  // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.\n  if (typeof value == 'function') {\n    return value;\n  }\n  if (value == null) {\n    return identity;\n  }\n  if (typeof value == 'object') {\n    return isArray(value)\n      ? baseMatchesProperty(value[0], value[1])\n      : baseMatches(value);\n  }\n  return property(value);\n}\n\n/**\n * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction baseKeys(object) {\n  if (!isPrototype(object)) {\n    return nativeKeys(object);\n  }\n  var result = [];\n  for (var key in Object(object)) {\n    if (hasOwnProperty.call(object, key) && key != 'constructor') {\n      result.push(key);\n    }\n  }\n  return result;\n}\n\n/**\n * The base implementation of `_.matches` which doesn't clone `source`.\n *\n * @private\n * @param {Object} source The object of property values to match.\n * @returns {Function} Returns the new spec function.\n */\nfunction baseMatches(source) {\n  var matchData = getMatchData(source);\n  if (matchData.length == 1 && matchData[0][2]) {\n    return matchesStrictComparable(matchData[0][0], matchData[0][1]);\n  }\n  return function(object) {\n    return object === source || baseIsMatch(object, source, matchData);\n  };\n}\n\n/**\n * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.\n *\n * @private\n * @param {string} path The path of the property to get.\n * @param {*} srcValue The value to match.\n * @returns {Function} Returns the new spec function.\n */\nfunction baseMatchesProperty(path, srcValue) {\n  if (isKey(path) && isStrictComparable(srcValue)) {\n    return matchesStrictComparable(toKey(path), srcValue);\n  }\n  return function(object) {\n    var objValue = get(object, path);\n    return (objValue === undefined && objValue === srcValue)\n      ? hasIn(object, path)\n      : baseIsEqual(srcValue, objValue, undefined, UNORDERED_COMPARE_FLAG | PARTIAL_COMPARE_FLAG);\n  };\n}\n\n/**\n * A specialized version of `baseProperty` which supports deep paths.\n *\n * @private\n * @param {Array|string} path The path of the property to get.\n * @returns {Function} Returns the new accessor function.\n */\nfunction basePropertyDeep(path) {\n  return function(object) {\n    return baseGet(object, path);\n  };\n}\n\n/**\n * The base implementation of `_.rest` which doesn't validate or coerce arguments.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @returns {Function} Returns the new function.\n */\nfunction baseRest(func, start) {\n  start = nativeMax(start === undefined ? (func.length - 1) : start, 0);\n  return function() {\n    var args = arguments,\n        index = -1,\n        length = nativeMax(args.length - start, 0),\n        array = Array(length);\n\n    while (++index < length) {\n      array[index] = args[start + index];\n    }\n    index = -1;\n    var otherArgs = Array(start + 1);\n    while (++index < start) {\n      otherArgs[index] = args[index];\n    }\n    otherArgs[start] = array;\n    return apply(func, this, otherArgs);\n  };\n}\n\n/**\n * The base implementation of `_.toString` which doesn't convert nullish\n * values to empty strings.\n *\n * @private\n * @param {*} value The value to process.\n * @returns {string} Returns the string.\n */\nfunction baseToString(value) {\n  // Exit early for strings to avoid a performance hit in some environments.\n  if (typeof value == 'string') {\n    return value;\n  }\n  if (isSymbol(value)) {\n    return symbolToString ? symbolToString.call(value) : '';\n  }\n  var result = (value + '');\n  return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n}\n\n/**\n * The base implementation of `_.uniqBy` without support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new duplicate free array.\n */\nfunction baseUniq(array, iteratee, comparator) {\n  var index = -1,\n      includes = arrayIncludes,\n      length = array.length,\n      isCommon = true,\n      result = [],\n      seen = result;\n\n  if (comparator) {\n    isCommon = false;\n    includes = arrayIncludesWith;\n  }\n  else if (length >= LARGE_ARRAY_SIZE) {\n    var set = iteratee ? null : createSet(array);\n    if (set) {\n      return setToArray(set);\n    }\n    isCommon = false;\n    includes = cacheHas;\n    seen = new SetCache;\n  }\n  else {\n    seen = iteratee ? [] : result;\n  }\n  outer:\n  while (++index < length) {\n    var value = array[index],\n        computed = iteratee ? iteratee(value) : value;\n\n    value = (comparator || value !== 0) ? value : 0;\n    if (isCommon && computed === computed) {\n      var seenIndex = seen.length;\n      while (seenIndex--) {\n        if (seen[seenIndex] === computed) {\n          continue outer;\n        }\n      }\n      if (iteratee) {\n        seen.push(computed);\n      }\n      result.push(value);\n    }\n    else if (!includes(seen, computed, comparator)) {\n      if (seen !== result) {\n        seen.push(computed);\n      }\n      result.push(value);\n    }\n  }\n  return result;\n}\n\n/**\n * Casts `value` to a path array if it's not one.\n *\n * @private\n * @param {*} value The value to inspect.\n * @returns {Array} Returns the cast property path array.\n */\nfunction castPath(value) {\n  return isArray(value) ? value : stringToPath(value);\n}\n\n/**\n * Creates a set object of `values`.\n *\n * @private\n * @param {Array} values The values to add to the set.\n * @returns {Object} Returns the new set.\n */\nvar createSet = !(Set && (1 / setToArray(new Set([,-0]))[1]) == INFINITY) ? noop : function(values) {\n  return new Set(values);\n};\n\n/**\n * A specialized version of `baseIsEqualDeep` for arrays with support for\n * partial deep comparisons.\n *\n * @private\n * @param {Array} array The array to compare.\n * @param {Array} other The other array to compare.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Function} customizer The function to customize comparisons.\n * @param {number} bitmask The bitmask of comparison flags. See `baseIsEqual`\n *  for more details.\n * @param {Object} stack Tracks traversed `array` and `other` objects.\n * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.\n */\nfunction equalArrays(array, other, equalFunc, customizer, bitmask, stack) {\n  var isPartial = bitmask & PARTIAL_COMPARE_FLAG,\n      arrLength = array.length,\n      othLength = other.length;\n\n  if (arrLength != othLength && !(isPartial && othLength > arrLength)) {\n    return false;\n  }\n  // Assume cyclic values are equal.\n  var stacked = stack.get(array);\n  if (stacked && stack.get(other)) {\n    return stacked == other;\n  }\n  var index = -1,\n      result = true,\n      seen = (bitmask & UNORDERED_COMPARE_FLAG) ? new SetCache : undefined;\n\n  stack.set(array, other);\n  stack.set(other, array);\n\n  // Ignore non-index properties.\n  while (++index < arrLength) {\n    var arrValue = array[index],\n        othValue = other[index];\n\n    if (customizer) {\n      var compared = isPartial\n        ? customizer(othValue, arrValue, index, other, array, stack)\n        : customizer(arrValue, othValue, index, array, other, stack);\n    }\n    if (compared !== undefined) {\n      if (compared) {\n        continue;\n      }\n      result = false;\n      break;\n    }\n    // Recursively compare arrays (susceptible to call stack limits).\n    if (seen) {\n      if (!arraySome(other, function(othValue, othIndex) {\n            if (!seen.has(othIndex) &&\n                (arrValue === othValue || equalFunc(arrValue, othValue, customizer, bitmask, stack))) {\n              return seen.add(othIndex);\n            }\n          })) {\n        result = false;\n        break;\n      }\n    } else if (!(\n          arrValue === othValue ||\n            equalFunc(arrValue, othValue, customizer, bitmask, stack)\n        )) {\n      result = false;\n      break;\n    }\n  }\n  stack['delete'](array);\n  stack['delete'](other);\n  return result;\n}\n\n/**\n * A specialized version of `baseIsEqualDeep` for comparing objects of\n * the same `toStringTag`.\n *\n * **Note:** This function only supports comparing values with tags of\n * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {string} tag The `toStringTag` of the objects to compare.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Function} customizer The function to customize comparisons.\n * @param {number} bitmask The bitmask of comparison flags. See `baseIsEqual`\n *  for more details.\n * @param {Object} stack Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\nfunction equalByTag(object, other, tag, equalFunc, customizer, bitmask, stack) {\n  switch (tag) {\n    case dataViewTag:\n      if ((object.byteLength != other.byteLength) ||\n          (object.byteOffset != other.byteOffset)) {\n        return false;\n      }\n      object = object.buffer;\n      other = other.buffer;\n\n    case arrayBufferTag:\n      if ((object.byteLength != other.byteLength) ||\n          !equalFunc(new Uint8Array(object), new Uint8Array(other))) {\n        return false;\n      }\n      return true;\n\n    case boolTag:\n    case dateTag:\n    case numberTag:\n      // Coerce booleans to `1` or `0` and dates to milliseconds.\n      // Invalid dates are coerced to `NaN`.\n      return eq(+object, +other);\n\n    case errorTag:\n      return object.name == other.name && object.message == other.message;\n\n    case regexpTag:\n    case stringTag:\n      // Coerce regexes to strings and treat strings, primitives and objects,\n      // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring\n      // for more details.\n      return object == (other + '');\n\n    case mapTag:\n      var convert = mapToArray;\n\n    case setTag:\n      var isPartial = bitmask & PARTIAL_COMPARE_FLAG;\n      convert || (convert = setToArray);\n\n      if (object.size != other.size && !isPartial) {\n        return false;\n      }\n      // Assume cyclic values are equal.\n      var stacked = stack.get(object);\n      if (stacked) {\n        return stacked == other;\n      }\n      bitmask |= UNORDERED_COMPARE_FLAG;\n\n      // Recursively compare objects (susceptible to call stack limits).\n      stack.set(object, other);\n      var result = equalArrays(convert(object), convert(other), equalFunc, customizer, bitmask, stack);\n      stack['delete'](object);\n      return result;\n\n    case symbolTag:\n      if (symbolValueOf) {\n        return symbolValueOf.call(object) == symbolValueOf.call(other);\n      }\n  }\n  return false;\n}\n\n/**\n * A specialized version of `baseIsEqualDeep` for objects with support for\n * partial deep comparisons.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Function} customizer The function to customize comparisons.\n * @param {number} bitmask The bitmask of comparison flags. See `baseIsEqual`\n *  for more details.\n * @param {Object} stack Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\nfunction equalObjects(object, other, equalFunc, customizer, bitmask, stack) {\n  var isPartial = bitmask & PARTIAL_COMPARE_FLAG,\n      objProps = keys(object),\n      objLength = objProps.length,\n      othProps = keys(other),\n      othLength = othProps.length;\n\n  if (objLength != othLength && !isPartial) {\n    return false;\n  }\n  var index = objLength;\n  while (index--) {\n    var key = objProps[index];\n    if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {\n      return false;\n    }\n  }\n  // Assume cyclic values are equal.\n  var stacked = stack.get(object);\n  if (stacked && stack.get(other)) {\n    return stacked == other;\n  }\n  var result = true;\n  stack.set(object, other);\n  stack.set(other, object);\n\n  var skipCtor = isPartial;\n  while (++index < objLength) {\n    key = objProps[index];\n    var objValue = object[key],\n        othValue = other[key];\n\n    if (customizer) {\n      var compared = isPartial\n        ? customizer(othValue, objValue, key, other, object, stack)\n        : customizer(objValue, othValue, key, object, other, stack);\n    }\n    // Recursively compare objects (susceptible to call stack limits).\n    if (!(compared === undefined\n          ? (objValue === othValue || equalFunc(objValue, othValue, customizer, bitmask, stack))\n          : compared\n        )) {\n      result = false;\n      break;\n    }\n    skipCtor || (skipCtor = key == 'constructor');\n  }\n  if (result && !skipCtor) {\n    var objCtor = object.constructor,\n        othCtor = other.constructor;\n\n    // Non `Object` object instances with different constructors are not equal.\n    if (objCtor != othCtor &&\n        ('constructor' in object && 'constructor' in other) &&\n        !(typeof objCtor == 'function' && objCtor instanceof objCtor &&\n          typeof othCtor == 'function' && othCtor instanceof othCtor)) {\n      result = false;\n    }\n  }\n  stack['delete'](object);\n  stack['delete'](other);\n  return result;\n}\n\n/**\n * Gets the data for `map`.\n *\n * @private\n * @param {Object} map The map to query.\n * @param {string} key The reference key.\n * @returns {*} Returns the map data.\n */\nfunction getMapData(map, key) {\n  var data = map.__data__;\n  return isKeyable(key)\n    ? data[typeof key == 'string' ? 'string' : 'hash']\n    : data.map;\n}\n\n/**\n * Gets the property names, values, and compare flags of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the match data of `object`.\n */\nfunction getMatchData(object) {\n  var result = keys(object),\n      length = result.length;\n\n  while (length--) {\n    var key = result[length],\n        value = object[key];\n\n    result[length] = [key, value, isStrictComparable(value)];\n  }\n  return result;\n}\n\n/**\n * Gets the native function at `key` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the method to get.\n * @returns {*} Returns the function if it's native, else `undefined`.\n */\nfunction getNative(object, key) {\n  var value = getValue(object, key);\n  return baseIsNative(value) ? value : undefined;\n}\n\n/**\n * Gets the `toStringTag` of `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nvar getTag = baseGetTag;\n\n// Fallback for data views, maps, sets, and weak maps in IE 11,\n// for data views in Edge < 14, and promises in Node.js.\nif ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||\n    (Map && getTag(new Map) != mapTag) ||\n    (Promise && getTag(Promise.resolve()) != promiseTag) ||\n    (Set && getTag(new Set) != setTag) ||\n    (WeakMap && getTag(new WeakMap) != weakMapTag)) {\n  getTag = function(value) {\n    var result = objectToString.call(value),\n        Ctor = result == objectTag ? value.constructor : undefined,\n        ctorString = Ctor ? toSource(Ctor) : undefined;\n\n    if (ctorString) {\n      switch (ctorString) {\n        case dataViewCtorString: return dataViewTag;\n        case mapCtorString: return mapTag;\n        case promiseCtorString: return promiseTag;\n        case setCtorString: return setTag;\n        case weakMapCtorString: return weakMapTag;\n      }\n    }\n    return result;\n  };\n}\n\n/**\n * Checks if `path` exists on `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array|string} path The path to check.\n * @param {Function} hasFunc The function to check properties.\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\n */\nfunction hasPath(object, path, hasFunc) {\n  path = isKey(path, object) ? [path] : castPath(path);\n\n  var result,\n      index = -1,\n      length = path.length;\n\n  while (++index < length) {\n    var key = toKey(path[index]);\n    if (!(result = object != null && hasFunc(object, key))) {\n      break;\n    }\n    object = object[key];\n  }\n  if (result) {\n    return result;\n  }\n  var length = object ? object.length : 0;\n  return !!length && isLength(length) && isIndex(key, length) &&\n    (isArray(object) || isArguments(object));\n}\n\n/**\n * Checks if `value` is a flattenable `arguments` object or array.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.\n */\nfunction isFlattenable(value) {\n  return isArray(value) || isArguments(value) ||\n    !!(spreadableSymbol && value && value[spreadableSymbol]);\n}\n\n/**\n * Checks if `value` is a valid array-like index.\n *\n * @private\n * @param {*} value The value to check.\n * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.\n * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.\n */\nfunction isIndex(value, length) {\n  length = length == null ? MAX_SAFE_INTEGER : length;\n  return !!length &&\n    (typeof value == 'number' || reIsUint.test(value)) &&\n    (value > -1 && value % 1 == 0 && value < length);\n}\n\n/**\n * Checks if `value` is a property name and not a property path.\n *\n * @private\n * @param {*} value The value to check.\n * @param {Object} [object] The object to query keys on.\n * @returns {boolean} Returns `true` if `value` is a property name, else `false`.\n */\nfunction isKey(value, object) {\n  if (isArray(value)) {\n    return false;\n  }\n  var type = typeof value;\n  if (type == 'number' || type == 'symbol' || type == 'boolean' ||\n      value == null || isSymbol(value)) {\n    return true;\n  }\n  return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||\n    (object != null && value in Object(object));\n}\n\n/**\n * Checks if `value` is suitable for use as unique object key.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is suitable, else `false`.\n */\nfunction isKeyable(value) {\n  var type = typeof value;\n  return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')\n    ? (value !== '__proto__')\n    : (value === null);\n}\n\n/**\n * Checks if `func` has its source masked.\n *\n * @private\n * @param {Function} func The function to check.\n * @returns {boolean} Returns `true` if `func` is masked, else `false`.\n */\nfunction isMasked(func) {\n  return !!maskSrcKey && (maskSrcKey in func);\n}\n\n/**\n * Checks if `value` is likely a prototype object.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.\n */\nfunction isPrototype(value) {\n  var Ctor = value && value.constructor,\n      proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;\n\n  return value === proto;\n}\n\n/**\n * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` if suitable for strict\n *  equality comparisons, else `false`.\n */\nfunction isStrictComparable(value) {\n  return value === value && !isObject(value);\n}\n\n/**\n * A specialized version of `matchesProperty` for source values suitable\n * for strict equality comparisons, i.e. `===`.\n *\n * @private\n * @param {string} key The key of the property to get.\n * @param {*} srcValue The value to match.\n * @returns {Function} Returns the new spec function.\n */\nfunction matchesStrictComparable(key, srcValue) {\n  return function(object) {\n    if (object == null) {\n      return false;\n    }\n    return object[key] === srcValue &&\n      (srcValue !== undefined || (key in Object(object)));\n  };\n}\n\n/**\n * Converts `string` to a property path array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the property path array.\n */\nvar stringToPath = memoize(function(string) {\n  string = toString(string);\n\n  var result = [];\n  if (reLeadingDot.test(string)) {\n    result.push('');\n  }\n  string.replace(rePropName, function(match, number, quote, string) {\n    result.push(quote ? string.replace(reEscapeChar, '$1') : (number || match));\n  });\n  return result;\n});\n\n/**\n * Converts `value` to a string key if it's not a string or symbol.\n *\n * @private\n * @param {*} value The value to inspect.\n * @returns {string|symbol} Returns the key.\n */\nfunction toKey(value) {\n  if (typeof value == 'string' || isSymbol(value)) {\n    return value;\n  }\n  var result = (value + '');\n  return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n}\n\n/**\n * Converts `func` to its source code.\n *\n * @private\n * @param {Function} func The function to process.\n * @returns {string} Returns the source code.\n */\nfunction toSource(func) {\n  if (func != null) {\n    try {\n      return funcToString.call(func);\n    } catch (e) {}\n    try {\n      return (func + '');\n    } catch (e) {}\n  }\n  return '';\n}\n\n/**\n * Gets the last element of `array`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to query.\n * @returns {*} Returns the last element of `array`.\n * @example\n *\n * _.last([1, 2, 3]);\n * // => 3\n */\nfunction last(array) {\n  var length = array ? array.length : 0;\n  return length ? array[length - 1] : undefined;\n}\n\n/**\n * This method is like `_.union` except that it accepts `iteratee` which is\n * invoked for each element of each `arrays` to generate the criterion by\n * which uniqueness is computed. Result values are chosen from the first\n * array in which the value occurs. The iteratee is invoked with one argument:\n * (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @param {Function} [iteratee=_.identity]\n *  The iteratee invoked per element.\n * @returns {Array} Returns the new array of combined values.\n * @example\n *\n * _.unionBy([2.1], [1.2, 2.3], Math.floor);\n * // => [2.1, 1.2]\n *\n * // The `_.property` iteratee shorthand.\n * _.unionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');\n * // => [{ 'x': 1 }, { 'x': 2 }]\n */\nvar unionBy = baseRest(function(arrays) {\n  var iteratee = last(arrays);\n  if (isArrayLikeObject(iteratee)) {\n    iteratee = undefined;\n  }\n  return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), baseIteratee(iteratee, 2));\n});\n\n/**\n * Creates a function that memoizes the result of `func`. If `resolver` is\n * provided, it determines the cache key for storing the result based on the\n * arguments provided to the memoized function. By default, the first argument\n * provided to the memoized function is used as the map cache key. The `func`\n * is invoked with the `this` binding of the memoized function.\n *\n * **Note:** The cache is exposed as the `cache` property on the memoized\n * function. Its creation may be customized by replacing the `_.memoize.Cache`\n * constructor with one whose instances implement the\n * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)\n * method interface of `delete`, `get`, `has`, and `set`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to have its output memoized.\n * @param {Function} [resolver] The function to resolve the cache key.\n * @returns {Function} Returns the new memoized function.\n * @example\n *\n * var object = { 'a': 1, 'b': 2 };\n * var other = { 'c': 3, 'd': 4 };\n *\n * var values = _.memoize(_.values);\n * values(object);\n * // => [1, 2]\n *\n * values(other);\n * // => [3, 4]\n *\n * object.a = 2;\n * values(object);\n * // => [1, 2]\n *\n * // Modify the result cache.\n * values.cache.set(object, ['a', 'b']);\n * values(object);\n * // => ['a', 'b']\n *\n * // Replace `_.memoize.Cache`.\n * _.memoize.Cache = WeakMap;\n */\nfunction memoize(func, resolver) {\n  if (typeof func != 'function' || (resolver && typeof resolver != 'function')) {\n    throw new TypeError(FUNC_ERROR_TEXT);\n  }\n  var memoized = function() {\n    var args = arguments,\n        key = resolver ? resolver.apply(this, args) : args[0],\n        cache = memoized.cache;\n\n    if (cache.has(key)) {\n      return cache.get(key);\n    }\n    var result = func.apply(this, args);\n    memoized.cache = cache.set(key, result);\n    return result;\n  };\n  memoized.cache = new (memoize.Cache || MapCache);\n  return memoized;\n}\n\n// Assign cache to `_.memoize`.\nmemoize.Cache = MapCache;\n\n/**\n * Performs a\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * comparison between two values to determine if they are equivalent.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.eq(object, object);\n * // => true\n *\n * _.eq(object, other);\n * // => false\n *\n * _.eq('a', 'a');\n * // => true\n *\n * _.eq('a', Object('a'));\n * // => false\n *\n * _.eq(NaN, NaN);\n * // => true\n */\nfunction eq(value, other) {\n  return value === other || (value !== value && other !== other);\n}\n\n/**\n * Checks if `value` is likely an `arguments` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n *  else `false`.\n * @example\n *\n * _.isArguments(function() { return arguments; }());\n * // => true\n *\n * _.isArguments([1, 2, 3]);\n * // => false\n */\nfunction isArguments(value) {\n  // Safari 8.1 makes `arguments.callee` enumerable in strict mode.\n  return isArrayLikeObject(value) && hasOwnProperty.call(value, 'callee') &&\n    (!propertyIsEnumerable.call(value, 'callee') || objectToString.call(value) == argsTag);\n}\n\n/**\n * Checks if `value` is classified as an `Array` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array, else `false`.\n * @example\n *\n * _.isArray([1, 2, 3]);\n * // => true\n *\n * _.isArray(document.body.children);\n * // => false\n *\n * _.isArray('abc');\n * // => false\n *\n * _.isArray(_.noop);\n * // => false\n */\nvar isArray = Array.isArray;\n\n/**\n * Checks if `value` is array-like. A value is considered array-like if it's\n * not a function and has a `value.length` that's an integer greater than or\n * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is array-like, else `false`.\n * @example\n *\n * _.isArrayLike([1, 2, 3]);\n * // => true\n *\n * _.isArrayLike(document.body.children);\n * // => true\n *\n * _.isArrayLike('abc');\n * // => true\n *\n * _.isArrayLike(_.noop);\n * // => false\n */\nfunction isArrayLike(value) {\n  return value != null && isLength(value.length) && !isFunction(value);\n}\n\n/**\n * This method is like `_.isArrayLike` except that it also checks if `value`\n * is an object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array-like object,\n *  else `false`.\n * @example\n *\n * _.isArrayLikeObject([1, 2, 3]);\n * // => true\n *\n * _.isArrayLikeObject(document.body.children);\n * // => true\n *\n * _.isArrayLikeObject('abc');\n * // => false\n *\n * _.isArrayLikeObject(_.noop);\n * // => false\n */\nfunction isArrayLikeObject(value) {\n  return isObjectLike(value) && isArrayLike(value);\n}\n\n/**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a function, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\nfunction isFunction(value) {\n  // The use of `Object#toString` avoids issues with the `typeof` operator\n  // in Safari 8-9 which returns 'object' for typed array and other constructors.\n  var tag = isObject(value) ? objectToString.call(value) : '';\n  return tag == funcTag || tag == genTag;\n}\n\n/**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This method is loosely based on\n * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n * @example\n *\n * _.isLength(3);\n * // => true\n *\n * _.isLength(Number.MIN_VALUE);\n * // => false\n *\n * _.isLength(Infinity);\n * // => false\n *\n * _.isLength('3');\n * // => false\n */\nfunction isLength(value) {\n  return typeof value == 'number' &&\n    value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n}\n\n/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n  var type = typeof value;\n  return !!value && (type == 'object' || type == 'function');\n}\n\n/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n  return !!value && typeof value == 'object';\n}\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n  return typeof value == 'symbol' ||\n    (isObjectLike(value) && objectToString.call(value) == symbolTag);\n}\n\n/**\n * Checks if `value` is classified as a typed array.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n * @example\n *\n * _.isTypedArray(new Uint8Array);\n * // => true\n *\n * _.isTypedArray([]);\n * // => false\n */\nvar isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;\n\n/**\n * Converts `value` to a string. An empty string is returned for `null`\n * and `undefined` values. The sign of `-0` is preserved.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {string} Returns the string.\n * @example\n *\n * _.toString(null);\n * // => ''\n *\n * _.toString(-0);\n * // => '-0'\n *\n * _.toString([1, 2, 3]);\n * // => '1,2,3'\n */\nfunction toString(value) {\n  return value == null ? '' : baseToString(value);\n}\n\n/**\n * Gets the value at `path` of `object`. If the resolved value is\n * `undefined`, the `defaultValue` is returned in its place.\n *\n * @static\n * @memberOf _\n * @since 3.7.0\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the property to get.\n * @param {*} [defaultValue] The value returned for `undefined` resolved values.\n * @returns {*} Returns the resolved value.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }] };\n *\n * _.get(object, 'a[0].b.c');\n * // => 3\n *\n * _.get(object, ['a', '0', 'b', 'c']);\n * // => 3\n *\n * _.get(object, 'a.b.c', 'default');\n * // => 'default'\n */\nfunction get(object, path, defaultValue) {\n  var result = object == null ? undefined : baseGet(object, path);\n  return result === undefined ? defaultValue : result;\n}\n\n/**\n * Checks if `path` is a direct or inherited property of `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path to check.\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\n * @example\n *\n * var object = _.create({ 'a': _.create({ 'b': 2 }) });\n *\n * _.hasIn(object, 'a');\n * // => true\n *\n * _.hasIn(object, 'a.b');\n * // => true\n *\n * _.hasIn(object, ['a', 'b']);\n * // => true\n *\n * _.hasIn(object, 'b');\n * // => false\n */\nfunction hasIn(object, path) {\n  return object != null && hasPath(object, path, baseHasIn);\n}\n\n/**\n * Creates an array of the own enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects. See the\n * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * for more details.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n *   this.a = 1;\n *   this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keys(new Foo);\n * // => ['a', 'b'] (iteration order is not guaranteed)\n *\n * _.keys('hi');\n * // => ['0', '1']\n */\nfunction keys(object) {\n  return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);\n}\n\n/**\n * This method returns the first argument it receives.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Util\n * @param {*} value Any value.\n * @returns {*} Returns `value`.\n * @example\n *\n * var object = { 'a': 1 };\n *\n * console.log(_.identity(object) === object);\n * // => true\n */\nfunction identity(value) {\n  return value;\n}\n\n/**\n * This method returns `undefined`.\n *\n * @static\n * @memberOf _\n * @since 2.3.0\n * @category Util\n * @example\n *\n * _.times(2, _.noop);\n * // => [undefined, undefined]\n */\nfunction noop() {\n  // No operation performed.\n}\n\n/**\n * Creates a function that returns the value at `path` of a given object.\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Util\n * @param {Array|string} path The path of the property to get.\n * @returns {Function} Returns the new accessor function.\n * @example\n *\n * var objects = [\n *   { 'a': { 'b': 2 } },\n *   { 'a': { 'b': 1 } }\n * ];\n *\n * _.map(objects, _.property('a.b'));\n * // => [2, 1]\n *\n * _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');\n * // => [1, 2]\n */\nfunction property(path) {\n  return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);\n}\n\nmodule.exports = unionBy;\n","/* {[The file is published on the basis of YetiForce Public License 6.5 that can be found in the following directory: licenses/LicenseEN.txt or yetiforce.com]} */\nimport unionby from 'lodash.unionby'\n\nimport { mergeDeepReactive } from '../utils/utils.js'\n\nexport default {\n\tsetDialog(state, idOpen) {\n\t\tstate.session.dialog = idOpen\n\t},\n\tminiMode(state, isMini) {\n\t\tstate.session.miniMode = isMini\n\t},\n\tsetLeftPanel(state, isOpen) {\n\t\tstate.session.leftPanel = isOpen\n\t},\n\tsetLeftPanelMobile(state, isOpen) {\n\t\tstate.session.leftPanelMobile = isOpen\n\t},\n\tsetRightPanel(state, isOpen) {\n\t\tstate.session.rightPanel = isOpen\n\t},\n\tsetRightPanelMobile(state, isOpen) {\n\t\tstate.session.rightPanelMobile = isOpen\n\t},\n\tsetHistoryTab(state, tab) {\n\t\tstate.session.historyTab = tab\n\t},\n\tsetTab(state, tab) {\n\t\tstate.session.tab = tab\n\t},\n\tsetCoordinates(state, val) {\n\t\tstate.session.coordinates = val\n\t},\n\tsetButtonCoordinates(state, val) {\n\t\tstate.session.buttonCoordinates = val\n\t},\n\tsetSendByEnter(state, val) {\n\t\tstate.local.sendByEnter = val\n\t},\n\tsetSoundNotification(state, val) {\n\t\tstate.local.isSoundNotification = val\n\t},\n\tremoveRoomSoundNotificationsOff(state, { roomType, id }) {\n\t\tstate.local.roomSoundNotificationsOff[roomType] = state.local.roomSoundNotificationsOff[roomType].filter((item) => item !== id)\n\t},\n\taddRoomSoundNotificationsOff(state, { roomType, id }) {\n\t\tstate.local.roomSoundNotificationsOff[roomType].push(id)\n\t},\n\tremoveRoomExpanded(state, roomType) {\n\t\tstate.local.roomsExpanded = state.local.roomsExpanded.filter((room) => room !== roomType)\n\t},\n\taddRoomExpanded(state, roomType) {\n\t\tstate.local.roomsExpanded.push(roomType)\n\t},\n\tsetDesktopNotification(state, val) {\n\t\tstate.local.isDesktopNotification = val\n\t},\n\tsetData(state, data) {\n\t\tstate.data = data\n\t},\n\tsetPinnedRooms(state, { rooms, roomType }) {\n\t\tVue.set(state.data.roomList, roomType, rooms)\n\t},\n\tmergeData(state, data) {\n\t\tstate.data = mergeDeepReactive(state.data, data)\n\t},\n\n\tsetHistoryData(state, data) {\n\t\tstate.data.history = mergeDeepReactive(state.data.history, data)\n\t},\n\tpushSended(state, { result, roomType, recordId }) {\n\t\tstate.data.roomList[roomType][recordId].chatEntries.push(result.chatEntries.slice(-1)[0])\n\t\tstate.data.roomList[roomType][recordId].showMoreButton = result.showMoreButton\n\t\tstate.data.roomList[roomType][recordId].participants = result.participants\n\t},\n\tupdateActiveRooms(state, { roomsToUpdate, newData }) {\n\t\tstate.data.amountOfNewMessages = newData.amountOfNewMessages.amount\n\t\troomsToUpdate.forEach((room) => {\n\t\t\tstate.data.roomList[room.roomType][room.recordid].showMoreButton = newData.roomList[room.roomType][room.recordid].showMoreButton\n\t\t\tstate.data.roomList[room.roomType][room.recordid].participants = newData.roomList[room.roomType][room.recordid].participants\n\t\t\tstate.data.roomList[room.roomType][room.recordid].chatEntries = unionby(\n\t\t\t\tstate.data.roomList[room.roomType][room.recordid].chatEntries,\n\t\t\t\tnewData.roomList[room.roomType][room.recordid].chatEntries,\n\t\t\t\t'id'\n\t\t\t)\n\t\t})\n\t},\n\tsetNewRooms(state, { newRooms, newData }) {\n\t\tnewRooms.forEach((room) => {\n\t\t\tVue.set(state.data.roomList[room.roomType], room.recordId, newData[room.roomType][room.recordId])\n\t\t})\n\t},\n\tunsetUnpinnedRooms(state, roomsToUnpin) {\n\t\tObject.keys(roomsToUnpin).forEach((roomType) => {\n\t\t\tif (roomsToUnpin[roomType].length) {\n\t\t\t\troomsToUnpin[roomType].forEach((recordId) => {\n\t\t\t\t\tVue.delete(state.data.roomList[roomType], recordId)\n\t\t\t\t})\n\t\t\t}\n\t\t})\n\t},\n\tupdateRooms(state, data) {\n\t\tstate.data.roomList = mergeDeepReactive(state.data.roomList, data)\n\t},\n\tupdateParticipants(state, { roomType, recordId, data }) {\n\t\tif (state.data.currentRoom.roomType === roomType) Vue.set(state.data.roomList[roomType][recordId], 'participants', data)\n\t},\n\tpushOlderEntries(state, { result, roomType, recordId }) {\n\t\tstate.data.roomList[roomType][recordId].chatEntries.unshift(...result.chatEntries)\n\t\tstate.data.roomList[roomType][recordId].showMoreButton = result.showMoreButton\n\t},\n\tpushOlderEntriesToHistory(state, result) {\n\t\tstate.data.history.chatEntries.unshift(...result.chatEntries)\n\t\tstate.data.history.showMoreButton = result.showMoreButton\n\t},\n\tsetSearchData(state, { roomType, recordId, searchData }) {\n\t\tstate.data.roomList[roomType][recordId].searchData = searchData\n\t},\n\tpushOlderEntriesToSearch(state, { roomType, recordId, searchData }) {\n\t\tstate.data.roomList[roomType][recordId].searchData.chatEntries.unshift(...searchData.chatEntries)\n\t\tstate.data.roomList[roomType][recordId].searchData = searchData.showMoreButton\n\t},\n\tsetAmountOfNewMessages(state, val) {\n\t\tstate.data.amountOfNewMessages = val\n\t},\n\tsetAmountOfNewMessagesByRoom(state, val) {\n\t\tstate.data.roomList = mergeDeepReactive(state.data.roomList, val)\n\t},\n\tunsetActiveRoom(state, { recordId, roomType }) {\n\t\tstate.data.roomList[roomType][recordId].active = false\n\t},\n\tsetActiveRoom(state, { recordId, roomType }) {\n\t\tstate.data.roomList[roomType][recordId].active = true\n\t},\n\tunsetParticipant(state, { roomId, participantId }) {\n\t\tlet participants = state.data.roomList.private[roomId].participants\n\t\tfor (let i = 0; i < participants.length; i++) {\n\t\t\tif (participants[i].user_id === participantId) {\n\t\t\t\tparticipants.splice(i, 1)\n\t\t\t\tbreak\n\t\t\t}\n\t\t}\n\t},\n\tunsetRoom(state, { roomType, recordId }) {\n\t\tVue.delete(state.data.roomList[roomType], recordId)\n\t},\n\tsetRoom(state, { roomType, recordId, room }) {\n\t\tVue.set(state.data.roomList[roomType], recordId, room)\n\t},\n\tunsetCurrentRoom(state) {\n\t\tVue.set(state.data, 'currentRoom', {})\n\t},\n\tsetCurrentRoom(state, data) {\n\t\tVue.set(state.data, 'currentRoom', data)\n\t},\n\tsetConfig(state, config) {\n\t\tstate.config = mergeDeepReactive(state.config, config)\n\t},\n\tsetDetailPreview(state, { id, module }) {\n\t\tstate.config.detailPreview = { id, module }\n\t},\n\tinitStorage(state) {\n\t\tconst chatLocalStorage = Quasar.plugins.LocalStorage.getItem('yf-chat')\n\t\tconst chatSessionStorage = Quasar.plugins.SessionStorage.getItem('yf-chat')\n\t\tif (chatLocalStorage && JSON.stringify(Object.keys(state.local)) === JSON.stringify(Object.keys(JSON.parse(chatLocalStorage)))) {\n\t\t\tstate.local = mergeDeepReactive(state.local, JSON.parse(chatLocalStorage))\n\t\t}\n\t\tif (chatSessionStorage && JSON.stringify(Object.keys(state.session)) === JSON.stringify(Object.keys(JSON.parse(chatSessionStorage)))) {\n\t\t\tstate.session = mergeDeepReactive(state.session, JSON.parse(chatSessionStorage))\n\t\t}\n\t},\n}\n","/**\n * lodash (Custom Build) <https://lodash.com/>\n * Build: `lodash modularize exports=\"npm\" -o ./`\n * Copyright jQuery Foundation and other contributors <https://jquery.org/>\n * Released under MIT license <https://lodash.com/license>\n * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>\n * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n */\n\n/** Used as the size to enable large array optimizations. */\nvar LARGE_ARRAY_SIZE = 200;\n\n/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n    funcTag = '[object Function]',\n    genTag = '[object GeneratorFunction]';\n\n/**\n * Used to match `RegExp`\n * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).\n */\nvar reRegExpChar = /[\\\\^$.*+?()[\\]{}|]/g;\n\n/** Used to detect host constructors (Safari). */\nvar reIsHostCtor = /^\\[object .+?Constructor\\]$/;\n\n/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\n/**\n * A faster alternative to `Function#apply`, this function invokes `func`\n * with the `this` binding of `thisArg` and the arguments of `args`.\n *\n * @private\n * @param {Function} func The function to invoke.\n * @param {*} thisArg The `this` binding of `func`.\n * @param {Array} args The arguments to invoke `func` with.\n * @returns {*} Returns the result of `func`.\n */\nfunction apply(func, thisArg, args) {\n  switch (args.length) {\n    case 0: return func.call(thisArg);\n    case 1: return func.call(thisArg, args[0]);\n    case 2: return func.call(thisArg, args[0], args[1]);\n    case 3: return func.call(thisArg, args[0], args[1], args[2]);\n  }\n  return func.apply(thisArg, args);\n}\n\n/**\n * A specialized version of `_.includes` for arrays without support for\n * specifying an index to search from.\n *\n * @private\n * @param {Array} [array] The array to inspect.\n * @param {*} target The value to search for.\n * @returns {boolean} Returns `true` if `target` is found, else `false`.\n */\nfunction arrayIncludes(array, value) {\n  var length = array ? array.length : 0;\n  return !!length && baseIndexOf(array, value, 0) > -1;\n}\n\n/**\n * This function is like `arrayIncludes` except that it accepts a comparator.\n *\n * @private\n * @param {Array} [array] The array to inspect.\n * @param {*} target The value to search for.\n * @param {Function} comparator The comparator invoked per element.\n * @returns {boolean} Returns `true` if `target` is found, else `false`.\n */\nfunction arrayIncludesWith(array, value, comparator) {\n  var index = -1,\n      length = array ? array.length : 0;\n\n  while (++index < length) {\n    if (comparator(value, array[index])) {\n      return true;\n    }\n  }\n  return false;\n}\n\n/**\n * A specialized version of `_.map` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\nfunction arrayMap(array, iteratee) {\n  var index = -1,\n      length = array ? array.length : 0,\n      result = Array(length);\n\n  while (++index < length) {\n    result[index] = iteratee(array[index], index, array);\n  }\n  return result;\n}\n\n/**\n * Appends the elements of `values` to `array`.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {Array} values The values to append.\n * @returns {Array} Returns `array`.\n */\nfunction arrayPush(array, values) {\n  var index = -1,\n      length = values.length,\n      offset = array.length;\n\n  while (++index < length) {\n    array[offset + index] = values[index];\n  }\n  return array;\n}\n\n/**\n * The base implementation of `_.findIndex` and `_.findLastIndex` without\n * support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Function} predicate The function invoked per iteration.\n * @param {number} fromIndex The index to search from.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction baseFindIndex(array, predicate, fromIndex, fromRight) {\n  var length = array.length,\n      index = fromIndex + (fromRight ? 1 : -1);\n\n  while ((fromRight ? index-- : ++index < length)) {\n    if (predicate(array[index], index, array)) {\n      return index;\n    }\n  }\n  return -1;\n}\n\n/**\n * The base implementation of `_.indexOf` without `fromIndex` bounds checks.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} fromIndex The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction baseIndexOf(array, value, fromIndex) {\n  if (value !== value) {\n    return baseFindIndex(array, baseIsNaN, fromIndex);\n  }\n  var index = fromIndex - 1,\n      length = array.length;\n\n  while (++index < length) {\n    if (array[index] === value) {\n      return index;\n    }\n  }\n  return -1;\n}\n\n/**\n * The base implementation of `_.isNaN` without support for number objects.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.\n */\nfunction baseIsNaN(value) {\n  return value !== value;\n}\n\n/**\n * The base implementation of `_.unary` without support for storing metadata.\n *\n * @private\n * @param {Function} func The function to cap arguments for.\n * @returns {Function} Returns the new capped function.\n */\nfunction baseUnary(func) {\n  return function(value) {\n    return func(value);\n  };\n}\n\n/**\n * Checks if a cache value for `key` exists.\n *\n * @private\n * @param {Object} cache The cache to query.\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction cacheHas(cache, key) {\n  return cache.has(key);\n}\n\n/**\n * Gets the value at `key` of `object`.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\nfunction getValue(object, key) {\n  return object == null ? undefined : object[key];\n}\n\n/**\n * Checks if `value` is a host object in IE < 9.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a host object, else `false`.\n */\nfunction isHostObject(value) {\n  // Many host objects are `Object` objects that can coerce to strings\n  // despite having improperly defined `toString` methods.\n  var result = false;\n  if (value != null && typeof value.toString != 'function') {\n    try {\n      result = !!(value + '');\n    } catch (e) {}\n  }\n  return result;\n}\n\n/** Used for built-in method references. */\nvar arrayProto = Array.prototype,\n    funcProto = Function.prototype,\n    objectProto = Object.prototype;\n\n/** Used to detect overreaching core-js shims. */\nvar coreJsData = root['__core-js_shared__'];\n\n/** Used to detect methods masquerading as native. */\nvar maskSrcKey = (function() {\n  var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');\n  return uid ? ('Symbol(src)_1.' + uid) : '';\n}());\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar objectToString = objectProto.toString;\n\n/** Used to detect if a method is native. */\nvar reIsNative = RegExp('^' +\n  funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\\\$&')\n  .replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, '$1.*?') + '$'\n);\n\n/** Built-in value references. */\nvar Symbol = root.Symbol,\n    propertyIsEnumerable = objectProto.propertyIsEnumerable,\n    splice = arrayProto.splice,\n    spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max;\n\n/* Built-in method references that are verified to be native. */\nvar Map = getNative(root, 'Map'),\n    nativeCreate = getNative(Object, 'create');\n\n/**\n * Creates a hash object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction Hash(entries) {\n  var index = -1,\n      length = entries ? entries.length : 0;\n\n  this.clear();\n  while (++index < length) {\n    var entry = entries[index];\n    this.set(entry[0], entry[1]);\n  }\n}\n\n/**\n * Removes all key-value entries from the hash.\n *\n * @private\n * @name clear\n * @memberOf Hash\n */\nfunction hashClear() {\n  this.__data__ = nativeCreate ? nativeCreate(null) : {};\n}\n\n/**\n * Removes `key` and its value from the hash.\n *\n * @private\n * @name delete\n * @memberOf Hash\n * @param {Object} hash The hash to modify.\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction hashDelete(key) {\n  return this.has(key) && delete this.__data__[key];\n}\n\n/**\n * Gets the hash value for `key`.\n *\n * @private\n * @name get\n * @memberOf Hash\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction hashGet(key) {\n  var data = this.__data__;\n  if (nativeCreate) {\n    var result = data[key];\n    return result === HASH_UNDEFINED ? undefined : result;\n  }\n  return hasOwnProperty.call(data, key) ? data[key] : undefined;\n}\n\n/**\n * Checks if a hash value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Hash\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction hashHas(key) {\n  var data = this.__data__;\n  return nativeCreate ? data[key] !== undefined : hasOwnProperty.call(data, key);\n}\n\n/**\n * Sets the hash `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Hash\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the hash instance.\n */\nfunction hashSet(key, value) {\n  var data = this.__data__;\n  data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;\n  return this;\n}\n\n// Add methods to `Hash`.\nHash.prototype.clear = hashClear;\nHash.prototype['delete'] = hashDelete;\nHash.prototype.get = hashGet;\nHash.prototype.has = hashHas;\nHash.prototype.set = hashSet;\n\n/**\n * Creates an list cache object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction ListCache(entries) {\n  var index = -1,\n      length = entries ? entries.length : 0;\n\n  this.clear();\n  while (++index < length) {\n    var entry = entries[index];\n    this.set(entry[0], entry[1]);\n  }\n}\n\n/**\n * Removes all key-value entries from the list cache.\n *\n * @private\n * @name clear\n * @memberOf ListCache\n */\nfunction listCacheClear() {\n  this.__data__ = [];\n}\n\n/**\n * Removes `key` and its value from the list cache.\n *\n * @private\n * @name delete\n * @memberOf ListCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction listCacheDelete(key) {\n  var data = this.__data__,\n      index = assocIndexOf(data, key);\n\n  if (index < 0) {\n    return false;\n  }\n  var lastIndex = data.length - 1;\n  if (index == lastIndex) {\n    data.pop();\n  } else {\n    splice.call(data, index, 1);\n  }\n  return true;\n}\n\n/**\n * Gets the list cache value for `key`.\n *\n * @private\n * @name get\n * @memberOf ListCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction listCacheGet(key) {\n  var data = this.__data__,\n      index = assocIndexOf(data, key);\n\n  return index < 0 ? undefined : data[index][1];\n}\n\n/**\n * Checks if a list cache value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf ListCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction listCacheHas(key) {\n  return assocIndexOf(this.__data__, key) > -1;\n}\n\n/**\n * Sets the list cache `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf ListCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the list cache instance.\n */\nfunction listCacheSet(key, value) {\n  var data = this.__data__,\n      index = assocIndexOf(data, key);\n\n  if (index < 0) {\n    data.push([key, value]);\n  } else {\n    data[index][1] = value;\n  }\n  return this;\n}\n\n// Add methods to `ListCache`.\nListCache.prototype.clear = listCacheClear;\nListCache.prototype['delete'] = listCacheDelete;\nListCache.prototype.get = listCacheGet;\nListCache.prototype.has = listCacheHas;\nListCache.prototype.set = listCacheSet;\n\n/**\n * Creates a map cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction MapCache(entries) {\n  var index = -1,\n      length = entries ? entries.length : 0;\n\n  this.clear();\n  while (++index < length) {\n    var entry = entries[index];\n    this.set(entry[0], entry[1]);\n  }\n}\n\n/**\n * Removes all key-value entries from the map.\n *\n * @private\n * @name clear\n * @memberOf MapCache\n */\nfunction mapCacheClear() {\n  this.__data__ = {\n    'hash': new Hash,\n    'map': new (Map || ListCache),\n    'string': new Hash\n  };\n}\n\n/**\n * Removes `key` and its value from the map.\n *\n * @private\n * @name delete\n * @memberOf MapCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction mapCacheDelete(key) {\n  return getMapData(this, key)['delete'](key);\n}\n\n/**\n * Gets the map value for `key`.\n *\n * @private\n * @name get\n * @memberOf MapCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction mapCacheGet(key) {\n  return getMapData(this, key).get(key);\n}\n\n/**\n * Checks if a map value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf MapCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction mapCacheHas(key) {\n  return getMapData(this, key).has(key);\n}\n\n/**\n * Sets the map `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf MapCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the map cache instance.\n */\nfunction mapCacheSet(key, value) {\n  getMapData(this, key).set(key, value);\n  return this;\n}\n\n// Add methods to `MapCache`.\nMapCache.prototype.clear = mapCacheClear;\nMapCache.prototype['delete'] = mapCacheDelete;\nMapCache.prototype.get = mapCacheGet;\nMapCache.prototype.has = mapCacheHas;\nMapCache.prototype.set = mapCacheSet;\n\n/**\n *\n * Creates an array cache object to store unique values.\n *\n * @private\n * @constructor\n * @param {Array} [values] The values to cache.\n */\nfunction SetCache(values) {\n  var index = -1,\n      length = values ? values.length : 0;\n\n  this.__data__ = new MapCache;\n  while (++index < length) {\n    this.add(values[index]);\n  }\n}\n\n/**\n * Adds `value` to the array cache.\n *\n * @private\n * @name add\n * @memberOf SetCache\n * @alias push\n * @param {*} value The value to cache.\n * @returns {Object} Returns the cache instance.\n */\nfunction setCacheAdd(value) {\n  this.__data__.set(value, HASH_UNDEFINED);\n  return this;\n}\n\n/**\n * Checks if `value` is in the array cache.\n *\n * @private\n * @name has\n * @memberOf SetCache\n * @param {*} value The value to search for.\n * @returns {number} Returns `true` if `value` is found, else `false`.\n */\nfunction setCacheHas(value) {\n  return this.__data__.has(value);\n}\n\n// Add methods to `SetCache`.\nSetCache.prototype.add = SetCache.prototype.push = setCacheAdd;\nSetCache.prototype.has = setCacheHas;\n\n/**\n * Gets the index at which the `key` is found in `array` of key-value pairs.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} key The key to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction assocIndexOf(array, key) {\n  var length = array.length;\n  while (length--) {\n    if (eq(array[length][0], key)) {\n      return length;\n    }\n  }\n  return -1;\n}\n\n/**\n * The base implementation of methods like `_.difference` without support\n * for excluding multiple arrays or iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Array} values The values to exclude.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of filtered values.\n */\nfunction baseDifference(array, values, iteratee, comparator) {\n  var index = -1,\n      includes = arrayIncludes,\n      isCommon = true,\n      length = array.length,\n      result = [],\n      valuesLength = values.length;\n\n  if (!length) {\n    return result;\n  }\n  if (iteratee) {\n    values = arrayMap(values, baseUnary(iteratee));\n  }\n  if (comparator) {\n    includes = arrayIncludesWith;\n    isCommon = false;\n  }\n  else if (values.length >= LARGE_ARRAY_SIZE) {\n    includes = cacheHas;\n    isCommon = false;\n    values = new SetCache(values);\n  }\n  outer:\n  while (++index < length) {\n    var value = array[index],\n        computed = iteratee ? iteratee(value) : value;\n\n    value = (comparator || value !== 0) ? value : 0;\n    if (isCommon && computed === computed) {\n      var valuesIndex = valuesLength;\n      while (valuesIndex--) {\n        if (values[valuesIndex] === computed) {\n          continue outer;\n        }\n      }\n      result.push(value);\n    }\n    else if (!includes(values, computed, comparator)) {\n      result.push(value);\n    }\n  }\n  return result;\n}\n\n/**\n * The base implementation of `_.flatten` with support for restricting flattening.\n *\n * @private\n * @param {Array} array The array to flatten.\n * @param {number} depth The maximum recursion depth.\n * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.\n * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.\n * @param {Array} [result=[]] The initial result value.\n * @returns {Array} Returns the new flattened array.\n */\nfunction baseFlatten(array, depth, predicate, isStrict, result) {\n  var index = -1,\n      length = array.length;\n\n  predicate || (predicate = isFlattenable);\n  result || (result = []);\n\n  while (++index < length) {\n    var value = array[index];\n    if (depth > 0 && predicate(value)) {\n      if (depth > 1) {\n        // Recursively flatten arrays (susceptible to call stack limits).\n        baseFlatten(value, depth - 1, predicate, isStrict, result);\n      } else {\n        arrayPush(result, value);\n      }\n    } else if (!isStrict) {\n      result[result.length] = value;\n    }\n  }\n  return result;\n}\n\n/**\n * The base implementation of `_.isNative` without bad shim checks.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function,\n *  else `false`.\n */\nfunction baseIsNative(value) {\n  if (!isObject(value) || isMasked(value)) {\n    return false;\n  }\n  var pattern = (isFunction(value) || isHostObject(value)) ? reIsNative : reIsHostCtor;\n  return pattern.test(toSource(value));\n}\n\n/**\n * The base implementation of `_.rest` which doesn't validate or coerce arguments.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @returns {Function} Returns the new function.\n */\nfunction baseRest(func, start) {\n  start = nativeMax(start === undefined ? (func.length - 1) : start, 0);\n  return function() {\n    var args = arguments,\n        index = -1,\n        length = nativeMax(args.length - start, 0),\n        array = Array(length);\n\n    while (++index < length) {\n      array[index] = args[start + index];\n    }\n    index = -1;\n    var otherArgs = Array(start + 1);\n    while (++index < start) {\n      otherArgs[index] = args[index];\n    }\n    otherArgs[start] = array;\n    return apply(func, this, otherArgs);\n  };\n}\n\n/**\n * Gets the data for `map`.\n *\n * @private\n * @param {Object} map The map to query.\n * @param {string} key The reference key.\n * @returns {*} Returns the map data.\n */\nfunction getMapData(map, key) {\n  var data = map.__data__;\n  return isKeyable(key)\n    ? data[typeof key == 'string' ? 'string' : 'hash']\n    : data.map;\n}\n\n/**\n * Gets the native function at `key` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the method to get.\n * @returns {*} Returns the function if it's native, else `undefined`.\n */\nfunction getNative(object, key) {\n  var value = getValue(object, key);\n  return baseIsNative(value) ? value : undefined;\n}\n\n/**\n * Checks if `value` is a flattenable `arguments` object or array.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.\n */\nfunction isFlattenable(value) {\n  return isArray(value) || isArguments(value) ||\n    !!(spreadableSymbol && value && value[spreadableSymbol]);\n}\n\n/**\n * Checks if `value` is suitable for use as unique object key.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is suitable, else `false`.\n */\nfunction isKeyable(value) {\n  var type = typeof value;\n  return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')\n    ? (value !== '__proto__')\n    : (value === null);\n}\n\n/**\n * Checks if `func` has its source masked.\n *\n * @private\n * @param {Function} func The function to check.\n * @returns {boolean} Returns `true` if `func` is masked, else `false`.\n */\nfunction isMasked(func) {\n  return !!maskSrcKey && (maskSrcKey in func);\n}\n\n/**\n * Converts `func` to its source code.\n *\n * @private\n * @param {Function} func The function to process.\n * @returns {string} Returns the source code.\n */\nfunction toSource(func) {\n  if (func != null) {\n    try {\n      return funcToString.call(func);\n    } catch (e) {}\n    try {\n      return (func + '');\n    } catch (e) {}\n  }\n  return '';\n}\n\n/**\n * Creates an array of `array` values not included in the other given arrays\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons. The order of result values is determined by the\n * order they occur in the first array.\n *\n * **Note:** Unlike `_.pullAll`, this method returns a new array.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {...Array} [values] The values to exclude.\n * @returns {Array} Returns the new array of filtered values.\n * @see _.without, _.xor\n * @example\n *\n * _.difference([2, 1], [2, 3]);\n * // => [1]\n */\nvar difference = baseRest(function(array, values) {\n  return isArrayLikeObject(array)\n    ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true))\n    : [];\n});\n\n/**\n * Performs a\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * comparison between two values to determine if they are equivalent.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.eq(object, object);\n * // => true\n *\n * _.eq(object, other);\n * // => false\n *\n * _.eq('a', 'a');\n * // => true\n *\n * _.eq('a', Object('a'));\n * // => false\n *\n * _.eq(NaN, NaN);\n * // => true\n */\nfunction eq(value, other) {\n  return value === other || (value !== value && other !== other);\n}\n\n/**\n * Checks if `value` is likely an `arguments` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n *  else `false`.\n * @example\n *\n * _.isArguments(function() { return arguments; }());\n * // => true\n *\n * _.isArguments([1, 2, 3]);\n * // => false\n */\nfunction isArguments(value) {\n  // Safari 8.1 makes `arguments.callee` enumerable in strict mode.\n  return isArrayLikeObject(value) && hasOwnProperty.call(value, 'callee') &&\n    (!propertyIsEnumerable.call(value, 'callee') || objectToString.call(value) == argsTag);\n}\n\n/**\n * Checks if `value` is classified as an `Array` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array, else `false`.\n * @example\n *\n * _.isArray([1, 2, 3]);\n * // => true\n *\n * _.isArray(document.body.children);\n * // => false\n *\n * _.isArray('abc');\n * // => false\n *\n * _.isArray(_.noop);\n * // => false\n */\nvar isArray = Array.isArray;\n\n/**\n * Checks if `value` is array-like. A value is considered array-like if it's\n * not a function and has a `value.length` that's an integer greater than or\n * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is array-like, else `false`.\n * @example\n *\n * _.isArrayLike([1, 2, 3]);\n * // => true\n *\n * _.isArrayLike(document.body.children);\n * // => true\n *\n * _.isArrayLike('abc');\n * // => true\n *\n * _.isArrayLike(_.noop);\n * // => false\n */\nfunction isArrayLike(value) {\n  return value != null && isLength(value.length) && !isFunction(value);\n}\n\n/**\n * This method is like `_.isArrayLike` except that it also checks if `value`\n * is an object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array-like object,\n *  else `false`.\n * @example\n *\n * _.isArrayLikeObject([1, 2, 3]);\n * // => true\n *\n * _.isArrayLikeObject(document.body.children);\n * // => true\n *\n * _.isArrayLikeObject('abc');\n * // => false\n *\n * _.isArrayLikeObject(_.noop);\n * // => false\n */\nfunction isArrayLikeObject(value) {\n  return isObjectLike(value) && isArrayLike(value);\n}\n\n/**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a function, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\nfunction isFunction(value) {\n  // The use of `Object#toString` avoids issues with the `typeof` operator\n  // in Safari 8-9 which returns 'object' for typed array and other constructors.\n  var tag = isObject(value) ? objectToString.call(value) : '';\n  return tag == funcTag || tag == genTag;\n}\n\n/**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This method is loosely based on\n * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n * @example\n *\n * _.isLength(3);\n * // => true\n *\n * _.isLength(Number.MIN_VALUE);\n * // => false\n *\n * _.isLength(Infinity);\n * // => false\n *\n * _.isLength('3');\n * // => false\n */\nfunction isLength(value) {\n  return typeof value == 'number' &&\n    value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n}\n\n/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n  var type = typeof value;\n  return !!value && (type == 'object' || type == 'function');\n}\n\n/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n  return !!value && typeof value == 'object';\n}\n\nmodule.exports = difference;\n","/* {[The file is published on the basis of YetiForce Public License 6.5 that can be found in the following directory: licenses/LicenseEN.txt or yetiforce.com]} */\nimport difference from 'lodash.difference'\nlet timer = false\n\nexport default {\n\tmaximize({ commit }, isMini) {\n\t\tcommit('miniMode', isMini)\n\t},\n\ttoggleLeftPanel({ commit, getters }, newValue) {\n\t\tif (getters.mobileMode) {\n\t\t\tcommit('setLeftPanelMobile', newValue !== undefined ? newValue : !getters['leftPanelMobile'])\n\t\t} else {\n\t\t\tcommit('setLeftPanel', newValue !== undefined ? newValue : !getters['leftPanel'])\n\t\t}\n\t},\n\ttoggleRightPanel({ commit, getters }, newValue) {\n\t\tif (getters.mobileMode) {\n\t\t\tcommit('setRightPanelMobile', newValue !== undefined ? newValue : !getters['rightPanelMobile'])\n\t\t} else {\n\t\t\tcommit('setRightPanel', newValue !== undefined ? newValue : !getters['rightPanel'])\n\t\t}\n\t},\n\ttoggleRoomSoundNotification({ commit, getters }, { roomType, id }) {\n\t\tif (getters.roomSoundNotificationsOff[roomType].includes(id)) {\n\t\t\tcommit('removeRoomSoundNotificationsOff', { roomType, id })\n\t\t} else {\n\t\t\tcommit('addRoomSoundNotificationsOff', { roomType, id })\n\t\t}\n\t},\n\ttoggleRoomExpanded({ commit, getters }, roomType) {\n\t\tif (getters.roomsExpanded.includes(roomType)) {\n\t\t\tcommit('removeRoomExpanded', roomType)\n\t\t} else {\n\t\t\tcommit('addRoomExpanded', roomType)\n\t\t}\n\t},\n\tfetchChatConfig({ commit }) {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tAppConnector.request({\n\t\t\t\tmodule: 'Chat',\n\t\t\t\taction: 'ChatAjax',\n\t\t\t\tmode: 'getChatConfig',\n\t\t\t}).done(({ result }) => {\n\t\t\t\tcommit('setConfig', result.config)\n\t\t\t\tcommit('setAmountOfNewMessagesByRoom', result.roomList)\n\t\t\t\tcommit('setCurrentRoom', result.currentRoom)\n\t\t\t\tresolve(result)\n\t\t\t})\n\t\t})\n\t},\n\tfetchRoom({ commit, dispatch }, { id, roomType } = {}) {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tAppConnector.request({\n\t\t\t\tmodule: 'Chat',\n\t\t\t\taction: 'ChatAjax',\n\t\t\t\tmode: 'getMessages',\n\t\t\t\trecordId: id,\n\t\t\t\troomType,\n\t\t\t\trecordRoom: false,\n\t\t\t}).done(({ result }) => {\n\t\t\t\tif (result) {\n\t\t\t\t\tif (result.amountOfNewMessages) {\n\t\t\t\t\t\tdispatch('updateAmountOfNewMessages', result.amountOfNewMessages)\n\t\t\t\t\t\tcommit('mergeData', { currentRoom: result.currentRoom, roomList: result.roomList })\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcommit('mergeData', result)\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tresolve(result)\n\t\t\t})\n\t\t})\n\t},\n\tfetchRoomList({ commit, dispatch }, { id, roomType } = {}) {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tAppConnector.request({\n\t\t\t\tmodule: 'Chat',\n\t\t\t\taction: 'ChatAjax',\n\t\t\t\tmode: 'getRooms',\n\t\t\t}).done(({ result }) => {\n\t\t\t\tif (result) {\n\t\t\t\t\tcommit('mergeData', result)\n\t\t\t\t}\n\t\t\t\tresolve(result)\n\t\t\t})\n\t\t})\n\t},\n\tfetchRoomsUnpinned({ commit, dispatch }, { roomType }) {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tAppConnector.request({\n\t\t\t\tmodule: 'Chat',\n\t\t\t\taction: 'ChatAjax',\n\t\t\t\tmode: 'getRoomsUnpinned',\n\t\t\t\troomType,\n\t\t\t}).done(({ result }) => {\n\t\t\t\tresolve(result)\n\t\t\t})\n\t\t})\n\t},\n\tarchivePrivateRoom({ commit }, { recordId }) {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tAppConnector.request({\n\t\t\t\tmodule: 'Chat',\n\t\t\t\taction: 'ChatAjax',\n\t\t\t\tmode: 'archivePrivateRoom',\n\t\t\t\trecordId: recordId,\n\t\t\t}).done(({ result }) => {\n\t\t\t\tif (result) {\n\t\t\t\t\tcommit('unsetRoom', { roomType: 'private', recordId })\n\t\t\t\t}\n\t\t\t\tresolve(result)\n\t\t\t})\n\t\t})\n\t},\n\tfetchRecordRoom({ commit }, id) {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tAppConnector.request({\n\t\t\t\tmodule: 'Chat',\n\t\t\t\taction: 'ChatAjax',\n\t\t\t\tmode: 'getRecordRoom',\n\t\t\t\tid: id,\n\t\t\t}).done(({ result }) => {\n\t\t\t\tcommit('mergeData', result)\n\t\t\t\tresolve(result)\n\t\t\t})\n\t\t})\n\t},\n\t/**\n\t * Fetch all chat users\n\t */\n\tfetchPrivateRoomUnpinnedUsers({}, roomId) {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tAppConnector.request({\n\t\t\t\tmodule: 'Chat',\n\t\t\t\taction: 'ChatAjax',\n\t\t\t\tmode: 'getRoomPrivateUnpinnedUsers',\n\t\t\t\troomId,\n\t\t\t}).done(({ result }) => {\n\t\t\t\tresolve(result)\n\t\t\t})\n\t\t})\n\t},\n\tremoveActiveRoom({ commit }, { recordId, roomType }) {\n\t\tcommit('unsetActiveRoom', { recordId, roomType })\n\t},\n\taddActiveRoom({ commit, getters }, { recordId, roomType }) {\n\t\tif (roomType && getters.data.roomList[roomType][recordId]) {\n\t\t\tcommit('setActiveRoom', { recordId, roomType })\n\t\t}\n\t},\n\taddPrivateRoom({ dispatch, commit, getters }, { name }) {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tAppConnector.request({\n\t\t\t\tmodule: 'Chat',\n\t\t\t\taction: 'ChatAjax',\n\t\t\t\tmode: 'addPrivateRoom',\n\t\t\t\tname: name,\n\t\t\t}).done((result) => {\n\t\t\t\tresolve(result)\n\t\t\t})\n\t\t})\n\t},\n\t/**\n\t * Add participant to private room\n\t */\n\taddParticipant({}, { recordId, userId }) {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tAppConnector.request({\n\t\t\t\tmodule: 'Chat',\n\t\t\t\taction: 'ChatAjax',\n\t\t\t\tmode: 'addParticipant',\n\t\t\t\trecordId,\n\t\t\t\tuserId,\n\t\t\t}).done((result) => {\n\t\t\t\tresolve(result)\n\t\t\t})\n\t\t})\n\t},\n\tsendMessage({ commit, getters }, { text, roomType, recordId }) {\n\t\tconst lastEntries = getters.data.roomList[roomType][recordId].chatEntries.slice(-1)[0]\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tAppConnector.request({\n\t\t\t\tmodule: 'Chat',\n\t\t\t\taction: 'ChatAjax',\n\t\t\t\tmode: 'send',\n\t\t\t\troomType,\n\t\t\t\trecordId,\n\t\t\t\tmessage: text,\n\t\t\t\tmid: lastEntries !== undefined ? lastEntries['id'] : undefined,\n\t\t\t}).done(({ result }) => {\n\t\t\t\tif (result.message) {\n\t\t\t\t\tcommit('setData', result.data)\n\t\t\t\t\tQuasar.plugins.Notify.create({\n\t\t\t\t\t\tposition: 'top',\n\t\t\t\t\t\ttextColor: 'negative',\n\t\t\t\t\t\tmessage: app.vtranslate(result.message),\n\t\t\t\t\t})\n\t\t\t\t} else {\n\t\t\t\t\tcommit('pushSended', { result, roomType, recordId })\n\t\t\t\t}\n\t\t\t\tresolve(result)\n\t\t\t})\n\t\t})\n\t},\n\tunpinRoom({ dispatch }, { roomType, recordId }) {\n\t\tAppConnector.request({\n\t\t\tmodule: 'Chat',\n\t\t\taction: 'Room',\n\t\t\tmode: 'removeFromFavorites',\n\t\t\troomType,\n\t\t\trecordId,\n\t\t}).done((data) => {\n\t\t\tif (data) {\n\t\t\t\tdispatch('unsetRoom', { roomType, recordId })\n\t\t\t}\n\t\t})\n\t},\n\tunsetRoom({ commit, getters }, { roomType, recordId }) {\n\t\tcommit('unsetRoom', { roomType, recordId })\n\t\tlet currentRoom = getters.data.currentRoom\n\t\tif (currentRoom.roomType === roomType && currentRoom.recordId === recordId) {\n\t\t\tcommit('unsetCurrentRoom')\n\t\t}\n\t},\n\tpinRoom({ dispatch, commit }, { roomType, recordId }) {\n\t\tAppConnector.request({\n\t\t\tmodule: 'Chat',\n\t\t\taction: 'Room',\n\t\t\tmode: 'addToFavorites',\n\t\t\troomType,\n\t\t\trecordId,\n\t\t}).done(({ success, result }) => {\n\t\t\tif (success) {\n\t\t\t\tdispatch('fetchRoomList')\n\t\t\t}\n\t\t})\n\t},\n\tremoveUserFromRoom({ dispatch, commit, getters }, { roomType, recordId, userId }) {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tAppConnector.request({\n\t\t\t\tmodule: 'Chat',\n\t\t\t\taction: 'Room',\n\t\t\t\tmode: 'removeUserFromRoom',\n\t\t\t\trecordId,\n\t\t\t\troomType,\n\t\t\t\tuserId,\n\t\t\t}).done(({ result }) => {\n\t\t\t\tcommit('unsetParticipant', { roomId: recordId, participantId: userId })\n\t\t\t\tQuasar.plugins.Notify.create({\n\t\t\t\t\tposition: 'top',\n\t\t\t\t\tcolor: 'success',\n\t\t\t\t\tmessage: app.vtranslate('JS_CHAT_PARTICIPANT_REMOVED'),\n\t\t\t\t\ticon: 'mdi-check',\n\t\t\t\t})\n\t\t\t\tresolve(result)\n\t\t\t})\n\t\t})\n\t},\n\tfetchEarlierEntries({ commit }, { chatEntries, roomType, recordId }) {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tAppConnector.request(\n\t\t\t\t{\n\t\t\t\t\tmodule: 'Chat',\n\t\t\t\t\taction: 'ChatAjax',\n\t\t\t\t\tmode: 'getMoreMessages',\n\t\t\t\t\tlastId: chatEntries[0].id,\n\t\t\t\t\troomType,\n\t\t\t\t\trecordId,\n\t\t\t\t},\n\t\t\t\tfalse\n\t\t\t).done(({ result }) => {\n\t\t\t\tcommit('pushOlderEntries', { result, roomType, recordId })\n\t\t\t\tresolve(result)\n\t\t\t})\n\t\t})\n\t},\n\t/**\n\t * Search messages.\n\t * @param {jQuery} btn\n\t */\n\tfetchSearchData({ commit }, { value, roomData, showMore }) {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tAppConnector.request(\n\t\t\t\t{\n\t\t\t\t\tmodule: 'Chat',\n\t\t\t\t\taction: 'ChatAjax',\n\t\t\t\t\tmode: 'search',\n\t\t\t\t\tsearchVal: value,\n\t\t\t\t\tmid: showMore ? roomData.searchData.chatEntries[0].id : null,\n\t\t\t\t\troomType: roomData.roomType,\n\t\t\t\t\trecordId: roomData.recordid,\n\t\t\t\t},\n\t\t\t\tfalse\n\t\t\t).done(({ result }) => {\n\t\t\t\tif (!showMore) {\n\t\t\t\t\tcommit('setSearchData', {\n\t\t\t\t\t\tsearchData: result,\n\t\t\t\t\t\troomType: roomData.roomType,\n\t\t\t\t\t\trecordId: roomData.recordid,\n\t\t\t\t\t})\n\t\t\t\t} else {\n\t\t\t\t\tcommit('pushOlderEntriesToSearch', {\n\t\t\t\t\t\tsearchData: result,\n\t\t\t\t\t\troomType: roomData.roomType,\n\t\t\t\t\t\trecordId: roomData.recordid,\n\t\t\t\t\t})\n\t\t\t\t}\n\t\t\t\tresolve(result)\n\t\t\t})\n\t\t})\n\t},\n\t/**\n\t * Get unread messages.\n\t */\n\tfetchUnread() {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tAppConnector.request({\n\t\t\t\tmodule: 'Chat',\n\t\t\t\taction: 'ChatAjax',\n\t\t\t\tmode: 'getUnread',\n\t\t\t}).done(({ result }) => {\n\t\t\t\tresolve(result)\n\t\t\t})\n\t\t})\n\t},\n\t/**\n\t * Fetch history.\n\t * @param {jQuery} btn\n\t * @param {string} groupHistory\n\t */\n\tfetchHistory({ commit, getters }, { groupHistory, showMoreClicked }) {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tAppConnector.request({\n\t\t\t\tmodule: 'Chat',\n\t\t\t\taction: 'ChatAjax',\n\t\t\t\tmode: 'getHistory',\n\t\t\t\tmid: showMoreClicked ? getters.data.history.chatEntries[0].id : null,\n\t\t\t\tgroupHistory,\n\t\t\t}).done(({ result }) => {\n\t\t\t\tif (!showMoreClicked) {\n\t\t\t\t\tcommit('setHistoryData', result)\n\t\t\t\t} else {\n\t\t\t\t\tcommit('pushOlderEntriesToHistory', result)\n\t\t\t\t}\n\t\t\t\tresolve(result)\n\t\t\t})\n\t\t})\n\t},\n\tnotifyAboutNewMessages({ dispatch, getters }, { roomList, amount, lastMessage, firstFetch }) {\n\t\tif (amount > getters.data.amountOfNewMessages) {\n\t\t\tconst storageKey = lastMessage.roomid + '-' + lastMessage.id\n\t\t\tconst isNotified = app.cacheGet('chat-desktop-notify') === storageKey\n\t\t\tif (!isNotified) {\n\t\t\t\tdispatch('playNotificationSound', { roomList, firstFetch })\n\t\t\t\tdispatch('showDesktopNotification', { amount, lastMessage })\n\t\t\t\tapp.cacheSet('chat-desktop-notify', storageKey)\n\t\t\t}\n\t\t}\n\t\tdispatch('updateAmountOfNewMessages', { roomList, amount })\n\t},\n\tplayNotificationSound({ getters }, { roomList, firstFetch }) {\n\t\tif (getters.isSoundNotification) {\n\t\t\tlet areNewMessagesForRoom = (roomType, room) => roomList[roomType][room].cnt_new_message > getters.data.roomList[roomType][room].cnt_new_message\n\t\t\tif (firstFetch) {\n\t\t\t\tareNewMessagesForRoom = (roomType, room) => roomList[roomType][room].cnt_new_message >= getters.data.roomList[roomType][room].cnt_new_message\n\t\t\t}\n\t\t\tfor (let roomType in roomList) {\n\t\t\t\tlet played = false\n\t\t\t\tfor (let room in roomList[roomType]) {\n\t\t\t\t\tlet isSoundOn = !getters.roomSoundNotificationsOff[roomType].includes(parseInt(room))\n\t\t\t\t\tif (areNewMessagesForRoom(roomType, room) && isSoundOn) {\n\t\t\t\t\t\tapp.playSound('CHAT')\n\t\t\t\t\t\tplayed = true\n\t\t\t\t\t\tbreak\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (played) break\n\t\t\t}\n\t\t}\n\t},\n\tshowDesktopNotification({ getters }, { amount, lastMessage }) {\n\t\tconst notificationActive = getters.isDesktopNotification && App.Notify.isDesktopPermitted()\n\t\tif (!notificationActive) {\n\t\t\treturn\n\t\t}\n\t\tlet text = lastMessage.messages\n\t\tlet roomCrumb = 'user' === lastMessage.roomData.roomType ? '' : ` / ${app.vtranslate('JS_CHAT_ROOM_' + lastMessage.roomData.roomType.toUpperCase())}`\n\t\tlet userName = lastMessage.userData.user_name\n\t\tlet title = `${app.vtranslate('JS_CHAT')}${roomCrumb} / ${userName}`\n\t\tlet icon = lastMessage.userData.image ? lastMessage.userData.image : app.getMainParams('layoutPath') + '/../resources/Logo/logo'\n\t\tif (getters.config.showNumberOfNewMessages) {\n\t\t\ttext += `\\n✉️ ${app.vtranslate('JS_CHAT_SUM_UNREAD')}: ${amount}`\n\t\t}\n\t\tApp.Notify.desktop({ icon, text, title })\n\t},\n\tupdateAmountOfNewMessages({ commit, getters }, { roomList, amount }) {\n\t\tif (amount !== getters.data.amountOfNewMessages && amount !== undefined) {\n\t\t\tcommit('setAmountOfNewMessages', amount)\n\t\t\tcommit('setAmountOfNewMessagesByRoom', roomList)\n\t\t}\n\t},\n\tsetNewRooms({ commit, getters }, roomList) {\n\t\tlet newRooms = []\n\t\tfor (let roomType in roomList) {\n\t\t\tfor (let room in roomList[roomType]) {\n\t\t\t\tif (!getters.data.roomList[roomType][room]) {\n\t\t\t\t\tnewRooms.push({\n\t\t\t\t\t\troomType,\n\t\t\t\t\t\trecordId: roomList[roomType][room].recordid,\n\t\t\t\t\t})\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (newRooms.length) {\n\t\t\tcommit('setNewRooms', {\n\t\t\t\tnewRooms,\n\t\t\t\tnewData: roomList,\n\t\t\t})\n\t\t}\n\t},\n\tunsetUnpinnedRooms({ commit, getters }, roomList) {\n\t\tlet roomsToUnpin = {}\n\t\tlet areDifferences = false\n\t\tfor (let roomType in roomList) {\n\t\t\troomsToUnpin[roomType] = difference(Object.keys(getters.data.roomList[roomType]), Object.keys(roomList[roomType]))\n\t\t\tif (roomsToUnpin[roomType].length) {\n\t\t\t\tareDifferences = true\n\t\t\t}\n\t\t}\n\t\tif (areDifferences) {\n\t\t\tcommit('unsetUnpinnedRooms', roomsToUnpin)\n\t\t}\n\t},\n\t/**\n\t * Init timer\n\t */\n\tstartUpdatesListener({ dispatch }) {\n\t\tdispatch('fetchNewMessages', { firstFetch: true })\n\t},\n\t/**\n\t * Init timer\n\t */\n\tinitTimer({ dispatch, getters }) {\n\t\tlet timeoutCallback = () => dispatch('fetchNewMessages')\n\t\ttimer = setTimeout(timeoutCallback, getters.getInterval)\n\t},\n\t/**\n\t * Fetch new messages timeout function\n\t */\n\tfetchNewMessages({ getters, commit, dispatch }, { firstFetch } = { firstFetch: false }) {\n\t\tlet activeRooms = getters.allRooms.length ? getters.allRooms.filter((el) => el.active) : []\n\t\tAppConnector.request({\n\t\t\tmodule: 'Chat',\n\t\t\taction: 'ChatAjax',\n\t\t\tmode: 'getRoomsMessages',\n\t\t\trooms: activeRooms,\n\t\t}).done(({ result }) => {\n\t\t\tdispatch('unsetUnpinnedRooms', result.roomList)\n\t\t\tdispatch('setNewRooms', result.roomList)\n\t\t\tif (result.areNewEntries) {\n\t\t\t\tcommit('updateActiveRooms', {\n\t\t\t\t\troomsToUpdate: [...activeRooms],\n\t\t\t\t\tnewData: result,\n\t\t\t\t})\n\t\t\t}\n\t\t\tdispatch('notifyAboutNewMessages', {\n\t\t\t\t...result.amountOfNewMessages,\n\t\t\t\tfirstFetch,\n\t\t\t})\n\t\t\tif (timer || firstFetch) {\n\t\t\t\tdispatch('initTimer')\n\t\t\t}\n\t\t})\n\t},\n}\n","/* {[The file is published on the basis of YetiForce Public License 6.5 that can be found in the following directory: licenses/LicenseEN.txt or yetiforce.com]} */\nimport getters from './getters.js'\nimport mutations from './mutations.js'\nimport actions from './actions.js'\nimport state from './state.js'\n\nexport default {\n\tnamespaced: true,\n\tgetters,\n\tactions,\n\tmutations,\n\tstate,\n}\n","/* {[The file is published on the basis of YetiForce Public License 6.5 that can be found in the following directory: licenses/LicenseEN.txt or yetiforce.com]} */\nexport default {\n\tlayout: {\n\t\tdrawer: {\n\t\t\tfs: '.88rem',\n\t\t\tbreakpoint: 1023,\n\t\t},\n\t},\n\tsession: {\n\t\tdialog: false,\n\t\tminiMode: true,\n\t\tleftPanel: false,\n\t\tleftPanelMobile: false,\n\t\trightPanel: false,\n\t\trightPanelMobile: false,\n\t\thistoryTab: 'crm',\n\t\ttab: 'chat',\n\t\tcoordinates: {\n\t\t\twidth: 450,\n\t\t\theight: window.innerHeight - 160,\n\t\t\ttop: 60,\n\t\t\tleft: window.innerWidth - 450,\n\t\t},\n\t\tbuttonCoordinates: {\n\t\t\ttop: window.innerHeight - 82,\n\t\t\tleft: window.innerWidth - 62,\n\t\t},\n\t},\n\tlocal: {\n\t\tisSoundNotification: null,\n\t\tisDesktopNotification: false,\n\t\tsendByEnter: true,\n\t\troomSoundNotificationsOff: {\n\t\t\tcrm: [],\n\t\t\tglobal: [],\n\t\t\tgroup: [],\n\t\t\tprivate: [],\n\t\t\tuser: [],\n\t\t},\n\t\troomsExpanded: [],\n\t},\n\tdata: {\n\t\tamountOfNewMessages: 0,\n\t\troomList: {\n\t\t\tprivate: {},\n\t\t\tgroup: {},\n\t\t\tglobal: {},\n\t\t\tcrm: {},\n\t\t\tuser: {},\n\t\t},\n\t\tcurrentRoom: {},\n\t\thistory: {\n\t\t\tchatEntries: [],\n\t\t\tshowMoreButton: null,\n\t\t},\n\t},\n\tconfig: {\n\t\tisChatAllowed: null,\n\t\tisDefaultSoundNotification: null,\n\t\trefreshMessageTime: null,\n\t\trefreshRoomTime: null,\n\t\tmaxLengthMessage: null,\n\t\trefreshTimeGlobal: null,\n\t\tshowNumberOfNewMessages: null,\n\t\tshowRoleName: null,\n\t\tdynamicAddingRooms: null,\n\t\tdraggableButton: null,\n\t\tdetailPreview: { id: null, module: null },\n\t\tactiveRoomTypes: [],\n\t\tuserRoomPin: null,\n\t},\n}\n","/* {[The file is published on the basis of YetiForce Public License 6.5 that can be found in the following directory: licenses/LicenseEN.txt or yetiforce.com]} */\nimport ChatDialog from './views/Dialog.vue'\nimport ChatRecordRoom from './views/RecordRoom.vue'\nimport YfIcon from 'components/YfIcon.vue'\nimport store from 'store'\nimport moduleStore from './store'\n\nVue.config.productionTip = false\n\nlet isModuleInitialized = false\n\nVue.component('YfIcon', YfIcon)\nVue.mixin({\n\tmethods: {\n\t\ttranslate(key) {\n\t\t\treturn app.vtranslate(key)\n\t\t},\n\t},\n})\nfunction initChat() {\n\treturn new Promise((resolve, reject) => {\n\t\tif (!isModuleInitialized) {\n\t\t\tstore.registerModule('Chat', moduleStore)\n\t\t\tstore.dispatch('Chat/fetchChatConfig')\n\t\t\tisModuleInitialized = true\n\t\t\tresolve()\n\t\t} else {\n\t\t\tresolve()\n\t\t}\n\t})\n}\n\nlet recordChatComponent\nwindow.ChatRecordRoomVueComponent = {\n\tcomponent: ChatRecordRoom,\n\tmount(config) {\n\t\tChatRecordRoom.state = config.state\n\t\trecordChatComponent = () => {\n\t\t\treturn new Vue({\n\t\t\t\tstore,\n\t\t\t\tconfig: config,\n\t\t\t\trender: (h) => h(ChatRecordRoom),\n\t\t\t\trecordId: app.getRecordId(),\n\t\t\t\tbeforeCreate() {\n\t\t\t\t\tthis.$store.dispatch('Chat/fetchRecordRoom', this.$options.recordId)\n\t\t\t\t},\n\t\t\t})\n\t\t}\n\t\tif (isModuleInitialized) {\n\t\t\trecordChatComponent = recordChatComponent()\n\t\t\trecordChatComponent.$mount(recordChatComponent.$options.config.el)\n\t\t}\n\t},\n}\nwindow.ChatModalVueComponent = {\n\tcomponent: ChatDialog,\n\tmount(config) {\n\t\tChatDialog.state = config.state\n\t\treturn new Vue({\n\t\t\tstore,\n\t\t\trender: (h) => h(ChatDialog),\n\t\t\tbeforeCreate() {\n\t\t\t\tinitChat().then((e) => {\n\t\t\t\t\tthis.$store.commit('Chat/initStorage')\n\t\t\t\t\tstore.subscribe((mutation, state) => {\n\t\t\t\t\t\tif (mutation.type !== 'Chat/updateChatData' && mutation.type !== 'Chat/setAmountOfNewMessages') {\n\t\t\t\t\t\t\tQuasar.plugins.LocalStorage.set('yf-chat', JSON.stringify(state.Chat.local))\n\t\t\t\t\t\t\tQuasar.plugins.SessionStorage.set('yf-chat', JSON.stringify(state.Chat.session))\n\t\t\t\t\t\t}\n\t\t\t\t\t})\n\t\t\t\t\tif (recordChatComponent) {\n\t\t\t\t\t\trecordChatComponent = recordChatComponent()\n\t\t\t\t\t\trecordChatComponent.$mount(recordChatComponent.$options.config.el)\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t},\n\t\t}).$mount(config.el)\n\t},\n}\n"],"names":["const","styleMapping","t","m","b","l","r","script$z","name","emits","props","stickSize","type","Number","default","parentScaleX","parentScaleY","isActive","Boolean","preventActiveBehavior","isDraggable","isResizable","aspectRatio","parentLimitation","snapToGrid","gridX","validator","val","gridY","parentW","parentH","w","String","h","minw","minh","x","y","z","dragHandle","dragCancel","sticks","Array","axis","indexOf","contentClass","required","data","fixAspectRatio","active","zIndex","parentWidth","parentHeight","left","top","right","bottom","minHeight","beforeCreate","this","stickDrag","bodyDrag","dimensionsBeforeMove","pointerX","pointerY","limits","min","max","currentStick","mounted","parentElement","$el","parentNode","clientWidth","clientHeight","$refs","container","scrollWidth","scrollHeight","domEvents","Map","move","up","deselect","forEach","cb","eventName","document","documentElement","addEventListener","querySelectorAll","setAttribute","_uid","cancelHandle","beforeDestroy","removeEventListener","methods","ev","stopPropagation","pageX","touches","pageY","delta","stickMove","bodyMove","stickUp","bodyUp","bodyDown","target","button","$emit","getAttribute","toString","preventDefault","saveDimensionsBeforeMove","calcDragLimitation","ref","width","height","newTop","newBottom","newLeft","newRight","let","alignTop","alignLeft","diffT","Math","floor","diffB","diffL","diffR","abs","assign","rectCorrectionByLimit","rect","stickDown","stick","force","calcResizeLimits","aspectFactor","round","assign$1","rectCorrectionByAspectRatio","minWidth","parentLim","aspectLimits","sideCorrectionByLimit","limit","current","value","newWidth","newHeight","deltaHeight","deltaWidth","computed","positionStyle","sizeStyle","vdrStick","stickStyle","watch","immediate","handler","newVal","oldVal","$nextTick","normalizeComponent","template","style","script","scopeId","isFunctionalTemplate","moduleIdentifier","shadowMode","createInjector","createInjectorSSR","createInjectorShadow","hook","options","render","staticRenderFns","_compiled","functional","_scopeId","context","$vnode","ssrContext","parent","__VUE_SSR_CONTEXT__","call","_registeredComponents","add","_ssrRegister","$root","$options","shadowRoot","originalRender","existing","concat","HEAD","isOldIE","navigator","test","userAgent","toLowerCase","id","css","group","media","styles","ids","Set","has","code","source","map","sources","btoa","unescape","encodeURIComponent","JSON","stringify","element","createElement","undefined","head","getElementsByTagName","appendChild","push","styleSheet","cssText","filter","join","index","size","textNode","createTextNode","nodes","childNodes","removeChild","length","insertBefore","addStyle","keepElementInWindow","correctCoordinates","coordinates","window","mixins","components","VueDragResize","Object","dragHandleClass","drag","newRect","e","computedRect","innerWidth","innerHeight","HASH_UNDEFINED","MAX_SAFE_INTEGER","argsTag","arrayTag","boolTag","dateTag","errorTag","funcTag","mapTag","numberTag","objectTag","promiseTag","regexpTag","setTag","stringTag","symbolTag","weakMapTag","arrayBufferTag","dataViewTag","reIsHostCtor","reIsUint","typedArrayTags","freeGlobal","global","freeSelf","self","root","Function","freeExports","exports","nodeType","freeModule","module","moduleExports","freeProcess","process","nodeUtil","binding","nodeIsTypedArray","isTypedArray","arraySome","array","predicate","mapToArray","result","key","setToArray","set","uid","func","transform","arrayProto","prototype","funcProto","objectProto","coreJsData","funcToString","hasOwnProperty","maskSrcKey","exec","keys","IE_PROTO","nativeObjectToString","reIsNative","RegExp","replace","Buffer","Symbol","Uint8Array","propertyIsEnumerable","splice","symToStringTag","toStringTag","nativeGetSymbols","getOwnPropertySymbols","nativeIsBuffer","isBuffer","nativeKeys","arg","DataView","getNative","Promise","WeakMap","nativeCreate","dataViewCtorString","toSource","mapCtorString","promiseCtorString","setCtorString","weakMapCtorString","symbolProto","symbolValueOf","valueOf","Hash","entries","clear","entry","ListCache","MapCache","SetCache","values","__data__","Stack","arrayLikeKeys","inherited","isArr","isArray","isArg","isArguments","isBuff","isType","skipIndexes","n","iteratee","baseTimes","isIndex","assocIndexOf","eq","baseGetTag","isOwn","tag","unmasked","getRawTag","objectToString","baseIsArguments","isObjectLike","baseIsEqual","other","bitmask","customizer","stack","object","equalFunc","objIsArr","othIsArr","objTag","getTag","othTag","objIsObj","othIsObj","isSameTag","equalArrays","byteLength","byteOffset","buffer","message","convert","isPartial","stacked","get","equalByTag","objIsWrapped","othIsWrapped","objUnwrapped","othUnwrapped","objProps","getAllKeys","objLength","othLength","skipCtor","objValue","othValue","compared","objCtor","constructor","othCtor","equalObjects","baseIsEqualDeep","baseIsNative","isObject","isMasked","isFunction","baseKeys","Ctor","proto","arrLength","seen","arrValue","othIndex","keysFunc","symbolsFunc","offset","arrayPush","baseGetAllKeys","getSymbols","getMapData","getValue","pop","hash","string","pairs","LARGE_ARRAY_SIZE","resIndex","arrayFilter","symbol","ArrayBuffer","resolve","ctorString","arguments","isLength","baseUnary","global$1","setTimeout","clearTimeout","Item","fun","run","apply","performance","now","mozNow","msNow","oNow","webkitNow","Date","devtoolHook","__VUE_DEVTOOLS_GLOBAL_HOOK__","deepCopy","obj","cache","f","hit","c","original","copy","forEachValue","fn","assert","condition","msg","Error","Module","rawModule","runtime","_children","create","_rawModule","rawState","state","prototypeAccessors","namespaced","configurable","addChild","getChild","hasChild","update","actions","mutations","getters","forEachChild","forEachGetter","forEachAction","forEachMutation","defineProperties","ModuleCollection","rawRootModule","register","path","targetModule","newModule","NODE_ENV","assertRawModule","modules","console","warn","reduce","getNamespace","namespace","this$1","slice","rawChildModule","unregister","child","isRegistered","Vue","functionAssert","expected","assertTypes","assertOptions","buf","makeAssertionMessage","Store","install","plugins","strict","_committing","_actions","_actionSubscribers","_mutations","_wrappedGetters","_modules","_modulesNamespaceMap","_subscribers","_watcherVM","_makeLocalGettersCache","store","dispatch","commit","payload","installModule","resetStoreVM","plugin","devtools","config","_devtoolHook","emit","on","targetState","replaceState","subscribe","mutation","prepend","subscribeAction","action","devtoolPlugin","prototypeAccessors$1","genericSubscribe","subs","unshift","i","resetStore","hot","oldVm","_vm","wrappedGetters","partial","defineProperty","enumerable","silent","$$state","$watch","_data","deep","sync","enableStrictMode","_withCommit","nextTick","$destroy","rootState","isRoot","error","parentState","getNestedState","moduleName","local","noNamespace","_type","_payload","_options","args","unifyObjectStyle","gettersProxy","splitPos","localType","makeLocalGetters","makeLocalContext","registerMutation","res","rootGetters","then","catch","err","registerAction","getter","rawGetter","registerGetter","_Vue","version","split","mixin","vuexInit","_init","init","$store","applyMixin","v","sub","before","all","reject","after","registerModule","preserveState","unregisterModule","delete","hasModule","hotUpdate","newOptions","committing","mapState","normalizeNamespace","states","isValidMap","normalizeMap","getModuleByNamespace","vuex","mapMutations","len","mapGetters","mapActions","createNamespacedHelpers","bind","charAt","helper","startMessage","logger","collapsed","groupCollapsed","log","endMessage","groupEnd","getFormattedTime","time","pad","getHours","getMinutes","getSeconds","getMilliseconds","num","maxLength","str","times","createLogger","stateBefore","stateAfter","transformer","mutationTransformer","mut","actionFilter","actionTransformer","act","logMutations","logActions","prevState","nextState","formattedTime","formattedMutation","formattedAction","Vuex","script$x","YfDrag","dragging","windowConfig","CONFIG","addingRoom","dragTimeout","dialogLoading","buttonClass","draggableButton","buttonSize","addBadgeClass","dialog","isOpen","setDialog","buttonCoordinates","coords","isEqual","setDragState","setButtonCoordinates","buttonAnimationClasses","amountOfNewMessages","hasCurrentRecordChat","activeRoomTypes","includes","isDetail","app","getRecordId","getDetailPreview","chatModules","some","el","roomList","crm","view","showDialog","_","addRecordRoomToChat","AppConnector","request","mode","roomType","recordId","done","updateRooms","$q","notify","position","color","translate","icon","fetchRoom","record_id","setTab","script$w","roomId","isVisible","selectUser","users","searchUsers","isValid","errorMessage","addedUsers","showPopup","hidePopup","tooltipAnchor","unpinUser","userId","removeUserFromRoom","validateParticipant","addParticipant","updateParticipants","asyncFilter","fetchPrivateRoomUnpinnedUsers","needle","label","script$v","RoomPrivateUserSelect","showAddPrivateRoom","addRoom","isValidating","newRoomId","addRoomInput","focus","validateRoomName","roomExist","room","private","addPrivateRoom","showUserSelect","user","parseInt","select","optionValue","optionLabel","debounce","selectedOption","computedOptions","hasOptionSlot","$scopedSlots","option","callbackInput","hideSelect","script$t","RoomSelect","asyncOptions","allOptions","searchDebounce","getIsVisible","fetchRoomsUnpinned","getGroupIcon","mergeDeepReactive","observable","item","shift","script$r","RoomSelectAsync","RoomUnpinButton","roomData","selectRoom","showAllRooms","isSelectRoomVisible","itemAvatarClass","showAllRoomsButton","isRoomExpanded","roomsExpanded","isSoundActive","isSoundNotification","roomSoundNotificationsOff","onRoomClick","mobileMode","setLeftPanelMobile","toggleRoomSelect","RoomPrivateInput","RoomList","filterRooms","confirm","isArchiving","isAddInputVisible","roomToArchive","arePrivateRooms","isUserModerator","creatorid","isAdmin","isHiddenOnHover","roomName","platform","is","desktop","showArchiveDialog","archive","archivePrivateRoom","recordid","toggleAddInput","script$n","showAddRoomPanel","isSelectVisible","modulesList","created","updateRoomListSelect","showRecordsModal","showRecordsList","src_module","_modal","instance","setSelectEvent","responseData","fetchRoomList","onToggleSelectRoom","script$l","RoomPrivate","RoomGroup","RoomGlobal","RoomCrm","RoomUser","roomsMap","roomComponent","toUpperCase","computedModel","leftPanelMobile","leftPanel","sort","sortByRoomName","filterRoomByName","a","participants","filterParticipants","showAddPanel","itemActionsIconSize","currentRoomData","participantsList","sortByCurrentUserMessagesName","participant","user_name","role_name","user_id","stripHtml","html","toggleEnter","setSendByEnter","sendByEnter","requestAnimationFrame","cancelAnimationFrame","getTime","o","d","Anchors","k","Category","J","Emoji","W","EmojiData","$","EmojiIndex","q","EmojiView","R","Picker","oe","Preview","Z","Search","K","Skins","X","frequently","sanitize","N","uncompress","s","localStorage","parse","setNamespace","setHandlers","setter","u","iterator","unified","non_qualified","has_img_apple","has_img_google","has_img_twitter","has_img_facebook","keywords","sheet","emoticons","text","short_names","added_in","from","TypeError","next","return","getOwnPropertyNames","freeze","p","compressed","emojis","sheet_x","sheet_y","toFixed","search","j","g","reverse","activity","custom","flags","foods","nature","objects","smileys","people","places","recent","symbols","C","_injectStyles","i18n","categories","activeCategory","svgs","$createElement","_self","_c","staticClass","attrs","role","_l","class","click","domProps","innerHTML","_s","_v","backgroundColor","E","S","writable","O","fromCodePoint","isFinite","RangeError","fromCharCode","P","A","M","I","F","L","T","emojisToShowFilter","include","exclude","recentLength","_emojisFilter","_include","_exclude","_custom","_recent","_emojis","_nativeEmojis","_emoticons","_categories","_recentCategory","_customCategory","_searchIndex","buildIndex","isCategoryNeeded","addEmoji","addCustomEmoji","hasEmoji","emoji","match","aliases","getSkin","results","substr","isEmojiNeeded","native","_skins","skin_variations","skin_tone","_sanitized","short_name","_emoji","_native","_skin","_set","_fallback","canRender","_canRender","cssClass","_cssClass","cssStyle","_cssStyle","content","_content","title","ariaLabel","_isCustom","_isNative","_hasEmoji","_emojiType","backgroundImage","getEmoji","imageUrl","backgroundSize","backgroundPosition","getPosition","fontSize","colons","skin","D","B","tooltip","fallback","H","perLine","maxSearchResults","emojiSize","defaultSkin","emojiTooltip","autoFocus","showPreview","showSearch","showCategories","showSkinTones","infiniteScroll","pickerStyles","U","getOwnPropertyDescriptor","V","getOwnPropertyDescriptors","emojiObject","sanitizedData","findEmoji","onClick","onMouseEnter","onMouseLeave","mouseenter","mouseleave","_e","emojiProps","activeClass","selectedEmoji","selectedEmojiCategory","isSearch","hasResults","emojiObjects","emojiView","onEnter","onLeave","notfound","opened","idleEmoji","skinProps","onSkinChange","emojiData","emojiShortNames","emojiEmoticons","change","G","onSearch","onArrowLeft","onArrowRight","onArrowDown","onArrowUp","emojiIndex","querySelector","directives","rawName","expression","placeholder","keydown","_k","keyCode","input","composing","Q","Y","_perLine","first","searchEmojis","previewEmoji","previewEmojiCategoryIdx","previewEmojiIdx","scroll","scrollTop","filteredCategories","getCategoryComponent","offsetTop","updatePreviewEmoji","emojisLength","offsetHeight","ee","te","ie","ne","activeSkin","customStyles","calculateWidth","previewEmojiCategory","onEmojiEnter","onEmojiLeave","onEmojiClick","overflow","body","offsetWidth","mergedI18n","firstEmoji","onScroll","waitingForPaint","onScrollPaint","onAnchorClick","re","allCategories","_t","arrowLeft","arrowRight","arrowDown","arrowUp","enter","refInFor","ChatButtonEnter","sending","emojiPanel","emojiTranslations","containerHeight","textContainer","focusInput","App","Fields","Text","Completions","registerEmojiPanelClickOutside","send","innerText","maxLengthMessage","sendMessage","showNotify","vtranslate","animation","insertAdjacentHTML","shiftKey","className","classList","contains","NoResults","fetchingEarlier","header","messageOnClick","areEntries","chatEntries","script$f","TabChatInput","TabMessages","inputSearch","isSearchActive","searching","scrollbarHidden","scrollButton","isNewMessages","scrollButtonSkip","countMessages","roomChange","roomMessages","clearScrollButton","scrollContainer","scrollPosition","forceScrollDown","scrollDown","registerMountedEvents","onResize","Quasar","utils","dom","earlierClick","fetchSearchData","showMore","fetchEarlierEntries","clearSearch","setScrollPosition","messagesContainer","scrollSize","dataReady","ChatContent","TabChatNoRoom","isSetCurrentRoom","disableNewMessagesListener","updateComponentsRoom","enableNewMessagesListener","onShowTabChatEvent","registerPostLoadEvents","chat","addActiveRoom","removeActiveRoom","script$c","unreadMessages","areUnread","unread","tempRoomName","room_name","showChatRoom","fetchUnread","historyTab","tab","tabChange","fetchHistory","groupHistory","showMoreClicked","row","dataset","messageHeader","isRoomActive","allRooms","userid","TabUnread","TabHistory","TabChat","isLoading","isWaitingForPermission","isNotificationPermitted","Notification","permission","toggleDesktopNotification","isDesktopNotification","setDesktopNotification","PNotifyDesktop","grabClass","linkClass","ChatButtonNotify","ButtonGrab","inputSearchVisible","tabHistoryShow","timerRoom","miniMode","isMini","maximize","isSmall","showTabHistory","toggleSize","$parent","remove","toggleSoundNotification","setSoundNotification","script$6","currentTab","tabChatRoomName","isChatTabRoomName","ChatPanelLeft","ChatPanelRight","ChatPanelMain","ChatHeader","ChatFooter","YfBackdrop","parentRefs","rightPanelMobile","rightPanel","setRightPanelMobile","maximized","border","minVisibleHeight","minVisibleWidth","resize","onActivated","prop","getWindowWidth","screen","availWidth","outerWidth","getWindowHeight","availHeight","outerHeight","ChatButtonDialog","ChatContainer","DragResize","dragStopped","dialogModel","setCoordinates","computedMiniMode","dialogClasses","animated","animate__slideOutDown","animate__slideInUp","startUpdatesListener","updated","initDialogModel","onDragstop","use","debug","vuexStore","genTag","reIsDeepProp","reIsPlainProp","reLeadingDot","rePropName","reEscapeChar","symbolToString","baseGet","isSymbol","isKey","stringToPath","toKey","pattern","isHostObject","memoize","baseToString","number","quote","resolver","memoized","Cache","lodash_get","defaultValue","layout","session","drawer","breakpoint","isDefaultSoundNotification","currentRoom","detailPreview","getInterval","refreshMessageTime","refreshTimeGlobal","INFINITY","thisArg","arrayIncludes","fromIndex","fromRight","baseFindIndex","baseIsNaN","baseIndexOf","arrayIncludesWith","comparator","cacheHas","spreadableSymbol","isConcatSpreadable","nativeMax","baseFlatten","depth","isStrict","isFlattenable","castPath","baseHasIn","baseIteratee","identity","srcValue","isStrictComparable","matchesStrictComparable","hasFunc","hasPath","hasIn","UNORDERED_COMPARE_FLAG","baseMatchesProperty","matchData","getMatchData","noCustomizer","baseIsMatch","baseMatches","basePropertyDeep","createSet","unionBy","start","otherArgs","baseRest","arrays","isArrayLikeObject","isCommon","outer","seenIndex","baseUniq","isArrayLike","idOpen","setLeftPanel","setRightPanel","setHistoryTab","removeRoomSoundNotificationsOff","addRoomSoundNotificationsOff","removeRoomExpanded","addRoomExpanded","setData","setPinnedRooms","rooms","mergeData","setHistoryData","history","pushSended","showMoreButton","updateActiveRooms","roomsToUpdate","newData","amount","unionby","setNewRooms","newRooms","unsetUnpinnedRooms","roomsToUnpin","pushOlderEntries","pushOlderEntriesToHistory","setSearchData","searchData","pushOlderEntriesToSearch","setAmountOfNewMessages","setAmountOfNewMessagesByRoom","unsetActiveRoom","setActiveRoom","unsetParticipant","participantId","unsetRoom","setRoom","unsetCurrentRoom","setCurrentRoom","setConfig","setDetailPreview","initStorage","chatLocalStorage","LocalStorage","getItem","chatSessionStorage","SessionStorage","baseDifference","valuesLength","arrayMap","valuesIndex","difference","lodash_difference","timer","toggleLeftPanel","newValue","toggleRightPanel","toggleRoomSoundNotification","ref$1","toggleRoomExpanded","fetchChatConfig","recordRoom","fetchRecordRoom","lastEntries","mid","Notify","textColor","unpinRoom","pinRoom","success","lastId","searchVal","notifyAboutNewMessages","lastMessage","storageKey","roomid","cacheGet","firstFetch","cacheSet","playNotificationSound","areNewMessagesForRoom","cnt_new_message","played","isSoundOn","playSound","showDesktopNotification","isDesktopPermitted","messages","roomCrumb","userName","userData","image","getMainParams","showNumberOfNewMessages","updateAmountOfNewMessages","areDifferences","initTimer","fetchNewMessages","activeRooms","areNewEntries","moduleStore","fs","isChatAllowed","refreshRoomTime","showRoleName","dynamicAddingRooms","userRoomPin","productionTip","recordChatComponent","isModuleInitialized","component","YfIcon","ChatRecordRoomVueComponent","ChatRecordRoom","mount","$mount","ChatModalVueComponent","ChatDialog","Chat"],"mappings":"yBAAAA,IAAMC,EACC,CACCC,EAAG,MACHC,EAAG,YACHC,EAAG,UAJLH,EAMC,CACCI,EAAG,OACHF,EAAG,aACHG,EAAG,SAgBI,IAAAC,EAAA,CACXC,KAAM,kBAENC,MAAO,CAAC,UAAW,WAAY,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