Section Block - Version 1.3.4

Version Description

  • compatibility with WP 5.4 confirmed
  • custom block collection registered
Download this release

Release Info

Developer wedoplugins
Plugin Icon 128x128 Section Block
Version 1.3.4
Comparing to
See all releases

Code changes from version 1.3.3 to 1.3.4

build/background-position-events.min.js CHANGED
@@ -1,19 +1,19 @@
1
  !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}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=2)}([function(e,t,n){"use strict";function r(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)}}n.d(t,"a",(function(){return o}));var o=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,o;return t=e,(n=[{key:"getOffsetLeft",value:function(e){var t=0;do{null!==e.offsetParent&&(null===(e=e.offsetParent)||void 0===e.offsetLeft||isNaN(e.offsetLeft)||(t+=e.offsetLeft))}while(e.offsetParent);return t}},{key:"update",value:function(e){var t=document.getElementById("adminmenuback"),n=this,r=0;null!==t&&"none"!==getComputedStyle(t,null).display&&(r=document.body.classList.contains("folded")?36:160),Array.from(document.querySelectorAll(".wp-block-wdp-section-block__background")).forEach((function(e){e.style.marginLeft=null,e.style.marginLeft="".concat(-1*(n.getOffsetLeft(e)-r),"px")})),!0===e&&setTimeout((function(){n.update()}),25)}}])&&r(t.prototype,n),o&&r(t,o),e}())},,function(e,t,n){"use strict";
2
  /*!
3
  * css-vars-ponyfill
4
- * v2.1.2
5
  * https://jhildenbiddle.github.io/css-vars-ponyfill/
6
- * (c) 2018-2019 John Hildenbiddle <http://hildenbiddle.com>
7
  * MIT license
8
  */
9
  function r(){return(r=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}).apply(this,arguments)}function o(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}
10
  /*!
11
  * get-css-data
12
- * v1.6.3
13
  * https://github.com/jhildenbiddle/get-css-data
14
- * (c) 2018-2019 John Hildenbiddle <http://hildenbiddle.com>
15
  * MIT license
16
- */()}function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={mimeType:t.mimeType||null,onBeforeSend:t.onBeforeSend||Function.prototype,onSuccess:t.onSuccess||Function.prototype,onError:t.onError||Function.prototype,onComplete:t.onComplete||Function.prototype},r=Array.isArray(e)?e:[e],o=Array.apply(null,Array(r.length)).map((function(e){return null}));function a(){return!("<"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").trim().charAt(0))}function s(e,t){n.onError(e,r[t],t)}function c(e,t){var a=n.onSuccess(e,r[t],t);e=!1===a?"":a||e,o[t]=e,-1===o.indexOf(null)&&n.onComplete(o)}var i=document.createElement("a");r.forEach((function(e,t){if(i.setAttribute("href",e),i.href=String(i.href),Boolean(document.all&&!window.atob)&&i.host.split(":")[0]!==location.host.split(":")[0]){if(i.protocol===location.protocol){var r=new XDomainRequest;r.open("GET",e),r.timeout=0,r.onprogress=Function.prototype,r.ontimeout=Function.prototype,r.onload=function(){a(r.responseText)?c(r.responseText,t):s(r,t)},r.onerror=function(e){s(r,t)},setTimeout((function(){r.send()}),0)}else console.warn("Internet Explorer 9 Cross-Origin (CORS) requests must use the same protocol (".concat(e,")")),s(null,t)}else{var o=new XMLHttpRequest;o.open("GET",e),n.mimeType&&o.overrideMimeType&&o.overrideMimeType(n.mimeType),n.onBeforeSend(o,e,t),o.onreadystatechange=function(){4===o.readyState&&(200===o.status&&a(o.responseText)?c(o.responseText,t):s(o,t))},o.send()}}))}
17
  /**
18
  * Gets CSS data from <style> and <link> nodes (including @imports), then
19
  * returns data in order processed by DOM. Allows specifying nodes to
@@ -72,7 +72,7 @@ function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;
72
  * // ...
73
  * }
74
  * });
75
- */function s(e){var t={cssComments:/\/\*[\s\S]+?\*\//g,cssImports:/(?:@import\s*)(?:url\(\s*)?(?:['"])([^'"]*)(?:['"])(?:\s*\))?(?:[^;]*;)/g},n={rootElement:e.rootElement||document,include:e.include||'style,link[rel="stylesheet"]',exclude:e.exclude||null,filter:e.filter||null,useCSSOM:e.useCSSOM||!1,onBeforeSend:e.onBeforeSend||Function.prototype,onSuccess:e.onSuccess||Function.prototype,onError:e.onError||Function.prototype,onComplete:e.onComplete||Function.prototype},r=Array.apply(null,n.rootElement.querySelectorAll(n.include)).filter((function(e){return t=e,r=n.exclude,!(t.matches||t.matchesSelector||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector).call(t,r);var t,r})),o=Array.apply(null,Array(r.length)).map((function(e){return null}));function s(){if(-1===o.indexOf(null)){var e=o.join("");n.onComplete(e,o,r)}}function i(e,t,r,c){var i=n.onSuccess(e,r,c);(function e(t,r,o,s){var c=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],l=u(t,o,i);l.rules.length?a(l.absoluteUrls,{onBeforeSend:function(e,t,o){n.onBeforeSend(e,r,t)},onSuccess:function(e,t,o){var a=n.onSuccess(e,r,t),s=u(e=!1===a?"":a||e,t,i);return s.rules.forEach((function(t,n){e=e.replace(t,s.absoluteRules[n])})),e},onError:function(n,a,u){c.push({xhr:n,url:a}),i.push(l.rules[u]),e(t,r,o,s,c,i)},onComplete:function(n){n.forEach((function(e,n){t=t.replace(l.rules[n],e)})),e(t,r,o,s,c,i)}}):s(t,c)})(e=void 0!==i&&!1===Boolean(i)?"":i||e,r,c,(function(e,a){null===o[t]&&(a.forEach((function(e){return n.onError(e.xhr,r,e.url)})),!n.filter||n.filter.test(e)?o[t]=e:o[t]="",s())}))}function u(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o={};return o.rules=(e.replace(t.cssComments,"").match(t.cssImports)||[]).filter((function(e){return-1===r.indexOf(e)})),o.urls=o.rules.map((function(e){return e.replace(t.cssImports,"$1")})),o.absoluteUrls=o.urls.map((function(e){return c(e,n)})),o.absoluteRules=o.rules.map((function(e,t){var r=o.urls[t],a=c(o.absoluteUrls[t],n);return e.replace(r,a)})),o}r.length?r.forEach((function(e,t){var r=e.getAttribute("href"),u=e.getAttribute("rel"),l="LINK"===e.nodeName&&r&&u&&"stylesheet"===u.toLowerCase(),f="STYLE"===e.nodeName;if(l)a(r,{mimeType:"text/css",onBeforeSend:function(t,r,o){n.onBeforeSend(t,e,r)},onSuccess:function(n,o,a){var s=c(r,location.href);i(n,t,e,s)},onError:function(r,a,c){o[t]="",n.onError(r,e,a),s()}});else if(f){var d=e.textContent;n.useCSSOM&&(d=Array.apply(null,e.sheet.cssRules).map((function(e){return e.cssText})).join("")),i(d,t,e,location.href)}else o[t]="",s()})):n.onComplete("",[])}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:location.href,n=document.implementation.createHTMLDocument(""),r=n.createElement("base"),o=n.createElement("a");return n.head.appendChild(r),n.body.appendChild(o),r.href=t,o.href=e,o.href}n.r(t);var i=u;function u(e,t,n){e instanceof RegExp&&(e=l(e,n)),t instanceof RegExp&&(t=l(t,n));var r=f(e,t,n);return r&&{start:r[0],end:r[1],pre:n.slice(0,r[0]),body:n.slice(r[0]+e.length,r[1]),post:n.slice(r[1]+t.length)}}function l(e,t){var n=t.match(e);return n?n[0]:null}function f(e,t,n){var r,o,a,s,c,i=n.indexOf(e),u=n.indexOf(t,i+1),l=i;if(i>=0&&u>0){for(r=[],a=n.length;l>=0&&!c;)l==i?(r.push(l),i=n.indexOf(e,l+1)):1==r.length?c=[r.pop(),u]:((o=r.pop())<a&&(a=o,s=u),u=n.indexOf(t,l+1)),l=i<u&&i>=0?i:u;r.length&&(c=[a,s])}return c}function d(e){var t=r({},{preserveStatic:!0,removeComments:!1},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{});function n(e){throw new Error("CSS parse error: ".concat(e))}function o(t){var n=t.exec(e);if(n)return e=e.slice(n[0].length),n}function a(){return o(/^{\s*/)}function s(){return o(/^}/)}function c(){o(/^\s*/)}function u(){if(c(),"/"===e[0]&&"*"===e[1]){for(var t=2;e[t]&&("*"!==e[t]||"/"!==e[t+1]);)t++;if(!e[t])return n("end of comment is missing");var r=e.slice(2,t);return e=e.slice(t+2),{type:"comment",comment:r}}}function l(){for(var e,n=[];e=u();)n.push(e);return t.removeComments?[]:n}function f(){for(c();"}"===e[0];)n("extra closing bracket");var t=o(/^(("(?:\\"|[^"])*"|'(?:\\'|[^'])*'|[^{])+)/);if(t)return t[0].trim().replace(/\/\*([^*]|[\r\n]|(\*+([^*\/]|[\r\n])))*\*\/+/g,"").replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,(function(e){return e.replace(/,/g,"‌")})).split(/\s*(?![^(]*\)),\s*/).map((function(e){return e.replace(/\u200C/g,",")}))}function d(){o(/^([;\s]*)+/);var e=/\/\*[^*]*\*+([^\/*][^*]*\*+)*\//g,t=o(/^(\*?[-#\/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(t){if(t=t[0].trim(),!o(/^:\s*/))return n("property missing ':'");var r=o(/^((?:\/\*.*?\*\/|'(?:\\'|.)*?'|"(?:\\"|.)*?"|\((\s*'(?:\\'|.)*?'|"(?:\\"|.)*?"|[^)]*?)\s*\)|[^};])+)/),a={type:"declaration",property:t.replace(e,""),value:r?r[0].replace(e,"").trim():""};return o(/^[;\s]*/),a}}function p(){if(!a())return n("missing '{'");for(var e,t=l();e=d();)t.push(e),t=t.concat(l());return s()?t:n("missing '}'")}function m(){c();for(var e,t=[];e=o(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)t.push(e[1]),o(/^,\s*/);if(t.length)return{type:"keyframe",values:t,declarations:p()}}function v(){if(c(),"@"===e[0]){var r=function(){var e=o(/^@([-\w]+)?keyframes\s*/);if(e){var t=e[1];if(!(e=o(/^([-\w]+)\s*/)))return n("@keyframes missing name");var r,c=e[1];if(!a())return n("@keyframes missing '{'");for(var i=l();r=m();)i.push(r),i=i.concat(l());return s()?{type:"keyframes",name:c,vendor:t,keyframes:i}:n("@keyframes missing '}'")}}()||function(){var e=o(/^@supports *([^{]+)/);if(e)return{type:"supports",supports:e[1].trim(),rules:h()}}()||function(){if(o(/^@host\s*/))return{type:"host",rules:h()}}()||function(){var e=o(/^@media([^{]+)*/);if(e)return{type:"media",media:(e[1]||"").trim(),rules:h()}}()||function(){var e=o(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(e)return{type:"custom-media",name:e[1].trim(),media:e[2].trim()}}()||function(){if(o(/^@page */))return{type:"page",selectors:f()||[],declarations:p()}}()||function(){var e=o(/^@([-\w]+)?document *([^{]+)/);if(e)return{type:"document",document:e[2].trim(),vendor:e[1]?e[1].trim():null,rules:h()}}()||function(){if(o(/^@font-face\s*/))return{type:"font-face",declarations:p()}}()||function(){var e=o(/^@(import|charset|namespace)\s*([^;]+);/);if(e)return{type:e[1],name:e[2].trim()}}();if(r&&!t.preserveStatic){var i=!1;if(r.declarations)i=r.declarations.some((function(e){return/var\(/.test(e.value)}));else i=(r.keyframes||r.rules||[]).some((function(e){return(e.declarations||[]).some((function(e){return/var\(/.test(e.value)}))}));return i?r:{}}return r}}function y(){if(!t.preserveStatic){var r=i("{","}",e);if(r){var o=/:(?:root|host)(?![.:#(])/.test(r.pre)&&/--\S*\s*:/.test(r.body),a=/var\(/.test(r.body);if(!o&&!a)return e=e.slice(r.end+1),{}}}var s=f()||[],c=t.preserveStatic?p():p().filter((function(e){var t=s.some((function(e){return/:(?:root|host)(?![.:#(])/.test(e)}))&&/^--\S/.test(e.property),n=/var\(/.test(e.value);return t||n}));return s.length||n("selector missing"),{type:"rule",selectors:s,declarations:c}}function h(t){if(!t&&!a())return n("missing '{'");for(var r,o=l();e.length&&(t||"}"!==e[0])&&(r=v()||y());)r.type&&o.push(r),o=o.concat(l());return t||s()?o:n("missing '}'")}return{type:"stylesheet",stylesheet:{rules:h(!0),errors:[]}}}function p(e){var t=r({},{parseHost:!1,store:{},onWarning:function(){}},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),n=new RegExp(":".concat(t.parseHost?"host":"root","(?![.:#(])"));return"string"==typeof e&&(e=d(e,t)),e.stylesheet.rules.forEach((function(e){"rule"===e.type&&e.selectors.some((function(e){return n.test(e)}))&&e.declarations.forEach((function(e,n){var r=e.property,o=e.value;r&&0===r.indexOf("--")&&(t.store[r]=o)}))})),t.store}function m(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,r={charset:function(e){return"@charset "+e.name+";"},comment:function(e){return 0===e.comment.indexOf("__CSSVARSPONYFILL")?"/*"+e.comment+"*/":""},"custom-media":function(e){return"@custom-media "+e.name+" "+e.media+";"},declaration:function(e){return e.property+":"+e.value+";"},document:function(e){return"@"+(e.vendor||"")+"document "+e.document+"{"+o(e.rules)+"}"},"font-face":function(e){return"@font-face{"+o(e.declarations)+"}"},host:function(e){return"@host{"+o(e.rules)+"}"},import:function(e){return"@import "+e.name+";"},keyframe:function(e){return e.values.join(",")+"{"+o(e.declarations)+"}"},keyframes:function(e){return"@"+(e.vendor||"")+"keyframes "+e.name+"{"+o(e.keyframes)+"}"},media:function(e){return"@media "+e.media+"{"+o(e.rules)+"}"},namespace:function(e){return"@namespace "+e.name+";"},page:function(e){return"@page "+(e.selectors.length?e.selectors.join(", "):"")+"{"+o(e.declarations)+"}"},rule:function(e){var t=e.declarations;if(t.length)return e.selectors.join(",")+"{"+o(t)+"}"},supports:function(e){return"@supports "+e.supports+"{"+o(e.rules)+"}"}};function o(e){for(var o="",a=0;a<e.length;a++){var s=e[a];n&&n(s);var c=r[s.type](s);c&&(o+=c,c.length&&s.selectors&&(o+=t))}return o}return o(e.stylesheet.rules)}u.range=f;var v="--",y="var";function h(e){var t=r({},{preserveStatic:!0,preserveVars:!1,variables:{},onWarning:function(){}},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{});return"string"==typeof e&&(e=d(e,t)),function e(t,n){t.rules.forEach((function(r){r.rules?e(r,n):r.keyframes?r.keyframes.forEach((function(e){"keyframe"===e.type&&n(e.declarations,r)})):r.declarations&&n(r.declarations,t)}))}(e.stylesheet,(function(e,n){for(var r=0;r<e.length;r++){var o=e[r],a=o.type,s=o.property,c=o.value;if("declaration"===a)if(t.preserveVars||!s||0!==s.indexOf(v)){if(-1!==c.indexOf(y+"(")){var i=b(c,t);i!==o.value&&(i=g(i),t.preserveVars?(e.splice(r,0,{type:a,property:s,value:i}),r++):o.value=i)}}else e.splice(r,1),r--}})),m(e)}function g(e){return(e.match(/calc\(([^)]+)\)/g)||[]).forEach((function(t){var n="calc".concat(t.split("calc").join(""));e=e.replace(t,n)})),e}function b(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;if(-1===e.indexOf("var("))return e;var r=i("(",")",e);return r?"var"===r.pre.slice(-3)?0===r.body.trim().length?(t.onWarning("var() must contain a non-whitespace string"),e):r.pre.slice(0,-3)+function(e){var r=e.split(",")[0].replace(/[\s\n\t]/g,""),o=(e.match(/(?:\s*,\s*){1}(.*)?/)||[])[1],a=Object.prototype.hasOwnProperty.call(t.variables,r)?String(t.variables[r]):void 0,s=a||(o?String(o):void 0),c=n||e;return a||t.onWarning('variable "'.concat(r,'" is undefined')),s&&"undefined"!==s&&s.length>0?b(s,t,c):"var(".concat(c,")")}(r.body)+b(r.post,t):r.pre+"(".concat(b(r.body,t),")")+b(r.post,t):(-1!==e.indexOf("var(")&&t.onWarning('missing closing ")" in the value "'.concat(e,'"')),e)}var S="undefined"!=typeof window,E=S&&window.CSS&&window.CSS.supports&&window.CSS.supports("(--a: 0)"),w={group:0,job:0},O={rootElement:S?document:null,shadowDOM:!1,include:"style,link[rel=stylesheet]",exclude:"",variables:{},onlyLegacy:!0,preserveStatic:!0,preserveVars:!1,silent:!1,updateDOM:!0,updateURLs:!0,watch:null,onBeforeSend:function(){},onWarning:function(){},onError:function(){},onSuccess:function(){},onComplete:function(){}},C={cssComments:/\/\*[\s\S]+?\*\//g,cssKeyframes:/@(?:-\w*-)?keyframes/,cssMediaQueries:/@media[^{]+\{([\s\S]+?})\s*}/g,cssUrls:/url\((?!['"]?(?:data|http|\/\/):)['"]?([^'")]*)['"]?\)/g,cssVarDeclRules:/(?::(?:root|host)(?![.:#(])[\s,]*[^{]*{\s*[^}]*})/g,cssVarDecls:/(?:[\s;]*)(-{2}\w[\w-]*)(?:\s*:\s*)([^;]*);/g,cssVarFunc:/var\(\s*--[\w-]/,cssVars:/(?:(?::(?:root|host)(?![.:#(])[\s,]*[^{]*{\s*[^;]*;*\s*)|(?:var\(\s*))(--[^:)]+)(?:\s*[:)])/},x={dom:{},job:{},user:{}},A=!1,j=null,k=0,_=null,L=!1;
76
  /**
77
  * Fetches, parses, and transforms CSS custom properties from specified
78
  * <style> and <link> elements into static values, then appends a new <style>
@@ -160,4 +160,4 @@ function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;
160
  * onComplete(cssText, styleNode, cssVariables, benchmark) {}
161
  * });
162
  */
163
- function M(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t="cssVars(): ",n=r({},O,e);function a(e,r,o,a){!n.silent&&window.console&&console.error("".concat(t).concat(e,"\n"),r),n.onError(e,r,o,a)}function c(e){!n.silent&&window.console&&console.warn("".concat(t).concat(e)),n.onWarning(e)}if(S){if(n.watch)return n.watch=O.watch,function(e){function t(e){return"LINK"===e.tagName&&-1!==(e.getAttribute("rel")||"").indexOf("stylesheet")&&!e.disabled}if(!window.MutationObserver)return;j&&(j.disconnect(),j=null);(j=new MutationObserver((function(n){n.some((function(n){var r,o=!1;return"attributes"===n.type?o=t(n.target):"childList"===n.type&&(r=n.addedNodes,o=Array.apply(null,r).some((function(e){var n=1===e.nodeType&&e.hasAttribute("data-cssvars"),r=function(e){return"STYLE"===e.tagName&&!e.disabled}(e)&&C.cssVars.test(e.textContent);return!n&&(t(e)||r)}))||function(t){return Array.apply(null,t).some((function(t){var n=1===t.nodeType,r=n&&"out"===t.getAttribute("data-cssvars"),o=n&&"src"===t.getAttribute("data-cssvars"),a=o;if(o||r){var s=t.getAttribute("data-cssvars-group"),c=e.rootElement.querySelector('[data-cssvars-group="'.concat(s,'"]'));o&&(B(e.rootElement),x.dom={}),c&&c.parentNode.removeChild(c)}return a}))}(n.removedNodes)),o}))&&M(e)}))).observe(document.documentElement,{attributes:!0,attributeFilter:["disabled","href"],childList:!0,subtree:!0})}(n),void M(n);if(!1===n.watch&&j&&(j.disconnect(),j=null),!n.__benchmark){if(A===n.rootElement)return void function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100;clearTimeout(_),_=setTimeout((function(){e.__benchmark=null,M(e)}),t)}(e);if(n.__benchmark=N(),n.exclude=[j?'[data-cssvars]:not([data-cssvars=""])':'[data-cssvars="out"]',n.exclude].filter((function(e){return e})).join(","),n.variables=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=/^-{2}/;return Object.keys(e).reduce((function(n,r){return n[t.test(r)?r:"--".concat(r.replace(/^-+/,""))]=e[r],n}),{})}(n.variables),!j)if(Array.apply(null,n.rootElement.querySelectorAll('[data-cssvars="out"]')).forEach((function(e){var t=e.getAttribute("data-cssvars-group");(t?n.rootElement.querySelector('[data-cssvars="src"][data-cssvars-group="'.concat(t,'"]')):null)||e.parentNode.removeChild(e)})),k){var i=n.rootElement.querySelectorAll('[data-cssvars]:not([data-cssvars="out"])');i.length<k&&(k=i.length,x.dom={})}}if("loading"!==document.readyState)if(E&&n.onlyLegacy){if(n.updateDOM){var u=n.rootElement.host||(n.rootElement===document?document.documentElement:n.rootElement);Object.keys(n.variables).forEach((function(e){u.style.setProperty(e,n.variables[e])}))}}else!L&&(n.shadowDOM||n.rootElement.shadowRoot||n.rootElement.host)?s({rootElement:O.rootElement,include:O.include,exclude:n.exclude,onSuccess:function(e,t,n){return(e=((e=e.replace(C.cssComments,"").replace(C.cssMediaQueries,"")).match(C.cssVarDeclRules)||[]).join(""))||!1},onComplete:function(e,t,r){p(e,{store:x.dom,onWarning:c}),L=!0,M(n)}}):(A=n.rootElement,s({rootElement:n.rootElement,include:n.include,exclude:n.exclude,onBeforeSend:n.onBeforeSend,onError:function(e,t,n){var r=e.responseURL||R(n,location.href),o=e.statusText?"(".concat(e.statusText,")"):"Unspecified Error"+(0===e.status?" (possibly CORS related)":"");a("CSS XHR Error: ".concat(r," ").concat(e.status," ").concat(o),t,e,r)},onSuccess:function(e,t,r){var o=n.onSuccess(e,t,r);return e=void 0!==o&&!1===Boolean(o)?"":o||e,n.updateURLs&&(e=function(e,t){return(e.replace(C.cssComments,"").match(C.cssUrls)||[]).forEach((function(n){var r=n.replace(C.cssUrls,"$1"),o=R(r,t);e=e.replace(n,n.replace(r,o))})),e}(e,r)),e},onComplete:function(e,t){var s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i={},u=n.updateDOM?x.dom:Object.keys(x.job).length?x.job:x.job=JSON.parse(JSON.stringify(x.dom)),l=!1;if(s.forEach((function(e,r){if(C.cssVars.test(t[r]))try{var o=d(t[r],{preserveStatic:n.preserveStatic,removeComments:!0});p(o,{parseHost:Boolean(n.rootElement.host),store:i,onWarning:c}),e.__cssVars={tree:o}}catch(t){a(t.message,e)}})),n.updateDOM&&r(x.user,n.variables),r(i,n.variables),l=Boolean((document.querySelector("[data-cssvars]")||Object.keys(x.dom).length)&&Object.keys(i).some((function(e){return i[e]!==u[e]}))),r(u,x.user,i),l)B(n.rootElement),M(n);else{var f=[],v=[],y=!1;if(x.job={},n.updateDOM&&w.job++,s.forEach((function(e){var t=!e.__cssVars;if(e.__cssVars)try{h(e.__cssVars.tree,r({},n,{variables:u,onWarning:c}));var o=m(e.__cssVars.tree);if(n.updateDOM){if(e.getAttribute("data-cssvars")||e.setAttribute("data-cssvars","src"),o.length){var s=e.getAttribute("data-cssvars-group")||++w.group,i=o.replace(/\s/g,""),l=n.rootElement.querySelector('[data-cssvars="out"][data-cssvars-group="'.concat(s,'"]'))||document.createElement("style");y=y||C.cssKeyframes.test(o),l.hasAttribute("data-cssvars")||l.setAttribute("data-cssvars","out"),i===e.textContent.replace(/\s/g,"")?(t=!0,l&&l.parentNode&&(e.removeAttribute("data-cssvars-group"),l.parentNode.removeChild(l))):i!==l.textContent.replace(/\s/g,"")&&([e,l].forEach((function(e){e.setAttribute("data-cssvars-job",w.job),e.setAttribute("data-cssvars-group",s)})),l.textContent=o,f.push(o),v.push(l),l.parentNode||e.parentNode.insertBefore(l,e.nextSibling))}}else e.textContent.replace(/\s/g,"")!==o&&f.push(o)}catch(t){a(t.message,e)}t&&e.setAttribute("data-cssvars","skip"),e.hasAttribute("data-cssvars-job")||e.setAttribute("data-cssvars-job",w.job)})),k=n.rootElement.querySelectorAll('[data-cssvars]:not([data-cssvars="out"])').length,n.shadowDOM)for(var g,b=[n.rootElement].concat(o(n.rootElement.querySelectorAll("*"))),S=0;g=b[S];++S)if(g.shadowRoot&&g.shadowRoot.querySelector("style")){var E=r({},n,{rootElement:g.shadowRoot});M(E)}n.updateDOM&&y&&T(n.rootElement),A=!1,n.onComplete(f.join(""),v,JSON.parse(JSON.stringify(u)),N()-n.__benchmark)}}}));else document.addEventListener("DOMContentLoaded",(function t(n){M(e),document.removeEventListener("DOMContentLoaded",t)}))}}function T(e){var t=["animation-name","-moz-animation-name","-webkit-animation-name"].filter((function(e){return getComputedStyle(document.body)[e]}))[0];if(t){for(var n=e.getElementsByTagName("*"),r=[],o=0,a=n.length;o<a;o++){var s=n[o];"none"!==getComputedStyle(s)[t]&&(s.style[t]+="__CSSVARSPONYFILL-KEYFRAMES__",r.push(s))}document.body.offsetHeight;for(var c=0,i=r.length;c<i;c++){var u=r[c].style;u[t]=u[t].replace("__CSSVARSPONYFILL-KEYFRAMES__","")}}}function R(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:location.href,n=document.implementation.createHTMLDocument(""),r=n.createElement("base"),o=n.createElement("a");return n.head.appendChild(r),n.body.appendChild(o),r.href=t,o.href=e,o.href}function N(){return S&&(window.performance||{}).now?window.performance.now():(new Date).getTime()}function B(e){Array.apply(null,e.querySelectorAll('[data-cssvars="skip"],[data-cssvars="src"]')).forEach((function(e){return e.setAttribute("data-cssvars","")}))}M.reset=function(){for(var e in A=!1,j&&(j.disconnect(),j=null),k=0,_=null,L=!1,x)x[e]={}};var V=M,D=n(0);V(),jQuery(document).ready((function(){jQuery(document).on("wp-collapse-menu",(function(){D.a.update()}))})),window.onload=function(){var e;D.a.update(),null!==(e=document.getElementById("editor"))&&new MutationObserver((function(e){var t=!0,n=!1,r=void 0;try{for(var o,a=e[Symbol.iterator]();!(t=(o=a.next()).done);t=!0)o.value.target.classList.contains("edit-post-layout")&&D.a.update()}catch(e){n=!0,r=e}finally{try{t||null==a.return||a.return()}finally{if(n)throw r}}})).observe(e,{attributes:!0,childList:!0,subtree:!0})},window.addEventListener("resize",(function(){D.a.update()})),window.onorientationchange=function(){D.a.update()}}]);
1
  !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}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=2)}([function(e,t,n){"use strict";function r(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)}}n.d(t,"a",(function(){return o}));var o=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,o;return t=e,(n=[{key:"getOffsetLeft",value:function(e){var t=0;do{null!==e.offsetParent&&(null===(e=e.offsetParent)||void 0===e.offsetLeft||isNaN(e.offsetLeft)||(t+=e.offsetLeft))}while(e.offsetParent);return t}},{key:"update",value:function(e){var t=document.getElementById("adminmenuback"),n=this,r=0;null!==t&&"none"!==getComputedStyle(t,null).display&&(r=document.body.classList.contains("folded")?36:160),Array.from(document.querySelectorAll(".wp-block-wdp-section-block__background")).forEach((function(e){e.style.marginLeft=null,e.style.marginLeft="".concat(-1*(n.getOffsetLeft(e)-r),"px")})),!0===e&&setTimeout((function(){n.update()}),25)}}])&&r(t.prototype,n),o&&r(t,o),e}())},,function(e,t,n){"use strict";
2
  /*!
3
  * css-vars-ponyfill
4
+ * v2.2.1
5
  * https://jhildenbiddle.github.io/css-vars-ponyfill/
6
+ * (c) 2018-2020 John Hildenbiddle <http://hildenbiddle.com>
7
  * MIT license
8
  */
9
  function r(){return(r=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}).apply(this,arguments)}function o(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}
10
  /*!
11
  * get-css-data
12
+ * v1.7.1
13
  * https://github.com/jhildenbiddle/get-css-data
14
+ * (c) 2018-2020 John Hildenbiddle <http://hildenbiddle.com>
15
  * MIT license
16
+ */()}function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={mimeType:t.mimeType||null,onBeforeSend:t.onBeforeSend||Function.prototype,onSuccess:t.onSuccess||Function.prototype,onError:t.onError||Function.prototype,onComplete:t.onComplete||Function.prototype},r=Array.isArray(e)?e:[e],o=Array.apply(null,Array(r.length)).map((function(e){return null}));function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t="<"===e.trim().charAt(0);return!t}function s(e,t){n.onError(e,r[t],t)}function c(e,t){var a=n.onSuccess(e,r[t],t);e=!1===a?"":a||e,o[t]=e,-1===o.indexOf(null)&&n.onComplete(o)}var i=document.createElement("a");r.forEach((function(e,t){if(i.setAttribute("href",e),i.href=String(i.href),Boolean(document.all&&!window.atob)&&i.host.split(":")[0]!==location.host.split(":")[0]){if(i.protocol===location.protocol){var r=new XDomainRequest;r.open("GET",e),r.timeout=0,r.onprogress=Function.prototype,r.ontimeout=Function.prototype,r.onload=function(){a(r.responseText)?c(r.responseText,t):s(r,t)},r.onerror=function(e){s(r,t)},setTimeout((function(){r.send()}),0)}else console.warn("Internet Explorer 9 Cross-Origin (CORS) requests must use the same protocol (".concat(e,")")),s(null,t)}else{var o=new XMLHttpRequest;o.open("GET",e),n.mimeType&&o.overrideMimeType&&o.overrideMimeType(n.mimeType),n.onBeforeSend(o,e,t),o.onreadystatechange=function(){4===o.readyState&&(200===o.status&&a(o.responseText)?c(o.responseText,t):s(o,t))},o.send()}}))}
17
  /**
18
  * Gets CSS data from <style> and <link> nodes (including @imports), then
19
  * returns data in order processed by DOM. Allows specifying nodes to
72
  * // ...
73
  * }
74
  * });
75
+ */function s(e){var t=/\/\*[\s\S]+?\*\//g,n=/(?:@import\s*)(?:url\(\s*)?(?:['"])([^'"]*)(?:['"])(?:\s*\))?(?:[^;]*;)/g,r={rootElement:e.rootElement||document,include:e.include||'style,link[rel="stylesheet"]',exclude:e.exclude||null,filter:e.filter||null,useCSSOM:e.useCSSOM||!1,onBeforeSend:e.onBeforeSend||Function.prototype,onSuccess:e.onSuccess||Function.prototype,onError:e.onError||Function.prototype,onComplete:e.onComplete||Function.prototype},o=Array.apply(null,r.rootElement.querySelectorAll(r.include)).filter((function(e){return t=e,n=r.exclude,!(t.matches||t.matchesSelector||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector).call(t,n);var t,n})),s=Array.apply(null,Array(o.length)).map((function(e){return null}));function i(){if(-1===s.indexOf(null)){var e=s.join("");r.onComplete(e,s,o)}}function u(e,t,n,o){var c=r.onSuccess(e,n,o);(function e(t,n,o,s){var c=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],u=l(t,o,i);u.rules.length?a(u.absoluteUrls,{onBeforeSend:function(e,t,o){r.onBeforeSend(e,n,t)},onSuccess:function(e,t,o){var a=r.onSuccess(e,n,t),s=l(e=!1===a?"":a||e,t,i);return s.rules.forEach((function(t,n){e=e.replace(t,s.absoluteRules[n])})),e},onError:function(r,a,l){c.push({xhr:r,url:a}),i.push(u.rules[l]),e(t,n,o,s,c,i)},onComplete:function(r){r.forEach((function(e,n){t=t.replace(u.rules[n],e)})),e(t,n,o,s,c,i)}}):s(t,c)})(e=void 0!==c&&!1===Boolean(c)?"":c||e,n,o,(function(e,o){null===s[t]&&(o.forEach((function(e){return r.onError(e.xhr,n,e.url)})),!r.filter||r.filter.test(e)?s[t]=e:s[t]="",i())}))}function l(e,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],a={};return a.rules=(e.replace(t,"").match(n)||[]).filter((function(e){return-1===o.indexOf(e)})),a.urls=a.rules.map((function(e){return e.replace(n,"$1")})),a.absoluteUrls=a.urls.map((function(e){return c(e,r)})),a.absoluteRules=a.rules.map((function(e,t){var n=a.urls[t],o=c(a.absoluteUrls[t],r);return e.replace(n,o)})),a}o.length?o.forEach((function(e,t){var n=e.getAttribute("href"),o=e.getAttribute("rel"),l="LINK"===e.nodeName&&n&&o&&"stylesheet"===o.toLowerCase(),f="STYLE"===e.nodeName;if(l)a(n,{mimeType:"text/css",onBeforeSend:function(t,n,o){r.onBeforeSend(t,e,n)},onSuccess:function(r,o,a){var s=c(n);u(r,t,e,s)},onError:function(n,o,a){s[t]="",r.onError(n,e,o),i()}});else if(f){var d=e.textContent;r.useCSSOM&&(d=Array.apply(null,e.sheet.cssRules).map((function(e){return e.cssText})).join("")),u(d,t,e,location.href)}else s[t]="",i()})):r.onComplete("",[])}function c(e,t){var n=document.implementation.createHTMLDocument(""),r=n.createElement("base"),o=n.createElement("a");return n.head.appendChild(r),n.body.appendChild(o),r.href=t||document.baseURI||(document.querySelector("base")||{}).href||location.href,o.href=e,o.href}n.r(t);var i=u;function u(e,t,n){e instanceof RegExp&&(e=l(e,n)),t instanceof RegExp&&(t=l(t,n));var r=f(e,t,n);return r&&{start:r[0],end:r[1],pre:n.slice(0,r[0]),body:n.slice(r[0]+e.length,r[1]),post:n.slice(r[1]+t.length)}}function l(e,t){var n=t.match(e);return n?n[0]:null}function f(e,t,n){var r,o,a,s,c,i=n.indexOf(e),u=n.indexOf(t,i+1),l=i;if(i>=0&&u>0){for(r=[],a=n.length;l>=0&&!c;)l==i?(r.push(l),i=n.indexOf(e,l+1)):1==r.length?c=[r.pop(),u]:((o=r.pop())<a&&(a=o,s=u),u=n.indexOf(t,l+1)),l=i<u&&i>=0?i:u;r.length&&(c=[a,s])}return c}function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={preserveStatic:!0,removeComments:!1},o=r({},n,t),a=[];function s(e){throw new Error("CSS parse error: ".concat(e))}function c(t){var n=t.exec(e);if(n)return e=e.slice(n[0].length),n}function u(){return c(/^{\s*/)}function l(){return c(/^}/)}function f(){c(/^\s*/)}function d(){if(f(),"/"===e[0]&&"*"===e[1]){for(var t=2;e[t]&&("*"!==e[t]||"/"!==e[t+1]);)t++;if(!e[t])return s("end of comment is missing");var n=e.slice(2,t);return e=e.slice(t+2),{type:"comment",comment:n}}}function p(){for(var e,t=[];e=d();)t.push(e);return o.removeComments?[]:t}function m(){for(f();"}"===e[0];)s("extra closing bracket");var t=c(/^(("(?:\\"|[^"])*"|'(?:\\'|[^'])*'|[^{])+)/);if(t)return t[0].trim().replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g,"").replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,(function(e){return e.replace(/,/g,"‌")})).split(/\s*(?![^(]*\)),\s*/).map((function(e){return e.replace(/\u200C/g,",")}))}function v(){if("@"===e[0])return k();c(/^([;\s]*)+/);var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=c(/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(n){if(n=n[0].trim(),!c(/^:\s*/))return s("property missing ':'");var r=c(/^((?:\/\*.*?\*\/|'(?:\\'|.)*?'|"(?:\\"|.)*?"|\((\s*'(?:\\'|.)*?'|"(?:\\"|.)*?"|[^)]*?)\s*\)|[^};])+)/),o={type:"declaration",property:n.replace(t,""),value:r?r[0].replace(t,"").trim():""};return c(/^[;\s]*/),o}}function y(){if(!u())return s("missing '{'");for(var e,t=p();e=v();)t.push(e),t=t.concat(p());return l()?t:s("missing '}'")}function h(){f();for(var e,t=[];e=c(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)t.push(e[1]),c(/^,\s*/);if(t.length)return{type:"keyframe",values:t,declarations:y()}}function g(){var e=c(/^@([-\w]+)?keyframes\s*/);if(e){var t=e[1];if(!(e=c(/^([-\w]+)\s*/)))return s("@keyframes missing name");var n,r=e[1];if(!u())return s("@keyframes missing '{'");for(var o=p();n=h();)o.push(n),o=o.concat(p());return l()?{type:"keyframes",name:r,vendor:t,keyframes:o}:s("@keyframes missing '}'")}}function b(){if(c(/^@page */))return{type:"page",selectors:m()||[],declarations:y()}}function S(){var e=c(/@(top|bottom|left|right)-(left|center|right|top|middle|bottom)-?(corner)?\s*/);if(e)return{type:"page-margin-box",name:"".concat(e[1],"-").concat(e[2])+(e[3]?"-".concat(e[3]):""),declarations:y()}}function E(){if(c(/^@font-face\s*/))return{type:"font-face",declarations:y()}}function w(){var e=c(/^@supports *([^{]+)/);if(e)return{type:"supports",supports:e[1].trim(),rules:L()}}function O(){if(c(/^@host\s*/))return{type:"host",rules:L()}}function x(){var e=c(/^@media([^{]+)*/);if(e)return{type:"media",media:(e[1]||"").trim(),rules:L()}}function C(){var e=c(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(e)return{type:"custom-media",name:e[1].trim(),media:e[2].trim()}}function A(){var e=c(/^@([-\w]+)?document *([^{]+)/);if(e)return{type:"document",document:e[2].trim(),vendor:e[1]?e[1].trim():null,rules:L()}}function j(){var e=c(/^@(import|charset|namespace)\s*([^;]+);/);if(e)return{type:e[1],name:e[2].trim()}}function k(){if(f(),"@"===e[0]){var t=j()||E()||x()||g()||w()||A()||C()||O()||b()||S();if(t&&!o.preserveStatic){var n=!1;if(t.declarations)n=t.declarations.some((function(e){return/var\(/.test(e.value)}));else n=(t.keyframes||t.rules||[]).some((function(e){return(e.declarations||[]).some((function(e){return/var\(/.test(e.value)}))}));return n?t:{}}return t}}function _(){if(!o.preserveStatic){var t=i("{","}",e);if(t){var n=/:(?:root|host)(?![.:#(])/.test(t.pre)&&/--\S*\s*:/.test(t.body),r=/var\(/.test(t.body);if(!n&&!r)return e=e.slice(t.end+1),{}}}var a=m()||[],c=o.preserveStatic?y():y().filter((function(e){var t=a.some((function(e){return/:(?:root|host)(?![.:#(])/.test(e)}))&&/^--\S/.test(e.property),n=/var\(/.test(e.value);return t||n}));return a.length||s("selector missing"),{type:"rule",selectors:a,declarations:c}}function L(t){if(!t&&!u())return s("missing '{'");for(var n,r=p();e.length&&(t||"}"!==e[0])&&(n=k()||_());)n.type&&r.push(n),r=r.concat(p());return t||l()?r:s("missing '}'")}return{type:"stylesheet",stylesheet:{rules:L(!0),errors:a}}}function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={parseHost:!1,store:{},onWarning:function(){}},o=r({},n,t),a=new RegExp(":".concat(o.parseHost?"host":"root","$"));return"string"==typeof e&&(e=d(e,o)),e.stylesheet.rules.forEach((function(e){"rule"===e.type&&e.selectors.some((function(e){return a.test(e)}))&&e.declarations.forEach((function(e,t){var n=e.property,r=e.value;n&&0===n.indexOf("--")&&(o.store[n]=r)}))})),o.store}function m(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,r={charset:function(e){return"@charset "+e.name+";"},comment:function(e){return 0===e.comment.indexOf("__CSSVARSPONYFILL")?"/*"+e.comment+"*/":""},"custom-media":function(e){return"@custom-media "+e.name+" "+e.media+";"},declaration:function(e){return e.property+":"+e.value+";"},document:function(e){return"@"+(e.vendor||"")+"document "+e.document+"{"+o(e.rules)+"}"},"font-face":function(e){return"@font-face{"+o(e.declarations)+"}"},host:function(e){return"@host{"+o(e.rules)+"}"},import:function(e){return"@import "+e.name+";"},keyframe:function(e){return e.values.join(",")+"{"+o(e.declarations)+"}"},keyframes:function(e){return"@"+(e.vendor||"")+"keyframes "+e.name+"{"+o(e.keyframes)+"}"},media:function(e){return"@media "+e.media+"{"+o(e.rules)+"}"},namespace:function(e){return"@namespace "+e.name+";"},page:function(e){return"@page "+(e.selectors.length?e.selectors.join(", "):"")+"{"+o(e.declarations)+"}"},"page-margin-box":function(e){return"@"+e.name+"{"+o(e.declarations)+"}"},rule:function(e){var t=e.declarations;if(t.length)return e.selectors.join(",")+"{"+o(t)+"}"},supports:function(e){return"@supports "+e.supports+"{"+o(e.rules)+"}"}};function o(e){for(var o="",a=0;a<e.length;a++){var s=e[a];n&&n(s);var c=r[s.type](s);c&&(o+=c,c.length&&s.selectors&&(o+=t))}return o}return o(e.stylesheet.rules)}function v(e,t){e.rules.forEach((function(n){n.rules?v(n,t):n.keyframes?n.keyframes.forEach((function(e){"keyframe"===e.type&&t(e.declarations,n)})):n.declarations&&t(n.declarations,e)}))}u.range=f;function y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={preserveStatic:!0,preserveVars:!1,variables:{},onWarning:function(){}},o=r({},n,t);return"string"==typeof e&&(e=d(e,o)),v(e.stylesheet,(function(e,t){for(var n=0;n<e.length;n++){var r=e[n],a=r.type,s=r.property,c=r.value;if("declaration"===a)if(o.preserveVars||!s||0!==s.indexOf("--")){if(-1!==c.indexOf("var(")){var i=g(c,o);i!==r.value&&(i=h(i),o.preserveVars?(e.splice(n,0,{type:a,property:s,value:i}),n++):r.value=i)}}else e.splice(n,1),n--}})),m(e)}function h(e){return(e.match(/calc\(([^)]+)\)/g)||[]).forEach((function(t){var n="calc".concat(t.split("calc").join(""));e=e.replace(t,n)})),e}function g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;if(-1===e.indexOf("var("))return e;var r=i("(",")",e);function o(e){var r=e.split(",")[0].replace(/[\s\n\t]/g,""),o=(e.match(/(?:\s*,\s*){1}(.*)?/)||[])[1],a=Object.prototype.hasOwnProperty.call(t.variables,r)?String(t.variables[r]):void 0,s=a||(o?String(o):void 0),c=n||e;return a||t.onWarning('variable "'.concat(r,'" is undefined')),s&&"undefined"!==s&&s.length>0?g(s,t,c):"var(".concat(c,")")}if(r){if("var"===r.pre.slice(-3)){var a=0===r.body.trim().length;return a?(t.onWarning("var() must contain a non-whitespace string"),e):r.pre.slice(0,-3)+o(r.body)+g(r.post,t)}return r.pre+"(".concat(g(r.body,t),")")+g(r.post,t)}return-1!==e.indexOf("var(")&&t.onWarning('missing closing ")" in the value "'.concat(e,'"')),e}var b="undefined"!=typeof window,S=b&&window.CSS&&window.CSS.supports&&window.CSS.supports("(--a: 0)"),E={group:0,job:0},w={rootElement:b?document:null,shadowDOM:!1,include:"style,link[rel=stylesheet]",exclude:"",variables:{},onlyLegacy:!0,preserveStatic:!0,preserveVars:!1,silent:!1,updateDOM:!0,updateURLs:!0,watch:null,onBeforeSend:function(){},onWarning:function(){},onError:function(){},onSuccess:function(){},onComplete:function(){}},O={cssComments:/\/\*[\s\S]+?\*\//g,cssKeyframes:/@(?:-\w*-)?keyframes/,cssMediaQueries:/@media[^{]+\{([\s\S]+?})\s*}/g,cssUrls:/url\((?!['"]?(?:data|http|\/\/):)['"]?([^'")]*)['"]?\)/g,cssVarDeclRules:/(?::(?:root|host)(?![.:#(])[\s,]*[^{]*{\s*[^}]*})/g,cssVarDecls:/(?:[\s;]*)(-{2}\w[\w-]*)(?:\s*:\s*)([^;]*);/g,cssVarFunc:/var\(\s*--[\w-]/,cssVars:/(?:(?::(?:root|host)(?![.:#(])[\s,]*[^{]*{\s*[^;]*;*\s*)|(?:var\(\s*))(--[^:)]+)(?:\s*[:)])/},x={dom:{},job:{},user:{}},C=!1,A=null,j=0,k=null,_=!1;
76
  /**
77
  * Fetches, parses, and transforms CSS custom properties from specified
78
  * <style> and <link> elements into static values, then appends a new <style>
160
  * onComplete(cssText, styleNode, cssVariables, benchmark) {}
161
  * });
162
  */
163
+ function L(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t="cssVars(): ",n=r({},w,e);function a(e,r,o,a){!n.silent&&window.console&&console.error("".concat(t).concat(e,"\n"),r),n.onError(e,r,o,a)}function c(e){!n.silent&&window.console&&console.warn("".concat(t).concat(e)),n.onWarning(e)}if(b){if(n.watch)return n.watch=w.watch,M(n),void L(n);if(!1===n.watch&&A&&(A.disconnect(),A=null),!n.__benchmark){if(C===n.rootElement)return void T(e);if(n.__benchmark=D(),n.exclude=[A?'[data-cssvars]:not([data-cssvars=""])':'[data-cssvars="out"]',n.exclude].filter((function(e){return e})).join(","),n.variables=N(n.variables),!A){var i=Array.apply(null,n.rootElement.querySelectorAll('[data-cssvars="out"]'));if(i.forEach((function(e){var t=e.getAttribute("data-cssvars-group");(t?n.rootElement.querySelector('[data-cssvars="src"][data-cssvars-group="'.concat(t,'"]')):null)||e.parentNode.removeChild(e)})),j){var u=n.rootElement.querySelectorAll('[data-cssvars]:not([data-cssvars="out"])');u.length<j&&(j=u.length,x.dom={})}}}if("loading"!==document.readyState)if(S&&n.onlyLegacy){if(n.updateDOM){var l=n.rootElement.host||(n.rootElement===document?document.documentElement:n.rootElement);Object.keys(n.variables).forEach((function(e){l.style.setProperty(e,n.variables[e])}))}}else!_&&(n.shadowDOM||n.rootElement.shadowRoot||n.rootElement.host)?s({rootElement:w.rootElement,include:w.include,exclude:n.exclude,onSuccess:function(e,t,n){return(e=((e=e.replace(O.cssComments,"").replace(O.cssMediaQueries,"")).match(O.cssVarDeclRules)||[]).join(""))||!1},onComplete:function(e,t,r){p(e,{store:x.dom,onWarning:c}),_=!0,L(n)}}):(C=n.rootElement,s({rootElement:n.rootElement,include:n.include,exclude:n.exclude,onBeforeSend:n.onBeforeSend,onError:function(e,t,n){var r=e.responseURL||V(n,location.href),o=e.statusText?"(".concat(e.statusText,")"):"Unspecified Error"+(0===e.status?" (possibly CORS related)":"");a("CSS XHR Error: ".concat(r," ").concat(e.status," ").concat(o),t,e,r)},onSuccess:function(e,t,r){var o=n.onSuccess(e,t,r);return e=void 0!==o&&!1===Boolean(o)?"":o||e,n.updateURLs&&(e=B(e,r)),e},onComplete:function(e,t){var s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=r({},x.dom,x.user);if(x.job={},s.forEach((function(e,r){if(O.cssVars.test(t[r]))try{var o=d(t[r],{preserveStatic:n.preserveStatic,removeComments:!0});p(o,{parseHost:Boolean(n.rootElement.host),store:x.dom,onWarning:c}),e.__cssVars={tree:o}}catch(t){a(t.message,e)}})),r(x.job,x.dom),n.updateDOM?(r(x.user,n.variables),r(x.job,x.user)):(r(x.job,x.user,n.variables),r(i,n.variables)),E.job>0&&Boolean(Object.keys(x.job).length>Object.keys(i).length||Boolean(Object.keys(i).length&&Object.keys(x.job).some((function(e){return x.job[e]!==i[e]})))))F(n.rootElement),L(n);else{var u=[],l=[],f=!1;if(n.updateDOM&&E.job++,s.forEach((function(e){var t=!e.__cssVars;if(e.__cssVars)try{y(e.__cssVars.tree,r({},n,{variables:x.job,onWarning:c}));var o=m(e.__cssVars.tree);if(n.updateDOM){if(e.getAttribute("data-cssvars")||e.setAttribute("data-cssvars","src"),o.length){var s=e.getAttribute("data-cssvars-group")||++E.group,i=o.replace(/\s/g,""),d=n.rootElement.querySelector('[data-cssvars="out"][data-cssvars-group="'.concat(s,'"]'))||document.createElement("style");f=f||O.cssKeyframes.test(o),d.hasAttribute("data-cssvars")||d.setAttribute("data-cssvars","out"),i===e.textContent.replace(/\s/g,"")?(t=!0,d&&d.parentNode&&(e.removeAttribute("data-cssvars-group"),d.parentNode.removeChild(d))):i!==d.textContent.replace(/\s/g,"")&&([e,d].forEach((function(e){e.setAttribute("data-cssvars-job",E.job),e.setAttribute("data-cssvars-group",s)})),d.textContent=o,u.push(o),l.push(d),d.parentNode||e.parentNode.insertBefore(d,e.nextSibling))}}else e.textContent.replace(/\s/g,"")!==o&&u.push(o)}catch(t){a(t.message,e)}t&&e.setAttribute("data-cssvars","skip"),e.hasAttribute("data-cssvars-job")||e.setAttribute("data-cssvars-job",E.job)})),j=n.rootElement.querySelectorAll('[data-cssvars]:not([data-cssvars="out"])').length,n.shadowDOM)for(var v,h=[n.rootElement].concat(o(n.rootElement.querySelectorAll("*"))),g=0;v=h[g];++g)if(v.shadowRoot&&v.shadowRoot.querySelector("style")){var b=r({},n,{rootElement:v.shadowRoot});L(b)}n.updateDOM&&f&&R(n.rootElement),C=!1,n.onComplete(u.join(""),l,JSON.parse(JSON.stringify(x.job)),D()-n.__benchmark)}}}));else document.addEventListener("DOMContentLoaded",(function t(n){L(e),document.removeEventListener("DOMContentLoaded",t)}))}}function M(e){function t(e){return"LINK"===e.tagName&&-1!==(e.getAttribute("rel")||"").indexOf("stylesheet")&&!e.disabled}window.MutationObserver&&(A&&(A.disconnect(),A=null),(A=new MutationObserver((function(n){n.some((function(n){var r,o=!1;return"attributes"===n.type?o=t(n.target):"childList"===n.type&&(r=n.addedNodes,o=Array.apply(null,r).some((function(e){var n=1===e.nodeType&&e.hasAttribute("data-cssvars"),r=function(e){return"STYLE"===e.tagName&&!e.disabled}(e)&&O.cssVars.test(e.textContent);return!n&&(t(e)||r)}))||function(t){return Array.apply(null,t).some((function(t){var n=1===t.nodeType,r=n&&"out"===t.getAttribute("data-cssvars"),o=n&&"src"===t.getAttribute("data-cssvars"),a=o;if(o||r){var s=t.getAttribute("data-cssvars-group"),c=e.rootElement.querySelector('[data-cssvars-group="'.concat(s,'"]'));o&&(F(e.rootElement),x.dom={}),c&&c.parentNode.removeChild(c)}return a}))}(n.removedNodes)),o}))&&L(e)}))).observe(document.documentElement,{attributes:!0,attributeFilter:["disabled","href"],childList:!0,subtree:!0}))}function T(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100;clearTimeout(k),k=setTimeout((function(){e.__benchmark=null,L(e)}),t)}function R(e){var t=["animation-name","-moz-animation-name","-webkit-animation-name"].filter((function(e){return getComputedStyle(document.body)[e]}))[0];if(t){for(var n=e.getElementsByTagName("*"),r=[],o=0,a=n.length;o<a;o++){var s=n[o];"none"!==getComputedStyle(s)[t]&&(s.style[t]+="__CSSVARSPONYFILL-KEYFRAMES__",r.push(s))}document.body.offsetHeight;for(var c=0,i=r.length;c<i;c++){var u=r[c].style;u[t]=u[t].replace("__CSSVARSPONYFILL-KEYFRAMES__","")}}}function B(e,t){return(e.replace(O.cssComments,"").match(O.cssUrls)||[]).forEach((function(n){var r=n.replace(O.cssUrls,"$1"),o=V(r,t);e=e.replace(n,n.replace(r,o))})),e}function N(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=/^-{2}/;return Object.keys(e).reduce((function(n,r){return n[t.test(r)?r:"--".concat(r.replace(/^-+/,""))]=e[r],n}),{})}function V(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:location.href,n=document.implementation.createHTMLDocument(""),r=n.createElement("base"),o=n.createElement("a");return n.head.appendChild(r),n.body.appendChild(o),r.href=t,o.href=e,o.href}function D(){return b&&(window.performance||{}).now?window.performance.now():(new Date).getTime()}function F(e){Array.apply(null,e.querySelectorAll('[data-cssvars="skip"],[data-cssvars="src"]')).forEach((function(e){return e.setAttribute("data-cssvars","")}))}L.reset=function(){for(var e in E.job=0,E.group=0,C=!1,A&&(A.disconnect(),A=null),j=0,k=null,_=!1,x)x[e]={}};var q=L,P=n(0);q(),jQuery(document).ready((function(){jQuery(document).on("wp-collapse-menu",(function(){P.a.update()}))})),window.onload=function(){var e;P.a.update(),null!==(e=document.getElementById("editor"))&&new MutationObserver((function(e){var t=!0,n=!1,r=void 0;try{for(var o,a=e[Symbol.iterator]();!(t=(o=a.next()).done);t=!0)o.value.target.classList.contains("edit-post-layout")&&P.a.update()}catch(e){n=!0,r=e}finally{try{t||null==a.return||a.return()}finally{if(n)throw r}}})).observe(e,{attributes:!0,childList:!0,subtree:!0})},window.addEventListener("resize",(function(){P.a.update()})),window.onorientationchange=function(){P.a.update()}}]);
build/block.min.js CHANGED
@@ -1 +1 @@
1
- !function(e){var t={};function o(a){if(t[a])return t[a].exports;var n=t[a]={i:a,l:!1,exports:{}};return e[a].call(n.exports,n,n.exports,o),n.l=!0,n.exports}o.m=e,o.c=t,o.d=function(e,t,a){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(o.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)o.d(a,n,function(t){return e[t]}.bind(null,n));return a},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=1)}([function(e,t,o){"use strict";function a(e,t){for(var o=0;o<t.length;o++){var a=t[o];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}o.d(t,"a",(function(){return n}));var n=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,o,n;return t=e,(o=[{key:"getOffsetLeft",value:function(e){var t=0;do{null!==e.offsetParent&&(null===(e=e.offsetParent)||void 0===e.offsetLeft||isNaN(e.offsetLeft)||(t+=e.offsetLeft))}while(e.offsetParent);return t}},{key:"update",value:function(e){var t=document.getElementById("adminmenuback"),o=this,a=0;null!==t&&"none"!==getComputedStyle(t,null).display&&(a=document.body.classList.contains("folded")?36:160),Array.from(document.querySelectorAll(".wp-block-wdp-section-block__background")).forEach((function(e){e.style.marginLeft=null,e.style.marginLeft="".concat(-1*(o.getOffsetLeft(e)-a),"px")})),!0===e&&setTimeout((function(){o.update()}),25)}}])&&a(t.prototype,o),n&&a(t,n),e}())},function(e,t,o){"use strict";o.r(t);var a=o(0),n=function(e,t){e=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(e,t,o,a){return t+t+o+o+a+a}));var o=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return o?"rgba(".concat(parseInt(o[1],16),",").concat(parseInt(o[2],16),",").concat(parseInt(o[3],16),",").concat(parseFloat(t,10),")"):e},l=function(e){var t=e.useCustomStyles,o=e.padding,a=e.overlayBackgroundColor,l=e.overlayOpacity,r=e.borderColor,c=e.borderStyle,d=e.borderWidth,s=e.boxShadowXOffset,i=e.boxShadowYOffset,u=e.boxShadowBlurRadius,b=e.boxShadowSpreadRadius,p=e.boxShadowColor,f=e.boxShadowOpacity,w=e.backgroundImage,m=e.backgroundImageFocalPos,y={};return!1===t?y:(o!==parseInt(wdpsb.padding,10)&&(y["--wdpsb-padding"]="".concat(o,"px")),void 0!==a&&a!==wdpsb.overlayBackgroundColor&&(y["--wdpsb-overlay-background-color"]=a),l!==parseFloat(wdpsb.overlayOpacity,10)&&(y["--wdpsb-overlay-opacity"]=l.toString()),void 0!==r&&r!==wdpsb.borderColor&&(y["--wdpsb-border-color"]=r),c!==wdpsb.borderStyle&&(y["--wdpsb-border-style"]=c),d!==parseInt(wdpsb.borderWidth,10)&&(y["--wdpsb-border-width"]="".concat(d,"px")),s!==parseInt(wdpsb.boxShadowXOffset,10)&&(y["--wdpsb-box-shadow-xoffset"]="".concat(s,"px")),i!==parseInt(wdpsb.boxShadowYOffset,10)&&(y["--wdpsb-box-shadow-yoffset"]="".concat(i,"px")),u!==parseInt(wdpsb.boxShadowBlurRadius,10)&&(y["--wdpsb-box-shadow-blurradius"]="".concat(u,"px")),b!==parseInt(wdpsb.boxShadowSpreadRadius,10)&&(y["--wdpsb-box-shadow-spreadradius"]="".concat(b,"px")),void 0===p||p===wdpsb.boxShadowColor&&f===parseFloat(wdpsb.boxShadowOpacity,10)||(y["--wdpsb-box-shadow-color"]=n(p,f)),void 0===p&&f!==parseFloat(wdpsb.boxShadowOpacity,10)&&(y["--wdpsb-box-shadow-color"]=n(wdpsb.boxShadowColor,f)),null!==w&&(y["--wdpsb-background-image"]="url('".concat(w,"')")),.5!==m.x&&(y["--wdpsb-background-image-position-x"]="".concat(100*m.x,"%")),.5!==m.y&&(y["--wdpsb-background-image-position-y"]="".concat(100*m.y,"%")),y)},r=wp.i18n.__,c=wp.blocks.registerBlockType,d=wp.blockEditor,s=d.InnerBlocks,i=d.InspectorControls,u=d.MediaUpload,b=wp.element.Fragment,p=wp.components,f=p.Button,w=p.PanelBody,m=p.RangeControl,y=p.SelectControl,g=p.ToggleControl,h=p.ColorPalette,k=p.FocalPointPicker,x={useCustomStyles:{type:"boolean",default:!1},padding:{type:"integer",default:parseInt(wdpsb.padding,10)},overlayBackgroundColor:{type:"string",default:wdpsb.overlayBackgroundColor},overlayOpacity:{type:"float",default:parseFloat(wdpsb.overlayOpacity,10)},borderColor:{type:"string",default:wdpsb.borderColor},borderStyle:{type:"string",default:wdpsb.borderStyle},borderWidth:{type:"integer",default:parseInt(wdpsb.borderWidth,10)},boxShadowXOffset:{type:"integer",default:parseInt(wdpsb.boxShadowXOffset,10)},boxShadowYOffset:{type:"integer",default:parseInt(wdpsb.boxShadowYOffset,10)},boxShadowBlurRadius:{type:"integer",default:parseInt(wdpsb.boxShadowBlurRadius,10)},boxShadowSpreadRadius:{type:"integer",default:parseInt(wdpsb.boxShadowSpreadRadius,10)},boxShadowColor:{type:"string",default:wdpsb.boxShadowColor},boxShadowOpacity:{type:"float",default:parseFloat(wdpsb.boxShadowOpacity,10)},backgroundImage:{type:"string",default:null},backgroundImageFocalPos:{type:"object",default:{x:.5,y:.5}}};c("wdp/section-block",{title:r("Section Block (by We Do Plugins)","section-block"),description:r("Cool Section Block for new Block Editor.","section-block"),icon:"index-card",category:"widgets",supports:{align:["wide","full"]},attributes:x,example:{attributes:{defaultAttributes:x}},edit:function(e){var t=e.attributes,o=e.setAttributes,n=e.className,c=t.useCustomStyles,d=t.padding,p=t.overlayBackgroundColor,x=t.overlayOpacity,v=t.borderColor,S=t.borderStyle,R=t.borderWidth,C=t.boxShadowXOffset,E=t.boxShadowYOffset,O=t.boxShadowBlurRadius,B=t.boxShadowSpreadRadius,I=t.boxShadowColor,P=t.boxShadowOpacity,_=t.backgroundImage,F=t.backgroundImageFocalPos;return React.createElement(b,null,React.createElement(i,null,React.createElement(w,{title:r("Use custom styles?","section-block")},React.createElement(g,{label:r("Use custom styles?","section-block"),checked:c,onChange:function(e){o({useCustomStyles:e})}})),!0===c&&React.createElement("div",null,React.createElement(w,{title:r("Overlay","section-block"),initialOpen:!1},React.createElement(b,null,React.createElement("p",null,r("Overlay background color","section-block")),React.createElement(h,{label:r("Overlay background color","section-block"),value:p,colors:wdpsb.themeColors,onChange:function(e){o({overlayBackgroundColor:e})}})),React.createElement(m,{label:r("Overlay opacity","section-block"),value:x,onChange:function(e){o({overlayOpacity:e})},min:0,max:1,step:.01})),React.createElement(w,{title:r("Padding","section-block"),initialOpen:!1},React.createElement(m,{label:r("Padding","section-block"),value:d,onChange:function(e){o({padding:e})},min:0,max:120})),React.createElement(w,{title:r("Border","section-block"),initialOpen:!1},React.createElement(b,null,React.createElement("p",null,r("Border color","section-block")),React.createElement(h,{label:r("Border color","section-block"),value:v,colors:wdpsb.themeColors,onChange:function(e){o({borderColor:e})}})),React.createElement(y,{label:r("Border style","section-block"),value:S,onChange:function(e){o({borderStyle:e})},options:[{value:"solid",label:r("Solid","section-block")},{value:"dashed",label:r("Dashed","section-block")},{value:"dotted",label:r("Dotted","section-block")}]}),React.createElement(m,{label:r("Border width","section-block"),value:R,onChange:function(e){o({borderWidth:e})},min:0,max:30})),React.createElement(w,{title:r("Box shadow","section-block"),initialOpen:!1},React.createElement(m,{label:r("X offset","section-block"),value:C,onChange:function(e){o({boxShadowXOffset:e})},min:-100,max:100}),React.createElement(m,{label:r("Y offset","section-block"),value:E,onChange:function(e){o({boxShadowYOffset:e})},min:-100,max:100}),React.createElement(m,{label:r("Blur radius","section-block"),value:O,onChange:function(e){o({boxShadowBlurRadius:e})},min:0,max:100}),React.createElement(m,{label:r("Spread radius","section-block"),value:B,onChange:function(e){o({boxShadowSpreadRadius:e})},min:-100,max:100}),React.createElement(b,null,React.createElement("p",null,r("Box shadow color","section-block")),React.createElement(h,{label:r("Box shadow color","section-block"),value:I,colors:wdpsb.themeColors,onChange:function(e){o({boxShadowColor:e})}})),React.createElement(m,{label:r("Box shadow color opacity","section-block"),value:P,onChange:function(e){o({boxShadowOpacity:e})},min:0,max:1,step:.01})),React.createElement(w,{title:r("Background image","section-block"),initialOpen:!1},React.createElement(u,{onSelect:function(e){o({backgroundImage:e.sizes.full.url})},type:"image",value:_,render:function(e){var t=e.open;return React.createElement(f,{isDefault:!0,onClick:t},r("Upload image","section-block"))}}),null!==_&&React.createElement(b,null,React.createElement("span",{className:"wp-block-wdp-section-block__or-span"},r("or","section-block")),React.createElement(f,{isDefault:!0,onClick:function(e){e.preventDefault(),o({backgroundImage:null})}},r("Remove current","section-block")),React.createElement("h4",null,r("Image focal point","section-block")),React.createElement(k,{url:_,value:F,onChange:function(e){o({backgroundImageFocalPos:e})}}))))),React.createElement("div",{className:n,style:!0===c?l(t):{}},React.createElement("div",{className:"wp-block-wdp-section-block__background"}),React.createElement(s,null)),a.a.update(!0))},save:function(e){var t=e.attributes,o=e.className,a=t.useCustomStyles;return React.createElement("div",{className:o,style:!0===a?l(t):{}},React.createElement("div",{className:"wp-block-wdp-section-block__background"}),React.createElement(s.Content,null))}})}]);
1
+ !function(e){var o={};function t(a){if(o[a])return o[a].exports;var n=o[a]={i:a,l:!1,exports:{}};return e[a].call(n.exports,n,n.exports,t),n.l=!0,n.exports}t.m=e,t.c=o,t.d=function(e,o,a){t.o(e,o)||Object.defineProperty(e,o,{enumerable:!0,get:a})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,o){if(1&o&&(e=t(e)),8&o)return e;if(4&o&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(t.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&o&&"string"!=typeof e)for(var n in e)t.d(a,n,function(o){return e[o]}.bind(null,n));return a},t.n=function(e){var o=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(o,"a",o),o},t.o=function(e,o){return Object.prototype.hasOwnProperty.call(e,o)},t.p="",t(t.s=1)}([function(e,o,t){"use strict";function a(e,o){for(var t=0;t<o.length;t++){var a=o[t];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}t.d(o,"a",(function(){return n}));var n=new(function(){function e(){!function(e,o){if(!(e instanceof o))throw new TypeError("Cannot call a class as a function")}(this,e)}var o,t,n;return o=e,(t=[{key:"getOffsetLeft",value:function(e){var o=0;do{null!==e.offsetParent&&(null===(e=e.offsetParent)||void 0===e.offsetLeft||isNaN(e.offsetLeft)||(o+=e.offsetLeft))}while(e.offsetParent);return o}},{key:"update",value:function(e){var o=document.getElementById("adminmenuback"),t=this,a=0;null!==o&&"none"!==getComputedStyle(o,null).display&&(a=document.body.classList.contains("folded")?36:160),Array.from(document.querySelectorAll(".wp-block-wdp-section-block__background")).forEach((function(e){e.style.marginLeft=null,e.style.marginLeft="".concat(-1*(t.getOffsetLeft(e)-a),"px")})),!0===e&&setTimeout((function(){t.update()}),25)}}])&&a(o.prototype,t),n&&a(o,n),e}())},function(e,o,t){"use strict";t.r(o);var a=t(0),n=function(e,o){e=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(e,o,t,a){return o+o+t+t+a+a}));var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?"rgba(".concat(parseInt(t[1],16),",").concat(parseInt(t[2],16),",").concat(parseInt(t[3],16),",").concat(parseFloat(o,10),")"):e},l=function(e){var o=e.useCustomStyles,t=e.padding,a=e.overlayBackgroundColor,l=e.overlayOpacity,r=e.borderColor,c=e.borderStyle,d=e.borderWidth,s=e.boxShadowXOffset,i=e.boxShadowYOffset,u=e.boxShadowBlurRadius,b=e.boxShadowSpreadRadius,p=e.boxShadowColor,f=e.boxShadowOpacity,w=e.backgroundImage,m=e.backgroundImageFocalPos,g={};return!1===o||(t!==parseInt(wdpsb.padding,10)&&(g["--wdpsb-padding"]="".concat(t,"px")),void 0!==a&&a!==wdpsb.overlayBackgroundColor&&(g["--wdpsb-overlay-background-color"]=a),l!==parseFloat(wdpsb.overlayOpacity,10)&&(g["--wdpsb-overlay-opacity"]=l.toString()),void 0!==r&&r!==wdpsb.borderColor&&(g["--wdpsb-border-color"]=r),c!==wdpsb.borderStyle&&(g["--wdpsb-border-style"]=c),d!==parseInt(wdpsb.borderWidth,10)&&(g["--wdpsb-border-width"]="".concat(d,"px")),s!==parseInt(wdpsb.boxShadowXOffset,10)&&(g["--wdpsb-box-shadow-xoffset"]="".concat(s,"px")),i!==parseInt(wdpsb.boxShadowYOffset,10)&&(g["--wdpsb-box-shadow-yoffset"]="".concat(i,"px")),u!==parseInt(wdpsb.boxShadowBlurRadius,10)&&(g["--wdpsb-box-shadow-blurradius"]="".concat(u,"px")),b!==parseInt(wdpsb.boxShadowSpreadRadius,10)&&(g["--wdpsb-box-shadow-spreadradius"]="".concat(b,"px")),void 0===p||p===wdpsb.boxShadowColor&&f===parseFloat(wdpsb.boxShadowOpacity,10)||(g["--wdpsb-box-shadow-color"]=n(p,f)),void 0===p&&f!==parseFloat(wdpsb.boxShadowOpacity,10)&&(g["--wdpsb-box-shadow-color"]=n(wdpsb.boxShadowColor,f)),null!==w&&(g["--wdpsb-background-image"]="url('".concat(w,"')")),.5!==m.x&&(g["--wdpsb-background-image-position-x"]="".concat(100*m.x,"%")),.5!==m.y&&(g["--wdpsb-background-image-position-y"]="".concat(100*m.y,"%"))),g},r=wp.i18n.__,c=wp.blocks.registerBlockType,d=wp.blockEditor,s=d.InnerBlocks,i=d.InspectorControls,u=d.MediaUpload,b=wp.element.Fragment,p=wp.components,f=p.Button,w=p.PanelBody,m=p.RangeControl,g=p.SelectControl,y=p.ToggleControl,k=p.ColorPalette,h=p.FocalPointPicker;void 0!==wp.blocks.registerBlockCollection&&wp.blocks.registerBlockCollection("wdp",{title:r("Blocks by We Do Plugins","section-block")});var x={useCustomStyles:{type:"boolean",default:!1},padding:{type:"integer",default:parseInt(wdpsb.padding,10)},overlayBackgroundColor:{type:"string",default:wdpsb.overlayBackgroundColor},overlayOpacity:{type:"float",default:parseFloat(wdpsb.overlayOpacity,10)},borderColor:{type:"string",default:wdpsb.borderColor},borderStyle:{type:"string",default:wdpsb.borderStyle},borderWidth:{type:"integer",default:parseInt(wdpsb.borderWidth,10)},boxShadowXOffset:{type:"integer",default:parseInt(wdpsb.boxShadowXOffset,10)},boxShadowYOffset:{type:"integer",default:parseInt(wdpsb.boxShadowYOffset,10)},boxShadowBlurRadius:{type:"integer",default:parseInt(wdpsb.boxShadowBlurRadius,10)},boxShadowSpreadRadius:{type:"integer",default:parseInt(wdpsb.boxShadowSpreadRadius,10)},boxShadowColor:{type:"string",default:wdpsb.boxShadowColor},boxShadowOpacity:{type:"float",default:parseFloat(wdpsb.boxShadowOpacity,10)},backgroundImage:{type:"string",default:null},backgroundImageFocalPos:{type:"object",default:{x:.5,y:.5}}};c("wdp/section-block",{title:r("Section Block (by We Do Plugins)","section-block"),description:r("Cool Section Block for new Block Editor.","section-block"),icon:"index-card",category:"widgets",supports:{align:["wide","full"]},attributes:x,example:{attributes:{defaultAttributes:x}},edit:function(e){var o=e.attributes,t=e.setAttributes,n=e.className,c=o.useCustomStyles,d=o.padding,p=o.overlayBackgroundColor,x=o.overlayOpacity,v=o.borderColor,S=o.borderStyle,R=o.borderWidth,C=o.boxShadowXOffset,E=o.boxShadowYOffset,O=o.boxShadowBlurRadius,B=o.boxShadowSpreadRadius,I=o.boxShadowColor,P=o.boxShadowOpacity,_=o.backgroundImage,F=o.backgroundImageFocalPos;return React.createElement(b,null,React.createElement(i,null,React.createElement(w,{title:r("Use custom styles?","section-block")},React.createElement(y,{label:r("Use custom styles?","section-block"),checked:c,onChange:function(e){t({useCustomStyles:e})}})),!0===c&&React.createElement("div",null,React.createElement(w,{title:r("Overlay","section-block"),initialOpen:!1},React.createElement(b,null,React.createElement("p",null,r("Overlay background color","section-block")),React.createElement(k,{label:r("Overlay background color","section-block"),value:p,colors:wdpsb.themeColors,onChange:function(e){t({overlayBackgroundColor:e})}})),React.createElement(m,{label:r("Overlay opacity","section-block"),value:x,onChange:function(e){t({overlayOpacity:e})},min:0,max:1,step:.01})),React.createElement(w,{title:r("Padding","section-block"),initialOpen:!1},React.createElement(m,{label:r("Padding","section-block"),value:d,onChange:function(e){t({padding:e})},min:0,max:120})),React.createElement(w,{title:r("Border","section-block"),initialOpen:!1},React.createElement(b,null,React.createElement("p",null,r("Border color","section-block")),React.createElement(k,{label:r("Border color","section-block"),value:v,colors:wdpsb.themeColors,onChange:function(e){t({borderColor:e})}})),React.createElement(g,{label:r("Border style","section-block"),value:S,onChange:function(e){t({borderStyle:e})},options:[{value:"solid",label:r("Solid","section-block")},{value:"dashed",label:r("Dashed","section-block")},{value:"dotted",label:r("Dotted","section-block")}]}),React.createElement(m,{label:r("Border width","section-block"),value:R,onChange:function(e){t({borderWidth:e})},min:0,max:30})),React.createElement(w,{title:r("Box shadow","section-block"),initialOpen:!1},React.createElement(m,{label:r("X offset","section-block"),value:C,onChange:function(e){t({boxShadowXOffset:e})},min:-100,max:100}),React.createElement(m,{label:r("Y offset","section-block"),value:E,onChange:function(e){t({boxShadowYOffset:e})},min:-100,max:100}),React.createElement(m,{label:r("Blur radius","section-block"),value:O,onChange:function(e){t({boxShadowBlurRadius:e})},min:0,max:100}),React.createElement(m,{label:r("Spread radius","section-block"),value:B,onChange:function(e){t({boxShadowSpreadRadius:e})},min:-100,max:100}),React.createElement(b,null,React.createElement("p",null,r("Box shadow color","section-block")),React.createElement(k,{label:r("Box shadow color","section-block"),value:I,colors:wdpsb.themeColors,onChange:function(e){t({boxShadowColor:e})}})),React.createElement(m,{label:r("Box shadow color opacity","section-block"),value:P,onChange:function(e){t({boxShadowOpacity:e})},min:0,max:1,step:.01})),React.createElement(w,{title:r("Background image","section-block"),initialOpen:!1},React.createElement(u,{onSelect:function(e){t({backgroundImage:e.sizes.full.url})},type:"image",value:_,render:function(e){var o=e.open;return React.createElement(f,{isDefault:!0,onClick:o},r("Upload image","section-block"))}}),null!==_&&React.createElement(b,null,React.createElement("span",{className:"wp-block-wdp-section-block__or-span"},r("or","section-block")),React.createElement(f,{isDefault:!0,onClick:function(e){e.preventDefault(),t({backgroundImage:null})}},r("Remove current","section-block")),React.createElement("h4",null,r("Image focal point","section-block")),React.createElement(h,{url:_,value:F,onChange:function(e){t({backgroundImageFocalPos:e})}}))))),React.createElement("div",{className:n,style:!0===c?l(o):{}},React.createElement("div",{className:"wp-block-wdp-section-block__background"}),React.createElement(s,null)),a.a.update(!0))},save:function(e){var o=e.attributes,t=e.className,a=o.useCustomStyles;return React.createElement("div",{className:t,style:!0===a?l(o):{}},React.createElement("div",{className:"wp-block-wdp-section-block__background"}),React.createElement(s.Content,null))}})}]);
classes/class-wdpsb-blockssummarypage.php CHANGED
@@ -17,7 +17,7 @@ if ( defined( 'WDP_SUMMARY_PAGE' ) ) {
17
 
18
  define( 'WDP_SUMMARY_PAGE', true ); // Tell the other plugins that summary page is already rendered.
19
  define( 'WDP_BSP_MAIN_FILE', WDPSB_MAIN_FILE );
20
- define( 'WDP_BSP_VERSION', '1.0.10' );
21
 
22
  // phpcs:enable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedConstantFound
23
 
@@ -85,7 +85,7 @@ abstract class WDPSB_BlocksSummaryPage {
85
  }
86
 
87
  $slug = explode( '/', $plugin_path );
88
- $slug = $slug[0] ?? null;
89
 
90
  if ( null !== $slug ) {
91
 
17
 
18
  define( 'WDP_SUMMARY_PAGE', true ); // Tell the other plugins that summary page is already rendered.
19
  define( 'WDP_BSP_MAIN_FILE', WDPSB_MAIN_FILE );
20
+ define( 'WDP_BSP_VERSION', '1.0.11' );
21
 
22
  // phpcs:enable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedConstantFound
23
 
85
  }
86
 
87
  $slug = explode( '/', $plugin_path );
88
+ $slug = isset( $slug[0] ) ? $slug[0] : null;
89
 
90
  if ( null !== $slug ) {
91
 
readme.txt CHANGED
@@ -2,11 +2,11 @@
2
  Contributors: wedoplugins
3
  Tags: block, section, section block, gutenberg, block editor, block library, blocks
4
  Requires at least: 5.1
5
- Tested up to: 5.3.2
6
- Requires PHP: 7.1
7
  License: GPLv3
8
  License URI: http://www.gnu.org/licenses/gpl.html
9
- Stable tag: 1.3.3
10
 
11
  Section Block for new WordPress Block Editor allow you to add Sections to your website and customize it.
12
 
@@ -36,6 +36,10 @@ Blocks inside this Section Block can be wide- or full-aligned, but section itsel
36
 
37
  == Changelog ==
38
 
 
 
 
 
39
  = 1.3.3 =
40
  * Blocks Summary page updated
41
  * block editor styles improved
2
  Contributors: wedoplugins
3
  Tags: block, section, section block, gutenberg, block editor, block library, blocks
4
  Requires at least: 5.1
5
+ Tested up to: 5.4
6
+ Requires PHP: 5.6
7
  License: GPLv3
8
  License URI: http://www.gnu.org/licenses/gpl.html
9
+ Stable tag: 1.3.4
10
 
11
  Section Block for new WordPress Block Editor allow you to add Sections to your website and customize it.
12
 
36
 
37
  == Changelog ==
38
 
39
+ = 1.3.4 =
40
+ * compatibility with WP 5.4 confirmed
41
+ * custom block collection registered
42
+
43
  = 1.3.3 =
44
  * Blocks Summary page updated
45
  * block editor styles improved
section-block.php CHANGED
@@ -5,7 +5,7 @@
5
  * Description: This plugin brings a Section Block to new WordPress Blocks editor.
6
  * Author: We Do Plugins
7
  * Author URI: http://wedoplugins.com/
8
- * Version: 1.3.3
9
  * License: GPLv3
10
  * Text Domain: section-block
11
  *
@@ -17,7 +17,7 @@ if ( ! defined( 'ABSPATH' ) ) {
17
  }
18
 
19
  define( 'WDPSB_MAIN_FILE', __FILE__ );
20
- define( 'WDPSB_VERSION', '1.3.3' );
21
 
22
  /**
23
  * Require plugin classes
5
  * Description: This plugin brings a Section Block to new WordPress Blocks editor.
6
  * Author: We Do Plugins
7
  * Author URI: http://wedoplugins.com/
8
+ * Version: 1.3.4
9
  * License: GPLv3
10
  * Text Domain: section-block
11
  *
17
  }
18
 
19
  define( 'WDPSB_MAIN_FILE', __FILE__ );
20
+ define( 'WDPSB_VERSION', '1.3.4' );
21
 
22
  /**
23
  * Require plugin classes