!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}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=15)}([function(e,t){e.exports=window.wp.element},function(e,t){e.exports=window.wp.i18n},function(e,t){e.exports=window.blocksyOptions},function(e,t){e.exports=window.wp.data},function(e,t){e.exports=window.wp.primitives},function(e,t){e.exports=ctEvents},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.maybePromoteScalarValueIntoResponsive=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e&&Object.keys(e).indexOf("desktop")>-1?t?e:e.desktop:t?{desktop:e,tablet:e,mobile:e}:e}},function(e,t){e.exports=window.wp.plugins},function(e,t){e.exports=window.wp.editPost},function(e,t){e.exports=window.wp.components},function(e,t){e.exports=window.wp.compose},function(e,t,r){(function(e){var n=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},n=0;n=i)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}})),c=n[r];r=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),y(r)?n.showHidden=r:r&&t._extend(n,r),v(n.showHidden)&&(n.showHidden=!1),v(n.depth)&&(n.depth=2),v(n.colors)&&(n.colors=!1),v(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=c),u(n,e,n.depth)}function c(e,t){var r=s.styles[t];return r?"["+s.colors[r][0]+"m"+e+"["+s.colors[r][1]+"m":e}function l(e,t){return e}function u(e,r,n){if(e.customInspect&&r&&w(r.inspect)&&r.inspect!==t.inspect&&(!r.constructor||r.constructor.prototype!==r)){var o=r.inspect(n,e);return h(o)||(o=u(e,o,n)),o}var i=function(e,t){if(v(t))return e.stylize("undefined","undefined");if(h(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(m(t))return e.stylize(""+t,"number");if(y(t))return e.stylize(""+t,"boolean");if(b(t))return e.stylize("null","null")}(e,r);if(i)return i;var a=Object.keys(r),s=function(e){var t={};return e.forEach((function(e,r){t[e]=!0})),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(r)),O(r)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return p(r);if(0===a.length){if(w(r)){var c=r.name?": "+r.name:"";return e.stylize("[Function"+c+"]","special")}if(g(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(T(r))return e.stylize(Date.prototype.toString.call(r),"date");if(O(r))return p(r)}var l,_="",k=!1,x=["{","}"];(f(r)&&(k=!0,x=["[","]"]),w(r))&&(_=" [Function"+(r.name?": "+r.name:"")+"]");return g(r)&&(_=" "+RegExp.prototype.toString.call(r)),T(r)&&(_=" "+Date.prototype.toUTCString.call(r)),O(r)&&(_=" "+p(r)),0!==a.length||k&&0!=r.length?n<0?g(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),l=k?function(e,t,r,n,o){for(var i=[],a=0,s=t.length;a=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60)return r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1];return r[0]+t+" "+e.join(", ")+" "+r[1]}(l,_,x)):x[0]+_+x[1]}function p(e){return"["+Error.prototype.toString.call(e)+"]"}function d(e,t,r,n,o,i){var a,s,c;if((c=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]}).get?s=c.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):c.set&&(s=e.stylize("[Setter]","special")),P(n,o)||(a="["+o+"]"),s||(e.seen.indexOf(c.value)<0?(s=b(r)?u(e,c.value,null):u(e,c.value,r-1)).indexOf("\n")>-1&&(s=i?s.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n")):s=e.stylize("[Circular]","special")),v(a)){if(i&&o.match(/^\d+$/))return s;(a=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function f(e){return Array.isArray(e)}function y(e){return"boolean"==typeof e}function b(e){return null===e}function m(e){return"number"==typeof e}function h(e){return"string"==typeof e}function v(e){return void 0===e}function g(e){return _(e)&&"[object RegExp]"===k(e)}function _(e){return"object"==typeof e&&null!==e}function T(e){return _(e)&&"[object Date]"===k(e)}function O(e){return _(e)&&("[object Error]"===k(e)||e instanceof Error)}function w(e){return"function"==typeof e}function k(e){return Object.prototype.toString.call(e)}function x(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(r){if(v(i)&&(i=e.env.NODE_DEBUG||""),r=r.toUpperCase(),!a[r])if(new RegExp("\\b"+r+"\\b","i").test(i)){var n=e.pid;a[r]=function(){var e=t.format.apply(t,arguments);console.error("%s %d: %s",r,n,e)}}else a[r]=function(){};return a[r]},t.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=f,t.isBoolean=y,t.isNull=b,t.isNullOrUndefined=function(e){return null==e},t.isNumber=m,t.isString=h,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=v,t.isRegExp=g,t.isObject=_,t.isDate=T,t.isError=O,t.isFunction=w,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=r(13);var j=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function S(){var e=new Date,t=[x(e.getHours()),x(e.getMinutes()),x(e.getSeconds())].join(":");return[e.getDate(),j[e.getMonth()],t].join(" ")}function P(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",S(),t.format.apply(t,arguments))},t.inherits=r(14),t._extend=function(e,t){if(!t||!_(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};var C="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function E(e,t){if(!e){var r=new Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(C&&e[C]){var t;if("function"!=typeof(t=e[C]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,C,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,r,n=new Promise((function(e,n){t=e,r=n})),o=[],i=0;i1)for(var r=1;r1&&void 0!==arguments[1])||arguments[1];return e&&Object.keys(e).indexOf("desktop")>-1?t?e:e.desktop:t?{desktop:e,tablet:e,mobile:e}:e};function v(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function g(e,t){return e(t={exports:{}},t.exports),t.exports}var _=g((function(e,t){ /** * @license * Copyright (c) 2016 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt The complete set of authors may be found * at http://polymer.github.io/AUTHORS.txt The complete set of contributors may * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by * Google as part of the polymer project is also subject to an additional IP * rights grant found at http://polymer.github.io/PATENTS.txt */ Object.defineProperty(t,"__esModule",{value:!0});t.matcher={whitespace:/\s/,whitespaceGreedy:/(\s+)/g,commentGreedy:/(\*\/)/g,boundary:/[\(\)\{\}'"@;:\s]/,stringBoundary:/['"]/},function(e){e.stylesheet="stylesheet",e.comment="comment",e.atRule="atRule",e.ruleset="ruleset",e.expression="expression",e.declaration="declaration",e.rulelist="rulelist",e.discarded="discarded"}(t.nodeType||(t.nodeType={}))}));v(_);_.matcher,_.nodeType;var T=g((function(e,t){ /** * @license * Copyright (c) 2016 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt The complete set of authors may be found * at http://polymer.github.io/AUTHORS.txt The complete set of contributors may * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by * Google as part of the polymer project is also subject to an additional IP * rights grant found at http://polymer.github.io/PATENTS.txt */ Object.defineProperty(t,"__esModule",{value:!0}),t.iterateOverAst=function*e(t){switch(yield t,t.type){case _.nodeType.stylesheet:for(const r of t.rules)yield*e(r);return;case _.nodeType.ruleset:return yield*e(t.rulelist);case _.nodeType.rulelist:for(const r of t.rules)yield*e(r);return;case _.nodeType.declaration:return void(void 0!==t.value&&(yield*e(t.value)));case _.nodeType.atRule:return void(t.rulelist&&(yield*e(t.rulelist)));case _.nodeType.expression:case _.nodeType.comment:case _.nodeType.discarded:return;default:const r=t;console.error("Got a node of unknown type: "+d.a.inspect(r))}}}));v(T);T.iterateOverAst;var O=g((function(e,t){ /** * @license * Copyright (c) 2016 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt The complete set of authors may be found * at http://polymer.github.io/AUTHORS.txt The complete set of contributors may * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by * Google as part of the polymer project is also subject to an additional IP * rights grant found at http://polymer.github.io/PATENTS.txt */ Object.defineProperty(t,"__esModule",{value:!0});t.NodeFactory=class{stylesheet(e,t){return{type:_.nodeType.stylesheet,rules:e,range:t}}atRule(e,t,r,n,o,i){return{type:_.nodeType.atRule,name:e,parameters:t,rulelist:r,nameRange:n,parametersRange:o,range:i}}comment(e,t){return{type:_.nodeType.comment,value:e,range:t}}rulelist(e,t){return{type:_.nodeType.rulelist,rules:e,range:t}}ruleset(e,t,r,n){return{type:_.nodeType.ruleset,selector:e,rulelist:t,selectorRange:r,range:n}}declaration(e,t,r,n){return{type:_.nodeType.declaration,name:e,value:t,nameRange:r,range:n}}expression(e,t){return{type:_.nodeType.expression,text:e,range:t}}discarded(e,t){return{type:_.nodeType.discarded,text:e,range:t}}}}));v(O);O.NodeFactory;var w=g((function(e,t){ /** * @license * Copyright (c) 2016 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt The complete set of authors may be found * at http://polymer.github.io/AUTHORS.txt The complete set of contributors may * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by * Google as part of the polymer project is also subject to an additional IP * rights grant found at http://polymer.github.io/PATENTS.txt */ Object.defineProperty(t,"__esModule",{value:!0});t.NodeVisitor=class{constructor(){this.path_=[]}get path(){return this.path_}visit(e){let t;return this[e.type]&&(this.path_.push(e),t=this[e.type](e),this.path_.pop()),t}}}));v(w);w.NodeVisitor;var k=g((function(e,t){var r; /** * @license * Copyright (c) 2016 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt The complete set of authors may be found * at http://polymer.github.io/AUTHORS.txt The complete set of contributors may * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by * Google as part of the polymer project is also subject to an additional IP * rights grant found at http://polymer.github.io/PATENTS.txt */ Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.none=0]="none",e[e.whitespace=Math.pow(2,0)]="whitespace",e[e.string=Math.pow(2,1)]="string",e[e.comment=Math.pow(2,2)]="comment",e[e.word=Math.pow(2,3)]="word",e[e.boundary=Math.pow(2,4)]="boundary",e[e.propertyBoundary=Math.pow(2,5)]="propertyBoundary",e[e.openParenthesis=Math.pow(2,6)|e.boundary]="openParenthesis",e[e.closeParenthesis=Math.pow(2,7)|e.boundary]="closeParenthesis",e[e.at=Math.pow(2,8)|e.boundary]="at",e[e.openBrace=Math.pow(2,9)|e.boundary]="openBrace",e[e.closeBrace=Math.pow(2,10)|e.propertyBoundary|e.boundary]="closeBrace",e[e.semicolon=Math.pow(2,11)|e.propertyBoundary|e.boundary]="semicolon",e[e.colon=Math.pow(2,12)|e.boundary|e.word]="colon",e[e.hyphen=Math.pow(2,13)]="hyphen",e[e.underscore=Math.pow(2,14)]="underscore"}(r=t.TokenType||(t.TokenType={}));class n{constructor(e,t,r){this.type=e,this.start=t,this.end=r,this.previous=null,this.next=null}is(e){return(this.type&e)===e}}n.type=r,t.Token=n;const o={"(":n.type.openParenthesis,")":n.type.closeParenthesis,":":n.type.colon,"@":n.type.at,"{":n.type.openBrace,"}":n.type.closeBrace,";":n.type.semicolon,"-":n.type.hyphen,_:n.type.underscore};t.boundaryTokenTypes=o}));v(k);k.TokenType,k.Token,k.boundaryTokenTypes;var x=g((function(e,t){ /** * @license * Copyright (c) 2016 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt The complete set of authors may be found * at http://polymer.github.io/AUTHORS.txt The complete set of contributors may * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by * Google as part of the polymer project is also subject to an additional IP * rights grant found at http://polymer.github.io/PATENTS.txt */ Object.defineProperty(t,"__esModule",{value:!0});t.Tokenizer=class{constructor(e){this.cursorToken_=new k.Token(k.Token.type.none,0,0),this.currentToken_=null,this.cssText=e}get offset(){return this.cursorToken_.end}get currentToken(){return null==this.currentToken_&&(this.currentToken_=this.getNextToken_()),this.currentToken_}advance(){let e;return null!=this.currentToken_?(e=this.currentToken_,this.currentToken_=null):e=this.getNextToken_(),e}slice(e,t){const{start:r,end:n}=this.getRange(e,t);return this.cssText.substring(r,n)}getRange(e,t){return{start:e.start,end:(t||e).end}}trimRange({start:e,end:t}){for(;e<=t&&/\s/.test(this.cssText.charAt(e));)e++;for(;e<=t&&t>0&&/\s/.test(this.cssText.charAt(t-1));)t--;return{start:e,end:t}}flush(){const e=[];for(;this.currentToken;)e.push(this.advance());return e}getNextToken_(){const e=this.cssText[this.offset];let t;return this.currentToken_=null,this.offset>=this.cssText.length?null:(t=_.matcher.whitespace.test(e)?this.tokenizeWhitespace(this.offset):_.matcher.stringBoundary.test(e)?this.tokenizeString(this.offset):"/"===e&&"*"===this.cssText[this.offset+1]?this.tokenizeComment(this.offset):_.matcher.boundary.test(e)?this.tokenizeBoundary(this.offset):this.tokenizeWord(this.offset),t.previous=this.cursorToken_,this.cursorToken_.next=t,this.cursorToken_=t,t)}tokenizeString(e){const t=this.cssText[e];let r=!1;const n=e;let o;for(;o=this.cssText[++e];)if(r)r=!1;else{if(o===t){++e;break}"\\"===o&&(r=!0)}return new k.Token(k.Token.type.string,n,e)}tokenizeWord(e){const t=e;let r;for(;(r=this.cssText[e])&&!_.matcher.boundary.test(r);)e++;return new k.Token(k.Token.type.word,t,e)}tokenizeWhitespace(e){const t=e;_.matcher.whitespaceGreedy.lastIndex=e;const r=_.matcher.whitespaceGreedy.exec(this.cssText);return null!=r&&r.index===e&&(e=_.matcher.whitespaceGreedy.lastIndex),new k.Token(k.Token.type.whitespace,t,e)}tokenizeComment(e){const t=e;return _.matcher.commentGreedy.lastIndex=e,e=null==_.matcher.commentGreedy.exec(this.cssText)?this.cssText.length:_.matcher.commentGreedy.lastIndex,new k.Token(k.Token.type.comment,t,e)}tokenizeBoundary(e){const t=k.boundaryTokenTypes[this.cssText[e]]||k.Token.type.boundary;return new k.Token(t,e,e+1)}}}));v(x);x.Tokenizer;var j=g((function(e,t){ /** * @license * Copyright (c) 2016 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt The complete set of authors may be found * at http://polymer.github.io/AUTHORS.txt The complete set of contributors may * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by * Google as part of the polymer project is also subject to an additional IP * rights grant found at http://polymer.github.io/PATENTS.txt */ Object.defineProperty(t,"__esModule",{value:!0});t.Parser=class{constructor(e=new O.NodeFactory){this.nodeFactory=e}parse(e){return this.parseStylesheet(new x.Tokenizer(e))}parseStylesheet(e){return this.nodeFactory.stylesheet(this.parseRules(e),{start:0,end:e.cssText.length})}parseRules(e){const t=[];for(;e.currentToken;){const r=this.parseRule(e);r&&t.push(r)}return t}parseRule(e){const t=e.currentToken;return null===t?null:t.is(k.Token.type.whitespace)?(e.advance(),null):t.is(k.Token.type.comment)?this.parseComment(e):t.is(k.Token.type.word)?this.parseDeclarationOrRuleset(e):t.is(k.Token.type.propertyBoundary)?this.parseUnknown(e):t.is(k.Token.type.at)?this.parseAtRule(e):this.parseUnknown(e)}parseComment(e){const t=e.advance();return null===t?null:this.nodeFactory.comment(e.slice(t),{start:t.start,end:t.end})}parseUnknown(e){const t=e.advance();let r;if(null===t)return null;for(;e.currentToken&&e.currentToken.is(k.Token.type.boundary);)r=e.advance();return this.nodeFactory.discarded(e.slice(t,r),e.getRange(t,r))}parseAtRule(e){let t=void 0,r=void 0,n=void 0,o=void 0,i=void 0;if(!e.currentToken)return null;const a=e.currentToken.start;for(;e.currentToken;)if(e.currentToken.is(k.Token.type.whitespace))e.advance();else if(!t&&e.currentToken.is(k.Token.type.at)){e.advance();const n=e.currentToken;let o;for(;e.currentToken&&e.currentToken.is(k.Token.type.word);)o=e.advance();r=e.getRange(n,o),t=e.cssText.slice(r.start,r.end)}else{if(e.currentToken.is(k.Token.type.openBrace)){n=this.parseRulelist(e);break}if(e.currentToken.is(k.Token.type.propertyBoundary)){e.advance();break}null==o?o=e.advance():i=e.advance()}if(void 0===t||void 0===r)return null;let s=void 0,c="";o&&(s=e.trimRange(e.getRange(o,i)),c=e.cssText.slice(s.start,s.end));const l=e.currentToken?e.currentToken.previous.end:e.cssText.length;return this.nodeFactory.atRule(t,c,n,r,s,{start:a,end:l})}parseRulelist(e){const t=[],r=e.currentToken.start;let n;for(e.advance();e.currentToken;){if(e.currentToken.is(k.Token.type.closeBrace)){n=e.currentToken,e.advance();break}{const r=this.parseRule(e);r&&t.push(r)}}const o=n?n.end:e.cssText.length;return this.nodeFactory.rulelist(t,{start:r,end:o})}parseDeclarationOrRuleset(e){let t=null,r=null,n=null;for(;e.currentToken;)if(e.currentToken.is(k.Token.type.whitespace))e.advance();else if(e.currentToken.is(k.Token.type.openParenthesis))for(;e.currentToken&&!e.currentToken.is(k.Token.type.closeParenthesis);)e.advance();else{if(e.currentToken.is(k.Token.type.openBrace)||e.currentToken.is(k.Token.type.propertyBoundary))break;e.currentToken.is(k.Token.type.colon)&&(n=e.currentToken),null===t?(t=e.advance(),r=t):r=e.advance()}if(null===e.currentToken)return null;if(e.currentToken.is(k.Token.type.propertyBoundary)){const o=e.getRange(t,n?n.previous:r),i=e.cssText.slice(o.start,o.end);let a=void 0;if(n&&n.next){const t=e.getRange(n.next,r),o=e.trimRange(t),i=e.cssText.slice(o.start,o.end);a=this.nodeFactory.expression(i,o)}e.currentToken.is(k.Token.type.semicolon)&&e.advance();const s=e.trimRange(e.getRange(t,e.currentToken&&e.currentToken.previous||r));return this.nodeFactory.declaration(i,a,o,s)}if(n&&n===r){const n=this.parseRulelist(e);e.currentToken.is(k.Token.type.semicolon)&&e.advance();const o=e.getRange(t,r.previous),i=e.cssText.slice(o.start,o.end),a=e.trimRange(e.getRange(t,e.currentToken&&e.currentToken.previous||r));return this.nodeFactory.declaration(i,n,o,a)}{const n=e.getRange(t,r),o=e.cssText.slice(n.start,n.end),i=this.parseRulelist(e),a=t.start;let s;return s=e.currentToken?e.currentToken.previous?e.currentToken.previous.end:t.end:e.cssText.length,this.nodeFactory.ruleset(o,i,n,{start:a,end:s})}}}}));v(j);j.Parser;var S=g((function(e,t){ /** * @license * Copyright (c) 2016 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt The complete set of authors may be found * at http://polymer.github.io/AUTHORS.txt The complete set of contributors may * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by * Google as part of the polymer project is also subject to an additional IP * rights grant found at http://polymer.github.io/PATENTS.txt */ Object.defineProperty(t,"__esModule",{value:!0});class r extends w.NodeVisitor{stringify(e){return this.visit(e)||""}[_.nodeType.stylesheet](e){let t="";for(let r=0;r-1})),r=document.querySelector(".edit-post-visual-editor__content-area iframe");return r&&(t=[].concat(m(t),m(m(r.contentDocument.querySelectorAll("style")).filter((function(e){return e.innerText.indexOf("narrow-container-max-width")>-1}))))),R=t.map((function(t){return{style:t,ast:e.parse(t.innerText.replace(new RegExp("\n","g"),""))}}))},M=function(e){R=e;var t=new E;R.map((function(e){e.style.innerText=t.stringify(e.ast)}))},z=function(){R&&M(R.map((function(e){if(e.style.id)return e;var t=m(document.querySelectorAll("style")).filter((function(e){return e.innerText.indexOf("narrow-container-max-width")>-1})),r=document.querySelector(".edit-post-visual-editor__content-area iframe");return r&&(t=[].concat(m(t),m(m(r.contentDocument.querySelectorAll("style")).filter((function(e){return e.innerText.indexOf("narrow-container-max-width")>-1}))))),e.style=t.find((function(e){return!e.id})),b({},e)})))},L=function(e){if([e.top,e.right,e.bottom,e.left].reduce((function(e,t){return!!e&&!("auto"!==t&&t&&t.toString().match(/\d/g))}),!0))return"CT_CSS_SKIP_RULE";var t=["auto"!==e.top&&e.top.toString().match(/\d/g)?e.top:0,"auto"!==e.right&&e.right.toString().match(/\d/g)?e.right:0,"auto"!==e.bottom&&e.bottom.toString().match(/\d/g)?e.bottom:0,"auto"!==e.left&&e.left.toString().match(/\d/g)?e.left:0];return t[0]===t[1]&&t[0]===t[2]&&t[0]===t[3]?t[0]:t[0]===t[2]&&t[1]===t[3]?"".concat(t[0]," ").concat(t[3]):t.join(" ")},I=function(e,t){var r=t.forcedOutput,n=void 0!==r&&r;if("CT_CSS_SKIP_RULE"===e)return"CT_CSS_SKIP_RULE";if("none"===e)return"none";if(!e.enable)return n?"none":"CT_CSS_SKIP_RULE";if(0===parseFloat(e.blur)&&0===parseFloat(e.spread)&&0===parseFloat(e.v_offset)&&0===parseFloat(e.h_offset))return n?"none":"CT_CSS_SKIP_RULE";var o=[];return e.inset&&o.push("inset"),o.push("".concat(e.h_offset,"px")),o.push("".concat(e.v_offset,"px")),0!==parseFloat(e.blur)&&(o.push("".concat(e.blur,"px")),0!==parseFloat(e.spread)&&o.push("".concat(e.spread,"px"))),0===parseFloat(e.blur)&&0!==parseFloat(e.spread)&&(o.push("".concat(e.blur,"px")),o.push("".concat(e.spread,"px"))),o.push(e.color.color),o.join(" ")},V=function(e){return e&&"[object Function]"==={}.toString.call(e)},A=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e=b({variableDescriptor:{},value:"",ast:{}},e),r=t.variableDescriptor,n=t.value,o=t.ast,i=r.selector||":root",a="--";"property"===r.variableType&&(a="");var s="".concat(a).concat(V(r.variable)?r.variable():r.variable),c=o.rules.find((function(e){return e.selector===i})),l={type:"ruleset",selector:":root",rulelist:{type:"rulelist",rules:[{type:"declaration",name:"--container-max-width",value:{type:"expression",text:"1290px"}}]}},u=JSON.parse(JSON.stringify(o));return c&&(u.rules=u.rules.map((function(e){if(e.selector!==i)return e;if(n.indexOf("CT_CSS_SKIP_RULE")>-1||n.indexOf(s)>-1)return b({},e,{rulelist:b({},e.rulelist,{rules:e.rulelist.rules.filter((function(e){return e.name!==s}))})});var t=e.rulelist.rules.find((function(e){return e.name===s}));return b({},e,t?{rulelist:b({},e.rulelist,{rules:e.rulelist.rules.map((function(e){return e.name===s?b({},e,{value:b({},e.value,{text:n})}):e}))})}:{rulelist:b({},e.rulelist,{rules:[].concat(m(e.rulelist.rules),[b({},l.rulelist.rules[0],{name:s,value:b({},l.rulelist.rules[0].value,{text:n})})])})})}))),c||-1!==n.indexOf("CT_CSS_SKIP_RULE")||(u.rules=[].concat(m(u.rules),[b({},l,{selector:i,rulelist:b({},l.rulelist,{rules:[b({},l.rulelist.rules[0],{name:s,value:b({},l.rulelist.rules[0].value,{text:n})})]})})])),u},F=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(e=b({variableDescriptor:{},value:{},ast:{}},e)).value;return(e.variableDescriptor.type||"").indexOf("color")>-1&&"CT_CSS_SKIP_RULE"!==e.value&&(t=e.value["color"===e.variableDescriptor.type?"default":e.variableDescriptor.type.split(":")[1]].color),"border"===(e.variableDescriptor.type||"")&&(t=e.value&&"none"!==e.value.style?"".concat(e.value.width,"px ").concat(e.value.style," ").concat(e.value.color.color):"none",e.variableDescriptor.skip_none&&"none"===t&&(t="CT_CSS_SKIP_RULE")),"spacing"===(e.variableDescriptor.type||"")&&(t=L(e.value)),"box-shadow"===(e.variableDescriptor.type||"")&&(t=I(e.value,e.variableDescriptor)),A({variableDescriptor:e.variableDescriptor,value:"".concat(t).concat(e.variableDescriptor.unit||"").concat(e.variableDescriptor.important?" !important":""),ast:e.ast})},N=r(2),U=r(6);function B(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function K(e){for(var t=1;t{var t=e.toString(16);return 1==t.length?"0"+t:t},H=e=>{let{responsive:t,value:r,cb:n}=e;return r=Object(U.maybePromoteScalarValueIntoResponsive)(r,t),t?{desktop:n(r.desktop),tablet:n(r.tablet),mobile:n(r.mobile)}:n(r)},q=e=>{let{id:t,selector:r,responsive:n=!1,valueExtractor:o=(e=>e),addToDescriptors:i={},conditional_var:a=!1,forced_background_image:s=!1}=e;return{[t]:[K({variable:"background-color",variableType:"property",selector:r,responsive:n,extractValue:e=>H({value:o(e),responsive:n,cb:e=>a?`var(${a}, ${e.backgroundColor.default.color})`:e?e.backgroundColor.default.color:"CT_CSS_SKIP_RULE"})},i),K({variable:"background-image",variableType:"property",selector:r,responsive:n,extractValue:e=>H({value:o(e),responsive:n,cb:function(){let{background_type:e,gradient:t,background_image:r,background_pattern:n,patternColor:o,backgroundColor:i,overlayColor:a}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if("color"===e)return s?"none":"CT_CSS_SKIP_RULE";const c=(e,t,r)=>(r+"").split(e).join(t);if("image"===e)return r.url?`${"CT_CSS_SKIP_RULE"!==a.default.color?`linear-gradient(${a.default.color}, ${a.default.color}), `:""}url(${r.url})`:"CT_CSS_SKIP_RULE";if("gradient"===e)return t;let l=1,u=o?o.default.color:"";if(u.indexOf("paletteColor1")>-1&&(u=getComputedStyle(document.body).getPropertyValue("--paletteColor1")),u.indexOf("paletteColor2")>-1&&(u=getComputedStyle(document.body).getPropertyValue("--paletteColor2")),u.indexOf("paletteColor3")>-1&&(u=getComputedStyle(document.body).getPropertyValue("--paletteColor3")),u.indexOf("paletteColor4")>-1&&(u=getComputedStyle(document.body).getPropertyValue("--paletteColor4")),u.indexOf("paletteColor5")>-1&&(u=getComputedStyle(document.body).getPropertyValue("--paletteColor5")),u.indexOf("rgb")>-1){const e=c("rgb(","",c(")","",c("rgba(","",c(" ","",u)))).split(",");u=`#${G(parseInt(e[0],10))}${G(parseInt(e[1],10))}${G(parseInt(e[2],10))}`,e.length>3&&(l=e[3])}return u=c("#","",u),`url("${c("OPACITY",l,c("COLOR",u,ct_localizations.customizer_sync.svg_patterns[n]||ct_localizations.customizer_sync.svg_patterns["type-1"]))}")`}})},i),K(K({variable:"background-position",variableType:"property",selector:r,responsive:n},i),{},{extractValue:e=>H({value:o(e),responsive:n,cb:function(){let{background_type:e,background_image:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"image"!==e?"CT_CSS_SKIP_RULE":`${Math.round(100*parseFloat(t.x||0))}% ${Math.round(100*parseFloat(t.y||0))}%`}})}),K(K({variable:"background-size",variableType:"property",selector:r,responsive:n},i),{},{extractValue:e=>H({value:o(e),responsive:n,cb:function(){let{background_type:e,background_size:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"image"!==e?"CT_CSS_SKIP_RULE":t}})}),K(K({variable:"background-attachment",variableType:"property",selector:r,responsive:n},i),{},{extractValue:e=>H({value:o(e),responsive:n,cb:function(){let{background_type:e,background_attachment:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"image"!==e?"CT_CSS_SKIP_RULE":t}})}),K(K({selector:r,variable:"background-repeat",variableType:"property",responsive:n},i),{},{extractValue:e=>H({value:o(e),responsive:n,cb:function(){let{background_type:e,background_repeat:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"image"!==e||"repeat"===t?"CT_CSS_SKIP_RULE":t}})})]}};function J(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Q(e){for(var t=1;te.reduce((e,r)=>Q(Q({},e),{},{[r]:t}),{});function Y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function X(e){for(var t=1;t div",responsive:!0,addToDescriptors:{fullValue:!0,important:!0},valueExtractor:e=>{let{background:t}=e;return!t.desktop&&!te&&"color"===t.background_type&&t.backgroundColor.default.color&&t.backgroundColor.default.color.indexOf("CT_CSS_SKIP_RULE")>-1?ct_editor_localizations.default_background:t}})),Z(["template_subtype","template_editor_width_source","template_editor_width"],[{selector:".editor-styles-wrapper",variable:"block-max-width",extractValue:e=>{let{template_subtype:t="card",template_editor_width_source:r="small",template_editor_width:n=1290}=e;return"card"!==t?"CT_CSS_SKIP_RULE":"small"===r?500:"medium"===r?900:n},fullValue:!0,unit:"px",important:!0}])),Z(["content_style_source","content_style","content_background","content_boxed_shadow","boxed_content_spacing","content_boxed_radius",...te?["has_content_block_structure"]:[]],[{selector:".editor-styles-wrapper",variable:"has-boxed",responsive:!0,extractValue:e=>{let{content_style_source:t="inherit",has_content_block_structure:r="yes",content_style:n="wide"}=e;return te||"inherit"!==t||(n=ct_editor_localizations.default_content_style),n=Object(U.maybePromoteScalarValueIntoResponsive)(n),te&&"yes"!==r&&(n={desktop:"wide",tablet:"wide",mobile:"wide"}),{desktop:"boxed"===n.desktop?"var(--true)":"var(--false)",tablet:"boxed"===n.tablet?"var(--true)":"var(--false)",mobile:"boxed"===n.mobile?"var(--true)":"var(--false)"}},fullValue:!0,unit:""},{selector:".editor-styles-wrapper",variable:"has-wide",responsive:!0,extractValue:e=>{let{has_content_block_structure:t="yes",content_style_source:r="inherit",content_style:n="wide"}=e;return te||"inherit"!==r||(n=ct_editor_localizations.default_content_style),n=Object(U.maybePromoteScalarValueIntoResponsive)(n),te&&"yes"!==t&&(n={desktop:"wide",tablet:"wide",mobile:"wide"}),{desktop:"wide"===n.desktop?"var(--true)":"var(--false)",tablet:"wide"===n.tablet?"var(--true)":"var(--false)",mobile:"wide"===n.mobile?"var(--true)":"var(--false)"}},fullValue:!0,unit:""},...q({id:"background",selector:".editor-styles-wrapper",responsive:!0,conditional_var:"--has-boxed",addToDescriptors:{fullValue:!0},valueExtractor:e=>{let{has_content_block_structure:t="yes",content_style_source:r="inherit",content_background:n}=e;return te||"inherit"!==r||(n=ct_editor_localizations.default_content_background),te&&"yes"!==t&&(n=JSON.parse(JSON.stringify(Object(U.maybePromoteScalarValueIntoResponsive)(n))),n.desktop.background_type="color",n.desktop.backgroundColor.default.color="CT_CSS_SKIP_RULE",n.tablet.background_type="color",n.tablet.backgroundColor.default.color="CT_CSS_SKIP_RULE",n.mobile.background_type="color",n.mobile.backgroundColor.default.color="CT_CSS_SKIP_RULE"),n}}).background,{selector:".editor-styles-wrapper",type:"spacing",variable:"boxed-content-spacing",responsive:!0,unit:"",fullValue:!0,extractValue:e=>{let{content_style_source:t="inherit",boxed_content_spacing:r,has_content_block_structure:n="yes"}=e;return te||"inherit"!==t||(r=ct_editor_localizations.default_boxed_content_spacing),te&&"yes"!==n?"CT_CSS_SKIP_RULE":r}},{selector:".editor-styles-wrapper",type:"spacing",variable:"border-radius",responsive:!0,fullValue:!0,extractValue:e=>{let{content_style_source:t="inherit",content_boxed_radius:r,has_content_block_structure:n="yes"}=e;return te||"inherit"!==t||(r=ct_editor_localizations.default_content_boxed_radius),te&&"yes"!==n?"CT_CSS_SKIP_RULE":r}},{selector:".editor-styles-wrapper",type:"box-shadow",variable:"box-shadow",responsive:!0,fullValue:!0,extractValue:e=>{let{content_style_source:t="inherit",content_boxed_shadow:r,has_content_block_structure:n="yes"}=e;return te||"inherit"!==t||(r=ct_editor_localizations.default_content_boxed_shadow),te&&"yes"!==n?"CT_CSS_SKIP_RULE":r}}]));function ne(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function oe(e){for(var t=1;t{let e="",t=document.querySelector("#ct-main-styles-inline-css");if(t&&t.innerText.indexOf("googleapis.com")>-1){let r=t.innerText.split("display=swap");e=r[0].trim().replace("@import url('","")+"display=swap"}[...document.querySelectorAll("style")].map(e=>{e.innerText&&-1!==e.innerText.indexOf("narrow-container-max-width")&&(e.innerText=e.innerText.replace(/\.editor-styles-wrapper \.edit-post-visual-editor__content-area \> div/g,".edit-post-visual-editor__content-area > div"),e.innerText=e.innerText.replace(".editor-styles-wrapperroot",":root"))});const r=document.querySelector(".edit-post-visual-editor__content-area iframe");r&&[...r.contentDocument.querySelectorAll("style")].map(t=>{-1!==t.innerText.indexOf("narrow-container-max-width")&&(e&&-1===t.innerHTML.indexOf(e)&&(t.innerHTML=`@import url('${e}');${t.innerHTML}`),t.innerHTML=t.innerHTML.replace(/\.editor-styles-wrapper \.edit-post-visual-editor__content-area \> div/g,":root"),t.innerHTML=t.innerHTML.replace(/\.edit-post-visual-editor__content-area \> div/g,":root"),t.innerHTML=t.innerHTML.replace(".editor-styles-wrapperroot",":root"))})},le=()=>{setTimeout(()=>{const e=Object(a.select)("core/edit-post").isFeatureActive("themeStyles");document.body.classList.remove("ct-theme-editor-styles"),e&&document.body.classList.add("ct-theme-editor-styles")})};ae&&(setTimeout(()=>{ce(),le()},1e3),wp.data.dispatch("core/edit-post").__experimentalSetPreviewDeviceType=function(){ae(...arguments),setTimeout(()=>{z(),ce()})},wp.data.dispatch("core/edit-post").toggleFeature=function(){se(...arguments),le()});const ue=wp.data.subscribe(()=>{const e=Object(a.select)("core/edit-post").isFeatureActive("themeStyles");document.body.classList.remove("ct-theme-editor-styles"),e&&document.body.classList.add("ct-theme-editor-styles"),ue()}),pe=e=>{let{atts:t}=e,r=t.content_block_structure||"type-4";document.body.classList.remove("ct-structure-narrow","ct-structure-normal"),t.has_content_block_structure&&"yes"!==t.has_content_block_structure?document.body.classList.add("ct-structure-normal"):document.body.classList.add("ct-structure-"+("type-4"===r?"normal":"narrow"))},de=(e,t)=>{"page_structure_type"!==e&&"has_content_block_structure"!==e&&"content_block_structure"!==e||function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(e=oe(oe({},Object(a.select)("core/editor").getEditedPostAttribute("blocksy_meta")||{}),e),document.body.classList.contains("post-type-ct_content_block"))return void pe({atts:e});let t=e.page_structure_type||"default";"default"===t&&(t=ct_editor_localizations.default_page_structure),document.body.classList.remove("ct-structure-narrow","ct-structure-normal"),document.body.classList.add("ct-structure-"+("type-4"===t?"normal":"narrow"))}({[e]:t});const r=oe(oe({},Object(N.getValueFromInput)(ct_editor_localizations.post_options,wp.data.select("core/editor").getEditedPostAttribute("blocksy_meta")||{})),{},{[e]:t});re[e]&&(!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(e=b({variableDescriptor:{},value:"",fullValue:{},tabletMQ:"(max-width: 999.98px)",mobileMQ:"(max-width: 689.98px)"},e)).variableDescriptor;V(t)&&(t=t(e.value)),Array.isArray(t)||(t=[t]),M(D().map((function(r){return b({},r,{ast:t.reduce((function(t,r){var n=r.fullValue?e.fullValue:e.value;if(n=r.extractValue?r.extractValue(n):n,r.whenDone&&r.whenDone(n,e.value),n=h(n,!!r.responsive),!r.responsive)return F({variableDescriptor:r,value:n,ast:t});var o=F({variableDescriptor:r,value:n.desktop,ast:t});o.rules.find((function(t){var r=t.type,n=t.parameters;return"atRule"===r&&n===e.tabletMQ}))||(o=b({},o,{rules:[].concat(m(o.rules),[{type:"atRule",name:"media",parameters:e.tabletMQ,rulelist:{type:"rulelist",rules:[]}}])}));var i=o=b({},o,{rules:o.rules.map((function(t){return"atRule"!==t.type||t.parameters!==e.tabletMQ?t:b({},t,{rulelist:F({variableDescriptor:b({},r,{selector:".edit-post-visual-editor__content-area > div"===r.selector?":root":r.selector}),value:n.tablet,ast:t.rulelist})})}))});return i.rules.find((function(t){var r=t.type,n=t.parameters;return"atRule"===r&&n===e.mobileMQ}))||(i=b({},i,{rules:[].concat(m(i.rules),[{type:"atRule",name:"media",parameters:e.mobileMQ,rulelist:{type:"rulelist",rules:[]}}])})),i=b({},i,{rules:i.rules.map((function(t){return"atRule"!==t.type||t.parameters!==e.mobileMQ?t:b({},t,{rulelist:F({variableDescriptor:b({},r,{selector:".edit-post-visual-editor__content-area > div"===r.selector?":root":r.selector}),value:n.mobile,ast:t.rulelist})})}))})}),r.ast)})})))}({variableDescriptor:Array.isArray(re[e])?re[e]:[re[e]],value:t,fullValue:r,tabletMQ:"(max-width: 800px)",mobileMQ:"(max-width: 370px)"}),ce())};var fe=r(1),ye=r(4);function be(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function me(e){for(var t=1;t{let{name:r}=t;return{sidebarName:`${e.name}/${r}`}}),Object(a.withSelect)((e,t)=>{let{sidebarName:r}=t;const n=e("core/editor").getEditedPostAttribute("blocksy_meta"),{getActiveGeneralSidebarName:o,isPluginItemPinned:i}=e("core/edit-post");return{isActive:o()===r,isPinned:i(r),value:Array.isArray(n)?{}:n||{},options:ct_editor_localizations.post_options}}),Object(a.withDispatch)((e,t)=>{let{sidebarName:r}=t;const{closeGeneralSidebar:n,openGeneralSidebar:o,togglePinnedPluginItem:i}=e("core/edit-post");return{closeGeneralSidebar:n,togglePin:()=>{i(r)},onChange:t=>{e("core/editor").editPost({blocksy_meta:t})}}}))(e=>{let{name:t,value:r,options:o,onChange:a,isActive:s,isPinnable:l=!0,isPinned:p,togglePin:d,toggleSidebar:f,closeGeneralSidebar:y}=e;const b=Object(n.useRef)(),m=Object(n.useRef)(),[h,v]=Object(n.useState)(null);Object(n.useEffect)(()=>{document.body.classList[s?"add":"remove"]("blocksy-sidebar-active")},[s]);const g=e=>{let{id:t,value:n}=e;const i=me(me({},h||Object(N.getValueFromInput)(o,r||{})),{},{[t]:n});de(t,n),a(i),v(i)};return Object(n.useEffect)(()=>(u.a.on("ct:metabox:options:trigger-change",g),()=>{u.a.off("ct:metabox:options:trigger-change",g)}),[]),Object(n.createElement)(n.Fragment,null,Object(n.createElement)(i.PluginSidebarMoreMenuItem,{target:"blocksy",icon:"admin-customizer"},Object(fe.sprintf)(Object(fe.__)("%s Page Settings","blocksy"),ct_localizations.product_name)),Object(n.createElement)(i.PluginSidebar,{name:t,icon:Object(n.createElement)("span",{style:{display:"flex"},dangerouslySetInnerHTML:{__html:ct_editor_localizations.options_panel_svg}}),className:"ct-components-panel",title:Object(fe.sprintf)(Object(fe.__)("%s Page Settings","blocksy"),ct_localizations.product_name)},Object(n.createElement)("div",{id:"ct-page-options",ref:m},Object(n.createElement)("div",{className:"ct-options-container",ref:b},Object(n.createElement)(N.DeviceManagerProvider,null,Object(n.createElement)(N.PanelLevel,{containerRef:b,parentContainerRef:m,useRefsAsWrappers:!0},Object(n.createElement)("div",{className:"ct-panel-options-header components-panel__header edit-post-sidebar-header"},Object(n.createElement)("strong",null,Object(fe.sprintf)(Object(fe.__)("%s Page Settings","blocksy"),ct_localizations.product_name)),l&&Object(n.createElement)(c.Button,{icon:p?_e:ge,label:p?Object(fe.__)("Unpin from toolbar","blocksy"):Object(fe.__)("Pin to toolbar","blocksy"),onClick:d,isPressed:p,"aria-expanded":p}),Object(n.createElement)(c.IconButton,{onClick:y,icon:ve,label:Object(fe.__)("Close plugin","blocksy")})),Object(n.createElement)(N.OptionsPanel,{onChange:(e,t)=>{const n=me(me({},h||Object(N.getValueFromInput)(o,r||{})),{},{[e]:t});de(e,t),a(n),v(n)},value:h||Object(N.getValueFromInput)(o,r||{}),options:o})))))))});ct_editor_localizations.post_options&&Object(o.registerPlugin)("blocksy",{render:()=>Object(n.createElement)(Te,{name:"blocksy"})})}]);