(window.webpackJsonp=window.webpackJsonp||[]).push([[117],{1027:function(t,e,n){var content=n(1082);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(20).default)("6e64fcfd",content,!0,{sourceMap:!1})},1081:function(t,e,n){"use strict";n(1027)},1082:function(t,e,n){var o=n(19)((function(i){return i[1]}));o.push([t.i,'.editor,.editor-help{background-color:#2d2d2d!important;font-size:12px;font-family:"Roboto Mono",monospace;max-height:500px}.editor{width:500px}.editor-help .prism-editor__textarea,.editor .prism-editor__textarea{outline:none!important;outline-width:0!important;border:0!important;padding:5px}.editor-help .prism-editor__container>*,.editor .prism-editor__container>*{padding:5px}',""]),o.locals={},t.exports=o},1192:function(t,e,n){"use strict";n.r(e);var o=n(1),l=(n(4),n(26),n(103),n(71),n(63),n(80)),r=n(141),c=n(812),d={setup:function(t,e){var n=Object(o.J)(""),data=Object(o.J)("{}"),d=Object(o.J)(""),v=Object(o.J)(""),h=Object(o.J)(null),f=Object(o.J)(null),dialog=Object(o.J)(!1);return Object(o.Y)(h,(function(t){var e,o,c;f.value=null!==(e=null==t||null===(o=t.parentElement)||void 0===o||null===(c=o.parentElement)||void 0===c?void 0:c.id)&&void 0!==e?e:null,f.value&&r.a.$emit("drawflow::node::value",f.value,(function(t,e){n.value=t,data.value=e,fetch("/assets/custom-variables-code.txt").then((function(t){return t.text()})).then((function(t){var n,o;v.value=null!==(n=null===(o=t.match(/\/\* [\s\S]* *\//gm))||void 0===o?void 0:o[0])&&void 0!==n?n:"","{}"===e&&(d.value=t.replace(v.value,"").trim())})).catch((function(t){Object(l.a)(t)}))}))})),Object(o.Y)([n,data],(function(t){f.value&&(r.a.$emit("drawflow::node::update",f.value,t[0],t[1]),console.log(data.value),data.value&&(d.value=JSON.parse(data.value).value||""))})),Object(o.Y)(d,(function(t){data.value=JSON.stringify({value:t})})),{highlighterJS:c.d,item:n,value:d,help:v,pointer:h,dialog:dialog}}};d.components=Object.assign({PrismEditor:c.a},d.components);var v=d,h=(n(1081),n(45)),f=n(44),m=n.n(f),_=n(48),x=n(43),j=n(269),O=n(146),w=n(32),J=n(25),k=n(140),V=n(116),component=Object(h.a)(v,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:"pointer"},[n("v-toolbar",{attrs:{dense:"",color:"blue-grey darken-4"}},[n("v-icon",{attrs:{color:"white",left:""}},[t._v("\n      mdi-variable\n    ")]),t._v(" "),n("v-toolbar-title",{staticClass:"text-button white--text"},[t._v("\n      Set variable\n    ")])],1),t._v(" "),n("v-card",{attrs:{dark:""}},[n("v-card-text",[n("v-text-field",{attrs:{label:"Variable name",placeholder:"variableName"},scopedSlots:t._u([{key:"append",fn:function(){return[n("v-dialog",{attrs:{width:"500"},scopedSlots:t._u([{key:"activator",fn:function(e){var o=e.on,l=e.attrs;return[n("v-btn",t._g(t._b({attrs:{icon:"",dark:""}},"v-btn",l,!1),o),[n("v-icon",[t._v("mdi-help")])],1)]}}]),model:{value:t.dialog,callback:function(e){t.dialog=e},expression:"dialog"}},[t._v(" "),n("v-card",[n("v-card-text",{staticClass:"pt-4"},[n("prism-editor",{staticClass:"editor-help",attrs:{readonly:"","tab-size":4,highlight:t.highlighterJS},model:{value:t.help,callback:function(e){t.help=e},expression:"help"}})],1),t._v(" "),n("v-divider"),t._v(" "),n("v-card-actions",[n("v-spacer"),t._v(" "),n("v-btn",{attrs:{color:"primary",text:""},on:{click:function(e){t.dialog=!1}}},[t._v("\n              Close\n            ")])],1)],1)],1)]},proxy:!0}]),model:{value:t.item,callback:function(e){t.item=e},expression:"item"}}),t._v(" "),n("prism-editor",{staticClass:"editor",attrs:{"tab-size":4,highlight:t.highlighterJS},model:{value:t.value,callback:function(e){t.value=e},expression:"value"}})],1)],1)],1)}),[],!1,null,null,null);e.default=component.exports;m()(component,{VBtn:_.a,VCard:x.a,VCardActions:x.b,VCardText:x.d,VDialog:j.a,VDivider:O.a,VIcon:w.a,VSpacer:J.e,VTextField:k.a,VToolbar:V.a,VToolbarTitle:V.b})},812:function(t,e,n){"use strict";n.d(e,"d",(function(){return r})),n.d(e,"b",(function(){return d})),n.d(e,"c",(function(){return c}));var o=n(976),l=n(811);n.d(e,"a",(function(){return l.a}));n(977),n(978),n(979),n(980);var r=function(code){return Object(o.highlight)(code,o.languages.js,"javascript")},c=function(code){return Object(o.highlight)(code,o.languages.html,"html")},d=function(code){return Object(o.highlight)(code,o.languages.css,"css")}}}]);