OwlCyberSecurity - MANAGER
Edit File: index.js.map
{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/index.js","webpack:///external {\"this\":[\"wp\",\"blockEditor\"]}","webpack:///external {\"this\":[\"wp\",\"blocks\"]}","webpack:///external {\"this\":[\"wp\",\"components\"]}","webpack:///external {\"this\":[\"wp\",\"element\"]}","webpack:///external {\"this\":[\"wp\",\"i18n\"]}","webpack:///external {\"this\":\"lodash\"}"],"names":["getFormName","id","get","find","quformBlockL10n","forms","__","registerBlockType","title","icon","keywords","attributes","type","default","name","show_title","show_description","popup","content","width","values","supports","html","category","edit","props","value","setAttributes","position","top","sprintf","save"],"mappings":";QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;;;;;;;;;;;;;;;;;;;;AClFA;AACA;AACA;AACA;AACA;AACA;;AAYA,IAAMA,WAAW,GAAG,SAAdA,WAAc,CAACC,EAAD;AAAA,SAAQC,kDAAG,CAACC,mDAAI,CAACC,eAAe,CAACC,KAAjB,EAAwB,CAAC,OAAD,EAAUJ,EAAV,CAAxB,CAAL,EAA6C,OAA7C,EAAsDK,0DAAE,CAAC,SAAD,EAAY,QAAZ,CAAxD,CAAX;AAAA,CAApB;;AAEAC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G,CADX;AAYI,WAAK,EAAEJ,KAAK,CAACd,UAAN,CAAiBS,MAZ5B;AAaI,UAAI,EAAEd,0DAAE,CAAC,oCAAD,EAAuC,QAAvC,CAbZ;AAcI,cAAQ,EAAE,kBAACoB,KAAD,EAAW;AAAED,aAAK,CAACE,aAAN,CAAoB;AAAEP,gBAAM,EAAEM;AAAV,SAApB;AAAwC;AAdnE,MAtCJ,CADJ,CADG,EA0DH,oFACKD,KAAK,CAACd,UAAN,CAAiBV,EAAjB,GACGwB,KAAK,CAACd,UAAN,CAAiBM,KAAjB,GACIa,+DAAO,CAACxB,0DAAE,CAAC,gBAAD,EAAmB,QAAnB,CAAH,EAAiCmB,KAAK,CAACd,UAAN,CAAiBG,IAAlD,CADX,GAGIgB,+DAAO,CAACxB,0DAAE,CAAC,UAAD,EAAa,QAAb,CAAH,EAA2BmB,KAAK,CAACd,UAAN,CAAiBG,IAA5C,CAJd,GAOGR,0DAAE,CAAC,wDAAD,EAA2D,QAA3D,CARV,CA1DG,CAAP;AAsEH,GAzI4B;AA2I7ByB,MAAI,EAAE;AAAA,WAAM,IAAN;AAAA;AA3IuB,CAAhB,CAAjB,C;;;;;;;;;;;ACnBA,aAAa,4CAA4C,EAAE,I;;;;;;;;;;;ACA3D,aAAa,uCAAuC,EAAE,I;;;;;;;;;;;ACAtD,aAAa,2CAA2C,EAAE,I;;;;;;;;;;;ACA1D,aAAa,wCAAwC,EAAE,I;;;;;;;;;;;ACAvD,aAAa,qCAAqC,EAAE,I;;;;;;;;;;;ACApD,aAAa,iCAAiC,EAAE,I","file":"index.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"./src/index.js\");\n","import { registerBlockType } from '@wordpress/blocks';\r\nimport { InspectorControls } from '@wordpress/block-editor';\r\nimport { __, sprintf } from '@wordpress/i18n';\r\nimport { Fragment } from '@wordpress/element';\r\nimport { find, get } from 'lodash';\r\nimport {\r\n G,\r\n Path,\r\n SVG,\r\n SelectControl,\r\n ToggleControl,\r\n TextareaControl,\r\n TextControl,\r\n Dashicon,\r\n PanelBody\r\n} from '@wordpress/components';\r\n\r\nconst getFormName = (id) => get(find(quformBlockL10n.forms, ['value', id]), 'label', __('Unknown', 'quform'));\r\n\r\nregisterBlockType('quform/form', {\r\n title: __('Form', 'quform'),\r\n\r\n icon: <SVG\r\n version=\"1.0\"\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n width=\"397.000000pt\"\r\n height=\"354.000000pt\"\r\n viewBox=\"0 0 397.000000 354.000000\"\r\n preserveAspectRatio=\"xMidYMid meet\"\r\n >\r\n <G\r\n transform=\"translate(0.000000,354.000000) scale(0.100000,-0.100000)\"\r\n fill=\"currentColor\"\r\n stroke=\"none\"\r\n >\r\n <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\" />\r\n <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\" />\r\n <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\" />\r\n <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\" />\r\n </G>\r\n </SVG>,\r\n\r\n keywords: [__('quform', 'quform')],\r\n\r\n attributes: {\r\n id: {\r\n type: 'string',\r\n default: ''\r\n },\r\n name: {\r\n type: 'string',\r\n default: ''\r\n },\r\n show_title: {\r\n type: 'boolean',\r\n default: true\r\n },\r\n show_description: {\r\n type: 'boolean',\r\n default: true\r\n },\r\n popup: {\r\n type: 'boolean',\r\n default: false\r\n },\r\n content: {\r\n type: 'string',\r\n default: ''\r\n },\r\n width: {\r\n type: 'string',\r\n default: ''\r\n },\r\n values: {\r\n type: 'string',\r\n default: ''\r\n }\r\n },\r\n\r\n supports: {\r\n html: false\r\n },\r\n\r\n category: 'widgets',\r\n\r\n edit: (props) => {\r\n return <Fragment>\r\n <InspectorControls>\r\n <PanelBody title={__('Form Settings', 'quform')}>\r\n <SelectControl\r\n label={__('Select a form', 'quform')}\r\n value={props.attributes.id}\r\n options={quformBlockL10n.forms}\r\n onChange={(value) => { props.setAttributes({ id: value, name: getFormName(value) }) }}\r\n />\r\n <ToggleControl\r\n label={__('Show form title', 'quform')}\r\n checked={props.attributes.show_title}\r\n onChange={(value) => { props.setAttributes({ show_title: value }) }}\r\n />\r\n <ToggleControl\r\n label={__('Show form description', 'quform')}\r\n checked={props.attributes.show_description}\r\n onChange={(value) => { props.setAttributes({ show_description: value }) }}\r\n />\r\n <ToggleControl\r\n label={__('Popup form', 'quform')}\r\n checked={props.attributes.popup}\r\n onChange={(value) => { props.setAttributes({ popup: value }) }}\r\n />\r\n {props.attributes.popup &&\r\n <TextareaControl\r\n label={__('Content', 'quform')}\r\n value={props.attributes.content}\r\n help={__('The text or HTML to trigger the popup, shortcodes can also be used.', 'quform')}\r\n onChange={(value) => { props.setAttributes({ content: value }) }}\r\n />\r\n }\r\n {props.attributes.popup &&\r\n <TextControl\r\n label={__('Width (optional)', 'quform')}\r\n value={props.attributes.width}\r\n help={__('The width of the popup, any CSS width or number is accepted.', 'quform')}\r\n onChange={(value) => { props.setAttributes({ width: value }) }}\r\n />\r\n }\r\n <TextareaControl\r\n label={[\r\n __('Default values (optional)', 'quform'),\r\n <a\r\n href=\"https://support.themecatcher.net/quform-wordpress-v2/guides/customization/dynamic-default-value\"\r\n target=\"_blank\"\r\n title={__('View help and examples', 'quform')}\r\n style={{ position: 'relative', top: '5px' }}\r\n >\r\n <Dashicon icon=\"editor-help\" />\r\n </a>\r\n ]}\r\n value={props.attributes.values}\r\n help={__('Sets the default values of fields.', 'quform')}\r\n onChange={(value) => { props.setAttributes({ values: value }) }}\r\n />\r\n </PanelBody>\r\n </InspectorControls>\r\n <p>\r\n {props.attributes.id ? (\r\n props.attributes.popup ? (\r\n sprintf(__('Popup Form: %s', 'quform'), props.attributes.name)\r\n ) : (\r\n sprintf(__('Form: %s', 'quform'), props.attributes.name)\r\n )\r\n ) : (\r\n __('No form selected, choose a form in the block settings.', 'quform')\r\n )}\r\n </p>\r\n </Fragment>;\r\n },\r\n\r\n save: () => null\r\n} );\r\n","(function() { module.exports = this[\"wp\"][\"blockEditor\"]; }());","(function() { module.exports = this[\"wp\"][\"blocks\"]; }());","(function() { module.exports = this[\"wp\"][\"components\"]; }());","(function() { module.exports = this[\"wp\"][\"element\"]; }());","(function() { module.exports = this[\"wp\"][\"i18n\"]; }());","(function() { module.exports = this[\"lodash\"]; }());"],"sourceRoot":""}