← Back
Editing: luxe-blocks.js
/*! Luxeritas WordPress Theme - free/libre wordpress platform * * @copyright Copyright (C) 2015 Thought is free. * @link https://thk.kanzae.net/ * @license http://www.gnu.org/licenses/gpl-2.0.html GPL v2 or later * @author LunaNuko */ /*! Copyright (c) 2017 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */!function(o){"use strict";var i={};function n(e){if(i[e])return i[e].exports;var t=i[e]={i:e,l:!1,exports:{}};return o[e].call(t.exports,t,t.exports,n),t.l=!0,t.exports}n.m=o,n.c=i,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,"__esMod",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esMod)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(o,i,function(e){return t[e]}.bind(null,i));return o},n.n=function(e){var t=e&&e.__esMod?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=21)}([function(e,t,o){e.exports=o(9)()},function(e,t,o){e.exports=o(19)()},function(e,t,o){"use strict";var l;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))e.push(r.apply(null,o));else if("object"==i)for(var n in o)l.call(o,n)&&o[n]&&e.push(n)}}return e.join(" ")}l={}.hasOwnProperty,void 0!==e&&e.exports?e.exports=r:void 0===(t=function(){return r}.apply(t,[]))||(e.exports=t)},function(e,t,o){"use strict";function i(e){return e&&e.__esMod?e:{default:e}}t.__esMod=!0,t.canUseDOM=t.slidesOnLeft=t.slidesOnRight=t.siblingDirection=t.getTotalSlides=t.getPostClones=t.getPreClones=t.getTrackLeft=t.getTrackAnimateCSS=t.getTrackCSS=t.checkSpecKeys=t.getSlideCount=t.checkNavigable=t.getNavigableIndexes=t.swipeEnd=t.swipeMove=t.swipeStart=t.keyHandler=t.changeSlide=t.slideHandler=t.initializedState=t.extractObject=t.canGoNext=t.getSwipeDirection=t.getHeight=t.getWidth=t.lazySlidesOnRight=t.lazySlidesOnLeft=t.lazyEndIndex=t.lazyStartIndex=t.getRequiredLazySlides=t.getOnDemandLazySlides=void 0,Object.assign,i(window.React),i(window.ReactDOM),t.canUseDOM=function(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}},function(e,t,o){"use strict";function i(e){return function(){return e}}function n(){}n.thatReturns=i,n.thatReturnsFalse=i(!1),n.thatReturnsTrue=i(!0),n.thatReturnsNull=i(null),n.thatReturnsThis=function(){return this},n.thatReturnsArgument=function(e){return e},e.exports=n},function(e,t,o){"use strict";e.exports=function(e,t,o,i,n,l,r,a){var c,s,u;if(!e)throw void 0===t?c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings."):(s=[o,i,n,l,r,a],u=0,(c=new Error(t.replace(/%s/g,function(){return s[u++]}))).name="Invariant Violation"),c.framesToPop=1,c}},function(e,t){"use strict";e.exports={isFunction:function(e){return"function"==typeof e},isArray:function(e){return"[object Array]"===Object.prototype.toString.apply(e)},each:function(e,t){for(var o=0,i=e.length;o<i&&!1!==t(e[o],o);o++);}}},function(e,t,o){"use strict";t.__esMod=!0;o=(o=o(11))&&o.__esMod?o:{default:o};t.default=o.default},function(e,t,o){"use strict";Object.defineProperty(t,"__esMod",{value:!0}),Object.assign;var i=window.React;function n(e){return e&&e.__esMod?e:{default:e}}n(i),n(o(17));(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)})(l,i.Component),i=l;function l(e){}i.propTypes={},i.defaultProps={minWidth:1,injectStyles:!0},t.default=i},function(e,t,o){"use strict";var r=o(10);function i(){}e.exports=function(){function e(e,t,o,i,n,l){if(l!==r){o=new Error(o(20));throw o.name="Invariant Violation",o}}function t(){return e}var o={array:e.isRequired=e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return o.checkPropTypes=i,o.PropTypes=o}},function(e,t,o){e.exports="Secret do not pass this."},function(e,t,o){"use strict";t.__esMod=!0;var d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o,i=arguments[t];for(o in i)Object.prototype.hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e},p=i(window.React),g=o(7),n=i(o(12)),b=i(o(13)),l=o(3);function i(e){return e&&e.__esMod?e:{default:e}}var r,a=(0,l.canUseDOM)()&&o(14),o=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(c,r=p.default.Component),c.prototype.media=function(e,t){a.register(e,t),this._responsiveMediaHandlers.push({query:e,handler:t})},c.prototype.componentWillMount=function(){var o,e,i=this;this.props.responsive&&((o=this.props.responsive.map(function(e){return e.breakpoint})).sort(function(e,t){return e-t}),o.forEach(function(e,t){t=0===t?(0,n.default)({minWidth:0,maxWidth:e}):(0,n.default)({minWidth:o[t-1]+1,maxWidth:e});(0,l.canUseDOM)()&&i.media(t,function(){i.setState({breakpoint:e})})}),e=(0,n.default)({minWidth:o.slice(-1)[0]}),(0,l.canUseDOM)()&&this.media(e,function(){i.setState({breakpoint:null})}))},c.prototype.componentWillUnmount=function(){this._responsiveMediaHandlers.forEach(function(e){a.unregister(e.query,e.handler)})},c.prototype.render=function(){var e,t=this;(e=this.state.breakpoint?"unslick"===(u=this.props.responsive.filter(function(e){return e.breakpoint===t.state.breakpoint}))[0].settings?"unslick":d({},b.default,this.props,u[0].settings):d({},b.default,this.props)).centerMode&&(e.slidesToScroll,e.slidesToScroll=1),e.fade&&(e.slidesToShow,e.slidesToScroll,e.slidesToShow=1,e.slidesToScroll=1);var o=(o=p.default.Children.toArray(this.props.children)).filter(function(e){return"string"==typeof e?!!e.trim():!!e});e.variableWidth&&(1<e.rows||1<e.slidesPerRow)&&(console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"),e.variableWidth=!1);for(var i=[],n=null,l=0;l<o.length;l+=e.rows*e.slidesPerRow){for(var r=[],a=l;a<l+e.rows*e.slidesPerRow;a+=e.slidesPerRow){for(var c=[],s=a;s<a+e.slidesPerRow&&(e.variableWidth&&o[s].props.style&&(n=o[s].props.style.width),!(s>=o.length));s+=1)c.push(p.default.cloneElement(o[s],{key:100*l+10*a+s,tabIndex:-1,style:{width:100/e.slidesPerRow+"%",display:"inline-block"}}));r.push(p.default.createElement("div",{key:10*l+a},c))}e.variableWidth?i.push(p.default.createElement("div",{key:l,style:{width:n}},r)):i.push(p.default.createElement("div",{key:l},r))}if("unslick"!==e)return i.length<=e.slidesToShow&&(e.unslick=!0),p.default.createElement(g.InnerSlider,d({ref:this.innerSliderRefHandler},e),i);var u="regular slider "+(this.props.className||"");return p.default.createElement("div",{className:u},i)},c);function c(e){!function(e){if(!(e instanceof c))throw new TypeError("Cannot call a class as a function")}(this);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,r.call(this,e));return o.innerSliderRefHandler=function(e){return o.innerSlider=e},o.slickPrev=function(){return o.innerSlider.slickPrev()},o.slickNext=function(){return o.innerSlider.slickNext()},o.slickGoTo=function(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1];return o.innerSlider.slickGoTo(e,t)},o.slickPause=function(){return o.innerSlider.pause("paused")},o.slickPlay=function(){return o.innerSlider.autoPlay("play")},o.state={breakpoint:null},o._responsiveMediaHandlers=[],o}t.default=o},function(e,t,o){"use strict";function n(n){var l="",r=Object.keys(n);return r.forEach(function(e,t){var o=n[e],i=e=a(e);/[height|width]$/.test(i)&&"number"==typeof o&&(o+="px"),l+=!0===o?e:!1===o?"not "+e:"("+e+": "+o+")",t<r.length-1&&(l+=" and ")}),l}var a=o(13);e.exports=function(o){var i="";return"string"==typeof o?o:o instanceof Array?(o.forEach(function(e,t){i+=n(e),t<o.length-1&&(i+=", ")}),i):n(o)}},function(e,t,o){t.__esMod=!0,t.default={}},function(e,t,o){o=o(15);e.exports=new o},function(e,t,o){"use strict";var n=o(16),o=o(6),l=o.each,r=o.isFunction,a=o.isArray;function i(){if(!window.matchMedia)throw new Error("matchMedia not present, legacy browsers require a polyfill");this.queries={},this.browserIsIncapable=!window.matchMedia("only all").matches}i.prototype={constructor:i,register:function(t,e,o){var i=this.queries,o=o&&this.browserIsIncapable;return i[t]||(i[t]=new n(t,o)),r(e)&&(e={match:e}),a(e)||(e=[e]),l(e,function(e){r(e)&&(e={match:e}),i[t].addHandler(e)}),this},unregister:function(e,t){var o=this.queries[e];return o&&(t?o.removeHandler(t):(o.clear(),delete this.queries[e])),this}},e.exports=i},function(e,t,o){"use strict";function i(e,t){this.query=e,this.isUnconditional=t,this.handlers=[],this.mql=window.matchMedia(e);var o=this;this.listener=function(e){o.mql=e.currentTarget||e,o.assess()},this.mql.addListener(this.listener)}o(18),o(6).each,i.prototype={},e.exports=i},function(e,t,o){e.exports=o(18)()},function(e,t,o){"use strict";var i=o(4),r=o(5),a=o(10);e.exports=function(){function e(e,t,o,i,n,l){l!==a&&r(!1,o(20))}function t(){return e}var o={array:e.isRequired=e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return o.checkPropTypes=i,o.PropTypes=o}},function(e,t,o){"use strict";var i=o(4),r=o(5),a=o(10);e.exports=function(){function e(e,t,o,i,n,l){l!==a&&r(!1,o(20))}function t(){return e}var o={array:e.isRequired=e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return o.checkPropTypes=i,o.PropTypes=o}},function(e,t,o){e.exports="Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"},function(e,t,o){"use strict";var X=React.createElement;function u(e){e.className;var t=e.height,o=e.style,i=e.weight,n=e.width,l=e.align,e=e.color;return X("div",{key:"divider",style:{height:void 0!==t?t:1,lineHeight:void 0!==t?t+"px":void 0,textAlign:void 0!==l?l:"left",marginBottom:"1.6em"}},X("hr",{style:{borderTopStyle:o,borderTopWidth:i,borderTopColor:e,display:"inline-block",width:n+"%"}}))}o.r(t),o(8);var Z=wp.i18n,i=wp.blocks,ee=wp.components,te=wp.blockEditor.BlockEdit?wp.blockEditor:wp.editor,d=(wp.compose,Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o,i=arguments[t];for(o in i)Object.prototype.hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e}),oe={SOLID:"solid",DOTTED:"dotted",DASHED:"dashed",DOUBLE:"double"};i.registerBlockType("luxe-blocks/divider",{title:Z.__("Divider","luxeritas"),description:Z.__("A divider to indicate a thematic change in the content in style.","luxeritas"),icon:function(){return X("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 34 34"},X("g",null,X("path",{d:"M0 16h4v2h-4zM6 16h6v2h-6zM14 16h4v2h-4zM20 16h6v2h-6zM28 16h4v2h-4zM27.5 0l0.5 14h-24l0.5-14h1l0.5 12h20l0.5-12zM4.5 32l-0.5-12h24l-0.5 12h-1l-0.5-10h-20l-0.5 10z",style:{fill:"#333"}})))},category:"luxe-blocks",keywords:[Z.__("divider"),Z.__("horizontal-line"),"hr"],attributes:{style:{type:"string",default:oe.DOTTED},weight:{type:"number",default:3},width:{type:"number",default:90},height:{type:"number",default:25},align:{type:"string",default:"center"},color:{type:"string",default:"#999"}},edit:function(e){var t=e.className,o=e.attributes,i=e.setAttributes,n=e.isSelected,l=o.style,r=o.weight,a=o.width,c=o.height,s=o.align,e=o.color;return[X("div",{className:t+"-edit-wrap",style:{padding:c/2+"px 0 1px"}},X(u,d({className:t},o))),n&&X(te.InspectorControls,{key:"inspector"},X(ee.PanelBody,{title:Z.__("Appearance","luxeritas"),initialOpen:!0},X(ee.RangeControl,{label:Z.__("Divider line thickness","luxeritas")+" (px)",min:1,max:200,value:r,onChange:function(e){return i({weight:e})}}),X(ee.RangeControl,{label:Z.__("Width","luxeritas")+" (%)",min:1,max:100,value:a,onChange:function(e){return i({width:e})}}),X(ee.RangeControl,{label:Z.__("Height","luxeritas")+" (px)",min:0,max:2e3,onChange:function(e){return i({height:e})},value:c}),X("p",{className:"luxe-inspector-title"},Z.__("Style","luxeritas")),X(ee.Toolbar,{controls:Object.values(oe).map(function(e,t){return{icon:"admin-customizer",isActive:l===e,onClick:function(){return i({style:e})},subscript:t+1}})}),X("p",{className:"luxe-inspector-title"},Z.__("Alignment of block","luxeritas")),X(te.AlignmentToolbar,{value:s,onChange:function(e){return i({align:e||void 0})}})),X(ee.PanelBody,{title:Z.__("Divider line Color","luxeritas")},X(te.ColorPalette,{value:e,onChange:function(e){return i({color:e})}})))]},save:function(e){var t=e.className,e=e.attributes;return X(u,d({className:t},e))}});var ie=wp.element,n=o(0),t=o.n(n),r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o,i=arguments[t];for(o in i)Object.prototype.hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e};function a(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function ne(e){var o=e.setAttributes,i=e.attributeKey,t=e.attributes,e=e.label,n=t[i],t=[],l=0,t="blockMargin"===i||"imgMargin"===i?["top","bottom"]:"titlePosition"===i?["top","left"]:["top","right","bottom","left"],l="blockMargin"===i||"imgMargin"===i?-32767:0;return X("div",{className:"luxe-blocks-control-margins"},X("p",{className:"luxe-blocks-control-margins-label"},e),X("div",{className:"luxe-blocks-control-spacing-controls"},t.map(function(t){return X(ee.TextControl,{label:Z.__(""+(e=t).charAt(0).toUpperCase()+e.slice(1).toLowerCase(),"luxeritas"),value:n[t],type:"number",min:l,max:500,step:1,onChange:function(e){o(a({},i,r({},n,a({},t,e))))}});var e})))}t.a.func.isRequired,t.a.string.isRequired,t.a.object,t.a.string;var n=(wp.data,o(7)),n=(o.n(n),Object.assign,o(8)),n=(o.n(n),o(2)),le=o.n(n),n=o(1),n=(o.n(n),window.React),_=(o.n(n),window.ReactDOM,Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o,i=arguments[t];for(o in i)Object.prototype.hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e});function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function c(){var e,n;!function(e){if(!(e instanceof c))throw new TypeError("Cannot call a class as a function")}(this);for(var t=arguments.length,o=Array(t),i=0;i<t;i++)o[i]=arguments[i];return e=n=l(this,(e=c.__proto__||Object.getPrototypeOf(c)).call.apply(e,[this].concat(o))),n.state={selectedIndex:0},n.onTitleUpdate=function(o,i){var e=n.props,t=e.attributes;(0,e.setAttributes)({tabs:t.tabs.map(function(e,t){return t===o?_({},e,{title:i}):e})})},n.onContentUpdate=function(o){var e=n.props,i=n.state.selectedIndex;(0,e.setAttributes)({tabs:e.attributes.tabs.map(function(e,t){return t===i?_({},e,{content:o}):e})})},l(n,e)}function re(){var e="http://www.w3.org/2000/svg";return{twitterIcon:X("svg",{xmlns:e,width:22,height:22,viewBox:"0 0 26 28"},X("path",{d:"M25.312 6.375c-0.688 1-1.547 1.891-2.531 2.609 0.016 0.219 0.016 0.438 0.016 0.656 0 6.672-5.078 14.359-14.359 14.359-2.859 0-5.516-0.828-7.75-2.266 0.406 0.047 0.797 0.063 1.219 0.063 2.359 0 4.531-0.797 6.266-2.156-2.219-0.047-4.078-1.5-4.719-3.5 0.313 0.047 0.625 0.078 0.953 0.078 0.453 0 0.906-0.063 1.328-0.172-2.312-0.469-4.047-2.5-4.047-4.953v-0.063c0.672 0.375 1.453 0.609 2.281 0.641-1.359-0.906-2.25-2.453-2.25-4.203 0-0.938 0.25-1.797 0.688-2.547 2.484 3.062 6.219 5.063 10.406 5.281-0.078-0.375-0.125-0.766-0.125-1.156 0-2.781 2.25-5.047 5.047-5.047 1.453 0 2.766 0.609 3.687 1.594 1.141-0.219 2.234-0.641 3.203-1.219-0.375 1.172-1.172 2.156-2.219 2.781 1.016-0.109 2-0.391 2.906-0.781z",fill:"#55acee"})),facebookIcon:X("svg",{xmlns:e,width:22,height:22,viewBox:"0 0 16 28"},X("path",{d:"M14.984 0.187v4.125h-2.453c-1.922 0-2.281 0.922-2.281 2.25v2.953h4.578l-0.609 4.625h-3.969v11.859h-4.781v-11.859h-3.984v-4.625h3.984v-3.406c0-3.953 2.422-6.109 5.953-6.109 1.687 0 3.141 0.125 3.563 0.187z",fill:"#3b5998"})),instagramIcon:X("svg",{xmlns:e,width:22,height:22,viewBox:"0 0 24 28"},X("path",{d:"M16 14c0-2.203-1.797-4-4-4s-4 1.797-4 4 1.797 4 4 4 4-1.797 4-4zM18.156 14c0 3.406-2.75 6.156-6.156 6.156s-6.156-2.75-6.156-6.156 2.75-6.156 6.156-6.156 6.156 2.75 6.156 6.156zM19.844 7.594c0 0.797-0.641 1.437-1.437 1.437s-1.437-0.641-1.437-1.437 0.641-1.437 1.437-1.437 1.437 0.641 1.437 1.437zM12 4.156c-1.75 0-5.5-0.141-7.078 0.484-0.547 0.219-0.953 0.484-1.375 0.906s-0.688 0.828-0.906 1.375c-0.625 1.578-0.484 5.328-0.484 7.078s-0.141 5.5 0.484 7.078c0.219 0.547 0.484 0.953 0.906 1.375s0.828 0.688 1.375 0.906c1.578 0.625 5.328 0.484 7.078 0.484s5.5 0.141 7.078-0.484c0.547-0.219 0.953-0.484 1.375-0.906s0.688-0.828 0.906-1.375c0.625-1.578 0.484-5.328 0.484-7.078s0.141-5.5-0.484-7.078c-0.219-0.547-0.484-0.953-0.906-1.375s-0.828-0.688-1.375-0.906c-1.578-0.625-5.328-0.484-7.078-0.484zM24 14c0 1.656 0.016 3.297-0.078 4.953-0.094 1.922-0.531 3.625-1.937 5.031s-3.109 1.844-5.031 1.937c-1.656 0.094-3.297 0.078-4.953 0.078s-3.297 0.016-4.953-0.078c-1.922-0.094-3.625-0.531-5.031-1.937s-1.844-3.109-1.937-5.031c-0.094-1.656-0.078-3.297-0.078-4.953s-0.016-3.297 0.078-4.953c0.094-1.922 0.531-3.625 1.937-5.031s3.109-1.844 5.031-1.937c1.656-0.094 3.297-0.078 4.953-0.078s3.297-0.016 4.953 0.078c1.922 0.094 3.625 0.531 5.031 1.937s1.844 3.109 1.937 5.031c0.094 1.656 0.078 3.297 0.078 4.953z",fill:"#d13360"})),pinterestIcon:X("svg",{xmlns:e,width:22,height:22,viewBox:"0 0 24 28"},X("path",{d:"M0 9.328c0-5.766 5.281-9.328 10.625-9.328 4.906 0 9.375 3.375 9.375 8.547 0 4.859-2.484 10.25-8.016 10.25-1.313 0-2.969-0.656-3.609-1.875-1.188 4.703-1.094 5.406-3.719 9l-0.219 0.078-0.141-0.156c-0.094-0.984-0.234-1.953-0.234-2.938 0-3.187 1.469-7.797 2.188-10.891-0.391-0.797-0.5-1.766-0.5-2.641 0-1.578 1.094-3.578 2.875-3.578 1.313 0 2.016 1 2.016 2.234 0 2.031-1.375 3.938-1.375 5.906 0 1.344 1.109 2.281 2.406 2.281 3.594 0 4.703-5.187 4.703-7.953 0-3.703-2.625-5.719-6.172-5.719-4.125 0-7.313 2.969-7.313 7.156 0 2.016 1.234 3.047 1.234 3.531 0 0.406-0.297 1.844-0.812 1.844-0.078 0-0.187-0.031-0.266-0.047-2.234-0.672-3.047-3.656-3.047-5.703z",fill:"#e60023"})),linkedIcon:X("svg",{xmlns:e,width:22,height:22,viewBox:"0 0 24 28"},X("path",{d:"M5.453 9.766v15.484h-5.156v-15.484h5.156zM5.781 4.984c0.016 1.484-1.109 2.672-2.906 2.672v0h-0.031c-1.734 0-2.844-1.188-2.844-2.672 0-1.516 1.156-2.672 2.906-2.672 1.766 0 2.859 1.156 2.875 2.672zM24 16.375v8.875h-5.141v-8.281c0-2.078-0.75-3.5-2.609-3.5-1.422 0-2.266 0.953-2.641 1.875-0.125 0.344-0.172 0.797-0.172 1.266v8.641h-5.141c0.063-14.031 0-15.484 0-15.484h5.141v2.25h-0.031c0.672-1.062 1.891-2.609 4.672-2.609 3.391 0 5.922 2.219 5.922 6.969z",fill:"#0074b0"})),youtubeIcon:X("svg",{xmlns:e,width:22,height:22,viewBox:"0 0 28 28"},X("path",{d:"M11.109 17.625l7.562-3.906-7.562-3.953v7.859zM14 4.156c5.891 0 9.797 0.281 9.797 0.281 0.547 0.063 1.75 0.063 2.812 1.188 0 0 0.859 0.844 1.109 2.781 0.297 2.266 0.281 4.531 0.281 4.531v2.125s0.016 2.266-0.281 4.531c-0.25 1.922-1.109 2.781-1.109 2.781-1.062 1.109-2.266 1.109-2.812 1.172 0 0-3.906 0.297-9.797 0.297v0c-7.281-0.063-9.516-0.281-9.516-0.281-0.625-0.109-2.031-0.078-3.094-1.188 0 0-0.859-0.859-1.109-2.781-0.297-2.266-0.281-4.531-0.281-4.531v-2.125s-0.016-2.266 0.281-4.531c0.25-1.937 1.109-2.781 1.109-2.781 1.062-1.125 2.266-1.125 2.812-1.188 0 0 3.906-0.281 9.797-0.281v0z",fill:"#ae3a34"})),emailIcon:X("svg",{xmlns:e,width:22,height:22,viewBox:"0 0 28 28"},X("path",{d:"M23.031 14.266l0.609 0.797c0.172 0.219 0.125 0.516-0.078 0.688-1.563 1.219-5.156 3.984-5.313 4.109-1.109 0.906-2.609 2.156-4.234 2.141h-0.031c-1.625 0-3.125-1.234-4.234-2.141-0.172-0.141-3.641-2.812-5.172-4-0.219-0.172-0.266-0.469-0.094-0.688l0.578-0.812c0.172-0.234 0.5-0.281 0.719-0.094 1.062 0.828 2.562 1.984 4.781 3.687 0.781 0.594 2.328 2.047 3.422 2.047h0.031c1.094 0 2.641-1.453 3.422-2.047 2.297-1.766 3.828-2.938 4.891-3.781 0.219-0.172 0.531-0.125 0.703 0.094zM26 25.5v-14.5c-1.563-1.453-1.328-1.328-8.563-6.922-0.781-0.609-2.328-2.078-3.422-2.078h-0.031c-1.094 0-2.641 1.469-3.422 2.078-7.234 5.594-7 5.469-8.563 6.922v14.5c0 0.266 0.234 0.5 0.5 0.5h23c0.266 0 0.5-0.234 0.5-0.5zM28 11v14.5c0 1.375-1.125 2.5-2.5 2.5h-23c-1.375 0-2.5-1.125-2.5-2.5v-14.5c0-0.562 0.234-1.094 0.641-1.469 3.203-2.969 6.891-5.547 9.109-7.375 1.094-0.906 2.609-2.156 4.234-2.156h0.031c1.625 0 3.141 1.25 4.234 2.156 2.063 1.703 5.984 4.469 9.109 7.375 0.406 0.375 0.641 0.906 0.641 1.469z",fill:"#999"}))}}function ae(e,t){var o="http://www.w3.org/2000/svg";return{nil:X("svg",{xmlns:o,width:e,height:e,viewBox:"0 0 0 0"},X("path",{d:"",fill:t})),pencil:X("svg",{xmlns:o,width:e,height:e,viewBox:"0 1 24 28"},X("path",{d:"M5.672 24l1.422-1.422-3.672-3.672-1.422 1.422v1.672h2v2h1.672zM13.844 9.5c0-0.203-0.141-0.344-0.344-0.344-0.094 0-0.187 0.031-0.266 0.109l-8.469 8.469c-0.078 0.078-0.109 0.172-0.109 0.266 0 0.203 0.141 0.344 0.344 0.344 0.094 0 0.187-0.031 0.266-0.109l8.469-8.469c0.078-0.078 0.109-0.172 0.109-0.266zM13 6.5l6.5 6.5-13 13h-6.5v-6.5zM23.672 8c0 0.531-0.219 1.047-0.578 1.406l-2.594 2.594-6.5-6.5 2.594-2.578c0.359-0.375 0.875-0.594 1.406-0.594s1.047 0.219 1.422 0.594l3.672 3.656c0.359 0.375 0.578 0.891 0.578 1.422z",fill:t})),user:X("svg",{xmlns:o,width:e,height:e,viewBox:"0 1 20 28"},X("path",{d:"M20 21.859c0 2.281-1.5 4.141-3.328 4.141h-13.344c-1.828 0-3.328-1.859-3.328-4.141 0-4.109 1.016-8.859 5.109-8.859 1.266 1.234 2.984 2 4.891 2s3.625-0.766 4.891-2c4.094 0 5.109 4.75 5.109 8.859zM16 8c0 3.313-2.688 6-6 6s-6-2.688-6-6 2.688-6 6-6 6 2.688 6 6z",fill:t})),coffee:X("svg",{xmlns:o,width:e,height:e,viewBox:"0 1 29 28"},X("path",{d:"M26 10c0-1.656-1.344-3-3-3h-1v6h1c1.656 0 3-1.344 3-3zM0 22h28c0 2.203-1.797 4-4 4h-20c-2.203 0-4-1.797-4-4zM29 10c0 3.313-2.688 6-6 6h-1v0.5c0 1.922-1.578 3.5-3.5 3.5h-11c-1.922 0-3.5-1.578-3.5-3.5v-11.5c0-0.547 0.453-1 1-1h18c3.313 0 6 2.688 6 6z",fill:t})),heart:X("svg",{xmlns:o,width:e,height:e,viewBox:"0 0 28 28"},X("path",{d:"M14 26c-0.25 0-0.5-0.094-0.688-0.281l-9.75-9.406c-0.125-0.109-3.563-3.25-3.563-7 0-4.578 2.797-7.313 7.469-7.313 2.734 0 5.297 2.156 6.531 3.375 1.234-1.219 3.797-3.375 6.531-3.375 4.672 0 7.469 2.734 7.469 7.313 0 3.75-3.437 6.891-3.578 7.031l-9.734 9.375c-0.187 0.187-0.438 0.281-0.688 0.281z",fill:t})),star:X("svg",{xmlns:o,width:e,height:e,viewBox:"0 1 26 28"},X("path",{d:"M26 10.109c0 0.281-0.203 0.547-0.406 0.75l-5.672 5.531 1.344 7.812c0.016 0.109 0.016 0.203 0.016 0.313 0 0.406-0.187 0.781-0.641 0.781-0.219 0-0.438-0.078-0.625-0.187l-7.016-3.687-7.016 3.687c-0.203 0.109-0.406 0.187-0.625 0.187-0.453 0-0.656-0.375-0.656-0.781 0-0.109 0.016-0.203 0.031-0.313l1.344-7.812-5.688-5.531c-0.187-0.203-0.391-0.469-0.391-0.75 0-0.469 0.484-0.656 0.875-0.719l7.844-1.141 3.516-7.109c0.141-0.297 0.406-0.641 0.766-0.641s0.625 0.344 0.766 0.641l3.516 7.109 7.844 1.141c0.375 0.063 0.875 0.25 0.875 0.719z",fill:t})),leaf:X("svg",{xmlns:o,width:e,height:e,viewBox:"0 1 28 28"},X("path",{d:"M20 11c0-0.547-0.453-1-1-1-5.531 0-9.094 2.312-12.703 6.297-0.187 0.203-0.297 0.422-0.297 0.703 0 0.547 0.453 1 1 1 0.281 0 0.5-0.109 0.703-0.297 0.766-0.688 1.453-1.437 2.203-2.141 2.828-2.547 5.25-3.563 9.094-3.563 0.547 0 1-0.453 1-1zM28 7.906c0 1-0.109 2.016-0.313 3.016-1 4.859-4.125 8.016-8.469 10.172-2.109 1.062-4.469 1.687-6.844 1.687-1.5 0-3.047-0.25-4.469-0.734-0.75-0.25-2.25-1.234-2.875-1.234-0.781 0-1.719 3.187-3.078 3.187-0.984 0-1.281-0.484-1.703-1.203-0.141-0.266-0.25-0.359-0.25-0.688 0-1.625 3.094-2.891 3.094-3.797 0-0.141-0.406-0.969-0.469-1.281-0.094-0.531-0.141-1.078-0.141-1.625 0-4.969 3.953-8.516 8.391-9.984 3.203-1.062 10.016 0.172 12.187-1.891 0.859-0.797 1.281-1.531 2.594-1.531 1.766 0 2.344 4.578 2.344 5.906z",fill:t})),check:X("svg",{xmlns:o,width:e,height:e,viewBox:"0 1 28 28"},X("path",{d:"M26.109 8.844c0 0.391-0.156 0.781-0.438 1.062l-13.438 13.438c-0.281 0.281-0.672 0.438-1.062 0.438s-0.781-0.156-1.062-0.438l-7.781-7.781c-0.281-0.281-0.438-0.672-0.438-1.062s0.156-0.781 0.438-1.062l2.125-2.125c0.281-0.281 0.672-0.438 1.062-0.438s0.781 0.156 1.062 0.438l4.594 4.609 10.25-10.266c0.281-0.281 0.672-0.438 1.062-0.438s0.781 0.156 1.062 0.438l2.125 2.125c0.281 0.281 0.438 0.672 0.438 1.062z",fill:t})),close:X("svg",{xmlns:o,width:e,height:e,viewBox:"0 1 22 28"},X("path",{d:"M20.281 20.656c0 0.391-0.156 0.781-0.438 1.062l-2.125 2.125c-0.281 0.281-0.672 0.438-1.062 0.438s-0.781-0.156-1.062-0.438l-4.594-4.594-4.594 4.594c-0.281 0.281-0.672 0.438-1.062 0.438s-0.781-0.156-1.062-0.438l-2.125-2.125c-0.281-0.281-0.438-0.672-0.438-1.062s0.156-0.781 0.438-1.062l4.594-4.594-4.594-4.594c-0.281-0.281-0.438-0.672-0.438-1.062s0.156-0.781 0.438-1.062l2.125-2.125c0.281-0.281 0.672-0.438 1.062-0.438s0.781 0.156 1.062 0.438l4.594 4.594 4.594-4.594c0.281-0.281 0.672-0.438 1.062-0.438s0.781 0.156 1.062 0.438l2.125 2.125c0.281 0.281 0.438 0.672 0.438 1.062s-0.156 0.781-0.438 1.062l-4.594 4.594 4.594 4.594c0.281 0.281 0.438 0.672 0.438 1.062z",fill:t})),exclamationt:X("svg",{xmlns:o,width:e,height:e,viewBox:"0 0 28 28"},X("path",{d:"M16 21.484v-2.969c0-0.281-0.219-0.516-0.5-0.516h-3c-0.281 0-0.5 0.234-0.5 0.516v2.969c0 0.281 0.219 0.516 0.5 0.516h3c0.281 0 0.5-0.234 0.5-0.516zM15.969 15.641l0.281-7.172c0-0.094-0.047-0.219-0.156-0.297-0.094-0.078-0.234-0.172-0.375-0.172h-3.437c-0.141 0-0.281 0.094-0.375 0.172-0.109 0.078-0.156 0.234-0.156 0.328l0.266 7.141c0 0.203 0.234 0.359 0.531 0.359h2.891c0.281 0 0.516-0.156 0.531-0.359zM15.75 1.047l12 22c0.344 0.609 0.328 1.359-0.031 1.969s-1.016 0.984-1.719 0.984h-24c-0.703 0-1.359-0.375-1.719-0.984s-0.375-1.359-0.031-1.969l12-22c0.344-0.641 1.016-1.047 1.75-1.047s1.406 0.406 1.75 1.047z",fill:t})),checkc:X("svg",{xmlns:o,width:e,height:e,viewBox:"0 1 24 28"},X("path",{d:"M20.062 11.469c0-0.266-0.094-0.531-0.281-0.719l-1.422-1.406c-0.187-0.187-0.438-0.297-0.703-0.297s-0.516 0.109-0.703 0.297l-6.375 6.359-3.531-3.531c-0.187-0.187-0.438-0.297-0.703-0.297s-0.516 0.109-0.703 0.297l-1.422 1.406c-0.187 0.187-0.281 0.453-0.281 0.719s0.094 0.516 0.281 0.703l5.656 5.656c0.187 0.187 0.453 0.297 0.703 0.297 0.266 0 0.531-0.109 0.719-0.297l8.484-8.484c0.187-0.187 0.281-0.438 0.281-0.703zM24 14c0 6.625-5.375 12-12 12s-12-5.375-12-12 5.375-12 12-12 12 5.375 12 12z",fill:t})),closec:X("svg",{xmlns:o,width:e,height:e,viewBox:"0 1 24 28"},X("path",{d:"M17.953 17.531c0-0.266-0.109-0.516-0.297-0.703l-2.828-2.828 2.828-2.828c0.187-0.187 0.297-0.438 0.297-0.703s-0.109-0.531-0.297-0.719l-1.406-1.406c-0.187-0.187-0.453-0.297-0.719-0.297s-0.516 0.109-0.703 0.297l-2.828 2.828-2.828-2.828c-0.187-0.187-0.438-0.297-0.703-0.297s-0.531 0.109-0.719 0.297l-1.406 1.406c-0.187 0.187-0.297 0.453-0.297 0.719s0.109 0.516 0.297 0.703l2.828 2.828-2.828 2.828c-0.187 0.187-0.297 0.438-0.297 0.703s0.109 0.531 0.297 0.719l1.406 1.406c0.187 0.187 0.453 0.297 0.719 0.297s0.516-0.109 0.703-0.297l2.828-2.828 2.828 2.828c0.187 0.187 0.438 0.297 0.703 0.297s0.531-0.109 0.719-0.297l1.406-1.406c0.187-0.187 0.297-0.453 0.297-0.719zM24 14c0 6.625-5.375 12-12 12s-12-5.375-12-12 5.375-12 12-12 12 5.375 12 12z",fill:t})),question:X("svg",{xmlns:o,width:e,height:e,viewBox:"0 1 24 28"},X("path",{d:"M14 21.5v-3c0-0.281-0.219-0.5-0.5-0.5h-3c-0.281 0-0.5 0.219-0.5 0.5v3c0 0.281 0.219 0.5 0.5 0.5h3c0.281 0 0.5-0.219 0.5-0.5zM18 11c0-2.859-3-5-5.688-5-2.547 0-4.453 1.094-5.797 3.328-0.141 0.219-0.078 0.5 0.125 0.656l2.063 1.563c0.078 0.063 0.187 0.094 0.297 0.094 0.141 0 0.297-0.063 0.391-0.187 0.734-0.938 1.047-1.219 1.344-1.437 0.266-0.187 0.781-0.375 1.344-0.375 1 0 1.922 0.641 1.922 1.328 0 0.812-0.422 1.219-1.375 1.656-1.109 0.5-2.625 1.797-2.625 3.313v0.562c0 0.281 0.219 0.5 0.5 0.5h3c0.281 0 0.5-0.219 0.5-0.5v0c0-0.359 0.453-1.125 1.188-1.547 1.188-0.672 2.812-1.578 2.812-3.953zM24 14c0 6.625-5.375 12-12 12s-12-5.375-12-12 5.375-12 12-12 12 5.375 12 12z",fill:t})),exclamation:X("svg",{xmlns:o,width:e,height:e,viewBox:"0 1 24 28"},X("path",{d:"M12 2c6.625 0 12 5.375 12 12s-5.375 12-12 12-12-5.375-12-12 5.375-12 12-12zM14 21.484v-2.969c0-0.281-0.219-0.516-0.484-0.516h-3c-0.281 0-0.516 0.234-0.516 0.516v2.969c0 0.281 0.234 0.516 0.516 0.516h3c0.266 0 0.484-0.234 0.484-0.516zM13.969 16.109l0.281-9.703c0-0.109-0.047-0.219-0.156-0.281-0.094-0.078-0.234-0.125-0.375-0.125h-3.437c-0.141 0-0.281 0.047-0.375 0.125-0.109 0.063-0.156 0.172-0.156 0.281l0.266 9.703c0 0.219 0.234 0.391 0.531 0.391h2.891c0.281 0 0.516-0.172 0.531-0.391z",fill:t})),info:X("svg",{xmlns:o,width:e,height:e,viewBox:"0 1 24 28"},X("path",{d:"M16 21.5v-2.5c0-0.281-0.219-0.5-0.5-0.5h-1.5v-8c0-0.281-0.219-0.5-0.5-0.5h-5c-0.281 0-0.5 0.219-0.5 0.5v2.5c0 0.281 0.219 0.5 0.5 0.5h1.5v5h-1.5c-0.281 0-0.5 0.219-0.5 0.5v2.5c0 0.281 0.219 0.5 0.5 0.5h7c0.281 0 0.5-0.219 0.5-0.5zM14 7.5v-2.5c0-0.281-0.219-0.5-0.5-0.5h-3c-0.281 0-0.5 0.219-0.5 0.5v2.5c0 0.281 0.219 0.5 0.5 0.5h3c0.281 0 0.5-0.219 0.5-0.5zM24 14c0 6.625-5.375 12-12 12s-12-5.375-12-12 5.375-12 12-12 12 5.375 12 12z",fill:t})),gittip:X("svg",{xmlns:o,width:e,height:e,viewBox:"0 1 24 28"},X("path",{d:"M12.078 20.344l5.469-7.391c0.422-0.578 0.922-2.438-0.672-3.484-1.344-0.875-2.625-0.203-3.297 0.578-0.25 0.281-0.688 0.625-1.5 0.625s-1.234-0.344-1.484-0.625c-0.672-0.781-1.953-1.453-3.313-0.578-1.578 1.047-1.078 2.906-0.656 3.484zM24 14c0 6.625-5.375 12-12 12s-12-5.375-12-12 5.375-12 12-12 12 5.375 12 12z",fill:t}))}}function ce(e,t,o,i,n,l){var r="";return void 0!==e&&e&&(r+=e),void 0!==t&&t&&(void 0!==e&&e&&(r+=" "),r+="url("+t+")",void 0!==l&&l&&(r+=" fixed"),void 0!==o.x&&void 0!==o.y?r+=" "+Math.round(100*o.x)+"% "+Math.round(100*o.y)+"% ":r+=" 50% 50%",void 0!==i&&i&&"auto"!==i&&(r+="/"+i),void 0!==n&&n&&"repeat"!==n&&(r+=" "+n)),r}function K(e,t,o,i,n){var l=Math,r=void 0!==o.x?l.round(100*o.x)+"%":"50%",o=void 0!==o.y?l.round(100*o.y)/100:0;return'!function(t,d,s,g){var c=t.documentElement.clientHeight,f=t.getElementById("'+e+'"),b=f.offsetWidth,l=f.offsetHeight;window.addEventListener("scroll",function(){var t=f.getBoundingClientRect(),e=t.top-c,n=t.bottom;if(-1==d.sign(e)){if(1==d.sign(n)){var i=1==d.sign(g-l)?b*g/s:g,o=1==d.sign(i-c)?'+o+"*i:"+o+"*c-"+o+"*i,a=(t.top-o)/"+t+'+"px";f.style.backgroundPosition="'+r+' "+a}}})}(document,Math,'+n+","+i+");"}function V(e){return 0!=e&&(e=100==e?1:(e=500-5*e,Math.round(100*((e-1)/100+1))/100)),e}function s(){return{nest:{type:"boolean",default:!0},tabs:{type:"array",default:[{title:"",content:""}]},blockId:{type:"string",default:""},backgroundColor:{type:"string",default:""},textColor:{type:"string",default:""},borderColor:{type:"string",default:ue},style:{type:"string",default:oe.SOLID},weight:{type:"number",default:1},radius:{type:"number",default:0},maxWidth:{type:"number",default:0},align:{type:"string",default:"left"},alignment:{type:"string",default:"none"},blockMargin:{type:"object",default:{top:10,bottom:30}},blockPadding:{type:"object",default:{top:0,right:15,bottom:0,left:15}},backgroundImg:{type:"string",default:""},backgroundPosition:{type:"object",default:{x:.5,y:.5}},backgroundFixed:{type:"boolean",default:!1},backgroundRepeat:{type:"string",default:"repeat"},backgroundSize:{type:"string",default:"auto"},backgroundOpacity:{type:"number",default:30},backgroundParallax:{type:"number",default:0},backgroundImgWidth:{type:"number",default:0},backgroundImgHeight:{type:"number",default:0}}}function p(e){return{nest:e.nest,tabs:[{content:e.tabs[0].content}],titleBackgroundColor:e.titleBackgroundColor,titleTextColor:e.titleTextColor,backgroundColor:e.backgroundColor,textColor:e.textColor,borderColor:e.borderColor,style:e.style,weight:e.weight,radius:e.radius,maxWidth:e.maxWidth,align:e.align,alignment:e.alignment,blockMargin:e.blockMargin,blockPadding:e.blockPadding}}var n="wp-block-luxe-blocks-",se=[n+"topic",n+"border-block",n+"accordion",n+"profile",n+"vertical",n+"balloon",n+"notification"],ue="#006edc",de="#fff",n=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(c,ie.Component),function(e,t){for(var o=0;o<t.length;o++){var i=t[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}(c.prototype,[{key:"render",value:function(){var r,a=this,e=this.state.selectedIndex,t=this.props,c=t.attributes,o=t.isSelected,s=t.className,n=t.setAttributes,i=c.weight,u=c.radius,l=c.maxWidth,d=c.align,p=c.alignment,g=c.blockMargin,b=c.blockPadding,h=c.backgroundColor,v=c.textColor,m=c.borderColor,x=c.backgroundImg,f=c.backgroundPosition,k=c.backgroundFixed,y=c.backgroundRepeat,w=c.backgroundSize,C=c.backgroundOpacity,_=c.backgroundParallax,I=void 0!==x&&""!=x&&void 0!==C&&""!=C&&h?" luxe-overlay-"+C:"",S=c.tabs,M=S[e],B={"luxe-blocks/topic":Z.__("Topic block","luxeritas"),"luxe-blocks/border-block":Z.__("Border block","luxeritas"),"luxe-blocks/accordion":Z.__("Accordion block","luxeritas"),"luxe-blocks/notification":Z.__("Notification block","luxeritas")};if(s==se[0]&&(r=c.titlePosition),s===se[4]&&"#f0f0ea"===h&&(I=""),s!==se[5]){var N=t.clientId,R=c.nest,z=c.style,T=c.titleBackgroundColor,P=c.titleTextColor,O=[{value:T,onChange:function(e){return n({titleBackgroundColor:e})},label:s===se[6]?Z.__("Icon background color","luxeritas"):Z.__("Title background color","luxeritas")},{value:P,onChange:function(e){return n({titleTextColor:e})},label:s===se[6]?Z.__("Icon color","luxeritas"):Z.__("Title text color","luxeritas")}],L=[{value:h,onChange:function(e){return n({backgroundColor:e})},label:Z.__("Background color","luxeritas")},{value:v,onChange:function(e){return n({textColor:e})},label:Z.__("Text color","luxeritas")},{value:m,onChange:function(e){return n({borderColor:e})},label:Z.__("Border color","luxeritas")}],A=[{value:h,onChange:function(e){return n({backgroundColor:e})},label:Z.__("Overlay Color","luxeritas")}],W=s===se[3]?re():void 0;return s===se[0]?void 0!==u&&0!=u&&(V=void 0!==r.left&&0!=r.left?u+"px":!1===c.titleWide?"0 "+u+"px "+u+"px "+u+"px":"0 0 "+u+"px "+u+"px"):s===se[6]?void 0!==u&&0!=u&&(G=u+"px 0 0 "+u+"px",V="0 "+u+"px "+u+"px 0"):void 0!==u&&(V=u+"px"),n({blockId:N.replace(/[\-]./g,"")}),X(ie.Fragment,null,X("div",{className:s,style:{maxWidth:void 0!==l&&0!=l?l+"px":void 0,marginTop:void 0!==g.top?g.top+"px":"10px",marginBottom:void 0!==g.bottom?g.bottom+"px":"30px",marginLeft:"right"===d||"center"===d?"auto":void 0,marginRight:"center"===d?"auto":void 0}},(s===se[0]||s===se[1]||s===se[2]||s===se[6])&&!0===R&&X("div",{className:"luxe-focus",style:{display:"none",textAlign:"right",marginBottom:!1===t.isSelected?"20px":void 0}},!1===t.isSelected?X("span",{style:{fontSize:"13px",padding:"0 10px"}},Z.__("Selected child block","luxeritas")):"",X("button",{className:!0===t.isSelected?"button disabled":"button"},B[t.name])),!0===t.isSelected&&!0===R&&X("div",{style:{padding:"0 0 10px 0"}}),(s===se[0]||s===se[2])&&X("div",{className:s+"-title-wrap"},S.map(function(e,t){var o,i,n,l;return void 0!==u&&0!==u&&(l=void 0!==r.top&&0!=r.top?u+"px":u+"px "+u+"px 0 0"),X("div",{className:le()(((n=s+"-title")in(i=o={})?Object.defineProperty(i,n,{value:!0,enumerable:!0,configurable:!0,writable:!0}):i[n]=!0,o)),style:{width:s===se[0]&&c.titleWide?"100%":void 0,fontSize:4<S.length?"14px":void 0,color:void 0!==P?P:de,backgroundColor:void 0!==T?T:ue,margin:s===se[0]&&void 0!==r.left&&0!=r.left?"0 "+r.left+"px":void 0,padding:s===se[0]?"2px 14px":"10px 15px",borderRadius:l}},"nil"!==c.titleIcon&&X("span",{className:s+"-icon"},"nil"!==c.titleIcon&&(l=void 0!==P?P:de,ae(c.titleIconSize,l)[c.titleIcon])),X(s===se[2]?te.PlainText:te.RichText,{value:e.title,placeholder:Z.__("Write title")+String.fromCharCode(8230),style:{width:s!==se[2]&&""==e.title?"150px":""},onChange:function(e){return a.onTitleUpdate(t,e)},placeholder:Z.__("Write title")+String.fromCharCode(8230)}),s===se[2]&&X("div",{className:"dashicons dashicons-arrow-down-alt2",style:{borderLeft:"1px solid #fff",margin:"0 10px",paddingLeft:"10px"}}))})),M&&X("div",{id:"luxe-"+N+"-wrap",style:{display:s===se[6]?"table":void 0,width:s===se[6]?"100%":void 0}},s===se[6]&&X("div",{style:{display:"table-cell",background:void 0!==T?T:ue,padding:c.titleIconPadding,verticalAlign:"middle",borderRadius:G}},"0"===c.titleIconType?(G=void 0!==P?P:de,G=ae(c.titleIconSize,G),"nil"===c.titleIcon?"":G[c.titleIcon]):""!==c.titleIconImg?X("figure",{style:{width:null!=c.titleIconSize&&0!==c.titleIconSize?c.titleIconSize+"px":void 0}},X("img",{src:c.titleIconImg,width:null!=c.titleIconImgWidth&&0!==c.titleIconImgWidth?c.titleIconImgWidth:void 0,height:null!=c.titleIconImgHeight&&0!==c.titleIconImgHeight?c.titleIconImgHeight:void 0,alt:c.titleIconImgAlt})):""),X("div",{id:"luxe-"+N,className:void 0!==x&&""!=x&&void 0!==h&&""!=h&&void 0!==C&&0!==C?s+"-wrap"+I:s+"-wrap",style:{color:v||void 0,background:h||void 0!==x&&""!==x?ce(h,x,f,w,y,k):void 0,border:void 0!==i&&0!=i?i+"px "+z+" "+m:void 0,borderRadius:V,padding:b.top+"px "+b.right+"px "+b.bottom+"px "+b.left+"px",marginTop:s===se[0]&&void 0!==r.top&&0!=r.top?-r.top+"px":void 0,display:s===se[6]?"table-cell":void 0,width:s===se[6]?"100%":void 0}},s===se[3]&&X("div",{className:s+"-title-wrap",style:{padding:"3px 12px",color:void 0!==P?P:de,backgroundColor:void 0!==T?T:ue,margin:-b.top+"px 0 0 "+-b.left+"px",borderRadius:void 0!==u&&void 0!==i&&0!=i?"0 0 "+u+"px 0":void 0}},X("span",{className:s+"-icon"},(V=void 0!==P?P:de,ae(c.titleIconSize,V)[c.titleIcon])),S.map(function(e,t){return X(te.RichText,{className:s+"-title",value:e.title,placeholder:Z.__("Write title")+String.fromCharCode(8230),style:{width:""==e.title?"150px":void 0},onChange:function(e){return a.onTitleUpdate(t,e)}})})),s===se[3]?X("div",{className:s+"-main",style:{padding:b.top+"px 0 "+b.bottom+"px 0"}},X("div",{className:s+"-image-wrap",style:{float:"left",maxWidth:null!=c.imgSize&&0!==c.imgSize?c.imgSize+"%":void 0}},X(te.MediaUpload,{onSelect:function(e){return n({mediaURL:e.url,mediaALT:e.alt,mediaWidth:e.width,mediaHeight:e.height,mediaID:e.id})},type:"image",value:e.mediaID,render:function(e){return X(ee.Button,{className:c.mediaURL?void 0:"button button-large",onClick:e.open},c.mediaURL?X("figure",null,X("img",{src:c.mediaURL,style:{borderRadius:null!=c.imgRadius&&0!==c.imgRadius?c.imgRadius+"%":void 0}})):Z.__("Select image","luxeritas"))}}),X("div",{className:s+"-figcaption"},X(te.RichText,{className:s+"-text",value:c.figcaption,onChange:function(e){return n({figcaption:e})},placeholder:Z.__("Caption","luxeritas")+String.fromCharCode(8230)}))),X("div",{className:s+"-content",style:{textAlign:void 0!==p&&"none"!==p?p:void 0}},X(te.BlockControls,null,X(te.AlignmentToolbar,{value:p,onChange:function(e){return n({alignment:void 0!==e?e:"none"})}})),X(te.RichText,{tagName:"p",className:s+"-text",value:M.content,onChange:function(e){return a.onContentUpdate(e)},placeholder:Z.__("Write profile","luxeritas")+String.fromCharCode(8230)}),s===se[3]&&(c.twitterURL||c.facebookURL||c.instagramURL||c.pinterestURL||c.linkedURL||c.youtubeURL||c.emailAddress)&&X("div",{className:s+"-sns-box",style:{paddingTop:"2em"}},c.twitterURL&&X("span",{className:"luxe-pf-sns twitter"},W.twitterIcon),c.facebookURL&&X("span",{className:"luxe-pf-sns facebook"},W.facebookIcon),c.instagramURL&&X("span",{className:"luxe-pf-sns instagram"},W.instagramIcon),c.pinterestURL&&X("span",{className:"luxe-pf-sns pinterest"},W.pinterestIcon),c.linkedURL&&X("span",{className:"luxe-pf-sns linkedin"},W.linkedIcon),c.youtubeURL&&X("span",{className:"luxe-pf-sns youtube"},W.youtubeIcon),c.emailAddress&&X("span",{className:"luxe-pf-sns email"},W.emailIcon)))):X("div",{className:s+"-content",style:{textAlign:void 0!==p&&"none"!==p?p:void 0}},X(te.BlockControls,null,X(te.AlignmentToolbar,{value:p,onChange:function(e){return n({alignment:void 0!==e?e:"none"})}})),s===se[4]?X("div",{className:s+"-text-wrap",style:{textOrientation:void 0!==c.upright&&"1"==c.upright?"upright":void 0}},X(te.RichText,{tagName:"p",className:s+"-text",style:{height:s===se[4]&&void 0!==c.height&&0!=c.height?c.height+"px":void 0,color:!0===t.isSelected?"#000":void 0,background:!0===t.isSelected?"#fff":void 0,boxShadow:!0===t.isSelected?"0 0 0 2px rgba(149, 183, 238, 1) inset":void 0,padding:!0===t.isSelected?"10px":void 0},value:M.content,onChange:function(e){return a.onContentUpdate(e)},placeholder:Z.__("Write contents","luxeritas")+String.fromCharCode(8230)})):!1===R||!0===R&&void 0!==M.content&&""!=M.content?X(te.RichText,{tagName:"p",className:s+"-text",value:M.content,onChange:function(e){return a.onContentUpdate(e)},placeholder:Z.__("Write contents","luxeritas")+String.fromCharCode(8230)}):!0===R&&X(te.InnerBlocks,{templateLock:!1}))))),o&&X(te.InspectorControls,null,s===se[3]&&X(ee.PanelBody,{title:"SEO",initialOpen:!1},X(ee.CheckboxControl,{label:Z.__("Add structured data to represent a person.","luxeritas"),checked:c.schema,onChange:function(e){return n({schema:e})}})),s===se[3]&&X(ee.PanelBody,{title:Z.__("Social Media Links","luxeritas"),initialOpen:!1},(U=ee.TextControl,j=c.facebookURL,E=c.twitterURL,H=c.instagramURL,D=c.pinterestURL,F=c.linkedURL,q=c.youtubeURL,K=c.emailAddress,[X(U,{value:E,onChange:function(e){return n({twitterURL:e})},label:"Twitter URL"}),X(U,{value:j,onChange:function(e){return n({facebookURL:e})},label:"Facebook URL"}),X(U,{value:H,onChange:function(e){return n({instagramURL:e})},label:"Instagram URL"}),X(U,{value:D,onChange:function(e){return n({pinterestURL:e})},label:"pinterest URL"}),X(U,{value:F,onChange:function(e){return n({linkedURL:e})},label:"LinkedIn URL"}),X(U,{value:q,onChange:function(e){return n({youtubeURL:e})},label:"Youtube URL"}),X(U,{value:K,onChange:function(e){return n({emailAddress:e})},label:"E-mail"})])),s===se[3]&&X(ee.PanelBody,{title:Z.__("Image"),initialOpen:!0},X(ee.RangeControl,{label:Z.__("Image ratio","luxeritas")+" ( % )",min:0,max:100,value:c.imgSize,onChange:function(e){return n({imgSize:e||0})}}),X(ee.RangeControl,{label:Z.__("Image border radius","luxeritas")+" ( % )",min:0,max:100,value:c.imgRadius,onChange:function(e){return n({imgRadius:e||0})}})),s!==se[3]&&s!==se[4]&&X(ee.PanelBody,{title:Z.__("Block in block","luxeritas"),initialOpen:!0},X(ee.FormToggle,{id:"high-contrast-form-toggle",checked:R,onChange:function(){return n({nest:!R})}}),X("label",{style:{margin:"0 0 0 14px",fontSize:"13px"}},Z.__("Nest blocks","luxeritas"))),X(ee.PanelBody,{title:Z.__("Appearance","luxeritas"),initialOpen:!0},(s===se[0]||s===se[2])&&X("p",{className:"luxe-inspector-title"},s===se[0]&&X("div",{style:{marginBottom:"20px"}},X(ee.FormToggle,{id:"high-contrast-form-toggle",checked:c.titleWide,onChange:function(){return n({titleWide:!c.titleWide})}}),X("label",{style:{margin:"0 0 0 14px",fontSize:"13px"}},Z.__("Full width of title","luxeritas"))),Z.__("Title icon","luxeritas")),s===se[6]&&X("div",{style:{marginBottom:"24px"}},X(ee.RadioControl,{label:Z.__("Icon type","luxeritas"),selected:c.titleIconType,options:[{label:Z.__("icon","luxeritas"),value:"0"},{label:Z.__("image","luxeritas"),value:"1"}],onChange:function(e){return n({titleIconType:e||void 0})}})),(s===se[0]||s===se[2]||s===se[6]&&"0"===c.titleIconType)&&X(ee.Toolbar,{controls:Object.values({nil:"nil",pencil:"pencil",user:"user",coffee:"coffee",heart:"heart",star:"star",leaf:"leaf",check:"check",close:"close",exclamationt:"exclamationt",checkc:"checkc",closec:"closec",question:"question",exclamation:"exclamation",info:"info",gittip:"gittip"}).map(function(e,t){var o=ae(20,""),i=o.nil;return 1==t?i=o.pencil:2==t?i=o.user:3==t?i=o.coffee:4==t?i=o.heart:5==t?i=o.star:6==t?i=o.leaf:7==t?i=o.check:8==t?i=o.close:9==t?i=o.exclamationt:10==t?i=o.checkc:11==t?i=o.closec:12==t?i=o.question:13==t?i=o.exclamation:14==t?i=o.info:15==t&&(i=o.gittip),{subscript:"nil"===e?"Nil":void 0,icon:i,isActive:c.titleIcon===e,onClick:function(){return n({titleIcon:e})}}})}),s===se[3]&&X("p",{className:"luxe-inspector-title"},Z.__("Title icon","luxeritas")),s===se[3]&&X(ee.Toolbar,{controls:Object.values({pencil:"pencil",user:"user",coffee:"coffee",heart:"heart",leaf:"leaf",check:"check"}).map(function(e,t){var o=ae(20,""),i=o.pencil;return 1==t?i=o.user:2==t?i=o.coffee:3==t?i=o.heart:4==t?i=o.leaf:5==t&&(i=o.check),{icon:i,isActive:c.titleIcon===e,onClick:function(){return n({titleIcon:e})}}})}),s===se[6]&&"1"===c.titleIconType&&X("div",null,X(te.MediaUpload,{onSelect:function(e){return n({mediaID:e.id,titleIconImg:e.url,titleIconImgWidth:e.width,titleIconImgHeight:e.height,titleIconImgAlt:e.alt})},type:"image",value:e.mediaID,render:function(e){return X(ee.Button,{className:"button button-large",onClick:e.open},Z.__("Select image","luxeritas"))}}),c.titleIconImg&&X("span",{style:{marginLeft:"3px"}},X(ee.Button,{className:"button button-large",onClick:function(e){return n({titleIconImg:""})}},Z.__("Delete image","luxeritas"))),c.titleIconImg&&X("div",{style:{marginTop:"14px"}}),c.titleIconImg&&X("figure",null,X("img",{src:c.titleIconImg})),X("div",{style:{marginBottom:"24px"}})),(s===se[0]||s===se[6])&&X(ee.RangeControl,{label:Z.__("Icon size","luxeritas"),min:0,max:200,value:c.titleIconSize,onChange:function(e){return n({titleIconSize:e||0})}}),s===se[6]&&X(ee.RangeControl,{label:Z.__("Margin around icon","luxeritas"),min:0,max:50,value:c.titleIconPadding,onChange:function(e){return n({titleIconPadding:e||0})}}),s===se[4]&&X(ee.RangeControl,{label:Z.__("Height","luxeritas")+" ( "+Z.__("Automatic when input is 0","luxeritas")+" )",min:0,max:800,value:c.height,onChange:function(e){return n({height:e||0})}}),X(ee.RangeControl,{label:Z.__("Border thickness","luxeritas"),min:0,max:100,value:i,onChange:function(e){return n({weight:e||0})}}),s!==se[2]&&X(ee.RangeControl,{label:Z.__("Border radius","luxeritas"),min:0,max:100,value:u,onChange:function(e){return n({radius:e||0})}}),X(ee.RangeControl,{label:Z.__("Max width","luxeritas")+" ( "+Z.__("When input is 0, 100%","luxeritas")+" )",min:0,max:2e3,value:l,onChange:function(e){return n({maxWidth:e||0})}}),s===se[4]&&X(ee.RadioControl,{label:Z.__("Half-width alphanumeric orientation","luxeritas"),selected:c.upright,options:[{label:Z.__("Sideways","luxeritas"),value:"0"},{label:Z.__("Upright","luxeritas"),value:"1"}],onChange:function(e){return n({upright:e||void 0})}}),X("p",{className:"luxe-inspector-title"},Z.__("Border style","luxeritas")),X(ee.Toolbar,{controls:Object.values(oe).map(function(e,t){return{icon:"admin-customizer",isActive:z===e,onClick:function(){return n({style:e})},subscript:t+1}})}),X("p",{className:"luxe-inspector-title"},Z.__("Alignment","luxeritas")),X(te.AlignmentToolbar,{value:d,onChange:function(e){return n({align:e||void 0})}}),X(ne,{label:Z.__("Margin","luxeritas"),attributeKey:"blockMargin",attributes:c,setAttributes:n}),s!==se[2]&&X(ne,{label:Z.__("Padding","luxeritas"),attributeKey:"blockPadding",attributes:c,setAttributes:n}),s===se[0]&&X(ne,{label:Z.__("Title position","luxeritas"),attributeKey:"titlePosition",attributes:c,setAttributes:n})),X(ee.PanelBody,{title:Z.__("Background image","luxeritas"),initialOpen:!0},X(te.MediaUpload,{onSelect:function(e){return n({mediaID:e.id,backgroundImg:e.url,backgroundImgWidth:e.width,backgroundImgHeight:e.height})},type:"image",value:e.mediaID,render:function(e){return X(ee.Button,{className:"button button-large",onClick:e.open},Z.__("Select image","luxeritas"))}}),x&&X("span",{style:{marginLeft:"3px"}},X(ee.Button,{className:"button button-large",onClick:function(e){return n({backgroundImg:"",backgroundFixed:!1,backgroundSize:"auto",backgroundRepeat:"repeat",backgroundPosition:{x:.5,y:.5}})}},Z.__("Delete image","luxeritas"))),x&&X("div",{style:{marginTop:"14px"}},X("div",{style:{marginBottom:"14px"}},X(ee.FormToggle,{id:"high-contrast-form-toggle",checked:k,onChange:function(){return n(!0==!k?{backgroundFixed:!k,backgroundSize:"cover",backgroundRepeat:"repeat",backgroundParallax:0}:{backgroundFixed:!k})}}),X("label",{style:{margin:"0 0 0 14px",fontSize:"13px"}}),Z.__("Fixed Background","luxeritas")),X("label",{className:"components-base-control__label"},Z.__("Focal Point Picker","luxeritas")),X(ee.FocalPointPicker,{className:"components-base-control__margin-bottom_-20",url:x,value:f,onChange:function(e){return n({backgroundPosition:e})}}),X(ee.SelectControl,{className:"components-base-control__margin-bottom_16",label:Z.__("Repeat","luxeritas"),value:y,options:[{label:Z.__("repeat","luxeritas"),value:"repeat"},{label:Z.__("repeat-x","luxeritas"),value:"repeat-x"},{label:Z.__("repeat-y","luxeritas"),value:"repeat-y"},{label:Z.__("no-repeat","luxeritas"),value:"no-repeat"}],onChange:function(e){return n({backgroundRepeat:e||void 0})}}),X(ee.SelectControl,{className:"components-base-control__margin-bottom_16",label:Z.__("Size","luxeritas"),value:w,options:[{label:Z.__("auto","luxeritas"),value:"auto"},{label:Z.__("contain","luxeritas"),value:"contain"},{label:Z.__("cover","luxeritas"),value:"cover"},{label:Z.__("width: 100%, height: auto","luxeritas"),value:"100% auto"},{label:Z.__("width: auto, height: 100%","luxeritas"),value:"auto 100%"},{label:Z.__("width: 100%, height: 100%","luxeritas"),value:"100% 100%"}],onChange:function(e){return n({backgroundSize:e||void 0})}}),!k&&X(ee.RangeControl,{label:Z.__("Parallax","luxeritas"),min:0,max:100,value:_,onChange:function(e){return n({backgroundParallax:e||0})}}),!k&&X("div",null,X("p",{style:{fontSize:"12px"}},Z.__("* Parallax does not work on the post screen. Check on the preview screen.","luxeritas")),X("p",{style:{fontSize:"12px"}},Z.__("* Parallax does not work on AMP.","luxeritas"))))),s!==se[1]&&s!==se[4]&&X(te.PanelColorSettings,{title:s===se[6]?Z.__("Icon Color Settings","luxeritas"):Z.__("Title Color Settings","luxeritas"),initialOpen:!0,colorSettings:O}),void 0!==x&&""!=x&&L.splice(0,1)&&X(te.PanelColorSettings,{title:Z.__("Overlay"),initialOpen:!0,colorSettings:A}),void 0!==x&&""!=x&&X(ee.RangeControl,{label:Z.__("Background Opacity","luxeritas"),min:0,max:90,step:10,value:C,onChange:function(e){return n({backgroundOpacity:e||0})}}),X(te.PanelColorSettings,{title:Z.__("Color Settings","luxeritas"),initialOpen:!0,colorSettings:L})))}var U,j,E,H,D,F,q,K,V,G,Q=c.wide,y=c.type,w=c.rightLeft,Y=c.shadow,_=c.shadowType,O=c.shadowDensity,$=c.imgSizeToggle,A=c.imgRatio,x=c.imgSize,J=c.imgRadius,C=c.imgMargin,L=[{value:v,onChange:function(e){return n({textColor:e})},label:Z.__("Text color","luxeritas")},{value:h,onChange:function(e){return n({backgroundColor:e})},label:Z.__("Background color","luxeritas")},{value:m,onChange:function(e){return n({borderColor:e})},label:Z.__("Border color","luxeritas")}];return X(ie.Fragment,null,X("div",{className:s,style:{flexDirection:void 0!==w&&"1"===w?"row-reverse":void 0,maxWidth:void 0!==l&&0!=l?l+"px":void 0,marginTop:void 0!==g.top?g.top+"px":"10px",marginBottom:void 0!==g.bottom?g.bottom+"px":"30px",marginLeft:"right"===d||"center"===d?"auto":void 0,marginRight:"center"===d?"auto":void 0}},X("div",{className:s+"-image-wrap",style:{marginTop:void 0!==C.top&&0!=C.top?C.top+"px":void 0,marginBottom:void 0!==C.bottom&&0!=C.bottom?C.bottom+"px":void 0,maxWidth:!1===$&&null!=A&&0!==A?A+"%":void 0,width:!0===$&&void 0!==x?x+"px":void 0,minWidth:!0===$&&void 0!==x?x+"px":void 0}},X(te.MediaUpload,{onSelect:function(e){return n({mediaURL:e.url,mediaALT:e.alt,mediaWidth:e.width,mediaHeight:e.height,mediaID:e.id})},type:"image",value:e.mediaID,render:function(e){return X(ee.Button,{className:c.mediaURL?void 0:"button button-large",onClick:e.open},c.mediaURL?X("figure",null,X("img",{src:c.mediaURL,alt:c.mediaALT,width:c.mediaWidth,height:c.mediaHeight,style:{borderRadius:null!=J&&0!==J?J+"%":void 0}})):Z.__("Select image","luxeritas"))}}),X("div",{className:s+"-figcaption"},X(te.RichText,{className:s+"-text",value:c.figcaption,onChange:function(e){return n({figcaption:e})},placeholder:Z.__("Caption","luxeritas")+String.fromCharCode(8230)}))),M&&X("div",{className:s+"-wrap",style:{flex:void 0!==Q&&!1!==Q?"1":void 0}},X("div","0"===w?"0"===y?{className:s+"-left-before",style:{borderRight:"15px solid "+m}}:{className:s+"-left-think-before",style:{background:h||void 0,border:i+"px solid "+m,boxShadow:!0===Y?"0"===_?"0"===w?"3px 3px 8px rgba(0,0,0,."+O+")":"-3px 3px 8px rgba(0,0,0,."+O+")":"0"===w?"3px 3px 8px rgba(255,255,255,."+O+")":"-3px 3px 8px rgba(255,255,255,."+O+")":void 0}}:"0"===y?{className:s+"-right-before",style:{borderLeft:"15px solid "+m}}:{className:s+"-right-think-before",style:{background:h||void 0,border:i+"px solid "+m,boxShadow:!0===Y?"0"===_?"0"===w?"3px 3px 8px rgba(0,0,0,."+O+")":"-3px 3px 8px rgba(0,0,0,."+O+")":"0"===w?"3px 3px 8px rgba(255,255,255,."+O+")":"-3px 3px 8px rgba(255,255,255,."+O+")":void 0}}),X("div",{className:"0"===w?"0"===y?s+"-left-main":s+"-left-think":"0"===y?s+"-right-main":s+"-right-think",style:{color:v||void 0,background:h||void 0,border:void 0!==i&&0!=i?i+"px solid "+m:void 0,borderRadius:void 0!==u?u+"px":void 0,boxShadow:!0===Y?"0"===_?"0"===w?"3px 3px 8px rgba(0,0,0,."+O+")":"-3px 3px 8px rgba(0,0,0,."+O+")":"0"===w?"3px 3px 8px rgba(255,255,255,."+O+")":"-3px 3px 8px rgba(255,255,255,."+O+")":void 0,padding:b.top+"px "+b.right+"px "+b.bottom+"px "+b.left+"px"}},X("div","0"===w?"0"===y?{className:s+"-left-after",style:{borderRight:void 0!==h&&""!==h?"15px solid "+h:"15px solid #fff",left:-17+i+"px"}}:{className:s+"-left-think-after",style:{background:h||void 0,border:i+"px solid "+m,boxShadow:!0===Y?"0"===_?"0"===w?"3px 3px 8px rgba(0,0,0,."+O+")":"-3px 3px 8px rgba(0,0,0,."+O+")":"0"===w?"3px 3px 8px rgba(255,255,255,."+O+")":"-3px 3px 8px rgba(255,255,255,."+O+")":void 0}}:"0"===y?{className:s+"-right-after",style:{borderLeft:void 0!==h&&""!==h?"15px solid "+h:"15px solid #fff",right:-17+i+"px"}}:{className:s+"-right-think-after",style:{background:h||void 0,border:i+"px solid "+m,boxShadow:!0===Y?"0"===_?"0"===w?"3px 3px 8px rgba(0,0,0,."+O+")":"-3px 3px 8px rgba(0,0,0,."+O+")":"0"===w?"3px 3px 8px rgba(255,255,255,."+O+")":"-3px 3px 8px rgba(255,255,255,."+O+")":void 0}}),X("div",{className:s+"-content",style:{textAlign:void 0!==p&&"none"!==p?p:void 0}},X(te.BlockControls,null,X(te.AlignmentToolbar,{value:p,onChange:function(e){return n({alignment:void 0!==e?e:"none"})}})),X(te.RichText,{tagName:"p",className:s+"-text",style:{minWidth:void 0===M.content||""===M.content?"120px":void 0},value:M.content,onChange:function(e){return a.onContentUpdate(e)},placeholder:Z.__("Write contents","luxeritas")+String.fromCharCode(8230)}))))),o&&X(te.InspectorControls,null,X(ee.PanelBody,{title:Z.__("Image"),initialOpen:!0},X("div",{style:{marginBottom:"20px"}},X(ee.FormToggle,{id:"high-contrast-form-toggle",checked:$,onChange:function(){return n({imgSizeToggle:!$})}}),X("label",{style:{margin:"0 0 0 14px",fontSize:"13px"}},Z.__("Fix the size of the image","luxeritas"))),X(ee.RangeControl,!1===$?{label:Z.__("Image ratio","luxeritas")+" ( % )",min:0,max:100,value:A,onChange:function(e){return n({imgRatio:e||0})}}:{label:Z.__("Image size","luxeritas")+" ( "+Z.__("width: px","luxeritas")+" )",min:0,max:200,value:x,onChange:function(e){return n({imgSize:e||0})}}),X(ee.RangeControl,{label:Z.__("Image border radius","luxeritas")+" ( % )",min:0,max:100,value:J,onChange:function(e){return n({imgRadius:e||0})}}),X(ne,{label:Z.__("Image margin","luxeritas"),attributeKey:"imgMargin",attributes:c,setAttributes:n})),X(ee.PanelBody,{title:Z.__("Appearance","luxeritas"),initialOpen:!0},X("div",{style:{marginBottom:"20px"}},X(ee.FormToggle,{id:"high-contrast-form-toggle",checked:Q,onChange:function(){return n({wide:!Q})}}),X("label",{style:{margin:"0 0 0 14px",fontSize:"13px"}},Z.__("Full width","luxeritas"))),X(ee.RadioControl,{label:Z.__("Position","luxeritas"),selected:w,options:[{label:Z.__("Left","luxeritas"),value:"0"},{label:Z.__("Right","luxeritas"),value:"1"}],onChange:function(e){return n({rightLeft:e||void 0})}}),X(ee.RadioControl,{label:Z.__("Balloon type","luxeritas"),selected:y,options:[{label:Z.__("Normal conversation","luxeritas"),value:"0"},{label:Z.__("Thought","luxeritas"),value:"1"}],onChange:function(e){return n({type:e||void 0})}}),X("div",{style:{marginBottom:"20px"}},X(ee.FormToggle,{id:"high-contrast-form-toggle",checked:Y,onChange:function(){return n({shadow:!Y})}}),X("label",{style:{margin:"0 0 0 14px",fontSize:"13px"}}),Z.__("Shadow","luxeritas")),!0===Y&&X(ee.RadioControl,{selected:_,options:[{label:Z.__("Black shadow","luxeritas"),value:"0"},{label:Z.__("White shadow","luxeritas"),value:"1"}],onChange:function(e){return n({shadowType:e||void 0})}}),!0===Y&&X(ee.RangeControl,{label:Z.__("Shadow density","luxeritas"),min:1,max:9,value:O,onChange:function(e){return n({shadowDensity:e||0})}}),X(ee.RangeControl,{label:Z.__("Border thickness","luxeritas"),min:0,max:10,value:i,onChange:function(e){return n({weight:e||0})}}),X(ee.RangeControl,{label:Z.__("Border radius","luxeritas"),min:0,max:30,value:u,onChange:function(e){return n({radius:e||0})}}),X(ee.RangeControl,{label:Z.__("Max width","luxeritas")+" ( "+Z.__("When input is 0, 100%","luxeritas")+" )",min:0,max:2e3,value:l,onChange:function(e){return n({maxWidth:e||0})}}),X(ne,{label:Z.__("Margin","luxeritas"),attributeKey:"blockMargin",attributes:c,setAttributes:n}),X(ne,{label:Z.__("Padding","luxeritas"),attributeKey:"blockPadding",attributes:c,setAttributes:n})),X(te.PanelColorSettings,{title:Z.__("Color Settings","luxeritas"),initialOpen:!0,colorSettings:L})))}}]),c);function g(e){var t=e.attributes,o=e.className,i=t.nest,n=t.style,l=t.weight,r=t.radius,a=t.maxWidth,c=t.align,s=t.alignment,u=t.tabs,d=t.blockMargin,p=t.blockPadding,g=t.textColor,b=t.backgroundColor,h=t.borderColor,v=t.blockId,m=t.backgroundImg,x=t.backgroundPosition,f=t.backgroundFixed,k=t.backgroundRepeat,y=t.backgroundSize,w=t.backgroundOpacity,C=t.backgroundParallax,e=t.backgroundImgWidth,t=t.backgroundImgHeight,C=V(C);return X("div",{className:o,style:{maxWidth:void 0!==p&&0!=a?a+"px":void 0,marginTop:void 0!==d.top?d.top+"px":"10px",marginBottom:void 0!==d.bottom?d.bottom+"px":"30px",marginLeft:"right"===c||"center"===c?"auto":void 0,marginRight:"center"===c?"auto":void 0}},u.map(function(e,t){return X("div",{id:void 0===m||""==m||void 0===C||0==C||f?void 0:v,className:void 0!==m&&""!=m&&void 0!==_&&""!=_&&void 0!==w&&0!==w?o+"-content"+(void 0!==m&&""!=m&&void 0!==w&&""!=w&&b?" luxe-overlay-"+w:""):o+"-content",style:{color:g||void 0,background:void 0!==m&&""!=m?ce(b,m,x,y,k,f):void 0,backgroundColor:(void 0===m||""==m)&&b||void 0,border:void 0!==l&&0!=l?l+"px "+n+" "+h:void 0,borderRadius:void 0!==r?r+"px":void 0,padding:p.top+"px "+p.right+"px "+p.bottom+"px "+p.left+"px"}},""!=e.content?X(te.RichText.Content,{tagName:"p",value:e.content,style:{textAlign:void 0!==s&&"none"!==s?s:void 0}}):"",!0===i&&X(te.InnerBlocks.Content,null))}),void 0!==m&&""!=m&&void 0!==C&&0!=C&&!f&&X("script",null,K(v,C,x,t,e)))}function b(e){var t=e.attributes,o=e.className,i=t.height,n=t.upright,l=t.style,r=t.weight,a=t.radius,c=t.maxWidth,s=t.align,u=t.alignment,d=t.tabs,p=t.blockMargin,g=t.blockPadding,b=t.textColor,h=t.backgroundColor,v=t.borderColor,m=t.blockId,x=t.backgroundImg,f=t.backgroundPosition,k=t.backgroundFixed,y=t.backgroundRepeat,w=t.backgroundSize,C=t.backgroundOpacity,_=t.backgroundParallax,e=t.backgroundImgWidth,t=t.backgroundImgHeight,I="luxe-vw",_=V(_);return X("div",{className:o,style:{maxWidth:void 0!==g&&0!=c?c+"px":void 0,marginTop:void 0!==p.top?p.top+"px":"10px",marginBottom:void 0!==p.bottom?p.bottom+"px":"30px",marginLeft:"right"===s||"center"===s?"auto":void 0,marginRight:"center"===s?"auto":void 0}},d.map(function(e,t){return X("div",{id:void 0===x||""==x||void 0===_||0==_||k?void 0:m,className:void 0!==x&&""!=x&&void 0!==h&&""!=h&&"#f0f0ea"!==h&&void 0!==C&&0!==C?I+"-cont"+(void 0!==x&&""!=x&&void 0!==C&&""!=C&&h&&"#f0f0ea"!==h?" luxe-overlay-"+C:""):I+"-cont",style:{overflow:"auto",color:b||void 0,background:void 0!==x&&""!=x?ce(h,x,f,w,y,k):void 0,backgroundColor:(void 0===x||""==x)&&h||void 0,border:void 0!==r&&0!=r?r+"px "+l+" "+v:void 0,borderRadius:void 0!==a?a+"px":void 0,padding:g.top+"px "+g.right+"px "+g.bottom+"px "+g.left+"px",textAlign:void 0!==u&&"right"!==u?u:void 0,textOrientation:void 0!==n&&"1"==n?"upright":void 0}},X("div",{className:I+"-text"},X(te.RichText.Content,{tagName:"p",value:e.content,style:{height:void 0!==i&&0!=i?i+"px":void 0}})))}),void 0!==x&&""!=x&&void 0!==_&&0!=_&&!k&&X("script",null,K(m,_,f,t,e)))}function h(e){var t=e.attributes,n=e.className,l=t.style,r=t.weight,a=t.radius,o=t.maxWidth,i=t.align,c=t.alignment,s=t.tabs,u=t.blockMargin,d=t.blockPadding,p=t.titleWide,g=t.titleIcon,b=t.titleIconSize,h=t.titlePosition,v=t.titleBackgroundColor,m=t.titleTextColor,x=t.textColor,f=t.backgroundColor,k=t.borderColor,y=t.blockId,w=t.backgroundImg,C=t.backgroundPosition,_=t.backgroundFixed,I=t.backgroundRepeat,S=t.backgroundSize,M=t.backgroundOpacity,B=t.backgroundParallax,e=t.backgroundImgWidth,t=t.backgroundImgHeight,B=V(B);return X("div",{className:n,style:{maxWidth:void 0!==o&&0!=o?o+"px":void 0,marginTop:void 0!==u.top?u.top+"px":"10px",marginBottom:void 0!==u.bottom?u.bottom+"px":"30px",marginLeft:"right"===i||"center"===i?"auto":void 0,marginRight:"center"===i?"auto":void 0}},(void 0!==s[0].title&&""!=s[0].title&&"nil"===g||(void 0!==s[0].title||""!=s[0].title)&&"nil"!==g)&&s.map(function(e,t){var o;return void 0!==a&&0!=a&&(o=void 0!==h.top&&0!=h.top?a+"px":a+"px "+a+"px 0 0"),X("div",{className:n+"-title",style:{color:null!=m?m:de,backgroundColor:null!=v?v:ue,border:null!=v?"1px "+oe.SOLID+" "+v:"1px "+oe.SOLID+" "+ue,borderRadius:o,margin:void 0!==h.left&&0!=h.left?"0 "+h.left+"px":void 0,padding:"2px 14px",display:!1===p?"inline-flex":void 0,alignItems:!1===p?"center":void 0}},"nil"!==g&&X("span",{className:n+"-icon"},ae(b,void 0!==m?m:de)[g]),X(te.RichText.Content,{value:e.title,style:{textAlign:void 0!==c&&"none"!==c?c:void 0}}))}),s.map(function(e,t){var o,i=void 0!==w&&""!=w&&void 0!==M&&""!=M&&f?" luxe-overlay-"+M:"";return void 0!==a&&0!=a&&(o=void 0!==h.left&&0!=h.left?a+"px":!1===p?"0 "+a+"px "+a+"px "+a+"px":"0 0 "+a+"px "+a+"px"),X("div",{id:void 0===w||""==w||void 0===B||0==B||_?void 0:y,className:void 0!==w&&""!=w&&void 0!==f&&""!=f&&void 0!==M&&0!==M?n+"-content"+i:n+"-content",style:{color:x||void 0,background:void 0!==w&&""!=w?ce(f,w,C,S,I,_):void 0,backgroundColor:(void 0===w||""==w)&&f||void 0,border:void 0!==r&&0!=r?r+"px "+l+" "+k:void 0,borderRadius:o,padding:d.top+"px "+d.right+"px "+d.bottom+"px "+d.left+"px ",marginTop:void 0!==h.top&&0!=h.top?-h.top+"px":void 0,textAlign:void 0!==c&&"none"!==c?c:void 0}},""!=e.content?X(te.RichText.Content,{tagName:"p",value:e.content,style:{textAlign:void 0!==c&&"none"!==c?c:void 0}}):"",X(te.InnerBlocks.Content,null))}),void 0!==w&&""!=w&&void 0!==B&&0!=B&&!_&&X("script",null,K(y,B,C,t,e)))}function v(e){var t=e.attributes,i=e.className,n=t.style,l=t.weight,r=t.radius,o=t.maxWidth,a=t.align,c=t.alignment,s=t.tabs,u=t.blockMargin,d=t.blockPadding,p=t.titleIconType,g=t.titleIcon,b=t.titleIconImg,h=t.titleIconImgWidth,v=t.titleIconImgHeight,m=t.titleIconImgAlt,x=t.titleIconSize,f=t.titleIconPadding,k=t.titleBackgroundColor,y=t.titleTextColor,w=t.textColor,C=t.backgroundColor,_=t.borderColor,I=t.blockId,S=t.backgroundImg,M=t.backgroundPosition,B=t.backgroundFixed,N=t.backgroundRepeat,R=t.backgroundSize,z=t.backgroundOpacity,T=t.backgroundParallax,e=t.backgroundImgWidth,t=t.backgroundImgHeight,T=V(T);return X("div",{className:i,style:{display:"table",maxWidth:void 0!==o&&0!=o?o+"px":void 0,marginTop:void 0!==u.top?u.top+"px":"10px",marginBottom:void 0!==u.bottom?u.bottom+"px":"30px",marginLeft:"right"===a||"center"===a?"auto":void 0,marginRight:"center"===a?"auto":void 0}},s.map(function(e,t){var o;return void 0!==r&&0!=r&&(o=r+"px 0 0 "+r+"px"),X("div",{className:i+"-icon",style:{color:null!=y?y:de,backgroundColor:null!=k?k:ue,borderRadius:o,padding:0!=f&&""!=f?f+"px":void 0,display:"table-cell"}},"nil"!==g&&"0"===p?ae(x,void 0!==y?y:de)[g]:""!==b?X("figure",{style:{width:null!=x&&0!==x?x+"px":void 0}},X("img",{src:b,width:null!=h&&0!==h?h:void 0,height:null!=v&&0!==v?v:void 0,alt:m})):"",X(te.RichText.Content,{value:e.title,style:{textAlign:void 0!==c&&"none"!==c?c:void 0}}))}),s.map(function(e,t){var o;return void 0!==r&&0!=r&&(o="0 "+r+"px "+r+"px 0"),X("div",{id:void 0===S||""==S||void 0===T||0==T||B?void 0:I,className:void 0!==S&&""!=S&&void 0!==C&&""!=C&&void 0!==z&&0!==z?i+"-content"+(void 0!==S&&""!=S&&void 0!==z&&""!=z&&C?" luxe-overlay-"+z:""):i+"-content",style:{display:"table-cell",width:"100%",color:w||void 0,background:void 0!==S&&""!=S?ce(C,S,M,R,N,B):void 0,backgroundColor:(void 0===S||""==S)&&C||void 0,border:void 0!==l&&0!=l?l+"px "+n+" "+_:void 0,borderRadius:o,padding:d.top+"px "+d.right+"px "+d.bottom+"px "+d.left+"px ",textAlign:void 0!==c&&"none"!==c?c:void 0}},""!=e.content?X(te.RichText.Content,{tagName:"p",value:e.content,style:{textAlign:void 0!==c&&"none"!==c?c:void 0}}):"",X(te.InnerBlocks.Content,null))}),void 0!==S&&""!=S&&void 0!==T&&0!=T&&!B&&X("script",null,K(I,T,M,t,e)))}function m(e){var t=e.attributes,o=e.className,i=t.blockId,n=t.style,l=t.weight,r=t.maxWidth,a=t.align,c=t.alignment,s=t.tabs,u=t.blockMargin,d=t.titleIcon,p=t.titleBackgroundColor,g=t.titleTextColor,b=t.textColor,h=t.backgroundColor,v=t.borderColor,m=t.backgroundImg,x=t.backgroundPosition,f=t.backgroundFixed,k=t.backgroundRepeat,y=t.backgroundSize,w=t.backgroundOpacity,C=t.backgroundParallax,e=t.backgroundImgWidth,t=t.backgroundImgHeight,C=V(C);return X("div",{className:o,style:{maxWidth:void 0!==r&&0!=r?r+"px":void 0,marginTop:void 0!==u.top?u.top+"px":"10px",marginBottom:void 0!==u.bottom?u.bottom+"px":"30px",marginLeft:"right"===a||"center"===a?"auto":void 0,marginRight:"center"===a?"auto":void 0}},s.map(function(e,t){return X("input",{id:i,className:"acb",type:"checkbox",style:{display:"none"}})}),s.map(function(e,t){return X("label",{className:"acl",for:i,style:{color:null!=g?g:de,backgroundColor:null!=p?p:ue,border:null!=p?"1px "+oe.SOLID+" "+p:"1px "+oe.SOLID+" "+ue,display:"flex",margin:0}},X("div",{className:"act",style:{padding:"5px 15px",flex:"1 0"}},"nil"!==d&&ae(18,void 0!==g?g:de)[d],X("span",null,e.title)),X("div",{className:"aci",style:{margin:"5px 0",padding:"0 15px",borderLeft:"1px solid #fff"}}))}),s.map(function(e,t){return X("div",{id:void 0===m||""==m||void 0===C||0==C||f?void 0:"p-"+i,className:void 0!==m&&""!=m&&void 0!==h&&""!=h&&void 0!==w&&0!==w?"acc"+(void 0!==m&&""!=m&&void 0!==w&&""!=w&&h?" luxe-overlay-"+w:""):"acc",style:{color:b||void 0,background:void 0!==m&&""!=m?ce(h,m,x,y,k,f):void 0,backgroundColor:(void 0===m||""==m)&&h||void 0,border:void 0!==l&&0!=l?l+"px "+n+" "+v:void 0,textAlign:void 0!==c&&"none"!==c?c:void 0}},""!=e.content?X(te.RichText.Content,{tagName:"p",value:e.content,style:{textAlign:void 0!==c&&"none"!==c?c:void 0}}):"",X(te.InnerBlocks.Content,null))}),void 0!==m&&""!=m&&void 0!==C&&0!=C&&!f&&X("script",null,K("p-"+i,C,x,t,e)))}function x(e){var t=e.attributes,o=e.className,i=t.style,n=t.weight,l=t.radius,r=t.maxWidth,a=t.align,c=t.alignment,s=t.tabs,e=t.blockMargin,u=t.blockPadding,d=t.titleTextColor,p=t.titleBackgroundColor,g=t.titleIcon,b=t.titleIconSize,h=t.textColor,v=t.backgroundColor,m=t.borderColor,x=t.blockId,f=t.backgroundImg,k=t.backgroundPosition,y=t.backgroundFixed,w=t.backgroundRepeat,C=t.backgroundSize,_=t.backgroundOpacity,I=t.backgroundParallax,S=t.backgroundImgWidth,M=t.backgroundImgHeight,B=t.schema,N=t.imgSize,R=t.imgRadius,z=t.mediaURL,T=t.mediaALT,P=t.mediaWidth,O=t.mediaHeight,L=t.figcaption,A=t.facebookURL,W=t.twitterURL,U=t.instagramURL,j=t.pinterestURL,E=t.linkedURL,H=t.youtubeURL,D=t.emailAddress,F=re(),q="luxe-pf",I=V(I);return X("div",{className:o,itemscope:B?"":void 0,itemtype:B?"https://schema.org/Person":void 0,style:{maxWidth:void 0!==u&&0!=r?r+"px":void 0,marginTop:void 0!==e.top?e.top+"px":"10px",marginBottom:void 0!==e.bottom?e.bottom+"px":"30px",marginLeft:"right"===a||"center"===a?"auto":void 0,marginRight:"center"===a?"auto":void 0}},s.map(function(e,t){return X("div",{id:void 0===f||""==f||void 0===I||0==I||y?void 0:x,className:void 0!==f&&""!=f&&void 0!==v&&""!=v&&void 0!==_&&0!==_?q+"-cont"+(void 0!==f&&""!=f&&void 0!==_&&""!=_&&v?" luxe-overlay-"+_:""):q+"-cont",style:{color:h||void 0,background:void 0!==f&&""!=f?ce(v,f,k,C,w,y):void 0,backgroundColor:(void 0===f||""==f)&&v||void 0,border:void 0!==n&&0!=n?n+"px "+i+" "+m:void 0,borderRadius:void 0!==l&&0!=l?l+"px":void 0,padding:u.top+"px "+u.right+"px "+u.bottom+"px "+u.left+"px"}},X("div",{className:q+"-wrap"},null!=e.title&&""!=e.title&&X("div",{className:q+"-title-wrap",style:{margin:-u.top+"px 0 0 "+-u.left+"px",padding:"3px 12px",textAlign:void 0!==c&&"none"!==c?c:void 0,color:d||void 0,backgroundColor:p||void 0,borderRadius:void 0!==l&&0!=l?"0 0 "+l+"px 0":void 0}},X("span",{className:q+"-icon"},ae(b,d||void 0)[g]),X(te.RichText.Content,{className:q+"-title",tagName:"span",value:e.title})),X("div",{className:q+"-main",style:{padding:u.top+"px 0 "+u.bottom+"px 0"}},null!=z&&""!=z&&X("figure",{style:{float:"left",maxWidth:null!=N&&0!==N?N+"%":void 0}},X("img",{src:z,alt:null!=T?T:void 0,width:null!=P?P:void 0,height:null!=O?O:void 0,itemprop:B?"image":void 0,style:{borderRadius:null!=R&&0!==R?R+"%":void 0}}),null!=L&&""!=L&&X("figcaption",{itemprop:B?"name":void 0},X(te.RichText.Content,{value:L}))),X("div",{className:q+"-text-wrap",style:{flex:"1"}},X(te.RichText.Content,{className:q+"-text",tagName:"p",value:e.content,itemprop:B?"description":void 0,style:{margin:0,textAlign:void 0!==c&&"none"!==c?c:void 0}}),(W||A||U||j||E||H||D)&&X("div",{className:q+"-sns-box",style:{paddingTop:"2em"}},W&&X("a",{className:"luxe-pf-sns twitter",href:W,target:"_blank",rel:"noopener noreferrer",itemprop:"sameAs"},F.twitterIcon),A&&X("a",{className:"luxe-pf-sns facebook",href:A,target:"_blank",rel:"noopener noreferrer",itemprop:"sameAs"},F.facebookIcon),U&&X("a",{className:"luxe-pf-sns instagram",href:U,target:"_blank",rel:"noopener noreferrer",itemprop:"sameAs"},F.instagramIcon),j&&X("a",{className:"luxe-pf-sns pinterest",href:j,target:"_blank",rel:"noopener noreferrer",itemprop:"sameAs"},F.pinterestIcon),E&&X("a",{className:"luxe-pf-sns linkedin",href:E,target:"_blank",rel:"noopener noreferrer",itemprop:"sameAs"},F.linkedIcon),H&&X("a",{className:"luxe-pf-sns youtube",href:H,target:"_blank",rel:"noopener noreferrer",itemprop:"sameAs"},F.youtubeIcon),D&&X("a",{className:"luxe-pf-sns email",href:"mailto:"+D,itemprop:B?"email":void 0},F.emailIcon))))),X("div",{style:{clear:"both"}}),void 0!==f&&""!=f&&void 0!==I&&0!=I&&!y&&X("script",null,K(x,I,k,M,S)))}))}function f(e){var t=e.attributes,o=e.className,i=t.wide,n=t.rightLeft,l=t.type,r=t.shadow,a=t.shadowType,c=t.shadowDensity,s=t.weight,u=t.radius,d=t.maxWidth,p=t.align,g=t.alignment,b=t.tabs,h=t.blockMargin,v=t.blockPadding,m=t.textColor,x=t.backgroundColor,f=t.borderColor,k=t.imgSizeToggle,y=t.imgRatio,w=t.imgSize,C=t.imgRadius,_=t.imgMargin,I=t.mediaURL,S=t.mediaALT,M=t.mediaWidth,B=t.mediaHeight,e=t.figcaption,t="luxe-bl";return X("div",{className:o,style:{display:"flex",flexDirection:void 0!==n&&"1"===n?"row-reverse":void 0,maxWidth:void 0!==v&&0!=d?d+"px":void 0,marginTop:void 0!==h.top?h.top+"px":"10px",marginBottom:void 0!==h.bottom?h.bottom+"px":"30px",marginLeft:"right"===p||"center"===p?"auto":void 0,marginRight:"center"===p?"auto":void 0}},null!=I&&""!=I&&X("figure",{style:{marginTop:void 0!==_.top&&0!=_.top?_.top+"px":void 0,marginBottom:void 0!==_.bottom&&0!=_.bottom?_.bottom+"px":void 0,maxWidth:!1===k&&null!=y&&0!==y?y+"%":void 0,width:!0===k&&void 0!==w?w+"px":void 0,minWidth:!0===k&&void 0!==w?w+"px":void 0}},X("img",{src:I,alt:null!=S?S:void 0,width:null!=M?M:void 0,height:null!=B?B:void 0,style:{borderRadius:null!=C&&0!==C?C+"%":void 0}}),null!=e&&""!=e&&X("figcaption",{className:t+"-cap"},X(te.RichText.Content,{value:e}))),X("div",{className:t+"-wrap",style:{flex:void 0!==i&&!1!==i?"1":void 0}},X("div","0"===n?"0"===l?{className:t+"-lbf",style:{borderRight:"15px solid "+f}}:{className:t+"-tk-lbf",style:{background:x||void 0,border:s+"px solid "+f,boxShadow:!0===r?"0"===a?"0"===n?"3px 3px 8px rgba(0,0,0,."+c+")":"-3px 3px 8px rgba(0,0,0,."+c+")":"0"===n?"3px 3px 8px rgba(255,255,255,."+c+")":"-3px 3px 8px rgba(255,255,255,."+c+")":void 0}}:"0"===l?{className:t+"-rbf",style:{borderLeft:"15px solid "+f}}:{className:t+"-tk-rbf",style:{background:x||void 0,border:s+"px solid "+f,boxShadow:!0===r?"0"===a?"0"===n?"3px 3px 8px rgba(0,0,0,."+c+")":"-3px 3px 8px rgba(0,0,0,."+c+")":"0"===n?"3px 3px 8px rgba(255,255,255,."+c+")":"-3px 3px 8px rgba(255,255,255,."+c+")":void 0}}),X("div",{className:"0"===n?"0"===l?t+"-lmain":t+"-ltk":"0"===l?t+"-rmain":t+"-rtk",style:{color:m||void 0,background:x||void 0,border:void 0!==s&&0!=s?s+"px solid "+f:void 0,borderRadius:void 0!==u?u+"px":void 0,boxShadow:!0===r?"0"===a?"0"===n?"3px 3px 8px rgba(0,0,0,."+c+")":"-3px 3px 8px rgba(0,0,0,."+c+")":"0"===n?"3px 3px 8px rgba(255,255,255,."+c+")":"-3px 3px 8px rgba(255,255,255,."+c+")":void 0,padding:v.top+"px "+v.right+"px "+v.bottom+"px "+v.left+"px "}},X("div","0"===n?"0"===l?{className:t+"-laf",style:{borderRight:void 0!==x&&""!==x?"15px solid "+x:"15px solid #fff",left:-17+s+"px"}}:{className:t+"-tk-laf",style:{background:x||void 0,border:s+"px solid "+f,boxShadow:!0===r?"0"===a?"0"===n?"3px 3px 8px rgba(0,0,0,."+c+")":"-3px 3px 8px rgba(0,0,0,."+c+")":"0"===n?"3px 3px 8px rgba(255,255,255,."+c+")":"-3px 3px 8px rgba(255,255,255,."+c+")":void 0}}:"0"===l?{className:t+"-raf",style:{borderLeft:void 0!==x&&""!==x?"15px solid "+x:"15px solid #fff",right:-17+s+"px"}}:{className:t+"-tk-raf",style:{background:x||void 0,border:s+"px solid "+f,boxShadow:!0===r?"0"===a?"0"===n?"3px 3px 8px rgba(0,0,0,."+c+")":"-3px 3px 8px rgba(0,0,0,."+c+")":"0"===n?"3px 3px 8px rgba(255,255,255,."+c+")":"-3px 3px 8px rgba(255,255,255,."+c+")":void 0}}),X(te.RichText.Content,{tagName:"p",value:b[0].content,style:{textAlign:void 0!==g&&"none"!==g?g:void 0}}))))}n.propTypes={attributes:t.a.shape({nest:t.a.boolean,tabs:t.a.arrayOf(t.a.shape({title:t.a.string,content:t.a.string})),blockId:t.a.string,titleBackgroundColor:t.a.string,titleTextColor:t.a.string,backgroundColor:t.a.string,textColor:t.a.string,borderColor:t.a.string,style:t.a.string,weight:t.a.number,radius:t.a.number,maxWidth:t.a.number,align:t.a.string,alignment:t.a.string,blockMargin:t.a.shape({top:t.a.number,bottom:t.a.number}),blockPadding:t.a.shape({top:t.a.number,right:t.a.number,bottom:t.a.number,left:t.a.number})}).isRequired,isSelected:t.a.bool.isRequired,className:t.a.string.isRequired,setAttributes:t.a.func.isRequired},t=s(),i.registerBlockType("luxe-blocks/border-block",{title:Z.__("Border block","luxeritas"),description:Z.__("Paragraph with a border.","luxeritas"),icon:function(){return X("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24"},X("path",{d:"M18.984 18v-12h-13.969v12h13.969zM18.984 3.984q0.797 0 1.406 0.609t0.609 1.406v12q0 0.797-0.609 1.406t-1.406 0.609h-13.969q-0.797 0-1.406-0.609t-0.609-1.406v-12q0-0.797 0.609-1.406t1.406-0.609h13.969z",fill:"#333"}))},category:"luxe-blocks",keywords:[Z.__("border")],attributes:t,transforms:{from:[{type:"block",blocks:["core/paragraph","core/verse"],transform:function(e){return wp.blocks.createBlock("luxe-blocks/border-block",{tabs:[{content:e.content}]})}},{type:"block",blocks:["luxe-blocks/topic","luxe-blocks/accordion","luxe-blocks/vertical"],transform:function(e){return wp.blocks.createBlock("luxe-blocks/border-block",p(e))}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){return wp.blocks.createBlock("core/paragraph",{content:e.tabs[0].content})}},{type:"block",blocks:["core/verse"],transform:function(e){return wp.blocks.createBlock("core/verse",{content:e.tabs[0].content})}},{type:"block",blocks:["luxe-blocks/topic"],transform:function(e){return wp.blocks.createBlock("luxe-blocks/topic",p(e))}},{type:"block",blocks:["luxe-blocks/accordion"],transform:function(e){e=p(e);return delete e.radius,delete e.blockPadding,wp.blocks.createBlock("luxe-blocks/accordion",e)}},{type:"block",blocks:["luxe-blocks/vertical"],transform:function(e){e=p(e);return delete e.radius,delete e.blockPadding,wp.blocks.createBlock("luxe-blocks/vertical",e)}}]},edit:n,save:function(e){var t=e.className,e=e.attributes;return X(g,{className:t,attributes:e})}}),(t=s()).titleWide={type:"boolean",default:!1},t.titlePosition={type:"object",default:{top:0,left:0}},t.titleBackgroundColor={type:"string",default:ue},t.titleTextColor={type:"string",default:de},t.titleIcon={type:"string",default:"nil"},t.titleIconSize={type:"number",default:18},i.registerBlockType("luxe-blocks/topic",{title:Z.__("Topic","luxeritas"),description:Z.__("Titled topic","luxeritas"),icon:function(){return X("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-3 -3 34 34",width:"24",height:"24"},X("path",{d:"M4 22h20v-12h-20v12zM28 4.5v19c0 1.375-1.125 2.5-2.5 2.5h-23c-1.375 0-2.5-1.125-2.5-2.5v-19c0-1.375 1.125-2.5 2.5-2.5h23c1.375 0 2.5 1.125 2.5 2.5z",fill:"#333"}))},category:"luxe-blocks",keywords:[Z.__("topic")],attributes:t,transforms:{from:[{type:"block",blocks:["core/paragraph","core/verse"],transform:function(e){return wp.blocks.createBlock("luxe-blocks/topic",{tabs:[{content:e.content}]})}},{type:"block",blocks:["luxe-blocks/border-block","luxe-blocks/accordion","luxe-blocks/vertical"],transform:function(e){return wp.blocks.createBlock("luxe-blocks/topic",p(e))}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){return wp.blocks.createBlock("core/paragraph",{content:e.tabs[0].content})}},{type:"block",blocks:["core/verse"],transform:function(e){return wp.blocks.createBlock("core/verse",{content:e.tabs[0].content})}},{type:"block",blocks:["luxe-blocks/border-block"],transform:function(e){e=p(e);return delete e.titleBackgroundColor,delete e.titleTextColor,wp.blocks.createBlock("luxe-blocks/border-block",e)}},{type:"block",blocks:["luxe-blocks/accordion"],transform:function(e){e=p(e);return delete e.radius,delete e.blockPadding,wp.blocks.createBlock("luxe-blocks/accordion",e)}},{type:"block",blocks:["luxe-blocks/vertical"],transform:function(e){e=p(e);return delete e.radius,delete e.blockPadding,wp.blocks.createBlock("luxe-blocks/vertical",e)}}]},edit:n,save:function(e){var t=e.className,e=e.attributes;return X(h,{className:t,attributes:e})}}),(t=s()).titleBackgroundColor={type:"string",default:ue},t.titleTextColor={type:"string",default:de},t.titleIconType={type:"string",default:"0"},t.titleIcon={type:"string",default:"info"},t.titleIconSize={type:"number",default:24},t.titleIconPadding={type:"number",default:14},t.titleIconImg={type:"string",default:""},t.titleIconImgWidth={type:"number",default:0},t.titleIconImgHeight={type:"number",default:0},t.titleIconImgAlt={type:"string",default:""},t.weight.default=0,t.backgroundColor.default="#d5eaff",i.registerBlockType("luxe-blocks/notification",{title:Z.__("Notification","luxeritas"),description:Z.__("Notification block with icon","luxeritas"),icon:function(){return X("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-1 -1 30 34",width:"24",height:"24"},X("path",{d:"M14 32c-2.208 0-3.998-1.791-3.998-4h7.996c0 2.209-1.791 4-3.998 4zM27.462 22.643c0.375 0.403 0.541 0.885 0.538 1.357-0.006 1.025-0.811 2-2.006 2h-23.988c-1.195 0-1.999-0.975-2.006-2-0.003-0.472 0.163-0.954 0.538-1.357 1.207-1.297 3.467-3.249 3.467-9.643 0-4.856 3.405-8.744 7.996-9.697v-1.303c0-1.104 0.895-2 1.999-2s1.999 0.896 1.999 2v1.303c4.591 0.954 7.996 4.841 7.996 9.697 0 6.394 2.259 8.346 3.467 9.643z",fill:"#333"}))},category:"luxe-blocks",keywords:[Z.__("notification")],attributes:t,transforms:{from:[{type:"block",blocks:["core/paragraph","core/verse"],transform:function(e){return wp.blocks.createBlock("luxe-blocks/notification",{tabs:[{content:e.content}]})}},{type:"block",blocks:["luxe-blocks/border-block"],transform:function(e){return wp.blocks.createBlock("luxe-blocks/notification",p(e))}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){return wp.blocks.createBlock("core/paragraph",{content:e.tabs[0].content})}},{type:"block",blocks:["core/verse"],transform:function(e){return wp.blocks.createBlock("core/verse",{content:e.tabs[0].content})}},{type:"block",blocks:["luxe-blocks/border-block"],transform:function(e){e=p(e);return delete e.titleBackgroundColor,delete e.titleTextColor,wp.blocks.createBlock("luxe-blocks/border-block",e)}}]},edit:n,save:function(e){var t=e.className,e=e.attributes;return X(v,{className:t,attributes:e})}}),(t=s()).titleBackgroundColor={type:"string",default:ue},t.titleTextColor={type:"string",default:de},t.titleIcon={type:"string",default:"nil"},t.borderColor.default=ue,i.registerBlockType("luxe-blocks/accordion",{title:Z.__("Accordion","luxeritas"),description:Z.__("Accordion block that opens and closes by clicking the title.","luxeritas"),icon:function(){return X("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 28 20",width:"24",height:"24"},X("path",{d:"M24 27.016v0.984h-22v-0.984h22zM23.984 26.031v0.5h-21.984v-0.5h21.984zM23.984 24.563v0.484h-21.984v-0.484h21.984zM23.984 22.109v0.484h-21.984v-0.484h21.984zM23.984 19.656v0.969h-21.984v-0.969h21.984zM23.984 17.687v0.484h-21.984v-0.484h21.984zM23.984 16.703v0.484h-21.984v-0.484h21.984zM23.984 15.719v0.484h-21.984v-0.484h21.984zM23.984 13.266v0.984h-21.984v-0.984h21.984zM23.984 10.813v0.984h-21.984v-0.984h21.984zM23.984 8.844v0.984h-21.984v-0.984h21.984zM23.984 6.875v0.984h-21.984v-0.984h21.984zM23.984 5.406v0.984h-21.984v-0.984h21.984zM23.984 2.453v1.469h-21.984v-1.469h21.984zM23.984 1.469v0.5h-21.984v-0.5h21.984zM24 0v0.984h-22v-0.984h22z",fill:"#333"}))},category:"luxe-blocks",keywords:[Z.__("Accordion")],attributes:t,transforms:{from:[{type:"block",blocks:["core/paragraph","core/verse"],transform:function(e){return wp.blocks.createBlock("luxe-blocks/accordion",{tabs:[{content:e.content}]})}},{type:"block",blocks:["luxe-blocks/border-block","luxe-blocks/topick","luxe-blocks/vertical"],transform:function(e){return wp.blocks.createBlock("luxe-blocks/accordion",{tabs:[{content:e.tabs[0].content}]})}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){return wp.blocks.createBlock("core/paragraph",{content:e.tabs[0].content})}},{type:"block",blocks:["core/verse"],transform:function(e){return wp.blocks.createBlock("core/verse",{content:e.tabs[0].content})}},{type:"block",blocks:["luxe-blocks/border-block"],transform:function(e){e=p(e);return delete e.titleBackgroundColor,delete e.titleTextColor,wp.blocks.createBlock("luxe-blocks/border-block",e)}},{type:"block",blocks:["luxe-blocks/topick"],transform:function(e){return wp.blocks.createBlock("luxe-blocks/topick",p(e))}},{type:"block",blocks:["luxe-blocks/vertical"],transform:function(e){e=p(e);return delete e.titleBackgroundColor,delete e.titleTextColor,wp.blocks.createBlock("luxe-blocks/vertical",e)}}]},edit:n,save:function(e){var t=e.className,e=e.attributes;return X(m,{className:t,attributes:e})}}),(t=s()).mediaURL={type:"src",default:""},t.mediaALT={type:"string",default:""},t.mediaWidth={type:"number",default:""},t.mediaHeight={type:"number",default:""},t.figcaption={type:"string",default:""},t.titleBackgroundColor={type:"string",default:"#333"},t.titleTextColor={type:"string",default:de},t.titleIcon={type:"string",default:"pencil"},t.titleIconSize={type:"number",default:16},t.facebookURL={type:"string"},t.twitterURL={type:"string"},t.instagramURL={type:"string"},t.pinterestURL={type:"string"},t.linkedURL={type:"string"},t.youtubeURL={type:"string"},t.emailAddress={type:"string"},t.imgSize={type:"number",default:25},t.imgRadius={type:"number",default:0},t.schema={type:"boolean",default:!1},t.borderColor.default="#999",t.style.default=oe.DOUBLE,t.weight.default=4,t.radius.default=4,t.blockPadding.default.top=20,t.blockPadding.default.right=10,t.blockPadding.default.bottom=10,t.blockPadding.default.left=10,i.registerBlockType("luxe-blocks/profile",{title:Z.__("Profile","luxeritas"),description:Z.__("Displaying personal profiles.","luxeritas"),icon:function(){return X("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 28",width:"24",height:"24"},X("path",{d:"M20 21.859c0 2.281-1.5 4.141-3.328 4.141h-13.344c-1.828 0-3.328-1.859-3.328-4.141 0-4.109 1.016-8.859 5.109-8.859 1.266 1.234 2.984 2 4.891 2s3.625-0.766 4.891-2c4.094 0 5.109 4.75 5.109 8.859zM16 8c0 3.313-2.688 6-6 6s-6-2.688-6-6 2.688-6 6-6 6 2.688 6 6z",fill:"#333"}))},category:"luxe-blocks",keywords:[Z.__("profile")],attributes:t,transforms:{},edit:n,save:function(e){var t=e.className,e=e.attributes;return X(x,{className:t,attributes:e})}}),(t=s()).height={type:"number",default:0},t.upright={type:"string",default:"0"},t.alignment.default="right",t.backgroundColor.default="#f0f0ea",t.borderColor.default="#ddd",i.registerBlockType("luxe-blocks/vertical",{title:Z.__("Vertical writing","luxeritas"),description:Z.__("Block of vertical writing.","luxeritas"),icon:function(){return X("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-3 0 36 28",width:"24",height:"24"},X("path",{d:"M6 28h-2c-0.547 0-1-0.453-1-1v-26c0-0.547 0.453-1 1-1h2c0.547 0 1 0.453 1 1v26c0 0.547-0.453 1-1 1zM12 22h-2c-0.547 0-1-0.453-1-1v-20c0-0.547 0.453-1 1-1h2c0.547 0 1 0.453 1 1v20c0 0.547-0.453 1-1 1zM18 26h-2c-0.547 0-1-0.453-1-1v-24c0-0.547 0.453-1 1-1h2c0.547 0 1 0.453 1 1v24c0 0.547-0.453 1-1 1zM24 20h-2c-0.547 0-1-0.453-1-1v-18c0-0.547 0.453-1 1-1h2c0.547 0 1 0.453 1 1v18c0 0.547-0.453 1-1 1z",fill:"#333"}))},category:"luxe-blocks",keywords:[Z.__("vertical")],attributes:t,transforms:{from:[{type:"block",blocks:["core/paragraph","core/verse"],transform:function(e){return wp.blocks.createBlock("luxe-blocks/vertical",{tabs:[{content:e.content}]})}},{type:"block",blocks:["luxe-blocks/border-block","luxe-blocks/topick","luxe-blocks/accordion"],transform:function(e){return wp.blocks.createBlock("luxe-blocks/vertical",{tabs:[{content:e.tabs[0].content}]})}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){return wp.blocks.createBlock("core/paragraph",{content:e.tabs[0].content})}},{type:"block",blocks:["core/verse"],transform:function(e){return wp.blocks.createBlock("core/verse",{content:e.tabs[0].content})}},{type:"block",blocks:["luxe-blocks/border-block"],transform:function(e){e=p(e);return delete e.titleBackgroundColor,delete e.titleTextColor,wp.blocks.createBlock("luxe-blocks/border-block",e)}},{type:"block",blocks:["luxe-blocks/topick"],transform:function(e){return wp.blocks.createBlock("luxe-blocks/topick",p(e))}},{type:"block",blocks:["luxe-blocks/accordion"],transform:function(e){return wp.blocks.createBlock("luxe-blocks/accordion",p(e))}}]},edit:n,save:function(e){var t=e.className,e=e.attributes;return X(b,{className:t,attributes:e})}}),(t=s()).mediaURL={type:"src",default:""},t.mediaALT={type:"string",default:""},t.mediaWidth={type:"number",default:""},t.mediaHeight={type:"number",default:""},t.figcaption={type:"string",default:""},t.imgSizeToggle={type:"boolean",default:!1},t.imgRatio={type:"number",default:25},t.imgSize={type:"number",default:90},t.imgRadius={type:"number",default:0},t.imgMargin={type:"number",default:0},t.imgMargin={type:"object",default:{top:0,bottom:0}},t.wide={type:"boolean",default:!1},t.rightLeft={type:"string",default:"0"},t.type={type:"string",default:"0"},t.shadow={type:"boolean",default:!1},t.shadowType={type:"string",default:"0"},t.shadowDensity={type:"number",default:4},t.borderColor.default="#808080",t.weight.default=3,t.radius.default=20,i.registerBlockType("luxe-blocks/balloon",{title:Z.__("Speech balloon","luxeritas"),description:Z.__("This block is a comic style speach balloon.","luxeritas"),icon:function(){return X("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 28 28",width:"24",height:"24"},X("path",{d:"M14 6c-6.5 0-12 3.656-12 8 0 2.328 1.563 4.547 4.266 6.078l1.359 0.781-0.422 1.5c-0.297 1.109-0.688 1.969-1.094 2.688 1.578-0.656 3.016-1.547 4.297-2.672l0.672-0.594 0.891 0.094c0.672 0.078 1.359 0.125 2.031 0.125 6.5 0 12-3.656 12-8s-5.5-8-12-8zM28 14c0 5.531-6.266 10-14 10-0.766 0-1.531-0.047-2.266-0.125-2.047 1.813-4.484 3.094-7.187 3.781-0.562 0.156-1.172 0.266-1.781 0.344h-0.078c-0.313 0-0.594-0.25-0.672-0.594v-0.016c-0.078-0.391 0.187-0.625 0.422-0.906 0.984-1.109 2.109-2.047 2.844-4.656-3.219-1.828-5.281-4.656-5.281-7.828 0-5.531 6.266-10 14-10v0c7.734 0 14 4.469 14 10z",fill:"#333"}))},category:"luxe-blocks",keywords:["speech","balloon","balloons","bubble","bubbles"],attributes:t,edit:n,save:function(e){var t=e.className,e=e.attributes;return X(f,{className:t,attributes:e})}})}]),"undefined"!=typeof themeName[0]&&"luxeritas"===themeName[0]||(window.wp=null),function(){"use strict";var o=React.createElement,e=wp.blocks,t=wp.components,i=wp.i18n.__,e=e.registerBlockType,n=t.TextControl,l=t.CheckboxControl;e("luxe-blocks/blogcard-block",{title:i("Blogcard","luxeritas"),description:i("Insert blogcard (Luxeritas only)","luxeritas"),icon:"images-alt2",category:"luxe-blocks",keywords:["blog","card"],supports:{align:!1,alignWide:!1,className:!1,html:!1},attributes:{url:{type:"string"},linkname:{type:"string"},tar:{type:"boolean",default:!1}},align:{type:"string",default:"left"},edit:function(t){var e=t.attributes;return[o("div",{className:t.className},o("div",{className:"luxe-blogcard"},o("div",{className:"luxe-blogcard-dummy-image"},"Blogcard"),o(n,{placeholder:i("URL"),value:e.url,onChange:function(e){t.setAttributes({url:e})}}),o(n,{placeholder:i("Link Text","luxeritas"),value:e.linkname,onChange:function(e){t.setAttributes({linkname:e})}}),o(l,{label:i("Open link in a new tab","luxeritas"),checked:e.tar,onChange:function(e){t.setAttributes({tar:e})}}),o("div",{style:{clear:"both"}},"")))]},save:function(e){e=e.attributes;return!0===e.tar?o("div",{className:"blogcard"},o("a",{href:e.url,target:"_blank",rel:"noopener noreferrer","data-blogcard":"1"},e.linkname)):o("div",{className:"blogcard"},o("a",{href:e.url,"data-blogcard":"1"},e.linkname))}})}(),function(){"use strict";var b=React.createElement,t=wp.blocks,h=wp.blockEditor.BlockEdit?wp.blockEditor:wp.editor,v=wp.components,o=wp.element,m=wp.i18n.__,e=b("svg",{xmlns:"http://www.w3.org/2000/svg",width:22,height:22,viewBox:"0 0 28 26"},b("path",{d:"M13.875 18.5l1.813-1.813-2.375-2.375-1.813 1.813v0.875h1.5v1.5h0.875zM20.75 7.25c-0.141-0.141-0.375-0.125-0.516 0.016l-5.469 5.469c-0.141 0.141-0.156 0.375-0.016 0.516s0.375 0.125 0.516-0.016l5.469-5.469c0.141-0.141 0.156-0.375 0.016-0.516zM22 16.531v2.969c0 2.484-2.016 4.5-4.5 4.5h-13c-2.484 0-4.5-2.016-4.5-4.5v-13c0-2.484 2.016-4.5 4.5-4.5h13c0.625 0 1.25 0.125 1.828 0.391 0.141 0.063 0.25 0.203 0.281 0.359 0.031 0.172-0.016 0.328-0.141 0.453l-0.766 0.766c-0.141 0.141-0.328 0.187-0.5 0.125-0.234-0.063-0.469-0.094-0.703-0.094h-13c-1.375 0-2.5 1.125-2.5 2.5v13c0 1.375 1.125 2.5 2.5 2.5h13c1.375 0 2.5-1.125 2.5-2.5v-1.969c0-0.125 0.047-0.25 0.141-0.344l1-1c0.156-0.156 0.359-0.187 0.547-0.109s0.313 0.25 0.313 0.453zM20.5 5l4.5 4.5-10.5 10.5h-4.5v-4.5zM27.438 7.063l-1.437 1.437-4.5-4.5 1.437-1.437c0.578-0.578 1.547-0.578 2.125 0l2.375 2.375c0.578 0.578 0.578 1.547 0 2.125z"})),x=b("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,viewBox:"0 0 24 28"},b("path",{d:"M5.672 24l1.422-1.422-3.672-3.672-1.422 1.422v1.672h2v2h1.672zM13.844 9.5c0-0.203-0.141-0.344-0.344-0.344-0.094 0-0.187 0.031-0.266 0.109l-8.469 8.469c-0.078 0.078-0.109 0.172-0.109 0.266 0 0.203 0.141 0.344 0.344 0.344 0.094 0 0.187-0.031 0.266-0.109l8.469-8.469c0.078-0.078 0.109-0.172 0.109-0.266zM13 6.5l6.5 6.5-13 13h-6.5v-6.5zM23.672 8c0 0.531-0.219 1.047-0.578 1.406l-2.594 2.594-6.5-6.5 2.594-2.578c0.359-0.375 0.875-0.594 1.406-0.594s1.047 0.219 1.422 0.594l3.672 3.656c0.359 0.375 0.578 0.891 0.578 1.422z"})),f=b("svg",{xmlns:"http://www.w3.org/1999/svg",width:20,height:20,viewBox:"0 0 24 24"},b("path",{d:"M8.5,21.4l1.9,0.5l5.2-19.3l-1.9-0.5L8.5,21.4z M3,19h4v-2H5V7h2V5H3V19z M17,5v2h2v10h-2v2h4V5H17z"})),k=b("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 26 24"},b("path",{d:"M8 21.5v-3c0-0.281-0.219-0.5-0.5-0.5h-5c-0.281 0-0.5 0.219-0.5 0.5v3c0 0.281 0.219 0.5 0.5 0.5h5c0.281 0 0.5-0.219 0.5-0.5zM8 15.5v-3c0-0.281-0.219-0.5-0.5-0.5h-5c-0.281 0-0.5 0.219-0.5 0.5v3c0 0.281 0.219 0.5 0.5 0.5h5c0.281 0 0.5-0.219 0.5-0.5zM16 21.5v-3c0-0.281-0.219-0.5-0.5-0.5h-5c-0.281 0-0.5 0.219-0.5 0.5v3c0 0.281 0.219 0.5 0.5 0.5h5c0.281 0 0.5-0.219 0.5-0.5zM8 9.5v-3c0-0.281-0.219-0.5-0.5-0.5h-5c-0.281 0-0.5 0.219-0.5 0.5v3c0 0.281 0.219 0.5 0.5 0.5h5c0.281 0 0.5-0.219 0.5-0.5zM16 15.5v-3c0-0.281-0.219-0.5-0.5-0.5h-5c-0.281 0-0.5 0.219-0.5 0.5v3c0 0.281 0.219 0.5 0.5 0.5h5c0.281 0 0.5-0.219 0.5-0.5zM24 21.5v-3c0-0.281-0.219-0.5-0.5-0.5h-5c-0.281 0-0.5 0.219-0.5 0.5v3c0 0.281 0.219 0.5 0.5 0.5h5c0.281 0 0.5-0.219 0.5-0.5zM16 9.5v-3c0-0.281-0.219-0.5-0.5-0.5h-5c-0.281 0-0.5 0.219-0.5 0.5v3c0 0.281 0.219 0.5 0.5 0.5h5c0.281 0 0.5-0.219 0.5-0.5zM24 15.5v-3c0-0.281-0.219-0.5-0.5-0.5h-5c-0.281 0-0.5 0.219-0.5 0.5v3c0 0.281 0.219 0.5 0.5 0.5h5c0.281 0 0.5-0.219 0.5-0.5zM24 9.5v-3c0-0.281-0.219-0.5-0.5-0.5h-5c-0.281 0-0.5 0.219-0.5 0.5v3c0 0.281 0.219 0.5 0.5 0.5h5c0.281 0 0.5-0.219 0.5-0.5zM26 4.5v17c0 1.375-1.125 2.5-2.5 2.5h-21c-1.375 0-2.5-1.125-2.5-2.5v-17c0-1.375 1.125-2.5 2.5-2.5h21c1.375 0 2.5 1.125 2.5 2.5z"})),y=b("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:18,viewBox:"0 0 24 28"},b("path",{d:"M22.937 5.938c0.578 0.578 1.062 1.734 1.062 2.562v18c0 0.828-0.672 1.5-1.5 1.5h-21c-0.828 0-1.5-0.672-1.5-1.5v-25c0-0.828 0.672-1.5 1.5-1.5h14c0.828 0 1.984 0.484 2.562 1.062zM16 2.125v5.875h5.875c-0.094-0.266-0.234-0.531-0.344-0.641l-4.891-4.891c-0.109-0.109-0.375-0.25-0.641-0.344zM22 26v-16h-6.5c-0.828 0-1.5-0.672-1.5-1.5v-6.5h-12v24h20zM7.5 12c0.172-0.219 0.484-0.266 0.703-0.094l0.797 0.594c0.219 0.172 0.266 0.484 0.094 0.703l-2.844 3.797 2.844 3.797c0.172 0.219 0.125 0.531-0.094 0.703l-0.797 0.594c-0.219 0.172-0.531 0.125-0.703-0.094l-3.531-4.703c-0.125-0.172-0.125-0.422 0-0.594zM20.031 16.703c0.125 0.172 0.125 0.422 0 0.594l-3.531 4.703c-0.172 0.219-0.484 0.266-0.703 0.094l-0.797-0.594c-0.219-0.172-0.266-0.484-0.094-0.703l2.844-3.797-2.844-3.797c-0.172-0.219-0.125-0.531 0.094-0.703l0.797-0.594c0.219-0.172 0.531-0.125 0.703 0.094zM10.344 23.906c-0.281-0.047-0.453-0.313-0.406-0.578l2.156-12.984c0.047-0.281 0.313-0.453 0.578-0.406l0.984 0.156c0.281 0.047 0.453 0.313 0.406 0.578l-2.156 12.984c-0.047 0.281-0.313 0.453-0.578 0.406z"})),w=b("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 26 28"},b("path",{d:"M3.25 19c0-0.406 0.156-0.781 0.438-1.062l3.25-3.25c0.281-0.281 0.672-0.438 1.062-0.438 0.453 0 0.812 0.172 1.125 0.5-0.516 0.516-1.125 0.953-1.125 1.75 0 0.828 0.672 1.5 1.5 1.5 0.797 0 1.234-0.609 1.75-1.125 0.328 0.313 0.516 0.672 0.516 1.141 0 0.391-0.156 0.781-0.438 1.062l-3.219 3.234c-0.281 0.281-0.672 0.422-1.062 0.422s-0.781-0.141-1.062-0.406l-2.297-2.281c-0.281-0.281-0.438-0.656-0.438-1.047zM14.234 7.984c0-0.391 0.156-0.781 0.438-1.062l3.219-3.234c0.281-0.281 0.672-0.438 1.062-0.438s0.781 0.156 1.062 0.422l2.297 2.281c0.281 0.281 0.438 0.656 0.438 1.047 0 0.406-0.156 0.781-0.438 1.062l-3.25 3.25c-0.281 0.281-0.672 0.422-1.062 0.422-0.453 0-0.812-0.156-1.125-0.484 0.516-0.516 1.125-0.953 1.125-1.75 0-0.828-0.672-1.5-1.5-1.5-0.797 0-1.234 0.609-1.75 1.125-0.328-0.313-0.516-0.672-0.516-1.141zM0.25 19c0 1.188 0.484 2.344 1.328 3.172l2.297 2.281c0.844 0.844 1.984 1.297 3.172 1.297 1.203 0 2.344-0.469 3.187-1.328l3.219-3.234c0.844-0.844 1.297-1.984 1.297-3.172 0-1.234-0.5-2.406-1.375-3.266l1.375-1.375c0.859 0.875 2.016 1.375 3.25 1.375 1.188 0 2.344-0.469 3.187-1.313l3.25-3.25c0.859-0.859 1.313-1.984 1.313-3.187 0-1.188-0.484-2.344-1.328-3.172l-2.297-2.281c-0.844-0.844-1.984-1.297-3.172-1.297-1.203 0-2.344 0.469-3.187 1.328l-3.219 3.234c-0.844 0.844-1.297 1.984-1.297 3.172 0 1.234 0.5 2.406 1.375 3.266l-1.375 1.375c-0.859-0.875-2.016-1.375-3.25-1.375-1.188 0-2.344 0.469-3.187 1.313l-3.25 3.25c-0.859 0.859-1.313 1.984-1.313 3.187z"}));t.registerBlockType("luxe-blocks/fixedphrase",{title:m("HTML pattern insert editor","luxeritas"),description:m("Advanced text editor. Can also insert HTML pattern registered in Luxeritas menu.","luxeritas"),icon:e,category:"luxe-blocks",supports:{customClassName:!1,className:!1,html:!1},attributes:{content:{type:"string",source:"html",placeholder:{type:"string"}}},transforms:{from:[{type:"block",blocks:["core/html","core/code","luxe-blocks/syntaxhighlighter"],transform:function(e){return t.createBlock("luxe-blocks/fixedphrase",{content:e.content})}},{type:"block",blocks:["core/shortcode"],transform:function(e){return t.createBlock("luxe-blocks/fixedphrase",{content:e.text})}}],to:[{type:"block",blocks:["core/html"],transform:function(e){return t.createBlock("core/html",{content:e.content})}},{type:"block",blocks:["core/code"],transform:function(e){return t.createBlock("core/code",{content:e.content})}},{type:"block",blocks:["core/shortcode"],transform:function(e){return t.createBlock("core/shortcode",{text:e.content})}},{type:"block",blocks:["luxe-blocks/syntaxhighlighter"],transform:function(e){return t.createBlock("luxe-blocks/syntaxhighlighter",{content:e.content})}}]},edit:wp.compose.withState({preview:!1})(function(e){function u(){var e=document.getElementById(i),t=g(e),o=e.value;return{id:e,start:t.start,end:t.end,select:o.slice(t.start,t.end),before:o.slice(0,t.start),after:o.slice(t.end)}}var t=e.attributes,d=e.setAttributes,o=(e.setState,e.isSelected,e.toggleSelection,e.preview,e.clientId),i=(e.placeholder,t.content,"luxe-blocks-textarea-"+o),n=[],l=[],r="components-toolbar",a=[{title:m("Heading 2","luxeritas")+" <h2>",icon:"menu-alt",onClick:function(){return s("h2")}},{title:m("Heading 3","luxeritas")+" <h3>",icon:"menu-alt",onClick:function(){return s("h3")}},{title:m("Heading 4","luxeritas")+" <h4>",icon:"menu-alt",onClick:function(){return s("h4")}},{title:m("Heading 5","luxeritas")+" <h5>",icon:"menu-alt",onClick:function(){return s("h5")}},{title:m("Heading 6","luxeritas")+" <h6>",icon:"menu-alt",onClick:function(){return s("h6")}}],c=[{title:m("Paragraph","luxeritas")+" <p>",icon:"editor-paragraph",onClick:function(){return s("p")}},{title:m("Block","luxeritas")+" <div>",icon:"editor-paragraph",onClick:function(){return s("div")}},{title:m("Quotation","luxeritas")+" <blockquote>",icon:"format-quote",onClick:function(){return s("blockquote")}},{title:m("Preformatted text","luxeritas")+" <pre>",icon:"text",onClick:function(){return s("pre")}},{title:m("Source code","luxeritas")+" <pre><code>",icon:"editor-code",onClick:function(){return s("pre code")}},{title:m("Address","luxeritas")+" <address>",icon:"id",onClick:function(){return s("address")}}],e=[{title:m("Link","luxeritas"),icon:"admin-links",onClick:function(){return s("a",!0)}},{title:m("External link","luxeritas"),icon:w,onClick:function(){return s("blank",!0)}},{title:m("Bulleted list","luxeritas"),icon:"editor-ul",onClick:function(){return s("ul")}},{title:m("Numbered list","luxeritas"),icon:"editor-ol",onClick:function(){return s("ol")}},{title:m("Table","luxeritas"),icon:k,onClick:function(){return s("table")}}],o=[{title:m("Inline container","luxeritas")+" <span>",icon:"leftright",onClick:function(){return s("span",!0)}},{title:m("Strong emphasis","luxeritas")+" <strong>",icon:"editor-bold",onClick:function(){return s("strong",!0)}},{title:m("Ruby","luxeritas"),icon:"admin-customizer",onClick:function(){return s("ruby",!0)}},{title:m("Cite","luxeritas"),icon:"book",onClick:function(){return s("cite",!0)}},{title:m("Inline quotation","luxeritas"),icon:"format-quote",onClick:function(){return s("q",!0)}},{title:m("Line break","luxeritas")+" <br />",icon:"editor-break",onClick:function(){return s("br",!0,!0)}}],s=(m("There is no active pattern","luxeritas"),m("There is no active shortcode","luxeritas"),function(e,t,o){void 0===t&&(t=!1),void 0===o&&(o=!1);var i,n="",l="</"+e+">",r=u(),a=r.select,c=r.before,s=r.after;if("a"!=e&&"blank"!=e||(n=window.prompt(m("Please enter url.","luxeritas"))),n=null==n?"":n,"a"==e)i='<a href="'+n+'">'+a+l;else if("blank"==e)i='<a href="'+n+'" target="_blank" rel="noopener noreferrer">'+a+"</a>";else if("table"==e)i="<table>\n<tbody>\n<tr>\n<td>"+a+"</td>\n</tr>\n</tbody>\n</table>";else if("pre code"==e)i="<pre><code>"+a+"</code></pre>";else if("ruby"==e)i="<ruby>"+a+"<rt>"+a+"</rt></ruby>";else if(1==o)i="<"+e+" />";else if(n=e,a||r.start!=r.end)i=p(e)?"<"+n+">\n<li>"+a+"</li>\n"+l:"<"+n+">"+a+l;else{if(r.start!=r.end)return;i=p(e)?"<"+n+">\n<li>"+a+"</li>\n"+l:"<"+n+">"+l}t||(i+="\n"),d({content:1==o?c+a+i+s:c+i+s}),r.id.focus()}),p=function(e){return"ul"==e||"ol"==e},g=function(e){var t=new Object;return t.start=e.selectionStart,t.end=e.selectionEnd,t};return Object.keys(luxePhraseList).forEach(function(e){var t=this[e],r=e,a=t.file,c=t.close;""==t.label?n.push({title:m("There is no active pattern","luxeritas"),icon:"format-aside",onClick:function(){}}):n.push({title:r,icon:"format-aside",onClick:function(){return e=r,o=a,i=c,l=u(),void jQuery.ajax({type:"POST",url:wp.ajax.settings.url,data:{action:"thk_phrase_regist",name:e,fp_popup_nonce:luxePhraseNonce[0]},dataType:"text",async:!0,cache:!1,timeout:1e4,success:function(e){var t="\n\x3c!--"+o+"--\x3e\n";return n=i&&-1!=e.indexOf(t)?(n=e.split(t),l.before+n[0]+l.select+n[1]+l.after):l.before+e+l.select+l.after,d({content:n}),l.id.focus()},error:function(){}});var e,o,i,n,l}})},luxePhraseList),Object.keys(luxeShortcodeList).forEach(function(e){var o=this[e],i=e;i=(i=i.replaceAll(String.fromCodePoint(8220),'"').replaceAll(String.fromCodePoint(8221),'"').replaceAll(String.fromCodePoint(8243),'"')).replaceAll(String.fromCodePoint(8216),"'").replaceAll(String.fromCodePoint(8217),"'").replaceAll(String.fromCodePoint(8242),"'"),l.push({title:o.label,icon:f,onClick:function(){var e=u(),t=i;if("empty"!=i)return e=o.close?(-1!=i.indexOf(" ")&&(t=i.substring(0,i.indexOf(" "))),e.before+"["+i+"]"+e.select+"[/"+t+"]"+e.after):e.before+"["+i+"]"+e.select+e.after,d({content:e})}})},luxeShortcodeList),[b(h.BlockControls,null,b(v.DropdownMenu,{icon:"menu-alt",label:m("Heading tags","luxeritas"),className:r,hasArrowIndicator:!0,controls:a}),b(v.DropdownMenu,{icon:"editor-paragraph",label:m("Block tags","luxeritas"),className:r,hasArrowIndicator:!0,controls:c}),b(v.DropdownMenu,{icon:y,label:m("Inline tags","luxeritas"),className:r,hasArrowIndicator:!0,controls:o}),b(h.MediaUpload,{onSelect:function(e){var t=u(),e='<img src="'+e.url+'" alt="'+e.alt+'" width="'+e.width+'" height="'+e.height+'" />',t=t.before+t.select+e+t.after;return d({content:t})},type:"image",render:function(e){return b(v.Tooltip,{text:m("Image tag","luxeritas")},b("div",{className:"components-toolbar",style:{borderRight:0}},b(v.Button,{className:"components-toolbar__control",onClick:e.open},b(v.Dashicon,{icon:"format-image"}))))}}),b(v.Toolbar,{controls:e}),b(v.DropdownMenu,{icon:x,label:m("HTML pattern","luxeritas"),className:r,hasArrowIndicator:!0,controls:n}),b(v.DropdownMenu,{icon:f,label:m("Shortcode","luxeritas"),className:r,hasArrowIndicator:!0,controls:l})),b("div",{className:"wp-block-html"},b(h.PlainText,{id:i,value:t.content,placeholder:m("Write HTML","luxeritas")+String.fromCharCode(8230),"aria-label":m("HTML"),onChange:function(e){return d({content:e})}}))]}),save:function(e){e=e.attributes;return b(o.RawHTML,null,e.content)}})}(),function(){"use strict";var v=React.createElement,e=wp.blocks,m=wp.blockEditor.BlockEdit?wp.blockEditor:wp.editor,x=wp.element,f=wp.components,k=wp.i18n.__,t=e.registerBlockType,r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o,i=arguments[t];for(o in i)Object.prototype.hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e},e=v("svg",{xmlns:"http://www.w3.org/2000/svg",width:22,height:22,viewBox:"0 0 26 28"},v("path",{d:"M10 2c-1.109 0-2 0.891-2 2v14l-2.359-3.156c-0.391-0.516-1.016-0.844-1.672-0.844-1.094 0-1.969 0.922-1.969 2 0 0.438 0.141 0.859 0.406 1.203l6 8c0.375 0.5 0.969 0.797 1.594 0.797h11.219c0.453 0 0.859-0.313 0.969-0.75l1.437-5.75c0.25-1 0.375-2.016 0.375-3.031v-3.391c0-0.828-0.641-1.578-1.5-1.578-0.828 0-1.5 0.672-1.5 1.5h-0.5v-0.953c0-0.984-0.75-1.797-1.75-1.797-0.969 0-1.75 0.781-1.75 1.75v1h-0.5v-1.406c0-1.125-0.859-2.094-2-2.094-1.109 0-2 0.891-2 2v1.5h-0.5v-8.906c0-1.125-0.859-2.094-2-2.094zM10 0c2.234 0 4 1.875 4 4.094v3.437c0.172-0.016 0.328-0.031 0.5-0.031 1.016 0 1.969 0.391 2.703 1.078 0.484-0.219 1.016-0.328 1.547-0.328 1.125 0 2.172 0.5 2.875 1.359 0.297-0.078 0.578-0.109 0.875-0.109 1.969 0 3.5 1.641 3.5 3.578v3.391c0 1.172-0.141 2.359-0.438 3.516l-1.437 5.75c-0.328 1.328-1.531 2.266-2.906 2.266h-11.219c-1.25 0-2.453-0.609-3.203-1.594l-6-8c-0.516-0.688-0.797-1.547-0.797-2.406 0-2.188 1.781-4 3.969-4 0.719 0 1.422 0.187 2.031 0.547v-8.547c0-2.203 1.797-4 4-4zM12 22v-6h-0.5v6h0.5zM16 22v-6h-0.5v6h0.5zM20 22v-6h-0.5v6h0.5z"}));function y(e,t,o,i,n,l){var r="";return void 0!==e&&e&&(r+=e),void 0!==t&&t&&(void 0!==e&&e&&(r+=" "),r+="url("+t+")",void 0!==l&&l&&(r+=" fixed"),void 0!==o.x&&void 0!==o.y?r+=" "+Math.round(100*o.x)+"% "+Math.round(100*o.y)+"% ":r+=" 50% 50%",void 0!==i&&i&&"auto"!==i&&(r+="/"+i),void 0!==n&&n&&"repeat"!==n&&(r+=" "+n)),r}function w(e){return function(e){for(var t="",o=0;o<e.length;o++)t+=function(e){var t=e.toString(16);return e<16?"0"+t:t}(e[o]);return t}(function(e){var t=[];if(null==e)return t;for(var o=0;o<e.length;o++){var i=e.charCodeAt(o);i<=127?t.push(i):(i<=2047?t.push(i>>6&31|192):(t.push(i>>12&15|224),t.push(i>>6&63|128)),t.push(63&i|128))}return t}(e))}function a(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function C(e){var o=e.setAttributes,i=e.attributeKey,t=e.attributes,e=e.label,n=t[i],t="blockMargin"===i||"imgMargin"===i?["top","bottom"]:["top","right","bottom","left"],l="blockMargin"===i||"imgMargin"===i?-32767:0;return v("div",{className:"luxe-blocks-control-margins"},v("p",{className:"luxe-blocks-control-margins-label"},e),v("div",{className:"luxe-blocks-control-spacing-controls"},t.map(function(t){return v(f.TextControl,{label:k(""+(e=t).charAt(0).toUpperCase()+e.slice(1).toLowerCase(),"luxeritas"),value:n[t],type:"number",min:l,max:500,step:1,onChange:function(e){o(a({},i,r({},n,a({},t,e))))}});var e})))}t("luxe-blocks/scroll-block",{title:k("Scroll block","luxeritas"),description:k("Create scrollable tables, images, and more.","luxeritas"),icon:e,category:"luxe-blocks",keywords:["scroll"],attributes:{height:{type:"number",default:0},maxWidth:{type:"number",default:0},alignment:{type:"string",default:"none"},dragscroll:{type:"boolien",default:!1},backgroundColor:{type:"string",default:null},blockidrep:{type:"string",default:null},blockMargin:{type:"object",default:{top:10,bottom:40}},backgroundImg:{type:"string",default:""},backgroundPosition:{type:"object",default:{x:.5,y:.5}},backgroundFixed:{type:"boolean",default:!1},backgroundRepeat:{type:"string",default:"repeat"},backgroundSize:{type:"string",default:"auto"},backgroundImgWidth:{type:"number",default:0},backgroundImgHeight:{type:"number",default:0}},align:{type:"string",default:"left"},edit:function(e){var t=e.attributes,o=e.setAttributes,i=t.height,n=t.maxWidth,l=t.alignment,r=t.backgroundColor,a=e.clientId,c=a.split("-").join(""),s=t.backgroundImg,u=t.backgroundPosition,d=t.backgroundFixed,p=t.backgroundRepeat,g=t.backgroundSize,b=(t.backgroundImgWidth,t.backgroundImgHeight,s?y(r,s,u,g,p,d):r),h=t.blockMargin,h=(void 0!==h.top?0==h.top?0:h.top+"px":"10px")+" "+("center"===l?"auto":0)+" "+(void 0!==h.bottom?0==h.bottom?0:h.bottom+"px":"40px")+" "+("center"===l||"right"===l?"auto":0);return"10px 0 40px 0"===h?h=void 0:"0 0 0 0"===h&&(h=0),[o({blockidrep:c||void 0}),v(x.Fragment,null,v("div",null,v("div",{className:"luxe-focus",style:{display:"none",textAlign:"right",paddingBottom:"32px"}},!1===e.isSelected?v("span",{style:{fontSize:"13px",padding:"0 10px"}},k("Selected child block","luxeritas")):"",v("button",{className:!0===e.isSelected?"button disabled":"button"},k("Scroll block","luxeritas"))),!0===e.isSelected&&v("div",{style:{padding:"0 0 10px 0"}}),v("style",null,void 0!==i&&0!=i?"#block-"+a+" figure,#block-"+a+" pre,#block-"+a+" textarea{overflow:auto;height:"+i+"px!important}":"#block-"+a+" figure{overflow:auto"),b?v("style",null,"#block-"+a+" figure,#block-"+a+" pre{background:"+b+"}"):void 0,v("div",{className:e.className,style:{maxWidth:void 0!==n&&0!=n?n+"px":void 0,margin:h}},v(m.BlockControls,null,v(m.AlignmentToolbar,{value:l,onChange:function(e){return o({alignment:void 0!==e?e:"none"})}})),v(m.InnerBlocks,{templateLock:!1,allowedBlocks:["core/image","core/table","core/preformatted","core/code","luxe-blocks/syntaxhighlighter"]})))),!0===e.isSelected&&v(m.InspectorControls,null,v(f.PanelBody,{title:k("Appearance","luxeritas"),initialOpen:!0}),v(f.RangeControl,{label:k("Height","luxeritas")+" ( "+k("Automatic when input is 0","luxeritas")+" )",min:0,max:800,value:t.height,onChange:function(e){return o({height:e||0})}}),v(f.RangeControl,{label:k("Max width","luxeritas")+" ( "+k("When input is 0, 100%","luxeritas")+" )",min:0,max:2e3,value:n,onChange:function(e){return o({maxWidth:e||0})}}),v(f.CheckboxControl,{label:k("Drag scroll","luxeritas"),checked:t.dragscroll,onChange:function(e){return o({dragscroll:e})}}),v("p",{style:{fontSize:"12px",paddingBottom:"16px"}},k("* Syntax highlighter cannot be drag-scrolled.","luxeritas")),v("p",{style:{paddingBottom:"6px"}},k("Position","luxeritas")),v(m.AlignmentToolbar,{label:k("Position","luxeritas"),value:l,onChange:function(e){return o({alignment:void 0!==e?e:"none"})}}),v(C,{label:k("Margin","luxeritas"),attributeKey:"blockMargin",attributes:t,setAttributes:o}),v(f.PanelBody,{title:k("Background image","luxeritas"),initialOpen:!0},v(m.MediaUpload,{onSelect:function(e){return o({mediaID:e.id,backgroundImg:e.url,backgroundImgWidth:e.width,backgroundImgHeight:e.height})},type:"image",render:function(e){return v(f.Button,{className:"button button-large",onClick:e.open},k("Select image","luxeritas"))}}),s&&v("span",{style:{marginLeft:"3px"}},v(f.Button,{className:"button button-large",onClick:function(e){return o({backgroundImg:"",backgroundFixed:!1,backgroundSize:"auto",backgroundRepeat:"repeat",backgroundPosition:{x:.5,y:.5}})}},k("Delete image","luxeritas"))),s&&v("div",{style:{marginTop:"14px"}},v("div",{style:{marginBottom:"14px"}},v(f.FormToggle,{id:"high-contrast-form-toggle",checked:d,onChange:function(){return o(!0==!d?{backgroundFixed:!d,backgroundSize:"cover",backgroundRepeat:"repeat",backgroundParallax:0}:{backgroundFixed:!d})}}),v("label",{style:{margin:"0 0 0 14px",fontSize:"13px"}}),k("Fixed Background")),v("label",{className:"components-base-control__label"},k("Focal Point Picker")),v(f.FocalPointPicker,{className:"components-base-control__margin-bottom_-20",url:s,value:u,onChange:function(e){return o({backgroundPosition:e})}}),v(f.SelectControl,{className:"components-base-control__margin-bottom_16",label:k("Repeat","luxeritas"),value:p,options:[{label:k("repeat","luxeritas"),value:"repeat"},{label:k("repeat-x","luxeritas"),value:"repeat-x"},{label:k("repeat-y","luxeritas"),value:"repeat-y"},{label:k("no-repeat","luxeritas"),value:"no-repeat"}],onChange:function(e){return o({backgroundRepeat:e||void 0})}}),v(f.SelectControl,{className:"components-base-control__margin-bottom_16",label:k("Size","luxeritas"),value:g,options:[{label:k("auto","luxeritas"),value:"auto"},{label:k("contain","luxeritas"),value:"contain"},{label:k("cover","luxeritas"),value:"cover"},{label:k("width: 100%, height: auto","luxeritas"),value:"100% auto"},{label:k("width: auto, height: 100%","luxeritas"),value:"auto 100%"},{label:k("width: 100%, height: 100%","luxeritas"),value:"100% 100%"}],onChange:function(e){return o({backgroundSize:e||void 0})}}))),v(m.PanelColorSettings,{title:k("Color Settings","luxeritas"),initialOpen:!0,colorSettings:[{value:r,onChange:function(e){return o({backgroundColor:e})},label:k("Background color","luxeritas")}]}))]},save:function(e){var t,o,i=e.attributes,n=i.blockidrep,l="",r="luxe-scrl",a=i.alignment,c=i.height,s=i.maxWidth,u=i.backgroundColor,d=i.dragscroll,p=i.backgroundImg,g=i.backgroundPosition,b=i.backgroundFixed,h=i.backgroundRepeat,e=i.backgroundSize,i=(i.backgroundImgWidth,i.backgroundImgHeight,i.blockMargin),a=(void 0!==i.top?0==i.top?0:i.top+"px":"10px")+" "+("center"===a?"auto":0)+" "+(void 0!==i.bottom?0==i.bottom?0:i.bottom+"px":"40px")+" "+("center"===a||"right"===a?"auto":0);return"10px 0 40px 0"===a?a=void 0:"0 0 0 0"===a&&(a=0),n&&(void 0!==c&&0!=c||void 0!==p&&""!=p||void 0!==u&&null!=u&&""!=u)&&(r+=" luxe-scroll-block-css:",l+="{",void 0!==c&&0!=c&&(l+="height:"+c+"px;",t=!0),void 0!==p&&""!=p?(l+="background:"+y(u,p,g,e,h,b)+";",o=!0):void 0!==u&&null!=u&&""!=u&&(l+="background:"+u+";",o=!0),r+=w(l+"}")),d&&(r+=" dragscroll-on"),v("div",{id:void 0===t&&void 0===o||!n?void 0:"luxe-scrl-"+n,className:r,style:{maxWidth:void 0!==s&&0!=s?s+"px":void 0,margin:a}},v(m.InnerBlocks.Content,null))}})}(),function(){"use strict";var c=React.createElement,s=wp.i18n.__,t=wp.blocks,u=wp.components,d=wp.blockEditor.BlockEdit?wp.blockEditor:wp.editor,e=c("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 34 34"},c("path",{d:"M9.641 21.859l-0.781 0.781c-0.203 0.203-0.516 0.203-0.719 0l-7.281-7.281c-0.203-0.203-0.203-0.516 0-0.719l7.281-7.281c0.203-0.203 0.516-0.203 0.719 0l0.781 0.781c0.203 0.203 0.203 0.516 0 0.719l-6.141 6.141 6.141 6.141c0.203 0.203 0.203 0.516 0 0.719zM18.875 5.187l-5.828 20.172c-0.078 0.266-0.359 0.422-0.609 0.344l-0.969-0.266c-0.266-0.078-0.422-0.359-0.344-0.625l5.828-20.172c0.078-0.266 0.359-0.422 0.609-0.344l0.969 0.266c0.266 0.078 0.422 0.359 0.344 0.625zM29.141 15.359l-7.281 7.281c-0.203 0.203-0.516 0.203-0.719 0l-0.781-0.781c-0.203-0.203-0.203-0.516 0-0.719l6.141-6.141-6.141-6.141c-0.203-0.203-0.203-0.516 0-0.719l0.781-0.781c0.203-0.203 0.516-0.203 0.719 0l7.281 7.281c0.203 0.203 0.203 0.516 0 0.719z"}));t.registerBlockType("luxe-blocks/syntaxhighlighter",{title:s("Syntax Highlighter","luxeritas"),description:s("Adds syntax highlighting to source code.","luxeritas"),icon:e,category:"luxe-blocks",attributes:{content:{type:"string",source:"text",selector:"pre"},language:{type:"string",default:""},linenumber:{type:"boolean",default:!0}},supports:{html:!1},transforms:{from:[{type:"block",blocks:["core/html","core/code","luxe-blocks/fixedphrase"],transform:function(e){return t.createBlock("luxe-blocks/syntaxhighlighter",{content:e.content})}}],to:[{type:"block",blocks:["core/html"],transform:function(e){return t.createBlock("core/html",{content:e.content})}},{type:"block",blocks:["core/code"],transform:function(e){return t.createBlock("core/code",{content:e.content})}},{type:"block",blocks:["luxe-blocks/fixedphrase"],transform:function(e){return t.createBlock("luxe-blocks/fixedphrase",{content:e.content})}}]},edit:function(e){var t=e.attributes,o=e.setAttributes,i=e.className,n=t.content,l=t.language,r=t.linenumber,e="",t=[],a=[{label:s("Choose a code language.","luxeritas"),value:""}];return Object.keys(luxeHighlighterList).forEach(function(e){a.push({label:this[e],value:e})},luxeHighlighterList),t.push(c(u.SelectControl,{label:s("Code Language","luxeritas"),value:l,options:a,onChange:function(e){return o({language:e})}})),e=c("p",{style:{marginBottom:"30px"}},s("* The theme can be changed from the CSS tab of Luxeritas menu.","luxeritas")),[c(d.InspectorControls,{key:"syntaxHighlighterInspectorControls"},c(u.PanelBody,{title:s("Settings")},t,e,c(u.FormToggle,{id:"high-contrast-form-toggle",checked:r,onChange:function(){return o({linenumber:!r})}}),c("label",{style:{margin:"0 0 0 14px",fontSize:"13px"}},s("Line number","luxeritas")))),c("div",{className:i+" wp-block-code"},c(d.PlainText,{value:n,onChange:function(e){return o({content:e})},placeholder:s("To the right, choose a code language from the block settings.","luxeritas"),"aria-label":s("Syntax Highlighter","luxeritas")}))]},save:function(e){var t=e.attributes,o=t.content,e=t.linenumber,t=t.language.replace("highlight_","");return""!=t?c("pre",!0===e?{className:"line-numbers language-"+t}:{className:"language-"+t},c("code",{className:"language-"+t},o)):c("pre",null,c("code",null,o))}})}(),function(){"use strict";var a=React.createElement,c=wp.i18n.__,e=wp.blocks,s=wp.components,u=wp.blockEditor.BlockEdit?wp.blockEditor:wp.editor,d=wp.element,p=120,g=400,b=0,t="top",o="bottom",i=a("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 32 32"},a("path",{d:"M30 19v-5c0-1.654-1.346-3-3-3-0.535 0-1.037 0.14-1.472 0.386-0.534-0.833-1.467-1.386-2.528-1.386-0.768 0-1.469 0.29-2 0.766-0.531-0.476-1.232-0.766-2-0.766-0.35 0-0.687 0.060-1 0.171v-7.171c0-1.654-1.346-3-3-3s-3 1.346-3 3v12.334l-5.501-2.932c-0.454-0.262-0.973-0.401-1.499-0.401-1.654 0-3 1.346-3 3 0 0.824 0.327 1.592 0.922 2.163 0.008 0.007 0.015 0.015 0.023 0.022l7.474 6.815h-1.419c-0.552 0-1 0.448-1 1v6c0 0.552 0.448 1 1 1h20c0.552 0 1-0.448 1-1v-6c0-0.552-0.448-1-1-1h-1.382l2.276-4.553c0.069-0.139 0.106-0.292 0.106-0.447zM28 27c0 0.552-0.448 1-1 1s-1-0.448-1-1 0.448-1 1-1 1 0.448 1 1zM28 18.764l-2.618 5.236h-11.995l-9.088-8.286c-0.193-0.19-0.299-0.443-0.299-0.714 0-0.551 0.449-1 1-1 0.171 0 0.332 0.041 0.479 0.122 0.017 0.010 0.033 0.020 0.051 0.029l7 3.732c0.31 0.165 0.684 0.156 0.985-0.025s0.485-0.506 0.485-0.857v-14c0-0.551 0.449-1 1-1s1 0.449 1 1v10c0 0.552 0.448 1 1 1s1-0.448 1-1c0-0.551 0.449-1 1-1s1 0.449 1 1c0 0.552 0.448 1 1 1s1-0.448 1-1c0-0.551 0.449-1 1-1s1 0.449 1 1v1c0 0.552 0.448 1 1 1s1-0.448 1-1c0-0.551 0.449-1 1-1s1 0.449 1 1v4.764z"}));e.registerBlockType("luxe-blocks/aos",{title:c("Scroll Animation","luxeritas"),description:c("Animate block on scroll.","luxeritas"),icon:i,category:"luxe-blocks",attributes:{anime:{type:"string",default:"fade-up"},offset:{type:"string",default:p},duration:{type:"string",default:g},delay:{type:"string",default:b},placement1:{type:"string",default:t},placement2:{type:"string",default:o}},supports:{html:!1},edit:function(e){var t=e.attributes,o=e.setAttributes,i=e.className,n=[],l=[{label:c("Top","luxeritas"),value:"top"},{label:c("Center","luxeritas"),value:"center"},{label:c("Bottom","luxeritas"),value:"bottom"}],r={top:c("Top","luxeritas"),center:c("Center","luxeritas"),bottom:c("Bottom","luxeritas")};return Object.keys(luxeAnimeList).forEach(function(e){n.push({label:this[e],value:this[e]})},luxeAnimeList),[a(u.InspectorControls,{key:"ScrollAnimationInspectorControls"},a(s.PanelBody,{title:c("Animation behavior settings","luxeritas")},a("div",null,a(s.SelectControl,{label:c("Animation type","luxeritas"),style:{display:"block"},value:t.anime,options:n,onChange:function(e){return o({anime:e})}})),a("label",{className:"components-base-control__label"},c("Animated duration","luxeritas")+" ( ms )"),a("div",{style:{width:"80px"}},a(s.TextControl,{style:{display:"block"},type:"number",value:t.duration||g,max:3e3,min:0,onChange:function(e){return o({duration:e||g})}})),a("label",{className:"components-base-control__label"},c("Delay time until animation starts","luxeritas")+" ( ms )"),a("div",{style:{width:"80px"}},a(s.TextControl,{style:{display:"block"},type:"number",value:t.delay||b,max:3e3,min:0,onChange:function(e){return o({delay:e||b})}}))),a(s.PanelBody,{title:c("Animation trigger point","luxeritas")},"ja"===luxeLocale[0]?a("p",null,c("elements of ","luxeritas")+r[t.placement1]+c(" part of the screen ","luxeritas")+r[t.placement2]+" "+t.offset+c(" start anime when it reaches a distance of","luxeritas")):"",a("div",null,a(s.SelectControl,{label:c("Block (Element)","luxeritas"),style:{display:"block"},value:t.placement1,options:l,onChange:function(e){return o({placement1:e})}})),a("div",null,a(s.SelectControl,{label:c("Window (Screen)","luxeritas"),style:{display:"block"},value:t.placement2,options:l,onChange:function(e){return o({placement2:e})}})),a("label",{className:"components-base-control__label"},c("Offset from trigger point","luxeritas")+" ( px )"),a("div",{style:{width:"80px"}},a(s.TextControl,{style:{display:"block"},type:"number",min:0,value:t.offset||p,onChange:function(e){return o({offset:e||p})}})))),a("div",{className:i},a(d.Fragment,null,a("div",null,a("div",{className:"luxe-focus",style:{display:"none",textAlign:"right",paddingBottom:"32px"}},!1===e.isSelected?a("span",{style:{fontSize:"13px",padding:"0 10px"}},c("Selected child block","luxeritas")):"",a("button",{className:!0===e.isSelected?"button disabled":"button"},c("Scroll Animation","luxeritas"))),!0===e.isSelected&&a("div",{style:{padding:"0 0 10px 0"}}),a("div",{className:e.className},a(u.InnerBlocks,{templateLock:!1})))))]},save:function(e){e=e.attributes;return a("div",{"data-aos":e.anime,"data-aos-offset":e.offset!=p?e.offset:void 0,"data-aos-duration":e.duration!=g?e.duration:void 0,"data-aos-delay":e.delay!=b?e.delay:void 0,"data-aos-anchor-placement":e.placement1+"-"+e.placement2!=t+"-"+o?e.placement1+"-"+e.placement2:void 0},a(u.InnerBlocks.Content,null))}})}();
Save File
Cancel