index.js.map 9.5 KB

1
  1. {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/index.js","webpack:///external [\"wp\",\"components\"]","webpack:///external [\"wp\",\"data\"]","webpack:///external [\"wp\",\"editPost\"]","webpack:///external [\"wp\",\"element\"]","webpack:///external [\"wp\",\"i18n\"]","webpack:///external [\"wp\",\"plugins\"]"],"names":["PluginMetaFields_media_url","props","__","text_metafield","value","onMetaFieldChange_media_url","PluginMetaFields_poster_image_url","text_metafield_poster_image_url","onMetaFieldChange_poster_image_url","withSelect","select","getEditedPostAttribute","withDispatch","dispatch","editPost","meta","dwp23_media_url_meta","text_metafield_featured_image_url","dwp23_poster_url_meta","registerPlugin","icon","render"],"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;;AAEA,IAAIA,0BAA0B,GAAG,oCAACC,KAAD,EAAW;AAC3C,SACA,4IACC,yEAAC,+DAAD;AACC,SAAK,EAAEC,0DAAE,CAAC,WAAD,EAAc,YAAd,CADV;AAEC,QAAI,EAAC,cAFN;AAGC,cAAU,EAAG;AAHd,KAKA,yEAAC,iEAAD;AACC,SAAK,EAAED,K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D,EAAY;AAAE,SAAO;AACpBO,qCAAiC,EAAEP,MAAM,CAAC,aAAD,CAAN,CAAsBC,sBAAtB,CAA6C,MAA7C,EAAqD,uBAArD;AADf,GAAP;AAGd,CAJ6C,CAAV,CAIjCL,iCAJiC,CAApC;AAMAA,iCAAiC,GAAGM,oEAAY,CAC/C,UAACC,QAAD,EAAc;AAAE,SAAO;AACtBL,sCAAkC,EAAE,4CAACJ,KAAD,EAAW;AAC9CS,cAAQ,CAAC,aAAD,CAAR,CAAwBC,QAAxB,CAAiC;AAACC,YAAI,EAAE;AAACG,+BAAqB,EAAEd;AAAxB;AAAP,OAAjC;AACA;AAHqB,GAAP;AAKhB,CAN+C,CAAZ,CAMjCE,iCANiC,CAApC;AASAa,yEAAc,CAAE,mBAAF,EAAuB;AACpCC,MAAI,EAAE,uBAD8B;AAEpCC,QAAM,EAAE,kBAAM;AAAE,WACf,4IACA,yEAAC,8EAAD;AACA,YAAM,EAAC;AADP,OAGCnB,0DAAE,CAAC,cAAD,EAAiB,YAAjB,CAHH,CADA,EAMA,yEAAC,kEAAD;AACA,UAAI,EAAC,mBADL;AAEA,WAAK,EAAEA,0DAAE,CAAC,WAAD,EAAc,YAAd;AAFT,OAIA,yEAAC,0BAAD,OAJA,EAKA,yEAAC,iCAAD,OALA,CANA,CADe;AAed;AAjBkC,CAAvB,CAAd,C;;;;;;;;;;;ACzEA,aAAa,6CAA6C,EAAE,I;;;;;;;;;;;ACA5D,aAAa,uCAAuC,EAAE,I;;;;;;;;;;;ACAtD,aAAa,2CAA2C,EAAE,I;;;;;;;;;;;ACA1D,aAAa,0CAA0C,EAAE,I;;;;;;;;;;;ACAzD,aAAa,uCAAuC,EAAE,I;;;;;;;;;;;ACAtD,aAAa,0CAA0C,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 { registerPlugin } from \"@wordpress/plugins\";\nimport { PluginSidebar, PluginSidebarMoreMenuItem } from \"@wordpress/edit-post\";\nimport { __ } from \"@wordpress/i18n\";\nimport { PanelBody, TextControl, TextareaControl } from \"@wordpress/components\";\nimport { withSelect, withDispatch } from \"@wordpress/data\";\n\nlet PluginMetaFields_media_url = (props) => {\n\treturn (\n\t<>\n\t\t<PanelBody\n\t\t\ttitle={__(\"Media URL\", \"textdomain\")}\n\t\t\ticon=\"format-video\"\n\t\t\tintialOpen={ true }\n\t\t>\n\t\t<TextControl\n\t\t\tvalue={props.text_metafield}\n\t\t\tlabel={__(\"video for meta\", \"textdomain\")}\n\t\t\thelp=\"( postmeta: dwp23_media_meta_url )\"\n\t\t\tonChange={(value) => props.onMetaFieldChange_media_url(value)}\n\t\t/>\n\t\t</PanelBody>\n\t</>\n\t)\n}\n\nlet PluginMetaFields_poster_image_url = (props) => {\n\treturn (\n\t<>\n\t\t<PanelBody\n\t\t\ttitle={__(\"Poster Image URL\", \"textdomain\")}\n\t\t\ticon=\"format-image\"\n\t\t\tintialOpen={ true }\n\t\t>\n\t\t<TextControl\n\t\t\tvalue={props.text_metafield_poster_image_url}\n\t\t\tlabel={__(\"image for video poster\", \"textdomain\")}\n\t\t\thelp=\"( postmeta: dwp23_image_meta_url )\"\n\t\t\tonChange={(value) => props.onMetaFieldChange_poster_image_url(value)}\n\t\t/>\n\t\t</PanelBody>\n\t</>\n\t)\n}\n\n\nPluginMetaFields_media_url = withSelect(\n\t(select) => { return {\n\t\ttext_metafield: select('core/editor').getEditedPostAttribute('meta')['dwp23_media_url_meta']}\n})(PluginMetaFields_media_url);\n\nPluginMetaFields_media_url = withDispatch(\n\t(dispatch) => { return {\n\t\tonMetaFieldChange_media_url: (value) => {\n\t\t\tdispatch('core/editor').editPost({meta: {dwp23_media_url_meta: value}})\n\t\t}\n\t}\n})(PluginMetaFields_media_url);\n\nPluginMetaFields_poster_image_url = withSelect(\n\t(select) => { return {\n\t\ttext_metafield_featured_image_url: select('core/editor').getEditedPostAttribute('meta')['dwp23_poster_url_meta']\n\t}\n})(PluginMetaFields_poster_image_url);\n\nPluginMetaFields_poster_image_url = withDispatch(\n\t(dispatch) => { return {\n\t\tonMetaFieldChange_poster_image_url: (value) => {\n\t\t\tdispatch('core/editor').editPost({meta: {dwp23_poster_url_meta: value}})\n\t\t}\n\t}\n})(PluginMetaFields_poster_image_url);\n\n\nregisterPlugin( 'dwp-guten-sidebar', {\n\ticon: 'welcome-widgets-menus',\n\trender: () => { return (\n\t\t<>\n\t\t<PluginSidebarMoreMenuItem\n\t\ttarget=\"dwp-guten-sidebar\"\n\t\t>\n\t\t{__('Meta Options', 'textdomain')}\n\t\t</PluginSidebarMoreMenuItem>\n\t\t<PluginSidebar\n\t\tname=\"dwp-guten-sidebar\"\n\t\ttitle={__('Post Meta', 'textdomain')}\n\t\t>\n\t\t<PluginMetaFields_media_url />\n\t\t<PluginMetaFields_poster_image_url />\n\t\t</PluginSidebar>\n\t\t</>\n\t)}\n})","(function() { module.exports = window[\"wp\"][\"components\"]; }());","(function() { module.exports = window[\"wp\"][\"data\"]; }());","(function() { module.exports = window[\"wp\"][\"editPost\"]; }());","(function() { module.exports = window[\"wp\"][\"element\"]; }());","(function() { module.exports = window[\"wp\"][\"i18n\"]; }());","(function() { module.exports = window[\"wp\"][\"plugins\"]; }());"],"sourceRoot":""}