Version Description
Download this release
Release Info
Developer | Asif2BD |
Plugin | EmbedPress – Embed Google Docs, YouTube, Maps, Vimeo, Wistia Videos & Upload PDF, PPT in Gutenberg & Elementor |
Version | 2.5.0 |
Comparing to | |
See all releases |
Code changes from version 2.4.1 to 2.5.0
- EmbedPress/Elementor/Embedpress_Elementor_Integration.php +55 -0
- EmbedPress/Elementor/Widgets/Embedpress_Elementor.php +137 -0
- EmbedPress/Providers/GoogleMaps.php +1 -1
- Gutenberg/dist/blocks.build.js +1 -494
- Gutenberg/dist/blocks.editor.build.css +0 -96
- Gutenberg/dist/blocks.style.build.css +0 -88
- Gutenberg/package-lock.json +30 -11
- Gutenberg/src/google-docs/index.js +1 -1
- Gutenberg/src/google-drawings/index.js +2 -2
- Gutenberg/src/google-forms/index.js +2 -2
- Gutenberg/src/google-maps/edit.js +6 -6
- Gutenberg/src/google-maps/index.js +2 -2
- Gutenberg/src/google-sheets/index.js +2 -2
- Gutenberg/src/google-slides/index.js +2 -2
- Gutenberg/src/twitch/index.js +2 -2
- Gutenberg/src/wistia/index.js +1 -1
- assets/css/embedpress-elementor.css +42 -0
- embedpress.php +7 -3
- includes.php +2 -2
- readme.txt +5 -1
EmbedPress/Elementor/Embedpress_Elementor_Integration.php
ADDED
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
namespace EmbedPress\Elementor;
|
4 |
+
|
5 |
+
|
6 |
+
(defined( 'ABSPATH' )) or die( "No direct script access allowed." );
|
7 |
+
|
8 |
+
class Embedpress_Elementor_Integration {
|
9 |
+
|
10 |
+
/**
|
11 |
+
* @since 2.4.2
|
12 |
+
*/
|
13 |
+
public function init() {
|
14 |
+
add_action( 'elementor/frontend/after_enqueue_styles', [ $this, 'embedpress_enqueue_style' ] );
|
15 |
+
add_action( 'elementor/elements/categories_registered', array( $this, 'register_widget_categories' ) );
|
16 |
+
add_action( 'elementor/widgets/widgets_registered', array( $this, 'register_widget' ) );
|
17 |
+
}
|
18 |
+
|
19 |
+
/**
|
20 |
+
* Add elementor category
|
21 |
+
*
|
22 |
+
* @since 2.4.3
|
23 |
+
*/
|
24 |
+
public function register_widget_categories( $elements_manager ) {
|
25 |
+
$elements_manager->add_category(
|
26 |
+
'embedpress',
|
27 |
+
[
|
28 |
+
'title' => __( 'EmbedPress', 'embedpress' ),
|
29 |
+
'icon' => 'font',
|
30 |
+
], 1 );
|
31 |
+
}
|
32 |
+
|
33 |
+
/**
|
34 |
+
* Load elementor widget
|
35 |
+
*
|
36 |
+
* @since 2.4.2
|
37 |
+
*/
|
38 |
+
public function register_widget( $widgets_manager ) {
|
39 |
+
$widgets_manager->register_widget_type( new \EmbedPress\Elementor\Widgets\Embedpress_Elementor );
|
40 |
+
}
|
41 |
+
|
42 |
+
/**
|
43 |
+
* Enqueue elementor assets
|
44 |
+
* @since 2.4.3
|
45 |
+
*/
|
46 |
+
public function embedpress_enqueue_style(){
|
47 |
+
wp_enqueue_style(
|
48 |
+
'embedpress-elementor-css',
|
49 |
+
EMBEDPRESS_URL_ASSETS . 'css/embedpress-elementor.css',
|
50 |
+
false,
|
51 |
+
EMBEDPRESS_VERSION
|
52 |
+
);
|
53 |
+
}
|
54 |
+
|
55 |
+
}
|
EmbedPress/Elementor/Widgets/Embedpress_Elementor.php
ADDED
@@ -0,0 +1,137 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
namespace EmbedPress\Elementor\Widgets;
|
4 |
+
|
5 |
+
|
6 |
+
use \Elementor\Controls_Manager as Controls_Manager;
|
7 |
+
use \Elementor\Group_Control_Css_Filter;
|
8 |
+
use \Elementor\Widget_Base as Widget_Base;
|
9 |
+
use \EmbedPress\Shortcode;
|
10 |
+
|
11 |
+
(defined( 'ABSPATH' )) or die( "No direct script access allowed." );
|
12 |
+
|
13 |
+
class Embedpress_Elementor extends Widget_Base {
|
14 |
+
|
15 |
+
public function get_name() {
|
16 |
+
return 'embedpres_elementor';
|
17 |
+
}
|
18 |
+
|
19 |
+
public function get_title() {
|
20 |
+
return esc_html__( 'EmbedPress', 'embedoress' );
|
21 |
+
}
|
22 |
+
|
23 |
+
public function get_categories() {
|
24 |
+
return [ 'embedpress' ];
|
25 |
+
}
|
26 |
+
|
27 |
+
public function get_custom_help_url() {
|
28 |
+
return 'https://embedpress.com/documentation';
|
29 |
+
}
|
30 |
+
|
31 |
+
public function get_icon() {
|
32 |
+
return 'eicon-frame-expand';
|
33 |
+
}
|
34 |
+
|
35 |
+
/**
|
36 |
+
* Get widget keywords.
|
37 |
+
*
|
38 |
+
* Retrieve the list of keywords the widget belongs to.
|
39 |
+
*
|
40 |
+
* @return array Widget keywords.
|
41 |
+
* @since 2.4.1
|
42 |
+
* @access public
|
43 |
+
*
|
44 |
+
*/
|
45 |
+
public function get_keywords() {
|
46 |
+
return [ 'embedpress', 'audio', 'video', 'map', 'youtube', 'vimeo', 'wistia' ];
|
47 |
+
}
|
48 |
+
|
49 |
+
protected function _register_controls() {
|
50 |
+
|
51 |
+
/**
|
52 |
+
* EmbedPress Content Settings
|
53 |
+
*/
|
54 |
+
$this->start_controls_section(
|
55 |
+
'embedpress_elementor_content_settings',
|
56 |
+
[
|
57 |
+
'label' => esc_html__( 'Content Settings', 'embedpress' ),
|
58 |
+
]
|
59 |
+
);
|
60 |
+
|
61 |
+
do_action( 'embedpress/embeded/extend', $this );
|
62 |
+
|
63 |
+
$this->add_control(
|
64 |
+
'embedpress_embeded_link',
|
65 |
+
[
|
66 |
+
|
67 |
+
'label' => __( 'Embeded Link', 'embedpress' ),
|
68 |
+
'type' => Controls_Manager::TEXT,
|
69 |
+
'dynamic' => [
|
70 |
+
'active' => true,
|
71 |
+
],
|
72 |
+
'placeholder' => __( 'Enter your Link', 'embedpress' ),
|
73 |
+
'label_block' => true
|
74 |
+
|
75 |
+
]
|
76 |
+
);
|
77 |
+
|
78 |
+
|
79 |
+
$this->end_controls_section();
|
80 |
+
|
81 |
+
$this->start_controls_section(
|
82 |
+
'embedpress_style_section',
|
83 |
+
[
|
84 |
+
'label' => __( 'Style', 'elementor' ),
|
85 |
+
'tab' => Controls_Manager::TAB_STYLE,
|
86 |
+
]
|
87 |
+
);
|
88 |
+
|
89 |
+
|
90 |
+
$this->add_control(
|
91 |
+
'embedpress_elementor_aspect_ratio',
|
92 |
+
[
|
93 |
+
'label' => __( 'Aspect Ratio', 'elementor' ),
|
94 |
+
'type' => Controls_Manager::SELECT,
|
95 |
+
'options' => [
|
96 |
+
'169' => '16:9',
|
97 |
+
'219' => '21:9',
|
98 |
+
'43' => '4:3',
|
99 |
+
'32' => '3:2',
|
100 |
+
'11' => '1:1',
|
101 |
+
'916' => '9:16',
|
102 |
+
],
|
103 |
+
'default' => '169',
|
104 |
+
'prefix_class' => 'embedpress-aspect-ratio-',
|
105 |
+
'frontend_available' => true,
|
106 |
+
]
|
107 |
+
);
|
108 |
+
|
109 |
+
|
110 |
+
$this->add_group_control(
|
111 |
+
Group_Control_Css_Filter::get_type(),
|
112 |
+
[
|
113 |
+
'name' => 'embedpress_elementor_css_filters',
|
114 |
+
'selector' => '{{WRAPPER}} .embedpress-elements-wrapper .embedpress-wrapper',
|
115 |
+
]
|
116 |
+
);
|
117 |
+
|
118 |
+
$this->end_controls_section();
|
119 |
+
|
120 |
+
do_action( 'embedpress/control/extend', $this );
|
121 |
+
}
|
122 |
+
|
123 |
+
protected function render() {
|
124 |
+
$settings = $this->get_settings_for_display();
|
125 |
+
$embed_content = Shortcode::parseContent( $settings['embedpress_embeded_link'], true, [] );
|
126 |
+
$embed = apply_filters( 'embedpress_elementor_embed', $embed_content, $settings );
|
127 |
+
$content = is_object( $embed ) ? $embed->embed : $embed;
|
128 |
+
|
129 |
+
?>
|
130 |
+
<div class="embedpress-elements-wrapper embedpress-fit-aspect-ratio">
|
131 |
+
<?php echo $content; ?>
|
132 |
+
</div>
|
133 |
+
<?php
|
134 |
+
}
|
135 |
+
|
136 |
+
|
137 |
+
}
|
EmbedPress/Providers/GoogleMaps.php
CHANGED
@@ -48,7 +48,7 @@ class GoogleMaps extends EmberaService
|
|
48 |
} else {
|
49 |
// Extract coordinates and zoom from the url
|
50 |
if (preg_match('~@(-?[0-9\.]+,-?[0-9\.]+).+,([0-9\.]+[a-z])~i', $this->url, $matches)) {
|
51 |
-
$iframeSrc = '
|
52 |
} else {
|
53 |
return [];
|
54 |
}
|
48 |
} else {
|
49 |
// Extract coordinates and zoom from the url
|
50 |
if (preg_match('~@(-?[0-9\.]+,-?[0-9\.]+).+,([0-9\.]+[a-z])~i', $this->url, $matches)) {
|
51 |
+
$iframeSrc = 'https://maps.google.com/maps?hl=en&ie=UTF8&ll=' . $matches[1] . '&spn=' . $matches[1] . '&t=m&z=' . round($matches[2]) . '&output=embed';
|
52 |
} else {
|
53 |
return [];
|
54 |
}
|
Gutenberg/dist/blocks.build.js
CHANGED
@@ -1,494 +1 @@
|
|
1 |
-
/******/ (function(modules) { // webpackBootstrap
|
2 |
-
/******/ // The module cache
|
3 |
-
/******/ var installedModules = {};
|
4 |
-
/******/
|
5 |
-
/******/ // The require function
|
6 |
-
/******/ function __webpack_require__(moduleId) {
|
7 |
-
/******/
|
8 |
-
/******/ // Check if module is in cache
|
9 |
-
/******/ if(installedModules[moduleId]) {
|
10 |
-
/******/ return installedModules[moduleId].exports;
|
11 |
-
/******/ }
|
12 |
-
/******/ // Create a new module (and put it into the cache)
|
13 |
-
/******/ var module = installedModules[moduleId] = {
|
14 |
-
/******/ i: moduleId,
|
15 |
-
/******/ l: false,
|
16 |
-
/******/ exports: {}
|
17 |
-
/******/ };
|
18 |
-
/******/
|
19 |
-
/******/ // Execute the module function
|
20 |
-
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
21 |
-
/******/
|
22 |
-
/******/ // Flag the module as loaded
|
23 |
-
/******/ module.l = true;
|
24 |
-
/******/
|
25 |
-
/******/ // Return the exports of the module
|
26 |
-
/******/ return module.exports;
|
27 |
-
/******/ }
|
28 |
-
/******/
|
29 |
-
/******/
|
30 |
-
/******/ // expose the modules object (__webpack_modules__)
|
31 |
-
/******/ __webpack_require__.m = modules;
|
32 |
-
/******/
|
33 |
-
/******/ // expose the module cache
|
34 |
-
/******/ __webpack_require__.c = installedModules;
|
35 |
-
/******/
|
36 |
-
/******/ // define getter function for harmony exports
|
37 |
-
/******/ __webpack_require__.d = function(exports, name, getter) {
|
38 |
-
/******/ if(!__webpack_require__.o(exports, name)) {
|
39 |
-
/******/ Object.defineProperty(exports, name, {
|
40 |
-
/******/ configurable: false,
|
41 |
-
/******/ enumerable: true,
|
42 |
-
/******/ get: getter
|
43 |
-
/******/ });
|
44 |
-
/******/ }
|
45 |
-
/******/ };
|
46 |
-
/******/
|
47 |
-
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
48 |
-
/******/ __webpack_require__.n = function(module) {
|
49 |
-
/******/ var getter = module && module.__esModule ?
|
50 |
-
/******/ function getDefault() { return module['default']; } :
|
51 |
-
/******/ function getModuleExports() { return module; };
|
52 |
-
/******/ __webpack_require__.d(getter, 'a', getter);
|
53 |
-
/******/ return getter;
|
54 |
-
/******/ };
|
55 |
-
/******/
|
56 |
-
/******/ // Object.prototype.hasOwnProperty.call
|
57 |
-
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
58 |
-
/******/
|
59 |
-
/******/ // __webpack_public_path__
|
60 |
-
/******/ __webpack_require__.p = "";
|
61 |
-
/******/
|
62 |
-
/******/ // Load entry module and return exports
|
63 |
-
/******/ return __webpack_require__(__webpack_require__.s = 5);
|
64 |
-
/******/ })
|
65 |
-
/************************************************************************/
|
66 |
-
/******/ ([
|
67 |
-
/* 0 */
|
68 |
-
/*!**************************************!*\
|
69 |
-
!*** ./src/common/embed-controls.js ***!
|
70 |
-
\**************************************/
|
71 |
-
/*! exports provided: default */
|
72 |
-
/*! exports used: default */
|
73 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
74 |
-
|
75 |
-
"use strict";
|
76 |
-
eval("/**\n * WordPress dependencies\n */\nvar __ = wp.i18n.__;\nvar Fragment = wp.element.Fragment;\nvar _wp$components = wp.components,\n IconButton = _wp$components.IconButton,\n Toolbar = _wp$components.Toolbar;\nvar BlockControls = wp.editor.BlockControls;\n\n\nvar EmbedControls = function EmbedControls(props) {\n\tvar showEditButton = props.showEditButton,\n\t switchBackToURLInput = props.switchBackToURLInput;\n\n\treturn wp.element.createElement(\n\t\tFragment,\n\t\tnull,\n\t\twp.element.createElement(\n\t\t\tBlockControls,\n\t\t\tnull,\n\t\t\twp.element.createElement(\n\t\t\t\tToolbar,\n\t\t\t\tnull,\n\t\t\t\tshowEditButton && wp.element.createElement(IconButton, {\n\t\t\t\t\tclassName: \"components-toolbar__control\",\n\t\t\t\t\tlabel: __('Edit URL'),\n\t\t\t\t\ticon: \"edit\",\n\t\t\t\t\tonClick: switchBackToURLInput\n\t\t\t\t})\n\t\t\t)\n\t\t)\n\t);\n};\n\n/* harmony default export */ __webpack_exports__[\"a\"] = (EmbedControls);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMC5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL3NyYy9jb21tb24vZW1iZWQtY29udHJvbHMuanM/OGY4YiJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIFdvcmRQcmVzcyBkZXBlbmRlbmNpZXNcbiAqL1xudmFyIF9fID0gd3AuaTE4bi5fXztcbnZhciBGcmFnbWVudCA9IHdwLmVsZW1lbnQuRnJhZ21lbnQ7XG52YXIgX3dwJGNvbXBvbmVudHMgPSB3cC5jb21wb25lbnRzLFxuICAgIEljb25CdXR0b24gPSBfd3AkY29tcG9uZW50cy5JY29uQnV0dG9uLFxuICAgIFRvb2xiYXIgPSBfd3AkY29tcG9uZW50cy5Ub29sYmFyO1xudmFyIEJsb2NrQ29udHJvbHMgPSB3cC5lZGl0b3IuQmxvY2tDb250cm9scztcblxuXG52YXIgRW1iZWRDb250cm9scyA9IGZ1bmN0aW9uIEVtYmVkQ29udHJvbHMocHJvcHMpIHtcblx0dmFyIHNob3dFZGl0QnV0dG9uID0gcHJvcHMuc2hvd0VkaXRCdXR0b24sXG5cdCAgICBzd2l0Y2hCYWNrVG9VUkxJbnB1dCA9IHByb3BzLnN3aXRjaEJhY2tUb1VSTElucHV0O1xuXG5cdHJldHVybiB3cC5lbGVtZW50LmNyZWF0ZUVsZW1lbnQoXG5cdFx0RnJhZ21lbnQsXG5cdFx0bnVsbCxcblx0XHR3cC5lbG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 */
|
80 |
-
/*!*************************************!*\
|
81 |
-
!*** ./src/common/embed-loading.js ***!
|
82 |
-
\*************************************/
|
83 |
-
/*! exports provided: default */
|
84 |
-
/*! exports used: default */
|
85 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
86 |
-
|
87 |
-
"use strict";
|
88 |
-
eval("/**\n * WordPress dependencies\n */\nvar __ = wp.i18n.__;\nvar Spinner = wp.components.Spinner;\n\n\nvar EmbedLoading = function EmbedLoading() {\n\treturn wp.element.createElement(\n\t\t\"div\",\n\t\t{ className: \"wp-block-embed is-loading\" },\n\t\twp.element.createElement(Spinner, null),\n\t\twp.element.createElement(\n\t\t\t\"p\",\n\t\t\tnull,\n\t\t\t__('Embedding…')\n\t\t)\n\t);\n};\n\n/* harmony default export */ __webpack_exports__[\"a\"] = (EmbedLoading);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMS5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL3NyYy9jb21tb24vZW1iZWQtbG9hZGluZy5qcz8yN2JkIl0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogV29yZFByZXNzIGRlcGVuZGVuY2llc1xuICovXG52YXIgX18gPSB3cC5pMThuLl9fO1xudmFyIFNwaW5uZXIgPSB3cC5jb21wb25lbnRzLlNwaW5uZXI7XG5cblxudmFyIEVtYmVkTG9hZGluZyA9IGZ1bmN0aW9uIEVtYmVkTG9hZGluZygpIHtcblx0cmV0dXJuIHdwLmVsZW1lbnQuY3JlYXRlRWxlbWVudChcblx0XHRcImRpdlwiLFxuXHRcdHsgY2xhc3NOYW1lOiBcIndwLWJsb2NrLWVtYmVkIGlzLWxvYWRpbmdcIiB9LFxuXHRcdHdwLmVsZW1lbnQuY3JlYXRlRWxlbWVudChTcGlubmVyLCBudWxsKSxcblx0XHR3cC5lbGVtZW50LmNyZWF0ZUVsZW1lbnQoXG5cdFx0XHRcInBcIixcblx0XHRcdG51bGwsXG5cdFx0XHRfXygnRW1iZWRkaW5n4oCmJylcblx0XHQpXG5cdCk7XG59O1xuXG5leHBvcnQgZGVmYXVsdCBFbWJlZExvYWRpbmc7XG5cblxuLy8vLy8vLy8vLy8vLy8vLy8vXG4vLyBXRUJQQUNLIEZPT1RFUlxuLy8gLi9zcmMvY29tbW9uL2VtYmVkLWxvYWRpbmcuanNcbi8vIG1vZHVsZSBpZCA9IDFcbi8vIG1vZHVsZSBjaHVua3MgPSAwIl0sIm1hcHBpbmdzIjoiQUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///1\n");
|
89 |
-
|
90 |
-
/***/ }),
|
91 |
-
/* 2 */
|
92 |
-
/*!*****************************************!*\
|
93 |
-
!*** ./src/common/embed-placeholder.js ***!
|
94 |
-
\*****************************************/
|
95 |
-
/*! exports provided: default */
|
96 |
-
/*! exports used: default */
|
97 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
98 |
-
|
99 |
-
"use strict";
|
100 |
-
eval("/**\n * WordPress dependencies\n */\nvar _wp$i18n = wp.i18n,\n __ = _wp$i18n.__,\n _x = _wp$i18n._x;\nvar _wp$components = wp.components,\n Button = _wp$components.Button,\n Placeholder = _wp$components.Placeholder;\nvar BlockIcon = wp.editor.BlockIcon;\n\n\nvar EmbedPlaceholder = function EmbedPlaceholder(props) {\n\tvar icon = props.icon,\n\t label = props.label,\n\t value = props.value,\n\t onSubmit = props.onSubmit,\n\t onChange = props.onChange,\n\t cannotEmbed = props.cannotEmbed;\n\n\treturn wp.element.createElement(\n\t\tPlaceholder,\n\t\t{ icon: wp.element.createElement(BlockIcon, { icon: icon, showColors: true }), label: label, className: \"wp-block-embed\" },\n\t\twp.element.createElement(\n\t\t\t\"form\",\n\t\t\t{ onSubmit: onSubmit },\n\t\t\twp.element.createElement(\"input\", {\n\t\t\t\ttype: \"url\",\n\t\t\t\tvalue: value || '',\n\t\t\t\tclassName: \"components-placeholder__input\",\n\t\t\t\t\"aria-label\": label,\n\t\t\t\tplaceholder: __('Enter URL to embed here…'),\n\t\t\t\tonChange: onChange }),\n\t\t\twp.element.createElement(\n\t\t\t\tButton,\n\t\t\t\t{\n\t\t\t\t\tisLarge: true,\n\t\t\t\t\ttype: \"submit\" },\n\t\t\t\t_x('Embed', 'button label')\n\t\t\t),\n\t\t\tcannotEmbed && wp.element.createElement(\n\t\t\t\t\"p\",\n\t\t\t\t{ className: \"components-placeholder__error\" },\n\t\t\t\t__('Sorry, we could not embed that content.'),\n\t\t\t\twp.element.createElement(\"br\", null)\n\t\t\t)\n\t\t)\n\t);\n};\n\n/* harmony default export */ __webpack_exports__[\"a\"] = (EmbedPlaceholder);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMi5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL3NyYy9jb21tb24vZW1iZWQtcGxhY2Vob2xkZXIuanM/NGQ2YSJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIFdvcmRQcmVzcyBkZXBlbmRlbmNpZXNcbiAqL1xudmFyIF93cCRpMThuID0gd3AuaTE4bixcbiAgICBfXyA9IF93cCRpMThuLl9fLFxuICAgIF94ID0gX3dwJGkxOG4uX3g7XG52YXIgX3dwJGNvbXBvbmVudHMgPSB3cC5jb21wb25lbnRzLFxuICAgIEJ1dHRvbiA9IF93cCRjb21wb25lbnRzLkJ1dHRvbixcbiAgICBQbGFjZWhvbGRlciA9IF93cCRjb21wb25lbnRzLlBsYWNlaG9sZGVyO1xudmFyIEJsb2NrSWNvbiA9IHdwLmVkaXRvci5CbG9ja0ljb247XG5cblxudmFyIEVtYm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NBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///2\n");
|
101 |
-
|
102 |
-
/***/ }),
|
103 |
-
/* 3 */
|
104 |
-
/*!******************************!*\
|
105 |
-
!*** ./src/common/Iframe.js ***!
|
106 |
-
\******************************/
|
107 |
-
/*! exports provided: default */
|
108 |
-
/*! exports used: default */
|
109 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
110 |
-
|
111 |
-
"use strict";
|
112 |
-
eval("/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react_dom__ = __webpack_require__(/*! react-dom */ 10);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react_dom__);\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\n/*\nINIT: ensure Babel/Eslint/Flow is configured for ES Class Fields & Static Properties\nJSX USAGE: <Iframe src='http://web.site' onLoad={myOnloadFunction}/>\n*/\n\nvar Component = wp.element.Component;\n\nvar Iframe = function (_Component) {\n _inherits(Iframe, _Component);\n\n function Iframe() {\n _classCallCheck(this, Iframe);\n\n return _possibleConstructorReturn(this, (Iframe.__proto__ || Object.getPrototypeOf(Iframe)).apply(this, arguments));\n }\n\n _createClass(Iframe, [{\n key: 'componentDidMount',\n value: function componentDidMount() {\n var iframe = __WEBPACK_IMPORTED_MODULE_0_react_dom___default.a.findDOMNode(this.refs.iframe);\n iframe.addEventListener('load', this.props.onLoad);\n }\n }, {\n key: 'render',\n value: function render() {\n\n return wp.element.createElement('iframe', _extends({\n ref: 'iframe'\n }, this.props));\n }\n }]);\n\n return Iframe;\n}(Component);\n\n/* harmony default export */ __webpack_exports__[\"a\"] = (Iframe);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL3NyYy9jb21tb24vSWZyYW1lLmpzPzZhY2EiXSwic291cmNlc0NvbnRlbnQiOlsidmFyIF9leHRlbmRzID0gT2JqZWN0LmFzc2lnbiB8fCBmdW5jdGlvbiAodGFyZ2V0KSB7IGZvciAodmFyIGkgPSAxOyBpIDwgYXJndW1lbnRzLmxlbmd0aDsgaSsrKSB7IHZhciBzb3VyY2UgPSBhcmd1bWVudHNbaV07IGZvciAodmFyIGtleSBpbiBzb3VyY2UpIHsgaWYgKE9iamVjdC5wcm90b3R5cGUuaGFzT3duUHJvcGVydHkuY2FsbChzb3VyY2UsIGtleSkpIHsgdGFyZ2V0W2tleV0gPSBzb3VyY2Vba2V5XTsgfSB9IH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XSk7XG5cbiAgcmV0dXJuIElmcmFtZTtcbn0oQ29tcG9uZW50KTtcblxuZXhwb3J0IGRlZmF1bHQgSWZyYW1lO1xuXG5cbi8vLy8vLy8vLy8vLy8vLy8vL1xuLy8gV0VCUEFDSyBGT09URVJcbi8vIC4vc3JjL2NvbW1vbi9JZnJhbWUuanNcbi8vIG1vZHVsZSBpZCA9IDNcbi8vIG1vZHVsZSBjaHVua3MgPSAwIl0sIm1hcHBpbmdzIjoiQUFBQTtBQUFBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///3\n");
|
113 |
-
|
114 |
-
/***/ }),
|
115 |
-
/* 4 */
|
116 |
-
/*!*****************************!*\
|
117 |
-
!*** ./src/common/icons.js ***!
|
118 |
-
\*****************************/
|
119 |
-
/*! exports provided: googleDocsIcon, googleSlidesIcon, googleSheetsIcon, googleFormsIcon, googleDrawingsIcon, googleMapsIcon, twitchIcon, wistiaIcon */
|
120 |
-
/*! exports used: googleDocsIcon, googleDrawingsIcon, googleFormsIcon, googleMapsIcon, googleSheetsIcon, googleSlidesIcon, twitchIcon, wistiaIcon */
|
121 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
122 |
-
|
123 |
-
"use strict";
|
124 |
-
eval("/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return googleDocsIcon; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"f\", function() { return googleSlidesIcon; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"e\", function() { return googleSheetsIcon; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"c\", function() { return googleFormsIcon; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"b\", function() { return googleDrawingsIcon; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"d\", function() { return googleMapsIcon; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"g\", function() { return twitchIcon; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"h\", function() { return wistiaIcon; });\n/**\n * WordPress dependencies\n */\nvar _wp$components = wp.components,\n G = _wp$components.G,\n Path = _wp$components.Path,\n Polygon = _wp$components.Polygon,\n SVG = _wp$components.SVG;\n\nvar googleDocsIcon = wp.element.createElement(\n\tSVG,\n\t{ xmlns: \"http://www.w3.org/1999/xlink\",\n\t\tviewBox: \"0 0 48 48\"\n\t},\n\twp.element.createElement(\n\t\tG,\n\t\tnull,\n\t\twp.element.createElement(Path, { style: { fill: '#2196F3' }, d: \"M 37 45 L 11 45 C 9.34375 45 8 43.65625 8 42 L 8 6 C 8 4.34375 9.34375 3 11 3 L 30 3 L 40 13 L 40 42 C 40 43.65625 38.65625 45 37 45 Z \" }),\n\t\twp.element.createElement(Path, { style: { fill: '#BBDEFB' }, d: \"M 40 13 L 30 13 L 30 3 Z \" }),\n\t\twp.element.createElement(Path, { style: { fill: '#1565C0' }, d: \"M 30 13 L 40 23 L 40 13 Z \" }),\n\t\twp.element.createElement(Path, { style: { fill: '#E3F2FD' }, d: \"M 15 23 L 33 23 L 33 25 L 15 25 Z \" }),\n\t\twp.element.createElement(Path, { style: { fill: '#E3F2FD' }, d: \"M 15 27 L 33 27 L 33 29 L 15 29 Z \" }),\n\t\twp.element.createElement(Path, { style: { fill: '#E3F2FD' }, d: \"M 15 31 L 33 31 L 33 33 L 15 33 Z \" }),\n\t\twp.element.createElement(Path, { style: { fill: '#E3F2FD' }, d: \"M 15 35 L 25 35 L 25 37 L 15 37 Z \" })\n\t)\n);\nvar googleSlidesIcon = wp.element.createElement(\n\tSVG,\n\t{\n\t\txmlns: \"http://www.w3.org/1999/xlink\",\n\t\t\"enable-background\": \"new 0 0 24 24\", id: \"Layer_2\",\n\t\tversion: \"1.1\",\n\t\tviewBox: \"0 0 24 24\" },\n\twp.element.createElement(\n\t\tG,\n\t\tnull,\n\t\twp.element.createElement(Path, { d: \"M21,6l-6-6H5C3.8954306,0,3,0.8954305,3,2v20c0,1.1045704,0.8954306,2,2,2h14c1.1045704,0,2-0.8954296,2-2 V6z\",\n\t\t\tstyle: { fill: \"#FFC720\" } }),\n\t\twp.element.createElement(Path, { d: \"M17,6c-0.5444336,0-1.0367432-0.2190552-1.3973999-0.5719604L21,10.8254395V6H17z\",\n\t\t\tstyle: { fill: \"url(#SVGID_1_)\" } }),\n\t\twp.element.createElement(Path, { d: \"M19,23.75H5c-1.1045532,0-2-0.8954468-2-2V22c0,1.1045532,0.8954468,2,2,2h14c1.1045532,0,2-0.8954468,2-2 v-0.25C21,22.8545532,20.1045532,23.75,19,23.75z\",\n\t\t\tstyle: { opacity: \"0.1\" } }),\n\t\twp.element.createElement(Path, { d: \"M15,0v4c0,1.1045694,0.8954306,2,2,2h4L15,0z\", style: { fill: \"#FFE083\" } }),\n\t\twp.element.createElement(Path, { d: \"M17,5.75c-1.1045532,0-2-0.8954468-2-2V4c0,1.1045532,0.8954468,2,2,2h4l-0.25-0.25H17z\", style: { opacity: \"0.1\" } }),\n\t\twp.element.createElement(Path, { d: \"M15,0H5C3.8954468,0,3,0.8953857,3,2v0.25c0-1.1046143,0.8954468-2,2-2h10\", style: { fill: \"#FFFFFF\", opacity: \"0.2\" } }),\n\t\twp.element.createElement(Path, { d: \"M15.5,9h-7C7.6728516,9,7,9.6728516,7,10.5v6C7,17.3271484,7.6728516,18,8.5,18h7 c0.8271484,0,1.5-0.6728516,1.5-1.5v-6C17,9.6728516,16.3271484,9,15.5,9z M8,15.5V11h8v4.5H8z\",\n\t\t\tstyle: { fill: \"#FFFFFF\" } }),\n\t\twp.element.createElement(Path, { d: \"M21,6l-6-6H5C3.8954306,0,3,0.8954305,3,2v20c0,1.1045704,0.8954306,2,2,2h14 c1.1045704,0,2-0.8954296,2-2V6z\", style: { fill: \"url(#SVGID_2_)\" } })\n\t),\n\twp.element.createElement(G, null),\n\twp.element.createElement(G, null),\n\twp.element.createElement(G, null),\n\twp.element.createElement(G, null),\n\twp.element.createElement(G, null),\n\twp.element.createElement(G, null),\n\twp.element.createElement(G, null),\n\twp.element.createElement(G, null),\n\twp.element.createElement(G, null),\n\twp.element.createElement(G, null),\n\twp.element.createElement(G, null),\n\twp.element.createElement(G, null),\n\twp.element.createElement(G, null),\n\twp.element.createElement(G, null),\n\twp.element.createElement(G, null)\n);\n\nvar googleSheetsIcon = wp.element.createElement(\n\tSVG,\n\t{\n\t\txmlns: \"http://www.w3.org/1999/xlink\",\n\t\tviewBox: \"0 0 48 48\",\n\t\tversion: \"1.1\" },\n\twp.element.createElement(\n\t\tG,\n\t\tnull,\n\t\twp.element.createElement(Path, { style: { fill: '#43A047' }, d: \"M 37 45 L 11 45 C 9.34375 45 8 43.65625 8 42 L 8 6 C 8 4.34375 9.34375 3 11 3 L 30 3 L 40 13 L 40 42 C 40 43.65625 38.65625 45 37 45 Z \" }),\n\t\twp.element.createElement(Path, { style: { fill: '#C8E6C9' }, d: \"M 40 13 L 30 13 L 30 3 Z \" }),\n\t\twp.element.createElement(Path, { style: { fill: '#2E7D32' }, d: \"M 30 13 L 40 23 L 40 13 Z \" }),\n\t\twp.element.createElement(Path, { style: { fill: '#E8F5E9' }, d: \"M 31 23 L 15 23 L 15 37 L 33 37 L 33 23 Z M 17 25 L 21 25 L 21 27 L 17 27 Z M 17 29 L 21 29 L 21 31 L 17 31 Z M 17 33 L 21 33 L 21 35 L 17 35 Z M 31 35 L 23 35 L 23 33 L 31 33 Z M 31 31 L 23 31 L 23 29 L 31 29 Z M 31 27 L 23 27 L 23 25 L 31 25 Z \" })\n\t)\n);\n\nvar googleFormsIcon = wp.element.createElement(\n\tSVG,\n\t{\n\t\txmlns: \"http://www.w3.org/1999/xlink\",\n\t\tviewBox: \"0 0 48 48\",\n\t\tversion: \"1.1\"\n\t},\n\twp.element.createElement(\n\t\tG,\n\t\tnull,\n\t\twp.element.createElement(Path, { style: { fill: '#7850C1' }, d: \"M 37 45 L 11 45 C 9.34375 45 8 43.65625 8 42 L 8 6 C 8 4.34375 9.34375 3 11 3 L 30 3 L 40 13 L 40 42 C 40 43.65625 38.65625 45 37 45 Z \" }),\n\t\twp.element.createElement(Path, { style: { fill: '#C2ABE1' }, d: \"M 40 13 L 30 13 L 30 3 Z \" }),\n\t\twp.element.createElement(Path, { style: { fill: '#2E7D32' }, d: \"M 30 13 L 40 23 L 40 13 Z \" }),\n\t\twp.element.createElement(Path, { style: { fill: '#E8F5E9' }, d: \"M 19 23 L 33 23 L 33 25 L 19 25 Z \" }),\n\t\twp.element.createElement(Path, { style: { fill: '#E8F5E9' }, d: \"M 19 28 L 33 28 L 33 30 L 19 30 Z \" }),\n\t\twp.element.createElement(Path, { style: { fill: '#E8F5E9' }, d: \"M 19 33 L 33 33 L 33 35 L 19 35 Z \" }),\n\t\twp.element.createElement(Path, { style: { fill: '#E8F5E9' }, d: \"M 15 23 L 17 23 L 17 25 L 15 25 Z \" }),\n\t\twp.element.createElement(Path, { style: { fill: '#E8F5E9' }, d: \"M 15 28 L 17 28 L 17 30 L 15 30 Z \" }),\n\t\twp.element.createElement(Path, { style: { fill: '#E8F5E9' }, d: \"M 15 33 L 17 33 L 17 35 L 15 35 Z \" })\n\t)\n);\n\nvar googleDrawingsIcon = wp.element.createElement(\n\tSVG,\n\t{\n\t\txmlns: \"http://www.w3.org/1999/xlink\",\n\t\tviewBox: \"0 0 48 48\",\n\t\tversion: \"1.1\"\n\t},\n\twp.element.createElement(\n\t\tG,\n\t\tnull,\n\t\twp.element.createElement(Path, { style: { fill: '#DE5245' }, d: \"M37,45H11c-1.7,0-3-1.3-3-3V6c0-1.7,1.3-3,3-3h19l10,10v29C40,43.7,38.7,45,37,45z\" }),\n\t\twp.element.createElement(Path, { style: { fill: '#EEA6A0' }, d: \"M40,13H30V3L40,13z\" }),\n\t\twp.element.createElement(Path, { style: { fill: '#B3433A' }, d: \"M30,13l10,10V13H30z\" }),\n\t\twp.element.createElement(Path, { style: { fill: '#FFFFFF' }, d: \"M20.5,32c-3,0-5.5-2.5-5.5-5.5c0-3,2.5-5.5,5.5-5.5s5.5,2.5,5.5,5.5C26,29.5,23.5,32,20.5,32z M20.5,23c-1.9,0-3.5,1.6-3.5,3.5s1.6,3.5,3.5,3.5s3.5-1.6,3.5-3.5S22.4,23,20.5,23z\" }),\n\t\twp.element.createElement(Path, { style: { fill: '#FFFFFF' }, d: \"M27.6,29c-0.6,1.8-1.9,3.3-3.6,4.1V38h9v-9H27.6z\" })\n\t)\n);\n\nvar googleMapsIcon = wp.element.createElement(\n\tSVG,\n\t{\n\t\txmlns: \"http://www.w3.org/1999/xlink\",\n\t\tviewBox: \"0 0 48 48\",\n\t\tversion: \"1.1\"\n\t},\n\twp.element.createElement(\n\t\tG,\n\t\tnull,\n\t\twp.element.createElement(Path, { style: { fill: '#1C9957' }, d: \"M 42 39 L 42 9 C 42 7.34375 40.65625 6 39 6 L 9 6 C 7.34375 6 6 7.34375 6 9 L 6 39 C 6 40.65625 7.34375 42 9 42 L 39 42 C 40.65625 42 42 40.65625 42 39 Z \" }),\n\t\twp.element.createElement(Path, { style: { fill: '#3E7BF1' }, d: \"M 9 42 L 39 42 C 40.65625 42 24 26 24 26 C 24 26 7.34375 42 9 42 Z \" }),\n\t\twp.element.createElement(Path, { style: { fill: '#CBCCC9' }, d: \"M 42 39 L 42 9 C 42 7.34375 26 24 26 24 C 26 24 42 40.65625 42 39 Z \" }),\n\t\twp.element.createElement(Path, { style: { fill: '#EFEFEF' }, d: \"M 39 42 C 40.65625 42 42 40.65625 42 39 L 42 38.753906 L 26.246094 23 L 23 26.246094 L 38.753906 42 Z \" }),\n\t\twp.element.createElement(Path, { style: { fill: '#FFD73D' }, d: \"M 42 9 C 42 7.34375 40.65625 6 39 6 L 38.753906 6 L 6 38.753906 L 6 39 C 6 40.65625 7.34375 42 9 42 L 9.246094 42 L 42 9.246094 Z \" }),\n\t\twp.element.createElement(Path, { style: { fill: '#D73F35' }, d: \"M 36 2 C 30.476563 2 26 6.476563 26 12 C 26 18.8125 33.664063 21.296875 35.332031 31.851563 C 35.441406 32.53125 35.449219 33 36 33 C 36.550781 33 36.558594 32.53125 36.667969 31.851563 C 38.335938 21.296875 46 18.8125 46 12 C 46 6.476563 41.523438 2 36 2 Z \" }),\n\t\twp.element.createElement(Path, { style: { fill: '#752622' }, d: \"M 39.5 12 C 39.5 13.933594 37.933594 15.5 36 15.5 C 34.066406 15.5 32.5 13.933594 32.5 12 C 32.5 10.066406 34.066406 8.5 36 8.5 C 37.933594 8.5 39.5 10.066406 39.5 12 Z \" }),\n\t\twp.element.createElement(Path, { style: { fill: '#FFFFFF' }, d: \"M 14.492188 12.53125 L 14.492188 14.632813 L 17.488281 14.632813 C 17.09375 15.90625 16.03125 16.816406 14.492188 16.816406 C 12.660156 16.816406 11.175781 15.332031 11.175781 13.5 C 11.175781 11.664063 12.660156 10.179688 14.492188 10.179688 C 15.316406 10.179688 16.070313 10.484375 16.648438 10.980469 L 18.195313 9.433594 C 17.21875 8.542969 15.921875 8 14.492188 8 C 11.453125 8 8.992188 10.464844 8.992188 13.5 C 8.992188 16.535156 11.453125 19 14.492188 19 C 19.304688 19 20.128906 14.683594 19.675781 12.539063 Z \" })\n\t)\n);\n\nvar twitchIcon = wp.element.createElement(\n\tSVG,\n\t{\n\t\txmlns: \"http://www.w3.org/1999/xlink\",\n\t\tviewBox: \"0 0 48 48\",\n\t\tversion: \"1.1\"\n\t},\n\twp.element.createElement(\n\t\tG,\n\t\tnull,\n\t\twp.element.createElement(Path, { style: { fill: '#FFFFFF' }, d: \"M 12 32 L 12 8 L 39 8 L 39 26 L 33 32 L 24 32 L 18 38 L 18 32 Z \" }),\n\t\twp.element.createElement(Path, { style: { fill: '#8E24AA' }, d: \"M 9 5 L 6 12.121094 L 6 38 L 15 38 L 15 43 L 20 43 L 25 38 L 32 38 L 42 28 L 42 5 Z M 38 26 L 33 31 L 24 31 L 19 36 L 19 31 L 13 31 L 13 9 L 38 9 Z \" }),\n\t\twp.element.createElement(Path, { style: { fill: '#8E24AA' }, d: \"M 32 25 L 27 25 L 27 15 L 32 15 Z \" }),\n\t\twp.element.createElement(Path, { style: { fill: '#8E24AA' }, d: \"M 24 25 L 19 25 L 19 15 L 24 15 Z \" })\n\t)\n);\n\nvar wistiaIcon = wp.element.createElement(\n\tSVG,\n\t{\n\t\txmlns: \"http://www.w3.org/1999/xlink\",\n\t\tviewBox: \"0 0 769 598\",\n\t\tversion: \"1.1\"\n\t},\n\twp.element.createElement(\n\t\tG,\n\t\tnull,\n\t\twp.element.createElement(Path, { style: { fill: '#148ee0' }, d: \"M766.89,229.17c0,0 -17.78,35.38 -106.5,91.3c-37.82,23.79 -116.36,49.1 -217.33,58.86c-54.52,5.29 -154.9,0.99 -197.96,0.99c-43.29,0 -63.13,9.12 -101.95,52.84c-143.15,161.36 -143.15,161.36 -143.15,161.36c0,0 49.57,0.24 87.01,0.24c37.43,0 271.55,13.59 375.43,-14.98c337.36,-92.72 304.46,-350.62 304.46,-350.62z\" }),\n\t\twp.element.createElement(Path, { style: { fill: '#54bbff' }, d: \"M757.84,126.66c16.23,-98.97 -39.68,-126.16 -39.68,-126.16c0,0 2.36,80.57 -145.7,97.65c-131.42,15.16 -572.46,3.74 -572.46,3.74c0,0 0,0 141.74,162.54c38.39,44.06 58.76,49.17 101.92,52.22c43.16,2.89 138.42,1.86 202.99,-3.05c70.58,-5.41 171.17,-28.43 239.19,-81.11c34.88,-26.98 65.21,-64.48 72,-105.83z\" })\n\t)\n);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiNC5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL3NyYy9jb21tb24vaWNvbnMuanM/NWFhOCJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIFdvcmRQcmVzcyBkZXBlbmRlbmNpZXNcbiAqL1xudmFyIF93cCRjb21wb25lbnRzID0gd3AuY29tcG9uZW50cyxcbiAgICBHID0gX3dwJGNvbXBvbmVudHMuRyxcbiAgICBQYXRoID0gX3dwJGNvbXBvbmVudHMuUGF0aCxcbiAgICBQb2x5Z29uID0gX3dwJGNvbXBvbmVudHMuUG9seWdvbixcbiAgICBTVkcgPSBfd3AkY29tcG9uZW50cy5TVkc7XG5cbmV4cG9ydCB2YXIgZ29vZ2xlRG9jc0ljb24gPSB3cC5lbGVtZW50LmNyZWF0ZUVsZW1lbnQoXG5cdFNWRyxcblx0eyB4bWxuczogXCJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rXCIsXG5cdFx0dmlld0JveDogXCIwIDAgNDggNDhcIlxuXHR9LFxuXHR3cC5lbGVtZW50LmNyZWF0ZUVsZW1lbnQoXG5cdFx0Ryxcblx0XHRudWxsLFxuXHRcdHdwLmVsZW1lbnQuY3JlYXRlRWxlbWVudChQYXRoLCB7IHN0eWxlOiB7IGZpbGw6ICcjMjE5NkYzJyB9LCBkOiBcIk0gMzcgNDUgTCAxMSA0NSBDIDkuMzQzNzUgNDUgOCA0My42NTYyNSA4IDQyIEwgOCA2IEMgOCA0LjM0Mzc1IDkuMzQzNzUgMyAxMSAzIEwgMzAgMyBMIDQwIDEzIEwgNDAgNDIgQyA0MCA0My42NTYyNSAzOC42NTYyNSA0NSAzNyA0NSBaIFwiIH0pLFxuXHRcdHdwLmVsZW1lbnQuY3JlYXRlRWxlbWVudChQYXRoLCB7IHN0eWxlOiB7IGZpb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UFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///4\n");
|
125 |
-
|
126 |
-
/***/ }),
|
127 |
-
/* 5 */
|
128 |
-
/*!***********************!*\
|
129 |
-
!*** ./src/blocks.js ***!
|
130 |
-
\***********************/
|
131 |
-
/*! no exports provided */
|
132 |
-
/*! all exports used */
|
133 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
134 |
-
|
135 |
-
"use strict";
|
136 |
-
eval("Object.defineProperty(__webpack_exports__, \"__esModule\", { value: true });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__google_docs_index_js__ = __webpack_require__(/*! ./google-docs/index.js */ 6);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__google_slides_index_js__ = __webpack_require__(/*! ./google-slides/index.js */ 11);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__google_sheets_index_js__ = __webpack_require__(/*! ./google-sheets/index.js */ 15);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__google_forms_index_js__ = __webpack_require__(/*! ./google-forms/index.js */ 19);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__google_drawings_index_js__ = __webpack_require__(/*! ./google-drawings/index.js */ 23);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__google_maps_index_js__ = __webpack_require__(/*! ./google-maps/index.js */ 27);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__twitch_index_js__ = __webpack_require__(/*! ./twitch/index.js */ 31);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__wistia_index_js__ = __webpack_require__(/*! ./wistia/index.js */ 35);\n/**\n * Gutenberg Blocks\n *\n * All blocks related JavaScript files should be imported here.\n * You can create a new block folder in this dir and include code\n * for that block here as well.\n *\n * All blocks should be included here since this is the file that\n * Webpack is compiling as the input file.\n */\n\n\n\n\n\n\n\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiNS5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL3NyYy9ibG9ja3MuanM/N2I1YiJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEd1dGVuYmVyZyBCbG9ja3NcbiAqXG4gKiBBbGwgYmxvY2tzIHJlbGF0ZWQgSmF2YVNjcmlwdCBmaWxlcyBzaG91bGQgYmUgaW1wb3J0ZWQgaGVyZS5cbiAqIFlvdSBjYW4gY3JlYXRlIGEgbmV3IGJsb2NrIGZvbGRlciBpbiB0aGlzIGRpciBhbmQgaW5jbHVkZSBjb2RlXG4gKiBmb3IgdGhhdCBibG9jayBoZXJlIGFzIHdlbGwuXG4gKlxuICogQWxsIGJsb2NrcyBzaG91bGQgYmUgaW5jbHVkZWQgaGVyZSBzaW5jZSB0aGlzIGlzIHRoZSBmaWxlIHRoYXRcbiAqIFdlYnBhY2sgaXMgY29tcGlsaW5nIGFzIHRoZSBpbnB1dCBmaWxlLlxuICovXG5cbmltcG9ydCAnLi9nb29nbGUtZG9jcy9pbmRleC5qcyc7XG5pbXBvcnQgJy4vZ29vZ2xlLXNsaWRlcy9pbmRleC5qcyc7XG5pbXBvcnQgJy4vZ29vZ2xlLXNoZWV0cy9pbmRleC5qcyc7XG5pbXBvcnQgJy4vZ29vZ2xlLWZvcm1zL2luZGV4LmpzJztcbmltcG9ydCAnLi9nb29nbGUtZHJhd2luZ3MvaW5kZXguanMnO1xuaW1wb3J0ICcuL2dvb2dsZS1tYXBzL2luZGV4LmpzJztcbmltcG9ydCAnLi90d2l0Y2gvaW5kZXguanMnO1xuaW1wb3J0ICcuL3dpc3RpYS9pbmRleC5qcyc7XG5cblxuLy8vLy8vLy8vLy8vLy8vLy8vXG4vLyBXRUJQQUNLIEZPT1RFUlxuLy8gLi9zcmMvYmxvY2tzLmpzXG4vLyBtb2R1bGUgaWQgPSA1XG4vLyBtb2R1bGUgY2h1bmtzID0gMCJdLCJtYXBwaW5ncyI6IkFBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOyIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///5\n");
|
137 |
-
|
138 |
-
/***/ }),
|
139 |
-
/* 6 */
|
140 |
-
/*!**********************************!*\
|
141 |
-
!*** ./src/google-docs/index.js ***!
|
142 |
-
\**********************************/
|
143 |
-
/*! no exports provided */
|
144 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
145 |
-
|
146 |
-
"use strict";
|
147 |
-
eval("/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__style_scss__ = __webpack_require__(/*! ./style.scss */ 7);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__style_scss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__style_scss__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__editor_scss__ = __webpack_require__(/*! ./editor.scss */ 8);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__editor_scss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__editor_scss__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__edit__ = __webpack_require__(/*! ./edit */ 9);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__common_icons__ = __webpack_require__(/*! ../common/icons */ 4);\n/**\n * BLOCK: embedpress-blocks\n *\n * Registering a basic block with Gutenberg.\n * Simple block, renders and saves the same content without any interactivity.\n */\n\n// Import CSS.\n\n\n\n\nvar __ = wp.i18n.__; // Import __() from wp.i18n\n\nvar registerBlockType = wp.blocks.registerBlockType; // Import registerBlockType() from wp.blocks\n\n/**\n * Register: aa Gutenberg Block.\n *\n * Registers a new block provided a unique name and an object defining its\n * behavior. Once registered, the block is made editor as an option to any\n * editor interface where blocks are implemented.\n *\n * @link https://wordpress.org/gutenberg/handbook/block-api/\n * @param {string} name Block name.\n * @param {Object} settings Block settings.\n * @return {?WPBlock} The block, if it has been successfully\n * registered; otherwise `undefined`.\n */\n\nregisterBlockType('embedpress/google-docs-block', {\n\t// Block name. Block names must be string that contains a namespace prefix. Example: my-plugin/my-custom-block.\n\ttitle: __('Google Docs'), // Block title.\n\ticon: __WEBPACK_IMPORTED_MODULE_3__common_icons__[\"a\" /* googleDocsIcon */], // Block icon from Dashicons → https://developer.wordpress.org/resource/dashicons/.\n\tcategory: 'embedpress', // Block category — Group blocks together based on common traits E.g. common, formatting, layout widgets, embed.\n\tkeywords: [__('embedpress'), __('google'), __('docs')],\n\tattributes: {\n\t\turl: {\n\t\t\ttype: 'string',\n\t\t\tdefault: ''\n\t\t},\n\t\tiframeSrc: {\n\t\t\ttype: 'string',\n\t\t\tdefault: ''\n\t\t}\n\t},\n\t/**\n * The edit function describes the structure of your block in the context of the editor.\n * This represents what the editor will render when the block is used.\n *\n * The \"edit\" property must be a valid function.\n *\n * @link https://wordpress.org/gutenberg/handbook/block-api/block-edit-save/\n */\n\tedit: __WEBPACK_IMPORTED_MODULE_2__edit__[\"a\" /* default */],\n\n\t/**\n * The save function defines the way in which the different attributes should be combined\n * into the final markup, which is then serialized by Gutenberg into post_content.\n *\n * The \"save\" property must be specified and must be a valid function.\n *\n * @link https://wordpress.org/gutenberg/handbook/block-api/block-edit-save/\n */\n\tsave: function save(props) {\n\t\tvar iframeSrc = props.attributes.iframeSrc;\n\n\t\treturn wp.element.createElement(\n\t\t\t'div',\n\t\t\t{ 'class': 'ose-google-docs-document' },\n\t\t\twp.element.createElement('iframe', { src: iframeSrc, frameborder: '0', width: '600', height: '450', allowfullscreen: 'true', mozallowfullscreen: 'true', webkitallowfullscreen: 'true' })\n\t\t);\n\t}\n});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiNi5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL3NyYy9nb29nbGUtZG9jcy9pbmRleC5qcz8zZDQ3Il0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQkxPQ0s6IGVtYmVkcHJlc3MtYmxvY2tzXG4gKlxuICogUmVnaXN0ZXJpbmcgYSBiYXNpYyBibG9jayB3aXRoIEd1dGVuYmVyZy5cbiAqIFNpbXBsZSBibG9jaywgcmVuZGVycyBhbmQgc2F2ZXMgdGhlIHNhbWUgY29udGVudCB3aXRob3V0IGFueSBpbnRlcmFjdGl2aXR5LlxuICovXG5cbi8vICBJbXBvcnQgQ1NTLlxuaW1wb3J0ICcuL3N0eWxlLnNjc3MnO1xuaW1wb3J0ICcuL2VkaXRvci5zY3NzJztcbmltcG9ydCBlZGl0IGZyb20gJy4vZWRpdCc7XG5pbXBvcnQgeyBnb29nbGVEb2NzSWNvbiB9IGZyb20gJy4uL2NvbW1vbi9pY29ucyc7XG52YXIgX18gPSB3cC5pMThuL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93ZnVsbHNjcmVlbjogJ3RydWUnIH0pXG5cdFx0KTtcblx0fVxufSk7XG5cblxuLy8vLy8vLy8vLy8vLy8vLy8vXG4vLyBXRUJQQUNLIEZPT1RFUlxuLy8gLi9zcmMvZ29vZ2xlLWRvY3MvaW5kZXguanNcbi8vIG1vZHVsZSBpZCA9IDZcbi8vIG1vZHVsZSBjaHVua3MgPSAwIl0sIm1hcHBpbmdzIjoiQUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///6\n");
|
148 |
-
|
149 |
-
/***/ }),
|
150 |
-
/* 7 */
|
151 |
-
/*!************************************!*\
|
152 |
-
!*** ./src/google-docs/style.scss ***!
|
153 |
-
\************************************/
|
154 |
-
/*! dynamic exports provided */
|
155 |
-
/***/ (function(module, exports) {
|
156 |
-
|
157 |
-
eval("// removed by extract-text-webpack-plugin//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiNy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL3NyYy9nb29nbGUtZG9jcy9zdHlsZS5zY3NzPzFiZGEiXSwic291cmNlc0NvbnRlbnQiOlsiLy8gcmVtb3ZlZCBieSBleHRyYWN0LXRleHQtd2VicGFjay1wbHVnaW5cblxuXG4vLy8vLy8vLy8vLy8vLy8vLy9cbi8vIFdFQlBBQ0sgRk9PVEVSXG4vLyAuL3NyYy9nb29nbGUtZG9jcy9zdHlsZS5zY3NzXG4vLyBtb2R1bGUgaWQgPSA3XG4vLyBtb2R1bGUgY2h1bmtzID0gMCJdLCJtYXBwaW5ncyI6IkFBQUEiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///7\n");
|
158 |
-
|
159 |
-
/***/ }),
|
160 |
-
/* 8 */
|
161 |
-
/*!*************************************!*\
|
162 |
-
!*** ./src/google-docs/editor.scss ***!
|
163 |
-
\*************************************/
|
164 |
-
/*! dynamic exports provided */
|
165 |
-
/***/ (function(module, exports) {
|
166 |
-
|
167 |
-
eval("// removed by extract-text-webpack-plugin//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiOC5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL3NyYy9nb29nbGUtZG9jcy9lZGl0b3Iuc2Nzcz8wZmRlIl0sInNvdXJjZXNDb250ZW50IjpbIi8vIHJlbW92ZWQgYnkgZXh0cmFjdC10ZXh0LXdlYnBhY2stcGx1Z2luXG5cblxuLy8vLy8vLy8vLy8vLy8vLy8vXG4vLyBXRUJQQUNLIEZPT1RFUlxuLy8gLi9zcmMvZ29vZ2xlLWRvY3MvZWRpdG9yLnNjc3Ncbi8vIG1vZHVsZSBpZCA9IDhcbi8vIG1vZHVsZSBjaHVua3MgPSAwIl0sIm1hcHBpbmdzIjoiQUFBQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///8\n");
|
168 |
-
|
169 |
-
/***/ }),
|
170 |
-
/* 9 */
|
171 |
-
/*!*********************************!*\
|
172 |
-
!*** ./src/google-docs/edit.js ***!
|
173 |
-
\*********************************/
|
174 |
-
/*! exports provided: default */
|
175 |
-
/*! exports used: default */
|
176 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
177 |
-
|
178 |
-
"use strict";
|
179 |
-
eval("/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__common_embed_controls__ = __webpack_require__(/*! ../common/embed-controls */ 0);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__common_embed_loading__ = __webpack_require__(/*! ../common/embed-loading */ 1);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__common_embed_placeholder__ = __webpack_require__(/*! ../common/embed-placeholder */ 2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__common_Iframe__ = __webpack_require__(/*! ../common/Iframe */ 3);\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\n/**\n * Internal dependencies\n */\n\n\n\n\n\n/**\n * WordPress dependencies\n */\nvar __ = wp.i18n.__;\nvar _wp$element = wp.element,\n Component = _wp$element.Component,\n Fragment = _wp$element.Fragment;\n\nvar GoogleDocsEdit = function (_Component) {\n _inherits(GoogleDocsEdit, _Component);\n\n function GoogleDocsEdit() {\n _classCallCheck(this, GoogleDocsEdit);\n\n var _this = _possibleConstructorReturn(this, (GoogleDocsEdit.__proto__ || Object.getPrototypeOf(GoogleDocsEdit)).apply(this, arguments));\n\n _this.switchBackToURLInput = _this.switchBackToURLInput.bind(_this);\n _this.setUrl = _this.setUrl.bind(_this);\n _this.onLoad = _this.onLoad.bind(_this);\n _this.state = {\n editingURL: false,\n url: _this.props.attributes.url,\n fetching: true,\n cannotEmbed: false\n };\n return _this;\n }\n\n _createClass(GoogleDocsEdit, [{\n key: 'onLoad',\n value: function onLoad() {\n this.setState({\n fetching: false\n });\n }\n }, {\n key: 'decodeHTMLEntities',\n value: function decodeHTMLEntities(str) {\n if (str && typeof str === 'string') {\n // strip script/html tags\n str = str.replace(/<script[^>]*>([\\S\\s]*?)<\\/script>/gmi, '');\n str = str.replace(/<\\/?\\w(?:[^\"'>]|\"[^\"]*\"|'[^']*')*>/gmi, '');\n }\n return str;\n }\n }, {\n key: 'setUrl',\n value: function setUrl(event) {\n if (event) {\n event.preventDefault();\n }\n var url = this.state.url;\n var setAttributes = this.props.setAttributes;\n\n setAttributes({ url: url });\n if (url && url.match(/^http[s]?:\\/\\/((?:www\\.)?docs\\.google\\.com(?:.*)?(?:document|presentation|spreadsheets|forms|drawings)\\/[a-z0-9\\/\\?=_\\-\\.\\,&%\\$#\\@\\!\\+]*)/i)) {\n var iframeSrc = this.decodeHTMLEntities(url);\n var regEx = /google\\.com(?:.+)?(document|presentation|spreadsheets|forms|drawings)/i;\n var match = regEx.exec(iframeSrc);\n var type = match[1];\n if (type && type == 'document') {\n if (iframeSrc.match(/([?&])embedded=true/i)) {\n if (iframeSrc.indexOf('?') > -1) {\n iframeSrc += '&embedded=true';\n } else {\n iframeSrc += '?embedded=true';\n }\n }\n this.setState({ editingURL: false, cannotEmbed: false });\n setAttributes({ iframeSrc: iframeSrc });\n } else {\n this.setState({\n cannotEmbed: true,\n editingURL: true\n });\n }\n } else {\n this.setState({\n cannotEmbed: true,\n editingURL: true\n });\n }\n }\n }, {\n key: 'switchBackToURLInput',\n value: function switchBackToURLInput() {\n this.setState({ editingURL: true });\n }\n }, {\n key: 'render',\n value: function render() {\n var _this2 = this;\n\n var _state = this.state,\n url = _state.url,\n editingURL = _state.editingURL,\n fetching = _state.fetching,\n cannotEmbed = _state.cannotEmbed;\n var iframeSrc = this.props.attributes.iframeSrc;\n\n\n var label = __('Google Docs URL');\n\n // No preview, or we can't embed the current URL, or we've clicked the edit button.\n if (!iframeSrc || editingURL) {\n return wp.element.createElement(__WEBPACK_IMPORTED_MODULE_2__common_embed_placeholder__[\"a\" /* default */], {\n label: label,\n onSubmit: this.setUrl,\n value: url,\n cannotEmbed: cannotEmbed,\n onChange: function onChange(event) {\n return _this2.setState({ url: event.target.value });\n }\n });\n } else {\n\n return wp.element.createElement(\n Fragment,\n null,\n fetching ? wp.element.createElement(__WEBPACK_IMPORTED_MODULE_1__common_embed_loading__[\"a\" /* default */], null) : null,\n wp.element.createElement(__WEBPACK_IMPORTED_MODULE_3__common_Iframe__[\"a\" /* default */], { src: iframeSrc, onLoad: this.onLoad, style: { display: fetching ? 'none' : '' }, frameborder: '0', width: '600', height: '450', allowfullscreen: 'true', mozallowfullscreen: 'true', webkitallowfullscreen: 'true' }),\n wp.element.createElement(__WEBPACK_IMPORTED_MODULE_0__common_embed_controls__[\"a\" /* default */], {\n showEditButton: iframeSrc && !cannotEmbed,\n switchBackToURLInput: this.switchBackToURLInput\n })\n );\n }\n }\n }]);\n\n return GoogleDocsEdit;\n}(Component);\n\n;\n/* harmony default export */ __webpack_exports__[\"a\"] = (GoogleDocsEdit);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiOS5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL3NyYy9nb29nbGUtZG9jcy9lZGl0LmpzPzY1ZWYiXSwic291cmNlc0NvbnRlbnQiOlsidmFyIF9jcmVhdGVDbGFzcyA9IGZ1bmN0aW9uICgpIHsgZnVuY3Rpb24gZGVmaW5lUHJvcGVydGllcyh0YXJnZXQsIHByb3BzKSB7IGZvciAodmFyIGkgPSAwOyBpIDwgcHJvcHMubGVuZ3RoOyBpKyspIHsgdmFyIGRlc2NyaXB0b3IgPSBwcm9wc1tpXTsgZGVzY3JpcHRvci5lbnVtZXJhYmxlID0gZGVzY3JpcHRvci5lbnVtZXJhYmxlIHx8IGZhbHNlOyBkZXNjcmlwdG9yLmNvbmZpZ3VyYWJsZSA9IHRydWU7IGlmIChcInZhbHVlXCIgaW4gZGVzY3JpcHRvcikgZGVzY3JpcHRvci53cml0YWJsZSA9IHRydWU7IE9iamVjdC5kZWZpbmVQcm9wZXJ0eSh0YXJnZXQsIGRlc2NyaXB0b3Iua2V5LCBkZXNjcmlwdG9yKTsgfSB9IHJldHVybiBmdW5jdGlvbiAoQ29uc3RydWN0b3IsIHByb3RvUHJvcHMsIHN0YXRpY1Byb3BzKSB7IGlmIChwcm90b1Byb3BzKSBkZWZpbmVQcm9wZXJ0aWVzKENvbnN0cnVjdG9yLnByb3RvdHlwZSwgcHJvdG9Qcm9wcyk7IGlmIChzdGF0aWNQcm9wcykgZGVmaW5lUHJvcGVydGllcyhDb25zdHJ1Y3Rvciwgc3RhdGljUHJvcHMpOyByZXR1cm4gQ29uc3RydWN0b3I7IH07IH0oKTtcblxuZnVuY3Rpb24gX2NsYXNzQ2FsbENoZWNrKGluc3RhbmNlLCBDb25zdHJ1Y3RvcikgeyBpZiAoIShpbnN0YW5jZSBpbnN0YW5jZ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NoQmFja1RvVVJMSW5wdXQuYmluZChfdGhpcyk7XG4gICAgICAgIF90aGlzLnNldFVybCA9IF90aGlzLnNldFVybC5iaW5kKF90aGlzKTtcbiAgICAgICAgX3RoaXMub25Mb2FkID0gX3RoaXMub25Mb2FkLmJpbmQoX3RoaXMpO1xuICAgICAgICBfdGhpcy5zdGF0ZSA9IHtcbiAgICAgICAgICAgIGVkaXRpbmdVUkw6IGZhbHNlLFxuICAgICAgICAgICAgdXJsOiBfdGhpcy5wcm9wcy5hdHRyaWJ1dGVzLnVybCxcbiAgICAgICAgICAgIGZldGNoaW5nOiB0cnVlLFxuICAgICAgICAgICAgY2Fubm90RW1iZWQ6IGZhbHNlXG4gICAgICAgIH07XG4gICAgICAgIHJldHVybiBfdGhpcztcbiAgICB9XG5cbiAgICBfY3JlYXRlQ2xhc3MoR29vZ2xlRG9jc0VkaXQsIFt7XG4gICAgICAgIGtleTogJ29uTG9hZCcsXG4gICAgICAgIHZhbHVlOiBmdW5jdGlvbiBvbkxvYWQoKSB7XG4gICAgICAgICAgICB0aGlzLnNldFN0YXRlKHtcbiAgICAgICAgICAgICAgICBmZXRjaGluZzogZmFsc2VcbiAgICAgICAgICAgIH0pO1xuICAgICAgICB9XG4gICAgfSwge1xuICAgICAgICBrZXk6ICdkZWNvZGVIVE1MRW50aXRpZXMnLFxuICAgICAgICB2YWx1ZTogZnVuY3Rpb24gZGVjb2RlSFRNTEVudGl0aWVzKHN0cikge1xuICAgICAgICAgICAgaWYgKHN0ciAmJiB0eXBlb2Ygc3RyID09PSAnc3RyaW5nJykge1xuICAgICAgICAgICAgICAgIC8vIHN0cmlwIHNjcmlwdC9odG1sIHRhZ3NcbiAgICAgICAgICAgICAgICBzdHIgPSBzdHIucmVwbGFjZSgvPHNjcmlwdFtePl0qPihbXFxTXFxzXSo/KTxcXC9zY3JpcHQ+L2dtaSwgJycpO1xuICAgICAgICAgICAgICAgIHN0ciA9IHN0ci5yZXBsYWNlKC88XFwvP1xcdyg/OlteXCInPl18XCJbXlwiXSpcInwnW14nXSonKSo+L2dtaSwgJycpO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgcmV0dXJuIHN0cjtcbiAgICAgICAgfVxuICAgIH0sIHtcbiAgICAgICAga2V5OiAnc2V0VXJsJyxcbiAgICAgICAgdmFsdWU6IGZ1bmN0aW9uIHNldFVybChldmVudCkge1xuICAgICAgICAgICAgaWYgKGV2ZW50KSB7XG4gICAgICAgICAgICAgICAgZXZlbnQucHJldmVudERlZmF1bHQoKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIHZhciB1cmwgPSB0aGlzLnN0YXRlLnVybDtcbiAgICAgICAgICAgIHZhciBzZXRBdHRyaWJ1dGVzID0gdGhpcy5wcm9wcy5zZXRBdHRyaWJ1dGVzO1xuXG4gICAgICAgICAgICBzZXRBdHRyaWJ1dGVzKHsgdXJsOiB1cmwgfSk7XG4gICAgICAgICAgICBpZiAodXJsICYmIHVybC5tYXRjaCgvXmh0dHBbc10/OlxcL1xcLygoPzp3d3dcXC4pP2RvY3NcXC5nb29nbGVcXC5jb20oPzouKik/KD86ZG9jdW1lbnR8cHJlc2VudGF0aW9ufHNwcmVhZHNoZWV0c3xmb3Jtc3xkcmF3aW5ncylcXC9bYS16MC05XFwvXFw/PV9cXC1cXC5cXCwmJVxcJCNcXEBcXCFcXCtdKikvaSkpIHtcbiAgICAgICAgICAgICAgICB2YXIgaWZyYW1lU3JjID0gdGhpcy5kZWNvZGVIVE1MRW50aXRpZXModXJsKTtcbiAgICAgICAgICAgICAgICB2YXIgcmVnRXggPSAvZ29vZ2xlXFwuY29tKD86LispPyhkb2N1bWVudHxwcmVzZW50YXRpb258c3ByZWFkc2hlZXRzfGZvcm1zfGRyYXdpbmdzKS9pO1xuICAgICAgICAgICAgICAgIHZhciBtYXRjaCA9IHJlZ0V4LmV4ZWMoaWZyYW1lU3JjKTtcbiAgICAgICAgICAgICAgICB2YXIgdHlwZSA9IG1hdGNoWzFdO1xuICAgICAgICAgICAgICAgIGlmICh0eXBlICYmIHR5cGUgPT0gJ2RvY3VtZW50Jykge1xuICAgICAgICAgICAgICAgICAgICBpZiAoaWZyYW1lU3JjLm1hdGNoKC8oWz8mXSllbWJlZGRlZD10cnVlL2kpKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICBpZiAoaWZyYW1lU3JjLmluZGV4T2YoJz8nKSA+IC0xKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgaWZyYW1lU3JjICs9ICcmZW1iZWRkZWQ9dHJ1ZSc7XG4gICAgICAgICAgICAgICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmcmFtZVNyYyArPSAnP2VtYmVkZGVkPXRydWUnO1xuICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgIHRoaXMuc2V0U3RhdGUoeyBlZGl0aW5nVVJMOiBmYWxzZSwgY2Fubm90RW1iZWQ6IGZhbHNlIH0pO1xuICAgICAgICAgICAgICAgICAgICBzZXRBdHRyaWJ1dGVzKHsgaWZyYW1lU3JjOiBpZnJhbWVTcmMgfSk7XG4gICAgICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5zZXRTdGF0ZSh7XG4gICAgICAgICAgICAgICAgICAgICAgICBjYW5ub3RFbWJlZDogdHJ1ZSxcbiAgICAgICAgICAgICAgICAgICAgICAgIGVkaXRpbmdVUkw6IHRydWVcbiAgICAgICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICB0aGlzLnNldFN0YXRlKHtcbiAgICAgICAgICAgICAgICAgICAgY2Fubm90RW1iZWQ6IHRydWUsXG4gICAgICAgICAgICAgICAgICAgIGVkaXRpbmdVUkw6IHRydWVcbiAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgI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AgICAgICAgICAgbGFiZWw6IGxhYmVsLFxuICAgICAgICAgICAgICAgICAgICBvblN1Ym1pdDogdGhpcy5zZXRVcmwsXG4gICAgICAgICAgICAgICAgICAgIHZhbHVlOiB1cmwsXG4gICAgICAgICAgICAgICAgICAgIGNhbm5vdEVtYmVkOiBjYW5ub3RFbWJlZCxcbiAgICAgICAgICAgICAgICAgICAgb25DaGFuZ2U6IGZ1bmN0aW9uIG9uQ2hhbmdlKGV2ZW50KSB7XG4gICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gX3RoaXMyLnNldFN0YXRlKHsgdXJsOiBldmVudC50YXJnZXQudmFsdWUgfSk7XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgIH0gZWxzZSB7XG5cbiAgICAgICAgICAgICAgICByZXR1cm4gd3AuZWxlbWVudC5jcmVhdGVFbGVtZW50KFxuICAgICAgICAgICAgICAgICAgICBGcmFnbWVudCxcbiAgICAgICAgICAgICAgICAgICAgbnVsbCxcbiAgICAgICAgICAgICAgICAgICAgZmV0Y2hpbmcgPyB3cC5lbGVtZW50LmNyZWF0ZUVsZW1lbnQoRW1iZWRMb2FkaW5nLCBudWxsKSA6IG51bGwsXG4gICAgICAgICAgICAgICAgICAgIHdwLmVsZW1lbnQuY3JlYXRlRWxlbWVudChJZnJhbWUsIHsgc3JjOiBpZnJhbWVTcmMsIG9uTG9hZDogdGhpcy5vbkxvYWQsIHN0eWxlOiB7IGRpc3BsYXk6IGZldGNoaW5nID8gJ25vbmUnIDogJycgfSwgZnJhbWVib3JkZXI6ICcwJywgd2lkdGg6ICc2MDAnLCBoZWlnaHQ6ICc0NTAnLCBhbGxvd2Z1bGxzY3JlZW46ICd0cnVlJywgbW96YWxsb3dmdWxsc2NyZWVuOiAndHJ1ZScsIHdlYmtpdGFsbG93ZnVsbHNjcmVlbjogJ3RydWUnIH0pLFxuICAgICAgICAgICAgICAgICAgICB3cC5lbGVtZW50LmN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UFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///9\n");
|
180 |
-
|
181 |
-
/***/ }),
|
182 |
-
/* 10 */
|
183 |
-
/*!***************************!*\
|
184 |
-
!*** external "ReactDOM" ***!
|
185 |
-
\***************************/
|
186 |
-
/*! dynamic exports provided */
|
187 |
-
/*! exports used: default */
|
188 |
-
/***/ (function(module, exports) {
|
189 |
-
|
190 |
-
module.exports = ReactDOM;
|
191 |
-
|
192 |
-
/***/ }),
|
193 |
-
/* 11 */
|
194 |
-
/*!************************************!*\
|
195 |
-
!*** ./src/google-slides/index.js ***!
|
196 |
-
\************************************/
|
197 |
-
/*! no exports provided */
|
198 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
199 |
-
|
200 |
-
"use strict";
|
201 |
-
eval("/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__style_scss__ = __webpack_require__(/*! ./style.scss */ 12);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__style_scss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__style_scss__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__editor_scss__ = __webpack_require__(/*! ./editor.scss */ 13);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__editor_scss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__editor_scss__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__edit__ = __webpack_require__(/*! ./edit */ 14);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__common_icons__ = __webpack_require__(/*! ../common/icons */ 4);\n/**\n * BLOCK: embedpress-blocks\n *\n * Registering a basic block with Gutenberg.\n * Simple block, renders and saves the same content without any interactivity.\n */\n\n// Import CSS.\n\n\n\n\nvar __ = wp.i18n.__; // Import __() from wp.i18n\n\nvar registerBlockType = wp.blocks.registerBlockType; // Import registerBlockType() from wp.blocks\n\n/**\n * Register: aa Gutenberg Block.\n *\n * Registers a new block provided a unique name and an object defining its\n * behavior. Once registered, the block is made editor as an option to any\n * editor interface where blocks are implemented.\n *\n * @link https://wordpress.org/gutenberg/handbook/block-api/\n * @param {string} name Block name.\n * @param {Object} settings Block settings.\n * @return {?WPBlock} The block, if it has been successfully\n * registered; otherwise `undefined`.\n */\n\nregisterBlockType('embedpress/google-slides-block', {\n\t// Block name. Block names must be string that contains a namespace prefix. Example: my-plugin/my-custom-block.\n\ttitle: __('Google Slides'), // Block title.\n\ticon: __WEBPACK_IMPORTED_MODULE_3__common_icons__[\"f\" /* googleSlidesIcon */], // Block icon from Dashicons → https://developer.wordpress.org/resource/dashicons/.\n\tcategory: 'embedpress', // Block category — Group blocks together based on common traits E.g. common, formatting, layout widgets, embed.\n\tkeywords: [__('embedpress'), __('google'), __('slides')],\n\tattributes: {\n\t\turl: {\n\t\t\ttype: 'string',\n\t\t\tdefault: ''\n\t\t},\n\t\tiframeSrc: {\n\t\t\ttype: 'string',\n\t\t\tdefault: ''\n\t\t}\n\t},\n\t/**\n * The edit function describes the structure of your block in the context of the editor.\n * This represents what the editor will render when the block is used.\n *\n * The \"edit\" property must be a valid function.\n *\n * @link https://wordpress.org/gutenberg/handbook/block-api/block-edit-save/\n */\n\tedit: __WEBPACK_IMPORTED_MODULE_2__edit__[\"a\" /* default */],\n\n\t/**\n * The save function defines the way in which the different attributes should be combined\n * into the final markup, which is then serialized by Gutenberg into post_content.\n *\n * The \"save\" property must be specified and must be a valid function.\n *\n * @link https://wordpress.org/gutenberg/handbook/block-api/block-edit-save/\n */\n\tsave: function save(props) {\n\t\tvar iframeSrc = props.attributes.iframeSrc;\n\n\t\treturn wp.element.createElement(\n\t\t\t'div',\n\t\t\t{ 'class': 'ose-google-docs-presentation' },\n\t\t\twp.element.createElement('iframe', { src: iframeSrc, frameborder: '0', width: '600', height: '450', allowfullscreen: 'true', mozallowfullscreen: 'true', webkitallowfullscreen: 'true' })\n\t\t);\n\t}\n});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMTEuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9zcmMvZ29vZ2xlLXNsaWRlcy9pbmRleC5qcz82Y2E1Il0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQkxPQ0s6IGVtYmVkcHJlc3MtYmxvY2tzXG4gKlxuICogUmVnaXN0ZXJpbmcgYSBiYXNpYyBibG9jayB3aXRoIEd1dGVuYmVyZy5cbiAqIFNpbXBsZSBibG9jaywgcmVuZGVycyBhbmQgc2F2ZXMgdGhlIHNhbWUgY29udGVudCB3aXRob3V0IGFueSBpbnRlcmFjdGl2aXR5LlxuICovXG5cbi8vICBJbXBvcnQgQ1NTLlxuaW1wb3J0ICcuL3N0eWxlLnNjc3MnO1x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),
|
204 |
-
/* 12 */
|
205 |
-
/*!**************************************!*\
|
206 |
-
!*** ./src/google-slides/style.scss ***!
|
207 |
-
\**************************************/
|
208 |
-
/*! dynamic exports provided */
|
209 |
-
/***/ (function(module, exports) {
|
210 |
-
|
211 |
-
eval("// removed by extract-text-webpack-plugin//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMTIuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9zcmMvZ29vZ2xlLXNsaWRlcy9zdHlsZS5zY3NzPzVhNzIiXSwic291cmNlc0NvbnRlbnQiOlsiLy8gcmVtb3ZlZCBieSBleHRyYWN0LXRleHQtd2VicGFjay1wbHVnaW5cblxuXG4vLy8vLy8vLy8vLy8vLy8vLy9cbi8vIFdFQlBBQ0sgRk9PVEVSXG4vLyAuL3NyYy9nb29nbGUtc2xpZGVzL3N0eWxlLnNjc3Ncbi8vIG1vZHVsZSBpZCA9IDEyXG4vLyBtb2R1bGUgY2h1bmtzID0gMCJdLCJtYXBwaW5ncyI6IkFBQUEiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///12\n");
|
212 |
-
|
213 |
-
/***/ }),
|
214 |
-
/* 13 */
|
215 |
-
/*!***************************************!*\
|
216 |
-
!*** ./src/google-slides/editor.scss ***!
|
217 |
-
\***************************************/
|
218 |
-
/*! dynamic exports provided */
|
219 |
-
/***/ (function(module, exports) {
|
220 |
-
|
221 |
-
eval("// removed by extract-text-webpack-plugin//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMTMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9zcmMvZ29vZ2xlLXNsaWRlcy9lZGl0b3Iuc2Nzcz9lYjJlIl0sInNvdXJjZXNDb250ZW50IjpbIi8vIHJlbW92ZWQgYnkgZXh0cmFjdC10ZXh0LXdlYnBhY2stcGx1Z2luXG5cblxuLy8vLy8vLy8vLy8vLy8vLy8vXG4vLyBXRUJQQUNLIEZPT1RFUlxuLy8gLi9zcmMvZ29vZ2xlLXNsaWRlcy9lZGl0b3Iuc2Nzc1xuLy8gbW9kdWxlIGlkID0gMTNcbi8vIG1vZHVsZSBjaHVua3MgPSAwIl0sIm1hcHBpbmdzIjoiQUFBQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///13\n");
|
222 |
-
|
223 |
-
/***/ }),
|
224 |
-
/* 14 */
|
225 |
-
/*!***********************************!*\
|
226 |
-
!*** ./src/google-slides/edit.js ***!
|
227 |
-
\***********************************/
|
228 |
-
/*! exports provided: default */
|
229 |
-
/*! exports used: default */
|
230 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
231 |
-
|
232 |
-
"use strict";
|
233 |
-
eval("/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__common_embed_controls__ = __webpack_require__(/*! ../common/embed-controls */ 0);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__common_embed_loading__ = __webpack_require__(/*! ../common/embed-loading */ 1);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__common_embed_placeholder__ = __webpack_require__(/*! ../common/embed-placeholder */ 2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__common_Iframe__ = __webpack_require__(/*! ../common/Iframe */ 3);\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\n/**\n * Internal dependencies\n */\n\n\n\n\n\n/**\n * WordPress dependencies\n */\nvar __ = wp.i18n.__;\nvar _wp$element = wp.element,\n Component = _wp$element.Component,\n Fragment = _wp$element.Fragment;\n\nvar GoogleSlidesEdit = function (_Component) {\n _inherits(GoogleSlidesEdit, _Component);\n\n function GoogleSlidesEdit() {\n _classCallCheck(this, GoogleSlidesEdit);\n\n var _this = _possibleConstructorReturn(this, (GoogleSlidesEdit.__proto__ || Object.getPrototypeOf(GoogleSlidesEdit)).apply(this, arguments));\n\n _this.switchBackToURLInput = _this.switchBackToURLInput.bind(_this);\n _this.setUrl = _this.setUrl.bind(_this);\n _this.onLoad = _this.onLoad.bind(_this);\n _this.state = {\n editingURL: false,\n url: _this.props.attributes.url,\n fetching: true,\n cannotEmbed: false\n };\n return _this;\n }\n\n _createClass(GoogleSlidesEdit, [{\n key: 'onLoad',\n value: function onLoad() {\n this.setState({\n fetching: false\n });\n }\n }, {\n key: 'decodeHTMLEntities',\n value: function decodeHTMLEntities(str) {\n if (str && typeof str === 'string') {\n // strip script/html tags\n str = str.replace(/<script[^>]*>([\\S\\s]*?)<\\/script>/gmi, '');\n str = str.replace(/<\\/?\\w(?:[^\"'>]|\"[^\"]*\"|'[^']*')*>/gmi, '');\n }\n return str;\n }\n }, {\n key: 'setUrl',\n value: function setUrl(event) {\n if (event) {\n event.preventDefault();\n }\n var url = this.state.url;\n var setAttributes = this.props.setAttributes;\n\n setAttributes({ url: url });\n if (url && url.match(/^http[s]?:\\/\\/((?:www\\.)?docs\\.google\\.com(?:.*)?(?:document|presentation|spreadsheets|forms|drawings)\\/[a-z0-9\\/\\?=_\\-\\.\\,&%\\$#\\@\\!\\+]*)/i)) {\n var iframeSrc = this.decodeHTMLEntities(url);\n var regEx = /google\\.com(?:.+)?(document|presentation|spreadsheets|forms|drawings)/i;\n var match = regEx.exec(iframeSrc);\n var type = match[1];\n if (type && type == 'presentation') {\n if (iframeSrc.match(/pub\\?/i)) {\n iframeSrc = iframeSrc.replace('/pub?', '/embed?');\n }\n this.setState({ editingURL: false, cannotEmbed: false });\n setAttributes({ iframeSrc: iframeSrc });\n } else {\n this.setState({\n cannotEmbed: true,\n editingURL: true\n });\n }\n } else {\n this.setState({\n cannotEmbed: true,\n editingURL: true\n });\n }\n }\n }, {\n key: 'switchBackToURLInput',\n value: function switchBackToURLInput() {\n this.setState({ editingURL: true });\n }\n }, {\n key: 'render',\n value: function render() {\n var _this2 = this;\n\n var _state = this.state,\n url = _state.url,\n editingURL = _state.editingURL,\n fetching = _state.fetching,\n cannotEmbed = _state.cannotEmbed;\n var iframeSrc = this.props.attributes.iframeSrc;\n\n\n var label = __('Google Slides URL');\n\n // No preview, or we can't embed the current URL, or we've clicked the edit button.\n if (!iframeSrc || editingURL) {\n return wp.element.createElement(__WEBPACK_IMPORTED_MODULE_2__common_embed_placeholder__[\"a\" /* default */], {\n label: label,\n onSubmit: this.setUrl,\n value: url,\n cannotEmbed: cannotEmbed,\n onChange: function onChange(event) {\n return _this2.setState({ url: event.target.value });\n }\n });\n } else {\n\n return wp.element.createElement(\n Fragment,\n null,\n fetching ? wp.element.createElement(__WEBPACK_IMPORTED_MODULE_1__common_embed_loading__[\"a\" /* default */], null) : null,\n wp.element.createElement(__WEBPACK_IMPORTED_MODULE_3__common_Iframe__[\"a\" /* default */], { src: iframeSrc, onLoad: this.onLoad, style: { display: fetching ? 'none' : '' }, frameborder: '0', width: '600', height: '450', allowfullscreen: 'true', mozallowfullscreen: 'true', webkitallowfullscreen: 'true' }),\n wp.element.createElement(__WEBPACK_IMPORTED_MODULE_0__common_embed_controls__[\"a\" /* default */], {\n showEditButton: iframeSrc && !cannotEmbed,\n switchBackToURLInput: this.switchBackToURLInput\n })\n );\n }\n }\n }]);\n\n return GoogleSlidesEdit;\n}(Component);\n\n;\n/* harmony default export */ __webpack_exports__[\"a\"] = (GoogleSlidesEdit);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMTQuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9zcmMvZ29vZ2xlLXNsaWRlcy9lZGl0LmpzPzllOWMiXSwic291cmNlc0NvbnRlbnQiOlsidmFyIF9jcmVhdGVDbGFzcyA9IGZ1bmN0aW9uICgpIHsgZnVuY3Rpb24gZGVmaW5lUHJvcGVydGllcyh0YXJnZXQsIHByb3BzKSB7IGZvciAodmFyIGkgPSAwOyBpIDwgcHJvcHMubGVuZ3RoOyBpKyspIHsgdmFyIGRlc2NyaXB0b3IgPSBwcm9wc1tpXTsgZGVzY3JpcHRvci5lbnVtZXJhYmxlID0gZGVzY3JpcHRvci5lbnVtZXJhYmxlIHx8IGZhbHNlOyBkZXNjcmlwdG9yLmNvbmZpZ3VyYWJsZSA9IHRydWU7IGlmIChcInZhbHVlXCIgaW4gZGVzY3JpcHRvcikgZGVzY3JpcHRvci53cml0YWJsZSA9IHRydWU7IE9iamVjdC5kZWZpbmVQcm9wZXJ0eSh0YXJnZXQsIGRlc2NyaXB0b3Iua2V5LCBkZXNjcmlwdG9yKTsgfSB9IHJldHVybiBmdW5jdGlvbiAoQ29uc3RydWN0b3IsIHByb3RvUHJvcHMsIHN0YXRpY1Byb3BzKSB7IGlmIChwcm90b1Byb3BzKSBkZWZpbmVQcm9wZXJ0aWVzKENvbnN0cnVjdG9yLnByb3RvdHlwZSwgcHJvdG9Qcm9wcyk7IGlmIChzdGF0aWNQcm9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gICAgICAgICAgIHZhciByZWdFeCA9IC9nb29nbGVcXC5jb20oPzouKyk/KGRvY3VtZW50fHByZXNlbnRhdGlvbnxzcHJlYWRzaGVldHN8Zm9ybXN8ZHJhd2luZ3MpL2k7XG4gICAgICAgICAgICAgICAgdmFyIG1hdGNoID0gcmVnRXguZXhlYyhpZnJhbWVTcmMpO1xuICAgICAgICAgICAgICAgIHZhciB0eXBlID0gbWF0Y2hbMV07XG4gICAgICAgICAgICAgICAgaWYgKHR5cGUgJiYgdHlwZSA9PSAncHJlc2VudGF0aW9uJykge1xuICAgICAgICAgICAgICAgICAgICBpZiAoaWZyYW1lU3JjLm1hdGNoKC9wdWJcXD8vaSkpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGlmcmFtZVNyYyA9IGlmcmFtZVNyYy5yZXBsYWNlKCcvcHViPycsICcvZW1iZWQ/Jyk7XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgdGhpcy5zZXRTdGF0ZSh7IGVkaXRpbmdVUkw6IGZhbHNlLCBjYW5ub3RFbWJlZDogZmFsc2UgfSk7XG4gICAgICAgICAgICAgICAgICAgIHNldEF0dHJpYnV0ZXMoeyBpZnJhbWVTcmM6IGlmcmFtZVNyYyB9KTtcbiAgICAgICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgICAgICB0aGlzLnNldFN0YXRlKHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGNhbm5vdEVtYmVkOiB0cnVlLFxuICAgICAgICAgICAgICAgICAgICAgICAgZWRpdGluZ1VSTDogdHJ1ZVxuICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgIHRoaXMuc2V0U3RhdGUoe1xuICAgICAgICAgICAgICAgICAgICBjYW5ub3RFbWJlZDogdHJ1ZSxcbiAgICAgICAgICAgICAgICAgICAgZWRpdGluZ1VSTDogdHJ1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WJlZFBsYWNlaG9sZGVyLCB7XG4gICAgICAgICAgICAgICAgICAgIGxhYmVsOiBsYWJlbCxcbiAgICAgICAgICAgICAgICAgICAgb25TdWJtaXQ6IHRoaXMuc2V0VXJsLFxuICAgICAgICAgICAgICAgICAgICB2YWx1ZTogdXJsLFxuICAgICAgICAgICAgICAgICAgICBjYW5ub3RFbWJlZDogY2Fubm90RW1iZWQsXG4gICAgICAgICAgICAgICAgICAgIG9uQ2hhbmdlOiBmdW5jdGlvbiBvbkNoYW5nZShldmVudCkge1xuICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIF90aGlzMi5zZXRTdGF0ZSh7IHVybDogZXZlbnQudGFyZ2V0LnZhbHVlIH0pO1xuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICB9IGVsc2Uge1xuXG4gICAgICAgICAgICAgICAgcmV0dXJuIHdwLmVsZW1lbnQuY3JlYXRlRWxlbWVudChcbiAgICAgICAgICAgICAgICAgICAgRnJhZ21lbnQsXG4gICAgICAgICAgICAgICAgICAgIG51bGwsXG4gICAgICAgICAgICAgICAgICAgIGZldGNoaW5nID8gd3AuZWxlbWVudC5jcmVhdGVFbGVtZW50KEVtYmVkTG9hZGluZywgbnVsbCkgOiBudWxsLFxuICAgICAgICAgICAgICAgICAgICB3cC5lbGVtZW50LmNyZWF0ZUVsZW1lbnQoSWZyYW1lLCB7IHNyYzogaWZyYW1lU3JjLCBvbkxvYWQ6IHRoaXMub25Mb2FkLCBzdHlsZTogeyBkaXNwbGF5OiBmZXRjaGluZyA/ICdub25lJyA6ICcnIH0sIGZyYW1lYm9yZGVyOiAnMCcsIHdpZHRoOiAnNjAwJywgaGVpZ2h0OiAnNDUwJywgYWxsb3dmdWxsc2NyZWVuOiAndHJ1ZScsIG1vemFsbG93ZnVsbHNjcmVlbjogJ3RydWUnLCB3ZWJraXRhbGxvd2Z1bGxzY3JlZW46ICd0cnVlJyB9KSxcbiAgICAgIC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QTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///14\n");
|
234 |
-
|
235 |
-
/***/ }),
|
236 |
-
/* 15 */
|
237 |
-
/*!************************************!*\
|
238 |
-
!*** ./src/google-sheets/index.js ***!
|
239 |
-
\************************************/
|
240 |
-
/*! no exports provided */
|
241 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
242 |
-
|
243 |
-
"use strict";
|
244 |
-
eval("/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__style_scss__ = __webpack_require__(/*! ./style.scss */ 16);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__style_scss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__style_scss__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__editor_scss__ = __webpack_require__(/*! ./editor.scss */ 17);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__editor_scss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__editor_scss__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__edit__ = __webpack_require__(/*! ./edit */ 18);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__common_icons__ = __webpack_require__(/*! ../common/icons */ 4);\n/**\n * BLOCK: embedpress-blocks\n *\n * Registering a basic block with Gutenberg.\n * Simple block, renders and saves the same content without any interactivity.\n */\n\n// Import CSS.\n\n\n\n\nvar __ = wp.i18n.__; // Import __() from wp.i18n\n\nvar registerBlockType = wp.blocks.registerBlockType; // Import registerBlockType() from wp.blocks\n\n/**\n * Register: aa Gutenberg Block.\n *\n * Registers a new block provided a unique name and an object defining its\n * behavior. Once registered, the block is made editor as an option to any\n * editor interface where blocks are implemented.\n *\n * @link https://wordpress.org/gutenberg/handbook/block-api/\n * @param {string} name Block name.\n * @param {Object} settings Block settings.\n * @return {?WPBlock} The block, if it has been successfully\n * registered; otherwise `undefined`.\n */\n\nregisterBlockType('embedpress/google-sheets-block', {\n\t// Block name. Block names must be string that contains a namespace prefix. Example: my-plugin/my-custom-block.\n\ttitle: __('Google Sheets'), // Block title.\n\ticon: __WEBPACK_IMPORTED_MODULE_3__common_icons__[\"e\" /* googleSheetsIcon */], // Block icon from Dashicons → https://developer.wordpress.org/resource/dashicons/.\n\tcategory: 'embedpress', // Block category — Group blocks together based on common traits E.g. common, formatting, layout widgets, embed.\n\tkeywords: [__('embedpress'), __('google'), __('sheets')],\n\tattributes: {\n\t\turl: {\n\t\t\ttype: 'string',\n\t\t\tdefault: ''\n\t\t},\n\t\tiframeSrc: {\n\t\t\ttype: 'string',\n\t\t\tdefault: ''\n\t\t}\n\t},\n\t/**\n * The edit function describes the structure of your block in the context of the editor.\n * This represents what the editor will render when the block is used.\n *\n * The \"edit\" property must be a valid function.\n *\n * @link https://wordpress.org/gutenberg/handbook/block-api/block-edit-save/\n */\n\tedit: __WEBPACK_IMPORTED_MODULE_2__edit__[\"a\" /* default */],\n\n\t/**\n * The save function defines the way in which the different attributes should be combined\n * into the final markup, which is then serialized by Gutenberg into post_content.\n *\n * The \"save\" property must be specified and must be a valid function.\n *\n * @link https://wordpress.org/gutenberg/handbook/block-api/block-edit-save/\n */\n\tsave: function save(props) {\n\t\tvar iframeSrc = props.attributes.iframeSrc;\n\n\t\treturn wp.element.createElement(\n\t\t\t'div',\n\t\t\t{ 'class': 'ose-google-docs-spreadsheets' },\n\t\t\twp.element.createElement('iframe', { src: iframeSrc, frameborder: '0', width: '600', height: '450', allowfullscreen: 'true', mozallowfullscreen: 'true', webkitallowfullscreen: 'true' })\n\t\t);\n\t}\n});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMTUuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9zcmMvZ29vZ2xlLXNoZWV0cy9pbmRleC5qcz82OGVjIl0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQkxPQ0s6IGVtYmVkcHJlc3MtYmxvY2tzXG4gKlxuICogUmVnaXN0ZXJpbmcgYSBiYXNpYyBibG9jayB3aXRoIEd1dGVuYmVyZy5cbiAqIFNpbXBsZSBibG9jaywgcmVuZGVycyBhbmQgc2F2ZXMgdGhlIHNhbWUgY29udGVudCB3aXRob3V0IGFueSBpbnRlcmFjdGl2aXR5LlxuICovXG5cbi8vICBJbXBvcnQgQ1NTLlxuaW1wb3J0ICcuL3N0eWxlLnNjc3MnO1xuaW1wb3J0ICcuL2VkaXRvci5zY3NzJztcbmltcG9ydCBlZGl0IGZyb20gJy4vZWRpdCc7XG5pbXBvcnQgeyBnb29nbGVTaGVldHNJY29uIH0gZnJvbSAnLi4vY29tbW9uL2ljb25zJztcbnZhciBfXyA9IHdwLmkxOG4uX187IC8v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Jywgd2Via2l0YWxsb3dmdWxsc2NyZWVuOiAndHJ1ZScgfSlcblx0XHQpO1xuXHR9XG59KTtcblxuXG4vLy8vLy8vLy8vLy8vLy8vLy9cbi8vIFdFQlBBQ0sgRk9PVEVSXG4vLyAuL3NyYy9nb29nbGUtc2hlZXRzL2luZGV4LmpzXG4vLyBtb2R1bGUgaWQgPSAxNVxuLy8gbW9kdWxlIGNodW5rcyA9IDAiXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///15\n");
|
245 |
-
|
246 |
-
/***/ }),
|
247 |
-
/* 16 */
|
248 |
-
/*!**************************************!*\
|
249 |
-
!*** ./src/google-sheets/style.scss ***!
|
250 |
-
\**************************************/
|
251 |
-
/*! dynamic exports provided */
|
252 |
-
/***/ (function(module, exports) {
|
253 |
-
|
254 |
-
eval("// removed by extract-text-webpack-plugin//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMTYuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9zcmMvZ29vZ2xlLXNoZWV0cy9zdHlsZS5zY3NzPzc4ZDQiXSwic291cmNlc0NvbnRlbnQiOlsiLy8gcmVtb3ZlZCBieSBleHRyYWN0LXRleHQtd2VicGFjay1wbHVnaW5cblxuXG4vLy8vLy8vLy8vLy8vLy8vLy9cbi8vIFdFQlBBQ0sgRk9PVEVSXG4vLyAuL3NyYy9nb29nbGUtc2hlZXRzL3N0eWxlLnNjc3Ncbi8vIG1vZHVsZSBpZCA9IDE2XG4vLyBtb2R1bGUgY2h1bmtzID0gMCJdLCJtYXBwaW5ncyI6IkFBQUEiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///16\n");
|
255 |
-
|
256 |
-
/***/ }),
|
257 |
-
/* 17 */
|
258 |
-
/*!***************************************!*\
|
259 |
-
!*** ./src/google-sheets/editor.scss ***!
|
260 |
-
\***************************************/
|
261 |
-
/*! dynamic exports provided */
|
262 |
-
/***/ (function(module, exports) {
|
263 |
-
|
264 |
-
eval("// removed by extract-text-webpack-plugin//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMTcuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9zcmMvZ29vZ2xlLXNoZWV0cy9lZGl0b3Iuc2Nzcz82Zjc1Il0sInNvdXJjZXNDb250ZW50IjpbIi8vIHJlbW92ZWQgYnkgZXh0cmFjdC10ZXh0LXdlYnBhY2stcGx1Z2luXG5cblxuLy8vLy8vLy8vLy8vLy8vLy8vXG4vLyBXRUJQQUNLIEZPT1RFUlxuLy8gLi9zcmMvZ29vZ2xlLXNoZWV0cy9lZGl0b3Iuc2Nzc1xuLy8gbW9kdWxlIGlkID0gMTdcbi8vIG1vZHVsZSBjaHVua3MgPSAwIl0sIm1hcHBpbmdzIjoiQUFBQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///17\n");
|
265 |
-
|
266 |
-
/***/ }),
|
267 |
-
/* 18 */
|
268 |
-
/*!***********************************!*\
|
269 |
-
!*** ./src/google-sheets/edit.js ***!
|
270 |
-
\***********************************/
|
271 |
-
/*! exports provided: default */
|
272 |
-
/*! exports used: default */
|
273 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
274 |
-
|
275 |
-
"use strict";
|
276 |
-
eval("/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__common_embed_controls__ = __webpack_require__(/*! ../common/embed-controls */ 0);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__common_embed_loading__ = __webpack_require__(/*! ../common/embed-loading */ 1);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__common_embed_placeholder__ = __webpack_require__(/*! ../common/embed-placeholder */ 2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__common_Iframe__ = __webpack_require__(/*! ../common/Iframe */ 3);\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\n/**\n * Internal dependencies\n */\n\n\n\n\n\n/**\n * WordPress dependencies\n */\nvar __ = wp.i18n.__;\nvar _wp$element = wp.element,\n Component = _wp$element.Component,\n Fragment = _wp$element.Fragment;\n\nvar GoogleSheetsEdit = function (_Component) {\n _inherits(GoogleSheetsEdit, _Component);\n\n function GoogleSheetsEdit() {\n _classCallCheck(this, GoogleSheetsEdit);\n\n var _this = _possibleConstructorReturn(this, (GoogleSheetsEdit.__proto__ || Object.getPrototypeOf(GoogleSheetsEdit)).apply(this, arguments));\n\n _this.switchBackToURLInput = _this.switchBackToURLInput.bind(_this);\n _this.setUrl = _this.setUrl.bind(_this);\n _this.onLoad = _this.onLoad.bind(_this);\n _this.state = {\n editingURL: false,\n url: _this.props.attributes.url,\n fetching: true,\n cannotEmbed: false\n };\n return _this;\n }\n\n _createClass(GoogleSheetsEdit, [{\n key: 'onLoad',\n value: function onLoad() {\n this.setState({\n fetching: false\n });\n }\n }, {\n key: 'decodeHTMLEntities',\n value: function decodeHTMLEntities(str) {\n if (str && typeof str === 'string') {\n // strip script/html tags\n str = str.replace(/<script[^>]*>([\\S\\s]*?)<\\/script>/gmi, '');\n str = str.replace(/<\\/?\\w(?:[^\"'>]|\"[^\"]*\"|'[^']*')*>/gmi, '');\n }\n return str;\n }\n }, {\n key: 'setUrl',\n value: function setUrl(event) {\n if (event) {\n event.preventDefault();\n }\n var url = this.state.url;\n var setAttributes = this.props.setAttributes;\n\n setAttributes({ url: url });\n if (url && url.match(/^http[s]?:\\/\\/((?:www\\.)?docs\\.google\\.com(?:.*)?(?:document|presentation|spreadsheets|forms|drawings)\\/[a-z0-9\\/\\?=_\\-\\.\\,&%\\$#\\@\\!\\+]*)/i)) {\n var iframeSrc = this.decodeHTMLEntities(url);\n var regEx = /google\\.com(?:.+)?(document|presentation|spreadsheets|forms|drawings)/i;\n var match = regEx.exec(iframeSrc);\n var type = match[1];\n if (type && type == 'spreadsheets') {\n if (iframeSrc.indexOf('?') > -1) {\n var query = iframeSrc.split('?');\n query = query[1];\n query = query.split('&');\n console.log(query);\n if (query.length > 0) {\n var hasHeadersParam = false;\n var hasWidgetParam = false;\n query.map(function (param) {\n if (param.indexOf('widget=')) {\n hasWidgetParam = true;\n } else if (param.indexOf('headers=')) {\n hasHeadersParam = true;\n }\n });\n if (!hasWidgetParam) {\n iframeSrc += '&widget=true';\n }\n\n if (!hasHeadersParam) {\n iframeSrc += '&headers=false';\n }\n }\n } else {\n iframeSrc += '?widget=true&headers=false';\n }\n this.setState({ editingURL: false, cannotEmbed: false });\n setAttributes({ iframeSrc: iframeSrc });\n } else {\n this.setState({\n cannotEmbed: true,\n editingURL: true\n });\n }\n } else {\n this.setState({\n cannotEmbed: true,\n editingURL: true\n });\n }\n }\n }, {\n key: 'switchBackToURLInput',\n value: function switchBackToURLInput() {\n this.setState({ editingURL: true });\n }\n }, {\n key: 'render',\n value: function render() {\n var _this2 = this;\n\n var _state = this.state,\n url = _state.url,\n editingURL = _state.editingURL,\n fetching = _state.fetching,\n cannotEmbed = _state.cannotEmbed;\n var iframeSrc = this.props.attributes.iframeSrc;\n\n\n var label = __('Google Sheets URL');\n\n // No preview, or we can't embed the current URL, or we've clicked the edit button.\n if (!iframeSrc || editingURL) {\n return wp.element.createElement(__WEBPACK_IMPORTED_MODULE_2__common_embed_placeholder__[\"a\" /* default */], {\n label: label,\n onSubmit: this.setUrl,\n value: url,\n cannotEmbed: cannotEmbed,\n onChange: function onChange(event) {\n return _this2.setState({ url: event.target.value });\n }\n });\n } else {\n\n return wp.element.createElement(\n Fragment,\n null,\n fetching ? wp.element.createElement(__WEBPACK_IMPORTED_MODULE_1__common_embed_loading__[\"a\" /* default */], null) : null,\n wp.element.createElement(__WEBPACK_IMPORTED_MODULE_3__common_Iframe__[\"a\" /* default */], { src: iframeSrc, onLoad: this.onLoad, style: { display: fetching ? 'none' : '' }, frameborder: '0', width: '600', height: '450', allowfullscreen: 'true', mozallowfullscreen: 'true', webkitallowfullscreen: 'true' }),\n wp.element.createElement(__WEBPACK_IMPORTED_MODULE_0__common_embed_controls__[\"a\" /* default */], {\n showEditButton: iframeSrc && !cannotEmbed,\n switchBackToURLInput: this.switchBackToURLInput\n })\n );\n }\n }\n }]);\n\n return GoogleSheetsEdit;\n}(Component);\n\n;\n/* harmony default export */ __webpack_exports__[\"a\"] = (GoogleSheetsEdit);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMTguanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9zcmMvZ29vZ2xlLXNoZWV0cy9lZGl0LmpzP2ZjYjQiXSwic291cmNlc0NvbnRlbnQiOlsidmFyIF9jcmVhdGVDbGFzcyA9IGZ1bmN0aW9uICgpIHsgZnVuY3Rpb24gZGVmaW5lUHJvcGVydGllcyh0YXJnZXQsIHByb3BzKSB7IGZvciAodmFyIGkgPSAwOyBpIDwgcHJvcHMubGVuZ3RoOyBpKyspIHsgdmFyIGRlc2NyaXB0b3IgPSBwcm9wc1tpXTsgZGVzY3JpcHRvci5lbnVtZXJhYmxlID0gZGVzY3JpcHRvci5lbnVtZXJhYmxlIHx8IGZhbHNlOyBkZXNjcmlwdG9yLmNvbmZpZ3VyYWJsZSA9IHRydWU7IGlmIChcInZhbHVlXCIgaW4gZGVzY3JpcHRvcikgZGVzY3JpcHRvci53cml0YWJsZSA9IHRydWU7IE9iamVjdC5kZWZpbmVQcm9wZXJ0eSh0YXJnZXQsIGRlc2NyaXB0b3Iua2V5LCBkZXNjcmlwdG9yKTsgfSB9IHJldHVybiBmdW5jdGlvbiAoQ29uc3RydWN0b3IsIHByb3RvUHJvcHMsIHN0YXRpY1Byb3BzKSB7IGlmIChwcm90b1Byb3BzKSBkZWZpbmVQc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gICAgICAgICAgIHZhciBpZnJhbWVTcmMgPSB0aGlzLmRlY29kZUhUTUxFbnRpdGllcyh1cmwpO1xuICAgICAgICAgICAgICAgIHZhciByZWdFeCA9IC9nb29nbGVcXC5jb20oPzouKyk/KGRvY3VtZW50fHByZXNlbnRhdGlvbnxzcHJlYWRzaGVldHN8Zm9ybXN8ZHJhd2luZ3MpL2k7XG4gICAgICAgICAgICAgICAgdmFyIG1hdGNoID0gcmVnRXguZXhlYyhpZnJhbWVTcmMpO1xuICAgICAgICAgICAgICAgIHZhciB0eXBlID0gbWF0Y2hbMV07XG4gICAgICAgICAgICAgICAgaWYgKHR5cGUgJiYgdHlwZSA9PSAnc3ByZWFkc2hlZXRzJykge1xuICAgICAgICAgICAgICAgICAgICBpZiAoaWZyYW1lU3JjLmluZGV4T2YoJz8nKSA+IC0xKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICB2YXIgcXVlcnkgPSBpZnJhbWVTcmMuc3BsaXQoJz8nKTtcbiAgICAgICAgICAgICAgICAgICAgICAgIHF1ZXJ5ID0gcXVlcnlbMV07XG4gICAgICAgICAgICAgICAgICAgICAgICBxdWVyeSA9IHF1ZXJ5LnNwbGl0KCcmJyk7XG4gICAgICAgICAgICAgICAgICAgICAgICBjb25zb2xlLmxvZyhxdWVyeSk7XG4gICAgICAgICAgICAgICAgICAgICAgICBpZiAocXVlcnkubGVuZ3RoID4gMCkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZhciBoYXNIZWFkZXJzUGFyYW0gPSBmYWxzZTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB2YXIgaGFzV2lkZ2V0UGFyYW0gPSBmYWxzZTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBxdWVyeS5tYXAoZnVuY3Rpb24gKHBhcmFtKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmIChwYXJhbS5pbmRleE9mKCd3aWRnZXQ9JykpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGhhc1dpZGdldFBhcmFtID0gdHJ1ZTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfSBlbHNlIGlmIChwYXJhbS5pbmRleE9mKCdoZWFkZXJzPScpKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBoYXNIZWFkZXJzUGFyYW0gPSB0cnVlO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKCFoYXNXaWRnZXRQYXJhbSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZnJhbWVTcmMgKz0gJyZ3aWRnZXQ9dHJ1ZSc7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKCFoYXNIZWFkZXJzUGFyYW0pIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaWZyYW1lU3JjICs9ICcmaGVhZGVycz1mYWxzZSc7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgICAgICAgICAgaWZyYW1lU3JjICs9ICc/d2lkZ2V0PXRydWUmaGVhZGVycz1mYWxzZSc7XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgdGhpcy5zZXRTdGF0ZSh7IGVkaXRpbmdVUkw6IGZhbHNlLCBjYW5ub3RFbWJlZDogZmFsc2UgfSk7XG4gICAgICAgICAgICAgICAgICAgIHNldEF0dHJpYnV0ZXMoeyBpZnJhbWVTcmM6IGlmcmFtZVNyYyB9KTtcbiAgICAgICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgICAgICB0aGlzLnNldFN0YXRlKHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGNhbm5vdEVtYmVkOiB0cnVlLFxuICAgICAgICAgICAgICAgICAgICAgICAgZWRpdGluZ1VSTDogdHJ1ZVxuICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgIHRoaXMuc2V0U3RhdGUoe1xuICAgICAgICAgICAgICAgICAgICBjYW5ub3RFbWJlZDogdHJ1ZSxcbiAgICAgICAgICAgICAgICAgICAgZWRpdGluZ1VSTDogdHJ1ZVxuICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgfSwge1xuICAgICAgICBrZXk6ICdzd2l0Y2hCYWNrVG9VUkxJbnB1dCcsXG4gICAgICAgIHZhbHVlOiBmdW5jdGlvbiBzd2l0Y2hCYWNrVG9VUkxJbnB1dCgpIHtcbiAgICAgICAgICAgIHRoaXMuc2V0U3RhdGUoeyBlZGl0aW5nVVJMOiB0cnVlIH0pO1xuICAgICAgICB9XG4gICAgfSwge1xuICAgICAgICBrZXk6ICdyZW5kZXInLFxuICAgICAgICB2YWx1ZTogZnVuY3Rpb24gcmVuZGVyKCkge1xuICAgICAgICAgICAgdmFyIF90aGlzMiA9IHRoaXM7XG5cbiAgICAgICAgICAgIHZhciBfc3RhdGUgPSB0aGlzLnN0YXRlLFxuICAgICAgICAgICAgICAgIHVybCA9IF9zdGF0ZS51cmwsXG4gICAgICAgICAgICAgICAgZWRpdGluZ1VSTCA9IF9zdGF0ZS5lZGl0aW5nVVJMLFxuICAgICAgICAgICAgICAgIGZldGNoaW5nID0gX3N0YXRlLmZldGNoaW5nLFxuICAgICAgICAgICAgICAgIGNhbm5vdEVtYmVkID0gX3N0YXRlLmNhbm5vdEVtYmVkO1xuICAgICAgICAgICAgdmFyIGlmcmFtZVNyYyA9IHRoaXMucHJvcHMuYXR0cmlidXRlcy5pZnJhbWVTcmM7XG5cblxuICAgICAgICAgICAgdmFyIGxhYmVsID0gX18oJ0dvb2dsZSBTaGVldHMgVVJMJyk7XG5cbiAgICAgICAgICAgIC8vIE5vIHByZXZpZXcsIG9yIHdlIGNhbid0IGVtYmVkIHRoZSBjdXJyZW50IFVSTCwgb3Igd2UndmUgY2xpY2tlZCB0aGUgZWRpdCBidXR0b24uXG4gICAgICAgICAgICBpZiAoIWlmcmFtZVNyYyB8fCBlZGl0aW5nVVJMKSB7XG4gICAgICAgICAgICAgICAgcmV0dXJuIHdwLmVsZW1lbnQuY3JlYXRlRWxlbWVudChFbWJlZFBsYWNlaG9sZGVyLCB7XG4gICAgICAgICAgICAgICAgICAgIGxhYmVsOiBsYWJlbCxcbiAgICAgICAgICAgICAgICAgICAgb25TdWJtaXQ6IHRoaXMuc2V0VXJsLFxuICAgICAgICAgICAgICAgICAgICB2YWx1ZTogdXJsLFxuICAgICAgICAgICAgICAgICAgICBjYW5ub3RFbWJlZDogY2Fubm90RW1iZWQsXG4gICAgICAgICAgICAgICAgICAgIG9uQ2hhbmdlOiBmdW5jdGlvbiBvbkNoYW5nZShldmVudCkge1xuICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIF90aGlzMi5zZXRTdGF0ZSh7IHVybDogZXZlbnQudGFyZ2V0LnZhbHVlIH0pO1xuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICB9IGVsc2Uge1xuXG4gICAgICAgICAgICAgICAgcmV0dXJuIHdwLmVsZW1lbnQuY3JlYXRlRWxlbWVudChcbiAgICAgICAgICAgICAgICAgICAgRnJhZ21lbnQsXG4gICAgICAgICAgICAgICAgICAgIG51bGwsXG4gICAgICAgICAgICAgICAgICAgIGZldGNoaW5nID8gd3AuZWxlbWVudC5jcmVhdGVFbGVtZW50KEVtYmVkTG9hZGluZywgbnVsbCkgOiBudWxsLFxuICAgICAgICAgICAgICAgICAgICB3cC5lbGVtZW50LmNyZWF0ZUVsZW1lbnQo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FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///18\n");
|
277 |
-
|
278 |
-
/***/ }),
|
279 |
-
/* 19 */
|
280 |
-
/*!***********************************!*\
|
281 |
-
!*** ./src/google-forms/index.js ***!
|
282 |
-
\***********************************/
|
283 |
-
/*! no exports provided */
|
284 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
285 |
-
|
286 |
-
"use strict";
|
287 |
-
eval("/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__style_scss__ = __webpack_require__(/*! ./style.scss */ 20);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__style_scss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__style_scss__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__editor_scss__ = __webpack_require__(/*! ./editor.scss */ 21);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__editor_scss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__editor_scss__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__edit__ = __webpack_require__(/*! ./edit */ 22);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__common_icons__ = __webpack_require__(/*! ../common/icons */ 4);\n/**\n * BLOCK: embedpress-blocks\n *\n * Registering a basic block with Gutenberg.\n * Simple block, renders and saves the same content without any interactivity.\n */\n\n// Import CSS.\n\n\n\n\nvar __ = wp.i18n.__; // Import __() from wp.i18n\n\nvar registerBlockType = wp.blocks.registerBlockType; // Import registerBlockType() from wp.blocks\n\n/**\n * Register: aa Gutenberg Block.\n *\n * Registers a new block provided a unique name and an object defining its\n * behavior. Once registered, the block is made editor as an option to any\n * editor interface where blocks are implemented.\n *\n * @link https://wordpress.org/gutenberg/handbook/block-api/\n * @param {string} name Block name.\n * @param {Object} settings Block settings.\n * @return {?WPBlock} The block, if it has been successfully\n * registered; otherwise `undefined`.\n */\n\nregisterBlockType('embedpress/google-forms-block', {\n\t// Block name. Block names must be string that contains a namespace prefix. Example: my-plugin/my-custom-block.\n\ttitle: __('Google Forms'), // Block title.\n\ticon: __WEBPACK_IMPORTED_MODULE_3__common_icons__[\"c\" /* googleFormsIcon */], // Block icon from Dashicons → https://developer.wordpress.org/resource/dashicons/.\n\tcategory: 'embedpress', // Block category — Group blocks together based on common traits E.g. common, formatting, layout widgets, embed.\n\tkeywords: [__('embedpress'), __('google'), __('forms')],\n\tattributes: {\n\t\turl: {\n\t\t\ttype: 'string',\n\t\t\tdefault: ''\n\t\t},\n\t\tiframeSrc: {\n\t\t\ttype: 'string',\n\t\t\tdefault: ''\n\t\t}\n\t},\n\t/**\n * The edit function describes the structure of your block in the context of the editor.\n * This represents what the editor will render when the block is used.\n *\n * The \"edit\" property must be a valid function.\n *\n * @link https://wordpress.org/gutenberg/handbook/block-api/block-edit-save/\n */\n\tedit: __WEBPACK_IMPORTED_MODULE_2__edit__[\"a\" /* default */],\n\n\t/**\n * The save function defines the way in which the different attributes should be combined\n * into the final markup, which is then serialized by Gutenberg into post_content.\n *\n * The \"save\" property must be specified and must be a valid function.\n *\n * @link https://wordpress.org/gutenberg/handbook/block-api/block-edit-save/\n */\n\tsave: function save(props) {\n\t\tvar iframeSrc = props.attributes.iframeSrc;\n\n\t\treturn wp.element.createElement(\n\t\t\t'div',\n\t\t\t{ 'class': 'ose-google-docs-forms' },\n\t\t\twp.element.createElement('iframe', { src: iframeSrc, frameborder: '0', width: '600', height: '450', allowfullscreen: 'true', mozallowfullscreen: 'true', webkitallowfullscreen: 'true' })\n\t\t);\n\t}\n});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMTkuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9zcmMvZ29vZ2xlLWZvcm1zL2luZGV4LmpzPzBkM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0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///19\n");
|
288 |
-
|
289 |
-
/***/ }),
|
290 |
-
/* 20 */
|
291 |
-
/*!*************************************!*\
|
292 |
-
!*** ./src/google-forms/style.scss ***!
|
293 |
-
\*************************************/
|
294 |
-
/*! dynamic exports provided */
|
295 |
-
/***/ (function(module, exports) {
|
296 |
-
|
297 |
-
eval("// removed by extract-text-webpack-plugin//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMjAuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9zcmMvZ29vZ2xlLWZvcm1zL3N0eWxlLnNjc3M/YjQ1OSJdLCJzb3VyY2VzQ29udGVudCI6WyIvLyByZW1vdmVkIGJ5IGV4dHJhY3QtdGV4dC13ZWJwYWNrLXBsdWdpblxuXG5cbi8vLy8vLy8vLy8vLy8vLy8vL1xuLy8gV0VCUEFDSyBGT09URVJcbi8vIC4vc3JjL2dvb2dsZS1mb3Jtcy9zdHlsZS5zY3NzXG4vLyBtb2R1bGUgaWQgPSAyMFxuLy8gbW9kdWxlIGNodW5rcyA9IDAiXSwibWFwcGluZ3MiOiJBQUFBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///20\n");
|
298 |
-
|
299 |
-
/***/ }),
|
300 |
-
/* 21 */
|
301 |
-
/*!**************************************!*\
|
302 |
-
!*** ./src/google-forms/editor.scss ***!
|
303 |
-
\**************************************/
|
304 |
-
/*! dynamic exports provided */
|
305 |
-
/***/ (function(module, exports) {
|
306 |
-
|
307 |
-
eval("// removed by extract-text-webpack-plugin//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMjEuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9zcmMvZ29vZ2xlLWZvcm1zL2VkaXRvci5zY3NzPzMzNTUiXSwic291cmNlc0NvbnRlbnQiOlsiLy8gcmVtb3ZlZCBieSBleHRyYWN0LXRleHQtd2VicGFjay1wbHVnaW5cblxuXG4vLy8vLy8vLy8vLy8vLy8vLy9cbi8vIFdFQlBBQ0sgRk9PVEVSXG4vLyAuL3NyYy9nb29nbGUtZm9ybXMvZWRpdG9yLnNjc3Ncbi8vIG1vZHVsZSBpZCA9IDIxXG4vLyBtb2R1bGUgY2h1bmtzID0gMCJdLCJtYXBwaW5ncyI6IkFBQUEiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///21\n");
|
308 |
-
|
309 |
-
/***/ }),
|
310 |
-
/* 22 */
|
311 |
-
/*!**********************************!*\
|
312 |
-
!*** ./src/google-forms/edit.js ***!
|
313 |
-
\**********************************/
|
314 |
-
/*! exports provided: default */
|
315 |
-
/*! exports used: default */
|
316 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
317 |
-
|
318 |
-
"use strict";
|
319 |
-
eval("/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__common_embed_controls__ = __webpack_require__(/*! ../common/embed-controls */ 0);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__common_embed_loading__ = __webpack_require__(/*! ../common/embed-loading */ 1);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__common_embed_placeholder__ = __webpack_require__(/*! ../common/embed-placeholder */ 2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__common_Iframe__ = __webpack_require__(/*! ../common/Iframe */ 3);\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\n/**\n * Internal dependencies\n */\n\n\n\n\n\n/**\n * WordPress dependencies\n */\nvar __ = wp.i18n.__;\nvar _wp$element = wp.element,\n Component = _wp$element.Component,\n Fragment = _wp$element.Fragment;\n\nvar GoogleFormsEdit = function (_Component) {\n _inherits(GoogleFormsEdit, _Component);\n\n function GoogleFormsEdit() {\n _classCallCheck(this, GoogleFormsEdit);\n\n var _this = _possibleConstructorReturn(this, (GoogleFormsEdit.__proto__ || Object.getPrototypeOf(GoogleFormsEdit)).apply(this, arguments));\n\n _this.switchBackToURLInput = _this.switchBackToURLInput.bind(_this);\n _this.setUrl = _this.setUrl.bind(_this);\n _this.onLoad = _this.onLoad.bind(_this);\n _this.state = {\n editingURL: false,\n url: _this.props.attributes.url,\n fetching: true,\n cannotEmbed: false\n };\n return _this;\n }\n\n _createClass(GoogleFormsEdit, [{\n key: 'onLoad',\n value: function onLoad() {\n this.setState({\n fetching: false\n });\n }\n }, {\n key: 'decodeHTMLEntities',\n value: function decodeHTMLEntities(str) {\n if (str && typeof str === 'string') {\n // strip script/html tags\n str = str.replace(/<script[^>]*>([\\S\\s]*?)<\\/script>/gmi, '');\n str = str.replace(/<\\/?\\w(?:[^\"'>]|\"[^\"]*\"|'[^']*')*>/gmi, '');\n }\n return str;\n }\n }, {\n key: 'setUrl',\n value: function setUrl(event) {\n if (event) {\n event.preventDefault();\n }\n var url = this.state.url;\n var setAttributes = this.props.setAttributes;\n\n setAttributes({ url: url });\n if (url && url.match(/^http[s]?:\\/\\/((?:www\\.)?docs\\.google\\.com(?:.*)?(?:document|presentation|spreadsheets|forms|drawings)\\/[a-z0-9\\/\\?=_\\-\\.\\,&%\\$#\\@\\!\\+]*)/i)) {\n var iframeSrc = this.decodeHTMLEntities(url);\n var regEx = /google\\.com(?:.+)?(document|presentation|spreadsheets|forms|drawings)/i;\n var match = regEx.exec(iframeSrc);\n var type = match[1];\n if (type && type == 'forms') {\n this.setState({ editingURL: false, cannotEmbed: false });\n setAttributes({ iframeSrc: iframeSrc });\n } else {\n this.setState({\n cannotEmbed: true,\n editingURL: true\n });\n }\n } else {\n this.setState({\n cannotEmbed: true,\n editingURL: true\n });\n }\n }\n }, {\n key: 'switchBackToURLInput',\n value: function switchBackToURLInput() {\n this.setState({ editingURL: true });\n }\n }, {\n key: 'render',\n value: function render() {\n var _this2 = this;\n\n var _state = this.state,\n url = _state.url,\n editingURL = _state.editingURL,\n fetching = _state.fetching,\n cannotEmbed = _state.cannotEmbed;\n var iframeSrc = this.props.attributes.iframeSrc;\n\n\n var label = __('Google Forms URL');\n\n // No preview, or we can't embed the current URL, or we've clicked the edit button.\n if (!iframeSrc || editingURL) {\n return wp.element.createElement(__WEBPACK_IMPORTED_MODULE_2__common_embed_placeholder__[\"a\" /* default */], {\n label: label,\n onSubmit: this.setUrl,\n value: url,\n cannotEmbed: cannotEmbed,\n onChange: function onChange(event) {\n return _this2.setState({ url: event.target.value });\n }\n });\n } else {\n\n return wp.element.createElement(\n Fragment,\n null,\n fetching ? wp.element.createElement(__WEBPACK_IMPORTED_MODULE_1__common_embed_loading__[\"a\" /* default */], null) : null,\n wp.element.createElement(__WEBPACK_IMPORTED_MODULE_3__common_Iframe__[\"a\" /* default */], { src: iframeSrc, onLoad: this.onLoad, style: { display: fetching ? 'none' : '' }, frameborder: '0', width: '600', height: '450', allowfullscreen: 'true', mozallowfullscreen: 'true', webkitallowfullscreen: 'true' }),\n wp.element.createElement(__WEBPACK_IMPORTED_MODULE_0__common_embed_controls__[\"a\" /* default */], {\n showEditButton: iframeSrc && !cannotEmbed,\n switchBackToURLInput: this.switchBackToURLInput\n })\n );\n }\n }\n }]);\n\n return GoogleFormsEdit;\n}(Component);\n\n;\n/* harmony default export */ __webpack_exports__[\"a\"] = (GoogleFormsEdit);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMjIuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9zcmMvZ29vZ2xlLWZvcm1zL2VkaXQuanM/Njg0MSJdLCJzb3VyY2VzQ29udGVudCI6WyJ2YXIgX2NyZWF0ZUNsYXNzID0gZnVuY3Rpb24gKCkgeyBmdW5jdGlvbiBkZWZpbmVQcm9wZXJ0aWVzKHRhcmdldCwgcHJvcHMpIHsgZm9yICh2YXIgaSA9IDA7IGkgPCBwcm9wcy5sZW5ndGg7IGkrKykgeyB2YXIgZGVzY3JpcHRvciA9IHByb3BzW2ldOyBkZXNjcmlwdG9yLmVudW1lcmFibGUgPSBkZXNjcmlwdG9yLmVudW1lcmFibGUgfHwgZmFsc2U7IGRlc2NyaXB0b3IuY29uZmlndXJhYmxlID0gdHJ1ZTsgaWYgKFwidmFsdWVcIiBpbiBkZXNjcmlwdG9yKSBkZXNjcmlwdG9yLndyaXRhYmxlID0gdHJ1ZTsgT2JqZWN0LmRlZmluZVByb3BlcnR5KHRhcmdldCwgZGVzY3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ICBmZXRjaGluZzogZmFsc2VcbiAgICAgICAgICAgIH0pO1xuICAgICAgICB9XG4gICAgfSwge1xuICAgICAgICBrZXk6ICdkZWNvZGVIVE1MRW50aXRpZXMnLFxuICAgICAgICB2YWx1ZTogZnVuY3Rpb24gZGVjb2RlSFRNTEVudGl0aWVzKHN0cikge1xuICAgICAgICAgICAgaWYgKHN0ciAmJiB0eXBlb2Ygc3RyID09PSAnc3RyaW5nJykge1xuICAgICAgICAgICAgICAgIC8vIHN0cmlwIHNjcmlwdC9odG1sIHRhZ3NcbiAgICAgICAgICAgICAgICBzdHIgPSBzdHIucmVwbGFjZSgvPHNjcmlwdFtePl0qPihbXFxTXFxzXSo/KTxcXC9zY3JpcHQ+L2dtaSwgJycpO1xuICAgICAgICAgICAgICAgIHN0ciA9IHN0ci5yZXBsYWNlKC88XFwvP1xcdyg/OlteXCInPl18XCJbXlwiXSpcInwnW14nXSonKSo+L2dtaSwgJycpO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgcmV0dXJuIHN0cjtcbiAgICAgICAgfVxuICAgIH0sIHtcbiAgICAgICAga2V5OiAnc2V0VXJsJyxcbiAgICAgICAgdmFsdWU6IGZ1bmN0aW9uIHNldFVybChldmVudCkge1xuICAgICAgICAgICAgaWYgKGV2ZW50KSB7XG4gICAgICAgICAgICAgICAgZXZlbnQucHJldmVudERlZmF1bHQoKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIHZhciB1cmwgPSB0aGlzLnN0YXRlLnVybDtcbiAgICAgICAgICAgIHZhciBzZXRBdHRyaWJ1dGVzID0gdGhpcy5wcm9wcy5zZXRBdHRyaWJ1dGVzO1xuXG4gICAgICAgICAgICBzZXRBdHRyaWJ1dGVzKHsgdXJsOiB1cmwgfSk7XG4gICAgICAgICAgICBpZiAodXJsICYmIHVybC5tYXRjaCgvXmh0dHBbc10/OlxcL1xcLygoPzp3d3dcXC4pP2RvY3NcXC5nb29nbGVcXC5jb20oPzouKik/KD86ZG9jdW1lbnR8cHJlc2VudGF0aW9ufHNwcmVhZHNoZWV0c3xmb3Jtc3xkcmF3aW5ncylcXC9bYS16MC05XFwvXFw/PV9cXC1cXC5cXCwmJVxcJCNcXEBcXCFcXCtdKikvaSkpIHtcbiAgICAgICAgICAgICAgICB2YXIgaWZyYW1lU3JjID0gdGhpcy5kZWNvZGVIVE1MRW50aXRpZXModXJsKTtcbiAgICAgICAgICAgICAgICB2YXIgcmVnRXggPSAvZ29vZ2xlXFwuY29tKD86LispPyhkb2N1bWVudHxwcmVzZW50YXRpb258c3ByZWFkc2hlZXRzfGZvcm1zfGRyYXdpbmdzKS9pO1xuICAgICAgICAgICAgICAgIHZhciBtYXRjaCA9IHJlZ0V4LmV4ZWMoaWZyYW1lU3JjKTtcbiAgICAgICAgICAgICAgICB2YXIgdHlwZSA9IG1hdGNoWzFdO1xuICAgICAgICAgICAgICAgIGlmICh0eXBlICYmIHR5cGUgPT0gJ2Zvcm1zJykge1xuICAgICAgICAgICAgICAgICAgICB0aGlzLnNldFN0YXRlKHsgZWRpdGluZ1VSTDogZmFsc2UsIGNhbm5vdEVtYmVkOiBmYWxzZSB9KTtcbiAgICAgICAgICAgICAgICAgICAgc2V0QXR0cmlidXRlcyh7IGlmcmFtZVNyYzogaWZyYW1lU3JjIH0pO1xuICAgICAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMuc2V0U3RhdGUoe1xuICAgICAgICAgICAgICAgICAgICAgICAgY2Fubm90RW1iZWQ6IHRydWUsXG4gICAgICAgICAgICAgICAgICAgICAgICBlZGl0aW5nVVJMOiB0cnVlXG4gICAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgdGhpcy5zZXRTdGF0ZSh7XG4gICAgICAgICAgICAgICAgICAgIGNhbm5vdEVtYmVkOiB0cnVlLFxuICAgICAgICAgICAgICAgICAgICBlZGl0a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ZUVsZW1lbnQoRW1iZWRQbGFjZWhvbGRlciwge1xuICAgICAgICAgICAgICAgICAgICBsYWJlbDogbGFiZWwsXG4gICAgICAgICAgICAgICAgICAgIG9uU3VibWl0OiB0aGlzLnNldFVybCxcbiAgICAgICAgICAgICAgICAgICAgdmFsdWU6IHVybCxcbiAgICAgICAgICAgICAgICAgICAgY2Fubm90RW1iZWQ6IGNhbm5vdEVtYmVkLFxuICAgICAgICAgICAgICAgICAgICBvbkNoYW5nZTogZnVuY3Rpb24gb25DaGFuZ2UoZXZlbnQpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBfdGhpczIuc2V0U3RhdGUoeyB1cmw6IGV2ZW50LnRhcmdldC52YWx1ZSB9KTtcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgfSBlbHNlIHtcblxuICAgICAgICAgICAgICAgIHJldHVybiB3cC5lbGVtZW50LmNyZWF0ZUVsZW1lbnQoXG4gICAgICAgICAgICAgICAgICAgIEZyYWdtZW50LFxuICAgICAgICAgICAgICAgICAgICBudWxsLFxuICAgICAgICAgICAgICAgICAgICBmZXRjaGluZyA/IHdwLmVsZW1lbnQuY3JlYXRlRWxlbWVudChFbWJlZExvYWRpbmcsIG51bGwpIDogbnVsbCxcbiAgICAgICAgICAgICAgICAgICAgd3AuZWxlbWVudC5jcmVhdGVFbGVtZW50KElmcmFtZSwgeyBzcmM6IGlmcmFtZVNyYywgb25Mb2FkOiB0aGlzLm9uTG9hZCwgc3R5bGU6IHsgZGlzcGxheTogZmV0Y2hpbmcgPyAnbm9uZScgOiAnJyB9LCBmcmFtZWJvcmRlcjogJzAnLCB3aWR0aDogJzYwMCcsIGhlaWdodDogJzQ1MCcsIGFsbG93ZnVsbHNjcmVlbjogJ3RydWUnLCBtb3phbGxvd2Z1bGxzY3JlZW46ICd0cnVlJywgd2Via2l0YWxsb3dmdWxsc2NyZWVuOiAndHJ1ZScgfSksXG4gICA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QTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///22\n");
|
320 |
-
|
321 |
-
/***/ }),
|
322 |
-
/* 23 */
|
323 |
-
/*!**************************************!*\
|
324 |
-
!*** ./src/google-drawings/index.js ***!
|
325 |
-
\**************************************/
|
326 |
-
/*! no exports provided */
|
327 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
328 |
-
|
329 |
-
"use strict";
|
330 |
-
eval("/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__style_scss__ = __webpack_require__(/*! ./style.scss */ 24);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__style_scss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__style_scss__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__editor_scss__ = __webpack_require__(/*! ./editor.scss */ 25);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__editor_scss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__editor_scss__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__edit__ = __webpack_require__(/*! ./edit */ 26);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__common_icons__ = __webpack_require__(/*! ../common/icons */ 4);\n/**\n * BLOCK: embedpress-blocks\n *\n * Registering a basic block with Gutenberg.\n * Simple block, renders and saves the same content without any interactivity.\n */\n\n// Import CSS.\n\n\n\n\nvar __ = wp.i18n.__; // Import __() from wp.i18n\n\nvar registerBlockType = wp.blocks.registerBlockType; // Import registerBlockType() from wp.blocks\n\n/**\n * Register: aa Gutenberg Block.\n *\n * Registers a new block provided a unique name and an object defining its\n * behavior. Once registered, the block is made editor as an option to any\n * editor interface where blocks are implemented.\n *\n * @link https://wordpress.org/gutenberg/handbook/block-api/\n * @param {string} name Block name.\n * @param {Object} settings Block settings.\n * @return {?WPBlock} The block, if it has been successfully\n * registered; otherwise `undefined`.\n */\n\nregisterBlockType('embedpress/google-drawings-block', {\n\t// Block name. Block names must be string that contains a namespace prefix. Example: my-plugin/my-custom-block.\n\ttitle: __('Google Drawings'), // Block title.\n\ticon: __WEBPACK_IMPORTED_MODULE_3__common_icons__[\"b\" /* googleDrawingsIcon */], // Block icon from Dashicons → https://developer.wordpress.org/resource/dashicons/.\n\tcategory: 'embedpress', // Block category — Group blocks together based on common traits E.g. common, formatting, layout widgets, embed.\n\tkeywords: [__('embedpress'), __('google'), __('drawings')],\n\tattributes: {\n\t\turl: {\n\t\t\ttype: 'string',\n\t\t\tdefault: ''\n\t\t},\n\t\tiframeSrc: {\n\t\t\ttype: 'string',\n\t\t\tdefault: ''\n\t\t}\n\t},\n\t/**\n * The edit function describes the structure of your block in the context of the editor.\n * This represents what the editor will render when the block is used.\n *\n * The \"edit\" property must be a valid function.\n *\n * @link https://wordpress.org/gutenberg/handbook/block-api/block-edit-save/\n */\n\tedit: __WEBPACK_IMPORTED_MODULE_2__edit__[\"a\" /* default */],\n\n\t/**\n * The save function defines the way in which the different attributes should be combined\n * into the final markup, which is then serialized by Gutenberg into post_content.\n *\n * The \"save\" property must be specified and must be a valid function.\n *\n * @link https://wordpress.org/gutenberg/handbook/block-api/block-edit-save/\n */\n\tsave: function save(props) {\n\t\tvar iframeSrc = props.attributes.iframeSrc;\n\n\t\treturn wp.element.createElement(\n\t\t\t'div',\n\t\t\t{ 'class': 'ose-google-docs-drawings' },\n\t\t\twp.element.createElement('img', { src: iframeSrc, width: '960', height: '720' })\n\t\t);\n\t}\n});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMjMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9zcmMvZ29vZ2xlLWRyYXdpbmdzL2luZGV4LmpzPzk0MDQiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBCTE9DSzogZW1iZWRwcmVzcy1ibG9ja3NcbiAqXG4gKiBSZWdpc3RlcmluZyBhIGJhc2ljIGJsb2NrIHdpdGggR3V0ZW5iZXJnLlxuICogU2ltcGxlIGJsb2NrLCByZW5kZXJzIGFuZCBzYXZlcyB0aGUgc2FtZSBjb250ZW50IHdpdGhvdXQgYW55IGludGVyYWN0aXZpdHkuXG4gKi9cblxuLy8gIEltcG9ydCBDU1MuXG5pbXBvcnQgJy4vc3R5bGUuc2Nzcyc7XG5pbXBvcnQgJy4vZWRpdG9yLnNjc3MnO1xuaW1wb3J0IGVkaXQgZnJvbSAnLi9lZGl0JztcbmltcG9ydCB7IGdvb2dsZURyYXdpbmdzSWNvbiB9IGZyb20gJy4uL2NvbW1vbi9pY29ucyc7XG52YXIgX18gPSB3cC5pMThuLl9fOyAvLyBJbXBvcnQgX18oKSBmcm9tIHdwLmkxOG5cblxudmFyIHJlZ2lzdGVyQmxvY2tUeX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gMjNcbi8vIG1vZHVsZSBjaHVua3MgPSAwIl0sIm1hcHBpbmdzIjoiQUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///23\n");
|
331 |
-
|
332 |
-
/***/ }),
|
333 |
-
/* 24 */
|
334 |
-
/*!****************************************!*\
|
335 |
-
!*** ./src/google-drawings/style.scss ***!
|
336 |
-
\****************************************/
|
337 |
-
/*! dynamic exports provided */
|
338 |
-
/***/ (function(module, exports) {
|
339 |
-
|
340 |
-
eval("// removed by extract-text-webpack-plugin//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMjQuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9zcmMvZ29vZ2xlLWRyYXdpbmdzL3N0eWxlLnNjc3M/YjBkOCJdLCJzb3VyY2VzQ29udGVudCI6WyIvLyByZW1vdmVkIGJ5IGV4dHJhY3QtdGV4dC13ZWJwYWNrLXBsdWdpblxuXG5cbi8vLy8vLy8vLy8vLy8vLy8vL1xuLy8gV0VCUEFDSyBGT09URVJcbi8vIC4vc3JjL2dvb2dsZS1kcmF3aW5ncy9zdHlsZS5zY3NzXG4vLyBtb2R1bGUgaWQgPSAyNFxuLy8gbW9kdWxlIGNodW5rcyA9IDAiXSwibWFwcGluZ3MiOiJBQUFBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///24\n");
|
341 |
-
|
342 |
-
/***/ }),
|
343 |
-
/* 25 */
|
344 |
-
/*!*****************************************!*\
|
345 |
-
!*** ./src/google-drawings/editor.scss ***!
|
346 |
-
\*****************************************/
|
347 |
-
/*! dynamic exports provided */
|
348 |
-
/***/ (function(module, exports) {
|
349 |
-
|
350 |
-
eval("// removed by extract-text-webpack-plugin//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMjUuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9zcmMvZ29vZ2xlLWRyYXdpbmdzL2VkaXRvci5zY3NzP2FkNWYiXSwic291cmNlc0NvbnRlbnQiOlsiLy8gcmVtb3ZlZCBieSBleHRyYWN0LXRleHQtd2VicGFjay1wbHVnaW5cblxuXG4vLy8vLy8vLy8vLy8vLy8vLy9cbi8vIFdFQlBBQ0sgRk9PVEVSXG4vLyAuL3NyYy9nb29nbGUtZHJhd2luZ3MvZWRpdG9yLnNjc3Ncbi8vIG1vZHVsZSBpZCA9IDI1XG4vLyBtb2R1bGUgY2h1bmtzID0gMCJdLCJtYXBwaW5ncyI6IkFBQUEiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///25\n");
|
351 |
-
|
352 |
-
/***/ }),
|
353 |
-
/* 26 */
|
354 |
-
/*!*************************************!*\
|
355 |
-
!*** ./src/google-drawings/edit.js ***!
|
356 |
-
\*************************************/
|
357 |
-
/*! exports provided: default */
|
358 |
-
/*! exports used: default */
|
359 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
360 |
-
|
361 |
-
"use strict";
|
362 |
-
eval("/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__common_embed_controls__ = __webpack_require__(/*! ../common/embed-controls */ 0);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__common_embed_loading__ = __webpack_require__(/*! ../common/embed-loading */ 1);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__common_embed_placeholder__ = __webpack_require__(/*! ../common/embed-placeholder */ 2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__common_Iframe__ = __webpack_require__(/*! ../common/Iframe */ 3);\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\n/**\n * Internal dependencies\n */\n\n\n\n\n\n/**\n * WordPress dependencies\n */\nvar __ = wp.i18n.__;\nvar _wp$element = wp.element,\n Component = _wp$element.Component,\n Fragment = _wp$element.Fragment;\n\nvar GoogleFormsEdit = function (_Component) {\n _inherits(GoogleFormsEdit, _Component);\n\n function GoogleFormsEdit() {\n _classCallCheck(this, GoogleFormsEdit);\n\n var _this = _possibleConstructorReturn(this, (GoogleFormsEdit.__proto__ || Object.getPrototypeOf(GoogleFormsEdit)).apply(this, arguments));\n\n _this.switchBackToURLInput = _this.switchBackToURLInput.bind(_this);\n _this.setUrl = _this.setUrl.bind(_this);\n _this.onLoad = _this.onLoad.bind(_this);\n _this.state = {\n editingURL: false,\n url: _this.props.attributes.url,\n fetching: true,\n cannotEmbed: false\n };\n return _this;\n }\n\n _createClass(GoogleFormsEdit, [{\n key: 'onLoad',\n value: function onLoad() {\n this.setState({\n fetching: false\n });\n }\n }, {\n key: 'decodeHTMLEntities',\n value: function decodeHTMLEntities(str) {\n if (str && typeof str === 'string') {\n // strip script/html tags\n str = str.replace(/<script[^>]*>([\\S\\s]*?)<\\/script>/gmi, '');\n str = str.replace(/<\\/?\\w(?:[^\"'>]|\"[^\"]*\"|'[^']*')*>/gmi, '');\n }\n return str;\n }\n }, {\n key: 'setUrl',\n value: function setUrl(event) {\n if (event) {\n event.preventDefault();\n }\n var url = this.state.url;\n var setAttributes = this.props.setAttributes;\n\n setAttributes({ url: url });\n if (url && url.match(/^http[s]?:\\/\\/((?:www\\.)?docs\\.google\\.com(?:.*)?(?:document|presentation|spreadsheets|forms|drawings)\\/[a-z0-9\\/\\?=_\\-\\.\\,&%\\$#\\@\\!\\+]*)/i)) {\n var iframeSrc = this.decodeHTMLEntities(url);\n var regEx = /google\\.com(?:.+)?(document|presentation|spreadsheets|forms|drawings)/i;\n var match = regEx.exec(iframeSrc);\n var type = match[1];\n if (type && type == 'drawings') {\n this.setState({ editingURL: false, cannotEmbed: false });\n setAttributes({ iframeSrc: iframeSrc });\n } else {\n this.setState({\n cannotEmbed: true,\n editingURL: true\n });\n }\n } else {\n this.setState({\n cannotEmbed: true,\n editingURL: true\n });\n }\n }\n }, {\n key: 'switchBackToURLInput',\n value: function switchBackToURLInput() {\n this.setState({ editingURL: true });\n }\n }, {\n key: 'render',\n value: function render() {\n var _this2 = this;\n\n var _state = this.state,\n url = _state.url,\n editingURL = _state.editingURL,\n fetching = _state.fetching,\n cannotEmbed = _state.cannotEmbed;\n var iframeSrc = this.props.attributes.iframeSrc;\n\n\n var label = __('Google Drawings URL (Get your link from File -> Publish to the web -> Link)');\n\n // No preview, or we can't embed the current URL, or we've clicked the edit button.\n if (!iframeSrc || editingURL) {\n return wp.element.createElement(__WEBPACK_IMPORTED_MODULE_2__common_embed_placeholder__[\"a\" /* default */], {\n label: label,\n onSubmit: this.setUrl,\n value: url,\n cannotEmbed: cannotEmbed,\n onChange: function onChange(event) {\n return _this2.setState({ url: event.target.value });\n }\n });\n } else {\n\n return wp.element.createElement(\n Fragment,\n null,\n fetching ? wp.element.createElement(__WEBPACK_IMPORTED_MODULE_1__common_embed_loading__[\"a\" /* default */], null) : null,\n wp.element.createElement('img', { src: iframeSrc, onLoad: this.onLoad, style: { display: fetching ? 'none' : '' }, width: '960', height: '720' }),\n wp.element.createElement(__WEBPACK_IMPORTED_MODULE_0__common_embed_controls__[\"a\" /* default */], {\n showEditButton: iframeSrc && !cannotEmbed,\n switchBackToURLInput: this.switchBackToURLInput\n })\n );\n }\n }\n }]);\n\n return GoogleFormsEdit;\n}(Component);\n\n;\n/* harmony default export */ __webpack_exports__[\"a\"] = (GoogleFormsEdit);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMjYuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9zcmMvZ29vZ2xlLWRyYXdpbmdzL2VkaXQuanM/NGU2ZiJdLCJzb3VyY2VzQ29udGVudCI6WyJ2YXIgX2NyZWF0ZUNsYXNzID0gZnVuY3Rpb24gKCkgeyBmdW5jdGlvbiBkZWZpbmVQcm9wZXJ0aW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gICB1cmw6IF90aGlzLnByb3BzLmF0dHJpYnV0ZXMudXJsLFxuICAgICAgICAgICAgZmV0Y2hpbmc6IHRydWUsXG4gICAgICAgICAgICBjYW5ub3RFbWJlZDogZmFsc2VcbiAgICAgICAgfTtcbiAgICAgICAgcmV0dXJuIF90aGlzO1xuICAgIH1cblxuICAgIF9jcmVhdGVDbGFzcyhHb29nbGVGb3Jtc0VkaXQsIFt7XG4gICAgICAgIGtleTogJ29uTG9hZCcsXG4gICAgICAgIHZhbHVlOiBmdW5jdGlvbiBvbkxvYWQoKSB7XG4gICAgICAgICAgICB0aGlzLnNldFN0YXRlKHtcbiAgICAgICAgICAgICAgICBmZXRjaGluZzogZmFsc2VcbiAgICAgICAgICAgIH0pO1xuICAgICAgICB9XG4gICAgfSwge1xuICAgICAgICBrZXk6ICdkZWNvZGVIVE1MRW50aXRpZXMnLFxuICAgICAgICB2YWx1ZTogZnVuY3Rpb24gZGVjb2RlSFRNTEVudGl0aWVzKHN0cikge1xuICAgICAgICAgICAgaWYgKHN0ciAmJiB0eXBlb2Ygc3RyID09PSAnc3RyaW5nJykge1xuICAgICAgICAgICAgICAgIC8vIHN0cmlwIHNjcmlwdC9odG1sIHRhZ3NcbiAgICAgICAgICAgICAgICBzdHIgPSBzdHIucmVwbGFjZSgvPHNjcmlwdFtePl0qPihbXFxTXFxzXSo/KTxcXC9zY3JpcHQ+L2dtaSwgJycpO1xuICAgICAgICAgICAgICAgIHN0ciA9IHN0ci5yZXBsYWNlKC88XFwvP1xcdyg/OlteXCInPl18XCJbXlwiXSpcInwnW14nXSonKSo+L2dtaSwgJycpO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgcmV0dXJuIHN0cjtcbiAgICAgICAgfVxuICAgIH0sIHtcbiAgICAgICAga2V5OiAnc2V0VXJsJyxcbiAgICAgICAgdmFsdWU6IGZ1bmN0aW9uIHNldFVybChldmVudCkge1xuICAgICAgICAgICAgaWYgKGV2ZW50KSB7XG4gICAgICAgICAgICAgIC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AgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMuc2V0U3RhdGUoe1xuICAgICAgICAgICAgICAgICAgICAgICAgY2Fubm90RW1iZWQ6IHRydWUsXG4gICAgICAgICAgICAgICAgICAgICAgICBlZGl0aW5nVVJMOiB0cnVlXG4gICAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgdGhpcy5zZXRTdGF0ZSh7XG4gICAgICAgICAgICAgICAgICAgIGNhbm5vdEVtYmVkOiB0cnVlLFxuICAgICAgICAgICAgICAgICAgICBlZGl0aW5nVVJMOiB0cnVlXG4gICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICB9LCB7XG4gICAgICAgIGtleTogJ3N3aXRjaEJhY2tUb1VSTElucHV0JyxcbiAgICAgICAgdmFsdWU6IGZ1bmN0aW9uIHN3aXRjaEJhY2tUb1VSTElucHV0KCkge1xuICAgICAgICAgICAgdGhpcy5zZXRTdGF0ZSh7IGVkaXRpbmdVUkw6IHRydWUgfSk7XG4gICAgICAgIH1cbiAgICB9LCB7XG4gICAgICAgIGtleTogJ3JlbmRlcicsXG4gICAgICAgIHZhbHVlOiBmdW5jdGlvbiByZW5kZXIoKSB7XG4gICAgICAgICAgICB2YXIgX3RoaXMyID0gdGhpcztcblxuICAgICAgICAgICAgdmFyIF9zdGF0ZSA9IHRoaXMuc3RhdGUsXG4gICAgICAgICAgICAgICAgdXJsID0gX3N0YXRlLnVybCxcbiAgICAgICAgICAgICAgICBlZGl0aW5nVVJMID0gX3N0YXRlLmVkaXRpbmdVUkwsXG4gICAgICAgICAgICAgICAgZmV0Y2hpbmcgPSBfc3RhdGUuZmV0Y2hpbmcsXG4gICAgICAgICAgICAgICAgY2Fubm90RW1iZWQgPSBfc3RhdGUuY2Fubm90RW1iZWQ7XG4gICAgICAgICAgICB2YXIgaWZyYW1lU3JjID0gdGhpcy5wcm9wcy5hdHRyaWJ1dGVzLmlmcmFtZVNyYztcblxuXG4gICAgICAgICAgICB2YXIgbGFiZWwgPSBfXygnR29vZ2xlIERyYXdpbmdzIFVSTCAoR2V0IHlvdXIgbGluayBmcm9tIEZpbGUgLT4gUHVibGlzaCB0byB0aGUgd2ViIC0+IExpbmspJyk7XG5cbiAgICAgICAgICAgIC8vIE5vIHByZXZpZXcsIG9yIHdlIGNhbid0IGVtYmVkIHRoZSBjdXJyZW50IFVSTCwgb3Igd2UndmUgY2xpY2tlZCB0aGUgZWRpdCBidXR0b24uXG4gICAgICAgICAgICBpZiAoIWlmcmFtZVNyYyB8fCBlZGl0aW5nVVJMKSB7XG4gICAgICAgICAgICAgICAgcmV0dXJuIHdwLmVsZW1lbnQuY3JlYXRlRWxlbWVudChFbWJlZFBsYWNlaG9sZGVyLCB7XG4gICAgICAgICAgICAgICAgICAgIGxhYmVsOiBsYWJlbCxcbiAgICAgICAgICAgICAgICAgICAgb25TdWJtaXQ6IHRoaXMuc2V0VXJsLFxuICAgICAgICAgICAgICAgICAgICB2YWx1ZTogdXJsLFxuICAgICAgICAgICAgICAgICAgICBjYW5ub3RFbWJlZDogY2Fubm90RW1iZWQsXG4gICAgICAgICAgICAgICAgICAgIG9uQ2hhbmdlOiBmdW5jdGlvbiBvbkNoYW5nZShldmVudCkge1xuICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIF90aGlzMi5zZXRTdGF0ZSh7IHVybDogZXZlbnQudGFyZ2V0LnZhbHVlIH0pO1xuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICB9IGVsc2Uge1xuXG4gICAgICAgICAgICAgICAgcmV0dXJuIHdwLmVsZW1lbnQuY3JlYXRlRWxlbWVudChcbiAgICAgICAgICAgICAgICAgICAgRnJhZ21lbnQsXG4gICAgICAgICAgICAgICAgICAgIG51bGwsXG4gICAgICAgICAgICAgICAgICAgIGZldGN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maps/index.js ***!
|
368 |
-
\**********************************/
|
369 |
-
/*! no exports provided */
|
370 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
371 |
-
|
372 |
-
"use strict";
|
373 |
-
eval("/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__style_scss__ = __webpack_require__(/*! ./style.scss */ 28);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__style_scss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__style_scss__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__editor_scss__ = __webpack_require__(/*! ./editor.scss */ 29);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__editor_scss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__editor_scss__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__edit__ = __webpack_require__(/*! ./edit */ 30);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__common_icons__ = __webpack_require__(/*! ../common/icons */ 4);\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n/**\n * BLOCK: embedpress-blocks\n *\n * Registering a basic block with Gutenberg.\n * Simple block, renders and saves the same content without any interactivity.\n */\n\n// Import CSS.\n\n\n\n\nvar __ = wp.i18n.__; // Import __() from wp.i18n\n\nvar registerBlockType = wp.blocks.registerBlockType; // Import registerBlockType() from wp.blocks\n\n/**\n * Register: aa Gutenberg Block.\n *\n * Registers a new block provided a unique name and an object defining its\n * behavior. Once registered, the block is made editor as an option to any\n * editor interface where blocks are implemented.\n *\n * @link https://wordpress.org/gutenberg/handbook/block-api/\n * @param {string} name Block name.\n * @param {Object} settings Block settings.\n * @return {?WPBlock} The block, if it has been successfully\n * registered; otherwise `undefined`.\n */\n\nregisterBlockType('embedpress/google-maps-block', {\n\t// Block name. Block names must be string that contains a namespace prefix. Example: my-plugin/my-custom-block.\n\ttitle: __('Google Maps'), // Block title.\n\ticon: __WEBPACK_IMPORTED_MODULE_3__common_icons__[\"d\" /* googleMapsIcon */], // Block icon from Dashicons → https://developer.wordpress.org/resource/dashicons/.\n\tcategory: 'embedpress', // Block category — Group blocks together based on common traits E.g. common, formatting, layout widgets, embed.\n\tkeywords: [__('embedpress'), __('google'), __('maps')],\n\tattributes: {\n\t\turl: {\n\t\t\ttype: 'string',\n\t\t\tdefault: ''\n\t\t},\n\t\tiframeSrc: {\n\t\t\ttype: 'string',\n\t\t\tdefault: ''\n\t\t}\n\t},\n\t/**\n * The edit function describes the structure of your block in the context of the editor.\n * This represents what the editor will render when the block is used.\n *\n * The \"edit\" property must be a valid function.\n *\n * @link https://wordpress.org/gutenberg/handbook/block-api/block-edit-save/\n */\n\tedit: __WEBPACK_IMPORTED_MODULE_2__edit__[\"a\" /* default */],\n\n\t/**\n * The save function defines the way in which the different attributes should be combined\n * into the final markup, which is then serialized by Gutenberg into post_content.\n *\n * The \"save\" property must be specified and must be a valid function.\n *\n * @link https://wordpress.org/gutenberg/handbook/block-api/block-edit-save/\n */\n\tsave: function save(props) {\n\t\tvar iframeSrc = props.attributes.iframeSrc;\n\n\t\treturn wp.element.createElement(\n\t\t\t'div',\n\t\t\t{ 'class': 'ose-google-maps' },\n\t\t\twp.element.createElement('iframe', _defineProperty({ src: iframeSrc, frameborder: '0', width: '600', height: '450' }, 'frameborder', '0'))\n\t\t);\n\t}\n});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMjcuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9zcmMvZ29vZ2xlLW1hcHMvaW5kZXguanM/MmU3OSJdLCJzb3VyY2VzQ29udGVudCI6WyJmdW5jdGlvbiBfZGVmaW5lUHJvcGVydHkob2JqLCBrZXksIHZhbHVlKSB7IGlmIChrZXkgaW4gb2JqKSB7IE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYm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7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///27\n");
|
374 |
-
|
375 |
-
/***/ }),
|
376 |
-
/* 28 */
|
377 |
-
/*!************************************!*\
|
378 |
-
!*** ./src/google-maps/style.scss ***!
|
379 |
-
\************************************/
|
380 |
-
/*! dynamic exports provided */
|
381 |
-
/***/ (function(module, exports) {
|
382 |
-
|
383 |
-
eval("// removed by extract-text-webpack-plugin//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMjguanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9zcmMvZ29vZ2xlLW1hcHMvc3R5bGUuc2Nzcz84MmZiIl0sInNvdXJjZXNDb250ZW50IjpbIi8vIHJlbW92ZWQgYnkgZXh0cmFjdC10ZXh0LXdlYnBhY2stcGx1Z2luXG5cblxuLy8vLy8vLy8vLy8vLy8vLy8vXG4vLyBXRUJQQUNLIEZPT1RFUlxuLy8gLi9zcmMvZ29vZ2xlLW1hcHMvc3R5bGUuc2Nzc1xuLy8gbW9kdWxlIGlkID0gMjhcbi8vIG1vZHVsZSBjaHVua3MgPSAwIl0sIm1hcHBpbmdzIjoiQUFBQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///28\n");
|
384 |
-
|
385 |
-
/***/ }),
|
386 |
-
/* 29 */
|
387 |
-
/*!*************************************!*\
|
388 |
-
!*** ./src/google-maps/editor.scss ***!
|
389 |
-
\*************************************/
|
390 |
-
/*! dynamic exports provided */
|
391 |
-
/***/ (function(module, exports) {
|
392 |
-
|
393 |
-
eval("// removed by extract-text-webpack-plugin//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMjkuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9zcmMvZ29vZ2xlLW1hcHMvZWRpdG9yLnNjc3M/NGNjMCJdLCJzb3VyY2VzQ29udGVudCI6WyIvLyByZW1vdmVkIGJ5IGV4dHJhY3QtdGV4dC13ZWJwYWNrLXBsdWdpblxuXG5cbi8vLy8vLy8vLy8vLy8vLy8vL1xuLy8gV0VCUEFDSyBGT09URVJcbi8vIC4vc3JjL2dvb2dsZS1tYXBzL2VkaXRvci5zY3NzXG4vLyBtb2R1bGUgaWQgPSAyOVxuLy8gbW9kdWxlIGNodW5rcyA9IDAiXSwibWFwcGluZ3MiOiJBQUFBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///29\n");
|
394 |
-
|
395 |
-
/***/ }),
|
396 |
-
/* 30 */
|
397 |
-
/*!*********************************!*\
|
398 |
-
!*** ./src/google-maps/edit.js ***!
|
399 |
-
\*********************************/
|
400 |
-
/*! exports provided: default */
|
401 |
-
/*! exports used: default */
|
402 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
403 |
-
|
404 |
-
"use strict";
|
405 |
-
eval("/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__common_embed_controls__ = __webpack_require__(/*! ../common/embed-controls */ 0);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__common_embed_loading__ = __webpack_require__(/*! ../common/embed-loading */ 1);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__common_embed_placeholder__ = __webpack_require__(/*! ../common/embed-placeholder */ 2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__common_Iframe__ = __webpack_require__(/*! ../common/Iframe */ 3);\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\n/**\n * Internal dependencies\n */\n\n\n\n\n\n/**\n * WordPress dependencies\n */\nvar __ = wp.i18n.__;\nvar _wp$element = wp.element,\n Component = _wp$element.Component,\n Fragment = _wp$element.Fragment;\n\nvar GoogleSlidesEdit = function (_Component) {\n _inherits(GoogleSlidesEdit, _Component);\n\n function GoogleSlidesEdit() {\n _classCallCheck(this, GoogleSlidesEdit);\n\n var _this = _possibleConstructorReturn(this, (GoogleSlidesEdit.__proto__ || Object.getPrototypeOf(GoogleSlidesEdit)).apply(this, arguments));\n\n _this.switchBackToURLInput = _this.switchBackToURLInput.bind(_this);\n _this.setUrl = _this.setUrl.bind(_this);\n _this.onLoad = _this.onLoad.bind(_this);\n _this.state = {\n editingURL: false,\n url: _this.props.attributes.url,\n fetching: true,\n cannotEmbed: false\n };\n return _this;\n }\n\n _createClass(GoogleSlidesEdit, [{\n key: 'onLoad',\n value: function onLoad() {\n this.setState({\n fetching: false\n });\n }\n }, {\n key: 'decodeHTMLEntities',\n value: function decodeHTMLEntities(str) {\n if (str && typeof str === 'string') {\n // strip script/html tags\n str = str.replace(/<script[^>]*>([\\S\\s]*?)<\\/script>/gmi, '');\n str = str.replace(/<\\/?\\w(?:[^\"'>]|\"[^\"]*\"|'[^']*')*>/gmi, '');\n }\n return str;\n }\n }, {\n key: 'setUrl',\n value: function setUrl(event) {\n if (event) {\n event.preventDefault();\n }\n var url = this.state.url;\n var setAttributes = this.props.setAttributes;\n\n setAttributes({ url: url });\n if (url && url.match(/^http[s]?:\\/\\/(?:(?:(?:www\\.|maps\\.)?(?:google\\.com?))|(?:goo\\.gl))(?:\\.[a-z]{2})?\\/(?:maps\\/)?(?:place\\/)?(?:[a-z0-9\\/%+\\-_]*)?([a-z0-9\\/%,+\\-_=!:@\\.&*\\$#?\\']*)/i)) {\n var iframeSrc = this.decodeHTMLEntities(url);\n /google\\.com(?:.+)?(document|presentation|spreadsheets|forms|drawings)/i;\n if (url.match('~(maps/embed|output=embed)~i')) {\n //do something\n } else {\n var regEx = /@(-?[0-9\\.]+,-?[0-9\\.]+).+,([0-9\\.]+[a-z])/i;\n var match = regEx.exec(iframeSrc);\n if (match && match.length > 1 && match[1] && match[2]) {\n iframeSrc = 'http://maps.google.com/maps?hl=en&ie=UTF8&ll=' + match[1] + '&spn=' + match[1] + '&t=m&z=' + Math.round(parseInt(match[2])) + '&output=embed';\n } else {\n this.setState({\n cannotEmbed: true,\n editingURL: true\n });\n }\n }\n this.setState({ editingURL: false, cannotEmbed: false });\n setAttributes({ iframeSrc: iframeSrc });\n } else {\n this.setState({\n cannotEmbed: true,\n editingURL: true\n });\n }\n }\n }, {\n key: 'switchBackToURLInput',\n value: function switchBackToURLInput() {\n this.setState({ editingURL: true });\n }\n }, {\n key: 'render',\n value: function render() {\n var _this2 = this;\n\n var _state = this.state,\n url = _state.url,\n editingURL = _state.editingURL,\n fetching = _state.fetching,\n cannotEmbed = _state.cannotEmbed;\n var iframeSrc = this.props.attributes.iframeSrc;\n\n\n var label = __('Google Maps URL');\n\n // No preview, or we can't embed the current URL, or we've clicked the edit button.\n if (!iframeSrc || editingURL) {\n return wp.element.createElement(__WEBPACK_IMPORTED_MODULE_2__common_embed_placeholder__[\"a\" /* default */], {\n label: label,\n onSubmit: this.setUrl,\n value: url,\n cannotEmbed: cannotEmbed,\n onChange: function onChange(event) {\n return _this2.setState({ url: event.target.value });\n }\n });\n } else {\n\n return wp.element.createElement(\n Fragment,\n null,\n fetching ? wp.element.createElement(__WEBPACK_IMPORTED_MODULE_1__common_embed_loading__[\"a\" /* default */], null) : null,\n wp.element.createElement(__WEBPACK_IMPORTED_MODULE_3__common_Iframe__[\"a\" /* default */], { src: iframeSrc, onLoad: this.onLoad, style: { display: fetching ? 'none' : '' }, frameborder: '0', width: '600', height: '450', allowfullscreen: 'true', mozallowfullscreen: 'true', webkitallowfullscreen: 'true' }),\n wp.element.createElement(__WEBPACK_IMPORTED_MODULE_0__common_embed_controls__[\"a\" /* default */], {\n showEditButton: iframeSrc && !cannotEmbed,\n switchBackToURLInput: this.switchBackToURLInput\n })\n );\n }\n }\n }]);\n\n return GoogleSlidesEdit;\n}(Component);\n\n;\n/* harmony default export */ __webpack_exports__[\"a\"] = (GoogleSlidesEdit);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMzAuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9zcmMvZ29vZ2xlLW1hcHMvZWRpdC5qcz83OTdkIl0sInNvdXJjZXNDb250ZW50IjpbInZhciBfY3JlYXRlQ2xhc3MgPSBmdW5jdGlvbiAoKSB7IGZ1bmN0aW9uIGRlZmluZVByb3BlcnRpZXModGFyZ2V0LCBwcm9wcykgeyBmb3IgKHZhciBpID0gMDs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lcy51cmwsXG4gICAgICAgICAgICBmZXRjaGluZzogdHJ1ZSxcbiAgICAgICAgICAgIGNhbm5vdEVtYmVkOiBmYWxzZVxuICAgICAgICB9O1xuICAgICAgICByZXR1cm4gX3RoaXM7XG4gICAgfVxuXG4gICAgX2NyZWF0ZUNsYXNzKEdvb2dsZVNsaWRlc0VkaXQsIFt7XG4gICAgICAgIGtleTogJ29uTG9hZCcsXG4gICAgICAgIHZhbHVlOiBmdW5jdGlvbiBvbkxvYWQoKSB7XG4gICAgICAgICAgICB0aGlzLnNldFN0YXRlKHtcbiAgICAgICAgICAgICAgICBmZXRjaGluZzogZmFsc2VcbiAgICAgICAgICAgIH0pO1xuICAgICAgICB9XG4gICAgfSwge1xuICAgICAgICBrZXk6ICdkZWNvZGVIVE1MRW50aXRpZXMnLFxuICAgICAgICB2YWx1ZTogZnVuY3Rpb24gZGVjb2RlSFRNTEVudGl0aWVzKHN0cikge1xuICAgICAgICAgICAgaWYgKHN0ciAmJiB0eXBlb2Ygc3RyID09PSAnc3RyaW5nJykge1xuICAgICAgICAgICAgICAgIC8vIHN0cmlwIHNjcmlwdC9odG1sIHRhZ3NcbiAgICAgICAgICAgICAgICBzdHIgPSBzdHIucmVwbGFjZSgvPHNjcmlwdFtePl0qPihbXFxTXFxzXSo/KTxcXC9zY3JpcHQ+L2dtaSwgJycpO1xuICAgICAgICAgICAgICAgIHN0ciA9IHN0ci5yZXBsYWNlKC88XFwvP1xcdyg/OlteXCInPl18XCJbXlwiXSpcInwnW14nXSonKSo+L2dtaSwgJycpO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgcmV0dXJuIHN0cjtcbiAgICAgICAgfVxuICAgIH0sIHtcbiAgICAgICAga2V5OiAnc2V0VXJsJyxcbiAgICAgICAgdmFsdWU6IGZ1bmN0aW9uIHNldFVybChldmVudCkge1xuICAgICAgICAgICAgaWYgKGV2ZW50KSB7XG4gICAgICAgICAgICAgICAgZXZlbnQucHJldmVudERlZmF1bHQoKTtcbi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GggPiAxICYmIG1hdGNoWzFdICYmIG1hdGNoWzJdKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICBpZnJhbWVTcmMgPSAnaHR0cDovL21hcHMuZ29vZ2xlLmNvbS9tYXBzP2hsPWVuJmllPVVURjgmbGw9JyArIG1hdGNoWzFdICsgJyZzcG49JyArIG1hdGNoWzFdICsgJyZ0PW0mej0nICsgTWF0aC5yb3VuZChwYXJzZUludChtYXRjaFsyXSkpICsgJyZvdXRwdXQ9ZW1iZWQnO1xuICAgICAgICAgICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5zZXRTdGF0ZSh7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgY2Fubm90RW1iZWQ6IHRydWUsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgZWRpdGluZ1VSTDogdHJ1ZVxuICAgICAgICAgICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgdGhpcy5zZXRTdGF0ZSh7IGVkaXRpbmdVUkw6IGZhbHNlLCBjYW5ub3RFbWJlZDogZmFsc2UgfSk7XG4gICAgICAgICAgICAgICAgc2V0QXR0cmlidXRlcyh7IGlmcmFtZVNyYzogaWZyYW1lU3JjIH0pO1xuICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICB0aGlzLnNldFN0YXRlKHtcbiAgICAgICAgICAgICAgICAgICAgY2Fubm90RW1iZWQ6IHRydWUsXG4gICAgICAgICAgICAgICAgICAgIGVkaXRpbmdVUkw6IHRydWVcbiAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgIH0sIHtcbiAgICAgICAga2V5OiAnc3dpdGNoQmFja1RvVVJMSW5wdXQnLFxuICAgICAgICB2YWx1ZTogZnVuY3Rpb24gc3dpdGNoQmFja1RvVVJMSW5wdXQoKSB7XG4gICA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hbm5vdEVtYmVkOiBjYW5ub3RFbWJlZCxcbiAgICAgICAgICAgICAgICAgICAgb25DaGFuZ2U6IGZ1bmN0aW9uIG9uQ2hhbmdlKGV2ZW50KSB7XG4gICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gX3RoaXMyLnNldFN0YXRlKHsgdXJsOiBldmVudC50YXJnZXQudmFsdWUgfSk7XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgIH0gZWxzZSB7XG5cbiAgICAgICAgICAgICAgICByZXR1cm4gd3AuZWxlbWVudC5jcmVhdGVFbGVtZW50KFxuICAgICAgICAgICAgICAgICAgICBGcmFnbWVudCxcbiAgICAgICAgICAgICAgICAgICAgbnVsbCxcbiAgICAgICAgICAgICAgICAgICAgZmV0Y2hpbmcgPyB3cC5lbGVtZW50LmNyZWF0ZUVsZW1lbnQoRW1iZWRMb2FkaW5nLCBudWxsKSA6IG51bGwsXG4gICAgICAgICAgICAgICAgICAgIHdwLmVsZW1lbnQuY3JlYXRlRWxlbWVudChJZnJhbWUsIHsgc3JjOiBpZnJhbWVTcmMsIG9uTG9hZDogdGhpcy5vbkxvYWQsIHN0eWxlOiB7IGRpc3BsYXk6IGZldGNoaW5nID8gJ25vbmUnIDogJycgfSwgZnJhbWVib3JkZXI6ICcwJywgd2lkdGg6ICc2MDAnLCBoZWlnaHQ6ICc0NTAnLCBhbGxvd2Z1bGxzY3JlZW46ICd0cnVlJywgbW96YWxsb3dmdWxsc2NyZWVuOiAndHJ1ZScsIHdlYmtpdGFsbG93ZnVsbHNjcmVlbjogJ3RydWUnIH0pLFxuICAgICAgICAgICAgICAgICAgICB3cC5lbGVtZW50LmNyZWF0ZUVsZW1lbnQoRW1iZWRDb250cm9scywge1xuICAgICAgICAgICAgICAgICAgICAgICAgc2hvd0VkaXRCdXR0b246IGlmcmFtZVNyYyAmJiAhY2Fubm90RW1iZWQsXG4gICAgICAgICAgICAgICAgICAgICAgICBz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Q0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///30\n");
|
406 |
-
|
407 |
-
/***/ }),
|
408 |
-
/* 31 */
|
409 |
-
/*!*****************************!*\
|
410 |
-
!*** ./src/twitch/index.js ***!
|
411 |
-
\*****************************/
|
412 |
-
/*! no exports provided */
|
413 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
414 |
-
|
415 |
-
"use strict";
|
416 |
-
eval("/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__style_scss__ = __webpack_require__(/*! ./style.scss */ 32);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__style_scss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__style_scss__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__editor_scss__ = __webpack_require__(/*! ./editor.scss */ 33);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__editor_scss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__editor_scss__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__edit__ = __webpack_require__(/*! ./edit */ 34);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__common_icons__ = __webpack_require__(/*! ../common/icons */ 4);\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\n/**\n * BLOCK: embedpress-blocks\n *\n * Registering a basic block with Gutenberg.\n * Simple block, renders and saves the same content without any interactivity.\n */\n\n// Import CSS.\n\n\n\n\nvar __ = wp.i18n.__; // Import __() from wp.i18n\n\nvar registerBlockType = wp.blocks.registerBlockType; // Import registerBlockType() from wp.blocks\n\n/**\n * Register: aa Gutenberg Block.\n *\n * Registers a new block provided a unique name and an object defining its\n * behavior. Once registered, the block is made editor as an option to any\n * editor interface where blocks are implemented.\n *\n * @link https://wordpress.org/gutenberg/handbook/block-api/\n * @param {string} name Block name.\n * @param {Object} settings Block settings.\n * @return {?WPBlock} The block, if it has been successfully\n * registered; otherwise `undefined`.\n */\n\nregisterBlockType('embedpress/twitch-block', {\n\t// Block name. Block names must be string that contains a namespace prefix. Example: my-plugin/my-custom-block.\n\ttitle: __('Twitch'), // Block title.\n\ticon: __WEBPACK_IMPORTED_MODULE_3__common_icons__[\"g\" /* twitchIcon */], // Block icon from Dashicons → https://developer.wordpress.org/resource/dashicons/.\n\tcategory: 'embedpress', // Block category — Group blocks together based on common traits E.g. common, formatting, layout widgets, embed.\n\tkeywords: [__('embedpress'), __('twitch')],\n\tattributes: {\n\t\turl: {\n\t\t\ttype: 'string',\n\t\t\tdefault: ''\n\t\t},\n\t\tiframeSrc: {\n\t\t\ttype: 'string',\n\t\t\tdefault: ''\n\t\t},\n\t\tattrs: {\n\t\t\ttype: 'string',\n\t\t\tdefault: ''\n\t\t}\n\t},\n\t/**\n * The edit function describes the structure of your block in the context of the editor.\n * This represents what the editor will render when the block is used.\n *\n * The \"edit\" property must be a valid function.\n *\n * @link https://wordpress.org/gutenberg/handbook/block-api/block-edit-save/\n */\n\tedit: __WEBPACK_IMPORTED_MODULE_2__edit__[\"a\" /* default */],\n\n\t/**\n * The save function defines the way in which the different attributes should be combined\n * into the final markup, which is then serialized by Gutenberg into post_content.\n *\n * The \"save\" property must be specified and must be a valid function.\n *\n * @link https://wordpress.org/gutenberg/handbook/block-api/block-edit-save/\n */\n\tsave: function save(props) {\n\t\tvar _props$attributes = props.attributes,\n\t\t iframeSrc = _props$attributes.iframeSrc,\n\t\t attrs = _props$attributes.attrs;\n\n\t\treturn wp.element.createElement(\n\t\t\t'div',\n\t\t\t{ 'class': 'ose-twitch-presentation' },\n\t\t\twp.element.createElement('iframe', _extends({ src: iframeSrc }, attrs, { frameborder: '0', width: '600', height: '450' }))\n\t\t);\n\t}\n});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMzEuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9zcmMvdHdpdGNoL2luZGV4LmpzP2Y4ODciXSwic291cmNlc0NvbnRlbnQiOlsidmFyIF9leHRlbmRzID0gT2JqZWN0LmFzc2lnbiB8fCBmdW5jdGlvbiAodGFyZ2V0KSB7IGZvciAodmFyIGkgPSAxOyBpIDwgYXJndW1lbnRzLmxlbmd0aDsgaSsrKSB7IHZhciBzb3VyY2UgPSBhcmd1bWVudHNbaV07IGZvciAodmFyIGtleSBpbiBzb3VyY2UpIHsgaWYgKE9iamVjdC5wcm90b3R5cGUuaGFzT3duUHJvcGVydHkuY2FsbChzb3VyY2UsIGtleSkpIHsgdGFyZ2V0W2tleV0gPSBzb3VyY2Vba2V5XTsgfSB9IH0gcmV0dXJuIHRhcmdldDsgfTtcblxuLyoqXG4gKiBCTE9DSzogZW1iZWRwcmVzcy1ibG9ja3NcbiAqXG4gKiBSZWdpc3RlcmluZyBhIGJhc2ljIGJsb2NrIHdpdGggR3V0ZW5iZXJnLlxuICogU2ltcGxlIGJsb2NrL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UNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///31\n");
|
417 |
-
|
418 |
-
/***/ }),
|
419 |
-
/* 32 */
|
420 |
-
/*!*******************************!*\
|
421 |
-
!*** ./src/twitch/style.scss ***!
|
422 |
-
\*******************************/
|
423 |
-
/*! dynamic exports provided */
|
424 |
-
/***/ (function(module, exports) {
|
425 |
-
|
426 |
-
eval("// removed by extract-text-webpack-plugin//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMzIuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9zcmMvdHdpdGNoL3N0eWxlLnNjc3M/Y2FlNyJdLCJzb3VyY2VzQ29udGVudCI6WyIvLyByZW1vdmVkIGJ5IGV4dHJhY3QtdGV4dC13ZWJwYWNrLXBsdWdpblxuXG5cbi8vLy8vLy8vLy8vLy8vLy8vL1xuLy8gV0VCUEFDSyBGT09URVJcbi8vIC4vc3JjL3R3aXRjaC9zdHlsZS5zY3NzXG4vLyBtb2R1bGUgaWQgPSAzMlxuLy8gbW9kdWxlIGNodW5rcyA9IDAiXSwibWFwcGluZ3MiOiJBQUFBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///32\n");
|
427 |
-
|
428 |
-
/***/ }),
|
429 |
-
/* 33 */
|
430 |
-
/*!********************************!*\
|
431 |
-
!*** ./src/twitch/editor.scss ***!
|
432 |
-
\********************************/
|
433 |
-
/*! dynamic exports provided */
|
434 |
-
/***/ (function(module, exports) {
|
435 |
-
|
436 |
-
eval("// removed by extract-text-webpack-plugin//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMzMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9zcmMvdHdpdGNoL2VkaXRvci5zY3NzPzI2ZTkiXSwic291cmNlc0NvbnRlbnQiOlsiLy8gcmVtb3ZlZCBieSBleHRyYWN0LXRleHQtd2VicGFjay1wbHVnaW5cblxuXG4vLy8vLy8vLy8vLy8vLy8vLy9cbi8vIFdFQlBBQ0sgRk9PVEVSXG4vLyAuL3NyYy90d2l0Y2gvZWRpdG9yLnNjc3Ncbi8vIG1vZHVsZSBpZCA9IDMzXG4vLyBtb2R1bGUgY2h1bmtzID0gMCJdLCJtYXBwaW5ncyI6IkFBQUEiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///33\n");
|
437 |
-
|
438 |
-
/***/ }),
|
439 |
-
/* 34 */
|
440 |
-
/*!****************************!*\
|
441 |
-
!*** ./src/twitch/edit.js ***!
|
442 |
-
\****************************/
|
443 |
-
/*! exports provided: default */
|
444 |
-
/*! exports used: default */
|
445 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
446 |
-
|
447 |
-
"use strict";
|
448 |
-
eval("/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__common_embed_controls__ = __webpack_require__(/*! ../common/embed-controls */ 0);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__common_embed_loading__ = __webpack_require__(/*! ../common/embed-loading */ 1);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__common_embed_placeholder__ = __webpack_require__(/*! ../common/embed-placeholder */ 2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__common_Iframe__ = __webpack_require__(/*! ../common/Iframe */ 3);\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\n/**\n * Internal dependencies\n */\n\n\n\n\n\n/**\n * WordPress dependencies\n */\nvar __ = wp.i18n.__;\nvar _wp$element = wp.element,\n Component = _wp$element.Component,\n Fragment = _wp$element.Fragment;\n\nvar TwitchEdit = function (_Component) {\n _inherits(TwitchEdit, _Component);\n\n function TwitchEdit() {\n _classCallCheck(this, TwitchEdit);\n\n var _this = _possibleConstructorReturn(this, (TwitchEdit.__proto__ || Object.getPrototypeOf(TwitchEdit)).apply(this, arguments));\n\n _this.switchBackToURLInput = _this.switchBackToURLInput.bind(_this);\n _this.setUrl = _this.setUrl.bind(_this);\n _this.onLoad = _this.onLoad.bind(_this);\n _this.state = {\n editingURL: false,\n url: _this.props.attributes.url,\n fetching: true,\n cannotEmbed: false\n };\n return _this;\n }\n\n _createClass(TwitchEdit, [{\n key: 'onLoad',\n value: function onLoad() {\n this.setState({\n fetching: false\n });\n }\n }, {\n key: 'decodeHTMLEntities',\n value: function decodeHTMLEntities(str) {\n if (str && typeof str === 'string') {\n // strip script/html tags\n str = str.replace(/<script[^>]*>([\\S\\s]*?)<\\/script>/gmi, '');\n str = str.replace(/<\\/?\\w(?:[^\"'>]|\"[^\"]*\"|'[^']*')*>/gmi, '');\n }\n return str;\n }\n }, {\n key: 'setUrl',\n value: function setUrl(event) {\n if (event) {\n event.preventDefault();\n }\n var url = this.state.url;\n var setAttributes = this.props.setAttributes;\n\n setAttributes({ url: url });\n var regEx = /http[s]?:\\/\\/(?:www\\.|clips\\.)twitch\\.tv\\/([0-9a-zA-Z\\-\\_]+)\\/?(chat\\/?$|[0-9a-z\\-\\_]*)?/;\n if (url && url.match(regEx)) {\n var iframeSrc = this.decodeHTMLEntities(url);\n var match = regEx.exec(iframeSrc);\n var channelName = match[1];\n console.log(channelName);\n var type = \"channel\";\n var attrs;\n if (url.indexOf('clips.twitch.tv') > -1) {\n type = 'clip';\n } else if (url.indexOf('/videos/') > -1) {\n type = 'video';\n } else if (url.indexOf('#/chat$#') > -1) {\n type = 'chat';\n }\n console.log(type);\n switch (type) {\n case 'channel':\n iframeSrc = 'https://player.twitch.tv/?channel=' + channelName;\n attrs = {\n scrolling: \"no\",\n frameborder: \"0\",\n allowfullscreen: \"true\"\n };\n break;\n\n case 'clip':\n iframeSrc = 'https://clips.twitch.tv/embed?clip=' + channelName + '&autoplay=false';\n attrs = {\n scrolling: \"no\",\n frameborder: \"0\",\n allowfullscreen: \"true\"\n };\n break;\n\n case 'video':\n channelName = match[2];\n iframeSrc = 'https://player.twitch.tv/?video=' + channelName;\n attrs = {\n scrolling: \"no\",\n frameborder: \"0\",\n allowfullscreen: \"true\"\n };\n break;\n\n case 'chat':\n iframeSrc = 'http://www.twitch.tv/embed/' + channelName + '/chat';\n attrs = {\n scrolling: \"yes\",\n frameborder: \"0\",\n allowfullscreen: \"true\",\n id: \"'\" + channelName + \"'\"\n\n };\n break;\n }\n console.log(iframeSrc);\n this.setState({ editingURL: false, cannotEmbed: false });\n setAttributes({ iframeSrc: iframeSrc, attrs: attrs });\n } else {\n this.setState({\n cannotEmbed: true,\n editingURL: true\n });\n }\n }\n }, {\n key: 'switchBackToURLInput',\n value: function switchBackToURLInput() {\n this.setState({ editingURL: true });\n }\n }, {\n key: 'render',\n value: function render() {\n var _this2 = this;\n\n var _state = this.state,\n url = _state.url,\n editingURL = _state.editingURL,\n fetching = _state.fetching,\n cannotEmbed = _state.cannotEmbed;\n var _props$attributes = this.props.attributes,\n iframeSrc = _props$attributes.iframeSrc,\n attrs = _props$attributes.attrs;\n\n\n var label = __('Twitch URL');\n // No preview, or we can't embed the current URL, or we've clicked the edit button.\n if (!iframeSrc || editingURL) {\n return wp.element.createElement(__WEBPACK_IMPORTED_MODULE_2__common_embed_placeholder__[\"a\" /* default */], {\n label: label,\n onSubmit: this.setUrl,\n value: url,\n cannotEmbed: cannotEmbed,\n onChange: function onChange(event) {\n return _this2.setState({ url: event.target.value });\n }\n });\n } else {\n return wp.element.createElement(\n Fragment,\n null,\n fetching ? wp.element.createElement(__WEBPACK_IMPORTED_MODULE_1__common_embed_loading__[\"a\" /* default */], null) : null,\n wp.element.createElement(__WEBPACK_IMPORTED_MODULE_3__common_Iframe__[\"a\" /* default */], _extends({ src: iframeSrc }, attrs, { onLoad: this.onLoad, style: { display: fetching ? 'none' : '' }, width: '600', height: '450' })),\n wp.element.createElement(__WEBPACK_IMPORTED_MODULE_0__common_embed_controls__[\"a\" /* default */], {\n showEditButton: iframeSrc && !cannotEmbed,\n switchBackToURLInput: this.switchBackToURLInput\n })\n );\n }\n }\n }]);\n\n return TwitchEdit;\n}(Component);\n\n;\n/* harmony default export */ __webpack_exports__[\"a\"] = (TwitchEdit);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMzQuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9zcmMvdHdpdGNoL2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BzY3JpcHQvaHRtbCB0YWdzXG4gICAgICAgICAgICAgICAgc3RyID0gc3RyLnJlcGxhY2UoLzxzY3JpcHRbXj5dKj4oW1xcU1xcc10qPyk8XFwvc2NyaXB0Pi9nbWksICcnKTtcbiAgICAgICAgICAgICAgICBzdHIgPSBzdHIucmVwbGFjZSgvPFxcLz9cXHcoPzpbXlwiJz5dfFwiW15cIl0qXCJ8J1teJ10qJykqPi9nbWksICcnKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIHJldHVybiBzdHI7XG4gICAgICAgIH1cbiAgICB9LCB7XG4gICAgICAgIGtleTogJ3NldFVybCcsXG4gICAgICAgIHZhbHVlOiBmdW5jdGlvbiBzZXRVcmwoZXZlbnQpIHtcbiAgICAgICAgICAgIGlmIChldmVudCkge1xuICAgICAgICAgICAgICAgIGV2ZW50LnByZXZlbnREZWZhdWx0KCk7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICB2YXIgdXJsID0gdGhpcy5zdGF0ZS51cmw7XG4gICAgICAgICAgICB2YXIgc2V0QXR0cmlidXRlcyA9IHRoaXMucHJvcHMuc2V0QXR0cmlidXRlcztcblxuICAgICAgICAgICAgc2V0QXR0cmlidXRlcyh7IHVybDogdXJsIH0pO1xuICAgICAgICAgICAgdmFyIHJlZ0V4ID0gL2h0dHBbc10/OlxcL1xcLyg/Ond3d1xcLnxjbGlwc1xcLil0d2l0Y2hcXC50dlxcLyhbMC05YS16QS1aXFwtXFxfXSspXFwvPyhjaGF0XFwvPyR8WzAtOWEtelxcLVxcX10qKT8vO1xuICAgICAgICAgICAgaWYgKHVybCAmJiB1cmwubWF0Y2gocmVnRXgpKSB7XG4gICAgICAgICAgICAgICAgdmFyIGlmcmFtZVNyYyA9IHRoaXMuZGVjb2RlSFRNTEVudGl0aWVzKHVybCk7XG4gICAgICAgICAgICAgICAgdmFyIG1hdGNoID0gcmVnRXguZXhlYyhpZnJhbWVTcmMpO1xuICAgICAgICAgICAgICAgIHZhciBjaGFubmVsTmFtZSA9IG1hdGNoWzFdO1xuICAgICAgICAgICAgICAgIGNvbnNvbGUubG9nKGNoYW5uZWxOYW1lKTtcbiAgICAgICAgICAgICAgICB2YXIgdHlwZSA9IFwiY2hhbm5lbFwiO1xuICAgICAgICAgICAgICAgIHZhciBhdHRycztcbiAgICAgICAgICAgICAgICBpZiAodXJsLmluZGV4T2YoJ2NsaXBzLnR3aXRjaC50dicpID4gLTEpIHtcbiAgICAgICAgICAgICAgICAgICAgdHlwZSA9ICdjbGlwJztcbiAgICAgICAgICAgICAgICB9IGVsc2UgaWYgKHVybC5pbmRleE9mKCcvdmlkZW9zLycpID4gLTEpIHtcbiAgICAgICAgICAgICAgICAgICAgdHlwZSA9ICd2aWRlbyc7XG4gICAgICAgICAgICAgICAgfSBlbHNlIGlmICh1cmwuaW5kZXhPZignIy9jaGF0JCMnKSA+IC0xKSB7XG4gICAgICAgICAgICAgICAgICAgIHR5cGUgPSAnY2hhdCc7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIGNvbnNvbGUubG9nKHR5cGUpO1xuICAgICAgICAgICAgICAgIHN3aXRjaCAodHlwZSkge1xuICAgICAgICAgICAgICAgICAgICBjYXNlICdjaGFubmVsJzpcbiAgICAgICAgICAgICAgICAgICAgICAgIGlmcmFtZVNyYyA9ICdodHRwczovL3BsYXllci50d2l0Y2gudHYvP2NoYW5uZWw9JyArIGNoYW5uZWxOYW1lO1xuICAgICAgICAgICAgICAgICAgICAgICAgYXR0cnMgPSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgc2Nyb2xsaW5nOiBcIm5vXCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgZnJhbWVib3JkZXI6IFwiMFwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGFsbG93ZnVsbHNjcmVlbjogXCJ0cnVlXCJcbiAgICAgICAgICAgICAgICAgICAgICAgIH07XG4gICAgICAgICAgICAgICAgICAgICAgICBicmVhaztcblxuICAgICAgICAgICAgICAgICAgICBjYXNlICdjbGlwJzpcbiAgICAgICAgICAgICAgICAgICAgICAgIGlmcmFtZVNyYyA9ICdodHRwczovL2NsaXBzLnR3aXRjaC50di9lbWJlZD9jbGlwPScgKyBjaGFubmVsTmFtZSArICcmYXV0b3BsYXk9ZmFsc2UnO1xuICAgICAgICAgICAgICAgICAgICAgICAgYXR0cnMgPSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgc2Nyb2xsaW5nOiBcIm5vXCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgZnJhbWVib3JkZXI6IFwiMFwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGFsbG93ZnVsbHNjcmVlbjogXCJ0cnVlXCJcbiAgICAgICAgICAgICAgICAgICAgICAgIH07XG4gICAgICAgICAgICAgICAgICAgICAgICBicmVhaztcblxuICAgICAgICAgICAgICAgICAgICBjYXNlICd2aWRlbyc6XG4gICAgICAgICAgICAgICAgICAgICAgICBjaGFubmVsTmFtZSA9IG1hdGNoWzJdO1xuICAgICAgICAgICAgICAgICAgICAgICAgaWZyYW1lU3JjID0gJ2h0dHBzOi8vcGxheWVyLnR3aXRjaC50di8/dmlkZW89JyArIGNoYW5uZWxOYW1lO1xuICAgICAgICAgICAgICAgICAgICAgICAgYXR0cnMgPSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgc2Nyb2xsaW5nOiBcIm5vXCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgZnJhbWVib3JkZXI6IFwiMFwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGFsbG93ZnVsbHNjcmVlbjogXCJ0cnVlXCJcbiAgICAgICAgICAgICAgICAgICAgICAgIH07XG4gICAgICAgICAgICAgICAgICAgICAgICBicmVhaztcblxuICAgICAgICAgICAgICAgICAgICBjYXNlICdjaGF0JzpcbiAgICAgICAgICAgICAgICAgICAgICAgIGlmcmFtZVNyYyA9ICdodHRwOi8vd3d3LnR3aXRjaC50di9lbWJlZC8nICsgY2hhbm5lbE5hbWUgKyAnL2NoYXQnO1xuICAgICAgICAgICAgICAgICAgICAgICAgYXR0cnMgPSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgc2Nyb2xsaW5nOiBcInllc1wiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGZyYW1lYm9yZGVyOiBcIjBcIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBhbGxvd2Z1bGxzY3JlZW46IFwidHJ1ZVwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlkOiBcIidcIiArIGNoYW5uZWxOYW1lICsgXCInXCJcblxuICAgICAgICAgICAgICAgICAgICAgICAgfTtcbiAgICAgICAgICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICBjb25zb2xlLmxvZyhpZnJhbWVTcmMpO1xuICAgICAgICAgICAgICAgIHRoaXMuc2V0U3RhdGUoeyBlZGl0aW5nVVJMOiBmYWxzZSwgY2Fubm90RW1iZWQ6IGZhbHNlIH0pO1xuICAgICAgICAgICAgICAgIHNldEF0dHJpYnV0ZXMoeyBpZnJhbWVTcmM6IGlmcmFtZVNyYywgYXR0cnM6IGF0dHJzIH0pO1xuICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICB0aGlzLnNldFN0YXRlKHtcbiAgICAgICAgICAgICAgICAgICAgY2Fubm90RW1iZWQ6IHRydWUsXG4gICAgICAgICAgICAgICAgICAgIGVkaXRpbmdVUkw6IHRydWVcbiAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgIH0sIHtcbiAgICAgICAga2V5OiAnc3dpdGNoQmFja1RvVVJMSW5wdXQnLFxuICAgICAgICB2YWx1ZTogZnVuY3Rpb24gc3dpdGNoQmFja1RvVVJMSW5wdXQoKSB7XG4gICAgICAgICAgICB0aGlzLnNldFN0YXRlKHsgZWRpdGluZ1VSTDogd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XRVcmwsXG4gICAgICAgICAgICAgICAgICAgIHZhbHVlOiB1cmwsXG4gICAgICAgICAgICAgICAgICAgIGNhbm5vdEVtYmVkOiBjYW5ub3RFbWJlZCxcbiAgICAgICAgICAgICAgICAgICAgb25DaGFuZ2U6IGZ1bmN0aW9uIG9uQ2hhbmdlKGV2ZW50KSB7XG4gICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gX3RoaXMyLnNldFN0YXRlKHsgdXJsOiBldmVudC50YXJnZXQudmFsdWUgfSk7XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgcmV0dXJuIHdwLmVsZW1lbnQuY3JlYXRlRWxlbWVudChcbiAgICAgICAgICAgICAgICAgICAgRnJhZ21lbnQsXG4gICAgICAgICAgICAgICAgICAgIG51bGwsXG4gICAgICAgICAgICAgICAgICAgIGZldGNoaW5nID8gd3AuZWxlbWVudC5jcmVhdGVFbGVtZW50KEVtYmVkTG9hZGluZywgbnVsbCkgOiBudWxsLFxuICAgICAgICAgICAgICAgICAgICB3cC5lbGVtZW50LmNyZWF0ZUVsZW1lbnQoSWZyYW1lLCBfZXh0ZW5kcyh7IHNyYzogaWZyYW1lU3JjIH0sIGF0dHJzLCB7IG9uTG9hZDogdGhpcy5vbkxvYWQsIHN0eWxlOiB7IGRpc3BsYXk6IGZldGNoaW5nID8gJ25vbmUnIDogJycgfSwgd2lkdGg6ICc2MDAnLCBoZWlnaHQ6ICc0NTAnIH0pKSxcbiAgICAgICAgICAgICAgICAgICAgd3AuZWxlbWVudC5jcmVhdGVFbGVtZW50KEVtYmVkQ29udHJvbHMsIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHNob3dFZGl0QnV0dG9uOiBpZnJhbWVTcmMgJiYgIWNhbm5vdEVtYmVkLFxuICAgICAgICAgICAgICAgICAgICAgICAgc3dpdGNoQmFja1RvVVJMSW5wdXQ6IHRoaX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BQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///34\n");
|
449 |
-
|
450 |
-
/***/ }),
|
451 |
-
/* 35 */
|
452 |
-
/*!*****************************!*\
|
453 |
-
!*** ./src/wistia/index.js ***!
|
454 |
-
\*****************************/
|
455 |
-
/*! no exports provided */
|
456 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
457 |
-
|
458 |
-
"use strict";
|
459 |
-
eval("/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__style_scss__ = __webpack_require__(/*! ./style.scss */ 36);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__style_scss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__style_scss__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__editor_scss__ = __webpack_require__(/*! ./editor.scss */ 37);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__editor_scss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__editor_scss__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__edit__ = __webpack_require__(/*! ./edit */ 38);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__common_icons__ = __webpack_require__(/*! ../common/icons */ 4);\n/**\n * BLOCK: embedpress-blocks\n *\n * Registering a basic block with Gutenberg.\n * Simple block, renders and saves the same content without any interactivity.\n */\n\n// Import CSS.\n\n\n\n\nvar __ = wp.i18n.__; // Import __() from wp.i18n\n\nvar registerBlockType = wp.blocks.registerBlockType; // Import registerBlockType() from wp.blocks\n\n/**\n * Register: aa Gutenberg Block.\n *\n * Registers a new block provided a unique name and an object defining its\n * behavior. Once registered, the block is made editor as an option to any\n * editor interface where blocks are implemented.\n *\n * @link https://wordpress.org/gutenberg/handbook/block-api/\n * @param {string} name Block name.\n * @param {Object} settings Block settings.\n * @return {?WPBlock} The block, if it has been successfully\n * registered; otherwise `undefined`.\n */\n\nregisterBlockType('embedpress/wistia-block', {\n\t// Block name. Block names must be string that contains a namespace prefix. Example: my-plugin/my-custom-block.\n\ttitle: __('Wistia'), // Block title.\n\ticon: __WEBPACK_IMPORTED_MODULE_3__common_icons__[\"h\" /* wistiaIcon */], // Block icon from Dashicons → https://developer.wordpress.org/resource/dashicons/.\n\tcategory: 'embedpress', // Block category — Group blocks together based on common traits E.g. common, formatting, layout widgets, embed.\n\tkeywords: [__('embedpress'), __('wistia')],\n\tedit: __WEBPACK_IMPORTED_MODULE_2__edit__[\"a\" /* default */],\n\tsave: function save(props) {\n\t\treturn null;\n\t},\n\tdeprecated: [{\n\t\tattributes: {\n\t\t\turl: {\n\t\t\t\ttype: 'string',\n\t\t\t\tdefault: ''\n\t\t\t},\n\t\t\tiframeSrc: {\n\t\t\t\ttype: 'string',\n\t\t\t\tdefault: ''\n\t\t\t}\n\t\t},\n\t\tedit: __WEBPACK_IMPORTED_MODULE_2__edit__[\"a\" /* default */],\n\t\t/**\n * The save function defines the way in which the different attributes should be combined\n * into the final markup, which is then serialized by Gutenberg into post_content.\n *\n * The \"save\" property must be specified and must be a valid function.\n *\n * @link https://wordpress.org/gutenberg/handbook/block-api/block-edit-save/\n */\n\t\tsave: function save(props) {\n\t\t\tvar iframeSrc = props.attributes.iframeSrc;\n\n\t\t\treturn wp.element.createElement(\n\t\t\t\t'div',\n\t\t\t\t{ 'class': 'ose-wistia' },\n\t\t\t\twp.element.createElement('iframe', { src: iframeSrc,\n\t\t\t\t\tallowtransparency: 'true',\n\t\t\t\t\tframeborder: '0',\n\t\t\t\t\t'class': 'wistia_embed',\n\t\t\t\t\tname: 'wistia_embed',\n\t\t\t\t\twidth: '600', height: '330' })\n\t\t\t);\n\t\t}\n\t}]\n});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMzUuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9zcmMvd2lzdGlhL2luZGV4LmpzPzVmN2QiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBCTE9DSzogZW1iZWRwcmVzcy1ibG9ja3NcbiAqXG4gKiBSZWdpc3RlcmluZyBhIGJhc2ljIGJsb2NrIHdpdGggR3V0ZW5iZXJnLlxuICogU2ltcGxlIGJsb2NrLCByZW5kZXJzIGFuZCBzYXZlcyB0aGUgc2FtZSBjb250ZW50IHdpdGhvdXQgYW55IGludGVyYWN0aXZpdHkuXG4gKi9cblxuLy8gIEltcG9ydCBDU1MuXG5pbXBvcnQgJy4vc3R5bGUuc2Nzcyc7XG5pbXBvcnQgJy4vZWRpdG9yLnNjc3MnO1xuaW1wb3J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bi8vIC4vc3JjL3dpc3RpYS9pbmRleC5qc1xuLy8gbW9kdWxlIGlkID0gMzVcbi8vIG1vZHVsZSBjaHVua3MgPSAwIl0sIm1hcHBpbmdzIjoiQUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///35\n");
|
460 |
-
|
461 |
-
/***/ }),
|
462 |
-
/* 36 */
|
463 |
-
/*!*******************************!*\
|
464 |
-
!*** ./src/wistia/style.scss ***!
|
465 |
-
\*******************************/
|
466 |
-
/*! dynamic exports provided */
|
467 |
-
/***/ (function(module, exports) {
|
468 |
-
|
469 |
-
eval("// removed by extract-text-webpack-plugin//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMzYuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9zcmMvd2lzdGlhL3N0eWxlLnNjc3M/MWI3ZiJdLCJzb3VyY2VzQ29udGVudCI6WyIvLyByZW1vdmVkIGJ5IGV4dHJhY3QtdGV4dC13ZWJwYWNrLXBsdWdpblxuXG5cbi8vLy8vLy8vLy8vLy8vLy8vL1xuLy8gV0VCUEFDSyBGT09URVJcbi8vIC4vc3JjL3dpc3RpYS9zdHlsZS5zY3NzXG4vLyBtb2R1bGUgaWQgPSAzNlxuLy8gbW9kdWxlIGNodW5rcyA9IDAiXSwibWFwcGluZ3MiOiJBQUFBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///36\n");
|
470 |
-
|
471 |
-
/***/ }),
|
472 |
-
/* 37 */
|
473 |
-
/*!********************************!*\
|
474 |
-
!*** ./src/wistia/editor.scss ***!
|
475 |
-
\********************************/
|
476 |
-
/*! dynamic exports provided */
|
477 |
-
/***/ (function(module, exports) {
|
478 |
-
|
479 |
-
eval("// removed by extract-text-webpack-plugin//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMzcuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9zcmMvd2lzdGlhL2VkaXRvci5zY3NzPzRmODUiXSwic291cmNlc0NvbnRlbnQiOlsiLy8gcmVtb3ZlZCBieSBleHRyYWN0LXRleHQtd2VicGFjay1wbHVnaW5cblxuXG4vLy8vLy8vLy8vLy8vLy8vLy9cbi8vIFdFQlBBQ0sgRk9PVEVSXG4vLyAuL3NyYy93aXN0aWEvZWRpdG9yLnNjc3Ncbi8vIG1vZHVsZSBpZCA9IDM3XG4vLyBtb2R1bGUgY2h1bmtzID0gMCJdLCJtYXBwaW5ncyI6IkFBQUEiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///37\n");
|
480 |
-
|
481 |
-
/***/ }),
|
482 |
-
/* 38 */
|
483 |
-
/*!****************************!*\
|
484 |
-
!*** ./src/wistia/edit.js ***!
|
485 |
-
\****************************/
|
486 |
-
/*! exports provided: default */
|
487 |
-
/*! exports used: default */
|
488 |
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
489 |
-
|
490 |
-
"use strict";
|
491 |
-
eval("/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__common_embed_controls__ = __webpack_require__(/*! ../common/embed-controls */ 0);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__common_embed_loading__ = __webpack_require__(/*! ../common/embed-loading */ 1);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__common_embed_placeholder__ = __webpack_require__(/*! ../common/embed-placeholder */ 2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__common_Iframe__ = __webpack_require__(/*! ../common/Iframe */ 3);\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\n/**\n * Internal dependencies\n */\n\n\n\n\n\n/**\n * WordPress dependencies\n */\nvar __ = wp.i18n.__;\nvar _wp$element = wp.element,\n Component = _wp$element.Component,\n Fragment = _wp$element.Fragment;\n\nvar WistiaEdit = function (_Component) {\n _inherits(WistiaEdit, _Component);\n\n function WistiaEdit() {\n _classCallCheck(this, WistiaEdit);\n\n var _this = _possibleConstructorReturn(this, (WistiaEdit.__proto__ || Object.getPrototypeOf(WistiaEdit)).apply(this, arguments));\n\n _this.switchBackToURLInput = _this.switchBackToURLInput.bind(_this);\n _this.setUrl = _this.setUrl.bind(_this);\n _this.onLoad = _this.onLoad.bind(_this);\n _this.state = {\n editingURL: false,\n url: _this.props.attributes.url,\n fetching: true,\n cannotEmbed: false,\n mediaId: null\n };\n _this.setUrl();\n return _this;\n }\n\n _createClass(WistiaEdit, [{\n key: 'componentDidMount',\n value: function componentDidMount() {\n if (this.props.attributes.url) {\n var mediaIdMatches = this.props.attributes.url.match(/medias\\/(.*)/);\n var mediaId = mediaIdMatches[1];\n this.setState(Object.assign({}, this.state, {\n mediaId: mediaId\n }));\n }\n }\n }, {\n key: 'onLoad',\n value: function onLoad() {\n this.setState({\n fetching: false\n });\n console.log(embedpressObj);\n if (embedpressObj['wisita_options']) {\n var $state = Object.assign({}, this.state);\n setTimeout(function () {\n var script = document.createElement(\"script\");\n script.src = \"https://fast.wistia.com/assets/external/E-v1.js\";\n script.charset = \"ISO-8859-1\";\n document.body.appendChild(script);\n }, 100);\n\n setTimeout(function () {\n var script = document.createElement(\"script\");\n script.type = 'text/javascript';\n script.innerHTML = 'window.pp_embed_wistia_labels = ' + embedpressObj['wistia_labels'];\n document.body.appendChild(script);\n\n script = document.createElement(\"script\");\n script.type = 'text/javascript';\n script.innerHTML = 'wistiaEmbed = Wistia.embed( \\\"' + $state.mediaId + '\\\", ' + embedpressObj.wisita_options + ' );';\n document.body.appendChild(script);\n }, 400);\n }\n }\n }, {\n key: 'decodeHTMLEntities',\n value: function decodeHTMLEntities(str) {\n if (str && typeof str === 'string') {\n // strip script/html tags\n str = str.replace(/<script[^>]*>([\\S\\s]*?)<\\/script>/gmi, '');\n str = str.replace(/<\\/?\\w(?:[^\"'>]|\"[^\"]*\"|'[^']*')*>/gmi, '');\n }\n return str;\n }\n }, {\n key: 'setUrl',\n value: function setUrl(event) {\n if (event) {\n event.preventDefault();\n }\n var url = this.state.url;\n var setAttributes = this.props.setAttributes;\n\n setAttributes({ url: url });\n if (url && (url.match(/^http[s]?:\\/\\/(?:www\\.)?wistia\\.com\\/medias/i) || url.match(/^http[s]?:\\/\\/(?:www\\.)?fast\\/.wistia\\.com\\/embed\\/medias/i.jsonp))) {\n var mediaIdMatches = url.match(/medias\\/(.*)/);\n var mediaId = mediaIdMatches[1];\n var iframeSrc = '//fast.wistia.net/embed/iframe/' + mediaId;\n\n this.setState({ editingURL: false, cannotEmbed: false, mediaId: mediaId });\n setAttributes({ iframeSrc: iframeSrc });\n } else {\n this.setState({\n cannotEmbed: true,\n editingURL: true\n });\n }\n }\n }, {\n key: 'switchBackToURLInput',\n value: function switchBackToURLInput() {\n this.setState({ editingURL: true });\n }\n }, {\n key: 'render',\n value: function render() {\n var _this2 = this;\n\n var _state = this.state,\n url = _state.url,\n editingURL = _state.editingURL,\n fetching = _state.fetching,\n cannotEmbed = _state.cannotEmbed;\n var iframeSrc = this.props.attributes.iframeSrc;\n\n\n var label = __('Wistia URL');\n\n // No preview, or we can't embed the current URL, or we've clicked the edit button.\n if (!iframeSrc || editingURL) {\n return wp.element.createElement(__WEBPACK_IMPORTED_MODULE_2__common_embed_placeholder__[\"a\" /* default */], {\n label: label,\n onSubmit: this.setUrl,\n value: url,\n cannotEmbed: cannotEmbed,\n onChange: function onChange(event) {\n return _this2.setState({ url: event.target.value });\n }\n });\n } else {\n return wp.element.createElement(\n Fragment,\n null,\n fetching ? wp.element.createElement(__WEBPACK_IMPORTED_MODULE_1__common_embed_loading__[\"a\" /* default */], null) : null,\n wp.element.createElement(\n 'div',\n { className: 'ose-wistia', id: \"wistia_\" + this.state.mediaId },\n wp.element.createElement(__WEBPACK_IMPORTED_MODULE_3__common_Iframe__[\"a\" /* default */], { src: iframeSrc, onLoad: this.onLoad, style: { display: fetching ? 'none' : '' }, frameborder: '0', width: '600', height: '330', allowfullscreen: 'true', mozallowfullscreen: 'true', webkitallowfullscreen: 'true' })\n ),\n wp.element.createElement(__WEBPACK_IMPORTED_MODULE_0__common_embed_controls__[\"a\" /* default */], {\n showEditButton: iframeSrc && !cannotEmbed,\n switchBackToURLInput: this.switchBackToURLInput\n })\n );\n }\n }\n }]);\n\n return WistiaEdit;\n}(Component);\n\n;\n/* harmony default export */ __webpack_exports__[\"a\"] = (WistiaEdit);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMzguanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9zcmMvd2lzdGlhL2VkaXQuanM/NTQ2NCJdLCJzb3VyY2VzQ29udGVudCI6WyJ2YXIgX2NyZWF0ZUNsYXNzID0gZnVuY3Rpb24gKCkgeyBmdW5jdGlvbiBkZWZpbmVQcm9wZXJ0aWVzKHRhcmdldCwgcHJvcHMpIHsgZm9yICh2YXIgaSA9IDA7IGkgPCBwcm9wcy5sZW5ndGg7IGkrKykgeyB2YXIgZGVzY3JpcHRvciA9IHByb3BzW2ldOyBkZXNjcmlwdG9yLmVudW1lcmFibGUgPSBkZXNjcmlwdG9yLmVudW1lcmFibGUgfHwgZmFsc2U7IGRlc2NyaXB0b3IuY29uZmlndXJhYmxlID0gdHJ1ZTsgaWYgKFwidmFsdWVcIiBpbiBkZXNjcmlwdG9yKSBkZXNjcmlwdG9yLndyaXRhYmxlID0gdHJ1ZTsgT2JqZWN0LmRlZmluZVByb3BlcnR5KHRhcmdldCwgZGVzY3JpcHRvci5rZXksIGRlc2NyaXB0b3IpOyB9IH0gcmV0dXJuIGZ1bmN0aW9uIChDb25zdHJ1Y3RvciwgcHJvdG9Qcm9wcywgc3RhdGljUHJvcHMpIHsgaWYgKHByb3RvUHJvcHMpIGRlZ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pYXNcXC8oLiopLyk7XG4gICAgICAgICAgICAgICAgdmFyIG1lZGlhSWQgPSBtZWRpYUlkTWF0Y2hlc1sxXTtcbiAgICAgICAgICAgICAgICB0aGlzLnNldFN0YXRlKE9iamVjdC5hc3NpZ24oe30sIHRoaXMuc3RhdGUsIHtcbiAgICAgICAgICAgICAgICAgICAgbWVkaWFJZDogbWVkaWFJZFxuICAgICAgICAgICAgICAgIH0pKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgIH0sIHtcbiAgICAgICAga2V5OiAnb25Mb2FkJyxcbiAgICAgICAgdmFsdWU6IGZ1bmN0aW9uIG9uTG9hZCgpIHtcbiAgICAgICAgICAgIHRoaXMuc2V0U3RhdGUoe1xuICAgICAgICAgICAgICAgIGZldGNoaW5nOiBmYWxzZVxuICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICBjb25zb2xlLmxvZyhlbWJlZHByZXNzT2JqKTtcbiAgICAgICAgICAgIGlmIChlbWJlZHByZXNzT2JqWyd3aXNpdGFfb3B0aW9ucyddKSB7XG4gICAgICAgICAgICAgICAgdmFyICRzdGF0ZSA9IE9iamVjdC5hc3NpZ24oe30sIHRoaXMuc3RhdGUpO1xuICAgICAgICAgICAgICAgIHNldFRpbWVvdXQoZnVuY3Rpb24gKCkge1xuICAgICAgICAgICAgICAgICAgICB2YXIgc2NyaXB0ID0gZG9jdW1lbnQuY3JlYXRlRWxlbWVudChcInNjcmlwdFwiKTtcbiAgICAgICAgICAgICAgICAgICAgc2NyaXB0LnNyYyA9IFwiaHR0cHM6Ly9mYXN0Lndpc3RpYS5jb20vYXNzZXRzL2V4dGVybmFsL0UtdjEuanNcIjtcbiAgICAgICAgICAgICAgICAgICAgc2NyaXB0LmNoYXJzZXQgPSBcIklTTy04ODU5LTFcIjtcbiAgICAgICAgICAgICAgICAgICAgZG9jdW1lbnQuYm9keS5hcHBlbmRDaGlsZChzY3JpcHQpO1xuICAgICAgICAgICAgICAgIH0sIDEwMCk7XG5cbiAgICAgICAgICAgICAgICBzZXRUaW1lb3V0KGZ1bmN0aW9uICgpIHtcbiAgICAgICAgICAgICAgICAgICAgdmFyIHNjcmlwdCA9IGRvY3VtZW50LmNyZWF0ZUVsZW1lbnQoXCJzY3JpcHRcIik7XG4gICAgICAgICAgICAgICAgICAgIHNjcmlwdC50eXBlID0gJ3RleHQvamF2YXNjcmlwdCc7XG4gICAgICAgICAgICAgICAgICAgIHNjcmlwdC5pbm5lckhUTUwgPSAnd2luZG93LnBwX2VtYmVkX3dpc3RpYV9sYWJlbHMgPSAnICsgZW1iZWRwcmVzc09ialsnd2lzdGlhX2xhYmVscyddO1xuICAgICAgICAgICAgICAgICAgICBkb2N1bWVudC5ib2R5LmFwcGVuZENoaWxkKHNjcmlwdCk7XG5cbiAgICAgICAgICAgICAgICAgICAgc2NyaXB0ID0gZG9jdW1lbnQuY3JlYXRlRWxlbWVudChcInNjcmlwdFwiKTtcbiAgICAgICAgICAgICAgICAgICAgc2NyaXB0LnR5cGUgPSAndGV4dC9qYXZhc2NyaXB0JztcbiAgICAgICAgICAgICAgICAgICAgc2NyaXB0LmlubmVySFRNTCA9ICd3aXN0aWFFbWJlZCA9IFdpc3RpYS5lbWJlZCggXFxcIicgKyAkc3RhdGUubWVkaWFJZCArICdcXFwiLCAnICsgZW1iZWRwcmVzc09iai53aXNpdGFfb3B0aW9ucyArICcgKTsnO1xuICAgICAgICAgICAgICAgICAgICBkb2N1bWVudC5ib2R5LmFwcGVuZENoaWxkKHNjcmlwdCk7XG4gICAgICAgICAgICAgICAgfSwgNDAwKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgIH0sIHtcbiAgICAgICAga2V5OiAnZGVjb2RlSFRNTEVudGl0aWVzJyxcbiAgICAgICAgdmFsdWU6IGZ1bmN0aW9uIGRlY29kZUhUTUxFbnRpdGllcyhzdHIpIHtcbiAgICAgICAgICAgIGlmIChzdHIgJiYgdHlwZW9mIHN0ciA9PT0gJ3N0cmluZycpIHtcbiAgICAgICAgICAgICAgICAvLyBzdHJpcCBzY3JpcHQvaHRtbCB0YWdzXG4gICAgICAgICAgICAgICAgc3RyID0gc3RyLnJlcGxhY2UoLzxzY3JpcHRbXj5dKj4oW1xcU1xcc10qPyk8XFwvc2NyaXB0Pi9nbWksICcnKTtcbiAgICAgICAgICAgICAgICBzdHIgPSBzdHIucmVwbGFjZSgvPFxcLz9cXHcoPzpbXlwiJz5dfFwiW15cIl0qXCJ8J1teJ10qJykqPi9nbWksICcnKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIHJldHVybiBzdHI7XG4gICAgICAgIH1cbiAgICB9LCB7XG4gICAgICAgIGtleTogJ3NldFVybCcsXG4gICAgICAgIHZhbHVlOiBmdW5jdGlvbiBzZXRVcmwoZXZlbnQpIHtcbiAgICAgICAgICAgIGlmIChldmVudCkge1xuICAgICAgICAgICAgICAgIGV2ZW50LnByZXZlbnREZWZhdWx0KCk7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICB2YXIgdXJsID0gdGhpcy5zdGF0ZS51cmw7XG4gICAgICAgICAgICB2YXIgc2V0QXR0cmlidXRlcyA9IHRoaXMucHJvcHMuc2V0QXR0cmlidXRlcztcblxuICAgICAgICAgICAgc2V0QXR0cmlidXRlcyh7IHVybDogdXJsIH0pO1xuICAgICAgICAgICAgaWYgKHVybCAmJiAodXJsLm1hdGNoKC9eaHR0cFtzXT86XFwvXFwvKD86d3d3XFwuKT93aXN0aWFcXC5jb21cXC9tZWRpYXMvaSkgfHwgdXJsLm1hdGNoKC9eaHR0cFtzXT86XFwvXFwvKD86d3d3XFwuKT9mYXN0XFwvLndpc3RpYVxcLmNvbVxcL2VtYmVkXFwvbWVkaWFzL2kuanNvbnApKSkge1xuICAgICAgICAgICAgICAgIHZhciBtZWRpYUlkTWF0Y2hlcyA9IHVybC5tYXRjaCgvbWVkaWFzXFwvKC4qKS8pO1xuICAgICAgICAgICAgICAgIHZhciBtZWRpYUlkID0gbWVkaWFJZE1hd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mZldGNoaW5nLFxuICAgICAgICAgICAgICAgIGNhbm5vdEVtYmVkID0gX3N0YXRlLmNhbm5vdEVtYmVkO1xuICAgICAgICAgICAgdmFyIGlmcmFtZVNyYyA9IHRoaXMucHJvcHMuYXR0cmlidXRlcy5pZnJhbWVTcmM7XG5cblxuICAgICAgICAgICAgdmFyIGxhYmVsID0gX18oJ1dpc3RpYSBVUkwnKTtcblxuICAgICAgICAgICAgLy8gTm8gcHJldmlldywgb3Igd2UgY2FuJ3QgZW1iZWQgdGhlIGN1cnJlbnQgVVJMLCBvciB3ZSd2ZSBjbGlja2VkIHRoZSBlZGl0IGJ1dHRvbi5cbiAgICAgICAgICAgIGlmICghaWZyYW1lU3JjIHx8IGVkaXRpbmdVUkwpIHtcbiAgICAgICAgICAgICAgICByZXR1cm4gd3AuZWxlbWVudC5jcmVhdGVFbGVtZW50KEVtYmVkUGxhY2Vob2xkZXIsIHtcbiAgICAgICAgICAgICAgICAgICAgbGFiZWw6IGxhYmVsLFxuICAgICAgICAgICAgICAgICAgICBvblN1Ym1pdDogdGhpcy5zZXRVcmwsXG4gICAgICAgICAgICAgICAgICAgIHZhbHVlOiB1cmwsXG4gICAgICAgICAgICAgICAgICAgIGNhbm5vdEVtYmVkOiBjYW5ub3RFbWJlZCxcbiAgICAgICAgICAgICAgICAgICAgb25DaGFuZ2U6IGZ1bmN0aW9uIG9uQ2hhbmdlKGV2ZW50KSB7XG4gICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gX3RoaXMyLnNldFN0YXRlKHsgdXJsOiBldmVudC50YXJnZXQudmFsdWUgfSk7XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgcmV0dXJuIHdwLmVsZW1lbnQuY3JlYXRlRWxlbWVudChcbiAgICAgICAgICAgICAgICAgICAgRnJhZ21lbnQsXG4gICAgICAgICAgICAgICAgICAgIG51bGwsXG4gICAgICAgICAgICAgICAgICAgIGZldGNoaW5nID8gd3AuZWxlbWVudC5jcmVhdGVFbGVtZW50KEVtYmVkTG9hZGluZywgbnVsbCkgOiBudWxsLFxuICAgICAgICAgICAgICAgICAgICB3cC5lbGVtZW50LmNyZWF0ZUVsZW1lbnQoXG4gICAgICAgICAgICAgICAgICAgICAgICAnZGl2JyxcbiAgICAgICAgICAgICAgICAgICAgICAgIHsgY2xhc3NOYW1lOiAnb3NlLXdpc3RpYScsIGlkOiBcIndpc3RpYV9cIiArIHRoaXMuc3RhdGUubWVkaWFJZCB9LFxuICAgICAgICAgICAgICAgICAgICAgICAgd3AuZWxlbWVudC5jcmVhdGVFbGVtZW50KElmcmFtZSwgeyBzcmM6IGlmcmFtZVNyYywgb25Mb2FkOiB0aGlzLm9uTG9hZCwgc3R5bGU6IHsgZGlzcGxheTogZmV0Y2hpbmcgPyAnbm9uZScgOiAnJyB9LCBmcmFtZWJvcmRlcjogJzAnLCB3aWR0aDogJzYwMCcsIGhlaWdodDogJzMzMCcsIGFsbG93ZnVsbHNjcmVlbjogJ3RydWUnLCBtb3phbGxvd2Z1bGxzY3JlZW46ICd0cnVlJywgd2Via2l0YWxsb3dmdWxsc2NyZWVuOiAndHJ1ZScgfSlcbiAgICAgICAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgICAgICAgICAgd3AuZWxlbWVudC5jcmVhdGVFbGVtZW50KEVtYmVkQ29udHJvbHMsIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHNob3dFZGl0QnV0dG9uOiBpZnJhbWVTcmMgJiYgIWNhbm5vdEVtYmVkLFxuICAgICAgICAgICAgICAgICAgICAgICAgc3dpdGNoQmFja1RvVVJMSW5wdXQ6IHRoaXMuc3dpdGNoQmFja1RvVVJMSW5wdXRcbiAgICAgICAgICAgICAgICAgICAgfSlcbiAgICAgICAgICAgICAgICApO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgfV0pO1xuXG4gICAgcmV0dXJuIFdpc3R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BQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///38\n");
|
492 |
-
|
493 |
-
/***/ })
|
494 |
-
/******/ ]);
|
1 |
+
!function(e){function t(r){if(n[r])return n[r].exports;var l=n[r]={i:r,l:!1,exports:{}};return e[r].call(l.exports,l,l.exports,t),l.l=!0,l.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=5)}([function(e,t,n){"use strict";var r=wp.i18n.__,l=wp.element.Fragment,i=wp.components,o=i.IconButton,a=i.Toolbar,s=wp.editor.BlockControls,c=function(e){var t=e.showEditButton,n=e.switchBackToURLInput;return wp.element.createElement(l,null,wp.element.createElement(s,null,wp.element.createElement(a,null,t&&wp.element.createElement(o,{className:"components-toolbar__control",label:r("Edit URL"),icon:"edit",onClick:n}))))};t.a=c},function(e,t,n){"use strict";var r=wp.i18n.__,l=wp.components.Spinner,i=function(){return wp.element.createElement("div",{className:"wp-block-embed is-loading"},wp.element.createElement(l,null),wp.element.createElement("p",null,r("Embedding\u2026")))};t.a=i},function(e,t,n){"use strict";var r=wp.i18n,l=r.__,i=r._x,o=wp.components,a=o.Button,s=o.Placeholder,c=wp.editor.BlockIcon,u=function(e){var t=e.icon,n=e.label,r=e.value,o=e.onSubmit,u=e.onChange,p=e.cannotEmbed;return wp.element.createElement(s,{icon:wp.element.createElement(c,{icon:t,showColors:!0}),label:n,className:"wp-block-embed"},wp.element.createElement("form",{onSubmit:o},wp.element.createElement("input",{type:"url",value:r||"",className:"components-placeholder__input","aria-label":n,placeholder:l("Enter URL to embed here\u2026"),onChange:u}),wp.element.createElement(a,{isLarge:!0,type:"submit"},i("Embed","button label")),p&&wp.element.createElement("p",{className:"components-placeholder__error"},l("Sorry, we could not embed that content."),wp.element.createElement("br",null))))};t.a=u},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var o=n(10),a=n.n(o),s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=wp.element.Component,p=function(e){function t(){return r(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),c(t,[{key:"componentDidMount",value:function(){a.a.findDOMNode(this.refs.iframe).addEventListener("load",this.props.onLoad)}},{key:"render",value:function(){return wp.element.createElement("iframe",s({ref:"iframe"},this.props))}}]),t}(u);t.a=p},function(e,t,n){"use strict";n.d(t,"a",function(){return a}),n.d(t,"f",function(){return s}),n.d(t,"e",function(){return c}),n.d(t,"c",function(){return u}),n.d(t,"b",function(){return p}),n.d(t,"d",function(){return m}),n.d(t,"g",function(){return f}),n.d(t,"h",function(){return d});var r=wp.components,l=r.G,i=r.Path,o=(r.Polygon,r.SVG),a=wp.element.createElement(o,{xmlns:"http://www.w3.org/1999/xlink",viewBox:"0 0 48 48"},wp.element.createElement(l,null,wp.element.createElement(i,{style:{fill:"#2196F3"},d:"M 37 45 L 11 45 C 9.34375 45 8 43.65625 8 42 L 8 6 C 8 4.34375 9.34375 3 11 3 L 30 3 L 40 13 L 40 42 C 40 43.65625 38.65625 45 37 45 Z "}),wp.element.createElement(i,{style:{fill:"#BBDEFB"},d:"M 40 13 L 30 13 L 30 3 Z "}),wp.element.createElement(i,{style:{fill:"#1565C0"},d:"M 30 13 L 40 23 L 40 13 Z "}),wp.element.createElement(i,{style:{fill:"#E3F2FD"},d:"M 15 23 L 33 23 L 33 25 L 15 25 Z "}),wp.element.createElement(i,{style:{fill:"#E3F2FD"},d:"M 15 27 L 33 27 L 33 29 L 15 29 Z "}),wp.element.createElement(i,{style:{fill:"#E3F2FD"},d:"M 15 31 L 33 31 L 33 33 L 15 33 Z "}),wp.element.createElement(i,{style:{fill:"#E3F2FD"},d:"M 15 35 L 25 35 L 25 37 L 15 37 Z "}))),s=wp.element.createElement(o,{xmlns:"http://www.w3.org/1999/xlink","enable-background":"new 0 0 24 24",id:"Layer_2",version:"1.1",viewBox:"0 0 24 24"},wp.element.createElement(l,null,wp.element.createElement(i,{d:"M21,6l-6-6H5C3.8954306,0,3,0.8954305,3,2v20c0,1.1045704,0.8954306,2,2,2h14c1.1045704,0,2-0.8954296,2-2 V6z",style:{fill:"#FFC720"}}),wp.element.createElement(i,{d:"M17,6c-0.5444336,0-1.0367432-0.2190552-1.3973999-0.5719604L21,10.8254395V6H17z",style:{fill:"url(#SVGID_1_)"}}),wp.element.createElement(i,{d:"M19,23.75H5c-1.1045532,0-2-0.8954468-2-2V22c0,1.1045532,0.8954468,2,2,2h14c1.1045532,0,2-0.8954468,2-2 v-0.25C21,22.8545532,20.1045532,23.75,19,23.75z",style:{opacity:"0.1"}}),wp.element.createElement(i,{d:"M15,0v4c0,1.1045694,0.8954306,2,2,2h4L15,0z",style:{fill:"#FFE083"}}),wp.element.createElement(i,{d:"M17,5.75c-1.1045532,0-2-0.8954468-2-2V4c0,1.1045532,0.8954468,2,2,2h4l-0.25-0.25H17z",style:{opacity:"0.1"}}),wp.element.createElement(i,{d:"M15,0H5C3.8954468,0,3,0.8953857,3,2v0.25c0-1.1046143,0.8954468-2,2-2h10",style:{fill:"#FFFFFF",opacity:"0.2"}}),wp.element.createElement(i,{d:"M15.5,9h-7C7.6728516,9,7,9.6728516,7,10.5v6C7,17.3271484,7.6728516,18,8.5,18h7 c0.8271484,0,1.5-0.6728516,1.5-1.5v-6C17,9.6728516,16.3271484,9,15.5,9z M8,15.5V11h8v4.5H8z",style:{fill:"#FFFFFF"}}),wp.element.createElement(i,{d:"M21,6l-6-6H5C3.8954306,0,3,0.8954305,3,2v20c0,1.1045704,0.8954306,2,2,2h14 c1.1045704,0,2-0.8954296,2-2V6z",style:{fill:"url(#SVGID_2_)"}})),wp.element.createElement(l,null),wp.element.createElement(l,null),wp.element.createElement(l,null),wp.element.createElement(l,null),wp.element.createElement(l,null),wp.element.createElement(l,null),wp.element.createElement(l,null),wp.element.createElement(l,null),wp.element.createElement(l,null),wp.element.createElement(l,null),wp.element.createElement(l,null),wp.element.createElement(l,null),wp.element.createElement(l,null),wp.element.createElement(l,null),wp.element.createElement(l,null)),c=wp.element.createElement(o,{xmlns:"http://www.w3.org/1999/xlink",viewBox:"0 0 48 48",version:"1.1"},wp.element.createElement(l,null,wp.element.createElement(i,{style:{fill:"#43A047"},d:"M 37 45 L 11 45 C 9.34375 45 8 43.65625 8 42 L 8 6 C 8 4.34375 9.34375 3 11 3 L 30 3 L 40 13 L 40 42 C 40 43.65625 38.65625 45 37 45 Z "}),wp.element.createElement(i,{style:{fill:"#C8E6C9"},d:"M 40 13 L 30 13 L 30 3 Z "}),wp.element.createElement(i,{style:{fill:"#2E7D32"},d:"M 30 13 L 40 23 L 40 13 Z "}),wp.element.createElement(i,{style:{fill:"#E8F5E9"},d:"M 31 23 L 15 23 L 15 37 L 33 37 L 33 23 Z M 17 25 L 21 25 L 21 27 L 17 27 Z M 17 29 L 21 29 L 21 31 L 17 31 Z M 17 33 L 21 33 L 21 35 L 17 35 Z M 31 35 L 23 35 L 23 33 L 31 33 Z M 31 31 L 23 31 L 23 29 L 31 29 Z M 31 27 L 23 27 L 23 25 L 31 25 Z "}))),u=wp.element.createElement(o,{xmlns:"http://www.w3.org/1999/xlink",viewBox:"0 0 48 48",version:"1.1"},wp.element.createElement(l,null,wp.element.createElement(i,{style:{fill:"#7850C1"},d:"M 37 45 L 11 45 C 9.34375 45 8 43.65625 8 42 L 8 6 C 8 4.34375 9.34375 3 11 3 L 30 3 L 40 13 L 40 42 C 40 43.65625 38.65625 45 37 45 Z "}),wp.element.createElement(i,{style:{fill:"#C2ABE1"},d:"M 40 13 L 30 13 L 30 3 Z "}),wp.element.createElement(i,{style:{fill:"#2E7D32"},d:"M 30 13 L 40 23 L 40 13 Z "}),wp.element.createElement(i,{style:{fill:"#E8F5E9"},d:"M 19 23 L 33 23 L 33 25 L 19 25 Z "}),wp.element.createElement(i,{style:{fill:"#E8F5E9"},d:"M 19 28 L 33 28 L 33 30 L 19 30 Z "}),wp.element.createElement(i,{style:{fill:"#E8F5E9"},d:"M 19 33 L 33 33 L 33 35 L 19 35 Z "}),wp.element.createElement(i,{style:{fill:"#E8F5E9"},d:"M 15 23 L 17 23 L 17 25 L 15 25 Z "}),wp.element.createElement(i,{style:{fill:"#E8F5E9"},d:"M 15 28 L 17 28 L 17 30 L 15 30 Z "}),wp.element.createElement(i,{style:{fill:"#E8F5E9"},d:"M 15 33 L 17 33 L 17 35 L 15 35 Z "}))),p=wp.element.createElement(o,{xmlns:"http://www.w3.org/1999/xlink",viewBox:"0 0 48 48",version:"1.1"},wp.element.createElement(l,null,wp.element.createElement(i,{style:{fill:"#DE5245"},d:"M37,45H11c-1.7,0-3-1.3-3-3V6c0-1.7,1.3-3,3-3h19l10,10v29C40,43.7,38.7,45,37,45z"}),wp.element.createElement(i,{style:{fill:"#EEA6A0"},d:"M40,13H30V3L40,13z"}),wp.element.createElement(i,{style:{fill:"#B3433A"},d:"M30,13l10,10V13H30z"}),wp.element.createElement(i,{style:{fill:"#FFFFFF"},d:"M20.5,32c-3,0-5.5-2.5-5.5-5.5c0-3,2.5-5.5,5.5-5.5s5.5,2.5,5.5,5.5C26,29.5,23.5,32,20.5,32z M20.5,23c-1.9,0-3.5,1.6-3.5,3.5s1.6,3.5,3.5,3.5s3.5-1.6,3.5-3.5S22.4,23,20.5,23z"}),wp.element.createElement(i,{style:{fill:"#FFFFFF"},d:"M27.6,29c-0.6,1.8-1.9,3.3-3.6,4.1V38h9v-9H27.6z"}))),m=wp.element.createElement(o,{xmlns:"http://www.w3.org/1999/xlink",viewBox:"0 0 48 48",version:"1.1"},wp.element.createElement(l,null,wp.element.createElement(i,{style:{fill:"#1C9957"},d:"M 42 39 L 42 9 C 42 7.34375 40.65625 6 39 6 L 9 6 C 7.34375 6 6 7.34375 6 9 L 6 39 C 6 40.65625 7.34375 42 9 42 L 39 42 C 40.65625 42 42 40.65625 42 39 Z "}),wp.element.createElement(i,{style:{fill:"#3E7BF1"},d:"M 9 42 L 39 42 C 40.65625 42 24 26 24 26 C 24 26 7.34375 42 9 42 Z "}),wp.element.createElement(i,{style:{fill:"#CBCCC9"},d:"M 42 39 L 42 9 C 42 7.34375 26 24 26 24 C 26 24 42 40.65625 42 39 Z "}),wp.element.createElement(i,{style:{fill:"#EFEFEF"},d:"M 39 42 C 40.65625 42 42 40.65625 42 39 L 42 38.753906 L 26.246094 23 L 23 26.246094 L 38.753906 42 Z "}),wp.element.createElement(i,{style:{fill:"#FFD73D"},d:"M 42 9 C 42 7.34375 40.65625 6 39 6 L 38.753906 6 L 6 38.753906 L 6 39 C 6 40.65625 7.34375 42 9 42 L 9.246094 42 L 42 9.246094 Z "}),wp.element.createElement(i,{style:{fill:"#D73F35"},d:"M 36 2 C 30.476563 2 26 6.476563 26 12 C 26 18.8125 33.664063 21.296875 35.332031 31.851563 C 35.441406 32.53125 35.449219 33 36 33 C 36.550781 33 36.558594 32.53125 36.667969 31.851563 C 38.335938 21.296875 46 18.8125 46 12 C 46 6.476563 41.523438 2 36 2 Z "}),wp.element.createElement(i,{style:{fill:"#752622"},d:"M 39.5 12 C 39.5 13.933594 37.933594 15.5 36 15.5 C 34.066406 15.5 32.5 13.933594 32.5 12 C 32.5 10.066406 34.066406 8.5 36 8.5 C 37.933594 8.5 39.5 10.066406 39.5 12 Z "}),wp.element.createElement(i,{style:{fill:"#FFFFFF"},d:"M 14.492188 12.53125 L 14.492188 14.632813 L 17.488281 14.632813 C 17.09375 15.90625 16.03125 16.816406 14.492188 16.816406 C 12.660156 16.816406 11.175781 15.332031 11.175781 13.5 C 11.175781 11.664063 12.660156 10.179688 14.492188 10.179688 C 15.316406 10.179688 16.070313 10.484375 16.648438 10.980469 L 18.195313 9.433594 C 17.21875 8.542969 15.921875 8 14.492188 8 C 11.453125 8 8.992188 10.464844 8.992188 13.5 C 8.992188 16.535156 11.453125 19 14.492188 19 C 19.304688 19 20.128906 14.683594 19.675781 12.539063 Z "}))),f=wp.element.createElement(o,{xmlns:"http://www.w3.org/1999/xlink",viewBox:"0 0 48 48",version:"1.1"},wp.element.createElement(l,null,wp.element.createElement(i,{style:{fill:"#FFFFFF"},d:"M 12 32 L 12 8 L 39 8 L 39 26 L 33 32 L 24 32 L 18 38 L 18 32 Z "}),wp.element.createElement(i,{style:{fill:"#8E24AA"},d:"M 9 5 L 6 12.121094 L 6 38 L 15 38 L 15 43 L 20 43 L 25 38 L 32 38 L 42 28 L 42 5 Z M 38 26 L 33 31 L 24 31 L 19 36 L 19 31 L 13 31 L 13 9 L 38 9 Z "}),wp.element.createElement(i,{style:{fill:"#8E24AA"},d:"M 32 25 L 27 25 L 27 15 L 32 15 Z "}),wp.element.createElement(i,{style:{fill:"#8E24AA"},d:"M 24 25 L 19 25 L 19 15 L 24 15 Z "}))),d=wp.element.createElement(o,{xmlns:"http://www.w3.org/1999/xlink",viewBox:"0 0 769 598",version:"1.1"},wp.element.createElement(l,null,wp.element.createElement(i,{style:{fill:"#148ee0"},d:"M766.89,229.17c0,0 -17.78,35.38 -106.5,91.3c-37.82,23.79 -116.36,49.1 -217.33,58.86c-54.52,5.29 -154.9,0.99 -197.96,0.99c-43.29,0 -63.13,9.12 -101.95,52.84c-143.15,161.36 -143.15,161.36 -143.15,161.36c0,0 49.57,0.24 87.01,0.24c37.43,0 271.55,13.59 375.43,-14.98c337.36,-92.72 304.46,-350.62 304.46,-350.62z"}),wp.element.createElement(i,{style:{fill:"#54bbff"},d:"M757.84,126.66c16.23,-98.97 -39.68,-126.16 -39.68,-126.16c0,0 2.36,80.57 -145.7,97.65c-131.42,15.16 -572.46,3.74 -572.46,3.74c0,0 0,0 141.74,162.54c38.39,44.06 58.76,49.17 101.92,52.22c43.16,2.89 138.42,1.86 202.99,-3.05c70.58,-5.41 171.17,-28.43 239.19,-81.11c34.88,-26.98 65.21,-64.48 72,-105.83z"})))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});n(6),n(11),n(15),n(19),n(23),n(27),n(31),n(35)},function(e,t,n){"use strict";var r=n(7),l=(n.n(r),n(8)),i=(n.n(l),n(9)),o=n(4),a=wp.i18n.__;(0,wp.blocks.registerBlockType)("embedpress/google-docs-block",{title:a("Google Docs"),icon:o.a,category:"embedpress",keywords:[a("embedpress"),a("google"),a("docs")],attributes:{url:{type:"string",default:""},iframeSrc:{type:"string",default:""}},edit:i.a,save:function(e){var t=e.attributes.iframeSrc;return wp.element.createElement("div",{class:"ose-google-docs-document"},wp.element.createElement("iframe",{src:t,frameborder:"0",width:"600",height:"450",allowfullscreen:"true",mozallowfullscreen:"true",webkitallowfullscreen:"true"}))}})},function(e,t){},function(e,t){},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var o=n(0),a=n(1),s=n(2),c=n(3),u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),p=wp.i18n.__,m=wp.element,f=m.Component,d=m.Fragment,w=function(e){function t(){r(this,t);var e=l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.switchBackToURLInput=e.switchBackToURLInput.bind(e),e.setUrl=e.setUrl.bind(e),e.onLoad=e.onLoad.bind(e),e.state={editingURL:!1,url:e.props.attributes.url,fetching:!0,cannotEmbed:!1},e}return i(t,e),u(t,[{key:"onLoad",value:function(){this.setState({fetching:!1})}},{key:"decodeHTMLEntities",value:function(e){return e&&"string"===typeof e&&(e=e.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,""),e=e.replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,"")),e}},{key:"setUrl",value:function(e){e&&e.preventDefault();var t=this.state.url,n=this.props.setAttributes;if(n({url:t}),t&&t.match(/^http[s]?:\/\/((?:www\.)?docs\.google\.com(?:.*)?(?:document|presentation|spreadsheets|forms|drawings)\/[a-z0-9\/\?=_\-\.\,&%\$#\@\!\+]*)/i)){var r=this.decodeHTMLEntities(t),l=/google\.com(?:.+)?(document|presentation|spreadsheets|forms|drawings)/i,i=l.exec(r),o=i[1];o&&"document"==o?(r.match(/([?&])embedded=true/i)&&(r.indexOf("?")>-1?r+="&embedded=true":r+="?embedded=true"),this.setState({editingURL:!1,cannotEmbed:!1}),n({iframeSrc:r})):this.setState({cannotEmbed:!0,editingURL:!0})}else this.setState({cannotEmbed:!0,editingURL:!0})}},{key:"switchBackToURLInput",value:function(){this.setState({editingURL:!0})}},{key:"render",value:function(){var e=this,t=this.state,n=t.url,r=t.editingURL,l=t.fetching,i=t.cannotEmbed,u=this.props.attributes.iframeSrc,m=p("Google Docs URL");return!u||r?wp.element.createElement(s.a,{label:m,onSubmit:this.setUrl,value:n,cannotEmbed:i,onChange:function(t){return e.setState({url:t.target.value})}}):wp.element.createElement(d,null,l?wp.element.createElement(a.a,null):null,wp.element.createElement(c.a,{src:u,onLoad:this.onLoad,style:{display:l?"none":""},frameborder:"0",width:"600",height:"450",allowfullscreen:"true",mozallowfullscreen:"true",webkitallowfullscreen:"true"}),wp.element.createElement(o.a,{showEditButton:u&&!i,switchBackToURLInput:this.switchBackToURLInput}))}}]),t}(f);t.a=w},function(e,t){e.exports=ReactDOM},function(e,t,n){"use strict";var r=n(12),l=(n.n(r),n(13)),i=(n.n(l),n(14)),o=n(4),a=wp.i18n.__;(0,wp.blocks.registerBlockType)("embedpress/google-slides-block",{title:a("Google Slides"),icon:o.f,category:"embedpress",keywords:[a("embedpress"),a("google"),a("slides")],attributes:{url:{type:"string",default:""},iframeSrc:{type:"string",default:""}},edit:i.a,save:function(e){var t=e.attributes.iframeSrc;return wp.element.createElement("div",{class:"ose-google-docs-presentation"},wp.element.createElement("iframe",{src:t,frameborder:"0",width:"600",height:"450",allowfullscreen:"true",mozallowfullscreen:"true",webkitallowfullscreen:"true"}))}})},function(e,t){},function(e,t){},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var o=n(0),a=n(1),s=n(2),c=n(3),u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),p=wp.i18n.__,m=wp.element,f=m.Component,d=m.Fragment,w=function(e){function t(){r(this,t);var e=l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.switchBackToURLInput=e.switchBackToURLInput.bind(e),e.setUrl=e.setUrl.bind(e),e.onLoad=e.onLoad.bind(e),e.state={editingURL:!1,url:e.props.attributes.url,fetching:!0,cannotEmbed:!1},e}return i(t,e),u(t,[{key:"onLoad",value:function(){this.setState({fetching:!1})}},{key:"decodeHTMLEntities",value:function(e){return e&&"string"===typeof e&&(e=e.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,""),e=e.replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,"")),e}},{key:"setUrl",value:function(e){e&&e.preventDefault();var t=this.state.url,n=this.props.setAttributes;if(n({url:t}),t&&t.match(/^http[s]?:\/\/((?:www\.)?docs\.google\.com(?:.*)?(?:document|presentation|spreadsheets|forms|drawings)\/[a-z0-9\/\?=_\-\.\,&%\$#\@\!\+]*)/i)){var r=this.decodeHTMLEntities(t),l=/google\.com(?:.+)?(document|presentation|spreadsheets|forms|drawings)/i,i=l.exec(r),o=i[1];o&&"presentation"==o?(r.match(/pub\?/i)&&(r=r.replace("/pub?","/embed?")),this.setState({editingURL:!1,cannotEmbed:!1}),n({iframeSrc:r})):this.setState({cannotEmbed:!0,editingURL:!0})}else this.setState({cannotEmbed:!0,editingURL:!0})}},{key:"switchBackToURLInput",value:function(){this.setState({editingURL:!0})}},{key:"render",value:function(){var e=this,t=this.state,n=t.url,r=t.editingURL,l=t.fetching,i=t.cannotEmbed,u=this.props.attributes.iframeSrc,m=p("Google Slides URL");return!u||r?wp.element.createElement(s.a,{label:m,onSubmit:this.setUrl,value:n,cannotEmbed:i,onChange:function(t){return e.setState({url:t.target.value})}}):wp.element.createElement(d,null,l?wp.element.createElement(a.a,null):null,wp.element.createElement(c.a,{src:u,onLoad:this.onLoad,style:{display:l?"none":""},frameborder:"0",width:"600",height:"450",allowfullscreen:"true",mozallowfullscreen:"true",webkitallowfullscreen:"true"}),wp.element.createElement(o.a,{showEditButton:u&&!i,switchBackToURLInput:this.switchBackToURLInput}))}}]),t}(f);t.a=w},function(e,t,n){"use strict";var r=n(16),l=(n.n(r),n(17)),i=(n.n(l),n(18)),o=n(4),a=wp.i18n.__;(0,wp.blocks.registerBlockType)("embedpress/google-sheets-block",{title:a("Google Sheets"),icon:o.e,category:"embedpress",keywords:[a("embedpress"),a("google"),a("sheets")],attributes:{url:{type:"string",default:""},iframeSrc:{type:"string",default:""}},edit:i.a,save:function(e){var t=e.attributes.iframeSrc;return wp.element.createElement("div",{class:"ose-google-docs-spreadsheets"},wp.element.createElement("iframe",{src:t,frameborder:"0",width:"600",height:"450",allowfullscreen:"true",mozallowfullscreen:"true",webkitallowfullscreen:"true"}))}})},function(e,t){},function(e,t){},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var o=n(0),a=n(1),s=n(2),c=n(3),u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),p=wp.i18n.__,m=wp.element,f=m.Component,d=m.Fragment,w=function(e){function t(){r(this,t);var e=l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.switchBackToURLInput=e.switchBackToURLInput.bind(e),e.setUrl=e.setUrl.bind(e),e.onLoad=e.onLoad.bind(e),e.state={editingURL:!1,url:e.props.attributes.url,fetching:!0,cannotEmbed:!1},e}return i(t,e),u(t,[{key:"onLoad",value:function(){this.setState({fetching:!1})}},{key:"decodeHTMLEntities",value:function(e){return e&&"string"===typeof e&&(e=e.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,""),e=e.replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,"")),e}},{key:"setUrl",value:function(e){e&&e.preventDefault();var t=this.state.url,n=this.props.setAttributes;if(n({url:t}),t&&t.match(/^http[s]?:\/\/((?:www\.)?docs\.google\.com(?:.*)?(?:document|presentation|spreadsheets|forms|drawings)\/[a-z0-9\/\?=_\-\.\,&%\$#\@\!\+]*)/i)){var r=this.decodeHTMLEntities(t),l=/google\.com(?:.+)?(document|presentation|spreadsheets|forms|drawings)/i,i=l.exec(r),o=i[1];if(o&&"spreadsheets"==o){if(r.indexOf("?")>-1){var a=r.split("?");if(a=a[1],a=a.split("&"),console.log(a),a.length>0){var s=!1,c=!1;a.map(function(e){e.indexOf("widget=")?c=!0:e.indexOf("headers=")&&(s=!0)}),c||(r+="&widget=true"),s||(r+="&headers=false")}}else r+="?widget=true&headers=false";this.setState({editingURL:!1,cannotEmbed:!1}),n({iframeSrc:r})}else this.setState({cannotEmbed:!0,editingURL:!0})}else this.setState({cannotEmbed:!0,editingURL:!0})}},{key:"switchBackToURLInput",value:function(){this.setState({editingURL:!0})}},{key:"render",value:function(){var e=this,t=this.state,n=t.url,r=t.editingURL,l=t.fetching,i=t.cannotEmbed,u=this.props.attributes.iframeSrc,m=p("Google Sheets URL");return!u||r?wp.element.createElement(s.a,{label:m,onSubmit:this.setUrl,value:n,cannotEmbed:i,onChange:function(t){return e.setState({url:t.target.value})}}):wp.element.createElement(d,null,l?wp.element.createElement(a.a,null):null,wp.element.createElement(c.a,{src:u,onLoad:this.onLoad,style:{display:l?"none":""},frameborder:"0",width:"600",height:"450",allowfullscreen:"true",mozallowfullscreen:"true",webkitallowfullscreen:"true"}),wp.element.createElement(o.a,{showEditButton:u&&!i,switchBackToURLInput:this.switchBackToURLInput}))}}]),t}(f);t.a=w},function(e,t,n){"use strict";var r=n(20),l=(n.n(r),n(21)),i=(n.n(l),n(22)),o=n(4),a=wp.i18n.__;(0,wp.blocks.registerBlockType)("embedpress/google-forms-block",{title:a("Google Forms"),icon:o.c,category:"embedpress",keywords:[a("embedpress"),a("google"),a("forms")],attributes:{url:{type:"string",default:""},iframeSrc:{type:"string",default:""}},edit:i.a,save:function(e){var t=e.attributes.iframeSrc;return wp.element.createElement("div",{class:"ose-google-docs-forms"},wp.element.createElement("iframe",{src:t,frameborder:"0",width:"600",height:"450",allowfullscreen:"true",mozallowfullscreen:"true",webkitallowfullscreen:"true"}))}})},function(e,t){},function(e,t){},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var o=n(0),a=n(1),s=n(2),c=n(3),u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),p=wp.i18n.__,m=wp.element,f=m.Component,d=m.Fragment,w=function(e){function t(){r(this,t);var e=l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.switchBackToURLInput=e.switchBackToURLInput.bind(e),e.setUrl=e.setUrl.bind(e),e.onLoad=e.onLoad.bind(e),e.state={editingURL:!1,url:e.props.attributes.url,fetching:!0,cannotEmbed:!1},e}return i(t,e),u(t,[{key:"onLoad",value:function(){this.setState({fetching:!1})}},{key:"decodeHTMLEntities",value:function(e){return e&&"string"===typeof e&&(e=e.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,""),e=e.replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,"")),e}},{key:"setUrl",value:function(e){e&&e.preventDefault();var t=this.state.url,n=this.props.setAttributes;if(n({url:t}),t&&t.match(/^http[s]?:\/\/((?:www\.)?docs\.google\.com(?:.*)?(?:document|presentation|spreadsheets|forms|drawings)\/[a-z0-9\/\?=_\-\.\,&%\$#\@\!\+]*)/i)){var r=this.decodeHTMLEntities(t),l=/google\.com(?:.+)?(document|presentation|spreadsheets|forms|drawings)/i,i=l.exec(r),o=i[1];o&&"forms"==o?(this.setState({editingURL:!1,cannotEmbed:!1}),n({iframeSrc:r})):this.setState({cannotEmbed:!0,editingURL:!0})}else this.setState({cannotEmbed:!0,editingURL:!0})}},{key:"switchBackToURLInput",value:function(){this.setState({editingURL:!0})}},{key:"render",value:function(){var e=this,t=this.state,n=t.url,r=t.editingURL,l=t.fetching,i=t.cannotEmbed,u=this.props.attributes.iframeSrc,m=p("Google Forms URL");return!u||r?wp.element.createElement(s.a,{label:m,onSubmit:this.setUrl,value:n,cannotEmbed:i,onChange:function(t){return e.setState({url:t.target.value})}}):wp.element.createElement(d,null,l?wp.element.createElement(a.a,null):null,wp.element.createElement(c.a,{src:u,onLoad:this.onLoad,style:{display:l?"none":""},frameborder:"0",width:"600",height:"450",allowfullscreen:"true",mozallowfullscreen:"true",webkitallowfullscreen:"true"}),wp.element.createElement(o.a,{showEditButton:u&&!i,switchBackToURLInput:this.switchBackToURLInput}))}}]),t}(f);t.a=w},function(e,t,n){"use strict";var r=n(24),l=(n.n(r),n(25)),i=(n.n(l),n(26)),o=n(4),a=wp.i18n.__;(0,wp.blocks.registerBlockType)("embedpress/google-drawings-block",{title:a("Google Drawings"),icon:o.b,category:"embedpress",keywords:[a("embedpress"),a("google"),a("drawings")],attributes:{url:{type:"string",default:""},iframeSrc:{type:"string",default:""}},edit:i.a,save:function(e){var t=e.attributes.iframeSrc;return wp.element.createElement("div",{class:"ose-google-docs-drawings"},wp.element.createElement("img",{src:t,width:"960",height:"720"}))}})},function(e,t){},function(e,t){},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var o=n(0),a=n(1),s=n(2),c=(n(3),function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}()),u=wp.i18n.__,p=wp.element,m=p.Component,f=p.Fragment,d=function(e){function t(){r(this,t);var e=l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.switchBackToURLInput=e.switchBackToURLInput.bind(e),e.setUrl=e.setUrl.bind(e),e.onLoad=e.onLoad.bind(e),e.state={editingURL:!1,url:e.props.attributes.url,fetching:!0,cannotEmbed:!1},e}return i(t,e),c(t,[{key:"onLoad",value:function(){this.setState({fetching:!1})}},{key:"decodeHTMLEntities",value:function(e){return e&&"string"===typeof e&&(e=e.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,""),e=e.replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,"")),e}},{key:"setUrl",value:function(e){e&&e.preventDefault();var t=this.state.url,n=this.props.setAttributes;if(n({url:t}),t&&t.match(/^http[s]?:\/\/((?:www\.)?docs\.google\.com(?:.*)?(?:document|presentation|spreadsheets|forms|drawings)\/[a-z0-9\/\?=_\-\.\,&%\$#\@\!\+]*)/i)){var r=this.decodeHTMLEntities(t),l=/google\.com(?:.+)?(document|presentation|spreadsheets|forms|drawings)/i,i=l.exec(r),o=i[1];o&&"drawings"==o?(this.setState({editingURL:!1,cannotEmbed:!1}),n({iframeSrc:r})):this.setState({cannotEmbed:!0,editingURL:!0})}else this.setState({cannotEmbed:!0,editingURL:!0})}},{key:"switchBackToURLInput",value:function(){this.setState({editingURL:!0})}},{key:"render",value:function(){var e=this,t=this.state,n=t.url,r=t.editingURL,l=t.fetching,i=t.cannotEmbed,c=this.props.attributes.iframeSrc,p=u("Google Drawings URL (Get your link from File -> Publish to the web -> Link)");return!c||r?wp.element.createElement(s.a,{label:p,onSubmit:this.setUrl,value:n,cannotEmbed:i,onChange:function(t){return e.setState({url:t.target.value})}}):wp.element.createElement(f,null,l?wp.element.createElement(a.a,null):null,wp.element.createElement("img",{src:c,onLoad:this.onLoad,style:{display:l?"none":""},width:"960",height:"720"}),wp.element.createElement(o.a,{showEditButton:c&&!i,switchBackToURLInput:this.switchBackToURLInput}))}}]),t}(m);t.a=d},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l=n(28),i=(n.n(l),n(29)),o=(n.n(i),n(30)),a=n(4),s=wp.i18n.__;(0,wp.blocks.registerBlockType)("embedpress/google-maps-block",{title:s("Google Maps"),icon:a.d,category:"embedpress",keywords:[s("embedpress"),s("google"),s("maps")],attributes:{url:{type:"string",default:""},iframeSrc:{type:"string",default:""}},edit:o.a,save:function(e){var t=e.attributes.iframeSrc;return wp.element.createElement("div",{class:"ose-google-maps"},wp.element.createElement("iframe",r({src:t,frameborder:"0",width:"600",height:"450"},"frameborder","0")))}})},function(e,t){},function(e,t){},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var o=n(0),a=n(1),s=n(2),c=n(3),u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),p=wp.i18n.__,m=wp.element,f=m.Component,d=m.Fragment,w=function(e){function t(){r(this,t);var e=l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.switchBackToURLInput=e.switchBackToURLInput.bind(e),e.setUrl=e.setUrl.bind(e),e.onLoad=e.onLoad.bind(e),e.state={editingURL:!1,url:e.props.attributes.url,fetching:!0,cannotEmbed:!1},e}return i(t,e),u(t,[{key:"onLoad",value:function(){this.setState({fetching:!1})}},{key:"decodeHTMLEntities",value:function(e){return e&&"string"===typeof e&&(e=e.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,""),e=e.replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,"")),e}},{key:"setUrl",value:function(e){e&&e.preventDefault();var t=this.state.url,n=this.props.setAttributes;if(n({url:t}),t&&t.match(/^http[s]?:\/\/(?:(?:(?:www\.|maps\.)?(?:google\.com?))|(?:goo\.gl))(?:\.[a-z]{2})?\/(?:maps\/)?(?:place\/)?(?:[a-z0-9\/%+\-_]*)?([a-z0-9\/%,+\-_=!:@\.&*\$#?\']*)/i)){var r=this.decodeHTMLEntities(t);if(t.match("~(maps/embed|output=embed)~i"));else{var l=/@(-?[0-9\.]+,-?[0-9\.]+).+,([0-9\.]+[a-z])/i,i=l.exec(r);i&&i.length>1&&i[1]&&i[2]?r="https://maps.google.com/maps?hl=en&ie=UTF8&ll="+i[1]+"&spn="+i[1]+"&t=m&z="+Math.round(parseInt(i[2]))+"&output=embed":this.setState({cannotEmbed:!0,editingURL:!0})}this.setState({editingURL:!1,cannotEmbed:!1}),n({iframeSrc:r})}else this.setState({cannotEmbed:!0,editingURL:!0})}},{key:"switchBackToURLInput",value:function(){this.setState({editingURL:!0})}},{key:"render",value:function(){var e=this,t=this.state,n=t.url,r=t.editingURL,l=t.fetching,i=t.cannotEmbed,u=this.props.attributes.iframeSrc,m=p("Google Maps URL");return!u||r?wp.element.createElement(s.a,{label:m,onSubmit:this.setUrl,value:n,cannotEmbed:i,onChange:function(t){return e.setState({url:t.target.value})}}):wp.element.createElement(d,null,l?wp.element.createElement(a.a,null):null,wp.element.createElement(c.a,{src:u,onLoad:this.onLoad,style:{display:l?"none":""},frameborder:"0",width:"600",height:"450",allowfullscreen:"true",mozallowfullscreen:"true",webkitallowfullscreen:"true"}),wp.element.createElement(o.a,{showEditButton:u&&!i,switchBackToURLInput:this.switchBackToURLInput}))}}]),t}(f);t.a=w},function(e,t,n){"use strict";var r=n(32),l=(n.n(r),n(33)),i=(n.n(l),n(34)),o=n(4),a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=wp.i18n.__;(0,wp.blocks.registerBlockType)("embedpress/twitch-block",{title:s("Twitch"),icon:o.g,category:"embedpress",keywords:[s("embedpress"),s("twitch")],attributes:{url:{type:"string",default:""},iframeSrc:{type:"string",default:""},attrs:{type:"string",default:""}},edit:i.a,save:function(e){var t=e.attributes,n=t.iframeSrc,r=t.attrs;return wp.element.createElement("div",{class:"ose-twitch-presentation"},wp.element.createElement("iframe",a({src:n},r,{frameborder:"0",width:"600",height:"450"})))}})},function(e,t){},function(e,t){},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var o=n(0),a=n(1),s=n(2),c=n(3),u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),m=wp.i18n.__,f=wp.element,d=f.Component,w=f.Fragment,h=function(e){function t(){r(this,t);var e=l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.switchBackToURLInput=e.switchBackToURLInput.bind(e),e.setUrl=e.setUrl.bind(e),e.onLoad=e.onLoad.bind(e),e.state={editingURL:!1,url:e.props.attributes.url,fetching:!0,cannotEmbed:!1},e}return i(t,e),p(t,[{key:"onLoad",value:function(){this.setState({fetching:!1})}},{key:"decodeHTMLEntities",value:function(e){return e&&"string"===typeof e&&(e=e.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,""),e=e.replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,"")),e}},{key:"setUrl",value:function(e){e&&e.preventDefault();var t=this.state.url,n=this.props.setAttributes;n({url:t});var r=/http[s]?:\/\/(?:www\.|clips\.)twitch\.tv\/([0-9a-zA-Z\-\_]+)\/?(chat\/?$|[0-9a-z\-\_]*)?/;if(t&&t.match(r)){var l=this.decodeHTMLEntities(t),i=r.exec(l),o=i[1];console.log(o);var a,s="channel";switch(t.indexOf("clips.twitch.tv")>-1?s="clip":t.indexOf("/videos/")>-1?s="video":t.indexOf("#/chat$#")>-1&&(s="chat"),console.log(s),s){case"channel":l="https://player.twitch.tv/?channel="+o,a={scrolling:"no",frameborder:"0",allowfullscreen:"true"};break;case"clip":l="https://clips.twitch.tv/embed?clip="+o+"&autoplay=false",a={scrolling:"no",frameborder:"0",allowfullscreen:"true"};break;case"video":o=i[2],l="https://player.twitch.tv/?video="+o,a={scrolling:"no",frameborder:"0",allowfullscreen:"true"};break;case"chat":l="http://www.twitch.tv/embed/"+o+"/chat",a={scrolling:"yes",frameborder:"0",allowfullscreen:"true",id:"'"+o+"'"}}console.log(l),this.setState({editingURL:!1,cannotEmbed:!1}),n({iframeSrc:l,attrs:a})}else this.setState({cannotEmbed:!0,editingURL:!0})}},{key:"switchBackToURLInput",value:function(){this.setState({editingURL:!0})}},{key:"render",value:function(){var e=this,t=this.state,n=t.url,r=t.editingURL,l=t.fetching,i=t.cannotEmbed,p=this.props.attributes,f=p.iframeSrc,d=p.attrs,h=m("Twitch URL");return!f||r?wp.element.createElement(s.a,{label:h,onSubmit:this.setUrl,value:n,cannotEmbed:i,onChange:function(t){return e.setState({url:t.target.value})}}):wp.element.createElement(w,null,l?wp.element.createElement(a.a,null):null,wp.element.createElement(c.a,u({src:f},d,{onLoad:this.onLoad,style:{display:l?"none":""},width:"600",height:"450"})),wp.element.createElement(o.a,{showEditButton:f&&!i,switchBackToURLInput:this.switchBackToURLInput}))}}]),t}(d);t.a=h},function(e,t,n){"use strict";var r=n(36),l=(n.n(r),n(37)),i=(n.n(l),n(38)),o=n(4),a=wp.i18n.__;(0,wp.blocks.registerBlockType)("embedpress/wistia-block",{title:a("Wistia"),icon:o.h,category:"embedpress",keywords:[a("embedpress"),a("wistia")],edit:i.a,save:function(e){return null},deprecated:[{attributes:{url:{type:"string",default:""},iframeSrc:{type:"string",default:""}},edit:i.a,save:function(e){var t=e.attributes.iframeSrc;return wp.element.createElement("div",{class:"ose-wistia"},wp.element.createElement("iframe",{src:t,allowtransparency:"true",frameborder:"0",class:"wistia_embed",name:"wistia_embed",width:"600",height:"330"}))}}]})},function(e,t){},function(e,t){},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var o=n(0),a=n(1),s=n(2),c=n(3),u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),p=wp.i18n.__,m=wp.element,f=m.Component,d=m.Fragment,w=function(e){function t(){r(this,t);var e=l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.switchBackToURLInput=e.switchBackToURLInput.bind(e),e.setUrl=e.setUrl.bind(e),e.onLoad=e.onLoad.bind(e),e.state={editingURL:!1,url:e.props.attributes.url,fetching:!0,cannotEmbed:!1,mediaId:null},e.setUrl(),e}return i(t,e),u(t,[{key:"componentDidMount",value:function(){if(this.props.attributes.url){var e=this.props.attributes.url.match(/medias\/(.*)/),t=e[1];this.setState(Object.assign({},this.state,{mediaId:t}))}}},{key:"onLoad",value:function(){if(this.setState({fetching:!1}),console.log(embedpressObj),embedpressObj.wisita_options){var e=Object.assign({},this.state);setTimeout(function(){var e=document.createElement("script");e.src="https://fast.wistia.com/assets/external/E-v1.js",e.charset="ISO-8859-1",document.body.appendChild(e)},100),setTimeout(function(){var t=document.createElement("script");t.type="text/javascript",t.innerHTML="window.pp_embed_wistia_labels = "+embedpressObj.wistia_labels,document.body.appendChild(t),t=document.createElement("script"),t.type="text/javascript",t.innerHTML='wistiaEmbed = Wistia.embed( "'+e.mediaId+'", '+embedpressObj.wisita_options+" );",document.body.appendChild(t)},400)}}},{key:"decodeHTMLEntities",value:function(e){return e&&"string"===typeof e&&(e=e.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,""),e=e.replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,"")),e}},{key:"setUrl",value:function(e){e&&e.preventDefault();var t=this.state.url,n=this.props.setAttributes;if(n({url:t}),t&&(t.match(/^http[s]?:\/\/(?:www\.)?wistia\.com\/medias/i)||t.match(/^http[s]?:\/\/(?:www\.)?fast\/.wistia\.com\/embed\/medias/i.jsonp))){var r=t.match(/medias\/(.*)/),l=r[1],i="//fast.wistia.net/embed/iframe/"+l;this.setState({editingURL:!1,cannotEmbed:!1,mediaId:l}),n({iframeSrc:i})}else this.setState({cannotEmbed:!0,editingURL:!0})}},{key:"switchBackToURLInput",value:function(){this.setState({editingURL:!0})}},{key:"render",value:function(){var e=this,t=this.state,n=t.url,r=t.editingURL,l=t.fetching,i=t.cannotEmbed,u=this.props.attributes.iframeSrc,m=p("Wistia URL");return!u||r?wp.element.createElement(s.a,{label:m,onSubmit:this.setUrl,value:n,cannotEmbed:i,onChange:function(t){return e.setState({url:t.target.value})}}):wp.element.createElement(d,null,l?wp.element.createElement(a.a,null):null,wp.element.createElement("div",{className:"ose-wistia",id:"wistia_"+this.state.mediaId},wp.element.createElement(c.a,{src:u,onLoad:this.onLoad,style:{display:l?"none":""},frameborder:"0",width:"600",height:"330",allowfullscreen:"true",mozallowfullscreen:"true",webkitallowfullscreen:"true"})),wp.element.createElement(o.a,{showEditButton:u&&!i,switchBackToURLInput:this.switchBackToURLInput}))}}]),t}(f);t.a=w}]);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Gutenberg/dist/blocks.editor.build.css
CHANGED
@@ -1,96 +0,0 @@
|
|
1 |
-
/**
|
2 |
-
* #.# Common SCSS
|
3 |
-
*
|
4 |
-
* Can include things like variables and mixins
|
5 |
-
* that are used across the project.
|
6 |
-
*/
|
7 |
-
/**
|
8 |
-
* #.# Editor Styles
|
9 |
-
*
|
10 |
-
* CSS for just Backend enqueued after style.scss
|
11 |
-
* which makes it higher in priority.
|
12 |
-
*/
|
13 |
-
/**
|
14 |
-
* #.# Common SCSS
|
15 |
-
*
|
16 |
-
* Can include things like variables and mixins
|
17 |
-
* that are used across the project.
|
18 |
-
*/
|
19 |
-
/**
|
20 |
-
* #.# Editor Styles
|
21 |
-
*
|
22 |
-
* CSS for just Backend enqueued after style.scss
|
23 |
-
* which makes it higher in priority.
|
24 |
-
*/
|
25 |
-
/**
|
26 |
-
* #.# Common SCSS
|
27 |
-
*
|
28 |
-
* Can include things like variables and mixins
|
29 |
-
* that are used across the project.
|
30 |
-
*/
|
31 |
-
/**
|
32 |
-
* #.# Editor Styles
|
33 |
-
*
|
34 |
-
* CSS for just Backend enqueued after style.scss
|
35 |
-
* which makes it higher in priority.
|
36 |
-
*/
|
37 |
-
/**
|
38 |
-
* #.# Common SCSS
|
39 |
-
*
|
40 |
-
* Can include things like variables and mixins
|
41 |
-
* that are used across the project.
|
42 |
-
*/
|
43 |
-
/**
|
44 |
-
* #.# Editor Styles
|
45 |
-
*
|
46 |
-
* CSS for just Backend enqueued after style.scss
|
47 |
-
* which makes it higher in priority.
|
48 |
-
*/
|
49 |
-
/**
|
50 |
-
* #.# Common SCSS
|
51 |
-
*
|
52 |
-
* Can include things like variables and mixins
|
53 |
-
* that are used across the project.
|
54 |
-
*/
|
55 |
-
/**
|
56 |
-
* #.# Editor Styles
|
57 |
-
*
|
58 |
-
* CSS for just Backend enqueued after style.scss
|
59 |
-
* which makes it higher in priority.
|
60 |
-
*/
|
61 |
-
/**
|
62 |
-
* #.# Common SCSS
|
63 |
-
*
|
64 |
-
* Can include things like variables and mixins
|
65 |
-
* that are used across the project.
|
66 |
-
*/
|
67 |
-
/**
|
68 |
-
* #.# Editor Styles
|
69 |
-
*
|
70 |
-
* CSS for just Backend enqueued after style.scss
|
71 |
-
* which makes it higher in priority.
|
72 |
-
*/
|
73 |
-
/**
|
74 |
-
* #.# Common SCSS
|
75 |
-
*
|
76 |
-
* Can include things like variables and mixins
|
77 |
-
* that are used across the project.
|
78 |
-
*/
|
79 |
-
/**
|
80 |
-
* #.# Editor Styles
|
81 |
-
*
|
82 |
-
* CSS for just Backend enqueued after style.scss
|
83 |
-
* which makes it higher in priority.
|
84 |
-
*/
|
85 |
-
/**
|
86 |
-
* #.# Common SCSS
|
87 |
-
*
|
88 |
-
* Can include things like variables and mixins
|
89 |
-
* that are used across the project.
|
90 |
-
*/
|
91 |
-
/**
|
92 |
-
* #.# Editor Styles
|
93 |
-
*
|
94 |
-
* CSS for just Backend enqueued after style.scss
|
95 |
-
* which makes it higher in priority.
|
96 |
-
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Gutenberg/dist/blocks.style.build.css
CHANGED
@@ -1,88 +0,0 @@
|
|
1 |
-
/**
|
2 |
-
* #.# Common SCSS
|
3 |
-
*
|
4 |
-
* Can include things like variables and mixins
|
5 |
-
* that are used across the project.
|
6 |
-
*/
|
7 |
-
/**
|
8 |
-
* #.# Styles
|
9 |
-
*
|
10 |
-
* CSS for both Frontend+Backend.
|
11 |
-
*/
|
12 |
-
/**
|
13 |
-
* #.# Common SCSS
|
14 |
-
*
|
15 |
-
* Can include things like variables and mixins
|
16 |
-
* that are used across the project.
|
17 |
-
*/
|
18 |
-
/**
|
19 |
-
* #.# Styles
|
20 |
-
*
|
21 |
-
* CSS for both Frontend+Backend.
|
22 |
-
*/
|
23 |
-
/**
|
24 |
-
* #.# Common SCSS
|
25 |
-
*
|
26 |
-
* Can include things like variables and mixins
|
27 |
-
* that are used across the project.
|
28 |
-
*/
|
29 |
-
/**
|
30 |
-
* #.# Styles
|
31 |
-
*
|
32 |
-
* CSS for both Frontend+Backend.
|
33 |
-
*/
|
34 |
-
/**
|
35 |
-
* #.# Common SCSS
|
36 |
-
*
|
37 |
-
* Can include things like variables and mixins
|
38 |
-
* that are used across the project.
|
39 |
-
*/
|
40 |
-
/**
|
41 |
-
* #.# Styles
|
42 |
-
*
|
43 |
-
* CSS for both Frontend+Backend.
|
44 |
-
*/
|
45 |
-
/**
|
46 |
-
* #.# Common SCSS
|
47 |
-
*
|
48 |
-
* Can include things like variables and mixins
|
49 |
-
* that are used across the project.
|
50 |
-
*/
|
51 |
-
/**
|
52 |
-
* #.# Styles
|
53 |
-
*
|
54 |
-
* CSS for both Frontend+Backend.
|
55 |
-
*/
|
56 |
-
/**
|
57 |
-
* #.# Common SCSS
|
58 |
-
*
|
59 |
-
* Can include things like variables and mixins
|
60 |
-
* that are used across the project.
|
61 |
-
*/
|
62 |
-
/**
|
63 |
-
* #.# Styles
|
64 |
-
*
|
65 |
-
* CSS for both Frontend+Backend.
|
66 |
-
*/
|
67 |
-
/**
|
68 |
-
* #.# Common SCSS
|
69 |
-
*
|
70 |
-
* Can include things like variables and mixins
|
71 |
-
* that are used across the project.
|
72 |
-
*/
|
73 |
-
/**
|
74 |
-
* #.# Styles
|
75 |
-
*
|
76 |
-
* CSS for both Frontend+Backend.
|
77 |
-
*/
|
78 |
-
/**
|
79 |
-
* #.# Common SCSS
|
80 |
-
*
|
81 |
-
* Can include things like variables and mixins
|
82 |
-
* that are used across the project.
|
83 |
-
*/
|
84 |
-
/**
|
85 |
-
* #.# Styles
|
86 |
-
*
|
87 |
-
* CSS for both Frontend+Backend.
|
88 |
-
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Gutenberg/package-lock.json
CHANGED
@@ -2822,7 +2822,8 @@
|
|
2822 |
},
|
2823 |
"ansi-regex": {
|
2824 |
"version": "2.1.1",
|
2825 |
-
"bundled": true
|
|
|
2826 |
},
|
2827 |
"aproba": {
|
2828 |
"version": "1.2.0",
|
@@ -2840,11 +2841,13 @@
|
|
2840 |
},
|
2841 |
"balanced-match": {
|
2842 |
"version": "1.0.0",
|
2843 |
-
"bundled": true
|
|
|
2844 |
},
|
2845 |
"brace-expansion": {
|
2846 |
"version": "1.1.11",
|
2847 |
"bundled": true,
|
|
|
2848 |
"requires": {
|
2849 |
"balanced-match": "^1.0.0",
|
2850 |
"concat-map": "0.0.1"
|
@@ -2857,15 +2860,18 @@
|
|
2857 |
},
|
2858 |
"code-point-at": {
|
2859 |
"version": "1.1.0",
|
2860 |
-
"bundled": true
|
|
|
2861 |
},
|
2862 |
"concat-map": {
|
2863 |
"version": "0.0.1",
|
2864 |
-
"bundled": true
|
|
|
2865 |
},
|
2866 |
"console-control-strings": {
|
2867 |
"version": "1.1.0",
|
2868 |
-
"bundled": true
|
|
|
2869 |
},
|
2870 |
"core-util-is": {
|
2871 |
"version": "1.0.2",
|
@@ -2968,7 +2974,8 @@
|
|
2968 |
},
|
2969 |
"inherits": {
|
2970 |
"version": "2.0.3",
|
2971 |
-
"bundled": true
|
|
|
2972 |
},
|
2973 |
"ini": {
|
2974 |
"version": "1.3.5",
|
@@ -2978,6 +2985,7 @@
|
|
2978 |
"is-fullwidth-code-point": {
|
2979 |
"version": "1.0.0",
|
2980 |
"bundled": true,
|
|
|
2981 |
"requires": {
|
2982 |
"number-is-nan": "^1.0.0"
|
2983 |
}
|
@@ -2990,17 +2998,20 @@
|
|
2990 |
"minimatch": {
|
2991 |
"version": "3.0.4",
|
2992 |
"bundled": true,
|
|
|
2993 |
"requires": {
|
2994 |
"brace-expansion": "^1.1.7"
|
2995 |
}
|
2996 |
},
|
2997 |
"minimist": {
|
2998 |
"version": "0.0.8",
|
2999 |
-
"bundled": true
|
|
|
3000 |
},
|
3001 |
"minipass": {
|
3002 |
"version": "2.3.5",
|
3003 |
"bundled": true,
|
|
|
3004 |
"requires": {
|
3005 |
"safe-buffer": "^5.1.2",
|
3006 |
"yallist": "^3.0.0"
|
@@ -3017,6 +3028,7 @@
|
|
3017 |
"mkdirp": {
|
3018 |
"version": "0.5.1",
|
3019 |
"bundled": true,
|
|
|
3020 |
"requires": {
|
3021 |
"minimist": "0.0.8"
|
3022 |
}
|
@@ -3089,7 +3101,8 @@
|
|
3089 |
},
|
3090 |
"number-is-nan": {
|
3091 |
"version": "1.0.1",
|
3092 |
-
"bundled": true
|
|
|
3093 |
},
|
3094 |
"object-assign": {
|
3095 |
"version": "4.1.1",
|
@@ -3099,6 +3112,7 @@
|
|
3099 |
"once": {
|
3100 |
"version": "1.4.0",
|
3101 |
"bundled": true,
|
|
|
3102 |
"requires": {
|
3103 |
"wrappy": "1"
|
3104 |
}
|
@@ -3174,7 +3188,8 @@
|
|
3174 |
},
|
3175 |
"safe-buffer": {
|
3176 |
"version": "5.1.2",
|
3177 |
-
"bundled": true
|
|
|
3178 |
},
|
3179 |
"safer-buffer": {
|
3180 |
"version": "2.1.2",
|
@@ -3204,6 +3219,7 @@
|
|
3204 |
"string-width": {
|
3205 |
"version": "1.0.2",
|
3206 |
"bundled": true,
|
|
|
3207 |
"requires": {
|
3208 |
"code-point-at": "^1.0.0",
|
3209 |
"is-fullwidth-code-point": "^1.0.0",
|
@@ -3221,6 +3237,7 @@
|
|
3221 |
"strip-ansi": {
|
3222 |
"version": "3.0.1",
|
3223 |
"bundled": true,
|
|
|
3224 |
"requires": {
|
3225 |
"ansi-regex": "^2.0.0"
|
3226 |
}
|
@@ -3259,11 +3276,13 @@
|
|
3259 |
},
|
3260 |
"wrappy": {
|
3261 |
"version": "1.0.2",
|
3262 |
-
"bundled": true
|
|
|
3263 |
},
|
3264 |
"yallist": {
|
3265 |
"version": "3.0.3",
|
3266 |
-
"bundled": true
|
|
|
3267 |
}
|
3268 |
}
|
3269 |
},
|
2822 |
},
|
2823 |
"ansi-regex": {
|
2824 |
"version": "2.1.1",
|
2825 |
+
"bundled": true,
|
2826 |
+
"optional": true
|
2827 |
},
|
2828 |
"aproba": {
|
2829 |
"version": "1.2.0",
|
2841 |
},
|
2842 |
"balanced-match": {
|
2843 |
"version": "1.0.0",
|
2844 |
+
"bundled": true,
|
2845 |
+
"optional": true
|
2846 |
},
|
2847 |
"brace-expansion": {
|
2848 |
"version": "1.1.11",
|
2849 |
"bundled": true,
|
2850 |
+
"optional": true,
|
2851 |
"requires": {
|
2852 |
"balanced-match": "^1.0.0",
|
2853 |
"concat-map": "0.0.1"
|
2860 |
},
|
2861 |
"code-point-at": {
|
2862 |
"version": "1.1.0",
|
2863 |
+
"bundled": true,
|
2864 |
+
"optional": true
|
2865 |
},
|
2866 |
"concat-map": {
|
2867 |
"version": "0.0.1",
|
2868 |
+
"bundled": true,
|
2869 |
+
"optional": true
|
2870 |
},
|
2871 |
"console-control-strings": {
|
2872 |
"version": "1.1.0",
|
2873 |
+
"bundled": true,
|
2874 |
+
"optional": true
|
2875 |
},
|
2876 |
"core-util-is": {
|
2877 |
"version": "1.0.2",
|
2974 |
},
|
2975 |
"inherits": {
|
2976 |
"version": "2.0.3",
|
2977 |
+
"bundled": true,
|
2978 |
+
"optional": true
|
2979 |
},
|
2980 |
"ini": {
|
2981 |
"version": "1.3.5",
|
2985 |
"is-fullwidth-code-point": {
|
2986 |
"version": "1.0.0",
|
2987 |
"bundled": true,
|
2988 |
+
"optional": true,
|
2989 |
"requires": {
|
2990 |
"number-is-nan": "^1.0.0"
|
2991 |
}
|
2998 |
"minimatch": {
|
2999 |
"version": "3.0.4",
|
3000 |
"bundled": true,
|
3001 |
+
"optional": true,
|
3002 |
"requires": {
|
3003 |
"brace-expansion": "^1.1.7"
|
3004 |
}
|
3005 |
},
|
3006 |
"minimist": {
|
3007 |
"version": "0.0.8",
|
3008 |
+
"bundled": true,
|
3009 |
+
"optional": true
|
3010 |
},
|
3011 |
"minipass": {
|
3012 |
"version": "2.3.5",
|
3013 |
"bundled": true,
|
3014 |
+
"optional": true,
|
3015 |
"requires": {
|
3016 |
"safe-buffer": "^5.1.2",
|
3017 |
"yallist": "^3.0.0"
|
3028 |
"mkdirp": {
|
3029 |
"version": "0.5.1",
|
3030 |
"bundled": true,
|
3031 |
+
"optional": true,
|
3032 |
"requires": {
|
3033 |
"minimist": "0.0.8"
|
3034 |
}
|
3101 |
},
|
3102 |
"number-is-nan": {
|
3103 |
"version": "1.0.1",
|
3104 |
+
"bundled": true,
|
3105 |
+
"optional": true
|
3106 |
},
|
3107 |
"object-assign": {
|
3108 |
"version": "4.1.1",
|
3112 |
"once": {
|
3113 |
"version": "1.4.0",
|
3114 |
"bundled": true,
|
3115 |
+
"optional": true,
|
3116 |
"requires": {
|
3117 |
"wrappy": "1"
|
3118 |
}
|
3188 |
},
|
3189 |
"safe-buffer": {
|
3190 |
"version": "5.1.2",
|
3191 |
+
"bundled": true,
|
3192 |
+
"optional": true
|
3193 |
},
|
3194 |
"safer-buffer": {
|
3195 |
"version": "2.1.2",
|
3219 |
"string-width": {
|
3220 |
"version": "1.0.2",
|
3221 |
"bundled": true,
|
3222 |
+
"optional": true,
|
3223 |
"requires": {
|
3224 |
"code-point-at": "^1.0.0",
|
3225 |
"is-fullwidth-code-point": "^1.0.0",
|
3237 |
"strip-ansi": {
|
3238 |
"version": "3.0.1",
|
3239 |
"bundled": true,
|
3240 |
+
"optional": true,
|
3241 |
"requires": {
|
3242 |
"ansi-regex": "^2.0.0"
|
3243 |
}
|
3276 |
},
|
3277 |
"wrappy": {
|
3278 |
"version": "1.0.2",
|
3279 |
+
"bundled": true,
|
3280 |
+
"optional": true
|
3281 |
},
|
3282 |
"yallist": {
|
3283 |
"version": "3.0.3",
|
3284 |
+
"bundled": true,
|
3285 |
+
"optional": true
|
3286 |
}
|
3287 |
}
|
3288 |
},
|
Gutenberg/src/google-docs/index.js
CHANGED
@@ -65,7 +65,7 @@ registerBlockType( 'embedpress/google-docs-block', {
|
|
65 |
* @link https://wordpress.org/gutenberg/handbook/block-api/block-edit-save/
|
66 |
*/
|
67 |
save: function( props ) {
|
68 |
-
const { iframeSrc } = props.attributes
|
69 |
return (
|
70 |
<div class="ose-google-docs-document">
|
71 |
<iframe src={iframeSrc} frameborder="0" width="600" height="450" allowfullscreen="true" mozallowfullscreen="true" webkitallowfullscreen="true"></iframe>
|
65 |
* @link https://wordpress.org/gutenberg/handbook/block-api/block-edit-save/
|
66 |
*/
|
67 |
save: function( props ) {
|
68 |
+
const { iframeSrc } = props.attributes
|
69 |
return (
|
70 |
<div class="ose-google-docs-document">
|
71 |
<iframe src={iframeSrc} frameborder="0" width="600" height="450" allowfullscreen="true" mozallowfullscreen="true" webkitallowfullscreen="true"></iframe>
|
Gutenberg/src/google-drawings/index.js
CHANGED
@@ -30,7 +30,7 @@ registerBlockType( 'embedpress/google-drawings-block', {
|
|
30 |
// Block name. Block names must be string that contains a namespace prefix. Example: my-plugin/my-custom-block.
|
31 |
title: __( 'Google Drawings' ), // Block title.
|
32 |
icon: googleDrawingsIcon, // Block icon from Dashicons → https://developer.wordpress.org/resource/dashicons/.
|
33 |
-
category: 'embedpress', // Block category — Group blocks together based on common traits E.g. common, formatting, layout
|
34 |
keywords: [
|
35 |
__( 'embedpress' ),
|
36 |
__( 'google' ),
|
@@ -65,7 +65,7 @@ registerBlockType( 'embedpress/google-drawings-block', {
|
|
65 |
* @link https://wordpress.org/gutenberg/handbook/block-api/block-edit-save/
|
66 |
*/
|
67 |
save: function( props ) {
|
68 |
-
const { iframeSrc } = props.attributes
|
69 |
return (
|
70 |
<div class="ose-google-docs-drawings">
|
71 |
<img src={iframeSrc} width="960" height="720"/>
|
30 |
// Block name. Block names must be string that contains a namespace prefix. Example: my-plugin/my-custom-block.
|
31 |
title: __( 'Google Drawings' ), // Block title.
|
32 |
icon: googleDrawingsIcon, // Block icon from Dashicons → https://developer.wordpress.org/resource/dashicons/.
|
33 |
+
category: 'embedpress', // Block category — Group blocks together based on common traits E.g. common, formatting, layout Widgets, embed.
|
34 |
keywords: [
|
35 |
__( 'embedpress' ),
|
36 |
__( 'google' ),
|
65 |
* @link https://wordpress.org/gutenberg/handbook/block-api/block-edit-save/
|
66 |
*/
|
67 |
save: function( props ) {
|
68 |
+
const { iframeSrc } = props.attributes
|
69 |
return (
|
70 |
<div class="ose-google-docs-drawings">
|
71 |
<img src={iframeSrc} width="960" height="720"/>
|
Gutenberg/src/google-forms/index.js
CHANGED
@@ -30,7 +30,7 @@ registerBlockType( 'embedpress/google-forms-block', {
|
|
30 |
// Block name. Block names must be string that contains a namespace prefix. Example: my-plugin/my-custom-block.
|
31 |
title: __( 'Google Forms' ), // Block title.
|
32 |
icon: googleFormsIcon, // Block icon from Dashicons → https://developer.wordpress.org/resource/dashicons/.
|
33 |
-
category: 'embedpress', // Block category — Group blocks together based on common traits E.g. common, formatting, layout
|
34 |
keywords: [
|
35 |
__( 'embedpress' ),
|
36 |
__( 'google' ),
|
@@ -65,7 +65,7 @@ registerBlockType( 'embedpress/google-forms-block', {
|
|
65 |
* @link https://wordpress.org/gutenberg/handbook/block-api/block-edit-save/
|
66 |
*/
|
67 |
save: function( props ) {
|
68 |
-
const { iframeSrc } = props.attributes
|
69 |
return (
|
70 |
<div class="ose-google-docs-forms">
|
71 |
<iframe src={iframeSrc} frameborder="0" width="600" height="450" allowfullscreen="true" mozallowfullscreen="true" webkitallowfullscreen="true"></iframe>
|
30 |
// Block name. Block names must be string that contains a namespace prefix. Example: my-plugin/my-custom-block.
|
31 |
title: __( 'Google Forms' ), // Block title.
|
32 |
icon: googleFormsIcon, // Block icon from Dashicons → https://developer.wordpress.org/resource/dashicons/.
|
33 |
+
category: 'embedpress', // Block category — Group blocks together based on common traits E.g. common, formatting, layout Widgets, embed.
|
34 |
keywords: [
|
35 |
__( 'embedpress' ),
|
36 |
__( 'google' ),
|
65 |
* @link https://wordpress.org/gutenberg/handbook/block-api/block-edit-save/
|
66 |
*/
|
67 |
save: function( props ) {
|
68 |
+
const { iframeSrc } = props.attributes
|
69 |
return (
|
70 |
<div class="ose-google-docs-forms">
|
71 |
<iframe src={iframeSrc} frameborder="0" width="600" height="450" allowfullscreen="true" mozallowfullscreen="true" webkitallowfullscreen="true"></iframe>
|
Gutenberg/src/google-maps/edit.js
CHANGED
@@ -51,7 +51,7 @@ class GoogleSlidesEdit extends Component {
|
|
51 |
setAttributes( { url } );
|
52 |
if(url && url.match(/^http[s]?:\/\/(?:(?:(?:www\.|maps\.)?(?:google\.com?))|(?:goo\.gl))(?:\.[a-z]{2})?\/(?:maps\/)?(?:place\/)?(?:[a-z0-9\/%+\-_]*)?([a-z0-9\/%,+\-_=!:@\.&*\$#?\']*)/i) ) {
|
53 |
var iframeSrc = this.decodeHTMLEntities(url);
|
54 |
-
/google\.com(?:.+)?(document|presentation|spreadsheets|forms|drawings)/i;
|
55 |
if(url.match('~(maps/embed|output=embed)~i')) {
|
56 |
//do something
|
57 |
}
|
@@ -59,7 +59,7 @@ class GoogleSlidesEdit extends Component {
|
|
59 |
var regEx = /@(-?[0-9\.]+,-?[0-9\.]+).+,([0-9\.]+[a-z])/i;
|
60 |
var match = regEx.exec(iframeSrc);
|
61 |
if(match && match.length > 1 && match[1] && match[2]) {
|
62 |
-
iframeSrc = '
|
63 |
}
|
64 |
else {
|
65 |
this.setState({
|
@@ -67,7 +67,7 @@ class GoogleSlidesEdit extends Component {
|
|
67 |
editingURL: true
|
68 |
})
|
69 |
}
|
70 |
-
|
71 |
}
|
72 |
this.setState( { editingURL: false, cannotEmbed: false } );
|
73 |
setAttributes( {iframeSrc: iframeSrc })
|
@@ -83,7 +83,7 @@ class GoogleSlidesEdit extends Component {
|
|
83 |
switchBackToURLInput() {
|
84 |
this.setState( { editingURL: true } );
|
85 |
}
|
86 |
-
|
87 |
render() {
|
88 |
const { url, editingURL, fetching, cannotEmbed } = this.state;
|
89 |
const { iframeSrc } = this.props.attributes;
|
@@ -103,7 +103,7 @@ class GoogleSlidesEdit extends Component {
|
|
103 |
);
|
104 |
}
|
105 |
else {
|
106 |
-
|
107 |
return (
|
108 |
<Fragment>
|
109 |
{fetching ? <EmbedLoading /> : null}
|
@@ -111,7 +111,7 @@ class GoogleSlidesEdit extends Component {
|
|
111 |
<EmbedControls
|
112 |
showEditButton={ iframeSrc && ! cannotEmbed }
|
113 |
switchBackToURLInput={ this.switchBackToURLInput }
|
114 |
-
/>
|
115 |
</Fragment>
|
116 |
|
117 |
)
|
51 |
setAttributes( { url } );
|
52 |
if(url && url.match(/^http[s]?:\/\/(?:(?:(?:www\.|maps\.)?(?:google\.com?))|(?:goo\.gl))(?:\.[a-z]{2})?\/(?:maps\/)?(?:place\/)?(?:[a-z0-9\/%+\-_]*)?([a-z0-9\/%,+\-_=!:@\.&*\$#?\']*)/i) ) {
|
53 |
var iframeSrc = this.decodeHTMLEntities(url);
|
54 |
+
/google\.com(?:.+)?(document|presentation|spreadsheets|forms|drawings)/i;
|
55 |
if(url.match('~(maps/embed|output=embed)~i')) {
|
56 |
//do something
|
57 |
}
|
59 |
var regEx = /@(-?[0-9\.]+,-?[0-9\.]+).+,([0-9\.]+[a-z])/i;
|
60 |
var match = regEx.exec(iframeSrc);
|
61 |
if(match && match.length > 1 && match[1] && match[2]) {
|
62 |
+
iframeSrc = 'https://maps.google.com/maps?hl=en&ie=UTF8&ll=' + match[1] + '&spn=' + match[1] + '&t=m&z=' + Math.round(parseInt(match[2])) + '&output=embed';
|
63 |
}
|
64 |
else {
|
65 |
this.setState({
|
67 |
editingURL: true
|
68 |
})
|
69 |
}
|
70 |
+
|
71 |
}
|
72 |
this.setState( { editingURL: false, cannotEmbed: false } );
|
73 |
setAttributes( {iframeSrc: iframeSrc })
|
83 |
switchBackToURLInput() {
|
84 |
this.setState( { editingURL: true } );
|
85 |
}
|
86 |
+
|
87 |
render() {
|
88 |
const { url, editingURL, fetching, cannotEmbed } = this.state;
|
89 |
const { iframeSrc } = this.props.attributes;
|
103 |
);
|
104 |
}
|
105 |
else {
|
106 |
+
|
107 |
return (
|
108 |
<Fragment>
|
109 |
{fetching ? <EmbedLoading /> : null}
|
111 |
<EmbedControls
|
112 |
showEditButton={ iframeSrc && ! cannotEmbed }
|
113 |
switchBackToURLInput={ this.switchBackToURLInput }
|
114 |
+
/>
|
115 |
</Fragment>
|
116 |
|
117 |
)
|
Gutenberg/src/google-maps/index.js
CHANGED
@@ -30,7 +30,7 @@ registerBlockType( 'embedpress/google-maps-block', {
|
|
30 |
// Block name. Block names must be string that contains a namespace prefix. Example: my-plugin/my-custom-block.
|
31 |
title: __( 'Google Maps' ), // Block title.
|
32 |
icon: googleMapsIcon, // Block icon from Dashicons → https://developer.wordpress.org/resource/dashicons/.
|
33 |
-
category: 'embedpress', // Block category — Group blocks together based on common traits E.g. common, formatting, layout
|
34 |
keywords: [
|
35 |
__( 'embedpress' ),
|
36 |
__( 'google' ),
|
@@ -65,7 +65,7 @@ registerBlockType( 'embedpress/google-maps-block', {
|
|
65 |
* @link https://wordpress.org/gutenberg/handbook/block-api/block-edit-save/
|
66 |
*/
|
67 |
save: function( props ) {
|
68 |
-
const { iframeSrc } = props.attributes
|
69 |
return (
|
70 |
<div class="ose-google-maps">
|
71 |
<iframe src={iframeSrc} frameborder="0" width="600" height="450" frameborder="0"></iframe>
|
30 |
// Block name. Block names must be string that contains a namespace prefix. Example: my-plugin/my-custom-block.
|
31 |
title: __( 'Google Maps' ), // Block title.
|
32 |
icon: googleMapsIcon, // Block icon from Dashicons → https://developer.wordpress.org/resource/dashicons/.
|
33 |
+
category: 'embedpress', // Block category — Group blocks together based on common traits E.g. common, formatting, layout Widgets, embed.
|
34 |
keywords: [
|
35 |
__( 'embedpress' ),
|
36 |
__( 'google' ),
|
65 |
* @link https://wordpress.org/gutenberg/handbook/block-api/block-edit-save/
|
66 |
*/
|
67 |
save: function( props ) {
|
68 |
+
const { iframeSrc } = props.attributes
|
69 |
return (
|
70 |
<div class="ose-google-maps">
|
71 |
<iframe src={iframeSrc} frameborder="0" width="600" height="450" frameborder="0"></iframe>
|
Gutenberg/src/google-sheets/index.js
CHANGED
@@ -30,7 +30,7 @@ registerBlockType( 'embedpress/google-sheets-block', {
|
|
30 |
// Block name. Block names must be string that contains a namespace prefix. Example: my-plugin/my-custom-block.
|
31 |
title: __( 'Google Sheets' ), // Block title.
|
32 |
icon: googleSheetsIcon, // Block icon from Dashicons → https://developer.wordpress.org/resource/dashicons/.
|
33 |
-
category: 'embedpress', // Block category — Group blocks together based on common traits E.g. common, formatting, layout
|
34 |
keywords: [
|
35 |
__( 'embedpress' ),
|
36 |
__( 'google' ),
|
@@ -65,7 +65,7 @@ registerBlockType( 'embedpress/google-sheets-block', {
|
|
65 |
* @link https://wordpress.org/gutenberg/handbook/block-api/block-edit-save/
|
66 |
*/
|
67 |
save: function( props ) {
|
68 |
-
const { iframeSrc } = props.attributes
|
69 |
return (
|
70 |
<div class="ose-google-docs-spreadsheets">
|
71 |
<iframe src={iframeSrc} frameborder="0" width="600" height="450" allowfullscreen="true" mozallowfullscreen="true" webkitallowfullscreen="true"></iframe>
|
30 |
// Block name. Block names must be string that contains a namespace prefix. Example: my-plugin/my-custom-block.
|
31 |
title: __( 'Google Sheets' ), // Block title.
|
32 |
icon: googleSheetsIcon, // Block icon from Dashicons → https://developer.wordpress.org/resource/dashicons/.
|
33 |
+
category: 'embedpress', // Block category — Group blocks together based on common traits E.g. common, formatting, layout Widgets, embed.
|
34 |
keywords: [
|
35 |
__( 'embedpress' ),
|
36 |
__( 'google' ),
|
65 |
* @link https://wordpress.org/gutenberg/handbook/block-api/block-edit-save/
|
66 |
*/
|
67 |
save: function( props ) {
|
68 |
+
const { iframeSrc } = props.attributes
|
69 |
return (
|
70 |
<div class="ose-google-docs-spreadsheets">
|
71 |
<iframe src={iframeSrc} frameborder="0" width="600" height="450" allowfullscreen="true" mozallowfullscreen="true" webkitallowfullscreen="true"></iframe>
|
Gutenberg/src/google-slides/index.js
CHANGED
@@ -30,7 +30,7 @@ registerBlockType( 'embedpress/google-slides-block', {
|
|
30 |
// Block name. Block names must be string that contains a namespace prefix. Example: my-plugin/my-custom-block.
|
31 |
title: __( 'Google Slides' ), // Block title.
|
32 |
icon: googleSlidesIcon, // Block icon from Dashicons → https://developer.wordpress.org/resource/dashicons/.
|
33 |
-
category: 'embedpress', // Block category — Group blocks together based on common traits E.g. common, formatting, layout
|
34 |
keywords: [
|
35 |
__( 'embedpress' ),
|
36 |
__( 'google' ),
|
@@ -65,7 +65,7 @@ registerBlockType( 'embedpress/google-slides-block', {
|
|
65 |
* @link https://wordpress.org/gutenberg/handbook/block-api/block-edit-save/
|
66 |
*/
|
67 |
save: function( props ) {
|
68 |
-
const { iframeSrc } = props.attributes
|
69 |
return (
|
70 |
<div class="ose-google-docs-presentation">
|
71 |
<iframe src={iframeSrc} frameborder="0" width="600" height="450" allowfullscreen="true" mozallowfullscreen="true" webkitallowfullscreen="true"></iframe>
|
30 |
// Block name. Block names must be string that contains a namespace prefix. Example: my-plugin/my-custom-block.
|
31 |
title: __( 'Google Slides' ), // Block title.
|
32 |
icon: googleSlidesIcon, // Block icon from Dashicons → https://developer.wordpress.org/resource/dashicons/.
|
33 |
+
category: 'embedpress', // Block category — Group blocks together based on common traits E.g. common, formatting, layout Widgets, embed.
|
34 |
keywords: [
|
35 |
__( 'embedpress' ),
|
36 |
__( 'google' ),
|
65 |
* @link https://wordpress.org/gutenberg/handbook/block-api/block-edit-save/
|
66 |
*/
|
67 |
save: function( props ) {
|
68 |
+
const { iframeSrc } = props.attributes
|
69 |
return (
|
70 |
<div class="ose-google-docs-presentation">
|
71 |
<iframe src={iframeSrc} frameborder="0" width="600" height="450" allowfullscreen="true" mozallowfullscreen="true" webkitallowfullscreen="true"></iframe>
|
Gutenberg/src/twitch/index.js
CHANGED
@@ -30,7 +30,7 @@ registerBlockType( 'embedpress/twitch-block', {
|
|
30 |
// Block name. Block names must be string that contains a namespace prefix. Example: my-plugin/my-custom-block.
|
31 |
title: __( 'Twitch' ), // Block title.
|
32 |
icon: twitchIcon, // Block icon from Dashicons → https://developer.wordpress.org/resource/dashicons/.
|
33 |
-
category: 'embedpress', // Block category — Group blocks together based on common traits E.g. common, formatting, layout
|
34 |
keywords: [
|
35 |
__( 'embedpress' ),
|
36 |
__( 'twitch' ),
|
@@ -68,7 +68,7 @@ registerBlockType( 'embedpress/twitch-block', {
|
|
68 |
* @link https://wordpress.org/gutenberg/handbook/block-api/block-edit-save/
|
69 |
*/
|
70 |
save: function( props ) {
|
71 |
-
const { iframeSrc, attrs } = props.attributes
|
72 |
return (
|
73 |
<div class="ose-twitch-presentation">
|
74 |
<iframe src={iframeSrc} { ...attrs } frameborder="0" width="600" height="450"></iframe>
|
30 |
// Block name. Block names must be string that contains a namespace prefix. Example: my-plugin/my-custom-block.
|
31 |
title: __( 'Twitch' ), // Block title.
|
32 |
icon: twitchIcon, // Block icon from Dashicons → https://developer.wordpress.org/resource/dashicons/.
|
33 |
+
category: 'embedpress', // Block category — Group blocks together based on common traits E.g. common, formatting, layout Widgets, embed.
|
34 |
keywords: [
|
35 |
__( 'embedpress' ),
|
36 |
__( 'twitch' ),
|
68 |
* @link https://wordpress.org/gutenberg/handbook/block-api/block-edit-save/
|
69 |
*/
|
70 |
save: function( props ) {
|
71 |
+
const { iframeSrc, attrs } = props.attributes
|
72 |
return (
|
73 |
<div class="ose-twitch-presentation">
|
74 |
<iframe src={iframeSrc} { ...attrs } frameborder="0" width="600" height="450"></iframe>
|
Gutenberg/src/wistia/index.js
CHANGED
@@ -30,7 +30,7 @@ registerBlockType('embedpress/wistia-block', {
|
|
30 |
// Block name. Block names must be string that contains a namespace prefix. Example: my-plugin/my-custom-block.
|
31 |
title: __('Wistia'), // Block title.
|
32 |
icon: wistiaIcon, // Block icon from Dashicons → https://developer.wordpress.org/resource/dashicons/.
|
33 |
-
category: 'embedpress', // Block category — Group blocks together based on common traits E.g. common, formatting, layout
|
34 |
keywords: [
|
35 |
__('embedpress'),
|
36 |
__('wistia'),
|
30 |
// Block name. Block names must be string that contains a namespace prefix. Example: my-plugin/my-custom-block.
|
31 |
title: __('Wistia'), // Block title.
|
32 |
icon: wistiaIcon, // Block icon from Dashicons → https://developer.wordpress.org/resource/dashicons/.
|
33 |
+
category: 'embedpress', // Block category — Group blocks together based on common traits E.g. common, formatting, layout Widgets, embed.
|
34 |
keywords: [
|
35 |
__('embedpress'),
|
36 |
__('wistia'),
|
assets/css/embedpress-elementor.css
ADDED
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
.embedpress-aspect-ratio-219 .embedpress-fit-aspect-ratio .embedpress-wrapper {
|
2 |
+
padding-bottom: 42.8571%;
|
3 |
+
}
|
4 |
+
|
5 |
+
.embedpress-aspect-ratio-169 .embedpress-fit-aspect-ratio .embedpress-wrapper {
|
6 |
+
padding-bottom: 56.25%;
|
7 |
+
}
|
8 |
+
|
9 |
+
.embedpress-aspect-ratio-43 .embedpress-fit-aspect-ratio .embedpress-wrapper{
|
10 |
+
padding-bottom: 75%;
|
11 |
+
}
|
12 |
+
|
13 |
+
.embedpress-aspect-ratio-32 .embedpress-fit-aspect-ratio .embedpress-wrapper{
|
14 |
+
padding-bottom: 66.6666%;
|
15 |
+
}
|
16 |
+
|
17 |
+
.embedpress-aspect-ratio-11 .embedpress-fit-aspect-ratio .embedpress-wrapper {
|
18 |
+
padding-bottom: 100%;
|
19 |
+
}
|
20 |
+
|
21 |
+
.embedpress-aspect-ratio-916 .embedpress-fit-aspect-ratio .embedpress-wrapper {
|
22 |
+
padding-bottom: 177.8%;
|
23 |
+
}
|
24 |
+
|
25 |
+
.embedpress-fit-aspect-ratio .embedpress-wrapper {
|
26 |
+
position: relative;
|
27 |
+
height: 0;
|
28 |
+
}
|
29 |
+
|
30 |
+
.embedpress-fit-aspect-ratio .embedpress-wrapper iframe {
|
31 |
+
position: absolute;
|
32 |
+
top: 0;
|
33 |
+
left: 0;
|
34 |
+
height: 100%;
|
35 |
+
width: 100%;
|
36 |
+
border: 0;
|
37 |
+
background-color: #000;
|
38 |
+
}
|
39 |
+
|
40 |
+
.embedpress-fit-aspect-ratio video {
|
41 |
+
width: 100%;
|
42 |
+
}
|
embedpress.php
CHANGED
@@ -2,11 +2,10 @@
|
|
2 |
/**
|
3 |
* Plugin Name: EmbedPress
|
4 |
* Plugin URI: https://embedpress.com/
|
5 |
-
* Description:
|
6 |
-
* Facebook, Google Maps, Google Docs, UStream! Just use the URL!
|
7 |
* Author: WPDeveloper
|
8 |
* Author URI: https://wpdeveloper.net
|
9 |
-
* Version: 2.
|
10 |
* Text Domain: embedpress
|
11 |
* Domain Path: /languages
|
12 |
*
|
@@ -60,4 +59,9 @@ if ( ! is_plugin_active('gutenberg/gutenberg.php')) {
|
|
60 |
$embedPressPlugin = new \EmbedPress\CoreLegacy();
|
61 |
}
|
62 |
$embedPressPlugin->initialize();
|
|
|
|
|
|
|
|
|
|
|
63 |
}
|
2 |
/**
|
3 |
* Plugin Name: EmbedPress
|
4 |
* Plugin URI: https://embedpress.com/
|
5 |
+
* Description: EmbedPress lets you embed videos, images, posts, audio, maps and all other types of content into your WordPress site with one-click and showcase it beautifully for the visitors. 75+ sources supported.
|
|
|
6 |
* Author: WPDeveloper
|
7 |
* Author URI: https://wpdeveloper.net
|
8 |
+
* Version: 2.5.0
|
9 |
* Text Domain: embedpress
|
10 |
* Domain Path: /languages
|
11 |
*
|
59 |
$embedPressPlugin = new \EmbedPress\CoreLegacy();
|
60 |
}
|
61 |
$embedPressPlugin->initialize();
|
62 |
+
}
|
63 |
+
|
64 |
+
if ( is_plugin_active('elementor/elementor.php')) {
|
65 |
+
$embedPressElements = new \EmbedPress\Elementor\Embedpress_Elementor_Integration();
|
66 |
+
$embedPressElements->init();
|
67 |
}
|
includes.php
CHANGED
@@ -22,7 +22,7 @@ if ( ! defined('EMBEDPRESS_PLG_NAME')) {
|
|
22 |
}
|
23 |
|
24 |
if ( ! defined('EMBEDPRESS_VERSION')) {
|
25 |
-
define('EMBEDPRESS_VERSION', "2.
|
26 |
/**
|
27 |
* @deprecated 2.2.0
|
28 |
*/
|
@@ -30,7 +30,7 @@ if ( ! defined('EMBEDPRESS_VERSION')) {
|
|
30 |
}
|
31 |
|
32 |
if ( ! defined('EMBEDPRESS_PRO_VERSION')) {
|
33 |
-
define('EMBEDPRESS_PRO_VERSION', "2.
|
34 |
}
|
35 |
|
36 |
if ( ! defined('EMBEDPRESS_ROOT')) {
|
22 |
}
|
23 |
|
24 |
if ( ! defined('EMBEDPRESS_VERSION')) {
|
25 |
+
define('EMBEDPRESS_VERSION', "2.5.0");
|
26 |
/**
|
27 |
* @deprecated 2.2.0
|
28 |
*/
|
30 |
}
|
31 |
|
32 |
if ( ! defined('EMBEDPRESS_PRO_VERSION')) {
|
33 |
+
define('EMBEDPRESS_PRO_VERSION', "2.4.0");
|
34 |
}
|
35 |
|
36 |
if ( ! defined('EMBEDPRESS_ROOT')) {
|
readme.txt
CHANGED
@@ -6,7 +6,7 @@ Tags: embed, code, video embed, Youtube embed, map embed, content embed, iframes
|
|
6 |
Requires at least: 4.6
|
7 |
Tested up to: 5.3
|
8 |
Requires PHP: 5.6
|
9 |
-
Stable tag: 2.
|
10 |
License: GPLv2 or later
|
11 |
License URI: https://opensource.org/licenses/GPL-3.0
|
12 |
|
@@ -264,6 +264,10 @@ Not at all. You can set up everything your team needs without any coding knowled
|
|
264 |
The format is based on [Keep a Changelog](http://keepachangelog.com/)
|
265 |
and this project adheres to [Semantic Versioning](http://semver.org/).
|
266 |
|
|
|
|
|
|
|
|
|
267 |
= [2.4.1] - 2020-03-04 =
|
268 |
* Fixed global iFrame resize capacity
|
269 |
|
6 |
Requires at least: 4.6
|
7 |
Tested up to: 5.3
|
8 |
Requires PHP: 5.6
|
9 |
+
Stable tag: 2.5.0
|
10 |
License: GPLv2 or later
|
11 |
License URI: https://opensource.org/licenses/GPL-3.0
|
12 |
|
264 |
The format is based on [Keep a Changelog](http://keepachangelog.com/)
|
265 |
and this project adheres to [Semantic Versioning](http://semver.org/).
|
266 |
|
267 |
+
= [2.5.0] - 2020-03-15 =
|
268 |
+
* Added EmbedPress widget for Elementor
|
269 |
+
* Fixed Google map http error
|
270 |
+
|
271 |
= [2.4.1] - 2020-03-04 =
|
272 |
* Fixed global iFrame resize capacity
|
273 |
|