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YAAEJ,MAAI,CAACvH,WAAW,CAAC,CAAC;UAAG;QACvC;MAEJ,CAAC;MAAC,IAAA+H,KAAA,YAAAA,MAEShM,GAAG;QAAA,IAAAiM,qBAAA,GAEkBR,mBAAmB,CAACzL,GAAG,CAAC;UAA5C2L,SAAS,GAAAM,qBAAA,CAATN,SAAS;UAAEC,IAAI,GAAAK,qBAAA,CAAJL,IAAI;QAEvBM,CAAC,CAAC,MAAM,CAAC,CAACC,EAAE,CAAC,WAAW,EAAE,GAAG,GAACR,SAAS,EAAE,YAAI;UAEzCC,IAAI,CAAC,CAAC;QAEV,CAAC,CAAC;MAAC;MARP,KAAK,IAAM5L,GAAG,IAAIyL,mBAAmB,EAAE;QAAAO,KAAA,CAA5BhM,GAAG;MAUd;MAAC;IAEL;EAAC;EAAA,OAAAxC,gBAAA;AAAA;AAEJ","sources":["webpack://smetio/./developement/js/classes/smetioTextEditor/v1.0.0/SmetioTextEditor.js"],"sourcesContent":["//import {test_function} from \"./../functions/test_function.js\";\r\n\r\n\r\n\r\n\r\n\r\nimport {getId} from \"./../../universal_methods/getId.js\"; \r\nimport {setId} from \"./../../universal_methods/setId.js\";\r\n// import {generateId} from \"./../../universal_methods/generateId.js\";\r\n// import {isEmpty} from \"./../../universal_methods/isEmpty.js\"; \r\nimport {getAttributes} from \"./../../universal_methods/getAttributes.js\"; \r\n// import {toggleDisplay} from \"./../../universal_methods/toggleDisplay.js\"; \r\n// import {universal_handleErrorFromServer} from \"./../../universal_methods/universal_handleErrorFromServer.js\"; \r\n// import {combineSmetioAttributes} from \"./../../universal_methods/combineSmetioAttributes.js\"; \r\n// import { setTxt } from \"../../universal_methods/setTxt.js\";\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n//import \"./styles/_main.scss\";\r\n\r\nimport { setTxtV2 } from \"../../universal_methods/setTxtV2.js\";\r\nimport { isEmpty } from \"../../universal_methods/isEmpty.js\";\r\n\r\n\r\nexport class SmetioTextEditor {\r\n \r\n constructor(data = {}) {\r\n \r\n this.getId = getId;\r\n this.setId = setId;\r\n // this.generateId = generateId;\r\n this.isEmpty = isEmpty;\r\n this.getAttributes = getAttributes;\r\n // this.toggleDisplay = toggleDisplay;\r\n this.setTxt = setTxtV2;\r\n\r\n this.setId();\r\n\r\n this.primaryBtnText = data.primaryBtnText ?? \"txt299\";\r\n this.placeholder = data.attributes ? data.attributes.placeholder : data.placeholder ?? \"txt1780\";\r\n this.title = data.title ?? \"txt1781\";\r\n this.value = data.attributes ? data.attributes.value : data.value;\r\n this.showPrimaryBtn = data.showPrimaryBtn ?? false;\r\n this.isReadonly = data.attributes ? data.attributes.isReadonly : false;\r\n\r\n // console.log(\"this.value is \", this.value);\r\n\r\n this.smetioSmartbox = null;\r\n this.quill = null;\r\n this.fileUploader = null;\r\n this.files = {};\r\n\r\n this.mainClass = \"smetio-text-editor\" + this.id;\r\n this.mainAttributes = {\r\n \"data-smetio-read-only\": this.isReadonly,\r\n class: [\"smetio-text-editor\", this.mainClass],\r\n };\r\n\r\n this.containerClass = \"smetio-text-editor-container\" + this.id;\r\n this.containerAttributes = {\r\n class: [\"smetio-text-editor-container\", this.containerClass],\r\n };\r\n \r\n this.primaryBtnClass = \"smetio-text-editor-primary-btn\" + this.id;\r\n this.primaryBtnAttributes = {\r\n class: [\"smetio-text-editor-primary-btn\", this.primaryBtnClass],\r\n };\r\n\r\n this.customControlsClass = \"smetio-text-editor-custom-controls\" + this.id;\r\n this.customControlsAttributes = {\r\n \"data-smetio-read-only\": this.isReadonly,\r\n class: [\"smetio-text-editor-custom-controls\", this.customControlsClass],\r\n };\r\n \r\n \r\n this.imageCtrlBtnClass = \"smetio-text-editor-image-ctrl-btn\" + this.id;\r\n this.imageCtrlBtnAttributes = {\r\n class: [\"smetio-text-editor-ctrl\", \"smetio-text-editor-image-ctrl-btn\", this.imageCtrlBtnClass],\r\n };\r\n \r\n this.linkCtrlBtnClass = \"smetio-text-editor-link-ctrl-btn\" + this.id;\r\n this.linkCtrlBtnAttributes = {\r\n class: [\"smetio-text-editor-ctrl\", \"smetio-text-editor-link-ctrl-btn\", this.linkCtrlBtnClass],\r\n };\r\n \r\n this.unlinkCtrlBtnClass = \"smetio-text-editor-unlink-ctrl-btn\" + this.id;\r\n this.unlinkCtrlBtnAttributes = {\r\n class: [\"smetio-text-editor-ctrl\", \"smetio-text-editor-unlink-ctrl-btn\", this.unlinkCtrlBtnClass],\r\n };\r\n \r\n this.publicVideoClass = \"smetio-text-editor-video-ctrl-btn\" + this.id;\r\n this.publicVideoAttributes = {\r\n class: [\"smetio-text-editor-ctrl\", \"smetio-text-editor-video-ctrl-btn\", this.publicVideoClass],\r\n };\r\n \r\n };\r\n\r\n async getQuilljsEditor() {\r\n\r\n await import(/* webpackPrefetch: true */ \"quill/dist/quill.core.css\");\r\n await import(/* webpackPrefetch: true */ \"quill/dist/quill.snow.css\");\r\n await import(/* webpackPrefetch: true */ \"quill/dist/quill.bubble.css\");\r\n const { default: Quill } = (await import(/* webpackPrefetch: true */ \"quill\"));\r\n const { SmetioImageBlot } = (await import(/* webpackPrefetch: true */ \"../../quilljsClasses/smetioImageBlot/v1.0.0/SmetioImageBlot.js\"));\r\n const { SmetioVideoBlot } = (await import(/* webpackPrefetch: true */ \"../../quilljsClasses/smetioVideoBlot/v1.0.0/SmetioVideoBlot.js\"));\r\n\r\n const fontSizeArr = ['8px','9px','10px','12px','14px','16px','20px','24px','32px','42px','54px','68px','84px','98px'];\r\n\r\n var Size = Quill.import('attributors/style/size');\r\n Size.whitelist = fontSizeArr;\r\n Quill.register(Size, true);\r\n \r\n\r\n Quill.register(SmetioImageBlot);\r\n Quill.register(SmetioVideoBlot);\r\n\r\n let toolbarOptions = [\r\n\r\n // [\"link\", \"image\", \"video\", \"clean\"],\r\n\r\n // [{ \"header\": [1, 2, 3, 4, 5, 6, false] }, { \"size\": fontSizeArr }, { \"font\": [] }],\r\n [{ \"header\": [1, 2, 3, 4, 5, 6, false] }, {\"size\": fontSizeArr }, { \"font\": [] } ],\r\n\r\n [\"bold\", \"italic\", \"underline\", { \"color\": [] }, { \"background\": [] }, { \"list\": \"ordered\" }, { \"list\": \"bullet\" }, { \"list\": \"check\" }, { \"align\": [] }],\r\n\r\n ];\r\n\r\n if (this.isReadonly === true) toolbarOptions = [];\r\n \r\n const primaryBtnText = this.setTxt({\r\n attributes: {},\r\n txt: this.placeholder,\r\n type: \"html\"\r\n });\r\n \r\n \r\n this.quill = new Quill(`.${this.containerClass}`, {\r\n\r\n modules: { toolbar: toolbarOptions },\r\n placeholder: `${primaryBtnText}...`,\r\n theme: \"snow\",\r\n readOnly: this.isReadonly // Enable read-only mode\r\n });\r\n\r\n if(this.isReadonly !== true) this.quill.focus();\r\n // const toolbar = this.quill.getModule(\"toolbar\");\r\n // toolbar.addHandler(\"image\", ()=>{ console.log(message) $(\".\"+this.imageCtrlBtnClass).trigger(\"mousedown\"); });\r\n\r\n\r\n if(!this.isEmpty(this.value)) this.quill.setContents(this.value);\r\n\r\n // this.quill.root.innerHTML = savedHtmlContent;\r\n\r\n return true;\r\n \r\n };\r\n \r\n async displayEditor(content) {\r\n \r\n const { displaySmartboxWithPreloader } = (await import(/* webpackPrefetch: true */ \"../../../functions/display/displaySmartboxWithPreloader.js\"));\r\n \r\n const { preloader, smetioSmartbox } = await displaySmartboxWithPreloader({ title: this.title });\r\n\r\n this.smetioSmartbox = smetioSmartbox;\r\n this.preloader = preloader;\r\n\r\n this.preloader.hide();\r\n\r\n this.smetioSmartbox.updateContent(content);\r\n\r\n this.smetioSmartbox.toggleLock();\r\n\r\n return await this.getQuilljsEditor();\r\n\r\n };\r\n\r\n getCustomControls() {\r\n return `\r\n
\r\n \r\n
\r\n\r\n
\r\n \r\n
\r\n\r\n
\r\n \r\n
\r\n \r\n
\r\n \r\n
\r\n `;\r\n \r\n \r\n };\r\n\r\n render() {\r\n\r\n const primaryBtnText = this.setTxt({\r\n attributes: this.primaryBtnAttributes,\r\n txt: this.primaryBtnText,\r\n type: \"html\"\r\n });\r\n \r\n const button = `\r\n \r\n `;\r\n\r\n const primaryBtn = this.showPrimaryBtn === false ? \"\" : button;\r\n \r\n const output = `\r\n
\r\n\r\n
\r\n ${this.getCustomControls()}\r\n
\r\n\r\n
\r\n
\r\n \r\n ${primaryBtn}\r\n \r\n
\r\n `;\r\n\r\n this.events();\r\n\r\n setTimeout(() => {\r\n this.getQuilljsEditor();\r\n }, 500);\r\n\r\n return output;\r\n\r\n // return this.displayEditor(output);\r\n \r\n };\r\n\r\n getValue() { \r\n const plainText = this.quill.getText();\r\n const delta = this.quill.getContents()\r\n return JSON.stringify({plainText, delta, files:this.files});\r\n };\r\n\r\n saveChanges() {\r\n const htmlContent = this.quill.root.innerHTML;\r\n console.log('Saving Content:', htmlContent);\r\n\r\n const delta = this.quill.getContents();\r\n console.log('Delta:', delta);\r\n }\r\n\r\n async getFileUploader(data = {}) {\r\n\r\n if (this.fileUploader) return this.fileUploader.reactivate();\r\n \r\n const { SmetioFileUploader } = (await import(/* webpackPrefetch: true */ \"../../smetioFileUploader/v1.0.0/SmetioFileUploader.js\"));\r\n \r\n const { events } = data;\r\n\r\n const fileUploaderData = {\r\n subfolder: \"blogFiles\",\r\n events,\r\n validation: {\r\n\r\n expectations: {\r\n\r\n expectedFileType: {\r\n values: [\"image\"],\r\n errorText: \"\"\r\n },\r\n expectedExtensions: {\r\n values: [\"svg\", \"png\", \"jpg\", \"jpeg\"],\r\n errorText: \"\"\r\n },\r\n expectedOrientations: {\r\n values: [\"portrait\", \"landscape\", \"square\"],\r\n errorText: \"\"\r\n },\r\n expectedDimensions: {\r\n values: {\r\n width: 100, // IN px pixels\r\n height: 100 // IN px pixels\r\n },\r\n errorText: \"\"\r\n },\r\n expectedFileSizeInBytes: {\r\n values: {\r\n min: 1,\r\n max: 1048576 * 100 // 1 GB\r\n },\r\n errorText: \"\"\r\n },\r\n\r\n },\r\n\r\n minNumberOfFiles: 1,\r\n maxNumberOfFiles: 10,\r\n\r\n }\r\n };\r\n\r\n this.fileUploader = new SmetioFileUploader(fileUploaderData);\r\n this.fileUploader.render();\r\n \r\n };\r\n\r\n async getInput(data = {}) {\r\n \r\n // const { SmetioObjectToInput } = (await import(/* webpackPrefetch: true */ \"../../smetioObjectToInput/v1.0.0/SmetioObjectToInput.js\")); \r\n // const { newInputModels } = (await import(/* webpackPrefetch: true */ \"@schaniag/private\"));\r\n // const { getInputsAndButtonFromModel } = (await import(/* webpackPrefetch: true */ \"../../../functions/get/getInputsAndButtonFromModel.js\")); \r\n const { newVersionOfConvertModelToInputs } = (await import(/* webpackPrefetch: true */ \"../../universal_methods/newVersionOfConvertModelToInputs.js\"));\r\n\r\n const { instructionTitle, instructionSubtitle, submissionFunctionDetails, model } = data;\r\n // let values = data.values ?? {};\r\n\r\n // return await getInputsAndButtonFromModel({model, modelId:\"\"});\r\n\r\n \r\n\r\n return newVersionOfConvertModelToInputs({ model, withSubmitButton: true, submissionFunctionDetails, instructionTitle, instructionSubtitle });\r\n\r\n };\r\n\r\n async addImageToDocument() {\r\n const { default: Quill } = (await import(/* webpackPrefetch: true */ \"quill\"));\r\n \r\n await this.getFileUploader({\r\n events: {\r\n onFileUploaded: ({ cdnPath, fileObj }) => {\r\n\r\n console.log(\"************ fileObj is \", fileObj);\r\n const { name, type } = fileObj;\r\n this.files[name] = { name, type, cdnPath };\r\n\r\n const range = this.quill.getSelection(true);\r\n this.quill.insertText(range.index, \"\\n\", Quill.sources.USER);\r\n // this.quill.insertEmbed(range.index + 1, \"image\", {\r\n this.quill.insertEmbed(range.index + 1, \"smetioImage\", {\r\n alt: \"\",\r\n url: cdnPath\r\n }, Quill.sources.USER);\r\n \r\n this.quill.setSelection(range.index + 2, Quill.sources.SILENT);\r\n\r\n this.fileUploader.close();\r\n\r\n },\r\n },\r\n });\r\n\r\n };\r\n\r\n async addPublicVideoToDocument(data = {}) {\r\n \r\n const { displaySmartboxWithPreloader } = (await import(/* webpackPrefetch: true */ \"../../../functions/display/displaySmartboxWithPreloader.js\")); \r\n const { newInputModels } = (await import(/* webpackPrefetch: true */ \"@schaniag/private\"));\r\n \r\n const { preloader, smetioSmartbox } = await displaySmartboxWithPreloader({ title: \"txt1783\" });\r\n\r\n this.videoSmetioSmartbox = smetioSmartbox;\r\n this.videoPreloader = preloader;\r\n\r\n this.videoPreloader.hide();\r\n\r\n let submissionFunctionDetails = {\r\n\r\n predefinedFunction: async (data = {}) => {\r\n const { default: Quill } = (await import(/* webpackPrefetch: true */ \"quill\"));\r\n const { convertToEmbedUrl } = (await import(/* webpackPrefetch: true */ \"../../../functions/convert/convertToEmbedUrl.js\"));\r\n \r\n let url = model[\"videoUrl\"][\"inputClass\"].getValue(); \r\n url = convertToEmbedUrl({regularUrl: url });\r\n\r\n let range = this.quill.getSelection(true);\r\n this.quill.insertText(range.index, '\\n', Quill.sources.USER);\r\n // let url = 'https://www.youtube.com/embed/QHH3iSeDBLo?showinfo=0';\r\n this.quill.insertEmbed(range.index + 1, 'smetioVideo', url, Quill.sources.USER);\r\n this.quill.formatText(range.index + 1, 1, { height: '200', width: '100%' });\r\n this.quill.setSelection(range.index + 2, Quill.sources.SILENT);\r\n\r\n this.videoSmetioSmartbox.close();\r\n }\r\n \r\n };\r\n let values = data.values ?? {};\r\n\r\n const model = {\r\n videoUrl: newInputModels({ value: values.linkUrl, placeholder: \"https://3ack.com\", label: \"txt1373\", neededInput: \"website\", inputName: \"linkUrl\", required: true, minLength: 4, maxLength: 100, capitalizeFirstChar: false })\r\n };\r\n\r\n const content = await this.getInput({...data, instructionTitle:\"txt1783\", instructionSubtitle:\"txt1784\", submissionFunctionDetails, model});\r\n\r\n this.videoSmetioSmartbox.updateContent(content); \r\n\r\n };\r\n\r\n removeLinkFromSelectedText() {\r\n this.quill.format('link', null);\r\n };\r\n\r\n async addLinkToSelectedText(data = {}) {\r\n\r\n const { displaySmartboxWithPreloader } = (await import(/* webpackPrefetch: true */ \"../../../functions/display/displaySmartboxWithPreloader.js\"));\r\n const { newInputModels } = (await import(/* webpackPrefetch: true */ \"@schaniag/private\"));\r\n \r\n const { preloader, smetioSmartbox } = await displaySmartboxWithPreloader({ title: \"txt1782\" });\r\n\r\n this.linkSmetioSmartbox = smetioSmartbox;\r\n this.linkPreloader = preloader;\r\n\r\n this.linkPreloader.hide();\r\n let submissionFunctionDetails = {\r\n\r\n predefinedFunction: (data = {}) => {\r\n const value = model[\"linkUrl\"][\"inputClass\"].getValue();\r\n this.quill.format('link', value);\r\n this.linkSmetioSmartbox.close();\r\n }\r\n \r\n };\r\n let values = data.values ?? {};\r\n\r\n const model = {\r\n linkUrl: newInputModels({ value: values.linkUrl, placeholder: \"https://3ack.com\", label: \"txt1373\", neededInput: \"website\", inputName: \"linkUrl\", required: true, minLength: 4, maxLength: 100, capitalizeFirstChar: false })\r\n };\r\n\r\n\r\n const content = await this.getInput({...data, submissionFunctionDetails, model});\r\n\r\n this.linkSmetioSmartbox.updateContent(content);\r\n\r\n // this.smetioSmartbox.toggleLock(); \r\n\r\n \r\n };\r\n \r\n events() {\r\n\r\n const buttonsAndFunctions = {\r\n image: {\r\n classText:this.imageCtrlBtnClass,\r\n func:() => { this.addImageToDocument(); },\r\n },\r\n link: {\r\n classText:this.linkCtrlBtnClass,\r\n func: () => { this.addLinkToSelectedText(); }\r\n },\r\n unlink: {\r\n classText:this.unlinkCtrlBtnClass,\r\n func: () => { this.removeLinkFromSelectedText(); }\r\n },\r\n\r\n publicVideo: {\r\n classText:this.publicVideoClass,\r\n func: () => { this.addPublicVideoToDocument(); }\r\n }, \r\n \r\n primaryBtn: {\r\n classText:this.primaryBtnClass,\r\n func: () => { this.saveChanges(); }\r\n } \r\n \r\n };\r\n \r\n for (const key in buttonsAndFunctions) {\r\n\r\n const { classText, func } = buttonsAndFunctions[key];\r\n \r\n $(\"body\").on(\"mousedown\", \".\"+classText, ()=>{\r\n \r\n func();\r\n \r\n });\t\r\n \r\n };\r\n\r\n };\r\n\r\n};\r\n"],"names":["getId","setId","getAttributes","setTxtV2","isEmpty","SmetioTextEditor","_data$primaryBtnText","_data$placeholder","_data$title","_data$showPrimaryBtn","data","arguments","length","undefined","_classCallCheck","setTxt","primaryBtnText","placeholder","attributes","title","value","showPrimaryBtn","isReadonly","smetioSmartbox","quill","fileUploader","files","mainClass","id","mainAttributes","containerClass","containerAttributes","primaryBtnClass","primaryBtnAttributes","customControlsClass","customControlsAttributes","imageCtrlBtnClass","imageCtrlBtnAttributes","linkCtrlBtnClass","linkCtrlBtnAttributes","unlinkCtrlBtnClass","unlinkCtrlBtnAttributes","publicVideoClass","publicVideoAttributes","_createClass","key","_getQuilljsEditor","_asyncToGenerator","regeneratorRuntime","mark","_callee","_yield$import","Quill","_yield$import2","SmetioImageBlot","_yield$import3","SmetioVideoBlot","fontSizeArr","Size","toolbarOptions","wrap","_callee$","_context","prev","next","sent","whitelist","register","txt","type","concat","modules","toolbar","theme","readOnly","focus","setContents","abrupt","stop","getQuilljsEditor","apply","_displayEditor","_callee2","content","_yield$import4","displaySmartboxWithPreloader","_yield$displaySmartbo","preloader","_callee2$","_context2","hide","updateContent","toggleLock","displayEditor","_x","getCustomControls","render","_this","button","primaryBtn","output","events","setTimeout","getValue","plainText","getText","delta","getContents","JSON","stringify","saveChanges","htmlContent","root","innerHTML","console","log","_getFileUploader","_callee3","_yield$import5","SmetioFileUploader","fileUploaderData","_args3","_callee3$","_context3","reactivate","subfolder","validation","expectations","expectedFileType","values","errorText","expectedExtensions","expectedOrientations","expectedDimensions","width","height","expectedFileSizeInBytes","min","max","minNumberOfFiles","maxNumberOfFiles","getFileUploader","_getInput","_callee4","_yield$import6","newVersionOfConvertModelToInputs","instructionTitle","instructionSubtitle","submissionFunctionDetails","model","_args4","_callee4$","_context4","withSubmitButton","getInput","_addImageToDocument","_callee5","_this2","_yield$import7","_callee5$","_context5","onFileUploaded","_ref","cdnPath","fileObj","name","range","getSelection","insertText","index","sources","USER","insertEmbed","alt","url","setSelection","SILENT","close","addImageToDocument","_addPublicVideoToDocument","_callee7","_this3","_data$values","_yield$import8","_yield$import9","newInputModels","_yield$displaySmartbo2","_args7","_callee7$","_context7","videoSmetioSmartbox","videoPreloader","predefinedFunction","_predefinedFunction","_callee6","_yield$import10","_yield$import11","convertToEmbedUrl","_args6","_callee6$","_context6","regularUrl","formatText","videoUrl","linkUrl","label","neededInput","inputName","required","minLength","maxLength","capitalizeFirstChar","_objectSpread","addPublicVideoToDocument","removeLinkFromSelectedText","format","_addLinkToSelectedText","_callee8","_this4","_data$values2","_yield$import12","_yield$import13","_yield$displaySmartbo3","_args8","_callee8$","_context8","linkSmetioSmartbox","linkPreloader","addLinkToSelectedText","_this5","buttonsAndFunctions","image","classText","func","link","unlink","publicVideo","_loop","_buttonsAndFunctions$","$","on"],"sourceRoot":""}