OwlCyberSecurity - MANAGER
Edit File: index.js
!function(t){var e={};function o(n){if(e[n])return e[n].exports;var r=e[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,o),r.l=!0,r.exports}o.m=t,o.c=e,o.d=function(t,e,n){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)o.d(n,r,function(e){return t[e]}.bind(null,r));return n},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="",o(o.s=6)}([function(t,e){!function(){t.exports=this.wp.element}()},function(t,e){!function(){t.exports=this.wp.i18n}()},function(t,e){!function(){t.exports=this.wp.components}()},function(t,e){!function(){t.exports=this.lodash}()},function(t,e){!function(){t.exports=this.wp.blocks}()},function(t,e){!function(){t.exports=this.wp.blockEditor}()},function(t,e,o){"use strict";o.r(e);var n=o(0),r=o(4),c=o(5),l=o(1),u=o(3),i=o(2);Object(r.registerBlockType)("quform/form",{title:Object(l.__)("Form","quform"),icon:Object(n.createElement)(i.SVG,{version:"1.0",xmlns:"http://www.w3.org/2000/svg",width:"397.000000pt",height:"354.000000pt",viewBox:"0 0 397.000000 354.000000",preserveAspectRatio:"xMidYMid meet"},Object(n.createElement)(i.G,{transform:"translate(0.000000,354.000000) scale(0.100000,-0.100000)",fill:"currentColor",stroke:"none"},Object(n.createElement)(i.Path,{d:"M1660 3530 c-548 -67 -1036 -347 -1337 -768 -146 -204 -244 -433 -295 -687 -32 -160 -32 -451 0 -614 157 -784 810 -1360 1644 -1450 136 -15 2208 -15 2241 0 53 24 57 47 57 304 0 257 -4 280 -57 304 -16 7 -128 11 -319 11 l-295 0 67 83 c226 277 344 569 376 929 19 224 -6 432 -82 659 -206 622 -766 1089 -1450 1210 -131 24 -428 33 -550 19z m400 -635 c135 -21 230 -49 346 -104 139 -67 244 -140 344 -240 451 -454 449 -1114 -5 -1566 -467 -465 -1243 -473 -1726 -18 -148 140 -275 352 -326 548 -22 87 -26 120 -26 255 0 136 4 168 27 255 46 174 144 355 268 490 272 297 692 443 1098 380z"}),Object(n.createElement)(i.Path,{d:"M1255 2341 c-11 -5 -31 -21 -45 -36 -22 -23 -25 -36 -25 -96 0 -64 2 -71 33 -101 l32 -33 660 0 660 0 32 33 c31 30 33 37 33 102 0 65 -2 72 -33 102 l-32 33 -648 2 c-356 1 -656 -2 -667 -6z"}),Object(n.createElement)(i.Path,{d:"M1255 1901 c-11 -5 -31 -21 -45 -36 -22 -23 -25 -36 -25 -96 0 -64 2 -71 33 -101 l32 -33 405 0 405 0 32 33 c31 30 33 37 33 102 0 65 -2 72 -33 102 l-32 33 -393 2 c-215 1 -401 -2 -412 -6z"}),Object(n.createElement)(i.Path,{d:"M1255 1461 c-11 -5 -31 -21 -45 -36 -22 -23 -25 -36 -25 -96 0 -64 2 -71 33 -101 l32 -33 165 0 165 0 32 33 c31 30 33 37 33 102 0 65 -2 72 -33 102 l-32 33 -153 2 c-83 1 -161 -1 -172 -6z"}))),keywords:[Object(l.__)("quform","quform")],attributes:{id:{type:"string",default:""},name:{type:"string",default:""},show_title:{type:"boolean",default:!0},show_description:{type:"boolean",default:!0},popup:{type:"boolean",default:!1},content:{type:"string",default:""},width:{type:"string",default:""},values:{type:"string",default:""}},supports:{html:!1},category:"widgets",edit:function(t){return Object(n.createElement)(n.Fragment,null,Object(n.createElement)(c.InspectorControls,null,Object(n.createElement)(i.PanelBody,{title:Object(l.__)("Form Settings","quform")},Object(n.createElement)(i.SelectControl,{label:Object(l.__)("Select a form","quform"),value:t.attributes.id,options:quformBlockL10n.forms,onChange:function(e){var o;t.setAttributes({id:e,name:(o=e,Object(u.get)(Object(u.find)(quformBlockL10n.forms,["value",o]),"label",Object(l.__)("Unknown","quform")))})}}),Object(n.createElement)(i.ToggleControl,{label:Object(l.__)("Show form title","quform"),checked:t.attributes.show_title,onChange:function(e){t.setAttributes({show_title:e})}}),Object(n.createElement)(i.ToggleControl,{label:Object(l.__)("Show form description","quform"),checked:t.attributes.show_description,onChange:function(e){t.setAttributes({show_description:e})}}),Object(n.createElement)(i.ToggleControl,{label:Object(l.__)("Popup form","quform"),checked:t.attributes.popup,onChange:function(e){t.setAttributes({popup:e})}}),t.attributes.popup&&Object(n.createElement)(i.TextareaControl,{label:Object(l.__)("Content","quform"),value:t.attributes.content,help:Object(l.__)("The text or HTML to trigger the popup, shortcodes can also be used.","quform"),onChange:function(e){t.setAttributes({content:e})}}),t.attributes.popup&&Object(n.createElement)(i.TextControl,{label:Object(l.__)("Width (optional)","quform"),value:t.attributes.width,help:Object(l.__)("The width of the popup, any CSS width or number is accepted.","quform"),onChange:function(e){t.setAttributes({width:e})}}),Object(n.createElement)(i.TextareaControl,{label:[Object(l.__)("Default values (optional)","quform"),Object(n.createElement)("a",{href:"https://support.themecatcher.net/quform-wordpress-v2/guides/customization/dynamic-default-value",target:"_blank",title:Object(l.__)("View help and examples","quform"),style:{position:"relative",top:"5px"}},Object(n.createElement)(i.Dashicon,{icon:"editor-help"}))],value:t.attributes.values,help:Object(l.__)("Sets the default values of fields.","quform"),onChange:function(e){t.setAttributes({values:e})}}))),Object(n.createElement)("p",null,t.attributes.id?t.attributes.popup?Object(l.sprintf)(Object(l.__)("Popup Form: %s","quform"),t.attributes.name):Object(l.sprintf)(Object(l.__)("Form: %s","quform"),t.attributes.name):Object(l.__)("No form selected, choose a form in the block settings.","quform")))},save:function(){return null}})}]);