NextGEN Gallery – WordPress Gallery Plugin - Version 3.18

Version Description

  • 12.08.2021
  • NEW: Added a constant "NGG_DISABLE_SHORTCODE_MANAGER" to disable content protection workarounds that can be a source of incompatibility itself.
  • NEW: Added notice to users that ctypes methods are required by NextGEN Gallery.
  • Fixed: Compatibility with EditorsKit invalidating NextGEN Gallery blocks.
  • Fixed: In rare circumstances the "Open album images in Pro Lightbox" feature was not working.
  • Fixed: PHP warnings about undefined array key access when using the XMLRPC API (Lightroom)
  • Fixed: Searching for images on Manage Galleries could result in duplicates.
Download this release

Release Info

Developer photocrati
Plugin Icon 128x128 NextGEN Gallery – WordPress Gallery Plugin
Version 3.18
Comparing to
See all releases

Code changes from version 3.17 to 3.18

changelog.txt CHANGED
@@ -1,6 +1,14 @@
1
  NextGEN Gallery
2
  by Imagely
3
 
 
 
 
 
 
 
 
 
4
  = V3.17 - 09.15.2021
5
  * Fixed: NGG 3.16 created a problem with the Manage Gallery page's Edit Thumbnail, Rotate Image, and View Meta popups
6
 
1
  NextGEN Gallery
2
  by Imagely
3
 
4
+ = V3.18 - 12.08.2021
5
+ * NEW: Added a constant "NGG_DISABLE_SHORTCODE_MANAGER" to disable content protection workarounds that can be a source of incompatibility itself.
6
+ * NEW: Added notice to users that ctypes methods are required by NextGEN Gallery.
7
+ * Fixed: Compatibility with EditorsKit invalidating NextGEN Gallery blocks.
8
+ * Fixed: In rare circumstances the "Open album images in Pro Lightbox" feature was not working.
9
+ * Fixed: PHP warnings about undefined array key access when using the XMLRPC API (Lightroom)
10
+ * Fixed: Searching for images on Manage Galleries could result in duplicates.
11
+
12
  = V3.17 - 09.15.2021
13
  * Fixed: NGG 3.16 created a problem with the Manage Gallery page's Edit Thumbnail, Rotate Image, and View Meta popups
14
 
composer.lock CHANGED
@@ -67,14 +67,13 @@
67
  "version": "v0.17",
68
  "source": {
69
  "type": "git",
70
- "url": "https://github.com/imagely/pope-framework.git",
71
  "reference": "13da4d47779a91fbf07a68062e64974eb1427ef2"
72
  },
73
  "dist": {
74
  "type": "zip",
75
- "url": "https://api.github.com/repos/imagely/pope-framework/zipball/13da4d47779a91fbf07a68062e64974eb1427ef2",
76
  "reference": "13da4d47779a91fbf07a68062e64974eb1427ef2",
77
- "shasum": "",
78
  "mirrors": [
79
  {
80
  "url": "https://repo.packagist.com/imagely/dists/%package%/%version%/r%reference%.%type%",
@@ -99,26 +98,22 @@
99
  }
100
  ],
101
  "description": "A component framework inspired by Zope 3. Pope is \"PHP's Zope\".",
102
- "support": {
103
- "source": "https://github.com/imagely/pope-framework/tree/v0.17",
104
- "issues": "https://github.com/imagely/pope-framework/issues"
105
- },
106
  "time": "2020-10-22T19:43:52+00:00"
107
  }
108
  ],
109
  "packages-dev": [
110
  {
111
  "name": "nikic/php-parser",
112
- "version": "v4.12.0",
113
  "source": {
114
  "type": "git",
115
  "url": "https://github.com/nikic/PHP-Parser.git",
116
- "reference": "6608f01670c3cc5079e18c1dab1104e002579143"
117
  },
118
  "dist": {
119
  "type": "zip",
120
- "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/6608f01670c3cc5079e18c1dab1104e002579143",
121
- "reference": "6608f01670c3cc5079e18c1dab1104e002579143",
122
  "shasum": "",
123
  "mirrors": [
124
  {
@@ -165,9 +160,9 @@
165
  ],
166
  "support": {
167
  "issues": "https://github.com/nikic/PHP-Parser/issues",
168
- "source": "https://github.com/nikic/PHP-Parser/tree/v4.12.0"
169
  },
170
- "time": "2021-07-21T10:44:31+00:00"
171
  }
172
  ],
173
  "aliases": [],
@@ -177,5 +172,5 @@
177
  "prefer-lowest": false,
178
  "platform": [],
179
  "platform-dev": [],
180
- "plugin-api-version": "2.0.0"
181
  }
67
  "version": "v0.17",
68
  "source": {
69
  "type": "git",
70
+ "url": "https://github.com/LionSher-Technologies/pope-framework/",
71
  "reference": "13da4d47779a91fbf07a68062e64974eb1427ef2"
72
  },
73
  "dist": {
74
  "type": "zip",
75
+ "url": "https://repo.packagist.com/imagely/dists/imagely/pope-framework/0.17.0.0/13da4d47779a91fbf07a68062e64974eb1427ef2.zip",
76
  "reference": "13da4d47779a91fbf07a68062e64974eb1427ef2",
 
77
  "mirrors": [
78
  {
79
  "url": "https://repo.packagist.com/imagely/dists/%package%/%version%/r%reference%.%type%",
98
  }
99
  ],
100
  "description": "A component framework inspired by Zope 3. Pope is \"PHP's Zope\".",
 
 
 
 
101
  "time": "2020-10-22T19:43:52+00:00"
102
  }
103
  ],
104
  "packages-dev": [
105
  {
106
  "name": "nikic/php-parser",
107
+ "version": "v4.13.2",
108
  "source": {
109
  "type": "git",
110
  "url": "https://github.com/nikic/PHP-Parser.git",
111
+ "reference": "210577fe3cf7badcc5814d99455df46564f3c077"
112
  },
113
  "dist": {
114
  "type": "zip",
115
+ "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/210577fe3cf7badcc5814d99455df46564f3c077",
116
+ "reference": "210577fe3cf7badcc5814d99455df46564f3c077",
117
  "shasum": "",
118
  "mirrors": [
119
  {
160
  ],
161
  "support": {
162
  "issues": "https://github.com/nikic/PHP-Parser/issues",
163
+ "source": "https://github.com/nikic/PHP-Parser/tree/v4.13.2"
164
  },
165
+ "time": "2021-11-30T19:35:32+00:00"
166
  }
167
  ],
168
  "aliases": [],
172
  "prefer-lowest": false,
173
  "platform": [],
174
  "platform-dev": [],
175
+ "plugin-api-version": "2.1.0"
176
  }
nggallery.php CHANGED
@@ -4,7 +4,7 @@ if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { die('You
4
  /**
5
  * Plugin Name: NextGEN Gallery
6
  * Description: The most popular gallery plugin for WordPress and one of the most popular plugins of all time with over 30 million downloads.
7
- * Version: 3.17
8
  * Author: Imagely
9
  * Plugin URI: https://www.imagely.com/wordpress-gallery-plugin/nextgen-gallery/
10
  * Author URI: https://www.imagely.com
@@ -712,7 +712,7 @@ class C_NextGEN_Bootstrap
712
  define('NGG_PRODUCT_URL', path_join(str_replace("\\" , '/', NGG_PLUGIN_URL), 'products'));
713
  define('NGG_MODULE_URL', path_join(str_replace("\\", '/', NGG_PRODUCT_URL), 'photocrati_nextgen/modules'));
714
  define('NGG_PLUGIN_STARTED_AT', microtime());
715
- define('NGG_PLUGIN_VERSION', '3.17');
716
 
717
  define(
718
  'NGG_SCRIPT_VERSION',
4
  /**
5
  * Plugin Name: NextGEN Gallery
6
  * Description: The most popular gallery plugin for WordPress and one of the most popular plugins of all time with over 30 million downloads.
7
+ * Version: 3.18
8
  * Author: Imagely
9
  * Plugin URI: https://www.imagely.com/wordpress-gallery-plugin/nextgen-gallery/
10
  * Author URI: https://www.imagely.com
712
  define('NGG_PRODUCT_URL', path_join(str_replace("\\" , '/', NGG_PLUGIN_URL), 'products'));
713
  define('NGG_MODULE_URL', path_join(str_replace("\\", '/', NGG_PRODUCT_URL), 'photocrati_nextgen/modules'));
714
  define('NGG_PLUGIN_STARTED_AT', microtime());
715
+ define('NGG_PLUGIN_VERSION', '3.18');
716
 
717
  define(
718
  'NGG_SCRIPT_VERSION',
non_pope/class.nextgen_shortcode_manager.php CHANGED
@@ -78,18 +78,28 @@ class C_NextGen_Shortcode_Manager
78
  $manager->remove_shortcode($name);
79
  }
80
 
81
- /**
82
- * Constructor
83
- */
 
 
 
 
 
 
 
84
  private function __construct()
85
  {
86
  // For theme & plugin compatibility and to prevent the output of our shortcodes from being
87
  // altered we substitute our shortcodes with placeholders at the start of the the_content() filter
88
  // queue and then at the end of the the_content() queue, we substitute the placeholders with our
89
- // actual markup
90
- add_filter('the_content', [$this, 'fix_nested_shortcodes'], -1);
91
- add_filter('the_content', [$this, 'parse_content'], PHP_INT_MAX);
92
- add_filter('widget_text', [$this, 'fix_nested_shortcodes'], -1);
 
 
 
93
  }
94
 
95
  /**
@@ -232,7 +242,14 @@ class C_NextGen_Shortcode_Manager
232
  function add_shortcode($name, $callback, $transformer = NULL)
233
  {
234
  $this->_shortcodes[$name] = ['callback' => $callback, 'transformer' => $transformer];
235
- add_shortcode($name, array($this, $name . '____wrapper'));
 
 
 
 
 
 
 
236
  }
237
 
238
  /**
78
  $manager->remove_shortcode($name);
79
  }
80
 
81
+ /**
82
+ * Returns whether NGG_DISABLE_SHORTCODE_MANAGER is defined and TRUE.
83
+ *
84
+ * @return bool
85
+ */
86
+ public function is_disabled()
87
+ {
88
+ return defined('NGG_DISABLE_SHORTCODE_MANAGER') && NGG_DISABLE_SHORTCODE_MANAGER;
89
+ }
90
+
91
  private function __construct()
92
  {
93
  // For theme & plugin compatibility and to prevent the output of our shortcodes from being
94
  // altered we substitute our shortcodes with placeholders at the start of the the_content() filter
95
  // queue and then at the end of the the_content() queue, we substitute the placeholders with our
96
+ // actual markup. Optionally this can be disabled by defining NGG_DISABLE_SHORTCODE_MANAGER to TRUE.
97
+ if (!$this->is_disabled())
98
+ {
99
+ add_filter('the_content', [$this, 'fix_nested_shortcodes'], -1);
100
+ add_filter('the_content', [$this, 'parse_content'], PHP_INT_MAX);
101
+ add_filter('widget_text', [$this, 'fix_nested_shortcodes'], -1);
102
+ }
103
  }
104
 
105
  /**
242
  function add_shortcode($name, $callback, $transformer = NULL)
243
  {
244
  $this->_shortcodes[$name] = ['callback' => $callback, 'transformer' => $transformer];
245
+
246
+ if ($this->is_disabled())
247
+ // Because render_shortcode() is a wrapper to several shortcodes it requires the $name parameter and can't be passed directly to add_shortcode()
248
+ add_shortcode($name, function($params, $inner_content) use ($name) {
249
+ return $this->render_shortcode($name, $params, $inner_content);
250
+ });
251
+ else
252
+ add_shortcode($name, array($this, $name . '____wrapper'));
253
  }
254
 
255
  /**
products/photocrati_nextgen/modules/nextgen_admin/module.nextgen_admin.php CHANGED
@@ -186,7 +186,7 @@ class M_NextGen_Admin extends C_Base_Module
186
  add_action( 'admin_footer', array($this, 'custom_post_type_markup_bottom'));
187
 
188
  // Requirements need to be registered with the notification manager *before* it's serve_ajax_request()
189
- add_action('init', array(C_Admin_Requirements_Manager::get_instance(), 'create_notification'), -10);
190
 
191
  // Define routes
192
  add_action('ngg_routes', array($this, 'define_routes'));
186
  add_action( 'admin_footer', array($this, 'custom_post_type_markup_bottom'));
187
 
188
  // Requirements need to be registered with the notification manager *before* it's serve_ajax_request()
189
+ add_action('admin_init', [C_Admin_Requirements_Manager::get_instance(), 'create_notification'], -10);
190
 
191
  // Define routes
192
  add_action('ngg_routes', array($this, 'define_routes'));
products/photocrati_nextgen/modules/nextgen_basic_album/package.module.nextgen_basic_album.php CHANGED
@@ -692,6 +692,10 @@ class A_NextGen_Basic_Album_Controller extends Mixin_NextGen_Basic_Pagination
692
  // Let plugins modify the gallery
693
  $gallery = apply_filters('ngg_album_galleryobject', $gallery);
694
  }
 
 
 
 
695
  $params['galleries'] = apply_filters('ngg_album_prepared_child_entity', $params['galleries'], $params['displayed_gallery']);
696
  $params['album'] = reset($this->albums);
697
  $params['albums'] = $this->albums;
692
  // Let plugins modify the gallery
693
  $gallery = apply_filters('ngg_album_galleryobject', $gallery);
694
  }
695
+ // In at least one rare and so far impossible to reproduce circumstance it's possible for this controller to run
696
+ // before the following adapter is constructed and thus allowed to register its hook on the following filter below.
697
+ // This breaks the 'open child galleries in pro lightbox' feature.
698
+ new A_NextGen_Album_Child_Entities();
699
  $params['galleries'] = apply_filters('ngg_album_prepared_child_entity', $params['galleries'], $params['displayed_gallery']);
700
  $params['album'] = reset($this->albums);
701
  $params['albums'] = $this->albums;
products/photocrati_nextgen/modules/nextgen_block/static/build/block.min.js CHANGED
@@ -11,5 +11,5 @@
11
  object-assign
12
  (c) Sindre Sorhus
13
  @license MIT
14
- */var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,a,c=function(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),i=1;i<arguments.length;i++){for(var u in n=Object(arguments[i]))o.call(n,u)&&(c[u]=n[u]);if(r){a=r(n);for(var f=0;f<a.length;f++)l.call(n,a[f])&&(c[a[f]]=n[a[f]])}}return c}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r);function l(e){"@babel/helpers - typeof";return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(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)}}function i(e,t,n){return t&&c(e.prototype,t),n&&c(e,n),e}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=d(e);if(t){var o=d(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===l(t)||"function"==typeof t))return t;return p(e)}(this,n)}}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var y=document.body,m=function(e){u(n,o.a.Component);var t=s(n);function n(e){var r;return a(this,n),(r=t.call(this,e)).closeModal=r.closeModal.bind(p(r)),r.background_layer=document.createElement("div"),r.background_layer.setAttribute("id","add-ngg-gallery-modal-background"),r}return i(n,[{key:"componentDidMount",value:function(){y.style.overflow="hidden",y.appendChild(this.background_layer);var e=this,t=document.getElementById("add-ngg-gallery-block-iframe");t.addEventListener("NGG_Iframe_Ready",function(){document.getElementById("add-ngg-gallery-modal-spinner").classList.add("add-ngg-gallery-modal-spinner-hidden")}),t.addEventListener("NGG_Insert_Gallery",function(t){e.props.onInsertGallery(t.detail.shortcode)}),t.addEventListener("NGG_Close_Modal",function(){e.props.onCloseModal()})}},{key:"componentWillUnmount",value:function(){y.style.overflow="auto",y.removeChild(this.background_layer)}},{key:"closeModal",value:function(){this.props.onCloseModal()}},{key:"render",value:function(){var e=window.igw.url+"&origin=block";if(this.props.content){e+="&shortcode=";var t=this.props.content.replace(/\\"/g,'"');t=(t=(t=t.replace(/^\[ngg_images/,"")).replace(/^\[ngg/,"")).replace(/]$/,""),e+=Base64.encode(t)}return ReactDOM.createPortal(o.a.createElement("div",{id:"add-ngg-gallery-modal"},o.a.createElement("a",{href:"#",id:"add-ngg-gallery-modal-close",onClick:this.closeModal},o.a.createElement("span",{className:"dashicons dashicons-no"})),o.a.createElement("div",{id:"add-ngg-gallery-modal-spinner"},o.a.createElement("i",{className:"fa fa-spin fa-spinner"})),o.a.createElement("iframe",{src:e,tabIndex:"-1",name:"add-ngg-gallery-block-iframe",id:"add-ngg-gallery-block-iframe"})),y)}}]),n}(),b=function(e){u(n,o.a.Component);var t=s(n);function n(e){var r;return a(this,n),(r=t.call(this,e)).state={open:!1},r.openIGW=r.openIGW.bind(p(r)),r.closeIGW=r.closeIGW.bind(p(r)),r.removeGallery=r.removeGallery.bind(p(r)),r}return i(n,[{key:"hasGallery",value:function(){return this.props.content&&this.props.content.length>0}},{key:"removeGallery",value:function(){this.props.onInsertGallery("")}},{key:"closeIGW",value:function(){this.setState({open:!1})}},{key:"openIGW",value:function(){this.setState({open:!0})}},{key:"render",value:function(){return o.a.createElement("div",{className:"add-ngg-gallery-parent"},this.state.open?o.a.createElement(m,{content:this.props.content,onCloseModal:this.closeIGW,onInsertGallery:this.props.onInsertGallery}):"",this.hasGallery()?o.a.createElement("div",{className:"add-ngg-gallery-block"},o.a.createElement("h3",null,add_ngg_gallery_block_i18n.h3),o.a.createElement("button",{className:"add-ngg-gallery-button",onClick:this.openIGW},add_ngg_gallery_block_i18n.edit),o.a.createElement("button",{className:"add-ngg-gallery-button",onClick:this.removeGallery},add_ngg_gallery_block_i18n.delete)):o.a.createElement("div",{className:"add-ngg-gallery-block"},o.a.createElement("div",{className:"add-ngg-gallery-button",onClick:this.openIGW},add_ngg_gallery_block_i18n.create)))}}]),n}(),g={};g.nextgen=React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",viewBox:"0 0 240 240",width:"240.0pt",height:"240.0pt"},React.createElement("path",{d:"M 0.00 0.00 L 240.00 0.00 L 240.00 240.00 L 0.00 240.00 L 0.00 0.00 Z",fill:"#ffffff"}),React.createElement("path",{d:"M 116.97 3.45 C 155.78 2.17 194.29 21.78 215.90 54.07 C 226.92 70.43 234.08 89.34 236.07 109.00 C 239.08 140.20 228.61 172.42 208.14 196.12 C 191.73 215.41 168.66 228.79 143.97 234.16 C 125.25 238.08 105.37 237.44 87.04 231.86 C 67.00 226.07 48.82 214.65 34.69 199.32 C 14.08 177.26 2.88 147.13 3.50 117.00 C 4.36 95.58 10.72 74.49 22.55 56.55 C 35.03 37.69 52.63 22.36 73.52 13.50 C 87.07 6.87 101.94 3.80 116.97 3.45 Z",fill:"#9fbb1a"}),React.createElement("path",{d:"M 69.17 61.47 C 70.78 61.56 72.37 61.91 73.97 62.05 C 80.30 62.27 86.66 62.04 93.00 62.14 C 96.81 62.23 100.65 61.35 104.18 62.75 C 108.45 64.30 111.62 68.44 111.67 73.03 C 111.78 81.35 111.66 89.68 111.72 98.00 C 111.65 101.03 111.87 104.65 110.30 107.35 C 108.22 110.91 104.17 113.41 100.02 113.40 C 90.68 113.43 81.33 113.42 71.99 113.40 C 65.66 113.41 59.85 108.54 59.66 102.04 C 59.55 92.36 59.70 82.67 59.58 72.99 C 59.41 67.44 63.60 62.15 69.17 61.47 Z",fill:"#ffffff"}),React.createElement("path",{d:"M 138.98 61.27 C 148.33 61.42 157.69 61.22 167.04 61.37 C 173.28 61.31 178.81 66.69 178.70 72.96 C 178.72 82.65 178.75 92.34 178.68 102.02 C 178.48 108.28 173.18 112.96 167.02 113.04 C 157.69 113.25 148.33 113.02 138.99 113.15 C 132.77 113.56 126.76 108.35 126.66 102.04 C 126.55 94.37 126.67 86.68 126.62 79.00 C 126.63 76.33 126.42 73.60 126.72 70.94 C 127.60 65.24 133.25 60.88 138.98 61.27 Z",fill:"#ffffff"}),React.createElement("path",{d:"M 70.97 72.97 C 80.41 72.70 89.87 72.92 99.31 72.86 C 99.39 82.36 99.34 91.87 99.34 101.38 C 89.85 101.36 80.36 101.42 70.87 101.35 C 70.90 91.90 70.70 82.42 70.97 72.97 Z",fill:"#9fbb1a"}),React.createElement("path",{d:"M 138.39 72.91 C 147.80 72.79 157.23 72.85 166.65 72.88 C 166.65 82.41 166.85 91.97 166.55 101.49 C 157.18 101.27 147.79 101.39 138.41 101.42 C 138.30 91.92 138.36 82.41 138.39 72.91 Z",fill:"#9fbb1a"}),React.createElement("path",{d:"M 69.96 128.72 C 77.95 128.35 86.00 128.68 94.00 128.66 C 97.84 128.75 101.40 128.12 104.93 129.93 C 109.12 131.86 111.63 136.43 111.39 141.00 C 111.31 150.34 111.48 159.70 111.31 169.04 C 111.25 175.45 105.33 180.72 99.01 180.44 C 90.00 180.43 81.00 180.42 71.99 180.44 C 67.16 180.64 62.37 177.99 60.28 173.57 C 59.04 171.04 59.32 167.76 59.27 165.00 C 59.38 156.70 59.15 148.39 59.37 140.10 C 59.59 134.25 64.10 129.27 69.96 128.72 Z",fill:"#ffffff"}),React.createElement("path",{d:"M 137.96 128.68 C 146.96 128.36 156.00 128.45 165.00 128.61 C 167.68 128.64 170.26 129.00 172.61 130.36 C 176.44 132.46 178.51 136.68 178.41 140.99 C 178.39 150.33 178.47 159.67 178.37 169.01 C 178.48 174.84 173.95 180.48 167.95 180.68 C 159.31 180.89 150.65 180.67 142.00 180.78 C 139.64 180.74 137.05 180.91 134.76 180.27 C 129.71 178.66 126.48 173.17 126.62 168.01 C 126.61 161.01 126.64 154.00 126.62 147.00 C 126.71 143.40 126.11 139.00 127.75 135.73 C 129.57 131.70 133.51 128.85 137.96 128.68 Z",fill:"#ffffff"}),React.createElement("path",{d:"M 70.98 140.01 C 80.41 139.71 89.87 139.94 99.31 139.89 C 99.40 149.41 99.33 158.93 99.35 168.45 C 89.85 168.43 80.36 168.47 70.86 168.42 C 70.91 158.96 70.69 149.47 70.98 140.01 Z",fill:"#9fbb1a"}),React.createElement("path",{d:"M 138.45 140.41 C 147.84 140.29 157.27 140.44 166.67 140.35 C 166.70 149.82 166.71 159.29 166.67 168.77 C 157.24 168.71 147.81 168.71 138.38 168.77 C 138.39 159.32 138.24 149.85 138.45 140.41 Z",fill:"#9fbb1a"}));var h=g,v=wp.i18n.__,C=wp.element.RawHTML;(0,wp.blocks.registerBlockType)("imagely/nextgen-gallery",{title:v("NextGEN Gallery"),description:v("A block for adding NextGEN Galleries."),icon:h.nextgen,category:"common",attributes:{content:{type:"string",source:"html"}},supports:{className:!1,customClassName:!1},edit:function(e){var t=e.attributes,n=e.setAttributes;return o.a.createElement(b,{content:t.content,onInsertGallery:function(e){n({content:e})}})},save:function(e){var t=e.attributes.content;return o.a.createElement(C,null,t)}})}]);
15
  //# sourceMappingURL=block.min.js.map
11
  object-assign
12
  (c) Sindre Sorhus
13
  @license MIT
14
+ */var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,a,c=function(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),i=1;i<arguments.length;i++){for(var u in n=Object(arguments[i]))o.call(n,u)&&(c[u]=n[u]);if(r){a=r(n);for(var f=0;f<a.length;f++)l.call(n,a[f])&&(c[a[f]]=n[a[f]])}}return c}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r);function l(e){"@babel/helpers - typeof";return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(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)}}function i(e,t,n){return t&&c(e.prototype,t),n&&c(e,n),e}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=d(e);if(t){var o=d(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===l(t)||"function"==typeof t))return t;return p(e)}(this,n)}}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var y=document.body,m=function(e){u(n,o.a.Component);var t=s(n);function n(e){var r;return a(this,n),(r=t.call(this,e)).closeModal=r.closeModal.bind(p(r)),r.background_layer=document.createElement("div"),r.background_layer.setAttribute("id","add-ngg-gallery-modal-background"),r}return i(n,[{key:"componentDidMount",value:function(){y.style.overflow="hidden",y.appendChild(this.background_layer);var e=this,t=document.getElementById("add-ngg-gallery-block-iframe");t.addEventListener("NGG_Iframe_Ready",function(){document.getElementById("add-ngg-gallery-modal-spinner").classList.add("add-ngg-gallery-modal-spinner-hidden")}),t.addEventListener("NGG_Insert_Gallery",function(t){e.props.onInsertGallery(t.detail.shortcode)}),t.addEventListener("NGG_Close_Modal",function(){e.props.onCloseModal()})}},{key:"componentWillUnmount",value:function(){y.style.overflow="auto",y.removeChild(this.background_layer)}},{key:"closeModal",value:function(){this.props.onCloseModal()}},{key:"render",value:function(){var e=window.igw.url+"&origin=block";if(this.props.content){e+="&shortcode=";var t=this.props.content.replace(/\\"/g,'"');t=(t=(t=t.replace(/^\[ngg_images/,"")).replace(/^\[ngg/,"")).replace(/]$/,""),e+=Base64.encode(t)}return ReactDOM.createPortal(o.a.createElement("div",{id:"add-ngg-gallery-modal"},o.a.createElement("a",{href:"#",id:"add-ngg-gallery-modal-close",onClick:this.closeModal},o.a.createElement("span",{className:"dashicons dashicons-no"})),o.a.createElement("div",{id:"add-ngg-gallery-modal-spinner"},o.a.createElement("i",{className:"fa fa-spin fa-spinner"})),o.a.createElement("iframe",{src:e,tabIndex:"-1",name:"add-ngg-gallery-block-iframe",id:"add-ngg-gallery-block-iframe"})),y)}}]),n}(),b=function(e){u(n,o.a.Component);var t=s(n);function n(e){var r;return a(this,n),(r=t.call(this,e)).state={open:!1},r.openIGW=r.openIGW.bind(p(r)),r.closeIGW=r.closeIGW.bind(p(r)),r.removeGallery=r.removeGallery.bind(p(r)),r}return i(n,[{key:"hasGallery",value:function(){return this.props.content&&this.props.content.length>0}},{key:"removeGallery",value:function(){this.props.onInsertGallery("")}},{key:"closeIGW",value:function(){this.setState({open:!1})}},{key:"openIGW",value:function(){this.setState({open:!0})}},{key:"render",value:function(){return o.a.createElement("div",{className:"add-ngg-gallery-parent"},this.state.open?o.a.createElement(m,{content:this.props.content,onCloseModal:this.closeIGW,onInsertGallery:this.props.onInsertGallery}):"",this.hasGallery()?o.a.createElement("div",{className:"add-ngg-gallery-block"},o.a.createElement("h3",null,add_ngg_gallery_block_i18n.h3),o.a.createElement("button",{className:"add-ngg-gallery-button",onClick:this.openIGW},add_ngg_gallery_block_i18n.edit),o.a.createElement("button",{className:"add-ngg-gallery-button",onClick:this.removeGallery},add_ngg_gallery_block_i18n.delete)):o.a.createElement("div",{className:"add-ngg-gallery-block"},o.a.createElement("div",{className:"add-ngg-gallery-button",onClick:this.openIGW},add_ngg_gallery_block_i18n.create)))}}]),n}(),g={};g.nextgen=React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",viewBox:"0 0 240 240",width:"240.0pt",height:"240.0pt"},React.createElement("path",{d:"M 0.00 0.00 L 240.00 0.00 L 240.00 240.00 L 0.00 240.00 L 0.00 0.00 Z",fill:"#ffffff"}),React.createElement("path",{d:"M 116.97 3.45 C 155.78 2.17 194.29 21.78 215.90 54.07 C 226.92 70.43 234.08 89.34 236.07 109.00 C 239.08 140.20 228.61 172.42 208.14 196.12 C 191.73 215.41 168.66 228.79 143.97 234.16 C 125.25 238.08 105.37 237.44 87.04 231.86 C 67.00 226.07 48.82 214.65 34.69 199.32 C 14.08 177.26 2.88 147.13 3.50 117.00 C 4.36 95.58 10.72 74.49 22.55 56.55 C 35.03 37.69 52.63 22.36 73.52 13.50 C 87.07 6.87 101.94 3.80 116.97 3.45 Z",fill:"#9fbb1a"}),React.createElement("path",{d:"M 69.17 61.47 C 70.78 61.56 72.37 61.91 73.97 62.05 C 80.30 62.27 86.66 62.04 93.00 62.14 C 96.81 62.23 100.65 61.35 104.18 62.75 C 108.45 64.30 111.62 68.44 111.67 73.03 C 111.78 81.35 111.66 89.68 111.72 98.00 C 111.65 101.03 111.87 104.65 110.30 107.35 C 108.22 110.91 104.17 113.41 100.02 113.40 C 90.68 113.43 81.33 113.42 71.99 113.40 C 65.66 113.41 59.85 108.54 59.66 102.04 C 59.55 92.36 59.70 82.67 59.58 72.99 C 59.41 67.44 63.60 62.15 69.17 61.47 Z",fill:"#ffffff"}),React.createElement("path",{d:"M 138.98 61.27 C 148.33 61.42 157.69 61.22 167.04 61.37 C 173.28 61.31 178.81 66.69 178.70 72.96 C 178.72 82.65 178.75 92.34 178.68 102.02 C 178.48 108.28 173.18 112.96 167.02 113.04 C 157.69 113.25 148.33 113.02 138.99 113.15 C 132.77 113.56 126.76 108.35 126.66 102.04 C 126.55 94.37 126.67 86.68 126.62 79.00 C 126.63 76.33 126.42 73.60 126.72 70.94 C 127.60 65.24 133.25 60.88 138.98 61.27 Z",fill:"#ffffff"}),React.createElement("path",{d:"M 70.97 72.97 C 80.41 72.70 89.87 72.92 99.31 72.86 C 99.39 82.36 99.34 91.87 99.34 101.38 C 89.85 101.36 80.36 101.42 70.87 101.35 C 70.90 91.90 70.70 82.42 70.97 72.97 Z",fill:"#9fbb1a"}),React.createElement("path",{d:"M 138.39 72.91 C 147.80 72.79 157.23 72.85 166.65 72.88 C 166.65 82.41 166.85 91.97 166.55 101.49 C 157.18 101.27 147.79 101.39 138.41 101.42 C 138.30 91.92 138.36 82.41 138.39 72.91 Z",fill:"#9fbb1a"}),React.createElement("path",{d:"M 69.96 128.72 C 77.95 128.35 86.00 128.68 94.00 128.66 C 97.84 128.75 101.40 128.12 104.93 129.93 C 109.12 131.86 111.63 136.43 111.39 141.00 C 111.31 150.34 111.48 159.70 111.31 169.04 C 111.25 175.45 105.33 180.72 99.01 180.44 C 90.00 180.43 81.00 180.42 71.99 180.44 C 67.16 180.64 62.37 177.99 60.28 173.57 C 59.04 171.04 59.32 167.76 59.27 165.00 C 59.38 156.70 59.15 148.39 59.37 140.10 C 59.59 134.25 64.10 129.27 69.96 128.72 Z",fill:"#ffffff"}),React.createElement("path",{d:"M 137.96 128.68 C 146.96 128.36 156.00 128.45 165.00 128.61 C 167.68 128.64 170.26 129.00 172.61 130.36 C 176.44 132.46 178.51 136.68 178.41 140.99 C 178.39 150.33 178.47 159.67 178.37 169.01 C 178.48 174.84 173.95 180.48 167.95 180.68 C 159.31 180.89 150.65 180.67 142.00 180.78 C 139.64 180.74 137.05 180.91 134.76 180.27 C 129.71 178.66 126.48 173.17 126.62 168.01 C 126.61 161.01 126.64 154.00 126.62 147.00 C 126.71 143.40 126.11 139.00 127.75 135.73 C 129.57 131.70 133.51 128.85 137.96 128.68 Z",fill:"#ffffff"}),React.createElement("path",{d:"M 70.98 140.01 C 80.41 139.71 89.87 139.94 99.31 139.89 C 99.40 149.41 99.33 158.93 99.35 168.45 C 89.85 168.43 80.36 168.47 70.86 168.42 C 70.91 158.96 70.69 149.47 70.98 140.01 Z",fill:"#9fbb1a"}),React.createElement("path",{d:"M 138.45 140.41 C 147.84 140.29 157.27 140.44 166.67 140.35 C 166.70 149.82 166.71 159.29 166.67 168.77 C 157.24 168.71 147.81 168.71 138.38 168.77 C 138.39 159.32 138.24 149.85 138.45 140.41 Z",fill:"#9fbb1a"}));var h=g,v=wp.i18n.__;wp.element.RawHTML;(0,wp.blocks.registerBlockType)("imagely/nextgen-gallery",{title:v("NextGEN Gallery"),description:v("A block for adding NextGEN Galleries."),icon:h.nextgen,category:"common",attributes:{content:{type:"string",source:"html"}},supports:{className:!1,customClassName:!1},edit:function(e){var t=e.attributes,n=e.setAttributes;return o.a.createElement(b,{content:t.content,onInsertGallery:function(e){n({content:e})}})},save:function(e){return e.attributes.content}})}]);
15
  //# sourceMappingURL=block.min.js.map
products/photocrati_nextgen/modules/nextgen_block/static/build/block.min.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./node_modules/react/index.js","webpack:///./node_modules/react/cjs/react.production.min.js","webpack:///./node_modules/object-assign/index.js","webpack:///./build/nextgen-gallery/products/photocrati_nextgen/modules/nextgen_block/static/src/edit.jsx","webpack:///./build/nextgen-gallery/products/photocrati_nextgen/modules/nextgen_block/static/src/icons.min.js","webpack:///./build/nextgen-gallery/products/photocrati_nextgen/modules/nextgen_block/static/src/block.jsx"],"names":["installedModules","__webpack_require__","moduleId","exports","module","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","require","k","q","u","v","w","x","y","z","A","B","C","iterator","D","a","b","arguments","length","e","encodeURIComponent","g","h","f","Error","replace","framesToPop","aa","E","isMounted","enqueueForceUpdate","enqueueReplaceState","enqueueSetState","F","G","this","props","context","refs","updater","H","I","isReactComponent","setState","_typeof","forceUpdate","J","constructor","isPureReactComponent","K","current","currentDispatcher","L","M","ref","__self","__source","N","children","Array","defaultProps","$$typeof","type","_owner","O","P","Q","R","pop","result","keyPrefix","func","count","S","push","V","T","U","isArray","next","done","keys","join","=",":","escape","toString","ca","da","W","ba","X","Children","map","forEach","toArray","only","createRef","Component","PureComponent","createContext","_calculateChangedBits","_currentValue","_currentValue2","_threadCount","Provider","Consumer","_context","forwardRef","render","lazy","_ctor","_status","_result","memo","compare","Fragment","StrictMode","Suspense","createElement","cloneElement","createFactory","isValidElement","version","__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED","ReactCurrentOwner","assign","unstable_ConcurrentMode","unstable_Profiler","Y","default","Z","getOwnPropertySymbols","propIsEnumerable","propertyIsEnumerable","test1","String","getOwnPropertyNames","test2","fromCharCode","test3","split","letter","err","shouldUseNative","target","source","from","symbols","to","val","undefined","TypeError","toObject","body","document","NGGModal","React","_this","_classCallCheck","_super","closeModal","_assertThisInitialized","background_layer","setAttribute","style","overflow","appendChild","self","iframe","getElementById","addEventListener","classList","add","event","onInsertGallery","detail","shortcode","onCloseModal","removeChild","attach_to_post_url","window","igw","url","content","Base64","encode","ReactDOM","createPortal","react_default","id","href","onClick","className","src","tabIndex","NGGEditor","_this2","_super2","state","open","openIGW","closeIGW","removeGallery","edit_NGGModal","hasGallery","add_ngg_gallery_block_i18n","h3","edit","icons","nextgen","xmlns","viewBox","width","height","fill","__","wp","i18n","RawHTML","element","registerBlockType","blocks","title","description","icon","category","attributes","supports","customClassName","_ref","setAttributes","edit_NGGEditor","save","_ref2"],"mappings":"aACA,IAAAA,KAGA,SAAAC,EAAAC,GAGA,GAAAF,EAAAE,GACA,OAAAF,EAAAE,GAAAC,QAGA,IAAAC,EAAAJ,EAAAE,IACAG,EAAAH,EACAI,GAAA,EACAH,YAUA,OANAI,EAAAL,GAAAM,KAAAJ,EAAAD,QAAAC,IAAAD,QAAAF,GAGAG,EAAAE,GAAA,EAGAF,EAAAD,QAKAF,EAAAQ,EAAAF,EAGAN,EAAAS,EAAAV,EAGAC,EAAAU,EAAA,SAAAR,EAAAS,EAAAC,GACAZ,EAAAa,EAAAX,EAAAS,IACAG,OAAAC,eAAAb,EAAAS,GAA0CK,YAAA,EAAAC,IAAAL,KAK1CZ,EAAAkB,EAAA,SAAAhB,GACA,oBAAAiB,eAAAC,aACAN,OAAAC,eAAAb,EAAAiB,OAAAC,aAAwDC,MAAA,WAExDP,OAAAC,eAAAb,EAAA,cAAiDmB,OAAA,KAQjDrB,EAAAsB,EAAA,SAAAD,EAAAE,GAEA,GADA,EAAAA,IAAAF,EAAArB,EAAAqB,IACA,EAAAE,EAAA,OAAAF,EACA,KAAAE,GAAA,iBAAAF,QAAAG,WAAA,OAAAH,EACA,IAAAI,EAAAX,OAAAY,OAAA,MAGA,GAFA1B,EAAAkB,EAAAO,GACAX,OAAAC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mBAEVQ,YAAaR,EAAG,yCAEhBS,KAAMhB,EAAMC,QAEZgB,SAAU,SAEVC,YACI3C,SACI1H,KAAM,SACNoF,OAAQ,SAIhBkF,UACInC,WAAW,EACXoC,iBAAiB,GAGrBrB,KAtByC,SAAAsB,GAsBP,IAA5BH,EAA4BG,EAA5BH,WAAYI,EAAgBD,EAAhBC,cACd,OAAO1C,EAAA9K,EAAAwG,cAACiH,GAAUhD,QAAS2C,EAAW3C,QACpBT,gBAAiB,SAACE,GACdsD,GAAe/C,QAASP,QAIlDwD,KA7ByC,SAAAC,GA6BpB,IACTlD,EADSkD,EAAdP,WACK3C,QACR,OAAOK,EAAA9K,EAAAwG,cAACoG,EAAD,KAAWnC","file":"block.min.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 3);\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react.production.min.js');\n} else {\n module.exports = require('./cjs/react.development.js');\n}\n","/** @license React v16.6.1\n * react.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';var k=require(\"object-assign\"),n=\"function\"===typeof Symbol&&Symbol.for,p=n?Symbol.for(\"react.element\"):60103,q=n?Symbol.for(\"react.portal\"):60106,r=n?Symbol.for(\"react.fragment\"):60107,t=n?Symbol.for(\"react.strict_mode\"):60108,u=n?Symbol.for(\"react.profiler\"):60114,v=n?Symbol.for(\"react.provider\"):60109,w=n?Symbol.for(\"react.context\"):60110,x=n?Symbol.for(\"react.concurrent_mode\"):60111,y=n?Symbol.for(\"react.forward_ref\"):60112,z=n?Symbol.for(\"react.suspense\"):60113,A=n?Symbol.for(\"react.memo\"):\n60115,B=n?Symbol.for(\"react.lazy\"):60116,C=\"function\"===typeof Symbol&&Symbol.iterator;function aa(a,b,e,c,d,g,h,f){if(!a){a=void 0;if(void 0===b)a=Error(\"Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.\");else{var l=[e,c,d,g,h,f],m=0;a=Error(b.replace(/%s/g,function(){return l[m++]}));a.name=\"Invariant Violation\"}a.framesToPop=1;throw a;}}\nfunction D(a){for(var b=arguments.length-1,e=\"https://reactjs.org/docs/error-decoder.html?invariant=\"+a,c=0;c<b;c++)e+=\"&args[]=\"+encodeURIComponent(arguments[c+1]);aa(!1,\"Minified React error #\"+a+\"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. \",e)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},F={};\nfunction G(a,b,e){this.props=a;this.context=b;this.refs=F;this.updater=e||E}G.prototype.isReactComponent={};G.prototype.setState=function(a,b){\"object\"!==typeof a&&\"function\"!==typeof a&&null!=a?D(\"85\"):void 0;this.updater.enqueueSetState(this,a,b,\"setState\")};G.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,\"forceUpdate\")};function H(){}H.prototype=G.prototype;function I(a,b,e){this.props=a;this.context=b;this.refs=F;this.updater=e||E}var J=I.prototype=new H;\nJ.constructor=I;k(J,G.prototype);J.isPureReactComponent=!0;var K={current:null,currentDispatcher:null},L=Object.prototype.hasOwnProperty,M={key:!0,ref:!0,__self:!0,__source:!0};\nfunction N(a,b,e){var c=void 0,d={},g=null,h=null;if(null!=b)for(c in void 0!==b.ref&&(h=b.ref),void 0!==b.key&&(g=\"\"+b.key),b)L.call(b,c)&&!M.hasOwnProperty(c)&&(d[c]=b[c]);var f=arguments.length-2;if(1===f)d.children=e;else if(1<f){for(var l=Array(f),m=0;m<f;m++)l[m]=arguments[m+2];d.children=l}if(a&&a.defaultProps)for(c in f=a.defaultProps,f)void 0===d[c]&&(d[c]=f[c]);return{$$typeof:p,type:a,key:g,ref:h,props:d,_owner:K.current}}\nfunction ba(a,b){return{$$typeof:p,type:a.type,key:b,ref:a.ref,props:a.props,_owner:a._owner}}function O(a){return\"object\"===typeof a&&null!==a&&a.$$typeof===p}function escape(a){var b={\"=\":\"=0\",\":\":\"=2\"};return\"$\"+(\"\"+a).replace(/[=:]/g,function(a){return b[a]})}var P=/\\/+/g,Q=[];function R(a,b,e,c){if(Q.length){var d=Q.pop();d.result=a;d.keyPrefix=b;d.func=e;d.context=c;d.count=0;return d}return{result:a,keyPrefix:b,func:e,context:c,count:0}}\nfunction S(a){a.result=null;a.keyPrefix=null;a.func=null;a.context=null;a.count=0;10>Q.length&&Q.push(a)}\nfunction T(a,b,e,c){var d=typeof a;if(\"undefined\"===d||\"boolean\"===d)a=null;var g=!1;if(null===a)g=!0;else switch(d){case \"string\":case \"number\":g=!0;break;case \"object\":switch(a.$$typeof){case p:case q:g=!0}}if(g)return e(c,a,\"\"===b?\".\"+U(a,0):b),1;g=0;b=\"\"===b?\".\":b+\":\";if(Array.isArray(a))for(var h=0;h<a.length;h++){d=a[h];var f=b+U(d,h);g+=T(d,f,e,c)}else if(null===a||\"object\"!==typeof a?f=null:(f=C&&a[C]||a[\"@@iterator\"],f=\"function\"===typeof f?f:null),\"function\"===typeof f)for(a=f.call(a),h=\n0;!(d=a.next()).done;)d=d.value,f=b+U(d,h++),g+=T(d,f,e,c);else\"object\"===d&&(e=\"\"+a,D(\"31\",\"[object Object]\"===e?\"object with keys {\"+Object.keys(a).join(\", \")+\"}\":e,\"\"));return g}function V(a,b,e){return null==a?0:T(a,\"\",b,e)}function U(a,b){return\"object\"===typeof a&&null!==a&&null!=a.key?escape(a.key):b.toString(36)}function ca(a,b){a.func.call(a.context,b,a.count++)}\nfunction da(a,b,e){var c=a.result,d=a.keyPrefix;a=a.func.call(a.context,b,a.count++);Array.isArray(a)?W(a,c,e,function(a){return a}):null!=a&&(O(a)&&(a=ba(a,d+(!a.key||b&&b.key===a.key?\"\":(\"\"+a.key).replace(P,\"$&/\")+\"/\")+e)),c.push(a))}function W(a,b,e,c,d){var g=\"\";null!=e&&(g=(\"\"+e).replace(P,\"$&/\")+\"/\");b=R(b,g,c,d);V(a,da,b);S(b)}\nvar X={Children:{map:function(a,b,e){if(null==a)return a;var c=[];W(a,c,null,b,e);return c},forEach:function(a,b,e){if(null==a)return a;b=R(null,null,b,e);V(a,ca,b);S(b)},count:function(a){return V(a,function(){return null},null)},toArray:function(a){var b=[];W(a,b,null,function(a){return a});return b},only:function(a){O(a)?void 0:D(\"143\");return a}},createRef:function(){return{current:null}},Component:G,PureComponent:I,createContext:function(a,b){void 0===b&&(b=null);a={$$typeof:w,_calculateChangedBits:b,\n_currentValue:a,_currentValue2:a,_threadCount:0,Provider:null,Consumer:null};a.Provider={$$typeof:v,_context:a};return a.Consumer=a},forwardRef:function(a){return{$$typeof:y,render:a}},lazy:function(a){return{$$typeof:B,_ctor:a,_status:-1,_result:null}},memo:function(a,b){return{$$typeof:A,type:a,compare:void 0===b?null:b}},Fragment:r,StrictMode:t,Suspense:z,createElement:N,cloneElement:function(a,b,e){null===a||void 0===a?D(\"267\",a):void 0;var c=void 0,d=k({},a.props),g=a.key,h=a.ref,f=a._owner;\nif(null!=b){void 0!==b.ref&&(h=b.ref,f=K.current);void 0!==b.key&&(g=\"\"+b.key);var l=void 0;a.type&&a.type.defaultProps&&(l=a.type.defaultProps);for(c in b)L.call(b,c)&&!M.hasOwnProperty(c)&&(d[c]=void 0===b[c]&&void 0!==l?l[c]:b[c])}c=arguments.length-2;if(1===c)d.children=e;else if(1<c){l=Array(c);for(var m=0;m<c;m++)l[m]=arguments[m+2];d.children=l}return{$$typeof:p,type:a.type,key:g,ref:h,props:d,_owner:f}},createFactory:function(a){var b=N.bind(null,a);b.type=a;return b},isValidElement:O,version:\"16.6.3\",\n__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:K,assign:k}};X.unstable_ConcurrentMode=x;X.unstable_Profiler=u;var Y={default:X},Z=Y&&X||Y;module.exports=Z.default||Z;\n","/*\nobject-assign\n(c) Sindre Sorhus\n@license MIT\n*/\n\n'use strict';\n/* eslint-disable no-unused-vars */\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar propIsEnumerable = Object.prototype.propertyIsEnumerable;\n\nfunction toObject(val) {\n\tif (val === null || val === undefined) {\n\t\tthrow new TypeError('Object.assign cannot be called with null or undefined');\n\t}\n\n\treturn Object(val);\n}\n\nfunction shouldUseNative() {\n\ttry {\n\t\tif (!Object.assign) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Detect buggy property enumeration order in older V8 versions.\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=4118\n\t\tvar test1 = new String('abc'); // eslint-disable-line no-new-wrappers\n\t\ttest1[5] = 'de';\n\t\tif (Object.getOwnPropertyNames(test1)[0] === '5') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test2 = {};\n\t\tfor (var i = 0; i < 10; i++) {\n\t\t\ttest2['_' + String.fromCharCode(i)] = i;\n\t\t}\n\t\tvar order2 = Object.getOwnPropertyNames(test2).map(function (n) {\n\t\t\treturn test2[n];\n\t\t});\n\t\tif (order2.join('') !== '0123456789') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test3 = {};\n\t\t'abcdefghijklmnopqrst'.split('').forEach(function (letter) {\n\t\t\ttest3[letter] = letter;\n\t\t});\n\t\tif (Object.keys(Object.assign({}, test3)).join('') !==\n\t\t\t\t'abcdefghijklmnopqrst') {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t} catch (err) {\n\t\t// We don't expect any of the above to throw, but better to be safe.\n\t\treturn false;\n\t}\n}\n\nmodule.exports = shouldUseNative() ? Object.assign : function (target, source) {\n\tvar from;\n\tvar to = toObject(target);\n\tvar symbols;\n\n\tfor (var s = 1; s < arguments.length; s++) {\n\t\tfrom = Object(arguments[s]);\n\n\t\tfor (var key in from) {\n\t\t\tif (hasOwnProperty.call(from, key)) {\n\t\t\t\tto[key] = from[key];\n\t\t\t}\n\t\t}\n\n\t\tif (getOwnPropertySymbols) {\n\t\t\tsymbols = getOwnPropertySymbols(from);\n\t\t\tfor (var i = 0; i < symbols.length; i++) {\n\t\t\t\tif (propIsEnumerable.call(from, symbols[i])) {\n\t\t\t\t\tto[symbols[i]] = from[symbols[i]];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn to;\n};\n","import React from 'react';\n\nconst body = document.body;\n\nclass NGGModal extends React.Component {\n\n constructor(props) {\n super(props)\n this.closeModal = this.closeModal.bind(this);\n\n this.background_layer = document.createElement('div');\n this.background_layer.setAttribute('id', 'add-ngg-gallery-modal-background');\n }\n\n componentDidMount() {\n body.style.overflow = 'hidden';\n body.appendChild(this.background_layer);\n\n const self = this;\n\n const iframe = document.getElementById('add-ngg-gallery-block-iframe');\n\n iframe.addEventListener('NGG_Iframe_Ready', function() {\n document.getElementById(\"add-ngg-gallery-modal-spinner\").classList.add(\"add-ngg-gallery-modal-spinner-hidden\");\n });\n\n iframe.addEventListener('NGG_Insert_Gallery', function(event) {\n self.props.onInsertGallery(event.detail.shortcode);\n\n })\n\n iframe.addEventListener('NGG_Close_Modal', function() {\n self.props.onCloseModal();\n })\n }\n\n componentWillUnmount() {\n body.style.overflow = 'auto';\n body.removeChild(this.background_layer);\n }\n\n closeModal() {\n this.props.onCloseModal();\n }\n\n render() {\n let attach_to_post_url = window.igw.url + '&origin=block';\n\n if (this.props.content) {\n attach_to_post_url += '&shortcode=';\n let shortcode = this.props.content.replace(/\\\\\"/g, '\"');\n shortcode = shortcode.replace(/^\\[ngg_images/, '');\n shortcode = shortcode.replace(/^\\[ngg/, '');\n shortcode = shortcode.replace(/]$/, '');\n attach_to_post_url += Base64.encode(shortcode);\n }\n\n // use createPortal to insert the modal div as a child of <body> to prevent the WP-Admin sidebar\n // menu from getting in the way and causing annoying z-index issues\n return ReactDOM.createPortal(\n <div id=\"add-ngg-gallery-modal\">\n <a href='#'\n id='add-ngg-gallery-modal-close'\n onClick={this.closeModal}>\n <span className=\"dashicons dashicons-no\"/>\n </a>\n <div id=\"add-ngg-gallery-modal-spinner\">\n <i className=\"fa fa-spin fa-spinner\"/>\n </div>\n <iframe src={attach_to_post_url}\n tabIndex=\"-1\"\n name=\"add-ngg-gallery-block-iframe\"\n id=\"add-ngg-gallery-block-iframe\"/>\n </div>,\n body\n );\n }\n\n}\n\nexport default class NGGEditor extends React.Component {\n\n constructor(props) {\n super(props)\n\n this.state = {\n open: false\n }\n\n this.openIGW = this.openIGW.bind(this);\n this.closeIGW = this.closeIGW.bind(this);\n this.removeGallery = this.removeGallery.bind(this);\n }\n\n hasGallery() {\n return this.props.content && this.props.content.length > 0\n }\n\n removeGallery() {\n this.props.onInsertGallery('');\n }\n\n closeIGW() {\n this.setState({\n open: false\n });\n }\n\n openIGW() {\n this.setState({\n open: true\n });\n }\n\n render() {\n return (\n <div className=\"add-ngg-gallery-parent\">\n {this.state.open ?\n <NGGModal content={this.props.content}\n onCloseModal={this.closeIGW}\n onInsertGallery={this.props.onInsertGallery}/>\n : ''\n }\n {this.hasGallery() ?\n <div className=\"add-ngg-gallery-block\">\n <h3>{add_ngg_gallery_block_i18n.h3}</h3>\n <button className=\"add-ngg-gallery-button\"\n onClick={this.openIGW}>\n {add_ngg_gallery_block_i18n.edit}\n </button>\n <button className=\"add-ngg-gallery-button\"\n onClick={this.removeGallery}>\n {add_ngg_gallery_block_i18n.delete}\n </button>\n </div>\n :\n <div className=\"add-ngg-gallery-block\">\n <div className=\"add-ngg-gallery-button\"\n onClick={this.openIGW}>\n {add_ngg_gallery_block_i18n.create}\n </div>\n </div>\n }\n </div>\n )\n }\n}","const icons = {};\n\nicons.nextgen =\n<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" viewBox=\"0 0 240 240\" width=\"240.0pt\" height=\"240.0pt\">\n<path d=\"M 0.00 0.00 L 240.00 0.00 L 240.00 240.00 L 0.00 240.00 L 0.00 0.00 Z\" fill=\"#ffffff\" />\n<path d=\"M 116.97 3.45 C 155.78 2.17 194.29 21.78 215.90 54.07 C 226.92 70.43 234.08 89.34 236.07 109.00 C 239.08 140.20 228.61 172.42 208.14 196.12 C 191.73 215.41 168.66 228.79 143.97 234.16 C 125.25 238.08 105.37 237.44 87.04 231.86 C 67.00 226.07 48.82 214.65 34.69 199.32 C 14.08 177.26 2.88 147.13 3.50 117.00 C 4.36 95.58 10.72 74.49 22.55 56.55 C 35.03 37.69 52.63 22.36 73.52 13.50 C 87.07 6.87 101.94 3.80 116.97 3.45 Z\" fill=\"#9fbb1a\" />\n<path d=\"M 69.17 61.47 C 70.78 61.56 72.37 61.91 73.97 62.05 C 80.30 62.27 86.66 62.04 93.00 62.14 C 96.81 62.23 100.65 61.35 104.18 62.75 C 108.45 64.30 111.62 68.44 111.67 73.03 C 111.78 81.35 111.66 89.68 111.72 98.00 C 111.65 101.03 111.87 104.65 110.30 107.35 C 108.22 110.91 104.17 113.41 100.02 113.40 C 90.68 113.43 81.33 113.42 71.99 113.40 C 65.66 113.41 59.85 108.54 59.66 102.04 C 59.55 92.36 59.70 82.67 59.58 72.99 C 59.41 67.44 63.60 62.15 69.17 61.47 Z\" fill=\"#ffffff\" />\n<path d=\"M 138.98 61.27 C 148.33 61.42 157.69 61.22 167.04 61.37 C 173.28 61.31 178.81 66.69 178.70 72.96 C 178.72 82.65 178.75 92.34 178.68 102.02 C 178.48 108.28 173.18 112.96 167.02 113.04 C 157.69 113.25 148.33 113.02 138.99 113.15 C 132.77 113.56 126.76 108.35 126.66 102.04 C 126.55 94.37 126.67 86.68 126.62 79.00 C 126.63 76.33 126.42 73.60 126.72 70.94 C 127.60 65.24 133.25 60.88 138.98 61.27 Z\" fill=\"#ffffff\" />\n<path d=\"M 70.97 72.97 C 80.41 72.70 89.87 72.92 99.31 72.86 C 99.39 82.36 99.34 91.87 99.34 101.38 C 89.85 101.36 80.36 101.42 70.87 101.35 C 70.90 91.90 70.70 82.42 70.97 72.97 Z\" fill=\"#9fbb1a\" />\n<path d=\"M 138.39 72.91 C 147.80 72.79 157.23 72.85 166.65 72.88 C 166.65 82.41 166.85 91.97 166.55 101.49 C 157.18 101.27 147.79 101.39 138.41 101.42 C 138.30 91.92 138.36 82.41 138.39 72.91 Z\" fill=\"#9fbb1a\" />\n<path d=\"M 69.96 128.72 C 77.95 128.35 86.00 128.68 94.00 128.66 C 97.84 128.75 101.40 128.12 104.93 129.93 C 109.12 131.86 111.63 136.43 111.39 141.00 C 111.31 150.34 111.48 159.70 111.31 169.04 C 111.25 175.45 105.33 180.72 99.01 180.44 C 90.00 180.43 81.00 180.42 71.99 180.44 C 67.16 180.64 62.37 177.99 60.28 173.57 C 59.04 171.04 59.32 167.76 59.27 165.00 C 59.38 156.70 59.15 148.39 59.37 140.10 C 59.59 134.25 64.10 129.27 69.96 128.72 Z\" fill=\"#ffffff\" />\n<path d=\"M 137.96 128.68 C 146.96 128.36 156.00 128.45 165.00 128.61 C 167.68 128.64 170.26 129.00 172.61 130.36 C 176.44 132.46 178.51 136.68 178.41 140.99 C 178.39 150.33 178.47 159.67 178.37 169.01 C 178.48 174.84 173.95 180.48 167.95 180.68 C 159.31 180.89 150.65 180.67 142.00 180.78 C 139.64 180.74 137.05 180.91 134.76 180.27 C 129.71 178.66 126.48 173.17 126.62 168.01 C 126.61 161.01 126.64 154.00 126.62 147.00 C 126.71 143.40 126.11 139.00 127.75 135.73 C 129.57 131.70 133.51 128.85 137.96 128.68 Z\" fill=\"#ffffff\" />\n<path d=\"M 70.98 140.01 C 80.41 139.71 89.87 139.94 99.31 139.89 C 99.40 149.41 99.33 158.93 99.35 168.45 C 89.85 168.43 80.36 168.47 70.86 168.42 C 70.91 158.96 70.69 149.47 70.98 140.01 Z\" fill=\"#9fbb1a\" />\n<path d=\"M 138.45 140.41 C 147.84 140.29 157.27 140.44 166.67 140.35 C 166.70 149.82 166.71 159.29 166.67 168.77 C 157.24 168.71 147.81 168.71 138.38 168.77 C 138.39 159.32 138.24 149.85 138.45 140.41 Z\" fill=\"#9fbb1a\" />\n</svg>\n\nexport default icons;","import NGGEditor from './edit.jsx'\nimport icons from './icons.min';\nimport React from 'react';\n\nconst { __ } \t\t\t\t= wp.i18n\nconst { RawHTML } \t = wp.element\nconst { registerBlockType } = wp.blocks\n\n// Register our block\nregisterBlockType('imagely/nextgen-gallery', {\n\n title: __('NextGEN Gallery'),\n\n description: __('A block for adding NextGEN Galleries.'),\n\n icon: icons.nextgen,\n\n category: 'common',\n\n attributes: {\n content: {\n type: 'string',\n source: 'html',\n },\n },\n\n supports: {\n className: false,\n customClassName: false,\n },\n\n edit({attributes, setAttributes}) {\n return <NGGEditor content={attributes.content}\n onInsertGallery={(shortcode) => {\n setAttributes({content: shortcode});\n }}/>\n },\n\n save({ attributes }) {\n const { content } = attributes;\n return <RawHTML>{ content }</RawHTML>\n }\n});"],"sourceRoot":""}
1
+ {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./node_modules/react/index.js","webpack:///./node_modules/react/cjs/react.production.min.js","webpack:///./node_modules/object-assign/index.js","webpack:///./build/nextgen-gallery/products/photocrati_nextgen/modules/nextgen_block/static/src/edit.jsx","webpack:///./build/nextgen-gallery/products/photocrati_nextgen/modules/nextgen_block/static/src/icons.min.js","webpack:///./build/nextgen-gallery/products/photocrati_nextgen/modules/nextgen_block/static/src/block.jsx"],"names":["installedModules","__webpack_require__","moduleId","exports","module","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","require","k","q","u","v","w","x","y","z","A","B","C","iterator","D","a","b","arguments","length","e","encodeURIComponent","g","h","f","Error","replace","framesToPop","aa","E","isMounted","enqueueForceUpdate","enqueueReplaceState","enqueueSetState","F","G","this","props","context","refs","updater","H","I","isReactComponent","setState","_typeof","forceUpdate","J","constructor","isPureReactComponent","K","current","currentDispatcher","L","M","ref","__self","__source","N","children","Array","defaultProps","$$typeof","type","_owner","O","P","Q","R","pop","result","keyPrefix","func","count","S","push","V","T","U","isArray","next","done","keys","join","=",":","escape","toString","ca","da","W","ba","X","Children","map","forEach","toArray","only","createRef","Component","PureComponent","createContext","_calculateChangedBits","_currentValue","_currentValue2","_threadCount","Provider","Consumer","_context","forwardRef","render","lazy","_ctor","_status","_result","memo","compare","Fragment","StrictMode","Suspense","createElement","cloneElement","createFactory","isValidElement","version","__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED","ReactCurrentOwner","assign","unstable_ConcurrentMode","unstable_Profiler","Y","default","Z","getOwnPropertySymbols","propIsEnumerable","propertyIsEnumerable","test1","String","getOwnPropertyNames","test2","fromCharCode","test3","split","letter","err","shouldUseNative","target","source","from","symbols","to","val","undefined","TypeError","toObject","body","document","NGGModal","React","_this","_classCallCheck","_super","closeModal","_assertThisInitialized","background_layer","setAttribute","style","overflow","appendChild","self","iframe","getElementById","addEventListener","classList","add","event","onInsertGallery","detail","shortcode","onCloseModal","removeChild","attach_to_post_url","window","igw","url","content","Base64","encode","ReactDOM","createPortal","react_default","id","href","onClick","className","src","tabIndex","NGGEditor","_this2","_super2","state","open","openIGW","closeIGW","removeGallery","edit_NGGModal","hasGallery","add_ngg_gallery_block_i18n","h3","edit","icons","nextgen","xmlns","viewBox","width","height","fill","__","wp","i18n","element","RawHTML","registerBlockType","blocks","title","description","icon","category","attributes","supports","customClassName","_ref","setAttributes","edit_NGGEditor","save","_ref2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\tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 3);\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react.production.min.js');\n} else {\n module.exports = require('./cjs/react.development.js');\n}\n","/** @license React v16.6.1\n * react.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';var k=require(\"object-assign\"),n=\"function\"===typeof Symbol&&Symbol.for,p=n?Symbol.for(\"react.element\"):60103,q=n?Symbol.for(\"react.portal\"):60106,r=n?Symbol.for(\"react.fragment\"):60107,t=n?Symbol.for(\"react.strict_mode\"):60108,u=n?Symbol.for(\"react.profiler\"):60114,v=n?Symbol.for(\"react.provider\"):60109,w=n?Symbol.for(\"react.context\"):60110,x=n?Symbol.for(\"react.concurrent_mode\"):60111,y=n?Symbol.for(\"react.forward_ref\"):60112,z=n?Symbol.for(\"react.suspense\"):60113,A=n?Symbol.for(\"react.memo\"):\n60115,B=n?Symbol.for(\"react.lazy\"):60116,C=\"function\"===typeof Symbol&&Symbol.iterator;function aa(a,b,e,c,d,g,h,f){if(!a){a=void 0;if(void 0===b)a=Error(\"Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.\");else{var l=[e,c,d,g,h,f],m=0;a=Error(b.replace(/%s/g,function(){return l[m++]}));a.name=\"Invariant Violation\"}a.framesToPop=1;throw a;}}\nfunction D(a){for(var b=arguments.length-1,e=\"https://reactjs.org/docs/error-decoder.html?invariant=\"+a,c=0;c<b;c++)e+=\"&args[]=\"+encodeURIComponent(arguments[c+1]);aa(!1,\"Minified React error #\"+a+\"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. \",e)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},F={};\nfunction G(a,b,e){this.props=a;this.context=b;this.refs=F;this.updater=e||E}G.prototype.isReactComponent={};G.prototype.setState=function(a,b){\"object\"!==typeof a&&\"function\"!==typeof a&&null!=a?D(\"85\"):void 0;this.updater.enqueueSetState(this,a,b,\"setState\")};G.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,\"forceUpdate\")};function H(){}H.prototype=G.prototype;function I(a,b,e){this.props=a;this.context=b;this.refs=F;this.updater=e||E}var J=I.prototype=new H;\nJ.constructor=I;k(J,G.prototype);J.isPureReactComponent=!0;var K={current:null,currentDispatcher:null},L=Object.prototype.hasOwnProperty,M={key:!0,ref:!0,__self:!0,__source:!0};\nfunction N(a,b,e){var c=void 0,d={},g=null,h=null;if(null!=b)for(c in void 0!==b.ref&&(h=b.ref),void 0!==b.key&&(g=\"\"+b.key),b)L.call(b,c)&&!M.hasOwnProperty(c)&&(d[c]=b[c]);var f=arguments.length-2;if(1===f)d.children=e;else if(1<f){for(var l=Array(f),m=0;m<f;m++)l[m]=arguments[m+2];d.children=l}if(a&&a.defaultProps)for(c in f=a.defaultProps,f)void 0===d[c]&&(d[c]=f[c]);return{$$typeof:p,type:a,key:g,ref:h,props:d,_owner:K.current}}\nfunction ba(a,b){return{$$typeof:p,type:a.type,key:b,ref:a.ref,props:a.props,_owner:a._owner}}function O(a){return\"object\"===typeof a&&null!==a&&a.$$typeof===p}function escape(a){var b={\"=\":\"=0\",\":\":\"=2\"};return\"$\"+(\"\"+a).replace(/[=:]/g,function(a){return b[a]})}var P=/\\/+/g,Q=[];function R(a,b,e,c){if(Q.length){var d=Q.pop();d.result=a;d.keyPrefix=b;d.func=e;d.context=c;d.count=0;return d}return{result:a,keyPrefix:b,func:e,context:c,count:0}}\nfunction S(a){a.result=null;a.keyPrefix=null;a.func=null;a.context=null;a.count=0;10>Q.length&&Q.push(a)}\nfunction T(a,b,e,c){var d=typeof a;if(\"undefined\"===d||\"boolean\"===d)a=null;var g=!1;if(null===a)g=!0;else switch(d){case \"string\":case \"number\":g=!0;break;case \"object\":switch(a.$$typeof){case p:case q:g=!0}}if(g)return e(c,a,\"\"===b?\".\"+U(a,0):b),1;g=0;b=\"\"===b?\".\":b+\":\";if(Array.isArray(a))for(var h=0;h<a.length;h++){d=a[h];var f=b+U(d,h);g+=T(d,f,e,c)}else if(null===a||\"object\"!==typeof a?f=null:(f=C&&a[C]||a[\"@@iterator\"],f=\"function\"===typeof f?f:null),\"function\"===typeof f)for(a=f.call(a),h=\n0;!(d=a.next()).done;)d=d.value,f=b+U(d,h++),g+=T(d,f,e,c);else\"object\"===d&&(e=\"\"+a,D(\"31\",\"[object Object]\"===e?\"object with keys {\"+Object.keys(a).join(\", \")+\"}\":e,\"\"));return g}function V(a,b,e){return null==a?0:T(a,\"\",b,e)}function U(a,b){return\"object\"===typeof a&&null!==a&&null!=a.key?escape(a.key):b.toString(36)}function ca(a,b){a.func.call(a.context,b,a.count++)}\nfunction da(a,b,e){var c=a.result,d=a.keyPrefix;a=a.func.call(a.context,b,a.count++);Array.isArray(a)?W(a,c,e,function(a){return a}):null!=a&&(O(a)&&(a=ba(a,d+(!a.key||b&&b.key===a.key?\"\":(\"\"+a.key).replace(P,\"$&/\")+\"/\")+e)),c.push(a))}function W(a,b,e,c,d){var g=\"\";null!=e&&(g=(\"\"+e).replace(P,\"$&/\")+\"/\");b=R(b,g,c,d);V(a,da,b);S(b)}\nvar X={Children:{map:function(a,b,e){if(null==a)return a;var c=[];W(a,c,null,b,e);return c},forEach:function(a,b,e){if(null==a)return a;b=R(null,null,b,e);V(a,ca,b);S(b)},count:function(a){return V(a,function(){return null},null)},toArray:function(a){var b=[];W(a,b,null,function(a){return a});return b},only:function(a){O(a)?void 0:D(\"143\");return a}},createRef:function(){return{current:null}},Component:G,PureComponent:I,createContext:function(a,b){void 0===b&&(b=null);a={$$typeof:w,_calculateChangedBits:b,\n_currentValue:a,_currentValue2:a,_threadCount:0,Provider:null,Consumer:null};a.Provider={$$typeof:v,_context:a};return a.Consumer=a},forwardRef:function(a){return{$$typeof:y,render:a}},lazy:function(a){return{$$typeof:B,_ctor:a,_status:-1,_result:null}},memo:function(a,b){return{$$typeof:A,type:a,compare:void 0===b?null:b}},Fragment:r,StrictMode:t,Suspense:z,createElement:N,cloneElement:function(a,b,e){null===a||void 0===a?D(\"267\",a):void 0;var c=void 0,d=k({},a.props),g=a.key,h=a.ref,f=a._owner;\nif(null!=b){void 0!==b.ref&&(h=b.ref,f=K.current);void 0!==b.key&&(g=\"\"+b.key);var l=void 0;a.type&&a.type.defaultProps&&(l=a.type.defaultProps);for(c in b)L.call(b,c)&&!M.hasOwnProperty(c)&&(d[c]=void 0===b[c]&&void 0!==l?l[c]:b[c])}c=arguments.length-2;if(1===c)d.children=e;else if(1<c){l=Array(c);for(var m=0;m<c;m++)l[m]=arguments[m+2];d.children=l}return{$$typeof:p,type:a.type,key:g,ref:h,props:d,_owner:f}},createFactory:function(a){var b=N.bind(null,a);b.type=a;return b},isValidElement:O,version:\"16.6.3\",\n__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:K,assign:k}};X.unstable_ConcurrentMode=x;X.unstable_Profiler=u;var Y={default:X},Z=Y&&X||Y;module.exports=Z.default||Z;\n","/*\nobject-assign\n(c) Sindre Sorhus\n@license MIT\n*/\n\n'use strict';\n/* eslint-disable no-unused-vars */\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar propIsEnumerable = Object.prototype.propertyIsEnumerable;\n\nfunction toObject(val) {\n\tif (val === null || val === undefined) {\n\t\tthrow new TypeError('Object.assign cannot be called with null or undefined');\n\t}\n\n\treturn Object(val);\n}\n\nfunction shouldUseNative() {\n\ttry {\n\t\tif (!Object.assign) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Detect buggy property enumeration order in older V8 versions.\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=4118\n\t\tvar test1 = new String('abc'); // eslint-disable-line no-new-wrappers\n\t\ttest1[5] = 'de';\n\t\tif (Object.getOwnPropertyNames(test1)[0] === '5') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test2 = {};\n\t\tfor (var i = 0; i < 10; i++) {\n\t\t\ttest2['_' + String.fromCharCode(i)] = i;\n\t\t}\n\t\tvar order2 = Object.getOwnPropertyNames(test2).map(function (n) {\n\t\t\treturn test2[n];\n\t\t});\n\t\tif (order2.join('') !== '0123456789') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test3 = {};\n\t\t'abcdefghijklmnopqrst'.split('').forEach(function (letter) {\n\t\t\ttest3[letter] = letter;\n\t\t});\n\t\tif (Object.keys(Object.assign({}, test3)).join('') !==\n\t\t\t\t'abcdefghijklmnopqrst') {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t} catch (err) {\n\t\t// We don't expect any of the above to throw, but better to be safe.\n\t\treturn false;\n\t}\n}\n\nmodule.exports = shouldUseNative() ? Object.assign : function (target, source) {\n\tvar from;\n\tvar to = toObject(target);\n\tvar symbols;\n\n\tfor (var s = 1; s < arguments.length; s++) {\n\t\tfrom = Object(arguments[s]);\n\n\t\tfor (var key in from) {\n\t\t\tif (hasOwnProperty.call(from, key)) {\n\t\t\t\tto[key] = from[key];\n\t\t\t}\n\t\t}\n\n\t\tif (getOwnPropertySymbols) {\n\t\t\tsymbols = getOwnPropertySymbols(from);\n\t\t\tfor (var i = 0; i < symbols.length; i++) {\n\t\t\t\tif (propIsEnumerable.call(from, symbols[i])) {\n\t\t\t\t\tto[symbols[i]] = from[symbols[i]];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn to;\n};\n","import React from 'react';\n\nconst body = document.body;\n\nclass NGGModal extends React.Component {\n\n constructor(props) {\n super(props)\n this.closeModal = this.closeModal.bind(this);\n\n this.background_layer = document.createElement('div');\n this.background_layer.setAttribute('id', 'add-ngg-gallery-modal-background');\n }\n\n componentDidMount() {\n body.style.overflow = 'hidden';\n body.appendChild(this.background_layer);\n\n const self = this;\n\n const iframe = document.getElementById('add-ngg-gallery-block-iframe');\n\n iframe.addEventListener('NGG_Iframe_Ready', function() {\n document.getElementById(\"add-ngg-gallery-modal-spinner\").classList.add(\"add-ngg-gallery-modal-spinner-hidden\");\n });\n\n iframe.addEventListener('NGG_Insert_Gallery', function(event) {\n self.props.onInsertGallery(event.detail.shortcode);\n\n })\n\n iframe.addEventListener('NGG_Close_Modal', function() {\n self.props.onCloseModal();\n })\n }\n\n componentWillUnmount() {\n body.style.overflow = 'auto';\n body.removeChild(this.background_layer);\n }\n\n closeModal() {\n this.props.onCloseModal();\n }\n\n render() {\n let attach_to_post_url = window.igw.url + '&origin=block';\n\n if (this.props.content) {\n attach_to_post_url += '&shortcode=';\n let shortcode = this.props.content.replace(/\\\\\"/g, '\"');\n shortcode = shortcode.replace(/^\\[ngg_images/, '');\n shortcode = shortcode.replace(/^\\[ngg/, '');\n shortcode = shortcode.replace(/]$/, '');\n attach_to_post_url += Base64.encode(shortcode);\n }\n\n // use createPortal to insert the modal div as a child of <body> to prevent the WP-Admin sidebar\n // menu from getting in the way and causing annoying z-index issues\n return ReactDOM.createPortal(\n <div id=\"add-ngg-gallery-modal\">\n <a href='#'\n id='add-ngg-gallery-modal-close'\n onClick={this.closeModal}>\n <span className=\"dashicons dashicons-no\"/>\n </a>\n <div id=\"add-ngg-gallery-modal-spinner\">\n <i className=\"fa fa-spin fa-spinner\"/>\n </div>\n <iframe src={attach_to_post_url}\n tabIndex=\"-1\"\n name=\"add-ngg-gallery-block-iframe\"\n id=\"add-ngg-gallery-block-iframe\"/>\n </div>,\n body\n );\n }\n\n}\n\nexport default class NGGEditor extends React.Component {\n\n constructor(props) {\n super(props)\n\n this.state = {\n open: false\n }\n\n this.openIGW = this.openIGW.bind(this);\n this.closeIGW = this.closeIGW.bind(this);\n this.removeGallery = this.removeGallery.bind(this);\n }\n\n hasGallery() {\n return this.props.content && this.props.content.length > 0\n }\n\n removeGallery() {\n this.props.onInsertGallery('');\n }\n\n closeIGW() {\n this.setState({\n open: false\n });\n }\n\n openIGW() {\n this.setState({\n open: true\n });\n }\n\n render() {\n return (\n <div className=\"add-ngg-gallery-parent\">\n {this.state.open ?\n <NGGModal content={this.props.content}\n onCloseModal={this.closeIGW}\n onInsertGallery={this.props.onInsertGallery}/>\n : ''\n }\n {this.hasGallery() ?\n <div className=\"add-ngg-gallery-block\">\n <h3>{add_ngg_gallery_block_i18n.h3}</h3>\n <button className=\"add-ngg-gallery-button\"\n onClick={this.openIGW}>\n {add_ngg_gallery_block_i18n.edit}\n </button>\n <button className=\"add-ngg-gallery-button\"\n onClick={this.removeGallery}>\n {add_ngg_gallery_block_i18n.delete}\n </button>\n </div>\n :\n <div className=\"add-ngg-gallery-block\">\n <div className=\"add-ngg-gallery-button\"\n onClick={this.openIGW}>\n {add_ngg_gallery_block_i18n.create}\n </div>\n </div>\n }\n </div>\n )\n }\n}","const icons = {};\n\nicons.nextgen =\n<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" viewBox=\"0 0 240 240\" width=\"240.0pt\" height=\"240.0pt\">\n<path d=\"M 0.00 0.00 L 240.00 0.00 L 240.00 240.00 L 0.00 240.00 L 0.00 0.00 Z\" fill=\"#ffffff\" />\n<path d=\"M 116.97 3.45 C 155.78 2.17 194.29 21.78 215.90 54.07 C 226.92 70.43 234.08 89.34 236.07 109.00 C 239.08 140.20 228.61 172.42 208.14 196.12 C 191.73 215.41 168.66 228.79 143.97 234.16 C 125.25 238.08 105.37 237.44 87.04 231.86 C 67.00 226.07 48.82 214.65 34.69 199.32 C 14.08 177.26 2.88 147.13 3.50 117.00 C 4.36 95.58 10.72 74.49 22.55 56.55 C 35.03 37.69 52.63 22.36 73.52 13.50 C 87.07 6.87 101.94 3.80 116.97 3.45 Z\" fill=\"#9fbb1a\" />\n<path d=\"M 69.17 61.47 C 70.78 61.56 72.37 61.91 73.97 62.05 C 80.30 62.27 86.66 62.04 93.00 62.14 C 96.81 62.23 100.65 61.35 104.18 62.75 C 108.45 64.30 111.62 68.44 111.67 73.03 C 111.78 81.35 111.66 89.68 111.72 98.00 C 111.65 101.03 111.87 104.65 110.30 107.35 C 108.22 110.91 104.17 113.41 100.02 113.40 C 90.68 113.43 81.33 113.42 71.99 113.40 C 65.66 113.41 59.85 108.54 59.66 102.04 C 59.55 92.36 59.70 82.67 59.58 72.99 C 59.41 67.44 63.60 62.15 69.17 61.47 Z\" fill=\"#ffffff\" />\n<path d=\"M 138.98 61.27 C 148.33 61.42 157.69 61.22 167.04 61.37 C 173.28 61.31 178.81 66.69 178.70 72.96 C 178.72 82.65 178.75 92.34 178.68 102.02 C 178.48 108.28 173.18 112.96 167.02 113.04 C 157.69 113.25 148.33 113.02 138.99 113.15 C 132.77 113.56 126.76 108.35 126.66 102.04 C 126.55 94.37 126.67 86.68 126.62 79.00 C 126.63 76.33 126.42 73.60 126.72 70.94 C 127.60 65.24 133.25 60.88 138.98 61.27 Z\" fill=\"#ffffff\" />\n<path d=\"M 70.97 72.97 C 80.41 72.70 89.87 72.92 99.31 72.86 C 99.39 82.36 99.34 91.87 99.34 101.38 C 89.85 101.36 80.36 101.42 70.87 101.35 C 70.90 91.90 70.70 82.42 70.97 72.97 Z\" fill=\"#9fbb1a\" />\n<path d=\"M 138.39 72.91 C 147.80 72.79 157.23 72.85 166.65 72.88 C 166.65 82.41 166.85 91.97 166.55 101.49 C 157.18 101.27 147.79 101.39 138.41 101.42 C 138.30 91.92 138.36 82.41 138.39 72.91 Z\" fill=\"#9fbb1a\" />\n<path d=\"M 69.96 128.72 C 77.95 128.35 86.00 128.68 94.00 128.66 C 97.84 128.75 101.40 128.12 104.93 129.93 C 109.12 131.86 111.63 136.43 111.39 141.00 C 111.31 150.34 111.48 159.70 111.31 169.04 C 111.25 175.45 105.33 180.72 99.01 180.44 C 90.00 180.43 81.00 180.42 71.99 180.44 C 67.16 180.64 62.37 177.99 60.28 173.57 C 59.04 171.04 59.32 167.76 59.27 165.00 C 59.38 156.70 59.15 148.39 59.37 140.10 C 59.59 134.25 64.10 129.27 69.96 128.72 Z\" fill=\"#ffffff\" />\n<path d=\"M 137.96 128.68 C 146.96 128.36 156.00 128.45 165.00 128.61 C 167.68 128.64 170.26 129.00 172.61 130.36 C 176.44 132.46 178.51 136.68 178.41 140.99 C 178.39 150.33 178.47 159.67 178.37 169.01 C 178.48 174.84 173.95 180.48 167.95 180.68 C 159.31 180.89 150.65 180.67 142.00 180.78 C 139.64 180.74 137.05 180.91 134.76 180.27 C 129.71 178.66 126.48 173.17 126.62 168.01 C 126.61 161.01 126.64 154.00 126.62 147.00 C 126.71 143.40 126.11 139.00 127.75 135.73 C 129.57 131.70 133.51 128.85 137.96 128.68 Z\" fill=\"#ffffff\" />\n<path d=\"M 70.98 140.01 C 80.41 139.71 89.87 139.94 99.31 139.89 C 99.40 149.41 99.33 158.93 99.35 168.45 C 89.85 168.43 80.36 168.47 70.86 168.42 C 70.91 158.96 70.69 149.47 70.98 140.01 Z\" fill=\"#9fbb1a\" />\n<path d=\"M 138.45 140.41 C 147.84 140.29 157.27 140.44 166.67 140.35 C 166.70 149.82 166.71 159.29 166.67 168.77 C 157.24 168.71 147.81 168.71 138.38 168.77 C 138.39 159.32 138.24 149.85 138.45 140.41 Z\" fill=\"#9fbb1a\" />\n</svg>\n\nexport default icons;","import NGGEditor from './edit.jsx'\nimport icons from './icons.min';\nimport React from 'react';\n\nconst { __ } \t\t\t\t= wp.i18n\nconst { RawHTML } \t = wp.element\nconst { registerBlockType } = wp.blocks\n\n// Register our block\nregisterBlockType('imagely/nextgen-gallery', {\n\n title: __('NextGEN Gallery'),\n\n description: __('A block for adding NextGEN Galleries.'),\n\n icon: icons.nextgen,\n\n category: 'common',\n\n attributes: {\n content: {\n type: 'string',\n source: 'html',\n },\n },\n\n supports: {\n className: false,\n customClassName: false,\n },\n\n edit({attributes, setAttributes}) {\n return <NGGEditor content={attributes.content}\n onInsertGallery={(shortcode) => {\n setAttributes({content: shortcode});\n }}/>\n },\n\n save({ attributes }) {\n return attributes.content;\n }\n});"],"sourceRoot":""}
products/photocrati_nextgen/modules/nextgen_block/static/src/block.jsx CHANGED
@@ -37,7 +37,6 @@ registerBlockType('imagely/nextgen-gallery', {
37
  },
38
 
39
  save({ attributes }) {
40
- const { content } = attributes;
41
- return <RawHTML>{ content }</RawHTML>
42
  }
43
  });
37
  },
38
 
39
  save({ attributes }) {
40
+ return attributes.content;
 
41
  }
42
  });
products/photocrati_nextgen/modules/nextgen_data/module.nextgen_data.php CHANGED
@@ -61,29 +61,45 @@ class M_NextGen_Data extends C_Base_Module
61
  return class_exists('DOMDocument');
62
  }
63
 
 
 
 
 
 
64
  function _register_hooks()
65
  {
66
- add_action('admin_init', array($this, 'register_requirements'));
67
  add_action('init', array(&$this, 'register_custom_post_types'));
68
  add_filter('posts_orderby', array($this, 'wp_query_order_by'), 10, 2);
69
  }
70
 
71
  public function register_requirements()
72
  {
73
- C_Admin_Requirements_Manager::get_instance()->add(
 
74
  'nextgen_data_sanitation',
75
  'phpext',
76
  array($this, 'check_domdocument_requirement'),
77
  array('message' => __('XML is strongly encouraged for safely editing image data', 'nggallery'))
78
  );
79
 
80
- C_Admin_Requirements_Manager::get_instance()->add(
81
  'nextgen_data_gd_requirement',
82
  'phpext',
83
  array($this, 'check_gd_requirement'),
84
  array('message' => __('GD is required for generating image thumbnails, resizing images, and generating watermarks', 'nggallery'),
85
  'dismissable' => FALSE)
86
  );
 
 
 
 
 
 
 
 
 
 
87
  }
88
 
89
  function register_custom_post_types()
61
  return class_exists('DOMDocument');
62
  }
63
 
64
+ public static function check_ctypes_requirement()
65
+ {
66
+ return function_exists('ctype_lower');
67
+ }
68
+
69
  function _register_hooks()
70
  {
71
+ add_action('admin_init', [$this, 'register_requirements'], -20);
72
  add_action('init', array(&$this, 'register_custom_post_types'));
73
  add_filter('posts_orderby', array($this, 'wp_query_order_by'), 10, 2);
74
  }
75
 
76
  public function register_requirements()
77
  {
78
+ $manager = C_Admin_Requirements_Manager::get_instance();
79
+ $manager->add(
80
  'nextgen_data_sanitation',
81
  'phpext',
82
  array($this, 'check_domdocument_requirement'),
83
  array('message' => __('XML is strongly encouraged for safely editing image data', 'nggallery'))
84
  );
85
 
86
+ $manager->add(
87
  'nextgen_data_gd_requirement',
88
  'phpext',
89
  array($this, 'check_gd_requirement'),
90
  array('message' => __('GD is required for generating image thumbnails, resizing images, and generating watermarks', 'nggallery'),
91
  'dismissable' => FALSE)
92
  );
93
+
94
+ $manager->add(
95
+ 'nextgen_data_ctypes_requirement',
96
+ 'phpext',
97
+ [$this, 'check_ctypes_requirement'],
98
+ [
99
+ 'message' => __('ctype methods are required for securing user submitted data', 'nggallery'),
100
+ 'dismissable' => FALSE
101
+ ]
102
+ );
103
  }
104
 
105
  function register_custom_post_types()
products/photocrati_nextgen/modules/nextgen_xmlrpc/package.module.nextgen_xmlrpc.php CHANGED
@@ -654,6 +654,9 @@ class C_NextGen_API extends C_Component
654
  $skip_count = 0;
655
  $task_list_result = array();
656
  wp_set_current_user($job_user);
 
 
 
657
  /* This block does all of the filesystem magic:
658
  * - determines web paths based on FTP paths
659
  * - initializes the WP_Filesystem mechanism in case this host doesn't support direct file access
654
  $skip_count = 0;
655
  $task_list_result = array();
656
  wp_set_current_user($job_user);
657
+ // Prevent PHP warnings about accessing undefined array keys
658
+ $app_config['ftp_path'] = isset($app_config['ftp_path']) ? $app_config['ftp_path'] : '';
659
+ $app_config['full_path'] = isset($app_config['full_path']) ? $app_config['full_path'] : '';
660
  /* This block does all of the filesystem magic:
661
  * - determines web paths based on FTP paths
662
  * - initializes the WP_Filesystem mechanism in case this host doesn't support direct file access
products/photocrati_nextgen/modules/ngglegacy/admin/manage.php CHANGED
@@ -1065,8 +1065,13 @@ class nggManageGallery {
1065
  $search_for_images = (array) $nggdb->search_for_images( $request );
1066
  $search_for_tags = (array) nggTags::find_images_for_tags( $request , 'ASC' );
1067
 
1068
- // finally merge the two results together
1069
- $this->search_result = array_merge( $search_for_images , $search_for_tags );
 
 
 
 
 
1070
 
1071
  // TODO: Currently we didn't support a proper pagination
1072
  $nggdb->paged['total_objects'] = $nggdb->paged['objects_per_page'] = count ($this->search_result) ;
1065
  $search_for_images = (array) $nggdb->search_for_images( $request );
1066
  $search_for_tags = (array) nggTags::find_images_for_tags( $request , 'ASC' );
1067
 
1068
+ // Merge the two arrays and deduplicate
1069
+ $merged = array_merge($search_for_images , $search_for_tags);
1070
+ $this->search_result = [];
1071
+ foreach ($merged as $result) {
1072
+ if (!in_array($result, $this->search_result))
1073
+ $this->search_result[] = $result;
1074
+ }
1075
 
1076
  // TODO: Currently we didn't support a proper pagination
1077
  $nggdb->paged['total_objects'] = $nggdb->paged['objects_per_page'] = count ($this->search_result) ;
products/photocrati_nextgen/modules/third_party_compat/module.third_party_compat.php CHANGED
@@ -94,7 +94,6 @@ class M_Third_Party_Compat extends C_Base_Module
94
 
95
  add_filter('headway_gzip', array(&$this, 'headway_gzip'), (PHP_INT_MAX - 1));
96
  add_filter('ckeditor_external_plugins', array(&$this, 'ckeditor_plugins'), 11);
97
- add_filter('bp_do_redirect_canonical', array(&$this, 'fix_buddypress_routing'));
98
  add_filter('the_content', array($this, 'check_weaverii'), -(PHP_INT_MAX-2));
99
  add_action('wp', array($this, 'check_for_jquery_lightbox'));
100
  add_filter('get_the_excerpt', array($this, 'disable_galleries_in_excerpts'), 1);
@@ -112,6 +111,13 @@ class M_Third_Party_Compat extends C_Base_Module
112
  if ($this->is_ngg_page())
113
  add_action('admin_enqueue_scripts', array(&$this, 'dequeue_spider_calendar_resources'));
114
 
 
 
 
 
 
 
 
115
  // WPML fix
116
  if (class_exists('SitePress'))
117
  {
@@ -310,13 +316,6 @@ class M_Third_Party_Compat extends C_Base_Module
310
  return $excerpt;
311
  }
312
 
313
- function fix_buddypress_routing()
314
- {
315
- M_WordPress_Routing::$_use_canonical_redirect = FALSE;
316
-
317
- return FALSE;
318
- }
319
-
320
  function fix_wpml_canonical_redirect()
321
  {
322
  M_WordPress_Routing::$_use_canonical_redirect = FALSE;
94
 
95
  add_filter('headway_gzip', array(&$this, 'headway_gzip'), (PHP_INT_MAX - 1));
96
  add_filter('ckeditor_external_plugins', array(&$this, 'ckeditor_plugins'), 11);
 
97
  add_filter('the_content', array($this, 'check_weaverii'), -(PHP_INT_MAX-2));
98
  add_action('wp', array($this, 'check_for_jquery_lightbox'));
99
  add_filter('get_the_excerpt', array($this, 'disable_galleries_in_excerpts'), 1);
111
  if ($this->is_ngg_page())
112
  add_action('admin_enqueue_scripts', array(&$this, 'dequeue_spider_calendar_resources'));
113
 
114
+ // Like WPML, BuddyPress is incompatible with our routing hacks.
115
+ if (function_exists('buddypress'))
116
+ {
117
+ M_WordPress_Routing::$_use_canonical_redirect = FALSE;
118
+ M_WordPress_Routing::$_use_old_slugs = FALSE;
119
+ }
120
+
121
  // WPML fix
122
  if (class_exists('SitePress'))
123
  {
316
  return $excerpt;
317
  }
318
 
 
 
 
 
 
 
 
319
  function fix_wpml_canonical_redirect()
320
  {
321
  M_WordPress_Routing::$_use_canonical_redirect = FALSE;
readme.txt CHANGED
@@ -2,7 +2,7 @@
2
  Contributors: photocrati, imagely
3
  Tags: wordpress gallery plugin, gallery, nextgen, nextgen gallery, photo gallery, image gallery, photography, slideshow, images, photo, photo album, watermark
4
  Requires at least: 5.5.4
5
- Stable tag: 3.17
6
  Tested up to: 5.8
7
  License: GPLv3
8
  Requires PHP: 5.6
@@ -179,6 +179,14 @@ For more information, feel free to visit the official website for the NextGEN Ga
179
 
180
  == Changelog ==
181
 
 
 
 
 
 
 
 
 
182
  = V3.17 - 09.15.2021
183
  * Fixed: NGG 3.16 created a problem with the Manage Gallery page's Edit Thumbnail, Rotate Image, and View Meta popups
184
 
2
  Contributors: photocrati, imagely
3
  Tags: wordpress gallery plugin, gallery, nextgen, nextgen gallery, photo gallery, image gallery, photography, slideshow, images, photo, photo album, watermark
4
  Requires at least: 5.5.4
5
+ Stable tag: 3.18
6
  Tested up to: 5.8
7
  License: GPLv3
8
  Requires PHP: 5.6
179
 
180
  == Changelog ==
181
 
182
+ = V3.18 - 12.08.2021
183
+ * NEW: Added a constant "NGG_DISABLE_SHORTCODE_MANAGER" to disable content protection workarounds that can be a source of incompatibility itself.
184
+ * NEW: Added notice to users that ctypes methods are required by NextGEN Gallery.
185
+ * Fixed: Compatibility with EditorsKit invalidating NextGEN Gallery blocks.
186
+ * Fixed: In rare circumstances the "Open album images in Pro Lightbox" feature was not working.
187
+ * Fixed: PHP warnings about undefined array key access when using the XMLRPC API (Lightroom)
188
+ * Fixed: Searching for images on Manage Galleries could result in duplicates.
189
+
190
  = V3.17 - 09.15.2021
191
  * Fixed: NGG 3.16 created a problem with the Manage Gallery page's Edit Thumbnail, Rotate Image, and View Meta popups
192
 
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInitdf834cf03fd70a9650c3e4bc171ad29a::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInit212c2ca75876deef39604c1b85445473::getLoader();
vendor/composer/ClassLoader.php CHANGED
@@ -42,30 +42,75 @@ namespace Composer\Autoload;
42
  */
43
  class ClassLoader
44
  {
 
45
  private $vendorDir;
46
 
47
  // PSR-4
 
 
 
 
48
  private $prefixLengthsPsr4 = array();
 
 
 
 
49
  private $prefixDirsPsr4 = array();
 
 
 
 
50
  private $fallbackDirsPsr4 = array();
51
 
52
  // PSR-0
 
 
 
 
53
  private $prefixesPsr0 = array();
 
 
 
 
54
  private $fallbackDirsPsr0 = array();
55
 
 
56
  private $useIncludePath = false;
 
 
 
 
 
57
  private $classMap = array();
 
 
58
  private $classMapAuthoritative = false;
 
 
 
 
 
59
  private $missingClasses = array();
 
 
60
  private $apcuPrefix;
61
 
 
 
 
62
  private static $registeredLoaders = array();
63
 
 
 
 
64
  public function __construct($vendorDir = null)
65
  {
66
  $this->vendorDir = $vendorDir;
67
  }
68
 
 
 
 
69
  public function getPrefixes()
70
  {
71
  if (!empty($this->prefixesPsr0)) {
@@ -75,28 +120,47 @@ class ClassLoader
75
  return array();
76
  }
77
 
 
 
 
 
78
  public function getPrefixesPsr4()
79
  {
80
  return $this->prefixDirsPsr4;
81
  }
82
 
 
 
 
 
83
  public function getFallbackDirs()
84
  {
85
  return $this->fallbackDirsPsr0;
86
  }
87
 
 
 
 
 
88
  public function getFallbackDirsPsr4()
89
  {
90
  return $this->fallbackDirsPsr4;
91
  }
92
 
 
 
 
 
93
  public function getClassMap()
94
  {
95
  return $this->classMap;
96
  }
97
 
98
  /**
99
- * @param array $classMap Class to filename map
 
 
 
100
  */
101
  public function addClassMap(array $classMap)
102
  {
@@ -111,9 +175,11 @@ class ClassLoader
111
  * Registers a set of PSR-0 directories for a given prefix, either
112
  * appending or prepending to the ones previously set for this prefix.
113
  *
114
- * @param string $prefix The prefix
115
- * @param array|string $paths The PSR-0 root directories
116
- * @param bool $prepend Whether to prepend the directories
 
 
117
  */
118
  public function add($prefix, $paths, $prepend = false)
119
  {
@@ -156,11 +222,13 @@ class ClassLoader
156
  * Registers a set of PSR-4 directories for a given namespace, either
157
  * appending or prepending to the ones previously set for this namespace.
158
  *
159
- * @param string $prefix The prefix/namespace, with trailing '\\'
160
- * @param array|string $paths The PSR-4 base directories
161
- * @param bool $prepend Whether to prepend the directories
162
  *
163
  * @throws \InvalidArgumentException
 
 
164
  */
165
  public function addPsr4($prefix, $paths, $prepend = false)
166
  {
@@ -204,8 +272,10 @@ class ClassLoader
204
  * Registers a set of PSR-0 directories for a given prefix,
205
  * replacing any others previously set for this prefix.
206
  *
207
- * @param string $prefix The prefix
208
- * @param array|string $paths The PSR-0 base directories
 
 
209
  */
210
  public function set($prefix, $paths)
211
  {
@@ -220,10 +290,12 @@ class ClassLoader
220
  * Registers a set of PSR-4 directories for a given namespace,
221
  * replacing any others previously set for this namespace.
222
  *
223
- * @param string $prefix The prefix/namespace, with trailing '\\'
224
- * @param array|string $paths The PSR-4 base directories
225
  *
226
  * @throws \InvalidArgumentException
 
 
227
  */
228
  public function setPsr4($prefix, $paths)
229
  {
@@ -243,6 +315,8 @@ class ClassLoader
243
  * Turns on searching the include path for class files.
244
  *
245
  * @param bool $useIncludePath
 
 
246
  */
247
  public function setUseIncludePath($useIncludePath)
248
  {
@@ -265,6 +339,8 @@ class ClassLoader
265
  * that have not been registered with the class map.
266
  *
267
  * @param bool $classMapAuthoritative
 
 
268
  */
269
  public function setClassMapAuthoritative($classMapAuthoritative)
270
  {
@@ -285,6 +361,8 @@ class ClassLoader
285
  * APCu prefix to use to cache found/not-found classes, if the extension is enabled.
286
  *
287
  * @param string|null $apcuPrefix
 
 
288
  */
289
  public function setApcuPrefix($apcuPrefix)
290
  {
@@ -305,14 +383,18 @@ class ClassLoader
305
  * Registers this instance as an autoloader.
306
  *
307
  * @param bool $prepend Whether to prepend the autoloader or not
 
 
308
  */
309
  public function register($prepend = false)
310
  {
311
  spl_autoload_register(array($this, 'loadClass'), true, $prepend);
312
 
313
  if (null === $this->vendorDir) {
314
- //no-op
315
- } elseif ($prepend) {
 
 
316
  self::$registeredLoaders = array($this->vendorDir => $this) + self::$registeredLoaders;
317
  } else {
318
  unset(self::$registeredLoaders[$this->vendorDir]);
@@ -322,6 +404,8 @@ class ClassLoader
322
 
323
  /**
324
  * Unregisters this instance as an autoloader.
 
 
325
  */
326
  public function unregister()
327
  {
@@ -336,7 +420,7 @@ class ClassLoader
336
  * Loads the given class or interface.
337
  *
338
  * @param string $class The name of the class
339
- * @return bool|null True if loaded, null otherwise
340
  */
341
  public function loadClass($class)
342
  {
@@ -345,6 +429,8 @@ class ClassLoader
345
 
346
  return true;
347
  }
 
 
348
  }
349
 
350
  /**
@@ -399,6 +485,11 @@ class ClassLoader
399
  return self::$registeredLoaders;
400
  }
401
 
 
 
 
 
 
402
  private function findFileWithExtension($class, $ext)
403
  {
404
  // PSR-4 lookup
@@ -470,6 +561,10 @@ class ClassLoader
470
  * Scope isolated include.
471
  *
472
  * Prevents access to $this/self from included files.
 
 
 
 
473
  */
474
  function includeFile($file)
475
  {
42
  */
43
  class ClassLoader
44
  {
45
+ /** @var ?string */
46
  private $vendorDir;
47
 
48
  // PSR-4
49
+ /**
50
+ * @var array[]
51
+ * @psalm-var array<string, array<string, int>>
52
+ */
53
  private $prefixLengthsPsr4 = array();
54
+ /**
55
+ * @var array[]
56
+ * @psalm-var array<string, array<int, string>>
57
+ */
58
  private $prefixDirsPsr4 = array();
59
+ /**
60
+ * @var array[]
61
+ * @psalm-var array<string, string>
62
+ */
63
  private $fallbackDirsPsr4 = array();
64
 
65
  // PSR-0
66
+ /**
67
+ * @var array[]
68
+ * @psalm-var array<string, array<string, string[]>>
69
+ */
70
  private $prefixesPsr0 = array();
71
+ /**
72
+ * @var array[]
73
+ * @psalm-var array<string, string>
74
+ */
75
  private $fallbackDirsPsr0 = array();
76
 
77
+ /** @var bool */
78
  private $useIncludePath = false;
79
+
80
+ /**
81
+ * @var string[]
82
+ * @psalm-var array<string, string>
83
+ */
84
  private $classMap = array();
85
+
86
+ /** @var bool */
87
  private $classMapAuthoritative = false;
88
+
89
+ /**
90
+ * @var bool[]
91
+ * @psalm-var array<string, bool>
92
+ */
93
  private $missingClasses = array();
94
+
95
+ /** @var ?string */
96
  private $apcuPrefix;
97
 
98
+ /**
99
+ * @var self[]
100
+ */
101
  private static $registeredLoaders = array();
102
 
103
+ /**
104
+ * @param ?string $vendorDir
105
+ */
106
  public function __construct($vendorDir = null)
107
  {
108
  $this->vendorDir = $vendorDir;
109
  }
110
 
111
+ /**
112
+ * @return string[]
113
+ */
114
  public function getPrefixes()
115
  {
116
  if (!empty($this->prefixesPsr0)) {
120
  return array();
121
  }
122
 
123
+ /**
124
+ * @return array[]
125
+ * @psalm-return array<string, array<int, string>>
126
+ */
127
  public function getPrefixesPsr4()
128
  {
129
  return $this->prefixDirsPsr4;
130
  }
131
 
132
+ /**
133
+ * @return array[]
134
+ * @psalm-return array<string, string>
135
+ */
136
  public function getFallbackDirs()
137
  {
138
  return $this->fallbackDirsPsr0;
139
  }
140
 
141
+ /**
142
+ * @return array[]
143
+ * @psalm-return array<string, string>
144
+ */
145
  public function getFallbackDirsPsr4()
146
  {
147
  return $this->fallbackDirsPsr4;
148
  }
149
 
150
+ /**
151
+ * @return string[] Array of classname => path
152
+ * @psalm-var array<string, string>
153
+ */
154
  public function getClassMap()
155
  {
156
  return $this->classMap;
157
  }
158
 
159
  /**
160
+ * @param string[] $classMap Class to filename map
161
+ * @psalm-param array<string, string> $classMap
162
+ *
163
+ * @return void
164
  */
165
  public function addClassMap(array $classMap)
166
  {
175
  * Registers a set of PSR-0 directories for a given prefix, either
176
  * appending or prepending to the ones previously set for this prefix.
177
  *
178
+ * @param string $prefix The prefix
179
+ * @param string[]|string $paths The PSR-0 root directories
180
+ * @param bool $prepend Whether to prepend the directories
181
+ *
182
+ * @return void
183
  */
184
  public function add($prefix, $paths, $prepend = false)
185
  {
222
  * Registers a set of PSR-4 directories for a given namespace, either
223
  * appending or prepending to the ones previously set for this namespace.
224
  *
225
+ * @param string $prefix The prefix/namespace, with trailing '\\'
226
+ * @param string[]|string $paths The PSR-4 base directories
227
+ * @param bool $prepend Whether to prepend the directories
228
  *
229
  * @throws \InvalidArgumentException
230
+ *
231
+ * @return void
232
  */
233
  public function addPsr4($prefix, $paths, $prepend = false)
234
  {
272
  * Registers a set of PSR-0 directories for a given prefix,
273
  * replacing any others previously set for this prefix.
274
  *
275
+ * @param string $prefix The prefix
276
+ * @param string[]|string $paths The PSR-0 base directories
277
+ *
278
+ * @return void
279
  */
280
  public function set($prefix, $paths)
281
  {
290
  * Registers a set of PSR-4 directories for a given namespace,
291
  * replacing any others previously set for this namespace.
292
  *
293
+ * @param string $prefix The prefix/namespace, with trailing '\\'
294
+ * @param string[]|string $paths The PSR-4 base directories
295
  *
296
  * @throws \InvalidArgumentException
297
+ *
298
+ * @return void
299
  */
300
  public function setPsr4($prefix, $paths)
301
  {
315
  * Turns on searching the include path for class files.
316
  *
317
  * @param bool $useIncludePath
318
+ *
319
+ * @return void
320
  */
321
  public function setUseIncludePath($useIncludePath)
322
  {
339
  * that have not been registered with the class map.
340
  *
341
  * @param bool $classMapAuthoritative
342
+ *
343
+ * @return void
344
  */
345
  public function setClassMapAuthoritative($classMapAuthoritative)
346
  {
361
  * APCu prefix to use to cache found/not-found classes, if the extension is enabled.
362
  *
363
  * @param string|null $apcuPrefix
364
+ *
365
+ * @return void
366
  */
367
  public function setApcuPrefix($apcuPrefix)
368
  {
383
  * Registers this instance as an autoloader.
384
  *
385
  * @param bool $prepend Whether to prepend the autoloader or not
386
+ *
387
+ * @return void
388
  */
389
  public function register($prepend = false)
390
  {
391
  spl_autoload_register(array($this, 'loadClass'), true, $prepend);
392
 
393
  if (null === $this->vendorDir) {
394
+ return;
395
+ }
396
+
397
+ if ($prepend) {
398
  self::$registeredLoaders = array($this->vendorDir => $this) + self::$registeredLoaders;
399
  } else {
400
  unset(self::$registeredLoaders[$this->vendorDir]);
404
 
405
  /**
406
  * Unregisters this instance as an autoloader.
407
+ *
408
+ * @return void
409
  */
410
  public function unregister()
411
  {
420
  * Loads the given class or interface.
421
  *
422
  * @param string $class The name of the class
423
+ * @return true|null True if loaded, null otherwise
424
  */
425
  public function loadClass($class)
426
  {
429
 
430
  return true;
431
  }
432
+
433
+ return null;
434
  }
435
 
436
  /**
485
  return self::$registeredLoaders;
486
  }
487
 
488
+ /**
489
+ * @param string $class
490
+ * @param string $ext
491
+ * @return string|false
492
+ */
493
  private function findFileWithExtension($class, $ext)
494
  {
495
  // PSR-4 lookup
561
  * Scope isolated include.
562
  *
563
  * Prevents access to $this/self from included files.
564
+ *
565
+ * @param string $file
566
+ * @return void
567
+ * @private
568
  */
569
  function includeFile($file)
570
  {
vendor/composer/InstalledVersions.php CHANGED
@@ -18,53 +18,27 @@ use Composer\Semver\VersionParser;
18
  /**
19
  * This class is copied in every Composer installed project and available to all
20
  *
21
- * To require it's presence, you can require `composer-runtime-api ^2.0`
 
 
22
  */
23
  class InstalledVersions
24
  {
25
- private static $installed = array (
26
- 'root' =>
27
- array (
28
- 'pretty_version' => '3.5.0',
29
- 'version' => '3.5.0.0',
30
- 'aliases' =>
31
- array (
32
- ),
33
- 'reference' => NULL,
34
- 'name' => 'imagely/nextgen-gallery',
35
- ),
36
- 'versions' =>
37
- array (
38
- 'ezyang/htmlpurifier' =>
39
- array (
40
- 'pretty_version' => 'v4.13.0',
41
- 'version' => '4.13.0.0',
42
- 'aliases' =>
43
- array (
44
- ),
45
- 'reference' => '08e27c97e4c6ed02f37c5b2b20488046c8d90d75',
46
- ),
47
- 'imagely/nextgen-gallery' =>
48
- array (
49
- 'pretty_version' => '3.5.0',
50
- 'version' => '3.5.0.0',
51
- 'aliases' =>
52
- array (
53
- ),
54
- 'reference' => NULL,
55
- ),
56
- 'imagely/pope-framework' =>
57
- array (
58
- 'pretty_version' => 'v0.17',
59
- 'version' => '0.17.0.0',
60
- 'aliases' =>
61
- array (
62
- ),
63
- 'reference' => '13da4d47779a91fbf07a68062e64974eb1427ef2',
64
- ),
65
- ),
66
- );
67
  private static $canGetVendors;
 
 
 
 
 
68
  private static $installedByVendor = array();
69
 
70
  /**
@@ -80,7 +54,6 @@ class InstalledVersions
80
  $packages[] = array_keys($installed['versions']);
81
  }
82
 
83
-
84
  if (1 === \count($packages)) {
85
  return $packages[0];
86
  }
@@ -88,19 +61,42 @@ class InstalledVersions
88
  return array_keys(array_flip(\call_user_func_array('array_merge', $packages)));
89
  }
90
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
91
  /**
92
  * Checks whether the given package is installed
93
  *
94
  * This also returns true if the package name is provided or replaced by another package
95
  *
96
  * @param string $packageName
 
97
  * @return bool
98
  */
99
- public static function isInstalled($packageName)
100
  {
101
  foreach (self::getInstalled() as $installed) {
102
  if (isset($installed['versions'][$packageName])) {
103
- return true;
104
  }
105
  }
106
 
@@ -114,10 +110,9 @@ class InstalledVersions
114
  *
115
  * Composer\InstalledVersions::satisfies(new VersionParser, 'foo/bar', '^2.3')
116
  *
117
- * @param VersionParser $parser Install composer/semver to have access to this class and functionality
118
- * @param string $packageName
119
- * @param string|null $constraint A version constraint to check for, if you pass one you have to make sure composer/semver is required by your package
120
- *
121
  * @return bool
122
  */
123
  public static function satisfies(VersionParser $parser, $packageName, $constraint)
@@ -227,9 +222,26 @@ class InstalledVersions
227
  throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
228
  }
229
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
230
  /**
231
  * @return array
232
- * @psalm-return array{name: string, version: string, reference: string, pretty_version: string, aliases: string[]}
233
  */
234
  public static function getRootPackage()
235
  {
@@ -241,14 +253,38 @@ class InstalledVersions
241
  /**
242
  * Returns the raw installed.php data for custom implementations
243
  *
 
244
  * @return array[]
245
- * @psalm-return array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[]}, versions: list<string, array{pretty_version: ?string, version: ?string, aliases: ?string[], reference: ?string, replaced: ?string[], provided: ?string[]}>}
246
  */
247
  public static function getRawData()
248
  {
 
 
 
 
 
 
 
 
 
 
 
 
249
  return self::$installed;
250
  }
251
 
 
 
 
 
 
 
 
 
 
 
 
252
  /**
253
  * Lets you reload the static array from another file
254
  *
@@ -265,7 +301,7 @@ class InstalledVersions
265
  * @param array[] $data A vendor/composer/installed.php data set
266
  * @return void
267
  *
268
- * @psalm-param array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[]}, versions: list<string, array{pretty_version: ?string, version: ?string, aliases: ?string[], reference: ?string, replaced: ?string[], provided: ?string[]}>} $data
269
  */
270
  public static function reload($data)
271
  {
@@ -275,6 +311,7 @@ class InstalledVersions
275
 
276
  /**
277
  * @return array[]
 
278
  */
279
  private static function getInstalled()
280
  {
@@ -285,16 +322,27 @@ class InstalledVersions
285
  $installed = array();
286
 
287
  if (self::$canGetVendors) {
288
- // @phpstan-ignore-next-line
289
  foreach (ClassLoader::getRegisteredLoaders() as $vendorDir => $loader) {
290
  if (isset(self::$installedByVendor[$vendorDir])) {
291
  $installed[] = self::$installedByVendor[$vendorDir];
292
  } elseif (is_file($vendorDir.'/composer/installed.php')) {
293
  $installed[] = self::$installedByVendor[$vendorDir] = require $vendorDir.'/composer/installed.php';
 
 
 
294
  }
295
  }
296
  }
297
 
 
 
 
 
 
 
 
 
 
298
  $installed[] = self::$installed;
299
 
300
  return $installed;
18
  /**
19
  * This class is copied in every Composer installed project and available to all
20
  *
21
+ * See also https://getcomposer.org/doc/07-runtime.md#installed-versions
22
+ *
23
+ * To require its presence, you can require `composer-runtime-api ^2.0`
24
  */
25
  class InstalledVersions
26
  {
27
+ /**
28
+ * @var mixed[]|null
29
+ * @psalm-var array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}|array{}|null
30
+ */
31
+ private static $installed;
32
+
33
+ /**
34
+ * @var bool|null
35
+ */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
36
  private static $canGetVendors;
37
+
38
+ /**
39
+ * @var array[]
40
+ * @psalm-var array<string, array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}>
41
+ */
42
  private static $installedByVendor = array();
43
 
44
  /**
54
  $packages[] = array_keys($installed['versions']);
55
  }
56
 
 
57
  if (1 === \count($packages)) {
58
  return $packages[0];
59
  }
61
  return array_keys(array_flip(\call_user_func_array('array_merge', $packages)));
62
  }
63
 
64
+ /**
65
+ * Returns a list of all package names with a specific type e.g. 'library'
66
+ *
67
+ * @param string $type
68
+ * @return string[]
69
+ * @psalm-return list<string>
70
+ */
71
+ public static function getInstalledPackagesByType($type)
72
+ {
73
+ $packagesByType = array();
74
+
75
+ foreach (self::getInstalled() as $installed) {
76
+ foreach ($installed['versions'] as $name => $package) {
77
+ if (isset($package['type']) && $package['type'] === $type) {
78
+ $packagesByType[] = $name;
79
+ }
80
+ }
81
+ }
82
+
83
+ return $packagesByType;
84
+ }
85
+
86
  /**
87
  * Checks whether the given package is installed
88
  *
89
  * This also returns true if the package name is provided or replaced by another package
90
  *
91
  * @param string $packageName
92
+ * @param bool $includeDevRequirements
93
  * @return bool
94
  */
95
+ public static function isInstalled($packageName, $includeDevRequirements = true)
96
  {
97
  foreach (self::getInstalled() as $installed) {
98
  if (isset($installed['versions'][$packageName])) {
99
+ return $includeDevRequirements || empty($installed['versions'][$packageName]['dev_requirement']);
100
  }
101
  }
102
 
110
  *
111
  * Composer\InstalledVersions::satisfies(new VersionParser, 'foo/bar', '^2.3')
112
  *
113
+ * @param VersionParser $parser Install composer/semver to have access to this class and functionality
114
+ * @param string $packageName
115
+ * @param string|null $constraint A version constraint to check for, if you pass one you have to make sure composer/semver is required by your package
 
116
  * @return bool
117
  */
118
  public static function satisfies(VersionParser $parser, $packageName, $constraint)
222
  throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
223
  }
224
 
225
+ /**
226
+ * @param string $packageName
227
+ * @return string|null If the package is being replaced or provided but is not really installed, null will be returned as install path. Packages of type metapackages also have a null install path.
228
+ */
229
+ public static function getInstallPath($packageName)
230
+ {
231
+ foreach (self::getInstalled() as $installed) {
232
+ if (!isset($installed['versions'][$packageName])) {
233
+ continue;
234
+ }
235
+
236
+ return isset($installed['versions'][$packageName]['install_path']) ? $installed['versions'][$packageName]['install_path'] : null;
237
+ }
238
+
239
+ throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
240
+ }
241
+
242
  /**
243
  * @return array
244
+ * @psalm-return array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}
245
  */
246
  public static function getRootPackage()
247
  {
253
  /**
254
  * Returns the raw installed.php data for custom implementations
255
  *
256
+ * @deprecated Use getAllRawData() instead which returns all datasets for all autoloaders present in the process. getRawData only returns the first dataset loaded, which may not be what you expect.
257
  * @return array[]
258
+ * @psalm-return array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}
259
  */
260
  public static function getRawData()
261
  {
262
+ @trigger_error('getRawData only returns the first dataset loaded, which may not be what you expect. Use getAllRawData() instead which returns all datasets for all autoloaders present in the process.', E_USER_DEPRECATED);
263
+
264
+ if (null === self::$installed) {
265
+ // only require the installed.php file if this file is loaded from its dumped location,
266
+ // and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937
267
+ if (substr(__DIR__, -8, 1) !== 'C') {
268
+ self::$installed = include __DIR__ . '/installed.php';
269
+ } else {
270
+ self::$installed = array();
271
+ }
272
+ }
273
+
274
  return self::$installed;
275
  }
276
 
277
+ /**
278
+ * Returns the raw data of all installed.php which are currently loaded for custom implementations
279
+ *
280
+ * @return array[]
281
+ * @psalm-return list<array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}>
282
+ */
283
+ public static function getAllRawData()
284
+ {
285
+ return self::getInstalled();
286
+ }
287
+
288
  /**
289
  * Lets you reload the static array from another file
290
  *
301
  * @param array[] $data A vendor/composer/installed.php data set
302
  * @return void
303
  *
304
+ * @psalm-param array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>} $data
305
  */
306
  public static function reload($data)
307
  {
311
 
312
  /**
313
  * @return array[]
314
+ * @psalm-return list<array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}>
315
  */
316
  private static function getInstalled()
317
  {
322
  $installed = array();
323
 
324
  if (self::$canGetVendors) {
 
325
  foreach (ClassLoader::getRegisteredLoaders() as $vendorDir => $loader) {
326
  if (isset(self::$installedByVendor[$vendorDir])) {
327
  $installed[] = self::$installedByVendor[$vendorDir];
328
  } elseif (is_file($vendorDir.'/composer/installed.php')) {
329
  $installed[] = self::$installedByVendor[$vendorDir] = require $vendorDir.'/composer/installed.php';
330
+ if (null === self::$installed && strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) {
331
+ self::$installed = $installed[count($installed) - 1];
332
+ }
333
  }
334
  }
335
  }
336
 
337
+ if (null === self::$installed) {
338
+ // only require the installed.php file if this file is loaded from its dumped location,
339
+ // and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937
340
+ if (substr(__DIR__, -8, 1) !== 'C') {
341
+ self::$installed = require __DIR__ . '/installed.php';
342
+ } else {
343
+ self::$installed = array();
344
+ }
345
+ }
346
  $installed[] = self::$installed;
347
 
348
  return $installed;
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInitdf834cf03fd70a9650c3e4bc171ad29a
6
  {
7
  private static $loader;
8
 
@@ -24,15 +24,15 @@ class ComposerAutoloaderInitdf834cf03fd70a9650c3e4bc171ad29a
24
 
25
  require __DIR__ . '/platform_check.php';
26
 
27
- spl_autoload_register(array('ComposerAutoloaderInitdf834cf03fd70a9650c3e4bc171ad29a', 'loadClassLoader'), true, true);
28
  self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
29
- spl_autoload_unregister(array('ComposerAutoloaderInitdf834cf03fd70a9650c3e4bc171ad29a', 'loadClassLoader'));
30
 
31
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
32
  if ($useStaticLoader) {
33
  require __DIR__ . '/autoload_static.php';
34
 
35
- call_user_func(\Composer\Autoload\ComposerStaticInitdf834cf03fd70a9650c3e4bc171ad29a::getInitializer($loader));
36
  } else {
37
  $map = require __DIR__ . '/autoload_namespaces.php';
38
  foreach ($map as $namespace => $path) {
@@ -53,19 +53,19 @@ class ComposerAutoloaderInitdf834cf03fd70a9650c3e4bc171ad29a
53
  $loader->register(true);
54
 
55
  if ($useStaticLoader) {
56
- $includeFiles = Composer\Autoload\ComposerStaticInitdf834cf03fd70a9650c3e4bc171ad29a::$files;
57
  } else {
58
  $includeFiles = require __DIR__ . '/autoload_files.php';
59
  }
60
  foreach ($includeFiles as $fileIdentifier => $file) {
61
- composerRequiredf834cf03fd70a9650c3e4bc171ad29a($fileIdentifier, $file);
62
  }
63
 
64
  return $loader;
65
  }
66
  }
67
 
68
- function composerRequiredf834cf03fd70a9650c3e4bc171ad29a($fileIdentifier, $file)
69
  {
70
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
71
  require $file;
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInit212c2ca75876deef39604c1b85445473
6
  {
7
  private static $loader;
8
 
24
 
25
  require __DIR__ . '/platform_check.php';
26
 
27
+ spl_autoload_register(array('ComposerAutoloaderInit212c2ca75876deef39604c1b85445473', 'loadClassLoader'), true, true);
28
  self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
29
+ spl_autoload_unregister(array('ComposerAutoloaderInit212c2ca75876deef39604c1b85445473', 'loadClassLoader'));
30
 
31
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
32
  if ($useStaticLoader) {
33
  require __DIR__ . '/autoload_static.php';
34
 
35
+ call_user_func(\Composer\Autoload\ComposerStaticInit212c2ca75876deef39604c1b85445473::getInitializer($loader));
36
  } else {
37
  $map = require __DIR__ . '/autoload_namespaces.php';
38
  foreach ($map as $namespace => $path) {
53
  $loader->register(true);
54
 
55
  if ($useStaticLoader) {
56
+ $includeFiles = Composer\Autoload\ComposerStaticInit212c2ca75876deef39604c1b85445473::$files;
57
  } else {
58
  $includeFiles = require __DIR__ . '/autoload_files.php';
59
  }
60
  foreach ($includeFiles as $fileIdentifier => $file) {
61
+ composerRequire212c2ca75876deef39604c1b85445473($fileIdentifier, $file);
62
  }
63
 
64
  return $loader;
65
  }
66
  }
67
 
68
+ function composerRequire212c2ca75876deef39604c1b85445473($fileIdentifier, $file)
69
  {
70
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
71
  require $file;
vendor/composer/autoload_static.php CHANGED
@@ -4,7 +4,7 @@
4
 
5
  namespace Composer\Autoload;
6
 
7
- class ComposerStaticInitdf834cf03fd70a9650c3e4bc171ad29a
8
  {
9
  public static $files = array (
10
  '2cffec82183ee1cea088009cef9a6fc3' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier.composer.php',
@@ -28,8 +28,8 @@ class ComposerStaticInitdf834cf03fd70a9650c3e4bc171ad29a
28
  public static function getInitializer(ClassLoader $loader)
29
  {
30
  return \Closure::bind(function () use ($loader) {
31
- $loader->prefixesPsr0 = ComposerStaticInitdf834cf03fd70a9650c3e4bc171ad29a::$prefixesPsr0;
32
- $loader->classMap = ComposerStaticInitdf834cf03fd70a9650c3e4bc171ad29a::$classMap;
33
 
34
  }, null, ClassLoader::class);
35
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInit212c2ca75876deef39604c1b85445473
8
  {
9
  public static $files = array (
10
  '2cffec82183ee1cea088009cef9a6fc3' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier.composer.php',
28
  public static function getInitializer(ClassLoader $loader)
29
  {
30
  return \Closure::bind(function () use ($loader) {
31
+ $loader->prefixesPsr0 = ComposerStaticInit212c2ca75876deef39604c1b85445473::$prefixesPsr0;
32
+ $loader->classMap = ComposerStaticInit212c2ca75876deef39604c1b85445473::$classMap;
33
 
34
  }, null, ClassLoader::class);
35
  }
vendor/composer/installed.php CHANGED
@@ -1,42 +1,41 @@
1
- <?php return array (
2
- 'root' =>
3
- array (
4
- 'pretty_version' => '3.5.0',
5
- 'version' => '3.5.0.0',
6
- 'aliases' =>
7
- array (
 
 
 
8
  ),
9
- 'reference' => NULL,
10
- 'name' => 'imagely/nextgen-gallery',
11
- ),
12
- 'versions' =>
13
- array (
14
- 'ezyang/htmlpurifier' =>
15
- array (
16
- 'pretty_version' => 'v4.13.0',
17
- 'version' => '4.13.0.0',
18
- 'aliases' =>
19
- array (
20
- ),
21
- 'reference' => '08e27c97e4c6ed02f37c5b2b20488046c8d90d75',
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
22
  ),
23
- 'imagely/nextgen-gallery' =>
24
- array (
25
- 'pretty_version' => '3.5.0',
26
- 'version' => '3.5.0.0',
27
- 'aliases' =>
28
- array (
29
- ),
30
- 'reference' => NULL,
31
- ),
32
- 'imagely/pope-framework' =>
33
- array (
34
- 'pretty_version' => 'v0.17',
35
- 'version' => '0.17.0.0',
36
- 'aliases' =>
37
- array (
38
- ),
39
- 'reference' => '13da4d47779a91fbf07a68062e64974eb1427ef2',
40
- ),
41
- ),
42
  );
1
+ <?php return array(
2
+ 'root' => array(
3
+ 'pretty_version' => '3.5.0',
4
+ 'version' => '3.5.0.0',
5
+ 'type' => 'wordpress-plugin',
6
+ 'install_path' => __DIR__ . '/../../',
7
+ 'aliases' => array(),
8
+ 'reference' => NULL,
9
+ 'name' => 'imagely/nextgen-gallery',
10
+ 'dev' => false,
11
  ),
12
+ 'versions' => array(
13
+ 'ezyang/htmlpurifier' => array(
14
+ 'pretty_version' => 'v4.13.0',
15
+ 'version' => '4.13.0.0',
16
+ 'type' => 'library',
17
+ 'install_path' => __DIR__ . '/../ezyang/htmlpurifier',
18
+ 'aliases' => array(),
19
+ 'reference' => '08e27c97e4c6ed02f37c5b2b20488046c8d90d75',
20
+ 'dev_requirement' => false,
21
+ ),
22
+ 'imagely/nextgen-gallery' => array(
23
+ 'pretty_version' => '3.5.0',
24
+ 'version' => '3.5.0.0',
25
+ 'type' => 'wordpress-plugin',
26
+ 'install_path' => __DIR__ . '/../../',
27
+ 'aliases' => array(),
28
+ 'reference' => NULL,
29
+ 'dev_requirement' => false,
30
+ ),
31
+ 'imagely/pope-framework' => array(
32
+ 'pretty_version' => 'v0.17',
33
+ 'version' => '0.17.0.0',
34
+ 'type' => 'library',
35
+ 'install_path' => __DIR__ . '/../imagely/pope-framework',
36
+ 'aliases' => array(),
37
+ 'reference' => '13da4d47779a91fbf07a68062e64974eb1427ef2',
38
+ 'dev_requirement' => false,
39
+ ),
40
  ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
41
  );