Stackable – Page Builder Gutenberg Blocks - Version 0.6

Version Description

  • New: Grouped together all Stackable blocks
  • Fixed: Compatibility with Gutenberg 3.7.0
  • Updated: Freemius SDK
Download this release

Release Info

Developer bfintal
Plugin Icon 128x128 Stackable – Page Builder Gutenberg Blocks
Version 0.6
Comparing to
See all releases

Code changes from version 0.5 to 0.6

Files changed (51) hide show
  1. dist/blocks.build.js +1 -1
  2. dist/blocks.style.build.css +6 -6
  3. freemius/assets/css/admin/common.css +1 -1
  4. freemius/assets/img/stackable-ultimate-gutenberg-blocks.png +0 -0
  5. freemius/assets/scss/admin/common.scss +1 -1
  6. freemius/includes/class-freemius.php +209 -62
  7. freemius/includes/class-fs-plugin-updater.php +179 -2
  8. freemius/includes/customizer/class-fs-customizer-upsell-control.php +1 -1
  9. freemius/includes/entities/class-fs-site.php +4 -1
  10. freemius/includes/fs-plugin-info-dialog.php +12 -9
  11. freemius/package.json +1 -1
  12. freemius/start.php +1 -1
  13. freemius/templates/account/partials/addon.php +2 -2
  14. freemius/templates/add-ons.php +5 -1
  15. freemius/templates/all-admin-notice.php +0 -39
  16. freemius/templates/checkout-legacy.php +0 -242
  17. freemius/templates/checkout.php +2 -2
  18. freemius/templates/connect.php +16 -2
  19. freemius/templates/contact.php +1 -1
  20. freemius/templates/debug.php +10 -0
  21. freemius/templates/forms/deactivation/form.php +1 -1
  22. freemius/templates/pricing.php +1 -1
  23. freemius/templates/tabs.php +5 -1
  24. plugin.php +1 -1
  25. readme.txt +8 -2
  26. src/block/blockquote/index.js +2 -3
  27. src/block/button/index.js +23 -19
  28. src/block/button/style.scss +9 -4
  29. src/block/call-to-action/index.js +23 -24
  30. src/block/call-to-action/style.scss +0 -3
  31. src/block/card/index.js +24 -22
  32. src/block/count-up/index.js +14 -12
  33. src/block/divider/index.js +24 -21
  34. src/block/expand/index.js +2 -3
  35. src/block/ghost-button/index.js +29 -33
  36. src/block/header/index.js +32 -30
  37. src/block/image-box/index.js +42 -40
  38. src/block/notification/index.js +19 -19
  39. src/block/number-box/index.js +14 -15
  40. src/block/number-box/style.scss +1 -0
  41. src/block/pricing-box/index.js +36 -32
  42. src/block/pullquote/index.js +2 -3
  43. src/block/spacer/index.js +14 -11
  44. src/block/team-member/index.js +23 -23
  45. src/block/team-member/style.scss +1 -0
  46. src/block/testimonial/index.js +14 -13
  47. src/block/testimonial/style.scss +1 -0
  48. src/block/video-popup/index.js +15 -13
  49. src/block/video-popup/style.scss +4 -0
  50. src/init.php +13 -0
  51. src/wp-imports.js +2 -2
dist/blocks.build.js CHANGED
@@ -1 +1 @@
1
- !function(e){function t(l){if(n[l])return n[l].exports;var o=n[l]={i:l,l:!1,exports:{}};return e[l].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,l){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:l})},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=3)}([function(e,t,n){"use strict";n.d(t,"g",function(){return c}),n.d(t,"a",function(){return i}),n.d(t,"e",function(){return u}),n.d(t,"c",function(){return m}),n.d(t,"k",function(){return s}),n.d(t,"l",function(){return p}),n.d(t,"n",function(){return b}),n.d(t,"b",function(){return d}),n.d(t,"m",function(){return g}),n.d(t,"d",function(){return h}),n.d(t,"h",function(){return f}),n.d(t,"f",function(){return w}),n.d(t,"i",function(){return y}),n.d(t,"o",function(){return v}),n.d(t,"j",function(){return E});var l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&(e[l]=n[l])}return e},o=function(e){return wp.element.createElement("defs",null,wp.element.createElement("linearGradient",l({},e,{gradientTransform:"rotate(90)"}),wp.element.createElement("stop",{offset:"0%",stopColor:"#2FDDD1",stopOpacity:"1"}),wp.element.createElement("stop",{offset:"20%",stopColor:"#30A2E3",stopOpacity:"1"}),wp.element.createElement("stop",{offset:"50%",stopColor:"#F56FAE",stopOpacity:"1"}),wp.element.createElement("stop",{offset:"100%",stopColor:"#FFC58E",stopOpacity:"1"})))},r=1,a=function(){return"stk-icon-"+r++},c=function(){var e=a();return wp.element.createElement("svg",{className:"dashicon",role:"img",focusable:"false",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",width:"20",height:"20"},wp.element.createElement(o,{id:e}),wp.element.createElement("path",{fill:"url(#"+e+")",d:"M512 96c-111.118 0-215.584 43.272-294.156 121.844S96 400.882 96 512s43.272 215.584 121.844 294.156S400.882 928 512 928s215.584-43.272 294.156-121.844S928 623.118 928 512s-43.272-215.584-121.843-294.156S623.118 96 512 96zm0-96c282.77 0 512 229.23 512 512s-229.23 512-512 512S0 794.77 0 512 229.23 0 512 0zm-64 704h128v128H448zm0-512h128v384H448z"}))},i=function(){var e=a();return wp.element.createElement("svg",{className:"dashicon",role:"img",focusable:"false",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20"},wp.element.createElement(o,{id:e}),wp.element.createElement("path",{fill:"url(#"+e+")",d:"M17 5H3c-1.1 0-2 .9-2 2v6c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm1 7c0 .6-.4 1-1 1H3c-.6 0-1-.4-1-1V7c0-.6.4-1 1-1h14c.6 0 1 .4 1 1v5z"}))},u=function(){return wp.element.createElement(i,null)},m=function(){var e=a();return wp.element.createElement("svg",{className:"dashicon",role:"img",focusable:"false",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20"},wp.element.createElement(o,{id:e}),wp.element.createElement("path",{fill:"url(#"+e+")",d:"M4 9h12v2H4V9z"}))},s=function(){var e=a();return wp.element.createElement("svg",{className:"dashicon",role:"img",focusable:"false",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20"},wp.element.createElement(o,{id:e}),wp.element.createElement("path",{fill:"url(#"+e+")",d:"M8.54 12.74c0-.87-.24-1.61-.72-2.22-.73-.92-2.14-1.03-2.96-.85-.34-1.93 1.3-4.39 3.42-5.45L6.65 1.94C3.45 3.46.31 6.96.85 11.37 1.19 14.16 2.8 16 5.08 16c1 0 1.83-.29 2.48-.88.66-.59.98-1.38.98-2.38zm9.43 0c0-.87-.24-1.61-.72-2.22-.73-.92-2.14-1.03-2.96-.85-.34-1.93 1.3-4.39 3.42-5.45l-1.63-2.28c-3.2 1.52-6.34 5.02-5.8 9.43.34 2.79 1.95 4.63 4.23 4.63 1 0 1.83-.29 2.48-.88.66-.59.98-1.38.98-2.38z"}))},p=function(){var e=a();return wp.element.createElement("svg",{className:"dashicon",role:"img",focusable:"false",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 14 32"},wp.element.createElement(o,{id:e}),wp.element.createElement("path",{fill:"url(#"+e+")",d:"M0 29h5.833L0 23h5V9H0l5.833-6H0V0h14v3H8.167L14 9H9v14h5l-5.833 6H14v3H0v-3z"}))},b=function(){var e=a();return wp.element.createElement("svg",{className:"dashicon",role:"img",focusable:"false",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 13 12.916010856628418"},wp.element.createElement(o,{id:e}),wp.element.createElement("path",{fill:"url(#"+e+")",d:"M5.68 12.916a.5.5 0 0 1-.397-.196L3.208 10H1.463C.656 10 0 9.428 0 8.621V1.463C0 .656.656 0 1.463 0h10.074C12.344 0 13 .656 13 1.463v7.158C13 9.428 12.344 10 11.537 10H8.151l-2.073 2.72a.504.504 0 0 1-.398.196zM1.463 1A.464.464 0 0 0 1 1.463v7.158c0 .255.208.463.463.463h1.993a.5.5 0 0 1 .397.196l1.827 2.312L7.507 9.28a.502.502 0 0 1 .397-.196h3.633A.464.464 0 0 0 12 8.621V1.463A.464.464 0 0 0 11.537 1H1.463zm1.193 2h7.828c.284.024.514.207.514.49a.498.498 0 0 1-.514.496H2.656a.499.499 0 0 1-.514-.496c.001-.283.231-.466.514-.49zm0 3h7.828c.284.024.514.207.514.49a.498.498 0 0 1-.514.496H2.656a.499.499 0 0 1-.514-.496c.001-.283.231-.466.514-.49z"}))},d=function(){var e=a();return wp.element.createElement("svg",{className:"dashicon",role:"img",focusable:"false",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 16 14"},wp.element.createElement(o,{id:e}),wp.element.createElement("path",{fill:"url(#"+e+")",d:"M10 0c-.17 0-.36.05-.52.14C8.04 1.02 4.5 3.58 3 4c-1.38 0-3 .67-3 2.5S1.63 9 3 9c.3.08.64.23 1 .41V14h2v-3.45c1.34.86 2.69 1.83 3.48 2.31.16.09.34.14.52.14.52 0 1-.42 1-1V1c0-.58-.48-1-1-1zm0 12c-.38-.23-.89-.58-1.5-1-.16-.11-.33-.22-.5-.34V2.31c.16-.11.31-.2.47-.31.61-.41 1.16-.77 1.53-1v11zm2-6h4v1h-4V6zm0 2l4 2v1l-4-2V8zm4-6v1l-4 2V4l4-2z"}))},g=function(){var e=a();return wp.element.createElement("svg",{className:"dashicon",role:"img",focusable:"false",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 896 1023"},wp.element.createElement(o,{id:e}),wp.element.createElement("path",{fill:"url(#"+e+")",d:"M821 491q-41-41-95-60 62-26 100-82t38-125q0-93-65.5-158.5T640 0q-71 0-128.5 41T430 147q-32-39-77-61t-97-22q-93 0-158.5 65.5T32 288q0 69 38 125t100 82q-54 19-95 60Q0 630 0 736v191q0 40 28 68t68 28h320q31 0 55.5-18t34.5-46h294q40 0 68-28t28-68V672q0-106-75-181zM527 111q47-47 113-47t113 47 47 113-47 113-113 47-113-47-47-113 47-113zM143 401q-47-47-47-113t47-113 113-47 113 47 47 113-47 113-113 47-113-47zm305 526q0 13-9.5 22.5T416 959H96q-13 0-22.5-9.5T64 927V736q0-79 56.5-135.5T256 544t136 56q1 2 2 3 54 55 54 133v191zm-27-387q-36-30-79-45 43-18 75.5-52t48.5-78q36 44 88 66-54 19-95 60-22 23-38 49zm411 323q0 13-9.5 22.5T800 895H512V736q0-80-46-146 15-30 38-53 57-57 136-57t135.5 56.5T832 672v191z"}))},h=function(){var e=a();return wp.element.createElement("svg",{className:"dashicon",role:"img",focusable:"false",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 32 8"},wp.element.createElement(o,{id:e}),wp.element.createElement("path",{fill:"url(#"+e+")",d:"M4 0C1.79 0 0 1.79 0 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm24 0c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zM16 0c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4z"}))},f=function(){var e=a();return wp.element.createElement("svg",{className:"dashicon",role:"img",focusable:"false",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 21.027502059936523 10.284000396728516"},wp.element.createElement(o,{id:e}),wp.element.createElement("path",{fill:"url(#"+e+")",d:"M3.028 10.284a1 1 0 0 1-1-1V2.902l-.553.276A1 1 0 1 1 .58 1.389l2-1a.998.998 0 0 1 1.447.895v8a1 1 0 0 1-1 1zm9 0h-5a1.002 1.002 0 0 1-.707-1.707l4-4c.254-.254.394-.591.394-.95 0-.358-.14-.695-.394-.949-.508-.508-1.39-.508-1.9.001a1.33 1.33 0 0 0-.393.948 1 1 0 0 1-2 0c0-.894.348-1.733.98-2.364C8.273 0 10.472 0 11.735 1.264c.632.631.979 1.471.979 2.363 0 .893-.348 1.733-.98 2.364L9.443 8.284h2.586a1 1 0 0 1 0 2zm7.955-5.623a2.725 2.725 0 0 0 .545-1.627 2.753 2.753 0 0 0-2.75-2.75 2.739 2.739 0 0 0-2.44 1.484 1 1 0 1 0 1.776.92.75.75 0 1 1 .664 1.096 1 1 0 0 0 0 2c.689 0 1.25.561 1.25 1.25s-.561 1.25-1.25 1.25-1.25-.561-1.25-1.25a1 1 0 0 0-2 0c0 1.792 1.458 3.25 3.25 3.25s3.25-1.458 3.25-3.25a3.23 3.23 0 0 0-1.045-2.373z"}))},w=function(){var e=a();return wp.element.createElement("svg",{className:"dashicon",role:"img",focusable:"false",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 32 38"},wp.element.createElement(o,{id:e}),wp.element.createElement("path",{fill:"url(#"+e+")",d:"M0 0h32v38H0V0zm3 3v32h26V3H3zm2 2h22v7H5V5zm0 9h14v19H5V14zm16 19V14h6v19h-6zM6 6v5h20V6H6z"}))},y=function(){var e=a();return wp.element.createElement("svg",{className:"dashicon",role:"img",focusable:"false",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 1024 896"},wp.element.createElement(o,{id:e}),wp.element.createElement("path",{fill:"url(#"+e+")",d:"M960 0H64Q38 0 19 19T0 64v768q0 26 19 45t45 19h896q26 0 45-19t19-45V64q0-26-19-45T960 0zM64 64h896v714L724 430q-7-12-21-14t-25 7L524 548 350 305q-10-14-28-13t-26 17L64 757V64zm855 768H97l231-447 184 255 179-145zM737 190q13 0 22.5 9.5T769 222t-9.5 22.5T737 254t-22.5-9.5T705 222t9.5-22.5T737 190zm0-64q-40 0-68 28t-28 68 28 68 68 28 68-28 28-68-28-68-68-28z"}))},v=function(){var e=a();return wp.element.createElement("svg",{className:"dashicon",role:"img",focusable:"false",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 38 26"},wp.element.createElement(o,{id:e}),wp.element.createElement("path",{fill:"url(#"+e+")",d:"M2 0h34a2 2 0 0 1 2 2v22a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2zm5.77 4C6.24 4 5 5.511 5 7.375v11.25C5 20.489 6.24 22 7.77 22h15.46c1.53 0 2.77-1.511 2.77-3.375V16l6 5h1V5h-1l-6 5V7.375C26 5.511 24.76 4 23.23 4H7.77z"}))},E=function(){var e=a();return wp.element.createElement("svg",{className:"dashicon",role:"img",focusable:"false",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 448 448"},wp.element.createElement(o,{id:e}),wp.element.createElement("path",{fill:"url(#"+e+")",d:"M416 32V0H256L0 288l160 160 23.471-23.904L208 448l240-272V32h-32zM160 425.371L22.39 288 262.621 16H400v137.377l-216.555 247.99-11.34 11.363L160 425.371zm272-255.994L208 425.371l-13.182-12.65L416 160V48h16v121.377z"}),wp.element.createElement("path",{d:"M320 128c17.645 0 32-14.355 32-32s-14.355-32-32-32-32 14.355-32 32 14.355 32 32 32zm0-48c8.836 0 16 7.163 16 16s-7.164 16-16 16-16-7.163-16-16 7.164-16 16-16z"}))}},function(e,t,n){"use strict";n.d(t,"q",function(){return l}),n.d(t,"p",function(){return o}),n.d(t,"r",function(){return a}),n.d(t,"i",function(){return c}),n.d(t,"j",function(){return i}),n.d(t,"l",function(){return u}),n.d(t,"m",function(){return m}),n.d(t,"e",function(){return s}),n.d(t,"f",function(){return p}),n.d(t,"c",function(){return b}),n.d(t,"n",function(){return d}),n.d(t,"g",function(){return h}),n.d(t,"b",function(){return f}),n.d(t,"d",function(){return w}),n.d(t,"a",function(){return y}),n.d(t,"k",function(){return v}),n.d(t,"o",function(){return E}),n.d(t,"h",function(){return C});var l=wp.blocks.registerBlockType,o=wp.i18n.__,r=wp.components,a=r.withState,c=r.PanelColor,i=r.RangeControl,u=r.SelectControl,m=(r.TextControl,r.ToggleControl),s=r.Dashicon,p=r.IconButton,b=r.Button,d=r.Toolbar,g=wp.editor.InspectorControls?wp.editor:wp.blocks,h=g.InspectorControls,f=g.BlockControls,w=g.ColorPalette,y=g.AlignmentToolbar,v=g.RichText,E=g.UrlInput,C=g.MediaUpload},function(e,t){var n={utf8:{stringToBytes:function(e){return n.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(n.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],n=0;n<e.length;n++)t.push(255&e.charCodeAt(n));return t},bytesToString:function(e){for(var t=[],n=0;n<e.length;n++)t.push(String.fromCharCode(e[n]));return t.join("")}}};e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});n(4),n(7),n(10),n(13),n(16),n(22),n(25),n(28),n(31),n(34),n(37),n(40),n(43),n(46),n(50),n(53),n(56),n(59)},function(e,t,n){"use strict";var l=n(5),o=(n.n(l),n(6)),r=(n.n(o),n(0)),a=n(1),c=function(e){var t=e.attributes.height;return wp.element.createElement("div",{style:{height:t+"px"}})},i=function(e){var t=e.isSelected,n=e.attributes.height;return[!!t&&wp.element.createElement(a.g,{key:"inspector"},wp.element.createElement(a.j,{label:Object(a.p)("Height"),value:n,min:"30",max:"200",onChange:function(t){e.setAttributes({height:t})}})),wp.element.createElement("div",{className:e.className,style:{height:n+"px"}})]};Object(a.q)("ugb/spacer",{title:Object(a.p)("Spacer"),icon:r.l,category:"layout",keywords:[Object(a.p)("Spacer"),Object(a.p)("Stackable")],attributes:{height:{default:50,type:"number"}},edit:i,save:c})},function(e,t){},function(e,t){},function(e,t,n){"use strict";var l=n(8),o=(n.n(l),n(9)),r=(n.n(o),n(0)),a=n(1),c=function(e){var t=e.attributes,n=t.height,l=t.width,o=t.color,r=t.alignment;return wp.element.createElement("div",{className:"ugb-divider"},wp.element.createElement("hr",{align:r,style:{backgroundColor:o,width:l+"%",height:n}}))},i=function(e){var t=e.isSelected,n=e.attributes,l=n.height,o=n.width,r=n.color,c=n.alignment;return[t&&wp.element.createElement(a.b,{key:"controls"},wp.element.createElement(a.a,{value:c,onChange:function(t){e.setAttributes({alignment:t})}})),t&&wp.element.createElement(a.g,{key:"inspector"},wp.element.createElement(a.j,{label:Object(a.p)("Height"),value:l,min:"1",max:"10",onChange:function(t){e.setAttributes({height:t})}}),wp.element.createElement(a.j,{label:Object(a.p)("Width"),value:o,min:"10",max:"100",step:"0.1",onChange:function(t){e.setAttributes({width:t})}}),wp.element.createElement(a.i,{title:Object(a.p)("Divider Color"),colorValue:r,initialOpen:!1},wp.element.createElement(a.d,{value:r,onChange:function(t){return e.setAttributes({color:t})}}))),wp.element.createElement("div",{className:"ugb-divider",style:{paddingTop:8,paddingBottom:8}},wp.element.createElement("hr",{align:c,style:{marginTop:0,marginBottom:0,backgroundColor:r,width:o+"%",height:l}}))]};Object(a.q)("ugb/divider",{title:Object(a.p)("Divider"),icon:r.c,category:"layout",keywords:[Object(a.p)("Divider"),Object(a.p)("Stackable")],attributes:{height:{default:1,type:"number"},width:{default:50,type:"number"},color:{type:"string",default:"#dddddd"},alignment:{type:"string",default:"center"}},edit:i,save:c})},function(e,t){},function(e,t){},function(e,t,n){"use strict";var l=n(11),o=(n.n(l),n(12)),r=(n.n(o),n(0)),a=n(1),c=function(e){var t=e.isSelected,n=(e.className,e.setAttributes),l=e.attributes,o=l.url,r=l.text,c=l.color,i=l.textColor,u=l.size,m=l.textAlignment,s=l.cornerButtonRadius,p=[{value:"small",label:Object(a.p)("Small")},{value:"normal",label:Object(a.p)("Normal")},{value:"medium",label:Object(a.p)("Medium")},{value:"large",label:Object(a.p)("Large")}];return[t&&wp.element.createElement(a.b,{key:"controls"},wp.element.createElement(a.a,{value:m,onChange:function(e){n({textAlignment:e})}})),t&&wp.element.createElement(a.g,{key:"inspector"},wp.element.createElement(a.l,{label:Object(a.p)("Size"),value:u,options:p.map(function(e){return{value:e.value,label:e.label}}),onChange:function(e){n({size:e})}}),wp.element.createElement(a.j,{label:Object(a.p)("Corner Radius"),value:s,min:"1",max:"50",onChange:function(e){return n({cornerButtonRadius:e})}}),wp.element.createElement(a.i,{title:Object(a.p)("Background Color"),colorValue:c},wp.element.createElement(a.d,{value:c,onChange:function(e){return n({color:e})}})),wp.element.createElement(a.i,{title:Object(a.p)("Text Color"),colorValue:i},wp.element.createElement(a.d,{value:i,onChange:function(e){return n({textColor:e})}}))),wp.element.createElement("span",{key:"button",className:"wp-block-button ugb-button-"+m},wp.element.createElement(a.k,{tagName:"span",placeholder:Object(a.p)("Enter Text"),value:r,onChange:function(e){return n({text:e})},formattingControls:["bold","italic","strikethrough"],className:"wp-ugb-button ugb-button-"+u,style:{backgroundColor:c,color:i,borderRadius:s+"px"},isSelected:t,keepPlaceholderOnFocus:!0})),t&&wp.element.createElement("form",{key:"form-link",onSubmit:function(e){return e.preventDefault()},className:"blocks-button__inline-link ugb-button-"+m},wp.element.createElement(a.e,{icon:"admin-links"}),wp.element.createElement(a.o,{value:o,onChange:function(e){return n({url:e})}}),wp.element.createElement(a.f,{icon:"editor-break",label:Object(a.p)("Apply"),type:"submit"}))]},i=function(e){var t=e.attributes,n=t.url,l=t.text,o=t.textAlignment,r=t.color,a=t.textColor,c=t.size,i=t.cornerButtonRadius,u={backgroundColor:r,color:a,borderRadius:i+"px"};return wp.element.createElement("div",{className:"ugb-button-"+o},wp.element.createElement("a",{href:n,className:"wp-ugb-button ugb-button-"+c,style:u},l))};Object(a.q)("ugb/button",{title:Object(a.p)("Button"),icon:r.a,category:"layout",keywords:[Object(a.p)("Button"),Object(a.p)("Stackable")],attributes:{url:{type:"string",source:"attribute",selector:"a",attribute:"href"},text:{type:"array",source:"children",selector:"a"},textAlignment:{type:"string",default:"center"},color:{type:"string",default:"#2091e1"},textColor:{type:"string",default:"#ffffff"},size:{type:"string",default:"normal"},cornerButtonRadius:{type:"number",default:4}},edit:c,save:i})},function(e,t){},function(e,t){},function(e,t,n){"use strict";var l=n(14),o=(n.n(l),n(15)),r=(n.n(o),n(0)),a=n(1),c=function(e){var t=e.isSelected,n=e.setAttributes,l=e.attributes,o=l.url,r=l.text,c=l.color,i=l.size,u=l.textAlignment,m=l.cornerButtonRadius,s=l.borderThickness,p=[{value:"small",label:Object(a.p)("Small")},{value:"normal",label:Object(a.p)("Normal ")},{value:"medium",label:Object(a.p)("Medium")},{value:"large",label:Object(a.p)("Large")}];return[t&&wp.element.createElement(a.b,{key:"controls"},wp.element.createElement(a.a,{value:u,onChange:function(e){n({textAlignment:e})}})),wp.element.createElement("span",{key:"button",className:"wp-block-button ugb-button-"+u},wp.element.createElement(a.k,{tagName:"span",placeholder:Object(a.p)("Enter Text"),value:r,onChange:function(e){return n({text:e})},formattingControls:["bold","italic","strikethrough"],className:"wp-ugb-button ugb-button-"+i+" ugb-ghost-button",style:{borderColor:c,color:c,borderRadius:m+"px",borderWidth:s+"px"},isSelected:t,keepPlaceholderOnFocus:!0}),t&&wp.element.createElement(a.g,{key:"inspector"},wp.element.createElement(a.l,{label:Object(a.p)("Size"),value:i,options:p.map(function(e){return{value:e.value,label:e.label}}),onChange:function(e){n({size:e})}}),wp.element.createElement(a.j,{label:Object(a.p)("Corner Radius"),value:m,min:"1",max:"50",onChange:function(e){return n({cornerButtonRadius:e})}}),wp.element.createElement(a.j,{label:Object(a.p)("Border Thickness"),value:s,min:"1",max:"10",onChange:function(e){return n({borderThickness:e})}}),wp.element.createElement(a.i,{title:Object(a.p)("Button Color"),colorValue:c,initialOpen:!1},wp.element.createElement(a.d,{value:c,onChange:function(e){return n({color:e})}})))),t&&wp.element.createElement("form",{key:"form-link",onSubmit:function(e){return e.preventDefault()},className:"blocks-button__inline-link ugb-button-"+u},wp.element.createElement(a.e,{icon:"admin-links"}),wp.element.createElement(a.o,{value:o,onChange:function(e){return n({url:e})}}),wp.element.createElement(a.f,{icon:"editor-break",label:Object(a.p)("Apply"),type:"submit"}))]},i=function(e){var t=e.attributes,n=t.url,l=t.text,o=t.textAlignment,r=t.color,a=t.size,c=t.cornerButtonRadius,i=t.borderThickness,u={borderColor:r,color:r,borderRadius:c+"px",borderWidth:i+"px"};return wp.element.createElement("div",{className:"ugb-button-"+o},wp.element.createElement("a",{href:n,className:"wp-ugb-button ugb-button-"+a+" ugb-ghost-button",style:u},l))};Object(a.q)("ugb/ghost-button",{title:Object(a.p)("Ghost Button"),icon:r.e,category:"layout",keywords:[Object(a.p)("Ghost Button"),Object(a.p)("Stackable")],attributes:{url:{type:"string",source:"attribute",selector:"a",attribute:"href"},text:{type:"array",source:"children",selector:"a"},textAlignment:{type:"string",default:"center"},color:{type:"string"},textColor:{type:"string"},size:{type:"string",default:"normal"},cornerButtonRadius:{type:"number",default:"4"},borderThickness:{type:"number",default:"1"}},edit:c,save:i})},function(e,t){},function(e,t){},function(e,t,n){"use strict";var l=n(17),o=(n.n(l),n(18)),r=(n.n(o),n(19)),a=n.n(r),c=n(0),i=n(1),u=function(e){var t=[{value:"success",label:Object(i.p)("Success")},{value:"error",label:Object(i.p)("Error")},{value:"warning",label:Object(i.p)("Warning")},{value:"info",label:Object(i.p)("Information")}],n=e.isSelected,l=e.editable,o=e.setState,r=e.setAttributes,a=(e.className,e.attributes),c=a.text,u=a.color,m=a.textColor,s=a.notifType,p=a.dismissible;return[n&&wp.element.createElement(i.b,{key:"controls"}),wp.element.createElement("div",{key:"editable",className:"ugb-notification type-"+s+" dismissible-"+p},p&&wp.element.createElement("span",{key:"button",className:"close-button"},wp.element.createElement("svg",{viewBox:"0 0 28.3 28.3",style:{fill:m}},wp.element.createElement("path",{d:"M52.4-166.2c3.2,0,3.2-5,0-5C49.2-171.2,49.2-166.2,52.4-166.2L52.4-166.2z"}),wp.element.createElement("path",{d:"M16.8,13.9L26.9,3.8c0.6-0.6,0.6-1.5,0-2.1s-1.5-0.6-2.1,0L14.7,11.8L4.6,1.7C4,1.1,3.1,1.1,2.5,1.7s-0.6,1.5,0,2.1l10.1,10.1L2.5,24c-0.6,0.6-0.6,1.5,0,2.1c0.3,0.3,0.7,0.4,1.1,0.4s0.8-0.1,1.1-0.4L14.7,16l10.1,10.1c0.3,0.3,0.7,0.4,1.1,0.4s0.8-0.1,1.1-0.4c0.6-0.6,0.6-1.5,0-2.1L16.8,13.9z"}))),wp.element.createElement(i.k,{tagName:"p",placeholder:e.attributes.text.default,value:c,isSelected:n&&"content"===l,onFocus:function(e){return function(){o({editable:e})}}("content"),onChange:function(e){return r({text:e})},className:"wp-ugb-notif notif-"+s,style:{backgroundColor:u,color:m}}),n&&wp.element.createElement(i.g,{key:"inspector"},wp.element.createElement(i.m,{label:Object(i.p)("Dismissible"),checked:p,onChange:function(){return r({dismissible:!p})}}),wp.element.createElement(i.l,{label:Object(i.p)("Notification Type"),value:s,options:t.map(function(e){return{value:e.value,label:e.label}}),onChange:function(e){r({notifType:e})}}),wp.element.createElement(i.i,{title:Object(i.p)("Background Color"),colorValue:u,initialOpen:!1},wp.element.createElement(i.d,{value:u,onChange:function(e){return r({color:e})}})),wp.element.createElement(i.i,{title:Object(i.p)("Text Color"),colorValue:m,initialOpen:!1},wp.element.createElement(i.d,{value:m,onChange:function(e){return r({textColor:e})}}))))]},m=function(e){var t=e.attributes,n=t.text,l=t.color,o=t.textColor,r=t.notifType,c=t.dismissible,i={backgroundColor:l,color:o},u=a()(n+r).substr(0,6);return wp.element.createElement("div",{className:"ugb-notification type-"+r+" dismissible-"+c,"data-uid":u},c&&wp.element.createElement("span",{key:"button",className:"close-button"},wp.element.createElement("svg",{viewBox:"0 0 28.3 28.3",style:{fill:o}},wp.element.createElement("path",{d:"M52.4-166.2c3.2,0,3.2-5,0-5C49.2-171.2,49.2-166.2,52.4-166.2L52.4-166.2z"}),wp.element.createElement("path",{d:"M16.8,13.9L26.9,3.8c0.6-0.6,0.6-1.5,0-2.1s-1.5-0.6-2.1,0L14.7,11.8L4.6,1.7C4,1.1,3.1,1.1,2.5,1.7s-0.6,1.5,0,2.1l10.1,10.1L2.5,24c-0.6,0.6-0.6,1.5,0,2.1c0.3,0.3,0.7,0.4,1.1,0.4s0.8-0.1,1.1-0.4L14.7,16l10.1,10.1c0.3,0.3,0.7,0.4,1.1,0.4s0.8-0.1,1.1-0.4c0.6-0.6,0.6-1.5,0-2.1L16.8,13.9z"}))),wp.element.createElement("p",{className:"wp-ugb-notif notif-"+r,style:i},n))};Object(i.q)("ugb/notification",{title:Object(i.p)("Notification"),icon:c.g,category:"layout",keywords:[Object(i.p)("Notification"),Object(i.p)("Stackable")],attributes:{text:{type:"array",source:"children",selector:"p",default:Object(i.p)("This is an informational alert, usually used for successful subscriptions, promo announcements, and the like.")},color:{type:"string"},textColor:{type:"string"},notifType:{type:"string",default:"success"},dismissible:{type:"boolean",default:!1}},edit:Object(i.r)({editable:"content"})(u),save:m})},function(e,t){},function(e,t){},function(e,t,n){!function(){var t=n(20),l=n(2).utf8,o=n(21),r=n(2).bin,a=function(e,n){e.constructor==String?e=n&&"binary"===n.encoding?r.stringToBytes(e):l.stringToBytes(e):o(e)?e=Array.prototype.slice.call(e,0):Array.isArray(e)||(e=e.toString());for(var c=t.bytesToWords(e),i=8*e.length,u=1732584193,m=-271733879,s=-1732584194,p=271733878,b=0;b<c.length;b++)c[b]=16711935&(c[b]<<8|c[b]>>>24)|4278255360&(c[b]<<24|c[b]>>>8);c[i>>>5]|=128<<i%32,c[14+(i+64>>>9<<4)]=i;for(var d=a._ff,g=a._gg,h=a._hh,f=a._ii,b=0;b<c.length;b+=16){var w=u,y=m,v=s,E=p;u=d(u,m,s,p,c[b+0],7,-680876936),p=d(p,u,m,s,c[b+1],12,-389564586),s=d(s,p,u,m,c[b+2],17,606105819),m=d(m,s,p,u,c[b+3],22,-1044525330),u=d(u,m,s,p,c[b+4],7,-176418897),p=d(p,u,m,s,c[b+5],12,1200080426),s=d(s,p,u,m,c[b+6],17,-1473231341),m=d(m,s,p,u,c[b+7],22,-45705983),u=d(u,m,s,p,c[b+8],7,1770035416),p=d(p,u,m,s,c[b+9],12,-1958414417),s=d(s,p,u,m,c[b+10],17,-42063),m=d(m,s,p,u,c[b+11],22,-1990404162),u=d(u,m,s,p,c[b+12],7,1804603682),p=d(p,u,m,s,c[b+13],12,-40341101),s=d(s,p,u,m,c[b+14],17,-1502002290),m=d(m,s,p,u,c[b+15],22,1236535329),u=g(u,m,s,p,c[b+1],5,-165796510),p=g(p,u,m,s,c[b+6],9,-1069501632),s=g(s,p,u,m,c[b+11],14,643717713),m=g(m,s,p,u,c[b+0],20,-373897302),u=g(u,m,s,p,c[b+5],5,-701558691),p=g(p,u,m,s,c[b+10],9,38016083),s=g(s,p,u,m,c[b+15],14,-660478335),m=g(m,s,p,u,c[b+4],20,-405537848),u=g(u,m,s,p,c[b+9],5,568446438),p=g(p,u,m,s,c[b+14],9,-1019803690),s=g(s,p,u,m,c[b+3],14,-187363961),m=g(m,s,p,u,c[b+8],20,1163531501),u=g(u,m,s,p,c[b+13],5,-1444681467),p=g(p,u,m,s,c[b+2],9,-51403784),s=g(s,p,u,m,c[b+7],14,1735328473),m=g(m,s,p,u,c[b+12],20,-1926607734),u=h(u,m,s,p,c[b+5],4,-378558),p=h(p,u,m,s,c[b+8],11,-2022574463),s=h(s,p,u,m,c[b+11],16,1839030562),m=h(m,s,p,u,c[b+14],23,-35309556),u=h(u,m,s,p,c[b+1],4,-1530992060),p=h(p,u,m,s,c[b+4],11,1272893353),s=h(s,p,u,m,c[b+7],16,-155497632),m=h(m,s,p,u,c[b+10],23,-1094730640),u=h(u,m,s,p,c[b+13],4,681279174),p=h(p,u,m,s,c[b+0],11,-358537222),s=h(s,p,u,m,c[b+3],16,-722521979),m=h(m,s,p,u,c[b+6],23,76029189),u=h(u,m,s,p,c[b+9],4,-640364487),p=h(p,u,m,s,c[b+12],11,-421815835),s=h(s,p,u,m,c[b+15],16,530742520),m=h(m,s,p,u,c[b+2],23,-995338651),u=f(u,m,s,p,c[b+0],6,-198630844),p=f(p,u,m,s,c[b+7],10,1126891415),s=f(s,p,u,m,c[b+14],15,-1416354905),m=f(m,s,p,u,c[b+5],21,-57434055),u=f(u,m,s,p,c[b+12],6,1700485571),p=f(p,u,m,s,c[b+3],10,-1894986606),s=f(s,p,u,m,c[b+10],15,-1051523),m=f(m,s,p,u,c[b+1],21,-2054922799),u=f(u,m,s,p,c[b+8],6,1873313359),p=f(p,u,m,s,c[b+15],10,-30611744),s=f(s,p,u,m,c[b+6],15,-1560198380),m=f(m,s,p,u,c[b+13],21,1309151649),u=f(u,m,s,p,c[b+4],6,-145523070),p=f(p,u,m,s,c[b+11],10,-1120210379),s=f(s,p,u,m,c[b+2],15,718787259),m=f(m,s,p,u,c[b+9],21,-343485551),u=u+w>>>0,m=m+y>>>0,s=s+v>>>0,p=p+E>>>0}return t.endian([u,m,s,p])};a._ff=function(e,t,n,l,o,r,a){var c=e+(t&n|~t&l)+(o>>>0)+a;return(c<<r|c>>>32-r)+t},a._gg=function(e,t,n,l,o,r,a){var c=e+(t&l|n&~l)+(o>>>0)+a;return(c<<r|c>>>32-r)+t},a._hh=function(e,t,n,l,o,r,a){var c=e+(t^n^l)+(o>>>0)+a;return(c<<r|c>>>32-r)+t},a._ii=function(e,t,n,l,o,r,a){var c=e+(n^(t|~l))+(o>>>0)+a;return(c<<r|c>>>32-r)+t},a._blocksize=16,a._digestsize=16,e.exports=function(e,n){if(void 0===e||null===e)throw new Error("Illegal argument "+e);var l=t.wordsToBytes(a(e,n));return n&&n.asBytes?l:n&&n.asString?r.bytesToString(l):t.bytesToHex(l)}}()},function(e,t){!function(){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n={rotl:function(e,t){return e<<t|e>>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 16711935&n.rotl(e,8)|4278255360&n.rotl(e,24);for(var t=0;t<e.length;t++)e[t]=n.endian(e[t]);return e},randomBytes:function(e){for(var t=[];e>0;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],n=0,l=0;n<e.length;n++,l+=8)t[l>>>5]|=e[n]<<24-l%32;return t},wordsToBytes:function(e){for(var t=[],n=0;n<32*e.length;n+=8)t.push(e[n>>>5]>>>24-n%32&255);return t},bytesToHex:function(e){for(var t=[],n=0;n<e.length;n++)t.push((e[n]>>>4).toString(16)),t.push((15&e[n]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],n=0;n<e.length;n+=2)t.push(parseInt(e.substr(n,2),16));return t},bytesToBase64:function(e){for(var n=[],l=0;l<e.length;l+=3)for(var o=e[l]<<16|e[l+1]<<8|e[l+2],r=0;r<4;r++)8*l+6*r<=8*e.length?n.push(t.charAt(o>>>6*(3-r)&63)):n.push("=");return n.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var n=[],l=0,o=0;l<e.length;o=++l%4)0!=o&&n.push((t.indexOf(e.charAt(l-1))&Math.pow(2,-2*o+8)-1)<<2*o|t.indexOf(e.charAt(l))>>>6-2*o);return n}};e.exports=n}()},function(e,t){function n(e){return!!e.constructor&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function l(e){return"function"===typeof e.readFloatLE&&"function"===typeof e.slice&&n(e.slice(0,0))}e.exports=function(e){return null!=e&&(n(e)||l(e)||!!e._isBuffer)}},function(e,t,n){"use strict";var l=n(23),o=(n.n(l),n(24)),r=(n.n(o),n(0)),a=n(1),c=function(e){var t=e.isSelected,n=e.setAttributes,l=(e.className,e.attributes),o=l.color,r=l.text,c=l.borderColor;return[wp.element.createElement("blockquote",{key:"quote",className:"ugb-blockquote",style:{borderLeftColor:c}},wp.element.createElement(a.k,{tagName:"p",className:"ugb-blockquote-text",value:r,onChange:function(e){return n({text:e})},isSelected:t,style:{color:o}})),t&&wp.element.createElement(a.g,{key:"inspector"},wp.element.createElement(a.i,{title:Object(a.p)("Text Color"),colorValue:o},wp.element.createElement(a.d,{value:o,onChange:function(e){return n({color:e})}})),wp.element.createElement(a.i,{title:Object(a.p)("Border Color"),colorValue:c},wp.element.createElement(a.d,{value:c,onChange:function(e){return n({borderColor:e})}})))]},i=function(e){var t=e.attributes,n=t.color,l=t.text,o=t.borderColor;return wp.element.createElement("blockquote",{className:"ugb-blockquote",style:{borderLeftColor:o}},wp.element.createElement("p",{style:{color:n}},l))};Object(a.q)("ugb/blockquote",{title:Object(a.p)("Blockquote"),icon:r.k,category:"common",keywords:[Object(a.p)("Blockquote"),Object(a.p)("Stackable")],attributes:{text:{type:"array",source:"children",selector:"p",default:Object(a.p)("It's okay to acknowledge that life can get complicated, but we musn't forget the beauty in its simplicity, too. From the multitude of stars above, to freshly mowed grass in the morning, life is simply wonderful.")},color:{type:"string",default:"#424242"},borderColor:{type:"string",default:"#2091e1"}},edit:Object(a.r)({editable:"content"})(c),save:i})},function(e,t){},function(e,t){},function(e,t,n){"use strict";var l=n(26),o=(n.n(l),n(27)),r=(n.n(o),n(0)),a=n(1),c=function(e){var t=e.isSelected,n=e.setAttributes,l=(e.className,e.attributes),o=l.color,r=l.text,c=l.borderColor;return[wp.element.createElement("blockquote",{key:"quote",className:"ugb-pullquote",style:{borderTopColor:c,borderBottomColor:c}},wp.element.createElement(a.k,{tagName:"p",className:"ugb-pullquote-text",value:r,onChange:function(e){return n({text:e})},placeholder:Object(a.p)("Write quote\u2026"),formattingControls:["bold","italic","strikethrough","link"],isSelected:t,keepPlaceholderOnFocus:!0,style:{color:o}})),t&&wp.element.createElement(a.g,{key:"inspector"},wp.element.createElement(a.i,{title:Object(a.p)("Text Color"),colorValue:o,initialOpen:!1},wp.element.createElement(a.d,{value:o,onChange:function(e){return n({color:e})}})),wp.element.createElement(a.i,{title:Object(a.p)("Border Color"),colorValue:c,initialOpen:!1},wp.element.createElement(a.d,{value:c,onChange:function(e){return n({borderColor:e})}})))]},i=function(e){var t=e.attributes,n=t.color,l=t.text,o=t.borderColor;return wp.element.createElement("blockquote",{className:"ugb-pullquote",style:{borderTopColor:o,borderBottomColor:o}},wp.element.createElement("p",{style:{color:n}},l))};Object(a.q)("ugb/pullquote",{title:Object(a.p)("Pullquote"),icon:r.k,category:"formatting",keywords:[Object(a.p)("Pullquote"),Object(a.p)("Stackable")],attributes:{text:{type:"array",source:"children",selector:"p",default:Object(a.p)("It's okay to acknowledge that life can get complicated, but we musn't forget the beauty in its simplicity, too. From the multitude of stars above, to freshly mowed grass in the morning, life is simply wonderful.")},color:{type:"string",default:"#2091e1"},borderColor:{type:"string",default:"#2091e1"}},edit:Object(a.r)({editable:"content"})(c),save:i})},function(e,t){},function(e,t){},function(e,t,n){"use strict";var l=n(29),o=(n.n(l),n(30)),r=(n.n(o),n(0)),a=n(1),c=function(e){var t=e.isSelected,n=e.editable,l=e.setState,o=(e.className,e.setAttributes),r=e.attributes,c=r.url,i=r.buttonText,u=r.ctaTitle,m=r.bodyText,s=r.color,p=r.textColor,b=r.size,d=r.borderButtonRadius,g=r.bodyTextColor,h=r.titleColor,f=r.bgColor,w=[{value:"small",label:Object(a.p)("Small")},{value:"normal",label:Object(a.p)("Normal")},{value:"medium",label:Object(a.p)("Medium")},{value:"large",label:Object(a.p)("Large")}],y=function(e){return function(){l({editable:e})}};return[wp.element.createElement("div",{key:"editable",className:"ugb-cta",style:{backgroundColor:f}},wp.element.createElement(a.k,{className:"ugb-cta-title",tagName:"h3",placeholder:Object(a.p)("Add Title"),value:u,onChange:function(e){return o({ctaTitle:e})},isSelected:t&&"ctaTitle"===n,onFocus:y("ctaTitle"),keepPlaceholderOnFocus:!0,style:{color:h}}),wp.element.createElement(a.k,{tagName:"p",value:m,className:"ugb-cta-bodyText",onChange:function(e){return o({bodyText:e})},isSelected:t&&"bodyText"===n,onFocus:y("bodyText"),placeholder:Object(a.p)("Write body text\u2026"),style:{color:g}}),wp.element.createElement("span",{key:"button",className:"wp-block-button ugb-cta-button"},wp.element.createElement(a.k,{tagName:"span",placeholder:Object(a.p)("Add Text"),value:i,onChange:function(e){return o({buttonText:e})},isSelected:t&&"buttonText"===n,onFocus:y("buttonText"),className:"wp-ugb-button ugb-button-"+b,style:{backgroundColor:s,color:p,borderRadius:d+"px"},keepPlaceholderOnFocus:!0}),t&&wp.element.createElement(a.g,{key:"inspector"},wp.element.createElement(a.l,{label:Object(a.p)("Button Size"),value:b,options:w.map(function(e){return{value:e.value,label:e.label}}),onChange:function(e){o({size:e})}}),wp.element.createElement(a.j,{label:Object(a.p)("Button Border Radius"),value:d,min:"1",max:"50",onChange:function(e){return o({borderButtonRadius:e})}}),wp.element.createElement(a.i,{title:Object(a.p)("Title Color"),colorValue:h,initialOpen:!1},wp.element.createElement(a.d,{value:s,onChange:function(e){return o({titleColor:e})}})),wp.element.createElement(a.i,{title:Object(a.p)("Body Text Color"),colorValue:g,initialOpen:!1},wp.element.createElement(a.d,{value:s,onChange:function(e){return o({bodyTextColor:e})}})),wp.element.createElement(a.i,{title:Object(a.p)("Button Background Color"),colorValue:s,initialOpen:!1},wp.element.createElement(a.d,{value:s,onChange:function(e){return o({color:e})}})),wp.element.createElement(a.i,{title:Object(a.p)("Button Text Color"),colorValue:p,initialOpen:!1},wp.element.createElement(a.d,{value:p,onChange:function(e){return o({textColor:e})}})),wp.element.createElement(a.i,{title:Object(a.p)("Background Color"),colorValue:f,initialOpen:!1},wp.element.createElement(a.d,{value:f,onChange:function(e){return o({bgColor:e})}})))),t&&wp.element.createElement("form",{key:"form-link",onSubmit:function(e){return e.preventDefault()},className:"blocks-button__inline-link"},wp.element.createElement(a.e,{icon:"admin-links"}),wp.element.createElement(a.o,{value:c,onChange:function(e){return o({url:e})}}),wp.element.createElement(a.f,{icon:"editor-break",label:Object(a.p)("Apply"),type:"submit"})))]},i=function(e){var t=e.attributes,n=t.url,l=t.buttonText,o=t.ctaTitle,r=t.bodyText,a=t.color,c=t.textColor,i=t.size,u=t.borderButtonRadius,m=t.bodyTextColor,s=t.titleColor,p=t.bgColor,b={backgroundColor:a,color:c,borderRadius:u+"px"};return wp.element.createElement("div",{className:"ugb-cta",style:{backgroundColor:p}},o&&!!o.length&&wp.element.createElement("h3",{className:"ugb-cta-title",style:{color:s}},o),r&&!!r.length&&wp.element.createElement("p",{className:"ugb-cta-bodyText",style:{color:m}},r),l&&!!l.length&&wp.element.createElement("a",{href:n,className:"wp-ugb-button ugb-cta-button ugb-button-"+i,style:b},l))};Object(a.q)("ugb/cta",{title:Object(a.p)("Call to Action"),icon:r.b,category:"layout",keywords:[Object(a.p)("Call to Action"),Object(a.p)("Stackable"),Object(a.p)("CTA")],attributes:{url:{type:"string",source:"attribute",selector:"a",attribute:"href"},ctaTitle:{type:"array",source:"children",selector:"h3",default:Object(a.p)("Get Started Today")},bodyText:{type:"array",source:"children",selector:"p",default:Object(a.p)("Get Stackable: Ultimate Gutenberg Blocks today.\xa0 Apart from adding new blocks, it gives Gutenberg users more options and settings to tinker with, expanding Gutenberg\u2019s functionality.")},buttonText:{type:"array",source:"children",selector:"a"},color:{type:"string",default:"#2091e1"},textColor:{type:"string",default:"#ffffff"},titleColor:{type:"string"},bodyTextColor:{type:"string"},bgColor:{type:"string"},size:{type:"string",default:"normal"},borderButtonRadius:{type:"number",default:4}},edit:Object(a.r)({editable:"content"})(c),save:i})},function(e,t){},function(e,t){},function(e,t,n){"use strict";var l=n(32),o=(n.n(l),n(33)),r=(n.n(o),n(0)),a=n(1),c=function(e){var t=e.isSelected,n=e.editable,l=e.setState,o=(e.className,e.setAttributes),r=e.attributes,c=r.testimonialTitle,i=r.testimonialTitleTwo,u=r.testimonialTitleThree,m=r.body,s=r.bodyTwo,p=r.bodyThree,b=r.position,d=r.positionTwo,g=r.positionThree,h=(r.href,r.hrefTwo,r.hrefThree,r.mediaID),f=r.mediaIDTwo,w=r.mediaIDThree,y=r.mediaURL,v=r.mediaURLTwo,E=r.mediaURLThree,C=r.columns,O=r.titleColor,x=r.posColor,k=r.bodyTextColor,T=r.iconColor,j=[{value:"1",label:Object(a.p)("One Column")},{value:"2",label:Object(a.p)("Two Column")},{value:"3",label:Object(a.p)("Three Column")}],N=function(e){return function(){l({editable:e})}};return[t&&wp.element.createElement(a.b,null),t&&wp.element.createElement(a.g,{key:"inspector"},wp.element.createElement(a.l,{label:Object(a.p)("Column Number"),value:C,options:j.map(function(e){return{value:e.value,label:e.label}}),onChange:function(e){o({columns:e})}}),wp.element.createElement(a.i,{title:Object(a.p)("Title Color"),colorValue:O,initialOpen:!1},wp.element.createElement(a.d,{value:O,onChange:function(e){return o({titleColor:e})}})),wp.element.createElement(a.i,{title:Object(a.p)("Position Color"),colorValue:x,initialOpen:!1},wp.element.createElement(a.d,{value:x,onChange:function(e){return o({posColor:e})}})),wp.element.createElement(a.i,{title:Object(a.p)("Body Text Color"),colorValue:k,initialOpen:!1},wp.element.createElement(a.d,{value:k,onChange:function(e){return o({bodyTextColor:e})}})),wp.element.createElement(a.i,{title:Object(a.p)("Icon Color"),colorValue:T,initialOpen:!1},wp.element.createElement(a.d,{value:T,onChange:function(e){return o({iconColor:e})}}))),wp.element.createElement("div",{key:"editable",className:"ugb-testimonial column-"+C},wp.element.createElement("div",{className:"ugb-testimonial-column-one"},wp.element.createElement("div",null,wp.element.createElement(a.h,{onSelect:function(e){return o({mediaURL:e.url,mediaID:e.id})},type:"image",value:h,render:function(e){return wp.element.createElement(a.c,{className:h?"":"button button-large",onClick:e.open},h?wp.element.createElement("div",{className:"testimonial-image",style:{backgroundImage:"url("+y+")"}}):Object(a.p)("Upload Image"))}})),wp.element.createElement(a.k,{tagName:"h4",value:c,onChange:function(e){return o({testimonialTitle:e})},isSelected:t&&"testimonialTitle"===n,onFocus:N("testimonialTitle"),style:{color:O},keepPlaceholderOnFocus:!0}),wp.element.createElement(a.k,{tagName:"p",value:b,className:"ugb-testimonial-position",onChange:function(e){return o({position:e})},isSelected:t&&"position"===n,onFocus:N("position"),style:{color:x},keepPlaceholderOnFocus:!0}),wp.element.createElement(a.k,{tagName:"p",value:m,className:"ugb-testimonial-body",onChange:function(e){return o({body:e})},isSelected:t&&"body"===n,onFocus:N("body"),style:{color:k},keepPlaceholderOnFocus:!0})),wp.element.createElement("div",{className:"ugb-testimonial-column-two"},wp.element.createElement("div",null,wp.element.createElement(a.h,{onSelect:function(e){return o({mediaURLTwo:e.url,mediaIDTwo:e.id})},type:"image",value:f,render:function(e){return wp.element.createElement(a.c,{className:f?"":"button button-large",onClick:e.open},f?wp.element.createElement("div",{className:"testimonial-image",style:{backgroundImage:"url("+v+")"}}):Object(a.p)("Upload Image"))}})),wp.element.createElement(a.k,{tagName:"h4",value:i,onChange:function(e){return o({testimonialTitleTwo:e})},isSelected:t&&"testimonialTitleTwo"===n,onFocus:N("testimonialTitleTwo"),style:{color:O},keepPlaceholderOnFocus:!0}),wp.element.createElement(a.k,{tagName:"p",value:d,className:"ugb-testimonial-position-two",onChange:function(e){return o({positionTwo:e})},isSelected:t&&"positionTwo"===n,onFocus:N("positionTwo"),style:{color:x},keepPlaceholderOnFocus:!0}),wp.element.createElement(a.k,{tagName:"p",value:s,className:"ugb-testimonial-body-two",onChange:function(e){return o({bodyTwo:e})},isSelected:t&&"bodyTwo"===n,onFocus:N("bodyTwo"),style:{color:k},keepPlaceholderOnFocus:!0})),wp.element.createElement("div",{className:"ugb-testimonial-column-three"},wp.element.createElement("div",null,wp.element.createElement(a.h,{onSelect:function(e){return o({mediaURLThree:e.url,mediaIDThree:e.id})},type:"image",value:w,render:function(e){return wp.element.createElement(a.c,{className:w?"":"button button-large",onClick:e.open},w?wp.element.createElement("div",{className:"testimonial-image",style:{backgroundImage:"url("+E+")"}}):Object(a.p)("Upload Image"))}})),wp.element.createElement(a.k,{tagName:"h4",value:u,onChange:function(e){return o({testimonialTitleThree:e})},isSelected:t&&"testimonialTitleThree"===n,onFocus:N("testimonialTitleThree"),style:{color:O},keepPlaceholderOnFocus:!0}),wp.element.createElement(a.k,{tagName:"p",value:g,className:"ugb-testimonial-position-three",onChange:function(e){return o({positionThree:e})},isSelected:t&&"positionThree"===n,onFocus:N("positionThree"),style:{color:x},keepPlaceholderOnFocus:!0}),wp.element.createElement(a.k,{tagName:"p",value:p,className:"ugb-testimonial-body-three",onChange:function(e){return o({bodyThree:e})},isSelected:t&&"bodyThree"===n,onFocus:N("bodyThree"),style:{color:k},keepPlaceholderOnFocus:!0})))]},i=function(e){var t=e.attributes,n=t.testimonialTitle,l=t.testimonialTitleTwo,o=t.testimonialTitleThree,r=t.body,a=t.bodyTwo,c=t.bodyThree,i=t.position,u=t.positionTwo,m=t.positionThree,s=t.mediaURL,p=t.mediaURLTwo,b=t.mediaURLThree,d=(t.mediaID,t.mediaIDTwo,t.mediaIDThree,t.titleColor),g=t.posColor,h=t.bodyTextColor,f=t.iconColor,w=t.columns,y=wp.element.createElement("div",{key:"button",className:"quote-icon"},wp.element.createElement("svg",{viewBox:"0 0 246 187.5",style:{fill:f}},wp.element.createElement("path",{d:"M98.5,0h-93C2.5,0,0,2.5,0,5.5v93c0,3,2.5,5.5,5.5,5.5h39c-1.7,15.5-8.8,50-39,50c-3,0-5.5,2.5-5.5,5.5V182c0,3,2.5,5.5,5.5,5.5c5.2,0,98.5-4.5,98.5-89v-93C104,2.5,101.5,0,98.5,0z"}),wp.element.createElement("path",{d:"M240.5,0h-93c-3,0-5.5,2.5-5.5,5.5v93c0,3,2.5,5.5,5.5,5.5h39c-1.7,15.5-8.8,50-39,50c-3,0-5.5,2.5-5.5,5.5V182c0,3,2.5,5.5,5.5,5.5c5.2,0,98.5-4.5,98.5-89v-93C246,2.5,243.5,0,240.5,0z"}),wp.element.createElement("path",{d:"M161.3-86.3c3.2,0,3.2-5,0-5C158.1-91.3,158.1-86.3,161.3-86.3L161.3-86.3z"})));return wp.element.createElement("div",{className:"ugb-testimonial column-"+w},wp.element.createElement("div",{className:"ugb-testimonial-column-one"},s?wp.element.createElement("div",{className:"testimonial-image",style:{backgroundImage:"url("+s+")"},"data-src":s}):y,n&&!!n.length&&wp.element.createElement("h4",{style:{color:d}},n),i&&!!i.length&&wp.element.createElement("p",{className:"ugb-testimonial-position",style:{color:g}},i),r&&!!r.length&&wp.element.createElement("p",{className:"ugb-testimonial-body",style:{color:h}},r)),w>1&&wp.element.createElement("div",{className:"ugb-testimonial-column-two"},p?wp.element.createElement("div",{className:"testimonial-image",style:{backgroundImage:"url("+p+")"},"data-src":p}):y,l&&!!l.length&&wp.element.createElement("h4",{style:{color:d}},l),u&&!!u.length&&wp.element.createElement("p",{className:"ugb-testimonial-position-two",style:{color:g}},u),a&&!!a.length&&wp.element.createElement("p",{className:"ugb-testimonial-body-two",style:{color:h}},a)),w>2&&wp.element.createElement("div",{className:"ugb-testimonial-column-three"},b?wp.element.createElement("div",{className:"testimonial-image",style:{backgroundImage:"url("+b+")"},"data-src":b}):y,o&&!!o.length&&wp.element.createElement("h4",{style:{color:d}},o),m&&!!m.length&&wp.element.createElement("p",{className:"ugb-testimonial-position-three",style:{color:g}},m),c&&!!c.length&&wp.element.createElement("p",{className:"ugb-testimonial-body-three",style:{color:h}},c)))};Object(a.q)("ugb/testimonial",{title:Object(a.p)("Testimonial"),icon:r.n,category:"common",keywords:[Object(a.p)("Testimonial"),Object(a.p)("Stackable")],attributes:{href:{type:"url"},hrefTwo:{type:"url"},hrefThree:{type:"url"},mediaID:{type:"number"},mediaIDTwo:{type:"number"},mediaIDThree:{type:"number"},mediaURL:{type:"string",source:"attribute",selector:".ugb-testimonial-column-one .testimonial-image",attribute:"data-src"},mediaURLTwo:{type:"string",source:"attribute",selector:".ugb-testimonial-column-two .testimonial-image",attribute:"data-src"},mediaURLThree:{type:"string",source:"attribute",selector:".ugb-testimonial-column-three .testimonial-image",attribute:"data-src"},testimonialTitle:{type:"array",source:"children",selector:".ugb-testimonial-column-one h4",default:Object(a.p)("Ben Adams")},testimonialTitleTwo:{type:"array",source:"children",selector:".ugb-testimonial-column-two h4",default:Object(a.p)("Alex Johnson")},testimonialTitleThree:{type:"array",source:"children",selector:".ugb-testimonial-column-three h4",default:Object(a.p)("Sammy Simpson")},position:{type:"array",source:"children",selector:".ugb-testimonial-position",default:Object(a.p)("Founder")},positionTwo:{type:"array",source:"children",selector:".ugb-testimonial-position-two",default:Object(a.p)("Editor")},positionThree:{type:"array",source:"children",selector:".ugb-testimonial-position-three",default:Object(a.p)("Programmer")},body:{type:"array",source:"children",selector:".ugb-testimonial-body",default:Object(a.p)("Stackable: Ultimate Blocks from Gutenberg has all the blocks I need to make a great webpage.")},bodyTwo:{type:"array",source:"children",selector:".ugb-testimonial-body-two",default:Object(a.p)("Stackable: Ultimate Blocks from Gutenberg has all the blocks I need to make a great webpage.")},bodyThree:{type:"array",source:"children",selector:".ugb-testimonial-body-three",default:Object(a.p)("Stackable: Ultimate Blocks from Gutenberg has all the blocks I need to make a great webpage.")},titleColor:{type:"string"},posColor:{type:"string"},bodyTextColor:{type:"string"},iconColor:{type:"string"},columns:{type:"select",default:"1"}},edit:Object(a.r)({editable:"content"})(c),save:i})},function(e,t){},function(e,t){},function(e,t,n){"use strict";var l=n(35),o=(n.n(l),n(36)),r=(n.n(o),n(0)),a=n(1),c=function(e){var t=e.isSelected,n=e.editable,l=e.setState,o=(e.className,e.setAttributes),r=e.attributes,c=r.name,i=r.nameTwo,u=r.nameThree,m=r.des,s=r.desTwo,p=r.desThree,b=r.position,d=r.positionTwo,g=r.positionThree,h=(r.href,r.hrefTwo,r.hrefThree,r.mediaID),f=r.mediaIDTwo,w=r.mediaIDThree,y=r.mediaURL,v=r.mediaURLTwo,E=r.mediaURLThree,C=r.columns,O=r.nameColor,x=r.posColor,k=r.desColor,T=r.iconColor,j=r.shapes,N=[{value:"1",label:Object(a.p)("One Column")},{value:"2",label:Object(a.p)("Two Column")},{value:"3",label:Object(a.p)("Three Column")}],S=[{value:"square",label:Object(a.p)("Square")},{value:"circle",label:Object(a.p)("Circle")}],B=function(e){return function(){l({editable:e})}};return[t&&wp.element.createElement(a.b,{key:"controls"}),t&&wp.element.createElement(a.g,{key:"inspector"},wp.element.createElement(a.l,{label:Object(a.p)("Image Shape"),value:j,options:S.map(function(e){return{value:e.value,label:e.label}}),onChange:function(e){o({shapes:e})}}),wp.element.createElement(a.l,{label:Object(a.p)("Column Number"),value:C,options:N.map(function(e){return{value:e.value,label:e.label}}),onChange:function(e){o({columns:e})}}),wp.element.createElement(a.i,{title:Object(a.p)("Name Color"),colorValue:O,initialOpen:!1},wp.element.createElement(a.d,{value:O,onChange:function(e){return o({nameColor:e})}})),wp.element.createElement(a.i,{title:Object(a.p)("Position Color"),colorValue:x,initialOpen:!1},wp.element.createElement(a.d,{value:x,onChange:function(e){return o({posColor:e})}})),wp.element.createElement(a.i,{title:Object(a.p)("Description Color"),colorValue:k,initialOpen:!1},wp.element.createElement(a.d,{value:k,onChange:function(e){return o({desColor:e})}})),wp.element.createElement(a.i,{title:Object(a.p)("Icon Color"),colorValue:T,initialOpen:!1},wp.element.createElement(a.d,{value:T,onChange:function(e){return o({iconColor:e})}}))),wp.element.createElement("div",{key:"editable",className:"ugb-team-member column-"+C+" image-"+j},wp.element.createElement("div",{className:"ugb-team-member-column-one"},wp.element.createElement("div",null,wp.element.createElement(a.h,{onSelect:function(e){return o({mediaURL:e.url,mediaID:e.id})},type:"image",value:h,render:function(e){return wp.element.createElement(a.c,{className:h?"":"button button-large",onClick:e.open},h?wp.element.createElement("div",{className:"team-member-image",style:{backgroundImage:"url("+y+")"}}):Object(a.p)("Upload Image"))}})),wp.element.createElement(a.k,{tagName:"h4",value:c,onChange:function(e){return o({name:e})},isSelected:t&&"name"===n,onFocus:B("name"),style:{color:O},keepPlaceholderOnFocus:!0}),wp.element.createElement(a.k,{tagName:"p",value:b,className:"ugb-team-member-position",onChange:function(e){return o({position:e})},isSelected:t&&"position"===n,onFocus:B("position"),style:{color:x},keepPlaceholderOnFocus:!0}),wp.element.createElement(a.k,{tagName:"p",value:m,className:"ugb-team-member-des",onChange:function(e){return o({des:e})},isSelected:t&&"des"===n,onFocus:B("des"),style:{color:k},keepPlaceholderOnFocus:!0})),wp.element.createElement("div",{className:"ugb-team-member-column-two"},wp.element.createElement("div",null,wp.element.createElement(a.h,{onSelect:function(e){return o({mediaURLTwo:e.url,mediaIDTwo:e.id})},type:"image",value:f,render:function(e){return wp.element.createElement(a.c,{className:f?"":"button button-large",onClick:e.open},f?wp.element.createElement("div",{className:"team-member-image",style:{backgroundImage:"url("+v+")"}}):Object(a.p)("Upload Image"))}})),wp.element.createElement(a.k,{tagName:"h4",value:i,onChange:function(e){return o({nameTwo:e})},isSelected:t&&"nameTwo"===n,onFocus:B("nameTwo"),style:{color:O},keepPlaceholderOnFocus:!0}),wp.element.createElement(a.k,{tagName:"p",value:d,className:"ugb-team-member-position",onChange:function(e){return o({positionTwo:e})},isSelected:t&&"positionTwo"===n,onFocus:B("positionTwo"),style:{color:x},keepPlaceholderOnFocus:!0}),wp.element.createElement(a.k,{tagName:"p",value:s,className:"ugb-team-member-des-two",onChange:function(e){return o({desTwo:e})},isSelected:t&&"desTwo"===n,onFocus:B("desTwo"),style:{color:k},keepPlaceholderOnFocus:!0})),wp.element.createElement("div",{className:"ugb-team-member-column-three"},wp.element.createElement("div",null,wp.element.createElement(a.h,{onSelect:function(e){return o({mediaURLThree:e.url,mediaIDThree:e.id})},type:"image",value:w,render:function(e){return wp.element.createElement(a.c,{className:w?"":"button button-large",onClick:e.open},w?wp.element.createElement("div",{className:"team-member-image",style:{backgroundImage:"url("+E+")"}}):Object(a.p)("Upload Image"))}})),wp.element.createElement(a.k,{tagName:"h4",value:u,onChange:function(e){return o({nameThree:e})},isSelected:t&&"nameThree"===n,onFocus:B("nameThree"),style:{color:O},keepPlaceholderOnFocus:!0}),wp.element.createElement(a.k,{tagName:"p",value:g,className:"ugb-team-member-position",onChange:function(e){return o({positionThree:e})},isSelected:t&&"positionThree"===n,onFocus:B("positionThree"),style:{color:x},keepPlaceholderOnFocus:!0}),wp.element.createElement(a.k,{tagName:"p",value:p,className:"ugb-team-member-des-three",onChange:function(e){return o({desThree:e})},isSelected:t&&"desThree"===n,onFocus:B("desThree"),style:{color:k},keepPlaceholderOnFocus:!0})))]},i=function(e){var t=e.attributes,n=t.name,l=t.nameTwo,o=t.nameThree,r=t.shapes,a=t.des,c=t.desTwo,i=t.desThree,u=t.position,m=t.positionTwo,s=t.positionThree,p=t.mediaURL,b=t.mediaURLTwo,d=t.mediaURLThree,g=(t.mediaID,t.mediaIDTwo,t.mediaIDThree,t.nameColor),h=t.posColor,f=t.desColor,w=(t.iconColor,t.columns);return wp.element.createElement("div",{className:"ugb-team-member column-"+w+" image-"+r},wp.element.createElement("div",{className:"ugb-team-member-column-one"},p&&wp.element.createElement("div",{className:"team-member-image",style:{backgroundImage:"url("+p+")"},"data-src":p}),n&&!!n.length&&wp.element.createElement("h4",{style:{color:g}},n),u&&!!u.length&&wp.element.createElement("p",{className:"ugb-team-member-position",style:{color:h}},u),a&&!!a.length&&wp.element.createElement("p",{className:"ugb-team-member-des",style:{color:f}},a)),w>1&&wp.element.createElement("div",{className:"ugb-team-member-column-two"},b&&wp.element.createElement("div",{className:"team-member-image",style:{backgroundImage:"url("+b+")"},"data-src":b}),l&&!!l.length&&wp.element.createElement("h4",{style:{color:g}},l),m&&!!m.length&&wp.element.createElement("p",{className:"ugb-team-member-position",style:{color:h}},m),c&&!!c.length&&wp.element.createElement("p",{className:"ugb-team-member-des-two",style:{color:f}},c)),w>2&&wp.element.createElement("div",{className:"ugb-team-member-column-three"},d&&wp.element.createElement("div",{className:"team-member-image",style:{backgroundImage:"url("+d+")"},"data-src":d}),o&&!!o.length&&wp.element.createElement("h4",{style:{color:g}},o),s&&!!s.length&&wp.element.createElement("p",{className:"ugb-team-member-position",style:{color:h}},s),i&&!!i.length&&wp.element.createElement("p",{className:"ugb-team-member-des-three",style:{color:f}},i)))};Object(a.q)("ugb/team-member",{title:Object(a.p)("Team Member"),icon:r.m,category:"common",keywords:[Object(a.p)("Team Member"),Object(a.p)("Stackable")],attributes:{href:{type:"url"},hrefTwo:{type:"url"},hrefThree:{type:"url"},mediaID:{type:"number"},mediaIDTwo:{type:"number"},mediaIDThree:{type:"number"},mediaURL:{type:"string",source:"attribute",selector:".ugb-team-member-column-one .team-member-image",attribute:"data-src"},mediaURLTwo:{type:"string",source:"attribute",selector:".ugb-team-member-column-two .team-member-image",attribute:"data-src"},mediaURLThree:{type:"string",source:"attribute",selector:".ugb-team-member-column-three .team-member-image",attribute:"data-src"},name:{type:"array",source:"children",selector:".ugb-team-member-column-one h4",default:Object(a.p)("Ben Adams")},nameTwo:{type:"array",source:"children",selector:".ugb-team-member-column-two h4",default:Object(a.p)("Alex Johnson")},nameThree:{type:"array",source:"children",selector:".ugb-team-member-column-three h4",default:Object(a.p)("Sammy Simpson")},position:{type:"array",source:"children",selector:".ugb-team-member-column-one .ugb-team-member-position",default:Object(a.p)("Founder")},positionTwo:{type:"array",source:"children",selector:".ugb-team-member-column-two .ugb-team-member-position",default:Object(a.p)("Editor")},positionThree:{type:"array",source:"children",selector:".ugb-team-member-column-three .ugb-team-member-position",default:Object(a.p)("Programmer")},des:{type:"array",source:"children",selector:".ugb-team-member-des",default:Object(a.p)("Ben is the head of our small team. He loves walking his dog, Walter, when he has some free time.")},desTwo:{type:"array",source:"children",selector:".ugb-team-member-des-two",default:Object(a.p)("Alex handles all written content. She enjoys painting and playing softball on the weekends.")},desThree:{type:"array",source:"children",selector:".ugb-team-member-des-three",default:Object(a.p)("Sammy is our programmer. You'll usually find her nose in a book. She has a cat named Skitty.")},nameColor:{type:"string"},posColor:{type:"string"},desColor:{type:"string"},iconColor:{type:"string"},columns:{type:"select",default:"1"},shapes:{type:"select",default:"square"}},edit:Object(a.r)({editable:"content"})(c),save:i})},function(e,t){},function(e,t){},function(e,t,n){"use strict";function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(38),r=(n.n(o),n(39)),a=(n.n(r),n(0)),c=n(1),i=function(e){return e.map?e.map(function(e){return e.children}):""},u=function(e){return e.map?e.map(function(e){return{children:e}}):""},m=function(e){var t=(e.focus,e.setFocus,e.editable),n=e.setAttributes,o=e.setState,r=e.className,a=e.isSelected,m=function(e){return function(){o({editable:e})}},s=e.attributes,p=s.text,b=s.moreLabel,d=s.moreText,g=s.lessLabel;return[a&&wp.element.createElement(c.b,{key:"controls"}),wp.element.createElement("div",{key:"expand",className:r},a&&wp.element.createElement("label",{className:"ugb-editor-label"},"Less text"),wp.element.createElement(c.k,l({multiline:"p",placeholder:e.attributes.text.default,value:i(p),onChange:function(e){return n({text:u(e)})},isSelected:a&&"text"===t,onFocus:m("text"),className:"ugb-expand-less-text"},"placeholder",Object(c.p)("Some short text that can be expanded to show more details."))),wp.element.createElement(c.k,l({tagName:"a",placeholder:e.attributes.moreLabel.default,value:b,isSelected:a&&"moreLabel"===t,onFocus:m("moreLabel"),onChange:function(e){return n({moreLabel:e})},formattingControls:["bold","italic","strikethrough"],className:"ugb-expand-more"},"placeholder",Object(c.p)("Show more"))),a&&wp.element.createElement("label",{className:"ugb-editor-label"},"More text"),a&&wp.element.createElement(c.k,l({multiline:"p",placeholder:e.attributes.moreText.default,value:i(d),isSelected:a&&"moreText"===t,onFocus:m("moreText"),onChange:function(e){return n({moreText:u(e)})},className:"ugb-expand-more-text"},"placeholder",Object(c.p)("Some short text that can be expanded to show more details. Some additional text that can only be seen when expanded."))),a&&wp.element.createElement(c.k,l({tagName:"a",placeholder:e.attributes.lessLabel.default,value:g,isSelected:a&&"lessLabel"===t,onFocus:m("lessLabel"),onChange:function(e){return n({lessLabel:e})},formattingControls:["bold","italic","strikethrough"],className:"ugb-expand-less"},"placeholder",Object(c.p)("Show less"))))]},s=function(e){var t=e.attributes,n=t.text,l=t.moreLabel,o=t.moreText,r=t.lessLabel;return wp.element.createElement("div",null,wp.element.createElement("div",{className:"ugb-expand-less-text"},n.map&&n.map(function(e,t){return wp.element.createElement("p",{key:t},e.children&&e.children.props.children)})),wp.element.createElement("div",{className:"ugb-expand-more-text",style:{display:"none"}},o.map&&o.map(function(e,t){return wp.element.createElement("p",{key:t},e.children&&e.children.props.children)})),wp.element.createElement("a",{className:"ugb-expand-button",href:"#"},wp.element.createElement("span",{className:"ugb-expand-more"},l),wp.element.createElement("span",{className:"ugb-expand-less",style:{display:"none"}},r)))};Object(c.q)("ugb/expand",{title:Object(c.p)("Expand / Show More"),icon:a.d,category:"formatting",keywords:[Object(c.p)("Expand"),Object(c.p)("Show more/less"),Object(c.p)("Stackable")],attributes:{text:{type:"array",source:"query",selector:".ugb-expand-less-text > p",query:{children:{source:"node"}},default:[]},moreText:{type:"array",source:"query",selector:".ugb-expand-more-text > p",query:{children:{source:"node"}},default:[]},moreLabel:{type:"array",source:"children",selector:".ugb-expand-more",default:Object(c.p)("Show more")},lessLabel:{type:"array",source:"children",selector:".ugb-expand-less",default:Object(c.p)("Show less")}},edit:Object(c.r)({editable:"text"})(m),save:s})},function(e,t){},function(e,t){},function(e,t,n){"use strict";var l=n(41),o=(n.n(l),n(42)),r=(n.n(o),n(0)),a=n(1),c=function(e){var t=(e.className,e.setAttributes),n=e.isSelected,l=e.editable,o=e.setState,r=e.attributes,c=r.numberBox,i=r.numberBoxTwo,u=r.numberBoxThree,m=r.body,s=r.bodyTwo,p=r.bodyThree,b=r.name,d=r.nameTwo,g=r.nameThree,h=r.columns,f=r.numberBoxColor,w=r.nameColor,y=r.bodyTextColor,v=r.numberBGColor,E=[{value:"1",label:Object(a.p)("One Column")},{value:"2",label:Object(a.p)("Two Column")},{value:"3",label:Object(a.p)("Three Column")}],C=function(e){return function(){o({editable:e})}};return[n&&wp.element.createElement(a.b,{key:"controls"}),n&&wp.element.createElement(a.g,{key:"inspector"},wp.element.createElement(a.l,{label:Object(a.p)("Column Number"),value:h,options:E.map(function(e){return{value:e.value,label:e.label}}),onChange:function(e){t({columns:e})}}),wp.element.createElement(a.i,{title:Object(a.p)("Number Color"),colorValue:f,initialOpen:!1},wp.element.createElement(a.d,{value:f,onChange:function(e){return t({numberBoxColor:e})}})),wp.element.createElement(a.i,{title:Object(a.p)("Number Background Color"),colorValue:v,initialOpen:!1},wp.element.createElement(a.d,{value:v,onChange:function(e){return t({numberBGColor:e})}})),wp.element.createElement(a.i,{title:Object(a.p)("Name Color"),colorValue:w,initialOpen:!1},wp.element.createElement(a.d,{value:w,onChange:function(e){return t({nameColor:e})}})),wp.element.createElement(a.i,{title:Object(a.p)("Body Text Color"),colorValue:y,initialOpen:!1},wp.element.createElement(a.d,{value:y,onChange:function(e){return t({bodyTextColor:e})}}))),wp.element.createElement("div",{key:"editable",className:"ugb-number-box column-"+h},wp.element.createElement("div",{className:"ugb-number-box-column-one"},wp.element.createElement(a.k,{tagName:"span",placeholder:c?c.default:"",value:c,onChange:function(e){return t({numberBox:e})},isSelected:n&&"numberBox"===l,onFocus:C("numberBox"),style:{color:f,backgroundColor:v},keepPlaceholderOnFocus:!0}),wp.element.createElement(a.k,{tagName:"h4",value:b,className:"ugb-number-box-name",onChange:function(e){return t({name:e})},isSelected:n&&"name"===l,onFocus:C("name"),placeholder:Object(a.p)("Add name\u2026"),style:{color:w},keepPlaceholderOnFocus:!0}),wp.element.createElement(a.k,{tagName:"p",value:m,className:"ugb-number-box-body",onChange:function(e){return t({body:e})},isSelected:n&&"body"===l,onFocus:C("body"),placeholder:Object(a.p)("Add body\u2026"),style:{color:y},keepPlaceholderOnFocus:!0})),wp.element.createElement("div",{className:"ugb-number-box-column-two"},wp.element.createElement(a.k,{tagName:"span",placeholder:i?i.default:"",value:i,onChange:function(e){return t({numberBoxTwo:e})},isSelected:n&&"numberBoxTwo"===l,onFocus:C("numberBoxTwo"),style:{color:f,backgroundColor:v},keepPlaceholderOnFocus:!0}),wp.element.createElement(a.k,{tagName:"h4",value:d,className:"ugb-number-box-name-two",onChange:function(e){return t({nameTwo:e})},isSelected:n&&"nameTwo"===l,onFocus:C("nameTwo"),placeholder:Object(a.p)("Add name\u2026"),style:{color:w},keepPlaceholderOnFocus:!0}),wp.element.createElement(a.k,{tagName:"p",value:s,className:"ugb-number-box-body-two",onChange:function(e){return t({bodyTwo:e})},isSelected:n&&"bodyTwo"===l,onFocus:C("bodyTwo"),placeholder:Object(a.p)("Add body\u2026"),style:{color:y},keepPlaceholderOnFocus:!0})),wp.element.createElement("div",{className:"ugb-number-box-column-three"},wp.element.createElement(a.k,{tagName:"span",placeholder:u?u.default:"",value:u,onChange:function(e){return t({numberBoxThree:e})},isSelected:n&&"numberBoxThree"===l,onFocus:C("numberBoxThree"),style:{color:f,backgroundColor:v},keepPlaceholderOnFocus:!0}),wp.element.createElement(a.k,{tagName:"h4",value:g,className:"ugb-number-box-name-three",onChange:function(e){return t({nameThree:e})},isSelected:n&&"nameThree"===l,onFocus:C("nameThree"),placeholder:Object(a.p)("Add name\u2026"),style:{color:w},keepPlaceholderOnFocus:!0}),wp.element.createElement(a.k,{tagName:"p",value:p,className:"ugb-number-box-body-three",onChange:function(e){return t({bodyThree:e})},isSelected:n&&"bodyThree"===l,onFocus:C("bodyThree"),placeholder:Object(a.p)("Add body\u2026"),style:{color:y},keepPlaceholderOnFocus:!0})))]},i=function(e){var t=e.attributes,n=t.numberBox,l=t.numberBoxTwo,o=t.numberBoxThree,r=t.body,a=t.bodyTwo,c=t.bodyThree,i=t.name,u=t.nameTwo,m=t.nameThree,s=t.numberBoxColor,p=t.nameColor,b=t.bodyTextColor,d=t.numberBGColor,g=t.columns;return wp.element.createElement("div",{className:"ugb-number-box column-"+g},wp.element.createElement("div",{className:"ugb-number-box-column-one"},n&&!!n.length&&wp.element.createElement("span",{style:{color:s,backgroundColor:d}},n),i&&!!i.length&&wp.element.createElement("h4",{className:"ugb-number-box-name",style:{color:p}},i),r&&!!r.length&&wp.element.createElement("p",{className:"ugb-number-box-body",style:{color:b}},r)),g>1&&wp.element.createElement("div",{className:"ugb-number-box-column-two"},l&&!!l.length&&wp.element.createElement("span",{style:{color:s,backgroundColor:d}},l),u&&!!u.length&&wp.element.createElement("h4",{className:"ugb-number-box-name-two",style:{color:p}},u),a&&!!a.length&&wp.element.createElement("p",{className:"ugb-number-box-body-two",style:{color:b}},a)),g>2&&wp.element.createElement("div",{className:"ugb-number-box-column-three"},o&&!!o.length&&wp.element.createElement("span",{style:{color:s,backgroundColor:d}},o),m&&!!m.length&&wp.element.createElement("h4",{className:"ugb-number-box-name-three",style:{color:p}},m),c&&!!c.length&&wp.element.createElement("p",{className:"ugb-number-box-body-three",style:{color:b}},c)))};Object(a.q)("ugb/number-box",{title:Object(a.p)("Number Box"),icon:r.h,category:"common",keywords:[Object(a.p)("Number Box"),Object(a.p)("Stackable")],attributes:{numberBox:{type:"array",source:"children",selector:".ugb-number-box-column-one span",default:Object(a.p)("01")},numberBoxTwo:{type:"array",source:"children",selector:".ugb-number-box-column-two span",default:Object(a.p)("02")},numberBoxThree:{type:"array",source:"children",selector:".ugb-number-box-column-three span",default:Object(a.p)("03")},name:{type:"array",source:"children",selector:".ugb-number-box-name",default:Object(a.p)("Registration")},nameTwo:{type:"array",source:"children",selector:".ugb-number-box-name-two",default:Object(a.p)("Waiting Period")},nameThree:{type:"array",source:"children",selector:".ugb-number-box-name-three",default:Object(a.p)("Delivery")},body:{type:"array",source:"children",selector:".ugb-number-box-body",default:Object(a.p)("This is just a sample write-up, but you can check out more info on Gutenberg on the WP repository.")},bodyTwo:{type:"array",source:"children",selector:".ugb-number-box-body-two",default:Object(a.p)("This is just a sample write-up, but you can check out more info on Gutenberg on the WP repository.")},bodyThree:{type:"array",source:"children",selector:".ugb-number-box-body-three",default:Object(a.p)("This is just a sample write-up, but you can check out more info on Gutenberg on the WP repository.")},numberBoxColor:{type:"string"},nameColor:{type:"string"},bodyTextColor:{type:"string"},numberBGColor:{type:"string"},columns:{type:"select",default:"1"}},edit:Object(a.r)({editable:"content"})(c),save:i})},function(e,t){},function(e,t){},function(e,t,n){"use strict";var l=n(44),o=(n.n(l),n(45)),r=(n.n(o),n(0)),a=n(1),c=function(e){var t=e.isSelected,n=e.editable,l=e.setState,o=(e.className,e.setAttributes),r=e.attributes,c=r.url,i=(r.url2,r.url3,r.pricingBoxTitle),u=r.pricingBoxTitle2,m=r.pricingBoxTitle3,s=r.price,p=r.price2,b=r.price3,d=r.perMonthLabel,g=r.perMonthLabel2,h=r.perMonthLabel3,f=r.buttonText,w=r.buttonText2,y=r.buttonText3,v=r.featureList,E=r.featureList2,C=r.featureList3,O=r.pricingBoxColor,x=r.priceColor,k=r.perMonthLabelColor,T=r.buttonColor,j=r.buttonTextColor,N=r.featureListColor,S=r.columns,B=r.size,L=r.cornerButtonRadius,F=[{value:"1",label:Object(a.p)("One Column")},{value:"2",label:Object(a.p)("Two Column")},{value:"3",label:Object(a.p)("Three Column")}],z=[{value:"small",label:Object(a.p)("Small")},{value:"normal",label:Object(a.p)("Normal")},{value:"medium",label:Object(a.p)("Medium")},{value:"large",label:Object(a.p)("Large")}],A=function(e){return function(){l({editable:e})}};return[t&&wp.element.createElement(a.b,{key:"controls"}),t&&wp.element.createElement(a.g,{key:"inspector"},wp.element.createElement(a.l,{label:Object(a.p)("Column Number"),value:S,options:F.map(function(e){return{value:e.value,label:e.label}}),onChange:function(e){o({columns:e})}}),wp.element.createElement(a.j,{label:Object(a.p)("Corner Radius"),value:L,min:"1",max:"50",onChange:function(e){return o({cornerButtonRadius:e})}}),wp.element.createElement(a.i,{title:Object(a.p)("Pricing Title Color"),colorValue:O,initialOpen:!1},wp.element.createElement(a.d,{value:O,onChange:function(e){return o({pricingBoxColor:e})}})),wp.element.createElement(a.i,{title:Object(a.p)("Price Color"),colorValue:x,initialOpen:!1},wp.element.createElement(a.d,{value:x,onChange:function(e){return o({priceColor:e})}})),wp.element.createElement(a.i,{title:Object(a.p)("Per Month Label Color"),colorValue:k,initialOpen:!1},wp.element.createElement(a.d,{value:k,onChange:function(e){return o({perMonthLabelColor:e})}})),wp.element.createElement(a.i,{title:Object(a.p)("Feature List Color"),colorValue:N,initialOpen:!1},wp.element.createElement(a.d,{value:N,onChange:function(e){return o({featureListColor:e})}})),wp.element.createElement(a.l,{label:Object(a.p)("Button Size"),value:B,options:z.map(function(e){return{value:e.value,label:e.label}}),onChange:function(e){o({size:e})}}),wp.element.createElement(a.i,{title:Object(a.p)("Button Color"),colorValue:T,initialOpen:!1},wp.element.createElement(a.d,{value:T,onChange:function(e){return o({buttonColor:e})}})),wp.element.createElement(a.i,{title:Object(a.p)("Button Text Color"),colorValue:j,initialOpen:!1},wp.element.createElement(a.d,{value:j,onChange:function(e){return o({buttonTextColor:e})}}))),wp.element.createElement("div",{key:"editable",className:"ugb-pricing-box column-"+S},wp.element.createElement("div",{className:"ugb-pricing-box-column-one"},wp.element.createElement(a.k,{tagName:"h3",value:i,onChange:function(e){return o({pricingBoxTitle:e})},isSelected:t&&"pricingBoxTitle"===n,onFocus:A("pricingBoxTitle"),style:{color:O},keepPlaceholderOnFocus:!0}),wp.element.createElement(a.k,{tagName:"p",value:s,className:"ugb-pricing-box-pricing",onChange:function(e){return o({price:e})},isSelected:t&&"price"===n,onFocus:A("price"),style:{color:x},keepPlaceholderOnFocus:!0}),wp.element.createElement(a.k,{tagName:"p",value:d,className:"ugb-pricing-box-per-month-label",onChange:function(e){return o({perMonthLabel:e})},focus:t&&"perMonthLabel"===n,onFocus:A("perMonthLabel"),style:{color:k},keepPlaceholderOnFocus:!0}),wp.element.createElement("span",{key:"button",className:"wp-block-button"},wp.element.createElement(a.k,{tagName:"span",value:f,onChange:function(e){return o({buttonText:e})},className:"wp-ugb-button ugb-button-"+B,isSelected:t&&"buttonText"===n,onFocus:A("buttonText"),style:{backgroundColor:T,color:j,borderRadius:L+"px"},keepPlaceholderOnFocus:!0})),wp.element.createElement(a.k,{tagName:"p",value:v,className:"ugb-pricing-box-feature-list",onChange:function(e){return o({featureList:e})},focus:t&&"featureList"===n,onFocus:A("featureList"),style:{color:N},keepPlaceholderOnFocus:!0}),t&&wp.element.createElement("form",{key:"form-link",onSubmit:function(e){return e.preventDefault()},className:"blocks-button__inline-link pricing-box"},wp.element.createElement(a.e,{icon:"admin-links"}),wp.element.createElement(a.o,{value:c,onChange:function(e){return o({url:e})}}),wp.element.createElement(a.f,{icon:"editor-break",label:Object(a.p)("Apply"),type:"submit"}))),wp.element.createElement("div",{className:"ugb-pricing-box-column-two"},wp.element.createElement(a.k,{tagName:"h3",value:u,onChange:function(e){return o({pricingBoxTitle2:e})},isSelected:t&&"pricingBoxTitle2"===n,onFocus:A("pricingBoxTitle2"),style:{color:O},keepPlaceholderOnFocus:!0}),wp.element.createElement(a.k,{tagName:"p",value:p,className:"ugb-pricing-box-pricing",onChange:function(e){return o({price2:e})},isSelected:t&&"price2"===n,onFocus:A("price2"),style:{color:x},keepPlaceholderOnFocus:!0}),wp.element.createElement(a.k,{tagName:"p",value:g,className:"ugb-pricing-box-per-month-label",onChange:function(e){return o({perMonthLabel2:e})},focus:t&&"perMonthLabel2"===n,onFocus:A("perMonthLabel2"),style:{color:k},keepPlaceholderOnFocus:!0}),wp.element.createElement("span",{key:"button",className:"wp-block-button"},wp.element.createElement(a.k,{tagName:"span",value:w,onChange:function(e){return o({buttonText2:e})},className:"wp-ugb-button ugb-button-"+B,isSelected:t&&"buttonText2"===n,onFocus:A("buttonText2"),style:{backgroundColor:T,color:j,borderRadius:L+"px"},keepPlaceholderOnFocus:!0})),wp.element.createElement(a.k,{tagName:"p",value:E,className:"ugb-pricing-box-feature-list",onChange:function(e){return o({featureList2:e})},focus:t&&"featureList2"===n,onFocus:A("featureList2"),style:{color:N},keepPlaceholderOnFocus:!0}),t&&wp.element.createElement("form",{key:"form-link",onSubmit:function(e){return e.preventDefault()},className:"blocks-button__inline-link pricing-box"},wp.element.createElement(a.e,{icon:"admin-links"}),wp.element.createElement(a.o,{value:c,onChange:function(e){return o({url:e})}}),wp.element.createElement(a.f,{icon:"editor-break",label:Object(a.p)("Apply"),type:"submit"}))),wp.element.createElement("div",{className:"ugb-pricing-box-column-three"},wp.element.createElement(a.k,{tagName:"h3",value:m,onChange:function(e){return o({pricingBoxTitle3:e})},isSelected:t&&"pricingBoxTitle3"===n,onFocus:A("pricingBoxTitle3"),style:{color:O},keepPlaceholderOnFocus:!0}),wp.element.createElement(a.k,{tagName:"p",value:b,className:"ugb-pricing-box-pricing",onChange:function(e){return o({price3:e})},isSelected:t&&"price3"===n,onFocus:A("price3"),style:{color:x},keepPlaceholderOnFocus:!0}),wp.element.createElement(a.k,{tagName:"p",value:h,className:"ugb-pricing-box-per-month-label",onChange:function(e){return o({perMonthLabel3:e})},focus:t&&"perMonthLabel3"===n,onFocus:A("perMonthLabel3"),style:{color:k},keepPlaceholderOnFocus:!0}),wp.element.createElement("span",{key:"button",className:"wp-block-button"},wp.element.createElement(a.k,{tagName:"span",value:y,onChange:function(e){return o({buttonText3:e})},className:"wp-ugb-button ugb-button-"+B,isSelected:t&&"buttonText3"===n,onFocus:A("buttonText3"),style:{backgroundColor:T,color:j,borderRadius:L+"px"},keepPlaceholderOnFocus:!0})),wp.element.createElement(a.k,{tagName:"p",value:C,className:"ugb-pricing-box-feature-list",onChange:function(e){return o({featureList3:e})},focus:t&&"featureList3"===n,onFocus:A("featureList3"),style:{color:N},keepPlaceholderOnFocus:!0}),t&&wp.element.createElement("form",{key:"form-link",onSubmit:function(e){return e.preventDefault()},className:"blocks-button__inline-link pricing-box"},wp.element.createElement(a.e,{icon:"admin-links"}),wp.element.createElement(a.o,{value:c,onChange:function(e){return o({url:e})}}),wp.element.createElement(a.f,{icon:"editor-break",label:Object(a.p)("Apply"),type:"submit"}))))]},i=function(e){var t=e.attributes,n=t.url,l=t.url2,o=t.url3,r=t.pricingBoxTitle,a=t.pricingBoxTitle2,c=t.pricingBoxTitle3,i=t.price,u=t.price2,m=t.price3,s=t.perMonthLabel,p=t.perMonthLabel2,b=t.perMonthLabel3,d=t.buttonText,g=t.buttonText2,h=t.buttonText3,f=t.featureList,w=t.featureList2,y=t.featureList3,v=t.pricingBoxColor,E=t.priceColor,C=t.perMonthLabelColor,O=t.buttonColor,x=t.buttonTextColor,k=t.featureListColor,T=t.columns,j=t.size,N=t.cornerButtonRadius,S={backgroundColor:O,color:x,borderRadius:N+"px"};return wp.element.createElement("div",{className:"ugb-pricing-box column-"+T},wp.element.createElement("div",{className:"ugb-pricing-box-column-one"},r&&!!r.length&&wp.element.createElement("h3",{style:{color:v}},r),i&&!!i.length&&wp.element.createElement("p",{className:"ugb-pricing-box-pricing",style:{color:E}},i),s&&!!s.length&&wp.element.createElement("p",{className:"ugb-pricing-box-per-month-label",style:{color:C}},s),d&&!!d.length&&wp.element.createElement("a",{href:n,className:"wp-ugb-button ugb-button-"+j,style:S},d),f&&!!f.length&&wp.element.createElement("p",{className:"ugb-pricing-box-feature-list",style:{color:k}},f)),T>1&&wp.element.createElement("div",{className:"ugb-pricing-box-column-two"},a&&!!a.length&&wp.element.createElement("h3",{style:{color:v}},a),u&&!!u.length&&wp.element.createElement("p",{className:"ugb-pricing-box-pricing",style:{color:E}},u),p&&!!p.length&&wp.element.createElement("p",{className:"ugb-pricing-box-per-month-label",style:{color:C}},p),g&&!!g.length&&wp.element.createElement("a",{href:l,className:"wp-ugb-button ugb-button-"+j,style:S},g),w&&!!w.length&&wp.element.createElement("p",{className:"ugb-pricing-box-feature-list",style:{color:k}},w)),T>2&&wp.element.createElement("div",{className:"ugb-pricing-box-column-three"},c&&!!c.length&&wp.element.createElement("h3",{style:{color:v}},c),m&&!!m.length&&wp.element.createElement("p",{className:"ugb-pricing-box-pricing",style:{color:E}},m),b&&!!b.length&&wp.element.createElement("p",{className:"ugb-pricing-box-per-month-label",style:{color:C}},b),h&&!!h.length&&wp.element.createElement("a",{href:o,className:"wp-ugb-button ugb-button-"+j,style:S},h),y&&!!y.length&&wp.element.createElement("p",{className:"ugb-pricing-box-feature-list",style:{color:k}},y)))};Object(a.q)("ugb/pricing-box",{title:Object(a.p)("Pricing Box"),icon:r.j,category:"common",keywords:[Object(a.p)("Pricing Box"),Object(a.p)("Stackable")],attributes:{url:{type:"string",source:"attribute",selector:".ugb-pricing-box-column-one a",attribute:"href"},url2:{type:"string",source:"attribute",selector:".ugb-pricing-box-column-two a",attribute:"href"},url3:{type:"string",source:"attribute",selector:".ugb-pricing-box-column-three a",attribute:"href"},pricingBoxTitle:{type:"array",source:"children",selector:".ugb-pricing-box-column-one h3",default:Object(a.p)("Basic")},pricingBoxTitle2:{type:"array",source:"children",selector:".ugb-pricing-box-column-two h3",default:Object(a.p)("Basic")},pricingBoxTitle3:{type:"array",source:"children",selector:".ugb-pricing-box-column-three h3",default:Object(a.p)("Basic")},price:{type:"array",source:"children",selector:".ugb-pricing-box-column-one .ugb-pricing-box-pricing",default:Object(a.p)("$9")},price2:{type:"array",source:"children",selector:".ugb-pricing-box-column-two .ugb-pricing-box-pricing",default:Object(a.p)("$9")},price3:{type:"array",source:"children",selector:".ugb-pricing-box-column-three .ugb-pricing-box-pricing",default:Object(a.p)("$9")},perMonthLabel:{type:"array",source:"children",selector:".ugb-pricing-box-column-one .ugb-pricing-box-per-month-label",default:Object(a.p)("per month")},perMonthLabel2:{type:"array",source:"children",selector:".ugb-pricing-box-column-two .ugb-pricing-box-per-month-label",default:Object(a.p)("per month")},perMonthLabel3:{type:"array",source:"children",selector:".ugb-pricing-box-column-three .ugb-pricing-box-per-month-label",default:Object(a.p)("per month")},buttonText:{type:"array",source:"children",selector:".ugb-pricing-box-column-one a",default:Object(a.p)("Buy Now")},buttonText2:{type:"array",source:"children",selector:".ugb-pricing-box-column-two a",default:Object(a.p)("Buy Now")},buttonText3:{type:"array",source:"children",selector:".ugb-pricing-box-column-three a",default:Object(a.p)("Buy Now")},featureList:{type:"array",source:"children",selector:".ugb-pricing-box-column-one .ugb-pricing-box-feature-list",default:Object(a.p)("Consectetur adipiscing elit Suspendisse at pretium tortor Vestibulum ante ipsum primis In faucibus orci luctus et Ultrices posuere cubilia cura Aenean consectetur nec")},featureList2:{type:"array",source:"children",selector:".ugb-pricing-box-column-two .ugb-pricing-box-feature-list",default:Object(a.p)("Consectetur adipiscing elit Suspendisse at pretium tortor Vestibulum ante ipsum primis In faucibus orci luctus et Ultrices posuere cubilia cura Aenean consectetur nec")},featureList3:{type:"array",source:"children",selector:".ugb-pricing-box-column-three .ugb-pricing-box-feature-list",default:Object(a.p)("Consectetur adipiscing elit Suspendisse at pretium tortor Vestibulum ante ipsum primis In faucibus orci luctus et Ultrices posuere cubilia cura Aenean consectetur nec")},pricingBoxColor:{type:"string"},priceColor:{type:"string"},perMonthLabelColor:{type:"string"},buttonColor:{type:"string"},buttonTextColor:{type:"string"},featureListColor:{type:"string"},columns:{type:"select",default:"1"},size:{type:"string",default:"normal"},cornerButtonRadius:{type:"number",default:4}},edit:Object(a.r)({editable:"content"})(c),save:i})},function(e,t){},function(e,t){},function(e,t,n){"use strict";function l(e){return 0===e?null:"overlay-opacity-"+1*Math.round(e/1)}var o=n(47),r=n.n(o),a=n(48),c=(n.n(a),n(49)),i=(n.n(c),n(0)),u=n(1),m=function(e){var t=(e.className,e.setAttributes),n=e.isSelected,o=e.editable,a=e.setState,c=e.attributes,i=c.url,m=c.buttonURL,s=c.buttonText,p=c.buttonColor,b=c.buttonTextColor,d=c.cornerButtonRadius,g=c.size,h=c.title,f=c.titleColor,w=c.subtitle,y=c.subtitleColor,v=c.contentAlign,E=c.id,C=c.backgroundColor,O=c.opacity,x=i?{backgroundImage:"url("+i+")"}:void 0,k=i?"has-image":"",T=r()(l(O),{"overlay-opacity":0!==O}),j=function(e){return function(){a({editable:e})}},N=[{value:"small",label:Object(u.p)("Small")},{value:"normal",label:Object(u.p)("Normal")},{value:"medium",label:Object(u.p)("Medium")},{value:"large",label:Object(u.p)("Large")}];return[n&&wp.element.createElement(u.b,{key:"controls"},wp.element.createElement(u.a,{value:v,onChange:function(e){return t({contentAlign:e})}}),wp.element.createElement(u.n,null,wp.element.createElement(u.h,{onSelect:function(e){return t({url:e.url,id:e.id})},type:"image",value:E,render:function(e){var t=e.open;return wp.element.createElement(u.f,{className:"components-toolbar__control",label:Object(u.p)("Edit image"),icon:"edit",onClick:t})}}))),n&&wp.element.createElement(u.g,{key:"inspector"},wp.element.createElement(u.i,{title:Object(u.p)("Title Color"),colorValue:f,initialOpen:!1},wp.element.createElement(u.d,{value:f,onChange:function(e){return t({titleColor:e})}})),wp.element.createElement(u.i,{title:Object(u.p)("Subtitle Color"),colorValue:y,initialOpen:!1},wp.element.createElement(u.d,{value:y,onChange:function(e){return t({subtitleColor:e})}})),wp.element.createElement(u.i,{title:Object(u.p)("Heading Background Color"),colorValue:C,initialOpen:!1},wp.element.createElement(u.d,{value:C,onChange:function(e){return t({backgroundColor:e})}})),wp.element.createElement(u.j,{label:Object(u.p)("Background Opacity"),value:O,min:0,max:10,step:1,onChange:function(e){return t({opacity:e})}}),wp.element.createElement("h2",null,"Button Settings"),wp.element.createElement(u.l,{label:Object(u.p)("Button Size"),value:g,options:N.map(function(e){return{value:e.value,label:e.label}}),onChange:function(e){t({size:e})}}),wp.element.createElement(u.j,{label:Object(u.p)("Corner Radius"),value:d,min:"1",max:"50",onChange:function(e){return t({cornerButtonRadius:e})}}),wp.element.createElement(u.i,{title:Object(u.p)("Button Color"),colorValue:p,initialOpen:!1},wp.element.createElement(u.d,{value:p,onChange:function(e){return t({buttonColor:e})}})),wp.element.createElement(u.i,{title:Object(u.p)("Button Text Color"),colorValue:b,initialOpen:!1},wp.element.createElement(u.d,{value:b,onChange:function(e){return t({buttonTextColor:e})}}))),wp.element.createElement("div",{key:"editable",className:"ugb-header "+k+" "},wp.element.createElement("div",{className:"ugb-header-overlay "+T,style:{backgroundColor:C}}),wp.element.createElement(u.h,{onSelect:function(e){return t({url:e.url,id:e.id})},type:"image",value:E,render:function(e){return[!i&&wp.element.createElement(u.c,{className:E?"":"button button-large",onClick:e.open},Object(u.p)("Upload Image"))]}}),wp.element.createElement("section",{key:"preview","data-url":i,style:x,className:"ugb-header-section"},wp.element.createElement(u.k,{tagName:"h2",className:"ugb-header-title",placeholder:h.default,value:h,onChange:function(e){return t({title:e})},isSelected:n&&"title"===o,onFocus:j("title"),style:{textAlign:v,color:f}}),wp.element.createElement(u.k,{tagName:"p",className:"ugb-header-subtitle",placeholder:w.default,value:w,onChange:function(e){return t({subtitle:e})},isSelected:n&&"subtitle"===o,onFocus:j("subtitle"),style:{textAlign:v,color:y}}),wp.element.createElement("span",{key:"button",className:"wp-block-button ugb-button-"+v},wp.element.createElement(u.k,{tagName:"span",placeholder:s.default,value:s,onChange:function(e){return t({buttonText:e})},className:"wp-ugb-button ugb-button-"+g,style:{backgroundColor:p,color:b,borderRadius:d+"px"},isSelected:n&&"buttonText"===o,onFocus:j("buttonText"),keepPlaceholderOnFocus:!0})))),n&&wp.element.createElement("form",{key:"form-link",onSubmit:function(e){return e.preventDefault()},className:"blocks-button__inline-link ugb-button-"+v},wp.element.createElement(u.e,{icon:"admin-links"}),wp.element.createElement(u.o,{value:m,onChange:function(e){return t({buttonURL:e})}}),wp.element.createElement(u.f,{icon:"editor-break",label:Object(u.p)("Apply"),type:"submit"}))]},s=function(e){var t=e.attributes,n=t.url,o=t.buttonURL,a=t.buttonText,c=t.buttonColor,i=t.buttonTextColor,u=t.cornerButtonRadius,m=t.size,s=t.title,p=t.titleColor,b=t.subtitle,d=t.subtitleColor,g=(t.contentAlign,t.id,t.backgroundColor),h=t.opacity,f={backgroundColor:c,color:i,borderRadius:u+"px"},w=n?{backgroundImage:"url("+n+")"}:void 0,y=n?"has-image":"",v=r()(l(h),{"overlay-opacity":0!==h}),E=s.length||b.length||a.length?"has-content":"has-no-content";return wp.element.createElement("div",{className:"ugb-header "+y+" "+E},wp.element.createElement("div",{className:"ugb-header-overlay "+v,style:{backgroundColor:g}}),wp.element.createElement("section",{key:"preview","data-url":n,style:w,className:"ugb-header-section"},s&&!!s.length&&wp.element.createElement("h2",{className:"ugb-header-title",style:{color:p}},s),b&&!!b.length&&wp.element.createElement("p",{className:"ugb-header-subtitle",style:{color:d}},b),a&&!!a.length&&wp.element.createElement("a",{href:o,className:"wp-ugb-button ugb-button-"+m,style:f},a)))};Object(u.q)("ugb/header",{title:Object(u.p)("Header"),icon:i.f,category:"common",keywords:[Object(u.p)("Header"),Object(u.p)("Stackable")],attributes:{title:{type:"array",source:"children",selector:"h2",default:Object(u.p)("Heading Title")},subtitle:{type:"array",source:"children",selector:"p",default:Object(u.p)("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus congue tincidunt nisit ut pretium. Duis blandit, tortor et suscipit tincidunt, dolor metus mattis neque, ac varius magna nibh ac tortor.")},url:{type:"string",source:"attribute",selector:".ugb-header .ugb-header-section",attribute:"data-url"},buttonURL:{type:"string",source:"attribute",selector:"a",attribute:"href"},titleColor:{type:"string",default:"#ffffff"},subtitleColor:{type:"string",default:"#ffffff"},buttonText:{type:"array",source:"children",selector:".ugb-header a.wp-ugb-button",default:Object(u.p)("Button")},buttonColor:{type:"string",default:"#2091e1"},buttonTextColor:{type:"string",default:"#ffffff"},size:{type:"string",default:"normal"},cornerButtonRadius:{type:"number",default:4},contentAlign:{type:"string",default:"center"},id:{type:"number"},backgroundColor:{type:"string",default:"#000000"},opacity:{type:"number",default:5}},edit:Object(u.r)({editable:"content"})(m),save:s})},function(e,t,n){var l,o;!function(){"use strict";function n(){for(var e=[],t=0;t<arguments.length;t++){var l=arguments[t];if(l){var o=typeof l;if("string"===o||"number"===o)e.push(l);else if(Array.isArray(l)&&l.length){var a=n.apply(null,l);a&&e.push(a)}else if("object"===o)for(var c in l)r.call(l,c)&&l[c]&&e.push(c)}}return e.join(" ")}var r={}.hasOwnProperty;"undefined"!==typeof e&&e.exports?(n.default=n,e.exports=n):(l=[],void 0!==(o=function(){return n}.apply(t,l))&&(e.exports=o))}()},function(e,t){},function(e,t){},function(e,t,n){"use strict";var l=n(51),o=(n.n(l),n(52)),r=(n.n(o),n(0)),a=n(1),c=function(e){var t=(e.className,e.setAttributes),n=e.isSelected,l=e.editable,o=e.setState,r=e.attributes,c=r.url,i=r.title,u=r.titleColor,m=r.subtitle,s=r.subtitleColor,p=r.overlayColor,b=r.id,d=r.height,g=r.width,h=r.verticalAlign,f=r.horizontalAlign,w=r.full,y=c?"has-image":"",v=w?"full-width":"",E=function(e){return function(){o({editable:e})}},C=[{value:"flex-start",label:Object(a.p)("Top")},{value:"center",label:Object(a.p)("Center")},{value:"flex-end",label:Object(a.p)("Bottom")}],O=[{value:"flex-start",label:Object(a.p)("Left")},{value:"center",label:Object(a.p)("Center")},{value:"flex-end",label:Object(a.p)("Right")}];return[n&&wp.element.createElement(a.b,{key:"controls"},c&&wp.element.createElement(a.n,null,wp.element.createElement(a.h,{onSelect:function(e){return t({url:e.url,id:e.id})},type:"image",value:b,render:function(e){var t=e.open;return wp.element.createElement(a.f,{className:"components-toolbar__control",label:Object(a.p)("Edit image"),icon:"edit",onClick:t})}}))),n&&wp.element.createElement(a.g,{key:"inspector"},wp.element.createElement(a.m,{label:"Full-Width",checked:!!w,onChange:function(){return t({full:!w})}}),wp.element.createElement(a.j,{label:Object(a.p)("Height"),value:d,min:"135",max:"700",onChange:function(e){return t({height:e})}}),wp.element.createElement(a.j,{label:Object(a.p)("Width"),value:g,min:"400",max:"999",onChange:function(e){return t({width:e})}}),wp.element.createElement(a.l,{label:Object(a.p)("Vertical Alignment"),value:h,options:C.map(function(e){return{value:e.value,label:e.label}}),onChange:function(e){t({verticalAlign:e})}}),wp.element.createElement(a.l,{label:Object(a.p)("Horizontal Alignment"),value:f,options:O.map(function(e){return{value:e.value,label:e.label}}),onChange:function(e){t({horizontalAlign:e})}}),wp.element.createElement(a.i,{title:Object(a.p)("Title Color"),colorValue:u,initialOpen:!1},wp.element.createElement(a.d,{value:u,onChange:function(e){return t({titleColor:e})}})),wp.element.createElement(a.i,{title:Object(a.p)("Subtitle Color"),colorValue:s,initialOpen:!1},wp.element.createElement(a.d,{value:s,onChange:function(e){return t({subtitleColor:e})}})),wp.element.createElement(a.i,{title:Object(a.p)("Overlay Color"),colorValue:p,initialOpen:!1},wp.element.createElement(a.d,{value:p,onChange:function(e){return t({overlayColor:e})}}))),wp.element.createElement("div",{key:"editable",className:"ugb-image-box "+y+" "+v,"data-url":c,style:{width:g+"px",height:d+"px",backgroundImage:"url("+c+")",alignItems:f,justifyContent:h}},wp.element.createElement(a.h,{onSelect:function(e){return t({url:e.url,id:e.id})},type:"image",value:b,render:function(e){return[!c&&wp.element.createElement(a.c,{className:b?"":"button button-large",onClick:e.open},Object(a.p)("Upload Image"))]}}),wp.element.createElement("a",{href:"#",style:{backgroundColor:p}}),wp.element.createElement(a.k,{tagName:"h4",placeholder:i.default,value:i,onChange:function(e){return t({title:e})},isSelected:n&&"title"===l,onFocus:E("title"),style:{color:u}}),wp.element.createElement(a.k,{tagName:"p",placeholder:m.default,value:m,onChange:function(e){return t({subtitle:e})},isSelected:n&&"subtitle"===l,onFocus:E("subtitle"),style:{color:s}}))]},i=function(e){var t=e.attributes,n=t.url,l=t.title,o=t.titleColor,r=t.subtitle,a=t.subtitleColor,c=t.overlayColor,i=(t.id,t.height),u=t.width,m=t.verticalAlign,s=t.horizontalAlign,p=t.full,b=n?"has-image":"",d=p?"full-width":"",g=l.length||r.length?"has-content":"has-no-content";return wp.element.createElement("div",{className:"ugb-image-box "+b+" "+g+" "+d,"data-url":n,style:{width:u+"px",height:i+"px",backgroundImage:"url("+n+")",alignItems:s,justifyContent:m}},wp.element.createElement("a",{href:"#",style:{backgroundColor:c}}),l&&!!l.length&&wp.element.createElement("h4",{style:{color:o}},l),r&&!!r.length&&wp.element.createElement("p",{style:{color:a}},r))};Object(a.q)("ugb/image-box",{title:Object(a.p)("Image Box"),icon:r.i,category:"common",keywords:[Object(a.p)("Image Box"),Object(a.p)("Stackable")],attributes:{title:{type:"array",source:"children",selector:"h4",default:Object(a.p)("Title")},subtitle:{type:"array",source:"children",selector:"p",default:Object(a.p)("Subtitle goes here")},url:{type:"string",source:"attribute",selector:".ugb-image-box",attribute:"data-url"},titleColor:{type:"string",default:"#ffffff"},subtitleColor:{type:"string",default:"#ffffff"},overlayColor:{type:"string",default:"#42b078"},id:{type:"number"},width:{type:"number",default:"400"},height:{type:"number",default:"400"},verticalAlign:{type:"string",default:"center"},horizontalAlign:{type:"string",default:"center"},full:{type:"boolean",default:!1}},edit:Object(a.r)({editable:"content"})(c),save:i})},function(e,t){},function(e,t){},function(e,t,n){"use strict";var l=n(54),o=(n.n(l),n(55)),r=(n.n(o),n(0)),a=n(1),c=function(e){var t=function(e){return function(){o({editable:e})}},n=e.isSelected,l=e.editable,o=e.setState,r=e.setAttributes,c=(e.className,e.attributes),i=c.color,u=c.headingColor,m=c.desColor,s=c.title,p=c.counter,b=c.des,d=c.fontSize;return[wp.element.createElement("div",{className:"ugb-countup"},wp.element.createElement(a.k,{tagName:"h4",value:s,onChange:function(e){return r({title:e})},isSelected:n&&"title"===l,onFocus:t("title"),style:{color:u}}),wp.element.createElement(a.k,{tagName:"div",className:"ugb-counter",placeholder:p.default,"data-duration":"1000","data-delay":"16",value:p,onChange:function(e){return r({counter:e})},isSelected:n&&"counter"===l,onFocus:t("counter"),style:{color:i,fontSize:d+"px"}}),wp.element.createElement(a.k,{tagName:"p",className:"ugb-counter-des",value:b,onChange:function(e){return r({des:e})},isSelected:n&&"des"===l,onFocus:t("des"),style:{color:m}})),n&&wp.element.createElement(a.g,{key:"inspector"},wp.element.createElement(a.i,{title:Object(a.p)("Heading Color"),colorValue:u,initialOpen:!1},wp.element.createElement(a.d,{value:u,onChange:function(e){return r({headingColor:e})}})),wp.element.createElement(a.i,{title:Object(a.p)("Count Up Text Color"),colorValue:i,initialOpen:!1},wp.element.createElement(a.d,{value:i,onChange:function(e){return r({color:e})}})),wp.element.createElement(a.i,{title:Object(a.p)("Description Color"),colorValue:m,initialOpen:!1},wp.element.createElement(a.d,{value:m,onChange:function(e){return r({desColor:e})}})),wp.element.createElement(a.j,{label:Object(a.p)("Counter Text Font Size"),max:"100",min:"10",value:d,onChange:function(e){return r({fontSize:e})}}))]},i=function(e){var t=e.attributes,n=t.color,l=t.headingColor,o=t.desColor,r=t.title,a=t.counter,c=t.des,i=t.fontSize;return wp.element.createElement("div",{className:"ugb-countup"},wp.element.createElement("h4",{style:{color:l}}," ",r," "),wp.element.createElement("div",{className:"ugb-counter",style:{color:n,fontSize:i+"px"},"data-duration":"1000","data-delay":"16"},a),wp.element.createElement("p",{style:{color:o}}," ",c," "))};Object(a.q)("ugb/count-up",{title:Object(a.p)("Count Up"),icon:r.h,category:"common",keywords:[Object(a.p)("Count Up"),Object(a.p)("Stackable")],attributes:{title:{type:"array",source:"children",selector:"h4",default:Object(a.p)("Happy Customers")},counter:{type:"array",source:"children",selector:".ugb-counter",default:"12,345"},des:{type:"array",source:"children",selector:"p",default:Object(a.p)("and counting")},fontSize:{type:"number",default:"60"},headingColor:{type:"string"},desColor:{type:"string"},color:{type:"string"}},edit:Object(a.r)({editable:"content"})(c),save:i})},function(e,t){},function(e,t){},function(e,t,n){"use strict";var l=n(57),o=(n.n(l),n(58)),r=(n.n(o),n(0)),a=n(1),c={normal:wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"30",height:"30",viewBox:"0 0 256 320"},wp.element.createElement("path",{d:"M0 0v320l256-160L0 0z"})),circle:wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"50",height:"50",viewBox:"0 0 40 40"},wp.element.createElement("path",{d:"M16 29l12-9-12-9v18zm4-29C8.95 0 0 8.95 0 20s8.95 20 20 20 20-8.95 20-20S31.05 0 20 0zm0 36c-8.82 0-16-7.18-16-16S11.18 4 20 4s16 7.18 16 16-7.18 16-16 16z"})),outline:wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"50",height:"50",viewBox:"0 0 34 34"},wp.element.createElement("path",{d:"M17 34C7.6 34 0 26.4 0 17S7.6 0 17 0s17 7.6 17 17-7.6 17-17 17zm0-32C8.7 2 2 8.7 2 17s6.7 15 15 15 15-6.7 15-15S25.3 2 17 2z"}),wp.element.createElement("path",{d:"M12 25.7V8.3L27 17l-15 8.7zm2-14v10.5l9-5.3-9-5.2z"}))},i=function(e){var t=(e.className,e.setAttributes),n=e.isSelected,l=e.attributes,o=l.videoLink,r=l.mediaLink,i=l.overlayColor,u=l.playButtonType,m=l.mediaID,s=[{value:"normal",label:Object(a.p)("Normal Play Button")},{value:"circle",label:Object(a.p)("Play Button with Circle")},{value:"outline",label:Object(a.p)("Outline Play Button")}];return[n&&wp.element.createElement(a.b,{key:"controls"},r&&wp.element.createElement(a.n,null,wp.element.createElement(a.h,{onSelect:function(e){return t({mediaLink:e.url,mediaID:e.id})},type:"image",value:m,render:function(e){var t=e.open;return wp.element.createElement(a.f,{className:"components-toolbar__control",label:Object(a.p)("Edit image"),icon:"edit",onClick:t})}}))),n&&wp.element.createElement(a.g,{key:"inspector"},wp.element.createElement(a.l,{label:Object(a.p)("Play Button Style"),value:u,options:s.map(function(e){return{value:e.value,label:e.label}}),onChange:function(e){t({playButtonType:e})}}),wp.element.createElement(a.i,{title:Object(a.p)("Background/Overlay Color"),colorValue:i,initialOpen:!1},wp.element.createElement(a.d,{value:i,onChange:function(e){return t({overlayColor:e})}}))),wp.element.createElement("div",{className:"ugb-video-popup","data-video":o,style:{backgroundColor:i}},wp.element.createElement("div",{className:"ugb-video-preview",style:{backgroundImage:"url("+r+")"}}),wp.element.createElement("div",{className:"ugb-video-wrapper"},wp.element.createElement(a.h,{onSelect:function(e){return t({mediaLink:e.url,mediaID:e.id})},type:"image",value:m,render:function(e){return[!r&&wp.element.createElement(a.c,{className:m?"":"button button-large",onClick:e.open},Object(a.p)("Upload Image"))]}}),wp.element.createElement("div",{className:"ugb-video-overlay",style:{backgroundColor:i}}),wp.element.createElement("span",{className:"ugb-play-button"},c[u]))),n&&wp.element.createElement("form",{key:"form-link",onSubmit:function(e){return e.preventDefault()},className:"ugb-video-popup-link blocks-button__inline-link"},wp.element.createElement(a.e,{icon:"admin-links"}),wp.element.createElement(a.o,{value:o,onChange:function(e){return t({videoLink:e})}}),wp.element.createElement(a.f,{icon:"editor-break",label:Object(a.p)("Apply"),type:"submit"}),wp.element.createElement("p",null,wp.element.createElement("i",null,"Youtube/Vimeo ID only")))]},u=function(e){var t=e.attributes,n=t.videoLink,l=t.mediaLink,o=t.overlayColor,r=t.playButtonType;t.mediaID;return wp.element.createElement("div",{className:"ugb-video-popup","data-video":n,style:{backgroundColor:o}},wp.element.createElement("div",{className:"ugb-video-preview",style:{backgroundImage:"url("+l+")"},"data-url":l}),wp.element.createElement("div",{className:"ugb-video-wrapper"},wp.element.createElement("a",{href:"#",style:{backgroundColor:o}}),wp.element.createElement("span",{className:"ugb-play-button"},c[r])))};Object(a.q)("ugb/video-popup",{title:Object(a.p)("Video Popup"),icon:r.o,category:"common",keywords:[Object(a.p)("Video Popup"),Object(a.p)("Stackable")],attributes:{videoLink:{type:"string",source:"attribute",selector:".ugb-video-popup",attribute:"data-video"},mediaLink:{type:"string",source:"attribute",selector:".ugb-video-preview",attribute:"data-url"},mediaID:{type:"number"},overlayColor:{type:"string",default:"#000000"},playButtonType:{type:"string",default:"normal"}},edit:i,save:u})},function(e,t){},function(e,t){},function(e,t,n){"use strict";var l=n(60),o=(n.n(l),n(61)),r=(n.n(o),n(0)),a=n(1),c=function(e){var t=e.isSelected,n=e.editable,l=e.setState,o=(e.className,e.setAttributes),r=e.attributes,c=r.heading,i=r.tagline,u=r.des,m=r.mediaID,s=r.mediaURL,p=r.headingColor,b=r.taglineColor,d=r.desColor,g=r.buttonURL,h=r.buttonText,f=r.buttonColor,w=r.buttonTextColor,y=r.size,v=r.cornerButtonRadius,E=r.contentAlign,C=function(e){return function(){l({editable:e})}},O=s?"has-image":"",x=[{value:"small",label:Object(a.p)("Small")},{value:"normal",label:Object(a.p)("Normal")},{value:"medium",label:Object(a.p)("Medium")},{value:"large",label:Object(a.p)("Large")}];return[t&&wp.element.createElement(a.b,{key:"controls"},wp.element.createElement(a.a,{value:E,onChange:function(e){return o({contentAlign:e})}}),wp.element.createElement(a.n,null,wp.element.createElement(a.h,{onSelect:function(e){return o({mediaURL:e.url,mediaID:e.id})},type:"image",value:m,render:function(e){var t=e.open;return wp.element.createElement(a.f,{className:"components-toolbar__control",label:Object(a.p)("Edit image"),icon:"edit",onClick:t})}}))),t&&wp.element.createElement(a.g,{key:"inspector"},wp.element.createElement(a.i,{title:Object(a.p)("Heading Color"),colorValue:p,initialOpen:!1},wp.element.createElement(a.d,{value:p,onChange:function(e){return o({headingColor:e})}})),wp.element.createElement(a.i,{title:Object(a.p)("Tagline Color"),colorValue:b,initialOpen:!1},wp.element.createElement(a.d,{value:b,onChange:function(e){return o({taglineColor:e})}})),wp.element.createElement(a.i,{title:Object(a.p)("Description Color"),colorValue:d,initialOpen:!1},wp.element.createElement(a.d,{value:d,onChange:function(e){return o({desColor:e})}})),wp.element.createElement("h2",null,"Button Settings"),wp.element.createElement(a.l,{label:Object(a.p)("Button Size"),value:y,options:x.map(function(e){return{value:e.value,label:e.label}}),onChange:function(e){o({size:e})}}),wp.element.createElement(a.j,{label:Object(a.p)("Corner Radius"),value:v,min:"1",max:"50",onChange:function(e){return o({cornerButtonRadius:e})}}),wp.element.createElement(a.i,{title:Object(a.p)("Button Color"),colorValue:f,initialOpen:!1},wp.element.createElement(a.d,{value:f,onChange:function(e){return o({buttonColor:e})}})),wp.element.createElement(a.i,{title:Object(a.p)("Button Text Color"),colorValue:w,initialOpen:!1},wp.element.createElement(a.d,{value:w,onChange:function(e){return o({buttonTextColor:e})}}))),wp.element.createElement("div",{key:"editable",className:"ugb-card "+O},wp.element.createElement("div",{className:"ugb-card-image-container",style:{backgroundImage:"url("+s+")",textAlign:E}},wp.element.createElement(a.h,{onSelect:function(e){return o({mediaURL:e.url,mediaID:e.id})},type:"image",value:m,render:function(e){return[!s&&wp.element.createElement(a.c,{className:m?"":"button button-large",onClick:e.open},Object(a.p)("Upload Image"))]}})),wp.element.createElement(a.k,{tagName:"h4",value:c,className:"ugb-card-heading",onChange:function(e){return o({heading:e})},isSelected:t&&"heading"===n,onFocus:C("heading"),style:{color:p,textAlign:E},keepPlaceholderOnFocus:!0}),wp.element.createElement(a.k,{tagName:"p",value:i,className:"ugb-tagline",onChange:function(e){return o({tagline:e})},isSelected:t&&"tagline"===n,onFocus:C("tagline"),style:{color:b,textAlign:E},keepPlaceholderOnFocus:!0}),wp.element.createElement(a.k,{tagName:"p",value:u,className:"ugb-card-des",onChange:function(e){return o({des:e})},isSelected:t&&"des"===n,onFocus:C("des"),style:{color:d,textAlign:E},keepPlaceholderOnFocus:!0}),wp.element.createElement("span",{key:"button",className:"wp-block-button ugb-button-"+E},wp.element.createElement(a.k,{tagName:"span",placeholder:h.default,value:h,onChange:function(e){return o({buttonText:e})},className:"wp-ugb-button ugb-button-"+y,style:{backgroundColor:f,color:w,borderRadius:v+"px"},isSelected:t&&"buttonText"===n,onFocus:C("buttonText"),keepPlaceholderOnFocus:!0}))),t&&wp.element.createElement("form",{key:"form-link",onSubmit:function(e){return e.preventDefault()},className:"blocks-button__inline-link ugb-button-"+E,style:{marginTop:10}},wp.element.createElement(a.e,{icon:"admin-links"}),wp.element.createElement(a.o,{value:g,onChange:function(e){return o({buttonURL:e})}}),wp.element.createElement(a.f,{icon:"editor-break",label:Object(a.p)("Apply"),type:"submit"}))]},i=function(e){var t=e.attributes,n=t.heading,l=t.tagline,o=t.des,r=t.mediaURL,a=(t.mediaID,t.headingColor),c=t.taglineColor,i=t.desColor,u=t.buttonURL,m=t.buttonText,s=t.buttonColor,p=t.buttonTextColor,b=t.size,d=t.cornerButtonRadius,g=t.contentAlign,h={backgroundColor:s,color:p,borderRadius:d+"px"},f=r?"has-image":"",w=n.length||l.length||o.length||m.length?"has-content":"has-no-content";return wp.element.createElement("div",{className:"ugb-card "+f+" "+w},r&&wp.element.createElement("div",{className:"ugb-card-image-container",style:{backgroundImage:"url("+r+")",textAlign:g},"data-src":r}),n&&!!n.length&&wp.element.createElement("h4",{style:{color:a,textAlign:g}},n),l&&!!l.length&&wp.element.createElement("p",{className:"ugb-tagline",style:{color:c,textAlign:g}},l),o&&!!o.length&&wp.element.createElement("p",{className:"ugb-card-des",style:{color:i,textAlign:g}},o),m&&!!m.length&&wp.element.createElement("a",{href:u,className:"wp-ugb-button wp-block-button ugb-button-"+b+" ugb-button-"+g,style:h},m))};Object(a.q)("ugb/card",{title:Object(a.p)("Card"),icon:r.m,category:"common",keywords:[Object(a.p)("Card"),Object(a.p)("Stackable")],attributes:{mediaID:{type:"number"},mediaURL:{type:"string",source:"attribute",selector:".ugb-card-image-container",attribute:"data-src"},heading:{type:"array",source:"children",selector:".ugb-card h4",default:Object(a.p)("Ben Adams")},tagline:{type:"array",source:"children",selector:".ugb-tagline",default:Object(a.p)("Ben is the head of our small team")},des:{type:"array",source:"children",selector:".ugb-card-des",default:Object(a.p)("Ben is the head of our small team. He loves walking his dog, Walter, when he has some free time.")},headingColor:{type:"string"},taglineColor:{type:"string"},desColor:{type:"string"},buttonURL:{type:"string",source:"attribute",selector:".wp-ugb-button",attribute:"href"},buttonText:{type:"array",source:"children",selector:".wp-block-button",default:Object(a.p)("Button")},buttonColor:{type:"string",default:"#2091e1"},buttonTextColor:{type:"string",default:"#ffffff"},size:{type:"string",default:"normal"},cornerButtonRadius:{type:"number",default:4},contentAlign:{type:"string",default:"left"}},edit:Object(a.r)({editable:"content"})(c),save:i})},function(e,t){},function(e,t){}]);
1
+ !function(e){function t(l){if(n[l])return n[l].exports;var o=n[l]={i:l,l:!1,exports:{}};return e[l].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,l){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:l})},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=3)}([function(e,t,n){"use strict";n.d(t,"g",function(){return c}),n.d(t,"a",function(){return u}),n.d(t,"e",function(){return i}),n.d(t,"c",function(){return m}),n.d(t,"k",function(){return s}),n.d(t,"l",function(){return b}),n.d(t,"n",function(){return p}),n.d(t,"b",function(){return d}),n.d(t,"m",function(){return g}),n.d(t,"d",function(){return h}),n.d(t,"h",function(){return f}),n.d(t,"f",function(){return w}),n.d(t,"i",function(){return y}),n.d(t,"o",function(){return v}),n.d(t,"j",function(){return E});var l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&(e[l]=n[l])}return e},o=function(e){return wp.element.createElement("defs",null,wp.element.createElement("linearGradient",l({},e,{gradientTransform:"rotate(90)"}),wp.element.createElement("stop",{offset:"0%",stopColor:"#2FDDD1",stopOpacity:"1"}),wp.element.createElement("stop",{offset:"20%",stopColor:"#30A2E3",stopOpacity:"1"}),wp.element.createElement("stop",{offset:"50%",stopColor:"#F56FAE",stopOpacity:"1"}),wp.element.createElement("stop",{offset:"100%",stopColor:"#FFC58E",stopOpacity:"1"})))},r=1,a=function(){return"stk-icon-"+r++},c=function(){var e=a();return wp.element.createElement("svg",{className:"dashicon",role:"img",focusable:"false",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",width:"20",height:"20"},wp.element.createElement(o,{id:e}),wp.element.createElement("path",{fill:"url(#"+e+")",d:"M512 96c-111.118 0-215.584 43.272-294.156 121.844S96 400.882 96 512s43.272 215.584 121.844 294.156S400.882 928 512 928s215.584-43.272 294.156-121.844S928 623.118 928 512s-43.272-215.584-121.843-294.156S623.118 96 512 96zm0-96c282.77 0 512 229.23 512 512s-229.23 512-512 512S0 794.77 0 512 229.23 0 512 0zm-64 704h128v128H448zm0-512h128v384H448z"}))},u=function(){var e=a();return wp.element.createElement("svg",{className:"dashicon",role:"img",focusable:"false",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20"},wp.element.createElement(o,{id:e}),wp.element.createElement("path",{fill:"url(#"+e+")",d:"M17 5H3c-1.1 0-2 .9-2 2v6c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm1 7c0 .6-.4 1-1 1H3c-.6 0-1-.4-1-1V7c0-.6.4-1 1-1h14c.6 0 1 .4 1 1v5z"}))},i=function(){return wp.element.createElement(u,null)},m=function(){var e=a();return wp.element.createElement("svg",{className:"dashicon",role:"img",focusable:"false",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20"},wp.element.createElement(o,{id:e}),wp.element.createElement("path",{fill:"url(#"+e+")",d:"M4 9h12v2H4V9z"}))},s=function(){var e=a();return wp.element.createElement("svg",{className:"dashicon",role:"img",focusable:"false",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20"},wp.element.createElement(o,{id:e}),wp.element.createElement("path",{fill:"url(#"+e+")",d:"M8.54 12.74c0-.87-.24-1.61-.72-2.22-.73-.92-2.14-1.03-2.96-.85-.34-1.93 1.3-4.39 3.42-5.45L6.65 1.94C3.45 3.46.31 6.96.85 11.37 1.19 14.16 2.8 16 5.08 16c1 0 1.83-.29 2.48-.88.66-.59.98-1.38.98-2.38zm9.43 0c0-.87-.24-1.61-.72-2.22-.73-.92-2.14-1.03-2.96-.85-.34-1.93 1.3-4.39 3.42-5.45l-1.63-2.28c-3.2 1.52-6.34 5.02-5.8 9.43.34 2.79 1.95 4.63 4.23 4.63 1 0 1.83-.29 2.48-.88.66-.59.98-1.38.98-2.38z"}))},b=function(){var e=a();return wp.element.createElement("svg",{className:"dashicon",role:"img",focusable:"false",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 14 32"},wp.element.createElement(o,{id:e}),wp.element.createElement("path",{fill:"url(#"+e+")",d:"M0 29h5.833L0 23h5V9H0l5.833-6H0V0h14v3H8.167L14 9H9v14h5l-5.833 6H14v3H0v-3z"}))},p=function(){var e=a();return wp.element.createElement("svg",{className:"dashicon",role:"img",focusable:"false",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 13 12.916010856628418"},wp.element.createElement(o,{id:e}),wp.element.createElement("path",{fill:"url(#"+e+")",d:"M5.68 12.916a.5.5 0 0 1-.397-.196L3.208 10H1.463C.656 10 0 9.428 0 8.621V1.463C0 .656.656 0 1.463 0h10.074C12.344 0 13 .656 13 1.463v7.158C13 9.428 12.344 10 11.537 10H8.151l-2.073 2.72a.504.504 0 0 1-.398.196zM1.463 1A.464.464 0 0 0 1 1.463v7.158c0 .255.208.463.463.463h1.993a.5.5 0 0 1 .397.196l1.827 2.312L7.507 9.28a.502.502 0 0 1 .397-.196h3.633A.464.464 0 0 0 12 8.621V1.463A.464.464 0 0 0 11.537 1H1.463zm1.193 2h7.828c.284.024.514.207.514.49a.498.498 0 0 1-.514.496H2.656a.499.499 0 0 1-.514-.496c.001-.283.231-.466.514-.49zm0 3h7.828c.284.024.514.207.514.49a.498.498 0 0 1-.514.496H2.656a.499.499 0 0 1-.514-.496c.001-.283.231-.466.514-.49z"}))},d=function(){var e=a();return wp.element.createElement("svg",{className:"dashicon",role:"img",focusable:"false",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 16 14"},wp.element.createElement(o,{id:e}),wp.element.createElement("path",{fill:"url(#"+e+")",d:"M10 0c-.17 0-.36.05-.52.14C8.04 1.02 4.5 3.58 3 4c-1.38 0-3 .67-3 2.5S1.63 9 3 9c.3.08.64.23 1 .41V14h2v-3.45c1.34.86 2.69 1.83 3.48 2.31.16.09.34.14.52.14.52 0 1-.42 1-1V1c0-.58-.48-1-1-1zm0 12c-.38-.23-.89-.58-1.5-1-.16-.11-.33-.22-.5-.34V2.31c.16-.11.31-.2.47-.31.61-.41 1.16-.77 1.53-1v11zm2-6h4v1h-4V6zm0 2l4 2v1l-4-2V8zm4-6v1l-4 2V4l4-2z"}))},g=function(){var e=a();return wp.element.createElement("svg",{className:"dashicon",role:"img",focusable:"false",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 896 1023"},wp.element.createElement(o,{id:e}),wp.element.createElement("path",{fill:"url(#"+e+")",d:"M821 491q-41-41-95-60 62-26 100-82t38-125q0-93-65.5-158.5T640 0q-71 0-128.5 41T430 147q-32-39-77-61t-97-22q-93 0-158.5 65.5T32 288q0 69 38 125t100 82q-54 19-95 60Q0 630 0 736v191q0 40 28 68t68 28h320q31 0 55.5-18t34.5-46h294q40 0 68-28t28-68V672q0-106-75-181zM527 111q47-47 113-47t113 47 47 113-47 113-113 47-113-47-47-113 47-113zM143 401q-47-47-47-113t47-113 113-47 113 47 47 113-47 113-113 47-113-47zm305 526q0 13-9.5 22.5T416 959H96q-13 0-22.5-9.5T64 927V736q0-79 56.5-135.5T256 544t136 56q1 2 2 3 54 55 54 133v191zm-27-387q-36-30-79-45 43-18 75.5-52t48.5-78q36 44 88 66-54 19-95 60-22 23-38 49zm411 323q0 13-9.5 22.5T800 895H512V736q0-80-46-146 15-30 38-53 57-57 136-57t135.5 56.5T832 672v191z"}))},h=function(){var e=a();return wp.element.createElement("svg",{className:"dashicon",role:"img",focusable:"false",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 32 8"},wp.element.createElement(o,{id:e}),wp.element.createElement("path",{fill:"url(#"+e+")",d:"M4 0C1.79 0 0 1.79 0 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm24 0c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zM16 0c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4z"}))},f=function(){var e=a();return wp.element.createElement("svg",{className:"dashicon",role:"img",focusable:"false",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 21.027502059936523 10.284000396728516"},wp.element.createElement(o,{id:e}),wp.element.createElement("path",{fill:"url(#"+e+")",d:"M3.028 10.284a1 1 0 0 1-1-1V2.902l-.553.276A1 1 0 1 1 .58 1.389l2-1a.998.998 0 0 1 1.447.895v8a1 1 0 0 1-1 1zm9 0h-5a1.002 1.002 0 0 1-.707-1.707l4-4c.254-.254.394-.591.394-.95 0-.358-.14-.695-.394-.949-.508-.508-1.39-.508-1.9.001a1.33 1.33 0 0 0-.393.948 1 1 0 0 1-2 0c0-.894.348-1.733.98-2.364C8.273 0 10.472 0 11.735 1.264c.632.631.979 1.471.979 2.363 0 .893-.348 1.733-.98 2.364L9.443 8.284h2.586a1 1 0 0 1 0 2zm7.955-5.623a2.725 2.725 0 0 0 .545-1.627 2.753 2.753 0 0 0-2.75-2.75 2.739 2.739 0 0 0-2.44 1.484 1 1 0 1 0 1.776.92.75.75 0 1 1 .664 1.096 1 1 0 0 0 0 2c.689 0 1.25.561 1.25 1.25s-.561 1.25-1.25 1.25-1.25-.561-1.25-1.25a1 1 0 0 0-2 0c0 1.792 1.458 3.25 3.25 3.25s3.25-1.458 3.25-3.25a3.23 3.23 0 0 0-1.045-2.373z"}))},w=function(){var e=a();return wp.element.createElement("svg",{className:"dashicon",role:"img",focusable:"false",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 32 38"},wp.element.createElement(o,{id:e}),wp.element.createElement("path",{fill:"url(#"+e+")",d:"M0 0h32v38H0V0zm3 3v32h26V3H3zm2 2h22v7H5V5zm0 9h14v19H5V14zm16 19V14h6v19h-6zM6 6v5h20V6H6z"}))},y=function(){var e=a();return wp.element.createElement("svg",{className:"dashicon",role:"img",focusable:"false",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 1024 896"},wp.element.createElement(o,{id:e}),wp.element.createElement("path",{fill:"url(#"+e+")",d:"M960 0H64Q38 0 19 19T0 64v768q0 26 19 45t45 19h896q26 0 45-19t19-45V64q0-26-19-45T960 0zM64 64h896v714L724 430q-7-12-21-14t-25 7L524 548 350 305q-10-14-28-13t-26 17L64 757V64zm855 768H97l231-447 184 255 179-145zM737 190q13 0 22.5 9.5T769 222t-9.5 22.5T737 254t-22.5-9.5T705 222t9.5-22.5T737 190zm0-64q-40 0-68 28t-28 68 28 68 68 28 68-28 28-68-28-68-68-28z"}))},v=function(){var e=a();return wp.element.createElement("svg",{className:"dashicon",role:"img",focusable:"false",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 38 26"},wp.element.createElement(o,{id:e}),wp.element.createElement("path",{fill:"url(#"+e+")",d:"M2 0h34a2 2 0 0 1 2 2v22a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2zm5.77 4C6.24 4 5 5.511 5 7.375v11.25C5 20.489 6.24 22 7.77 22h15.46c1.53 0 2.77-1.511 2.77-3.375V16l6 5h1V5h-1l-6 5V7.375C26 5.511 24.76 4 23.23 4H7.77z"}))},E=function(){var e=a();return wp.element.createElement("svg",{className:"dashicon",role:"img",focusable:"false",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 448 448"},wp.element.createElement(o,{id:e}),wp.element.createElement("path",{fill:"url(#"+e+")",d:"M416 32V0H256L0 288l160 160 23.471-23.904L208 448l240-272V32h-32zM160 425.371L22.39 288 262.621 16H400v137.377l-216.555 247.99-11.34 11.363L160 425.371zm272-255.994L208 425.371l-13.182-12.65L416 160V48h16v121.377z"}),wp.element.createElement("path",{d:"M320 128c17.645 0 32-14.355 32-32s-14.355-32-32-32-32 14.355-32 32 14.355 32 32 32zm0-48c8.836 0 16 7.163 16 16s-7.164 16-16 16-16-7.163-16-16 7.164-16 16-16z"}))}},function(e,t,n){"use strict";n.d(t,"r",function(){return l}),n.d(t,"q",function(){return o}),n.d(t,"j",function(){return a}),n.d(t,"k",function(){return c}),n.d(t,"m",function(){return u}),n.d(t,"n",function(){return i}),n.d(t,"e",function(){return m}),n.d(t,"f",function(){return s}),n.d(t,"c",function(){return b}),n.d(t,"o",function(){return p}),n.d(t,"i",function(){return d}),n.d(t,"g",function(){return h}),n.d(t,"b",function(){return f}),n.d(t,"d",function(){return w}),n.d(t,"a",function(){return y}),n.d(t,"l",function(){return v}),n.d(t,"p",function(){return E}),n.d(t,"h",function(){return C});var l=wp.blocks.registerBlockType,o=wp.i18n.__,r=wp.components,a=r.PanelColor,c=r.RangeControl,u=r.SelectControl,i=(r.TextControl,r.ToggleControl),m=r.Dashicon,s=r.IconButton,b=r.Button,p=r.Toolbar,d=r.PanelBody,g=wp.editor.InspectorControls?wp.editor:wp.blocks,h=g.InspectorControls,f=g.BlockControls,w=g.ColorPalette,y=g.AlignmentToolbar,v=g.RichText,E=g.URLInput,C=g.MediaUpload},function(e,t){var n={utf8:{stringToBytes:function(e){return n.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(n.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],n=0;n<e.length;n++)t.push(255&e.charCodeAt(n));return t},bytesToString:function(e){for(var t=[],n=0;n<e.length;n++)t.push(String.fromCharCode(e[n]));return t.join("")}}};e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});n(4),n(7),n(10),n(13),n(16),n(22),n(25),n(28),n(31),n(34),n(37),n(40),n(43),n(46),n(50),n(53),n(56),n(59)},function(e,t,n){"use strict";var l=n(5),o=(n.n(l),n(6)),r=(n.n(o),n(0)),a=n(1),c=function(e){var t=e.attributes.height;return wp.element.createElement("div",{style:{height:t+"px"}})},u=function(e){var t=e.isSelected,n=e.attributes.height;return[!!t&&wp.element.createElement(a.g,{key:"inspector"},wp.element.createElement(a.i,null,wp.element.createElement(a.k,{label:Object(a.q)("Height"),value:n,min:"30",max:"200",onChange:function(t){e.setAttributes({height:t})}}))),wp.element.createElement("div",{className:e.className,style:{height:n+"px"}})]};Object(a.r)("ugb/spacer",{title:Object(a.q)("Spacer"),icon:r.l,category:"stackable-ultimate-gutenberg-blocks",keywords:[Object(a.q)("Spacer"),Object(a.q)("Stackable")],attributes:{height:{default:50,type:"number"}},edit:u,save:c})},function(e,t){},function(e,t){},function(e,t,n){"use strict";var l=n(8),o=(n.n(l),n(9)),r=(n.n(o),n(0)),a=n(1),c=function(e){var t=e.attributes,n=t.height,l=t.width,o=t.color,r=t.alignment;return wp.element.createElement("div",{className:"ugb-divider"},wp.element.createElement("hr",{align:r,style:{backgroundColor:o,width:l+"%",height:n}}))},u=function(e){var t=e.isSelected,n=e.attributes,l=n.height,o=n.width,r=n.color,c=n.alignment;return[t&&wp.element.createElement(a.b,{key:"controls"},wp.element.createElement(a.a,{value:c,onChange:function(t){e.setAttributes({alignment:t})}})),t&&wp.element.createElement(a.g,{key:"inspector"},wp.element.createElement(a.i,null,wp.element.createElement(a.k,{label:Object(a.q)("Height"),value:l,min:"1",max:"10",onChange:function(t){e.setAttributes({height:t})}}),wp.element.createElement(a.k,{label:Object(a.q)("Width"),value:o,min:"10",max:"100",step:"0.1",onChange:function(t){e.setAttributes({width:t})}})),wp.element.createElement(a.j,{title:Object(a.q)("Divider Color"),colorValue:r,initialOpen:!1},wp.element.createElement(a.d,{value:r,onChange:function(t){return e.setAttributes({color:t})}}))),wp.element.createElement("div",{className:"ugb-divider",style:{paddingTop:8,paddingBottom:8}},wp.element.createElement("hr",{align:c,style:{marginTop:0,marginBottom:0,backgroundColor:r,width:o+"%",height:l}}))]};Object(a.r)("ugb/divider",{title:Object(a.q)("Divider"),icon:r.c,category:"stackable-ultimate-gutenberg-blocks",keywords:[Object(a.q)("Divider"),Object(a.q)("Stackable")],attributes:{height:{default:1,type:"number"},width:{default:50,type:"number"},color:{type:"string",default:"#dddddd"},alignment:{type:"string",default:"center"}},edit:u,save:c})},function(e,t){},function(e,t){},function(e,t,n){"use strict";var l=n(11),o=(n.n(l),n(12)),r=(n.n(o),n(0)),a=n(1),c=function(e){var t=e.isSelected,n=(e.className,e.setAttributes),l=e.attributes,o=l.url,r=l.text,c=l.color,u=l.textColor,i=l.size,m=l.textAlignment,s=l.cornerButtonRadius,b=[{value:"small",label:Object(a.q)("Small")},{value:"normal",label:Object(a.q)("Normal")},{value:"medium",label:Object(a.q)("Medium")},{value:"large",label:Object(a.q)("Large")}];return[t&&wp.element.createElement(a.b,{key:"controls"},wp.element.createElement(a.a,{value:m,onChange:function(e){n({textAlignment:e})}})),t&&wp.element.createElement(a.g,{key:"inspector"},wp.element.createElement(a.i,null,wp.element.createElement(a.m,{label:Object(a.q)("Size"),value:i,options:b.map(function(e){return{value:e.value,label:e.label}}),onChange:function(e){n({size:e})}}),wp.element.createElement(a.k,{label:Object(a.q)("Corner Radius"),value:s,min:"1",max:"50",onChange:function(e){return n({cornerButtonRadius:e})}})),wp.element.createElement(a.j,{title:Object(a.q)("Background Color"),colorValue:c},wp.element.createElement(a.d,{value:c,onChange:function(e){return n({color:e})}})),wp.element.createElement(a.j,{title:Object(a.q)("Text Color"),colorValue:u},wp.element.createElement(a.d,{value:u,onChange:function(e){return n({textColor:e})}}))),wp.element.createElement("span",{key:"button",className:"wp-block-button ugb-button-"+m},wp.element.createElement(a.l,{tagName:"span",placeholder:Object(a.q)("Enter Text"),value:r,onChange:function(e){return n({text:e})},formattingControls:["bold","italic","strikethrough"],className:"wp-ugb-button ugb-button-"+i,style:{backgroundColor:c,color:u,borderRadius:s+"px"},isSelected:t,keepPlaceholderOnFocus:!0})),t&&wp.element.createElement("form",{key:"form-link",onSubmit:function(e){return e.preventDefault()},className:"blocks-button__inline-link ugb-button-"+m},wp.element.createElement(a.e,{icon:"admin-links"}),wp.element.createElement(a.p,{value:o,onChange:function(e){return n({url:e})}}),wp.element.createElement(a.f,{icon:"editor-break",label:Object(a.q)("Apply"),type:"submit"}))]},u=function(e){var t=e.attributes,n=t.url,l=t.text,o=t.textAlignment,r=t.color,a=t.textColor,c=t.size,u=t.cornerButtonRadius,i={backgroundColor:r,color:a,borderRadius:u+"px"};return wp.element.createElement("div",{className:"ugb-button-"+o},wp.element.createElement("a",{href:n,className:"wp-ugb-button ugb-button-"+c,style:i},l))};Object(a.r)("ugb/button",{title:Object(a.q)("Button"),icon:r.a,description:"Add customize button",category:"stackable-ultimate-gutenberg-blocks",keywords:[Object(a.q)("Button"),Object(a.q)("Stackable")],attributes:{url:{type:"string",source:"attribute",selector:"a",attribute:"href"},text:{type:"array",source:"children",selector:"a"},textAlignment:{type:"string",default:"center"},color:{type:"string",default:"#2091e1"},textColor:{type:"string",default:"#ffffff"},size:{type:"string",default:"normal"},cornerButtonRadius:{type:"number",default:4}},edit:c,save:u})},function(e,t){},function(e,t){},function(e,t,n){"use strict";var l=n(14),o=(n.n(l),n(15)),r=(n.n(o),n(0)),a=n(1),c=function(e){var t=e.isSelected,n=e.setAttributes,l=e.attributes,o=l.url,r=l.text,c=l.color,u=l.size,i=l.textAlignment,m=l.cornerButtonRadius,s=l.borderThickness,b=[{value:"small",label:Object(a.q)("Small")},{value:"normal",label:Object(a.q)("Normal ")},{value:"medium",label:Object(a.q)("Medium")},{value:"large",label:Object(a.q)("Large")}];return[t&&wp.element.createElement(a.b,{key:"controls"},wp.element.createElement(a.a,{value:i,onChange:function(e){n({textAlignment:e})}})),wp.element.createElement("span",{key:"button",className:"wp-block-button ugb-button-"+i},wp.element.createElement(a.l,{tagName:"span",placeholder:Object(a.q)("Enter Text"),value:r,onChange:function(e){return n({text:e})},formattingControls:["bold","italic","strikethrough"],className:"wp-ugb-button ugb-button-"+u+" ugb-ghost-button",style:{borderColor:c,color:c,borderRadius:m+"px",borderWidth:s+"px"},isSelected:t,keepPlaceholderOnFocus:!0}),t&&wp.element.createElement(a.g,{key:"inspector"},wp.element.createElement(a.i,null,wp.element.createElement(a.m,{label:Object(a.q)("Size"),value:u,options:b.map(function(e){return{value:e.value,label:e.label}}),onChange:function(e){n({size:e})}}),wp.element.createElement(a.k,{label:Object(a.q)("Corner Radius"),value:m,min:"1",max:"50",onChange:function(e){return n({cornerButtonRadius:e})}}),wp.element.createElement(a.k,{label:Object(a.q)("Border Thickness"),value:s,min:"1",max:"10",onChange:function(e){return n({borderThickness:e})}})),wp.element.createElement(a.j,{title:Object(a.q)("Button Color"),colorValue:c,initialOpen:!1},wp.element.createElement(a.d,{value:c,onChange:function(e){return n({color:e})}})))),t&&wp.element.createElement("form",{key:"form-link",onSubmit:function(e){return e.preventDefault()},className:"blocks-button__inline-link ugb-button-"+i},wp.element.createElement(a.e,{icon:"admin-links"}),wp.element.createElement(a.p,{value:o,onChange:function(e){return n({url:e})}}),wp.element.createElement(a.f,{icon:"editor-break",label:Object(a.q)("Apply"),type:"submit"}))]},u=function(e){var t=e.attributes,n=t.url,l=t.text,o=t.textAlignment,r=t.color,a=t.size,c=t.cornerButtonRadius,u=t.borderThickness,i={borderColor:r,color:r,borderRadius:c+"px",borderWidth:u+"px"};return wp.element.createElement("div",{className:"ugb-button-"+o},wp.element.createElement("a",{href:n,className:"wp-ugb-button ugb-button-"+a+" ugb-ghost-button",style:i},l))};Object(a.r)("ugb/ghost-button",{title:Object(a.q)("Ghost Button"),icon:r.e,category:"stackable-ultimate-gutenberg-blocks",keywords:[Object(a.q)("Ghost Button"),Object(a.q)("Stackable")],attributes:{url:{type:"string",source:"attribute",selector:"a",attribute:"href"},text:{type:"array",source:"children",selector:"a"},textAlignment:{type:"string",default:"center"},color:{type:"string"},textColor:{type:"string"},size:{type:"string",default:"normal"},cornerButtonRadius:{type:"number",default:"4"},borderThickness:{type:"number",default:"1"}},edit:c,save:u})},function(e,t){},function(e,t){},function(e,t,n){"use strict";var l=n(17),o=(n.n(l),n(18)),r=(n.n(o),n(19)),a=n.n(r),c=n(0),u=n(1),i=function(e){var t=[{value:"success",label:Object(u.q)("Success")},{value:"error",label:Object(u.q)("Error")},{value:"warning",label:Object(u.q)("Warning")},{value:"info",label:Object(u.q)("Information")}],n=e.isSelected,l=e.editable,o=e.setState,r=e.setAttributes,a=(e.className,e.attributes),c=a.text,i=a.color,m=a.textColor,s=a.notifType,b=a.dismissible;return[n&&wp.element.createElement(u.b,{key:"controls"}),wp.element.createElement("div",{key:"editable",className:"ugb-notification type-"+s+" dismissible-"+b},b&&wp.element.createElement("span",{key:"button",className:"close-button"},wp.element.createElement("svg",{viewBox:"0 0 28.3 28.3",style:{fill:m}},wp.element.createElement("path",{d:"M52.4-166.2c3.2,0,3.2-5,0-5C49.2-171.2,49.2-166.2,52.4-166.2L52.4-166.2z"}),wp.element.createElement("path",{d:"M16.8,13.9L26.9,3.8c0.6-0.6,0.6-1.5,0-2.1s-1.5-0.6-2.1,0L14.7,11.8L4.6,1.7C4,1.1,3.1,1.1,2.5,1.7s-0.6,1.5,0,2.1l10.1,10.1L2.5,24c-0.6,0.6-0.6,1.5,0,2.1c0.3,0.3,0.7,0.4,1.1,0.4s0.8-0.1,1.1-0.4L14.7,16l10.1,10.1c0.3,0.3,0.7,0.4,1.1,0.4s0.8-0.1,1.1-0.4c0.6-0.6,0.6-1.5,0-2.1L16.8,13.9z"}))),wp.element.createElement(u.l,{tagName:"p",placeholder:e.attributes.text.default,value:c,isSelected:n&&"content"===l,onFocus:function(e){return function(){o({editable:e})}}("content"),onChange:function(e){return r({text:e})},className:"wp-ugb-notif notif-"+s,style:{backgroundColor:i,color:m}}),n&&wp.element.createElement(u.g,{key:"inspector"},wp.element.createElement(u.i,null,wp.element.createElement(u.n,{label:Object(u.q)("Dismissible"),checked:b,onChange:function(){return r({dismissible:!b})}}),wp.element.createElement(u.m,{label:Object(u.q)("Notification Type"),value:s,options:t.map(function(e){return{value:e.value,label:e.label}}),onChange:function(e){r({notifType:e})}})),wp.element.createElement(u.j,{title:Object(u.q)("Background Color"),colorValue:i,initialOpen:!1},wp.element.createElement(u.d,{value:i,onChange:function(e){return r({color:e})}})),wp.element.createElement(u.j,{title:Object(u.q)("Text Color"),colorValue:m,initialOpen:!1},wp.element.createElement(u.d,{value:m,onChange:function(e){return r({textColor:e})}}))))]},m=function(e){var t=e.attributes,n=t.text,l=t.color,o=t.textColor,r=t.notifType,c=t.dismissible,u={backgroundColor:l,color:o},i=a()(n+r).substr(0,6);return wp.element.createElement("div",{className:"ugb-notification type-"+r+" dismissible-"+c,"data-uid":i},c&&wp.element.createElement("span",{key:"button",className:"close-button"},wp.element.createElement("svg",{viewBox:"0 0 28.3 28.3",style:{fill:o}},wp.element.createElement("path",{d:"M52.4-166.2c3.2,0,3.2-5,0-5C49.2-171.2,49.2-166.2,52.4-166.2L52.4-166.2z"}),wp.element.createElement("path",{d:"M16.8,13.9L26.9,3.8c0.6-0.6,0.6-1.5,0-2.1s-1.5-0.6-2.1,0L14.7,11.8L4.6,1.7C4,1.1,3.1,1.1,2.5,1.7s-0.6,1.5,0,2.1l10.1,10.1L2.5,24c-0.6,0.6-0.6,1.5,0,2.1c0.3,0.3,0.7,0.4,1.1,0.4s0.8-0.1,1.1-0.4L14.7,16l10.1,10.1c0.3,0.3,0.7,0.4,1.1,0.4s0.8-0.1,1.1-0.4c0.6-0.6,0.6-1.5,0-2.1L16.8,13.9z"}))),wp.element.createElement("p",{className:"wp-ugb-notif notif-"+r,style:u},n))};Object(u.r)("ugb/notification",{title:Object(u.q)("Notification"),icon:c.g,category:"stackable-ultimate-gutenberg-blocks",keywords:[Object(u.q)("Notification"),Object(u.q)("Stackable")],attributes:{text:{type:"array",source:"children",selector:"p",default:Object(u.q)("This is an informational alert, usually used for successful subscriptions, promo announcements, and the like.")},color:{type:"string"},textColor:{type:"string"},notifType:{type:"string",default:"success"},dismissible:{type:"boolean",default:!1}},edit:i,save:m})},function(e,t){},function(e,t){},function(e,t,n){!function(){var t=n(20),l=n(2).utf8,o=n(21),r=n(2).bin,a=function(e,n){e.constructor==String?e=n&&"binary"===n.encoding?r.stringToBytes(e):l.stringToBytes(e):o(e)?e=Array.prototype.slice.call(e,0):Array.isArray(e)||(e=e.toString());for(var c=t.bytesToWords(e),u=8*e.length,i=1732584193,m=-271733879,s=-1732584194,b=271733878,p=0;p<c.length;p++)c[p]=16711935&(c[p]<<8|c[p]>>>24)|4278255360&(c[p]<<24|c[p]>>>8);c[u>>>5]|=128<<u%32,c[14+(u+64>>>9<<4)]=u;for(var d=a._ff,g=a._gg,h=a._hh,f=a._ii,p=0;p<c.length;p+=16){var w=i,y=m,v=s,E=b;i=d(i,m,s,b,c[p+0],7,-680876936),b=d(b,i,m,s,c[p+1],12,-389564586),s=d(s,b,i,m,c[p+2],17,606105819),m=d(m,s,b,i,c[p+3],22,-1044525330),i=d(i,m,s,b,c[p+4],7,-176418897),b=d(b,i,m,s,c[p+5],12,1200080426),s=d(s,b,i,m,c[p+6],17,-1473231341),m=d(m,s,b,i,c[p+7],22,-45705983),i=d(i,m,s,b,c[p+8],7,1770035416),b=d(b,i,m,s,c[p+9],12,-1958414417),s=d(s,b,i,m,c[p+10],17,-42063),m=d(m,s,b,i,c[p+11],22,-1990404162),i=d(i,m,s,b,c[p+12],7,1804603682),b=d(b,i,m,s,c[p+13],12,-40341101),s=d(s,b,i,m,c[p+14],17,-1502002290),m=d(m,s,b,i,c[p+15],22,1236535329),i=g(i,m,s,b,c[p+1],5,-165796510),b=g(b,i,m,s,c[p+6],9,-1069501632),s=g(s,b,i,m,c[p+11],14,643717713),m=g(m,s,b,i,c[p+0],20,-373897302),i=g(i,m,s,b,c[p+5],5,-701558691),b=g(b,i,m,s,c[p+10],9,38016083),s=g(s,b,i,m,c[p+15],14,-660478335),m=g(m,s,b,i,c[p+4],20,-405537848),i=g(i,m,s,b,c[p+9],5,568446438),b=g(b,i,m,s,c[p+14],9,-1019803690),s=g(s,b,i,m,c[p+3],14,-187363961),m=g(m,s,b,i,c[p+8],20,1163531501),i=g(i,m,s,b,c[p+13],5,-1444681467),b=g(b,i,m,s,c[p+2],9,-51403784),s=g(s,b,i,m,c[p+7],14,1735328473),m=g(m,s,b,i,c[p+12],20,-1926607734),i=h(i,m,s,b,c[p+5],4,-378558),b=h(b,i,m,s,c[p+8],11,-2022574463),s=h(s,b,i,m,c[p+11],16,1839030562),m=h(m,s,b,i,c[p+14],23,-35309556),i=h(i,m,s,b,c[p+1],4,-1530992060),b=h(b,i,m,s,c[p+4],11,1272893353),s=h(s,b,i,m,c[p+7],16,-155497632),m=h(m,s,b,i,c[p+10],23,-1094730640),i=h(i,m,s,b,c[p+13],4,681279174),b=h(b,i,m,s,c[p+0],11,-358537222),s=h(s,b,i,m,c[p+3],16,-722521979),m=h(m,s,b,i,c[p+6],23,76029189),i=h(i,m,s,b,c[p+9],4,-640364487),b=h(b,i,m,s,c[p+12],11,-421815835),s=h(s,b,i,m,c[p+15],16,530742520),m=h(m,s,b,i,c[p+2],23,-995338651),i=f(i,m,s,b,c[p+0],6,-198630844),b=f(b,i,m,s,c[p+7],10,1126891415),s=f(s,b,i,m,c[p+14],15,-1416354905),m=f(m,s,b,i,c[p+5],21,-57434055),i=f(i,m,s,b,c[p+12],6,1700485571),b=f(b,i,m,s,c[p+3],10,-1894986606),s=f(s,b,i,m,c[p+10],15,-1051523),m=f(m,s,b,i,c[p+1],21,-2054922799),i=f(i,m,s,b,c[p+8],6,1873313359),b=f(b,i,m,s,c[p+15],10,-30611744),s=f(s,b,i,m,c[p+6],15,-1560198380),m=f(m,s,b,i,c[p+13],21,1309151649),i=f(i,m,s,b,c[p+4],6,-145523070),b=f(b,i,m,s,c[p+11],10,-1120210379),s=f(s,b,i,m,c[p+2],15,718787259),m=f(m,s,b,i,c[p+9],21,-343485551),i=i+w>>>0,m=m+y>>>0,s=s+v>>>0,b=b+E>>>0}return t.endian([i,m,s,b])};a._ff=function(e,t,n,l,o,r,a){var c=e+(t&n|~t&l)+(o>>>0)+a;return(c<<r|c>>>32-r)+t},a._gg=function(e,t,n,l,o,r,a){var c=e+(t&l|n&~l)+(o>>>0)+a;return(c<<r|c>>>32-r)+t},a._hh=function(e,t,n,l,o,r,a){var c=e+(t^n^l)+(o>>>0)+a;return(c<<r|c>>>32-r)+t},a._ii=function(e,t,n,l,o,r,a){var c=e+(n^(t|~l))+(o>>>0)+a;return(c<<r|c>>>32-r)+t},a._blocksize=16,a._digestsize=16,e.exports=function(e,n){if(void 0===e||null===e)throw new Error("Illegal argument "+e);var l=t.wordsToBytes(a(e,n));return n&&n.asBytes?l:n&&n.asString?r.bytesToString(l):t.bytesToHex(l)}}()},function(e,t){!function(){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n={rotl:function(e,t){return e<<t|e>>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 16711935&n.rotl(e,8)|4278255360&n.rotl(e,24);for(var t=0;t<e.length;t++)e[t]=n.endian(e[t]);return e},randomBytes:function(e){for(var t=[];e>0;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],n=0,l=0;n<e.length;n++,l+=8)t[l>>>5]|=e[n]<<24-l%32;return t},wordsToBytes:function(e){for(var t=[],n=0;n<32*e.length;n+=8)t.push(e[n>>>5]>>>24-n%32&255);return t},bytesToHex:function(e){for(var t=[],n=0;n<e.length;n++)t.push((e[n]>>>4).toString(16)),t.push((15&e[n]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],n=0;n<e.length;n+=2)t.push(parseInt(e.substr(n,2),16));return t},bytesToBase64:function(e){for(var n=[],l=0;l<e.length;l+=3)for(var o=e[l]<<16|e[l+1]<<8|e[l+2],r=0;r<4;r++)8*l+6*r<=8*e.length?n.push(t.charAt(o>>>6*(3-r)&63)):n.push("=");return n.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var n=[],l=0,o=0;l<e.length;o=++l%4)0!=o&&n.push((t.indexOf(e.charAt(l-1))&Math.pow(2,-2*o+8)-1)<<2*o|t.indexOf(e.charAt(l))>>>6-2*o);return n}};e.exports=n}()},function(e,t){function n(e){return!!e.constructor&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function l(e){return"function"===typeof e.readFloatLE&&"function"===typeof e.slice&&n(e.slice(0,0))}e.exports=function(e){return null!=e&&(n(e)||l(e)||!!e._isBuffer)}},function(e,t,n){"use strict";var l=n(23),o=(n.n(l),n(24)),r=(n.n(o),n(0)),a=n(1),c=function(e){var t=e.isSelected,n=e.setAttributes,l=(e.className,e.attributes),o=l.color,r=l.text,c=l.borderColor;return[wp.element.createElement("blockquote",{key:"quote",className:"ugb-blockquote",style:{borderLeftColor:c}},wp.element.createElement(a.l,{tagName:"p",className:"ugb-blockquote-text",value:r,onChange:function(e){return n({text:e})},isSelected:t,style:{color:o}})),t&&wp.element.createElement(a.g,{key:"inspector"},wp.element.createElement(a.j,{title:Object(a.q)("Text Color"),colorValue:o},wp.element.createElement(a.d,{value:o,onChange:function(e){return n({color:e})}})),wp.element.createElement(a.j,{title:Object(a.q)("Border Color"),colorValue:c},wp.element.createElement(a.d,{value:c,onChange:function(e){return n({borderColor:e})}})))]},u=function(e){var t=e.attributes,n=t.color,l=t.text,o=t.borderColor;return wp.element.createElement("blockquote",{className:"ugb-blockquote",style:{borderLeftColor:o}},wp.element.createElement("p",{style:{color:n}},l))};Object(a.r)("ugb/blockquote",{title:Object(a.q)("Blockquote"),icon:r.k,category:"stackable-ultimate-gutenberg-blocks",keywords:[Object(a.q)("Blockquote"),Object(a.q)("Stackable")],attributes:{text:{type:"array",source:"children",selector:"p",default:Object(a.q)("It's okay to acknowledge that life can get complicated, but we musn't forget the beauty in its simplicity, too. From the multitude of stars above, to freshly mowed grass in the morning, life is simply wonderful.")},color:{type:"string",default:"#424242"},borderColor:{type:"string",default:"#2091e1"}},edit:c,save:u})},function(e,t){},function(e,t){},function(e,t,n){"use strict";var l=n(26),o=(n.n(l),n(27)),r=(n.n(o),n(0)),a=n(1),c=function(e){var t=e.isSelected,n=e.setAttributes,l=(e.className,e.attributes),o=l.color,r=l.text,c=l.borderColor;return[wp.element.createElement("blockquote",{key:"quote",className:"ugb-pullquote",style:{borderTopColor:c,borderBottomColor:c}},wp.element.createElement(a.l,{tagName:"p",className:"ugb-pullquote-text",value:r,onChange:function(e){return n({text:e})},placeholder:Object(a.q)("Write quote\u2026"),formattingControls:["bold","italic","strikethrough","link"],isSelected:t,keepPlaceholderOnFocus:!0,style:{color:o}})),t&&wp.element.createElement(a.g,{key:"inspector"},wp.element.createElement(a.j,{title:Object(a.q)("Text Color"),colorValue:o,initialOpen:!1},wp.element.createElement(a.d,{value:o,onChange:function(e){return n({color:e})}})),wp.element.createElement(a.j,{title:Object(a.q)("Border Color"),colorValue:c,initialOpen:!1},wp.element.createElement(a.d,{value:c,onChange:function(e){return n({borderColor:e})}})))]},u=function(e){var t=e.attributes,n=t.color,l=t.text,o=t.borderColor;return wp.element.createElement("blockquote",{className:"ugb-pullquote",style:{borderTopColor:o,borderBottomColor:o}},wp.element.createElement("p",{style:{color:n}},l))};Object(a.r)("ugb/pullquote",{title:Object(a.q)("Pullquote"),icon:r.k,category:"stackable-ultimate-gutenberg-blocks",keywords:[Object(a.q)("Pullquote"),Object(a.q)("Stackable")],attributes:{text:{type:"array",source:"children",selector:"p",default:Object(a.q)("It's okay to acknowledge that life can get complicated, but we musn't forget the beauty in its simplicity, too. From the multitude of stars above, to freshly mowed grass in the morning, life is simply wonderful.")},color:{type:"string",default:"#2091e1"},borderColor:{type:"string",default:"#2091e1"}},edit:c,save:u})},function(e,t){},function(e,t){},function(e,t,n){"use strict";var l=n(29),o=(n.n(l),n(30)),r=(n.n(o),n(0)),a=n(1),c=function(e){var t=e.isSelected,n=e.editable,l=e.setState,o=(e.className,e.setAttributes),r=e.attributes,c=r.url,u=r.buttonText,i=r.ctaTitle,m=r.bodyText,s=r.color,b=r.textColor,p=r.size,d=r.borderButtonRadius,g=r.bodyTextColor,h=r.titleColor,f=r.bgColor,w=[{value:"small",label:Object(a.q)("Small")},{value:"normal",label:Object(a.q)("Normal")},{value:"medium",label:Object(a.q)("Medium")},{value:"large",label:Object(a.q)("Large")}],y=function(e){return function(){l({editable:e})}};return[wp.element.createElement("div",{key:"editable",className:"ugb-cta",style:{backgroundColor:f}},wp.element.createElement(a.l,{className:"ugb-cta-title",tagName:"h3",placeholder:Object(a.q)("Add Title"),value:i,onChange:function(e){return o({ctaTitle:e})},isSelected:t&&"ctaTitle"===n,onFocus:y("ctaTitle"),keepPlaceholderOnFocus:!0,style:{color:h}}),wp.element.createElement(a.l,{tagName:"p",value:m,className:"ugb-cta-bodyText",onChange:function(e){return o({bodyText:e})},isSelected:t&&"bodyText"===n,onFocus:y("bodyText"),placeholder:Object(a.q)("Write body text\u2026"),style:{color:g}}),wp.element.createElement("span",{key:"button",className:"wp-block-button ugb-cta-button"},wp.element.createElement(a.l,{tagName:"span",placeholder:Object(a.q)("Add Text"),value:u,onChange:function(e){return o({buttonText:e})},isSelected:t&&"buttonText"===n,onFocus:y("buttonText"),className:"wp-ugb-button ugb-button-"+p,style:{backgroundColor:s,color:b,borderRadius:d+"px"},keepPlaceholderOnFocus:!0}),t&&wp.element.createElement(a.g,{key:"inspector"},wp.element.createElement(a.i,null,wp.element.createElement(a.m,{label:Object(a.q)("Button Size"),value:p,options:w.map(function(e){return{value:e.value,label:e.label}}),onChange:function(e){o({size:e})}}),wp.element.createElement(a.k,{label:Object(a.q)("Button Border Radius"),value:d,min:"1",max:"50",onChange:function(e){return o({borderButtonRadius:e})}})),wp.element.createElement(a.j,{title:Object(a.q)("Title Color"),colorValue:h,initialOpen:!1},wp.element.createElement(a.d,{value:s,onChange:function(e){return o({titleColor:e})}})),wp.element.createElement(a.j,{title:Object(a.q)("Body Text Color"),colorValue:g,initialOpen:!1},wp.element.createElement(a.d,{value:s,onChange:function(e){return o({bodyTextColor:e})}})),wp.element.createElement(a.j,{title:Object(a.q)("Button Background Color"),colorValue:s,initialOpen:!1},wp.element.createElement(a.d,{value:s,onChange:function(e){return o({color:e})}})),wp.element.createElement(a.j,{title:Object(a.q)("Button Text Color"),colorValue:b,initialOpen:!1},wp.element.createElement(a.d,{value:b,onChange:function(e){return o({textColor:e})}})),wp.element.createElement(a.j,{title:Object(a.q)("Background Color"),colorValue:f,initialOpen:!1},wp.element.createElement(a.d,{value:f,onChange:function(e){return o({bgColor:e})}})))),t&&wp.element.createElement("form",{key:"form-link",onSubmit:function(e){return e.preventDefault()},className:"blocks-button__inline-link"},wp.element.createElement(a.e,{icon:"admin-links"}),wp.element.createElement(a.p,{value:c,onChange:function(e){return o({url:e})}}),wp.element.createElement(a.f,{icon:"editor-break",label:Object(a.q)("Apply"),type:"submit"})))]},u=function(e){var t=e.attributes,n=t.url,l=t.buttonText,o=t.ctaTitle,r=t.bodyText,a=t.color,c=t.textColor,u=t.size,i=t.borderButtonRadius,m=t.bodyTextColor,s=t.titleColor,b=t.bgColor,p={backgroundColor:a,color:c,borderRadius:i+"px"};return wp.element.createElement("div",{className:"ugb-cta",style:{backgroundColor:b}},o&&!!o.length&&wp.element.createElement("h3",{className:"ugb-cta-title",style:{color:s}},o),r&&!!r.length&&wp.element.createElement("p",{className:"ugb-cta-bodyText",style:{color:m}},r),l&&!!l.length&&wp.element.createElement("a",{href:n,className:"wp-ugb-button ugb-cta-button ugb-button-"+u,style:p},l))};Object(a.r)("ugb/cta",{title:Object(a.q)("Call to Action"),icon:r.b,category:"stackable-ultimate-gutenberg-blocks",keywords:[Object(a.q)("Call to Action"),Object(a.q)("Stackable"),Object(a.q)("CTA")],attributes:{url:{type:"string",source:"attribute",selector:"a",attribute:"href"},ctaTitle:{type:"array",source:"children",selector:"h3",default:Object(a.q)("Get Started Today")},bodyText:{type:"array",source:"children",selector:"p",default:Object(a.q)("Get Stackable: Ultimate Gutenberg Blocks today.\xa0 Apart from adding new blocks, it gives Gutenberg users more options and settings to tinker with, expanding Gutenberg\u2019s functionality.")},buttonText:{type:"array",source:"children",selector:"a"},color:{type:"string",default:"#2091e1"},textColor:{type:"string",default:"#ffffff"},titleColor:{type:"string"},bodyTextColor:{type:"string"},bgColor:{type:"string"},size:{type:"string",default:"normal"},borderButtonRadius:{type:"number",default:4}},edit:c,save:u})},function(e,t){},function(e,t){},function(e,t,n){"use strict";var l=n(32),o=(n.n(l),n(33)),r=(n.n(o),n(0)),a=n(1),c=function(e){var t=e.isSelected,n=e.editable,l=e.setState,o=(e.className,e.setAttributes),r=e.attributes,c=r.testimonialTitle,u=r.testimonialTitleTwo,i=r.testimonialTitleThree,m=r.body,s=r.bodyTwo,b=r.bodyThree,p=r.position,d=r.positionTwo,g=r.positionThree,h=(r.href,r.hrefTwo,r.hrefThree,r.mediaID),f=r.mediaIDTwo,w=r.mediaIDThree,y=r.mediaURL,v=r.mediaURLTwo,E=r.mediaURLThree,C=r.columns,x=r.titleColor,O=r.posColor,k=r.bodyTextColor,j=r.iconColor,T=[{value:"1",label:Object(a.q)("One Column")},{value:"2",label:Object(a.q)("Two Column")},{value:"3",label:Object(a.q)("Three Column")}],q=function(e){return function(){l({editable:e})}};return[t&&wp.element.createElement(a.b,null),t&&wp.element.createElement(a.g,{key:"inspector"},wp.element.createElement(a.i,null,wp.element.createElement(a.m,{label:Object(a.q)("Column Number"),value:C,options:T.map(function(e){return{value:e.value,label:e.label}}),onChange:function(e){o({columns:e})}})),wp.element.createElement(a.j,{title:Object(a.q)("Title Color"),colorValue:x,initialOpen:!1},wp.element.createElement(a.d,{value:x,onChange:function(e){return o({titleColor:e})}})),wp.element.createElement(a.j,{title:Object(a.q)("Position Color"),colorValue:O,initialOpen:!1},wp.element.createElement(a.d,{value:O,onChange:function(e){return o({posColor:e})}})),wp.element.createElement(a.j,{title:Object(a.q)("Body Text Color"),colorValue:k,initialOpen:!1},wp.element.createElement(a.d,{value:k,onChange:function(e){return o({bodyTextColor:e})}})),wp.element.createElement(a.j,{title:Object(a.q)("Icon Color"),colorValue:j,initialOpen:!1},wp.element.createElement(a.d,{value:j,onChange:function(e){return o({iconColor:e})}}))),wp.element.createElement("div",{key:"editable",className:"ugb-testimonial column-"+C},wp.element.createElement("div",{className:"ugb-testimonial-column-one"},wp.element.createElement("div",null,wp.element.createElement(a.h,{onSelect:function(e){return o({mediaURL:e.url,mediaID:e.id})},type:"image",value:h,render:function(e){return wp.element.createElement(a.c,{className:h?"":"button button-large",onClick:e.open},h?wp.element.createElement("div",{className:"testimonial-image",style:{backgroundImage:"url("+y+")"}}):Object(a.q)("Upload Image"))}})),wp.element.createElement(a.l,{tagName:"h4",value:c,onChange:function(e){return o({testimonialTitle:e})},isSelected:t&&"testimonialTitle"===n,onFocus:q("testimonialTitle"),style:{color:x},keepPlaceholderOnFocus:!0}),wp.element.createElement(a.l,{tagName:"p",value:p,className:"ugb-testimonial-position",onChange:function(e){return o({position:e})},isSelected:t&&"position"===n,onFocus:q("position"),style:{color:O},keepPlaceholderOnFocus:!0}),wp.element.createElement(a.l,{tagName:"p",value:m,className:"ugb-testimonial-body",onChange:function(e){return o({body:e})},isSelected:t&&"body"===n,onFocus:q("body"),style:{color:k},keepPlaceholderOnFocus:!0})),wp.element.createElement("div",{className:"ugb-testimonial-column-two"},wp.element.createElement("div",null,wp.element.createElement(a.h,{onSelect:function(e){return o({mediaURLTwo:e.url,mediaIDTwo:e.id})},type:"image",value:f,render:function(e){return wp.element.createElement(a.c,{className:f?"":"button button-large",onClick:e.open},f?wp.element.createElement("div",{className:"testimonial-image",style:{backgroundImage:"url("+v+")"}}):Object(a.q)("Upload Image"))}})),wp.element.createElement(a.l,{tagName:"h4",value:u,onChange:function(e){return o({testimonialTitleTwo:e})},isSelected:t&&"testimonialTitleTwo"===n,onFocus:q("testimonialTitleTwo"),style:{color:x},keepPlaceholderOnFocus:!0}),wp.element.createElement(a.l,{tagName:"p",value:d,className:"ugb-testimonial-position-two",onChange:function(e){return o({positionTwo:e})},isSelected:t&&"positionTwo"===n,onFocus:q("positionTwo"),style:{color:O},keepPlaceholderOnFocus:!0}),wp.element.createElement(a.l,{tagName:"p",value:s,className:"ugb-testimonial-body-two",onChange:function(e){return o({bodyTwo:e})},isSelected:t&&"bodyTwo"===n,onFocus:q("bodyTwo"),style:{color:k},keepPlaceholderOnFocus:!0})),wp.element.createElement("div",{className:"ugb-testimonial-column-three"},wp.element.createElement("div",null,wp.element.createElement(a.h,{onSelect:function(e){return o({mediaURLThree:e.url,mediaIDThree:e.id})},type:"image",value:w,render:function(e){return wp.element.createElement(a.c,{className:w?"":"button button-large",onClick:e.open},w?wp.element.createElement("div",{className:"testimonial-image",style:{backgroundImage:"url("+E+")"}}):Object(a.q)("Upload Image"))}})),wp.element.createElement(a.l,{tagName:"h4",value:i,onChange:function(e){return o({testimonialTitleThree:e})},isSelected:t&&"testimonialTitleThree"===n,onFocus:q("testimonialTitleThree"),style:{color:x},keepPlaceholderOnFocus:!0}),wp.element.createElement(a.l,{tagName:"p",value:g,className:"ugb-testimonial-position-three",onChange:function(e){return o({positionThree:e})},isSelected:t&&"positionThree"===n,onFocus:q("positionThree"),style:{color:O},keepPlaceholderOnFocus:!0}),wp.element.createElement(a.l,{tagName:"p",value:b,className:"ugb-testimonial-body-three",onChange:function(e){return o({bodyThree:e})},isSelected:t&&"bodyThree"===n,onFocus:q("bodyThree"),style:{color:k},keepPlaceholderOnFocus:!0})))]},u=function(e){var t=e.attributes,n=t.testimonialTitle,l=t.testimonialTitleTwo,o=t.testimonialTitleThree,r=t.body,a=t.bodyTwo,c=t.bodyThree,u=t.position,i=t.positionTwo,m=t.positionThree,s=t.mediaURL,b=t.mediaURLTwo,p=t.mediaURLThree,d=(t.mediaID,t.mediaIDTwo,t.mediaIDThree,t.titleColor),g=t.posColor,h=t.bodyTextColor,f=t.iconColor,w=t.columns,y=wp.element.createElement("div",{key:"button",className:"quote-icon"},wp.element.createElement("svg",{viewBox:"0 0 246 187.5",style:{fill:f}},wp.element.createElement("path",{d:"M98.5,0h-93C2.5,0,0,2.5,0,5.5v93c0,3,2.5,5.5,5.5,5.5h39c-1.7,15.5-8.8,50-39,50c-3,0-5.5,2.5-5.5,5.5V182c0,3,2.5,5.5,5.5,5.5c5.2,0,98.5-4.5,98.5-89v-93C104,2.5,101.5,0,98.5,0z"}),wp.element.createElement("path",{d:"M240.5,0h-93c-3,0-5.5,2.5-5.5,5.5v93c0,3,2.5,5.5,5.5,5.5h39c-1.7,15.5-8.8,50-39,50c-3,0-5.5,2.5-5.5,5.5V182c0,3,2.5,5.5,5.5,5.5c5.2,0,98.5-4.5,98.5-89v-93C246,2.5,243.5,0,240.5,0z"}),wp.element.createElement("path",{d:"M161.3-86.3c3.2,0,3.2-5,0-5C158.1-91.3,158.1-86.3,161.3-86.3L161.3-86.3z"})));return wp.element.createElement("div",{className:"ugb-testimonial column-"+w},wp.element.createElement("div",{className:"ugb-testimonial-column-one"},s?wp.element.createElement("div",{className:"testimonial-image",style:{backgroundImage:"url("+s+")"},"data-src":s}):y,n&&!!n.length&&wp.element.createElement("h4",{style:{color:d}},n),u&&!!u.length&&wp.element.createElement("p",{className:"ugb-testimonial-position",style:{color:g}},u),r&&!!r.length&&wp.element.createElement("p",{className:"ugb-testimonial-body",style:{color:h}},r)),w>1&&wp.element.createElement("div",{className:"ugb-testimonial-column-two"},b?wp.element.createElement("div",{className:"testimonial-image",style:{backgroundImage:"url("+b+")"},"data-src":b}):y,l&&!!l.length&&wp.element.createElement("h4",{style:{color:d}},l),i&&!!i.length&&wp.element.createElement("p",{className:"ugb-testimonial-position-two",style:{color:g}},i),a&&!!a.length&&wp.element.createElement("p",{className:"ugb-testimonial-body-two",style:{color:h}},a)),w>2&&wp.element.createElement("div",{className:"ugb-testimonial-column-three"},p?wp.element.createElement("div",{className:"testimonial-image",style:{backgroundImage:"url("+p+")"},"data-src":p}):y,o&&!!o.length&&wp.element.createElement("h4",{style:{color:d}},o),m&&!!m.length&&wp.element.createElement("p",{className:"ugb-testimonial-position-three",style:{color:g}},m),c&&!!c.length&&wp.element.createElement("p",{className:"ugb-testimonial-body-three",style:{color:h}},c)))};Object(a.r)("ugb/testimonial",{title:Object(a.q)("Testimonial"),icon:r.n,category:"stackable-ultimate-gutenberg-blocks",keywords:[Object(a.q)("Testimonial"),Object(a.q)("Stackable")],attributes:{href:{type:"url"},hrefTwo:{type:"url"},hrefThree:{type:"url"},mediaID:{type:"number"},mediaIDTwo:{type:"number"},mediaIDThree:{type:"number"},mediaURL:{type:"string",source:"attribute",selector:".ugb-testimonial-column-one .testimonial-image",attribute:"data-src"},mediaURLTwo:{type:"string",source:"attribute",selector:".ugb-testimonial-column-two .testimonial-image",attribute:"data-src"},mediaURLThree:{type:"string",source:"attribute",selector:".ugb-testimonial-column-three .testimonial-image",attribute:"data-src"},testimonialTitle:{type:"array",source:"children",selector:".ugb-testimonial-column-one h4",default:Object(a.q)("Ben Adams")},testimonialTitleTwo:{type:"array",source:"children",selector:".ugb-testimonial-column-two h4",default:Object(a.q)("Alex Johnson")},testimonialTitleThree:{type:"array",source:"children",selector:".ugb-testimonial-column-three h4",default:Object(a.q)("Sammy Simpson")},position:{type:"array",source:"children",selector:".ugb-testimonial-position",default:Object(a.q)("Founder")},positionTwo:{type:"array",source:"children",selector:".ugb-testimonial-position-two",default:Object(a.q)("Editor")},positionThree:{type:"array",source:"children",selector:".ugb-testimonial-position-three",default:Object(a.q)("Programmer")},body:{type:"array",source:"children",selector:".ugb-testimonial-body",default:Object(a.q)("Stackable: Ultimate Blocks from Gutenberg has all the blocks I need to make a great webpage.")},bodyTwo:{type:"array",source:"children",selector:".ugb-testimonial-body-two",default:Object(a.q)("Stackable: Ultimate Blocks from Gutenberg has all the blocks I need to make a great webpage.")},bodyThree:{type:"array",source:"children",selector:".ugb-testimonial-body-three",default:Object(a.q)("Stackable: Ultimate Blocks from Gutenberg has all the blocks I need to make a great webpage.")},titleColor:{type:"string"},posColor:{type:"string"},bodyTextColor:{type:"string"},iconColor:{type:"string"},columns:{type:"select",default:"1"}},edit:c,save:u})},function(e,t){},function(e,t){},function(e,t,n){"use strict";var l=n(35),o=(n.n(l),n(36)),r=(n.n(o),n(0)),a=n(1),c=function(e){var t=e.isSelected,n=e.editable,l=e.setState,o=(e.className,e.setAttributes),r=e.attributes,c=r.name,u=r.nameTwo,i=r.nameThree,m=r.des,s=r.desTwo,b=r.desThree,p=r.position,d=r.positionTwo,g=r.positionThree,h=(r.href,r.hrefTwo,r.hrefThree,r.mediaID),f=r.mediaIDTwo,w=r.mediaIDThree,y=r.mediaURL,v=r.mediaURLTwo,E=r.mediaURLThree,C=r.columns,x=r.nameColor,O=r.posColor,k=r.desColor,j=r.iconColor,T=r.shapes,q=[{value:"1",label:Object(a.q)("One Column")},{value:"2",label:Object(a.q)("Two Column")},{value:"3",label:Object(a.q)("Three Column")}],N=[{value:"square",label:Object(a.q)("Square")},{value:"circle",label:Object(a.q)("Circle")}],S=function(e){return function(){l({editable:e})}};return[t&&wp.element.createElement(a.b,{key:"controls"}),t&&wp.element.createElement(a.g,{key:"inspector"},wp.element.createElement(a.i,null,wp.element.createElement(a.m,{label:Object(a.q)("Image Shape"),value:T,options:N.map(function(e){return{value:e.value,label:e.label}}),onChange:function(e){o({shapes:e})}}),wp.element.createElement(a.m,{label:Object(a.q)("Column Number"),value:C,options:q.map(function(e){return{value:e.value,label:e.label}}),onChange:function(e){o({columns:e})}})),wp.element.createElement(a.j,{title:Object(a.q)("Name Color"),colorValue:x,initialOpen:!1},wp.element.createElement(a.d,{value:x,onChange:function(e){return o({nameColor:e})}})),wp.element.createElement(a.j,{title:Object(a.q)("Position Color"),colorValue:O,initialOpen:!1},wp.element.createElement(a.d,{value:O,onChange:function(e){return o({posColor:e})}})),wp.element.createElement(a.j,{title:Object(a.q)("Description Color"),colorValue:k,initialOpen:!1},wp.element.createElement(a.d,{value:k,onChange:function(e){return o({desColor:e})}})),wp.element.createElement(a.j,{title:Object(a.q)("Icon Color"),colorValue:j,initialOpen:!1},wp.element.createElement(a.d,{value:j,onChange:function(e){return o({iconColor:e})}}))),wp.element.createElement("div",{key:"editable",className:"ugb-team-member column-"+C+" image-"+T},wp.element.createElement("div",{className:"ugb-team-member-column-one"},wp.element.createElement("div",null,wp.element.createElement(a.h,{onSelect:function(e){return o({mediaURL:e.url,mediaID:e.id})},type:"image",value:h,render:function(e){return wp.element.createElement(a.c,{className:h?"":"button button-large",onClick:e.open},h?wp.element.createElement("div",{className:"team-member-image",style:{backgroundImage:"url("+y+")"}}):Object(a.q)("Upload Image"))}})),wp.element.createElement(a.l,{tagName:"h4",value:c,onChange:function(e){return o({name:e})},isSelected:t&&"name"===n,onFocus:S("name"),style:{color:x},keepPlaceholderOnFocus:!0}),wp.element.createElement(a.l,{tagName:"p",value:p,className:"ugb-team-member-position",onChange:function(e){return o({position:e})},isSelected:t&&"position"===n,onFocus:S("position"),style:{color:O},keepPlaceholderOnFocus:!0}),wp.element.createElement(a.l,{tagName:"p",value:m,className:"ugb-team-member-des",onChange:function(e){return o({des:e})},isSelected:t&&"des"===n,onFocus:S("des"),style:{color:k},keepPlaceholderOnFocus:!0})),wp.element.createElement("div",{className:"ugb-team-member-column-two"},wp.element.createElement("div",null,wp.element.createElement(a.h,{onSelect:function(e){return o({mediaURLTwo:e.url,mediaIDTwo:e.id})},type:"image",value:f,render:function(e){return wp.element.createElement(a.c,{className:f?"":"button button-large",onClick:e.open},f?wp.element.createElement("div",{className:"team-member-image",style:{backgroundImage:"url("+v+")"}}):Object(a.q)("Upload Image"))}})),wp.element.createElement(a.l,{tagName:"h4",value:u,onChange:function(e){return o({nameTwo:e})},isSelected:t&&"nameTwo"===n,onFocus:S("nameTwo"),style:{color:x},keepPlaceholderOnFocus:!0}),wp.element.createElement(a.l,{tagName:"p",value:d,className:"ugb-team-member-position",onChange:function(e){return o({positionTwo:e})},isSelected:t&&"positionTwo"===n,onFocus:S("positionTwo"),style:{color:O},keepPlaceholderOnFocus:!0}),wp.element.createElement(a.l,{tagName:"p",value:s,className:"ugb-team-member-des-two",onChange:function(e){return o({desTwo:e})},isSelected:t&&"desTwo"===n,onFocus:S("desTwo"),style:{color:k},keepPlaceholderOnFocus:!0})),wp.element.createElement("div",{className:"ugb-team-member-column-three"},wp.element.createElement("div",null,wp.element.createElement(a.h,{onSelect:function(e){return o({mediaURLThree:e.url,mediaIDThree:e.id})},type:"image",value:w,render:function(e){return wp.element.createElement(a.c,{className:w?"":"button button-large",onClick:e.open},w?wp.element.createElement("div",{className:"team-member-image",style:{backgroundImage:"url("+E+")"}}):Object(a.q)("Upload Image"))}})),wp.element.createElement(a.l,{tagName:"h4",value:i,onChange:function(e){return o({nameThree:e})},isSelected:t&&"nameThree"===n,onFocus:S("nameThree"),style:{color:x},keepPlaceholderOnFocus:!0}),wp.element.createElement(a.l,{tagName:"p",value:g,className:"ugb-team-member-position",onChange:function(e){return o({positionThree:e})},isSelected:t&&"positionThree"===n,onFocus:S("positionThree"),style:{color:O},keepPlaceholderOnFocus:!0}),wp.element.createElement(a.l,{tagName:"p",value:b,className:"ugb-team-member-des-three",onChange:function(e){return o({desThree:e})},isSelected:t&&"desThree"===n,onFocus:S("desThree"),style:{color:k},keepPlaceholderOnFocus:!0})))]},u=function(e){var t=e.attributes,n=t.name,l=t.nameTwo,o=t.nameThree,r=t.shapes,a=t.des,c=t.desTwo,u=t.desThree,i=t.position,m=t.positionTwo,s=t.positionThree,b=t.mediaURL,p=t.mediaURLTwo,d=t.mediaURLThree,g=(t.mediaID,t.mediaIDTwo,t.mediaIDThree,t.nameColor),h=t.posColor,f=t.desColor,w=(t.iconColor,t.columns);return wp.element.createElement("div",{className:"ugb-team-member column-"+w+" image-"+r},wp.element.createElement("div",{className:"ugb-team-member-column-one"},b&&wp.element.createElement("div",{className:"team-member-image",style:{backgroundImage:"url("+b+")"},"data-src":b}),n&&!!n.length&&wp.element.createElement("h4",{style:{color:g}},n),i&&!!i.length&&wp.element.createElement("p",{className:"ugb-team-member-position",style:{color:h}},i),a&&!!a.length&&wp.element.createElement("p",{className:"ugb-team-member-des",style:{color:f}},a)),w>1&&wp.element.createElement("div",{className:"ugb-team-member-column-two"},p&&wp.element.createElement("div",{className:"team-member-image",style:{backgroundImage:"url("+p+")"},"data-src":p}),l&&!!l.length&&wp.element.createElement("h4",{style:{color:g}},l),m&&!!m.length&&wp.element.createElement("p",{className:"ugb-team-member-position",style:{color:h}},m),c&&!!c.length&&wp.element.createElement("p",{className:"ugb-team-member-des-two",style:{color:f}},c)),w>2&&wp.element.createElement("div",{className:"ugb-team-member-column-three"},d&&wp.element.createElement("div",{className:"team-member-image",style:{backgroundImage:"url("+d+")"},"data-src":d}),o&&!!o.length&&wp.element.createElement("h4",{style:{color:g}},o),s&&!!s.length&&wp.element.createElement("p",{className:"ugb-team-member-position",style:{color:h}},s),u&&!!u.length&&wp.element.createElement("p",{className:"ugb-team-member-des-three",style:{color:f}},u)))};Object(a.r)("ugb/team-member",{title:Object(a.q)("Team Member"),icon:r.m,category:"stackable-ultimate-gutenberg-blocks",keywords:[Object(a.q)("Team Member"),Object(a.q)("Stackable")],attributes:{href:{type:"url"},hrefTwo:{type:"url"},hrefThree:{type:"url"},mediaID:{type:"number"},mediaIDTwo:{type:"number"},mediaIDThree:{type:"number"},mediaURL:{type:"string",source:"attribute",selector:".ugb-team-member-column-one .team-member-image",attribute:"data-src"},mediaURLTwo:{type:"string",source:"attribute",selector:".ugb-team-member-column-two .team-member-image",attribute:"data-src"},mediaURLThree:{type:"string",source:"attribute",selector:".ugb-team-member-column-three .team-member-image",attribute:"data-src"},name:{type:"array",source:"children",selector:".ugb-team-member-column-one h4",default:Object(a.q)("Ben Adams")},nameTwo:{type:"array",source:"children",selector:".ugb-team-member-column-two h4",default:Object(a.q)("Alex Johnson")},nameThree:{type:"array",source:"children",selector:".ugb-team-member-column-three h4",default:Object(a.q)("Sammy Simpson")},position:{type:"array",source:"children",selector:".ugb-team-member-column-one .ugb-team-member-position",default:Object(a.q)("Founder")},positionTwo:{type:"array",source:"children",selector:".ugb-team-member-column-two .ugb-team-member-position",default:Object(a.q)("Editor")},positionThree:{type:"array",source:"children",selector:".ugb-team-member-column-three .ugb-team-member-position",default:Object(a.q)("Programmer")},des:{type:"array",source:"children",selector:".ugb-team-member-des",default:Object(a.q)("Ben is the head of our small team. He loves walking his dog, Walter, when he has some free time.")},desTwo:{type:"array",source:"children",selector:".ugb-team-member-des-two",default:Object(a.q)("Alex handles all written content. She enjoys painting and playing softball on the weekends.")},desThree:{type:"array",source:"children",selector:".ugb-team-member-des-three",default:Object(a.q)("Sammy is our programmer. You'll usually find her nose in a book. She has a cat named Skitty.")},nameColor:{type:"string"},posColor:{type:"string"},desColor:{type:"string"},iconColor:{type:"string"},columns:{type:"select",default:"1"},shapes:{type:"select",default:"square"}},edit:c,save:u})},function(e,t){},function(e,t){},function(e,t,n){"use strict";function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(38),r=(n.n(o),n(39)),a=(n.n(r),n(0)),c=n(1),u=function(e){return e.map?e.map(function(e){return e.children}):""},i=function(e){return e.map?e.map(function(e){return{children:e}}):""},m=function(e){var t=(e.focus,e.setFocus,e.editable),n=e.setAttributes,o=e.setState,r=e.className,a=e.isSelected,m=function(e){return function(){o({editable:e})}},s=e.attributes,b=s.text,p=s.moreLabel,d=s.moreText,g=s.lessLabel;return[a&&wp.element.createElement(c.b,{key:"controls"}),wp.element.createElement("div",{key:"expand",className:r},a&&wp.element.createElement("label",{className:"ugb-editor-label"},"Less text"),wp.element.createElement(c.l,l({multiline:"p",placeholder:e.attributes.text.default,value:u(b),onChange:function(e){return n({text:i(e)})},isSelected:a&&"text"===t,onFocus:m("text"),className:"ugb-expand-less-text"},"placeholder",Object(c.q)("Some short text that can be expanded to show more details."))),wp.element.createElement(c.l,l({tagName:"a",placeholder:e.attributes.moreLabel.default,value:p,isSelected:a&&"moreLabel"===t,onFocus:m("moreLabel"),onChange:function(e){return n({moreLabel:e})},formattingControls:["bold","italic","strikethrough"],className:"ugb-expand-more"},"placeholder",Object(c.q)("Show more"))),a&&wp.element.createElement("label",{className:"ugb-editor-label"},"More text"),a&&wp.element.createElement(c.l,l({multiline:"p",placeholder:e.attributes.moreText.default,value:u(d),isSelected:a&&"moreText"===t,onFocus:m("moreText"),onChange:function(e){return n({moreText:i(e)})},className:"ugb-expand-more-text"},"placeholder",Object(c.q)("Some short text that can be expanded to show more details. Some additional text that can only be seen when expanded."))),a&&wp.element.createElement(c.l,l({tagName:"a",placeholder:e.attributes.lessLabel.default,value:g,isSelected:a&&"lessLabel"===t,onFocus:m("lessLabel"),onChange:function(e){return n({lessLabel:e})},formattingControls:["bold","italic","strikethrough"],className:"ugb-expand-less"},"placeholder",Object(c.q)("Show less"))))]},s=function(e){var t=e.attributes,n=t.text,l=t.moreLabel,o=t.moreText,r=t.lessLabel;return wp.element.createElement("div",null,wp.element.createElement("div",{className:"ugb-expand-less-text"},n.map&&n.map(function(e,t){return wp.element.createElement("p",{key:t},e.children&&e.children.props.children)})),wp.element.createElement("div",{className:"ugb-expand-more-text",style:{display:"none"}},o.map&&o.map(function(e,t){return wp.element.createElement("p",{key:t},e.children&&e.children.props.children)})),wp.element.createElement("a",{className:"ugb-expand-button",href:"#"},wp.element.createElement("span",{className:"ugb-expand-more"},l),wp.element.createElement("span",{className:"ugb-expand-less",style:{display:"none"}},r)))};Object(c.r)("ugb/expand",{title:Object(c.q)("Expand / Show More"),icon:a.d,category:"stackable-ultimate-gutenberg-blocks",keywords:[Object(c.q)("Expand"),Object(c.q)("Show more/less"),Object(c.q)("Stackable")],attributes:{text:{type:"array",source:"query",selector:".ugb-expand-less-text > p",query:{children:{source:"node"}},default:[]},moreText:{type:"array",source:"query",selector:".ugb-expand-more-text > p",query:{children:{source:"node"}},default:[]},moreLabel:{type:"array",source:"children",selector:".ugb-expand-more",default:Object(c.q)("Show more")},lessLabel:{type:"array",source:"children",selector:".ugb-expand-less",default:Object(c.q)("Show less")}},edit:m,save:s})},function(e,t){},function(e,t){},function(e,t,n){"use strict";var l=n(41),o=(n.n(l),n(42)),r=(n.n(o),n(0)),a=n(1),c=function(e){var t=(e.className,e.setAttributes),n=e.isSelected,l=e.editable,o=e.setState,r=e.attributes,c=r.numberBox,u=r.numberBoxTwo,i=r.numberBoxThree,m=r.body,s=r.bodyTwo,b=r.bodyThree,p=r.name,d=r.nameTwo,g=r.nameThree,h=r.columns,f=r.numberBoxColor,w=r.nameColor,y=r.bodyTextColor,v=r.numberBGColor,E=[{value:"1",label:Object(a.q)("One Column")},{value:"2",label:Object(a.q)("Two Column")},{value:"3",label:Object(a.q)("Three Column")}],C=function(e){return function(){o({editable:e})}};return[n&&wp.element.createElement(a.b,{key:"controls"}),n&&wp.element.createElement(a.g,{key:"inspector"},wp.element.createElement(a.i,null,wp.element.createElement(a.m,{label:Object(a.q)("Column Number"),value:h,options:E.map(function(e){return{value:e.value,label:e.label}}),onChange:function(e){t({columns:e})}})),wp.element.createElement(a.j,{title:Object(a.q)("Number Color"),colorValue:f,initialOpen:!1},wp.element.createElement(a.d,{value:f,onChange:function(e){return t({numberBoxColor:e})}})),wp.element.createElement(a.j,{title:Object(a.q)("Number Background Color"),colorValue:v,initialOpen:!1},wp.element.createElement(a.d,{value:v,onChange:function(e){return t({numberBGColor:e})}})),wp.element.createElement(a.j,{title:Object(a.q)("Name Color"),colorValue:w,initialOpen:!1},wp.element.createElement(a.d,{value:w,onChange:function(e){return t({nameColor:e})}})),wp.element.createElement(a.j,{title:Object(a.q)("Body Text Color"),colorValue:y,initialOpen:!1},wp.element.createElement(a.d,{value:y,onChange:function(e){return t({bodyTextColor:e})}}))),wp.element.createElement("div",{key:"editable",className:"ugb-number-box column-"+h},wp.element.createElement("div",{className:"ugb-number-box-column-one"},wp.element.createElement(a.l,{tagName:"span",placeholder:c?c.default:"",value:c,onChange:function(e){return t({numberBox:e})},isSelected:n&&"numberBox"===l,onFocus:C("numberBox"),style:{color:f,backgroundColor:v},keepPlaceholderOnFocus:!0}),wp.element.createElement(a.l,{tagName:"h4",value:p,className:"ugb-number-box-name",onChange:function(e){return t({name:e})},isSelected:n&&"name"===l,onFocus:C("name"),placeholder:Object(a.q)("Add name\u2026"),style:{color:w},keepPlaceholderOnFocus:!0}),wp.element.createElement(a.l,{tagName:"p",value:m,className:"ugb-number-box-body",onChange:function(e){return t({body:e})},isSelected:n&&"body"===l,onFocus:C("body"),placeholder:Object(a.q)("Add body\u2026"),style:{color:y},keepPlaceholderOnFocus:!0})),wp.element.createElement("div",{className:"ugb-number-box-column-two"},wp.element.createElement(a.l,{tagName:"span",placeholder:u?u.default:"",value:u,onChange:function(e){return t({numberBoxTwo:e})},isSelected:n&&"numberBoxTwo"===l,onFocus:C("numberBoxTwo"),style:{color:f,backgroundColor:v},keepPlaceholderOnFocus:!0}),wp.element.createElement(a.l,{tagName:"h4",value:d,className:"ugb-number-box-name-two",onChange:function(e){return t({nameTwo:e})},isSelected:n&&"nameTwo"===l,onFocus:C("nameTwo"),placeholder:Object(a.q)("Add name\u2026"),style:{color:w},keepPlaceholderOnFocus:!0}),wp.element.createElement(a.l,{tagName:"p",value:s,className:"ugb-number-box-body-two",onChange:function(e){return t({bodyTwo:e})},isSelected:n&&"bodyTwo"===l,onFocus:C("bodyTwo"),placeholder:Object(a.q)("Add body\u2026"),style:{color:y},keepPlaceholderOnFocus:!0})),wp.element.createElement("div",{className:"ugb-number-box-column-three"},wp.element.createElement(a.l,{tagName:"span",placeholder:i?i.default:"",value:i,onChange:function(e){return t({numberBoxThree:e})},isSelected:n&&"numberBoxThree"===l,onFocus:C("numberBoxThree"),style:{color:f,backgroundColor:v},keepPlaceholderOnFocus:!0}),wp.element.createElement(a.l,{tagName:"h4",value:g,className:"ugb-number-box-name-three",onChange:function(e){return t({nameThree:e})},isSelected:n&&"nameThree"===l,onFocus:C("nameThree"),placeholder:Object(a.q)("Add name\u2026"),style:{color:w},keepPlaceholderOnFocus:!0}),wp.element.createElement(a.l,{tagName:"p",value:b,className:"ugb-number-box-body-three",onChange:function(e){return t({bodyThree:e})},isSelected:n&&"bodyThree"===l,onFocus:C("bodyThree"),placeholder:Object(a.q)("Add body\u2026"),style:{color:y},keepPlaceholderOnFocus:!0})))]},u=function(e){var t=e.attributes,n=t.numberBox,l=t.numberBoxTwo,o=t.numberBoxThree,r=t.body,a=t.bodyTwo,c=t.bodyThree,u=t.name,i=t.nameTwo,m=t.nameThree,s=t.numberBoxColor,b=t.nameColor,p=t.bodyTextColor,d=t.numberBGColor,g=t.columns;return wp.element.createElement("div",{className:"ugb-number-box column-"+g},wp.element.createElement("div",{className:"ugb-number-box-column-one"},n&&!!n.length&&wp.element.createElement("span",{style:{color:s,backgroundColor:d}},n),u&&!!u.length&&wp.element.createElement("h4",{className:"ugb-number-box-name",style:{color:b}},u),r&&!!r.length&&wp.element.createElement("p",{className:"ugb-number-box-body",style:{color:p}},r)),g>1&&wp.element.createElement("div",{className:"ugb-number-box-column-two"},l&&!!l.length&&wp.element.createElement("span",{style:{color:s,backgroundColor:d}},l),i&&!!i.length&&wp.element.createElement("h4",{className:"ugb-number-box-name-two",style:{color:b}},i),a&&!!a.length&&wp.element.createElement("p",{className:"ugb-number-box-body-two",style:{color:p}},a)),g>2&&wp.element.createElement("div",{className:"ugb-number-box-column-three"},o&&!!o.length&&wp.element.createElement("span",{style:{color:s,backgroundColor:d}},o),m&&!!m.length&&wp.element.createElement("h4",{className:"ugb-number-box-name-three",style:{color:b}},m),c&&!!c.length&&wp.element.createElement("p",{className:"ugb-number-box-body-three",style:{color:p}},c)))};Object(a.r)("ugb/number-box",{title:Object(a.q)("Number Box"),icon:r.h,category:"stackable-ultimate-gutenberg-blocks",keywords:[Object(a.q)("Number Box"),Object(a.q)("Stackable")],attributes:{numberBox:{type:"array",source:"children",selector:".ugb-number-box-column-one span",default:Object(a.q)("01")},numberBoxTwo:{type:"array",source:"children",selector:".ugb-number-box-column-two span",default:Object(a.q)("02")},numberBoxThree:{type:"array",source:"children",selector:".ugb-number-box-column-three span",default:Object(a.q)("03")},name:{type:"array",source:"children",selector:".ugb-number-box-name",default:Object(a.q)("Registration")},nameTwo:{type:"array",source:"children",selector:".ugb-number-box-name-two",default:Object(a.q)("Waiting Period")},nameThree:{type:"array",source:"children",selector:".ugb-number-box-name-three",default:Object(a.q)("Delivery")},body:{type:"array",source:"children",selector:".ugb-number-box-body",default:Object(a.q)("This is just a sample write-up, but you can check out more info on Gutenberg on the WP repository.")},bodyTwo:{type:"array",source:"children",selector:".ugb-number-box-body-two",default:Object(a.q)("This is just a sample write-up, but you can check out more info on Gutenberg on the WP repository.")},bodyThree:{type:"array",source:"children",selector:".ugb-number-box-body-three",default:Object(a.q)("This is just a sample write-up, but you can check out more info on Gutenberg on the WP repository.")},numberBoxColor:{type:"string"},nameColor:{type:"string"},bodyTextColor:{type:"string"},numberBGColor:{type:"string"},columns:{type:"select",default:"1"}},edit:c,save:u})},function(e,t){},function(e,t){},function(e,t,n){"use strict";var l=n(44),o=(n.n(l),n(45)),r=(n.n(o),n(0)),a=n(1),c=function(e){var t=e.isSelected,n=e.editable,l=e.setState,o=(e.className,e.setAttributes),r=e.attributes,c=r.url,u=(r.url2,r.url3,r.pricingBoxTitle),i=r.pricingBoxTitle2,m=r.pricingBoxTitle3,s=r.price,b=r.price2,p=r.price3,d=r.perMonthLabel,g=r.perMonthLabel2,h=r.perMonthLabel3,f=r.buttonText,w=r.buttonText2,y=r.buttonText3,v=r.featureList,E=r.featureList2,C=r.featureList3,x=r.pricingBoxColor,O=r.priceColor,k=r.perMonthLabelColor,j=r.buttonColor,T=r.buttonTextColor,q=r.featureListColor,N=r.columns,S=r.size,B=r.cornerButtonRadius,L=[{value:"1",label:Object(a.q)("One Column")},{value:"2",label:Object(a.q)("Two Column")},{value:"3",label:Object(a.q)("Three Column")}],F=[{value:"small",label:Object(a.q)("Small")},{value:"normal",label:Object(a.q)("Normal")},{value:"medium",label:Object(a.q)("Medium")},{value:"large",label:Object(a.q)("Large")}],z=function(e){return function(){l({editable:e})}};return[t&&wp.element.createElement(a.b,{key:"controls"}),t&&wp.element.createElement(a.g,{key:"inspector"},wp.element.createElement(a.i,null,wp.element.createElement(a.m,{label:Object(a.q)("Column Number"),value:N,options:L.map(function(e){return{value:e.value,label:e.label}}),onChange:function(e){o({columns:e})}}),wp.element.createElement(a.k,{label:Object(a.q)("Corner Radius"),value:B,min:"1",max:"50",onChange:function(e){return o({cornerButtonRadius:e})}})),wp.element.createElement(a.j,{title:Object(a.q)("Pricing Title Color"),colorValue:x,initialOpen:!1},wp.element.createElement(a.d,{value:x,onChange:function(e){return o({pricingBoxColor:e})}})),wp.element.createElement(a.j,{title:Object(a.q)("Price Color"),colorValue:O,initialOpen:!1},wp.element.createElement(a.d,{value:O,onChange:function(e){return o({priceColor:e})}})),wp.element.createElement(a.j,{title:Object(a.q)("Per Month Label Color"),colorValue:k,initialOpen:!1},wp.element.createElement(a.d,{value:k,onChange:function(e){return o({perMonthLabelColor:e})}})),wp.element.createElement(a.j,{title:Object(a.q)("Feature List Color"),colorValue:q,initialOpen:!1},wp.element.createElement(a.d,{value:q,onChange:function(e){return o({featureListColor:e})}})),wp.element.createElement(a.i,null,wp.element.createElement(a.m,{label:Object(a.q)("Button Size"),value:S,options:F.map(function(e){return{value:e.value,label:e.label}}),onChange:function(e){o({size:e})}})),wp.element.createElement(a.j,{title:Object(a.q)("Button Color"),colorValue:j,initialOpen:!1},wp.element.createElement(a.d,{value:j,onChange:function(e){return o({buttonColor:e})}})),wp.element.createElement(a.j,{title:Object(a.q)("Button Text Color"),colorValue:T,initialOpen:!1},wp.element.createElement(a.d,{value:T,onChange:function(e){return o({buttonTextColor:e})}}))),wp.element.createElement("div",{key:"editable",className:"ugb-pricing-box column-"+N},wp.element.createElement("div",{className:"ugb-pricing-box-column-one"},wp.element.createElement(a.l,{tagName:"h3",value:u,onChange:function(e){return o({pricingBoxTitle:e})},isSelected:t&&"pricingBoxTitle"===n,onFocus:z("pricingBoxTitle"),style:{color:x},keepPlaceholderOnFocus:!0}),wp.element.createElement(a.l,{tagName:"p",value:s,className:"ugb-pricing-box-pricing",onChange:function(e){return o({price:e})},isSelected:t&&"price"===n,onFocus:z("price"),style:{color:O},keepPlaceholderOnFocus:!0}),wp.element.createElement(a.l,{tagName:"p",value:d,className:"ugb-pricing-box-per-month-label",onChange:function(e){return o({perMonthLabel:e})},focus:t&&"perMonthLabel"===n,onFocus:z("perMonthLabel"),style:{color:k},keepPlaceholderOnFocus:!0}),wp.element.createElement("span",{key:"button",className:"wp-block-button"},wp.element.createElement(a.l,{tagName:"span",value:f,onChange:function(e){return o({buttonText:e})},className:"wp-ugb-button ugb-button-"+S,isSelected:t&&"buttonText"===n,onFocus:z("buttonText"),style:{backgroundColor:j,color:T,borderRadius:B+"px"},keepPlaceholderOnFocus:!0})),wp.element.createElement(a.l,{tagName:"p",value:v,className:"ugb-pricing-box-feature-list",onChange:function(e){return o({featureList:e})},focus:t&&"featureList"===n,onFocus:z("featureList"),style:{color:q},keepPlaceholderOnFocus:!0}),t&&wp.element.createElement("form",{key:"form-link",onSubmit:function(e){return e.preventDefault()},className:"blocks-button__inline-link pricing-box"},wp.element.createElement(a.e,{icon:"admin-links"}),wp.element.createElement(a.p,{value:c,onChange:function(e){return o({url:e})}}),wp.element.createElement(a.f,{icon:"editor-break",label:Object(a.q)("Apply"),type:"submit"}))),wp.element.createElement("div",{className:"ugb-pricing-box-column-two"},wp.element.createElement(a.l,{tagName:"h3",value:i,onChange:function(e){return o({pricingBoxTitle2:e})},isSelected:t&&"pricingBoxTitle2"===n,onFocus:z("pricingBoxTitle2"),style:{color:x},keepPlaceholderOnFocus:!0}),wp.element.createElement(a.l,{tagName:"p",value:b,className:"ugb-pricing-box-pricing",onChange:function(e){return o({price2:e})},isSelected:t&&"price2"===n,onFocus:z("price2"),style:{color:O},keepPlaceholderOnFocus:!0}),wp.element.createElement(a.l,{tagName:"p",value:g,className:"ugb-pricing-box-per-month-label",onChange:function(e){return o({perMonthLabel2:e})},focus:t&&"perMonthLabel2"===n,onFocus:z("perMonthLabel2"),style:{color:k},keepPlaceholderOnFocus:!0}),wp.element.createElement("span",{key:"button",className:"wp-block-button"},wp.element.createElement(a.l,{tagName:"span",value:w,onChange:function(e){return o({buttonText2:e})},className:"wp-ugb-button ugb-button-"+S,isSelected:t&&"buttonText2"===n,onFocus:z("buttonText2"),style:{backgroundColor:j,color:T,borderRadius:B+"px"},keepPlaceholderOnFocus:!0})),wp.element.createElement(a.l,{tagName:"p",value:E,className:"ugb-pricing-box-feature-list",onChange:function(e){return o({featureList2:e})},focus:t&&"featureList2"===n,onFocus:z("featureList2"),style:{color:q},keepPlaceholderOnFocus:!0}),t&&wp.element.createElement("form",{key:"form-link",onSubmit:function(e){return e.preventDefault()},className:"blocks-button__inline-link pricing-box"},wp.element.createElement(a.e,{icon:"admin-links"}),wp.element.createElement(a.p,{value:c,onChange:function(e){return o({url:e})}}),wp.element.createElement(a.f,{icon:"editor-break",label:Object(a.q)("Apply"),type:"submit"}))),wp.element.createElement("div",{className:"ugb-pricing-box-column-three"},wp.element.createElement(a.l,{tagName:"h3",value:m,onChange:function(e){return o({pricingBoxTitle3:e})},isSelected:t&&"pricingBoxTitle3"===n,onFocus:z("pricingBoxTitle3"),style:{color:x},keepPlaceholderOnFocus:!0}),wp.element.createElement(a.l,{tagName:"p",value:p,className:"ugb-pricing-box-pricing",onChange:function(e){return o({price3:e})},isSelected:t&&"price3"===n,onFocus:z("price3"),style:{color:O},keepPlaceholderOnFocus:!0}),wp.element.createElement(a.l,{tagName:"p",value:h,className:"ugb-pricing-box-per-month-label",onChange:function(e){return o({perMonthLabel3:e})},focus:t&&"perMonthLabel3"===n,onFocus:z("perMonthLabel3"),style:{color:k},keepPlaceholderOnFocus:!0}),wp.element.createElement("span",{key:"button",className:"wp-block-button"},wp.element.createElement(a.l,{tagName:"span",value:y,onChange:function(e){return o({buttonText3:e})},className:"wp-ugb-button ugb-button-"+S,isSelected:t&&"buttonText3"===n,onFocus:z("buttonText3"),style:{backgroundColor:j,color:T,borderRadius:B+"px"},keepPlaceholderOnFocus:!0})),wp.element.createElement(a.l,{tagName:"p",value:C,className:"ugb-pricing-box-feature-list",onChange:function(e){return o({featureList3:e})},focus:t&&"featureList3"===n,onFocus:z("featureList3"),style:{color:q},keepPlaceholderOnFocus:!0}),t&&wp.element.createElement("form",{key:"form-link",onSubmit:function(e){return e.preventDefault()},className:"blocks-button__inline-link pricing-box"},wp.element.createElement(a.e,{icon:"admin-links"}),wp.element.createElement(a.p,{value:c,onChange:function(e){return o({url:e})}}),wp.element.createElement(a.f,{icon:"editor-break",label:Object(a.q)("Apply"),type:"submit"}))))]},u=function(e){var t=e.attributes,n=t.url,l=t.url2,o=t.url3,r=t.pricingBoxTitle,a=t.pricingBoxTitle2,c=t.pricingBoxTitle3,u=t.price,i=t.price2,m=t.price3,s=t.perMonthLabel,b=t.perMonthLabel2,p=t.perMonthLabel3,d=t.buttonText,g=t.buttonText2,h=t.buttonText3,f=t.featureList,w=t.featureList2,y=t.featureList3,v=t.pricingBoxColor,E=t.priceColor,C=t.perMonthLabelColor,x=t.buttonColor,O=t.buttonTextColor,k=t.featureListColor,j=t.columns,T=t.size,q=t.cornerButtonRadius,N={backgroundColor:x,color:O,borderRadius:q+"px"};return wp.element.createElement("div",{className:"ugb-pricing-box column-"+j},wp.element.createElement("div",{className:"ugb-pricing-box-column-one"},r&&!!r.length&&wp.element.createElement("h3",{style:{color:v}},r),u&&!!u.length&&wp.element.createElement("p",{className:"ugb-pricing-box-pricing",style:{color:E}},u),s&&!!s.length&&wp.element.createElement("p",{className:"ugb-pricing-box-per-month-label",style:{color:C}},s),d&&!!d.length&&wp.element.createElement("a",{href:n,className:"wp-ugb-button ugb-button-"+T,style:N},d),f&&!!f.length&&wp.element.createElement("p",{className:"ugb-pricing-box-feature-list",style:{color:k}},f)),j>1&&wp.element.createElement("div",{className:"ugb-pricing-box-column-two"},a&&!!a.length&&wp.element.createElement("h3",{style:{color:v}},a),i&&!!i.length&&wp.element.createElement("p",{className:"ugb-pricing-box-pricing",style:{color:E}},i),b&&!!b.length&&wp.element.createElement("p",{className:"ugb-pricing-box-per-month-label",style:{color:C}},b),g&&!!g.length&&wp.element.createElement("a",{href:l,className:"wp-ugb-button ugb-button-"+T,style:N},g),w&&!!w.length&&wp.element.createElement("p",{className:"ugb-pricing-box-feature-list",style:{color:k}},w)),j>2&&wp.element.createElement("div",{className:"ugb-pricing-box-column-three"},c&&!!c.length&&wp.element.createElement("h3",{style:{color:v}},c),m&&!!m.length&&wp.element.createElement("p",{className:"ugb-pricing-box-pricing",style:{color:E}},m),p&&!!p.length&&wp.element.createElement("p",{className:"ugb-pricing-box-per-month-label",style:{color:C}},p),h&&!!h.length&&wp.element.createElement("a",{href:o,className:"wp-ugb-button ugb-button-"+T,style:N},h),y&&!!y.length&&wp.element.createElement("p",{className:"ugb-pricing-box-feature-list",style:{color:k}},y)))};Object(a.r)("ugb/pricing-box",{title:Object(a.q)("Pricing Box"),icon:r.j,category:"stackable-ultimate-gutenberg-blocks",keywords:[Object(a.q)("Pricing Box"),Object(a.q)("Stackable")],attributes:{url:{type:"string",source:"attribute",selector:".ugb-pricing-box-column-one a",attribute:"href"},url2:{type:"string",source:"attribute",selector:".ugb-pricing-box-column-two a",attribute:"href"},url3:{type:"string",source:"attribute",selector:".ugb-pricing-box-column-three a",attribute:"href"},pricingBoxTitle:{type:"array",source:"children",selector:".ugb-pricing-box-column-one h3",default:Object(a.q)("Basic")},pricingBoxTitle2:{type:"array",source:"children",selector:".ugb-pricing-box-column-two h3",default:Object(a.q)("Basic")},pricingBoxTitle3:{type:"array",source:"children",selector:".ugb-pricing-box-column-three h3",default:Object(a.q)("Basic")},price:{type:"array",source:"children",selector:".ugb-pricing-box-column-one .ugb-pricing-box-pricing",default:Object(a.q)("$9")},price2:{type:"array",source:"children",selector:".ugb-pricing-box-column-two .ugb-pricing-box-pricing",default:Object(a.q)("$9")},price3:{type:"array",source:"children",selector:".ugb-pricing-box-column-three .ugb-pricing-box-pricing",default:Object(a.q)("$9")},perMonthLabel:{type:"array",source:"children",selector:".ugb-pricing-box-column-one .ugb-pricing-box-per-month-label",default:Object(a.q)("per month")},perMonthLabel2:{type:"array",source:"children",selector:".ugb-pricing-box-column-two .ugb-pricing-box-per-month-label",default:Object(a.q)("per month")},perMonthLabel3:{type:"array",source:"children",selector:".ugb-pricing-box-column-three .ugb-pricing-box-per-month-label",default:Object(a.q)("per month")},buttonText:{type:"array",source:"children",selector:".ugb-pricing-box-column-one a",default:Object(a.q)("Buy Now")},buttonText2:{type:"array",source:"children",selector:".ugb-pricing-box-column-two a",default:Object(a.q)("Buy Now")},buttonText3:{type:"array",source:"children",selector:".ugb-pricing-box-column-three a",default:Object(a.q)("Buy Now")},featureList:{type:"array",source:"children",selector:".ugb-pricing-box-column-one .ugb-pricing-box-feature-list",default:Object(a.q)("Consectetur adipiscing elit Suspendisse at pretium tortor Vestibulum ante ipsum primis In faucibus orci luctus et Ultrices posuere cubilia cura Aenean consectetur nec")},featureList2:{type:"array",source:"children",selector:".ugb-pricing-box-column-two .ugb-pricing-box-feature-list",default:Object(a.q)("Consectetur adipiscing elit Suspendisse at pretium tortor Vestibulum ante ipsum primis In faucibus orci luctus et Ultrices posuere cubilia cura Aenean consectetur nec")},featureList3:{type:"array",source:"children",selector:".ugb-pricing-box-column-three .ugb-pricing-box-feature-list",default:Object(a.q)("Consectetur adipiscing elit Suspendisse at pretium tortor Vestibulum ante ipsum primis In faucibus orci luctus et Ultrices posuere cubilia cura Aenean consectetur nec")},pricingBoxColor:{type:"string"},priceColor:{type:"string"},perMonthLabelColor:{type:"string"},buttonColor:{type:"string"},buttonTextColor:{type:"string"},featureListColor:{type:"string"},columns:{type:"select",default:"1"},size:{type:"string",default:"normal"},cornerButtonRadius:{type:"number",default:4}},edit:c,save:u})},function(e,t){},function(e,t){},function(e,t,n){"use strict";function l(e){return 0===e?null:"overlay-opacity-"+1*Math.round(e/1)}var o=n(47),r=n.n(o),a=n(48),c=(n.n(a),n(49)),u=(n.n(c),n(0)),i=n(1),m=function(e){var t=(e.className,e.setAttributes),n=e.isSelected,o=e.editable,a=e.setState,c=e.attributes,u=c.url,m=c.buttonURL,s=c.buttonText,b=c.buttonColor,p=c.buttonTextColor,d=c.cornerButtonRadius,g=c.size,h=c.title,f=c.titleColor,w=c.subtitle,y=c.subtitleColor,v=c.contentAlign,E=c.id,C=c.backgroundColor,x=c.opacity,O=u?{backgroundImage:"url("+u+")"}:void 0,k=u?"has-image":"",j=r()(l(x),{"overlay-opacity":0!==x}),T=function(e){return function(){a({editable:e})}},q=[{value:"small",label:Object(i.q)("Small")},{value:"normal",label:Object(i.q)("Normal")},{value:"medium",label:Object(i.q)("Medium")},{value:"large",label:Object(i.q)("Large")}];return[n&&wp.element.createElement(i.b,{key:"controls"},wp.element.createElement(i.a,{value:v,onChange:function(e){return t({contentAlign:e})}}),wp.element.createElement(i.o,null,wp.element.createElement(i.h,{onSelect:function(e){return t({url:e.url,id:e.id})},type:"image",value:E,render:function(e){var t=e.open;return wp.element.createElement(i.f,{className:"components-toolbar__control",label:Object(i.q)("Edit image"),icon:"edit",onClick:t})}}))),n&&wp.element.createElement(i.g,{key:"inspector"},wp.element.createElement(i.j,{title:Object(i.q)("Title Color"),colorValue:f,initialOpen:!1},wp.element.createElement(i.d,{value:f,onChange:function(e){return t({titleColor:e})}})),wp.element.createElement(i.j,{title:Object(i.q)("Subtitle Color"),colorValue:y,initialOpen:!1},wp.element.createElement(i.d,{value:y,onChange:function(e){return t({subtitleColor:e})}})),wp.element.createElement(i.j,{title:Object(i.q)("Heading Background Color"),colorValue:C,initialOpen:!1},wp.element.createElement(i.d,{value:C,onChange:function(e){return t({backgroundColor:e})}})),wp.element.createElement(i.i,null,wp.element.createElement(i.k,{label:Object(i.q)("Background Opacity"),value:x,min:0,max:10,step:1,onChange:function(e){return t({opacity:e})}}),wp.element.createElement("h2",null,"Button Settings"),wp.element.createElement(i.m,{label:Object(i.q)("Button Size"),value:g,options:q.map(function(e){return{value:e.value,label:e.label}}),onChange:function(e){t({size:e})}}),wp.element.createElement(i.k,{label:Object(i.q)("Corner Radius"),value:d,min:"1",max:"50",onChange:function(e){return t({cornerButtonRadius:e})}})),wp.element.createElement(i.j,{title:Object(i.q)("Button Color"),colorValue:b,initialOpen:!1},wp.element.createElement(i.d,{value:b,onChange:function(e){return t({buttonColor:e})}})),wp.element.createElement(i.j,{title:Object(i.q)("Button Text Color"),colorValue:p,initialOpen:!1},wp.element.createElement(i.d,{value:p,onChange:function(e){return t({buttonTextColor:e})}}))),wp.element.createElement("div",{key:"editable",className:"ugb-header "+k+" "},wp.element.createElement("div",{className:"ugb-header-overlay "+j,style:{backgroundColor:C}}),wp.element.createElement(i.h,{onSelect:function(e){return t({url:e.url,id:e.id})},type:"image",value:E,render:function(e){return[!u&&wp.element.createElement(i.c,{className:E?"":"button button-large",onClick:e.open},Object(i.q)("Upload Image"))]}}),wp.element.createElement("section",{key:"preview","data-url":u,style:O,className:"ugb-header-section"},wp.element.createElement(i.l,{tagName:"h2",className:"ugb-header-title",placeholder:h.default,value:h,onChange:function(e){return t({title:e})},isSelected:n&&"title"===o,onFocus:T("title"),style:{textAlign:v,color:f}}),wp.element.createElement(i.l,{tagName:"p",className:"ugb-header-subtitle",placeholder:w.default,value:w,onChange:function(e){return t({subtitle:e})},isSelected:n&&"subtitle"===o,onFocus:T("subtitle"),style:{textAlign:v,color:y}}),wp.element.createElement("span",{key:"button",className:"wp-block-button ugb-button-"+v},wp.element.createElement(i.l,{tagName:"span",placeholder:s.default,value:s,onChange:function(e){return t({buttonText:e})},className:"wp-ugb-button ugb-button-"+g,style:{backgroundColor:b,color:p,borderRadius:d+"px"},isSelected:n&&"buttonText"===o,onFocus:T("buttonText"),keepPlaceholderOnFocus:!0})))),n&&wp.element.createElement("form",{key:"form-link",onSubmit:function(e){return e.preventDefault()},className:"blocks-button__inline-link ugb-button-"+v},wp.element.createElement(i.e,{icon:"admin-links"}),wp.element.createElement(i.p,{value:m,onChange:function(e){return t({buttonURL:e})}}),wp.element.createElement(i.f,{icon:"editor-break",label:Object(i.q)("Apply"),type:"submit"}))]},s=function(e){var t=e.attributes,n=t.url,o=t.buttonURL,a=t.buttonText,c=t.buttonColor,u=t.buttonTextColor,i=t.cornerButtonRadius,m=t.size,s=t.title,b=t.titleColor,p=t.subtitle,d=t.subtitleColor,g=(t.contentAlign,t.id,t.backgroundColor),h=t.opacity,f={backgroundColor:c,color:u,borderRadius:i+"px"},w=n?{backgroundImage:"url("+n+")"}:void 0,y=n?"has-image":"",v=r()(l(h),{"overlay-opacity":0!==h}),E=s.length||p.length||a.length?"has-content":"has-no-content";return wp.element.createElement("div",{className:"ugb-header "+y+" "+E},wp.element.createElement("div",{className:"ugb-header-overlay "+v,style:{backgroundColor:g}}),wp.element.createElement("section",{key:"preview","data-url":n,style:w,className:"ugb-header-section"},s&&!!s.length&&wp.element.createElement("h2",{className:"ugb-header-title",style:{color:b}},s),p&&!!p.length&&wp.element.createElement("p",{className:"ugb-header-subtitle",style:{color:d}},p),a&&!!a.length&&wp.element.createElement("a",{href:o,className:"wp-ugb-button ugb-button-"+m,style:f},a)))};Object(i.r)("ugb/header",{title:Object(i.q)("Header"),icon:u.f,category:"stackable-ultimate-gutenberg-blocks",keywords:[Object(i.q)("Header"),Object(i.q)("Stackable")],attributes:{title:{type:"array",source:"children",selector:"h2",default:Object(i.q)("Heading Title")},subtitle:{type:"array",source:"children",selector:"p",default:Object(i.q)("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus congue tincidunt nisit ut pretium. Duis blandit, tortor et suscipit tincidunt, dolor metus mattis neque, ac varius magna nibh ac tortor.")},url:{type:"string",source:"attribute",selector:".ugb-header .ugb-header-section",attribute:"data-url"},buttonURL:{type:"string",source:"attribute",selector:"a",attribute:"href"},titleColor:{type:"string",default:"#ffffff"},subtitleColor:{type:"string",default:"#ffffff"},buttonText:{type:"array",source:"children",selector:".ugb-header a.wp-ugb-button",default:Object(i.q)("Button")},buttonColor:{type:"string",default:"#2091e1"},buttonTextColor:{type:"string",default:"#ffffff"},size:{type:"string",default:"normal"},cornerButtonRadius:{type:"number",default:4},contentAlign:{type:"string",default:"center"},id:{type:"number"},backgroundColor:{type:"string",default:"#000000"},opacity:{type:"number",default:5}},edit:m,save:s})},function(e,t,n){var l,o;!function(){"use strict";function n(){for(var e=[],t=0;t<arguments.length;t++){var l=arguments[t];if(l){var o=typeof l;if("string"===o||"number"===o)e.push(l);else if(Array.isArray(l)&&l.length){var a=n.apply(null,l);a&&e.push(a)}else if("object"===o)for(var c in l)r.call(l,c)&&l[c]&&e.push(c)}}return e.join(" ")}var r={}.hasOwnProperty;"undefined"!==typeof e&&e.exports?(n.default=n,e.exports=n):(l=[],void 0!==(o=function(){return n}.apply(t,l))&&(e.exports=o))}()},function(e,t){},function(e,t){},function(e,t,n){"use strict";var l=n(51),o=(n.n(l),n(52)),r=(n.n(o),n(0)),a=n(1),c=function(e){var t=(e.className,e.setAttributes),n=e.isSelected,l=e.editable,o=e.setState,r=e.attributes,c=r.url,u=r.title,i=r.titleColor,m=r.subtitle,s=r.subtitleColor,b=r.overlayColor,p=r.id,d=r.height,g=r.width,h=r.verticalAlign,f=r.horizontalAlign,w=r.full,y=c?"has-image":"",v=w?"full-width":"",E=function(e){return function(){o({editable:e})}},C=[{value:"flex-start",label:Object(a.q)("Top")},{value:"center",label:Object(a.q)("Center")},{value:"flex-end",label:Object(a.q)("Bottom")}],x=[{value:"flex-start",label:Object(a.q)("Left")},{value:"center",label:Object(a.q)("Center")},{value:"flex-end",label:Object(a.q)("Right")}];return[n&&wp.element.createElement(a.b,{key:"controls"},c&&wp.element.createElement(a.o,null,wp.element.createElement(a.h,{onSelect:function(e){return t({url:e.url,id:e.id})},type:"image",value:p,render:function(e){var t=e.open;return wp.element.createElement(a.f,{className:"components-toolbar__control",label:Object(a.q)("Edit image"),icon:"edit",onClick:t})}}))),n&&wp.element.createElement(a.g,{key:"inspector"},wp.element.createElement(a.i,null,wp.element.createElement(a.n,{label:"Full-Width",checked:!!w,onChange:function(){return t({full:!w})}}),wp.element.createElement(a.k,{label:Object(a.q)("Height"),value:d,min:"135",max:"700",onChange:function(e){return t({height:e})}}),wp.element.createElement(a.k,{label:Object(a.q)("Width"),value:g,min:"400",max:"999",onChange:function(e){return t({width:e})}}),wp.element.createElement(a.m,{label:Object(a.q)("Vertical Alignment"),value:h,options:C.map(function(e){return{value:e.value,label:e.label}}),onChange:function(e){t({verticalAlign:e})}}),wp.element.createElement(a.m,{label:Object(a.q)("Horizontal Alignment"),value:f,options:x.map(function(e){return{value:e.value,label:e.label}}),onChange:function(e){t({horizontalAlign:e})}})),wp.element.createElement(a.j,{title:Object(a.q)("Title Color"),colorValue:i,initialOpen:!1},wp.element.createElement(a.d,{value:i,onChange:function(e){return t({titleColor:e})}})),wp.element.createElement(a.j,{title:Object(a.q)("Subtitle Color"),colorValue:s,initialOpen:!1},wp.element.createElement(a.d,{value:s,onChange:function(e){return t({subtitleColor:e})}})),wp.element.createElement(a.j,{title:Object(a.q)("Overlay Color"),colorValue:b,initialOpen:!1},wp.element.createElement(a.d,{value:b,onChange:function(e){return t({overlayColor:e})}}))),wp.element.createElement("div",{key:"editable",className:"ugb-image-box "+y+" "+v,"data-url":c,style:{width:g+"px",height:d+"px",backgroundImage:"url("+c+")",alignItems:f,justifyContent:h}},wp.element.createElement(a.h,{onSelect:function(e){return t({url:e.url,id:e.id})},type:"image",value:p,render:function(e){return[!c&&wp.element.createElement(a.c,{className:p?"":"button button-large",onClick:e.open},Object(a.q)("Upload Image"))]}}),wp.element.createElement("a",{href:"#",style:{backgroundColor:b}}),wp.element.createElement(a.l,{tagName:"h4",placeholder:u.default,value:u,onChange:function(e){return t({title:e})},isSelected:n&&"title"===l,onFocus:E("title"),style:{color:i}}),wp.element.createElement(a.l,{tagName:"p",placeholder:m.default,value:m,onChange:function(e){return t({subtitle:e})},isSelected:n&&"subtitle"===l,onFocus:E("subtitle"),style:{color:s}}))]},u=function(e){var t=e.attributes,n=t.url,l=t.title,o=t.titleColor,r=t.subtitle,a=t.subtitleColor,c=t.overlayColor,u=(t.id,t.height),i=t.width,m=t.verticalAlign,s=t.horizontalAlign,b=t.full,p=n?"has-image":"",d=b?"full-width":"",g=l.length||r.length?"has-content":"has-no-content";return wp.element.createElement("div",{className:"ugb-image-box "+p+" "+g+" "+d,"data-url":n,style:{width:i+"px",height:u+"px",backgroundImage:"url("+n+")",alignItems:s,justifyContent:m}},wp.element.createElement("a",{href:"#",style:{backgroundColor:c}}),l&&!!l.length&&wp.element.createElement("h4",{style:{color:o}},l),r&&!!r.length&&wp.element.createElement("p",{style:{color:a}},r))};Object(a.r)("ugb/image-box",{title:Object(a.q)("Image Box"),icon:r.i,category:"stackable-ultimate-gutenberg-blocks",keywords:[Object(a.q)("Image Box"),Object(a.q)("Stackable")],attributes:{title:{type:"array",source:"children",selector:"h4",default:Object(a.q)("Title")},subtitle:{type:"array",source:"children",selector:"p",default:Object(a.q)("Subtitle goes here")},url:{type:"string",source:"attribute",selector:".ugb-image-box",attribute:"data-url"},titleColor:{type:"string",default:"#ffffff"},subtitleColor:{type:"string",default:"#ffffff"},overlayColor:{type:"string",default:"#42b078"},id:{type:"number"},width:{type:"number",default:"400"},height:{type:"number",default:"400"},verticalAlign:{type:"string",default:"center"},horizontalAlign:{type:"string",default:"center"},full:{type:"boolean",default:!1}},edit:c,save:u})},function(e,t){},function(e,t){},function(e,t,n){"use strict";var l=n(54),o=(n.n(l),n(55)),r=(n.n(o),n(0)),a=n(1),c=function(e){var t=function(e){return function(){o({editable:e})}},n=e.isSelected,l=e.editable,o=e.setState,r=e.setAttributes,c=(e.className,e.attributes),u=c.color,i=c.headingColor,m=c.desColor,s=c.title,b=c.counter,p=c.des,d=c.fontSize;return[wp.element.createElement("div",{className:"ugb-countup"},wp.element.createElement(a.l,{tagName:"h4",value:s,onChange:function(e){return r({title:e})},isSelected:n&&"title"===l,onFocus:t("title"),style:{color:i}}),wp.element.createElement(a.l,{tagName:"div",className:"ugb-counter",placeholder:b.default,"data-duration":"1000","data-delay":"16",value:b,onChange:function(e){return r({counter:e})},isSelected:n&&"counter"===l,onFocus:t("counter"),style:{color:u,fontSize:d+"px"}}),wp.element.createElement(a.l,{tagName:"p",className:"ugb-counter-des",value:p,onChange:function(e){return r({des:e})},isSelected:n&&"des"===l,onFocus:t("des"),style:{color:m}})),n&&wp.element.createElement(a.g,{key:"inspector"},wp.element.createElement(a.j,{title:Object(a.q)("Heading Color"),colorValue:i,initialOpen:!1},wp.element.createElement(a.d,{value:i,onChange:function(e){return r({headingColor:e})}})),wp.element.createElement(a.j,{title:Object(a.q)("Count Up Text Color"),colorValue:u,initialOpen:!1},wp.element.createElement(a.d,{value:u,onChange:function(e){return r({color:e})}})),wp.element.createElement(a.j,{title:Object(a.q)("Description Color"),colorValue:m,initialOpen:!1},wp.element.createElement(a.d,{value:m,onChange:function(e){return r({desColor:e})}})),wp.element.createElement(a.i,null,wp.element.createElement(a.k,{label:Object(a.q)("Counter Text Font Size"),max:"100",min:"10",value:d,onChange:function(e){return r({fontSize:e})}})))]},u=function(e){var t=e.attributes,n=t.color,l=t.headingColor,o=t.desColor,r=t.title,a=t.counter,c=t.des,u=t.fontSize;return wp.element.createElement("div",{className:"ugb-countup"},wp.element.createElement("h4",{style:{color:l}}," ",r," "),wp.element.createElement("div",{className:"ugb-counter",style:{color:n,fontSize:u+"px"},"data-duration":"1000","data-delay":"16"},a),wp.element.createElement("p",{style:{color:o}}," ",c," "))};Object(a.r)("ugb/count-up",{title:Object(a.q)("Count Up"),icon:r.h,category:"stackable-ultimate-gutenberg-blocks",keywords:[Object(a.q)("Count Up"),Object(a.q)("Stackable")],attributes:{title:{type:"array",source:"children",selector:"h4",default:Object(a.q)("Happy Customers")},counter:{type:"array",source:"children",selector:".ugb-counter",default:"12,345"},des:{type:"array",source:"children",selector:"p",default:Object(a.q)("and counting")},fontSize:{type:"number",default:"60"},headingColor:{type:"string"},desColor:{type:"string"},color:{type:"string"}},edit:c,save:u})},function(e,t){},function(e,t){},function(e,t,n){"use strict";var l=n(57),o=(n.n(l),n(58)),r=(n.n(o),n(0)),a=n(1),c={normal:wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"30",height:"30",viewBox:"0 0 256 320"},wp.element.createElement("path",{d:"M0 0v320l256-160L0 0z"})),circle:wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"50",height:"50",viewBox:"0 0 40 40"},wp.element.createElement("path",{d:"M16 29l12-9-12-9v18zm4-29C8.95 0 0 8.95 0 20s8.95 20 20 20 20-8.95 20-20S31.05 0 20 0zm0 36c-8.82 0-16-7.18-16-16S11.18 4 20 4s16 7.18 16 16-7.18 16-16 16z"})),outline:wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"50",height:"50",viewBox:"0 0 34 34"},wp.element.createElement("path",{d:"M17 34C7.6 34 0 26.4 0 17S7.6 0 17 0s17 7.6 17 17-7.6 17-17 17zm0-32C8.7 2 2 8.7 2 17s6.7 15 15 15 15-6.7 15-15S25.3 2 17 2z"}),wp.element.createElement("path",{d:"M12 25.7V8.3L27 17l-15 8.7zm2-14v10.5l9-5.3-9-5.2z"}))},u=function(e){var t=(e.className,e.setAttributes),n=e.isSelected,l=e.attributes,o=l.videoLink,r=l.mediaLink,u=l.overlayColor,i=l.playButtonType,m=l.mediaID,s=[{value:"normal",label:Object(a.q)("Normal Play Button")},{value:"circle",label:Object(a.q)("Play Button with Circle")},{value:"outline",label:Object(a.q)("Outline Play Button")}];return[n&&wp.element.createElement(a.b,{key:"controls"},r&&wp.element.createElement(a.o,null,wp.element.createElement(a.h,{onSelect:function(e){return t({mediaLink:e.url,mediaID:e.id})},type:"image",value:m,render:function(e){var t=e.open;return wp.element.createElement(a.f,{className:"components-toolbar__control",label:Object(a.q)("Edit image"),icon:"edit",onClick:t})}}))),n&&wp.element.createElement(a.g,{key:"inspector"},wp.element.createElement(a.i,null,wp.element.createElement(a.m,{label:Object(a.q)("Play Button Style"),value:i,options:s.map(function(e){return{value:e.value,label:e.label}}),onChange:function(e){t({playButtonType:e})}})),wp.element.createElement(a.j,{title:Object(a.q)("Background/Overlay Color"),colorValue:u,initialOpen:!1},wp.element.createElement(a.d,{value:u,onChange:function(e){return t({overlayColor:e})}}))),wp.element.createElement("div",{className:"ugb-video-popup","data-video":o,style:{backgroundColor:u}},wp.element.createElement("div",{className:"ugb-video-preview",style:{backgroundImage:"url("+r+")"}}),wp.element.createElement("div",{className:"ugb-video-wrapper"},wp.element.createElement(a.h,{onSelect:function(e){return t({mediaLink:e.url,mediaID:e.id})},type:"image",value:m,render:function(e){return[!r&&wp.element.createElement(a.c,{className:m?"":"button button-large",onClick:e.open},Object(a.q)("Upload Image"))]}}),wp.element.createElement("div",{className:"ugb-video-overlay",style:{backgroundColor:u}}),wp.element.createElement("span",{className:"ugb-play-button"},c[i]))),n&&wp.element.createElement("form",{key:"form-link",onSubmit:function(e){return e.preventDefault()},className:"ugb-video-popup-link blocks-button__inline-link"},wp.element.createElement(a.e,{icon:"admin-links"}),wp.element.createElement(a.p,{value:o,onChange:function(e){return t({videoLink:e})}}),wp.element.createElement(a.f,{icon:"editor-break",label:Object(a.q)("Apply"),type:"submit"}),wp.element.createElement("p",null,wp.element.createElement("i",null,"Youtube/Vimeo ID only")))]},i=function(e){var t=e.attributes,n=t.videoLink,l=t.mediaLink,o=t.overlayColor,r=t.playButtonType;t.mediaID;return wp.element.createElement("div",{className:"ugb-video-popup","data-video":n,style:{backgroundColor:o}},wp.element.createElement("div",{className:"ugb-video-preview",style:{backgroundImage:"url("+l+")"},"data-url":l}),wp.element.createElement("div",{className:"ugb-video-wrapper"},wp.element.createElement("a",{href:"#",style:{backgroundColor:o}}),wp.element.createElement("span",{className:"ugb-play-button"},c[r])))};Object(a.r)("ugb/video-popup",{title:Object(a.q)("Video Popup"),icon:r.o,category:"stackable-ultimate-gutenberg-blocks",keywords:[Object(a.q)("Video Popup"),Object(a.q)("Stackable")],attributes:{videoLink:{type:"string",source:"attribute",selector:".ugb-video-popup",attribute:"data-video"},mediaLink:{type:"string",source:"attribute",selector:".ugb-video-preview",attribute:"data-url"},mediaID:{type:"number"},overlayColor:{type:"string",default:"#000000"},playButtonType:{type:"string",default:"normal"}},edit:u,save:i})},function(e,t){},function(e,t){},function(e,t,n){"use strict";var l=n(60),o=(n.n(l),n(61)),r=(n.n(o),n(0)),a=n(1),c=function(e){var t=e.isSelected,n=e.editable,l=e.setState,o=(e.className,e.setAttributes),r=e.attributes,c=r.heading,u=r.tagline,i=r.des,m=r.mediaID,s=r.mediaURL,b=r.headingColor,p=r.taglineColor,d=r.desColor,g=r.buttonURL,h=r.buttonText,f=r.buttonColor,w=r.buttonTextColor,y=r.size,v=r.cornerButtonRadius,E=r.contentAlign,C=function(e){return function(){l({editable:e})}},x=s?"has-image":"",O=[{value:"small",label:Object(a.q)("Small")},{value:"normal",label:Object(a.q)("Normal")},{value:"medium",label:Object(a.q)("Medium")},{value:"large",label:Object(a.q)("Large")}];return[t&&wp.element.createElement(a.b,{key:"controls"},wp.element.createElement(a.a,{value:E,onChange:function(e){return o({contentAlign:e})}}),wp.element.createElement(a.o,null,wp.element.createElement(a.h,{onSelect:function(e){return o({mediaURL:e.url,mediaID:e.id})},type:"image",value:m,render:function(e){var t=e.open;return wp.element.createElement(a.f,{className:"components-toolbar__control",label:Object(a.q)("Edit image"),icon:"edit",onClick:t})}}))),t&&wp.element.createElement(a.g,{key:"inspector"},wp.element.createElement(a.j,{title:Object(a.q)("Heading Color"),colorValue:b,initialOpen:!1},wp.element.createElement(a.d,{value:b,onChange:function(e){return o({headingColor:e})}})),wp.element.createElement(a.j,{title:Object(a.q)("Tagline Color"),colorValue:p,initialOpen:!1},wp.element.createElement(a.d,{value:p,onChange:function(e){return o({taglineColor:e})}})),wp.element.createElement(a.j,{title:Object(a.q)("Description Color"),colorValue:d,initialOpen:!1},wp.element.createElement(a.d,{value:d,onChange:function(e){return o({desColor:e})}})),wp.element.createElement(a.i,null,wp.element.createElement("h2",null,"Button Settings"),wp.element.createElement(a.m,{label:Object(a.q)("Button Size"),value:y,options:O.map(function(e){return{value:e.value,label:e.label}}),onChange:function(e){o({size:e})}}),wp.element.createElement(a.k,{label:Object(a.q)("Corner Radius"),value:v,min:"1",max:"50",onChange:function(e){return o({cornerButtonRadius:e})}})),wp.element.createElement(a.j,{title:Object(a.q)("Button Color"),colorValue:f,initialOpen:!1},wp.element.createElement(a.d,{value:f,onChange:function(e){return o({buttonColor:e})}})),wp.element.createElement(a.j,{title:Object(a.q)("Button Text Color"),colorValue:w,initialOpen:!1},wp.element.createElement(a.d,{value:w,onChange:function(e){return o({buttonTextColor:e})}}))),wp.element.createElement("div",{key:"editable",className:"ugb-card "+x},wp.element.createElement("div",{className:"ugb-card-image-container",style:{backgroundImage:"url("+s+")",textAlign:E}},wp.element.createElement(a.h,{onSelect:function(e){return o({mediaURL:e.url,mediaID:e.id})},type:"image",value:m,render:function(e){return[!s&&wp.element.createElement(a.c,{className:m?"":"button button-large",onClick:e.open},Object(a.q)("Upload Image"))]}})),wp.element.createElement(a.l,{tagName:"h4",value:c,className:"ugb-card-heading",onChange:function(e){return o({heading:e})},isSelected:t&&"heading"===n,onFocus:C("heading"),style:{color:b,textAlign:E},keepPlaceholderOnFocus:!0}),wp.element.createElement(a.l,{tagName:"p",value:u,className:"ugb-tagline",onChange:function(e){return o({tagline:e})},isSelected:t&&"tagline"===n,onFocus:C("tagline"),style:{color:p,textAlign:E},keepPlaceholderOnFocus:!0}),wp.element.createElement(a.l,{tagName:"p",value:i,className:"ugb-card-des",onChange:function(e){return o({des:e})},isSelected:t&&"des"===n,onFocus:C("des"),style:{color:d,textAlign:E},keepPlaceholderOnFocus:!0}),wp.element.createElement("span",{key:"button",className:"wp-block-button ugb-button-"+E},wp.element.createElement(a.l,{tagName:"span",placeholder:h.default,value:h,onChange:function(e){return o({buttonText:e})},className:"wp-ugb-button ugb-button-"+y,style:{backgroundColor:f,color:w,borderRadius:v+"px"},isSelected:t&&"buttonText"===n,onFocus:C("buttonText"),keepPlaceholderOnFocus:!0}))),t&&wp.element.createElement("form",{key:"form-link",onSubmit:function(e){return e.preventDefault()},className:"blocks-button__inline-link ugb-button-"+E,style:{marginTop:10}},wp.element.createElement(a.e,{icon:"admin-links"}),wp.element.createElement(a.p,{value:g,onChange:function(e){return o({buttonURL:e})}}),wp.element.createElement(a.f,{icon:"editor-break",label:Object(a.q)("Apply"),type:"submit"}))]},u=function(e){var t=e.attributes,n=t.heading,l=t.tagline,o=t.des,r=t.mediaURL,a=(t.mediaID,t.headingColor),c=t.taglineColor,u=t.desColor,i=t.buttonURL,m=t.buttonText,s=t.buttonColor,b=t.buttonTextColor,p=t.size,d=t.cornerButtonRadius,g=t.contentAlign,h={backgroundColor:s,color:b,borderRadius:d+"px"},f=r?"has-image":"",w=n.length||l.length||o.length||m.length?"has-content":"has-no-content";return wp.element.createElement("div",{className:"ugb-card "+f+" "+w},r&&wp.element.createElement("div",{className:"ugb-card-image-container",style:{backgroundImage:"url("+r+")",textAlign:g},"data-src":r}),n&&!!n.length&&wp.element.createElement("h4",{style:{color:a,textAlign:g}},n),l&&!!l.length&&wp.element.createElement("p",{className:"ugb-tagline",style:{color:c,textAlign:g}},l),o&&!!o.length&&wp.element.createElement("p",{className:"ugb-card-des",style:{color:u,textAlign:g}},o),m&&!!m.length&&wp.element.createElement("a",{href:i,className:"wp-ugb-button wp-block-button ugb-button-"+p+" ugb-button-"+g,style:h},m))};Object(a.r)("ugb/card",{title:Object(a.q)("Card"),icon:r.m,category:"stackable-ultimate-gutenberg-blocks",keywords:[Object(a.q)("Card"),Object(a.q)("Stackable")],attributes:{mediaID:{type:"number"},mediaURL:{type:"string",source:"attribute",selector:".ugb-card-image-container",attribute:"data-src"},heading:{type:"array",source:"children",selector:".ugb-card h4",default:Object(a.q)("Ben Adams")},tagline:{type:"array",source:"children",selector:".ugb-tagline",default:Object(a.q)("Ben is the head of our small team")},des:{type:"array",source:"children",selector:".ugb-card-des",default:Object(a.q)("Ben is the head of our small team. He loves walking his dog, Walter, when he has some free time.")},headingColor:{type:"string"},taglineColor:{type:"string"},desColor:{type:"string"},buttonURL:{type:"string",source:"attribute",selector:".wp-ugb-button",attribute:"href"},buttonText:{type:"array",source:"children",selector:".wp-block-button",default:Object(a.q)("Button")},buttonColor:{type:"string",default:"#2091e1"},buttonTextColor:{type:"string",default:"#ffffff"},size:{type:"string",default:"normal"},cornerButtonRadius:{type:"number",default:4},contentAlign:{type:"string",default:"left"}},edit:c,save:u})},function(e,t){},function(e,t){}]);
dist/blocks.style.build.css CHANGED
@@ -1,18 +1,18 @@
1
  .gutenberg .ugb-editor-label{font-size:12px;text-transform:uppercase;font-weight:600;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;color:#8e979e;padding:2em 0 0;background:#fff;border:none;-webkit-box-shadow:none;box-shadow:none;white-space:nowrap;display:block}.gutenberg .ugb-editor-label:first-child{padding-top:0}[class*="ugb-"] form[class*="-link"],form[class*="ugb-"][class*="-link"],[class*="ugb-"]+form[class*="-link"]{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}
2
  .gutenberg .ugb-editor-label{font-size:12px;text-transform:uppercase;font-weight:600;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;color:#8e979e;padding:2em 0 0;background:#fff;border:none;-webkit-box-shadow:none;box-shadow:none;white-space:nowrap;display:block}.gutenberg .ugb-editor-label:first-child{padding-top:0}[class*="ugb-"] form[class*="-link"],form[class*="ugb-"][class*="-link"],[class*="ugb-"]+form[class*="-link"]{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.wp-block-ugb-divider{border:0;height:1px;width:100%;background-color:transparent;margin-top:2rem;margin-bottom:2rem}.wp-block-ugb-divider hr{background-color:#dddddd;border:0 !important;padding:0 !important}
3
- .gutenberg .ugb-editor-label{font-size:12px;text-transform:uppercase;font-weight:600;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;color:#8e979e;padding:2em 0 0;background:#fff;border:none;-webkit-box-shadow:none;box-shadow:none;white-space:nowrap;display:block}.gutenberg .ugb-editor-label:first-child{padding-top:0}[class*="ugb-"] form[class*="-link"],form[class*="ugb-"][class*="-link"],[class*="ugb-"]+form[class*="-link"]{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.wp-block-button.ugb-button-center{-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%);left:50%;position:relative}span.wp-block-button.ugb-button-right,form.blocks-button__inline-link.ugb-button-right{-webkit-transform:translateX(-100%);-ms-transform:translateX(-100%);transform:translateX(-100%);left:100%;position:relative}form.blocks-button__inline-link.ugb-button-center{margin:0 auto}.wp-ugb-button.wp-ugb-button{border:none;border-radius:4px;-webkit-box-shadow:none !important;box-shadow:none !important;cursor:pointer;display:inline-block;line-height:1em !important;margin:0;text-decoration:none !important;white-space:nowrap;display:inline-block;opacity:1;background:#2091e1;color:#fff;padding:0.75em 1em;-webkit-transition:opacity .2s ease-in-out;-o-transition:opacity .2s ease-in-out;transition:opacity .2s ease-in-out;box-shadow:none !important}.wp-ugb-button.wp-ugb-button:hover{opacity:.85;-webkit-box-shadow:none !important;box-shadow:none !important;border:0}.wp-block-ugb-button .wp-ugb-button:hover{color:white}.wp-block-ugb-button.ugb-button-right{margin:10px 0;text-align:right}.wp-block-ugb-button.ugb-button-center{margin:10px 0;text-align:center}.wp-block-ugb-button.ugb-button-left{margin:10px 0;text-align:left}.ugb-button-small{font-size:.75em}.ugb-button-normal{font-size:1em}.ugb-button-medium{font-size:1.25em}.ugb-button-large{font-size:1.5em}
4
  .gutenberg .ugb-editor-label{font-size:12px;text-transform:uppercase;font-weight:600;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;color:#8e979e;padding:2em 0 0;background:#fff;border:none;-webkit-box-shadow:none;box-shadow:none;white-space:nowrap;display:block}.gutenberg .ugb-editor-label:first-child{padding-top:0}[class*="ugb-"] form[class*="-link"],form[class*="ugb-"][class*="-link"],[class*="ugb-"]+form[class*="-link"]{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.wp-block-ugb-ghost-button.ugb-button-right{margin:10px 0;text-align:right}.wp-block-ugb-ghost-button.ugb-button-center{margin:10px 0;text-align:center}.wp-block-ugb-ghost-button.ugb-button-left{margin:10px 0;text-align:left}.wp-block-button .wp-ugb-button.ugb-ghost-button,.wp-block-ugb-ghost-button .wp-ugb-button.ugb-ghost-button{background-color:transparent;border:2px solid #2091e1;color:#2091e1}.wp-block-button .wp-ugb-button.ugb-ghost-button:hover,.wp-block-ugb-ghost-button .wp-ugb-button.ugb-ghost-button:hover{opacity:.85;-webkit-box-shadow:none !important;box-shadow:none !important;color:#2091e1}
5
  .gutenberg .ugb-editor-label{font-size:12px;text-transform:uppercase;font-weight:600;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;color:#8e979e;padding:2em 0 0;background:#fff;border:none;-webkit-box-shadow:none;box-shadow:none;white-space:nowrap;display:block}.gutenberg .ugb-editor-label:first-child{padding-top:0}[class*="ugb-"] form[class*="-link"],form[class*="ugb-"][class*="-link"],[class*="ugb-"]+form[class*="-link"]{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.wp-block-ugb-notification{position:relative}.wp-ugb-notif{border-radius:4px;padding:1.3em 1.5em;color:#ffffff}.notif-success{background-color:#40ba7b}.notif-error{background-color:#d9534f}.notif-warning{background-color:#ffdd57;color:#424242}.notif-info{background-color:#2091e1}.ugb-notification,.wp-block-ugb-notification{position:relative}.ugb-notification .close-button,.wp-block-ugb-notification .close-button{position:absolute;right:0;z-index:2;margin-right:1.5rem;margin-top:1.3rem;font-size:8px;padding-top:.3rem;cursor:pointer}.ugb-notification .close-button svg,.wp-block-ugb-notification .close-button svg{width:13px;height:auto}.ugb-notification.dismissible-true .wp-ugb-notif{padding-right:4rem}.ugb-notification.type-success svg,.ugb-notification.type-error svg,.ugb-notification.type-info svg{fill:#ffffff}.ugb-notification.type-warning svg{fill:#424242}.ugb-notification.dismissible-true[data-uid]{display:none}
6
  .gutenberg .ugb-editor-label{font-size:12px;text-transform:uppercase;font-weight:600;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;color:#8e979e;padding:2em 0 0;background:#fff;border:none;-webkit-box-shadow:none;box-shadow:none;white-space:nowrap;display:block}.gutenberg .ugb-editor-label:first-child{padding-top:0}[class*="ugb-"] form[class*="-link"],form[class*="ugb-"][class*="-link"],[class*="ugb-"]+form[class*="-link"]{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.ugb-blockquote{border:0;border-left:8px solid #2091e1;padding:1rem 2rem;margin:1rem 2rem;opacity:.5;font-style:italic;text-align:inherit;background:transparent}.ugb-blockquote p{margin:0}.ugb-blockquote:after,.ugb-blockquote:before,.ugb-blockquote p:after,.ugb-blockquote p:before{display:none}
7
  .gutenberg .ugb-editor-label{font-size:12px;text-transform:uppercase;font-weight:600;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;color:#8e979e;padding:2em 0 0;background:#fff;border:none;-webkit-box-shadow:none;box-shadow:none;white-space:nowrap;display:block}.gutenberg .ugb-editor-label:first-child{padding-top:0}[class*="ugb-"] form[class*="-link"],form[class*="ugb-"][class*="-link"],[class*="ugb-"]+form[class*="-link"]{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}blockquote.ugb-pullquote{border-top:8px solid #2091e1;border-bottom:8px solid #2091e1;border-left:none !important;border-right:none !important;text-align:center;padding:2rem;margin:1rem 0;opacity:.5;color:#2091e1;font-size:1.5em;font-style:normal}blockquote.ugb-pullquote p{margin:0;text-align:center}blockquote.ugb-pullquote:after,blockquote.ugb-pullquote:before,blockquote.ugb-pullquote p:after,blockquote.ugb-pullquote p:before{display:none}
8
- .gutenberg .ugb-editor-label{font-size:12px;text-transform:uppercase;font-weight:600;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;color:#8e979e;padding:2em 0 0;background:#fff;border:none;-webkit-box-shadow:none;box-shadow:none;white-space:nowrap;display:block}.gutenberg .ugb-editor-label:first-child{padding-top:0}[class*="ugb-"] form[class*="-link"],form[class*="ugb-"][class*="-link"],[class*="ugb-"]+form[class*="-link"]{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}div.ugb-cta{text-align:center;padding:4rem 2rem;background-color:#f4f4f4}div.ugb-cta .ugb-cta-title{margin:0 0 1rem !important}div.ugb-cta .ugb-cta-bodyText{opacity:.5;margin:0 0 1.5rem}div.ugb-cta .ugb-cta-button{margin:0}div.ugb-cta .blocks-button__inline-link{margin:0 auto}div.ugb-cta p{text-align:center}.wp-block-ugb-button .wp-ugb-button:hover{color:white}
9
- .gutenberg .ugb-editor-label{font-size:12px;text-transform:uppercase;font-weight:600;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;color:#8e979e;padding:2em 0 0;background:#fff;border:none;-webkit-box-shadow:none;box-shadow:none;white-space:nowrap;display:block}.gutenberg .ugb-editor-label:first-child{padding-top:0}[class*="ugb-"] form[class*="-link"],form[class*="ugb-"][class*="-link"],[class*="ugb-"]+form[class*="-link"]{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.ugb-testimonial{display:-ms-flexbox;display:flex}.ugb-testimonial .testimonial-image{height:75px;width:75px;background-size:cover;background-position:center;border-radius:100%;margin:0 auto 1.3rem}.ugb-testimonial .quote-icon{height:75px;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.ugb-testimonial .quote-icon svg{height:50px;width:auto;fill:#e6e6e6}.ugb-testimonial>div{text-align:center;padding:1rem 0;margin:0 auto}.ugb-testimonial>div p{text-align:center}.ugb-testimonial h4{margin:0 0 .5rem !important}.ugb-testimonial .ugb-testimonial-position,.ugb-testimonial .ugb-testimonial-position-two,.ugb-testimonial .ugb-testimonial-position-three{opacity:.3;font-size:.75em;margin:0 0 1rem;text-transform:uppercase}.ugb-testimonial .ugb-testimonial-body,.ugb-testimonial .ugb-testimonial-body-two,.ugb-testimonial .ugb-testimonial-body-three{opacity:.5;margin:0 0 1rem;left:0}.ugb-testimonial.column-1 .ugb-testimonial-column-two,.ugb-testimonial.column-1 .ugb-testimonial-column-three{display:none}.ugb-testimonial.column-2 .ugb-testimonial-column-one{margin-right:1rem}.ugb-testimonial.column-2 .ugb-testimonial-column-two{margin-left:1rem}.ugb-testimonial.column-2>div{width:50%}.ugb-testimonial.column-2 .ugb-testimonial-column-three{display:none}.ugb-testimonial.column-3>div{width:33.2%;margin-left:1rem;margin-right:1rem}.ugb-testimonial.column-3>div:first-child{margin-left:0}.ugb-testimonial.column-3>div:last-child{margin-right:0}@media screen and (max-width: 800px){.ugb-testimonial.column-3.column-3{display:block}.ugb-testimonial.column-3.column-3>div{width:100%;margin:0}}@media screen and (max-width: 600px){.ugb-testimonial.column-2.column-2{display:block}.ugb-testimonial.column-2.column-2>div{width:100%;margin:0}}
10
- .gutenberg .ugb-editor-label{font-size:12px;text-transform:uppercase;font-weight:600;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;color:#8e979e;padding:2em 0 0;background:#fff;border:none;-webkit-box-shadow:none;box-shadow:none;white-space:nowrap;display:block}.gutenberg .ugb-editor-label:first-child{padding-top:0}[class*="ugb-"] form[class*="-link"],form[class*="ugb-"][class*="-link"],[class*="ugb-"]+form[class*="-link"]{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.ugb-team-member .team-member-image{width:300px;height:300px;background-size:cover;background-position:center;margin:0 auto 1.3rem}.ugb-team-member.image-circle .team-member-image{border-radius:100%}.ugb-team-member.column-2 .team-member-image{width:220px;height:220px}.ugb-team-member.column-3 .team-member-image{width:150px;height:150px}.ugb-team-member>div{text-align:center;padding:1rem 0}.ugb-team-member>div p{text-align:center}.ugb-team-member h4{margin:0 0 .5rem !important}.ugb-team-member .ugb-team-member-position{margin:0 0 1rem}.ugb-team-member .ugb-team-member-position{opacity:.3;font-size:.75em;text-transform:uppercase}.ugb-team-member .ugb-team-member-des,.ugb-team-member .ugb-team-member-des-two,.ugb-team-member .ugb-team-member-des-three{opacity:.5;margin:0 0 1rem;left:0}.ugb-team-member.column-1 .ugb-team-member-column-two,.ugb-team-member.column-1 .ugb-team-member-column-three{display:none}.ugb-team-member.column-2{display:-ms-flexbox;display:flex}.ugb-team-member.column-2 .ugb-team-member-column-one{padding-right:1rem}.ugb-team-member.column-2 .ugb-team-member-column-two{padding-left:1rem}.ugb-team-member.column-2 .ugb-team-member-column-one,.ugb-team-member.column-2 .ugb-team-member-column-two{width:50%}.ugb-team-member.column-2 .ugb-team-member-column-three{display:none}.ugb-team-member.column-2 .team-member-image img{height:200px;width:250px}.ugb-team-member.column-3{display:-ms-flexbox;display:flex}.ugb-team-member.column-3 .ugb-team-member-column-one,.ugb-team-member.column-3 .ugb-team-member-column-two,.ugb-team-member.column-3 .ugb-team-member-column-three{width:33.33%}.ugb-team-member.column-3 .ugb-team-member-column-one{padding-right:1rem}.ugb-team-member.column-3 .ugb-team-member-column-two{padding-left:1rem;padding-right:1rem}.ugb-team-member.column-3 .ugb-team-member-column-three{padding-left:1rem}.ugb-team-member.column-3 .team-member-image img{height:200px;width:200px}.team-member-social a{color:#000000;opacity:.30;padding:0 3px}
11
  .gutenberg .ugb-editor-label{font-size:12px;text-transform:uppercase;font-weight:600;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;color:#8e979e;padding:2em 0 0;background:#fff;border:none;-webkit-box-shadow:none;box-shadow:none;white-space:nowrap;display:block}.gutenberg .ugb-editor-label:first-child{padding-top:0}[class*="ugb-"] form[class*="-link"],form[class*="ugb-"][class*="-link"],[class*="ugb-"]+form[class*="-link"]{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.wp-block-ugb-expand p:last-child{margin-bottom:0}.wp-block-ugb-expand.ugb-more .ugb-expand-less-text,.wp-block-ugb-expand.ugb-more .ugb-expand-more{display:none}.wp-block-ugb-expand.ugb-more .ugb-expand-more-text,.wp-block-ugb-expand.ugb-more .ugb-expand-less{display:inline !important}
12
- .gutenberg .ugb-editor-label{font-size:12px;text-transform:uppercase;font-weight:600;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;color:#8e979e;padding:2em 0 0;background:#fff;border:none;-webkit-box-shadow:none;box-shadow:none;white-space:nowrap;display:block}.gutenberg .ugb-editor-label:first-child{padding-top:0}[class*="ugb-"] form[class*="-link"],form[class*="ugb-"][class*="-link"],[class*="ugb-"]+form[class*="-link"]{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.ugb-number-box{display:-ms-flexbox;display:flex;margin:1rem 0}.ugb-number-box span,.ugb-number-box .blocks-rich-text span{background-color:#ddd;border-radius:100%;font-size:3em;display:block;padding:0;text-align:center;overflow:hidden;margin:0 auto;height:2.5em;width:2.5em;line-height:2.5em !important}.ugb-number-box>div{text-align:center;margin:0 auto}.ugb-number-box>div p{text-align:center}.ugb-number-box .ugb-number-box-name,.ugb-number-box .ugb-number-box-name-two,.ugb-number-box .ugb-number-box-name-three{margin:1.3rem 0 1rem}.ugb-number-box .ugb-number-box-body,.ugb-number-box .ugb-number-box-body-two,.ugb-number-box .ugb-number-box-body-three{opacity:.5;margin:0 0 1rem;left:0}.ugb-number-box.column-1 .ugb-number-box-column-two,.ugb-number-box.column-1 .ugb-number-box-column-three{display:none}.ugb-number-box.column-2 .ugb-number-box-column-one{margin-right:1rem}.ugb-number-box.column-2 .ugb-number-box-column-two{margin-left:1rem}.ugb-number-box.column-2>div{width:50%}.ugb-number-box.column-2 .ugb-number-box-column-three{display:none}.ugb-number-box.column-3>div{width:33.2%;margin-left:1rem;margin-right:1rem}.ugb-number-box.column-3>div:first-child{margin-left:0}.ugb-number-box.column-3>div:last-child{margin-right:0}@media screen and (max-width: 800px){.ugb-number-box.column-3.column-3{display:block}.ugb-number-box.column-3.column-3>div{width:100%;margin:0}}@media screen and (max-width: 600px){.ugb-number-box.column-2.column-2{display:block}.ugb-number-box.column-2.column-2>div{width:100%;margin:0}}
13
  .gutenberg .ugb-editor-label{font-size:12px;text-transform:uppercase;font-weight:600;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;color:#8e979e;padding:2em 0 0;background:#fff;border:none;-webkit-box-shadow:none;box-shadow:none;white-space:nowrap;display:block}.gutenberg .ugb-editor-label:first-child{padding-top:0}[class*="ugb-"] form[class*="-link"],form[class*="ugb-"][class*="-link"],[class*="ugb-"]+form[class*="-link"]{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.ugb-pricing-box{display:-ms-flexbox;display:flex;margin-top:2rem;margin-bottom:2rem}.ugb-pricing-box>div{text-align:center;margin:0 auto}.ugb-pricing-box>div p{text-align:center;padding-bottom:0}.ugb-pricing-box h3{margin:0 0 2rem !important;line-height:100% !important}.ugb-pricing-box .ugb-pricing-box-pricing{font-size:3.5em;margin:0 0 .5rem;line-height:100% !important}.ugb-pricing-box .ugb-pricing-box-per-month-label{font-size:.75em;opacity:.3;margin:0 0 2rem;text-transform:uppercase;line-height:100% !important}.ugb-pricing-box .wp-ugb-button{margin-bottom:2rem}.ugb-pricing-box .ugb-pricing-box-feature-list{opacity:.5;font-size:1em;line-height:1.8em !important;width:40%;margin:0 auto}.blocks-button__inline-link.pricing-box{margin:5px auto 0px auto}.ugb-pricing-box.column-1 .ugb-pricing-box-column-two,.ugb-pricing-box.column-1 .ugb-pricing-box-column-three{display:none}.ugb-pricing-box.column-2 .ugb-pricing-box-feature-list{width:85%;margin:0 auto}.ugb-pricing-box.column-2 .ugb-pricing-box-column-one{margin-right:2rem}.ugb-pricing-box.column-2 .ugb-pricing-box-column-two{border-left:1px solid #eee;margin-left:0;padding-left:2rem}.ugb-pricing-box.column-2>div{width:50%}.ugb-pricing-box.column-2 .ugb-pricing-box-column-three{display:none}.ugb-pricing-box.column-2 .blocks-button__inline-link{width:225px}.ugb-pricing-box.column-3>div{width:33.2%;margin-left:1rem;margin-right:1rem}.ugb-pricing-box.column-3>div:first-child{margin-left:0}.ugb-pricing-box.column-3>div:last-child{margin-right:0}.ugb-pricing-box.column-3 .ugb-pricing-box-column-two{border-left:1px solid #eee;border-right:1px solid #eee;margin-left:0;margin-right:0;padding-left:1rem;padding-right:1rem}.ugb-pricing-box.column-3 .ugb-pricing-box-feature-list{width:100%}.ugb-pricing-box.column-3 .blocks-button__inline-link{width:181px}.ugb-pricing-box.column-3 .blocks-button__inline-link .blocks-url-input{width:50%}@media screen and (max-width: 800px){.ugb-pricing-box.column-3.column-3{display:block}.ugb-pricing-box.column-3.column-3>div{width:100%;margin:0}}@media screen and (max-width: 600px){.ugb-pricing-box.column-2.column-2{display:block}.ugb-pricing-box.column-2.column-2>div{width:100%;margin:0}}
14
  .gutenberg .ugb-editor-label{font-size:12px;text-transform:uppercase;font-weight:600;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;color:#8e979e;padding:2em 0 0;background:#fff;border:none;-webkit-box-shadow:none;box-shadow:none;white-space:nowrap;display:block}.gutenberg .ugb-editor-label:first-child{padding-top:0}[class*="ugb-"] form[class*="-link"],form[class*="ugb-"][class*="-link"],[class*="ugb-"]+form[class*="-link"]{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.ugb-header.has-image{padding:0}.ugb-header.has-image .ugb-header-section{padding:9.5rem 4rem;background-size:cover;background-repeat:no-repeat;background-position:center}.ugb-header{text-align:center;padding:9.5rem 4rem;position:relative}.ugb-header .ugb-header-overlay{position:absolute;top:0;left:0;right:0;bottom:0}.ugb-header .header-image{height:400px;width:600px;background-size:cover;background-repeat:no-repeat;background-position:center}.ugb-header .wp-block-button.ugb-button-center{left:0;-webkit-transform:translateX(0);-ms-transform:translateX(0);transform:translateX(0);margin-bottom:1.5em}.ugb-header .wp-block-button.ugb-button-right{-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%);left:50%;margin-bottom:1.5em}.ugb-header .wp-block-button.ugb-button-left{-webkit-transform:translateX(50%);-ms-transform:translateX(50%);transform:translateX(50%);left:-50%;margin-bottom:1.5em}.ugb-header .ugb-header-title{margin-bottom:1rem;padding-bottom:0;margin-top:0;position:relative}.ugb-header .ugb-header-subtitle{margin-bottom:2rem;padding-bottom:0;position:relative}.ugb-header button.components-button{margin-bottom:.5em;position:relative}.ugb-header .wp-ugb-button{position:relative}.ugb-header-overlay.overlay-opacity.overlay-opacity-1{opacity:.1}.ugb-header-overlay.overlay-opacity.overlay-opacity-2{opacity:.2}.ugb-header-overlay.overlay-opacity.overlay-opacity-3{opacity:.3}.ugb-header-overlay.overlay-opacity.overlay-opacity-4{opacity:.4}.ugb-header-overlay.overlay-opacity.overlay-opacity-5{opacity:.5}.ugb-header-overlay.overlay-opacity.overlay-opacity-6{opacity:.6}.ugb-header-overlay.overlay-opacity.overlay-opacity-7{opacity:.7}.ugb-header-overlay.overlay-opacity.overlay-opacity-8{opacity:.8}.ugb-header-overlay.overlay-opacity.overlay-opacity-9{opacity:.9}.ugb-header-overlay.overlay-opacity.overlay-opacity-10{opacity:1}.wp-block-ugb-header.has-no-content{display:none}
15
  .gutenberg .ugb-editor-label{font-size:12px;text-transform:uppercase;font-weight:600;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;color:#8e979e;padding:2em 0 0;background:#fff;border:none;-webkit-box-shadow:none;box-shadow:none;white-space:nowrap;display:block}.gutenberg .ugb-editor-label:first-child{padding-top:0}[class*="ugb-"] form[class*="-link"],form[class*="ugb-"][class*="-link"],[class*="ugb-"]+form[class*="-link"]{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.ugb-image-box{background-size:cover;background-position:center;padding:2rem;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;margin:0 auto;position:relative;background-color:#999}.ugb-image-box *{-webkit-transition:all .4s ease-in-out !important;-o-transition:all .4s ease-in-out !important;transition:all .4s ease-in-out !important;border:0 !important;-webkit-box-shadow:none !important;box-shadow:none !important}.ugb-image-box button.components-button{z-index:3;margin-bottom:1em}.ugb-image-box a{position:absolute;z-index:2;top:0;left:0;right:0;bottom:0;opacity:0;pointer-events:none}.ugb-image-box h4,.ugb-image-box p{z-index:3}.ugb-image-box h4{margin:0 0 0.5em !important}.ugb-image-box p{margin:0 !important;opacity:0;-webkit-transform:translateY(-15px);-ms-transform:translateY(-15px);transform:translateY(-15px)}.ugb-image-box:hover a{opacity:.7}.ugb-image-box:hover p{opacity:1;-webkit-transform:translateY(0);-ms-transform:translateY(0);transform:translateY(0)}.ugb-image-box.full-width{width:100% !important}.wp-block-ugb-image-box.has-no-content{display:none}
16
  .gutenberg .ugb-editor-label{font-size:12px;text-transform:uppercase;font-weight:600;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;color:#8e979e;padding:2em 0 0;background:#fff;border:none;-webkit-box-shadow:none;box-shadow:none;white-space:nowrap;display:block}.gutenberg .ugb-editor-label:first-child{padding-top:0}[class*="ugb-"] form[class*="-link"],form[class*="ugb-"][class*="-link"],[class*="ugb-"]+form[class*="-link"]{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.ugb-countup{text-align:center;margin-bottom:1em}.ugb-countup h4,.ugb-countup div,.ugb-countup p{margin:0 !important;line-height:1em}.ugb-countup h4{margin-bottom:1em !important}.ugb-countup p{margin-top:1em !important}.ugb-countup .ugb-countup-hide{visibility:hidden}
17
- .gutenberg .ugb-editor-label{font-size:12px;text-transform:uppercase;font-weight:600;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;color:#8e979e;padding:2em 0 0;background:#fff;border:none;-webkit-box-shadow:none;box-shadow:none;white-space:nowrap;display:block}.gutenberg .ugb-editor-label:first-child{padding-top:0}[class*="ugb-"] form[class*="-link"],form[class*="ugb-"][class*="-link"],[class*="ugb-"]+form[class*="-link"]{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.video-popup-image{height:220px;width:220px;background-position:center;background-size:cover;margin-bottom:10px}.ugb-video-popup{position:relative;margin:0 auto;width:100%;max-width:600px}.ugb-video-popup .ugb-video-preview,.ugb-video-popup a,.ugb-video-popup .ugb-video-overlay,.ugb-video-popup .ugb-play-button{position:absolute;top:0;left:0;right:0;bottom:0}.ugb-video-popup .ugb-video-preview{background-size:cover;background-position:center;opacity:.4;-webkit-transition:all .3s ease-in-out;-o-transition:all .3s ease-in-out;transition:all .3s ease-in-out;z-index:1}.ugb-video-popup:hover .ugb-video-preview{opacity:.5}.ugb-video-popup .ugb-video-wrapper{position:relative;width:100%;padding-bottom:56.25%;border:0 !important;-webkit-box-shadow:none !important;box-shadow:none !important}.ugb-video-popup a,.ugb-video-popup .ugb-video-overlay{z-index:3;-webkit-box-shadow:none !important;box-shadow:none !important;background:transparent !important;display:block !important}.ugb-video-popup .ugb-play-button{z-index:2;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;-ms-flex-direction:column;flex-direction:column}.ugb-video-popup svg{fill:#fff !important}.ugb-video-popup button.components-button.button{position:absolute;z-index:4;left:50%;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%);top:30%}.ugb-video-popup button.components-button.button:active{-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%)}
18
  .gutenberg .ugb-editor-label{font-size:12px;text-transform:uppercase;font-weight:600;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;color:#8e979e;padding:2em 0 0;background:#fff;border:none;-webkit-box-shadow:none;box-shadow:none;white-space:nowrap;display:block}.gutenberg .ugb-editor-label:first-child{padding-top:0}[class*="ugb-"] form[class*="-link"],form[class*="ugb-"][class*="-link"],[class*="ugb-"]+form[class*="-link"]{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.ugb-card{border-radius:4px;-webkit-box-shadow:0 0 5px rgba(0,0,0,0.1);box-shadow:0 0 5px rgba(0,0,0,0.1);margin:30px 0;padding-bottom:30px}.ugb-card:not(.has-image){padding-top:30px}.ugb-card.has-image .ugb-card-image-container{height:300px;width:100%;margin:0 auto 20px;background-size:cover;background-position:center;border-top-right-radius:4px;border-top-left-radius:4px;padding-top:0px}.ugb-card>*:first-child{margin-top:0 !important}.ugb-card>*:last-child{margin-bottom:0 !important}.ugb-card>h4,.ugb-card>*{margin:0 30px .5rem !important}.ugb-card .wp-ugb-button{margin-top:1rem !important}.ugb-card .ugb-card-image-container{margin:0 0 20px !important}.ugb-card .ugb-tagline{opacity:.7}.ugb-card .wp-block-button.ugb-button-center{margin-left:0 !important;margin-right:0 !important}.ugb-card .wp-block-button.ugb-button-right{-webkit-transform:translateX(-100%) translateX(-60px);-ms-transform:translateX(-100%) translateX(-60px);transform:translateX(-100%) translateX(-60px)}
1
  .gutenberg .ugb-editor-label{font-size:12px;text-transform:uppercase;font-weight:600;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;color:#8e979e;padding:2em 0 0;background:#fff;border:none;-webkit-box-shadow:none;box-shadow:none;white-space:nowrap;display:block}.gutenberg .ugb-editor-label:first-child{padding-top:0}[class*="ugb-"] form[class*="-link"],form[class*="ugb-"][class*="-link"],[class*="ugb-"]+form[class*="-link"]{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}
2
  .gutenberg .ugb-editor-label{font-size:12px;text-transform:uppercase;font-weight:600;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;color:#8e979e;padding:2em 0 0;background:#fff;border:none;-webkit-box-shadow:none;box-shadow:none;white-space:nowrap;display:block}.gutenberg .ugb-editor-label:first-child{padding-top:0}[class*="ugb-"] form[class*="-link"],form[class*="ugb-"][class*="-link"],[class*="ugb-"]+form[class*="-link"]{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.wp-block-ugb-divider{border:0;height:1px;width:100%;background-color:transparent;margin-top:2rem;margin-bottom:2rem}.wp-block-ugb-divider hr{background-color:#dddddd;border:0 !important;padding:0 !important}
3
+ .gutenberg .ugb-editor-label{font-size:12px;text-transform:uppercase;font-weight:600;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;color:#8e979e;padding:2em 0 0;background:#fff;border:none;-webkit-box-shadow:none;box-shadow:none;white-space:nowrap;display:block}.gutenberg .ugb-editor-label:first-child{padding-top:0}[class*="ugb-"] form[class*="-link"],form[class*="ugb-"][class*="-link"],[class*="ugb-"]+form[class*="-link"]{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.wp-block-button.ugb-button-center{-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%);left:50%;position:relative}span.wp-block-button.ugb-button-right{-webkit-transform:translateX(-100%);-ms-transform:translateX(-100%);transform:translateX(-100%);left:100%;position:relative}form.blocks-button__inline-link{margin:1rem auto 0 auto}form.blocks-button__inline-link>div.editor-url-input{-ms-flex-positive:0;flex-grow:0;width:auto;margin-left:8px}.wp-ugb-button.wp-ugb-button{border:none;border-radius:4px;-webkit-box-shadow:none !important;box-shadow:none !important;cursor:pointer;display:inline-block;line-height:1em !important;margin:0;text-decoration:none !important;white-space:nowrap;display:inline-block;opacity:1;background:#2091e1;color:#fff;padding:0.75em 1em;-webkit-transition:opacity .2s ease-in-out;-o-transition:opacity .2s ease-in-out;transition:opacity .2s ease-in-out;box-shadow:none !important}.wp-ugb-button.wp-ugb-button:hover{opacity:.85;-webkit-box-shadow:none !important;box-shadow:none !important;border:0}.wp-block-ugb-button .wp-ugb-button:hover{color:white}.wp-block-ugb-button.ugb-button-right{margin:10px 0;text-align:right}.wp-block-ugb-button.ugb-button-center{margin:10px 0;text-align:center}.wp-block-ugb-button.ugb-button-left{margin:10px 0;text-align:left}.ugb-button-small{font-size:.75em}.ugb-button-normal{font-size:1em}.ugb-button-medium{font-size:1.25em}.ugb-button-large{font-size:1.5em}
4
  .gutenberg .ugb-editor-label{font-size:12px;text-transform:uppercase;font-weight:600;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;color:#8e979e;padding:2em 0 0;background:#fff;border:none;-webkit-box-shadow:none;box-shadow:none;white-space:nowrap;display:block}.gutenberg .ugb-editor-label:first-child{padding-top:0}[class*="ugb-"] form[class*="-link"],form[class*="ugb-"][class*="-link"],[class*="ugb-"]+form[class*="-link"]{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.wp-block-ugb-ghost-button.ugb-button-right{margin:10px 0;text-align:right}.wp-block-ugb-ghost-button.ugb-button-center{margin:10px 0;text-align:center}.wp-block-ugb-ghost-button.ugb-button-left{margin:10px 0;text-align:left}.wp-block-button .wp-ugb-button.ugb-ghost-button,.wp-block-ugb-ghost-button .wp-ugb-button.ugb-ghost-button{background-color:transparent;border:2px solid #2091e1;color:#2091e1}.wp-block-button .wp-ugb-button.ugb-ghost-button:hover,.wp-block-ugb-ghost-button .wp-ugb-button.ugb-ghost-button:hover{opacity:.85;-webkit-box-shadow:none !important;box-shadow:none !important;color:#2091e1}
5
  .gutenberg .ugb-editor-label{font-size:12px;text-transform:uppercase;font-weight:600;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;color:#8e979e;padding:2em 0 0;background:#fff;border:none;-webkit-box-shadow:none;box-shadow:none;white-space:nowrap;display:block}.gutenberg .ugb-editor-label:first-child{padding-top:0}[class*="ugb-"] form[class*="-link"],form[class*="ugb-"][class*="-link"],[class*="ugb-"]+form[class*="-link"]{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.wp-block-ugb-notification{position:relative}.wp-ugb-notif{border-radius:4px;padding:1.3em 1.5em;color:#ffffff}.notif-success{background-color:#40ba7b}.notif-error{background-color:#d9534f}.notif-warning{background-color:#ffdd57;color:#424242}.notif-info{background-color:#2091e1}.ugb-notification,.wp-block-ugb-notification{position:relative}.ugb-notification .close-button,.wp-block-ugb-notification .close-button{position:absolute;right:0;z-index:2;margin-right:1.5rem;margin-top:1.3rem;font-size:8px;padding-top:.3rem;cursor:pointer}.ugb-notification .close-button svg,.wp-block-ugb-notification .close-button svg{width:13px;height:auto}.ugb-notification.dismissible-true .wp-ugb-notif{padding-right:4rem}.ugb-notification.type-success svg,.ugb-notification.type-error svg,.ugb-notification.type-info svg{fill:#ffffff}.ugb-notification.type-warning svg{fill:#424242}.ugb-notification.dismissible-true[data-uid]{display:none}
6
  .gutenberg .ugb-editor-label{font-size:12px;text-transform:uppercase;font-weight:600;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;color:#8e979e;padding:2em 0 0;background:#fff;border:none;-webkit-box-shadow:none;box-shadow:none;white-space:nowrap;display:block}.gutenberg .ugb-editor-label:first-child{padding-top:0}[class*="ugb-"] form[class*="-link"],form[class*="ugb-"][class*="-link"],[class*="ugb-"]+form[class*="-link"]{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.ugb-blockquote{border:0;border-left:8px solid #2091e1;padding:1rem 2rem;margin:1rem 2rem;opacity:.5;font-style:italic;text-align:inherit;background:transparent}.ugb-blockquote p{margin:0}.ugb-blockquote:after,.ugb-blockquote:before,.ugb-blockquote p:after,.ugb-blockquote p:before{display:none}
7
  .gutenberg .ugb-editor-label{font-size:12px;text-transform:uppercase;font-weight:600;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;color:#8e979e;padding:2em 0 0;background:#fff;border:none;-webkit-box-shadow:none;box-shadow:none;white-space:nowrap;display:block}.gutenberg .ugb-editor-label:first-child{padding-top:0}[class*="ugb-"] form[class*="-link"],form[class*="ugb-"][class*="-link"],[class*="ugb-"]+form[class*="-link"]{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}blockquote.ugb-pullquote{border-top:8px solid #2091e1;border-bottom:8px solid #2091e1;border-left:none !important;border-right:none !important;text-align:center;padding:2rem;margin:1rem 0;opacity:.5;color:#2091e1;font-size:1.5em;font-style:normal}blockquote.ugb-pullquote p{margin:0;text-align:center}blockquote.ugb-pullquote:after,blockquote.ugb-pullquote:before,blockquote.ugb-pullquote p:after,blockquote.ugb-pullquote p:before{display:none}
8
+ .gutenberg .ugb-editor-label{font-size:12px;text-transform:uppercase;font-weight:600;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;color:#8e979e;padding:2em 0 0;background:#fff;border:none;-webkit-box-shadow:none;box-shadow:none;white-space:nowrap;display:block}.gutenberg .ugb-editor-label:first-child{padding-top:0}[class*="ugb-"] form[class*="-link"],form[class*="ugb-"][class*="-link"],[class*="ugb-"]+form[class*="-link"]{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}div.ugb-cta{text-align:center;padding:4rem 2rem;background-color:#f4f4f4}div.ugb-cta .ugb-cta-title{margin:0 0 1rem !important}div.ugb-cta .ugb-cta-bodyText{opacity:.5;margin:0 0 1.5rem}div.ugb-cta .ugb-cta-button{margin:0}div.ugb-cta p{text-align:center}.wp-block-ugb-button .wp-ugb-button:hover{color:white}
9
+ .gutenberg .ugb-editor-label{font-size:12px;text-transform:uppercase;font-weight:600;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;color:#8e979e;padding:2em 0 0;background:#fff;border:none;-webkit-box-shadow:none;box-shadow:none;white-space:nowrap;display:block}.gutenberg .ugb-editor-label:first-child{padding-top:0}[class*="ugb-"] form[class*="-link"],form[class*="ugb-"][class*="-link"],[class*="ugb-"]+form[class*="-link"]{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.ugb-testimonial{display:-ms-flexbox;display:flex}.ugb-testimonial .testimonial-image{height:75px;width:75px;background-size:cover;background-position:center;border-radius:100%;margin:0 auto 1.3rem}.ugb-testimonial .quote-icon{height:75px;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.ugb-testimonial .quote-icon svg{height:50px;width:auto;fill:#e6e6e6}.ugb-testimonial>div{text-align:center;padding:1rem 0;margin:0 auto}.ugb-testimonial>div p{text-align:center}.ugb-testimonial h4{margin:0 0 .5rem !important;padding-top:0}.ugb-testimonial .ugb-testimonial-position,.ugb-testimonial .ugb-testimonial-position-two,.ugb-testimonial .ugb-testimonial-position-three{opacity:.3;font-size:.75em;margin:0 0 1rem;text-transform:uppercase}.ugb-testimonial .ugb-testimonial-body,.ugb-testimonial .ugb-testimonial-body-two,.ugb-testimonial .ugb-testimonial-body-three{opacity:.5;margin:0 0 1rem;left:0}.ugb-testimonial.column-1 .ugb-testimonial-column-two,.ugb-testimonial.column-1 .ugb-testimonial-column-three{display:none}.ugb-testimonial.column-2 .ugb-testimonial-column-one{margin-right:1rem}.ugb-testimonial.column-2 .ugb-testimonial-column-two{margin-left:1rem}.ugb-testimonial.column-2>div{width:50%}.ugb-testimonial.column-2 .ugb-testimonial-column-three{display:none}.ugb-testimonial.column-3>div{width:33.2%;margin-left:1rem;margin-right:1rem}.ugb-testimonial.column-3>div:first-child{margin-left:0}.ugb-testimonial.column-3>div:last-child{margin-right:0}@media screen and (max-width: 800px){.ugb-testimonial.column-3.column-3{display:block}.ugb-testimonial.column-3.column-3>div{width:100%;margin:0}}@media screen and (max-width: 600px){.ugb-testimonial.column-2.column-2{display:block}.ugb-testimonial.column-2.column-2>div{width:100%;margin:0}}
10
+ .gutenberg .ugb-editor-label{font-size:12px;text-transform:uppercase;font-weight:600;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;color:#8e979e;padding:2em 0 0;background:#fff;border:none;-webkit-box-shadow:none;box-shadow:none;white-space:nowrap;display:block}.gutenberg .ugb-editor-label:first-child{padding-top:0}[class*="ugb-"] form[class*="-link"],form[class*="ugb-"][class*="-link"],[class*="ugb-"]+form[class*="-link"]{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.ugb-team-member .team-member-image{width:300px;height:300px;background-size:cover;background-position:center;margin:0 auto 1.3rem}.ugb-team-member.image-circle .team-member-image{border-radius:100%}.ugb-team-member.column-2 .team-member-image{width:220px;height:220px}.ugb-team-member.column-3 .team-member-image{width:150px;height:150px}.ugb-team-member>div{text-align:center;padding:1rem 0}.ugb-team-member>div p{text-align:center}.ugb-team-member h4{margin:0 0 .5rem !important;padding-top:0}.ugb-team-member .ugb-team-member-position{margin:0 0 1rem}.ugb-team-member .ugb-team-member-position{opacity:.3;font-size:.75em;text-transform:uppercase}.ugb-team-member .ugb-team-member-des,.ugb-team-member .ugb-team-member-des-two,.ugb-team-member .ugb-team-member-des-three{opacity:.5;margin:0 0 1rem;left:0}.ugb-team-member.column-1 .ugb-team-member-column-two,.ugb-team-member.column-1 .ugb-team-member-column-three{display:none}.ugb-team-member.column-2{display:-ms-flexbox;display:flex}.ugb-team-member.column-2 .ugb-team-member-column-one{padding-right:1rem}.ugb-team-member.column-2 .ugb-team-member-column-two{padding-left:1rem}.ugb-team-member.column-2 .ugb-team-member-column-one,.ugb-team-member.column-2 .ugb-team-member-column-two{width:50%}.ugb-team-member.column-2 .ugb-team-member-column-three{display:none}.ugb-team-member.column-2 .team-member-image img{height:200px;width:250px}.ugb-team-member.column-3{display:-ms-flexbox;display:flex}.ugb-team-member.column-3 .ugb-team-member-column-one,.ugb-team-member.column-3 .ugb-team-member-column-two,.ugb-team-member.column-3 .ugb-team-member-column-three{width:33.33%}.ugb-team-member.column-3 .ugb-team-member-column-one{padding-right:1rem}.ugb-team-member.column-3 .ugb-team-member-column-two{padding-left:1rem;padding-right:1rem}.ugb-team-member.column-3 .ugb-team-member-column-three{padding-left:1rem}.ugb-team-member.column-3 .team-member-image img{height:200px;width:200px}.team-member-social a{color:#000000;opacity:.30;padding:0 3px}
11
  .gutenberg .ugb-editor-label{font-size:12px;text-transform:uppercase;font-weight:600;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;color:#8e979e;padding:2em 0 0;background:#fff;border:none;-webkit-box-shadow:none;box-shadow:none;white-space:nowrap;display:block}.gutenberg .ugb-editor-label:first-child{padding-top:0}[class*="ugb-"] form[class*="-link"],form[class*="ugb-"][class*="-link"],[class*="ugb-"]+form[class*="-link"]{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.wp-block-ugb-expand p:last-child{margin-bottom:0}.wp-block-ugb-expand.ugb-more .ugb-expand-less-text,.wp-block-ugb-expand.ugb-more .ugb-expand-more{display:none}.wp-block-ugb-expand.ugb-more .ugb-expand-more-text,.wp-block-ugb-expand.ugb-more .ugb-expand-less{display:inline !important}
12
+ .gutenberg .ugb-editor-label{font-size:12px;text-transform:uppercase;font-weight:600;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;color:#8e979e;padding:2em 0 0;background:#fff;border:none;-webkit-box-shadow:none;box-shadow:none;white-space:nowrap;display:block}.gutenberg .ugb-editor-label:first-child{padding-top:0}[class*="ugb-"] form[class*="-link"],form[class*="ugb-"][class*="-link"],[class*="ugb-"]+form[class*="-link"]{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.ugb-number-box{display:-ms-flexbox;display:flex;margin:1rem 0}.ugb-number-box span,.ugb-number-box .blocks-rich-text span{background-color:#ddd;border-radius:100%;font-size:3em;display:block;padding:0;text-align:center;overflow:hidden;margin:0 auto;height:2.5em;width:2.5em;line-height:2.5em !important}.ugb-number-box>div{text-align:center;margin:0 auto}.ugb-number-box>div p{text-align:center}.ugb-number-box .ugb-number-box-name,.ugb-number-box .ugb-number-box-name-two,.ugb-number-box .ugb-number-box-name-three{margin:1.3rem 0 1rem;padding-top:0}.ugb-number-box .ugb-number-box-body,.ugb-number-box .ugb-number-box-body-two,.ugb-number-box .ugb-number-box-body-three{opacity:.5;margin:0 0 1rem;left:0}.ugb-number-box.column-1 .ugb-number-box-column-two,.ugb-number-box.column-1 .ugb-number-box-column-three{display:none}.ugb-number-box.column-2 .ugb-number-box-column-one{margin-right:1rem}.ugb-number-box.column-2 .ugb-number-box-column-two{margin-left:1rem}.ugb-number-box.column-2>div{width:50%}.ugb-number-box.column-2 .ugb-number-box-column-three{display:none}.ugb-number-box.column-3>div{width:33.2%;margin-left:1rem;margin-right:1rem}.ugb-number-box.column-3>div:first-child{margin-left:0}.ugb-number-box.column-3>div:last-child{margin-right:0}@media screen and (max-width: 800px){.ugb-number-box.column-3.column-3{display:block}.ugb-number-box.column-3.column-3>div{width:100%;margin:0}}@media screen and (max-width: 600px){.ugb-number-box.column-2.column-2{display:block}.ugb-number-box.column-2.column-2>div{width:100%;margin:0}}
13
  .gutenberg .ugb-editor-label{font-size:12px;text-transform:uppercase;font-weight:600;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;color:#8e979e;padding:2em 0 0;background:#fff;border:none;-webkit-box-shadow:none;box-shadow:none;white-space:nowrap;display:block}.gutenberg .ugb-editor-label:first-child{padding-top:0}[class*="ugb-"] form[class*="-link"],form[class*="ugb-"][class*="-link"],[class*="ugb-"]+form[class*="-link"]{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.ugb-pricing-box{display:-ms-flexbox;display:flex;margin-top:2rem;margin-bottom:2rem}.ugb-pricing-box>div{text-align:center;margin:0 auto}.ugb-pricing-box>div p{text-align:center;padding-bottom:0}.ugb-pricing-box h3{margin:0 0 2rem !important;line-height:100% !important}.ugb-pricing-box .ugb-pricing-box-pricing{font-size:3.5em;margin:0 0 .5rem;line-height:100% !important}.ugb-pricing-box .ugb-pricing-box-per-month-label{font-size:.75em;opacity:.3;margin:0 0 2rem;text-transform:uppercase;line-height:100% !important}.ugb-pricing-box .wp-ugb-button{margin-bottom:2rem}.ugb-pricing-box .ugb-pricing-box-feature-list{opacity:.5;font-size:1em;line-height:1.8em !important;width:40%;margin:0 auto}.blocks-button__inline-link.pricing-box{margin:5px auto 0px auto}.ugb-pricing-box.column-1 .ugb-pricing-box-column-two,.ugb-pricing-box.column-1 .ugb-pricing-box-column-three{display:none}.ugb-pricing-box.column-2 .ugb-pricing-box-feature-list{width:85%;margin:0 auto}.ugb-pricing-box.column-2 .ugb-pricing-box-column-one{margin-right:2rem}.ugb-pricing-box.column-2 .ugb-pricing-box-column-two{border-left:1px solid #eee;margin-left:0;padding-left:2rem}.ugb-pricing-box.column-2>div{width:50%}.ugb-pricing-box.column-2 .ugb-pricing-box-column-three{display:none}.ugb-pricing-box.column-2 .blocks-button__inline-link{width:225px}.ugb-pricing-box.column-3>div{width:33.2%;margin-left:1rem;margin-right:1rem}.ugb-pricing-box.column-3>div:first-child{margin-left:0}.ugb-pricing-box.column-3>div:last-child{margin-right:0}.ugb-pricing-box.column-3 .ugb-pricing-box-column-two{border-left:1px solid #eee;border-right:1px solid #eee;margin-left:0;margin-right:0;padding-left:1rem;padding-right:1rem}.ugb-pricing-box.column-3 .ugb-pricing-box-feature-list{width:100%}.ugb-pricing-box.column-3 .blocks-button__inline-link{width:181px}.ugb-pricing-box.column-3 .blocks-button__inline-link .blocks-url-input{width:50%}@media screen and (max-width: 800px){.ugb-pricing-box.column-3.column-3{display:block}.ugb-pricing-box.column-3.column-3>div{width:100%;margin:0}}@media screen and (max-width: 600px){.ugb-pricing-box.column-2.column-2{display:block}.ugb-pricing-box.column-2.column-2>div{width:100%;margin:0}}
14
  .gutenberg .ugb-editor-label{font-size:12px;text-transform:uppercase;font-weight:600;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;color:#8e979e;padding:2em 0 0;background:#fff;border:none;-webkit-box-shadow:none;box-shadow:none;white-space:nowrap;display:block}.gutenberg .ugb-editor-label:first-child{padding-top:0}[class*="ugb-"] form[class*="-link"],form[class*="ugb-"][class*="-link"],[class*="ugb-"]+form[class*="-link"]{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.ugb-header.has-image{padding:0}.ugb-header.has-image .ugb-header-section{padding:9.5rem 4rem;background-size:cover;background-repeat:no-repeat;background-position:center}.ugb-header{text-align:center;padding:9.5rem 4rem;position:relative}.ugb-header .ugb-header-overlay{position:absolute;top:0;left:0;right:0;bottom:0}.ugb-header .header-image{height:400px;width:600px;background-size:cover;background-repeat:no-repeat;background-position:center}.ugb-header .wp-block-button.ugb-button-center{left:0;-webkit-transform:translateX(0);-ms-transform:translateX(0);transform:translateX(0);margin-bottom:1.5em}.ugb-header .wp-block-button.ugb-button-right{-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%);left:50%;margin-bottom:1.5em}.ugb-header .wp-block-button.ugb-button-left{-webkit-transform:translateX(50%);-ms-transform:translateX(50%);transform:translateX(50%);left:-50%;margin-bottom:1.5em}.ugb-header .ugb-header-title{margin-bottom:1rem;padding-bottom:0;margin-top:0;position:relative}.ugb-header .ugb-header-subtitle{margin-bottom:2rem;padding-bottom:0;position:relative}.ugb-header button.components-button{margin-bottom:.5em;position:relative}.ugb-header .wp-ugb-button{position:relative}.ugb-header-overlay.overlay-opacity.overlay-opacity-1{opacity:.1}.ugb-header-overlay.overlay-opacity.overlay-opacity-2{opacity:.2}.ugb-header-overlay.overlay-opacity.overlay-opacity-3{opacity:.3}.ugb-header-overlay.overlay-opacity.overlay-opacity-4{opacity:.4}.ugb-header-overlay.overlay-opacity.overlay-opacity-5{opacity:.5}.ugb-header-overlay.overlay-opacity.overlay-opacity-6{opacity:.6}.ugb-header-overlay.overlay-opacity.overlay-opacity-7{opacity:.7}.ugb-header-overlay.overlay-opacity.overlay-opacity-8{opacity:.8}.ugb-header-overlay.overlay-opacity.overlay-opacity-9{opacity:.9}.ugb-header-overlay.overlay-opacity.overlay-opacity-10{opacity:1}.wp-block-ugb-header.has-no-content{display:none}
15
  .gutenberg .ugb-editor-label{font-size:12px;text-transform:uppercase;font-weight:600;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;color:#8e979e;padding:2em 0 0;background:#fff;border:none;-webkit-box-shadow:none;box-shadow:none;white-space:nowrap;display:block}.gutenberg .ugb-editor-label:first-child{padding-top:0}[class*="ugb-"] form[class*="-link"],form[class*="ugb-"][class*="-link"],[class*="ugb-"]+form[class*="-link"]{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.ugb-image-box{background-size:cover;background-position:center;padding:2rem;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;margin:0 auto;position:relative;background-color:#999}.ugb-image-box *{-webkit-transition:all .4s ease-in-out !important;-o-transition:all .4s ease-in-out !important;transition:all .4s ease-in-out !important;border:0 !important;-webkit-box-shadow:none !important;box-shadow:none !important}.ugb-image-box button.components-button{z-index:3;margin-bottom:1em}.ugb-image-box a{position:absolute;z-index:2;top:0;left:0;right:0;bottom:0;opacity:0;pointer-events:none}.ugb-image-box h4,.ugb-image-box p{z-index:3}.ugb-image-box h4{margin:0 0 0.5em !important}.ugb-image-box p{margin:0 !important;opacity:0;-webkit-transform:translateY(-15px);-ms-transform:translateY(-15px);transform:translateY(-15px)}.ugb-image-box:hover a{opacity:.7}.ugb-image-box:hover p{opacity:1;-webkit-transform:translateY(0);-ms-transform:translateY(0);transform:translateY(0)}.ugb-image-box.full-width{width:100% !important}.wp-block-ugb-image-box.has-no-content{display:none}
16
  .gutenberg .ugb-editor-label{font-size:12px;text-transform:uppercase;font-weight:600;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;color:#8e979e;padding:2em 0 0;background:#fff;border:none;-webkit-box-shadow:none;box-shadow:none;white-space:nowrap;display:block}.gutenberg .ugb-editor-label:first-child{padding-top:0}[class*="ugb-"] form[class*="-link"],form[class*="ugb-"][class*="-link"],[class*="ugb-"]+form[class*="-link"]{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.ugb-countup{text-align:center;margin-bottom:1em}.ugb-countup h4,.ugb-countup div,.ugb-countup p{margin:0 !important;line-height:1em}.ugb-countup h4{margin-bottom:1em !important}.ugb-countup p{margin-top:1em !important}.ugb-countup .ugb-countup-hide{visibility:hidden}
17
+ .gutenberg .ugb-editor-label{font-size:12px;text-transform:uppercase;font-weight:600;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;color:#8e979e;padding:2em 0 0;background:#fff;border:none;-webkit-box-shadow:none;box-shadow:none;white-space:nowrap;display:block}.gutenberg .ugb-editor-label:first-child{padding-top:0}[class*="ugb-"] form[class*="-link"],form[class*="ugb-"][class*="-link"],[class*="ugb-"]+form[class*="-link"]{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.video-popup-image{height:220px;width:220px;background-position:center;background-size:cover;margin-bottom:10px}.ugb-video-popup{position:relative;margin:0 auto;width:100%;max-width:600px}.ugb-video-popup .ugb-video-preview,.ugb-video-popup a,.ugb-video-popup .ugb-video-overlay,.ugb-video-popup .ugb-play-button{position:absolute;top:0;left:0;right:0;bottom:0}.ugb-video-popup .ugb-video-preview{background-size:cover;background-position:center;opacity:.4;-webkit-transition:all .3s ease-in-out;-o-transition:all .3s ease-in-out;transition:all .3s ease-in-out;z-index:1}.ugb-video-popup:hover .ugb-video-preview{opacity:.5}.ugb-video-popup .ugb-video-wrapper{position:relative;width:100%;padding-bottom:56.25%;border:0 !important;-webkit-box-shadow:none !important;box-shadow:none !important}.ugb-video-popup a,.ugb-video-popup .ugb-video-overlay{z-index:3;-webkit-box-shadow:none !important;box-shadow:none !important;background:transparent !important;display:block !important}.ugb-video-popup .ugb-play-button{z-index:2;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;-ms-flex-direction:column;flex-direction:column}.ugb-video-popup svg{fill:#fff !important}.ugb-video-popup button.components-button.button{position:absolute;z-index:4;left:50%;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%);top:30%}.ugb-video-popup button.components-button.button:active{-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%)}.ugb-video-popup-link .editor-url-input input[type=text]{width:auto !important}
18
  .gutenberg .ugb-editor-label{font-size:12px;text-transform:uppercase;font-weight:600;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;color:#8e979e;padding:2em 0 0;background:#fff;border:none;-webkit-box-shadow:none;box-shadow:none;white-space:nowrap;display:block}.gutenberg .ugb-editor-label:first-child{padding-top:0}[class*="ugb-"] form[class*="-link"],form[class*="ugb-"][class*="-link"],[class*="ugb-"]+form[class*="-link"]{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.ugb-card{border-radius:4px;-webkit-box-shadow:0 0 5px rgba(0,0,0,0.1);box-shadow:0 0 5px rgba(0,0,0,0.1);margin:30px 0;padding-bottom:30px}.ugb-card:not(.has-image){padding-top:30px}.ugb-card.has-image .ugb-card-image-container{height:300px;width:100%;margin:0 auto 20px;background-size:cover;background-position:center;border-top-right-radius:4px;border-top-left-radius:4px;padding-top:0px}.ugb-card>*:first-child{margin-top:0 !important}.ugb-card>*:last-child{margin-bottom:0 !important}.ugb-card>h4,.ugb-card>*{margin:0 30px .5rem !important}.ugb-card .wp-ugb-button{margin-top:1rem !important}.ugb-card .ugb-card-image-container{margin:0 0 20px !important}.ugb-card .ugb-tagline{opacity:.7}.ugb-card .wp-block-button.ugb-button-center{margin-left:0 !important;margin-right:0 !important}.ugb-card .wp-block-button.ugb-button-right{-webkit-transform:translateX(-100%) translateX(-60px);-ms-transform:translateX(-100%) translateX(-60px);transform:translateX(-100%) translateX(-60px)}
freemius/assets/css/admin/common.css CHANGED
@@ -1,2 +1,2 @@
1
  .theme-browser .theme .fs-premium-theme-badge{position:absolute;top:10px;right:0;background:#71ae00;color:#fff;text-transform:uppercase;padding:5px 10px;-moz-border-radius:3px 0 0 3px;-webkit-border-radius:3px 0 0 3px;border-radius:3px 0 0 3px;font-weight:bold;border-right:0;-moz-box-shadow:0 2px 1px -1px rgba(0,0,0,0.3);-webkit-box-shadow:0 2px 1px -1px rgba(0,0,0,0.3);box-shadow:0 2px 1px -1px rgba(0,0,0,0.3);font-size:1.1em}#iframe{line-height:0;font-size:0}.fs-full-size-wrapper{margin:40px 0 -65px -20px}@media (max-width: 600px){.fs-full-size-wrapper{margin:0 0 -65px -10px}}
2
- .fs-notice{position:relative}.fs-notice.fs-has-title{margin-bottom:30px !important}.fs-notice.success{color:green}.fs-notice.promotion{border-color:#00a0d2 !important;background-color:#f2fcff !important}.fs-notice .fs-notice-body{margin:.5em 0;padding:2px}.fs-notice .fs-close{cursor:pointer;color:#aaa;float:right}.fs-notice .fs-close:hover{color:#666}.fs-notice .fs-close>*{margin-top:7px;display:inline-block}.fs-notice label.fs-plugin-title{background:rgba(0,0,0,0.3);color:#fff;padding:2px 10px;position:absolute;top:100%;bottom:auto;right:auto;-moz-border-radius:0 0 3px 3px;-webkit-border-radius:0 0 3px 3px;border-radius:0 0 3px 3px;left:10px;font-size:12px;font-weight:bold;cursor:auto}div.fs-notice.updated,div.fs-notice.success,div.fs-notice.promotion{display:block !important}.rtl .fs-notice .fs-close{float:left}.fs-secure-notice{position:fixed;top:32px;left:160px;right:0;background:#ebfdeb;padding:10px 20px;color:green;z-index:9999;-moz-box-shadow:0 2px 2px rgba(6,113,6,0.3);-webkit-box-shadow:0 2px 2px rgba(6,113,6,0.3);box-shadow:0 2px 2px rgba(6,113,6,0.3);opacity:0.95;filter:alpha(opacity=95)}.fs-secure-notice:hover{opacity:1;filter:alpha(opacity=100)}.fs-secure-notice a.fs-security-proof{color:green;text-decoration:none}@media screen and (max-width: 960px){.fs-secure-notice{left:36px}}@media screen and (max-width: 600px){.fs-secure-notice{display:none}}@media screen and (max-width: 500px){#fs_promo_tab{display:none}}@media screen and (max-width: 782px){.fs-secure-notice{left:0;top:46px;text-align:center}}span.fs-submenu-item.fs-sub:before{content:'\21B3';padding:0 5px}.rtl span.fs-submenu-item.fs-sub:before{content:'\21B2'}.fs-submenu-item.pricing.upgrade-mode{color:greenyellow}.fs-submenu-item.pricing.trial-mode{color:#83e2ff}#adminmenu .update-plugins.fs-trial{background-color:#00b9eb}.fs-ajax-spinner{border:0;width:20px;height:20px;margin-right:5px;vertical-align:sub;display:inline-block;background:url("../../../../../../../wp-admin/images/wpspin_light-2x.gif");background-size:contain}.wrap.fs-section h2{text-align:left}
1
  .theme-browser .theme .fs-premium-theme-badge{position:absolute;top:10px;right:0;background:#71ae00;color:#fff;text-transform:uppercase;padding:5px 10px;-moz-border-radius:3px 0 0 3px;-webkit-border-radius:3px 0 0 3px;border-radius:3px 0 0 3px;font-weight:bold;border-right:0;-moz-box-shadow:0 2px 1px -1px rgba(0,0,0,0.3);-webkit-box-shadow:0 2px 1px -1px rgba(0,0,0,0.3);box-shadow:0 2px 1px -1px rgba(0,0,0,0.3);font-size:1.1em}#iframe{line-height:0;font-size:0}.fs-full-size-wrapper{margin:40px 0 -65px -20px}@media (max-width: 600px){.fs-full-size-wrapper{margin:0 0 -65px -10px}}
2
+ .fs-notice{position:relative}.fs-notice.fs-has-title{margin-bottom:30px !important}.fs-notice.success{color:green}.fs-notice.promotion{border-color:#00a0d2 !important;background-color:#f2fcff !important}.fs-notice .fs-notice-body{margin:.5em 0;padding:2px}.fs-notice .fs-close{cursor:pointer;color:#aaa;float:right}.fs-notice .fs-close:hover{color:#666}.fs-notice .fs-close>*{margin-top:7px;display:inline-block}.fs-notice label.fs-plugin-title{background:rgba(0,0,0,0.3);color:#fff;padding:2px 10px;position:absolute;top:100%;bottom:auto;right:auto;-moz-border-radius:0 0 3px 3px;-webkit-border-radius:0 0 3px 3px;border-radius:0 0 3px 3px;left:10px;font-size:12px;font-weight:bold;cursor:auto}div.fs-notice.updated,div.fs-notice.success,div.fs-notice.promotion{display:block !important}.rtl .fs-notice .fs-close{float:left}.fs-secure-notice{position:fixed;top:32px;left:160px;right:0;background:#ebfdeb;padding:10px 20px;color:green;z-index:9999;-moz-box-shadow:0 2px 2px rgba(6,113,6,0.3);-webkit-box-shadow:0 2px 2px rgba(6,113,6,0.3);box-shadow:0 2px 2px rgba(6,113,6,0.3);opacity:0.95;filter:alpha(opacity=95)}.fs-secure-notice:hover{opacity:1;filter:alpha(opacity=100)}.fs-secure-notice a.fs-security-proof{color:green;text-decoration:none}@media screen and (max-width: 960px){.fs-secure-notice{left:36px}}@media screen and (max-width: 600px){.fs-secure-notice{display:none}}@media screen and (max-width: 500px){#fs_promo_tab{display:none}}@media screen and (max-width: 782px){.fs-secure-notice{left:0;top:46px;text-align:center}}span.fs-submenu-item.fs-sub:before{content:'\21B3';padding:0 5px}.rtl span.fs-submenu-item.fs-sub:before{content:'\21B2'}.fs-submenu-item.pricing.upgrade-mode{color:greenyellow}.fs-submenu-item.pricing.trial-mode{color:#83e2ff}#adminmenu .update-plugins.fs-trial{background-color:#00b9eb}.fs-ajax-spinner{border:0;width:20px;height:20px;margin-right:5px;vertical-align:sub;display:inline-block;background:url("/wp-admin/images/wpspin_light-2x.gif");background-size:contain}.wrap.fs-section h2{text-align:left}
freemius/assets/img/stackable-ultimate-gutenberg-blocks.png DELETED
Binary file
freemius/assets/scss/admin/common.scss CHANGED
@@ -207,7 +207,7 @@ span.fs-submenu-item.fs-sub:before
207
  margin-right: 5px;
208
  vertical-align: sub;
209
  display: inline-block;
210
- background: url('../../../../../../../wp-admin/images/wpspin_light-2x.gif');
211
  background-size: contain;
212
  }
213
 
207
  margin-right: 5px;
208
  vertical-align: sub;
209
  display: inline-block;
210
+ background: url('/wp-admin/images/wpspin_light-2x.gif');
211
  background-size: contain;
212
  }
213
 
freemius/includes/class-freemius.php CHANGED
@@ -1348,7 +1348,10 @@
1348
  add_action( 'make_ham_blog', array( &$this, '_after_site_reactivated_callback' ) );
1349
  }
1350
 
1351
- if ( $this->is_theme() && self::is_customizer() ) {
 
 
 
1352
  // Register customizer upsell.
1353
  add_action( 'customize_register', array( &$this, '_customizer_register' ) );
1354
  }
@@ -1488,13 +1491,6 @@
1488
  array( &$this, '_submit_uninstall_reason_action' )
1489
  );
1490
 
1491
- if ( $this->is_theme() && $this->is_premium() && ! $this->has_active_valid_license() ) {
1492
- $this->add_ajax_action(
1493
- 'delete_theme_update_data',
1494
- array( &$this, '_delete_theme_update_data_action' )
1495
- );
1496
- }
1497
-
1498
  if ( ! $this->is_addon() || $this->is_parent_plugin_installed() ) {
1499
  if ( ( $this->is_plugin() && self::is_plugins_page() ) ||
1500
  ( $this->is_theme() && self::is_themes_page() )
@@ -2634,26 +2630,28 @@
2634
  self::$_accounts = FS_Options::instance( WP_FS__ACCOUNTS_OPTION_NAME, true );
2635
 
2636
  if ( is_multisite() ) {
 
 
 
 
 
 
 
2637
  /**
2638
- * If the id_slug_type_path_map exists on the site level but doesn't exist on the
2639
  * network level storage, it means that we need to process the storage with migration.
2640
  *
2641
- * The code in this `if` scope will only be executed once and only for the first site that will execute it because once we migrate the storage data, id_slug_type_path_map will be already set in the network level storage.
2642
  *
2643
  * @author Vova Feldman (@svovaf)
2644
  * @since 2.0.0
2645
  */
2646
- if ( null === self::$_accounts->get_option( 'id_slug_type_path_map', null, true ) &&
2647
- null !== self::$_accounts->get_option( 'id_slug_type_path_map', null, false )
 
 
2648
  ) {
2649
- self::migrate_accounts_to_network();
2650
-
2651
- // Migrate API options from site level to network level.
2652
- $api_network_options = FS_Option_Manager::get_manager( WP_FS__OPTIONS_OPTION_NAME, true, true );
2653
- $api_network_options->migrate_to_network();
2654
-
2655
- // Migrate API cache to network level storage.
2656
- FS_Cache_Manager::get_manager( WP_FS__API_CACHE_OPTION_NAME )->migrate_to_network();
2657
  }
2658
  }
2659
 
@@ -2683,6 +2681,24 @@
2683
  self::$_statics_loaded = true;
2684
  }
2685
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2686
  #----------------------------------------------------------------------------------
2687
  #region Localization
2688
  #----------------------------------------------------------------------------------
@@ -2909,6 +2925,10 @@
2909
  }
2910
 
2911
  fs_redirect( $download_url );
 
 
 
 
2912
  }
2913
  }
2914
 
@@ -3961,6 +3981,13 @@
3961
 
3962
  $this->parse_settings( $plugin_info );
3963
 
 
 
 
 
 
 
 
3964
  if ( ! self::is_ajax() ) {
3965
  if ( ! $this->is_addon() || $this->is_only_premium() ) {
3966
  add_action(
@@ -5984,7 +6011,7 @@
5984
  * @param int $except_blog_id Since 2.0.0 when running in a multisite network environment, the cron execution is consolidated. This param allows excluding excluded specified blog ID from being the cron executor.
5985
  */
5986
  private function schedule_install_sync( $except_blog_id = 0 ) {
5987
- $this->schedule_cron( 'install_sync', 'install_sync', 'single', 0, false, $except_blog_id );
5988
  }
5989
 
5990
  /**
@@ -6192,19 +6219,21 @@
6192
  }
6193
 
6194
  if ( $this->is_plugin_new_install() || $this->is_only_premium() ) {
6195
- // Show notice for new plugin installations.
6196
- $this->_admin_notices->add(
6197
- sprintf(
6198
- $this->get_text_inline( 'You are just one step away - %s', 'you-are-step-away' ),
6199
- sprintf( '<b><a href="%s">%s</a></b>',
6200
- $this->get_activation_url( array(), ! $this->is_delegated_connection() ),
6201
- sprintf( $this->get_text_x_inline( 'Complete "%s" Activation Now',
6202
- '%s - plugin name. As complete "PluginX" activation now', 'activate-x-now' ), $this->get_plugin_name() )
6203
- )
6204
- ),
6205
- '',
6206
- 'update-nag'
6207
- );
 
 
6208
  } else {
6209
  if ( $this->should_add_sticky_optin_notice() ) {
6210
  $this->add_sticky_optin_admin_notice();
@@ -10569,7 +10598,7 @@
10569
  return;
10570
  }
10571
 
10572
- if ( ! $this->is_premium() || $this->has_active_valid_license() ) {
10573
  // This is relevant only to the free versions and premium versions without an active license.
10574
  return;
10575
  }
@@ -14756,13 +14785,15 @@
14756
  private function add_submenu_items() {
14757
  $this->_logger->entrance();
14758
 
 
 
14759
  if ( $this->is_addon() ) {
14760
  // No submenu items for add-ons.
14761
  $add_submenu_items = false;
14762
  } else if ( $this->is_free_wp_org_theme() && ! fs_is_network_admin() ) {
14763
  // Also add submenu items when running in a free .org theme so the tabs will be visible.
14764
  $add_submenu_items = true;
14765
- } else if ( $this->is_activation_mode() && ! $this->is_free_wp_org_theme() ) {
14766
  $add_submenu_items = false;
14767
  } else if ( fs_is_network_admin() ) {
14768
  /**
@@ -14793,7 +14824,15 @@
14793
  $this->is_submenu_item_visible( 'affiliation' )
14794
  );
14795
  }
 
14796
 
 
 
 
 
 
 
 
14797
  if ( ! WP_FS__DEMO_MODE && $this->is_registered() ) {
14798
  $show_account = (
14799
  $this->is_submenu_item_visible( 'account' ) &&
@@ -14812,10 +14851,12 @@
14812
  'account',
14813
  array( &$this, '_account_page_load' ),
14814
  WP_FS__DEFAULT_PRIORITY,
14815
- $show_account
14816
  );
14817
  }
 
14818
 
 
14819
  // Add contact page.
14820
  $this->add_submenu_item(
14821
  $this->get_text_inline( 'Contact Us', 'contact-us' ),
@@ -14840,7 +14881,11 @@
14840
  $this->is_submenu_item_visible( 'addons' )
14841
  );
14842
  }
 
14843
 
 
 
 
14844
  if ( ! WP_FS__DEMO_MODE ) {
14845
  $show_pricing = (
14846
  $this->is_submenu_item_visible( 'pricing' ) &&
@@ -14862,14 +14907,14 @@
14862
 
14863
  // Add upgrade/pricing page.
14864
  $this->add_submenu_item(
14865
- $pricing_cta_text . '&nbsp;&nbsp;' . ( is_rtl() ? '&#x2190;' : '&#x27a4;' ),
14866
  array( &$this, '_pricing_page_render' ),
14867
  $this->get_plugin_name() . ' &ndash; ' . $this->get_text_x_inline( 'Pricing', 'noun', 'pricing' ),
14868
  'manage_options',
14869
  'pricing',
14870
  'Freemius::_clean_admin_content_section',
14871
  WP_FS__LOWEST_PRIORITY,
14872
- $show_pricing,
14873
  $pricing_class
14874
  );
14875
  }
@@ -15569,7 +15614,8 @@
15569
  return;
15570
  }
15571
 
15572
- $encrypted_site = clone ( is_object( $site ) ? $site : $this->_site );
 
15573
 
15574
  $sites = self::get_all_sites( $this->_module_type, $network_level_or_blog_id );
15575
 
@@ -15937,7 +15983,7 @@
15937
  /**
15938
  * @since 1.2.3 When running in DEV mode, retrieve pending plans as well.
15939
  */
15940
- $result = $api->get( "/plugins/{$this->_module_id}/plans.json?show_pending=" . ( $this->has_secret_key() ? 'true' : 'false' ), true );
15941
 
15942
  if ( $this->is_api_result_object( $result, 'plans' ) && is_array( $result->plans ) ) {
15943
  for ( $i = 0, $len = count( $result->plans ); $i < $len; $i ++ ) {
@@ -16267,14 +16313,62 @@
16267
  * @since 1.2.1
16268
  */
16269
  function has_active_valid_license() {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
16270
  return (
16271
- is_object( $this->_license ) &&
16272
- is_numeric( $this->_license->id ) &&
16273
- $this->_license->is_active() &&
16274
- $this->_license->is_valid()
16275
  );
16276
  }
16277
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
16278
  /**
16279
  * Check if site assigned with license with enabled features.
16280
  *
@@ -16405,7 +16499,7 @@
16405
  $this->_update_licenses( $licenses, $addon->id );
16406
 
16407
  if ( ! $this->is_addon_installed( $addon->id ) && FS_License_Manager::has_premium_license( $licenses ) ) {
16408
- $plans_result = $this->get_api_site_or_plugin_scope()->get( "/addons/{$addon_id}/plans.json" );
16409
 
16410
  if ( ! isset( $plans_result->error ) ) {
16411
  $plans = array();
@@ -16733,6 +16827,7 @@
16733
  'trial_promotion',
16734
  'trial_expired',
16735
  'activation_complete',
 
16736
  ) );
16737
  break;
16738
  case 'changed':
@@ -17267,7 +17362,7 @@
17267
  * @return bool
17268
  */
17269
  private function _can_download_premium() {
17270
- return $this->has_active_valid_license() ||
17271
  ( $this->is_trial() && ! $this->get_trial_plan()->is_free() );
17272
  }
17273
 
@@ -17570,19 +17665,21 @@
17570
 
17571
  $api = $this->get_api_site_or_plugin_scope();
17572
 
 
 
17573
  /**
17574
  * @since 1.2.1
17575
  *
17576
  * If there's a cached version of the add-ons and not asking
17577
  * for a flush, just use the currently stored add-ons.
17578
  */
17579
- if ( ! $flush && $api->is_cached( '/addons.json?enriched=true' ) ) {
17580
  $addons = self::get_all_addons();
17581
 
17582
  return $addons[ $this->_plugin->id ];
17583
  }
17584
 
17585
- $result = $api->get( '/addons.json?enriched=true', $flush );
17586
 
17587
  $addons = array();
17588
  if ( $this->is_api_result_object( $result, 'plugins' ) &&
@@ -18398,9 +18495,9 @@
18398
  $vars = array( 'id' => $this->_module_id );
18399
 
18400
  if ( 'true' === fs_request_get( 'checkout', false ) ) {
18401
- fs_require_once_template( 'checkout.php', $vars );
18402
  } else {
18403
- fs_require_once_template( 'pricing.php', $vars );
18404
  }
18405
  }
18406
 
@@ -18418,7 +18515,15 @@
18418
  $this->_logger->entrance();
18419
 
18420
  $vars = array( 'id' => $this->_module_id );
18421
- fs_require_once_template( 'contact.php', $vars );
 
 
 
 
 
 
 
 
18422
  }
18423
 
18424
  #endregion ------------------------------------------------------------------------
@@ -18515,7 +18620,9 @@
18515
  * @return FS_Api
18516
  */
18517
  private function get_current_or_network_user_api_scope( $flush = false ) {
18518
- if ( ! $this->_is_network_active || isset( $this->_user ) ) {
 
 
18519
  return $this->get_api_user_scope( $flush );
18520
  }
18521
 
@@ -18603,9 +18710,19 @@
18603
  * @author Vova Feldman (@svovaf)
18604
  * @since 1.0.9
18605
  *
18606
- * @param $plans
18607
  */
18608
  function _check_for_trial_plans( $plans ) {
 
 
 
 
 
 
 
 
 
 
18609
  $this->_storage->has_trial_plan = FS_Plan_Manager::instance()->has_trial_plan( $plans );
18610
  }
18611
 
@@ -18712,14 +18829,14 @@
18712
 
18713
  // Show promotion if never shown before and 24 hours after initial activation with FS.
18714
  if ( ! $was_promotion_shown_before &&
18715
- $this->_storage->install_timestamp > ( time() - WP_FS__TIME_24_HOURS_IN_SEC )
18716
  ) {
18717
  return false;
18718
  }
18719
 
18720
  // OR if promotion was shown before, try showing it every 30 days.
18721
  if ( $was_promotion_shown_before &&
18722
- 30 * WP_FS__TIME_24_HOURS_IN_SEC > time() - $last_time_trial_promotion_shown
18723
  ) {
18724
  return false;
18725
  }
@@ -19344,14 +19461,16 @@
19344
  * @param array $request
19345
  * @param int $success_cache_expiration
19346
  * @param int $failure_cache_expiration
 
19347
  *
19348
  * @return WP_Error|array
19349
  */
19350
- private static function safe_remote_post(
19351
  &$url,
19352
  $request,
19353
  $success_cache_expiration = 0,
19354
- $failure_cache_expiration = 0
 
19355
  ) {
19356
  $should_cache = ($success_cache_expiration + $failure_cache_expiration > 0);
19357
 
@@ -19362,7 +19481,9 @@
19362
  false;
19363
 
19364
  if ( false === $response ) {
19365
- self::enrich_request_for_debug( $url, $request );
 
 
19366
 
19367
  $response = wp_remote_post( $url, $request );
19368
 
@@ -20117,6 +20238,10 @@
20117
  $icon_found = false;
20118
  $local_path = fs_normalize_path( "{$img_dir}/{$this->_slug}.png" );
20119
 
 
 
 
 
20120
  $have_write_permissions = ( 'direct' === get_filesystem_method( array(), fs_normalize_path( $img_dir ) ) );
20121
 
20122
  /**
@@ -20633,9 +20758,7 @@
20633
  * @since 2.1.0
20634
  */
20635
  function _maybe_add_gdpr_optin_ajax_handler() {
20636
- if ( $this->is_activation_mode() ) {
20637
- $this->add_ajax_action( 'fetch_is_marketing_required_flag_value', array( &$this, '_fetch_is_marketing_required_flag_value_ajax_action' ) );
20638
- }
20639
 
20640
  if ( FS_GDPR_Manager::instance()->is_opt_in_notice_shown() ) {
20641
  $this->add_gdpr_optin_ajax_handler_and_style();
@@ -20819,4 +20942,28 @@
20819
  }
20820
 
20821
  #endregion
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
20822
  }
1348
  add_action( 'make_ham_blog', array( &$this, '_after_site_reactivated_callback' ) );
1349
  }
1350
 
1351
+ if ( $this->is_theme() &&
1352
+ self::is_customizer() &&
1353
+ $this->apply_filters( 'show_customizer_upsell', true )
1354
+ ) {
1355
  // Register customizer upsell.
1356
  add_action( 'customize_register', array( &$this, '_customizer_register' ) );
1357
  }
1491
  array( &$this, '_submit_uninstall_reason_action' )
1492
  );
1493
 
 
 
 
 
 
 
 
1494
  if ( ! $this->is_addon() || $this->is_parent_plugin_installed() ) {
1495
  if ( ( $this->is_plugin() && self::is_plugins_page() ) ||
1496
  ( $this->is_theme() && self::is_themes_page() )
2630
  self::$_accounts = FS_Options::instance( WP_FS__ACCOUNTS_OPTION_NAME, true );
2631
 
2632
  if ( is_multisite() ) {
2633
+ $has_skipped_migration = (
2634
+ // 'id_slug_type_path_map' - was never stored on older versions, therefore, not exists on the site level.
2635
+ null === self::$_accounts->get_option( 'id_slug_type_path_map', null, false ) &&
2636
+ // 'file_slug_map' stored on the site level, so it was running an SDK version before it was integrated with MS-network.
2637
+ null !== self::$_accounts->get_option( 'file_slug_map', null, false )
2638
+ );
2639
+
2640
  /**
2641
+ * If the file_slug_map exists on the site level but doesn't exist on the
2642
  * network level storage, it means that we need to process the storage with migration.
2643
  *
2644
+ * The code in this `if` scope will only be executed once and only for the first site that will execute it because once we migrate the storage data, file_slug_map will be already set in the network level storage.
2645
  *
2646
  * @author Vova Feldman (@svovaf)
2647
  * @since 2.0.0
2648
  */
2649
+ if (
2650
+ ( $has_skipped_migration && true !== self::$_accounts->get_option( 'ms_migration_complete', false, true ) ) ||
2651
+ ( null === self::$_accounts->get_option( 'file_slug_map', null, true ) &&
2652
+ null !== self::$_accounts->get_option( 'file_slug_map', null, false ) )
2653
  ) {
2654
+ self::migrate_options_to_network();
 
 
 
 
 
 
 
2655
  }
2656
  }
2657
 
2681
  self::$_statics_loaded = true;
2682
  }
2683
 
2684
+ /**
2685
+ * @author Leo Fajardo (@leorw)
2686
+ *
2687
+ * @since 2.1.3
2688
+ */
2689
+ private static function migrate_options_to_network() {
2690
+ self::migrate_accounts_to_network();
2691
+
2692
+ // Migrate API options from site level to network level.
2693
+ $api_network_options = FS_Option_Manager::get_manager( WP_FS__OPTIONS_OPTION_NAME, true, true );
2694
+ $api_network_options->migrate_to_network();
2695
+
2696
+ // Migrate API cache to network level storage.
2697
+ FS_Cache_Manager::get_manager( WP_FS__API_CACHE_OPTION_NAME )->migrate_to_network();
2698
+
2699
+ self::$_accounts->set_option( 'ms_migration_complete', true, true );
2700
+ }
2701
+
2702
  #----------------------------------------------------------------------------------
2703
  #region Localization
2704
  #----------------------------------------------------------------------------------
2925
  }
2926
 
2927
  fs_redirect( $download_url );
2928
+ } else if ( fs_request_is_action( 'migrate_options_to_network' ) ) {
2929
+ check_admin_referer( 'migrate_options_to_network' );
2930
+
2931
+ self::migrate_options_to_network();
2932
  }
2933
  }
2934
 
3981
 
3982
  $this->parse_settings( $plugin_info );
3983
 
3984
+ if ( is_admin() && $this->is_theme() && $this->is_premium() && ! $this->has_active_valid_license() ) {
3985
+ $this->add_ajax_action(
3986
+ 'delete_theme_update_data',
3987
+ array( &$this, '_delete_theme_update_data_action' )
3988
+ );
3989
+ }
3990
+
3991
  if ( ! self::is_ajax() ) {
3992
  if ( ! $this->is_addon() || $this->is_only_premium() ) {
3993
  add_action(
6011
  * @param int $except_blog_id Since 2.0.0 when running in a multisite network environment, the cron execution is consolidated. This param allows excluding excluded specified blog ID from being the cron executor.
6012
  */
6013
  private function schedule_install_sync( $except_blog_id = 0 ) {
6014
+ $this->schedule_cron( 'install_sync', 'install_sync', 'single', WP_FS__SCRIPT_START_TIME, false, $except_blog_id );
6015
  }
6016
 
6017
  /**
6219
  }
6220
 
6221
  if ( $this->is_plugin_new_install() || $this->is_only_premium() ) {
6222
+ if ( ! $this->_anonymous_mode ) {
6223
+ // Show notice for new plugin installations.
6224
+ $this->_admin_notices->add(
6225
+ sprintf(
6226
+ $this->get_text_inline( 'You are just one step away - %s', 'you-are-step-away' ),
6227
+ sprintf( '<b><a href="%s">%s</a></b>',
6228
+ $this->get_activation_url( array(), ! $this->is_delegated_connection() ),
6229
+ sprintf( $this->get_text_x_inline( 'Complete "%s" Activation Now',
6230
+ '%s - plugin name. As complete "PluginX" activation now', 'activate-x-now' ), $this->get_plugin_name() )
6231
+ )
6232
+ ),
6233
+ '',
6234
+ 'update-nag'
6235
+ );
6236
+ }
6237
  } else {
6238
  if ( $this->should_add_sticky_optin_notice() ) {
6239
  $this->add_sticky_optin_admin_notice();
10598
  return;
10599
  }
10600
 
10601
+ if ( ! $this->is_premium() || $this->has_any_active_valid_license() ) {
10602
  // This is relevant only to the free versions and premium versions without an active license.
10603
  return;
10604
  }
14785
  private function add_submenu_items() {
14786
  $this->_logger->entrance();
14787
 
14788
+ $is_activation_mode = $this->is_activation_mode();
14789
+
14790
  if ( $this->is_addon() ) {
14791
  // No submenu items for add-ons.
14792
  $add_submenu_items = false;
14793
  } else if ( $this->is_free_wp_org_theme() && ! fs_is_network_admin() ) {
14794
  // Also add submenu items when running in a free .org theme so the tabs will be visible.
14795
  $add_submenu_items = true;
14796
+ } else if ( $is_activation_mode && ! $this->is_free_wp_org_theme() ) {
14797
  $add_submenu_items = false;
14798
  } else if ( fs_is_network_admin() ) {
14799
  /**
14824
  $this->is_submenu_item_visible( 'affiliation' )
14825
  );
14826
  }
14827
+ }
14828
 
14829
+ if ( $add_submenu_items ||
14830
+ ( $is_activation_mode &&
14831
+ $this->is_only_premium() &&
14832
+ $this->is_admin_page( 'account' ) &&
14833
+ fs_request_is_action( $this->get_unique_affix() . '_sync_license' )
14834
+ )
14835
+ ) {
14836
  if ( ! WP_FS__DEMO_MODE && $this->is_registered() ) {
14837
  $show_account = (
14838
  $this->is_submenu_item_visible( 'account' ) &&
14851
  'account',
14852
  array( &$this, '_account_page_load' ),
14853
  WP_FS__DEFAULT_PRIORITY,
14854
+ ( $add_submenu_items && $show_account )
14855
  );
14856
  }
14857
+ }
14858
 
14859
+ if ( $add_submenu_items ) {
14860
  // Add contact page.
14861
  $this->add_submenu_item(
14862
  $this->get_text_inline( 'Contact Us', 'contact-us' ),
14881
  $this->is_submenu_item_visible( 'addons' )
14882
  );
14883
  }
14884
+ }
14885
 
14886
+ if ( $add_submenu_items ||
14887
+ ( $is_activation_mode && $this->is_only_premium() && $this->is_admin_page( 'pricing' ) )
14888
+ ) {
14889
  if ( ! WP_FS__DEMO_MODE ) {
14890
  $show_pricing = (
14891
  $this->is_submenu_item_visible( 'pricing' ) &&
14907
 
14908
  // Add upgrade/pricing page.
14909
  $this->add_submenu_item(
14910
+ $pricing_cta_text . '&nbsp;&nbsp;' . ( is_rtl() ? $this->get_text_x_inline( '&#x2190;', 'ASCII arrow left icon', 'symbol_arrow-left' ) : $this->get_text_x_inline( '&#x27a4;', 'ASCII arrow right icon', 'symbol_arrow-right' ) ),
14911
  array( &$this, '_pricing_page_render' ),
14912
  $this->get_plugin_name() . ' &ndash; ' . $this->get_text_x_inline( 'Pricing', 'noun', 'pricing' ),
14913
  'manage_options',
14914
  'pricing',
14915
  'Freemius::_clean_admin_content_section',
14916
  WP_FS__LOWEST_PRIORITY,
14917
+ ( $add_submenu_items && $show_pricing ),
14918
  $pricing_class
14919
  );
14920
  }
15614
  return;
15615
  }
15616
 
15617
+ $site_clone = is_object( $site ) ? $site : $this->_site;
15618
+ $encrypted_site = clone $site_clone;
15619
 
15620
  $sites = self::get_all_sites( $this->_module_type, $network_level_or_blog_id );
15621
 
15983
  /**
15984
  * @since 1.2.3 When running in DEV mode, retrieve pending plans as well.
15985
  */
15986
+ $result = $api->get( $this->add_show_pending( "/plugins/{$this->_module_id}/plans.json" ), true );
15987
 
15988
  if ( $this->is_api_result_object( $result, 'plans' ) && is_array( $result->plans ) ) {
15989
  for ( $i = 0, $len = count( $result->plans ); $i < $len; $i ++ ) {
16313
  * @since 1.2.1
16314
  */
16315
  function has_active_valid_license() {
16316
+ return self::is_active_valid_license( $this->_license );
16317
+ }
16318
+
16319
+ /**
16320
+ * Check if a given license is active & valid (not expired).
16321
+ *
16322
+ * @author Vova Feldman (@svovaf)
16323
+ * @since 2.1.3
16324
+ *
16325
+ * @param FS_Plugin_License $license
16326
+ *
16327
+ * @return bool
16328
+ */
16329
+ private static function is_active_valid_license( $license ) {
16330
  return (
16331
+ is_object( $license ) &&
16332
+ FS_Plugin_License::is_valid_id( $license->id ) &&
16333
+ $license->is_active() &&
16334
+ $license->is_valid()
16335
  );
16336
  }
16337
 
16338
+ /**
16339
+ * Checks if there's any site that is associated with an active & valid license.
16340
+ * This logic is used to determine if the admin can download the premium code base from a network level admin.
16341
+ *
16342
+ * @author Vova Feldman (@svovaf)
16343
+ * @since 2.1.3
16344
+ *
16345
+ * @return bool
16346
+ */
16347
+ function has_any_active_valid_license() {
16348
+ if ( ! fs_is_network_admin() ) {
16349
+ return $this->has_active_valid_license();
16350
+ }
16351
+
16352
+ $installs = $this->get_blog_install_map();
16353
+ $all_plugin_licenses = self::get_all_licenses( $this->_module_id );
16354
+
16355
+ foreach ( $installs as $blog_id => $install ) {
16356
+ if ( ! FS_Plugin_License::is_valid_id( $install->license_id ) ) {
16357
+ continue;
16358
+ }
16359
+
16360
+ foreach ( $all_plugin_licenses as $license ) {
16361
+ if ( $license->id == $install->license_id ) {
16362
+ if ( self::is_active_valid_license( $license ) ) {
16363
+ return true;
16364
+ }
16365
+ }
16366
+ }
16367
+ }
16368
+
16369
+ return false;
16370
+ }
16371
+
16372
  /**
16373
  * Check if site assigned with license with enabled features.
16374
  *
16499
  $this->_update_licenses( $licenses, $addon->id );
16500
 
16501
  if ( ! $this->is_addon_installed( $addon->id ) && FS_License_Manager::has_premium_license( $licenses ) ) {
16502
+ $plans_result = $this->get_api_site_or_plugin_scope()->get( $this->add_show_pending( "/addons/{$addon_id}/plans.json" ) );
16503
 
16504
  if ( ! isset( $plans_result->error ) ) {
16505
  $plans = array();
16827
  'trial_promotion',
16828
  'trial_expired',
16829
  'activation_complete',
16830
+ 'license_expired',
16831
  ) );
16832
  break;
16833
  case 'changed':
17362
  * @return bool
17363
  */
17364
  private function _can_download_premium() {
17365
+ return $this->has_any_active_valid_license() ||
17366
  ( $this->is_trial() && ! $this->get_trial_plan()->is_free() );
17367
  }
17368
 
17665
 
17666
  $api = $this->get_api_site_or_plugin_scope();
17667
 
17668
+ $path = $this->add_show_pending( '/addons.json?enriched=true' );
17669
+
17670
  /**
17671
  * @since 1.2.1
17672
  *
17673
  * If there's a cached version of the add-ons and not asking
17674
  * for a flush, just use the currently stored add-ons.
17675
  */
17676
+ if ( ! $flush && $api->is_cached( $path ) ) {
17677
  $addons = self::get_all_addons();
17678
 
17679
  return $addons[ $this->_plugin->id ];
17680
  }
17681
 
17682
+ $result = $api->get( $path, $flush );
17683
 
17684
  $addons = array();
17685
  if ( $this->is_api_result_object( $result, 'plugins' ) &&
18495
  $vars = array( 'id' => $this->_module_id );
18496
 
18497
  if ( 'true' === fs_request_get( 'checkout', false ) ) {
18498
+ echo $this->apply_filters( 'templates/checkout.php', fs_get_template( 'checkout.php', $vars ) );
18499
  } else {
18500
+ echo $this->apply_filters( 'templates/pricing.php', fs_get_template( 'pricing.php', $vars ) );
18501
  }
18502
  }
18503
 
18515
  $this->_logger->entrance();
18516
 
18517
  $vars = array( 'id' => $this->_module_id );
18518
+
18519
+ /**
18520
+ * Added filter to the template to allow developers wrapping the template
18521
+ * in custom HTML (e.g. within a wizard/tabs).
18522
+ *
18523
+ * @author Vova Feldman (@svovaf)
18524
+ * @since 2.1.3
18525
+ */
18526
+ echo $this->apply_filters( 'templates/contact.php', fs_get_template( 'contact.php', $vars ) );
18527
  }
18528
 
18529
  #endregion ------------------------------------------------------------------------
18620
  * @return FS_Api
18621
  */
18622
  private function get_current_or_network_user_api_scope( $flush = false ) {
18623
+ if ( ! $this->_is_network_active ||
18624
+ ( isset( $this->_user ) && $this->_user instanceof FS_User )
18625
+ ) {
18626
  return $this->get_api_user_scope( $flush );
18627
  }
18628
 
18710
  * @author Vova Feldman (@svovaf)
18711
  * @since 1.0.9
18712
  *
18713
+ * @param FS_Plugin_Plan[] $plans
18714
  */
18715
  function _check_for_trial_plans( $plans ) {
18716
+ /**
18717
+ * For some reason core's do_action() flattens arrays when it has a single object item. Therefore, we need to restructure the array as expected.
18718
+ *
18719
+ * @author Vova Feldman (@svovaf)
18720
+ * @since 2.1.2
18721
+ */
18722
+ if ( ! is_array( $plans ) && is_object( $plans ) ) {
18723
+ $plans = array( $plans );
18724
+ }
18725
+
18726
  $this->_storage->has_trial_plan = FS_Plan_Manager::instance()->has_trial_plan( $plans );
18727
  }
18728
 
18829
 
18830
  // Show promotion if never shown before and 24 hours after initial activation with FS.
18831
  if ( ! $was_promotion_shown_before &&
18832
+ $this->_storage->install_timestamp > ( time() - $this->apply_filters( 'show_first_trial_after_n_sec', WP_FS__TIME_24_HOURS_IN_SEC ) )
18833
  ) {
18834
  return false;
18835
  }
18836
 
18837
  // OR if promotion was shown before, try showing it every 30 days.
18838
  if ( $was_promotion_shown_before &&
18839
+ $this->apply_filters( 'reshow_trial_after_every_n_sec', 30 * WP_FS__TIME_24_HOURS_IN_SEC ) > time() - $last_time_trial_promotion_shown
18840
  ) {
18841
  return false;
18842
  }
19461
  * @param array $request
19462
  * @param int $success_cache_expiration
19463
  * @param int $failure_cache_expiration
19464
+ * @param bool $maybe_enrich_request_for_debug
19465
  *
19466
  * @return WP_Error|array
19467
  */
19468
+ static function safe_remote_post(
19469
  &$url,
19470
  $request,
19471
  $success_cache_expiration = 0,
19472
+ $failure_cache_expiration = 0,
19473
+ $maybe_enrich_request_for_debug = true
19474
  ) {
19475
  $should_cache = ($success_cache_expiration + $failure_cache_expiration > 0);
19476
 
19481
  false;
19482
 
19483
  if ( false === $response ) {
19484
+ if ( $maybe_enrich_request_for_debug ) {
19485
+ self::enrich_request_for_debug( $url, $request );
19486
+ }
19487
 
19488
  $response = wp_remote_post( $url, $request );
19489
 
20238
  $icon_found = false;
20239
  $local_path = fs_normalize_path( "{$img_dir}/{$this->_slug}.png" );
20240
 
20241
+ if ( ! function_exists( 'get_filesystem_method' ) ) {
20242
+ require_once ABSPATH . 'wp-admin/includes/file.php';
20243
+ }
20244
+
20245
  $have_write_permissions = ( 'direct' === get_filesystem_method( array(), fs_normalize_path( $img_dir ) ) );
20246
 
20247
  /**
20758
  * @since 2.1.0
20759
  */
20760
  function _maybe_add_gdpr_optin_ajax_handler() {
20761
+ $this->add_ajax_action( 'fetch_is_marketing_required_flag_value', array( &$this, '_fetch_is_marketing_required_flag_value_ajax_action' ) );
 
 
20762
 
20763
  if ( FS_GDPR_Manager::instance()->is_opt_in_notice_shown() ) {
20764
  $this->add_gdpr_optin_ajax_handler_and_style();
20942
  }
20943
 
20944
  #endregion
20945
+
20946
+ #----------------------------------------------------------------------------------
20947
+ #region Helper
20948
+ #----------------------------------------------------------------------------------
20949
+
20950
+ /**
20951
+ * If running with a secret key, assume it's the developer and show pending plans as well.
20952
+ *
20953
+ * @author Vova Feldman (@svovaf)
20954
+ * @since 2.1.2
20955
+ *
20956
+ * @param string $path
20957
+ *
20958
+ * @return string
20959
+ */
20960
+ function add_show_pending( $path ) {
20961
+ if ( ! $this->has_secret_key() ) {
20962
+ return $path;
20963
+ }
20964
+
20965
+ return $path . ( false !== strpos( $path, '?' ) ? '&' : '?' ) . 'show_pending=true';
20966
+ }
20967
+
20968
+ #endregion
20969
  }
freemius/includes/class-fs-plugin-updater.php CHANGED
@@ -29,6 +29,11 @@
29
  * @since 1.1.8.1
30
  */
31
  private $_update_details;
 
 
 
 
 
32
 
33
  #--------------------------------------------------------------------------------
34
  #region Singleton
@@ -77,7 +82,7 @@
77
 
78
  $this->add_transient_filters();
79
 
80
- if ( ! $this->_fs->has_active_valid_license() ) {
81
  /**
82
  * If user has the premium plugin's code but do NOT have an active license,
83
  * encourage him to upgrade by showing that there's a new release, but instead
@@ -109,7 +114,7 @@
109
  add_filter( 'upgrader_post_install', array( &$this, '_maybe_update_folder_name' ), 10, 3 );
110
  }
111
 
112
- if ( ! $this->_fs->has_active_valid_license() ) {
113
  add_filter( 'wp_prepare_themes_for_js', array( &$this, 'change_theme_update_info_html' ), 10, 1 );
114
  }
115
  }
@@ -324,6 +329,46 @@
324
  (array) $this->_update_details;
325
  }
326
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
327
  return $transient_data;
328
  }
329
 
@@ -508,6 +553,138 @@
508
  return $res;
509
  }
510
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
511
  /**
512
  * Updates information on the "View version x.x details" page with custom data.
513
  *
29
  * @since 1.1.8.1
30
  */
31
  private $_update_details;
32
+ /**
33
+ * @var array
34
+ * @since 2.1.2
35
+ */
36
+ private $_translation_updates;
37
 
38
  #--------------------------------------------------------------------------------
39
  #region Singleton
82
 
83
  $this->add_transient_filters();
84
 
85
+ if ( ! $this->_fs->has_any_active_valid_license() ) {
86
  /**
87
  * If user has the premium plugin's code but do NOT have an active license,
88
  * encourage him to upgrade by showing that there's a new release, but instead
114
  add_filter( 'upgrader_post_install', array( &$this, '_maybe_update_folder_name' ), 10, 3 );
115
  }
116
 
117
+ if ( ! $this->_fs->has_any_active_valid_license() ) {
118
  add_filter( 'wp_prepare_themes_for_js', array( &$this, 'change_theme_update_info_html' ), 10, 1 );
119
  }
120
  }
329
  (array) $this->_update_details;
330
  }
331
 
332
+ $slug = $this->_fs->get_slug();
333
+
334
+ if ( $this->_fs->is_org_repo_compliant() && $this->_fs->is_freemium() ) {
335
+ if ( ! isset( $this->_translation_updates ) ) {
336
+ $this->_translation_updates = array();
337
+
338
+ if ( current_user_can( 'update_languages' ) ) {
339
+ $translation_updates = $this->fetch_wp_org_module_translation_updates( $module_type, $slug );
340
+ if ( ! empty( $translation_updates ) ) {
341
+ $this->_translation_updates = $translation_updates;
342
+ }
343
+ }
344
+ }
345
+
346
+ if ( ! empty( $this->_translation_updates ) ) {
347
+ $all_translation_updates = ( isset( $transient_data->translations ) && is_array( $transient_data->translations ) ) ?
348
+ $transient_data->translations :
349
+ array();
350
+
351
+ $current_plugin_translation_updates_map = array();
352
+ foreach ( $all_translation_updates as $key => $translation_update ) {
353
+ if ( $module_type === ( $translation_update['type'] . 's' ) && $slug === $translation_update['slug'] ) {
354
+ $current_plugin_translation_updates_map[ $translation_update['language'] ] = $translation_update;
355
+ unset( $all_translation_updates[ $key ] );
356
+ }
357
+ }
358
+
359
+ foreach ( $this->_translation_updates as $translation_update ) {
360
+ $lang = $translation_update['language'];
361
+ if ( ! isset( $current_plugin_translation_updates_map[ $lang ] ) ||
362
+ version_compare( $translation_update['version'], $current_plugin_translation_updates_map[ $lang ]['version'], '>' )
363
+ ) {
364
+ $current_plugin_translation_updates_map[ $lang ] = $translation_update;
365
+ }
366
+ }
367
+
368
+ $transient_data->translations = array_merge( $all_translation_updates, array_values( $current_plugin_translation_updates_map ) );
369
+ }
370
+ }
371
+
372
  return $transient_data;
373
  }
374
 
553
  return $res;
554
  }
555
 
556
+ /**
557
+ * Fetches module translation updates from wordpress.org.
558
+ *
559
+ * @author Leo Fajardo (@leorw)
560
+ * @since 2.1.2
561
+ *
562
+ * @param string $module_type
563
+ * @param string $slug
564
+ *
565
+ * @return array|null
566
+ */
567
+ private function fetch_wp_org_module_translation_updates( $module_type, $slug ) {
568
+ $plugin_data = $this->_fs->get_plugin_data();
569
+
570
+ $locales = array_values( get_available_languages() );
571
+ $locales = apply_filters( "{$module_type}_update_check_locales", $locales );
572
+ $locales = array_unique( $locales );
573
+
574
+ $plugin_basename = $this->_fs->get_plugin_basename();
575
+ if ( 'themes' === $module_type ) {
576
+ $plugin_basename = str_replace( '-premium', '', $plugin_basename );
577
+ }
578
+
579
+ global $wp_version;
580
+
581
+ $request_args = array(
582
+ 'timeout' => 15,
583
+ 'body' => array(
584
+ "{$module_type}" => json_encode(
585
+ array(
586
+ "{$module_type}" => array(
587
+ $plugin_basename => array(
588
+ 'Name' => trim( str_replace( '(Premium)', '', $plugin_data['Name'] ) ),
589
+ 'Author' => $plugin_data['Author'],
590
+ )
591
+ )
592
+ )
593
+ ),
594
+ 'translations' => json_encode( $this->get_installed_translations( $module_type, $slug ) ),
595
+ 'locale' => json_encode( $locales )
596
+ ),
597
+ 'user-agent' => ( 'WordPress/' . $wp_version . '; ' . home_url( '/' ) )
598
+ );
599
+
600
+ $url = "http://api.wordpress.org/{$module_type}/update-check/1.1/";
601
+ if ( $ssl = wp_http_supports( array( 'ssl' ) ) ) {
602
+ $url = set_url_scheme( $url, 'https' );
603
+ }
604
+
605
+ $raw_response = Freemius::safe_remote_post(
606
+ $url,
607
+ $request_args,
608
+ WP_FS__TIME_24_HOURS_IN_SEC,
609
+ WP_FS__TIME_12_HOURS_IN_SEC,
610
+ false
611
+ );
612
+
613
+ if ( is_wp_error( $raw_response ) ) {
614
+ return null;
615
+ }
616
+
617
+ $response = json_decode( wp_remote_retrieve_body( $raw_response ), true );
618
+
619
+ if ( ! is_array( $response ) ) {
620
+ return null;
621
+ }
622
+
623
+ if ( ! isset( $response['translations'] ) || empty( $response['translations'] ) ) {
624
+ return null;
625
+ }
626
+
627
+ return $response['translations'];
628
+ }
629
+
630
+ /**
631
+ * @author Leo Fajardo (@leorw)
632
+ * @since 2.1.2
633
+ *
634
+ * @param string $module_type
635
+ * @param string $slug
636
+ *
637
+ * @return array
638
+ */
639
+ private function get_installed_translations( $module_type, $slug ) {
640
+ if ( function_exists( 'wp_get_installed_translations' ) ) {
641
+ return wp_get_installed_translations( $module_type );
642
+ }
643
+
644
+ $dir = "/{$module_type}";
645
+
646
+ if ( ! is_dir( WP_LANG_DIR . $dir ) )
647
+ return array();
648
+
649
+ $files = scandir( WP_LANG_DIR . $dir );
650
+ if ( ! $files )
651
+ return array();
652
+
653
+ $language_data = array();
654
+
655
+ foreach ( $files as $file ) {
656
+ if ( 0 !== strpos( $file, $slug ) ) {
657
+ continue;
658
+ }
659
+
660
+ if ( '.' === $file[0] || is_dir( WP_LANG_DIR . "{$dir}/{$file}" ) ) {
661
+ continue;
662
+ }
663
+
664
+ if ( substr( $file, -3 ) !== '.po' ) {
665
+ continue;
666
+ }
667
+
668
+ if ( ! preg_match( '/(?:(.+)-)?([a-z]{2,3}(?:_[A-Z]{2})?(?:_[a-z0-9]+)?).po/', $file, $match ) ) {
669
+ continue;
670
+ }
671
+
672
+ if ( ! in_array( substr( $file, 0, -3 ) . '.mo', $files ) ) {
673
+ continue;
674
+ }
675
+
676
+ list( , $textdomain, $language ) = $match;
677
+
678
+ if ( '' === $textdomain ) {
679
+ $textdomain = 'default';
680
+ }
681
+
682
+ $language_data[ $textdomain ][ $language ] = wp_get_pomo_file_data( WP_LANG_DIR . "{$dir}/{$file}" );
683
+ }
684
+
685
+ return $language_data;
686
+ }
687
+
688
  /**
689
  * Updates information on the "View version x.x details" page with custom data.
690
  *
freemius/includes/customizer/class-fs-customizer-upsell-control.php CHANGED
@@ -59,7 +59,7 @@
59
  $this->fs->get_upgrade_url();
60
 
61
  // Load features.
62
- $pricing = $this->fs->get_api_plugin_scope()->get( 'pricing.json' );
63
 
64
  if ( $this->fs->is_api_result_object( $pricing, 'plans' ) ) {
65
  // Add support features.
59
  $this->fs->get_upgrade_url();
60
 
61
  // Load features.
62
+ $pricing = $this->fs->get_api_plugin_scope()->get( $this->fs->add_show_pending( "pricing.json" ) );
63
 
64
  if ( $this->fs->is_api_result_object( $pricing, 'plans' ) ) {
65
  // Add support features.
freemius/includes/entities/class-fs-site.php CHANGED
@@ -150,6 +150,7 @@
150
  fs_starts_with( $subdomain, 'local.' ) ||
151
  fs_starts_with( $subdomain, 'dev.' ) ||
152
  fs_starts_with( $subdomain, 'test.' ) ||
 
153
  fs_starts_with( $subdomain, 'staging.' ) ||
154
 
155
  // Ends with.
@@ -171,7 +172,9 @@
171
  ( fs_ends_with($subdomain, 'pantheonsite.io') &&
172
  (fs_starts_with($subdomain, 'test-') || fs_starts_with($subdomain, 'dev-'))) ||
173
  // Cloudways
174
- fs_ends_with( $subdomain, '.cloudwaysapps.com' )
 
 
175
  );
176
  }
177
 
150
  fs_starts_with( $subdomain, 'local.' ) ||
151
  fs_starts_with( $subdomain, 'dev.' ) ||
152
  fs_starts_with( $subdomain, 'test.' ) ||
153
+ fs_starts_with( $subdomain, 'stage.' ) ||
154
  fs_starts_with( $subdomain, 'staging.' ) ||
155
 
156
  // Ends with.
172
  ( fs_ends_with($subdomain, 'pantheonsite.io') &&
173
  (fs_starts_with($subdomain, 'test-') || fs_starts_with($subdomain, 'dev-'))) ||
174
  // Cloudways
175
+ fs_ends_with( $subdomain, '.cloudwaysapps.com' ) ||
176
+ // Kinsta
177
+ (fs_ends_with($subdomain, '.kinsta.com') && fs_starts_with($subdomain, 'staging-'))
178
  );
179
  }
180
 
freemius/includes/fs-plugin-info-dialog.php CHANGED
@@ -101,7 +101,7 @@
101
  $has_features = false;
102
  $plans = false;
103
 
104
- $result = $this->_fs->get_api_plugin_scope()->get( "/addons/{$selected_addon->id}/pricing.json?type=visible" );
105
 
106
  if ( ! isset( $result->error ) ) {
107
  $plans = $result->plans;
@@ -165,6 +165,8 @@
165
  // Plugin is missing, not on Freemius nor WP.org.
166
  $data->wp_org_missing = true;
167
  }
 
 
168
  } else {
169
  $data->wp_org_missing = false;
170
 
@@ -183,12 +185,7 @@
183
 
184
  // Fetch as much as possible info from local files.
185
  $plugin_local_data = $this->_fs->get_plugin_data();
186
- $data->name = $selected_addon->title;
187
  $data->author = $plugin_local_data['Author'];
188
- $view_vars = array( 'plugin' => $selected_addon );
189
- $data->sections = array(
190
- 'description' => fs_get_template( '/plugin-info/description.php', $view_vars ),
191
- );
192
 
193
  if ( ! empty( $selected_addon->info->banner_url ) ) {
194
  $data->banners = array(
@@ -206,7 +203,7 @@
206
 
207
  if ( is_object( $latest ) ) {
208
  $data->version = $latest->version;
209
- $data->last_updated = ! is_null( $latest->updated ) ? $latest->updated : $latest->created;
210
  $data->requires = $latest->requires_platform_version;
211
  $data->tested = $latest->tested_up_to_version;
212
  } else {
@@ -217,6 +214,12 @@
217
  }
218
  }
219
 
 
 
 
 
 
 
220
  if ( $has_pricing ) {
221
  // Add plans to data.
222
  $data->plans = $plans;
@@ -950,7 +953,7 @@
950
  </li>
951
  <?php
952
  }
953
- if ( ! empty( $api->slug ) && empty( $api->is_wp_org_compliant ) ) {
954
  ?>
955
  <li><a target="_blank"
956
  href="https://wordpress.org/plugins/<?php echo $api->slug; ?>/"><?php fs_esc_html_echo_inline( 'WordPress.org Plugin Page', 'wp-org-plugin-page', $api->slug ) ?>
@@ -1094,7 +1097,7 @@
1094
  echo "</div>\n"; // #plugin-information-scrollable
1095
  echo "<div id='$tab-footer'>\n";
1096
 
1097
- if ( ! empty( $api->checkout_link ) ) {
1098
  echo $this->get_checkout_cta( $api );
1099
  }
1100
 
101
  $has_features = false;
102
  $plans = false;
103
 
104
+ $result = $this->_fs->get_api_plugin_scope()->get( $this->_fs->add_show_pending( "/addons/{$selected_addon->id}/pricing.json?type=visible" ) );
105
 
106
  if ( ! isset( $result->error ) ) {
107
  $plans = $result->plans;
165
  // Plugin is missing, not on Freemius nor WP.org.
166
  $data->wp_org_missing = true;
167
  }
168
+
169
+ $data->fs_missing = ( ! $has_free_plan || $data->wp_org_missing );
170
  } else {
171
  $data->wp_org_missing = false;
172
 
185
 
186
  // Fetch as much as possible info from local files.
187
  $plugin_local_data = $this->_fs->get_plugin_data();
 
188
  $data->author = $plugin_local_data['Author'];
 
 
 
 
189
 
190
  if ( ! empty( $selected_addon->info->banner_url ) ) {
191
  $data->banners = array(
203
 
204
  if ( is_object( $latest ) ) {
205
  $data->version = $latest->version;
206
+ $data->last_updated = $latest->created;
207
  $data->requires = $latest->requires_platform_version;
208
  $data->tested = $latest->tested_up_to_version;
209
  } else {
214
  }
215
  }
216
 
217
+ $data->name = $selected_addon->title;
218
+ $view_vars = array( 'plugin' => $selected_addon );
219
+ $data->sections = array(
220
+ 'description' => fs_get_template( '/plugin-info/description.php', $view_vars ),
221
+ );
222
+
223
  if ( $has_pricing ) {
224
  // Add plans to data.
225
  $data->plans = $plans;
953
  </li>
954
  <?php
955
  }
956
+ if ( ! empty( $api->slug ) && true == $api->is_wp_org_compliant ) {
957
  ?>
958
  <li><a target="_blank"
959
  href="https://wordpress.org/plugins/<?php echo $api->slug; ?>/"><?php fs_esc_html_echo_inline( 'WordPress.org Plugin Page', 'wp-org-plugin-page', $api->slug ) ?>
1097
  echo "</div>\n"; // #plugin-information-scrollable
1098
  echo "<div id='$tab-footer'>\n";
1099
 
1100
+ if ( $api->has_paid_plan && ! empty( $api->checkout_link ) ) {
1101
  echo $this->get_checkout_cta( $api );
1102
  }
1103
 
freemius/package.json CHANGED
@@ -4,7 +4,7 @@
4
  "author": "Freemius, Inc.",
5
  "license": "GPL-3.0",
6
  "homepage": "https://freemius.com",
7
- "version": "1.2.3",
8
  "main": "gulpfile.js",
9
  "dependencies": {},
10
  "scripts": {
4
  "author": "Freemius, Inc.",
5
  "license": "GPL-3.0",
6
  "homepage": "https://freemius.com",
7
+ "version": "2.1.2",
8
  "main": "gulpfile.js",
9
  "dependencies": {},
10
  "scripts": {
freemius/start.php CHANGED
@@ -15,7 +15,7 @@
15
  *
16
  * @var string
17
  */
18
- $this_sdk_version = '2.1.1';
19
 
20
  #region SDK Selection Logic --------------------------------------------------------------------
21
 
15
  *
16
  * @var string
17
  */
18
+ $this_sdk_version = '2.1.3';
19
 
20
  #region SDK Selection Logic --------------------------------------------------------------------
21
 
freemius/templates/account/partials/addon.php CHANGED
@@ -61,7 +61,7 @@
61
  $plan = $fs_addon->get_plan();
62
  $is_active_subscription = ( is_object( $subscription ) && $subscription->is_active() );
63
  $is_paid_trial = $fs_addon->is_paid_trial();
64
- $show_upgrade = ( ! $is_paying && ! $is_paid_trial && ! $fs_addon->_has_premium_license() );
65
  $is_current_license_expired = is_object( $license ) && $license->is_expired();
66
  }
67
  ?>
@@ -220,7 +220,7 @@
220
  }
221
 
222
  if ( 0 == count( $buttons ) ) {
223
- if ( $fs_addon->is_premium() ) {
224
  $fs_addon->_add_license_activation_dialog_box();
225
 
226
  $buttons[] = fs_ui_get_action_button(
61
  $plan = $fs_addon->get_plan();
62
  $is_active_subscription = ( is_object( $subscription ) && $subscription->is_active() );
63
  $is_paid_trial = $fs_addon->is_paid_trial();
64
+ $show_upgrade = ( $fs_addon->has_paid_plan() && ! $is_paying && ! $is_paid_trial && ! $fs_addon->_has_premium_license() );
65
  $is_current_license_expired = is_object( $license ) && $license->is_expired();
66
  }
67
  ?>
220
  }
221
 
222
  if ( 0 == count( $buttons ) ) {
223
+ if ( $show_upgrade && $fs_addon->is_premium() ) {
224
  $fs_addon->_add_license_activation_dialog_box();
225
 
226
  $buttons[] = fs_ui_get_action_button(
freemius/templates/add-ons.php CHANGED
@@ -55,7 +55,7 @@
55
  $has_free_plan = false;
56
  $has_paid_plan = false;
57
 
58
- $result = $fs->get_api_plugin_scope()->get( "/addons/{$addon->id}/pricing.json?type=visible" );
59
  if ( ! isset( $result->error ) ) {
60
  $plans = $result->plans;
61
 
@@ -89,6 +89,10 @@
89
 
90
  }
91
  }
 
 
 
 
92
  }
93
  ?>
94
  <li class="fs-card fs-addon" data-slug="<?php echo $addon->slug ?>">
55
  $has_free_plan = false;
56
  $has_paid_plan = false;
57
 
58
+ $result = $fs->get_api_plugin_scope()->get( $fs->add_show_pending( "/addons/{$addon->id}/pricing.json?type=visible" ) );
59
  if ( ! isset( $result->error ) ) {
60
  $plans = $result->plans;
61
 
89
 
90
  }
91
  }
92
+
93
+ if ( ! $has_paid_plan && ! $has_free_plan ) {
94
+ continue;
95
+ }
96
  }
97
  ?>
98
  <li class="fs-card fs-addon" data-slug="<?php echo $addon->slug ?>">
freemius/templates/all-admin-notice.php DELETED
@@ -1,39 +0,0 @@
1
- <?php
2
- /**
3
- * @package Freemius
4
- * @copyright Copyright (c) 2015, Freemius, Inc.
5
- * @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
6
- * @since 1.0.3
7
- */
8
-
9
- if ( ! defined( 'ABSPATH' ) ) {
10
- exit;
11
- }
12
-
13
- /**
14
- * @var array $VARS
15
- */
16
- ?>
17
- <div class="<?php
18
- switch ($VARS['type']) {
19
- case 'error':
20
- echo 'error form-invalid';
21
- break;
22
- case 'update-nag':
23
- echo 'update-nag ';
24
- break;
25
- case 'update':
26
- case 'success':
27
- default:
28
- echo 'updated success';
29
- break;
30
- }
31
- ?> fs-notice">
32
- <?php if ('update-nag' !== $VARS['type']) : ?><p><?php endif ?>
33
- <?php if (!empty($VARS['title'])) : ?>
34
- <b><?php echo $VARS['title'] ?></b>
35
- <?php endif ?>
36
- <?php echo $VARS['message'] ?>
37
- <?php if ('update-nag' !== $VARS['type']) : ?></p><?php endif ?>
38
- <?php if ($VARS['sticky']) : ?><i class="dashicons dashicons-no"></i><?php endif ?>
39
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
freemius/templates/checkout-legacy.php DELETED
@@ -1,242 +0,0 @@
1
- <?php
2
- /**
3
- * @package Freemius
4
- * @copyright Copyright (c) 2015, Freemius, Inc.
5
- * @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
6
- * @since 1.0.3
7
- */
8
-
9
- if ( ! defined( 'ABSPATH' ) ) {
10
- exit;
11
- }
12
-
13
- wp_enqueue_script( 'jquery' );
14
- wp_enqueue_script( 'json2' );
15
- fs_enqueue_local_script( 'postmessage', 'nojquery.ba-postmessage.min.js' );
16
- fs_enqueue_local_script( 'fs-postmessage', 'postmessage.js' );
17
- fs_enqueue_local_style( 'fs_common', '/admin/common.css' );
18
-
19
- /**
20
- * @var array $VARS
21
- */
22
- $slug = $VARS['slug'];
23
- $fs = freemius( $slug );
24
-
25
- $timestamp = time();
26
-
27
- $context_params = array(
28
- 'plugin_id' => $fs->get_id(),
29
- 'plugin_public_key' => $fs->get_public_key(),
30
- 'plugin_version' => $fs->get_plugin_version(),
31
- );
32
-
33
- // Get site context secure params.
34
- if ( $fs->is_registered() ) {
35
- $site = $fs->get_site();
36
- $plugin_id = fs_request_get( 'plugin_id', $fs->get_id() );
37
-
38
- if ( $plugin_id != $fs->get_id() ) {
39
- if ( $fs->is_addon_activated( $plugin_id ) ) {
40
- $fs_addon = Freemius::get_instance_by_id( $plugin_id );
41
- $site = $fs_addon->get_site();
42
- }
43
- }
44
-
45
- $context_params = array_merge( $context_params, FS_Security::instance()->get_context_params(
46
- $site,
47
- $timestamp,
48
- 'checkout'
49
- ) );
50
- } else {
51
- $current_user = Freemius::_get_current_wp_user();
52
-
53
- // Add site and user info to the request, this information
54
- // is NOT being stored unless the user complete the purchase
55
- // and agrees to the TOS.
56
- $context_params = array_merge( $context_params, array(
57
- 'user_firstname' => $current_user->user_firstname,
58
- 'user_lastname' => $current_user->user_lastname,
59
- 'user_email' => $current_user->user_email,
60
- 'home_url' => home_url(),
61
- ) );
62
-
63
- $fs_user = Freemius::_get_user_by_email( $current_user->user_email );
64
-
65
- if ( is_object( $fs_user ) ) {
66
- $context_params = array_merge( $context_params, FS_Security::instance()->get_context_params(
67
- $fs_user,
68
- $timestamp,
69
- 'checkout'
70
- ) );
71
- }
72
- }
73
-
74
- if ( $fs->is_payments_sandbox() ) {
75
- // Append plugin secure token for sandbox mode authentication.
76
- $context_params['sandbox'] = FS_Security::instance()->get_secure_token(
77
- $fs->get_plugin(),
78
- $timestamp,
79
- 'checkout'
80
- );
81
-
82
- /**
83
- * @since 1.1.7.3 Add security timestamp for sandbox even for anonymous user.
84
- */
85
- if ( empty( $context_params['s_ctx_ts'] ) ) {
86
- $context_params['s_ctx_ts'] = $timestamp;
87
- }
88
- }
89
-
90
- $return_url = $fs->_get_sync_license_url( isset( $_GET['plugin_id'] ) ? $_GET['plugin_id'] : $fs->get_id() );
91
-
92
- $query_params = array_merge( $context_params, $_GET, array(
93
- // Current plugin version.
94
- 'plugin_version' => $fs->get_plugin_version(),
95
- 'sdk_version' => WP_FS__SDK_VERSION,
96
- 'return_url' => $return_url,
97
- // Admin CSS URL for style/design competability.
98
- // 'wp_admin_css' => get_bloginfo('wpurl') . "/wp-admin/load-styles.php?c=1&load=buttons,wp-admin,dashicons",
99
- ) );
100
- ?>
101
- <div id="fs_checkout" class="wrap" style="margin: 0 0 -65px -20px;">
102
- <div id="iframe"></div>
103
- <script type="text/javascript">
104
- // http://stackoverflow.com/questions/4583703/jquery-post-request-not-ajax
105
- jQuery(function ($) {
106
- $.extend({
107
- form: function (url, data, method) {
108
- if (method == null) method = 'POST';
109
- if (data == null) data = {};
110
-
111
- var form = $('<form>').attr({
112
- method: method,
113
- action: url
114
- }).css({
115
- display: 'none'
116
- });
117
-
118
- var addData = function (name, data) {
119
- if ($.isArray(data)) {
120
- for (var i = 0; i < data.length; i++) {
121
- var value = data[i];
122
- addData(name + '[]', value);
123
- }
124
- } else if (typeof data === 'object') {
125
- for (var key in data) {
126
- if (data.hasOwnProperty(key)) {
127
- addData(name + '[' + key + ']', data[key]);
128
- }
129
- }
130
- } else if (data != null) {
131
- form.append($('<input>').attr({
132
- type : 'hidden',
133
- name : String(name),
134
- value: String(data)
135
- }));
136
- }
137
- };
138
-
139
- for (var key in data) {
140
- if (data.hasOwnProperty(key)) {
141
- addData(key, data[key]);
142
- }
143
- }
144
-
145
- return form.appendTo('body');
146
- }
147
- });
148
- });
149
-
150
- (function ($) {
151
- $(function () {
152
-
153
- var
154
- // Keep track of the iframe height.
155
- iframe_height = 800,
156
- base_url = '<?php echo WP_FS__ADDRESS ?>',
157
- // Pass the parent page URL into the Iframe in a meaningful way (this URL could be
158
- // passed via query string or hard coded into the child page, it depends on your needs).
159
- src = base_url + '/checkout/?<?php echo ( isset( $_REQUEST['XDEBUG_SESSION'] ) ? 'XDEBUG_SESSION=' . $_REQUEST['XDEBUG_SESSION'] . '&' : '' ) . http_build_query( $query_params ) ?>#' + encodeURIComponent(document.location.href),
160
-
161
- // Append the Iframe into the DOM.
162
- iframe = $('<iframe " src="' + src + '" width="100%" height="' + iframe_height + 'px" scrolling="no" frameborder="0" style="background: transparent;"><\/iframe>')
163
- .appendTo('#iframe');
164
-
165
- FS.PostMessage.init(base_url, [iframe[0]]);
166
- FS.PostMessage.receiveOnce('height', function (data) {
167
- var h = data.height;
168
- if (!isNaN(h) && h > 0 && h != iframe_height) {
169
- iframe_height = h;
170
- iframe.height(iframe_height + 'px');
171
-
172
- FS.PostMessage.postScroll(iframe[0]);
173
- }
174
- });
175
-
176
- FS.PostMessage.receiveOnce('install', function (data) {
177
- // Post data to activation URL.
178
- $.form('<?php echo fs_nonce_url( $fs->_get_admin_page_url( 'account', array(
179
- 'fs_action' => $slug . '_activate_new',
180
- 'plugin_id' => isset( $_GET['plugin_id'] ) ? $_GET['plugin_id'] : $fs->get_id()
181
- ) ), $slug . '_activate_new' ) ?>', {
182
- user_id : data.user.id,
183
- user_secret_key : data.user.secret_key,
184
- user_public_key : data.user.public_key,
185
- install_id : data.install.id,
186
- install_secret_key: data.install.secret_key,
187
- install_public_key: data.install.public_key
188
- }).submit();
189
- });
190
-
191
- FS.PostMessage.receiveOnce('pending_activation', function (data) {
192
- $.form('<?php echo fs_nonce_url( $fs->_get_admin_page_url( 'account', array(
193
- 'fs_action' => $slug . '_activate_new',
194
- 'plugin_id' => fs_request_get( 'plugin_id', $fs->get_id() ),
195
- 'pending_activation' => true,
196
- ) ), $slug . '_activate_new' ) ?>', {
197
- user_email: data.user_email
198
- }).submit();
199
- });
200
-
201
- FS.PostMessage.receiveOnce('get_context', function () {
202
- console.debug('receiveOnce', 'get_context');
203
-
204
- // If the user didn't connect his account with Freemius,
205
- // once he accepts the Terms of Service and Privacy Policy,
206
- // and then click the purchase button, the context information
207
- // of the user will be shared with Freemius in order to complete the
208
- // purchase workflow and activate the license for the right user.
209
- <?php $install_data = array_merge( $fs->get_opt_in_params(),
210
- array(
211
- 'activation_url' => fs_nonce_url( $fs->_get_admin_page_url( '',
212
- array(
213
- 'fs_action' => $slug . '_activate_new',
214
- 'plugin_id' => fs_request_get( 'plugin_id', $fs->get_id() ),
215
-
216
- ) ),
217
- $slug . '_activate_new' )
218
- ) ) ?>
219
- FS.PostMessage.post('context', <?php echo json_encode( $install_data ) ?>, iframe[0]);
220
- });
221
-
222
- FS.PostMessage.receiveOnce('get_dimensions', function (data) {
223
- console.debug('receiveOnce', 'get_dimensions');
224
-
225
- FS.PostMessage.post('dimensions', {
226
- height : $(document.body).height(),
227
- scrollTop: $(document).scrollTop()
228
- }, iframe[0]);
229
- });
230
- });
231
- })(jQuery);
232
- </script>
233
- </div>
234
- <?php
235
- $params = array(
236
- 'page' => 'checkout',
237
- 'module_id' => $fs->get_id(),
238
- 'module_slug' => $slug,
239
- 'module_version' => $fs->get_plugin_version(),
240
- );
241
- fs_require_template( 'powered-by.php', $params );
242
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
freemius/templates/checkout.php CHANGED
@@ -121,7 +121,7 @@
121
 
122
  $fs_user = Freemius::_get_user_by_email( $current_user->user_email );
123
 
124
- if ( is_object( $fs_user ) ) {
125
  $context_params = array_merge( $context_params, FS_Security::instance()->get_context_params(
126
  $fs_user,
127
  $timestamp,
@@ -233,7 +233,7 @@
233
  // passed via query string or hard coded into the child page, it depends on your needs).
234
  src = base_url + '/?<?php echo http_build_query( $query_params ) ?>#' + encodeURIComponent(document.location.href),
235
  // Append the i-frame into the DOM.
236
- frame = $('<i' + 'frame " src="' + src + '" width="100%" height="' + frame_height + 'px" scrolling="no" frameborder="0" style="background: transparent;"><\/i' + 'frame>')
237
  .appendTo('#frame');
238
 
239
  FS.PostMessage.init(base_url, [frame[0]]);
121
 
122
  $fs_user = Freemius::_get_user_by_email( $current_user->user_email );
123
 
124
+ if ( is_object( $fs_user ) && $fs_user->is_verified() ) {
125
  $context_params = array_merge( $context_params, FS_Security::instance()->get_context_params(
126
  $fs_user,
127
  $timestamp,
233
  // passed via query string or hard coded into the child page, it depends on your needs).
234
  src = base_url + '/?<?php echo http_build_query( $query_params ) ?>#' + encodeURIComponent(document.location.href),
235
  // Append the i-frame into the DOM.
236
+ frame = $('<i' + 'frame " src="' + src + '" width="100%" height="' + frame_height + 'px" scrolling="no" frameborder="0" style="background: transparent; width: 1px; min-width: 100%;"><\/i' + 'frame>')
237
  .appendTo('#frame');
238
 
239
  FS.PostMessage.init(base_url, [frame[0]]);
freemius/templates/connect.php CHANGED
@@ -253,6 +253,17 @@
253
  <a class="show-license-resend-modal show-license-resend-modal-<?php echo $fs->get_unique_affix() ?>"
254
  href="#"><?php fs_esc_html_echo_inline( "Can't find your license key?", 'cant-find-license-key', $slug ); ?></a>
255
  </div>
 
 
 
 
 
 
 
 
 
 
 
256
  <?php
257
  $send_updates_text = sprintf(
258
  '%s<span class="action-description"> - %s</span>',
@@ -718,11 +729,14 @@
718
  // Redirect to the "Account" page and sync the license.
719
  window.location.href = resultObj.next_page;
720
  } else {
 
 
721
  // Show error.
722
  $('.fs-content').prepend('<p class="fs-error">' + (resultObj.error.message ? resultObj.error.message : resultObj.error) + '</p>');
723
-
724
- resetLoadingMode();
725
  }
 
 
 
726
  }
727
  });
728
 
253
  <a class="show-license-resend-modal show-license-resend-modal-<?php echo $fs->get_unique_affix() ?>"
254
  href="#"><?php fs_esc_html_echo_inline( "Can't find your license key?", 'cant-find-license-key', $slug ); ?></a>
255
  </div>
256
+
257
+ <?php
258
+ /**
259
+ * Allows developers to include custom HTML after the license input container.
260
+ *
261
+ * @author Vova Feldman
262
+ * @since 2.1.2
263
+ */
264
+ $fs->do_action( 'connect/after_license_input' );
265
+ ?>
266
+
267
  <?php
268
  $send_updates_text = sprintf(
269
  '%s<span class="action-description"> - %s</span>',
729
  // Redirect to the "Account" page and sync the license.
730
  window.location.href = resultObj.next_page;
731
  } else {
732
+ resetLoadingMode();
733
+
734
  // Show error.
735
  $('.fs-content').prepend('<p class="fs-error">' + (resultObj.error.message ? resultObj.error.message : resultObj.error) + '</p>');
 
 
736
  }
737
+ },
738
+ error: function () {
739
+ resetLoadingMode();
740
  }
741
  });
742
 
freemius/templates/contact.php CHANGED
@@ -98,7 +98,7 @@
98
  src = base_url + '/contact/?<?php echo http_build_query($query_params) ?>#' + encodeURIComponent(document.location.href),
99
 
100
  // Append the i-frame into the DOM.
101
- frame = $('<i' + 'frame " src="' + src + '" width="100%" height="' + frame_height + 'px" scrolling="no" frameborder="0" style="background: transparent;"><\/i' + 'frame>')
102
  .appendTo('#frame');
103
 
104
  FS.PostMessage.init(base_url);
98
  src = base_url + '/contact/?<?php echo http_build_query($query_params) ?>#' + encodeURIComponent(document.location.href),
99
 
100
  // Append the i-frame into the DOM.
101
+ frame = $('<i' + 'frame " src="' + src + '" width="100%" height="' + frame_height + 'px" scrolling="no" frameborder="0" style="background: transparent; width: 1px; min-width: 100%;"><\/i' + 'frame>')
102
  .appendTo('#frame');
103
 
104
  FS.PostMessage.init(base_url);
freemius/templates/debug.php CHANGED
@@ -86,6 +86,16 @@
86
  <button class="button button-primary"><?php fs_esc_html_echo_inline( 'Sync Data From Server' ) ?></button>
87
  </form>
88
  </td>
 
 
 
 
 
 
 
 
 
 
89
  <td>
90
  <button id="fs_load_db_option" class="button"><?php fs_esc_html_echo_inline( 'Load DB Option' ) ?></button>
91
  </td>
86
  <button class="button button-primary"><?php fs_esc_html_echo_inline( 'Sync Data From Server' ) ?></button>
87
  </form>
88
  </td>
89
+ <?php if ( fs_is_network_admin() && true !== $fs_options->get_option( 'ms_migration_complete', false, true ) ) : ?>
90
+ <td>
91
+ <!-- Migrate Options to Network -->
92
+ <form action="" method="POST">
93
+ <input type="hidden" name="fs_action" value="migrate_options_to_network">
94
+ <?php wp_nonce_field( 'migrate_options_to_network' ) ?>
95
+ <button class="button button-primary"><?php fs_esc_html_echo_inline( 'Migrate Options to Network' ) ?></button>
96
+ </form>
97
+ </td>
98
+ <?php endif ?>
99
  <td>
100
  <button id="fs_load_db_option" class="button"><?php fs_esc_html_echo_inline( 'Load DB Option' ) ?></button>
101
  </td>
freemius/templates/forms/deactivation/form.php CHANGED
@@ -94,7 +94,7 @@ HTML;
94
  isAnonymous = <?php echo ( $is_anonymous ? 'true' : 'false' ); ?>,
95
  otherReasonID = <?php echo Freemius::REASON_OTHER; ?>,
96
  dontShareDataReasonID = <?php echo Freemius::REASON_DONT_LIKE_TO_SHARE_MY_INFORMATION; ?>,
97
- deleteThemeUpdateData = <?php echo $fs->is_theme() && $fs->is_premium() && ! $fs->has_active_valid_license() ? 'true' : 'false' ?>;
98
 
99
  $modal.appendTo($('body'));
100
 
94
  isAnonymous = <?php echo ( $is_anonymous ? 'true' : 'false' ); ?>,
95
  otherReasonID = <?php echo Freemius::REASON_OTHER; ?>,
96
  dontShareDataReasonID = <?php echo Freemius::REASON_DONT_LIKE_TO_SHARE_MY_INFORMATION; ?>,
97
+ deleteThemeUpdateData = <?php echo $fs->is_theme() && $fs->is_premium() && ! $fs->has_any_active_valid_license() ? 'true' : 'false' ?>;
98
 
99
  $modal.appendTo($('body'));
100
 
freemius/templates/pricing.php CHANGED
@@ -127,7 +127,7 @@
127
  src = base_url + '/pricing/?<?php echo http_build_query( $query_params ) ?>#' + encodeURIComponent(document.location.href),
128
 
129
  // Append the I-frame into the DOM.
130
- frame = $('<i' + 'frame " src="' + src + '" width="100%" height="' + frame_height + 'px" scrolling="no" frameborder="0" style="background: transparent;"><\/i' + 'frame>')
131
  .appendTo('#frame');
132
 
133
  FS.PostMessage.init(base_url, [frame[0]]);
127
  src = base_url + '/pricing/?<?php echo http_build_query( $query_params ) ?>#' + encodeURIComponent(document.location.href),
128
 
129
  // Append the I-frame into the DOM.
130
+ frame = $('<i' + 'frame " src="' + src + '" width="100%" height="' + frame_height + 'px" scrolling="no" frameborder="0" style="background: transparent; width: 1px; min-width: 100%;"><\/i' + 'frame>')
131
  .appendTo('#frame');
132
 
133
  FS.PostMessage.init(base_url, [frame[0]]);
freemius/templates/tabs.php CHANGED
@@ -26,7 +26,11 @@
26
  foreach ( $menu_items as $priority => $items ) {
27
  foreach ( $items as $item ) {
28
  if ( ! $item['show_submenu'] ) {
29
- if ( ! $is_free_wp_org_theme || ! $fs->is_submenu_item_visible( $item['menu_slug'], true ) ) {
 
 
 
 
30
  continue;
31
  }
32
  }
26
  foreach ( $menu_items as $priority => $items ) {
27
  foreach ( $items as $item ) {
28
  if ( ! $item['show_submenu'] ) {
29
+ $submenu_name = ('wp-support-forum' === $item['menu_slug']) ?
30
+ 'support' :
31
+ $item['menu_slug'];
32
+
33
+ if ( ! $is_free_wp_org_theme || ! $fs->is_submenu_item_visible( $submenu_name, true ) ) {
34
  continue;
35
  }
36
  }
plugin.php CHANGED
@@ -5,7 +5,7 @@
5
  * Description: Essential Gutenberg blocks in one plugin. Simple, flexible, and customizable.
6
  * Author: Gambit Technologies, Inc
7
  * Author URI: http://gambit.ph
8
- * Version: 0.5
9
  *
10
  * @package Stackable
11
  */
5
  * Description: Essential Gutenberg blocks in one plugin. Simple, flexible, and customizable.
6
  * Author: Gambit Technologies, Inc
7
  * Author URI: http://gambit.ph
8
+ * Version: 0.6
9
  *
10
  * @package Stackable
11
  */
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: gutenberg, blocks, gutenberg blocks, editor, addon, add on, add-on, gutenb
4
  Requires at least: 4.8
5
  Tested up to: 4.9.6
6
  Requires PHP: 5.3
7
- Stable tag: 0.5
8
  License: GPLv3
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -155,9 +155,15 @@ Nope. Stackable only works with Gutenberg.
155
 
156
  == Changelog ==
157
 
 
 
 
 
 
158
  = 0.5 =
159
- * Fixed: compatibility with Gutenberg 3.1.0
160
  * Fixed: Button line-height with Gutenberg 3.1.0
 
161
 
162
  = 0.4 =
163
  * New: Card Block
4
  Requires at least: 4.8
5
  Tested up to: 4.9.6
6
  Requires PHP: 5.3
7
+ Stable tag: 0.6
8
  License: GPLv3
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
10
 
155
 
156
  == Changelog ==
157
 
158
+ = 0.6 =
159
+ * New: Grouped together all Stackable blocks
160
+ * Fixed: Compatibility with Gutenberg 3.7.0
161
+ * Updated: Freemius SDK
162
+
163
  = 0.5 =
164
+ * Fixed: Compatibility with Gutenberg 3.1.0
165
  * Fixed: Button line-height with Gutenberg 3.1.0
166
+ * Updated: Freemius SDK
167
 
168
  = 0.4 =
169
  * New: Card Block
src/block/blockquote/index.js CHANGED
@@ -14,7 +14,6 @@ import {
14
  registerBlockType,
15
  __,
16
  PanelColor,
17
- withState,
18
  InspectorControls,
19
  RichText,
20
  ColorPalette,
@@ -105,7 +104,7 @@ registerBlockType( 'ugb/blockquote', {
105
  // Block name. Block names must be string that contains a namespace prefix. Example: my-plugin/my-custom-block.
106
  title: __( 'Blockquote' ), // Block title.
107
  icon: QuoteIcon, // Block icon from Dashicons → https://developer.wordpress.org/resource/dashicons/.
108
- category: 'common', // Block category — Group blocks together based on common traits E.g. common, formatting, layout widgets, embed.
109
  keywords: [
110
  __( 'Blockquote' ),
111
  __( 'Stackable' ),
@@ -128,7 +127,7 @@ registerBlockType( 'ugb/blockquote', {
128
  },
129
 
130
  // The "edit" property must be a valid function.
131
- edit: withState( { editable: 'content', } )( edit ),
132
 
133
  // The "save" property must be specified and must be a valid function.
134
  save: save,
14
  registerBlockType,
15
  __,
16
  PanelColor,
 
17
  InspectorControls,
18
  RichText,
19
  ColorPalette,
104
  // Block name. Block names must be string that contains a namespace prefix. Example: my-plugin/my-custom-block.
105
  title: __( 'Blockquote' ), // Block title.
106
  icon: QuoteIcon, // Block icon from Dashicons → https://developer.wordpress.org/resource/dashicons/.
107
+ category: 'stackable-ultimate-gutenberg-blocks', // Block category — Group blocks together based on common traits E.g. common, formatting, layout widgets, embed.
108
  keywords: [
109
  __( 'Blockquote' ),
110
  __( 'Stackable' ),
127
  },
128
 
129
  // The "edit" property must be a valid function.
130
+ edit: edit,
131
 
132
  // The "save" property must be specified and must be a valid function.
133
  save: save,
src/block/button/index.js CHANGED
@@ -18,12 +18,13 @@ import {
18
  AlignmentToolbar,
19
  RichText,
20
  ColorPalette,
21
- UrlInput,
22
  PanelColor,
23
  Dashicon,
24
  IconButton,
25
  SelectControl,
26
  RangeControl,
 
 
27
  } from '../../wp-imports'
28
 
29
  export const edit = ( props ) => {
@@ -52,22 +53,24 @@ export const edit = ( props ) => {
52
  ),
53
  isSelected && (
54
  <InspectorControls key={ 'inspector' }>
55
- <SelectControl
56
- label={ __( 'Size' ) }
57
- value={ size }
58
- options={ linkOptions.map( ({ value, label }) => ( {
59
- value: value,
60
- label: label,
61
- } ) ) }
62
- onChange={ ( newSize ) => { setAttributes( { size: newSize } ) } }
63
- />
64
- <RangeControl
65
- label={ __( 'Corner Radius' ) }
66
- value={ cornerButtonRadius }
67
- min='1'
68
- max='50'
69
- onChange={ ( cornerRad ) => setAttributes( { cornerButtonRadius: cornerRad } ) }
70
- />
 
 
71
  <PanelColor
72
  title={ __( 'Background Color' ) }
73
  colorValue={ color }
@@ -112,7 +115,7 @@ export const edit = ( props ) => {
112
  onSubmit={ ( event ) => event.preventDefault() }
113
  className={ `blocks-button__inline-link ugb-button-${textAlignment}`}>
114
  <Dashicon icon={ 'admin-links' } />
115
- <UrlInput
116
  value={ url }
117
  onChange={ ( value ) => setAttributes( { url: value } ) }
118
  />
@@ -162,7 +165,8 @@ registerBlockType( 'ugb/button', {
162
  // Block name. Block names must be string that contains a namespace prefix. Example: my-plugin/my-custom-block.
163
  title: __( 'Button' ), // Block title.
164
  icon: ButtonIcon, // Block icon from Dashicons → https://developer.wordpress.org/resource/dashicons/.
165
- category: 'layout', // Block category — Group blocks together based on common traits E.g. common, formatting, layout widgets, embed.
 
166
  keywords: [
167
  __( 'Button' ),
168
  __( 'Stackable' ),
18
  AlignmentToolbar,
19
  RichText,
20
  ColorPalette,
 
21
  PanelColor,
22
  Dashicon,
23
  IconButton,
24
  SelectControl,
25
  RangeControl,
26
+ URLInput,
27
+ PanelBody
28
  } from '../../wp-imports'
29
 
30
  export const edit = ( props ) => {
53
  ),
54
  isSelected && (
55
  <InspectorControls key={ 'inspector' }>
56
+ <PanelBody>
57
+ <SelectControl
58
+ label={ __( 'Size' ) }
59
+ value={ size }
60
+ options={ linkOptions.map( ({ value, label }) => ( {
61
+ value: value,
62
+ label: label,
63
+ } ) ) }
64
+ onChange={ ( newSize ) => { setAttributes( { size: newSize } ) } }
65
+ />
66
+ <RangeControl
67
+ label={ __( 'Corner Radius' ) }
68
+ value={ cornerButtonRadius }
69
+ min='1'
70
+ max='50'
71
+ onChange={ ( cornerRad ) => setAttributes( { cornerButtonRadius: cornerRad } ) }
72
+ />
73
+ </PanelBody>
74
  <PanelColor
75
  title={ __( 'Background Color' ) }
76
  colorValue={ color }
115
  onSubmit={ ( event ) => event.preventDefault() }
116
  className={ `blocks-button__inline-link ugb-button-${textAlignment}`}>
117
  <Dashicon icon={ 'admin-links' } />
118
+ <URLInput
119
  value={ url }
120
  onChange={ ( value ) => setAttributes( { url: value } ) }
121
  />
165
  // Block name. Block names must be string that contains a namespace prefix. Example: my-plugin/my-custom-block.
166
  title: __( 'Button' ), // Block title.
167
  icon: ButtonIcon, // Block icon from Dashicons → https://developer.wordpress.org/resource/dashicons/.
168
+ description: 'Add customize button',
169
+ category: 'stackable-ultimate-gutenberg-blocks', // Block category — Group blocks together based on common traits E.g. common, formatting, layout widgets, embed.
170
  keywords: [
171
  __( 'Button' ),
172
  __( 'Stackable' ),
src/block/button/style.scss CHANGED
@@ -9,8 +9,7 @@
9
  position: relative;
10
  }
11
 
12
- span.wp-block-button.ugb-button-right,
13
- form.blocks-button__inline-link.ugb-button-right {
14
  transform: translateX(-100%);
15
  left: 100%;
16
  position: relative;
@@ -19,8 +18,14 @@ form.blocks-button__inline-link.ugb-button-right {
19
  /**
20
  * Button link form styles.
21
  */
22
- form.blocks-button__inline-link.ugb-button-center {
23
- margin: 0 auto;
 
 
 
 
 
 
24
  }
25
 
26
  .wp-ugb-button.wp-ugb-button {
9
  position: relative;
10
  }
11
 
12
+ span.wp-block-button.ugb-button-right {
 
13
  transform: translateX(-100%);
14
  left: 100%;
15
  position: relative;
18
  /**
19
  * Button link form styles.
20
  */
21
+ form.blocks-button__inline-link {
22
+ margin: 1rem auto 0 auto;
23
+
24
+ > div.editor-url-input {
25
+ flex-grow: 0;
26
+ width: auto;
27
+ margin-left: 8px;
28
+ }
29
  }
30
 
31
  .wp-ugb-button.wp-ugb-button {
src/block/call-to-action/index.js CHANGED
@@ -17,18 +17,15 @@ import {
17
  PanelColor,
18
  Dashicon,
19
  IconButton,
20
- withState,
21
  SelectControl,
22
  RangeControl,
23
  InspectorControls,
24
- BlockControls,
25
- AlignmentToolbar,
26
  RichText,
27
  ColorPalette,
28
- UrlInput,
 
29
  } from '../../wp-imports'
30
 
31
-
32
  export const edit = ( props ) => {
33
 
34
  const {
@@ -111,22 +108,24 @@ export const edit = ( props ) => {
111
  {
112
  isSelected &&
113
  <InspectorControls key={ 'inspector' }>
114
- <SelectControl
115
- label={ __( 'Button Size' ) }
116
- value={ size }
117
- options={ linkOptions.map( ({ value, label }) => ( {
118
- value: value,
119
- label: label,
120
- } ) ) }
121
- onChange={ ( newSize ) => { setAttributes( { size: newSize } ) } }
122
- />
123
- <RangeControl
124
- label={ __( 'Button Border Radius' ) }
125
- value={ borderButtonRadius }
126
- min='1'
127
- max='50'
128
- onChange={ ( borderRad ) => setAttributes( { borderButtonRadius: borderRad } ) }
129
- />
 
 
130
  <PanelColor
131
  title={ __( 'Title Color' ) }
132
  colorValue={ titleColor }
@@ -187,7 +186,7 @@ export const edit = ( props ) => {
187
  onSubmit={ ( event ) => event.preventDefault() }
188
  className={ `blocks-button__inline-link`}>
189
  <Dashicon icon={ 'admin-links' } />
190
- <UrlInput
191
  value={ url }
192
  onChange={ ( value ) => setAttributes( { url: value } ) }
193
  />
@@ -270,7 +269,7 @@ registerBlockType( 'ugb/cta', {
270
  // Block name. Block names must be string that contains a namespace prefix. Example: my-plugin/my-custom-block.
271
  title: __( 'Call to Action' ), // Block title.
272
  icon: CTAIcon, // Block icon from Dashicons → https://developer.wordpress.org/resource/dashicons/.
273
- category: 'layout', // Block category — Group blocks together based on common traits E.g. common, formatting, layout widgets, embed.
274
  keywords: [
275
  __( 'Call to Action' ),
276
  __( 'Stackable' ),
@@ -328,7 +327,7 @@ registerBlockType( 'ugb/cta', {
328
  },
329
 
330
  // The "edit" property must be a valid function.
331
- edit: withState( { editable: 'content', } ) ( edit ),
332
 
333
  // The "save" property must be specified and must be a valid function.
334
  save: save,
17
  PanelColor,
18
  Dashicon,
19
  IconButton,
 
20
  SelectControl,
21
  RangeControl,
22
  InspectorControls,
 
 
23
  RichText,
24
  ColorPalette,
25
+ PanelBody,
26
+ URLInput
27
  } from '../../wp-imports'
28
 
 
29
  export const edit = ( props ) => {
30
 
31
  const {
108
  {
109
  isSelected &&
110
  <InspectorControls key={ 'inspector' }>
111
+ <PanelBody>
112
+ <SelectControl
113
+ label={ __( 'Button Size' ) }
114
+ value={ size }
115
+ options={ linkOptions.map( ({ value, label }) => ( {
116
+ value: value,
117
+ label: label,
118
+ } ) ) }
119
+ onChange={ ( newSize ) => { setAttributes( { size: newSize } ) } }
120
+ />
121
+ <RangeControl
122
+ label={ __( 'Button Border Radius' ) }
123
+ value={ borderButtonRadius }
124
+ min='1'
125
+ max='50'
126
+ onChange={ ( borderRad ) => setAttributes( { borderButtonRadius: borderRad } ) }
127
+ />
128
+ </PanelBody>
129
  <PanelColor
130
  title={ __( 'Title Color' ) }
131
  colorValue={ titleColor }
186
  onSubmit={ ( event ) => event.preventDefault() }
187
  className={ `blocks-button__inline-link`}>
188
  <Dashicon icon={ 'admin-links' } />
189
+ <URLInput
190
  value={ url }
191
  onChange={ ( value ) => setAttributes( { url: value } ) }
192
  />
269
  // Block name. Block names must be string that contains a namespace prefix. Example: my-plugin/my-custom-block.
270
  title: __( 'Call to Action' ), // Block title.
271
  icon: CTAIcon, // Block icon from Dashicons → https://developer.wordpress.org/resource/dashicons/.
272
+ category: 'stackable-ultimate-gutenberg-blocks', // Block category — Group blocks together based on common traits E.g. common, formatting, layout widgets, embed.
273
  keywords: [
274
  __( 'Call to Action' ),
275
  __( 'Stackable' ),
327
  },
328
 
329
  // The "edit" property must be a valid function.
330
+ edit: edit,
331
 
332
  // The "save" property must be specified and must be a valid function.
333
  save: save,
src/block/call-to-action/style.scss CHANGED
@@ -17,9 +17,6 @@
17
  .ugb-cta-button {
18
  margin: 0;
19
  }
20
- .blocks-button__inline-link {
21
- margin: 0 auto;
22
- }
23
  p {
24
  text-align: center;
25
  }
17
  .ugb-cta-button {
18
  margin: 0;
19
  }
 
 
 
20
  p {
21
  text-align: center;
22
  }
src/block/card/index.js CHANGED
@@ -17,7 +17,6 @@ import {
17
  Button,
18
  IconButton,
19
  Dashicon,
20
- withState,
21
  SelectControl,
22
  RangeControl,
23
  Toolbar,
@@ -26,8 +25,9 @@ import {
26
  ColorPalette,
27
  MediaUpload,
28
  BlockControls,
29
- UrlInput,
30
  AlignmentToolbar,
 
 
31
  } from '../../wp-imports'
32
 
33
  export const edit = ( props ) => {
@@ -127,23 +127,25 @@ export const edit = ( props ) => {
127
  onChange={ ( colorValue ) => setAttributes( { desColor: colorValue } ) }
128
  />
129
  </PanelColor>
130
- <h2>Button Settings</h2>
131
- <SelectControl
132
- label={ __( 'Button Size' ) }
133
- value={ size }
134
- options={ buttonSizes.map( ({ value, label }) => ( {
135
- value: value,
136
- label: label,
137
- } ) ) }
138
- onChange={ ( newSize ) => { setAttributes( { size: newSize } ) } }
139
- />
140
- <RangeControl
141
- label={ __( 'Corner Radius' ) }
142
- value={ cornerButtonRadius }
143
- min='1'
144
- max='50'
145
- onChange={ ( cornerRad ) => setAttributes( { cornerButtonRadius: cornerRad } ) }
146
- />
 
 
147
  <PanelColor
148
  title={ __( 'Button Color' ) }
149
  colorValue={ buttonColor }
@@ -252,7 +254,7 @@ export const edit = ( props ) => {
252
  style={{ marginTop: 10 }}
253
  >
254
  <Dashicon icon={ 'admin-links' } />
255
- <UrlInput
256
  value={ buttonURL }
257
  onChange={ ( value ) => setAttributes( { buttonURL: value } ) }
258
  />
@@ -343,7 +345,7 @@ registerBlockType( 'ugb/card', {
343
  // Block name. Block names must be string that contains a namespace prefix. Example: my-plugin/my-custom-block.
344
  title: __( 'Card' ), // Block title.
345
  icon: TeamMemberIcon, // Block icon from Dashicons → https://developer.wordpress.org/resource/dashicons/.
346
- category: 'common', // Block category — Group blocks together based on common traits E.g. common, formatting, layout widgets, embed.
347
  keywords: [
348
  __( 'Card' ),
349
  __( 'Stackable' ),
@@ -420,7 +422,7 @@ registerBlockType( 'ugb/card', {
420
  },
421
 
422
  // The "edit" property must be a valid function.
423
- edit: withState( { editable: 'content', } )( edit ),
424
 
425
  // The "save" property must be specified and must be a valid function.
426
  save: save,
17
  Button,
18
  IconButton,
19
  Dashicon,
 
20
  SelectControl,
21
  RangeControl,
22
  Toolbar,
25
  ColorPalette,
26
  MediaUpload,
27
  BlockControls,
 
28
  AlignmentToolbar,
29
+ URLInput,
30
+ PanelBody
31
  } from '../../wp-imports'
32
 
33
  export const edit = ( props ) => {
127
  onChange={ ( colorValue ) => setAttributes( { desColor: colorValue } ) }
128
  />
129
  </PanelColor>
130
+ <PanelBody>
131
+ <h2>Button Settings</h2>
132
+ <SelectControl
133
+ label={ __( 'Button Size' ) }
134
+ value={ size }
135
+ options={ buttonSizes.map( ({ value, label }) => ( {
136
+ value: value,
137
+ label: label,
138
+ } ) ) }
139
+ onChange={ ( newSize ) => { setAttributes( { size: newSize } ) } }
140
+ />
141
+ <RangeControl
142
+ label={ __( 'Corner Radius' ) }
143
+ value={ cornerButtonRadius }
144
+ min='1'
145
+ max='50'
146
+ onChange={ ( cornerRad ) => setAttributes( { cornerButtonRadius: cornerRad } ) }
147
+ />
148
+ </PanelBody>
149
  <PanelColor
150
  title={ __( 'Button Color' ) }
151
  colorValue={ buttonColor }
254
  style={{ marginTop: 10 }}
255
  >
256
  <Dashicon icon={ 'admin-links' } />
257
+ <URLInput
258
  value={ buttonURL }
259
  onChange={ ( value ) => setAttributes( { buttonURL: value } ) }
260
  />
345
  // Block name. Block names must be string that contains a namespace prefix. Example: my-plugin/my-custom-block.
346
  title: __( 'Card' ), // Block title.
347
  icon: TeamMemberIcon, // Block icon from Dashicons → https://developer.wordpress.org/resource/dashicons/.
348
+ category: 'stackable-ultimate-gutenberg-blocks', // Block category — Group blocks together based on common traits E.g. common, formatting, layout widgets, embed.
349
  keywords: [
350
  __( 'Card' ),
351
  __( 'Stackable' ),
422
  },
423
 
424
  // The "edit" property must be a valid function.
425
+ edit: edit,
426
 
427
  // The "save" property must be specified and must be a valid function.
428
  save: save,
src/block/count-up/index.js CHANGED
@@ -14,11 +14,11 @@ import {
14
  registerBlockType,
15
  __,
16
  PanelColor,
17
- withState,
18
  RangeControl,
19
  InspectorControls,
20
  RichText,
21
- ColorPalette
 
22
  } from '../../wp-imports'
23
 
24
  export const edit = ( props ) => {
@@ -95,14 +95,16 @@ export const edit = ( props ) => {
95
  onChange={ ( colorValue ) => setAttributes( { desColor: colorValue } ) }
96
  />
97
  </PanelColor>
98
- <RangeControl
99
- label={ __( 'Counter Text Font Size' ) }
100
- max="100"
101
- min="10"
102
- value={ fontSize }
103
- onChange={ ( newFontSize ) => setAttributes( { fontSize: newFontSize } ) }
104
- >
105
- </RangeControl>
 
 
106
  </InspectorControls>
107
  )
108
  ];
@@ -145,7 +147,7 @@ registerBlockType( 'ugb/count-up', {
145
  // Block name. Block names must be string that contains a namespace prefix. Example: my-plugin/my-custom-block.
146
  title: __( 'Count Up' ), // Block title.
147
  icon: NumberBoxIcon, // Block icon from Dashicons → https://developer.wordpress.org/resource/dashicons/.
148
- category: 'common', // Block category — Group blocks together based on common traits E.g. common, formatting, layout widgets, embed.
149
  keywords: [
150
  __( 'Count Up' ),
151
  __( 'Stackable' ),
@@ -186,7 +188,7 @@ registerBlockType( 'ugb/count-up', {
186
  },
187
 
188
  // The "edit" property must be a valid function.
189
- edit: withState( { editable: 'content', } )( edit ),
190
 
191
  // The "save" property must be specified and must be a valid function.
192
  save: save,
14
  registerBlockType,
15
  __,
16
  PanelColor,
 
17
  RangeControl,
18
  InspectorControls,
19
  RichText,
20
+ ColorPalette,
21
+ PanelBody
22
  } from '../../wp-imports'
23
 
24
  export const edit = ( props ) => {
95
  onChange={ ( colorValue ) => setAttributes( { desColor: colorValue } ) }
96
  />
97
  </PanelColor>
98
+ <PanelBody>
99
+ <RangeControl
100
+ label={ __( 'Counter Text Font Size' ) }
101
+ max="100"
102
+ min="10"
103
+ value={ fontSize }
104
+ onChange={ ( newFontSize ) => setAttributes( { fontSize: newFontSize } ) }
105
+ >
106
+ </RangeControl>
107
+ </PanelBody>
108
  </InspectorControls>
109
  )
110
  ];
147
  // Block name. Block names must be string that contains a namespace prefix. Example: my-plugin/my-custom-block.
148
  title: __( 'Count Up' ), // Block title.
149
  icon: NumberBoxIcon, // Block icon from Dashicons → https://developer.wordpress.org/resource/dashicons/.
150
+ category: 'stackable-ultimate-gutenberg-blocks', // Block category — Group blocks together based on common traits E.g. common, formatting, layout widgets, embed.
151
  keywords: [
152
  __( 'Count Up' ),
153
  __( 'Stackable' ),
188
  },
189
 
190
  // The "edit" property must be a valid function.
191
+ edit: edit,
192
 
193
  // The "save" property must be specified and must be a valid function.
194
  save: save,
src/block/divider/index.js CHANGED
@@ -19,6 +19,7 @@ import {
19
  AlignmentToolbar,
20
  PanelColor,
21
  RangeControl,
 
22
  } from '../../wp-imports'
23
 
24
  export const save = ( props ) => {
@@ -49,25 +50,27 @@ export const edit = ( props ) => {
49
  ),
50
  isSelected && (
51
  <InspectorControls key='inspector'>
52
- <RangeControl
53
- label={__('Height')}
54
- value={height}
55
- min='1'
56
- max='10'
57
- onChange={function( height ) {
58
- props.setAttributes( { height: height } );
59
- }}
60
- />
61
- <RangeControl
62
- label={__('Width')}
63
- value={width}
64
- min='10'
65
- max='100'
66
- step='0.1'
67
- onChange={function( width ) {
68
- props.setAttributes( { width: width } );
69
- }}
70
- />
 
 
71
  <PanelColor title={ __( 'Divider Color' ) } colorValue={ color } initialOpen={ false }>
72
  <ColorPalette
73
  value={ color }
@@ -100,7 +103,7 @@ registerBlockType( 'ugb/divider', {
100
  // Block name. Block names must be string that contains a namespace prefix. Example: my-plugin/my-custom-block.
101
  title: __( 'Divider' ), // Block title.
102
  icon: DividerIcon, // Block icon from Dashicons → https://developer.wordpress.org/resource/dashicons/.
103
- category: 'layout', // Block category — Group blocks together based on common traits E.g. common, formatting, layout widgets, embed.
104
  keywords: [
105
  __( 'Divider' ),
106
  __( 'Stackable' ),
@@ -126,7 +129,7 @@ registerBlockType( 'ugb/divider', {
126
 
127
  // The "edit" property must be a valid function.
128
  edit: edit,
129
-
130
  // The "save" property must be specified and must be a valid function.
131
  save: save,
132
  } );
19
  AlignmentToolbar,
20
  PanelColor,
21
  RangeControl,
22
+ PanelBody
23
  } from '../../wp-imports'
24
 
25
  export const save = ( props ) => {
50
  ),
51
  isSelected && (
52
  <InspectorControls key='inspector'>
53
+ <PanelBody>
54
+ <RangeControl
55
+ label={__('Height')}
56
+ value={height}
57
+ min='1'
58
+ max='10'
59
+ onChange={function( height ) {
60
+ props.setAttributes( { height: height } );
61
+ }}
62
+ />
63
+ <RangeControl
64
+ label={__('Width')}
65
+ value={width}
66
+ min='10'
67
+ max='100'
68
+ step='0.1'
69
+ onChange={function( width ) {
70
+ props.setAttributes( { width: width } );
71
+ }}
72
+ />
73
+ </PanelBody>
74
  <PanelColor title={ __( 'Divider Color' ) } colorValue={ color } initialOpen={ false }>
75
  <ColorPalette
76
  value={ color }
103
  // Block name. Block names must be string that contains a namespace prefix. Example: my-plugin/my-custom-block.
104
  title: __( 'Divider' ), // Block title.
105
  icon: DividerIcon, // Block icon from Dashicons → https://developer.wordpress.org/resource/dashicons/.
106
+ category: 'stackable-ultimate-gutenberg-blocks', // Block category — Group blocks together based on common traits E.g. common, formatting, layout widgets, embed.
107
  keywords: [
108
  __( 'Divider' ),
109
  __( 'Stackable' ),
129
 
130
  // The "edit" property must be a valid function.
131
  edit: edit,
132
+
133
  // The "save" property must be specified and must be a valid function.
134
  save: save,
135
  } );
src/block/expand/index.js CHANGED
@@ -13,7 +13,6 @@ import { ExpandIcon } from '../../icons'
13
  import {
14
  registerBlockType,
15
  __,
16
- withState,
17
  RichText,
18
  BlockControls,
19
  } from '../../wp-imports'
@@ -162,7 +161,7 @@ registerBlockType( 'ugb/expand', {
162
  // Block name. Block names must be string that contains a namespace prefix. Example: my-plugin/my-custom-block.
163
  title: __( 'Expand / Show More' ), // Block title.
164
  icon: ExpandIcon, // Block icon from Dashicons → https://developer.wordpress.org/resource/dashicons/.
165
- category: 'formatting', // Block category — Group blocks together based on common traits E.g. common, formatting, layout, widgets, embed.
166
  keywords: [
167
  __( 'Expand' ),
168
  __( 'Show more/less' ),
@@ -210,7 +209,7 @@ registerBlockType( 'ugb/expand', {
210
  },
211
 
212
  // The "edit" property must be a valid function.
213
- edit: withState( { editable: 'text', } )( edit ),
214
 
215
  // The "save" property must be specified and must be a valid function.
216
  save: save,
13
  import {
14
  registerBlockType,
15
  __,
 
16
  RichText,
17
  BlockControls,
18
  } from '../../wp-imports'
161
  // Block name. Block names must be string that contains a namespace prefix. Example: my-plugin/my-custom-block.
162
  title: __( 'Expand / Show More' ), // Block title.
163
  icon: ExpandIcon, // Block icon from Dashicons → https://developer.wordpress.org/resource/dashicons/.
164
+ category: 'stackable-ultimate-gutenberg-blocks', // Block category — Group blocks together based on common traits E.g. common, formatting, layout, widgets, embed.
165
  keywords: [
166
  __( 'Expand' ),
167
  __( 'Show more/less' ),
209
  },
210
 
211
  // The "edit" property must be a valid function.
212
+ edit: edit,
213
 
214
  // The "save" property must be specified and must be a valid function.
215
  save: save,
src/block/ghost-button/index.js CHANGED
@@ -18,12 +18,13 @@ import {
18
  RichText,
19
  AlignmentToolbar,
20
  ColorPalette,
21
- UrlInput,
22
  PanelColor,
23
  IconButton,
24
  Dashicon,
25
  SelectControl,
26
  RangeControl,
 
 
27
  } from '../../wp-imports'
28
 
29
  export const edit = ( props ) => {
@@ -81,29 +82,31 @@ export const edit = ( props ) => {
81
  {
82
  isSelected &&
83
  <InspectorControls key='inspector'>
84
- <SelectControl
85
- label={ __( 'Size' ) }
86
- value={ size }
87
- options={ buttonSizes.map( ( { value, label } ) => ( {
88
- value: value,
89
- label: label,
90
- } ) ) }
91
- onChange={ ( newSize ) => { setAttributes( { size: newSize } ) } }
92
- />
93
- <RangeControl
94
- label={ __( 'Corner Radius' ) }
95
- value={ cornerButtonRadius }
96
- min='1'
97
- max='50'
98
- onChange={ ( cornerRad ) => setAttributes( { cornerButtonRadius: cornerRad } ) }
99
- />
100
- <RangeControl
101
- label={ __( 'Border Thickness' ) }
102
- value={ borderThickness }
103
- min='1'
104
- max='10'
105
- onChange={ ( borderThick ) => setAttributes( { borderThickness: borderThick } ) }
106
- />
 
 
107
  <PanelColor
108
  title={ __( 'Button Color' ) }
109
  colorValue={ color }
@@ -123,7 +126,7 @@ export const edit = ( props ) => {
123
  onSubmit={ ( event ) => event.preventDefault() }
124
  className={ `blocks-button__inline-link ugb-button-${textAlignment}`}>
125
  <Dashicon icon={ 'admin-links' } />
126
- <UrlInput
127
  value={ url }
128
  onChange={ ( value ) => setAttributes( { url: value } ) }
129
  />
@@ -165,13 +168,6 @@ export const save = ( props ) => {
165
  );
166
  }
167
 
168
- // class UGBGhostButtonBlock extends Component {
169
- //
170
- // render() {
171
- //
172
- // }
173
- // }
174
-
175
  /**
176
  * Register: Gutenberg Block.
177
  *
@@ -188,7 +184,7 @@ registerBlockType( 'ugb/ghost-button', {
188
  // Block name. Block names must be string that contains namespace prefix. Example: my-plugin/my-custom-block.
189
  title: __( 'Ghost Button' ), // Block title.
190
  icon: GhostButtonIcon, // Block icon from Dashicons → https://developer.wordpress.org/resource/dashicons/.
191
- category: 'layout', // Block category - Group blocks together based on common traits E.g. common, formatting, layout widgets, embed.
192
  keywords: [
193
  __( 'Ghost Button' ),
194
  __( 'Stackable' ),
18
  RichText,
19
  AlignmentToolbar,
20
  ColorPalette,
 
21
  PanelColor,
22
  IconButton,
23
  Dashicon,
24
  SelectControl,
25
  RangeControl,
26
+ URLInput,
27
+ PanelBody
28
  } from '../../wp-imports'
29
 
30
  export const edit = ( props ) => {
82
  {
83
  isSelected &&
84
  <InspectorControls key='inspector'>
85
+ <PanelBody>
86
+ <SelectControl
87
+ label={ __( 'Size' ) }
88
+ value={ size }
89
+ options={ buttonSizes.map( ( { value, label } ) => ( {
90
+ value: value,
91
+ label: label,
92
+ } ) ) }
93
+ onChange={ ( newSize ) => { setAttributes( { size: newSize } ) } }
94
+ />
95
+ <RangeControl
96
+ label={ __( 'Corner Radius' ) }
97
+ value={ cornerButtonRadius }
98
+ min='1'
99
+ max='50'
100
+ onChange={ ( cornerRad ) => setAttributes( { cornerButtonRadius: cornerRad } ) }
101
+ />
102
+ <RangeControl
103
+ label={ __( 'Border Thickness' ) }
104
+ value={ borderThickness }
105
+ min='1'
106
+ max='10'
107
+ onChange={ ( borderThick ) => setAttributes( { borderThickness: borderThick } ) }
108
+ />
109
+ </PanelBody>
110
  <PanelColor
111
  title={ __( 'Button Color' ) }
112
  colorValue={ color }
126
  onSubmit={ ( event ) => event.preventDefault() }
127
  className={ `blocks-button__inline-link ugb-button-${textAlignment}`}>
128
  <Dashicon icon={ 'admin-links' } />
129
+ <URLInput
130
  value={ url }
131
  onChange={ ( value ) => setAttributes( { url: value } ) }
132
  />
168
  );
169
  }
170
 
 
 
 
 
 
 
 
171
  /**
172
  * Register: Gutenberg Block.
173
  *
184
  // Block name. Block names must be string that contains namespace prefix. Example: my-plugin/my-custom-block.
185
  title: __( 'Ghost Button' ), // Block title.
186
  icon: GhostButtonIcon, // Block icon from Dashicons → https://developer.wordpress.org/resource/dashicons/.
187
+ category: 'stackable-ultimate-gutenberg-blocks', // Block category - Group blocks together based on common traits E.g. common, formatting, layout widgets, embed.
188
  keywords: [
189
  __( 'Ghost Button' ),
190
  __( 'Stackable' ),
src/block/header/index.js CHANGED
@@ -22,14 +22,14 @@ import {
22
  SelectControl,
23
  Toolbar,
24
  Button,
25
- withState,
26
  RichText,
27
  AlignmentToolbar,
28
  MediaUpload,
29
  BlockControls,
30
  InspectorControls,
31
  ColorPalette,
32
- UrlInput
 
33
  } from '../../wp-imports'
34
 
35
  export const edit = ( props ) => {
@@ -138,31 +138,33 @@ export const edit = ( props ) => {
138
  onChange={ ( colorValue ) => setAttributes( { backgroundColor: colorValue } ) }
139
  />
140
  </PanelColor>
141
- <RangeControl
142
- label={ __( 'Background Opacity' ) }
143
- value={ opacity }
144
- min={ 0 }
145
- max={ 10 }
146
- step={ 1 }
147
- onChange={ ( ratio ) => setAttributes( { opacity: ratio } ) }
148
- />
149
- <h2>Button Settings</h2>
150
- <SelectControl
151
- label={ __( 'Button Size' ) }
152
- value={ size }
153
- options={ buttonSizes.map( ({ value, label }) => ( {
154
- value: value,
155
- label: label,
156
- } ) ) }
157
- onChange={ ( newSize ) => { setAttributes( { size: newSize } ) } }
158
- />
159
- <RangeControl
160
- label={ __( 'Corner Radius' ) }
161
- value={ cornerButtonRadius }
162
- min='1'
163
- max='50'
164
- onChange={ ( cornerRad ) => setAttributes( { cornerButtonRadius: cornerRad } ) }
165
- />
 
 
166
  <PanelColor
167
  title={ __( 'Button Color' ) }
168
  colorValue={ buttonColor }
@@ -270,7 +272,7 @@ export const edit = ( props ) => {
270
  onSubmit={ ( event ) => event.preventDefault() }
271
  className={ `blocks-button__inline-link ugb-button-${contentAlign}`}>
272
  <Dashicon icon={ 'admin-links' } />
273
- <UrlInput
274
  value={ buttonURL }
275
  onChange={ ( value ) => setAttributes( { buttonURL: value } ) }
276
  />
@@ -373,7 +375,7 @@ registerBlockType( 'ugb/header', {
373
  // Block name. Block names must be string that contains a namespace prefix. Example: my-plugin/my-custom-block.
374
  title: __( 'Header' ), // Block title.
375
  icon: HeaderIcon, // Block icon from Dashicons → https://developer.wordpress.org/resource/dashicons/.
376
- category: 'common', // Block category — Group blocks together based on common traits E.g. common, formatting, layout widgets, embed.
377
  keywords: [
378
  __( 'Header' ),
379
  __( 'Stackable' ),
@@ -451,7 +453,7 @@ registerBlockType( 'ugb/header', {
451
  },
452
 
453
  // The "edit" property must be a valid function.
454
- edit: withState( { editable: 'content', } )( edit ),
455
 
456
  // The "save" property must be specified and must be a valid function.
457
  save: save,
22
  SelectControl,
23
  Toolbar,
24
  Button,
 
25
  RichText,
26
  AlignmentToolbar,
27
  MediaUpload,
28
  BlockControls,
29
  InspectorControls,
30
  ColorPalette,
31
+ PanelBody,
32
+ URLInput
33
  } from '../../wp-imports'
34
 
35
  export const edit = ( props ) => {
138
  onChange={ ( colorValue ) => setAttributes( { backgroundColor: colorValue } ) }
139
  />
140
  </PanelColor>
141
+ <PanelBody>
142
+ <RangeControl
143
+ label={ __( 'Background Opacity' ) }
144
+ value={ opacity }
145
+ min={ 0 }
146
+ max={ 10 }
147
+ step={ 1 }
148
+ onChange={ ( ratio ) => setAttributes( { opacity: ratio } ) }
149
+ />
150
+ <h2>Button Settings</h2>
151
+ <SelectControl
152
+ label={ __( 'Button Size' ) }
153
+ value={ size }
154
+ options={ buttonSizes.map( ({ value, label }) => ( {
155
+ value: value,
156
+ label: label,
157
+ } ) ) }
158
+ onChange={ ( newSize ) => { setAttributes( { size: newSize } ) } }
159
+ />
160
+ <RangeControl
161
+ label={ __( 'Corner Radius' ) }
162
+ value={ cornerButtonRadius }
163
+ min='1'
164
+ max='50'
165
+ onChange={ ( cornerRad ) => setAttributes( { cornerButtonRadius: cornerRad } ) }
166
+ />
167
+ </PanelBody>
168
  <PanelColor
169
  title={ __( 'Button Color' ) }
170
  colorValue={ buttonColor }
272
  onSubmit={ ( event ) => event.preventDefault() }
273
  className={ `blocks-button__inline-link ugb-button-${contentAlign}`}>
274
  <Dashicon icon={ 'admin-links' } />
275
+ <URLInput
276
  value={ buttonURL }
277
  onChange={ ( value ) => setAttributes( { buttonURL: value } ) }
278
  />
375
  // Block name. Block names must be string that contains a namespace prefix. Example: my-plugin/my-custom-block.
376
  title: __( 'Header' ), // Block title.
377
  icon: HeaderIcon, // Block icon from Dashicons → https://developer.wordpress.org/resource/dashicons/.
378
+ category: 'stackable-ultimate-gutenberg-blocks', // Block category — Group blocks together based on common traits E.g. common, formatting, layout widgets, embed.
379
  keywords: [
380
  __( 'Header' ),
381
  __( 'Stackable' ),
453
  },
454
 
455
  // The "edit" property must be a valid function.
456
+ edit: edit,
457
 
458
  // The "save" property must be specified and must be a valid function.
459
  save: save,
src/block/image-box/index.js CHANGED
@@ -17,7 +17,6 @@ import {
17
  PanelColor,
18
  Toolbar,
19
  Button,
20
- withState,
21
  RangeControl,
22
  SelectControl,
23
  ToggleControl,
@@ -26,6 +25,7 @@ import {
26
  BlockControls,
27
  InspectorControls,
28
  ColorPalette,
 
29
  } from '../../wp-imports'
30
 
31
  export const edit = ( props ) => {
@@ -97,43 +97,45 @@ export const edit = ( props ) => {
97
  ),
98
  isSelected && (
99
  <InspectorControls key={ 'inspector' }>
100
- <ToggleControl
101
- label='Full-Width'
102
- checked={ !! full }
103
- onChange={ () => setAttributes( { full: ! full } ) }
104
- />
105
- <RangeControl
106
- label={ __( 'Height' ) }
107
- value={ height }
108
- min='135'
109
- max='700'
110
- onChange={ ( height ) => setAttributes( { height: height } ) }
111
- />
112
- <RangeControl
113
- label={ __( 'Width' ) }
114
- value={ width }
115
- min='400'
116
- max='999'
117
- onChange={ ( width ) => setAttributes( { width: width } ) }
118
- />
119
- <SelectControl
120
- label={ __( 'Vertical Alignment' ) }
121
- value={ verticalAlign }
122
- options={ vertical.map( ({ value, label }) => ( {
123
- value: value,
124
- label: label,
125
- } ) ) }
126
- onChange={ ( newSize ) => { setAttributes( { verticalAlign: newSize } ) } }
127
- />
128
- <SelectControl
129
- label={ __( 'Horizontal Alignment' ) }
130
- value={ horizontalAlign }
131
- options={ horizontal.map( ({ value, label }) => ( {
132
- value: value,
133
- label: label,
134
- } ) ) }
135
- onChange={ ( newSize ) => { setAttributes( { horizontalAlign: newSize } ) } }
136
- />
 
 
137
  <PanelColor
138
  title={ __( 'Title Color' ) }
139
  colorValue={ titleColor }
@@ -286,7 +288,7 @@ registerBlockType( 'ugb/image-box', {
286
  // Block name. Block names must be string that contains a namespace prefix. Example: my-plugin/my-custom-block.
287
  title: __( 'Image Box' ), // Block title.
288
  icon: PictureIcon, // Block icon from Dashicons → https://developer.wordpress.org/resource/dashicons/.
289
- category: 'common', // Block category — Group blocks together based on common traits E.g. common, formatting, layout widgets, embed.
290
  keywords: [
291
  __( 'Image Box' ),
292
  __( 'Stackable' ),
@@ -348,7 +350,7 @@ registerBlockType( 'ugb/image-box', {
348
  },
349
 
350
  // The "edit" property must be a valid function.
351
- edit: withState( { editable: 'content', } )( edit ),
352
 
353
  // The "save" property must be specified and must be a valid function.
354
  save: save,
17
  PanelColor,
18
  Toolbar,
19
  Button,
 
20
  RangeControl,
21
  SelectControl,
22
  ToggleControl,
25
  BlockControls,
26
  InspectorControls,
27
  ColorPalette,
28
+ PanelBody
29
  } from '../../wp-imports'
30
 
31
  export const edit = ( props ) => {
97
  ),
98
  isSelected && (
99
  <InspectorControls key={ 'inspector' }>
100
+ <PanelBody>
101
+ <ToggleControl
102
+ label='Full-Width'
103
+ checked={ !! full }
104
+ onChange={ () => setAttributes( { full: ! full } ) }
105
+ />
106
+ <RangeControl
107
+ label={ __( 'Height' ) }
108
+ value={ height }
109
+ min='135'
110
+ max='700'
111
+ onChange={ ( height ) => setAttributes( { height: height } ) }
112
+ />
113
+ <RangeControl
114
+ label={ __( 'Width' ) }
115
+ value={ width }
116
+ min='400'
117
+ max='999'
118
+ onChange={ ( width ) => setAttributes( { width: width } ) }
119
+ />
120
+ <SelectControl
121
+ label={ __( 'Vertical Alignment' ) }
122
+ value={ verticalAlign }
123
+ options={ vertical.map( ({ value, label }) => ( {
124
+ value: value,
125
+ label: label,
126
+ } ) ) }
127
+ onChange={ ( newSize ) => { setAttributes( { verticalAlign: newSize } ) } }
128
+ />
129
+ <SelectControl
130
+ label={ __( 'Horizontal Alignment' ) }
131
+ value={ horizontalAlign }
132
+ options={ horizontal.map( ({ value, label }) => ( {
133
+ value: value,
134
+ label: label,
135
+ } ) ) }
136
+ onChange={ ( newSize ) => { setAttributes( { horizontalAlign: newSize } ) } }
137
+ />
138
+ </PanelBody>
139
  <PanelColor
140
  title={ __( 'Title Color' ) }
141
  colorValue={ titleColor }
288
  // Block name. Block names must be string that contains a namespace prefix. Example: my-plugin/my-custom-block.
289
  title: __( 'Image Box' ), // Block title.
290
  icon: PictureIcon, // Block icon from Dashicons → https://developer.wordpress.org/resource/dashicons/.
291
+ category: 'stackable-ultimate-gutenberg-blocks', // Block category — Group blocks together based on common traits E.g. common, formatting, layout widgets, embed.
292
  keywords: [
293
  __( 'Image Box' ),
294
  __( 'Stackable' ),
350
  },
351
 
352
  // The "edit" property must be a valid function.
353
+ edit: edit,
354
 
355
  // The "save" property must be specified and must be a valid function.
356
  save: save,
src/block/notification/index.js CHANGED
@@ -14,7 +14,6 @@ import { NotificationIcon } from '../../icons'
14
  import {
15
  registerBlockType,
16
  __,
17
- withState,
18
  SelectControl,
19
  PanelColor,
20
  ToggleControl,
@@ -22,6 +21,7 @@ import {
22
  RichText,
23
  ColorPalette,
24
  BlockControls,
 
25
  } from '../../wp-imports'
26
 
27
  export const edit = ( props ) => {
@@ -84,21 +84,22 @@ export const edit = ( props ) => {
84
  {
85
  isSelected &&
86
  <InspectorControls key={ 'inspector' }>
87
- <ToggleControl
88
- label={ __( 'Dismissible' ) }
89
- checked={ dismissible }
90
- onChange={ () => setAttributes( { dismissible: ! dismissible } ) }
91
- />
92
- <SelectControl
93
- label={ __( 'Notification Type' ) }
94
- value={ notifType }
95
- options={ notifAlert.map( ({ value, label }) => ( {
96
- value: value,
97
- label: label,
98
- } ) ) }
99
- onChange={ ( newSize ) => { setAttributes( { notifType: newSize } ) } }
100
- />
101
-
 
102
  <PanelColor
103
  title={ __( 'Background Color' ) }
104
  colorValue={ color }
@@ -119,7 +120,6 @@ export const edit = ( props ) => {
119
  onChange={ ( colorValue ) => setAttributes( { textColor: colorValue } ) }
120
  />
121
  </PanelColor>
122
-
123
  </InspectorControls>
124
  }
125
  </div>
@@ -181,7 +181,7 @@ registerBlockType( 'ugb/notification', {
181
  // Block name. Block names must be string that contains a namespace prefix. Example: my-plugin/my-custom-block.
182
  title: __( 'Notification' ), // Block title.
183
  icon: NotificationIcon, // Block icon from Dashicons → https://developer.wordpress.org/resource/dashicons/.
184
- category: 'layout', // Block category — Group blocks together based on common traits E.g. common, formatting, layout, widgets, embed.
185
  keywords: [
186
  __( 'Notification' ),
187
  __( 'Stackable' ),
@@ -211,7 +211,7 @@ registerBlockType( 'ugb/notification', {
211
 
212
 
213
  // The "edit" property must be a valid function.
214
- edit: withState( { editable: 'content', } )( edit ),
215
 
216
  // The "save" property must be specified and must be a valid function.
217
  save: save,
14
  import {
15
  registerBlockType,
16
  __,
 
17
  SelectControl,
18
  PanelColor,
19
  ToggleControl,
21
  RichText,
22
  ColorPalette,
23
  BlockControls,
24
+ PanelBody
25
  } from '../../wp-imports'
26
 
27
  export const edit = ( props ) => {
84
  {
85
  isSelected &&
86
  <InspectorControls key={ 'inspector' }>
87
+ <PanelBody>
88
+ <ToggleControl
89
+ label={ __( 'Dismissible' ) }
90
+ checked={ dismissible }
91
+ onChange={ () => setAttributes( { dismissible: ! dismissible } ) }
92
+ />
93
+ <SelectControl
94
+ label={ __( 'Notification Type' ) }
95
+ value={ notifType }
96
+ options={ notifAlert.map( ({ value, label }) => ( {
97
+ value: value,
98
+ label: label,
99
+ } ) ) }
100
+ onChange={ ( newSize ) => { setAttributes( { notifType: newSize } ) } }
101
+ />
102
+ </PanelBody>
103
  <PanelColor
104
  title={ __( 'Background Color' ) }
105
  colorValue={ color }
120
  onChange={ ( colorValue ) => setAttributes( { textColor: colorValue } ) }
121
  />
122
  </PanelColor>
 
123
  </InspectorControls>
124
  }
125
  </div>
181
  // Block name. Block names must be string that contains a namespace prefix. Example: my-plugin/my-custom-block.
182
  title: __( 'Notification' ), // Block title.
183
  icon: NotificationIcon, // Block icon from Dashicons → https://developer.wordpress.org/resource/dashicons/.
184
+ category: 'stackable-ultimate-gutenberg-blocks', // Block category — Group blocks together based on common traits E.g. common, formatting, layout, widgets, embed.
185
  keywords: [
186
  __( 'Notification' ),
187
  __( 'Stackable' ),
211
 
212
 
213
  // The "edit" property must be a valid function.
214
+ edit: edit,
215
 
216
  // The "save" property must be specified and must be a valid function.
217
  save: save,
src/block/number-box/index.js CHANGED
@@ -14,15 +14,12 @@ import {
14
  registerBlockType,
15
  __,
16
  PanelColor,
17
- withState,
18
  SelectControl,
19
  InspectorControls,
20
  RichText,
21
  ColorPalette,
22
- MediaUpload,
23
  BlockControls,
24
- AlignmentToolbar,
25
- BlockAlignmentToolbar,
26
  } from '../../wp-imports'
27
 
28
  export const edit = ( props ) => {
@@ -68,15 +65,17 @@ export const edit = ( props ) => {
68
  ),
69
  isSelected && (
70
  <InspectorControls key={ 'inspector' }>
71
- <SelectControl
72
- label={ __( 'Column Number' ) }
73
- value={ columns }
74
- options={ column.map( ({ value, label }) => ( {
75
- value: value,
76
- label: label,
77
- } ) ) }
78
- onChange={ ( newColumns ) => { setAttributes( { columns: newColumns } ) } }
79
- />
 
 
80
  <PanelColor
81
  title={ __( 'Number Color' ) }
82
  colorValue={ numberBoxColor }
@@ -343,7 +342,7 @@ registerBlockType( 'ugb/number-box', {
343
  // Block name. Block names must be string that contains a namespace prefix. Example: my-plugin/my-custom-block.
344
  title: __( 'Number Box' ), // Block title.
345
  icon: NumberBoxIcon, // Block icon from Dashicons → https://developer.wordpress.org/resource/dashicons/.
346
- category: 'common', // Block category — Group blocks together based on common traits E.g. common, formatting, layout widgets, embed.
347
  keywords: [
348
  __( 'Number Box' ),
349
  __( 'Stackable' ),
@@ -422,7 +421,7 @@ registerBlockType( 'ugb/number-box', {
422
  },
423
 
424
  // The "edit" property must be a valid function.
425
- edit: withState( { editable: 'content', } )( edit ),
426
 
427
  // The "save" property must be specified and must be a valid function.
428
  save: save,
14
  registerBlockType,
15
  __,
16
  PanelColor,
 
17
  SelectControl,
18
  InspectorControls,
19
  RichText,
20
  ColorPalette,
 
21
  BlockControls,
22
+ PanelBody
 
23
  } from '../../wp-imports'
24
 
25
  export const edit = ( props ) => {
65
  ),
66
  isSelected && (
67
  <InspectorControls key={ 'inspector' }>
68
+ <PanelBody>
69
+ <SelectControl
70
+ label={ __( 'Column Number' ) }
71
+ value={ columns }
72
+ options={ column.map( ({ value, label }) => ( {
73
+ value: value,
74
+ label: label,
75
+ } ) ) }
76
+ onChange={ ( newColumns ) => { setAttributes( { columns: newColumns } ) } }
77
+ />
78
+ </PanelBody>
79
  <PanelColor
80
  title={ __( 'Number Color' ) }
81
  colorValue={ numberBoxColor }
342
  // Block name. Block names must be string that contains a namespace prefix. Example: my-plugin/my-custom-block.
343
  title: __( 'Number Box' ), // Block title.
344
  icon: NumberBoxIcon, // Block icon from Dashicons → https://developer.wordpress.org/resource/dashicons/.
345
+ category: 'stackable-ultimate-gutenberg-blocks', // Block category — Group blocks together based on common traits E.g. common, formatting, layout widgets, embed.
346
  keywords: [
347
  __( 'Number Box' ),
348
  __( 'Stackable' ),
421
  },
422
 
423
  // The "edit" property must be a valid function.
424
+ edit: edit,
425
 
426
  // The "save" property must be specified and must be a valid function.
427
  save: save,
src/block/number-box/style.scss CHANGED
@@ -33,6 +33,7 @@
33
  .ugb-number-box-name-two,
34
  .ugb-number-box-name-three {
35
  margin: 1.3rem 0 1rem;
 
36
  }
37
  .ugb-number-box-body,
38
  .ugb-number-box-body-two,
33
  .ugb-number-box-name-two,
34
  .ugb-number-box-name-three {
35
  margin: 1.3rem 0 1rem;
36
+ padding-top: 0;
37
  }
38
  .ugb-number-box-body,
39
  .ugb-number-box-body-two,
src/block/pricing-box/index.js CHANGED
@@ -15,7 +15,6 @@ import {
15
  __,
16
  PanelColor,
17
  SelectControl,
18
- withState,
19
  Dashicon,
20
  IconButton,
21
  RangeControl,
@@ -23,7 +22,8 @@ import {
23
  RichText,
24
  ColorPalette,
25
  BlockControls,
26
- UrlInput,
 
27
  } from '../../wp-imports'
28
 
29
  export const edit = ( props ) => {
@@ -86,22 +86,24 @@ export const edit = ( props ) => {
86
  isSelected && <BlockControls key="controls"/>,
87
  isSelected && (
88
  <InspectorControls key={ 'inspector' }>
89
- <SelectControl
90
- label={ __( 'Column Number' ) }
91
- value={ columns }
92
- options={ column.map( ({ value, label }) => ( {
93
- value: value,
94
- label: label,
95
- } ) ) }
96
- onChange={ ( newColumns ) => { setAttributes( { columns: newColumns } ) } }
97
- />
98
- <RangeControl
99
- label={ __( 'Corner Radius' ) }
100
- value={ cornerButtonRadius }
101
- min='1'
102
- max='50'
103
- onChange={ ( cornerRad ) => setAttributes( { cornerButtonRadius: cornerRad } ) }
104
- />
 
 
105
  <PanelColor
106
  title={ __( 'Pricing Title Color' ) }
107
  colorValue={ pricingBoxColor }
@@ -142,15 +144,17 @@ export const edit = ( props ) => {
142
  onChange={ ( colorValue ) => setAttributes( { featureListColor: colorValue } ) }
143
  />
144
  </PanelColor>
145
- <SelectControl
146
- label={ __( 'Button Size' ) }
147
- value={ size }
148
- options={ buttonSizes.map( ({ value, label }) => ( {
149
- value: value,
150
- label: label,
151
- } ) ) }
152
- onChange={ ( newSize ) => { setAttributes( { size: newSize } ) } }
153
- />
 
 
154
  <PanelColor
155
  title={ __( 'Button Color' ) }
156
  colorValue={ buttonColor }
@@ -252,7 +256,7 @@ export const edit = ( props ) => {
252
  onSubmit={ ( event ) => event.preventDefault() }
253
  className={ `blocks-button__inline-link pricing-box`}>
254
  <Dashicon icon={ 'admin-links' } />
255
- <UrlInput
256
  value={ url }
257
  onChange={ ( value ) => setAttributes( { url: value } ) }
258
  />
@@ -343,7 +347,7 @@ export const edit = ( props ) => {
343
  onSubmit={ ( event ) => event.preventDefault() }
344
  className={ `blocks-button__inline-link pricing-box`}>
345
  <Dashicon icon={ 'admin-links' } />
346
- <UrlInput
347
  value={ url }
348
  onChange={ ( value ) => setAttributes( { url: value } ) }
349
  />
@@ -434,7 +438,7 @@ export const edit = ( props ) => {
434
  onSubmit={ ( event ) => event.preventDefault() }
435
  className={ `blocks-button__inline-link pricing-box`}>
436
  <Dashicon icon={ 'admin-links' } />
437
- <UrlInput
438
  value={ url }
439
  onChange={ ( value ) => setAttributes( { url: value } ) }
440
  />
@@ -605,7 +609,7 @@ registerBlockType( 'ugb/pricing-box', {
605
  // Block name. Block names must be string that contains a namespace prefix. Example: my-plugin/my-custom-block.
606
  title: __( 'Pricing Box' ), // Block title.
607
  icon: PricingIcon, // Block icon from Dashicons → https://developer.wordpress.org/resource/dashicons/.
608
- category: 'common', // Block category — Group blocks together based on common traits E.g. common, formatting, layout widgets, embed.
609
  keywords: [
610
  __( 'Pricing Box' ),
611
  __( 'Stackable' ),
@@ -752,7 +756,7 @@ registerBlockType( 'ugb/pricing-box', {
752
  },
753
 
754
  // The "edit" property must be a valid function.
755
- edit: withState({ editable: 'content', })( edit ),
756
 
757
  // The "save" property must be specified and must be a valid function.
758
  save: save,
15
  __,
16
  PanelColor,
17
  SelectControl,
 
18
  Dashicon,
19
  IconButton,
20
  RangeControl,
22
  RichText,
23
  ColorPalette,
24
  BlockControls,
25
+ PanelBody,
26
+ URLInput
27
  } from '../../wp-imports'
28
 
29
  export const edit = ( props ) => {
86
  isSelected && <BlockControls key="controls"/>,
87
  isSelected && (
88
  <InspectorControls key={ 'inspector' }>
89
+ <PanelBody>
90
+ <SelectControl
91
+ label={ __( 'Column Number' ) }
92
+ value={ columns }
93
+ options={ column.map( ({ value, label }) => ( {
94
+ value: value,
95
+ label: label,
96
+ } ) ) }
97
+ onChange={ ( newColumns ) => { setAttributes( { columns: newColumns } ) } }
98
+ />
99
+ <RangeControl
100
+ label={ __( 'Corner Radius' ) }
101
+ value={ cornerButtonRadius }
102
+ min='1'
103
+ max='50'
104
+ onChange={ ( cornerRad ) => setAttributes( { cornerButtonRadius: cornerRad } ) }
105
+ />
106
+ </PanelBody>
107
  <PanelColor
108
  title={ __( 'Pricing Title Color' ) }
109
  colorValue={ pricingBoxColor }
144
  onChange={ ( colorValue ) => setAttributes( { featureListColor: colorValue } ) }
145
  />
146
  </PanelColor>
147
+ <PanelBody>
148
+ <SelectControl
149
+ label={ __( 'Button Size' ) }
150
+ value={ size }
151
+ options={ buttonSizes.map( ({ value, label }) => ( {
152
+ value: value,
153
+ label: label,
154
+ } ) ) }
155
+ onChange={ ( newSize ) => { setAttributes( { size: newSize } ) } }
156
+ />
157
+ </PanelBody>
158
  <PanelColor
159
  title={ __( 'Button Color' ) }
160
  colorValue={ buttonColor }
256
  onSubmit={ ( event ) => event.preventDefault() }
257
  className={ `blocks-button__inline-link pricing-box`}>
258
  <Dashicon icon={ 'admin-links' } />
259
+ <URLInput
260
  value={ url }
261
  onChange={ ( value ) => setAttributes( { url: value } ) }
262
  />
347
  onSubmit={ ( event ) => event.preventDefault() }
348
  className={ `blocks-button__inline-link pricing-box`}>
349
  <Dashicon icon={ 'admin-links' } />
350
+ <URLInput
351
  value={ url }
352
  onChange={ ( value ) => setAttributes( { url: value } ) }
353
  />
438
  onSubmit={ ( event ) => event.preventDefault() }
439
  className={ `blocks-button__inline-link pricing-box`}>
440
  <Dashicon icon={ 'admin-links' } />
441
+ <URLInput
442
  value={ url }
443
  onChange={ ( value ) => setAttributes( { url: value } ) }
444
  />
609
  // Block name. Block names must be string that contains a namespace prefix. Example: my-plugin/my-custom-block.
610
  title: __( 'Pricing Box' ), // Block title.
611
  icon: PricingIcon, // Block icon from Dashicons → https://developer.wordpress.org/resource/dashicons/.
612
+ category: 'stackable-ultimate-gutenberg-blocks', // Block category — Group blocks together based on common traits E.g. common, formatting, layout widgets, embed.
613
  keywords: [
614
  __( 'Pricing Box' ),
615
  __( 'Stackable' ),
756
  },
757
 
758
  // The "edit" property must be a valid function.
759
+ edit: edit,
760
 
761
  // The "save" property must be specified and must be a valid function.
762
  save: save,
src/block/pullquote/index.js CHANGED
@@ -14,7 +14,6 @@ import {
14
  registerBlockType,
15
  __,
16
  PanelColor,
17
- withState,
18
  InspectorControls,
19
  RichText,
20
  ColorPalette,
@@ -110,7 +109,7 @@ registerBlockType( 'ugb/pullquote', {
110
  // Block name. Block names must be string that contains a namespace prefix. Example: my-plugin/my-custom-block.
111
  title: __( 'Pullquote' ), // Block title.
112
  icon: QuoteIcon, // Block icon from Dashicons → https://developer.wordpress.org/resource/dashicons/.
113
- category: 'formatting', // Block category — Group blocks together based on common traits E.g. common, formatting, layout widgets, embed.
114
  keywords: [
115
  __( 'Pullquote' ),
116
  __( 'Stackable' ),
@@ -133,7 +132,7 @@ registerBlockType( 'ugb/pullquote', {
133
  },
134
 
135
  // The "edit" property must be a valid function.
136
- edit: withState( { editable: 'content', } )( edit ),
137
 
138
  // The "save" property must be specified and must be a valid function.
139
  save: save,
14
  registerBlockType,
15
  __,
16
  PanelColor,
 
17
  InspectorControls,
18
  RichText,
19
  ColorPalette,
109
  // Block name. Block names must be string that contains a namespace prefix. Example: my-plugin/my-custom-block.
110
  title: __( 'Pullquote' ), // Block title.
111
  icon: QuoteIcon, // Block icon from Dashicons → https://developer.wordpress.org/resource/dashicons/.
112
+ category: 'stackable-ultimate-gutenberg-blocks', // Block category — Group blocks together based on common traits E.g. common, formatting, layout widgets, embed.
113
  keywords: [
114
  __( 'Pullquote' ),
115
  __( 'Stackable' ),
132
  },
133
 
134
  // The "edit" property must be a valid function.
135
+ edit: edit,
136
 
137
  // The "save" property must be specified and must be a valid function.
138
  save: save,
src/block/spacer/index.js CHANGED
@@ -15,7 +15,8 @@ import {
15
  __,
16
  InspectorControls,
17
  RangeControl,
18
- TextControl
 
19
  } from '../../wp-imports'
20
 
21
  export const save = ( props ) => {
@@ -36,15 +37,17 @@ export const edit = ( props ) => {
36
  return [
37
  !! isSelected && (
38
  <InspectorControls key='inspector'>
39
- <RangeControl
40
- label={__('Height')}
41
- value={height}
42
- min='30'
43
- max='200'
44
- onChange={function( height ) {
45
- props.setAttributes( { height: height } );
46
- }}
47
- />
 
 
48
  </InspectorControls>
49
  ),
50
  <div className={ props.className } style={{height:height + 'px'}}></div>
@@ -68,7 +71,7 @@ registerBlockType( 'ugb/spacer', {
68
  // Block name. Block names must be string that contains a namespace prefix. Example: my-plugin/my-custom-block.
69
  title: __( 'Spacer' ), // Block title.
70
  icon: SpacerIcon, // Block icon from Dashicons → https://developer.wordpress.org/resource/dashicons/.
71
- category: 'layout', // Block category — Group blocks together based on common traits E.g. common, formatting, layout widgets, embed.
72
  keywords: [
73
  __( 'Spacer' ),
74
  __( 'Stackable' ),
15
  __,
16
  InspectorControls,
17
  RangeControl,
18
+ TextControl,
19
+ PanelBody
20
  } from '../../wp-imports'
21
 
22
  export const save = ( props ) => {
37
  return [
38
  !! isSelected && (
39
  <InspectorControls key='inspector'>
40
+ <PanelBody>
41
+ <RangeControl
42
+ label={__('Height')}
43
+ value={height}
44
+ min='30'
45
+ max='200'
46
+ onChange={function( height ) {
47
+ props.setAttributes( { height: height } );
48
+ }}
49
+ />
50
+ </PanelBody>
51
  </InspectorControls>
52
  ),
53
  <div className={ props.className } style={{height:height + 'px'}}></div>
71
  // Block name. Block names must be string that contains a namespace prefix. Example: my-plugin/my-custom-block.
72
  title: __( 'Spacer' ), // Block title.
73
  icon: SpacerIcon, // Block icon from Dashicons → https://developer.wordpress.org/resource/dashicons/.
74
+ category: 'stackable-ultimate-gutenberg-blocks', // Block category — Group blocks together based on common traits E.g. common, formatting, layout widgets, embed.
75
  keywords: [
76
  __( 'Spacer' ),
77
  __( 'Stackable' ),
src/block/team-member/index.js CHANGED
@@ -16,14 +16,12 @@ import {
16
  PanelColor,
17
  Button,
18
  SelectControl,
19
- TextControl,
20
- withState,
21
  InspectorControls,
22
  RichText,
23
  ColorPalette,
24
  MediaUpload,
25
  BlockControls,
26
- AlignmentToolbar
27
  } from '../../wp-imports'
28
 
29
  export const edit = ( props ) => {
@@ -83,24 +81,26 @@ export const edit = ( props ) => {
83
  ),
84
  isSelected && (
85
  <InspectorControls key={ 'inspector' }>
86
- <SelectControl
87
- label={ __( 'Image Shape' ) }
88
- value={ shapes }
89
- options={ shape.map( ({ value, label }) => ( {
90
- value: value,
91
- label: label,
92
- } ) ) }
93
- onChange={ ( newShape ) => { setAttributes( { shapes: newShape } ) } }
94
- />
95
- <SelectControl
96
- label={ __( 'Column Number' ) }
97
- value={ columns }
98
- options={ column.map( ({ value, label }) => ( {
99
- value: value,
100
- label: label,
101
- } ) ) }
102
- onChange={ ( newColumns ) => { setAttributes( { columns: newColumns } ) } }
103
- />
 
 
104
  <PanelColor
105
  title={ __( 'Name Color' ) }
106
  colorValue={ nameColor }
@@ -423,7 +423,7 @@ registerBlockType( 'ugb/team-member', {
423
  // Block name. Block names must be string that contains a namespace prefix. Example: my-plugin/my-custom-block.
424
  title: __( 'Team Member' ), // Block title.
425
  icon: TeamMemberIcon, // Block icon from Dashicons → https://developer.wordpress.org/resource/dashicons/.
426
- category: 'common', // Block category — Group blocks together based on common traits E.g. common, formatting, layout widgets, embed.
427
  keywords: [
428
  __( 'Team Member' ),
429
  __( 'Stackable' ),
@@ -542,7 +542,7 @@ registerBlockType( 'ugb/team-member', {
542
  },
543
 
544
  // The "edit" property must be a valid function.
545
- edit: withState( { editable: 'content', } )( edit ),
546
 
547
  // The "save" property must be specified and must be a valid function.
548
  save: save,
16
  PanelColor,
17
  Button,
18
  SelectControl,
 
 
19
  InspectorControls,
20
  RichText,
21
  ColorPalette,
22
  MediaUpload,
23
  BlockControls,
24
+ PanelBody
25
  } from '../../wp-imports'
26
 
27
  export const edit = ( props ) => {
81
  ),
82
  isSelected && (
83
  <InspectorControls key={ 'inspector' }>
84
+ <PanelBody>
85
+ <SelectControl
86
+ label={ __( 'Image Shape' ) }
87
+ value={ shapes }
88
+ options={ shape.map( ({ value, label }) => ( {
89
+ value: value,
90
+ label: label,
91
+ } ) ) }
92
+ onChange={ ( newShape ) => { setAttributes( { shapes: newShape } ) } }
93
+ />
94
+ <SelectControl
95
+ label={ __( 'Column Number' ) }
96
+ value={ columns }
97
+ options={ column.map( ({ value, label }) => ( {
98
+ value: value,
99
+ label: label,
100
+ } ) ) }
101
+ onChange={ ( newColumns ) => { setAttributes( { columns: newColumns } ) } }
102
+ />
103
+ </PanelBody>
104
  <PanelColor
105
  title={ __( 'Name Color' ) }
106
  colorValue={ nameColor }
423
  // Block name. Block names must be string that contains a namespace prefix. Example: my-plugin/my-custom-block.
424
  title: __( 'Team Member' ), // Block title.
425
  icon: TeamMemberIcon, // Block icon from Dashicons → https://developer.wordpress.org/resource/dashicons/.
426
+ category: 'stackable-ultimate-gutenberg-blocks', // Block category — Group blocks together based on common traits E.g. common, formatting, layout widgets, embed.
427
  keywords: [
428
  __( 'Team Member' ),
429
  __( 'Stackable' ),
542
  },
543
 
544
  // The "edit" property must be a valid function.
545
+ edit: edit,
546
 
547
  // The "save" property must be specified and must be a valid function.
548
  save: save,
src/block/team-member/style.scss CHANGED
@@ -35,6 +35,7 @@
35
  }
36
  h4 {
37
  margin: 0 0 .5rem !important;
 
38
  }
39
  .ugb-team-member-position {
40
  margin: 0 0 1rem;
35
  }
36
  h4 {
37
  margin: 0 0 .5rem !important;
38
+ padding-top: 0;
39
  }
40
  .ugb-team-member-position {
41
  margin: 0 0 1rem;
src/block/testimonial/index.js CHANGED
@@ -15,14 +15,13 @@ import {
15
  __,
16
  PanelColor,
17
  Button,
18
- withState,
19
  SelectControl,
20
  InspectorControls,
21
  RichText,
22
  ColorPalette,
23
  MediaUpload,
24
  BlockControls,
25
- AlignmentToolbar
26
  } from '../../wp-imports'
27
 
28
  export const edit = ( props ) => {
@@ -77,15 +76,17 @@ export const edit = ( props ) => {
77
  ),
78
  isSelected && (
79
  <InspectorControls key={ 'inspector' }>
80
- <SelectControl
81
- label={ __( 'Column Number' ) }
82
- value={ columns }
83
- options={ column.map( ({ value, label }) => ( {
84
- value: value,
85
- label: label,
86
- } ) ) }
87
- onChange={ ( newColumns ) => { setAttributes( { columns: newColumns } ) } }
88
- />
 
 
89
  <PanelColor
90
  title={ __( 'Title Color' ) }
91
  colorValue={ titleColor }
@@ -408,7 +409,7 @@ registerBlockType( 'ugb/testimonial', {
408
  // Block name. Block names must be string that contains a namespace prefix. Example: my-plugin/my-custom-block.
409
  title: __( 'Testimonial' ), // Block title.
410
  icon: TestimonialIcon, // Block icon from Dashicons → https://developer.wordpress.org/resource/dashicons/.
411
- category: 'common', // Block category — Group blocks together based on common traits E.g. common, formatting, layout widgets, embed.
412
  keywords: [
413
  __( 'Testimonial' ),
414
  __( 'Stackable' ),
@@ -523,7 +524,7 @@ registerBlockType( 'ugb/testimonial', {
523
  },
524
 
525
  // The "edit" property must be a valid function.
526
- edit: withState( { editable: 'content', } )( edit ),
527
 
528
  // The "save" property must be specified and must be a valid function.
529
  save: save,
15
  __,
16
  PanelColor,
17
  Button,
 
18
  SelectControl,
19
  InspectorControls,
20
  RichText,
21
  ColorPalette,
22
  MediaUpload,
23
  BlockControls,
24
+ PanelBody
25
  } from '../../wp-imports'
26
 
27
  export const edit = ( props ) => {
76
  ),
77
  isSelected && (
78
  <InspectorControls key={ 'inspector' }>
79
+ <PanelBody>
80
+ <SelectControl
81
+ label={ __( 'Column Number' ) }
82
+ value={ columns }
83
+ options={ column.map( ({ value, label }) => ( {
84
+ value: value,
85
+ label: label,
86
+ } ) ) }
87
+ onChange={ ( newColumns ) => { setAttributes( { columns: newColumns } ) } }
88
+ />
89
+ </PanelBody>
90
  <PanelColor
91
  title={ __( 'Title Color' ) }
92
  colorValue={ titleColor }
409
  // Block name. Block names must be string that contains a namespace prefix. Example: my-plugin/my-custom-block.
410
  title: __( 'Testimonial' ), // Block title.
411
  icon: TestimonialIcon, // Block icon from Dashicons → https://developer.wordpress.org/resource/dashicons/.
412
+ category: 'stackable-ultimate-gutenberg-blocks', // Block category — Group blocks together based on common traits E.g. common, formatting, layout widgets, embed.
413
  keywords: [
414
  __( 'Testimonial' ),
415
  __( 'Stackable' ),
524
  },
525
 
526
  // The "edit" property must be a valid function.
527
+ edit: edit,
528
 
529
  // The "save" property must be specified and must be a valid function.
530
  save: save,
src/block/testimonial/style.scss CHANGED
@@ -34,6 +34,7 @@
34
  }
35
  h4 {
36
  margin: 0 0 .5rem !important;
 
37
  }
38
  }
39
  .ugb-testimonial {
34
  }
35
  h4 {
36
  margin: 0 0 .5rem !important;
37
+ padding-top: 0;
38
  }
39
  }
40
  .ugb-testimonial {
src/block/video-popup/index.js CHANGED
@@ -23,7 +23,8 @@ import {
23
  InspectorControls,
24
  ColorPalette,
25
  BlockControls,
26
- UrlInput,
 
27
  } from '../../wp-imports'
28
 
29
  const playButton = {
@@ -75,16 +76,17 @@ export const edit = ( props ) => {
75
  ),
76
  isSelected && (
77
  <InspectorControls key={ 'inspector' }>
78
-
79
- <SelectControl
80
- label={ __( 'Play Button Style' ) }
81
- value={ playButtonType }
82
- options={ playButtonTypes.map( ({ value, label }) => ( {
83
- value: value,
84
- label: label,
85
- } ) ) }
86
- onChange={ ( newSize ) => { setAttributes( { playButtonType: newSize } ) } }
87
- />
 
88
  <PanelColor
89
  title={ __( 'Background/Overlay Color' ) }
90
  colorValue={ overlayColor }
@@ -133,7 +135,7 @@ export const edit = ( props ) => {
133
  onSubmit={ ( event ) => event.preventDefault() }
134
  className='ugb-video-popup-link blocks-button__inline-link'>
135
  <Dashicon icon={ 'admin-links' } />
136
- <UrlInput
137
  value={ videoLink }
138
  onChange={ ( value ) => setAttributes( { videoLink: value } ) }
139
  />
@@ -191,7 +193,7 @@ registerBlockType( 'ugb/video-popup', {
191
  // Block name. Block names must be string that contains a namespace prefix. Example: my-plugin/my-custom-block.
192
  title: __( 'Video Popup' ), // Block title.
193
  icon: VideoPopupIcon, // Block icon from Dashicons → https://developer.wordpress.org/resource/dashicons/.
194
- category: 'common', // Block category — Group blocks together based on common traits E.g. common, formatting, layout widgets, embed.
195
  keywords: [
196
  __( 'Video Popup' ),
197
  __( 'Stackable' ),
23
  InspectorControls,
24
  ColorPalette,
25
  BlockControls,
26
+ URLInput,
27
+ PanelBody
28
  } from '../../wp-imports'
29
 
30
  const playButton = {
76
  ),
77
  isSelected && (
78
  <InspectorControls key={ 'inspector' }>
79
+ <PanelBody>
80
+ <SelectControl
81
+ label={ __( 'Play Button Style' ) }
82
+ value={ playButtonType }
83
+ options={ playButtonTypes.map( ({ value, label }) => ( {
84
+ value: value,
85
+ label: label,
86
+ } ) ) }
87
+ onChange={ ( newSize ) => { setAttributes( { playButtonType: newSize } ) } }
88
+ />
89
+ </PanelBody>
90
  <PanelColor
91
  title={ __( 'Background/Overlay Color' ) }
92
  colorValue={ overlayColor }
135
  onSubmit={ ( event ) => event.preventDefault() }
136
  className='ugb-video-popup-link blocks-button__inline-link'>
137
  <Dashicon icon={ 'admin-links' } />
138
+ <URLInput
139
  value={ videoLink }
140
  onChange={ ( value ) => setAttributes( { videoLink: value } ) }
141
  />
193
  // Block name. Block names must be string that contains a namespace prefix. Example: my-plugin/my-custom-block.
194
  title: __( 'Video Popup' ), // Block title.
195
  icon: VideoPopupIcon, // Block icon from Dashicons → https://developer.wordpress.org/resource/dashicons/.
196
+ category: 'stackable-ultimate-gutenberg-blocks', // Block category — Group blocks together based on common traits E.g. common, formatting, layout widgets, embed.
197
  keywords: [
198
  __( 'Video Popup' ),
199
  __( 'Stackable' ),
src/block/video-popup/style.scss CHANGED
@@ -68,6 +68,10 @@
68
  }
69
  }
70
 
 
 
 
 
71
  /**
72
  * Frontend Styles.
73
  */
68
  }
69
  }
70
 
71
+ .ugb-video-popup-link .editor-url-input input[type=text] {
72
+ width: auto !important;
73
+ }
74
+
75
  /**
76
  * Frontend Styles.
77
  */
src/init.php CHANGED
@@ -70,3 +70,16 @@ function my_block_ugb_editor_assets() {
70
 
71
  // Hook: Editor assets.
72
  add_action( 'enqueue_block_editor_assets', 'my_block_ugb_editor_assets' );
 
 
 
 
 
 
 
 
 
 
 
 
 
70
 
71
  // Hook: Editor assets.
72
  add_action( 'enqueue_block_editor_assets', 'my_block_ugb_editor_assets' );
73
+
74
+ // Add custom block category
75
+ add_filter( 'block_categories', function( $categories, $post ) {
76
+ return array_merge(
77
+ $categories,
78
+ array(
79
+ array(
80
+ 'slug' => 'stackable-ultimate-gutenberg-blocks',
81
+ 'title' => __( 'Stackable - Ultimate Gutenberg Blocks', 'stackable-ultimate-gutenberg-blocks' ),
82
+ ),
83
+ )
84
+ );
85
+ }, 10, 2 );
src/wp-imports.js CHANGED
@@ -3,7 +3,6 @@ export const { registerBlockType } = wp.blocks
3
  export const { __ } = wp.i18n
4
 
5
  export const {
6
- withState,
7
  PanelColor,
8
  RangeControl,
9
  SelectControl,
@@ -13,6 +12,7 @@ export const {
13
  IconButton,
14
  Button,
15
  Toolbar,
 
16
  } = wp.components
17
 
18
  export const {
@@ -21,6 +21,6 @@ export const {
21
  ColorPalette,
22
  AlignmentToolbar,
23
  RichText,
24
- UrlInput,
25
  MediaUpload,
26
  } = wp.editor.InspectorControls ? wp.editor : wp.blocks
3
  export const { __ } = wp.i18n
4
 
5
  export const {
 
6
  PanelColor,
7
  RangeControl,
8
  SelectControl,
12
  IconButton,
13
  Button,
14
  Toolbar,
15
+ PanelBody
16
  } = wp.components
17
 
18
  export const {
21
  ColorPalette,
22
  AlignmentToolbar,
23
  RichText,
24
+ URLInput,
25
  MediaUpload,
26
  } = wp.editor.InspectorControls ? wp.editor : wp.blocks