Full Site Editing - Version 1.6

Version Description

  • Remove the "Edit as HTML" options for the inner blocks of the Premium Content Block.
  • Remove plugin that notified users of the new location of Block Patterns.
  • Support for any UTF-8 character in the Premium Content block.
  • Fixed availability of Premium Content subscription email service.
  • Premium Content block styles adjusted to only load when block is used.
  • Hide Gutenberg's inserter (in favor of ours).
  • Use require (rather than require_once) for asset files.
  • Flag Premium Content blocks as paid to make clear they require a paid plan.
  • Onboarding: Fix the dimensions of the preview image.
Download this release

Release Info

Developer Bernhard Reiter
Plugin Icon wp plugin Full Site Editing
Version 1.6
Comparing to
See all releases

Code changes from version 1.5 to 1.6

Files changed (46) hide show
  1. block-inserter-modifications/index.php +2 -2
  2. common/data-stores/domain-suggestions.ts +6 -0
  3. common/data-stores/index.ts +4 -0
  4. common/dist/common.asset.php +1 -1
  5. common/dist/common.js +1 -1
  6. common/dist/data-stores.asset.php +1 -0
  7. common/dist/data-stores.js +1 -0
  8. common/index.js +0 -60
  9. common/index.php +21 -3
  10. dotcom-fse/dist/dotcom-fse.asset.php +1 -1
  11. dotcom-fse/dist/dotcom-fse.css +1 -1
  12. dotcom-fse/dist/dotcom-fse.rtl.css +1 -1
  13. dotcom-fse/editor/style.scss +4 -0
  14. event-countdown-block/index.php +1 -1
  15. full-site-editing-plugin.php +12 -2
  16. global-styles/class-global-styles.php +1 -1
  17. jetpack-timeline/index.php +1 -1
  18. premium-content/blocks/logged-out-view/index.js +1 -0
  19. premium-content/blocks/subscriber-view/index.js +1 -0
  20. premium-content/dist/premium-content.asset.php +1 -1
  21. premium-content/dist/premium-content.js +4 -4
  22. premium-content/editor.css +32 -0
  23. premium-content/index.js +44 -3
  24. premium-content/premium-content-dom.php +2 -0
  25. premium-content/premium-content.php +1 -1
  26. premium-content/style.css +0 -11
  27. premium-content/subscription-service/class-wpcom-offline-subscription-service.php +7 -7
  28. premium-content/view.js +2 -2
  29. readme.txt +13 -2
  30. wpcom-block-editor-nav-sidebar/class-wpcom-block-editor-nav-sidebar.php +71 -0
  31. wpcom-block-editor-nav-sidebar/dist/wpcom-block-editor-nav-sidebar.asset.php +1 -0
  32. wpcom-block-editor-nav-sidebar/dist/wpcom-block-editor-nav-sidebar.css +1 -0
  33. wpcom-block-editor-nav-sidebar/dist/wpcom-block-editor-nav-sidebar.js +6 -0
  34. wpcom-block-editor-nav-sidebar/dist/wpcom-block-editor-nav-sidebar.rtl.css +1 -0
  35. wpcom-block-editor-nav-sidebar/index.ts +5 -0
  36. wpcom-block-editor-nav-sidebar/src/actions.ts +10 -0
  37. wpcom-block-editor-nav-sidebar/src/attach-sidebar.tsx +88 -0
  38. wpcom-block-editor-nav-sidebar/src/constants.ts +1 -0
  39. wpcom-block-editor-nav-sidebar/src/store.ts +42 -0
  40. wpcom-block-editor-nav-sidebar/src/style.scss +133 -0
  41. wpcom-block-editor-nav-sidebar/src/wpcom-block-editor-nav-sidebar.tsx +145 -0
  42. wpcom-block-editor-nux/dist/images/preview-a2ab6dbfd49f58a76c13c9dab8b09e0e.svg +16 -0
  43. wpcom-block-editor-nux/dist/images/preview-e6daa84607b30e4c63a60423a8989e1a.svg +0 -16
  44. wpcom-block-editor-nux/dist/wpcom-block-editor-nux.asset.php +1 -1
  45. wpcom-block-editor-nux/dist/wpcom-block-editor-nux.js +1 -1
  46. wpcom-block-editor-nux/src/images/preview.svg +15 -15
block-inserter-modifications/index.php CHANGED
@@ -28,7 +28,7 @@ function enqueue_script( $filename, $in_footer = false ) {
28
  );
29
  }
30
 
31
- $asset = require_once $asset_path;
32
 
33
  wp_enqueue_script(
34
  $filename,
@@ -42,7 +42,7 @@ function enqueue_script( $filename, $in_footer = false ) {
42
  /**
43
  * Enqueues a submodule style by its filename.
44
  *
45
- * @param string $filename Name of the style file w/o extension.
46
  */
47
  function enqueue_style( $filename ) {
48
  $style_file = is_rtl()
28
  );
29
  }
30
 
31
+ $asset = require $asset_path;
32
 
33
  wp_enqueue_script(
34
  $filename,
42
  /**
43
  * Enqueues a submodule style by its filename.
44
  *
45
+ * @param string $filename Name of the style file w/o extension.
46
  */
47
  function enqueue_style( $filename ) {
48
  $style_file = is_rtl()
common/data-stores/domain-suggestions.ts ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
1
+ /**
2
+ * External dependencies
3
+ */
4
+ import { DomainSuggestions } from '@automattic/data-stores';
5
+
6
+ DomainSuggestions.register( { vendor: 'variation2_front' } );
common/data-stores/index.ts ADDED
@@ -0,0 +1,4 @@
 
 
 
 
1
+ /**
2
+ * Internal dependencies
3
+ */
4
+ import './domain-suggestions';
common/dist/common.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('wp-block-editor', 'wp-components', 'wp-edit-post', 'wp-element', 'wp-i18n', 'wp-plugins', 'wp-polyfill', 'wp-primitives'), 'version' => 'c7bfbf66b79f17051c66d28679585bf0');
1
+ <?php return array('dependencies' => array('wp-polyfill'), 'version' => '6165265cad8b717d6023a21a62a02799');
common/dist/common.js CHANGED
@@ -1 +1 @@
1
- !function(e,t){for(var n in t)e[n]=t[n]}(window,function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=8)}([function(e,t){!function(){e.exports=this.wp.element}()},function(e,t){!function(){e.exports=this.wp.primitives}()},function(e,t){!function(){e.exports=this.wp.i18n}()},function(e,t){!function(){e.exports=this.wp.editPost}()},function(e,t){!function(){e.exports=this.wp.components}()},function(e,t){!function(){e.exports=this.wp.plugins}()},function(e,t){!function(){e.exports=this.wp.blockEditor}()},function(e,t,n){},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n(3),i=n(1),c=Object(r.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(r.createElement)(i.Path,{d:"M2 2h5v11H2V2zm6 0h5v5H8V2zm6 0h4v16h-4V2zM8 8h5v5H8V8zm-6 6h11v4H2v-4z"})),l=Object(r.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(i.Path,{d:"M18 11.2h-5.2V6h-1.6v5.2H6v1.6h5.2V18h1.6v-5.2H18z"})),u=n(2),a=n(5),s=n(4),f=n(6);n(7);void 0!==f.__experimentalLibrary&&Object(a.registerPlugin)("block-patterns-moved",{render:function(){return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(o.PluginSidebarMoreMenuItem,{icon:c,target:"block-patterns-moved"},Object(u.__)("Block Patterns","full-site-editing")),Object(r.createElement)(o.PluginSidebar,{icon:c,name:"block-patterns-moved",title:Object(u.__)("Block Patterns","full-site-editing"),className:"common__block-patterns-moved"},Object(r.createElement)(s.PanelBody,null,Object(r.createElement)("h2",null,Object(u.__)("Block Patterns","full-site-editing")),Object(r.createElement)("p",null,Object(u.__)('Block Patterns have moved. You can now find them in the block inserter under the "patterns" tab.',"full-site-editing")),Object(r.createElement)("p",null,Object(u.__)("The block inserter can be found in the top-left corner of your screen by selecting the following icon:","full-site-editing")),Object(r.createElement)(s.Button,{isPrimary:!0,icon:l,onClick:function(){var e=document.querySelector(".edit-post-header-toolbar__inserter-toggle");e&&e.click(),setTimeout((function(){var e=document.querySelector('.block-editor-inserter__tabs [id$="patterns"]');e&&e.click()}),300)}}))))}})}]));
1
+ !function(e,t){for(var n in t)e[n]=t[n]}(window,function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=9)}({17:function(e,t,n){},9:function(e,t,n){"use strict";n.r(t);n(17)}}));
common/dist/data-stores.asset.php ADDED
@@ -0,0 +1 @@
 
1
+ <?php return array('dependencies' => array('wp-data', 'wp-polyfill'), 'version' => 'bbe8c147a2096b1d2c69878492561286');
common/dist/data-stores.js ADDED
@@ -0,0 +1 @@
 
1
+ !function(e,t){for(var r in t)e[r]=t[r]}(window,function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=30)}([function(e,t){!function(){e.exports=this.wp.data}()},function(e,t){var r,n=window.ProgressEvent,o=!!n;try{r=new n("loaded"),o="loaded"===r.type,r=null}catch(i){o=!1}e.exports=o?n:"function"==typeof document.createEvent?function(e,t){var r=document.createEvent("Event");return r.initEvent(e,!1,!1),t?(r.lengthComputable=Boolean(t.lengthComputable),r.loaded=Number(t.loaded)||0,r.total=Number(t.total)||0):(r.lengthComputable=!1,r.loaded=r.total=0),r}:function(e,t){var r=document.createEventObject();return r.type=e,t?(r.lengthComputable=Boolean(t.lengthComputable),r.loaded=Number(t.loaded)||0,r.total=Number(t.total)||0):(r.lengthComputable=!1,r.loaded=r.total=0),r}},function(e,t,r){"use strict";var n=Object.prototype.hasOwnProperty,o=Array.isArray,i=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),a=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},n=0;n<e.length;++n)void 0!==e[n]&&(r[n]=e[n]);return r};e.exports={arrayToObject:a,assign:function(e,t){return Object.keys(t).reduce((function(e,r){return e[r]=t[r],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],n=0;n<t.length;++n)for(var i=t[n],a=i.obj[i.prop],s=Object.keys(a),c=0;c<s.length;++c){var u=s[c],l=a[u];"object"==typeof l&&null!==l&&-1===r.indexOf(l)&&(t.push({obj:a,prop:u}),r.push(l))}return function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(o(r)){for(var n=[],i=0;i<r.length;++i)void 0!==r[i]&&n.push(r[i]);t.obj[t.prop]=n}}}(t),e},decode:function(e,t,r){var n=e.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(o){return n}},encode:function(e,t,r){if(0===e.length)return e;var n=e;if("symbol"==typeof e?n=Symbol.prototype.toString.call(e):"string"!=typeof e&&(n=String(e)),"iso-8859-1"===r)return escape(n).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var o="",a=0;a<n.length;++a){var s=n.charCodeAt(a);45===s||46===s||95===s||126===s||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122?o+=n.charAt(a):s<128?o+=i[s]:s<2048?o+=i[192|s>>6]+i[128|63&s]:s<55296||s>=57344?o+=i[224|s>>12]+i[128|s>>6&63]+i[128|63&s]:(a+=1,s=65536+((1023&s)<<10|1023&n.charCodeAt(a)),o+=i[240|s>>18]+i[128|s>>12&63]+i[128|s>>6&63]+i[128|63&s])}return o},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},merge:function e(t,r,i){if(!r)return t;if("object"!=typeof r){if(o(t))t.push(r);else{if(!t||"object"!=typeof t)return[t,r];(i&&(i.plainObjects||i.allowPrototypes)||!n.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(r);var s=t;return o(t)&&!o(r)&&(s=a(t,i)),o(t)&&o(r)?(r.forEach((function(r,o){if(n.call(t,o)){var a=t[o];a&&"object"==typeof a&&r&&"object"==typeof r?t[o]=e(a,r,i):t.push(r)}else t[o]=r})),t):Object.keys(r).reduce((function(t,o){var a=r[o];return n.call(t,o)?t[o]=e(t[o],a,i):t[o]=a,t}),s)}}},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}},function(e,t,r){"use strict";var n=String.prototype.replace,o=/%20/g,i=r(2),a={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports=i.assign({default:a.RFC3986,formatters:{RFC1738:function(e){return n.call(e,o,"+")},RFC3986:function(e){return String(e)}}},a)},function(e,t,r){var n=r(18),o=r(20);function i(e,t){if(t)if("number"==typeof t)a(e,t);else{t.status_code&&a(e,t.status_code),t.error&&(e.name=c(t.error)),t.error_description&&(e.message=t.error_description);var r=t.errors;if(r)i(e,r.length?r[0]:r);for(var n in t)e[n]=t[n];e.status&&(t.method||t.path)&&s(e)}}function a(e,t){e.name=c(o[t]),e.status=e.statusCode=t,s(e)}function s(e){var t=e.status,r=e.method,n=e.path,o=t+" status code",i=r||n;i&&(o+=' for "'),r&&(o+=r),i&&(o+=" "),n&&(o+=n),i&&(o+='"'),e.message=o}function c(e){return n(String(e).replace(/error$/i,""),"error")}e.exports=function e(){for(var t=new Error,r=0;r<arguments.length;r++)i(t,arguments[r]);"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(t,e);return t}},function(e,t,r){t.log=function(){var e;return"object"==typeof console&&console.log&&(e=console).log.apply(e,arguments)},t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;var r="color: "+this.color;t.splice(1,0,r,"color: inherit");var n=0,o=0;t[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(n++,"%c"===e&&(o=n))})),t.splice(o,0,r)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(r){}},t.load=function(){var e;try{e=t.storage.getItem("debug")}catch(r){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],e.exports=r(21)(t),e.exports.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}},function(e,t,r){"use strict";e.exports=function(e,t){t||(t={}),"function"==typeof t&&(t={cmp:t});var r,n="boolean"==typeof t.cycles&&t.cycles,o=t.cmp&&(r=t.cmp,function(e){return function(t,n){var o={key:t,value:e[t]},i={key:n,value:e[n]};return r(o,i)}}),i=[];return function e(t){if(t&&t.toJSON&&"function"==typeof t.toJSON&&(t=t.toJSON()),void 0!==t){if("number"==typeof t)return isFinite(t)?""+t:"null";if("object"!=typeof t)return JSON.stringify(t);var r,a;if(Array.isArray(t)){for(a="[",r=0;r<t.length;r++)r&&(a+=","),a+=e(t[r])||"null";return a+"]"}if(null===t)return"null";if(-1!==i.indexOf(t)){if(n)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var s=i.push(t)-1,c=Object.keys(t).sort(o&&o(t));for(a="",r=0;r<c.length;r++){var u=c[r],l=e(t[u]);l&&(a&&(a+=","),a+=JSON.stringify(u)+":"+l)}return i.splice(s,1),"{"+a+"}"}}(e)}},function(e,t,r){"use strict";var n=r(28),o=r(29),i=r(4);e.exports={formats:i,parse:o,stringify:n}},,,,,,,,,,function(e,t,r){"use strict";var n=r(19);e.exports=function(){var e=n.apply(n,arguments);return e.charAt(0).toUpperCase()+e.slice(1)}},function(e,t,r){"use strict";e.exports=function(){var e=[].map.call(arguments,(function(e){return e.trim()})).filter((function(e){return e.length})).join("-");return e.length?1!==e.length&&/[_.\- ]+/.test(e)?e.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,(function(e,t){return t.toUpperCase()})):e[0]===e[0].toLowerCase()&&e.slice(1)!==e.slice(1).toLowerCase()?e:e.toLowerCase():""}},function(e,t){e.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},function(e,t,r){var n=r(22);e.exports=function(e){function t(e){for(var t=0,r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r),t|=0;return o.colors[Math.abs(t)%o.colors.length]}function o(e){var r;function n(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];if(n.enabled){var a=n,s=Number(new Date),c=s-(r||s);a.diff=c,a.prev=r,a.curr=s,r=s,t[0]=o.coerce(t[0]),"string"!=typeof t[0]&&t.unshift("%O");var u=0;t[0]=t[0].replace(/%([a-zA-Z%])/g,(function(e,r){if("%%"===e)return e;u++;var n=o.formatters[r];if("function"==typeof n){var i=t[u];e=n.call(a,i),t.splice(u,1),u--}return e})),o.formatArgs.call(a,t);var l=a.log||o.log;l.apply(a,t)}}return n.namespace=e,n.enabled=o.enabled(e),n.useColors=o.useColors(),n.color=t(e),n.destroy=i,n.extend=a,"function"==typeof o.init&&o.init(n),o.instances.push(n),n}function i(){var e=o.instances.indexOf(this);return-1!==e&&(o.instances.splice(e,1),!0)}function a(e,t){var r=o(this.namespace+(void 0===t?":":t)+e);return r.log=this.log,r}function s(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return o.debug=o,o.default=o,o.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},o.disable=function(){var e=[].concat(n(o.names.map(s)),n(o.skips.map(s).map((function(e){return"-"+e})))).join(",");return o.enable(""),e},o.enable=function(e){var t;o.save(e),o.names=[],o.skips=[];var r=("string"==typeof e?e:"").split(/[\s,]+/),n=r.length;for(t=0;t<n;t++)r[t]&&("-"===(e=r[t].replace(/\*/g,".*?"))[0]?o.skips.push(new RegExp("^"+e.substr(1)+"$")):o.names.push(new RegExp("^"+e+"$")));for(t=0;t<o.instances.length;t++){var i=o.instances[t];i.enabled=o.enabled(i.namespace)}},o.enabled=function(e){if("*"===e[e.length-1])return!0;var t,r;for(t=0,r=o.skips.length;t<r;t++)if(o.skips[t].test(e))return!1;for(t=0,r=o.names.length;t<r;t++)if(o.names[t].test(e))return!0;return!1},o.humanize=r(27),Object.keys(e).forEach((function(t){o[t]=e[t]})),o.instances=[],o.names=[],o.skips=[],o.formatters={},o.selectColor=t,o.enable(o.load()),o}},function(e,t,r){var n=r(23),o=r(24),i=r(25),a=r(26);e.exports=function(e){return n(e)||o(e)||i(e)||a()}},function(e,t,r){var n=r(3);e.exports=function(e){if(Array.isArray(e))return n(e)}},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},function(e,t,r){var n=r(3);e.exports=function(e,t){if(e){if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t){var r=1e3,n=6e4,o=60*n,i=24*o;function a(e,t,r,n){var o=t>=1.5*r;return Math.round(e/r)+" "+n+(o?"s":"")}e.exports=function(e,t){t=t||{};var s=typeof e;if("string"===s&&e.length>0)return function(e){if((e=String(e)).length>100)return;var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!t)return;var a=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*a;case"weeks":case"week":case"w":return 6048e5*a;case"days":case"day":case"d":return a*i;case"hours":case"hour":case"hrs":case"hr":case"h":return a*o;case"minutes":case"minute":case"mins":case"min":case"m":return a*n;case"seconds":case"second":case"secs":case"sec":case"s":return a*r;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return}}(e);if("number"===s&&isFinite(e))return t.long?function(e){var t=Math.abs(e);if(t>=i)return a(e,t,i,"day");if(t>=o)return a(e,t,o,"hour");if(t>=n)return a(e,t,n,"minute");if(t>=r)return a(e,t,r,"second");return e+" ms"}(e):function(e){var t=Math.abs(e);if(t>=i)return Math.round(e/i)+"d";if(t>=o)return Math.round(e/o)+"h";if(t>=n)return Math.round(e/n)+"m";if(t>=r)return Math.round(e/r)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},function(e,t,r){"use strict";var n=r(2),o=r(4),i=Object.prototype.hasOwnProperty,a={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},s=Array.isArray,c=Array.prototype.push,u=function(e,t){c.apply(e,s(t)?t:[t])},l=Date.prototype.toISOString,f=o.default,d={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:n.encode,encodeValuesOnly:!1,format:f,formatter:o.formatters[f],indices:!1,serializeDate:function(e){return l.call(e)},skipNulls:!1,strictNullHandling:!1},p=function e(t,r,o,i,a,c,l,f,p,y,m,g,h){var v,b=t;if("function"==typeof l?b=l(r,b):b instanceof Date?b=y(b):"comma"===o&&s(b)&&(b=b.join(",")),null===b){if(i)return c&&!g?c(r,d.encoder,h,"key"):r;b=""}if("string"==typeof(v=b)||"number"==typeof v||"boolean"==typeof v||"symbol"==typeof v||"bigint"==typeof v||n.isBuffer(b))return c?[m(g?r:c(r,d.encoder,h,"key"))+"="+m(c(b,d.encoder,h,"value"))]:[m(r)+"="+m(String(b))];var C,w=[];if(void 0===b)return w;if(s(l))C=l;else{var O=Object.keys(b);C=f?O.sort(f):O}for(var F=0;F<C.length;++F){var S=C[F];a&&null===b[S]||(s(b)?u(w,e(b[S],"function"==typeof o?o(r,S):r,o,i,a,c,l,f,p,y,m,g,h)):u(w,e(b[S],r+(p?"."+S:"["+S+"]"),o,i,a,c,l,f,p,y,m,g,h)))}return w};e.exports=function(e,t){var r,n=e,c=function(e){if(!e)return d;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||d.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=o.default;if(void 0!==e.format){if(!i.call(o.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var n=o.formatters[r],a=d.filter;return("function"==typeof e.filter||s(e.filter))&&(a=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:d.addQueryPrefix,allowDots:void 0===e.allowDots?d.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:d.charsetSentinel,delimiter:void 0===e.delimiter?d.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:d.encode,encoder:"function"==typeof e.encoder?e.encoder:d.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:d.encodeValuesOnly,filter:a,formatter:n,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:d.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:d.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:d.strictNullHandling}}(t);"function"==typeof c.filter?n=(0,c.filter)("",n):s(c.filter)&&(r=c.filter);var l,f=[];if("object"!=typeof n||null===n)return"";l=t&&t.arrayFormat in a?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var y=a[l];r||(r=Object.keys(n)),c.sort&&r.sort(c.sort);for(var m=0;m<r.length;++m){var g=r[m];c.skipNulls&&null===n[g]||u(f,p(n[g],g,y,c.strictNullHandling,c.skipNulls,c.encode?c.encoder:null,c.filter,c.sort,c.allowDots,c.serializeDate,c.formatter,c.encodeValuesOnly,c.charset))}var h=f.join(c.delimiter),v=!0===c.addQueryPrefix?"?":"";return c.charsetSentinel&&("iso-8859-1"===c.charset?v+="utf8=%26%2310003%3B&":v+="utf8=%E2%9C%93&"),h.length>0?v+h:""}},function(e,t,r){"use strict";var n=r(2),o=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:n.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},c=function(e,t,r){if(e){var n=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,i=/(\[[^[\]]*])/g,a=r.depth>0&&/(\[[^[\]]*])/.exec(n),s=a?n.slice(0,a.index):n,c=[];if(s){if(!r.plainObjects&&o.call(Object.prototype,s)&&!r.allowPrototypes)return;c.push(s)}for(var u=0;r.depth>0&&null!==(a=i.exec(n))&&u<r.depth;){if(u+=1,!r.plainObjects&&o.call(Object.prototype,a[1].slice(1,-1))&&!r.allowPrototypes)return;c.push(a[1])}return a&&c.push("["+n.slice(a.index)+"]"),function(e,t,r){for(var n=t,o=e.length-1;o>=0;--o){var i,a=e[o];if("[]"===a&&r.parseArrays)i=[].concat(n);else{i=r.plainObjects?Object.create(null):{};var s="["===a.charAt(0)&&"]"===a.charAt(a.length-1)?a.slice(1,-1):a,c=parseInt(s,10);r.parseArrays||""!==s?!isNaN(c)&&a!==s&&String(c)===s&&c>=0&&r.parseArrays&&c<=r.arrayLimit?(i=[])[c]=n:i[s]=n:i={0:n}}n=i}return n}(c,t,r)}};e.exports=function(e,t){var r=function(e){if(!e)return a;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new Error("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?a.charset:e.charset;return{allowDots:void 0===e.allowDots?a.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:a.comma,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||n.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:a.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}}(t);if(""===e||null==e)return r.plainObjects?Object.create(null):{};for(var u="string"==typeof e?function(e,t){var r,c={},u=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,l=t.parameterLimit===1/0?void 0:t.parameterLimit,f=u.split(t.delimiter,l),d=-1,p=t.charset;if(t.charsetSentinel)for(r=0;r<f.length;++r)0===f[r].indexOf("utf8=")&&("utf8=%E2%9C%93"===f[r]?p="utf-8":"utf8=%26%2310003%3B"===f[r]&&(p="iso-8859-1"),d=r,r=f.length);for(r=0;r<f.length;++r)if(r!==d){var y,m,g=f[r],h=g.indexOf("]="),v=-1===h?g.indexOf("="):h+1;-1===v?(y=t.decoder(g,a.decoder,p,"key"),m=t.strictNullHandling?null:""):(y=t.decoder(g.slice(0,v),a.decoder,p,"key"),m=t.decoder(g.slice(v+1),a.decoder,p,"value")),m&&t.interpretNumericEntities&&"iso-8859-1"===p&&(m=s(m)),m&&"string"==typeof m&&t.comma&&m.indexOf(",")>-1&&(m=m.split(",")),g.indexOf("[]=")>-1&&(m=i(m)?[m]:m),o.call(c,y)?c[y]=n.combine(c[y],m):c[y]=m}return c}(e,r):e,l=r.plainObjects?Object.create(null):{},f=Object.keys(u),d=0;d<f.length;++d){var p=f[d],y=c(p,u[p],r);l=n.merge(l,y,r)}return n.compact(l)}},function(e,t,r){"use strict";r.r(t);var n={};r.r(n),r.d(n,"receiveCategories",(function(){return y})),r.d(n,"receiveDomainSuggestions",(function(){return m}));var o={};r.r(o),r.d(o,"getCategories",(function(){return $})),r.d(o,"__internalGetDomainSuggestions",(function(){return W}));var i={};r.r(i),r.d(i,"register",(function(){return K}));var a=r(0),s="automattic/domains/suggestions";var c=function(){return(c=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function u(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(s){i=[6,s],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}function l(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(s){o={error:s}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}var f=r(7),d=r.n(f).a,p=Object(a.combineReducers)({categories:function(e,t){return void 0===e&&(e=[]),"RECEIVE_CATEGORIES"===t.type?t.categories:e},domainSuggestions:function(e,t){var r;return void 0===e&&(e={}),"RECEIVE_DOMAIN_SUGGESTIONS"===t.type?c(c({},e),((r={})[d(t.queryObject)]=t.suggestions,r)):e}}),y=function(e){return{type:"RECEIVE_CATEGORIES",categories:e}},m=function(e,t){return{type:"RECEIVE_DOMAIN_SUGGESTIONS",queryObject:e,suggestions:t}},g=r(8),h="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),v=new Uint8Array(16);function b(){if(!h)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return h(v)}for(var C=[],w=0;w<256;++w)C[w]=(w+256).toString(16).substr(1);var O=function(e,t){var r=t||0,n=C;return[n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]]].join("")};var F,S=function(e,t,r){var n=t&&r||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var o=(e=e||{}).random||(e.rng||b)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t)for(var i=0;i<16;++i)t[n+i]=o[i];return t||O(o)},E=r(5),j=r.n(E),x=r(1),A=r.n(x),N=r(6),P=r.n(N)()("wpcom-proxy-request"),R="https://public-api.wordpress.com",_=window.location.protocol+"//"+window.location.host,k=function(){var e=!1;try{window.postMessage({toString:function(){e=!0}},"*")}catch(t){}return e}(),L=function(){try{return new window.File(["a"],"test.jpg",{type:"image/jpeg"}),!0}catch(e){return!1}}(),D=null,I=!1,T={},M=!!window.ProgressEvent&&!!window.FormData;P('using "origin": %o',_);var U=function(e,t){var r=Object.assign({},e);P("request(%o)",r),D||B();var n=S();r.callback=n,r.supports_args=!0,r.supports_error_obj=!0,r.supports_progress=M,r.method=String(r.method||"GET").toUpperCase(),P("params object: %o",r);var o=new window.XMLHttpRequest;if(o.params=r,T[n]=o,"function"==typeof t){var i=!1,a=function(e){if(!i){i=!0;var r=e.error||e.err||e;P("error: ",r),P("headers: ",e.headers),t(r,null,e.headers)}};o.addEventListener("load",(function(e){if(!i){i=!0;var r=e.response||o.response;P("body: ",r),P("headers: ",e.headers),t(null,r,e.headers)}})),o.addEventListener("abort",a),o.addEventListener("error",a)}return I?V(r):(P("buffering API request since proxying <iframe> is not yet loaded"),F.push(r)),o},q=function(e,t){return"function"==typeof t?U(e,t):new Promise((function(t,r){U(e,(function(e,n){e?r(e):t(n)}))}))};function V(e){P("sending API request to proxy <iframe> %o",e),e.formData&&function(e){if(!window.chrome||!L)return;for(var t=0;t<e.length;t++){var r=H(e[t][1]);r&&(e[t][1]=new window.File([r],r.name,{type:r.type}))}}(e.formData),D.contentWindow.postMessage(k?JSON.stringify(e):e,R)}function G(e){return e&&"[object File]"===Object.prototype.toString.call(e)}function H(e){return G(e)?e:"object"==typeof e&&G(e.fileContents)?e.fileContents:null}function B(){P("install()"),D&&(P("uninstall()"),window.removeEventListener("message",Q),document.body.removeChild(D),I=!1,D=null),F=[],window.addEventListener("message",Q),(D=document.createElement("iframe")).src=R+"/wp-admin/rest-proxy/?v=2.0#"+_,D.style.display="none",document.body.appendChild(D)}function Q(e){if(P("onmessage"),e.origin===R){var t=e.data;if(!t)return P("no `data`, bailing");if("ready"!==t){if(k&&"string"==typeof t&&(t=JSON.parse(t)),t.upload||t.download)return function(e){P('got "progress" event: %o',e);var t=T[e.callbackId];if(t){var r=new A.a("progress",e);(e.upload?t.upload:t).dispatchEvent(r)}}(t);if(!t.length)return P("`e.data` doesn't appear to be an Array, bailing...");var r=t[t.length-1];if(!(r in T))return P("bailing, no matching request with callback: %o",r);var n=T[r],o=n.params,i=t[0],a=t[1],s=t[2];if(207===a||delete T[r],o.metaAPI?a="metaAPIupdated"===i?200:500:P("got %o status code for URL: %o",a,o.path),"object"==typeof s&&(s.status=a),a&&2===Math.floor(a/100))!function(e,t,r){var n=new A.a("load");n.data=n.body=n.response=t,n.headers=r,e.dispatchEvent(n)}(n,i,s);else!function(e,t,r){var n=new A.a("error");n.error=n.err=t,n.headers=r,e.dispatchEvent(n)}(n,j()(o,a,i),s)}else!function(){if(P('proxy <iframe> "load" event'),I=!0,F){for(var e=0;e<F.length;e++)V(F[e]);F=null}}()}else P("ignoring message... %o !== %o",e.origin,R)}var J=q,z={WPCOM_REQUEST:function(e){var t=e.request;return J(t)},FETCH_AND_PARSE:function(e){var t,r,n,o,i=e.resource,a=e.options;return t=void 0,r=void 0,o=function(){var e,t;return u(this,(function(r){switch(r.label){case 0:return[4,window.fetch(i,a)];case 1:return e=r.sent(),t={ok:e.ok},[4,e.json()];case 2:return[2,(t.body=r.sent(),t)]}}))},new((n=void 0)||(n=Promise))((function(e,i){function a(e){try{c(o.next(e))}catch(t){i(t)}}function s(e){try{c(o.throw(e))}catch(t){i(t)}}function c(t){t.done?e(t.value):new n((function(e){e(t.value)})).then(a,s)}c((o=o.apply(t,r||[])).next())}))},RELOAD_PROXY:function(){B()},REQUEST_ALL_BLOGS_ACCESS:function(){return q({metaAPI:{accessAllUsersBlogs:!0}})},WAIT:function(e){var t=e.ms;return new Promise((function(e){return setTimeout(e,t)}))}};function $(){var e;return u(this,(function(t){switch(t.label){case 0:return[4,(r="https://public-api.wordpress.com/wpcom/v2/onboarding/domains/categories",{type:"FETCH_AND_PARSE",resource:r,options:n})];case 1:return e=t.sent(),[2,y(e.body)]}var r,n}))}function W(e){var t;return u(this,(function(r){switch(r.label){case 0:return e.query?[4,(n={apiVersion:"1.1",path:"/domains/suggestions",query:Object(g.stringify)(e)},{type:"WPCOM_REQUEST",request:n})]:[2,m(e,[])];case 1:return t=r.sent(),[2,m(e,t)]}var n}))}var X=function(e){function t(t,r){return c(c({include_wordpressdotcom:r.only_wordpressdotcom||!1,include_dotblogsubdomain:!1,only_wordpressdotcom:!1,quantity:5,vendor:e},r),{query:t.trim().toLocaleLowerCase()})}return{getCategories:function(e){return function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(l(arguments[t]));return e}(e.categories.filter((function(e){return null!==e.tier})).sort((function(e,t){return e>t?1:-1})),e.categories.filter((function(e){return null===e.tier})).sort((function(e,t){return e.title.localeCompare(t.title)})))},getDomainSuggestions:function(e,r,n){void 0===n&&(n={});var o=t(r,n);return Object(a.select)(s).__internalGetDomainSuggestions(o)},isLoadingDomainSuggestions:function(e,r,n){void 0===n&&(n={});var o=t(r,n);return Object(a.select)("core/data").isResolving(s,"__internalGetDomainSuggestions",[o])},__internalGetDomainSuggestions:function(e,t){return e.domainSuggestions[d(t)]}}},Z=!1;function K(e){var t=e.vendor;return Z||(Z=!0,Object(a.registerStore)(s,{actions:n,controls:z,reducer:p,resolvers:o,selectors:X(t)})),s}i.register({vendor:"variation2_front"})}]));
common/index.js CHANGED
@@ -1,64 +1,4 @@
1
- /**
2
- * External dependencies
3
- */
4
- import { PluginSidebar, PluginSidebarMoreMenuItem } from '@wordpress/edit-post';
5
- import { layout, plus } from '@wordpress/icons';
6
- import { __ } from '@wordpress/i18n';
7
- import { registerPlugin } from '@wordpress/plugins';
8
- import { PanelBody, Button } from '@wordpress/components';
9
- import { __experimentalLibrary } from '@wordpress/block-editor';
10
-
11
  /**
12
  * Internal dependencies
13
  */
14
  import './index.scss';
15
-
16
- const BlockPatternsMoved = () => {
17
- const openInserter = () => {
18
- const inserterButton = document.querySelector( '.edit-post-header-toolbar__inserter-toggle' );
19
- inserterButton && inserterButton.click();
20
- setTimeout( () => {
21
- const patternsButton = document.querySelector(
22
- '.block-editor-inserter__tabs [id$="patterns"]'
23
- );
24
- patternsButton && patternsButton.click();
25
- }, 300 );
26
- };
27
-
28
- return (
29
- <>
30
- <PluginSidebarMoreMenuItem icon={ layout } target="block-patterns-moved">
31
- { __( 'Block Patterns', 'full-site-editing' ) }
32
- </PluginSidebarMoreMenuItem>
33
- <PluginSidebar
34
- icon={ layout }
35
- name={ 'block-patterns-moved' }
36
- title={ __( 'Block Patterns', 'full-site-editing' ) }
37
- className="common__block-patterns-moved"
38
- >
39
- <PanelBody>
40
- <h2>{ __( 'Block Patterns', 'full-site-editing' ) }</h2>
41
- <p>
42
- { __(
43
- 'Block Patterns have moved. You can now find them in the block inserter under the "patterns" tab.',
44
- 'full-site-editing'
45
- ) }
46
- </p>
47
- <p>
48
- { __(
49
- 'The block inserter can be found in the top-left corner of your screen by selecting the following icon:',
50
- 'full-site-editing'
51
- ) }
52
- </p>
53
- <Button isPrimary icon={ plus } onClick={ openInserter } />
54
- </PanelBody>
55
- </PluginSidebar>
56
- </>
57
- );
58
- };
59
-
60
- // Gutenberg 8 includes `Library` as `@wordpres/block-editor` experimental export.
61
- // The experimental Library component contains the patterns in their new location.
62
- if ( typeof __experimentalLibrary !== 'undefined' ) {
63
- registerPlugin( 'block-patterns-moved', { render: BlockPatternsMoved } );
64
- }
 
 
 
 
 
 
 
 
 
 
1
  /**
2
  * Internal dependencies
3
  */
4
  import './index.scss';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
common/index.php CHANGED
@@ -10,7 +10,26 @@
10
  */
11
 
12
  namespace A8C\FSE\Common;
13
- use function A8C\FSE\is_full_site_editing_active;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
14
 
15
  /**
16
  * Can be used to determine if the current screen is the block editor.
@@ -53,8 +72,7 @@ function is_homepage_title_hidden() {
53
  * @return bool True if the common module assets should be loaded.
54
  */
55
  function should_load_assets() {
56
- // TODO - remove is_F_S_E check when we remove the "block patterns moved" notice plugin.
57
- return (bool) is_homepage_title_hidden() || ! is_full_site_editing_active();
58
  }
59
 
60
  /**
10
  */
11
 
12
  namespace A8C\FSE\Common;
13
+
14
+ /**
15
+ * Register data stores that may be useful for a variety of concerns
16
+ */
17
+ function register_data_stores() {
18
+ $path = plugin_dir_path( __FILE__ ) . 'dist/data_stores.js';
19
+ $asset_file = plugin_dir_path( __FILE__ ) . 'dist/data-stores.asset.php';
20
+ $asset = file_exists( $asset_file ) ? require $asset_file : null;
21
+ $dependencies = isset( $asset['dependencies'] ) ? $asset['dependencies'] : array();
22
+ $version = isset( $asset['version'] ) ? $asset['version'] : filemtime( $path );
23
+
24
+ wp_register_script(
25
+ 'a8c-fse-common-data-stores',
26
+ plugins_url( 'dist/data-stores.js', __FILE__ ),
27
+ $dependencies,
28
+ $version,
29
+ true
30
+ );
31
+ }
32
+ add_action( 'init', __NAMESPACE__ . '\register_data_stores' );
33
 
34
  /**
35
  * Can be used to determine if the current screen is the block editor.
72
  * @return bool True if the common module assets should be loaded.
73
  */
74
  function should_load_assets() {
75
+ return (bool) is_homepage_title_hidden();
 
76
  }
77
 
78
  /**
dotcom-fse/dist/dotcom-fse.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('lodash', 'react-dom', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-dom-ready', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-plugins', 'wp-polyfill', 'wp-server-side-render', 'wp-url'), 'version' => '807383d4aac3746cf4b036ef27037d72');
1
+ <?php return array('dependencies' => array('lodash', 'react-dom', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-dom-ready', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-plugins', 'wp-polyfill', 'wp-server-side-render', 'wp-url'), 'version' => '843361b2e83354a70d99a228ed25b9e3');
dotcom-fse/dist/dotcom-fse.css CHANGED
@@ -1 +1 @@
1
- .wp-block-a8c-navigation-menu.main-navigation{pointer-events:none}.post-content-block__selector{width:300px}.post-content-block__selector a{font-family:sans-serif;font-size:13px;padding-left:8px}.post-content-block__preview{pointer-events:none}.post-content-block__preview:after{content:"";clear:both;display:table}.post-content-block .editor-post-title,.show-post-title-before-content .editor-post-title{display:none}.show-post-title-before-content .post-content-block .editor-post-title{display:block}.block-editor-block-list__layout .post-content__block.is-selected .block-editor-block-contextual-toolbar{display:none}.block-editor-block-list__layout .post-content__block.block-editor-block-list__block.has-child-selected>.block-editor-block-list__block-edit:before,.block-editor-block-list__layout .post-content__block.block-editor-block-list__block.is-hovered>.block-editor-block-list__block-edit:before,.block-editor-block-list__layout .post-content__block.block-editor-block-list__block.is-navigate-mode>.block-editor-block-list__block-edit:before,.block-editor-block-list__layout .post-content__block.block-editor-block-list__block>.block-editor-block-list__block-edit:before{transition:none;border:none;outline:none;box-shadow:none}.block-editor-block-list__layout .post-content__block.block-editor-block-list__block.has-child-selected>.block-editor-block-list__block-edit>.block-editor-block-list__breadcrumb,.block-editor-block-list__layout .post-content__block.block-editor-block-list__block.is-hovered>.block-editor-block-list__block-edit>.block-editor-block-list__breadcrumb,.block-editor-block-list__layout .post-content__block.block-editor-block-list__block.is-navigate-mode>.block-editor-block-list__block-edit>.block-editor-block-list__breadcrumb,.block-editor-block-list__layout .post-content__block.block-editor-block-list__block>.block-editor-block-list__block-edit>.block-editor-block-list__breadcrumb{display:none}.site-credit__block{display:flex;flex-direction:row;align-items:center;font-size:14px;color:grey}.site-credit__block.has-text-align-center{justify-content:center}.site-credit__block.has-text-align-left{justify-content:flex-start}.site-credit__block.has-text-align-right{justify-content:flex-end}.site-credit__block .site-name{font-weight:700}.site-credit__block .site-credit__selection{margin-left:5px;display:flex;flex-direction:row;align-items:center}.site-credit__block .site-credit__selection .components-base-control .components-base-control__field{margin-bottom:0}.block-editor .wp-block-a8c-site-description:focus{box-shadow:none;background-color:transparent}.block-editor .wp-block.is-selected .wp-block-a8c-site-description::-webkit-input-placeholder{color:transparent}.block-editor .wp-block.is-selected .wp-block-a8c-site-description:-moz-placeholder,.block-editor .wp-block.is-selected .wp-block-a8c-site-description::-moz-placeholder{color:transparent}.block-editor .wp-block.is-selected .wp-block-a8c-site-description:-ms-input-placeholder{color:transparent}.block-editor .wp-block-a8c-site-title:focus{box-shadow:none;background-color:transparent}.block-editor .wp-block.is-selected .wp-block-a8c-site-title::-webkit-input-placeholder{color:transparent}.block-editor .wp-block.is-selected .wp-block-a8c-site-title:-moz-placeholder,.block-editor .wp-block.is-selected .wp-block-a8c-site-title::-moz-placeholder{color:transparent}.block-editor .wp-block.is-selected .wp-block-a8c-site-title:-ms-input-placeholder{color:transparent}.template-block{min-height:200px;overflow:hidden;position:relative;margin-top:20px}.post-type-page .editor-styles-wrapper .template-block .fse-template-part{padding:0}.components-popover.block-editor-block-list__block-popover .components-popover__content .block-editor-block-contextual-toolbar[data-type="a8c/template"]{display:none}.template__block-container:before{display:none}.template__block-container:hover{cursor:pointer}.template__block-container .block-editor-block-list__block-edit [data-block]{margin:0}.template__block-container .is-navigating-to-template .components-disabled,.template__block-container.is-selected .components-disabled,.template__block-container:hover .components-disabled{filter:blur(2px);transition:filter .2s linear}.template__block-container .is-navigating-to-template .template-block__overlay,.template__block-container.is-selected .template-block__overlay,.template__block-container:hover .template-block__overlay{opacity:1;transition:opacity .2s linear}.template__block-container .is-navigating-to-template .template-block__overlay .components-button,.template__block-container.is-selected .template-block__overlay .components-button,.template__block-container:hover .template-block__overlay .components-button{opacity:1;transition:opacity .2s linear}.template__block-container .components-disabled{filter:blur(0);transition:filter .2s linear 0s}.template__block-container .block-editor-block-contextual-toolbar,.template__block-container .block-editor-block-list__block-edit:before,.template__block-container .block-editor-block-list__block-mobile-toolbar,.template__block-container .block-editor-block-list__breadcrumb,.template__block-container .block-editor-block-list__insertion-point{display:none}.template__block-container .template-block__overlay{background:hsla(0,0%,100%,.8);border:0 solid rgba(123,134,162,.3);bottom:0;left:0;margin:0;opacity:0;padding:0;position:absolute;right:0;transition:opacity .2s linear 0s;top:0;z-index:2}.is-selected .template__block-container .template-block__overlay{border-color:rgba(66,88,99,.4)}.block-editor-block-list__block:first-child .template__block-container .template-block__overlay{border-bottom-width:1px}.block-editor-block-list__block:last-child .template__block-container .template-block__overlay{border-top-width:1px}@media only screen and (min-width:768px){.template__block-container .template-block__overlay{border-width:1px}}.template__block-container .template-block__overlay .components-button{opacity:0;transition:opacity .2s linear 0s;margin:0 auto}.template__block-container .template-block__overlay .components-button.hidden{display:none}.template__block-container .template-block__overlay .template-block__loading{display:flex;align-items:center;color:#191e23}.block-editor-page:not(.post-type-wp_template_part) .fse-site-logo .components-placeholder__fieldset,.block-editor-page:not(.post-type-wp_template_part) .fse-site-logo .components-placeholder__instructions{display:none}.template-block__placeholder .components-spinner{margin:0 auto}.close-button-override-thin,.post-type-page .edit-post-fullscreen-mode-close__toolbar,.post-type-page .edit-post-header .edit-post-fullscreen-mode-close,.post-type-post .edit-post-fullscreen-mode-close__toolbar,.post-type-post .edit-post-header .edit-post-fullscreen-mode-close,.post-type-wp_template_part .edit-post-fullscreen-mode-close__toolbar,.post-type-wp_template_part .edit-post-header .edit-post-fullscreen-mode-close{display:none}.post-type-page .edit-post-fullscreen-mode-close__toolbar__override,.post-type-post .edit-post-fullscreen-mode-close__toolbar__override,.post-type-wp_template_part .edit-post-fullscreen-mode-close__toolbar__override{display:flex;align-items:center;margin-right:10px;margin-left:-24px;border:none;border-right:1px solid #e2e4e7}.post-type-page .edit-post-fullscreen-mode-close__toolbar__override a,.post-type-page .edit-post-fullscreen-mode-close__toolbar__override a:active,.post-type-page .edit-post-fullscreen-mode-close__toolbar__override a:hover,.post-type-page .edit-post-fullscreen-mode-close__toolbar__override a:link,.post-type-page .edit-post-fullscreen-mode-close__toolbar__override a:visited,.post-type-post .edit-post-fullscreen-mode-close__toolbar__override a,.post-type-post .edit-post-fullscreen-mode-close__toolbar__override a:active,.post-type-post .edit-post-fullscreen-mode-close__toolbar__override a:hover,.post-type-post .edit-post-fullscreen-mode-close__toolbar__override a:link,.post-type-post .edit-post-fullscreen-mode-close__toolbar__override a:visited,.post-type-wp_template_part .edit-post-fullscreen-mode-close__toolbar__override a,.post-type-wp_template_part .edit-post-fullscreen-mode-close__toolbar__override a:active,.post-type-wp_template_part .edit-post-fullscreen-mode-close__toolbar__override a:hover,.post-type-wp_template_part .edit-post-fullscreen-mode-close__toolbar__override a:link,.post-type-wp_template_part .edit-post-fullscreen-mode-close__toolbar__override a:visited{text-decoration:none}.post-type-page .edit-post-fullscreen-mode-close__toolbar__override .close-button-override__label,.post-type-post .edit-post-fullscreen-mode-close__toolbar__override .close-button-override__label,.post-type-wp_template_part .edit-post-fullscreen-mode-close__toolbar__override .close-button-override__label{font-size:13px}.post-type-page .edit-post-fullscreen-mode-close__toolbar__override .dashicons-arrow-left-alt2,.post-type-post .edit-post-fullscreen-mode-close__toolbar__override .dashicons-arrow-left-alt2,.post-type-wp_template_part .edit-post-fullscreen-mode-close__toolbar__override .dashicons-arrow-left-alt2{margin-left:-7px}@media (max-width:599px){.post-type-page .edit-post-fullscreen-mode-close__toolbar__override,.post-type-post .edit-post-fullscreen-mode-close__toolbar__override,.post-type-wp_template_part .edit-post-fullscreen-mode-close__toolbar__override{margin-left:-2px}}@media (max-width:400px){.post-type-page .edit-post-fullscreen-mode-close__toolbar__override .close-button-override-wide,.post-type-post .edit-post-fullscreen-mode-close__toolbar__override .close-button-override-wide,.post-type-wp_template_part .edit-post-fullscreen-mode-close__toolbar__override .close-button-override-wide{display:none}.post-type-page .edit-post-fullscreen-mode-close__toolbar__override .close-button-override-thin,.post-type-post .edit-post-fullscreen-mode-close__toolbar__override .close-button-override-thin,.post-type-wp_template_part .edit-post-fullscreen-mode-close__toolbar__override .close-button-override-thin{display:flex}.post-type-page .edit-post-fullscreen-mode-close__toolbar__override .close-button-override__label,.post-type-post .edit-post-fullscreen-mode-close__toolbar__override .close-button-override__label,.post-type-wp_template_part .edit-post-fullscreen-mode-close__toolbar__override .close-button-override__label{display:none}}.post-type-page .block-editor-editor-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override,.post-type-page .interface-interface-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override,.post-type-post .block-editor-editor-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override,.post-type-post .interface-interface-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override,.post-type-wp_template_part .block-editor-editor-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override,.post-type-wp_template_part .interface-interface-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override{margin-left:-24px;margin-right:24px}@media (max-width:782px){.post-type-page .block-editor-editor-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override,.post-type-page .interface-interface-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override,.post-type-post .block-editor-editor-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override,.post-type-post .interface-interface-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override,.post-type-wp_template_part .block-editor-editor-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override,.post-type-wp_template_part .interface-interface-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override{display:none}}@media (max-width:960px){.post-type-page .block-editor-editor-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override .close-button-override__label,.post-type-page .interface-interface-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override .close-button-override__label,.post-type-post .block-editor-editor-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override .close-button-override__label,.post-type-post .interface-interface-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override .close-button-override__label,.post-type-wp_template_part .block-editor-editor-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override .close-button-override__label,.post-type-wp_template_part .interface-interface-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override .close-button-override__label{display:none}}@media (max-width:599px){.post-type-page .block-editor-editor-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override,.post-type-page .interface-interface-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override,.post-type-post .block-editor-editor-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override,.post-type-post .interface-interface-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override,.post-type-wp_template_part .block-editor-editor-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override,.post-type-wp_template_part .interface-interface-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override{margin-left:-24px}}.post-type-wp_template_part .edit-post-post-status,.post-type-wp_template_part .editor-post-title,.post-type-wp_template_part .editor-post-trash{display:none}.post-type-wp_template_part .edit-post-visual-editor{margin-top:20px;padding-top:0}.post-type-wp_template_part .editor-post-switch-to-draft{display:none}@media (min-width:768px){.post-type-page .block-editor-editor-skeleton__content,.post-type-page .edit-post-editor-regions__content,.post-type-wp_template_part .block-editor-editor-skeleton__content,.post-type-wp_template_part .edit-post-editor-regions__content{background:#eee}.post-type-page .edit-post-editor-regions__content .edit-post-visual-editor,.post-type-page .edit-post-visual-editor.editor-styles-wrapper,.post-type-wp_template_part .edit-post-editor-regions__content .edit-post-visual-editor,.post-type-wp_template_part .edit-post-visual-editor.editor-styles-wrapper{box-shadow:0 2px 2px 0 rgba(0,0,0,.14),0 3px 1px -2px rgba(0,0,0,.12),0 1px 5px 0 rgba(0,0,0,.2);flex:none;margin:36px 32px}}.post-type-page .block-editor-block-list__layout,.post-type-wp_template_part .block-editor-block-list__layout{padding-left:0;padding-right:0}.post-type-page .block-editor-block-list__layout .block-editor-block-list__block[data-align=full],.post-type-page .block-editor-block-list__layout .wp-block[data-align=full],.post-type-wp_template_part .block-editor-block-list__layout .block-editor-block-list__block[data-align=full],.post-type-wp_template_part .block-editor-block-list__layout .wp-block[data-align=full]{margin-left:0;margin-right:0}.post-type-page .block-editor-block-list__block[data-align=full]>.block-editor-block-list__block-edit,.post-type-wp_template_part .block-editor-block-list__block[data-align=full]>.block-editor-block-list__block-edit{margin-right:0;margin-left:0}.post-type-page .block-editor-block-list__block[data-align=wide]>.block-editor-block-list__block-edit,.post-type-wp_template_part .block-editor-block-list__block[data-align=wide]>.block-editor-block-list__block-edit{margin-right:14px;margin-left:14px}@media (max-width:1200px){.post-type-page .wp-block:not([data-align=full]):not([data-align=wide]),.post-type-wp_template_part .wp-block:not([data-align=full]):not([data-align=wide]){max-width:580px}.post-type-page .is-sidebar-opened .wp-block:not([data-align=full]):not([data-align=wide]),.post-type-wp_template_part .is-sidebar-opened .wp-block:not([data-align=full]):not([data-align=wide]){max-width:400px}}.post-type-page .block-editor-writing-flow__click-redirect,.post-type-wp_template_part .block-editor-writing-flow__click-redirect{display:none}.editor-styles-wrapper{background:#fff}.post-type-page .edit-post-visual-editor{padding-top:0}.post-type-page .block-editor-writing-flow{display:block}.post-type-page .wp-block.template__block-container .wp-block-column [data-type="core/social-links"] [data-block]{margin:0}@media (max-width:600px){.components-dropdown.table-of-contents{display:none}}
1
+ .wp-block-a8c-navigation-menu.main-navigation{pointer-events:none}.post-content-block__selector{width:300px}.post-content-block__selector a{font-family:sans-serif;font-size:13px;padding-left:8px}.post-content-block__preview{pointer-events:none}.post-content-block__preview:after{content:"";clear:both;display:table}.post-content-block .editor-post-title,.show-post-title-before-content .editor-post-title{display:none}.show-post-title-before-content .post-content-block .editor-post-title{display:block}.block-editor-block-list__layout .post-content__block.is-selected .block-editor-block-contextual-toolbar{display:none}.block-editor-block-list__layout .post-content__block.block-editor-block-list__block.has-child-selected>.block-editor-block-list__block-edit:before,.block-editor-block-list__layout .post-content__block.block-editor-block-list__block.is-hovered>.block-editor-block-list__block-edit:before,.block-editor-block-list__layout .post-content__block.block-editor-block-list__block.is-navigate-mode>.block-editor-block-list__block-edit:before,.block-editor-block-list__layout .post-content__block.block-editor-block-list__block>.block-editor-block-list__block-edit:before{transition:none;border:none;outline:none;box-shadow:none}.block-editor-block-list__layout .post-content__block.block-editor-block-list__block.has-child-selected>.block-editor-block-list__block-edit>.block-editor-block-list__breadcrumb,.block-editor-block-list__layout .post-content__block.block-editor-block-list__block.is-hovered>.block-editor-block-list__block-edit>.block-editor-block-list__breadcrumb,.block-editor-block-list__layout .post-content__block.block-editor-block-list__block.is-navigate-mode>.block-editor-block-list__block-edit>.block-editor-block-list__breadcrumb,.block-editor-block-list__layout .post-content__block.block-editor-block-list__block>.block-editor-block-list__block-edit>.block-editor-block-list__breadcrumb{display:none}.site-credit__block{display:flex;flex-direction:row;align-items:center;font-size:14px;color:grey}.site-credit__block.has-text-align-center{justify-content:center}.site-credit__block.has-text-align-left{justify-content:flex-start}.site-credit__block.has-text-align-right{justify-content:flex-end}.site-credit__block .site-name{font-weight:700}.site-credit__block .site-credit__selection{margin-left:5px;display:flex;flex-direction:row;align-items:center}.site-credit__block .site-credit__selection .components-base-control .components-base-control__field{margin-bottom:0}.block-editor .wp-block-a8c-site-description:focus{box-shadow:none;background-color:transparent}.block-editor .wp-block.is-selected .wp-block-a8c-site-description::-webkit-input-placeholder{color:transparent}.block-editor .wp-block.is-selected .wp-block-a8c-site-description:-moz-placeholder,.block-editor .wp-block.is-selected .wp-block-a8c-site-description::-moz-placeholder{color:transparent}.block-editor .wp-block.is-selected .wp-block-a8c-site-description:-ms-input-placeholder{color:transparent}.block-editor .wp-block-a8c-site-title:focus{box-shadow:none;background-color:transparent}.block-editor .wp-block.is-selected .wp-block-a8c-site-title::-webkit-input-placeholder{color:transparent}.block-editor .wp-block.is-selected .wp-block-a8c-site-title:-moz-placeholder,.block-editor .wp-block.is-selected .wp-block-a8c-site-title::-moz-placeholder{color:transparent}.block-editor .wp-block.is-selected .wp-block-a8c-site-title:-ms-input-placeholder{color:transparent}.template-block{min-height:200px;overflow:hidden;position:relative;margin-top:20px}.post-type-page .editor-styles-wrapper .template-block .fse-template-part{padding:0}.components-popover.block-editor-block-list__block-popover .components-popover__content .block-editor-block-contextual-toolbar[data-type="a8c/template"]{display:none}.template__block-container:before{display:none}.template__block-container:hover{cursor:pointer}.template__block-container .block-editor-block-list__block-edit [data-block]{margin:0}.template__block-container .is-navigating-to-template .components-disabled,.template__block-container.is-selected .components-disabled,.template__block-container:hover .components-disabled{filter:blur(2px);transition:filter .2s linear}.template__block-container .is-navigating-to-template .template-block__overlay,.template__block-container.is-selected .template-block__overlay,.template__block-container:hover .template-block__overlay{opacity:1;transition:opacity .2s linear}.template__block-container .is-navigating-to-template .template-block__overlay .components-button,.template__block-container.is-selected .template-block__overlay .components-button,.template__block-container:hover .template-block__overlay .components-button{opacity:1;transition:opacity .2s linear}.template__block-container .components-disabled{filter:blur(0);transition:filter .2s linear 0s}.template__block-container .block-editor-block-contextual-toolbar,.template__block-container .block-editor-block-list__block-edit:before,.template__block-container .block-editor-block-list__block-mobile-toolbar,.template__block-container .block-editor-block-list__breadcrumb,.template__block-container .block-editor-block-list__insertion-point{display:none}.template__block-container .template-block__overlay{background:hsla(0,0%,100%,.8);border:0 solid rgba(123,134,162,.3);bottom:0;left:0;margin:0;opacity:0;padding:0;position:absolute;right:0;transition:opacity .2s linear 0s;top:0;z-index:2}.is-selected .template__block-container .template-block__overlay{border-color:rgba(66,88,99,.4)}.block-editor-block-list__block:first-child .template__block-container .template-block__overlay{border-bottom-width:1px}.block-editor-block-list__block:last-child .template__block-container .template-block__overlay{border-top-width:1px}@media only screen and (min-width:768px){.template__block-container .template-block__overlay{border-width:1px}}.template__block-container .template-block__overlay .components-button{opacity:0;transition:opacity .2s linear 0s;margin:0 auto}.template__block-container .template-block__overlay .components-button.hidden{display:none}.template__block-container .template-block__overlay .template-block__loading{display:flex;align-items:center;color:#191e23}.block-editor-page:not(.post-type-wp_template_part) .fse-site-logo .components-placeholder__fieldset,.block-editor-page:not(.post-type-wp_template_part) .fse-site-logo .components-placeholder__instructions{display:none}.template-block__placeholder .components-spinner{margin:0 auto}.close-button-override-thin,.post-type-page .edit-post-fullscreen-mode-close__toolbar,.post-type-page .edit-post-header .edit-post-fullscreen-mode-close,.post-type-post .edit-post-fullscreen-mode-close__toolbar,.post-type-post .edit-post-header .edit-post-fullscreen-mode-close,.post-type-wp_template_part .edit-post-fullscreen-mode-close__toolbar,.post-type-wp_template_part .edit-post-header .edit-post-fullscreen-mode-close{display:none}.post-type-page .edit-post-fullscreen-mode-close__toolbar__override,.post-type-post .edit-post-fullscreen-mode-close__toolbar__override,.post-type-wp_template_part .edit-post-fullscreen-mode-close__toolbar__override{display:flex;align-items:center;margin-right:10px;margin-left:-24px;border:none;border-right:1px solid #e2e4e7}.post-type-page .edit-post-fullscreen-mode-close__toolbar__override a,.post-type-page .edit-post-fullscreen-mode-close__toolbar__override a:active,.post-type-page .edit-post-fullscreen-mode-close__toolbar__override a:hover,.post-type-page .edit-post-fullscreen-mode-close__toolbar__override a:link,.post-type-page .edit-post-fullscreen-mode-close__toolbar__override a:visited,.post-type-post .edit-post-fullscreen-mode-close__toolbar__override a,.post-type-post .edit-post-fullscreen-mode-close__toolbar__override a:active,.post-type-post .edit-post-fullscreen-mode-close__toolbar__override a:hover,.post-type-post .edit-post-fullscreen-mode-close__toolbar__override a:link,.post-type-post .edit-post-fullscreen-mode-close__toolbar__override a:visited,.post-type-wp_template_part .edit-post-fullscreen-mode-close__toolbar__override a,.post-type-wp_template_part .edit-post-fullscreen-mode-close__toolbar__override a:active,.post-type-wp_template_part .edit-post-fullscreen-mode-close__toolbar__override a:hover,.post-type-wp_template_part .edit-post-fullscreen-mode-close__toolbar__override a:link,.post-type-wp_template_part .edit-post-fullscreen-mode-close__toolbar__override a:visited{text-decoration:none}.post-type-page .edit-post-fullscreen-mode-close__toolbar__override .close-button-override__label,.post-type-post .edit-post-fullscreen-mode-close__toolbar__override .close-button-override__label,.post-type-wp_template_part .edit-post-fullscreen-mode-close__toolbar__override .close-button-override__label{font-size:13px}.post-type-page .edit-post-fullscreen-mode-close__toolbar__override .dashicons-arrow-left-alt2,.post-type-post .edit-post-fullscreen-mode-close__toolbar__override .dashicons-arrow-left-alt2,.post-type-wp_template_part .edit-post-fullscreen-mode-close__toolbar__override .dashicons-arrow-left-alt2{margin-left:-7px}@media (max-width:599px){.post-type-page .edit-post-fullscreen-mode-close__toolbar__override,.post-type-post .edit-post-fullscreen-mode-close__toolbar__override,.post-type-wp_template_part .edit-post-fullscreen-mode-close__toolbar__override{margin-left:-2px}}@media (max-width:400px){.post-type-page .edit-post-fullscreen-mode-close__toolbar__override .close-button-override-wide,.post-type-post .edit-post-fullscreen-mode-close__toolbar__override .close-button-override-wide,.post-type-wp_template_part .edit-post-fullscreen-mode-close__toolbar__override .close-button-override-wide{display:none}.post-type-page .edit-post-fullscreen-mode-close__toolbar__override .close-button-override-thin,.post-type-post .edit-post-fullscreen-mode-close__toolbar__override .close-button-override-thin,.post-type-wp_template_part .edit-post-fullscreen-mode-close__toolbar__override .close-button-override-thin{display:flex}.post-type-page .edit-post-fullscreen-mode-close__toolbar__override .close-button-override__label,.post-type-post .edit-post-fullscreen-mode-close__toolbar__override .close-button-override__label,.post-type-wp_template_part .edit-post-fullscreen-mode-close__toolbar__override .close-button-override__label{display:none}}.post-type-page .block-editor-editor-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override,.post-type-page .interface-interface-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override,.post-type-post .block-editor-editor-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override,.post-type-post .interface-interface-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override,.post-type-wp_template_part .block-editor-editor-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override,.post-type-wp_template_part .interface-interface-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override{margin-left:-24px;margin-right:24px}@media (max-width:782px){.post-type-page .block-editor-editor-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override,.post-type-page .interface-interface-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override,.post-type-post .block-editor-editor-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override,.post-type-post .interface-interface-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override,.post-type-wp_template_part .block-editor-editor-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override,.post-type-wp_template_part .interface-interface-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override{display:none}}@media (max-width:960px){.post-type-page .block-editor-editor-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override .close-button-override__label,.post-type-page .interface-interface-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override .close-button-override__label,.post-type-post .block-editor-editor-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override .close-button-override__label,.post-type-post .interface-interface-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override .close-button-override__label,.post-type-wp_template_part .block-editor-editor-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override .close-button-override__label,.post-type-wp_template_part .interface-interface-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override .close-button-override__label{display:none}}@media (max-width:599px){.post-type-page .block-editor-editor-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override,.post-type-page .interface-interface-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override,.post-type-post .block-editor-editor-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override,.post-type-post .interface-interface-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override,.post-type-wp_template_part .block-editor-editor-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override,.post-type-wp_template_part .interface-interface-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override{margin-left:-24px}}.edit-post-header-toolbar>.edit-post-header-toolbar__inserter-toggle{display:none}.post-type-wp_template_part .edit-post-post-status,.post-type-wp_template_part .editor-post-title,.post-type-wp_template_part .editor-post-trash{display:none}.post-type-wp_template_part .edit-post-visual-editor{margin-top:20px;padding-top:0}.post-type-wp_template_part .editor-post-switch-to-draft{display:none}@media (min-width:768px){.post-type-page .block-editor-editor-skeleton__content,.post-type-page .edit-post-editor-regions__content,.post-type-wp_template_part .block-editor-editor-skeleton__content,.post-type-wp_template_part .edit-post-editor-regions__content{background:#eee}.post-type-page .edit-post-editor-regions__content .edit-post-visual-editor,.post-type-page .edit-post-visual-editor.editor-styles-wrapper,.post-type-wp_template_part .edit-post-editor-regions__content .edit-post-visual-editor,.post-type-wp_template_part .edit-post-visual-editor.editor-styles-wrapper{box-shadow:0 2px 2px 0 rgba(0,0,0,.14),0 3px 1px -2px rgba(0,0,0,.12),0 1px 5px 0 rgba(0,0,0,.2);flex:none;margin:36px 32px}}.post-type-page .block-editor-block-list__layout,.post-type-wp_template_part .block-editor-block-list__layout{padding-left:0;padding-right:0}.post-type-page .block-editor-block-list__layout .block-editor-block-list__block[data-align=full],.post-type-page .block-editor-block-list__layout .wp-block[data-align=full],.post-type-wp_template_part .block-editor-block-list__layout .block-editor-block-list__block[data-align=full],.post-type-wp_template_part .block-editor-block-list__layout .wp-block[data-align=full]{margin-left:0;margin-right:0}.post-type-page .block-editor-block-list__block[data-align=full]>.block-editor-block-list__block-edit,.post-type-wp_template_part .block-editor-block-list__block[data-align=full]>.block-editor-block-list__block-edit{margin-right:0;margin-left:0}.post-type-page .block-editor-block-list__block[data-align=wide]>.block-editor-block-list__block-edit,.post-type-wp_template_part .block-editor-block-list__block[data-align=wide]>.block-editor-block-list__block-edit{margin-right:14px;margin-left:14px}@media (max-width:1200px){.post-type-page .wp-block:not([data-align=full]):not([data-align=wide]),.post-type-wp_template_part .wp-block:not([data-align=full]):not([data-align=wide]){max-width:580px}.post-type-page .is-sidebar-opened .wp-block:not([data-align=full]):not([data-align=wide]),.post-type-wp_template_part .is-sidebar-opened .wp-block:not([data-align=full]):not([data-align=wide]){max-width:400px}}.post-type-page .block-editor-writing-flow__click-redirect,.post-type-wp_template_part .block-editor-writing-flow__click-redirect{display:none}.editor-styles-wrapper{background:#fff}.post-type-page .edit-post-visual-editor{padding-top:0}.post-type-page .block-editor-writing-flow{display:block}.post-type-page .wp-block.template__block-container .wp-block-column [data-type="core/social-links"] [data-block]{margin:0}@media (max-width:600px){.components-dropdown.table-of-contents{display:none}}
dotcom-fse/dist/dotcom-fse.rtl.css CHANGED
@@ -1 +1 @@
1
- .wp-block-a8c-navigation-menu.main-navigation{pointer-events:none}.post-content-block__selector{width:300px}.post-content-block__selector a{font-family:sans-serif;font-size:13px;padding-right:8px}.post-content-block__preview{pointer-events:none}.post-content-block__preview:after{content:"";clear:both;display:table}.post-content-block .editor-post-title,.show-post-title-before-content .editor-post-title{display:none}.show-post-title-before-content .post-content-block .editor-post-title{display:block}.block-editor-block-list__layout .post-content__block.is-selected .block-editor-block-contextual-toolbar{display:none}.block-editor-block-list__layout .post-content__block.block-editor-block-list__block.has-child-selected>.block-editor-block-list__block-edit:before,.block-editor-block-list__layout .post-content__block.block-editor-block-list__block.is-hovered>.block-editor-block-list__block-edit:before,.block-editor-block-list__layout .post-content__block.block-editor-block-list__block.is-navigate-mode>.block-editor-block-list__block-edit:before,.block-editor-block-list__layout .post-content__block.block-editor-block-list__block>.block-editor-block-list__block-edit:before{transition:none;border:none;outline:none;box-shadow:none}.block-editor-block-list__layout .post-content__block.block-editor-block-list__block.has-child-selected>.block-editor-block-list__block-edit>.block-editor-block-list__breadcrumb,.block-editor-block-list__layout .post-content__block.block-editor-block-list__block.is-hovered>.block-editor-block-list__block-edit>.block-editor-block-list__breadcrumb,.block-editor-block-list__layout .post-content__block.block-editor-block-list__block.is-navigate-mode>.block-editor-block-list__block-edit>.block-editor-block-list__breadcrumb,.block-editor-block-list__layout .post-content__block.block-editor-block-list__block>.block-editor-block-list__block-edit>.block-editor-block-list__breadcrumb{display:none}.site-credit__block{display:flex;flex-direction:row;align-items:center;font-size:14px;color:grey}.site-credit__block.has-text-align-center{justify-content:center}.site-credit__block.has-text-align-left{justify-content:flex-start}.site-credit__block.has-text-align-right{justify-content:flex-end}.site-credit__block .site-name{font-weight:700}.site-credit__block .site-credit__selection{margin-right:5px;display:flex;flex-direction:row;align-items:center}.site-credit__block .site-credit__selection .components-base-control .components-base-control__field{margin-bottom:0}.block-editor .wp-block-a8c-site-description:focus{box-shadow:none;background-color:transparent}.block-editor .wp-block.is-selected .wp-block-a8c-site-description::-webkit-input-placeholder{color:transparent}.block-editor .wp-block.is-selected .wp-block-a8c-site-description:-moz-placeholder,.block-editor .wp-block.is-selected .wp-block-a8c-site-description::-moz-placeholder{color:transparent}.block-editor .wp-block.is-selected .wp-block-a8c-site-description:-ms-input-placeholder{color:transparent}.block-editor .wp-block-a8c-site-title:focus{box-shadow:none;background-color:transparent}.block-editor .wp-block.is-selected .wp-block-a8c-site-title::-webkit-input-placeholder{color:transparent}.block-editor .wp-block.is-selected .wp-block-a8c-site-title:-moz-placeholder,.block-editor .wp-block.is-selected .wp-block-a8c-site-title::-moz-placeholder{color:transparent}.block-editor .wp-block.is-selected .wp-block-a8c-site-title:-ms-input-placeholder{color:transparent}.template-block{min-height:200px;overflow:hidden;position:relative;margin-top:20px}.post-type-page .editor-styles-wrapper .template-block .fse-template-part{padding:0}.components-popover.block-editor-block-list__block-popover .components-popover__content .block-editor-block-contextual-toolbar[data-type="a8c/template"]{display:none}.template__block-container:before{display:none}.template__block-container:hover{cursor:pointer}.template__block-container .block-editor-block-list__block-edit [data-block]{margin:0}.template__block-container .is-navigating-to-template .components-disabled,.template__block-container.is-selected .components-disabled,.template__block-container:hover .components-disabled{filter:blur(2px);transition:filter .2s linear}.template__block-container .is-navigating-to-template .template-block__overlay,.template__block-container.is-selected .template-block__overlay,.template__block-container:hover .template-block__overlay{opacity:1;transition:opacity .2s linear}.template__block-container .is-navigating-to-template .template-block__overlay .components-button,.template__block-container.is-selected .template-block__overlay .components-button,.template__block-container:hover .template-block__overlay .components-button{opacity:1;transition:opacity .2s linear}.template__block-container .components-disabled{filter:blur(0);transition:filter .2s linear 0s}.template__block-container .block-editor-block-contextual-toolbar,.template__block-container .block-editor-block-list__block-edit:before,.template__block-container .block-editor-block-list__block-mobile-toolbar,.template__block-container .block-editor-block-list__breadcrumb,.template__block-container .block-editor-block-list__insertion-point{display:none}.template__block-container .template-block__overlay{background:hsla(0,0%,100%,.8);border:0 solid rgba(123,134,162,.3);bottom:0;right:0;margin:0;opacity:0;padding:0;position:absolute;left:0;transition:opacity .2s linear 0s;top:0;z-index:2}.is-selected .template__block-container .template-block__overlay{border-color:rgba(66,88,99,.4)}.block-editor-block-list__block:first-child .template__block-container .template-block__overlay{border-bottom-width:1px}.block-editor-block-list__block:last-child .template__block-container .template-block__overlay{border-top-width:1px}@media only screen and (min-width:768px){.template__block-container .template-block__overlay{border-width:1px}}.template__block-container .template-block__overlay .components-button{opacity:0;transition:opacity .2s linear 0s;margin:0 auto}.template__block-container .template-block__overlay .components-button.hidden{display:none}.template__block-container .template-block__overlay .template-block__loading{display:flex;align-items:center;color:#191e23}.block-editor-page:not(.post-type-wp_template_part) .fse-site-logo .components-placeholder__fieldset,.block-editor-page:not(.post-type-wp_template_part) .fse-site-logo .components-placeholder__instructions{display:none}.template-block__placeholder .components-spinner{margin:0 auto}.close-button-override-thin,.post-type-page .edit-post-fullscreen-mode-close__toolbar,.post-type-page .edit-post-header .edit-post-fullscreen-mode-close,.post-type-post .edit-post-fullscreen-mode-close__toolbar,.post-type-post .edit-post-header .edit-post-fullscreen-mode-close,.post-type-wp_template_part .edit-post-fullscreen-mode-close__toolbar,.post-type-wp_template_part .edit-post-header .edit-post-fullscreen-mode-close{display:none}.post-type-page .edit-post-fullscreen-mode-close__toolbar__override,.post-type-post .edit-post-fullscreen-mode-close__toolbar__override,.post-type-wp_template_part .edit-post-fullscreen-mode-close__toolbar__override{display:flex;align-items:center;margin-left:10px;margin-right:-24px;border:none;border-left:1px solid #e2e4e7}.post-type-page .edit-post-fullscreen-mode-close__toolbar__override a,.post-type-page .edit-post-fullscreen-mode-close__toolbar__override a:active,.post-type-page .edit-post-fullscreen-mode-close__toolbar__override a:hover,.post-type-page .edit-post-fullscreen-mode-close__toolbar__override a:link,.post-type-page .edit-post-fullscreen-mode-close__toolbar__override a:visited,.post-type-post .edit-post-fullscreen-mode-close__toolbar__override a,.post-type-post .edit-post-fullscreen-mode-close__toolbar__override a:active,.post-type-post .edit-post-fullscreen-mode-close__toolbar__override a:hover,.post-type-post .edit-post-fullscreen-mode-close__toolbar__override a:link,.post-type-post .edit-post-fullscreen-mode-close__toolbar__override a:visited,.post-type-wp_template_part .edit-post-fullscreen-mode-close__toolbar__override a,.post-type-wp_template_part .edit-post-fullscreen-mode-close__toolbar__override a:active,.post-type-wp_template_part .edit-post-fullscreen-mode-close__toolbar__override a:hover,.post-type-wp_template_part .edit-post-fullscreen-mode-close__toolbar__override a:link,.post-type-wp_template_part .edit-post-fullscreen-mode-close__toolbar__override a:visited{text-decoration:none}.post-type-page .edit-post-fullscreen-mode-close__toolbar__override .close-button-override__label,.post-type-post .edit-post-fullscreen-mode-close__toolbar__override .close-button-override__label,.post-type-wp_template_part .edit-post-fullscreen-mode-close__toolbar__override .close-button-override__label{font-size:13px}.post-type-page .edit-post-fullscreen-mode-close__toolbar__override .dashicons-arrow-left-alt2,.post-type-post .edit-post-fullscreen-mode-close__toolbar__override .dashicons-arrow-left-alt2,.post-type-wp_template_part .edit-post-fullscreen-mode-close__toolbar__override .dashicons-arrow-left-alt2{margin-right:-7px}@media (max-width:599px){.post-type-page .edit-post-fullscreen-mode-close__toolbar__override,.post-type-post .edit-post-fullscreen-mode-close__toolbar__override,.post-type-wp_template_part .edit-post-fullscreen-mode-close__toolbar__override{margin-right:-2px}}@media (max-width:400px){.post-type-page .edit-post-fullscreen-mode-close__toolbar__override .close-button-override-wide,.post-type-post .edit-post-fullscreen-mode-close__toolbar__override .close-button-override-wide,.post-type-wp_template_part .edit-post-fullscreen-mode-close__toolbar__override .close-button-override-wide{display:none}.post-type-page .edit-post-fullscreen-mode-close__toolbar__override .close-button-override-thin,.post-type-post .edit-post-fullscreen-mode-close__toolbar__override .close-button-override-thin,.post-type-wp_template_part .edit-post-fullscreen-mode-close__toolbar__override .close-button-override-thin{display:flex}.post-type-page .edit-post-fullscreen-mode-close__toolbar__override .close-button-override__label,.post-type-post .edit-post-fullscreen-mode-close__toolbar__override .close-button-override__label,.post-type-wp_template_part .edit-post-fullscreen-mode-close__toolbar__override .close-button-override__label{display:none}}.post-type-page .block-editor-editor-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override,.post-type-page .interface-interface-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override,.post-type-post .block-editor-editor-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override,.post-type-post .interface-interface-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override,.post-type-wp_template_part .block-editor-editor-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override,.post-type-wp_template_part .interface-interface-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override{margin-right:-24px;margin-left:24px}@media (max-width:782px){.post-type-page .block-editor-editor-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override,.post-type-page .interface-interface-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override,.post-type-post .block-editor-editor-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override,.post-type-post .interface-interface-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override,.post-type-wp_template_part .block-editor-editor-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override,.post-type-wp_template_part .interface-interface-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override{display:none}}@media (max-width:960px){.post-type-page .block-editor-editor-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override .close-button-override__label,.post-type-page .interface-interface-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override .close-button-override__label,.post-type-post .block-editor-editor-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override .close-button-override__label,.post-type-post .interface-interface-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override .close-button-override__label,.post-type-wp_template_part .block-editor-editor-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override .close-button-override__label,.post-type-wp_template_part .interface-interface-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override .close-button-override__label{display:none}}@media (max-width:599px){.post-type-page .block-editor-editor-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override,.post-type-page .interface-interface-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override,.post-type-post .block-editor-editor-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override,.post-type-post .interface-interface-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override,.post-type-wp_template_part .block-editor-editor-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override,.post-type-wp_template_part .interface-interface-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override{margin-right:-24px}}.post-type-wp_template_part .edit-post-post-status,.post-type-wp_template_part .editor-post-title,.post-type-wp_template_part .editor-post-trash{display:none}.post-type-wp_template_part .edit-post-visual-editor{margin-top:20px;padding-top:0}.post-type-wp_template_part .editor-post-switch-to-draft{display:none}@media (min-width:768px){.post-type-page .block-editor-editor-skeleton__content,.post-type-page .edit-post-editor-regions__content,.post-type-wp_template_part .block-editor-editor-skeleton__content,.post-type-wp_template_part .edit-post-editor-regions__content{background:#eee}.post-type-page .edit-post-editor-regions__content .edit-post-visual-editor,.post-type-page .edit-post-visual-editor.editor-styles-wrapper,.post-type-wp_template_part .edit-post-editor-regions__content .edit-post-visual-editor,.post-type-wp_template_part .edit-post-visual-editor.editor-styles-wrapper{box-shadow:0 2px 2px 0 rgba(0,0,0,.14),0 3px 1px -2px rgba(0,0,0,.12),0 1px 5px 0 rgba(0,0,0,.2);flex:none;margin:36px 32px}}.post-type-page .block-editor-block-list__layout,.post-type-wp_template_part .block-editor-block-list__layout{padding-right:0;padding-left:0}.post-type-page .block-editor-block-list__layout .block-editor-block-list__block[data-align=full],.post-type-page .block-editor-block-list__layout .wp-block[data-align=full],.post-type-wp_template_part .block-editor-block-list__layout .block-editor-block-list__block[data-align=full],.post-type-wp_template_part .block-editor-block-list__layout .wp-block[data-align=full]{margin-right:0;margin-left:0}.post-type-page .block-editor-block-list__block[data-align=full]>.block-editor-block-list__block-edit,.post-type-wp_template_part .block-editor-block-list__block[data-align=full]>.block-editor-block-list__block-edit{margin-left:0;margin-right:0}.post-type-page .block-editor-block-list__block[data-align=wide]>.block-editor-block-list__block-edit,.post-type-wp_template_part .block-editor-block-list__block[data-align=wide]>.block-editor-block-list__block-edit{margin-left:14px;margin-right:14px}@media (max-width:1200px){.post-type-page .wp-block:not([data-align=full]):not([data-align=wide]),.post-type-wp_template_part .wp-block:not([data-align=full]):not([data-align=wide]){max-width:580px}.post-type-page .is-sidebar-opened .wp-block:not([data-align=full]):not([data-align=wide]),.post-type-wp_template_part .is-sidebar-opened .wp-block:not([data-align=full]):not([data-align=wide]){max-width:400px}}.post-type-page .block-editor-writing-flow__click-redirect,.post-type-wp_template_part .block-editor-writing-flow__click-redirect{display:none}.editor-styles-wrapper{background:#fff}.post-type-page .edit-post-visual-editor{padding-top:0}.post-type-page .block-editor-writing-flow{display:block}.post-type-page .wp-block.template__block-container .wp-block-column [data-type="core/social-links"] [data-block]{margin:0}@media (max-width:600px){.components-dropdown.table-of-contents{display:none}}
1
+ .wp-block-a8c-navigation-menu.main-navigation{pointer-events:none}.post-content-block__selector{width:300px}.post-content-block__selector a{font-family:sans-serif;font-size:13px;padding-right:8px}.post-content-block__preview{pointer-events:none}.post-content-block__preview:after{content:"";clear:both;display:table}.post-content-block .editor-post-title,.show-post-title-before-content .editor-post-title{display:none}.show-post-title-before-content .post-content-block .editor-post-title{display:block}.block-editor-block-list__layout .post-content__block.is-selected .block-editor-block-contextual-toolbar{display:none}.block-editor-block-list__layout .post-content__block.block-editor-block-list__block.has-child-selected>.block-editor-block-list__block-edit:before,.block-editor-block-list__layout .post-content__block.block-editor-block-list__block.is-hovered>.block-editor-block-list__block-edit:before,.block-editor-block-list__layout .post-content__block.block-editor-block-list__block.is-navigate-mode>.block-editor-block-list__block-edit:before,.block-editor-block-list__layout .post-content__block.block-editor-block-list__block>.block-editor-block-list__block-edit:before{transition:none;border:none;outline:none;box-shadow:none}.block-editor-block-list__layout .post-content__block.block-editor-block-list__block.has-child-selected>.block-editor-block-list__block-edit>.block-editor-block-list__breadcrumb,.block-editor-block-list__layout .post-content__block.block-editor-block-list__block.is-hovered>.block-editor-block-list__block-edit>.block-editor-block-list__breadcrumb,.block-editor-block-list__layout .post-content__block.block-editor-block-list__block.is-navigate-mode>.block-editor-block-list__block-edit>.block-editor-block-list__breadcrumb,.block-editor-block-list__layout .post-content__block.block-editor-block-list__block>.block-editor-block-list__block-edit>.block-editor-block-list__breadcrumb{display:none}.site-credit__block{display:flex;flex-direction:row;align-items:center;font-size:14px;color:grey}.site-credit__block.has-text-align-center{justify-content:center}.site-credit__block.has-text-align-left{justify-content:flex-start}.site-credit__block.has-text-align-right{justify-content:flex-end}.site-credit__block .site-name{font-weight:700}.site-credit__block .site-credit__selection{margin-right:5px;display:flex;flex-direction:row;align-items:center}.site-credit__block .site-credit__selection .components-base-control .components-base-control__field{margin-bottom:0}.block-editor .wp-block-a8c-site-description:focus{box-shadow:none;background-color:transparent}.block-editor .wp-block.is-selected .wp-block-a8c-site-description::-webkit-input-placeholder{color:transparent}.block-editor .wp-block.is-selected .wp-block-a8c-site-description:-moz-placeholder,.block-editor .wp-block.is-selected .wp-block-a8c-site-description::-moz-placeholder{color:transparent}.block-editor .wp-block.is-selected .wp-block-a8c-site-description:-ms-input-placeholder{color:transparent}.block-editor .wp-block-a8c-site-title:focus{box-shadow:none;background-color:transparent}.block-editor .wp-block.is-selected .wp-block-a8c-site-title::-webkit-input-placeholder{color:transparent}.block-editor .wp-block.is-selected .wp-block-a8c-site-title:-moz-placeholder,.block-editor .wp-block.is-selected .wp-block-a8c-site-title::-moz-placeholder{color:transparent}.block-editor .wp-block.is-selected .wp-block-a8c-site-title:-ms-input-placeholder{color:transparent}.template-block{min-height:200px;overflow:hidden;position:relative;margin-top:20px}.post-type-page .editor-styles-wrapper .template-block .fse-template-part{padding:0}.components-popover.block-editor-block-list__block-popover .components-popover__content .block-editor-block-contextual-toolbar[data-type="a8c/template"]{display:none}.template__block-container:before{display:none}.template__block-container:hover{cursor:pointer}.template__block-container .block-editor-block-list__block-edit [data-block]{margin:0}.template__block-container .is-navigating-to-template .components-disabled,.template__block-container.is-selected .components-disabled,.template__block-container:hover .components-disabled{filter:blur(2px);transition:filter .2s linear}.template__block-container .is-navigating-to-template .template-block__overlay,.template__block-container.is-selected .template-block__overlay,.template__block-container:hover .template-block__overlay{opacity:1;transition:opacity .2s linear}.template__block-container .is-navigating-to-template .template-block__overlay .components-button,.template__block-container.is-selected .template-block__overlay .components-button,.template__block-container:hover .template-block__overlay .components-button{opacity:1;transition:opacity .2s linear}.template__block-container .components-disabled{filter:blur(0);transition:filter .2s linear 0s}.template__block-container .block-editor-block-contextual-toolbar,.template__block-container .block-editor-block-list__block-edit:before,.template__block-container .block-editor-block-list__block-mobile-toolbar,.template__block-container .block-editor-block-list__breadcrumb,.template__block-container .block-editor-block-list__insertion-point{display:none}.template__block-container .template-block__overlay{background:hsla(0,0%,100%,.8);border:0 solid rgba(123,134,162,.3);bottom:0;right:0;margin:0;opacity:0;padding:0;position:absolute;left:0;transition:opacity .2s linear 0s;top:0;z-index:2}.is-selected .template__block-container .template-block__overlay{border-color:rgba(66,88,99,.4)}.block-editor-block-list__block:first-child .template__block-container .template-block__overlay{border-bottom-width:1px}.block-editor-block-list__block:last-child .template__block-container .template-block__overlay{border-top-width:1px}@media only screen and (min-width:768px){.template__block-container .template-block__overlay{border-width:1px}}.template__block-container .template-block__overlay .components-button{opacity:0;transition:opacity .2s linear 0s;margin:0 auto}.template__block-container .template-block__overlay .components-button.hidden{display:none}.template__block-container .template-block__overlay .template-block__loading{display:flex;align-items:center;color:#191e23}.block-editor-page:not(.post-type-wp_template_part) .fse-site-logo .components-placeholder__fieldset,.block-editor-page:not(.post-type-wp_template_part) .fse-site-logo .components-placeholder__instructions{display:none}.template-block__placeholder .components-spinner{margin:0 auto}.close-button-override-thin,.post-type-page .edit-post-fullscreen-mode-close__toolbar,.post-type-page .edit-post-header .edit-post-fullscreen-mode-close,.post-type-post .edit-post-fullscreen-mode-close__toolbar,.post-type-post .edit-post-header .edit-post-fullscreen-mode-close,.post-type-wp_template_part .edit-post-fullscreen-mode-close__toolbar,.post-type-wp_template_part .edit-post-header .edit-post-fullscreen-mode-close{display:none}.post-type-page .edit-post-fullscreen-mode-close__toolbar__override,.post-type-post .edit-post-fullscreen-mode-close__toolbar__override,.post-type-wp_template_part .edit-post-fullscreen-mode-close__toolbar__override{display:flex;align-items:center;margin-left:10px;margin-right:-24px;border:none;border-left:1px solid #e2e4e7}.post-type-page .edit-post-fullscreen-mode-close__toolbar__override a,.post-type-page .edit-post-fullscreen-mode-close__toolbar__override a:active,.post-type-page .edit-post-fullscreen-mode-close__toolbar__override a:hover,.post-type-page .edit-post-fullscreen-mode-close__toolbar__override a:link,.post-type-page .edit-post-fullscreen-mode-close__toolbar__override a:visited,.post-type-post .edit-post-fullscreen-mode-close__toolbar__override a,.post-type-post .edit-post-fullscreen-mode-close__toolbar__override a:active,.post-type-post .edit-post-fullscreen-mode-close__toolbar__override a:hover,.post-type-post .edit-post-fullscreen-mode-close__toolbar__override a:link,.post-type-post .edit-post-fullscreen-mode-close__toolbar__override a:visited,.post-type-wp_template_part .edit-post-fullscreen-mode-close__toolbar__override a,.post-type-wp_template_part .edit-post-fullscreen-mode-close__toolbar__override a:active,.post-type-wp_template_part .edit-post-fullscreen-mode-close__toolbar__override a:hover,.post-type-wp_template_part .edit-post-fullscreen-mode-close__toolbar__override a:link,.post-type-wp_template_part .edit-post-fullscreen-mode-close__toolbar__override a:visited{text-decoration:none}.post-type-page .edit-post-fullscreen-mode-close__toolbar__override .close-button-override__label,.post-type-post .edit-post-fullscreen-mode-close__toolbar__override .close-button-override__label,.post-type-wp_template_part .edit-post-fullscreen-mode-close__toolbar__override .close-button-override__label{font-size:13px}.post-type-page .edit-post-fullscreen-mode-close__toolbar__override .dashicons-arrow-left-alt2,.post-type-post .edit-post-fullscreen-mode-close__toolbar__override .dashicons-arrow-left-alt2,.post-type-wp_template_part .edit-post-fullscreen-mode-close__toolbar__override .dashicons-arrow-left-alt2{margin-right:-7px}@media (max-width:599px){.post-type-page .edit-post-fullscreen-mode-close__toolbar__override,.post-type-post .edit-post-fullscreen-mode-close__toolbar__override,.post-type-wp_template_part .edit-post-fullscreen-mode-close__toolbar__override{margin-right:-2px}}@media (max-width:400px){.post-type-page .edit-post-fullscreen-mode-close__toolbar__override .close-button-override-wide,.post-type-post .edit-post-fullscreen-mode-close__toolbar__override .close-button-override-wide,.post-type-wp_template_part .edit-post-fullscreen-mode-close__toolbar__override .close-button-override-wide{display:none}.post-type-page .edit-post-fullscreen-mode-close__toolbar__override .close-button-override-thin,.post-type-post .edit-post-fullscreen-mode-close__toolbar__override .close-button-override-thin,.post-type-wp_template_part .edit-post-fullscreen-mode-close__toolbar__override .close-button-override-thin{display:flex}.post-type-page .edit-post-fullscreen-mode-close__toolbar__override .close-button-override__label,.post-type-post .edit-post-fullscreen-mode-close__toolbar__override .close-button-override__label,.post-type-wp_template_part .edit-post-fullscreen-mode-close__toolbar__override .close-button-override__label{display:none}}.post-type-page .block-editor-editor-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override,.post-type-page .interface-interface-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override,.post-type-post .block-editor-editor-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override,.post-type-post .interface-interface-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override,.post-type-wp_template_part .block-editor-editor-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override,.post-type-wp_template_part .interface-interface-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override{margin-right:-24px;margin-left:24px}@media (max-width:782px){.post-type-page .block-editor-editor-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override,.post-type-page .interface-interface-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override,.post-type-post .block-editor-editor-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override,.post-type-post .interface-interface-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override,.post-type-wp_template_part .block-editor-editor-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override,.post-type-wp_template_part .interface-interface-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override{display:none}}@media (max-width:960px){.post-type-page .block-editor-editor-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override .close-button-override__label,.post-type-page .interface-interface-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override .close-button-override__label,.post-type-post .block-editor-editor-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override .close-button-override__label,.post-type-post .interface-interface-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override .close-button-override__label,.post-type-wp_template_part .block-editor-editor-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override .close-button-override__label,.post-type-wp_template_part .interface-interface-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override .close-button-override__label{display:none}}@media (max-width:599px){.post-type-page .block-editor-editor-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override,.post-type-page .interface-interface-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override,.post-type-post .block-editor-editor-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override,.post-type-post .interface-interface-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override,.post-type-wp_template_part .block-editor-editor-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override,.post-type-wp_template_part .interface-interface-skeleton__header .edit-post-fullscreen-mode-close__toolbar__override{margin-right:-24px}}.edit-post-header-toolbar>.edit-post-header-toolbar__inserter-toggle{display:none}.post-type-wp_template_part .edit-post-post-status,.post-type-wp_template_part .editor-post-title,.post-type-wp_template_part .editor-post-trash{display:none}.post-type-wp_template_part .edit-post-visual-editor{margin-top:20px;padding-top:0}.post-type-wp_template_part .editor-post-switch-to-draft{display:none}@media (min-width:768px){.post-type-page .block-editor-editor-skeleton__content,.post-type-page .edit-post-editor-regions__content,.post-type-wp_template_part .block-editor-editor-skeleton__content,.post-type-wp_template_part .edit-post-editor-regions__content{background:#eee}.post-type-page .edit-post-editor-regions__content .edit-post-visual-editor,.post-type-page .edit-post-visual-editor.editor-styles-wrapper,.post-type-wp_template_part .edit-post-editor-regions__content .edit-post-visual-editor,.post-type-wp_template_part .edit-post-visual-editor.editor-styles-wrapper{box-shadow:0 2px 2px 0 rgba(0,0,0,.14),0 3px 1px -2px rgba(0,0,0,.12),0 1px 5px 0 rgba(0,0,0,.2);flex:none;margin:36px 32px}}.post-type-page .block-editor-block-list__layout,.post-type-wp_template_part .block-editor-block-list__layout{padding-right:0;padding-left:0}.post-type-page .block-editor-block-list__layout .block-editor-block-list__block[data-align=full],.post-type-page .block-editor-block-list__layout .wp-block[data-align=full],.post-type-wp_template_part .block-editor-block-list__layout .block-editor-block-list__block[data-align=full],.post-type-wp_template_part .block-editor-block-list__layout .wp-block[data-align=full]{margin-right:0;margin-left:0}.post-type-page .block-editor-block-list__block[data-align=full]>.block-editor-block-list__block-edit,.post-type-wp_template_part .block-editor-block-list__block[data-align=full]>.block-editor-block-list__block-edit{margin-left:0;margin-right:0}.post-type-page .block-editor-block-list__block[data-align=wide]>.block-editor-block-list__block-edit,.post-type-wp_template_part .block-editor-block-list__block[data-align=wide]>.block-editor-block-list__block-edit{margin-left:14px;margin-right:14px}@media (max-width:1200px){.post-type-page .wp-block:not([data-align=full]):not([data-align=wide]),.post-type-wp_template_part .wp-block:not([data-align=full]):not([data-align=wide]){max-width:580px}.post-type-page .is-sidebar-opened .wp-block:not([data-align=full]):not([data-align=wide]),.post-type-wp_template_part .is-sidebar-opened .wp-block:not([data-align=full]):not([data-align=wide]){max-width:400px}}.post-type-page .block-editor-writing-flow__click-redirect,.post-type-wp_template_part .block-editor-writing-flow__click-redirect{display:none}.editor-styles-wrapper{background:#fff}.post-type-page .edit-post-visual-editor{padding-top:0}.post-type-page .block-editor-writing-flow{display:block}.post-type-page .wp-block.template__block-container .wp-block-column [data-type="core/social-links"] [data-block]{margin:0}@media (max-width:600px){.components-dropdown.table-of-contents{display:none}}
dotcom-fse/editor/style.scss CHANGED
@@ -1,3 +1,7 @@
 
 
 
 
1
  .post-type-wp_template_part {
2
  .editor-post-title,
3
  .editor-post-trash {
1
+ .edit-post-header-toolbar > .edit-post-header-toolbar__inserter-toggle {
2
+ display: none;
3
+ }
4
+
5
  .post-type-wp_template_part {
6
  .editor-post-title,
7
  .editor-post-trash {
event-countdown-block/index.php CHANGED
@@ -10,7 +10,7 @@ add_action(
10
  function() {
11
 
12
  $asset_file = __DIR__ . '/dist/event-countdown-block.asset.php';
13
- $asset = file_exists( $asset_file ) ? require_once $asset_file : null;
14
  $dependencies = isset( $asset['dependencies'] ) ? $asset['dependencies'] : array();
15
  $version = isset( $asset['version'] ) ? $asset['version'] : filemtime( __DIR__ . '/dist/event-countdown-block.js' );
16
 
10
  function() {
11
 
12
  $asset_file = __DIR__ . '/dist/event-countdown-block.asset.php';
13
+ $asset = file_exists( $asset_file ) ? require $asset_file : null;
14
  $dependencies = isset( $asset['dependencies'] ) ? $asset['dependencies'] : array();
15
  $version = isset( $asset['version'] ) ? $asset['version'] : filemtime( __DIR__ . '/dist/event-countdown-block.js' );
16
 
full-site-editing-plugin.php CHANGED
@@ -2,7 +2,7 @@
2
  /**
3
  * Plugin Name: Full Site Editing
4
  * Description: Enhances your page creation workflow within the Block Editor.
5
- * Version: 1.5
6
  * Author: Automattic
7
  * Author URI: https://automattic.com/wordpress-plugins/
8
  * License: GPLv2 or later
@@ -35,7 +35,7 @@ namespace A8C\FSE;
35
  *
36
  * @var string
37
  */
38
- define( 'PLUGIN_VERSION', '1.5' );
39
 
40
  // Always include these helper files for dotcom FSE.
41
  require_once __DIR__ . '/dotcom-fse/helpers.php';
@@ -273,3 +273,13 @@ function load_block_inserter_modifications() {
273
  require_once __DIR__ . '/block-inserter-modifications/index.php';
274
  }
275
  add_action( 'plugins_loaded', __NAMESPACE__ . '\load_block_inserter_modifications' );
 
 
 
 
 
 
 
 
 
 
2
  /**
3
  * Plugin Name: Full Site Editing
4
  * Description: Enhances your page creation workflow within the Block Editor.
5
+ * Version: 1.6
6
  * Author: Automattic
7
  * Author URI: https://automattic.com/wordpress-plugins/
8
  * License: GPLv2 or later
35
  *
36
  * @var string
37
  */
38
+ define( 'PLUGIN_VERSION', '1.6' );
39
 
40
  // Always include these helper files for dotcom FSE.
41
  require_once __DIR__ . '/dotcom-fse/helpers.php';
273
  require_once __DIR__ . '/block-inserter-modifications/index.php';
274
  }
275
  add_action( 'plugins_loaded', __NAMESPACE__ . '\load_block_inserter_modifications' );
276
+
277
+ /**
278
+ * Load WPCOM block editor nav sidebar
279
+ */
280
+ function load_wpcom_block_editor_sidebar() {
281
+ if ( defined( 'WPCOM_BLOCK_EDITOR_SIDEBAR' ) && WPCOM_BLOCK_EDITOR_SIDEBAR ) {
282
+ require_once __DIR__ . '/wpcom-block-editor-nav-sidebar/class-wpcom-block-editor-nav-sidebar.php';
283
+ }
284
+ }
285
+ add_action( 'plugins_loaded', __NAMESPACE__ . '\load_wpcom_block_editor_sidebar' );
global-styles/class-global-styles.php CHANGED
@@ -317,7 +317,7 @@ class Global_Styles {
317
  public function enqueue_block_editor_assets() {
318
  $asset_file = plugin_dir_path( __FILE__ ) . 'dist/global-styles.asset.php';
319
  $asset = file_exists( $asset_file )
320
- ? require_once $asset_file
321
  : null;
322
  $dependencies = isset( $asset['dependencies'] ) ?
323
  $asset['dependencies'] :
317
  public function enqueue_block_editor_assets() {
318
  $asset_file = plugin_dir_path( __FILE__ ) . 'dist/global-styles.asset.php';
319
  $asset = file_exists( $asset_file )
320
+ ? require $asset_file
321
  : null;
322
  $dependencies = isset( $asset['dependencies'] ) ?
323
  $asset['dependencies'] :
jetpack-timeline/index.php CHANGED
@@ -10,7 +10,7 @@ add_action(
10
  'init',
11
  function() {
12
  $asset_file = __DIR__ . '/dist/jetpack-timleine.asset.php';
13
- $asset = file_exists( $asset_file ) ? require_once $asset_file : null;
14
  $dependencies = isset( $asset['dependencies'] ) ? $asset['dependencies'] : array();
15
  $version = isset( $asset['version'] ) ? $asset['version'] : filemtime( __DIR__ . '/index.js' );
16
 
10
  'init',
11
  function() {
12
  $asset_file = __DIR__ . '/dist/jetpack-timleine.asset.php';
13
+ $asset = file_exists( $asset_file ) ? require $asset_file : null;
14
  $dependencies = isset( $asset['dependencies'] ) ? $asset['dependencies'] : array();
15
  $version = isset( $asset['version'] ) ? $asset['version'] : filemtime( __DIR__ . '/index.js' );
16
 
premium-content/blocks/logged-out-view/index.js CHANGED
@@ -69,6 +69,7 @@ const settings = {
69
  supports: {
70
  // Hide this block from the inserter.
71
  inserter: false,
 
72
  },
73
  edit,
74
  save,
69
  supports: {
70
  // Hide this block from the inserter.
71
  inserter: false,
72
+ html: false,
73
  },
74
  edit,
75
  save,
premium-content/blocks/subscriber-view/index.js CHANGED
@@ -24,6 +24,7 @@ const settings = {
24
  supports: {
25
  // Hide this block from the inserter.
26
  inserter: false,
 
27
  },
28
  edit,
29
  save,
24
  supports: {
25
  // Hide this block from the inserter.
26
  inserter: false,
27
+ html: false,
28
  },
29
  edit,
30
  save,
premium-content/dist/premium-content.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('lodash', 'react', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-rich-text', 'wp-url'), 'version' => '4564b1a9b24d5f6593cd07166a2639fc');
1
+ <?php return array('dependencies' => array('lodash', 'react', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-rich-text', 'wp-url'), 'version' => 'd1090f81c29390b6221ab6a762f8ec9c');
premium-content/dist/premium-content.js CHANGED
@@ -1,9 +1,9 @@
1
- !function(e,t){for(var n in t)e[n]=t[n]}(window,function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=57)}([function(e,t){!function(){e.exports=this.wp.element}()},function(e,t){!function(){e.exports=this.wp.i18n}()},function(e,t){!function(){e.exports=this.wp.components}()},function(e,t){!function(){e.exports=this.wp.blockEditor}()},function(e,t){!function(){e.exports=this.wp.data}()},function(e,t){!function(){e.exports=this.wp.compose}()},function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n.apply(this,arguments)}e.exports=n},function(e,t,n){var r=n(36),o=n(37),i=n(19),c=n(38);e.exports=function(e,t){return r(e)||o(e,t)||i(e,t)||c()}},function(e,t){!function(){e.exports=this.React}()},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){var r=n(9);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}e.exports=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},function(e,t){!function(){e.exports=this.lodash}()},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t){!function(){e.exports=this.wp.url}()},function(e,t,n){"use strict";var r=n(23),o=n(22);function i(e,t){return 55296==(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function c(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function s(e){return 1===e.length?"0"+e:e}function a(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=o,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),o=0;o<e.length;o+=2)n.push(parseInt(e[o]+e[o+1],16))}else for(var r=0,o=0;o<e.length;o++){var c=e.charCodeAt(o);c<128?n[r++]=c:c<2048?(n[r++]=c>>6|192,n[r++]=63&c|128):i(e,o)?(c=65536+((1023&c)<<10)+(1023&e.charCodeAt(++o)),n[r++]=c>>18|240,n[r++]=c>>12&63|128,n[r++]=c>>6&63|128,n[r++]=63&c|128):(n[r++]=c>>12|224,n[r++]=c>>6&63|128,n[r++]=63&c|128)}else for(o=0;o<e.length;o++)n[o]=0|e[o];return n},t.toHex=function(e){for(var t="",n=0;n<e.length;n++)t+=s(e[n].toString(16));return t},t.htonl=c,t.toHex32=function(e,t){for(var n="",r=0;r<e.length;r++){var o=e[r];"little"===t&&(o=c(o)),n+=a(o.toString(16))}return n},t.zero2=s,t.zero8=a,t.join32=function(e,t,n,o){var i=n-t;r(i%4==0);for(var c=new Array(i/4),s=0,a=t;s<c.length;s++,a+=4){var l;l="big"===o?e[a]<<24|e[a+1]<<16|e[a+2]<<8|e[a+3]:e[a+3]<<24|e[a+2]<<16|e[a+1]<<8|e[a],c[s]=l>>>0}return c},t.split32=function(e,t){for(var n=new Array(4*e.length),r=0,o=0;r<e.length;r++,o+=4){var i=e[r];"big"===t?(n[o]=i>>>24,n[o+1]=i>>>16&255,n[o+2]=i>>>8&255,n[o+3]=255&i):(n[o+3]=i>>>24,n[o+2]=i>>>16&255,n[o+1]=i>>>8&255,n[o]=255&i)}return n},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<<t|e>>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,n){return e+t+n>>>0},t.sum32_4=function(e,t,n,r){return e+t+n+r>>>0},t.sum32_5=function(e,t,n,r,o){return e+t+n+r+o>>>0},t.sum64=function(e,t,n,r){var o=e[t],i=r+e[t+1]>>>0,c=(i<r?1:0)+n+o;e[t]=c>>>0,e[t+1]=i},t.sum64_hi=function(e,t,n,r){return(t+r>>>0<t?1:0)+e+n>>>0},t.sum64_lo=function(e,t,n,r){return t+r>>>0},t.sum64_4_hi=function(e,t,n,r,o,i,c,s){var a=0,l=t;return a+=(l=l+r>>>0)<t?1:0,a+=(l=l+i>>>0)<i?1:0,e+n+o+c+(a+=(l=l+s>>>0)<s?1:0)>>>0},t.sum64_4_lo=function(e,t,n,r,o,i,c,s){return t+r+i+s>>>0},t.sum64_5_hi=function(e,t,n,r,o,i,c,s,a,l){var u=0,p=t;return u+=(p=p+r>>>0)<t?1:0,u+=(p=p+i>>>0)<i?1:0,u+=(p=p+s>>>0)<s?1:0,e+n+o+c+a+(u+=(p=p+l>>>0)<l?1:0)>>>0},t.sum64_5_lo=function(e,t,n,r,o,i,c,s,a,l){return t+r+i+s+l>>>0},t.rotr64_hi=function(e,t,n){return(t<<32-n|e>>>n)>>>0},t.rotr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0},t.shr64_hi=function(e,t,n){return e>>>n},t.shr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0}},function(e,t,n){var r=n(39),o=n(40),i=n(19),c=n(41);e.exports=function(e){return r(e)||o(e)||i(e)||c()}},function(e,t,n){"use strict";var r,o="object"==typeof Reflect?Reflect:null,i=o&&"function"==typeof o.apply?o.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};r=o&&"function"==typeof o.ownKeys?o.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var c=Number.isNaN||function(e){return e!=e};function s(){s.init.call(this)}e.exports=s,s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var a=10;function l(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function u(e){return void 0===e._maxListeners?s.defaultMaxListeners:e._maxListeners}function p(e,t,n,r){var o,i,c,s;if(l(n),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),c=i[t]),void 0===c)c=i[t]=n,++e._eventsCount;else if("function"==typeof c?c=i[t]=r?[n,c]:[c,n]:r?c.unshift(n):c.push(n),(o=u(e))>0&&c.length>o&&!c.warned){c.warned=!0;var a=new Error("Possible EventEmitter memory leak detected. "+c.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");a.name="MaxListenersExceededWarning",a.emitter=e,a.type=t,a.count=c.length,s=a,console&&console.warn&&console.warn(s)}return e}function m(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=m.bind(r);return o.listener=n,r.wrapFn=o,o}function d(e,t,n){var r=e._events;if(void 0===r)return[];var o=r[t];return void 0===o?[]:"function"==typeof o?n?[o.listener||o]:[o]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(o):b(o,o.length)}function g(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function b(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(e){if("number"!=typeof e||e<0||c(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");a=e}}),s.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||c(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},s.prototype.getMaxListeners=function(){return u(this)},s.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,o=this._events;if(void 0!==o)r=r&&void 0===o.error;else if(!r)return!1;if(r){var c;if(t.length>0&&(c=t[0]),c instanceof Error)throw c;var s=new Error("Unhandled error."+(c?" ("+c.message+")":""));throw s.context=c,s}var a=o[e];if(void 0===a)return!1;if("function"==typeof a)i(a,this,t);else{var l=a.length,u=b(a,l);for(n=0;n<l;++n)i(u[n],this,t)}return!0},s.prototype.addListener=function(e,t){return p(this,e,t,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(e,t){return p(this,e,t,!0)},s.prototype.once=function(e,t){return l(t),this.on(e,f(this,e,t)),this},s.prototype.prependOnceListener=function(e,t){return l(t),this.prependListener(e,f(this,e,t)),this},s.prototype.removeListener=function(e,t){var n,r,o,i,c;if(l(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(o=-1,i=n.length-1;i>=0;i--)if(n[i]===t||n[i].listener===t){c=n[i].listener,o=i;break}if(o<0)return this;0===o?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,o),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,c||t)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var o,i=Object.keys(n);for(r=0;r<i.length;++r)"removeListener"!==(o=i[r])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},s.prototype.listeners=function(e){return d(this,e,!0)},s.prototype.rawListeners=function(e){return d(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):g.call(e,t)},s.prototype.listenerCount=g,s.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},function(e,t){!function(){e.exports=this.wp.apiFetch}()},function(e,t){!function(){e.exports=this.wp.richText}()},function(e,t,n){var r=n(20);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}},function(e,t,n){"use strict";function r(e){return function(){return e}}var o=function(){};o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(e){return e},e.exports=o},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},function(e,t){function n(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=n,n.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)}},function(e,t){!function(){e.exports=this.wp.blocks}()},function(e,t){function n(e,t,n,r,o,i,c){try{var s=e[i](c),a=s.value}catch(l){return void n(l)}s.done?t(a):Promise.resolve(a).then(r,o)}e.exports=function(e){return function(){var t=this,r=arguments;return new Promise((function(o,i){var c=e.apply(t,r);function s(e){n(c,o,i,s,a,"next",e)}function a(e){n(c,o,i,s,a,"throw",e)}s(void 0)}))}}},function(e,t,n){t.log=function(){var e;return"object"==typeof console&&console.log&&(e=console).log.apply(e,arguments)},t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;var n="color: "+this.color;t.splice(1,0,n,"color: inherit");var r=0,o=0;t[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(r++,"%c"===e&&(o=r))})),t.splice(o,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(n){}},t.load=function(){var e;try{e=t.storage.getItem("debug")}catch(n){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],e.exports=n(42)(t),e.exports.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="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},o=s(n(8)),i=s(n(44)),c=s(n(47));function s(e){return e&&e.__esModule?e:{default:e}}var a=void 0;function l(e,t){var n,c,s,u,p,m,f,d,g=[],b={};for(m=0;m<e.length;m++)if("string"!==(p=e[m]).type){if(!t.hasOwnProperty(p.value)||void 0===t[p.value])throw new Error("Invalid interpolation, missing component node: `"+p.value+"`");if("object"!==r(t[p.value]))throw new Error("Invalid interpolation, component node must be a ReactElement or null: `"+p.value+"`","\n> "+a);if("componentClose"===p.type)throw new Error("Missing opening component token: `"+p.value+"`");if("componentOpen"===p.type){n=t[p.value],s=m;break}g.push(t[p.value])}else g.push(p.value);return n&&(u=function(e,t){var n,r,o=t[e],i=0;for(r=e+1;r<t.length;r++)if((n=t[r]).value===o.value){if("componentOpen"===n.type){i++;continue}if("componentClose"===n.type){if(0===i)return r;i--}}throw new Error("Missing closing component token `"+o.value+"`")}(s,e),f=l(e.slice(s+1,u),t),c=o.default.cloneElement(n,{},f),g.push(c),u<e.length-1&&(d=l(e.slice(u+1),t),g=g.concat(d))),1===g.length?g[0]:(g.forEach((function(e,t){e&&(b["interpolation-child-"+t]=e)})),(0,i.default)(b))}t.default=function(e){var t=e.mixedString,n=e.components,o=e.throwErrors;if(a=t,!n)return t;if("object"!==(void 0===n?"undefined":r(n))){if(o)throw new Error("Interpolation Error: unable to process `"+t+"` because components is not an object");return t}var i=(0,c.default)(t);try{return l(i,n)}catch(s){if(o)throw new Error("Interpolation Error: unable to process `"+t+"` because of error `"+s.message+"`");return t}}},function(e,t,n){var r=n(16),o=n(22);function i(e){if(!(this instanceof i))return new i(e);"number"==typeof e&&(e={max:e}),e||(e={}),r.EventEmitter.call(this),this.cache={},this.head=this.tail=null,this.length=0,this.max=e.max||1e3,this.maxAge=e.maxAge||0}e.exports=i,o(i,r.EventEmitter),Object.defineProperty(i.prototype,"keys",{get:function(){return Object.keys(this.cache)}}),i.prototype.clear=function(){this.cache={},this.head=this.tail=null,this.length=0},i.prototype.remove=function(e){if("string"!=typeof e&&(e=""+e),this.cache.hasOwnProperty(e)){var t=this.cache[e];return delete this.cache[e],this._unlink(e,t.prev,t.next),t.value}},i.prototype._unlink=function(e,t,n){this.length--,0===this.length?this.head=this.tail=null:this.head===e?(this.head=t,this.cache[this.head].next=null):this.tail===e?(this.tail=n,this.cache[this.tail].prev=null):(this.cache[t].next=n,this.cache[n].prev=t)},i.prototype.peek=function(e){if(this.cache.hasOwnProperty(e)){var t=this.cache[e];if(this._checkAge(e,t))return t.value}},i.prototype.set=function(e,t){var n;if("string"!=typeof e&&(e=""+e),this.cache.hasOwnProperty(e)){if((n=this.cache[e]).value=t,this.maxAge&&(n.modified=Date.now()),e===this.head)return t;this._unlink(e,n.prev,n.next)}else n={value:t,modified:0,next:null,prev:null},this.maxAge&&(n.modified=Date.now()),this.cache[e]=n,this.length===this.max&&this.evict();return this.length++,n.next=null,n.prev=this.head,this.head&&(this.cache[this.head].next=e),this.head=e,this.tail||(this.tail=e),t},i.prototype._checkAge=function(e,t){return!(this.maxAge&&Date.now()-t.modified>this.maxAge)||(this.remove(e),this.emit("evict",{key:e,value:t.value}),!1)},i.prototype.get=function(e){if("string"!=typeof e&&(e=""+e),this.cache.hasOwnProperty(e)){var t=this.cache[e];if(this._checkAge(e,t))return this.head!==e&&(e===this.tail?(this.tail=t.next,this.cache[this.tail].prev=null):this.cache[t.prev].next=t.next,this.cache[t.next].prev=t.prev,this.cache[this.head].next=e,t.prev=this.head,t.next=null,this.head=e),t.value}},i.prototype.evict=function(){if(this.tail){var e=this.tail,t=this.remove(this.tail);this.emit("evict",{key:e,value:t})}}},function(e,t,n){"use strict";var r=n(14),o=n(48),i=n(49),c=r.rotl32,s=r.sum32,a=r.sum32_5,l=i.ft_1,u=o.BlockHash,p=[1518500249,1859775393,2400959708,3395469782];function m(){if(!(this instanceof m))return new m;u.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}r.inherits(m,u),e.exports=m,m.blockSize=512,m.outSize=160,m.hmacStrength=80,m.padLength=64,m.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;r<n.length;r++)n[r]=c(n[r-3]^n[r-8]^n[r-14]^n[r-16],1);var o=this.h[0],i=this.h[1],u=this.h[2],m=this.h[3],f=this.h[4];for(r=0;r<n.length;r++){var d=~~(r/20),g=a(c(o,5),l(d,i,u,m),f,n[r],p[d]);f=m,m=u,u=c(i,30),i=o,o=g}this.h[0]=s(this.h[0],o),this.h[1]=s(this.h[1],i),this.h[2]=s(this.h[2],u),this.h[3]=s(this.h[3],m),this.h[4]=s(this.h[4],f)},m.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t){function n(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)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}},function(e,t,n){var r=n(50);e.exports=function(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&&r(e,t)}},function(e,t,n){var r=n(51),o=n(52),i=n(53);e.exports=function(e){return function(){var t,n=r(e);if(o()){var c=r(this).constructor;t=Reflect.construct(n,arguments,c)}else t=n.apply(this,arguments);return i(this,t)}}},function(e,t,n){"use strict";e.exports=n(55)},function(e,t,n){var r;
2
  /*!
3
  Copyright (c) 2017 Jed Watson.
4
  Licensed under the MIT License (MIT), see
5
  http://jedwatson.github.io/classnames
6
- */!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"===i||"number"===i)e.push(r);else if(Array.isArray(r)&&r.length){var c=o.apply(null,r);c&&e.push(c)}else if("object"===i)for(var s in r)n.call(r,s)&&r[s]&&e.push(s)}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var c,s=e[Symbol.iterator]();!(r=(c=s.next()).done)&&(n.push(c.value),!t||n.length!==t);r=!0);}catch(a){o=!0,i=a}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t,n){var r=n(20);e.exports=function(e){if(Array.isArray(e))return r(e)}},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t,n){var r=n(15);e.exports=function(e){function t(e){for(var t=0,n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return o.colors[Math.abs(t)%o.colors.length]}function o(e){var n;function r(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];if(r.enabled){var c=r,s=Number(new Date),a=s-(n||s);c.diff=a,c.prev=n,c.curr=s,n=s,t[0]=o.coerce(t[0]),"string"!=typeof t[0]&&t.unshift("%O");var l=0;t[0]=t[0].replace(/%([a-zA-Z%])/g,(function(e,n){if("%%"===e)return e;l++;var r=o.formatters[n];if("function"==typeof r){var i=t[l];e=r.call(c,i),t.splice(l,1),l--}return e})),o.formatArgs.call(c,t);var u=c.log||o.log;u.apply(c,t)}}return r.namespace=e,r.enabled=o.enabled(e),r.useColors=o.useColors(),r.color=t(e),r.destroy=i,r.extend=c,"function"==typeof o.init&&o.init(r),o.instances.push(r),r}function i(){var e=o.instances.indexOf(this);return-1!==e&&(o.instances.splice(e,1),!0)}function c(e,t){var n=o(this.namespace+(void 0===t?":":t)+e);return n.log=this.log,n}function s(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return o.debug=o,o.default=o,o.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},o.disable=function(){var e=[].concat(r(o.names.map(s)),r(o.skips.map(s).map((function(e){return"-"+e})))).join(",");return o.enable(""),e},o.enable=function(e){var t;o.save(e),o.names=[],o.skips=[];var n=("string"==typeof e?e:"").split(/[\s,]+/),r=n.length;for(t=0;t<r;t++)n[t]&&("-"===(e=n[t].replace(/\*/g,".*?"))[0]?o.skips.push(new RegExp("^"+e.substr(1)+"$")):o.names.push(new RegExp("^"+e+"$")));for(t=0;t<o.instances.length;t++){var i=o.instances[t];i.enabled=o.enabled(i.namespace)}},o.enabled=function(e){if("*"===e[e.length-1])return!0;var t,n;for(t=0,n=o.skips.length;t<n;t++)if(o.skips[t].test(e))return!1;for(t=0,n=o.names.length;t<n;t++)if(o.names[t].test(e))return!0;return!1},o.humanize=n(43),Object.keys(e).forEach((function(t){o[t]=e[t]})),o.instances=[],o.names=[],o.skips=[],o.formatters={},o.selectColor=t,o.enable(o.load()),o}},function(e,t){var n=1e3,r=6e4,o=60*r,i=24*o;function c(e,t,n,r){var o=t>=1.5*n;return Math.round(e/n)+" "+r+(o?"s":"")}e.exports=function(e,t){t=t||{};var s=typeof e;if("string"===s&&e.length>0)return function(e){if((e=String(e)).length>100)return;var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!t)return;var c=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*c;case"weeks":case"week":case"w":return 6048e5*c;case"days":case"day":case"d":return c*i;case"hours":case"hour":case"hrs":case"hr":case"h":return c*o;case"minutes":case"minute":case"mins":case"min":case"m":return c*r;case"seconds":case"second":case"secs":case"sec":case"s":return c*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}(e);if("number"===s&&isFinite(e))return t.long?function(e){var t=Math.abs(e);if(t>=i)return c(e,t,i,"day");if(t>=o)return c(e,t,o,"hour");if(t>=r)return c(e,t,r,"minute");if(t>=n)return c(e,t,n,"second");return e+" ms"}(e):function(e){var t=Math.abs(e);if(t>=i)return Math.round(e/i)+"d";if(t>=o)return Math.round(e/o)+"h";if(t>=r)return Math.round(e/r)+"m";if(t>=n)return Math.round(e/n)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},function(e,t,n){"use strict";var r=n(8),o="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,i=n(21),c=n(45),s=n(46),a="function"==typeof Symbol&&Symbol.iterator;function l(e,t){return e&&"object"==typeof e&&null!=e.key?(n=e.key,r={"=":"=0",":":"=2"},"$"+(""+n).replace(/[=:]/g,(function(e){return r[e]}))):t.toString(36);var n,r}function u(e,t,n,r){var i,s=typeof e;if("undefined"!==s&&"boolean"!==s||(e=null),null===e||"string"===s||"number"===s||"object"===s&&e.$$typeof===o)return n(r,e,""===t?"."+l(e,0):t),1;var p=0,m=""===t?".":t+":";if(Array.isArray(e))for(var f=0;f<e.length;f++)p+=u(i=e[f],m+l(i,f),n,r);else{var d=function(e){var t=e&&(a&&e[a]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(d){0;for(var g,b=d.call(e),h=0;!(g=b.next()).done;)p+=u(i=g.value,m+l(i,h++),n,r)}else if("object"===s){0;var y=""+e;c(!1,"Objects are not valid as a React child (found: %s).%s","[object Object]"===y?"object with keys {"+Object.keys(e).join(", ")+"}":y,"")}}return p}var p=/\/+/g;function m(e){return(""+e).replace(p,"$&/")}var f,d,g=b,b=function(e){if(this.instancePool.length){var t=this.instancePool.pop();return this.call(t,e),t}return new this(e)},h=function(e){c(e instanceof this,"Trying to release an instance into a pool of a different type."),e.destructor(),this.instancePool.length<this.poolSize&&this.instancePool.push(e)};function y(e,t,n,r){this.result=e,this.keyPrefix=t,this.func=n,this.context=r,this.count=0}function v(e,t,n){var o,c,s=e.result,a=e.keyPrefix,l=e.func,u=e.context,p=l.call(u,t,e.count++);Array.isArray(p)?O(p,s,n,i.thatReturnsArgument):null!=p&&(r.isValidElement(p)&&(o=p,c=a+(!p.key||t&&t.key===p.key?"":m(p.key)+"/")+n,p=r.cloneElement(o,{key:c},void 0!==o.props?o.props.children:void 0)),s.push(p))}function O(e,t,n,r,o){var i="";null!=n&&(i=m(n)+"/");var c=y.getPooled(t,i,r,o);!function(e,t,n){null==e||u(e,"",t,n)}(e,v,c),y.release(c)}y.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},f=function(e,t,n,r){if(this.instancePool.length){var o=this.instancePool.pop();return this.call(o,e,t,n,r),o}return new this(e,t,n,r)},(d=y).instancePool=[],d.getPooled=f||g,d.poolSize||(d.poolSize=10),d.release=h;e.exports=function(e){if("object"!=typeof e||!e||Array.isArray(e))return s(!1,"React.addons.createFragment only accepts a single object. Got: %s",e),e;if(r.isValidElement(e))return s(!1,"React.addons.createFragment does not accept a ReactElement without a wrapper object."),e;c(1!==e.nodeType,"React.addons.createFragment(...): Encountered an invalid child; DOM elements are not valid children of React components.");var t=[];for(var n in e)O(e[n],t,n,i.thatReturnsArgument);return t}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,o,i,c,s){if(!e){var a;if(void 0===t)a=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,o,i,c,s],u=0;(a=new Error(t.replace(/%s/g,(function(){return l[u++]})))).name="Invariant Violation"}throw a.framesToPop=1,a}}},function(e,t,n){"use strict";var r=n(21);e.exports=r},function(e,t,n){"use strict";function r(e){return e.match(/^\{\{\//)?{type:"componentClose",value:e.replace(/\W/g,"")}:e.match(/\/\}\}$/)?{type:"componentSelfClosing",value:e.replace(/\W/g,"")}:e.match(/^\{\{/)?{type:"componentOpen",value:e.replace(/\W/g,"")}:{type:"string",value:e}}e.exports=function(e){return e.split(/(\{\{\/?\s*\w+\s*\/?\}\})/g).map(r)}},function(e,t,n){"use strict";var r=n(14),o=n(23);function i(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}t.BlockHash=i,i.prototype.update=function(e,t){if(e=r.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var n=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-n,e.length),0===this.pending.length&&(this.pending=null),e=r.join32(e,0,e.length-n,this.endian);for(var o=0;o<e.length;o+=this._delta32)this._update(e,o,o+this._delta32)}return this},i.prototype.digest=function(e){return this.update(this._pad()),o(null===this.pending),this._digest(e)},i.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,n=t-(e+this.padLength)%t,r=new Array(n+this.padLength);r[0]=128;for(var o=1;o<n;o++)r[o]=0;if(e<<=3,"big"===this.endian){for(var i=8;i<this.padLength;i++)r[o++]=0;r[o++]=0,r[o++]=0,r[o++]=0,r[o++]=0,r[o++]=e>>>24&255,r[o++]=e>>>16&255,r[o++]=e>>>8&255,r[o++]=255&e}else for(r[o++]=255&e,r[o++]=e>>>8&255,r[o++]=e>>>16&255,r[o++]=e>>>24&255,r[o++]=0,r[o++]=0,r[o++]=0,r[o++]=0,i=8;i<this.padLength;i++)r[o++]=0;return r}},function(e,t,n){"use strict";var r=n(14).rotr32;function o(e,t,n){return e&t^~e&n}function i(e,t,n){return e&t^e&n^t&n}function c(e,t,n){return e^t^n}t.ft_1=function(e,t,n,r){return 0===e?o(t,n,r):1===e||3===e?c(t,n,r):2===e?i(t,n,r):void 0},t.ch32=o,t.maj32=i,t.p32=c,t.s0_256=function(e){return r(e,2)^r(e,13)^r(e,22)},t.s1_256=function(e){return r(e,6)^r(e,11)^r(e,25)},t.g0_256=function(e){return r(e,7)^r(e,18)^e>>>3},t.g1_256=function(e){return r(e,17)^r(e,19)^e>>>10}},function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,r)}e.exports=n},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(t)}e.exports=n},function(e,t){e.exports=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}}},function(e,t,n){var r=n(54),o=n(12);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?o(e):t}},function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=n=function(e){return typeof e}:e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(t)}e.exports=n},function(e,t,n){"use strict";
7
  /** @license React v1.3.0
8
  * use-subscription.production.min.js
9
  *
@@ -16,11 +16,11 @@
16
  object-assign
17
  (c) Sindre Sorhus
18
  @license MIT
19
- */var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function c(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}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(o){return!1}}()?Object.assign:function(e,t){for(var n,s,a=c(e),l=1;l<arguments.length;l++){for(var u in n=Object(arguments[l]))o.call(n,u)&&(a[u]=n[u]);if(r){s=r(n);for(var p=0;p<s.length;p++)i.call(n,s[p])&&(a[s[p]]=n[s[p]])}}return a}},function(e,t,n){"use strict";n.r(t),n.d(t,"registerPremiumContentBlocks",(function(){return pt}));var r={};n.r(r),n.d(r,"name",(function(){return Ke})),n.d(r,"category",(function(){return He})),n.d(r,"settings",(function(){return Ge})),n.d(r,"SUPPORTED_CURRENCIES",(function(){return Ve})),n.d(r,"CURRENCY_OPTIONS",(function(){return We})),n.d(r,"minimumTransactionAmountForCurrency",(function(){return ze})),n.d(r,"isPriceValid",(function(){return Ze}));var o={};n.r(o),n.d(o,"name",(function(){return Je})),n.d(o,"category",(function(){return qe})),n.d(o,"settings",(function(){return Xe}));var i={};n.r(i),n.d(i,"name",(function(){return ct})),n.d(i,"category",(function(){return st})),n.d(i,"settings",(function(){return at}));var c=n(10),s=n.n(c),a=n(24),l=n(0),u=n(1),p={AED:{symbol:"د.إ.‏",grouping:",",decimal:".",precision:2},AFN:{symbol:"؋",grouping:",",decimal:".",precision:2},ALL:{symbol:"Lek",grouping:".",decimal:",",precision:2},AMD:{symbol:"֏",grouping:",",decimal:".",precision:2},ANG:{symbol:"ƒ",grouping:",",decimal:".",precision:2},AOA:{symbol:"Kz",grouping:",",decimal:".",precision:2},ARS:{symbol:"$",grouping:".",decimal:",",precision:2},AUD:{symbol:"A$",grouping:",",decimal:".",precision:2},AWG:{symbol:"ƒ",grouping:",",decimal:".",precision:2},AZN:{symbol:"₼",grouping:" ",decimal:",",precision:2},BAM:{symbol:"КМ",grouping:".",decimal:",",precision:2},BBD:{symbol:"Bds$",grouping:",",decimal:".",precision:2},BDT:{symbol:"৳",grouping:",",decimal:".",precision:0},BGN:{symbol:"лв.",grouping:" ",decimal:",",precision:2},BHD:{symbol:"د.ب.‏",grouping:",",decimal:".",precision:3},BIF:{symbol:"FBu",grouping:",",decimal:".",precision:0},BMD:{symbol:"$",grouping:",",decimal:".",precision:2},BND:{symbol:"$",grouping:".",decimal:",",precision:0},BOB:{symbol:"Bs",grouping:".",decimal:",",precision:2},BRL:{symbol:"R$",grouping:".",decimal:",",precision:2},BSD:{symbol:"$",grouping:",",decimal:".",precision:2},BTC:{symbol:"Ƀ",grouping:",",decimal:".",precision:2},BTN:{symbol:"Nu.",grouping:",",decimal:".",precision:1},BWP:{symbol:"P",grouping:",",decimal:".",precision:2},BYR:{symbol:"р.",grouping:" ",decimal:",",precision:2},BZD:{symbol:"BZ$",grouping:",",decimal:".",precision:2},CAD:{symbol:"C$",grouping:",",decimal:".",precision:2},CDF:{symbol:"FC",grouping:",",decimal:".",precision:2},CHF:{symbol:"CHF",grouping:"'",decimal:".",precision:2},CLP:{symbol:"$",grouping:".",decimal:",",precision:2},CNY:{symbol:"¥",grouping:",",decimal:".",precision:2},COP:{symbol:"$",grouping:".",decimal:",",precision:2},CRC:{symbol:"₡",grouping:".",decimal:",",precision:2},CUC:{symbol:"CUC",grouping:",",decimal:".",precision:2},CUP:{symbol:"$MN",grouping:",",decimal:".",precision:2},CVE:{symbol:"$",grouping:",",decimal:".",precision:2},CZK:{symbol:"Kč",grouping:" ",decimal:",",precision:2},DJF:{symbol:"Fdj",grouping:",",decimal:".",precision:0},DKK:{symbol:"kr.",grouping:"",decimal:",",precision:2},DOP:{symbol:"RD$",grouping:",",decimal:".",precision:2},DZD:{symbol:"د.ج.‏",grouping:",",decimal:".",precision:2},EGP:{symbol:"ج.م.‏",grouping:",",decimal:".",precision:2},ERN:{symbol:"Nfk",grouping:",",decimal:".",precision:2},ETB:{symbol:"ETB",grouping:",",decimal:".",precision:2},EUR:{symbol:"€",grouping:".",decimal:",",precision:2},FJD:{symbol:"FJ$",grouping:",",decimal:".",precision:2},FKP:{symbol:"£",grouping:",",decimal:".",precision:2},GBP:{symbol:"£",grouping:",",decimal:".",precision:2},GEL:{symbol:"Lari",grouping:" ",decimal:",",precision:2},GHS:{symbol:"₵",grouping:",",decimal:".",precision:2},GIP:{symbol:"£",grouping:",",decimal:".",precision:2},GMD:{symbol:"D",grouping:",",decimal:".",precision:2},GNF:{symbol:"FG",grouping:",",decimal:".",precision:0},GTQ:{symbol:"Q",grouping:",",decimal:".",precision:2},GYD:{symbol:"G$",grouping:",",decimal:".",precision:2},HKD:{symbol:"HK$",grouping:",",decimal:".",precision:2},HNL:{symbol:"L.",grouping:",",decimal:".",precision:2},HRK:{symbol:"kn",grouping:".",decimal:",",precision:2},HTG:{symbol:"G",grouping:",",decimal:".",precision:2},HUF:{symbol:"Ft",grouping:".",decimal:",",precision:0},IDR:{symbol:"Rp",grouping:".",decimal:",",precision:0},ILS:{symbol:"₪",grouping:",",decimal:".",precision:2},INR:{symbol:"₹",grouping:",",decimal:".",precision:2},IQD:{symbol:"د.ع.‏",grouping:",",decimal:".",precision:2},IRR:{symbol:"﷼",grouping:",",decimal:"/",precision:2},ISK:{symbol:"kr.",grouping:".",decimal:",",precision:0},JMD:{symbol:"J$",grouping:",",decimal:".",precision:2},JOD:{symbol:"د.ا.‏",grouping:",",decimal:".",precision:3},JPY:{symbol:"¥",grouping:",",decimal:".",precision:0},KES:{symbol:"S",grouping:",",decimal:".",precision:2},KGS:{symbol:"сом",grouping:" ",decimal:"-",precision:2},KHR:{symbol:"៛",grouping:",",decimal:".",precision:0},KMF:{symbol:"CF",grouping:",",decimal:".",precision:2},KPW:{symbol:"₩",grouping:",",decimal:".",precision:0},KRW:{symbol:"₩",grouping:",",decimal:".",precision:0},KWD:{symbol:"د.ك.‏",grouping:",",decimal:".",precision:3},KYD:{symbol:"$",grouping:",",decimal:".",precision:2},KZT:{symbol:"₸",grouping:" ",decimal:"-",precision:2},LAK:{symbol:"₭",grouping:",",decimal:".",precision:0},LBP:{symbol:"ل.ل.‏",grouping:",",decimal:".",precision:2},LKR:{symbol:"₨",grouping:",",decimal:".",precision:0},LRD:{symbol:"L$",grouping:",",decimal:".",precision:2},LSL:{symbol:"M",grouping:",",decimal:".",precision:2},LYD:{symbol:"د.ل.‏",grouping:",",decimal:".",precision:3},MAD:{symbol:"د.م.‏",grouping:",",decimal:".",precision:2},MDL:{symbol:"lei",grouping:",",decimal:".",precision:2},MGA:{symbol:"Ar",grouping:",",decimal:".",precision:0},MKD:{symbol:"ден.",grouping:".",decimal:",",precision:2},MMK:{symbol:"K",grouping:",",decimal:".",precision:2},MNT:{symbol:"₮",grouping:" ",decimal:",",precision:2},MOP:{symbol:"MOP$",grouping:",",decimal:".",precision:2},MRO:{symbol:"UM",grouping:",",decimal:".",precision:2},MTL:{symbol:"₤",grouping:",",decimal:".",precision:2},MUR:{symbol:"₨",grouping:",",decimal:".",precision:2},MVR:{symbol:"MVR",grouping:",",decimal:".",precision:1},MWK:{symbol:"MK",grouping:",",decimal:".",precision:2},MXN:{symbol:"MX$",grouping:",",decimal:".",precision:2},MYR:{symbol:"RM",grouping:",",decimal:".",precision:2},MZN:{symbol:"MT",grouping:",",decimal:".",precision:0},NAD:{symbol:"N$",grouping:",",decimal:".",precision:2},NGN:{symbol:"₦",grouping:",",decimal:".",precision:2},NIO:{symbol:"C$",grouping:",",decimal:".",precision:2},NOK:{symbol:"kr",grouping:" ",decimal:",",precision:2},NPR:{symbol:"₨",grouping:",",decimal:".",precision:2},NZD:{symbol:"NZ$",grouping:",",decimal:".",precision:2},OMR:{symbol:"﷼",grouping:",",decimal:".",precision:3},PAB:{symbol:"B/.",grouping:",",decimal:".",precision:2},PEN:{symbol:"S/.",grouping:",",decimal:".",precision:2},PGK:{symbol:"K",grouping:",",decimal:".",precision:2},PHP:{symbol:"₱",grouping:",",decimal:".",precision:2},PKR:{symbol:"₨",grouping:",",decimal:".",precision:2},PLN:{symbol:"zł",grouping:" ",decimal:",",precision:2},PYG:{symbol:"₲",grouping:".",decimal:",",precision:2},QAR:{symbol:"﷼",grouping:",",decimal:".",precision:2},RON:{symbol:"lei",grouping:".",decimal:",",precision:2},RSD:{symbol:"Дин.",grouping:".",decimal:",",precision:2},RUB:{symbol:"₽",grouping:" ",decimal:",",precision:2},RWF:{symbol:"RWF",grouping:" ",decimal:",",precision:2},SAR:{symbol:"﷼",grouping:",",decimal:".",precision:2},SBD:{symbol:"S$",grouping:",",decimal:".",precision:2},SCR:{symbol:"₨",grouping:",",decimal:".",precision:2},SDD:{symbol:"LSd",grouping:",",decimal:".",precision:2},SDG:{symbol:"£‏",grouping:",",decimal:".",precision:2},SEK:{symbol:"kr",grouping:",",decimal:".",precision:2},SGD:{symbol:"S$",grouping:",",decimal:".",precision:2},SHP:{symbol:"£",grouping:",",decimal:".",precision:2},SLL:{symbol:"Le",grouping:",",decimal:".",precision:2},SOS:{symbol:"S",grouping:",",decimal:".",precision:2},SRD:{symbol:"$",grouping:",",decimal:".",precision:2},STD:{symbol:"Db",grouping:",",decimal:".",precision:2},SVC:{symbol:"₡",grouping:",",decimal:".",precision:2},SYP:{symbol:"£",grouping:",",decimal:".",precision:2},SZL:{symbol:"E",grouping:",",decimal:".",precision:2},THB:{symbol:"฿",grouping:",",decimal:".",precision:2},TJS:{symbol:"TJS",grouping:" ",decimal:";",precision:2},TMT:{symbol:"m",grouping:" ",decimal:",",precision:0},TND:{symbol:"د.ت.‏",grouping:",",decimal:".",precision:3},TOP:{symbol:"T$",grouping:",",decimal:".",precision:2},TRY:{symbol:"TL",grouping:".",decimal:",",precision:2},TTD:{symbol:"TT$",grouping:",",decimal:".",precision:2},TVD:{symbol:"$T",grouping:",",decimal:".",precision:2},TWD:{symbol:"NT$",grouping:",",decimal:".",precision:2},TZS:{symbol:"TSh",grouping:",",decimal:".",precision:2},UAH:{symbol:"₴",grouping:" ",decimal:",",precision:2},UGX:{symbol:"USh",grouping:",",decimal:".",precision:2},USD:{symbol:"$",grouping:",",decimal:".",precision:2},UYU:{symbol:"$U",grouping:".",decimal:",",precision:2},UZS:{symbol:"сўм",grouping:" ",decimal:",",precision:2},VEB:{symbol:"Bs.",grouping:",",decimal:".",precision:2},VEF:{symbol:"Bs. F.",grouping:".",decimal:",",precision:2},VND:{symbol:"₫",grouping:".",decimal:",",precision:1},VUV:{symbol:"VT",grouping:",",decimal:".",precision:0},WST:{symbol:"WS$",grouping:",",decimal:".",precision:2},XAF:{symbol:"F",grouping:",",decimal:".",precision:2},XCD:{symbol:"$",grouping:",",decimal:".",precision:2},XOF:{symbol:"F",grouping:" ",decimal:",",precision:2},XPF:{symbol:"F",grouping:",",decimal:".",precision:2},YER:{symbol:"﷼",grouping:",",decimal:".",precision:2},ZAR:{symbol:"R",grouping:" ",decimal:",",precision:2},ZMW:{symbol:"ZK",grouping:",",decimal:".",precision:2},WON:{symbol:"₩",grouping:",",decimal:".",precision:2}};function m(e){return p[e]||{symbol:"$",grouping:",",decimal:".",precision:2}}var f,d,g,b,h=n(11),y=n(6),v=n.n(y),O=n(7),j=n.n(O),C=n(2),w=n(5),_=n(4),k=n(13),S=n(15),x=n.n(S),E=n(9),P=n.n(E),F=n(26),N=n.n(F),B=n(27),A=n.n(B);f={"(":9,"!":8,"*":7,"/":7,"%":7,"+":6,"-":6,"<":5,"<=":5,">":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},d=["(","?"],g={")":["("],":":["?","?:"]},b=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;var L={"!":function(e){return!e},"*":function(e,t){return e*t},"/":function(e,t){return e/t},"%":function(e,t){return e%t},"+":function(e,t){return e+t},"-":function(e,t){return e-t},"<":function(e,t){return e<t},"<=":function(e,t){return e<=t},">":function(e,t){return e>t},">=":function(e,t){return e>=t},"==":function(e,t){return e===t},"!=":function(e,t){return e!==t},"&&":function(e,t){return e&&t},"||":function(e,t){return e||t},"?:":function(e,t,n){if(e)throw t;return n}};function R(e){var t=function(e){for(var t,n,r,o,i=[],c=[];t=e.match(b);){for(n=t[0],(r=e.substr(0,t.index).trim())&&i.push(r);o=c.pop();){if(g[n]){if(g[n][0]===o){n=g[n][1]||n;break}}else if(d.indexOf(o)>=0||f[o]<f[n]){c.push(o);break}i.push(o)}g[n]||c.push(n),e=e.substr(t.index+n.length)}return(e=e.trim())&&i.push(e),i.concat(c.reverse())}(e);return function(e){return function(e,t){var n,r,o,i,c,s,a=[];for(n=0;n<e.length;n++){if(c=e[n],i=L[c]){for(r=i.length,o=Array(r);r--;)o[r]=a.pop();try{s=i.apply(null,o)}catch(l){return l}}else s=t.hasOwnProperty(c)?t[c]:+c;a.push(s)}return a[0]}(t,e)}}var T={contextDelimiter:"",onMissingKey:null};function D(e,t){var n;for(n in this.data=e,this.pluralForms={},this.options={},T)this.options[n]=void 0!==t&&n in t?t[n]:T[n]}D.prototype.getPluralForm=function(e,t){var n,r,o,i,c=this.pluralForms[e];return c||("function"!=typeof(o=(n=this.data[e][""])["Plural-Forms"]||n["plural-forms"]||n.plural_forms)&&(r=function(e){var t,n,r;for(t=e.split(";"),n=0;n<t.length;n++)if(0===(r=t[n].trim()).indexOf("plural="))return r.substr(7)}(n["Plural-Forms"]||n["plural-forms"]||n.plural_forms),i=R(r),o=function(e){return+i({n:e})}),c=this.pluralForms[e]=o),c(t)},D.prototype.dcnpgettext=function(e,t,n,r,o){var i,c,s;return i=void 0===o?0:this.getPluralForm(e,o),c=n,t&&(c=t+this.options.contextDelimiter+n),(s=this.data[e][c])&&s[i]?s[i]:(this.options.onMissingKey&&this.options.onMissingKey(n,e),0===i?n:r)};var M=n(28),I=n.n(M),$=n(29),U=n.n($),K=n(16),H=/%(((\d+)\$)|(\(([$_a-zA-Z][$_a-zA-Z0-9]*)\)))?[ +0#-]*\d*(\.(\d+|\*))?(ll|[lhqL])?([cduxXefgsp%])/g;function G(e,t){var n;if(!Array.isArray(t))for(t=new Array(arguments.length-1),n=1;n<arguments.length;n++)t[n-1]=arguments[n];return n=1,e.replace(H,(function(){var e,r,o,i,c;return e=arguments[3],r=arguments[5],o=arguments[7],"%"===(i=arguments[9])?"%":("*"===o&&(o=t[n-1],n++),void 0!==r?t[0]&&"object"==typeof t[0]&&t[0].hasOwnProperty(r)&&(c=t[0][r]):(void 0===e&&(e=n),n++,c=t[e-1]),"f"===i?c=parseFloat(c)||0:"d"===i&&(c=parseInt(c)||0),void 0!==o&&("f"===i?c=c.toFixed(o):"s"===i&&(c=c.substr(0,o))),null!=c?c:"")}))}
20
  /*
21
  * Exposes number format capability
22
  *
23
  * @copyright Copyright (c) 2013 Kevin van Zonneveld (http://kvz.io) and Contributors (http://phpjs.org/authors).
24
  * @license See CREDITS.md
25
  * @see https://github.com/kvz/phpjs/blob/ffe1356af23a6f2512c84c954dd4e828e92579fa/functions/strings/number_format.js
26
- */function V(e,t,n,r){e=(e+"").replace(/[^0-9+\-Ee.]/g,"");var o=isFinite(+e)?+e:0,i=isFinite(+t)?Math.abs(t):0,c=void 0===r?",":r,s=void 0===n?".":n,a="";return(a=(i?function(e,t){var n=Math.pow(10,t);return""+(Math.round(e*n)/n).toFixed(t)}(o,i):""+Math.round(o)).split("."))[0].length>3&&(a[0]=a[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,c)),(a[1]||"").length<i&&(a[1]=a[1]||"",a[1]+=new Array(i-a[1].length+1).join("0")),a.join(s)}var W=N()("i18n-calypso"),z=[function(e){return e}],Z={};function Y(){ee.throwErrors&&"undefined"!=typeof window&&window.console&&window.console.warn&&window.console.warn.apply(window.console,arguments)}function J(e){return Array.prototype.slice.call(e)}function q(e){var t=e[0];("string"!=typeof t||e.length>3||e.length>2&&"object"==typeof e[1]&&"object"==typeof e[2])&&Y("Deprecated Invocation: `translate()` accepts ( string, [string], [object] ). These arguments passed:",J(e),". See https://github.com/Automattic/i18n-calypso#translate-method"),2===e.length&&"string"==typeof t&&"string"==typeof e[1]&&Y("Invalid Invocation: `translate()` requires an options object for plural translations, but passed:",J(e));for(var n={},r=0;r<e.length;r++)"object"==typeof e[r]&&(n=e[r]);if("string"==typeof t?n.original=t:"object"==typeof n.original&&(n.plural=n.original.plural,n.count=n.original.count,n.original=n.original.single),"string"==typeof e[1]&&(n.plural=e[1]),void 0===n.original)throw new Error("Translate called without a `string` value as first argument.");return n}function X(e,t){return e.dcnpgettext("messages",t.context,t.original,t.plural,t.count)}function Q(e,t){for(var n=z.length-1;n>=0;n--){var r=z[n](Object.assign({},t));if(e.state.locale[r.original])return X(e.state.tannin,r)}return null}function ee(){if(!(this instanceof ee))return new ee;this.defaultLocaleSlug="en",this.defaultPluralForms=function(e){return 1===e?0:1},this.state={numberFormatSettings:{},tannin:void 0,locale:void 0,localeSlug:void 0,textDirection:void 0,translations:I()({max:100})},this.componentUpdateHooks=[],this.translateHooks=[],this.stateObserver=new K.EventEmitter,this.stateObserver.setMaxListeners(0),this.configure()}ee.throwErrors=!1,ee.prototype.on=function(){var e;(e=this.stateObserver).on.apply(e,arguments)},ee.prototype.off=function(){var e;(e=this.stateObserver).off.apply(e,arguments)},ee.prototype.emit=function(){var e;(e=this.stateObserver).emit.apply(e,arguments)},ee.prototype.numberFormat=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="number"==typeof t?t:t.decimals||0,r=t.decPoint||this.state.numberFormatSettings.decimal_point||".",o=t.thousandsSep||this.state.numberFormatSettings.thousands_sep||",";return V(e,n,r,o)},ee.prototype.configure=function(e){Object.assign(this,e||{}),this.setLocale()},ee.prototype.setLocale=function(e){var t,n,r;if(e&&e[""]&&e[""]["key-hash"]){var o=e[""]["key-hash"],i=function(e,t){var n=!1===t?"":String(t);if(void 0!==Z[n+e])return Z[n+e];var r=U()().update(e).digest("hex");return Z[n+e]=t?r.substr(0,t):r},c=function(e){return function(t){return t.context?(t.original=i(t.context+String.fromCharCode(4)+t.original,e),delete t.context):t.original=i(t.original,e),t}};if("sha1"===o.substr(0,4))if(4===o.length)z.push(c(!1));else{var s=o.substr(5).indexOf("-");if(s<0){var a=Number(o.substr(5));z.push(c(a))}else for(var l=Number(o.substr(5,s)),u=Number(o.substr(6+s)),p=l;p<=u;p++)z.push(c(p))}}if(e&&e[""].localeSlug)if(e[""].localeSlug===this.state.localeSlug){if(e===this.state.locale)return;Object.assign(this.state.locale,e)}else this.state.locale=Object.assign({},e);else this.state.locale={"":{localeSlug:this.defaultLocaleSlug,plural_forms:this.defaultPluralForms}};this.state.localeSlug=this.state.locale[""].localeSlug,this.state.textDirection=(null===(t=this.state.locale["text directionltr"])||void 0===t?void 0:t[0])||(null===(n=this.state.locale[""])||void 0===n||null===(r=n.momentjs_locale)||void 0===r?void 0:r.textDirection),this.state.tannin=new D(P()({},"messages",this.state.locale)),this.state.numberFormatSettings.decimal_point=X(this.state.tannin,q(["number_format_decimals"])),this.state.numberFormatSettings.thousands_sep=X(this.state.tannin,q(["number_format_thousands_sep"])),"number_format_decimals"===this.state.numberFormatSettings.decimal_point&&(this.state.numberFormatSettings.decimal_point="."),"number_format_thousands_sep"===this.state.numberFormatSettings.thousands_sep&&(this.state.numberFormatSettings.thousands_sep=","),this.stateObserver.emit("change")},ee.prototype.getLocale=function(){return this.state.locale},ee.prototype.getLocaleSlug=function(){return this.state.localeSlug},ee.prototype.isRtl=function(){return"rtl"===this.state.textDirection},ee.prototype.addTranslations=function(e){for(var t in e)""!==t&&(this.state.tannin.data.messages[t]=e[t]);this.stateObserver.emit("change")},ee.prototype.hasTranslation=function(){return!!Q(this,q(arguments))},ee.prototype.translate=function(){var e=q(arguments),t=Q(this,e);if(t||(t=X(this.state.tannin,e)),e.args){var n=Array.isArray(e.args)?e.args.slice(0):[e.args];n.unshift(t);try{t=G.apply(void 0,x()(n))}catch(o){if(!window||!window.console)return;var r=this.throwErrors?"error":"warn";"string"!=typeof o?window.console[r](o):window.console[r]("i18n sprintf error:",n)}}return e.components&&(t=A()({mixedString:t,components:e.components,throwErrors:this.throwErrors})),this.translateHooks.forEach((function(n){t=n(t,e)})),t},ee.prototype.reRenderTranslations=function(){W("Re-rendering all translations due to external request"),this.stateObserver.emit("change")},ee.prototype.registerComponentUpdateHook=function(e){this.componentUpdateHooks.push(e)},ee.prototype.registerTranslateHook=function(e){this.translateHooks.push(e)};var te=ee,ne=n(30),re=n.n(ne),oe=n(31),ie=n.n(oe),ce=n(12),se=n.n(ce),ae=n(32),le=n.n(ae),ue=n(33),pe=n.n(ue),me=n(8),fe=n.n(me),de=n(34);var ge,be,he=new te,ye=he.numberFormat.bind(he),ve=(he.translate.bind(he),he.configure.bind(he),he.setLocale.bind(he),he.getLocale.bind(he),he.getLocaleSlug.bind(he),he.addTranslations.bind(he),he.reRenderTranslations.bind(he),he.registerComponentUpdateHook.bind(he),he.registerTranslateHook.bind(he),he.state,he.stateObserver,he.on.bind(he),he.off.bind(he),he.emit.bind(he),be={numberFormat:(ge=he).numberFormat.bind(ge),translate:ge.translate.bind(ge)},function(e){function t(){var t=e.translate.bind(e);return Object.defineProperty(t,"localeSlug",{get:e.getLocaleSlug.bind(e)}),t}}(he),function(e){var t={getCurrentValue:function(){return e.isRtl()},subscribe:function(t){return e.on("change",t),function(){return e.off("change",t)}}};function n(){return Object(de.useSubscription)(t)}var r=Object(w.createHigherOrderComponent)((function(e){return Object(me.forwardRef)((function(t,r){var o=n();return fe.a.createElement(e,v()({},t,{isRtl:o,ref:r}))}))}),"WithRTL");return{useRtl:n,withRtl:r}}(he));ve.useRtl,ve.withRtl;function Oe(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=m(t);if(!r||isNaN(e))return null;var o=s()({},r,{},n),i=o.decimal,c=o.grouping,a=o.precision,l=o.symbol,u=e<0?"-":"",p=ye(Math.abs(e),{decimals:a,thousandsSep:c,decPoint:i});return n.stripZeros&&(p=je(p,i)),"".concat(u).concat(l).concat(p)}function je(e,t){var n=new RegExp("\\".concat(t,"0+$"));return e.replace(n,"")}function Ce(e){var t=e.className,n=e.tab,r=e.label,o=e.selectedTab,i=e.onSelected,c=(n.id===o.id?["is-pressed","is-active"]:[]).concat([t,"components-button","components-tab-button"]);return Object(l.createElement)("button",{type:"button",onClick:function(){return i(n)},className:c.join(" ")},r)}function we(e){var t=e.className,n=e.tabs,r=e.selectedTab,o=e.onSelected,i=e.selectBlock;return Object(l.createElement)("div",{className:"premium-content-tabs block-editor-block-toolbar"},n.map((function(n){return Object(l.createElement)(Ce,v()({key:n.id},e,{tab:n,selectedTab:r,className:"".concat(t,"--tab"),label:n.label,onSelected:o}))})),Object(l.createElement)("button",{onClick:function(){Object(_.select)("core/edit-post").isEditorSidebarOpened()||Object(_.dispatch)("core/edit-post").openGeneralSidebar("edit-post/block"),i()},className:"edit components-button is-button is-secondary"},Object(u.__)("Edit","premium-content")))}var _e=n(3);function ke(){return Object(l.createElement)("div",{className:"premium-content-wrapper"},Object(l.createElement)(_e.InnerBlocks,{allowedBlocks:["premium-content/subscriber-view","premium-content/logged-out-view"],templateLock:"all",template:[["premium-content/subscriber-view"],["premium-content/logged-out-view"]]}))}function Se(e){var t=e.className,n=e.plan,r=e.selectedPlan,o=e.onSelected,i=e.onClose,c=e.getPlanDescription,s=r&&n.id===r.id,a=(s?["is-selected"]:[]).concat([t]).join(" "),u=s?"yes":void 0,p=null;return n&&(p=" "+c(n)),Object(l.createElement)(C.MenuItem,{onClick:function(e){e.preventDefault(),o(n),i()},className:a,key:n.id,value:n.id,selected:s,icon:u},n.title," : ",p)}function xe(e){var t=e.plans,n=e.selectedPlan,r=e.onSelected;return Object(l.createElement)(C.MenuGroup,null,t.map((function(t){return Object(l.createElement)(Se,v()({},e,{key:t.id,selectedPlan:n,onSelected:r,plan:t}))})))}function Ee(e){return Object(l.createElement)(C.MenuGroup,null,Object(l.createElement)(C.MenuItem,{onClick:function(t){t.preventDefault(),Object(_.select)("core/edit-post").isEditorSidebarOpened()||Object(_.dispatch)("core/edit-post").openGeneralSidebar("edit-post/block");var n=document.getElementById("new-plan-name");null!==n&&n.focus(),e.onClose()}},Object(u.__)("Add a new subscription","premium-content")))}function Pe(e){var t=e.selectedPlanId,n=e.onSelected,r=e.plans,o=e.getPlanDescription,i=r.find((function(e){return e.id===t})),c=null;return i&&(c=" "+o(i)),Object(l.createElement)(_e.BlockControls,null,Object(l.createElement)(C.Toolbar,null,Object(l.createElement)(C.DropdownMenu,{icon:Object(l.createElement)(l.Fragment,null,Object(l.createElement)(C.Dashicon,{icon:"update"})," ",c&&Object(l.createElement)(l.Fragment,null,c)),label:Object(u.__)("Select a plan","premium-content"),className:"premium-content-toolbar-button"},(function(t){var r=t.onClose;return Object(l.createElement)(l.Fragment,null,Object(l.createElement)(xe,v()({},e,{onSelected:n,onClose:r,selectedPlan:i})),Object(l.createElement)(Ee,v()({},e,{onClose:r})))}))))}function Fe(e){var t=Object(l.useState)(0),n=j()(t,2),r=n[0],o=n[1],i=e.attributes,c=e.setAttributes,s=e.className,a=e.savePlan,p=(e.currencies,e.siteSlug);return Object(l.createElement)(_e.InspectorControls,null,p&&Object(l.createElement)(C.ExternalLink,{href:"https://wordpress.com/earn/payments/".concat(p),className:"wp-block-premium-content-container---link-to-earn"},Object(u.__)("Manage your subscriptions.","premium-content")),Object(l.createElement)(C.PanelBody,{title:"Add a new subscription",initialOpen:!0,className:"".concat(s,"---settings-add_plan")},1===r&&Object(l.createElement)(C.Placeholder,{icon:"lock",label:Object(u.__)("Premium Content","premium-content"),instructions:Object(u.__)("Saving plan...","premium-content")},Object(l.createElement)(C.Spinner,null)),0===r&&Object(l.createElement)("div",null,Object(l.createElement)(C.PanelRow,{className:"plan-name"},Object(l.createElement)(C.TextControl,{id:"new-plan-name",label:"Name",value:i.newPlanName,onChange:function(e){return c({newPlanName:e})}})),Object(l.createElement)(C.PanelRow,{className:"plan-price"},Object(l.createElement)(C.SelectControl,{label:"Currency",onChange:function(e){return c({newPlanCurrency:e})},value:i.newPlanCurrency,options:We}),Object(l.createElement)(C.TextControl,{label:"Price",value:i.newPlanPrice,onChange:function(e){return c({newPlanPrice:parseFloat(e)})},type:"number"})),Object(l.createElement)(C.PanelRow,{className:"plan-interval"},Object(l.createElement)(C.SelectControl,{label:"Interval",onChange:function(e){return c({newPlanInterval:e})},value:i.newPlanInterval,options:[{label:"Month",value:"1 month"},{label:"Year",value:"1 year"}]})),Object(l.createElement)(C.PanelRow,null,Object(l.createElement)(C.Button,{isSecondary:!0,isLarge:!0,onClick:function(t){t.preventDefault(),o(1),a(e.attributes,(function(e){o(0),e&&(c({newPlanPrice:5}),c({newPlanName:""}))}))}},Object(u.__)("Add subscription","premium-content"))))))}var Ne=n(25),Be=n.n(Ne),Ae=Object(w.compose)([Object(_.withDispatch)((function(e,t){var n,r=t.stripeConnectUrl;return{autosaveAndRedirect:(n=Be()(regeneratorRuntime.mark((function t(n){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n.preventDefault(),t.next=3,e("core/editor").savePost();case 3:window.top.location.href=r;case 4:case"end":return t.stop()}}),t)}))),function(e){return n.apply(this,arguments)})}}))])((function(e){var t=e.autosaveAndRedirect,n=e.stripeConnectUrl;return Object(l.createElement)(_e.Warning,{actions:n&&[Object(l.createElement)(C.Button,{key:"connect",href:n,onClick:t,target:"_top",isDefault:!0,className:"premium-content-block-nudge__button"},Object(u.__)("Connect","premium-content"))],className:"premium-content-block-nudge"},Object(l.createElement)("span",{className:"premium-content-block-nudge__info"},Object(l.createElement)(C.Dashicon,{icon:"star-filled"}),Object(l.createElement)("span",{className:"premium-content-block-nudge__text-container"},Object(l.createElement)("span",{className:"premium-content-block-nudge__title"},Object(u.__)("Connect to Stripe to use this block on your site","premium-content")),Object(l.createElement)("span",{className:"premium-content-block-nudge__message"},Object(u.__)("This block will be hidden from your visitors until you connect to Stripe.","premium-content")))))})),Le={selectedTab:{id:"",className:"",label:Object(l.createElement)(l.Fragment,null)},stripeNudge:null},Re=Object(l.createContext)(Le),Te=n(17),De=n.n(Te),Me=[{id:"premium",label:Object(l.createElement)("span",null,Object(u.__)("Subscriber View","premium-content")),className:"wp-premium-content-subscriber-view"},{id:"wall",label:Object(l.createElement)("span",null,Object(u.__)("Non-subscriber View","premium-content")),className:"wp-premium-content-logged-out-view"}],Ie=[];function $e(e,t){var n=e.noticeOperations;n.removeAllNotices(),n.createErrorNotice(t)}var Ue=Object(w.compose)([Object(_.withSelect)((function(e,t){return{postId:(0,e("core/editor").getCurrentPostId)(),containerClientId:e("core/block-editor").getBlockHierarchyRootClientId(t.clientId)}})),C.withNotices,Object(_.withDispatch)((function(e,t){var n=e("core/block-editor");return{selectBlock:function(){n.selectBlock(t.containerClientId)}}}))])((function(e){var t=Object(l.useState)(Me[1]),n=j()(t,2),r=n[0],o=n[1],i=Object(l.useState)(!1),c=j()(i,2),s=c[0],a=c[1],p=Object(l.useState)(Ie),m=j()(p,2),f=m[0],d=m[1],g=Object(l.useState)(null),b=j()(g,2),h=b[0],y=b[1],O=Object(l.useState)(0),w=j()(O,2),_=w[0],S=w[1],x=Object(l.useState)(!1),E=j()(x,2),P=E[0],F=E[1],N=Object(l.useState)(""),B=j()(N,2),A=B[0],L=B[1],R=Object(l.useState)(""),T=j()(R,2),D=T[0],M=T[1];function I(t,n){if(!t.newPlanName||0===t.newPlanName.length)return $e(e,Object(u.__)("Plan requires a name","premium-content")),void n(!1);var r=parseFloat(t.newPlanPrice),o=ze(t.newPlanCurrency),i=Object(u.sprintf)(Object(u.__)("Minimum allowed price is %s.","premium-content"),Oe(o,t.newPlanCurrency));if(r<o)return $e(e,i),void n(!1);if(!Ze(t.newPlanCurrency,r))return $e(e,Object(u.__)("Plan requires a valid price","premium-content")),void n(!1);var c={path:"/wpcom/v2/memberships/product",method:"POST",data:{currency:t.newPlanCurrency,price:t.newPlanPrice,title:t.newPlanName,interval:t.newPlanInterval}};De()(c).then((function(t){var r={id:t.id,title:t.title,interval:t.interval,price:t.price,currency:t.currency};d(f.concat([r])),$(r),function(e,t){var n=e.noticeOperations;n.removeAllNotices(),n.createNotice({status:"info",content:t})}(e,Object(u.__)("Successfully created plan","premium-content")),n&&n(!0)}),(function(){$e(e,Object(u.__)("There was an error when adding the plan.")),n&&n(!1)}))}function $(t){e.setAttributes({selectedPlanId:t.id})}var U=Object(l.useRef)(null);!function(e,t){function n(n){e.current&&n.target&&n.target instanceof Node&&!e.current.contains(n.target)?t(!1):t(!0)}Object(l.useEffect)((function(){return document.addEventListener("mousedown",n),function(){document.removeEventListener("mousedown",n)}}))}(U,a);var K=e.isSelected,H=e.className;if(Object(l.useEffect)((function(){var t={path:"/wpcom/v2/memberships/status",method:"GET"};De()(t).then((function(t){if(t||"object"==typeof t){if(t.errors&&Object.values(t.errors)&&Object.values(t.errors)[0][0])return S(2),void $e(e,Object.values(t.errors)[0][0]);y(t.connect_url),F(t.should_upgrade_to_access_memberships),L(t.upgrade_url),M(t.site_slug),t.products&&0===t.products.length&&!t.should_upgrade_to_access_memberships&&t.connected_account_id?I({newPlanCurrency:"USD",newPlanPrice:5,newPlanName:Object(u.__)("Monthly Subscription"),newPlanInterval:"1 month"},(function(){S(t.connected_account_id?1:2)})):(t.products&&t.products.length>0&&(d(t.products),e.attributes.selectedPlanId||$(t.products[0])),S(t.connected_account_id?1:2))}}),(function(t){y(null),S(2),$e(e,t.message)})),e.selectBlock()}),[]),0===_)return Object(l.createElement)("div",{className:H,ref:U},e.noticeUI,Object(l.createElement)(C.Placeholder,{icon:"lock",label:Object(u.__)("Premium Content","premium-content"),instructions:Object(u.__)("Loading data...","premium-content")},Object(l.createElement)(C.Spinner,null)));if(P)return Object(l.createElement)("div",{className:H,ref:U},e.noticeUI,Object(l.createElement)(C.Placeholder,{icon:"lock",label:Object(u.__)("Premium Content","premium-content"),instructions:Object(u.__)("You'll need to upgrade your plan to use the Premium Content block.","premium-content")},Object(l.createElement)(C.Button,{isSecondary:!0,isLarge:!0,href:A,target:"_blank",className:"premium-content-block-nudge__button"},Object(u.__)("Upgrade Your Plan","premium-content")),Object(l.createElement)("div",{className:"membership-button__disclaimer"},Object(l.createElement)(C.ExternalLink,{href:"https://wordpress.com/support/premium-content-block/"},Object(u.__)("Read more about Premium Content and related fees.","premium-content")))));var G=null;if(!P&&1!==_&&h){var V=function(e,t){var n,r=e.postId;if(!Object(k.isURL)(t))return null;if(!r)return t;try{var o=Object(k.getQueryArg)(t,"state");"string"==typeof o&&(n=JSON.parse(atob(o)))}catch(i){return t}return n.from_editor_post_id=r,Object(k.addQueryArgs)(t,{state:btoa(JSON.stringify(n))})}(e,h);G=Object(l.createElement)(Ae,v()({},e,{stripeConnectUrl:V}))}return Object(l.createElement)("div",{className:H,ref:U},e.noticeUI,(K||s)&&1===_&&Object(l.createElement)(Pe,v()({},e,{plans:f,selectedPlanId:e.attributes.selectedPlanId,onSelected:$,getPlanDescription:function(e){var t=Oe(parseFloat(e.price),e.currency);return"1 month"===e.interval?Object(u.sprintf)(Object(u.__)("%s / month","premium-content"),t):"1 year"===e.interval?Object(u.sprintf)(Object(u.__)("%s / year","premium-content"),t):"one-time"===e.interval?t:Object(u.sprintf)(Object(u.__)("%s / %s","premium-content"),t,e.interval)}})),(K||s)&&1===_&&Object(l.createElement)(Fe,v()({},e,{savePlan:I,siteSlug:D})),(K||s)&&Object(l.createElement)(we,v()({},e,{tabs:Me,selectedTab:r,onSelected:o})),Object(l.createElement)(Re.Provider,{value:{selectedTab:r,stripeNudge:G}},Object(l.createElement)(ke,null)))}));var Ke="premium-content/container",He="common",Ge={name:Ke,attributes:{newPlanName:{type:"string",default:"Monthly Subscription"},newPlanCurrency:{type:"string",default:"USD"},newPlanPrice:{type:"number",default:5},newPlanInterval:{type:"string",default:"1 month"},selectedPlanId:{type:"number",default:0}},title:Object(u.__)("Premium Content","premium-content"),description:Object(u.__)("Restrict access to your content for paying subscribers.","premium-content"),category:He,icon:Object(l.createElement)("svg",{width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(l.createElement)("path",{d:"M12.7439 14.4271L8.64053 13.165L8.51431 13.8718L8.09208 20.7415C8.06165 21.2365 8.61087 21.5526 9.02363 21.2776L12.7439 18.799L16.7475 21.304C17.1687 21.5676 17.7094 21.2343 17.6631 20.7396L17.0212 13.8718L17.0212 13.165L12.7439 14.4271Z",fill:"black"}),Object(l.createElement)("circle",{cx:"12.7439",cy:"8.69796",r:"5.94466",stroke:"black",strokeWidth:"1.5",fill:"none"}),Object(l.createElement)("path",{d:"M9.71023 8.12461L11.9543 10.3687L15.7776 6.54533",stroke:"black",strokeWidth:"1.5",fill:"none"})),supports:{html:!1},keywords:["premium-content",Object(u.__)("premium","premium-content"),Object(u.__)("paywall","premium-content")],edit:Ue,save:function(){return Object(l.createElement)("div",{className:"wp-block-premium-content-container"},Object(l.createElement)(_e.InnerBlocks.Content,null))}},Ve={USD:.5,AUD:.5,BRL:.5,CAD:.5,CHF:.5,DKK:2.5,EUR:.5,GBP:.3,HKD:4,INR:.5,JPY:50,MXN:10,NOK:3,NZD:.5,PLN:2,SEK:3,SGD:.5},We=Object.keys(Ve).map((function(e){var t=m(e).symbol;return{value:e,label:t===e?e:"".concat(e," ").concat(Object(h.trimEnd)(t,"."))}}));function ze(e){return Ve[e]}function Ze(e,t){return!isNaN(t)&&t>=ze(e)}var Ye=Object(w.compose)([Object(_.withSelect)((function(e,t){return{hasInnerBlocks:!!e("core/block-editor").getBlocksByClientId(t.clientId)[0].innerBlocks.length,containerClientId:e("core/block-editor").getBlockHierarchyRootClientId(t.clientId)}})),Object(_.withDispatch)((function(e,t){var n=e("core/block-editor");return{selectBlock:function(){n.selectBlock(t.containerClientId)}}}))])((function(e){return Object(l.useEffect)((function(){e.selectBlock()}),[]),Object(l.createElement)(Re.Consumer,null,(function(t){var n=t.selectedTab,r=t.stripeNudge;return Object(l.createElement)("div",{hidden:"wall"===n.id,className:n.className},r,Object(l.createElement)(_e.InnerBlocks,{renderAppender:!e.hasInnerBlocks&&_e.InnerBlocks.ButtonBlockAppender,templateLock:!1,template:[["core/paragraph",{placeholder:Object(u.__)("Insert the piece of content you want your visitors to see after they subscribe.","premium-content")}]]}))}))}));var Je="premium-content/subscriber-view",qe="common",Xe={name:Je,category:qe,attributes:{},title:Object(u.__)("Subscriber View","premium-content"),description:Object(u.__)("Subscriber View.","premium-content"),parent:["premium-content/container"],supports:{inserter:!1},edit:Ye,save:function(){return Object(l.createElement)("div",{className:"wp-block-premium-content-subscriber-view"},Object(l.createElement)(_e.InnerBlocks.Content,null))}},Qe=n(35),et=n.n(Qe),tt=window.getComputedStyle,nt=Object(C.withFallbackStyles)((function(e,t){var n,r,o,i,c=t.textButtonColor,s=t.backgroundButtonColor,a=s&&s.color,l=c&&c.color;return!l&&e&&(n=e.querySelector('[contenteditable="true"]')),r=e.querySelector(".wp-block-button__link")?e.querySelector(".wp-block-button__link"):e,e&&r&&(o=tt(r).backgroundColor),n&&(i=tt(n).color),{fallbackBackgroundColor:a||o,fallbackTextColor:l||i}}));var rt=Object(w.compose)([Object(_e.withColors)({backgroundButtonColor:"background-color"},{textButtonColor:"color"}),nt])((function(e){function t(){var t,n=e.textButtonColor,r=e.backgroundButtonColor,o=Object(h.get)(n,"class"),i=Object(h.get)(r,"class");return et()("wp-block-button__link",(t={"has-text-color":n.color},P()(t,o,o),P()(t,"has-background",r.color),P()(t,i,i),t))}Object(l.useEffect)((function(){!function(){var n=t();e.setAttributes({buttonClasses:n})}(),function(){var t=Object(h.get)(e.textButtonColor,"color"),n=Object(h.get)(e.backgroundButtonColor,"color");void 0!==t&&e.setAttributes({customTextButtonColor:t});void 0!==n&&e.setAttributes({customBackgroundButtonColor:n})}()}),[e.backgroundButtonColor,e.textButtonColor]);var n=e.attributes,r=e.setAttributes,o=e.backgroundButtonColor,i=e.textButtonColor,c=e.setBackgroundButtonColor,s=e.setTextButtonColor,a=e.fallbackBackgroundColor,p=e.fallbackTextColor,m=o.color||a,f=i.color||p,d={border:"none",backgroundColor:m,color:f},g=t();return Object(l.createElement)("div",null,Object(l.createElement)("div",{className:"wp-block-button premium-content-logged-out-view-button"},Object(l.createElement)(_e.RichText,{placeholder:Object(u.__)("Add text…","premium-content"),value:n.subscribeButtonText,onChange:function(e){return r({subscribeButtonText:e})},className:g,style:d,keepPlaceholderOnFocus:!0}),Object(l.createElement)(_e.RichText,{placeholder:Object(u.__)("Add text…","premium-content"),value:n.loginButtonText,onChange:function(e){return r({loginButtonText:e})},className:g,style:d,keepPlaceholderOnFocus:!0})),Object(l.createElement)(_e.InspectorControls,null,Object(l.createElement)(_e.PanelColorSettings,{title:Object(u.__)("Button Color Settings","premium-content"),colorSettings:[{value:o||void 0,onChange:c,label:Object(u.__)("Background Color","premium-content")},{value:i||void 0,onChange:s,label:Object(u.__)("Text Color","premium-content")}]}),Object(l.createElement)(_e.ContrastChecker,{textColor:f,backgroundColor:m,fallbackBackgroundColor:a,fallbackTextColor:p})))}));var ot=Object(w.compose)([Object(_.withSelect)((function(e,t){return{containerClientId:e("core/block-editor").getBlockHierarchyRootClientId(t.clientId)}})),Object(_.withDispatch)((function(e,t){var n=e("core/block-editor");return{selectBlock:function(){n.selectBlock(t.containerClientId)}}}))])((function(e){Object(l.useEffect)((function(){e.selectBlock()}),[]);var t=Object(l.createElement)(rt,{attributes:Object(h.pick)(e.attributes,["subscribeButtonText","loginButtonText","backgroundButtonColor","textButtonColor","customBackgroundButtonColor","customTextButtonColor"]),setAttributes:e.setAttributes});return Object(l.createElement)(Re.Consumer,null,(function(e){var n=e.selectedTab,r=e.stripeNudge;return Object(l.createElement)("div",{hidden:"premium"===n.id,className:n.className},r,Object(l.createElement)(_e.InnerBlocks,{templateLock:!1,template:[["core/heading",{content:Object(u.__)("Subscribe to get access","premium-content"),level:3}],["core/paragraph",{content:Object(u.__)("Read more of this content when you subscribe today.","premium-content")}]]}),t)}))}));var it=n(18),ct="premium-content/logged-out-view",st="common",at={name:ct,category:st,attributes:{subscribeButtonText:{type:"string",default:"Subscribe"},loginButtonText:{type:"string",default:"Log In"},buttonClasses:{type:"string",default:""},backgroundButtonColor:{type:"string",default:""},textButtonColor:{type:"string",default:""},customBackgroundButtonColor:{type:"string",default:""},customTextButtonColor:{type:"string",default:""}},title:Object(u.__)("Logged Out View","premium-content"),description:Object(u.__)("Logged Out View.","premium-content"),parent:["premium-content/container"],supports:{inserter:!1},edit:ot,save:function(){return Object(l.createElement)("div",{className:"wp-block-premium-content-logged-out-view"},Object(l.createElement)(_e.InnerBlocks.Content,null))}},lt=Object(_.subscribe)((function(){var e=Object(_.select)("core/rich-text").getFormatType("core/link");if(e){lt(),Object(it.unregisterFormatType)("core/link");var t=Object(w.compose)(Object(_.withSelect)((function(e){return{selectedBlock:e("core/block-editor").getSelectedBlock()}})),Object(w.ifCondition)((function(e){return e.selectedBlock&&e.selectedBlock.name!==ct})))(e.edit);Object(it.registerFormatType)("core/link",s()({},e,{edit:t}))}})),ut=function(e){if(e){var t=e.name,n=e.category,r=e.settings;Object(a.registerBlockType)(t,s()({category:n},r))}},pt=function(){[r,i,o].forEach(ut)};pt()}]));
1
+ !function(e,t){for(var n in t)e[n]=t[n]}(window,function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=57)}([function(e,t){!function(){e.exports=this.wp.element}()},function(e,t){!function(){e.exports=this.wp.i18n}()},function(e,t){!function(){e.exports=this.wp.components}()},function(e,t){!function(){e.exports=this.wp.blockEditor}()},function(e,t){!function(){e.exports=this.wp.data}()},function(e,t){!function(){e.exports=this.wp.compose}()},function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n.apply(this,arguments)}e.exports=n},function(e,t,n){var r=n(36),o=n(37),i=n(21),c=n(38);e.exports=function(e,t){return r(e)||o(e,t)||i(e,t)||c()}},function(e,t){!function(){e.exports=this.React}()},function(e,t,n){var r=n(10);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}e.exports=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t){!function(){e.exports=this.lodash}()},function(e,t){!function(){e.exports=this.wp.apiFetch}()},function(e,t){!function(){e.exports=this.wp.blocks}()},function(e,t){function n(e,t,n,r,o,i,c){try{var s=e[i](c),a=s.value}catch(l){return void n(l)}s.done?t(a):Promise.resolve(a).then(r,o)}e.exports=function(e){return function(){var t=this,r=arguments;return new Promise((function(o,i){var c=e.apply(t,r);function s(e){n(c,o,i,s,a,"next",e)}function a(e){n(c,o,i,s,a,"throw",e)}s(void 0)}))}}},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t){!function(){e.exports=this.wp.url}()},function(e,t,n){"use strict";var r=n(25),o=n(24);function i(e,t){return 55296==(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function c(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function s(e){return 1===e.length?"0"+e:e}function a(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=o,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),o=0;o<e.length;o+=2)n.push(parseInt(e[o]+e[o+1],16))}else for(var r=0,o=0;o<e.length;o++){var c=e.charCodeAt(o);c<128?n[r++]=c:c<2048?(n[r++]=c>>6|192,n[r++]=63&c|128):i(e,o)?(c=65536+((1023&c)<<10)+(1023&e.charCodeAt(++o)),n[r++]=c>>18|240,n[r++]=c>>12&63|128,n[r++]=c>>6&63|128,n[r++]=63&c|128):(n[r++]=c>>12|224,n[r++]=c>>6&63|128,n[r++]=63&c|128)}else for(o=0;o<e.length;o++)n[o]=0|e[o];return n},t.toHex=function(e){for(var t="",n=0;n<e.length;n++)t+=s(e[n].toString(16));return t},t.htonl=c,t.toHex32=function(e,t){for(var n="",r=0;r<e.length;r++){var o=e[r];"little"===t&&(o=c(o)),n+=a(o.toString(16))}return n},t.zero2=s,t.zero8=a,t.join32=function(e,t,n,o){var i=n-t;r(i%4==0);for(var c=new Array(i/4),s=0,a=t;s<c.length;s++,a+=4){var l;l="big"===o?e[a]<<24|e[a+1]<<16|e[a+2]<<8|e[a+3]:e[a+3]<<24|e[a+2]<<16|e[a+1]<<8|e[a],c[s]=l>>>0}return c},t.split32=function(e,t){for(var n=new Array(4*e.length),r=0,o=0;r<e.length;r++,o+=4){var i=e[r];"big"===t?(n[o]=i>>>24,n[o+1]=i>>>16&255,n[o+2]=i>>>8&255,n[o+3]=255&i):(n[o+3]=i>>>24,n[o+2]=i>>>16&255,n[o+1]=i>>>8&255,n[o]=255&i)}return n},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<<t|e>>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,n){return e+t+n>>>0},t.sum32_4=function(e,t,n,r){return e+t+n+r>>>0},t.sum32_5=function(e,t,n,r,o){return e+t+n+r+o>>>0},t.sum64=function(e,t,n,r){var o=e[t],i=r+e[t+1]>>>0,c=(i<r?1:0)+n+o;e[t]=c>>>0,e[t+1]=i},t.sum64_hi=function(e,t,n,r){return(t+r>>>0<t?1:0)+e+n>>>0},t.sum64_lo=function(e,t,n,r){return t+r>>>0},t.sum64_4_hi=function(e,t,n,r,o,i,c,s){var a=0,l=t;return a+=(l=l+r>>>0)<t?1:0,a+=(l=l+i>>>0)<i?1:0,e+n+o+c+(a+=(l=l+s>>>0)<s?1:0)>>>0},t.sum64_4_lo=function(e,t,n,r,o,i,c,s){return t+r+i+s>>>0},t.sum64_5_hi=function(e,t,n,r,o,i,c,s,a,l){var u=0,p=t;return u+=(p=p+r>>>0)<t?1:0,u+=(p=p+i>>>0)<i?1:0,u+=(p=p+s>>>0)<s?1:0,e+n+o+c+a+(u+=(p=p+l>>>0)<l?1:0)>>>0},t.sum64_5_lo=function(e,t,n,r,o,i,c,s,a,l){return t+r+i+s+l>>>0},t.rotr64_hi=function(e,t,n){return(t<<32-n|e>>>n)>>>0},t.rotr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0},t.shr64_hi=function(e,t,n){return e>>>n},t.shr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0}},function(e,t,n){var r=n(39),o=n(40),i=n(21),c=n(41);e.exports=function(e){return r(e)||o(e)||i(e)||c()}},function(e,t,n){"use strict";var r,o="object"==typeof Reflect?Reflect:null,i=o&&"function"==typeof o.apply?o.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};r=o&&"function"==typeof o.ownKeys?o.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var c=Number.isNaN||function(e){return e!=e};function s(){s.init.call(this)}e.exports=s,s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var a=10;function l(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function u(e){return void 0===e._maxListeners?s.defaultMaxListeners:e._maxListeners}function p(e,t,n,r){var o,i,c,s;if(l(n),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),c=i[t]),void 0===c)c=i[t]=n,++e._eventsCount;else if("function"==typeof c?c=i[t]=r?[n,c]:[c,n]:r?c.unshift(n):c.push(n),(o=u(e))>0&&c.length>o&&!c.warned){c.warned=!0;var a=new Error("Possible EventEmitter memory leak detected. "+c.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");a.name="MaxListenersExceededWarning",a.emitter=e,a.type=t,a.count=c.length,s=a,console&&console.warn&&console.warn(s)}return e}function m(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=m.bind(r);return o.listener=n,r.wrapFn=o,o}function d(e,t,n){var r=e._events;if(void 0===r)return[];var o=r[t];return void 0===o?[]:"function"==typeof o?n?[o.listener||o]:[o]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(o):b(o,o.length)}function g(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function b(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(e){if("number"!=typeof e||e<0||c(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");a=e}}),s.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||c(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},s.prototype.getMaxListeners=function(){return u(this)},s.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,o=this._events;if(void 0!==o)r=r&&void 0===o.error;else if(!r)return!1;if(r){var c;if(t.length>0&&(c=t[0]),c instanceof Error)throw c;var s=new Error("Unhandled error."+(c?" ("+c.message+")":""));throw s.context=c,s}var a=o[e];if(void 0===a)return!1;if("function"==typeof a)i(a,this,t);else{var l=a.length,u=b(a,l);for(n=0;n<l;++n)i(u[n],this,t)}return!0},s.prototype.addListener=function(e,t){return p(this,e,t,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(e,t){return p(this,e,t,!0)},s.prototype.once=function(e,t){return l(t),this.on(e,f(this,e,t)),this},s.prototype.prependOnceListener=function(e,t){return l(t),this.prependListener(e,f(this,e,t)),this},s.prototype.removeListener=function(e,t){var n,r,o,i,c;if(l(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(o=-1,i=n.length-1;i>=0;i--)if(n[i]===t||n[i].listener===t){c=n[i].listener,o=i;break}if(o<0)return this;0===o?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,o),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,c||t)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var o,i=Object.keys(n);for(r=0;r<i.length;++r)"removeListener"!==(o=i[r])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},s.prototype.listeners=function(e){return d(this,e,!0)},s.prototype.rawListeners=function(e){return d(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):g.call(e,t)},s.prototype.listenerCount=g,s.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},function(e,t){!function(){e.exports=this.wp.richText}()},function(e,t,n){var r=n(22);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}},function(e,t,n){"use strict";function r(e){return function(){return e}}var o=function(){};o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(e){return e},e.exports=o},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},function(e,t){function n(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=n,n.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)}},function(e,t,n){t.log=function(){var e;return"object"==typeof console&&console.log&&(e=console).log.apply(e,arguments)},t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;var n="color: "+this.color;t.splice(1,0,n,"color: inherit");var r=0,o=0;t[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(r++,"%c"===e&&(o=r))})),t.splice(o,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(n){}},t.load=function(){var e;try{e=t.storage.getItem("debug")}catch(n){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],e.exports=n(42)(t),e.exports.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="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},o=s(n(8)),i=s(n(44)),c=s(n(47));function s(e){return e&&e.__esModule?e:{default:e}}var a=void 0;function l(e,t){var n,c,s,u,p,m,f,d,g=[],b={};for(m=0;m<e.length;m++)if("string"!==(p=e[m]).type){if(!t.hasOwnProperty(p.value)||void 0===t[p.value])throw new Error("Invalid interpolation, missing component node: `"+p.value+"`");if("object"!==r(t[p.value]))throw new Error("Invalid interpolation, component node must be a ReactElement or null: `"+p.value+"`","\n> "+a);if("componentClose"===p.type)throw new Error("Missing opening component token: `"+p.value+"`");if("componentOpen"===p.type){n=t[p.value],s=m;break}g.push(t[p.value])}else g.push(p.value);return n&&(u=function(e,t){var n,r,o=t[e],i=0;for(r=e+1;r<t.length;r++)if((n=t[r]).value===o.value){if("componentOpen"===n.type){i++;continue}if("componentClose"===n.type){if(0===i)return r;i--}}throw new Error("Missing closing component token `"+o.value+"`")}(s,e),f=l(e.slice(s+1,u),t),c=o.default.cloneElement(n,{},f),g.push(c),u<e.length-1&&(d=l(e.slice(u+1),t),g=g.concat(d))),1===g.length?g[0]:(g.forEach((function(e,t){e&&(b["interpolation-child-"+t]=e)})),(0,i.default)(b))}t.default=function(e){var t=e.mixedString,n=e.components,o=e.throwErrors;if(a=t,!n)return t;if("object"!==(void 0===n?"undefined":r(n))){if(o)throw new Error("Interpolation Error: unable to process `"+t+"` because components is not an object");return t}var i=(0,c.default)(t);try{return l(i,n)}catch(s){if(o)throw new Error("Interpolation Error: unable to process `"+t+"` because of error `"+s.message+"`");return t}}},function(e,t,n){var r=n(19),o=n(24);function i(e){if(!(this instanceof i))return new i(e);"number"==typeof e&&(e={max:e}),e||(e={}),r.EventEmitter.call(this),this.cache={},this.head=this.tail=null,this.length=0,this.max=e.max||1e3,this.maxAge=e.maxAge||0}e.exports=i,o(i,r.EventEmitter),Object.defineProperty(i.prototype,"keys",{get:function(){return Object.keys(this.cache)}}),i.prototype.clear=function(){this.cache={},this.head=this.tail=null,this.length=0},i.prototype.remove=function(e){if("string"!=typeof e&&(e=""+e),this.cache.hasOwnProperty(e)){var t=this.cache[e];return delete this.cache[e],this._unlink(e,t.prev,t.next),t.value}},i.prototype._unlink=function(e,t,n){this.length--,0===this.length?this.head=this.tail=null:this.head===e?(this.head=t,this.cache[this.head].next=null):this.tail===e?(this.tail=n,this.cache[this.tail].prev=null):(this.cache[t].next=n,this.cache[n].prev=t)},i.prototype.peek=function(e){if(this.cache.hasOwnProperty(e)){var t=this.cache[e];if(this._checkAge(e,t))return t.value}},i.prototype.set=function(e,t){var n;if("string"!=typeof e&&(e=""+e),this.cache.hasOwnProperty(e)){if((n=this.cache[e]).value=t,this.maxAge&&(n.modified=Date.now()),e===this.head)return t;this._unlink(e,n.prev,n.next)}else n={value:t,modified:0,next:null,prev:null},this.maxAge&&(n.modified=Date.now()),this.cache[e]=n,this.length===this.max&&this.evict();return this.length++,n.next=null,n.prev=this.head,this.head&&(this.cache[this.head].next=e),this.head=e,this.tail||(this.tail=e),t},i.prototype._checkAge=function(e,t){return!(this.maxAge&&Date.now()-t.modified>this.maxAge)||(this.remove(e),this.emit("evict",{key:e,value:t.value}),!1)},i.prototype.get=function(e){if("string"!=typeof e&&(e=""+e),this.cache.hasOwnProperty(e)){var t=this.cache[e];if(this._checkAge(e,t))return this.head!==e&&(e===this.tail?(this.tail=t.next,this.cache[this.tail].prev=null):this.cache[t.prev].next=t.next,this.cache[t.next].prev=t.prev,this.cache[this.head].next=e,t.prev=this.head,t.next=null,this.head=e),t.value}},i.prototype.evict=function(){if(this.tail){var e=this.tail,t=this.remove(this.tail);this.emit("evict",{key:e,value:t})}}},function(e,t,n){"use strict";var r=n(17),o=n(48),i=n(49),c=r.rotl32,s=r.sum32,a=r.sum32_5,l=i.ft_1,u=o.BlockHash,p=[1518500249,1859775393,2400959708,3395469782];function m(){if(!(this instanceof m))return new m;u.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}r.inherits(m,u),e.exports=m,m.blockSize=512,m.outSize=160,m.hmacStrength=80,m.padLength=64,m.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;r<n.length;r++)n[r]=c(n[r-3]^n[r-8]^n[r-14]^n[r-16],1);var o=this.h[0],i=this.h[1],u=this.h[2],m=this.h[3],f=this.h[4];for(r=0;r<n.length;r++){var d=~~(r/20),g=a(c(o,5),l(d,i,u,m),f,n[r],p[d]);f=m,m=u,u=c(i,30),i=o,o=g}this.h[0]=s(this.h[0],o),this.h[1]=s(this.h[1],i),this.h[2]=s(this.h[2],u),this.h[3]=s(this.h[3],m),this.h[4]=s(this.h[4],f)},m.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t){function n(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)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}},function(e,t,n){var r=n(50);e.exports=function(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&&r(e,t)}},function(e,t,n){var r=n(51),o=n(52),i=n(53);e.exports=function(e){return function(){var t,n=r(e);if(o()){var c=r(this).constructor;t=Reflect.construct(n,arguments,c)}else t=n.apply(this,arguments);return i(this,t)}}},function(e,t,n){"use strict";e.exports=n(55)},function(e,t,n){var r;
2
  /*!
3
  Copyright (c) 2017 Jed Watson.
4
  Licensed under the MIT License (MIT), see
5
  http://jedwatson.github.io/classnames
6
+ */!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"===i||"number"===i)e.push(r);else if(Array.isArray(r)&&r.length){var c=o.apply(null,r);c&&e.push(c)}else if("object"===i)for(var s in r)n.call(r,s)&&r[s]&&e.push(s)}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var c,s=e[Symbol.iterator]();!(r=(c=s.next()).done)&&(n.push(c.value),!t||n.length!==t);r=!0);}catch(a){o=!0,i=a}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t,n){var r=n(22);e.exports=function(e){if(Array.isArray(e))return r(e)}},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t,n){var r=n(18);e.exports=function(e){function t(e){for(var t=0,n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return o.colors[Math.abs(t)%o.colors.length]}function o(e){var n;function r(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];if(r.enabled){var c=r,s=Number(new Date),a=s-(n||s);c.diff=a,c.prev=n,c.curr=s,n=s,t[0]=o.coerce(t[0]),"string"!=typeof t[0]&&t.unshift("%O");var l=0;t[0]=t[0].replace(/%([a-zA-Z%])/g,(function(e,n){if("%%"===e)return e;l++;var r=o.formatters[n];if("function"==typeof r){var i=t[l];e=r.call(c,i),t.splice(l,1),l--}return e})),o.formatArgs.call(c,t);var u=c.log||o.log;u.apply(c,t)}}return r.namespace=e,r.enabled=o.enabled(e),r.useColors=o.useColors(),r.color=t(e),r.destroy=i,r.extend=c,"function"==typeof o.init&&o.init(r),o.instances.push(r),r}function i(){var e=o.instances.indexOf(this);return-1!==e&&(o.instances.splice(e,1),!0)}function c(e,t){var n=o(this.namespace+(void 0===t?":":t)+e);return n.log=this.log,n}function s(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return o.debug=o,o.default=o,o.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},o.disable=function(){var e=[].concat(r(o.names.map(s)),r(o.skips.map(s).map((function(e){return"-"+e})))).join(",");return o.enable(""),e},o.enable=function(e){var t;o.save(e),o.names=[],o.skips=[];var n=("string"==typeof e?e:"").split(/[\s,]+/),r=n.length;for(t=0;t<r;t++)n[t]&&("-"===(e=n[t].replace(/\*/g,".*?"))[0]?o.skips.push(new RegExp("^"+e.substr(1)+"$")):o.names.push(new RegExp("^"+e+"$")));for(t=0;t<o.instances.length;t++){var i=o.instances[t];i.enabled=o.enabled(i.namespace)}},o.enabled=function(e){if("*"===e[e.length-1])return!0;var t,n;for(t=0,n=o.skips.length;t<n;t++)if(o.skips[t].test(e))return!1;for(t=0,n=o.names.length;t<n;t++)if(o.names[t].test(e))return!0;return!1},o.humanize=n(43),Object.keys(e).forEach((function(t){o[t]=e[t]})),o.instances=[],o.names=[],o.skips=[],o.formatters={},o.selectColor=t,o.enable(o.load()),o}},function(e,t){var n=1e3,r=6e4,o=60*r,i=24*o;function c(e,t,n,r){var o=t>=1.5*n;return Math.round(e/n)+" "+r+(o?"s":"")}e.exports=function(e,t){t=t||{};var s=typeof e;if("string"===s&&e.length>0)return function(e){if((e=String(e)).length>100)return;var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!t)return;var c=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*c;case"weeks":case"week":case"w":return 6048e5*c;case"days":case"day":case"d":return c*i;case"hours":case"hour":case"hrs":case"hr":case"h":return c*o;case"minutes":case"minute":case"mins":case"min":case"m":return c*r;case"seconds":case"second":case"secs":case"sec":case"s":return c*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}(e);if("number"===s&&isFinite(e))return t.long?function(e){var t=Math.abs(e);if(t>=i)return c(e,t,i,"day");if(t>=o)return c(e,t,o,"hour");if(t>=r)return c(e,t,r,"minute");if(t>=n)return c(e,t,n,"second");return e+" ms"}(e):function(e){var t=Math.abs(e);if(t>=i)return Math.round(e/i)+"d";if(t>=o)return Math.round(e/o)+"h";if(t>=r)return Math.round(e/r)+"m";if(t>=n)return Math.round(e/n)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},function(e,t,n){"use strict";var r=n(8),o="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,i=n(23),c=n(45),s=n(46),a="function"==typeof Symbol&&Symbol.iterator;function l(e,t){return e&&"object"==typeof e&&null!=e.key?(n=e.key,r={"=":"=0",":":"=2"},"$"+(""+n).replace(/[=:]/g,(function(e){return r[e]}))):t.toString(36);var n,r}function u(e,t,n,r){var i,s=typeof e;if("undefined"!==s&&"boolean"!==s||(e=null),null===e||"string"===s||"number"===s||"object"===s&&e.$$typeof===o)return n(r,e,""===t?"."+l(e,0):t),1;var p=0,m=""===t?".":t+":";if(Array.isArray(e))for(var f=0;f<e.length;f++)p+=u(i=e[f],m+l(i,f),n,r);else{var d=function(e){var t=e&&(a&&e[a]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(d){0;for(var g,b=d.call(e),h=0;!(g=b.next()).done;)p+=u(i=g.value,m+l(i,h++),n,r)}else if("object"===s){0;var y=""+e;c(!1,"Objects are not valid as a React child (found: %s).%s","[object Object]"===y?"object with keys {"+Object.keys(e).join(", ")+"}":y,"")}}return p}var p=/\/+/g;function m(e){return(""+e).replace(p,"$&/")}var f,d,g=b,b=function(e){if(this.instancePool.length){var t=this.instancePool.pop();return this.call(t,e),t}return new this(e)},h=function(e){c(e instanceof this,"Trying to release an instance into a pool of a different type."),e.destructor(),this.instancePool.length<this.poolSize&&this.instancePool.push(e)};function y(e,t,n,r){this.result=e,this.keyPrefix=t,this.func=n,this.context=r,this.count=0}function v(e,t,n){var o,c,s=e.result,a=e.keyPrefix,l=e.func,u=e.context,p=l.call(u,t,e.count++);Array.isArray(p)?O(p,s,n,i.thatReturnsArgument):null!=p&&(r.isValidElement(p)&&(o=p,c=a+(!p.key||t&&t.key===p.key?"":m(p.key)+"/")+n,p=r.cloneElement(o,{key:c},void 0!==o.props?o.props.children:void 0)),s.push(p))}function O(e,t,n,r,o){var i="";null!=n&&(i=m(n)+"/");var c=y.getPooled(t,i,r,o);!function(e,t,n){null==e||u(e,"",t,n)}(e,v,c),y.release(c)}y.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},f=function(e,t,n,r){if(this.instancePool.length){var o=this.instancePool.pop();return this.call(o,e,t,n,r),o}return new this(e,t,n,r)},(d=y).instancePool=[],d.getPooled=f||g,d.poolSize||(d.poolSize=10),d.release=h;e.exports=function(e){if("object"!=typeof e||!e||Array.isArray(e))return s(!1,"React.addons.createFragment only accepts a single object. Got: %s",e),e;if(r.isValidElement(e))return s(!1,"React.addons.createFragment does not accept a ReactElement without a wrapper object."),e;c(1!==e.nodeType,"React.addons.createFragment(...): Encountered an invalid child; DOM elements are not valid children of React components.");var t=[];for(var n in e)O(e[n],t,n,i.thatReturnsArgument);return t}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,o,i,c,s){if(!e){var a;if(void 0===t)a=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,o,i,c,s],u=0;(a=new Error(t.replace(/%s/g,(function(){return l[u++]})))).name="Invariant Violation"}throw a.framesToPop=1,a}}},function(e,t,n){"use strict";var r=n(23);e.exports=r},function(e,t,n){"use strict";function r(e){return e.match(/^\{\{\//)?{type:"componentClose",value:e.replace(/\W/g,"")}:e.match(/\/\}\}$/)?{type:"componentSelfClosing",value:e.replace(/\W/g,"")}:e.match(/^\{\{/)?{type:"componentOpen",value:e.replace(/\W/g,"")}:{type:"string",value:e}}e.exports=function(e){return e.split(/(\{\{\/?\s*\w+\s*\/?\}\})/g).map(r)}},function(e,t,n){"use strict";var r=n(17),o=n(25);function i(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}t.BlockHash=i,i.prototype.update=function(e,t){if(e=r.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var n=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-n,e.length),0===this.pending.length&&(this.pending=null),e=r.join32(e,0,e.length-n,this.endian);for(var o=0;o<e.length;o+=this._delta32)this._update(e,o,o+this._delta32)}return this},i.prototype.digest=function(e){return this.update(this._pad()),o(null===this.pending),this._digest(e)},i.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,n=t-(e+this.padLength)%t,r=new Array(n+this.padLength);r[0]=128;for(var o=1;o<n;o++)r[o]=0;if(e<<=3,"big"===this.endian){for(var i=8;i<this.padLength;i++)r[o++]=0;r[o++]=0,r[o++]=0,r[o++]=0,r[o++]=0,r[o++]=e>>>24&255,r[o++]=e>>>16&255,r[o++]=e>>>8&255,r[o++]=255&e}else for(r[o++]=255&e,r[o++]=e>>>8&255,r[o++]=e>>>16&255,r[o++]=e>>>24&255,r[o++]=0,r[o++]=0,r[o++]=0,r[o++]=0,i=8;i<this.padLength;i++)r[o++]=0;return r}},function(e,t,n){"use strict";var r=n(17).rotr32;function o(e,t,n){return e&t^~e&n}function i(e,t,n){return e&t^e&n^t&n}function c(e,t,n){return e^t^n}t.ft_1=function(e,t,n,r){return 0===e?o(t,n,r):1===e||3===e?c(t,n,r):2===e?i(t,n,r):void 0},t.ch32=o,t.maj32=i,t.p32=c,t.s0_256=function(e){return r(e,2)^r(e,13)^r(e,22)},t.s1_256=function(e){return r(e,6)^r(e,11)^r(e,25)},t.g0_256=function(e){return r(e,7)^r(e,18)^e>>>3},t.g1_256=function(e){return r(e,17)^r(e,19)^e>>>10}},function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,r)}e.exports=n},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(t)}e.exports=n},function(e,t){e.exports=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}}},function(e,t,n){var r=n(54),o=n(15);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?o(e):t}},function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=n=function(e){return typeof e}:e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(t)}e.exports=n},function(e,t,n){"use strict";
7
  /** @license React v1.3.0
8
  * use-subscription.production.min.js
9
  *
16
  object-assign
17
  (c) Sindre Sorhus
18
  @license MIT
19
+ */var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function c(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}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(o){return!1}}()?Object.assign:function(e,t){for(var n,s,a=c(e),l=1;l<arguments.length;l++){for(var u in n=Object(arguments[l]))o.call(n,u)&&(a[u]=n[u]);if(r){s=r(n);for(var p=0;p<s.length;p++)i.call(n,s[p])&&(a[s[p]]=n[s[p]])}}return a}},function(e,t,n){"use strict";n.r(t),n.d(t,"registerPremiumContentBlocks",(function(){return mt}));var r={};n.r(r),n.d(r,"name",(function(){return Ke})),n.d(r,"category",(function(){return He})),n.d(r,"settings",(function(){return Ge})),n.d(r,"SUPPORTED_CURRENCIES",(function(){return Ve})),n.d(r,"CURRENCY_OPTIONS",(function(){return We})),n.d(r,"minimumTransactionAmountForCurrency",(function(){return ze})),n.d(r,"isPriceValid",(function(){return Ze}));var o={};n.r(o),n.d(o,"name",(function(){return Je})),n.d(o,"category",(function(){return qe})),n.d(o,"settings",(function(){return Xe}));var i={};n.r(i),n.d(i,"name",(function(){return ct})),n.d(i,"category",(function(){return st})),n.d(i,"settings",(function(){return at}));var c=n(14),s=n.n(c),a=n(9),l=n.n(a),u=n(12),p=n.n(u),m=n(13),f=n(1),d=n(0),g={AED:{symbol:"د.إ.‏",grouping:",",decimal:".",precision:2},AFN:{symbol:"؋",grouping:",",decimal:".",precision:2},ALL:{symbol:"Lek",grouping:".",decimal:",",precision:2},AMD:{symbol:"֏",grouping:",",decimal:".",precision:2},ANG:{symbol:"ƒ",grouping:",",decimal:".",precision:2},AOA:{symbol:"Kz",grouping:",",decimal:".",precision:2},ARS:{symbol:"$",grouping:".",decimal:",",precision:2},AUD:{symbol:"A$",grouping:",",decimal:".",precision:2},AWG:{symbol:"ƒ",grouping:",",decimal:".",precision:2},AZN:{symbol:"₼",grouping:" ",decimal:",",precision:2},BAM:{symbol:"КМ",grouping:".",decimal:",",precision:2},BBD:{symbol:"Bds$",grouping:",",decimal:".",precision:2},BDT:{symbol:"৳",grouping:",",decimal:".",precision:0},BGN:{symbol:"лв.",grouping:" ",decimal:",",precision:2},BHD:{symbol:"د.ب.‏",grouping:",",decimal:".",precision:3},BIF:{symbol:"FBu",grouping:",",decimal:".",precision:0},BMD:{symbol:"$",grouping:",",decimal:".",precision:2},BND:{symbol:"$",grouping:".",decimal:",",precision:0},BOB:{symbol:"Bs",grouping:".",decimal:",",precision:2},BRL:{symbol:"R$",grouping:".",decimal:",",precision:2},BSD:{symbol:"$",grouping:",",decimal:".",precision:2},BTC:{symbol:"Ƀ",grouping:",",decimal:".",precision:2},BTN:{symbol:"Nu.",grouping:",",decimal:".",precision:1},BWP:{symbol:"P",grouping:",",decimal:".",precision:2},BYR:{symbol:"р.",grouping:" ",decimal:",",precision:2},BZD:{symbol:"BZ$",grouping:",",decimal:".",precision:2},CAD:{symbol:"C$",grouping:",",decimal:".",precision:2},CDF:{symbol:"FC",grouping:",",decimal:".",precision:2},CHF:{symbol:"CHF",grouping:"'",decimal:".",precision:2},CLP:{symbol:"$",grouping:".",decimal:",",precision:2},CNY:{symbol:"¥",grouping:",",decimal:".",precision:2},COP:{symbol:"$",grouping:".",decimal:",",precision:2},CRC:{symbol:"₡",grouping:".",decimal:",",precision:2},CUC:{symbol:"CUC",grouping:",",decimal:".",precision:2},CUP:{symbol:"$MN",grouping:",",decimal:".",precision:2},CVE:{symbol:"$",grouping:",",decimal:".",precision:2},CZK:{symbol:"Kč",grouping:" ",decimal:",",precision:2},DJF:{symbol:"Fdj",grouping:",",decimal:".",precision:0},DKK:{symbol:"kr.",grouping:"",decimal:",",precision:2},DOP:{symbol:"RD$",grouping:",",decimal:".",precision:2},DZD:{symbol:"د.ج.‏",grouping:",",decimal:".",precision:2},EGP:{symbol:"ج.م.‏",grouping:",",decimal:".",precision:2},ERN:{symbol:"Nfk",grouping:",",decimal:".",precision:2},ETB:{symbol:"ETB",grouping:",",decimal:".",precision:2},EUR:{symbol:"€",grouping:".",decimal:",",precision:2},FJD:{symbol:"FJ$",grouping:",",decimal:".",precision:2},FKP:{symbol:"£",grouping:",",decimal:".",precision:2},GBP:{symbol:"£",grouping:",",decimal:".",precision:2},GEL:{symbol:"Lari",grouping:" ",decimal:",",precision:2},GHS:{symbol:"₵",grouping:",",decimal:".",precision:2},GIP:{symbol:"£",grouping:",",decimal:".",precision:2},GMD:{symbol:"D",grouping:",",decimal:".",precision:2},GNF:{symbol:"FG",grouping:",",decimal:".",precision:0},GTQ:{symbol:"Q",grouping:",",decimal:".",precision:2},GYD:{symbol:"G$",grouping:",",decimal:".",precision:2},HKD:{symbol:"HK$",grouping:",",decimal:".",precision:2},HNL:{symbol:"L.",grouping:",",decimal:".",precision:2},HRK:{symbol:"kn",grouping:".",decimal:",",precision:2},HTG:{symbol:"G",grouping:",",decimal:".",precision:2},HUF:{symbol:"Ft",grouping:".",decimal:",",precision:0},IDR:{symbol:"Rp",grouping:".",decimal:",",precision:0},ILS:{symbol:"₪",grouping:",",decimal:".",precision:2},INR:{symbol:"₹",grouping:",",decimal:".",precision:2},IQD:{symbol:"د.ع.‏",grouping:",",decimal:".",precision:2},IRR:{symbol:"﷼",grouping:",",decimal:"/",precision:2},ISK:{symbol:"kr.",grouping:".",decimal:",",precision:0},JMD:{symbol:"J$",grouping:",",decimal:".",precision:2},JOD:{symbol:"د.ا.‏",grouping:",",decimal:".",precision:3},JPY:{symbol:"¥",grouping:",",decimal:".",precision:0},KES:{symbol:"S",grouping:",",decimal:".",precision:2},KGS:{symbol:"сом",grouping:" ",decimal:"-",precision:2},KHR:{symbol:"៛",grouping:",",decimal:".",precision:0},KMF:{symbol:"CF",grouping:",",decimal:".",precision:2},KPW:{symbol:"₩",grouping:",",decimal:".",precision:0},KRW:{symbol:"₩",grouping:",",decimal:".",precision:0},KWD:{symbol:"د.ك.‏",grouping:",",decimal:".",precision:3},KYD:{symbol:"$",grouping:",",decimal:".",precision:2},KZT:{symbol:"₸",grouping:" ",decimal:"-",precision:2},LAK:{symbol:"₭",grouping:",",decimal:".",precision:0},LBP:{symbol:"ل.ل.‏",grouping:",",decimal:".",precision:2},LKR:{symbol:"₨",grouping:",",decimal:".",precision:0},LRD:{symbol:"L$",grouping:",",decimal:".",precision:2},LSL:{symbol:"M",grouping:",",decimal:".",precision:2},LYD:{symbol:"د.ل.‏",grouping:",",decimal:".",precision:3},MAD:{symbol:"د.م.‏",grouping:",",decimal:".",precision:2},MDL:{symbol:"lei",grouping:",",decimal:".",precision:2},MGA:{symbol:"Ar",grouping:",",decimal:".",precision:0},MKD:{symbol:"ден.",grouping:".",decimal:",",precision:2},MMK:{symbol:"K",grouping:",",decimal:".",precision:2},MNT:{symbol:"₮",grouping:" ",decimal:",",precision:2},MOP:{symbol:"MOP$",grouping:",",decimal:".",precision:2},MRO:{symbol:"UM",grouping:",",decimal:".",precision:2},MTL:{symbol:"₤",grouping:",",decimal:".",precision:2},MUR:{symbol:"₨",grouping:",",decimal:".",precision:2},MVR:{symbol:"MVR",grouping:",",decimal:".",precision:1},MWK:{symbol:"MK",grouping:",",decimal:".",precision:2},MXN:{symbol:"MX$",grouping:",",decimal:".",precision:2},MYR:{symbol:"RM",grouping:",",decimal:".",precision:2},MZN:{symbol:"MT",grouping:",",decimal:".",precision:0},NAD:{symbol:"N$",grouping:",",decimal:".",precision:2},NGN:{symbol:"₦",grouping:",",decimal:".",precision:2},NIO:{symbol:"C$",grouping:",",decimal:".",precision:2},NOK:{symbol:"kr",grouping:" ",decimal:",",precision:2},NPR:{symbol:"₨",grouping:",",decimal:".",precision:2},NZD:{symbol:"NZ$",grouping:",",decimal:".",precision:2},OMR:{symbol:"﷼",grouping:",",decimal:".",precision:3},PAB:{symbol:"B/.",grouping:",",decimal:".",precision:2},PEN:{symbol:"S/.",grouping:",",decimal:".",precision:2},PGK:{symbol:"K",grouping:",",decimal:".",precision:2},PHP:{symbol:"₱",grouping:",",decimal:".",precision:2},PKR:{symbol:"₨",grouping:",",decimal:".",precision:2},PLN:{symbol:"zł",grouping:" ",decimal:",",precision:2},PYG:{symbol:"₲",grouping:".",decimal:",",precision:2},QAR:{symbol:"﷼",grouping:",",decimal:".",precision:2},RON:{symbol:"lei",grouping:".",decimal:",",precision:2},RSD:{symbol:"Дин.",grouping:".",decimal:",",precision:2},RUB:{symbol:"₽",grouping:" ",decimal:",",precision:2},RWF:{symbol:"RWF",grouping:" ",decimal:",",precision:2},SAR:{symbol:"﷼",grouping:",",decimal:".",precision:2},SBD:{symbol:"S$",grouping:",",decimal:".",precision:2},SCR:{symbol:"₨",grouping:",",decimal:".",precision:2},SDD:{symbol:"LSd",grouping:",",decimal:".",precision:2},SDG:{symbol:"£‏",grouping:",",decimal:".",precision:2},SEK:{symbol:"kr",grouping:",",decimal:".",precision:2},SGD:{symbol:"S$",grouping:",",decimal:".",precision:2},SHP:{symbol:"£",grouping:",",decimal:".",precision:2},SLL:{symbol:"Le",grouping:",",decimal:".",precision:2},SOS:{symbol:"S",grouping:",",decimal:".",precision:2},SRD:{symbol:"$",grouping:",",decimal:".",precision:2},STD:{symbol:"Db",grouping:",",decimal:".",precision:2},SVC:{symbol:"₡",grouping:",",decimal:".",precision:2},SYP:{symbol:"£",grouping:",",decimal:".",precision:2},SZL:{symbol:"E",grouping:",",decimal:".",precision:2},THB:{symbol:"฿",grouping:",",decimal:".",precision:2},TJS:{symbol:"TJS",grouping:" ",decimal:";",precision:2},TMT:{symbol:"m",grouping:" ",decimal:",",precision:0},TND:{symbol:"د.ت.‏",grouping:",",decimal:".",precision:3},TOP:{symbol:"T$",grouping:",",decimal:".",precision:2},TRY:{symbol:"TL",grouping:".",decimal:",",precision:2},TTD:{symbol:"TT$",grouping:",",decimal:".",precision:2},TVD:{symbol:"$T",grouping:",",decimal:".",precision:2},TWD:{symbol:"NT$",grouping:",",decimal:".",precision:2},TZS:{symbol:"TSh",grouping:",",decimal:".",precision:2},UAH:{symbol:"₴",grouping:" ",decimal:",",precision:2},UGX:{symbol:"USh",grouping:",",decimal:".",precision:2},USD:{symbol:"$",grouping:",",decimal:".",precision:2},UYU:{symbol:"$U",grouping:".",decimal:",",precision:2},UZS:{symbol:"сўм",grouping:" ",decimal:",",precision:2},VEB:{symbol:"Bs.",grouping:",",decimal:".",precision:2},VEF:{symbol:"Bs. F.",grouping:".",decimal:",",precision:2},VND:{symbol:"₫",grouping:".",decimal:",",precision:1},VUV:{symbol:"VT",grouping:",",decimal:".",precision:0},WST:{symbol:"WS$",grouping:",",decimal:".",precision:2},XAF:{symbol:"F",grouping:",",decimal:".",precision:2},XCD:{symbol:"$",grouping:",",decimal:".",precision:2},XOF:{symbol:"F",grouping:" ",decimal:",",precision:2},XPF:{symbol:"F",grouping:",",decimal:".",precision:2},YER:{symbol:"﷼",grouping:",",decimal:".",precision:2},ZAR:{symbol:"R",grouping:" ",decimal:",",precision:2},ZMW:{symbol:"ZK",grouping:",",decimal:".",precision:2},WON:{symbol:"₩",grouping:",",decimal:".",precision:2}};function b(e){return g[e]||{symbol:"$",grouping:",",decimal:".",precision:2}}var h,y,v,O,j=n(11),w=n(6),C=n.n(w),_=n(7),k=n.n(_),x=n(2),S=n(5),E=n(4),P=n(16),F=n(18),B=n.n(F),N=n(10),A=n.n(N),L=n(26),R=n.n(L),T=n(27),D=n.n(T);h={"(":9,"!":8,"*":7,"/":7,"%":7,"+":6,"-":6,"<":5,"<=":5,">":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},y=["(","?"],v={")":["("],":":["?","?:"]},O=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;var M={"!":function(e){return!e},"*":function(e,t){return e*t},"/":function(e,t){return e/t},"%":function(e,t){return e%t},"+":function(e,t){return e+t},"-":function(e,t){return e-t},"<":function(e,t){return e<t},"<=":function(e,t){return e<=t},">":function(e,t){return e>t},">=":function(e,t){return e>=t},"==":function(e,t){return e===t},"!=":function(e,t){return e!==t},"&&":function(e,t){return e&&t},"||":function(e,t){return e||t},"?:":function(e,t,n){if(e)throw t;return n}};function I(e){var t=function(e){for(var t,n,r,o,i=[],c=[];t=e.match(O);){for(n=t[0],(r=e.substr(0,t.index).trim())&&i.push(r);o=c.pop();){if(v[n]){if(v[n][0]===o){n=v[n][1]||n;break}}else if(y.indexOf(o)>=0||h[o]<h[n]){c.push(o);break}i.push(o)}v[n]||c.push(n),e=e.substr(t.index+n.length)}return(e=e.trim())&&i.push(e),i.concat(c.reverse())}(e);return function(e){return function(e,t){var n,r,o,i,c,s,a=[];for(n=0;n<e.length;n++){if(c=e[n],i=M[c]){for(r=i.length,o=Array(r);r--;)o[r]=a.pop();try{s=i.apply(null,o)}catch(l){return l}}else s=t.hasOwnProperty(c)?t[c]:+c;a.push(s)}return a[0]}(t,e)}}var $={contextDelimiter:"",onMissingKey:null};function U(e,t){var n;for(n in this.data=e,this.pluralForms={},this.options={},$)this.options[n]=void 0!==t&&n in t?t[n]:$[n]}U.prototype.getPluralForm=function(e,t){var n,r,o,i,c=this.pluralForms[e];return c||("function"!=typeof(o=(n=this.data[e][""])["Plural-Forms"]||n["plural-forms"]||n.plural_forms)&&(r=function(e){var t,n,r;for(t=e.split(";"),n=0;n<t.length;n++)if(0===(r=t[n].trim()).indexOf("plural="))return r.substr(7)}(n["Plural-Forms"]||n["plural-forms"]||n.plural_forms),i=I(r),o=function(e){return+i({n:e})}),c=this.pluralForms[e]=o),c(t)},U.prototype.dcnpgettext=function(e,t,n,r,o){var i,c,s;return i=void 0===o?0:this.getPluralForm(e,o),c=n,t&&(c=t+this.options.contextDelimiter+n),(s=this.data[e][c])&&s[i]?s[i]:(this.options.onMissingKey&&this.options.onMissingKey(n,e),0===i?n:r)};var K=n(28),H=n.n(K),G=n(29),V=n.n(G),W=n(19),z=/%(((\d+)\$)|(\(([$_a-zA-Z][$_a-zA-Z0-9]*)\)))?[ +0#-]*\d*(\.(\d+|\*))?(ll|[lhqL])?([cduxXefgsp%])/g;function Z(e,t){var n;if(!Array.isArray(t))for(t=new Array(arguments.length-1),n=1;n<arguments.length;n++)t[n-1]=arguments[n];return n=1,e.replace(z,(function(){var e,r,o,i,c;return e=arguments[3],r=arguments[5],o=arguments[7],"%"===(i=arguments[9])?"%":("*"===o&&(o=t[n-1],n++),void 0!==r?t[0]&&"object"==typeof t[0]&&t[0].hasOwnProperty(r)&&(c=t[0][r]):(void 0===e&&(e=n),n++,c=t[e-1]),"f"===i?c=parseFloat(c)||0:"d"===i&&(c=parseInt(c)||0),void 0!==o&&("f"===i?c=c.toFixed(o):"s"===i&&(c=c.substr(0,o))),null!=c?c:"")}))}
20
  /*
21
  * Exposes number format capability
22
  *
23
  * @copyright Copyright (c) 2013 Kevin van Zonneveld (http://kvz.io) and Contributors (http://phpjs.org/authors).
24
  * @license See CREDITS.md
25
  * @see https://github.com/kvz/phpjs/blob/ffe1356af23a6f2512c84c954dd4e828e92579fa/functions/strings/number_format.js
26
+ */function Y(e,t,n,r){e=(e+"").replace(/[^0-9+\-Ee.]/g,"");var o=isFinite(+e)?+e:0,i=isFinite(+t)?Math.abs(t):0,c=void 0===r?",":r,s=void 0===n?".":n,a="";return(a=(i?function(e,t){var n=Math.pow(10,t);return""+(Math.round(e*n)/n).toFixed(t)}(o,i):""+Math.round(o)).split("."))[0].length>3&&(a[0]=a[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,c)),(a[1]||"").length<i&&(a[1]=a[1]||"",a[1]+=new Array(i-a[1].length+1).join("0")),a.join(s)}var J=R()("i18n-calypso"),q=[function(e){return e}],X={};function Q(){oe.throwErrors&&"undefined"!=typeof window&&window.console&&window.console.warn&&window.console.warn.apply(window.console,arguments)}function ee(e){return Array.prototype.slice.call(e)}function te(e){var t=e[0];("string"!=typeof t||e.length>3||e.length>2&&"object"==typeof e[1]&&"object"==typeof e[2])&&Q("Deprecated Invocation: `translate()` accepts ( string, [string], [object] ). These arguments passed:",ee(e),". See https://github.com/Automattic/i18n-calypso#translate-method"),2===e.length&&"string"==typeof t&&"string"==typeof e[1]&&Q("Invalid Invocation: `translate()` requires an options object for plural translations, but passed:",ee(e));for(var n={},r=0;r<e.length;r++)"object"==typeof e[r]&&(n=e[r]);if("string"==typeof t?n.original=t:"object"==typeof n.original&&(n.plural=n.original.plural,n.count=n.original.count,n.original=n.original.single),"string"==typeof e[1]&&(n.plural=e[1]),void 0===n.original)throw new Error("Translate called without a `string` value as first argument.");return n}function ne(e,t){return e.dcnpgettext("messages",t.context,t.original,t.plural,t.count)}function re(e,t){for(var n=q.length-1;n>=0;n--){var r=q[n](Object.assign({},t));if(e.state.locale[r.original])return ne(e.state.tannin,r)}return null}function oe(){if(!(this instanceof oe))return new oe;this.defaultLocaleSlug="en",this.defaultPluralForms=function(e){return 1===e?0:1},this.state={numberFormatSettings:{},tannin:void 0,locale:void 0,localeSlug:void 0,textDirection:void 0,translations:H()({max:100})},this.componentUpdateHooks=[],this.translateHooks=[],this.stateObserver=new W.EventEmitter,this.stateObserver.setMaxListeners(0),this.configure()}oe.throwErrors=!1,oe.prototype.on=function(){var e;(e=this.stateObserver).on.apply(e,arguments)},oe.prototype.off=function(){var e;(e=this.stateObserver).off.apply(e,arguments)},oe.prototype.emit=function(){var e;(e=this.stateObserver).emit.apply(e,arguments)},oe.prototype.numberFormat=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="number"==typeof t?t:t.decimals||0,r=t.decPoint||this.state.numberFormatSettings.decimal_point||".",o=t.thousandsSep||this.state.numberFormatSettings.thousands_sep||",";return Y(e,n,r,o)},oe.prototype.configure=function(e){Object.assign(this,e||{}),this.setLocale()},oe.prototype.setLocale=function(e){var t,n,r;if(e&&e[""]&&e[""]["key-hash"]){var o=e[""]["key-hash"],i=function(e,t){var n=!1===t?"":String(t);if(void 0!==X[n+e])return X[n+e];var r=V()().update(e).digest("hex");return X[n+e]=t?r.substr(0,t):r},c=function(e){return function(t){return t.context?(t.original=i(t.context+String.fromCharCode(4)+t.original,e),delete t.context):t.original=i(t.original,e),t}};if("sha1"===o.substr(0,4))if(4===o.length)q.push(c(!1));else{var s=o.substr(5).indexOf("-");if(s<0){var a=Number(o.substr(5));q.push(c(a))}else for(var l=Number(o.substr(5,s)),u=Number(o.substr(6+s)),p=l;p<=u;p++)q.push(c(p))}}if(e&&e[""].localeSlug)if(e[""].localeSlug===this.state.localeSlug){if(e===this.state.locale)return;Object.assign(this.state.locale,e)}else this.state.locale=Object.assign({},e);else this.state.locale={"":{localeSlug:this.defaultLocaleSlug,plural_forms:this.defaultPluralForms}};this.state.localeSlug=this.state.locale[""].localeSlug,this.state.textDirection=(null===(t=this.state.locale["text directionltr"])||void 0===t?void 0:t[0])||(null===(n=this.state.locale[""])||void 0===n||null===(r=n.momentjs_locale)||void 0===r?void 0:r.textDirection),this.state.tannin=new U(A()({},"messages",this.state.locale)),this.state.numberFormatSettings.decimal_point=ne(this.state.tannin,te(["number_format_decimals"])),this.state.numberFormatSettings.thousands_sep=ne(this.state.tannin,te(["number_format_thousands_sep"])),"number_format_decimals"===this.state.numberFormatSettings.decimal_point&&(this.state.numberFormatSettings.decimal_point="."),"number_format_thousands_sep"===this.state.numberFormatSettings.thousands_sep&&(this.state.numberFormatSettings.thousands_sep=","),this.stateObserver.emit("change")},oe.prototype.getLocale=function(){return this.state.locale},oe.prototype.getLocaleSlug=function(){return this.state.localeSlug},oe.prototype.isRtl=function(){return"rtl"===this.state.textDirection},oe.prototype.addTranslations=function(e){for(var t in e)""!==t&&(this.state.tannin.data.messages[t]=e[t]);this.stateObserver.emit("change")},oe.prototype.hasTranslation=function(){return!!re(this,te(arguments))},oe.prototype.translate=function(){var e=te(arguments),t=re(this,e);if(t||(t=ne(this.state.tannin,e)),e.args){var n=Array.isArray(e.args)?e.args.slice(0):[e.args];n.unshift(t);try{t=Z.apply(void 0,B()(n))}catch(o){if(!window||!window.console)return;var r=this.throwErrors?"error":"warn";"string"!=typeof o?window.console[r](o):window.console[r]("i18n sprintf error:",n)}}return e.components&&(t=D()({mixedString:t,components:e.components,throwErrors:this.throwErrors})),this.translateHooks.forEach((function(n){t=n(t,e)})),t},oe.prototype.reRenderTranslations=function(){J("Re-rendering all translations due to external request"),this.stateObserver.emit("change")},oe.prototype.registerComponentUpdateHook=function(e){this.componentUpdateHooks.push(e)},oe.prototype.registerTranslateHook=function(e){this.translateHooks.push(e)};var ie=oe,ce=n(30),se=n.n(ce),ae=n(31),le=n.n(ae),ue=n(15),pe=n.n(ue),me=n(32),fe=n.n(me),de=n(33),ge=n.n(de),be=n(8),he=n.n(be),ye=n(34);var ve,Oe,je=new ie,we=je.numberFormat.bind(je),Ce=(je.translate.bind(je),je.configure.bind(je),je.setLocale.bind(je),je.getLocale.bind(je),je.getLocaleSlug.bind(je),je.addTranslations.bind(je),je.reRenderTranslations.bind(je),je.registerComponentUpdateHook.bind(je),je.registerTranslateHook.bind(je),je.state,je.stateObserver,je.on.bind(je),je.off.bind(je),je.emit.bind(je),Oe={numberFormat:(ve=je).numberFormat.bind(ve),translate:ve.translate.bind(ve)},function(e){function t(){var t=e.translate.bind(e);return Object.defineProperty(t,"localeSlug",{get:e.getLocaleSlug.bind(e)}),t}}(je),function(e){var t={getCurrentValue:function(){return e.isRtl()},subscribe:function(t){return e.on("change",t),function(){return e.off("change",t)}}};function n(){return Object(ye.useSubscription)(t)}var r=Object(S.createHigherOrderComponent)((function(e){return Object(be.forwardRef)((function(t,r){var o=n();return he.a.createElement(e,C()({},t,{isRtl:o,ref:r}))}))}),"WithRTL");return{useRtl:n,withRtl:r}}(je));Ce.useRtl,Ce.withRtl;function _e(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=b(t);if(!r||isNaN(e))return null;var o=l()({},r,{},n),i=o.decimal,c=o.grouping,s=o.precision,a=o.symbol,u=e<0?"-":"",p=we(Math.abs(e),{decimals:s,thousandsSep:c,decPoint:i});return n.stripZeros&&(p=ke(p,i)),"".concat(u).concat(a).concat(p)}function ke(e,t){var n=new RegExp("\\".concat(t,"0+$"));return e.replace(n,"")}function xe(e){var t=e.className,n=e.tab,r=e.label,o=e.selectedTab,i=e.onSelected,c=(n.id===o.id?["is-pressed","is-active"]:[]).concat([t,"components-button","components-tab-button"]);return Object(d.createElement)("button",{type:"button",onClick:function(){return i(n)},className:c.join(" ")},r)}function Se(e){var t=e.className,n=e.tabs,r=e.selectedTab,o=e.onSelected,i=e.selectBlock;return Object(d.createElement)("div",{className:"premium-content-tabs block-editor-block-toolbar"},n.map((function(n){return Object(d.createElement)(xe,C()({key:n.id},e,{tab:n,selectedTab:r,className:"".concat(t,"--tab"),label:n.label,onSelected:o}))})),Object(d.createElement)("button",{onClick:function(){Object(E.select)("core/edit-post").isEditorSidebarOpened()||Object(E.dispatch)("core/edit-post").openGeneralSidebar("edit-post/block"),i()},className:"edit components-button is-button is-secondary"},Object(f.__)("Edit","premium-content")))}var Ee=n(3);function Pe(){return Object(d.createElement)("div",{className:"premium-content-wrapper"},Object(d.createElement)(Ee.InnerBlocks,{allowedBlocks:["premium-content/subscriber-view","premium-content/logged-out-view"],templateLock:"all",template:[["premium-content/subscriber-view"],["premium-content/logged-out-view"]]}))}function Fe(e){var t=e.className,n=e.plan,r=e.selectedPlan,o=e.onSelected,i=e.onClose,c=e.getPlanDescription,s=r&&n.id===r.id,a=(s?["is-selected"]:[]).concat([t]).join(" "),l=s?"yes":void 0,u=null;return n&&(u=" "+c(n)),Object(d.createElement)(x.MenuItem,{onClick:function(e){e.preventDefault(),o(n),i()},className:a,key:n.id,value:n.id,selected:s,icon:l},n.title," : ",u)}function Be(e){var t=e.plans,n=e.selectedPlan,r=e.onSelected;return Object(d.createElement)(x.MenuGroup,null,t.map((function(t){return Object(d.createElement)(Fe,C()({},e,{key:t.id,selectedPlan:n,onSelected:r,plan:t}))})))}function Ne(e){return Object(d.createElement)(x.MenuGroup,null,Object(d.createElement)(x.MenuItem,{onClick:function(t){t.preventDefault(),Object(E.select)("core/edit-post").isEditorSidebarOpened()||Object(E.dispatch)("core/edit-post").openGeneralSidebar("edit-post/block");var n=document.getElementById("new-plan-name");null!==n&&n.focus(),e.onClose()}},Object(f.__)("Add a new subscription","premium-content")))}function Ae(e){var t=e.selectedPlanId,n=e.onSelected,r=e.plans,o=e.getPlanDescription,i=r.find((function(e){return e.id===t})),c=null;return i&&(c=" "+o(i)),Object(d.createElement)(Ee.BlockControls,null,Object(d.createElement)(x.Toolbar,null,Object(d.createElement)(x.DropdownMenu,{icon:Object(d.createElement)(d.Fragment,null,Object(d.createElement)(x.Dashicon,{icon:"update"})," ",c&&Object(d.createElement)(d.Fragment,null,c)),label:Object(f.__)("Select a plan","premium-content"),className:"premium-content-toolbar-button"},(function(t){var r=t.onClose;return Object(d.createElement)(d.Fragment,null,Object(d.createElement)(Be,C()({},e,{onSelected:n,onClose:r,selectedPlan:i})),Object(d.createElement)(Ne,C()({},e,{onClose:r})))}))))}function Le(e){var t=Object(d.useState)(0),n=k()(t,2),r=n[0],o=n[1],i=e.attributes,c=e.setAttributes,s=e.className,a=e.savePlan,l=(e.currencies,e.siteSlug);return Object(d.createElement)(Ee.InspectorControls,null,l&&Object(d.createElement)(x.ExternalLink,{href:"https://wordpress.com/earn/payments/".concat(l),className:"wp-block-premium-content-container---link-to-earn"},Object(f.__)("Manage your subscriptions.","premium-content")),Object(d.createElement)(x.PanelBody,{title:"Add a new subscription",initialOpen:!0,className:"".concat(s,"---settings-add_plan")},1===r&&Object(d.createElement)(x.Placeholder,{icon:"lock",label:Object(f.__)("Premium Content","premium-content"),instructions:Object(f.__)("Saving plan...","premium-content")},Object(d.createElement)(x.Spinner,null)),0===r&&Object(d.createElement)("div",null,Object(d.createElement)(x.PanelRow,{className:"plan-name"},Object(d.createElement)(x.TextControl,{id:"new-plan-name",label:"Name",value:i.newPlanName,onChange:function(e){return c({newPlanName:e})}})),Object(d.createElement)(x.PanelRow,{className:"plan-price"},Object(d.createElement)(x.SelectControl,{label:"Currency",onChange:function(e){return c({newPlanCurrency:e})},value:i.newPlanCurrency,options:We}),Object(d.createElement)(x.TextControl,{label:"Price",value:i.newPlanPrice,onChange:function(e){return c({newPlanPrice:parseFloat(e)})},type:"number"})),Object(d.createElement)(x.PanelRow,{className:"plan-interval"},Object(d.createElement)(x.SelectControl,{label:"Interval",onChange:function(e){return c({newPlanInterval:e})},value:i.newPlanInterval,options:[{label:"Month",value:"1 month"},{label:"Year",value:"1 year"}]})),Object(d.createElement)(x.PanelRow,null,Object(d.createElement)(x.Button,{isSecondary:!0,isLarge:!0,onClick:function(t){t.preventDefault(),o(1),a(e.attributes,(function(e){o(0),e&&(c({newPlanPrice:5}),c({newPlanName:""}))}))}},Object(f.__)("Add subscription","premium-content"))))))}var Re=Object(S.compose)([Object(E.withDispatch)((function(e,t){var n,r=t.stripeConnectUrl;return{autosaveAndRedirect:(n=s()(regeneratorRuntime.mark((function t(n){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n.preventDefault(),t.next=3,e("core/editor").savePost();case 3:window.top.location.href=r;case 4:case"end":return t.stop()}}),t)}))),function(e){return n.apply(this,arguments)})}}))])((function(e){var t=e.autosaveAndRedirect,n=e.stripeConnectUrl;return Object(d.createElement)(Ee.Warning,{actions:n&&[Object(d.createElement)(x.Button,{key:"connect",href:n,onClick:t,target:"_top",isDefault:!0,className:"premium-content-block-nudge__button"},Object(f.__)("Connect","premium-content"))],className:"premium-content-block-nudge"},Object(d.createElement)("span",{className:"premium-content-block-nudge__info"},Object(d.createElement)(x.Dashicon,{icon:"star-filled"}),Object(d.createElement)("span",{className:"premium-content-block-nudge__text-container"},Object(d.createElement)("span",{className:"premium-content-block-nudge__title"},Object(f.__)("Connect to Stripe to use this block on your site","premium-content")),Object(d.createElement)("span",{className:"premium-content-block-nudge__message"},Object(f.__)("This block will be hidden from your visitors until you connect to Stripe.","premium-content")))))})),Te={selectedTab:{id:"",className:"",label:Object(d.createElement)(d.Fragment,null)},stripeNudge:null},De=Object(d.createContext)(Te),Me=[{id:"premium",label:Object(d.createElement)("span",null,Object(f.__)("Subscriber View","premium-content")),className:"wp-premium-content-subscriber-view"},{id:"wall",label:Object(d.createElement)("span",null,Object(f.__)("Non-subscriber View","premium-content")),className:"wp-premium-content-logged-out-view"}],Ie=[];function $e(e,t){var n=e.noticeOperations;n.removeAllNotices(),n.createErrorNotice(t)}var Ue=Object(S.compose)([Object(E.withSelect)((function(e,t){return{postId:(0,e("core/editor").getCurrentPostId)(),containerClientId:e("core/block-editor").getBlockHierarchyRootClientId(t.clientId)}})),x.withNotices,Object(E.withDispatch)((function(e,t){var n=e("core/block-editor");return{selectBlock:function(){n.selectBlock(t.containerClientId)}}}))])((function(e){var t=Object(d.useState)(Me[1]),n=k()(t,2),r=n[0],o=n[1],i=Object(d.useState)(!1),c=k()(i,2),s=c[0],a=c[1],l=Object(d.useState)(Ie),u=k()(l,2),m=u[0],g=u[1],b=Object(d.useState)(null),h=k()(b,2),y=h[0],v=h[1],O=Object(d.useState)(0),j=k()(O,2),w=j[0],_=j[1],S=Object(d.useState)(!1),E=k()(S,2),F=E[0],B=E[1],N=Object(d.useState)(""),A=k()(N,2),L=A[0],R=A[1],T=Object(d.useState)(""),D=k()(T,2),M=D[0],I=D[1];function $(t,n){if(!t.newPlanName||0===t.newPlanName.length)return $e(e,Object(f.__)("Plan requires a name","premium-content")),void n(!1);var r=parseFloat(t.newPlanPrice),o=ze(t.newPlanCurrency),i=Object(f.sprintf)(Object(f.__)("Minimum allowed price is %s.","premium-content"),_e(o,t.newPlanCurrency));if(r<o)return $e(e,i),void n(!1);if(!Ze(t.newPlanCurrency,r))return $e(e,Object(f.__)("Plan requires a valid price","premium-content")),void n(!1);var c={path:"/wpcom/v2/memberships/product",method:"POST",data:{currency:t.newPlanCurrency,price:t.newPlanPrice,title:t.newPlanName,interval:t.newPlanInterval}};p()(c).then((function(t){var r={id:t.id,title:t.title,interval:t.interval,price:t.price,currency:t.currency};g(m.concat([r])),U(r),function(e,t){var n=e.noticeOperations;n.removeAllNotices(),n.createNotice({status:"info",content:t})}(e,Object(f.__)("Successfully created plan","premium-content")),n&&n(!0)}),(function(){$e(e,Object(f.__)("There was an error when adding the plan.")),n&&n(!1)}))}function U(t){e.setAttributes({selectedPlanId:t.id})}var K=Object(d.useRef)(null);!function(e,t){function n(n){e.current&&n.target&&n.target instanceof Node&&!e.current.contains(n.target)?t(!1):t(!0)}Object(d.useEffect)((function(){return document.addEventListener("mousedown",n),function(){document.removeEventListener("mousedown",n)}}))}(K,a);var H=e.isSelected,G=e.className;if(Object(d.useEffect)((function(){var t={path:"/wpcom/v2/memberships/status",method:"GET"};p()(t).then((function(t){if(t||"object"==typeof t){if(t.errors&&Object.values(t.errors)&&Object.values(t.errors)[0][0])return _(2),void $e(e,Object.values(t.errors)[0][0]);v(t.connect_url),B(t.should_upgrade_to_access_memberships),R(t.upgrade_url),I(t.site_slug),t.products&&0===t.products.length&&!t.should_upgrade_to_access_memberships&&t.connected_account_id?$({newPlanCurrency:"USD",newPlanPrice:5,newPlanName:Object(f.__)("Monthly Subscription"),newPlanInterval:"1 month"},(function(){_(t.connected_account_id?1:2)})):(t.products&&t.products.length>0&&(g(t.products),e.attributes.selectedPlanId||U(t.products[0])),_(t.connected_account_id?1:2))}}),(function(t){v(null),_(2),$e(e,t.message)})),e.selectBlock()}),[]),0===w)return Object(d.createElement)("div",{className:G,ref:K},e.noticeUI,Object(d.createElement)(x.Placeholder,{icon:"lock",label:Object(f.__)("Premium Content","premium-content"),instructions:Object(f.__)("Loading data...","premium-content")},Object(d.createElement)(x.Spinner,null)));if(F)return Object(d.createElement)("div",{className:G,ref:K},e.noticeUI,Object(d.createElement)(x.Placeholder,{icon:"lock",label:Object(f.__)("Premium Content","premium-content"),instructions:Object(f.__)("You'll need to upgrade your plan to use the Premium Content block.","premium-content")},Object(d.createElement)(x.Button,{isSecondary:!0,isLarge:!0,href:L,target:"_blank",className:"premium-content-block-nudge__button"},Object(f.__)("Upgrade Your Plan","premium-content")),Object(d.createElement)("div",{className:"membership-button__disclaimer"},Object(d.createElement)(x.ExternalLink,{href:"https://wordpress.com/support/premium-content-block/"},Object(f.__)("Read more about Premium Content and related fees.","premium-content")))));var V=null;if(!F&&1!==w&&y){var W=function(e,t){var n,r=e.postId;if(!Object(P.isURL)(t))return null;if(!r)return t;try{var o=Object(P.getQueryArg)(t,"state");"string"==typeof o&&(n=JSON.parse(atob(o)))}catch(i){return t}return n.from_editor_post_id=r,Object(P.addQueryArgs)(t,{state:btoa(JSON.stringify(n))})}(e,y);V=Object(d.createElement)(Re,C()({},e,{stripeConnectUrl:W}))}return Object(d.createElement)("div",{className:G,ref:K},e.noticeUI,(H||s)&&1===w&&Object(d.createElement)(Ae,C()({},e,{plans:m,selectedPlanId:e.attributes.selectedPlanId,onSelected:U,getPlanDescription:function(e){var t=_e(parseFloat(e.price),e.currency);return"1 month"===e.interval?Object(f.sprintf)(Object(f.__)("%s / month","premium-content"),t):"1 year"===e.interval?Object(f.sprintf)(Object(f.__)("%s / year","premium-content"),t):"one-time"===e.interval?t:Object(f.sprintf)(Object(f.__)("%s / %s","premium-content"),t,e.interval)}})),(H||s)&&1===w&&Object(d.createElement)(Le,C()({},e,{savePlan:$,siteSlug:M})),(H||s)&&Object(d.createElement)(Se,C()({},e,{tabs:Me,selectedTab:r,onSelected:o})),Object(d.createElement)(De.Provider,{value:{selectedTab:r,stripeNudge:V}},Object(d.createElement)(Pe,null)))}));var Ke="premium-content/container",He="common",Ge={name:Ke,attributes:{newPlanName:{type:"string",default:"Monthly Subscription"},newPlanCurrency:{type:"string",default:"USD"},newPlanPrice:{type:"number",default:5},newPlanInterval:{type:"string",default:"1 month"},selectedPlanId:{type:"number",default:0}},title:Object(f.__)("Premium Content","premium-content"),description:Object(f.__)("Restrict access to your content for paying subscribers.","premium-content"),category:He,icon:Object(d.createElement)("svg",{width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(d.createElement)("path",{d:"M12.7439 14.4271L8.64053 13.165L8.51431 13.8718L8.09208 20.7415C8.06165 21.2365 8.61087 21.5526 9.02363 21.2776L12.7439 18.799L16.7475 21.304C17.1687 21.5676 17.7094 21.2343 17.6631 20.7396L17.0212 13.8718L17.0212 13.165L12.7439 14.4271Z",fill:"black"}),Object(d.createElement)("circle",{cx:"12.7439",cy:"8.69796",r:"5.94466",stroke:"black",strokeWidth:"1.5",fill:"none"}),Object(d.createElement)("path",{d:"M9.71023 8.12461L11.9543 10.3687L15.7776 6.54533",stroke:"black",strokeWidth:"1.5",fill:"none"})),supports:{html:!1},keywords:["premium-content",Object(f.__)("premium","premium-content"),Object(f.__)("paywall","premium-content")],edit:Ue,save:function(){return Object(d.createElement)("div",{className:"wp-block-premium-content-container"},Object(d.createElement)(Ee.InnerBlocks.Content,null))}},Ve={USD:.5,AUD:.5,BRL:.5,CAD:.5,CHF:.5,DKK:2.5,EUR:.5,GBP:.3,HKD:4,INR:.5,JPY:50,MXN:10,NOK:3,NZD:.5,PLN:2,SEK:3,SGD:.5},We=Object.keys(Ve).map((function(e){var t=b(e).symbol;return{value:e,label:t===e?e:"".concat(e," ").concat(Object(j.trimEnd)(t,"."))}}));function ze(e){return Ve[e]}function Ze(e,t){return!isNaN(t)&&t>=ze(e)}var Ye=Object(S.compose)([Object(E.withSelect)((function(e,t){return{hasInnerBlocks:!!e("core/block-editor").getBlocksByClientId(t.clientId)[0].innerBlocks.length,containerClientId:e("core/block-editor").getBlockHierarchyRootClientId(t.clientId)}})),Object(E.withDispatch)((function(e,t){var n=e("core/block-editor");return{selectBlock:function(){n.selectBlock(t.containerClientId)}}}))])((function(e){return Object(d.useEffect)((function(){e.selectBlock()}),[]),Object(d.createElement)(De.Consumer,null,(function(t){var n=t.selectedTab,r=t.stripeNudge;return Object(d.createElement)("div",{hidden:"wall"===n.id,className:n.className},r,Object(d.createElement)(Ee.InnerBlocks,{renderAppender:!e.hasInnerBlocks&&Ee.InnerBlocks.ButtonBlockAppender,templateLock:!1,template:[["core/paragraph",{placeholder:Object(f.__)("Insert the piece of content you want your visitors to see after they subscribe.","premium-content")}]]}))}))}));var Je="premium-content/subscriber-view",qe="common",Xe={name:Je,category:qe,attributes:{},title:Object(f.__)("Subscriber View","premium-content"),description:Object(f.__)("Subscriber View.","premium-content"),parent:["premium-content/container"],supports:{inserter:!1,html:!1},edit:Ye,save:function(){return Object(d.createElement)("div",{className:"wp-block-premium-content-subscriber-view"},Object(d.createElement)(Ee.InnerBlocks.Content,null))}},Qe=n(35),et=n.n(Qe),tt=window.getComputedStyle,nt=Object(x.withFallbackStyles)((function(e,t){var n,r,o,i,c=t.textButtonColor,s=t.backgroundButtonColor,a=s&&s.color,l=c&&c.color;return!l&&e&&(n=e.querySelector('[contenteditable="true"]')),r=e.querySelector(".wp-block-button__link")?e.querySelector(".wp-block-button__link"):e,e&&r&&(o=tt(r).backgroundColor),n&&(i=tt(n).color),{fallbackBackgroundColor:a||o,fallbackTextColor:l||i}}));var rt=Object(S.compose)([Object(Ee.withColors)({backgroundButtonColor:"background-color"},{textButtonColor:"color"}),nt])((function(e){function t(){var t,n=e.textButtonColor,r=e.backgroundButtonColor,o=Object(j.get)(n,"class"),i=Object(j.get)(r,"class");return et()("wp-block-button__link",(t={"has-text-color":n.color},A()(t,o,o),A()(t,"has-background",r.color),A()(t,i,i),t))}Object(d.useEffect)((function(){!function(){var n=t();e.setAttributes({buttonClasses:n})}(),function(){var t=Object(j.get)(e.textButtonColor,"color"),n=Object(j.get)(e.backgroundButtonColor,"color");void 0!==t&&e.setAttributes({customTextButtonColor:t});void 0!==n&&e.setAttributes({customBackgroundButtonColor:n})}()}),[e.backgroundButtonColor,e.textButtonColor]);var n=e.attributes,r=e.setAttributes,o=e.backgroundButtonColor,i=e.textButtonColor,c=e.setBackgroundButtonColor,s=e.setTextButtonColor,a=e.fallbackBackgroundColor,l=e.fallbackTextColor,u=o.color||a,p=i.color||l,m={border:"none",backgroundColor:u,color:p},g=t();return Object(d.createElement)("div",null,Object(d.createElement)("div",{className:"wp-block-button premium-content-logged-out-view-button"},Object(d.createElement)(Ee.RichText,{placeholder:Object(f.__)("Add text…","premium-content"),value:n.subscribeButtonText,onChange:function(e){return r({subscribeButtonText:e})},className:g,style:m,keepPlaceholderOnFocus:!0}),Object(d.createElement)(Ee.RichText,{placeholder:Object(f.__)("Add text…","premium-content"),value:n.loginButtonText,onChange:function(e){return r({loginButtonText:e})},className:g,style:m,keepPlaceholderOnFocus:!0})),Object(d.createElement)(Ee.InspectorControls,null,Object(d.createElement)(Ee.PanelColorSettings,{title:Object(f.__)("Button Color Settings","premium-content"),colorSettings:[{value:o||void 0,onChange:c,label:Object(f.__)("Background Color","premium-content")},{value:i||void 0,onChange:s,label:Object(f.__)("Text Color","premium-content")}]}),Object(d.createElement)(Ee.ContrastChecker,{textColor:p,backgroundColor:u,fallbackBackgroundColor:a,fallbackTextColor:l})))}));var ot=Object(S.compose)([Object(E.withSelect)((function(e,t){return{containerClientId:e("core/block-editor").getBlockHierarchyRootClientId(t.clientId)}})),Object(E.withDispatch)((function(e,t){var n=e("core/block-editor");return{selectBlock:function(){n.selectBlock(t.containerClientId)}}}))])((function(e){Object(d.useEffect)((function(){e.selectBlock()}),[]);var t=Object(d.createElement)(rt,{attributes:Object(j.pick)(e.attributes,["subscribeButtonText","loginButtonText","backgroundButtonColor","textButtonColor","customBackgroundButtonColor","customTextButtonColor"]),setAttributes:e.setAttributes});return Object(d.createElement)(De.Consumer,null,(function(e){var n=e.selectedTab,r=e.stripeNudge;return Object(d.createElement)("div",{hidden:"premium"===n.id,className:n.className},r,Object(d.createElement)(Ee.InnerBlocks,{templateLock:!1,template:[["core/heading",{content:Object(f.__)("Subscribe to get access","premium-content"),level:3}],["core/paragraph",{content:Object(f.__)("Read more of this content when you subscribe today.","premium-content")}]]}),t)}))}));var it=n(20),ct="premium-content/logged-out-view",st="common",at={name:ct,category:st,attributes:{subscribeButtonText:{type:"string",default:"Subscribe"},loginButtonText:{type:"string",default:"Log In"},buttonClasses:{type:"string",default:""},backgroundButtonColor:{type:"string",default:""},textButtonColor:{type:"string",default:""},customBackgroundButtonColor:{type:"string",default:""},customTextButtonColor:{type:"string",default:""}},title:Object(f.__)("Logged Out View","premium-content"),description:Object(f.__)("Logged Out View.","premium-content"),parent:["premium-content/container"],supports:{inserter:!1,html:!1},edit:ot,save:function(){return Object(d.createElement)("div",{className:"wp-block-premium-content-logged-out-view"},Object(d.createElement)(Ee.InnerBlocks.Content,null))}},lt=Object(E.subscribe)((function(){var e=Object(E.select)("core/rich-text").getFormatType("core/link");if(e){lt(),Object(it.unregisterFormatType)("core/link");var t=Object(S.compose)(Object(E.withSelect)((function(e){return{selectedBlock:e("core/block-editor").getSelectedBlock()}})),Object(S.ifCondition)((function(e){return e.selectedBlock&&e.selectedBlock.name!==ct})))(e.edit);Object(it.registerFormatType)("core/link",l()({},e,{edit:t}))}})),ut=function(e){if(e){var t=e.name,n=e.category,r=e.settings;Object(m.registerBlockType)(t,l()({category:n},r))}},pt=function(){var e=s()(regeneratorRuntime.mark((function e(){var t,n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,p()({path:"/wpcom/v2/memberships/status"});case 3:t=e.sent,e.next=9;break;case 6:return e.prev=6,e.t0=e.catch(0),e.abrupt("return");case 9:if(!t.should_upgrade_to_access_memberships){e.next=17;break}if(n=Object(m.getBlockType)(Ke)){e.next=14;break}return e.abrupt("return");case 14:r=Object(f._x)("paid","Short label appearing near a block requiring a paid plan","premium-content"),Object(m.unregisterBlockType)(Ke),Object(m.registerBlockType)(Ke,l()({},n,{title:"".concat(n.title," (").concat(r,")")}));case 17:case"end":return e.stop()}}),e,null,[[0,6]])})));return function(){return e.apply(this,arguments)}}(),mt=function(){[r,i,o].forEach(ut),pt()};mt()}]));
premium-content/editor.css CHANGED
@@ -104,3 +104,35 @@
104
  margin: 16px;
105
  display: block;
106
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
104
  margin: 16px;
105
  display: block;
106
  }
107
+
108
+ .premium-content-toolbar-button .components-dropdown-menu__toggle::after {
109
+ display: block;
110
+ content: "";
111
+ position: absolute;
112
+ bottom: 1px;
113
+ right: 0;
114
+ border-color: transparent currentColor currentColor transparent;
115
+ border-style: solid;
116
+ border-width: 4px;
117
+ }
118
+
119
+ .premium-content-logged-out-view-button {
120
+ margin: 5px;
121
+ }
122
+
123
+ .wp-block-premium-content-logged-out-view__buttons {
124
+ display: flex;
125
+ margin: 5px;
126
+ }
127
+
128
+ .premium-content-logged-out-view-button.wp-block-button .wp-block-button__link,
129
+ .wp-block-premium-content-logged-out-view__buttons .wp-block-button .wp-block-button__link {
130
+ min-width: 200px;
131
+ margin-right: 20px;
132
+ }
133
+
134
+ .wp-block-premium-content-logged-out-view p:last-child,
135
+ .wp-block-premium-content-logged-out-view h3 {
136
+ margin-bottom: 20px;
137
+ }
138
+
premium-content/index.js CHANGED
@@ -1,9 +1,15 @@
 
1
  /**
2
  * WordPress dependencies
3
  */
4
- import { registerBlockType } from '@wordpress/blocks';
 
 
 
5
 
6
- // Register Blocks
 
 
7
  import * as container from './blocks/container';
8
  import * as subscriberView from './blocks/subscriber-view';
9
  import * as loggedOutView from './blocks/logged-out-view';
@@ -13,7 +19,7 @@ import * as loggedOutView from './blocks/logged-out-view';
13
  *
14
  * @typedef {import('@wordpress/blocks').BlockConfiguration} BlockConfiguration
15
  *
16
- * @typedef {Object} Block
17
  * @property {string} name
18
  * @property {string} category
19
  * @property {BlockConfiguration} settings
@@ -33,11 +39,46 @@ const registerBlock = ( block ) => {
33
  } );
34
  };
35
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
36
  /**
37
  * Function to register blocks provided by CoBlocks.
38
  */
39
  export const registerPremiumContentBlocks = () => {
40
  [ container, loggedOutView, subscriberView ].forEach( registerBlock );
 
 
 
41
  };
42
 
43
  registerPremiumContentBlocks();
1
+ /* eslint-disable wpcalypso/import-docblock */
2
  /**
3
  * WordPress dependencies
4
  */
5
+ import apiFetch from '@wordpress/api-fetch';
6
+ import { getBlockType, registerBlockType, unregisterBlockType } from '@wordpress/blocks';
7
+ import { _x } from '@wordpress/i18n';
8
+ /* eslint-enable wpcalypso/import-docblock */
9
 
10
+ /**
11
+ * Internal dependencies
12
+ */
13
  import * as container from './blocks/container';
14
  import * as subscriberView from './blocks/subscriber-view';
15
  import * as loggedOutView from './blocks/logged-out-view';
19
  *
20
  * @typedef {import('@wordpress/blocks').BlockConfiguration} BlockConfiguration
21
  *
22
+ * @typedef {object} Block
23
  * @property {string} name
24
  * @property {string} category
25
  * @property {BlockConfiguration} settings
39
  } );
40
  };
41
 
42
+ /**
43
+ * Appends a "paid" tag to the Premium Content block title if site requires an upgrade.
44
+ */
45
+ const addPaidBlockFlags = async () => {
46
+ let membershipsStatus;
47
+ try {
48
+ membershipsStatus = await apiFetch( { path: '/wpcom/v2/memberships/status' } );
49
+ } catch {
50
+ // Do not add any flag if request fails.
51
+ return;
52
+ }
53
+ const shouldUpgrade = membershipsStatus.should_upgrade_to_access_memberships;
54
+ if ( shouldUpgrade ) {
55
+ const premiumContentBlock = getBlockType( container.name );
56
+ if ( ! premiumContentBlock ) {
57
+ return;
58
+ }
59
+
60
+ const paidFlag = _x(
61
+ 'paid',
62
+ 'Short label appearing near a block requiring a paid plan',
63
+ 'premium-content'
64
+ );
65
+
66
+ unregisterBlockType( container.name );
67
+ registerBlockType( container.name, {
68
+ ...premiumContentBlock,
69
+ title: `${ premiumContentBlock.title } (${ paidFlag })`,
70
+ } );
71
+ }
72
+ };
73
+
74
  /**
75
  * Function to register blocks provided by CoBlocks.
76
  */
77
  export const registerPremiumContentBlocks = () => {
78
  [ container, loggedOutView, subscriberView ].forEach( registerBlock );
79
+
80
+ // Done after blocks are registered so the status API request doesn't suspend the execution.
81
+ addPaidBlockFlags();
82
  };
83
 
84
  registerPremiumContentBlocks();
premium-content/premium-content-dom.php CHANGED
@@ -28,6 +28,8 @@ class Premium_Content_Dom {
28
  function __construct( $content ) {
29
  $this->doc = new \DOMDocument();
30
  libxml_use_internal_errors( true );
 
 
31
  // Do not set doctype, html, or body tags
32
  $status = $this->doc->loadHTML( $content, LIBXML_HTML_NOIMPLIED | LIBXML_HTML_NODEFDTD );
33
  if ( $status === false ) {
28
  function __construct( $content ) {
29
  $this->doc = new \DOMDocument();
30
  libxml_use_internal_errors( true );
31
+ // Ensures UTF-8 characters are correctly encoded.
32
+ $content = mb_convert_encoding( $content, 'HTML-ENTITIES', 'UTF-8' );
33
  // Do not set doctype, html, or body tags
34
  $status = $this->doc->loadHTML( $content, LIBXML_HTML_NOIMPLIED | LIBXML_HTML_NODEFDTD );
35
  if ( $status === false ) {
premium-content/premium-content.php CHANGED
@@ -83,7 +83,6 @@ function premium_content_block_init() {
83
  array(
84
  'editor_script' => 'premium-content-container-block-editor',
85
  'editor_style' => 'premium-content-container-block-editor',
86
- 'style' => 'premium-content-container-block',
87
  'render_callback' => '\A8C\FSE\Earn\PremiumContent\premium_content_container_render',
88
  )
89
  );
@@ -193,6 +192,7 @@ function premium_content_container_render( $attributes, $content ) {
193
  * @return string
194
  */
195
  function premium_content_block_logged_out_view_render( $attributes, $content ) {
 
196
  wp_enqueue_script( 'premium-content-frontend' );
197
 
198
  $button_styles = array();
83
  array(
84
  'editor_script' => 'premium-content-container-block-editor',
85
  'editor_style' => 'premium-content-container-block-editor',
 
86
  'render_callback' => '\A8C\FSE\Earn\PremiumContent\premium_content_container_render',
87
  )
88
  );
192
  * @return string
193
  */
194
  function premium_content_block_logged_out_view_render( $attributes, $content ) {
195
+ wp_enqueue_style( 'premium-content-container-block' );
196
  wp_enqueue_script( 'premium-content-frontend' );
197
 
198
  $button_styles = array();
premium-content/style.css CHANGED
@@ -18,17 +18,6 @@
18
  margin: 5px;
19
  }
20
 
21
- .premium-content-toolbar-button .components-dropdown-menu__toggle::after {
22
- display: block;
23
- content: "";
24
- position: absolute;
25
- bottom: 1px;
26
- right: 0;
27
- border-color: transparent currentColor currentColor transparent;
28
- border-style: solid;
29
- border-width: 4px;
30
- }
31
-
32
  .premium-content-logged-out-view-button.wp-block-button .wp-block-button__link,
33
  .wp-block-premium-content-logged-out-view__buttons .wp-block-button .wp-block-button__link {
34
  min-width: 200px;
18
  margin: 5px;
19
  }
20
 
 
 
 
 
 
 
 
 
 
 
 
21
  .premium-content-logged-out-view-button.wp-block-button .wp-block-button__link,
22
  .wp-block-premium-content-logged-out-view__buttons .wp-block-button .wp-block-button__link {
23
  min-width: 200px;
premium-content/subscription-service/class-wpcom-offline-subscription-service.php CHANGED
@@ -17,13 +17,13 @@ class WPCOM_Offline_Subscription_Service extends WPCOM_Token_Subscription_Servic
17
  * @return boolean
18
  */
19
  public static function available() {
20
- // Return available if on WPCOM and
21
- // either running a job (sending email subscription) or handling API request (reader)
22
- // and the user is logged in
23
- return defined( 'IS_WPCOM' ) && IS_WPCOM === true && (
24
- ( defined( 'IS_JOBS' ) && IS_JOBS ) ||
25
- ( defined( 'REST_API_REQUEST' ) && REST_API_REQUEST )
26
- ) && is_user_logged_in();
27
  }
28
 
29
  /**
17
  * @return boolean
18
  */
19
  public static function available() {
20
+ // Return available if the user is logged in and either
21
+ // running a job (sending email subscription) OR
22
+ // handling API request on WPCOM (reader)
23
+ return (
24
+ ( defined( 'WPCOM_JOBS' ) && WPCOM_JOBS ) ||
25
+ ( defined( 'IS_WPCOM' ) && IS_WPCOM === true && ( defined( 'REST_API_REQUEST' ) && REST_API_REQUEST ) )
26
+ ) && is_user_logged_in();
27
  }
28
 
29
  /**
premium-content/view.js CHANGED
@@ -1,4 +1,4 @@
1
- document.addEventListener( 'DOMContentLoaded', function(){
2
  let premiumContentJWTToken = '';
3
 
4
  /**
@@ -44,6 +44,6 @@ document.addEventListener( 'DOMContentLoaded', function(){
44
  }
45
 
46
  if ( typeof window !== 'undefined' ) {
47
- window.addEventListener('message', handleIframeResult, false);
48
  }
49
  } );
1
+ document.addEventListener( 'DOMContentLoaded', function () {
2
  let premiumContentJWTToken = '';
3
 
4
  /**
44
  }
45
 
46
  if ( typeof window !== 'undefined' ) {
47
+ window.addEventListener( 'message', handleIframeResult, false );
48
  }
49
  } );
readme.txt CHANGED
@@ -1,9 +1,9 @@
1
  === Full Site Editing ===
2
- Contributors: alexislloyd, allancole, automattic, bartkalisz, codebykat, copons, dmsnell, get_dave, glendaviesnz, gwwar, iamtakashi, jeryj, Joen, kwight, marekhrabe, mattwiebe, mkaz, mmtr86, mppfeiffer, noahtallen, nrqsnchz, nosolosw, obenland, okenobi, owolski, themeshaper, vindl
3
  Tags: block, blocks, editor, gutenberg, page
4
  Requires at least: 5.0
5
  Tested up to: 5.4
6
- Stable tag: 1.5
7
  Requires PHP: 5.6.20
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
@@ -40,6 +40,17 @@ This plugin is experimental, so we don't provide any support for it outside of w
40
 
41
  == Changelog ==
42
 
 
 
 
 
 
 
 
 
 
 
 
43
  = 1.5 =
44
  * Global Styles: Fix a "Bad array access" error.
45
  * Remove default link colors from the editor (fixed in Gutenberg v8.1.0).
1
  === Full Site Editing ===
2
+ Contributors: alexislloyd, allancole, automattic, bartkalisz, codebykat, copons, dmsnell, get_dave, glendaviesnz, gwwar, iamtakashi, jeryj, Joen, jonsurrell, kwight, marekhrabe, mattwiebe, mkaz, mmtr86, mppfeiffer, noahtallen, nrqsnchz, nosolosw, obenland, okenobi, owolski, themeshaper, vindl
3
  Tags: block, blocks, editor, gutenberg, page
4
  Requires at least: 5.0
5
  Tested up to: 5.4
6
+ Stable tag: 1.6
7
  Requires PHP: 5.6.20
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
40
 
41
  == Changelog ==
42
 
43
+ = 1.6 =
44
+ * Remove the "Edit as HTML" options for the inner blocks of the Premium Content Block.
45
+ * Remove plugin that notified users of the new location of Block Patterns.
46
+ * Support for any UTF-8 character in the Premium Content block.
47
+ * Fixed availability of Premium Content subscription email service.
48
+ * Premium Content block styles adjusted to only load when block is used.
49
+ * Hide Gutenberg's inserter (in favor of ours).
50
+ * Use `require` (rather than `require_once`) for asset files.
51
+ * Flag Premium Content blocks as paid to make clear they require a paid plan.
52
+ * Onboarding: Fix the dimensions of the preview image.
53
+
54
  = 1.5 =
55
  * Global Styles: Fix a "Bad array access" error.
56
  * Remove default link colors from the editor (fixed in Gutenberg v8.1.0).
wpcom-block-editor-nav-sidebar/class-wpcom-block-editor-nav-sidebar.php ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * WPCOM block editor nav sidebar file.
4
+ *
5
+ * @package A8C\FSE
6
+ */
7
+
8
+ namespace A8C\FSE;
9
+
10
+ /**
11
+ * Class WPCOM_Block_Editor_Nav_Sidebar
12
+ */
13
+ class WPCOM_Block_Editor_Nav_Sidebar {
14
+ /**
15
+ * Class instance.
16
+ *
17
+ * @var WPCOM_Block_Editor_Nav_Sidebar
18
+ */
19
+ private static $instance = null;
20
+
21
+ /**
22
+ * WPCOM_Block_Editor_Nav_Sidebar constructor.
23
+ */
24
+ public function __construct() {
25
+ add_action( 'enqueue_block_editor_assets', array( $this, 'enqueue_script_and_style' ), 100 );
26
+ }
27
+
28
+ /**
29
+ * Creates instance.
30
+ *
31
+ * @return \A8C\FSE\WPCOM_Block_Editor_Nav_Sidebar
32
+ */
33
+ public static function init() {
34
+ if ( is_null( self::$instance ) ) {
35
+ self::$instance = new self();
36
+ }
37
+ return self::$instance;
38
+ }
39
+
40
+ /**
41
+ * Enqueue block editor assets.
42
+ */
43
+ public function enqueue_script_and_style() {
44
+ $asset_file = include plugin_dir_path( __FILE__ ) . 'dist/wpcom-block-editor-nav-sidebar.asset.php';
45
+ $script_dependencies = $asset_file['dependencies'];
46
+ $version = $asset_file['version'];
47
+
48
+ wp_enqueue_script(
49
+ 'wpcom-block-editor-nav-sidebar-script',
50
+ plugins_url( 'dist/wpcom-block-editor-nav-sidebar.js', __FILE__ ),
51
+ is_array( $script_dependencies ) ? $script_dependencies : array(),
52
+ $version,
53
+ true
54
+ );
55
+
56
+ wp_localize_script(
57
+ 'wpcom-block-editor-nav-sidebar-script',
58
+ 'wpcomBlockEditorNavSidebarAssetsUrl',
59
+ plugins_url( 'dist/', __FILE__ )
60
+ );
61
+
62
+ $style_path = 'dist/wpcom-block-editor-nav-sidebar' . ( is_rtl() ? '.rtl' : '' ) . '.css';
63
+ wp_enqueue_style(
64
+ 'wpcom-block-editor-nav-sidebar-style',
65
+ plugins_url( $style_path, __FILE__ ),
66
+ array(),
67
+ filemtime( plugin_dir_path( __FILE__ ) . $style_path )
68
+ );
69
+ }
70
+ }
71
+ add_action( 'init', array( __NAMESPACE__ . '\WPCOM_Block_Editor_Nav_Sidebar', 'init' ) );
wpcom-block-editor-nav-sidebar/dist/wpcom-block-editor-nav-sidebar.asset.php ADDED
@@ -0,0 +1 @@
 
1
+ <?php return array('dependencies' => array('lodash', 'wp-components', 'wp-data', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => 'c084f2ffecbc53295d30c1d83c366a1f');
wpcom-block-editor-nav-sidebar/dist/wpcom-block-editor-nav-sidebar.css ADDED
@@ -0,0 +1 @@
 
1
+ .is-wpcom-block-editor-nav-sidebar-attached .edit-post-layout{transition:margin-left .2s}@media (prefers-reduced-motion:reduce){.is-wpcom-block-editor-nav-sidebar-attached .edit-post-layout{transition-duration:0s}}.is-wpcom-block-editor-nav-sidebar-attached .edit-post-fullscreen-mode-close{transition:width .2s}@media (prefers-reduced-motion:reduce){.is-wpcom-block-editor-nav-sidebar-attached .edit-post-fullscreen-mode-close{transition-duration:0s}}.is-wpcom-block-editor-nav-sidebar-attached .edit-post-fullscreen-mode-close{min-width:0}.is-wpcom-block-editor-nav-sidebar-opened .edit-post-layout{margin-left:272px}.is-wpcom-block-editor-nav-sidebar-opened .edit-post-fullscreen-mode-close{width:0}.is-wpcom-block-editor-nav-sidebar-close-hidden .edit-post-fullscreen-mode-close{opacity:0;padding:0;pointer-events:none}.wpcom-block-editor-nav-sidebar__container{box-sizing:border-box;position:fixed;top:0;left:-272px;bottom:0;width:272px;border-right:1px solid #e2e4e7;transition:left .2s}@media (prefers-reduced-motion:reduce){.wpcom-block-editor-nav-sidebar__container{transition-duration:0s}}.wpcom-block-editor-nav-sidebar__container:not([aria-hidden=true]){left:0}.wpcom-block-editor-nav-sidebar__header{top:0;left:0;position:fixed;height:60px}.wpcom-block-editor-nav-sidebar__header .components-button{height:60px;width:60px;display:flex;align-items:center;justify-content:center;border-radius:0;background:#32373d!important;color:#fff!important;box-shadow:none!important}.wpcom-block-editor-nav-sidebar__header .components-button.wpcom-block-editor-nav-sidebar__is-shrinking{animation:wpcom-block-editor-nav-sidebar__shrink .2s normal forwards}@media (prefers-reduced-motion:reduce){.wpcom-block-editor-nav-sidebar__header .components-button.wpcom-block-editor-nav-sidebar__is-shrinking{animation-duration:1ms}}.wpcom-block-editor-nav-sidebar__header .components-button.wpcom-block-editor-nav-sidebar__is-growing{animation:wpcom-block-editor-nav-sidebar__grow .2s normal forwards}@media (prefers-reduced-motion:reduce){.wpcom-block-editor-nav-sidebar__header .components-button.wpcom-block-editor-nav-sidebar__is-growing{animation-duration:1ms}}.wpcom-block-editor-nav-sidebar__header-space{height:60px;border-bottom:1px solid #e2e4e7}.wpcom-block-editor-nav-sidebar__home-button-container{border-bottom:1px solid #e2e4e7}.wpcom-block-editor-nav-sidebar__home-button{height:46px;width:100%;font-weight:600;border:none!important;box-shadow:none!important}.wpcom-block-editor-nav-sidebar__home-button:hover{text-decoration:underline}.wpcom-block-editor-nav-sidebar__page-list{margin:10px}.wpcom-block-editor-nav-sidebar__page-list li:hover{background:#000;color:#fff}@keyframes wpcom-block-editor-nav-sidebar__shrink{0%{transform:scale(1)}to{transform:scale(.55)}}@keyframes wpcom-block-editor-nav-sidebar__grow{0%{transform:scale(.55)}to{transform:scale(1)}}
wpcom-block-editor-nav-sidebar/dist/wpcom-block-editor-nav-sidebar.js ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
1
+ !function(e,t){for(var n in t)e[n]=t[n]}(window,function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=19)}([function(e,t){!function(){e.exports=this.wp.element}()},function(e,t){!function(){e.exports=this.wp.data}()},function(e,t){!function(){e.exports=this.wp.hooks}()},function(e,t){!function(){e.exports=this.wp.primitives}()},function(e,t){function n(e,t,n,r,o,c,i){try{var a=e[c](i),u=a.value}catch(s){return void n(s)}a.done?t(u):Promise.resolve(u).then(r,o)}e.exports=function(e){return function(){var t=this,r=arguments;return new Promise((function(o,c){var i=e.apply(t,r);function a(e){n(i,o,c,a,u,"next",e)}function u(e){n(i,o,c,a,u,"throw",e)}a(void 0)}))}}},function(e,t,n){var r=n(12),o=n(13),c=n(14),i=n(16);e.exports=function(e,t){return r(e)||o(e,t)||c(e,t)||i()}},function(e,t,n){var r=n(17);e.exports=function(e,t){if(null==e)return{};var n,o,c=r(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(c[n]=e[n])}return c}},function(e,t){!function(){e.exports=this.wp.components}()},function(e,t){!function(){e.exports=this.wp.i18n}()},function(e,t){!function(){e.exports=this.lodash}()},function(e,t){!function(){e.exports=this.wp.url}()},function(e,t,n){var r;
2
+ /*!
3
+ Copyright (c) 2017 Jed Watson.
4
+ Licensed under the MIT License (MIT), see
5
+ http://jedwatson.github.io/classnames
6
+ */!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var c=typeof r;if("string"===c||"number"===c)e.push(r);else if(Array.isArray(r)&&r.length){var i=o.apply(null,r);i&&e.push(i)}else if("object"===c)for(var a in r)n.call(r,a)&&r[a]&&e.push(a)}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,c=void 0;try{for(var i,a=e[Symbol.iterator]();!(r=(i=a.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(u){o=!0,c=u}finally{try{r||null==a.return||a.return()}finally{if(o)throw c}}return n}}},function(e,t,n){var r=n(15);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t){e.exports=function(e,t){if(null==e)return{};var n,r,o={},c=Object.keys(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}},function(e,t,n){},function(e,t,n){"use strict";n.r(t);var r=n(4),o=n.n(r),c=n(0),i=n(1),a=n(2),u="automattic/block-editor-nav-sidebar",s=n(5),l=n.n(s),d=n(6),p=n.n(d),f=n(7),b=n(3),m=Object(c.createElement)(b.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(c.createElement)(b.Path,{d:"M20 10c0-5.51-4.49-10-10-10C4.48 0 0 4.49 0 10c0 5.52 4.48 10 10 10 5.51 0 10-4.48 10-10zM7.78 15.37L4.37 6.22c.55-.02 1.17-.08 1.17-.08.5-.06.44-1.13-.06-1.11 0 0-1.45.11-2.37.11-.18 0-.37 0-.58-.01C4.12 2.69 6.87 1.11 10 1.11c2.33 0 4.45.87 6.05 2.34-.68-.11-1.65.39-1.65 1.58 0 .74.45 1.36.9 2.1.35.61.55 1.36.55 2.46 0 1.49-1.4 5-1.4 5l-3.03-8.37c.54-.02.82-.17.82-.17.5-.05.44-1.25-.06-1.22 0 0-1.44.12-2.38.12-.87 0-2.33-.12-2.33-.12-.5-.03-.56 1.2-.06 1.22l.92.08 1.26 3.41zM17.41 10c.24-.64.74-1.87.43-4.25.7 1.29 1.05 2.71 1.05 4.25 0 3.29-1.73 6.24-4.4 7.78.97-2.59 1.94-5.2 2.92-7.78zM6.1 18.09C3.12 16.65 1.11 13.53 1.11 10c0-1.3.23-2.48.72-3.59C3.25 10.3 4.67 14.2 6.1 18.09zm4.03-6.63l2.58 6.98c-.86.29-1.76.45-2.71.45-.79 0-1.57-.11-2.29-.33.81-2.38 1.62-4.74 2.42-7.1z"})),v=Object(c.createElement)(b.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(c.createElement)(b.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"})),y=n(8),h=n(9),O=n(10),w=n(11),j=n.n(w),g=function(e){var t=e.children,n=p()(e,["children"]);return Object(c.createElement)(f.Button,n,t)};function x(){var e=Object(i.useSelect)((function(e){var t=e("core").getPostType;return[k(e),e(u).isSidebarOpened(),t(e("core/editor").getCurrentPostType())]})),t=l()(e,3),n=t[0],r=t[1],o=t[2],s=Object(c.useRef)(r),d=Object(c.useState)(!1),p=l()(d,2),f=p[0],b=p[1];Object(c.useEffect)((function(){r?document.body.classList.add("is-wpcom-block-editor-nav-sidebar-close-hidden"):s.current&&b(!0),s.current=r}),[r,s,b]);var w=Object(i.useDispatch)(u).toggleSidebar,x=Object(O.addQueryArgs)("edit.php",{post_type:o.slug});x=Object(a.applyFilters)("a8c.WpcomBlockEditorNavSidebar.closeUrl",x);var S=Object(h.get)(o,["labels","all_items"],Object(y.__)("Back"));S=Object(a.applyFilters)("a8c.WpcomBlockEditorNavSidebar.closeLabel",S);return Object(c.createElement)("div",{className:"wpcom-block-editor-nav-sidebar__container","aria-hidden":!r},(r||f)&&Object(c.createElement)("div",{className:"wpcom-block-editor-nav-sidebar__header"},Object(c.createElement)(g,{icon:m,iconSize:36,className:j()({"wpcom-block-editor-nav-sidebar__is-shrinking":r,"wpcom-block-editor-nav-sidebar__is-growing":f}),onClick:function(){r&&b(!0),w()},onAnimationEnd:function(e){"wpcom-block-editor-nav-sidebar__grow"===e.animationName&&(b(!1),document.body.classList.remove("is-wpcom-block-editor-nav-sidebar-close-hidden"))}})),Object(c.createElement)("div",{className:"wpcom-block-editor-nav-sidebar__header-space"}),Object(c.createElement)("div",{className:"wpcom-block-editor-nav-sidebar__home-button-container"},Object(c.createElement)(g,{href:x,className:"wpcom-block-editor-nav-sidebar__home-button",icon:v,onClick:function(e){Object(a.hasAction)("a8c.wpcom-block-editor.closeEditor")&&(e.preventDefault(),Object(a.doAction)("a8c.wpcom-block-editor.closeEditor"))}},S)),Object(c.createElement)("ul",{className:"wpcom-block-editor-nav-sidebar__page-list"},n.map((function(e){return Object(c.createElement)(E,{key:e.id,item:e})}))))}function E(e){var t=e.item;return Object(c.createElement)("li",null,Object(c.createElement)("div",null,t.title.rendered),Object(c.createElement)("pre",null,"/".concat(t.slug,"/")))}function k(e){var t=e("core/editor").getCurrentPostType();return e("core").getEntityRecords("postType",t,{_fields:"id,slug,status,title"})||[]}n(18);function S(e){return _.apply(this,arguments)}function _(){return(_=o()(regeneratorRuntime.mark((function e(t){var n,r,o,c,i,a=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=a.length>1&&void 0!==a[1]?a[1]:5e3,o=new Promise((function(e){!function n(){var o=document.querySelector(t);o?e(o):r=setTimeout(n,200)}()})),c=new Promise((function(e){return setTimeout(e,n,"timeout")})),e.next=5,Promise.race([o,c]);case 5:if(i=e.sent,clearTimeout(r),"timeout"!==i){e.next=9;break}return e.abrupt("return",void 0);case 9:return e.abrupt("return",i);case 10:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function P(){return(P=o()(regeneratorRuntime.mark((function e(){var t,n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,S(".edit-post-fullscreen-mode-close");case 2:if(t=e.sent){e.next=5;break}return e.abrupt("return");case 5:Object(a.addFilter)("a8c.wpcom-block-editor.shouldCloseEditor","a8c/fse/attachSidebar",(function(){return!1})),document.body.classList.add("is-wpcom-block-editor-nav-sidebar-attached"),t.addEventListener("click",(function(e){e.preventDefault(),Object(i.dispatch)(u).toggleSidebar()})),n=!1,Object(i.subscribe)((function(){var e=Object(i.select)(u).isSidebarOpened();n!==e&&((n=e)?document.body.classList.add("is-wpcom-block-editor-nav-sidebar-opened"):document.body.classList.remove("is-wpcom-block-editor-nav-sidebar-opened"))})),r=document.createElement("div"),document.body.appendChild(r),Object(c.render)(Object(c.createElement)(x,null),r),k(i.select);case 14:case"end":return e.stop()}}),e)})))).apply(this,arguments)}!function(){P.apply(this,arguments)}();var A={toggleSidebar:function(){return{type:"TOGGLE_SIDEBAR"}}},T=Object(i.combineReducers)({opened:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"TOGGLE_SIDEBAR":return!e;default:return e}}});Object(i.registerStore)(u,{actions:A,reducer:T,selectors:{isSidebarOpened:function(e){return e.opened}}})}]));
wpcom-block-editor-nav-sidebar/dist/wpcom-block-editor-nav-sidebar.rtl.css ADDED
@@ -0,0 +1 @@
 
1
+ .is-wpcom-block-editor-nav-sidebar-attached .edit-post-layout{transition:margin-right .2s}@media (prefers-reduced-motion:reduce){.is-wpcom-block-editor-nav-sidebar-attached .edit-post-layout{transition-duration:0s}}.is-wpcom-block-editor-nav-sidebar-attached .edit-post-fullscreen-mode-close{transition:width .2s}@media (prefers-reduced-motion:reduce){.is-wpcom-block-editor-nav-sidebar-attached .edit-post-fullscreen-mode-close{transition-duration:0s}}.is-wpcom-block-editor-nav-sidebar-attached .edit-post-fullscreen-mode-close{min-width:0}.is-wpcom-block-editor-nav-sidebar-opened .edit-post-layout{margin-right:272px}.is-wpcom-block-editor-nav-sidebar-opened .edit-post-fullscreen-mode-close{width:0}.is-wpcom-block-editor-nav-sidebar-close-hidden .edit-post-fullscreen-mode-close{opacity:0;padding:0;pointer-events:none}.wpcom-block-editor-nav-sidebar__container{box-sizing:border-box;position:fixed;top:0;right:-272px;bottom:0;width:272px;border-left:1px solid #e2e4e7;transition:right .2s}@media (prefers-reduced-motion:reduce){.wpcom-block-editor-nav-sidebar__container{transition-duration:0s}}.wpcom-block-editor-nav-sidebar__container:not([aria-hidden=true]){right:0}.wpcom-block-editor-nav-sidebar__header{top:0;right:0;position:fixed;height:60px}.wpcom-block-editor-nav-sidebar__header .components-button{height:60px;width:60px;display:flex;align-items:center;justify-content:center;border-radius:0;background:#32373d!important;color:#fff!important;box-shadow:none!important}.wpcom-block-editor-nav-sidebar__header .components-button.wpcom-block-editor-nav-sidebar__is-shrinking{animation:wpcom-block-editor-nav-sidebar__shrink .2s normal forwards}@media (prefers-reduced-motion:reduce){.wpcom-block-editor-nav-sidebar__header .components-button.wpcom-block-editor-nav-sidebar__is-shrinking{animation-duration:1ms}}.wpcom-block-editor-nav-sidebar__header .components-button.wpcom-block-editor-nav-sidebar__is-growing{animation:wpcom-block-editor-nav-sidebar__grow .2s normal forwards}@media (prefers-reduced-motion:reduce){.wpcom-block-editor-nav-sidebar__header .components-button.wpcom-block-editor-nav-sidebar__is-growing{animation-duration:1ms}}.wpcom-block-editor-nav-sidebar__header-space{height:60px;border-bottom:1px solid #e2e4e7}.wpcom-block-editor-nav-sidebar__home-button-container{border-bottom:1px solid #e2e4e7}.wpcom-block-editor-nav-sidebar__home-button{height:46px;width:100%;font-weight:600;border:none!important;box-shadow:none!important}.wpcom-block-editor-nav-sidebar__home-button:hover{text-decoration:underline}.wpcom-block-editor-nav-sidebar__page-list{margin:10px}.wpcom-block-editor-nav-sidebar__page-list li:hover{background:#000;color:#fff}@keyframes wpcom-block-editor-nav-sidebar__shrink{0%{transform:scale(1)}to{transform:scale(.55)}}@keyframes wpcom-block-editor-nav-sidebar__grow{0%{transform:scale(.55)}to{transform:scale(1)}}
wpcom-block-editor-nav-sidebar/index.ts ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
1
+ /**
2
+ * Internal dependencies
3
+ */
4
+ import './src/attach-sidebar';
5
+ import './src/store';
wpcom-block-editor-nav-sidebar/src/actions.ts ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
1
+ const toggleSidebar = () =>
2
+ ( {
3
+ type: 'TOGGLE_SIDEBAR',
4
+ } as const );
5
+
6
+ export const actions = {
7
+ toggleSidebar,
8
+ };
9
+
10
+ export type Action = ReturnType< typeof toggleSidebar >;
wpcom-block-editor-nav-sidebar/src/attach-sidebar.tsx ADDED
@@ -0,0 +1,88 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * External dependencies
3
+ */
4
+ import { dispatch, select, subscribe } from '@wordpress/data';
5
+ import React, { render } from '@wordpress/element';
6
+ import { addFilter } from '@wordpress/hooks';
7
+
8
+ /**
9
+ * Internal dependencies
10
+ */
11
+ import { STORE_KEY } from './constants';
12
+ import WpcomBlockEditorNavSidebar, { selectNavItems } from './wpcom-block-editor-nav-sidebar';
13
+ import './style.scss';
14
+
15
+ async function findElement( selector: string, timeoutMs = 5000 ) {
16
+ let pendingQuery;
17
+ const pollForLoadedFlag = new Promise< HTMLElement >( ( resolve ) => {
18
+ const runQuery = () => {
19
+ const element = document.querySelector( selector ) as HTMLElement;
20
+
21
+ if ( ! element ) {
22
+ pendingQuery = setTimeout( runQuery, 200 );
23
+ return;
24
+ }
25
+
26
+ resolve( element );
27
+ };
28
+
29
+ runQuery();
30
+ } );
31
+
32
+ const timeout = new Promise< 'timeout' >( ( resolve ) =>
33
+ setTimeout( resolve, timeoutMs, 'timeout' )
34
+ );
35
+
36
+ const finishCondition = await Promise.race( [ pollForLoadedFlag, timeout ] );
37
+ clearTimeout( pendingQuery );
38
+
39
+ if ( finishCondition === 'timeout' ) {
40
+ return undefined;
41
+ }
42
+
43
+ return finishCondition;
44
+ }
45
+
46
+ async function attachSidebar() {
47
+ const closePostButton = await findElement( '.edit-post-fullscreen-mode-close' );
48
+ if ( ! closePostButton ) {
49
+ return;
50
+ }
51
+
52
+ addFilter( 'a8c.wpcom-block-editor.shouldCloseEditor', 'a8c/fse/attachSidebar', () => false );
53
+
54
+ // Classes need to be attached to elements that aren't controlled by React,
55
+ // otherwise our alterations will be removed when React re-renders. So attach
56
+ // to <body> element.
57
+ document.body.classList.add( 'is-wpcom-block-editor-nav-sidebar-attached' );
58
+
59
+ closePostButton.addEventListener( 'click', ( ev ) => {
60
+ ev.preventDefault();
61
+ dispatch( STORE_KEY ).toggleSidebar();
62
+ } );
63
+
64
+ let sidebarExpanded = false;
65
+ subscribe( () => {
66
+ const newSidebarState = select( STORE_KEY ).isSidebarOpened();
67
+ if ( sidebarExpanded === newSidebarState ) {
68
+ return;
69
+ }
70
+
71
+ sidebarExpanded = newSidebarState;
72
+
73
+ if ( sidebarExpanded ) {
74
+ document.body.classList.add( 'is-wpcom-block-editor-nav-sidebar-opened' );
75
+ } else {
76
+ document.body.classList.remove( 'is-wpcom-block-editor-nav-sidebar-opened' );
77
+ }
78
+ } );
79
+
80
+ const sidebarContainer = document.createElement( 'div' );
81
+ document.body.appendChild( sidebarContainer );
82
+ render( <WpcomBlockEditorNavSidebar />, sidebarContainer );
83
+
84
+ // Start resolving sidebar items
85
+ selectNavItems( select );
86
+ }
87
+
88
+ attachSidebar();
wpcom-block-editor-nav-sidebar/src/constants.ts ADDED
@@ -0,0 +1 @@
 
1
+ export const STORE_KEY = 'automattic/block-editor-nav-sidebar';
wpcom-block-editor-nav-sidebar/src/store.ts ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* eslint-disable import/no-extraneous-dependencies */
2
+ /**
3
+ * External dependencies
4
+ */
5
+ import { combineReducers, registerStore } from '@wordpress/data';
6
+ import type { Reducer } from 'redux';
7
+ import type { DispatchFromMap, SelectFromMap } from '@automattic/data-stores';
8
+
9
+ /**
10
+ * Internal dependencies
11
+ */
12
+ import { actions, Action } from './actions';
13
+ import { STORE_KEY } from './constants';
14
+
15
+ const opened: Reducer< boolean, Action > = ( state = false, action ) => {
16
+ switch ( action.type ) {
17
+ case 'TOGGLE_SIDEBAR':
18
+ return ! state;
19
+
20
+ default:
21
+ return state;
22
+ }
23
+ };
24
+
25
+ const reducer = combineReducers( { opened } );
26
+
27
+ type State = ReturnType< typeof reducer >;
28
+
29
+ const selectors = {
30
+ isSidebarOpened: ( state: State ) => state.opened,
31
+ };
32
+
33
+ registerStore( STORE_KEY, {
34
+ actions,
35
+ reducer,
36
+ selectors,
37
+ } );
38
+
39
+ declare module '@wordpress/data' {
40
+ function dispatch( key: typeof STORE_KEY ): DispatchFromMap< typeof actions >;
41
+ function select( key: typeof STORE_KEY ): SelectFromMap< typeof selectors >;
42
+ }
wpcom-block-editor-nav-sidebar/src/style.scss ADDED
@@ -0,0 +1,133 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @import '~@wordpress/base-styles/colors';
2
+ @import '~@wordpress/base-styles/mixins';
3
+ @import '~@wordpress/base-styles/variables';
4
+
5
+ $sidebar-width: 272px;
6
+ $border: 1px solid $light-gray-500;
7
+ $transition-period: 200ms;
8
+
9
+ .is-wpcom-block-editor-nav-sidebar-attached {
10
+ .edit-post-layout {
11
+ transition: margin-left $transition-period;
12
+ @include reduce-motion( 'transition' );
13
+ }
14
+
15
+ .edit-post-fullscreen-mode-close {
16
+ transition: width $transition-period;
17
+ @include reduce-motion( 'transition' );
18
+ }
19
+
20
+ .edit-post-fullscreen-mode-close {
21
+ min-width: 0;
22
+ }
23
+ }
24
+
25
+ .is-wpcom-block-editor-nav-sidebar-opened {
26
+ .edit-post-layout {
27
+ margin-left: $sidebar-width;
28
+ }
29
+
30
+ .edit-post-fullscreen-mode-close {
31
+ width: 0;
32
+ }
33
+ }
34
+
35
+ .is-wpcom-block-editor-nav-sidebar-close-hidden {
36
+ .edit-post-fullscreen-mode-close {
37
+ opacity: 0;
38
+ padding: 0;
39
+ pointer-events: none;
40
+ }
41
+ }
42
+
43
+ .wpcom-block-editor-nav-sidebar__container {
44
+ box-sizing: border-box;
45
+ position: fixed;
46
+ top: 0;
47
+ left: -$sidebar-width;
48
+ bottom: 0;
49
+ width: $sidebar-width;
50
+ border-right: $border;
51
+ transition: left $transition-period;
52
+ @include reduce-motion( 'transition' );
53
+ }
54
+
55
+ .wpcom-block-editor-nav-sidebar__container:not( [aria-hidden=true] ) {
56
+ left: 0;
57
+ }
58
+
59
+ .wpcom-block-editor-nav-sidebar__header {
60
+ top: 0;
61
+ left: 0;
62
+ position: fixed;
63
+ height: $header-height;
64
+
65
+ .components-button {
66
+ height: $header-height;
67
+ width: $header-height;
68
+ display: flex;
69
+ align-items: center;
70
+ justify-content: center;
71
+ border-radius: 0;
72
+ background: #32373d !important;
73
+ color: #fff !important;
74
+ box-shadow: none !important;
75
+
76
+ &.wpcom-block-editor-nav-sidebar__is-shrinking {
77
+ animation: wpcom-block-editor-nav-sidebar__shrink $transition-period normal forwards;
78
+ @include reduce-motion( 'animation' );
79
+ }
80
+ &.wpcom-block-editor-nav-sidebar__is-growing {
81
+ animation: wpcom-block-editor-nav-sidebar__grow $transition-period normal forwards;
82
+ @include reduce-motion( 'animation' );
83
+ }
84
+ }
85
+ }
86
+
87
+ .wpcom-block-editor-nav-sidebar__header-space {
88
+ height: $header-height;
89
+ border-bottom: $border;
90
+ }
91
+
92
+ .wpcom-block-editor-nav-sidebar__home-button-container {
93
+ border-bottom: $border;
94
+ }
95
+
96
+ .wpcom-block-editor-nav-sidebar__home-button {
97
+ height: 46px;
98
+ width: 100%;
99
+ font-weight: 600;
100
+ border: none !important;
101
+ box-shadow: none !important;
102
+ }
103
+
104
+ .wpcom-block-editor-nav-sidebar__home-button:hover {
105
+ text-decoration: underline;
106
+ }
107
+
108
+ .wpcom-block-editor-nav-sidebar__page-list {
109
+ margin: 10px;
110
+ }
111
+
112
+ .wpcom-block-editor-nav-sidebar__page-list li:hover {
113
+ background: black;
114
+ color: white;
115
+ }
116
+
117
+ @keyframes wpcom-block-editor-nav-sidebar__shrink {
118
+ 0% {
119
+ transform: scale( 1 );
120
+ }
121
+ 100% {
122
+ transform: scale( 0.55 );
123
+ }
124
+ }
125
+
126
+ @keyframes wpcom-block-editor-nav-sidebar__grow {
127
+ 0% {
128
+ transform: scale( 0.55 );
129
+ }
130
+ 100% {
131
+ transform: scale( 1 );
132
+ }
133
+ }
wpcom-block-editor-nav-sidebar/src/wpcom-block-editor-nav-sidebar.tsx ADDED
@@ -0,0 +1,145 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* eslint-disable import/no-extraneous-dependencies */
2
+ /**
3
+ * External dependencies
4
+ */
5
+ import React, { useState, useEffect, useRef } from '@wordpress/element';
6
+ import { useSelect, useDispatch } from '@wordpress/data';
7
+ import { Button as OriginalButton } from '@wordpress/components';
8
+ import { chevronLeft, wordpress } from '@wordpress/icons';
9
+ import { __ } from '@wordpress/i18n';
10
+ import { applyFilters, doAction, hasAction } from '@wordpress/hooks';
11
+ import { get } from 'lodash';
12
+ import { addQueryArgs } from '@wordpress/url';
13
+ import classNames from 'classnames';
14
+
15
+ /**
16
+ * Internal dependencies
17
+ */
18
+ import { STORE_KEY } from './constants';
19
+
20
+ interface Post {
21
+ id: number;
22
+ slug: string;
23
+ status: string;
24
+ title: { raw: string; rendered: string };
25
+ }
26
+
27
+ const Button = ( {
28
+ children,
29
+ ...rest
30
+ }: OriginalButton.Props & { icon?: any; iconSize?: number } ) => (
31
+ <OriginalButton { ...rest }>{ children }</OriginalButton>
32
+ );
33
+
34
+ export default function WpcomBlockEditorNavSidebar() {
35
+ const [ items, isOpen, postType ] = useSelect( ( select ) => {
36
+ const { getPostType } = select( 'core' ) as any;
37
+
38
+ return [
39
+ selectNavItems( select ),
40
+ select( STORE_KEY ).isSidebarOpened(),
41
+ getPostType( select( 'core/editor' ).getCurrentPostType() ),
42
+ ];
43
+ } );
44
+
45
+ const prevIsOpen = useRef( isOpen );
46
+ const [ isClosing, setIsClosing ] = useState( false );
47
+
48
+ useEffect( () => {
49
+ if ( isOpen ) {
50
+ document.body.classList.add( 'is-wpcom-block-editor-nav-sidebar-close-hidden' );
51
+ } else if ( prevIsOpen.current ) {
52
+ // Check previous isOpen value so we don't set isClosing on first mount
53
+ setIsClosing( true );
54
+ }
55
+
56
+ prevIsOpen.current = isOpen;
57
+ }, [ isOpen, prevIsOpen, setIsClosing ] );
58
+
59
+ const { toggleSidebar } = useDispatch( STORE_KEY );
60
+
61
+ let closeUrl = addQueryArgs( 'edit.php', { post_type: postType.slug } );
62
+ closeUrl = applyFilters( 'a8c.WpcomBlockEditorNavSidebar.closeUrl', closeUrl );
63
+
64
+ let closeLabel = get( postType, [ 'labels', 'all_items' ], __( 'Back' ) );
65
+ closeLabel = applyFilters( 'a8c.WpcomBlockEditorNavSidebar.closeLabel', closeLabel );
66
+
67
+ const handleClose = ( e: React.WPSyntheticEvent ) => {
68
+ if ( hasAction( 'a8c.wpcom-block-editor.closeEditor' ) ) {
69
+ e.preventDefault();
70
+ doAction( 'a8c.wpcom-block-editor.closeEditor' );
71
+ }
72
+ };
73
+
74
+ return (
75
+ <div className="wpcom-block-editor-nav-sidebar__container" aria-hidden={ ! isOpen }>
76
+ { ( isOpen || isClosing ) && (
77
+ <div className="wpcom-block-editor-nav-sidebar__header">
78
+ <Button
79
+ icon={ wordpress }
80
+ iconSize={ 36 }
81
+ className={ classNames( {
82
+ 'wpcom-block-editor-nav-sidebar__is-shrinking': isOpen,
83
+ 'wpcom-block-editor-nav-sidebar__is-growing': isClosing,
84
+ } ) }
85
+ onClick={ () => {
86
+ if ( isOpen ) {
87
+ // The `useEffect` above already takes care of setting isClose to true,
88
+ // but there's a flicker where isOpen and isClosing are both false for
89
+ // a brief moment in time. Setting isClose to true here too to avoid
90
+ // the flicker.
91
+ setIsClosing( true );
92
+ }
93
+ toggleSidebar();
94
+ } }
95
+ onAnimationEnd={ ( ev: any ) => {
96
+ if ( ev.animationName === 'wpcom-block-editor-nav-sidebar__grow' ) {
97
+ setIsClosing( false );
98
+ document.body.classList.remove( 'is-wpcom-block-editor-nav-sidebar-close-hidden' );
99
+ }
100
+ } }
101
+ />
102
+ </div>
103
+ ) }
104
+ <div className="wpcom-block-editor-nav-sidebar__header-space" />
105
+ <div className="wpcom-block-editor-nav-sidebar__home-button-container">
106
+ <Button
107
+ href={ closeUrl }
108
+ className="wpcom-block-editor-nav-sidebar__home-button"
109
+ icon={ chevronLeft }
110
+ onClick={ handleClose }
111
+ >
112
+ { closeLabel }
113
+ </Button>
114
+ </div>
115
+ <ul className="wpcom-block-editor-nav-sidebar__page-list">
116
+ { items.map( ( item ) => (
117
+ <NavItem key={ item.id } item={ item } />
118
+ ) ) }
119
+ </ul>
120
+ </div>
121
+ );
122
+ }
123
+
124
+ interface NavItemProps {
125
+ item: Post;
126
+ }
127
+
128
+ function NavItem( { item }: NavItemProps ) {
129
+ return (
130
+ <li>
131
+ <div>{ item.title.rendered }</div>
132
+ <pre>{ `/${ item.slug }/` }</pre>
133
+ </li>
134
+ );
135
+ }
136
+
137
+ export function selectNavItems( select: typeof import('@wordpress/data').select ): Post[] {
138
+ const currentPostType = select( 'core/editor' ).getCurrentPostType();
139
+
140
+ const items = select( 'core' ).getEntityRecords( 'postType', currentPostType, {
141
+ _fields: 'id,slug,status,title',
142
+ } );
143
+
144
+ return ( items as any ) || [];
145
+ }
wpcom-block-editor-nux/dist/images/preview-a2ab6dbfd49f58a76c13c9dab8b09e0e.svg ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <svg width="534" height="442" viewBox="0 0 534 442" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M0 0H534V442H0V0Z" fill="#1381D8"/>
3
+ <path d="M76 62.9764C76 61.3325 77.5792 60 79.5276 60H453.451C455.401 60 456.979 61.3325 456.979 62.9764V440.979H76V62.9764Z" fill="white"/>
4
+ <path d="M295.979 95.0693H260.91V107.822H295.979V95.0693Z" fill="#E2E4E7"/>
5
+ <path d="M340.613 95.0693H305.544V107.822H340.613V95.0693Z" fill="#E2E4E7"/>
6
+ <path d="M385.247 95.0693H350.177V107.822H385.247V95.0693Z" fill="#E2E4E7"/>
7
+ <path d="M429.88 95.0693H393.217V107.822H429.88V95.0693Z" fill="#E2E4E7"/>
8
+ <path d="M115.851 115.792C123.775 115.792 130.198 109.369 130.198 101.446C130.198 93.5223 123.775 87.0991 115.851 87.0991C107.928 87.0991 101.505 93.5223 101.505 101.446C101.505 109.369 107.928 115.792 115.851 115.792Z" fill="#1E1E1E"/>
9
+ <path d="M456.979 144.485H76V345.336H456.979V144.485Z" fill="#E2E4E7"/>
10
+ <path d="M248.158 374.029H76V440.979H248.158V374.029Z" fill="#E2E4E7"/>
11
+ <path d="M334.237 257.663H128.604V283.168H334.237V257.663Z" fill="white"/>
12
+ <path d="M192.366 294.326H128.604V308.673H192.366V294.326Z" fill="white"/>
13
+ <path d="M405.969 386.781H270.475V399.534H405.969V386.781Z" fill="#E2E4E7"/>
14
+ <path d="M405.969 407.504H270.475V420.256H405.969V407.504Z" fill="#E2E4E7"/>
15
+ <path d="M338.71 428.227H270.475V440.979H338.71V428.227Z" fill="#E2E4E7"/>
16
+ </svg>
wpcom-block-editor-nux/dist/images/preview-e6daa84607b30e4c63a60423a8989e1a.svg DELETED
@@ -1,16 +0,0 @@
1
- <svg width="335" height="278" viewBox="0 0 335 278" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path d="M0 0H334.656V277H0V0Z" fill="#1381D8"/>
3
- <path d="M48 39.8672C48 38.8359 48.9907 38 50.213 38H284.787C286.01 38 287 38.8359 287 39.8672V277H48V39.8672Z" fill="white"/>
4
- <path d="M186 60H164V68H186V60Z" fill="#E2E4E7"/>
5
- <path d="M214 60H192V68H214V60Z" fill="#E2E4E7"/>
6
- <path d="M242 60H220V68H242V60Z" fill="#E2E4E7"/>
7
- <path d="M270 60H247V68H270V60Z" fill="#E2E4E7"/>
8
- <circle cx="73" cy="64" r="9" fill="#1E1E1E"/>
9
- <rect x="48" y="91" width="239" height="126" fill="#E2E4E7"/>
10
- <rect x="48" y="235" width="108" height="42" fill="#E2E4E7"/>
11
- <path d="M210 162H81V178H210V162Z" fill="white"/>
12
- <path d="M121 185H81V194H121V185Z" fill="white"/>
13
- <path d="M255 243H170V251H255V243Z" fill="#E2E4E7"/>
14
- <path d="M255 256H170V264H255V256Z" fill="#E2E4E7"/>
15
- <path d="M212.806 269H170V277H212.806V269Z" fill="#E2E4E7"/>
16
- </svg>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
wpcom-block-editor-nux/dist/wpcom-block-editor-nux.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('wp-api-fetch', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-nux', 'wp-plugins', 'wp-polyfill'), 'version' => '0cf7ca93b6561291aff53e02b056ac69');
1
+ <?php return array('dependencies' => array('wp-api-fetch', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-nux', 'wp-plugins', 'wp-polyfill'), 'version' => '1aa95ba05362825b073460da60298324');
wpcom-block-editor-nux/dist/wpcom-block-editor-nux.js CHANGED
@@ -1 +1 @@
1
- !function(e,t){for(var n in t)e[n]=t[n]}(window,function(e){var t={};function n(i){if(t[i])return t[i].exports;var o=t[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(i,o,function(t){return e[t]}.bind(null,o));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=17)}([function(e,t){!function(){e.exports=this.wp.data}()},function(e,t){!function(){e.exports=this.wp.element}()},function(e,t){!function(){e.exports=this.wp.i18n}()},function(e,t){!function(){e.exports=this.wp.components}()},function(e,t){!function(){e.exports=this.wp.apiFetch}()},function(e,t,n){var i=n(13);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}e.exports=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},n.apply(this,arguments)}e.exports=n},function(e,t){function n(e,t,n,i,o,r,c){try{var u=e[r](c),a=u.value}catch(s){return void n(s)}u.done?t(a):Promise.resolve(a).then(i,o)}e.exports=function(e){return function(){var t=this,i=arguments;return new Promise((function(o,r){var c=e.apply(t,i);function u(e){n(c,o,r,u,a,"next",e)}function a(e){n(c,o,r,u,a,"throw",e)}u(void 0)}))}}},function(e,t){!function(){e.exports=this.wp.plugins}()},function(e,t,n){e.exports=n.p+"images/block-picker-53b676a08dd25f523d4adb0157a40b4c.svg"},function(e,t,n){e.exports=n.p+"images/editor-1a0c404dcc59d4a340edb4649127f4c9.svg"},function(e,t,n){e.exports=n.p+"images/preview-e6daa84607b30e4c63a60423a8989e1a.svg"},function(e,t,n){e.exports=n.p+"images/private-598e2a26fcb0c685d165d750fdf02364.svg"},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t){!function(){e.exports=this.wp.nux}()},function(e,t,n){"object"==typeof window&&window.wpcomBlockEditorNuxAssetsUrl&&(n.p=window.wpcomBlockEditorNuxAssetsUrl)},function(e,t,n){},function(e,t,n){"use strict";n.r(t);var i=n(5),o=n.n(i),r=n(4),c=n.n(r),u=n(0),a={setWpcomNuxStatus:function(e){var t=e.isNuxEnabled;return e.bypassApi||c()({path:"/wpcom/v2/block-editor/nux",method:"POST",data:{isNuxEnabled:t}}),{type:"WPCOM_BLOCK_EDITOR_NUX_SET_STATUS",isNuxEnabled:t}}};Object(u.registerStore)("automattic/nux",{reducer:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=t.type,i=t.isNuxEnabled;return"WPCOM_BLOCK_EDITOR_NUX_SET_STATUS"===n?o()({},e,{isNuxEnabled:i}):e},actions:a,selectors:{isWpcomNuxEnabled:function(e){return e.isNuxEnabled}},persist:!0});n(14);var s=Object(u.subscribe)((function(){Object(u.dispatch)("core/nux").disableTips(),Object(u.select)("core/edit-post").isFeatureActive("welcomeGuide")&&Object(u.dispatch)("core/edit-post").toggleFeature("welcomeGuide"),s()}));Object(u.subscribe)((function(){Object(u.select)("core/nux").areTipsEnabled()&&(Object(u.dispatch)("core/nux").disableTips(),Object(u.dispatch)("automattic/nux").setWpcomNuxStatus({isNuxEnabled:!0})),Object(u.select)("core/edit-post").isFeatureActive("welcomeGuide")&&(Object(u.dispatch)("core/edit-post").toggleFeature("welcomeGuide"),Object(u.dispatch)("automattic/nux").setWpcomNuxStatus({isNuxEnabled:!0}))}));var l=n(6),d=n.n(l),p=n(7),f=n.n(p),b=n(1),m=(n(15),n(3)),g=n(2),O=n(8),x=(n(16),n(9)),v=n.n(x),h=n(10),y=n.n(h),w=n(11),j=n.n(w),_=n(12),E=n.n(_);function N(){var e,t=Object(u.useSelect)((function(e){return{isWpcomNuxEnabled:e("automattic/nux").isWpcomNuxEnabled(),isSPTOpen:e("automattic/starter-page-layouts")&&e("automattic/starter-page-layouts").isOpen()}})),n=t.isWpcomNuxEnabled,i=t.isSPTOpen,o=Object(u.useDispatch)("automattic/nux").setWpcomNuxStatus;if(Object(b.useEffect)((function(){void 0===n&&function(){var e=f()(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,c()({path:"/wpcom/v2/block-editor/nux"});case 2:t=e.sent,o({isNuxEnabled:t.is_nux_enabled,bypassApi:!0});case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()()}),[n,o]),!n||i)return null;var r=!!(null===(e=window.calypsoifyGutenberg)||void 0===e?void 0:e.isGutenboarding);return Object(b.createElement)(m.Guide,{className:"wpcom-block-editor-nux",contentLabel:Object(g.__)("Welcome to your website","full-site-editing"),finishButtonText:Object(g.__)("Get started","full-site-editing"),onFinish:function(){return o({isNuxEnabled:!1})}},function(e){return[{heading:Object(g.__)("Welcome to your website","full-site-editing"),description:Object(g.__)("Edit your homepage, add the pages you need, and change your site’s look and feel.","full-site-editing"),imgSrc:y.a,alignBottom:!0},{heading:Object(g.__)("Add or edit your content","full-site-editing"),description:Object(g.__)("Edit the placeholder content we’ve started you off with, or click the plus sign to add more content.","full-site-editing"),imgSrc:v.a},{heading:Object(g.__)("Preview your site as you go","full-site-editing"),description:Object(g.__)("As you edit your site content, click “Preview” to see your site the way your visitors will.","full-site-editing"),imgSrc:j.a,alignBottom:!0},{heading:Object(g.__)("Private until you’re ready","full-site-editing"),description:Object(g.__)("Your site will remain private as you make changes until you’re ready to launch and share with the world.","full-site-editing"),imgSrc:E.a,shouldHide:!e,alignBottom:!0}].filter((function(e){return!e.shouldHide}))}(r).map((function(e){return Object(b.createElement)(P,d()({key:e.heading},e))})))}function P(e){var t=e.alignBottom,n=void 0!==t&&t,i=e.heading,o=e.description,r=e.imgSrc;return Object(b.createElement)(m.GuidePage,{className:"wpcom-block-editor-nux__page"},Object(b.createElement)("div",{className:"wpcom-block-editor-nux__text"},Object(b.createElement)("h1",{className:"wpcom-block-editor-nux__heading"},i),Object(b.createElement)("div",{className:"wpcom-block-editor-nux__description"},o)),Object(b.createElement)("div",{className:"wpcom-block-editor-nux__visual"},Object(b.createElement)("img",{key:r,src:r,alt:"","aria-hidden":"true",className:"wpcom-block-editor-nux__image"+(n?" align-bottom":"")})))}m.Guide&&m.GuidePage&&Object(O.registerPlugin)("wpcom-block-editor-nux",{render:function(){return Object(b.createElement)(N,null)}})}]));
1
+ !function(e,t){for(var n in t)e[n]=t[n]}(window,function(e){var t={};function n(i){if(t[i])return t[i].exports;var o=t[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(i,o,function(t){return e[t]}.bind(null,o));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=17)}([function(e,t){!function(){e.exports=this.wp.data}()},function(e,t){!function(){e.exports=this.wp.element}()},function(e,t){!function(){e.exports=this.wp.i18n}()},function(e,t){!function(){e.exports=this.wp.components}()},function(e,t){!function(){e.exports=this.wp.apiFetch}()},function(e,t,n){var i=n(13);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}e.exports=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},n.apply(this,arguments)}e.exports=n},function(e,t){function n(e,t,n,i,o,r,c){try{var u=e[r](c),a=u.value}catch(s){return void n(s)}u.done?t(a):Promise.resolve(a).then(i,o)}e.exports=function(e){return function(){var t=this,i=arguments;return new Promise((function(o,r){var c=e.apply(t,i);function u(e){n(c,o,r,u,a,"next",e)}function a(e){n(c,o,r,u,a,"throw",e)}u(void 0)}))}}},function(e,t){!function(){e.exports=this.wp.plugins}()},function(e,t,n){e.exports=n.p+"images/block-picker-53b676a08dd25f523d4adb0157a40b4c.svg"},function(e,t,n){e.exports=n.p+"images/editor-1a0c404dcc59d4a340edb4649127f4c9.svg"},function(e,t,n){e.exports=n.p+"images/preview-a2ab6dbfd49f58a76c13c9dab8b09e0e.svg"},function(e,t,n){e.exports=n.p+"images/private-598e2a26fcb0c685d165d750fdf02364.svg"},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t){!function(){e.exports=this.wp.nux}()},function(e,t,n){"object"==typeof window&&window.wpcomBlockEditorNuxAssetsUrl&&(n.p=window.wpcomBlockEditorNuxAssetsUrl)},function(e,t,n){},function(e,t,n){"use strict";n.r(t);var i=n(5),o=n.n(i),r=n(4),c=n.n(r),u=n(0),a={setWpcomNuxStatus:function(e){var t=e.isNuxEnabled;return e.bypassApi||c()({path:"/wpcom/v2/block-editor/nux",method:"POST",data:{isNuxEnabled:t}}),{type:"WPCOM_BLOCK_EDITOR_NUX_SET_STATUS",isNuxEnabled:t}}};Object(u.registerStore)("automattic/nux",{reducer:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=t.type,i=t.isNuxEnabled;return"WPCOM_BLOCK_EDITOR_NUX_SET_STATUS"===n?o()({},e,{isNuxEnabled:i}):e},actions:a,selectors:{isWpcomNuxEnabled:function(e){return e.isNuxEnabled}},persist:!0});n(14);var s=Object(u.subscribe)((function(){Object(u.dispatch)("core/nux").disableTips(),Object(u.select)("core/edit-post").isFeatureActive("welcomeGuide")&&Object(u.dispatch)("core/edit-post").toggleFeature("welcomeGuide"),s()}));Object(u.subscribe)((function(){Object(u.select)("core/nux").areTipsEnabled()&&(Object(u.dispatch)("core/nux").disableTips(),Object(u.dispatch)("automattic/nux").setWpcomNuxStatus({isNuxEnabled:!0})),Object(u.select)("core/edit-post").isFeatureActive("welcomeGuide")&&(Object(u.dispatch)("core/edit-post").toggleFeature("welcomeGuide"),Object(u.dispatch)("automattic/nux").setWpcomNuxStatus({isNuxEnabled:!0}))}));var l=n(6),d=n.n(l),p=n(7),f=n.n(p),b=n(1),m=(n(15),n(3)),g=n(2),O=n(8),x=(n(16),n(9)),v=n.n(x),h=n(10),y=n.n(h),w=n(11),j=n.n(w),_=n(12),E=n.n(_);function N(){var e,t=Object(u.useSelect)((function(e){return{isWpcomNuxEnabled:e("automattic/nux").isWpcomNuxEnabled(),isSPTOpen:e("automattic/starter-page-layouts")&&e("automattic/starter-page-layouts").isOpen()}})),n=t.isWpcomNuxEnabled,i=t.isSPTOpen,o=Object(u.useDispatch)("automattic/nux").setWpcomNuxStatus;if(Object(b.useEffect)((function(){void 0===n&&function(){var e=f()(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,c()({path:"/wpcom/v2/block-editor/nux"});case 2:t=e.sent,o({isNuxEnabled:t.is_nux_enabled,bypassApi:!0});case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()()}),[n,o]),!n||i)return null;var r=!!(null===(e=window.calypsoifyGutenberg)||void 0===e?void 0:e.isGutenboarding);return Object(b.createElement)(m.Guide,{className:"wpcom-block-editor-nux",contentLabel:Object(g.__)("Welcome to your website","full-site-editing"),finishButtonText:Object(g.__)("Get started","full-site-editing"),onFinish:function(){return o({isNuxEnabled:!1})}},function(e){return[{heading:Object(g.__)("Welcome to your website","full-site-editing"),description:Object(g.__)("Edit your homepage, add the pages you need, and change your site’s look and feel.","full-site-editing"),imgSrc:y.a,alignBottom:!0},{heading:Object(g.__)("Add or edit your content","full-site-editing"),description:Object(g.__)("Edit the placeholder content we’ve started you off with, or click the plus sign to add more content.","full-site-editing"),imgSrc:v.a},{heading:Object(g.__)("Preview your site as you go","full-site-editing"),description:Object(g.__)("As you edit your site content, click “Preview” to see your site the way your visitors will.","full-site-editing"),imgSrc:j.a,alignBottom:!0},{heading:Object(g.__)("Private until you’re ready","full-site-editing"),description:Object(g.__)("Your site will remain private as you make changes until you’re ready to launch and share with the world.","full-site-editing"),imgSrc:E.a,shouldHide:!e,alignBottom:!0}].filter((function(e){return!e.shouldHide}))}(r).map((function(e){return Object(b.createElement)(P,d()({key:e.heading},e))})))}function P(e){var t=e.alignBottom,n=void 0!==t&&t,i=e.heading,o=e.description,r=e.imgSrc;return Object(b.createElement)(m.GuidePage,{className:"wpcom-block-editor-nux__page"},Object(b.createElement)("div",{className:"wpcom-block-editor-nux__text"},Object(b.createElement)("h1",{className:"wpcom-block-editor-nux__heading"},i),Object(b.createElement)("div",{className:"wpcom-block-editor-nux__description"},o)),Object(b.createElement)("div",{className:"wpcom-block-editor-nux__visual"},Object(b.createElement)("img",{key:r,src:r,alt:"","aria-hidden":"true",className:"wpcom-block-editor-nux__image"+(n?" align-bottom":"")})))}m.Guide&&m.GuidePage&&Object(O.registerPlugin)("wpcom-block-editor-nux",{render:function(){return Object(b.createElement)(N,null)}})}]));
wpcom-block-editor-nux/src/images/preview.svg CHANGED
@@ -1,16 +1,16 @@
1
- <svg width="335" height="278" viewBox="0 0 335 278" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path d="M0 0H334.656V277H0V0Z" fill="#1381D8"/>
3
- <path d="M48 39.8672C48 38.8359 48.9907 38 50.213 38H284.787C286.01 38 287 38.8359 287 39.8672V277H48V39.8672Z" fill="white"/>
4
- <path d="M186 60H164V68H186V60Z" fill="#E2E4E7"/>
5
- <path d="M214 60H192V68H214V60Z" fill="#E2E4E7"/>
6
- <path d="M242 60H220V68H242V60Z" fill="#E2E4E7"/>
7
- <path d="M270 60H247V68H270V60Z" fill="#E2E4E7"/>
8
- <circle cx="73" cy="64" r="9" fill="#1E1E1E"/>
9
- <rect x="48" y="91" width="239" height="126" fill="#E2E4E7"/>
10
- <rect x="48" y="235" width="108" height="42" fill="#E2E4E7"/>
11
- <path d="M210 162H81V178H210V162Z" fill="white"/>
12
- <path d="M121 185H81V194H121V185Z" fill="white"/>
13
- <path d="M255 243H170V251H255V243Z" fill="#E2E4E7"/>
14
- <path d="M255 256H170V264H255V256Z" fill="#E2E4E7"/>
15
- <path d="M212.806 269H170V277H212.806V269Z" fill="#E2E4E7"/>
16
  </svg>
1
+ <svg width="534" height="442" viewBox="0 0 534 442" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M0 0H534V442H0V0Z" fill="#1381D8"/>
3
+ <path d="M76 62.9764C76 61.3325 77.5792 60 79.5276 60H453.451C455.401 60 456.979 61.3325 456.979 62.9764V440.979H76V62.9764Z" fill="white"/>
4
+ <path d="M295.979 95.0693H260.91V107.822H295.979V95.0693Z" fill="#E2E4E7"/>
5
+ <path d="M340.613 95.0693H305.544V107.822H340.613V95.0693Z" fill="#E2E4E7"/>
6
+ <path d="M385.247 95.0693H350.177V107.822H385.247V95.0693Z" fill="#E2E4E7"/>
7
+ <path d="M429.88 95.0693H393.217V107.822H429.88V95.0693Z" fill="#E2E4E7"/>
8
+ <path d="M115.851 115.792C123.775 115.792 130.198 109.369 130.198 101.446C130.198 93.5223 123.775 87.0991 115.851 87.0991C107.928 87.0991 101.505 93.5223 101.505 101.446C101.505 109.369 107.928 115.792 115.851 115.792Z" fill="#1E1E1E"/>
9
+ <path d="M456.979 144.485H76V345.336H456.979V144.485Z" fill="#E2E4E7"/>
10
+ <path d="M248.158 374.029H76V440.979H248.158V374.029Z" fill="#E2E4E7"/>
11
+ <path d="M334.237 257.663H128.604V283.168H334.237V257.663Z" fill="white"/>
12
+ <path d="M192.366 294.326H128.604V308.673H192.366V294.326Z" fill="white"/>
13
+ <path d="M405.969 386.781H270.475V399.534H405.969V386.781Z" fill="#E2E4E7"/>
14
+ <path d="M405.969 407.504H270.475V420.256H405.969V407.504Z" fill="#E2E4E7"/>
15
+ <path d="M338.71 428.227H270.475V440.979H338.71V428.227Z" fill="#E2E4E7"/>
16
  </svg>