{"version":3,"sources":["webpack:///../WCC.UI/App/components/editors/thread/text/reply/reply.scss?87e5","webpack:///../WCC.UI/App/components/editors/thread/text/reply/reply.ts","webpack:///../WCC.UI/App/components/editors/thread/text/reply/standaloneReply.html?08d4","webpack:///../WCC.UI/App/components/editors/thread/text/reply/standaloneReply.ts","webpack:///../WCC.UI/App/components/editors/thread/text/reply/reply.scss","webpack:///../WCC.UI/App/components/editors/thread/text/reply/standaloneReply.html"],"names":["api","content","__esModule","default","module","i","options","exports","locals","ReplyEditorVM","TextThreadEditorVM","constructor","config","info","storage","ctx","effects","super","mediaSize","ko","applyBindingsToNode","element","this","__decorate","injectable","__param","inject","wccModules","componentConfig","componentInfo","servicesContext","expose","focusedEditor","observable","components","preload","StandaloneReplyEditorVM","model","isActive","oReplaySuggestionRef","hasContent","pureComputed","text","length","attachments","uploads","hasFocus","textEditor","pluck","e","register","reset","_this$textEditor","blur","undefined","getState","checkIfAllowedToCancel","___CSS_LOADER_API_IMPORT___","push"],"mappings":"2IAAA,IAAIA,EAAM,EAAQ,gFACFC,EAAU,EAAQ,8JAIC,iBAFvBA,EAAUA,EAAQC,WAAaD,EAAQE,QAAUF,KAG/CA,EAAU,CAAC,CAACG,EAAOC,EAAIJ,EAAS,MAG9C,IAAIK,EAAU,CAEd,OAAiB,OACjB,WAAoB,GAEPN,EAAIC,EAASK,GAI1BF,EAAOG,QAAUN,EAAQO,QAAU,I,sxBCTnC,IAAqBC,EAArB,cAA2CC,IAGvCC,YACwCC,EACFC,EACNC,EACQC,EACRC,GAE5BC,MAAML,EAAQC,EAAMC,EAASC,EAAKC,GATtC,KAAAE,UAAY,GAWRC,EAAGC,oBAAoBP,EAAKQ,QAAS,CACjC,IAAO,CACH,gBAAgB,IAErBC,QAhBUb,EAAac,EAAA,CADjCC,cAKQC,EAAA,EAAAC,YAAOC,IAAWC,kBAClBH,EAAA,EAAAC,YAAOC,IAAWE,gBAClBJ,EAAA,EAAAC,YAAOC,IAAWb,UAClBW,EAAA,E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C,YAAOC,IAAWb,UAClBW,EAAA,EAAAC,YAAOC,IAAWG,kBAClBL,EAAA,EAAAC,YAAOC,IAAWX,WAVNoB,gB,2TCdrB7B,EADkC,EAAQ,wDAChCkD,EAA4B,IAE9BC,KAAK,CAACtD,EAAOC,EAAI,0XAA2X,KAEpZD,EAAOG,QAAUA,G,wICHjBH,EAAOG,QAFI","file":"298.35314bb3fc7025af4716.js","sourcesContent":["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!./reply.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 { IWCCStorageManager } from 'managers/iStorage';\r\nimport { EffectsContainer } from 'mixins/withEffects';\r\nimport { ServicesContext } from 'services/context';\r\nimport TextThreadEditorVM, { TextThreadEditorVMConfig } from '../textThread';\r\nimport './reply.scss';\r\n\r\n@injectable()\r\nexport default class ReplyEditorVM extends TextThreadEditorVM {\n mediaSize = 75\n\n constructor(\n @inject(wccModules.componentConfig) config: 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(config, info, storage, ctx, effects);\n\n ko.applyBindingsToNode(info.element, {\n 'css': {\n 'reply-editor': true\n }\n }, this);\n } \n}","define([\n \"!!../../../../../../node_modules/html-loader/dist/cjs.js??ref--26-1!./standaloneReply.html\", \n \"!../../../../../webpack/runtime/htmlExposer.js\"], function (content, expose) {\n content = content.__esModule ? content.default : content;\n expose(content);\n return content;\n });","import { wccModules } from 'enums/wccModules';\r\nimport { inject, injectable } from 'inversify';\r\nimport { Observable } from 'knockout';\r\nimport { IWCCStorageManager } from 'managers/iStorage';\r\nimport { EffectsContainer } from 'mixins/withEffects';\r\nimport { ServicesContext } from 'services/context';\r\nimport ReplyEditorVM from './reply';\r\nimport './standaloneReply.html';\r\nimport { TextThreadEditorVMConfig } from '../textThread';\r\n\r\nconst focusedEditor: Observable = ko.observable();\r\n\r\ncomponents.preload('reply-suggestion');\r\ncomponents.preload('open-ai-completion');\r\n\r\n@injectable()\r\nexport default class StandaloneReplyEditorVM extends ReplyEditorVM {\r\n isActive = ko.observable(false);\r\n\r\n oReplaySuggestionRef = ko.observable(null);\r\n\r\n constructor(\r\n @inject(wccModules.componentConfig) model: TextThreadEditorVMConfig,\r\n @inject(wccModules.componentInfo) info: ko.components.ComponentInfo,\r\n @inject(wccModules.storage) storage: IWCCStorageManager,\r\n @inject(wccModules.servicesContext) ctx: ServicesContext,\r\n @inject(wccModules.effects) effects: EffectsContainer\r\n ) {\r\n super(model, info, storage, ctx, effects);\r\n\r\n const hasContent = ko.pureComputed(() => this.text().length > 0 || this.attachments().length > 0 || this.uploads().length > 0);\r\n const hasFocus = this.textEditor.pluck(e => e.hasFocus, false);\r\n\r\n effects.register((hasFocus: boolean) => {\r\n if (hasFocus)\r\n focusedEditor(this);\r\n }, [hasFocus]);\r\n\r\n effects.register((focusedEditor, hasContent) => {\r\n this.isActive(focusedEditor === this || hasContent);\r\n }, [focusedEditor, hasContent]);\r\n\r\n ko.applyBindingsToNode(info.element, {\r\n 'css': {\r\n 'reply-editor-standalone': true\r\n }\r\n }, this);\r\n }\r\n\r\n protected override reset() {\r\n super.reset();\r\n\r\n this.textEditor()?.blur();\r\n\r\n if (focusedEditor() === this)\r\n focusedEditor(undefined);\r\n }\r\n\r\n protected override getState() {\r\n if (this.isActive())\r\n return super.getState();\r\n\r\n return {};\r\n }\r\n\r\n protected override checkIfAllowedToCancel() {\r\n return super.checkIfAllowedToCancel() || this.isActive();\r\n }\r\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, \".reply-editor{display:block;position:relative}.reply-editor wcc-droparea{min-height:50px !important}.reply-editor wcc-droparea .droparea-label{font-size:18px;white-space:nowrap}.reply-editor wcc-droparea .droparea-label p{display:inline-block;line-height:50px;margin-bottom:0;margin-right:10px}.reply-editor wcc-droparea .droparea-label .glyphicons{font-size:30px !important}\", \"\"]);\n// Exports\nmodule.exports = exports;\n","// Module\nvar code = \"\";\n// Exports\nmodule.exports = code;"],"sourceRoot":""}