Getwid – Gutenberg Blocks - Version 1.7.8

Version Description

Download this release

Release Info

Developer jetmonsters
Plugin Icon 128x128 Getwid – Gutenberg Blocks
Version 1.7.8
Comparing to
See all releases

Code changes from version 1.7.7 to 1.7.8

assets/blocks/map/frontend.js CHANGED
@@ -1,4 +1,4 @@
1
  !function(t){function e(n){if(o[n])return o[n].exports;var r=o[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var o={};e.m=t,e.c=o,e.d=function(t,o,n){e.o(t,o)||Object.defineProperty(t,o,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var o=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(o,"a",o),o},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=17)}({17:function(module,__webpack_exports__,__webpack_require__){"use strict";Object.defineProperty(__webpack_exports__,"__esModule",{value:!0});var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_typeof__=__webpack_require__(18),__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_typeof___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_typeof__);/*!
2
  * getwid-map
3
  */
4
- !function($){var _this=this;$(document).ready(function(event){function removeAllAttributes(t){var e=$.map(t[0].attributes,function(t){return t.name});$.each(e,function(e,o){"class"!=o&&t.removeAttr(o)})}function mapStyles(mapData){var mapStyle=mapData.mapStyle,customStyle=mapData.customStyle;if("object"==__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_typeof___default()(mapStyle))return null;if("default"!=mapStyle){if("custom"!=mapStyle)return stylesArr[mapStyle];try{return eval(customStyle)}catch(t){if(!(t instanceof SyntaxError))throw t;console.error(t.message)}}}function initMarkers(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=t.mapMarkers,r=n[e].coords,a=new google.maps.Marker({position:r,map:o,draggable:!1,animation:google.maps.Animation.DROP});n[e].bounce&&setTimeout(function(){return a.setAnimation(google.maps.Animation.BOUNCE)},2e3);var i="";""!=unescape(n[e].description)&&(i="\n\t\t\t\t\t<div class='getwid-poi-info-window'>\n\t\t\t\t\t\t".concat(_unescape(n[e].description),"\n\t\t\t\t\t</div>\n\t\t\t\t")),attachMessage(a,i,n[e].popUpOpen,n[e].popUpMaxWidth)}function attachMessage(t,e,o,n){var r=new google.maps.InfoWindow({content:e,maxWidth:n});o&&""!=r.content&&r.open(t.get("map"),t),google.maps.event.clearInstanceListeners(t),t.addListener("click",function(){""!=r.content&&r.open(t.get("map"),t)})}$(document.body).on("post-load",function(t){getwid_init_map()});var getwid_init_map=function(){var t=$(".wp-block-getwid-map:not(.getwid-init)");"undefined"!=typeof google?t.each(function(t,e){$(_this).addClass("getwid-init"),$(e).find(".wp-block-getwid-map__points").remove();var o=$(e).find(".wp-block-getwid-map__container")[0],n=$(e).data("map-center"),r=$(e).data("map-markers"),a=$(e).data("map-zoom"),i=$(e).data("map-style"),l=$(e).data("custom-style"),p=$(e).data("zoom-control"),c=$(e).data("type-control"),s=$(e).data("interaction"),m=$(e).data("street-view-control"),u=$(e).data("full-screen-control");removeAllAttributes($(e));var _={mapCenter:n,mapZoom:a,interaction:s,mapStyle:i,customStyle:l,zoomControl:p,mapTypeControl:c,streetViewControl:m,fullscreenControl:u,mapMarkers:r},f=new google.maps.Map(o,{center:n,styles:mapStyles(_),gestureHandling:s,zoomControl:p,mapTypeControl:c,streetViewControl:m,fullscreenControl:u,zoom:a});void 0!==r&&r.length&&$.each(r,function(t,e){initMarkers(_,t,f)})}):t.length&&t.each(function(t,e){var o=$(e);o.find(".wp-block-getwid-map__container").remove(),$(o).prepend('<iframe src="https://www.google.com/maps/embed" style="border:0;" allowfullscreen="" width="100%" height="400px" frameborder="0"></iframe>')})};getwid_init_map()})}(jQuery)},18:function(t,e){function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function n(e){return"function"==typeof Symbol&&"symbol"===o(Symbol.iterator)?t.exports=n=function(t){return o(t)}:t.exports=n=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":o(t)},n(e)}t.exports=n}});
1
  !function(t){function e(n){if(o[n])return o[n].exports;var r=o[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var o={};e.m=t,e.c=o,e.d=function(t,o,n){e.o(t,o)||Object.defineProperty(t,o,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var o=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(o,"a",o),o},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=17)}({17:function(module,__webpack_exports__,__webpack_require__){"use strict";Object.defineProperty(__webpack_exports__,"__esModule",{value:!0});var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_typeof__=__webpack_require__(18),__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_typeof___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_typeof__);/*!
2
  * getwid-map
3
  */
4
+ !function($){var _this=this;$(document).ready(function(event){function removeAllAttributes(t){var e=$.map(t[0].attributes,function(t){return t.name});$.each(e,function(e,o){"class"!=o&&t.removeAttr(o)})}function mapStyles(mapData){var mapStyle=mapData.mapStyle,customStyle=mapData.customStyle;if("object"==__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_typeof___default()(mapStyle))return null;if("default"!=mapStyle){if("custom"!=mapStyle)return stylesArr[mapStyle];try{return eval(customStyle)}catch(t){if(!(t instanceof SyntaxError))throw t;console.error(t.message)}}}function initMarkers(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=t.mapMarkers,r=n[e].coords,a=new google.maps.Marker({position:r,map:o,draggable:!1,animation:google.maps.Animation.DROP});n[e].bounce&&setTimeout(function(){return a.setAnimation(google.maps.Animation.BOUNCE)},2e3);var i="";""!=unescape(n[e].description)&&(i="\n\t\t\t\t\t<div class='getwid-poi-info-window'>\n\t\t\t\t\t\t".concat(_unescape(n[e].description),"\n\t\t\t\t\t</div>\n\t\t\t\t")),attachMessage(a,i,n[e].popUpOpen,n[e].popUpMaxWidth)}function attachMessage(t,e,o,n){var r=new google.maps.InfoWindow({content:e,maxWidth:n});o&&""!=r.content&&r.open(t.get("map"),t),google.maps.event.clearInstanceListeners(t),t.addListener("click",function(){""!=r.content&&r.open(t.get("map"),t)})}$(document.body).on("post-load",function(t){getwid_init_map()});var getwid_init_map=function(){var t=$(".wp-block-getwid-map:not(.getwid-init)");"undefined"!=typeof google?t.each(function(t,e){$(_this).addClass("getwid-init"),$(e).find(".wp-block-getwid-map__points").remove();var o=$(e).find(".wp-block-getwid-map__container")[0],n=$(e).data("map-center"),r=$(e).data("map-markers"),a=$(e).data("map-zoom"),i=$(e).data("map-style"),l=$(e).data("custom-style"),p=$(e).data("zoom-control"),c=$(e).data("type-control"),s=$(e).data("interaction"),m=$(e).data("street-view-control"),u=$(e).data("full-screen-control");removeAllAttributes($(e));var _={mapCenter:n,mapZoom:a,interaction:s,mapStyle:i,customStyle:l,zoomControl:p,mapTypeControl:c,streetViewControl:m,fullscreenControl:u,mapMarkers:r},f=new google.maps.Map(o,{center:n,styles:mapStyles(_),gestureHandling:s,zoomControl:p,mapTypeControl:c,streetViewControl:m,fullscreenControl:u,zoom:a});void 0!==r&&r.length&&$.each(r,function(t,e){initMarkers(_,t,f)})}):t.length&&t.each(function(t,e){var o=$(e);o.find(".wp-block-getwid-map__container").remove(),$(o).prepend('<iframe loading="lazy" src="https://www.google.com/maps/embed" style="border:0;" allowfullscreen="" width="100%" height="400px" frameborder="0"></iframe>')})};getwid_init_map()})}(jQuery)},18:function(t,e){function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function n(e){return"function"==typeof Symbol&&"symbol"===o(Symbol.iterator)?t.exports=n=function(t){return o(t)}:t.exports=n=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":o(t)},n(e)}t.exports=n}});
assets/js/editor.blocks.js CHANGED
@@ -20,4 +20,4 @@ window.wp=window.wp||{},window.wp["./assets/js/editor.blocks"]=function(e){funct
20
  * https://opensource.org/licenses/MIT
21
  *
22
  */
23
- !function(t,r){e.exports=r(n(23),n(20),n(8),n(28),n(111))}(window,function(e,t,n,r,o){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=15)}([function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}Object.defineProperty(t,"__esModule",{value:!0}),t.flattenPossiblyCategorizedSource=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(Array.isArray(e))return i(e);if(null!==t)return void 0!==e[t]?i(e[t]):[];var n=[],r=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){o(e,t,n[t])})}return e}({},e);return Object.keys(r).forEach(function(e){n=i(n).concat(i(r[e]))}),n},t.getPossibleCategories=function(e){return Array.isArray(e)?null:Object.keys(e)},t.convertToHex=function(e){return String.fromCodePoint(parseInt(e,10))},t.isArrayEqual=function(e,t){if(!Array.isArray(e)||!Array.isArray(t))return!1;var n=i(e);n.sort();var r=i(t);return r.sort(),JSON.stringify(n)===JSON.stringify(r)},t.getOffset=function(e){var t=e.getBoundingClientRect(),n=window.pageXOffset||document.documentElement.scrollLeft,r=window.pageYOffset||document.documentElement.scrollTop;return{top:t.top+r,left:t.left+n}},t.getSourceType=function(e){return null===e?"null":"object"!==r(e)||Array.isArray(e)?Array.isArray(e)?"array":r(e):"object"},t.InvalidSourceException=function(e,t){this.givenType=e,this.requiredType=t,this.message="Expected of type: ".concat(this.requiredType,", found: ").concat(this.givenType),this.toString=function(){return"Invalid Source Exception: ".concat(this.message)}},t.fuzzySearch=function(e,t){e=e.toLowerCase();var n=(t=t.toLowerCase()).length,r=e.length;if(r>n)return!1;if(r===n)return e===t;e:for(var o=0,i=0;o<r;o++){for(var a=e.codePointAt(o);i<n;)if(t.codePointAt(i++)===a)continue e;return!1}return!0},t.debounce=void 0,t.debounce=function(e,t){var n;return function(){var r=this,o=arguments;clearTimeout(n),n=setTimeout(function(){return e.apply(r,o)},t)}}},function(e,t){e.exports=n},,,function(e,t){e.exports=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}function l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var c=r(n(1)),s=n(6),u=r(n(0)),p=r(n(3)),d=n(2),m=function(e){function t(e){var n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),r=(t.__proto__||Object.getPrototypeOf(t)).call(this,e),n=!r||"object"!==o(r)&&"function"!=typeof r?l(this):r,Object.defineProperty(l(n),"syncPortalPosition",{configurable:!0,enumerable:!0,writable:!0,value:function(){n.resetPortalPosition(),n.fixWindowOverflow()}}),Object.defineProperty(l(n),"fixWindowOverflow",{configurable:!0,enumerable:!0,writable:!0,value:function(){var e=n.props.domRef.current.offsetWidth,t=n.props.domRef.current.offsetHeight,r=window,o=r.innerWidth,i=r.pageYOffset,a=document.documentElement.clientHeight,l=(0,d.getOffset)(n.props.domRef.current),c=l.left,s=l.top,u="self"===n.state.appendRoot?n.props.domRef.current:n.state.appendRoot,p=(0,d.getOffset)(u),m=n.props.btnRef.current,g=n.props.domRef.current,f=(0,d.getOffset)(m),b=getComputedStyle(m),w=(parseInt(b.borderTop,10)||0)+(parseInt(b.borderBottom,10)||0);if(c+e>o-20){var h=f.left+n.props.btnRef.current.offsetWidth-(e+p.left);h+p.left<0&&(h=10-p.left),g.style.left="".concat(h,"px")}t+s-i>a&&f.top-t>0&&("self"===n.state.appendRoot?g.style.top="-".concat(t-w,"px"):g.style.top="".concat(f.top+w-t,"px"))}}),n.state={},n.debouncedSyncPortalPosition=(0,d.debounce)(n.syncPortalPosition,250),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,c.default.PureComponent),a(t,null,[{key:"getDerivedStateFromProps",value:function(e){var n=t.calculateAppendAndClass(e.appendRoot);return{appendRoot:n.appendRoot,portalClasses:n.portalClasses}}},{key:"calculateAppendAndClass",value:function(e){var t="self",n=(0,p.default)({"rfipdropdown--portal":!1!==e});return!1!==e&&(t=document.querySelector(e)),{portalClasses:n,appendRoot:t}}}]),a(t,[{key:"componentDidMount",value:function(){window.addEventListener("resize",this.debouncedSyncPortalPosition),window.addEventListener("scroll",this.debouncedSyncPortalPosition),this.syncPortalPosition()}},{key:"componentDidUpdate",value:function(){this.syncPortalPosition()}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.debouncedSyncPortalPosition),window.removeEventListener("scroll",this.debouncedSyncPortalPosition)}},{key:"positionPortal",value:function(){var e=this.props.domRef.current.style.display;this.props.domRef.current.style.display="none";var t=this.props.btnRef.current,n=(0,d.getOffset)(t),r=(0,d.getOffset)(this.state.appendRoot),o=t.offsetHeight;this.props.domRef.current.style.left="".concat(n.left-r.left,"px"),this.props.domRef.current.style.top="".concat(n.top+o,"px"),this.props.domRef.current.style.display=e}},{key:"resetPortalPosition",value:function(){var e=this.props.domRef.current;"self"===this.state.appendRoot?e.style.top="":this.positionPortal()}},{key:"render",value:function(){var e=(0,p.default)(this.props.className,this.state.portalClasses),t=c.default.createElement("div",{className:e,ref:this.props.domRef},this.props.children);return"self"===this.state.appendRoot?t:(0,s.createPortal)(t,this.state.appendRoot)}}]),t}();Object.defineProperty(m,"propTypes",{configurable:!0,enumerable:!0,writable:!0,value:{appendRoot:u.default.oneOfType([u.default.bool,u.default.string]),children:u.default.node.isRequired,domRef:u.default.object.isRequired,btnRef:u.default.object.isRequired,className:u.default.string.isRequired}}),Object.defineProperty(m,"defaultProps",{configurable:!0,enumerable:!0,writable:!0,value:{appendRoot:!1}});var g=m;t.default=g},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function l(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=r(n(1)),u=r(n(0)),p=r(n(3)),d=n(2),m=function(e){function t(e){var n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),r=(t.__proto__||Object.getPrototypeOf(t)).call(this,e),n=!r||"object"!==o(r)&&"function"!=typeof r?c(this):r,Object.defineProperty(c(n),"handleChangePage",{configurable:!0,enumerable:!0,writable:!0,value:function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=n.props.currentPage,i=n.state.totalPage;null!==r?"next"===r?o+=1:o-=1:o=parseInt(e.target.value,10)-1,o<0&&(o=0),o>i-1&&(o=i-1),t=o+1,null===r&&Number.isNaN(o)&&(o=0,t=""),n.setState({viewPage:t}),n.props.handleChangePage(o)}}),Object.defineProperty(c(n),"handlePageKeyBoard",{configurable:!0,enumerable:!0,writable:!0,value:function(e,t){13!==e.keyCode&&32!==e.keyCode||n.handleChangePage({},t)}}),Object.defineProperty(c(n),"handleChangeValue",{configurable:!0,enumerable:!0,writable:!0,value:function(e){n.props.handleChangeValue(e)}}),Object.defineProperty(c(n),"handleValueKeyboard",{configurable:!0,enumerable:!0,writable:!0,value:function(e,t){13!==e.keyCode&&32!==e.keyCode||n.handleChangeValue(t)}}),n.state={viewPage:n.props.currentPage+1},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,s.default.PureComponent),l(t,null,[{key:"getDerivedStateFromProps",value:function(e,n){var r=t.getCategoryFilteredState(e.currentCategory,e.categories,e.icons),o=t.getCategoryFilteredState(e.currentCategory,e.categories,null===e.search?e.icons:e.search),i=t.getActiveIcons(r,o,e.currentSearch),a=i.activeIcons,l=i.activeTitles,c=e.currentPage,s=e.iconsPerPage,u={iconView:t.getCurrentViewIcons(a,s,c),titleView:t.getCurrentViewIcons(l,s,c),totalPage:Math.ceil(a.length/s)};return""!==n.viewPage&&(u.viewPage=e.currentPage+1),u}},{key:"getActiveIcons",value:function(e,t,n){var r=i(e),o=i(t);if(""===n||null===n)return{activeIcons:r,activeTitles:o};var a=[],l=[];return r.forEach(function(e,r){(0,d.fuzzySearch)(n,t[r])&&(a.push(e),l.push(t[r]))}),{activeIcons:a,activeTitles:l}}},{key:"getCategoryFilteredState",value:function(e,t,n){var r=null,o=(0,d.getSourceType)(n);if(Array.isArray(t)){if("object"!==o)throw new d.InvalidSourceException(o,"object")}else if("array"!==o)throw new d.InvalidSourceException(o,"array");return 0!==e&&Array.isArray(t)&&(r=t[e]||null),(0,d.flattenPossiblyCategorizedSource)(n,r)}},{key:"getCurrentViewIcons",value:function(e,t,n){var r=n*t,o=(n+1)*t;return e.slice(r,o)}}]),l(t,[{key:"renderPager",value:function(){var e=this;if(this.state.totalPage<1)return null;var t=this.props.currentPage>0?s.default.createElement("span",{className:"rfipicons__left",role:"button",tabIndex:0,onKeyDown:function(t){return e.handlePageKeyBoard(t,"prev")},onClick:function(t){return e.handleChangePage(t,"prev")}},s.default.createElement("span",{role:"presentation",className:"rfipicons__label","aria-label":"Left"},s.default.createElement("i",{className:"fipicon-angle-left"}))):null,n=this.props.currentPage<this.state.totalPage-1?s.default.createElement("span",{className:"rfipicons__right",role:"button",tabIndex:0,onKeyDown:function(t){return e.handlePageKeyBoard(t,"next")},onClick:function(t){return e.handleChangePage(t,"next")}},s.default.createElement("span",{role:"presentation",className:"rfipicons__label","aria-label":"Right"},s.default.createElement("i",{className:"fipicon-angle-right"}))):null;return s.default.createElement("div",{className:"rfipicons__pager"},s.default.createElement("div",{className:"rfipicons__num"},s.default.createElement("input",{value:this.state.viewPage,onChange:this.handleChangePage,className:"rfipicons__cp",type:"tel",min:1}),s.default.createElement("span",{className:"rfipicons__sp"},"/"),s.default.createElement("span",{className:"rfipicons__tp"},this.state.totalPage)),s.default.createElement("div",{className:"rfipicons__arrow"},t,n))}},{key:"renderIconView",value:function(){var e=this;return this.state.totalPage>0?this.state.iconView.map(function(t,n){var r=(0,p.default)("rfipicons__icon",{"rfipicons__icon--selected":e.props.value===t||Array.isArray(e.props.value)&&e.props.value.includes(t)});return s.default.createElement("span",{className:r,key:t,title:e.state.titleView[n]},s.default.createElement("span",{className:"rfipicons__ibox",tabIndex:0,role:"button",onClick:function(){return e.handleChangeValue(t)},onKeyDown:function(n){return e.handleValueKeyboard(n,t)}},e.props.renderIcon(t)))}):s.default.createElement("span",{className:"rfipicons__icon--error"},s.default.createElement("span",{className:"rfipicons__ibox--error"},this.props.noIconPlaceholder))}},{key:"render",value:function(){return s.default.createElement("div",{className:"rfipicons"},this.renderPager(),s.default.createElement("div",{className:"rfipicons__selector"},this.renderIconView()))}}]),t}();Object.defineProperty(m,"propTypes",{configurable:!0,enumerable:!0,writable:!0,value:{categories:u.default.arrayOf(u.default.string),currentCategory:u.default.number,isMulti:u.default.bool.isRequired,icons:u.default.oneOfType([u.default.arrayOf(u.default.string),u.default.arrayOf(u.default.number),u.default.objectOf(u.default.oneOfType([u.default.arrayOf(u.default.number),u.default.arrayOf(u.default.string)]))]).isRequired,search:u.default.oneOfType([u.default.objectOf(u.default.arrayOf(u.default.string)),u.default.arrayOf(u.default.string)]),value:u.default.oneOfType([u.default.number,u.default.string,u.default.arrayOf(u.default.oneOfType([u.default.number,u.default.string]))]).isRequired,currentSearch:u.default.string.isRequired,handleChangeValue:u.default.func.isRequired,currentPage:u.default.number.isRequired,iconsPerPage:u.default.number.isRequired,handleChangePage:u.default.func.isRequired,renderIcon:u.default.func.isRequired,noIconPlaceholder:u.default.string.isRequired}}),Object.defineProperty(m,"defaultProps",{configurable:!0,enumerable:!0,writable:!0,value:{categories:null,currentCategory:null,search:null}});var g=m;t.default=g},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(1)),i=r(n(0)),a=function(e){return o.default.createElement("div",{className:"rfipsearch"},o.default.createElement("input",{type:"text",className:"rfipsearch__input",value:e.value,onChange:e.handleSearch,placeholder:e.placeholder}))};a.propTypes={handleSearch:i.default.func.isRequired,value:i.default.string.isRequired,placeholder:i.default.string.isRequired};var l=a;t.default=l},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(1)),l=r(n(0)),c=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){return!t||"object"!==o(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}var n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.default.PureComponent),n=t,(r=[{key:"render",value:function(){return a.default.createElement("div",{className:"rfipcategory"},a.default.createElement("select",{className:"rfipcategory__select",onChange:this.props.handleCategory,value:this.props.value},this.props.categories.map(function(e,t){return a.default.createElement("option",{className:"rfipcategory__select__option",key:e,value:t},e)})),a.default.createElement("i",{className:"fipicon-angle-down",role:"presentation","aria-label":"Open"}))}}])&&i(n.prototype,r),t}();Object.defineProperty(c,"propTypes",{configurable:!0,enumerable:!0,writable:!0,value:{handleCategory:l.default.func.isRequired,value:l.default.number.isRequired,categories:l.default.arrayOf(l.default.string).isRequired}});var s=c;t.default=s},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}function l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var c=r(n(1)),s=r(n(0)),u=r(n(10)),p=r(n(9)),d=r(n(8)),m=n(2),g=function(e){function t(e){var n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),r=(t.__proto__||Object.getPrototypeOf(t)).call(this,e),n=!r||"object"!==o(r)&&"function"!=typeof r?l(this):r,Object.defineProperty(l(n),"handleCategory",{configurable:!0,enumerable:!0,writable:!0,value:function(e){var t=parseInt(e.target.value,10);Number.isNaN(t)&&(t=0),n.props.handleChangeCategory(t),n.props.handleChangePage(0)}}),Object.defineProperty(l(n),"handleSearch",{configurable:!0,enumerable:!0,writable:!0,value:function(e){var t=e.target.value;n.props.handleChangeSearch(t)}}),n.state={},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,c.default.PureComponent),a(t,null,[{key:"getDerivedStateFromProps",value:function(e){var t=(0,m.getPossibleCategories)(e.icons);return null!==t&&(t=[e.allCatPlaceholder].concat(function(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}(t))),{categories:t,searchString:e.currentSearch}}}]),a(t,[{key:"render",value:function(){return c.default.createElement("div",{className:"rfipdropdown__selector"},this.props.showSearch?c.default.createElement(p.default,{handleSearch:this.handleSearch,value:this.state.searchString,placeholder:this.props.searchPlaceholder}):null,this.props.showCategory&&this.state.categories&&this.state.categories.length?c.default.createElement(u.default,{handleCategory:this.handleCategory,value:this.props.currentCategory,categories:this.state.categories}):null,c.default.createElement(d.default,{categories:this.state.categories,currentCategory:this.props.currentCategory,isMulti:this.props.isMulti,icons:this.props.icons,search:this.props.search,value:this.props.value,currentSearch:this.props.currentSearch,handleChangeValue:this.props.handleChangeValue,currentPage:this.props.currentPage,iconsPerPage:this.props.iconsPerPage,handleChangePage:this.props.handleChangePage,renderIcon:this.props.renderIcon,noIconPlaceholder:this.props.noIconPlaceholder}))}}]),t}();Object.defineProperty(g,"propTypes",{configurable:!0,enumerable:!0,writable:!0,value:{isMulti:s.default.bool.isRequired,value:s.default.oneOfType([s.default.number,s.default.string,s.default.arrayOf(s.default.any)]).isRequired,currentCategory:s.default.number.isRequired,currentPage:s.default.number.isRequired,currentSearch:s.default.string.isRequired,icons:s.default.oneOfType([s.default.arrayOf(s.default.number),s.default.arrayOf(s.default.string),s.default.objectOf(s.default.oneOfType([s.default.arrayOf(s.default.number),s.default.arrayOf(s.default.string)]))]).isRequired,search:s.default.oneOfType([s.default.object,s.default.arrayOf(s.default.string)]),showCategory:s.default.bool.isRequired,showSearch:s.default.bool.isRequired,iconsPerPage:s.default.number.isRequired,allCatPlaceholder:s.default.string.isRequired,searchPlaceholder:s.default.string.isRequired,noIconPlaceholder:s.default.string.isRequired,renderIcon:s.default.func.isRequired,handleChangeValue:s.default.func.isRequired,handleChangeCategory:s.default.func.isRequired,handleChangePage:s.default.func.isRequired,handleChangeSearch:s.default.func.isRequired}}),Object.defineProperty(g,"defaultProps",{configurable:!0,enumerable:!0,writable:!0,value:{search:null}});var f=g;t.default=f},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function l(e,t){return!t||"object"!==o(t)&&"function"!=typeof t?c(e):t}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=r(n(1)),u=r(n(0)),p=r(n(3)),d=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return l(r,(n=r=l(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),Object.defineProperty(c(r),"handleClick",{configurable:!0,enumerable:!0,writable:!0,value:function(){r.props.onClick()}}),Object.defineProperty(c(r),"handleKeyDown",{configurable:!0,enumerable:!0,writable:!0,value:function(e){32!==e.keyCode&&13!==e.keyCode||r.props.onClick()}}),Object.defineProperty(c(r),"handleDelete",{configurable:!0,enumerable:!0,writable:!0,value:function(e,t){e.stopPropagation(),r.props.handleDeleteValue(t)}}),Object.defineProperty(c(r),"handleDeleteKeyboard",{configurable:!0,enumerable:!0,writable:!0,value:function(e,t){32!==e.keyCode&&13!==e.keyCode||r.props.handleDeleteValue(t)}}),Object.defineProperty(c(r),"renderEmptyIcon",{configurable:!0,enumerable:!0,writable:!0,value:function(){return s.default.createElement("span",{className:"rfipbtn__icon--empty"},r.props.noSelectedPlaceholder)}}),n))}var n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,s.default.PureComponent),n=t,(r=[{key:"renderIcon",value:function(e){var t=this;return""===e||null===e||void 0===e?this.renderEmptyIcon():s.default.createElement("span",{className:"rfipbtn__icon",key:e},s.default.createElement("span",{className:"rfipbtn__elm"},this.props.renderIcon(e)),s.default.createElement("span",{className:"rfipbtn__del",onClick:function(n){return t.handleDelete(n,e)},onKeyDown:function(n){return t.handleDeleteKeyboard(n,e)},tabIndex:0,role:"button"},"×"))}},{key:"renderCurrentIcons",value:function(){var e=this;return this.props.isMulti?this.props.value.length?this.props.value.map(function(t){return e.renderIcon(t)}):this.renderEmptyIcon():this.renderIcon(this.props.value)}},{key:"render",value:function(){var e={onClick:this.handleClick,onKeyDown:this.handleKeyDown,onFocus:this.handleFocus,onBlur:this.handleBlur,tabIndex:0},t=(0,p.default)("rfipbtn__button","rfipbtn__button--".concat(this.props.isOpen?"open":"close")),n=(0,p.default)(this.props.className);return s.default.createElement("div",i({className:n,ref:this.props.domRef},e),s.default.createElement("div",{className:"rfipbtn__current"},this.renderCurrentIcons()),s.default.createElement("div",{className:t},s.default.createElement("i",{className:"fipicon-angle-down",role:"presentation","aria-label":"Open"})))}}])&&a(n.prototype,r),t}();Object.defineProperty(d,"propTypes",{configurable:!0,enumerable:!0,writable:!0,value:{className:u.default.string.isRequired,isOpen:u.default.bool.isRequired,onClick:u.default.func.isRequired,domRef:u.default.object.isRequired,isMulti:u.default.bool.isRequired,value:u.default.oneOfType([u.default.number,u.default.string,u.default.arrayOf(u.default.oneOfType([u.default.number,u.default.string]))]).isRequired,renderIcon:u.default.func.isRequired,handleDeleteValue:u.default.func.isRequired,noSelectedPlaceholder:u.default.string.isRequired}});var m=d;t.default=m},function(e,t){e.exports=o},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e,t,n){return t&&l(e.prototype,t),n&&l(e,n),e}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var u=r(n(1)),p=r(n(0)),d=r(n(3)),m=n(13),g=r(n(12)),f=r(n(11)),b=r(n(7)),w=n(2),h=[],v="",y=function(e){function t(e){var n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),r=(t.__proto__||Object.getPrototypeOf(t)).call(this,e),n=!r||"object"!==o(r)&&"function"!=typeof r?s(this):r,Object.defineProperty(s(n),"handleOuterClick",{configurable:!0,enumerable:!0,writable:!0,value:function(e){var t=e.target;n.isClickWithin(t)||n.closeDropdown()}}),Object.defineProperty(s(n),"handleEscapeKeyboard",{configurable:!0,enumerable:!0,writable:!0,value:function(e){27===e.keyCode&&n.closeDropdown()}}),Object.defineProperty(s(n),"isClickWithin",{configurable:!0,enumerable:!0,writable:!0,value:function(e){return n.fipButtonRef.current.contains(e)||n.fipDropDownRef.current&&n.fipDropDownRef.current.contains(e)}}),Object.defineProperty(s(n),"handleToggle",{configurable:!0,enumerable:!0,writable:!0,value:function(){n.setState(function(e){return n.handleDropDown(!e.isOpen,!1)})}}),Object.defineProperty(s(n),"closeDropdown",{configurable:!0,enumerable:!0,writable:!0,value:function(){n.handleDropDown(!1)}}),Object.defineProperty(s(n),"handleDropDown",{configurable:!0,enumerable:!0,writable:!0,value:function(e){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o={isOpen:e};return o.elemClass=t.getDerivedClassName("rfip",n.props.theme,n.props.isMulti,e),o.btnClass=t.getDerivedClassName("rfipbtn",n.props.theme,n.props.isMulti,e),o.ddClass=t.getDerivedClassName("rfipdropdown",n.props.theme,n.props.isMulti,e),r&&n.setState(o),o}}),Object.defineProperty(s(n),"handleChangeValue",{configurable:!0,enumerable:!0,writable:!0,value:function(e){var t;n.props.isMulti?(t=i(n.state.value)).includes(e)?(t=t.filter(function(t){return t!==e})).length||(t=h):t.push(e):t=e===n.state.value?v:e,n.setState({value:t,isOpen:!n.props.closeOnSelect}),n.props.onChange(t)}}),Object.defineProperty(s(n),"handleDeleteValue",{configurable:!0,enumerable:!0,writable:!0,value:function(e){var r;r=n.props.isMulti?n.state.value.filter(function(t){return t!==e}):t.getDerivedValue(r,n.props.isMulti),n.setState({value:r}),n.props.onChange(r)}}),Object.defineProperty(s(n),"handleChangePage",{configurable:!0,enumerable:!0,writable:!0,value:function(e){n.setState({currentPage:e})}}),Object.defineProperty(s(n),"handleChangeCategory",{configurable:!0,enumerable:!0,writable:!0,value:function(e){n.setState({currentCategory:e,currentPage:0})}}),Object.defineProperty(s(n),"handleChangeSearch",{configurable:!0,enumerable:!0,writable:!0,value:function(e){n.setState({currentSearch:e,currentPage:0})}}),Object.defineProperty(s(n),"resetPortalStyle",{configurable:!0,enumerable:!0,writable:!0,value:function(e){["maxHeight","paddingTop","paddingBottom"].forEach(function(t){e.style[t]=null})}}),Object.defineProperty(s(n),"handlePortalEnter",{configurable:!0,enumerable:!0,writable:!0,value:function(e){var t=e.childNodes[0];n.resetPortalStyle(t);var r=getComputedStyle(t);n.fipPortalComputedStyle={height:r.height,paddingTop:r.paddingTop,paddingBottom:r.paddingBottom},["maxHeight","paddingTop","paddingBottom"].forEach(function(e){t.style[e]="0px"})}}),Object.defineProperty(s(n),"handlePortalEntering",{configurable:!0,enumerable:!0,writable:!0,value:function(e){var t=e.childNodes[0];t.style.maxHeight=n.fipPortalComputedStyle.height,t.style.paddingTop=n.fipPortalComputedStyle.paddingTop,t.style.paddingBottom=n.fipPortalComputedStyle.paddingBottom}}),Object.defineProperty(s(n),"handlePortalEntered",{configurable:!0,enumerable:!0,writable:!0,value:function(e){var t=e.childNodes[0];n.resetPortalStyle(t),n.props.showSearch&&void 0===window.orientation&&-1===navigator.userAgent.indexOf("IEMobile")&&t.querySelector(".rfipsearch__input").focus()}}),Object.defineProperty(s(n),"handlePortalExit",{configurable:!0,enumerable:!0,writable:!0,value:function(e){var t=e.childNodes[0];n.resetPortalStyle(t);var r=getComputedStyle(t).height;t.style.maxHeight=r}}),Object.defineProperty(s(n),"handlePortalExiting",{configurable:!0,enumerable:!0,writable:!0,value:function(e){var t=e.childNodes[0];t.style.maxHeight="0px",t.style.paddingTop="0px",t.style.paddingBottom="0px"}}),Object.defineProperty(s(n),"renderIcon",{configurable:!0,enumerable:!0,writable:!0,value:function(e){if("function"==typeof n.props.renderFunc)return n.props.renderFunc(e);if("class"===n.props.renderUsing)return u.default.createElement("i",{className:e});var t=a({},n.props.renderUsing,n.props.convertHex?(0,w.convertToHex)(e):e);return u.default.createElement("i",t)}}),n.fipButtonRef=u.default.createRef(),n.fipDropDownRef=u.default.createRef(),n.state={currentCategory:0,currentPage:0,isOpen:!1,currentSearch:""},n.fipPortalComputedStyle=null,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,u.default.PureComponent),c(t,null,[{key:"getDerivedStateFromProps",value:function(e,n){var r={};return r.elemClass=t.getDerivedClassName("rfip",e.theme,e.isMulti,n.isOpen),r.btnClass=t.getDerivedClassName("rfipbtn",e.theme,e.isMulti,n.isOpen),r.ddClass=t.getDerivedClassName("rfipdropdown",e.theme,e.isMulti,n.isOpen),r.value=t.getDerivedValue(e.value,e.isMulti),e.showCategory||(r.currentCategory=0,r.currentPage=0),e.showSearch||(r.currentSearch="",r.currentPage=0),r}},{key:"getDerivedClassName",value:function(e,t,n,r){return(0,d.default)(e,"".concat(e,"--").concat(t),a({},"".concat(e,"--multi"),n),"".concat(e,"--").concat(r?"open":"close"))}},{key:"getDerivedValue",value:function(e,t){var n=e;return t?n=Array.isArray(e)?i(e):h:"number"!=typeof e&&"string"!=typeof e&&(n=v),n}}]),c(t,[{key:"componentDidMount",value:function(){var e=this;["click"].forEach(function(t){document.addEventListener(t,e.handleOuterClick,!1)}),document.addEventListener("keydown",this.handleEscapeKeyboard,!1),this.props.onChange(this.state.value)}},{key:"componentWillUnmount",value:function(){var e=this;["click"].forEach(function(t){document.removeEventListener(t,e.handleOuterClick,!1)}),document.removeEventListener("keydown",this.handleEscapeKeyboard,!1)}},{key:"render",value:function(){var e={currentCategory:this.state.currentCategory,currentPage:this.state.currentPage,currentSearch:this.state.currentSearch,value:this.state.value,isMulti:this.props.isMulti,icons:this.props.icons,search:this.props.search,showCategory:this.props.showCategory,showSearch:this.props.showSearch,iconsPerPage:this.props.iconsPerPage,allCatPlaceholder:this.props.allCatPlaceholder,searchPlaceholder:this.props.searchPlaceholder,noIconPlaceholder:this.props.noIconPlaceholder,renderIcon:this.renderIcon,handleChangeValue:this.handleChangeValue,handleChangeCategory:this.handleChangeCategory,handleChangePage:this.handleChangePage,handleChangeSearch:this.handleChangeSearch};return u.default.createElement("div",{className:this.state.elemClass,ref:this.fipRef},u.default.createElement(g.default,{className:this.state.btnClass,isOpen:this.state.isOpen,onClick:this.handleToggle,domRef:this.fipButtonRef,isMulti:this.props.isMulti,value:this.state.value,renderIcon:this.renderIcon,handleDeleteValue:this.handleDeleteValue,noSelectedPlaceholder:this.props.noSelectedPlaceholder}),u.default.createElement(m.CSSTransition,{classNames:"fipappear",timeout:300,in:this.state.isOpen,unmountOnExit:!0,onEnter:this.handlePortalEnter,onEntering:this.handlePortalEntering,onEntered:this.handlePortalEntered,onExit:this.handlePortalExit,onExiting:this.handlePortalExiting},u.default.createElement(b.default,{appendRoot:this.props.appendTo,domRef:this.fipDropDownRef,btnRef:this.fipButtonRef,className:this.state.ddClass},u.default.createElement(f.default,e))))}}]),t}();Object.defineProperty(y,"propTypes",{configurable:!0,enumerable:!0,writable:!0,value:{icons:p.default.oneOfType([p.default.arrayOf(p.default.string),p.default.arrayOf(p.default.number),p.default.objectOf(p.default.oneOfType([p.default.arrayOf(p.default.number),p.default.arrayOf(p.default.string)]))]).isRequired,search:p.default.oneOfType([p.default.objectOf(p.default.arrayOf(p.default.string)),p.default.arrayOf(p.default.string)]),iconsPerPage:p.default.number,theme:p.default.string,onChange:p.default.func.isRequired,showCategory:p.default.bool,showSearch:p.default.bool,value:p.default.oneOfType([p.default.arrayOf(p.default.string),p.default.arrayOf(p.default.number),p.default.number,p.default.string]),isMulti:p.default.bool,renderUsing:p.default.string,convertHex:p.default.bool,renderFunc:p.default.func,appendTo:p.default.oneOfType([p.default.bool,p.default.string]),allCatPlaceholder:p.default.string,searchPlaceholder:p.default.string,noIconPlaceholder:p.default.string,noSelectedPlaceholder:p.default.string,closeOnSelect:p.default.bool}}),Object.defineProperty(y,"defaultProps",{configurable:!0,enumerable:!0,writable:!0,value:{search:null,iconsPerPage:20,theme:"default",showCategory:!0,showSearch:!0,value:null,isMulti:!1,renderUsing:"class",convertHex:!0,renderFunc:null,appendTo:!1,allCatPlaceholder:"Show from all",searchPlaceholder:"Search Icons",noIconPlaceholder:"No icons found",noSelectedPlaceholder:"Select icon",closeOnSelect:!1}}),Object.defineProperty(y,"displayName",{configurable:!0,enumerable:!0,writable:!0,value:"FontIconPicker"});var _=y;t.default=_},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=((r=n(14))&&r.__esModule?r:{default:r}).default;t.default=o}]).default})},function(e,t,n){"use strict";function r(){}function o(){}var i=n(110);o.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,o,a){if(a!==i){var l=new Error("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");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:r};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var o=r(n(112)),i=r(n(117)),a=r(n(48)),l=r(n(45));e.exports={Transition:l.default,TransitionGroup:a.default,ReplaceTransition:i.default,CSSTransition:o.default}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(){return o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}t.__esModule=!0,t.default=void 0;var a=(function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}t.default=e}(n(23)),r(n(113))),l=r(n(116)),c=r(n(20)),s=r(n(45)),u=(n(47),function(e,t){return e&&t&&t.split(" ").forEach(function(t){return(0,a.default)(e,t)})}),p=function(e,t){return e&&t&&t.split(" ").forEach(function(t){return(0,l.default)(e,t)})},d=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t=e.call.apply(e,[this].concat(r))||this,t.onEnter=function(e,n){var r=t.getClassNames(n?"appear":"enter"),o=r.className;t.removeClasses(e,"exit"),u(e,o),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.getClassNames(n?"appear":"enter"),o=r.activeClassName;t.reflowAndAddClass(e,o),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.getClassNames("appear").doneClassName,o=t.getClassNames("enter").doneClassName,i=n?r+" "+o:o;t.removeClasses(e,n?"appear":"enter"),u(e,i),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.getClassNames("exit"),r=n.className;t.removeClasses(e,"appear"),t.removeClasses(e,"enter"),u(e,r),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.getClassNames("exit"),r=n.activeClassName;t.reflowAndAddClass(e,r),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.getClassNames("exit"),r=n.doneClassName;t.removeClasses(e,"exit"),u(e,r),t.props.onExited&&t.props.onExited(e)},t.getClassNames=function(e){var n=t.props.classNames,r="string"==typeof n,o=r&&n?n+"-":"",i=r?o+e:n[e];return{className:i,activeClassName:r?i+"-active":n[e+"Active"],doneClassName:r?i+"-done":n[e+"Done"]}},t}i(t,e);var n=t.prototype;return n.removeClasses=function(e,t){var n=this.getClassNames(t),r=n.className,o=n.activeClassName,i=n.doneClassName;r&&p(e,r),o&&p(e,o),i&&p(e,i)},n.reflowAndAddClass=function(e,t){t&&(e&&e.scrollTop,u(e,t))},n.render=function(){var e=o({},this.props);return delete e.classNames,c.default.createElement(s.default,o({},e,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(c.default.Component);d.defaultProps={classNames:""},d.propTypes={};var m=d;t.default=m,e.exports=t.default},function(e,t,n){"use strict";function r(e,t){e.classList?e.classList.add(t):(0,i.default)(e,t)||("string"==typeof e.className?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}var o=n(114);t.__esModule=!0,t.default=r;var i=o(n(115));e.exports=t.default},function(e,t){function n(e){return e&&e.__esModule?e:{default:e}}e.exports=n},function(e,t,n){"use strict";function r(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}t.__esModule=!0,t.default=r,e.exports=t.default},function(e,t,n){"use strict";function r(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}e.exports=function(e,t){e.classList?e.classList.remove(t):"string"==typeof e.className?e.className=r(e.className,t):e.setAttribute("class",r(e.className&&e.className.baseVal||"",t))}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}t.__esModule=!0,t.default=void 0;var a=(r(n(23)),r(n(20))),l=n(28),c=r(n(48)),s=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t=e.call.apply(e,[this].concat(r))||this,t.handleEnter=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEnter",0,n)},t.handleEntering=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntering",0,n)},t.handleEntered=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntered",0,n)},t.handleExit=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExit",1,n)},t.handleExiting=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExiting",1,n)},t.handleExited=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExited",1,n)},t}i(t,e);var n=t.prototype;return n.handleLifecycle=function(e,t,n){var r,o=this.props.children,i=a.default.Children.toArray(o)[t];i.props[e]&&(r=i.props)[e].apply(r,n),this.props[e]&&this.props[e]((0,l.findDOMNode)(this))},n.render=function(){var e=this.props,t=e.children,n=e.in,r=o(e,["children","in"]),i=a.default.Children.toArray(t),l=i[0],s=i[1];return delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,a.default.createElement(c.default,r,n?a.default.cloneElement(l,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):a.default.cloneElement(s,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},t}(a.default.Component);s.propTypes={};var u=s;t.default=u,e.exports=t.default},function(e,t,n){"use strict";function r(e,t){var n=function(e){return t&&(0,c.isValidElement)(e)?t(e):e},r=Object.create(null);return e&&c.Children.map(e,function(e){return e}).forEach(function(e){r[e.key]=n(e)}),r}function o(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r=Object.create(null),o=[];for(var i in e)i in t?o.length&&(r[i]=o,o=[]):o.push(i);var a,l={};for(var c in t){if(r[c])for(a=0;a<r[c].length;a++){var s=r[c][a];l[r[c][a]]=n(s)}l[c]=n(c)}for(a=0;a<o.length;a++)l[o[a]]=n(o[a]);return l}function i(e,t,n){return null!=n[t]?n[t]:e.props[t]}function a(e,t){return r(e.children,function(n){return(0,c.cloneElement)(n,{onExited:t.bind(null,n),in:!0,appear:i(n,"appear",e),enter:i(n,"enter",e),exit:i(n,"exit",e)})})}function l(e,t,n){var a=r(e.children),l=o(t,a);return Object.keys(l).forEach(function(r){var o=l[r];if((0,c.isValidElement)(o)){var s=r in t,u=r in a,p=t[r],d=(0,c.isValidElement)(p)&&!p.props.in;!u||s&&!d?u||!s||d?u&&s&&(0,c.isValidElement)(p)&&(l[r]=(0,c.cloneElement)(o,{onExited:n.bind(null,o),in:p.props.in,exit:i(o,"exit",e),enter:i(o,"enter",e)})):l[r]=(0,c.cloneElement)(o,{in:!1}):l[r]=(0,c.cloneElement)(o,{onExited:n.bind(null,o),in:!0,exit:i(o,"exit",e),enter:i(o,"enter",e)})}}),l}t.__esModule=!0,t.getChildMapping=r,t.mergeChildMappings=o,t.getInitialChildMapping=a,t.getNextChildMapping=l;var c=n(20)},function(e,t){},function(e,t){},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=O()(e);if(t()){var o=O()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return _()(this,n)}}var o=n(15),i=n.n(o),a=n(9),l=n.n(a),c=n(7),s=n.n(c),u=n(13),p=n.n(u),d=n(2),m=n.n(d),g=n(4),f=n.n(g),b=n(11),w=n.n(b),h=n(5),v=n.n(h),y=n(6),_=n.n(y),k=n(3),O=n.n(k),E=(n(0),n(1)),C=(n.n(E),n(10)),j=(n.n(C),n(19)),S=n(125),x=n(17),P=n(16),T=n(24),R=n(127),N=n(14),A=wp.data,B=A.select,D=A.withSelect,M=wp.element,I=M.Component,L=M.Fragment,z=wp.blockEditor||wp.editor,V=z.InspectorControls,F=z.MediaUpload,H=z.MediaPlaceholder,G=z.withColors,W=wp.components,U=W.FocalPointPicker,q=W.BaseControl,Q=W.Button,K=W.PanelBody,Y=W.RangeControl,J=W.SelectControl,$=W.TextControl,Z=W.CheckboxControl,X=W.RadioControl,ee=W.ToggleControl,te=W.ButtonGroup,ne=W.TabPanel,re=W.ExternalLink,oe=W.ColorPalette,ie=W.ColorIndicator,ae=W.Dropdown,le=W.Dashicon,ce=wp.components.__experimentalGradientPicker,se=wp.compose.compose,ue=["image"],pe=["image"],de=["video"],me=["colors","disableCustomColors","gradients","disableCustomGradients"],ge="components-base-control",fe=function(e){function t(e){var r;return m()(this,t),r=n.apply(this,arguments),r.onSelectSliderImages=r.onSelectSliderImages.bind(w()(r)),r.changeBackgroundGradient=r.changeBackgroundGradient.bind(w()(r)),r.changeForegroundGradient=r.changeForegroundGradient.bind(w()(r)),r.changeState=r.changeState.bind(w()(r)),r.state={contentHelpIsVisible:!1,tabName:"general",backgroundType:"color",foregroundType:"color"},r}v()(t,e);var n=r(t);return f()(t,[{key:"changeState",value:function(e,t){"object"==p()(e)?this.setState(e):"string"==typeof e&&this.setState(s()({},e,t))}},{key:"getState",value:function(e){return this.state[e]}},{key:"render",value:function(){var e=this.state,t=e.tabName,n=e.backgroundType,r=e.foregroundType,o=this.props.attributes.customBackgroundColor,i=this.props,a=i.setBackgroundColor,c=i.backgroundColor,s=i.clientId,u=i.getBlock,p=this.props.attributes,d=p.backgroundGradientFirstColor,m=p.backgroundGradientFirstColorLocation,g=p.backgroundGradientSecondColor,f=p.backgroundGradientSecondColorLocation,b=p.backgroundGradientType,w=p.backgroundGradientAngle,h=this.props.attributes,v=h.foregroundGradientFirstColor,y=h.foregroundGradientFirstColorLocation,_=h.foregroundGradientSecondColor,k=h.foregroundGradientSecondColorLocation,O=h.foregroundGradientType,C=h.foregroundGradientAngle,x=this.props,T=x.colorGradientSettings,A=x.prepareMultiGradientStyle,B=T.gradients,D=T.disableCustomColors,M=T.disableCustomGradients,I=this.changeBackgroundGradient,z=this.changeForegroundGradient,F=this.changeState,H=this.props.setAttributes,G=this.props.attributes,W=G.backgroundGradient,U=G.foregroundGradient;return W=A("background",this.props),U=A("foreground",this.props),u(s)?wp.element.createElement(V,{key:"inspector"},wp.element.createElement(j.a,{state:t,stateName:"tabName",onChangeTab:F,tabs:["general","style","advanced"]}),"general"===t&&wp.element.createElement(L,null,wp.element.createElement(K,{initialOpen:!0},this.renderSizeSettings(),this.renderAlignmentSettings())),"style"===t&&wp.element.createElement(L,null,wp.element.createElement(K,{title:Object(E.__)("Background","getwid"),initialOpen:!0},wp.element.createElement(S.a,{state:n,stateName:"backgroundType",onChangeBackgroundType:F,types:["color","image","gradient","slider","video"]}),"color"===n&&wp.element.createElement(P.a,{colorSettings:[{title:Object(E.__)("Background Color","getwid"),colors:{customColor:o,defaultColor:c},changeColor:a}]}),"image"===n&&wp.element.createElement(L,null,this.renderBackgroundImage()),"gradient"===n&&(ce?wp.element.createElement(ce,l()({value:W,onChange:function(e){H({backgroundGradient:e})}},{gradients:B,disableCustomColors:D,disableCustomGradients:M})):wp.element.createElement(R.a,{label:"Background Gradient",value:{firstColor:d,secondColor:g,firstLocation:m,secondLocation:f,type:b,angle:w},onChange:I})),"slider"===n&&wp.element.createElement(L,null,this.renderSliderSettings()),"video"===n&&wp.element.createElement(L,null,this.renderVideoSettings())),wp.element.createElement(K,{title:Object(E.__)("Overlay","getwid"),initialOpen:!1},this.renderForegroundSettings(),wp.element.createElement(S.a,{label:Object(E.__)("Overlay Type","getwid"),state:r,stateName:"foregroundType",onChangeBackgroundType:F,types:["color","image","gradient"]}),"color"===r&&wp.element.createElement(L,null,this.renderForegroundColor()),"image"===r&&wp.element.createElement(L,null,this.renderForegroundImage()),"gradient"===r&&(ce?wp.element.createElement(ce,l()({value:U,onChange:function(e){return H({foregroundGradient:e})}},{gradients:B,disableCustomColors:D,disableCustomGradients:M})):wp.element.createElement(R.a,{label:"Overlay Gradient",value:{firstColor:v,secondColor:_,firstLocation:y,secondLocation:k,type:O,angle:C},onChange:z}))),Object(N.g)(this),Object(N.d)(this)),"advanced"===t&&wp.element.createElement(L,null,this.renderAnimationSettings(),this.renderDividersSettings())):wp.element.createElement(V,null)}},{key:"changeBackgroundGradient",value:function(e,t,n,r,o,i){(0,this.props.setAttributes)({backgroundGradientFirstColor:e,backgroundGradientSecondColor:n,backgroundGradientFirstColorLocation:t,backgroundGradientSecondColorLocation:r,backgroundGradientType:o,backgroundGradientAngle:i})}},{key:"changeForegroundGradient",value:function(e,t,n,r,o,i){(0,this.props.setAttributes)({foregroundGradientFirstColor:e,foregroundGradientSecondColor:n,foregroundGradientFirstColorLocation:t,foregroundGradientSecondColorLocation:r,foregroundGradientType:o,foregroundGradientAngle:i})}},{key:"hasAnimation",value:function(){var e=this.props.attributes,t=e.entranceAnimation,n=e.entranceAnimationDelay,r=e.entranceAnimationDuration;return void 0!==t||"200ms"!==n||"1500ms"!==r}},{key:"renderBackgroundImage",value:function(){var e=this.props.attributes,t=e.backgroundImage,n=e.backgroundCustomImagePosition,r=e.backgroundImagePosition,o=e.backgroundImageAttachment,i=e.backgroundImageRepeat,a=e.backgroundImageSize,l=this.props.setAttributes,c=t?t.url:void 0,s=t?t.id:void 0;return wp.element.createElement(L,null,wp.element.createElement(N.e,{label:Object(E.__)("Background Image","getwid"),url:c,id:s,onSelectMedia:function(e){return l({backgroundImage:void 0!==e?Object(C.pick)(e,["alt","id","url"]):{}})},onRemoveMedia:function(){return l({backgroundImage:void 0})}}),!!t&&wp.element.createElement("div",{className:"".concat(ge,"__custom-wrapper")},wp.element.createElement("span",{className:"".concat(ge,"__label")},Object(E.__)("Background Settings","getwid")),wp.element.createElement(ae,{className:"".concat(ge,"__dropdown-action"),contentClassName:"".concat(ge,"__dropdown-content"),position:"top right",renderToggle:function(e){var t=(e.isOpen,e.onToggle);return wp.element.createElement(Q,{isDefault:!0,onClick:t},wp.element.createElement(le,{icon:"admin-tools"}))},renderContent:function(){return wp.element.createElement(L,null,wp.element.createElement(J,{label:Object(E.__)("Position","getwid"),value:void 0!==r?r:"",onChange:function(e){return l({backgroundImagePosition:e})},options:[{value:"",label:Object(E.__)("Default","getwid")},{value:"custom",label:Object(E.__)("Custom","getwid")},{value:"top left",label:Object(E.__)("Top Left","getwid")},{value:"top center",label:Object(E.__)("Top Center","getwid")},{value:"top right",label:Object(E.__)("Top Right","getwid")},{value:"center left",label:Object(E.__)("Center Left ","getwid")},{value:"center center",label:Object(E.__)("Center Center","getwid")},{value:"center right",label:Object(E.__)("Center Right","getwid")},{value:"bottom left",label:Object(E.__)("Bottom Left","getwid")},{value:"bottom center",label:Object(E.__)("Bottom Center","getwid")},{value:"bottom right",label:Object(E.__)("Bottom Right","getwid")}]}),"custom"==r&&wp.element.createElement(U,{url:c,value:n,onChange:function(e){l({backgroundCustomImagePosition:e})}}),wp.element.createElement(J,{label:Object(E.__)("Attachment","getwid"),value:void 0!==o?o:"",onChange:function(e){return l({backgroundImageAttachment:e})},options:[{value:"",label:Object(E.__)("Default","getwid")},{value:"scroll",label:Object(E.__)("Scroll","getwid")},{value:"fixed",label:Object(E.__)("Fixed","getwid")}]}),wp.element.createElement(J,{label:Object(E.__)("Repeat","getwid"),value:void 0!==i?i:"",onChange:function(e){return l({backgroundImageRepeat:e})},options:[{value:"",label:Object(E.__)("Default","getwid")},{value:"no-repeat",label:Object(E.__)("No Repeat","getwid")},{value:"repeat",label:Object(E.__)("Repeat","getwid")},{value:"repeat-x",label:Object(E.__)("Repeat X","getwid")},{value:"repeat-y",label:Object(E.__)("Repeat Y","getwid")},{value:"space",label:Object(E.__)("Space","getwid")},{value:"round",label:Object(E.__)("Round","getwid")}]}),wp.element.createElement(J,{label:Object(E.__)("Size","getwid"),value:void 0!==a?a:"",onChange:function(e){return l({backgroundImageSize:e})},options:[{value:"",label:Object(E.__)("Cover","getwid")},{value:"contain",label:Object(E.__)("Contain","getwid")},{value:"auto",label:Object(E.__)("Auto","getwid")}]}))}})))}},{key:"renderDividersSettings",value:function(){var e=this.props.attributes,t=e.dividerTop,n=e.dividersTopHeight,r=e.dividerTopColor,o=e.dividerBottom,a=e.dividersBottomHeight,l=e.dividersBringTop,c=e.dividerBottomColor,s=this.props.setAttributes,u=[{value:"",label:Object(E.__)("None","getwid")},{value:"tilt",label:Object(E.__)("Tilt","getwid")},{value:"tilt-negative",label:Object(E.__)("Tilt Negative","getwid")},{value:"tilt-layered-1",label:Object(E.__)("Tilt Layered 1","getwid")},{value:"tilt-layered-2",label:Object(E.__)("Tilt Layered 2 ","getwid")},{value:"tilt-layered-3",label:Object(E.__)("Tilt Layered 3","getwid")},{value:"split",label:Object(E.__)("Split","getwid")},{value:"split-negative",label:Object(E.__)("Split Negative","getwid")},{value:"clouds",label:Object(E.__)("Clouds","getwid")},{value:"clouds-negative",label:Object(E.__)("Clouds Negative","getwid")},{value:"book",label:Object(E.__)("Book","getwid")},{value:"book-negative",label:Object(E.__)("Book Negative","getwid")},{value:"arrow",label:Object(E.__)("Arrow","getwid")},{value:"arrow-negative",label:Object(E.__)("Arrow Negative","getwid")},{value:"triangle-rounded",label:Object(E.__)("Triangle Rounded","getwid")},{value:"triangle-negative-rounded",label:Object(E.__)("Triangle Rounded Negative","getwid")},{value:"triangle-asymmetrical-rounded",label:Object(E.__)("Triangle Rounded Asymmetrical","getwid")},{value:"triangle-asymmetrical-negative-rounded",label:Object(E.__)("Triangle Rounded Asymmetrical Negative","getwid")},{value:"triangle",label:Object(E.__)("Triangle","getwid")},{value:"triangle-negative",label:Object(E.__)("Triangle Negative","getwid")},{value:"triangle-asymmetrical",label:Object(E.__)("Triangle Asymmetrical","getwid")},{value:"triangle-asymmetrical-negative",label:Object(E.__)("Triangle Asymmetrical Negative","getwid")},{value:"triangle-layered-asymmetrical",label:Object(E.__)("Triangle Layered Asymmetrical","getwid")},{value:"waves",label:Object(E.__)("Waves","getwid")},{value:"waves-light",label:Object(E.__)("Waves Light","getwid")},{value:"waves-large",label:Object(E.__)("Waves Large","getwid")},{value:"waves-large-negative",label:Object(E.__)("Waves Large Negative","getwid")},{value:"waves-layered",label:Object(E.__)("Waves Layered","getwid")},{value:"mountains",label:Object(E.__)("Waves Multi-Layered","getwid")},{value:"waves-pattern",label:Object(E.__)("Waves Pattern","getwid")},{value:"drips",label:Object(E.__)("Drips","getwid")},{value:"drips-negative",label:Object(E.__)("Drips Negative","getwid")},{value:"drops",label:Object(E.__)("Drops","getwid")},{value:"drops-negative",label:Object(E.__)("Drops Negative","getwid")},{value:"tilted-drips",label:Object(E.__)("Tilted Drips","getwid")},{value:"tilted-drips-negative",label:Object(E.__)("Tilted Drips Negative","getwid")},{value:"pyramids",label:Object(E.__)("Pyramids","getwid")},{value:"pyramids-negative",label:Object(E.__)("Pyramids Negative","getwid")},{value:"pyramids-round",label:Object(E.__)("Pyramids Rounded","getwid")},{value:"pyramids-round-negative",label:Object(E.__)("Pyramids Rounded Negative","getwid")},{value:"opacity-pyramids",label:Object(E.__)("Pyramids Layered","getwid")},{value:"curve",label:Object(E.__)("Curve","getwid")},{value:"curve-negative",label:Object(E.__)("Curve Negative","getwid")},{value:"curve-1",label:Object(E.__)("Curve 1","getwid")},{value:"curve-2",label:Object(E.__)("Curve 2","getwid")},{value:"curve-3",label:Object(E.__)("Curve 3","getwid")},{value:"curve-4",label:Object(E.__)("Curve 4","getwid")},{value:"curve-5",label:Object(E.__)("Curve 5","getwid")},{value:"curve-6",label:Object(E.__)("Curve 6","getwid")},{value:"curve-7",label:Object(E.__)("Curve 7","getwid")},{value:"curve-8",label:Object(E.__)("Curve 8","getwid")},{value:"curve-layered-1",label:Object(E.__)("Curve Layered 1","getwid")},{value:"curve-layered-2",label:Object(E.__)("Curve Layered 2","getwid")},{value:"curve-layered-3",label:Object(E.__)("Curve Layered 3","getwid")},{value:"curve-layered-4",label:Object(E.__)("Curve Layered 4","getwid")},{value:"zigzag-ice",label:Object(E.__)("Zigzag","getwid")},{value:"zigzag-ice-negative",label:Object(E.__)("Zigzag Negative","getwid")},{value:"zigzag-pattern",label:Object(E.__)("Zigzag Pattern","getwid")}];return wp.element.createElement(K,{title:Object(E.__)("Dividers","getwid"),initialOpen:!1},wp.element.createElement(J,{label:Object(E.__)("Top Divider","getwid"),value:void 0!==t?t:"",options:u,onChange:function(e){return s({dividerTop:e})}}),wp.element.createElement(x.a,{label:Object(E.__)("Top Divider Height","getwid"),value:n,units:[{label:"px",value:"px"},{label:"vh",value:"vh"},{label:"vw",value:"vw"}],onChange:function(e){return s({dividersTopHeight:e})}}),wp.element.createElement(J,{label:Object(E.__)("Bottom Divider","getwid"),value:void 0!==o?o:"",options:u,onChange:function(e){return s({dividerBottom:e})}}),wp.element.createElement(x.a,{label:Object(E.__)("Bottom Divider Height","getwid"),value:a,units:[{label:"px",value:"px"},{label:"vh",value:"vh"},{label:"vw",value:"vw"}],onChange:function(e){return s({dividersBottomHeight:e})}}),wp.element.createElement(ee,{label:Object(E.__)("Bring dividers to top","getwid"),checked:l,onChange:function(){s({dividersBringTop:!l})}}),(t||o)&&wp.element.createElement(P.a,{colorSettings:[].concat(i()(t?[{title:Object(E.__)("Top Divider Color","getwid"),colors:{customColor:r},changeColor:function(e){return s({dividerTopColor:e})}}]:[]),i()(o?[{title:Object(E.__)("Bottom Divider Color","getwid"),colors:{customColor:c},changeColor:function(e){return s({dividerBottomColor:e})}}]:[]))}))}},{key:"renderSizeSettings",value:function(){var e=this,t=this.props.attributes,n=t.contentMaxWidth,r=t.minHeight,o=t.gapSize,i=t.resetMinHeightTablet,a=t.resetMinHeightMobile,l=t.contentMaxWidthPreset,c=this.props.setAttributes,s=this.state.contentHelpIsVisible,u=function(){e.setState({contentHelpIsVisible:!s})};return wp.element.createElement(L,null,wp.element.createElement(X,{label:Object(E.__)("Content Area Width","getwid"),selected:void 0!==l?l:"boxed",options:[{value:"boxed",label:Object(E.__)("Default","getwid")},{value:"full",label:Object(E.__)("Full Width","getwid")},{value:"custom",label:Object(E.__)("Custom Width","getwid")}],onChange:function(e){return c({contentMaxWidthPreset:e})}}),"custom"===l&&wp.element.createElement(Y,{value:void 0!==n?n:"",onChange:function(e){c({contentMaxWidth:e})},allowReset:!0,min:0,max:2e3,step:1}),!!s&&wp.element.createElement(L,null,wp.element.createElement(q,{label:Object(E.__)("Set the default width of the content area in Getwid Settings.","getwid")},wp.element.createElement(re,{href:Getwid.options_url.appearance},Object(E.__)("Getwid Settings","getwid"))),wp.element.createElement(Q,{isLink:!0,onClick:u},Object(E.__)("Hide Help","getwid"))),!s&&wp.element.createElement(q,null,wp.element.createElement(Q,{isLink:!0,onClick:u},Object(E.__)("Show Help","getwid"))),wp.element.createElement(q,null,wp.element.createElement(ne,{className:"getwid-editor-tabs",activeClass:"is-active",tabs:[{name:"desktop",title:Object(E.__)("Desktop","getwid"),className:"components-button is-link is-small"},{name:"tablet",title:Object(E.__)("Tablet","getwid"),className:"components-button is-link is-small"},{name:"mobile",title:Object(E.__)("Mobile","getwid"),className:"components-button is-link is-small"}]},function(e){switch(e.name){case"desktop":return wp.element.createElement(x.a,{label:Object(E.__)("Section Height","getwid"),value:r,units:[{label:"px",value:"px"},{label:"vh",value:"vh"},{label:"vw",value:"vw"},{label:"%",value:"%"}],onChange:function(e){return c({minHeight:e})}});case"tablet":return wp.element.createElement(Z,{label:Object(E.__)("Reset height on tablet","getwid"),checked:void 0!==i&&i,onChange:function(e){return c({resetMinHeightTablet:e})}});case"mobile":return wp.element.createElement(Z,{label:Object(E.__)("Reset height on mobile","getwid"),checked:void 0!==a&&a,onChange:function(e){return c({resetMinHeightMobile:e})}})}})),wp.element.createElement(J,{label:Object(E.__)("Vertical space between blocks","getwid"),value:void 0!==o?o:void 0,onChange:function(e){return c({gapSize:e})},options:[{value:"",label:Object(E.__)("Default","getwid")},{value:"small",label:Object(E.__)("Small","getwid")},{value:"medium",label:Object(E.__)("Medium","getwid")},{value:"normal",label:Object(E.__)("Normal","getwid")},{value:"large",label:Object(E.__)("Large","getwid")},{value:"huge",label:Object(E.__)("Huge","getwid")},{value:"none",label:Object(E.__)("None","getwid")}]}))}},{key:"renderAlignmentSettings",value:function(){var e=this.props.attributes,t=e.verticalAlign,n=e.horizontalAlign,r=e.verticalAlignTablet,o=e.horizontalAlignTablet,i=e.verticalAlignMobile,a=e.horizontalAlignMobile,l=this.props.setAttributes;return wp.element.createElement(L,null,wp.element.createElement(q,null,wp.element.createElement(ne,{className:"getwid-editor-tabs",activeClass:"is-active",tabs:[{name:"desktop",title:Object(E.__)("Desktop","getwid"),className:"components-button is-link is-small"},{name:"tablet",title:Object(E.__)("Tablet","getwid"),className:"components-button is-link is-small"},{name:"mobile",title:Object(E.__)("Mobile","getwid"),className:"components-button is-link is-small"}]},function(e){switch(e.name){case"desktop":return wp.element.createElement(L,null,wp.element.createElement(J,{label:Object(E.__)("Content Area Vertical Alignment","getwid"),value:void 0!==t?t:"center",onChange:function(e){return l({verticalAlign:e})},options:[{value:"flex-start",label:Object(E.__)("Top","getwid")},{value:"center",label:Object(E.__)("Middle","getwid")},{value:"flex-end",label:Object(E.__)("Bottom","getwid")}]}),wp.element.createElement(J,{label:Object(E.__)("Content Area Horizontal Alignment","getwid"),value:void 0!==n?n:"center",onChange:function(e){return l({horizontalAlign:e})},options:[{value:"flex-start",label:Object(E.__)("Left","getwid")},{value:"center",label:Object(E.__)("Center","getwid")},{value:"flex-end",label:Object(E.__)("Right","getwid")}]}));case"tablet":return wp.element.createElement(L,null,wp.element.createElement(J,{label:Object(E.__)("Content Area Vertical Alignment","getwid"),value:void 0!==r?r:"center",onChange:function(e){return l({verticalAlignTablet:e})},options:[{value:"",label:Object(E.__)("Default","getwid")},{value:"flex-start",label:Object(E.__)("Top","getwid")},{value:"center",label:Object(E.__)("Middle","getwid")},{value:"flex-end",label:Object(E.__)("Bottom","getwid")}]}),wp.element.createElement(J,{label:Object(E.__)("Content Area Horizontal Alignment","getwid"),value:void 0!==o?o:"center",onChange:function(e){return l({horizontalAlignTablet:e})},options:[{value:"",label:Object(E.__)("Default","getwid")},{value:"flex-start",label:Object(E.__)("Left","getwid")},{value:"center",label:Object(E.__)("Center","getwid")},{value:"flex-end",label:Object(E.__)("Right","getwid")}]}));case"mobile":return wp.element.createElement(L,null,wp.element.createElement(J,{label:Object(E.__)("Content Area Vertical Alignment","getwid"),value:void 0!==i?i:"center",onChange:function(e){return l({verticalAlignMobile:e})},options:[{value:"",label:Object(E.__)("Default","getwid")},{value:"flex-start",label:Object(E.__)("Top","getwid")},{value:"center",label:Object(E.__)("Middle","getwid")},{value:"flex-end",label:Object(E.__)("Bottom","getwid")}]}),wp.element.createElement(J,{label:Object(E.__)("Content Area Horizontal Alignment","getwid"),value:void 0!==a?a:"center",onChange:function(e){return l({horizontalAlignMobile:e})},options:[{value:"",label:Object(E.__)("Default","getwid")},{value:"flex-start",label:Object(E.__)("Left","getwid")},{value:"center",label:Object(E.__)("Center","getwid")},{value:"flex-end",label:Object(E.__)("Right","getwid")}]}))}})))}},{key:"renderSliderSettings",value:function(){var e=this.props.attributes,t=e.sliderImages,n=e.sliderAnimationEffect,r=e.sliderAnimationDuration,o=e.sliderAnimationSpeed,i=this.props.setAttributes,a=t.map(function(e){return wp.element.createElement("img",{src:e.url,alt:e.alt})});return wp.element.createElement(L,null,(!t||0==t.length)&&wp.element.createElement(H,{icon:"format-gallery",labels:{title:Object(E.__)("Slider","getwid"),instructions:Object(E.__)("Drag images, upload new ones or select files from your library.","getwid")},onSelect:this.onSelectSliderImages,accept:"image/*",allowedTypes:ue,multiple:!0}),t&&!!t.length&&wp.element.createElement(L,null,wp.element.createElement(F,{onSelect:this.onSelectSliderImages,multiple:!0,gallery:!0,allowedTypes:ue,value:void 0!==t?t.map(function(e){return e.id}):[],render:function(e){var n=e.open;return wp.element.createElement(q,null,!!t&&wp.element.createElement("div",{className:"getwid-slider-image-wrapper"},a),wp.element.createElement(te,null,wp.element.createElement(Q,{isPrimary:!0,onClick:n},Object(E.__)("Select Images","getwid")),wp.element.createElement(Q,{onClick:function(){i({sliderImages:[]})},isDefault:!0},Object(E.__)("Remove","getwid"))))}}),wp.element.createElement(X,{label:Object(E.__)("Animation Effect","getwid"),selected:void 0!==n?n:"",options:[{value:"",label:Object(E.__)("Slide","getwid")},{value:"fade",label:Object(E.__)("Fade","getwid")}],onChange:function(e){return i({sliderAnimationEffect:e})}}),wp.element.createElement($,{label:Object(E.__)("Animation Duration","getwid"),value:r,type:"number",min:0,onChange:function(e){return i({sliderAnimationDuration:e})}}),wp.element.createElement($,{label:Object(E.__)("Animation Speed","getwid"),type:"number",value:void 0!==o?o:"",min:0,onChange:function(e){return i({sliderAnimationSpeed:e})}})))}},{key:"renderVideoSettings",value:function(){var e=this.props.attributes,t=e.backgroundVideoType,n=e.youTubeVideoScale,r=e.youTubeVideoUrl,o=e.youTubeVideoMute,i=e.youTubeVideoLoop,a=e.youTubeVideoAutoplay,l=e.backgroundVideoUrl,c=e.backgroundVideoMute,s=e.backgroundVideoLoop,u=e.backgroundVideoAutoplay,p=e.backgroundVideoPoster,d=e.backgroundVideoControlsPosition,m=this.props.setAttributes;return wp.element.createElement(L,null,wp.element.createElement(J,{label:Object(E.__)("Source","getwid"),value:t,onChange:function(e){return m({backgroundVideoType:e})},options:[{value:"youtube",label:Object(E.__)("YouTube","getwid")},{value:"self",label:Object(E.__)("Media Library","getwid")}]}),"youtube"==t&&wp.element.createElement(L,null,wp.element.createElement($,{label:Object(E.__)("YouTube URL","getwid"),placeholder:"https://youtube.com/watch?v=M7lc1UVf-VE",value:r,onChange:function(e){return m({youTubeVideoUrl:e})}})),"self"==t&&wp.element.createElement(L,null,l&&wp.element.createElement(L,null,wp.element.createElement("video",{controls:!0},wp.element.createElement("source",{src:l.url,type:"video/mp4"}),wp.element.createElement("span",null,Object(E.__)("Your browser does not support the video tag.","getwid")))),wp.element.createElement(F,{onSelect:function(e){m({backgroundVideoUrl:void 0}),m({backgroundVideoUrl:void 0!==e?Object(C.pick)(e,["alt","id","url"]):{}})},value:void 0!==l?l.id:"",allowedTypes:de,render:function(e){var t=e.open;return wp.element.createElement(q,null,wp.element.createElement(Q,{isPrimary:!0,onClick:t},Object(E.__)("Select Video","getwid")),!!l&&wp.element.createElement(Q,{onClick:function(){m({backgroundVideoUrl:void 0})},isDefault:!0},Object(E.__)("Remove","getwid")))}})),r&&"youtube"==t&&wp.element.createElement(L,null,wp.element.createElement(J,{label:Object(E.__)("Video Scale","getwid"),value:n,onChange:function(e){return m({youTubeVideoScale:e})},options:[{value:"",label:Object(E.__)("Default","getwid")},{value:"low",label:Object(E.__)("Low","getwid")},{value:"medium",label:Object(E.__)("Medium","getwid")},{value:"high",label:Object(E.__)("High","getwid")},{value:"huge",label:Object(E.__)("Huge","getwid")}]}),wp.element.createElement(Z,{label:Object(E.__)("Mute","getwid"),help:Object(E.__)("Enable this option to increase the chances for autoplay to succeed.","getwid"),checked:"true"==o,onChange:function(e){m({youTubeVideoMute:e?"true":"false"})}}),wp.element.createElement(Z,{label:Object(E.__)("Repeat","getwid"),checked:"true"==i,onChange:function(e){m({youTubeVideoLoop:e?"true":"false"})}}),wp.element.createElement(Z,{label:Object(E.__)("Autoplay","getwid"),checked:"true"==a,onChange:function(e){m({youTubeVideoAutoplay:e?"true":"false"})}})),l&&"self"==t&&wp.element.createElement(L,null,wp.element.createElement(Z,{label:Object(E.__)("Mute","getwid"),help:Object(E.__)("Enable this option to increase the chances for autoplay to succeed.","getwid"),checked:void 0===c||c,onChange:function(e){return m({backgroundVideoMute:e})}}),wp.element.createElement(Z,{label:Object(E.__)("Repeat","getwid"),checked:void 0!==s&&s,onChange:function(e){return m({backgroundVideoLoop:e})}}),wp.element.createElement(Z,{label:Object(E.__)("Autoplay","getwid"),checked:void 0!==u&&u,onChange:function(e){return m({backgroundVideoAutoplay:e})}})),(l||r)&&wp.element.createElement(L,null,wp.element.createElement(J,{label:Object(E.__)("Controls Position","getwid"),value:d,onChange:function(e){return m({backgroundVideoControlsPosition:e})},options:[{value:"none",label:Object(E.__)("None","getwid")},{value:"top-left",label:Object(E.__)("Top Left","getwid")},{value:"top-right",label:Object(E.__)("Top Right","getwid")},{value:"bottom-left",label:Object(E.__)("Bottom Left","getwid")},{value:"bottom-right",label:Object(E.__)("Bottom Right","getwid")},{value:"center-center",label:Object(E.__)("Center Center","getwid")}]})),l&&wp.element.createElement(L,null,wp.element.createElement(F,{label:Object(E.__)("Poster Image","getwid"),onSelect:function(e){return m({backgroundVideoPoster:e.url})},allowedTypes:pe,value:void 0!==p?p:"",render:function(e){var t=e.open;return wp.element.createElement(q,null,wp.element.createElement(Q,{isDefault:!0,onClick:t},!p&&Object(E.__)("Select Poster","getwid"),!!p&&Object(E.__)("Replace Poster","getwid")))}}),!!p&&wp.element.createElement(q,null,wp.element.createElement(Q,{onClick:function(){m({backgroundVideoPoster:void 0})},isLink:!0,isDestructive:!0},Object(E.__)("Remove Poster","getwid")))))}},{key:"renderForegroundSettings",value:function(){var e=this.props.attributes,t=e.foregroundOpacity,n=e.foregroundFilter,r=this.props.setAttributes;return wp.element.createElement(L,null,wp.element.createElement(Y,{label:Object(E.__)("Overlay Layer Opacity","getwid"),value:void 0!==t?t:"",onChange:function(e){return r({foregroundOpacity:e})},min:0,max:100,step:1,allowReset:!0}),wp.element.createElement(J,{label:Object(E.__)("Blend Mode","getwid"),value:void 0!==n?n:"",onChange:function(e){return r({foregroundFilter:e})},options:[{value:"",label:Object(E.__)("None","getwid")},{value:"normal",label:Object(E.__)("Normal","getwid")},{value:"multiply",label:Object(E.__)("Multiply","getwid")},{value:"screen",label:Object(E.__)("Screen","getwid")},{value:"overlay",label:Object(E.__)("Overlay","getwid")},{value:"darken",label:Object(E.__)("Darken","getwid")},{value:"lighten",label:Object(E.__)("Lighten","getwid")},{value:"color-dodge",label:Object(E.__)("Color Dodge","getwid")},{value:"color-burn",label:Object(E.__)("Color Burn","getwid")},{value:"hard-light",label:Object(E.__)("Hard Light","getwid")},{value:"soft-light",label:Object(E.__)("Soft Light","getwid")},{value:"difference",label:Object(E.__)("Difference","getwid")},{value:"exclusion",label:Object(E.__)("Exclusion","getwid")},{value:"hue",label:Object(E.__)("Hue","getwid")},{value:"saturation",label:Object(E.__)("Saturation","getwid")},{value:"color",label:Object(E.__)("Color","getwid")},{value:"luminosity",label:Object(E.__)("Luminosity","getwid")}]}))}},{key:"renderForegroundColor",value:function(){var e=this.props.attributes.foregroundColor,t=this.props.setAttributes,n=Object(C.get)(B("core/editor").getEditorSettings(),["colors"],[]);return wp.element.createElement(L,null,wp.element.createElement(q,{label:Object(E.__)("Overlay Color","getwid"),className:"components-getwid-color-palette-control"},e&&wp.element.createElement(ie,{colorValue:e}),wp.element.createElement(oe,{colors:n,value:e,onChange:function(e){t({foregroundColor:e})}})))}},{key:"renderForegroundImage",value:function(){var e=this.props.attributes,t=e.foregroundImage,n=e.foregroundCustomImagePosition,r=e.foregroundImagePosition,o=e.foregroundImageAttachment,i=e.foregroundImageRepeat,a=e.foregroundImageSize,l=this.props.setAttributes,c=t?t.url:void 0,s=t?t.id:void 0,u=function(){l({foregroundImage:void 0,foregroundCustomImagePosition:void 0,foregroundImagePosition:void 0,foregroundImageAttachment:void 0,foregroundImageRepeat:void 0,foregroundImageSize:void 0})};return wp.element.createElement(L,null,wp.element.createElement(N.e,{label:Object(E.__)("Overlay Image","getwid"),url:c,id:s,onSelectMedia:function(e){return l({foregroundImage:void 0!==e?Object(C.pick)(e,["alt","id","url"]):{}})},onRemoveMedia:u}),t&&wp.element.createElement(L,null,wp.element.createElement(J,{label:Object(E.__)("Position","getwid"),value:void 0!==r?r:"",onChange:function(e){return l({foregroundImagePosition:e})},options:[{value:"",label:Object(E.__)("Default","getwid")},{value:"custom",label:Object(E.__)("Custom","getwid")},{value:"top left",label:Object(E.__)("Top Left","getwid")},{value:"top center",label:Object(E.__)("Top Center","getwid")},{value:"top right",label:Object(E.__)("Top Right","getwid")},{value:"center left",label:Object(E.__)("Center Left ","getwid")},{value:"center center",label:Object(E.__)("Center Center","getwid")},{value:"center right",label:Object(E.__)("Center Right","getwid")},{value:"bottom left",label:Object(E.__)("Bottom Left","getwid")},{value:"bottom center",label:Object(E.__)("Bottom Center","getwid")},{value:"bottom right",label:Object(E.__)("Bottom Right","getwid")}]}),"custom"==r&&wp.element.createElement(U,{url:c,value:n,onChange:function(e){l({foregroundCustomImagePosition:e})}}),wp.element.createElement(J,{label:Object(E.__)("Attachment","getwid"),value:void 0!==o?o:"",onChange:function(e){return l({foregroundImageAttachment:e})},options:[{value:"",label:Object(E.__)("Default","getwid")},{value:"scroll",label:Object(E.__)("Scroll","getwid")},{value:"fixed",label:Object(E.__)("Fixed","getwid")}]}),wp.element.createElement(J,{label:Object(E.__)("Repeat","getwid"),value:void 0!==i?i:"",onChange:function(e){return l({foregroundImageRepeat:e})},options:[{value:"",label:Object(E.__)("Default","getwid")},{value:"no-repeat",label:Object(E.__)("No Repeat","getwid")},{value:"repeat",label:Object(E.__)("Repeat","getwid")},{value:"repeat-x",label:Object(E.__)("Repeat X","getwid")},{value:"repeat-y",label:Object(E.__)("Repeat Y","getwid")},{value:"space",label:Object(E.__)("Space","getwid")},{value:"round",label:Object(E.__)("Round","getwid")}]}),wp.element.createElement(J,{label:Object(E.__)("Size","getwid"),value:void 0!==a?a:"",onChange:function(e){return l({foregroundImageSize:e})},options:[{value:"",label:Object(E.__)("Cover","getwid")},{value:"contain",label:Object(E.__)("Contain","getwid")},{value:"auto",label:Object(E.__)("Auto","getwid")}]})))}},{key:"renderAnimationSettings",value:function(){var e=this.props.attributes,t=e.entranceAnimation,n=e.entranceAnimationDuration,r=e.entranceAnimationDelay,o=this.props.setAttributes,i=function(){o({entranceAnimation:void 0,entranceAnimationDelay:"200ms",entranceAnimationDuration:"1500ms"})};return wp.element.createElement(L,null,wp.element.createElement(K,{title:Object(E.__)("Entrance Animation","getwid"),initialOpen:!0},wp.element.createElement(T.a,{label:Object(E.__)("Animation Effect","getwid"),allowAnimation:["Entrance","Seeker"],value:void 0!==t?t:"",onChange:function(e){return o({entranceAnimation:e})}}),wp.element.createElement(J,{label:Object(E.__)("Duration","getwid"),value:void 0!==n?n:"",onChange:function(e){return o({entranceAnimationDuration:e})},options:[{value:"2000ms",label:Object(E.__)("Slow","getwid")},{value:"1500ms",label:Object(E.__)("Normal","getwid")},{value:"800ms",label:Object(E.__)("Fast","getwid")},{value:"400ms",label:Object(E.__)("Very Fast","getwid")}]}),wp.element.createElement($,{label:Object(E.__)("Delay, ms","getwid"),value:void 0!==r?r.replace("ms",""):"",type:"number",min:0,placeholder:200,onChange:function(e){e=parseInt(e),e=isNaN(e)?void 0:"".concat(e,"ms"),o({entranceAnimationDelay:e})}}),wp.element.createElement(q,null,wp.element.createElement(Q,{isLink:!0,onClick:i,disabled:!this.hasAnimation()},Object(E.__)("Reset","getwid")))))}},{key:"onSelectSliderImages",value:function(e){this.props.setAttributes({sliderImages:void 0!==e?e.map(function(e){return Object(C.pick)(e,["alt","id","url"])}):[]})}}]),t}(I);t.a=se([D(function(e,t){var n=e("core/editor"),r=n.getEditorSettings,o=e("core/block-editor").getSettings();return{colorGradientSettings:Object(C.pick)(o,me),getEditorSettings:r}}),G("backgroundColor")])(fe)},function(e,t){function n(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}e.exports=n},function(e,t){function n(){throw new TypeError("Invalid attempt to spread non-iterable instance")}e.exports=n},function(e,t){},function(e,t,n){"use strict";function r(e){var t=e.state,n=e.label,r=e.stateName,o=e.onChangeBackgroundType,i=e.types,c=void 0===i?["color","image","gradient","slider","video"]:i;return wp.element.createElement(m,null,wp.element.createElement(u,{label:n,className:"components-getwid-background-types-control"},wp.element.createElement(p,{className:"components-getwid-background-types-group"},c.includes("color")&&wp.element.createElement(m,null,wp.element.createElement(d,{icon:wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",width:"20",height:"20",viewBox:"0 0 20 20"},wp.element.createElement("path",{d:"M3,16h14c0.55,0,1,0.45,1,1v0c0,0.55-0.45,1-1,1H3c-0.55,0-1-0.45-1-1v0C2,16.45,2.45,16,3,16z"}),wp.element.createElement("path",{d:"M9.05,13.95L13.3,9.7c0.39-0.39,0.39-1.02,0-1.41L9.05,4.05L8.34,3.34L7.63,2.63c-0.39-0.39-1.02-0.39-1.41,0L6.22,2.64\tc-0.39,0.39-0.39,1.02,0,1.41l0.7,0.7L3.39,8.3C3,8.69,3,9.31,3.39,9.7l4.24,4.25C8.02,14.34,8.66,14.34,9.05,13.95z M9.04,6.87\tL11.17,9H5.51l2.13-2.13C8.02,6.49,8.66,6.49,9.04,6.87z"}),wp.element.createElement("path",{d:"M13,13c0,0.55,0.45,1,1,1s1-0.45,1-1s-1-3-1-3S13,12.45,13,13z"})),label:Object(l.__)("Color","getwid"),className:a()("wp-block-getwid-background-types-icon","is-button",{"is-active":"color"===t}),onClick:function(){o(r,"color")}})),c.includes("image")&&wp.element.createElement(d,{icon:"format-image",label:Object(l.__)("Image","getwid"),className:a()("wp-block-getwid-background-types-icon","is-button",{"is-active":"image"===t}),onClick:function(){o(r,"image")}}),c.includes("gradient")&&wp.element.createElement(d,{icon:wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",width:"20",height:"20",viewBox:"0 0 20 20"},wp.element.createElement("path",{d:"M2,3v14c0,0.55,0.45,1,1,1h14c0.55,0,1-0.45,1-1V3c0-0.55-0.45-1-1-1H3C2.45,2,2,2.45,2,3z M15,16H4L16,4v11 C16,15.55,15.55,16,15,16z"})),label:Object(l.__)("Gradient","getwid"),className:a()("wp-block-getwid-background-types-icon","is-button",{"is-active":"gradient"===t}),onClick:function(){o(r,"gradient")}}),c.includes("slider")&&wp.element.createElement(d,{icon:"images-alt2",label:Object(l.__)("Slider","getwid"),className:a()("wp-block-getwid-background-types-icon","is-button",{"is-active":"slider"===t}),onClick:function(){o(r,"slider")}}),c.includes("video")&&wp.element.createElement(d,{icon:"video-alt3",label:Object(l.__)("Video","getwid"),className:a()("wp-block-getwid-background-types-icon","is-button",{"is-active":"video"===t}),onClick:function(){o(r,"video")}}))))}t.a=r;var o=(n(0),n(126)),i=(n.n(o),n(8)),a=n.n(i),l=n(1),c=(n.n(l),window),s=(c.jQuery,wp.components),u=s.BaseControl,p=s.ButtonGroup,d=s.IconButton,m=wp.element.Fragment},function(e,t){},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(n,!0).forEach(function(t){l()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function i(e){var t,n=e.label,r=e.value,i=e.onChange,a=function(e){var t=e.firstColor,n=e.firstLocation,r=e.secondColor,o=e.secondLocation,a=e.type,l=e.angle;i(t,n,r,o,a,l)};t="linear"===r.type?"".concat(r.angle,"deg"):"at ".concat(r.position);var l="".concat(r.type,"-gradient( ").concat(t,", ").concat(r.firstColor||"rgba( 0, 0, 0, 0 )"," ").concat(r.firstLocation,"%, ").concat(r.secondColor||"rgba( 0, 0, 0, 0 )"," ").concat(r.secondLocation,"% )"),d=r.firstColor&&r.secondColor;return wp.element.createElement("div",{className:"".concat(y)},wp.element.createElement("div",{className:"components-base-control__field"},n&&wp.element.createElement("div",{className:"components-base-control__title"},wp.element.createElement("label",{className:"components-base-control__label"},n,d&&wp.element.createElement(b,{colorValue:l}))),wp.element.createElement("div",{className:"".concat(y,"-presets")},s.a.map(function(e){return wp.element.createElement(u.a,{title:e.title,className:y,firstColor:e.firstColor,secondColor:e.secondColor,isSelected:e.firstColor===r.firstColor&&e.secondColor===r.secondColor,onChange:i})}),wp.element.createElement("div",{className:"".concat(y,"-custom-wrapper")},wp.element.createElement(f,{className:"".concat(y,"-dropdown-link-action"),contentClassName:"".concat(y,"-dropdown-content"),renderToggle:function(e){var t=(e.isOpen,e.onToggle);return wp.element.createElement(w,{onClick:t,isLink:!0},Object(c.__)("Custom Gradient","getwid"))},renderContent:function(){return wp.element.createElement(m,null,wp.element.createElement(v,{label:Object(c.__)("Type","getwid"),value:r.type?r.type:"",onChange:function(e){return a(o(o({},r),{},{type:e}))},options:[{value:"",label:Object(c.__)("None","getwid")},{value:"linear",label:Object(c.__)("Linear","getwid")},{value:"radial",label:Object(c.__)("Radial","getwid")}]}),wp.element.createElement(p.a,{colorSettings:[{title:Object(c.__)("First Color","getwid"),colors:{customColor:r.firstColor},changeColor:function(e){return a(o(o({},r),{},{firstColor:e,type:r.type?r.type:"linear"}))}}]}),wp.element.createElement(h,{label:Object(c.__)("First Color Location","getwid"),value:void 0!=r.firstLocation?r.firstLocation:"",onChange:function(e){return a(o(o({},r),{},{firstLocation:e}))},placeholder:0,min:0,max:100,step:1}),wp.element.createElement(p.a,{colorSettings:[{title:Object(c.__)("Second Color","getwid"),colors:{customColor:r.secondColor},changeColor:function(e){return a(o(o({},r),{},{secondColor:e,type:r.type?r.type:"linear"}))}}]}),wp.element.createElement(h,{label:Object(c.__)("Second Color Location","getwid"),value:void 0!=r.secondLocation?r.secondLocation:"",onChange:function(e){return a(o(o({},r),{},{secondLocation:e}))},placeholder:100,min:0,max:100,step:1}),"linear"===r.type&&wp.element.createElement(h,{label:Object(c.__)("Angle","getwid"),value:void 0!=r.angle?r.angle:"",onChange:function(e){return a(o(o({},r),{},{angle:e}))},placeholder:180,min:0,max:360,step:1}))}}),wp.element.createElement(w,{className:"".concat(y,"-clear"),type:"button",isSmall:!0,isDefault:!0,onClick:function(){return i(void 0,0,void 0,100,"",90)}},Object(c.__)("Reset","getwid"))))))}t.a=i;var a=n(7),l=n.n(a),c=(n(0),n(1)),s=(n.n(c),n(128)),u=n(129),p=n(16),d=n(130),m=(n.n(d),wp.element.Fragment),g=wp.components,f=g.Dropdown,b=g.ColorIndicator,w=g.Button,h=g.RangeControl,v=g.SelectControl,y="components-getwid-gradient-palette-control"},function(e,t,n){"use strict";var r=n(1),o=(n.n(r),[{title:Object(r.__)("Vivid cyan blue to vivid purple"),firstColor:"#0693e3",secondColor:"#9b51e0"},{title:Object(r.__)("Light green cyan to vivid green cyan"),firstColor:"#67B26F",secondColor:"#4ca2cd"},{title:Object(r.__)("Luminous vivid amber to luminous vivid orange"),firstColor:"#fcb900",secondColor:"#ff6900"},{title:Object(r.__)("Luminous vivid orange to vivid red"),firstColor:"#ff6900",secondColor:"#cf2e2e"},{title:Object(r.__)("Very light gray to cyan bluish gray"),firstColor:"#eeeeee",secondColor:"#a9b8c3"},{title:Object(r.__)("Blush light purple"),firstColor:"#ffceec",secondColor:"#9896f0"},{title:Object(r.__)("Electric grass"),firstColor:"#caf880",secondColor:"#71ce7e"},{title:Object(r.__)("Midnight"),firstColor:"#020381",secondColor:"#2874fc"}]);t.a=o},function(e,t,n){"use strict";var r=(n(0),n(8)),o=n.n(r),i=wp.components,a=i.Tooltip,l=i.Dashicon,c=function(e){var t=e.title,n=e.className,r=e.firstColor,i=e.secondColor,c=e.isSelected,s=e.onChange,u=wp.element.createElement("button",{type:"button","aria-pressed":c,className:o()("".concat(n,"-option"),{"is-active":c}),style:{background:"linear-gradient(90deg, ".concat(r," 0%, ").concat(i," 100%)")},onClick:function(){return s(r,0,i,100,"linear",90,"center center")}});return wp.element.createElement("div",{className:"".concat(n,"-option-wrapper")},t?wp.element.createElement(a,{text:t},u):u,c&&wp.element.createElement(l,{icon:"saved"}))};t.a=c},function(e,t){},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(n,!0).forEach(function(t){s()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function i(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=v()(e);if(t()){var o=v()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return w()(this,n)}}var a=n(9),l=n.n(a),c=n(7),s=n.n(c),u=n(2),p=n.n(u),d=n(4),m=n.n(d),g=n(5),f=n.n(g),b=n(6),w=n.n(b),h=n(3),v=n.n(h),y=(n(0),n(26)),_=n(25),k=n(29),O=n(1),E=(n.n(O),n(8)),C=n.n(E),j=wp.element.Component,S=wp.blockEditor||wp.editor,x=S.InnerBlocks,P=S.getColorClassName,T="wp-block-getwid-section",R=function(e){function t(){return p()(this,t),n.apply(this,arguments)}f()(t,e);var n=i(t);return m()(t,[{key:"render",value:function(){var e,t,n=this.props,r=n.attributes,i=r.align,a=r.paddingTopValue,c=r.paddingBottomValue,u=r.paddingLeftValue,p=r.paddingRightValue,d=r.marginTopValue,m=r.marginBottomValue,g=r.marginLeftValue,f=r.marginRightValue,b=r.backgroundImage,w=r.sliderImages,h=r.backgroundVideoType,v=r.youTubeVideoScale,O=r.youTubeVideoUrl,E=r.youTubeVideoMute,j=r.youTubeVideoLoop,S=r.youTubeVideoAutoplay,R=r.backgroundVideoUrl,N=r.backgroundVideoControlsPosition,A=r.foregroundOpacity,B=r.foregroundColor,D=r.foregroundFilter,M=r.dividersBringTop,I=r.contentMaxWidth,L=r.contentMaxWidthPreset,z=r.minHeight,V=r.gapSize,F=r.entranceAnimation,H=r.entranceAnimationDuration,G=r.entranceAnimationDelay,W=r.backgroundColor,U=r.customBackgroundColor,q=r.resetMinHeightTablet,Q=r.resetMinHeightMobile,K=r.verticalAlign,Y=r.verticalAlignTablet,J=r.verticalAlignMobile,$=r.horizontalAlign,Z=r.horizontalAlignTablet,X=r.horizontalAlignMobile,ee=r.paddingTop,te=r.paddingRight,ne=r.paddingBottom,re=r.paddingLeft,oe=r.paddingTopTablet,ie=r.paddingRightTablet,ae=r.paddingBottomTablet,le=r.paddingLeftTablet,ce=r.paddingTopMobile,se=r.paddingRightMobile,ue=r.paddingBottomMobile,pe=r.paddingLeftMobile,de=r.marginTop,me=r.marginRight,ge=r.marginBottom,fe=r.marginLeft,be=r.marginTopTablet,we=r.marginRightTablet,he=r.marginBottomTablet,ve=r.marginLeftTablet,ye=r.marginTopMobile,_e=r.marginRightMobile,ke=r.marginBottomMobile,Oe=r.marginLeftMobile,Ee=r.anchor,Ce=n.className,je=n.prepareMultiGradientStyle,Se=n.prepareBackgroundImageStyles,xe=o(o({},"custom"===de?{marginTop:d}:[]),"custom"===ge?{marginBottom:m}:[]),Pe=o(o(o(o(o(o({minHeight:z},"custom"===fe?{marginLeft:g}:[]),"custom"===me?{marginRight:f}:[]),"custom"===ee?{paddingTop:a}:[]),"custom"===ne?{paddingBottom:c}:[]),"custom"===re?{paddingLeft:u}:[]),"custom"===te?{paddingRight:p}:[]),Te=C()("".concat(T,"__wrapper"),(e={},s()(e,"getwid-padding-top-".concat(ee),"custom"!==ee&&""!==ee),s()(e,"getwid-padding-bottom-".concat(ne),"custom"!==ne&&""!==ne),s()(e,"getwid-padding-left-".concat(re),"custom"!==re&&""!==re),s()(e,"getwid-padding-right-".concat(te),"custom"!==te&&""!==te),s()(e,"getwid-padding-tablet-top-".concat(oe),""!==oe),s()(e,"getwid-padding-tablet-bottom-".concat(ae),""!==ae),s()(e,"getwid-padding-tablet-left-".concat(le),""!==le),s()(e,"getwid-padding-tablet-right-".concat(ie),""!==ie),s()(e,"getwid-padding-mobile-top-".concat(ce),""!==ce),s()(e,"getwid-padding-mobile-bottom-".concat(ue),""!==ue),s()(e,"getwid-padding-mobile-left-".concat(pe),""!==pe),s()(e,"getwid-padding-mobile-right-".concat(se),""!==se),s()(e,"getwid-margin-left-".concat(fe),"custom"!==fe&&""!==fe),s()(e,"getwid-margin-right-".concat(me),"custom"!==me&&""!==me),s()(e,"getwid-margin-tablet-left-".concat(ve),""!==ve),s()(e,"getwid-margin-tablet-right-".concat(we),""!==we),s()(e,"getwid-margin-mobile-left-".concat(Oe),""!==Oe),s()(e,"getwid-margin-mobile-right-".concat(_e),""!==_e),s()(e,"getwid-align-items-".concat(K),"center"!==K),s()(e,"getwid-align-items-tablet-".concat(Y),""!==Y),s()(e,"getwid-align-items-mobile-".concat(J),""!==J),s()(e,"getwid-justify-content-".concat($),"center"!==$),s()(e,"getwid-justify-content-tablet-".concat(Z),""!==Z),s()(e,"getwid-justify-content-mobile-".concat(X),""!==X),s()(e,"getwid-reset-min-height-tablet",!1!==q),s()(e,"getwid-reset-min-height-mobile",!1!==Q),e)),Re=this.props.attributes,Ne=Re.backgroundGradient,Ae=Re.foregroundGradient;Ne=je("background",this.props),Ae=je("foreground",this.props);var Be=o({backgroundColor:this.props.attributes.backgroundColor?void 0:this.props.attributes.customBackgroundColor,backgroundImage:Ne},Se("background",this.props)),De=P("background-color",W),Me=C()("".concat(T,"__background"),s()({"has-background":W||U},De,De)),Ie=o(o({opacity:void 0!==A?A/100:void 0,backgroundColor:B,backgroundImage:Ae},Se("foreground",this.props)),{},{mixBlendMode:D}),Le={maxWidth:I&&"custom"===L?"".concat(I,"px"):void 0},ze=F?{"data-wow-duration":void 0!==H?H:"2000ms","data-wow-delay":void 0!==G?G:"500ms"}:{},Ve=C()(Ce,i?"align".concat(i):null,(t={},s()(t,"has-inner-blocks-gap-".concat(V),void 0!==V&&""!==V),s()(t,"getwid-anim ".concat(F),!!F),s()(t,"getwid-margin-top-".concat(de),"custom"!==de&&""!==de),s()(t,"getwid-margin-bottom-".concat(ge),"custom"!==ge&&""!==ge),s()(t,"getwid-margin-tablet-top-".concat(be),"custom"!==be&&""!==be),s()(t,"getwid-margin-tablet-bottom-".concat(he),"custom"!==he&&""!==he),s()(t,"getwid-margin-mobile-top-".concat(ye),"custom"!==ye&&""!==ye),s()(t,"getwid-margin-mobile-bottom-".concat(ke),"custom"!==ke&&""!==ke),s()(t,"getwid-section-content-full-width","full"===L),s()(t,"getwid-section-content-custom-width","custom"===L),t)),Fe=Ee||void 0,He={"youtube-video-url":O||"","youtube-video-muted":E,"youtube-video-loop":j,"youtube-video-autoplay":S};return wp.element.createElement("div",l()({id:Fe,className:Ve,style:xe},ze),wp.element.createElement("div",{className:Te,style:Pe},wp.element.createElement(_.a,o(o({},this.props),{},{baseClass:T})),(!!R||!!O)&&"none"!==N&&wp.element.createElement("div",{className:C()("getwid-background-video-controls",s()({},"is-position-".concat(N),"top-right"!==N))},wp.element.createElement("button",{className:"getwid-background-video-play"},wp.element.createElement("i",{className:"getwid-icon getwid-icon-pause"})),wp.element.createElement("button",{className:"getwid-background-video-mute"},wp.element.createElement("i",{className:"getwid-icon getwid-icon-mute"}))),wp.element.createElement("div",{className:C()("".concat(T,"__inner-wrapper"),s()({},"has-dividers-over",M)),style:Le},wp.element.createElement("div",{className:"".concat(T,"__background-holder")},wp.element.createElement("div",{className:Me,style:Be},!!b&&wp.element.createElement("div",{className:"".concat(T,"__background-image-wrapper")},wp.element.createElement("img",{className:"".concat(T,"__background-image"),src:b.url,alt:b.alt})),w&&!!w.length&&wp.element.createElement("div",{className:"".concat(T,"__background-slider-wrapper")},wp.element.createElement(y.b,o(o({},this.props),{},{baseClass:T}))),(!!R||!!O)&&wp.element.createElement("div",{className:"".concat(T,"__background-video-wrapper")},O&&""!=O&&"youtube"==h&&wp.element.createElement("div",l()({className:C()("".concat(T,"__background-video"),"source-youtube",s()({},"scale-youtube-".concat(v),!!v))},He),wp.element.createElement("div",{className:"".concat(T,"__background-video-youtube")})),!!R&&"self"==h&&wp.element.createElement(k.a,l()({},o(o({},this.props),{},{baseClass:T}),{videoMute:this.props.attributes.backgroundVideoMute,videoAutoplay:this.props.attributes.backgroundVideoAutoplay})))),wp.element.createElement("div",{className:"".concat(T,"__foreground"),style:Ie})),wp.element.createElement("div",{className:"".concat(T,"__content")},wp.element.createElement("div",{className:"".concat(T,"__inner-content")},wp.element.createElement(x.Content,null))))))}}]),t}(j);t.a=R},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(n,!0).forEach(function(t){s()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function i(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=v()(e);if(t()){var o=v()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return w()(this,n)}}var a=n(9),l=n.n(a),c=n(7),s=n.n(c),u=n(2),p=n.n(u),d=n(4),m=n.n(d),g=n(5),f=n.n(g),b=n(6),w=n.n(b),h=n(3),v=n.n(h),y=(n(0),n(1)),_=(n.n(y),n(8)),k=n.n(_),O=n(26),E=n(25),C=n(29),j=n(21),S=wp.element.Component,x=wp.blockEditor||wp.editor,P=x.InnerBlocks,T=x.getColorClassName,R=j.a.prepareGradientStyle,N=j.a.prepareBackgroundImageStyles,A="wp-block-getwid-section",B=function(e){function t(){return p()(this,t),n.apply(this,arguments)}f()(t,e);var n=i(t);return m()(t,[{key:"render",value:function(){var e,t,n=this.props.attributes,r=n.paddingTopValue,i=n.paddingBottomValue,a=n.paddingLeftValue,c=n.paddingRightValue,u=n.marginTopValue,p=n.marginBottomValue,d=n.marginLeftValue,m=n.marginRightValue,g=n.backgroundImage,f=n.sliderImages,b=n.backgroundVideoUrl,w=n.backgroundVideoControlsPosition,h=n.foregroundOpacity,v=n.foregroundColor,y=n.foregroundFilter,_=n.dividersBringTop,j=n.contentMaxWidth,S=n.contentMaxWidthPreset,x=n.minHeight,B=n.gapSize,D=n.entranceAnimation,M=n.entranceAnimationDuration,I=n.entranceAnimationDelay,L=n.backgroundColor,z=n.customBackgroundColor,V=n.resetMinHeightTablet,F=n.resetMinHeightMobile,H=n.verticalAlign,G=n.verticalAlignTablet,W=n.verticalAlignMobile,U=n.horizontalAlign,q=n.horizontalAlignTablet,Q=n.horizontalAlignMobile,K=n.paddingTop,Y=n.paddingRight,J=n.paddingBottom,$=n.paddingLeft,Z=n.paddingTopTablet,X=n.paddingRightTablet,ee=n.paddingBottomTablet,te=n.paddingLeftTablet,ne=n.paddingTopMobile,re=n.paddingRightMobile,oe=n.paddingBottomMobile,ie=n.paddingLeftMobile,ae=n.marginTop,le=n.marginRight,ce=n.marginBottom,se=n.marginLeft,ue=n.marginTopTablet,pe=n.marginRightTablet,de=n.marginBottomTablet,me=n.marginLeftTablet,ge=n.marginTopMobile,fe=n.marginRightMobile,be=n.marginBottomMobile,we=n.marginLeftMobile,he=n.className,ve=n.anchor,ye=o(o({},"custom"===ae?{marginTop:u}:[]),"custom"===ce?{marginBottom:p}:[]),_e=o(o(o(o(o(o({minHeight:x},"custom"===se?{marginLeft:d}:[]),"custom"===le?{marginRight:m}:[]),"custom"===K?{paddingTop:r}:[]),"custom"===J?{paddingBottom:i}:[]),"custom"===$?{paddingLeft:a}:[]),"custom"===Y?{paddingRight:c}:[]),ke=k()("".concat(A,"__wrapper"),(e={},s()(e,"getwid-padding-top-".concat(K),"custom"!==K&&""!==K),s()(e,"getwid-padding-bottom-".concat(J),"custom"!==J&&""!==J),s()(e,"getwid-padding-left-".concat($),"custom"!==$&&""!==$),s()(e,"getwid-padding-right-".concat(Y),"custom"!==Y&&""!==Y),s()(e,"getwid-padding-tablet-top-".concat(Z),""!==Z),s()(e,"getwid-padding-tablet-bottom-".concat(ee),""!==ee),s()(e,"getwid-padding-tablet-left-".concat(te),""!==te),s()(e,"getwid-padding-tablet-right-".concat(X),""!==X),s()(e,"getwid-padding-mobile-top-".concat(ne),""!==ne),s()(e,"getwid-padding-mobile-bottom-".concat(oe),""!==oe),s()(e,"getwid-padding-mobile-left-".concat(ie),""!==ie),s()(e,"getwid-padding-mobile-right-".concat(re),""!==re),s()(e,"getwid-margin-left-".concat(se),"custom"!==se&&""!==se),s()(e,"getwid-margin-right-".concat(le),"custom"!==le&&""!==le),s()(e,"getwid-margin-tablet-left-".concat(me),""!==me),s()(e,"getwid-margin-tablet-right-".concat(pe),""!==pe),s()(e,"getwid-margin-mobile-left-".concat(we),""!==we),s()(e,"getwid-margin-mobile-right-".concat(fe),""!==fe),s()(e,"getwid-align-items-".concat(H),"center"!==H),s()(e,"getwid-align-items-tablet-".concat(G),""!==G),s()(e,"getwid-align-items-mobile-".concat(W),""!==W),s()(e,"getwid-justify-content-".concat(U),"center"!==U),s()(e,"getwid-justify-content-tablet-".concat(q),""!==q),s()(e,"getwid-justify-content-mobile-".concat(Q),""!==Q),s()(e,"getwid-reset-min-height-tablet",!1!==V),s()(e,"getwid-reset-min-height-mobile",!1!==F),e)),Oe=o(o({backgroundColor:this.props.attributes.backgroundColor?void 0:this.props.attributes.customBackgroundColor},R("background",this.props)),N("background",this.props)),Ee=T("background-color",L),Ce=k()("".concat(A,"__background"),s()({"has-background":L||z},Ee,Ee)),je=o(o(o({opacity:void 0!==h?h/100:void 0,backgroundColor:v},R("foreground",this.props)),N("foreground",this.props)),{},{mixBlendMode:y}),Se={maxWidth:j&&"custom"===S?"".concat(j,"px"):void 0},xe=D?{"data-wow-duration":void 0!==M?M:"2000ms","data-wow-delay":void 0!==I?I:"500ms"}:{},Pe=k()(he,(t={},s()(t,"has-inner-blocks-gap-".concat(B),void 0!==B&&""!==B),s()(t,"getwid-anim ".concat(D),!!D),s()(t,"getwid-margin-top-".concat(ae),"custom"!==ae&&""!==ae),s()(t,"getwid-margin-bottom-".concat(ce),"custom"!==ce&&""!==ce),s()(t,"getwid-margin-tablet-top-".concat(ue),"custom"!==ue&&""!==ue),s()(t,"getwid-margin-tablet-bottom-".concat(de),"custom"!==de&&""!==de),s()(t,"getwid-margin-mobile-top-".concat(ge),"custom"!==ge&&""!==ge),s()(t,"getwid-margin-mobile-bottom-".concat(be),"custom"!==be&&""!==be),s()(t,"getwid-section-content-full-width","full"===S),s()(t,"getwid-section-content-custom-width","custom"===S),t)),Te=ve||void 0;return wp.element.createElement("div",l()({id:Te,className:Pe,style:ye},xe),wp.element.createElement("div",{className:ke,style:_e},wp.element.createElement(E.a,o(o({},this.props),{},{baseClass:A})),!!b&&"none"!==w&&wp.element.createElement("div",{className:k()("getwid-background-video-controls",s()({},"is-position-".concat(w),"top-right"!==w))},wp.element.createElement("button",{className:"getwid-background-video-play"},wp.element.createElement("i",{className:"getwid-icon getwid-icon-pause"})),wp.element.createElement("button",{className:"getwid-background-video-mute"},wp.element.createElement("i",{className:"getwid-icon getwid-icon-mute"}))),wp.element.createElement("div",{className:k()("".concat(A,"__inner-wrapper"),s()({},"has-dividers-over",_)),style:Se},wp.element.createElement("div",{className:"".concat(A,"__background-holder")},wp.element.createElement("div",{className:Ce,style:Oe},!!g&&wp.element.createElement("div",{className:"".concat(A,"__background-image-wrapper")},wp.element.createElement("img",{className:"".concat(A,"__background-image"),src:g.url,alt:g.alt,"data-id":g.id})),!!f.length&&wp.element.createElement("div",{className:"".concat(A,"__background-slider-wrapper")},wp.element.createElement(O.b,o(o({},this.props),{},{baseClass:A}))),!!b&&wp.element.createElement("div",{className:"".concat(A,"__background-video-wrapper")},wp.element.createElement(C.a,l()({},o(o({},this.props),{},{baseClass:A}),{videoMute:this.props.attributes.backgroundVideoMute,videoAutoplay:this.props.attributes.backgroundVideoAutoplay})))),wp.element.createElement("div",{className:"".concat(A,"__foreground"),style:je})),wp.element.createElement("div",{className:"".concat(A,"__content")},wp.element.createElement("div",{className:"".concat(A,"__inner-content")},wp.element.createElement(P.Content,null))))))}}]),t}(S);t.a=B},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(n,!0).forEach(function(t){s()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function i(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=v()(e);if(t()){var o=v()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return w()(this,n)}}var a=n(9),l=n.n(a),c=n(7),s=n.n(c),u=n(2),p=n.n(u),d=n(4),m=n.n(d),g=n(5),f=n.n(g),b=n(6),w=n.n(b),h=n(3),v=n.n(h),y=(n(0),n(26)),_=n(25),k=n(134),O=n(1),E=(n.n(O),n(8)),C=n.n(E),j=n(21),S=wp.element.Component,x=wp.blockEditor||wp.editor,P=x.InnerBlocks,T=x.getColorClassName,R=j.a.prepareGradientStyle,N=j.a.prepareBackgroundImageStyles,A="wp-block-getwid-section",B=function(e){function t(){return p()(this,t),n.apply(this,arguments)}f()(t,e);var n=i(t);return m()(t,[{key:"render",value:function(){var e,t,n=this.props.attributes,r=n.align,i=n.paddingTopValue,a=n.paddingBottomValue,c=n.paddingLeftValue,u=n.paddingRightValue,p=n.marginTopValue,d=n.marginBottomValue,m=n.marginLeftValue,g=n.marginRightValue,f=n.backgroundImage,b=n.sliderImages,w=n.backgroundVideoUrl,h=n.backgroundVideoControlsPosition,v=n.foregroundOpacity,O=n.foregroundColor,E=n.foregroundFilter,j=n.dividersBringTop,S=n.contentMaxWidth,x=n.contentMaxWidthPreset,B=n.minHeight,D=n.gapSize,M=n.entranceAnimation,I=n.entranceAnimationDuration,L=n.entranceAnimationDelay,z=n.backgroundColor,V=n.customBackgroundColor,F=n.resetMinHeightTablet,H=n.resetMinHeightMobile,G=n.verticalAlign,W=n.verticalAlignTablet,U=n.verticalAlignMobile,q=n.horizontalAlign,Q=n.horizontalAlignTablet,K=n.horizontalAlignMobile,Y=n.paddingTop,J=n.paddingRight,$=n.paddingBottom,Z=n.paddingLeft,X=n.paddingTopTablet,ee=n.paddingRightTablet,te=n.paddingBottomTablet,ne=n.paddingLeftTablet,re=n.paddingTopMobile,oe=n.paddingRightMobile,ie=n.paddingBottomMobile,ae=n.paddingLeftMobile,le=n.marginTop,ce=n.marginRight,se=n.marginBottom,ue=n.marginLeft,pe=n.marginTopTablet,de=n.marginRightTablet,me=n.marginBottomTablet,ge=n.marginLeftTablet,fe=n.marginTopMobile,be=n.marginRightMobile,we=n.marginBottomMobile,he=n.marginLeftMobile,ve=n.className,ye=n.anchor,_e=o(o({},"custom"===le?{marginTop:p}:[]),"custom"===se?{marginBottom:d}:[]),ke=o(o(o(o(o(o({minHeight:B},"custom"===ue?{marginLeft:m}:[]),"custom"===ce?{marginRight:g}:[]),"custom"===Y?{paddingTop:i}:[]),"custom"===$?{paddingBottom:a}:[]),"custom"===Z?{paddingLeft:c}:[]),"custom"===J?{paddingRight:u}:[]),Oe=C()("".concat(A,"__wrapper"),(e={},s()(e,"getwid-padding-top-".concat(Y),"custom"!==Y&&""!==Y),s()(e,"getwid-padding-bottom-".concat($),"custom"!==$&&""!==$),s()(e,"getwid-padding-left-".concat(Z),"custom"!==Z&&""!==Z),s()(e,"getwid-padding-right-".concat(J),"custom"!==J&&""!==J),s()(e,"getwid-padding-tablet-top-".concat(X),""!==X),s()(e,"getwid-padding-tablet-bottom-".concat(te),""!==te),s()(e,"getwid-padding-tablet-left-".concat(ne),""!==ne),s()(e,"getwid-padding-tablet-right-".concat(ee),""!==ee),s()(e,"getwid-padding-mobile-top-".concat(re),""!==re),s()(e,"getwid-padding-mobile-bottom-".concat(ie),""!==ie),s()(e,"getwid-padding-mobile-left-".concat(ae),""!==ae),s()(e,"getwid-padding-mobile-right-".concat(oe),""!==oe),s()(e,"getwid-margin-left-".concat(ue),"custom"!==ue&&""!==ue),s()(e,"getwid-margin-right-".concat(ce),"custom"!==ce&&""!==ce),s()(e,"getwid-margin-tablet-left-".concat(ge),""!==ge),s()(e,"getwid-margin-tablet-right-".concat(de),""!==de),s()(e,"getwid-margin-mobile-left-".concat(he),""!==he),s()(e,"getwid-margin-mobile-right-".concat(be),""!==be),s()(e,"getwid-align-items-".concat(G),"center"!==G),s()(e,"getwid-align-items-tablet-".concat(W),""!==W),s()(e,"getwid-align-items-mobile-".concat(U),""!==U),s()(e,"getwid-justify-content-".concat(q),"center"!==q),s()(e,"getwid-justify-content-tablet-".concat(Q),""!==Q),s()(e,"getwid-justify-content-mobile-".concat(K),""!==K),s()(e,"getwid-reset-min-height-tablet",!1!==F),s()(e,"getwid-reset-min-height-mobile",!1!==H),e)),Ee=o(o({backgroundColor:this.props.attributes.backgroundColor?void 0:this.props.attributes.customBackgroundColor},R("background",this.props)),N("background",this.props)),Ce=T("background-color",z),je=C()("".concat(A,"__background"),s()({"has-background":z||V},Ce,Ce)),Se=o(o(o({opacity:void 0!==v?v/100:void 0,backgroundColor:O},R("foreground",this.props)),N("foreground",this.props)),{},{mixBlendMode:E}),xe={maxWidth:S&&"custom"===x?"".concat(S,"px"):void 0},Pe=M?{"data-wow-duration":void 0!==I?I:"2000ms","data-wow-delay":void 0!==L?L:"500ms"}:{},Te=C()(ve,r?"align".concat(r):null,(t={},s()(t,"has-inner-blocks-gap-".concat(D),void 0!==D&&""!==D),s()(t,"getwid-anim ".concat(M),!!M),s()(t,"getwid-margin-top-".concat(le),"custom"!==le&&""!==le),s()(t,"getwid-margin-bottom-".concat(se),"custom"!==se&&""!==se),s()(t,"getwid-margin-tablet-top-".concat(pe),"custom"!==pe&&""!==pe),s()(t,"getwid-margin-tablet-bottom-".concat(me),"custom"!==me&&""!==me),s()(t,"getwid-margin-mobile-top-".concat(fe),"custom"!==fe&&""!==fe),s()(t,"getwid-margin-mobile-bottom-".concat(we),"custom"!==we&&""!==we),s()(t,"getwid-section-content-full-width","full"===x),s()(t,"getwid-section-content-custom-width","custom"===x),t)),Re=ye||void 0;return wp.element.createElement("div",l()({id:Re,className:Te,style:_e},Pe),wp.element.createElement("div",{className:Oe,style:ke},wp.element.createElement(_.a,o(o({},this.props),{},{baseClass:A})),!!w&&"none"!==h&&wp.element.createElement("div",{className:C()("getwid-background-video-controls",s()({},"is-position-".concat(h),"top-right"!==h))},wp.element.createElement("button",{className:"getwid-background-video-play"},wp.element.createElement("i",{className:"getwid-icon getwid-icon-pause"})),wp.element.createElement("button",{className:"getwid-background-video-mute"},wp.element.createElement("i",{className:"getwid-icon getwid-icon-mute"}))),wp.element.createElement("div",{className:C()("".concat(A,"__inner-wrapper"),s()({},"has-dividers-over",j)),style:xe},wp.element.createElement("div",{className:"".concat(A,"__background-holder")},wp.element.createElement("div",{className:je,style:Ee},!!f&&wp.element.createElement("div",{className:"".concat(A,"__background-image-wrapper")},wp.element.createElement("img",{className:"".concat(A,"__background-image"),src:f.url,alt:f.alt})),!!b.length&&wp.element.createElement("div",{className:"".concat(A,"__background-slider-wrapper")},wp.element.createElement(y.b,o(o({},this.props),{},{baseClass:A}))),!!w&&wp.element.createElement("div",{className:"".concat(A,"__background-video-wrapper")},wp.element.createElement(k.a,l()({},o(o({},this.props),{},{baseClass:A}),{videoMute:this.props.attributes.backgroundVideoMute,videoAutoplay:this.props.attributes.backgroundVideoAutoplay})))),wp.element.createElement("div",{className:"".concat(A,"__foreground"),style:Se})),wp.element.createElement("div",{className:"".concat(A,"__content")},wp.element.createElement("div",{className:"".concat(A,"__inner-content")},wp.element.createElement(P.Content,null))))))}}]),t}(S);t.a=B},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=f()(e);if(t()){var o=f()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}n.d(t,"a",function(){return v});var o=n(9),i=n.n(o),a=n(2),l=n.n(a),c=n(4),s=n.n(c),u=n(5),p=n.n(u),d=n(6),m=n.n(d),g=n(3),f=n.n(g),b=(n(0),wp.element),w=b.Component,h=b.Fragment,v=function(e){function t(){return l()(this,t),n.apply(this,arguments)}p()(t,e);var n=r(t);return s()(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.backgroundVideoUrl,r=(t.backgroundVideoMute,t.backgroundVideoLoop),o=(t.backgroundVideoAutoplay,t.backgroundVideoPoster),a=e.baseClass,l={autoPlay:this.props.videoAutoplay,muted:this.props.videoMute,loop:r,poster:o||void 0};return wp.element.createElement(h,null,n.url&&wp.element.createElement("video",i()({className:"".concat(a,"__background-video")},l,{ref:this.props.videoElemRef,onEnded:this.props.onVideoEnd}),wp.element.createElement("source",{src:n.url,type:"video/mp4"})))}},{key:"componentDidMount",value:function(){}},{key:"componentDidUpdate",value:function(){}}]),t}(w)},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(n,!0).forEach(function(t){s()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function i(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=v()(e);if(t()){var o=v()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return w()(this,n)}}var a=n(9),l=n.n(a),c=n(7),s=n.n(c),u=n(2),p=n.n(u),d=n(4),m=n.n(d),g=n(5),f=n.n(g),b=n(6),w=n.n(b),h=n(3),v=n.n(h),y=(n(0),n(26)),_=n(25),k=n(29),O=n(1),E=(n.n(O),n(8)),C=n.n(E),j=n(21),S=wp.element.Component,x=wp.blockEditor||wp.editor,P=x.InnerBlocks,T=x.getColorClassName,R=j.a.prepareGradientStyle,N=j.a.prepareBackgroundImageStyles,A="wp-block-getwid-section",B=function(e){function t(){return p()(this,t),n.apply(this,arguments)}f()(t,e);var n=i(t);return m()(t,[{key:"render",value:function(){var e,t,n=this.props.attributes,r=n.align,i=n.paddingTopValue,a=n.paddingBottomValue,c=n.paddingLeftValue,u=n.paddingRightValue,p=n.marginTopValue,d=n.marginBottomValue,m=n.marginLeftValue,g=n.marginRightValue,f=n.backgroundImage,b=n.sliderImages,w=n.backgroundVideoType,h=n.youTubeVideoUrl,v=n.youTubeVideoMute,O=n.youTubeVideoLoop,E=n.youTubeVideoAutoplay,j=n.backgroundVideoUrl,S=n.backgroundVideoControlsPosition,x=n.foregroundOpacity,B=n.foregroundColor,D=n.foregroundFilter,M=n.dividersBringTop,I=n.contentMaxWidth,L=n.contentMaxWidthPreset,z=n.minHeight,V=n.gapSize,F=n.entranceAnimation,H=n.entranceAnimationDuration,G=n.entranceAnimationDelay,W=n.backgroundColor,U=n.customBackgroundColor,q=n.resetMinHeightTablet,Q=n.resetMinHeightMobile,K=n.verticalAlign,Y=n.verticalAlignTablet,J=n.verticalAlignMobile,$=n.horizontalAlign,Z=n.horizontalAlignTablet,X=n.horizontalAlignMobile,ee=n.paddingTop,te=n.paddingRight,ne=n.paddingBottom,re=n.paddingLeft,oe=n.paddingTopTablet,ie=n.paddingRightTablet,ae=n.paddingBottomTablet,le=n.paddingLeftTablet,ce=n.paddingTopMobile,se=n.paddingRightMobile,ue=n.paddingBottomMobile,pe=n.paddingLeftMobile,de=n.marginTop,me=n.marginRight,ge=n.marginBottom,fe=n.marginLeft,be=n.marginTopTablet,we=n.marginRightTablet,he=n.marginBottomTablet,ve=n.marginLeftTablet,ye=n.marginTopMobile,_e=n.marginRightMobile,ke=n.marginBottomMobile,Oe=n.marginLeftMobile,Ee=n.className,Ce=n.anchor,je=o(o({},"custom"===de?{marginTop:p}:[]),"custom"===ge?{marginBottom:d}:[]),Se=o(o(o(o(o(o({minHeight:z},"custom"===fe?{marginLeft:m}:[]),"custom"===me?{marginRight:g}:[]),"custom"===ee?{paddingTop:i}:[]),"custom"===ne?{paddingBottom:a}:[]),"custom"===re?{paddingLeft:c}:[]),"custom"===te?{paddingRight:u}:[]),xe=C()("".concat(A,"__wrapper"),(e={},s()(e,"getwid-padding-top-".concat(ee),"custom"!==ee&&""!==ee),s()(e,"getwid-padding-bottom-".concat(ne),"custom"!==ne&&""!==ne),s()(e,"getwid-padding-left-".concat(re),"custom"!==re&&""!==re),s()(e,"getwid-padding-right-".concat(te),"custom"!==te&&""!==te),s()(e,"getwid-padding-tablet-top-".concat(oe),""!==oe),s()(e,"getwid-padding-tablet-bottom-".concat(ae),""!==ae),s()(e,"getwid-padding-tablet-left-".concat(le),""!==le),s()(e,"getwid-padding-tablet-right-".concat(ie),""!==ie),s()(e,"getwid-padding-mobile-top-".concat(ce),""!==ce),s()(e,"getwid-padding-mobile-bottom-".concat(ue),""!==ue),s()(e,"getwid-padding-mobile-left-".concat(pe),""!==pe),s()(e,"getwid-padding-mobile-right-".concat(se),""!==se),s()(e,"getwid-margin-left-".concat(fe),"custom"!==fe&&""!==fe),s()(e,"getwid-margin-right-".concat(me),"custom"!==me&&""!==me),s()(e,"getwid-margin-tablet-left-".concat(ve),""!==ve),s()(e,"getwid-margin-tablet-right-".concat(we),""!==we),s()(e,"getwid-margin-mobile-left-".concat(Oe),""!==Oe),s()(e,"getwid-margin-mobile-right-".concat(_e),""!==_e),s()(e,"getwid-align-items-".concat(K),"center"!==K),s()(e,"getwid-align-items-tablet-".concat(Y),""!==Y),s()(e,"getwid-align-items-mobile-".concat(J),""!==J),s()(e,"getwid-justify-content-".concat($),"center"!==$),s()(e,"getwid-justify-content-tablet-".concat(Z),""!==Z),s()(e,"getwid-justify-content-mobile-".concat(X),""!==X),s()(e,"getwid-reset-min-height-tablet",!1!==q),s()(e,"getwid-reset-min-height-mobile",!1!==Q),e)),Pe=o(o({backgroundColor:this.props.attributes.backgroundColor?void 0:this.props.attributes.customBackgroundColor},R("background",this.props)),N("background",this.props)),Te=T("background-color",W),Re=C()("".concat(A,"__background"),s()({"has-background":W||U},Te,Te)),Ne=o(o(o({opacity:void 0!==x?x/100:void 0,backgroundColor:B},R("foreground",this.props)),N("foreground",this.props)),{},{mixBlendMode:D}),Ae={maxWidth:I&&"custom"===L?"".concat(I,"px"):void 0},Be=F?{"data-wow-duration":void 0!==H?H:"2000ms","data-wow-delay":void 0!==G?G:"500ms"}:{},De=C()(Ee,r?"align".concat(r):null,(t={},s()(t,"has-inner-blocks-gap-".concat(V),void 0!==V&&""!==V),s()(t,"getwid-anim ".concat(F),!!F),s()(t,"getwid-margin-top-".concat(de),"custom"!==de&&""!==de),s()(t,"getwid-margin-bottom-".concat(ge),"custom"!==ge&&""!==ge),s()(t,"getwid-margin-tablet-top-".concat(be),"custom"!==be&&""!==be),s()(t,"getwid-margin-tablet-bottom-".concat(he),"custom"!==he&&""!==he),s()(t,"getwid-margin-mobile-top-".concat(ye),"custom"!==ye&&""!==ye),s()(t,"getwid-margin-mobile-bottom-".concat(ke),"custom"!==ke&&""!==ke),s()(t,"getwid-section-content-full-width","full"===L),s()(t,"getwid-section-content-custom-width","custom"===L),t)),Me=Ce||void 0,Ie={"youtube-video-url":h,"youtube-video-muted":v,"youtube-video-loop":O,"youtube-video-autoplay":E};return wp.element.createElement("div",l()({id:Me,className:De,style:je},Be),wp.element.createElement("div",{className:xe,style:Se},wp.element.createElement(_.a,o(o({},this.props),{},{baseClass:A})),(!!j||!!h)&&"none"!==S&&wp.element.createElement("div",{className:C()("getwid-background-video-controls",s()({},"is-position-".concat(S),"top-right"!==S))},wp.element.createElement("button",{className:"getwid-background-video-play"},wp.element.createElement("i",{className:"getwid-icon getwid-icon-pause"})),wp.element.createElement("button",{className:"getwid-background-video-mute"},wp.element.createElement("i",{className:"getwid-icon getwid-icon-mute"}))),wp.element.createElement("div",{className:C()("".concat(A,"__inner-wrapper"),s()({},"has-dividers-over",M)),style:Ae},wp.element.createElement("div",{className:"".concat(A,"__background-holder")},wp.element.createElement("div",{className:Re,style:Pe},!!f&&wp.element.createElement("div",{className:"".concat(A,"__background-image-wrapper")},wp.element.createElement("img",{className:"".concat(A,"__background-image"),src:f.url,alt:f.alt})),b&&!!b.length&&wp.element.createElement("div",{className:"".concat(A,"__background-slider-wrapper")},wp.element.createElement(y.b,o(o({},this.props),{},{baseClass:A}))),(!!j||!!h)&&wp.element.createElement("div",{className:"".concat(A,"__background-video-wrapper")},h&&""!=h&&"youtube"==w&&wp.element.createElement("div",l()({className:"".concat(A,"__background-video source-youtube")},Ie),wp.element.createElement("div",{className:"".concat(A,"__background-video-youtube")})),!!j&&"self"==w&&wp.element.createElement(k.a,l()({},o(o({},this.props),{},{baseClass:A}),{videoMute:this.props.attributes.backgroundVideoMute,videoAutoplay:this.props.attributes.backgroundVideoAutoplay})))),wp.element.createElement("div",{className:"".concat(A,"__foreground"),style:Ne})),wp.element.createElement("div",{className:"".concat(A,"__content")},wp.element.createElement("div",{className:"".concat(A,"__inner-content")},wp.element.createElement(P.Content,null))))))}}]),t}(S);t.a=B},function(e,t,n){"use strict";var r={align:{type:"string"},skipLayout:{type:"boolean",default:!1},contentMaxWidthPreset:{type:"string"},contentMaxWidth:{type:"number"},minHeight:{type:"string"},gapSize:{type:"string"},resetMinHeightTablet:{type:"boolean",default:!1},resetMinHeightMobile:{type:"boolean",default:!1},verticalAlign:{type:"string",default:"center"},verticalAlignTablet:{type:"string",default:""},verticalAlignMobile:{type:"string",default:""},horizontalAlign:{type:"string",default:"center"},horizontalAlignTablet:{type:"string",default:""},horizontalAlignMobile:{type:"string",default:""},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},backgroundGradientFirstColor:{type:"string"},backgroundGradientFirstColorLocation:{type:"number",default:0},backgroundGradientSecondColor:{type:"string"},backgroundGradientSecondColorLocation:{type:"number",default:100},backgroundGradientType:{type:"string"},backgroundGradientAngle:{type:"number",default:180},backgroundImage:{type:"object"},backgroundImagePosition:{type:"string"},backgroundImageAttachment:{type:"string"},backgroundImageRepeat:{type:"string"},backgroundImageSize:{type:"string"},sliderImages:{type:"array",default:[],source:"query",selector:".wp-block-getwid-section__background-slider>.wp-block-getwid-section__background-slider-item",query:{url:{source:"attribute",selector:"img",attribute:"src"},alt:{source:"attribute",selector:"img",attribute:"alt",default:""},id:{source:"attribute",selector:"img",attribute:"data-id"}}},sliderAnimationEffect:{type:"string",source:"attribute",selector:".wp-block-getwid-section__background-holder .wp-block-getwid-section__background-slider",attribute:"data-slide-effect"},sliderAnimationDuration:{type:"string",source:"attribute",selector:".wp-block-getwid-section__background-holder .wp-block-getwid-section__background-slider",attribute:"data-slide-speed",default:1e3},sliderAnimationSpeed:{type:"string",source:"attribute",selector:".wp-block-getwid-section__background-holder .wp-block-getwid-section__background-slider",attribute:"data-autoplay-speed",default:5e3},backgroundVideoUrl:{type:"object"},backgroundVideoMute:{type:"boolean",source:"attribute",selector:".wp-block-getwid-section__background-holder .wp-block-getwid-section__background-video",attribute:"muted",default:!1},backgroundVideoLoop:{type:"boolean",source:"attribute",selector:".wp-block-getwid-section__background-holder .wp-block-getwid-section__background-video",attribute:"loop",default:!1},backgroundVideoAutoplay:{type:"boolean",source:"attribute",selector:".wp-block-getwid-section__background-holder .wp-block-getwid-section__background-video",attribute:"autoplay",default:!1},backgroundVideoPoster:{type:"string",source:"attribute",selector:".wp-block-getwid-section__background-holder .wp-block-getwid-section__background-video",attribute:"poster"},backgroundVideoControlsPosition:{type:"string",default:"top-right"},foregroundOpacity:{type:"number"},foregroundColor:{type:"string"},foregroundImage:{type:"object"},foregroundImagePosition:{type:"string"},foregroundImageAttachment:{type:"string"},foregroundImageRepeat:{type:"string"},foregroundImageSize:{type:"string"},foregroundFilter:{type:"string"},foregroundGradientType:{type:"string"},foregroundGradientFirstColor:{type:"string"},foregroundGradientFirstColorLocation:{type:"number",default:0},foregroundGradientSecondColor:{type:"string"},foregroundGradientSecondColorLocation:{type:"number",default:100},foregroundGradientAngle:{type:"number",default:180},dividerTop:{type:"string"},dividersTopHeight:{type:"string"},dividerTopColor:{type:"string",default:"white"},dividerBottom:{type:"string"},dividersBottomHeight:{type:"string"},dividersBringTop:{type:"boolean",default:!1},dividerBottomColor:{type:"string",default:"white"},entranceAnimation:{type:"string"},entranceAnimationDuration:{type:"string",source:"attribute",selector:".wp-block-getwid-section",attribute:"data-wow-duration",default:"1500ms"},entranceAnimationDelay:{type:"string",source:"attribute",selector:".wp-block-getwid-section",attribute:"data-wow-delay",default:"200ms"},paddingTopValue:{type:"string"},paddingBottomValue:{type:"string"},paddingLeftValue:{type:"string"},paddingRightValue:{type:"string"},paddingTop:{type:"string",default:""},paddingBottom:{type:"string",default:""},paddingLeft:{type:"string",default:""},paddingRight:{type:"string",default:""},paddingTopTablet:{type:"string",default:""},paddingBottomTablet:{type:"string",default:""},paddingLeftTablet:{type:"string",default:""},paddingRightTablet:{type:"string",default:""},paddingTopMobile:{type:"string",default:""},paddingBottomMobile:{type:"string",default:""},paddingLeftMobile:{type:"string",default:""},paddingRightMobile:{type:"string",default:""},marginTopValue:{type:"string"},marginBottomValue:{type:"string"},marginLeftValue:{type:"string"},marginRightValue:{type:"string"},marginTop:{type:"string",default:""},marginBottom:{type:"string",default:""},marginLeft:{type:"string",default:""},marginRight:{type:"string",default:""},marginTopTablet:{type:"string",default:""},marginBottomTablet:{type:"string",default:""},marginLeftTablet:{type:"string",default:""},marginRightTablet:{type:"string",default:""},marginTopMobile:{type:"string",default:""},marginBottomMobile:{type:"string",default:""},marginLeftMobile:{type:"string",default:""},marginRightMobile:{type:"string",default:""}};t.a=r},function(e,t,n){"use strict";var r={align:{type:"string"},skipLayout:{type:"boolean",default:!1},contentMaxWidthPreset:{type:"string"},contentMaxWidth:{type:"number"},minHeight:{type:"string"},gapSize:{type:"string"},resetMinHeightTablet:{type:"boolean",default:!1},resetMinHeightMobile:{type:"boolean",default:!1},verticalAlign:{type:"string",default:"center"},verticalAlignTablet:{type:"string",default:""},verticalAlignMobile:{type:"string",default:""},horizontalAlign:{type:"string",default:"center"},horizontalAlignTablet:{type:"string",default:""},horizontalAlignMobile:{type:"string",default:""},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},backgroundGradientFirstColor:{type:"string"},backgroundGradientSecondColor:{type:"string"},backgroundGradientFirstColorLocation:{type:"number",default:0},backgroundGradientSecondColorLocation:{type:"number",default:100},backgroundGradientType:{type:"string"},backgroundGradientAngle:{type:"number",default:180},foregroundGradientFirstColor:{type:"string"},foregroundGradientSecondColor:{type:"string"},foregroundGradientFirstColorLocation:{type:"number",default:0},foregroundGradientSecondColorLocation:{type:"number",default:100},foregroundGradientType:{type:"string"},foregroundGradientAngle:{type:"number",default:180},backgroundImage:{type:"object"},backgroundCustomImagePosition:{type:"object"},backgroundImagePosition:{type:"string"},backgroundImageAttachment:{type:"string"},backgroundImageRepeat:{type:"string"},backgroundImageSize:{type:"string"},sliderImages:{type:"array",default:[],source:"query",selector:".wp-block-getwid-section__background-slider>.wp-block-getwid-section__background-slider-item",query:{url:{source:"attribute",selector:"img",attribute:"src"},alt:{source:"attribute",selector:"img",attribute:"alt",default:""},id:{source:"attribute",selector:"img",attribute:"data-id"}}},sliderAnimationEffect:{type:"string",source:"attribute",selector:".wp-block-getwid-section__background-holder .wp-block-getwid-section__background-slider",attribute:"data-slide-effect"},sliderAnimationDuration:{type:"string",source:"attribute",selector:".wp-block-getwid-section__background-holder .wp-block-getwid-section__background-slider",attribute:"data-slide-speed",default:1e3},sliderAnimationSpeed:{type:"string",source:"attribute",selector:".wp-block-getwid-section__background-holder .wp-block-getwid-section__background-slider",attribute:"data-autoplay-speed",default:5e3},backgroundVideoType:{type:"string",default:"self"},youTubeVideoUrl:{type:"string",source:"attribute",selector:".wp-block-getwid-section__background-video.source-youtube",attribute:"youtube-video-url"},youTubeVideoMute:{type:"string",source:"attribute",selector:".wp-block-getwid-section__background-video.source-youtube",attribute:"youtube-video-muted",default:"false"},youTubeVideoLoop:{type:"string",source:"attribute",selector:".wp-block-getwid-section__background-video.source-youtube",attribute:"youtube-video-loop",default:"false"},youTubeVideoAutoplay:{type:"string",source:"attribute",selector:".wp-block-getwid-section__background-video.source-youtube",attribute:"youtube-video-autoplay",default:"false"},backgroundVideoUrl:{type:"object"},backgroundVideoMute:{type:"boolean",source:"attribute",selector:".wp-block-getwid-section__background-holder .wp-block-getwid-section__background-video.source-media-library",attribute:"muted",default:!1},backgroundVideoLoop:{type:"boolean",source:"attribute",selector:".wp-block-getwid-section__background-holder .wp-block-getwid-section__background-video.source-media-library",attribute:"loop",default:!1},backgroundVideoAutoplay:{type:"boolean",source:"attribute",selector:".wp-block-getwid-section__background-holder .wp-block-getwid-section__background-video.source-media-library",attribute:"autoplay",default:!1},backgroundVideoPoster:{type:"string",source:"attribute",selector:".wp-block-getwid-section__background-holder .wp-block-getwid-section__background-video.source-media-library",attribute:"poster"},backgroundVideoControlsPosition:{type:"string",default:"top-right"},foregroundOpacity:{type:"number"},foregroundColor:{type:"string"},foregroundImage:{type:"object"},foregroundCustomImagePosition:{type:"object"},foregroundImagePosition:{type:"string"},foregroundImageAttachment:{type:"string"},foregroundImageRepeat:{type:"string"},foregroundImageSize:{type:"string"},foregroundFilter:{type:"string"},dividerTop:{type:"string"},dividersTopHeight:{type:"string"},dividerTopColor:{type:"string",default:"white"},dividerBottom:{type:"string"},dividersBottomHeight:{type:"string"},dividersBringTop:{type:"boolean",default:!1},dividerBottomColor:{type:"string",default:"white"},entranceAnimation:{type:"string"},entranceAnimationDuration:{type:"string",source:"attribute",selector:".wp-block-getwid-section",attribute:"data-wow-duration",default:"1500ms"},entranceAnimationDelay:{type:"string",source:"attribute",selector:".wp-block-getwid-section",attribute:"data-wow-delay",default:"200ms"},paddingTopValue:{type:"string"},paddingBottomValue:{type:"string"},paddingLeftValue:{type:"string"},paddingRightValue:{type:"string"},paddingTop:{type:"string",default:""},paddingBottom:{type:"string",default:""},paddingLeft:{type:"string",default:""},paddingRight:{type:"string",default:""},paddingTopTablet:{type:"string",default:""},paddingBottomTablet:{type:"string",default:""},paddingLeftTablet:{type:"string",default:""},paddingRightTablet:{type:"string",default:""},paddingTopMobile:{type:"string",default:""},paddingBottomMobile:{type:"string",default:""},paddingLeftMobile:{type:"string",default:""},paddingRightMobile:{type:"string",default:""},marginTopValue:{type:"string"},marginBottomValue:{type:"string"},marginLeftValue:{type:"string"},marginRightValue:{type:"string"},marginTop:{type:"string",default:""},marginBottom:{type:"string",default:""},marginLeft:{type:"string",default:""},marginRight:{type:"string",default:""},marginTopTablet:{type:"string",default:""},marginBottomTablet:{type:"string",default:""},marginLeftTablet:{type:"string",default:""},marginRightTablet:{type:"string",default:""},marginTopMobile:{type:"string",default:""},marginBottomMobile:{type:"string",default:""},marginLeftMobile:{type:"string",default:""},marginRightMobile:{type:"string",default:""}};t.a=r},function(e,t){},function(e,t){},function(e,t,n){"use strict";n(141),n(149),n(154)},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(n,!0).forEach(function(t){a()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var i=n(7),a=n.n(i),l=(n(0),n(49)),c=n(145),s=n(50),u=n(146),p=n(52),d=n(12),m=n(148),g=n(1),f=(n.n(g),n(10)),b=(n.n(f),wp.blocks.registerBlockType),w="wp-block-getwid-media-text-slider";b("getwid/media-text-slider",o(o({title:Object(g.__)("Media & Text Slider","getwid"),icon:wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 24 24"},wp.element.createElement("rect",{x:"4",y:"4",width:"16",height:"2"}),wp.element.createElement("circle",{cx:"6",cy:"22",r:"2"}),wp.element.createElement("circle",{cx:"12",cy:"22",r:"2"}),wp.element.createElement("circle",{cx:"18",cy:"22",r:"2"}),wp.element.createElement("path",{d:"M0,0v19h24V0H0z M22,2v10.59l-2.5-2.5l-3.5,3.5l-6-6l-8,8V2H22z M3.41,17L10,10.41l6,6l3.5-3.5l2.5,2.5V17H3.41z"})),category:"getwid-blocks",keywords:[Object(g.__)("gallery","getwid"),Object(g.__)("carousel","getwid"),Object(g.__)("image","getwid")],supports:{alignWide:!0,align:["wide","full"],inserter:!Getwid.disabled_blocks.includes("getwid/media-text-slider")},attributes:s.a,transforms:{from:[{type:"block",blocks:["core/gallery"],transform:function(e){return Object(p.b)(e)}},{type:"block",blocks:["getwid/images-stack"],transform:function(e){return Object(p.b)(e)}},{type:"block",blocks:["getwid/images-slider"],transform:function(e){return Object(p.b)(e)}},{type:"block",isMultiBlock:!0,blocks:["core/image"],transform:function(e){return Object(p.b)(e)}}],to:[{type:"block",blocks:["core/gallery"],transform:function(e){return Object(p.a)(e,"core/gallery",null)}},{type:"block",blocks:["getwid/images-stack"],transform:function(e){return Object(p.a)(e,"getwid/images-stack",[])}},{type:"block",blocks:["getwid/images-slider"],transform:function(e){return Object(p.a)(e,"getwid/images-slider",[])}},{type:"block",blocks:["core/image"],transform:function(e){return Object(p.a)(e,"core/image",null)}},{type:"block",blocks:["getwid/content-timeline"],transform:function(e){return Object(p.a)(e,"getwid/content-timeline",null)}}]},deprecated:[{attributes:u.a,migrate:function(e){var t=JSON.parse(e.sliderArrays.replace(/u0022/g,'"'));return o(o({},e),{},{sliderArrays:JSON.stringify(Object(f.times)(e.slideCount,function(e){return"".concat(t[e].text)}))})},save:function(e){return wp.element.createElement(m.a,o(o({},e),{},{baseClass:w}))}}]},Object(d.b)("getwid/media-text-slider",function(e){return wp.element.createElement(l.b,o(o({},e),{},{baseClass:w}))})),{},{save:function(e){return wp.element.createElement(c.a,o(o({},e),{},{baseClass:w}))}}))},function(e,t,n){e.exports=function(e,t){function n(){var t,n,l=o,c=arguments.length;e:for(;l;){if(l.args.length===arguments.length){for(n=0;n<c;n++)if(l.args[n]!==arguments[n]){l=l.next;continue e}return l!==o&&(l===i&&(i=l.prev),l.prev.next=l.next,l.next&&(l.next.prev=l.prev),l.next=o,l.prev=null,o.prev=l,o=l),l.val}l=l.next}for(t=new Array(c),n=0;n<c;n++)t[n]=arguments[n];return l={args:t,val:e.apply(null,t)},o?(o.prev=l,l.next=o):i=l,a===r?(i=i.prev,i.next=null):a++,o=l,l.val}var r,o,i,a=0;return t&&t.maxSize&&(r=t.maxSize),n.clear=function(){o=null,i=null,a=0},n}},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=f()(e);if(t()){var o=f()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var o=n(7),i=n.n(o),a=n(2),l=n.n(a),c=n(4),s=n.n(c),u=n(5),p=n.n(u),d=n(6),m=n.n(d),g=n(3),f=n.n(g),b=(n(0),n(1)),w=(n.n(b),n(19)),h=n(17),v=n(24),y=n(16),_=n(14),k=n(50),O=wp.element,E=O.Component,C=O.Fragment,j=wp.blockEditor||wp.editor,S=j.InspectorControls,x=wp.components,P=x.Button,T=x.BaseControl,R=x.PanelBody,N=x.RangeControl,A=x.ToggleControl,B=x.SelectControl,D=x.RadioControl,M=x.TextControl,I=function(e){function t(e){var r;return l()(this,t),r=n.apply(this,arguments),r.state={tabName:"general"},r}p()(t,e);var n=r(t);return s()(t,[{key:"hasSliderSettings",value:function(){var e=this.props.attributes,t=e.sliderAnimationEffect,n=e.sliderAutoplay,r=e.pauseOnHover,o=e.sliderAutoplaySpeed,i=e.sliderAnimationSpeed;return void 0!=t||n!=k.a.sliderAutoplay.default||r!=k.a.pauseOnHover.default||o!=k.a.sliderAutoplaySpeed.default||i!=k.a.sliderAnimationSpeed.default}},{key:"render",value:function(){var e=this,t=this.props,n=t.addNewSlide,r=t.setAttributes,o=t.clientId,a=this.props.attributes,l=a.imageSize,c=a.slideCount,s=a.contentMaxWidth,u=a.minHeight,p=a.verticalAlign,d=a.horizontalAlign,m=a.textColor,g=a.overlayColor,f=a.overlayOpacity,O=a.contentAnimation,E=this.props.attributes,j=E.contentAnimationDuration,x=E.contentAnimationDelay,I=E.sliderAnimationEffect,L=E.sliderAutoplay,z=E.pauseOnHover,V=E.sliderAutoplaySpeed,F=E.sliderAnimationSpeed,H=this.props.attributes,G=H.sliderArrows,W=H.sliderDots,U=this.state.tabName;if(!(0,wp.data.select)("core/block-editor").getBlock(o))return wp.element.createElement(S,null);var q=function(){return r({sliderAnimationEffect:void 0,sliderAutoplay:k.a.sliderAutoplay.default,pauseOnHover:k.a.pauseOnHover.default,sliderAutoplaySpeed:k.a.sliderAutoplaySpeed.default,sliderAnimationSpeed:k.a.sliderAnimationSpeed.default})},Q=function(){return O!==k.a.contentAnimation.default||x!==k.a.contentAnimationDelay.default||j!==k.a.contentAnimationDuration.default},K=function(){r({contentAnimation:k.a.contentAnimation.default,contentAnimationDelay:k.a.contentAnimationDelay.default,contentAnimationDuration:k.a.contentAnimationDuration.default})};return wp.element.createElement(S,{key:"inspector"},wp.element.createElement(w.a,{state:U,stateName:"tabName",onChangeTab:function(t,n){e.setState(i()({},t,n))},tabs:["general","style","advanced"]}),"general"===U&&wp.element.createElement(C,null,wp.element.createElement(R,null,wp.element.createElement(N,{label:Object(b.__)("Number of slides","getwid"),value:c,onChange:function(e){return n(e)},min:1,max:12}),wp.element.createElement(B,{label:Object(b.__)("Image Size","getwid"),help:Object(b.__)("For images from Media Library only.","getwid"),value:l,onChange:function(e){r({imageSize:e})},options:Getwid.settings.image_sizes}),wp.element.createElement(T,{label:Object(b.__)("Slider Minimum Height","getwid")},wp.element.createElement(h.a,{value:u,units:[{label:"px",value:"px"},{label:"vh",value:"vh"},{label:"vw",value:"vw"},{label:"%",value:"%"}],onChange:function(e){return r({minHeight:e})}})),wp.element.createElement(N,{label:Object(b.__)("Content Area Width","getwid"),value:void 0!==s?s:"",onChange:function(e){r({contentMaxWidth:e})},allowReset:!0,min:0,max:2e3,step:1}),wp.element.createElement(B,{label:Object(b.__)("Content Area Vertical Alignment","getwid"),value:void 0!==p?p:"center",onChange:function(e){return r({verticalAlign:e})},options:[{value:"top",label:Object(b.__)("Top","getwid")},{value:"center",label:Object(b.__)("Middle","getwid")},{value:"bottom",label:Object(b.__)("Bottom","getwid")}]}),wp.element.createElement(B,{label:Object(b.__)("Content Area Horizontal Alignment","getwid"),value:void 0!==d?d:"center",onChange:function(e){return r({horizontalAlign:e})},options:[{value:"left",label:Object(b.__)("Left","getwid")},{value:"center",label:Object(b.__)("Center","getwid")},{value:"right",label:Object(b.__)("Right","getwid")}]}))),"style"===U&&wp.element.createElement(C,null,wp.element.createElement(R,null,wp.element.createElement(N,{label:Object(b.__)("Overlay Opacity","getwid"),value:void 0!==f?f:0,onChange:function(e){return r({overlayOpacity:e})},min:0,max:100,step:1}),wp.element.createElement(y.a,{colorSettings:[{title:Object(b.__)("Text Color","getwid"),colors:{customColor:m},changeColor:function(e){return r({textColor:e})}},{title:Object(b.__)("Background Color","getwid"),colors:{customColor:g},changeColor:function(e){return r({overlayColor:e})}}]})),wp.element.createElement(R,{title:Object(b.__)("Padding","getwid"),initialOpen:!1},Object(_.f)(this))),"advanced"===U&&wp.element.createElement(C,null,wp.element.createElement(R,{title:Object(b.__)("Text Animation","getwid"),initialOpen:!0},function(){return wp.element.createElement(C,null,wp.element.createElement(v.a,{label:Object(b.__)("Animation Effect","getwid"),allowAnimation:["Entrance","Seeker"],value:void 0!==O?O:"",onChange:function(e){return r({contentAnimation:e})}}),wp.element.createElement(B,{label:Object(b.__)("Duration","getwid"),value:void 0!==j?j:"",onChange:function(e){return r({contentAnimationDuration:e})},options:[{value:"3000ms",label:Object(b.__)("Very Slow","getwid")},{value:"2000ms",label:Object(b.__)("Slow","getwid")},{value:"1500ms",label:Object(b.__)("Normal","getwid")},{value:"800ms",label:Object(b.__)("Fast","getwid")},{value:"400ms",label:Object(b.__)("Very Fast","getwid")}]}),wp.element.createElement(M,{label:Object(b.__)("Delay, ms","getwid"),value:void 0!==x?x.replace("ms",""):"",type:"number",min:0,onChange:function(e){e=parseInt(e),e=isNaN(e)?void 0:"".concat(e,"ms"),r({contentAnimationDelay:e})}}),wp.element.createElement(T,null,wp.element.createElement(P,{isLink:!0,onClick:K,disabled:!Q()},Object(b.__)("Reset","getwid"))))}()),wp.element.createElement(R,{title:Object(b.__)("Slider Settings","getwid"),initialOpen:!1},function(){return wp.element.createElement(C,null,wp.element.createElement(D,{label:Object(b.__)("Animation Effect","getwid"),selected:void 0!==I?I:"",options:[{value:"",label:Object(b.__)("Slide","getwid")},{value:"fade",label:Object(b.__)("Fade","getwid")}],onChange:function(e){return r({sliderAnimationEffect:e})}}),wp.element.createElement(A,{label:Object(b.__)("Enable Slideshow","getwid"),checked:L,onChange:function(){return r({sliderAutoplay:!L})}}),L&&wp.element.createElement(C,null,wp.element.createElement(A,{label:Object(b.__)("Pause On Hover","getwid"),checked:z,onChange:function(){return r({pauseOnHover:!z})}}),wp.element.createElement(M,{label:Object(b.__)("Slideshow Speed","getwid"),type:"number",value:void 0!==V?V:"",min:0,onChange:function(e){return r({sliderAutoplaySpeed:e})}})),wp.element.createElement(M,{label:Object(b.__)("Animation Speed","getwid"),type:"number",value:void 0!==F?F:"",min:0,onChange:function(e){return r({sliderAnimationSpeed:e})}}),wp.element.createElement(T,null,wp.element.createElement(P,{isLink:!0,onClick:q,disabled:!e.hasSliderSettings()},Object(b.__)("Reset","getwid"))),wp.element.createElement(D,{label:Object(b.__)("Arrows","getwid"),selected:G,options:[{value:"outside",label:Object(b.__)("Outside","getwid")},{value:"inside",label:Object(b.__)("Inside","getwid")},{value:"none",label:Object(b.__)("None","getwid")}],onChange:function(e){return r({sliderArrows:e})}}),wp.element.createElement(D,{label:Object(b.__)("Dots","getwid"),selected:W,options:[{value:"outside",label:Object(b.__)("Outside","getwid")},{value:"inside",label:Object(b.__)("Inside","getwid")},{value:"none",label:Object(b.__)("None","getwid")}],onChange:function(e){return r({sliderDots:e})}}))}())))}}]),t}(E);t.a=I},function(e,t){},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=w()(e);if(t()){var o=w()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f()(this,n)}}var o=n(9),i=n.n(o),a=n(7),l=n.n(a),c=n(2),s=n.n(c),u=n(4),p=n.n(u),d=n(5),m=n.n(d),g=n(6),f=n.n(g),b=n(3),w=n.n(b),h=(n(0),n(51)),v=(n.n(h),n(8)),y=n.n(v),_=wp.element.Component,k=wp.blockEditor||wp.editor,O=k.InnerBlocks,E=function(e){function t(){return s()(this,t),n.apply(this,arguments)}m()(t,e);var n=r(t);return p()(t,[{key:"render",value:function(){var e,t=this.props,n=t.baseClass,r=t.className,o=this.props.attributes,a=o.contentAnimation,c=o.contentAnimationDuration,s=o.contentAnimationDelay,u=o.sliderAnimationEffect,p=o.sliderAutoplay,d=this.props.attributes,m=d.pauseOnHover,g=d.sliderAutoplaySpeed,f=d.sliderAnimationSpeed,b=d.sliderArrays,w=d.sliderArrows,h=d.sliderDots,v={className:y()(r,"".concat(n,"--current-slide-").concat(1),(e={},l()(e,"has-arrows-".concat(w),void 0!=w),l()(e,"has-dots-".concat(h),void 0!=h),e)),"data-labels":b,"data-animation":void 0!==a?a:"","data-duration":void 0!==c?c:"1500ms","data-delay":void 0!==s?s:"0ms"},_={"data-slide-effect":u,"data-slide-autoplay":p,"data-slide-pause-on-hover":m,"data-slide-autoplay-speed":g,"data-slide-speed":f,"data-infinite":!0};return wp.element.createElement("div",v,wp.element.createElement("div",{className:"".concat(n,"__slides-wrapper")},wp.element.createElement("div",i()({className:"".concat(n,"__content")},_),wp.element.createElement(O.Content,null))))}}]),t}(_);t.a=E},function(e,t,n){"use strict";var r={slideCount:{type:"number",default:3},imageSize:{type:"string",default:"large"},align:{type:"string"},contentMaxWidth:{type:"number"},minHeight:{type:"string"},verticalAlign:{type:"string"},horizontalAlign:{type:"string"},paddingTop:{type:"string"},paddingBottom:{type:"string"},paddingLeft:{type:"string"},paddingRight:{type:"string"},textColor:{type:"string"},overlayColor:{type:"string"},overlayOpacity:{type:"number",default:"30"},contentAnimation:{type:"string",source:"attribute",selector:".wp-block-getwid-media-text-slider",attribute:"data-animation",default:"fadeIn"},contentAnimationDuration:{type:"string",source:"attribute",selector:".wp-block-getwid-media-text-slider",attribute:"data-duration",default:"1500ms"},contentAnimationDelay:{type:"string",source:"attribute",selector:".wp-block-getwid-media-text-slider",attribute:"data-delay",default:"0ms"},sliderAnimationEffect:{type:"string",source:"attribute",selector:".wp-block-getwid-media-text-slider__content",attribute:"data-slide-effect"},sliderAutoplay:{type:"boolean",default:!1},pauseOnHover:{type:"boolean",default:!0},sliderAutoplaySpeed:{type:"string",source:"attribute",selector:".wp-block-getwid-media-text-slider__content",attribute:"data-slide-autoplay-speed",default:5e3},sliderAnimationSpeed:{type:"string",source:"attribute",selector:".wp-block-getwid-media-text-slider__content",attribute:"slide-speed",default:1e3},sliderArrays:{type:"string",default:'[{"text":"Slide 1"},{"text":"Slide 2"},{"text":"Slide 3"}]'}};t.a=r},function(e,t){function n(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==l.return||l.return()}finally{if(o)throw i}}return n}e.exports=n},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=f()(e);if(t()){var o=f()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var o=n(9),i=n.n(o),a=n(2),l=n.n(a),c=n(4),s=n.n(c),u=n(5),p=n.n(u),d=n(6),m=n.n(d),g=n(3),f=n.n(g),b=(n(0),n(51)),w=(n.n(b),n(8)),h=n.n(w),v=wp.element.Component,y=wp.blockEditor||wp.editor,_=y.InnerBlocks,k=function(e){function t(){return l()(this,t),n.apply(this,arguments)}p()(t,e);var n=r(t);return s()(t,[{key:"stripStringRender",value:function(e){return e.toLowerCase().replace(/[^0-9a-z-]/g,"")}},{key:"render",value:function(){var e=this.props.attributes,t=e.contentAnimation,n=e.contentAnimationDuration,r=e.contentAnimationDelay,o=e.sliderAnimationEffect,a=e.sliderAutoplay,l=this.props.attributes,c=l.pauseOnHover,s=l.sliderAutoplaySpeed,u=l.sliderAnimationSpeed,p=this.props,d=p.baseClass,m=p.className,g=h()(m,"".concat(d,"--current-slide-").concat(1)),f={"data-animation":void 0!==t?t:"","data-duration":void 0!==n?n:"1500ms","data-delay":void 0!==r?r:"0ms"},b={"data-slide-effect":o,"data-slide-autoplay":a,"data-slide-pause-on-hover":c,"data-slide-autoplay-speed":s,"data-slide-speed":u,"data-infinite":!0};return wp.element.createElement("div",i()({className:g},f),wp.element.createElement("div",{className:"".concat(d,"__slides-wrapper")},wp.element.createElement("div",i()({className:"".concat(d,"__content")},b),wp.element.createElement(_.Content,null))))}}]),t}(v);t.a=k},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(n,!0).forEach(function(t){a()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var i=n(7),a=n.n(i),l=(n(0),n(55)),c=n(150),s=n(151),u=n(152),p=n(153),d=n(1),m=(n.n(d),n(49)),g=wp.blocks.registerBlockType,f="wp-block-getwid-media-text-slider-slide";g("getwid/media-text-slider-slide",{title:Object(d.__)("Slide","getwid"),icon:{src:"format-gallery"},keywords:[],category:"getwid-blocks",parent:["getwid/media-text-slider"],attributes:u.a,deprecated:[{attributes:p.a,migrate:function(e){return o(o({},e),{},{slideId:e.id})},save:function(e){return wp.element.createElement(s.a,o(o({},e),{},{baseClass:f}))}}],getEditWrapperProps:function(e){return{"data-slide":void 0!==e.slideId?e.slideId:e.id}},edit:function(e){return wp.element.createElement(m.a,null,function(t){var n=t.updateContentAttributes;return wp.element.createElement(l.b,o(o(o({},e),{updateContentAttributes:n}),{},{baseClass:f}))})},save:function(e){return wp.element.createElement(c.a,o(o({},e),{},{baseClass:f}))}})},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=m()(e);if(t()){var o=m()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p()(this,n)}}var o=n(2),i=n.n(o),a=n(4),l=n.n(a),c=n(5),s=n.n(c),u=n(6),p=n.n(u),d=n(3),m=n.n(d),g=(n(0),n(21)),f=n(1),b=(n.n(f),g.a.convertHorizontalAlignToStyle),w=g.a.convertVerticalAlignToStyle,h=window,v=(h.jQuery,wp.element.Component),y=wp.blockEditor||wp.editor,_=y.InnerBlocks,k=function(e){function t(){return i()(this,t),n.apply(this,arguments)}s()(t,e);var n=r(t);return l()(t,[{key:"render",value:function(){var e,t,n,r,o,i,a,l=this.props.baseClass,c=this.props.attributes,s=c.slideId,u=c.outerParent;if(void 0!==u.attributes){var p=u.attributes;e=p.paddingTop,t=p.paddingBottom,n=p.paddingLeft,r=p.paddingRight,o=p.minHeight,i=p.horizontalAlign,a=p.verticalAlign,p.contentMaxWidth}var d={};void 0!==u.attributes&&(d={paddingTop:e||null,paddingBottom:t||null,paddingLeft:n||null,paddingRight:r||null,minHeight:o||null,justifyContent:i?b(i):null,alignItems:a?w(a):null});var m={};return void 0!==u.attributes&&(m={minHeight:u.attributes.minHeight?u.attributes.minHeight:null}),wp.element.createElement("div",{style:m,className:"".concat(l," ").concat(l,"__content-wrapper slide-").concat(s)},wp.element.createElement("div",{style:d,className:"".concat(l,"__content")},wp.element.createElement(_.Content,null)))}}]),t}(v);t.a=k},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=m()(e);if(t()){var o=m()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p()(this,n)}}var o=n(2),i=n.n(o),a=n(4),l=n.n(a),c=n(5),s=n.n(c),u=n(6),p=n.n(u),d=n(3),m=n.n(d),g=(n(0),n(21)),f=n(1),b=(n.n(f),g.a.convertHorizontalAlignToStyle),w=g.a.convertVerticalAlignToStyle,h=window,v=(h.jQuery,wp.element.Component),y=wp.blockEditor||wp.editor,_=y.InnerBlocks,k=function(e){function t(){return i()(this,t),n.apply(this,arguments)}s()(t,e);var n=r(t);return l()(t,[{key:"render",value:function(){var e=this.props.baseClass,t=this.props.attributes,n=t.id,r=t.outerParent,o={paddingTop:void 0!==r&&void 0!==r.attributes.paddingTop?r.attributes.paddingTop:null,paddingBottom:void 0!==r&&void 0!==r.attributes.paddingBottom?r.attributes.paddingBottom:null,paddingLeft:void 0!==r&&void 0!==r.attributes.paddingLeft?r.attributes.paddingLeft:null,paddingRight:void 0!==r&&void 0!==r.attributes.paddingRight?r.attributes.paddingRight:null,justifyContent:void 0!==r&&void 0!==r.attributes.horizontalAlign?b(r.attributes.horizontalAlign):null,alignItems:void 0!==r&&void 0!==r.attributes.verticalAlign?w(r.attributes.verticalAlign):null},i={minHeight:void 0!==r&&void 0!==r.attributes.minHeight?r.attributes.minHeight:null};return wp.element.createElement("div",{style:i,className:"".concat(e," ").concat(e,"__content-wrapper slide-").concat(n)},wp.element.createElement("div",{style:o,className:"".concat(e,"__content")},wp.element.createElement(_.Content,null)))}}]),t}(v);t.a=k},function(e,t,n){"use strict";var r={slideId:{type:"number",default:1},outerParent:{type:"object",default:{}},mediaId:{type:"number"},url:{type:"string"}};t.a=r},function(e,t,n){"use strict";var r={id:{type:"number",default:1},outerParent:{type:"object"},mediaId:{type:"number"},url:{type:"string"}};t.a=r},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(n,!0).forEach(function(t){a()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var i=n(7),a=n.n(i),l=(n(0),n(155)),c=n(158),s=n(159),u=n(160),p=n(55),d=n(1),m=(n.n(d),wp.blocks.registerBlockType),g="wp-block-getwid-media-text-slider-slide-content";m("getwid/media-text-slider-slide-content",{title:Object(d.__)("Image","getwid"),category:"getwid-blocks",parent:["getwid/media-text-slider-slide"],icon:{src:"format-image"},keywords:[],supports:{html:!1},deprecated:[{attributes:u.a,save:function(e){return wp.element.createElement(s.a,o(o({},e),{},{baseClass:g}))}}],attributes:u.a,edit:function(e){return wp.element.createElement(p.a,null,function(t){var n=t.updateContentAttributes;return wp.element.createElement(l.a,o(o(o({},e),{updateContentAttributes:n}),{},{baseClass:g}))})},save:function(e){return wp.element.createElement(c.a,o(o({},e),{},{baseClass:g}))}})},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(n,!0).forEach(function(t){l()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function i(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=_()(e);if(t()){var o=_()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return v()(this,n)}}var a=n(7),l=n.n(a),c=n(9),s=n.n(c),u=n(2),p=n.n(u),d=n(4),m=n.n(d),g=n(11),f=n.n(g),b=n(5),w=n.n(b),h=n(6),v=n.n(h),y=n(3),_=n.n(y),k=(n(0),n(156)),O=n(157),E=n(56),C=(n.n(E),n(1)),j=(n.n(C),n(8)),S=n.n(j),x=n(10),P=(n.n(x),wp.data.withSelect),T=wp.compose.compose,R=wp.blockEditor||wp.editor,N=R.InnerBlocks,A=wp.element,B=A.Component,D=A.Fragment,M=wp.components.TextareaControl,I=[["core/heading",{placeholder:Object(C.__)("Write heading…","getwid")}],["core/paragraph",{placeholder:Object(C.__)("Write text…","getwid")}]],L=function(e){function t(){var e;return p()(this,t),e=n.apply(this,arguments),e.onSelectMedia=e.onSelectMedia.bind(f()(e)),e}w()(t,e);var n=i(t);return m()(t,[{key:"onSelectMedia",value:function(e){var t,n,r,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",a=this.props.attributes.innerParent,l=this.props.setAttributes;if(e){if(t=void 0!==e.media_type&&e.media_type?"image"===e.media_type?"image":"video":e.type,"image"===t&&(r=o?i:void 0!==a&&void 0!==a.attributes.imageSize?a.attributes.imageSize:"full",n=Object(x.get)(e,["sizes",r,"url"])||Object(x.get)(e,["media_details","sizes",r,"source_url"])||e.url||e.source_url),o)return n;l({mediaAlt:e.alt,mediaId:e.id,mediaUrl:n||e.url||e.source_url,mediaType:t})}}},{key:"componentWillReceiveProps",value:function(e){var t=this.props.imgObj,n=e.attributes.innerParent;if(t&&n){var r=this.onSelectMedia,o=n.attributes.imageSize;void 0!==this.props.attributes.innerParent&&(Object(x.isEqual)(o,this.props.attributes.innerParent.attributes.imageSize)||(e.attributes.mediaUrl=r(t,!0,o)))}}},{key:"renderMediaArea",value:function(){var e=this.props,t=e.attributes,n=e.baseClass,r=e.setAttributes,o=t.mediaAlt,i=t.mediaId,a=t.mediaType,l=t.mediaUrl,c=t.innerParent;return a||r({mediaType:"image"}),wp.element.createElement(O.a,s()({className:"".concat(n,"__media"),onSelectMedia:this.onSelectMedia},{mediaAlt:o,mediaId:i,mediaType:a,mediaUrl:l,innerParent:c}))}},{key:"componentDidUpdate",value:function(e,t){var n=this.props.imgObj,r=e.attributes.innerParent;if(r&&n){var o=this.onSelectMedia,i=r.attributes.imageSize;Object(x.isEqual)(i,this.props.attributes.innerParent.attributes.imageSize)||o(n)}r||this.props.updateContentAttributes(this.props.clientId)}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.isSelected,r=e.setAttributes,i=this.props.attributes,a=i.mediaAlt,l=i.mediaUrl,c=i.mediaType,u=i.innerParent,p=S()(t,{"is-selected":n}),d=function(e){r({mediaAlt:e})},m=(wp.element.createElement(D,null,"image"===c&&wp.element.createElement(M,{value:a,onChange:d})),{color:void 0!=u&&void 0!==u.attributes.textColor?u.attributes.textColor:null});return wp.element.createElement(D,null,wp.element.createElement(k.a,s()({},o(o(o({},this.props),{setAttributes:r}),{onSelectMedia:this.onSelectMedia}),{key:"inspector"})),wp.element.createElement("div",{className:p},this.renderMediaArea(),wp.element.createElement("div",{className:"".concat(t,"__content"),style:m},wp.element.createElement("div",{className:"".concat(t,"__content-wrapper")},l&&wp.element.createElement(N,{templateLock:!1,template:I,templateInsertUpdatesSelection:!1})))))}}]),t}(B);t.a=T([P(function(e,t){var n=e("core"),r=n.getMedia,o=t.attributes.mediaId;return{imgObj:o?r(o):null}})])(L)},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=m()(e);if(t()){var o=m()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p()(this,n)}}var o=n(2),i=n.n(o),a=n(4),l=n.n(a),c=n(5),s=n.n(c),u=n(6),p=n.n(u),d=n(3),m=n.n(d),g=(n(0),n(1)),f=(n.n(g),n(14)),b=wp.element.Component,w=wp.blockEditor||wp.editor,h=w.InspectorControls,v=wp.components.PanelBody,y=function(e){function t(e){return i()(this,t),n.apply(this,arguments)}s()(t,e);var n=r(t);return l()(t,[{key:"render",value:function(){var e=this.props.attributes,t=e.mediaId,n=e.mediaUrl,r=this.props,o=r.setAttributes,i=r.onSelectMedia,a=r.clientId;return(0,wp.data.select)("core/block-editor").getBlock(a)?wp.element.createElement(h,{key:"inspector"},wp.element.createElement(v,{title:Object(g.__)("Image","getwid"),initialOpen:!0},wp.element.createElement(f.e,{label:Object(g.__)("Image","getwid"),removeButton:!1,url:n,id:t,onSelectMedia:i,onRemoveMedia:function(){return o({mediaUrl:void 0,mediaId:void 0})}}))):wp.element.createElement(h,null)}}]),t}(b);t.a=y},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=m()(e);if(t()){var o=m()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p()(this,n)}}n.d(t,"a",function(){return S});var o=n(2),i=n.n(o),a=n(4),l=n.n(a),c=n(5),s=n.n(c),u=n(6),p=n.n(u),d=n(3),m=n.n(d),g=(n(0),n(1)),f=(n.n(g),window),b=(f.jQuery,wp.element),w=b.Component,h=b.Fragment,v=wp.components,y=v.ToolbarButton,_=v.ToolbarGroup,k=wp.blockEditor||wp.editor,O=k.BlockControls,E=k.MediaPlaceholder,C=k.MediaUpload,j=["image"],S=function(e){function t(){return i()(this,t),n.apply(this,arguments)}s()(t,e);var n=r(t);return l()(t,[{key:"renderToolbarEditButton",value:function(){var e=this.props,t=e.mediaId,n=e.onSelectMedia;return wp.element.createElement(O,null,wp.element.createElement(_,null,wp.element.createElement(C,{onSelect:n,allowedTypes:j,value:t,render:function(e){var t=e.open;return wp.element.createElement(y,{className:"components-toolbar__control",label:Object(g.__)("Edit Media","getwid"),icon:"edit",onClick:t})}})))}},{key:"renderImage",value:function(){var e=this.props,t=e.mediaAlt,n=e.mediaUrl,r=e.innerParent,o=e.className,i={backgroundColor:void 0!==r&&void 0!==r.attributes.overlayColor?r.attributes.overlayColor:null,opacity:void 0!==r&&void 0!==r.attributes.overlayOpacity?r.attributes.overlayOpacity/100:null};return wp.element.createElement(h,null,this.renderToolbarEditButton(),wp.element.createElement("figure",{className:o},wp.element.createElement("img",{className:"".concat("wp-block-getwid-media-text-slider-slide-content","__image"),src:n,alt:t}),wp.element.createElement("div",{style:i,className:"".concat(o,"-overlay")})))}},{key:"renderVideo",value:function(){var e=this.props,t=e.mediaUrl,n=e.className;return wp.element.createElement(h,null,this.renderToolbarEditButton(),wp.element.createElement("figure",{className:n},wp.element.createElement("video",{controls:!0,src:t})))}},{key:"renderPlaceholder",value:function(){var e=this.props,t=e.onSelectMedia,n=e.className;return wp.element.createElement(E,{icon:"format-image",labels:{title:Object(g.__)("Image","getwid")},accept:"image/*",className:n,onSelect:t,allowedTypes:j})}},{key:"render",value:function(){var e=this.props,t=e.mediaUrl,n=e.mediaType;if(n&&t){var r=null;switch(n){case"image":r=this.renderImage();break;case"video":r=this.renderVideo()}return wp.element.createElement(h,null,r)}return this.renderPlaceholder()}}]),t}(w)},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=m()(e);if(t()){var o=m()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p()(this,n)}}var o=n(2),i=n.n(o),a=n(4),l=n.n(a),c=n(5),s=n.n(c),u=n(6),p=n.n(u),d=n(3),m=n.n(d),g=(n(0),n(57)),f=(n.n(g),n(1)),b=(n.n(f),n(10)),w=(n.n(b),window),h=(w.jQuery,wp.blockEditor||wp.editor),v=h.InnerBlocks,y=wp.element.Component,_=function(e){function t(){return i()(this,t),n.apply(this,arguments)}s()(t,e);var n=r(t);return l()(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.mediaAlt,r=t.mediaType,o=t.mediaUrl,i=t.mediaId,a=t.innerParent,l=e.baseClass,c={image:function(){return wp.element.createElement("img",{src:o,alt:n,className:"".concat(l,"__image")+(i&&"image"===r?" wp-image-".concat(i):"")})},video:function(){return wp.element.createElement("video",{controls:!0,src:o})}},s={backgroundColor:void 0!==a&&void 0!==a.attributes.overlayColor?a.attributes.overlayColor:null,opacity:void 0!==a&&void 0!==a.attributes.overlayOpacity?a.attributes.overlayOpacity/100:null},u={maxWidth:void 0!==a&&void 0!==a.attributes.contentMaxWidth?a.attributes.contentMaxWidth:null},p={color:void 0!==a&&void 0!==a.attributes.textColor?a.attributes.textColor:null};return wp.element.createElement("div",{style:u,className:l},wp.element.createElement("figure",{className:"".concat(l,"__media")},(c[r]||b.noop)(),wp.element.createElement("div",{className:"".concat(l,"__media-overlay"),style:s})),wp.element.createElement("div",{className:"".concat(l,"__content"),style:p},wp.element.createElement("div",{className:"".concat(l,"__content-wrapper")},wp.element.createElement(v.Content,null))))}}]),t}(y);t.a=_},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=m()(e);if(t()){var o=m()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p()(this,n)}}var o=n(2),i=n.n(o),a=n(4),l=n.n(a),c=n(5),s=n.n(c),u=n(6),p=n.n(u),d=n(3),m=n.n(d),g=(n(0),n(57)),f=(n.n(g),n(1)),b=(n.n(f),n(10)),w=(n.n(b),window),h=(w.jQuery,wp.blockEditor||wp.editor),v=h.InnerBlocks,y=wp.element.Component,_=function(e){function t(){return i()(this,t),n.apply(this,arguments)}s()(t,e);var n=r(t);return l()(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.mediaAlt,r=t.mediaType,o=t.mediaUrl,i=t.mediaId,a=t.innerParent,l=e.baseClass,c={image:function(){return wp.element.createElement("img",{src:o,alt:n,className:"".concat(l,"__image")+(i&&"image"===r?" wp-image-".concat(i):null)})},video:function(){return wp.element.createElement("video",{controls:!0,src:o})}},s={backgroundColor:void 0!==a&&void 0!==a.attributes.overlayColor?a.attributes.overlayColor:null,opacity:void 0!==a&&void 0!==a.attributes.overlayOpacity?a.attributes.overlayOpacity/100:null},u={maxWidth:void 0!==a&&void 0!==a.attributes.contentMaxWidth?a.attributes.contentMaxWidth:null},p={color:void 0!==a&&void 0!==a.attributes.textColor?a.attributes.textColor:null};return wp.element.createElement("div",{style:u,className:l},wp.element.createElement("figure",{className:"".concat(l,"__media")},(c[r]||b.noop)(),wp.element.createElement("div",{className:"".concat(l,"__media-overlay"),style:s})),wp.element.createElement("div",{className:"".concat(l,"__content"),style:p},wp.element.createElement("div",{className:"".concat(l,"__content-wrapper")},wp.element.createElement(v.Content,null))))}}]),t}(y);t.a=_},function(e,t,n){"use strict";var r={mediaAlt:{type:"string",source:"attribute",selector:"figure img",attribute:"alt",default:""},mediaId:{type:"number"},mediaUrl:{type:"string",source:"attribute",selector:"figure video,figure img",attribute:"src"},mediaType:{type:"string"},innerParent:{type:"object"}};t.a=r},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(n,!0).forEach(function(t){a()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var i=n(7),a=n.n(i),l=(n(0),n(1)),c=(n.n(l),n(10)),s=(n.n(c),n(162)),u=n(166),p=n(167),d=n(168),m=n(169),g=n(37),f=n(12),b=n(170),w=(n.n(b),wp.blocks),h=w.registerBlockType,v=w.createBlock,y=["center","wide","full"],_="wp-block-getwid-images-slider",k={attributes:g.a,isEligible:function(e,t){return!0},migrate:function(e){var t=e.sliderArrows,n=e.sliderDots;return o(o({},e),{sliderArrows:Object(c.isEqual)(t,"ouside")?"outside":t,sliderDots:Object(c.isEqual)(n,"ouside")?"outside":n})}};h("getwid/images-slider",o(o({title:Object(l.__)("Image Slider","getwid"),category:"getwid-blocks",icon:wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 24 24"},wp.element.createElement("path",{d:"M20,8V4h-4v2h2v1v1v2v1v7h-7h-1H8H7H6v-2H4v4h4v4h16V8H20z M22,22H10v-2h10V10h2V22z"}),wp.element.createElement("path",{d:"M0,0v16h16V0H0z M14,2v8.19l-1.61-1.6l-2.16,2.15l-3.7-3.69L2,11.59V2H14z M2.41,14l4.13-4.13l3.7,3.69l2.16-2.15L14,13.02 V14H2.41z"}),wp.element.createElement("circle",{cx:"10",cy:"5.5",r:"1.5"})),keywords:[Object(l.__)("gallery","getwid"),Object(l.__)("carousel","getwid"),Object(l.__)("photo","getwid")],supports:{html:!1,inserter:!Getwid.disabled_blocks.includes("getwid/images-slider")},deprecated:[{attributes:o(o({},g.a),{},{imageCrop:{type:"boolean",default:!0}}),migrate:function(e){return e.imageCrop?e.imageFit="fill":e.imageFit="default",e},save:function(e){return wp.element.createElement(m.a,o(o({},e),{},{baseClass:_}))}},o(o({},k),{},{save:p.a}),o(o({},k),{},{save:function(e){return wp.element.createElement(d.a,o(o({},e),{},{baseClass:_}))}})],transforms:{from:[{type:"block",isMultiBlock:!0,blocks:["core/image"],transform:function(e){var t=e[0].align;t=Object(c.every)(e,["align",t])?t:void 0;var n=Object(c.filter)(e,function(e){var t=e.id,n=e.url;return t&&n});return v("getwid/images-slider",{images:n.map(function(e){return{id:e.id,url:e.url,alt:e.alt,caption:e.caption}}),ids:n.map(function(e){return e.id}),align:t})}},{type:"block",blocks:["core/gallery"],transform:function(e){return v("getwid/images-slider",e)}}],to:[{type:"block",blocks:["core/gallery"],transform:function(e){return v("core/gallery",e)}},{type:"block",blocks:["getwid/images-stack"],transform:function(e){return v("getwid/images-stack",e)}},{type:"block",blocks:["core/image"],transform:function(e){var t=e.images,n=e.align;return t.length>0?t.map(function(e){var t=e.id,r=e.url,o=e.alt,i=e.caption;return v("core/image",{id:t,url:r,alt:o,caption:i,align:n})}):v("core/image",{align:n})}}]},attributes:g.a,getEditWrapperProps:function(e){var t=e.align;if(-1!==y.indexOf(t))return{"data-align":t}}},Object(f.b)("getwid/images-slider",s.a)),{},{save:function(e){return wp.element.createElement(u.a,o(o({},e),{},{baseClass:_}))}}))},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(n,!0).forEach(function(t){m()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function i(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=C()(e);if(t()){var o=C()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return O()(this,n)}}var a=n(9),l=n.n(a),c=n(33),s=n.n(c),u=n(15),p=n.n(u),d=n(7),m=n.n(d),g=n(2),f=n.n(g),b=n(4),w=n.n(b),h=n(11),v=n.n(h),y=n(5),_=n.n(y),k=n(6),O=n.n(k),E=n(3),C=n.n(E),j=(n(0),n(1)),S=(n.n(j),n(8)),x=n.n(S),P=n(10),T=(n.n(P),n(37)),R=n(163),N=n(164),A=n(165),B=(n.n(A),wp.compose.compose),D=wp.data.withSelect,M=wp.element,I=M.Component,L=M.Fragment,z=wp.components,V=z.ToolbarButton,F=z.ToggleControl,H=z.DropZone,G=z.Toolbar,W=(z.ToolbarItem,z.Dashicon),U=z.TextControl,q=wp.blockEditor||wp.editor,Q=q.BlockControls,K=q.MediaUpload,Y=q.MediaPlaceholder,J=q.mediaUpload,$=q.BlockAlignmentToolbar,Z=q.BlockIcon,X=q.URLInput,ee=window,te=ee.jQuery,ne=["wide","full"],re=["image"],oe="wp-block-getwid-images-slider",ie=function(e,t,n){var r=n.attributes.images,o=Object(P.pick)(e,["id","link"]);return o.original_url=e.url||e.source_url,o.alt=e.alt||e.alt_text,o.url=Object(P.get)(e,["sizes",t,"url"])||Object(P.get)(e,["media_details","sizes",t,"source_url"])||e.url,te.each(r,function(t,n){if(n.id==e.id)return o.custom_link=n.custom_link,!1}),"string"==typeof e.caption||void 0===e.caption?o.caption=e.caption:o.caption=e.caption.raw,o},ae=function(e){function t(e){var r;return f()(this,t),r=n.apply(this,arguments),r.changeState=r.changeState.bind(v()(r)),r.getState=r.getState.bind(v()(r)),r.onSelectImages=r.onSelectImages.bind(v()(r)),r.setImageAttributes=r.setImageAttributes.bind(v()(r)),r.addFiles=r.addFiles.bind(v()(r)),r.uploadFromFiles=r.uploadFromFiles.bind(v()(r)),r.setAttributes=r.setAttributes.bind(v()(r)),r.onSetNewTab=r.onSetNewTab.bind(v()(r)),r.state={isUpdate:!1},r}_()(t,e);var n=i(t);return w()(t,[{key:"onSetNewTab",value:function(e,t){var n=this.props.attributes.images,r=e?"_blank":void 0,o=n[t].custom_link_rel;r&&!n[t].custom_link_rel?o="noreferrer noopener":r||"noreferrer noopener"!==n[t].custom_link_rel||(o=void 0),this.setImageAttributes(t,{custom_link_target:r,custom_link_rel:o})}},{key:"changeState",value:function(e,t){this.setState(m()({},e,t))}},{key:"getState",value:function(e){return this.state[e]}},{key:"setAttributes",value:function(e){if(e.ids)throw new Error('The "ids" attribute should not be changed directly. It is managed automatically when "images" attribute changes');e.images&&(e=o(o({},e),{},{ids:Object(P.map)(e.images,"id")})),this.props.setAttributes(e)}},{key:"checkChangeImageOrder",value:function(e,t){var n=Object(P.sortBy)(t.attributes.images,function(e){return e.id});n=n.map(function(e){return!!e.id&&e.id.toString()});var r=Object(P.sortBy)(e,function(e){return e.id});return r=r.map(function(e){return!!e.id&&e.id.toString()}),this.flag=!1,Object(P.isEqual)(n,r)&&(this.flag=!0),this.flag}},{key:"onSelectImages",value:function(e){var t=this,n=this.props.setAttributes,r=this.props.attributes.imageSize;["full","large","medium","thumbnail"].includes(r)||(r=T.a.imageSize.default,n({imageSize:r})),this.checkChangeImageOrder(e,this.props),this.setAttributes({images:e.map(function(e){return ie(e,r,t.props)})})}},{key:"setImageAttributes",value:function(e,t){var n=this.props.attributes.images,r=this.setAttributes;if(n[e]){r({images:[].concat(p()(n.slice(0,e)),[o(o({},n[e]),t)],p()(n.slice(e+1)))})}}},{key:"uploadFromFiles",value:function(e){this.addFiles(e.target.files)}},{key:"addFiles",value:function(e){var t=this,n=this.props.attributes.imageSize,r=this.setAttributes,o=this.props.attributes.images||[];["full","large","medium","thumbnail"].includes(n)||(s()("imageSize"),n=T.a.imageSize.default,r({imageSize:n})),J({allowedTypes:re,filesList:e,onFileChange:function(e){var i=e.map(function(e){return ie(e,n,t.props)});r({images:o.concat(i)})}})}},{key:"destroySlider",value:function(){var e=this.props.clientId,t=te("[data-block='".concat(e,"']")),n=te(".".concat(oe,"__wrapper"),t);n.hasClass("slick-initialized")&&n.slick("unslick")}},{key:"initSlider",value:function(){var e=this.props.clientId,t=this.props.attributes,n=t.sliderAutoplay,r=t.sliderAutoplaySpeed,o=t.sliderInfinite,i=t.linkTo,a=this.props.attributes,l=a.sliderAnimationEffect,c=a.sliderSlidesToShow,s=a.sliderSlidesToScroll,u=a.slideHeight,p=this.props.attributes,d=p.sliderAnimationSpeed,m=p.sliderCenterMode,g=p.sliderVariableWidth,f=p.sliderArrows,b=p.sliderDots,w=te("[data-block='".concat(e,"']")),h=te(".".concat(oe,"__wrapper"),w);h.length&&"function"==typeof h.imagesLoaded&&h.imagesLoaded().done(function(e){h.not(".slick-initialized").slick({arrows:"none"!=f,dots:"none"!=b,fade:"fade"==l,slidesToShow:"fade"==l?1:parseInt(c),slidesToScroll:parseInt(s),autoplaySpeed:parseInt(r),speed:parseInt(d),infinite:"custom"!=i&&o,autoplay:n,draggable:"custom"!=i,centerMode:m,variableWidth:g,pauseOnHover:!0,rows:0}),u&&te(".".concat(oe,"__item"),w).css("height",u)})}},{key:"componentDidMount",value:function(){this.props.attributes.images.length&&this.initSlider()}},{key:"checkURLsChanges",value:function(e){var t=!1,n=this.props.attributes.images;return n&&n.length&&e.attributes.images.length&&te.each(n,function(n,r){(void 0!==e.attributes.images[n]&&e.attributes.images[n].custom_link!=r.custom_link||void 0!==e.attributes.images[n]&&e.attributes.images[n].custom_link_target!=r.custom_link_target||void 0!==e.attributes.images[n]&&e.attributes.images[n].custom_link_rel!=r.custom_link_rel)&&(t=!0)}),t}},{key:"componentWillUpdate",value:function(e,t){var n=!this.flag&&this.checkURLsChanges(e);Object(P.isEqual)(e.attributes,this.props.attributes)||n||this.destroySlider()}},{key:"componentDidUpdate",value:function(e){var t=!this.flag&&this.checkURLsChanges(e);Object(P.isEqual)(e.attributes,this.props.attributes)||t||(this.initSlider(),this.flag=!1)}},{key:"render",value:function(){var e,t=this,n=this.props,r=n.setAttributes,i=n.isSelected,a=n.className,c=this.props.attributes,s=c.sliderSpacing,u=c.sliderArrows,p=c.sliderDots,d=c.linkTo,g=this.props.attributes,f=g.align,b=g.images,w=g.imageFit,h=g.showCaption,v=g.captionStyle,y=g.captionPosition,_=g.imageAlignment,k=g.sliderSlidesToShow,O=this.onSelectImages,E=this.getState,C=this.changeState,S=this.addFiles,T=wp.element.createElement(H,{onFilesDrop:S}),A=wp.element.createElement(L,null,wp.element.createElement(Q,null,wp.element.createElement($,{controls:ne,value:f,onChange:function(e){return r({align:e})}}),!!b.length&&wp.element.createElement(G,null,wp.element.createElement(K,{onSelect:O,allowedTypes:re,multiple:!0,gallery:!0,value:b.map(function(e){return!!e.id&&e.id}),render:function(e){var t=e.open;return wp.element.createElement(V,{className:"components-toolbar__control",label:Object(j.__)("Edit Slider","getwid"),icon:"edit",onClick:t})}}))));if(0===b.length)return wp.element.createElement(L,null,A,wp.element.createElement(Y,{icon:"format-gallery",className:oe,labels:{title:Object(j.__)("Image Slider","getwid"),instructions:Object(j.__)("Drag images, upload new ones or select files from your library.","getwid")},onSelect:O,accept:"image/*",allowedTypes:re,multiple:!0}));var B=x()(a,"has-arrows-".concat(u),"has-dots-".concat(p),(e={},m()(e,"has-captions",1==h),m()(e,"captions-style-".concat(v),1==h&&"underneath"!==y),m()(e,"captions-".concat(y),1==h),m()(e,"is-carousel",k>1),m()(e,"has-slides-gap-".concat(s),k>1),m()(e,"has-images-".concat(_),_),m()(e,"is-active",i),m()(e,"has-cropped-images","fill"===w),m()(e,"has-fitted-images","fit"===w),e),f?"align".concat(f):null),D=!!b.length,M=D&&Object(P.some)(b,function(e){return e.id});return wp.element.createElement(L,null,wp.element.createElement("div",{className:B},T,wp.element.createElement("div",{className:"".concat(oe,"__wrapper")},function(){if(b.length)return b.map(function(e,n){return wp.element.createElement(L,null,wp.element.createElement("div",{className:"".concat(oe,"__item"),key:e.id||e.url},wp.element.createElement(N.a,{showCaption:h,captionStyle:v,captionPosition:y,original_url:e.original_url,isSelected:i,url:e.url,alt:e.alt,caption:e.caption,id:e.id,custom_link:e.custom_link,custom_link_target:e.custom_link_target,custom_link_rel:e.custom_link_rel,setAttributes:function(e){return t.setImageAttributes(n,e)}}),"custom"==d&&wp.element.createElement(L,null,wp.element.createElement("div",{className:"".concat(oe,"__url-field-wrapper")},wp.element.createElement("div",{className:"".concat(oe,"__url-field-container")},wp.element.createElement(W,{icon:"admin-links"}),wp.element.createElement(X,{className:"".concat(oe,"__url-field has-border"),autoFocus:!0,value:e.custom_link?e.custom_link:"",onChange:function(e){t.setImageAttributes(n,{custom_link:e})}})),wp.element.createElement("div",{className:"".concat(oe,"__url-rel-container")},wp.element.createElement(F,{className:"".concat(oe,"__url-toggle"),label:Object(j.__)("New Tab","getwid"),onChange:function(e){t.onSetNewTab(e,n)},checked:"_blank"===e.custom_link_target}),wp.element.createElement(U,{className:"".concat(oe,"__url-rel"),placeholder:Object(j.__)("Link Rel","getwid"),value:e.custom_link_rel||"",onChange:function(e){t.setImageAttributes(n,{custom_link_rel:e})}}))))))})}()),i&&wp.element.createElement(Y,{addToGallery:M,isAppender:D,className:"components-form-file-upload",disableMediaButtons:D&&!i,icon:!D&&wp.element.createElement(Z,{icon:icon}),labels:{title:!D&&Object(j.__)("Gallery"),instructions:!D&&Object(j.__)("Drag images, upload new ones or select files from your library.")},onSelect:O,accept:"image/*",allowedTypes:re,multiple:!0,value:M?b:void 0})),A,wp.element.createElement(R.a,l()({},o(o({},this.props),{},{pickRelevantMediaFiles:ie,changeState:C,getState:E}),{key:"inspector"})))}}]),t}(I);t.a=B([D(function(e,t){var n=e("core"),r=n.getMedia,o=t.attributes.ids;if(void 0!==o)return{imgObj:o?o.map(function(e){return r(e)}):null}})])(ae)},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=v()(e);if(t()){var o=v()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return w()(this,n)}}var o=n(7),i=n.n(o),a=n(13),l=n.n(a),c=n(2),s=n.n(c),u=n(4),p=n.n(u),d=n(11),m=n.n(d),g=n(5),f=n.n(g),b=n(6),w=n.n(b),h=n(3),v=n.n(h),y=(n(0),n(37)),_=n(14),k=n(19),O=n(1),E=(n.n(O),wp.element),C=E.Component,j=E.Fragment,S=wp.blockEditor||wp.editor,x=S.InspectorControls,P=wp.components,T=P.Button,R=P.BaseControl,N=P.PanelBody,A=P.ToggleControl,B=P.SelectControl,D=P.RadioControl,M=P.TextControl,I=function(e){function t(e){var r;return s()(this,t),r=n.apply(this,arguments),r.changeState=r.changeState.bind(m()(r)),r.state={tabName:"general"},r}f()(t,e);var n=r(t);return p()(t,[{key:"changeState",value:function(e,t){"object"==l()(e)?this.setState(e):"string"==typeof e&&this.setState(i()({},e,t))}},{key:"hasSliderSettings",value:function(){var e=this.props.attributes,t=e.sliderSlidesToShow,n=e.sliderSlidesToShowLaptop,r=e.sliderSlidesToShowTablet,o=e.sliderSlidesToShowMobile,i=e.sliderSlidesToScroll,a=e.sliderAutoplay,l=e.sliderAnimationEffect,c=this.props.attributes,s=c.sliderAutoplaySpeed,u=c.sliderInfinite,p=c.sliderAnimationSpeed,d=c.sliderCenterMode,m=c.sliderVariableWidth,g=c.sliderSpacing;return t!=y.a.sliderSlidesToShow.default||n!=y.a.sliderSlidesToShowLaptop.default||r!=y.a.sliderSlidesToShowTablet.default||o!=y.a.sliderSlidesToShowMobile.default||i!=y.a.sliderSlidesToScroll.default||a!=y.a.sliderAutoplay.default||l!=y.a.sliderAnimationEffect.default||s!=y.a.sliderAutoplaySpeed.default||u!=y.a.sliderInfinite.default||p!=y.a.sliderAnimationSpeed.default||d!=y.a.sliderCenterMode.default||m!=y.a.sliderVariableWidth.default||g!=y.a.sliderSpacing.default}},{key:"render",value:function(){var e=this,t=this.props,n=t.attributes,r=n.images,o=n.imageSize,i=n.imageFit,a=n.showCaption,l=n.captionStyle,c=n.captionPosition,s=n.linkTo,u=n.imageAlignment,p=n.sliderAnimationEffect,d=n.sliderSlidesToShow,m=n.sliderSlidesToShowLaptop,g=n.sliderSlidesToShowTablet,f=n.sliderSlidesToShowMobile,b=n.sliderSlidesToScroll,w=n.sliderAutoplay,h=n.sliderAutoplaySpeed,v=n.sliderInfinite,E=n.sliderAnimationSpeed,C=n.sliderCenterMode,S=n.sliderVariableWidth,P=n.sliderSpacing,I=n.sliderArrows,L=n.sliderDots,z=t.setAttributes,V=t.pickRelevantMediaFiles,F=t.imgObj,H=function(t){F.some(function(e){return void 0===e})||z({imageSize:t,images:F.map(function(n){return V(n,t,e.props)})})},G=function(){z({sliderSlidesToShow:y.a.sliderSlidesToShow.default,sliderSlidesToShowLaptop:y.a.sliderSlidesToShowLaptop.default,sliderSlidesToShowTablet:y.a.sliderSlidesToShowTablet.default,sliderSlidesToShowMobile:y.a.sliderSlidesToShowMobile.default,sliderSlidesToScroll:y.a.sliderSlidesToScroll.default,sliderAutoplay:y.a.sliderAutoplay.default,sliderAnimationEffect:y.a.sliderAnimationEffect.default,sliderAutoplaySpeed:y.a.sliderAutoplaySpeed.default,sliderInfinite:y.a.sliderInfinite.default,sliderAnimationSpeed:y.a.sliderAnimationSpeed.default,sliderCenterMode:y.a.sliderCenterMode.default,sliderVariableWidth:y.a.sliderVariableWidth.default,sliderSpacing:y.a.sliderSpacing.default})},W=this.state.tabName,U=this.changeState;return wp.element.createElement(x,null,wp.element.createElement(k.a,{state:W,stateName:"tabName",onChangeTab:U,tabs:["general","advanced"]}),"general"===W&&wp.element.createElement(j,null,wp.element.createElement(N,{initialOpen:!0},0!=F.length&&wp.element.createElement(B,{label:Object(O.__)("Image Size","getwid"),help:Object(O.__)("For images from Media Library only.","getwid"),value:o,onChange:H,options:Getwid.settings.image_sizes}),wp.element.createElement(B,{label:Object(O.__)("Image Fit","getwid"),value:i,onChange:function(e){z({imageFit:e}),"default"!==e&&"underneath"===c&&z({captionPosition:"bottom-center"})},options:[{value:"default",label:Object(O.__)("Default","getwid")},{value:"fill",label:Object(O.__)("Fill","getwid")},{value:"fit",label:Object(O.__)("Fit","getwid")}]}),wp.element.createElement(A,{label:Object(O.__)("Show Caption","getwid"),checked:a,onChange:function(){F.some(function(e){return void 0===e})||z({showCaption:!a,images:F.map(function(t){return V(t,o,e.props)})})}}),a&&wp.element.createElement(j,null,"underneath"!==c&&wp.element.createElement(B,{label:Object(O.__)("Caption Style","getwid"),value:l,onChange:function(e){return z({captionStyle:e})},options:[{value:"light",label:Object(O.__)("Light","getwid")},{value:"dark",label:Object(O.__)("Dark","getwid")}]}),wp.element.createElement(B,{label:Object(O.__)("Caption Position","getwid"),value:void 0!==c?c:"",onChange:function(e){z({captionPosition:e})},options:[{value:"top-left",label:Object(O.__)("Top Left","getwid")},{value:"top-center",label:Object(O.__)("Top Center","getwid")},{value:"top-right",label:Object(O.__)("Top Right","getwid")},{value:"bottom-left",label:Object(O.__)("Bottom Left","getwid")},{value:"bottom-center",label:Object(O.__)("Bottom Center","getwid")},{value:"bottom-right",label:Object(O.__)("Bottom Right","getwid")},{value:"underneath",label:Object(O.__)("Underneath","getwid"),disabled:"default"!==i}]})),wp.element.createElement(B,{label:Object(O.__)("Link to","getwid"),value:s,onChange:function(e){return z({linkTo:e})},options:[{value:"none",label:Object(O.__)("None","getwid")},{value:"attachment",label:Object(O.__)("Attachment Page","getwid")},{value:"media",label:Object(O.__)("Media File","getwid")},{value:"custom",label:Object(O.__)("Custom link per slide","getwid")}]}),Object(_.i)(this),wp.element.createElement(A,{label:Object(O.__)("Enable Slideshow","getwid"),checked:w,onChange:function(){z({sliderAutoplay:!w})}}),!!w&&wp.element.createElement(M,{label:Object(O.__)("Slideshow Speed","getwid"),type:"number",value:h,min:0,onChange:function(e){return z({sliderAutoplaySpeed:e})}}),wp.element.createElement(D,{label:Object(O.__)("Animation Effect","getwid"),selected:p,options:[{value:"slide",label:Object(O.__)("Slide","getwid")},{value:"fade",label:Object(O.__)("Fade","getwid")}],onChange:function(e){z("fade"==e?{sliderAnimationEffect:"fade",sliderSlidesToShow:"1",sliderSlidesToShowLaptop:"1",sliderSlidesToShowTablet:"1",sliderSlidesToShowMobile:"1"}:{sliderAnimationEffect:e})}}),wp.element.createElement(A,{label:Object(O.__)("Infinite","getwid"),checked:v,onChange:function(){z({sliderInfinite:!v})}}),wp.element.createElement(M,{label:Object(O.__)("Animation Speed","getwid"),type:"number",value:E,min:0,onChange:function(e){return z({sliderAnimationSpeed:e})}}))),"advanced"===W&&wp.element.createElement(j,null,wp.element.createElement(N,{title:Object(O.__)("Image Settings","getwid"),initialOpen:!0},wp.element.createElement(M,{disabled:"fade"==p,label:Object(O.__)("Slides on Desktop","getwid"),help:Object(O.__)("Works with Slide effect only.","getwid"),type:"number",value:parseInt(d,10),min:1,max:10,step:1,onChange:function(e){z({sliderSlidesToShow:e.toString()})}}),wp.element.createElement(M,{disabled:!(parseInt(d,10)>1)||null,label:Object(O.__)("Slides on Laptop","getwid"),type:"number",value:parseInt(m,10),min:1,max:10,step:1,onChange:function(e){z({sliderSlidesToShowLaptop:e.toString()})}}),wp.element.createElement(M,{disabled:!(parseInt(d,10)>1)||null,label:Object(O.__)("Slides on Tablet","getwid"),type:"number",value:parseInt(g,10),min:1,max:10,step:1,onChange:function(e){z({sliderSlidesToShowTablet:e.toString()})}}),wp.element.createElement(M,{disabled:!(parseInt(d,10)>1)||null,label:Object(O.__)("Slides on Mobile","getwid"),type:"number",value:parseInt(f,10),min:1,max:10,step:1,onChange:function(e){z({sliderSlidesToShowMobile:e.toString()})}}),wp.element.createElement(M,{disabled:!(parseInt(d,10)>1)||null,label:Object(O.__)("Slides to Scroll","getwid"),type:"number",value:parseInt(b,10),min:1,max:10,step:1,onChange:function(e){z({sliderSlidesToScroll:e.toString()})}}),"default"===i&&r.length>1&&wp.element.createElement(B,{label:Object(O.__)("Image Alignment","getwid"),value:u,onChange:function(e){return z({imageAlignment:e})},options:[{value:"top",label:Object(O.__)("Top","getwid")},{value:"center",label:Object(O.__)("Middle","getwid")},{value:"bottom",label:Object(O.__)("Bottom","getwid")}]}),wp.element.createElement(A,{label:Object(O.__)("Center Mode","getwid"),checked:C,onChange:function(){z({sliderCenterMode:!C})}}),wp.element.createElement(A,{label:Object(O.__)("Variable Width","getwid"),checked:S,onChange:function(){z({sliderVariableWidth:!S})}}),parseInt(d,10)>1&&wp.element.createElement(B,{label:Object(O.__)("Spacing","getwid"),value:P,onChange:function(e){return z({sliderSpacing:e})},options:[{value:"none",label:Object(O.__)("None","getwid")},{value:"small",label:Object(O.__)("Small","getwid")},{value:"normal",label:Object(O.__)("Medium","getwid")},{value:"large",label:Object(O.__)("Large","getwid")},{value:"huge",label:Object(O.__)("Huge","getwid")}]}),wp.element.createElement(R,null,wp.element.createElement(T,{isLink:!0,onClick:G,disabled:!this.hasSliderSettings()},Object(O.__)("Reset","getwid")))),wp.element.createElement(N,{title:Object(O.__)("Controls Settings","getwid"),initialOpen:!1},wp.element.createElement(D,{label:Object(O.__)("Arrows","getwid"),selected:I,options:[{value:"outside",label:Object(O.__)("Outside","getwid")},{value:"inside",label:Object(O.__)("Inside","getwid")},{value:"none",label:Object(O.__)("None","getwid")}],onChange:function(e){return z({sliderArrows:e})}}),wp.element.createElement(D,{label:Object(O.__)("Dots","getwid"),selected:L,options:[{value:"outside",label:Object(O.__)("Outside","getwid")},{value:"inside",label:Object(O.__)("Inside","getwid")},{value:"none",label:Object(O.__)("None","getwid")}],onChange:function(e){return z({sliderDots:e})}}))))}}]),t}(C);t.a=I},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=f()(e);if(t()){var o=f()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var o=n(2),i=n.n(o),a=n(4),l=n.n(a),c=n(11),s=n.n(c),u=n(5),p=n.n(u),d=n(6),m=n.n(d),g=n(3),f=n.n(g),b=(n(0),n(1)),w=(n.n(b),n(10)),h=(n.n(w),n(8)),v=n.n(h),y=wp.blob.isBlobURL,_=wp.data.withSelect,k=wp.element,O=k.Component,E=k.Fragment,C=wp.components.Spinner,j="wp-block-getwid-images-slider",S=function(e){function t(){var e;return i()(this,t),e=n.apply(this,arguments),e.bindContainer=e.bindContainer.bind(s()(e)),e}p()(t,e);var n=r(t);return l()(t,[{key:"bindContainer",value:function(e){this.container=e}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.image,r=t.url;n&&!r&&this.props.setAttributes({url:n.source_url,alt:n.alt_text})}},{key:"render",value:function(){var e=this.props,t=(e.showCaption,e.captionStyle,e.captionPosition,e.url),n=e.original_url,r=e.alt,o=e.caption,i=e.id,a=(e.linkTo,e.link,e.custom_link),l=e.custom_link_target,c=e.custom_link_rel,s=(e.isSelected,wp.element.createElement(E,null,wp.element.createElement("figure",null,wp.element.createElement("img",{className:"".concat(j,"__image"),src:t,alt:r,"data-custom-link":a||void 0,"data-link-target":l||void 0,"data-link-rel":c||void 0,"data-original-link":n||void 0,"data-id":i,tabIndex:"0"}),o&&wp.element.createElement("figcaption",{className:v()("".concat(j,"_item-caption"))},o)),y(t)&&wp.element.createElement(C,null)));return wp.element.createElement(E,null,s)}}]),t}(O);t.a=_(function(e,t){var n=e("core"),r=n.getMedia,o=t.id;return{image:o?r(o):null}})(S)},function(e,t){},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=w()(e);if(t()){var o=w()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f()(this,n)}}var o=n(9),i=n.n(o),a=n(7),l=n.n(a),c=n(2),s=n.n(c),u=n(4),p=n.n(u),d=n(5),m=n.n(d),g=n(6),f=n.n(g),b=n(3),w=n.n(b),h=(n(0),n(1)),v=(n.n(h),n(8)),y=n.n(v),_=window,k=(_.jQuery,wp.element),O=k.Component,E=k.Fragment,C=function(e){function t(){return s()(this,t),n.apply(this,arguments)}m()(t,e);var n=r(t);return p()(t,[{key:"render",value:function(){var e,t,n=this.props,r=n.attributes,o=r.showCaption,a=r.captionStyle,c=r.captionPosition,s=r.align,u=r.images,p=r.imageFit,d=r.linkTo,m=r.imageAlignment,g=r.sliderAnimationEffect,f=r.sliderSlidesToShow,b=r.sliderSlidesToShowLaptop,w=r.sliderSlidesToShowTablet,h=r.sliderSlidesToShowMobile,v=r.sliderSlidesToScroll,_=r.sliderAutoplay,k=r.sliderAutoplaySpeed,O=r.sliderInfinite,C=r.sliderAnimationSpeed,j=r.sliderCenterMode,S=r.sliderVariableWidth,x=r.sliderSpacing,P=r.sliderArrows,T=r.sliderDots,R=r.slideHeight,N=r.resetHeightOnTablet,A=r.resetHeightOnMobile,B=n.className,D=n.baseClass,M=y()(B,"has-arrows-".concat(P),"has-dots-".concat(T),(e={},l()(e,"has-captions",1==o),l()(e,"captions-style-".concat(a),1==o&&"underneath"!==c),l()(e,"captions-".concat(c),1==o),l()(e,"is-carousel",f>1),l()(e,"has-slides-gap-".concat(x),f>1),l()(e,"has-images-".concat(m),m),l()(e,"has-cropped-images","fill"===p),l()(e,"has-fitted-images","fit"===p),e),R?"has-fixed-height":null,s?"align".concat(s):null),I={className:y()("".concat(D,"__item"),(t={},l()(t,"getwid-reset-height-tablet",N),l()(t,"getwid-reset-height-mobile",A),t)),style:{height:R||void 0}},L={"data-effect":g,"data-slides-show":f,"data-slides-show-laptop":b,"data-slides-show-tablet":w,"data-slides-show-mobile":h,"data-slides-scroll":v,"data-autoplay":_,"data-autoplay-speed":k,"data-infinite":O,"data-animation-speed":C,"data-center-mode":j,"data-variable-width":S,"data-arrows":P,"data-dots":T,"data-spacing":x};return wp.element.createElement("div",{className:M},wp.element.createElement("div",i()({className:"".concat(D,"__wrapper")},L),u.map(function(e){var t;switch(d){case"media":t=e.original_url;break;case"attachment":t=e.link;break;case"custom":t=e.custom_link}var n=wp.element.createElement(E,null,wp.element.createElement("figure",null,wp.element.createElement("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-link":e.link,"data-link-target":e.custom_link_target?e.custom_link_target:void 0,"data-link-rel":e.custom_link_rel?e.custom_link_rel:void 0,"data-original-link":e.original_url?e.original_url:void 0,"data-custom-link":e.custom_link?e.custom_link:void 0,className:"".concat(D,"__image ")+(e.id?"wp-image-".concat(e.id):"")}),e.caption&&wp.element.createElement("figcaption",{className:y()("".concat(D,"__caption"))},e.caption)));return wp.element.createElement("div",i()({key:e.id||e.url},I),wp.element.createElement(E,null,t?wp.element.createElement("a",{href:t,target:e.custom_link_target?e.custom_link_target:void 0,rel:e.custom_link_rel?e.custom_link_rel:void 0},n):n))})))}}]),t}(O);t.a=C},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=w()(e);if(t()){var o=w()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f()(this,n)}}var o=n(9),i=n.n(o),a=n(7),l=n.n(a),c=n(2),s=n.n(c),u=n(4),p=n.n(u),d=n(5),m=n.n(d),g=n(6),f=n.n(g),b=n(3),w=n.n(b),h=(n(0),n(1)),v=(n.n(h),n(8)),y=n.n(v),_=window,k=(_.jQuery,wp.element),O=k.Component,E=k.Fragment,C="wp-block-getwid-images-slider",j=function(e){function t(){return s()(this,t),n.apply(this,arguments)}m()(t,e);var n=r(t);return p()(t,[{key:"render",value:function(){var e,t,n=this.props.attributes,r=n.align,o=n.images,a=n.imageCrop,c=n.linkTo,s=n.imageAlignment,u=n.sliderAnimationEffect,p=n.sliderSlidesToShow,d=n.sliderSlidesToShowLaptop,m=n.sliderSlidesToShowTablet,g=n.sliderSlidesToShowMobile,f=n.sliderSlidesToScroll,b=n.sliderAutoplay,w=n.sliderAutoplaySpeed,h=n.sliderInfinite,v=n.sliderAnimationSpeed,_=n.sliderCenterMode,k=n.sliderVariableWidth,O=n.sliderSpacing,j=n.sliderArrows,S=n.sliderDots,x=n.slideHeight,P=n.resetHeightOnTablet,T=n.resetHeightOnMobile,R=n.className,N=y()(R,"has-arrows-".concat(j),"has-dots-".concat(S),(e={},l()(e,"is-carousel",p>1),l()(e,"has-slides-gap-".concat(O),p>1),l()(e,"has-images-".concat(s),s),e),a?"has-cropped-images":null,x?"has-fixed-height":null,r?"align".concat(r):null),A={className:y()("".concat(C,"__item"),(t={},l()(t,"getwid-reset-height-tablet",P),l()(t,"getwid-reset-height-mobile",T),t)),style:{height:x||void 0}},B={"data-effect":u,"data-slides-show":p,"data-slides-show-laptop":d,"data-slides-show-tablet":m,"data-slides-show-mobile":g,"data-slides-scroll":f,"data-autoplay":b,"data-autoplay-speed":w,"data-infinite":h,"data-animation-speed":v,"data-center-mode":_,"data-variable-width":k,"data-arrows":j,"data-dots":S,"data-spacing":O};return wp.element.createElement("div",{className:N},wp.element.createElement("div",i()({className:"".concat(C,"__wrapper")},B),o.map(function(e){var t;switch(c){case"media":t=e.original_url;break;case"attachment":t=e.link}var n=wp.element.createElement("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-link":e.link,className:"".concat(C,"__image")+(e.id?" wp-image-".concat(e.id):null)});return wp.element.createElement("div",i()({key:e.id||e.url},A),wp.element.createElement(E,null,t?wp.element.createElement("a",{href:t},n):n))})))}}]),t}(O);t.a=j},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=w()(e);if(t()){var o=w()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f()(this,n)}}var o=n(9),i=n.n(o),a=n(7),l=n.n(a),c=n(2),s=n.n(c),u=n(4),p=n.n(u),d=n(5),m=n.n(d),g=n(6),f=n.n(g),b=n(3),w=n.n(b),h=(n(0),n(1)),v=(n.n(h),n(8)),y=n.n(v),_=window,k=(_.jQuery,wp.element),O=k.Component,E=k.Fragment,C=function(e){function t(){return s()(this,t),n.apply(this,arguments)}m()(t,e);var n=r(t);return p()(t,[{key:"render",value:function(){var e,t,n=this.props,r=n.attributes,o=r.align,a=r.images,c=r.imageCrop,s=r.linkTo,u=r.imageAlignment,p=r.sliderAnimationEffect,d=r.sliderSlidesToShow,m=r.sliderSlidesToShowLaptop,g=r.sliderSlidesToShowTablet,f=r.sliderSlidesToShowMobile,b=r.sliderSlidesToScroll,w=r.sliderAutoplay,h=r.sliderAutoplaySpeed,v=r.sliderInfinite,_=r.sliderAnimationSpeed,k=r.sliderCenterMode,O=r.sliderVariableWidth,C=r.sliderSpacing,j=r.sliderArrows,S=r.sliderDots,x=r.slideHeight,P=r.resetHeightOnTablet,T=r.resetHeightOnMobile,R=n.className,N=n.baseClass,A=y()(R,"has-arrows-".concat(j),"has-dots-".concat(S),(e={},l()(e,"is-carousel",d>1),l()(e,"has-slides-gap-".concat(C),d>1),l()(e,"has-images-".concat(u),u),e),c?"has-cropped-images":null,x?"has-fixed-height":null,o?"align".concat(o):null),B={className:y()("".concat(N,"__item"),(t={},l()(t,"getwid-reset-height-tablet",P),l()(t,"getwid-reset-height-mobile",T),t)),style:{height:x||void 0}},D={"data-effect":p,"data-slides-show":d,"data-slides-show-laptop":m,"data-slides-show-tablet":g,"data-slides-show-mobile":f,"data-slides-scroll":b,"data-autoplay":w,"data-autoplay-speed":h,"data-infinite":v,"data-animation-speed":_,"data-center-mode":k,"data-variable-width":O,"data-arrows":j,"data-dots":S,"data-spacing":C};return wp.element.createElement("div",{className:A},wp.element.createElement("div",i()({className:"".concat(N,"__wrapper")},D),a.map(function(e){var t;switch(s){case"media":t=e.original_url;break;case"attachment":t=e.link;break;case"custom":t=e.custom_link}var n=wp.element.createElement("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-link":e.link,"data-link-target":e.custom_link_target?e.custom_link_target:void 0,"data-link-rel":e.custom_link_rel?e.custom_link_rel:void 0,"data-original-link":e.original_url?e.original_url:void 0,"data-custom-link":e.custom_link?e.custom_link:void 0,className:"".concat(N,"__image ")+(e.id?"wp-image-".concat(e.id):"")});return wp.element.createElement("div",i()({key:e.id||e.url},B),wp.element.createElement(E,null,t?wp.element.createElement("a",{href:t,target:e.custom_link_target?e.custom_link_target:void 0,rel:e.custom_link_rel?e.custom_link_rel:void 0},n):n))})))}}]),t}(O);t.a=C},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=w()(e);if(t()){var o=w()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f()(this,n)}}var o=n(9),i=n.n(o),a=n(7),l=n.n(a),c=n(2),s=n.n(c),u=n(4),p=n.n(u),d=n(5),m=n.n(d),g=n(6),f=n.n(g),b=n(3),w=n.n(b),h=(n(0),n(1)),v=(n.n(h),n(8)),y=n.n(v),_=window,k=(_.jQuery,wp.element),O=k.Component,E=k.Fragment,C=function(e){function t(){return s()(this,t),n.apply(this,arguments)}m()(t,e);var n=r(t);return p()(t,[{key:"render",value:function(){var e,t,n=this.props,r=n.attributes,o=r.showCaption,a=r.captionStyle,c=r.captionPosition,s=r.align,u=r.images,p=r.imageCrop,d=r.linkTo,m=r.imageAlignment,g=r.sliderAnimationEffect,f=r.sliderSlidesToShow,b=r.sliderSlidesToShowLaptop,w=r.sliderSlidesToShowTablet,h=r.sliderSlidesToShowMobile,v=r.sliderSlidesToScroll,_=r.sliderAutoplay,k=r.sliderAutoplaySpeed,O=r.sliderInfinite,C=r.sliderAnimationSpeed,j=r.sliderCenterMode,S=r.sliderVariableWidth,x=r.sliderSpacing,P=r.sliderArrows,T=r.sliderDots,R=r.slideHeight,N=r.resetHeightOnTablet,A=r.resetHeightOnMobile,B=n.className,D=n.baseClass,M=y()(B,"has-arrows-".concat(P),"has-dots-".concat(T),(e={},l()(e,"has-captions",1==o),l()(e,"captions-style-".concat(a),1==o),l()(e,"captions-".concat(c),1==o),l()(e,"is-carousel",f>1),l()(e,"has-slides-gap-".concat(x),f>1),l()(e,"has-images-".concat(m),m),e),p?"has-cropped-images":null,R?"has-fixed-height":null,s?"align".concat(s):null),I={className:y()("".concat(D,"__item"),(t={},l()(t,"getwid-reset-height-tablet",N),l()(t,"getwid-reset-height-mobile",A),t)),style:{height:R||void 0}},L={"data-effect":g,"data-slides-show":f,"data-slides-show-laptop":b,"data-slides-show-tablet":w,"data-slides-show-mobile":h,"data-slides-scroll":v,"data-autoplay":_,"data-autoplay-speed":k,"data-infinite":O,"data-animation-speed":C,"data-center-mode":j,"data-variable-width":S,"data-arrows":P,"data-dots":T,"data-spacing":x};return wp.element.createElement("div",{className:M},wp.element.createElement("div",i()({className:"".concat(D,"__wrapper")},L),u.map(function(e){var t;switch(d){case"media":t=e.original_url;break;case"attachment":t=e.link;break;case"custom":t=e.custom_link}var n=wp.element.createElement(E,null,wp.element.createElement("figure",null,wp.element.createElement("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-link":e.link,"data-link-target":e.custom_link_target?e.custom_link_target:void 0,"data-link-rel":e.custom_link_rel?e.custom_link_rel:void 0,"data-original-link":e.original_url?e.original_url:void 0,"data-custom-link":e.custom_link?e.custom_link:void 0,className:"".concat(D,"__image ")+(e.id?"wp-image-".concat(e.id):"")}),e.caption&&wp.element.createElement("figcaption",{className:y()("".concat(D,"__caption"))},e.caption)));return wp.element.createElement("div",i()({key:e.id||e.url},I),wp.element.createElement(E,null,t?wp.element.createElement("a",{href:t,target:e.custom_link_target?e.custom_link_target:void 0,rel:e.custom_link_rel?e.custom_link_rel:void 0},n):n))})))}}]),t}(O);t.a=C},function(e,t){},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(n,!0).forEach(function(t){s()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function i(e,t){var n,r,o,i=e.attributes,a=i.iconStyle,l=i.iconSize,c=i.padding,s=i.borderWidth,u=i.borderRadius,p=i.backgroundColor,d=i.textColor,m=i.customTextColor,g=Object(w.get)(_("core/editor").getEditorSettings(),["colors"],[]);T(g,p);return"edit"==t?(n=void 0!==d&&void 0===d.class?e.textColor.color:m||void 0,r="stacked"===a?e.backgroundColor.color?e.backgroundColor.color:e.attributes.customBackgroundColor:void 0,o="framed"===a?e.textColor?e.textColor.color:e.attributes.customTextColor:void 0):"save"==t&&(r="stacked"===a?e.attributes.backgroundColor?void 0:e.attributes.customBackgroundColor:void 0,n=void 0!==d?void 0:m),{fontSize:void 0!==l?l:void 0,padding:void 0!==c?"".concat(c,"px"):void 0,color:n,backgroundColor:r,borderColor:o,borderWidth:"framed"===a?s:void 0,borderRadius:("framed"===a||"stacked"===a)&&50!=u?"".concat(u,"%"):void 0}}var a=n(9),l=n.n(a),c=n(7),s=n.n(c),u=(n(0),n(172)),p=n(173),d=n(174),m=n(12),g=n(175),f=(n.n(g),n(176)),b=(n.n(f),n(1)),w=(n.n(b),n(10)),h=(n.n(w),n(8)),v=n.n(h),y=window,_=(y.jQuery,wp.data.select),k=wp.element.Fragment,O=wp.blocks,E=O.registerBlockType,C=O.createBlock,j=wp.blockEditor||wp.editor,S=j.BlockControls,x=j.AlignmentToolbar,P=j.getColorClassName,T=j.getColorObjectByAttributeValues;E("getwid/icon",o(o({title:Object(b.__)("Icon","getwid"),category:"getwid-blocks",icon:wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},wp.element.createElement("path",{d:"M24,9.3l-8.3-1.2L12,0.6L8.3,8.1L0,9.3l6,5.8l-1.4,8.2l7.4-3.9l7.4,3.9L18,15.1L24,9.3z M12,17.2l-4.7,2.5l0.9-5.3l-3.8-3.7 L9.6,10L12,5.1l2.4,4.9l5.3,0.8l-3.8,3.7l0.9,5.3L12,17.2z"})),keywords:[],supports:{align:["left","right","wide","full"],inserter:!Getwid.disabled_blocks.includes("getwid/icon")},transforms:{to:[{type:"block",blocks:["getwid/icon-box"],transform:function(e){return C("getwid/icon-box",e)}}]},attributes:d.a},Object(m.b)("getwid/icon",function(e){var t=e.attributes,n=t.align,r=t.textAlignment,a=e.setAttributes;return e.attributes.id||(e.attributes.id=e.clientId),[wp.element.createElement(p.a,l()({},o({setAttributes:a},e),{key:"inspector"})),wp.element.createElement(u.a,l()({},o({setAttributes:a,prepareWrapperStyle:i},e),{key:"edit"})),wp.element.createElement(k,null,"left"!=n&&"right"!=n&&wp.element.createElement(S,null,wp.element.createElement(x,{value:r,onChange:function(e){return a({textAlignment:e})}})))]})),{},{save:function(e){var t,n,r=e.attributes,o=r.icon,a=r.iconStyle,c=r.link,u=r.hoverAnimation,p=r.textAlignment,d=r.rel,m=r.linkTarget,g=r.marginTop,f=r.marginBottom,b=r.marginLeft,w=r.marginRight,h=r.backgroundColor,y=r.textColor,_=r.customBackgroundColor,k=r.customTextColor,O=r.className,E=P("color",y),C=P("background-color",h),j=wp.element.createElement("i",{className:o}),S={marginTop:g,marginBottom:f,marginLeft:b,marginRight:w},x={className:v()("".concat("wp-block-getwid-icon","__wrapper"),(t={"getwid-animation":!!u,"has-background":(h||_)&&"stacked"==a},s()(t,C,C&&"stacked"==a),s()(t,"has-text-color",y||k),s()(t,E,E),t)),style:i(e,"save"),"data-animation":u||void 0};return wp.element.createElement("div",{style:S,className:v()(O,(n={},s()(n,"has-layout-stacked","stacked"===a),s()(n,"has-layout-framed","framed"===a),s()(n,"is-aligned-".concat(p),void 0!==p),n))},c&&wp.element.createElement("a",l()({href:c,target:m,rel:d},x),j),!c&&wp.element.createElement("div",x,j))}}))},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=w()(e);if(t()){var o=w()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f()(this,n)}}var o=n(9),i=n.n(o),a=n(7),l=n.n(a),c=n(2),s=n.n(c),u=n(4),p=n.n(u),d=n(5),m=n.n(d),g=n(6),f=n.n(g),b=n(3),w=n.n(b),h=(n(0),n(8)),v=n.n(h),y=n(22),_=n(1),k=(n.n(_),window),O=k.jQuery,E=wp.element.Component,C=wp.compose.compose,j=wp.blockEditor||wp.editor,S=j.withColors,x=function(e){function t(){return s()(this,t),n.apply(this,arguments)}m()(t,e);var n=r(t);return p()(t,[{key:"render",value:function(){var e,t,n=this,r=this.props,o=r.attributes,a=o.marginTop,c=o.marginBottom,s=o.marginLeft,u=o.marginRight,p=o.icon,d=o.iconStyle,m=o.link,g=o.hoverAnimation,f=o.textAlignment,b=r.prepareWrapperStyle,w=r.className,h=(r.setBackgroundColor,r.setTextColor,r.backgroundColor),y=r.textColor,_=wp.element.createElement("i",{className:p}),k={marginTop:a,marginBottom:c,marginLeft:s,marginRight:u},O={className:v()("".concat("wp-block-getwid-icon","__wrapper"),(e={"getwid-animation":!!g,"has-background":h.color&&"stacked"==d},l()(e,h.class,h.class&&"stacked"==d),l()(e,"has-text-color",y.color),l()(e,y.class,y.class),e)),style:b(this.props,"edit"),"data-animation":g||void 0,onMouseEnter:function(e){return n.onIconHoverIn()}};return wp.element.createElement("div",{style:k,className:v()(w,(t={},l()(t,"has-layout-stacked","stacked"===d),l()(t,"has-layout-framed","framed"===d),l()(t,"is-aligned-".concat(f),void 0!==f),t))},m&&wp.element.createElement("a",i()({href:m},O,{onClick:function(e){return e.preventDefault()}}),_),!m&&wp.element.createElement("div",O,_))}},{key:"setupIconWrapper",value:function(){var e=this.props.clientId;this.iconWrapper=O("[data-block='".concat(e,"'] .wp-block-getwid-icon__wrapper"))}},{key:"componentDidMount",value:function(){this.setupIconWrapper()}},{key:"componentDidUpdate",value:function(e){this.setupIconWrapper()}},{key:"onIconHoverIn",value:function(){var e=this.props.attributes.hoverAnimation;e&&Object(y.a)(this.iconWrapper,{animation:e})}}]),t}(E);t.a=C([S("backgroundColor",{textColor:"color"})])(x)},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=w()(e);if(t()){var o=w()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f()(this,n)}}var o=n(15),i=n.n(o),a=n(2),l=n.n(a),c=n(4),s=n.n(c),u=n(11),p=n.n(u),d=n(5),m=n.n(d),g=n(6),f=n.n(g),b=n(3),w=n.n(b),h=(n(0),n(18)),v=n(24),y=n(17),_=n(16),k=n(1),O=(n.n(k),wp.element.Component),E=wp.blockEditor||wp.editor,C=E.InspectorControls,j=E.URLInput,S=E.withColors,x=wp.components,P=x.PanelBody,T=x.BaseControl,R=x.RangeControl,N=x.TextControl,A=x.RadioControl,B=x.ToggleControl,D=x.Button,M=wp.compose.compose,I=function(e){function t(){var e;return l()(this,t),e=n.apply(this,arguments),e.onSetNewTab=e.onSetNewTab.bind(p()(e)),e.onSetLinkRel=e.onSetLinkRel.bind(p()(e)),e}m()(t,e);var n=r(t);return s()(t,[{key:"hasMargin",value:function(){var e=this.props.attributes,t=e.marginTop,n=e.marginBottom,r=e.marginLeft,o=e.marginRight;return void 0!==t||void 0!==n||void 0!==o||void 0!==r}},{key:"onSetNewTab",value:function(e){var t=this.props.attributes.rel,n=e?"_blank":void 0,r=t;n&&!t?r="noreferrer noopener":n||"noreferrer noopener"!==t||(r=void 0),this.props.setAttributes({linkTarget:n,rel:r})}},{key:"onSetLinkRel",value:function(e){this.props.setAttributes({rel:e})}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.icon,r=t.iconStyle,o=t.iconSize,a=t.padding,l=t.marginTop,c=t.marginBottom,s=t.marginLeft,u=t.marginRight,p=t.borderWidth,d=t.borderRadius,m=t.link,g=t.hoverAnimation,f=t.rel,b=t.linkTarget,w=e.setAttributes,O=e.setBackgroundColor,E=e.setTextColor,S=e.customBackgroundColor,x=e.customTextColor,M=e.backgroundColor,I=e.textColor,L=function(){w({marginTop:void 0,marginBottom:void 0,marginLeft:void 0,marginRight:void 0})},z="stacked"===r||"framed"===r;return wp.element.createElement(C,null,wp.element.createElement(P,{title:Object(k.__)("Settings","getwid")},wp.element.createElement(T,{label:Object(k.__)("Icon","getwid")},wp.element.createElement(h.a,{value:n,onChange:function(e){return w({icon:e})}})),wp.element.createElement(A,{label:Object(k.__)("Layout","getwid"),selected:void 0!==r?r:"default",options:[{value:"default",label:Object(k.__)("Icon","getwid")},{value:"stacked",label:Object(k.__)("Background","getwid")},{value:"framed",label:Object(k.__)("Outline","getwid")}],onChange:function(e){return w({iconStyle:e})}}),wp.element.createElement(_.a,{colorSettings:[{title:Object(k.__)("Icon Color","getwid"),colors:{customColor:x,defaultColor:I},changeColor:E}].concat(i()(z&&"stacked"==r?[{title:Object(k.__)("Background Color","getwid"),colors:{customColor:S,defaultColor:M},changeColor:O}]:[]))}),wp.element.createElement(y.a,{label:Object(k.__)("Icon Size","getwid"),value:o,onChange:function(e){w({iconSize:e})}}),wp.element.createElement(N,{type:"number",label:Object(k.__)("Space Around Icon","getwid"),value:a,onChange:function(e){e=parseInt(e),isNaN(e)&&(e=void 0),w({padding:e})},min:0,step:1}),"framed"===r&&wp.element.createElement(N,{type:"number",label:Object(k.__)("Border Width","getwid"),value:void 0!==p?p:"",onChange:function(e){e=parseInt(e),isNaN(e)&&(e=void 0),w({borderWidth:e})},min:0,step:1,placeholder:"1"}),("framed"===r||"stacked"===r)&&wp.element.createElement(R,{label:Object(k.__)("Border Radius","getwid"),value:void 0!==d?d:"",onChange:function(e){w({borderRadius:e})},min:0,step:1,max:100,placeholder:"0"}),wp.element.createElement(T,{className:"getwid-editor-url-input",label:Object(k.__)("Link","getwid")},wp.element.createElement(j,{autoFocus:!1,value:m,onChange:function(e){return w({link:e})}})),wp.element.createElement(T,null,wp.element.createElement(B,{label:Object(k.__)("Open in New Tab","getwid"),checked:"_blank"===b,onChange:this.onSetNewTab})),wp.element.createElement(N,{label:Object(k.__)("Link Rel","getwid"),value:f||"",onChange:this.onSetLinkRel}),wp.element.createElement(v.a,{label:Object(k.__)("Icon Hover Animation","getwid"),value:void 0!==g?g:"",onChange:function(e){return w({hoverAnimation:e})},allowAnimation:["Seeker","Icon"]})),wp.element.createElement(P,{title:Object(k.__)("Margin","getwid"),initialOpen:!1},wp.element.createElement(y.a,{label:Object(k.__)("Margin Top","getwid"),value:l,onChange:function(e){w({marginTop:e})},allowNegative:!0,allowAuto:!0}),wp.element.createElement(y.a,{label:Object(k.__)("Margin Bottom","getwid"),value:c,onChange:function(e){w({marginBottom:e})},allowNegative:!0,allowAuto:!0}),wp.element.createElement(y.a,{label:Object(k.__)("Margin Left","getwid"),value:s,onChange:function(e){w({marginLeft:e})},allowNegative:!0,allowAuto:!0}),wp.element.createElement(y.a,{label:Object(k.__)("Margin Right","getwid"),value:u,onChange:function(e){w({marginRight:e})},allowNegative:!0,allowAuto:!0}),wp.element.createElement(T,null,wp.element.createElement(D,{isLink:!0,onClick:L,disabled:!this.hasMargin()},Object(k.__)("Reset","getwid")))))}}]),t}(O);t.a=M([S("backgroundColor",{textColor:"color"})])(I)},function(e,t,n){"use strict";var r={backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},icon:{type:"string",default:"fab fa-wordpress"},iconStyle:{type:"string",default:"default"},iconSize:{type:"string"},padding:{type:"number"},marginTop:{type:"string"},marginBottom:{type:"string"},marginLeft:{type:"string"},marginRight:{type:"string"},borderWidth:{type:"number"},borderRadius:{type:"number",default:50},link:{type:"string",source:"attribute",selector:"a.wp-block-getwid-icon__wrapper",attribute:"href"},align:{type:"string"},textAlignment:{type:"string"},hoverAnimation:{type:"string",source:"attribute",selector:".wp-block-getwid-icon__wrapper",attribute:"data-animation"},linkTarget:{type:"string",source:"attribute",selector:"a.wp-block-getwid-icon__wrapper",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a.wp-block-getwid-icon__wrapper",attribute:"rel"}};t.a=r},function(e,t){},function(e,t){},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(n,!0).forEach(function(t){s()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function i(e,t){var n,r,o,i=e.attributes,a=i.iconStyle,l=i.iconSize,c=i.padding,s=i.borderWidth,u=i.borderRadius,p=i.textColor,d=i.customTextColor;return"edit"==t?(n=void 0!==p&&void 0===p.class?e.textColor.color:d||void 0,r="stacked"===a?e.backgroundColor.color?e.backgroundColor.color:e.attributes.customBackgroundColor:void 0,o="framed"===a?e.textColor?e.textColor.color:e.attributes.customTextColor:void 0):"save"==t&&(r="stacked"===a?e.attributes.backgroundColor?void 0:e.attributes.customBackgroundColor:void 0,n=void 0!==p?void 0:d),{fontSize:void 0!==l?l:void 0,padding:void 0!==c?"".concat(c,"px"):void 0,color:n,backgroundColor:r,borderColor:o,borderWidth:"framed"===a?s:void 0,borderRadius:("framed"===a||"stacked"===a)&&50!=u?"".concat(u,"%"):void 0}}var a=n(9),l=n.n(a),c=n(7),s=n.n(c),u=(n(0),n(178)),p=n(181),d=n(12),m=n(58),g=(n.n(m),n(1)),f=(n.n(g),n(8)),b=n.n(f),w=window,h=(w.jQuery,wp.data.select),v=wp.element.Fragment,y=wp.components.ToolbarGroup,_=wp.blocks,k=_.registerBlockType,O=_.createBlock,E=wp.blockEditor||wp.editor,C=E.BlockControls,j=E.AlignmentToolbar,S=E.InnerBlocks,x=E.getColorClassName,P="wp-block-getwid-icon-box";k("getwid/icon-box",o(o({title:Object(g.__)("Icon Box","getwid"),example:{attributes:{icon:"fab fa-wordpress",iconStyle:"default",textAlignment:"center"},innerBlocks:[{name:"core/heading",attributes:{content:"Title"}},{name:"core/paragraph",attributes:{content:"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."}}]},category:"getwid-blocks",icon:wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},wp.element.createElement("polygon",{points:"5,2.2 6.5,5.4 10,5.9 7.5,8.3 8.1,11.8 5,10.2 1.9,11.8 2.5,8.3 0,5.9 3.5,5.4 "}),wp.element.createElement("rect",{x:"13",y:"11",width:"11",height:"2"}),wp.element.createElement("rect",{x:"2",y:"15",width:"22",height:"2"}),wp.element.createElement("rect",{x:"13",y:"7",width:"11",height:"2"}),wp.element.createElement("rect",{x:"13",y:"3",width:"11",height:"2"}),wp.element.createElement("rect",{x:"2",y:"19",width:"15.6",height:"2"})),keywords:[Object(g.__)("feature","getwid"),Object(g.__)("service","getwid")],supports:{alignWide:!0,align:["wide","full"],inserter:!Getwid.disabled_blocks.includes("getwid/icon-box")},transforms:{to:[{type:"block",blocks:["getwid/icon"],transform:function(e){return O("getwid/icon",e)}},{type:"block",blocks:["getwid/image-box"],transform:function(e){var t=h("core/editor").getSelectedBlockClientId(),n=h("core/editor").getBlock(t).innerBlocks;return O("getwid/image-box",e,n)}},{type:"block",blocks:["core/heading"],transform:function(e){var t,n=h("core/editor").getSelectedBlockClientId(),r=h("core/editor").getBlock(n).innerBlocks;return r.length&&jQuery.each(r,function(e,n){"core/heading"==n.name&&(t=n.attributes.content)}),O("core/heading",{content:t})}},{type:"block",blocks:["core/paragraph"],transform:function(e){var t,n=h("core/editor").getSelectedBlockClientId(),r=h("core/editor").getBlock(n).innerBlocks;return r.length&&jQuery.each(r,function(e,n){"core/paragraph"==n.name&&(t=n.attributes.content)}),O("core/paragraph",{content:t})}}]},attributes:p.a},Object(d.b)("getwid/icon-box",function(e){var t=e.attributes,n=t.textAlignment,r=t.layout,a=e.setAttributes,c=function(e){a({textAlignment:e})},s=[{icon:"align-left",title:Object(g.__)("Align Icon Left","getwid"),isActive:"left"==r,onClick:function(){return a({layout:"left"==r?null:"left"})}},{icon:"align-right",title:Object(g.__)("Align Icon Right","getwid"),isActive:"right"==r,onClick:function(){return a({layout:"right"==r?null:"right"})}}];return[wp.element.createElement(u.a,l()({},o({setAttributes:a,prepareWrapperStyle:i},e),{key:"edit"})),wp.element.createElement(v,null,wp.element.createElement(C,null,wp.element.createElement(y,{controls:s})),wp.element.createElement(C,null,wp.element.createElement(j,{value:n,onChange:c})))]})),{},{save:function(e){var t,n,r=e.attributes,o=r.textAlignment,a=r.icon,c=r.layout,u=r.iconPosition,p=r.iconStyle,d=r.link,m=r.hoverAnimation,g=r.rel,f=r.linkTarget,w=r.marginTop,h=r.marginBottom,v=r.marginLeft,y=r.marginRight,_=r.backgroundColor,k=r.textColor,O=r.customBackgroundColor,E=r.customTextColor,C=r.className,j=x("color",k),T=x("background-color",_),R={className:b()(C,(t={"getwid-animation":!!m},s()(t,"has-icon-left","left"===c),s()(t,"has-icon-right","right"===c),s()(t,"has-text-left","left"===o),s()(t,"has-text-center","center"===o),s()(t,"has-text-right","right"===o),t)),"data-animation":m||void 0},N=b()("".concat(P,"__icon-container"),{"has-layout-stacked":"stacked"===p,"has-layout-framed":"framed"===p,"is-position-top":"top"===u,"is-position-middle":"middle"===u,"is-position-bottom":"bottom"===u}),A=wp.element.createElement("i",{className:a}),B={marginTop:w,marginBottom:h,marginLeft:v,marginRight:y},D={className:b()("".concat(P,"__icon-wrapper"),(n={"has-background":(_||O)&&"stacked"==p},s()(n,T,T&&"stacked"==p),s()(n,"has-text-color",k||E),s()(n,j,j),n)),style:i(e,"save")};return wp.element.createElement("div",R,wp.element.createElement("div",{style:B,className:N},d&&wp.element.createElement("a",l()({href:d,target:f,rel:g},D),A),!d&&wp.element.createElement("div",D,A)),wp.element.createElement("div",{className:"".concat(P,"__content")},wp.element.createElement(S.Content,null)))}}))},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(n,!0).forEach(function(t){s()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function i(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=_()(e);if(t()){var o=_()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return v()(this,n)}}var a=n(9),l=n.n(a),c=n(7),s=n.n(c),u=n(2),p=n.n(u),d=n(4),m=n.n(d),g=n(11),f=n.n(g),b=n(5),w=n.n(b),h=n(6),v=n.n(h),y=n(3),_=n.n(y),k=(n(0),n(179)),O=n(180),E=(n.n(O),n(58)),C=(n.n(E),n(22)),j=n(1),S=(n.n(j),n(8)),x=n.n(S),P=window,T=P.jQuery,R=wp.compose.compose,N=wp.element,A=N.Component,B=N.Fragment,D=wp.blockEditor||wp.editor,M=D.InnerBlocks,I=D.withColors,L=[["core/heading",{level:3,placeholder:Object(j.__)("Write heading…","getwid")}],["core/paragraph",{placeholder:Object(j.__)("Write text…","getwid")}]],z="wp-block-getwid-icon-box",V=function(e){function t(){var e;return p()(this,t),e=n.apply(this,arguments),e.changeState=e.changeState.bind(f()(e)),e.state={isLockedMargins:!1},e}w()(t,e);var n=i(t);return m()(t,[{key:"changeState",value:function(e,t){this.setState(s()({},e,t))}},{key:"render",value:function(){var e,t,n=this,r=this.props,i=r.attributes,a=i.marginTop,c=i.marginBottom,u=i.marginLeft,p=i.marginRight,d=i.icon,m=i.textAlignment,g=i.layout,f=i.iconPosition,b=i.iconStyle,w=i.link,h=i.hoverAnimation,v=r.prepareWrapperStyle,y=r.className,_=r.isSelected,O=r.backgroundColor,E=r.textColor,C={className:x()(y,(e={"getwid-animation":!!h},s()(e,"has-icon-left","left"===g),s()(e,"has-icon-right","right"===g),s()(e,"has-text-left","left"===m),s()(e,"has-text-center","center"===m),s()(e,"has-text-right","right"===m),s()(e,"is-selected",_),e)),"data-animation":h||void 0,onMouseEnter:function(e){return n.onIconHoverIn()}},j=x()("".concat(z,"__icon-container"),{"has-layout-stacked":"stacked"===b,"has-layout-framed":"framed"===b,"is-position-top":"top"===f,"is-position-middle":"middle"===f,"is-position-bottom":"bottom"===f}),S=wp.element.createElement("i",{className:d}),P={marginTop:a,marginBottom:c,marginLeft:u,marginRight:p},T={className:x()("".concat(z,"__icon-wrapper"),(t={"has-background":O.color&&"stacked"==b},s()(t,O.class,O.class&&"stacked"==b),s()(t,"has-text-color",E.color),s()(t,E.class,E.class),t)),style:v(this.props,"edit")},R=this.changeState,N=this.state.isLockedMargins;return wp.element.createElement(B,null,wp.element.createElement(k.a,l()({},o(o({},this.props),{},{isLockedMargins:N,changeState:R}),{key:"inspector"})),wp.element.createElement("div",C,wp.element.createElement("div",{style:P,className:j},w&&wp.element.createElement("a",l()({href:w},T,{onClick:function(e){return e.preventDefault()}}),S),!w&&wp.element.createElement("div",T,S)),wp.element.createElement("div",{className:"".concat(z,"__content")},wp.element.createElement(M,{template:L,templateInsertUpdatesSelection:!1,templateLock:!1}))))}},{key:"setupIconWrapper",value:function(){var e=this.props.clientId;this.iconWrapper=T("[data-block='".concat(e,"'] .wp-block-getwid-icon-box__icon-wrapper"))}},{key:"componentDidMount",value:function(){this.setupIconWrapper()}},{key:"componentDidUpdate",value:function(e){this.setupIconWrapper()}},{key:"onIconHoverIn",value:function(){var e=this.props.attributes.hoverAnimation;e&&Object(C.a)(this.iconWrapper,{animation:e})}}]),t}(A);t.a=R([I("backgroundColor",{textColor:"color"})])(V)},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=_()(e);if(t()){var o=_()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return v()(this,n)}}var o=n(15),i=n.n(o),a=n(7),l=n.n(a),c=n(13),s=n.n(c),u=n(2),p=n.n(u),d=n(4),m=n.n(d),g=n(11),f=n.n(g),b=n(5),w=n.n(b),h=n(6),v=n.n(h),y=n(3),_=n.n(y),k=(n(0),n(18)),O=n(24),E=n(17),C=n(16),j=n(19),S=n(14),x=n(1),P=(n.n(x),window),T=(P.jQuery,wp.element),R=T.Component,N=T.Fragment,A=wp.blockEditor||wp.editor,B=A.InspectorControls,D=(A.PanelColorSettings,A.URLInput),M=A.withColors,I=wp.components,L=I.PanelBody,z=I.BaseControl,V=I.RangeControl,F=I.TextControl,H=I.SelectControl,G=I.RadioControl,W=I.ToggleControl,U=wp.compose.compose,q=function(e){function t(){var e;return p()(this,t),e=n.apply(this,arguments),e.onSetNewTab=e.onSetNewTab.bind(f()(e)),e.onSetLinkRel=e.onSetLinkRel.bind(f()(e)),e.changeState=e.changeState.bind(f()(e)),e.state={tabName:"general"},e}w()(t,e);var n=r(t);return m()(t,[{key:"changeState",value:function(e,t){"object"==s()(e)?this.setState(e):"string"==typeof e&&this.setState(l()({},e,t))}},{key:"onSetNewTab",value:function(e){var t=this.props.attributes.rel,n=e?"_blank":void 0,r=t;n&&!t?r="noreferrer noopener":n||"noreferrer noopener"!==t||(r=void 0),this.props.setAttributes({linkTarget:n,rel:r})}},{key:"onSetLinkRel",value:function(e){this.props.setAttributes({rel:e})}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.icon,r=t.layout,o=t.textAlignment,a=t.iconPosition,l=t.iconStyle,c=t.iconSize,s=t.padding,u=t.borderWidth,p=t.borderRadius,d=t.link,m=t.hoverAnimation,g=t.linkTarget,f=t.rel,b=e.setAttributes,w=e.setBackgroundColor,h=e.setTextColor,v=e.customBackgroundColor,y=e.customTextColor,_=e.backgroundColor,P=e.textColor,T=this.state.tabName,R=this.changeState,A="stacked"===l||"framed"===l;return wp.element.createElement(B,null,wp.element.createElement(j.a,{state:T,stateName:"tabName",onChangeTab:R,tabs:["general","style","advanced"]}),"general"===T&&wp.element.createElement(N,null,wp.element.createElement(L,null,wp.element.createElement(z,{label:Object(x.__)("Icon","getwid")},wp.element.createElement(k.a,{value:n,onChange:function(e){return b({icon:e})}})),wp.element.createElement(G,{label:Object(x.__)("Layout","getwid"),selected:r||"",options:[{value:"",label:Object(x.__)("Default","getwid")},{value:"left",label:Object(x.__)("Align Icon Left","getwid")},{value:"right",label:Object(x.__)("Align Icon Right","getwid")}],onChange:function(e){return b({layout:e})}}),("left"==r||"right"==r)&&wp.element.createElement(H,{label:Object(x.__)("Icon Vertical Alignment","getwid"),value:a,options:[{value:"top",label:Object(x.__)("Top","getwid")},{value:"middle",label:Object(x.__)("Middle","getwid")},{value:"bottom",label:Object(x.__)("Bottom","getwid")}],onChange:function(e){return b({iconPosition:e})}}),wp.element.createElement(H,{label:Object(x.__)("Content Alignment","getwid"),value:o,options:[{value:"left",label:Object(x.__)("Left","getwid")},{value:"center",label:Object(x.__)("Center","getwid")},{value:"right",label:Object(x.__)("Right","getwid")}],onChange:function(e){return b({textAlignment:e})}}),wp.element.createElement(z,{label:Object(x.__)("Icon Link","getwid"),className:"getwid-editor-url-input"},wp.element.createElement(D,{autoFocus:!1,value:d,onChange:function(e){return b({link:e})}})),wp.element.createElement(z,null,wp.element.createElement(W,{label:Object(x.__)("Open in New Tab","getwid"),checked:"_blank"===g,onChange:this.onSetNewTab})),wp.element.createElement(F,{label:Object(x.__)("Link Rel","getwid"),value:f||"",onChange:this.onSetLinkRel}))),"style"===T&&wp.element.createElement(N,null,wp.element.createElement(L,null,wp.element.createElement(G,{label:Object(x.__)("Icon Style","getwid"),selected:void 0!==l?l:"default",options:[{value:"default",label:Object(x.__)("Icon","getwid")},{value:"stacked",label:Object(x.__)("Background","getwid")},{value:"framed",label:Object(x.__)("Outline","getwid")}],onChange:function(e){return b({iconStyle:e})}}),wp.element.createElement(C.a,{colorSettings:[{title:Object(x.__)("Icon Color","getwid"),colors:{customColor:y,defaultColor:P},changeColor:h}].concat(i()(A&&"stacked"==l?[{title:Object(x.__)("Icon Background Color","getwid"),colors:{customColor:v,defaultColor:_},changeColor:w}]:[]))}),"framed"===l&&wp.element.createElement(F,{type:"number",label:Object(x.__)("Border Size","getwid"),value:void 0!==u?u:"",onChange:function(e){e=parseInt(e),isNaN(e)&&(e=void 0),b({borderWidth:e})},min:0,step:1,placeholder:"1"}),("framed"===l||"stacked"===l)&&wp.element.createElement(V,{label:Object(x.__)("Border Radius","getwid"),value:void 0!==p?p:"",onChange:function(e){b({borderRadius:e})},min:0,step:1,max:100,placeholder:"0"}),wp.element.createElement(E.a,{label:Object(x.__)("Icon Size","getwid"),value:c,onChange:function(e){b({iconSize:e})}}),wp.element.createElement(F,{type:"number",label:Object(x.__)("Space Around Icon","getwid"),value:s,onChange:function(e){e=parseInt(e),isNaN(e)&&(e=void 0),b({padding:e})},min:0,step:1})),wp.element.createElement(L,{title:Object(x.__)("Margin","getwid"),initialOpen:!1},Object(S.c)(this))),"advanced"===T&&wp.element.createElement(N,null,wp.element.createElement(L,null,wp.element.createElement(O.a,{label:Object(x.__)("Icon Hover Animation","getwid"),value:void 0!==m?m:"",onChange:function(e){return b({hoverAnimation:e})},allowAnimation:["Seeker","Icon"]}))))}}]),t}(R);t.a=U([M("backgroundColor",{textColor:"color"})])(q)},function(e,t){},function(e,t,n){"use strict";var r={backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},textAlignment:{type:"string",default:"center"},icon:{type:"string",default:"fab fa-wordpress"},layout:{type:"string"},iconPosition:{type:"string",default:"top"},iconStyle:{type:"string",default:"default"},primaryColor:{type:"string"},secondaryColor:{type:"string"},iconSize:{type:"string"},padding:{type:"number"},marginTop:{type:"string"},marginBottom:{type:"string"},marginLeft:{type:"string"},marginRight:{type:"string"},borderWidth:{type:"number"},borderRadius:{type:"number",default:50},link:{type:"string",source:"attribute",selector:"a.wp-block-getwid-icon-box__icon-wrapper",attribute:"href"},align:{type:"string"},hoverAnimation:{type:"string",source:"attribute",selector:".wp-block-getwid-icon-box",attribute:"data-animation"},linkTarget:{type:"string",source:"attribute",selector:"a.wp-block-getwid-icon-box__icon-wrapper",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a.wp-block-getwid-icon-box__icon-wrapper",attribute:"rel"}};t.a=r},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(n,!0).forEach(function(t){a()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var i=n(7),a=n.n(i),l=(n(0),n(183)),c=n(186),s=n(187),u=n(59),p=n(12),d=n(60),m=(n.n(d),n(1)),g=(n.n(m),window),f=(g.jQuery,wp.data.select),b=wp.blocks,w=b.registerBlockType,h=b.createBlock,v=["left","center","right","wide","full"];w("getwid/banner",o(o({title:Object(m.__)("Banner","getwid"),description:Object(m.__)("Link an image or video with a text overlay.","getwid"),category:"getwid-blocks",icon:wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 24 24"},wp.element.createElement("rect",{x:"14",y:"5",width:"6",height:"2"}),wp.element.createElement("rect",{x:"14",y:"9",width:"6",height:"2"}),wp.element.createElement("polygon",{points:"8,4 9.1,5.2 10.8,5.2 10.8,6.9 12,8 10.8,9.1 10.8,10.8 9.1,10.8 8,12 6.9,10.8 5.2,10.8 5.2,9.1 4,8 5.2,6.9 5.2,5.2 6.9,5.2 "}),wp.element.createElement("polygon",{points:"17.6,15 10.3,12.6 11.9,20.1 13.8,18.4 17,21.9 18.9,20.2 15.7,16.7"}),wp.element.createElement("g",null,wp.element.createElement("polygon",{points:"0,0 0,16 9,16 8.6,14 2,14 2,2 22,2 22,14 19.3,14 19.7,16 24,16 24,0"}))),supports:{inserter:!Getwid.disabled_blocks.includes("getwid/banner")},keywords:[Object(m.__)("image","getwid"),Object(m.__)("cover","getwid")],deprecated:[{attributes:u.a,save:s.a}],transforms:{from:[{type:"block",blocks:["core/image"],transform:function(e){return h("getwid/banner",{id:e.id,url:e.url,title:e.caption})}},{type:"block",blocks:["core/media-text"],transform:function(e){var t=f("core/editor").getSelectedBlockClientId(),n=f("core/editor").getBlock(t).innerBlocks,r={text:""};return n.length&&jQuery.each(n,function(e,t){"core/paragraph"==t.name&&(r.text=t.attributes.content)}),h("getwid/banner",{id:e.mediaId,url:e.mediaUrl,text:r.text})}},{type:"block",blocks:["core/cover"],transform:function(e){return h("getwid/banner",{id:e.id,url:e.url,title:e.caption})}}],to:[{type:"block",blocks:["core/cover"],transform:function(e){return h("core/cover",{id:e.id,url:e.url,caption:e.title?e.title:e.text?e.text:""})}},{type:"block",blocks:["core/image"],transform:function(e){return h("core/image",{id:e.id,url:e.url,caption:e.title?e.title:e.text?e.text:""})}},{type:"block",blocks:["getwid/image-box"],transform:function(e){return h("getwid/image-box",{id:e.id,url:e.url},[h("core/heading",{content:e.title}),h("core/paragraph",{content:e.text})])}},{type:"block",blocks:["core/media-text"],transform:function(e){return h("core/media-text",{mediaId:e.id,mediaUrl:e.url,mediaType:"image"},[h("core/paragraph",{content:e.text})])}},{type:"block",blocks:["core/cover"],transform:function(e){return h("core/cover",{id:e.id,url:e.url})}},{type:"block",blocks:["core/heading"],transform:function(e){return h("core/heading",{content:e.title})}},{type:"block",blocks:["core/paragraph"],transform:function(e){return h("core/paragraph",{content:e.text})}}]},attributes:u.a,getEditWrapperProps:function(e){var t=e.align;if(-1!==v.indexOf(t))return{"data-align":t}}},Object(p.b)("getwid/banner",l.a)),{},{save:c.a}))},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(n,!0).forEach(function(t){s()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function i(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=O()(e);if(t()){var o=O()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return _()(this,n)}}var a=n(9),l=n.n(a),c=n(7),s=n.n(c),u=n(33),p=n.n(u),d=n(2),m=n.n(d),g=n(4),f=n.n(g),b=n(11),w=n.n(b),h=n(5),v=n.n(h),y=n(6),_=n.n(y),k=n(3),O=n.n(k),E=(n(0),n(1)),C=(n.n(E),n(8)),j=n.n(C),S=n(10),x=(n.n(S),n(59)),P=n(184),T=n(185),R=(n.n(T),n(60)),N=(n.n(R),wp.compose.compose),A=wp.data.withSelect,B=wp.element,D=B.Component,M=B.Fragment,I=wp.components,L=I.ToolbarButton,z=I.ToggleControl,V=I.ToolbarGroup,F=I.Dashicon,H=wp.blockEditor||wp.editor,G=H.BlockControls,W=H.BlockAlignmentToolbar,U=H.MediaPlaceholder,q=H.MediaUpload,Q=H.MediaUploadCheck,K=H.RichText,Y=H.URLInput,J=H.withColors,$=["wide","full"],Z=["image","video"],X="wp-block-getwid-banner",ee=["core/bold","core/italic","core/link","core/image","core/strikethrough","core/text-color"],te=function(e){function t(){var e;return m()(this,t),e=n.apply(this,arguments),e.onSetNewTab=e.onSetNewTab.bind(w()(e)),e}v()(t,e);var n=i(t);return f()(t,[{key:"onSetNewTab",value:function(e){var t=this.props.attributes.rel,n=e?"_blank":void 0,r=t;n&&!t?r="noreferrer noopener":n||"noreferrer noopener"!==t||(r=void 0),this.props.setAttributes({linkTarget:n,rel:r})}},{key:"render",value:function(){var e,t=this,n=this.props,r=n.setAttributes,i=n.isSelected,a=n.className,c=n.backgroundColor,u=n.textColor,d=this.props.attributes,m=d.id,g=d.url,f=d.type,b=d.title,w=d.text,h=d.link,v=d.align,y=d.minHeight,_=d.contentMaxWidth,k=d.verticalAlign,O=d.horizontalAlign,C=this.props.attributes,T=C.backgroundOpacity,R=C.blockAnimation,N=C.textAnimation,A=C.customTextColor,B=C.linkTarget,D=function(e,t){if(!e)return void r({url:void 0,id:void 0});var n;if(e.media_type)n="image"===e.media_type?"image":"video";else{if("image"!==e.type&&"video"!==e.type)return;n=e.type}var o=Object(S.get)(e,["sizes",t,"url"])||Object(S.get)(e,["media_details","sizes",t,"source_url"])||e.url;r({id:e.id,url:void 0!==o?o:g,type:n})},I=function(e){var n=t.props.attributes.imageSize;["full","large","medium","thumbnail"].includes(n)||(p()("imageSize"),n=x.a.imageSize.default,r({imageSize:n})),D(e,n)},H={className:j()("".concat(X,"__wrapper"),s()({"has-background":c.color},c.class,c.class)),style:{backgroundColor:this.props.backgroundColor.color?this.props.backgroundColor.color:this.props.attributes.customBackgroundColor}},J={className:j()("".concat(X,"__caption"),s()({"has-text-color":u.color},u.class,u.class)),style:{color:void 0!==this.props.attributes.textColor&&void 0===this.props.attributes.textColor.class?this.props.textColor.color:A||void 0,minHeight:y}},te={className:j()(a,(e={},s()(e,"has-animation-".concat(R),"none"!=R),s()(e,"has-text-animation-".concat(N),"none"!=N&&!i),s()(e,"has-foreground-".concat(T),35!=T),s()(e,"has-vertical-alignment-".concat(k),"center"!=k),s()(e,"has-horizontal-alignment-".concat(O),"center"!=O),e),v?"align".concat(v):null)},ne=wp.element.createElement(M,null,wp.element.createElement(G,null,wp.element.createElement(W,{controls:$,value:v,onChange:function(e){return r({align:e})}}),!!g&&wp.element.createElement(M,null,wp.element.createElement(Q,null,wp.element.createElement(V,null,wp.element.createElement(q,{onSelect:I,allowedTypes:Z,value:m,render:function(e){var t=e.open;return wp.element.createElement(L,{className:"components-toolbar__control",label:Object(E.__)("Edit Media","getwid"),icon:"edit",onClick:t})}}))))),!!g&&wp.element.createElement(P.a,l()({},o(o({setAttributes:r},this.props),{},{changeImageSize:D,onSelectMedia:I}),{key:"inspector"})));if(!g){var re=!K.isEmpty(b),oe=re?void 0:"format-image",ie=re?wp.element.createElement(M,null,wp.element.createElement(K,{tagName:"p",value:b,onChange:function(e){return r({title:e})}}),wp.element.createElement(K,{tagName:"p",value:w,onChange:function(e){return r({text:e})}})):Object(E.__)("Banner","getwid");return wp.element.createElement(M,null,ne,wp.element.createElement(U,{icon:oe,className:X,labels:{title:ie},onSelect:I,accept:"image/*",allowedTypes:Z}))}return wp.element.createElement(M,null,ne,wp.element.createElement("div",te,wp.element.createElement(M,null,!!g&&wp.element.createElement("div",H,"video"===f&&g?wp.element.createElement("video",{className:"".concat(X,"__video ").concat(X,"__source"),autoPlay:!0,muted:!0,loop:!0,src:g}):wp.element.createElement("img",{src:g,alt:"",className:"".concat(X,"__image ").concat(X,"__source")}),wp.element.createElement(M,null,wp.element.createElement("div",J,wp.element.createElement("div",{style:{maxWidth:_},className:"".concat(X,"__caption-wrapper")},wp.element.createElement(K,{tagName:"span",className:"".concat(X,"__title"),placeholder:Object(E.__)("Write heading…","getwid"),value:b,onChange:function(e){return r({title:e})},allowedFormats:ee}),wp.element.createElement(K,{tagName:"p",className:"".concat(X,"__text"),placeholder:Object(E.__)("Write text…","getwid"),value:w,onChange:function(e){return r({text:e})},allowedFormats:ee}))))))),i&&wp.element.createElement(M,null,wp.element.createElement("div",{className:"".concat(X,"__url-field")},wp.element.createElement(F,{icon:"admin-links"}),wp.element.createElement(Y,{className:"has-border",autoFocus:!1,value:h,onChange:function(e){return r({link:e})}}),wp.element.createElement(z,{label:Object(E.__)("Open in New Tab","getwid"),onChange:this.onSetNewTab,checked:"_blank"===B}))))}}]),t}(D);t.a=N([A(function(e,t){var n=e("core"),r=n.getMedia,o=t.attributes.id;if(void 0!==o)return{imgObj:o?r(o):null}}),J("backgroundColor",{textColor:"color"})])(te)},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=v()(e);if(t()){var o=v()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return w()(this,n)}}n.d(t,"a",function(){return V});var o=n(7),i=n.n(o),a=n(13),l=n.n(a),c=n(2),s=n.n(c),u=n(4),p=n.n(u),d=n(11),m=n.n(d),g=n(5),f=n.n(g),b=n(6),w=n.n(b),h=n(3),v=n.n(h),y=(n(0),n(1)),_=(n.n(y),n(17)),k=n(19),O=n(16),E=wp.element,C=E.Component,j=E.Fragment,S=wp.blockEditor||wp.editor,x=S.InspectorControls,P=S.MediaPlaceholder,T=S.MediaUpload,R=S.URLInput,N=wp.components,A=N.Button,B=N.BaseControl,D=N.PanelBody,M=N.RangeControl,I=N.TextControl,L=N.SelectControl,z=(N.CheckboxControl,["image","video"]),V=function(e){function t(){var e;return s()(this,t),e=n.apply(this,arguments),e.onSetLinkRel=e.onSetLinkRel.bind(m()(e)),e.changeState=e.changeState.bind(m()(e)),e.state={tabName:"general"},e}f()(t,e);var n=r(t);return p()(t,[{key:"changeState",value:function(e,t){"object"==l()(e)?this.setState(e):"string"==typeof e&&this.setState(i()({},e,t))}},{key:"onSetLinkRel",value:function(e){this.props.setAttributes({rel:e})}},{key:"render",value:function(){var e=this.props.attributes,t=e.link,n=e.backgroundOpacity,r=e.blockAnimation,o=e.textAnimation,i=e.rel,a=this.props,l=a.setAttributes,c=a.setBackgroundColor,s=a.setTextColor,u=a.backgroundColor,p=a.textColor,d=a.customBackgroundColor,m=a.customTextColor,g=this.state.tabName,f=this.changeState;return wp.element.createElement(x,null,wp.element.createElement(k.a,{state:g,stateName:"tabName",onChangeTab:f,tabs:["general","style","advanced"]}),"general"===g&&wp.element.createElement(j,null,this.renderGeneralSettings()),"style"===g&&wp.element.createElement(j,null,wp.element.createElement(D,null,wp.element.createElement(M,{label:Object(y.__)("Overlay Opacity","getwid"),value:n,onChange:function(e){return l({backgroundOpacity:e})},min:0,max:100,step:5}),wp.element.createElement(O.a,{colorSettings:[{title:Object(y.__)("Text Color","getwid"),colors:{customColor:m,defaultColor:p},changeColor:s},{title:Object(y.__)("Overlay Color","getwid"),colors:{customColor:d,defaultColor:u},changeColor:c}]}))),"advanced"===g&&wp.element.createElement(D,{title:Object(y.__)("Animation","getwid"),initialOpen:!0},wp.element.createElement(L,{label:Object(y.__)("Block Animation","getwid"),value:r,onChange:function(e){return l({blockAnimation:e})},options:[{value:"none",label:Object(y.__)("None","getwid")},{value:"style1",label:Object(y.__)("Aries","getwid")},{value:"style2",label:Object(y.__)("Taurus","getwid")},{value:"style3",label:Object(y.__)("Gemini","getwid")},{value:"style4",label:Object(y.__)("Cancer","getwid")},{value:"style5",label:Object(y.__)("Leo","getwid")},{value:"style6",label:Object(y.__)("Virgo","getwid")}]}),wp.element.createElement(L,{label:Object(y.__)("Text Animation","getwid"),value:o,onChange:function(e){return l({textAnimation:e})},options:[{value:"none",label:Object(y.__)("None","getwid")},{value:"opacity",label:Object(y.__)("Fade In","getwid")},{value:"opacity-top",label:Object(y.__)("Fade In Up","getwid")},{value:"opacity-bottom",label:Object(y.__)("Fade In Down","getwid")},{value:"opacity-left",label:Object(y.__)("Fade In Left","getwid")},{value:"opacity-right",label:Object(y.__)("Fade In Right","getwid")},{value:"opacity-zoom-in",label:Object(y.__)("Zoom In","getwid")},{value:"opacity-zoom-out",label:Object(y.__)("Zoom Out","getwid")}]}),wp.element.createElement(B,{className:"getwid-editor-url-input",label:Object(y.__)("Link","getwid")},wp.element.createElement(R,{autoFocus:!1,value:t,onChange:function(e){return l({link:e})}})),wp.element.createElement(I,{label:Object(y.__)("Link Rel","getwid"),value:i||"",onChange:this.onSetLinkRel})))}},{key:"renderGeneralSettings",value:function(){var e=function(e){void 0!==m&&(d({imageSize:e}),p(m,e))},t=this.props.attributes,n=t.imageSize,r=t.id,o=t.url,i=t.type,a=t.minHeight,l=t.contentMaxWidth,c=t.verticalAlign,s=t.horizontalAlign,u=this.props,p=u.changeImageSize,d=u.setAttributes,m=u.imgObj,g=u.onSelectMedia;return wp.element.createElement(D,{title:Object(y.__)("Settings","getwid"),initialOpen:!0},!o&&wp.element.createElement(P,{icon:"format-image",labels:{title:Object(y.__)("Image","getwid"),instructions:Object(y.__)("Upload an image file, pick one from your media library, or add one with a URL.","getwid")},onSelect:g,accept:"image/*",allowedTypes:z}),o&&wp.element.createElement(T,{onSelect:g,allowedTypes:z,value:r,render:function(e){var t=e.open;return wp.element.createElement(B,null,!!o&&"video"!=i&&wp.element.createElement("div",{onClick:t,className:"getwid-background-image-wrapper"},wp.element.createElement("img",{src:o})),!!o&&"video"==i&&wp.element.createElement(j,null,wp.element.createElement("video",{controls:!0},wp.element.createElement("source",{src:o,type:"video/mp4"}),wp.element.createElement("span",null,Object(y.__)("Your browser does not support the video tag.","getwid")))),wp.element.createElement(A,{isPrimary:!0,onClick:t},"image"==i&&wp.element.createElement(j,null,!r&&Object(y.__)("Select Image","getwid"),!!r&&Object(y.__)("Replace Image","getwid")),"video"==i&&wp.element.createElement(j,null,!r&&Object(y.__)("Select Video","getwid"),!!r&&Object(y.__)("Replace Video","getwid"))))}}),m&&"image"==i&&wp.element.createElement(L,{label:Object(y.__)("Image Size","getwid"),help:Object(y.__)("For images from Media Library only.","getwid"),value:n,onChange:e,options:Getwid.settings.image_sizes}),wp.element.createElement(L,{label:Object(y.__)("Text Horizontal Alignment","getwid"),value:s||"center",onChange:function(e){return d({horizontalAlign:e})},options:[{value:"left",label:Object(y.__)("Left","getwid")},{value:"center",label:Object(y.__)("Center","getwid")},{value:"right",label:Object(y.__)("Right","getwid")}]}),wp.element.createElement(L,{label:Object(y.__)("Text Vertical Alignment","getwid"),value:c||"center",onChange:function(e){return d({verticalAlign:e})},options:[{value:"top",label:Object(y.__)("Top","getwid")},{value:"center",label:Object(y.__)("Middle","getwid")},{value:"bottom",label:Object(y.__)("Bottom","getwid")}]}),wp.element.createElement(_.a,{label:Object(y.__)("Block Height","getwid"),value:a,units:[{label:"px",value:"px"},{label:"vh",value:"vh"},{label:"vw",value:"vw"},{label:"%",value:"%"}],onChange:function(e){return d({minHeight:e})}}),wp.element.createElement(_.a,{label:Object(y.__)("Text Width","getwid"),value:l,units:[{label:"px",value:"px"},{label:"vh",value:"vh"},{label:"vw",value:"vw"},{label:"%",value:"%"}],onChange:function(e){return d({contentMaxWidth:e})}}))}}]),t}(C)},function(e,t){},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=f()(e);if(t()){var o=f()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var o=n(7),i=n.n(o),a=n(2),l=n.n(a),c=n(4),s=n.n(c),u=n(5),p=n.n(u),d=n(6),m=n.n(d),g=n(3),f=n.n(g),b=(n(0),n(1)),w=(n.n(b),n(8)),h=n.n(w),v=window,y=(v.jQuery,wp.data.select,wp.element),_=y.Component,k=y.Fragment,O=wp.blocks,E=(O.registerBlockType,O.createBlock,wp.blockEditor||wp.editor),C=E.RichText,j=E.getColorClassName,S="wp-block-getwid-banner",x=function(e){function t(){return l()(this,t),n.apply(this,arguments)}p()(t,e);var n=r(t);return s()(t,[{key:"render",value:function(){var e,t=this.props.attributes,n=t.id,r=t.url,o=t.type,a=t.title,l=t.text,c=t.link,s=t.align,u=t.minHeight,p=t.contentMaxWidth,d=t.verticalAlign,m=t.horizontalAlign,g=t.rel,f=t.linkTarget,b=t.backgroundColor,w=t.textColor,v=t.customBackgroundColor,y=t.customTextColor,_=t.backgroundOpacity,O=t.blockAnimation,E=t.textAnimation,x=t.className,P=j("color",w),T=j("background-color",b),R={className:h()("".concat(S,"__wrapper"),i()({"has-background":b||v},T,T)),style:{backgroundColor:this.props.attributes.backgroundColor?void 0:this.props.attributes.customBackgroundColor}},N={className:h()("".concat(S,"__caption"),i()({"has-text-color":w||y},P,P)),style:{color:void 0!==w?void 0:y,minHeight:u}},A={className:h()(x,(e={},i()(e,"has-animation-".concat(O),"none"!=O),i()(e,"has-text-animation-".concat(E),"none"!=E),i()(e,"has-foreground-".concat(_),35!=_),i()(e,"has-vertical-alignment-".concat(d),"center"!=d),i()(e,"has-horizontal-alignment-".concat(m),"center"!=m),e),s?"align".concat(s):null)};return wp.element.createElement("div",A,wp.element.createElement("a",{href:void 0!==c?c:"#",target:f,rel:g,className:"".concat(S,"__link")},!!r&&wp.element.createElement("div",R,"video"===o&&r?wp.element.createElement("video",{className:"".concat(S,"__video ").concat(S,"__source"),autoPlay:!0,muted:!0,loop:!0,src:r}):wp.element.createElement("img",{src:r,alt:"",className:"".concat(S,"__image ").concat(S,"__source ")+(n?"wp-image-".concat(n):"")}),wp.element.createElement(k,null,wp.element.createElement("div",N,wp.element.createElement("div",{style:{maxWidth:p},className:"".concat(S,"__caption-wrapper")},!C.isEmpty(a)&&wp.element.createElement(C.Content,{tagName:"span",className:"".concat(S,"__title"),value:a}),!C.isEmpty(l)&&wp.element.createElement(C.Content,{tagName:"p",className:"".concat(S,"__text"),value:l})))))))}}]),t}(_);t.a=x},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=f()(e);if(t()){var o=f()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var o=n(7),i=n.n(o),a=n(2),l=n.n(a),c=n(4),s=n.n(c),u=n(5),p=n.n(u),d=n(6),m=n.n(d),g=n(3),f=n.n(g),b=(n(0),n(1)),w=(n.n(b),n(8)),h=n.n(w),v=window,y=(v.jQuery,wp.data.select,wp.element),_=y.Component,k=y.Fragment,O=wp.blocks,E=(O.registerBlockType,O.createBlock,wp.blockEditor||wp.editor),C=E.RichText,j=E.getColorClassName,S="wp-block-getwid-banner",x=function(e){function t(){return l()(this,t),n.apply(this,arguments)}p()(t,e);var n=r(t);return s()(t,[{key:"render",value:function(){var e,t=this.props.attributes,n=t.videoAutoplay,r=t.id,o=t.url,a=t.type,l=t.title,c=t.text,s=t.link,u=t.align,p=t.minHeight,d=t.contentMaxWidth,m=t.verticalAlign,g=t.horizontalAlign,f=t.rel,b=t.linkTarget,w=t.backgroundColor,v=t.textColor,y=t.customBackgroundColor,_=t.customTextColor,O=t.backgroundOpacity,E=t.blockAnimation,x=t.textAnimation,P=t.className,T=j("color",v),R=j("background-color",w),N={className:h()("".concat(S,"__wrapper"),i()({"has-background":w||y},R,R)),style:{backgroundColor:this.props.attributes.backgroundColor?void 0:this.props.attributes.customBackgroundColor}},A={className:h()("".concat(S,"__caption"),i()({"has-text-color":v||_},T,T)),style:{color:void 0!==v?void 0:_,minHeight:p}},B={className:h()(P,(e={},i()(e,"has-animation-".concat(E),"none"!=E),i()(e,"has-text-animation-".concat(x),"none"!=x),i()(e,"has-foreground-".concat(O),35!=O),i()(e,"has-vertical-alignment-".concat(m),"center"!=m),i()(e,"has-horizontal-alignment-".concat(g),"center"!=g),e),u?"align".concat(u):null)};return wp.element.createElement("div",B,wp.element.createElement("a",{href:void 0!==s?s:"#",target:b,rel:f,className:"".concat(S,"__link")},!!o&&wp.element.createElement("div",N,"video"===a&&o?wp.element.createElement("video",{className:"".concat(S,"__video ").concat(S,"__source"),autoPlay:n,muted:!0,loop:!0,src:o}):wp.element.createElement("img",{src:o,alt:"",className:"".concat(S,"__image ").concat(S,"__source ")+(r?"wp-image-".concat(r):null)}),wp.element.createElement(k,null,wp.element.createElement("div",A,wp.element.createElement("div",{style:{maxWidth:d},className:"".concat(S,"__caption-wrapper")},!C.isEmpty(l)&&wp.element.createElement(C.Content,{tagName:"span",className:"".concat(S,"__title"),value:l}),!C.isEmpty(c)&&wp.element.createElement(C.Content,{tagName:"p",className:"".concat(S,"__text"),value:c})))))))}}]),t}(_);t.a=x},function(e,t,n){"use strict";n(189),n(196)},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(n,!0).forEach(function(t){a()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var i=n(7),a=n.n(i),l=(n(0),n(1)),c=(n.n(l),n(61)),s=n(192),u=n(193),p=n(194),d=n(12),m=n(195),g=wp.components,f=(g.SVG,g.Path,wp.data.select),b=wp.blocks.createBlock,w=wp.blocks.registerBlockType,h="wp-block-getwid-tabs";w("getwid/tabs",o(o({title:Object(l.__)("Tabs","getwid"),icon:wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},wp.element.createElement("path",{d:"M17,2H10V0H0V24H24V2ZM10,4h5V6H10ZM22,22H2V2H8V8H22ZM22,6H17V4h5Z"})),category:"getwid-blocks",supports:{align:["wide","full"],inserter:!Getwid.disabled_blocks.includes("getwid/tabs")},getEditWrapperProps:function(e){var t=e.align;if(["wide","full"].includes(t))return{"data-align":t}},deprecated:[{attributes:u.a,migrate:function(e,t){return[{align:e.align,active:e.active,type:e.iconPosition,headerTag:e.headerTag},e.items.map(function(t,n){return b("getwid/tabs-item",{title:e.titles[n].content},[b("core/paragraph",{placeholder:Object(l.__)("Write heading…","getwid"),content:t.content})])})]},save:function(e){return wp.element.createElement(p.a,o(o({},e),{},{baseClass:h}))}}],transforms:{to:[{type:"block",blocks:["getwid/toggle"],transform:function(){var e=f("core/block-editor"),t=e.getBlock,n=e.getSelectedBlockClientId,r=n(),o=t(r).attributes,i=t(r).innerBlocks;if(i.length)return b("getwid/toggle",{align:o.align,headerTag:o.headerTag},i.map(function(e,t){return b("getwid/toggle-item",{title:e.attributes.title,active:t==parseInt(o.active,10)},e.innerBlocks)}))}},{type:"block",blocks:["getwid/accordion"],transform:function(){var e=f("core/block-editor"),t=e.getBlock,n=e.getSelectedBlockClientId,r=n(),o=t(r).attributes,i=t(r).innerBlocks;if(i.length)return b("getwid/accordion",{align:o.align,active:o.active,headerTag:o.headerTag},i.map(function(e,t){return b("getwid/accordion-item",{title:e.attributes.title},e.innerBlocks)}))}}]},attributes:s.a},Object(d.b)("getwid/tabs",function(e){return wp.element.createElement(c.b,o(o({},e),{},{baseClass:h}))})),{},{save:function(e){return wp.element.createElement(m.a,o(o({},e),{},{baseClass:h}))}}))},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=m()(e);if(t()){var o=m()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p()(this,n)}}var o=n(2),i=n.n(o),a=n(4),l=n.n(a),c=n(5),s=n.n(c),u=n(6),p=n.n(u),d=n(3),m=n.n(d),g=(n(0),n(1)),f=(n.n(g),n(10)),b=(n.n(f),n(12)),w=wp.element.Component,h=wp.blockEditor||wp.editor,v=h.InspectorControls,y=wp.components,_=y.PanelBody,k=y.SelectControl,O=(y.BaseControl,y.CheckboxControl,window),E=O.jQuery,C=function(e){function t(){return i()(this,t),n.apply(this,arguments)}s()(t,e);var n=r(t);return l()(t,[{key:"render",value:function(){var e=this.props.attributes,t=e.active,n=e.headerTag,r=e.type,o=this.props,i=o.setAttributes,a=o.getState,l=(o.changeState,this.props),c=l.clientId,s=l.getBlock,u=(l.updateBlockAttributes,a("selectedTab"),s(c));if(u&&u.innerBlocks,!u)return wp.element.createElement(v,null);var p=[];E.each(u.innerBlocks,function(e,t){var n={};n.content=t.attributes.title,p.push(n)});var d=Object(b.d)(p);return wp.element.createElement(v,null,wp.element.createElement(_,{title:Object(g.__)("Settings","getwid")},wp.element.createElement(k,{label:Object(g.__)("Title Tag","getwid"),value:n,options:[{value:"span",label:Object(g.__)("Paragraph","getwid")},{value:"h2",label:Object(g.__)("Heading 2","getwid")},{value:"h3",label:Object(g.__)("Heading 3","getwid")},{value:"h4",label:Object(g.__)("Heading 4","getwid")},{value:"h5",label:Object(g.__)("Heading 5","getwid")},{value:"h6",label:Object(g.__)("Heading 6","getwid")}],onChange:function(e){return i({headerTag:e})}}),wp.element.createElement(k,{label:Object(g.__)("Layout","getwid"),value:r,options:[{value:"",label:Object(g.__)("Horizontal Left","getwid")},{value:"horizontal-center",label:Object(g.__)("Horizontal Center","getwid")},{value:"horizontal-right",label:Object(g.__)("Horizontal Right","getwid")},{value:"vertical-left",label:Object(g.__)("Vertical Left","getwid")},{value:"vertical-right",label:Object(g.__)("Vertical Right","getwid")}],onChange:function(e){return i({type:e})}}),wp.element.createElement(k,{label:Object(g.__)("Active by default","getwid"),value:t,options:Object(f.times)(u.innerBlocks.length,function(e){return{value:e,label:d[e].length>30?d[e].substr(0,30)+"...":d[e]}}),onChange:function(e){i({active:e})}})))}}]),t}(w);t.a=C},function(e,t){},function(e,t,n){"use strict";var r={align:{type:"string"},active:{type:"string",source:"attribute",selector:".wp-block-getwid-tabs",attribute:"data-active-tab"},type:{type:"string",default:""},headerTag:{type:"string",default:"span"}};t.a=r},function(e,t,n){"use strict";var r={align:{type:"string"},titles:{type:"array",selector:".wp-block-getwid-tabs__title",source:"query",query:{content:{type:"string",source:"html"}},default:[]},items:{type:"array",source:"query",selector:".wp-block-getwid-tabs__tab-content",query:{content:{type:"string",source:"html"}},default:[]},active:{type:"string",source:"attribute",selector:".wp-block-getwid-tabs",attribute:"data-active-tab"},type:{type:"string",default:""},headerTag:{type:"string",default:"span"}};t.a=r},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=f()(e);if(t()){var o=f()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var o=n(7),i=n.n(o),a=n(2),l=n.n(a),c=n(4),s=n.n(c),u=n(5),p=n.n(u),d=n(6),m=n.n(d),g=n(3),f=n.n(g),b=(n(0),n(8)),w=n.n(b),h=n(62),v=(n.n(h),n(1)),y=(n.n(v),window),_=(y.jQuery,wp.element),k=_.Component,O=(_.Fragment,wp.editor.RichText),E="wp-block-getwid-tabs",C=function(e){function t(){return l()(this,t),n.apply(this,arguments)}p()(t,e);var n=r(t);return s()(t,[{key:"render",value:function(){var e=this.props.attributes,t=e.titles,n=e.items,r=e.type,o=e.active,a=e.headerTag,l=e.className,c=a;return wp.element.createElement("div",{className:w()(l,i()({},"has-layout-".concat(r),""!==r)),"data-active-tab":o},wp.element.createElement("ul",{className:"".concat(E,"__nav-links")},t.map(function(e,t){return wp.element.createElement("li",{className:"".concat(E,"__nav-link"),key:t},wp.element.createElement(c,{className:"".concat(E,"__title-wrapper")},wp.element.createElement("a",{href:"#tab-".concat(t)},wp.element.createElement(O.Content,{tagName:"span",className:"".concat(E,"__title"),value:e.content}))))})),n.map(function(e,t){return wp.element.createElement("div",{id:"tab-".concat(t),className:"".concat(E,"__tab-content"),key:t},wp.element.createElement(O.Content,{value:e.content}))}))}}]),t}(k);t.a=C},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=f()(e);if(t()){var o=f()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var o=n(7),i=n.n(o),a=n(2),l=n.n(a),c=n(4),s=n.n(c),u=n(5),p=n.n(u),d=n(6),m=n.n(d),g=n(3),f=n.n(g),b=(n(0),n(8)),w=n.n(b),h=n(62),v=(n.n(h),wp.blockEditor||wp.editor),y=v.InnerBlocks,_=wp.element.Component,k=function(e){function t(){return l()(this,t),n.apply(this,arguments)}p()(t,e);var n=r(t);return s()(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.align,r=t.active,o=t.type,a=e.baseClass,l=this.props.className;return wp.element.createElement("div",{className:w()(l,i()({},"has-layout-".concat(o),""!==o),n?"align".concat(n):null),"data-active-tab":void 0!=r?r:"0"},wp.element.createElement("ul",{className:"".concat(a,"__nav-links")}),wp.element.createElement(y.Content,null))}}]),t}(_);t.a=k},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(n,!0).forEach(function(t){a()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var i=n(7),a=n.n(i),l=(n(0),n(197)),c=n(199),s=n(200),u=n(201),p=n(61),d=n(1),m=(n.n(d),wp.blocks.registerBlockType),g="wp-block-getwid-tabs-item";m("getwid/tabs-item",{title:Object(d.__)("Tabs Item","getwid"),category:"getwid-blocks",parent:["getwid/tabs"],supports:{multiple:!0,reusable:!1,html:!1},attributes:c.a,deprecated:[{attributes:c.a,save:function(e){return wp.element.createElement(u.a,o(o({},e),{},{baseClass:g}))}}],edit:function(e){return wp.element.createElement(p.a,null,function(t){var n=t.updateParentOptions,r=t.getState;return wp.element.createElement(l.a,o(o(o(o({},e),{updateParentOptions:n}),{getParentState:r}),{},{baseClass:g}))})},save:function(e){return wp.element.createElement(s.a,o(o({},e),{},{baseClass:g}))}})},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(n,!0).forEach(function(t){s()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function i(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=v()(e);if(t()){var o=v()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return w()(this,n)}}var a=n(9),l=n.n(a),c=n(7),s=n.n(c),u=n(2),p=n.n(u),d=n(4),m=n.n(d),g=n(5),f=n.n(g),b=n(6),w=n.n(b),h=n(3),v=n.n(h),y=(n(0),n(1)),_=(n.n(y),n(8)),k=n.n(_),O=n(198),E=wp.compose.compose,C=wp.data.withSelect,j=wp.element,S=j.Component,x=j.Fragment,P=wp.blockEditor||wp.editor,T=P.InnerBlocks,R=(P.RichText,window),N=R.jQuery,A=function(e){function t(){var e;return p()(this,t),e=n.apply(this,arguments),e.state={rootClientId:e.setRootId()},e}f()(t,e);var n=i(t);return m()(t,[{key:"setRootId",value:function(){var e=this.props,t=e.clientId;return(0,e.getBlockRootClientId)(t)}},{key:"render",value:function(){var e=this.props,t=e.className,n=(e.baseClass,e.getBlock),r=(e.clientId,e.getParentState,this.state.rootClientId),i=(n(r).attributes.headerTag,{className:k()(t,{})});return wp.element.createElement(x,null,wp.element.createElement(O.a,l()({},o({},this.props),{key:"inspector"})),wp.element.createElement("div",i,wp.element.createElement("div",{className:"wp-block-getwid-tabs__content"},wp.element.createElement(T,{templateLock:!1,templateInsertUpdatesSelection:!1,template:[["core/paragraph",{placeholder:Object(y.__)("Write text…","getwid")}]]}))))}},{key:"componentDidUpdate",value:function(e,t){}},{key:"componentDidMount",value:function(){var e=this.props.updateParentOptions,t=this.props,n=t.getBlock,r=t.clientId,o=t.getParentState,i=this.state.rootClientId,a=n(i).innerBlocks;N("#block-".concat(r));n(i).innerBlocks[a.length-1].clientId==r?e("init"):o("initNavs")&&e("update")}},{key:"componentWillUnmount",value:function(){(0,this.props.updateParentOptions)("update")}}]),t}(S);t.a=E([C(function(e,t){var n=e("core/block-editor");return{getBlock:n.getBlock,getEditorSettings:n.getEditorSettings,getBlockRootClientId:n.getBlockRootClientId}})])(A)},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=m()(e);if(t()){var o=m()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p()(this,n)}}var o=n(2),i=n.n(o),a=n(4),l=n.n(a),c=n(5),s=n.n(c),u=n(6),p=n.n(u),d=n(3),m=n.n(d),g=(n(0),n(1)),f=(n.n(g),wp.element.Component),b=wp.blockEditor||wp.editor,w=b.InspectorControls,h=wp.components,v=h.Button,y=h.PanelBody,_=wp.data.dispatch,k=function(e){function t(){return i()(this,t),n.apply(this,arguments)}s()(t,e);var n=r(t);return l()(t,[{key:"render",value:function(){var e=this.props,t=(e.setAttributes,e.clientId),n=e.getBlock,r=e.getBlockRootClientId,o=_("core/block-editor"),i=o.selectBlock;return n(t)?wp.element.createElement(w,null,wp.element.createElement(y,null,wp.element.createElement(v,{isPrimary:!0,onClick:function(e){i(r(t))}},Object(g.__)("Select Parent","getwid")))):wp.element.createElement(w,null)}}]),t}(f);t.a=k},function(e,t,n){"use strict";var r={outerParent:{type:"object"},title:{type:"string",source:"html",selector:".wp-block-getwid-tabs__title"}};t.a=r},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=m()(e);if(t()){var o=m()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p()(this,n)}}var o=n(2),i=n.n(o),a=n(4),l=n.n(a),c=n(5),s=n.n(c),u=n(6),p=n.n(u),d=n(3),m=n.n(d),g=(n(0),n(8)),f=n.n(g),b=wp.blockEditor||wp.editor,w=b.RichText,h=wp.blockEditor||wp.editor,v=h.InnerBlocks,y=wp.element,_=y.Component,k=y.Fragment,O=function(e){function t(){return i()(this,t),n.apply(this,arguments)}s()(t,e);var n=r(t);return l()(t,[{key:"render",value:function(){var e=this.props,t=e.className,n=(e.baseClass,this.props.attributes),r=n.outerParent,o=n.title,i=(f()(t,{}),r?r.attributes.headerTag:"span");return wp.element.createElement(k,null,wp.element.createElement("div",{className:"wp-block-getwid-tabs__nav-link"},o&&wp.element.createElement(i,{className:"wp-block-getwid-tabs__title-wrapper"},wp.element.createElement("a",{href:"#"},wp.element.createElement(w.Content,{tagName:"span",className:"wp-block-getwid-tabs__title",value:o})))),wp.element.createElement("div",{className:"wp-block-getwid-tabs__tab-content-wrapper"},wp.element.createElement("div",{className:"wp-block-getwid-tabs__tab-content"},wp.element.createElement(v.Content,null))))}}]),t}(_);t.a=O},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=m()(e);if(t()){var o=m()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p()(this,n)}}var o=n(2),i=n.n(o),a=n(4),l=n.n(a),c=n(5),s=n.n(c),u=n(6),p=n.n(u),d=n(3),m=n.n(d),g=(n(0),n(8)),f=n.n(g),b=wp.blockEditor||wp.editor,w=b.RichText,h=wp.blockEditor||wp.editor,v=h.InnerBlocks,y=wp.element,_=y.Component,k=y.Fragment,O=function(e){function t(){return i()(this,t),n.apply(this,arguments)}s()(t,e);var n=r(t);return l()(t,[{key:"render",value:function(){var e=this.props,t=e.className,n=(e.baseClass,this.props.attributes),r=n.outerParent,o=n.title,i=(f()(t,{}),r?r.attributes.headerTag:"span");return wp.element.createElement(k,null,wp.element.createElement("li",{className:"wp-block-getwid-tabs__nav-link"},o&&wp.element.createElement(i,{className:"wp-block-getwid-tabs__title-wrapper"},wp.element.createElement("a",{href:"#"},wp.element.createElement(w.Content,{tagName:"span",className:"wp-block-getwid-tabs__title",value:o})))),wp.element.createElement("div",{className:"wp-block-getwid-tabs__tab-content"},wp.element.createElement(v.Content,null)))}}]),t}(_);t.a=O},function(e,t,n){"use strict";n(203),n(210)},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(n,!0).forEach(function(t){a()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var i=n(7),a=n.n(i),l=(n(0),n(1)),c=(n.n(l),n(63)),s=n(206),u=n(207),p=n(208),d=n(12),m=n(209),g=wp.components,f=g.SVG,b=g.Path,w=wp.data.select,h=wp.blocks.createBlock,v=wp.blocks.registerBlockType,y="wp-block-getwid-accordion";v("getwid/accordion",o(o({title:Object(l.__)("Accordion","getwid"),icon:wp.element.createElement(f,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},wp.element.createElement("g",null,wp.element.createElement(b,{d:"M0,0v6h24V0H0z M22,4H2V2h20V4z"})),wp.element.createElement("g",null,wp.element.createElement(b,{d:"M0,18v6h24v-6H0z M22,22H2v-2h20V22z"})),wp.element.createElement("g",null,wp.element.createElement(b,{d:"M0,8v8h24V8H0z M22,14H2v-4h20V14z"}))),category:"getwid-blocks",supports:{align:["wide","full"],inserter:!Getwid.disabled_blocks.includes("getwid/accordion")},getEditWrapperProps:function(e){var t=e.align;if(["wide","full"].includes(t))return{"data-align":t}},deprecated:[{attributes:u.a,migrate:function(e,t){return[{align:e.align,active:e.active,iconPosition:e.iconPosition,iconOpen:e.iconOpen,iconClose:e.iconClose,headerTag:e.headerTag},e.items.map(function(t,n){return h("getwid/accordion-item",{title:e.titles[n].content},[h("core/paragraph",{placeholder:Object(l.__)("Write heading…","getwid"),content:t.content})])})]},save:function(e){return wp.element.createElement(p.a,o(o({},e),{},{baseClass:y}))}}],transforms:{to:[{type:"block",blocks:["getwid/toggle"],transform:function(){var e=w("core/block-editor"),t=e.getBlock,n=e.getSelectedBlockClientId,r=n(),o=t(r).attributes,i=t(r).innerBlocks;if(i.length)return h("getwid/toggle",{align:o.align,iconPosition:o.iconPosition,iconOpen:o.iconOpen,iconClose:o.iconClose,headerTag:o.headerTag},i.map(function(e,t){return h("getwid/toggle-item",{title:e.attributes.title,active:t==parseInt(o.active,10)},e.innerBlocks)}))}},{type:"block",blocks:["getwid/tabs"],transform:function(){var e=w("core/block-editor"),t=e.getBlock,n=e.getSelectedBlockClientId,r=n(),o=t(r).attributes,i=t(r).innerBlocks;if(i.length)return h("getwid/tabs",{align:o.align,active:o.active,headerTag:o.headerTag},i.map(function(e,t){return h("getwid/tabs-item",{title:e.attributes.title},e.innerBlocks)}))}}]},attributes:s.a},Object(d.b)("getwid/accordion",function(e){return wp.element.createElement(c.b,o(o({},e),{},{baseClass:y}))})),{},{save:function(e){return wp.element.createElement(m.a,o(o({},e),{},{baseClass:y}))}}))},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=f()(e);if(t()){var o=f()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var o=n(15),i=n.n(o),a=n(2),l=n.n(a),c=n(4),s=n.n(c),u=n(5),p=n.n(u),d=n(6),m=n.n(d),g=n(3),f=n.n(g),b=(n(0),n(1)),w=(n.n(b),n(10)),h=(n.n(w),n(18)),v=n(12),y=wp.element.Component,_=wp.blockEditor||wp.editor,k=_.InspectorControls,O=wp.components,E=O.PanelBody,C=O.SelectControl,j=O.BaseControl,S=(O.CheckboxControl,window),x=S.jQuery,P=function(e){function t(){return l()(this,t),n.apply(this,arguments)}p()(t,e);var n=r(t);return s()(t,[{key:"render",value:function(){var e=this.props.attributes,t=e.iconPosition,n=e.iconOpen,r=e.iconClose,o=e.active,a=e.headerTag,l=this.props.setAttributes,c=this.props,s=c.clientId,u=c.getBlock,p=u(s);if(!p)return wp.element.createElement(k,null);var d=[];x.each(p.innerBlocks,function(e,t){var n={};n.content=t.attributes.title,d.push(n)});var m=Object(v.d)(d);return wp.element.createElement(k,null,wp.element.createElement(E,{title:Object(b.__)("Settings","getwid")},wp.element.createElement(j,{label:Object(b.__)("Icon","getwid")},wp.element.createElement(h.a,{value:r,onChange:function(e){return l({iconClose:e})}})),wp.element.createElement(j,{label:Object(b.__)("Active Icon","getwid")},wp.element.createElement(h.a,{value:n,onChange:function(e){return l({iconOpen:e})}})),wp.element.createElement(C,{label:Object(b.__)("Icon Position","getwid"),value:t,options:[{value:"left",label:Object(b.__)("Left","getwid")},{value:"right",label:Object(b.__)("Right","getwid")}],onChange:function(e){return l({iconPosition:e})}}),wp.element.createElement(C,{label:Object(b.__)("Title Tag","getwid"),value:a,options:[{value:"span",label:Object(b.__)("Paragraph","getwid")},{value:"h2",label:Object(b.__)("Heading 2","getwid")},{value:"h3",label:Object(b.__)("Heading 3","getwid")},{value:"h4",label:Object(b.__)("Heading 4","getwid")},{value:"h5",label:Object(b.__)("Heading 5","getwid")},{value:"h6",label:Object(b.__)("Heading 6","getwid")}],onChange:function(e){return l({headerTag:e})}}),wp.element.createElement(C,{label:Object(b.__)("Active by default","getwid"),value:o,options:[{value:"none",label:Object(b.__)("None","getwid")}].concat(i()(Object(w.times)(p.innerBlocks.length,function(e){return{value:e,label:m[e].length>30?m[e].substr(0,30)+"...":m[e]}}))),onChange:function(e){l({active:e})}})))}}]),t}(y);t.a=P},function(e,t){},function(e,t,n){"use strict";var r={align:{type:"string"},active:{type:"string",source:"attribute",selector:".wp-block-getwid-accordion",attribute:"data-active-element",default:"none"},iconPosition:{type:"string",default:"left"},iconOpen:{type:"string",source:"attribute",selector:".wp-block-getwid-accordion__icon.is-passive i",attribute:"class",default:"fas fa-minus"},iconClose:{type:"string",source:"attribute",selector:".wp-block-getwid-accordion__icon.is-active i",attribute:"class",default:"fas fa-plus"},headerTag:{type:"string",default:"span"}};t.a=r},function(e,t,n){"use strict";var r={align:{type:"string"},titles:{type:"array",selector:".wp-block-getwid-accordion__header-title",source:"query",query:{content:{type:"string",source:"html"}},default:[]},items:{type:"array",source:"query",selector:".wp-block-getwid-accordion__content",query:{content:{type:"string",source:"html"}},default:[]},active:{type:"string",source:"attribute",selector:".wp-block-getwid-accordion",attribute:"data-active-element",default:"0"},iconPosition:{type:"string",default:"left"},iconOpen:{type:"string",source:"attribute",selector:".wp-block-getwid-accordion__icon.is-passive i",attribute:"class",default:"fas fa-minus"},iconClose:{type:"string",source:"attribute",selector:".wp-block-getwid-accordion__icon.is-active i",attribute:"class",default:"fas fa-plus"},headerTag:{type:"string",default:"span"}};t.a=r},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=m()(e);if(t()){var o=m()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p()(this,n)}}var o=n(2),i=n.n(o),a=n(4),l=n.n(a),c=n(5),s=n.n(c),u=n(6),p=n.n(u),d=n(3),m=n.n(d),g=(n(0),n(8)),f=n.n(g),b=n(64),w=(n.n(b),n(1)),h=(n.n(w),window),v=(h.jQuery,wp.element),y=v.Component,_=v.Fragment,k=wp.editor.RichText,O="wp-block-getwid-accordion",E=function(e){function t(){return i()(this,t),n.apply(this,arguments)}s()(t,e);var n=r(t);return l()(t,[{key:"render",value:function(){var e=this.props.attributes,t=e.titles,n=e.items,r=e.iconPosition,o=e.iconOpen,i=e.iconClose,a=e.active,l=e.headerTag,c=e.className,s=l;return wp.element.createElement("div",{className:f()(c,{"has-icon-left":"left"===r}),"data-active-element":void 0!=a?a:"0"},t.map(function(e,t){return wp.element.createElement(_,null,wp.element.createElement("div",{className:"".concat(O,"__header-wrapper"),key:"header"},wp.element.createElement(s,{className:"".concat(O,"__header")},wp.element.createElement("a",{href:"#"},wp.element.createElement(k.Content,{tagName:"span",className:"".concat(O,"__header-title"),value:e.content}),wp.element.createElement("span",{className:"".concat(O,"__icon is-active")},wp.element.createElement("i",{className:i})),wp.element.createElement("span",{className:"".concat(O,"__icon is-passive")},wp.element.createElement("i",{className:o}))))),wp.element.createElement("div",{className:"".concat(O,"__content"),key:"content"},wp.element.createElement(k.Content,{value:n[t].content})))}))}}]),t}(y);t.a=E},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=m()(e);if(t()){var o=m()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p()(this,n)}}var o=n(2),i=n.n(o),a=n(4),l=n.n(a),c=n(5),s=n.n(c),u=n(6),p=n.n(u),d=n(3),m=n.n(d),g=(n(0),n(8)),f=n.n(g),b=n(64),w=(n.n(b),wp.blockEditor||wp.editor),h=w.InnerBlocks,v=wp.element.Component,y=function(e){function t(){return i()(this,t),n.apply(this,arguments)}s()(t,e);var n=r(t);return l()(t,[{key:"render",value:function(){var e=this.props.attributes,t=e.align,n=e.iconPosition,r=e.active,o=this.props.className;return wp.element.createElement("div",{className:f()(o,{"has-icon-left":"left"===n},t?"align".concat(t):null),"data-active-element":void 0!=r?r:"none"},wp.element.createElement(h.Content,null))}}]),t}(v);t.a=y},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(n,!0).forEach(function(t){a()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var i=n(7),a=n.n(i),l=(n(0),n(211)),c=n(213),s=n(214),u=n(63),p=n(1),d=(n.n(p),wp.blocks.registerBlockType),m="wp-block-getwid-accordion-item";d("getwid/accordion-item",{title:Object(p.__)("Accordion Item","getwid"),category:"getwid-blocks",parent:["getwid/accordion"],supports:{multiple:!0,reusable:!1,html:!1},attributes:c.a,edit:function(e){return wp.element.createElement(u.a,null,function(t){var n=t.updateParentOptions;return wp.element.createElement(l.a,o(o(o({},e),{updateParentOptions:n}),{},{baseClass:m}))})},save:function(e){return wp.element.createElement(s.a,o(o({},e),{},{baseClass:m}))}})},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(n,!0).forEach(function(t){s()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function i(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=v()(e);if(t()){var o=v()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return w()(this,n)}}var a=n(9),l=n.n(a),c=n(7),s=n.n(c),u=n(2),p=n.n(u),d=n(4),m=n.n(d),g=n(5),f=n.n(g),b=n(6),w=n.n(b),h=n(3),v=n.n(h),y=(n(0),n(1)),_=(n.n(y),n(8)),k=n.n(_),O=n(212),E=wp.compose.compose,C=wp.data.withSelect,j=wp.element,S=j.Component,x=j.Fragment,P=wp.blockEditor||wp.editor,T=P.InnerBlocks,R=P.RichText,N=window,A=N.jQuery,B=["core/bold","core/italic","core/link","core/image","core/strikethrough","core/text-color"],D=function(e){function t(){var e;return p()(this,t),e=n.apply(this,arguments),e.state={rootClientId:e.setRootId()},e}f()(t,e);var n=i(t);return m()(t,[{key:"setRootId",value:function(){var e=this.props,t=e.clientId;return(0,e.getBlockRootClientId)(t)}},{key:"render",value:function(){var e=this,t=this.props,n=t.className,r=(t.baseClass,t.getBlock),i=t.getBlockIndex,a=this.state.rootClientId,c=r(a).attributes,s=c.headerTag,u=c.iconOpen,p=c.iconClose,d=c.active,m=this.props.clientId,g=i(m,a),f={className:k()(n,{"is-opened":g==("none"!=d?JSON.parse(d):void 0)})},b=s;return wp.element.createElement(x,null,wp.element.createElement(O.a,l()({},o({},this.props),{key:"inspector"})),wp.element.createElement("div",f,wp.element.createElement("div",{className:"wp-block-getwid-accordion__header-wrapper",key:"header"},wp.element.createElement(b,{className:"wp-block-getwid-accordion__header"},wp.element.createElement("a",{href:"#"},wp.element.createElement("div",{className:"wp-block-getwid-accordion__edit-area"},wp.element.createElement(R,{tagName:"span",className:"wp-block-getwid-accordion__header-title",placeholder:Object(y.__)("Write heading…","getwid"),value:this.props.attributes.title,onChange:function(t){return e.props.setAttributes({title:t})},keepPlaceholderOnFocus:!0,allowedFormats:B})),wp.element.createElement("span",{className:"wp-block-getwid-accordion__icon is-active"},wp.element.createElement("i",{className:p})),wp.element.createElement("span",{className:"wp-block-getwid-accordion__icon is-passive"},wp.element.createElement("i",{className:u}))))),wp.element.createElement("div",{className:"wp-block-getwid-accordion__content-wrapper"},wp.element.createElement("div",{className:"wp-block-getwid-accordion__content"},wp.element.createElement(T,{templateLock:!1,templateInsertUpdatesSelection:!1,template:[["core/paragraph",{placeholder:Object(y.__)("Write text…","getwid")}]]})))))}},{key:"componentDidMount",value:function(){var e=(this.props.updateParentOptions,this.props.getBlock,this.state.rootClientId,this.props.clientId);A("#block-".concat(e))}}]),t}(S);t.a=E([C(function(e,t){var n=e("core/block-editor");return{getBlock:n.getBlock,getBlockIndex:n.getBlockIndex,getEditorSettings:n.getEditorSettings,getBlockRootClientId:n.getBlockRootClientId}})])(D)},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=m()(e);if(t()){var o=m()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p()(this,n)}}var o=n(2),i=n.n(o),a=n(4),l=n.n(a),c=n(5),s=n.n(c),u=n(6),p=n.n(u),d=n(3),m=n.n(d),g=(n(0),n(1)),f=(n.n(g),wp.element.Component),b=wp.blockEditor||wp.editor,w=b.InspectorControls,h=wp.components,v=h.Button,y=h.PanelBody,_=wp.data.dispatch,k=function(e){function t(){return i()(this,t),n.apply(this,arguments)}s()(t,e);var n=r(t);return l()(t,[{key:"render",value:function(){var e=this.props,t=(e.setAttributes,e.clientId),n=e.getBlock,r=e.getBlockRootClientId,o=_("core/block-editor"),i=o.selectBlock;return n(t)?wp.element.createElement(w,null,wp.element.createElement(y,null,wp.element.createElement(v,{isPrimary:!0,onClick:function(e){i(r(t))}},Object(g.__)("Select Parent","getwid")))):wp.element.createElement(w,null)}}]),t}(f);t.a=k},function(e,t,n){"use strict";var r={outerParent:{type:"object"},title:{type:"string",source:"html",selector:".wp-block-getwid-accordion__header-title"}};t.a=r},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=m()(e);if(t()){var o=m()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p()(this,n)}}var o=n(2),i=n.n(o),a=n(4),l=n.n(a),c=n(5),s=n.n(c),u=n(6),p=n.n(u),d=n(3),m=n.n(d),g=(n(0),n(8)),f=(n.n(g),wp.blockEditor||wp.editor),b=f.RichText,w=wp.blockEditor||wp.editor,h=w.InnerBlocks,v=wp.element,y=v.Component,_=v.Fragment,k=function(e){function t(){return i()(this,t),n.apply(this,arguments)}s()(t,e);var n=r(t);return l()(t,[{key:"render",value:function(){var e=this.props,t=(e.className,e.baseClass,this.props.attributes),n=t.outerParent,r=t.title,o=n?n.attributes.headerTag:"span",i=n?n.attributes.iconOpen:"fas fa-minus",a=n?n.attributes.iconClose:"fas fa-plus";return wp.element.createElement(_,null,wp.element.createElement("div",{className:"wp-block-getwid-accordion__header-wrapper"},r&&wp.element.createElement(o,{className:"wp-block-getwid-accordion__header"},wp.element.createElement("a",{href:"#"},wp.element.createElement(b.Content,{tagName:"span",className:"wp-block-getwid-accordion__header-title",value:r}),wp.element.createElement("span",{className:"wp-block-getwid-accordion__icon is-active"},wp.element.createElement("i",{className:a})),wp.element.createElement("span",{className:"wp-block-getwid-accordion__icon is-passive"},wp.element.createElement("i",{className:i}))))),wp.element.createElement("div",{className:"wp-block-getwid-accordion__content-wrapper"},wp.element.createElement("div",{className:"wp-block-getwid-accordion__content"},wp.element.createElement(h.Content,null))))}}]),t}(y);t.a=k},function(e,t,n){"use strict";n(216),n(223)},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(n,!0).forEach(function(t){a()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var i=n(7),a=n.n(i),l=(n(0),n(1)),c=(n.n(l),n(65)),s=n(219),u=n(220),p=n(221),d=n(12),m=n(222),g=wp.components,f=g.SVG,b=g.Path,w=wp.data.select,h=wp.blocks.createBlock,v=window,y=v.jQuery,_=wp.blocks.registerBlockType,k="wp-block-getwid-toggle";_("getwid/toggle",o(o({title:Object(l.__)("Toggle","getwid"),icon:wp.element.createElement(f,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},wp.element.createElement("g",null,wp.element.createElement(b,{d:"M0,0v6h24V0H0z M22,4H2V2h20V4z"})),wp.element.createElement("g",null,wp.element.createElement(b,{d:"M0,18v6h24v-6H0z M22,22H2v-2h20V22z"})),wp.element.createElement("g",null,wp.element.createElement(b,{d:"M0,8v8h24V8H0z M22,14H2v-4h20V14z"}))),category:"getwid-blocks",supports:{align:["wide","full"],inserter:!Getwid.disabled_blocks.includes("getwid/toggle")},deprecated:[{attributes:u.a,migrate:function(e,t){return[{align:e.align,active:e.active,iconPosition:e.iconPosition,iconOpen:e.iconOpen,iconClose:e.iconClose,headerTag:e.headerTag},e.items.map(function(t,n){return h("getwid/toggle-item",{title:e.titles[n].content},[h("core/paragraph",{placeholder:Object(l.__)("Write heading…","getwid"),content:t.content})])})]},save:function(e){return wp.element.createElement(p.a,o(o({},e),{},{baseClass:k}))}}],transforms:{to:[{type:"block",blocks:["getwid/accordion"],transform:function(){var e=w("core/block-editor"),t=e.getBlock,n=e.getSelectedBlockClientId,r=n(),o=t(r).attributes,i=t(r).innerBlocks;if(i.length){var a="none";return y.each(i,function(e,t){if(t.attributes.active)return a=e,!1}),h("getwid/accordion",{align:o.align,active:a,iconPosition:o.iconPosition,iconOpen:o.iconOpen,iconClose:o.iconClose,headerTag:o.headerTag},i.map(function(e,t){return h("getwid/accordion-item",{title:e.attributes.title},e.innerBlocks)}))}}},{type:"block",blocks:["getwid/tabs"],transform:function(){var e=w("core/block-editor"),t=e.getBlock,n=e.getSelectedBlockClientId,r=n(),o=t(r).attributes,i=t(r).innerBlocks;if(i.length){var a=0;return y.each(i,function(e,t){if(t.attributes.active)return a=e,!1}),h("getwid/tabs",{align:o.align,active:a},i.map(function(e,t){return h("getwid/tabs-item",{title:e.attributes.title},e.innerBlocks)}))}}}]},getEditWrapperProps:function(e){var t=e.align;if(["wide","full"].includes(t))return{"data-align":t}},attributes:s.a},Object(d.b)("getwid/toggle",function(e){return wp.element.createElement(c.b,o(o({},e),{},{baseClass:k}))})),{},{save:function(e){return wp.element.createElement(m.a,o(o({},e),{},{baseClass:k}))}}))},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=m()(e);if(t()){var o=m()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p()(this,n)}}var o=n(2),i=n.n(o),a=n(4),l=n.n(a),c=n(5),s=n.n(c),u=n(6),p=n.n(u),d=n(3),m=n.n(d),g=(n(0),n(1)),f=(n.n(g),n(10)),b=(n.n(f),n(18)),w=wp.element.Component,h=wp.blockEditor||wp.editor,v=h.InspectorControls,y=wp.components,_=y.PanelBody,k=y.SelectControl,O=y.BaseControl,E=(y.CheckboxControl,window),C=(E.jQuery,function(e){function t(){return i()(this,t),n.apply(this,arguments)}s()(t,e);var n=r(t);return l()(t,[{key:"render",value:function(){var e=this.props.attributes,t=e.iconPosition,n=e.iconOpen,r=e.iconClose,o=e.headerTag,i=this.props.setAttributes,a=this.props,l=a.clientId;return(0,a.getBlock)(l)?wp.element.createElement(v,null,wp.element.createElement(_,{title:Object(g.__)("Settings","getwid")},wp.element.createElement(O,{label:Object(g.__)("Icon","getwid")},wp.element.createElement(b.a,{value:r,onChange:function(e){return i({iconClose:e})}})),wp.element.createElement(O,{label:Object(g.__)("Active Icon","getwid")},wp.element.createElement(b.a,{value:n,onChange:function(e){return i({iconOpen:e})}})),wp.element.createElement(k,{label:Object(g.__)("Icon Position","getwid"),value:t,options:[{value:"left",label:Object(g.__)("Left","getwid")},{value:"right",label:Object(g.__)("Right","getwid")}],onChange:function(e){return i({iconPosition:e})}}),wp.element.createElement(k,{label:Object(g.__)("Title Tag","getwid"),value:o,options:[{value:"span",label:Object(g.__)("Paragraph","getwid")},{value:"h2",label:Object(g.__)("Heading 2","getwid")},{value:"h3",label:Object(g.__)("Heading 3","getwid")},{value:"h4",label:Object(g.__)("Heading 4","getwid")},{value:"h5",label:Object(g.__)("Heading 5","getwid")},{value:"h6",label:Object(g.__)("Heading 6","getwid")}],onChange:function(e){return i({headerTag:e})}}))):wp.element.createElement(v,null)}}]),t}(w));t.a=C},function(e,t){},function(e,t,n){"use strict";var r={align:{type:"string"},iconPosition:{type:"string",default:"left"},iconOpen:{type:"string",source:"attribute",selector:".wp-block-getwid-toggle__icon.is-passive i",attribute:"class",default:"fas fa-minus"},iconClose:{type:"string",source:"attribute",selector:".wp-block-getwid-toggle__icon.is-active i",attribute:"class",default:"fas fa-plus"},headerTag:{type:"string",default:"span"}};t.a=r},function(e,t,n){"use strict";var r={align:{type:"string"},titles:{type:"array",selector:".wp-block-getwid-toggle__header-title",source:"query",query:{content:{type:"string",source:"html"}},default:[]},items:{type:"array",source:"query",selector:".wp-block-getwid-toggle__content",query:{content:{type:"string",source:"html"}},default:[]},active:{type:"string",source:"attribute",selector:".wp-block-getwid-toggle",attribute:"data-active-element",default:"false"},iconPosition:{type:"string",default:"left"},iconOpen:{type:"string",source:"attribute",selector:".wp-block-getwid-toggle__icon.is-passive i",attribute:"class",default:"fas fa-minus"},iconClose:{type:"string",source:"attribute",selector:".wp-block-getwid-toggle__icon.is-active i",attribute:"class",default:"fas fa-plus"},headerTag:{type:"string",default:"span"}};t.a=r},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=m()(e);if(t()){var o=m()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p()(this,n)}}var o=n(2),i=n.n(o),a=n(4),l=n.n(a),c=n(5),s=n.n(c),u=n(6),p=n.n(u),d=n(3),m=n.n(d),g=(n(0),n(8)),f=n.n(g),b=n(66),w=(n.n(b),n(1)),h=(n.n(w),window),v=(h.jQuery,wp.element),y=v.Component,_=(v.Fragment,wp.editor.RichText),k="wp-block-getwid-toggle",O=function(e){function t(){return i()(this,t),n.apply(this,arguments)}s()(t,e);var n=r(t);return l()(t,[{key:"render",value:function(){var e=this.props.attributes,t=e.titles,n=e.items,r=e.iconPosition,o=e.iconOpen,i=e.iconClose,a=e.active,l=e.headerTag,c=e.className,s=l;return wp.element.createElement("div",{className:f()(c,{"has-icon-left":"left"===r}),"data-active-element":a},t.map(function(e,t){return wp.element.createElement("div",{className:"".concat(k,"__row")},wp.element.createElement("div",{className:"".concat(k,"__header-wrapper")},wp.element.createElement(s,{className:"".concat(k,"__header")},wp.element.createElement("a",{href:"#"},wp.element.createElement(_.Content,{tagName:"span",className:"".concat(k,"__header-title"),value:e.content}),wp.element.createElement("span",{className:"".concat(k,"__icon is-active")},wp.element.createElement("i",{className:i})),wp.element.createElement("span",{className:"".concat(k,"__icon is-passive")},wp.element.createElement("i",{className:o}))))),wp.element.createElement("div",{className:"".concat(k,"__content")},wp.element.createElement(_.Content,{value:n[t].content})))}))}}]),t}(y);t.a=O},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=m()(e);if(t()){var o=m()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p()(this,n)}}var o=n(2),i=n.n(o),a=n(4),l=n.n(a),c=n(5),s=n.n(c),u=n(6),p=n.n(u),d=n(3),m=n.n(d),g=(n(0),n(8)),f=n.n(g),b=n(66),w=(n.n(b),wp.blockEditor||wp.editor),h=w.InnerBlocks,v=wp.element.Component,y=function(e){function t(){return i()(this,t),n.apply(this,arguments)}s()(t,e);var n=r(t);return l()(t,[{key:"render",value:function(){var e=this.props.attributes.iconPosition,t=this.props.className;return wp.element.createElement("div",{className:f()(t,{"has-icon-left":"left"===e})},wp.element.createElement(h.Content,null))}}]),t}(v);t.a=y},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(n,!0).forEach(function(t){a()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var i=n(7),a=n.n(i),l=(n(0),n(224)),c=n(226),s=n(227),u=n(65),p=n(1),d=(n.n(p),wp.blocks.registerBlockType);d("getwid/toggle-item",{title:Object(p.__)("Toggle Item","getwid"),category:"getwid-blocks",parent:["getwid/toggle"],supports:{multiple:!0,reusable:!1,html:!1},attributes:c.a,getEditWrapperProps:function(e){return{"toggle-active-default":e.active?"true":""}},edit:function(e){return wp.element.createElement(u.a,null,function(t){var n=t.updateParentOptions;return wp.element.createElement(l.a,o(o(o({},e),{updateParentOptions:n}),{},{baseClass:"wp-block-getwid-toggle-item"}))})},save:function(e){return wp.element.createElement(s.a,o(o({},e),{},{baseClass:"wp-block-getwid-toggle-item"}))}})},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(n,!0).forEach(function(t){s()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function i(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=v()(e);if(t()){var o=v()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return w()(this,n)}}var a=n(9),l=n.n(a),c=n(7),s=n.n(c),u=n(2),p=n.n(u),d=n(4),m=n.n(d),g=n(5),f=n.n(g),b=n(6),w=n.n(b),h=n(3),v=n.n(h),y=(n(0),n(1)),_=(n.n(y),n(8)),k=n.n(_),O=n(225),E=wp.compose.compose,C=wp.data.withSelect,j=wp.element,S=j.Component,x=j.Fragment,P=wp.blockEditor||wp.editor,T=P.InnerBlocks,R=P.RichText,N=window,A=N.jQuery,B=["core/bold","core/italic","core/link","core/image","core/strikethrough","core/text-color"],D=function(e){function t(){var e;return p()(this,t),e=n.apply(this,arguments),e.state={rootClientId:e.setRootId()},e}f()(t,e);var n=i(t);return m()(t,[{key:"setRootId",value:function(){var e=this.props,t=e.clientId;return(0,e.getBlockRootClientId)(t)}},{key:"render",value:function(){var e=this,t=this.props,n=(t.className,t.baseClass,t.getBlock),r=this.state.rootClientId,i=n(r).attributes,a=i.headerTag,c=i.iconOpen,s=i.iconClose,u={className:k()("wp-block-getwid-toggle__row",{"is-active":this.props.attributes.active})},p=a;return wp.element.createElement(x,null,wp.element.createElement(O.a,l()({},o({},this.props),{key:"inspector"})),wp.element.createElement("div",u,wp.element.createElement("div",{className:"wp-block-getwid-toggle__header-wrapper",key:"header"},wp.element.createElement(p,{className:"wp-block-getwid-toggle__header"},wp.element.createElement("a",{href:"#"},wp.element.createElement("div",{className:"wp-block-getwid-toggle__edit-area"},wp.element.createElement(R,{tagName:"span",className:"wp-block-getwid-toggle__header-title",placeholder:Object(y.__)("Write heading…","getwid"),value:this.props.attributes.title,allowedFormats:B,onChange:function(t){return e.props.setAttributes({title:t})},keepPlaceholderOnFocus:!0})),wp.element.createElement("span",{className:"wp-block-getwid-toggle__icon is-active"},wp.element.createElement("i",{className:s})),wp.element.createElement("span",{className:"wp-block-getwid-toggle__icon is-passive"},wp.element.createElement("i",{className:c}))))),wp.element.createElement("div",{className:"wp-block-getwid-toggle__content-wrapper"},wp.element.createElement("div",{className:"wp-block-getwid-toggle__content"},wp.element.createElement(T,{templateLock:!1,templateInsertUpdatesSelection:!1,template:[["core/paragraph",{placeholder:Object(y.__)("Write text…","getwid")}]]})))))}},{key:"componentDidMount",value:function(){var e=(this.props.updateParentOptions,this.props.getBlock,this.state.rootClientId,this.props.clientId);A("#block-".concat(e))}}]),t}(S);t.a=E([C(function(e,t){var n=e("core/block-editor");return{getBlock:n.getBlock,getEditorSettings:n.getEditorSettings,getBlockRootClientId:n.getBlockRootClientId}})])(D)},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=m()(e);if(t()){var o=m()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p()(this,n)}}var o=n(2),i=n.n(o),a=n(4),l=n.n(a),c=n(5),s=n.n(c),u=n(6),p=n.n(u),d=n(3),m=n.n(d),g=(n(0),n(1)),f=(n.n(g),wp.element.Component),b=wp.blockEditor||wp.editor,w=b.InspectorControls,h=wp.components,v=h.Button,y=h.PanelBody,_=h.CheckboxControl,k=wp.data.dispatch,O=function(e){function t(){return i()(this,t),n.apply(this,arguments)}s()(t,e);var n=r(t);return l()(t,[{key:"render",value:function(){var e=this.props.attributes.active,t=this.props,n=t.setAttributes,r=t.clientId,o=t.getBlock,i=t.getBlockRootClientId,a=k("core/block-editor"),l=a.selectBlock;return o(r)?wp.element.createElement(w,null,wp.element.createElement(y,null,wp.element.createElement(v,{isPrimary:!0,onClick:function(e){l(i(r))}},Object(g.__)("Select Parent","getwid"))),wp.element.createElement(y,{title:Object(g.__)("Settings","getwid")},wp.element.createElement(_,{label:Object(g.__)("Active by default","getwid"),checked:e,onChange:function(e){n({active:e})}}))):wp.element.createElement(w,null)}}]),t}(f);t.a=O},function(e,t,n){"use strict";var r={outerParent:{type:"object"},title:{type:"string",source:"html",selector:".wp-block-getwid-toggle__header-title"},active:{type:"boolean",default:!1}};t.a=r},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=m()(e);if(t()){var o=m()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p()(this,n)}}var o=n(2),i=n.n(o),a=n(4),l=n.n(a),c=n(5),s=n.n(c),u=n(6),p=n.n(u),d=n(3),m=n.n(d),g=(n(0),n(8)),f=n.n(g),b=wp.blockEditor||wp.editor,w=b.RichText,h=wp.blockEditor||wp.editor,v=h.InnerBlocks,y=wp.element,_=y.Component,k=(y.Fragment,function(e){function t(){return i()(this,t),n.apply(this,arguments)}s()(t,e);var n=r(t);return l()(t,[{key:"render",value:function(){var e=this.props,t=(e.className,e.baseClass,this.props.attributes),n=t.outerParent,r=t.title,o=t.active,i=n?n.attributes.headerTag:"span",a=n?n.attributes.iconOpen:"fas fa-minus",l=n?n.attributes.iconClose:"fas fa-plus";return wp.element.createElement("div",{className:f()("wp-block-getwid-toggle__row",{"is-active":o})},wp.element.createElement("div",{className:"wp-block-getwid-toggle__header-wrapper"},r&&wp.element.createElement(i,{className:"wp-block-getwid-toggle__header"},wp.element.createElement("a",{href:"#"},wp.element.createElement(w.Content,{tagName:"span",className:"wp-block-getwid-toggle__header-title",value:r}),wp.element.createElement("span",{className:"wp-block-getwid-toggle__icon is-active"},wp.element.createElement("i",{className:l})),wp.element.createElement("span",{className:"wp-block-getwid-toggle__icon is-passive"},wp.element.createElement("i",{className:a}))))),wp.element.createElement("div",{className:"wp-block-getwid-toggle__content-wrapper"},wp.element.createElement("div",{className:"wp-block-getwid-toggle__content"},wp.element.createElement(v.Content,null))))}}]),t}(_));t.a=k},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(n,!0).forEach(function(t){a()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var i=n(7),a=n.n(i),l=(n(0),n(229)),c=n(233),s=n(234),u=n(67),p=n(12),d=n(235),m=(n.n(d),n(10)),g=(n.n(m),n(1)),f=(n.n(g),window),b=(f.jQuery,wp.blocks),w=b.registerBlockType,h=b.createBlock,v=["center","wide","full"];w("getwid/images-stack",o(o({title:Object(g.__)("Image Stack Gallery","getwid"),category:"getwid-blocks",icon:wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},wp.element.createElement("path",{d:"M14,10h8V2H14Zm6-6V8H16V4Z"}),wp.element.createElement("path",{d:"M12,12V0H0V18H7v6H24V12ZM2,16V2h8V16H2Zm20,6H9V18h3V14H22Z"})),keywords:[Object(g.__)("photo","getwid")],supports:{html:!1,inserter:!Getwid.disabled_blocks.includes("getwid/images-stack")},deprecated:[{attributes:u.a,save:s.a}],transforms:{from:[{type:"block",isMultiBlock:!0,blocks:["core/image"],transform:function(e){var t=e[0].align;t=Object(m.every)(e,["align",t])?t:void 0;var n=Object(m.filter)(e,function(e){var t=e.id,n=e.url;return t&&n});return h("getwid/images-stack",{images:n.map(function(e){return{id:e.id,url:e.url,alt:e.alt,caption:e.caption}}),ids:n.map(function(e){return e.id}),align:t})}},{type:"block",blocks:["core/gallery"],transform:function(e){return h("getwid/images-stack",e)}}],to:[{type:"block",blocks:["core/gallery"],transform:function(e){return h("core/gallery",e)}},{type:"block",blocks:["getwid/images-slider"],transform:function(e){return h("getwid/images-slider",e)}},{type:"block",blocks:["core/image"],transform:function(e){var t=e.images,n=e.align;return t.length>0?t.map(function(e){var t=e.id,r=e.url,o=e.alt,i=e.caption;return h("core/image",{id:t,url:r,alt:o,caption:i,align:n})}):h("core/image",{align:n})}}]},attributes:u.a,getEditWrapperProps:function(e){var t=e.align;if(-1!==v.indexOf(t))return{"data-align":t}}},Object(p.b)("getwid/images-stack",l.a)),{},{save:c.a}))},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(n,!0).forEach(function(t){m()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function i(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=S()(e);if(t()){var o=S()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return C()(this,n)}}var a=n(9),l=n.n(a),c=n(15),s=n.n(c),u=n(33),p=n.n(u),d=n(7),m=n.n(d),g=n(13),f=n.n(g),b=n(2),w=n.n(b),h=n(4),v=n.n(h),y=n(11),_=n.n(y),k=n(5),O=n.n(k),E=n(6),C=n.n(E),j=n(3),S=n.n(j),x=(n(0),n(1)),P=(n.n(x),n(8)),T=n.n(P),R=n(10),N=(n.n(R),n(67)),A=n(230),B=n(231),D=n(232),M=(n.n(D),wp.element),I=M.Component,L=M.Fragment,z=wp.components,V=z.ToolbarButton,F=z.DropZone,H=z.ToolbarGroup,G=wp.blockEditor||wp.editor,W=G.BlockControls,U=G.MediaUpload,q=G.MediaPlaceholder,Q=G.mediaUpload,K=G.BlockAlignmentToolbar,Y=wp.data.withSelect,J=wp.compose.compose,$=window,Z=($.jQuery,["wide","full"]),X=["image"],ee="wp-block-getwid-images-stack",te=function(e,t){var n=Object(R.pick)(e,["id","link","caption"]);return n.original_url=e.url||e.source_url,n.alt=e.alt||e.alt_text,n.url=Object(R.get)(e,["sizes",t,"url"])||Object(R.get)(e,["media_details","sizes",t,"source_url"])||e.url,n},ne=function(e){function t(){var e;return w()(this,t),e=n.apply(this,arguments),e.setImageAttributes=e.setImageAttributes.bind(_()(e)),e.uploadFromFiles=e.uploadFromFiles.bind(_()(e)),e.setAttributes=e.setAttributes.bind(_()(e)),e.addFiles=e.addFiles.bind(_()(e)),e.getState=e.getState.bind(_()(e)),e.onSelectImages=e.onSelectImages.bind(_()(e)),e}O()(t,e);var n=i(t);return v()(t,[{key:"changeState",value:function(e,t){"object"==f()(e)?this.setState(e):"string"==typeof e&&this.setState(m()({},e,t))}},{key:"getState",value:function(e){return this.state[e]}},{key:"onRemoveImage",value:function(e){var t=Object(R.filter)(this.props.attributes.images,function(t,n){return e!=t.url});this.setAttributes({images:t})}},{key:"setAttributes",value:function(e){if(e.ids)throw new Error('The "ids" attribute should not be changed directly. It is managed automatically when "images" attribute changes');e.images&&(e=o(o({},e),{},{ids:Object(R.map)(e.images,"id")})),this.props.setAttributes(e)}},{key:"onSelectImages",value:function(e){var t=this.props.setAttributes,n=this.props.attributes.imageSize;["full","large","medium","thumbnail"].includes(n)||(p()("imageSize"),n=N.a.imageSize.default,t({imageSize:n})),this.setAttributes({images:e.map(function(e){return te(e,n)})})}},{key:"setImageAttributes",value:function(e,t){var n=this.setAttributes,r=this.props.attributes.images;r[e]&&n({images:[].concat(s()(r.slice(0,e)),[o(o({},r[e]),t)],s()(r.slice(e+1)))})}},{key:"uploadFromFiles",value:function(e){this.addFiles(e.target.files)}},{key:"addFiles",value:function(e){var t=this.props.attributes.images||[],n=this.setAttributes,r=this.props.attributes.imageSize;["full","large","medium","thumbnail"].includes(r)||(r=N.a.imageSize.default,n({imageSize:r})),Q({allowedTypes:X,filesList:e,onFileChange:function(e){if(void 0!==e[0].id){var o=e.map(function(e){return te(e,r)});n({images:t.concat(o)})}}})}},{key:"render",value:function(){var e=this,t=this.onSelectImages,n=this.addFiles,r=this.props,i=r.setAttributes,a=r.isSelected,c=r.className,s=this.props.attributes,u=s.align,p=s.images,d=s.stackStyle,g=wp.element.createElement(F,{onFilesDrop:n}),f=wp.element.createElement(L,null,wp.element.createElement(W,null,wp.element.createElement(K,{controls:Z,value:u,onChange:function(e){return i({align:e})}}),!!p.length&&wp.element.createElement(H,null,wp.element.createElement(U,{onSelect:t,allowedTypes:X,multiple:!0,gallery:!0,value:p.map(function(e){return e.id}),render:function(e){var t=e.open;return wp.element.createElement(V,{className:"components-toolbar__control",label:Object(x.__)("Edit Gallery","getwid"),icon:"edit",onClick:t})}}))));if(0===p.length)return wp.element.createElement(L,null,f,wp.element.createElement(q,{icon:"format-gallery",className:c,labels:{title:Object(x.__)("Image Stack Gallery","getwid"),instructions:Object(x.__)("Drag images, upload new ones or select files from your library.","getwid")},onSelect:t,accept:"image/*",allowedTypes:X,multiple:!0}));var b=T()(c,m()({},"is-layout-".concat(d),"default"!=d),u?"align".concat(u):null),w=Object(R.chunk)(p,3),h=!!p.length,v=h&&Object(R.some)(p,function(e){return e.id});return wp.element.createElement(L,null,f,wp.element.createElement(A.a,l()({},o({pickRelevantMediaFiles:te},this.props),{key:"inspector"})),wp.element.createElement("div",{className:b},g,wp.element.createElement("div",{className:"".concat(ee,"__wrapper")},w.map(function(t){return wp.element.createElement("div",{className:"".concat(ee,"__chunk")},t.map(function(t,n){return wp.element.createElement("div",{className:"".concat(ee,"__media-wrapper"),key:t.id||t.url},wp.element.createElement("div",{className:"".concat(ee,"__media-inner-wrapper")},wp.element.createElement(B.a,{url:t.url,alt:t.alt,id:t.id,isSelected:a,setAttributes:function(t){return e.setImageAttributes(n,t)}})))}))})),a&&wp.element.createElement(q,{addToGallery:v,isAppender:h,className:"components-form-file-upload",disableMediaButtons:h&&!a,icon:!h&&wp.element.createElement(BlockIcon,{icon:icon}),labels:{title:!h&&Object(x.__)("Gallery"),instructions:!h&&Object(x.__)("Drag images, upload new ones or select files from your library.")},onSelect:t,accept:"image/*",allowedTypes:X,multiple:!0,value:v?p:void 0})))}}]),t}(I);t.a=J([Y(function(e,t){var n=e("core"),r=n.getMedia,o=t.attributes.ids;if(void 0!==o)return{imgObj:o?o.map(function(e){return r(e)}):null}})])(ne)},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=m()(e);if(t()){var o=m()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p()(this,n)}}var o=n(2),i=n.n(o),a=n(4),l=n.n(a),c=n(5),s=n.n(c),u=n(6),p=n.n(u),d=n(3),m=n.n(d),g=(n(0),n(1)),f=(n.n(g),window),b=(f.jQuery,wp.element.Component),w=wp.blockEditor||wp.editor,h=w.InspectorControls,v=wp.components,y=v.PanelBody,_=v.SelectControl,k=function(e){function t(e){return i()(this,t),n.apply(this,arguments)}s()(t,e);var n=r(t);return l()(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=(t.align,t.images,t.ids,t.linkTo),r=t.imageSize,o=t.stackStyle,i=(t.stackOverlap,e.setAttributes),a=e.pickRelevantMediaFiles,l=(e.isSelected,e.className,e.imgObj),c=function(e){l.some(function(e){return void 0===e})||i({imageSize:e,images:l.map(function(t){return a(t,e)})})};return wp.element.createElement(h,null,wp.element.createElement(y,{title:Object(g.__)("Settings","getwid"),initialOpen:!0},0!=l.length&&wp.element.createElement(_,{label:Object(g.__)("Image Size","getwid"),help:Object(g.__)("For images from Media Library only.","getwid"),value:r,onChange:c,options:Getwid.settings.image_sizes}),wp.element.createElement(_,{label:Object(g.__)("Style","getwid"),value:o,onChange:function(e){return i({stackStyle:e})},options:[{value:"default",label:Object(g.__)("Default","getwid")},{value:"alpha",label:Object(g.__)("Alpha","getwid")},{value:"beta",label:Object(g.__)("Beta","getwid")},{value:"gamma",label:Object(g.__)("Gamma","getwid")},{value:"delta",label:Object(g.__)("Delta","getwid")},{value:"epsilon",label:Object(g.__)("Epsilon","getwid")},{value:"zeta",label:Object(g.__)("Zeta","getwid")}]}),wp.element.createElement(_,{label:Object(g.__)("Link to","getwid"),value:n,onChange:function(e){return i({linkTo:e})},options:[{value:"none",label:Object(g.__)("None","getwid")},{value:"attachment",label:Object(g.__)("Attachment Page","getwid")},{value:"media",label:Object(g.__)("Media File","getwid")}]})))}}]),t}(b);t.a=k},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=f()(e);if(t()){var o=f()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var o=n(2),i=n.n(o),a=n(4),l=n.n(a),c=n(11),s=n.n(c),u=n(5),p=n.n(u),d=n(6),m=n.n(d),g=n(3),f=n.n(g),b=(n(0),n(1)),w=(n.n(b),n(10)),h=(n.n(w),wp.data.withSelect),v=wp.blob.isBlobURL,y=wp.components.Spinner,_=wp.element,k=_.Component,O=_.Fragment,E=function(e){function t(){var e;return i()(this,t),e=n.apply(this,arguments),e.bindContainer=e.bindContainer.bind(s()(e)),e}p()(t,e);var n=r(t);return l()(t,[{key:"bindContainer",value:function(e){this.container=e}},{key:"componentDidUpdate",value:function(){var e=this.props,t=e.image,n=e.url;t&&!n&&this.props.setAttributes({url:t.source_url,alt:t.alt_text})}},{key:"render",value:function(){var e=this.props,t=e.url,n=e.alt,r=e.id,o=e.linkTo,i=e.link,a=(e.isSelected,Object(w.isEqual)(o,"media")?t:Object(w.isEqual)(o,"attachment")?i:void 0),l=wp.element.createElement(O,null,wp.element.createElement("img",{className:"".concat("wp-block-getwid-images-stack","__media"),src:t,alt:n,"data-id":r,tabIndex:"0"}),v(t)&&wp.element.createElement(y,null));return wp.element.createElement(O,null,a?wp.element.createElement("a",{href:a},l):l)}}]),t}(k);t.a=h(function(e,t){var n=e("core"),r=n.getMedia,o=t.id;return{image:o?r(o):null}})(E)},function(e,t){},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=f()(e);if(t()){var o=f()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var o=n(7),i=n.n(o),a=n(2),l=n.n(a),c=n(4),s=n.n(c),u=n(5),p=n.n(u),d=n(6),m=n.n(d),g=n(3),f=n.n(g),b=(n(0),n(10)),w=(n.n(b),n(1)),h=(n.n(w),n(8)),v=n.n(h),y=window,_=(y.jQuery,wp.element),k=_.Component,O=_.Fragment,E="wp-block-getwid-images-stack",C=function(e){function t(){return l()(this,t),n.apply(this,arguments)}p()(t,e);var n=r(t);return s()(t,[{key:"render",value:function(){var e=this.props.attributes,t=e.align,n=e.images,r=(e.ids,e.linkTo),o=(e.imageSize,e.stackStyle),a=(e.stackOverlap,e.className),l=v()(a,i()({},"is-layout-".concat(o),"default"!=o),t?"align".concat(t):null),c=Object(b.chunk)(n,3);return wp.element.createElement("div",{className:l},wp.element.createElement("div",{className:"".concat(E,"__wrapper")},c.map(function(e,t){return wp.element.createElement("div",{className:"".concat(E,"__chunk")},e.map(function(e){var t;switch(r){case"media":t=e.original_url;break;case"attachment":t=e.link}var n=v()("".concat(E,"__media"),e.id?"wp-image-".concat(e.id):""),o=wp.element.createElement("img",{className:n,src:e.url,alt:e.alt,"data-id":e.id,"data-link":e.link});return wp.element.createElement("div",{key:e.id||e.url,className:"".concat(E,"__media-wrapper")},wp.element.createElement("div",{className:"".concat(E,"__media-inner-wrapper")},wp.element.createElement(O,null,t?wp.element.createElement("a",{href:t},o):o)))}))})))}}]),t}(k);t.a=C},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=f()(e);if(t()){var o=f()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var o=n(7),i=n.n(o),a=n(2),l=n.n(a),c=n(4),s=n.n(c),u=n(5),p=n.n(u),d=n(6),m=n.n(d),g=n(3),f=n.n(g),b=(n(0),n(10)),w=(n.n(b),n(1)),h=(n.n(w),n(8)),v=n.n(h),y=window,_=(y.jQuery,wp.element),k=_.Component,O=_.Fragment,E="wp-block-getwid-images-stack",C=function(e){function t(){return l()(this,t),n.apply(this,arguments)}p()(t,e);var n=r(t);return s()(t,[{key:"render",value:function(){var e=this.props.attributes,t=e.align,n=e.images,r=(e.ids,e.linkTo),o=(e.imageSize,e.stackStyle),a=(e.stackOverlap,e.className),l=v()(a,i()({},"is-layout-".concat(o),"default"!=o),t?"align".concat(t):null),c=Object(b.chunk)(n,3);return wp.element.createElement("div",{className:l},wp.element.createElement("div",{className:"".concat(E,"__wrapper")},c.map(function(e,t){return wp.element.createElement("div",{className:"".concat(E,"__chunk")},e.map(function(e){var t;switch(r){case"media":t=e.original_url;break;case"attachment":t=e.link}var n=v()("".concat(E,"__media"),e.id?"wp-image-".concat(e.id):null),o=wp.element.createElement("img",{className:n,src:e.url,alt:e.alt,"data-id":e.id,"data-link":e.link});return wp.element.createElement("div",{key:e.id||e.url,className:"".concat(E,"__media-wrapper")},wp.element.createElement("div",{className:"".concat(E,"__media-inner-wrapper")},wp.element.createElement(O,null,t?wp.element.createElement("a",{href:t},o):o)))}))})))}}]),t}(k);t.a=C},function(e,t){},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(n,!0).forEach(function(t){a()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var i=n(7),a=n.n(i),l=(n(0),n(237)),c=n(238),s=n(240),u=n(12),p=n(1),d=(n.n(p),window),m=(d.jQuery,wp.blocks.registerBlockType);m("getwid/map",o(o({title:Object(p.__)("Google Maps","getwid"),icon:wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},wp.element.createElement("path",{d:"M12,2C8.1,2,5,5.1,5,9c0,3.9,7,13,7,13s7-9.1,7-13C19,5.1,15.9,2,12,2z M6.9,9.1C6.9,6.3,9.2,4,12,4s5.1,2.3,5.1,5.1 c0,2.8-5.1,9.5-5.1,9.5S6.9,11.9,6.9,9.1z"}),wp.element.createElement("circle",{cx:"12",cy:"9",r:"3"})),category:"getwid-blocks",keywords:[],supports:{inserter:!Getwid.disabled_blocks.includes("getwid/map")},attributes:l.a,getEditWrapperProps:function(e){var t=e.blockAlignment;if("full"===t||"wide"===t)return{"data-align":t}}},Object(u.b)("getwid/map",c.a)),{},{save:s.a}))},function(e,t,n){"use strict";var r={mapHeight:{type:"number",default:600},mapCenter:{type:"object",default:{lat:37.9106161839889,lng:25.1221243506071}},mapZoom:{type:"number",default:2},interaction:{type:"string",source:"attribute",default:"cooperative",selector:".wp-block-getwid-map",attribute:"data-interaction"},zoomControl:{type:"boolean",default:!0},mapTypeControl:{type:"boolean",default:!0},streetViewControl:{type:"boolean",default:!0},fullscreenControl:{type:"boolean",default:!0},mapStyle:{type:"string",source:"attribute",default:"default",selector:".wp-block-getwid-map",attribute:"data-map-style"},customStyle:{type:"string",source:"attribute",selector:".wp-block-getwid-map",attribute:"data-custom-style"},blockAlignment:{type:"string"},mapMarkers:{type:"string",source:"attribute",selector:".wp-block-getwid-map",attribute:"data-map-markers",default:""}};t.a=r},function(module,__webpack_exports__,__webpack_require__){"use strict";function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(n,!0).forEach(function(t){__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_defineProperty___default()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _createSuper(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_getPrototypeOf___default()(e);if(t()){var o=__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_getPrototypeOf___default()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return __WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_possibleConstructorReturn___default()(this,n)}}var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_extends__=__webpack_require__(9),__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_extends___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_extends__),__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_defineProperty__=__webpack_require__(7),__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_defineProperty___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_defineProperty__),__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_typeof__=__webpack_require__(13),__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_typeof___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_typeof__),__WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_classCallCheck__=__webpack_require__(2),__WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_classCallCheck___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_classCallCheck__),__WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_createClass__=__webpack_require__(4),__WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_createClass___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_createClass__),__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_assertThisInitialized__=__webpack_require__(11),__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_assertThisInitialized___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_assertThisInitialized__),__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_inherits__=__webpack_require__(5),__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_inherits___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_inherits__),__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_possibleConstructorReturn__=__webpack_require__(6),__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_possibleConstructorReturn___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_possibleConstructorReturn__),__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_getPrototypeOf__=__webpack_require__(3),__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_getPrototypeOf___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_getPrototypeOf__),__WEBPACK_IMPORTED_MODULE_9__wordpress_element__=__webpack_require__(0),__WEBPACK_IMPORTED_MODULE_10_lodash__=__webpack_require__(10),__WEBPACK_IMPORTED_MODULE_10_lodash___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_10_lodash__),__WEBPACK_IMPORTED_MODULE_11_classnames__=__webpack_require__(8),__WEBPACK_IMPORTED_MODULE_11_classnames___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_11_classnames__),__WEBPACK_IMPORTED_MODULE_12__inspector__=__webpack_require__(239),__WEBPACK_IMPORTED_MODULE_13__editor_scss__=__webpack_require__(68),__WEBPACK_IMPORTED_MODULE_13__editor_scss___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_13__editor_scss__),__WEBPACK_IMPORTED_MODULE_14_wp_i18n__=__webpack_require__(1),__WEBPACK_IMPORTED_MODULE_14_wp_i18n___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_14_wp_i18n__),_wp$element=wp.element,Component=_wp$element.Component,Fragment=_wp$element.Fragment,_ref=wp.blockEditor||wp.editor,BlockControls=_ref.BlockControls,BlockAlignmentToolbar=_ref.BlockAlignmentToolbar,_wp$components=wp.components,Button=_wp$components.Button,ToolbarGroup=_wp$components.ToolbarGroup,TextControl=_wp$components.TextControl,_window=window,$=_window.jQuery,baseClass="wp-block-getwid-map",Edit=function(_Component){function Edit(e){var t;return __WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_classCallCheck___default()(this,Edit),t=_super.apply(this,arguments),t.changeState=t.changeState.bind(__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_assertThisInitialized___default()(t)),t.getState=t.getState.bind(__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_assertThisInitialized___default()(t)),t.updateArrValues=t.updateArrValues.bind(__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_assertThisInitialized___default()(t)),t.initMapEvents=t.initMapEvents.bind(__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_assertThisInitialized___default()(t)),t.initMarkers=t.initMarkers.bind(__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_assertThisInitialized___default()(t)),t.mapStyles=t.mapStyles.bind(__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_assertThisInitialized___default()(t)),t.cancelMarker=t.cancelMarker.bind(__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_assertThisInitialized___default()(t)),t.onDeleteMarker=t.onDeleteMarker.bind(__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_assertThisInitialized___default()(t)),t.manageGoogleAPIKey=t.manageGoogleAPIKey.bind(__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_assertThisInitialized___default()(t)),t.removeGoogleAPIScript=t.removeGoogleAPIScript.bind(__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_assertThisInitialized___default()(t)),t.state={currentMarker:null,googleApiKey:""!=Getwid.settings.google_api_key?Getwid.settings.google_api_key:"",checkApiKey:""!=Getwid.settings.google_api_key?Getwid.settings.google_api_key:"",mapObj:{},markerArrTemp:[],action:!1,editModal:!1,firstInit:!0},t}__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_inherits___default()(Edit,_Component);var _super=_createSuper(Edit);return __WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_createClass___default()(Edit,[{key:"updateArrValues",value:function(e,t){e=function e(t,n){var r={};return Object.keys(t).forEach(function(o){var i;i=null!==t[o]&&"object"===__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_typeof___default()(t[o])?e(t[o],n):n(t[o],o),r[o]=i}),r}(e,function(e,t){return void 0===e&&(e=""),e});var n=this.props,r=n.attributes,o=n.setAttributes,i=r.mapMarkers,a=""!=i?JSON.parse(i):[],l=a.map(function(n,r){return t===r&&(n=Object(__WEBPACK_IMPORTED_MODULE_10_lodash__.merge)(n,e)),n});o({mapMarkers:JSON.stringify(l)})}},{key:"addGoogleAPIScript",value:function(){function e(e){t("firstInit",!0)}var t=this.changeState;this.getState;$("#google_api_js").length?t("firstInit",!0):function(t,n){var r=document.createElement("script");r.type="text/javascript",r.src=t+n,r.id="google_api_js";var o=!1;document.getElementsByTagName("head")[0].appendChild(r),r.onload=r.onreadystatechange=function(){o||this.readyState&&"loaded"!==this.readyState&&"complete"!==this.readyState||(o=!0,r.onload=r.onreadystatechange=null,e(n))}}("https://maps.googleapis.com/maps/api/js?key=",Getwid.settings.google_api_key)}},{key:"removeGoogleAPIScript",value:function(){var e=$("#google_api_js");e.length&&e.remove();var t=$("script[src*='maps.googleapis.com']");t.length&&$.each(t,function(e,t){$(t).remove()}),window.google={}}},{key:"manageGoogleAPIKey",value:function(e,t){e.preventDefault();var n={action:"get_google_api_key",data:this.getState("checkApiKey"),option:t,nonce:Getwid.nonces.google_api_key};"set"==t?(Getwid.settings.google_api_key=this.getState("checkApiKey"),this.addGoogleAPIScript()):"delete"==t&&(Getwid.settings.google_api_key=""),jQuery.post(Getwid.ajax_url,n,function(e){})}},{key:"enterGoogleAPIKeyForm",value:function(){var e=this;return wp.element.createElement("form",{className:"".concat(baseClass,"__key-form"),onSubmit:function(t){return e.manageGoogleAPIKey(t,"set")}},wp.element.createElement("span",{className:"form-title"},Object(__WEBPACK_IMPORTED_MODULE_14_wp_i18n__.__)("Google Maps API key.","getwid")," ",wp.element.createElement("a",{href:"https://developers.google.com/maps/documentation/embed/get-api-key",target:"_blank"},Object(__WEBPACK_IMPORTED_MODULE_14_wp_i18n__.__)("Get your key.","getwid"))),wp.element.createElement("div",{className:"form-wrapper"},wp.element.createElement(TextControl,{placeholder:Object(__WEBPACK_IMPORTED_MODULE_14_wp_i18n__.__)("Google Maps API Key","getwid"),onChange:function(t){return e.changeState("checkApiKey",t)}}),wp.element.createElement(Button,{isPrimary:!0,type:"submit",disabled:""==this.getState("checkApiKey")||null},Object(__WEBPACK_IMPORTED_MODULE_14_wp_i18n__.__)("Save API Key","getwid"))))}},{key:"mapStyles",value:function mapStyles(){var _this$props$attribute=this.props.attributes,mapStyle=_this$props$attribute.mapStyle,customStyle=_this$props$attribute.customStyle;if("object"==__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_typeof___default()(mapStyle))return null;if("custom"!=mapStyle)return stylesArr[mapStyle];try{return eval(customStyle)}catch(e){if(!(e instanceof SyntaxError))throw e;console.error(e.message)}}},{key:"initMap",value:function(){var e,t=this,n=(arguments.length>0&&void 0!==arguments[0]&&arguments[0],arguments.length>1?arguments[1]:void 0),r=this.props,o=r.attributes,i=o.mapCenter,a=o.mapZoom,l=(o.interaction,o.zoomControl),c=o.mapTypeControl,s=o.streetViewControl,u=o.fullscreenControl,p=o.mapMarkers,d=r.clientId,m=(r.className,r.setAttributes,""!=p?JSON.parse(p):[]),g=!Object(__WEBPACK_IMPORTED_MODULE_10_lodash__.isEqual)(this.props.attributes.mapCenter,n.attributes.mapCenter),f=this.initMapEvents,b=this.initMarkers,w=this.onDeleteMarker,h=(this.changeState,this.getState),v=this.mapStyles;1==this.getState("firstInit")?this.waitLoadGoogle=setInterval(function(){if("undefined"!=typeof google){var n=$("[data-block='".concat(d,"']")),r=$(".".concat(baseClass,"__container"),n)[0];n.on("keydown",function(e){46===e.keyCode&&null!==h("currentMarker")&&"drop"!=h("action")&&confirm(Object(__WEBPACK_IMPORTED_MODULE_14_wp_i18n__.__)("Delete Marker","getwid"))&&w(h("currentMarker"))}),e=new google.maps.Map(r,{center:i,styles:v(),gestureHandling:"cooperative",zoomControl:l,mapTypeControl:c,streetViewControl:s,fullscreenControl:u,zoom:a}),t.setState({mapObj:e,firstInit:!1}),m.length&&$.each(m,function(t,n){b(!0,!1,t,e)}),f(e),clearInterval(t.waitLoadGoogle)}},1):(e=this.getState("mapObj"),e.setOptions({styles:v(),zoomControl:l,mapTypeControl:c,streetViewControl:s,fullscreenControl:u}),g&&e.panTo(i))}},{key:"initMapEvents",value:function(e){var t=this.props.setAttributes,n=this.updateArrValues,r=this.changeState,o=this.getState,i=new google.maps.Geocoder;e.addListener("click",function(e){if("drop"==o("action")){var t={lat:e.latLng.lat(),lng:e.latLng.lng()};i.geocode({location:t},function(e,t){"OK"===t&&e[0]&&n({description:Object(__WEBPACK_IMPORTED_MODULE_10_lodash__.escape)(e[0].formatted_address)},o("currentMarker"))}),n({coords:t},o("currentMarker")),r("editModal",!0)}else r("currentMarker",null)}),e.addListener("zoom_changed",function(n){t({mapZoom:e.getZoom()})}),e.addListener("dragend",function(n){t({mapCenter:{lat:e.getCenter().lat(),lng:e.getCenter().lng()}})})}},{key:"cancelMarker",value:function(){var e=this.props,t=e.attributes.mapMarkers,n=e.setAttributes,r=""!=t?JSON.parse(t):[],o=this.getState,i=this.changeState,a=r.filter(function(e,t){return t!==o("currentMarker")});i("currentMarker",null),n({mapMarkers:JSON.stringify(a)})}},{key:"initMarkers",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=this.props,a=i.attributes.mapMarkers,l=(i.className,this.state.markerArrTemp),c=""!=a?JSON.parse(a):[],s=c[r].coords;0==n?(e=new google.maps.Marker({id:r,position:s,map:o,draggable:!0,animation:t?google.maps.Animation.DROP:null}),l.push(e),c[r].bounce&&setTimeout(function(){e.setAnimation(google.maps.Animation.BOUNCE)},2e3)):(e=l[r],e.setPosition(s));var u="";""!=Object(__WEBPACK_IMPORTED_MODULE_10_lodash__.unescape)(c[r].description)&&(u="\n\t\t\t\t<div class='getwid-poi-info-window'>\n\t\t\t\t\t".concat(Object(__WEBPACK_IMPORTED_MODULE_10_lodash__.unescape)(c[r].description),"\n\t\t\t\t</div>\n\t\t\t")),this.attachMessage(r,e,u,c[r].popUpOpen,c[r].popUpMaxWidth,n)}},{key:"attachMessage",value:function(e,t,n,r,o,i){var a,l=this.props,c=(l.className,l.setAttributes,this.getState,this.changeState),s=this.updateArrValues;0==i?(a=new google.maps.InfoWindow({content:n,maxWidth:o}),t.popUp=a):(a=t.popUp,a.setContent(n),a.setOptions({maxWidth:o})),i&&a.close(),r&&a.open(t.get("map"),t),t.addListener("click",function(){""!=a.content&&a.open(t.get("map"),t),c("currentMarker",t.id)}),t.addListener("rightclick",function(){null!==t.getAnimation()?(t.setAnimation(null),s({bounce:!1},t.id)):(t.setAnimation(google.maps.Animation.BOUNCE),s({bounce:!0},t.id))}),t.addListener("dragend",function(e){s({coords:{lat:e.latLng.lat(),lng:e.latLng.lng()}},t.id)})}},{key:"changeState",value:function(e,t){this.setState(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_defineProperty___default()({},e,t))}},{key:"getState",value:function(e){return this.state[e]}},{key:"componentWillUnmount",value:function(){clearInterval(this.waitLoadGoogle)}},{key:"componentDidMount",value:function(){""!=this.getState("googleApiKey")&&this.addGoogleAPIScript()}},{key:"componentDidUpdate",value:function(e,t){var n=e.attributes.mapMarkers,r=1==this.state.firstInit||!Object(__WEBPACK_IMPORTED_MODULE_10_lodash__.isEqual)(this.props.attributes,e.attributes);""!=Getwid.settings.google_api_key&&r&&this.initMap(!!n.length,e)}},{key:"onAddMarker",value:function(){var e=this.props,t=e.attributes.mapMarkers,n=e.setAttributes,r=""!=t?JSON.parse(t):[],o=r,i=this.changeState;o.push({name:"#"+(o.length+1),description:"",popUpOpen:!1,popUpMaxWidth:250,bounce:!1,coords:{lat:0,lng:0}}),n({mapMarkers:JSON.stringify(o)}),i("currentMarker",1==o.length?0:o.length-1)}},{key:"onDeleteMarker",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=this.props,n=t.attributes.mapMarkers,r=t.setAttributes,o=""!=n?JSON.parse(n):[],i=this.state.markerArrTemp,a=(this.getState,this.changeState),l=o.filter(function(t,n){return n!==e}),c=i.filter(function(t,n){return n!==e});$.each(c,function(e,t){c[e].id=e}),i[e].setMap(null),a("currentMarker",null),a("markerArrTemp",c),r({mapMarkers:JSON.stringify(l)})}},{key:"render",value:function(){var e=this;if(""==Getwid.settings.google_api_key)return this.enterGoogleAPIKeyForm();var t=this.props,n=t.attributes,r=n.mapHeight,o=(n.mapCenter,n.mapZoom,n.interaction,n.zoomControl,n.mapTypeControl,n.streetViewControl,n.fullscreenControl,n.mapStyle,n.customStyle,n.blockAlignment),i=(n.mapMarkers,t.className),a=t.setAttributes,l=this.initMarkers,c=this.cancelMarker,s=this.onDeleteMarker,u=this.updateArrValues,p=this.changeState,d=this.getState,m=this.manageGoogleAPIKey,g=this.removeGoogleAPIScript,f=__WEBPACK_IMPORTED_MODULE_11_classnames___default()(i,__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_defineProperty___default()({},"".concat(baseClass,"--dropMarker"),"drop"==d("action")));return wp.element.createElement(Fragment,null,wp.element.createElement(BlockControls,null,wp.element.createElement(BlockAlignmentToolbar,{value:o,controls:["wide","full"],onChange:function(e){return a({blockAlignment:e})}}),wp.element.createElement(ToolbarGroup,{controls:[{icon:"location",title:Object(__WEBPACK_IMPORTED_MODULE_14_wp_i18n__.__)("Drop Marker","getwid"),isDisabled:null!=d("currentMarker"),isActive:"drop"==d("action"),onClick:function(){"drop"!=d("action")&&(e.onAddMarker(),p("action","drop"))}},{icon:"edit",title:Object(__WEBPACK_IMPORTED_MODULE_14_wp_i18n__.__)("Edit Marker","getwid"),isDisabled:null===d("currentMarker")||"drop"==d("action"),isActive:"edit"==d("action")&&1==d("editModal"),onClick:function(){p("action","edit"),p("editModal",!0)}},{icon:"trash",title:Object(__WEBPACK_IMPORTED_MODULE_14_wp_i18n__.__)("Delete Marker","getwid"),isDisabled:null===d("currentMarker")||"drop"==d("action"),onClick:function(){e.onDeleteMarker(d("currentMarker"))}}]})),wp.element.createElement(__WEBPACK_IMPORTED_MODULE_12__inspector__.a,__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_extends___default()({},_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({},this.props),{initMarkers:l}),{cancelMarker:c}),{onDeleteMarker:s}),{updateArrValues:u}),{changeState:p}),{getState:d}),{manageGoogleAPIKey:m}),{removeGoogleAPIScript:g}),{key:"inspector"})),wp.element.createElement("div",{className:f},wp.element.createElement("div",{style:{height:r+"px"},className:"".concat(baseClass,"__container")})))}}]),Edit}(Component);__webpack_exports__.a=Edit},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=v()(e);if(t()){var o=v()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return w()(this,n)}}var o=n(13),i=n.n(o),a=n(15),l=n.n(a),c=n(7),s=n.n(c),u=n(2),p=n.n(u),d=n(4),m=n.n(d),g=n(5),f=n.n(g),b=n(6),w=n.n(b),h=n(3),v=n.n(h),y=(n(0),n(10)),_=(n.n(y),n(44)),k=n(19),O=n(1),E=(n.n(O),window),C=(E.jQuery,wp.element),j=C.Component,S=C.Fragment,x=wp.blockEditor||wp.editor,P=x.InspectorControls,T=wp.components,R=T.Button,N=T.BaseControl,A=T.ButtonGroup,B=T.PanelBody,D=T.RangeControl,M=T.ToggleControl,I=T.SelectControl,L=T.Modal,z=T.TextControl,V=T.TextareaControl,F=T.ExternalLink,H=T.RadioControl,G=function(e){function t(e){var r;return p()(this,t),r=n.apply(this,arguments),r.state={tabName:"general"},r}f()(t,e);var n=r(t);return m()(t,[{key:"render",value:function(){var e=this,t=this.props,n=t.attributes,r=n.mapHeight,o=n.mapCenter,a=n.mapZoom,c=n.mapStyle,u=n.interaction,p=n.zoomControl,d=n.mapTypeControl,m=n.streetViewControl,g=n.fullscreenControl,f=n.customStyle,b=n.mapMarkers,w=(n.blockAlignment,t.initMarkers),h=t.cancelMarker,v=t.onDeleteMarker,E=t.updateArrValues,C=t.changeState,j=t.getState,x=t.manageGoogleAPIKey,T=t.removeGoogleAPIScript,G=t.setAttributes,W=t.className,U=this.state.tabName,q=""!=b?JSON.parse(b):[],Q=function(e){if(void 0!==q[e])return wp.element.createElement(_.a,{title:Object(O.__)("Marker","getwid")+": "+q[e].name,initialOpen:!1,onOpen:function(){j("markerArrTemp")[e].setAnimation(google.maps.Animation.BOUNCE)},onClose:function(){j("markerArrTemp")[e].setAnimation(null)}},wp.element.createElement(z,{label:Object(O.__)("Name","getwid"),value:q[e].name,onChange:function(t){E({name:t},e)}}),wp.element.createElement(V,{label:Object(O.__)("Popup Content. Plain Text or HTML.","getwid"),rows:"5",value:Object(y.unescape)(q[e].description),onChange:function(t){E({description:Object(y.escape)(t)},e)}}),wp.element.createElement(M,{label:Object(O.__)("Opened by default","getwid"),checked:q[e].popUpOpen,onChange:function(t){E({popUpOpen:t},e)}}),wp.element.createElement(z,{label:Object(O.__)("Popup Width","getwid"),value:q[e].popUpMaxWidth,type:"number",onChange:function(t){E({popUpMaxWidth:t},e)}}),wp.element.createElement(z,{label:Object(O.__)("Latitude","getwid"),value:q[e].coords.lat,type:"number",onChange:function(t){E({coords:{lat:parseFloat(t),lng:q[e].coords.lng}},e)}}),wp.element.createElement(z,{label:Object(O.__)("Longitude","getwid"),value:q[e].coords.lng,type:"number",onChange:function(t){E({coords:{lat:q[e].coords.lat,lng:parseFloat(t)}},e)}}),wp.element.createElement(A,null,wp.element.createElement(R,{isPrimary:!0,onClick:function(){w(!1,!0,e,j("mapObj"))}},Object(O.__)("Update","getwid")),wp.element.createElement(R,{isDefault:!0,onClick:function(){v(e)}},Object(O.__)("Delete","getwid"))))};return wp.element.createElement(P,{key:"inspector"},wp.element.createElement(k.a,{state:U,stateName:"tabName",onChangeTab:function(t,n){e.setState(s()({},t,n))},tabs:["general","style"].concat(l()(q.length>0?["layout"]:[]))}),"general"===U&&wp.element.createElement(S,null,wp.element.createElement(B,{title:Object(O.__)("Settings","getwid"),initialOpen:!0},wp.element.createElement(H,{label:Object(O.__)("Zoom & Pan Interaction","getwid"),help:Object(O.__)("These options are applied on frontend only.","getwid"),selected:u,options:[{value:"cooperative",label:Object(O.__)("Prevent zoom on page scroll","getwid")},{value:"none",label:Object(O.__)("Disable zoom and pan","getwid")},{value:"greedy",label:Object(O.__)("Enable zoom and pan","getwid")}],onChange:function(e){return G({interaction:e})}})),wp.element.createElement(B,{title:Object(O.__)("Map Center & Zoom","getwid"),initialOpen:!1},wp.element.createElement(z,{label:Object(O.__)("Zoom","getwid"),help:Object(O.__)("Drag and zoom map in preview area to apply.","getwid"),value:a,type:"number",min:1,max:22,step:1,onChange:function(e){j("mapObj").setZoom(""==e||0==e?1:parseInt(e,10))}}),wp.element.createElement(z,{label:Object(O.__)("Center Latitude","getwid"),value:o.lat,type:"number",onChange:function(e){G({mapCenter:{lat:parseFloat(e),lng:o.lng}})}}),wp.element.createElement(z,{label:Object(O.__)("Center Longitude","getwid"),value:o.lng,type:"number",onChange:function(e){G({mapCenter:{lat:o.lat,lng:parseFloat(e)}})}})),wp.element.createElement(B,{title:Object(O.__)("Google Maps API Key","getwid"),initialOpen:!1},wp.element.createElement(z,{label:Object(O.__)("Google Maps API Key","getwid"),value:j("checkApiKey"),onChange:function(e){return C("checkApiKey",e)}}),wp.element.createElement(N,null,wp.element.createElement(A,null,wp.element.createElement(R,{isPrimary:!0,disabled:""==j("checkApiKey")||null,onClick:function(e){T(),x(e,"set")}},Object(O.__)("Update","getwid")),wp.element.createElement(R,{isDefault:!0,onClick:function(e){C("checkApiKey",""),C("googleApiKey",""),x(e,"delete"),T()}},Object(O.__)("Delete","getwid")))),wp.element.createElement(N,null,wp.element.createElement(F,{href:"https://developers.google.com/maps/documentation/embed/get-api-key"},Object(O.__)("Get your key.","getwid"))))),"style"===U&&wp.element.createElement(S,null,wp.element.createElement(B,{initialOpen:!0},wp.element.createElement(D,{label:Object(O.__)("Map Height","getwid"),value:r,onChange:function(e){void 0===e&&(e=600),G({mapHeight:e})},allowReset:!0,min:100,max:1080,step:1}),wp.element.createElement(M,{label:Object(O.__)("Show Zoom","getwid"),checked:p,onChange:function(e){G({zoomControl:e})}}),wp.element.createElement(M,{label:Object(O.__)("Show Map Type","getwid"),checked:d,onChange:function(e){G({mapTypeControl:e})}}),wp.element.createElement(M,{label:Object(O.__)("Show Street View","getwid"),checked:m,onChange:function(e){G({streetViewControl:e})}}),wp.element.createElement(M,{label:Object(O.__)("Show Full Screen","getwid"),checked:g,onChange:function(e){G({fullscreenControl:e})}}),wp.element.createElement(I,{label:Object(O.__)("Map Style","getwid"),value:c,onChange:function(e){return G({mapStyle:e})},options:[{value:"default",label:Object(O.__)("Default","getwid")},{value:"silver",label:Object(O.__)("Silver","getwid")},{value:"retro",label:Object(O.__)("Retro","getwid")},{value:"dark",label:Object(O.__)("Dark","getwid")},{value:"night",label:Object(O.__)("Night","getwid")},{value:"aubergine",label:Object(O.__)("Aubergine","getwid")},{value:"blue_water",label:Object(O.__)("Blue Water","getwid")},{value:"ultra_light",label:Object(O.__)("Ultra Light","getwid")},{value:"dark_silver",label:Object(O.__)("Dark Silver","getwid")},{value:"shades_of_grey",label:Object(O.__)("Shades of Grey","getwid")},{value:"no_labels",label:Object(O.__)("No Labels","getwid")},{value:"wild_west",label:Object(O.__)("Wild West","getwid")},{value:"vintage",label:Object(O.__)("Vintage","getwid")},{value:"wireframe",label:Object(O.__)("Wireframe","getwid")},{value:"light_dream",label:Object(O.__)("Light Dream","getwid")},{value:"custom",label:Object(O.__)("Custom","getwid")}]}),"object"!=i()(c)&&"custom"==c&&wp.element.createElement(S,null,wp.element.createElement(V,{label:Object(O.__)("Custom Style (JSON)","getwid"),rows:"8",value:f,onChange:function(e){G({customStyle:e})}}),wp.element.createElement(F,{href:"https://mapstyle.withgoogle.com/"},Object(O.__)("Google Maps Styling Wizard","getwid")),wp.element.createElement("br",null),wp.element.createElement(F,{href:"https://snazzymaps.com/explore"},Object(O.__)("Snazzy Maps","getwid"))))),function(e){if(void 0!==q[e])return wp.element.createElement(S,null,"edit"!=j("action")&&"drop"!=j("action")||1!=j("editModal")?null:wp.element.createElement(L,{className:"".concat(W,"__modal"),title:Object(O.__)("Edit Marker","getwid"),onRequestClose:function(){C("action",!1),C("editModal",!1),"drop"==j("action")?h():C("currentMarker",null)}},wp.element.createElement(S,null,wp.element.createElement(z,{label:Object(O.__)("Name","getwid"),value:q[e].name,onChange:function(t){E({name:t},e)}}),wp.element.createElement(V,{label:Object(O.__)("Popup Content. Plain Text or HTML.","getwid"),rows:"5",value:Object(y.unescape)(q[e].description),onChange:function(t){E({description:Object(y.escape)(t)},e)}}),wp.element.createElement(M,{label:Object(O.__)("Opened by default","getwid"),checked:q[e].popUpOpen,onChange:function(t){E({popUpOpen:t},e)}}),wp.element.createElement(z,{label:Object(O.__)("Popup Maximum Width, px.","getwid"),value:q[e].popUpMaxWidth,type:"number",onChange:function(t){E({popUpMaxWidth:t},e)}}),wp.element.createElement(z,{label:Object(O.__)("Latitude","getwid"),value:q[e].coords.lat,type:"number",onChange:function(t){E({coords:{lat:parseFloat(t),lng:q[e].coords.lng}},e)}}),wp.element.createElement(z,{label:Object(O.__)("Longitude","getwid"),value:q[e].coords.lng,type:"number",onChange:function(t){E({coords:{lat:q[e].coords.lat,lng:parseFloat(t)}},e)}}),wp.element.createElement(A,null,wp.element.createElement(R,{isPrimary:!0,onClick:function(){"drop"==j("action")?w(!1,!1,j("currentMarker"),j("mapObj")):"edit"==j("action")&&w(!1,!0,j("currentMarker"),j("mapObj")),C("currentMarker",null),C("action",!1),C("editModal",!1)}},"drop"==j("action")?Object(O.__)("Save","getwid"):Object(O.__)("Update","getwid")),"drop"==j("action")&&wp.element.createElement(R,{isDefault:!0,onClick:function(){C("action",!1),C("editModal",!1),h()}},Object(O.__)("Cancel","getwid"))))))}(j("currentMarker")),q.length>0&&wp.element.createElement(S,null,"layout"===U&&wp.element.createElement(S,null,wp.element.createElement(B,{title:Object(O.__)("Markers","getwid")},Object(y.times)(q.length,function(e){return Q(e)})))))}}]),t}(j);t.a=G},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=f()(e);if(t()){var o=f()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var o=n(9),i=n.n(o),a=n(2),l=n.n(a),c=n(4),s=n.n(c),u=n(5),p=n.n(u),d=n(6),m=n.n(d),g=n(3),f=n.n(g),b=(n(0),n(8)),w=n.n(b),h=n(10),v=(n.n(h),n(68)),y=(n.n(v),n(241)),_=(n.n(y),wp.element),k=_.Component,O=_.Fragment,E="wp-block-getwid-map",C=function(e){function t(){return l()(this,t),n.apply(this,arguments)}p()(t,e);var n=r(t);return s()(t,[{key:"stripStringRender",value:function(e){return e.toLowerCase().replace(/[^0-9a-z-]/g,"")}},{key:"render",value:function(){var e=this.props.attributes,t=e.mapHeight,n=e.mapCenter,r=e.mapZoom,o=e.interaction,a=e.zoomControl,l=e.mapTypeControl,c=e.streetViewControl,s=e.fullscreenControl,u=e.mapStyle,p=e.customStyle,d=e.blockAlignment,m=e.mapMarkers,g=e.className,f=""!=m?JSON.parse(m):[],b=w()(E,g,d?"align".concat(d):null),v={"data-map-zoom":r,"data-interaction":o,"data-map-style":u,"data-custom-style":p},y={"data-map-center":JSON.stringify(n)},_={"data-zoom-control":a,"data-type-control":l,"data-street-view-control":c,"data-full-screen-control":s},k={"data-map-markers":Object(h.escape)(m)},C=function(e){if(void 0!==f[e])return wp.element.createElement(O,null,wp.element.createElement("li",null,wp.element.createElement("a",{href:"https://maps.google.com/?q=".concat(f[e].coords.lat,",").concat(f[e].coords.lng,"&ll=").concat(f[e].coords.lat,",").concat(f[e].coords.lng,"&z=").concat(r)},"".concat(f[e].name))))};return wp.element.createElement(O,null,wp.element.createElement("div",i()({},v,y,_,k,{className:b}),wp.element.createElement("div",{style:{height:t+"px"},className:"".concat(E,"__container")}),0!=f.length&&wp.element.createElement(O,null,wp.element.createElement("ul",{className:"".concat(E,"__points")},Object(h.times)(f.length,function(e){return C(e)})))))}}]),t}(k);t.a=C},function(e,t){},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(n,!0).forEach(function(t){a()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var i=n(7),a=n.n(i),l=(n(0),n(243)),c=n(244),s=n(12),u=n(247),p=(n.n(u),n(1)),d=(n.n(p),window),m=(d.jQuery,wp.blocks),g=m.registerBlockType,f=m.createBlock;g("getwid/recent-posts",o(o({title:Object(p.__)("Recent Posts","getwid"),icon:wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 24 24"},wp.element.createElement("path",{d:"M0,0v10h10V0H0z M8,8H2V2h6V8z"}),wp.element.createElement("rect",{x:"12",y:"2",width:"12",height:"2"}),wp.element.createElement("rect",{x:"12",y:"6",width:"8",height:"2"}),wp.element.createElement("path",{d:"M0,14v10h10V14H0z M8,22H2v-6h6V22z"}),wp.element.createElement("rect",{x:"12",y:"16",width:"12",height:"2"}),wp.element.createElement("rect",{x:"12",y:"20",width:"8",height:"2"})),category:"getwid-blocks",keywords:[Object(p.__)("latest","getwid")],supports:{inserter:!Getwid.disabled_blocks.includes("getwid/recent-posts")},transforms:{to:[{type:"block",blocks:["getwid/custom-post-type"],transform:function(e){return f("getwid/custom-post-type",{postType:"post",postsToShow:e.postsToShow,postLayout:e.postLayout,columns:e.columns,order:e.order,orderBy:e.orderBy,align:e.align})}},{type:"block",blocks:["getwid/post-carousel"],transform:function(e){return f("getwid/post-carousel",{titleTag:e.titleTag,imageSize:e.imageSize,cropImages:e.cropImages,postsToShow:e.postsToShow,showTitle:e.showTitle,showDate:e.showDate,showCategories:e.showCategories,showCommentsCount:e.showCommentsCount,showContent:1==e.showContent?"excerpt":"none",contentLength:e.contentLength,showFeaturedImage:e.showFeaturedImage,order:e.order,orderBy:e.orderBy})}},{type:"block",blocks:["getwid/post-slider"],transform:function(e){return f("getwid/post-slider",{titleTag:e.titleTag,imageSize:e.imageSize,cropImages:e.cropImages,postsToShow:e.postsToShow,showTitle:e.showTitle,showDate:e.showDate,showCategories:e.showCategories,showCommentsCount:e.showCommentsCount,showContent:1==e.showContent?"excerpt":"none",contentLength:e.contentLength,order:e.order,orderBy:e.orderBy})}}]},attributes:l.a,getEditWrapperProps:function(e){var t=e.align;if(["wide","full"].includes(t))return{"data-align":t}}},Object(s.b)("getwid/recent-posts",c.a)),{},{save:function(){return null}}))},function(e,t,n){"use strict";var r={titleTag:{type:"string",default:"h3"},imageSize:{type:"string",default:"full"},cropImages:{type:"boolean",default:!0},categories:{type:"string"},postsToShow:{type:"number",default:5},showTitle:{type:"boolean",default:!0},showDate:{type:"boolean",default:!1},showCategories:{type:"boolean",default:!1},showCommentsCount:{type:"boolean",default:!1},showContent:{type:"boolean",default:!1},contentLength:{type:"number",default:55},showFeaturedImage:{type:"boolean",default:!1},postLayout:{type:"string",default:"list"},columns:{type:"number",default:3},align:{type:"string"},order:{type:"string",default:"desc"},orderBy:{type:"string",default:"date"},className:{type:"string"}};t.a=r},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(n,!0).forEach(function(t){s()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function i(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=_()(e);if(t()){var o=_()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return v()(this,n)}}var a=n(9),l=n.n(a),c=n(7),s=n.n(c),u=n(2),p=n.n(u),d=n(4),m=n.n(d),g=n(11),f=n.n(g),b=n(5),w=n.n(b),h=n(6),v=n.n(h),y=n(3),_=n.n(y),k=(n(0),n(10)),O=(n.n(k),n(245)),E=n(246),C=(n.n(E),n(1)),j=(n.n(C),wp),S=j.serverSideRender,x=wp.element,P=x.Component,T=x.Fragment,R=wp.components,N=R.Placeholder,A=R.Spinner,B=R.Disabled,D=R.ToolbarGroup,M=wp.apiFetch,I=wp.url.addQueryArgs,L=window,z=(L.jQuery,wp.blockEditor||wp.editor),V=z.BlockAlignmentToolbar,F=z.BlockControls,H=wp.data.withSelect,G={per_page:-1},W=function(e){function t(){var e;return p()(this,t),e=n.apply(this,arguments),e.state={categoriesList:[]},e.changeState=e.changeState.bind(f()(e)),e.getState=e.getState.bind(f()(e)),e}w()(t,e);var n=i(t);return m()(t,[{key:"changeState",value:function(e,t){this.setState(s()({},e,t))}},{key:"getState",value:function(e){return this.state[e]}},{key:"componentWillMount",value:function(){var e=this;this.isStillMounted=!0,this.fetchRequest=M({path:I("/wp/v2/categories",G)}).then(function(t){e.isStillMounted&&e.setState({categoriesList:t})}).catch(function(){e.isStillMounted&&e.setState({categoriesList:[]})})}},{key:"componentWillUnmount",value:function(){this.isStillMounted=!1}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.align,r=t.postLayout,i=e.setAttributes,a=e.recentPosts,c=(e.className,this.changeState),s=this.getState,u=Array.isArray(a)&&a.length;return u?wp.element.createElement(T,null,wp.element.createElement(O.a,l()({},o(o(o(o({},this.props),{changeState:c}),{getState:s}),{hasPosts:u}),{key:"inspector"})),wp.element.createElement(F,null,wp.element.createElement(V,{value:n,controls:["wide","full"],onChange:function(e){i({align:e})}}),wp.element.createElement(D,{controls:[{icon:"list-view",title:Object(C.__)("List View","getwid"),onClick:function(){return i({postLayout:"list"})},isActive:"list"===r},{icon:"grid-view",title:Object(C.__)("Grid View","getwid"),onClick:function(){return i({postLayout:"grid"})},isActive:"grid"===r}]})),wp.element.createElement(B,null,wp.element.createElement(S,{block:"getwid/recent-posts",attributes:this.props.attributes}))):wp.element.createElement(T,null,wp.element.createElement(O.a,l()({},o(o(o(o({},this.props),{changeState:c}),{getState:s}),{hasPosts:u}),{key:"inspector"})),wp.element.createElement(N,{icon:"admin-post",label:Object(C.__)("Recent Posts","getwid")},Array.isArray(a)?Object(C.__)("No posts found.","getwid"):wp.element.createElement(A,null)))}}]),t}(P);t.a=H(function(e,t){var n=t.attributes,r=n.postsToShow,o=n.order,i=n.orderBy,a=n.categories,l=e("core"),c=l.getEntityRecords;l.getMedia;return{recentPosts:c("postType","post",Object(k.pickBy)({categories:a,order:o,orderby:i,per_page:r},function(e){return!Object(k.isUndefined)(e)}))}})(W)},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=f()(e);if(t()){var o=f()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}n.d(t,"a",function(){return P});var o=n(9),i=n.n(o),a=n(2),l=n.n(a),c=n(4),s=n.n(c),u=n(5),p=n.n(u),d=n(6),m=n.n(d),g=n(3),f=n.n(g),b=(n(0),n(1)),w=(n.n(b),window),h=(w.jQuery,wp.element),v=h.Component,y=h.Fragment,_=wp.blockEditor||wp.editor,k=_.InspectorControls,O=wp.components,E=O.SelectControl,C=O.PanelBody,j=O.QueryControls,S=O.RangeControl,x=O.ToggleControl,P=function(e){function t(){return l()(this,t),n.apply(this,arguments)}p()(t,e);var n=r(t);return s()(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.imageSize,r=t.titleTag,o=t.showContent,a=t.showTitle,l=t.showDate,c=t.showCategories,s=t.showCommentsCount,u=t.showFeaturedImage,p=(t.align,t.postLayout),d=t.columns,m=t.order,g=t.orderBy,f=t.categories,w=t.postsToShow,h=t.contentLength,v=t.cropImages,_=e.setAttributes,O=e.recentPosts,P=e.hasPosts,T=(e.changeState,e.getState);return wp.element.createElement(k,null,wp.element.createElement(C,{title:Object(b.__)("Settings","getwid")},wp.element.createElement(E,{label:Object(b.__)("Layout","getwid"),value:p,onChange:function(e){return _({postLayout:e})},options:[{value:"list",label:Object(b.__)("List","getwid")},{value:"grid",label:Object(b.__)("Grid","getwid")}]}),"grid"===p&&wp.element.createElement(S,{label:Object(b.__)("Columns","getwid"),value:d,onChange:function(e){return _({columns:e})},min:1,max:P?Math.min(6,O.length):6}),wp.element.createElement(x,{label:Object(b.__)("Display Title","getwid"),checked:a,onChange:function(){_({showTitle:!a})}}),a&&wp.element.createElement(E,{label:Object(b.__)("Title Tag","getwid"),value:r,options:[{value:"p",label:Object(b.__)("Paragraph","getwid")},{value:"h2",label:Object(b.__)("Heading 2","getwid")},{value:"h3",label:Object(b.__)("Heading 3","getwid")},{value:"h4",label:Object(b.__)("Heading 4","getwid")},{value:"h5",label:Object(b.__)("Heading 5","getwid")},{value:"h6",label:Object(b.__)("Heading 6","getwid")}],onChange:function(e){return _({titleTag:e})}}),wp.element.createElement(x,{label:Object(b.__)("Display Featured Image","getwid"),checked:u,onChange:function(){_({showFeaturedImage:!u})}}),u&&wp.element.createElement(y,null,wp.element.createElement(E,{label:Object(b.__)("Image Size","getwid"),help:Object(b.__)("For images from Media Library only.","getwid"),value:n,onChange:function(e){_({imageSize:e})},options:Getwid.settings.image_sizes}),wp.element.createElement(x,{label:Object(b.__)("Crop Images","getwid"),checked:v,onChange:function(){_({cropImages:!v})}})),wp.element.createElement(x,{label:Object(b.__)("Display Excerpt","getwid"),checked:o,onChange:function(){_({showContent:!o})}}),o&&wp.element.createElement(S,{label:Object(b.__)("Number of words","getwid"),value:h,onChange:function(e){return _({contentLength:e})},min:5,max:Getwid.settings.excerpt_length}),wp.element.createElement(x,{label:Object(b.__)("Display Date","getwid"),checked:l,onChange:function(){_({showDate:!l})}}),wp.element.createElement(x,{label:Object(b.__)("Display Categories","getwid"),checked:c,onChange:function(){_({showCategories:!c})}}),wp.element.createElement(x,{label:Object(b.__)("Display Comments","getwid"),checked:s,onChange:function(){_({showCommentsCount:!s})}}),wp.element.createElement(j,i()({order:m,orderBy:g},{numberOfItems:w,categoriesList:T("categoriesList"),selectedCategoryId:void 0!==f?Number(f):"",onOrderChange:function(e){return _({order:e})},onOrderByChange:function(e){return _({orderBy:e})},onCategoryChange:function(e){return _({categories:""!==e?e.toString():void 0})},onNumberOfItemsChange:function(e){return _({postsToShow:e})}}))))}}]),t}(v)},function(e,t){},function(e,t){},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(n,!0).forEach(function(t){a()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var i=n(7),a=n.n(i),l=(n(0),n(249)),c=n(250),s=n(257),u=n(12),p=n(258),d=n(1),m=(n.n(d),window),g=(m.jQuery,wp.blocks),f=g.registerBlockType,b=g.createBlock;f("getwid/advanced-heading",o(o({title:Object(d.__)("Advanced Heading","getwid"),icon:wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 24 24"},wp.element.createElement("path",{d:"M5.22,12.67h1.87v6.01c0,0.53-0.06,1.07-0.18,1.58c-0.1,0.45-0.29,0.87-0.55,1.25c-0.24,0.34-0.56,0.62-0.94,0.81\tc-0.42,0.2-0.89,0.3-1.36,0.29c-0.23,0.01-0.45-0.03-0.66-0.11c-0.17-0.07-0.32-0.16-0.46-0.28c-0.12-0.11-0.22-0.23-0.31-0.36\tc-0.08-0.13-0.15-0.25-0.21-0.36c-0.05-0.1-0.11-0.2-0.18-0.29c-0.04-0.07-0.12-0.11-0.2-0.11c-0.12,0-0.24,0.03-0.33,0.1\tc-0.1,0.07-0.18,0.16-0.25,0.26c-0.07,0.11-0.12,0.22-0.15,0.34c-0.03,0.12-0.05,0.25-0.05,0.37c0.01,0.18,0.09,0.34,0.22,0.46\tc0.17,0.16,0.37,0.28,0.59,0.36c0.27,0.11,0.56,0.19,0.85,0.24c0.33,0.06,0.66,0.09,1,0.09c0.86,0.01,1.73-0.11,2.56-0.34\tc0.75-0.2,1.46-0.55,2.08-1.03c0.59-0.46,1.06-1.05,1.39-1.73c0.35-0.76,0.53-1.59,0.51-2.43v-5.11h3.77v5.83\tc0,0.26,0.03,0.52,0.08,0.77c0.05,0.25,0.16,0.48,0.31,0.68c0.18,0.22,0.41,0.38,0.67,0.49c0.36,0.14,0.74,0.2,1.13,0.18\tc0.29,0,0.58-0.03,0.87-0.1c0.27-0.06,0.53-0.14,0.78-0.25c0.23-0.09,0.45-0.2,0.67-0.32c0.2-0.11,0.38-0.22,0.53-0.32l-0.17-0.38\tc-0.12,0.06-0.27,0.13-0.43,0.19c-0.17,0.07-0.35,0.1-0.53,0.1c-0.15,0.01-0.3-0.06-0.4-0.18c-0.09-0.14-0.14-0.31-0.13-0.48v-6.23\th2.06v-0.9h-2.06V6.48c0-0.85,0.02-1.6,0.06-2.26c0.02-0.56,0.11-1.11,0.25-1.65c0.1-0.38,0.29-0.72,0.56-1\tc0.27-0.24,0.63-0.36,1-0.34c0.16,0,0.32,0.04,0.46,0.11c0.13,0.08,0.25,0.17,0.35,0.28c0.1,0.11,0.2,0.24,0.28,0.37\tc0.08,0.13,0.17,0.26,0.25,0.37c0.08,0.11,0.17,0.2,0.27,0.28c0.09,0.07,0.21,0.11,0.33,0.11c0.08,0,0.15-0.02,0.22-0.07\tc0.07-0.05,0.14-0.11,0.19-0.18c0.11-0.16,0.17-0.35,0.17-0.54c0-0.23-0.08-0.44-0.24-0.61c-0.18-0.19-0.39-0.34-0.63-0.44\tc-0.3-0.13-0.61-0.21-0.92-0.26c-0.37-0.06-0.74-0.09-1.11-0.09c-0.59,0-1.17,0.12-1.71,0.34c-0.6,0.24-1.13,0.62-1.56,1.1\tc-0.5,0.57-0.89,1.23-1.14,1.94c-0.32,0.93-0.46,1.9-0.44,2.88v4.93h-3.77V5.72c0-0.14-0.02-0.27-0.04-0.41\tc-0.04-0.18-0.13-0.35-0.26-0.47c-0.2-0.18-0.43-0.31-0.69-0.38C9.03,4.33,8.59,4.28,8.15,4.3c-0.51,0-1.02,0.04-1.52,0.12\tC6.14,4.49,5.65,4.61,5.18,4.77c-0.45,0.15-0.89,0.35-1.3,0.59c-0.39,0.22-0.74,0.5-1.05,0.82C2.54,6.5,2.3,6.86,2.13,7.25\tC1.96,7.66,1.87,8.1,1.87,8.55c0,0.29,0.05,0.58,0.14,0.85c0.09,0.26,0.23,0.5,0.42,0.7c0.19,0.2,0.42,0.36,0.67,0.47\tc0.49,0.2,1.03,0.22,1.53,0.07c0.21-0.06,0.4-0.16,0.57-0.3c0.17-0.14,0.31-0.31,0.41-0.5c0.11-0.22,0.17-0.46,0.16-0.71\tC5.79,8.96,5.76,8.79,5.7,8.64C5.65,8.52,5.59,8.41,5.5,8.31C5.43,8.24,5.34,8.18,5.24,8.14C5.16,8.1,5.07,8.08,4.98,8.08\tc-0.1,0-0.19,0.03-0.27,0.09L4.46,8.35c-0.1,0.07-0.2,0.13-0.3,0.19C4.03,8.6,3.88,8.63,3.74,8.62c-0.06,0-0.11-0.01-0.17-0.02\tC3.49,8.58,3.41,8.54,3.34,8.48C3.25,8.4,3.19,8.3,3.14,8.19C3.08,8.02,3.05,7.84,3.05,7.66c0-0.25,0.06-0.49,0.18-0.71\tc0.13-0.22,0.29-0.42,0.48-0.6c0.2-0.18,0.43-0.35,0.67-0.48c0.24-0.14,0.49-0.25,0.74-0.35c0.23-0.09,0.46-0.16,0.7-0.22\tC6.01,5.27,6.2,5.24,6.38,5.24c0.09,0,0.19,0.01,0.28,0.03c0.08,0.01,0.16,0.05,0.22,0.1C6.95,5.42,7,5.49,7.03,5.57\tc0.04,0.12,0.06,0.24,0.05,0.36v5.83H5.22V12.67L5.22,12.67z"})),category:"getwid-blocks",keywords:[Object(d.__)("Title","getwid")],supports:{anchor:!0,alignWide:!0,align:["wide","full"],inserter:!Getwid.disabled_blocks.includes("getwid/advanced-heading")},getEditWrapperProps:function(e){var t=e.align;if(["wide","full"].includes(t))return{"data-align":t}},deprecated:[{attributes:l.a,save:p.a}],transforms:{from:[{type:"block",blocks:["core/heading"],transform:function(e){return b("getwid/advanced-heading",e)}},{type:"block",blocks:["core/paragraph"],transform:function(e){return b("getwid/advanced-heading",e)}}],to:[{type:"block",blocks:["core/heading"],transform:function(e){return b("core/heading",{content:e.content})}},{type:"block",blocks:["core/paragraph"],transform:function(e){return b("core/paragraph",{content:e.content})}}]},attributes:l.a},Object(u.b)("getwid/advanced-heading",c.a)),{},{save:function(e){return wp.element.createElement(s.a,o(o({},e),{},{baseClass:"wp-block-getwid-advanced-heading"}))}}))},function(e,t,n){"use strict";var r={content:{type:"string",source:"html",selector:".wp-block-getwid-advanced-heading__content",default:""},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},titleTag:{type:"string",default:"span"},anchor:{type:"string"},fontGroupID:{type:"string",default:""},fontFamily:{type:"string",default:""},fontSize:{type:"string"},fontSizeTablet:{type:"string",default:"fs-tablet-100"},fontSizeMobile:{type:"string",default:"fs-mobile-100"},fontWeight:{type:"string"},fontStyle:{type:"string"},textTransform:{type:"string"},lineHeight:{type:"string"},letterSpacing:{type:"string"},align:{type:"string"},textAlignment:{type:"string"},paddingTop:{type:"string"},paddingBottom:{type:"string"},paddingLeft:{type:"string"},paddingRight:{type:"string"},marginTop:{type:"string"},marginBottom:{type:"string"},marginLeft:{type:"string"},marginRight:{type:"string"}};t.a=r},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(n,!0).forEach(function(t){s()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function i(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=O()(e);if(t()){var o=O()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return _()(this,n)}}var a=n(9),l=n.n(a),c=n(7),s=n.n(c),u=n(13),p=n.n(u),d=n(2),m=n.n(d),g=n(4),f=n.n(g),b=n(11),w=n.n(b),h=n(5),v=n.n(h),y=n(6),_=n.n(y),k=n(3),O=n.n(k),E=(n(0),n(251)),C=n(70),j=n.n(C),S=n(256),x=(n.n(S),n(1)),P=(n.n(x),n(8)),T=n.n(P),R=window,N=R.jQuery,A=wp.compose.compose,B=wp.element,D=B.Component,M=B.Fragment,I=wp.blockEditor||wp.editor,L=I.RichText,z=I.BlockControls,V=I.AlignmentToolbar,F=I.withColors,H=["core/bold","core/italic","core/link","core/image","core/strikethrough","core/text-color"],G=function(e){function t(e){var r;return m()(this,t),r=n.apply(this,arguments),r.changeState=r.changeState.bind(w()(r)),r.state={isLockedMargins:!1,isLockedPaddings:!1},r}v()(t,e);var n=i(t);return f()(t,[{key:"changeState",value:function(e,t){"object"==p()(e)?this.setState(e):"string"==typeof e&&this.setState(s()({},e,t))}},{key:"componentDidMount",value:function(){var e=this.props.clientId;this.textWrapper=N("[data-block='".concat(e,"'] .wp-block-getwid-advanced-heading"))}},{key:"render",value:function(){var e,t,n=this.props,r=n.className,i=n.backgroundColor,a=n.textColor,c=n.setAttributes,u=this.props.attributes,p=u.content,d=u.titleTag,m=u.fontGroupID,g=u.fontFamily,f=u.fontWeight,b=u.fontStyle,w=u.textTransform,h=u.lineHeight,v=u.letterSpacing,y=this.props.attributes,_=y.paddingLeft,k=y.paddingRight,O=y.marginTop,C=y.marginBottom,S=y.marginLeft,P=y.marginRight,R=y.customTextColor,N=this.props.attributes,A=N.fontSize,B=N.fontSizeTablet,D=N.fontSizeMobile,I=N.align,F=N.textAlignment,G=N.paddingTop,W=N.paddingBottom,U=this.changeState,q={className:T()(r,(e={alignfull:"full"===I,alignwide:"wide"===I},s()(e,"has-custom-font-size",void 0!=A),s()(e,"".concat(B),B&&"fs-tablet-100"!=B?B:void 0),s()(e,"".concat(D),D&&"fs-mobile-100"!=D?D:void 0),e)),style:{fontSize:void 0!=A?A:void 0,marginBottom:C,marginTop:O}},Q=T()("".concat("wp-block-getwid-advanced-heading","__content"),(t={"has-text-color":a.color},s()(t,a.class,a.class),s()(t,"has-background",i.color),s()(t,i.class,i.class),t)),K=this.state,Y=K.isLockedMargins,J=K.isLockedPaddings,$=!!g&&["","google-fonts"].includes(m);return wp.element.createElement(M,null,$&&wp.element.createElement(j.a,{fonts:[{font:g,weights:[f]}]}),wp.element.createElement(z,null,wp.element.createElement(V,{value:F,onChange:function(e){c({textAlignment:e})}})),wp.element.createElement(E.a,l()({},o(o({},this.props),{},{isLockedMargins:Y,isLockedPaddings:J,changeState:U}),{key:"inspector"})),wp.element.createElement("div",q,wp.element.createElement(L,{className:Q,tagName:d,value:p,onChange:function(e){return c({content:e})},style:{textAlign:F,fontFamily:g?'"'.concat(g,'"'):"",fontWeight:f&&""!=f?f:void 0,fontStyle:"normal"!=b?b:void 0,textTransform:w,lineHeight:h,letterSpacing:v,paddingTop:G,paddingBottom:W,paddingLeft:_,paddingRight:k,marginLeft:S,marginRight:P,color:void 0!==this.props.attributes.textColor&&void 0===this.props.attributes.textColor.class?this.props.textColor.color:R||void 0,backgroundColor:this.props.backgroundColor.color?this.props.backgroundColor.color:this.props.attributes.customBackgroundColor},placeholder:Object(x.__)("Write heading…","getwid"),allowedFormats:H})))}}]),t}(D);t.a=A([F("backgroundColor",{textColor:"color"})])(G)},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=v()(e);if(t()){var o=v()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return w()(this,n)}}var o=n(7),i=n.n(o),a=n(13),l=n.n(a),c=n(2),s=n.n(c),u=n(4),p=n.n(u),d=n(11),m=n.n(d),g=n(5),f=n.n(g),b=n(6),w=n.n(b),h=n(3),v=n.n(h),y=(n(0),n(19)),_=n(17),k=n(69),O=n(14),E=n(1),C=(n.n(E),wp.element),j=C.Component,S=C.Fragment,x=wp.components,P=x.PanelBody,T=x.SelectControl,R=wp.blockEditor||wp.editor,N=R.InspectorControls,A=R.PanelColorSettings,B=function(e){function t(e){var r;return s()(this,t),r=n.apply(this,arguments),r.changeState=r.changeState.bind(m()(r)),r.state={tabName:"general"},r}f()(t,e);var n=r(t);return p()(t,[{key:"changeState",value:function(e,t){"object"==l()(e)?this.setState(e):"string"==typeof e&&this.setState(i()({},e,t))}},{key:"render",value:function(){var e=this.state.tabName,t=this.changeState;return wp.element.createElement(N,{key:"inspector"},wp.element.createElement(y.a,{state:e,stateName:"tabName",onChangeTab:t,tabs:["general","style"]}),"general"===e&&wp.element.createElement(S,null,this.renderGeneralSettings()),"style"===e&&wp.element.createElement(S,null,this.renderStyleSettings()))}},{key:"renderGeneralSettings",value:function(){var e=this.props.attributes,t=(e.fontGroupID,e.fontFamily),n=e.fontWeight,r=e.fontStyle,o=e.textTransform,i=e.lineHeight,a=e.letterSpacing,l=this.props.setAttributes,c=this.props.attributes.titleTag;return wp.element.createElement(S,null,wp.element.createElement(P,{initialOpen:!0},wp.element.createElement(k.a,{label:Object(E.__)("Font Family","getwid"),value:t,onChangeFontGroupID:function(e){l({fontGroupID:e})},onChangeFontFamily:function(e){l({fontFamily:e,fontWeight:"normal"})},valueWeight:n,onChangeFontWeight:function(e){l({fontWeight:e})}}),Object(O.b)(this),wp.element.createElement(T,{label:Object(E.__)("Font Style","getwid"),value:r,options:[{value:"normal",label:Object(E.__)("Normal","getwid")},{value:"italic",label:Object(E.__)("Italic","getwid")},{value:"inherit",label:Object(E.__)("Inherit","getwid")}],onChange:function(e){return l({fontStyle:e})}}),wp.element.createElement(T,{label:Object(E.__)("Text Transform","getwid"),value:o,options:[{value:"none",label:Object(E.__)("None","getwid")},{value:"capitalize",label:Object(E.__)("Capitalize","getwid")},{value:"lowercase",label:Object(E.__)("Lowercase","getwid")},{value:"uppercase",label:Object(E.__)("Uppercase","getwid")},{value:"inherit",label:Object(E.__)("Inherit","getwid")}],onChange:function(e){return l({textTransform:e})}}),wp.element.createElement(_.a,{label:Object(E.__)("Line Height","getwid"),value:i,onChange:function(e){l({lineHeight:e})}}),wp.element.createElement(_.a,{label:Object(E.__)("Letter Spacing","getwid"),value:a,allowNegative:!0,units:[{label:"px",value:"px"},{label:"em",value:"em"},{label:"pt",value:"pt"},{label:"vh",value:"vh"},{label:"vw",value:"vw"}],onChange:function(e){l({letterSpacing:e})}})),wp.element.createElement(P,{title:Object(E.__)("Html Attributes","getwid"),initialOpen:!0},wp.element.createElement(T,{label:Object(E.__)("Title Tag","getwid"),value:c,options:[{value:"span",label:Object(E.__)("Span","getwid")},{value:"p",label:Object(E.__)("Paragraph","getwid")},{value:"h1",label:Object(E.__)("Heading 1","getwid")},{value:"h2",label:Object(E.__)("Heading 2","getwid")},{value:"h3",label:Object(E.__)("Heading 3","getwid")},{value:"h4",label:Object(E.__)("Heading 4","getwid")},{value:"h5",label:Object(E.__)("Heading 5","getwid")},{value:"h6",label:Object(E.__)("Heading 6","getwid")}],onChange:function(e){return l({titleTag:e})}})))}},{key:"renderStyleSettings",value:function(){var e=this.props,t=e.setBackgroundColor,n=e.setTextColor,r=e.backgroundColor,o=e.textColor;return wp.element.createElement(S,null,wp.element.createElement(A,{title:Object(E.__)("Colors","getwid"),initialOpen:!0,colorSettings:[{value:o.color,onChange:n,label:Object(E.__)("Text Color","getwid")},{value:r.color,onChange:t,label:Object(E.__)("Background Color","getwid")}]}),wp.element.createElement(P,{title:Object(E.__)("Padding","getwid"),initialOpen:!1},Object(O.f)(this)),wp.element.createElement(P,{title:Object(E.__)("Margin","getwid"),initialOpen:!1},Object(O.c)(this)))}}]),t}(j);t.a=B},function(e,t,n){e.exports=n(253)},function(e,t,n){var r=function(e){"use strict";function t(e,t,n,o){var i=t&&t.prototype instanceof r?t:r,a=Object.create(i.prototype),l=new d(o||[]);return a._invoke=c(e,n,l),a}function n(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}function r(){}function o(){}function i(){}function a(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function l(e){function t(r,o,i,a){var l=n(e[r],e,o);if("throw"!==l.type){var c=l.arg,s=c.value;return s&&"object"==typeof s&&w.call(s,"__await")?Promise.resolve(s.__await).then(function(e){t("next",e,i,a)},function(e){t("throw",e,i,a)}):Promise.resolve(s).then(function(e){c.value=e,i(c)},function(e){return t("throw",e,i,a)})}a(l.arg)}function r(e,n){function r(){return new Promise(function(r,o){t(e,n,r,o)})}return o=o?o.then(r,r):r()}var o;this._invoke=r}function c(e,t,r){var o=k;return function(i,a){if(o===E)throw new Error("Generator is already running");if(o===C){if("throw"===i)throw a;return g()}for(r.method=i,r.arg=a;;){var l=r.delegate;if(l){var c=s(l,r);if(c){if(c===j)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===k)throw o=C,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=E;var u=n(e,t,r);if("normal"===u.type){if(o=r.done?C:O,u.arg===j)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=C,r.method="throw",r.arg=u.arg)}}}function s(e,t){var r=e.iterator[t.method];if(r===f){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=f,s(e,t),"throw"===t.method))return j;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return j}var o=n(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,j;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=f),t.delegate=null,j):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,j)}function u(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function p(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function d(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(u,this),this.reset(!0)}function m(e){if(e){var t=e[v];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n<e.length;)if(w.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=f,t.done=!0,t};return r.next=r}}return{next:g}}function g(){return{value:f,done:!0}}var f,b=Object.prototype,w=b.hasOwnProperty,h="function"==typeof Symbol?Symbol:{},v=h.iterator||"@@iterator",y=h.asyncIterator||"@@asyncIterator",_=h.toStringTag||"@@toStringTag";e.wrap=t;var k="suspendedStart",O="suspendedYield",E="executing",C="completed",j={},S={};S[v]=function(){return this};var x=Object.getPrototypeOf,P=x&&x(x(m([])));P&&P!==b&&w.call(P,v)&&(S=P);var T=i.prototype=r.prototype=Object.create(S);return o.prototype=T.constructor=i,i.constructor=o,i[_]=o.displayName="GeneratorFunction",e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===o||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,i):(e.__proto__=i,_ in e||(e[_]="GeneratorFunction")),e.prototype=Object.create(T),e},e.awrap=function(e){return{__await:e}},a(l.prototype),l.prototype[y]=function(){return this},e.AsyncIterator=l,e.async=function(n,r,o,i){var a=new l(t(n,r,o,i));return e.isGeneratorFunction(r)?a:a.next().then(function(e){return e.done?e.value:a.next()})},a(T),T[_]="Generator",T[v]=function(){return this},T.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=m,d.prototype={constructor:d,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=f,this.done=!1,this.delegate=null,this.method="next",this.arg=f,this.tryEntries.forEach(p),!e)for(var t in this)"t"===t.charAt(0)&&w.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=f)},stop:function(){this.done=!0;var e=this.tryEntries[0],t=e.completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){function t(t,r){return i.type="throw",i.arg=e,n.next=t,r&&(n.method="next",n.arg=f),!!r}if(this.done)throw e;for(var n=this,r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],i=o.completion;if("root"===o.tryLoc)return t("end");if(o.tryLoc<=this.prev){var a=w.call(o,"catchLoc"),l=w.call(o,"finallyLoc");if(a&&l){if(this.prev<o.catchLoc)return t(o.catchLoc,!0);if(this.prev<o.finallyLoc)return t(o.finallyLoc)}else if(a){if(this.prev<o.catchLoc)return t(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return t(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&w.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,j):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),j},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),p(n),j}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;p(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:m(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=f),j}},e}(e.exports);try{regeneratorRuntime=r}catch(e){Function("r","regeneratorRuntime = r")(r)}},function(e,t){function n(e,t,n,r,o,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,o)}function r(e){return function(){var t=this,r=arguments;return new Promise(function(o,i){function a(e){n(c,o,i,a,l,"next",e)}function l(e){n(c,o,i,a,l,"throw",e)}var c=e.apply(t,r);a(void 0)})}}e.exports=r},function(e,t){},function(e,t){},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=f()(e);if(t()){var o=f()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var o=n(7),i=n.n(o),a=n(2),l=n.n(a),c=n(4),s=n.n(c),u=n(5),p=n.n(u),d=n(6),m=n.n(d),g=n(3),f=n.n(g),b=(n(0),n(71)),w=(n.n(b),n(8)),h=n.n(w),v=wp.element.Component,y=wp.blockEditor||wp.editor,_=y.RichText,k=y.getColorClassName,O=function(e){function t(){return l()(this,t),n.apply(this,arguments)}p()(t,e);var n=r(t);return s()(t,[{key:"render",value:function(){var e,t,n=this.props,r=n.className,o=n.baseClass,a=this.props.attributes,l=a.paddingLeft,c=a.paddingRight,s=a.marginTop,u=a.marginBottom,p=a.marginLeft,d=this.props.attributes,m=d.marginRight,g=d.backgroundColor,f=d.textColor,b=d.customBackgroundColor,w=d.customTextColor,v=this.props.attributes,y=v.textTransform,O=v.lineHeight,E=v.letterSpacing,C=v.align,j=v.textAlignment,S=v.paddingTop,x=v.paddingBottom,P=this.props.attributes,T=P.content,R=P.anchor,N=P.titleTag,A=P.fontFamily,B=P.fontSize,D=P.fontSizeTablet,M=P.fontSizeMobile,I=P.fontWeight,L=P.fontStyle,z=k("color",f),V=k("background-color",g),F={className:h()(r,(e={alignfull:"full"==C,alignwide:"wide"==C},i()(e,"has-custom-font-size",void 0!=B),i()(e,"".concat(D),D&&"fs-tablet-100"!=D?D:void 0),i()(e,"".concat(M),M&&"fs-mobile-100"!=M?M:void 0),e)),id:R,style:{fontSize:void 0!=B?B:void 0,marginBottom:u,marginTop:s}},H=h()("".concat(o,"__content"),(t={"has-text-color":f||w},i()(t,z,z),i()(t,"has-background",g||b),i()(t,V,V),t));return wp.element.createElement("div",F,wp.element.createElement(_.Content,{className:H,tagName:N,value:T,style:{textAlign:j,fontFamily:A?'"'.concat(A,'"'):void 0,fontWeight:I&&""!=I?I:void 0,fontStyle:"normal"!=L?L:void 0,textTransform:y,lineHeight:O,letterSpacing:E,paddingTop:S,paddingBottom:x,paddingLeft:l,paddingRight:c,marginLeft:p,marginRight:m,color:void 0!==f?void 0:w,backgroundColor:g?void 0:b}}))}}]),t}(v);t.a=O},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=f()(e);if(t()){var o=f()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var o=n(7),i=n.n(o),a=n(2),l=n.n(a),c=n(4),s=n.n(c),u=n(5),p=n.n(u),d=n(6),m=n.n(d),g=n(3),f=n.n(g),b=(n(0),n(71)),w=(n.n(b),n(8)),h=n.n(w),v=wp.element.Component,y=wp.blockEditor||wp.editor,_=y.RichText,k=y.getColorClassName,O=function(e){function t(){return l()(this,t),n.apply(this,arguments)}p()(t,e);var n=r(t);return s()(t,[{key:"render",value:function(){var e,t=this.props.attributes,n=t.content,r=t.titleTag,o=t.fontFamily,a=t.fontSize,l=t.fontWeight,c=t.fontStyle,s=t.textTransform,u=t.lineHeight,p=t.letterSpacing,d=t.align,m=t.textAlignment,g=t.paddingTop,f=t.paddingBottom,b=t.paddingLeft,w=t.paddingRight,v=t.marginTop,y=t.marginBottom,O=t.marginLeft,E=t.marginRight,C=t.backgroundColor,j=t.textColor,S=t.customBackgroundColor,x=t.customTextColor,P=t.anchor,T=t.className,R=k("color",j),N=k("background-color",C),A=h()(T,{alignfull:"full"===d,alignwide:"wide"===d}),B=h()("".concat("wp-block-getwid-advanced-heading","__content"),(e={"has-text-color":j||x},i()(e,R,R),i()(e,"has-background",C||S),i()(e,N,N),e));return wp.element.createElement("div",{className:A,id:P,style:{marginTop:v,marginBottom:y}},wp.element.createElement(_.Content,{className:B,tagName:r,value:n,style:{textAlign:m,fontFamily:o?'"'.concat(o,'"'):void 0,fontSize:a,fontWeight:l&&""!=l?l:void 0,fontStyle:c,textTransform:s,lineHeight:u,letterSpacing:p,paddingTop:g,paddingBottom:f,paddingLeft:b,paddingRight:w,marginLeft:O,marginRight:E,color:void 0!==j?void 0:x,backgroundColor:C?void 0:S}}))}}]),t}(v);t.a=O},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(n,!0).forEach(function(t){c()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var i=n(9),a=n.n(i),l=n(7),c=n.n(l),s=(n(0),n(260)),u=n(263),p=n(264),d=n(265),m=n(12),g=n(72),f=(n.n(g),n(1)),b=(n.n(f),n(10)),w=(n.n(b),window),h=(w.jQuery,wp.data.select),v=wp.element.Fragment,y=wp.components,_=y.ToolbarGroup,k=y.ToolbarButton,O=wp.blocks,E=O.registerBlockType,C=O.createBlock,j=wp.blockEditor||wp.editor,S=j.BlockControls,x=j.AlignmentToolbar,P=(j.InnerBlocks,j.MediaPlaceholder),T=j.MediaUpload,R=j.MediaUploadCheck,N=["image"];E("getwid/image-box",o(o({title:Object(f.__)("Image Box","getwid"),category:"getwid-blocks",icon:wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},wp.element.createElement("rect",{y:"18",width:"24",height:"2"}),wp.element.createElement("rect",{y:"22",width:"17.6",height:"2"}),wp.element.createElement("path",{d:"M0,0v16h24V0H0z M22,2v6.59l-2.5-2.5L16,9.59l-6-6l-8,8V2H22z M2.41,14L10,6.41l6,6l3.5-3.5l2.5,2.5V14H2.41z"})),keywords:[Object(f.__)("feature","getwid"),Object(f.__)("service","getwid")],supports:{alignWide:!0,align:["wide","full"],inserter:!Getwid.disabled_blocks.includes("getwid/image-box")},deprecated:[{attributes:d.a,save:p.a}],transforms:{to:[{type:"block",blocks:["core/image"],transform:function(e){var t=h("core/editor").getSelectedBlockClientId(),n=h("core/editor").getBlock(t).innerBlocks,r={heading:"",text:""};return n.length&&jQuery.each(n,function(e,t){"core/heading"==t.name&&(r.heading=t.attributes.content),"core/paragraph"==t.name&&(r.text=t.attributes.content)}),C("core/image",{id:e.id,url:e.url,caption:r.heading?r.heading:r.text?r.text:""})}},{type:"block",blocks:["getwid/banner"],transform:function(e){var t=h("core/editor").getSelectedBlockClientId(),n=h("core/editor").getBlock(t).innerBlocks,r={heading:"",text:""};return n.length&&jQuery.each(n,function(e,t){"core/heading"==t.name&&(r.heading=t.attributes.content),"core/paragraph"==t.name&&(r.text=t.attributes.content)}),C("getwid/banner",{id:e.id,url:e.url,title:r.heading,text:r.text})}},{type:"block",blocks:["getwid/video-popup"],transform:function(e){var t=h("core/editor").getSelectedBlockClientId(),n=h("core/editor").getBlock(t).innerBlocks,r={heading:"",text:""};return n.length&&jQuery.each(n,function(e,t){"core/heading"==t.name&&(r.heading=t.attributes.content),"core/paragraph"==t.name&&(r.text=t.attributes.content)}),C("getwid/video-popup",{id:e.id,url:e.url,title:r.heading,text:r.text})}},{type:"block",blocks:["getwid/icon-box"],transform:function(e){var t=h("core/editor").getSelectedBlockClientId(),n=h("core/editor").getBlock(t).innerBlocks;return C("getwid/icon-box",e,n)}},{type:"block",blocks:["core/heading"],transform:function(e){var t,n=h("core/editor").getSelectedBlockClientId(),r=h("core/editor").getBlock(n).innerBlocks;return r.length&&jQuery.each(r,function(e,n){"core/heading"==n.name&&(t=n.attributes.content)}),C("core/heading",{content:t})}},{type:"block",blocks:["core/paragraph"],transform:function(e){var t,n=h("core/editor").getSelectedBlockClientId(),r=h("core/editor").getBlock(n).innerBlocks;return r.length&&jQuery.each(r,function(e,n){"core/paragraph"==n.name&&(t=n.attributes.content)}),C("core/paragraph",{content:t})}}]},attributes:d.a},Object(m.b)("getwid/image-box",function(e){var t=e.attributes,n=t.textAlignment,r=t.id,i=t.url,l=t.layout,c=e.setAttributes,u=function(e){c(void 0!==e?{textAlignment:e}:{textAlignment:"center"})},p=[{icon:"align-left",title:Object(f.__)("Align Image Left","getwid"),isActive:"left"==l,onClick:function(){return c({layout:"left"==l?null:"left"})}},{icon:"align-right",title:Object(f.__)("Align Image Right","getwid"),isActive:"right"==l,onClick:function(){return c({layout:"right"==l?null:"right"})}}],m=function(e,t){if(!e)return void c({url:void 0,id:void 0});c({id:e.id,alt:e.alt,url:Object(b.get)(e,["sizes",t,"url"])||Object(b.get)(e,["media_details","sizes",t,"source_url"])||e.url})},g=function(t){var n=e.attributes.imageSize;["full","large","medium","thumbnail"].includes(n)||(n=d.a.imageSize.default,c({imageSize:n})),m(t,n)},w=wp.element.createElement(v,null,!i&&wp.element.createElement(P,{icon:"format-image",className:"wp-block-getwid-image-box",labels:{title:Object(f.__)("Image Box","getwid")},onSelect:g,accept:"image/*",allowedTypes:N}),wp.element.createElement(S,null,!!i&&wp.element.createElement(v,null,wp.element.createElement(R,null,wp.element.createElement(_,null,wp.element.createElement(T,{onSelect:g,allowedTypes:N,value:r,render:function(e){var t=e.open;return wp.element.createElement(k,{className:"components-toolbar__control",label:Object(f.__)("Edit Media","getwid"),icon:"edit",onClick:t})}}))))));return wp.element.createElement(v,null,w,wp.element.createElement(s.a,a()({},o(o({setAttributes:c},e),{},{changeImageSize:m,onSelectMedia:g}),{key:"edit"})),wp.element.createElement(v,null,wp.element.createElement(S,null,wp.element.createElement(_,{controls:p})),wp.element.createElement(S,null,wp.element.createElement(x,{value:n,onChange:u}))))})),{},{save:u.a}))},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(n,!0).forEach(function(t){s()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function i(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=O()(e);if(t()){var o=O()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return _()(this,n)}}var a=n(9),l=n.n(a),c=n(7),s=n.n(c),u=n(13),p=n.n(u),d=n(2),m=n.n(d),g=n(4),f=n.n(g),b=n(11),w=n.n(b),h=n(5),v=n.n(h),y=n(6),_=n.n(y),k=n(3),O=n.n(k),E=(n(0),n(8)),C=n.n(E),j=n(261),S=(n.n(j),n(72)),x=(n.n(S),n(262)),P=n(22),T=n(1),R=(n.n(T),window),N=R.jQuery,A=wp.compose.compose,B=wp.blockEditor||wp.editor,D=B.InnerBlocks,M=wp.data.withSelect,I=wp.element,L=I.Component,z=I.Fragment,V=[["core/heading",{level:3,placeholder:Object(T.__)("Write heading…","getwid")}],["core/paragraph",{placeholder:Object(T.__)("Write text…","getwid")}]],F="wp-block-getwid-image-box",H=function(e){function t(){var e;return m()(this,t),e=n.apply(this,arguments),e.changeState=e.changeState.bind(w()(e)),e.state={isLockedMargins:!1},e}v()(t,e);var n=i(t);return f()(t,[{key:"changeState",value:function(e,t){"object"==p()(e)?this.setState(e):"string"==typeof e&&this.setState(s()({},e,t))}},{key:"render",value:function(){var e,t=this,n=this.props,r=n.attributes,i=(r.imageSize,r.id,r.url),a=r.alt,c=r.marginTop,u=r.marginBottom,p=r.marginLeft,d=r.marginRight,m=r.textAlignment,g=r.layout,f=r.imagePosition,b=r.link,w=r.hoverAnimation,h=r.mobileLayout,v=r.mobileAlignment,y=n.className,_=n.isSelected,k=n.setAttributes,O=n.changeImageSize,E=n.onSelectMedia,j={className:C()(y,(e={"getwid-animation":!!w},s()(e,"has-image-left","left"===g),s()(e,"has-image-right","right"===g),s()(e,"has-text-left","left"===m),s()(e,"has-text-center","center"===m),s()(e,"has-text-right","right"===m),s()(e,"is-selected",_),e),"has-mobile-layout-".concat(h),"has-mobile-alignment-".concat(v)),"data-animation":w||void 0,onMouseEnter:function(e){return t.onimageHoverIn()}},S=C()("".concat(F,"__image-container"),{"is-position-top":"top"===f,"is-position-middle":"middle"===f,"is-position-bottom":"bottom"===f}),P=i?wp.element.createElement("img",{src:i,alt:void 0!==a?a:null,className:"".concat(F,"__image")}):null,T={marginTop:c,marginBottom:u,marginLeft:p,marginRight:d},R={className:C()("".concat(F,"__image-wrapper"))},N=this.changeState,A=this.state.isLockedMargins;return wp.element.createElement(z,null,!!i&&wp.element.createElement(x.a,l()({},o(o({setAttributes:k},this.props),{},{changeState:N,changeImageSize:O,isLockedMargins:A,onSelectMedia:E}),{key:"inspector"})),wp.element.createElement("div",j,wp.element.createElement("div",{style:T,className:S},b&&wp.element.createElement("a",l()({href:b},R,{onClick:function(e){return e.preventDefault()}}),P),!b&&wp.element.createElement("div",R,P)),wp.element.createElement("div",{className:"".concat(F,"__content")},wp.element.createElement(D,{template:V,templateInsertUpdatesSelection:!1,templateLock:!1}))))}},{key:"setupimageWrapper",value:function(){var e=this.props.clientId;this.imageWrapper=N("[data-block='".concat(e,"'] .wp-block-getwid-image-box__image-wrapper"))}},{key:"componentDidMount",value:function(){this.setupimageWrapper()}},{key:"componentDidUpdate",value:function(e){this.setupimageWrapper()}},{key:"onimageHoverIn",value:function(){var e=this.props.attributes.hoverAnimation;e&&Object(P.a)(this.imageWrapper,{animation:e})}}]),t}(L);t.a=A([M(function(e,t){var n=e("core"),r=n.getMedia,o=t.attributes.id;if(void 0!==o)return{imgObj:o?r(o):null}})])(H)},function(e,t){},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=w()(e);if(t()){var o=w()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f()(this,n)}}var o=n(7),i=n.n(o),a=n(2),l=n.n(a),c=n(4),s=n.n(c),u=n(11),p=n.n(u),d=n(5),m=n.n(d),g=n(6),f=n.n(g),b=n(3),w=n.n(b),h=(n(0),n(1)),v=(n.n(h),n(19)),y=n(24),_=n(14),k=wp.element,O=k.Component,E=k.Fragment,C=wp.blockEditor||wp.editor,j=C.InspectorControls,S=C.URLInput,x=wp.components,P=x.PanelBody,T=x.BaseControl,R=x.SelectControl,N=x.ToggleControl,A=x.TextControl,B=x.RadioControl,D=function(e){function t(){var e;return l()(this,t),e=n.apply(this,arguments),e.onSetNewTab=e.onSetNewTab.bind(p()(e)),e.onSetLinkRel=e.onSetLinkRel.bind(p()(e)),e.changeTab=e.changeTab.bind(p()(e)),e.state={tabName:"general"},e}m()(t,e);var n=r(t);return s()(t,[{key:"changeTab",value:function(e,t){this.setState(i()({},e,t))}},{key:"onSetNewTab",value:function(e){var t=this.props.attributes.rel,n=e?"_blank":void 0,r=t;n&&!t?r="noreferrer noopener":n||"noreferrer noopener"!==t||(r=void 0),this.props.setAttributes({linkTarget:n,rel:r})}},{key:"onSetLinkRel",value:function(e){this.props.setAttributes({rel:e})}},{key:"render",value:function(){var e=this.props.attributes,t=e.id,n=e.url,r=e.imageSize,o=e.layout,i=e.imagePosition,a=e.link,l=e.linkTarget,c=e.rel,s=e.hoverAnimation,u=e.mobileLayout,p=e.mobileAlignment,d=this.props,m=d.setAttributes,g=d.changeImageSize,f=d.onSelectMedia,b=d.imgObj,w=this.state.tabName,k=this.changeTab,O=function(e){void 0!==b&&(m({imageSize:e}),g(b,e))};return wp.element.createElement(j,null,wp.element.createElement(v.a,{state:w,stateName:"tabName",onChangeTab:k,tabs:["general","style","advanced"]}),"general"===w&&wp.element.createElement(E,null,wp.element.createElement(P,null,wp.element.createElement(B,{label:Object(h.__)("Layout","getwid"),selected:o||"",options:[{value:"",label:Object(h.__)("Default","getwid")},{value:"left",label:Object(h.__)("Align Image Left","getwid")},{value:"right",label:Object(h.__)("Align Image Right","getwid")}],onChange:function(e){return m({layout:e})}}),("left"==o||"right"==o)&&wp.element.createElement(R,{label:Object(h.__)("Image Vertical Alignment","getwid"),value:i,options:[{value:"top",label:Object(h.__)("Top","getwid")},{value:"middle",label:Object(h.__)("Middle","getwid")},{value:"bottom",label:Object(h.__)("Bottom","getwid")}],onChange:function(e){return m({imagePosition:e})}}),wp.element.createElement(R,{label:Object(h.__)("Mobile Layout","getwid"),value:u,options:[{value:"default",label:Object(h.__)("Default","getwid")},{value:"column",label:Object(h.__)("Column","getwid")},{value:"column-reverse",label:Object(h.__)("Column Reverse Order","getwid")}],onChange:function(e){return m({mobileLayout:e})}}),wp.element.createElement(R,{label:Object(h.__)("Mobile Alignment","getwid"),value:p,options:[{value:"default",label:Object(h.__)("Default","getwid")},{value:"left",label:Object(h.__)("Left","getwid")},{value:"center",label:Object(h.__)("Center","getwid")},{value:"right",label:Object(h.__)("Right","getwid")}],onChange:function(e){return m({mobileAlignment:e})}}),wp.element.createElement(y.a,{label:Object(h.__)("Image Hover Animation","getwid"),value:void 0!==s?s:"",onChange:function(e){return m({hoverAnimation:e})},allowAnimation:["Seeker","Icon"]}),wp.element.createElement(_.e,{label:Object(h.__)("Image","getwid"),removeButton:!1,url:n,id:t,onSelectMedia:f,onRemoveMedia:function(){return m({url:void 0,id:void 0})}}),b&&wp.element.createElement(R,{label:Object(h.__)("Image Size","getwid"),help:Object(h.__)("For images from Media Library only.","getwid"),value:r,onChange:O,options:Getwid.settings.image_sizes}))),"style"===w&&wp.element.createElement(E,null,wp.element.createElement(P,null,Object(_.c)(this))),"advanced"===w&&wp.element.createElement(E,null,wp.element.createElement(P,null,wp.element.createElement(T,{label:Object(h.__)("Image Link","getwid"),className:"getwid-editor-url-input"},wp.element.createElement(S,{autoFocus:!1,value:a,onChange:function(e){return m({link:e})}})),wp.element.createElement(T,null,wp.element.createElement(N,{label:Object(h.__)("Open in New Tab","getwid"),checked:"_blank"===l,onChange:this.onSetNewTab})),wp.element.createElement(A,{label:Object(h.__)("Link Rel","getwid"),value:c||"",onChange:this.onSetLinkRel}))))}}]),t}(O);t.a=D},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=w()(e);if(t()){var o=w()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f()(this,n)}}var o=n(9),i=n.n(o),a=n(7),l=n.n(a),c=n(2),s=n.n(c),u=n(4),p=n.n(u),d=n(5),m=n.n(d),g=n(6),f=n.n(g),b=n(3),w=n.n(b),h=(n(0),n(1)),v=(n.n(h),n(8)),y=n.n(v),_=window,k=(_.jQuery,wp.element.Component),O=wp.blockEditor||wp.editor,E=O.InnerBlocks,C="wp-block-getwid-image-box",j=function(e){function t(){return s()(this,t),n.apply(this,arguments)}m()(t,e);var n=r(t);return p()(t,[{key:"render",value:function(){var e,t=this.props.attributes,n=t.id,r=t.url,o=t.alt,a=t.textAlignment,c=t.layout,s=t.imagePosition,u=t.link,p=t.hoverAnimation,d=t.marginTop,m=t.marginBottom,g=t.marginLeft,f=t.marginRight,b=t.mobileLayout,w=t.mobileAlignment,h=t.rel,v=t.linkTarget,_=t.className,k={className:y()(_,(e={"getwid-animation":!!p},l()(e,"has-image-left","left"===c),l()(e,"has-image-right","right"===c),l()(e,"has-text-left","left"===a),l()(e,"has-text-center","center"===a),l()(e,"has-text-right","right"===a),e),"has-mobile-layout-".concat(b),"has-mobile-alignment-".concat(w)),"data-animation":p||void 0},O=y()("".concat(C,"__image-container"),{"is-position-top":"top"===s,"is-position-middle":"middle"===s,"is-position-bottom":"bottom"===s}),j=r?wp.element.createElement("img",{src:r,alt:void 0!==o?o:null,className:"".concat(C,"__image")+(n?" wp-image-".concat(n):"")}):null,S={marginTop:d,marginBottom:m,marginLeft:g,marginRight:f},x={className:y()("".concat(C,"__image-wrapper"))};return wp.element.createElement("div",k,wp.element.createElement("div",{style:S,className:O},u&&wp.element.createElement("a",i()({href:u,target:v,rel:h},x),j),!u&&wp.element.createElement("div",x,j)),wp.element.createElement("div",{className:"".concat(C,"__content")},wp.element.createElement(E.Content,null)))}}]),t}(k);t.a=j},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=w()(e);if(t()){var o=w()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f()(this,n)}}var o=n(9),i=n.n(o),a=n(7),l=n.n(a),c=n(2),s=n.n(c),u=n(4),p=n.n(u),d=n(5),m=n.n(d),g=n(6),f=n.n(g),b=n(3),w=n.n(b),h=(n(0),n(1)),v=(n.n(h),n(8)),y=n.n(v),_=window,k=(_.jQuery,wp.element.Component),O=wp.blockEditor||wp.editor,E=O.InnerBlocks,C="wp-block-getwid-image-box",j=function(e){function t(){return s()(this,t),n.apply(this,arguments)}m()(t,e);var n=r(t);return p()(t,[{key:"render",value:function(){var e,t=this.props.attributes,n=t.id,r=t.url,o=t.alt,a=t.textAlignment,c=t.layout,s=t.imagePosition,u=t.link,p=t.hoverAnimation,d=t.marginTop,m=t.marginBottom,g=t.marginLeft,f=t.marginRight,b=t.mobileLayout,w=t.mobileAlignment,h=t.rel,v=t.linkTarget,_=t.className,k={className:y()(_,(e={"getwid-animation":!!p},l()(e,"has-image-left","left"===c),l()(e,"has-image-right","right"===c),l()(e,"has-text-left","left"===a),l()(e,"has-text-center","center"===a),l()(e,"has-text-right","right"===a),e),"has-mobile-layout-".concat(b),"has-mobile-alignment-".concat(w)),"data-animation":p||void 0},O=y()("".concat(C,"__image-container"),{"is-position-top":"top"===s,"is-position-middle":"middle"===s,"is-position-bottom":"bottom"===s}),j=r?wp.element.createElement("img",{src:r,alt:void 0!==o?o:null,className:"".concat(C,"__image")+" wp-image-".concat(n)}):null,S={marginTop:d,marginBottom:m,marginLeft:g,marginRight:f},x={className:y()("".concat(C,"__image-wrapper"))};return wp.element.createElement("div",k,wp.element.createElement("div",{style:S,className:O},u&&wp.element.createElement("a",i()({href:u,target:v,rel:h},x),j),!u&&wp.element.createElement("div",x,j)),wp.element.createElement("div",{className:"".concat(C,"__content")},wp.element.createElement(E.Content,null)))}}]),t}(k);t.a=j},function(e,t,n){"use strict";var r={imageSize:{type:"string",default:"full"},id:{type:"number"},url:{type:"string",source:"attribute",selector:".wp-block-getwid-image-box__image-wrapper img",attribute:"src"},alt:{type:"string",source:"attribute",selector:".wp-block-getwid-image-box__image-wrapper img",attribute:"alt"},textAlignment:{type:"string",default:"center"},layout:{type:"string"},imagePosition:{type:"string",default:"top"},marginTop:{type:"string"},marginBottom:{type:"string"},marginLeft:{type:"string"},marginRight:{type:"string"},link:{type:"string",source:"attribute",selector:"a.wp-block-getwid-image-box__image-wrapper",attribute:"href"},align:{type:"string"},hoverAnimation:{type:"string",source:"attribute",selector:".wp-block-getwid-image-box",attribute:"data-animation"},mobileLayout:{type:"string",default:"default"},mobileAlignment:{type:"string",default:"default"},linkTarget:{type:"string",source:"attribute",selector:"a.wp-block-getwid-image-box__image-wrapper",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a.wp-block-getwid-image-box__image-wrapper",attribute:"rel"}};t.a=r},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(n,!0).forEach(function(t){a()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var i=n(7),a=n.n(i),l=(n(0),n(267)),c=n(270),s=n(272),u=n(12),p=n(1),d=(n.n(p),window),m=(d.jQuery,wp.blocks),g=m.registerBlockType,f=m.createBlock;g("getwid/advanced-spacer",o(o({title:Object(p.__)("Advanced Spacer","getwid"),category:"getwid-blocks",supports:{inserter:!Getwid.disabled_blocks.includes("getwid/advanced-spacer")},icon:wp.element.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("g",null,wp.element.createElement("path",{d:"M13 4v2h3.59L6 16.59V13H4v7h7v-2H7.41L18 7.41V11h2V4h-7"}))),transforms:{to:[{type:"block",blocks:["core/spacer"],transform:function(e){return f("core/spacer",{height:parseInt(e.height,10)})}}]},attributes:s.a},Object(u.b)("getwid/advanced-spacer",l.a)),{},{save:c.a}))},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=m()(e);if(t()){var o=m()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p()(this,n)}}var o=n(2),i=n.n(o),a=n(4),l=n.n(a),c=n(5),s=n.n(c),u=n(6),p=n.n(u),d=n(3),m=n.n(d),g=(n(0),n(268)),f=n(8),b=n.n(f),w=n(269),h=(n.n(w),n(1)),v=(n.n(h),window),y=(v.jQuery,wp.element),_=y.Component,k=y.Fragment,O=wp.components.ResizableBox,E=function(e){function t(){return i()(this,t),n.apply(this,arguments)}s()(t,e);var n=r(t);return l()(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.height,r=t.isHideDesktop,o=t.isHideTablet,i=t.isHideMobile,a=e.isSelected,l=e.className,c=e.setAttributes,s=e.toggleSelection,u=/\d+(\w+)/g.exec(n)[1];return wp.element.createElement(k,null,wp.element.createElement(g.a,this.props),wp.element.createElement(O,{className:b()(l,{"is-selected":a,"getwid-hide-desktop":r,"getwid-hide-tablet":o,"getwid-hide-mobile":i}),size:{height:n},minHeight:"20",enable:{top:!1,right:!1,bottom:"px"==u,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},onResizeStop:function(e,t,r,o){var i=parseInt(n,10)+o.height;c({height:i+u}),s(!0)},onResizeStart:function(){s(!1)}}))}}]),t}(_);t.a=E},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=m()(e);if(t()){var o=m()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p()(this,n)}}var o=n(2),i=n.n(o),a=n(4),l=n.n(a),c=n(5),s=n.n(c),u=n(6),p=n.n(u),d=n(3),m=n.n(d),g=(n(0),n(17)),f=n(1),b=(n.n(f),window),w=(b.jQuery,wp.element.Component),h=wp.blockEditor||wp.editor,v=h.InspectorControls,y=wp.components,_=y.PanelBody,k=y.CheckboxControl,O=function(e){function t(){return i()(this,t),n.apply(this,arguments)}s()(t,e);var n=r(t);return l()(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.height,r=t.isHideDesktop,o=t.isHideTablet,i=t.isHideMobile,a=e.setAttributes;return wp.element.createElement(v,null,wp.element.createElement(_,{title:Object(f.__)("Settings","getwid")},wp.element.createElement(g.a,{label:Object(f.__)("Height","getwid"),value:n,units:[{label:"px",value:"px"},{label:"vh",value:"vh"},{label:"vw",value:"vw"}],onChange:function(e){void 0!==e&&a({height:e})}}),wp.element.createElement(k,{label:Object(f.__)("Hide on Desktop","getwid"),checked:r,onChange:function(e){a({isHideDesktop:e})}}),wp.element.createElement(k,{label:Object(f.__)("Hide on Tablet","getwid"),checked:o,onChange:function(e){a({isHideTablet:e})}}),wp.element.createElement(k,{label:Object(f.__)("Hide on Mobile","getwid"),checked:i,onChange:function(e){a({isHideMobile:e})}})))}}]),t}(w);t.a=O},function(e,t){},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=m()(e);if(t()){var o=m()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p()(this,n)}}var o=n(2),i=n.n(o),a=n(4),l=n.n(a),c=n(5),s=n.n(c),u=n(6),p=n.n(u),d=n(3),m=n.n(d),g=(n(0),n(8)),f=n.n(g),b=n(271),w=(n.n(b),n(1)),h=(n.n(w),window),v=(h.jQuery,wp.element.Component),y=function(e){function t(){return i()(this,t),n.apply(this,arguments)}s()(t,e);var n=r(t);return l()(t,[{key:"render",value:function(){var e=this.props.attributes,t=e.height,n=e.isHideDesktop,r=e.isHideTablet,o=e.isHideMobile,i=e.className;return wp.element.createElement("div",{className:f()(i,{"getwid-hide-desktop":n,"getwid-hide-tablet":r,"getwid-hide-mobile":o}),style:{height:t},"aria-hidden":!0})}}]),t}(v);t.a=y},function(e,t){},function(e,t,n){"use strict";var r={height:{type:"string",default:"100px"},isHideDesktop:{type:"boolean",default:!1},isHideTablet:{type:"boolean",default:!1},isHideMobile:{type:"boolean",default:!1}};t.a=r},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(n,!0).forEach(function(t){a()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var i=n(7),a=n.n(i),l=(n(0),n(274)),c=n(275),s=n(279),u=n(12),p=n(280),d=(n.n(p),n(1)),m=(n.n(d),window),g=(m.jQuery,wp.blocks.registerBlockType);g("getwid/social-links",o(o({title:Object(d.__)("Social Links","getwid"),icon:wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},wp.element.createElement("path",{d:"M18,16c-1,0-1.9,0.4-2.6,1l-6.6-3.8C8.9,12.8,9,12.4,9,12s-0.1-0.8-0.2-1.2L15.4,7C16.1,7.6,17,8,18,8c2.2,0,4-1.8,4-4 s-1.8-4-4-4s-4,1.8-4,4c0,0.5,0.1,0.9,0.3,1.4L7.8,9.1C7,8.4,6.1,8,5,8c-2.2,0-4,1.8-4,4s1.8,4,4,4c1.1,0,2-0.4,2.8-1.1l6.5,3.7\tC14.1,19.1,14,19.5,14,20c0,2.2,1.8,4,4,4s4-1.8,4-4S20.2,16,18,16z M18,2c1.1,0,2,0.9,2,2s-0.9,2-2,2s-2-0.9-2-2S16.9,2,18,2z M5,14c-1.1,0-2-0.9-2-2s0.9-2,2-2s2,0.9,2,2S6.1,14,5,14z M18,22c-1.1,0-2-0.9-2-2s0.9-2,2-2s2,0.9,2,2S19.1,22,18,22z"})),category:"getwid-blocks",keywords:[Object(d.__)("facebook","getwid"),Object(d.__)("twitter","getwid"),Object(d.__)("share","getwid")],supports:{align:["wide","full"],inserter:!Getwid.disabled_blocks.includes("getwid/social-links")},attributes:l.a},Object(u.b)("getwid/social-links",c.a)),{},{save:s.a}))},function(e,t,n){"use strict";var r={backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},align:{type:"string"},textAlignmentDesktop:{type:"string"},textAlignmentTablet:{type:"string"},textAlignmentMobile:{type:"string"},icons:{type:"array",default:[{icon:"fab fa-facebook-f",link:"https://www.facebook.com/",linkTarget:void 0,rel:""},{icon:"fab fa-twitter",link:"https://twitter.com/",linkTarget:void 0,rel:""},{icon:"fab fa-instagram",link:"https://www.instagram.com/",linkTarget:void 0,rel:""},{icon:"fab fa-youtube",link:"https://www.youtube.com/",linkTarget:void 0,rel:""}],source:"query",selector:".wp-block-getwid-social-links__link",query:{icon:{source:"attribute",selector:"i",attribute:"class"},title:{type:"string",source:"html",selector:".wp-block-getwid-social-links__label"},link:{source:"attribute",attribute:"href",type:"string",default:"#"},linkTarget:{source:"attribute",attribute:"target"},rel:{source:"attribute",attribute:"rel"}}},iconsStyle:{type:"string",default:"default"},iconsSize:{type:"number"},iconsSpacing:{type:"string",default:"default"}};t.a=r},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(n,!0).forEach(function(t){p()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function i(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=C()(e);if(t()){var o=C()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return O()(this,n)}}var a=n(15),l=n.n(a),c=n(9),s=n.n(c),u=n(7),p=n.n(u),d=n(13),m=n.n(d),g=n(2),f=n.n(g),b=n(4),w=n.n(b),h=n(11),v=n.n(h),y=n(5),_=n.n(y),k=n(6),O=n.n(k),E=n(3),C=n.n(E),j=(n(0),n(8)),S=n.n(j),x=n(276),P=n(277),T=n.n(P),R=n(278),N=(n.n(R),n(18)),A=n(1),B=(n.n(A),window),D=B.jQuery,M=wp.element,I=M.Component,L=M.Fragment,z=wp.blockEditor||wp.editor,V=z.BlockControls,F=z.withColors,H=wp.compose.compose,G=wp.components,W=G.TextControl,U=G.ToolbarGroup,q=G.Button,Q=G.Popover,K=G.BaseControl,Y=G.ToggleControl,J="wp-block-getwid-social-links",$=function(e){function t(){var e;return f()(this,t),e=n.apply(this,arguments),e.changeState=e.changeState.bind(v()(e)),e.getState=e.getState.bind(v()(e)),e.updateArrValues=e.updateArrValues.bind(v()(e)),e.onDeleteIcon=e.onDeleteIcon.bind(v()(e)),e.moveIcon=e.moveIcon.bind(v()(e)),e.onMoveIconLeft=e.onMoveIconLeft.bind(v()(e)),e.onMoveIconRight=e.onMoveIconRight.bind(v()(e)),e.onDuplicate=e.onDuplicate.bind(v()(e)),e.insertIcon=e.insertIcon.bind(v()(e)),e.onInsertIconBefore=e.onInsertIconBefore.bind(v()(e)),e.onInsertIconAfter=e.onInsertIconAfter.bind(v()(e)),e.onSelectIcon=e.onSelectIcon.bind(v()(e)),e.activateIcon=e.activateIcon.bind(v()(e)),e.onAddIcon=e.onAddIcon.bind(v()(e)),e.icon_render=e.icon_render.bind(v()(e)),e.renderIconSettings=e.renderIconSettings.bind(v()(e)),e.icon_block=e.icon_block.bind(v()(e)),e.state={selectedIcon:void 0,openPopUp:!1},e}_()(t,e);var n=i(t);return w()(t,[{key:"updateArrValues",value:function(e,t){e=function e(t,n){var r={};return Object.keys(t).forEach(function(o){var i;i=null!==t[o]&&"object"===m()(t[o])?e(t[o],n):n(t[o],o),r[o]=i}),r}(e,function(e,t){return void 0===e&&(e=""),e});var n=this.props,r=n.attributes;(0,n.setAttributes)({icons:r.icons.map(function(n,r){return t===r&&(n=o(o({},n),e)),n})})}},{key:"changeState",value:function(e,t){this.setState(p()({},e,t))}},{key:"getState",value:function(e){return this.state[e]}},{key:"getIcosDropdown",value:function(){var e=this.state.selectedIcon,t=this.props.attributes.icons;return[{icon:"table-col-before",title:Object(A.__)("Add Item Before","getwid"),isDisabled:null===e,onClick:this.onInsertIconBefore},{icon:"table-col-after",title:Object(A.__)("Add Item After","getwid"),isDisabled:null===e,onClick:this.onInsertIconAfter},{icon:"arrow-left-alt2",title:Object(A.__)("Move Item Left","getwid"),isDisabled:null===e||0===e||void 0==e,onClick:this.onMoveIconLeft},{icon:"arrow-right-alt2",title:Object(A.__)("Move Item Right","getwid"),isDisabled:null===e||e===t.length-1||void 0==e,onClick:this.onMoveIconRight},{icon:"admin-page",title:Object(A.__)("Duplicate Item","getwid"),isDisabled:null===e||void 0==e,onClick:this.onDuplicate},{icon:"trash",title:Object(A.__)("Delete Item","getwid"),isDisabled:null===e||void 0==e,onClick:this.onDeleteIcon}]}},{key:"renderIconSettings",value:function(e){var t=this,n=this.props.attributes.icons,r=this.updateArrValues;if(void 0!==n[e])return wp.element.createElement(L,null,wp.element.createElement("div",{class:"wp-block-getwid-social-links__popover-close"},wp.element.createElement(q,{icon:"no-alt",className:"alignright",onClick:function(e){e.preventDefault(),e.stopPropagation(),t.setState({openPopUp:!1})}})),wp.element.createElement(K,{label:Object(A.__)("Icon","getwid")},wp.element.createElement(N.a,{value:n[e].icon,onChange:function(t){r({icon:t},e)}})),wp.element.createElement(W,{label:Object(A.__)("Link","getwid"),value:n[e].link,onChange:function(t){r({link:t},e)}}),wp.element.createElement(Y,{label:Object(A.__)("Open in New Tab","getwid"),checked:"_blank"===n[e].linkTarget,onChange:function(t){var o=n[e].rel,i=t?"_blank":void 0,a=o;i&&!o?a="noreferrer noopener":i||"noreferrer noopener"!==o||(a=void 0),r({linkTarget:i,rel:a},e)}}),wp.element.createElement(W,{label:Object(A.__)("Link Rel","getwid"),value:n[e].rel||"",onChange:function(t){r({rel:t},e)}}))}},{key:"icon_block",value:function(e){var t,n=this.props,r=n.attributes.iconsStyle,o=(n.className,n.backgroundColor),i=n.textColor;return wp.element.createElement(L,null,wp.element.createElement("span",{className:S()("".concat(J,"__wrapper"),(t={"has-background":o.color&&"stacked"==r},p()(t,o.class,o.class&&"stacked"==r),p()(t,"has-text-color",i.color),p()(t,i.class,i.class),t)),style:{color:i.color?i.color:void 0,backgroundColor:"stacked"==r&&o.color?o.color:void 0}},wp.element.createElement("i",{className:e.icon})))}},{key:"icon_render",value:function(e,t){var n=(this.props.className,this.state),r=n.selectedIcon,o=n.openPopUp;return wp.element.createElement(L,null,r==t&&o&&wp.element.createElement(Q,{className:"".concat(J,"__popover"),focusOnMount:"container",position:"bottom left"},this.renderIconSettings(r)),wp.element.createElement("a",{className:"".concat(J,"__link"),href:""!=e.link?e.link:"#",target:"_blank"==e.linkTarget?e.linkTarget:void 0,rel:e.rel?e.rel:void 0,onClick:function(e){e.preventDefault()}},this.icon_block(e)))}},{key:"render",value:function(){var e,t,n=this,r=this.props,i=r.attributes,a=(i.align,i.textAlignmentDesktop),l=i.textAlignmentTablet,c=i.textAlignmentMobile,u=i.icons,d=i.iconsStyle,m=i.iconsSize,g=i.iconsSpacing,f=r.className,b=(r.setAttributes,r.isSelected),w=(r.setBackgroundColor,r.setTextColor,r.backgroundColor,r.textColor,this.getState),h=this.changeState,v=this.updateArrValues,y=this.state.selectedIcon;return[wp.element.createElement(V,{key:"toolbar"},wp.element.createElement(U,{controls:this.getIcosDropdown()})),wp.element.createElement(x.a,s()({},o(o(o(o({},this.props),{changeState:h}),{getState:w}),{updateArrValues:v}),{key:"inspector"})),wp.element.createElement("div",{className:S()(f,"has-".concat(g,"-spacing"),(e={},p()(e,"has-icons-stacked","stacked"===d),p()(e,"has-icons-framed","framed"===d),e)),key:"edit",style:{fontSize:m}},wp.element.createElement("ul",{className:S()("".concat(J,"__list"),(t={},p()(t,"getwid-justify-content-flex-start","left"===a),p()(t,"getwid-justify-content-center","center"===a),p()(t,"getwid-justify-content-flex-end","right"===a),p()(t,"getwid-justify-content-tablet-flex-start","left"===l),p()(t,"getwid-justify-content-tablet-center","center"===l),p()(t,"getwid-justify-content-tablet-flex-end","right"===l),p()(t,"getwid-justify-content-mobile-flex-start","left"===c),p()(t,"getwid-justify-content-mobile-center","center"===c),p()(t,"getwid-justify-content-mobile-flex-end","right"===c),t))},u.map(function(e,t){var r=S()("".concat(J,"__item"),{"icon-selected":y==t});return wp.element.createElement("li",{className:r,onClick:function(){n.onSelectIcon(t)}},n.icon_render(e,t))}),b&&wp.element.createElement("span",{className:"".concat(J,"__link ").concat(J,"__add-icon")},wp.element.createElement(q,{icon:"insert",onClick:this.onAddIcon,label:Object(A.__)("Add Icon","getwid")}))))]}},{key:"componentDidUpdate",value:function(e,t){var n=this,r=this.props,o=r.clientId,i=r.isSelected,a=this.state.selectedIcon;if(i&&null!=a){var l=D("[data-block='".concat(o,"']")),c=D(".".concat(J,"__popover .components-popover__content"));D(l).off(),D(document).off("keydown",".".concat(J,"__popover")),D(document).on("keydown",".".concat(J,"__popover"),function(e){"Delete"==e.key&&e.target==c[0]&&n.onDeleteIcon()}),D(l).on("keydown",function(e){"Delete"==e.key&&n.onDeleteIcon()})}i||"object"==m()(a)||this.setState({selectedIcon:null})}},{key:"activateIcon",value:function(e){this.setState({selectedIcon:e})}},{key:"onSelectIcon",value:function(e){this.state.selectedIcon;this.setState({selectedIcon:e,openPopUp:!0})}},{key:"onDeleteIcon",value:function(){var e=this.state.selectedIcon;if(null!==e){var t=this.props,n=t.attributes.icons;(0,t.setAttributes)({icons:n.filter(function(t,n){return n!==e})}),this.setState({selectedIcon:null})}}},{key:"onAddIcon",value:function(){var e=this.props.attributes.icons;this.insertIcon({index:e.length})}},{key:"onInsertIconBefore",value:function(){var e=this.state.selectedIcon;null!==e&&this.insertIcon({index:e})}},{key:"onInsertIconAfter",value:function(){var e=this.state.selectedIcon;null!==e&&this.insertIcon({index:e+1})}},{key:"onDuplicate",value:function(){var e=this.state.selectedIcon,t=this.props,n=t.attributes.icons,r=t.setAttributes;null!==e&&(r({icons:[].concat(l()(n.slice(0,e)),[n[e]],l()(n.slice(e)))}),this.activateIcon(e+1))}},{key:"insertIcon",value:function(e){var t=e.index,n=this.props,r=n.attributes.icons,o=n.setAttributes,i={icon:"fab fa-wordpress",link:"#",linkTarget:void 0,rel:""};o({icons:[].concat(l()(r.slice(0,t)),[i],l()(r.slice(t)))})}},{key:"onMoveIconLeft",value:function(){var e=this.state.selectedIcon;null!==e&&this.moveIcon({from:e,to:e-1})}},{key:"onMoveIconRight",value:function(){var e=this.state.selectedIcon;null!==e&&this.moveIcon({from:e,to:e+1})}},{key:"moveIcon",value:function(e){var t=e.from,n=e.to,r=this.props,o=r.attributes.icons;(0,r.setAttributes)({icons:T()(o,t,n)}),this.activateIcon(n)}}]),t}(I);t.a=H([F("backgroundColor",{textColor:"color"})])($)},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=f()(e);if(t()){var o=f()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}n.d(t,"a",function(){return P});var o=n(15),i=n.n(o),a=n(2),l=n.n(a),c=n(4),s=n.n(c),u=n(5),p=n.n(u),d=n(6),m=n.n(d),g=n(3),f=n.n(g),b=(n(0),n(1)),w=(n.n(b),n(16)),h=wp.element,v=h.Component,y=h.Fragment,_=wp.blockEditor||wp.editor,k=_.InspectorControls,O=wp.components,E=O.PanelBody,C=O.SelectControl,j=O.RadioControl,S=O.TextControl,x=O.TabPanel,P=function(e){function t(){return l()(this,t),n.apply(this,arguments)}p()(t,e);var n=r(t);return s()(t,[{key:"renderResponsiveAlignmentTabs",value:function(e){var t=this.props.attributes,n=t.textAlignmentDesktop,r=t.textAlignmentTablet,o=t.textAlignmentMobile,i=this.props.setAttributes;switch(e.name){case"desktop":return wp.element.createElement(y,null,wp.element.createElement(j,{label:Object(b.__)("Horizontal Alignment","getwid"),selected:void 0!==n?n:"left",options:[{value:"left",label:Object(b.__)("Left","getwid")},{value:"center",label:Object(b.__)("Center","getwid")},{value:"right",label:Object(b.__)("Right","getwid")}],onChange:function(e){return i({textAlignmentDesktop:e})}}));case"tablet":return wp.element.createElement(y,null,wp.element.createElement(j,{label:Object(b.__)("Horizontal Alignment","getwid"),selected:void 0!==r?r:"left",options:[{value:"left",label:Object(b.__)("Left","getwid")},{value:"center",label:Object(b.__)("Center","getwid")},{value:"right",label:Object(b.__)("Right","getwid")}],onChange:function(e){return i({textAlignmentTablet:e})}}));case"mobile":return wp.element.createElement(y,null,wp.element.createElement(j,{label:Object(b.__)("Horizontal Alignment","getwid"),selected:void 0!==o?o:"left",options:[{value:"left",label:Object(b.__)("Left","getwid")},{value:"center",label:Object(b.__)("Center","getwid")},{value:"right",label:Object(b.__)("Right","getwid")}],onChange:function(e){return i({textAlignmentMobile:e})}}))}}},{key:"render",value:function(){var e=this,t=this.props,n=t.setAttributes,r=t.customTextColor,o=t.customBackgroundColor,a=t.setBackgroundColor,l=t.setTextColor,c=t.backgroundColor,s=t.textColor,u=this.props.attributes,p=u.iconsStyle,d=u.iconsSize,m=u.iconsSpacing,g="stacked"===p||"framed"===p;return wp.element.createElement(k,null,wp.element.createElement(E,{title:Object(b.__)("Settings","getwid")},wp.element.createElement(x,{className:"getwid-editor-tabs",activeClass:"is-active",tabs:[{name:"desktop",title:Object(b.__)("Desktop","getwid"),className:"components-button is-link is-small"},{name:"tablet",title:Object(b.__)("Tablet","getwid"),className:"components-button is-link is-small"},{name:"mobile",title:Object(b.__)("Mobile","getwid"),className:"components-button is-link is-small"}]},function(t){return e.renderResponsiveAlignmentTabs(t)}),wp.element.createElement(w.a,{colorSettings:[{title:Object(b.__)("Icon Color","getwid"),colors:{customColor:r,defaultColor:s},changeColor:l}].concat(i()(g&&"stacked"==p?[{title:Object(b.__)("Background Color","getwid"),colors:{customColor:o,defaultColor:c},changeColor:a}]:[]))}),wp.element.createElement(j,{label:Object(b.__)("Layout","getwid"),selected:void 0!==p?p:"default",options:[{value:"default",label:Object(b.__)("Icon","getwid")},{value:"stacked",label:Object(b.__)("Background","getwid")},{value:"framed",label:Object(b.__)("Outline","getwid")}],onChange:function(e){return n({iconsStyle:e})}}),wp.element.createElement(S,{type:"number",label:Object(b.__)("Icon Size","getwid"),value:d,onChange:function(e){e=parseInt(e),isNaN(e)&&(e=void 0),n({iconsSize:e})},min:0,step:1}),wp.element.createElement(C,{label:Object(b.__)("Space between icons","getwid"),value:m,options:[{value:"none",label:Object(b.__)("None","getwid")},{value:"default",label:Object(b.__)("Default","getwid")},{value:"small",label:Object(b.__)("Small","getwid")},{value:"medium",label:Object(b.__)("Medium","getwid")},{value:"large",label:Object(b.__)("Large","getwid")}],onChange:function(e){return n({iconsSpacing:e})}})))}}]),t}(v)},function(e,t,n){"use strict";function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function o(e,t,n){var o=e[t],i=e.length,a=t-n;return a>0?[].concat(r(e.slice(0,n)),[o],r(e.slice(n,t)),r(e.slice(t+1,i))):a<0?[].concat(r(e.slice(0,t)),r(e.slice(t+1,n+1)),[o],r(e.slice(n+1,i))):e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o},function(e,t){},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=w()(e);if(t()){var o=w()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f()(this,n)}}n.d(t,"a",function(){return x});var o=n(7),i=n.n(o),a=n(2),l=n.n(a),c=n(4),s=n.n(c),u=n(11),p=n.n(u),d=n(5),m=n.n(d),g=n(6),f=n.n(g),b=n(3),w=n.n(b),h=(n(0),n(8)),v=n.n(h),y=n(1),_=(n.n(y),window),k=(_.jQuery,wp.element),O=k.Component,E=k.Fragment,C=wp.blockEditor||wp.editor,j=C.getColorClassName,S="wp-block-getwid-social-links",x=function(e){function t(){var e;return l()(this,t),e=n.apply(this,arguments),e.icon_render=e.icon_render.bind(p()(e)),e.icon_block=e.icon_block.bind(p()(e)),e}m()(t,e);var n=r(t);return s()(t,[{key:"icon_block",value:function(e){var t,n=this.props.attributes,r=n.iconsStyle,o=n.backgroundColor,a=n.textColor,l=n.customBackgroundColor,c=n.customTextColor,s=j("color",a),u=j("background-color",o);return wp.element.createElement(E,null,wp.element.createElement("span",{className:v()("".concat(S,"__wrapper"),(t={"has-text-color":a||c},i()(t,s,s),i()(t,"has-background",(o||l)&&"stacked"==r),i()(t,u,u&&"stacked"==r),t)),style:{color:c||void 0,backgroundColor:"stacked"==r?l||void 0:void 0}},wp.element.createElement("i",{className:e.icon})))}},{key:"icon_render",value:function(e,t){return wp.element.createElement(E,null,wp.element.createElement("a",{className:"".concat(S,"__link"),href:""!=e.link?e.link:"#",target:"_blank"==e.linkTarget?e.linkTarget:void 0,rel:e.rel?e.rel:void 0},this.icon_block(e)))}},{key:"render",value:function(){var e,t,n=this,r=this.props.attributes,o=r.textAlignmentDesktop,a=r.textAlignmentTablet,l=r.textAlignmentMobile,c=r.icons,s=r.iconsStyle,u=r.iconsSize,p=r.iconsSpacing,d=r.className;return wp.element.createElement("div",{className:v()(d,"has-".concat(p,"-spacing"),(e={},i()(e,"has-icons-stacked","stacked"===s),i()(e,"has-icons-framed","framed"===s),e)),style:{fontSize:u}},wp.element.createElement("ul",{className:v()("".concat(S,"__list"),(t={},i()(t,"getwid-justify-content-flex-start","left"===o),i()(t,"getwid-justify-content-center","center"===o),i()(t,"getwid-justify-content-flex-end","right"===o),i()(t,"getwid-justify-content-tablet-flex-start","left"===a),i()(t,"getwid-justify-content-tablet-center","center"===a),i()(t,"getwid-justify-content-tablet-flex-end","right"===a),i()(t,"getwid-justify-content-mobile-flex-start","left"===l),i()(t,"getwid-justify-content-mobile-center","center"===l),i()(t,"getwid-justify-content-mobile-flex-end","right"===l),t))},c.map(function(e,t){var r=v()("".concat(S,"__item"));return wp.element.createElement("li",{className:r},n.icon_render(e,t))})))}}]),t}(O)},function(e,t){},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(n,!0).forEach(function(t){a()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var i=n(7),a=n.n(i),l=(n(0),n(282)),c=n(283),s=n(286),u=n(12),p=n(287),d=(n.n(p),n(1)),m=(n.n(d),window),g=(m.jQuery,wp.blocks),f=g.registerBlockType,b=g.createBlock,w=wp.data.select;f("getwid/button-group",o(o({title:Object(d.__)("Button Group","getwid"),icon:wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},wp.element.createElement("path",{d:"M22,3v6H2V3H22 M24,1H0v10h24V1L24,1z"}),wp.element.createElement("g",null,wp.element.createElement("rect",{x:"4",y:"5",width:"16",height:"2"})),wp.element.createElement("path",{d:"M22,15v6H2v-6H22 M24,13H0v10h24V13L24,13z"}),wp.element.createElement("g",null,wp.element.createElement("rect",{x:"4",y:"17",width:"16",height:"2"}))),category:"getwid-blocks",keywords:[],supports:{inserter:!Getwid.disabled_blocks.includes("getwid/button-group")},transforms:{to:[{type:"block",blocks:["core/button"],transform:function(e){var t=w("core/editor").getSelectedBlockClientId(),n=w("core/editor").getBlock(t).innerBlocks,r=[];return n.length&&jQuery.each(n,function(e,t){""!=t.attributes.text&&r.push({text:t.attributes.text,url:t.attributes.url})}),r.map(function(e){var t=e.text,n=e.url;return b("core/button",{text:t,url:n})})}}]},attributes:l.a},Object(u.b)("getwid/button-group",c.a)),{},{save:s.a}))},function(e,t,n){"use strict";var r={spacing:{type:"string",default:""},alignment:{type:"string",default:"left"},alignmentTablet:{type:"string",default:""},alignmentMobile:{type:"string",default:""},direction:{type:"string",default:"row"},directionTablet:{type:"string",default:""},directionMobile:{type:"string",default:""},width:{type:"string",default:"auto"},widthTablet:{type:"string",default:"auto"},widthMobile:{type:"string",default:"auto"}};t.a=r},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=w()(e);if(t()){var o=w()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f()(this,n)}}var o=n(9),i=n.n(o),a=n(7),l=n.n(a),c=n(2),s=n.n(c),u=n(4),p=n.n(u),d=n(5),m=n.n(d),g=n(6),f=n.n(g),b=n(3),w=n.n(b),h=(n(0),n(8)),v=n.n(h),y=n(284),_=n(285),k=(n.n(_),n(1)),O=(n.n(k),window),E=(O.jQuery,wp.element),C=E.Fragment,j=E.Component,S=wp.blockEditor||wp.editor,x=S.InnerBlocks,P=[["core/button",{text:Object(k.__)("Button","getwid")}],["core/button",{text:Object(k.__)("Button","getwid")}]],T=function(e){function t(){return s()(this,t),n.apply(this,arguments)}m()(t,e);var n=r(t);return p()(t,[{key:"render",value:function(){var e,t=this.props,n=t.attributes,r=n.spacing,o=n.alignment,a=n.alignmentTablet,c=n.alignmentMobile,s=n.direction,u=n.directionTablet,p=n.directionMobile,d=n.width,m=n.widthTablet,g=n.widthMobile,f=(t.setAttributes,t.className),b=v()("".concat("wp-block-getwid-button-group","__wrapper"),(e={},l()(e,"has-spacing-".concat(r),""!==r),l()(e,"has-alignment-".concat(o),"left"!==o),l()(e,"has-alignment-tablet-".concat(a),""!==a),l()(e,"has-alignment-mobile-".concat(c),""!==c),l()(e,"has-direction-".concat(s),"row"!==s),l()(e,"has-direction-tablet-".concat(u),""!==u),l()(e,"has-direction-mobile-".concat(p),""!==p),l()(e,"has-width-".concat(d),"auto"!==d),l()(e,"has-width-tablet-".concat(m),"auto"!==m),l()(e,"has-width-mobile-".concat(g),"auto"!==g),e));return wp.element.createElement(C,null,wp.element.createElement(y.a,i()({},this.props,{key:"inspector"})),wp.element.createElement("div",{className:f,key:"edit"},wp.element.createElement("div",{className:b},wp.element.createElement(x,{template:P,allowedBlocks:["core/button"],templateInsertUpdatesSelection:!1}))))}}]),t}(j);t.a=T},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=m()(e);if(t()){var o=m()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p()(this,n)}}n.d(t,"a",function(){return C});var o=n(2),i=n.n(o),a=n(4),l=n.n(a),c=n(5),s=n.n(c),u=n(6),p=n.n(u),d=n(3),m=n.n(d),g=(n(0),n(1)),f=(n.n(g),window),b=(f.jQuery,wp.element),w=b.Component,h=b.Fragment,v=wp.blockEditor||wp.editor,y=v.InspectorControls,_=wp.components,k=_.PanelBody,O=_.SelectControl,E=_.TabPanel,C=(_.RadioControl,function(e){function t(){return i()(this,t),n.apply(this,arguments)}s()(t,e);var n=r(t);return l()(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.spacing,r=t.alignment,o=t.alignmentTablet,i=t.alignmentMobile,a=t.direction,l=t.directionTablet,c=t.directionMobile,s=t.width,u=t.widthTablet,p=t.widthMobile,d=e.setAttributes;return wp.element.createElement(y,null,wp.element.createElement(k,{title:Object(g.__)("Settings","getwid")},wp.element.createElement(O,{label:Object(g.__)("Horizontal space between buttons","getwid"),value:void 0!==n?n:"",onChange:function(e){return d({spacing:e})},options:[{value:"",label:Object(g.__)("Default","getwid")},{value:"small",label:Object(g.__)("Small","getwid")},{value:"medium",label:Object(g.__)("Medium","getwid")},{value:"normal",label:Object(g.__)("Normal","getwid")},{value:"large",label:Object(g.__)("Large","getwid")},{value:"none",label:Object(g.__)("None","getwid")}]}),wp.element.createElement(E,{className:"getwid-editor-tabs",activeClass:"is-active",tabs:[{name:"desktop",title:Object(g.__)("Desktop","getwid"),className:"components-button is-link is-small"},{name:"tablet",title:Object(g.__)("Tablet","getwid"),className:"components-button is-link is-small"},{name:"mobile",title:Object(g.__)("Mobile","getwid"),className:"components-button is-link is-small"}]},function(e){switch(e.name){case"desktop":return wp.element.createElement(h,null,wp.element.createElement(O,{label:Object(g.__)("Horizontal Alignment","getwid"),value:r,onChange:function(e){return d({alignment:e})},options:[{value:"left",label:Object(g.__)("Left","getwid")},{value:"center",label:Object(g.__)("Center","getwid")},{value:"right",label:Object(g.__)("Right","getwid")}]}),wp.element.createElement(O,{label:Object(g.__)("Direction","getwid"),value:a,onChange:function(e){return d({direction:e})},options:[{value:"row",label:Object(g.__)("Horizontal","getwid")},{value:"column",label:Object(g.__)("Vertical","getwid")}]}),wp.element.createElement(O,{label:Object(g.__)("Button Width","getwid"),value:s,onChange:function(e){return d({width:e})},options:[{value:"auto",label:Object(g.__)("Auto","getwid")},{value:"100",label:Object(g.__)("100%","getwid")},{value:"50",label:Object(g.__)("50%","getwid")},{value:"33",label:Object(g.__)("33%","getwid")},{value:"25",label:Object(g.__)("25%","getwid")},{value:"20",label:Object(g.__)("20%","getwid")}]}));case"tablet":return wp.element.createElement(h,null,wp.element.createElement(O,{label:Object(g.__)("Horizontal Alignment","getwid"),value:o,onChange:function(e){return d({alignmentTablet:e})},options:[{value:"",label:Object(g.__)("Default","getwid")},{value:"left",label:Object(g.__)("Left","getwid")},{value:"center",label:Object(g.__)("Center","getwid")},{value:"right",label:Object(g.__)("Right","getwid")}]}),wp.element.createElement(O,{label:Object(g.__)("Direction","getwid"),value:l,onChange:function(e){return d({directionTablet:e})},options:[{value:"",label:Object(g.__)("Default","getwid")},{value:"row",label:Object(g.__)("Horizontal","getwid")},{value:"column",label:Object(g.__)("Vertical","getwid")}]}),wp.element.createElement(O,{label:Object(g.__)("Button Width","getwid"),value:u,onChange:function(e){return d({widthTablet:e})},options:[{value:"auto",label:Object(g.__)("Auto","getwid")},{value:"100",label:Object(g.__)("100%","getwid")},{value:"50",label:Object(g.__)("50%","getwid")},{value:"33",label:Object(g.__)("33%","getwid")},{value:"25",label:Object(g.__)("25%","getwid")},{value:"20",label:Object(g.__)("20%","getwid")}]}));case"mobile":return wp.element.createElement(h,null,wp.element.createElement(O,{label:Object(g.__)("Horizontal Alignment","getwid"),value:i,onChange:function(e){return d({alignmentMobile:e})},options:[{value:"",label:Object(g.__)("Default","getwid")},{value:"left",label:Object(g.__)("Left","getwid")},{value:"center",label:Object(g.__)("Center","getwid")},{value:"right",label:Object(g.__)("Right","getwid")}]}),wp.element.createElement(O,{label:Object(g.__)("Direction","getwid"),value:c,onChange:function(e){return d({directionMobile:e})},options:[{value:"",label:Object(g.__)("Default","getwid")},{value:"row",label:Object(g.__)("Horizontal","getwid")},{value:"column",label:Object(g.__)("Vertical","getwid")}]}),wp.element.createElement(O,{label:Object(g.__)("Button Width","getwid"),value:p,onChange:function(e){return d({widthMobile:e})},options:[{value:"auto",label:Object(g.__)("Auto","getwid")},{value:"100",label:Object(g.__)("100%","getwid")},{value:"50",label:Object(g.__)("50%","getwid")},{value:"33",label:Object(g.__)("33%","getwid")},{value:"25",label:Object(g.__)("25%","getwid")},{value:"20",label:Object(g.__)("20%","getwid")}]}))}})))}}]),t}(w))},function(e,t){},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=f()(e);if(t()){var o=f()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var o=n(7),i=n.n(o),a=n(2),l=n.n(a),c=n(4),s=n.n(c),u=n(5),p=n.n(u),d=n(6),m=n.n(d),g=n(3),f=n.n(g),b=(n(0),n(8)),w=n.n(b),h=wp.element.Component,v=wp.blockEditor||wp.editor,y=v.InnerBlocks,_=function(e){function t(){return l()(this,t),n.apply(this,arguments)}p()(t,e);var n=r(t);return s()(t,[{key:"render",value:function(){var e,t=this.props.attributes,n=t.spacing,r=t.alignment,o=t.alignmentTablet,a=t.alignmentMobile,l=t.direction,c=t.directionTablet,s=t.directionMobile,u=t.width,p=t.widthTablet,d=t.widthMobile,m=t.className,g=w()("".concat("wp-block-getwid-button-group","__wrapper"),(e={},i()(e,"has-spacing-".concat(n),""!==n),i()(e,"has-alignment-".concat(r),"left"!==r),i()(e,"has-alignment-tablet-".concat(o),""!==o),i()(e,"has-alignment-mobile-".concat(a),""!==a),i()(e,"has-direction-".concat(l),"row"!==l),i()(e,"has-direction-tablet-".concat(c),""!==c),i()(e,"has-direction-mobile-".concat(s),""!==s),i()(e,"has-width-".concat(u),"auto"!==u),i()(e,"has-width-tablet-".concat(p),"auto"!==p),i()(e,"has-width-mobile-".concat(d),"auto"!==d),e));return wp.element.createElement("div",{className:m},wp.element.createElement("div",{className:g},wp.element.createElement(y.Content,null)))}}]),t}(h);t.a=_},function(e,t){},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(n,!0).forEach(function(t){a()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var i=n(7),a=n.n(i),l=(n(0),n(289)),c=n(292),s=n(293),u=n(294),p=n(12),d=n(295),m=(n.n(d),n(1)),g=(n.n(m),window),f=(g.jQuery,wp.blocks),b=f.registerBlockType,w=f.createBlock;b("getwid/testimonial",o(o({title:Object(m.__)("Testimonial","getwid"),icon:wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},wp.element.createElement("path",{d:"M22,2v15h-4h-0.7l-0.6,0.5L12,21.4l-4.7-3.9L6.7,17H6H2V2H22 M24,0H0v19h6l6,5l6-5h6V0L24,0z"}),wp.element.createElement("g",null,wp.element.createElement("polygon",{points:"6,6 6,11 8,11 8,14 9.5,12.5 11,11 11,6 \t"})),wp.element.createElement("g",null,wp.element.createElement("polygon",{points:"13,6 13,11 15,11 15,14 16.5,12.5 18,11 18,6 \t"}))),category:"getwid-blocks",keywords:[Object(m.__)("review","getwid"),Object(m.__)("feedback","getwid")],deprecated:[{attributes:u.a,save:s.a}],supports:{inserter:!Getwid.disabled_blocks.includes("getwid/testimonial")},attributes:u.a,transforms:{from:[{type:"block",blocks:["core/paragraph"],transform:function(e){return w("getwid/testimonial",{title:e.content})}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){return w("core/paragraph",{content:e.title})}},{type:"block",blocks:["getwid/price-list"],transform:function(e){var t;return w("getwid/price-list",(t={title:e.title,description:e.subtitle},a()(t,"title",e.content),a()(t,"id",e.imgId),a()(t,"url",e.imgUrl),t))}},{type:"block",blocks:["getwid/price-box"],transform:function(e){return w("getwid/price-box",{title:e.title})}}]}},Object(p.b)("getwid/testimonial",l.a)),{},{save:c.a}))},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(n,!0).forEach(function(t){s()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function i(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=_()(e);if(t()){var o=_()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return v()(this,n)}}var a=n(9),l=n.n(a),c=n(7),s=n.n(c),u=n(2),p=n.n(u),d=n(4),m=n.n(d),g=n(11),f=n.n(g),b=n(5),w=n.n(b),h=n(6),v=n.n(h),y=n(3),_=n.n(y),k=(n(0),n(290)),O=(n.n(k),n(8)),E=n.n(O),C=n(291),j=n(1),S=(n.n(j),window),x=(S.jQuery,wp.element),P=x.Fragment,T=x.Component,R=wp.blockEditor||wp.editor,N=R.BlockControls,A=R.MediaPlaceholder,B=R.MediaUpload,D=R.MediaUploadCheck,M=R.RichText,I=wp.components,L=I.ToolbarGroup,z=I.ToolbarButton,V="wp-block-getwid-testimonial",F=["core/bold","core/italic","core/link","core/image","core/strikethrough","core/text-color"],H=function(e){function t(){var e;return p()(this,t),e=n.apply(this,arguments),e.onSelectMedia=e.onSelectMedia.bind(f()(e)),e}w()(t,e);var n=i(t);return m()(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.title,r=t.subtitle,i=t.content,a=t.imgId,c=t.imgUrl,u=t.imgAlt,p=e.className,d=e.setAttributes,m=this.onSelectMedia,g=E()(p,s()({},"has-image",void 0!==c));return wp.element.createElement(P,null,wp.element.createElement(N,{key:"toolbar"},!!c&&wp.element.createElement(P,null,wp.element.createElement(D,null,wp.element.createElement(L,null,wp.element.createElement(B,{onSelect:this.onSelectMedia,allowedTypes:["image"],value:a,render:function(e){var t=e.open;return wp.element.createElement(z,{className:"components-toolbar__control",label:Object(j.__)("Edit Media","getwid"),icon:"edit",onClick:t})}}))))),wp.element.createElement(C.a,l()({},o(o({},this.props),{},{onSelectMedia:m}),{key:"inspector"})),wp.element.createElement("div",{className:g,key:"edit"},!c&&wp.element.createElement(A,{icon:"format-image",labels:{title:Object(j.__)("Testimonial","getwid")},onSelect:this.onSelectMedia,accept:"image/*",allowedTypes:["image"]}),wp.element.createElement("div",{className:"".concat(V,"__wrapper")},wp.element.createElement("div",{className:"".concat(V,"__content-wrapper")},wp.element.createElement(M,{tagName:"p",className:"".concat(V,"__content"),placeholder:Object(j.__)("Write text…","getwid"),value:i,onChange:function(e){return d({content:e})},allowedFormats:F})),wp.element.createElement("div",{className:"".concat(V,"__header")},c&&wp.element.createElement("div",{className:"".concat(V,"__image-wrapper")},wp.element.createElement("div",{className:"".concat(V,"__image")},wp.element.createElement("img",{src:c,alt:u,className:a?"wp-image-".concat(a):null}))),wp.element.createElement("div",{className:"".concat(V,"__heading")},wp.element.createElement(M,{tagName:"span",className:"".concat(V,"__title"),placeholder:Object(j.__)("Write heading…","getwid"),value:n,onChange:function(e){return d({title:e})},allowedFormats:F}),wp.element.createElement(M,{tagName:"span",className:"".concat(V,"__subtitle"),placeholder:Object(j.__)("Write subtitle…","getwid"),value:r,onChange:function(e){return d({subtitle:e})},allowedFormats:F}))))))}},{key:"onSelectMedia",value:function(e){this.props.setAttributes({imgId:e.id,imgUrl:void 0!==e.sizes.thumbnail?e.sizes.thumbnail.url:e.sizes.full.url,imgAlt:e.alt})}}]),t}(T);t.a=H},function(e,t){},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=m()(e);if(t()){var o=m()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p()(this,n)}}n.d(t,"a",function(){return y});var o=n(2),i=n.n(o),a=n(4),l=n.n(a),c=n(5),s=n.n(c),u=n(6),p=n.n(u),d=n(3),m=n.n(d),g=(n(0),n(1)),f=(n.n(g),n(14)),b=wp.element.Component,w=wp.blockEditor||wp.editor,h=w.InspectorControls,v=wp.components.PanelBody,y=function(e){function t(){return i()(this,t),n.apply(this,arguments)}s()(t,e);var n=r(t);return l()(t,[{key:"render",value:function(){var e=this.props.attributes,t=e.imgId,n=e.imgUrl,r=this.props,o=r.setAttributes,i=r.onSelectMedia;return wp.element.createElement(h,null,wp.element.createElement(v,{title:Object(g.__)("Settings","getwid")},wp.element.createElement(f.e,{label:Object(g.__)("Image","getwid"),removeButton:!1,url:n,id:t,onSelectMedia:i,onRemoveMedia:function(){return o({imgUrl:void 0,imgId:void 0})}})))}}]),t}(b)},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=f()(e);if(t()){var o=f()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var o=n(7),i=n.n(o),a=n(2),l=n.n(a),c=n(4),s=n.n(c),u=n(5),p=n.n(u),d=n(6),m=n.n(d),g=n(3),f=n.n(g),b=(n(0),n(8)),w=n.n(b),h=wp.element.Component,v=wp.blockEditor||wp.editor,y=v.RichText,_="wp-block-getwid-testimonial",k=function(e){function t(){return l()(this,t),n.apply(this,arguments)}p()(t,e);var n=r(t);return s()(t,[{key:"render",value:function(){var e=this.props.attributes,t=e.title,n=e.subtitle,r=e.content,o=e.imgId,a=e.imgUrl,l=e.imgAlt,c=e.className,s=w()(c,i()({},"has-image",void 0!==a));return wp.element.createElement("div",{className:s},wp.element.createElement("div",{className:"".concat(_,"__wrapper")},!y.isEmpty(r)&&wp.element.createElement("div",{className:"".concat(_,"__content-wrapper")},wp.element.createElement(y.Content,{tagName:"p",value:r,className:"".concat(_,"__content")})),wp.element.createElement("div",{className:"".concat(_,"__header")},a&&wp.element.createElement("div",{className:"".concat(_,"__image-wrapper")},wp.element.createElement("div",{className:"".concat(_,"__image")},wp.element.createElement("img",{src:a,alt:l,className:o?"wp-image-".concat(o):void 0}))),!y.isEmpty(t)&&!y.isEmpty(n)&&wp.element.createElement("div",{className:"".concat(_,"__heading")},!y.isEmpty(t)&&wp.element.createElement(y.Content,{tagName:"span",value:t,className:"".concat(_,"__title")}),!y.isEmpty(n)&&wp.element.createElement(y.Content,{tagName:"span",value:n,className:"".concat(_,"__subtitle")})))))}}]),t}(h);t.a=k},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=f()(e);if(t()){var o=f()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var o=n(7),i=n.n(o),a=n(2),l=n.n(a),c=n(4),s=n.n(c),u=n(5),p=n.n(u),d=n(6),m=n.n(d),g=n(3),f=n.n(g),b=(n(0),n(8)),w=n.n(b),h=wp.element.Component,v=wp.blockEditor||wp.editor,y=v.RichText,_="wp-block-getwid-testimonial",k=function(e){function t(){return l()(this,t),n.apply(this,arguments)}p()(t,e);var n=r(t);return s()(t,[{key:"render",value:function(){var e=this.props.attributes,t=e.title,n=e.subtitle,r=e.content,o=e.imgId,a=e.imgUrl,l=e.imgAlt,c=e.className,s=w()(c,i()({},"has-image",void 0!==a));return wp.element.createElement("div",{className:s},wp.element.createElement("div",{className:"".concat(_,"__wrapper")},!y.isEmpty(r)&&wp.element.createElement("div",{className:"".concat(_,"__content-wrapper")},wp.element.createElement(y.Content,{tagName:"p",value:r,className:"".concat(_,"__content")})),wp.element.createElement("div",{className:"".concat(_,"__header")},a&&wp.element.createElement("div",{className:"".concat(_,"__image-wrapper")},wp.element.createElement("div",{className:"".concat(_,"__image")},wp.element.createElement("img",{src:a,alt:l,className:o?"wp-image-".concat(o):null}))),!y.isEmpty(t)&&!y.isEmpty(n)&&wp.element.createElement("div",{className:"".concat(_,"__heading")},!y.isEmpty(t)&&wp.element.createElement(y.Content,{tagName:"span",value:t,className:"".concat(_,"__title")}),!y.isEmpty(n)&&wp.element.createElement(y.Content,{tagName:"span",value:n,className:"".concat(_,"__subtitle")})))))}}]),t}(h);t.a=k},function(e,t,n){"use strict";var r={title:{type:"string",source:"html",selector:".wp-block-getwid-testimonial__title"},subtitle:{type:"string",source:"html",selector:".wp-block-getwid-testimonial__subtitle"},content:{type:"string",source:"html",selector:".wp-block-getwid-testimonial__content"},imgId:{type:"number"},imgUrl:{type:"string",source:"attribute",attribute:"src",selector:".wp-block-getwid-testimonial__image img"},imgAlt:{type:"string",source:"attribute",attribute:"alt",selector:".wp-block-getwid-testimonial__image img"}};t.a=r},function(e,t){},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(n,!0).forEach(function(t){a()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var i=n(7),a=n.n(i),l=(n(0),n(297)),c=n(300),s=n(301),u=n(73),p=n(12),d=n(302),m=(n.n(d),n(1)),g=(n.n(m),window),f=(g.jQuery,wp.blocks),b=f.registerBlockType,w=f.createBlock;b("getwid/person",o(o({title:Object(m.__)("Person","getwid"),icon:wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},wp.element.createElement("path",{d:"M15.7,12.7C17.1,11.6,18,9.9,18,8c0-3.3-2.6-6-6-6S6,4.6,6,8c0,1.9,0.9,3.7,2.3,4.7C4.6,14.2,2,17.8,2,22h20 C22,17.8,19.4,14.2,15.7,12.7z M12,4c2.2,0,4,1.7,4,4c0,2.2-1.7,4-4,4s-4-1.7-4-4C8,5.7,9.8,4,12,4z M12,14c3.7,0,6.9,2.6,7.7,6H4.3\tC5.1,16.6,8.3,14,12,14z"})),category:"getwid-blocks",keywords:[Object(m.__)("team","getwid"),Object(m.__)("member","getwid")],deprecated:[{attributes:u.a,save:s.a}],supports:{inserter:!Getwid.disabled_blocks.includes("getwid/person")},attributes:u.a,transforms:{from:[{type:"block",blocks:["core/image"],transform:function(e){return w("getwid/person",{id:e.imgId,url:e.imgUrl,content:e.caption})}}],to:[{type:"block",blocks:["core/image"],transform:function(e){return w("core/image",{id:e.imgId,url:e.imgUrl,caption:e.content})}}]}},Object(p.b)("getwid/person",l.a)),{},{save:c.a}))},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(n,!0).forEach(function(t){s()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function i(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=v()(e);if(t()){var o=v()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return w()(this,n)}}var a=n(9),l=n.n(a),c=n(7),s=n.n(c),u=n(2),p=n.n(u),d=n(4),m=n.n(d),g=n(5),f=n.n(g),b=n(6),w=n.n(b),h=n(3),v=n.n(h),y=(n(0),n(8)),_=n.n(y),k=n(10),O=(n.n(k),n(298)),E=n(73),C=n(299),j=(n.n(C),n(1)),S=(n.n(j),wp.element),x=S.Fragment,P=S.Component,T=wp.components,R=T.ToolbarGroup,N=T.ToolbarButton,A=wp.blockEditor||wp.editor,B=A.InnerBlocks,D=A.BlockControls,M=A.MediaPlaceholder,I=A.MediaUpload,L=A.MediaUploadCheck,z=A.RichText,V=wp.compose.compose,F=wp.data.withSelect,H=["getwid/social-links"],G=[["getwid/social-links",{textAlignmentDesktop:"center"}]],W="wp-block-getwid-person",U=["core/bold","core/italic","core/link","core/image","core/strikethrough","core/text-color"],q=function(e){function t(){return p()(this,t),n.apply(this,arguments)}f()(t,e);var n=i(t);return m()(t,[{key:"render",value:function(){var e=this,t=this.props.attributes,n=t.imageCrop,r=t.title,i=t.subtitle,a=t.content,c=t.imgId,s=t.imgUrl,u=t.imgAlt,p=this.props,d=p.className,m=p.setAttributes,g=function(e,t){if(!e)return void m({imgId:void 0,imgUrl:void 0});var n=Object(k.get)(e,["sizes",t,"url"])||Object(k.get)(e,["media_details","sizes",t,"source_url"])||e.url;m({imgId:e.id,imgUrl:void 0!==n?n:s})},f=function(t){var n=e.props.attributes.imageSize;["full","large","medium","thumbnail"].includes(n)||(n=E.a.imageSize.default,m({imageSize:n})),g(t,n)};return wp.element.createElement(x,null,wp.element.createElement(D,{key:"toolbar"},!!s&&wp.element.createElement(x,null,wp.element.createElement(L,null,wp.element.createElement(R,null,wp.element.createElement(I,{onSelect:f,allowedTypes:["image"],value:c,render:function(e){var t=e.open;return wp.element.createElement(N,{className:"components-toolbar__control",label:Object(j.__)("Edit Media","getwid"),icon:"edit",onClick:t})}}))))),wp.element.createElement("div",{className:_()(d,n?"is-image-cropped":null),key:"edit"},!s&&wp.element.createElement(M,{icon:"format-image",labels:{title:Object(j.__)("Person","getwid")},onSelect:f,accept:"image/*",allowedTypes:["image"]}),s&&wp.element.createElement(x,null,wp.element.createElement(O.a,l()({},o(o(o({},this.props),{changeImageSize:g}),{onSelectMedia:f}),{key:"inspector"})),wp.element.createElement("div",{className:"".concat(W,"__image")},wp.element.createElement("img",{src:s,alt:u,className:c?"wp-image-".concat(c):null})),wp.element.createElement("div",{className:"".concat(W,"__content-wrapper")},wp.element.createElement("div",{className:"editor-testimonial__title-wrapper"},wp.element.createElement(z,{tagName:"span",className:"".concat(W,"__title"),placeholder:Object(j.__)("Write heading…","getwid"),value:r,onChange:function(e){return m({title:e})},allowedFormats:U})),wp.element.createElement("div",{className:"editor-testimonial__subtitle-wrapper"},wp.element.createElement(z,{tagName:"span",className:"".concat(W,"__subtitle"),placeholder:Object(j.__)("Write subtitle…","getwid "),value:i,onChange:function(e){return m({subtitle:e})},allowedFormats:U})),wp.element.createElement("div",{className:"editor-testimonial__content-wrapper"},wp.element.createElement(z,{tagName:"p",className:"".concat(W,"__content"),placeholder:Object(j.__)("Write text…","getwid"),value:a,onChange:function(e){return m({content:e})},allowedFormats:U})),wp.element.createElement("div",{className:"editor-testimonial__social-links-wrapper"},wp.element.createElement(B,{template:G,templateLock:"all",templateInsertUpdatesSelection:!1,allowedBlocks:H}))))))}}]),t}(P);t.a=V([F(function(e,t){var n=e("core"),r=n.getMedia,o=t.attributes.imgId;if(void 0!==o)return{imgObj:o?r(o):null}})])(q)},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=m()(e);if(t()){var o=m()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p()(this,n)}}var o=n(2),i=n.n(o),a=n(4),l=n.n(a),c=n(5),s=n.n(c),u=n(6),p=n.n(u),d=n(3),m=n.n(d),g=(n(0),n(1)),f=(n.n(g),n(14)),b=wp.element.Component,w=wp.blockEditor||wp.editor,h=w.InspectorControls,v=wp.components,y=v.PanelBody,_=v.SelectControl,k=v.ToggleControl,O=function(e){function t(){return i()(this,t),n.apply(this,arguments)}s()(t,e);var n=r(t);return l()(t,[{key:"render",value:function(){var e=this.props.attributes,t=e.imageSize,n=e.imageCrop,r=e.imgId,o=e.imgUrl,i=this.props,a=i.setAttributes,l=i.changeImageSize,c=i.onSelectMedia,s=i.imgObj,u=function(e){void 0!==s&&(a({imageSize:e}),l(s,e))};return wp.element.createElement(h,null,wp.element.createElement(y,{title:Object(g.__)("Settings","getwid")},wp.element.createElement(f.e,{label:Object(g.__)("Image","getwid"),removeButton:!1,url:o,id:r,onSelectMedia:c,onRemoveMedia:function(){return a({imgUrl:void 0,imgId:void 0})}}),s&&wp.element.createElement(_,{label:Object(g.__)("Image Size","getwid"),help:Object(g.__)("For images from Media Library only.","getwid"),value:t,onChange:u,options:Getwid.settings.image_sizes}),wp.element.createElement(k,{label:Object(g.__)("Crop Image","getwid"),checked:n,onChange:function(){a({imageCrop:!n})}})))}}]),t}(b);t.a=O},function(e,t){},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=m()(e);if(t()){var o=m()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p()(this,n)}}var o=n(2),i=n.n(o),a=n(4),l=n.n(a),c=n(5),s=n.n(c),u=n(6),p=n.n(u),d=n(3),m=n.n(d),g=(n(0),n(8)),f=n.n(g),b=wp.element,w=b.Component,h=b.Fragment,v=wp.blockEditor||wp.editor,y=v.RichText,_=v.InnerBlocks,k="wp-block-getwid-person",O=function(e){function t(){return i()(this,t),n.apply(this,arguments)}s()(t,e);var n=r(t);return l()(t,[{key:"render",value:function(){var e=this.props.attributes,t=(e.imageSize,e.imageCrop),n=e.title,r=e.subtitle,o=e.content,i=e.imgId,a=e.imgUrl,l=e.imgAlt,c=e.className;return wp.element.createElement("div",{className:f()(c,t?"is-image-cropped":null)},a&&wp.element.createElement(h,null,wp.element.createElement("div",{className:"".concat(k,"__image")},wp.element.createElement("img",{src:a,alt:l,className:i?"wp-image-".concat(i):void 0})),wp.element.createElement("div",{className:"".concat(k,"__content-wrapper")},!y.isEmpty(n)&&wp.element.createElement(y.Content,{tagName:"span",value:n,className:"".concat(k,"__title")}),!y.isEmpty(r)&&wp.element.createElement(y.Content,{tagName:"span",value:r,className:"".concat(k,"__subtitle")}),!y.isEmpty(o)&&wp.element.createElement(y.Content,{tagName:"p",value:o,className:"".concat(k,"__content")}),wp.element.createElement(_.Content,null))))}}]),t}(w);t.a=O},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=m()(e);if(t()){var o=m()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p()(this,n)}}var o=n(2),i=n.n(o),a=n(4),l=n.n(a),c=n(5),s=n.n(c),u=n(6),p=n.n(u),d=n(3),m=n.n(d),g=(n(0),n(8)),f=n.n(g),b=wp.element,w=b.Component,h=b.Fragment,v=wp.blockEditor||wp.editor,y=v.RichText,_=v.InnerBlocks,k="wp-block-getwid-person",O=function(e){function t(){return i()(this,t),n.apply(this,arguments)}s()(t,e);var n=r(t);return l()(t,[{key:"render",value:function(){var e=this.props.attributes,t=(e.imageSize,e.imageCrop),n=e.title,r=e.subtitle,o=e.content,i=e.imgId,a=e.imgUrl,l=e.imgAlt,c=e.className;return wp.element.createElement("div",{className:f()(c,t?"is-image-cropped":null)},a&&wp.element.createElement(h,null,wp.element.createElement("div",{className:"".concat(k,"__image")},wp.element.createElement("img",{src:a,alt:l,className:i?"wp-image-".concat(i):null})),wp.element.createElement("div",{className:"".concat(k,"__content-wrapper")},!y.isEmpty(n)&&wp.element.createElement(y.Content,{tagName:"span",value:n,className:"".concat(k,"__title")}),!y.isEmpty(r)&&wp.element.createElement(y.Content,{tagName:"span",value:r,className:"".concat(k,"__subtitle")}),!y.isEmpty(o)&&wp.element.createElement(y.Content,{tagName:"p",value:o,className:"".concat(k,"__content")}),wp.element.createElement(_.Content,null))))}}]),t}(w);t.a=O},function(e,t){},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(n,!0).forEach(function(t){a()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var i=n(7),a=n.n(i),l=(n(0),n(74)),c=n(304),s=n(12),u=n(1),p=(n.n(u),window),d=(p.jQuery,wp.blocks.registerBlockType);d("getwid/instagram",o(o({title:Object(u.__)("Instagram","getwid"),icon:wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",x:"0px",y:"0px"},wp.element.createElement("path",{d:"M17.11,2C19.81,2,22,4.19,22,6.89v10.22c0,2.7-2.19,4.89-4.89,4.89H6.89C4.19,22,2,19.81,2,17.11V6.89C2,4.19,4.19,2,6.89,2 H17.11 M17.11,0H6.89C3.09,0,0,3.09,0,6.89v10.22C0,20.91,3.09,24,6.89,24h10.22c3.81,0,6.89-3.09,6.89-6.89V6.89 C24,3.09,20.91,0,17.11,0L17.11,0z"}),wp.element.createElement("path",{d:"M18.5,4L18.5,4C19.33,4,20,4.67,20,5.5v0C20,6.33,19.33,7,18.5,7h0C17.67,7,17,6.33,17,5.5v0C17,4.67,17.67,4,18.5,4z"}),wp.element.createElement("path",{d:"M12,8c2.21,0,4,1.79,4,4s-1.79,4-4,4s-4-1.79-4-4S9.79,8,12,8 M12,6c-3.31,0-6,2.69-6,6s2.69,6,6,6s6-2.69,6-6S15.31,6,12,6 L12,6z"})),category:"getwid-blocks",keywords:[],attributes:l.a,supports:{inserter:!Getwid.disabled_blocks.includes("getwid/instagram")},getEditWrapperProps:function(e){var t=e.align;if(["wide","full"].includes(t))return{"data-align":t}}},Object(s.b)("getwid/instagram",c.a)),{},{save:function(){return null}}))},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(n,!0).forEach(function(t){s()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function i(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=_()(e);if(t()){var o=_()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return v()(this,n)}}var a=n(9),l=n.n(a),c=n(7),s=n.n(c),u=n(2),p=n.n(u),d=n(4),m=n.n(d),g=n(11),f=n.n(g),b=n(5),w=n.n(b),h=n(6),v=n.n(h),y=n(3),_=n.n(y),k=(n(0),n(305)),O=n(306),E=(n.n(O),n(307)),C=(n.n(E),n(1)),j=(n.n(C),window),S=(j.jQuery,wp),x=S.serverSideRender,P=wp.element,T=P.Component,R=P.Fragment,N=wp.blockEditor||wp.editor,A=N.BlockControls,B=N.BlockAlignmentToolbar,D=wp.components,M=D.Button,I=D.Disabled,L=function(e){function t(){var e;return p()(this,t),e=n.apply(this,arguments),e.changeState=e.changeState.bind(f()(e)),e.getState=e.getState.bind(f()(e)),e.state={checkToken:!1,getTokenURL:"https://api.instagram.com/oauth/authorize?client_id=910186402812397&redirect_uri=https://api.getmotopress.com/get_instagram_token.php&scope=user_profile,user_media&response_type=code&state="+Getwid.get_instagram_token_url},e}w()(t,e);var n=i(t);return m()(t,[{key:"manageInstagramToken",value:function(e,t){e.preventDefault();var n=this.changeState,r={action:"get_instagram_token",data:"",option:t,nonce:Getwid.nonces.get_instagram_token};jQuery.post(Getwid.ajax_url,r,function(e){""!=e.data&&(Getwid.settings.instagram_token=e.data,n("checkToken",!0))})}},{key:"enterInstagramTokenForm",value:function(){var e=this,t=this.state.getTokenURL;return wp.element.createElement("form",{className:"".concat(this.props.className,"__key-form"),onSubmit:function(t){t.preventDefault(),e.manageInstagramToken(t,"get")}},wp.element.createElement("span",{className:"form-title"},Object(C.__)("Connect Instagram Account","getwid")),wp.element.createElement("div",{className:"form-wrapper"},wp.element.createElement("a",{href:t,target:"_blank",className:"components-button is-button is-primary getwid-instagram-auth-button"},Object(C.__)("Connect Instagram Account","getwid")),wp.element.createElement(M,{isDefault:!0,type:"submit"},Object(C.__)("Update","getwid"))),wp.element.createElement("span",{className:"form-description"},Object(C.__)("Click Connect Instagram Account and authorize the app in a new tab to receive access token. Then return to this tab and click Update. You can revoke the granted access any time in your Instagram profile settings.","getwid")))}},{key:"changeState",value:function(e,t){this.setState(s()({},e,t))}},{key:"getState",value:function(e){return this.state[e]}},{key:"render",value:function(){if(""==Getwid.settings.instagram_token)return this.enterInstagramTokenForm();var e=this.props,t=e.attributes.align,n=e.setAttributes,r=this.changeState,i=this.getState;return wp.element.createElement(R,null,wp.element.createElement(A,null,wp.element.createElement(B,{value:t,controls:["wide","full"],onChange:function(e){return n({align:e})}})),wp.element.createElement(k.a,l()({},o(o(o({},this.props),{changeState:r}),{getState:i}),{key:"inspector"})),wp.element.createElement(I,null,wp.element.createElement(x,{block:"getwid/instagram",attributes:this.props.attributes})))}}]),t}(T);t.a=L},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=f()(e);if(t()){var o=f()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var o=n(33),i=n.n(o),a=n(2),l=n.n(a),c=n(4),s=n.n(c),u=n(5),p=n.n(u),d=n(6),m=n.n(d),g=n(3),f=n.n(g),b=(n(0),n(74)),w=n(1),h=(n.n(w),window),v=(h.jQuery,wp.element),y=v.Component,_=(v.Fragment,wp.blockEditor||wp.editor),k=_.InspectorControls,O=wp.components,E=(O.Button,O.BaseControl,O.ButtonGroup,O.PanelBody),C=O.RangeControl,j=(O.ToggleControl,O.SelectControl),S=(O.Modal,O.TextControl,O.TextareaControl,O.ExternalLink,O.RadioControl,O.Notice,function(e){function t(e){return l()(this,t),n.apply(this,arguments)}p()(t,e);var n=r(t);return s()(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.photoCount,r=t.gridColumns,o=t.spacing,a=(e.changeState,e.getState,e.setAttributes);e.className;return wp.element.createElement(k,{key:"inspector"},wp.element.createElement(E,{title:Object(w.__)("Settings","getwid"),initialOpen:!0},wp.element.createElement(C,{label:Object(w.__)("Number of items","getwid"),value:n,onChange:function(e){void 0===e&&(e=b.a.photoCount.default),a({photoCount:e})},allowReset:!0,min:1,max:100,step:1}),wp.element.createElement(C,{label:Object(w.__)("Columns","getwid"),value:r,onChange:function(e){void 0===e&&(i()("photoCount"),n=b.a.gridColumns.default),a({gridColumns:e})},allowReset:!0,min:1,max:6,step:1}),wp.element.createElement(j,{label:Object(w.__)("Spacing","getwid"),value:o,onChange:function(e){return a({spacing:e})},options:[{value:"default",label:Object(w.__)("Default","getwid")},{value:"none",label:Object(w.__)("None","getwid")},{value:"small",label:Object(w.__)("Small","getwid")},{value:"medium",label:Object(w.__)("Medium","getwid")},{value:"normal",label:Object(w.__)("Normal","getwid")},{value:"large",label:Object(w.__)("Large","getwid")}]})))}}]),t}(y));t.a=S},function(e,t){},function(e,t){},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(n,!0).forEach(function(t){a()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var i=n(7),a=n.n(i),l=(n(0),n(309)),c=n(312),s=n(313),u=n(12),p=n(314),d=(n.n(p),n(1)),m=(n.n(d),window),g=(m.jQuery,wp.blocks),f=g.registerBlockType,b=g.createBlock,w="wp-block-getwid-progress-bar";f("getwid/progress-bar",o(o({title:Object(d.__)("Progress Bar","getwid"),icon:wp.element.createElement("svg",{x:"0px",y:"0px",viewBox:"0 0 24 24"},wp.element.createElement("g",null,wp.element.createElement("path",{d:"M13,14H0v6h13h11v-6H13z M22,18H12v-2h10V18z"})),wp.element.createElement("path",{d:"M12,12l4-2V4H8v6 M14,9l-2,1l-2-1V6h4V9z"})),category:"getwid-blocks",supports:{align:["wide","full"],inserter:!Getwid.disabled_blocks.includes("getwid/progress-bar")},getEditWrapperProps:function(e){var t=e.align;if(["wide","full"].includes(t))return{"data-align":t}},attributes:s.a,transforms:{to:[{type:"block",blocks:["getwid/counter"],transform:function(e){return b("getwid/counter",{end:e.fillAmount})}},{type:"block",blocks:["getwid/circle-progress-bar"],transform:function(e){return b("getwid/circle-progress-bar",{fillAmount:e.fillAmount})}}]}},Object(u.b)("getwid/progress-bar",function(e){return wp.element.createElement(l.a,o(o({},e),{},{baseClass:w}))})),{},{save:function(e){return wp.element.createElement(c.a,o(o({},e),{},{baseClass:w}))}}))},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=f()(e);if(t()){var o=f()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var o=n(2),i=n.n(o),a=n(4),l=n.n(a),c=n(11),s=n.n(c),u=n(5),p=n.n(u),d=n(6),m=n.n(d),g=n(3),f=n.n(g),b=(n(0),n(1)),w=(n.n(b),n(10)),h=(n.n(w),n(12)),v=n(310),y=(n.n(v),n(311)),_=n(8),k=n.n(_),O=wp.compose.compose,E=wp.element,C=E.Component,j=E.Fragment,S=wp.blockEditor||wp.editor,x=S.RichText,P=S.withColors,T=window,R=T.jQuery,N=["core/bold","core/italic","core/link","core/image","core/strikethrough","core/text-color"],A=function(e){function t(){var e;i()(this,t),e=n.apply(this,arguments);var r=e.props.attributes.isAnimated;return e.drawFrame=e.drawFrame.bind(s()(e)),e.drawLinearBar=e.drawLinearBar.bind(s()(e)),e.state={fillComplete:!R.parseJSON(r),holderWidth:void 0},e}p()(t,e);var n=r(t);return l()(t,[{key:"drawFrame",value:function(){var e=this,t=this.props.clientId,n=this.props.baseClass,r=this.props.attributes.fillAmount,o=R("[data-block='".concat(t,"']")),i=R(".".concat(n,"__progress"),o),a=function(){return Math.round(i.width()/i.parent().width()*100)};i.animate({width:"".concat(r,"%")},{duration:2e3,progress:function(){R(".".concat(n,"__percent"),o).text(a()+"%")},complete:function(){e.setState({fillComplete:!0,holderWidth:i.parent().width()})}})}},{key:"drawLinearBar",value:function(){var e=this,t=this.props,n=t.baseClass,r=t.clientId,o=this.props.attributes,i=o.isAnimated,a=o.fillAmount,l=R("[data-block='".concat(r,"']")),c=R(".".concat(n,"__progress"),l),s=Object(h.e)();R.parseJSON(i)?Object(h.g)(c)||!1===s?this.drawFrame(c):Object(h.h)(".".concat(s),c,function(){e.drawFrame(c)}):(R(".".concat(n,"__progress"),l).css("width","".concat(a,"%")),R(".".concat(n,"__percent"),l).text("".concat(a,"%")))}},{key:"componentDidUpdate",value:function(e,t){if(e.isSelected===this.props.isSelected){var n=this.props,r=n.baseClass,o=n.clientId,i=this.props.attributes,a=i.isAnimated,l=i.fillAmount,c=l||"0";R.parseJSON(a)||R(".".concat(o)).find(".".concat(r,"__progress")).css("width","".concat(c,"%")),Object(w.isEqual)(e.attributes,this.props.attributes)||(R("#block-".concat(o)).find(".".concat(r,"__progress")).css("width","".concat(c,"%")),R("#block-".concat(o)).find(".".concat(r,"__percent")).text("".concat(c,"%")))}}},{key:"componentDidMount",value:function(){this.drawLinearBar()}},{key:"render",value:function(){var e=this.props.backgroundColor,t=this.props,n=t.className,r=t.setAttributes,o=t.baseClass,i=this.props.attributes,a=i.title,l=i.fillAmount,c=i.customTextColor,s=i.customBackgroundColor,u=l?parseInt(l):0,p=this.state,d=p.fillComplete,m=p.holderWidth,g={className:k()("".concat(o,"__bar")),style:{backgroundColor:e.color?e.color:s}};return wp.element.createElement(j,null,wp.element.createElement(y.a,this.props),wp.element.createElement("div",{className:n},wp.element.createElement("div",{className:"".concat(o,"__wrapper")},wp.element.createElement("div",{className:"".concat(o,"__header")},wp.element.createElement(x,{tagName:"p",className:"".concat(o,"__title"),placeholder:Object(b.__)("Write heading…","getwid"),value:a||"",onChange:function(e){return r({title:e})},keepPlaceholderOnFocus:!0,multiline:!1,allowedFormats:N}),wp.element.createElement("span",{className:"".concat(o,"__percent")}," ","".concat(l||"0","%"))),wp.element.createElement("div",g,wp.element.createElement("div",{className:"".concat(o,"__progress"),style:{backgroundColor:void 0!==this.props.attributes.textColor&&void 0===this.props.attributes.textColor.class?this.props.textColor.color:c||void 0,width:d?m*u/100:"0%"}})))))}}]),t}(C);t.a=O([P("backgroundColor",{textColor:"color"})])(A)},function(e,t){},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=m()(e);if(t()){var o=m()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p()(this,n)}}var o=n(2),i=n.n(o),a=n(4),l=n.n(a),c=n(5),s=n.n(c),u=n(6),p=n.n(u),d=n(3),m=n.n(d),g=(n(0),n(1)),f=(n.n(g),n(16)),b=wp.element.Component,w=wp.blockEditor||wp.editor,h=w.InspectorControls,v=wp.components,y=v.RangeControl,_=v.CheckboxControl,k=v.PanelBody,O=function(e){function t(){return i()(this,t),n.apply(this,arguments)}s()(t,e);var n=r(t);return l()(t,[{key:"render",value:function(){var e=this.props,t=e.setTextColor,n=e.textColor,r=this.props.attributes,o=r.fillAmount,i=r.isAnimated,a=this.props,l=a.setAttributes,c=a.backgroundColor,s=a.setBackgroundColor,u=a.customBackgroundColor,p=a.customTextColor;return wp.element.createElement(h,null,wp.element.createElement(k,{title:Object(g.__)("Settings","getwid"),initialOpen:!0},wp.element.createElement(y,{label:Object(g.__)("Value","getwid"),value:o,onChange:function(e){l({fillAmount:e})},initialPosition:o,min:0,max:100,step:1}),wp.element.createElement(_,{label:"Animate",checked:"true"===i,onChange:function(e){l({isAnimated:e?"true":"false"})}}),wp.element.createElement(f.a,{colorSettings:[{title:Object(g.__)("Progress Color","getwid"),colors:{customColor:p,defaultColor:n},changeColor:t},{title:Object(g.__)("Background Color","getwid"),colors:{customColor:u,defaultColor:c},changeColor:s}]})))}}]),t}(b);t.a=O},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=f()(e);if(t()){var o=f()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var o=n(7),i=n.n(o),a=n(2),l=n.n(a),c=n(4),s=n.n(c),u=n(5),p=n.n(u),d=n(6),m=n.n(d),g=n(3),f=n.n(g),b=(n(0),n(8)),w=n.n(b),h=wp.element,v=h.Component,y=h.Fragment,_=wp.blockEditor||wp.editor,k=_.RichText,O=_.getColorClassName,E=function(e){function t(){return l()(this,t),n.apply(this,arguments)}p()(t,e);var n=r(t);return s()(t,[{key:"render",value:function(){var e=this.props,t=e.className,n=e.baseClass,r=this.props.attributes,o=r.fillAmount,a=r.title,l=r.isAnimated,c=r.backgroundColor,s=this.props.attributes,u=s.customBackgroundColor,p=s.textColor,d=s.customTextColor,m=O("color",p),g=O("background-color",c),f={className:w()("".concat(n,"__bar"),i()({"has-background":c||u},g,g)),style:{backgroundColor:c?void 0:u}},b={className:w()("".concat(n,"__progress"),i()({"has-text-color":p||d},m,m)),style:{color:void 0!==p?void 0:d,width:"0%"}};return wp.element.createElement(y,null,wp.element.createElement("div",{className:w()(t)},wp.element.createElement("div",{className:"".concat(n,"__wrapper"),"data-fill-amount":o,"data-is-animated":l},wp.element.createElement("div",{className:w()("".concat(n,"__header"),{"has-no-title":!a})},a&&wp.element.createElement(k.Content,{tagName:"p",className:"".concat(n,"__title"),value:a}),wp.element.createElement("span",{className:"".concat(n,"__percent")},"".concat(o,"%"))),wp.element.createElement("div",f,wp.element.createElement("div",b)))))}}]),t}(v);t.a=E},function(e,t,n){"use strict";var r={align:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},fillAmount:{type:"string",source:"attribute",selector:".wp-block-getwid-progress-bar__wrapper",attribute:"data-fill-amount",default:"75"},title:{type:"string",source:"html",selector:".wp-block-getwid-progress-bar__title"},isAnimated:{type:"string",source:"attribute",selector:".wp-block-getwid-progress-bar__wrapper",attribute:"data-is-animated",default:"true"}};t.a=r},function(e,t){},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(n,!0).forEach(function(t){a()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var i=n(7),a=n.n(i),l=(n(0),n(316)),c=n(317),s=n(319),u=n(12),p=n(320),d=(n.n(p),n(1)),m=(n.n(d),window),g=(m.jQuery,wp.blocks),f=g.registerBlockType,b=g.createBlock,w="wp-block-getwid-circle-progress-bar";f("getwid/circle-progress-bar",o(o({title:Object(d.__)("Circular Progress Bar","getwid"),icon:wp.element.createElement("svg",{x:"0px",y:"0px",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},wp.element.createElement("path",{d:"M12,22C6.49,22,2,17.51,2,12S6.49,2,12,2V0C5.37,0,0,5.37,0,12s5.37,12,12,12s12-5.37,12-12h-2C22,17.51,17.51,22,12,22z"})),category:"getwid-blocks",supports:{align:["wide","full"],inserter:!Getwid.disabled_blocks.includes("getwid/circle-progress-bar")},getEditWrapperProps:function(e){var t=e.align;if(["wide","full"].includes(t))return{"data-align":t}},attributes:s.a,transforms:{to:[{type:"block",blocks:["getwid/counter"],transform:function(e){return b("getwid/counter",{end:e.fillAmount})}},{type:"block",blocks:["getwid/progress-bar"],transform:function(e){return b("getwid/progress-bar",{fillAmount:e.fillAmount})}}]}},Object(u.b)("getwid/circle-progress-bar",function(e){return wp.element.createElement(c.a,o(o({},e),{},{baseClass:w}))})),{},{save:function(e){return wp.element.createElement(l.a,o(o({},e),{},{baseClass:w}))}}))},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=m()(e);if(t()){var o=m()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p()(this,n)}}var o=n(2),i=n.n(o),a=n(4),l=n.n(a),c=n(5),s=n.n(c),u=n(6),p=n.n(u),d=n(3),m=n.n(d),g=(n(0),n(8)),f=n.n(g),b=wp.element,w=b.Component,h=b.Fragment,v=function(e){function t(){return i()(this,t),n.apply(this,arguments)}s()(t,e);var n=r(t);return l()(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.fillAmount,r=t.isAnimated,o=t.wrapperAlign,i=t.size,a=t.thickness,l=t.backgroundColor,c=t.textColor,s=t.value,u=e.className,p=e.baseClass,d={className:f()("".concat(p,"__wrapper")),"data-background-color":l,"data-text-color":c,"data-fill-amount":n,"data-is-animated":r,"data-size":i,"data-thickness":a,"data-value":s,style:{textAlign:o||null}};return wp.element.createElement(h,null,wp.element.createElement("div",{className:f()(u)},wp.element.createElement("div",d,wp.element.createElement("canvas",{className:"".concat(p,"__canvas")}))))}}]),t}(w);t.a=v},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=f()(e);if(t()){var o=f()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var o=n(2),i=n.n(o),a=n(4),l=n.n(a),c=n(11),s=n.n(c),u=n(5),p=n.n(u),d=n(6),m=n.n(d),g=n(3),f=n.n(g),b=(n(0),n(1)),w=(n.n(b),n(8)),h=n.n(w),v=n(10),y=(n.n(v),n(12)),_=n(318),k=wp.element,O=k.Component,E=k.Fragment,C=wp.blockEditor||wp.editor,j=C.BlockControls,S=C.AlignmentToolbar,x=window,P=x.jQuery,T=function(e){function t(){var e;return i()(this,t),e=n.apply(this,arguments),e.getConfig=e.getConfig.bind(s()(e)),e.drawAnimatedArcs=e.drawAnimatedArcs.bind(s()(e)),e.drawArcs=e.drawArcs.bind(s()(e)),e.getThickness=e.getThickness.bind(s()(e)),e.setSize=e.setSize.bind(s()(e)),e}p()(t,e);var n=r(t);return l()(t,[{key:"getConfig",value:function(){var e=this.props,t=e.attributes,n=t.size,r=t.backgroundColor,o=t.textColor,i=e.clientId,a=this.props.baseClass;return{context:P(".".concat(i)).find(".".concat(a,"__canvas"))[0].getContext("2d"),backgroundColor:r||"#eeeeee",textColor:o||"#0000ee",radius:parseFloat(n)/2,angle:Math.PI/180*-90}}},{key:"draw",value:function(){var e=this,t=this.props,n=t.clientId,r=t.baseClass,o=this.props.attributes,i=o.isAnimated,a=o.fillAmount,l=Object(y.e)();if(P.parseJSON(i)){var c=P(".".concat(n)).find(".".concat(r,"__wrapper"));Object(y.g)(c)||!1===l?this.drawAnimatedArcs():Object(y.h)(".".concat(l),c,function(){e.drawAnimatedArcs()})}else this.drawArcs(a)}},{key:"drawArcs",value:function(e){var t=this.props.attributes,n=t.size,r=t.value,o=this.getConfig(),i=o.context,a=o.radius,l=o.angle,c=o.backgroundColor,s=o.textColor,u=parseInt(this.getThickness());this.setSize(),i.clearRect(0,0,parseFloat(n),parseFloat(n)),i.beginPath(),i.arc(a,a,a-u/2,l,l+2*Math.PI),i.lineWidth=u,i.strokeStyle=c,i.stroke(),i.beginPath(),i.arc(a,a,a-u/2,l,l+2*Math.PI*(e/100)),i.lineWidth=u,i.strokeStyle=s,i.stroke(),i.beginPath(),i.textAlign="center",i.font="16px serif",i.fillText(r||e+"%",a+6.5,a+5),i.stroke()}},{key:"drawAnimatedArcs",value:function(){var e=this,t=this.props.attributes.fillAmount,n=0;this.fill=setInterval(function(){e.drawArcs(n),++n>t&&clearInterval(e.fill)},35)}},{key:"getThickness",value:function(){var e=this.props.attributes,t=e.thickness,n=e.size;return P.isNumeric(t)?t:n/14}},{key:"setSize",value:function(){var e=this.props,t=e.attributes.size,n=e.clientId,r=e.baseClass,o=P(".".concat(n)).find(".".concat(r,"__canvas"))[0];o.width=parseFloat(t),o.height=parseFloat(t)}},{key:"componentDidUpdate",value:function(e,t){if(e.isSelected===this.props.isSelected){var n=this.props.attributes.fillAmount;Object(v.isEqual)(e,this.props)||this.drawArcs(n)}}},{key:"componentDidMount",value:function(){this.draw()}},{key:"componentWillUnmount",value:function(){clearInterval(this.fill)}},{key:"render",value:function(){var e=this.props.attributes.wrapperAlign,t=this.props,n=t.setAttributes,r=t.clientId,o=t.className,i=t.baseClass;return[wp.element.createElement(j,null,wp.element.createElement(S,{value:e,onChange:function(e){return n({wrapperAlign:e})}})),wp.element.createElement(_.a,this.props),wp.element.createElement(E,null,wp.element.createElement("div",{className:h()(o,r)},wp.element.createElement("div",{className:"".concat(i,"__wrapper"),style:{textAlign:e||null}},wp.element.createElement("canvas",{className:"".concat(i,"__canvas")}))))]}}]),t}(O);t.a=T},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=m()(e);if(t()){var o=m()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p()(this,n)}}var o=n(2),i=n.n(o),a=n(4),l=n.n(a),c=n(5),s=n.n(c),u=n(6),p=n.n(u),d=n(3),m=n.n(d),g=(n(0),n(1)),f=(n.n(g),n(16)),b=wp.element.Component,w=wp.blockEditor||wp.editor,h=w.InspectorControls,v=wp.components,y=v.RangeControl,_=v.CheckboxControl,k=v.PanelBody,O=v.TextControl,E=function(e){function t(){return i()(this,t),n.apply(this,arguments)}s()(t,e);var n=r(t);return l()(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.fillAmount,r=t.isAnimated,o=t.size,i=t.thickness,a=t.backgroundColor,l=t.textColor,c=t.value,s=e.setAttributes;return wp.element.createElement(h,null,wp.element.createElement(k,{title:Object(g.__)("Settings","getwid"),initialOpen:!0},wp.element.createElement(y,{label:Object(g.__)("Progress","getwid"),value:n,onChange:function(e){return s({fillAmount:e})},initialPosition:n,min:0,max:100,step:1}),wp.element.createElement(y,{label:Object(g.__)("Size","getwid"),value:o,onChange:function(e){s(i>o/2?{size:e,thickness:Math.floor(e/2)}:{size:e})},initialPosition:o,min:50,max:600,step:1}),wp.element.createElement(y,{label:Object(g.__)("Thickness","getwid"),value:isNaN(i)?(o/14).toFixed():parseFloat(i),onChange:function(e){s({thickness:e.toString()})},initialPosition:i,min:1,max:Math.floor(o/2),step:1}),wp.element.createElement(O,{label:Object(g.__)("Value","getwid"),value:c,onChange:function(e){return s({value:e})}}),wp.element.createElement(_,{label:Object(g.__)("Animate","getwid"),checked:"true"===r,onChange:function(e){s({isAnimated:e?"true":"false"})}}),wp.element.createElement(f.a,{colorSettings:[{title:Object(g.__)("Background Color","getwid"),colors:{customColor:a},changeColor:function(e){return s({backgroundColor:e})}},{title:Object(g.__)("Bar Color","getwid"),colors:{customColor:l},changeColor:function(e){return s({textColor:e})}}]})))}}]),t}(b);t.a=E},function(e,t,n){"use strict";var r={align:{type:"string"},wrapperAlign:{type:"string"},backgroundColor:{type:"string",source:"attribute",selector:".wp-block-getwid-circle-progress-bar__wrapper",attribute:"data-background-color"},textColor:{type:"string",source:"attribute",selector:".wp-block-getwid-circle-progress-bar__wrapper",attribute:"data-text-color"},fillAmount:{type:"string",source:"attribute",selector:".wp-block-getwid-circle-progress-bar__wrapper",attribute:"data-fill-amount",default:"75"},value:{type:"string",source:"attribute",selector:".wp-block-getwid-circle-progress-bar__wrapper",attribute:"data-value"},isAnimated:{type:"string",source:"attribute",selector:".wp-block-getwid-circle-progress-bar__wrapper",attribute:"data-is-animated",default:"true"},size:{type:"string",source:"attribute",selector:".wp-block-getwid-circle-progress-bar__wrapper",attribute:"data-size",default:"200"},thickness:{type:"string",source:"attribute",selector:".wp-block-getwid-circle-progress-bar__wrapper",attribute:"data-thickness",default:"auto"}};t.a=r},function(e,t){},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(n,!0).forEach(function(t){a()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var i=n(7),a=n.n(i),l=(n(0),n(322)),c=n(323),s=n(324),u=n(327),p=n(12),d=n(328),m=(n.n(d),n(1)),g=(n.n(m),window),f=(g.jQuery,wp.blocks),b=f.registerBlockType,w=f.createBlock,h="wp-block-getwid-counter";b("getwid/counter",o(o({title:Object(m.__)("Counter","getwid"),icon:wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",x:"0px",y:"0px"},wp.element.createElement("g",null,wp.element.createElement("g",null,wp.element.createElement("path",{d:"M22,2v20H2V2H22 M24,0H0v24h24V0L24,0z"})),wp.element.createElement("polygon",{points:"7,6 7,6 7,6 3.46,9.54 4.88,10.95 7,8.83 7,18 9,18 9,6"}),wp.element.createElement("polygon",{points:"18,3 18,3 18,3 14.46,6.54 15.88,7.95 18,5.83 18,11 20,11 20,3"}),wp.element.createElement("path",{d:"M21,16c0-0.61,0.01-1.54-0.69-2.24C19.79,13.25,19.04,13,18,13c-3,0-3,2.03-3,3h2c-0.01-0.07-0.04-0.44,0.22-0.73 C17.47,15,17.83,15,18,15c0.13,0,0.52,0,0.77,0.27c0,0,0.23,0.25,0.23,0.72c-0.01,1.1-3.73,2.8-4,2.92V21h6v-2h-3 C19.25,18.41,20.99,17.17,21,16z"}),wp.element.createElement("g",null,wp.element.createElement("polygon",{points:"14,18 13,18 13,6 14,6 14,4 11,4 11,20 14,20"}),wp.element.createElement("polygon",{points:"21,4 21,6 22,6 22,18 21,18 21,20 24,20 24,4"})),wp.element.createElement("rect",{x:"11",y:"2",width:"2",height:"20"})),wp.element.createElement("g",null)),category:"getwid-blocks",supports:{align:["wide","full"],inserter:!Getwid.disabled_blocks.includes("getwid/counter")},getEditWrapperProps:function(e){var t=e.align;if(["wide","full"].includes(t))return{"data-align":t}},deprecated:[{attributes:u.a,save:function(e){return wp.element.createElement(c.a,o(o({},e),{},{baseClass:h}))}}],attributes:u.a,transforms:{to:[{type:"block",blocks:["getwid/progress-bar"],transform:function(e){return w("getwid/progress-bar",{fillAmount:e.end})}},{type:"block",blocks:["getwid/circle-progress-bar"],transform:function(e){return w("getwid/circle-progress-bar",{fillAmount:e.end})}}]}},Object(p.b)("getwid/counter",function(e){return wp.element.createElement(s.a,o(o({},e),{},{baseClass:h,isInViewport:p.g,scrollHandler:p.h}))})),{},{save:function(e){return wp.element.createElement(l.a,o(o({},e),{},{baseClass:h}))}}))},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=f()(e);if(t()){var o=f()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var o=n(7),i=n.n(o),a=n(2),l=n.n(a),c=n(4),s=n.n(c),u=n(5),p=n.n(u),d=n(6),m=n.n(d),g=n(3),f=n.n(g),b=(n(0),n(8)),w=n.n(b),h=wp.element,v=h.Component,y=h.Fragment,_=wp.blockEditor||wp.editor,k=_.RichText,O=_.getColorClassName,E=function(e){function t(){return l()(this,t),n.apply(this,arguments)}p()(t,e);var n=r(t);return s()(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.start,r=t.end,o=t.decimalPlaces,a=t.duration,l=t.useEasing,c=t.useGrouping,s=t.easing,u=t.separator,p=t.decimal,d=t.numerals,m=t.prefix,g=t.suffix,f=t.textColor,b=t.customTextColor,h=t.wrapperAlign,v=e.className,_=e.baseClass,E=O("color",f),C={className:w()("".concat(_,"__wrapper")),style:{textAlign:h||null},"data-start":n,"data-end":r,"data-decimal-places":o,"data-duration":a,"data-use-easing":l,"data-use-grouping":c,"data-separator":u,"data-decimal":p,"data-easing-fn":s,"data-numerals":d},j={className:w()("".concat(_,"__number"),i()({"has-text-color":f||b},E,E)),style:{color:void 0!==f?void 0:b}};return wp.element.createElement(y,null,wp.element.createElement("div",{className:w()(v)},wp.element.createElement("div",C,m&&wp.element.createElement(k.Content,{tagName:"p",className:"".concat(_,"__prefix"),value:m}),wp.element.createElement("span",j,"0"),g&&wp.element.createElement(k.Content,{tagName:"p",className:"".concat(_,"__suffix"),value:g}))))}}]),t}(v);t.a=E},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=f()(e);if(t()){var o=f()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var o=n(7),i=n.n(o),a=n(2),l=n.n(a),c=n(4),s=n.n(c),u=n(5),p=n.n(u),d=n(6),m=n.n(d),g=n(3),f=n.n(g),b=(n(0),n(8)),w=n.n(b),h=wp.element,v=h.Component,y=h.Fragment,_=wp.blockEditor||wp.editor,k=_.RichText,O=_.getColorClassName,E=function(e){function t(){return l()(this,t),n.apply(this,arguments)}p()(t,e);var n=r(t);return s()(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.start,r=t.end,o=t.decimalPlaces,a=t.duration,l=t.useEasing,c=t.useGrouping,s=t.easing,u=t.separator,p=t.decimal,d=t.numerals,m=t.prefix,g=t.suffix,f=t.textColor,b=t.customTextColor,h=e.className,v=e.baseClass,_=O("color",f),E={className:w()("".concat(v,"__wrapper")),"data-start":n,"data-end":r,"data-decimal-places":o,"data-duration":a,"data-use-easing":l,"data-use-grouping":c,"data-separator":u,"data-decimal":p,"data-easing-fn":s,"data-numerals":d},C={className:w()("".concat(v,"__number"),i()({"has-text-color":f||b},_,_)),style:{color:void 0!==f?void 0:b}};return wp.element.createElement(y,null,wp.element.createElement("div",{className:w()(h)},wp.element.createElement("div",E,m&&wp.element.createElement(k.Content,{tagName:"p",className:"".concat(v,"__prefix"),value:m}),wp.element.createElement("span",C,"0"),g&&wp.element.createElement(k.Content,{tagName:"p",className:"".concat(v,"__suffix"),value:g}))))}}]),t}(v);t.a=E},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=w()(e);if(t()){var o=w()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f()(this,n)}}var o=n(7),i=n.n(o),a=n(2),l=n.n(a),c=n(4),s=n.n(c),u=n(11),p=n.n(u),d=n(5),m=n.n(d),g=n(6),f=n.n(g),b=n(3),w=n.n(b),h=(n(0),n(1)),v=(n.n(h),n(8)),y=n.n(v),_=n(10),k=(n.n(_),n(325)),O=(n.n(k),n(326)),E=n(12),C=wp.compose.compose,j=wp.element.Component,S=wp.blockEditor||wp.editor,x=S.RichText,P=S.withColors,T=S.BlockControls,R=S.AlignmentToolbar,N=window,A=N.jQuery,B=["core/bold","core/italic","core/link","core/image","core/strikethrough","core/text-color"],D=function(e){function t(){var e;return l()(this,t),e=n.apply(this,arguments),e.getEasingFunction=e.getEasingFunction.bind(p()(e)),e.getNumerals=e.getNumerals.bind(p()(e)),e.startCounter=e.startCounter.bind(p()(e)),e.startCounter=e.startCounter.bind(p()(e)),e}m()(t,e);var n=r(t);return s()(t,[{key:"render",value:function(){var e=this.props,t=e.textColor,n=e.setAttributes,r=this.props,o=r.clientId,a=r.className,l=r.baseClass,c=this.props.attributes,s=c.prefix,u=c.suffix,p=c.wrapperAlign,d=c.customTextColor,m={className:y()("".concat(l,"__number"),i()({"has-text-color":t.color},t.class,t.class)),style:{color:t.color?t.color:d}};return[wp.element.createElement(T,null,wp.element.createElement(R,{value:p,onChange:function(e){n({wrapperAlign:e})}})),wp.element.createElement(O.a,this.props),wp.element.createElement("div",{className:y()(a,o)},wp.element.createElement("div",{className:"".concat(l,"__wrapper"),style:{textAlign:p||null}},wp.element.createElement(x,{tagName:"p",className:"".concat(l,"__prefix"),placeholder:Object(h.__)("Prefix","getwid"),value:s||"",onChange:function(e){return n({prefix:e})},keepPlaceholderOnFocus:!0,multiline:!1,allowedFormats:B}),wp.element.createElement("span",m,"0"),wp.element.createElement(x,{tagName:"p",className:"".concat(l,"__suffix"),placeholder:Object(h.__)("Suffix","getwid"),value:u||"",onChange:function(e){return n({suffix:e})},keepPlaceholderOnFocus:!0,multiline:!1,allowedFormats:B})))]}},{key:"getEasingFunction",value:function(){var e=this.props.attributes,t=e.easing,n=e.useEasing;if(!A.parseJSON(n))return null;switch(t){case"outExpo":return function(e,t,n,r){return n*(1-Math.pow(2,-10*e/r))*1024/1023+t};case"outQuintic":return function(e,t,n,r){var o=(e/=r)*e,i=o*e;return t+n*(i*o+-5*o*o+10*i+-10*o+5*e)};case"outCubic":return function(e,t,n,r){var o=(e/=r)*e;return t+n*(o*e+-3*o+3*e)}}}},{key:"getNumerals",value:function(){switch(this.props.attributes.numerals){case"eastern_arabic":return["٠","١","٢","٣","٤","٥","٦","٧","٨","٩"];case"farsi":return["۰","۱","۲","۳","۴","۵","۶","۷","۸","۹"];default:return null}}},{key:"startCounter",value:function(){var e=this.props,t=e.baseClass,n=e.clientId,r=this.props.attributes,o=r.useEasing,i=r.useGrouping,a=r.separator,l=this.props.attributes,c=l.start,s=l.end,u=l.decimalPlaces,p=l.duration,d=l.decimal,m=A(".".concat(n)).find(".".concat(t,"__number")),g={startVal:parseFloat(c),decimalPlaces:parseInt(u),duration:parseInt(p),useEasing:A.parseJSON(o),useGrouping:A.parseJSON(i),separator:a,decimal:d,easingFn:this.getEasingFunction(),numerals:this.getNumerals()};"function"==typeof CountUp&&new CountUp(m.get(0),parseFloat(s),g).start()}},{key:"componentDidUpdate",value:function(e,t){if(e.isSelected===this.props.isSelected){var n=this.props,r=n.className,o=n.textColor,i=this.props.attributes,a=i.align,l=i.title,c=i.prefix,s=i.suffix,u=i.wrapperAlign;if(!Object(_.isEqual)(e.attributes.title,l)||!Object(_.isEqual)(e.attributes.prefix,c)||!Object(_.isEqual)(e.attributes.suffix,s))return;if(!Object(_.isEqual)(e.textColor,o)||!Object(_.isEqual)(e.textColor.color,o.color))return;if(!Object(_.isEqual)(e.className,r)||!Object(_.isEqual)(e.attributes.wrapperAlign,u)||!Object(_.isEqual)(e.attributes.align,a))return;this.startCounter()}}},{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.clientId,r=t.baseClass,o=this.props,i=o.isInViewport,a=o.scrollHandler,l=Object(E.e)(),c=A(".".concat(n)).find(".".concat(r,"__number"));i(c)||!1===l?this.startCounter():a(".".concat(l),c,function(){e.startCounter()})}}]),t}(j);t.a=C([P({textColor:"color"})])(D)},function(e,t){},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=v()(e);if(t()){var o=v()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return w()(this,n)}}var o=n(7),i=n.n(o),a=n(13),l=n.n(a),c=n(2),s=n.n(c),u=n(4),p=n.n(u),d=n(11),m=n.n(d),g=n(5),f=n.n(g),b=n(6),w=n.n(b),h=n(3),v=n.n(h),y=(n(0),n(1)),_=(n.n(y),n(16)),k=n(19),O=wp.element,E=O.Component,C=O.Fragment,j=wp.blockEditor||wp.editor,S=j.InspectorControls,x=wp.components,P=x.CheckboxControl,T=x.TextControl,R=x.SelectControl,N=x.PanelBody,A=function(e){function t(){var e;return s()(this,t),e=n.apply(this,arguments),e.changeState=e.changeState.bind(m()(e)),e.state={tabName:"general"},e}f()(t,e);var n=r(t);return p()(t,[{key:"changeState",value:function(e,t){"object"==l()(e)?this.setState(e):"string"==typeof e&&this.setState(i()({},e,t))}},{key:"render",value:function(){var e=this.props.attributes,t=e.start,n=e.end,r=e.decimalPlaces,o=e.duration,i=e.useEasing,a=e.useGrouping,l=e.customTextColor,c=this.props.attributes,s=c.separator,u=c.decimal,p=c.easing,d=c.numerals,m=this.props,g=m.setAttributes,f=m.textColor,b=m.setTextColor,w=this.state.tabName,h=this.changeState;return wp.element.createElement(S,null,wp.element.createElement(k.a,{state:w,stateName:"tabName",onChangeTab:h,tabs:["general","style"]}),"general"===w&&wp.element.createElement(C,null,wp.element.createElement(N,null,wp.element.createElement(T,{type:"number",label:Object(y.__)("Start","getwid"),value:isNaN(t)?0:parseFloat(t),onChange:function(e){g({start:e.toString()})}}),wp.element.createElement(T,{type:"number",label:Object(y.__)("End","getwid"),value:isNaN(n)?100:parseFloat(n),onChange:function(e){g({end:e.toString()})}}),wp.element.createElement(T,{type:"number",label:Object(y.__)("Animation Duration","getwid"),value:isNaN(o)?3:parseInt(o),onChange:function(e){g({duration:e.toString()})}}),wp.element.createElement(P,{label:Object(y.__)("Smooth Animation","getwid"),checked:"true"===i,onChange:function(e){g({useEasing:e?"true":"false"})}}))),"style"===w&&wp.element.createElement(C,null,wp.element.createElement(N,null,wp.element.createElement(R,{label:Object(y.__)("Animation Effect","getwid"),value:void 0===p?"outExpo":p,onChange:function(e){g({easing:e})},options:[{value:"outExpo",label:"OutExpo"},{value:"outQuintic",label:"OutQuintic"},{value:"outCubic",label:"OutCubic"}]}),wp.element.createElement(P,{label:Object(y.__)("Display Thousands Separator","getwid"),checked:"true"===a,onChange:function(e){g({useGrouping:e?"true":"false"})}}),wp.element.createElement(T,{label:Object(y.__)("Thousands Separator","getwid"),value:void 0===s?_x(",","Thousands separator","getwid"):s,onChange:function(e){g({separator:e})}}),wp.element.createElement(_.a,{colorSettings:[{title:Object(y.__)("Color","getwid"),colors:{customColor:l,defaultColor:f},changeColor:b}]}),wp.element.createElement(T,{type:"number",label:Object(y.__)("Decimal Places","getwid"),value:isNaN(r)?0:parseInt(r)<0?0:parseInt(r),onChange:function(e){e=e>100?100:e<0?0:e,g({decimalPlaces:parseInt(e)?parseInt(e)<0?"0":e.toString():"0"})}}),wp.element.createElement(T,{label:Object(y.__)("Decimal Separator","getwid"),value:void 0===u?_x(".","Decimal separator","getwid"):u,onChange:function(e){g({decimal:e})}}),wp.element.createElement(R,{label:Object(y.__)("Numerals","getwid"),value:void 0===d?"default":d,onChange:function(e){g({numerals:e})},options:[{value:"default",label:Object(y.__)("Default","getwid")},{value:"eastern_arabic",label:Object(y.__)("Eastern Arabic","getwid")},{value:"farsi",label:Object(y.__)("Farsi","getwid")}]}))))}}]),t}(E);t.a=A},function(e,t,n){"use strict";var r=n(1),o=(n.n(r),{align:{type:"string"},wrapperAlign:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"},start:{type:"string",default:"0"},duration:{type:"string",default:"3"},useEasing:{type:"string",default:"true"},useGrouping:{type:"string",default:"true"},separator:{type:"string",default:Object(r._x)(",","Thousands separator","getwid")},decimal:{type:"string",default:Object(r._x)(".","Decimal separator","getwid")},prefix:{type:"string",source:"html",selector:".wp-block-getwid-counter__prefix"},title:{type:"string",source:"html",selector:".wp-block-getwid-counter__title"},suffix:{type:"string",source:"html",selector:".wp-block-getwid-counter__suffix"},end:{type:"string",source:"attribute",selector:".wp-block-getwid-counter__wrapper",attribute:"data-end",default:"100"},decimalPlaces:{type:"string",source:"attribute",selector:".wp-block-getwid-counter__wrapper",attribute:"data-decimal-places",default:"0"},easing:{type:"type",source:"attribute",selector:".wp-block-getwid-counter__wrapper",attribute:"data-easing-fn",default:"outExpo"},numerals:{type:"string",source:"attribute",selector:".wp-block-getwid-counter__wrapper",attribute:"data-numerals",default:"default"}});t.a=o},function(e,t){},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(n,!0).forEach(function(t){a()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var i=n(7),a=n.n(i),l=(n(0),n(330)),c=n(331),s=n(333),u=n(334),p=n(12),d=n(335),m=(n.n(d),n(336)),g=(n.n(m),n(1)),f=(n.n(g),window),b=(f.jQuery,wp.blocks),w=b.registerBlockType,h=b.createBlock,v="wp-block-getwid-price-box";w("getwid/price-box",o(o({title:Object(g.__)("Price Box","getwid"),icon:wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",x:"0px",y:"0px"},wp.element.createElement("path",{d:"M12,2.24l6,3V22H6V5.24L12,2.24 M12,0L4,4v20h16V4L12,0L12,0z"}),wp.element.createElement("g",null,wp.element.createElement("path",{d:"M12,4c-0.55,0-1,0.45-1,1s0.45,1,1,1s1-0.45,1-1S12.55,4,12,4L12,4z"})),wp.element.createElement("path",{d:"M15,7h-2V6h-2v1h0C9.9,7,9,7.9,9,9v0.99C9,11.1,9.9,12,11.01,12L13,12.01L12.98,13H9v2h2v1h2v-1h-0.02\tc1.11,0,2.02-0.91,2.02-2.02v-0.97C15,10.9,14.1,10,12.99,10L11,9.99L11,9h4V7z"}),wp.element.createElement("rect",{x:"8",y:"18",width:"8",height:"2"})),category:"getwid-blocks",supports:{align:["wide","full"],inserter:!Getwid.disabled_blocks.includes("getwid/price-box")},getEditWrapperProps:function(e){var t=e.align;if(["wide","full"].includes(t))return{"data-align":t}},attributes:l.a,transforms:{from:[{type:"block",blocks:["core/paragraph"],transform:function(e){return h("getwid/price-box",{title:e.content})}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){return h("core/paragraph",{content:e.title})}},{type:"block",blocks:["getwid/testimonial"],transform:function(e){return h("getwid/testimonial",{title:e.title})}},{type:"block",blocks:["getwid/price-list"],transform:function(e){return h("getwid/price-list",{title:e.title,currency:e.currency,amount:e.amount,description:e.features})}}]},deprecated:[{attributes:l.a,save:function(e){return wp.element.createElement(u.a,o(o({},e),{},{baseClass:v}))}}]},Object(p.b)("getwid/price-box",function(e){return wp.element.createElement(c.a,o(o({},e),{},{baseClass:v}))})),{},{save:function(e){return wp.element.createElement(s.a,o(o({},e),{},{baseClass:v}))}}))},function(e,t,n){"use strict";var r={align:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},title:{type:"string",source:"html",selector:".wp-block-getwid-price-box__title"},currency:{type:"string",source:"html",selector:".wp-block-getwid-price-box__currency"},amount:{type:"string",source:"html",selector:".wp-block-getwid-price-box__amount"},period:{type:"string",source:"html",selector:".wp-block-getwid-price-box__period"},features:{type:"string",source:"html",selector:".wp-block-getwid-price-box__features"},headerTag:{type:"string",default:"p"}};t.a=r},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=f()(e);if(t()){var o=f()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var o=n(7),i=n.n(o),a=n(2),l=n.n(a),c=n(4),s=n.n(c),u=n(5),p=n.n(u),d=n(6),m=n.n(d),g=n(3),f=n.n(g),b=(n(0),n(1)),w=(n.n(b),n(332)),h=n(8),v=n.n(h),y=wp.compose.compose,_=wp.element,k=_.Component,O=_.Fragment,E=wp.blockEditor||wp.editor,C=E.RichText,j=E.InnerBlocks,S=E.withColors,x=["core/bold","core/italic","core/link","core/image","core/strikethrough","core/text-color"],P=function(e){function t(){return l()(this,t),n.apply(this,arguments)}p()(t,e);var n=r(t);return s()(t,[{key:"render",value:function(){var e,t=this.props.attributes,n=t.title,r=t.currency,o=t.amount,a=t.period,l=t.features,c=this.props.attributes,s=c.headerTag,u=c.customTextColor,p=c.customBackgroundColor,d=this.props,m=d.className,g=d.baseClass,f=d.setAttributes,h=d.backgroundColor,y=d.textColor,_={color:void 0!==this.props.attributes.textColor&&void 0===this.props.attributes.textColor.class?this.props.textColor.color:u||void 0},k={className:v()("".concat(m),(e={"has-background":h.color},i()(e,h.class,h.class),i()(e,"has-text-color",y.color),i()(e,y.class,y.class),e)),style:{backgroundColor:this.props.backgroundColor.color?this.props.backgroundColor.color:p||void 0}};return wp.element.createElement(O,null,wp.element.createElement(w.a,this.props),wp.element.createElement("div",k,wp.element.createElement(C,{tagName:s,className:"".concat(g,"__title"),placeholder:Object(b.__)("Write heading…","getwid"),value:n||"",onChange:function(e){return f({title:e})},keepPlaceholderOnFocus:!0,style:_,multiline:!1,allowedFormats:x}),wp.element.createElement("div",{className:"".concat(g,"__pricing")},wp.element.createElement(C,{tagName:"p",className:"".concat(g,"__currency"),placeholder:"$",value:r||"",onChange:function(e){f({currency:e})},keepPlaceholderOnFocus:!0,style:_,multiline:!1,allowedFormats:x}),wp.element.createElement(C,{tagName:"p",className:"".concat(g,"__amount"),placeholder:"99",value:o||"",onChange:function(e){return f({amount:e})},keepPlaceholderOnFocus:!0,style:_,multiline:!1,allowedFormats:x}),wp.element.createElement(C,{tagName:"p",className:"".concat(g,"__period"),placeholder:Object(b._x)("/month","Period, placeholder","getwid"),value:a||"",onChange:function(e){return f({period:e})},keepPlaceholderOnFocus:!0,style:_,multiline:!1,allowedFormats:x})),wp.element.createElement(C,{tagName:"ul",className:"".concat(g,"__features"),placeholder:Object(b.__)("Write text…","getwid"),value:l||"",onChange:function(e){return f({features:e})},keepPlaceholderOnFocus:!0,style:_,multiline:"li",allowedFormats:x}),wp.element.createElement(j,{template:[["core/button"]],allowedBlocks:["core/button"],templateInsertUpdatesSelection:!1,templateLock:"all"})))}}]),t}(k);t.a=y([S("backgroundColor",{textColor:"color"})])(P)},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=m()(e);if(t()){var o=m()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p()(this,n)}}var o=n(2),i=n.n(o),a=n(4),l=n.n(a),c=n(5),s=n.n(c),u=n(6),p=n.n(u),d=n(3),m=n.n(d),g=(n(0),n(1)),f=(n.n(g),n(16)),b=wp.element.Component,w=wp.components,h=w.SelectControl,v=w.PanelBody,y=wp.blockEditor||wp.editor,_=y.InspectorControls,k=function(e){function t(){return i()(this,t),n.apply(this,arguments)}s()(t,e);var n=r(t);return l()(t,[{key:"render",value:function(){var e=this.props.attributes.headerTag,t=this.props,n=t.setAttributes,r=t.backgroundColor,o=t.textColor,i=t.customBackgroundColor,a=t.customTextColor,l=t.setBackgroundColor,c=t.setTextColor;return wp.element.createElement(_,null,wp.element.createElement(v,{title:Object(g.__)("Settings","getwid"),initialOpen:!0},wp.element.createElement(h,{label:Object(g.__)("Title Tag","getwid"),value:e,options:[{value:"p",label:Object(g.__)("Paragraph","getwid")},{value:"h2",label:Object(g.__)("Heading 2","getwid")},{value:"h3",label:Object(g.__)("Heading 3","getwid")},{value:"h4",label:Object(g.__)("Heading 4","getwid")},{value:"h5",label:Object(g.__)("Heading 5","getwid")},{value:"h6",label:Object(g.__)("Heading 6","getwid")}],onChange:function(e){return n({headerTag:e})}}),wp.element.createElement(f.a,{colorSettings:[{title:Object(g.__)("Text Color","getwid"),colors:{customColor:a,defaultColor:o},changeColor:c},{title:Object(g.__)("Background Color","getwid"),colors:{customColor:i,defaultColor:r},changeColor:l}]})))}}]),t}(b);t.a=k},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=f()(e);if(t()){var o=f()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var o=n(7),i=n.n(o),a=n(2),l=n.n(a),c=n(4),s=n.n(c),u=n(5),p=n.n(u),d=n(6),m=n.n(d),g=n(3),f=n.n(g),b=(n(0),n(8)),w=n.n(b),h=wp.element,v=h.Component,y=h.Fragment,_=wp.blockEditor||wp.editor,k=_.RichText,O=_.getColorClassName,E=_.InnerBlocks,C=function(e){function t(){return l()(this,t),n.apply(this,arguments)}p()(t,e);var n=r(t);return s()(t,[{key:"render",value:function(){var e,t=this.props,n=t.className,r=t.baseClass,o=this.props.attributes,a=o.title,l=o.currency,c=o.amount,s=o.period,u=o.features,p=o.headerTag,d=this.props.attributes,m=d.backgroundColor,g=d.textColor,f=d.customBackgroundColor,b=d.customTextColor,h=O("color",g),v=O("background-color",m),_={className:w()("".concat(n),(e={"has-background":m||f},i()(e,v,v),i()(e,"has-text-color",g||b),i()(e,h,h),e)),style:{backgroundColor:m?void 0:f,color:void 0!==g?void 0:b}};return wp.element.createElement(y,null,wp.element.createElement("div",_,a&&wp.element.createElement(k.Content,{tagName:p,className:"".concat(r,"__title"),value:a}),function(){return l||c||s?wp.element.createElement("div",{className:"".concat(r,"__pricing")},l&&wp.element.createElement(k.Content,{tagName:"p",className:"".concat(r,"__currency"),value:l}),c&&wp.element.createElement(k.Content,{tagName:"p",className:"".concat(r,"__amount"),value:c}),s&&wp.element.createElement(k.Content,{tagName:"p",className:"".concat(r,"__period"),value:s})):null}(),u&&wp.element.createElement(k.Content,{tagName:"ul",className:"".concat(r,"__features"),value:u}),wp.element.createElement(E.Content,null)))}}]),t}(v);t.a=C},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=f()(e);if(t()){var o=f()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var o=n(7),i=n.n(o),a=n(2),l=n.n(a),c=n(4),s=n.n(c),u=n(5),p=n.n(u),d=n(6),m=n.n(d),g=n(3),f=n.n(g),b=(n(0),n(8)),w=n.n(b),h=wp.element,v=h.Component,y=h.Fragment,_=wp.blockEditor||wp.editor,k=_.RichText,O=_.getColorClassName,E=_.InnerBlocks,C=function(e){function t(){return l()(this,t),n.apply(this,arguments)}p()(t,e);var n=r(t);return s()(t,[{key:"render",value:function(){var e,t=this.props,n=t.className,r=t.baseClass,o=this.props.attributes,a=o.title,l=o.currency,c=o.amount,s=o.period,u=o.features,p=o.headerTag,d=this.props.attributes,m=d.backgroundColor,g=d.textColor,f=d.customBackgroundColor,b=d.customTextColor,h=O("color",g),v=O("background-color",m),_={color:void 0!==g?void 0:b},C={className:w()("".concat(n),(e={"has-background":m||f},i()(e,v,v),i()(e,"has-text-color",g||b),i()(e,h,h),e)),style:{backgroundColor:m?void 0:f}};return wp.element.createElement(y,null,wp.element.createElement("div",C,a&&wp.element.createElement(k.Content,{tagName:p,className:"".concat(r,"__title"),value:a,style:_}),function(){return l||c||s?wp.element.createElement("div",{className:"".concat(r,"__pricing")},l&&wp.element.createElement(k.Content,{tagName:"p",className:"".concat(r,"__currency"),value:l,style:_}),c&&wp.element.createElement(k.Content,{tagName:"p",className:"".concat(r,"__amount"),value:c,style:_}),s&&wp.element.createElement(k.Content,{tagName:"p",className:"".concat(r,"__period"),value:s,style:_})):null}(),u&&wp.element.createElement(k.Content,{tagName:"ul",className:"".concat(r,"__features"),value:u,style:_}),wp.element.createElement(E.Content,null)))}}]),t}(v);t.a=C},function(e,t){},function(e,t){},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(n,!0).forEach(function(t){a()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var i=n(7),a=n.n(i),l=(n(0),n(1)),c=(n.n(l),n(10)),s=(n.n(c),n(12)),u=n(338),p=n(339),d=n(76),m=n(77),g=n(340),f=n(341),b=(n.n(f),n(342)),w=(n.n(b),wp.blockEditor||wp.editor),h=w.InnerBlocks,v=wp.blocks,y=v.getBlockType,_=(v.createBlock,o(o({title:Object(l.__)("Contact Form","getwid"),category:"getwid-blocks",icon:wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 24 24"},wp.element.createElement("polygon",{points:"9,0 0,0 0,2 9,2 9,0 "}),wp.element.createElement("polygon",{points:"9,4 0,4 0,6 9,6 9,4 "}),wp.element.createElement("polygon",{points:"9,8 0,8 0,10 9,10 9,8 "}),wp.element.createElement("path",{d:"M22,14v8H2v-8H22 M24,12H0v12h24V12L24,12z"}),wp.element.createElement("path",{d:"M11,0v10h13V0H11z M20.18,2L17.5,4.11L14.82,2H20.18z M13,8V3.11l4.5,3.55L22,3.11V8H13z"})),supports:{align:["wide","full"],html:!1,inserter:!Getwid.disabled_blocks.includes("getwid/contact-form")},keywords:[Object(l.__)("email","getwid"),Object(l.__)("message","getwid")],getEditWrapperProps:function(e){var t=e.align;if(["wide","full"].includes(t))return{"data-align":t}},attributes:{align:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},subject:{type:"string"},text:{type:"string",default:"Submit"}}},Object(s.b)("getwid/contact-form",function(e){return wp.element.createElement(g.a,o(o({},e),{},{contactFormClass:"wp-block-getwid-contact-form"}))})),{},{save:function(){return wp.element.createElement(h.Content,null)}})),k={category:"getwid-blocks",parent:["getwid/contact-form"],supports:{multiple:!1,reusable:!1,html:!1},attributes:{label:{type:"string",default:null},required:{type:"boolean",default:!1},placeholder:{type:"string",default:""},id:{type:"string",default:""}},save:function(){return null}},O=function(e){var t=e.attributes,n=e.name;return null===t.label?y(n).title:t.label},E=function(e){return function(t){var n=t.className,r=t.isSelected,i=t.setAttributes,a=O(t);return a=Object(c.isEqual)(a,"Email")?"".concat(a," address"):a,wp.element.createElement(d.a,o(o({},t.attributes),{},{label:a,setAttributes:i,isSelected:r,className:n,type:e}))}},C=function(e){var t=e.className,n=e.isSelected,r=e.setAttributes;return wp.element.createElement(u.a,o(o({},e.attributes),{},{label:O(e),setAttributes:r,isSelected:n,className:t}))},j=[{name:"field-name",settings:o(o({},k),{},{title:Object(l.__)("Name","getwid"),icon:wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"}," ",wp.element.createElement("path",{d:"M12 6c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m0 10c2.7 0 5.8 1.29 6 2H6c.23-.72 3.31-2 6-2m0-12C9.79 4 8 5.79 8 8s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm0 10c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"})," "),edit:E("text")})},{name:"field-email",settings:o(o({},k),{},{title:Object(l.__)("Email","getwid"),icon:wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"}," ",wp.element.createElement("path",{d:"M22 6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6zm-2 0l-8 5-8-5h16zm0 12H4V8l8 5 8-5v10z"})," "),edit:E("email")})},{name:"field-textarea",settings:o(o({},k),{},{title:Object(l.__)("Message","getwid"),icon:wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"}," ",wp.element.createElement("path",{d:"M21 11.01L3 11v2h18zM3 16h12v2H3zM21 6H3v2.01L21 8z"})," "),edit:function(e){return C(e)}})},{name:"captcha",settings:{parent:k.parent,supports:k.supports,category:k.category,title:Object(l.__)("Captcha","getwid"),icon:"shield",attributes:{theme:{type:"string",default:"light"},size:{type:"string"}},edit:function(e){return wp.element.createElement(p.a,o(o({},e),{},{captchaClass:"wp-block-getwid-captcha"}))},save:k.save}}];Object(m.a)("contact-form",_,j)},function(e,t,n){"use strict";var r=(n(0),n(75)),o=n(1),i=(n.n(o),window),a=(i.jQuery,wp.element.Fragment),l=wp.blockEditor||wp.editor,c=l.InspectorControls,s=wp.components,u=s.TextControl,p=s.TextareaControl,d=s.PanelBody,m=function(e){var t=e.className,n=e.required,i=e.label,l=e.setAttributes,s=e.isSelected,m=e.placeholder,g=e.id;return wp.element.createElement(a,null,wp.element.createElement("div",{className:"".concat(t)},wp.element.createElement(p,{label:wp.element.createElement(r.a,{required:n,label:i,setAttributes:l,isSelected:s}),value:m,onChange:function(e){return l({placeholder:e})},title:Object(o.__)("Set the placeholder text","getwid")})),wp.element.createElement(c,null,wp.element.createElement(d,{title:Object(o.__)("Field Settings","getwid")},wp.element.createElement(u,{label:Object(o.__)("ID","getwid"),value:g,onChange:function(e){return l({id:e})}}))))};t.a=m},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=v()(e);if(t()){var o=v()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return w()(this,n)}}var o=n(7),i=n.n(o),a=n(13),l=n.n(a),c=n(2),s=n.n(c),u=n(4),p=n.n(u),d=n(11),m=n.n(d),g=n(5),f=n.n(g),b=n(6),w=n.n(b),h=n(3),v=n.n(h),y=(n(0),n(12)),_=n(1),k=(n.n(_),n(10)),O=(n.n(k),window),E=O.jQuery,C=wp.blockEditor||wp.editor,j=C.InspectorControls,S=wp.element,x=S.Component,P=S.Fragment,T=wp.components,R=T.Button,N=T.TextControl,A=T.Disabled,B=T.PanelBody,D=T.ButtonGroup,M=T.BaseControl,I=T.ExternalLink,L=T.SelectControl,z=function(e){function t(){var e;return s()(this,t),e=n.apply(this,arguments),e.removeRecaptchaAPIScript=e.removeRecaptchaAPIScript.bind(m()(e)),e.manageRecaptchaAPIKey=e.manageRecaptchaAPIKey.bind(m()(e)),e.addRecaptchaAPIScript=e.addRecaptchaAPIScript.bind(m()(e)),e.addCaptchaElement=e.addCaptchaElement.bind(m()(e)),e.deleteCaptchaElement=e.deleteCaptchaElement.bind(m()(e)),e.renderCaptcha=e.renderCaptcha.bind(m()(e)),e.changeState=e.changeState.bind(m()(e)),e.getState=e.getState.bind(m()(e)),e.state={recaptchaSiteKey:""!=Getwid.settings.recaptcha_site_key?Getwid.settings.recaptcha_site_key:"",recaptchaSecretKey:""!=Getwid.settings.recaptcha_secret_key?Getwid.settings.recaptcha_secret_key:"",checkSiteKey:""!=Getwid.settings.recaptcha_site_key?Getwid.settings.recaptcha_site_key:" ",checkSecretKey:""!=Getwid.settings.recaptcha_secret_key?Getwid.settings.recaptcha_secret_key:"",updateCaptcha:!1},e}f()(t,e);var n=r(t);return p()(t,[{key:"manageRecaptchaAPIKey",value:function(e,t){e.preventDefault();var n=this.getState,r=this.changeState,o=this.deleteCaptchaElement,i={action:"getwid_recaptcha_api_key_manage",data:{site_api_key:n("checkSiteKey"),secret_api_key:n("checkSecretKey")},option:t,nonce:Getwid.nonces.recaptcha_v2_contact_form};o(),"set"==t?(Getwid.settings.recaptcha_site_key=n("checkSiteKey"),Getwid.settings.recaptcha_secret_key=n("checkSecretKey")):"delete"==t&&(Getwid.settings.recaptcha_site_key="",Getwid.settings.recaptcha_secret_key=""),r("updateCaptcha",!0),E.post(Getwid.ajax_url,i)}},{key:"renderCaptcha",value:function(){var e=this,t=this.changeState,n=this.getState,r=this.props,o=r.attributes.theme,i=r.baseClass;grecaptcha.ready(function(){var r=E(".".concat(i,"__reCAPTCHA"))[0];e.captchaId=grecaptcha.render(r,{sitekey:n("checkSiteKey"),theme:o}),t("updateCaptcha",!1)})}},{key:"addRecaptchaAPIScript",value:function(){var e=this.addCaptchaElement,t=this.renderCaptcha;e(),Object(y.a)("https://www.google.com/recaptcha/api.js?render=explicit&hl=en",function(e){e.id="reCAPTCHA_api_js",t()})}},{key:"removeRecaptchaAPIScript",value:function(){var e=E("#reCAPTCHA_api_js");e.length&&e.remove();var t=E("script[src*='www.gstatic.com']");t.length&&E.each(t,function(e,t){E(t).remove()}),window.grecaptcha={}}},{key:"addCaptchaElement",value:function(){var e=this.props,t=e.className,n=e.baseClass,r=document.createElement("div");E(r).addClass("".concat(n,"__reCAPTCHA")),E(".".concat(t)).find(".".concat(t,"__wrapper")).after(E(r))}},{key:"deleteCaptchaElement",value:function(){var e=this.props.baseClass;E(".".concat(e,"__reCAPTCHA")).remove()}},{key:"changeState",value:function(e,t){"object"==l()(e)?this.setState(e):"string"==typeof e&&this.setState(i()({},e,t))}},{key:"getState",value:function(e){return this.state[e]}},{key:"componentDidUpdate",value:function(e,t){var n=this.props.attributes.theme,r=this.addCaptchaElement,o=this.renderCaptcha,i=this.getState;e.isSelected===this.props.isSelected&&(!i("updateCaptcha")&&Object(k.isEqual)(n,e.attributes.theme)||(r(),o()))}},{key:"componentDidMount",value:function(){this.addRecaptchaAPIScript()}},{key:"componentWillUnmount",value:function(){this.removeRecaptchaAPIScript()}},{key:"render",value:function(){var e=this.props.attributes.theme,t=this.props,n=t.className,r=t.captchaClass,o=t.setAttributes,i=this.getState,a=this.changeState,l=this.deleteCaptchaElement,c=this.manageRecaptchaAPIKey;return wp.element.createElement(P,null,wp.element.createElement("div",{className:"".concat(n)},wp.element.createElement(A,null,wp.element.createElement("div",{className:"".concat(r,"__wrapper")}))),wp.element.createElement(j,null,wp.element.createElement(B,{title:Object(_.__)("Settings","getwid")},wp.element.createElement(M,null,wp.element.createElement(L,{label:Object(_.__)("Color Theme","getwid"),value:e,onChange:function(e){l(),o({theme:e})},options:[{value:"dark",label:Object(_.__)("Dark","getwid")},{value:"light",label:Object(_.__)("Light","getwid")}]}),wp.element.createElement(N,{label:Object(_.__)("Recaptcha Site Key","getwid"),value:i("checkSiteKey"),onChange:function(e){a("checkSiteKey",e)}}),wp.element.createElement(N,{label:Object(_.__)("Recaptcha Secret Key","getwid"),value:i("checkSecretKey"),onChange:function(e){a("checkSecretKey",e)}})),wp.element.createElement(M,null,wp.element.createElement(D,null,wp.element.createElement(R,{isPrimary:!0,disabled:""==i("checkSiteKey")||""==i("checkSecretKey")||null,onClick:function(e){c(e,"set")}},Object(_.__)("Update","getwid")),wp.element.createElement(R,{isDefault:!0,onClick:function(e){a("checkSiteKey"," "),a("checkSecretKey",""),c(e,"delete")}},Object(_.__)("Delete","getwid")))),wp.element.createElement(M,null,wp.element.createElement(I,{href:"https://www.google.com/recaptcha/intro/v3.html"}," ",Object(_.__)("Get your key.","getwid")," ")))))}}]),t}(x);t.a=z},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=f()(e);if(t()){var o=f()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var o=n(7),i=n.n(o),a=n(2),l=n.n(a),c=n(4),s=n.n(c),u=n(5),p=n.n(u),d=n(6),m=n.n(d),g=n(3),f=n.n(g),b=(n(0),n(1)),w=(n.n(b),n(8)),h=n.n(w),v=n(16),y=wp.compose.compose,_=wp.element,k=_.Component,O=_.Fragment,E=wp.components,C=E.PanelBody,j=E.TextControl,S=wp.blockEditor||wp.editor,x=S.InspectorControls,P=S.InnerBlocks,T=S.RichText,R=S.withColors,N=["getwid/field-name","getwid/field-email","getwid/field-textarea","getwid/captcha","core/paragraph","core/spacer"],A=["core/bold","core/italic","core/link","core/image","core/strikethrough","core/text-color"],B=function(e){function t(){return l()(this,t),n.apply(this,arguments)}p()(t,e);var n=r(t);return s()(t,[{key:"render",value:function(){var e,t=this,n=this.props,r=n.textColor,o=n.backgroundColor,a=this.props,l=a.className,c=a.setTextColor,s=a.setBackgroundColor,u=a.contactFormClass,p=a.customBackgroundColor,d=a.customTextColor,m=h()("wp-block-button__link",(e={"has-background":o.color},i()(e,o.class,o.class),i()(e,"has-text-color",r.color),i()(e,r.class,r.class),e));return wp.element.createElement(O,null,wp.element.createElement("div",{className:"".concat(l)},wp.element.createElement("div",{className:"".concat(u,"__wrapper")},wp.element.createElement(P,{templateInsertUpdatesSelection:!1,allowedBlocks:N,template:[["getwid/field-name",{required:!0}],["getwid/field-email",{required:!0}],["getwid/field-textarea",{required:!0}]]})),wp.element.createElement("div",{className:"wp-block-button"},wp.element.createElement(T,{placeholder:Object(b.__)("Write text…","getwid"),value:this.props.attributes.text,allowedFormats:A,onChange:function(e){return t.props.setAttributes({text:e})},className:m,style:{backgroundColor:o.color,color:r.color},keepPlaceholderOnFocus:!0}))),wp.element.createElement(x,null,wp.element.createElement(C,{title:Object(b.__)("Settings","getwid"),initialOpen:!0},wp.element.createElement(j,{label:Object(b.__)("Subject","getwid"),value:this.props.attributes.subject,onChange:function(e){return t.props.setAttributes({subject:e})}}),wp.element.createElement(v.a,{colorSettings:[{title:Object(b.__)("Button Text Color","getwid"),colors:{customColor:d,defaultColor:r},changeColor:c},{title:Object(b.__)("Button Background Color","getwid"),colors:{customColor:p,defaultColor:o},changeColor:s}]}))))}}]),t}(k);t.a=y([R("backgroundColor",{textColor:"color"})])(B)},function(e,t){},function(e,t){},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(n,!0).forEach(function(t){a()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var i=n(7),a=n.n(i),l=(n(0),n(1)),c=(n.n(l),n(10)),s=(n.n(c),n(12)),u=n(78),p=n(344),d=n(357),m=(n.n(d),wp.blocks),g=m.registerBlockType,f=m.createBlock;g("getwid/post-carousel",o(o({title:Object(l.__)("Post Carousel","getwid"),icon:wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 24 24"},wp.element.createElement("polygon",{points:"16,11 8,11 8,13 16,13 16,11 "}),wp.element.createElement("polygon",{points:"14,15 8,15 8,17 14,17 14,15 "}),wp.element.createElement("polygon",{points:"16,7 8,7 8,9 16,9 16,7 "}),wp.element.createElement("path",{d:"M24,4h-4V2H4v2H0v16h4v2h16v-2h4V4z M2,18V6h2v12H2z M6,20V4h12v16H6z M22,18h-2V6h2V18z"})),category:"getwid-blocks",keywords:[],supports:{inserter:!Getwid.disabled_blocks.includes("getwid/post-carousel")},deprecated:[{attributes:u.a,isEligible:function(e,t){return!0},migrate:function(e){var t=e.sliderArrows,n=e.sliderDots;return o(o({},e),{sliderArrows:Object(c.isEqual)(t,"ouside")?"outside":t,sliderDots:Object(c.isEqual)(n,"ouside")?"outside":n})},save:function(){return null}}],transforms:{to:[{type:"block",blocks:["getwid/custom-post-type"],transform:function(e){return f("getwid/custom-post-type",{postType:"post",postsToShow:e.postsToShow,ignoreSticky:e.ignoreSticky,filterById:e.filterById,taxonomy:e.taxonomy,terms:e.terms,relation:e.relation,order:e.order,orderBy:e.orderBy,align:e.align,metaQuery:e.metaQuery})}},{type:"block",blocks:["getwid/post-slider"],transform:function(e){return f("getwid/post-slider",e)}},{type:"block",blocks:["getwid/recent-posts"],transform:function(e){return f("getwid/recent-posts",{titleTag:e.titleTag,imageSize:e.imageSize,cropImages:e.cropImages,postsToShow:e.postsToShow,showTitle:e.showTitle,showDate:e.showDate,showCategories:e.showCategories,showCommentsCount:e.showCommentsCount,showContent:"none"!=e.showContent,contentLength:e.contentLength,showFeaturedImage:e.showFeaturedImage,order:e.order,orderBy:e.orderBy})}}]},attributes:u.a,getEditWrapperProps:function(e){var t=e.align;if(["wide","full"].includes(t))return{"data-align":t}}},Object(s.b)("getwid/post-carousel",p.a)),{},{save:function(){return null}}))},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(n,!0).forEach(function(t){s()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function i(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=_()(e);if(t()){var o=_()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return v()(this,n)}}var a=n(9),l=n.n(a),c=n(7),s=n.n(c),u=n(2),p=n.n(u),d=n(4),m=n.n(d),g=n(11),f=n.n(g),b=n(5),w=n.n(b),h=n(6),v=n.n(h),y=n(3),_=n.n(y),k=(n(0),n(345)),O=n(356),E=(n.n(O),n(1)),C=(n.n(E),n(10)),j=(n.n(C),window),S=j.jQuery,x=wp,P=x.serverSideRender,T=wp.data.withSelect,R=wp.element,N=R.Component,A=R.Fragment,B=wp.blockEditor||wp.editor,D=B.BlockAlignmentToolbar,M=B.BlockControls,I=wp.components,L=I.Placeholder,z=I.Spinner,V="wp-block-getwid-post-carousel",F=function(e){function t(){var e;return p()(this,t),e=n.apply(this,arguments),e.changeState=e.changeState.bind(f()(e)),e.getState=e.getState.bind(f()(e)),e}w()(t,e);var n=i(t);return m()(t,[{key:"changeState",value:function(e,t){this.setState(s()({},e,t))}},{key:"getState",value:function(e){return this.state[e]}},{key:"destroySlider",value:function(){var e=this.props.clientId;clearInterval(this.waitLoadPosts);var t=S("[data-block='".concat(e,"']")),n=S(".".concat(V,"__wrapper"),t);n.hasClass("slick-initialized")&&n.slick("unslick")}},{key:"initSlider",value:function(){var e=this,t=this.props.attributes,n=t.sliderAutoplaySpeed,r=t.sliderInfinite,o=t.sliderDots,i=this.props.attributes,a=i.sliderAnimationSpeed,l=i.sliderCenterMode,c=i.sliderArrows,s=this.props.attributes,u=s.sliderSlidesToShowDesktop,p=s.sliderSlidesToScroll,d=s.sliderAutoplay;this.waitLoadPosts=setInterval(function(){var t=S("#block-".concat(e.props.clientId)),i=t.find(".".concat(V,"__wrapper"));i.length&&i.hasClass("no-init-slider")&&"function"==typeof i.imagesLoaded&&(i.imagesLoaded().done(function(e){i.not(".slick-initialized").slick({arrows:"none"!=c,dots:"none"!=o,slidesToShow:parseInt(u),slidesToScroll:parseInt(p),autoplaySpeed:parseInt(n),speed:parseInt(a),centerMode:l,autoplay:d,infinite:r,variableWidth:!1,pauseOnHover:!0,adaptiveHeight:!0,fade:!1,rows:0}),i.removeClass("no-init-slider")}),clearInterval(e.waitLoadPosts))},1e3)}},{key:"componentDidMount",value:function(){this.initSlider()}},{key:"componentWillUnmount",value:function(){this.destroySlider()}},{key:"componentDidUpdate",value:function(e,t){Object(C.isEqual)(e.attributes,this.props.attributes)||(this.destroySlider(),this.initSlider())}},{key:"render",value:function(){var e=this.props.attributes.align,t=this.props,n=t.setAttributes,r=t.recentPosts,i=this.changeState,a=this.getState,c=Array.isArray(r)&&r.length;return c?wp.element.createElement(A,null,wp.element.createElement(k.a,l()({},o(o(o({},this.props),{changeState:i}),{getState:a}),{key:"inspector"})),wp.element.createElement(M,null,wp.element.createElement(D,{value:e,controls:["wide","full"],onChange:function(e){n({align:e})}})),wp.element.createElement(P,{block:"getwid/post-carousel",attributes:this.props.attributes})):wp.element.createElement(A,null,wp.element.createElement(k.a,l()({},o(o(o(o({},this.props),{changeState:i}),{getState:a}),{hasPosts:c}),{key:"inspector"})),wp.element.createElement(L,{icon:"admin-post",label:Object(E.__)("Post Carousel","getwid")},Array.isArray(r)?Object(E.__)("No posts found.","getwid"):wp.element.createElement(z,null)))}}]),t}(N);t.a=T(function(e,t){var n=t.attributes,r=n.postsToShow,o=n.order;return{recentPosts:(0,e("core").getEntityRecords)("postType","post",Object(C.pickBy)({order:o,per_page:r},function(e){return!Object(C.isUndefined)(e)}))}})(F)},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=m()(e);if(t()){var o=m()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p()(this,n)}}n.d(t,"a",function(){return R});var o=n(2),i=n.n(o),a=n(4),l=n.n(a),c=n(5),s=n.n(c),u=n(6),p=n.n(u),d=n(3),m=n.n(d),g=(n(0),n(78)),f=n(38),b=n(39),w=n(1),h=(n.n(w),window),v=(h.jQuery,wp.element),y=v.Component,_=(v.Fragment,wp.blockEditor||wp.editor),k=_.InspectorControls,O=wp.components,E=O.SelectControl,C=O.PanelBody,j=(O.RangeControl,O.ToggleControl),S=O.TextControl,x=O.RadioControl,P=O.BaseControl,T=O.Button,R=function(e){function t(){return i()(this,t),n.apply(this,arguments)}s()(t,e);var n=r(t);return l()(t,[{key:"hasSliderSettings",value:function(){var e=this.props.attributes,t=e.sliderSlidesToShowDesktop,n=e.sliderSlidesToShowLaptop,r=e.sliderSlidesToShowTablet,o=e.sliderSlidesToShowMobile,i=e.sliderSlidesToScroll,a=e.sliderAutoplay,l=e.sliderAutoplaySpeed,c=e.sliderInfinite,s=e.sliderAnimationSpeed,u=e.sliderCenterMode,p=e.sliderSpacing;return t!=g.a.sliderSlidesToShowDesktop.default||n!=g.a.sliderSlidesToShowLaptop.default||r!=g.a.sliderSlidesToShowTablet.default||o!=g.a.sliderSlidesToShowMobile.default||i!=g.a.sliderSlidesToScroll.default||a!=g.a.sliderAutoplay.default||l!=g.a.sliderAutoplaySpeed.default||c!=g.a.sliderInfinite.default||s!=g.a.sliderAnimationSpeed.default||u!=g.a.sliderCenterMode.default||p!=g.a.sliderSpacing.default}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.postTemplate,r=t.postsToShow,o=t.offset,i=t.ignoreSticky,a=t.filterById,l=t.excludeById,c=t.excludeCurrentPost,s=t.childPagesCurrentPage,u=t.parentPageId,p=t.postType,d=t.taxonomy,m=t.terms,h=t.relation,v=t.order,y=t.orderBy,_=(t.align,t.sliderSlidesToShowDesktop),O=t.sliderSlidesToShowLaptop,R=t.sliderSlidesToShowTablet,N=t.sliderSlidesToShowMobile,A=t.sliderSlidesToScroll,B=t.sliderAutoplay,D=t.sliderAutoplaySpeed,M=t.sliderInfinite,I=t.sliderAnimationSpeed,L=t.sliderCenterMode,z=t.sliderSpacing,V=t.sliderArrows,F=t.sliderDots,H=t.metaQuery,G=e.setAttributes,W=(e.changeState,e.getState,function(){G({sliderSlidesToShowDesktop:g.a.sliderSlidesToShowDesktop.default,sliderSlidesToShowLaptop:g.a.sliderSlidesToShowLaptop.default,sliderSlidesToShowTablet:g.a.sliderSlidesToShowTablet.default,sliderSlidesToShowMobile:g.a.sliderSlidesToShowMobile.default,sliderSlidesToScroll:g.a.sliderSlidesToScroll.default,sliderAutoplay:g.a.sliderAutoplay.default,sliderAutoplaySpeed:g.a.sliderAutoplaySpeed.default,sliderInfinite:g.a.sliderInfinite.default,sliderAnimationSpeed:g.a.sliderAnimationSpeed.default,sliderCenterMode:g.a.sliderCenterMode.default,sliderSpacing:g.a.sliderSpacing.default})});return wp.element.createElement(k,null,wp.element.createElement(C,{title:Object(w.__)("Content Settings","getwid"),initialOpen:!0},wp.element.createElement(f.a,{setValues:G,options:["sticky","parentFilter"],values:{postsToShow:r,offset:o,ignoreSticky:i,filterById:a,excludeById:l,excludeCurrentPost:c,childPagesCurrentPage:s,parentPageId:u,postType:p,taxonomy:d,terms:m,relation:h,order:v,orderBy:y,metaQuery:H},onChangeCallback:function(e,t){}})),wp.element.createElement(C,{title:Object(w.__)("Display Settings","getwid"),initialOpen:!1},wp.element.createElement(b.a,{setValues:G,values:{postTemplate:n},onChangeCallback:function(e,t){}}),wp.element.createElement(S,{label:Object(w.__)("Slides on Desktop","getwid"),type:"number",value:_,onChange:function(e){return G({sliderSlidesToShowDesktop:e.toString()})},min:1,max:10,step:1}),wp.element.createElement(S,{disabled:!(parseInt(_,10)>1)||null,label:Object(w.__)("Slides on Laptop","getwid"),type:"number",value:parseInt(O,10),min:1,max:10,step:1,onChange:function(e){return G({sliderSlidesToShowLaptop:e.toString()})}}),wp.element.createElement(S,{disabled:!(parseInt(_,10)>1)||null,label:Object(w.__)("Slides on Tablet","getwid"),type:"number",value:parseInt(R,10),min:1,max:10,step:1,onChange:function(e){return G({sliderSlidesToShowTablet:e.toString()})}}),wp.element.createElement(S,{disabled:!(parseInt(_,10)>1)||null,label:Object(w.__)("Slides on Mobile","getwid"),type:"number",value:parseInt(N,10),min:1,max:10,step:1,onChange:function(e){return G({sliderSlidesToShowMobile:e.toString()})}}),wp.element.createElement(S,{disabled:!(parseInt(_,10)>1)||null,label:Object(w.__)("Slides to Scroll","getwid"),type:"number",value:parseInt(A,10),min:1,max:10,step:1,onChange:function(e){return G({sliderSlidesToScroll:e.toString()})}}),wp.element.createElement(j,{label:Object(w.__)("Enable Slideshow","getwid"),checked:B,onChange:function(){G({sliderAutoplay:!B})}}),!!B&&wp.element.createElement(S,{label:Object(w.__)("Slideshow Speed","getwid"),type:"number",value:D,min:0,onChange:function(e){return G({sliderAutoplaySpeed:e})}}),wp.element.createElement(j,{label:Object(w.__)("Infinite","getwid"),checked:M,onChange:function(){G({sliderInfinite:!M})}}),wp.element.createElement(S,{label:Object(w.__)("Animation Speed","getwid"),type:"number",value:I,min:0,onChange:function(e){return G({sliderAnimationSpeed:e})}}),wp.element.createElement(j,{label:Object(w.__)("Center Mode","getwid"),checked:L,onChange:function(){G({sliderCenterMode:!L})}}),parseInt(_,10)>1&&wp.element.createElement(E,{label:Object(w.__)("Spacing","getwid"),value:z,onChange:function(e){return G({sliderSpacing:e})},options:[{value:"none",label:Object(w.__)("None","getwid")},{value:"small",label:Object(w.__)("Small","getwid")},{value:"normal",label:Object(w.__)("Medium","getwid")},{value:"large",label:Object(w.__)("Large","getwid")},{value:"huge",label:Object(w.__)("Huge","getwid")}]}),wp.element.createElement(P,null,wp.element.createElement(T,{isLink:!0,onClick:W,disabled:!this.hasSliderSettings()},Object(w.__)("Reset","getwid"))),wp.element.createElement(C,{title:Object(w.__)("Controls Settings","getwid"),initialOpen:!1},wp.element.createElement(x,{label:Object(w.__)("Arrows","getwid"),selected:V,options:[{value:"outside",label:Object(w.__)("Outside","getwid")},{value:"inside",label:Object(w.__)("Inside","getwid")},{value:"none",label:Object(w.__)("None","getwid")}],onChange:function(e){return G({sliderArrows:e})}}),wp.element.createElement(x,{label:Object(w.__)("Dots","getwid"),selected:F,options:[{value:"outside",label:Object(w.__)("Outside","getwid")},{value:"inside",label:Object(w.__)("Inside","getwid")},{value:"none",label:Object(w.__)("None","getwid")}],onChange:function(e){return G({sliderDots:e})}}))))}}]),t}(y)},function(e,t){},function(e,t,n){"use strict";function r(e){var t=e.help,n=e.instanceId,r=e.label,o=e.multiple,a=void 0!==o&&o,c=e.groups,p=void 0!==c&&c,d=e.size,m=void 0===d?4:d,g=e.onChange,w=e.options,h=void 0===w?[]:w,v=e.className,y=s()(e,["help","instanceId","label","multiple","groups","size","onChange","options","className"]),_="inspector-select-control-".concat(n),k=function(e){if(a){var t=l()(e.target.options).filter(function(e){return e.selected}),n=t.map(function(e){return e.value});return void g(n)}g(e.target.value)};return!Object(u.isEmpty)(h)&&wp.element.createElement(f,{label:r,id:_,help:t,className:v},wp.element.createElement("select",i()({id:_,className:"components-select-control__input",onChange:k,"aria-describedby":t?"".concat(_,"__help"):void 0,multiple:a,size:m},y),function(){return p?wp.element.createElement(b,null,Object(u.map)(h,function(e,t){return wp.element.createElement(b,null,wp.element.createElement("optgroup",{label:"".concat(e.group_name)},Object(u.map)(e.group_value,function(e,n){return wp.element.createElement("option",{key:"".concat(e.label,"-").concat(e.value,"-").concat(t),value:e.value},e.label)})))})):wp.element.createElement(b,null,h.map(function(e,t){return wp.element.createElement("option",{key:"".concat(e.label,"-").concat(e.value,"-").concat(t),value:e.value},e.label)}))}()))}var o=n(9),i=n.n(o),a=n(15),l=n.n(a),c=n(348),s=n.n(c),u=(n(0),n(10)),p=(n.n(u),n(350)),d=(n.n(p),n(1)),m=(n.n(d),window),g=(m.jQuery,wp.compose.withInstanceId),f=wp.components.BaseControl,b=wp.element.Fragment;t.a=g(r)},function(e,t,n){function r(e,t){if(null==e)return{};var n,r,i=o(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var o=n(349);e.exports=r},function(e,t){function n(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}e.exports=n},function(e,t){},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=m()(e);if(t()){var o=m()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p()(this,n)}}var o=n(2),i=n.n(o),a=n(4),l=n.n(a),c=n(5),s=n.n(c),u=n(6),p=n.n(u),d=n(3),m=n.n(d),g=(n(0),n(352)),f=n(1),b=(n.n(f),wp.element.Component),w=wp.components,h=w.ButtonGroup,v=w.Button,y=w.SelectControl,_=function(e){function t(){var e;return i()(this,t),e=n.apply(this,arguments),e.state={relation:e.props.query.relation||"OR"},e}s()(t,e);var n=r(t);return l()(t,[{key:"render",value:function(){var e=this,n=this.props,r=n.query,o=n.parentQuery,i=n.controlClassPrefix,a=n.getControlState,l=n.setControlState,c=(r.children||[]).map(function(e,n){return e.children?wp.element.createElement(t,{query:e,parentQuery:r,getControlState:a,setControlState:l,controlClassPrefix:i}):e.children?void 0:wp.element.createElement(g.a,{query:e,parentQuery:r,controlClassPrefix:i,getControlState:a,setControlState:l})}),s=function(){r.children.push({key:"",compare:"",value:[""],type:""}),l({metaScheme:a("metaScheme")})},u=function(){r.children.push({relation:"AND",children:[]}),l({metaScheme:a("metaScheme")})},p=function(){var e=o.children.indexOf(r);o.children.splice(e,1),l({metaScheme:a("metaScheme")})};return wp.element.createElement("div",{className:["".concat(i,"__custom-condition")]},wp.element.createElement("div",{className:["".concat(i,"__group")]},wp.element.createElement(y,{className:["".concat(i,"__custom-relation")],value:this.state.relation,onChange:function(t){r.relation=t,e.setState({relation:t})},options:[{value:"AND",label:"AND"},{value:"OR",label:"OR"}]}),r!==o&&wp.element.createElement(v,{className:["".concat(i,"__custom-query--btn-close")],onClick:p,icon:"no-alt",iconSize:14})),c,wp.element.createElement(h,{className:["".concat(i,"__custom-btn-condition")]},wp.element.createElement(v,{isDefault:!0,onClick:s},Object(f.__)("Add Condition","getwid")),wp.element.createElement(v,{isDefault:!0,onClick:u},Object(f.__)("Add Group","getwid"))))}}]),t}(b);t.a=_},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=m()(e);if(t()){var o=m()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p()(this,n)}}var o=n(2),i=n.n(o),a=n(4),l=n.n(a),c=n(5),s=n.n(c),u=n(6),p=n.n(u),d=n(3),m=n.n(d),g=(n(0),n(353)),f=n(1),b=(n.n(f),wp.element.Component),w=wp.components,h=w.Button,v=w.SelectControl,y=w.TextControl,_=function(e){function t(){var e;return i()(this,t),e=n.apply(this,arguments),e.state={key:e.props.query.key||"",compare:e.props.query.compare||"",value:e.props.query.value||[""],type:e.props.query.type||""},e}s()(t,e);var n=r(t);return l()(t,[{key:"render",value:function(){var e=this,t=this.props,n=t.query,r=t.parentQuery,o=t.controlClassPrefix,i=t.getControlState,a=t.setControlState,l=n.compare.replace(/ /g,""),c=function(){var e=r.children.indexOf(n);r.children.splice(e,1),a({metaScheme:i("metaScheme")})};return wp.element.createElement("div",{className:["".concat(o,"__custom-query")]},wp.element.createElement(y,{placeholder:Object(f.__)("Key","getwid"),value:n.key,onChange:function(t){n.key=t,e.setState({key:t})}}),wp.element.createElement(v,{className:["".concat(o,"__custom-query--compare")],value:n.compare,onChange:function(t){n.compare=t,e.setState({compare:t})},options:[{value:"",label:Object(f.__)("Compare","getwid")},{value:"=",label:"="},{value:"!=",label:"!="},{value:">",label:">"},{value:">=",label:">="},{value:"<",label:"<"},{value:"<=",label:"<="},{value:"LIKE",label:"LIKE"},{value:"NOT LIKE",label:"NOT LIKE"},{value:"IN",label:"IN"},{value:"NOT IN",label:"NOT IN"},{value:"BETWEEN",label:"BETWEEN"},{value:"NOT BETWEEN",label:"NOT BETWEEN"},{value:"EXISTS",label:"EXISTS"},{value:"NOT EXISTS",label:"NOT EXISTS"},{value:"REGEXP",label:"REGEXP"},{value:"NOT REGEXP",label:"NOT REGEXP"},{value:"RLIKE",label:"RLIKE"}]}),"EXISTS"!=l&&"NOTEXISTS"!=l&&wp.element.createElement(g.a,{placeholder:Object(f.__)("Value","getwid"),arrayData:n.value}),"EXISTS"!=l&&"NOTEXISTS"!=l&&wp.element.createElement(v,{className:["".concat(o,"__custom-query--type")],value:n.type,onChange:function(t){n.type=t,e.setState({type:t})},options:[{value:"",label:Object(f.__)("Type","getwid")},{value:"NUMERIC",label:"NUMERIC"},{value:"DECIMAL",label:"DECIMAL"},{value:"SIGNED",label:"SIGNED"},{value:"UNSIGNED",label:"UNSIGNED"},{value:"CHAR",label:"CHAR"},{value:"BINARY",label:"BINARY"},{value:"DATETIME",label:"DATETIME"},{value:"DATE",label:"DATE"},{value:"TIME",label:"TIME"}]}),wp.element.createElement(h,{className:["".concat(o,"__custom-query--btn-close")],icon:"no-alt",iconSize:14,onClick:c}))}}]),t}(b);t.a=_},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=m()(e);if(t()){var o=m()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p()(this,n)}}var o=n(2),i=n.n(o),a=n(4),l=n.n(a),c=n(5),s=n.n(c),u=n(6),p=n.n(u),d=n(3),m=n.n(d),g=(n(0),n(354)),f=(n.n(g),n(8)),b=n.n(f),w=n(20),h=(n.n(w),wp.element.Component),v=wp.components,y=v.TextControl,_=v.Button,k=function(e){function t(){return i()(this,t),n.apply(this,arguments)}s()(t,e);var n=r(t);return l()(t,[{key:"render",value:function(){var e=this,t="components-getwid-custom-repeater-control",n=this.props,r=n.arrayData,o=n.placeholder,i=r.map(function(n,i){return wp.element.createElement("div",{className:["".concat(t,"__custom-group")],key:i},wp.element.createElement(y,{placeholder:o,value:r[i],onChange:function(t){r[i]=t,e.setState({arrayData:r})}}),0===i?wp.element.createElement(_,{className:["".concat(t,"__add-btn")],onClick:function(){r.push(""),e.setState({arrayData:r})}},"+"):wp.element.createElement(_,{className:["".concat(t,"__remove-btn")],onClick:function(){r.splice(i,1),e.setState({arrayData:r})}},"-"))});return wp.element.createElement("div",{className:b()("components-base-control",t)},i)}}]),t}(h);t.a=k},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(n,!0).forEach(function(t){a()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var i=n(7),a=n.n(i),l=(n(0),n(1)),c=(n.n(l),n(10)),s=(n.n(c),n(79)),u=n(359),p=n(12),d=n(362),m=(n.n(d),wp.blocks),g=m.registerBlockType,f=m.createBlock;g("getwid/post-slider",o(o({title:Object(l.__)("Post Slider","getwid"),icon:wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 24 24"},wp.element.createElement("polygon",{points:"16,4 8,4 8,6 16,6 "}),wp.element.createElement("polygon",{points:"14,12 8,12 8,14 14,14 "}),wp.element.createElement("polygon",{points:"16,8 8,8 8,10 16,10 "}),wp.element.createElement("path",{d:"M18,2v14H6V2H18 M20,0H4v18h16V0L20,0z"}),wp.element.createElement("circle",{cx:"6",cy:"22",r:"2"}),wp.element.createElement("circle",{cx:"12",cy:"22",r:"2"}),wp.element.createElement("circle",{cx:"18",cy:"22",r:"2"})),category:"getwid-blocks",keywords:[],supports:{inserter:!Getwid.disabled_blocks.includes("getwid/post-slider")},deprecated:[{attributes:s.a,isEligible:function(e,t){return!0},migrate:function(e){var t=e.sliderArrows,n=e.sliderDots;return o(o({},e),{sliderArrows:Object(c.isEqual)(t,"ouside")?"outside":t,sliderDots:Object(c.isEqual)(n,"ouside")?"outside":n})},save:function(){return null}}],transforms:{to:[{type:"block",blocks:["getwid/custom-post-type"],transform:function(e){return f("getwid/custom-post-type",{postType:"post",postsToShow:e.postsToShow,ignoreSticky:e.ignoreSticky,filterById:e.filterById,taxonomy:e.taxonomy,terms:e.terms,relation:e.relation,order:e.order,orderBy:e.orderBy,align:e.align,metaQuery:e.metaQuery})}},{type:"block",blocks:["getwid/post-carousel"],transform:function(e){return f("getwid/post-carousel",e)}},{type:"block",blocks:["getwid/recent-posts"],transform:function(e){return f("getwid/recent-posts",{titleTag:e.titleTag,imageSize:e.imageSize,cropImages:e.cropImages,postsToShow:e.postsToShow,showTitle:e.showTitle,showDate:e.showDate,showCategories:e.showCategories,showCommentsCount:e.showCommentsCount,showContent:"none"!=e.showContent,contentLength:e.contentLength,showFeaturedImage:!0,order:e.order,orderBy:e.orderBy})}}]},attributes:s.a,getEditWrapperProps:function(e){var t=e.align;if(["wide","full"].includes(t))return{"data-align":t}}},Object(p.b)("getwid/post-slider",u.a)),{},{save:function(){return null}}))},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(n,!0).forEach(function(t){s()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function i(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=O()(e);if(t()){var o=O()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return _()(this,n)}}var a=n(9),l=n.n(a),c=n(7),s=n.n(c),u=n(13),p=n.n(u),d=n(2),m=n.n(d),g=n(4),f=n.n(g),b=n(11),w=n.n(b),h=n(5),v=n.n(h),y=n(6),_=n.n(y),k=n(3),O=n.n(k),E=(n(0),n(1)),C=(n.n(E),n(10)),j=(n.n(C),n(360)),S=n(361),x=(n.n(S),window),P=x.jQuery,T=wp,R=T.serverSideRender,N=wp.element,A=N.Component,B=N.Fragment,D=wp.components,M=D.Placeholder,I=D.Spinner,L=(D.Disabled,wp.blockEditor||wp.editor),z=L.BlockAlignmentToolbar,V=L.AlignmentToolbar,F=L.BlockControls,H=wp.data.withSelect,G=function(e){function t(){var e;return m()(this,t),e=n.apply(this,arguments),e.changeState=e.changeState.bind(w()(e)),e.getState=e.getState.bind(w()(e)),e}v()(t,e);var n=i(t);return f()(t,[{key:"changeState",value:function(e,t){"object"==p()(e)?this.setState(e):"string"==typeof e&&this.setState(s()({},e,t))}},{key:"getState",value:function(e){return this.state[e]}},{key:"destroySlider",value:function(){var e=this.props.clientId;clearInterval(this.waitLoadPosts);var t=P("[data-block='".concat(e,"']")),n=P(".".concat("wp-block-getwid-post-slider","__content"),t);n.hasClass("slick-initialized")&&n.slick("unslick")}},{key:"initSlider",value:function(){var e=this,t=this.props.attributes,n=t.sliderAnimationEffect,r=t.sliderAnimationSpeed,o=t.sliderAutoplaySpeed,i=t.sliderAutoplay,a=t.sliderInfinite,l=t.sliderArrows,c=t.sliderDots;this.waitLoadPosts=setInterval(function(){var t=P("#block-".concat(e.props.clientId)),s=t.find(".".concat("wp-block-getwid-post-slider","__content"));s.length&&s.hasClass("no-init-slider")&&"function"==typeof s.imagesLoaded&&(s.imagesLoaded().done(function(){s.not(".slick-initialized").slick({arrows:"none"!=l,dots:"none"!=c,autoplay:i,infinite:a,speed:parseInt(r),autoplaySpeed:parseInt(o),fade:"fade"==n,rows:0,slidesToShow:1,slidesToScroll:1,centerMode:!1,variableWidth:!1,pauseOnHover:!0,adaptiveHeight:!0}),s.removeClass("no-init-slider")}),clearInterval(e.waitLoadPosts))},1e3)}},{key:"componentDidMount",value:function(){this.initSlider()}},{key:"componentWillUnmount",value:function(){this.destroySlider()}},{key:"componentDidUpdate",value:function(e,t){Object(C.isEqual)(e.attributes,this.props.attributes)||(this.destroySlider(),this.initSlider())}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.align,r=t.postTemplate,i=t.textAlignment,a=e.setAttributes,c=e.recentPosts,s=this.changeState,u=this.getState,p=Array.isArray(c)&&c.length;return p?wp.element.createElement(B,null,wp.element.createElement(j.a,l()({},o(o(o({},this.props),{changeState:s}),{getState:u}),{key:"inspector"})),wp.element.createElement(F,null,wp.element.createElement(z,{value:n,controls:["wide","full"],onChange:function(e){a({align:e})}}),void 0!==r&&""!=r&&wp.element.createElement(V,{value:i,onChange:function(e){return a({textAlignment:e})}})),wp.element.createElement(R,{block:"getwid/post-slider",attributes:this.props.attributes})):wp.element.createElement(B,null,wp.element.createElement(j.a,l()({},o(o(o(o({},this.props),{changeState:s}),{getState:u}),{hasPosts:p}),{key:"inspector"})),wp.element.createElement(M,{icon:"admin-post",label:Object(E.__)("Post Slider","getwid")},Array.isArray(c)?Object(E.__)("No posts found.","getwid"):wp.element.createElement(I,null)))}}]),t}(A);t.a=H(function(e,t){var n=t.attributes,r=n.postsToShow,o=n.order;return{recentPosts:(0,e("core").getEntityRecords)("postType","post",Object(C.pickBy)({order:o,per_page:r},function(e){return!Object(C.isUndefined)(e)}))}})(G)},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=m()(e);if(t()){var o=m()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p()(this,n)}}n.d(t,"a",function(){return R});var o=n(2),i=n.n(o),a=n(4),l=n.n(a),c=n(5),s=n.n(c),u=n(6),p=n.n(u),d=n(3),m=n.n(d),g=(n(0),n(79)),f=n(17),b=n(38),w=n(39),h=n(1),v=(n.n(h),window),y=(v.jQuery,wp.element),_=y.Component,k=(y.Fragment,wp.blockEditor||wp.editor),O=k.InspectorControls,E=(k.PanelColorSettings,wp.components),C=(E.SelectControl,E.PanelBody),j=(E.RangeControl,E.ToggleControl),S=E.TextControl,x=E.RadioControl,P=E.BaseControl,T=E.Button,R=function(e){function t(){return i()(this,t),n.apply(this,arguments)}s()(t,e);var n=r(t);return l()(t,[{key:"hasSliderSettings",value:function(){var e=this.props.attributes,t=e.sliderAnimationEffect,n=e.sliderAutoplay,r=e.sliderAutoplaySpeed,o=e.sliderInfinite,i=e.sliderAnimationSpeed;return t!=g.a.sliderAnimationEffect.default||n!=g.a.sliderAutoplay.default||r!=g.a.sliderAutoplaySpeed.default||o!=g.a.sliderInfinite.default||i!=g.a.sliderAnimationSpeed.default}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.postTemplate,r=t.postsToShow,o=t.offset,i=t.ignoreSticky,a=t.filterById,l=t.excludeById,c=t.excludeCurrentPost,s=t.childPagesCurrentPage,u=t.parentPageId,p=t.postType,d=t.taxonomy,m=t.terms,v=t.relation,y=t.order,_=t.orderBy,k=t.minHeight,E=(t.align,t.sliderAnimationEffect),R=t.sliderAutoplay,N=t.sliderAutoplaySpeed,A=t.sliderInfinite,B=t.sliderAnimationSpeed,D=t.sliderArrows,M=t.sliderDots,I=t.metaQuery,L=e.setAttributes,z=(e.changeState,e.getState,function(){L({sliderAnimationEffect:g.a.sliderAnimationEffect.default,sliderAutoplay:g.a.sliderAutoplay.default,sliderAutoplaySpeed:g.a.sliderAutoplaySpeed.default,sliderInfinite:g.a.sliderInfinite.default,sliderAnimationSpeed:g.a.sliderAnimationSpeed.default})});return wp.element.createElement(O,null,wp.element.createElement(C,{title:Object(h.__)("Content Settings","getwid"),initialOpen:!0},wp.element.createElement(b.a,{setValues:L,options:["sticky","parentFilter"],values:{postsToShow:r,offset:o,ignoreSticky:i,postType:p,filterById:a,excludeById:l,excludeCurrentPost:c,childPagesCurrentPage:s,parentPageId:u,taxonomy:d,terms:m,relation:v,order:y,orderBy:_,metaQuery:I},onChangeCallback:function(e,t){}})),wp.element.createElement(C,{title:Object(h.__)("Display Settings","getwid"),initialOpen:!1},wp.element.createElement(f.a,{label:Object(h.__)("Slider Minimum Height","getwid"),value:k,units:[{label:"px",value:"px"},{label:"vh",value:"vh"},{label:"vw",value:"vw"},{label:"%",value:"%"}],onChange:function(e){return L({minHeight:e})}}),wp.element.createElement(w.a,{setValues:L,values:{postTemplate:n},onChangeCallback:function(e,t){}}),wp.element.createElement(x,{label:Object(h.__)("Animation Effect","getwid"),selected:E,options:[{value:"slide",label:Object(h.__)("Slide","getwid")},{value:"fade",label:Object(h.__)("Fade","getwid")}],onChange:function(e){return L({sliderAnimationEffect:e})}}),wp.element.createElement(j,{label:Object(h.__)("Enable Slideshow","getwid"),checked:R,onChange:function(){L({sliderAutoplay:!R})}}),!!R&&wp.element.createElement(S,{label:Object(h.__)("Slideshow Speed","getwid"),type:"number",value:N,min:0,onChange:function(e){return L({sliderAutoplaySpeed:e})}}),wp.element.createElement(j,{label:Object(h.__)("Infinite","getwid"),checked:A,onChange:function(){L({sliderInfinite:!A})}}),wp.element.createElement(S,{label:Object(h.__)("Animation Speed","getwid"),type:"number",value:B,min:0,onChange:function(e){return L({sliderAnimationSpeed:e})}}),wp.element.createElement(P,null,wp.element.createElement(T,{isLink:!0,onClick:z,disabled:!this.hasSliderSettings()},Object(h.__)("Reset","getwid"))),wp.element.createElement(C,{title:Object(h.__)("Controls Settings","getwid"),initialOpen:!1},wp.element.createElement(x,{label:Object(h.__)("Arrows","getwid"),selected:D,options:[{value:"outside",label:Object(h.__)("Outside","getwid")},{value:"inside",label:Object(h.__)("Inside","getwid")},{value:"none",label:Object(h.__)("None","getwid")}],onChange:function(e){return L({sliderArrows:e})}}),wp.element.createElement(x,{label:Object(h.__)("Dots","getwid"),selected:M,options:[{value:"outside",label:Object(h.__)("Outside","getwid")},{value:"inside",label:Object(h.__)("Inside","getwid")},{value:"none",label:Object(h.__)("None","getwid")}],onChange:function(e){return L({sliderDots:e})}}))))}}]),t}(_)},function(e,t){},function(e,t){},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(n,!0).forEach(function(t){a()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var i=n(7),a=n.n(i),l=(n(0),n(364)),c=n(365),s=n(12),u=n(368),p=(n.n(u),n(1)),d=(n.n(p),window),m=(d.jQuery,wp.blocks),g=m.registerBlockType,f=m.createBlock;g("getwid/custom-post-type",o(o({title:Object(p.__)("Custom Post Type","getwid"),icon:wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 24 24"},wp.element.createElement("path",{d:"M0,0v10h10V0H0z M8,8H2V2h6V8z"}),wp.element.createElement("rect",{x:"12",y:"2",width:"12",height:"2"}),wp.element.createElement("rect",{x:"12",y:"6",width:"8",height:"2"}),wp.element.createElement("path",{d:"M0,14v10h10V14H0z M8,22H2v-6h6V22z"}),wp.element.createElement("rect",{x:"12",y:"16",width:"12",height:"2"}),wp.element.createElement("rect",{x:"12",y:"20",width:"8",height:"2"})),category:"getwid-blocks",keywords:[],supports:{inserter:!Getwid.disabled_blocks.includes("getwid/custom-post-type")},transforms:{to:[{type:"block",blocks:["getwid/recent-posts"],transform:function(e){return f("getwid/recent-posts",{postsToShow:e.postsToShow,postLayout:e.postLayout,columns:e.columns,order:e.order,orderBy:e.orderBy,showContent:!0,align:e.align})}},{type:"block",blocks:["getwid/post-carousel"],transform:function(e){return f("getwid/post-carousel",{postType:"post",postsToShow:e.postsToShow,ignoreSticky:e.ignoreSticky,filterById:e.filterById,taxonomy:e.taxonomy,terms:e.terms,relation:e.relation,order:e.order,orderBy:e.orderBy,align:e.align,metaQuery:e.metaQuery})}},{type:"block",blocks:["getwid/post-slider"],transform:function(e){return f("getwid/post-slider",{postType:"post",postsToShow:e.postsToShow,ignoreSticky:e.ignoreSticky,filterById:e.filterById,taxonomy:e.taxonomy,terms:e.terms,relation:e.relation,order:e.order,orderBy:e.orderBy,align:e.align,metaQuery:e.metaQuery})}}]},attributes:l.a,getEditWrapperProps:function(e){var t=e.align;if(["wide","full"].includes(t))return{"data-align":t}}},Object(s.b)("getwid/custom-post-type",c.a)),{},{save:function(){return null}}))},function(e,t,n){"use strict";var r={postTemplate:{type:"string"},postsToShow:{type:"number",default:5},offset:{type:"number",default:0},pagination:{type:"boolean",default:!1},ignoreSticky:{type:"boolean",default:!0},filterById:{type:"string"},excludeById:{type:"string"},excludeCurrentPost:{type:"boolean",default:!1},childPagesCurrentPage:{type:"boolean",default:!1},parentPageId:{type:"string"},postType:{type:"string",default:"post"},taxonomy:{type:"array",items:{type:"string"}},terms:{type:"array",items:{type:"string"}},relation:{type:"string",default:"AND"},order:{type:"string",default:"desc"},orderBy:{type:"string",default:"date"},postLayout:{type:"string",default:"list"},columns:{type:"number",default:3},spacing:{type:"string",default:"default"},align:{type:"string"},className:{type:"string"},metaQuery:{type:"array",default:[]}};t.a=r},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(n,!0).forEach(function(t){s()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function i(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=O()(e);if(t()){var o=O()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return _()(this,n)}}var a=n(9),l=n.n(a),c=n(7),s=n.n(c),u=n(13),p=n.n(u),d=n(2),m=n.n(d),g=n(4),f=n.n(g),b=n(11),w=n.n(b),h=n(5),v=n.n(h),y=n(6),_=n.n(y),k=n(3),O=n.n(k),E=(n(0),n(10)),C=(n.n(E),n(366)),j=n(367),S=(n.n(j),n(1)),x=(n.n(S),wp),P=x.serverSideRender,T=wp.element,R=T.Component,N=T.Fragment,A=wp.components,B=A.Placeholder,D=A.Spinner,M=A.Disabled,I=A.ToolbarGroup,L=window,z=(L.jQuery,wp.blockEditor||wp.editor),V=z.BlockAlignmentToolbar,F=z.BlockControls,H=wp.data.withSelect,G=function(e){function t(){var e;return m()(this,t),e=n.apply(this,arguments),e.changeState=e.changeState.bind(w()(e)),e.getState=e.getState.bind(w()(e)),e}v()(t,e);var n=i(t);return f()(t,[{key:"changeState",value:function(e,t){"object"==p()(e)?this.setState(e):"string"==typeof e&&this.setState(s()({},e,t))}},{key:"getState",value:function(e){return this.state[e]}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.align,r=t.postLayout,i=e.setAttributes,a=e.recentPosts,c=(e.className,this.changeState),s=this.getState,u=Array.isArray(a)&&a.length;return u?wp.element.createElement(N,null,wp.element.createElement(C.a,l()({},o(o(o(o({},this.props),{changeState:c}),{getState:s}),{hasPosts:u}),{key:"inspector"})),wp.element.createElement(F,null,wp.element.createElement(V,{value:n,controls:["wide","full"],onChange:function(e){i({align:e})}}),wp.element.createElement(I,{controls:[{icon:"list-view",title:Object(S.__)("List View","getwid"),onClick:function(){return i({postLayout:"list"})},isActive:"list"===r},{icon:"grid-view",title:Object(S.__)("Grid View","getwid"),onClick:function(){return i({postLayout:"grid"})},isActive:"grid"===r}]})),wp.element.createElement(M,null,wp.element.createElement(P,{block:"getwid/custom-post-type",attributes:this.props.attributes}))):wp.element.createElement(N,null,wp.element.createElement(C.a,l()({},o(o(o(o({},this.props),{changeState:c}),{getState:s}),{hasPosts:u}),{key:"inspector"})),wp.element.createElement(B,{icon:"admin-post",label:Object(S.__)("Custom Post Type","getwid")},Array.isArray(a)?Object(S.__)("No posts found.","getwid"):wp.element.createElement(D,null)))}}]),t}(R);t.a=H(function(e,t){var n=t.attributes,r=n.postsToShow,o=n.order;return{recentPosts:(0,e("core").getEntityRecords)("postType","post",Object(E.pickBy)({order:o,per_page:r},function(e){return!Object(E.isUndefined)(e)}))}})(G)},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=m()(e);if(t()){var o=m()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p()(this,n)}}n.d(t,"a",function(){return S});var o=n(2),i=n.n(o),a=n(4),l=n.n(a),c=n(5),s=n.n(c),u=n(6),p=n.n(u),d=n(3),m=n.n(d),g=(n(0),n(38)),f=n(39),b=n(1),w=(n.n(b),window),h=(w.jQuery,wp.element),v=h.Component,y=h.Fragment,_=wp.blockEditor||wp.editor,k=_.InspectorControls,O=wp.components,E=O.SelectControl,C=O.PanelBody,j=O.RangeControl,S=function(e){function t(){return i()(this,t),n.apply(this,arguments)}s()(t,e);var n=r(t);return l()(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.postsToShow,r=t.offset,o=t.pagination,i=t.ignoreSticky,a=t.postTemplate,l=t.filterById,c=t.excludeById,s=t.excludeCurrentPost,u=t.childPagesCurrentPage,p=t.parentPageId,d=t.postType,m=t.taxonomy,w=t.terms,h=t.relation,v=t.order,_=t.orderBy,O=(t.align,t.postLayout),S=t.columns,x=t.spacing,P=t.metaQuery,T=e.setAttributes;e.recentPosts,e.hasPosts,e.changeState,e.getState;return wp.element.createElement(k,null,wp.element.createElement(C,{title:Object(b.__)("Content Settings","getwid"),initialOpen:!0},wp.element.createElement(g.a,{setValues:T,options:["page","sticky","parentFilter"],values:{postsToShow:n,offset:r,pagination:o,ignoreSticky:i,filterById:l,excludeById:c,excludeCurrentPost:s,childPagesCurrentPage:u,parentPageId:p,postType:d,taxonomy:m,terms:w,relation:h,order:v,orderBy:_,metaQuery:P},onChangeCallback:function(e,t){}})),wp.element.createElement(C,{title:Object(b.__)("Display Settings","getwid"),initialOpen:!1},wp.element.createElement(E,{label:Object(b.__)("Layout","getwid"),value:O,onChange:function(e){return T({postLayout:e})},options:[{value:"list",label:Object(b.__)("List","getwid")},{value:"grid",label:Object(b.__)("Grid","getwid")}]}),"grid"===O&&wp.element.createElement(y,null,wp.element.createElement(j,{label:Object(b.__)("Columns","getwid"),value:S,onChange:function(e){return T({columns:e})},min:1,max:6})),wp.element.createElement(E,{label:Object(b.__)("Spacing","getwid"),value:x,onChange:function(e){return T({spacing:e})},options:[{value:"default",label:Object(b.__)("Default","getwid")},{value:"none",label:Object(b.__)("None","getwid")},{value:"small",label:Object(b.__)("Small","getwid")},{value:"medium",label:Object(b.__)("Medium","getwid")},{value:"normal",label:Object(b.__)("Normal","getwid")},{value:"large",label:Object(b.__)("Large","getwid")}]}),wp.element.createElement(f.a,{setValues:T,values:{postTemplate:a},onChangeCallback:function(e,t){}})))}}]),t}(v)},function(e,t){},function(e,t){},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(n,!0).forEach(function(t){a()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var i=n(7),a=n.n(i),l=(n(0),n(370)),c=n(371),s=n(373),u=n(374),p=n(12),d=n(375),m=(n.n(d),n(376)),g=(n.n(m),n(1)),f=(n.n(g),window),b=(f.jQuery,wp.blocks),w=b.registerBlockType,h=b.createBlock;w("getwid/price-list",o(o({title:Object(g.__)("Price List","getwid"),icon:wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 24 24"},wp.element.createElement("rect",{y:"2",width:"15",height:"2"}),wp.element.createElement("rect",{y:"6",width:"10",height:"2"}),wp.element.createElement("path",{d:"M24,2h-2V1h-2v1l0,0c-1.1,0-2,0.9-2,2v0.99C18,6.1,18.9,7,20.01,7L22,7.01V8h-4v2h2v1h2v-1h-0.02C23.09,10,24,9.09,24,7.98\tV7.01C24,5.9,23.1,5,21.99,5L20,4.99V4h4V2z"}),wp.element.createElement("rect",{y:"14",width:"15",height:"2"}),wp.element.createElement("rect",{y:"18",width:"10",height:"2"}),wp.element.createElement("path",{d:"M24,14h-2v-1h-2v1l0,0c-1.1,0-2,0.9-2,2v0.99C18,18.1,18.9,19,20.01,19L22,19.01V20h-4v2h2v1h2v-1h-0.02\tc1.11,0,2.02-0.91,2.02-2.02v-0.97C24,17.9,23.1,17,21.99,17L20,16.99V16h4V14z"})),category:"getwid-blocks",supports:{align:["wide","full"],inserter:!Getwid.disabled_blocks.includes("getwid/price-list")},keywords:[Object(g.__)("price","getwid"),Object(g.__)("list","getwid")],getEditWrapperProps:function(e){var t=e.align;if(["wide","full"].includes(t))return{"data-align":t}},deprecated:[{attributes:l.a,save:u.a}],attributes:l.a,transforms:{from:[{type:"block",blocks:["core/paragraph"],transform:function(e){return h("getwid/price-list",{title:e.content})}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){return h("core/paragraph",{content:e.title})}},{type:"block",blocks:["getwid/testimonial"],transform:function(e){return h("getwid/testimonial",{imgId:e.id,imgUrl:e.url,title:e.title,subtitle:e.description})}},{type:"block",blocks:["getwid/price-box"],transform:function(e){return h("getwid/price-box",{title:e.title,currency:e.currency,amount:e.amount})}}]}},Object(p.b)("getwid/price-list",function(e){return wp.element.createElement(c.a,o(o({},e),{},{baseClass:"wp-block-getwid-price-list"}))})),{},{save:function(e){return wp.element.createElement(s.a,o(o({},e),{},{baseClass:"wp-block-getwid-price-list"}))}}))},function(e,t,n){"use strict";var r={align:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"},title:{type:"string",source:"html",selector:".wp-block-getwid-price-list__title"},amount:{type:"string",source:"html",selector:".wp-block-getwid-price-list__amount"},currency:{type:"string",source:"html",selector:".wp-block-getwid-price-list__currency"},description:{type:"string",source:"html",selector:".wp-block-getwid-price-list__description"},dotted:{type:"boolean",default:!0},id:{type:"number"},url:{type:"string",source:"attribute",selector:".wp-block-getwid-price-list__image",attribute:"src"},titleTag:{type:"string",default:"p"},currencyPosition:{type:"string",default:"currency-before"}};t.a=r},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=f()(e);if(t()){var o=f()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var o=n(7),i=n.n(o),a=n(2),l=n.n(a),c=n(4),s=n.n(c),u=n(5),p=n.n(u),d=n(6),m=n.n(d),g=n(3),f=n.n(g),b=(n(0),n(372)),w=n(8),h=n.n(w),v=n(1),y=(n.n(v),n(10)),_=(n.n(y),wp.compose.compose),k=wp.element,O=k.Component,E=k.Fragment,C=wp.components,j=C.ToolbarGroup,S=(C.ToolbarItem,C.ToolbarButton),x=wp.blockEditor||wp.editor,P=x.RichText,T=x.withColors,R=x.MediaUploadCheck,N=x.MediaUpload,A=x.BlockControls,B=["core/bold","core/italic","core/link","core/image","core/strikethrough","core/text-color"],D=function(e){function t(){return l()(this,t),n.apply(this,arguments)}p()(t,e);var n=r(t);return s()(t,[{key:"render",value:function(){var e=this.props,t=e.className,n=e.baseClass,r=e.textColor,o=e.setAttributes,a=this.props.attributes,l=a.title,c=a.amount,s=a.currency,u=a.description,p=a.url,d=a.id,m=a.titleTag,g=a.customTextColor,f=a.dotted,w=a.currencyPosition,_=wp.element.createElement(E,null,wp.element.createElement(A,null,wp.element.createElement(j,null,wp.element.createElement(R,null,wp.element.createElement(N,{onSelect:function(e){o({id:Object(y.get)(e,"id"),url:void 0===Object(y.get)(e,["sizes"])?Object(y.get)(e,["url"]):Object.keys(Object(y.get)(e,["sizes"])).includes("thumbnail")?Object(y.get)(e,["sizes","thumbnail","url"]):Object(y.get)(e,["sizes","full","url"])})},allowedTypes:["image"],value:d,render:function(e){var t=e.open;return wp.element.createElement("div",null,wp.element.createElement(S,{className:"components-toolbar__control",label:Object(v.__)("Select Image","getwid"),icon:"format-image",onClick:t}))}})),p&&wp.element.createElement("div",null,wp.element.createElement(S,{className:"components-toolbar__control",label:Object(v.__)("Delete Image","getwid"),icon:"trash",onClick:function(){o({id:void 0,url:void 0})}}))))),k={className:h()("".concat(t),{"has-dots":f})},O={className:h()("".concat(n,"__price-wrapper"),{"has-currency-after":"currency-after"==w,"has-currency-after-space":"currency-after-space"==w,"has-currency-before-space":"currency-before-space"==w})},C={className:h()("".concat(n,"__content-wrapper"),i()({"has-text-color":r.color},r.class,r.class)),style:{color:r.color?r.color:g}};return wp.element.createElement(E,null,_,wp.element.createElement(b.a,this.props),wp.element.createElement("div",k," ",p&&wp.element.createElement("div",{className:"".concat(n,"__image-wrapper")}," ",wp.element.createElement("img",{src:p,alt:"",className:"".concat(n,"__image")})),wp.element.createElement("div",C,wp.element.createElement("div",{className:"".concat(n,"__header")},wp.element.createElement(P,{tagName:m,className:"".concat(n,"__title"),placeholder:Object(v.__)("Write heading…","getwid"),value:l||"",onChange:function(e){o({title:e})},keepPlaceholderOnFocus:!0,multiline:!1,allowedFormats:B}),wp.element.createElement("div",{className:"".concat(n,"__price-line")}),wp.element.createElement("div",O,wp.element.createElement(P,{tagName:m,className:"".concat(n,"__currency"),placeholder:"$",value:s||"",onChange:function(e){o({currency:e})},keepPlaceholderOnFocus:!0,multiline:!1,allowedFormats:B}),wp.element.createElement(P,{tagName:m,className:"".concat(n,"__amount"),placeholder:"19.99",value:c||"",onChange:function(e){o({amount:e})},keepPlaceholderOnFocus:!0,multiline:!1,allowedFormats:B}))),wp.element.createElement(P,{tagName:"p",className:"".concat(n,"__description"),placeholder:Object(v.__)("Write text…","getwid"),value:u||"",onChange:function(e){o({description:e})},keepPlaceholderOnFocus:!0,multiline:!1,allowedFormats:B}))))}}]),t}(O);t.a=_([T("backgroundColor",{textColor:"color"})])(D)},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=m()(e);if(t()){var o=m()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p()(this,n)}}var o=n(2),i=n.n(o),a=n(4),l=n.n(a),c=n(5),s=n.n(c),u=n(6),p=n.n(u),d=n(3),m=n.n(d),g=(n(0),n(1)),f=(n.n(g),n(14)),b=n(16),w=n(10),h=(n.n(w),wp.element.Component),v=wp.blockEditor||wp.editor,y=v.InspectorControls,_=wp.components,k=_.SelectControl,O=_.PanelBody,E=_.CheckboxControl,C=function(e){function t(){return i()(this,t),n.apply(this,arguments)}s()(t,e);var n=r(t);return l()(t,[{key:"render",value:function(){var e=this.props,t=e.textColor,n=e.setTextColor,r=e.setAttributes,o=this.props.attributes,i=o.titleTag,a=o.dotted,l=o.currencyPosition,c=o.url,s=o.id,u=o.customTextColor;return wp.element.createElement(y,null,wp.element.createElement(O,{title:Object(g.__)("Settings","getwid"),initialOpen:!0},wp.element.createElement(f.e,{label:Object(g.__)("Image","getwid"),url:c,id:s,onSelectMedia:function(e){r({id:Object(w.get)(e,"id"),url:void 0===Object(w.get)(e,["sizes"])?Object(w.get)(e,["url"]):Object.keys(Object(w.get)(e,["sizes"])).includes("thumbnail")?Object(w.get)(e,["sizes","thumbnail","url"]):Object(w.get)(e,["sizes","full","url"])})},onRemoveMedia:function(){return r({url:void 0,id:void 0})}}),wp.element.createElement(k,{label:Object(g.__)("Title Tag","getwid"),value:i,options:[{value:"p",label:Object(g.__)("Paragraph","getwid")},{value:"h2",label:Object(g.__)("Heading 2","getwid")},{value:"h3",label:Object(g.__)("Heading 3","getwid")},{value:"h4",label:Object(g.__)("Heading 4","getwid")},{value:"h5",label:Object(g.__)("Heading 5","getwid")},{value:"h6",label:Object(g.__)("Heading 6","getwid")}],onChange:function(e){return r({titleTag:e})}}),wp.element.createElement(k,{label:Object(g.__)("Currency Position","getwid"),value:l,onChange:function(e){return r({currencyPosition:e})},options:[{value:"currency-before",label:Object(g.__)("Before","getwid")},{value:"currency-before-space",label:Object(g.__)("Before with space","getwid")},{value:"currency-after",label:Object(g.__)("After","getwid")},{value:"currency-after-space",label:Object(g.__)("After with space","getwid")}]}),wp.element.createElement(E,{label:Object(g.__)("Divider","getwid"),checked:a,onChange:function(e){return r({dotted:e})}}),wp.element.createElement(b.a,{colorSettings:[{title:Object(g.__)("Colors","getwid"),colors:{customColor:u,defaultColor:t},changeColor:n}]})))}}]),t}(h);t.a=C},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=w()(e);if(t()){var o=w()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f()(this,n)}}var o=n(9),i=n.n(o),a=n(7),l=n.n(a),c=n(2),s=n.n(c),u=n(4),p=n.n(u),d=n(5),m=n.n(d),g=n(6),f=n.n(g),b=n(3),w=n.n(b),h=(n(0),n(8)),v=n.n(h),y=wp.element,_=y.Component,k=y.Fragment,O=wp.blockEditor||wp.editor,E=O.RichText,C=O.getColorClassName,j=function(e){function t(){return s()(this,t),n.apply(this,arguments)}m()(t,e);var n=r(t);return p()(t,[{key:"render",value:function(){var e,t=this.props,n=t.className,r=t.baseClass,o=this.props.attributes,a=o.title,c=o.currency,s=o.amount,u=o.description,p=o.currencyPosition,d=this.props.attributes,m=d.id,g=d.url,f=d.titleTag,b=d.textColor,w=d.customTextColor,h=d.dotted,y=C("color",b),_={className:v()("".concat(n),(e={"has-text-color":b||w},l()(e,y,y),l()(e,"has-dots",h),e))},O={className:v()("".concat(r,"__price-wrapper"),{"has-currency-after":"currency-after"==p,"has-currency-after-space":"currency-after-space"==p,"has-currency-before-space":"currency-before-space"==p})},j={color:void 0==y?w:void 0};return wp.element.createElement(k,null,wp.element.createElement("div",i()({},_,{style:j})," ",g&&wp.element.createElement("div",{className:"".concat(r,"__image-wrapper")},wp.element.createElement("img",{src:g,alt:"",className:"".concat(r,"__image ")+(m?"wp-image-".concat(m):"")})),a||c||s||u?wp.element.createElement("div",{className:"".concat(r,"__content-wrapper")},wp.element.createElement("div",{className:"".concat(r,"__header")},a&&wp.element.createElement(E.Content,{tagName:f,className:"".concat(r,"__title"),value:a}),a&&wp.element.createElement("div",{className:"".concat(r,"__price-line")}),wp.element.createElement("div",O,c&&wp.element.createElement(E.Content,{tagName:f,className:"".concat(r,"__currency"),value:c}),s&&wp.element.createElement(E.Content,{tagName:f,className:"".concat(r,"__amount"),value:s}))),u&&wp.element.createElement(E.Content,{tagName:"p",className:"".concat(r,"__description"),value:u})):null))}}]),t}(_);t.a=j},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=w()(e);if(t()){var o=w()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f()(this,n)}}var o=n(9),i=n.n(o),a=n(7),l=n.n(a),c=n(2),s=n.n(c),u=n(4),p=n.n(u),d=n(5),m=n.n(d),g=n(6),f=n.n(g),b=n(3),w=n.n(b),h=(n(0),n(8)),v=n.n(h),y=wp.element,_=y.Component,k=y.Fragment,O=wp.blockEditor||wp.editor,E=O.RichText,C=O.getColorClassName,j=function(e){function t(){return s()(this,t),n.apply(this,arguments)}m()(t,e);var n=r(t);return p()(t,[{key:"render",value:function(){var e,t=this.props,n=t.className,r=t.baseClass,o=this.props.attributes,a=o.title,c=o.currency,s=o.amount,u=o.description,p=o.currencyPosition,d=this.props.attributes,m=d.id,g=d.url,f=d.titleTag,b=d.textColor,w=d.customTextColor,h=d.dotted,y=C("color",b),_={className:v()("".concat(n),(e={"has-text-color":b||w},l()(e,y,y),l()(e,"has-dots",h),e))},O={className:v()("".concat(r,"__price-wrapper"),{"has-currency-after":"currency-after"==p,"has-currency-after-space":"currency-after-space"==p,"has-currency-before-space":"currency-before-space"==p})},j={color:void 0==y?w:void 0};return wp.element.createElement(k,null,wp.element.createElement("div",i()({},_,{style:j})," ",g&&wp.element.createElement("div",{className:"".concat(r,"__image-wrapper")},wp.element.createElement("img",{src:g,alt:"",className:"".concat(r,"__image ")+(m?"wp-image-".concat(m):null)})),a||c||s||u?wp.element.createElement("div",{className:"".concat(r,"__content-wrapper")},wp.element.createElement("div",{className:"".concat(r,"__header")},a&&wp.element.createElement(E.Content,{tagName:f,className:"".concat(r,"__title"),value:a}),a&&wp.element.createElement("div",{className:"".concat(r,"__price-line")}),wp.element.createElement("div",O,c&&wp.element.createElement(E.Content,{tagName:f,className:"".concat(r,"__currency"),value:c}),s&&wp.element.createElement(E.Content,{tagName:f,className:"".concat(r,"__amount"),value:s}))),u&&wp.element.createElement(E.Content,{tagName:"p",className:"".concat(r,"__description"),value:u})):null))}}]),t}(_);t.a=j},function(e,t){},function(e,t){},function(e,t,n){"use strict";n(378),n(397),n(402),n(407),n(412),n(418),n(424),n(429),n(434),n(439),n(444),n(449),n(454),n(459),n(464)},function(e,t,n){"use strict";n(379),n(384),n(389),n(393)},function(e,t,n){"use strict";var r=(n(0),n(380)),o=n(383),i=(n.n(o),n(1)),a=(n.n(i),window),l=(a.jQuery,wp.blocks),c=l.registerBlockType,s=l.unregisterBlockType,u=wp.blockEditor||wp.editor,p=u.InnerBlocks;c("getwid/template-acf-background-image",{title:Object(i.__)("ACF Background Image","getwid"),icon:"images-alt2",category:Getwid.settings.post_type==Getwid.templates.name?"getwid-acf-blocks":"getwid-blocks",keywords:["acf"],supports:{inserter:Getwid.settings.post_type==Getwid.templates.name},edit:r.a,save:function(){return wp.element.createElement(p.Content,null)}}),""==Getwid.acf_exist&&s("getwid/template-acf-background-image")},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(n,!0).forEach(function(t){s()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function i(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=v()(e);if(t()){var o=v()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return w()(this,n)}}var a=n(9),l=n.n(a),c=n(7),s=n.n(c),u=n(2),p=n.n(u),d=n(4),m=n.n(d),g=n(5),f=n.n(g),b=n(6),w=n.n(b),h=n(3),v=n.n(h),y=(n(0),n(381)),_=n(382),k=(n.n(_),n(8)),O=n.n(k),E=n(21),C=n(1),j=(n.n(C),wp),S=(j.serverSideRender,wp.element),x=S.Component,P=S.Fragment,T=wp.components,R=(T.Disabled,T.Dashicon),N=window,A=(N.jQuery,wp.blockEditor||wp.editor),B=A.InnerBlocks,D=(wp.data.select,E.a.prepareGradientStyle),M=[["core/paragraph"]],I="wp-block-getwid-template-acf-background-image",L=function(e){function t(){return p()(this,t),n.apply(this,arguments)}f()(t,e);var n=i(t);return m()(t,[{key:"render",value:function(){var e,t=this.props,n=t.attributes,r=n.minHeight,i=n.contentMaxWidth,a=n.foregroundOpacity,c=n.foregroundColor,u=n.foregroundFilter,p=n.verticalAlign,d=n.verticalAlignTablet,m=n.verticalAlignMobile,g=n.horizontalAlign,f=n.horizontalAlignTablet,b=n.horizontalAlignMobile,w=n.paddingTopValue,h=n.paddingBottomValue,v=n.paddingLeftValue,_=n.paddingRightValue,k=n.paddingTop,E=n.paddingRight,j=n.paddingBottom,S=n.paddingLeft,x=n.paddingTopTablet,T=n.paddingRightTablet,N=n.paddingBottomTablet,A=n.paddingLeftTablet,L=n.paddingTopMobile,z=n.paddingRightMobile,V=n.paddingBottomMobile,F=n.paddingLeftMobile,H=t.className,G=(t.setAttributes,O()(H,(e={},s()(e,"getwid-padding-top-".concat(k),"custom"!==k&&""!==k),s()(e,"getwid-padding-bottom-".concat(j),"custom"!==j&&""!==j),s()(e,"getwid-padding-left-".concat(S),"custom"!==S&&""!==S),s()(e,"getwid-padding-right-".concat(E),"custom"!==E&&""!==E),s()(e,"getwid-padding-tablet-top-".concat(x),""!==x),s()(e,"getwid-padding-tablet-bottom-".concat(N),""!==N),s()(e,"getwid-padding-tablet-left-".concat(A),""!==A),s()(e,"getwid-padding-tablet-right-".concat(T),""!==T),s()(e,"getwid-padding-mobile-top-".concat(L),""!==L),s()(e,"getwid-padding-mobile-bottom-".concat(V),""!==V),s()(e,"getwid-padding-mobile-left-".concat(F),""!==F),s()(e,"getwid-padding-mobile-right-".concat(z),""!==z),s()(e,"getwid-align-items-".concat(p),"center"!==p),s()(e,"getwid-align-items-tablet-".concat(d),""!==d),s()(e,"getwid-align-items-mobile-".concat(m),""!==m),s()(e,"getwid-justify-content-".concat(g),"center"!==g),s()(e,"getwid-justify-content-tablet-".concat(f),""!==f),s()(e,"getwid-justify-content-mobile-".concat(b),""!==b),e))),W={minHeight:r},U=O()("".concat(I,"__content")),q=o(o(o(o({maxWidth:i},"custom"===k?{paddingTop:w}:[]),"custom"===j?{paddingBottom:h}:[]),"custom"===S?{paddingLeft:v}:[]),"custom"===E?{paddingRight:_}:[]),Q=o(o({backgroundColor:c},D("foreground",this.props)),{},{mixBlendMode:u}),K=O()("".concat(I,"__foreground"),s()({},"getwid-opacity-".concat(a),35!=a));return wp.element.createElement(P,null,wp.element.createElement(y.a,l()({},o({},this.props),{key:"inspector"})),wp.element.createElement("div",{style:W,className:G},wp.element.createElement("div",{className:"components-placeholder editor-media-placeholder wp-block-getwid-template-acf-background-image__image"},wp.element.createElement("div",{className:"components-placeholder__label"},wp.element.createElement(R,{icon:"format-image"})),wp.element.createElement("div",{className:"components-placeholder__instructions"},Object(C.__)("ACF Background Image","getwid"))),wp.element.createElement("div",{className:K,style:Q}),wp.element.createElement("div",{className:U,style:q},wp.element.createElement(B,{template:M,templateInsertUpdatesSelection:!1,templateLock:!1}))))}}]),t}(x);t.a=L},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=m()(e);if(t()){var o=m()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p()(this,n)}}n.d(t,"a",function(){return R});var o=n(2),i=n.n(o),a=n(4),l=n.n(a),c=n(5),s=n.n(c),u=n(6),p=n.n(u),d=n(3),m=n.n(d),g=(n(0),n(17)),f=n(14),b=n(1),w=(n.n(b),window),h=(w.jQuery,wp.element),v=h.Component,y=h.Fragment,_=wp.blockEditor||wp.editor,k=_.InspectorControls,O=_.PanelColorSettings,E=wp.components,C=E.SelectControl,j=E.PanelBody,S=E.RangeControl,x=E.Button,P=E.TabPanel,T=E.TextControl,R=function(e){function t(){return i()(this,t),n.apply(this,arguments)}s()(t,e);var n=r(t);return l()(t,[{key:"renderForegroundSettings",value:function(){var e=this.props,t=e.attributes,n=t.foregroundOpacity,r=t.foregroundColor,o=t.foregroundFilter,i=t.foregroundGradientType,a=t.foregroundGradientFirstColor,l=t.foregroundGradientFirstColorLocation,c=t.foregroundGradientSecondColor,s=t.foregroundGradientSecondColorLocation,u=t.foregroundGradientAngle,p=e.setAttributes,d=function(){p({foregroundGradientType:void 0,foregroundGradientFirstColor:void 0,foregroundGradientFirstColorLocation:void 0,foregroundGradientSecondColor:void 0,foregroundGradientSecondColorLocation:void 0,foregroundGradientAngle:void 0,foregroundGradientCustomEnable:void 0,foregroundGradientCustom:void 0})};return wp.element.createElement(j,{title:Object(b.__)("Overlay","getwid"),initialOpen:!1},wp.element.createElement(S,{label:Object(b.__)("Overlay Layer Opacity","getwid"),value:void 0!==n?n:"",onChange:function(e){return p({foregroundOpacity:e})},min:0,max:100,step:5,allowReset:!0}),wp.element.createElement(C,{label:Object(b.__)("Blend Mode","getwid"),value:void 0!==o?o:"",onChange:function(e){return p({foregroundFilter:e})},options:[{value:"",label:Object(b.__)("None","getwid")},{value:"normal",label:Object(b.__)("Normal","getwid")},{value:"multiply",label:Object(b.__)("Multiply","getwid")},{value:"screen",label:Object(b.__)("Screen","getwid")},{value:"overlay",label:Object(b.__)("Overlay","getwid")},{value:"darken",label:Object(b.__)("Darken","getwid")},{value:"lighten",label:Object(b.__)("Lighten","getwid")},{value:"color-dodge",label:Object(b.__)("Color Dodge","getwid")},{value:"color-burn",label:Object(b.__)("Color Burn","getwid")},{value:"hard-light",label:Object(b.__)("Hard Light","getwid")},{value:"soft-light",label:Object(b.__)("Soft Light","getwid")},{value:"difference",label:Object(b.__)("Difference","getwid")},{value:"exclusion",label:Object(b.__)("Exclusion","getwid")},{value:"hue",label:Object(b.__)("Hue","getwid")},{value:"saturation",label:Object(b.__)("Saturation","getwid")},{value:"color",label:Object(b.__)("Color","getwid")},{value:"luminosity",label:Object(b.__)("Luminosity","getwid")}]}),wp.element.createElement(O,{title:Object(b.__)("Overlay Color","getwid"),colorSettings:[{value:r,onChange:function(e){return p({foregroundColor:e})},label:Object(b.__)("Overlay Color","getwid")}],initialOpen:!1}),wp.element.createElement(j,{title:Object(b.__)("Overlay Gradient","getwid"),initialOpen:!1},wp.element.createElement(C,{value:void 0!==i?i:"",onChange:function(e){return p({foregroundGradientType:e})},options:[{value:"",label:Object(b.__)("None","getwid")},{value:"linear",label:Object(b.__)("Linear","getwid")},{value:"radial",label:Object(b.__)("Radial","getwid")}]}),i&&wp.element.createElement(y,null,wp.element.createElement(x,{isSmall:!0,onClick:d},Object(b.__)("Reset","getwid")),wp.element.createElement(O,{title:Object(b.__)("Gradient Colors","getwid"),colorSettings:[{value:a,onChange:function(e){return p({foregroundGradientFirstColor:e})},label:Object(b.__)("First Color","getwid")},{value:c,onChange:function(e){return p({foregroundGradientSecondColor:e})},label:Object(b.__)("Second Color","getwid")}]}),wp.element.createElement(S,{label:Object(b.__)("First Color Location","getwid"),value:void 0!==l?l:"",onChange:function(e){return p({foregroundGradientFirstColorLocation:e})},placeholder:0,min:0,max:100,step:1}),wp.element.createElement(S,{label:Object(b.__)("Second Color Location","getwid"),value:void 0!==s?s:"",onChange:function(e){return p({foregroundGradientSecondColorLocation:e})},placeholder:100,min:0,max:100,step:1}),"linear"===i&&wp.element.createElement(S,{label:Object(b.__)("Angle","getwid"),value:void 0!==u?u:"",onChange:function(e){return p({foregroundGradientAngle:e})},placeholder:180,min:0,max:360,step:1}))))}},{key:"renderAlignmentSettings",value:function(){var e=this.props.attributes,t=e.verticalAlign,n=e.horizontalAlign,r=e.verticalAlignTablet,o=e.horizontalAlignTablet,i=e.verticalAlignMobile,a=e.horizontalAlignMobile,l=this.props.setAttributes;return wp.element.createElement(j,{title:Object(b.__)("Alignment","getwid"),initialOpen:!1},wp.element.createElement(P,{className:"getwid-editor-tabs",activeClass:"is-active",tabs:[{name:"desktop",title:Object(b.__)("Desktop","getwid"),className:"components-button is-link is-small"},{name:"tablet",title:Object(b.__)("Tablet","getwid"),className:"components-button is-link is-small"},{name:"mobile",title:Object(b.__)("Mobile","getwid"),className:"components-button is-link is-small"}]},function(e){switch(e.name){case"desktop":return wp.element.createElement(y,null,wp.element.createElement(C,{label:Object(b.__)("Vertical Alignment","getwid"),value:void 0!==t?t:"center",onChange:function(e){return l({verticalAlign:e})},options:[{value:"flex-start",label:Object(b.__)("Top","getwid")},{value:"center",label:Object(b.__)("Middle","getwid")},{value:"flex-end",label:Object(b.__)("Bottom","getwid")}]}),wp.element.createElement(C,{label:Object(b.__)("Horizontal Alignment","getwid"),value:void 0!==n?n:"center",onChange:function(e){return l({horizontalAlign:e})},options:[{value:"flex-start",label:Object(b.__)("Left","getwid")},{value:"center",label:Object(b.__)("Center","getwid")},{value:"flex-end",label:Object(b.__)("Right","getwid")}]}));case"tablet":return wp.element.createElement(y,null,wp.element.createElement(C,{label:Object(b.__)("Vertical Alignment","getwid"),value:void 0!==r?r:"center",onChange:function(e){return l({verticalAlignTablet:e})},options:[{value:"",label:Object(b.__)("Default","getwid")},{value:"flex-start",label:Object(b.__)("Top","getwid")},{value:"center",label:Object(b.__)("Middle","getwid")},{value:"flex-end",label:Object(b.__)("Bottom","getwid")}]}),wp.element.createElement(C,{label:Object(b.__)("Horizontal Alignment","getwid"),value:void 0!==o?o:"center",onChange:function(e){return l({horizontalAlignTablet:e})},options:[{value:"",label:Object(b.__)("Default","getwid")},{value:"flex-start",label:Object(b.__)("Left","getwid")},{value:"center",label:Object(b.__)("Center","getwid")},{value:"flex-end",label:Object(b.__)("Right","getwid")}]}));case"mobile":return wp.element.createElement(y,null,wp.element.createElement(C,{label:Object(b.__)("Vertical Alignment","getwid"),value:void 0!==i?i:"center",onChange:function(e){return l({verticalAlignMobile:e})},options:[{value:"",label:Object(b.__)("Default","getwid")},{value:"flex-start",label:Object(b.__)("Top","getwid")},{value:"center",label:Object(b.__)("Middle","getwid")},{value:"flex-end",label:Object(b.__)("Bottom","getwid")}]}),wp.element.createElement(C,{label:Object(b.__)("Horizontal Alignment","getwid"),value:void 0!==a?a:"center",onChange:function(e){return l({horizontalAlignMobile:e})},options:[{value:"",label:Object(b.__)("Default","getwid")},{value:"flex-start",label:Object(b.__)("Left","getwid")},{value:"center",label:Object(b.__)("Center","getwid")},{value:"flex-end",label:Object(b.__)("Right","getwid")}]}))}}))}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.customField,r=t.minHeight,o=t.contentMaxWidth,i=t.imageSize,a=e.setAttributes;e.changeState,e.getState;return wp.element.createElement(k,null,wp.element.createElement(j,{title:Object(b.__)("Settings","getwid")},wp.element.createElement(T,{label:Object(b.__)("Field Name","getwid"),value:n,onChange:function(e){return a({customField:e})}}),wp.element.createElement(g.a,{label:Object(b.__)("Image Height","getwid"),value:r,units:[{label:"px",value:"px"},{label:"vh",value:"vh"},{label:"vw",value:"vw"},{label:"%",value:"%"}],onChange:function(e){return a({minHeight:e})}}),wp.element.createElement(S,{label:Object(b.__)("Content Width","getwid"),value:void 0!==o?o:"",onChange:function(e){a({contentMaxWidth:e})},allowReset:!0,min:0,max:2e3,step:1}),wp.element.createElement(C,{label:Object(b.__)("Image Size","getwid"),help:Object(b.__)("For images from Media Library only.","getwid"),value:i,onChange:function(e){a({imageSize:e})},options:Getwid.settings.image_sizes})),this.renderAlignmentSettings(),Object(f.g)(this),this.renderForegroundSettings())}}]),t}(v)},function(e,t){},function(e,t){},function(e,t,n){"use strict";var r=n(385),o=n(388),i=(n.n(o),n(1)),a=(n.n(i),window),l=(a.jQuery,wp.blocks),c=l.registerBlockType,s=l.unregisterBlockType;c("getwid/template-acf-image",{title:Object(i.__)("ACF Image","getwid"),icon:"format-image",category:Getwid.settings.post_type==Getwid.templates.name?"getwid-acf-blocks":"getwid-blocks",keywords:["acf"],supports:{inserter:Getwid.settings.post_type==Getwid.templates.name},getEditWrapperProps:function(e){var t=e.align;if(["left","center","right"].includes(t))return{"data-align":t}},edit:r.a,save:function(){return null}}),""==Getwid.acf_exist&&s("getwid/template-acf-image")},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(n,!0).forEach(function(t){s()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function i(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=v()(e);if(t()){var o=v()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return w()(this,n)}}var a=n(9),l=n.n(a),c=n(7),s=n.n(c),u=n(2),p=n.n(u),d=n(4),m=n.n(d),g=n(5),f=n.n(g),b=n(6),w=n.n(b),h=n(3),v=n.n(h),y=(n(0),n(386)),_=n(8),k=n.n(_),O=n(387),E=(n.n(O),n(1)),C=(n.n(E),wp),j=(C.serverSideRender,wp.element),S=j.Component,x=j.Fragment,P=wp.components,T=(P.Disabled,P.Dashicon),R=window,N=(R.jQuery,wp.blockEditor||wp.editor),A=N.BlockAlignmentToolbar,B=N.BlockControls,D=(wp.data.select,function(e){function t(){return p()(this,t),n.apply(this,arguments)}f()(t,e);var n=i(t);return m()(t,[{key:"render",value:function(){var e=this.props,t=e.attributes.align,n=e.className,r=e.setAttributes,i=k()(n,t?"align".concat(t):null);return wp.element.createElement(x,null,wp.element.createElement(y.a,l()({},o({},this.props),{key:"inspector"})),wp.element.createElement(B,null,wp.element.createElement(A,{value:t,controls:["left","center","right"],onChange:function(e){r({align:e})}})),wp.element.createElement("div",{className:i},wp.element.createElement("div",{className:"components-placeholder editor-media-placeholder"},wp.element.createElement("div",{className:"components-placeholder__label"},wp.element.createElement(T,{icon:"format-image"})),wp.element.createElement("div",{className:"components-placeholder__instructions"},Object(E.__)("ACF Image","getwid")))))}}]),t}(S));t.a=D},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=m()(e);if(t()){var o=m()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p()(this,n)}}n.d(t,"a",function(){return O});var o=n(2),i=n.n(o),a=n(4),l=n.n(a),c=n(5),s=n.n(c),u=n(6),p=n.n(u),d=n(3),m=n.n(d),g=(n(0),n(1)),f=(n.n(g),window),b=(f.jQuery,wp.element.Component),w=wp.blockEditor||wp.editor,h=w.InspectorControls,v=wp.components,y=v.PanelBody,_=v.TextControl,k=v.SelectControl,O=function(e){function t(){return i()(this,t),n.apply(this,arguments)}s()(t,e);var n=r(t);return l()(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.customField,r=t.linkTo,o=t.imageSize,i=e.setAttributes;return wp.element.createElement(h,null,wp.element.createElement(y,{title:Object(g.__)("Settings","getwid")},wp.element.createElement(_,{label:Object(g.__)("Field Name","getwid"),value:n,onChange:function(e){return i({customField:e})}}),wp.element.createElement(k,{label:Object(g.__)("Link to","getwid"),value:r,onChange:function(e){return i({linkTo:e})},options:[{value:"none",label:Object(g.__)("None","getwid")},{value:"post",label:Object(g.__)("Post","getwid")}]}),wp.element.createElement(k,{label:Object(g.__)("Image Size","getwid"),help:Object(g.__)("For images from Media Library only.","getwid"),value:o,onChange:function(e){i({imageSize:e})},options:Getwid.settings.image_sizes})))}}]),t}(b)},function(e,t){},function(e,t){},function(e,t,n){"use strict";var r=n(390),o=n(392),i=(n.n(o),n(1)),a=(n.n(i),window),l=(a.jQuery,wp.blocks),c=l.registerBlockType,s=l.unregisterBlockType;c("getwid/template-acf-select",{title:Object(i.__)("ACF Select","getwid"),category:Getwid.settings.post_type==Getwid.templates.name?"getwid-acf-blocks":"getwid-blocks",keywords:["acf"],supports:{inserter:Getwid.settings.post_type==Getwid.templates.name},edit:r.a,save:function(){return null}}),""==Getwid.acf_exist&&s("getwid/template-acf-select")},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(n,!0).forEach(function(t){s()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function i(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=v()(e);if(t()){var o=v()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return w()(this,n)}}var a=n(9),l=n.n(a),c=n(7),s=n.n(c),u=n(2),p=n.n(u),d=n(4),m=n.n(d),g=n(5),f=n.n(g),b=n(6),w=n.n(b),h=n(3),v=n.n(h),y=(n(0),n(391)),_=n(8),k=n.n(_),O=n(1),E=(n.n(O),wp),C=(E.serverSideRender,wp.element),j=C.Component,S=C.Fragment,x=wp.components,P=(x.Disabled,x.Toolbar),T=x.withFallbackStyles,R=window,N=(R.jQuery,wp.blockEditor||wp.editor),A=(N.BlockAlignmentToolbar,N.AlignmentToolbar),B=N.BlockControls,D=N.withColors,M=N.withFontSizes,I=(wp.data.select,wp.compose.compose),L=window,z=L.getComputedStyle,V=T(function(e,t){var n=t.attributes,r=n.textColor,o=n.backgroundColor,i=n.fontSize,a=n.customFontSize,l=e.querySelector('[contenteditable="true"]'),c=l?z(l):null;return{fallbackBackgroundColor:o||!c?void 0:c.backgroundColor,fallbackTextColor:r||!c?void 0:c.color,fallbackFontSize:i||a||!c?void 0:parseInt(c.fontSize)||void 0}}),F=function(e){function t(){return p()(this,t),n.apply(this,arguments)}f()(t,e);var n=i(t);return m()(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.textAlignment,r=t.bold,i=t.italic,a=e.textColor,c=e.fontSize,u=e.className,p=e.setAttributes;return wp.element.createElement(S,null,wp.element.createElement(y.a,l()({},o({},this.props),{key:"inspector"})),wp.element.createElement(B,null,wp.element.createElement(A,{value:n,onChange:function(e){return p({textAlignment:e})}}),wp.element.createElement(P,{controls:[{icon:"editor-bold",title:Object(O.__)("Bold","getwid"),isActive:r,onClick:function(){p({bold:!r})}},{icon:"editor-italic",title:Object(O.__)("Italic","getwid"),isActive:i,onClick:function(){p({italic:!i})}}]})),wp.element.createElement("div",{className:k()(u,s()({},c.class,c.class)),style:{color:a.color,textAlign:n,fontWeight:r?"bold":void 0,fontStyle:i?"italic":void 0,fontSize:c.size?c.size+"px":void 0}},Object(O.__)("ACF Select","getwid")))}}]),t}(j);t.a=I([D("backgroundColor",{textColor:"color"}),M("fontSize"),V])(F)},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=m()(e);if(t()){var o=m()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p()(this,n)}}n.d(t,"a",function(){return E});var o=n(2),i=n.n(o),a=n(4),l=n.n(a),c=n(5),s=n.n(c),u=n(6),p=n.n(u),d=n(3),m=n.n(d),g=(n(0),n(1)),f=(n.n(g),window),b=(f.jQuery,wp.element.Component),w=wp.blockEditor||wp.editor,h=w.PanelColorSettings,v=w.InspectorControls,y=w.FontSizePicker,_=wp.components,k=_.PanelBody,O=_.TextControl,E=function(e){function t(){return i()(this,t),n.apply(this,arguments)}s()(t,e);var n=r(t);return l()(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.customField,r=t.labelName,o=t.separator,i=e.textColor,a=e.setTextColor,l=e.fontSize,c=e.setFontSize,s=e.fallbackFontSize,u=e.setAttributes;return wp.element.createElement(v,null,wp.element.createElement(k,{title:Object(g.__)("Settings","getwid")},wp.element.createElement(O,{label:Object(g.__)("Field Name","getwid"),value:n,onChange:function(e){return u({customField:e})}}),wp.element.createElement(O,{label:Object(g.__)("Label","getwid"),value:void 0!==r?r:"",onChange:function(e){return u({labelName:e})}}),wp.element.createElement(O,{label:Object(g.__)("Separator","getwid"),help:Object(g.__)("For multiple values.","getwid"),value:void 0!==o?o:",",onChange:function(e){return u({separator:e})}}),wp.element.createElement(y,{fallbackFontSize:s,value:l.size,onChange:c}),wp.element.createElement(h,{title:Object(g.__)("Text Color","getwid"),colorSettings:[{value:i.color,onChange:a,label:Object(g.__)("Text Color","getwid")}]})))}}]),t}(b)},function(e,t){},function(e,t,n){"use strict";var r=n(394),o=n(396),i=(n.n(o),n(1)),a=(n.n(i),window),l=(a.jQuery,wp.blocks),c=l.registerBlockType,s=l.unregisterBlockType;c("getwid/template-acf-wysiwyg",{title:Object(i.__)("ACF Wysiwyg","getwid"),icon:"text",category:Getwid.settings.post_type==Getwid.templates.name?"getwid-acf-blocks":"getwid-blocks",keywords:["acf"],supports:{inserter:Getwid.settings.post_type==Getwid.templates.name},edit:r.a,save:function(){return null}}),""==Getwid.acf_exist&&s("getwid/template-acf-wysiwyg")},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(n,!0).forEach(function(t){s()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function i(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=v()(e);if(t()){var o=v()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return w()(this,n)}}var a=n(9),l=n.n(a),c=n(7),s=n.n(c),u=n(2),p=n.n(u),d=n(4),m=n.n(d),g=n(5),f=n.n(g),b=n(6),w=n.n(b),h=n(3),v=n.n(h),y=(n(0),n(395)),_=n(8),k=n.n(_),O=n(1),E=(n.n(O),wp),C=(E.serverSideRender,wp.element),j=C.Component,S=C.Fragment,x=wp.components,P=(x.Disabled,x.Toolbar),T=x.withFallbackStyles,R=window,N=(R.jQuery,wp.blockEditor||wp.editor),A=(N.BlockAlignmentToolbar,N.AlignmentToolbar),B=N.BlockControls,D=N.withColors,M=N.withFontSizes,I=(wp.data.select,wp.compose.compose),L=window,z=L.getComputedStyle,V=T(function(e,t){var n=t.attributes,r=n.textColor,o=n.backgroundColor,i=n.fontSize,a=n.customFontSize,l=e.querySelector('[contenteditable="true"]'),c=l?z(l):null;return{fallbackBackgroundColor:o||!c?void 0:c.backgroundColor,fallbackTextColor:r||!c?void 0:c.color,fallbackFontSize:i||a||!c?void 0:parseInt(c.fontSize)||void 0}}),F=function(e){function t(){return p()(this,t),n.apply(this,arguments)}f()(t,e);var n=i(t);return m()(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.textAlignment,r=t.bold,i=t.italic,a=e.textColor,c=e.fontSize,u=e.className,p=e.setAttributes;return wp.element.createElement(S,null,wp.element.createElement(y.a,l()({},o({},this.props),{key:"inspector"})),wp.element.createElement(B,null,wp.element.createElement(A,{value:n,onChange:function(e){return p({textAlignment:e})}}),wp.element.createElement(P,{controls:[{icon:"editor-bold",title:Object(O.__)("Bold","getwid"),isActive:r,onClick:function(){p({bold:!r})}},{icon:"editor-italic",title:Object(O.__)("Italic","getwid"),isActive:i,onClick:function(){p({italic:!i})}}]})),wp.element.createElement("div",{className:k()(u,s()({},c.class,c.class)),style:{color:a.color,textAlign:n,fontWeight:r?"bold":void 0,fontStyle:i?"italic":void 0,fontSize:c.size?c.size+"px":void 0}},Object(O.__)("ACF Wysiwyg","getwid")))}}]),t}(j);t.a=I([D("backgroundColor",{textColor:"color"}),M("fontSize"),V])(F)},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=m()(e);if(t()){var o=m()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p()(this,n)}}n.d(t,"a",function(){return E});var o=n(2),i=n.n(o),a=n(4),l=n.n(a),c=n(5),s=n.n(c),u=n(6),p=n.n(u),d=n(3),m=n.n(d),g=(n(0),n(1)),f=(n.n(g),window),b=(f.jQuery,wp.element.Component),w=wp.blockEditor||wp.editor,h=w.PanelColorSettings,v=w.InspectorControls,y=w.FontSizePicker,_=wp.components,k=_.PanelBody,O=_.TextControl,E=function(e){function t(){return i()(this,t),n.apply(this,arguments)}s()(t,e);var n=r(t);return l()(t,[{key:"render",value:function(){var e=this.props,t=e.attributes.customField,n=e.textColor,r=e.setTextColor,o=e.fontSize,i=e.setFontSize,a=e.fallbackFontSize,l=e.setAttributes;return wp.element.createElement(v,null,wp.element.createElement(k,{title:Object(g.__)("Settings","getwid")},wp.element.createElement(O,{label:Object(g.__)("Field Name","getwid"),value:t,onChange:function(e){return l({customField:e})}}),wp.element.createElement(y,{fallbackFontSize:a,value:o.size,onChange:i}),wp.element.createElement(h,{title:Object(g.__)("Text Color","getwid"),colorSettings:[{value:n.color,onChange:r,label:Object(g.__)("Text Color","getwid")}]})))}}]),t}(b)},function(e,t){},function(e,t,n){"use strict";var r=n(398),o=n(401),i=(n.n(o),n(1)),a=(n.n(i),window);a.jQuery;(0,wp.blocks.registerBlockType)("getwid/template-post-title",{title:Object(i.__)("Title","getwid"),icon:"editor-textcolor",category:Getwid.settings.post_type==Getwid.templates.name?"getwid-post-blocks":"getwid-blocks",keywords:[],supports:{inserter:Getwid.settings.post_type==Getwid.templates.name},edit:r.a,save:function(){return null}})},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(n,!0).forEach(function(t){s()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function i(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=v()(e);if(t()){var o=v()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return w()(this,n)}}var a=n(9),l=n.n(a),c=n(7),s=n.n(c),u=n(2),p=n.n(u),d=n(4),m=n.n(d),g=n(5),f=n.n(g),b=n(6),w=n.n(b),h=n(3),v=n.n(h),y=(n(0),n(399)),_=n(8),k=n.n(_),O=n(400),E=(n.n(O),n(1)),C=(n.n(E),wp),j=C.serverSideRender,S=wp.element,x=S.Component,P=S.Fragment,T=wp.components,R=T.Disabled,N=T.Toolbar,A=T.withFallbackStyles,B=window,D=(B.jQuery,wp.blockEditor||wp.editor),M=(D.BlockAlignmentToolbar,D.AlignmentToolbar),I=D.BlockControls,L=D.withColors,z=D.withFontSizes,V=wp.data.select,F=wp.compose.compose,H=window,G=H.getComputedStyle,W=A(function(e,t){var n=t.attributes,r=n.textColor,o=n.backgroundColor,i=n.fontSize,a=n.customFontSize,l=e.querySelector('[contenteditable="true"]'),c=l?G(l):null;return{fallbackBackgroundColor:o||!c?void 0:c.backgroundColor,fallbackTextColor:r||!c?void 0:c.color,fallbackFontSize:i||a||!c?void 0:parseInt(c.fontSize)||void 0}}),U=function(e){function t(){return p()(this,t),n.apply(this,arguments)}f()(t,e);var n=i(t);return m()(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.textAlignment,r=t.headerTag,i=t.bold,a=t.italic,c=e.textColor,u=e.fontSize,p=e.setAttributes,d=V("core/editor").getCurrentPostType(),m=r;return d&&d==Getwid.templates.name?wp.element.createElement(P,null,wp.element.createElement(y.a,l()({},o({},this.props),{key:"inspector"})),wp.element.createElement(I,null,wp.element.createElement(M,{value:n,onChange:function(e){return p({textAlignment:e})}}),wp.element.createElement(N,{controls:[{icon:"editor-bold",title:Object(E.__)("Bold","getwid"),isActive:i,onClick:function(){p({bold:!i})}},{icon:"editor-italic",title:Object(E.__)("Italic","getwid"),isActive:a,onClick:function(){p({italic:!a})}}]})),wp.element.createElement(m,{className:k()(s()({},u.class,u.class)),style:{color:c.color,textAlign:n,fontWeight:i?"bold":void 0,fontStyle:a?"italic":void 0,fontSize:u.size?u.size+"px":void 0}},Object(E.__)("Post Title","getwid"))):wp.element.createElement(P,null,wp.element.createElement(R,null,wp.element.createElement(j,{block:"getwid/template-post-title",attributes:this.props.attributes})))}}]),t}(x);t.a=F([L("backgroundColor",{textColor:"color"}),z("fontSize"),W])(U)},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=m()(e);if(t()){var o=m()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p()(this,n)}}n.d(t,"a",function(){return E});var o=n(2),i=n.n(o),a=n(4),l=n.n(a),c=n(5),s=n.n(c),u=n(6),p=n.n(u),d=n(3),m=n.n(d),g=(n(0),n(1)),f=(n.n(g),window),b=(f.jQuery,wp.element.Component),w=wp.blockEditor||wp.editor,h=w.PanelColorSettings,v=w.InspectorControls,y=w.FontSizePicker,_=wp.components,k=_.SelectControl,O=_.PanelBody,E=function(e){function t(){return i()(this,t),n.apply(this,arguments)}s()(t,e);var n=r(t);return l()(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.linkTo,r=t.headerTag,o=e.textColor,i=e.setTextColor,a=e.fontSize,l=e.setFontSize,c=e.fallbackFontSize,s=e.setAttributes;return wp.element.createElement(v,null,wp.element.createElement(O,{title:Object(g.__)("Settings","getwid")},wp.element.createElement(y,{fallbackFontSize:c,value:a.size,onChange:l}),wp.element.createElement(h,{title:Object(g.__)("Text Color","getwid"),colorSettings:[{value:o.color,onChange:i,label:Object(g.__)("Text Color","getwid")}]}),wp.element.createElement(k,{label:Object(g.__)("Link to","getwid"),value:n,onChange:function(e){return s({linkTo:e})},options:[{value:"none",label:Object(g.__)("None","getwid")},{value:"post",label:Object(g.__)("Post","getwid")}]}),wp.element.createElement(k,{label:Object(g.__)("Title Tag","getwid"),value:r,options:[{value:"p",label:Object(g.__)("Paragraph","getwid")},{value:"h2",label:Object(g.__)("Heading 2","getwid")},{value:"h3",label:Object(g.__)("Heading 3","getwid")},{value:"h4",label:Object(g.__)("Heading 4","getwid")},{value:"h5",label:Object(g.__)("Heading 5","getwid")},{value:"h6",label:Object(g.__)("Heading 6","getwid")}],onChange:function(e){return s({headerTag:e})}})))}}]),t}(b)},function(e,t){},function(e,t){},function(e,t,n){"use strict";var r=n(403),o=n(406),i=(n.n(o),n(1)),a=(n.n(i),window);a.jQuery;(0,wp.blocks.registerBlockType)("getwid/template-post-featured-image",{title:Object(i.__)("Featured Image","getwid"),icon:"format-image",category:Getwid.settings.post_type==Getwid.templates.name?"getwid-post-blocks":"getwid-blocks",keywords:[],supports:{inserter:Getwid.settings.post_type==Getwid.templates.name},getEditWrapperProps:function(e){var t=e.align;if(["left","center","right"].includes(t))return{"data-align":t}},edit:r.a,save:function(){return null}})},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(n,!0).forEach(function(t){s()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function i(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=v()(e);if(t()){var o=v()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return w()(this,n)}}var a=n(9),l=n.n(a),c=n(7),s=n.n(c),u=n(2),p=n.n(u),d=n(4),m=n.n(d),g=n(5),f=n.n(g),b=n(6),w=n.n(b),h=n(3),v=n.n(h),y=(n(0),n(404)),_=n(405),k=(n.n(_),n(8)),O=n.n(k),E=n(1),C=(n.n(E),wp),j=C.serverSideRender,S=wp.element,x=S.Component,P=S.Fragment,T=wp.components,R=T.Disabled,N=T.Dashicon,A=window,B=(A.jQuery,wp.blockEditor||wp.editor),D=B.BlockAlignmentToolbar,M=B.BlockControls,I=wp.data.select,L=function(e){function t(){return p()(this,t),n.apply(this,arguments)}f()(t,e);var n=i(t);return m()(t,[{key:"render",value:function(){var e=this.props,t=e.attributes.align,n=e.className,r=e.setAttributes,i=I("core/editor").getCurrentPostType(),a=O()(n,t?"align".concat(t):null);return i&&i==Getwid.templates.name?wp.element.createElement(P,null,wp.element.createElement(y.a,l()({},o({},this.props),{key:"inspector"})),wp.element.createElement(M,null,wp.element.createElement(D,{value:t,controls:["left","center","right"],onChange:function(e){r({align:e})}})),wp.element.createElement("div",{className:a},wp.element.createElement("div",{className:"components-placeholder editor-media-placeholder"},wp.element.createElement("div",{className:"components-placeholder__label"},wp.element.createElement(N,{icon:"format-image"})),wp.element.createElement("div",{className:"components-placeholder__instructions"},Object(E.__)("Featured Image","getwid"))))):wp.element.createElement(P,null,wp.element.createElement(R,null,wp.element.createElement(j,{block:"getwid/template-post-featured-image",attributes:this.props.attributes})))}}]),t}(x);t.a=L},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=m()(e);if(t()){var o=m()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p()(this,n)}}n.d(t,"a",function(){return k});var o=n(2),i=n.n(o),a=n(4),l=n.n(a),c=n(5),s=n.n(c),u=n(6),p=n.n(u),d=n(3),m=n.n(d),g=(n(0),n(1)),f=(n.n(g),window),b=(f.jQuery,wp.element.Component),w=wp.blockEditor||wp.editor,h=w.InspectorControls,v=wp.components,y=v.SelectControl,_=v.PanelBody,k=function(e){function t(){return i()(this,t),n.apply(this,arguments)}s()(t,e);var n=r(t);return l()(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.linkTo,r=t.imageSize,o=e.setAttributes;return wp.element.createElement(h,null,wp.element.createElement(_,{title:Object(g.__)("Settings","getwid")},wp.element.createElement(y,{label:Object(g.__)("Link to","getwid"),value:n,onChange:function(e){return o({linkTo:e})},options:[{value:"none",label:Object(g.__)("None","getwid")},{value:"post",label:Object(g.__)("Post","getwid")}]}),wp.element.createElement(y,{label:Object(g.__)("Image Size","getwid"),help:Object(g.__)("For images from Media Library only.","getwid"),value:r,onChange:function(e){o({imageSize:e})},options:Getwid.settings.image_sizes})))}}]),t}(b)},function(e,t){},function(e,t){},function(e,t,n){"use strict";var r=n(408),o=n(411),i=(n.n(o),n(1)),a=(n.n(i),window);a.jQuery;(0,wp.blocks.registerBlockType)("getwid/template-post-content",{title:Object(i.__)("Content","getwid"),icon:"text",category:Getwid.settings.post_type==Getwid.templates.name?"getwid-post-blocks":"getwid-blocks",keywords:[],supports:{inserter:Getwid.settings.post_type==Getwid.templates.name},edit:r.a,save:function(){return null}})},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(n,!0).forEach(function(t){s()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function i(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=v()(e);if(t()){var o=v()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return w()(this,n)}}var a=n(9),l=n.n(a),c=n(7),s=n.n(c),u=n(2),p=n.n(u),d=n(4),m=n.n(d),g=n(5),f=n.n(g),b=n(6),w=n.n(b),h=n(3),v=n.n(h),y=(n(0),n(409)),_=n(8),k=n.n(_),O=n(410),E=(n.n(O),n(1)),C=(n.n(E),wp),j=C.serverSideRender,S=wp.element,x=S.Component,P=S.Fragment,T=wp.components,R=T.Disabled,N=T.withFallbackStyles,A=window,B=(A.jQuery,wp.blockEditor||wp.editor),D=(B.BlockAlignmentToolbar,B.AlignmentToolbar),M=B.BlockControls,I=B.withColors,L=B.withFontSizes,z=wp.data.select,V=wp.compose.compose,F=window,H=F.getComputedStyle,G=N(function(e,t){var n=t.attributes,r=n.textColor,o=n.backgroundColor,i=n.fontSize,a=n.customFontSize,l=e.querySelector('[contenteditable="true"]'),c=l?H(l):null;return{fallbackBackgroundColor:o||!c?void 0:c.backgroundColor,fallbackTextColor:r||!c?void 0:c.color,fallbackFontSize:i||a||!c?void 0:parseInt(c.fontSize)||void 0}}),W=function(e){function t(){return p()(this,t),n.apply(this,arguments)}f()(t,e);var n=i(t);return m()(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.textAlignment,r=t.showContent,i=e.textColor,a=e.fontSize,c=e.className,u=e.setAttributes,p=z("core/editor").getCurrentPostType(),d="";return"excerpt"==r?d=Object(E.__)("Post Content (excerpt)","getwid"):"content"==r?d=Object(E.__)("Post Content (content)","getwid"):"full"==r&&(d=Object(E.__)("Post Content (full content)","getwid")),p&&p==Getwid.templates.name?wp.element.createElement(P,null,wp.element.createElement(y.a,l()({},o({},this.props),{key:"inspector"})),wp.element.createElement(M,null,wp.element.createElement(D,{value:n,onChange:function(e){return u({textAlignment:e})}})),wp.element.createElement("div",{className:k()(c,s()({},a.class,a.class)),style:{color:i.color,textAlign:n,fontSize:a.size?a.size+"px":void 0}},d)):wp.element.createElement(P,null,wp.element.createElement(R,null,wp.element.createElement(j,{block:"getwid/template-post-content",attributes:this.props.attributes})))}}]),t}(x);t.a=V([I("backgroundColor",{textColor:"color"}),L("fontSize"),G])(W)},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=m()(e);if(t()){var o=m()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p()(this,n)}}n.d(t,"a",function(){return S});var o=n(2),i=n.n(o),a=n(4),l=n.n(a),c=n(5),s=n.n(c),u=n(6),p=n.n(u),d=n(3),m=n.n(d),g=(n(0),n(1)),f=(n.n(g),window),b=(f.jQuery,wp.element),w=b.Component,h=b.Fragment,v=wp.blockEditor||wp.editor,y=v.PanelColorSettings,_=v.InspectorControls,k=v.FontSizePicker,O=wp.components,E=O.SelectControl,C=O.PanelBody,j=O.RangeControl,S=function(e){function t(){return i()(this,t),n.apply(this,arguments)}s()(t,e);var n=r(t);return l()(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.showContent,r=t.contentLength,o=e.textColor,i=e.setTextColor,a=e.fontSize,l=e.setFontSize,c=e.fallbackFontSize,s=e.setAttributes;return wp.element.createElement(_,null,wp.element.createElement(C,{title:Object(g.__)("Settings","getwid")},wp.element.createElement(y,{title:Object(g.__)("Text Color","getwid"),colorSettings:[{value:o.color,onChange:i,label:Object(g.__)("Text Color","getwid")}]}),wp.element.createElement(E,{label:Object(g.__)("Display Content","getwid"),value:n,options:[{value:"excerpt",label:Object(g.__)("Excerpt","getwid")},{value:"content",label:Object(g.__)("Post Content","getwid")},{value:"full",label:Object(g.__)("Full Content","getwid")}],onChange:function(e){return s({showContent:e})}}),"excerpt"==n&&wp.element.createElement(h,null,wp.element.createElement(j,{label:Object(g.__)("Number of words","getwid"),value:r,onChange:function(e){return s({contentLength:e})},min:5,max:Getwid.settings.excerpt_length}),wp.element.createElement(k,{fallbackFontSize:c,value:a.size,onChange:l}))))}}]),t}(w)},function(e,t){},function(e,t){},function(e,t,n){"use strict";var r=n(413),o=n(414),i=n(417),a=(n.n(i),n(1));n.n(a);(0,wp.blocks.registerBlockType)("getwid/template-post-link",{title:Object(a.__)("Link","getwid"),icon:"admin-links",category:Getwid.settings.post_type==Getwid.templates.name?"getwid-post-blocks":"getwid-blocks",keywords:[],supports:{inserter:Getwid.settings.post_type==Getwid.templates.name},attributes:r.a,edit:o.a,save:function(){return null}})},function(e,t,n){"use strict";var r=n(1),o=(n.n(r),window),i=(o.jQuery,{textColor:{type:"string"},customTextColor:{type:"string"},buttonText:{type:"string",default:Object(r.__)("Read More","getwid")},align:{type:"string"},textAlignment:{type:"string"}});t.a=i},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(n,!0).forEach(function(t){s()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function i(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=_()(e);if(t()){var o=_()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return v()(this,n)}}var a=n(9),l=n.n(a),c=n(7),s=n.n(c),u=n(2),p=n.n(u),d=n(4),m=n.n(d),g=n(11),f=n.n(g),b=n(5),w=n.n(b),h=n(6),v=n.n(h),y=n(3),_=n.n(y),k=(n(0),n(8)),O=n.n(k),E=n(415),C=n(416),j=(n.n(C),n(1)),S=(n.n(j),wp),x=S.serverSideRender,P=wp.element,T=P.Component,R=P.Fragment,N=wp.components.Disabled,A=window,B=(A.jQuery,wp.blockEditor||wp.editor),D=B.AlignmentToolbar,M=B.BlockControls,I=B.withColors,L=B.RichText,z=wp.data.select,V=wp.compose.compose,F=["core/bold","core/italic","core/link","core/image","core/strikethrough","core/text-color"],H=function(e){function t(){var e;return p()(this,t),e=n.apply(this,arguments),e.nodeRef=null,e.bindRef=e.bindRef.bind(f()(e)),e}w()(t,e);var n=i(t);return m()(t,[{key:"bindRef",value:function(e){e&&(this.nodeRef=e)}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.textAlignment,r=t.buttonText,i=e.textColor,a=e.setAttributes,c=e.className,u=z("core/editor").getCurrentPostType();return u&&u==Getwid.templates.name?wp.element.createElement(R,null,wp.element.createElement(E.a,l()({},o({},this.props),{key:"inspector"})),wp.element.createElement(M,null,wp.element.createElement(D,{value:n,onChange:function(e){return a({textAlignment:e})}})),wp.element.createElement("div",{className:O()(c),style:{textAlign:n}},wp.element.createElement("div",{ref:this.bindRef},wp.element.createElement(L,s()({placeholder:Object(j.__)("Read More","getwid"),value:r,onChange:function(e){return a({buttonText:e})},allowedFormats:["bold","italic","strikethrough"],className:O()(s()({"has-text-color":i.color},i.class,i.class)),style:{color:i.color},keepPlaceholderOnFocus:!0},"allowedFormats",F))))):wp.element.createElement(R,null,wp.element.createElement(N,null,wp.element.createElement(x,{block:"getwid/template-post-link",attributes:this.props.attributes})))}}]),t}(T);t.a=V([I({textColor:"color"})])(H)},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=m()(e);if(t()){var o=m()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p()(this,n)}}n.d(t,"a",function(){return _});var o=n(2),i=n.n(o),a=n(4),l=n.n(a),c=n(5),s=n.n(c),u=n(6),p=n.n(u),d=n(3),m=n.n(d),g=(n(0),n(1)),f=(n.n(g),window),b=(f.jQuery,wp.element.Component),w=wp.blockEditor||wp.editor,h=w.PanelColorSettings,v=w.InspectorControls,y=wp.components.PanelBody,_=function(e){function t(){return i()(this,t),n.apply(this,arguments)}s()(t,e);var n=r(t);return l()(t,[{key:"render",value:function(){var e=this.props,t=e.textColor,n=e.setTextColor;return wp.element.createElement(v,null,wp.element.createElement(y,{title:Object(g.__)("Settings","getwid")},wp.element.createElement(h,{title:Object(g.__)("Text Color","getwid"),colorSettings:[{value:t.color,onChange:n,label:Object(g.__)("Text Color","getwid")}]})))}}]),t}(b)},function(e,t){},function(e,t){},function(e,t,n){"use strict";var r=(n(0),n(419)),o=n(420),i=n(423),a=(n.n(i),n(1));n.n(a);(0,wp.blocks.registerBlockType)("getwid/template-post-button",{title:Object(a.__)("Button","getwid"),icon:wp.element.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),wp.element.createElement("g",null,wp.element.createElement("path",{d:"M19 6H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 10H5V8h14v8z"}))),category:Getwid.settings.post_type==Getwid.templates.name?"getwid-post-blocks":"getwid-blocks",keywords:[],supports:{inserter:Getwid.settings.post_type==Getwid.templates.name},attributes:r.a,edit:o.a,save:function(){return null}})},function(e,t,n){"use strict";var r=n(1),o=(n.n(r),window),i=(o.jQuery,{backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},buttonText:{type:"string",default:Object(r.__)("Read More","getwid")},align:{type:"string"},textAlignment:{type:"string"}});t.a=i},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(n,!0).forEach(function(t){s()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function i(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=_()(e);if(t()){var o=_()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return v()(this,n)}}var a=n(9),l=n.n(a),c=n(7),s=n.n(c),u=n(2),p=n.n(u),d=n(4),m=n.n(d),g=n(11),f=n.n(g),b=n(5),w=n.n(b),h=n(6),v=n.n(h),y=n(3),_=n.n(y),k=(n(0),n(8)),O=n.n(k),E=n(421),C=n(422),j=(n.n(C),n(1)),S=(n.n(j),wp),x=S.serverSideRender,P=wp.element,T=P.Component,R=P.Fragment,N=wp.components,A=N.Disabled,B=N.withFallbackStyles,D=window,M=(D.jQuery,wp.blockEditor||wp.editor),I=(M.BlockAlignmentToolbar,M.AlignmentToolbar),L=M.BlockControls,z=M.withColors,V=M.RichText,F=wp.data.select,H=wp.compose.compose,G=["core/bold","core/italic","core/link","core/image","core/strikethrough","core/text-color"],W=window,U=W.getComputedStyle,q=B(function(e,t){var n=t.textColor,r=t.backgroundColor,o=r&&r.color,i=n&&n.color,a=!i&&e?e.querySelector('[contenteditable="true"]'):null;return{fallbackBackgroundColor:o||!e?void 0:U(e).backgroundColor,fallbackTextColor:i||!a?void 0:U(a).color}}),Q=function(e){function t(){var e;return p()(this,t),e=n.apply(this,arguments),e.nodeRef=null,e.bindRef=e.bindRef.bind(f()(e)),e}w()(t,e);var n=i(t);return m()(t,[{key:"bindRef",value:function(e){e&&(this.nodeRef=e)}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.textAlignment,r=t.buttonText,i=e.backgroundColor,a=e.textColor,c=e.setAttributes,u=e.className,p=F("core/editor").getCurrentPostType();if(p&&p==Getwid.templates.name){var d;return wp.element.createElement(R,null,wp.element.createElement(E.a,l()({},o({},this.props),{key:"inspector"})),wp.element.createElement(L,null,wp.element.createElement(I,{value:n,onChange:function(e){return c({textAlignment:e})}})),wp.element.createElement("div",{className:O()(u),style:{textAlign:n}},wp.element.createElement("div",{className:O()("wp-block-button"),ref:this.bindRef},wp.element.createElement(V,{placeholder:Object(j.__)("Read More","getwid"),value:r,onChange:function(e){return c({buttonText:e})},allowedFormats:G,className:O()("wp-block-button__link",(d={"has-background":i.color},s()(d,i.class,i.class),s()(d,"has-text-color",a.color),s()(d,a.class,a.class),d)),style:{backgroundColor:i.color,color:a.color},keepPlaceholderOnFocus:!0}))))}return wp.element.createElement(R,null,wp.element.createElement(A,null,wp.element.createElement(x,{block:"getwid/template-post-link",attributes:this.props.attributes})))}}]),t}(T);t.a=H([z("backgroundColor",{textColor:"color"}),q])(Q)},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=m()(e);if(t()){var o=m()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p()(this,n)}}n.d(t,"a",function(){return _});var o=n(2),i=n.n(o),a=n(4),l=n.n(a),c=n(5),s=n.n(c),u=n(6),p=n.n(u),d=n(3),m=n.n(d),g=(n(0),n(1)),f=(n.n(g),window),b=(f.jQuery,wp.element.Component),w=wp.blockEditor||wp.editor,h=w.PanelColorSettings,v=w.InspectorControls,y=wp.components.PanelBody,_=function(e){function t(){return i()(this,t),n.apply(this,arguments)}s()(t,e);var n=r(t);return l()(t,[{key:"render",value:function(){var e=this.props,t=e.backgroundColor,n=e.setBackgroundColor,r=e.textColor,o=e.setTextColor;return wp.element.createElement(v,null,wp.element.createElement(y,{title:Object(g.__)("Settings","getwid")},wp.element.createElement(h,{title:Object(g.__)("Colors","getwid"),colorSettings:[{value:r.color,onChange:o,label:Object(g.__)("Text Color","getwid")},{value:t.color,onChange:n,label:Object(g.__)("Background Color","getwid")}]})))}}]),t}(b)},function(e,t){},function(e,t){},function(e,t,n){"use strict";var r=n(425),o=n(428),i=(n.n(o),n(1)),a=(n.n(i),window);a.jQuery;(0,wp.blocks.registerBlockType)("getwid/template-post-author",{title:Object(i.__)("Author","getwid"),icon:"admin-users",category:Getwid.settings.post_type==Getwid.templates.name?"getwid-post-blocks":"getwid-blocks",keywords:[],supports:{inserter:Getwid.settings.post_type==Getwid.templates.name},edit:r.a,save:function(){return null}})},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(n,!0).forEach(function(t){s()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function i(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=v()(e);if(t()){var o=v()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return w()(this,n)}}var a=n(9),l=n.n(a),c=n(7),s=n.n(c),u=n(2),p=n.n(u),d=n(4),m=n.n(d),g=n(5),f=n.n(g),b=n(6),w=n.n(b),h=n(3),v=n.n(h),y=(n(0),n(426)),_=n(8),k=n.n(_),O=n(427),E=(n.n(O),n(1)),C=(n.n(E),wp),j=C.serverSideRender,S=wp.element,x=S.Component,P=S.Fragment,T=wp.components,R=T.Disabled,N=T.withFallbackStyles,A=window,B=(A.jQuery,wp.blockEditor||wp.editor),D=(B.BlockAlignmentToolbar,B.AlignmentToolbar),M=B.BlockControls,I=B.withColors,L=B.withFontSizes,z=wp.data.select,V=wp.compose.compose,F=window,H=F.getComputedStyle,G=N(function(e,t){var n=t.attributes,r=n.textColor,o=n.backgroundColor,i=n.fontSize,a=n.customFontSize,l=e.querySelector('[contenteditable="true"]'),c=l?H(l):null;return{fallbackBackgroundColor:o||!c?void 0:c.backgroundColor,fallbackTextColor:r||!c?void 0:c.color,fallbackFontSize:i||a||!c?void 0:parseInt(c.fontSize)||void 0}}),W=function(e){function t(){return p()(this,t),n.apply(this,arguments)}f()(t,e);var n=i(t);return m()(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.textAlignment,r=t.icon,i=t.blockDivider,a=e.backgroundColor,c=e.textColor,u=e.iconColor,p=e.fontSize,d=e.setAttributes,m=e.className,g=z("core/editor").getCurrentPostType();if(g&&g==Getwid.templates.name){var f;return wp.element.createElement(P,null,wp.element.createElement(y.a,l()({},o({},this.props),{key:"inspector"})),wp.element.createElement(M,null,wp.element.createElement(D,{value:n,onChange:function(e){return d({textAlignment:e})}})),wp.element.createElement("div",{className:k()(m,(f={"has-background":a.color},s()(f,a.class,a.class),s()(f,"has-text-color",c.color),s()(f,c.class,c.class),s()(f,p.class,p.class),f)),style:{textAlign:n,backgroundColor:a.color,color:c.color,fontSize:p.size?p.size+"px":void 0}},r?wp.element.createElement("i",{style:{color:u.color?u.color:void 0},className:k()(r,s()({"has-text-color":u.color},u.class,u.class))}):void 0," ",Object(E.__)("Author","getwid")," ",i?wp.element.createElement("span",{className:"getwid-post-meta-divider"},i):void 0))}return wp.element.createElement(P,null,wp.element.createElement(R,null,wp.element.createElement(j,{block:"getwid/template-post-author",attributes:this.props.attributes})))}}]),t}(x);t.a=V([I("backgroundColor",{textColor:"color"},"iconColor"),L("fontSize"),G])(W)},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=m()(e);if(t()){var o=m()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p()(this,n)}}n.d(t,"a",function(){return C});var o=n(2),i=n.n(o),a=n(4),l=n.n(a),c=n(5),s=n.n(c),u=n(6),p=n.n(u),d=n(3),m=n.n(d),g=(n(0),n(18)),f=n(1),b=(n.n(f),window),w=(b.jQuery,wp.element.Component),h=wp.blockEditor||wp.editor,v=h.PanelColorSettings,y=h.InspectorControls,_=h.FontSizePicker,k=wp.components,O=k.PanelBody,E=k.BaseControl,C=function(e){function t(){return i()(this,t),n.apply(this,arguments)}s()(t,e);var n=r(t);return l()(t,[{key:"render",value:function(){var e=this.props,t=e.attributes.icon,n=(e.backgroundColor,e.setBackgroundColor,e.textColor),r=e.setTextColor,o=e.iconColor,i=e.setIconColor,a=e.fontSize,l=e.setFontSize,c=e.fallbackFontSize,s=e.setAttributes;return wp.element.createElement(y,null,wp.element.createElement(O,{title:Object(f.__)("Settings","getwid")},wp.element.createElement(_,{fallbackFontSize:c,value:a.size,onChange:l}),wp.element.createElement(E,{label:Object(f.__)("Icon","getwid")},wp.element.createElement(g.a,{value:t,onChange:function(e){return s({icon:e})}})),wp.element.createElement(v,{title:Object(f.__)("Text Color","getwid"),colorSettings:[{value:n.color,onChange:r,label:Object(f.__)("Text Color","getwid")}]}),wp.element.createElement(v,{initialOpen:!1,title:Object(f.__)("Icon Color","getwid"),colorSettings:[{value:o.color,onChange:i,label:Object(f.__)("Icon Color","getwid")}]})))}}]),t}(w)},function(e,t){},function(e,t){},function(e,t,n){"use strict";var r=n(430),o=n(433),i=(n.n(o),n(1)),a=(n.n(i),window);a.jQuery;(0,wp.blocks.registerBlockType)("getwid/template-post-categories",{title:Object(i.__)("Categories","getwid"),icon:"category",category:Getwid.settings.post_type==Getwid.templates.name?"getwid-post-blocks":"getwid-blocks",keywords:[],supports:{inserter:Getwid.settings.post_type==Getwid.templates.name},edit:r.a,save:function(){return null}})},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(n,!0).forEach(function(t){s()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function i(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=v()(e);if(t()){var o=v()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return w()(this,n)}}var a=n(9),l=n.n(a),c=n(7),s=n.n(c),u=n(2),p=n.n(u),d=n(4),m=n.n(d),g=n(5),f=n.n(g),b=n(6),w=n.n(b),h=n(3),v=n.n(h),y=(n(0),n(431)),_=n(8),k=n.n(_),O=n(432),E=(n.n(O),n(1)),C=(n.n(E),wp),j=C.serverSideRender,S=wp.element,x=S.Component,P=S.Fragment,T=wp.components,R=T.Disabled,N=T.withFallbackStyles,A=window,B=(A.jQuery,wp.blockEditor||wp.editor),D=(B.BlockAlignmentToolbar,B.AlignmentToolbar),M=B.BlockControls,I=B.withColors,L=B.withFontSizes,z=wp.data.select,V=wp.compose.compose,F=window,H=F.getComputedStyle,G=N(function(e,t){var n=t.attributes,r=n.textColor,o=n.backgroundColor,i=n.fontSize,a=n.customFontSize,l=e.querySelector('[contenteditable="true"]'),c=l?H(l):null;return{fallbackBackgroundColor:o||!c?void 0:c.backgroundColor,fallbackTextColor:r||!c?void 0:c.color,fallbackFontSize:i||a||!c?void 0:parseInt(c.fontSize)||void 0}}),W=function(e){function t(){return p()(this,t),n.apply(this,arguments)}f()(t,e);var n=i(t);return m()(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.textAlignment,r=t.icon,i=t.blockDivider,a=e.backgroundColor,c=e.textColor,u=e.iconColor,p=e.fontSize,d=e.setAttributes,m=e.className,g=z("core/editor").getCurrentPostType();if(g&&g==Getwid.templates.name){var f;return wp.element.createElement(P,null,wp.element.createElement(y.a,l()({},o({},this.props),{key:"inspector"})),wp.element.createElement(M,null,wp.element.createElement(D,{value:n,onChange:function(e){return d({textAlignment:e})}})),wp.element.createElement("div",{className:k()(m,(f={"has-background":a.color},s()(f,a.class,a.class),s()(f,"has-text-color",c.color),s()(f,c.class,c.class),s()(f,p.class,p.class),f)),style:{textAlign:n,backgroundColor:a.color,color:c.color,fontSize:p.size?p.size+"px":void 0}},r?wp.element.createElement("i",{style:{color:u.color?u.color:void 0},className:k()(r,s()({"has-text-color":u.color},u.class,u.class))}):void 0," ",Object(E.__)("Categories","getwid")," ",i?wp.element.createElement("span",{className:"getwid-post-meta-divider"},i):void 0))}return wp.element.createElement(P,null,wp.element.createElement(R,null,wp.element.createElement(j,{block:"getwid/template-post-categories",attributes:this.props.attributes})))}}]),t}(x);t.a=V([I("backgroundColor",{textColor:"color"},"iconColor"),L("fontSize"),G])(W)},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=m()(e);if(t()){var o=m()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p()(this,n)}}n.d(t,"a",function(){return j});var o=n(2),i=n.n(o),a=n(4),l=n.n(a),c=n(5),s=n.n(c),u=n(6),p=n.n(u),d=n(3),m=n.n(d),g=(n(0),n(18)),f=n(1),b=(n.n(f),window),w=(b.jQuery,wp.element.Component),h=wp.blockEditor||wp.editor,v=h.PanelColorSettings,y=h.InspectorControls,_=h.FontSizePicker,k=wp.components,O=k.SelectControl,E=k.PanelBody,C=k.BaseControl,j=function(e){function t(){return i()(this,t),n.apply(this,arguments)}s()(t,e);var n=r(t);return l()(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.divider,r=t.icon,o=(e.backgroundColor,e.setBackgroundColor,e.textColor),i=e.setTextColor,a=e.iconColor,l=e.setIconColor,c=e.fontSize,s=e.setFontSize,u=e.fallbackFontSize,p=e.setAttributes;return wp.element.createElement(y,null,wp.element.createElement(E,{title:Object(f.__)("Settings","getwid")},wp.element.createElement(O,{label:Object(f.__)("Divider","getwid"),value:n,onChange:function(e){return p({divider:e})},options:[{value:"",label:Object(f.__)("None","getwid")},{value:",",label:","}]}),wp.element.createElement(_,{fallbackFontSize:u,value:c.size,onChange:s}),wp.element.createElement(C,{label:Object(f.__)("Icon","getwid")},wp.element.createElement(g.a,{value:r,onChange:function(e){return p({icon:e})}})),wp.element.createElement(v,{title:Object(f.__)("Text Color","getwid"),colorSettings:[{value:o.color,onChange:i,label:Object(f.__)("Text Color","getwid")}]}),wp.element.createElement(v,{initialOpen:!1,title:Object(f.__)("Icon Color","getwid"),colorSettings:[{value:a.color,onChange:l,label:Object(f.__)("Icon Color","getwid")}]})))}}]),t}(w)},function(e,t){},function(e,t){},function(e,t,n){"use strict";var r=n(435),o=n(438),i=(n.n(o),n(1)),a=(n.n(i),window);a.jQuery;(0,wp.blocks.registerBlockType)("getwid/template-post-comments",{title:Object(i.__)("Comments","getwid"),icon:"admin-comments",category:Getwid.settings.post_type==Getwid.templates.name?"getwid-post-blocks":"getwid-blocks",keywords:[],supports:{inserter:Getwid.settings.post_type==Getwid.templates.name},edit:r.a,save:function(){return null}})},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(n,!0).forEach(function(t){s()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function i(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=v()(e);if(t()){var o=v()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return w()(this,n)}}var a=n(9),l=n.n(a),c=n(7),s=n.n(c),u=n(2),p=n.n(u),d=n(4),m=n.n(d),g=n(5),f=n.n(g),b=n(6),w=n.n(b),h=n(3),v=n.n(h),y=(n(0),n(436)),_=n(8),k=n.n(_),O=n(437),E=(n.n(O),n(1)),C=(n.n(E),wp),j=C.serverSideRender,S=wp.element,x=S.Component,P=S.Fragment,T=wp.components,R=T.Disabled,N=T.withFallbackStyles,A=window,B=(A.jQuery,wp.blockEditor||wp.editor),D=(B.BlockAlignmentToolbar,B.AlignmentToolbar),M=B.BlockControls,I=B.withColors,L=B.withFontSizes,z=wp.data.select,V=wp.compose.compose,F=window,H=F.getComputedStyle,G=N(function(e,t){var n=t.attributes,r=n.textColor,o=n.backgroundColor,i=n.fontSize,a=n.customFontSize,l=e.querySelector('[contenteditable="true"]'),c=l?H(l):null;return{fallbackBackgroundColor:o||!c?void 0:c.backgroundColor,fallbackTextColor:r||!c?void 0:c.color,fallbackFontSize:i||a||!c?void 0:parseInt(c.fontSize)||void 0}}),W=function(e){function t(){return p()(this,t),n.apply(this,arguments)}f()(t,e);var n=i(t);return m()(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.textAlignment,r=t.icon,i=t.blockDivider,a=e.backgroundColor,c=e.textColor,u=e.iconColor,p=e.fontSize,d=e.setAttributes,m=e.className,g=z("core/editor").getCurrentPostType();if(g&&g==Getwid.templates.name){var f;return wp.element.createElement(P,null,wp.element.createElement(y.a,l()({},o({},this.props),{key:"inspector"})),wp.element.createElement(M,null,wp.element.createElement(D,{value:n,onChange:function(e){return d({textAlignment:e})}})),wp.element.createElement("div",{className:k()(m,(f={"has-background":a.color},s()(f,a.class,a.class),s()(f,"has-text-color",c.color),s()(f,c.class,c.class),s()(f,p.class,p.class),f)),style:{textAlign:n,backgroundColor:a.color,color:c.color,fontSize:p.size?p.size+"px":void 0}},r?wp.element.createElement("i",{style:{color:u.color?u.color:void 0},className:k()(r,s()({"has-text-color":u.color},u.class,u.class))}):void 0," ",Object(E.__)("Comments","getwid")," ",i?wp.element.createElement("span",{className:"getwid-post-meta-divider"},i):void 0))}return wp.element.createElement(P,null,wp.element.createElement(R,null,wp.element.createElement(j,{block:"getwid/template-post-comments",attributes:this.props.attributes})))}}]),t}(x);t.a=V([I("backgroundColor",{textColor:"color"},"iconColor"),L("fontSize"),G])(W)},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=m()(e);if(t()){var o=m()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p()(this,n)}}n.d(t,"a",function(){return C});var o=n(2),i=n.n(o),a=n(4),l=n.n(a),c=n(5),s=n.n(c),u=n(6),p=n.n(u),d=n(3),m=n.n(d),g=(n(0),n(18)),f=n(1),b=(n.n(f),window),w=(b.jQuery,wp.element.Component),h=wp.blockEditor||wp.editor,v=h.PanelColorSettings,y=h.InspectorControls,_=h.FontSizePicker,k=wp.components,O=k.PanelBody,E=k.BaseControl,C=function(e){function t(){return i()(this,t),n.apply(this,arguments)}s()(t,e);var n=r(t);return l()(t,[{key:"render",value:function(){var e=this.props,t=e.attributes.icon,n=(e.backgroundColor,e.setBackgroundColor,e.textColor),r=e.setTextColor,o=e.iconColor,i=e.setIconColor,a=e.fontSize,l=e.setFontSize,c=e.fallbackFontSize,s=e.setAttributes;return wp.element.createElement(y,null,wp.element.createElement(O,{title:Object(f.__)("Settings","getwid")},wp.element.createElement(_,{fallbackFontSize:c,value:a.size,onChange:l}),wp.element.createElement(E,{label:Object(f.__)("Icon","getwid")},wp.element.createElement(g.a,{value:t,onChange:function(e){return s({icon:e})}})),wp.element.createElement(v,{title:Object(f.__)("Text Color","getwid"),colorSettings:[{value:n.color,onChange:r,label:Object(f.__)("Text Color","getwid")}]}),wp.element.createElement(v,{initialOpen:!1,title:Object(f.__)("Icon Color","getwid"),colorSettings:[{value:o.color,onChange:i,label:Object(f.__)("Icon Color","getwid")}]})))}}]),t}(w)},function(e,t){},function(e,t){},function(e,t,n){"use strict";var r=n(440),o=n(443),i=(n.n(o),n(1)),a=(n.n(i),window);a.jQuery;(0,wp.blocks.registerBlockType)("getwid/template-post-tags",{title:Object(i.__)("Tags","getwid"),icon:"tag",category:Getwid.settings.post_type==Getwid.templates.name?"getwid-post-blocks":"getwid-blocks",keywords:[],supports:{inserter:Getwid.settings.post_type==Getwid.templates.name},edit:r.a,save:function(){return null}})},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(n,!0).forEach(function(t){s()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function i(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=v()(e);if(t()){var o=v()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return w()(this,n)}}var a=n(9),l=n.n(a),c=n(7),s=n.n(c),u=n(2),p=n.n(u),d=n(4),m=n.n(d),g=n(5),f=n.n(g),b=n(6),w=n.n(b),h=n(3),v=n.n(h),y=(n(0),n(441)),_=n(8),k=n.n(_),O=n(442),E=(n.n(O),n(1)),C=(n.n(E),wp),j=C.serverSideRender,S=wp.element,x=S.Component,P=S.Fragment,T=wp.components,R=T.Disabled,N=T.withFallbackStyles,A=window,B=(A.jQuery,wp.blockEditor||wp.editor),D=(B.BlockAlignmentToolbar,B.AlignmentToolbar),M=B.BlockControls,I=B.withColors,L=B.withFontSizes,z=wp.data.select,V=wp.compose.compose,F=window,H=F.getComputedStyle,G=N(function(e,t){var n=t.attributes,r=n.textColor,o=n.backgroundColor,i=n.fontSize,a=n.customFontSize,l=e.querySelector('[contenteditable="true"]'),c=l?H(l):null;return{fallbackBackgroundColor:o||!c?void 0:c.backgroundColor,fallbackTextColor:r||!c?void 0:c.color,fallbackFontSize:i||a||!c?void 0:parseInt(c.fontSize)||void 0}}),W=function(e){function t(){return p()(this,t),n.apply(this,arguments)}f()(t,e);var n=i(t);return m()(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.textAlignment,r=t.icon,i=t.blockDivider,a=e.backgroundColor,c=e.textColor,u=e.iconColor,p=e.fontSize,d=e.setAttributes,m=e.className,g=z("core/editor").getCurrentPostType();if(g&&g==Getwid.templates.name){var f;return wp.element.createElement(P,null,wp.element.createElement(y.a,l()({},o({},this.props),{key:"inspector"})),wp.element.createElement(M,null,wp.element.createElement(D,{value:n,onChange:function(e){return d({textAlignment:e})}})),wp.element.createElement("div",{className:k()(m,(f={"has-background":a.color},s()(f,a.class,a.class),s()(f,"has-text-color",c.color),s()(f,c.class,c.class),s()(f,p.class,p.class),f)),style:{textAlign:n,backgroundColor:a.color,color:c.color,fontSize:p.size?p.size+"px":void 0}},r?wp.element.createElement("i",{style:{color:u.color?u.color:void 0},className:k()(r,s()({"has-text-color":u.color},u.class,u.class))}):void 0," ",Object(E.__)("Tags","getwid")," ",i?wp.element.createElement("span",{className:"getwid-post-meta-divider"},i):void 0))}return wp.element.createElement(P,null,wp.element.createElement(R,null,wp.element.createElement(j,{block:"getwid/template-post-tags",attributes:this.props.attributes})))}}]),t}(x);t.a=V([I("backgroundColor",{textColor:"color"},"iconColor"),L("fontSize"),G])(W)},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=m()(e);if(t()){var o=m()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p()(this,n)}}n.d(t,"a",function(){return j});var o=n(2),i=n.n(o),a=n(4),l=n.n(a),c=n(5),s=n.n(c),u=n(6),p=n.n(u),d=n(3),m=n.n(d),g=(n(0),n(18)),f=n(1),b=(n.n(f),window),w=(b.jQuery,wp.element.Component),h=wp.blockEditor||wp.editor,v=h.PanelColorSettings,y=h.InspectorControls,_=h.FontSizePicker,k=wp.components,O=k.SelectControl,E=k.PanelBody,C=k.BaseControl,j=function(e){function t(){return i()(this,t),n.apply(this,arguments)}s()(t,e);var n=r(t);return l()(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.divider,r=t.icon,o=e.textColor,i=e.setTextColor,a=e.iconColor,l=e.setIconColor,c=e.fontSize,s=e.setFontSize,u=e.fallbackFontSize,p=e.setAttributes;return wp.element.createElement(y,null,wp.element.createElement(E,{title:Object(f.__)("Settings","getwid")},wp.element.createElement(O,{label:Object(f.__)("Divider","getwid"),value:n,onChange:function(e){return p({divider:e})},options:[{value:"",label:Object(f.__)("None","getwid")},{value:",",label:","}]}),wp.element.createElement(_,{fallbackFontSize:u,value:c.size,onChange:s}),wp.element.createElement(C,{label:Object(f.__)("Icon","getwid")},wp.element.createElement(g.a,{value:r,onChange:function(e){return p({icon:e})}})),wp.element.createElement(v,{title:Object(f.__)("Text Color","getwid"),colorSettings:[{value:o.color,onChange:i,label:Object(f.__)("Text Color","getwid")}]}),wp.element.createElement(v,{initialOpen:!1,title:Object(f.__)("Icon Color","getwid"),colorSettings:[{value:a.color,onChange:l,label:Object(f.__)("Icon Color","getwid")}]})))}}]),t}(w)},function(e,t){},function(e,t){},function(e,t,n){"use strict";var r=n(445),o=n(448),i=(n.n(o),n(1)),a=(n.n(i),window);a.jQuery;(0,wp.blocks.registerBlockType)("getwid/template-post-date",{title:Object(i.__)("Date","getwid"),icon:"calendar-alt",category:Getwid.settings.post_type==Getwid.templates.name?"getwid-post-blocks":"getwid-blocks",keywords:[],supports:{inserter:Getwid.settings.post_type==Getwid.templates.name},edit:r.a,save:function(){return null}})},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(n,!0).forEach(function(t){s()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function i(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=v()(e);if(t()){var o=v()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return w()(this,n)}}var a=n(9),l=n.n(a),c=n(7),s=n.n(c),u=n(2),p=n.n(u),d=n(4),m=n.n(d),g=n(5),f=n.n(g),b=n(6),w=n.n(b),h=n(3),v=n.n(h),y=(n(0),n(446)),_=n(8),k=n.n(_),O=n(447),E=(n.n(O),n(1)),C=(n.n(E),wp),j=C.serverSideRender,S=wp.element,x=S.Component,P=S.Fragment,T=wp.components,R=T.Disabled,N=T.Toolbar,A=T.withFallbackStyles,B=window,D=(B.jQuery,wp.blockEditor||wp.editor),M=(D.BlockAlignmentToolbar,D.AlignmentToolbar),I=D.BlockControls,L=D.withColors,z=D.withFontSizes,V=wp.data.select,F=wp.compose.compose,H=window,G=H.getComputedStyle,W=A(function(e,t){var n=t.attributes,r=n.textColor,o=n.backgroundColor,i=n.fontSize,a=n.customFontSize,l=e.querySelector('[contenteditable="true"]'),c=l?G(l):null;return{fallbackBackgroundColor:o||!c?void 0:c.backgroundColor,fallbackTextColor:r||!c?void 0:c.color,fallbackFontSize:i||a||!c?void 0:parseInt(c.fontSize)||void 0}}),U=function(e){function t(){return p()(this,t),n.apply(this,arguments)}f()(t,e);var n=i(t);return m()(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.textAlignment,r=t.icon,i=t.bold,a=t.italic,c=t.blockDivider,u=e.backgroundColor,p=e.textColor,d=e.iconColor,m=e.fontSize,g=e.setAttributes,f=e.className,b=V("core/editor").getCurrentPostType();if(b&&b==Getwid.templates.name){var w;return wp.element.createElement(P,null,wp.element.createElement(y.a,l()({},o({},this.props),{key:"inspector"})),wp.element.createElement(I,null,wp.element.createElement(M,{value:n,onChange:function(e){return g({textAlignment:e})}}),wp.element.createElement(N,{controls:[{icon:"editor-bold",title:Object(E.__)("Bold","getwid"),isActive:i,onClick:function(){g({bold:!i})}},{icon:"editor-italic",title:Object(E.__)("Italic","getwid"),isActive:a,onClick:function(){g({italic:!a})}}]})),wp.element.createElement("div",{className:k()(f,(w={"has-background":u.color},s()(w,u.class,u.class),s()(w,"has-text-color",p.color),s()(w,p.class,p.class),s()(w,m.class,m.class),w)),style:{textAlign:n,fontWeight:i?"bold":void 0,fontStyle:a?"italic":void 0,backgroundColor:u.color,color:p.color,fontSize:m.size?m.size+"px":void 0}},r?wp.element.createElement("i",{style:{color:d.color?d.color:void 0},className:k()(r,s()({"has-text-color":d.color},d.class,d.class))}):void 0," ",Object(E.__)("Date","getwid")," ",c?wp.element.createElement("span",{className:"getwid-post-meta-divider"},c):void 0))}return wp.element.createElement(P,null,wp.element.createElement(R,null,wp.element.createElement(j,{block:"getwid/template-post-date",attributes:this.props.attributes})))}}]),t}(x);t.a=F([L("backgroundColor",{textColor:"color"},"iconColor"),z("fontSize"),W])(U)},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=m()(e);if(t()){var o=m()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p()(this,n)}}n.d(t,"a",function(){return C});var o=n(2),i=n.n(o),a=n(4),l=n.n(a),c=n(5),s=n.n(c),u=n(6),p=n.n(u),d=n(3),m=n.n(d),g=(n(0),n(18)),f=n(1),b=(n.n(f),window),w=(b.jQuery,wp.element.Component),h=wp.blockEditor||wp.editor,v=h.PanelColorSettings,y=h.InspectorControls,_=h.FontSizePicker,k=wp.components,O=k.PanelBody,E=k.BaseControl,C=function(e){function t(){return i()(this,t),n.apply(this,arguments)}s()(t,e);var n=r(t);return l()(t,[{key:"render",value:function(){var e=this.props,t=e.attributes.icon,n=(e.backgroundColor,e.setBackgroundColor,e.textColor),r=e.setTextColor,o=e.iconColor,i=e.setIconColor,a=e.fontSize,l=e.setFontSize,c=e.fallbackFontSize,s=e.setAttributes;return wp.element.createElement(y,null,wp.element.createElement(O,{title:Object(f.__)("Settings","getwid")},wp.element.createElement(_,{fallbackFontSize:c,value:a.size,onChange:l}),wp.element.createElement(E,{label:Object(f.__)("Icon","getwid")},wp.element.createElement(g.a,{value:t,onChange:function(e){return s({icon:e})}})),wp.element.createElement(v,{title:Object(f.__)("Text Color","getwid"),colorSettings:[{value:n.color,onChange:r,label:Object(f.__)("Text Color","getwid")}]}),wp.element.createElement(v,{initialOpen:!1,title:Object(f.__)("Icon Color","getwid"),colorSettings:[{value:o.color,onChange:i,label:Object(f.__)("Icon Color","getwid")}]})))}}]),t}(w)},function(e,t){},function(e,t){},function(e,t,n){"use strict";var r=(n(0),n(450)),o=n(453),i=(n.n(o),n(1)),a=(n.n(i),window),l=(a.jQuery,wp.blocks.registerBlockType),c=wp.blockEditor||wp.editor,s=c.InnerBlocks;l("getwid/template-post-featured-background-image",{title:Object(i.__)("Background Featured Image","getwid"),icon:"images-alt2",category:Getwid.settings.post_type==Getwid.templates.name?"getwid-post-blocks":"getwid-blocks",keywords:[],supports:{inserter:Getwid.settings.post_type==Getwid.templates.name},edit:r.a,save:function(){return wp.element.createElement(s.Content,null)}})},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(n,!0).forEach(function(t){s()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function i(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=v()(e);if(t()){var o=v()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return w()(this,n)}}var a=n(9),l=n.n(a),c=n(7),s=n.n(c),u=n(2),p=n.n(u),d=n(4),m=n.n(d),g=n(5),f=n.n(g),b=n(6),w=n.n(b),h=n(3),v=n.n(h),y=(n(0),n(451)),_=n(452),k=(n.n(_),n(8)),O=n.n(k),E=n(21),C=n(1),j=(n.n(C),wp),S=j.serverSideRender,x=wp.element,P=x.Component,T=x.Fragment,R=wp.components,N=R.Disabled,A=R.Dashicon,B=window,D=(B.jQuery,wp.blockEditor||wp.editor),M=D.InnerBlocks,I=wp.data.select,L=E.a.prepareGradientStyle,z=[["core/paragraph"]],V="wp-block-getwid-template-post-featured-background-image",F=function(e){function t(){return p()(this,t),n.apply(this,arguments)}f()(t,e);var n=i(t);return m()(t,[{key:"render",value:function(){var e,t=this.props,n=t.attributes,r=n.minHeight,i=n.contentMaxWidth,a=n.foregroundOpacity,c=n.foregroundColor,u=n.foregroundFilter,p=n.verticalAlign,d=n.verticalAlignTablet,m=n.verticalAlignMobile,g=n.horizontalAlign,f=n.horizontalAlignTablet,b=n.horizontalAlignMobile,w=n.paddingTopValue,h=n.paddingBottomValue,v=n.paddingLeftValue,_=n.paddingRightValue,k=n.paddingTop,E=n.paddingRight,j=n.paddingBottom,x=n.paddingLeft,P=n.paddingTopTablet,R=n.paddingRightTablet,B=n.paddingBottomTablet,D=n.paddingLeftTablet,F=n.paddingTopMobile,H=n.paddingRightMobile,G=n.paddingBottomMobile,W=n.paddingLeftMobile,U=t.className,q=(t.setAttributes,I("core/editor").getCurrentPostType()),Q=O()(U,(e={},s()(e,"getwid-padding-top-".concat(k),"custom"!==k&&""!==k),s()(e,"getwid-padding-bottom-".concat(j),"custom"!==j&&""!==j),s()(e,"getwid-padding-left-".concat(x),"custom"!==x&&""!==x),s()(e,"getwid-padding-right-".concat(E),"custom"!==E&&""!==E),s()(e,"getwid-padding-tablet-top-".concat(P),""!==P),s()(e,"getwid-padding-tablet-bottom-".concat(B),""!==B),s()(e,"getwid-padding-tablet-left-".concat(D),""!==D),s()(e,"getwid-padding-tablet-right-".concat(R),""!==R),s()(e,"getwid-padding-mobile-top-".concat(F),""!==F),s()(e,"getwid-padding-mobile-bottom-".concat(G),""!==G),s()(e,"getwid-padding-mobile-left-".concat(W),""!==W),s()(e,"getwid-padding-mobile-right-".concat(H),""!==H),s()(e,"getwid-align-items-".concat(p),"center"!==p),s()(e,"getwid-align-items-tablet-".concat(d),""!==d),s()(e,"getwid-align-items-mobile-".concat(m),""!==m),s()(e,"getwid-justify-content-".concat(g),"center"!==g),s()(e,"getwid-justify-content-tablet-".concat(f),""!==f),s()(e,"getwid-justify-content-mobile-".concat(b),""!==b),e)),K={minHeight:r},Y=O()("".concat(V,"__content")),J=o(o(o(o({maxWidth:i},"custom"===k?{paddingTop:w}:[]),"custom"===j?{paddingBottom:h}:[]),"custom"===x?{paddingLeft:v}:[]),"custom"===E?{paddingRight:_}:[]),$=o(o({backgroundColor:c},L("foreground",this.props)),{},{mixBlendMode:u}),Z=O()("".concat(V,"__foreground"),s()({},"getwid-opacity-".concat(a),35!=a));return q&&q==Getwid.templates.name?wp.element.createElement(T,null,wp.element.createElement(y.a,l()({},o({},this.props),{key:"inspector"})),wp.element.createElement("div",{style:K,className:Q},wp.element.createElement("div",{className:"components-placeholder editor-media-placeholder wp-block-getwid-template-post-featured-background-image__image"},wp.element.createElement("div",{className:"components-placeholder__label"},wp.element.createElement(A,{icon:"format-image"})),wp.element.createElement("div",{className:"components-placeholder__instructions"},Object(C.__)("Background Featured Image","getwid"))),wp.element.createElement("div",{className:Z,style:$}),wp.element.createElement("div",{className:Y,style:J},wp.element.createElement(M,{template:z,templateInsertUpdatesSelection:!1,templateLock:!1})))):wp.element.createElement(T,null,wp.element.createElement(N,null,wp.element.createElement(S,{block:"getwid/template-post-featured-background-image",attributes:this.props.attributes})))}}]),t}(P);t.a=F},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=m()(e);if(t()){var o=m()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p()(this,n)}}n.d(t,"a",function(){return T});var o=n(2),i=n.n(o),a=n(4),l=n.n(a),c=n(5),s=n.n(c),u=n(6),p=n.n(u),d=n(3),m=n.n(d),g=(n(0),n(17)),f=n(14),b=n(1),w=(n.n(b),window),h=(w.jQuery,wp.element),v=h.Component,y=h.Fragment,_=wp.blockEditor||wp.editor,k=_.InspectorControls,O=_.PanelColorSettings,E=wp.components,C=E.SelectControl,j=E.PanelBody,S=E.RangeControl,x=E.Button,P=E.TabPanel,T=function(e){function t(){return i()(this,t),n.apply(this,arguments)}s()(t,e);var n=r(t);return l()(t,[{key:"renderForegroundSettings",value:function(){var e=this.props,t=e.attributes,n=t.foregroundOpacity,r=t.foregroundColor,o=t.foregroundFilter,i=t.foregroundGradientType,a=t.foregroundGradientFirstColor,l=t.foregroundGradientFirstColorLocation,c=t.foregroundGradientSecondColor,s=t.foregroundGradientSecondColorLocation,u=t.foregroundGradientAngle,p=e.setAttributes,d=function(){p({foregroundGradientType:void 0,foregroundGradientFirstColor:void 0,foregroundGradientFirstColorLocation:void 0,foregroundGradientSecondColor:void 0,foregroundGradientSecondColorLocation:void 0,foregroundGradientAngle:void 0,foregroundGradientCustomEnable:void 0,foregroundGradientCustom:void 0})};return wp.element.createElement(j,{title:Object(b.__)("Overlay","getwid"),initialOpen:!1},wp.element.createElement(S,{label:Object(b.__)("Overlay Layer Opacity","getwid"),value:void 0!==n?n:"",onChange:function(e){return p({foregroundOpacity:e})},min:0,max:100,step:5,allowReset:!0}),wp.element.createElement(C,{label:Object(b.__)("Blend Mode","getwid"),value:void 0!==o?o:"",onChange:function(e){return p({foregroundFilter:e})},options:[{value:"",label:Object(b.__)("None","getwid")},{value:"normal",label:Object(b.__)("Normal","getwid")},{value:"multiply",label:Object(b.__)("Multiply","getwid")},{value:"screen",label:Object(b.__)("Screen","getwid")},{value:"overlay",label:Object(b.__)("Overlay","getwid")},{value:"darken",label:Object(b.__)("Darken","getwid")},{value:"lighten",label:Object(b.__)("Lighten","getwid")},{value:"color-dodge",label:Object(b.__)("Color Dodge","getwid")},{value:"color-burn",label:Object(b.__)("Color Burn","getwid")},{value:"hard-light",label:Object(b.__)("Hard Light","getwid")},{value:"soft-light",label:Object(b.__)("Soft Light","getwid")},{value:"difference",label:Object(b.__)("Difference","getwid")},{value:"exclusion",label:Object(b.__)("Exclusion","getwid")},{value:"hue",label:Object(b.__)("Hue","getwid")},{value:"saturation",label:Object(b.__)("Saturation","getwid")},{value:"color",label:Object(b.__)("Color","getwid")},{value:"luminosity",label:Object(b.__)("Luminosity","getwid")}]}),wp.element.createElement(O,{title:Object(b.__)("Overlay Color","getwid"),colorSettings:[{value:r,onChange:function(e){return p({foregroundColor:e})},label:Object(b.__)("Overlay Color","getwid")}],initialOpen:!1}),wp.element.createElement(j,{title:Object(b.__)("Overlay Gradient","getwid"),initialOpen:!1},wp.element.createElement(C,{value:void 0!==i?i:"",onChange:function(e){return p({foregroundGradientType:e})},options:[{value:"",label:Object(b.__)("None","getwid")},{value:"linear",label:Object(b.__)("Linear","getwid")},{value:"radial",label:Object(b.__)("Radial","getwid")}]}),i&&wp.element.createElement(y,null,wp.element.createElement(x,{isSmall:!0,onClick:d},Object(b.__)("Reset","getwid")),wp.element.createElement(O,{title:Object(b.__)("Gradient Colors","getwid"),colorSettings:[{value:a,onChange:function(e){return p({foregroundGradientFirstColor:e})},label:Object(b.__)("First Color","getwid")},{value:c,onChange:function(e){return p({foregroundGradientSecondColor:e})},label:Object(b.__)("Second Color","getwid")}]}),wp.element.createElement(S,{label:Object(b.__)("First Color Location","getwid"),value:void 0!==l?l:"",onChange:function(e){return p({foregroundGradientFirstColorLocation:e})},placeholder:0,min:0,max:100,step:1}),wp.element.createElement(S,{label:Object(b.__)("Second Color Location","getwid"),value:void 0!==s?s:"",onChange:function(e){return p({foregroundGradientSecondColorLocation:e})},placeholder:100,min:0,max:100,step:1}),"linear"===i&&wp.element.createElement(S,{label:Object(b.__)("Angle","getwid"),value:void 0!==u?u:"",onChange:function(e){return p({foregroundGradientAngle:e})},placeholder:180,min:0,max:360,step:1}))))}},{key:"renderAlignmentSettings",value:function(){var e=this.props.attributes,t=e.verticalAlign,n=e.horizontalAlign,r=e.verticalAlignTablet,o=e.horizontalAlignTablet,i=e.verticalAlignMobile,a=e.horizontalAlignMobile,l=this.props.setAttributes;return wp.element.createElement(j,{title:Object(b.__)("Alignment","getwid"),initialOpen:!1},wp.element.createElement(P,{className:"getwid-editor-tabs",activeClass:"is-active",tabs:[{name:"desktop",title:Object(b.__)("Desktop","getwid"),className:"components-button is-link is-small"},{name:"tablet",title:Object(b.__)("Tablet","getwid"),className:"components-button is-link is-small"},{name:"mobile",title:Object(b.__)("Mobile","getwid"),className:"components-button is-link is-small"}]},function(e){switch(e.name){case"desktop":return wp.element.createElement(y,null,wp.element.createElement(C,{label:Object(b.__)("Vertical Alignment","getwid"),value:void 0!==t?t:"center",onChange:function(e){return l({verticalAlign:e})},options:[{value:"flex-start",label:Object(b.__)("Top","getwid")},{value:"center",label:Object(b.__)("Middle","getwid")},{value:"flex-end",label:Object(b.__)("Bottom","getwid")}]}),wp.element.createElement(C,{label:Object(b.__)("Horizontal Alignment","getwid"),value:void 0!==n?n:"center",onChange:function(e){return l({horizontalAlign:e})},options:[{value:"flex-start",label:Object(b.__)("Left","getwid")},{value:"center",label:Object(b.__)("Center","getwid")},{value:"flex-end",label:Object(b.__)("Right","getwid")}]}));case"tablet":return wp.element.createElement(y,null,wp.element.createElement(C,{label:Object(b.__)("Vertical Alignment","getwid"),value:void 0!==r?r:"center",onChange:function(e){return l({verticalAlignTablet:e})},options:[{value:"",label:Object(b.__)("Default","getwid")},{value:"flex-start",label:Object(b.__)("Top","getwid")},{value:"center",label:Object(b.__)("Middle","getwid")},{value:"flex-end",label:Object(b.__)("Bottom","getwid")}]}),wp.element.createElement(C,{label:Object(b.__)("Horizontal Alignment","getwid"),value:void 0!==o?o:"center",onChange:function(e){return l({horizontalAlignTablet:e})},options:[{value:"",label:Object(b.__)("Default","getwid")},{value:"flex-start",label:Object(b.__)("Left","getwid")},{value:"center",label:Object(b.__)("Center","getwid")},{value:"flex-end",label:Object(b.__)("Right","getwid")}]}));case"mobile":return wp.element.createElement(y,null,wp.element.createElement(C,{label:Object(b.__)("Vertical Alignment","getwid"),value:void 0!==i?i:"center",onChange:function(e){return l({verticalAlignMobile:e})},options:[{value:"",label:Object(b.__)("Default","getwid")},{value:"flex-start",label:Object(b.__)("Top","getwid")},{value:"center",label:Object(b.__)("Middle","getwid")},{value:"flex-end",label:Object(b.__)("Bottom","getwid")}]}),wp.element.createElement(C,{label:Object(b.__)("Horizontal Alignment","getwid"),value:void 0!==a?a:"center",onChange:function(e){return l({horizontalAlignMobile:e})},options:[{value:"",label:Object(b.__)("Default","getwid")},{value:"flex-start",label:Object(b.__)("Left","getwid")},{value:"center",label:Object(b.__)("Center","getwid")},{value:"flex-end",label:Object(b.__)("Right","getwid")}]}))}}))}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.minHeight,r=t.contentMaxWidth,o=t.imageSize,i=e.setAttributes;e.changeState,e.getState;return wp.element.createElement(k,null,wp.element.createElement(j,{title:Object(b.__)("Settings","getwid")},wp.element.createElement(g.a,{label:Object(b.__)("Image Height","getwid"),value:n,units:[{label:"px",value:"px"},{label:"vh",value:"vh"},{label:"vw",value:"vw"},{label:"%",value:"%"}],onChange:function(e){return i({minHeight:e})}}),wp.element.createElement(S,{label:Object(b.__)("Content Width","getwid"),value:void 0!==r?r:"",onChange:function(e){i({contentMaxWidth:e})},allowReset:!0,min:0,max:2e3,step:1}),wp.element.createElement(C,{label:Object(b.__)("Image Size","getwid"),help:Object(b.__)("For images from Media Library only.","getwid"),value:o,onChange:function(e){i({imageSize:e})},options:Getwid.settings.image_sizes})),this.renderAlignmentSettings(),Object(f.g)(this),this.renderForegroundSettings())}}]),t}(v)},function(e,t){},function(e,t){},function(e,t,n){"use strict";var r=(n(0),n(455)),o=n(458),i=(n.n(o),n(1)),a=(n.n(i),window),l=(a.jQuery,wp.blocks.registerBlockType),c=wp.blockEditor||wp.editor,s=c.InnerBlocks;l("getwid/template-post-meta",{title:Object(i.__)("Meta","getwid"),icon:"tagcloud",category:Getwid.settings.post_type==Getwid.templates.name?"getwid-post-blocks":"getwid-blocks",keywords:[],supports:{inserter:Getwid.settings.post_type==Getwid.templates.name},edit:r.a,save:function(){return wp.element.createElement(s.Content,null)}})},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(n,!0).forEach(function(t){s()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function i(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=_()(e);if(t()){var o=_()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return v()(this,n)}}var a=n(9),l=n.n(a),c=n(7),s=n.n(c),u=n(2),p=n.n(u),d=n(4),m=n.n(d),g=n(11),f=n.n(g),b=n(5),w=n.n(b),h=n(6),v=n.n(h),y=n(3),_=n.n(y),k=(n(0),n(8)),O=n.n(k),E=n(456),C=n(457),j=(n.n(C),n(10)),S=(n.n(j),n(1)),x=(n.n(S),window),P=(x.jQuery,wp.element),T=P.Fragment,R=P.Component,N=wp.blockEditor||wp.editor,A=(N.BlockAlignmentToolbar,N.AlignmentToolbar),B=N.BlockControls,D=N.InnerBlocks,M=N.withColors,I=wp.data,L=I.select,z=I.dispatch,V=wp.compose.compose,F=[["getwid/template-post-author"],["getwid/template-post-date"],["getwid/template-post-categories"],["getwid/template-post-tags"],["getwid/template-post-comments"]],H=["core/paragraph","getwid/template-post-author","getwid/template-post-date","getwid/template-post-categories","getwid/template-post-tags","getwid/template-post-comments"],G=function(e){function t(){var e;return p()(this,t),e=n.apply(this,arguments),e.setInnerBlocksAttributes=e.setInnerBlocksAttributes.bind(f()(e)),e}w()(t,e);var n=i(t);return m()(t,[{key:"componentDidMount",value:function(){this.setInnerBlocksAttributes("Mount")}},{key:"componentDidUpdate",value:function(e,t){this.setInnerBlocksAttributes("Update",e,t)}},{key:"setInnerBlocksAttributes",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"mount",t=arguments.length>1?arguments[1]:void 0,n=(arguments.length>2&&arguments[2],this.props.attributes.blockDivider);if("Update"!=e||!Object(j.isEqual)(this.props.attributes,t.attributes)){var r=L("core/editor").getBlock(this.props.clientId).innerBlocks;r.length&&jQuery.each(r,function(t,r){("Mount"==e&&void 0===r.attributes.blockDivider||"Update"==e)&&z("core/editor").updateBlockAttributes(r.clientId,{blockDivider:n})})}}},{key:"render",value:function(){var e,t=this.props,n=t.attributes,r=n.textAlignment,i=n.direction,a=t.textColor,c=t.setAttributes,u=t.className,p=O()("wp-block-getwid-template-post-meta",u,(e={},s()(e,"has-direction-".concat(i),"row"!==i),s()(e,"has-text-color",a.color),s()(e,a.class,a.class),e)),d=L("core/editor").getCurrentPostType();return d&&d==Getwid.templates.name?wp.element.createElement(T,null,wp.element.createElement(E.a,l()({},o({},this.props),{key:"inspector"})),wp.element.createElement(B,null,wp.element.createElement(A,{value:r,onChange:function(e){return c({textAlignment:e})}})),wp.element.createElement("div",{className:p,style:{textAlign:r,color:a.color}},wp.element.createElement(D,{template:F,allowedBlocks:H,templateInsertUpdatesSelection:!1}))):wp.element.createElement(T,null,wp.element.createElement(Disabled,null,wp.element.createElement(ServerSideRender,{block:"getwid/template-post-meta",attributes:this.props.attributes})))}}]),t}(R);t.a=V([M({textColor:"color"})])(G)},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=m()(e);if(t()){var o=m()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p()(this,n)}}n.d(t,"a",function(){return O});var o=n(2),i=n.n(o),a=n(4),l=n.n(a),c=n(5),s=n.n(c),u=n(6),p=n.n(u),d=n(3),m=n.n(d),g=(n(0),n(1)),f=(n.n(g),window),b=(f.jQuery,wp.element.Component),w=wp.blockEditor||wp.editor,h=w.InspectorControls,v=w.PanelColorSettings,y=wp.components,_=y.PanelBody,k=y.SelectControl,O=function(e){function t(){return i()(this,t),n.apply(this,arguments)}s()(t,e);var n=r(t);return l()(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.direction,r=t.blockDivider,o=e.textColor,i=e.setTextColor,a=e.setAttributes;return wp.element.createElement(h,null,wp.element.createElement(_,{title:Object(g.__)("Settings","getwid")},wp.element.createElement(k,{label:Object(g.__)("Divider","getwid"),value:r,onChange:function(e){return a({blockDivider:e})},options:[{value:"",label:Object(g.__)("None","getwid")},{value:"/",label:"/"},{value:"|",label:"|"},{value:"•",label:"•"},{value:"·",label:"·"}]}),wp.element.createElement(k,{label:Object(g.__)("Direction","getwid"),value:n,onChange:function(e){return a({direction:e})},options:[{value:"row",label:Object(g.__)("Horizontal","getwid")},{value:"column",label:Object(g.__)("Vertical","getwid")}]}),wp.element.createElement(v,{title:Object(g.__)("Text Color","getwid"),colorSettings:[{value:o.color,onChange:i,label:Object(g.__)("Text Color","getwid")}]})))}}]),t}(b)},function(e,t){},function(e,t){},function(e,t,n){"use strict";var r=n(460),o=n(463),i=(n.n(o),n(1)),a=(n.n(i),window);a.jQuery;(0,wp.blocks.registerBlockType)("getwid/template-post-custom-field",{title:Object(i.__)("Custom Field","getwid"),category:Getwid.settings.post_type==Getwid.templates.name?"getwid-post-blocks":"getwid-blocks",keywords:[],supports:{inserter:Getwid.settings.post_type==Getwid.templates.name},edit:r.a,save:function(){return null}})},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(n,!0).forEach(function(t){s()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function i(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=v()(e);if(t()){var o=v()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return w()(this,n)}}var a=n(9),l=n.n(a),c=n(7),s=n.n(c),u=n(2),p=n.n(u),d=n(4),m=n.n(d),g=n(5),f=n.n(g),b=n(6),w=n.n(b),h=n(3),v=n.n(h),y=(n(0),n(461)),_=n(8),k=n.n(_),O=n(462),E=(n.n(O),n(1)),C=(n.n(E),wp),j=C.serverSideRender,S=wp.element,x=S.Component,P=S.Fragment,T=wp.components,R=T.Disabled,N=T.Toolbar,A=T.withFallbackStyles,B=window,D=(B.jQuery,wp.blockEditor||wp.editor),M=(D.BlockAlignmentToolbar,D.AlignmentToolbar),I=D.BlockControls,L=D.withColors,z=D.withFontSizes,V=wp.data.select,F=wp.compose.compose,H=window,G=H.getComputedStyle,W=A(function(e,t){var n=t.attributes,r=n.textColor,o=n.backgroundColor,i=n.fontSize,a=n.customFontSize,l=e.querySelector('[contenteditable="true"]'),c=l?G(l):null;return{fallbackBackgroundColor:o||!c?void 0:c.backgroundColor,fallbackTextColor:r||!c?void 0:c.color,fallbackFontSize:i||a||!c?void 0:parseInt(c.fontSize)||void 0}}),U=function(e){function t(){return p()(this,t),n.apply(this,arguments)}f()(t,e);var n=i(t);return m()(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.textAlignment,r=t.bold,i=t.italic,a=e.textColor,c=e.fontSize,u=e.className,p=e.setAttributes,d=V("core/editor").getCurrentPostType();return d&&d==Getwid.templates.name?wp.element.createElement(P,null,wp.element.createElement(y.a,l()({},o({},this.props),{key:"inspector"})),wp.element.createElement(I,null,wp.element.createElement(M,{value:n,onChange:function(e){return p({textAlignment:e})}}),wp.element.createElement(N,{controls:[{icon:"editor-bold",title:Object(E.__)("Bold","getwid"),isActive:r,onClick:function(){p({bold:!r})}},{icon:"editor-italic",title:Object(E.__)("Italic","getwid"),isActive:i,onClick:function(){p({italic:!i})}}]})),wp.element.createElement("div",{className:k()(u,s()({},c.class,c.class)),style:{color:a.color,textAlign:n,fontWeight:r?"bold":void 0,fontStyle:i?"italic":void 0,fontSize:c.size?c.size+"px":void 0}},Object(E.__)("Custom Field","getwid"))):wp.element.createElement(P,null,wp.element.createElement(R,null,wp.element.createElement(j,{block:"getwid/template-post-custom-field",attributes:this.props.attributes})))}}]),t}(x);t.a=F([L("backgroundColor",{textColor:"color"}),z("fontSize"),W])(U)},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=m()(e);if(t()){var o=m()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p()(this,n)}}n.d(t,"a",function(){return E});var o=n(2),i=n.n(o),a=n(4),l=n.n(a),c=n(5),s=n.n(c),u=n(6),p=n.n(u),d=n(3),m=n.n(d),g=(n(0),n(1)),f=(n.n(g),window),b=(f.jQuery,wp.element.Component),w=wp.blockEditor||wp.editor,h=w.PanelColorSettings,v=w.InspectorControls,y=w.FontSizePicker,_=wp.components,k=_.PanelBody,O=_.TextControl,E=function(e){function t(){return i()(this,t),n.apply(this,arguments)}s()(t,e);var n=r(t);return l()(t,[{key:"render",value:function(){var e=this.props,t=e.attributes.customField,n=e.textColor,r=e.setTextColor,o=e.fontSize,i=e.setFontSize,a=e.fallbackFontSize,l=e.setAttributes;return wp.element.createElement(v,null,wp.element.createElement(k,{title:Object(g.__)("Settings","getwid")},wp.element.createElement(O,{label:Object(g.__)("Custom Field","getwid"),value:t,onChange:function(e){return l({customField:e})}}),wp.element.createElement(y,{fallbackFontSize:a,value:o.size,onChange:i}),wp.element.createElement(h,{title:Object(g.__)("Text Color","getwid"),colorSettings:[{value:n.color,onChange:r,label:Object(g.__)("Text Color","getwid")}]})))}}]),t}(b)},function(e,t){},function(e,t){},function(e,t,n){"use strict";var r=n(465),o=n(467),i=(n.n(o),n(468)),a=n(1),l=(n.n(a),window);l.jQuery;(0,wp.blocks.registerBlockType)("getwid/template-post-layout-helper",{title:Object(a.__)("Layout","getwid"),icon:"layout",category:Getwid.settings.post_type==Getwid.templates.name?"getwid-post-blocks":"getwid-blocks",keywords:[],supports:{inserter:Getwid.settings.post_type==Getwid.templates.name,multiple:!1,customClassName:!1},edit:r.a,attributes:i.a,save:function(){return null}})},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=m()(e);if(t()){var o=m()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p()(this,n)}}var o=n(2),i=n.n(o),a=n(4),l=n.n(a),c=n(5),s=n.n(c),u=n(6),p=n.n(u),d=n(3),m=n.n(d),g=(n(0),n(8)),f=n.n(g),b=n(466),w=(n.n(b),n(1)),h=(n.n(w),wp.element),v=h.Component,y=h.Fragment,_=wp.components,k=_.Button,O=_.Dashicon,E=window,C=(E.jQuery,wp.data),j=C.select,S=C.dispatch,x=function(e){function t(){return i()(this,t),n.apply(this,arguments)}s()(t,e);var n=r(t);return l()(t,[{key:"render",value:function(){var e=this.props,t=(e.attributes.align,e.setAttributes,e.className),n=j("core/editor").getCurrentPostType(),r=j("core/editor").getSelectedBlockClientId(),o=[{title:Object(w.__)("Classic","getwid"),icon:wp.element.createElement("svg",{version:"1.1",width:"48",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 48 48",style:{"enable-background":"new 0 0 48 48"}},wp.element.createElement("path",{d:"M45.99,0H2.01C0.9,0,0,0.9,0,2.01v22.98C0,26.1,0.9,27,2.01,27h43.98C47.1,27,48,26.1,48,24.99V2.01C48,0.9,47.1,0,45.99,0z M45.99,25L2,24.99L2.01,2h43.98V25z"}),wp.element.createElement("path",{d:"M5,19.66c0.23,0,0.46-0.08,0.65-0.24l1.14-0.98c0.42-0.36,0.47-0.99,0.11-1.41c-0.36-0.42-0.99-0.47-1.41-0.11L4.35,17.9 c-0.42,0.36-0.47,0.99-0.11,1.41C4.44,19.54,4.72,19.66,5,19.66z"}),wp.element.createElement("path",{d:"M28.61,19.94c0.23,0.2,0.5,0.34,0.8,0.43c0.09,0.03,0.19,0.04,0.28,0.04c0.42,0,0.8-0.29,0.93-0.73 c0.16-0.53-0.18-1.11-0.71-1.27l-1.94-1.67c-0.42-0.36-1.05-0.32-1.41,0.11c-0.36,0.42-0.31,1.05,0.11,1.41L28.61,19.94z"}),wp.element.createElement("path",{d:"M24.35,16.27c0.19,0.16,0.42,0.24,0.65,0.24c0.28,0,0.56-0.12,0.76-0.35c0.36-0.42,0.31-1.05-0.11-1.41l-2.32-2 c-0.42-0.36-1.05-0.31-1.41,0.11c-0.36,0.42-0.31,1.05,0.11,1.41L24.35,16.27z"}),wp.element.createElement("path",{d:"M31.51,18.7c0.2,0.23,0.48,0.35,0.76,0.35c0.23,0,0.46-0.08,0.65-0.24l2.2-1.89c0.47-0.29,0.63-0.9,0.34-1.37 c-0.29-0.47-0.9-0.63-1.37-0.34c-0.1,0.06-0.19,0.13-0.28,0.21l-2.18,1.88C31.2,17.65,31.15,18.28,31.51,18.7z"}),wp.element.createElement("path",{d:"M38.88,19.85c0.19,0.16,0.42,0.24,0.65,0.24c0.28,0,0.56-0.12,0.76-0.35c0.36-0.42,0.31-1.05-0.11-1.41l-2.32-2 c-0.42-0.36-1.05-0.31-1.41,0.11c-0.36,0.42-0.31,1.05,0.11,1.41L38.88,19.85z"}),wp.element.createElement("path",{d:"M8.46,16.68c0.23,0,0.46-0.08,0.65-0.24l2.32-2c0.42-0.36,0.47-0.99,0.1-1.41c-0.36-0.42-0.99-0.47-1.41-0.1l-2.32,2 c-0.42,0.36-0.47,0.99-0.1,1.41C7.9,16.56,8.18,16.68,8.46,16.68z"}),wp.element.createElement("path",{d:"M19.71,12.28c0.19,0.16,0.42,0.24,0.65,0.24c0.28,0,0.56-0.12,0.76-0.35c0.36-0.42,0.31-1.05-0.11-1.41l-2.32-2 c-0.42-0.36-1.05-0.31-1.41,0.11s-0.31,1.05,0.11,1.41L19.71,12.28z"}),wp.element.createElement("path",{d:"M13.1,12.68c0.23,0,0.46-0.08,0.65-0.24l2.32-2c0.42-0.36,0.47-0.99,0.1-1.41s-0.99-0.47-1.41-0.1l-2.32,2 c-0.42,0.36-0.47,0.99-0.1,1.41C12.54,12.56,12.82,12.68,13.1,12.68z"}),wp.element.createElement("path",{d:"M42.35,22.83c0.19,0.16,0.42,0.24,0.65,0.24c0.28,0,0.56-0.12,0.76-0.35c0.36-0.42,0.31-1.05-0.11-1.41l-1.14-0.98 c-0.42-0.36-1.05-0.31-1.41,0.11c-0.36,0.42-0.31,1.05,0.11,1.41L42.35,22.83z"}),wp.element.createElement("path",{d:"M1.52,33h27.96c0.84,0,1.52-0.67,1.52-1.5S30.32,30,29.48,30H1.52C0.68,30,0,30.67,0,31.5S0.68,33,1.52,33z"}),wp.element.createElement("path",{d:"M47,36H1c-0.55,0-1,0.45-1,1s0.45,1,1,1h46c0.55,0,1-0.45,1-1S47.55,36,47,36z"}),wp.element.createElement("path",{d:"M47,41H1c-0.55,0-1,0.45-1,1s0.45,1,1,1h46c0.55,0,1-0.45,1-1S47.55,41,47,41z"}),wp.element.createElement("path",{d:"M30,46H1c-0.55,0-1,0.45-1,1s0.45,1,1,1h29c0.55,0,1-0.45,1-1S30.55,46,30,46z"}),wp.element.createElement("circle",{cx:"30",cy:"10",r:"2"})),layout:[wp.blocks.createBlock("getwid/template-post-featured-image",{linkTo:"post"}),wp.blocks.createBlock("getwid/template-post-title",{linkTo:"post",headerTag:"h3"}),wp.blocks.createBlock("getwid/template-post-meta"),wp.blocks.createBlock("getwid/template-post-content"),wp.blocks.createBlock("getwid/template-post-button")]},{title:Object(w.__)("Image in background","getwid"),icon:wp.element.createElement("svg",{version:"1.1",width:"48",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 48 48",style:{"enable-background":"new 0 0 48 48"}},wp.element.createElement("path",{d:"M45.99,0H2.01C0.9,0,0,0.9,0,2.01v43.98C0,47.1,0.9,48,2.01,48h43.98C47.1,48,48,47.1,48,45.99V2.01C48,0.9,47.1,0,45.99,0z M45.99,46L2,45.99L2.01,2h43.98V46z"}),wp.element.createElement("path",{d:"M5,36.66c0.23,0,0.46-0.08,0.65-0.24l1.14-0.98c0.42-0.36,0.47-0.99,0.11-1.41c-0.36-0.42-0.99-0.47-1.41-0.11L4.35,34.9 c-0.42,0.36-0.47,0.99-0.11,1.41C4.44,36.54,4.72,36.66,5,36.66z"}),wp.element.createElement("path",{d:"M23.34,29.76c-0.42-0.36-1.05-0.31-1.41,0.11c-0.36,0.42-0.31,1.05,0.11,1.41l2.32,2c0.19,0.16,0.42,0.24,0.65,0.24 c0.28,0,0.56-0.12,0.76-0.35c0.36-0.42,0.31-1.05-0.11-1.41L23.34,29.76z"}),wp.element.createElement("path",{d:"M14.77,25.92l-2.32,2c-0.42,0.36-0.47,0.99-0.1,1.41c0.2,0.23,0.48,0.35,0.76,0.35c0.23,0,0.46-0.08,0.65-0.24l2.32-2 c0.42-0.36,0.47-0.99,0.1-1.41C15.82,25.61,15.19,25.56,14.77,25.92z"}),wp.element.createElement("path",{d:"M10.13,29.92l-2.32,2c-0.42,0.36-0.47,0.99-0.1,1.41c0.2,0.23,0.48,0.35,0.76,0.35c0.23,0,0.46-0.08,0.65-0.24l2.32-2 c0.42-0.36,0.47-0.99,0.1-1.41C11.18,29.61,10.55,29.56,10.13,29.92z"}),wp.element.createElement("path",{d:"M30,35.46c-0.04-0.01-0.07-0.03-0.09-0.04l-1.94-1.67c-0.42-0.36-1.05-0.31-1.41,0.11c-0.36,0.42-0.31,1.05,0.11,1.41 l1.94,1.67c0.23,0.2,0.5,0.34,0.8,0.43c0.1,0.03,0.2,0.04,0.29,0.04c0.43,0,0.82-0.28,0.96-0.71C30.82,36.19,30.53,35.63,30,35.46z"}),wp.element.createElement("path",{d:"M18.7,25.76c-0.42-0.36-1.05-0.31-1.41,0.11c-0.36,0.42-0.31,1.05,0.1,1.41l2.32,2c0.19,0.16,0.42,0.24,0.65,0.24 c0.28,0,0.56-0.12,0.76-0.35c0.36-0.42,0.31-1.05-0.1-1.41L18.7,25.76z"}),wp.element.createElement("path",{d:"M34.08,32.21c-0.1,0.06-0.19,0.13-0.28,0.2l-2.18,1.88c-0.42,0.36-0.47,0.99-0.11,1.41c0.2,0.23,0.48,0.35,0.76,0.35 c0.23,0,0.46-0.08,0.65-0.24l2.2-1.89c0.47-0.29,0.62-0.9,0.33-1.38S34.55,31.92,34.08,32.21z"}),wp.element.createElement("path",{d:"M37.86,33.33c-0.42-0.36-1.05-0.31-1.41,0.11c-0.36,0.42-0.31,1.05,0.11,1.41l2.32,2c0.19,0.16,0.42,0.24,0.65,0.24 c0.28,0,0.56-0.12,0.76-0.35c0.36-0.42,0.31-1.05-0.11-1.41L37.86,33.33z"}),wp.element.createElement("path",{d:"M41.1,37.44c-0.36,0.42-0.31,1.05,0.11,1.41l1.14,0.98c0.19,0.16,0.42,0.24,0.65,0.24c0.28,0,0.56-0.12,0.76-0.35 c0.36-0.42,0.31-1.05-0.11-1.41l-1.14-0.98C42.1,36.97,41.46,37.02,41.1,37.44z"}),wp.element.createElement("circle",{cx:"30",cy:"27",r:"2"}),wp.element.createElement("path",{d:"M7.52,12h15.96c0.84,0,1.52-0.67,1.52-1.5S24.32,9,23.48,9H7.52C6.68,9,6,9.67,6,10.5S6.68,12,7.52,12z"}),wp.element.createElement("path",{d:"M7,17h34c0.55,0,1-0.45,1-1s-0.45-1-1-1H7c-0.55,0-1,0.45-1,1S6.45,17,7,17z"})),layout:[wp.blocks.createBlock("getwid/template-post-featured-background-image",{paddingTop:"large",paddingBottom:"large",paddingLeft:"large",paddingRight:"large",foregroundColor:"#000",contentMaxWidth:"768"},[wp.blocks.createBlock("getwid/template-post-title",{linkTo:"post",headerTag:"h3",customTextColor:"#fff"}),wp.blocks.createBlock("getwid/template-post-content",{customTextColor:"#fff"})])]},{title:Object(w.__)("Two columns","getwid"),icon:wp.element.createElement("svg",{version:"1.1",width:"48",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 48 48",style:{"enable-background":"new 0 0 48 48"}},wp.element.createElement("path",{d:"M25.99,0H2.01C0.9,0,0,0.9,0,2.01v43.98C0,47.1,0.9,48,2.01,48h23.98C27.1,48,28,47.1,28,45.99V2.01C28,0.9,27.1,0,25.99,0z M25.99,46L2,45.99L2.01,2h23.98V46z"}),wp.element.createElement("path",{d:"M4,29.27c0.23,0,0.46-0.08,0.65-0.24l1.14-0.98c0.42-0.36,0.47-0.99,0.11-1.41c-0.36-0.42-0.99-0.47-1.41-0.11l-1.14,0.98 c-0.42,0.36-0.47,0.99-0.11,1.41C3.44,29.15,3.72,29.27,4,29.27z"}),wp.element.createElement("path",{d:"M14.5,27.9c0.19,0.16,0.42,0.24,0.65,0.24c0.28,0,0.56-0.12,0.76-0.35c0.36-0.42,0.31-1.05-0.11-1.41l-2.46-2.12 c-0.42-0.36-1.05-0.31-1.41,0.11c-0.36,0.42-0.31,1.05,0.11,1.41L14.5,27.9z"}),wp.element.createElement("path",{d:"M7.6,26.17c0.23,0,0.46-0.08,0.65-0.24l2.1-1.81c0.5-0.12,0.82-0.61,0.75-1.12c-0.08-0.55-0.59-0.92-1.14-0.84 c-0.31,0.05-0.59,0.17-0.84,0.38l-2.18,1.88c-0.42,0.36-0.46,0.99-0.1,1.41C7.04,26.05,7.32,26.17,7.6,26.17z"}),wp.element.createElement("path",{d:"M17.12,27.69c-0.42,0.36-0.46,0.99-0.1,1.41c0.2,0.23,0.48,0.35,0.76,0.35c0.23,0,0.46-0.08,0.65-0.24l1.55-1.34 c0.39,0.18,0.87,0.09,1.17-0.25c0.36-0.42,0.32-1.05-0.1-1.41c-0.59-0.52-1.57-0.53-2.2,0L17.12,27.69z"}),wp.element.createElement("path",{d:"M23.35,30.83c0.19,0.16,0.42,0.24,0.65,0.24c0.28,0,0.56-0.12,0.76-0.35c0.36-0.42,0.31-1.05-0.11-1.41l-1.14-0.98 c-0.42-0.36-1.05-0.31-1.41,0.11c-0.36,0.42-0.31,1.05,0.11,1.41L23.35,30.83z"}),wp.element.createElement("circle",{cx:"17",cy:"21",r:"2"}),wp.element.createElement("path",{d:"M33.52,18h12.96c0.84,0,1.52-0.67,1.52-1.5S47.32,15,46.48,15H33.52C32.68,15,32,15.67,32,16.5S32.68,18,33.52,18z"}),wp.element.createElement("path",{d:"M47,21H33c-0.55,0-1,0.45-1,1s0.45,1,1,1h14c0.55,0,1-0.45,1-1S47.55,21,47,21z"}),wp.element.createElement("path",{d:"M47,26H33c-0.55,0-1,0.45-1,1s0.45,1,1,1h14c0.55,0,1-0.45,1-1S47.55,26,47,26z"}),wp.element.createElement("path",{d:"M42,31h-9c-0.55,0-1,0.45-1,1s0.45,1,1,1h9c0.55,0,1-0.45,1-1S42.55,31,42,31z"})),layout:[wp.blocks.createBlock("core/columns",{linkTo:"post",imageSize:"post-thumbnail"},[wp.blocks.createBlock("core/column",{},[wp.blocks.createBlock("getwid/template-post-featured-image",{linkTo:"post"})]),wp.blocks.createBlock("core/column",{},[wp.blocks.createBlock("getwid/template-post-title",{linkTo:"post",headerTag:"h3"}),wp.blocks.createBlock("getwid/template-post-content"),wp.blocks.createBlock("getwid/template-post-link",{buttonText:"Continue reading"})])])]},{title:Object(w.__)("Custom background","getwid"),icon:wp.element.createElement("svg",{version:"1.1",width:"48",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 48 48",style:{"enable-background":"new 0 0 48 48"}},wp.element.createElement("path",{d:"M34.48,15H13.52C12.68,15,12,15.67,12,16.5s0.68,1.5,1.52,1.5h20.96c0.84,0,1.52-0.67,1.52-1.5S35.32,15,34.48,15z"}),wp.element.createElement("path",{d:"M35,21H13c-0.55,0-1,0.44-1,0.98c0,0.54,0.45,0.98,1,0.98h22c0.55,0,1-0.44,1-0.98C36,21.44,35.55,21,35,21z"}),wp.element.createElement("path",{d:"M35,26H13c-0.55,0-1,0.45-1,1s0.45,1,1,1h22c0.55,0,1-0.45,1-1S35.55,26,35,26z"}),wp.element.createElement("path",{d:"M35,31H13c-0.55,0-1,0.45-1,1s0.45,1,1,1h22c0.55,0,1-0.45,1-1S35.55,31,35,31z"}),wp.element.createElement("path",{d:"M47.84,1.23L47.84,1.23C47.84,1.23,47.84,1.23,47.84,1.23c-0.07-0.16-0.16-0.3-0.27-0.44c0,0,0,0,0,0l0,0 C47.21,0.31,46.64,0,45.99,0H2.41h-0.4C1.89,0,1.78,0.02,1.67,0.03l0,0c-0.83,0.14-1.49,0.8-1.63,1.63l0,0C0.02,1.78,0,1.89,0,2.01 v43.98c0,0.65,0.31,1.22,0.79,1.59l0,0c0,0,0,0,0,0c0.14,0.1,0.28,0.2,0.44,0.27c0,0,0,0,0,0l0,0C1.47,47.94,1.73,48,2.01,48h43.98 C47.1,48,48,47.1,48,45.99V2.01C48,1.73,47.94,1.47,47.84,1.23z M45.99,2v0.37l-6.94,6.94C38.74,9.12,38.38,9,37.99,9h-2.16l7-7 H45.99z M10,36.99L10.01,11h27.98v26L10,36.99z M42.12,2l-7,7h-3.53l7-7H42.12z M37.88,2l-7,7h-3.53l7-7H37.88z M33.64,2l-7,7h-3.53 l7-7H33.64z M29.4,2l-7,7h-3.53l7-7H29.4z M25.16,2l-7,7h-3.55l7-7H25.16z M20.9,2l-7,7h-3.53l7-7H20.9z M2.01,2h1.93L2.01,3.93 L2.01,2z M2.01,4.64L4.65,2h3.53L2.01,8.17L2.01,4.64z M2.01,8.88L8.89,2h3.53L2.01,12.42L2.01,8.88z M2.01,13.12L13.13,2h3.53 L9.62,9.04C9.75,9.01,9.88,9,10.01,9C8.9,9,8,9.9,8,11.01c0-0.13,0.01-0.26,0.04-0.39l-6.03,6.03L2.01,13.12z M2.01,17.36L8,11.37 v3.53L2.01,20.9L2.01,17.36z M2.01,21.61L8,15.61v3.55l-6,6L2.01,21.61z M2,25.86l6-6v3.53l-6,6L2,25.86z M2,30.1l6-6v3.53l-6,6 L2,30.1z M2,34.35l6-6v3.53l-6,6L2,34.35z M2,38.59l6-6v3.53l-6,6L2,38.59z M2,45.99l0-3.16l6-6v0.16c0,0.91,0.62,1.68,1.45,1.92 l-7.08,7.08L2,45.99z M3.08,45.99L10.07,39h3.53l-6.99,6.99L3.08,45.99z M7.32,45.99L14.31,39h3.55l-6.99,6.99L7.32,45.99z M11.57,45.99L18.57,39h3.53l-6.99,6.99L11.57,45.99z M15.81,45.99L22.81,39h3.53l-6.99,6.99L15.81,45.99z M20.05,45.99L27.05,39 h3.53l-6.99,6.99L20.05,45.99z M24.29,46l7-7h3.53l-7,7L24.29,46z M45.99,46l-0.48,0l0.48-0.48V46z M45.99,44.81L44.8,46l-3.55,0 l4.74-4.74V44.81z M45.99,40.55L40.55,46l-3.53,0l8.98-8.98V40.55z M45.99,36.31L36.31,46l-3.53,0l13.22-13.22V36.31z M45.99,32.07 L32.07,46l-3.53,0l7-7h2.46C39.1,39,40,38.1,40,36.99v-2.46l5.99-5.99V32.07z M45.99,27.83L40,33.82v-3.53l5.99-5.99V27.83z M45.99,23.59L40,29.58v-3.53l5.99-5.99V23.59z M45.99,19.35L40,25.34v-3.53l5.99-5.99V19.35z M45.99,15.11L40,21.1v-3.53l5.99-5.99 V15.11z M45.99,10.87L40,16.86v-3.55l5.99-5.99V10.87z M40,12.6v-1.59c0-0.54-0.21-1.02-0.56-1.38l6.55-6.55v3.53L40,12.6z"})),layout:[wp.blocks.createBlock("getwid/section",{customBackgroundColor:"#f3f8fb",paddingTop:"large",paddingBottom:"large",paddingLeft:"large",paddingRight:"large",verticalAlign:"flex-start",horizontalAlign:"flex-start"},[wp.blocks.createBlock("getwid/template-post-title",{linkTo:"post",headerTag:"h3"}),wp.blocks.createBlock("getwid/template-post-content"),wp.blocks.createBlock("getwid/template-post-link",{buttonText:"Continue reading"})])]}];if(n&&n==Getwid.templates.name)return wp.element.createElement(y,null,wp.element.createElement("div",{className:f()(t)},wp.element.createElement("div",{className:"components-placeholder block-editor-inner-blocks__template-picker has-many-options"},wp.element.createElement("div",{className:"components-placeholder__label"},wp.element.createElement(O,{icon:"layout"}),Object(w.__)("Choose Layout","getwid")),wp.element.createElement("div",{className:"components-placeholder__instructions"},Object(w.__)("Select a layout to start with, or make one yourself.","getwid")),wp.element.createElement("div",{className:"components-placeholder__fieldset"},wp.element.createElement("ul",{className:"block-editor-inner-blocks__template-picker-options"},o.map(function(e,t){return wp.element.createElement("li",null,wp.element.createElement(k,{className:"components-icon-button block-editor-inner-blocks__template-picker-option is-button is-default is-large",key:t,onClick:function(){S("core/editor").replaceBlocks(r,e.layout)}},e.icon,wp.element.createElement("span",null,e.title)))}))))))}}]),t}(v);t.a=x},function(e,t){},function(e,t){},function(e,t,n){"use strict";var r={align:{type:"string"}};t.a=r},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(n,!0).forEach(function(t){a()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var i=n(7),a=n.n(i),l=(n(0),n(76)),c=n(470),s=n(12),u=n(473),p=(n.n(u),n(1)),d=(n.n(p),n(10)),m=(n.n(d),n(77)),g=window,f=(g.jQuery,wp.blockEditor||wp.editor),b=f.InnerBlocks,w=wp.blocks,h=w.getBlockType,v=(w.createBlock,o(o({title:Object(p.__)("Mailchimp","getwid"),category:"getwid-blocks",icon:wp.element.createElement("svg",{x:"0px",y:"0px",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("path",{d:"M23.41,15.65c-0.14-0.34-0.48-0.58-0.87-0.68C22.4,14.34,22.2,14.05,22.2,14c0.05-0.1,0.14-0.14,0.14-0.19 c0.58-0.68,0.19-1.69-0.77-1.93c-0.53-0.53-1.01-0.77-1.45-0.97c-0.39-0.19-0.24-0.1-0.58-0.29c-0.1-0.48-0.14-1.55-0.29-2.32 c-0.14-0.68-0.43-1.21-0.82-1.5c-0.19-0.39-0.39-0.72-0.68-1.01c1.35-2.03,1.69-4.06,0.72-5.12C18.05,0.19,17.43,0,16.65,0 c-1.11,0-2.41,0.43-3.77,1.26c0,0-0.87-0.72-0.92-0.72C8.2-2.41-2.47,10.67,1.3,13.52l0.97,0.72c-0.63,1.69,0.24,3.72,2.03,4.35 c0.39,0.14,0.82,0.19,1.26,0.19c0,0,2.85,5.22,8.89,5.22c6.95,0,8.74-6.81,8.74-6.86C23.12,17.19,23.7,16.32,23.41,15.65z M1.54,12.65c-0.72-1.3,0.58-3.91,1.55-5.46C5.4,3.48,9.31,0.53,11.1,0.97l0.48-0.19c0,0,1.3,1.11,1.35,1.11 c0.92-0.53,2.08-1.11,3.14-1.21c-0.68,0.14-1.45,0.48-2.41,1.06c0,0-2.27,1.55-3.62,2.9c-0.72,0.72-3.72,4.35-3.72,4.3 c0.53-1.01,0.92-1.55,1.79-2.61C8.59,5.7,9.12,5.12,9.65,4.54c0.24-0.24,0.48-0.48,0.77-0.72c0.19-0.14,0.34-0.34,0.53-0.48 c0.1-0.05,0.14-0.14,0.24-0.19l0,0L9.46,1.69l0.1,0.63l1.26,1.11c0,0-1.11,0.77-1.69,1.26c-2.27,1.93-4.44,4.88-5.26,7.73H3.9 C3.51,12.66,3.08,13,2.74,13.48C2.6,13.52,1.68,12.89,1.54,12.65z M5.26,18.01c-1.35,0-2.41-1.16-2.41-2.56s1.11-2.56,2.41-2.56 c0.34,0,0.68,0.1,0.97,0.19c0,0,0.53,0.24,0.68,1.5l0,0l0,0c0.14-0.39,0.24-0.72,0.24-0.72c0.19,0.53,0.24,1.11,0.24,1.64l0,0l0,0 c0.14-0.19,0.29-0.53,0.29-0.53C7.96,16.61,6.8,18.01,5.26,18.01z M8.25,8.98L8.25,8.98c0,0,1.06-1.98,3.33-3.33 C11.39,5.6,11,5.7,10.91,5.7c0.43-0.34,1.21-0.58,1.74-0.72c-0.14-0.1-0.53-0.14-0.72-0.14c-0.05,0-0.05,0-0.1,0 c0.48-0.29,1.45-0.43,2.27-0.29c-0.1-0.16-0.34-0.25-0.54-0.3h-0.1h0.05c0.53-0.1,1.11,0,1.59,0.19c-0.05-0.14-0.19-0.29-0.29-0.39 L14.76,4c0.48,0.1,0.97,0.34,1.35,0.58c-0.05-0.1-0.14-0.24-0.24-0.34c0.48,0.14,1.01,0.48,1.26,0.97l0,0v0.05l0,0 C16.22,4.59,13.61,4.78,11,6.47C9.84,7.24,8.93,8.06,8.25,8.98z M22.45,16.85c-0.05,0.05-0.34,1.84-2.27,3.33 c-2.37,1.88-5.51,1.69-6.71,0.63c-0.63-0.58-0.92-1.45-0.92-1.45s-0.05,0.48-0.1,0.68c-0.48-0.82-0.43-1.79-0.43-1.79 s-0.24,0.48-0.39,0.72c-0.34-0.92-0.19-1.84-0.19-1.84l-0.29,0.43c0,0-0.14-1.01,0.19-1.84c0.34-0.92,1.01-1.55,1.16-1.64 c-0.48-0.14-1.06-0.63-1.06-0.63s0.24,0,0.39,0c0,0-1.01-0.72-1.21-1.84C10.76,11.8,11.05,12,11.05,12 c-0.1-0.29-0.14-0.92-0.05-1.59l0,0c0.19-1.21,1.21-2.03,2.32-2.03c1.21,0,2.03,0.24,3.04-0.68c0.19-0.19,0.39-0.39,0.68-0.43 c0.05,0,0.1-0.05,0.29-0.05c0.14,0,0.34,0.05,0.48,0.14c0.53,0.34,0.68,1.21,0.72,1.84c0.24,2.32,0.14,1.93,1.06,2.41 c0.43,0.24,0.97,0.43,1.55,1.06l0,0l0,0c0.48,0,0.72,0.39,0.53,0.68c-1.64,1.93-3.91,2.85-6.42,2.95c-0.1,0-0.34,0-0.34,0 c-1.01,0.05-1.35,1.35-0.72,2.12c0.39,0.48,1.21,0.68,1.84,0.68l0,0c2.75,0.05,5.55-1.88,6.04-2.99l0.05-0.1 c-0.1,0.14-2.8,2.66-6.08,2.56c0,0-0.34,0-0.68-0.1c-0.43-0.1-0.77-0.29-0.92-0.72c0.29,0.05,0.63,0.1,1.01,0.1 c2.37,0,4.06-1.06,3.91-1.11c0,0,0,0-0.05,0c-0.29,0.05-3.14,1.16-4.93,0.58c0-0.05,0-0.1,0.05-0.14c0.14-0.53,0.43-0.48,0.92-0.48 l0,0c1.64-0.05,2.95-0.48,3.96-0.92c1.06-0.48,1.88-1.16,2.17-1.5c0.39,0.63,0.39,1.45,0.39,1.45s0.14-0.05,0.34-0.05 C22.79,15.74,22.88,16.27,22.45,16.85z"}),wp.element.createElement("polygon",{points:"11,1.84 11.34,1.93 11.05,0.97 10.91,1.45 "}),wp.element.createElement("path",{d:"M12.45,2.17l-0.53-0.43l0.19,0.68C12.21,2.32,12.31,2.27,12.45,2.17z"}),wp.element.createElement("path",{d:"M17.33,10.82c0.29,0,0.53,0.05,0.77,0.14c0-0.68-0.39-1.4-0.68-1.3l0,0l0,0l0,0c-0.19,0.05-0.19,0.34-0.19,0.53 C17.23,10.43,17.23,10.62,17.33,10.82z"}),wp.element.createElement("path",{d:"M11.87,2.56l-1.11-0.34l0.72,0.63C11.63,2.75,11.73,2.66,11.87,2.56z"}),wp.element.createElement("path",{d:"M14.72,11.78c0.24,0.1,0.39,0.14,0.39,0.1c0,0,0-0.1-0.05-0.14c-0.14-0.19-0.39-0.39-0.63-0.43 c-0.53-0.19-1.16-0.1-1.59,0.29c-0.24,0.19-0.34,0.39-0.24,0.39c0.05,0,0.19-0.05,0.39-0.1C13.76,11.54,14.14,11.54,14.72,11.78z"}),wp.element.createElement("path",{d:"M14.77,12.41c0.14,0,0.24,0,0.24,0c0.05-0.1-0.29-0.34-0.82-0.29c-0.05,0-0.1,0.05-0.19,0.05h-0.05 c-0.1,0.05-0.24,0.1-0.34,0.19c-0.1,0.1-0.14,0.19-0.1,0.24c0.05,0.05,0.1,0,0.24-0.05C14.19,12.41,14.48,12.41,14.77,12.41z"}),wp.element.createElement("path",{d:"M6.13,14.58c0.14,0.19,0.1,0.29,0.14,0.34c0,0,0.05,0.05,0.1,0c0.1-0.05,0.1-0.14,0.1-0.24l0,0l0,0l0,0 c0-0.19-0.1-0.43-0.24-0.58l0,0l0,0c-0.19-0.19-0.43-0.39-0.77-0.43c-0.29-0.05-0.58,0-0.63,0.05l0,0c-0.05,0-0.1,0-0.14,0.05 c-0.77,0.29-1.11,1.06-0.97,1.79c0.05,0.19,0.14,0.39,0.24,0.53l0,0l0,0l0,0c0.14,0.19,0.34,0.14,0.24,0c0-0.05-0.1-0.24-0.14-0.53 c0-0.34,0.05-0.68,0.29-0.97c0.14-0.19,0.34-0.29,0.39-0.29l0,0c0.05,0,0.05-0.05,0.1-0.05h0.05c0.1-0.05,0.05,0,0.14-0.05l0,0 C5.6,14.1,5.98,14.34,6.13,14.58z"}),wp.element.createElement("path",{d:"M5.88,15.16c-0.05-0.05-0.1-0.1-0.1-0.14c0-0.1,0-0.14,0.1-0.19c0.05-0.05,0.1-0.05,0.1-0.1s-0.19-0.1-0.39,0.05 c-0.14,0.14-0.14,0.43,0.05,0.63c0.24,0.24,0.58,0.29,0.63,0.58c0,0.05,0,0.1,0,0.14c0,0.05,0,0.14,0,0.14 c-0.05,0.29-0.34,0.58-0.82,0.48c-0.1,0-0.14,0-0.14,0C5.26,16.8,5.45,17.05,5.84,17c0.53,0,0.92-0.53,0.82-1.11 C6.61,15.4,6.08,15.31,5.88,15.16z"}),wp.element.createElement("ellipse",{transform:"matrix(0.1541 -0.9881 0.9881 0.1541 3.5429 27.9174)",cx:"18.08",cy:"11.89",rx:"0.34",ry:"0.24"}),wp.element.createElement("ellipse",{transform:"matrix(0.4806 -0.877 0.877 0.4806 -1.9651 21.2287)",cx:"16.94",cy:"12.27",rx:"0.29",ry:"0.39"})),supports:{align:["wide","full"],html:!1,inserter:!Getwid.disabled_blocks.includes("getwid/mailchimp")},keywords:[Object(p.__)("email","getwid"),Object(p.__)("subscribe","getwid")],getEditWrapperProps:function(e){var t=e.align;if(["wide","full"].includes(t))return{"data-align":t}},attributes:{align:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},text:{type:"string",default:"Subscribe"},ids:{type:"array",default:[]}}},Object(s.b)("getwid/mailchimp",function(e){return wp.element.createElement(c.a,o(o({},e),{},{baseClass:"wp-block-getwid-mailchimp"}))})),{},{save:function(){return wp.element.createElement(b.Content,null)}})),y={category:"getwid-blocks",parent:["getwid/mailchimp"],supports:{multiple:!1,reusable:!1,html:!1},attributes:{label:{type:"string",default:null},required:{type:"boolean",default:!1},placeholder:{type:"string",default:""},name:{type:"string",default:""},id:{type:"string",default:""}},save:function(){return null}},_=function(e){var t=e.attributes,n=e.name;return null===t.label?h(n).title:t.label},k=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n){var r=n.className,i=n.isSelected,a=n.setAttributes,c=_(n);return wp.element.createElement(l.a,o(o({},n.attributes),{},{requiredDefault:t,setAttributes:a,isSelected:i,className:r,label:c,type:e}))}},O=[{name:"".concat("mailchimp","-field-email"),settings:o(o({},y),{},{title:Object(p.__)("Email address","getwid"),icon:wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"}," ",wp.element.createElement("path",{d:"M22 6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6zm-2 0l-8 5-8-5h16zm0 12H4V8l8 5 8-5v10z"})," "),edit:k("email",!0)})},{name:"".concat("mailchimp","-field-first-name"),settings:o(o({},y),{},{title:Object(p.__)("First name","getwid"),icon:wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"}," ",wp.element.createElement("path",{d:"M12 6c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m0 10c2.7 0 5.8 1.29 6 2H6c.23-.72 3.31-2 6-2m0-12C9.79 4 8 5.79 8 8s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm0 10c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"})," "),edit:k("text")})},{name:"".concat("mailchimp","-field-last-name"),settings:o(o({},y),{},{title:Object(p.__)("Last name","getwid"),icon:wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"}," ",wp.element.createElement("path",{d:"M12 6c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m0 10c2.7 0 5.8 1.29 6 2H6c.23-.72 3.31-2 6-2m0-12C9.79 4 8 5.79 8 8s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm0 10c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"})," "),edit:k("text")})}];Object(m.a)("mailchimp",v,O)},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(n,!0).forEach(function(t){s()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function i(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=_()(e);if(t()){var o=_()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return v()(this,n)}}var a=n(9),l=n.n(a),c=n(7),s=n.n(c),u=n(2),p=n.n(u),d=n(4),m=n.n(d),g=n(11),f=n.n(g),b=n(5),w=n.n(b),h=n(6),v=n.n(h),y=n(3),_=n.n(y),k=(n(0),n(471)),O=n(472),E=(n.n(O),n(1)),C=(n.n(E),n(8)),j=n.n(C),S=n(10),x=(n.n(S),window),P=x.jQuery,T=wp.compose.compose,R=wp.element,N=R.Component,A=R.Fragment,B=wp.blockEditor||wp.editor,D=B.InnerBlocks,M=B.RichText,I=B.withColors,L=wp.components,z=L.TextControl,V=L.Button,F=["core/bold","core/italic","core/link","core/image","core/strikethrough","core/text-color"],H=["getwid/".concat("mailchimp","-field-email"),"getwid/".concat("mailchimp","-field-first-name"),"getwid/".concat("mailchimp","-field-last-name"),"core/paragraph"],G=function(e){function t(){var e;return p()(this,t),e=n.apply(this,arguments),e.changeData=e.changeData.bind(f()(e)),e.getData=e.getData.bind(f()(e)),e.manageMailchimpApiKey=e.manageMailchimpApiKey.bind(f()(e)),e.renderMailchimpApiKeyForm=e.renderMailchimpApiKeyForm.bind(f()(e)),e.setGroupsName=e.setGroupsName.bind(f()(e)),e.state={mailchimpApiKey:""!=Getwid.settings.mailchimp_api_key?Getwid.settings.mailchimp_api_key:"",checkApiKey:""!=Getwid.settings.mailchimp_api_key?Getwid.settings.mailchimp_api_key:"",firstInit:!1,waitLoadList:!0,error:"",list:[]},e}w()(t,e);var n=i(t);return m()(t,[{key:"changeData",value:function(e){this.setState(o({},e))}},{key:"getData",value:function(e){return this.state[e]}},{key:"renderMailchimpApiKeyForm",value:function(){var e=this,t=this.props.baseClass;return wp.element.createElement("form",{className:"".concat(t,"__key-form"),onSubmit:function(t){return e.manageMailchimpApiKey(t,"sync")}},wp.element.createElement("span",{className:"form-title"},Object(E.__)("Mailchimp API key.","getwid")," ",wp.element.createElement("a",{href:"https://mailchimp.com/help/about-api-keys/#Find_or_Generate_Your_API_Key",target:"_blank"},Object(E.__)("Get your key.","getwid"))),wp.element.createElement("div",{className:"form-wrapper"},wp.element.createElement(z,{placeholder:Object(E.__)("Mailchimp API Key","getwid"),onChange:function(t){return e.changeData({checkApiKey:t})}}),wp.element.createElement(V,{isPrimary:!0,type:"submit",disabled:""==this.getData("checkApiKey")||null},Object(E.__)("Save API Key","getwid"))))}},{key:"manageMailchimpApiKey",value:function(e,t){e&&e.preventDefault();var n=this.getData,r=this.changeData,o={action:"getwid_mailchimp_api_key_manage",data:{api_key:n("checkApiKey")},option:t,nonce:Getwid.nonces.mailchimp_api_key};if("sync"==t||"save"==t){Getwid.settings.mailchimp_api_key=n("checkApiKey");this.state.waitLoadList||r({waitLoadList:!0}),P.post(Getwid.ajax_url,o,function(e){r({waitLoadList:!1}),r(e.success?{error:"",list:e.data}:{error:e.data,list:[]})}),r({firstInit:!0})}else"delete"==t&&(Getwid.settings.mailchimp_api_key="",P.post(Getwid.ajax_url,o))}},{key:"setGroupsName",value:function(){var e=this.state.list,t=[];return e.length&&Object(S.map)(e,function(e){t.push({value:e.id,label:e.title});var n=e.id;Object(S.map)(e.categories,function(e){Object(S.map)(e.interests,function(e){t.push({value:"".concat(n,"/").concat(e.id),label:e.title})})})}),t}},{key:"componentDidUpdate",value:function(){}},{key:"componentDidMount",value:function(){""!=Getwid.settings.mailchimp_api_key&&this.manageMailchimpApiKey(null,"save")}},{key:"render",value:function(){var e,t=this;if(""==Getwid.settings.mailchimp_api_key)return this.renderMailchimpApiKeyForm();var n=this.props,r=n.className,i=n.textColor,a=n.backgroundColor,c=n.baseClass,u=j()("wp-block-button__link",(e={"has-background":a.color},s()(e,a.class,a.class),s()(e,"has-text-color",i.color),s()(e,i.class,i.class),e)),p=this.changeData,d=this.getData,m=this.setGroupsName,g=this.manageMailchimpApiKey;return wp.element.createElement(A,null,wp.element.createElement(k.a,l()({},o(o(o(o(o({},this.props),{setGroupsName:m}),{manageMailchimpApiKey:g}),{changeData:p}),{getData:d}),{key:"inspector"})),wp.element.createElement("div",{className:"".concat(r)},wp.element.createElement("div",{className:"".concat(c,"__wrapper")},wp.element.createElement(D,{templateInsertUpdatesSelection:!1,allowedBlocks:H,template:[["getwid/".concat("mailchimp","-field-first-name"),{required:!1}],["getwid/".concat("mailchimp","-field-last-name"),{required:!1}],["getwid/".concat("mailchimp","-field-email"),{required:!0}]]})),wp.element.createElement("div",{className:"wp-block-button"},wp.element.createElement(M,{placeholder:Object(E.__)("Write text…","getwid"),value:this.props.attributes.text,allowedFormats:F,onChange:function(e){return t.props.setAttributes({text:e})},className:u,style:{backgroundColor:a.color,color:i.color},keepPlaceholderOnFocus:!0}))))}}]),t}(N);t.a=T([I("backgroundColor",{textColor:"color"})])(G)},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=m()(e);if(t()){var o=m()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p()(this,n)}}var o=n(2),i=n.n(o),a=n(4),l=n.n(a),c=n(5),s=n.n(c),u=n(6),p=n.n(u),d=n(3),m=n.n(d),g=(n(0),n(1)),f=(n.n(g),n(16)),b=wp.element,w=b.Component,h=b.Fragment,v=wp.blockEditor||wp.editor,y=v.InspectorControls,_=(v.PanelColorSettings,wp.components),k=_.TextControl,O=_.PanelBody,E=_.BaseControl,C=_.ButtonGroup,j=_.Button,S=_.ExternalLink,x=_.SelectControl,P=_.Spinner,T=function(e){function t(){return i()(this,t),n.apply(this,arguments)}s()(t,e);var n=r(t);return l()(t,[{key:"render",value:function(){var e=this.props.attributes.ids,t=this.props,n=t.manageMailchimpApiKey,r=t.setGroupsName,o=t.changeData,i=t.getData,a=t.baseClass,l=this.props,c=l.textColor,s=l.backgroundColor,u=l.setTextColor,p=l.setBackgroundColor,d=l.setAttributes,m=l.customBackgroundColor,b=l.customTextColor,w=i("error"),v=i("waitLoadList");return wp.element.createElement(y,null,wp.element.createElement(O,{title:Object(g.__)("Settings","getwid"),initialOpen:!0},wp.element.createElement(k,{label:Object(g.__)("Mailchimp API Key","getwid"),value:i("checkApiKey"),onChange:function(e){o({checkApiKey:e})}}),w&&wp.element.createElement("p",null,wp.element.createElement("span",{className:"".concat(a,"__message")},"Error for site owner: ".concat(w))),wp.element.createElement(E,null,wp.element.createElement(C,null,wp.element.createElement(j,{isPrimary:!0,disabled:v,onClick:function(e){return n(e,"sync")}},Object(g.__)("Sync","getwid")),wp.element.createElement(j,{isDefault:!0,onClick:function(e){o({checkApiKey:""}),n(e,"delete")}},Object(g.__)("Delete","getwid")))),wp.element.createElement(E,null,wp.element.createElement(S,{href:"https://mailchimp.com/help/about-api-keys/#Find_or_Generate_Your_API_Key"}," ",Object(g.__)("Get your key.","getwid")," ")),wp.element.createElement(h,null,v?wp.element.createElement(P,null):void 0,wp.element.createElement(x,{className:"getwid-wp56-fix",multiple:!0,size:"10",label:Object(g.__)("Select the lists you wish your visitors to be subscribed to.","getwid"),help:Object(g.__)("Hold ctrl/cmd to select multiple or deselect","getwid"),value:e,onChange:function(e){return d({ids:e})},options:v||w?[{value:"",label:""}]:r()})),wp.element.createElement(f.a,{colorSettings:[{title:Object(g.__)("Button Text Color","getwid"),colors:{customColor:b,defaultColor:c},changeColor:u},{title:Object(g.__)("Button Background Color","getwid"),colors:{customColor:m,defaultColor:s},changeColor:p}]})))}}]),t}(w);t.a=T},function(e,t){},function(e,t){},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(n,!0).forEach(function(t){a()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var i=n(7),a=n.n(i),l=(n(0),n(475)),c=n(478),s=n(479),u=n(80),p=n(81),d=(n.n(p),n(12)),m=n(1),g=(n.n(m),window),f=(g.jQuery,wp.data.select),b=wp.blocks,w=b.registerBlockType,h=b.createBlock,v=["left","center","right","wide","full"];w("getwid/video-popup",o(o({title:Object(m.__)("Video Popup","getwid"),category:"getwid-blocks",icon:wp.element.createElement("svg",{x:"0px",y:"0px",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("polygon",{points:"18,10 11,13 11,7 "}),wp.element.createElement("path",{d:"M6,2v4H2v16h16v-4h4V2H6z M16,20H4V8h2v10h10V20z M20,16H8V4h12V16z"})),keywords:[Object(m.__)("video","getwid"),Object(m.__)("popup","getwid"),Object(m.__)("button","getwid")],deprecated:[{attributes:u.a,save:s.a}],supports:{inserter:!Getwid.disabled_blocks.includes("getwid/video-popup")},transforms:{from:[{type:"block",blocks:["core/cover"],transform:function(e){return h("getwid/video-popup",{id:e.id,url:e.url,title:e.caption})}},{type:"block",blocks:["core/media-text"],transform:function(e){var t=f("core/editor").getSelectedBlockClientId(),n=f("core/editor").getBlock(t).innerBlocks,r={text:""};return n.length&&jQuery.each(n,function(e,t){"core/paragraph"==t.name&&(r.text=t.attributes.content)}),h("getwid/video-popup",{id:e.mediaId,url:e.mediaUrl,text:r.text})}},{type:"block",blocks:["core/image"],transform:function(e){return h("getwid/video-popup",{id:e.id,url:e.url,title:e.caption})}},{type:"block",blocks:["getwid/banner"],transform:function(e){return h("getwid/video-popup",{id:e.id,url:e.url,link:e.link,title:e.title,text:e.text})}},{type:"block",blocks:["getwid/image-hotspot"],transform:function(e){return h("getwid/video-popup",{id:e.id,url:e.url})}}],to:[{type:"block",blocks:["getwid/banner"],transform:function(e){return h("getwid/banner",{id:e.id,url:e.url,link:e.link,title:e.title,text:e.text})}},{type:"block",blocks:["getwid/image-box"],transform:function(e){return h("getwid/image-box",{id:e.id,url:e.url},[h("core/heading",{content:e.title}),h("core/paragraph",{content:e.text})])}},{type:"block",blocks:["core/media-text"],transform:function(e){return h("core/media-text",{mediaId:e.id,mediaUrl:e.url,mediaType:"image"},[h("core/paragraph",{content:e.text})])}},{type:"block",blocks:["core/cover"],transform:function(e){return h("core/cover",{id:e.id,url:e.url,caption:e.title?e.title:e.text?e.text:""})}},{type:"block",blocks:["core/image"],transform:function(e){return h("core/image",{id:e.id,url:e.url,caption:e.title?e.title:e.text?e.text:""})}},{type:"block",blocks:["core/heading"],transform:function(e){return h("core/heading",{content:e.title})}},{type:"block",blocks:["core/paragraph"],transform:function(e){return h("core/paragraph",{content:e.text})}}]},attributes:u.a,getEditWrapperProps:function(e){var t=e.align;if(-1!==v.indexOf(t))return{"data-align":t}}},Object(d.b)("getwid/video-popup",l.a)),{},{save:c.a}))},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(n,!0).forEach(function(t){s()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function i(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=v()(e);if(t()){var o=v()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return w()(this,n)}}var a=n(9),l=n.n(a),c=n(7),s=n.n(c),u=n(2),p=n.n(u),d=n(4),m=n.n(d),g=n(5),f=n.n(g),b=n(6),w=n.n(b),h=n(3),v=n.n(h),y=(n(0),n(8)),_=n.n(y),k=n(80),O=n(476),E=n(477),C=(n.n(E),n(81)),j=(n.n(C),n(10)),S=(n.n(j),n(1)),x=(n.n(S),window),P=x.jQuery,T=wp.blockEditor||wp.editor,R=T.BlockControls,N=T.BlockAlignmentToolbar,A=T.MediaUpload,B=T.MediaUploadCheck,D=T.RichText,M=(T.URLInput,T.withColors),I=wp.compose.compose,L=wp.data.withSelect,z=wp.components,V=z.ToolbarButton,F=z.ToolbarGroup,H=z.Dashicon,G=z.TextControl,W=wp.element,U=W.Component,q=W.Fragment,Q=["wide","full"],K=["image"],Y="wp-block-getwid-video-popup",J=["core/bold","core/italic","core/link","core/image","core/strikethrough","core/text-color"],$=function(e){function t(){return p()(this,t),n.apply(this,arguments)}f()(t,e);var n=i(t);return m()(t,[{key:"initPopUp",value:function(){var e=this.props.clientId,t=P("[data-block='".concat(e,"']"));P(".wp-block-getwid-video-popup__link",t).on("click",function(e){e.preventDefault()})}},{key:"componentDidMount",value:function(){this.initPopUp()}},{key:"componentDidUpdate",value:function(e){this.initPopUp()}},{key:"render",value:function(){var e,t,n,r=this,i=this.props,a=i.attributes,c=a.id,u=a.url,p=a.title,d=(a.text,a.link),m=a.align,g=a.minHeight,f=a.buttonMaxWidth,b=a.buttonStyle,w=a.buttonAnimation,h=a.buttonSize,v=a.overlayOpacity,y=a.imageAnimation,E=a.customTitleColor,C=a.customIconColor,x=a.customButtonColor,P=(a.customOverlayColor,i.titleColor),T=i.iconColor,M=i.buttonColor,I=i.overlayColor,L=i.setAttributes,z=i.isSelected,W=i.className,U=function(e,t){if(!e)return void L({url:void 0,id:void 0});if(e.media_type)"image"===e.media_type&&"image";else{if("image"!==e.type)return;e.type}var n=Object(j.get)(e,["sizes",t,"url"])||Object(j.get)(e,["media_details","sizes",t,"source_url"])||e.url;L({id:e.id,url:void 0!==n?n:u})},$=function(e){var t=r.props.attributes.imageSize;["full","large","medium","thumbnail"].includes(t)||(t=k.a.imageSize.default,L({imageSize:t})),U(e,t)},Z={className:_()("".concat(Y,"__wrapper"),s()({"has-background":!!u&&I.color},I.class,!!u&&I.class)),style:{backgroundColor:!!u&&(this.props.overlayColor.color?this.props.overlayColor.color:this.props.attributes.customOverlayColor),minHeight:void 0!=u?g:null}},X={className:_()("".concat(Y,"__button"),"is-style-".concat(b),(e={},s()(e,"has-animation-".concat(w),"none"!=w),s()(e,"is-size-".concat(h),"default"!=h),e)),style:{backgroundColor:"fill"==b?void 0!==this.props.attributes.buttonColor&&void 0===this.props.attributes.buttonColor.class?this.props.buttonColor.color:x||void 0:void 0,borderColor:void 0!==this.props.attributes.buttonColor&&void 0===this.props.attributes.buttonColor.class?this.props.buttonColor.color:x||void 0}},ee={className:_()("".concat(Y,"__icon"),(t={"has-text-color":T.color},s()(t,T.class,T.class),s()(t,"has-background",M.color),s()(t,M.class,M.class),t)),style:{backgroundColor:void 0!==this.props.attributes.buttonColor&&void 0===this.props.attributes.buttonColor.class?this.props.buttonColor.color:x||void 0,color:void 0!==this.props.attributes.iconColor&&void 0===this.props.attributes.iconColor.class?this.props.iconColor.color:C||void 0,borderColor:void 0!==this.props.attributes.buttonColor&&void 0===this.props.attributes.buttonColor.class?this.props.buttonColor.color:x||void 0}},te={className:_()("".concat(Y,"__title"),s()({"has-text-color":P.color},P.class,P.class)),style:{color:void 0!==this.props.attributes.titleColor&&void 0===this.props.attributes.titleColor.class?this.props.titleColor.color:E||void 0}},ne={className:_()(W,(n={},s()(n,"has-image",void 0!=u),s()(n,"has-animation-".concat(y),"none"!=y),s()(n,"has-foreground-".concat(v),35!=v),n),m?"align".concat(m):null)},re={className:_()("".concat(Y,"__link")),href:void 0!==d?d:"",style:{maxWidth:u?"":f}},oe=wp.element.createElement(q,null,wp.element.createElement(R,null,wp.element.createElement(N,{controls:Q,value:m,onChange:function(e){return L({align:e})}}),wp.element.createElement(q,null,wp.element.createElement(B,null,wp.element.createElement(F,null,wp.element.createElement(A,{onSelect:$,allowedTypes:K,value:c,render:function(e){var t=e.open;return wp.element.createElement(V,{className:"components-toolbar__control",label:Object(S.__)("Select Image","getwid"),icon:"format-image",onClick:t})}}),!!u&&wp.element.createElement(V,{className:"components-toolbar__control",label:Object(S.__)("Delete Image","getwid"),icon:"trash",onClick:function(e){L({id:null,url:null})}}))))),wp.element.createElement(O.a,l()({},o(o({setAttributes:L},this.props),{},{changeImageSize:U,onSelectMedia:$}),{key:"inspector"})));return wp.element.createElement(q,null,wp.element.createElement("div",ne,z&&wp.element.createElement(q,null,wp.element.createElement("div",{className:"".concat(Y,"__url-field")},wp.element.createElement(H,{icon:"admin-links"}),wp.element.createElement(G,{placeholder:Object(S.__)("Video URL","getwid"),value:d,onChange:function(e){return L({link:e})}}))),oe,wp.element.createElement("a",re,wp.element.createElement("div",Z,!!u&&wp.element.createElement("img",{src:u,alt:"",className:"".concat(Y,"__image ").concat(Y,"__source ")+(c?"wp-image-".concat(c):"")}),wp.element.createElement("div",X,wp.element.createElement("div",ee,wp.element.createElement("i",{className:"fas fa-play"})),!u&&wp.element.createElement("div",{className:"".concat(Y,"__button-caption")},wp.element.createElement(D,l()({},te,{tagName:"p",placeholder:Object(S.__)("Write text…","getwid"),value:p,onChange:function(e){return L({title:e})},allowedFormats:J})))))),u&&wp.element.createElement("div",{className:"".concat(Y,"__caption")},wp.element.createElement(D,l()({},te,{tagName:"p",placeholder:Object(S.__)("Write text…","getwid"),value:p,onChange:function(e){return L({title:e})},allowedFormats:["bold","italic","strikethrough"]})))))}}]),t}(U);t.a=I([L(function(e,t){var n=e("core"),r=n.getMedia,o=t.attributes.id;if(void 0!==o)return{imgObj:o?r(o):null}}),M("titleColor","iconColor","buttonColor","overlayColor")])($)},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=v()(e);if(t()){var o=v()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return w()(this,n)}}n.d(t,"a",function(){return D});var o=n(15),i=n.n(o),a=n(7),l=n.n(a),c=n(2),s=n.n(c),u=n(4),p=n.n(u),d=n(11),m=n.n(d),g=n(5),f=n.n(g),b=n(6),w=n.n(b),h=n(3),v=n.n(h),y=(n(0),n(1)),_=(n.n(y),n(17)),k=n(19),O=n(16),E=n(14),C=wp.element,j=C.Component,S=C.Fragment,x=wp.blockEditor||wp.editor,P=x.InspectorControls,T=wp.components,R=T.PanelBody,N=T.RangeControl,A=T.TextControl,B=T.SelectControl,D=function(e){function t(){var e;return s()(this,t),e=n.apply(this,arguments),e.onSetLinkRel=e.onSetLinkRel.bind(m()(e)),e.changeState=e.changeState.bind(m()(e)),e.state={tabName:"general"},e}f()(t,e);var n=r(t);return p()(t,[{key:"changeState",value:function(e,t){this.setState(l()({},e,t))}},{key:"getState",value:function(e){return this.state[e]}},{key:"onSetLinkRel",value:function(e){this.props.setAttributes({rel:e})}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.imageSize,r=t.id,o=t.url,a=t.link,l=t.minHeight,c=t.buttonMaxWidth,s=t.imageAnimation,u=t.buttonStyle,p=t.buttonAnimation,d=t.buttonSize,m=t.overlayOpacity,g=e.titleColor,f=e.setTitleColor,b=e.iconColor,w=e.setIconColor,h=e.buttonColor,v=e.setButtonColor,C=e.overlayColor,j=e.setOverlayColor,x=e.customIconColor,T=e.customTitleColor,D=e.customOverlayColor,M=e.changeImageSize,I=e.onSelectMedia,L=e.setAttributes,z=e.imgObj,V=this.state.tabName,F=this.changeState,H=function(e){void 0!==z&&(L({imageSize:e}),M(z,e))};return wp.element.createElement(P,null,wp.element.createElement(k.a,{state:V,stateName:"tabName",onChangeTab:F,tabs:["general","style"]}),"general"===V&&wp.element.createElement(S,null,wp.element.createElement(R,{initialOpen:!0},wp.element.createElement(E.e,{label:Object(y.__)("Image","getwid"),url:o,id:r,onSelectMedia:I,onRemoveMedia:function(){return L({url:void 0,id:void 0})}}),wp.element.createElement(A,{label:Object(y.__)("Video URL","getwid"),help:Object(y.__)("Link to Youtube, Vimeo or self-hosted video","getwid"),value:a,onChange:function(e){return L({link:e})}}),wp.element.createElement(B,{label:Object(y.__)("Button Animation","getwid"),value:p,onChange:function(e){return L({buttonAnimation:e})},options:[{value:"none",label:Object(y.__)("None","getwid")},{value:"pulse",label:Object(y.__)("Pulse","getwid")}]}),o&&wp.element.createElement(S,null,wp.element.createElement(B,{label:Object(y.__)("Image Animation","getwid"),value:s,onChange:function(e){return L({imageAnimation:e})},options:[{value:"none",label:Object(y.__)("None","getwid")},{value:"slide-left",label:Object(y.__)("Slide Left","getwid")},{value:"slide-right",label:Object(y.__)("Slide Right","getwid")},{value:"slide-top",label:Object(y.__)("Slide Top","getwid")},{value:"slide-bottom",label:Object(y.__)("Slide Bottom","getwid")},{value:"zoom-in",label:Object(y.__)("Zoom In","getwid")},{value:"zoom-out",label:Object(y.__)("Zoom Out","getwid")}]})))),"style"===V&&wp.element.createElement(S,null,wp.element.createElement(R,{initialOpen:!0},wp.element.createElement(B,{label:Object(y.__)("Button Style","getwid"),value:u,onChange:function(e){return L({buttonStyle:e})},options:[{value:"default",label:Object(y.__)("Default","getwid")},{value:"bordered",label:Object(y.__)("Border","getwid")},{value:"outline",label:Object(y.__)("Outline","getwid")},{value:"fill",label:Object(y.__)("Fill","getwid")}]}),wp.element.createElement(B,{label:Object(y.__)("Button Size","getwid"),value:d,onChange:function(e){return L({buttonSize:e})},options:[{value:"default",label:Object(y.__)("Default","getwid")},{value:"small",label:Object(y.__)("Small","getwid")},{value:"normal",label:Object(y.__)("Normal","getwid")},{value:"large",label:Object(y.__)("Large","getwid")}]}),!o&&wp.element.createElement(_.a,{label:Object(y.__)("Button Width","getwid"),value:c,units:[{label:"px",value:"px"},{label:"vh",value:"vh"},{label:"vw",value:"vw"},{label:"%",value:"%"}],onChange:function(e){return L({buttonMaxWidth:e})}}),o&&wp.element.createElement(S,null,z&&wp.element.createElement(B,{label:Object(y.__)("Image Size","getwid"),help:Object(y.__)("For images from Media Library only.","getwid"),value:n,onChange:H,options:Getwid.settings.image_sizes}),wp.element.createElement(_.a,{label:Object(y.__)("Image Height","getwid"),value:l,units:[{label:"px",value:"px"},{label:"vh",value:"vh"},{label:"vw",value:"vw"},{label:"%",value:"%"}],onChange:function(e){return L({minHeight:e})}})),wp.element.createElement(O.a,{colorSettings:[{title:Object(y.__)("Button Color","getwid"),colors:{customColor:T,defaultColor:h},changeColor:function(e){v(e),L({buttonColorHEX:e})}},{title:Object(y.__)("Icon Color","getwid"),colors:{customColor:x,defaultColor:b},changeColor:w},{title:Object(y.__)("Title Color","getwid"),colors:{customColor:T,defaultColor:g},changeColor:f}].concat(i()(o?[{title:Object(y.__)("Overlay Color","getwid"),colors:{customColor:D,defaultColor:C},changeColor:j}]:[]))}),o&&wp.element.createElement(N,{label:Object(y.__)("Overlay Opacity","getwid"),value:m,onChange:function(e){return L({overlayOpacity:e})},min:0,max:100,step:5}))))}}]),t}(j)},function(e,t){},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=w()(e);if(t()){var o=w()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f()(this,n)}}var o=n(9),i=n.n(o),a=n(7),l=n.n(a),c=n(2),s=n.n(c),u=n(4),p=n.n(u),d=n(5),m=n.n(d),g=n(6),f=n.n(g),b=n(3),w=n.n(b),h=(n(0),n(1)),v=(n.n(h),n(8)),y=n.n(v),_=window,k=(_.jQuery,wp.element.Component),O=wp.blockEditor||wp.editor,E=O.RichText,C=O.getColorClassName,j="wp-block-getwid-video-popup",S=function(e){function t(){return s()(this,t),n.apply(this,arguments)}m()(t,e);var n=r(t);return p()(t,[{key:"render",value:function(){var e,t,n,r=this.props.attributes,o=r.id,a=r.url,c=r.title,s=r.text,u=r.link,p=r.align,d=r.minHeight,m=r.buttonMaxWidth,g=r.buttonStyle,f=r.buttonAnimation,b=r.buttonSize,w=r.overlayOpacity,h=r.imageAnimation,v=r.titleColor,_=r.iconColor,k=r.buttonColor,O=r.buttonColorHEX,S=r.overlayColor,x=r.customTitleColor,P=r.customIconColor,T=r.customButtonColor,R=r.customOverlayColor,N=r.className,A=C("color",v),B=C("color",_),D=C("background-color",k),M=C("background-color",S),I={className:y()("".concat(j,"__wrapper"),l()({"has-background":!!a&&(S||R)},M,!!a&&M)),style:{backgroundColor:a?this.props.attributes.overlayColor?void 0:this.props.attributes.customOverlayColor?this.props.attributes.customOverlayColor:void 0:void 0,minHeight:void 0!=a?d:null}},L={className:y()("".concat(j,"__button"),"is-style-".concat(g),(e={"has-background":"fill"==g&&(k||T)},l()(e,D,"fill"==g&&D),l()(e,"has-animation-".concat(f),"none"!=f),l()(e,"is-size-".concat(b),"default"!=b),e)),style:{backgroundColor:"fill"==g?void 0!==k?void 0:T||void 0:void 0,borderColor:void 0!==O?O:T||void 0}},z={className:y()("".concat(j,"__icon"),(t={"has-text-color":_||P},l()(t,B,B),l()(t,"has-background",k||T),l()(t,D,D),t)),style:{backgroundColor:void 0!==k?void 0:T||void 0,color:void 0!==_?void 0:P||void 0,borderColor:void 0!==O?O:T||void 0}},V={className:y()("".concat(j,"__title"),l()({"has-text-color":v||x},A,A)),style:{color:void 0!==v?void 0:x||void 0}},F={className:y()(N,(n={},l()(n,"has-image",void 0!=a),l()(n,"has-animation-".concat(h),"none"!=h),l()(n,"has-foreground-".concat(w),35!=w),n),p?"align".concat(p):null)},H={className:y()("".concat(j,"__link")),href:void 0!==u?u:"",style:{maxWidth:a?null:m}};return wp.element.createElement("div",F,wp.element.createElement("a",H,wp.element.createElement("div",I,!!a&&wp.element.createElement("img",{src:a,alt:"",className:"".concat(j,"__image ").concat(j,"__source ")+(o?"wp-image-".concat(o):"")}),wp.element.createElement("div",L,wp.element.createElement("div",z,wp.element.createElement("i",{className:"fas fa-play"})),!a&&(!E.isEmpty(c)||!E.isEmpty(s))&&wp.element.createElement("div",{className:"".concat(j,"__button-caption")},!E.isEmpty(c)&&wp.element.createElement(E.Content,i()({tagName:"p"},V,{value:c})))))),a&&wp.element.createElement("div",{className:"".concat(j,"__caption")},!E.isEmpty(c)&&wp.element.createElement(E.Content,i()({tagName:"p"},V,{value:c}))))}}]),t}(k);t.a=S},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=w()(e);if(t()){var o=w()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f()(this,n)}}var o=n(9),i=n.n(o),a=n(7),l=n.n(a),c=n(2),s=n.n(c),u=n(4),p=n.n(u),d=n(5),m=n.n(d),g=n(6),f=n.n(g),b=n(3),w=n.n(b),h=(n(0),n(1)),v=(n.n(h),n(8)),y=n.n(v),_=window,k=(_.jQuery,wp.element.Component),O=wp.blockEditor||wp.editor,E=O.RichText,C=O.getColorClassName,j="wp-block-getwid-video-popup",S=function(e){function t(){return s()(this,t),n.apply(this,arguments)}m()(t,e);var n=r(t);return p()(t,[{key:"render",value:function(){var e,t,n,r=this.props.attributes,o=r.id,a=r.url,c=r.title,s=r.text,u=r.link,p=r.align,d=r.minHeight,m=r.buttonMaxWidth,g=r.buttonStyle,f=r.buttonAnimation,b=r.buttonSize,w=r.overlayOpacity,h=r.imageAnimation,v=r.titleColor,_=r.iconColor,k=r.buttonColor,O=r.buttonColorHEX,S=r.overlayColor,x=r.customTitleColor,P=r.customIconColor,T=r.customButtonColor,R=r.customOverlayColor,N=r.className,A=C("color",v),B=C("color",_),D=C("background-color",k),M=C("background-color",S),I={className:y()("".concat(j,"__wrapper"),l()({"has-background":!!a&&(S||R)},M,!!a&&M)),style:{backgroundColor:a?this.props.attributes.overlayColor?void 0:this.props.attributes.customOverlayColor?this.props.attributes.customOverlayColor:void 0:void 0,minHeight:void 0!=a?d:null}},L={className:y()("".concat(j,"__button"),"is-style-".concat(g),(e={"has-background":"fill"==g&&(k||T)},l()(e,D,"fill"==g&&D),l()(e,"has-animation-".concat(f),"none"!=f),l()(e,"is-size-".concat(b),"default"!=b),e)),style:{backgroundColor:"fill"==g?void 0!==k?void 0:T||void 0:void 0,borderColor:void 0!==O?O:T||void 0}},z={className:y()("".concat(j,"__icon"),(t={"has-text-color":_||P},l()(t,B,B),l()(t,"has-background",k||T),l()(t,D,D),t)),style:{backgroundColor:void 0!==k?void 0:T||void 0,color:void 0!==_?void 0:P||void 0,borderColor:void 0!==O?O:T||void 0}},V={className:y()("".concat(j,"__title"),l()({"has-text-color":v||x},A,A)),style:{color:void 0!==v?void 0:x||void 0}},F={className:y()(N,(n={},l()(n,"has-image",void 0!=a),l()(n,"has-animation-".concat(h),"none"!=h),l()(n,"has-foreground-".concat(w),35!=w),n),p?"align".concat(p):null)},H={className:y()("".concat(j,"__link")),href:void 0!==u?u:"",style:{maxWidth:a?null:m}};return wp.element.createElement("div",F,wp.element.createElement("a",H,wp.element.createElement("div",I,!!a&&wp.element.createElement("img",{src:a,alt:"",className:"".concat(j,"__image ").concat(j,"__source ")+(o?"wp-image-".concat(o):null)}),wp.element.createElement("div",L,wp.element.createElement("div",z,wp.element.createElement("i",{className:"fas fa-play"})),!a&&(!E.isEmpty(c)||!E.isEmpty(s))&&wp.element.createElement("div",{className:"".concat(j,"__button-caption")},!E.isEmpty(c)&&wp.element.createElement(E.Content,i()({tagName:"p"},V,{value:c})))))),a&&wp.element.createElement("div",{className:"".concat(j,"__caption")},!E.isEmpty(c)&&wp.element.createElement(E.Content,i()({tagName:"p"},V,{value:c}))))}}]),t}(k);t.a=S},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(n,!0).forEach(function(t){a()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var i=n(7),a=n.n(i),l=(n(0),n(481)),c=n(484),s=n(485),u=n(82),p=n(83),d=(n.n(p),n(12)),m=n(1),g=(n.n(m),window),f=(g.jQuery,wp.blocks),b=f.registerBlockType,w=f.createBlock;b("getwid/image-hotspot",o(o({title:Object(m.__)("Image Hotspot","getwid"),category:"getwid-blocks",icon:wp.element.createElement("svg",{x:"0px",y:"0px",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("circle",{cx:"12",cy:"20",r:"2"}),wp.element.createElement("path",{d:"M20,4v7h-4h-0.67l-0.53,0.4L12,13.5l-2.8-2.1L8.67,11H8H4V4H20 M22,2H2v11h6l4,3l4-3h6V2L22,2z"})),keywords:[Object(m.__)("tooltip","getwid")],supports:{alignWide:!0,align:["wide","full"],inserter:!Getwid.disabled_blocks.includes("getwid/image-hotspot")},deprecated:[{attributes:u.a,save:s.a}],transforms:{from:[{type:"block",blocks:["core/image"],transform:function(e){return w("getwid/image-hotspot",{id:e.id,url:e.url})}},{type:"block",blocks:["core/media-text"],transform:function(e){return w("getwid/image-hotspot",{id:e.mediaId,url:e.mediaUrl})}},{type:"block",blocks:["getwid/image-box"],transform:function(e){return w("getwid/image-hotspot",{id:e.id,url:e.url})}},{type:"block",blocks:["core/cover"],transform:function(e){return w("getwid/image-hotspot",{id:e.id,url:e.url})}},{type:"block",blocks:["getwid/banner"],transform:function(e){return w("getwid/image-hotspot",{id:e.id,url:e.url})}},{type:"block",blocks:["getwid/video-popup"],transform:function(e){return w("getwid/image-hotspot",{id:e.id,url:e.url})}}],to:[{type:"block",blocks:["core/media-text"],transform:function(e){return w("core/media-text",{mediaId:e.id,mediaUrl:e.url,mediaType:"image"})}},{type:"block",blocks:["core/cover"],transform:function(e){return w("core/cover",{id:e.id,url:e.url})}},{type:"block",blocks:["getwid/image-box"],transform:function(e){return w("getwid/image-box",{id:e.id,url:e.url})}},{type:"block",blocks:["core/image"],transform:function(e){return w("core/image",{id:e.id,url:e.url})}},{type:"block",blocks:["getwid/banner"],transform:function(e){return w("getwid/banner",{id:e.id,url:e.url})}}]},attributes:u.a},Object(d.b)("getwid/image-hotspot",l.a)),{},{save:c.a}))},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(n,!0).forEach(function(t){s()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function i(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=O()(e);if(t()){var o=O()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return _()(this,n)}}var a=n(9),l=n.n(a),c=n(7),s=n.n(c),u=n(13),p=n.n(u),d=n(2),m=n.n(d),g=n(4),f=n.n(g),b=n(11),w=n.n(b),h=n(5),v=n.n(h),y=n(6),_=n.n(y),k=n(3),O=n.n(k),E=(n(0),n(1)),C=(n.n(E),n(10)),j=(n.n(C),n(8)),S=n.n(j),x=n(82),P=n(482),T=n(483),R=(n.n(T),n(83)),N=(n.n(R),wp.compose.compose),A=wp.element,B=A.Component,D=A.Fragment,M=wp.components,I=M.ToolbarGroup,L=M.ToolbarButton,z=wp.blockEditor||wp.editor,V=z.BlockControls,F=z.MediaPlaceholder,H=z.MediaUpload,G=z.MediaUploadCheck,W=wp.data,U=W.withSelect,q=W.withDispatch,Q=window,K=Q.jQuery,Y=["image"],J="wp-block-getwid-image-hotspot",$=function(e){function t(){var e;return m()(this,t),e=n.apply(this,arguments),e.onCancelPoint=e.onCancelPoint.bind(w()(e)),e.onDeletePoint=e.onDeletePoint.bind(w()(e)),e.updateArrValues=e.updateArrValues.bind(w()(e)),e.changeState=e.changeState.bind(w()(e)),e.getState=e.getState.bind(w()(e)),e.isSelectedPoint=e.isSelectedPoint.bind(w()(e)),e.state={highlightDot:!1,currentPoint:null,updatePoints:!1,action:!1,editModal:!1},e}v()(t,e);var n=i(t);return f()(t,[{key:"updateArrValues",value:function(e,t){e=function e(t,n){var r={};return Object.keys(t).forEach(function(o){var i;i=null!==t[o]&&"object"===p()(t[o])?e(t[o],n):n(t[o],o),r[o]=i}),r}(e,function(e,t){return void 0===e&&(e=""),e});var n=this.props,r=n.attributes,o=n.setAttributes,i=r.imagePoints,a=""!=i?JSON.parse(i):[],l=a.map(function(n,r){return t===r&&(n=Object(C.merge)(n,e)),n});o({imagePoints:JSON.stringify(l)})}},{key:"changeState",value:function(e,t){"object"==p()(e)?this.setState(e):"string"==typeof e&&this.setState(s()({},e,t))}},{key:"getState",value:function(e){return this.state[e]}},{key:"getRelativePosition",value:function(e,t,n){var r,o,i=t.offset().left,a=t.offset().top,l=n||0;return r=(e.pageX-i-l/2)/t.outerWidth()*100,o=(e.pageY-a-l/2)/t.outerHeight()*100,{x:parseFloat(r).toFixed(2)+"%",y:parseFloat(o).toFixed(2)+"%"}}},{key:"initTooltips",value:function(){var e=this.props.clientId,t=this.props.attributes,n=t.imagePoints,r=t.tooltipTheme,o=t.tooltipArrow,i=t.tooltipAnimation,a=""!=n?JSON.parse(n):[];jQuery(".tippy-popper").remove();var l=K("[data-block='".concat(e,"']")),c=K(".".concat(J,"__wrapper .").concat(J,"__dot"),l);"function"==typeof tippy&&K.each(c,function(e,t){var n=jQuery(t),l=n.data("point-id"),c=n.find(".".concat(J,"__dot-title")).html(),s=Object(C.unescape)(a[l].content),u=a[l].placement,p=a[l].popUpWidth;if(c||s){tippy(t,{maxWidth:parseInt(p,10),theme:r,animation:i,animateFill:!1,interactive:!0,trigger:"mouseenter",arrow:o,placement:u,allowHTML:!0,content:'<div class="'.concat(J,'__tooltip"><div class="').concat(J,'__tooltip-title">').concat(c,'</div><div class="').concat(J,'__tooltip-content">').concat(s,"</div></div>")})}n.find(".".concat(J,"__dot-description")).remove()})}},{key:"setDotSelection",value:function(){var e=this,t=this.props.clientId,n=K("[data-block='".concat(t,"']")),r=K(".".concat(J,"__wrapper .").concat(J,"__dot"),n);r.length&&K.each(r,function(t,n){var r=e.getState,o=K(n).data("point-id");Object(C.isEqual)(r("currentPoint"),o)&&K(n).addClass("is-selected")})}},{key:"isSelectedPoint",value:function(){var e=this.props.clientId,t=K("[data-block='".concat(e,"']")),n=this.props.attributes.imagePoints,r=""!=n?JSON.parse(n):[],o=K(".".concat(J,"__wrapper .").concat(J,"__dot"),t),i=this.getState,a=i("currentPoint");return o.hasClass("is-selected")&&r.length&&!Object(C.isEqual)(a,null)}},{key:"initHotspotEvents",value:function(){var e=this,t=this.props.clientId,n=this.props.attributes.dotSize,r=this.onCancelPoint,o=this.getRelativePosition,i=this.updateArrValues,a=this.changeState,l=this.getState,c=K("[data-block='".concat(t,"']")),s=K(".".concat(J,"__wrapper"),c),u=K(".".concat(J,"__wrapper .").concat(J,"__dot"),c);1==l("highlightDot")&&null!=l("currentPoint")&&(u.removeClass("is-selected"),s.find(".".concat(J,'__dot[data-point-id="').concat(l("currentPoint"),'"]')).addClass("is-selected"),s.find(".".concat(J,'__dot[data-point-id="').concat(l("currentPoint"),'"]')).addClass("is-selected"),a({highlightDot:!1})),u.off(),s.off(),s.contextmenu(function(){return!1}),u.contextmenu(function(){return!1}),u.click(function(n){n.stopPropagation();var r=n.currentTarget;if(!K(r).hasClass("is-selected")){(0,e.props.selectBlock)(t),u.removeClass("is-selected"),K(r).addClass("is-selected"),a("currentPoint",K(r).data("point-id"))}}),u.mousedown(function(e){if(1==e.button)return e.preventDefault(),a("currentPoint",jQuery(this).data("point-id")),a({action:"edit",editModal:!0}),!1}),"function"==typeof s.imagesLoaded&&s.imagesLoaded().done(function(e){K.each(u,function(e,t){t.oncontextmenu=function(){return!1};var n=new Draggabilly(t,{containment:s});n.on("dragStart",function(e,n){a("currentPoint",jQuery(t).data("point-id")),u.removeClass("is-selected"),jQuery(t).addClass("is-selected"),jQuery(".tippy-popper").remove()}),n.on("dragEnd",function(e,n){var r=parseFloat(t.offsetLeft/t.parentNode.offsetWidth*100).toFixed(2),o=parseFloat(t.offsetTop/t.parentNode.offsetHeight*100).toFixed(2);r=r<0?0:(r>100?100:r)+"%",o=o<0?0:(o>100?100:o)+"%",t.style.left=r,t.style.top=o,null==l("currentPoint")&&a("currentPoint",jQuery(t).data("point-id")),i({position:{x:r,y:o}},jQuery(t).data("point-id"))})})}),K(document).keyup(function(e){null!=l("currentPoint")&&"drop"==l("action")&&27==e.which&&(a({action:!1,editModal:!1}),r())}),s.click(function(t){var r=t.target;if(u.removeClass("is-selected"),"drop"==l("action")){var c=o(t,K(r),n),s=e.renderDot(l("currentPoint"),c.x,c.y);K(r).append(s),i({position:{x:c.x,y:c.y}},l("currentPoint")),a("editModal",!0)}else r.className=="".concat(J,"__image")&&a("currentPoint",null)})}},{key:"renderDot",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",i=arguments.length>5&&void 0!==arguments[5]&&arguments[5],a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"",l=arguments.length>7&&void 0!==arguments[7]?arguments[7]:"",c=arguments.length>8&&void 0!==arguments[8]?arguments[8]:"",u=this.props.attributes,p=u.dotIcon,d=u.dotSize,m=u.dotPaddings,g=u.dotColor,f=u.dotBackground,b=u.dotOpacity,w=u.dotPulse,h=a||p,v=l||g,y=c||f,_="",k="";d&&16!=d&&(k+="font-size: "+d+"px;"),m&&6!=m&&(_+="padding: "+m+"px;"),v&&(k+="color: "+v+";"),y&&(_+="background-color: "+y+";"),b&&100!=b&&(_+="opacity: "+b/100+";");var O=S()("".concat(J,"__dot"),s()({},"has-animation-".concat(w),"none"!=w)),E="";return E=""!=o?'<a href="'.concat(o,'"')+(i?' target="_blank" rel="noopener noreferrer"':"")+">".concat(r,"</a>"):r,'<div data-point-id="'.concat(e,'" class="').concat(O,'" style="left: ').concat(t,"; top: ").concat(n,";")+(""!=_?_:"")+'">\n\t\t\t<div class="wp-block-getwid-image-hotspot__dot-wrapper">\n\t\t\t\t<div'+(""!=k?' style="'+k+'"':"")+' class="wp-block-getwid-image-hotspot__dot-content"><i class="'.concat(h," ").concat(J,'__dot-icon"></i></div>\n\t\t\t\t<div class="wp-block-getwid-image-hotspot__dot-description">\n\t\t\t\t\t<div class="wp-block-getwid-image-hotspot__dot-title">').concat(E,"</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t\t")}},{key:"initDot",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.props.clientId,r=this.renderDot(e,t.position.x,t.position.y,t.title,t.link,t.newTab,t.icon,t.color,t.backgroundColor),o=K("[data-block='".concat(n,"']"));K(".".concat(J,"__wrapper"),o).append(r)}},{key:"initPoints",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=this.props.clientId,r=this.changeState,o=this.props.attributes.imagePoints,i=""!=o?JSON.parse(o):[],a=K("[data-block='".concat(n,"']"));K(".".concat(J,"__wrapper .").concat(J,"__dot"),a).remove(),i.length&&K.each(i,function(t,n){e.initDot(t,n)}),t&&r("updatePoints",!1),this.setDotSelection(),this.initHotspotEvents(),this.initTooltips()}},{key:"onDuplicatePoint",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=this.props,n=t.attributes.imagePoints,r=t.setAttributes,o=""!=n?JSON.parse(n):[],i=Object(C.cloneDeep)(o),a=i[e],l=parseInt(a.position.x,10)+3,c=parseInt(a.position.y,10)+3;l=l>98?98:l,c=c>96?96:c,a.position.x=l+"%",a.position.y=c+"%";var s=o,u=this.changeState;s.push(a),r({imagePoints:JSON.stringify(s)}),u({currentPoint:1==s.length?0:s.length-1,highlightDot:!0,updatePoints:!0})}},{key:"onAddPoint",value:function(){var e=this.props,t=e.attributes.imagePoints,n=e.setAttributes,r=""!=t?JSON.parse(t):[],o=r,i=this.changeState;o.push({link:"",icon:"",title:"",color:"",content:"",backgroundColor:"",newTab:!1,popUpOpen:!1,popUpWidth:350,placement:"top",position:{x:0,y:0}}),n({imagePoints:JSON.stringify(o)}),i("currentPoint",1==o.length?0:o.length-1)}},{key:"onDeletePoint",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=this.changeState,n=this.props.attributes.imagePoints,r=this.props,o=r.clientId,i=r.setAttributes,a=""!=n?JSON.parse(n):[],l=a.filter(function(t,n){return n!==e});t({currentPoint:null,updatePoints:!0}),K("#block-".concat(o)).find(".".concat(J,"__wrapper .").concat(J,"__dot")).removeClass("is-selected"),i({imagePoints:JSON.stringify(l)})}},{key:"onCancelPoint",value:function(){var e=this.props.setAttributes,t=this.getState,n=this.changeState,r=this.props.attributes.imagePoints,o=""!=r?JSON.parse(r):[],i=o.filter(function(e,n){return n!==t("currentPoint")});e({imagePoints:JSON.stringify(i)}),n({currentPoint:null,updatePoints:!0})}},{key:"render",value:function(){var e=this,t=this.props.attributes,n=t.id,r=t.url,i=t.alt,a=this.props,c=a.className,u=a.isSelected,p=a.setAttributes,d=a.clientId,m=this.onCancelPoint,g=this.onDeletePoint,f=this.updateArrValues,b=this.changeState,w=this.getState,h=this.isSelectedPoint,v=K("[data-block='".concat(d,"']")),y=[{icon:"location",title:Object(E.__)("Drop Point","getwid"),isDisabled:null!=w("currentPoint"),isActive:"drop"==w("action"),onClick:function(){"drop"!=w("action")&&(e.onAddPoint(),b("action","drop"))}},{icon:"edit",title:Object(E.__)("Edit","getwid"),isDisabled:null===w("currentPoint")||"drop"==w("action"),isActive:"edit"==w("action")&&1==w("editModal"),onClick:function(){b({action:"edit",editModal:!0})}},{icon:"admin-page",title:Object(E.__)("Duplicate","getwid"),isDisabled:null===w("currentPoint"),onClick:function(){e.onDuplicatePoint(w("currentPoint"))}},{icon:"trash",title:Object(E.__)("Delete","getwid"),isDisabled:null===w("currentPoint")||"drop"==w("action"),onClick:function(){g(w("currentPoint"))}}],_=function(e,t){if(!e)return void p({url:void 0,id:void 0});p({id:e.id,alt:e.alt,url:Object(C.get)(e,["sizes",t,"url"])||Object(C.get)(e,["media_details","sizes",t,"source_url"])||e.url})},k=function(t){var n=e.props.attributes.imageSize;["full","large","medium","thumbnail"].includes(n)||p({imageSize:x.a.imageSize.default}),_(t,n)},O=wp.element.createElement(D,null,!r&&wp.element.createElement(F,{icon:"format-image",className:J,labels:{title:Object(E.__)("Image Hotspot","getwid")},onSelect:k,accept:"image/*",allowedTypes:Y}),wp.element.createElement(V,null,!!r&&wp.element.createElement(D,null,wp.element.createElement(G,null,wp.element.createElement(I,null,wp.element.createElement(H,{onSelect:k,allowedTypes:Y,value:n,render:function(e){var t=e.open;return wp.element.createElement(L,{className:"components-toolbar__control",label:Object(E.__)("Edit Media","getwid"),icon:"format-image",onClick:t})}})))))),j={className:S()(c,s()({"is-selected":u},"".concat(J,"--dropPoint"),"drop"==w("action")))},T=S()("".concat(J,"__wrapper")),R=r?wp.element.createElement("img",{className:"".concat(J,"__image"),src:r,alt:i||""}):"";return wp.element.createElement(D,null,wp.element.createElement("div",j,O,!!r&&wp.element.createElement(D,null,wp.element.createElement(V,null,wp.element.createElement(I,{controls:y})),wp.element.createElement(P.a,l()({},o(o(o(o(o(o(o(o(o(o({setAttributes:p},this.props),{onCancelPoint:m}),{onDeletePoint:g}),{updateArrValues:f}),{changeImageSize:_}),{changeState:b}),{getState:w}),{thisBlock:v}),{onSelectMedia:k}),{isSelectedPoint:h}),{key:"inspector"}))),wp.element.createElement("div",{className:T},R)))}},{key:"componentDidMount",value:function(){this.initPoints(!1)}},{key:"componentDidUpdate",value:function(e,t){var n=this.props.clientId,r=K("[data-block='".concat(n,"']")),o=K(".".concat(J,"__wrapper .").concat(J,"__dot"),r),i=this.getState,a=!Object(C.isEqual)(this.props.attributes,e.attributes)&&Object(C.isEqual)(this.props.attributes.imagePoints,e.attributes.imagePoints);1==e.isSelected&&0==this.props.isSelected&&o.removeClass("is-selected"),K(".".concat(J,"__modal-delete")).contextmenu(function(){return!1}),K(".components-modal__screen-overlay").contextmenu(function(){return!1}),(a||1==i("updatePoints"))&&this.initPoints(!0)}}]),t}(B);t.a=N([q(function(e,t){return{selectBlock:e("core/editor").selectBlock}}),U(function(e,t){var n=e("core"),r=n.getMedia,o=t.attributes.id;if(void 0!==o)return{imgObj:o?r(o):null}})])($)},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=w()(e);if(t()){var o=w()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f()(this,n)}}var o=n(7),i=n.n(o),a=n(2),l=n.n(a),c=n(4),s=n.n(c),u=n(11),p=n.n(u),d=n(5),m=n.n(d),g=n(6),f=n.n(g),b=n(3),w=n.n(b),h=(n(0),n(18)),v=n(24),y=n(19),_=n(16),k=n(14),O=n(10),E=(n.n(O),n(1)),C=(n.n(E),wp.element),j=C.Component,S=C.Fragment,x=wp.blockEditor||wp.editor,P=x.InspectorControls,T=wp.components,R=T.PanelBody,N=T.BaseControl,A=T.RangeControl,B=T.SelectControl,D=T.TextareaControl,M=T.ToggleControl,I=T.TextControl,L=T.Button,z=T.Modal,V=T.ButtonGroup,F=T.RadioControl,H=T.Dashicon,G=T.TabPanel,W=wp.data.withSelect,U=wp.compose.compose,q="wp-block-getwid-image-hotspot",Q=function(e){function t(){var e;return l()(this,t),e=n.apply(this,arguments),e.changeTabState=e.changeTabState.bind(p()(e)),e.state={tabName:"general"},e}m()(t,e);var n=r(t);return s()(t,[{key:"changeTabState",value:function(e,t){this.setState(i()({},e,t))}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.id,r=t.url,o=t.imageSize,i=t.imagePoints,a=t.tooltipTrigger,l=t.tooltipTheme,c=t.tooltipArrow,s=t.tooltipAnimation,u=t.dotIcon,p=t.dotSize,d=t.dotPaddings,m=t.dotColor,g=t.dotBackground,f=t.dotOpacity,b=t.dotPulse,w=t.dotAppearanceAnimation,C=t.hoverAnimation,j=e.setAttributes,x=e.className,T=e.imgObj,W=e.onCancelPoint,U=e.updateArrValues,Q=e.changeImageSize,K=e.changeState,Y=e.getState,J=e.onSelectMedia,$=this.state.tabName,Z=this.changeTabState,X=""!=i?JSON.parse(i):[],ee=function(e,t){return wp.element.createElement(S,null,wp.element.createElement(I,{label:Object(E.__)("Title","getwid"),value:X[e].title,onChange:function(t){U({title:t},e)}}),wp.element.createElement(S,null,wp.element.createElement("div",{className:"components-base-control ".concat(q,"__url-field")},wp.element.createElement(H,{className:"".concat(q,"__url-icon"),icon:"admin-links"}),wp.element.createElement(I,{placeholder:Object(E.__)("Enter URL","getwid"),value:X[e].link,onChange:function(t){U({link:t},e)}}),wp.element.createElement(M,{label:Object(E.__)("Open in New Tab","getwid"),checked:X[e].newTab,onChange:function(t){U({newTab:t},e)}}))),wp.element.createElement(D,{label:Object(E.__)("Popup Content. Plain Text or HTML.","getwid"),rows:"5",value:Object(O.unescape)(X[e].content),onChange:function(t){U({content:Object(O.escape)(t)},e)}}),wp.element.createElement(M,{label:Object(E.__)("Opened by default","getwid"),checked:X[e].popUpOpen,onChange:function(t){U({popUpOpen:t},e)}}))},te=function(e,t){return wp.element.createElement(S,null,wp.element.createElement(A,{label:Object(E.__)("X Coord (%)","getwid"),value:parseFloat(X[e].position.x),onChange:function(t){void 0===t&&(t=50),U({position:{x:parseFloat(t)+"%",y:X[e].position.y}},e)},allowReset:!0,min:0,max:100,step:.5}),wp.element.createElement(A,{label:Object(E.__)("Y Coord (%)","getwid"),value:parseFloat(X[e].position.y),onChange:function(t){void 0===t&&(t=50),U({position:{x:X[e].position.x,y:parseFloat(t)+"%"}},e)},allowReset:!0,min:0,max:100,step:.5}),t?wp.element.createElement(B,{label:Object(E.__)("Tooltip Position","getwid"),selected:X[e].placement,options:[{value:"top",label:Object(E.__)("Top","getwid")},{value:"right",label:Object(E.__)("Right","getwid")},{value:"bottom",label:Object(E.__)("Bottom","getwid")},{value:"left",label:Object(E.__)("Left","getwid")}],onChange:function(t){U({placement:t},e),K({updatePoints:!0,highlightDot:!0})}}):wp.element.createElement(F,{label:Object(E.__)("Tooltip Position","getwid"),selected:X[e].placement,options:[{value:"top",label:Object(E.__)("Top","getwid")},{value:"right",label:Object(E.__)("Right","getwid")},{value:"bottom",label:Object(E.__)("Bottom","getwid")},{value:"left",label:Object(E.__)("Left","getwid")}],onChange:function(t){U({placement:t},e),K({updatePoints:!0,highlightDot:!0})}}),wp.element.createElement(I,{label:Object(E.__)("Popup Maximum Width, px.","getwid"),value:X[e].popUpWidth,type:"number",onChange:function(t){U({popUpWidth:t},e)}}))},ne=function(e,t){return wp.element.createElement(S,null,wp.element.createElement(N,{label:Object(E.__)("Point Icon","getwid")},wp.element.createElement(h.a,{value:X[e].icon,onChange:function(t){U({icon:t},e),K({updatePoints:!0,highlightDot:!0})}})),wp.element.createElement(_.a,{colorSettings:[{title:Object(E.__)("Point Background","getwid"),colors:{customColor:X[e].backgroundColor},changeColor:function(t){U({backgroundColor:t},e),K({updatePoints:!0,highlightDot:!0})}},{title:Object(E.__)("Icon Color","getwid"),colors:{customColor:X[e].color},changeColor:function(t){U({color:t},e),K({updatePoints:!0,highlightDot:!0})}}]}))},re=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];switch(t.name){case"content":return wp.element.createElement(S,null,ee(n));case"placement":return wp.element.createElement(S,null,te(n,r));case"style":return wp.element.createElement(S,null,ne(n))}},oe=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return wp.element.createElement(S,null,t?wp.element.createElement(G,{className:"getwid-modal-editor-tabs",activeClass:"is-active",tabs:[{name:"content",title:Object(E.__)("Content","getwid"),className:"components-button"},{name:"placement",title:Object(E.__)("Position","getwid"),className:"components-button"},{name:"style",title:Object(E.__)("Style","getwid"),className:"components-button"}]},function(n){return re(self,n,e,t)}):wp.element.createElement(S,null,wp.element.createElement(R,{title:Object(E.__)("Content","getwid"),initialOpen:!0},ee(e)),wp.element.createElement(R,{title:Object(E.__)("Position","getwid"),initialOpen:!0},te(e,t)),wp.element.createElement(R,{title:Object(E.__)("Style","getwid"),initialOpen:!0},ne(e))))},ie=function(e){void 0!==T&&(j({imageSize:e}),Q(T,e))};return wp.element.createElement(P,null,!this.props.isSelectedPoint()&&wp.element.createElement(y.a,{state:$,stateName:"tabName",onChangeTab:Z,tabs:["general","style","advanced"]}),"general"===$&&!this.props.isSelectedPoint()&&wp.element.createElement(S,null,wp.element.createElement(R,{initialOpen:!0},wp.element.createElement(k.e,{label:Object(E.__)("Image","getwid"),removeButton:!1,url:r,id:n,onSelectMedia:J,onRemoveMedia:function(){return j({url:void 0,id:void 0})}}),T&&wp.element.createElement(B,{label:Object(E.__)("Image Size","getwid"),help:Object(E.__)("For images from Media Library only.","getwid"),value:o,onChange:ie,options:Getwid.settings.image_sizes}),wp.element.createElement(F,{label:Object(E.__)("Tooltip Interactivity","getwid"),help:Object(E.__)("These options are applied on frontend only.","getwid"),selected:a,options:[{value:"hover",label:Object(E.__)("Hover","getwid")},{value:"click",label:Object(E.__)("Click","getwid")},{value:"multiple",label:Object(E.__)("Click (Multiple)","getwid")}],onChange:function(e){return j({tooltipTrigger:e})}}),wp.element.createElement(N,{label:Object(E.__)("Point Icon","getwid")},wp.element.createElement(h.a,{value:u,onChange:function(e){return j({dotIcon:e})}})),wp.element.createElement(A,{label:Object(E.__)("Point Size","getwid"),value:p,onChange:function(e){void 0===e&&(e=16),j({dotSize:e})},allowReset:!0,min:2,max:64,step:1}),wp.element.createElement(A,{label:Object(E.__)("Point Spacing","getwid"),value:d,onChange:function(e){void 0===e&&(e=6),j({dotPaddings:e})},allowReset:!0,min:2,max:100,step:1}))),"style"===$&&!this.props.isSelectedPoint()&&wp.element.createElement(R,{initialOpen:!0},wp.element.createElement(_.a,{colorSettings:[{title:Object(E.__)("Point Background","getwid"),colors:{customColor:g},changeColor:function(e){return j({dotBackground:e})}},{title:Object(E.__)("Icon Color","getwid"),colors:{customColor:m},changeColor:function(e){return j({dotColor:e})}}]}),wp.element.createElement(A,{label:Object(E.__)("Point Opacity","getwid"),value:f,onChange:function(e){void 0===e&&(e=100),j({dotOpacity:e})},allowReset:!0,min:0,max:100,step:1})),"advanced"===$&&!this.props.isSelectedPoint()&&wp.element.createElement(S,null,wp.element.createElement(R,{initialOpen:!0},wp.element.createElement(B,{label:Object(E.__)("Tooltip Theme","getwid"),value:l,onChange:function(e){return j({tooltipTheme:e})},options:[{value:"light",label:Object(E.__)("Default","getwid")},{value:"dark",label:Object(E.__)("Dark","getwid")},{value:"light-border",label:Object(E.__)("Light with border","getwid")},{value:"google",label:Object(E.__)("Google","getwid")},{value:"translucent",label:Object(E.__)("Dark with transparency","getwid")}]}),wp.element.createElement(M,{label:Object(E.__)("Display tooltip arrow","getwid"),checked:c,onChange:function(e){j({tooltipArrow:e})}}),wp.element.createElement(B,{label:Object(E.__)("Tooltip Animation","getwid"),value:s,onChange:function(e){return j({tooltipAnimation:e})},options:[{value:"shift-away",label:Object(E.__)("Shift Away","getwid")},{value:"shift-toward",label:Object(E.__)("Shift Toward","getwid")},{value:"fade",label:Object(E.__)("Fade","getwid")},{value:"scale",label:Object(E.__)("Scale","getwid")},{value:"perspective",label:Object(E.__)("Perspective","getwid")}]}),wp.element.createElement(B,{label:Object(E.__)("Point Animation","getwid"),value:b,onChange:function(e){return j({dotPulse:e})},options:[{value:"none",label:Object(E.__)("None","getwid")},{value:"pulse",label:Object(E.__)("Pulse","getwid")}]}),wp.element.createElement(B,{label:Object(E.__)("Point Appearance Animation","getwid"),value:w,onChange:function(e){return j({dotAppearanceAnimation:e})},options:[{value:"none",label:Object(E.__)("None","getwid")},{value:"zoomIn",label:Object(E.__)("Zoom In","getwid")},{value:"slideDown",label:Object(E.__)("Slide Down","getwid")}]}),wp.element.createElement(v.a,{label:Object(E.__)("Point Animation On Hover","getwid"),help:Object(E.__)("These options are applied on frontend only.","getwid"),value:void 0!==C?C:"",onChange:function(e){return j({hoverAnimation:e})},allowAnimation:["Seeker"]}))),function(e){if(void 0!==X[e])return wp.element.createElement(S,null,"edit"!=Y("action")&&"drop"!=Y("action")||1!=Y("editModal")?null:wp.element.createElement(z,{className:"".concat(x,"__modal"),title:Object(E.__)("Edit Point","getwid"),shouldCloseOnClickOutside:!1,shouldCloseOnEsc:!1,onRequestClose:function(){K({action:!1,editModal:!1}),"drop"==Y("action")&&W()}},wp.element.createElement(S,null,oe(e,!0),wp.element.createElement(V,null,wp.element.createElement(L,{isPrimary:!0,onClick:function(){return K({updatePoints:!0,editModal:!1,action:!1})}},"drop"==Y("action")?Object(E.__)("Save","getwid"):Object(E.__)("Update","getwid")),"drop"==Y("action")&&wp.element.createElement(L,{isDefault:!0,onClick:function(){K({action:!1,editModal:!1}),W()}},Object(E.__)("Cancel","getwid"))))))}(Y("currentPoint")),this.props.isSelectedPoint()&&wp.element.createElement(R,{title:Object(E.__)("Point Settings","getwid"),initialOpen:!0},Object(k.h)(this)))}}]),t}(j);t.a=U([W(function(e,t){return{getEditorSettings:e("core/editor").getEditorSettings}})])(Q)},function(e,t){},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=w()(e);if(t()){var o=w()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f()(this,n)}}var o=n(9),i=n.n(o),a=n(7),l=n.n(a),c=n(2),s=n.n(c),u=n(4),p=n.n(u),d=n(5),m=n.n(d),g=n(6),f=n.n(g),b=n(3),w=n.n(b),h=(n(0),n(1)),v=(n.n(h),n(8)),y=n.n(v),_=n(10),k=(n.n(_),window),O=(k.jQuery,wp.element),E=O.Component,C=O.Fragment,j="wp-block-getwid-image-hotspot",S=function(e){function t(){return s()(this,t),n.apply(this,arguments)}m()(t,e);var n=r(t);return p()(t,[{key:"render",value:function(){var e=this.props.attributes,t=e.id,n=e.url,r=e.alt,o=e.hoverAnimation,a=e.imagePoints,c=e.tooltipTrigger,s=e.tooltipTheme,u=e.tooltipArrow,p=e.tooltipAnimation,d=e.dotIcon,m=e.dotSize,g=e.dotPaddings,f=e.dotColor,b=e.dotBackground,w=e.dotOpacity,h=e.dotPulse,v=e.dotAppearanceAnimation,k=e.className,O=""!=a?JSON.parse(a):[],E={className:y()(k,l()({"getwid-animation":!!o},"has-animated-dots","none"!==v)),"data-animation":o||void 0,"data-appearance-animation":v||void 0},S=n?wp.element.createElement("img",{src:n,alt:void 0!==r?r:null,className:"".concat(j,"__image ")+(t?"wp-image-".concat(t):"")}):null,x=function(e){if(void 0!==O[e]){var t=y()("".concat(j,"__dot"),l()({},"has-animation-".concat(h),"none"!=h)),n={padding:g&&6!=g?g:void 0,opacity:w&&100!=w?w/100:void 0,left:O[e].position.x?O[e].position.x:void 0,top:O[e].position.y?O[e].position.y:void 0,backgroundColor:O[e].backgroundColor?O[e].backgroundColor:b||void 0},r={color:O[e].color?O[e].color:f||void 0,fontSize:m&&16!=m?m:void 0},o="",a={target:O[e].newTab?"_blank":void 0,rel:O[e].newTab?"noopener noreferrer":void 0},c=O[e].icon?O[e].icon:d||void 0;return o=""!=O[e].link?wp.element.createElement("a",i()({href:O[e].link},a),O[e].title):O[e].title,wp.element.createElement(C,null,wp.element.createElement("div",{"data-point-id":e,className:t,style:n},wp.element.createElement("div",{className:"".concat(j,"__dot-wrapper")},wp.element.createElement("div",{style:r,className:"".concat(j,"__dot-content")},wp.element.createElement("i",{className:"".concat(c," ").concat(j,"__dot-icon")}))),wp.element.createElement("div",{className:"".concat(j,"__dot-description")},wp.element.createElement("div",{className:"".concat(j,"__dot-title")},o))))}},P={className:y()("".concat(j,"__wrapper"))},T={"data-image-points":Object(_.escape)(a)},R={"data-trigger":c,"data-theme":s,"data-tooltip-animation":p,"data-arrow":u};return wp.element.createElement("div",i()({},E,T,R),wp.element.createElement("div",P,S,0!=O.length&&wp.element.createElement(C,null,Object(_.times)(O.length,function(e){return x(e)}))))}}]),t}(E);t.a=S},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=w()(e);if(t()){var o=w()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f()(this,n)}}var o=n(9),i=n.n(o),a=n(7),l=n.n(a),c=n(2),s=n.n(c),u=n(4),p=n.n(u),d=n(5),m=n.n(d),g=n(6),f=n.n(g),b=n(3),w=n.n(b),h=(n(0),n(1)),v=(n.n(h),n(8)),y=n.n(v),_=n(10),k=(n.n(_),window),O=(k.jQuery,wp.element),E=O.Component,C=O.Fragment,j="wp-block-getwid-image-hotspot",S=function(e){function t(){return s()(this,t),n.apply(this,arguments)}m()(t,e);var n=r(t);return p()(t,[{key:"render",value:function(){var e=this.props.attributes,t=e.id,n=e.url,r=e.alt,o=e.hoverAnimation,a=e.imagePoints,c=e.tooltipTrigger,s=e.tooltipTheme,u=e.tooltipArrow,p=e.tooltipAnimation,d=e.dotIcon,m=e.dotSize,g=e.dotPaddings,f=e.dotColor,b=e.dotBackground,w=e.dotOpacity,h=e.dotPulse,v=e.dotAppearanceAnimation,k=e.className,O=""!=a?JSON.parse(a):[],E={className:y()(k,l()({"getwid-animation":!!o},"has-animated-dots","none"!==v)),"data-animation":o||void 0,"data-appearance-animation":v||void 0},S=n?wp.element.createElement("img",{src:n,alt:void 0!==r?r:null,className:"".concat(j,"__image")+" wp-image-".concat(t)}):null,x=function(e){if(void 0!==O[e]){var t=y()("".concat(j,"__dot"),l()({},"has-animation-".concat(h),"none"!=h)),n={padding:g&&6!=g?g:void 0,opacity:w&&100!=w?w/100:void 0,left:O[e].position.x?O[e].position.x:void 0,top:O[e].position.y?O[e].position.y:void 0,backgroundColor:O[e].backgroundColor?O[e].backgroundColor:b||void 0},r={color:O[e].color?O[e].color:f||void 0,fontSize:m&&16!=m?m:void 0},o="",a={target:O[e].newTab?"_blank":void 0,rel:O[e].newTab?"noopener noreferrer":void 0},c=O[e].icon?O[e].icon:d||void 0;return o=""!=O[e].link?wp.element.createElement("a",i()({href:O[e].link},a),O[e].title):O[e].title,wp.element.createElement(C,null,wp.element.createElement("div",{"data-point-id":e,className:t,style:n},wp.element.createElement("div",{className:"".concat(j,"__dot-wrapper")},wp.element.createElement("div",{style:r,className:"".concat(j,"__dot-content")},wp.element.createElement("i",{className:"".concat(c," ").concat(j,"__dot-icon")}))),wp.element.createElement("div",{className:"".concat(j,"__dot-description")},wp.element.createElement("div",{className:"".concat(j,"__dot-title")},o))))}},P={className:y()("".concat(j,"__wrapper"))},T={"data-image-points":Object(_.escape)(a)},R={"data-trigger":c,"data-theme":s,"data-tooltip-animation":p,"data-arrow":u};return wp.element.createElement("div",i()({},E,T,R),wp.element.createElement("div",P,S,0!=O.length&&wp.element.createElement(C,null,Object(_.times)(O.length,function(e){return x(e)}))))}}]),t}(E);t.a=S},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(n,!0).forEach(function(t){a()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var i=n(7),a=n.n(i),l=(n(0),n(487)),c=n(488),s=n(12),u=n(1),p=(n.n(u),window),d=(p.jQuery,wp.blocks),m=d.registerBlockType;d.createBlock;m("getwid/countdown",o(o({title:Object(u.__)("Countdown","getwid"),icon:wp.element.createElement("svg",{x:"0px",y:"0px",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("polygon",{points:"12,14 12,10 10,10 10,14 10,16 12,16 16,16 16,14 "}),wp.element.createElement("path",{d:"M15,4.46V1l-5,4l5,4V6.59c2.93,1.19,5,4.06,5,7.41c0,4.41-3.59,8-8,8s-8-3.59-8-8H2c0,5.52,4.48,10,10,10s10-4.48,10-10 C22,9.53,19.06,5.74,15,4.46z"})),category:"getwid-blocks",keywords:[Object(u.__)("timer","getwid")],supports:{alignWide:!0,align:["wide","full"],inserter:!Getwid.disabled_blocks.includes("getwid/countdown")},getEditWrapperProps:function(e){var t=e.align;if(["wide","full"].includes(t))return{"data-align":t}},attributes:l.a},Object(s.b)("getwid/countdown",c.a)),{},{save:function(){return null}}))},function(e,t,n){"use strict";var r={dateTime:{type:"string"},years:{type:"boolean",default:!1},months:{type:"boolean",default:!1},weeks:{type:"boolean",default:!1},days:{type:"boolean",default:!0},hours:{type:"boolean",default:!0},minutes:{type:"boolean",default:!0},seconds:{type:"boolean",default:!0},backgroundColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"},fontGroupID:{type:"string",default:""},fontFamily:{type:"string",default:""},fontSize:{type:"string"},fontSizeTablet:{type:"string",default:"fs-tablet-100"},fontSizeMobile:{type:"string",default:"fs-mobile-100"},fontWeight:{type:"string"},fontStyle:{type:"string"},textTransform:{type:"string"},lineHeight:{type:"string"},letterSpacing:{type:"string"},align:{type:"string"},textAlignment:{type:"string"},innerPadding:{type:"string",default:"default"},innerSpacings:{type:"string",default:"none"}};t.a=r},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(n,!0).forEach(function(t){s()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function i(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=O()(e);if(t()){var o=O()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return _()(this,n)}}var a=n(9),l=n.n(a),c=n(7),s=n.n(c),u=n(13),p=n.n(u),d=n(2),m=n.n(d),g=n(4),f=n.n(g),b=n(11),w=n.n(b),h=n(5),v=n.n(h),y=n(6),_=n.n(y),k=n(3),O=n.n(k),E=(n(0),n(489)),C=n(70),j=n.n(C),S=n(10),x=(n.n(S),n(490)),P=(n.n(x),n(491)),T=(n.n(P),n(1)),R=(n.n(T),window),N=R.jQuery,A=wp,B=A.serverSideRender,D=wp.compose.compose,M=wp.element,I=M.Component,L=M.Fragment,z=wp.components.ToolbarGroup,V=wp.blockEditor||wp.editor,F=V.BlockControls,H=(V.AlignmentToolbar,V.withColors),G=function(e){function t(e){var r;return m()(this,t),r=n.apply(this,arguments),r.changeState=r.changeState.bind(w()(r)),r.getState=r.getState.bind(w()(r)),r.initCountdown=r.initCountdown.bind(w()(r)),r}v()(t,e);var n=i(t);return f()(t,[{key:"changeState",value:function(e,t){"object"==p()(e)?this.setState(e):"string"==typeof e&&this.setState(s()({},e,t))}},{key:"getState",value:function(e){return this.state[e]}},{key:"initCountdown",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=this.props.clientId,r=N("[data-block='".concat(n,"']"));this.waitLoadCountdown=setInterval(function(){var n=N(".".concat("wp-block-getwid-countdown","__content:not('.init-countdown')"),r);if(n.length){n.addClass("init-countdown");var o=n.data("datetime"),i=n.data("years"),a=n.data("months"),l=n.data("weeks"),c=n.data("days"),s=n.data("hours"),u=n.data("minutes"),p=n.data("seconds"),d=n.data("bg-color"),m="negative"==o?"":o,g="";i&&(g+="Y"),a&&(g+="O"),l&&(g+="W"),c&&(g+="D"),s&&(g+="H"),u&&(g+="M"),p&&(g+="S"),t&&"function"==typeof n.countdown&&n.countdown("destroy"),"function"==typeof n.countdown&&n.countdown({until:m,format:g,onTick:function(e){var t=jQuery(".countdown-section",n);d&&t.css("background-color",d)}}),clearInterval(e.waitLoadCountdown)}},1)}},{key:"componentDidMount",value:function(){this.initCountdown(!1)}},{key:"componentDidUpdate",value:function(e,t){Object(S.isEqual)(this.props.attributes,e.attributes)||this.initCountdown(!0)}},{key:"componentWillUnmount",value:function(){clearInterval(this.waitLoadCountdown)}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.fontGroupID,r=t.fontFamily,i=t.fontWeight,a=t.textAlignment,c=e.setAttributes,s=this.changeState,u=[{icon:"editor-alignleft",title:Object(T.__)("Left","getwid"),isActive:"left"==a,onClick:function(){c({textAlignment:"left"})}},{icon:"editor-aligncenter",title:Object(T.__)("Center","getwid"),isActive:"center"==a,onClick:function(){c({textAlignment:"center"})}},{icon:"editor-alignright",title:Object(T.__)("Right","getwid"),isActive:"right"==a,onClick:function(){c({textAlignment:"right"})}},{icon:"editor-justify",title:Object(T.__)("Justify","getwid"),isActive:"justify"==a,onClick:function(){c({textAlignment:"justify"})}}],p=!!r&&["","google-fonts"].includes(n);return wp.element.createElement(L,null,p&&wp.element.createElement(j.a,{fonts:[{font:r,weights:[i]}]}),wp.element.createElement(F,null,wp.element.createElement(z,{controls:u})),wp.element.createElement(E.a,l()({},o(o({},this.props),{},{changeState:s}),{key:"inspector"})),wp.element.createElement(B,{block:"getwid/countdown",attributes:this.props.attributes}))}}]),t}(I);t.a=D([H({textColor:"color"})])(G)},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=v()(e);if(t()){var o=v()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return w()(this,n)}}var o=n(7),i=n.n(o),a=n(13),l=n.n(a),c=n(2),s=n.n(c),u=n(4),p=n.n(u),d=n(11),m=n.n(d),g=n(5),f=n.n(g),b=n(6),w=n.n(b),h=n(3),v=n.n(h),y=(n(0),n(17)),_=n(69),k=n(19),O=n(14),E=n(1),C=(n.n(E),wp.element),j=C.Component,S=C.Fragment,x=wp.components,P=x.PanelBody,T=x.SelectControl,R=x.DateTimePicker,N=x.ToggleControl,A=wp.blockEditor||wp.editor,B=A.InspectorControls,D=A.PanelColorSettings,M=function(e){function t(e){var r;return s()(this,t),r=n.apply(this,arguments),r.changeState=r.changeState.bind(m()(r)),r.state={tabName:"general"},r}f()(t,e);var n=r(t);return p()(t,[{key:"changeState",value:function(e,t){"object"==l()(e)?this.setState(e):"string"==typeof e&&this.setState(i()({},e,t))}},{key:"render",value:function(){var e=this.props.attributes,t=e.dateTime,n=e.years,r=e.months,o=e.weeks,i=e.days,a=e.hours,l=e.minutes,c=e.seconds,s=e.fontFamily,u=e.fontWeight,p=this.props.attributes,d=p.fontStyle,m=p.textTransform,g=p.lineHeight,f=p.letterSpacing,b=p.backgroundColor,w=p.innerPadding,h=p.innerSpacings,v=this.props,C=v.setTextColor,j=v.textColor,x=v.setAttributes,A=new Date(Getwid.settings.date_time_utc.replace(/-/g,"/"));A.setDate(A.getDate()+1);var M=this.state.tabName,I=this.changeState;return wp.element.createElement(B,{key:"inspector"},wp.element.createElement(k.a,{state:M,stateName:"tabName",onChangeTab:I,tabs:["general","style"]}),"general"===M&&wp.element.createElement(S,null,wp.element.createElement(P,{initialOpen:!0},wp.element.createElement(R,{currentDate:t||A,onChange:function(e){x({dateTime:e})}}),wp.element.createElement(N,{label:Object(E.__)("Years","getwid"),checked:n,onChange:function(e){x({years:e})}}),wp.element.createElement(N,{label:Object(E.__)("Months","getwid"),checked:r,onChange:function(e){x({months:e})}}),wp.element.createElement(N,{label:Object(E.__)("Weeks","getwid"),checked:o,onChange:function(e){x({weeks:e})}}),wp.element.createElement(N,{label:Object(E.__)("Days","getwid"),checked:i,onChange:function(e){x({days:e})}}),wp.element.createElement(N,{label:Object(E.__)("Hours","getwid"),checked:a,onChange:function(e){x({hours:e})}}),wp.element.createElement(N,{label:Object(E.__)("Minutes","getwid"),checked:l,onChange:function(e){x({minutes:e})}}),wp.element.createElement(N,{label:Object(E.__)("Seconds","getwid"),checked:c,onChange:function(e){x({seconds:e})}}))),"style"===M&&wp.element.createElement(S,null,wp.element.createElement(P,{title:Object(E.__)("Font Settings","getwid"),initialOpen:!0},wp.element.createElement(_.a,{label:Object(E.__)("Font Family","getwid"),value:s,onChangeFontGroupID:function(e){x({fontGroupID:e})},onChangeFontFamily:function(e){x({fontFamily:e,fontWeight:"normal"})},valueWeight:u,onChangeFontWeight:function(e){x({fontWeight:e})}}),Object(O.b)(this),wp.element.createElement(T,{label:Object(E.__)("Font Style","getwid"),value:d,options:[{value:"normal",label:Object(E.__)("Normal","getwid")},{value:"italic",label:Object(E.__)("Italic","getwid")},{value:"inherit",label:Object(E.__)("Inherit","getwid")}],onChange:function(e){return x({fontStyle:e})}}),wp.element.createElement(T,{label:Object(E.__)("Text Transform","getwid"),value:m,options:[{value:"default",label:Object(E.__)("Default","getwid")},{value:"uppercase",label:Object(E.__)("Uppercase","getwid")},{value:"lowercase",label:Object(E.__)("Lowercase","getwid")}],onChange:function(e){return x({textTransform:e})}}),wp.element.createElement(y.a,{label:Object(E.__)("Line Height","getwid"),value:g,onChange:function(e){x({lineHeight:e})}}),wp.element.createElement(y.a,{label:Object(E.__)("Letter Spacing","getwid"),value:f,allowNegative:!0,units:[{label:"px",value:"px"},{label:"em",value:"em"},{label:"pt",value:"pt"},{label:"vh",value:"vh"},{label:"vw",value:"vw"}],onChange:function(e){x({letterSpacing:e})}})),wp.element.createElement(P,{title:Object(E.__)("Layout","getwid"),initialOpen:!1},wp.element.createElement(T,{label:Object(E.__)("Space around numbers","getwid"),value:w,options:[{value:"default",label:Object(E.__)("Default","getwid")},{value:"small",label:Object(E.__)("Small","getwid")},{value:"medium",label:Object(E.__)("Medium","getwid")},{value:"normal",label:Object(E.__)("Normal","getwid")},{value:"large",label:Object(E.__)("Large","getwid")}],onChange:function(e){return x({innerPadding:e})}}),wp.element.createElement(T,{label:Object(E.__)("Space between numbers","getwid"),value:h,options:[{value:"none",label:Object(E.__)("None","getwid")},{value:"small",label:Object(E.__)("Small","getwid")},{value:"medium",label:Object(E.__)("Medium","getwid")},{value:"normal",label:Object(E.__)("Normal","getwid")},{value:"large",label:Object(E.__)("Large","getwid")}],onChange:function(e){return x({innerSpacings:e})}})),wp.element.createElement(D,{title:Object(E.__)("Colors","getwid"),initialOpen:!1,colorSettings:[{value:j.color,onChange:C,label:Object(E.__)("Text Color","getwid")},{value:b,onChange:function(e){x({backgroundColor:e})},label:Object(E.__)("Background Color","getwid")}]})))}}]),t}(j);t.a=M},function(e,t){},function(e,t){},function(e,t,n){"use strict";n(493),n(499)},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(n,!0).forEach(function(t){a()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var i=n(7),a=n.n(i),l=(n(0),n(1)),c=(n.n(l),n(84)),s=n(496),u=n(12),p=n(53),d=n(497),m=wp.blocks.registerBlockType,g="wp-block-getwid-content-timeline";m("getwid/content-timeline",o(o({title:Object(l.__)("Content Timeline","getwid"),icon:wp.element.createElement("svg",{x:"0px",y:"0px",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},wp.element.createElement("path",{d:"M16,8v3h-2.28c-0.17-0.3-0.42-0.55-0.72-0.72V5.72c0.6-0.35,1-0.98,1-1.72s-0.4-1.38-1-1.72V0h-2v2.28 C10.7,2.45,10.45,2.7,10.28,3H8V0H0v8h8V5h2.28C10.45,5.3,10.7,5.55,11,5.72v4.55c-0.6,0.35-1,0.98-1,1.72s0.4,1.38,1,1.72v4.55 c-0.3,0.17-0.55,0.42-0.72,0.72H8v-3H0v8h8v-3h2.28c0.17,0.3,0.42,0.55,0.72,0.72V24h2v-2.28c0.6-0.35,1-0.98,1-1.72 s-0.4-1.38-1-1.72v-4.55c0.3-0.17,0.55-0.42,0.72-0.72H16v3h8V8H16z M6,6H2V2h4V6z M6,22H2v-4h4V22z M22,14h-4v-4h4V14z"})),category:"getwid-blocks",supports:{align:["wide","full"],inserter:!Getwid.disabled_blocks.includes("getwid/content-timeline")},transforms:{from:[{type:"block",blocks:["core/gallery"],transform:function(e){return Object(p.a)(e)}},{type:"block",isMultiBlock:!0,blocks:["core/image"],transform:function(e){return Object(p.a)(e)}},{type:"block",blocks:["getwid/images-stack"],transform:function(e){return Object(p.a)(e)}},{type:"block",blocks:["getwid/images-slider"],transform:function(e){return Object(p.a)(e)}}],to:[{type:"block",blocks:["core/gallery"],transform:function(){return Object(p.b)("core/gallery")}},{type:"block",blocks:["core/image"],transform:function(){return Object(p.b)("core/image")}},{type:"block",blocks:["getwid/images-stack"],transform:function(){return Object(p.b)("getwid/images-stack")}},{type:"block",blocks:["getwid/images-slider"],transform:function(){return Object(p.b)("getwid/images-slider")}},{type:"block",blocks:["getwid/media-text-slider"],transform:function(){return Object(p.b)("getwid/media-text-slider")}}]},keywords:[Object(l.__)("vertical","getwid"),Object(l.__)("workflow","getwid")],getEditWrapperProps:function(e){var t=e.align;if(["wide","full"].includes(t))return{"data-align":t}},attributes:s.a},Object(u.b)("getwid/content-timeline",function(e){return wp.element.createElement(c.b,o(o({},e),{},{baseClass:g}))})),{},{save:function(e){return wp.element.createElement(d.a,o(o({},e),{},{baseClass:g}))}}))},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=f()(e);if(t()){var o=f()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var o=n(15),i=n.n(o),a=n(2),l=n.n(a),c=n(4),s=n.n(c),u=n(5),p=n.n(u),d=n(6),m=n.n(d),g=n(3),f=n.n(g),b=(n(0),n(1)),w=(n.n(b),n(17)),h=n(16),v=n(14),y=wp.element.Component,_=wp.blockEditor||wp.editor,k=_.InspectorControls,O=wp.components,E=O.ToggleControl,C=O.PanelBody,j=O.SelectControl,S=O.BaseControl,x=O.Button,P=window,T=P.jQuery,R=function(e){function t(){return l()(this,t),n.apply(this,arguments)}p()(t,e);var n=r(t);return s()(t,[{key:"render",value:function(){var e,t=this.props.attributes,n=t.filling,r=t.animation,o=this.props,a=o.setBackgroundColor,l=o.setFillColor,c=this.props,s=c.backgroundColor,u=c.customBackgroundColor,p=c.fillColor,d=c.customFillColor,m=c.setAttributes,g=c.clientId,f=c.getBlock,y=this.props.attributes,_=y.horizontalSpace,O=y.marginBottom,P=f(g);return P?(e=P.innerBlocks.length>1,wp.element.createElement(k,null,wp.element.createElement(C,{title:Object(b.__)("Settings","getwid"),initialOpen:!0},wp.element.createElement(j,{label:Object(b.__)("Block Animation","getwid"),value:r,onChange:function(e){m({animation:e})},options:[{value:"none",label:Object(b.__)("None","getwid")},{value:"slideInSides",label:Object(b.__)("Slide In","getwid")},{value:"slideInBottom",label:Object(b.__)("Slide In Up","getwid")},{value:"fadeIn",label:Object(b.__)("Fade In","getwid")}]}),e&&wp.element.createElement(E,{label:Object(b.__)("Display scroll progress","getwid"),checked:"true"==n,onChange:function(e){m({filling:e?"true":"false"})}}),wp.element.createElement(h.a,{colorSettings:[{title:Object(b.__)("Background Color","getwid"),colors:{customColor:u,defaultColor:s},changeColor:a}].concat(i()(T.parseJSON(n)?[{title:Object(b.__)("Progress Color","getwid"),colors:{customColor:d,defaultColor:p},changeColor:l}]:[]))}),wp.element.createElement(w.a,{label:Object(b.__)("Horizontal Space","getwid"),value:_||"",onChange:function(e){m({horizontalSpace:e})}}),wp.element.createElement(S,null,wp.element.createElement(x,{isLink:!0,onClick:function(){m({horizontalSpace:void 0})},disabled:!_},Object(b.__)("Reset","getwid"))),wp.element.createElement(w.a,{label:Object(b.__)("Vertical Space","getwid"),value:O,onChange:function(e){m({marginBottom:e})}}),wp.element.createElement(S,null,wp.element.createElement(x,{isLink:!0,onClick:function(){m({marginBottom:void 0})},disabled:!O},Object(b.__)("Reset","getwid"))),wp.element.createElement(C,{title:Object(b.__)("Padding","getwid"),initialOpen:!0},Object(v.f)(this))))):wp.element.createElement(k,null)}}]),t}(y);t.a=R},function(e,t){},function(e,t,n){"use strict";var r={align:{type:"string"},wrapperAlign:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},fillColor:{type:"string"},customFillColor:{type:"string"},paddingTop:{type:"string"},paddingBottom:{type:"string"},paddingLeft:{type:"string"},paddingRight:{type:"string"},horizontalSpace:{type:"string"},marginBottom:{type:"string"},animation:{type:"string",source:"attribute",selector:".wp-block-getwid-content-timeline",attribute:"data-animation",default:"none"},filling:{type:"string",source:"attribute",selector:".wp-block-getwid-content-timeline",attribute:"data-filling",default:"true"}};t.a=r},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=w()(e);if(t()){var o=w()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f()(this,n)}}var o=n(9),i=n.n(o),a=n(7),l=n.n(a),c=n(2),s=n.n(c),u=n(4),p=n.n(u),d=n(5),m=n.n(d),g=n(6),f=n.n(g),b=n(3),w=n.n(b),h=(n(0),n(8)),v=n.n(h),y=n(498),_=(n.n(y),wp.blockEditor||wp.editor),k=_.InnerBlocks,O=_.getColorClassName,E=wp.element.Component,C=function(e){function t(){return s()(this,t),n.apply(this,arguments)}m()(t,e);var n=r(t);return p()(t,[{key:"render",value:function(){var e=this.props,t=e.className,n=e.baseClass,r=this.props.attributes,o=r.animation,a=r.filling,c=this.props.attributes,s=c.fillColor,u=c.customFillColor,p=O("background-color",s),d={className:v()("".concat(n,"__bar"),l()({"has-background":s||u},p,p)),style:{backgroundColor:s?void 0:u}},m={className:v()(t,l()({},"is-animated","none"!=o))};return wp.element.createElement("div",i()({},m,{"data-animation":o,"data-filling":a}),wp.element.createElement("div",{className:"".concat(n,"__line")},wp.element.createElement("div",d)),wp.element.createElement("div",{className:"".concat(n,"__wrapper")},wp.element.createElement(k.Content,null)))}}]),t}(E);t.a=C},function(e,t){},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(n,!0).forEach(function(t){a()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var i=n(7),a=n.n(i),l=(n(0),n(500)),c=n(502),s=n(503),u=n(504),p=n(84),d=n(1),m=(n.n(d),wp.blocks.registerBlockType),g="wp-block-getwid-content-timeline-item";m("getwid/content-timeline-item",{title:Object(d.__)("Timeline Block","getwid"),category:"getwid-blocks",parent:["getwid/content-timeline"],supports:{multiple:!0,reusable:!1,html:!1},deprecated:[{attributes:c.a,save:s.a}],attributes:c.a,edit:function(e){return wp.element.createElement(p.a,null,function(t){var n=t.updateLineHeight,r=t.updateBarHeight,i=t.setColorByScroll;return wp.element.createElement(l.a,o(o(o(o(o({},e),{updateLineHeight:n}),{updateBarHeight:r}),{setColorByScroll:i}),{},{baseClass:g}))})},save:function(e){return wp.element.createElement(u.a,o(o({},e),{},{baseClass:g}))}})},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(n,!0).forEach(function(t){s()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function i(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=_()(e);if(t()){var o=_()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return v()(this,n)}}var a=n(9),l=n.n(a),c=n(7),s=n.n(c),u=n(2),p=n.n(u),d=n(4),m=n.n(d),g=n(11),f=n.n(g),b=n(5),w=n.n(b),h=n(6),v=n.n(h),y=n(3),_=n.n(y),k=(n(0),n(1)),O=(n.n(k),n(8)),E=n.n(O),C=n(10),j=(n.n(C),n(501)),S=n(12),x=wp.compose.compose,P=wp.data.withSelect,T=wp.element,R=T.Component,N=T.Fragment,A=wp.components,B=A.ToolbarGroup,D=A.ToolbarButton,M=wp.blockEditor||wp.editor,I=M.MediaUploadCheck,L=M.MediaUpload,z=M.BlockControls,V=M.InnerBlocks,F=M.RichText,H=M.getColorObjectByAttributeValues,G=window,W=G.jQuery,U=["core/bold","core/italic","core/link","core/image","core/strikethrough","core/text-color"],q=function(e){function t(){var e;return p()(this,t),e=n.apply(this,arguments),e.onSelectImage=e.onSelectImage.bind(f()(e)),e.onChangeImageSize=e.onChangeImageSize.bind(f()(e)),e.state={rootClientId:e.setRootId()},e}w()(t,e);var n=i(t);return m()(t,[{key:"setRootId",value:function(){var e=this.props,t=e.clientId;return(0,e.getBlockRootClientId)(t)}},{key:"pickRelevantMediaFiles",value:function(e,t){var n=Object(C.pick)(e,["id","link","caption"]);return n.original_url=e.url||e.source_url,n.alt=e.alt||e.alt_text,n.url=Object(C.get)(e,["sizes",t,"url"])||Object(C.get)(e,["media_details","sizes",t,"source_url"])||e.url,n}},{key:"onSelectImage",value:function(e){var t=this.props.attributes.imageSize,n=this.props.setAttributes;["full","large","medium","thumbnail"].includes(t)||n({imageSize:void 0,id:void 0,url:void 0}),n(o({},this.pickRelevantMediaFiles(e,t)))}},{key:"onChangeImageSize",value:function(e){var t=this.props,n=t.imgObj,r=t.setAttributes;n&&r(o({imageSize:e},this.pickRelevantMediaFiles(n,e)))}},{key:"updateTimeLineView",value:function(){var e=this.props,t=e.updateLineHeight,n=e.updateBarHeight,r=e.setColorByScroll;t();var o=this.props.getBlock,i=this.state.rootClientId,a=o(i).attributes.filling;if(W.parseJSON(a)){var l=W("#block-".concat(i));n(l),r(l)}}},{key:"getColors",value:function(){var e=this.props.getSettings,t=this.props.attributes.outerParent,n=t&&t.attributes.customBackgroundColor?t.attributes.customBackgroundColor:void 0,r=t&&t.attributes.backgroundColor?t.attributes.backgroundColor:void 0,o={};return o.backgroundColor=r?function(t){var n=Object(C.get)(e(),["colors"],[]);return H(n,t).color}(r):n||void 0,o}},{key:"render",value:function(){var e=this,t=this.props.attributes,n=t.url,r=t.id,i=t.cardPosition,a=this.props,c=a.className,s=a.baseClass,u=a.setAttributes,p=this.props.attributes.outerParent,d={className:E()(c,{"has-card-left":"left"==i,"has-card-right":"right"==i})},m=this.getColors(),g={style:{backgroundColor:m.backgroundColor?m.backgroundColor:void 0}},f={style:{paddingTop:p&&p.attributes.paddingTop?p.attributes.paddingTop:void 0,paddingBottom:p&&p.attributes.paddingBottom?p.attributes.paddingBottom:void 0,paddingLeft:p&&p.attributes.paddingLeft?p.attributes.paddingLeft:void 0,paddingRight:p&&p.attributes.paddingRight?p.attributes.paddingRight:void 0}},b={style:{marginLeft:p&&p.attributes.horizontalSpace?p.attributes.horizontalSpace:void 0,marginRight:p&&p.attributes.horizontalSpace?p.attributes.horizontalSpace:void 0}},w={style:{marginBottom:p&&p.attributes.marginBottom?p.attributes.marginBottom:void 0}},h=this.onChangeImageSize,v=this.onSelectImage;return wp.element.createElement(N,null,wp.element.createElement(j.a,l()({},o(o(o({},this.props),{onChangeImageSize:h}),{onSelectImage:v}),{key:"inspector"})),wp.element.createElement(z,null,wp.element.createElement(B,null,wp.element.createElement(I,null,wp.element.createElement(L,{onSelect:this.onSelectImage,allowedTypes:["image"],value:r,render:function(e){var t=e.open;return wp.element.createElement("div",null,wp.element.createElement(D,{className:"components-toolbar__control",label:Object(k.__)("Select Image","getwid"),icon:"format-image",onClick:t}))}})),n&&wp.element.createElement(D,{className:"components-toolbar__control",label:Object(k.__)("Delete Image","getwid"),icon:"trash",onClick:function(){u({id:void 0,url:void 0})}}))),wp.element.createElement("div",l()({},d,w),wp.element.createElement("div",{className:"".concat(s,"__wrapper")},wp.element.createElement("div",l()({className:"".concat(s,"__card")},g),wp.element.createElement("div",{className:"".concat(s,"__card-wrapper")},n&&wp.element.createElement("div",{className:"".concat(s,"__image-wrapper")},wp.element.createElement("img",{className:"".concat(s,"__image"),src:n,alt:""})),wp.element.createElement("div",l()({className:"".concat(s,"__content-wrapper")},f),wp.element.createElement(V,{templateLock:!1,templateInsertUpdatesSelection:!1,template:[["core/heading",{level:3,placeholder:Object(k.__)("Write heading…","getwid")}],["core/paragraph",{placeholder:Object(k.__)("Write text…","getwid")}]]})))),wp.element.createElement("div",l()({className:"".concat(s,"__point")},b),wp.element.createElement("div",{className:"".concat(s,"__point-content")})),wp.element.createElement("div",{className:"".concat(s,"__meta")},wp.element.createElement(F,{placeholder:Object(k.__)("Write text…","getwid"),value:this.props.attributes.meta,allowedFormats:U,onChange:function(t){return e.props.setAttributes({meta:t})},className:"".concat(s,"__meta-content"),keepPlaceholderOnFocus:!0})))))}},{key:"componentDidUpdate",value:function(e,t){var n=this.props.attributes.outerParent;n&&e.attributes.outerParent&&(Object(C.isEqual)(e.attributes.outerParent.marginBottom,n.attributes.marginBottom)||this.updateTimeLineView())}},{key:"componentWillUnmount",value:function(){var e=this.props,t=e.baseClass,n=e.clientId;W("#block-".concat(n)).find(".".concat(t,"__height-observer")).off()}},{key:"componentDidMount",value:function(){var e=this,t=!1,n=this.props,r=n.clientId,o=n.baseClass,i=W("#block-".concat(r)),a=i.find(".".concat(o,"__card")),l=i.find(".".concat(o,"__point-content")),c=i.find(".".concat(o,"__meta")),s=this.props.attributes.outerParent,u=s?s.attributes.animation:"none";a[0].getBoundingClientRect().top>.8*window.innerHeight&&"none"!=u&&(a.addClass("is-hidden"),c.addClass("is-hidden"),l.addClass("is-hidden"));var p=function(){a.hasClass("is-hidden")&&a[0].getBoundingClientRect().top<=.8*window.innerHeight&&(a.addClass(u),c.addClass(u),l.addClass("bounce-in"),a.removeClass("is-hidden"),c.removeClass("is-hidden"),l.removeClass("is-hidden")),t=!1},d=W(".edit-post-layout").find("div[class$=__content]");"none"!=u&&d.scroll(function(){t||(t=!0,window.requestAnimationFrame?window.requestAnimationFrame(function(){return p()}):setTimeout(function(){return p()},250))});var m=i.find(".".concat(o,"__card-wrapper"));Object(S.c)(m,o,function(){e.updateTimeLineView()})}}]),t}(R);t.a=x([P(function(e,t){var n=e("core"),r=n.getMedia,o=e("core/block-editor"),i=o.getBlock,a=o.getSettings,l=o.getBlockRootClientId,c=t.attributes.id;return{getBlock:i,getSettings:a,getBlockRootClientId:l,imgObj:c?r(c):null}})])(q)},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=m()(e);if(t()){var o=m()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p()(this,n)}}var o=n(2),i=n.n(o),a=n(4),l=n.n(a),c=n(5),s=n.n(c),u=n(6),p=n.n(u),d=n(3),m=n.n(d),g=(n(0),n(1)),f=(n.n(g),n(14)),b=wp.element.Component,w=wp.blockEditor||wp.editor,h=w.InspectorControls,v=wp.components,y=v.PanelBody,_=v.SelectControl,k=(v.BaseControl,v.Button,function(e){function t(){return i()(this,t),n.apply(this,arguments)}s()(t,e);var n=r(t);return l()(t,[{key:"render",value:function(){var e=this.props.attributes,t=e.id,n=e.url,r=e.cardPosition,o=e.imageSize,i=this.props,a=i.setAttributes,l=i.imgObj,c=i.onSelectImage,s=i.clientId;return(0,i.getBlock)(s)?wp.element.createElement(h,null,wp.element.createElement(y,{title:Object(g.__)("Settings","getwid"),initialOpen:!0},wp.element.createElement(f.e,{label:Object(g.__)("Image","getwid"),url:n,id:t,onSelectMedia:c,onRemoveMedia:function(){return a({url:void 0,id:void 0})}}),n&&l&&wp.element.createElement(_,{label:Object(g.__)("Image Size","getwid"),help:Object(g.__)("For images from Media Library only.","getwid"),value:o,onChange:this.props.onChangeImageSize,options:Getwid.settings.image_sizes}),wp.element.createElement(_,{label:Object(g.__)("Alignment","getwid"),value:r,onChange:function(e){a({cardPosition:e})},options:[{value:"",label:Object(g.__)("Auto","getwid")},{value:"left",label:Object(g.__)("Left","getwid")},{value:"right",label:Object(g.__)("Right","getwid")}]}))):wp.element.createElement(h,null)}}]),t}(b));t.a=k},function(e,t,n){"use strict";var r={outerParent:{type:"object"},cardPosition:{type:"string",default:""},meta:{type:"string",source:"html",selector:".wp-block-getwid-content-timeline-item__meta-content"},imageSize:{type:"string",default:"full"},id:{type:"number"},alt:{type:"string",source:"attribute",selector:".wp-block-getwid-content-timeline-item__image",attribute:"alt",default:""},url:{type:"string",source:"attribute",selector:".wp-block-getwid-content-timeline-item__image",attribute:"src"}};t.a=r},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(n,!0).forEach(function(t){s()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function i(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=v()(e);if(t()){var o=v()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return w()(this,n)}}var a=n(9),l=n.n(a),c=n(7),s=n.n(c),u=n(2),p=n.n(u),d=n(4),m=n.n(d),g=n(5),f=n.n(g),b=n(6),w=n.n(b),h=n(3),v=n.n(h),y=(n(0),n(8)),_=n.n(y),k=wp.blockEditor||wp.editor,O=k.RichText,E=wp.blockEditor||wp.editor,C=E.InnerBlocks,j=E.getColorClassName,S=wp.element.Component,x=function(e){function t(){return p()(this,t),n.apply(this,arguments)}f()(t,e);var n=i(t);return m()(t,[{key:"render",value:function(){var e=this.props,t=e.className,n=e.baseClass,r=this.props.attributes,i=r.id,a=r.url,c=r.meta,u=r.cardPosition,p=this.props.attributes.outerParent,d=p&&p.attributes.customBackgroundColor?p.attributes.customBackgroundColor:void 0,m=p&&p.attributes.backgroundColor?p.attributes.backgroundColor:void 0,g=p&&p.attributes.pointColor?p.attributes.pointColor:void 0,f=j("background-color",m),b={style:{paddingTop:p&&p.attributes.paddingTop?p.attributes.paddingTop:void 0,paddingBottom:p&&p.attributes.paddingBottom?p.attributes.paddingBottom:void 0,paddingLeft:p&&p.attributes.paddingLeft?p.attributes.paddingLeft:void 0,paddingRight:p&&p.attributes.paddingRight?p.attributes.paddingRight:void 0}},w={style:{backgroundColor:m?void 0:d}},h=s()({"has-background":m||d},f,f),v=o({className:_()("".concat(n,"__card"),o({},h))},w),y={className:_()(t,{"has-card-left":"left"==u,"has-card-right":"right"==u})},k={style:{marginBottom:p&&p.attributes.marginBottom?p.attributes.marginBottom:void 0}},E={style:{marginLeft:p&&p.attributes.horizontalSpace?p.attributes.horizontalSpace:void 0,marginRight:p&&p.attributes.horizontalSpace?p.attributes.horizontalSpace:void 0}},S={className:"".concat(n,"__mobile-meta")};return wp.element.createElement("div",l()({},y,k),wp.element.createElement("div",{className:"".concat(n,"__wrapper")},wp.element.createElement("div",v,wp.element.createElement("div",{className:"".concat(n,"__card-wrapper")},a&&wp.element.createElement("div",{className:"".concat(n,"__image-wrapper")},wp.element.createElement("img",{className:"".concat(n,"__image ")+(i?"wp-image-".concat(i):null),src:a,alt:""})),wp.element.createElement("div",l()({className:"".concat(n,"__content-wrapper")},b),c&&wp.element.createElement("div",S,wp.element.createElement(O.Content,{tagName:"p",className:"".concat(n,"__meta-content"),value:c})),wp.element.createElement(C.Content,null)))),wp.element.createElement("div",l()({className:"".concat(n,"__point")},E,{"data-point-color":g}),wp.element.createElement("div",{className:"".concat(n,"__point-content")})),wp.element.createElement("div",{className:"".concat(n,"__meta")},c&&wp.element.createElement(O.Content,{tagName:"p",className:"".concat(n,"__meta-content"),value:c}))))}}]),t}(S);t.a=x},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(n,!0).forEach(function(t){s()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function i(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=v()(e);if(t()){var o=v()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return w()(this,n)}}var a=n(9),l=n.n(a),c=n(7),s=n.n(c),u=n(2),p=n.n(u),d=n(4),m=n.n(d),g=n(5),f=n.n(g),b=n(6),w=n.n(b),h=n(3),v=n.n(h),y=(n(0),n(8)),_=n.n(y),k=wp.blockEditor||wp.editor,O=k.RichText,E=wp.blockEditor||wp.editor,C=E.InnerBlocks,j=E.getColorClassName,S=wp.element.Component,x=function(e){function t(){return p()(this,t),n.apply(this,arguments)}f()(t,e);var n=i(t);return m()(t,[{key:"render",value:function(){var e=this.props,t=e.className,n=e.baseClass,r=this.props.attributes,i=r.id,a=r.url,c=r.meta,u=r.cardPosition,p=this.props.attributes.outerParent,d=p&&p.attributes.customBackgroundColor?p.attributes.customBackgroundColor:void 0,m=p&&p.attributes.backgroundColor?p.attributes.backgroundColor:void 0,g=p&&p.attributes.pointColor?p.attributes.pointColor:void 0,f=j("background-color",m),b={style:{paddingTop:p&&p.attributes.paddingTop?p.attributes.paddingTop:void 0,paddingBottom:p&&p.attributes.paddingBottom?p.attributes.paddingBottom:void 0,paddingLeft:p&&p.attributes.paddingLeft?p.attributes.paddingLeft:void 0,paddingRight:p&&p.attributes.paddingRight?p.attributes.paddingRight:void 0}},w={style:{backgroundColor:m?void 0:d}},h=s()({"has-background":m||d},f,f),v=o({className:_()("".concat(n,"__card"),o({},h))},w),y={className:_()(t,{"has-card-left":"left"==u,"has-card-right":"right"==u})},k={style:{marginBottom:p&&p.attributes.marginBottom?p.attributes.marginBottom:void 0}},E={style:{marginLeft:p&&p.attributes.horizontalSpace?p.attributes.horizontalSpace:void 0,marginRight:p&&p.attributes.horizontalSpace?p.attributes.horizontalSpace:void 0}},S={className:"".concat(n,"__mobile-meta")};return wp.element.createElement("div",l()({},y,k),wp.element.createElement("div",{className:"".concat(n,"__wrapper")},wp.element.createElement("div",v,wp.element.createElement("div",{className:"".concat(n,"__card-wrapper")},a&&wp.element.createElement("div",{className:"".concat(n,"__image-wrapper")},wp.element.createElement("img",{className:"".concat(n,"__image ")+(i?"wp-image-".concat(i):""),src:a,alt:""})),wp.element.createElement("div",l()({className:"".concat(n,"__content-wrapper")},b),c&&wp.element.createElement("div",S,wp.element.createElement(O.Content,{tagName:"p",className:"".concat(n,"__meta-content"),value:c})),wp.element.createElement(C.Content,null)))),wp.element.createElement("div",l()({className:"".concat(n,"__point")},E,{"data-point-color":g}),wp.element.createElement("div",{className:"".concat(n,"__point-content")})),wp.element.createElement("div",{className:"".concat(n,"__meta")},c&&wp.element.createElement(O.Content,{tagName:"p",className:"".concat(n,"__meta-content"),value:c}))))}}]),t}(S);t.a=x},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(n,!0).forEach(function(t){c()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function i(){var e,t=wp.blocks.createBlock("getwid/template-library");wp.data.dispatch("core/block-editor").insertBlocks(t),f("[data-block='".concat(t.clientId,"'] .wp-block-getwid-template-library")).data("closeModal",!0),e=setInterval(function(){f("[data-block='".concat(t.clientId,"'] .wp-block-getwid-template-library .open-modal-button")).length&&(f("[data-block='".concat(t.clientId,"'] .wp-block-getwid-template-library .open-modal-button")).click(),clearInterval(e))},1)}function a(){wp.data.subscribe(function(){setTimeout(function(){var e='<button id="getwid-layout-insert-button" type="button" data-toolbar-item="true" aria-expanded="false"\n\t\t\t\t\tclass="components-button">'.concat(Object(m.__)("Template Library","getwid"),"</button>");f("#editor").find("#getwid-layout-insert-button").length||f(".edit-post-header-toolbar__left").length&&f(".edit-post-header-toolbar__left").append(e)})}),f(document).on("click","#getwid-layout-insert-button",function(e){i()})}var l=n(7),c=n.n(l),s=n(506),u=n(509),p=(n.n(u),n(510)),d=n(12),m=n(1),g=(n.n(m),window),f=g.jQuery,b=wp.blocks.registerBlockType,w="getwid/template-library";Getwid.disabled_blocks.includes(w)||document.addEventListener("DOMContentLoaded",a),b("getwid/template-library",o(o({title:Object(m.__)("Template Library","getwid"),icon:"category",category:"getwid-blocks",keywords:[],supports:{inserter:!Getwid.disabled_blocks.includes(w),multiple:!0,customClassName:!1}},Object(d.b)(w,s.a)),{},{attributes:p.a,save:function(){return null}}))},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(n,!0).forEach(function(t){p()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function i(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=C()(e);if(t()){var o=C()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return O()(this,n)}}var a=n(9),l=n.n(a),c=n(15),s=n.n(c),u=n(7),p=n.n(u),d=n(13),m=n.n(d),g=n(2),f=n.n(g),b=n(4),w=n.n(b),h=n(11),v=n.n(h),y=n(5),_=n.n(y),k=n(6),O=n.n(k),E=n(3),C=n.n(E),j=(n(0),n(8)),S=n.n(j),x=n(507),P=(n.n(x),n(508)),T=n(1),R=(n.n(T),wp.element),N=R.Component,A=R.Fragment,B=wp.components,D=B.Button,M=B.ButtonGroup,I=B.Dashicon,L=B.Spinner,z=B.SelectControl,V=B.TextControl,F=B.Modal,H=B.TabPanel,G=B.BaseControl,W=wp.apiFetch,U=wp.url.addQueryArgs,q=window,Q=q.jQuery,K=wp.data,Y=K.select,J=K.dispatch,$=(K.withSelect,wp.blocks.parse),Z=function(e){function t(){var e;return f()(this,t),e=n.apply(this,arguments),e.changeState=e.changeState.bind(v()(e)),e.getState=e.getState.bind(v()(e)),e.state={pageTemplates:[],templatesInfo:[],pageCategories:[],categoryFilter:"",titleFilter:"",showLoadTemplates:!0,showModal:!1,templateLayout:3},e}_()(t,e);var n=i(t);return w()(t,[{key:"changeState",value:function(e,t){"object"==m()(e)?this.setState(e):"string"==typeof e&&this.setState(p()({},e,t))}},{key:"getState",value:function(e){return this.state[e]}},{key:"getData",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"cache";this.fetchRequest=W({path:U("/getwid/v1/get_remote_templates",{cache:t})}).then(function(t){200==t.code&&(Getwid.remote_templates=t.data,e.isStillMounted&&t.data instanceof Object?e.setState({pageCategories:t.data.categories,pageTemplates:t.data.templates,templatesInfo:t.data.info,showLoadTemplates:!1}):e.setState({pageCategories:null,pageTemplates:null,templatesInfo:null,showLoadTemplates:!1}))}).catch(function(t){e.isStillMounted&&e.setState({pageCategories:[],pageTemplates:[]})})}},{key:"getContent",value:function(e){var t=this,n=Y("core/block-editor").getSelectedBlockClientId();this.fetchRequest=W({path:U("/getwid/v1/get_remote_content",{get_content_url:e})}).then(function(e){if(void 0===e.data&&t.isStillMounted&&""!=e){t.setState({showLoadTemplates:!1});var r=$(e);J("core/block-editor").replaceBlocks(n,r)}}).catch(function(e){t.isStillMounted})}},{key:"getStorageData",value:function(e){this.setState({pageCategories:e.categories,pageTemplates:e.templates,templatesInfo:e.info,showLoadTemplates:!1})}},{key:"componentWillMount",value:function(){this.isStillMounted=!0;var e=localStorage.getItem("layoutCount");null!=e&&this.setState({templateLayout:e}),void 0===Getwid.remote_templates?this.getData():this.getStorageData(Getwid.remote_templates)}},{key:"componentDidUpdate",value:function(e,t){}},{key:"componentWillUnmount",value:function(){var e=this.state.templateLayout;localStorage.setItem("layoutCount",e)}},{key:"render",value:function(){var e=this,t=this.props,n=t.className,r=t.clientId,i=this.state,a=i.categoryFilter,c=i.showLoadTemplates,u=i.pageTemplates,d=i.pageCategories,m=i.templateLayout,g=i.titleFilter,f=(i.templatesInfo,Q("[data-block='".concat(r,"']"))),b=this.changeState,w=this.getState,h=function(t){var n=u[t];if(""!=a){var r={};r[a]=n[a],n=r}if(""!=g){var o={};for(var i in n){var l=n[i].filter(function(e,t){var n=e.keywords.join(", ");return-1!==e.title.toLowerCase().indexOf(g)||-1!==n.toLowerCase().indexOf(g)});l.length&&(o[i]=l)}n=o}var c=function(t){return t.map(function(t,n){return wp.element.createElement("div",{className:"template-library-container"},wp.element.createElement("div",{className:"template-library-item",onClick:function(e){}},wp.element.createElement("div",{className:"template-image-wrapper"},wp.element.createElement("div",{className:"template-image",style:{backgroundImage:"url('".concat(t.image,"')")}})),wp.element.createElement("div",{className:"template-content-wrapper"},wp.element.createElement("div",{className:"template-title"},t.title),""!=t.description&&wp.element.createElement("div",{className:"template-description"}," ",t.description),wp.element.createElement(D,{className:"template-insert-button",isPrimary:!0,onClick:function(n){e.setState({showModal:!1,showLoadTemplates:!0}),e.getContent(t.get_content_url)}},Object(T.__)("Insert Template","getwid")))))})};if(void 0!==n)return Object.entries(n).length?wp.element.createElement(A,null,Object.keys(n).map(function(e,r){return wp.element.createElement(A,null,wp.element.createElement("div",{className:"template-library-category-wrapper"},wp.element.createElement("div",{className:"template-library-category-title"},wp.element.createElement("h2",null,void 0!==d[t]?d[t][e]:void 0)),wp.element.createElement("div",{className:"template-library-category-items"},c(n[e]))))})):Object(T.__)("No templates found.","getwid")},v=function(e){var t=[];for(var n in d[e]){var r={};r.value=n,r.label=d[e][n],t.push(r)}return wp.element.createElement(A,null,wp.element.createElement(z,{className:"template-category-field",autoFocus:!1,value:a||"",onChange:function(e){b({categoryFilter:e})},options:[{value:"",label:Object(T.__)("All Categories","getwid")}].concat(s()(t||[]))}))},y=function(){return wp.element.createElement(A,null,wp.element.createElement(D,{className:"template-update-button",isPrimary:!0,onClick:function(){e.setState({showLoadTemplates:!0}),e.getData("refresh")}},Object(T.__)("Update","getwid")))},_=function(t){return wp.element.createElement(A,null,wp.element.createElement("div",{className:"".concat(n,"__wrapper")},wp.element.createElement("div",{className:"".concat(n,"__modal-toolbar")},v(t),wp.element.createElement(V,{className:"template-search-field",placeholder:Object(T.__)("Search","getwid"),value:g||"",onChange:function(e){b({titleFilter:e.toLowerCase()})}}),wp.element.createElement("div",{className:"".concat(n,"__layout-view")},wp.element.createElement(G,null,wp.element.createElement(M,null,wp.element.createElement(D,{className:"template-view-button",isPrimary:1==m||void 0,isDefault:1!=m||void 0,onClick:function(){e.setState({templateLayout:1})}},"1"),wp.element.createElement(D,{className:"template-view-button",isPrimary:2==m||void 0,isDefault:2!=m||void 0,onClick:function(){e.setState({templateLayout:2})}},"2"),wp.element.createElement(D,{className:"template-view-button",isPrimary:3==m||void 0,isDefault:3!=m||void 0,onClick:function(){e.setState({templateLayout:3})}},"3"),wp.element.createElement(D,{className:"template-view-button",isPrimary:4==m||void 0,isDefault:4!=m||void 0,onClick:function(){e.setState({templateLayout:4})}},"4")))),Getwid.settings.debug?wp.element.createElement("div",{className:"template-update-button"},wp.element.createElement(G,null,y())):null),wp.element.createElement("div",{className:S()("template-library-list","has-columns-".concat(m),p()({},"loading-items",c||(u?0==Object.entries(u).length:null)))},(u?0==Object.entries(u).length:null)&&0==c&&Object(T.__)("No templates found.","getwid"),c?wp.element.createElement(L,null):h(t))))},k=function(e){switch(e.name){case"sections":return wp.element.createElement(A,null,_("sections"))}};return wp.element.createElement(A,null,wp.element.createElement(P.a,l()({},o(o(o({},this.props),{changeState:b}),{getState:w}),{key:"inspector"})),wp.element.createElement("div",{className:S()(n)},wp.element.createElement("div",{className:"components-placeholder block-editor-inner-blocks__template-picker has-many-options"},wp.element.createElement("div",{className:"components-placeholder__label"},wp.element.createElement(I,{icon:"category"}),Object(T.__)("Template Library","getwid")),wp.element.createElement("div",{className:"components-placeholder__instructions"},Object(T.__)("Choose a template from the library.","getwid")),wp.element.createElement("div",{className:"components-placeholder__fieldset"},c?wp.element.createElement(L,null):Object.entries(u).length?wp.element.createElement("div",{className:"insert-template-button"},wp.element.createElement(D,{className:"open-modal-button",isDefault:!0,isLarge:!0,onClick:function(){e.setState({showModal:!0})}},Object(T.__)("Insert Template","getwid"))):wp.element.createElement(A,null,wp.element.createElement("p",{className:"no-templates"},Object(T.__)("No templates found.","getwid")),wp.element.createElement(D,{className:"template-search-button",isDefault:!0,onClick:function(){e.setState({showLoadTemplates:!0}),e.getData("refresh")}},Object(T.__)("Update","getwid"))),1==w("showModal")?wp.element.createElement(F,{className:"".concat(n,"__modal-templates"),title:Object(T.__)("Template Library","getwid"),shouldCloseOnClickOutside:!0,shouldCloseOnEsc:!0,onRequestClose:function(){Q(".".concat("wp-block-getwid-template-library"),f).data("closeModal")?J("core/block-editor").removeBlock(r):e.setState({showModal:!1})}},wp.element.createElement(H,{className:"getwid-modal-editor-tabs",activeClass:"is-active",tabs:[{name:"sections",title:Object(T.__)("Section","getwid"),className:"components-button"}]},function(e){return k(e)})):null))))}}]),t}(N);t.a=Z},function(e,t){},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=f()(e);if(t()){var o=f()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var o=n(85),i=n.n(o),a=n(2),l=n.n(a),c=n(4),s=n.n(c),u=n(5),p=n.n(u),d=n(6),m=n.n(d),g=n(3),f=n.n(g),b=(n(0),n(1)),w=(n.n(b),wp.element),h=w.Component,v=(w.Fragment,wp.blockEditor||wp.editor),y=v.InspectorControls,_=wp.components.PanelBody,k=function(e){function t(){return l()(this,t),n.apply(this,arguments)}p()(t,e);var n=r(t);return s()(t,[{key:"render",value:function(){return i()(this.props),wp.element.createElement(y,null,wp.element.createElement(_,{title:Object(b.__)("Settings","getwid")}))}}]),t}(h);t.a=k},function(e,t){},function(e,t,n){"use strict";var r={};t.a=r},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(n,!0).forEach(function(t){a()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var i=n(7),a=n.n(i),l=(n(0),n(1)),c=(n.n(l),n(12)),s=n(512),u=n(513),p=n(517),d=wp.blocks.registerBlockType,m="wp-block-getwid-table";d("getwid/table",o(o({title:Object(l.__)("Table","getwid"),icon:"editor-table",category:"getwid-blocks",supports:{align:["wide","full"],inserter:!Getwid.disabled_blocks.includes("getwid/table")},getEditWrapperProps:function(e){var t=e.align;if(["wide","full"].includes(t))return{"data-align":t}},attributes:s.a,edit:function(e){return wp.element.createElement(u.a,o(o({},e),{},{baseClass:m}))}},Object(c.b)("getwid/table",function(e){return wp.element.createElement(u.a,o(o({},e),{},{baseClass:m}))})),{},{save:function(e){return wp.element.createElement(p.a,o(o({},e),{},{baseClass:m}))}}))},function(e,t,n){"use strict";var r={align:{type:"string"},head:{type:"array",source:"query",selector:"thead tr",query:{cells:{type:"array",source:"query",selector:"th",query:{content:{type:"string",source:"html"},styles:{type:"string",source:"attribute",attribute:"style"},colSpan:{type:"string",source:"attribute",attribute:"colspan"},rowSpan:{type:"string",source:"attribute",attribute:"rowspan"}},default:[]}},default:[]},body:{type:"array",source:"query",selector:"tbody tr",query:{cells:{type:"array",source:"query",selector:"td",query:{content:{type:"string",source:"html"},styles:{type:"string",source:"attribute",attribute:"style"},colSpan:{type:"string",source:"attribute",attribute:"colspan"},rowSpan:{type:"string",source:"attribute",attribute:"rowspan"}},default:[]}},default:[]},foot:{type:"array",source:"query",selector:"tfoot tr",query:{cells:{type:"array",source:"query",selector:"td",query:{content:{type:"string",source:"html"},styles:{type:"string",source:"attribute",attribute:"style"},colSpan:{type:"string",source:"attribute",attribute:"colspan"},rowSpan:{type:"string",source:"attribute",attribute:"rowspan"}},default:[]}},default:[]},caption:{type:"string",source:"html",selector:".wp-block-getwid-table figcaption"},tableLayout:{type:"string"},borderCollapse:{type:"string"},horizontalAlign:{type:"string"},verticalAlign:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"}};t.a=r},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(n,!0).forEach(function(t){f()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function i(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=S()(e);if(t()){var o=S()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return C()(this,n)}}var a=n(9),l=n.n(a),c=n(27),s=n.n(c),u=n(15),p=n.n(u),d=n(54),m=n.n(d),g=n(7),f=n.n(g),b=n(2),w=n.n(b),h=n(4),v=n.n(h),y=n(11),_=n.n(y),k=n(5),O=n.n(k),E=n(6),C=n.n(E),j=n(3),S=n.n(j),x=n(0),P=n(1),T=(n.n(P),n(8)),R=n.n(T),N=n(10),A=(n.n(N),n(514)),B=n(515),D=n(516),M=(n.n(D),wp.compose.compose),I=wp.element.Component,L=wp.components,z=L.ToolbarGroup,V=(L.ToolbarItem,L.DropdownMenu),F=L.TextControl,H=L.Button,G=L.Placeholder,W=wp.blockEditor||wp.editor,U=W.RichText,q=W.BlockControls,Q=W.BlockIcon,K=W.withColors,Y=window,J=Y.jQuery,$=["core/bold","core/italic","core/link","core/image","core/strikethrough","core/text-color"],Z=function(e){function t(){var e;return w()(this,t),e=n.apply(this,arguments),e.getCellStyle=e.getCellStyle.bind(_()(e)),e.toggleSection=e.toggleSection.bind(_()(e)),e.changeState=e.changeState.bind(_()(e)),e.getSelectedCell=e.getSelectedCell.bind(_()(e)),e.updateCellsStyles=e.updateCellsStyles.bind(_()(e)),e.getParsedStyles=e.getParsedStyles.bind(_()(e)),e.isRangeSelected=e.isRangeSelected.bind(_()(e)),e.isMultiSelected=e.isMultiSelected.bind(_()(e)),e.inRange=e.inRange.bind(_()(e)),e.inMulti=e.inMulti.bind(_()(e)),e.state={rowCount:5,columnCount:5,updated:!1,indexRange:null,rangeSelected:null,multiSelected:null,selectedCell:null,selectedSection:null},e.table=new B.a(e.inRange),e}O()(t,e);var n=i(t);return v()(t,[{key:"changeState",value:function(e){this.setState(e)}},{key:"calculateBoundaryIndices",value:function(){var e=this,t=this.props.attributes;["head","body","foot"].forEach(function(n){if(!t[n].length)return null;e.table.calculateIndices(t[n],n)})}},{key:"calculateIndexRange",value:function(e){var t=this.state.rangeSelected,n=t.fromCell,r=n.fromRowIdx,i=n.fromRowSpan,a=n.fromMinColIdx,l=n.fromMaxColIdx,c=e.toRowIdx,s=e.toRowSpan,u=e.toMinColIdx,p=e.toMaxColIdx,d=Math.min(r,c),m=Math.max(r+i-1,c+s-1),g=Math.min(a,u),f=Math.max(l,p);this.setState({indexRange:{minRowIdx:d,maxRowIdx:m,minColIdx:g,maxColIdx:f},rangeSelected:o(o({},t),{},{toCell:e}),multiSelected:null,selectedCell:null})}},{key:"onMergeCells",value:function(){var e=this.state,t=e.indexRange,n=e.selectedSection,r=this.props,o=r.attributes;(0,r.setAttributes)(f()({},n,this.table.mergeCells(o[n],t,n))),this.setState({selectedCell:null,selectedSection:null,rangeSelected:null,updated:!0})}},{key:"onSplitMergedCells",value:function(){var e=this.state,t=e.selectedCell,n=e.selectedSection,r=this.props,o=r.attributes;(0,r.setAttributes)(f()({},n,this.table.splitMergedCells(o[n],t,n))),this.setState({selectedCell:null,selectedSection:null,updated:!0})}},{key:"onInsertRow",value:function(e){var t=this.state,n=t.selectedCell,r=t.selectedSection,o=this.props,i=o.setAttributes,a=o.attributes;i(f()({},r,this.table.insertRow(a[r],n,e))),this.setState({selectedCell:null,selectedSection:null,updated:!0})}},{key:"onDeleteRow",value:function(){var e=this.state,t=e.selectedCell,n=e.selectedSection,r=this.props,o=r.setAttributes,i=r.attributes;o(f()({},n,this.table.deleteRow(i[n],t,n))),this.setState({selectedCell:null,selectedSection:null,updated:!0})}},{key:"onInsertColumn",value:function(e){var t=this,n=this.state,r=n.selectedCell,o=(n.selectedSection,this.props),i=o.setAttributes,a=o.attributes;["head","body","foot"].forEach(function(n){return i(f()({},n,t.table.insertColumn(a[n],r,e,n)))}),this.setState({selectedCell:null,updated:!0})}},{key:"onDeleteColumn",value:function(){var e=this,t=this.state.selectedCell,n=this.props,r=n.setAttributes,i=n.attributes,a={};["head","body","foot"].forEach(function(n){var r=e.table.deleteColumn(i[n],t,n);a=o(o({},a),e.isEmptyTableSection(r)?f()({},n,[]):f()({},n,r))}),r(a),this.setState({selectedCell:null,selectedSection:null,updated:!0})}},{key:"getParsedStyles",value:function(e){if(e)return e.split(";").map(function(e){return[e.split(":")[0].replace(/-./g,function(e){return e[1].toUpperCase()}),e.split(":")[1]]}).reduce(function(e,t){return o(o({},e),{},f()({},t[0],t[1]))},{})}},{key:"getStyles",value:function(e){var t=Object(N.has)(e,"styles")?e.styles:void 0;return t?J.isPlainObject(t)?t:t=this.getParsedStyles(t):t}},{key:"getStyle",value:function(e,t){var n=this.getStyles(e);return n?n[t]:void 0}},{key:"getCellElement",value:function(e,t){var n=this.props.clientId,r=this.state.selectedSection;return J("#block-".concat(n)).find("t".concat(r)).find("tr").eq(e).find(Object(N.isEqual)(r,"head")?"th":"td").eq(t)}},{key:"getBorderColor",value:function(e){var t;if(e){var n=e.borderColor,r=e.borderTopColor,o=e.borderRightColor,i=e.borderBottomColor,a=e.borderLeftColor;t=n||r||o||i||a}return t||"#000"}},{key:"getBorderWidth",value:function(e){var t;if(e){var n=e.borderWidth,r=e.borderTopWidth,o=e.borderRightWidth,i=e.borderBottomWidth,a=e.borderLeftWidth;t=n||r||o||i||a}return t||void 0}},{key:"setupBorderWidth",value:function(e,t,n){if(e){if(e.borderColor)return o(o({},e),t);["top","right","bottom","left"].forEach(function(r){var i=n(r);e["".concat(i,"Color")]&&(e=o(o({},e),f()({},"".concat(i,"Width"),t.borderWidth)))})}return e}},{key:"setupBorder",value:function(e,t,n,r,i){var a=m()(i,2),l=a[0],c=a[1];if(e&&e[l]){var s;this.getCellElement(t,n).css((s={},f()(s,l,""),f()(s,c,""),s)),delete e[l],delete e[c]}else{var u=this.getBorderWidth(e);e=o(o({},e),{},f()({},l,r),u?f()({},c,u):{}),e.borderWidth&&(this.getCellElement(t,n).css({borderWidth:""}),delete e.borderWidth)}return e}},{key:"setupAligment",value:function(e,t,n,r,i){return e&&e[i]&&Object(N.isEqual)(t[i],"")?(delete e[i],this.getCellElement(n,r).css(f()({},i,"")),e):o(o({},e),t)}},{key:"setupPadding",value:function(e,t,n,r,i){return e&&e[i]&&!t[i]?(delete e[i],this.getCellElement(n,r).css(f()({},i,"")),e):o(o({},e),t[i]?t:{})}},{key:"getCellStyle",value:function(e){var t=this,n=this.props.attributes,r=this.state,o=r.selectedCell,i=r.selectedSection,a=this.isRangeSelected(),l=this.isMultiSelected();if(o){var c=o.rowIdx,s=o.columnIdx,u=n[i][c].cells[s];if(Object(N.isEqual)(e,"borderWidth"))return parseInt(this.getBorderWidth(this.getStyles(u)));var d=this.getStyle(u,e);return/px/.test(d)?parseInt(d):d}if(a||l){var m=[];n[i].forEach(function(e,n){return e.cells.forEach(function(e,r){return t.inRange(n,t.table.getIndices(i,n,r))||t.inMulti(n,r)?m=[].concat(p()(m),[e]):null})});var g;g=Object(N.isEqual)(e,"borderWidth")?parseInt(this.getBorderWidth(this.getStyles(Object(N.head)(m)))):this.getStyle(Object(N.head)(m),e);return m.every(function(n){if(n.styles){var r=Object(N.isEqual)(e,"borderWidth")?parseInt(t.getBorderWidth(t.getStyles(n))):t.getStyle(n,e);return!!Object(N.isEqual)(g,r)&&(g=r,!0)}return!1})?g:void 0}}},{key:"updateCellsStyles",value:function(e){var t=this,n=this.state.selectedCell,r=this.isRangeSelected(),i=this.isMultiSelected();if(n||r||i){var a=this.state.selectedSection,l=this.props,c=l.setAttributes,s=l.attributes;c(f()({},a,s[a].map(function(l,c){return{cells:l.cells.map(function(l,s){var u;if(n){var p=n.rowIdx,d=n.columnIdx;Object(N.isEqual)(p,c)&&Object(N.isEqual)(d,s)&&(u=!0)}r&&(u=t.inRange(c,t.table.getIndices(a,c,s))),i&&(u=t.inMulti(c,s));var m;if(u){u=!1,m=J.isPlainObject(l.styles)?l.styles:t.getParsedStyles(l.styles);var g=function(e){return"border".concat(e.replace(/^[^\*]/g,function(e){return e.toUpperCase()}))};if(Object(N.has)(e,"borderColor"))e.borderColor=e.borderColor?e.borderColor:"#000",m.borderTopColor&&(m=o(o({},m),{},{borderTopColor:e.borderColor})),m.borderRightColor&&(m=o(o({},m),{},{borderRightColor:e.borderColor})),m.borderBottomColor&&(m=o(o({},m),{},{borderBottomColor:e.borderColor})),m.borderLeftColor&&(m=o(o({},m),{},{borderLeftColor:e.borderColor})),m.borderColor&&(m=o(o({},m),{},{borderColor:e.borderColor}));else if(e.setBorder){var b=t.getBorderColor(m);if(m&&m.borderColor){if(Object(N.isEqual)(e.setBorder,"all"))return l;t.getCellElement(c,s).css({borderColor:""}),delete m.borderColor}switch(e.setBorder){case"top":m=t.setupBorder(m,c,s,b,["borderTopColor","borderTopWidth"]);break;case"right":m=t.setupBorder(m,c,s,b,["borderRightColor","borderRightWidth"]);break;case"bottom":m=t.setupBorder(m,c,s,b,["borderBottomColor","borderBottomWidth"]);break;case"left":m=t.setupBorder(m,c,s,b,["borderLeftColor","borderLeftWidth"]);break;case"all":var w=t.getBorderWidth(m);m&&["top","right","bottom","left"].forEach(function(e){delete m["".concat(g(e),"Color")],delete m["".concat(g(e),"Width")]}),m=o(o({},m),{},{borderColor:b},w?{borderWidth:w}:{});break;case"none":["borderStyle","borderWidth","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth"].forEach(function(e){m&&m[e]&&delete m[e],t.getCellElement(c,s).css(f()({},e,""))}),m=o(o({},m),{},{borderTopColor:void 0,borderRightColor:void 0,borderBottomColor:void 0,borderLeftColor:void 0})}}else m=Object(N.has)(e,"textAlign")?t.setupAligment(m,e,c,s,"textAlign"):Object(N.has)(e,"verticalAlign")?t.setupAligment(m,e,c,s,"verticalAlign"):e.borderWidth?t.setupBorderWidth(m,e,g):Object(N.has)(e,"paddingTop")?t.setupPadding(m,e,c,s,"paddingTop"):Object(N.has)(e,"paddingRight")?t.setupPadding(m,e,c,s,"paddingRight"):Object(N.has)(e,"paddingBottom")?t.setupPadding(m,e,c,s,"paddingBottom"):Object(N.has)(e,"paddingLeft")?t.setupPadding(m,e,c,s,"paddingLeft"):o(o({},m),e);Object(N.isEmpty)(m)?(delete l.styles,t.getCellElement(c,s).removeAttr("style")):l.styles=m}return l})}})))}}},{key:"renderInitTableForm",value:function(){var e=this,t=this.props.baseClass,n=this.state,r=n.rowCount,o=n.columnCount;return wp.element.createElement(G,{label:Object(P.__)("Table","getwid"),icon:wp.element.createElement(Q,{icon:"editor-table",showColors:!0}),instructions:Object(P.__)("Hint: Hold Ctrl key to select multiple cells. Hold Shift key to select range.","getwid")},wp.element.createElement("form",{className:"".concat(t,"__placeholder-form"),onSubmit:function(){return e.onCreateTable()}},wp.element.createElement(F,{type:"number",className:"".concat(t,"__placeholder-input"),label:Object(P.__)("Rows","getwid"),value:r,onChange:function(t){return e.setState({rowCount:t})},min:"1"}),wp.element.createElement(F,{type:"number",className:"".concat(t,"__placeholder-input"),label:Object(P.__)("Columns","getwid"),value:o,onChange:function(t){return e.setState({columnCount:t})},min:"1"}),wp.element.createElement(H,{className:"".concat(t,"__placeholder-button"),isPrimary:!0,type:"submit"},Object(P.__)("Create","getwid"))))}},{key:"getTableControlls",value:function(){var e=this,t=this.state.selectedCell;return[{icon:"table-row-delete",title:Object(P.__)("Delete Row","getwid"),isDisabled:!t||this.isRangeSelected()||this.isMultiSelected(),onClick:function(){return e.onDeleteRow()}},{icon:"table-row-before",title:Object(P.__)("Add Row Before","getwid"),isDisabled:!t||this.isRangeSelected()||this.isMultiSelected(),onClick:function(){return e.onInsertRow("before")}},{icon:"table-row-after",title:Object(P.__)("Add Row After","getwid"),isDisabled:!t||this.isRangeSelected()||this.isMultiSelected(),onClick:function(){return e.onInsertRow("after")}},{icon:"table-col-delete",title:Object(P.__)("Delete Column","getwid"),isDisabled:!t||this.isRangeSelected()||this.isMultiSelected(),onClick:function(){return e.onDeleteColumn()}},{icon:"table-col-before",title:Object(P.__)("Add Column Before","getwid"),isDisabled:!t||this.isRangeSelected()||this.isMultiSelected(),onClick:function(){return e.onInsertColumn("before")}},{icon:"table-col-after",title:Object(P.__)("Add Column After","getwid"),isDisabled:!t||this.isRangeSelected()||this.isMultiSelected(),onClick:function(){return e.onInsertColumn("after")}},{icon:wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 512 512",space:"preserve"},wp.element.createElement("path",{d:"M472,317v135c0,11-9,20-20,20H313v40h139c33.1,0,60-26.9,60-60V317H472z"}),wp.element.createElement("path",{d:"M452,0H313v40h139c11,0,20,9,20,20v137h40V60C512,26.9,485.1,0,452,0z"}),wp.element.createElement("path",{d:"M60,472c-11,0-20-9-20-20V317H0v135c0,33.1,26.9,60,60,60h139v-40H60z"}),wp.element.createElement("path",{d:"M60,0C26.9,0,0,26.9,0,60v137h40V60c0-11,9-20,20-20h139V0H60z"}),wp.element.createElement("polygon",{points:"512,237 364.3,237 418.1,183.1 389.9,154.9 287.8,256.9 389.8,360.1 418.2,331.9 363.9,277 512,277 "}),wp.element.createElement("polygon",{points:"122.1,154.9 93.9,183.1 147.7,237 0,237 0,277 148.1,277 93.8,331.9 122.2,360.1 224.2,256.9 "})),title:Object(P.__)("Merge Cells","getwid"),isDisabled:!this.isRangeSelected()||this.isMultiSelected(),onClick:function(){return e.onMergeCells()}},{icon:wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 512 512",space:"preserve"},wp.element.createElement("polygon",{points:"194.05,236.016 76.428,236.016 130.243,182.201 101.982,153.94 0,255.92 101.902,358.98 130.322,330.878 76.045,275.984 194.05,275.984"}),wp.element.createElement("polygon",{points:"410.019,153.94 381.758,182.201 435.572,236.016 317.951,236.016 317.951,275.984 435.955,275.984 381.678,330.878 410.098,358.98 512,255.92"}),wp.element.createElement("path",{d:"M511.796,145.089V60.156c0-33.058-26.895-59.952-59.952-59.952H60.157c-33.058,0-59.952,26.895-59.952,59.952v84.932 h39.968V60.156c0-11.019,8.965-19.984,19.984-19.984h175.859v431.655H60.157c-11.019,0-19.984-8.965-19.984-19.984v-85.931H0.205 v85.931c0,33.058,26.895,59.952,59.952,59.952h391.687c33.058,0,59.952-26.895,59.952-59.952v-85.931h-39.968v85.931 c0,11.019-8.965,19.984-19.984,19.984H275.985V40.172h175.859c11.019,0,19.984,8.965,19.984,19.984v84.932H511.796z"})),title:Object(P.__)("Split Cells","getwid"),isDisabled:!this.canSplit()||this.isRangeSelected()||this.isMultiSelected(),onClick:function(){return e.onSplitMergedCells()}}]}},{key:"onCreateTable",value:function(){var e=this.props.setAttributes,t=this.state,n=t.rowCount,r=t.columnCount;e({body:Object(N.times)(n,function(){return{cells:Object(N.times)(r,function(){return{content:""}})}})}),this.setState({updated:!0})}},{key:"onUpdateTableContent",value:function(e){var t=this.state,n=t.selectedCell,r=t.selectedSection,i=this.props,a=i.setAttributes,l=i.attributes;a(f()({},r,l[r].map(function(t,r){var i=t.cells;return r!=n.rowIdx?{cells:i}:{cells:i.map(function(t,r){return r!=n.columnIdx?t:o(o({},t),{},{content:e})})}})))}},{key:"isRangeSelected",value:function(){var e=this.state.rangeSelected;return e&&!!e.toCell}},{key:"isMultiSelected",value:function(){var e=this.state.multiSelected;return!!e&&e.length>1}},{key:"canSplit",value:function(){var e=this.state.selectedCell;return e&&(e.rowSpan||e.colSpan)}},{key:"inRange",value:function(e,t){var n=t.minColIdx,r=t.maxColIdx;if(!this.state.indexRange)return!1;var o=this.state.indexRange,i=o.minRowIdx,a=o.maxRowIdx;return e>=i&&e<=a&&n>=o.minColIdx&&r<=o.maxColIdx}},{key:"inMulti",value:function(e,t){return!!this.state.multiSelected&&this.state.multiSelected.some(function(n){var r=n.rowIdx,o=n.columnIdx;return Object(N.isEqual)(r,e)&&Object(N.isEqual)(o,t)})}},{key:"isEmptyTableSection",value:function(e){return Object(N.every)(e,function(e){return!e.cells.length})}},{key:"getSelectedCell",value:function(){var e=this.state.selectedCell;if(e){var t=e.section,n=e.rowIdx,r=e.columnIdx,o=this.props.attributes[t][n].cells,i=o[r].styles;i=J.isPlainObject(i)?i:this.getParsedStyles(i),e.styles=i,e.borderColor=this.getBorderColor(i)}return e}},{key:"componentDidUpdate",value:function(e,t){var n=this.props.isSelected,r=this.state,o=r.selectedCell,i=r.updated,a=o||this.isRangeSelected()||this.isMultiSelected();!n&&a&&this.setState({selectedCell:null,rangeSelected:null,multiSelected:null}),i&&(this.calculateBoundaryIndices(),this.setState({updated:!1}))}},{key:"componentDidMount",value:function(){this.calculateBoundaryIndices()}},{key:"toggleSection",value:function(e){var t=this.state.selectedSection,n=this.props.setAttributes,r=this.props.attributes.body;if(!this.props.attributes[e].length){var o=s()(r),i=o[0],a=(o.slice(1),n(f()({},e,[{cells:i.cells.map(function(e){return{colSpan:e.colSpan,rColIdx:e.rColIdx}})}])));return this.setState({updated:!0}),a}n(f()({},e,[])),Object(N.isEqual)(t,e)&&this.setState({selectedCell:null,selectedSection:null})}},{key:"renderSection",value:function(e){var t=this,n=this.props,r=n.baseClass,i=n.attributes,a=this.state,c=a.selectedCell,s=a.selectedSection,u=a.multiSelected;return i[e].map(function(n,i){var a=n.cells;return wp.element.createElement("tr",{key:i},a.map(function(n,a){var p=Object(N.isEqual)(e,"head")?"th":"td",d=n.content,m=n.colSpan,g=n.rowSpan,f=n.styles,b={rowIdx:i,columnIdx:a,rowSpan:g,colSpan:m,section:e},w=c&&Object(N.isEqual)(i,c.rowIdx)&&Object(N.isEqual)(a,c.columnIdx)&&Object(N.isEqual)(e,s);return t.isRangeSelected()&&(w=t.inRange(i,t.table.getIndices(e,i,a))&&Object(N.isEqual)(e,s)),t.isMultiSelected()&&(w=t.inMulti(i,a)&&Object(N.isEqual)(u[0].section,e)),wp.element.createElement(p,l()({key:a},w?{className:"selected"}:{},{colSpan:m,rowSpan:g,style:J.isPlainObject(f)?f:t.getParsedStyles(f),onClick:function(n){var r=t.table.getIndices(e,i,a),l=r.minColIdx,c=r.maxColIdx;if(n.shiftKey){var s=t.state.rangeSelected;if(!s)return;if(!Object(N.isEqual)(e,s.fromCell.section))return void alert(Object(P.__)("Such type of selection is not available","getwid"));t.calculateIndexRange({toRowIdx:i,toRowSpan:g?parseInt(g):1,toMinColIdx:l,toMaxColIdx:c,section:e})}else if(n.ctrlKey){var p=u||[];if(p.length&&!Object(N.isEqual)(p[0].section,e))return void alert(Object(P.__)("Such type of selection is not available","getwid"));p.push(o(o({},b),{},{minColIdx:l,maxColIdx:c})),t.setState({multiSelected:p,indexRange:null,rangeSelected:null,selectedCell:null})}else t.setState({rangeSelected:{fromCell:{fromRowIdx:i,fromRowSpan:g?parseInt(g):1,fromMinColIdx:l,fromMaxColIdx:c,section:e}},multiSelected:[o(o({},b),{},{minColIdx:l,maxColIdx:c})]})}}),wp.element.createElement(U,{className:"".concat(r,"__cell"),value:d,onChange:function(e){return t.onUpdateTableContent(e)},unstableOnFocus:function(){if(!t.state.updated){var n=t.table.getIndices(e,i,a),r=n.minColIdx,l=n.maxColIdx;t.setState({selectedCell:o(o({},b),{},{minColIdx:r,maxColIdx:l}),selectedSection:e})}},allowedFormats:c?$:[]}))}))})}},{key:"render",value:function(){var e,t=this,n=this.props.attributes,r=n.head,i=n.foot,a=n.body;if(this.isEmptyTableSection(r)&&this.isEmptyTableSection(a)&&this.isEmptyTableSection(i))return this.renderInitTableForm();var c=this.state.selectedSection,s=this.props,u=s.attributes,p=u.tableLayout,d=u.borderCollapse,m=u.horizontalAlign,g=u.verticalAlign,b=u.caption,w=s.className,h=s.backgroundColor,v=s.textColor,y=s.setAttributes,_=this.inRange,k=this.inMulti,O=this.getCellStyle,E=this.toggleSection,C=this.isRangeSelected,j=this.isMultiSelected,S=this.updateCellsStyles,T=this.getSelectedCell,N=this.getParsedStyles,B=this.changeState,D=this.table.getIndices;return Object(x.b)(x.a,null,wp.element.createElement(q,null,wp.element.createElement(z,null,wp.element.createElement(V,{hasArrowIndicator:!0,icon:"edit",label:Object(P.__)("Edit Table","getwid"),controls:this.getTableControlls()}))),wp.element.createElement(A.a,l()({},o({inRange:_,inMulti:k,getCellStyle:O,toggleSection:E,getSelectedCell:T,isRangeSelected:C,isMultiSelected:j,selectedSection:c,getParsedStyles:N,updateCellsStyles:S,changeState:B,getIndices:D},this.props),{key:"inspector"})),wp.element.createElement("div",{className:R()(w,(e={},f()(e,"has-table-layout-".concat(p),p),f()(e,"has-border-collapse-".concat(d),d),f()(e,"has-horizontal-align-".concat(m),m),f()(e,"has-vertical-align-".concat(g),g),e))},wp.element.createElement("table",{style:{backgroundColor:h.color,color:v.color}},!!r.length&&wp.element.createElement("thead",null,this.renderSection("head")),wp.element.createElement("tbody",null,this.renderSection("body")),!!i.length&&wp.element.createElement("tfoot",null,this.renderSection("foot"))),wp.element.createElement(U,{tagName:"figcaption",placeholder:Object(P.__)("Write caption…"),value:b,onChange:function(e){return y({caption:e})},unstableOnFocus:function(){return t.setState({selectedCell:null,rangeSelected:null,multiSelected:null})}})))}}]),t}(I);t.a=M([K("backgroundColor",{textColor:"color"})])(Z)},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=m()(e);if(t()){var o=m()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p()(this,n)}}var o=n(2),i=n.n(o),a=n(4),l=n.n(a),c=n(5),s=n.n(c),u=n(6),p=n.n(u),d=n(3),m=n.n(d),g=n(0),f=n(1),b=(n.n(f),n(10)),w=(n.n(b),n(16)),h=n(14),v=wp.element.Component,y=wp.blockEditor||wp.editor,_=y.InspectorControls,k=wp.components,O=k.ToggleControl,E=k.RangeControl,C=k.SelectControl,j=k.PanelBody,S=k.Button,x=window,P=x.jQuery,T=function(e){function t(){return i()(this,t),n.apply(this,arguments)}s()(t,e);var n=r(t);return l()(t,[{key:"isBorderActive",value:function(e){if(!e)return!1;var t=this.props.getParsedStyles;e=P.isPlainObject(e)?e:t(e);var n=e,r=n.borderColor,o=e,i=o.borderTopColor,a=o.borderRightColor,l=e,c=l.borderBottomColor,s=l.borderLeftColor;return r||i||a||c||s}},{key:"isShowBorderSettigs",value:function(e){var t=this,n=this.props,r=n.inRange,o=n.inMulti,i=n.selectedSection,a=n.getSelectedCell,l=n.isRangeSelected,c=n.isMultiSelected,s=n.getIndices,u=l(),p=c(),d=a(),m=this.props.attributes[i],g=!1;return d&&this.isBorderActive(e)?g=!0:(u||p)&&m.every(function(e,n){var a=e.cells;return!!(g=a.every(function(e,a){return!r(n,s(i,n,a))&&!o(n,a)||!!t.isBorderActive(e.styles)}))}),g}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.head,r=t.foot,o=t.tableLayout,i=t.borderCollapse,a=t.horizontalAlign,l=t.verticalAlign,c=e.getCellStyle,s=e.toggleSection,u=e.updateCellsStyles,p=e.getSelectedCell,d=e.changeState,m=e.isRangeSelected,v=e.isMultiSelected,y=e.textColor,k=e.backgroundColor,x=e.setTextColor,P=e.setBackgroundColor,T=e.customBackgroundColor,R=e.customTextColor,N=e.setAttributes,A=p(),B=c("borderColor"),D=A?A.styles:void 0;return wp.element.createElement(_,null,!A&&!m()&&!v()&&wp.element.createElement(j,{title:Object(f.__)("Table Settings","getwid"),initialOpen:!0},wp.element.createElement(C,{label:Object(f.__)("Table Layout","getwid"),value:o,options:[{value:"",label:Object(f.__)("Default","getwid")},{value:"auto",label:Object(f.__)("Auto","getwid")},{value:"fixed",label:Object(f.__)("Fixed","getwid")}],onChange:function(e){return N({tableLayout:e})}}),wp.element.createElement(C,{label:Object(f.__)("Border Collapse","getwid"),value:i,options:[{value:"",label:Object(f.__)("Default","getwid")},{value:"collapse",label:Object(f.__)("Collapse","getwid")},{value:"separate",label:Object(f.__)("Separate","getwid")}],onChange:function(e){return N({borderCollapse:e})}}),wp.element.createElement(O,{label:Object(f.__)("Table Header","getwid"),checked:!!n.length,onChange:function(){return s("head")}}),wp.element.createElement(O,{label:Object(f.__)("Table Footer","getwid"),checked:!!r.length,onChange:function(){return s("foot")}}),wp.element.createElement(w.a,{colorSettings:[{title:Object(f.__)("Background Color","getwid"),colors:{customColor:T,defaultColor:k},changeColor:P},{title:Object(f.__)("Text Color","getwid"),colors:{customColor:R,defaultColor:y},changeColor:x}]}),wp.element.createElement(C,{label:Object(f.__)("Horizontal Alignment","getwid"),value:a||"",options:[{value:"",label:Object(f.__)("Default","getwid")},{value:"left",label:Object(f.__)("Left","getwid")},{value:"center",label:Object(f.__)("Center","getwid")},{value:"right",label:Object(f.__)("Right","getwid")}],onChange:function(e){return N({horizontalAlign:e})}}),wp.element.createElement(C,{label:Object(f.__)("Vertical Alignment","getwid"),value:l||"",options:[{value:"",label:Object(f.__)("Default","getwid")},{value:"top",label:Object(f.__)("Top","getwid")},{value:"middle",label:Object(f.__)("Middle","getwid")},{value:"bottom",label:Object(f.__)("Bottom","getwid")}],onChange:function(e){return N({verticalAlign:e})}})),(A||m()||v())&&Object(g.b)(g.a,null,wp.element.createElement(j,null,wp.element.createElement(S,{isPrimary:!0,onClick:function(){return d({selectedCell:null,rangeSelected:null,multiSelected:null})}},Object(f.__)("Table Settings","getwid"))),wp.element.createElement(j,{title:Object(f.__)("Cell Settings","getwid"),initialOpen:!0},wp.element.createElement(C,{label:Object(f.__)("Horizontal Alignment","getwid"),value:c("textAlign")?c("textAlign"):"",options:[{value:"",label:Object(f.__)("Default","getwid")},{value:"left",label:Object(f.__)("Left","getwid")},{value:"center",label:Object(f.__)("Center","getwid")},{value:"right",label:Object(f.__)("Right","getwid")}],onChange:function(e){return u({textAlign:e})}}),wp.element.createElement(C,{label:Object(f.__)("Vertical Alignment","getwid"),value:c("verticalAlign")?c("verticalAlign"):"",options:[{value:"",label:Object(f.__)("Default","getwid")},{value:"top",label:Object(f.__)("Top","getwid")},{value:"middle",label:Object(f.__)("Middle","getwid")},{value:"bottom",label:Object(f.__)("Bottom","getwid")}],onChange:function(e){return u({verticalAlign:e})}}),wp.element.createElement(w.a,{colorSettings:[{title:Object(f.__)("Background Color","getwid"),colors:{customColor:c("backgroundColor")},changeColor:function(e){return u({backgroundColor:e})}},{title:Object(f.__)("Text Color","getwid"),colors:{customColor:c("color")},changeColor:function(e){return u({color:e})}}]}),Object(h.a)(this),this.isShowBorderSettigs(D)&&Object(g.b)(g.a,null,wp.element.createElement(C,{label:Object(f.__)("Border Style","getwid"),value:c("borderStyle"),options:[{value:"solid",label:Object(f.__)("Solid","getwid")},{value:"dashed",label:Object(f.__)("Dashed","getwid")},{value:"dotted",label:Object(f.__)("Dotted","getwid")}],onChange:function(e){return u({borderStyle:e})}}),wp.element.createElement(E,{label:Object(f.__)("Border Width","getwid"),value:c("borderWidth")||"",min:1,max:10,onChange:function(e){return u({borderWidth:e})}}),wp.element.createElement(w.a,{colorSettings:[{title:Object(f.__)("Border Color","getwid"),colors:{customColor:Object(b.isEqual)(B,"#000")?void 0:B},changeColor:function(e){return u({borderColor:e})}}]})),wp.element.createElement(E,{label:Object(f.__)("Padding Top","getwid"),value:c("paddingTop")||"",min:0,max:100,onChange:function(e){return u({paddingTop:e})}}),wp.element.createElement(E,{label:Object(f.__)("Padding Right","getwid"),value:c("paddingRight")||"",min:0,max:100,onChange:function(e){return u({paddingRight:e})}}),wp.element.createElement(E,{label:Object(f.__)("Padding Bottom","getwid"),value:c("paddingBottom")||"",min:0,max:100,onChange:function(e){return u({paddingBottom:e})}}),wp.element.createElement(E,{label:Object(f.__)("Padding Left","getwid"),value:c("paddingLeft")||"",min:0,max:100,onChange:function(e){return u({paddingLeft:e})}}))))}}]),t}(v);t.a=T},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(n,!0).forEach(function(t){c()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}n.d(t,"a",function(){return b});var i=n(15),a=n.n(i),l=n(7),c=n.n(l),s=n(27),u=n.n(s),p=n(2),d=n.n(p),m=n(4),g=n.n(m),f=n(10),b=(n.n(f),function(){function e(t){d()(this,e),this.getIndices=this.getIndices.bind(this),this.inRange=t,this.indices={}}return g()(e,[{key:"calculateIndices",value:function(e,t){var n=u()(e),r=n[0],o=(n.slice(1),r.cells.reduce(function(e,t){var n=t.colSpan;return e+=n?parseInt(n):1},0));this.indices[t]=e.map(function(t,n){var r=t.cells,i=Object(f.times)(o,function(e){return e}),a=e.filter(function(e,t){return t<n});return a.length&&a.forEach(function(e,t){e.cells.forEach(function(e){var r=e.rowSpan,o=e.minColIdx,a=e.maxColIdx;r&&parseInt(r)+t>n&&(i=i.filter(function(e){return e<o||e>a}))})}),{cells:r.map(function(e){var t=e.colSpan?parseInt(e.colSpan):1;t=i[t]?t:i.length;var n=i.slice(0,t);return i=i.slice(t,i.length),e.minColIdx=Object(f.min)(n),e.maxColIdx=Object(f.max)(n),e})}}).map(function(e){return e.cells.map(function(e){return{minColIdx:e.minColIdx,maxColIdx:e.maxColIdx}})})}},{key:"mergeCells",value:function(e,t,n){var r=this,i=t.minRowIdx,a=t.maxRowIdx,l=t.minColIdx,c=t.maxColIdx,s=function(e,t){return Object(f.isEqual)(e,i)&&Object(f.isEqual)(r.getIndices(n,e,t).minColIdx,l)};return e.map(function(e,t){var u=e.cells;return t<i||t>a?{cells:u}:{cells:u.map(function(e,n){if(s(t,n)){var r=Math.abs(a-i)+1,u=Math.abs(c-l)+1;return o(o({},e),{},{rowSpan:r>1?r:void 0,colSpan:u>1?u:void 0})}return e}).filter(function(e,o){return s(t,o)||!r.inRange(t,r.getIndices(n,t,o))})}})}},{key:"splitMergedCells",value:function(e,t,n){var r=this,o=t.rowSpan,i=t.colSpan,l=t.columnIdx,c=t.rowIdx,s=o?parseInt(o):1,u=i?parseInt(i):1,p=s+c-1,d=e[c].cells[l].content;return e.map(function(e,o){var i=e.cells;if(o>=c&&o<=p){var s=Object(f.isEqual)(o,c)?1:0,m=l;return Object(f.isEqual)(o,c)||(m=i.findIndex(function(e,i){return Object(f.isEqual)(r.getIndices(n,o,i).minColIdx,t.maxColIdx+1)}),m=Object(f.isEqual)(m,-1)?i.length:m),{cells:[].concat(a()(i.slice(0,m)),a()(Object(f.times)(u,function(e){return!e&&Object(f.isEqual)(o,c)?{content:d}:{content:""}})),a()(i.slice(m+s)))}}return{cells:i}})}},{key:"insertRow",value:function(e,t,n){var r=u()(e),o=r[0],i=(r.slice(1),o.cells.reduce(function(e,t){var n=t.colSpan;return e+=n?parseInt(n):1},0)),l=i,c=Object(f.isEqual)(n,"after")?t.rowIdx:t.rowIdx-1,s=Object(f.isEqual)(c,-1)?[]:e.map(function(e,t){var n=e.cells;return t<=c?{cells:n.map(function(e){var n=e.rowSpan?parseInt(e.rowSpan):1,r=e.colSpan?parseInt(e.colSpan):1;return c<n+t-1&&(e.rowSpan=n+1,l-=r),e})}:{cells:n}});return[].concat(a()(s.slice(0,c+1)),[{cells:Object(f.times)(l,function(){return{content:""}})}],a()(e.slice(c+1)))}},{key:"deleteRow",value:function(e,t,n){var r=this,o=e[t.rowIdx];return e.map(function(e,i){var l=e.cells;return t.rowIdx>i?{cells:l.map(function(e){var n=e.rowSpan?parseInt(e.rowSpan):1;return t.rowIdx<n+i&&(e.rowSpan=n-1),e})}:Object(f.isEqual)(t.rowIdx,i)?{cells:l}:{cells:o.cells.reduce(function(e,o,c){var s=o.rowSpan,u=o.colSpan,p=r.getIndices(n,i,c);if(s=s?parseInt(s):1,u=u?parseInt(u):1,t.rowIdx+s>i){var d=l.findIndex(function(e,t){return Object(f.isEqual)(r.getIndices(n,i,t),p-1)});return d=l[d+1]?d+1:l.length,[].concat(a()(e.slice(0,d)),a()(Object(f.times)(u,function(){return{content:""}})),a()(e.slice(d)))}return e},l)}}).filter(function(e,n){return!Object(f.isEqual)(n,t.rowIdx)})}},{key:"insertColumn",value:function(e,t,n,r){var o=this,i=0,l=t.maxColIdx,c=t.minColIdx,s=!!Object(f.isEqual)(n,"after");if(!s&&c){var u=!1;e.forEach(function(e,t){var n=e.cells;u||n.forEach(function(e,n){var i=o.getIndices(r,t,n),a=i.maxColIdx;if(Object(f.isEqual)(a,c-1))return l=a,void(u=!u)})})}return e.map(function(e,t){var n=e.cells;if(!s&&!c)return{cells:[{content:""}].concat(a()(n))};if(i)return i--,{cells:n};var u,p,d=n.findIndex(function(e,n){var i=e.colSpan;return p=i?parseInt(i):1,u=o.getIndices(r,t,n).maxColIdx,Object(f.isEqual)(u,l)||u>l});if(Object(f.isEqual)(d,-1))return{cells:[].concat(a()(n),[{content:""}])};var m=u-(p-1);return!Object(f.isEqual)(u,l)&&m<=l?(n[d].colSpan=p+1,n[d].rowSpan&&(i=parseInt(n[d].rowSpan)-1),{cells:n}):(d=!Object(f.isEqual)(u,l)&&m>l?d:n[d+1]?d+1:n.length,{cells:[].concat(a()(n.slice(0,d)),[{content:""}],a()(n.slice(d)))})})}},{key:"deleteColumn",value:function(e,t,n){var r=this,o=t.colSpan,i=t.minColIdx,l=t.maxColIdx,c=o?parseInt(o):1,s=function(e,t){return e<i&&t<i||e>l&&t>l},u=function(e,t){return e<i&&t>=i&&t<=l},p=function(e,t){return t>l&&e<=l&&e>=i};return e.reduce(function(e,t,o){var d=t.cells,m=d.reduce(function(e,t,d){var m=t.colSpan?parseInt(t.colSpan):1,g=r.getIndices(n,o,d),f=g.minColIdx,b=g.maxColIdx;return s(f,b)?[].concat(a()(e),[t]):u(f,b)?(t.colSpan=m-(b-i+1),[].concat(a()(e),[t])):p(f,b)?(t.colSpan=m-(l-f+1),[].concat(a()(e),[t])):f<i&&b>l?(t.colSpan=m-c,[].concat(a()(e),[t])):e},[]);return[].concat(a()(e),[{cells:m.length?m:[]}])},[])}},{key:"getIndices",value:function(e,t,n){return this.indices[e]?this.indices[e][t][n]:void 0}}]),e}())},function(e,t){},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=f()(e);if(t()){var o=f()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var o=n(7),i=n.n(o),a=n(2),l=n.n(a),c=n(4),s=n.n(c),u=n(5),p=n.n(u),d=n(6),m=n.n(d),g=n(3),f=n.n(g),b=(n(0),n(8)),w=n.n(b),h=n(10),v=(n.n(h),n(518)),y=(n.n(v),wp.element.Component),_=wp.blockEditor||wp.editor,k=_.RichText,O=_.getColorClassName,E=function(e){function t(){return l()(this,t),n.apply(this,arguments)}p()(t,e);var n=r(t);return s()(t,[{key:"renderSection",value:function(e){return this.props.attributes[e].map(function(t,n){var r=t.cells;return wp.element.createElement("tr",{key:n},r.map(function(t,n){var r=t.content,o=t.colSpan,i=t.rowSpan,a=t.styles;return wp.element.createElement(k.Content,{tagName:Object(h.isEqual)(e,"head")?"th":"td",key:n,colSpan:o,rowSpan:i,style:a,value:r})}))})}},{key:"render",value:function(){var e,t,n=this.props,r=n.attributes,o=r.head,a=r.foot,l=r.tableLayout,c=r.borderCollapse,s=r.horizontalAlign,u=r.verticalAlign,p=r.backgroundColor,d=r.textColor,m=r.customBackgroundColor,g=r.customTextColor,f=r.caption,b=n.className,h=!k.isEmpty(f),v=!!p||!!m,y=!!d||!!g,_=O("color",d),E=O("background-color",p);return wp.element.createElement("div",{className:w()(b,(e={},i()(e,"has-table-layout-".concat(l),l),i()(e,"has-border-collapse-".concat(c),c),i()(e,"has-horizontal-align-".concat(s),s),i()(e,"has-vertical-align-".concat(u),u),e))},wp.element.createElement("table",{className:(v||y)&&w()((t={"has-background":p||m,"has-text-color":d||g},i()(t,E,E),i()(t,_,_),t)),style:{backgroundColor:p?void 0:m,color:d?void 0:g}},!!o.length&&wp.element.createElement("thead",null,this.renderSection("head")),wp.element.createElement("tbody",null,this.renderSection("body")),!!a.length&&wp.element.createElement("tfoot",null,this.renderSection("foot"))),h&&wp.element.createElement(k.Content,{tagName:"figcaption",value:f}))}}]),t}(y);t.a=E},function(e,t){},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(n,!0).forEach(function(t){a()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var i=n(7),a=n.n(i),l=(n(0),n(520)),c=n(523),s=n(12),u=n(1),p=(n.n(u),window),d=(p.jQuery,wp.blocks),m=d.registerBlockType,g=d.createBlock;m("getwid/anchor",o(o({title:Object(u.__)("Anchor","getwid"),category:"getwid-blocks",supports:{anchor:!0,inserter:!Getwid.disabled_blocks.includes("getwid/anchor")},icon:wp.element.createElement("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",width:"24px",height:"24px",viewBox:"0 0 24 24"},wp.element.createElement("path",{d:"M20.68,16.6c-0.42,0.95-1.13,1.84-2.11,2.62c-1.75,1.4-3.95,2.15-5.58,2.54V13h6v-2h-6V7.6c1.65-0.44,2.88-1.94,2.88-3.73\tC15.88,1.74,14.14,0,12,0S8.13,1.74,8.13,3.88c0,1.79,1.22,3.28,2.88,3.73V11H5v2h6v8.76c-1.63-0.4-3.83-1.15-5.58-2.54\tc-0.98-0.78-1.69-1.67-2.11-2.62l-1.83,0.8c0.55,1.25,1.46,2.39,2.69,3.38c2.43,1.95,5.5,2.82,7.65,3.2L12,24.02l0.18-0.03\tc2.15-0.39,5.22-1.26,7.65-3.2c1.24-0.99,2.14-2.13,2.69-3.38L20.68,16.6z M10.13,3.88C10.13,2.84,10.97,2,12,2\tc1.03,0,1.88,0.84,1.88,1.88S13.03,5.75,12,5.75C10.97,5.75,10.13,4.91,10.13,3.88z"})),transforms:{to:[{type:"block",blocks:["core/spacer"],transform:function(e){return g("core/spacer")}}]}},Object(s.b)("getwid/anchor",l.a)),{},{save:c.a}))},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=m()(e);if(t()){var o=m()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p()(this,n)}}var o=n(2),i=n.n(o),a=n(4),l=n.n(a),c=n(5),s=n.n(c),u=n(6),p=n.n(u),d=n(3),m=n.n(d),g=n(85),f=n.n(g),b=(n(0),n(521)),w=n(8),h=n.n(w),v=n(522),y=(n.n(v),n(1)),_=(n.n(y),window),k=(_.jQuery,wp.element),O=k.Component,E=k.Fragment;f()(wp.components);var C=function(e){function t(){return i()(this,t),n.apply(this,arguments)}s()(t,e);var n=r(t);return l()(t,[{key:"render",value:function(){var e=this.props,t=e.attributes.anchor,n=e.className;return wp.element.createElement(E,null,wp.element.createElement(b.a,this.props),wp.element.createElement("div",{className:h()(n),id:t||void 0},wp.element.createElement("span",null),wp.element.createElement("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",width:"16px",height:"16px",viewBox:"0 0 24 24"},wp.element.createElement("path",{d:"M20.68,16.6c-0.42,0.95-1.13,1.84-2.11,2.62c-1.75,1.4-3.95,2.15-5.58,2.54V13h6v-2h-6V7.6c1.65-0.44,2.88-1.94,2.88-3.73\tC15.88,1.74,14.14,0,12,0S8.13,1.74,8.13,3.88c0,1.79,1.22,3.28,2.88,3.73V11H5v2h6v8.76c-1.63-0.4-3.83-1.15-5.58-2.54\tc-0.98-0.78-1.69-1.67-2.11-2.62l-1.83,0.8c0.55,1.25,1.46,2.39,2.69,3.38c2.43,1.95,5.5,2.82,7.65,3.2L12,24.02l0.18-0.03\tc2.15-0.39,5.22-1.26,7.65-3.2c1.24-0.99,2.14-2.13,2.69-3.38L20.68,16.6z M10.13,3.88C10.13,2.84,10.97,2,12,2\tc1.03,0,1.88,0.84,1.88,1.88S13.03,5.75,12,5.75C10.97,5.75,10.13,4.91,10.13,3.88z"})),wp.element.createElement("span",null)))}}]),t}(O);t.a=C},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=m()(e);if(t()){var o=m()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p()(this,n)}}var o=n(2),i=n.n(o),a=n(4),l=n.n(a),c=n(5),s=n.n(c),u=n(6),p=n.n(u),d=n(3),m=n.n(d),g=(n(0),n(1)),f=(n.n(g),window),b=(f.jQuery,wp.element.Component),w=wp.blockEditor||wp.editor,h=w.InspectorControls,v=wp.components,y=v.PanelBody,_=v.TextControl,k=v.ExternalLink,O=v.BaseControl,E=function(e){function t(){return i()(this,t),n.apply(this,arguments)}s()(t,e);var n=r(t);return l()(t,[{key:"render",value:function(){var e=this.props,t=e.attributes.anchor,n=e.setAttributes;return wp.element.createElement(h,null,wp.element.createElement(y,{title:Object(g.__)("Settings","getwid")},wp.element.createElement(_,{label:Object(g.__)("HTML Anchor","getwid"),value:t,onChange:function(e){n({anchor:e})}}),wp.element.createElement(O,null,wp.element.createElement(k,{href:"https://wordpress.org/support/article/page-jumps/"}," ",Object(g.__)("Learn more about anchors","getwid")," "))))}}]),t}(b);t.a=E},function(e,t){},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=m()(e);if(t()){var o=m()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p()(this,n)}}var o=n(2),i=n.n(o),a=n(4),l=n.n(a),c=n(5),s=n.n(c),u=n(6),p=n.n(u),d=n(3),m=n.n(d),g=(n(0),n(8)),f=n.n(g),b=n(1),w=(n.n(b),window),h=(w.jQuery,wp.element.Component),v=function(e){function t(){return i()(this,t),n.apply(this,arguments)}s()(t,e);var n=r(t);return l()(t,[{key:"render",value:function(){var e=this.props.attributes.className;return wp.element.createElement("div",{className:f()(e)})}}]),t}(h);t.a=v},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(n,!0).forEach(function(t){a()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var i=n(7),a=n.n(i),l=(n(0),n(525)),c=n(528),s=n(530),u=n(12),p=n(1),d=(n.n(p),window),m=(d.jQuery,wp.blocks),g=m.registerBlockType;m.createBlock,g("getwid/table-of-contents",o(o({title:Object(p.__)("Table of Contents","getwid"),category:"getwid-blocks",keywords:[Object(p.__)("summary","getwid")],supports:{inserter:!Getwid.disabled_blocks.includes("getwid/table-of-contents"),multiple:!1,align:["left","right","wide","full"]},icon:wp.element.createElement("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",width:"24px",height:"24px",viewBox:"0 0 24 24"},wp.element.createElement("polygon",{points:"0,3 0,21 0,23 2,23 4,23 4,21 2,21 2,3 4,3 4,1 0,1 "}),wp.element.createElement("rect",{x:"6",width:"4",height:"4"}),wp.element.createElement("rect",{x:"6",y:"20",width:"4",height:"4"}),wp.element.createElement("rect",{x:"14",y:"7",width:"4",height:"4"}),wp.element.createElement("rect",{x:"14",y:"15",width:"4",height:"4"}),wp.element.createElement("polygon",{points:"8,6 6,6 6,18 8,18 12,18 12,16 8,16 8,10 12,10 12,8 8,8 "})),getEditWrapperProps:function(e){var t=e.align;if(["left","right","wide","full"].includes(t))return{"data-align":t}},attributes:s.a},Object(u.b)("getwid/table-of-contents",l.a)),{},{save:c.a}))},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=w()(e);if(t()){var o=w()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f()(this,n)}}var o=n(7),i=n.n(o),a=n(2),l=n.n(a),c=n(4),s=n.n(c),u=n(11),p=n.n(u),d=n(5),m=n.n(d),g=n(6),f=n.n(g),b=n(3),w=n.n(b),h=(n(0),n(526)),v=n(8),y=n.n(v),_=n(527),k=(n.n(_),n(1)),O=(n.n(k),window),E=(O.jQuery,wp.element),C=E.Component,j=E.Fragment,S=wp.data,x=S.select,P=S.dispatch,T=wp.blocks,R=(T.registerBlockType,T.getBlockContent),N=(T.createBlock,wp.components),A=N.IconButton,B=N.Placeholder,D=N.Button,M=N.Toolbar,I=wp.blockEditor||wp.editor,L=I.BlockControls,z=(I.RichText,"wp-block-getwid-table-of-contents"),V=function(e){function t(){var e;return l()(this,t),e=n.apply(this,arguments),e.checkHeading=e.checkHeading.bind(p()(e)),e.findInnerHeading=e.findInnerHeading.bind(p()(e)),e}m()(t,e);var n=r(t);return s()(t,[{key:"componentDidMount",value:function(){this.checkHeading()}},{key:"findInnerHeading",value:function(e,t){var n=this.findInnerHeading;return"core/columns"===e.name||"core/column"===e.name||"getwid/section"===e.name?e.innerBlocks.map(function(e){return n(e,t),e}):"core/heading"!==e.name&&"getwid/advanced-heading"!==e.name||t.push(e),t}},{key:"checkHeading",value:function(){var e=[],t=[],n=x("core/block-editor").getBlocks(),r=this.findInnerHeading;n.filter(function(e){return"core/heading"===e.name||"getwid/advanced-heading"===e.name||"core/columns"===e.name||"getwid/section"===e.name}).map(function(e){return"core/columns"===e.name||"getwid/section"===e.name?r(e,t):t.push(e),e}),t.map(function(t){var n={};if("core/heading"==t.name)n.level=parseInt(t.attributes.level);else if("getwid/advanced-heading"==t.name){if(!["h1","h2","h3","h4","h5","h6"].includes(t.attributes.titleTag))return t;n.level=parseInt(t.attributes.titleTag.replace("h",""),10)}if(n.level){n.level-=1,n.content=t.attributes.content.length?R(t).replace(/<(?:.|\n)*?>/gm,""):"";var r=unescape(n.content.toLowerCase()),o=r.replace(/[!@#$%^&*()\/\\,?":{}|<>]/g,"");o=o.replace(/(amp;)+/g,""),o=o.replace(/\s/g,"-"),o=t.clientId.split("-")[t.clientId.split("-").length-1],t.attributes.anchor?n.anchor=t.attributes.anchor:(n.anchor=o,t.attributes.anchor=n.anchor),e.push(n)}return t}),this.props.setAttributes({headings:e})}},{key:"render",value:function(){var e,t=this.props,n=t.attributes,r=n.headings,o=n.align,a=n.allowedTags,l=n.listStyle,c=(t.isSelected,t.setAttributes,P("core/block-editor")),s=(c.selectBlock,function e(t,n){0===t.length||t[0].level===n.level?t.push(Object.assign({},n)):t[t.length-1].level<n.level&&(t[t.length-1].children?e(t[t.length-1].children,n):t[t.length-1].children=[Object.assign({},n)])}),u=function(e){var t=[];return e.filter(function(e){return a[e.level]}).forEach(function(e){return s(t,e)}),t},p=function e(t){return t.map(function(t){return wp.element.createElement("li",null,wp.element.createElement("a",{href:"#".concat(t.anchor)},t.content),t.children&&("ordered"===l?wp.element.createElement("ol",null,e(t.children)):wp.element.createElement("ul",null,e(t.children))))})};if(r.length>0&&r.filter(function(e){return a[e.level]}).length>0){var d=P("core/block-editor");d.selectBlock;e=wp.element.createElement("div",{className:y()("".concat(z),"is-style-".concat(l),i()({},"align".concat(o),"none"!=o))},"ordered"===l?wp.element.createElement("ol",{className:y()("".concat(z,"__list"))},p(u(r))):wp.element.createElement("ul",{className:y()("".concat(z,"__list"))},p(u(r))))}else e=wp.element.createElement(B,{icon:wp.element.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("g",null,wp.element.createElement("path",{d:"M13 4v2h3.59L6 16.59V13H4v7h7v-2H7.41L18 7.41V11h2V4h-7"}))),label:Object(k.__)("Table of Contents","getwid"),instructions:Object(k.__)("Headings not found on this page.","getwid")},wp.element.createElement(D,{onClick:this.checkHeading,className:"button"},Object(k.__)("Update","getwid")));return wp.element.createElement(j,null,!!r.length&&wp.element.createElement(L,null,wp.element.createElement(M,null,wp.element.createElement(A,{className:"components-icon-button components-toolbar__control",icon:"update",label:Object(k.__)("Update","getwid"),onClick:this.checkHeading}))),wp.element.createElement(h.a,this.props),e)}}]),t}(C);t.a=V},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=f()(e);if(t()){var o=f()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var o=n(15),i=n.n(o),a=n(2),l=n.n(a),c=n(4),s=n.n(c),u=n(5),p=n.n(u),d=n(6),m=n.n(d),g=n(3),f=n.n(g),b=(n(0),n(1)),w=(n.n(b),window),h=(w.jQuery,wp.element.Component),v=wp.blockEditor||wp.editor,y=v.InspectorControls,_=wp.components,k=_.PanelBody,O=_.ToggleControl,E=_.BaseControl,C=_.RadioControl,j=function(e){function t(){return l()(this,t),n.apply(this,arguments)}p()(t,e);var n=r(t);return s()(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.allowedTags,r=t.listStyle,o=(e.isSelected,e.setAttributes);return wp.element.createElement(y,null,wp.element.createElement(k,{title:Object(b.__)("Settings","getwid")},wp.element.createElement(E,{label:Object(b.__)("Headings","getwid")},n.map(function(e,t){return wp.element.createElement(O,{label:"H".concat(t+1),checked:e,onChange:function(){return o({allowedTags:[].concat(i()(n.slice(0,t)),[!n[t]],i()(n.slice(t+1)))})}})})),wp.element.createElement(C,{label:Object(b.__)("List Style","getwid"),selected:r,options:[{value:"default",label:Object(b.__)("Default","getwid")},{value:"none",label:Object(b.__)("None","getwid")},{value:"unordered",label:Object(b.__)("Unordered","getwid")},{value:"ordered",label:Object(b.__)("Ordered","getwid")}],onChange:function(e){return o({listStyle:e})}})))}}]),t}(h);t.a=j},function(e,t){},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=f()(e);if(t()){var o=f()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var o=n(7),i=n.n(o),a=n(2),l=n.n(a),c=n(4),s=n.n(c),u=n(5),p=n.n(u),d=n(6),m=n.n(d),g=n(3),f=n.n(g),b=(n(0),n(8)),w=n.n(b),h=n(529),v=(n.n(h),n(1)),y=(n.n(v),window),_=(y.jQuery,wp.element.Component),k=wp.blockEditor||wp.editor,O=(k.RichText,"wp-block-getwid-table-of-contents"),E=function(e){function t(){return l()(this,t),n.apply(this,arguments)}p()(t,e);var n=r(t);return s()(t,[{key:"render",value:function(){var e=this.props.attributes,t=e.headings,n=e.align,r=e.allowedTags,o=e.listStyle;if(t.length<1)return null;var a=function e(t,n){0===t.length||t[0].level===n.level?t.push(Object.assign({},n)):t[t.length-1].level<n.level&&(t[t.length-1].children?e(t[t.length-1].children,n):t[t.length-1].children=[Object.assign({},n)])},l=function(e){var t=[];return e.filter(function(e){return r[e.level]}).forEach(function(e){return a(t,e)}),t},c=function e(t){return t.map(function(t){return wp.element.createElement("li",null,wp.element.createElement("a",{href:"#".concat(t.anchor)},t.content),t.children&&("ordered"===o?wp.element.createElement("ol",null,e(t.children)):wp.element.createElement("ul",null,e(t.children))))})};return wp.element.createElement("div",{className:w()("".concat(O),"is-style-".concat(o),i()({},"align".concat(n),"none"!=n))},"ordered"===o?wp.element.createElement("ol",{className:w()("".concat(O,"__list"))},c(l(t))):wp.element.createElement("ul",{className:w()("".concat(O,"__list"))},c(l(t))))}}]),t}(_);t.a=E},function(e,t){},function(e,t,n){"use strict";var r={headings:{type:"array",default:[]},allowedTags:{type:"array",default:Array(6).fill(!1,0,1).fill(!0,1,6)},align:{type:"string",default:"none"},listStyle:{type:"string",default:"default"}};t.a=r},function(e,t,n){"use strict";var r=n(1),o=(n.n(r),window),i=(o.jQuery,wp.element.createElement),a=wp.editPost.PluginMoreMenuItem,l=wp.url.addQueryArgs;(0,wp.plugins.registerPlugin)("getwid-templates",{render:function(){return i(a,{icon:"category",href:l("edit.php",{post_type:Getwid.templates.name}),onClick:function(){}},Object(r.__)("Getwid Post Templates","getwid"))}})},function(e,t){},function(e,t){}]);
20
  * https://opensource.org/licenses/MIT
21
  *
22
  */
23
+ !function(t,r){e.exports=r(n(23),n(20),n(8),n(28),n(111))}(window,function(e,t,n,r,o){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=15)}([function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}Object.defineProperty(t,"__esModule",{value:!0}),t.flattenPossiblyCategorizedSource=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(Array.isArray(e))return i(e);if(null!==t)return void 0!==e[t]?i(e[t]):[];var n=[],r=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){o(e,t,n[t])})}return e}({},e);return Object.keys(r).forEach(function(e){n=i(n).concat(i(r[e]))}),n},t.getPossibleCategories=function(e){return Array.isArray(e)?null:Object.keys(e)},t.convertToHex=function(e){return String.fromCodePoint(parseInt(e,10))},t.isArrayEqual=function(e,t){if(!Array.isArray(e)||!Array.isArray(t))return!1;var n=i(e);n.sort();var r=i(t);return r.sort(),JSON.stringify(n)===JSON.stringify(r)},t.getOffset=function(e){var t=e.getBoundingClientRect(),n=window.pageXOffset||document.documentElement.scrollLeft,r=window.pageYOffset||document.documentElement.scrollTop;return{top:t.top+r,left:t.left+n}},t.getSourceType=function(e){return null===e?"null":"object"!==r(e)||Array.isArray(e)?Array.isArray(e)?"array":r(e):"object"},t.InvalidSourceException=function(e,t){this.givenType=e,this.requiredType=t,this.message="Expected of type: ".concat(this.requiredType,", found: ").concat(this.givenType),this.toString=function(){return"Invalid Source Exception: ".concat(this.message)}},t.fuzzySearch=function(e,t){e=e.toLowerCase();var n=(t=t.toLowerCase()).length,r=e.length;if(r>n)return!1;if(r===n)return e===t;e:for(var o=0,i=0;o<r;o++){for(var a=e.codePointAt(o);i<n;)if(t.codePointAt(i++)===a)continue e;return!1}return!0},t.debounce=void 0,t.debounce=function(e,t){var n;return function(){var r=this,o=arguments;clearTimeout(n),n=setTimeout(function(){return e.apply(r,o)},t)}}},function(e,t){e.exports=n},,,function(e,t){e.exports=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}function l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var c=r(n(1)),s=n(6),u=r(n(0)),p=r(n(3)),d=n(2),m=function(e){function t(e){var n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),r=(t.__proto__||Object.getPrototypeOf(t)).call(this,e),n=!r||"object"!==o(r)&&"function"!=typeof r?l(this):r,Object.defineProperty(l(n),"syncPortalPosition",{configurable:!0,enumerable:!0,writable:!0,value:function(){n.resetPortalPosition(),n.fixWindowOverflow()}}),Object.defineProperty(l(n),"fixWindowOverflow",{configurable:!0,enumerable:!0,writable:!0,value:function(){var e=n.props.domRef.current.offsetWidth,t=n.props.domRef.current.offsetHeight,r=window,o=r.innerWidth,i=r.pageYOffset,a=document.documentElement.clientHeight,l=(0,d.getOffset)(n.props.domRef.current),c=l.left,s=l.top,u="self"===n.state.appendRoot?n.props.domRef.current:n.state.appendRoot,p=(0,d.getOffset)(u),m=n.props.btnRef.current,g=n.props.domRef.current,f=(0,d.getOffset)(m),b=getComputedStyle(m),w=(parseInt(b.borderTop,10)||0)+(parseInt(b.borderBottom,10)||0);if(c+e>o-20){var h=f.left+n.props.btnRef.current.offsetWidth-(e+p.left);h+p.left<0&&(h=10-p.left),g.style.left="".concat(h,"px")}t+s-i>a&&f.top-t>0&&("self"===n.state.appendRoot?g.style.top="-".concat(t-w,"px"):g.style.top="".concat(f.top+w-t,"px"))}}),n.state={},n.debouncedSyncPortalPosition=(0,d.debounce)(n.syncPortalPosition,250),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,c.default.PureComponent),a(t,null,[{key:"getDerivedStateFromProps",value:function(e){var n=t.calculateAppendAndClass(e.appendRoot);return{appendRoot:n.appendRoot,portalClasses:n.portalClasses}}},{key:"calculateAppendAndClass",value:function(e){var t="self",n=(0,p.default)({"rfipdropdown--portal":!1!==e});return!1!==e&&(t=document.querySelector(e)),{portalClasses:n,appendRoot:t}}}]),a(t,[{key:"componentDidMount",value:function(){window.addEventListener("resize",this.debouncedSyncPortalPosition),window.addEventListener("scroll",this.debouncedSyncPortalPosition),this.syncPortalPosition()}},{key:"componentDidUpdate",value:function(){this.syncPortalPosition()}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.debouncedSyncPortalPosition),window.removeEventListener("scroll",this.debouncedSyncPortalPosition)}},{key:"positionPortal",value:function(){var e=this.props.domRef.current.style.display;this.props.domRef.current.style.display="none";var t=this.props.btnRef.current,n=(0,d.getOffset)(t),r=(0,d.getOffset)(this.state.appendRoot),o=t.offsetHeight;this.props.domRef.current.style.left="".concat(n.left-r.left,"px"),this.props.domRef.current.style.top="".concat(n.top+o,"px"),this.props.domRef.current.style.display=e}},{key:"resetPortalPosition",value:function(){var e=this.props.domRef.current;"self"===this.state.appendRoot?e.style.top="":this.positionPortal()}},{key:"render",value:function(){var e=(0,p.default)(this.props.className,this.state.portalClasses),t=c.default.createElement("div",{className:e,ref:this.props.domRef},this.props.children);return"self"===this.state.appendRoot?t:(0,s.createPortal)(t,this.state.appendRoot)}}]),t}();Object.defineProperty(m,"propTypes",{configurable:!0,enumerable:!0,writable:!0,value:{appendRoot:u.default.oneOfType([u.default.bool,u.default.string]),children:u.default.node.isRequired,domRef:u.default.object.isRequired,btnRef:u.default.object.isRequired,className:u.default.string.isRequired}}),Object.defineProperty(m,"defaultProps",{configurable:!0,enumerable:!0,writable:!0,value:{appendRoot:!1}});var g=m;t.default=g},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function l(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=r(n(1)),u=r(n(0)),p=r(n(3)),d=n(2),m=function(e){function t(e){var n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),r=(t.__proto__||Object.getPrototypeOf(t)).call(this,e),n=!r||"object"!==o(r)&&"function"!=typeof r?c(this):r,Object.defineProperty(c(n),"handleChangePage",{configurable:!0,enumerable:!0,writable:!0,value:function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=n.props.currentPage,i=n.state.totalPage;null!==r?"next"===r?o+=1:o-=1:o=parseInt(e.target.value,10)-1,o<0&&(o=0),o>i-1&&(o=i-1),t=o+1,null===r&&Number.isNaN(o)&&(o=0,t=""),n.setState({viewPage:t}),n.props.handleChangePage(o)}}),Object.defineProperty(c(n),"handlePageKeyBoard",{configurable:!0,enumerable:!0,writable:!0,value:function(e,t){13!==e.keyCode&&32!==e.keyCode||n.handleChangePage({},t)}}),Object.defineProperty(c(n),"handleChangeValue",{configurable:!0,enumerable:!0,writable:!0,value:function(e){n.props.handleChangeValue(e)}}),Object.defineProperty(c(n),"handleValueKeyboard",{configurable:!0,enumerable:!0,writable:!0,value:function(e,t){13!==e.keyCode&&32!==e.keyCode||n.handleChangeValue(t)}}),n.state={viewPage:n.props.currentPage+1},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,s.default.PureComponent),l(t,null,[{key:"getDerivedStateFromProps",value:function(e,n){var r=t.getCategoryFilteredState(e.currentCategory,e.categories,e.icons),o=t.getCategoryFilteredState(e.currentCategory,e.categories,null===e.search?e.icons:e.search),i=t.getActiveIcons(r,o,e.currentSearch),a=i.activeIcons,l=i.activeTitles,c=e.currentPage,s=e.iconsPerPage,u={iconView:t.getCurrentViewIcons(a,s,c),titleView:t.getCurrentViewIcons(l,s,c),totalPage:Math.ceil(a.length/s)};return""!==n.viewPage&&(u.viewPage=e.currentPage+1),u}},{key:"getActiveIcons",value:function(e,t,n){var r=i(e),o=i(t);if(""===n||null===n)return{activeIcons:r,activeTitles:o};var a=[],l=[];return r.forEach(function(e,r){(0,d.fuzzySearch)(n,t[r])&&(a.push(e),l.push(t[r]))}),{activeIcons:a,activeTitles:l}}},{key:"getCategoryFilteredState",value:function(e,t,n){var r=null,o=(0,d.getSourceType)(n);if(Array.isArray(t)){if("object"!==o)throw new d.InvalidSourceException(o,"object")}else if("array"!==o)throw new d.InvalidSourceException(o,"array");return 0!==e&&Array.isArray(t)&&(r=t[e]||null),(0,d.flattenPossiblyCategorizedSource)(n,r)}},{key:"getCurrentViewIcons",value:function(e,t,n){var r=n*t,o=(n+1)*t;return e.slice(r,o)}}]),l(t,[{key:"renderPager",value:function(){var e=this;if(this.state.totalPage<1)return null;var t=this.props.currentPage>0?s.default.createElement("span",{className:"rfipicons__left",role:"button",tabIndex:0,onKeyDown:function(t){return e.handlePageKeyBoard(t,"prev")},onClick:function(t){return e.handleChangePage(t,"prev")}},s.default.createElement("span",{role:"presentation",className:"rfipicons__label","aria-label":"Left"},s.default.createElement("i",{className:"fipicon-angle-left"}))):null,n=this.props.currentPage<this.state.totalPage-1?s.default.createElement("span",{className:"rfipicons__right",role:"button",tabIndex:0,onKeyDown:function(t){return e.handlePageKeyBoard(t,"next")},onClick:function(t){return e.handleChangePage(t,"next")}},s.default.createElement("span",{role:"presentation",className:"rfipicons__label","aria-label":"Right"},s.default.createElement("i",{className:"fipicon-angle-right"}))):null;return s.default.createElement("div",{className:"rfipicons__pager"},s.default.createElement("div",{className:"rfipicons__num"},s.default.createElement("input",{value:this.state.viewPage,onChange:this.handleChangePage,className:"rfipicons__cp",type:"tel",min:1}),s.default.createElement("span",{className:"rfipicons__sp"},"/"),s.default.createElement("span",{className:"rfipicons__tp"},this.state.totalPage)),s.default.createElement("div",{className:"rfipicons__arrow"},t,n))}},{key:"renderIconView",value:function(){var e=this;return this.state.totalPage>0?this.state.iconView.map(function(t,n){var r=(0,p.default)("rfipicons__icon",{"rfipicons__icon--selected":e.props.value===t||Array.isArray(e.props.value)&&e.props.value.includes(t)});return s.default.createElement("span",{className:r,key:t,title:e.state.titleView[n]},s.default.createElement("span",{className:"rfipicons__ibox",tabIndex:0,role:"button",onClick:function(){return e.handleChangeValue(t)},onKeyDown:function(n){return e.handleValueKeyboard(n,t)}},e.props.renderIcon(t)))}):s.default.createElement("span",{className:"rfipicons__icon--error"},s.default.createElement("span",{className:"rfipicons__ibox--error"},this.props.noIconPlaceholder))}},{key:"render",value:function(){return s.default.createElement("div",{className:"rfipicons"},this.renderPager(),s.default.createElement("div",{className:"rfipicons__selector"},this.renderIconView()))}}]),t}();Object.defineProperty(m,"propTypes",{configurable:!0,enumerable:!0,writable:!0,value:{categories:u.default.arrayOf(u.default.string),currentCategory:u.default.number,isMulti:u.default.bool.isRequired,icons:u.default.oneOfType([u.default.arrayOf(u.default.string),u.default.arrayOf(u.default.number),u.default.objectOf(u.default.oneOfType([u.default.arrayOf(u.default.number),u.default.arrayOf(u.default.string)]))]).isRequired,search:u.default.oneOfType([u.default.objectOf(u.default.arrayOf(u.default.string)),u.default.arrayOf(u.default.string)]),value:u.default.oneOfType([u.default.number,u.default.string,u.default.arrayOf(u.default.oneOfType([u.default.number,u.default.string]))]).isRequired,currentSearch:u.default.string.isRequired,handleChangeValue:u.default.func.isRequired,currentPage:u.default.number.isRequired,iconsPerPage:u.default.number.isRequired,handleChangePage:u.default.func.isRequired,renderIcon:u.default.func.isRequired,noIconPlaceholder:u.default.string.isRequired}}),Object.defineProperty(m,"defaultProps",{configurable:!0,enumerable:!0,writable:!0,value:{categories:null,currentCategory:null,search:null}});var g=m;t.default=g},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(1)),i=r(n(0)),a=function(e){return o.default.createElement("div",{className:"rfipsearch"},o.default.createElement("input",{type:"text",className:"rfipsearch__input",value:e.value,onChange:e.handleSearch,placeholder:e.placeholder}))};a.propTypes={handleSearch:i.default.func.isRequired,value:i.default.string.isRequired,placeholder:i.default.string.isRequired};var l=a;t.default=l},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(1)),l=r(n(0)),c=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){return!t||"object"!==o(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}var n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.default.PureComponent),n=t,(r=[{key:"render",value:function(){return a.default.createElement("div",{className:"rfipcategory"},a.default.createElement("select",{className:"rfipcategory__select",onChange:this.props.handleCategory,value:this.props.value},this.props.categories.map(function(e,t){return a.default.createElement("option",{className:"rfipcategory__select__option",key:e,value:t},e)})),a.default.createElement("i",{className:"fipicon-angle-down",role:"presentation","aria-label":"Open"}))}}])&&i(n.prototype,r),t}();Object.defineProperty(c,"propTypes",{configurable:!0,enumerable:!0,writable:!0,value:{handleCategory:l.default.func.isRequired,value:l.default.number.isRequired,categories:l.default.arrayOf(l.default.string).isRequired}});var s=c;t.default=s},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}function l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var c=r(n(1)),s=r(n(0)),u=r(n(10)),p=r(n(9)),d=r(n(8)),m=n(2),g=function(e){function t(e){var n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),r=(t.__proto__||Object.getPrototypeOf(t)).call(this,e),n=!r||"object"!==o(r)&&"function"!=typeof r?l(this):r,Object.defineProperty(l(n),"handleCategory",{configurable:!0,enumerable:!0,writable:!0,value:function(e){var t=parseInt(e.target.value,10);Number.isNaN(t)&&(t=0),n.props.handleChangeCategory(t),n.props.handleChangePage(0)}}),Object.defineProperty(l(n),"handleSearch",{configurable:!0,enumerable:!0,writable:!0,value:function(e){var t=e.target.value;n.props.handleChangeSearch(t)}}),n.state={},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,c.default.PureComponent),a(t,null,[{key:"getDerivedStateFromProps",value:function(e){var t=(0,m.getPossibleCategories)(e.icons);return null!==t&&(t=[e.allCatPlaceholder].concat(function(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}(t))),{categories:t,searchString:e.currentSearch}}}]),a(t,[{key:"render",value:function(){return c.default.createElement("div",{className:"rfipdropdown__selector"},this.props.showSearch?c.default.createElement(p.default,{handleSearch:this.handleSearch,value:this.state.searchString,placeholder:this.props.searchPlaceholder}):null,this.props.showCategory&&this.state.categories&&this.state.categories.length?c.default.createElement(u.default,{handleCategory:this.handleCategory,value:this.props.currentCategory,categories:this.state.categories}):null,c.default.createElement(d.default,{categories:this.state.categories,currentCategory:this.props.currentCategory,isMulti:this.props.isMulti,icons:this.props.icons,search:this.props.search,value:this.props.value,currentSearch:this.props.currentSearch,handleChangeValue:this.props.handleChangeValue,currentPage:this.props.currentPage,iconsPerPage:this.props.iconsPerPage,handleChangePage:this.props.handleChangePage,renderIcon:this.props.renderIcon,noIconPlaceholder:this.props.noIconPlaceholder}))}}]),t}();Object.defineProperty(g,"propTypes",{configurable:!0,enumerable:!0,writable:!0,value:{isMulti:s.default.bool.isRequired,value:s.default.oneOfType([s.default.number,s.default.string,s.default.arrayOf(s.default.any)]).isRequired,currentCategory:s.default.number.isRequired,currentPage:s.default.number.isRequired,currentSearch:s.default.string.isRequired,icons:s.default.oneOfType([s.default.arrayOf(s.default.number),s.default.arrayOf(s.default.string),s.default.objectOf(s.default.oneOfType([s.default.arrayOf(s.default.number),s.default.arrayOf(s.default.string)]))]).isRequired,search:s.default.oneOfType([s.default.object,s.default.arrayOf(s.default.string)]),showCategory:s.default.bool.isRequired,showSearch:s.default.bool.isRequired,iconsPerPage:s.default.number.isRequired,allCatPlaceholder:s.default.string.isRequired,searchPlaceholder:s.default.string.isRequired,noIconPlaceholder:s.default.string.isRequired,renderIcon:s.default.func.isRequired,handleChangeValue:s.default.func.isRequired,handleChangeCategory:s.default.func.isRequired,handleChangePage:s.default.func.isRequired,handleChangeSearch:s.default.func.isRequired}}),Object.defineProperty(g,"defaultProps",{configurable:!0,enumerable:!0,writable:!0,value:{search:null}});var f=g;t.default=f},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function l(e,t){return!t||"object"!==o(t)&&"function"!=typeof t?c(e):t}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=r(n(1)),u=r(n(0)),p=r(n(3)),d=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return l(r,(n=r=l(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),Object.defineProperty(c(r),"handleClick",{configurable:!0,enumerable:!0,writable:!0,value:function(){r.props.onClick()}}),Object.defineProperty(c(r),"handleKeyDown",{configurable:!0,enumerable:!0,writable:!0,value:function(e){32!==e.keyCode&&13!==e.keyCode||r.props.onClick()}}),Object.defineProperty(c(r),"handleDelete",{configurable:!0,enumerable:!0,writable:!0,value:function(e,t){e.stopPropagation(),r.props.handleDeleteValue(t)}}),Object.defineProperty(c(r),"handleDeleteKeyboard",{configurable:!0,enumerable:!0,writable:!0,value:function(e,t){32!==e.keyCode&&13!==e.keyCode||r.props.handleDeleteValue(t)}}),Object.defineProperty(c(r),"renderEmptyIcon",{configurable:!0,enumerable:!0,writable:!0,value:function(){return s.default.createElement("span",{className:"rfipbtn__icon--empty"},r.props.noSelectedPlaceholder)}}),n))}var n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,s.default.PureComponent),n=t,(r=[{key:"renderIcon",value:function(e){var t=this;return""===e||null===e||void 0===e?this.renderEmptyIcon():s.default.createElement("span",{className:"rfipbtn__icon",key:e},s.default.createElement("span",{className:"rfipbtn__elm"},this.props.renderIcon(e)),s.default.createElement("span",{className:"rfipbtn__del",onClick:function(n){return t.handleDelete(n,e)},onKeyDown:function(n){return t.handleDeleteKeyboard(n,e)},tabIndex:0,role:"button"},"×"))}},{key:"renderCurrentIcons",value:function(){var e=this;return this.props.isMulti?this.props.value.length?this.props.value.map(function(t){return e.renderIcon(t)}):this.renderEmptyIcon():this.renderIcon(this.props.value)}},{key:"render",value:function(){var e={onClick:this.handleClick,onKeyDown:this.handleKeyDown,onFocus:this.handleFocus,onBlur:this.handleBlur,tabIndex:0},t=(0,p.default)("rfipbtn__button","rfipbtn__button--".concat(this.props.isOpen?"open":"close")),n=(0,p.default)(this.props.className);return s.default.createElement("div",i({className:n,ref:this.props.domRef},e),s.default.createElement("div",{className:"rfipbtn__current"},this.renderCurrentIcons()),s.default.createElement("div",{className:t},s.default.createElement("i",{className:"fipicon-angle-down",role:"presentation","aria-label":"Open"})))}}])&&a(n.prototype,r),t}();Object.defineProperty(d,"propTypes",{configurable:!0,enumerable:!0,writable:!0,value:{className:u.default.string.isRequired,isOpen:u.default.bool.isRequired,onClick:u.default.func.isRequired,domRef:u.default.object.isRequired,isMulti:u.default.bool.isRequired,value:u.default.oneOfType([u.default.number,u.default.string,u.default.arrayOf(u.default.oneOfType([u.default.number,u.default.string]))]).isRequired,renderIcon:u.default.func.isRequired,handleDeleteValue:u.default.func.isRequired,noSelectedPlaceholder:u.default.string.isRequired}});var m=d;t.default=m},function(e,t){e.exports=o},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e,t,n){return t&&l(e.prototype,t),n&&l(e,n),e}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var u=r(n(1)),p=r(n(0)),d=r(n(3)),m=n(13),g=r(n(12)),f=r(n(11)),b=r(n(7)),w=n(2),h=[],v="",y=function(e){function t(e){var n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),r=(t.__proto__||Object.getPrototypeOf(t)).call(this,e),n=!r||"object"!==o(r)&&"function"!=typeof r?s(this):r,Object.defineProperty(s(n),"handleOuterClick",{configurable:!0,enumerable:!0,writable:!0,value:function(e){var t=e.target;n.isClickWithin(t)||n.closeDropdown()}}),Object.defineProperty(s(n),"handleEscapeKeyboard",{configurable:!0,enumerable:!0,writable:!0,value:function(e){27===e.keyCode&&n.closeDropdown()}}),Object.defineProperty(s(n),"isClickWithin",{configurable:!0,enumerable:!0,writable:!0,value:function(e){return n.fipButtonRef.current.contains(e)||n.fipDropDownRef.current&&n.fipDropDownRef.current.contains(e)}}),Object.defineProperty(s(n),"handleToggle",{configurable:!0,enumerable:!0,writable:!0,value:function(){n.setState(function(e){return n.handleDropDown(!e.isOpen,!1)})}}),Object.defineProperty(s(n),"closeDropdown",{configurable:!0,enumerable:!0,writable:!0,value:function(){n.handleDropDown(!1)}}),Object.defineProperty(s(n),"handleDropDown",{configurable:!0,enumerable:!0,writable:!0,value:function(e){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o={isOpen:e};return o.elemClass=t.getDerivedClassName("rfip",n.props.theme,n.props.isMulti,e),o.btnClass=t.getDerivedClassName("rfipbtn",n.props.theme,n.props.isMulti,e),o.ddClass=t.getDerivedClassName("rfipdropdown",n.props.theme,n.props.isMulti,e),r&&n.setState(o),o}}),Object.defineProperty(s(n),"handleChangeValue",{configurable:!0,enumerable:!0,writable:!0,value:function(e){var t;n.props.isMulti?(t=i(n.state.value)).includes(e)?(t=t.filter(function(t){return t!==e})).length||(t=h):t.push(e):t=e===n.state.value?v:e,n.setState({value:t,isOpen:!n.props.closeOnSelect}),n.props.onChange(t)}}),Object.defineProperty(s(n),"handleDeleteValue",{configurable:!0,enumerable:!0,writable:!0,value:function(e){var r;r=n.props.isMulti?n.state.value.filter(function(t){return t!==e}):t.getDerivedValue(r,n.props.isMulti),n.setState({value:r}),n.props.onChange(r)}}),Object.defineProperty(s(n),"handleChangePage",{configurable:!0,enumerable:!0,writable:!0,value:function(e){n.setState({currentPage:e})}}),Object.defineProperty(s(n),"handleChangeCategory",{configurable:!0,enumerable:!0,writable:!0,value:function(e){n.setState({currentCategory:e,currentPage:0})}}),Object.defineProperty(s(n),"handleChangeSearch",{configurable:!0,enumerable:!0,writable:!0,value:function(e){n.setState({currentSearch:e,currentPage:0})}}),Object.defineProperty(s(n),"resetPortalStyle",{configurable:!0,enumerable:!0,writable:!0,value:function(e){["maxHeight","paddingTop","paddingBottom"].forEach(function(t){e.style[t]=null})}}),Object.defineProperty(s(n),"handlePortalEnter",{configurable:!0,enumerable:!0,writable:!0,value:function(e){var t=e.childNodes[0];n.resetPortalStyle(t);var r=getComputedStyle(t);n.fipPortalComputedStyle={height:r.height,paddingTop:r.paddingTop,paddingBottom:r.paddingBottom},["maxHeight","paddingTop","paddingBottom"].forEach(function(e){t.style[e]="0px"})}}),Object.defineProperty(s(n),"handlePortalEntering",{configurable:!0,enumerable:!0,writable:!0,value:function(e){var t=e.childNodes[0];t.style.maxHeight=n.fipPortalComputedStyle.height,t.style.paddingTop=n.fipPortalComputedStyle.paddingTop,t.style.paddingBottom=n.fipPortalComputedStyle.paddingBottom}}),Object.defineProperty(s(n),"handlePortalEntered",{configurable:!0,enumerable:!0,writable:!0,value:function(e){var t=e.childNodes[0];n.resetPortalStyle(t),n.props.showSearch&&void 0===window.orientation&&-1===navigator.userAgent.indexOf("IEMobile")&&t.querySelector(".rfipsearch__input").focus()}}),Object.defineProperty(s(n),"handlePortalExit",{configurable:!0,enumerable:!0,writable:!0,value:function(e){var t=e.childNodes[0];n.resetPortalStyle(t);var r=getComputedStyle(t).height;t.style.maxHeight=r}}),Object.defineProperty(s(n),"handlePortalExiting",{configurable:!0,enumerable:!0,writable:!0,value:function(e){var t=e.childNodes[0];t.style.maxHeight="0px",t.style.paddingTop="0px",t.style.paddingBottom="0px"}}),Object.defineProperty(s(n),"renderIcon",{configurable:!0,enumerable:!0,writable:!0,value:function(e){if("function"==typeof n.props.renderFunc)return n.props.renderFunc(e);if("class"===n.props.renderUsing)return u.default.createElement("i",{className:e});var t=a({},n.props.renderUsing,n.props.convertHex?(0,w.convertToHex)(e):e);return u.default.createElement("i",t)}}),n.fipButtonRef=u.default.createRef(),n.fipDropDownRef=u.default.createRef(),n.state={currentCategory:0,currentPage:0,isOpen:!1,currentSearch:""},n.fipPortalComputedStyle=null,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,u.default.PureComponent),c(t,null,[{key:"getDerivedStateFromProps",value:function(e,n){var r={};return r.elemClass=t.getDerivedClassName("rfip",e.theme,e.isMulti,n.isOpen),r.btnClass=t.getDerivedClassName("rfipbtn",e.theme,e.isMulti,n.isOpen),r.ddClass=t.getDerivedClassName("rfipdropdown",e.theme,e.isMulti,n.isOpen),r.value=t.getDerivedValue(e.value,e.isMulti),e.showCategory||(r.currentCategory=0,r.currentPage=0),e.showSearch||(r.currentSearch="",r.currentPage=0),r}},{key:"getDerivedClassName",value:function(e,t,n,r){return(0,d.default)(e,"".concat(e,"--").concat(t),a({},"".concat(e,"--multi"),n),"".concat(e,"--").concat(r?"open":"close"))}},{key:"getDerivedValue",value:function(e,t){var n=e;return t?n=Array.isArray(e)?i(e):h:"number"!=typeof e&&"string"!=typeof e&&(n=v),n}}]),c(t,[{key:"componentDidMount",value:function(){var e=this;["click"].forEach(function(t){document.addEventListener(t,e.handleOuterClick,!1)}),document.addEventListener("keydown",this.handleEscapeKeyboard,!1),this.props.onChange(this.state.value)}},{key:"componentWillUnmount",value:function(){var e=this;["click"].forEach(function(t){document.removeEventListener(t,e.handleOuterClick,!1)}),document.removeEventListener("keydown",this.handleEscapeKeyboard,!1)}},{key:"render",value:function(){var e={currentCategory:this.state.currentCategory,currentPage:this.state.currentPage,currentSearch:this.state.currentSearch,value:this.state.value,isMulti:this.props.isMulti,icons:this.props.icons,search:this.props.search,showCategory:this.props.showCategory,showSearch:this.props.showSearch,iconsPerPage:this.props.iconsPerPage,allCatPlaceholder:this.props.allCatPlaceholder,searchPlaceholder:this.props.searchPlaceholder,noIconPlaceholder:this.props.noIconPlaceholder,renderIcon:this.renderIcon,handleChangeValue:this.handleChangeValue,handleChangeCategory:this.handleChangeCategory,handleChangePage:this.handleChangePage,handleChangeSearch:this.handleChangeSearch};return u.default.createElement("div",{className:this.state.elemClass,ref:this.fipRef},u.default.createElement(g.default,{className:this.state.btnClass,isOpen:this.state.isOpen,onClick:this.handleToggle,domRef:this.fipButtonRef,isMulti:this.props.isMulti,value:this.state.value,renderIcon:this.renderIcon,handleDeleteValue:this.handleDeleteValue,noSelectedPlaceholder:this.props.noSelectedPlaceholder}),u.default.createElement(m.CSSTransition,{classNames:"fipappear",timeout:300,in:this.state.isOpen,unmountOnExit:!0,onEnter:this.handlePortalEnter,onEntering:this.handlePortalEntering,onEntered:this.handlePortalEntered,onExit:this.handlePortalExit,onExiting:this.handlePortalExiting},u.default.createElement(b.default,{appendRoot:this.props.appendTo,domRef:this.fipDropDownRef,btnRef:this.fipButtonRef,className:this.state.ddClass},u.default.createElement(f.default,e))))}}]),t}();Object.defineProperty(y,"propTypes",{configurable:!0,enumerable:!0,writable:!0,value:{icons:p.default.oneOfType([p.default.arrayOf(p.default.string),p.default.arrayOf(p.default.number),p.default.objectOf(p.default.oneOfType([p.default.arrayOf(p.default.number),p.default.arrayOf(p.default.string)]))]).isRequired,search:p.default.oneOfType([p.default.objectOf(p.default.arrayOf(p.default.string)),p.default.arrayOf(p.default.string)]),iconsPerPage:p.default.number,theme:p.default.string,onChange:p.default.func.isRequired,showCategory:p.default.bool,showSearch:p.default.bool,value:p.default.oneOfType([p.default.arrayOf(p.default.string),p.default.arrayOf(p.default.number),p.default.number,p.default.string]),isMulti:p.default.bool,renderUsing:p.default.string,convertHex:p.default.bool,renderFunc:p.default.func,appendTo:p.default.oneOfType([p.default.bool,p.default.string]),allCatPlaceholder:p.default.string,searchPlaceholder:p.default.string,noIconPlaceholder:p.default.string,noSelectedPlaceholder:p.default.string,closeOnSelect:p.default.bool}}),Object.defineProperty(y,"defaultProps",{configurable:!0,enumerable:!0,writable:!0,value:{search:null,iconsPerPage:20,theme:"default",showCategory:!0,showSearch:!0,value:null,isMulti:!1,renderUsing:"class",convertHex:!0,renderFunc:null,appendTo:!1,allCatPlaceholder:"Show from all",searchPlaceholder:"Search Icons",noIconPlaceholder:"No icons found",noSelectedPlaceholder:"Select icon",closeOnSelect:!1}}),Object.defineProperty(y,"displayName",{configurable:!0,enumerable:!0,writable:!0,value:"FontIconPicker"});var _=y;t.default=_},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=((r=n(14))&&r.__esModule?r:{default:r}).default;t.default=o}]).default})},function(e,t,n){"use strict";function r(){}function o(){}var i=n(110);o.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,o,a){if(a!==i){var l=new Error("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");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:r};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var o=r(n(112)),i=r(n(117)),a=r(n(48)),l=r(n(45));e.exports={Transition:l.default,TransitionGroup:a.default,ReplaceTransition:i.default,CSSTransition:o.default}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(){return o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}t.__esModule=!0,t.default=void 0;var a=(function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}t.default=e}(n(23)),r(n(113))),l=r(n(116)),c=r(n(20)),s=r(n(45)),u=(n(47),function(e,t){return e&&t&&t.split(" ").forEach(function(t){return(0,a.default)(e,t)})}),p=function(e,t){return e&&t&&t.split(" ").forEach(function(t){return(0,l.default)(e,t)})},d=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t=e.call.apply(e,[this].concat(r))||this,t.onEnter=function(e,n){var r=t.getClassNames(n?"appear":"enter"),o=r.className;t.removeClasses(e,"exit"),u(e,o),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.getClassNames(n?"appear":"enter"),o=r.activeClassName;t.reflowAndAddClass(e,o),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.getClassNames("appear").doneClassName,o=t.getClassNames("enter").doneClassName,i=n?r+" "+o:o;t.removeClasses(e,n?"appear":"enter"),u(e,i),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.getClassNames("exit"),r=n.className;t.removeClasses(e,"appear"),t.removeClasses(e,"enter"),u(e,r),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.getClassNames("exit"),r=n.activeClassName;t.reflowAndAddClass(e,r),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.getClassNames("exit"),r=n.doneClassName;t.removeClasses(e,"exit"),u(e,r),t.props.onExited&&t.props.onExited(e)},t.getClassNames=function(e){var n=t.props.classNames,r="string"==typeof n,o=r&&n?n+"-":"",i=r?o+e:n[e];return{className:i,activeClassName:r?i+"-active":n[e+"Active"],doneClassName:r?i+"-done":n[e+"Done"]}},t}i(t,e);var n=t.prototype;return n.removeClasses=function(e,t){var n=this.getClassNames(t),r=n.className,o=n.activeClassName,i=n.doneClassName;r&&p(e,r),o&&p(e,o),i&&p(e,i)},n.reflowAndAddClass=function(e,t){t&&(e&&e.scrollTop,u(e,t))},n.render=function(){var e=o({},this.props);return delete e.classNames,c.default.createElement(s.default,o({},e,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(c.default.Component);d.defaultProps={classNames:""},d.propTypes={};var m=d;t.default=m,e.exports=t.default},function(e,t,n){"use strict";function r(e,t){e.classList?e.classList.add(t):(0,i.default)(e,t)||("string"==typeof e.className?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}var o=n(114);t.__esModule=!0,t.default=r;var i=o(n(115));e.exports=t.default},function(e,t){function n(e){return e&&e.__esModule?e:{default:e}}e.exports=n},function(e,t,n){"use strict";function r(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}t.__esModule=!0,t.default=r,e.exports=t.default},function(e,t,n){"use strict";function r(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}e.exports=function(e,t){e.classList?e.classList.remove(t):"string"==typeof e.className?e.className=r(e.className,t):e.setAttribute("class",r(e.className&&e.className.baseVal||"",t))}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}t.__esModule=!0,t.default=void 0;var a=(r(n(23)),r(n(20))),l=n(28),c=r(n(48)),s=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t=e.call.apply(e,[this].concat(r))||this,t.handleEnter=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEnter",0,n)},t.handleEntering=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntering",0,n)},t.handleEntered=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntered",0,n)},t.handleExit=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExit",1,n)},t.handleExiting=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExiting",1,n)},t.handleExited=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExited",1,n)},t}i(t,e);var n=t.prototype;return n.handleLifecycle=function(e,t,n){var r,o=this.props.children,i=a.default.Children.toArray(o)[t];i.props[e]&&(r=i.props)[e].apply(r,n),this.props[e]&&this.props[e]((0,l.findDOMNode)(this))},n.render=function(){var e=this.props,t=e.children,n=e.in,r=o(e,["children","in"]),i=a.default.Children.toArray(t),l=i[0],s=i[1];return delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,a.default.createElement(c.default,r,n?a.default.cloneElement(l,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):a.default.cloneElement(s,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},t}(a.default.Component);s.propTypes={};var u=s;t.default=u,e.exports=t.default},function(e,t,n){"use strict";function r(e,t){var n=function(e){return t&&(0,c.isValidElement)(e)?t(e):e},r=Object.create(null);return e&&c.Children.map(e,function(e){return e}).forEach(function(e){r[e.key]=n(e)}),r}function o(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r=Object.create(null),o=[];for(var i in e)i in t?o.length&&(r[i]=o,o=[]):o.push(i);var a,l={};for(var c in t){if(r[c])for(a=0;a<r[c].length;a++){var s=r[c][a];l[r[c][a]]=n(s)}l[c]=n(c)}for(a=0;a<o.length;a++)l[o[a]]=n(o[a]);return l}function i(e,t,n){return null!=n[t]?n[t]:e.props[t]}function a(e,t){return r(e.children,function(n){return(0,c.cloneElement)(n,{onExited:t.bind(null,n),in:!0,appear:i(n,"appear",e),enter:i(n,"enter",e),exit:i(n,"exit",e)})})}function l(e,t,n){var a=r(e.children),l=o(t,a);return Object.keys(l).forEach(function(r){var o=l[r];if((0,c.isValidElement)(o)){var s=r in t,u=r in a,p=t[r],d=(0,c.isValidElement)(p)&&!p.props.in;!u||s&&!d?u||!s||d?u&&s&&(0,c.isValidElement)(p)&&(l[r]=(0,c.cloneElement)(o,{onExited:n.bind(null,o),in:p.props.in,exit:i(o,"exit",e),enter:i(o,"enter",e)})):l[r]=(0,c.cloneElement)(o,{in:!1}):l[r]=(0,c.cloneElement)(o,{onExited:n.bind(null,o),in:!0,exit:i(o,"exit",e),enter:i(o,"enter",e)})}}),l}t.__esModule=!0,t.getChildMapping=r,t.mergeChildMappings=o,t.getInitialChildMapping=a,t.getNextChildMapping=l;var c=n(20)},function(e,t){},function(e,t){},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=O()(e);if(t()){var o=O()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return _()(this,n)}}var o=n(15),i=n.n(o),a=n(9),l=n.n(a),c=n(7),s=n.n(c),u=n(13),p=n.n(u),d=n(2),m=n.n(d),g=n(4),f=n.n(g),b=n(11),w=n.n(b),h=n(5),v=n.n(h),y=n(6),_=n.n(y),k=n(3),O=n.n(k),E=(n(0),n(1)),C=(n.n(E),n(10)),j=(n.n(C),n(19)),S=n(125),x=n(17),P=n(16),T=n(24),R=n(127),N=n(14),A=wp.data,B=A.select,D=A.withSelect,M=wp.element,I=M.Component,L=M.Fragment,z=wp.blockEditor||wp.editor,V=z.InspectorControls,F=z.MediaUpload,H=z.MediaPlaceholder,G=z.withColors,W=wp.components,U=W.FocalPointPicker,q=W.BaseControl,Q=W.Button,K=W.PanelBody,Y=W.RangeControl,J=W.SelectControl,$=W.TextControl,Z=W.CheckboxControl,X=W.RadioControl,ee=W.ToggleControl,te=W.ButtonGroup,ne=W.TabPanel,re=W.ExternalLink,oe=W.ColorPalette,ie=W.ColorIndicator,ae=W.Dropdown,le=W.Dashicon,ce=wp.components.__experimentalGradientPicker,se=wp.compose.compose,ue=["image"],pe=["image"],de=["video"],me=["colors","disableCustomColors","gradients","disableCustomGradients"],ge="components-base-control",fe=function(e){function t(e){var r;return m()(this,t),r=n.apply(this,arguments),r.onSelectSliderImages=r.onSelectSliderImages.bind(w()(r)),r.changeBackgroundGradient=r.changeBackgroundGradient.bind(w()(r)),r.changeForegroundGradient=r.changeForegroundGradient.bind(w()(r)),r.changeState=r.changeState.bind(w()(r)),r.state={contentHelpIsVisible:!1,tabName:"general",backgroundType:"color",foregroundType:"color"},r}v()(t,e);var n=r(t);return f()(t,[{key:"changeState",value:function(e,t){"object"==p()(e)?this.setState(e):"string"==typeof e&&this.setState(s()({},e,t))}},{key:"getState",value:function(e){return this.state[e]}},{key:"render",value:function(){var e=this.state,t=e.tabName,n=e.backgroundType,r=e.foregroundType,o=this.props.attributes.customBackgroundColor,i=this.props,a=i.setBackgroundColor,c=i.backgroundColor,s=i.clientId,u=i.getBlock,p=this.props.attributes,d=p.backgroundGradientFirstColor,m=p.backgroundGradientFirstColorLocation,g=p.backgroundGradientSecondColor,f=p.backgroundGradientSecondColorLocation,b=p.backgroundGradientType,w=p.backgroundGradientAngle,h=this.props.attributes,v=h.foregroundGradientFirstColor,y=h.foregroundGradientFirstColorLocation,_=h.foregroundGradientSecondColor,k=h.foregroundGradientSecondColorLocation,O=h.foregroundGradientType,C=h.foregroundGradientAngle,x=this.props,T=x.colorGradientSettings,A=x.prepareMultiGradientStyle,B=T.gradients,D=T.disableCustomColors,M=T.disableCustomGradients,I=this.changeBackgroundGradient,z=this.changeForegroundGradient,F=this.changeState,H=this.props.setAttributes,G=this.props.attributes,W=G.backgroundGradient,U=G.foregroundGradient;return W=A("background",this.props),U=A("foreground",this.props),u(s)?wp.element.createElement(V,{key:"inspector"},wp.element.createElement(j.a,{state:t,stateName:"tabName",onChangeTab:F,tabs:["general","style","advanced"]}),"general"===t&&wp.element.createElement(L,null,wp.element.createElement(K,{initialOpen:!0},this.renderSizeSettings(),this.renderAlignmentSettings())),"style"===t&&wp.element.createElement(L,null,wp.element.createElement(K,{title:Object(E.__)("Background","getwid"),initialOpen:!0},wp.element.createElement(S.a,{state:n,stateName:"backgroundType",onChangeBackgroundType:F,types:["color","image","gradient","slider","video"]}),"color"===n&&wp.element.createElement(P.a,{colorSettings:[{title:Object(E.__)("Background Color","getwid"),colors:{customColor:o,defaultColor:c},changeColor:a}]}),"image"===n&&wp.element.createElement(L,null,this.renderBackgroundImage()),"gradient"===n&&(ce?wp.element.createElement(ce,l()({value:W,onChange:function(e){H({backgroundGradient:e})}},{gradients:B,disableCustomColors:D,disableCustomGradients:M})):wp.element.createElement(R.a,{label:"Background Gradient",value:{firstColor:d,secondColor:g,firstLocation:m,secondLocation:f,type:b,angle:w},onChange:I})),"slider"===n&&wp.element.createElement(L,null,this.renderSliderSettings()),"video"===n&&wp.element.createElement(L,null,this.renderVideoSettings())),wp.element.createElement(K,{title:Object(E.__)("Overlay","getwid"),initialOpen:!1},this.renderForegroundSettings(),wp.element.createElement(S.a,{label:Object(E.__)("Overlay Type","getwid"),state:r,stateName:"foregroundType",onChangeBackgroundType:F,types:["color","image","gradient"]}),"color"===r&&wp.element.createElement(L,null,this.renderForegroundColor()),"image"===r&&wp.element.createElement(L,null,this.renderForegroundImage()),"gradient"===r&&(ce?wp.element.createElement(ce,l()({value:U,onChange:function(e){return H({foregroundGradient:e})}},{gradients:B,disableCustomColors:D,disableCustomGradients:M})):wp.element.createElement(R.a,{label:"Overlay Gradient",value:{firstColor:v,secondColor:_,firstLocation:y,secondLocation:k,type:O,angle:C},onChange:z}))),Object(N.g)(this),Object(N.d)(this)),"advanced"===t&&wp.element.createElement(L,null,this.renderAnimationSettings(),this.renderDividersSettings())):wp.element.createElement(V,null)}},{key:"changeBackgroundGradient",value:function(e,t,n,r,o,i){(0,this.props.setAttributes)({backgroundGradientFirstColor:e,backgroundGradientSecondColor:n,backgroundGradientFirstColorLocation:t,backgroundGradientSecondColorLocation:r,backgroundGradientType:o,backgroundGradientAngle:i})}},{key:"changeForegroundGradient",value:function(e,t,n,r,o,i){(0,this.props.setAttributes)({foregroundGradientFirstColor:e,foregroundGradientSecondColor:n,foregroundGradientFirstColorLocation:t,foregroundGradientSecondColorLocation:r,foregroundGradientType:o,foregroundGradientAngle:i})}},{key:"hasAnimation",value:function(){var e=this.props.attributes,t=e.entranceAnimation,n=e.entranceAnimationDelay,r=e.entranceAnimationDuration;return void 0!==t||"200ms"!==n||"1500ms"!==r}},{key:"renderBackgroundImage",value:function(){var e=this.props.attributes,t=e.backgroundImage,n=e.backgroundCustomImagePosition,r=e.backgroundImagePosition,o=e.backgroundImageAttachment,i=e.backgroundImageRepeat,a=e.backgroundImageSize,l=this.props.setAttributes,c=t?t.url:void 0,s=t?t.id:void 0;return wp.element.createElement(L,null,wp.element.createElement(N.e,{label:Object(E.__)("Background Image","getwid"),url:c,id:s,onSelectMedia:function(e){return l({backgroundImage:void 0!==e?Object(C.pick)(e,["alt","id","url"]):{}})},onRemoveMedia:function(){return l({backgroundImage:void 0})}}),!!t&&wp.element.createElement("div",{className:"".concat(ge,"__custom-wrapper")},wp.element.createElement("span",{className:"".concat(ge,"__label")},Object(E.__)("Background Settings","getwid")),wp.element.createElement(ae,{className:"".concat(ge,"__dropdown-action"),contentClassName:"".concat(ge,"__dropdown-content"),position:"top right",renderToggle:function(e){var t=(e.isOpen,e.onToggle);return wp.element.createElement(Q,{isDefault:!0,onClick:t},wp.element.createElement(le,{icon:"admin-tools"}))},renderContent:function(){return wp.element.createElement(L,null,wp.element.createElement(J,{label:Object(E.__)("Position","getwid"),value:void 0!==r?r:"",onChange:function(e){return l({backgroundImagePosition:e})},options:[{value:"",label:Object(E.__)("Default","getwid")},{value:"custom",label:Object(E.__)("Custom","getwid")},{value:"top left",label:Object(E.__)("Top Left","getwid")},{value:"top center",label:Object(E.__)("Top Center","getwid")},{value:"top right",label:Object(E.__)("Top Right","getwid")},{value:"center left",label:Object(E.__)("Center Left ","getwid")},{value:"center center",label:Object(E.__)("Center Center","getwid")},{value:"center right",label:Object(E.__)("Center Right","getwid")},{value:"bottom left",label:Object(E.__)("Bottom Left","getwid")},{value:"bottom center",label:Object(E.__)("Bottom Center","getwid")},{value:"bottom right",label:Object(E.__)("Bottom Right","getwid")}]}),"custom"==r&&wp.element.createElement(U,{url:c,value:n,onChange:function(e){l({backgroundCustomImagePosition:e})}}),wp.element.createElement(J,{label:Object(E.__)("Attachment","getwid"),value:void 0!==o?o:"",onChange:function(e){return l({backgroundImageAttachment:e})},options:[{value:"",label:Object(E.__)("Default","getwid")},{value:"scroll",label:Object(E.__)("Scroll","getwid")},{value:"fixed",label:Object(E.__)("Fixed","getwid")}]}),wp.element.createElement(J,{label:Object(E.__)("Repeat","getwid"),value:void 0!==i?i:"",onChange:function(e){return l({backgroundImageRepeat:e})},options:[{value:"",label:Object(E.__)("Default","getwid")},{value:"no-repeat",label:Object(E.__)("No Repeat","getwid")},{value:"repeat",label:Object(E.__)("Repeat","getwid")},{value:"repeat-x",label:Object(E.__)("Repeat X","getwid")},{value:"repeat-y",label:Object(E.__)("Repeat Y","getwid")},{value:"space",label:Object(E.__)("Space","getwid")},{value:"round",label:Object(E.__)("Round","getwid")}]}),wp.element.createElement(J,{label:Object(E.__)("Size","getwid"),value:void 0!==a?a:"",onChange:function(e){return l({backgroundImageSize:e})},options:[{value:"",label:Object(E.__)("Cover","getwid")},{value:"contain",label:Object(E.__)("Contain","getwid")},{value:"auto",label:Object(E.__)("Auto","getwid")}]}))}})))}},{key:"renderDividersSettings",value:function(){var e=this.props.attributes,t=e.dividerTop,n=e.dividersTopHeight,r=e.dividerTopColor,o=e.dividerBottom,a=e.dividersBottomHeight,l=e.dividersBringTop,c=e.dividerBottomColor,s=this.props.setAttributes,u=[{value:"",label:Object(E.__)("None","getwid")},{value:"tilt",label:Object(E.__)("Tilt","getwid")},{value:"tilt-negative",label:Object(E.__)("Tilt Negative","getwid")},{value:"tilt-layered-1",label:Object(E.__)("Tilt Layered 1","getwid")},{value:"tilt-layered-2",label:Object(E.__)("Tilt Layered 2 ","getwid")},{value:"tilt-layered-3",label:Object(E.__)("Tilt Layered 3","getwid")},{value:"split",label:Object(E.__)("Split","getwid")},{value:"split-negative",label:Object(E.__)("Split Negative","getwid")},{value:"clouds",label:Object(E.__)("Clouds","getwid")},{value:"clouds-negative",label:Object(E.__)("Clouds Negative","getwid")},{value:"book",label:Object(E.__)("Book","getwid")},{value:"book-negative",label:Object(E.__)("Book Negative","getwid")},{value:"arrow",label:Object(E.__)("Arrow","getwid")},{value:"arrow-negative",label:Object(E.__)("Arrow Negative","getwid")},{value:"triangle-rounded",label:Object(E.__)("Triangle Rounded","getwid")},{value:"triangle-negative-rounded",label:Object(E.__)("Triangle Rounded Negative","getwid")},{value:"triangle-asymmetrical-rounded",label:Object(E.__)("Triangle Rounded Asymmetrical","getwid")},{value:"triangle-asymmetrical-negative-rounded",label:Object(E.__)("Triangle Rounded Asymmetrical Negative","getwid")},{value:"triangle",label:Object(E.__)("Triangle","getwid")},{value:"triangle-negative",label:Object(E.__)("Triangle Negative","getwid")},{value:"triangle-asymmetrical",label:Object(E.__)("Triangle Asymmetrical","getwid")},{value:"triangle-asymmetrical-negative",label:Object(E.__)("Triangle Asymmetrical Negative","getwid")},{value:"triangle-layered-asymmetrical",label:Object(E.__)("Triangle Layered Asymmetrical","getwid")},{value:"waves",label:Object(E.__)("Waves","getwid")},{value:"waves-light",label:Object(E.__)("Waves Light","getwid")},{value:"waves-large",label:Object(E.__)("Waves Large","getwid")},{value:"waves-large-negative",label:Object(E.__)("Waves Large Negative","getwid")},{value:"waves-layered",label:Object(E.__)("Waves Layered","getwid")},{value:"mountains",label:Object(E.__)("Waves Multi-Layered","getwid")},{value:"waves-pattern",label:Object(E.__)("Waves Pattern","getwid")},{value:"drips",label:Object(E.__)("Drips","getwid")},{value:"drips-negative",label:Object(E.__)("Drips Negative","getwid")},{value:"drops",label:Object(E.__)("Drops","getwid")},{value:"drops-negative",label:Object(E.__)("Drops Negative","getwid")},{value:"tilted-drips",label:Object(E.__)("Tilted Drips","getwid")},{value:"tilted-drips-negative",label:Object(E.__)("Tilted Drips Negative","getwid")},{value:"pyramids",label:Object(E.__)("Pyramids","getwid")},{value:"pyramids-negative",label:Object(E.__)("Pyramids Negative","getwid")},{value:"pyramids-round",label:Object(E.__)("Pyramids Rounded","getwid")},{value:"pyramids-round-negative",label:Object(E.__)("Pyramids Rounded Negative","getwid")},{value:"opacity-pyramids",label:Object(E.__)("Pyramids Layered","getwid")},{value:"curve",label:Object(E.__)("Curve","getwid")},{value:"curve-negative",label:Object(E.__)("Curve Negative","getwid")},{value:"curve-1",label:Object(E.__)("Curve 1","getwid")},{value:"curve-2",label:Object(E.__)("Curve 2","getwid")},{value:"curve-3",label:Object(E.__)("Curve 3","getwid")},{value:"curve-4",label:Object(E.__)("Curve 4","getwid")},{value:"curve-5",label:Object(E.__)("Curve 5","getwid")},{value:"curve-6",label:Object(E.__)("Curve 6","getwid")},{value:"curve-7",label:Object(E.__)("Curve 7","getwid")},{value:"curve-8",label:Object(E.__)("Curve 8","getwid")},{value:"curve-layered-1",label:Object(E.__)("Curve Layered 1","getwid")},{value:"curve-layered-2",label:Object(E.__)("Curve Layered 2","getwid")},{value:"curve-layered-3",label:Object(E.__)("Curve Layered 3","getwid")},{value:"curve-layered-4",label:Object(E.__)("Curve Layered 4","getwid")},{value:"zigzag-ice",label:Object(E.__)("Zigzag","getwid")},{value:"zigzag-ice-negative",label:Object(E.__)("Zigzag Negative","getwid")},{value:"zigzag-pattern",label:Object(E.__)("Zigzag Pattern","getwid")}];return wp.element.createElement(K,{title:Object(E.__)("Dividers","getwid"),initialOpen:!1},wp.element.createElement(J,{label:Object(E.__)("Top Divider","getwid"),value:void 0!==t?t:"",options:u,onChange:function(e){return s({dividerTop:e})}}),wp.element.createElement(x.a,{label:Object(E.__)("Top Divider Height","getwid"),value:n,units:[{label:"px",value:"px"},{label:"vh",value:"vh"},{label:"vw",value:"vw"}],onChange:function(e){return s({dividersTopHeight:e})}}),wp.element.createElement(J,{label:Object(E.__)("Bottom Divider","getwid"),value:void 0!==o?o:"",options:u,onChange:function(e){return s({dividerBottom:e})}}),wp.element.createElement(x.a,{label:Object(E.__)("Bottom Divider Height","getwid"),value:a,units:[{label:"px",value:"px"},{label:"vh",value:"vh"},{label:"vw",value:"vw"}],onChange:function(e){return s({dividersBottomHeight:e})}}),wp.element.createElement(ee,{label:Object(E.__)("Bring dividers to top","getwid"),checked:l,onChange:function(){s({dividersBringTop:!l})}}),(t||o)&&wp.element.createElement(P.a,{colorSettings:[].concat(i()(t?[{title:Object(E.__)("Top Divider Color","getwid"),colors:{customColor:r},changeColor:function(e){return s({dividerTopColor:e})}}]:[]),i()(o?[{title:Object(E.__)("Bottom Divider Color","getwid"),colors:{customColor:c},changeColor:function(e){return s({dividerBottomColor:e})}}]:[]))}))}},{key:"renderSizeSettings",value:function(){var e=this,t=this.props.attributes,n=t.contentMaxWidth,r=t.minHeight,o=t.gapSize,i=t.resetMinHeightTablet,a=t.resetMinHeightMobile,l=t.contentMaxWidthPreset,c=this.props.setAttributes,s=this.state.contentHelpIsVisible,u=function(){e.setState({contentHelpIsVisible:!s})};return wp.element.createElement(L,null,wp.element.createElement(X,{label:Object(E.__)("Content Area Width","getwid"),selected:void 0!==l?l:"boxed",options:[{value:"boxed",label:Object(E.__)("Default","getwid")},{value:"full",label:Object(E.__)("Full Width","getwid")},{value:"custom",label:Object(E.__)("Custom Width","getwid")}],onChange:function(e){return c({contentMaxWidthPreset:e})}}),"custom"===l&&wp.element.createElement(Y,{value:void 0!==n?n:"",onChange:function(e){c({contentMaxWidth:e})},allowReset:!0,min:0,max:2e3,step:1}),!!s&&wp.element.createElement(L,null,wp.element.createElement(q,{label:Object(E.__)("Set the default width of the content area in Getwid Settings.","getwid")},wp.element.createElement(re,{href:Getwid.options_url.appearance},Object(E.__)("Getwid Settings","getwid"))),wp.element.createElement(Q,{isLink:!0,onClick:u},Object(E.__)("Hide Help","getwid"))),!s&&wp.element.createElement(q,null,wp.element.createElement(Q,{isLink:!0,onClick:u},Object(E.__)("Show Help","getwid"))),wp.element.createElement(q,null,wp.element.createElement(ne,{className:"getwid-editor-tabs",activeClass:"is-active",tabs:[{name:"desktop",title:Object(E.__)("Desktop","getwid"),className:"components-button is-link is-small"},{name:"tablet",title:Object(E.__)("Tablet","getwid"),className:"components-button is-link is-small"},{name:"mobile",title:Object(E.__)("Mobile","getwid"),className:"components-button is-link is-small"}]},function(e){switch(e.name){case"desktop":return wp.element.createElement(x.a,{label:Object(E.__)("Section Height","getwid"),value:r,units:[{label:"px",value:"px"},{label:"vh",value:"vh"},{label:"vw",value:"vw"},{label:"%",value:"%"}],onChange:function(e){return c({minHeight:e})}});case"tablet":return wp.element.createElement(Z,{label:Object(E.__)("Reset height on tablet","getwid"),checked:void 0!==i&&i,onChange:function(e){return c({resetMinHeightTablet:e})}});case"mobile":return wp.element.createElement(Z,{label:Object(E.__)("Reset height on mobile","getwid"),checked:void 0!==a&&a,onChange:function(e){return c({resetMinHeightMobile:e})}})}})),wp.element.createElement(J,{label:Object(E.__)("Vertical space between blocks","getwid"),value:void 0!==o?o:void 0,onChange:function(e){return c({gapSize:e})},options:[{value:"",label:Object(E.__)("Default","getwid")},{value:"small",label:Object(E.__)("Small","getwid")},{value:"medium",label:Object(E.__)("Medium","getwid")},{value:"normal",label:Object(E.__)("Normal","getwid")},{value:"large",label:Object(E.__)("Large","getwid")},{value:"huge",label:Object(E.__)("Huge","getwid")},{value:"none",label:Object(E.__)("None","getwid")}]}))}},{key:"renderAlignmentSettings",value:function(){var e=this.props.attributes,t=e.verticalAlign,n=e.horizontalAlign,r=e.verticalAlignTablet,o=e.horizontalAlignTablet,i=e.verticalAlignMobile,a=e.horizontalAlignMobile,l=this.props.setAttributes;return wp.element.createElement(L,null,wp.element.createElement(q,null,wp.element.createElement(ne,{className:"getwid-editor-tabs",activeClass:"is-active",tabs:[{name:"desktop",title:Object(E.__)("Desktop","getwid"),className:"components-button is-link is-small"},{name:"tablet",title:Object(E.__)("Tablet","getwid"),className:"components-button is-link is-small"},{name:"mobile",title:Object(E.__)("Mobile","getwid"),className:"components-button is-link is-small"}]},function(e){switch(e.name){case"desktop":return wp.element.createElement(L,null,wp.element.createElement(J,{label:Object(E.__)("Content Area Vertical Alignment","getwid"),value:void 0!==t?t:"center",onChange:function(e){return l({verticalAlign:e})},options:[{value:"flex-start",label:Object(E.__)("Top","getwid")},{value:"center",label:Object(E.__)("Middle","getwid")},{value:"flex-end",label:Object(E.__)("Bottom","getwid")}]}),wp.element.createElement(J,{label:Object(E.__)("Content Area Horizontal Alignment","getwid"),value:void 0!==n?n:"center",onChange:function(e){return l({horizontalAlign:e})},options:[{value:"flex-start",label:Object(E.__)("Left","getwid")},{value:"center",label:Object(E.__)("Center","getwid")},{value:"flex-end",label:Object(E.__)("Right","getwid")}]}));case"tablet":return wp.element.createElement(L,null,wp.element.createElement(J,{label:Object(E.__)("Content Area Vertical Alignment","getwid"),value:void 0!==r?r:"center",onChange:function(e){return l({verticalAlignTablet:e})},options:[{value:"",label:Object(E.__)("Default","getwid")},{value:"flex-start",label:Object(E.__)("Top","getwid")},{value:"center",label:Object(E.__)("Middle","getwid")},{value:"flex-end",label:Object(E.__)("Bottom","getwid")}]}),wp.element.createElement(J,{label:Object(E.__)("Content Area Horizontal Alignment","getwid"),value:void 0!==o?o:"center",onChange:function(e){return l({horizontalAlignTablet:e})},options:[{value:"",label:Object(E.__)("Default","getwid")},{value:"flex-start",label:Object(E.__)("Left","getwid")},{value:"center",label:Object(E.__)("Center","getwid")},{value:"flex-end",label:Object(E.__)("Right","getwid")}]}));case"mobile":return wp.element.createElement(L,null,wp.element.createElement(J,{label:Object(E.__)("Content Area Vertical Alignment","getwid"),value:void 0!==i?i:"center",onChange:function(e){return l({verticalAlignMobile:e})},options:[{value:"",label:Object(E.__)("Default","getwid")},{value:"flex-start",label:Object(E.__)("Top","getwid")},{value:"center",label:Object(E.__)("Middle","getwid")},{value:"flex-end",label:Object(E.__)("Bottom","getwid")}]}),wp.element.createElement(J,{label:Object(E.__)("Content Area Horizontal Alignment","getwid"),value:void 0!==a?a:"center",onChange:function(e){return l({horizontalAlignMobile:e})},options:[{value:"",label:Object(E.__)("Default","getwid")},{value:"flex-start",label:Object(E.__)("Left","getwid")},{value:"center",label:Object(E.__)("Center","getwid")},{value:"flex-end",label:Object(E.__)("Right","getwid")}]}))}})))}},{key:"renderSliderSettings",value:function(){var e=this.props.attributes,t=e.sliderImages,n=e.sliderAnimationEffect,r=e.sliderAnimationDuration,o=e.sliderAnimationSpeed,i=this.props.setAttributes,a=t.map(function(e){return wp.element.createElement("img",{src:e.url,alt:e.alt})});return wp.element.createElement(L,null,(!t||0==t.length)&&wp.element.createElement(H,{icon:"format-gallery",labels:{title:Object(E.__)("Slider","getwid"),instructions:Object(E.__)("Drag images, upload new ones or select files from your library.","getwid")},onSelect:this.onSelectSliderImages,accept:"image/*",allowedTypes:ue,multiple:!0}),t&&!!t.length&&wp.element.createElement(L,null,wp.element.createElement(F,{onSelect:this.onSelectSliderImages,multiple:!0,gallery:!0,allowedTypes:ue,value:void 0!==t?t.map(function(e){return e.id}):[],render:function(e){var n=e.open;return wp.element.createElement(q,null,!!t&&wp.element.createElement("div",{className:"getwid-slider-image-wrapper"},a),wp.element.createElement(te,null,wp.element.createElement(Q,{isPrimary:!0,onClick:n},Object(E.__)("Select Images","getwid")),wp.element.createElement(Q,{onClick:function(){i({sliderImages:[]})},isDefault:!0},Object(E.__)("Remove","getwid"))))}}),wp.element.createElement(X,{label:Object(E.__)("Animation Effect","getwid"),selected:void 0!==n?n:"",options:[{value:"",label:Object(E.__)("Slide","getwid")},{value:"fade",label:Object(E.__)("Fade","getwid")}],onChange:function(e){return i({sliderAnimationEffect:e})}}),wp.element.createElement($,{label:Object(E.__)("Animation Duration","getwid"),value:r,type:"number",min:0,onChange:function(e){return i({sliderAnimationDuration:e})}}),wp.element.createElement($,{label:Object(E.__)("Animation Speed","getwid"),type:"number",value:void 0!==o?o:"",min:0,onChange:function(e){return i({sliderAnimationSpeed:e})}})))}},{key:"renderVideoSettings",value:function(){var e=this.props.attributes,t=e.backgroundVideoType,n=e.youTubeVideoScale,r=e.youTubeVideoUrl,o=e.youTubeVideoMute,i=e.youTubeVideoLoop,a=e.youTubeVideoAutoplay,l=e.backgroundVideoUrl,c=e.backgroundVideoMute,s=e.backgroundVideoLoop,u=e.backgroundVideoAutoplay,p=e.backgroundVideoPoster,d=e.backgroundVideoControlsPosition,m=this.props.setAttributes;return wp.element.createElement(L,null,wp.element.createElement(J,{label:Object(E.__)("Source","getwid"),value:t,onChange:function(e){return m({backgroundVideoType:e})},options:[{value:"youtube",label:Object(E.__)("YouTube","getwid")},{value:"self",label:Object(E.__)("Media Library","getwid")}]}),"youtube"==t&&wp.element.createElement(L,null,wp.element.createElement($,{label:Object(E.__)("YouTube URL","getwid"),placeholder:"https://youtube.com/watch?v=M7lc1UVf-VE",value:r,onChange:function(e){return m({youTubeVideoUrl:e})}})),"self"==t&&wp.element.createElement(L,null,l&&wp.element.createElement(L,null,wp.element.createElement("video",{controls:!0},wp.element.createElement("source",{src:l.url,type:"video/mp4"}),wp.element.createElement("span",null,Object(E.__)("Your browser does not support the video tag.","getwid")))),wp.element.createElement(F,{onSelect:function(e){m({backgroundVideoUrl:void 0}),m({backgroundVideoUrl:void 0!==e?Object(C.pick)(e,["alt","id","url"]):{}})},value:void 0!==l?l.id:"",allowedTypes:de,render:function(e){var t=e.open;return wp.element.createElement(q,null,wp.element.createElement(Q,{isPrimary:!0,onClick:t},Object(E.__)("Select Video","getwid")),!!l&&wp.element.createElement(Q,{onClick:function(){m({backgroundVideoUrl:void 0})},isDefault:!0},Object(E.__)("Remove","getwid")))}})),r&&"youtube"==t&&wp.element.createElement(L,null,wp.element.createElement(J,{label:Object(E.__)("Video Scale","getwid"),value:n,onChange:function(e){return m({youTubeVideoScale:e})},options:[{value:"",label:Object(E.__)("Default","getwid")},{value:"low",label:Object(E.__)("Low","getwid")},{value:"medium",label:Object(E.__)("Medium","getwid")},{value:"high",label:Object(E.__)("High","getwid")},{value:"huge",label:Object(E.__)("Huge","getwid")}]}),wp.element.createElement(Z,{label:Object(E.__)("Mute","getwid"),help:Object(E.__)("Enable this option to increase the chances for autoplay to succeed.","getwid"),checked:"true"==o,onChange:function(e){m({youTubeVideoMute:e?"true":"false"})}}),wp.element.createElement(Z,{label:Object(E.__)("Repeat","getwid"),checked:"true"==i,onChange:function(e){m({youTubeVideoLoop:e?"true":"false"})}}),wp.element.createElement(Z,{label:Object(E.__)("Autoplay","getwid"),checked:"true"==a,onChange:function(e){m({youTubeVideoAutoplay:e?"true":"false"})}})),l&&"self"==t&&wp.element.createElement(L,null,wp.element.createElement(Z,{label:Object(E.__)("Mute","getwid"),help:Object(E.__)("Enable this option to increase the chances for autoplay to succeed.","getwid"),checked:void 0===c||c,onChange:function(e){return m({backgroundVideoMute:e})}}),wp.element.createElement(Z,{label:Object(E.__)("Repeat","getwid"),checked:void 0!==s&&s,onChange:function(e){return m({backgroundVideoLoop:e})}}),wp.element.createElement(Z,{label:Object(E.__)("Autoplay","getwid"),checked:void 0!==u&&u,onChange:function(e){return m({backgroundVideoAutoplay:e})}})),(l||r)&&wp.element.createElement(L,null,wp.element.createElement(J,{label:Object(E.__)("Controls Position","getwid"),value:d,onChange:function(e){return m({backgroundVideoControlsPosition:e})},options:[{value:"none",label:Object(E.__)("None","getwid")},{value:"top-left",label:Object(E.__)("Top Left","getwid")},{value:"top-right",label:Object(E.__)("Top Right","getwid")},{value:"bottom-left",label:Object(E.__)("Bottom Left","getwid")},{value:"bottom-right",label:Object(E.__)("Bottom Right","getwid")},{value:"center-center",label:Object(E.__)("Center Center","getwid")}]})),l&&wp.element.createElement(L,null,wp.element.createElement(F,{label:Object(E.__)("Poster Image","getwid"),onSelect:function(e){return m({backgroundVideoPoster:e.url})},allowedTypes:pe,value:void 0!==p?p:"",render:function(e){var t=e.open;return wp.element.createElement(q,null,wp.element.createElement(Q,{isDefault:!0,onClick:t},!p&&Object(E.__)("Select Poster","getwid"),!!p&&Object(E.__)("Replace Poster","getwid")))}}),!!p&&wp.element.createElement(q,null,wp.element.createElement(Q,{onClick:function(){m({backgroundVideoPoster:void 0})},isLink:!0,isDestructive:!0},Object(E.__)("Remove Poster","getwid")))))}},{key:"renderForegroundSettings",value:function(){var e=this.props.attributes,t=e.foregroundOpacity,n=e.foregroundFilter,r=this.props.setAttributes;return wp.element.createElement(L,null,wp.element.createElement(Y,{label:Object(E.__)("Overlay Layer Opacity","getwid"),value:void 0!==t?t:"",onChange:function(e){return r({foregroundOpacity:e})},min:0,max:100,step:1,allowReset:!0}),wp.element.createElement(J,{label:Object(E.__)("Blend Mode","getwid"),value:void 0!==n?n:"",onChange:function(e){return r({foregroundFilter:e})},options:[{value:"",label:Object(E.__)("None","getwid")},{value:"normal",label:Object(E.__)("Normal","getwid")},{value:"multiply",label:Object(E.__)("Multiply","getwid")},{value:"screen",label:Object(E.__)("Screen","getwid")},{value:"overlay",label:Object(E.__)("Overlay","getwid")},{value:"darken",label:Object(E.__)("Darken","getwid")},{value:"lighten",label:Object(E.__)("Lighten","getwid")},{value:"color-dodge",label:Object(E.__)("Color Dodge","getwid")},{value:"color-burn",label:Object(E.__)("Color Burn","getwid")},{value:"hard-light",label:Object(E.__)("Hard Light","getwid")},{value:"soft-light",label:Object(E.__)("Soft Light","getwid")},{value:"difference",label:Object(E.__)("Difference","getwid")},{value:"exclusion",label:Object(E.__)("Exclusion","getwid")},{value:"hue",label:Object(E.__)("Hue","getwid")},{value:"saturation",label:Object(E.__)("Saturation","getwid")},{value:"color",label:Object(E.__)("Color","getwid")},{value:"luminosity",label:Object(E.__)("Luminosity","getwid")}]}))}},{key:"renderForegroundColor",value:function(){var e=this.props.attributes.foregroundColor,t=this.props.setAttributes,n=Object(C.get)(B("core/editor").getEditorSettings(),["colors"],[]);return wp.element.createElement(L,null,wp.element.createElement(q,{label:Object(E.__)("Overlay Color","getwid"),className:"components-getwid-color-palette-control"},e&&wp.element.createElement(ie,{colorValue:e}),wp.element.createElement(oe,{colors:n,value:e,onChange:function(e){t({foregroundColor:e})}})))}},{key:"renderForegroundImage",value:function(){var e=this.props.attributes,t=e.foregroundImage,n=e.foregroundCustomImagePosition,r=e.foregroundImagePosition,o=e.foregroundImageAttachment,i=e.foregroundImageRepeat,a=e.foregroundImageSize,l=this.props.setAttributes,c=t?t.url:void 0,s=t?t.id:void 0,u=function(){l({foregroundImage:void 0,foregroundCustomImagePosition:void 0,foregroundImagePosition:void 0,foregroundImageAttachment:void 0,foregroundImageRepeat:void 0,foregroundImageSize:void 0})};return wp.element.createElement(L,null,wp.element.createElement(N.e,{label:Object(E.__)("Overlay Image","getwid"),url:c,id:s,onSelectMedia:function(e){return l({foregroundImage:void 0!==e?Object(C.pick)(e,["alt","id","url"]):{}})},onRemoveMedia:u}),t&&wp.element.createElement(L,null,wp.element.createElement(J,{label:Object(E.__)("Position","getwid"),value:void 0!==r?r:"",onChange:function(e){return l({foregroundImagePosition:e})},options:[{value:"",label:Object(E.__)("Default","getwid")},{value:"custom",label:Object(E.__)("Custom","getwid")},{value:"top left",label:Object(E.__)("Top Left","getwid")},{value:"top center",label:Object(E.__)("Top Center","getwid")},{value:"top right",label:Object(E.__)("Top Right","getwid")},{value:"center left",label:Object(E.__)("Center Left ","getwid")},{value:"center center",label:Object(E.__)("Center Center","getwid")},{value:"center right",label:Object(E.__)("Center Right","getwid")},{value:"bottom left",label:Object(E.__)("Bottom Left","getwid")},{value:"bottom center",label:Object(E.__)("Bottom Center","getwid")},{value:"bottom right",label:Object(E.__)("Bottom Right","getwid")}]}),"custom"==r&&wp.element.createElement(U,{url:c,value:n,onChange:function(e){l({foregroundCustomImagePosition:e})}}),wp.element.createElement(J,{label:Object(E.__)("Attachment","getwid"),value:void 0!==o?o:"",onChange:function(e){return l({foregroundImageAttachment:e})},options:[{value:"",label:Object(E.__)("Default","getwid")},{value:"scroll",label:Object(E.__)("Scroll","getwid")},{value:"fixed",label:Object(E.__)("Fixed","getwid")}]}),wp.element.createElement(J,{label:Object(E.__)("Repeat","getwid"),value:void 0!==i?i:"",onChange:function(e){return l({foregroundImageRepeat:e})},options:[{value:"",label:Object(E.__)("Default","getwid")},{value:"no-repeat",label:Object(E.__)("No Repeat","getwid")},{value:"repeat",label:Object(E.__)("Repeat","getwid")},{value:"repeat-x",label:Object(E.__)("Repeat X","getwid")},{value:"repeat-y",label:Object(E.__)("Repeat Y","getwid")},{value:"space",label:Object(E.__)("Space","getwid")},{value:"round",label:Object(E.__)("Round","getwid")}]}),wp.element.createElement(J,{label:Object(E.__)("Size","getwid"),value:void 0!==a?a:"",onChange:function(e){return l({foregroundImageSize:e})},options:[{value:"",label:Object(E.__)("Cover","getwid")},{value:"contain",label:Object(E.__)("Contain","getwid")},{value:"auto",label:Object(E.__)("Auto","getwid")}]})))}},{key:"renderAnimationSettings",value:function(){var e=this.props.attributes,t=e.entranceAnimation,n=e.entranceAnimationDuration,r=e.entranceAnimationDelay,o=this.props.setAttributes,i=function(){o({entranceAnimation:void 0,entranceAnimationDelay:"200ms",entranceAnimationDuration:"1500ms"})};return wp.element.createElement(L,null,wp.element.createElement(K,{title:Object(E.__)("Entrance Animation","getwid"),initialOpen:!0},wp.element.createElement(T.a,{label:Object(E.__)("Animation Effect","getwid"),allowAnimation:["Entrance","Seeker"],value:void 0!==t?t:"",onChange:function(e){return o({entranceAnimation:e})}}),wp.element.createElement(J,{label:Object(E.__)("Duration","getwid"),value:void 0!==n?n:"",onChange:function(e){return o({entranceAnimationDuration:e})},options:[{value:"2000ms",label:Object(E.__)("Slow","getwid")},{value:"1500ms",label:Object(E.__)("Normal","getwid")},{value:"800ms",label:Object(E.__)("Fast","getwid")},{value:"400ms",label:Object(E.__)("Very Fast","getwid")}]}),wp.element.createElement($,{label:Object(E.__)("Delay, ms","getwid"),value:void 0!==r?r.replace("ms",""):"",type:"number",min:0,placeholder:200,onChange:function(e){e=parseInt(e),e=isNaN(e)?void 0:"".concat(e,"ms"),o({entranceAnimationDelay:e})}}),wp.element.createElement(q,null,wp.element.createElement(Q,{isLink:!0,onClick:i,disabled:!this.hasAnimation()},Object(E.__)("Reset","getwid")))))}},{key:"onSelectSliderImages",value:function(e){this.props.setAttributes({sliderImages:void 0!==e?e.map(function(e){return Object(C.pick)(e,["alt","id","url"])}):[]})}}]),t}(I);t.a=se([D(function(e,t){var n=e("core/editor"),r=n.getEditorSettings,o=e("core/block-editor").getSettings();return{colorGradientSettings:Object(C.pick)(o,me),getEditorSettings:r}}),G("backgroundColor")])(fe)},function(e,t){function n(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}e.exports=n},function(e,t){function n(){throw new TypeError("Invalid attempt to spread non-iterable instance")}e.exports=n},function(e,t){},function(e,t,n){"use strict";function r(e){var t=e.state,n=e.label,r=e.stateName,o=e.onChangeBackgroundType,i=e.types,c=void 0===i?["color","image","gradient","slider","video"]:i;return wp.element.createElement(m,null,wp.element.createElement(u,{label:n,className:"components-getwid-background-types-control"},wp.element.createElement(p,{className:"components-getwid-background-types-group"},c.includes("color")&&wp.element.createElement(m,null,wp.element.createElement(d,{icon:wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",width:"20",height:"20",viewBox:"0 0 20 20"},wp.element.createElement("path",{d:"M3,16h14c0.55,0,1,0.45,1,1v0c0,0.55-0.45,1-1,1H3c-0.55,0-1-0.45-1-1v0C2,16.45,2.45,16,3,16z"}),wp.element.createElement("path",{d:"M9.05,13.95L13.3,9.7c0.39-0.39,0.39-1.02,0-1.41L9.05,4.05L8.34,3.34L7.63,2.63c-0.39-0.39-1.02-0.39-1.41,0L6.22,2.64\tc-0.39,0.39-0.39,1.02,0,1.41l0.7,0.7L3.39,8.3C3,8.69,3,9.31,3.39,9.7l4.24,4.25C8.02,14.34,8.66,14.34,9.05,13.95z M9.04,6.87\tL11.17,9H5.51l2.13-2.13C8.02,6.49,8.66,6.49,9.04,6.87z"}),wp.element.createElement("path",{d:"M13,13c0,0.55,0.45,1,1,1s1-0.45,1-1s-1-3-1-3S13,12.45,13,13z"})),label:Object(l.__)("Color","getwid"),className:a()("wp-block-getwid-background-types-icon","is-button",{"is-active":"color"===t}),onClick:function(){o(r,"color")}})),c.includes("image")&&wp.element.createElement(d,{icon:"format-image",label:Object(l.__)("Image","getwid"),className:a()("wp-block-getwid-background-types-icon","is-button",{"is-active":"image"===t}),onClick:function(){o(r,"image")}}),c.includes("gradient")&&wp.element.createElement(d,{icon:wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",width:"20",height:"20",viewBox:"0 0 20 20"},wp.element.createElement("path",{d:"M2,3v14c0,0.55,0.45,1,1,1h14c0.55,0,1-0.45,1-1V3c0-0.55-0.45-1-1-1H3C2.45,2,2,2.45,2,3z M15,16H4L16,4v11 C16,15.55,15.55,16,15,16z"})),label:Object(l.__)("Gradient","getwid"),className:a()("wp-block-getwid-background-types-icon","is-button",{"is-active":"gradient"===t}),onClick:function(){o(r,"gradient")}}),c.includes("slider")&&wp.element.createElement(d,{icon:"images-alt2",label:Object(l.__)("Slider","getwid"),className:a()("wp-block-getwid-background-types-icon","is-button",{"is-active":"slider"===t}),onClick:function(){o(r,"slider")}}),c.includes("video")&&wp.element.createElement(d,{icon:"video-alt3",label:Object(l.__)("Video","getwid"),className:a()("wp-block-getwid-background-types-icon","is-button",{"is-active":"video"===t}),onClick:function(){o(r,"video")}}))))}t.a=r;var o=(n(0),n(126)),i=(n.n(o),n(8)),a=n.n(i),l=n(1),c=(n.n(l),window),s=(c.jQuery,wp.components),u=s.BaseControl,p=s.ButtonGroup,d=s.IconButton,m=wp.element.Fragment},function(e,t){},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(n,!0).forEach(function(t){l()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function i(e){var t,n=e.label,r=e.value,i=e.onChange,a=function(e){var t=e.firstColor,n=e.firstLocation,r=e.secondColor,o=e.secondLocation,a=e.type,l=e.angle;i(t,n,r,o,a,l)};t="linear"===r.type?"".concat(r.angle,"deg"):"at ".concat(r.position);var l="".concat(r.type,"-gradient( ").concat(t,", ").concat(r.firstColor||"rgba( 0, 0, 0, 0 )"," ").concat(r.firstLocation,"%, ").concat(r.secondColor||"rgba( 0, 0, 0, 0 )"," ").concat(r.secondLocation,"% )"),d=r.firstColor&&r.secondColor;return wp.element.createElement("div",{className:"".concat(y)},wp.element.createElement("div",{className:"components-base-control__field"},n&&wp.element.createElement("div",{className:"components-base-control__title"},wp.element.createElement("label",{className:"components-base-control__label"},n,d&&wp.element.createElement(b,{colorValue:l}))),wp.element.createElement("div",{className:"".concat(y,"-presets")},s.a.map(function(e){return wp.element.createElement(u.a,{title:e.title,className:y,firstColor:e.firstColor,secondColor:e.secondColor,isSelected:e.firstColor===r.firstColor&&e.secondColor===r.secondColor,onChange:i})}),wp.element.createElement("div",{className:"".concat(y,"-custom-wrapper")},wp.element.createElement(f,{className:"".concat(y,"-dropdown-link-action"),contentClassName:"".concat(y,"-dropdown-content"),renderToggle:function(e){var t=(e.isOpen,e.onToggle);return wp.element.createElement(w,{onClick:t,isLink:!0},Object(c.__)("Custom Gradient","getwid"))},renderContent:function(){return wp.element.createElement(m,null,wp.element.createElement(v,{label:Object(c.__)("Type","getwid"),value:r.type?r.type:"",onChange:function(e){return a(o(o({},r),{},{type:e}))},options:[{value:"",label:Object(c.__)("None","getwid")},{value:"linear",label:Object(c.__)("Linear","getwid")},{value:"radial",label:Object(c.__)("Radial","getwid")}]}),wp.element.createElement(p.a,{colorSettings:[{title:Object(c.__)("First Color","getwid"),colors:{customColor:r.firstColor},changeColor:function(e){return a(o(o({},r),{},{firstColor:e,type:r.type?r.type:"linear"}))}}]}),wp.element.createElement(h,{label:Object(c.__)("First Color Location","getwid"),value:void 0!=r.firstLocation?r.firstLocation:"",onChange:function(e){return a(o(o({},r),{},{firstLocation:e}))},placeholder:0,min:0,max:100,step:1}),wp.element.createElement(p.a,{colorSettings:[{title:Object(c.__)("Second Color","getwid"),colors:{customColor:r.secondColor},changeColor:function(e){return a(o(o({},r),{},{secondColor:e,type:r.type?r.type:"linear"}))}}]}),wp.element.createElement(h,{label:Object(c.__)("Second Color Location","getwid"),value:void 0!=r.secondLocation?r.secondLocation:"",onChange:function(e){return a(o(o({},r),{},{secondLocation:e}))},placeholder:100,min:0,max:100,step:1}),"linear"===r.type&&wp.element.createElement(h,{label:Object(c.__)("Angle","getwid"),value:void 0!=r.angle?r.angle:"",onChange:function(e){return a(o(o({},r),{},{angle:e}))},placeholder:180,min:0,max:360,step:1}))}}),wp.element.createElement(w,{className:"".concat(y,"-clear"),type:"button",isSmall:!0,isDefault:!0,onClick:function(){return i(void 0,0,void 0,100,"",90)}},Object(c.__)("Reset","getwid"))))))}t.a=i;var a=n(7),l=n.n(a),c=(n(0),n(1)),s=(n.n(c),n(128)),u=n(129),p=n(16),d=n(130),m=(n.n(d),wp.element.Fragment),g=wp.components,f=g.Dropdown,b=g.ColorIndicator,w=g.Button,h=g.RangeControl,v=g.SelectControl,y="components-getwid-gradient-palette-control"},function(e,t,n){"use strict";var r=n(1),o=(n.n(r),[{title:Object(r.__)("Vivid cyan blue to vivid purple"),firstColor:"#0693e3",secondColor:"#9b51e0"},{title:Object(r.__)("Light green cyan to vivid green cyan"),firstColor:"#67B26F",secondColor:"#4ca2cd"},{title:Object(r.__)("Luminous vivid amber to luminous vivid orange"),firstColor:"#fcb900",secondColor:"#ff6900"},{title:Object(r.__)("Luminous vivid orange to vivid red"),firstColor:"#ff6900",secondColor:"#cf2e2e"},{title:Object(r.__)("Very light gray to cyan bluish gray"),firstColor:"#eeeeee",secondColor:"#a9b8c3"},{title:Object(r.__)("Blush light purple"),firstColor:"#ffceec",secondColor:"#9896f0"},{title:Object(r.__)("Electric grass"),firstColor:"#caf880",secondColor:"#71ce7e"},{title:Object(r.__)("Midnight"),firstColor:"#020381",secondColor:"#2874fc"}]);t.a=o},function(e,t,n){"use strict";var r=(n(0),n(8)),o=n.n(r),i=wp.components,a=i.Tooltip,l=i.Dashicon,c=function(e){var t=e.title,n=e.className,r=e.firstColor,i=e.secondColor,c=e.isSelected,s=e.onChange,u=wp.element.createElement("button",{type:"button","aria-pressed":c,className:o()("".concat(n,"-option"),{"is-active":c}),style:{background:"linear-gradient(90deg, ".concat(r," 0%, ").concat(i," 100%)")},onClick:function(){return s(r,0,i,100,"linear",90,"center center")}});return wp.element.createElement("div",{className:"".concat(n,"-option-wrapper")},t?wp.element.createElement(a,{text:t},u):u,c&&wp.element.createElement(l,{icon:"saved"}))};t.a=c},function(e,t){},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(n,!0).forEach(function(t){s()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function i(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=v()(e);if(t()){var o=v()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return w()(this,n)}}var a=n(9),l=n.n(a),c=n(7),s=n.n(c),u=n(2),p=n.n(u),d=n(4),m=n.n(d),g=n(5),f=n.n(g),b=n(6),w=n.n(b),h=n(3),v=n.n(h),y=(n(0),n(26)),_=n(25),k=n(29),O=n(1),E=(n.n(O),n(8)),C=n.n(E),j=wp.element.Component,S=wp.blockEditor||wp.editor,x=S.InnerBlocks,P=S.getColorClassName,T="wp-block-getwid-section",R=function(e){function t(){return p()(this,t),n.apply(this,arguments)}f()(t,e);var n=i(t);return m()(t,[{key:"render",value:function(){var e,t,n=this.props,r=n.attributes,i=r.align,a=r.paddingTopValue,c=r.paddingBottomValue,u=r.paddingLeftValue,p=r.paddingRightValue,d=r.marginTopValue,m=r.marginBottomValue,g=r.marginLeftValue,f=r.marginRightValue,b=r.backgroundImage,w=r.sliderImages,h=r.backgroundVideoType,v=r.youTubeVideoScale,O=r.youTubeVideoUrl,E=r.youTubeVideoMute,j=r.youTubeVideoLoop,S=r.youTubeVideoAutoplay,R=r.backgroundVideoUrl,N=r.backgroundVideoControlsPosition,A=r.foregroundOpacity,B=r.foregroundColor,D=r.foregroundFilter,M=r.dividersBringTop,I=r.contentMaxWidth,L=r.contentMaxWidthPreset,z=r.minHeight,V=r.gapSize,F=r.entranceAnimation,H=r.entranceAnimationDuration,G=r.entranceAnimationDelay,W=r.backgroundColor,U=r.customBackgroundColor,q=r.resetMinHeightTablet,Q=r.resetMinHeightMobile,K=r.verticalAlign,Y=r.verticalAlignTablet,J=r.verticalAlignMobile,$=r.horizontalAlign,Z=r.horizontalAlignTablet,X=r.horizontalAlignMobile,ee=r.paddingTop,te=r.paddingRight,ne=r.paddingBottom,re=r.paddingLeft,oe=r.paddingTopTablet,ie=r.paddingRightTablet,ae=r.paddingBottomTablet,le=r.paddingLeftTablet,ce=r.paddingTopMobile,se=r.paddingRightMobile,ue=r.paddingBottomMobile,pe=r.paddingLeftMobile,de=r.marginTop,me=r.marginRight,ge=r.marginBottom,fe=r.marginLeft,be=r.marginTopTablet,we=r.marginRightTablet,he=r.marginBottomTablet,ve=r.marginLeftTablet,ye=r.marginTopMobile,_e=r.marginRightMobile,ke=r.marginBottomMobile,Oe=r.marginLeftMobile,Ee=r.anchor,Ce=n.className,je=n.prepareMultiGradientStyle,Se=n.prepareBackgroundImageStyles,xe=o(o({},"custom"===de?{marginTop:d}:[]),"custom"===ge?{marginBottom:m}:[]),Pe=o(o(o(o(o(o({minHeight:z},"custom"===fe?{marginLeft:g}:[]),"custom"===me?{marginRight:f}:[]),"custom"===ee?{paddingTop:a}:[]),"custom"===ne?{paddingBottom:c}:[]),"custom"===re?{paddingLeft:u}:[]),"custom"===te?{paddingRight:p}:[]),Te=C()("".concat(T,"__wrapper"),(e={},s()(e,"getwid-padding-top-".concat(ee),"custom"!==ee&&""!==ee),s()(e,"getwid-padding-bottom-".concat(ne),"custom"!==ne&&""!==ne),s()(e,"getwid-padding-left-".concat(re),"custom"!==re&&""!==re),s()(e,"getwid-padding-right-".concat(te),"custom"!==te&&""!==te),s()(e,"getwid-padding-tablet-top-".concat(oe),""!==oe),s()(e,"getwid-padding-tablet-bottom-".concat(ae),""!==ae),s()(e,"getwid-padding-tablet-left-".concat(le),""!==le),s()(e,"getwid-padding-tablet-right-".concat(ie),""!==ie),s()(e,"getwid-padding-mobile-top-".concat(ce),""!==ce),s()(e,"getwid-padding-mobile-bottom-".concat(ue),""!==ue),s()(e,"getwid-padding-mobile-left-".concat(pe),""!==pe),s()(e,"getwid-padding-mobile-right-".concat(se),""!==se),s()(e,"getwid-margin-left-".concat(fe),"custom"!==fe&&""!==fe),s()(e,"getwid-margin-right-".concat(me),"custom"!==me&&""!==me),s()(e,"getwid-margin-tablet-left-".concat(ve),""!==ve),s()(e,"getwid-margin-tablet-right-".concat(we),""!==we),s()(e,"getwid-margin-mobile-left-".concat(Oe),""!==Oe),s()(e,"getwid-margin-mobile-right-".concat(_e),""!==_e),s()(e,"getwid-align-items-".concat(K),"center"!==K),s()(e,"getwid-align-items-tablet-".concat(Y),""!==Y),s()(e,"getwid-align-items-mobile-".concat(J),""!==J),s()(e,"getwid-justify-content-".concat($),"center"!==$),s()(e,"getwid-justify-content-tablet-".concat(Z),""!==Z),s()(e,"getwid-justify-content-mobile-".concat(X),""!==X),s()(e,"getwid-reset-min-height-tablet",!1!==q),s()(e,"getwid-reset-min-height-mobile",!1!==Q),e)),Re=this.props.attributes,Ne=Re.backgroundGradient,Ae=Re.foregroundGradient;Ne=je("background",this.props),Ae=je("foreground",this.props);var Be=o({backgroundColor:this.props.attributes.backgroundColor?void 0:this.props.attributes.customBackgroundColor,backgroundImage:Ne},Se("background",this.props)),De=P("background-color",W),Me=C()("".concat(T,"__background"),s()({"has-background":W||U},De,De)),Ie=o(o({opacity:void 0!==A?A/100:void 0,backgroundColor:B,backgroundImage:Ae},Se("foreground",this.props)),{},{mixBlendMode:D}),Le={maxWidth:I&&"custom"===L?"".concat(I,"px"):void 0},ze=F?{"data-wow-duration":void 0!==H?H:"2000ms","data-wow-delay":void 0!==G?G:"500ms"}:{},Ve=C()(Ce,i?"align".concat(i):null,(t={},s()(t,"has-inner-blocks-gap-".concat(V),void 0!==V&&""!==V),s()(t,"getwid-anim ".concat(F),!!F),s()(t,"getwid-margin-top-".concat(de),"custom"!==de&&""!==de),s()(t,"getwid-margin-bottom-".concat(ge),"custom"!==ge&&""!==ge),s()(t,"getwid-margin-tablet-top-".concat(be),"custom"!==be&&""!==be),s()(t,"getwid-margin-tablet-bottom-".concat(he),"custom"!==he&&""!==he),s()(t,"getwid-margin-mobile-top-".concat(ye),"custom"!==ye&&""!==ye),s()(t,"getwid-margin-mobile-bottom-".concat(ke),"custom"!==ke&&""!==ke),s()(t,"getwid-section-content-full-width","full"===L),s()(t,"getwid-section-content-custom-width","custom"===L),t)),Fe=Ee||void 0,He={"youtube-video-url":O||"","youtube-video-muted":E,"youtube-video-loop":j,"youtube-video-autoplay":S};return wp.element.createElement("div",l()({id:Fe,className:Ve,style:xe},ze),wp.element.createElement("div",{className:Te,style:Pe},wp.element.createElement(_.a,o(o({},this.props),{},{baseClass:T})),(!!R||!!O)&&"none"!==N&&wp.element.createElement("div",{className:C()("getwid-background-video-controls",s()({},"is-position-".concat(N),"top-right"!==N))},wp.element.createElement("button",{className:"getwid-background-video-play"},wp.element.createElement("i",{className:"getwid-icon getwid-icon-pause"})),wp.element.createElement("button",{className:"getwid-background-video-mute"},wp.element.createElement("i",{className:"getwid-icon getwid-icon-mute"}))),wp.element.createElement("div",{className:C()("".concat(T,"__inner-wrapper"),s()({},"has-dividers-over",M)),style:Le},wp.element.createElement("div",{className:"".concat(T,"__background-holder")},wp.element.createElement("div",{className:Me,style:Be},!!b&&wp.element.createElement("div",{className:"".concat(T,"__background-image-wrapper")},wp.element.createElement("img",{className:"".concat(T,"__background-image"),src:b.url,alt:b.alt})),w&&!!w.length&&wp.element.createElement("div",{className:"".concat(T,"__background-slider-wrapper")},wp.element.createElement(y.b,o(o({},this.props),{},{baseClass:T}))),(!!R||!!O)&&wp.element.createElement("div",{className:"".concat(T,"__background-video-wrapper")},O&&""!=O&&"youtube"==h&&wp.element.createElement("div",l()({className:C()("".concat(T,"__background-video"),"source-youtube",s()({},"scale-youtube-".concat(v),!!v))},He),wp.element.createElement("div",{className:"".concat(T,"__background-video-youtube")})),!!R&&"self"==h&&wp.element.createElement(k.a,l()({},o(o({},this.props),{},{baseClass:T}),{videoMute:this.props.attributes.backgroundVideoMute,videoAutoplay:this.props.attributes.backgroundVideoAutoplay})))),wp.element.createElement("div",{className:"".concat(T,"__foreground"),style:Ie})),wp.element.createElement("div",{className:"".concat(T,"__content")},wp.element.createElement("div",{className:"".concat(T,"__inner-content")},wp.element.createElement(x.Content,null))))))}}]),t}(j);t.a=R},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(n,!0).forEach(function(t){s()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function i(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=v()(e);if(t()){var o=v()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return w()(this,n)}}var a=n(9),l=n.n(a),c=n(7),s=n.n(c),u=n(2),p=n.n(u),d=n(4),m=n.n(d),g=n(5),f=n.n(g),b=n(6),w=n.n(b),h=n(3),v=n.n(h),y=(n(0),n(1)),_=(n.n(y),n(8)),k=n.n(_),O=n(26),E=n(25),C=n(29),j=n(21),S=wp.element.Component,x=wp.blockEditor||wp.editor,P=x.InnerBlocks,T=x.getColorClassName,R=j.a.prepareGradientStyle,N=j.a.prepareBackgroundImageStyles,A="wp-block-getwid-section",B=function(e){function t(){return p()(this,t),n.apply(this,arguments)}f()(t,e);var n=i(t);return m()(t,[{key:"render",value:function(){var e,t,n=this.props.attributes,r=n.paddingTopValue,i=n.paddingBottomValue,a=n.paddingLeftValue,c=n.paddingRightValue,u=n.marginTopValue,p=n.marginBottomValue,d=n.marginLeftValue,m=n.marginRightValue,g=n.backgroundImage,f=n.sliderImages,b=n.backgroundVideoUrl,w=n.backgroundVideoControlsPosition,h=n.foregroundOpacity,v=n.foregroundColor,y=n.foregroundFilter,_=n.dividersBringTop,j=n.contentMaxWidth,S=n.contentMaxWidthPreset,x=n.minHeight,B=n.gapSize,D=n.entranceAnimation,M=n.entranceAnimationDuration,I=n.entranceAnimationDelay,L=n.backgroundColor,z=n.customBackgroundColor,V=n.resetMinHeightTablet,F=n.resetMinHeightMobile,H=n.verticalAlign,G=n.verticalAlignTablet,W=n.verticalAlignMobile,U=n.horizontalAlign,q=n.horizontalAlignTablet,Q=n.horizontalAlignMobile,K=n.paddingTop,Y=n.paddingRight,J=n.paddingBottom,$=n.paddingLeft,Z=n.paddingTopTablet,X=n.paddingRightTablet,ee=n.paddingBottomTablet,te=n.paddingLeftTablet,ne=n.paddingTopMobile,re=n.paddingRightMobile,oe=n.paddingBottomMobile,ie=n.paddingLeftMobile,ae=n.marginTop,le=n.marginRight,ce=n.marginBottom,se=n.marginLeft,ue=n.marginTopTablet,pe=n.marginRightTablet,de=n.marginBottomTablet,me=n.marginLeftTablet,ge=n.marginTopMobile,fe=n.marginRightMobile,be=n.marginBottomMobile,we=n.marginLeftMobile,he=n.className,ve=n.anchor,ye=o(o({},"custom"===ae?{marginTop:u}:[]),"custom"===ce?{marginBottom:p}:[]),_e=o(o(o(o(o(o({minHeight:x},"custom"===se?{marginLeft:d}:[]),"custom"===le?{marginRight:m}:[]),"custom"===K?{paddingTop:r}:[]),"custom"===J?{paddingBottom:i}:[]),"custom"===$?{paddingLeft:a}:[]),"custom"===Y?{paddingRight:c}:[]),ke=k()("".concat(A,"__wrapper"),(e={},s()(e,"getwid-padding-top-".concat(K),"custom"!==K&&""!==K),s()(e,"getwid-padding-bottom-".concat(J),"custom"!==J&&""!==J),s()(e,"getwid-padding-left-".concat($),"custom"!==$&&""!==$),s()(e,"getwid-padding-right-".concat(Y),"custom"!==Y&&""!==Y),s()(e,"getwid-padding-tablet-top-".concat(Z),""!==Z),s()(e,"getwid-padding-tablet-bottom-".concat(ee),""!==ee),s()(e,"getwid-padding-tablet-left-".concat(te),""!==te),s()(e,"getwid-padding-tablet-right-".concat(X),""!==X),s()(e,"getwid-padding-mobile-top-".concat(ne),""!==ne),s()(e,"getwid-padding-mobile-bottom-".concat(oe),""!==oe),s()(e,"getwid-padding-mobile-left-".concat(ie),""!==ie),s()(e,"getwid-padding-mobile-right-".concat(re),""!==re),s()(e,"getwid-margin-left-".concat(se),"custom"!==se&&""!==se),s()(e,"getwid-margin-right-".concat(le),"custom"!==le&&""!==le),s()(e,"getwid-margin-tablet-left-".concat(me),""!==me),s()(e,"getwid-margin-tablet-right-".concat(pe),""!==pe),s()(e,"getwid-margin-mobile-left-".concat(we),""!==we),s()(e,"getwid-margin-mobile-right-".concat(fe),""!==fe),s()(e,"getwid-align-items-".concat(H),"center"!==H),s()(e,"getwid-align-items-tablet-".concat(G),""!==G),s()(e,"getwid-align-items-mobile-".concat(W),""!==W),s()(e,"getwid-justify-content-".concat(U),"center"!==U),s()(e,"getwid-justify-content-tablet-".concat(q),""!==q),s()(e,"getwid-justify-content-mobile-".concat(Q),""!==Q),s()(e,"getwid-reset-min-height-tablet",!1!==V),s()(e,"getwid-reset-min-height-mobile",!1!==F),e)),Oe=o(o({backgroundColor:this.props.attributes.backgroundColor?void 0:this.props.attributes.customBackgroundColor},R("background",this.props)),N("background",this.props)),Ee=T("background-color",L),Ce=k()("".concat(A,"__background"),s()({"has-background":L||z},Ee,Ee)),je=o(o(o({opacity:void 0!==h?h/100:void 0,backgroundColor:v},R("foreground",this.props)),N("foreground",this.props)),{},{mixBlendMode:y}),Se={maxWidth:j&&"custom"===S?"".concat(j,"px"):void 0},xe=D?{"data-wow-duration":void 0!==M?M:"2000ms","data-wow-delay":void 0!==I?I:"500ms"}:{},Pe=k()(he,(t={},s()(t,"has-inner-blocks-gap-".concat(B),void 0!==B&&""!==B),s()(t,"getwid-anim ".concat(D),!!D),s()(t,"getwid-margin-top-".concat(ae),"custom"!==ae&&""!==ae),s()(t,"getwid-margin-bottom-".concat(ce),"custom"!==ce&&""!==ce),s()(t,"getwid-margin-tablet-top-".concat(ue),"custom"!==ue&&""!==ue),s()(t,"getwid-margin-tablet-bottom-".concat(de),"custom"!==de&&""!==de),s()(t,"getwid-margin-mobile-top-".concat(ge),"custom"!==ge&&""!==ge),s()(t,"getwid-margin-mobile-bottom-".concat(be),"custom"!==be&&""!==be),s()(t,"getwid-section-content-full-width","full"===S),s()(t,"getwid-section-content-custom-width","custom"===S),t)),Te=ve||void 0;return wp.element.createElement("div",l()({id:Te,className:Pe,style:ye},xe),wp.element.createElement("div",{className:ke,style:_e},wp.element.createElement(E.a,o(o({},this.props),{},{baseClass:A})),!!b&&"none"!==w&&wp.element.createElement("div",{className:k()("getwid-background-video-controls",s()({},"is-position-".concat(w),"top-right"!==w))},wp.element.createElement("button",{className:"getwid-background-video-play"},wp.element.createElement("i",{className:"getwid-icon getwid-icon-pause"})),wp.element.createElement("button",{className:"getwid-background-video-mute"},wp.element.createElement("i",{className:"getwid-icon getwid-icon-mute"}))),wp.element.createElement("div",{className:k()("".concat(A,"__inner-wrapper"),s()({},"has-dividers-over",_)),style:Se},wp.element.createElement("div",{className:"".concat(A,"__background-holder")},wp.element.createElement("div",{className:Ce,style:Oe},!!g&&wp.element.createElement("div",{className:"".concat(A,"__background-image-wrapper")},wp.element.createElement("img",{className:"".concat(A,"__background-image"),src:g.url,alt:g.alt,"data-id":g.id})),!!f.length&&wp.element.createElement("div",{className:"".concat(A,"__background-slider-wrapper")},wp.element.createElement(O.b,o(o({},this.props),{},{baseClass:A}))),!!b&&wp.element.createElement("div",{className:"".concat(A,"__background-video-wrapper")},wp.element.createElement(C.a,l()({},o(o({},this.props),{},{baseClass:A}),{videoMute:this.props.attributes.backgroundVideoMute,videoAutoplay:this.props.attributes.backgroundVideoAutoplay})))),wp.element.createElement("div",{className:"".concat(A,"__foreground"),style:je})),wp.element.createElement("div",{className:"".concat(A,"__content")},wp.element.createElement("div",{className:"".concat(A,"__inner-content")},wp.element.createElement(P.Content,null))))))}}]),t}(S);t.a=B},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(n,!0).forEach(function(t){s()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function i(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=v()(e);if(t()){var o=v()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return w()(this,n)}}var a=n(9),l=n.n(a),c=n(7),s=n.n(c),u=n(2),p=n.n(u),d=n(4),m=n.n(d),g=n(5),f=n.n(g),b=n(6),w=n.n(b),h=n(3),v=n.n(h),y=(n(0),n(26)),_=n(25),k=n(134),O=n(1),E=(n.n(O),n(8)),C=n.n(E),j=n(21),S=wp.element.Component,x=wp.blockEditor||wp.editor,P=x.InnerBlocks,T=x.getColorClassName,R=j.a.prepareGradientStyle,N=j.a.prepareBackgroundImageStyles,A="wp-block-getwid-section",B=function(e){function t(){return p()(this,t),n.apply(this,arguments)}f()(t,e);var n=i(t);return m()(t,[{key:"render",value:function(){var e,t,n=this.props.attributes,r=n.align,i=n.paddingTopValue,a=n.paddingBottomValue,c=n.paddingLeftValue,u=n.paddingRightValue,p=n.marginTopValue,d=n.marginBottomValue,m=n.marginLeftValue,g=n.marginRightValue,f=n.backgroundImage,b=n.sliderImages,w=n.backgroundVideoUrl,h=n.backgroundVideoControlsPosition,v=n.foregroundOpacity,O=n.foregroundColor,E=n.foregroundFilter,j=n.dividersBringTop,S=n.contentMaxWidth,x=n.contentMaxWidthPreset,B=n.minHeight,D=n.gapSize,M=n.entranceAnimation,I=n.entranceAnimationDuration,L=n.entranceAnimationDelay,z=n.backgroundColor,V=n.customBackgroundColor,F=n.resetMinHeightTablet,H=n.resetMinHeightMobile,G=n.verticalAlign,W=n.verticalAlignTablet,U=n.verticalAlignMobile,q=n.horizontalAlign,Q=n.horizontalAlignTablet,K=n.horizontalAlignMobile,Y=n.paddingTop,J=n.paddingRight,$=n.paddingBottom,Z=n.paddingLeft,X=n.paddingTopTablet,ee=n.paddingRightTablet,te=n.paddingBottomTablet,ne=n.paddingLeftTablet,re=n.paddingTopMobile,oe=n.paddingRightMobile,ie=n.paddingBottomMobile,ae=n.paddingLeftMobile,le=n.marginTop,ce=n.marginRight,se=n.marginBottom,ue=n.marginLeft,pe=n.marginTopTablet,de=n.marginRightTablet,me=n.marginBottomTablet,ge=n.marginLeftTablet,fe=n.marginTopMobile,be=n.marginRightMobile,we=n.marginBottomMobile,he=n.marginLeftMobile,ve=n.className,ye=n.anchor,_e=o(o({},"custom"===le?{marginTop:p}:[]),"custom"===se?{marginBottom:d}:[]),ke=o(o(o(o(o(o({minHeight:B},"custom"===ue?{marginLeft:m}:[]),"custom"===ce?{marginRight:g}:[]),"custom"===Y?{paddingTop:i}:[]),"custom"===$?{paddingBottom:a}:[]),"custom"===Z?{paddingLeft:c}:[]),"custom"===J?{paddingRight:u}:[]),Oe=C()("".concat(A,"__wrapper"),(e={},s()(e,"getwid-padding-top-".concat(Y),"custom"!==Y&&""!==Y),s()(e,"getwid-padding-bottom-".concat($),"custom"!==$&&""!==$),s()(e,"getwid-padding-left-".concat(Z),"custom"!==Z&&""!==Z),s()(e,"getwid-padding-right-".concat(J),"custom"!==J&&""!==J),s()(e,"getwid-padding-tablet-top-".concat(X),""!==X),s()(e,"getwid-padding-tablet-bottom-".concat(te),""!==te),s()(e,"getwid-padding-tablet-left-".concat(ne),""!==ne),s()(e,"getwid-padding-tablet-right-".concat(ee),""!==ee),s()(e,"getwid-padding-mobile-top-".concat(re),""!==re),s()(e,"getwid-padding-mobile-bottom-".concat(ie),""!==ie),s()(e,"getwid-padding-mobile-left-".concat(ae),""!==ae),s()(e,"getwid-padding-mobile-right-".concat(oe),""!==oe),s()(e,"getwid-margin-left-".concat(ue),"custom"!==ue&&""!==ue),s()(e,"getwid-margin-right-".concat(ce),"custom"!==ce&&""!==ce),s()(e,"getwid-margin-tablet-left-".concat(ge),""!==ge),s()(e,"getwid-margin-tablet-right-".concat(de),""!==de),s()(e,"getwid-margin-mobile-left-".concat(he),""!==he),s()(e,"getwid-margin-mobile-right-".concat(be),""!==be),s()(e,"getwid-align-items-".concat(G),"center"!==G),s()(e,"getwid-align-items-tablet-".concat(W),""!==W),s()(e,"getwid-align-items-mobile-".concat(U),""!==U),s()(e,"getwid-justify-content-".concat(q),"center"!==q),s()(e,"getwid-justify-content-tablet-".concat(Q),""!==Q),s()(e,"getwid-justify-content-mobile-".concat(K),""!==K),s()(e,"getwid-reset-min-height-tablet",!1!==F),s()(e,"getwid-reset-min-height-mobile",!1!==H),e)),Ee=o(o({backgroundColor:this.props.attributes.backgroundColor?void 0:this.props.attributes.customBackgroundColor},R("background",this.props)),N("background",this.props)),Ce=T("background-color",z),je=C()("".concat(A,"__background"),s()({"has-background":z||V},Ce,Ce)),Se=o(o(o({opacity:void 0!==v?v/100:void 0,backgroundColor:O},R("foreground",this.props)),N("foreground",this.props)),{},{mixBlendMode:E}),xe={maxWidth:S&&"custom"===x?"".concat(S,"px"):void 0},Pe=M?{"data-wow-duration":void 0!==I?I:"2000ms","data-wow-delay":void 0!==L?L:"500ms"}:{},Te=C()(ve,r?"align".concat(r):null,(t={},s()(t,"has-inner-blocks-gap-".concat(D),void 0!==D&&""!==D),s()(t,"getwid-anim ".concat(M),!!M),s()(t,"getwid-margin-top-".concat(le),"custom"!==le&&""!==le),s()(t,"getwid-margin-bottom-".concat(se),"custom"!==se&&""!==se),s()(t,"getwid-margin-tablet-top-".concat(pe),"custom"!==pe&&""!==pe),s()(t,"getwid-margin-tablet-bottom-".concat(me),"custom"!==me&&""!==me),s()(t,"getwid-margin-mobile-top-".concat(fe),"custom"!==fe&&""!==fe),s()(t,"getwid-margin-mobile-bottom-".concat(we),"custom"!==we&&""!==we),s()(t,"getwid-section-content-full-width","full"===x),s()(t,"getwid-section-content-custom-width","custom"===x),t)),Re=ye||void 0;return wp.element.createElement("div",l()({id:Re,className:Te,style:_e},Pe),wp.element.createElement("div",{className:Oe,style:ke},wp.element.createElement(_.a,o(o({},this.props),{},{baseClass:A})),!!w&&"none"!==h&&wp.element.createElement("div",{className:C()("getwid-background-video-controls",s()({},"is-position-".concat(h),"top-right"!==h))},wp.element.createElement("button",{className:"getwid-background-video-play"},wp.element.createElement("i",{className:"getwid-icon getwid-icon-pause"})),wp.element.createElement("button",{className:"getwid-background-video-mute"},wp.element.createElement("i",{className:"getwid-icon getwid-icon-mute"}))),wp.element.createElement("div",{className:C()("".concat(A,"__inner-wrapper"),s()({},"has-dividers-over",j)),style:xe},wp.element.createElement("div",{className:"".concat(A,"__background-holder")},wp.element.createElement("div",{className:je,style:Ee},!!f&&wp.element.createElement("div",{className:"".concat(A,"__background-image-wrapper")},wp.element.createElement("img",{className:"".concat(A,"__background-image"),src:f.url,alt:f.alt})),!!b.length&&wp.element.createElement("div",{className:"".concat(A,"__background-slider-wrapper")},wp.element.createElement(y.b,o(o({},this.props),{},{baseClass:A}))),!!w&&wp.element.createElement("div",{className:"".concat(A,"__background-video-wrapper")},wp.element.createElement(k.a,l()({},o(o({},this.props),{},{baseClass:A}),{videoMute:this.props.attributes.backgroundVideoMute,videoAutoplay:this.props.attributes.backgroundVideoAutoplay})))),wp.element.createElement("div",{className:"".concat(A,"__foreground"),style:Se})),wp.element.createElement("div",{className:"".concat(A,"__content")},wp.element.createElement("div",{className:"".concat(A,"__inner-content")},wp.element.createElement(P.Content,null))))))}}]),t}(S);t.a=B},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=f()(e);if(t()){var o=f()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}n.d(t,"a",function(){return v});var o=n(9),i=n.n(o),a=n(2),l=n.n(a),c=n(4),s=n.n(c),u=n(5),p=n.n(u),d=n(6),m=n.n(d),g=n(3),f=n.n(g),b=(n(0),wp.element),w=b.Component,h=b.Fragment,v=function(e){function t(){return l()(this,t),n.apply(this,arguments)}p()(t,e);var n=r(t);return s()(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.backgroundVideoUrl,r=(t.backgroundVideoMute,t.backgroundVideoLoop),o=(t.backgroundVideoAutoplay,t.backgroundVideoPoster),a=e.baseClass,l={autoPlay:this.props.videoAutoplay,muted:this.props.videoMute,loop:r,poster:o||void 0};return wp.element.createElement(h,null,n.url&&wp.element.createElement("video",i()({className:"".concat(a,"__background-video")},l,{ref:this.props.videoElemRef,onEnded:this.props.onVideoEnd}),wp.element.createElement("source",{src:n.url,type:"video/mp4"})))}},{key:"componentDidMount",value:function(){}},{key:"componentDidUpdate",value:function(){}}]),t}(w)},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(n,!0).forEach(function(t){s()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function i(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=v()(e);if(t()){var o=v()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return w()(this,n)}}var a=n(9),l=n.n(a),c=n(7),s=n.n(c),u=n(2),p=n.n(u),d=n(4),m=n.n(d),g=n(5),f=n.n(g),b=n(6),w=n.n(b),h=n(3),v=n.n(h),y=(n(0),n(26)),_=n(25),k=n(29),O=n(1),E=(n.n(O),n(8)),C=n.n(E),j=n(21),S=wp.element.Component,x=wp.blockEditor||wp.editor,P=x.InnerBlocks,T=x.getColorClassName,R=j.a.prepareGradientStyle,N=j.a.prepareBackgroundImageStyles,A="wp-block-getwid-section",B=function(e){function t(){return p()(this,t),n.apply(this,arguments)}f()(t,e);var n=i(t);return m()(t,[{key:"render",value:function(){var e,t,n=this.props.attributes,r=n.align,i=n.paddingTopValue,a=n.paddingBottomValue,c=n.paddingLeftValue,u=n.paddingRightValue,p=n.marginTopValue,d=n.marginBottomValue,m=n.marginLeftValue,g=n.marginRightValue,f=n.backgroundImage,b=n.sliderImages,w=n.backgroundVideoType,h=n.youTubeVideoUrl,v=n.youTubeVideoMute,O=n.youTubeVideoLoop,E=n.youTubeVideoAutoplay,j=n.backgroundVideoUrl,S=n.backgroundVideoControlsPosition,x=n.foregroundOpacity,B=n.foregroundColor,D=n.foregroundFilter,M=n.dividersBringTop,I=n.contentMaxWidth,L=n.contentMaxWidthPreset,z=n.minHeight,V=n.gapSize,F=n.entranceAnimation,H=n.entranceAnimationDuration,G=n.entranceAnimationDelay,W=n.backgroundColor,U=n.customBackgroundColor,q=n.resetMinHeightTablet,Q=n.resetMinHeightMobile,K=n.verticalAlign,Y=n.verticalAlignTablet,J=n.verticalAlignMobile,$=n.horizontalAlign,Z=n.horizontalAlignTablet,X=n.horizontalAlignMobile,ee=n.paddingTop,te=n.paddingRight,ne=n.paddingBottom,re=n.paddingLeft,oe=n.paddingTopTablet,ie=n.paddingRightTablet,ae=n.paddingBottomTablet,le=n.paddingLeftTablet,ce=n.paddingTopMobile,se=n.paddingRightMobile,ue=n.paddingBottomMobile,pe=n.paddingLeftMobile,de=n.marginTop,me=n.marginRight,ge=n.marginBottom,fe=n.marginLeft,be=n.marginTopTablet,we=n.marginRightTablet,he=n.marginBottomTablet,ve=n.marginLeftTablet,ye=n.marginTopMobile,_e=n.marginRightMobile,ke=n.marginBottomMobile,Oe=n.marginLeftMobile,Ee=n.className,Ce=n.anchor,je=o(o({},"custom"===de?{marginTop:p}:[]),"custom"===ge?{marginBottom:d}:[]),Se=o(o(o(o(o(o({minHeight:z},"custom"===fe?{marginLeft:m}:[]),"custom"===me?{marginRight:g}:[]),"custom"===ee?{paddingTop:i}:[]),"custom"===ne?{paddingBottom:a}:[]),"custom"===re?{paddingLeft:c}:[]),"custom"===te?{paddingRight:u}:[]),xe=C()("".concat(A,"__wrapper"),(e={},s()(e,"getwid-padding-top-".concat(ee),"custom"!==ee&&""!==ee),s()(e,"getwid-padding-bottom-".concat(ne),"custom"!==ne&&""!==ne),s()(e,"getwid-padding-left-".concat(re),"custom"!==re&&""!==re),s()(e,"getwid-padding-right-".concat(te),"custom"!==te&&""!==te),s()(e,"getwid-padding-tablet-top-".concat(oe),""!==oe),s()(e,"getwid-padding-tablet-bottom-".concat(ae),""!==ae),s()(e,"getwid-padding-tablet-left-".concat(le),""!==le),s()(e,"getwid-padding-tablet-right-".concat(ie),""!==ie),s()(e,"getwid-padding-mobile-top-".concat(ce),""!==ce),s()(e,"getwid-padding-mobile-bottom-".concat(ue),""!==ue),s()(e,"getwid-padding-mobile-left-".concat(pe),""!==pe),s()(e,"getwid-padding-mobile-right-".concat(se),""!==se),s()(e,"getwid-margin-left-".concat(fe),"custom"!==fe&&""!==fe),s()(e,"getwid-margin-right-".concat(me),"custom"!==me&&""!==me),s()(e,"getwid-margin-tablet-left-".concat(ve),""!==ve),s()(e,"getwid-margin-tablet-right-".concat(we),""!==we),s()(e,"getwid-margin-mobile-left-".concat(Oe),""!==Oe),s()(e,"getwid-margin-mobile-right-".concat(_e),""!==_e),s()(e,"getwid-align-items-".concat(K),"center"!==K),s()(e,"getwid-align-items-tablet-".concat(Y),""!==Y),s()(e,"getwid-align-items-mobile-".concat(J),""!==J),s()(e,"getwid-justify-content-".concat($),"center"!==$),s()(e,"getwid-justify-content-tablet-".concat(Z),""!==Z),s()(e,"getwid-justify-content-mobile-".concat(X),""!==X),s()(e,"getwid-reset-min-height-tablet",!1!==q),s()(e,"getwid-reset-min-height-mobile",!1!==Q),e)),Pe=o(o({backgroundColor:this.props.attributes.backgroundColor?void 0:this.props.attributes.customBackgroundColor},R("background",this.props)),N("background",this.props)),Te=T("background-color",W),Re=C()("".concat(A,"__background"),s()({"has-background":W||U},Te,Te)),Ne=o(o(o({opacity:void 0!==x?x/100:void 0,backgroundColor:B},R("foreground",this.props)),N("foreground",this.props)),{},{mixBlendMode:D}),Ae={maxWidth:I&&"custom"===L?"".concat(I,"px"):void 0},Be=F?{"data-wow-duration":void 0!==H?H:"2000ms","data-wow-delay":void 0!==G?G:"500ms"}:{},De=C()(Ee,r?"align".concat(r):null,(t={},s()(t,"has-inner-blocks-gap-".concat(V),void 0!==V&&""!==V),s()(t,"getwid-anim ".concat(F),!!F),s()(t,"getwid-margin-top-".concat(de),"custom"!==de&&""!==de),s()(t,"getwid-margin-bottom-".concat(ge),"custom"!==ge&&""!==ge),s()(t,"getwid-margin-tablet-top-".concat(be),"custom"!==be&&""!==be),s()(t,"getwid-margin-tablet-bottom-".concat(he),"custom"!==he&&""!==he),s()(t,"getwid-margin-mobile-top-".concat(ye),"custom"!==ye&&""!==ye),s()(t,"getwid-margin-mobile-bottom-".concat(ke),"custom"!==ke&&""!==ke),s()(t,"getwid-section-content-full-width","full"===L),s()(t,"getwid-section-content-custom-width","custom"===L),t)),Me=Ce||void 0,Ie={"youtube-video-url":h,"youtube-video-muted":v,"youtube-video-loop":O,"youtube-video-autoplay":E};return wp.element.createElement("div",l()({id:Me,className:De,style:je},Be),wp.element.createElement("div",{className:xe,style:Se},wp.element.createElement(_.a,o(o({},this.props),{},{baseClass:A})),(!!j||!!h)&&"none"!==S&&wp.element.createElement("div",{className:C()("getwid-background-video-controls",s()({},"is-position-".concat(S),"top-right"!==S))},wp.element.createElement("button",{className:"getwid-background-video-play"},wp.element.createElement("i",{className:"getwid-icon getwid-icon-pause"})),wp.element.createElement("button",{className:"getwid-background-video-mute"},wp.element.createElement("i",{className:"getwid-icon getwid-icon-mute"}))),wp.element.createElement("div",{className:C()("".concat(A,"__inner-wrapper"),s()({},"has-dividers-over",M)),style:Ae},wp.element.createElement("div",{className:"".concat(A,"__background-holder")},wp.element.createElement("div",{className:Re,style:Pe},!!f&&wp.element.createElement("div",{className:"".concat(A,"__background-image-wrapper")},wp.element.createElement("img",{className:"".concat(A,"__background-image"),src:f.url,alt:f.alt})),b&&!!b.length&&wp.element.createElement("div",{className:"".concat(A,"__background-slider-wrapper")},wp.element.createElement(y.b,o(o({},this.props),{},{baseClass:A}))),(!!j||!!h)&&wp.element.createElement("div",{className:"".concat(A,"__background-video-wrapper")},h&&""!=h&&"youtube"==w&&wp.element.createElement("div",l()({className:"".concat(A,"__background-video source-youtube")},Ie),wp.element.createElement("div",{className:"".concat(A,"__background-video-youtube")})),!!j&&"self"==w&&wp.element.createElement(k.a,l()({},o(o({},this.props),{},{baseClass:A}),{videoMute:this.props.attributes.backgroundVideoMute,videoAutoplay:this.props.attributes.backgroundVideoAutoplay})))),wp.element.createElement("div",{className:"".concat(A,"__foreground"),style:Ne})),wp.element.createElement("div",{className:"".concat(A,"__content")},wp.element.createElement("div",{className:"".concat(A,"__inner-content")},wp.element.createElement(P.Content,null))))))}}]),t}(S);t.a=B},function(e,t,n){"use strict";var r={align:{type:"string"},skipLayout:{type:"boolean",default:!1},contentMaxWidthPreset:{type:"string"},contentMaxWidth:{type:"number"},minHeight:{type:"string"},gapSize:{type:"string"},resetMinHeightTablet:{type:"boolean",default:!1},resetMinHeightMobile:{type:"boolean",default:!1},verticalAlign:{type:"string",default:"center"},verticalAlignTablet:{type:"string",default:""},verticalAlignMobile:{type:"string",default:""},horizontalAlign:{type:"string",default:"center"},horizontalAlignTablet:{type:"string",default:""},horizontalAlignMobile:{type:"string",default:""},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},backgroundGradientFirstColor:{type:"string"},backgroundGradientFirstColorLocation:{type:"number",default:0},backgroundGradientSecondColor:{type:"string"},backgroundGradientSecondColorLocation:{type:"number",default:100},backgroundGradientType:{type:"string"},backgroundGradientAngle:{type:"number",default:180},backgroundImage:{type:"object"},backgroundImagePosition:{type:"string"},backgroundImageAttachment:{type:"string"},backgroundImageRepeat:{type:"string"},backgroundImageSize:{type:"string"},sliderImages:{type:"array",default:[],source:"query",selector:".wp-block-getwid-section__background-slider>.wp-block-getwid-section__background-slider-item",query:{url:{source:"attribute",selector:"img",attribute:"src"},alt:{source:"attribute",selector:"img",attribute:"alt",default:""},id:{source:"attribute",selector:"img",attribute:"data-id"}}},sliderAnimationEffect:{type:"string",source:"attribute",selector:".wp-block-getwid-section__background-holder .wp-block-getwid-section__background-slider",attribute:"data-slide-effect"},sliderAnimationDuration:{type:"string",source:"attribute",selector:".wp-block-getwid-section__background-holder .wp-block-getwid-section__background-slider",attribute:"data-slide-speed",default:1e3},sliderAnimationSpeed:{type:"string",source:"attribute",selector:".wp-block-getwid-section__background-holder .wp-block-getwid-section__background-slider",attribute:"data-autoplay-speed",default:5e3},backgroundVideoUrl:{type:"object"},backgroundVideoMute:{type:"boolean",source:"attribute",selector:".wp-block-getwid-section__background-holder .wp-block-getwid-section__background-video",attribute:"muted",default:!1},backgroundVideoLoop:{type:"boolean",source:"attribute",selector:".wp-block-getwid-section__background-holder .wp-block-getwid-section__background-video",attribute:"loop",default:!1},backgroundVideoAutoplay:{type:"boolean",source:"attribute",selector:".wp-block-getwid-section__background-holder .wp-block-getwid-section__background-video",attribute:"autoplay",default:!1},backgroundVideoPoster:{type:"string",source:"attribute",selector:".wp-block-getwid-section__background-holder .wp-block-getwid-section__background-video",attribute:"poster"},backgroundVideoControlsPosition:{type:"string",default:"top-right"},foregroundOpacity:{type:"number"},foregroundColor:{type:"string"},foregroundImage:{type:"object"},foregroundImagePosition:{type:"string"},foregroundImageAttachment:{type:"string"},foregroundImageRepeat:{type:"string"},foregroundImageSize:{type:"string"},foregroundFilter:{type:"string"},foregroundGradientType:{type:"string"},foregroundGradientFirstColor:{type:"string"},foregroundGradientFirstColorLocation:{type:"number",default:0},foregroundGradientSecondColor:{type:"string"},foregroundGradientSecondColorLocation:{type:"number",default:100},foregroundGradientAngle:{type:"number",default:180},dividerTop:{type:"string"},dividersTopHeight:{type:"string"},dividerTopColor:{type:"string",default:"white"},dividerBottom:{type:"string"},dividersBottomHeight:{type:"string"},dividersBringTop:{type:"boolean",default:!1},dividerBottomColor:{type:"string",default:"white"},entranceAnimation:{type:"string"},entranceAnimationDuration:{type:"string",source:"attribute",selector:".wp-block-getwid-section",attribute:"data-wow-duration",default:"1500ms"},entranceAnimationDelay:{type:"string",source:"attribute",selector:".wp-block-getwid-section",attribute:"data-wow-delay",default:"200ms"},paddingTopValue:{type:"string"},paddingBottomValue:{type:"string"},paddingLeftValue:{type:"string"},paddingRightValue:{type:"string"},paddingTop:{type:"string",default:""},paddingBottom:{type:"string",default:""},paddingLeft:{type:"string",default:""},paddingRight:{type:"string",default:""},paddingTopTablet:{type:"string",default:""},paddingBottomTablet:{type:"string",default:""},paddingLeftTablet:{type:"string",default:""},paddingRightTablet:{type:"string",default:""},paddingTopMobile:{type:"string",default:""},paddingBottomMobile:{type:"string",default:""},paddingLeftMobile:{type:"string",default:""},paddingRightMobile:{type:"string",default:""},marginTopValue:{type:"string"},marginBottomValue:{type:"string"},marginLeftValue:{type:"string"},marginRightValue:{type:"string"},marginTop:{type:"string",default:""},marginBottom:{type:"string",default:""},marginLeft:{type:"string",default:""},marginRight:{type:"string",default:""},marginTopTablet:{type:"string",default:""},marginBottomTablet:{type:"string",default:""},marginLeftTablet:{type:"string",default:""},marginRightTablet:{type:"string",default:""},marginTopMobile:{type:"string",default:""},marginBottomMobile:{type:"string",default:""},marginLeftMobile:{type:"string",default:""},marginRightMobile:{type:"string",default:""}};t.a=r},function(e,t,n){"use strict";var r={align:{type:"string"},skipLayout:{type:"boolean",default:!1},contentMaxWidthPreset:{type:"string"},contentMaxWidth:{type:"number"},minHeight:{type:"string"},gapSize:{type:"string"},resetMinHeightTablet:{type:"boolean",default:!1},resetMinHeightMobile:{type:"boolean",default:!1},verticalAlign:{type:"string",default:"center"},verticalAlignTablet:{type:"string",default:""},verticalAlignMobile:{type:"string",default:""},horizontalAlign:{type:"string",default:"center"},horizontalAlignTablet:{type:"string",default:""},horizontalAlignMobile:{type:"string",default:""},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},backgroundGradientFirstColor:{type:"string"},backgroundGradientSecondColor:{type:"string"},backgroundGradientFirstColorLocation:{type:"number",default:0},backgroundGradientSecondColorLocation:{type:"number",default:100},backgroundGradientType:{type:"string"},backgroundGradientAngle:{type:"number",default:180},foregroundGradientFirstColor:{type:"string"},foregroundGradientSecondColor:{type:"string"},foregroundGradientFirstColorLocation:{type:"number",default:0},foregroundGradientSecondColorLocation:{type:"number",default:100},foregroundGradientType:{type:"string"},foregroundGradientAngle:{type:"number",default:180},backgroundImage:{type:"object"},backgroundCustomImagePosition:{type:"object"},backgroundImagePosition:{type:"string"},backgroundImageAttachment:{type:"string"},backgroundImageRepeat:{type:"string"},backgroundImageSize:{type:"string"},sliderImages:{type:"array",default:[],source:"query",selector:".wp-block-getwid-section__background-slider>.wp-block-getwid-section__background-slider-item",query:{url:{source:"attribute",selector:"img",attribute:"src"},alt:{source:"attribute",selector:"img",attribute:"alt",default:""},id:{source:"attribute",selector:"img",attribute:"data-id"}}},sliderAnimationEffect:{type:"string",source:"attribute",selector:".wp-block-getwid-section__background-holder .wp-block-getwid-section__background-slider",attribute:"data-slide-effect"},sliderAnimationDuration:{type:"string",source:"attribute",selector:".wp-block-getwid-section__background-holder .wp-block-getwid-section__background-slider",attribute:"data-slide-speed",default:1e3},sliderAnimationSpeed:{type:"string",source:"attribute",selector:".wp-block-getwid-section__background-holder .wp-block-getwid-section__background-slider",attribute:"data-autoplay-speed",default:5e3},backgroundVideoType:{type:"string",default:"self"},youTubeVideoUrl:{type:"string",source:"attribute",selector:".wp-block-getwid-section__background-video.source-youtube",attribute:"youtube-video-url"},youTubeVideoMute:{type:"string",source:"attribute",selector:".wp-block-getwid-section__background-video.source-youtube",attribute:"youtube-video-muted",default:"false"},youTubeVideoLoop:{type:"string",source:"attribute",selector:".wp-block-getwid-section__background-video.source-youtube",attribute:"youtube-video-loop",default:"false"},youTubeVideoAutoplay:{type:"string",source:"attribute",selector:".wp-block-getwid-section__background-video.source-youtube",attribute:"youtube-video-autoplay",default:"false"},backgroundVideoUrl:{type:"object"},backgroundVideoMute:{type:"boolean",source:"attribute",selector:".wp-block-getwid-section__background-holder .wp-block-getwid-section__background-video.source-media-library",attribute:"muted",default:!1},backgroundVideoLoop:{type:"boolean",source:"attribute",selector:".wp-block-getwid-section__background-holder .wp-block-getwid-section__background-video.source-media-library",attribute:"loop",default:!1},backgroundVideoAutoplay:{type:"boolean",source:"attribute",selector:".wp-block-getwid-section__background-holder .wp-block-getwid-section__background-video.source-media-library",attribute:"autoplay",default:!1},backgroundVideoPoster:{type:"string",source:"attribute",selector:".wp-block-getwid-section__background-holder .wp-block-getwid-section__background-video.source-media-library",attribute:"poster"},backgroundVideoControlsPosition:{type:"string",default:"top-right"},foregroundOpacity:{type:"number"},foregroundColor:{type:"string"},foregroundImage:{type:"object"},foregroundCustomImagePosition:{type:"object"},foregroundImagePosition:{type:"string"},foregroundImageAttachment:{type:"string"},foregroundImageRepeat:{type:"string"},foregroundImageSize:{type:"string"},foregroundFilter:{type:"string"},dividerTop:{type:"string"},dividersTopHeight:{type:"string"},dividerTopColor:{type:"string",default:"white"},dividerBottom:{type:"string"},dividersBottomHeight:{type:"string"},dividersBringTop:{type:"boolean",default:!1},dividerBottomColor:{type:"string",default:"white"},entranceAnimation:{type:"string"},entranceAnimationDuration:{type:"string",source:"attribute",selector:".wp-block-getwid-section",attribute:"data-wow-duration",default:"1500ms"},entranceAnimationDelay:{type:"string",source:"attribute",selector:".wp-block-getwid-section",attribute:"data-wow-delay",default:"200ms"},paddingTopValue:{type:"string"},paddingBottomValue:{type:"string"},paddingLeftValue:{type:"string"},paddingRightValue:{type:"string"},paddingTop:{type:"string",default:""},paddingBottom:{type:"string",default:""},paddingLeft:{type:"string",default:""},paddingRight:{type:"string",default:""},paddingTopTablet:{type:"string",default:""},paddingBottomTablet:{type:"string",default:""},paddingLeftTablet:{type:"string",default:""},paddingRightTablet:{type:"string",default:""},paddingTopMobile:{type:"string",default:""},paddingBottomMobile:{type:"string",default:""},paddingLeftMobile:{type:"string",default:""},paddingRightMobile:{type:"string",default:""},marginTopValue:{type:"string"},marginBottomValue:{type:"string"},marginLeftValue:{type:"string"},marginRightValue:{type:"string"},marginTop:{type:"string",default:""},marginBottom:{type:"string",default:""},marginLeft:{type:"string",default:""},marginRight:{type:"string",default:""},marginTopTablet:{type:"string",default:""},marginBottomTablet:{type:"string",default:""},marginLeftTablet:{type:"string",default:""},marginRightTablet:{type:"string",default:""},marginTopMobile:{type:"string",default:""},marginBottomMobile:{type:"string",default:""},marginLeftMobile:{type:"string",default:""},marginRightMobile:{type:"string",default:""}};t.a=r},function(e,t){},function(e,t){},function(e,t,n){"use strict";n(141),n(149),n(154)},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(n,!0).forEach(function(t){a()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var i=n(7),a=n.n(i),l=(n(0),n(49)),c=n(145),s=n(50),u=n(146),p=n(52),d=n(12),m=n(148),g=n(1),f=(n.n(g),n(10)),b=(n.n(f),wp.blocks.registerBlockType),w="wp-block-getwid-media-text-slider";b("getwid/media-text-slider",o(o({title:Object(g.__)("Media & Text Slider","getwid"),icon:wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 24 24"},wp.element.createElement("rect",{x:"4",y:"4",width:"16",height:"2"}),wp.element.createElement("circle",{cx:"6",cy:"22",r:"2"}),wp.element.createElement("circle",{cx:"12",cy:"22",r:"2"}),wp.element.createElement("circle",{cx:"18",cy:"22",r:"2"}),wp.element.createElement("path",{d:"M0,0v19h24V0H0z M22,2v10.59l-2.5-2.5l-3.5,3.5l-6-6l-8,8V2H22z M3.41,17L10,10.41l6,6l3.5-3.5l2.5,2.5V17H3.41z"})),category:"getwid-blocks",keywords:[Object(g.__)("gallery","getwid"),Object(g.__)("carousel","getwid"),Object(g.__)("image","getwid")],supports:{alignWide:!0,align:["wide","full"],inserter:!Getwid.disabled_blocks.includes("getwid/media-text-slider")},attributes:s.a,transforms:{from:[{type:"block",blocks:["core/gallery"],transform:function(e){return Object(p.b)(e)}},{type:"block",blocks:["getwid/images-stack"],transform:function(e){return Object(p.b)(e)}},{type:"block",blocks:["getwid/images-slider"],transform:function(e){return Object(p.b)(e)}},{type:"block",isMultiBlock:!0,blocks:["core/image"],transform:function(e){return Object(p.b)(e)}}],to:[{type:"block",blocks:["core/gallery"],transform:function(e){return Object(p.a)(e,"core/gallery",null)}},{type:"block",blocks:["getwid/images-stack"],transform:function(e){return Object(p.a)(e,"getwid/images-stack",[])}},{type:"block",blocks:["getwid/images-slider"],transform:function(e){return Object(p.a)(e,"getwid/images-slider",[])}},{type:"block",blocks:["core/image"],transform:function(e){return Object(p.a)(e,"core/image",null)}},{type:"block",blocks:["getwid/content-timeline"],transform:function(e){return Object(p.a)(e,"getwid/content-timeline",null)}}]},deprecated:[{attributes:u.a,migrate:function(e){var t=JSON.parse(e.sliderArrays.replace(/u0022/g,'"'));return o(o({},e),{},{sliderArrays:JSON.stringify(Object(f.times)(e.slideCount,function(e){return"".concat(t[e].text)}))})},save:function(e){return wp.element.createElement(m.a,o(o({},e),{},{baseClass:w}))}}]},Object(d.b)("getwid/media-text-slider",function(e){return wp.element.createElement(l.b,o(o({},e),{},{baseClass:w}))})),{},{save:function(e){return wp.element.createElement(c.a,o(o({},e),{},{baseClass:w}))}}))},function(e,t,n){e.exports=function(e,t){function n(){var t,n,l=o,c=arguments.length;e:for(;l;){if(l.args.length===arguments.length){for(n=0;n<c;n++)if(l.args[n]!==arguments[n]){l=l.next;continue e}return l!==o&&(l===i&&(i=l.prev),l.prev.next=l.next,l.next&&(l.next.prev=l.prev),l.next=o,l.prev=null,o.prev=l,o=l),l.val}l=l.next}for(t=new Array(c),n=0;n<c;n++)t[n]=arguments[n];return l={args:t,val:e.apply(null,t)},o?(o.prev=l,l.next=o):i=l,a===r?(i=i.prev,i.next=null):a++,o=l,l.val}var r,o,i,a=0;return t&&t.maxSize&&(r=t.maxSize),n.clear=function(){o=null,i=null,a=0},n}},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=f()(e);if(t()){var o=f()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var o=n(7),i=n.n(o),a=n(2),l=n.n(a),c=n(4),s=n.n(c),u=n(5),p=n.n(u),d=n(6),m=n.n(d),g=n(3),f=n.n(g),b=(n(0),n(1)),w=(n.n(b),n(19)),h=n(17),v=n(24),y=n(16),_=n(14),k=n(50),O=wp.element,E=O.Component,C=O.Fragment,j=wp.blockEditor||wp.editor,S=j.InspectorControls,x=wp.components,P=x.Button,T=x.BaseControl,R=x.PanelBody,N=x.RangeControl,A=x.ToggleControl,B=x.SelectControl,D=x.RadioControl,M=x.TextControl,I=function(e){function t(e){var r;return l()(this,t),r=n.apply(this,arguments),r.state={tabName:"general"},r}p()(t,e);var n=r(t);return s()(t,[{key:"hasSliderSettings",value:function(){var e=this.props.attributes,t=e.sliderAnimationEffect,n=e.sliderAutoplay,r=e.pauseOnHover,o=e.sliderAutoplaySpeed,i=e.sliderAnimationSpeed;return void 0!=t||n!=k.a.sliderAutoplay.default||r!=k.a.pauseOnHover.default||o!=k.a.sliderAutoplaySpeed.default||i!=k.a.sliderAnimationSpeed.default}},{key:"render",value:function(){var e=this,t=this.props,n=t.addNewSlide,r=t.setAttributes,o=t.clientId,a=this.props.attributes,l=a.imageSize,c=a.slideCount,s=a.contentMaxWidth,u=a.minHeight,p=a.verticalAlign,d=a.horizontalAlign,m=a.textColor,g=a.overlayColor,f=a.overlayOpacity,O=a.contentAnimation,E=this.props.attributes,j=E.contentAnimationDuration,x=E.contentAnimationDelay,I=E.sliderAnimationEffect,L=E.sliderAutoplay,z=E.pauseOnHover,V=E.sliderAutoplaySpeed,F=E.sliderAnimationSpeed,H=this.props.attributes,G=H.sliderArrows,W=H.sliderDots,U=this.state.tabName;if(!(0,wp.data.select)("core/block-editor").getBlock(o))return wp.element.createElement(S,null);var q=function(){return r({sliderAnimationEffect:void 0,sliderAutoplay:k.a.sliderAutoplay.default,pauseOnHover:k.a.pauseOnHover.default,sliderAutoplaySpeed:k.a.sliderAutoplaySpeed.default,sliderAnimationSpeed:k.a.sliderAnimationSpeed.default})},Q=function(){return O!==k.a.contentAnimation.default||x!==k.a.contentAnimationDelay.default||j!==k.a.contentAnimationDuration.default},K=function(){r({contentAnimation:k.a.contentAnimation.default,contentAnimationDelay:k.a.contentAnimationDelay.default,contentAnimationDuration:k.a.contentAnimationDuration.default})};return wp.element.createElement(S,{key:"inspector"},wp.element.createElement(w.a,{state:U,stateName:"tabName",onChangeTab:function(t,n){e.setState(i()({},t,n))},tabs:["general","style","advanced"]}),"general"===U&&wp.element.createElement(C,null,wp.element.createElement(R,null,wp.element.createElement(N,{label:Object(b.__)("Number of slides","getwid"),value:c,onChange:function(e){return n(e)},min:1,max:12}),wp.element.createElement(B,{label:Object(b.__)("Image Size","getwid"),help:Object(b.__)("For images from Media Library only.","getwid"),value:l,onChange:function(e){r({imageSize:e})},options:Getwid.settings.image_sizes}),wp.element.createElement(T,{label:Object(b.__)("Slider Minimum Height","getwid")},wp.element.createElement(h.a,{value:u,units:[{label:"px",value:"px"},{label:"vh",value:"vh"},{label:"vw",value:"vw"},{label:"%",value:"%"}],onChange:function(e){return r({minHeight:e})}})),wp.element.createElement(N,{label:Object(b.__)("Content Area Width","getwid"),value:void 0!==s?s:"",onChange:function(e){r({contentMaxWidth:e})},allowReset:!0,min:0,max:2e3,step:1}),wp.element.createElement(B,{label:Object(b.__)("Content Area Vertical Alignment","getwid"),value:void 0!==p?p:"center",onChange:function(e){return r({verticalAlign:e})},options:[{value:"top",label:Object(b.__)("Top","getwid")},{value:"center",label:Object(b.__)("Middle","getwid")},{value:"bottom",label:Object(b.__)("Bottom","getwid")}]}),wp.element.createElement(B,{label:Object(b.__)("Content Area Horizontal Alignment","getwid"),value:void 0!==d?d:"center",onChange:function(e){return r({horizontalAlign:e})},options:[{value:"left",label:Object(b.__)("Left","getwid")},{value:"center",label:Object(b.__)("Center","getwid")},{value:"right",label:Object(b.__)("Right","getwid")}]}))),"style"===U&&wp.element.createElement(C,null,wp.element.createElement(R,null,wp.element.createElement(N,{label:Object(b.__)("Overlay Opacity","getwid"),value:void 0!==f?f:0,onChange:function(e){return r({overlayOpacity:e})},min:0,max:100,step:1}),wp.element.createElement(y.a,{colorSettings:[{title:Object(b.__)("Text Color","getwid"),colors:{customColor:m},changeColor:function(e){return r({textColor:e})}},{title:Object(b.__)("Background Color","getwid"),colors:{customColor:g},changeColor:function(e){return r({overlayColor:e})}}]})),wp.element.createElement(R,{title:Object(b.__)("Padding","getwid"),initialOpen:!1},Object(_.f)(this))),"advanced"===U&&wp.element.createElement(C,null,wp.element.createElement(R,{title:Object(b.__)("Text Animation","getwid"),initialOpen:!0},function(){return wp.element.createElement(C,null,wp.element.createElement(v.a,{label:Object(b.__)("Animation Effect","getwid"),allowAnimation:["Entrance","Seeker"],value:void 0!==O?O:"",onChange:function(e){return r({contentAnimation:e})}}),wp.element.createElement(B,{label:Object(b.__)("Duration","getwid"),value:void 0!==j?j:"",onChange:function(e){return r({contentAnimationDuration:e})},options:[{value:"3000ms",label:Object(b.__)("Very Slow","getwid")},{value:"2000ms",label:Object(b.__)("Slow","getwid")},{value:"1500ms",label:Object(b.__)("Normal","getwid")},{value:"800ms",label:Object(b.__)("Fast","getwid")},{value:"400ms",label:Object(b.__)("Very Fast","getwid")}]}),wp.element.createElement(M,{label:Object(b.__)("Delay, ms","getwid"),value:void 0!==x?x.replace("ms",""):"",type:"number",min:0,onChange:function(e){e=parseInt(e),e=isNaN(e)?void 0:"".concat(e,"ms"),r({contentAnimationDelay:e})}}),wp.element.createElement(T,null,wp.element.createElement(P,{isLink:!0,onClick:K,disabled:!Q()},Object(b.__)("Reset","getwid"))))}()),wp.element.createElement(R,{title:Object(b.__)("Slider Settings","getwid"),initialOpen:!1},function(){return wp.element.createElement(C,null,wp.element.createElement(D,{label:Object(b.__)("Animation Effect","getwid"),selected:void 0!==I?I:"",options:[{value:"",label:Object(b.__)("Slide","getwid")},{value:"fade",label:Object(b.__)("Fade","getwid")}],onChange:function(e){return r({sliderAnimationEffect:e})}}),wp.element.createElement(A,{label:Object(b.__)("Enable Slideshow","getwid"),checked:L,onChange:function(){return r({sliderAutoplay:!L})}}),L&&wp.element.createElement(C,null,wp.element.createElement(A,{label:Object(b.__)("Pause On Hover","getwid"),checked:z,onChange:function(){return r({pauseOnHover:!z})}}),wp.element.createElement(M,{label:Object(b.__)("Slideshow Speed","getwid"),type:"number",value:void 0!==V?V:"",min:0,onChange:function(e){return r({sliderAutoplaySpeed:e})}})),wp.element.createElement(M,{label:Object(b.__)("Animation Speed","getwid"),type:"number",value:void 0!==F?F:"",min:0,onChange:function(e){return r({sliderAnimationSpeed:e})}}),wp.element.createElement(T,null,wp.element.createElement(P,{isLink:!0,onClick:q,disabled:!e.hasSliderSettings()},Object(b.__)("Reset","getwid"))),wp.element.createElement(D,{label:Object(b.__)("Arrows","getwid"),selected:G,options:[{value:"outside",label:Object(b.__)("Outside","getwid")},{value:"inside",label:Object(b.__)("Inside","getwid")},{value:"none",label:Object(b.__)("None","getwid")}],onChange:function(e){return r({sliderArrows:e})}}),wp.element.createElement(D,{label:Object(b.__)("Dots","getwid"),selected:W,options:[{value:"outside",label:Object(b.__)("Outside","getwid")},{value:"inside",label:Object(b.__)("Inside","getwid")},{value:"none",label:Object(b.__)("None","getwid")}],onChange:function(e){return r({sliderDots:e})}}))}())))}}]),t}(E);t.a=I},function(e,t){},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=w()(e);if(t()){var o=w()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f()(this,n)}}var o=n(9),i=n.n(o),a=n(7),l=n.n(a),c=n(2),s=n.n(c),u=n(4),p=n.n(u),d=n(5),m=n.n(d),g=n(6),f=n.n(g),b=n(3),w=n.n(b),h=(n(0),n(51)),v=(n.n(h),n(8)),y=n.n(v),_=wp.element.Component,k=wp.blockEditor||wp.editor,O=k.InnerBlocks,E=function(e){function t(){return s()(this,t),n.apply(this,arguments)}m()(t,e);var n=r(t);return p()(t,[{key:"render",value:function(){var e,t=this.props,n=t.baseClass,r=t.className,o=this.props.attributes,a=o.contentAnimation,c=o.contentAnimationDuration,s=o.contentAnimationDelay,u=o.sliderAnimationEffect,p=o.sliderAutoplay,d=this.props.attributes,m=d.pauseOnHover,g=d.sliderAutoplaySpeed,f=d.sliderAnimationSpeed,b=d.sliderArrays,w=d.sliderArrows,h=d.sliderDots,v={className:y()(r,"".concat(n,"--current-slide-").concat(1),(e={},l()(e,"has-arrows-".concat(w),void 0!=w),l()(e,"has-dots-".concat(h),void 0!=h),e)),"data-labels":b,"data-animation":void 0!==a?a:"","data-duration":void 0!==c?c:"1500ms","data-delay":void 0!==s?s:"0ms"},_={"data-slide-effect":u,"data-slide-autoplay":p,"data-slide-pause-on-hover":m,"data-slide-autoplay-speed":g,"data-slide-speed":f,"data-infinite":!0};return wp.element.createElement("div",v,wp.element.createElement("div",{className:"".concat(n,"__slides-wrapper")},wp.element.createElement("div",i()({className:"".concat(n,"__content")},_),wp.element.createElement(O.Content,null))))}}]),t}(_);t.a=E},function(e,t,n){"use strict";var r={slideCount:{type:"number",default:3},imageSize:{type:"string",default:"large"},align:{type:"string"},contentMaxWidth:{type:"number"},minHeight:{type:"string"},verticalAlign:{type:"string"},horizontalAlign:{type:"string"},paddingTop:{type:"string"},paddingBottom:{type:"string"},paddingLeft:{type:"string"},paddingRight:{type:"string"},textColor:{type:"string"},overlayColor:{type:"string"},overlayOpacity:{type:"number",default:"30"},contentAnimation:{type:"string",source:"attribute",selector:".wp-block-getwid-media-text-slider",attribute:"data-animation",default:"fadeIn"},contentAnimationDuration:{type:"string",source:"attribute",selector:".wp-block-getwid-media-text-slider",attribute:"data-duration",default:"1500ms"},contentAnimationDelay:{type:"string",source:"attribute",selector:".wp-block-getwid-media-text-slider",attribute:"data-delay",default:"0ms"},sliderAnimationEffect:{type:"string",source:"attribute",selector:".wp-block-getwid-media-text-slider__content",attribute:"data-slide-effect"},sliderAutoplay:{type:"boolean",default:!1},pauseOnHover:{type:"boolean",default:!0},sliderAutoplaySpeed:{type:"string",source:"attribute",selector:".wp-block-getwid-media-text-slider__content",attribute:"data-slide-autoplay-speed",default:5e3},sliderAnimationSpeed:{type:"string",source:"attribute",selector:".wp-block-getwid-media-text-slider__content",attribute:"slide-speed",default:1e3},sliderArrays:{type:"string",default:'[{"text":"Slide 1"},{"text":"Slide 2"},{"text":"Slide 3"}]'}};t.a=r},function(e,t){function n(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==l.return||l.return()}finally{if(o)throw i}}return n}e.exports=n},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=f()(e);if(t()){var o=f()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m()(this,n)}}var o=n(9),i=n.n(o),a=n(2),l=n.n(a),c=n(4),s=n.n(c),u=n(5),p=n.n(u),d=n(6),m=n.n(d),g=n(3),f=n.n(g),b=(n(0),n(51)),w=(n.n(b),n(8)),h=n.n(w),v=wp.element.Component,y=wp.blockEditor||wp.editor,_=y.InnerBlocks,k=function(e){function t(){return l()(this,t),n.apply(this,arguments)}p()(t,e);var n=r(t);return s()(t,[{key:"stripStringRender",value:function(e){return e.toLowerCase().replace(/[^0-9a-z-]/g,"")}},{key:"render",value:function(){var e=this.props.attributes,t=e.contentAnimation,n=e.contentAnimationDuration,r=e.contentAnimationDelay,o=e.sliderAnimationEffect,a=e.sliderAutoplay,l=this.props.attributes,c=l.pauseOnHover,s=l.sliderAutoplaySpeed,u=l.sliderAnimationSpeed,p=this.props,d=p.baseClass,m=p.className,g=h()(m,"".concat(d,"--current-slide-").concat(1)),f={"data-animation":void 0!==t?t:"","data-duration":void 0!==n?n:"1500ms","data-delay":void 0!==r?r:"0ms"},b={"data-slide-effect":o,"data-slide-autoplay":a,"data-slide-pause-on-hover":c,"data-slide-autoplay-speed":s,"data-slide-speed":u,"data-infinite":!0};return wp.element.createElement("div",i()({className:g},f),wp.element.createElement("div",{className:"".concat(d,"__slides-wrapper")},wp.element.createElement("div",i()({className:"".concat(d,"__content")},b),wp.element.createElement(_.Content,null))))}}]),t}(v);t.a=k},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(n,!0).forEach(function(t){a()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var i=n(7),a=n.n(i),l=(n(0),n(55)),c=n(150),s=n(151),u=n(152),p=n(153),d=n(1),m=(n.n(d),n(49)),g=wp.blocks.registerBlockType,f="wp-block-getwid-media-text-slider-slide";g("getwid/media-text-slider-slide",{title:Object(d.__)("Slide","getwid"),icon:{src:"format-gallery"},keywords:[],category:"getwid-blocks",parent:["getwid/media-text-slider"],attributes:u.a,deprecated:[{attributes:p.a,migrate:function(e){return o(o({},e),{},{slideId:e.id})},save:function(e){return wp.element.createElement(s.a,o(o({},e),{},{baseClass:f}))}}],getEditWrapperProps:function(e){return{"data-slide":void 0!==e.slideId?e.slideId:e.id}},edit:function(e){return wp.element.createElement(m.a,null,function(t){var n=t.updateContentAttributes;return wp.element.createElement(l.b,o(o(o({},e),{updateContentAttributes:n}),{},{baseClass:f}))})},save:function(e){return wp.element.createElement(c.a,o(o({},e),{},{baseClass:f}))}})},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=m()(e);if(t()){var o=m()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p()(this,n)}}var o=n(2),i=n.n(o),a=n(4),l=n.n(a),c=n(5),s=n.n(c),u=n(6),p=n.n(u),d=n(3),m=n.n(d),g=(n(0),n(21)),f=n(1),b=(n.n(f),g.a.convertHorizontalAlignToStyle),w=g.a.convertVerticalAlignToStyle,h=window,v=(h.jQuery,wp.element.Component),y=wp.blockEditor||wp.editor,_=y.InnerBlocks,k=function(e){function t(){return i()(this,t),n.apply(this,arguments)}s()(t,e);var n=r(t);return l()(t,[{key:"render",value:function(){var e,t,n,r,o,i,a,l=this.props.baseClass,c=this.props.attributes,s=c.slideId,u=c.outerParent;if(void 0!==u.attributes){var p=u.attributes;e=p.paddingTop,t=p.paddingBottom,n=p.paddingLeft,r=p.paddingRight,o=p.minHeight,i=p.horizontalAlign,a=p.verticalAlign,p.contentMaxWidth}var d={};void 0!==u.attributes&&(d={paddingTop:e||null,paddingBottom:t||null,paddingLeft:n||null,paddingRight:r||null,minHeight:o||null,justifyContent:i?b(i):null,alignItems:a?w(a):null});var m={};return void 0!==u.attributes&&(m={minHeight:u.attributes.minHeight?u.attributes.minHeight:null}),wp.element.createElement("div",{style:m,className:"".concat(l," ").concat(l,"__content-wrapper slide-").concat(s)},wp.element.createElement("div",{style:d,className:"".concat(l,"__content")},wp.element.createElement(_.Content,null)))}}]),t}(v);t.a=k},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=m()(e);if(t()){var o=m()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p()(this,n)}}var o=n(2),i=n.n(o),a=n(4),l=n.n(a),c=n(5),s=n.n(c),u=n(6),p=n.n(u),d=n(3),m=n.n(d),g=(n(0),n(21)),f=n(1),b=(n.n(f),g.a.convertHorizontalAlignToStyle),w=g.a.convertVerticalAlignToStyle,h=window,v=(h.jQuery,wp.element.Component),y=wp.blockEditor||wp.editor,_=y.InnerBlocks,k=function(e){function t(){return i()(this,t),n.apply(this,arguments)}s()(t,e);var n=r(t);return l()(t,[{key:"render",value:function(){var e=this.props.baseClass,t=this.props.attributes,n=t.id,r=t.outerParent,o={paddingTop:void 0!==r&&void 0!==r.attributes.paddingTop?r.attributes.paddingTop:null,paddingBottom:void 0!==r&&void 0!==r.attributes.paddingBottom?r.attributes.paddingBottom:null,paddingLeft:void 0!==r&&void 0!==r.attributes.paddingLeft?r.attributes.paddingLeft:null,paddingRight:void 0!==r&&void 0!==r.attributes.paddingRight?r.attributes.paddingRight:null,justifyContent:void 0!==r&&void 0!==r.attributes.horizontalAlign?b(r.attributes.horizontalAlign):null,alignItems:void 0!==r&&void 0!==r.attributes.verticalAlign?w(r.attributes.verticalAlign):null},i={minHeight:void 0!==r&&void 0!==r.attributes.minHeight?r.attributes.minHeight:null};return wp.element.createElement("div",{style:i,className:"".concat(e," ").concat(e,"__content-wrapper slide-").concat(n)},wp.element.createElement("div",{style:o,className:"".concat(e,"__content")},wp.element.createElement(_.Content,null)))}}]),t}(v);t.a=k},function(e,t,n){"use strict";var r={slideId:{type:"number",default:1},outerParent:{type:"object",default:{}},mediaId:{type:"number"},url:{type:"string"}};t.a=r},function(e,t,n){"use strict";var r={id:{type:"number",default:1},outerParent:{type:"object"},mediaId:{type:"number"},url:{type:"string"}};t.a=r},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(n,!0).forEach(function(t){a()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var i=n(7),a=n.n(i),l=(n(0),n(155)),c=n(158),s=n(159),u=n(160),p=n(55),d=n(1),m=(n.n(d),wp.blocks.registerBlockType),g="wp-block-getwid-media-text-slider-slide-content";m("getwid/media-text-slider-slide-content",{title:Object(d.__)("Image","getwid"),category:"getwid-blocks",parent:["getwid/media-text-slider-slide"],icon:{src:"format-image"},keywords:[],supports:{html:!1},deprecated:[{attributes:u.a,save:function(e){return wp.element.createElement(s.a,o(o({},e),{},{baseClass:g}))}}],attributes:u.a,edit:function(e){return wp.element.createElement(p.a,null,function(t){var n=t.updateContentAttributes;return wp.element.createElement(l.a,o(o(o({},e),{updateContentAttributes:n}),{},{baseClass:g}))})},save:function(e){return wp.element.createElement(c.a,o(o({},e),{},{baseClass:g}))}})},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(n,!0).forEach(function(t){l()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function i(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=_()(e);if(t()){var o=_()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return v()(this,n)}}var a=n(7),l=n.n(a),c=n(9),s=n.n(c),u=n(2),p=n.n(u),d=n(4),m=n.n(d),g=n(11),f=n.n(g),b=n(5),w=n.n(b),h=n(6),v=n.n(h),y=n(3),_=n.n(y),k=(n(0),n(156)),O=n(157),E=n(56),C=(n.n(E),n(1)),j=(n.n(C),n(8)),S=n.n(j),x=n(10),P=(n.n(x),wp.data.withSelect),T=wp.compose.compose,R=wp.blockEditor||wp.editor,N=R.InnerBlocks,A=wp.element,B=A.Component,D=A.Fragment,M=wp.components.TextareaControl,I=[["core/heading",{placeholder:Object(C.__)("Write heading…","getwid")}],["core/paragraph",{placeholder:Object(C.__)("Write text…","getwid")}]],L=function(e){function t(){var e;return p()(this,t),e=n.apply(this,arguments),e.onSelectMedia=e.onSelectMedia.bind(f()(e)),e}w()(t,e);var n=i(t);return m()(t,[{key:"onSelectMedia",value:function(e){var t,n,r,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",a=this.props.attributes.innerParent,l=this.props.setAttributes;if(e){if(t=void 0!==e.media_type&&e.media_type?"image"===e.media_type?"image":"video":e.type,"image"===t&&(r=o?i:void 0!==a&&void 0!==a.attributes.imageSize?a.attributes.imageSize:"full",n=Object(x.get)(e,["media_details","sizes",r,"source_url"])||Object(x.get)(e,["media_details","sizes","large","source_url"])||Object(x.get)(e,["media_details","sizes","full","source_url"])||Object(x.get)(e,["sizes",r,"url"])||e.url||e.source_url),o)return n;l({mediaAlt:e.alt,mediaId:e.id,mediaUrl:n||e.url||e.source_url,mediaType:t})}}},{key:"componentWillReceiveProps",value:function(e){var t=this.props.imgObj,n=e.attributes.innerParent;if(t&&n){var r=this.onSelectMedia,o=n.attributes.imageSize;void 0!==this.props.attributes.innerParent&&(Object(x.isEqual)(o,this.props.attributes.innerParent.attributes.imageSize)||(e.attributes.mediaUrl=r(t,!0,o)))}}},{key:"renderMediaArea",value:function(){var e=this.props,t=e.attributes,n=e.baseClass,r=e.setAttributes,o=t.mediaAlt,i=t.mediaId,a=t.mediaType,l=t.mediaUrl,c=t.innerParent;return a||r({mediaType:"image"}),wp.element.createElement(O.a,s()({className:"".concat(n,"__media"),onSelectMedia:this.onSelectMedia},{mediaAlt:o,mediaId:i,mediaType:a,mediaUrl:l,innerParent:c}))}},{key:"componentDidUpdate",value:function(e,t){var n=this.props.imgObj,r=e.attributes.innerParent;if(r&&n){var o=this.onSelectMedia,i=r.attributes.imageSize;Object(x.isEqual)(i,this.props.attributes.innerParent.attributes.imageSize)||o(n)}r||this.props.updateContentAttributes(this.props.clientId)}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.isSelected,r=e.setAttributes,i=this.props.attributes,a=i.mediaAlt,l=i.mediaUrl,c=i.mediaType,u=i.innerParent,p=S()(t,{"is-selected":n}),d=function(e){r({mediaAlt:e})},m=(wp.element.createElement(D,null,"image"===c&&wp.element.createElement(M,{value:a,onChange:d})),{color:void 0!=u&&void 0!==u.attributes.textColor?u.attributes.textColor:null});return wp.element.createElement(D,null,wp.element.createElement(k.a,s()({},o(o(o({},this.props),{setAttributes:r}),{onSelectMedia:this.onSelectMedia}),{key:"inspector"})),wp.element.createElement("div",{className:p},this.renderMediaArea(),wp.element.createElement("div",{className:"".concat(t,"__content"),style:m},wp.element.createElement("div",{className:"".concat(t,"__content-wrapper")},l&&wp.element.createElement(N,{templateLock:!1,template:I,templateInsertUpdatesSelection:!1})))))}}]),t}(B);t.a=T([P(function(e,t){var n=e("core"),r=n.getMedia,o=t.attributes.mediaId;return{imgObj:o?r(o):null}})])(L)},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=m()(e);if(t()){var o=m()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p()(this,n)}}var o=n(2),i=n.n(o),a=n(4),l=n.n(a),c=n(5),s=n.n(c),u=n(6),p=n.n(u),d=n(3),m=n.n(d),g=(n(0),n(1)),f=(n.n(g),n(14)),b=wp.element.Component,w=wp.blockEditor||wp.editor,h=w.InspectorControls,v=wp.components.PanelBody,y=function(e){function t(e){return i()(this,t),n.apply(this,arguments)}s()(t,e);var n=r(t);return l()(t,[{key:"render",value:function(){var e=this.props.attributes,t=e.mediaId,n=e.mediaUrl,r=this.props,o=r.setAttributes,i=r.onSelectMedia,a=r.clientId;return(0,wp.data.select)("core/block-editor").getBlock(a)?wp.element.createElement(h,{key:"inspector"},wp.element.createElement(v,{title:Object(g.__)("Image","getwid"),initialOpen:!0},wp.element.createElement(f.e,{label:Object(g.__)("Image","getwid"),removeButton:!1,url:n,id:t,onSelectMedia:i,onRemoveMedia:function(){return o({mediaUrl:void 0,mediaId:void 0})}}))):wp.element.createElement(h,null)}}]),t}(b);t.a=y},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=m()(e);if(t()){var o=m()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p()(this,n)}}n.d(t,"a",function(){return S});var o=n(2),i=n.n(o),a=n(4),l=n.n(a),c=n(5),s=n.n(c),u=n(6),p=n.n(u),d=n(3),m=n.n(d),g=(n(0),n(1)),f=(n.n(g),window),b=(f.jQuery,wp.element),w=b.Component,h=b.Fragment,v=wp.components,y=v.ToolbarButton,_=v.ToolbarGroup,k=wp.blockEditor||wp.editor,O=k.BlockControls,E=k.MediaPlaceholder,C=k.MediaUpload,j=["image"],S=function(e){function t(){return i()(this,t),n.apply(this,arguments)}s()(t,e);var n=r(t);return l()(t,[{key:"renderToolbarEditButton",value:function(){var e=this.props,t=e.mediaId,n=e.onSelectMedia;return wp.element.createElement(O,null,wp.element.createElement(_,null,wp.element.createElement(C,{onSelect:n,allowedTypes:j,value:t,render:function(e){var t=e.open;return wp.element.createElement(y,{className:"components-toolbar__control",label:Object(g.__)("Edit Media","getwid"),icon:"edit",onClick:t})}})))}},{key:"renderImage",value:function(){var e=this.props,t=e.mediaAlt,n=e.mediaUrl,r=e.innerParent,o=e.className,i={backgroundColor:void 0!==r&&void 0!==r.attributes.overlayColor?r.attributes.overlayColor:null,opacity:void 0!==r&&void 0!==r.attributes.overlayOpacity?r.attributes.overlayOpacity/100:null};return wp.element.createElement(h,null,this.renderToolbarEditButton(),wp.element.createElement("figure",{className:o},wp.element.createElement("img",{className:"".concat("wp-block-getwid-media-text-slider-slide-content","__image"),src:n,alt:t}),wp.element.createElement("div",{style:i,className:"".concat(o,"-overlay")})))}},{key:"renderVideo",value:function(){var e=this.props,t=e.mediaUrl,n=e.className;return wp.element.createElement(h,null,this.renderToolbarEditButton(),wp.element.createElement("figure",{className:n},wp.element.createElement("video",{controls:!0,src:t})))}},{key:"renderPlaceholder",value:function(){var e=this.props,t=e.onSelectMedia,n=e.className;return wp.element.createElement(E,{icon:"format-image",labels:{title:Object(g.__)("Image","getwid")},accept:"image/*",className:n,onSelect:t,allowedTypes:j})}},{key:"render",value:function(){var e=this.props,t=e.mediaUrl,n=e.mediaType;if(n&&t){var r=null;switch(n){case"image":r=this.renderImage();break;case"video":r=this.renderVideo()}return wp.element.createElement(h,null,r)}return this.renderPlaceholder()}}]),t}(w)},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=m()(e);if(t()){var o=m()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p()(this,n)}}var o=n(2),i=n.n(o),a=n(4),l=n.n(a),c=n(5),s=n.n(c),u=n(6),p=n.n(u),d=n(3),m=n.n(d),g=(n(0),n(57)),f=(n.n(g),n(1)),b=(n.n(f),n(10)),w=(n.n(b),window),h=(w.jQuery,wp.blockEditor||wp.editor),v=h.InnerBlocks,y=wp.element.Component,_=function(e){function t(){return i()(this,t),n.apply(this,arguments)}s()(t,e);var n=r(t);return l()(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.mediaAlt,r=t.mediaType,o=t.mediaUrl,i=t.mediaId,a=t.innerParent,l=e.baseClass,c={image:function(){return wp.element.createElement("img",{src:o,alt:n,className:"".concat(l,"__image")+(i&&"image"===r?" wp-image-".concat(i):"")})},video:function(){return wp.element.createElement("video",{controls:!0,src:o})}},s={backgroundColor:void 0!==a&&void 0!==a.attributes.overlayColor?a.attributes.overlayColor:null,opacity:void 0!==a&&void 0!==a.attributes.overlayOpacity?a.attributes.overlayOpacity/100:null},u={maxWidth:void 0!==a&&void 0!==a.attributes.contentMaxWidth?a.attributes.contentMaxWidth:null},p={color:void 0!==a&&void 0!==a.attributes.textColor?a.attributes.textColor:null};return wp.element.createElement("div",{style:u,className:l},wp.element.createElement("figure",{className:"".concat(l,"__media")},(c[r]||b.noop)(),wp.element.createElement("div",{className:"".concat(l,"__media-overlay"),style:s})),wp.element.createElement("div",{className:"".concat(l,"__content"),style:p},wp.element.createElement("div",{className:"".concat(l,"__content-wrapper")},wp.element.createElement(v.Content,null))))}}]),t}(y);t.a=_},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=m()(e);if(t()){var o=m()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p()(this,n)}}var o=n(2),i=n.n(o),a=n(4),l=n.n(a),c=n(5),s=n.n(c),u=n(6),p=n.n(u),d=n(3),m=n.n(d),g=(n(0),n(57)),f=(n.n(g),n(1)),b=(n.n(f),n(10)),w=(n.n(b),window),h=(w.jQuery,wp.blockEditor||wp.editor),v=h.InnerBlocks,y=wp.element.Component,_=function(e){function t(){return i()(this,t),n.apply(this,arguments)}s()(t,e);var n=r(t);return l()(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=t.mediaAlt,r=t.mediaType,o=t.mediaUrl,i=t.mediaId,a=t.innerParent,l=e.baseClass,c={image:function(){return wp.element.createElement("img",{src:o,alt:n,className:"".concat(l,"__image")+(i&&"image"===r?" wp-image-".concat(i):null)})},video:function(){return wp.element.createElement("video",{controls:!0,src:o})}},s={backgroundColor:void 0!==a&&void 0!==a.attributes.overlayColor?a.attributes.overlayColor:null,opacity:void 0!==a&&void 0!==a.attributes.overlayOpacity?a.attributes.overlayOpacity/100:null},u={maxWidth:void 0!==a&&void 0!==a.attributes.contentMaxWidth?a.attributes.contentMaxWidth:null},p={color:void 0!==a&&void 0!==a.attributes.textColor?a.attributes.textColor:null};return wp.element.createElement("div",{style:u,className:l},wp.element.createElement("figure",{className:"".concat(l,"__media")},(c[r]||b.noop)(),wp.element.createElement("div",{className:"".concat(l,"__media-overlay"),style:s})),wp.element.createElement("div",{className:"".concat(l,"__content"),style:p},wp.element.createElement("div",{className:"".concat(l,"__content-wrapper")},wp.element.createElement(v.Content,null))))}}]),t}(y);t.a=_},function(e,t,n){"use strict";var r={mediaAlt:{type:"string",source:"attribute",selector:"figure img",attribute:"alt",default:""},mediaId:{type:"number"},mediaUrl:{type:"string",source:"attribute",selector:"figure video,figure img",attribute:"src"},mediaType:{type:"string"},innerParent:{type:"object"}};t.a=r},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(n,!0).forEach(function(t){a()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var i=n(7),a=n.n(i),l=(n(0),n(1)),c=(n.n(l),n(10)),s=(n.n(c),n(162)),u=n(166),p=n(167),d=n(168),m=n(169),g=n(37),f=n(12),b=n(170),w=(n.n(b),wp.blocks),h=w.registerBlockType,v=w.createBlock,y=["center","wide","full"],_="wp-block-getwid-images-slider",k={attributes:g.a,isEligible:function(e,t){return!0},migrate:function(e){var t=e.sliderArrows,n=e.sliderDots;return o(o({},e),{sliderArrows:Object(c.isEqual)(t,"ouside")?"outside":t,sliderDots:Object(c.isEqual)(n,"ouside")?"outside":n})}};h("getwid/images-slider",o(o({title:Object(l.__)("Image Slider","getwid"),category:"getwid-blocks",icon:wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 24 24"},wp.element.createElement("path",{d:"M20,8V4h-4v2h2v1v1v2v1v7h-7h-1H8H7H6v-2H4v4h4v4h16V8H20z M22,22H10v-2h10V10h2V22z"}),wp.element.createElement("path",{d:"M0,0v16h16V0H0z M14,2v8.19l-1.61-1.6l-2.16,2.15l-3.7-3.69L2,11.59V2H14z M2.41,14l4.13-4.13l3.7,3.69l2.16-2.15L14,13.02 V14H2.41z"}),wp.element.createElement("circle",{cx:"10",cy:"5.5",r:"1.5"})),keywords:[Object(l.__)("gallery","getwid"),Object(l.__)("carousel","getwid"),Object(l.__)("photo","getwid")],supports:{html:!1,inserter:!Getwid.disabled_blocks.includes("getwid/images-slider")},deprecated:[{attributes:o(o({},g.a),{},{imageCrop:{type:"boolean",default:!0}}),migrate:function(e){return e.imageCrop?e.imageFit="fill":e.imageFit="default",e},save:function(e){return wp.element.createElement(m.a,o(o({},e),{},{baseClass:_}))}},o(o({},k),{},{save:p.a}),o(o({},k),{},{save:function(e){return wp.element.createElement(d.a,o(o({},e),{},{baseClass:_}))}})],transforms:{from:[{type:"block",isMultiBlock:!0,blocks:["core/image"],transform:function(e){var t=e[0].align;t=Object(c.every)(e,["align",t])?t:void 0;var n=Object(c.filter)(e,function(e){var t=e.id,n=e.url;return t&&n});return v("getwid/images-slider",{images:n.map(function(e){return{id:e.id,url:e.url,alt:e.alt,caption:e.caption}}),ids:n.map(function(e){return e.id}),align:t})}},{type:"block",blocks:["core/gallery"],transform:function(e){return v("getwid/images-slider",e)}}],to:[{type:"block",blocks:["core/gallery"],transform:function(e){return v("core/gallery",e)}},{type:"block",blocks:["getwid/images-stack"],transform:function(e){return v("getwid/images-stack",e)}},{type:"block",blocks:["core/image"],transform:function(e){var t=e.images,n=e.align;return t.length>0?t.map(function(e){var t=e.id,r=e.url,o=e.alt,i=e.caption;return v("core/image",{id:t,url:r,alt:o,caption:i,align:n})}):v("core/image",{align:n})}}]},attributes:g.a,getEditWrapperProps:function(e){var t=e.align;if(-1!==y.indexOf(t))return{"data-align":t}}},Object(f.b)("getwid/images-slider",s.a)),{},{save:function(e){return wp.element.createElement(u.a,o(o({},e),{},{baseClass:_}))}}))},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(n,!0).forEach(function(t){m()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function i(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=C()(e);if(t()){var o=C()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return O()(this,n)}}var a=n(9),l=n.n(a),c=n(33),s=n.n(c),u=n(15),p=n.n(u),d=n(7),m=n.n(d),g=n(2),f=n.n(g),b=n(4),w=n.n(b),h=n(11),v=n.n(h),y=n(5),_=n.n(y),k=n(6),O=n.n(k),E=n(3),C=n.n(E),j=(n(0),n(1)),S=(n.n(j),n(8)),x=n.n(S),P=n(10),T=(n.n(P),n(37)),R=n(163),N=n(164),A=n(165),B=(n.n(A),wp.compose.compose),D=wp.data.withSelect,M=wp.element,I=M.Component,L=M.Fragment,z=wp.components,V=z.ToolbarButton,F=z.ToggleControl,H=z.DropZone,G=z.Toolbar,W=(z.ToolbarItem,z.Dashicon),U=z.TextControl,q=wp.blockEditor||wp.editor,Q=q.BlockControls,K=q.MediaUpload,Y=q.MediaPlaceholder,J=q.mediaUpload,$=q.BlockAlignmentToolbar,Z=q.BlockIcon,X=q.URLInput,ee=window,te=ee.jQuery,ne=["wide","full"],re=["image"],oe="wp-block-getwid-images-slider",ie=function(e,t,n){var r=n.attributes.images,o=Object(P.pick)(e,["id","link"]);return o.original_url=e.url||e.source_url,o.alt=e.alt||e.alt_text,o.url=Object(P.get)(e,["media_details","sizes",t,"source_url"])||Object(P.get)(e,["media_details","sizes","large","source_url"])||Object(P.get)(e,["media_details","sizes","full","source_url"])||Object(P.get)(e,["sizes",t,"url"])||e.url,te.each(r,function(t,n){if(n.id==e.id)return o.custom_link=n.custom_link,!1}),"string"==typeof e.caption||void 0===e.caption?o.caption=e.caption:o.caption=e.caption.raw,o},ae=function(e){function t(e){var r;return f()(this,t),r=n.apply(this,arguments),r.changeState=r.changeState.bind(v()(r)),r.getState=r.getState.bind(v()(r)),r.onSelectImages=r.onSelectImages.bind(v()(r)),r.setImageAttributes=r.setImageAttributes.bind(v()(r)),r.addFiles=r.addFiles.bind(v()(r)),r.uploadFromFiles=r.uploadFromFiles.bind(v()(r)),r.setAttributes=r.setAttributes.bind(v()(r)),r.onSetNewTab=r.onSetNewTab.bind(v()(r)),r.state={isUpdate:!1},r}_()(t,e);var n=i(t);return w()(t,[{key:"onSetNewTab",value:function(e,t){var n=this.props.attributes.images,r=e?"_blank":void 0,o=n[t].custom_link_rel;r&&!n[t].custom_link_rel?o="noreferrer noopener":r||"noreferrer noopener"!==n[t].custom_link_rel||(o=void 0),this.setImageAttributes(t,{custom_link_target:r,custom_link_rel:o})}},{key:"changeState",value:function(e,t){this.setState(m()({},e,t))}},{key:"getState",value:function(e){return this.state[e]}},{key:"setAttributes",value:function(e){if(e.ids)throw new Error('The "ids" attribute should not be changed directly. It is managed automatically when "images" attribute changes');e.images&&(e=o(o({},e),{},{ids:Object(P.map)(e.images,"id")})),this.props.setAttributes(e)}},{key:"checkChangeImageOrder",value:function(e,t){var n=Object(P.sortBy)(t.attributes.images,function(e){return e.id});n=n.map(function(e){return!!e.id&&e.id.toString()});var r=Object(P.sortBy)(e,function(e){return e.id});return r=r.map(function(e){return!!e.id&&e.id.toString()}),this.flag=!1,Object(P.isEqual)(n,r)&&(this.flag=!0),this.flag}},{key:"onSelectImages",value:function(e){var t=this,n=this.props.setAttributes,r=this.props.attributes.imageSize;["full","large","medium","thumbnail"].includes(r)||(r=T.a.imageSize.default,n({imageSize:r})),this.checkChangeImageOrder(e,this.props),this.setAttributes({images:e.map(function(e){return ie(e,r,t.props)})})}},{key:"setImageAttributes",value:function(e,t){var n=this.props.attributes.images,r=this.setAttributes;if(n[e]){r({images:[].concat(p()(n.slice(0,e)),[o(o({},n[e]),t)],p()(n.slice(e+1)))})}}},{key:"uploadFromFiles",value:function(e){this.addFiles(e.target.files)}},{key:"addFiles",value:function(e){var t=this,n=this.props.attributes.imageSize,r=this.setAttributes,o=this.props.attributes.images||[];["full","large","medium","thumbnail"].includes(n)||(s()("imageSize"),n=T.a.imageSize.default,r({imageSize:n})),J({allowedTypes:re,filesList:e,onFileChange:function(e){var i=e.map(function(e){return ie(e,n,t.props)});r({images:o.concat(i)})}})}},{key:"destroySlider",value:function(){var e=this.props.clientId,t=te("[data-block='".concat(e,"']")),n=te(".".concat(oe,"__wrapper"),t);n.hasClass("slick-initialized")&&n.slick("unslick")}},{key:"initSlider",value:function(){var e=this.props.clientId,t=this.props.attributes,n=t.sliderAutoplay,r=t.sliderAutoplaySpeed,o=t.sliderInfinite,i=t.linkTo,a=this.props.attributes,l=a.sliderAnimationEffect,c=a.sliderSlidesToShow,s=a.sliderSlidesToScroll,u=a.slideHeight,p=this.props.attributes,d=p.sliderAnimationSpeed,m=p.sliderCenterMode,g=p.sliderVariableWidth,f=p.sliderArrows,b=p.sliderDots,w=te("[data-block='".concat(e,"']")),h=te(".".concat(oe,"__wrapper"),w);h.length&&"function"==typeof h.imagesLoaded&&h.imagesLoaded().done(function(e){h.not(".slick-initialized").slick({arrows:"none"!=f,dots:"none"!=b,fade:"fade"==l,slidesToShow:"fade"==l?1:parseInt(c),slidesToScroll:parseInt(s),autoplaySpeed:parseInt(r),speed:parseInt(d),infinite:"custom"!=i&&o,autoplay:n,draggable:"custom"!=i,centerMode:m,variableWidth:g,pauseOnHover:!0,rows:0}),u&&te(".".concat(oe,"__item"),w).css("height",u)})}},{key:"componentDidMount",value:function(){this.props.attributes.images.length&&this.initSlider()}},{key:"checkURLsChanges",value:function(e){var t=!1,n=this.props.attributes.images;return n&&n.length&&e.attributes.images.length&&te.each(n,function(n,r){(void 0!==e.attributes.images[n]&&e.attributes.images[n].custom_link!=r.custom_link||void 0!==e.attributes.images[n]&&e.attributes.images[n].custom_link_target!=r.custom_link_target||void 0!==e.attributes.images[n]&&e.attributes.images[n].custom_link_rel!=r.custom_link_rel)&&(t=!0)}),t}},{key:"componentWillUpdate",value:function(e,t){var n=!this.flag&&this.checkURLsChanges(e);Object(P.isEqual)(e.attributes,this.props.attributes)||n||this.destroySlider()}},{key:"componentDidUpdate",value:function(e){var t=!this.flag&&this.checkURLsChanges(e);Object(P.isEqual)(e.attributes,this.props.attributes)||t||(this.initSlider(),this.flag=!1)}},{key:"render",value:function(){var e,t=this,n=this.props,r=n.setAttributes,i=n.isSelected,a=n.className,c=this.props.attributes,s=c.sliderSpacing,u=c.sliderArrows,p=c.sliderDots,d=c.linkTo,g=this.props.attributes,f=g.align,b=g.images,w=g.imageFit,h=g.showCaption,v=g.captionStyle,y=g.captionPosition,_=g.imageAlignment,k=g.sliderSlidesToShow,O=this.onSelectImages,E=this.getState,C=this.changeState,S=this.addFiles,T=wp.element.createElement(H,{onFilesDrop:S}),A=wp.element.createElement(L,null,wp.element.createElement(Q,null,wp.element.createElement($,{controls:ne,value:f,onChange:function(e){return r({align:e})}}),!!b.length&&wp.element.createElement(G,null,wp.element.createElement(K,{onSelect:O,allowedTypes:re,multiple:!0,gallery:!0,value:b.map(function(e){return!!e.id&&e.id}),render:function(e){var t=e.open;return wp.element.createElement(V,{className:"components-toolbar__control",label:Object(j.__)("Edit Slider","getwid"),icon:"edit",onClick:t})}}))));if(0===b.length)return wp.element.createElement(L,null,A,wp.element.createElement(Y,{icon:"format-gallery",className:oe,labels:{title:Object(j.__)("Image Slider","getwid"),instructions:Object(j.__)("Drag images, upload new ones or select files from your library.","getwid")},onSelect:O,accept:"image/*",allowedTypes:re,multiple:!0}));var B=x()(a,"has-arrows-".concat(u),"has-dots-".concat(p),(e={},m()(e,"has-captions",1==h),m()(e,"captions-style-".concat(v),1==h&&"underneath"!==y),m()(e,"captions-".concat(y),1==h),m()(e,"is-carousel",k>1),m()(e,"has-slides-gap-".concat(s),k>1),m()(e,"has-images-".concat(_),_),m()(e,"is-active",i),m()(e,"has-cropped-images","fill"===w),m()(e,"has-fitted-images","fit"===w),e),f?"align".concat(f):null),D=!!b.length,M=D&&Object(P.some)(b,function(e){return e.id});return wp.element.createElement(L,null,wp.element.createElement("div",{className:B},T,wp.element.createElement("div",{className:"".concat(oe,"__wrapper")},function(){if(b.length)return b.map(function(e,n){return wp.element.createElement(L,null,wp.element.createElement("div",{className:"".concat(oe,"__item"),key:e.id||e.url},wp.element.createElement(N.a,{showCaption:h,captionStyle:v,captionPosition:y,isSelected:i,setAttributes:function(e){return t.setImageAttributes(n,e)},image:e}),"custom"==d&&wp.element.createElement(L,null,wp.element.createElement("div",{className:"".concat(oe,"__url-field-wrapper")},wp.element.createElement("div",{className:"".concat(oe,"__url-field-container")},wp.element.createElement(W,{icon:"admin-links"}),wp.element.createElement(X,{className:"".concat(oe,"__url-field has-border"),autoFocus:!0,value:e.custom_link?e.custom_link:"",onChange:function(e){t.setImageAttributes(n,{custom_link:e})},disableSuggestions:!0})),wp.element.createElement("div",{className:"".concat(oe,"__url-rel-container")},wp.element.createElement(F,{className:"".concat(oe,"__url-toggle"),label:Object(j.__)("New Tab","getwid"),onChange:function(e){t.onSetNewTab(e,n)},checked:"_blank"===e.custom_link_target}),wp.element.createElement(U,{className:"".concat(oe,"__url-rel"),placeholder:Object(j.__)("Link Rel","getwid"),value:e.custom_link_rel||"",onChange:function(e){t.setImageAttributes(n,{custom_link_rel:e})}}))))))})}()),i&&wp.element.createElement(Y,{addToGallery:M,isAppender:D,className:"components-form-file-upload",disableMediaButtons:D&&!i,icon:!D&&wp.element.createElement(Z,{icon:icon}),labels:{title:!D&&Object(j.__)("Gallery"),instructions:!D&&Object(j.__)("Drag images, upload new ones or select files from your library.")},onSelect:O,accept:"image/*",allowedTypes:re,multiple:!0,value:M?b:void 0})),A,wp.element.createElement(R.a,l()({},o(o({},this.props),{},{pickRelevantMediaFiles:ie,changeState:C,getState:E}),{key:"inspector"})))}}]),t}(I);t.a=B([D(function(e,t){var n=e("core"),r=n.getMediaItems,o=t.attributes.ids;if(void 0!==o&&o.length>0){var i=r({include:o.join(","),per_page:o.length});return i?{imgObj:i}:{imgObj:[]}}})])(ae)},function(e,t,n){"use strict";function r(e){function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}return function(){var n,r=v()(e);if(t()){var o=v()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return w()(this,n)}}var o=n(7),i=n.n(o),a=n(13),l=n.n(a),c=n(2),s=n.n(c),u=n(4),p=n.n(u),d=n(11),m=n.n(d),g=n(5),f=n.n(g),b=n(6),w=n.n(b),h=n(3),v=n.n(h),y=(n(0),n(37)),_=n(14),k=n(19),O=n(1),E=(n.n(O),wp.element),C=E.Component,j=E.Fragment,S=wp.blockEditor||wp.editor,x=S.InspectorControls,P=wp.components,T=P.Button,R=P.BaseControl,N=P.PanelBody,A=P.ToggleControl,B=P.SelectControl,D=P.RadioControl,M=P.TextControl,I=function(e){function t(e){var r;return s()(this,t),r=n.apply(this,arguments),r.changeState=r.changeState.bind(m()(r)),r.state={tabName:"general"},r}f()(t,e);var n=r(t);return p()(t,[{key:"changeState",value:function(e,t){"object"==l()(e)?this.setState(e):"string"==typeof e&&this.setState(i()({},e,t))}},{key:"hasSliderSettings",value:function(){var e=this.props.attributes,t=e.sliderSlidesToShow,n=e.sliderSlidesToShowLaptop,r=e.sliderSlidesToShowTablet,o=e.sliderSlidesToShowMobile,i=e.sliderSlidesToScroll,a=e.sliderAutoplay,l=e.sliderAnimationEffect,c=this.props.attributes,s=c.sliderAutoplaySpeed,u=c.sliderInfinite,p=c.sliderAnimationSpeed,d=c.sliderCenterMode,m=c.sliderVariableWidth,g=c.sliderSpacing;return t!=y.a.sliderSlidesToShow.default||n!=y.a.sliderSlidesToShowLaptop.default||r!=y.a.sliderSlidesToShowTablet.default||o!=y.a.sliderSlidesToShowMobile.default||i!=y.a.sliderSlidesToScroll.default||a!=y.a.sliderAutoplay.default||l!=y.a.sliderAnimationEffect.default||s!=y.a.sliderAutoplaySpeed.default||u!=y.a.sliderInfinite.default||p!=y.a.sliderAnimationSpeed.default||d!=y.a.sliderCenterMode.default||m!=y.a.sliderVariableWidth.default||g!=y.a.sliderSpacing.default}},{key:"render",value:function(){var e=this,t=this.props,n=t.attributes,r=n.images,o=n.imageSize,i=n.imageFit,a=n.showCaption,l=n.captionStyle,c=n.captionPosition,s=n.linkTo,u=n.imageAlignment,p=n.sliderAnimationEffect,d=n.sliderSlidesToShow,m=n.sliderSlidesToShowLaptop,g=n.sliderSlidesToShowTablet,f=n.sliderSlidesToShowMobile,b=n.sliderSlidesToScroll,w=n.sliderAutoplay,h=n.sliderAutoplaySpeed,v=n.sliderInfinite,E=n.sliderAnimationSpeed,C=n.sliderCenterMode,S=n.sliderVariableWidth,P=n.sliderSpacing,I=n.sliderArrows,L=n.sliderDots,z=t.setAttributes,V=t.pickRelevantMediaFiles,F=t.imgObj,H=function(t){F.some(function(e){return void 0===e})||z({imageSize:t,images:F.map(function(n){return V(n,t,e.props)})})},G=function(){z({sliderSlidesToShow:y.a.sliderSlidesToShow.default,sliderSlidesToShowLaptop:y.a.sliderSlidesToShowLaptop.default,sliderSlidesToShowTablet:y.a.sliderSlidesToShowTablet.default,sliderSlidesToShowMobile:y.a.sliderSlidesToShowMobile.default,sliderSlidesToScroll:y.a.sliderSlidesToScroll.default,sliderAutoplay:y.a.sliderAutoplay.default,sliderAnimationEffect:y.a.sliderAnimationEffect.default,sliderAutoplaySpeed:y.a.sliderAutoplaySpeed.default,sliderInfinite:y.a.sliderInfinite.default,sliderAnimationSpeed:y.a.sliderAnimationSpeed.default,sliderCenterMode:y.a.sliderCenterMode.default,sliderVariableWidth:y.a.sliderVariableWidth.default,sliderSpacing:y.a.sliderSpacing.default})},W=this.state.tabName,U=this.changeState;return wp.element.createElement(x,null,wp.element.createElement(k.a,{state:W,stateName:"tabName",onChangeTab:U,tabs:["general","advanced"]}),"general"===W&&wp.element.createElement(j,null,wp.element.createElement(N,{initialOpen:!0},0!=F.length&&wp.element.createElement(B,{label:Object(O.__)("Image Size","getwid"),help:Object(O.__)("For images from Media Library only.","getwid"),value:o,onChange:H,options:Getwid.settings.image_sizes}),wp.element.createElement(B,{label:Object(O.__)("Image Fit","getwid"),value:i,onChange:function(e){z({imageFit:e}),"default"!==e&&"underneath"===c&&z({captionPosition:"bottom-center"})},options:[{value:"default",label:Object(O.__)("Default","getwid")},{value:"fill",label:Object(O.__)("Fill","getwid")},{value:"fit",label:Object(O.__)("Fit","getwid")}]}),wp.element.createElement(A,{label:Object(O.__)("Show Caption","getwid"),checked:a,onChange:function(){F.some(function(e){return void 0===e})||z({showCaption:!a,images:F.map(function(t){return V(t,o,e.props)})})}}),a&&wp.element.createElement(j,null,"underneath"!==c&&wp.element.createElement(B,{label:Object(O.__)("Caption Style","getwid"),value:l,onChange:function(e){return z({captionStyle:e})},options:[{value:"light",label:Object(O.__)("Light","getwid")},{value:"dark",label:Object(O.__)("Dark","getwid")}]}),wp.element.createElement(B,{label:Object(O.__)("Caption Position","getwid"),value:void 0!==c?c:"",onChange:function(e){z({captionPosition:e})},options:[{value:"top-left",label:Object(O.__)("Top Left","getwid")},{value:"top-center",label:Object(O.__)("Top Center","getwid")},{value:"top-right",label:Object(O.__)("Top Right","getwid")},{value:"bottom-left",label:Object(O.__)("Bottom Left","getwid")},{value:"bottom-center",label:Object(O.__)("Bottom Center","getwid")},{value:"bottom-right",label:Object(O.__)("Bottom Right","getwid")},{value:"underneath",label:Object(O.__)("Underneath","getwid"),disabled:"default"!==i}]})),wp.element.createElement(B,{label:Object(O.__)("Link to","getwid"),value:s,onChange:function(e){return z({linkTo:e})},options:[{value:"none",label:Object(O.__)("None","getwid")},{value:"attachment",label:Object(O.__)("Attachment Page","getwid")},{value:"media",label:Object(O.__)("Media File","getwid")},{value:"custom",label:Object(O.__)("Custom link per slide","getwid")}]}),Object(_.i)(this),wp.element.createElement(A,{label:Object(O.__)("Enable Slideshow","getwid"),checked:w,onChange:function(){z({sliderAutoplay:!w})}}),!!w&&wp.element.createElement(M,{label:Object(O.__)("Slideshow Speed","getwid"),type:"number",value:h,min:0,onChange:function(e){return z({sliderAutoplaySpeed:e})}}),wp.element.createElement(D,{label:Object(O.__)("Animation Effect","getwid"),selected:p,options:[{value:"slide",label:Object(O.__)("Slide","getwid")},{value:"fade",label:Object(O.__)("Fade","getwid")}],onChange:function(e){z("fade"==e?{sliderAnimationEffect:"fade",sliderSlidesToShow:"1",sliderSlidesToShowLaptop:"1",sliderSlidesToShowTablet:"1",sliderSlidesToShowMobile:"1"}:{sliderAnimationEffect:e})}}),wp.element.createElement(A,{label:Object(O.__)("Infinite","getwid"),checked:v,onChange:function(){z({sliderInfinite:!v})}}),wp.element.createElement(M,{label:Object(O.__)("Animation Speed","getwid"),type:"number",value:E,min:0,onChange:function(e){return z({sliderAnimationSpeed:e})}}))),"advanced"===W&&wp.element.createElement(j,null,wp.element.createEl