6 lines
22 KiB
JavaScript
6 lines
22 KiB
JavaScript
!function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},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 o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},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=91)}({1:function(e,t,n){var o;
|
||
/*!
|
||
Copyright (c) 2018 Jed Watson.
|
||
Licensed under the MIT License (MIT), see
|
||
http://jedwatson.github.io/classnames
|
||
*/!function(){"use strict";var n={}.hasOwnProperty;function r(){for(var e=[],t=0;t<arguments.length;t++){var o=arguments[t];if(o){var i=typeof o;if("string"===i||"number"===i)e.push(o);else if(Array.isArray(o)){if(o.length){var c=r.apply(null,o);c&&e.push(c)}}else if("object"===i)if(o.toString===Object.prototype.toString)for(var a in o)n.call(o,a)&&o[a]&&e.push(a);else e.push(o.toString())}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(o=function(){return r}.apply(t,[]))||(e.exports=o)}()},124:function(e,t,n){"use strict";n.r(t);var o=n(1),r=n.n(o),i=wp.components,c=i.Path,a=i.SVG,s=wp.element.createElement(a,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},wp.element.createElement(c,{d:"M3 13h8v2H3zm0 4h8v2H3zm0-8h8v2H3zm0-4h8v2H3zm16 2v10h-4V7h4m2-2h-8v14h8V5z"})),l=n(19),u=wp.components,p=u.Path,f=u.Rect,m=u.SVG,d={full:wp.element.createElement(m,{xmlns:"http://www.w3.org/2000/svg",width:"50",height:"29",viewBox:"0 0 50 29",fill:"none"},wp.element.createElement(f,{x:"3",y:"3",width:"44",height:"23",rx:"2",stroke:"black",strokeWidth:"2"})),"with-sidebar":wp.element.createElement(m,{xmlns:"http://www.w3.org/2000/svg",width:"50",height:"29",viewBox:"0 0 50 29",fill:"none"},wp.element.createElement(f,{x:"3",y:"3",width:"44",height:"23",rx:"2",stroke:"black",strokeWidth:"2"}),wp.element.createElement(p,{d:"M33 3.5V26",stroke:"black",strokeWidth:"2"})),"with-sidebar-left":wp.element.createElement(m,{xmlns:"http://www.w3.org/2000/svg",width:"50",height:"29",viewBox:"0 0 50 29",fill:"none"},wp.element.createElement(f,{x:"3",y:"3",width:"44",height:"23",rx:"2",stroke:"black",strokeWidth:"2"}),wp.element.createElement(p,{d:"M17 3V25.5",stroke:"black",strokeWidth:"2"}))};function v(e){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function w(e,t){return(w=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=S(e);if(t){var r=S(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return k(this,n)}}function k(e,t){return!t||"object"!==v(t)&&"function"!=typeof t?x(e):t}function x(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function S(e){return(S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var E=wp.i18n.__,O=wp.element,j=O.Component,R=O.Fragment,P=wp.components,C=P.BaseControl,_=P.PanelBody,B=P.Placeholder,L=P.RangeControl,T=P.SelectControl,M=P.ToggleControl,A=P.Notice,N=wp.blockEditor,U=N.InspectorControls,W=N.InnerBlocks,I=wp.blockEditor,z=I.BlockControls,D=I.BlockAlignmentToolbar,F=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&w(e,t)}(c,e);var t,n,o,i=g(c);function c(){var e;return h(this,c),(e=i.apply(this,arguments)).getLayoutTemplate=e.getLayoutTemplate.bind(x(e)),e.getLayoutSelector=e.getLayoutSelector.bind(x(e)),e}return t=c,(n=[{key:"getLayoutTemplate",value:function(){var e=[];switch(this.props.attributes.layout){case"full":e.push(["canvas/section-content"]);break;case"with-sidebar":e.push(["canvas/section-content"]),e.push(["canvas/section-sidebar"])}return e}},{key:"getLayoutSelector",value:function(){var e=this.props,t=e.setAttributes,n=e.attributes,o=n.layout,r=n.sidebarPosition,i="";switch(o){case"full":i="full";break;case"with-sidebar":i="with-sidebar".concat("left"===r?"-left":"")}return wp.element.createElement(l.a,{value:i,onChange:function(e){if("full"!==e||"with-sidebar"!==o&&"with-sidebar-left"!==o||window.confirm(E("When switching from a Sidebar layout to the Fullwidth layout all sidebar content will be removed. Are you sure you would like to switch the layout?")))switch(e){case"full":t({layout:"full"});break;case"with-sidebar":t({layout:"with-sidebar",sidebarPosition:"right"});break;case"with-sidebar-left":t({layout:"with-sidebar",sidebarPosition:"left"})}},items:[{content:d.full,value:"full",label:E("Fullwidth")},{content:d["with-sidebar"],value:"with-sidebar",label:E("Right Sidebar")},{content:d["with-sidebar-left"],value:"with-sidebar-left",label:E("Left Sidebar")}]})}},{key:"render",value:function(){var e,t=this.props,n=t.setAttributes,o=t.attributes,i=t.location,c=this.props.className,a=o.layout,l=o.layoutAlign,u=o.contentWidth,p=o.sidebarSticky,f=o.sidebarStickyMethod,m=o.sidebarPosition,d=o.textColor,v=o.backgroundColor,h=o.canvasClassName,y=wp.data.select("core/editor").getEditedPostAttribute("template");if(c=r()("cnvs-block-section",(b(e={},"cnvs-block-section-fullwidth","full"===a),b(e,"cnvs-block-section-layout-align-".concat(l),"full"===a&&l),b(e,"cnvs-block-section-sidebar-sticky-".concat(f),"with-sidebar"===a&&p),b(e,"cnvs-block-section-sidebar-position-".concat(m),"with-sidebar"===a&&m),b(e,"cnvs-block-section-with-text-color",d),b(e,"cnvs-block-section-with-background-color",v),e),h),"template-canvas-fullwidth.php"!==y)return wp.element.createElement(B,{icon:s,label:E("Section"),className:"cnvs-block-section-notice"},wp.element.createElement(A,{status:"warning",isDismissible:!1},E('To use this block, please select the page template - "Canvas Full Width".')));if("root"!==i)return wp.element.createElement(B,{icon:s,label:E("Section"),className:"cnvs-block-section-notice"},wp.element.createElement(A,{status:"warning",isDismissible:!1},E("Sections are supported on root level only. You’ve added the section inside another block and layout will most likely break. Please add the section block as a parent block instead.")));if(!a)return wp.element.createElement(B,{className:"canvas-component-custom-layouts-placeholder",icon:s,label:E("Section"),instructions:E("Select the section layout type.")},this.getLayoutSelector());var w={};return canvasBSLocalize.disableSectionResponsive||(w={maxWidth:(u||canvasBSLocalize.sectionResponsiveMaxWidth)+"px"}),wp.element.createElement(R,null,"full"===a?wp.element.createElement(z,{key:"controls"},wp.element.createElement(D,{value:l,onChange:function(e){n({layoutAlign:e}),window.dispatchEvent(new Event("resize"))},controls:["full"]})):"",wp.element.createElement(U,null,wp.element.createElement(_,{title:E("Layout")},wp.element.createElement(C,null,this.getLayoutSelector()),canvasBSLocalize.disableSectionResponsive||("full"!==a||l)&&"full"===a?"":wp.element.createElement(R,null,wp.element.createElement(L,{label:E("Content Width (px.)"),value:u||canvasBSLocalize.sectionResponsiveMaxWidth,min:320,max:2560,step:1,onChange:function(e){n({contentWidth:e}),window.dispatchEvent(new Event("resize"))}})),"with-sidebar"===a?wp.element.createElement(R,null,wp.element.createElement(M,{label:E("Sticky Sidebar"),checked:!!p,onChange:function(){n({sidebarSticky:!p})}}),p?wp.element.createElement(T,{label:E("Sticky Method"),value:f,onChange:function(e){n({sidebarStickyMethod:e})},options:[{label:E("Top Edge"),value:"top"},{label:E("Bottom Edge"),value:"bottom"},{label:E("Top Edge of Last Block"),value:"top-last-block"}]}):""):"")),wp.element.createElement("div",{className:c},wp.element.createElement("div",{className:"cnvs-block-section-inner",style:w},wp.element.createElement(W,{template:this.getLayoutTemplate(),templateLock:"all",allowedBlocks:["canvas/section-content","canvas/section-sidebar"]}))))}}])&&y(t.prototype,n),o&&y(t,o),c}(j);function H(e){return(H="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function V(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function G(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function $(e,t){return($=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function q(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=Y(e);if(t){var r=Y(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return J(this,n)}}function J(e,t){return!t||"object"!==H(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Y(e){return(Y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var K=wp.element.Component,Q=wp.blockEditor.InnerBlocks,X=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&$(e,t)}(i,e);var t,n,o,r=q(i);function i(){return V(this,i),r.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){return wp.element.createElement(Q.Content,null)}}])&&G(t.prototype,n),o&&G(t,o),i}(K),Z=wp.hooks.addFilter;Z("canvas.customBlock.editRender","canvas/section/editRender",(function(e,t){return"canvas/section"===t.name?wp.element.createElement(F,t):e})),Z("canvas.customBlock.registerData","canvas/section/registerData",(function(e){return"canvas/section"===e.name&&(e.save=X,e.getEditWrapperProps=function(e){var t={"data-align":"full"};return e.sidebarSticky&&(t["data-canvas-section-sticky"]=e.sidebarStickyMethod),t}),e}))},19:function(e,t,n){"use strict";n.d(t,"a",(function(){return b}));var o=n(1),r=n.n(o);n(46);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=p(e);if(t){var r=p(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return u(this,n)}}function u(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var f=wp.element.Component,m=wp.components,d=m.Button,v=m.Popover,b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(u,e);var t,n,o,i=l(u);function u(){var e;return c(this,u),(e=i.apply(this,arguments)).state={showPopover:!1},e}return t=u,(n=[{key:"render",value:function(){var e=this,t=this.props,n=t.className,o=t.value,i=this.props,c=i.items,a=void 0===c?[]:c,s=i.onChange;return n=r()("cnvs-component-image-selector",n),wp.element.createElement("div",{className:n},a&&a.length?a.map((function(t,n){var i=t.isDisabled,c=t.disabledNotice,a=r()("cnvs-component-image-selector-item",{"cnvs-component-image-selector-item-active":o===t.value,"cnvs-component-image-selector-item-disabled":i});return wp.element.createElement("div",{key:"cnvs-component-image-selector-item-".concat(t.value),className:a},wp.element.createElement(d,{onClick:function(){i?e.setState({showPopover:t.value}):s(t.value)}},t.content,e.state.showPopover===t.value&&c?wp.element.createElement(v,{className:"cnvs-component-image-selector-item-popover",focusOnMount:!1,onClickOutside:function(){e.setState({showPopover:!1})}},c):""),wp.element.createElement("span",null,t.label))})):"")}}])&&a(t.prototype,n),o&&a(t,o),u}(f)},2:function(e,t,n){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n=e[1]||"",o=e[3];if(!o)return n;if(t&&"function"==typeof btoa){var r=(c=o,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(c))))+" */"),i=o.sources.map((function(e){return"/*# sourceURL="+o.sourceRoot+e+" */"}));return[n].concat(i).concat([r]).join("\n")}var c;return[n].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n})).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var o={},r=0;r<this.length;r++){var i=this[r][0];null!=i&&(o[i]=!0)}for(r=0;r<e.length;r++){var c=e[r];null!=c[0]&&o[c[0]]||(n&&!c[2]?c[2]=n:n&&(c[2]="("+c[2]+") and ("+n+")"),t.push(c))}},t}},3:function(e,t,n){var o,r,i={},c=(o=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===r&&(r=o.apply(this,arguments)),r}),a=function(e,t){return t?t.querySelector(e):document.querySelector(e)},s=function(e){var t={};return function(e,n){if("function"==typeof e)return e();if(void 0===t[e]){var o=a.call(this,e,n);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(e){o=null}t[e]=o}return t[e]}}(),l=null,u=0,p=[],f=n(5);function m(e,t){for(var n=0;n<e.length;n++){var o=e[n],r=i[o.id];if(r){r.refs++;for(var c=0;c<r.parts.length;c++)r.parts[c](o.parts[c]);for(;c<o.parts.length;c++)r.parts.push(w(o.parts[c],t))}else{var a=[];for(c=0;c<o.parts.length;c++)a.push(w(o.parts[c],t));i[o.id]={id:o.id,refs:1,parts:a}}}}function d(e,t){for(var n=[],o={},r=0;r<e.length;r++){var i=e[r],c=t.base?i[0]+t.base:i[0],a={css:i[1],media:i[2],sourceMap:i[3]};o[c]?o[c].parts.push(a):n.push(o[c]={id:c,parts:[a]})}return n}function v(e,t){var n=s(e.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var o=p[p.length-1];if("top"===e.insertAt)o?o.nextSibling?n.insertBefore(t,o.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),p.push(t);else if("bottom"===e.insertAt)n.appendChild(t);else{if("object"!=typeof e.insertAt||!e.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var r=s(e.insertAt.before,n);n.insertBefore(t,r)}}function b(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e);var t=p.indexOf(e);t>=0&&p.splice(t,1)}function h(e){var t=document.createElement("style");if(void 0===e.attrs.type&&(e.attrs.type="text/css"),void 0===e.attrs.nonce){var o=function(){0;return n.nc}();o&&(e.attrs.nonce=o)}return y(t,e.attrs),v(e,t),t}function y(e,t){Object.keys(t).forEach((function(n){e.setAttribute(n,t[n])}))}function w(e,t){var n,o,r,i;if(t.transform&&e.css){if(!(i="function"==typeof t.transform?t.transform(e.css):t.transform.default(e.css)))return function(){};e.css=i}if(t.singleton){var c=u++;n=l||(l=h(t)),o=x.bind(null,n,c,!1),r=x.bind(null,n,c,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(e){var t=document.createElement("link");return void 0===e.attrs.type&&(e.attrs.type="text/css"),e.attrs.rel="stylesheet",y(t,e.attrs),v(e,t),t}(t),o=E.bind(null,n,t),r=function(){b(n),n.href&&URL.revokeObjectURL(n.href)}):(n=h(t),o=S.bind(null,n),r=function(){b(n)});return o(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;o(e=t)}else r()}}e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=c()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=d(e,t);return m(n,t),function(e){for(var o=[],r=0;r<n.length;r++){var c=n[r];(a=i[c.id]).refs--,o.push(a)}e&&m(d(e,t),t);for(r=0;r<o.length;r++){var a;if(0===(a=o[r]).refs){for(var s=0;s<a.parts.length;s++)a.parts[s]();delete i[a.id]}}}};var g,k=(g=[],function(e,t){return g[e]=t,g.filter(Boolean).join("\n")});function x(e,t,n,o){var r=n?"":o.css;if(e.styleSheet)e.styleSheet.cssText=k(t,r);else{var i=document.createTextNode(r),c=e.childNodes;c[t]&&e.removeChild(c[t]),c.length?e.insertBefore(i,c[t]):e.appendChild(i)}}function S(e,t){var n=t.css,o=t.media;if(o&&e.setAttribute("media",o),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function E(e,t,n){var o=n.css,r=n.sourceMap,i=void 0===t.convertToAbsoluteUrls&&r;(t.convertToAbsoluteUrls||i)&&(o=f(o)),r&&(o+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var c=new Blob([o],{type:"text/css"}),a=e.href;e.href=URL.createObjectURL(c),a&&URL.revokeObjectURL(a)}},46:function(e,t,n){var o=n(47);"string"==typeof o&&(o=[[e.i,o,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};n(3)(o,r);o.locals&&(e.exports=o.locals)},47:function(e,t,n){(e.exports=n(2)(!1)).push([e.i,".cnvs-component-image-selector{display:flex;flex-wrap:wrap;justify-content:center;margin-left:-8px;margin-right:-8px}.cnvs-component-image-selector .cnvs-component-image-selector-item{margin:0 8px;text-align:center}.cnvs-component-image-selector .cnvs-component-image-selector-item .components-button{padding:8px 10px;border:1px solid #e6e6e6;height:initial;border-radius:5px;background-color:#fff;transition:.2s box-shadow, .2s border-color}.cnvs-component-image-selector .cnvs-component-image-selector-item .components-button svg{display:block;opacity:.6;fill:none;transition:.2s opacity}.cnvs-component-image-selector .cnvs-component-image-selector-item .components-button:hover,.cnvs-component-image-selector .cnvs-component-image-selector-item .components-button:focus{box-shadow:0 0 0 2px #d8d8d8;border-color:#d8d8d8}.cnvs-component-image-selector .cnvs-component-image-selector-item .components-button:hover svg,.cnvs-component-image-selector .cnvs-component-image-selector-item .components-button:focus svg{opacity:1}.cnvs-component-image-selector .cnvs-component-image-selector-item.cnvs-component-image-selector-item-active button{border-color:#017cba;box-shadow:0 0 0 1px #017cba}.cnvs-component-image-selector .cnvs-component-image-selector-item.cnvs-component-image-selector-item-disabled{opacity:.5}.cnvs-component-image-selector .cnvs-component-image-selector-item.cnvs-component-image-selector-item-disabled .components-button{background-color:#e2e2e2}.cnvs-component-image-selector .cnvs-component-image-selector-item span{display:block;margin-top:5px;margin-bottom:8px;font-size:80%;opacity:0.5}.edit-post-sidebar .cnvs-component-image-selector{justify-content:flex-start;margin-left:-5px;margin-right:-5px}.edit-post-sidebar .cnvs-component-image-selector .cnvs-component-image-selector-item{max-width:calc(33% - 10px);margin:0 5px}.edit-post-sidebar .cnvs-component-image-selector .cnvs-component-image-selector-item button{padding:7px 8px}.cnvs-component-image-selector-item-popover .components-popover__content{padding:0 15px}.cnvs-component-image-selector-item-popover .components-popover__content ul{list-style:initial;margin-left:15px}\n",""])},5:function(e,t){e.exports=function(e){var t="undefined"!=typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!e||"string"!=typeof e)return e;var n=t.protocol+"//"+t.host,o=n+t.pathname.replace(/\/[^\/]*$/,"/");return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,(function(e,t){var r,i=t.trim().replace(/^"(.*)"$/,(function(e,t){return t})).replace(/^'(.*)'$/,(function(e,t){return t}));return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(i)?e:(r=0===i.indexOf("//")?i:0===i.indexOf("/")?n+i:o+i.replace(/^\.\//,""),"url("+JSON.stringify(r)+")")}))}},91:function(e,t,n){e.exports=n(124)}}); |