{"version":3,"sources":["webpack:///../WCC.UI/App/components/editors/thread/text/comment/comment.ts","webpack:///../WCC.UI/App/components/editors/thread/text/comment/inlineComment.html?07e4","webpack:///../WCC.UI/App/components/editors/thread/text/comment/inlineComment.scss?6a6a","webpack:///../WCC.UI/App/components/editors/thread/text/comment/inlineComment.ts","webpack:///../WCC.UI/App/components/editors/thread/text/comment/inlineComment.scss","webpack:///../WCC.UI/App/components/editors/thread/text/comment/inlineComment.html"],"names":["CommentEditorVM","TextThreadEditorVM","constructor","model","info","storage","ctx","effects","super","checkIfShouldAutoSave","this","isReady","videoMode","isEditMode","isReplyEditor","isCaptionEditorNeeded","videos","length","__decorate","injectable","__param","inject","wccModules","componentConfig","componentInfo","servicesContext","content","expose","__esModule","default","api","module","i","options","exports","locals","components","preload","InlineCommentEditorVM","mediaSize","createDate","ko","pureComputed","_this$thread","thread","createDateLabel","mapNotNull","date","moment","fromNow","applyBindingsToNode","element","___CSS_LOADER_API_IMPORT___","push"],"mappings":"mwBAQA,IAAqBA,EAArB,cAA6CC,IACzCC,YACwCC,EACFC,EACNC,EACQC,EACRC,GAE5BC,MAAML,EAAOC,EAAMC,EAASC,EAAKC,GAGlBE,wBACf,OAAOD,MAAMC,yBACTC,KAAKC,WACLD,KAAKE,cACJF,KAAKG,eACLH,KAAKI,kBACLJ,KAAKK,yBACNL,KAAKM,SAASC,OAAS,IAlBdjB,EAAekB,EAAA,CADnCC,cAGQC,EAAA,EAAAC,YAAOC,IAAWC,kBAClBH,EAAA,EAAAC,YAAOC,IAAWE,gBAClBJ,EAAA,EAAAC,YAAOC,IAAWjB,UAClBe,EAAA,EAAAC,YAAOC,IAAWG,kBAClBL,EAAA,EAAAC,YAAOC,IAAWf,WANNP,U,0FCRrB,UAAO,CACC,6HACA,wDAIC,KAJkD,EAAF,SAAY0B,EAASC,GAGlE,OADAA,EADAD,EAAUA,EAAQE,WAAaF,EAAQG,QAAUH,GAE1CA,GACV,4B,0FCNT,IAAII,EAAM,EAAQ,gFACFJ,EAAU,EAAQ,wKAIC,iBAFvBA,EAAUA,EAAQE,WAAaF,EAAQG,QAAUH,KAG/CA,EAAU,CAAC,CAACK,EAAOC,EAAIN,EAAS,MAG9C,IAAIO,EAAU,CAEd,OAAiB,OACjB,WAAoB,GAEPH,EAAIJ,EAASO,GAI1BF,EAAOG,QAAUR,EAAQS,QAAU,I,s4BCPnCC,EAAWC,QAAQ,4BAGnB,IAAqBC,EAArB,cAAmDtC,IAK/CE,YACwCC,EACFC,EACNC,EACQC,EACRC,GAE5BC,MAAML,EAAOC,EAAMC,EAASC,EAAKC,GAXrC,KAAAgC,UAAY,IAaR,MAAMC,EAAaC,EAAGC,aAAa,SAAAC,EAAA,OAAmB,OAAnBA,EAAMjC,KAAKkC,eAAQ,EAAbD,EAAeH,eACxD9B,KAAKmC,gBAAkBL,EAAWM,WAAWC,GAAQC,EAAOD,GAAME,WAElER,EAAGS,oBAAoB9C,EAAK+C,QAAS,CACjC,IAAO,CACH,yBAAyB,IAE9BzC,QArBU4B,EAAqBpB,EAAA,CADzCC,cAOQC,EAAA,EAAAC,YAAOC,IAAWC,kBAClBH,EAAA,EAAAC,YAAOC,IAAWE,gBAClBJ,EAAA,EAAAC,YAAOC,IAAWjB,UAClBe,EAAA,EAAAC,YAAOC,IAAWG,kBAClBL,EAAA,EAAAC,YAAOC,IAAWf,WAVN+B,gB,kXCZrBJ,EADkC,EAAQ,wDAChCkB,EAA4B,IAE9BC,KAAK,CAACtB,EAAOC,EAAI,mPAAoP,KAE7QD,EAAOG,QAAUA,G,wICHjBH,EAAOG,QAFI","file":"293.c955b81ac37c3233399b.js","sourcesContent":["import { wccModules } from 'enums/wccModules';\r\nimport { inject, injectable } from 'inversify';\r\nimport { IWCCStorageManager } from 'managers/iStorage';\r\nimport { EffectsContainer } from 'mixins/withEffects';\r\nimport { ServicesContext } from 'services/context';\r\nimport TextThreadEditorVM, { TextThreadEditorVMConfig } from '../textThread';\r\n\r\n@injectable()\r\nexport default class CommentEditorVM extends TextThreadEditorVM {\n    constructor(\n        @inject(wccModules.componentConfig) model: TextThreadEditorVMConfig,\n        @inject(wccModules.componentInfo) info: ko.components.ComponentInfo,\n        @inject(wccModules.storage) storage: IWCCStorageManager,\n        @inject(wccModules.servicesContext) ctx: ServicesContext,\n        @inject(wccModules.effects) effects: EffectsContainer\n    ) {\n        super(model, info, storage, ctx, effects);\n    }\n\n    protected override checkIfShouldAutoSave() {\n        return super.checkIfShouldAutoSave() ||\n            this.isReady() &&\n            this.videoMode() &&\n            !this.isEditMode() &&\n            !this.isReplyEditor() &&\n            !this.isCaptionEditorNeeded() &&\n            this.videos().length > 0;\n    }\n}","define([\n        \"!!../../../../../../node_modules/html-loader/dist/cjs.js??ref--26-1!./inlineComment.html\", \n        \"!../../../../../webpack/runtime/htmlExposer.js\"], function (content, expose) {\n            content = content.__esModule ? content.default : content;\n            expose(content);\n            return content;\n        });","var api = require(\"!../../../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\");\n            var content = require(\"!!../../../../../../node_modules/css-loader/dist/cjs.js!../../../../../../node_modules/sass-loader/dist/cjs.js!./inlineComment.scss\");\n\n            content = content.__esModule ? content.default : content;\n\n            if (typeof content === 'string') {\n              content = [[module.id, content, '']];\n            }\n\nvar options = {};\n\noptions.insert = \"head\";\noptions.singleton = false;\n\nvar update = api(content, options);\n\n\n\nmodule.exports = content.locals || {};","import { wccModules } from 'enums/wccModules';\r\nimport { inject, injectable } from 'inversify';\r\nimport { PureComputed } from 'knockout';\r\nimport { IWCCStorageManager } from 'managers/iStorage';\r\nimport { EffectsContainer } from 'mixins/withEffects';\r\nimport { ServicesContext } from 'services/context';\r\nimport { TextThreadEditorVMConfig } from '../textThread';\r\nimport CommentEditorVM from './comment';\r\nimport './inlineComment.html';\r\nimport './inlineComment.scss';\r\n\ncomponents.preload('topic-usercontent-inline');\n\n@injectable()\nexport default class InlineCommentEditorVM extends CommentEditorVM {\n    mediaSize = 100\n\n    createDateLabel: PureComputed<string | undefined>\n\n    constructor(\n        @inject(wccModules.componentConfig) model: TextThreadEditorVMConfig,\n        @inject(wccModules.componentInfo) info: ko.components.ComponentInfo,\n        @inject(wccModules.storage) storage: IWCCStorageManager,\n        @inject(wccModules.servicesContext) ctx: ServicesContext,\n        @inject(wccModules.effects) effects: EffectsContainer\n    ) {\n        super(model, info, storage, ctx, effects);\n\n        const createDate = ko.pureComputed(() => this.thread()?.createDate())\n        this.createDateLabel = createDate.mapNotNull(date => moment(date).fromNow());\n\n        ko.applyBindingsToNode(info.element, {\n            'css': {\n                'comment-editor-inline': true\n            }\n        }, this);\n    }\n}","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../../../node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \".comment-editor-inline{display:block;position:relative}.comment-editor-inline .thread-editor-visibility-options{border-top:1px solid #c6c6c6}.comment-editor-inline .thread-editor-visibility-options .select2-selection{border:none !important}\", \"\"]);\n// Exports\nmodule.exports = exports;\n","// Module\nvar code = \"<script id=\\\"wcc-components-comment-editor-inline\\\" type=\\\"text/template\\\">\\r\\n    <topic-usercontent-inline params=\\\"topicId: topicId, person: threadOwner, ready: isReady, busy: isSaving\\\">\\r\\n        <form-info>\\r\\n            <div class=\\\"topic-usercontent-inline__secondary\\\" data-bind=\\\"text: createDateLabel\\\"></div>\\r\\n        </form-info>\\r\\n\\r\\n        <form-body>\\r\\n            <thread-editor-text-body params=\\\"editor: $component, mediaSize: mediaSize\\\"></thread-editor-text-body>\\r\\n\\r\\n            <thread-editor-visibility-options params=\\\"editor: $component\\\"></thread-editor-visibility-options>            \\r\\n        </form-body>\\r\\n\\r\\n        <form-footer>\\r\\n            <thread-editor-text-inline-footer params=\\\"editor: $component\\\"></thread-editor-text-inline-footer>\\r\\n        </form-footer>\\r\\n    </topic-usercontent-inline>\\r\\n</script>\";\n// Exports\nmodule.exports = code;"],"sourceRoot":""}