(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d20ef79"],{b22e:function(t,e,r){"use strict";r.r(e);var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("GridTextBox",{staticClass:"notranslate",attrs:{"data-qa":"builder-gridelement-text"},on:{dragstart:function(t){t.preventDefault()}}},[t.localEditor?r("EditorContent",{attrs:{editor:t.localEditor}}):t._e()],1)},o=[],i=r("5530"),d=(r("5319"),r("cd42")),a=r("2f62"),s=r("c7d1"),c=r("9c09"),l={components:{GridTextBox:c["a"],EditorContent:d["c"]},props:{id:{type:String,required:!0},data:{type:Object,required:!0}},setup(){const{createLocalEditor:t,setCurrentEditor:e,unsetCurrentEditor:r,localEditor:n,saveChanges:o,setCaretPositionToEnd:i}=Object(s["a"])();return{createLocalEditor:t,setCurrentEditor:e,unsetCurrentEditor:r,localEditor:n,saveChanges:o,setCaretPositionToEnd:i}},computed:Object(i["a"])(Object(i["a"])(Object(i["a"])({},Object(a["f"])(["currentElementId"])),Object(a["f"])("gui",["isElementEditMode"])),{},{isTextEditMode:({id:t,currentElementId:e,isElementEditMode:r})=>t===e&&r}),watch:{isTextEditMode(t){t?(this.setCurrentEditor(),this.setCaretPositionToEnd()):(this.saveChanges(this.id),this.unsetCurrentEditor())},"data.content":{handler(t,e){t!==e&&this.localEditor.setContent(t)}}},mounted(){this.createLocalEditor(this.id,this.data.content.replace(/
<\/p>$/,"

"))}},u=l,E=r("2877"),h=Object(E["a"])(u,n,o,!1,null,null,null);e["default"]=h.exports}}]); //# sourceMappingURL=chunk-2d20ef79.8fec502b.js.map